/* ----------------------------------------------------
   Modern Glassmorphism & High-Performance Design System
   ---------------------------------------------------- */

:root {
    /* Color Palette (Dark Theme Default) */
    --bg-base: #0a0f1d;
    --bg-surface: rgba(18, 26, 44, 0.65);
    --bg-surface-hover: rgba(30, 41, 67, 0.75);
    --bg-glass: rgba(255, 255, 255, 0.04);
    --border-glass: rgba(255, 255, 255, 0.1);
    --border-glow: rgba(99, 102, 241, 0.4);

    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --primary-glow: rgba(99, 102, 241, 0.3);

    --accent-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
    --card-gradient: linear-gradient(145deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.01) 100%);

    --success: #10b981;
    --success-bg: rgba(16, 185, 129, 0.15);
    --warning: #f59e0b;
    --warning-bg: rgba(245, 158, 11, 0.15);
    --danger: #ef4444;
    --danger-bg: rgba(239, 68, 68, 0.15);

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;

    --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --shadow-glow: 0 0 25px rgba(99, 102, 241, 0.25);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Theme Overrides */
body.light-theme {
    --bg-base: #f1f5f9;
    --bg-surface: rgba(255, 255, 255, 0.75);
    --bg-surface-hover: rgba(241, 245, 249, 0.9);
    --bg-glass: rgba(0, 0, 0, 0.02);
    --border-glass: rgba(0, 0, 0, 0.08);
    --border-glow: rgba(99, 102, 241, 0.3);

    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;

    --shadow-glass: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', sans-serif;
}

body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
    transition: background-color 0.4s ease, color 0.4s ease;
}

/* Ambient Glow Blobs */
.ambient-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    pointer-events: none;
    opacity: 0.5;
}

.glow-1 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, #6366f1 0%, rgba(99, 102, 241, 0) 70%);
    top: -100px;
    right: -100px;
}

.glow-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #a855f7 0%, rgba(168, 85, 247, 0) 70%);
    bottom: -150px;
    left: -100px;
}

.glow-3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, #10b981 0%, rgba(16, 185, 129, 0) 70%);
    top: 40%;
    left: 30%;
}

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

/* Utilities */
.hidden { display: none !important; }
.text-gradient {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-danger { color: var(--danger); }

/* Glass Card Utilities */
.glass-card {
    background: var(--bg-surface);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-glass);
    transition: var(--transition);
}

/* Header & Nav */
.glass-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 15, 29, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass);
    padding: 16px 0;
}

body.light-theme .glass-nav {
    background: rgba(255, 255, 255, 0.8);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-logo {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #fff;
    box-shadow: var(--shadow-glow);
}

.brand-text h1 {
    font-size: 20px;
    font-weight: 800;
}

.brand-text h1 span {
    color: var(--primary);
}

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

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

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

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

.badge {
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.live-badge {
    background: var(--success-bg);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulse 1.6s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Layout */
.main-layout {
    margin-top: 40px;
    margin-bottom: 60px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* Hero Section */
.hero-section {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

.hero-header h2 {
    font-size: 36px;
    font-weight: 900;
    line-height: 1.3;
    margin-bottom: 12px;
}

.hero-header p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

/* Search Wrapper */
.search-wrapper {
    position: relative;
    width: 100%;
}

.search-box {
    display: flex;
    align-items: center;
    padding: 8px 12px 8px 18px;
    gap: 12px;
    border-radius: var(--radius-full);
    border: 2px solid var(--border-glass);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

.search-box:focus-within {
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.search-icon {
    font-size: 20px;
    color: var(--text-muted);
}

.search-box input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 600;
    padding: 8px 0;
}

.search-box input::placeholder {
    color: var(--text-muted);
    font-weight: 400;
}

.clear-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 18px;
    cursor: pointer;
    padding: 4px 8px;
    transition: var(--transition);
}

.clear-btn:hover {
    color: var(--text-primary);
}

.primary-btn {
    background: var(--accent-gradient);
    border: none;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    padding: 12px 28px;
    border-radius: var(--radius-full);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-glow);
    transition: var(--transition);
}

.primary-btn:hover {
    transform: translateY(-2px);
    opacity: 0.95;
}

.search-hints {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
    padding: 0 16px;
    font-size: 13px;
    color: var(--text-muted);
}

/* Autocomplete Dropdown */
.autocomplete-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: 0;
    z-index: 50;
    max-height: 340px;
    overflow-y: auto;
    padding: 8px;
    border-radius: var(--radius-md);
}

.autocomplete-item {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
}

.autocomplete-item:hover {
    background: var(--bg-surface-hover);
}

.ac-name {
    font-weight: 700;
    color: var(--text-primary);
}

.ac-seating {
    font-size: 13px;
    color: var(--primary);
    background: var(--primary-glow);
    padding: 2px 10px;
    border-radius: var(--radius-full);
}

/* Loading & Empty States */
.loading-state, .empty-state {
    text-align: center;
    padding: 40px;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--border-glass);
    border-top-color: var(--primary);
    border-radius: 50%;
    margin: 0 auto 16px auto;
    animation: spin 0.8s linear infinite;
}

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

.empty-state {
    max-width: 500px;
    margin: 0 auto;
}

.error-icon {
    font-size: 48px;
    color: var(--warning);
    margin-bottom: 12px;
}

/* Student Result Card */
.result-section {
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.result-card {
    position: relative;
    padding: 36px;
    overflow: hidden;
}

.card-bg-watermark {
    position: absolute;
    top: -40px;
    left: -40px;
    font-size: 240px;
    color: var(--text-muted);
    opacity: 0.03;
    pointer-events: none;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.student-profile {
    display: flex;
    align-items: center;
    gap: 20px;
}

.avatar-box {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--primary-glow);
    border: 2px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--primary);
}

.student-meta h2 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 6px;
}

.meta-pills {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.pill {
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.seating-pill {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
}

.type-pill {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
}
.general-pill { background: rgba(99, 102, 241, 0.15); color: #818cf8; border: 1px solid rgba(99, 102, 241, 0.3); }
.stem-pill { background: rgba(168, 85, 247, 0.15); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.3); }

.status-success { background: var(--success-bg); color: var(--success); border: 1px solid rgba(16, 185, 129, 0.3); }
.status-warning { background: var(--warning-bg); color: var(--warning); border: 1px solid rgba(245, 158, 11, 0.3); }
.status-danger { background: var(--danger-bg); color: var(--danger); border: 1px solid rgba(239, 68, 68, 0.3); }

/* Leaderboard Tabs */
.card-title-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--border-glass);
    padding-bottom: 12px;
}

.lb-tab {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.lb-tab:hover {
    color: var(--text-primary);
    background: var(--bg-glass);
}

.lb-tab.active {
    background: var(--bg-surface-hover);
    color: var(--text-primary);
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

/* Celebration Banner for Successful Students */
.congrats-banner {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(99, 102, 241, 0.2) 50%, rgba(245, 158, 11, 0.2) 100%);
    backdrop-filter: blur(16px);
    border: 2px solid var(--success);
    border-radius: var(--radius-lg);
    padding: 20px 28px;
    margin-bottom: 24px;
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.25);
    animation: pulseBorder 2s infinite alternate ease-in-out;
}

@keyframes pulseBorder {
    0% { border-color: rgba(16, 185, 129, 0.8); box-shadow: 0 0 20px rgba(16, 185, 129, 0.3); }
    100% { border-color: rgba(245, 158, 11, 0.9); box-shadow: 0 0 35px rgba(245, 158, 11, 0.4); }
}

.congrats-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.congrats-icon {
    font-size: 42px;
    animation: bounce 1.5s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.congrats-text {
    flex: 1;
}

.congrats-text h3 {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.congrats-text p {
    font-size: 14px;
    color: var(--text-secondary);
}

.certificate-btn {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border: none;
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    padding: 12px 24px;
    border-radius: var(--radius-full);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.4);
    transition: var(--transition);
    white-space: nowrap;
}

.certificate-btn:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 8px 30px rgba(245, 158, 11, 0.6);
}

/* Modal Overlay & Certificate View */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-container {
    max-width: 960px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    border-bottom: 1px solid var(--border-glass);
}

.modal-header h3 {
    font-size: 18px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
    display: flex;
    justify-content: center;
    background: rgba(0, 0, 0, 0.2);
}

.certificate-canvas-wrapper {
    width: 100%;
    max-width: 860px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.certificate-canvas-wrapper canvas {
    width: 100%;
    height: auto;
    display: block;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-glass);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

@media (max-width: 768px) {
    .congrats-content { flex-direction: column; text-align: center; }
    .certificate-btn { width: 100%; justify-content: center; }
}

.secondary-btn:hover {
    background: var(--bg-surface-hover);
    border-color: var(--primary);
}

.divider {
    height: 1px;
    background: var(--border-glass);
    margin: 24px 0;
}

/* Card Body Score Layout */
.card-body {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 32px;
    align-items: center;
}

.gauge-container {
    display: flex;
    justify-content: center;
}

.svg-gauge {
    width: 160px;
    height: 160px;
    position: relative;
}

.gauge-bg {
    fill: none;
    stroke: var(--border-glass);
    stroke-width: 12;
}

.gauge-progress {
    fill: none;
    stroke: url(#gaugeGradient);
    stroke: var(--primary);
    stroke-width: 12;
    stroke-linecap: round;
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
    transition: stroke-dashoffset 1.2s ease-in-out;
}

.gauge-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.percentage-val {
    display: block;
    font-size: 28px;
    font-weight: 900;
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
}

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

/* Score details */
.score-details {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.primary-score {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.score-label {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 600;
}

.score-num {
    font-size: 32px;
    font-weight: 900;
    color: var(--primary);
    font-family: 'Outfit', sans-serif;
}

.score-max {
    font-size: 14px;
    color: var(--text-muted);
}

.score-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.metric-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.metric-card i {
    font-size: 20px;
    color: var(--primary);
}

.metric-info {
    display: flex;
    flex-direction: column;
}

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

.m-val {
    font-size: 14px;
    font-weight: 700;
}

/* Card Footer */
.card-footer {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px dashed var(--border-glass);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-muted);
}

.footer-note {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Multi-results Table */
.multi-results-section {
    animation: fadeInUp 0.5s ease;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.section-header h3 {
    font-size: 20px;
    font-weight: 800;
}

.time-badge {
    font-size: 12px;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    padding: 4px 10px;
    border-radius: var(--radius-full);
    color: var(--text-muted);
}

.table-container {
    overflow-x: auto;
    border-radius: var(--radius-md);
}

.results-table {
    width: 100%;
    border-collapse: collapse;
    text-align: right;
}

.results-table th, .results-table td {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border-glass);
}

.results-table th {
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 700;
}

.results-table tbody tr {
    transition: var(--transition);
}

.results-table tbody tr:hover {
    background: var(--bg-surface-hover);
}

.view-btn {
    background: var(--primary-glow);
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.view-btn:hover {
    background: var(--primary);
    color: #fff;
}

/* Dashboard Section */
.dashboard-section {
    margin-top: 20px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 20px;
    margin-bottom: 24px;
}

.stat-card {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.bg-primary-glow { background: var(--primary-glow); color: var(--primary); }
.bg-success-glow { background: var(--success-bg); color: var(--success); }
.bg-warning-glow { background: var(--warning-bg); color: var(--warning); }

.stat-content {
    display: flex;
    flex-direction: column;
}

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

.stat-content h4 {
    font-size: 22px;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
}

/* Dashboard Columns */
.dashboard-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.leaderboard-card, .breakdown-card {
    padding: 24px;
}

.card-title {
    margin-bottom: 18px;
}

.card-title h4 {
    font-size: 16px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
}

.leaderboard-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.lb-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
}

.lb-rank {
    font-weight: 800;
    font-size: 14px;
    width: 24px;
}

.lb-name {
    flex: 1;
    font-weight: 700;
    font-size: 14px;
    padding: 0 10px;
}

.lb-score {
    font-weight: 800;
    color: var(--primary);
    font-family: 'Outfit', sans-serif;
}

.breakdown-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.bd-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.bd-header {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 700;
}

.bd-bar-bg {
    height: 10px;
    background: var(--border-glass);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.bd-bar-fill {
    height: 100%;
    border-radius: var(--radius-full);
    transition: width 1s ease;
}

/* Footer */
.footer {
    margin-top: auto;
    padding: 24px 0;
    border-top: 1px solid var(--border-glass);
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .hero-header h2 { font-size: 26px; }
    .card-body { grid-template-columns: 1fr; text-align: center; }
    .score-grid { grid-template-columns: 1fr; }
    .dashboard-columns { grid-template-columns: 1fr; }
    .search-hints { flex-direction: column; gap: 4px; text-align: center; }
    .primary-score { flex-direction: column; gap: 8px; }
}

/* Printable Slip Styles */
@media print {
    body { background: #fff !important; color: #000 !important; }
    .ambient-glow, .glass-nav, .hero-section, .search-wrapper, .dashboard-section, .footer, .no-print {
        display: none !important;
    }
    .result-card {
        border: 2px solid #000 !important;
        box-shadow: none !important;
        background: #fff !important;
        color: #000 !important;
        padding: 20px !important;
    }
    .percentage-val, .score-num { color: #000 !important; }
    .gauge-bg { stroke: #e2e8f0 !important; }
    .gauge-progress { stroke: #000 !important; }
}
