@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #6366f1;
    --primary-glow: rgba(99, 102, 241, 0.4);
    --secondary: #ec4899;
    --secondary-glow: rgba(236, 72, 153, 0.4);
    --bg-dark: #0a0a0f;
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.1);
    --text-main: #ffffff;
    --text-muted: #94a3b8;
    --glass: rgba(255, 255, 255, 0.05);
}


* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    font-family: 'Outfit', system-ui, -apple-system, sans-serif;
    background: var(--bg-dark);
    color: var(--text-main);
    min-height: 100vh;
}

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

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #475569;
}

/* Topbar / Navbar Global */
.nav-container,
.topbar {
    position: sticky;
    /* Switched from fixed to sticky */
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 2rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent;
    display: flex;
    justify-content: center;
    background: transparent;
}

.nav-container.scrolled,
.topbar.scrolled {
    background: rgba(10, 10, 15, 0.8) !important;
    border-bottom: 1px solid var(--card-border) !important;
}

.nav-content,
.topbar-content {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    /* Prevent stacking */
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.5rem;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none !important;
}

.logo img {
    width: 32px;
    height: 32px;
}

.nav-links,
.topbar-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.plan-badge-ui {
    font-size: 0.7rem;
    padding: 2px 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    border-radius: 999px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.nav-btn,
.btn.small {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    padding: 0.5rem 1.5rem;
    border-radius: 9999px;
    font-weight: 500;
    color: white !important;
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
    cursor: pointer;
    text-decoration: none !important;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
}

.nav-btn:hover,
.btn.small:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--primary-glow);
}

.nav-btn.secondary,
.btn.small.secondary {
    background: transparent;
    border: 1px solid var(--card-border);
}

.app-icon {
    height: 28px;
    width: 28px;
}

.signin {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-link-text {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
    margin-right: 1.5rem;
    text-decoration: none;
}

.nav-link-text:hover {
    color: var(--text-main);
}

.user-pill {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: #0f1115;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.35rem 0.35rem 0.35rem 0.5rem;
    border-radius: 999px;
    margin-left: 0.75rem;
}

.user-pill-avatar {
    width: 32px;
    height: 32px;
    background: #00897b;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.85rem;
}

.user-pill-email {
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.logout-pill-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.logout-pill-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.user {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--glass);
    padding: 6px 6px 6px 16px;
    border-radius: 9999px;
    border: 1px solid var(--card-border);
}

.user span {
    font-weight: 500;
    font-size: 0.9rem;
}

.user img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--bg-dark);
}

.btn.small {
    margin-top: 0;
    padding: 6px 14px;
    font-size: 0.85rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    border-radius: 999px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
}

.btn.small:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    border-color: rgba(255, 255, 255, 0.2);
}

.credits {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    padding: 6px 6px 6px 16px;
    border-radius: 9999px;
}

.credit-count {
    color: #a5b4fc;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 4px;
}

.getmore {
    background: var(--primary);
    color: white;
    padding: 6px 14px;
    font-weight: 600;
    font-size: 0.85rem;
    border: none;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.2s;
}

.getmore:hover {
    background: #4f46e5;
    box-shadow: 0 0 12px var(--primary-glow);
}

.getmore-panel {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    background: #1e1e2e;
    border: 1px solid #374151;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    padding: 20px;
    width: 280px;
    animation: dropdown 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1001;
}

.getmore-title {
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 16px;
    font-size: 0.95rem;
}

.getmore-icons {
    display: flex;
    gap: 12px;
}

.icon-link {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #2d2d3a;
    transition: transform 0.2s;
    border: 1px solid #374151;
}

.icon-link:hover {
    transform: translateY(-2px);
    background: #374151;
}

.icon-link img {
    width: 24px;
    height: 24px;
}

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

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

/* Main Layout */
.content {
    width: 100%;
    margin: 0;
    padding: 40px;
    /* Removed 140px top padding as sticky takes space */
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.main-area {
    flex: 1;
    display: grid;
    gap: 32px;
    justify-items: center;
}

/* Sidebar */
.history-sidebar {
    width: 360px;
    flex-shrink: 0;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 24px;
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    backdrop-filter: blur(10px);
    align-self: flex-start;
}

.history-header {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--card-border);
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.history-title {
    font-weight: 700;
    color: var(--text-main);
    font-size: 1.1rem;
}

.history-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.history-view-all {
    font-size: 0.85rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
}

.history-view-all:hover {
    color: var(--secondary);
    text-shadow: 0 0 8px var(--secondary-glow);
}

.history-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.history-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--card-border);
    cursor: pointer;
    transition: all 0.2s;
}

.history-item:hover {
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.2);
}

.history-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
    background: #1a1a20;
}

.history-item:hover img {
    transform: scale(1.1);
}

.history-empty {
    text-align: center;
    color: var(--text-muted);
    padding: 40px 0;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border: 1px dashed var(--card-border);
}

/* Hero & Forms */
.hero {
    text-align: center;
    margin-bottom: 20px;
}

.hero h1 {
    margin: 0 0 12px;
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.hero p2 {
    color: var(--secondary);
    font-size: 1rem;
    display: block;
    margin-top: 8px;
}


.card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 40px;
    backdrop-filter: blur(10px);
    width: 100%;
    max-width: 1000px;
}

.uploader {
    display: grid;
    gap: 24px;
    /* Removed justify-items: center to let children stretch */
}


.dropzone {
    border: 2px dashed var(--card-border);
    background: rgba(255, 255, 255, 0.01);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    color: var(--text-muted);
    width: 100%;
    min-height: 240px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: all 0.2s;
}

.dropzone:hover:not(.disabled) {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
}

#dropzone-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.cloud {
    font-size: 32px;
    margin-bottom: 12px;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.2));
}

.hint {
    font-weight: 500;
}

.dz-preview {
    max-height: 300px;
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* Controls */
.count {
    width: 100%;
    /* max-width removed */
    background: rgba(255, 255, 255, 0.02);
    padding: 16px;
    border-radius: 16px;
    border: 1px solid var(--card-border);
}

.text-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 12px;
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.95rem;
    resize: vertical;
    min-height: 80px;
    margin-top: 8px;
    outline: none;
    transition: all 0.2s;
}

.text-input:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
}

.count .label {
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.count .opts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.count .mode-opts {
    grid-template-columns: repeat(3, 1fr);
}

.opt {
    padding: 10px;
    border-radius: 10px;
    border: 1px solid var(--card-border);
    background: transparent;
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 600;
}

@media (hover: hover) {
    .opt:hover:not(:disabled) {
        background: rgba(255, 255, 255, 0.05);
    }
}

.opt:focus,
.opt:active {
    outline: none;
    background: transparent;
}

.opt.selected {
    background: var(--primary) !important;
    border-color: var(--primary);
    box-shadow: 0 0 12px var(--primary-glow);
}

.deduct-msg {
    margin-top: 12px;
    text-align: right;
    font-size: 0.85rem;
    color: var(--secondary);
    font-weight: 600;
}

.generate-btn {
    width: 100%;
    /* max-width removed */
    padding: 16px;
    border: none;

    border-radius: 16px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
}

.generate-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.4);
}

.generate-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    filter: grayscale(1);
}

/* Results */
.generating {
    padding: 48px;
    text-align: center;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 24px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.dl-icon.loading-active {
    opacity: 1 !important;
    transform: translateY(0) !important;
    pointer-events: none;
}

.dl-icon.loading-active svg {
    display: none;
}

.dl-icon.loading-active::after {
    content: "";
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.gen-title {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-main);
}

.results-header {
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.results-header h3 {
    margin: 0;
    font-size: 1.5rem;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.thumb-wrap {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 1;
    border: 1px solid var(--card-border);
    background: #000;
}

.thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    cursor: zoom-in;
}

.thumb-wrap:hover img {
    transform: scale(1.05);
    opacity: 0.9;
}

.dl-icon {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    opacity: 0;
    transform: translateY(10px);
}

.thumb-wrap:hover .dl-icon,
.history-item:hover .dl-icon {
    opacity: 1;
    transform: translateY(0);
}

.dl-icon:hover {
    background: var(--primary);
    border-color: var(--primary);
}

/* Mobile & Modal */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal img {
    max-width: 95vw;
    max-height: 95vh;
    border-radius: 16px;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--card-border);
}

@media (max-width: 1024px) {
    .content {
        flex-direction: column;
        padding: 20px;
        /* Removed manual top padding offset */
        gap: 32px;
    }

    .history-sidebar {
        width: 100%;
        position: static;
        max-height: 400px;
    }

    .history-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
}

@media (max-width: 640px) {

    .topbar,
    .nav-container {
        padding: 8px 12px;
        /* Even tighter padding on very small screens */
    }

    .title span {
        display: none;
    }

    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .card {
        padding: 24px 20px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    /* Mobile Friendly Topbar Controls */
    .credit-count span.desktop-only {
        display: inline !important;
        /* Force "Credits" to show on mobile */
        margin-left: 4px;
    }

    .credit-count {
        font-size: 0.9rem;
        display: flex;
        align-items: center;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .user span {
        display: none;
    }

    .user {
        padding: 4px;
        background: transparent;
        border: none;
        gap: 8px;
    }

    .credits {
        padding: 4px 4px 4px 10px;
        /* Adjusted padding for better fit */
        /* background and border will now be inherited from global styles */
    }

    .signin {
        gap: 8px;
    }

    .getmore {
        padding: 6px 10px;
        font-size: 0.8rem;
    }

    .getmore-panel {
        right: -80px;
        /* Shift right to prevent left-side cutoff on mobile */
        width: 260px;
        padding: 16px;
    }

    /* Prevent navbar stacking */
    .nav-content,
    .topbar-content {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 0.5rem;
    }

    .nav-links,
    .topbar-actions {
        gap: 0.4rem;
    }

    .nav-btn,
    .btn.small {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
        white-space: nowrap;
    }

    .logo {
        font-size: 1.1rem;
    }

    .logo-auth span {
        display: inline-block;
        /* Show logo name on mobile dashboard */
    }

    .logo img {
        width: 28px;
        /* Slightly larger icon since text is gone */
        height: 28px;
    }

    /* Make download icons visible on mobile without hover */
    .dl-icon {
        opacity: 1;
        transform: translateY(0);
        background: rgba(0, 0, 0, 0.4);
    }

    /* Equal size buttons for mobile */
    .count .opts {
        width: 100%;
        display: grid !important;
        grid-template-columns: repeat(4, 1fr) !important;
    }

    .count .mode-opts {
        grid-template-columns: repeat(3, 1fr) !important;
    }

    .opt {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        width: 100%;
        min-height: 70px;
        /* Reduced from 80px */
        font-size: 0.8rem;
        padding: 8px 4px;
    }

    .count-opt {
        min-height: 50px !important;
        /* Much smaller for just numbers */
        font-size: 1rem !important;
        /* Make the number itself clear but the button smaller */
    }
}

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

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

.main-area,
.history-sidebar {
    animation: fadeIn 0.6s ease-out forwards;
}

.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

/* Utility classes for dashboard */
.page-no-padding-top {
    padding-top: 0;
}

.flex-gap-small {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.form-inline {
    display: inline;
}

.hidden {
    display: none;
}

.icon-social-size {
    width: 24px;
    height: 24px;
}

.btn-small-padding {
    padding: 0.4rem 1rem;
}

/* Visibility Utilities */
.desktop-only {
    display: flex !important;
}

.mobile-only {
    display: none !important;
}

@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: flex !important;
    }
}

/* Hamburger Button */
.hamburger-btn {
    background: var(--glass);
    border: 1px solid var(--card-border);
    color: var(--text-main);
    padding: 0.6rem;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
    align-items: center;
    justify-content: center;
}

.hamburger-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Mobile Drawer */
.drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-drawer {
    position: fixed;
    top: 0;
    right: -320px;
    width: 320px;
    height: 100vh;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    z-index: 2001;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    border-left: 1px solid var(--card-border);
}

.mobile-drawer.active {
    right: 0;
}

.drawer-header {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--card-border);
}

.close-drawer {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.5rem;
}

.drawer-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    overflow-y: auto;
}

.drawer-user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.drawer-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--primary);
}

.drawer-user-details {
    display: flex;
    flex-direction: column;
}

.drawer-username {
    font-weight: 600;
    font-size: 1rem;
}

.drawer-stats {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--card-border);
    border-radius: 1rem;
    padding: 1rem;
}

.drawer-stat-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.stat-value {
    color: #a5b4fc;
    font-weight: 700;
}

.getmore-drawer {
    display: block;
    width: 100%;
    background: var(--primary);
    color: white;
    text-align: center;
    padding: 0.75rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.drawer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.drawer-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    color: var(--text-main);
    text-decoration: none;
    border-radius: 0.75rem;
    transition: all 0.2s;
    font-weight: 500;
    background: transparent;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.drawer-link:hover {
    background: rgba(255, 255, 255, 0.05);
}

.drawer-link.highlight {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
}

.logout-btn {
    color: #ef4444;
}

.logout-btn:hover {
    background: rgba(239, 68, 68, 0.1);
}

.drawer-logout-form {
    width: 100%;
}

/* Login Warning Component */
.login-warning {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(236, 72, 153, 0.1);
    border: 1px solid rgba(236, 72, 153, 0.2);
    padding: 0.75rem 1.25rem;
    border-radius: 1rem;
    color: var(--secondary);
    font-weight: 500;
    margin-top: 1rem;
    backdrop-filter: blur(10px);
    animation: fadeIn 0.5s ease-out;
}

.login-warning i {
    width: 18px;
    height: 18px;
}

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

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

/* Authenticated User Status Component */
.user-status-dashboard {
    display: inline-flex;
    gap: 1rem;
    margin-top: 1.25rem;
    flex-wrap: wrap;
    justify-content: center;
    animation: fadeIn 0.5s ease-out;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
    transition: all 0.2s ease;
}

.status-badge:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.credits-badge {
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    color: #a5b4fc;
}

.plan-badge {
    background: rgba(236, 72, 153, 0.1);
    border: 1px solid rgba(236, 72, 153, 0.2);
    color: var(--secondary);
}

.status-badge i {
    width: 16px;
    height: 16px;
}