/* Base Layout */
:root {
    --bg-main: #000000;
    --bg-sidebar: #09090b;
    --bg-card: #09090b;
    --border-main: #27272a;
    --text-primary: #ffffff;
    --text-secondary: #9ca3af;
    --accent: #ffffff;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
}

/* ChatGPT/Grok Navigation style */
.sidebar {
    background-color: var(--bg-sidebar);
    border-right: 1px solid var(--border-main);
}

.sidebar-item {
    transition: all 0.2s ease;
    border-radius: 0.5rem;
}

.sidebar-item:hover {
    background-color: #18181b;
}

.sidebar-item.active {
    background-color: #27272a;
    color: #ffffff;
}

/* Minimalist Cards */
.modern-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-main);
    border-radius: 1rem;
}

/* Buttons */
.btn-primary {
    background-color: #ffffff;
    color: #000000;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background-color: #e4e4e7;
}

.btn-secondary {
    background-color: transparent;
    border: 1px solid var(--border-main);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background-color: #18181b;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #27272a;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #3f3f46;
}

/* Processing State */
.ring-progress {
    transition: stroke-dashoffset 0.3s ease;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeIn 0.4s ease-out forwards;
}

/* Icon visibility fix */
svg {
    display: inline-block;
    vertical-align: middle;
}

/* Accordion (Manual Height Animation) */
.faq-content-wrapper {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.faq-item.active .faq-content-wrapper {
    grid-template-rows: 1fr;
}

.faq-content {
    min-height: 0;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.faq-item.active .faq-content {
    opacity: 1;
}

.faq-icon {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

/* Billing Toggle */
.billing-toggle-bg {
    position: absolute;
    top: 4px;
    left: 4px;
    width: calc(50% - 4px);
    height: calc(100% - 8px);
    background: #27272a;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 0;
}

/* Mobile Sidebar Overlay */
#sidebar-overlay {
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 40;
    transition: opacity 0.3s ease;
}

aside {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Notification Toast */
#toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    pointer-events: none;
}

.toast {
    background-color: #18181b;
    border: 1px solid #27272a;
    color: white;
    padding: 1rem 1.25rem;
    border-radius: 0.75rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 280px;
    max-width: 400px;
    pointer-events: auto;
    animation: toastIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.toast.removing {
    animation: toastOut 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes toastOut {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    to {
        opacity: 0;
        transform: translateY(10px) scale(0.95);
    }
}

/* Pulse animation for QR/Updates */
.pulse-zinc {
    animation: pulse-zinc 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse-zinc {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: .5;
    }
}

.shadow-glow {
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.language-select .lang-dropdown {
    backdrop-filter: blur(12px);
    background-color: rgba(9, 9, 11, 0.9);
}