/* Google Fonts - Outfit and Material Symbols */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@24,400,0..1,0&display=swap');

:root {
    --bg-primary: #0a0c10;
    --bg-secondary: #131722;
    --bg-tertiary: #1c2130;
    --accent: #00E676; /* Play Store Green / Mint Accent */
    --accent-hover: #00b359;
    --text-primary: #ffffff;
    --text-secondary: #90a4ae;
    --text-muted: #607d8b;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-color-focus: rgba(0, 230, 118, 0.4);
    --card-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    --bg-header-rgba: rgba(10, 12, 16, 0.85);
    --bg-nav-rgba: rgba(19, 23, 34, 0.85);
    --bg-overlay-alpha: rgba(255, 255, 255, 0.02);
    --bg-overlay-alpha-hover: rgba(255, 255, 255, 0.05);

    /* Safe area for notch / browser UI on mobile */
    --sat: env(safe-area-inset-top, 0px);
    --sab: env(safe-area-inset-bottom, 0px);
}

body.light-theme {
    --bg-primary: #f1f3f4; /* Google Play light background */
    --bg-secondary: #ffffff;
    --bg-tertiary: #f8f9fa;
    --accent: #01875f; /* Play Store dark emerald green */
    --accent-hover: #006b4b;
    --text-primary: #202124;
    --text-secondary: #5f6368;
    --text-muted: #80868b;
    --border-color: rgba(0, 0, 0, 0.08);
    --border-color-focus: rgba(1, 135, 95, 0.25);
    --card-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    
    --bg-header-rgba: rgba(255, 255, 255, 0.85);
    --bg-nav-rgba: rgba(255, 255, 255, 0.85);
    --bg-overlay-alpha: rgba(0, 0, 0, 0.02);
    --bg-overlay-alpha-hover: rgba(0, 0, 0, 0.05);
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    padding-bottom: 80px; /* Space for bottom nav on mobile */
    min-height: 100vh;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* Header Styles */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg-header-rgba);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    transition: var(--transition);
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.header-logo span.logo-icon {
    font-size: 28px;
    color: var(--accent);
    background: rgba(0, 230, 118, 0.1);
    padding: 6px;
    border-radius: 12px;
}

.header-logo h1 {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #ffffff, #90a4ae);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

body.light-theme .header-logo h1 {
    background: linear-gradient(135deg, #202124, #5f6368);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ===================================
   Play Store Search Trigger (Header)
   =================================== */
.search-trigger-wrap {
    flex: 1;
    max-width: 600px;
}

.search-trigger-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-sans);
    color: var(--text-secondary);
    text-align: left;
    position: relative;
    overflow: hidden;
}

.search-trigger-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--accent);
    opacity: 0;
    transition: opacity 0.3s;
    border-radius: inherit;
}

.search-trigger-btn:hover {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--border-color-focus);
}

.search-trigger-btn:hover::before {
    opacity: 0.04;
}

.search-trigger-btn:active {
    transform: scale(0.98);
}

.search-trigger-icon {
    font-size: 20px;
    color: var(--accent);
    flex-shrink: 0;
    transition: var(--transition);
}

.search-trigger-placeholder {
    flex: 1;
    font-size: 15px;
    font-weight: 400;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-trigger-mic {
    font-size: 20px;
    color: var(--text-muted);
    flex-shrink: 0;
    transition: var(--transition);
}

.search-trigger-btn:hover .search-trigger-mic {
    color: var(--accent);
}


.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.icon-btn {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.icon-btn:hover {
    background: var(--bg-tertiary);
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

/* Language Toggle Button */
.lang-toggle-btn {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: var(--accent) !important;
    border-color: var(--accent) !important;
    background: rgba(0, 230, 118, 0.08) !important;
    min-width: 42px;
    width: auto;
    padding: 0 10px;
}
.lang-toggle-btn:hover {
    background: rgba(0, 230, 118, 0.18) !important;
    transform: translateY(-2px);
}
.lang-label {
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 800;
    pointer-events: none;
}

/* App Container and Grid Layout */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 20px;
}

.section-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

/* Dynamic App Loading Grid */
.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
}

/* When apps-grid contains section rows, switch to block layout instead of grid */
.apps-grid:has(.section-row-wrapper) {
    display: block;
}


/* App Card styling - Native Play Store Vibe */
.app-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 14px 12px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    position: relative;
    overflow: hidden;
    gap: 0;
}

/* Subtle ambient glow on top */
.app-card::before {
    content: '';
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 60px;
    background: var(--accent);
    border-radius: 50%;
    filter: blur(28px);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.app-card:hover {
    transform: translateY(-6px) scale(1.02);
    border-color: rgba(0, 230, 118, 0.35);
    box-shadow: 0 16px 40px rgba(0,0,0,0.45), 0 0 0 1px rgba(0,230,118,0.1);
}

.app-card:hover::before {
    opacity: 0.12;
}

/* ---- Icon Container with gradient ring ---- */
.app-card-icon-wrap {
    position: relative;
    margin-bottom: 12px;
    width: 82px;
    height: 82px;
    flex-shrink: 0;
}

/* Rotating gradient ring around icon */
.app-card-icon-wrap::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 23px;
    background: linear-gradient(135deg, var(--accent), #00b8d9, #6c63ff, var(--accent));
    background-size: 300% 300%;
    animation: gradientShift 4s ease infinite;
    z-index: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.app-card:hover .app-card-icon-wrap::before {
    opacity: 1;
}

/* Inner white ring so gradient doesn't bleed into icon */
.app-card-icon-wrap::after {
    content: '';
    position: absolute;
    inset: 1px;
    border-radius: 21px;
    background: var(--bg-secondary);
    z-index: 1;
}

@keyframes gradientShift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.app-card-icon {
    width: 82px;
    height: 82px;
    border-radius: 21px;
    object-fit: cover;
    position: relative;
    z-index: 2;
    display: block;
    background: var(--bg-tertiary);
}

/* Category chip at top-right corner of icon */
.app-card-category-pill {
    position: absolute;
    top: -6px;
    right: -8px;
    background: linear-gradient(135deg, #6c63ff, #00b8d9);
    color: #fff;
    font-size: 8px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 6px;
    border-radius: 20px;
    z-index: 3;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(108,99,255,0.5);
}

.app-card-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 5px;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    z-index: 1;
    letter-spacing: -0.2px;
}

.app-card-version {
    font-size: 10.5px;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 5px;
    z-index: 1;
}

.app-card-size {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 0;
    z-index: 1;
}

.app-card-badge {
    display: none; /* replaced by category pill on icon */
}

/* Bottom Navigation Bar - Mobile */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: var(--bg-nav-rgba);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 99;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 11px;
    font-weight: 500;
    width: 25%;
    height: 100%;
    gap: 4px;
    cursor: pointer;
    transition: var(--transition);
}

.nav-item span.nav-icon {
    font-size: 22px;
    padding: 4px 16px;
    border-radius: 16px;
    transition: var(--transition);
}

.nav-item:hover {
    color: var(--text-primary);
}

.nav-item.active {
    color: var(--accent);
}

.nav-item.active span.nav-icon {
    background: rgba(0, 230, 118, 0.12);
    font-variation-settings: 'FILL' 1;
}

/* Skeleton Loading Animation */
.skeleton-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 170px;
}

.skeleton-icon {
    width: 86px;
    height: 86px;
    border-radius: 20px;
    background: var(--bg-tertiary);
    animation: skeleton-loading 1.5s infinite ease-in-out;
}

.skeleton-text {
    width: 80%;
    height: 12px;
    border-radius: 4px;
    background: var(--bg-tertiary);
    margin-top: 12px;
    animation: skeleton-loading 1.5s infinite ease-in-out;
}

.skeleton-text-small {
    width: 50%;
    height: 8px;
    border-radius: 4px;
    background: var(--bg-tertiary);
    margin-top: 8px;
    animation: skeleton-loading 1.5s infinite ease-in-out;
}

@keyframes skeleton-loading {
    0% { opacity: 0.5; }
    50% { opacity: 1; }
    100% { opacity: 0.5; }
}

/* Empty State Styling */
.empty-state {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: var(--text-secondary);
    text-align: center;
}

.empty-state span {
    font-size: 56px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.empty-state p {
    font-size: 16px;
}

/* App Details Sheet / Modal (Play Store style) */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: var(--bg-secondary);
    width: 100%;
    max-width: 600px;
    border-radius: 24px 24px 0 0;
    padding: 0 24px 40px;
    /* Extra bottom padding for home indicator on iOS */
    padding-bottom: max(40px, env(safe-area-inset-bottom));
    box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.5);
    transform: translateY(100%);
    transition: transform 0.38s cubic-bezier(0.25, 0.8, 0.25, 1);
    /* Use dvh so browser UI doesn't cause overflow */
    height: 100dvh;
    overflow-y: auto;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    will-change: transform;
    -webkit-overflow-scrolling: touch;
}

.modal-overlay.active .modal-content {
    transform: translateY(40%); /* Show bottom 60% of screen by default */
}

/* Drag handle pill */
.sheet-handle {
    width: 48px;
    height: 5px;
    background: var(--border-color);
    border-radius: 10px;
    margin: 0 auto;
    cursor: grab;
    position: sticky;
    top: 0;
    z-index: 10;
    touch-action: pan-y;
    /* Extra tap area without visual size increase */
    padding: 12px 0;
    box-sizing: content-box;
    background-clip: content-box;
    /* When in fullscreen on mobile, shift down to avoid browser chrome */
    margin-top: env(safe-area-inset-top, 0px);
}

.modal-header-row {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
}

.modal-app-icon {
    width: 90px;
    height: 90px;
    border-radius: 22px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-header-info {
    flex: 1;
}

.modal-app-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.modal-developer {
    font-size: 13px;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 6px;
}

.modal-category-tag {
    display: inline-block;
    padding: 3px 10px;
    background: var(--bg-overlay-alpha-hover);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-size: 11px;
    color: var(--text-secondary);
}

/* Stats Row */
.modal-stats {
    display: flex;
    justify-content: space-around;
    align-items: stretch;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 14px 0;
    margin-bottom: 20px;
    text-align: center;
    gap: 0;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    min-width: 0;
    padding: 0 4px;
}

.stat-value {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 3px;
    white-space: nowrap;
    overflow: hidden;
}

.stat-value .material-symbols-outlined {
    font-size: 15px;
    color: var(--accent);
}

.stat-label {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-divider {
    width: 1px;
    height: 32px;
    background: var(--border-color);
}

/* Buttons */
.download-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--accent);
    color: var(--bg-primary);
    border: none;
    border-radius: 14px;
    padding: 14px 24px;
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 700;
    width: 100%;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 230, 118, 0.2);
    margin-bottom: 20px;
}

.download-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 230, 118, 0.3);
}

.download-btn span {
    font-size: 20px;
}

/* App Description Section */
.description-section h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.description-container {
    position: relative;
    max-height: 80px; /* roughly 3-4 lines of text */
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.description-container.expanded {
    max-height: 2000px; /* Let it grow naturally */
}

/* Bottom fade effect when collapsed */
.description-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 35px;
    background: linear-gradient(to top, var(--bg-secondary) 10%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
    transition: opacity 0.3s ease;
    opacity: 1;
}

.description-container.expanded::after {
    opacity: 0;
}

/* Theme specific fade override */
body.light-theme .description-container::after {
    background: linear-gradient(to top, #ffffff 10%, rgba(255, 255, 255, 0) 100%);
}

.description-text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Play Store Style Read More trigger button */
.description-read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--accent);
    background: none;
    border: none;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    padding: 8px 0 0 0;
    transition: color 0.2s ease;
    outline: none;
}

.description-read-more-btn:hover {
    opacity: 0.85;
}

.description-read-more-btn span {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.description-read-more-btn.expanded span {
    transform: rotate(90deg); /* points down when open */
}


/* Account Tab View */
.account-view {
    max-width: 500px;
    margin: 0 auto;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 24px;
    width: 100%;
    box-sizing: border-box;
    grid-column: 1 / -1; /* Fix grid squishing */
}

.account-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
}

.account-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), #00E5FF);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--bg-primary);
    font-weight: 700;
    margin-bottom: 12px;
}

.account-name {
    font-size: 18px;
    font-weight: 700;
}

.account-email {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.account-menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: var(--bg-overlay-alpha);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    color: var(--text-primary);
}

.account-menu-item:hover {
    background: var(--bg-overlay-alpha-hover);
    border-color: var(--accent);
}

.account-menu-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.account-menu-info span.menu-icon {
    color: var(--accent);
}

.account-menu-info span.menu-text {
    font-size: 14px;
    font-weight: 500;
}

/* Tablet & Desktop Adjustments */
@media (min-width: 768px) {
    body {
        padding-bottom: 0; /* Remove bottom spacing */
    }

    header {
        padding: 16px 40px;
    }

    main {
        padding: 40px;
    }

    /* Shift bottom navigation to left-sidebar or top navigation rail */
    .bottom-nav {
        top: 0;
        bottom: 0;
        left: 0;
        right: auto;
        width: 80px;
        height: 100vh;
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 80px;
        gap: 20px;
        border-top: none;
        border-right: 1px solid var(--border-color);
    }

    .nav-item {
        width: 100%;
        height: auto;
        padding: 12px 0;
    }

    /* Adjust page margin to clear side navigation */
    main, header {
        margin-left: 80px;
    }

    /* Keep Search in center */
    .search-container {
        max-width: 480px;
    }

    /* On tablet+, use dialog style instead of bottom sheet */
    .modal-overlay {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .modal-content {
        position: relative;      /* Undo fixed positioning on desktop */
        bottom: auto;
        left: auto;
        right: auto;
        width: 92%;
        border-radius: 24px;
        transform: scale(0.9);
        opacity: 0;
        height: auto;
        max-height: 88vh;
        padding: 24px;
        transition: transform 0.3s ease, opacity 0.3s ease;
        box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
    }

    .modal-overlay.active .modal-content {
        transform: scale(1);
        opacity: 1;
    }

    .sheet-handle {
        display: none;
    }

    .modal-handle {
        display: none;
    }
}

/* ===========================
   Screenshot Gallery Styles
   =========================== */
.screenshots-section {
    margin-bottom: 20px;
}

.screenshots-section h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.screenshots-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 10px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--bg-tertiary) transparent;
}

.screenshots-scroll::-webkit-scrollbar {
    height: 4px;
}
.screenshots-scroll::-webkit-scrollbar-track {
    background: transparent;
}
.screenshots-scroll::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border-radius: 4px;
}

.screenshot-thumb {
    flex: 0 0 auto;
    width: 130px;
    height: 220px;
    border-radius: 12px;
    object-fit: cover;
    scroll-snap-align: start;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition);
    background: var(--bg-tertiary);
}

.screenshot-thumb:hover {
    transform: scale(1.03);
    border-color: var(--accent);
    box-shadow: 0 4px 16px rgba(0, 230, 118, 0.2);
}

/* Full Screen Screenshot Lightbox */
.lightbox-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lightbox-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-image {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 16px;
    object-fit: contain;
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.8);
}

.lightbox-close {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 22px;
}
.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

/* ===========================
   Download Counter Animation
   =========================== */
.download-count-display {
    font-weight: 700;
    transition: color 0.3s ease;
}

.download-count-display.bump {
    animation: countBump 0.4s ease;
}

@keyframes countBump {
    0% { transform: scale(1); color: var(--text-primary); }
    40% { transform: scale(1.3); color: var(--accent); }
    100% { transform: scale(1); }
}

/* ===========================
   App Card Badge light override
   =========================== */
body.light-theme .app-card-badge {
    background: rgba(0, 0, 0, 0.04);
}

body.light-theme .header-logo span.logo-icon {
    background: rgba(1, 135, 95, 0.1);
}

body.light-theme .modal-content {
    box-shadow: 0 -4px 30px rgba(0,0,0,0.12);
}

body.light-theme .nav-item.active span.nav-icon {
    background: rgba(1, 135, 95, 0.1);
}

/* ===========================
   Spin animation for loading
   =========================== */
@keyframes spin {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.download-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* Already-downloaded indicator */
.download-btn.already-downloaded {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    box-shadow: none;
}

/* =========================================================
   FULL-PAGE SEARCH OVERLAY — Play Store Style
   ========================================================= */

/* The full search page - hidden off-screen above by default */
.search-page {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 500;
    background: var(--bg-primary);
    display: flex;
    flex-direction: column;
    transform: translateY(-100%);
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.25s ease;
    pointer-events: none;
    will-change: transform;
}

.search-page.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

/* ---- Search Page Header ---- */
.search-page-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
    position: sticky;
    top: 0;
    z-index: 10;
}

/* Back arrow button */
.search-back-btn {
    width: 42px;
    height: 42px;
    border: none;
    background: none;
    color: var(--text-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}

.search-back-btn:hover {
    background: var(--bg-tertiary);
}

.search-back-btn .material-symbols-outlined {
    font-size: 24px;
}

/* Search Input Wrapper */
.search-input-wrap {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    background: var(--bg-secondary);
    border: 1.5px solid var(--border-color);
    border-radius: 30px;
    transition: var(--transition);
    overflow: hidden;
}

.search-input-wrap:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--border-color-focus);
    background: var(--bg-tertiary);
}

.search-input-icon {
    position: absolute;
    left: 14px;
    font-size: 20px;
    color: var(--accent);
    pointer-events: none;
    flex-shrink: 0;
    transition: var(--transition);
}

/* The actual text input */
.search-page-input {
    width: 100%;
    padding: 11px 44px 11px 44px;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 400;
    caret-color: var(--accent);
}

.search-page-input::placeholder {
    color: var(--text-muted);
}

/* Clear (X) button */
.search-clear-btn {
    position: absolute;
    right: 8px;
    width: 32px;
    height: 32px;
    border: none;
    background: var(--bg-tertiary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-secondary);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    flex-shrink: 0;
}

.search-clear-btn.visible {
    opacity: 1;
    pointer-events: auto;
}

.search-clear-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.search-clear-btn .material-symbols-outlined {
    font-size: 18px;
}

/* ---- Search Body (Scrollable Content) ---- */
.search-page-body {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0 80px;
    -webkit-overflow-scrolling: touch;
}

/* ---- Default View: Popular Apps ---- */
.search-default-view {
    padding: 12px 16px;
}

.search-hint-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 12px;
    padding: 0 2px;
}

.search-popular-grid {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* Popular app row (icon + name + category) */
.search-popular-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 14px;
    border-radius: 14px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    color: var(--text-primary);
}

.search-popular-item:hover {
    background: var(--bg-secondary);
}

.search-popular-item:active {
    transform: scale(0.98);
}

.search-popular-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
}

.search-popular-info {
    flex: 1;
    min-width: 0;
}

.search-popular-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.search-popular-meta {
    font-size: 12px;
    color: var(--text-muted);
}

.search-popular-arrow {
    font-size: 20px;
    color: var(--text-muted);
    flex-shrink: 0;
}

/* ---- Live Suggestions Dropdown ---- */
.search-suggestions-list {
    display: none;
    flex-direction: column;
    padding: 4px 0;
}

.search-suggestions-list.visible {
    display: flex;
}

/* Individual suggestion row */
.suggestion-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 16px;
    cursor: pointer;
    transition: background 0.15s ease;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    font-family: var(--font-sans);
    color: var(--text-primary);
    text-decoration: none;
}

.suggestion-item:hover {
    background: var(--bg-secondary);
}

.suggestion-item:active {
    background: var(--bg-tertiary);
}

.suggestion-app-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
}

.suggestion-search-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--text-muted);
    font-size: 20px;
}

.suggestion-text-wrap {
    flex: 1;
    min-width: 0;
}

.suggestion-title {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.suggestion-title mark {
    background: none;
    color: var(--accent);
    font-weight: 700;
}

.suggestion-sub {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

.suggestion-divider {
    height: 1px;
    background: var(--border-color);
    margin: 4px 16px;
    opacity: 0.5;
}

/* ---- Search Results ---- */
.search-results-view {
    display: none;
    padding: 12px 16px;
}

.search-results-view.visible {
    display: block;
}

.search-results-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 16px;
    padding: 0 2px;
}

/* Results use same apps-grid class */
.search-results-view .apps-grid {
    /* inherits from main .apps-grid styles */
}

/* No results state in search */
.search-no-results {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.search-no-results .material-symbols-outlined {
    font-size: 56px;
    display: block;
    margin-bottom: 12px;
    opacity: 0.5;
}

.search-no-results p {
    font-size: 16px;
    font-weight: 500;
}

.search-no-results small {
    font-size: 13px;
    display: block;
    margin-top: 6px;
    opacity: 0.7;
}

/* ---- Divider between sections ---- */
.search-section-divider {
    height: 1px;
    background: var(--border-color);
    margin: 8px 0;
}

/* =========================================================
   Light Theme Overrides for Search
   ========================================================= */
body.light-theme .search-page {
    background: #f1f3f4;
}

body.light-theme .search-page-header {
    background: #f1f3f4;
}

body.light-theme .search-input-wrap {
    background: #ffffff;
}

body.light-theme .search-input-wrap:focus-within {
    background: #ffffff;
}

body.light-theme .search-popular-item:hover {
    background: #ffffff;
}

body.light-theme .suggestion-item:hover {
    background: #ffffff;
}

body.light-theme .search-clear-btn {
    background: rgba(0, 0, 0, 0.08);
    color: #5f6368;
}

body.light-theme .search-hint-label,
body.light-theme .search-results-label {
    color: #80868b;
}

/* =========================================================
   Social Media Badges & Cards
   ========================================================= */
.social-links-container {
    margin-top: 14px;
    margin-bottom: 20px;
}

.social-links-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.social-badges-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.social-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid transparent;
}

/* Platform Brand Colors & Glows */
.social-badge.telegram {
    background: rgba(0, 136, 204, 0.08);
    color: #0088cc;
    border-color: rgba(0, 136, 204, 0.2);
}
.social-badge.telegram:hover {
    background: #0088cc;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(0, 136, 204, 0.3);
}

.social-badge.discord {
    background: rgba(88, 101, 242, 0.08);
    color: #5865F2;
    border-color: rgba(88, 101, 242, 0.2);
}
.social-badge.discord:hover {
    background: #5865F2;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(88, 101, 242, 0.3);
}

.social-badge.youtube {
    background: rgba(255, 0, 0, 0.08);
    color: #ff3333;
    border-color: rgba(255, 0, 0, 0.2);
}
.social-badge.youtube:hover {
    background: #ff0000;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(255, 0, 0, 0.3);
}

.social-badge.facebook {
    background: rgba(24, 119, 242, 0.08);
    color: #1877F2;
    border-color: rgba(24, 119, 242, 0.2);
}
.social-badge.facebook:hover {
    background: #1877F2;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(24, 119, 242, 0.3);
}

.social-badge.instagram {
    background: rgba(225, 48, 108, 0.08);
    color: #e1306c;
    border-color: rgba(225, 48, 108, 0.2);
}
.social-badge.instagram:hover {
    background: #e1306c;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(225, 48, 108, 0.3);
}

.social-badge.generic-link {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border-color: var(--border-color);
}
.social-badge.generic-link:hover {
    background: var(--accent);
    color: var(--bg-primary);
    border-color: var(--accent);
    box-shadow: 0 4px 14px rgba(0, 230, 118, 0.3);
}

/* Inline badges for in-text links */
.social-badge.inline-badge {
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11.5px;
    margin: 0 3px;
    vertical-align: middle;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* =========================================================
   Reviews & Ratings Section
   ========================================================= */
.reviews-section {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.reviews-section h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

/* Google Play Rating Summary layout */
.rating-summary-card {
    display: flex;
    align-items: center;
    gap: 24px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 20px;
}

.rating-summary-left {
    text-align: center;
    min-width: 80px;
}

.rating-summary-number {
    font-size: 42px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.1;
}

.rating-summary-stars {
    display: flex;
    justify-content: center;
    gap: 2px;
    color: #FFD600; /* Star Gold */
    margin: 6px 0 4px;
}

.rating-summary-stars span {
    font-size: 14px;
}

.rating-summary-count {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Stars distribution bars */
.rating-summary-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.rating-bar-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: var(--text-secondary);
}

.rating-bar-label {
    width: 8px;
    font-weight: 600;
}

.rating-bar-track {
    flex: 1;
    height: 6px;
    background: var(--bg-secondary);
    border-radius: 3px;
    overflow: hidden;
}

.rating-bar-fill {
    height: 100%;
    background: var(--accent);
    border-radius: 3px;
    width: 0%; /* Dynamic */
    transition: width 0.6s ease;
}

/* Reviews List */
.reviews-list-container {
    max-height: 280px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-right: 6px;
    margin-bottom: 24px;
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) transparent;
}

.reviews-list-container::-webkit-scrollbar {
    width: 4px;
}
.reviews-list-container::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

.review-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px 14px;
}

.review-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 6px;
}

.review-author-info {
    display: flex;
    flex-direction: column;
}

.review-username {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
}

.review-stars {
    display: flex;
    gap: 1px;
    color: #FFD600;
    margin-top: 2px;
}

.review-stars span {
    font-size: 11px;
}

.review-date {
    font-size: 11px;
    color: var(--text-muted);
}

.review-comment {
    font-size: 13px;
    line-height: 1.4;
    color: var(--text-secondary);
    word-break: break-word;
}

/* Review Submission Form */
.review-form-container {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 16px;
}

.review-form-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

/* Interactive Star selector */
.review-star-selector {
    display: flex;
    gap: 6px;
    margin-bottom: 14px;
}

.review-star-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0;
    transition: transform 0.15s ease;
}

.review-star-btn:hover {
    transform: scale(1.15);
}

.review-star-btn.active {
    color: #FFD600;
}

.review-star-btn span {
    font-size: 26px;
}

.review-form-inputs {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.review-input-text {
    width: 100%;
    padding: 10px 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 13px;
    outline: none;
    transition: var(--transition);
}

.review-input-text:focus {
    border-color: var(--accent);
}

.review-textarea {
    resize: none;
    height: 70px;
}

.review-submit-btn {
    background: var(--accent);
    color: var(--bg-primary);
    border: none;
    border-radius: 10px;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 4px;
}

.review-submit-btn:hover {
    background: var(--accent-hover);
}

.review-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Light Theme tweaks */
body.light-theme .rating-summary-card,
body.light-theme .review-form-container {
    background: #ffffff;
}

body.light-theme .review-card {
    background: #f8f9fa;
}

body.light-theme .review-input-text {
    background: #f1f3f4;
}

/* Hide scrollbar on mobile viewport for a clean native app look */
@media (max-width: 768px) {
    .modal-content::-webkit-scrollbar,
    .search-page::-webkit-scrollbar,
    body::-webkit-scrollbar {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
    }
    
    .modal-content,
    .search-page,
    body {
        -ms-overflow-style: none !important;  /* IE and Edge */
        scrollbar-width: none !important;  /* Firefox */
    }
}

/* =========================================================
   Play Store Style Horizontal Scrolling Sections
   ========================================================= */
.section-row-wrapper {
    margin-bottom: 28px;
}

.section-row-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding: 0 4px;
}

.section-row-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
    position: relative;
    padding-left: 10px;
}

.section-row-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3.5px;
    height: 15px;
    background: var(--accent);
    border-radius: 4px;
}

/* Horizontal scroll view list container */
.horizontal-scroll-container {
    width: 100%;
    overflow-x: auto;
    padding: 6px 4px 12px 4px;
    margin: 0 -4px;
    /* Hide scrollbar by default */
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.horizontal-scroll-container::-webkit-scrollbar {
    display: none;
}

.horizontal-scroll-list {
    display: flex;
    gap: 16px;
    width: max-content;
}

/* Horizontal App Card overrides */
.app-card.horizontal-card {
    width: 130px; /* Fixed width for card slides */
    flex-shrink: 0;
    padding: 12px;
    border-radius: 16px;
    text-align: left;
    align-items: flex-start;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
}

.app-card.horizontal-card .app-card-img-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}

.app-card.horizontal-card .app-card-icon-wrap {
    width: 72px;
    height: 72px;
    margin-bottom: 0;
}

.app-card.horizontal-card .app-card-icon-wrap::before {
    border-radius: 18px;
}

.app-card.horizontal-card .app-card-icon-wrap::after {
    border-radius: 16px;
}

.app-card.horizontal-card .app-card-icon {
    width: 72px;
    height: 72px;
    border-radius: 16px;
}

.app-card.horizontal-card .app-card-title-row {
    display: flex;
    align-items: center;
    width: 100%;
    margin-bottom: 3px;
    justify-content: flex-start;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-primary);
    overflow: hidden;
}

.app-card.horizontal-card .app-card-title-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.app-card.horizontal-card .app-card-version {
    font-size: 11px;
    color: var(--accent);
    margin-bottom: 2px;
}

.app-card.horizontal-card .app-card-size {
    font-size: 11.5px;
    color: var(--text-secondary);
    margin-bottom: 2px;
}

.app-card.horizontal-card .app-card-downloads {
    font-size: 11px;
    color: var(--text-muted);
}

/* 4-columns layout override for See All page */
.apps-grid.four-columns {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 20px !important;
}

/* Mobile responsive layout for See All page (2 columns on mobile to avoid squishing) */
@media (max-width: 768px) {
    .apps-grid.four-columns {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 14px !important;
    }
}

/* =========================================================
   User Authentication & Profile UI
   ========================================================= */
.auth-container {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 30px 24px;
    width: 100%;
    max-width: 400px;
    margin: 20px auto;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    box-sizing: border-box;
    grid-column: 1 / -1; /* Fix grid squishing */
}

.auth-header {
    text-align: center;
    margin-bottom: 24px;
}

.auth-header h2 {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.auth-header p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.auth-tabs {
    display: flex;
    background: var(--bg-tertiary);
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 24px;
    width: 100%;
    box-sizing: border-box;
}

.auth-tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    padding: 12px 4px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    white-space: nowrap;
}

.auth-tab-btn.active {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 4px 12px rgba(0,210,255,0.3);
}

.auth-form {
    display: none;
    flex-direction: column;
    gap: 16px;
    animation: fadeIn 0.4s ease;
    width: 100%;
}

.auth-form.active {
    display: flex;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-left: 4px;
}

.auth-input {
    width: 100%;
    background: var(--bg-tertiary) !important;
    border: 1px solid var(--border-color);
    padding: 14px 16px;
    border-radius: 12px;
    color: var(--text-primary) !important;
    font-size: 14px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

/* Fix browser autofill background issue */
.auth-input:-webkit-autofill,
.auth-input:-webkit-autofill:hover, 
.auth-input:-webkit-autofill:focus, 
.auth-input:-webkit-autofill:active{
    -webkit-box-shadow: 0 0 0 30px var(--bg-tertiary) inset !important;
    -webkit-text-fill-color: var(--text-primary) !important;
    transition: background-color 5000s ease-in-out 0s;
}

.auth-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(0,210,255,0.1);
}

.auth-submit-btn {
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: #fff;
    border: none;
    padding: 14px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-top: 8px;
}

.auth-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,210,255,0.4);
}

.auth-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}



