* { margin: 0; padding: 0; box-sizing: border-box; }
        :root {
            --primary-blue: #0052CC;
            --accent-gradient: linear-gradient(135deg, #0052CC 0%, #003D99 100%);
            --bg-primary: #0a0e27;
            --bg-secondary: #1a1f3a;
            --bg-tertiary: #252d4a;
            --bg-card: rgba(26,31,58,0.6);
            --bg-modal: #0f172a;
            --text-primary: #ffffff;
            --text-secondary: #b0bec5;
            --text-muted: #78909c;
            --border-color: #2c3e50;
            --neon-blue: #0066FF;
            --green: #4caf50;
        }
        body.light-theme {
            --bg-primary: #f5f7fa;
            --bg-secondary: #ffffff;
            --bg-tertiary: #f0f4f8;
            --bg-card: rgba(255,255,255,0.7);
            --bg-modal: #ffffff;
            --text-primary: #1a1a1a;
            --text-secondary: #4a5568;
            --text-muted: #718096;
            --border-color: #e2e8f0;
            --neon-blue: #0052CC;
        }
        html { scroll-behavior: smooth; }
        body {
            font-family: 'Poppins', sans-serif;
            background: var(--bg-primary);
            color: var(--text-primary);
            transition: background 0.3s, color 0.3s;
            min-height: 100vh;
        }
        body::before {
            content: '';
            position: fixed; inset: 0;
            background:
                radial-gradient(circle at 20% 50%, rgba(0,82,204,0.15) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(0,102,255,0.15) 0%, transparent 50%);
            pointer-events: none; z-index: 0;
        }
        body.light-theme::before {
            background:
                radial-gradient(circle at 20% 50%, rgba(0,82,204,0.05) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(0,102,255,0.05) 0%, transparent 50%);
        }
        .container { max-width: 1400px; margin: 0 auto; padding: 0 20px; position: relative; z-index: 1; }

        /* ===== HEADER ===== */
        header {
            backdrop-filter: blur(10px);
            background: rgba(10,14,39,0.8);
            border-bottom: 1px solid var(--border-color);
            padding: 20px 0; position: sticky; top: 0; z-index: 100;
        }
        body.light-theme header { background: rgba(255,255,255,0.9); }
        .header-content { display: flex; justify-content: space-between; align-items: center; }
        .logo {
            font-family: 'Space Grotesk', sans-serif;
            font-size: 24px; font-weight: 700; cursor: pointer;
            background: var(--accent-gradient);
            -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
        }
        .header-right { display: flex; gap: 16px; align-items: center; }
        .credits-badge {
            display: none; align-items: center; gap: 8px;
            padding: 8px 16px; border-radius: 8px;
            background: linear-gradient(135deg, rgba(0,102,255,0.1) 0%, rgba(0,82,204,0.05) 100%);
            border: 1px solid var(--border-color);
            font-size: 13px; font-weight: 700;
        }
        .credits-val {
            font-family: 'Space Grotesk';
            background: var(--accent-gradient);
            -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
        }
        .theme-toggle {
            width: 50px; height: 28px; background: var(--bg-secondary);
            border: 1px solid var(--border-color); border-radius: 14px;
            cursor: pointer; display: flex; align-items: center; padding: 2px; transition: all 0.3s;
        }
        .toggle-circle {
            width: 24px; height: 24px; background: var(--primary-blue);
            border-radius: 50%; display: flex; align-items: center; justify-content: center;
            font-size: 12px; transition: all 0.3s; margin-left: 2px;
        }
        body.light-theme .toggle-circle { margin-left: auto; margin-right: 2px; }

        /* User menu */
        .user-menu-wrap { position: relative; cursor: pointer; display: none; }
        .user-avatar-btn {
            width: 40px; height: 40px; border-radius: 50%;
            background: var(--accent-gradient); border: none;
            display: flex; align-items: center; justify-content: center;
            font-size: 20px; cursor: pointer; color: white;
        }
        .user-dropdown {
            display: none; position: absolute; top: calc(100% + 8px); right: 0;
            background: var(--bg-secondary); border: 1px solid var(--border-color);
            border-radius: 12px; padding: 16px; min-width: 260px;
            box-shadow: 0 8px 24px rgba(0,0,0,0.3); z-index: 1001;
            animation: slideDown 0.2s ease-out;
        }
        .user-dropdown.active { display: block; }
        @keyframes slideDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
        .user-profile-header {
            display: flex; align-items: center; gap: 12px;
            padding-bottom: 14px; border-bottom: 1px solid var(--border-color); margin-bottom: 12px;
        }
        .user-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--accent-gradient); display: flex; align-items: center; justify-content: center; font-size: 22px; }
        .user-info h3 { font-family: 'Space Grotesk'; font-size: 14px; font-weight: 700; margin-bottom: 2px; }
        .user-info p { font-size: 12px; color: var(--text-secondary); }
        .menu-item {
            width: 100%; padding: 10px 12px; background: transparent; border: none;
            color: var(--text-secondary); font-size: 13px; font-weight: 600;
            cursor: pointer; transition: all 0.3s; text-align: left;
            display: flex; align-items: center; gap: 10px;
            font-family: 'Poppins'; border-radius: 6px;
        }
        .menu-item:hover { background: rgba(0,102,255,0.1); color: var(--neon-blue); }
        .menu-item.logout { color: #ff006e; margin-top: 8px; border-top: 1px solid var(--border-color); border-radius: 0; padding-top: 12px; }
        .menu-item.logout:hover { background: rgba(255,0,110,0.1); }

        /* ===== LANDING PAGE ===== */
        #landingPage { display: block; }
        .landing-header-btns { display: flex; gap: 12px; }
        .btn {
            padding: 10px 24px; border: none; border-radius: 8px;
            font-size: 13px; font-weight: 700; cursor: pointer; transition: all 0.3s;
            text-transform: uppercase; letter-spacing: 0.5px;
            font-family: 'Space Grotesk', sans-serif;
        }
        .btn-signin { background: transparent; color: var(--neon-blue); border: 1px solid var(--neon-blue); }
        .btn-signin:hover { background: rgba(0,102,255,0.1); }
        .btn-signup { background: var(--accent-gradient); color: white; box-shadow: 0 4px 15px rgba(0,82,204,0.3); }
        .btn-signup:hover { transform: translateY(-2px); }
        .hero {
            display: flex; flex-direction: column; justify-content: center;
            align-items: center; text-align: center;
            padding: 100px 20px; min-height: 60vh;
        }
        .hero h1 {
            font-family: 'Space Grotesk', sans-serif;
            font-size: 56px; font-weight: 700;
            margin-bottom: 20px; letter-spacing: -1px; line-height: 1.2;
        }
        .hero h1 span { background: var(--accent-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
        .hero p { font-size: 18px; color: var(--text-secondary); max-width: 600px; margin: 0 auto 40px auto; text-align: center; }
        .hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
        .btn-primary-hero {
            padding: 14px 40px; background: var(--accent-gradient); color: white;
            border: none; border-radius: 8px; font-size: 14px; font-weight: 700;
            cursor: pointer; transition: all 0.3s; text-transform: uppercase;
            letter-spacing: 1px; font-family: 'Space Grotesk', sans-serif;
            box-shadow: 0 4px 15px rgba(0,82,204,0.3);
        }
        .btn-primary-hero:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(0,82,204,0.5); }
        .btn-secondary-hero {
            padding: 14px 40px; background: transparent; color: var(--text-primary);
            border: 1px solid var(--border-color); border-radius: 8px; font-size: 14px;
            font-weight: 700; cursor: pointer; transition: all 0.3s; text-transform: uppercase;
            letter-spacing: 1px; font-family: 'Space Grotesk', sans-serif;
        }
        .btn-secondary-hero:hover { border-color: var(--neon-blue); color: var(--neon-blue); }
        .features {
            display: grid; grid-template-columns: repeat(3, 1fr);
            gap: 24px; margin-top: 80px; text-align: left;
        }
        .feature-card {
            background: rgba(26,31,58,0.6); backdrop-filter: blur(10px);
            border: 1px solid var(--border-color); border-radius: 16px; padding: 32px;
            transition: all 0.3s;
        }
        body.light-theme .feature-card { background: rgba(255,255,255,0.7); }
        .feature-card:hover { border-color: var(--neon-blue); transform: translateY(-4px); }
        .feature-icon { font-size: 32px; margin-bottom: 16px; }
        .feature-title { font-family: 'Space Grotesk'; font-size: 18px; font-weight: 700; margin-bottom: 8px; }
        .feature-text { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }

        /* ===== APP PAGE ===== */
        #appPage { display: none; }
        main { padding: 40px 0; }
        .page-title {
            font-family: 'Space Grotesk'; font-size: 48px; font-weight: 700;
            line-height: 1.1; margin-bottom: 12px; letter-spacing: -1px;
        }
        .page-title span { background: var(--accent-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
        .page-subtitle { font-size: 16px; color: var(--text-secondary); margin-bottom: 40px; }

        .matcher-container { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-bottom: 50px; }
        .panel {
            background: var(--bg-card); backdrop-filter: blur(10px);
            border: 1px solid var(--border-color); border-radius: 16px;
            padding: 40px; display: flex; flex-direction: column; gap: 24px; transition: all 0.3s;
        }
        .panel:hover { border-color: var(--neon-blue); transform: translateY(-4px); }
        .panel-title {
            font-family: 'Space Grotesk'; font-size: 20px; font-weight: 700;
            display: flex; align-items: center; gap: 12px; letter-spacing: -0.5px;
        }
        .panel-icon {
            width: 40px; height: 40px; border-radius: 10px;
            background: var(--accent-gradient); display: flex; align-items: center; justify-content: center; font-size: 20px;
        }

        /* Credits */
        .credits-section {
            background: linear-gradient(135deg, rgba(0,102,255,0.1) 0%, rgba(0,82,204,0.05) 100%);
            border: 1px solid var(--border-color); border-radius: 12px; padding: 20px; margin-bottom: 4px; display: none;
        }
        .credits-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
        .credits-label { font-size: 12px; font-weight: 700; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 1px; }
        .credits-amount { font-family: 'Space Grotesk'; font-size: 18px; font-weight: 700; background: var(--accent-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
        .credits-bar { width: 100%; height: 8px; background: var(--bg-tertiary); border-radius: 4px; overflow: hidden; margin-bottom: 12px; }
        .credits-fill { height: 100%; background: var(--accent-gradient); border-radius: 4px; transition: width 0.5s; }
        .credits-info { display: flex; justify-content: space-between; align-items: center; font-size: 12px; }
        .get-more-link { color: var(--neon-blue); text-decoration: none; font-weight: 700; cursor: pointer; }

        /* Upload zone */
        .upload-zone {
            border: 2px dashed var(--border-color); border-radius: 12px;
            padding: 40px 20px; text-align: center; cursor: pointer; transition: all 0.3s;
        }
        .upload-zone:hover, .upload-zone.dragover { border-color: var(--neon-blue); background: rgba(0,102,255,0.05); }
        .upload-zone.disabled {
            cursor: not-allowed;
            opacity: 0.5;
            background: rgba(128,128,128,0.1);
        }
        .upload-zone.disabled:hover {
            border-color: var(--border-color);
            background: rgba(128,128,128,0.1);
        }
        .upload-zone.processing {
            cursor: not-allowed;
            opacity: 0.6;
            background: rgba(255,193,7,0.1);
            border-color: rgba(255,193,7,0.3);
        }
        .upload-zone.processing:hover {
            border-color: rgba(255,193,7,0.3);
            background: rgba(255,193,7,0.1);
        }
        .upload-icon { font-size: 40px; margin-bottom: 12px; }
        .upload-text { font-family: 'Space Grotesk'; font-size: 16px; font-weight: 700; margin-bottom: 6px; }
        .upload-hint { font-size: 13px; color: var(--text-muted); }
        .file-input { display: none; }
        .file-list { display: flex; flex-direction: column; gap: 8px; }
        .file-item {
            display: flex; align-items: center; justify-content: space-between;
            padding: 12px 16px; background: var(--bg-secondary);
            border: 1px solid var(--border-color); border-radius: 8px; font-size: 13px;
        }
        .file-name-row { display: flex; align-items: center; gap: 8px; }
        .file-name-text { font-weight: 600; color: var(--text-primary); max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
        .file-size { color: var(--text-muted); font-size: 12px; }
        .file-remove { background: none; border: none; color: #ff006e; cursor: pointer; font-size: 16px; padding: 2px 6px; border-radius: 4px; }
        .file-remove.disabled { opacity: 0.4; cursor: not-allowed; pointer-events: none; }
        .file-count {
            display: flex; justify-content: space-between;
            padding: 10px 16px; background: rgba(0,102,255,0.1);
            border-radius: 8px; font-size: 12px; font-weight: 700;
        }

        /* JD Form */
        .form-group { display: flex; flex-direction: column; gap: 8px; }
        .form-label { font-size: 12px; font-weight: 700; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.5px; }
        .form-input, .form-textarea {
            padding: 12px 14px; background: rgba(255,255,255,0.05);
            border: 1px solid var(--border-color); border-radius: 8px;
            color: var(--text-primary); font-size: 14px; font-family: 'Poppins'; outline: none; transition: border-color 0.3s;
        }
        body.light-theme .form-input, body.light-theme .form-textarea { background: #f8f9fa; }
        /* Fix Issue 2: loader/spinner visible in light theme */
        body.light-theme .loader { border-color: #0052CC; }
        body.light-theme .loader::after { background: #0052CC; }
        body.light-theme .spinner { border-color: rgba(0,82,204,0.25); border-top-color: #0052CC; }
        .form-input:focus, .form-textarea:focus { border-color: var(--neon-blue); }
        .form-textarea { resize: vertical; min-height: 140px; }
        .btn-action {
            padding: 12px 24px; border: none; border-radius: 8px;
            font-size: 13px; font-weight: 700; cursor: pointer; transition: all 0.3s;
            font-family: 'Space Grotesk'; text-transform: uppercase; letter-spacing: 1px; flex: 1;
        }
        .btn-action.primary { background: var(--accent-gradient); color: white; box-shadow: 0 4px 15px rgba(0,82,204,0.3); }
        .btn-action.primary:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0,82,204,0.4); }
        .btn-action:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }
        .processing-hint { text-align: center; color: var(--text-secondary); font-size: 14px; margin-top: 16px; }

        /* Results */
        .results-container { grid-column: 1 / -1; display: none; }
        .results-container.show { display: block; }
        .results-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 32px; flex-wrap: wrap; gap: 20px; }
        .results-stats { display: flex; gap: 40px; }
        .stat { display: flex; flex-direction: column; gap: 8px; }
        .stat-value { font-family: 'Space Grotesk'; font-size: 36px; font-weight: 700; background: var(--accent-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
        .stat-label { font-size: 11px; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }
        .results-actions { display: flex; gap: 12px; flex-wrap: wrap; }
        .action-btn {
            padding: 10px 20px; border: 1px solid var(--border-color); background: transparent;
            border-radius: 8px; font-size: 12px; font-weight: 700; cursor: pointer;
            transition: all 0.3s; color: var(--text-secondary);
            text-transform: uppercase; letter-spacing: 0.5px; display: flex; align-items: center; gap: 8px;
            font-family: 'Space Grotesk';
        }
        .action-btn:hover { background: rgba(0,102,255,0.1); border-color: var(--neon-blue); color: var(--neon-blue); }
        .action-btn.primary { background: var(--accent-gradient); color: white; border-color: transparent; box-shadow: 0 4px 15px rgba(0,82,204,0.3); }
        .action-btn.primary:hover { transform: translateY(-2px); }

        /* Table */
        .table-wrapper { overflow-x: auto; border: 1px solid var(--border-color); border-radius: 12px; background: rgba(10,14,39,0.5); }
        body.light-theme .table-wrapper { background: rgba(255,255,255,0.95); }
        table { width: 100%; border-collapse: collapse; font-size: 13px; }
        thead { background: linear-gradient(135deg, rgba(0,82,204,0.2) 0%, rgba(0,102,255,0.2) 100%); border-bottom: 2px solid var(--border-color); }
        th { padding: 16px; text-align: left; font-weight: 700; color: var(--neon-blue); text-transform: uppercase; letter-spacing: 0.5px; font-size: 12px; }
        tbody tr { border-bottom: 1px solid var(--border-color); transition: all 0.3s; }
        tbody tr:hover { background: rgba(0,102,255,0.1); }
        tbody tr:last-child { border-bottom: none; }
        td { padding: 16px; color: var(--text-secondary); }
        body.light-theme td { color: #2d3748; }
        .score-badge { padding: 4px 12px; border-radius: 6px; font-weight: 700; font-size: 11px; display: inline-block; }
        .score-high { background: rgba(79,172,254,0.2); color: #4facfe; }
        .score-medium { background: rgba(250,112,154,0.2); color: #fa709a; }
        .score-low { background: rgba(255,0,110,0.2); color: #ff006e; }
        .candidate-name-cell { font-weight: 600; color: var(--text-primary); }
        .table-btn {
            padding: 6px 14px; border: 1px solid var(--border-color);
            background: transparent; border-radius: 6px; font-size: 11px; font-weight: 700;
            cursor: pointer; transition: all 0.3s; color: var(--text-secondary);
            text-transform: uppercase; letter-spacing: 0.5px; font-family: 'Space Grotesk';
        }
        .table-btn:hover { background: rgba(0,102,255,0.1); border-color: var(--neon-blue); color: var(--neon-blue); }
        .table-btn.primary { background: var(--accent-gradient); color: white; border-color: transparent; }

        /* ===== CANDIDATE DETAILS PAGE ===== */
        #candidatePage { display: none; min-height: 100vh; background: var(--bg-primary); padding: 40px 0; }
        #candidatePage.active { display: block; }
        /* Fix Issue 3: candidate page text visibility in light theme */
        body.light-theme #candidatePage { color: #1a1a1a; }
        body.light-theme #candidatePage .candidate-name-cell,
        body.light-theme #candidatePage .analysis-card,
        body.light-theme #candidatePage .analysis-card h3,
        body.light-theme #candidatePage .analysis-card p,
        body.light-theme #candidatePage .analysis-item,
        body.light-theme #candidatePage .skill-card li,
        body.light-theme #candidatePage .score-label,
        body.light-theme #candidatePage .overall-badge small,
        body.light-theme #candidatePage .powered-by { color: #2d3748; }
        body.light-theme #candidatePage h1,
        body.light-theme #candidatePage h2,
        body.light-theme #candidatePage h3,
        body.light-theme #candidatePage h4,
        body.light-theme #candidatePage strong,
        body.light-theme #candidatePage b { color: #1a1a1a; }
        body.light-theme #candidatePage p,
        body.light-theme #candidatePage span,
        body.light-theme #candidatePage li,
        body.light-theme #candidatePage div { color: inherit; }
        body.light-theme #candidateContent * { color: #2d3748; }
        body.light-theme #candidateContent h1,
        body.light-theme #candidateContent h2,
        body.light-theme #candidateContent h3 { color: #1a1a1a; }
        body.light-theme #candidateContent .score-circle,
        body.light-theme #candidateContent .level-card { color: #ffffff; }
        body.light-theme #candidateContent .skill-card h3 { color: var(--neon-blue); }
        .candidate-header {
            display: flex; justify-content: space-between; align-items: center;
            padding: 32px; border-bottom: 1px solid var(--border-color);
        }
        .candidate-main-content { padding: 32px; }
        .score-row { display: flex; gap: 24px; flex-wrap: wrap; margin: 24px 0; justify-content: center; }
        .score-circle-wrap { display: flex; flex-direction: column; align-items: center; gap: 8px; }
        .score-circle {
            width: 80px; height: 80px; border-radius: 50%;
            background: var(--accent-gradient); display: flex;
            align-items: center; justify-content: center;
            font-family: 'Space Grotesk'; font-size: 20px; font-weight: 700; color: white;
        }
        .score-label { font-size: 11px; color: var(--text-muted); text-align: center; text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600; }
        .level-cards { display: flex; gap: 16px; flex-wrap: wrap; margin: 24px 0; justify-content: center; }
        .level-card { background: var(--green); padding: 16px 20px; border-radius: 10px; color: white; text-align: center; min-width: 130px; }
        .level-card b { display: block; font-size: 12px; font-weight: 700; margin-bottom: 4px; opacity: 0.85; }
        .level-card span { font-family: 'Space Grotesk'; font-size: 14px; font-weight: 700; }
        .analysis-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; margin-top: 24px; }
        .analysis-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 12px; padding: 24px; margin-bottom: 16px; }
        .analysis-card h3 { font-family: 'Space Grotesk'; font-size: 16px; font-weight: 700; margin-bottom: 16px; }
        .analysis-item { display: flex; gap: 10px; margin-bottom: 10px; font-size: 14px; color: var(--text-secondary); }
        .skill-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 12px; padding: 20px; margin-bottom: 16px; }
        .skill-card h3 { font-family: 'Space Grotesk'; font-size: 15px; font-weight: 700; margin-bottom: 14px; color: var(--neon-blue); }
        .skill-card ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
        .skill-card li { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-secondary); }
        .skill-card li::before { content: ''; width: 5px; height: 5px; background: var(--neon-blue); border-radius: 50%; flex-shrink: 0; }
        .overall-badge {
            display: flex; flex-direction: column; align-items: center;
            width: 90px; height: 90px; border-radius: 50%;
            border: 5px solid var(--green);
            justify-content: center; font-family: 'Space Grotesk'; font-size: 20px; font-weight: 700;
        }
        .overall-badge small { font-size: 11px; color: var(--text-muted); text-transform: uppercase; }
        .powered-by { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--border-color); text-align: center; font-size: 12px; color: var(--text-muted); }

        /* ===== PRICING PAGE ===== */
        #pricingPage { display: none; min-height: 100vh; }
        #pricingPage.active { display: block; }
        .pricing-grid { display: grid; grid-template-columns: 1fr; gap: 40px; margin-bottom: 60px; max-width: 480px; margin-left: auto; margin-right: auto; }
        .pricing-card {
            background: var(--bg-secondary); border: 1px solid var(--border-color);
            border-radius: 16px; padding: 40px; display: flex; flex-direction: column; gap: 20px;
            position: relative; transition: all 0.3s;
        }
        .pricing-card:hover { border-color: var(--neon-blue); transform: translateY(-4px); }
        .popular-badge {
            position: absolute; top: -16px; right: 20px;
            background: var(--accent-gradient); color: white;
            padding: 6px 16px; border-radius: 20px; font-size: 11px;
            font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
        }
        .pricing-title { font-family: 'Space Grotesk'; font-size: 24px; font-weight: 700; }
        .pricing-features { display: flex; flex-direction: column; gap: 12px; }
        .pricing-feature { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-secondary); }
        .pricing-price { display: flex; align-items: baseline; gap: 4px; }
        .currency { font-size: 14px; color: var(--text-secondary); }
        .amount { font-family: 'Space Grotesk'; font-size: 44px; font-weight: 700; color: var(--neon-blue); letter-spacing: -1px; }
        .period { font-size: 12px; color: var(--text-muted); }
        .pricing-btn {
            padding: 14px 24px; border-radius: 8px; font-size: 14px; font-weight: 700;
            cursor: pointer; text-transform: uppercase; letter-spacing: 1px;
            font-family: 'Space Grotesk'; transition: all 0.3s; width: 100%;
        }
        .pricing-btn.primary { background: var(--accent-gradient); color: white; border: none; box-shadow: 0 4px 15px rgba(0,82,204,0.3); }
        .pricing-btn.primary:hover { transform: translateY(-2px); }
        .pricing-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none !important; }
        .sub-status-card { padding: 16px 20px; border-radius: 12px; margin-bottom: 24px; border: 2px solid; font-size: 13px; }
        .sub-status-card.active-plan { background: #d4edda; border-color: #28a745; color: #000; }
        .sub-status-card.expired-plan { background: #fff3cd; border-color: #ffc107; color: #000; }
        .sub-status-card.free-plan { background: #e8f4fd; border-color: #4caf50; color: #000; }
        .sub-status-title { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
        .sub-status-info p { margin: 3px 0; font-size: 13px; }

        /* Quantity popup */
        .qty-controls { display: flex; justify-content: center; align-items: center; gap: 20px; margin: 20px 0; }
        .qty-btn {
            width: 40px; height: 40px; border: 2px solid var(--neon-blue);
            background: var(--bg-secondary); color: var(--neon-blue);
            font-size: 20px; font-weight: 700; border-radius: 6px; cursor: pointer;
        }
        .qty-display { font-family: 'Space Grotesk'; font-size: 24px; font-weight: 700; }
        .price-breakdown { background: var(--bg-secondary); padding: 16px; border-radius: 8px; border: 1px solid var(--border-color); margin-bottom: 16px; font-size: 14px; }
        .price-total { font-size: 18px; border-top: 2px solid var(--border-color); padding-top: 10px; margin-top: 10px; font-weight: 700; }

        /* ===== MODALS (shared) ===== */
        .modal {
            display: none; position: fixed; inset: 0;
            background: rgba(0,0,0,0.7); backdrop-filter: blur(5px);
            z-index: 1000; align-items: center; justify-content: center; padding: 20px; overflow-y: auto;
        }
        .modal.active { display: flex; }
        .modal-content {
            background: var(--bg-modal); border: 1px solid var(--border-color);
            border-radius: 16px; width: 100%; max-width: 440px; position: relative; overflow: hidden;
        }
        .modal-close {
            position: absolute; top: 16px; right: 16px;
            background: none; border: none; color: var(--text-secondary);
            font-size: 20px; cursor: pointer; transition: color 0.3s; z-index: 10;
        }
        .modal-close:hover { color: var(--text-primary); }
        .modal-header { padding: 36px 36px 24px; text-align: center; position: relative; }
        .modal-header h2 { font-family: 'Space Grotesk'; font-size: 28px; font-weight: 700; margin-bottom: 6px; }
        .modal-header p { font-size: 14px; color: var(--text-secondary); }
        .modal-form { padding: 0 36px 36px; }
        .modal-form .form-group { margin-bottom: 16px; }
        .modal-form .form-label { display: block; font-size: 12px; font-weight: 700; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px; }
        .modal-form .form-input {
            width: 100%; padding: 12px 14px; background: rgba(255,255,255,0.05);
            border: 1px solid var(--border-color); border-radius: 8px;
            color: var(--text-primary); font-size: 14px; font-family: 'Poppins'; outline: none; transition: border-color 0.3s;
        }
        body.light-theme .modal-form .form-input { background: #f8f9fa; }
        .modal-form .form-input:focus { border-color: var(--neon-blue); }
        .btn-submit {
            width: 100%; padding: 14px; background: var(--accent-gradient); color: white;
            border: none; border-radius: 8px; font-size: 14px; font-weight: 700;
            cursor: pointer; transition: all 0.3s; text-transform: uppercase;
            letter-spacing: 1px; font-family: 'Space Grotesk'; margin-top: 8px;
        }
        .btn-submit:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0,82,204,0.4); }
        .btn-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
        .modal-footer { padding: 16px 36px 24px; text-align: center; font-size: 13px; color: var(--text-secondary); }
        .modal-footer a, .form-link { color: var(--neon-blue); cursor: pointer; text-decoration: underline; }
        .form-link { display: block; text-align: center; margin-top: 10px; font-size: 13px; }

        /* OTP */
        .otp-container { display: flex; gap: 10px; justify-content: center; margin: 16px 0; }
        .otp-input {
            width: 44px; height: 52px; text-align: center;
            font-size: 22px; font-weight: 700;
            border-radius: 10px; border: 2px solid var(--border-color);
            background: rgba(255,255,255,0.05); color: var(--text-primary);
            outline: none; transition: border-color 0.2s;
        }
        body.light-theme .otp-input { background: #f8f9fa; }
        .otp-input:focus { border-color: var(--neon-blue); }
        .otp-input.filled { border-color: #0052CC; }

        /* Alert */
        .alert-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.65); z-index: 99999; }
        .alert-overlay.active { display: block; }
        .alert-box {
            display: none; position: fixed; top: 50%; left: 50%; transform: translate(-50%,-50%);
            background: var(--bg-modal); padding: 28px; border-radius: 12px;
            color: var(--text-primary); width: 340px; max-width: 92vw;
            z-index: 100000; text-align: center; border: 1px solid var(--border-color);
        }
        .alert-box.active { display: block; }
        .alert-box h3 { font-family: 'Space Grotesk'; margin-bottom: 12px; }
        .alert-box p { font-size: 14px; color: var(--text-secondary); white-space: pre-line; margin-bottom: 20px; }
        .alert-box button { padding: 10px 28px; background: var(--accent-gradient); color: white; border: none; border-radius: 8px; font-weight: 700; cursor: pointer; font-family: 'Space Grotesk'; }

        /* Loading */
        .loading-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); align-items: center; justify-content: center; z-index: 2000; }
        .loading-overlay.active { display: flex; }
        .spinner { width: 44px; height: 44px; border: 3px solid rgba(0,102,255,0.2); border-top-color: var(--neon-blue); border-radius: 50%; animation: spin 0.8s linear infinite; }
        @keyframes spin { to { transform: rotate(360deg); } }
        
        /* New Loader Animation */
        .loader { width:64px;height:80px;display:block;margin:0 auto;position:relative; }
        .loader::before { content:'';position:absolute;inset:0;background:rgba(255,255,255,0.08);border:2px solid rgba(0,102,255,0.5);border-radius:6px; }
        .loader::after { content:'';position:absolute;left:4px;right:4px;height:2px;background:linear-gradient(90deg,transparent,#0066FF,#00d4ff,#0066FF,transparent);border-radius:2px;box-shadow:0 0 8px #0066FF,0 0 18px rgba(0,102,255,0.5);animation:scanLine 1.6s ease-in-out infinite;top:4px; }
        @keyframes scanLine { 0%{top:6px;opacity:1} 85%{top:68px;opacity:1} 100%{top:68px;opacity:0} }
        .loader-lines { position:absolute;inset:10px 8px;display:flex;flex-direction:column;gap:7px;justify-content:center; }
        .loader-lines i { display:block;height:4px;border-radius:2px;background:rgba(255,255,255,0.12); }
        .loader-lines i:nth-child(1){width:85%} .loader-lines i:nth-child(2){width:70%} .loader-lines i:nth-child(3){width:90%} .loader-lines i:nth-child(4){width:60%} .loader-lines i:nth-child(5){width:80%}
        .analysing-text { font-size:13px;font-weight:600;letter-spacing:0.3px;color:var(--text-secondary);margin-top:14px;text-align:center; }
        .analysing-text .dot { display:inline-block;animation:dotPulse 1.4s ease-in-out infinite;opacity:0; }
        .analysing-text .dot:nth-child(2){animation-delay:0.2s} .analysing-text .dot:nth-child(3){animation-delay:0.4s} .analysing-text .dot:nth-child(4){animation-delay:0.6s}
        @keyframes dotPulse { 0%,60%,100%{opacity:0} 30%{opacity:1} }

        /* Login again modal */
        .login-again-box {
            display: none; position: fixed; top: 50%; left: 50%; transform: translate(-50%,-50%);
            background: var(--bg-modal); padding: 28px; border-radius: 12px; color: var(--text-primary);
            width: 360px; max-width: 92vw; z-index: 100001; text-align: center; border: 1px solid var(--border-color);
        }
        .login-again-box.active { display: block; }
        .login-again-box h3 { font-family: 'Space Grotesk'; margin-bottom: 10px; }
        .login-again-box p { font-size: 14px; color: var(--text-secondary); margin-bottom: 20px; }
        .login-again-box button { padding: 10px 28px; background: var(--accent-gradient); color: white; border: none; border-radius: 8px; font-weight: 700; cursor: pointer; font-family: 'Space Grotesk'; }

        /* Upgrade popup */
        .upgrade-box {
            display: none; position: fixed; top: 50%; left: 50%; transform: translate(-50%,-50%);
            background: var(--bg-modal); padding: 32px; border-radius: 14px;
            color: var(--text-primary); width: 400px; max-width: 92vw;
            z-index: 100000; text-align: center; border: 1px solid var(--border-color);
            pointer-events: auto;
        }
        .upgrade-box.active { display: block; }
        .upgrade-box h2 { font-family: 'Space Grotesk'; margin-bottom: 12px; }
        .upgrade-box p { font-size: 14px; color: var(--text-secondary); margin-bottom: 20px; }
        .view-plans-btn { padding: 12px 32px; background: var(--accent-gradient); color: white; border: none; border-radius: 8px; font-weight: 700; cursor: pointer; font-family: 'Space Grotesk'; font-size: 14px; }
        .cancel-link { display: block; margin-top: 12px; color: var(--text-muted); cursor: pointer; font-size: 13px; }

        footer { border-top: 1px solid var(--border-color); padding: 32px 0; text-align: center; font-size: 13px; color: var(--text-muted); margin-top: 80px; }
        footer a { color: var(--neon-blue); text-decoration: none; }

        /* Share Link Modal overlay */
        #shareLinkOverlay.active { opacity:1; pointer-events:auto; }
        #shareLinkModal.active { display:block; }

        @media (max-width: 768px) {
            .matcher-container { grid-template-columns: 1fr; }
            .page-title { font-size: 32px; }
            .hero h1 { font-size: 32px; }
            .results-stats { flex-direction: column; gap: 16px; }
            .analysis-grid { grid-template-columns: 1fr; }
            .features { grid-template-columns: 1fr; }
            .score-row, .level-cards { gap: 14px; }
        }

        /* ===== HAMBURGER MENU ===== */
        .menu-toggle-btn {
            background: transparent; border: 1px solid var(--border-color);
            color: var(--text-primary); width: 40px; height: 40px;
            border-radius: 10px; cursor: pointer; display: flex;
            align-items: center; justify-content: center; padding: 0;
            transition: all 0.2s; margin-right: 14px; flex-shrink: 0;
        }
        .menu-toggle-btn:hover { background: rgba(0,102,255,0.12); border-color: var(--neon-blue); }
        .menu-toggle-btn .bars { display: flex; flex-direction: column; gap: 4px; }
        .menu-toggle-btn .bars span {
            display: block; width: 18px; height: 2px;
            background: var(--text-primary); border-radius: 2px;
        }
        .header-left { display: flex; align-items: center; }

        /* ===== SIDEBAR ===== */
        .sidebar-overlay {
            position: fixed; inset: 0; background: rgba(0,0,0,0.55);
            backdrop-filter: blur(3px); opacity: 0; pointer-events: none;
            transition: opacity 0.25s ease; z-index: 1000;
        }
        .sidebar-overlay.active { opacity: 1; pointer-events: auto; }
        .app-sidebar {
            position: fixed; top: 0; left: 0; height: 100vh; width: 280px;
            background: var(--bg-secondary); border-right: 1px solid var(--border-color);
            transform: translateX(-100%); transition: transform 0.3s cubic-bezier(.4,0,.2,1);
            z-index: 1001; display: flex; flex-direction: column;
            box-shadow: 4px 0 24px rgba(0,0,0,0.35);
        }
        .app-sidebar.active { transform: translateX(0); }
        .sidebar-head {
            padding: 22px 20px; border-bottom: 1px solid var(--border-color);
            display: flex; align-items: center; justify-content: space-between;
        }
        .sidebar-head h3 {
            font-family: 'Space Grotesk', sans-serif; font-size: 18px;
            font-weight: 700; color: var(--text-primary); letter-spacing: 0.3px;
        }
        .sidebar-close {
            background: transparent; border: none; color: var(--text-secondary);
            font-size: 22px; cursor: pointer; padding: 4px 10px; border-radius: 8px;
        }
        .sidebar-close:hover { background: rgba(255,255,255,0.06); color: var(--text-primary); }
        .sidebar-nav { padding: 14px 12px; flex: 1; overflow-y: auto; }
        .sidebar-item {
            display: flex; align-items: center; gap: 12px; padding: 12px 14px;
            border-radius: 10px; cursor: pointer; color: var(--text-secondary);
            font-family: 'Poppins', sans-serif; font-size: 14px; font-weight: 500;
            transition: all 0.18s; border: 1px solid transparent;
        }
        .sidebar-item:hover { background: rgba(0,102,255,0.08); color: var(--text-primary); border-color: rgba(0,102,255,0.25); }
        .sidebar-item.active { background: var(--accent-gradient); color: #fff; border-color: transparent; }
        .sidebar-item .icon { font-size: 18px; }

        /* ===== DASHBOARD PAGE ===== */
        #dashboardPage { display: none; padding: 40px 0 60px; position: relative; z-index: 1; }
        #dashboardPage.active { display: block; }
        .dashboard-header { margin-bottom: 32px; }
        .dashboard-header h1 {
            font-family: 'Space Grotesk', sans-serif; font-size: 38px;
            font-weight: 700; color: var(--text-primary); margin-bottom: 8px;
        }
        .dashboard-header h1 span {
            background: var(--accent-gradient); -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }
        .dashboard-header p { color: var(--text-secondary); font-size: 15px; }
        .dashboard-cards {
            display: grid; grid-template-columns: repeat(3, 1fr);
            gap: 22px; margin-bottom: 36px;
        }
        .dash-card {
            background: var(--bg-card); border: 1px solid var(--border-color);
            border-radius: 16px; padding: 26px; backdrop-filter: blur(10px);
            transition: all 0.25s ease; position: relative; overflow: hidden;
        }
        .dash-card::before {
            content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
            background: var(--accent-gradient); opacity: 0.85;
        }
        .dash-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 14px 40px rgba(0,82,204,0.25);
            border-color: rgba(0,102,255,0.45);
        }
        .dash-card.clickable { cursor: pointer; }
        .dash-card-label {
            font-size: 12px; font-weight: 600; color: var(--text-muted);
            text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px;
            display: flex; align-items: center; gap: 8px;
        }
        .dash-card-value {
            font-family: 'Space Grotesk', sans-serif; font-size: 42px;
            font-weight: 700; color: var(--text-primary); line-height: 1;
        }
        .dash-card-sub { font-size: 13px; color: var(--text-secondary); margin-top: 10px; }
        .dash-card.results-card .dash-card-sub { color: var(--neon-blue); font-weight: 600; }

        /* Results table */
        .dash-table-wrap {
            background: var(--bg-card); border: 1px solid var(--border-color);
            border-radius: 16px; padding: 24px; backdrop-filter: blur(10px);
            display: none;
        }
        .dash-table-wrap.active { display: block; animation: fadeUp 0.35s ease; }
        @keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
        .dash-table-head {
            display: flex; justify-content: space-between; align-items: center;
            margin-bottom: 18px; flex-wrap: wrap; gap: 10px;
        }
        .dash-table-head h3 {
            font-family: 'Space Grotesk', sans-serif; font-size: 20px;
            color: var(--text-primary);
        }
        .dash-user-pill {
            background: rgba(0,102,255,0.12); border: 1px solid rgba(0,102,255,0.35);
            padding: 7px 14px; border-radius: 999px; font-size: 13px;
            color: var(--text-primary); font-weight: 500;
        }
        .dash-user-pill strong { color: var(--neon-blue); margin-left: 4px; }
        .dash-table { width: 100%; border-collapse: collapse; }
        .dash-table th {
            text-align: left; padding: 12px 14px; font-size: 12px;
            text-transform: uppercase; letter-spacing: 0.8px;
            color: var(--text-muted); border-bottom: 1px solid var(--border-color);
            font-weight: 600;
        }
        .dash-table td {
            padding: 14px; border-bottom: 1px solid var(--border-color);
            color: var(--text-primary); font-size: 14px;
        }
        .dash-table tr:last-child td { border-bottom: none; }
        .dash-table tr:hover td { background: rgba(0,102,255,0.04); }
        .dash-empty { text-align: center; padding: 40px 20px; color: var(--text-muted); }
        .dash-view-btn {
            background: var(--accent-gradient); color: #fff; border: none;
            padding: 7px 16px; border-radius: 8px; font-size: 13px;
            font-weight: 600; cursor: pointer; font-family: 'Space Grotesk';
            transition: transform 0.15s;
        }
        .dash-view-btn:hover { transform: scale(1.05); }

        /* Resume detail modal */
        .resume-detail-box {
            display: none; position: fixed; top: 50%; left: 50%;
            transform: translate(-50%, -50%); background: var(--bg-modal);
            border: 1px solid var(--border-color); border-radius: 16px;
            padding: 28px; z-index: 100000; width: 92%; max-width: 460px;
            box-shadow: 0 20px 60px rgba(0,0,0,0.5);
        }
        .resume-detail-box.active { display: block; animation: fadeUp 0.25s ease; }
        .resume-detail-box h3 {
            font-family: 'Space Grotesk', sans-serif; margin-bottom: 6px;
            color: var(--text-primary);
        }
        .resume-detail-box .sub { color: var(--text-muted); font-size: 13px; margin-bottom: 18px; }
        .resume-detail-list { list-style: none; max-height: 320px; overflow-y: auto; }
        .resume-detail-list li {
            padding: 10px 14px; background: rgba(0,102,255,0.06);
            border: 1px solid rgba(0,102,255,0.18); border-radius: 10px;
            margin-bottom: 8px; color: var(--text-primary); font-size: 14px;
            display: flex; align-items: center; gap: 10px;
        }
        .resume-detail-list li::before { content: '👤'; }
        .resume-detail-close {
            margin-top: 18px; width: 100%; padding: 11px;
            background: var(--accent-gradient); color: #fff; border: none;
            border-radius: 10px; font-weight: 700; cursor: pointer;
            font-family: 'Space Grotesk';
        }

        @media (max-width: 768px) {
            .dashboard-cards { grid-template-columns: 1fr; }
            .dashboard-header h1 { font-size: 28px; }
            .app-sidebar { width: 84%; max-width: 320px; }
            .dash-table th:nth-child(1), .dash-table td:nth-child(1) { font-size: 12px; }
        }

        /* ==============================================================
           ISSUE 2 FIX: Password visibility toggle
           ============================================================== */
        .pw-field-wrap {
            position: relative;
            display: flex;
            align-items: center;
        }
        .pw-field-wrap .form-input {
            padding-right: 44px;
            flex: 1;
        }
        .pw-toggle-btn {
            position: absolute;
            right: 12px;
            top: 50%;
            transform: translateY(-50%);
            background: none;
            border: none;
            cursor: pointer;
            padding: 4px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--text-secondary);
            opacity: 0.65;
            transition: opacity 0.2s, color 0.2s;
            z-index: 2;
        }
        .pw-toggle-btn:hover {
            opacity: 1;
            color: var(--neon-blue);
        }
        .eye-icon {
            width: 18px;
            height: 18px;
            display: block;
            pointer-events: none;
        }
        /* Slash line drawn via JS class */
        .pw-toggle-btn.is-visible .eye-icon-slash {
            display: block;
        }

        /* ==============================================================
           ISSUE 3 FIX: Admin Dashboard — proper layout using existing vars
           ============================================================== */
        .admin-dashboard {
            padding: 28px 32px;
            max-width: 1200px;
            margin: 0 auto;
            min-height: 100vh;
        }
        .admin-welcome-banner {
            background: var(--accent-gradient);
            border-radius: 16px;
            padding: 24px 28px;
            margin-bottom: 28px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 16px;
        }
        .admin-welcome-banner h2 {
            color: #fff;
            margin: 0;
            font-size: 22px;
            font-weight: 700;
        }
        .admin-welcome-banner p {
            color: rgba(255,255,255,0.8);
            margin: 4px 0 0;
            font-size: 14px;
        }
        .admin-logout-btn {
            background: rgba(255,255,255,0.18);
            color: #fff;
            border: 1px solid rgba(255,255,255,0.35);
            padding: 10px 20px;
            border-radius: 10px;
            font-weight: 700;
            cursor: pointer;
            font-size: 14px;
            transition: background 0.2s;
            white-space: nowrap;
        }
        .admin-logout-btn:hover { background: rgba(255,255,255,0.3); }

        .admin-filters-bar {
            background: var(--bg-card);
            border: 1px solid var(--border-color);
            border-radius: 14px;
            padding: 20px 24px;
            margin-bottom: 24px;
            display: flex;
            align-items: flex-end;
            flex-wrap: wrap;
            gap: 14px;
        }
        .admin-filter-group {
            display: flex;
            flex-direction: column;
            gap: 6px;
        }
        .admin-filter-group label {
            font-size: 12px;
            font-weight: 600;
            color: var(--text-secondary);
            text-transform: uppercase;
            letter-spacing: 0.04em;
        }
        .admin-filter-group input,
        .admin-filter-group select {
            background: var(--bg-secondary);
            border: 1px solid var(--border-color);
            border-radius: 8px;
            color: var(--text-primary);
            padding: 8px 12px;
            font-size: 14px;
            min-width: 160px;
        }
        .admin-filter-actions {
            display: flex;
            gap: 8px;
            align-items: flex-end;
        }
        .admin-filter-actions .btn-submit {
            padding: 9px 18px;
            font-size: 14px;
        }
        .admin-filter-clear {
            background: var(--bg-secondary);
            border: 1px solid var(--border-color);
            color: var(--text-secondary);
            padding: 9px 14px;
            border-radius: 8px;
            cursor: pointer;
            font-size: 13px;
        }
        .admin-filter-clear:hover { color: var(--text-primary); }

        .admin-history-section {
            background: var(--bg-card);
            border: 1px solid var(--border-color);
            border-radius: 14px;
            padding: 24px;
        }
        .admin-history-section h3 {
            margin: 0 0 18px;
            color: var(--text-primary);
            font-size: 17px;
            font-weight: 700;
        }
        .admin-table-wrap { overflow-x: auto; }
        .admin-table {
            width: 100%;
            border-collapse: collapse;
        }
        .admin-table th {
            background: var(--bg-secondary);
            color: var(--text-primary);
            font-size: 13px;
            font-weight: 700;
            padding: 11px 14px;
            text-align: left;
            white-space: nowrap;
        }
        .admin-table td {
            padding: 11px 14px;
            border-bottom: 1px solid var(--border-color);
            color: var(--text-secondary);
            font-size: 13px;
        }
        .admin-table tr:last-child td { border-bottom: none; }
        .admin-table tr:hover td {
            background: rgba(0, 102, 255, 0.04);
        }
        .admin-score-good  { color: #4caf50; font-weight: 700; }
        .admin-score-mid   { color: #ff9800; font-weight: 700; }
        .admin-score-low   { color: #ff006e; font-weight: 700; }
        .admin-empty {
            text-align: center;
            padding: 40px 20px;
            color: var(--text-secondary);
            font-size: 15px;
        }
        .admin-count-label {
            font-size: 13px;
            color: var(--text-secondary);
            margin-bottom: 12px;
            font-weight: 600;
        }

        /* ==============================================================
           ISSUE 4 FIX: Analyzing emoji / upload icon visibility in light theme
           ============================================================== */
        .upload-icon {
            font-size: 40px;
            margin-bottom: 12px;
            /* Subtle drop-shadow for light theme */
            filter: drop-shadow(0 2px 6px rgba(0, 102, 255, 0.35));
            transition: filter 0.3s, transform 0.3s;
        }
        body.light-theme .upload-icon {
            filter: drop-shadow(0 2px 8px rgba(0, 60, 180, 0.55))
                    drop-shadow(0 0 12px rgba(0, 102, 255, 0.3));
        }
        /* Gentle pulse when processing */
        .loading-overlay.active .spinner + .upload-icon,
        .upload-zone.processing .upload-icon {
            animation: iconPulse 1.4s ease-in-out infinite;
        }
        @keyframes iconPulse {
            0%, 100% { transform: scale(1);    filter: drop-shadow(0 2px 6px rgba(0,102,255,0.35)); }
            50%       { transform: scale(1.12); filter: drop-shadow(0 4px 12px rgba(0,102,255,0.65)); }
        }
        body.light-theme .spinner {
            border-color: rgba(0, 82, 204, 0.2);
            border-top-color: #0052CC;
        }

        @media (max-width: 768px) {
            .admin-dashboard { padding: 16px; }
            .admin-filters-bar { flex-direction: column; align-items: stretch; }
            .admin-filter-group input,
            .admin-filter-group select { min-width: 100%; }
            .admin-welcome-banner { flex-direction: column; }
        }

        /* Loading overlay label readability in light theme */
        body.light-theme .loading-overlay {
            background: rgba(0,0,0,0.45);
        }
        body.light-theme #loadingLabel {
            color: #fff;
            text-shadow: 0 1px 6px rgba(0,0,0,0.6);
        }

        /* ==============================================================
           ADMIN PAGE — standalone full-screen layout (appended to body)
           ============================================================== */
        #adminPage {
            position: fixed;
            inset: 0;
            z-index: 900;
            background: var(--bg-primary);
            overflow-y: auto;
            display: none;
        }
        #adminPage .admin-dashboard {
            padding: 32px;
            max-width: 1200px;
            margin: 0 auto;
        }
        /* Make admin page full-width on mobile */
        @media (max-width: 768px) {
            #adminPage .admin-dashboard { padding: 16px; }
        }
