:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #7c3aed;
    --success: #16a34a;
    --danger: #dc2626;
    --warning: #d97706;
    --info: #0891b2;
    --light: #f8fafc;
    --dark: #0f172a;
    --gray: #64748b;
    --border: #e2e8f0;
    --shadow: 0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
    --shadow-lg: 0 10px 25px rgba(0,0,0,.1);
    --radius: 12px;
    --radius-sm: 8px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: #f1f5f9;
    color: var(--dark);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* AZERBAIJAN FLAG STRIPE */
.az-flag-stripe {
    height: 4px;
    width: 100%;
    background: linear-gradient(90deg, 
        #0085ca 0%, #0085ca 33.33%, 
        #e11d48 33.33%, #e11d48 66.66%, 
        #059669 66.66%, #059669 100%
    );
}

.top-badge {
    background: rgba(37, 99, 235, 0.25);
    border: 1px solid rgba(59, 130, 246, 0.5);
    color: #93c5fd;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 12px;
}
.top-bar-link {
    color: #cbd5e1;
    font-size: 0.85rem;
    transition: color 0.2s;
}
.top-bar-link:hover {
    color: #38bdf8;
    text-decoration: none;
}
@media (max-width: 650px) {
    .hide-mobile { display: none; }
}

/* NAVBAR */
.navbar {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #e2e8f0;
}
.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}
.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}
.brand-badge-logo {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #0284c7 0%, #1e40af 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(2, 132, 199, 0.3);
}
.brand-badge-logo .logo-icon {
    font-size: 1.5rem;
}
.brand-title {
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: -0.5px;
    color: #0f172a;
    line-height: 1.1;
}
.brand-az-tag {
    background: #e11d48;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 1px 5px;
    border-radius: 4px;
}
.brand-sub {
    font-size: 0.72rem;
    color: #0284c7;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}
.navbar-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}
.navbar-nav a.nav-link {
    color: #475569;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    transition: all .2s;
    text-decoration: none;
    font-size: 0.92rem;
}
.navbar-nav a.nav-link:hover {
    background: #f1f5f9;
    color: #0284c7;
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-size: .9rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all .2s;
    text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-secondary { background: var(--secondary); color: #fff; }
.btn-success { background: var(--success); color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-warning { background: var(--warning); color: #fff; }
.btn-outline { border: 2px solid var(--primary); color: var(--primary); background: transparent; }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-sm { padding: 6px 12px; font-size: .8rem; }
.btn-lg { padding: 14px 28px; font-size: 1.05rem; }
.btn-block { width: 100%; justify-content: center; }

/* FLASH */
.flash {
    padding: 14px 20px;
    margin: 16px auto;
    max-width: 900px;
    border-radius: var(--radius-sm);
    font-weight: 500;
}
.flash-success { background: #dcfce7; color: #166534; border-left: 4px solid var(--success); }
.flash-error { background: #fee2e2; color: #991b1b; border-left: 4px solid var(--danger); }
.flash-info { background: #e0f2fe; color: #075985; border-left: 4px solid var(--info); }
.flash-warning { background: #fef3c7; color: #92400e; border-left: 4px solid var(--warning); }

/* CARDS */
.card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
    border: 1px solid var(--border);
}
.card-header {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
    font-weight: 700;
    font-size: 1.1rem;
}
.card-body { padding: 24px; }

/* FORMS */
.form-group { margin-bottom: 20px; }
.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: #374151;
    font-size: .9rem;
}
.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    transition: border-color .2s;
    background: #fff;
    font-family: inherit;
}
.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}
select.form-control { cursor: pointer; }
textarea.form-control { min-height: 120px; resize: vertical; }

/* HERO */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: #fff;
    padding: 80px 20px;
    text-align: center;
}
.hero h1 { font-size: 3rem; font-weight: 800; margin-bottom: 16px; }
.hero p { font-size: 1.2rem; opacity: .9; margin-bottom: 32px; }
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* STATS */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    padding: 40px 0;
}
.stat-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    box-shadow: var(--shadow);
    border-top: 4px solid var(--primary);
}
.stat-card.secondary { border-top-color: var(--secondary); }
.stat-card.success { border-top-color: var(--success); }
.stat-card.warning { border-top-color: var(--warning); }
.stat-value { font-size: 2.5rem; font-weight: 800; color: var(--primary); }
.stat-card.secondary .stat-value { color: var(--secondary); }
.stat-card.success .stat-value { color: var(--success); }
.stat-card.warning .stat-value { color: var(--warning); }
.stat-label { color: var(--gray); font-size: .9rem; margin-top: 4px; }

/* TABLE */
.table-responsive { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); }
th { background: var(--light); font-weight: 600; font-size: .85rem; text-transform: uppercase; color: var(--gray); }
tr:hover td { background: #f8fafc; }

/* BADGE */
.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: .75rem;
    font-weight: 600;
}
.badge-success { background: #dcfce7; color: #166534; }
.badge-danger { background: #fee2e2; color: #991b1b; }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-info { background: #e0f2fe; color: #075985; }
.badge-primary { background: #dbeafe; color: #1e40af; }

/* MAIN CONTENT */
.main-content { flex: 1; padding: 32px 0; }

/* FOOTER */
.footer {
    background: var(--dark);
    color: #94a3b8;
    text-align: center;
    padding: 20px;
    margin-top: auto;
}

/* AUTH FORMS */
.auth-container {
    max-width: 480px;
    margin: 40px auto;
    padding: 0 20px;
}
.auth-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 40px;
}
.auth-title {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 8px;
}
.auth-subtitle {
    text-align: center;
    color: var(--gray);
    margin-bottom: 32px;
}

/* EXAM */
.exam-header {
    background: var(--dark);
    color: #fff;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 99;
}
.timer {
    font-size: 1.8rem;
    font-weight: 800;
    font-family: monospace;
    color: #fbbf24;
}
.timer.danger { color: #f87171; animation: pulse 1s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .5; } }

.question-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}
.q-btn {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 2px solid var(--border);
    background: #fff;
    cursor: pointer;
    font-weight: 600;
    transition: all .2s;
    font-size: .85rem;
}
.q-btn.answered { background: var(--primary); color: #fff; border-color: var(--primary); }
.q-btn.current { border-color: var(--secondary); box-shadow: 0 0 0 2px rgba(124,58,237,.3); }

.question-block {
    background: #fff;
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
    margin-bottom: 16px;
}
.question-text {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    line-height: 1.6;
}
.option-label {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    margin-bottom: 10px;
    transition: all .2s;
}
.option-label:hover { border-color: var(--primary); background: #eff6ff; }
.option-label input[type="radio"] { display: none; }
.option-label.selected { border-color: var(--primary); background: #dbeafe; }
.option-key {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .85rem;
    flex-shrink: 0;
}
.option-label.selected .option-key { background: var(--primary); color: #fff; }

/* RESULT */
.result-card {
    text-align: center;
    padding: 40px;
}
.result-score {
    font-size: 5rem;
    font-weight: 900;
    line-height: 1;
    margin: 20px 0;
}
.result-score.pass { color: var(--success); }
.result-score.fail { color: var(--danger); }

/* REVIEW */
.review-item {
    background: #fff;
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--border);
}
.review-item.correct { border-left-color: var(--success); }
.review-item.wrong { border-left-color: var(--danger); }
.review-item.skipped { border-left-color: var(--warning); }

/* GRID */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }

/* SUBJECT CARD */
.subject-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    border: 2px solid transparent;
    transition: all .2s;
    cursor: pointer;
}
.subject-card:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.subject-icon { font-size: 2.5rem; margin-bottom: 12px; }
.subject-name { font-weight: 700; font-size: 1.1rem; margin-bottom: 4px; }
.subject-meta { color: var(--gray); font-size: .85rem; }

/* PAGINATION */
.pagination {
    display: flex;
    gap: 4px;
    justify-content: center;
    margin-top: 24px;
}
.page-btn {
    padding: 8px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: #fff;
    cursor: pointer;
    color: var(--gray);
    transition: all .2s;
}
.page-btn:hover, .page-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ADMIN SIDEBAR */
.admin-layout { display: flex; min-height: calc(100vh - 64px); }
.admin-sidebar {
    width: 260px;
    background: var(--dark);
    padding: 24px 0;
    flex-shrink: 0;
}
.admin-sidebar .menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    color: #94a3b8;
    font-weight: 500;
    transition: all .2s;
    text-decoration: none;
}
.admin-sidebar .menu-item:hover,
.admin-sidebar .menu-item.active { background: rgba(255,255,255,.08); color: #fff; text-decoration: none; }
.admin-sidebar .menu-icon { width: 20px; text-align: center; }
.admin-sidebar .menu-section {
    padding: 16px 24px 8px;
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: #475569;
    font-weight: 700;
}
.admin-main { flex: 1; padding: 32px; overflow-x: auto; }
.admin-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 24px;
}

/* MODAL */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}
.modal {
    background: #fff;
    border-radius: var(--radius);
    padding: 32px;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}
.modal-title { font-size: 1.4rem; font-weight: 800; margin-bottom: 24px; }

/* PROGRESS */
.progress-bar {
    height: 8px;
    background: var(--border);
    border-radius: 4px;
    overflow: hidden;
}
.progress-fill {
    height: 100%;
    background: var(--primary);
    transition: width .3s;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .hero h1 { font-size: 2rem; }
    .admin-layout { flex-direction: column; }
    .admin-sidebar { width: 100%; }
    .navbar-nav { gap: 4px; }
    .navbar-nav a { padding: 6px 10px; font-size: .85rem; }
}

/* UTILS */
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--gray); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.w-100 { width: 100%; }
.hidden { display: none !important; }

/* EXAM & RESULT STYLES */
.exam-sticky-bar {
    position: sticky;
    top: 64px;
    z-index: 90;
    background: #ffffff;
    border-bottom: 2px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    padding: 12px 0;
}
.exam-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.exam-info {
    display: flex;
    align-items: center;
    gap: 10px;
}
.exam-badge {
    background: #eff6ff;
    color: #2563eb;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.85rem;
}
.exam-timer-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8fafc;
    border: 2px solid #cbd5e1;
    border-radius: 10px;
    padding: 6px 16px;
}
.timer-icon { font-size: 1.3rem; }
.timer-text { display: flex; flex-direction: column; }
.timer-label { font-size: 0.7rem; color: #64748b; text-transform: uppercase; font-weight: 700; }
.timer-digits { font-size: 1.4rem; font-weight: 800; font-family: monospace; color: #0f172a; }

.grid-exam-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 24px;
    align-items: start;
}
@media (max-width: 900px) {
    .grid-exam-layout { grid-template-columns: 1fr; }
}

.question-card {
    margin-bottom: 24px;
    padding: 24px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    scroll-margin-top: 140px;
}
.question-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 8px;
}
.question-num-tag {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
    background: #f1f5f9;
    padding: 4px 12px;
    border-radius: 6px;
}
.question-points-tag { display: flex; gap: 8px; font-size: 0.85rem; font-weight: 600; }
.badge-pts-correct { background: #dcfce7; color: #166534; padding: 4px 8px; border-radius: 6px; }
.badge-pts-wrong { background: #fee2e2; color: #991b1b; padding: 4px 8px; border-radius: 6px; }

.question-text {
    font-size: 1.15rem;
    line-height: 1.6;
    color: #1e293b;
    margin-bottom: 20px;
    font-weight: 500;
}

.options-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.option-label {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}
.option-label:hover {
    border-color: #93c5fd;
    background: #f0f7ff;
}
.option-label.selected {
    border-color: #2563eb;
    background: #eff6ff;
}
.option-label input[type="radio"] { display: none; }
.option-letter {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #475569;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    flex-shrink: 0;
}
.option-label.selected .option-letter {
    background: #2563eb;
    color: #ffffff;
}
.option-content { font-size: 1.05rem; color: #1e293b; font-weight: 500; }

.question-footer {
    margin-top: 16px;
    display: flex;
    justify-content: flex-end;
}

/* Palette */
.sticky-sidebar {
    position: sticky;
    top: 150px;
}
.question-palette {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}
.palette-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-weight: 600;
    color: #475569;
    text-decoration: none;
    transition: all 0.2s;
}
.palette-btn:hover { background: #e2e8f0; text-decoration: none; }
.palette-btn.answered {
    background: #10b981;
    border-color: #059669;
    color: #ffffff;
}
.palette-legend {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.85rem;
    color: #64748b;
}
.legend-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 6px;
    vertical-align: middle;
}
.legend-dot.answered { background: #10b981; }
.legend-dot.unanswered { background: #cbd5e1; }

/* Modal */
.modal-box {
    background: #fff;
    padding: 28px;
    border-radius: 12px;
    max-width: 480px;
    width: 100%;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
}

/* Result styles */
.border-success { border: 2px solid #86efac !important; }
.border-danger { border: 2px solid #fca5a5 !important; }

.result-option-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
}
.result-option-row.opt-correct {
    background: #f0fdf4;
    border-color: #22c55e;
    font-weight: 600;
}
.result-option-row.opt-wrong {
    background: #fef2f2;
    border-color: #ef4444;
    font-weight: 600;
}
.opt-badge {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
}
.opt-correct .opt-badge { background: #22c55e; color: #fff; }
.opt-wrong .opt-badge { background: #ef4444; color: #fff; }
.opt-status-note {
    font-size: 0.85rem;
    font-weight: 700;
}
.opt-correct .opt-status-note { color: #15803d; }
.opt-wrong .opt-status-note { color: #b91c1c; }

/* MODERN PORTAL STYLES (TEHSILIM.INFO STYLE) */
.top-bar {
    background: #0f172a;
    color: #94a3b8;
    font-size: 0.85rem;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
.top-bar a { color: #cbd5e1; transition: color 0.2s; }
.top-bar a:hover { color: #38bdf8; text-decoration: none; }
.top-bar-contact { display: flex; gap: 18px; align-items: center; }

/* Enhanced Hero */
.hero-portal {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #1e40af 100%);
    color: #ffffff;
    padding: 55px 0 65px;
    position: relative;
    overflow: hidden;
}
.hero-portal::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.25) 0%, rgba(0,0,0,0) 70%);
    border-radius: 50%;
}
.hero-portal-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.85fr;
    gap: 40px;
    align-items: center;
}
@media (max-width: 991px) {
    .hero-portal-grid { grid-template-columns: 1fr; }
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #fde047;
    margin-bottom: 18px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-portal h1 {
    font-size: 2.35rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}
.hero-portal p {
    font-size: 1.05rem;
    line-height: 1.6;
    color: #cbd5e1;
    margin-bottom: 24px;
}

.hero-features-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}
.hero-feat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.08);
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    color: #e2e8f0;
    border: 1px solid rgba(255,255,255,0.1);
}

/* Quick login card on hero */
.quick-auth-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 26px;
    color: #0f172a;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255,255,255,0.3);
}
.quick-auth-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Ticker / Notice Bar */
.ticker-bar {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 10px 0;
    font-size: 0.9rem;
}
.ticker-inner {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}
.ticker-badge {
    background: #ef4444;
    color: #fff;
    padding: 3px 10px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    flex-shrink: 0;
}

/* Section Titles */
.section-header {
    text-align: center;
    margin: 44px 0 28px;
}
.section-title {
    font-size: 1.85rem;
    font-weight: 800;
    color: #0f172a;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: #2563eb;
    border-radius: 2px;
}
.section-subtitle {
    color: #64748b;
    font-size: 1.05rem;
    margin-top: 8px;
}

/* Tabs */
.tabs-nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.tab-btn {
    padding: 10px 22px;
    border-radius: 30px;
    border: 2px solid #e2e8f0;
    background: #fff;
    color: #475569;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.95rem;
}
.tab-btn:hover { border-color: #93c5fd; color: #2563eb; }
.tab-btn.active {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

/* Tests Card Grid (tehsilim style) */
.test-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}
.test-item-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
}
.test-item-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -4px rgba(0,0,0,0.12);
    border-color: #93c5fd;
}
.test-card-thumb {
    height: 120px;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.2rem;
    position: relative;
}
.test-card-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.65);
    backdrop-filter: blur(4px);
    color: #fff;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}
.test-card-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.test-card-subject {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 6px;
}
.test-card-class {
    display: inline-block;
    background: #eff6ff;
    color: #2563eb;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 12px;
    align-self: flex-start;
}
.test-card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #64748b;
    border-top: 1px solid #f1f5f9;
    padding-top: 12px;
    margin-top: auto;
    margin-bottom: 14px;
}

/* Category Grid & Buttons (tehsilim style button tiles) */
.subject-tiles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 14px;
    margin-bottom: 40px;
}
.subject-tile {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #0f172a;
    font-weight: 600;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}
.subject-tile:hover {
    background: #f8fafc;
    border-color: #2563eb;
    transform: translateY(-2px);
    text-decoration: none;
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.1);
    color: #2563eb;
}
.subject-tile-icon {
    font-size: 1.8rem;
    width: 44px;
    height: 44px;
    background: #f1f5f9;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Penalty Box Info */
.penalty-system-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 36px 32px;
    margin: 40px 0;
    box-shadow: 0 4px 14px rgba(0,0,0,0.03);
}
.penalty-header-box {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 30px;
}
.penalty-badge-icon {
    font-size: 2.4rem;
    margin-bottom: 8px;
}
.penalty-title {
    font-size: 1.65rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 8px;
}
.penalty-desc {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.5;
}
.penalty-steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px;
}
.penalty-step-box {
    border-radius: 14px;
    padding: 22px;
    border: 1px solid #e2e8f0;
    transition: transform 0.2s;
}
.penalty-step-box:hover {
    transform: translateY(-2px);
}
.penalty-step-icon {
    font-size: 2.2rem;
    margin-bottom: 12px;
}
.penalty-step-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 6px;
}
.penalty-step-desc {
    font-size: 0.88rem;
    color: #64748b;
    line-height: 1.5;
}
.step-correct {
    background: #f0fdf4;
    border-color: #bbf7d0;
}
.step-correct .penalty-step-title { color: #15803d; }

.step-wrong {
    background: #fef2f2;
    border-color: #fecaca;
}
.step-wrong .penalty-step-title { color: #b91c1c; }

.step-empty {
    background: #f8fafc;
    border-color: #e2e8f0;
}
.step-empty .penalty-step-title { color: #475569; }

.step-sample {
    background: #eff6ff;
    border: 2px solid #3b82f6;
}
.step-sample .penalty-step-title { color: #1d4ed8; }
.sample-formula {
    display: inline-block;
    margin-top: 6px;
    font-size: 0.95rem;
    color: #1e40af;
}

/* DASHBOARD SQUARES GRID */
.dashboard-squares-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 22px;
    margin-bottom: 40px;
}
.dashboard-square-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 4px 10px -2px rgba(0, 0, 0, 0.05);
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
}
.dashboard-square-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 30px -6px rgba(2, 132, 199, 0.18);
    border-color: #7dd3fc;
}
.square-thumb-box {
    height: 135px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.square-icon {
    font-size: 3.8rem;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.2));
}
.square-time-tag {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(6px);
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.2);
}
.square-mode-tag {
    position: absolute;
    bottom: 10px;
    left: 12px;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(4px);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
}
.square-body {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.square-class-label {
    display: inline-block;
    background: #e0f2fe;
    color: #0369a1;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 6px;
    margin-bottom: 8px;
    align-self: flex-start;
}
.square-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 12px;
}
.square-meta-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #64748b;
    border-top: 1px solid #f1f5f9;
    padding-top: 12px;
    margin-top: auto;
    margin-bottom: 18px;
}
.meta-icon {
    margin-right: 2px;
}
.square-btn {
    border-radius: 12px;
    padding: 12px;
    font-size: 0.95rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.btn-disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #94a3b8;
}

/* HERO BANNER & STATS & FILTERS */
.hero-az-banner {
    background: linear-gradient(135deg, #042f43 0%, #075985 45%, #064e3b 100%);
    border-radius: 20px;
    color: #ffffff;
    padding: 38px 36px;
    margin-bottom: 32px;
    box-shadow: 0 14px 32px -8px rgba(7, 89, 133, 0.35);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
}
.hero-az-banner::after {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.3) 0%, rgba(0,0,0,0) 70%);
    border-radius: 50%;
    pointer-events: none;
}
.hero-az-inner {
    display: grid;
    grid-template-columns: 1.4fr 0.9fr;
    gap: 32px;
    align-items: center;
    position: relative;
    z-index: 2;
}
@media (max-width: 900px) {
    .hero-az-inner { grid-template-columns: 1fr; }
}
.hero-az-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(8px);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #fef08a;
    margin-bottom: 16px;
}
.hero-az-title {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 12px;
    color: #ffffff;
    letter-spacing: -0.02em;
}
.text-gradient-az {
    background: linear-gradient(90deg, #38bdf8 0%, #34d399 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-az-subtitle {
    font-size: 1.05rem;
    line-height: 1.55;
    color: #e2e8f0;
    margin-bottom: 22px;
    max-width: 600px;
}
.hero-feat-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.hero-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.16);
    padding: 7px 14px;
    border-radius: 10px;
    font-size: 0.84rem;
    font-weight: 600;
    color: #f1f5f9;
}
.hero-az-cta-box {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 26px 24px;
    text-align: center;
}
.cta-box-badge {
    display: inline-block;
    background: #0284c7;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 10px;
}
.cta-box-title {
    color: #ffffff;
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 8px;
}
.cta-box-desc {
    color: #cbd5e1;
    font-size: 0.88rem;
    margin-bottom: 18px;
    line-height: 1.45;
}
.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 14px;
}
.btn-az-primary {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    padding: 12px 20px;
    border-radius: 10px;
    border: none;
    box-shadow: 0 6px 16px rgba(2, 132, 199, 0.4);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
}
.btn-az-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(2, 132, 199, 0.5);
    color: #fff;
    text-decoration: none;
}
.btn-az-outline {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 11px 20px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
}
.btn-az-outline:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    text-decoration: none;
}
.cta-footer-note {
    font-size: 0.78rem;
    color: #94a3b8;
}

/* USER HERO */
.user-hero-card {
    background: linear-gradient(135deg, #0c4a6e 0%, #075985 50%, #0f172a 100%);
    color: #ffffff;
    border-radius: 18px;
    padding: 26px 30px;
    margin-bottom: 24px;
    box-shadow: 0 8px 24px rgba(12, 74, 110, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.user-hero-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
}
.user-hero-profile {
    display: flex;
    align-items: center;
    gap: 18px;
}
.user-avatar-circle {
    width: 62px;
    height: 62px;
    background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 6px 14px rgba(2, 132, 199, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.3);
}
.user-welcome-tag {
    font-size: 0.8rem;
    font-weight: 700;
    color: #38bdf8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}
.user-hero-title {
    font-size: 1.7rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 6px;
}
.user-hero-meta {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}
.user-class-badge {
    background: #0284c7;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
}
.user-type-badge {
    color: #cbd5e1;
    font-size: 0.88rem;
}
.btn-change-class {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.92rem;
    padding: 10px 18px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn-change-class:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}

/* STATS CARDS */
.stats-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 18px;
    margin-bottom: 34px;
}
.stat-card-modern {
    background: #ffffff;
    border-radius: 14px;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
    transition: transform 0.2s, box-shadow 0.2s;
}
.stat-card-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.06);
}
.stat-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    flex-shrink: 0;
}
.stat-blue .stat-icon-wrap { background: #e0f2fe; }
.stat-teal .stat-icon-wrap { background: #ccfbf1; }
.stat-gold .stat-icon-wrap { background: #fef3c7; }
.stat-green .stat-icon-wrap { background: #dcfce7; }
.stat-val {
    font-size: 1.45rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
}
.stat-txt {
    font-size: 0.82rem;
    color: #64748b;
    font-weight: 600;
    margin-top: 3px;
}

/* CLASS SELECTOR SECTION */
.class-selector-section {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 34px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.class-selector-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f1f5f9;
}
.class-section-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}
.class-section-desc {
    font-size: 0.88rem;
    color: #64748b;
}
.active-class-indicator {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1d4ed8;
    font-size: 0.85rem;
    padding: 6px 14px;
    border-radius: 20px;
}
.class-group-block {
    margin-bottom: 16px;
}
.class-group-block:last-child {
    margin-bottom: 0;
}
.class-group-label {
    font-size: 0.9rem;
    font-weight: 700;
    color: #334155;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.class-pills-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.class-pill-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    color: #334155;
    padding: 7px 14px;
    border-radius: 24px;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}
.class-pill-btn:hover {
    background: #f1f5f9;
    border-color: #0284c7;
    color: #0284c7;
    text-decoration: none;
    transform: translateY(-1px);
}
.class-pill-btn.is-active {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    border-color: #0284c7;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.35);
}
.pill-badge {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 10px;
}
.pill-dim {
    background: #e11d48;
    color: #fff;
}
.pill-gold {
    background: #f59e0b;
    color: #fff;
}
.pill-univ {
    background: #10b981;
    color: #fff;
}

/* SUBJECTS HEADER BAR */
.subjects-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 22px;
}
.subjects-eyebrow {
    font-size: 0.8rem;
    font-weight: 700;
    color: #0284c7;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}
.subjects-main-title {
    font-size: 1.7rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
    margin-bottom: 4px;
}
.highlight-class {
    color: #0284c7;
}
.subjects-subtitle {
    font-size: 0.92rem;
    color: #64748b;
}
.subjects-header-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.badge-accent-rule {
    background: #e0f2fe;
    color: #0369a1;
    border: 1px solid #bae6fd;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 20px;
}
.badge-accent-penalty {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 20px;
}

/* ADVANTAGES SECTION */
.advantages-section {
    margin: 50px 0 40px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 36px 32px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.03);
}
.advantages-header {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 32px;
}
.adv-badge {
    display: inline-block;
    background: #e0f2fe;
    color: #0284c7;
    font-size: 0.8rem;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 8px;
}
.adv-title {
    font-size: 1.65rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 8px;
}
.adv-subtitle {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.5;
}
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 22px;
}
.adv-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 22px;
    transition: all 0.25s;
}
.adv-card:hover {
    transform: translateY(-3px);
    border-color: #0284c7;
    box-shadow: 0 8px 20px rgba(2, 132, 199, 0.08);
}
.adv-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 14px;
}
.adv-blue { background: #e0f2fe; }
.adv-red { background: #fee2e2; }
.adv-green { background: #dcfce7; }
.adv-gold { background: #fef3c7; }
.adv-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 6px;
}
.adv-card-desc {
    font-size: 0.88rem;
    color: #64748b;
    line-height: 1.5;
}

/* EMPTY STATE */
.empty-state-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    text-align: center;
    padding: 60px 20px;
    margin-bottom: 40px;
}
.empty-icon {
    font-size: 4rem;
    margin-bottom: 14px;
}
.empty-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #0f172a;
}
.empty-desc {
    color: #64748b;
    margin-bottom: 20px;
}

/* =========================================================
   FOOTER PORTAL - MULTI-COLUMN GUARANTEED GRID
   ========================================================= */
.footer-portal {
    background: #0b1324;
    color: #94a3b8;
    margin-top: 60px;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.footer-flag-stripe {
    height: 4px;
    width: 100%;
    background: linear-gradient(90deg, 
        #0085ca 0%, #0085ca 33.33%, 
        #e11d48 33.33%, #e11d48 66.66%, 
        #059669 66.66%, #059669 100%
    );
}
.footer-portal .container {
    padding-top: 48px;
    padding-bottom: 30px;
}
.footer-grid {
    display: grid !important;
    grid-template-columns: 1.7fr 1.1fr 1.1fr 1.3fr !important;
    gap: 36px !important;
    margin-bottom: 40px;
}
@media (max-width: 991px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 28px !important;
    }
}
@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }
}
.footer-col {
    display: flex;
    flex-direction: column;
}
.footer-brand-box {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}
.footer-logo-badge {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #0284c7 0%, #1e40af 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
}
.footer-brand-title {
    color: #ffffff;
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: -0.5px;
    line-height: 1.1;
}
.footer-brand-sub {
    font-size: 0.78rem;
    color: #38bdf8;
    font-weight: 700;
}
.footer-desc {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #94a3b8;
    margin-bottom: 18px;
}
.footer-features-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.footer-feat-tag {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: #cbd5e1;
    background: rgba(255, 255, 255, 0.04);
    padding: 6px 10px;
    border-radius: 6px;
    border-left: 2px solid #0284c7;
}
.footer-title {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 18px;
    padding-bottom: 10px;
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}
.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 36px;
    height: 3px;
    border-radius: 2px;
}
.title-school::after { background: #0284c7; }
.title-university::after { background: #10b981; }
.title-links::after { background: #f59e0b; }

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.footer-links li a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.92rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}
.footer-links li a:hover {
    color: #38bdf8;
    transform: translateX(4px);
    text-decoration: none;
}
.footer-links .arrow {
    color: #475569;
    font-weight: 700;
}
.footer-links li a:hover .arrow {
    color: #38bdf8;
}
.nav-badge {
    font-size: 0.68rem;
    font-weight: 800;
    padding: 1px 6px;
    border-radius: 8px;
    margin-left: 4px;
}
.nav-badge.hot { background: #e11d48; color: #fff; }
.nav-badge.gold { background: #f59e0b; color: #fff; }

.footer-support-card {
    margin-top: 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 14px;
}
.support-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: #38bdf8;
    margin-bottom: 4px;
}
.support-phone {
    font-size: 1.05rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 2px;
}
.support-time {
    font-size: 0.75rem;
    color: #64748b;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.88rem;
    color: #64748b;
}
.footer-copy strong { color: #cbd5e1; }
.footer-dev strong { color: #38bdf8; }

