/*
Theme Name: MedLearno Question Bank
Theme URI: https://qb.medlearno.in
Author: MedLearno Team
Description: A dedicated question bank and testing platform for medical entrance exams like NEET, AIIMS, JIPMER.
Version: 1.0.0
Text Domain: medlearno-qb
*/

/* ═══════════════════════════════════════════
   CSS VARIABLES
═══════════════════════════════════════════ */
:root {
    --primary: #3b82f6;
    --primary-dark: #1d4ed8;
    --primary-light: #60a5fa;
    --secondary: #8b5cf6;
    --accent: #f59e0b;
    --danger: #ef4444;
    --success: #22c55e;
    --warning: #eab308;
    --dark: #1e293b;
    --gray-900: #111827;
    --gray-800: #1f2937;
    --gray-700: #374151;
    --gray-600: #4b5563;
    --gray-500: #6b7280;
    --gray-400: #9ca3af;
    --gray-300: #d1d5db;
    --gray-200: #e5e7eb;
    --gray-100: #f3f4f6;
    --gray-50: #f9fafb;
    --white: #ffffff;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1);
    --radius: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --transition: all 0.3s ease;
}

/* ═══════════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════════ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-800);
    background: var(--gray-50);
}

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
}

/* ═══════════════════════════════════════════
   LAYOUT
═══════════════════════════════════════════ */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ═══════════════════════════════════════════
   HEADER
═══════════════════════════════════════════ */
.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0;
    padding-bottom: 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
}

/* Logo */
.logo, .site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--gray-900);
}

.logo-icon {
    font-size: 24px;
}

.logo-text {
    font-size: 22px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Main Navigation */
.main-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
}

.main-nav ul,
.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.main-nav a,
.nav-menu a {
    color: var(--gray-700);
    font-weight: 500;
    padding: 8px 0;
    position: relative;
    font-size: 15px;
    text-decoration: none;
    transition: color 0.3s;
}

.main-nav a:hover,
.main-nav a.active,
.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary);
}

.main-nav a::after,
.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s;
}

.main-nav a:hover::after,
.main-nav a.active::after,
.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

/* Header Actions & Nav Actions */
.header-actions,
.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* User Dropdown */
.user-dropdown {
    position: relative;
}

.user-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 6px 14px;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    color: var(--gray-700);
}

.user-btn:hover {
    border-color: var(--primary);
}

.user-avatar {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-size: 14px;
}

.user-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--gray-700);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 220px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    z-index: 100;
}

.user-dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: var(--radius);
    color: var(--gray-700);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
}

.dropdown-menu a:hover {
    background: var(--gray-50);
    color: var(--primary);
}

.dropdown-menu a::after {
    display: none;
}

.dropdown-menu hr {
    border: none;
    border-top: 1px solid var(--gray-100);
    margin: 6px 0;
}

.dropdown-menu .logout-link {
    color: var(--danger);
}

.dropdown-menu .logout-link:hover {
    background: #fef2f2;
    color: var(--danger);
}

/* Social Links */
.social-links {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.social-links a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: var(--gray-400);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

/* ═══════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
    color: var(--white);
}

.btn-outline,
.btn-secondary {
    background: var(--white);
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover,
.btn-secondary:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-success {
    background: linear-gradient(135deg, var(--secondary), #059669);
    color: var(--white);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger), #dc2626);
    color: var(--white);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 17px;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

/* ═══════════════════════════════════════════
   HERO SECTION
═══════════════════════════════════════════ */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
}

.hero h1 {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero p {
    font-size: 20px;
    opacity: 0.9;
    margin-bottom: 30px;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
}

.stat-label {
    font-size: 14px;
    opacity: 0.8;
}

/* ═══════════════════════════════════════════
   CARDS
═══════════════════════════════════════════ */
.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: all 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.card-body {
    padding: 20px;
}

/* Subject Cards */
.subject-card {
    padding: 30px;
    text-align: center;
    border-left: 4px solid var(--primary);
}

.subject-card .icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 24px;
    color: var(--white);
}

.subject-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--gray-900);
}

.subject-card p {
    color: var(--gray-500);
    font-size: 14px;
}

.subject-card .count {
    display: inline-block;
    padding: 5px 15px;
    background: var(--gray-100);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-700);
    margin-top: 15px;
}

/* ═══════════════════════════════════════════
   QUESTION STYLES
═══════════════════════════════════════════ */
.question-filters {
    background: var(--white);
    padding: 25px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-end;
}

.filter-group {
    flex: 1;
    min-width: 180px;
}

.filter-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-600);
    margin-bottom: 6px;
}

.filter-group select,
.filter-group input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 14px;
}

.filter-group select:focus,
.filter-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Question Card */
.question-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    margin-bottom: 20px;
    overflow: hidden;
}

.question-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-100);
}

.question-meta {
    display: flex;
    gap: 10px;
}

.question-tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.tag-subject {
    background: #dbeafe;
    color: #1e40af;
}

.tag-topic {
    background: #dcfce7;
    color: #166534;
}

.tag-difficulty-easy {
    background: #d1fae5;
    color: #065f46;
}

.tag-difficulty-medium {
    background: #fef3c7;
    color: #92400e;
}

.tag-difficulty-hard {
    background: #fee2e2;
    color: #991b1b;
}

.tag-pyq {
    background: #fce7f3;
    color: #9d174d;
}

.question-number {
    font-weight: 700;
    color: var(--gray-500);
}

.question-body {
    padding: 25px;
}

.question-text {
    font-size: 17px;
    line-height: 1.7;
    color: var(--gray-800);
    margin-bottom: 20px;
}

/* Options */
.options-list {
    list-style: none;
}

.option-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    margin-bottom: 10px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s;
}

.option-item:hover {
    border-color: var(--primary);
    background: #eff6ff;
}

.option-item.selected {
    border-color: var(--primary);
    background: #eff6ff;
}

.option-item.correct {
    border-color: var(--success);
    background: #dcfce7;
}

.option-item.incorrect {
    border-color: var(--danger);
    background: #fee2e2;
}

.option-label {
    width: 32px;
    height: 32px;
    background: var(--gray-100);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--gray-600);
    flex-shrink: 0;
}

.option-item.selected .option-label {
    background: var(--primary);
    color: var(--white);
}

.option-item.correct .option-label {
    background: var(--success);
    color: var(--white);
}

.option-item.incorrect .option-label {
    background: var(--danger);
    color: var(--white);
}

.option-text {
    flex: 1;
    font-size: 15px;
    line-height: 1.5;
    padding-top: 4px;
}

/* Explanation */
.question-explanation {
    background: #f0fdf4;
    border-left: 4px solid var(--success);
    padding: 20px;
    margin-top: 20px;
    border-radius: 0 var(--radius) var(--radius) 0;
}

.explanation-title {
    font-weight: 700;
    color: var(--success);
    margin-bottom: 10px;
}

.explanation-text {
    color: var(--gray-700);
    line-height: 1.7;
}

/* ═══════════════════════════════════════════
   TEST INTERFACE
═══════════════════════════════════════════ */
.test-container {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
    min-height: calc(100vh - 80px);
}

.test-main {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 30px;
}

.test-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

/* Timer */
.test-timer {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    padding: 20px;
    border-radius: var(--radius-lg);
    text-align: center;
    margin-bottom: 20px;
}

.timer-label {
    font-size: 13px;
    opacity: 0.9;
    margin-bottom: 5px;
}

.timer-display {
    font-size: 36px;
    font-weight: 700;
    font-family: 'Courier New', monospace;
}

.timer-warning {
    background: linear-gradient(135deg, var(--warning), #d97706);
}

.timer-danger {
    background: linear-gradient(135deg, var(--danger), #dc2626);
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

/* Question Navigator */
.question-navigator {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 20px;
}

.navigator-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-600);
    margin-bottom: 15px;
}

.navigator-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

.nav-btn {
    width: 40px;
    height: 40px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    background: var(--white);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.nav-btn:hover {
    border-color: var(--primary);
}

.nav-btn.current {
    border-color: var(--primary);
    background: var(--primary);
    color: var(--white);
}

.nav-btn.answered {
    background: var(--success);
    border-color: var(--success);
    color: var(--white);
}

.nav-btn.marked {
    background: var(--warning);
    border-color: var(--warning);
    color: var(--white);
}

/* Navigator Legend */
.navigator-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--gray-100);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--gray-600);
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 3px;
}

.legend-dot.answered { background: var(--success); }
.legend-dot.marked { background: var(--warning); }
.legend-dot.current { background: var(--primary); }
.legend-dot.unanswered { background: var(--gray-200); }

/* Test Actions */
.test-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-200);
}

/* ═══════════════════════════════════════════
   RESULTS PAGE
═══════════════════════════════════════════ */
.results-header {
    text-align: center;
    padding: 50px 0;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    border-radius: var(--radius-xl);
    margin-bottom: 40px;
}

.results-score {
    font-size: 72px;
    font-weight: 800;
    margin-bottom: 10px;
}

.results-grade {
    font-size: 24px;
    opacity: 0.9;
}

.results-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: var(--white);
    padding: 25px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    text-align: center;
}

.stat-card .value {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
}

.stat-card .label {
    font-size: 14px;
    color: var(--gray-500);
    margin-top: 5px;
}

.stat-card.correct .value { color: var(--success); }
.stat-card.incorrect .value { color: var(--danger); }

/* ═══════════════════════════════════════════
   FORMS
═══════════════════════════════════════════ */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 8px;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    transition: all 0.2s;
    background: var(--white);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.form-input.error {
    border-color: var(--danger);
}

.form-error {
    color: var(--danger);
    font-size: 13px;
    margin-top: 5px;
}

/* ═══════════════════════════════════════════
   AUTH PAGES
═══════════════════════════════════════════ */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 40px 20px;
}

.auth-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 420px;
    padding: 40px;
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h1 {
    font-size: 28px;
    color: var(--gray-900);
    margin-bottom: 10px;
}

.auth-header p {
    color: var(--gray-500);
}

.auth-footer {
    text-align: center;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid var(--gray-200);
    color: var(--gray-500);
}

/* ═══════════════════════════════════════════
   SUBSCRIPTION CARDS
═══════════════════════════════════════════ */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: 40px 0;
}

.pricing-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    padding: 35px;
    text-align: center;
    position: relative;
    transition: all 0.3s;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.pricing-card.featured {
    border: 2px solid var(--primary);
}

.pricing-card.featured::before {
    content: 'Most Popular';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: var(--white);
    padding: 5px 20px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.pricing-name {
    font-size: 22px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 10px;
}

.pricing-price {
    margin: 20px 0;
}

.pricing-price .amount {
    font-size: 48px;
    font-weight: 800;
    color: var(--primary);
}

.pricing-price .period {
    color: var(--gray-500);
}

.pricing-features {
    list-style: none;
    text-align: left;
    margin: 25px 0;
}

.pricing-features li {
    padding: 10px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--gray-600);
    border-bottom: 1px solid var(--gray-100);
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features .check {
    color: var(--success);
    font-weight: bold;
}

/* ═══════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════ */
.site-footer {
    background: var(--gray-900);
    color: var(--gray-300);
    padding: 60px 0 30px;
    margin-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand {
    font-size: 24px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 15px;
}

.footer-desc {
    color: var(--gray-400);
    line-height: 1.7;
}

.footer-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--gray-400);
}

.footer-links a:hover {
    color: var(--white);
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid var(--gray-800);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-copyright {
    color: var(--gray-500);
    font-size: 14px;
}

/* ═══════════════════════════════════════════
   ALERTS
═══════════════════════════════════════════ */
.alert {
    padding: 15px 20px;
    border-radius: var(--radius);
    margin-bottom: 20px;
}

.alert-success {
    background: #dcfce7;
    border-left: 4px solid var(--success);
    color: #166534;
}

.alert-error {
    background: #fee2e2;
    border-left: 4px solid var(--danger);
    color: #991b1b;
}

.alert-warning {
    background: #fef3c7;
    border-left: 4px solid var(--warning);
    color: #92400e;
}

.alert-info {
    background: #dbeafe;
    border-left: 4px solid var(--primary);
    color: #1e40af;
}

/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */
@media (max-width: 1024px) {
    .test-container {
        grid-template-columns: 1fr;
    }

    .test-sidebar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: var(--white);
        padding: 15px;
        box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
        z-index: 100;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 32px;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 20px;
    }

    .main-nav {
        display: none;
    }

    .results-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 50px 0;
    }

    .hero h1 {
        font-size: 26px;
    }

    .btn-lg {
        padding: 14px 24px;
        font-size: 15px;
    }

    .auth-card {
        padding: 30px 20px;
    }

    .pricing-card {
        padding: 25px;
    }

    .navigator-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Mobile Menu Toggle (Hamburger) */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--gray-700);
    border-radius: 2px;
    transition: var(--transition);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .main-nav {
        display: flex;
    }

    .nav-menu {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--white);
        z-index: 9999;
        flex-direction: column;
        gap: 0;
        padding: 80px 30px 30px;
        overflow-y: auto;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        border-bottom: 1px solid var(--gray-100);
    }

    .nav-menu a {
        display: block;
        padding: 16px 0;
        font-size: 18px;
        color: var(--gray-800);
    }

    .nav-menu a::after {
        display: none;
    }

    .nav-actions {
        gap: 8px;
    }

    .user-name {
        display: none;
    }

    .user-btn svg {
        display: none;
    }
}

/* Legacy mobile menu (fullscreen overlay) */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    z-index: 9999;
    padding: 80px 30px 30px;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu ul {
    list-style: none;
}

.mobile-menu li {
    border-bottom: 1px solid var(--gray-100);
}

.mobile-menu a {
    display: block;
    padding: 15px 0;
    font-size: 18px;
    color: var(--gray-800);
}

.mobile-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
}

/* Loading */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--gray-200);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
