/* =============================================================
   قياس الطلاب — Global Design System
   Author: Qiyas Platform
   Direction: RTL | Language: Arabic | Font: Cairo
   Color Palette: Deep Blue × Emerald Green
   ============================================================= */

/* ── Google Fonts ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800;900&display=swap');

/* ── CSS Custom Properties ────────────────────────────────── */
:root {
    /* Brand Colors */
    --primary-50:  #eff6ff;
    --primary-100: #dbeafe;
    --primary-200: #bfdbfe;
    --primary-400: #3b82f6;
    --primary-500: #2563eb;
    --primary-600: #1d4ed8;
    --primary-700: #1e40af;
    --primary-800: #1e3a8a;
    --primary-900: #172554;

    --green-50:  #ecfdf5;
    --green-100: #d1fae5;
    --green-200: #a7f3d0;
    --green-400: #34d399;
    --green-500: #10b981;
    --green-600: #059669;
    --green-700: #047857;
    --green-800: #065f46;

    /* Neutral */
    --gray-50:  #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;

    /* Semantic */
    --color-bg:        #ffffff;
    --color-surface:   #f8fafc;
    --color-border:    #e2e8f0;
    --color-text:      #1e293b;
    --color-text-muted: #64748b;
    --color-danger:    #ef4444;
    --color-success:   #10b981;
    --color-warning:   #f59e0b;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 50%, #059669 100%);
    --gradient-hero:    linear-gradient(160deg, #172554 0%, #1e40af 40%, #047857 100%);
    --gradient-card:    linear-gradient(135deg, #eff6ff 0%, #ecfdf5 100%);

    /* Shadows */
    --shadow-sm:   0 1px 2px rgba(0,0,0,0.05);
    --shadow-md:   0 4px 16px rgba(23,37,84,0.12);
    --shadow-lg:   0 8px 32px rgba(23,37,84,0.16);
    --shadow-xl:   0 20px 60px rgba(23,37,84,0.20);
    --shadow-card: 0 2px 12px rgba(23,37,84,0.09), 0 1px 3px rgba(0,0,0,0.04);

    /* Typography */
    --font-family: 'Cairo', 'Segoe UI', Tahoma, sans-serif;
    --font-size-xs:   0.75rem;
    --font-size-sm:   0.875rem;
    --font-size-base: 1rem;
    --font-size-lg:   1.125rem;
    --font-size-xl:   1.25rem;
    --font-size-2xl:  1.5rem;
    --font-size-3xl:  1.875rem;
    --font-size-4xl:  2.25rem;

    /* Spacing */
    --radius-sm:   6px;
    --radius-md:   12px;
    --radius-lg:   16px;
    --radius-xl:   24px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast:   0.15s ease;
    --transition-normal: 0.25s ease;
    --transition-slow:   0.4s ease;
}

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    direction: rtl;
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--primary-600);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover { color: var(--primary-800); }

img, svg { display: block; max-width: 100%; }

/* ── Typography ───────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family);
    font-weight: 700;
    line-height: 1.3;
    color: var(--gray-900);
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Layout ───────────────────────────────────────────────── */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ── Navbar ───────────────────────────────────────────────── */
.navbar {
    background: #ffffff;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(8px);
}

.navbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
    padding: 0 2rem;
}

.navbar__brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.navbar__logo {
    width: 42px;
    height: 42px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    font-weight: 800;
    box-shadow: var(--shadow-md);
    flex-shrink: 0;
}

.navbar__title {
    font-size: var(--font-size-base);
    font-weight: 700;
    color: var(--gray-800);
    max-width: 280px;
    line-height: 1.3;
}

.navbar__actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.navbar__user {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: var(--font-size-sm);
    color: var(--gray-600);
}

.navbar__avatar {
    width: 36px;
    height: 36px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.85rem;
    font-weight: 700;
}

.navbar__role-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.65rem;
    border-radius: var(--radius-full);
    font-size: var(--font-size-xs);
    font-weight: 600;
}

.navbar__role-badge--admin     { background: #fef3c7; color: #92400e; }
.navbar__role-badge--counselor { background: var(--primary-100); color: var(--primary-800); }
.navbar__role-badge--student   { background: var(--green-100); color: var(--green-800); }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 1.5rem;
    border-radius: var(--radius-md);
    font-family: var(--font-family);
    font-size: var(--font-size-sm);
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all var(--transition-normal);
    text-decoration: none;
    white-space: nowrap;
}

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

.btn--primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 14px rgba(30, 58, 138, 0.40);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(30, 58, 138, 0.52);
    color: white;
}

.btn--outline {
    background: transparent;
    border: 1.5px solid var(--primary-500);
    color: var(--primary-600);
}

.btn--outline:hover {
    background: var(--primary-50);
    color: var(--primary-700);
}

.btn--danger {
    background: #fee2e2;
    color: #b91c1c;
    border: 1.5px solid #fecaca;
}

.btn--danger:hover {
    background: #fecaca;
    color: #991b1b;
}

.btn--ghost {
    background: transparent;
    color: var(--gray-600);
}

.btn--ghost:hover {
    background: var(--gray-100);
    color: var(--gray-800);
}

.btn--sm {
    padding: 0.4rem 0.9rem;
    font-size: var(--font-size-xs);
    border-radius: var(--radius-sm);
}

.btn--block { width: 100%; }

.btn--lg {
    padding: 0.85rem 2rem;
    font-size: var(--font-size-base);
}

/* ── Cards ────────────────────────────────────────────────── */
.card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.card__header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.card__title {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--gray-800);
}

.card__body {
    padding: 1.5rem;
}

.card__footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--color-border);
    background: var(--gray-50);
}

/* Stat Cards */
.stat-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-card);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
}

.stat-card--blue::before   { background: var(--gradient-primary); }
.stat-card--green::before  { background: linear-gradient(to bottom, var(--green-500), var(--green-700)); }
.stat-card--amber::before  { background: linear-gradient(to bottom, #f59e0b, #d97706); }
.stat-card--purple::before { background: linear-gradient(to bottom, #8b5cf6, #6d28d9); }

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.stat-card__icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.stat-card--blue   .stat-card__icon { background: var(--primary-50); }
.stat-card--green  .stat-card__icon { background: var(--green-50); }
.stat-card--amber  .stat-card__icon { background: #fffbeb; }
.stat-card--purple .stat-card__icon { background: #f5f3ff; }

.stat-card__info { flex: 1; }

.stat-card__label {
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.stat-card__value {
    font-size: var(--font-size-3xl);
    font-weight: 800;
    line-height: 1;
    color: var(--gray-800);
}

/* ── Forms ────────────────────────────────────────────────── */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.45rem;
}

.form-label .required {
    color: var(--color-danger);
    margin-right: 2px;
}

.form-control {
    display: block;
    width: 100%;
    padding: 0.7rem 1rem;
    font-family: var(--font-family);
    font-size: var(--font-size-sm);
    color: var(--gray-800);
    background: #ffffff;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    outline: none;
    direction: rtl;
}

.form-control:focus {
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.form-control.is-invalid {
    border-color: var(--color-danger);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-control::placeholder {
    color: var(--gray-400);
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 1rem center;
    padding-left: 2.5rem;
}

.form-error {
    font-size: var(--font-size-xs);
    color: var(--color-danger);
    margin-top: 0.35rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.form-hint {
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
    margin-top: 0.35rem;
}

/* Checkbox */
.form-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    border: 1.5px solid var(--color-border);
    border-radius: 4px;
    accent-color: var(--primary-600);
    cursor: pointer;
}

.form-check label {
    font-size: var(--font-size-sm);
    color: var(--gray-600);
    cursor: pointer;
    user-select: none;
}

/* ── Alerts / Flash Messages ──────────────────────────────── */
.alert {
    padding: 0.875rem 1.25rem;
    border-radius: var(--radius-md);
    font-size: var(--font-size-sm);
    font-weight: 500;
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    margin-bottom: 1.25rem;
}

.alert--success { background: var(--green-50);  color: var(--green-800); border: 1px solid var(--green-200); }
.alert--error   { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.alert--info    { background: var(--primary-50); color: var(--primary-800); border: 1px solid var(--primary-200); }

/* ── Table ────────────────────────────────────────────────── */
.table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--font-size-sm);
}

.table thead {
    background: var(--gradient-card);
}

.table th {
    padding: 0.85rem 1.25rem;
    text-align: right;
    font-weight: 700;
    color: var(--gray-700);
    border-bottom: 1px solid var(--color-border);
    white-space: nowrap;
}

.table td {
    padding: 0.85rem 1.25rem;
    color: var(--gray-700);
    border-bottom: 1px solid var(--gray-100);
    vertical-align: middle;
}

.table tbody tr:last-child td { border-bottom: none; }

.table tbody tr:hover { background: var(--gray-50); }

/* ── Badges ───────────────────────────────────────────────── */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-full);
    font-size: var(--font-size-xs);
    font-weight: 600;
    white-space: nowrap;
}

.badge--admin     { background: #fef3c7; color: #92400e; }
.badge--counselor { background: var(--primary-100); color: var(--primary-800); }
.badge--student   { background: var(--green-100); color: var(--green-800); }
.badge--success   { background: var(--green-100); color: var(--green-800); }
.badge--warning   { background: #fef3c7; color: #92400e; }
.badge--danger    { background: #fee2e2; color: #991b1b; }

/* ── Auth Layout ──────────────────────────────────────────── */
.auth-wrapper {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.auth-panel {
    background: var(--gradient-hero);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2.5rem;
    position: relative;
    overflow: hidden;
}

.auth-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.auth-panel__logo {
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.15);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.25);
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.auth-panel__title {
    font-size: var(--font-size-3xl);
    font-weight: 800;
    color: white;
    text-align: center;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.auth-panel__subtitle {
    font-size: var(--font-size-base);
    color: rgba(255,255,255,0.75);
    text-align: center;
    max-width: 320px;
    line-height: 1.7;
}

.auth-panel__features {
    margin-top: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    max-width: 300px;
}

.auth-panel__feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255,255,255,0.9);
    font-size: var(--font-size-sm);
}

.auth-panel__feature-icon {
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,0.15);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.9rem;
}

/* Floating circles decoration */
.auth-panel__circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
}
.auth-panel__circle--1 { width: 300px; height: 300px; top: -80px; left: -80px; }
.auth-panel__circle--2 { width: 200px; height: 200px; bottom: -50px; right: -50px; }
.auth-panel__circle--3 { width: 120px; height: 120px; bottom: 120px; left: 30px; }

.auth-form-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2.5rem;
    background: var(--color-bg);
    overflow-y: auto;
}

.auth-form-box {
    width: 100%;
    max-width: 420px;
}

.auth-form-box__header {
    margin-bottom: 2rem;
    text-align: right;
}

.auth-form-box__title {
    font-size: var(--font-size-2xl);
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 0.4rem;
}

.auth-form-box__subtitle {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
}

/* ── Dashboard Layout ─────────────────────────────────────── */
.dashboard {
    min-height: calc(100vh - 68px);
    background: var(--gray-50);
    padding: 2rem 0;
}

.dashboard__header {
    margin-bottom: 2rem;
}

.dashboard__welcome {
    font-size: var(--font-size-2xl);
    font-weight: 800;
    color: var(--gray-900);
}

.dashboard__subtitle {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    margin-top: 0.25rem;
}

.dashboard__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.dashboard__section {
    margin-bottom: 2rem;
}

.dashboard__section-title {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ── Divider ──────────────────────────────────────────────── */
.divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
    color: var(--gray-400);
    font-size: var(--font-size-sm);
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--color-border);
}

/* ── Empty State ──────────────────────────────────────────── */
.empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
    color: var(--color-text-muted);
}

.empty-state__icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state__title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--gray-600);
    margin-bottom: 0.5rem;
}

.empty-state__text {
    font-size: var(--font-size-sm);
}

/* ── Spinner ──────────────────────────────────────────────── */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

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

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

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

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.95); }
    to   { opacity: 1; transform: scale(1); }
}

.animate-fadeInUp  { animation: fadeInUp 0.5s ease both; }
.animate-fadeIn    { animation: fadeIn 0.4s ease both; }
.animate-scaleIn   { animation: scaleIn 0.3s ease both; }

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

/* ── Utilities ────────────────────────────────────────────── */
.flex          { display: flex; }
.flex-col      { flex-direction: column; }
.items-center  { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.w-full { width: 100%; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.text-sm   { font-size: var(--font-size-sm); }
.text-xs   { font-size: var(--font-size-xs); }
.text-lg   { font-size: var(--font-size-lg); }
.text-muted { color: var(--color-text-muted); }
.text-center { text-align: center; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1024px) {
    .dashboard__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .auth-wrapper {
        grid-template-columns: 1fr;
    }

    .auth-panel {
        display: none;
    }

    .auth-form-area {
        padding: 2rem 1.25rem;
        min-height: 100vh;
    }

    .navbar__title { display: none; }
    .dashboard__grid { grid-template-columns: repeat(2, 1fr); }
    .container { padding: 0 1rem; }
}

@media (max-width: 480px) {
    .dashboard__grid { grid-template-columns: 1fr; }
}

/* ── Role Specific Accents ────────────────────────────────── */
.accent-blue   { color: var(--primary-600); }
.accent-green  { color: var(--green-600); }

.bg-gradient-primary { background: var(--gradient-primary); }
.bg-gradient-hero    { background: var(--gradient-hero); }

.icon-circle {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.icon-circle--blue   { background: var(--primary-50); color: var(--primary-600); }
.icon-circle--green  { background: var(--green-50);   color: var(--green-600); }
.icon-circle--amber  { background: #fffbeb;            color: #d97706; }

/* ── Page hero strip ──────────────────────────────────────── */
.page-hero {
    background: var(--gradient-primary);
    padding: 1.5rem 0;
    margin-bottom: 2rem;
}

.page-hero__title {
    font-size: var(--font-size-2xl);
    font-weight: 800;
    color: white;
}

.page-hero__sub {
    font-size: var(--font-size-sm);
    color: rgba(255,255,255,0.75);
    margin-top: 0.2rem;
}

/* ── Student Test Card ────────────────────────────────────── */
.test-card {
    background: var(--gradient-card);
    border-radius: var(--radius-xl);
    border: 1px solid var(--primary-200);
    padding: 2.5rem;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.test-card__icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    margin: 0 auto 1.5rem;
    box-shadow: var(--shadow-md);
}

.test-card__title {
    font-size: var(--font-size-2xl);
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.test-card__text {
    color: var(--color-text-muted);
    margin-bottom: 2rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.coming-soon-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 1rem;
    background: #fef3c7;
    color: #92400e;
    border-radius: var(--radius-full);
    font-size: var(--font-size-xs);
    font-weight: 700;
    border: 1px solid #fde68a;
}

/* ── Input Icon Group ─────────────────────────────────────── */
.input-group {
    position: relative;
}

.input-group .input-icon {
    position: absolute;
    top: 50%;
    right: 0.9rem;
    transform: translateY(-50%);
    color: var(--gray-400);
    font-size: 0.95rem;
    pointer-events: none;
    transition: color var(--transition-fast);
}

.input-group .form-control {
    padding-right: 2.5rem;
}

.input-group .form-control:focus + .input-icon,
.input-group:focus-within .input-icon {
    color: var(--primary-500);
}

/* =============================================================
   Test / Miqyas Preview Page
   ============================================================= */

/* ── Test Preview Page ──────────────────────────────────────── */
.test-preview {
    min-height: calc(100vh - 68px);
    background: var(--gray-50);
    padding: 2rem 0 4rem;
}

/* ── Progress Bar ───────────────────────────────────────────── */
.tprogress {
    position: sticky;
    top: 68px;
    z-index: 50;
    background: #ffffff;
    border-bottom: 1px solid var(--color-border);
    padding: 0.75rem 0;
    box-shadow: var(--shadow-sm);
}

.tprogress__inner {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.tprogress__label {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--gray-600);
    white-space: nowrap;
}

.tprogress__bar-wrap {
    flex: 1;
    height: 8px;
    background: var(--gray-200);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.tprogress__bar {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    transition: width 0.4s ease;
}

.tprogress__steps {
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
    white-space: nowrap;
}

/* ── Domain Badge / Page Title ──────────────────────────────── */
.page-domain-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.4s ease both;
}

.domain-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 1.1rem;
    background: var(--gradient-primary);
    color: white;
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    font-weight: 700;
    box-shadow: var(--shadow-md);
    letter-spacing: 0.02em;
}

.domain-divider {
    flex: 1;
    height: 2px;
    background: linear-gradient(to left, transparent, var(--primary-200));
    border-radius: var(--radius-full);
}

/* ── Question Cards ─────────────────────────────────────────── */
.question-page {
    display: none;
}

.question-page.active {
    display: block;
    animation: fadeInUp 0.45s ease both;
}

.question-card {
    background: #ffffff;
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    margin-bottom: 1.25rem;
    transition: box-shadow var(--transition-normal);
}

.question-card:hover {
    box-shadow: var(--shadow-md);
}

.question-card__header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.4rem 1.75rem 1rem;
    border-bottom: 1px solid var(--gray-100);
}

.q-number {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: var(--gradient-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-sm);
    font-weight: 800;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

.q-text {
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--gray-800);
    line-height: 1.6;
    flex: 1;
    padding-top: 0.15rem;
}

.question-card__meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1.75rem;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-100);
}

.q-code-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.18rem 0.6rem;
    background: var(--primary-50);
    color: var(--primary-700);
    border-radius: var(--radius-sm);
    font-size: var(--font-size-xs);
    font-weight: 700;
    border: 1px solid var(--primary-100);
}

.q-value-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.18rem 0.6rem;
    background: var(--green-50);
    color: var(--green-700);
    border-radius: var(--radius-sm);
    font-size: var(--font-size-xs);
    font-weight: 700;
    border: 1px solid var(--green-100);
}

/* ── Answers ─────────────────────────────────────────────────── */
.answers-list {
    padding: 1rem 1.75rem 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.answer-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 1rem;
    border-radius: var(--radius-md);
    border: 1.5px solid var(--color-border);
    background: var(--color-bg);
    cursor: default;
    transition: all var(--transition-fast);
}

.answer-item:hover {
    border-color: var(--primary-300);
    background: var(--primary-50);
}

.answer-dot {
    width: 18px;
    height: 18px;
    border-radius: var(--radius-full);
    border: 2px solid var(--gray-300);
    flex-shrink: 0;
    transition: all var(--transition-fast);
}

.answer-item:hover .answer-dot {
    border-color: var(--primary-400);
}

.answer-text {
    font-size: var(--font-size-sm);
    color: var(--gray-700);
}

.answer-plan-badge {
    margin-right: auto;
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.55rem;
    background: #f5f3ff;
    color: #5b21b6;
    border-radius: var(--radius-sm);
    font-size: 0.68rem;
    font-weight: 700;
    border: 1px solid #ede9fe;
    white-space: nowrap;
}

/* ── Navigation ─────────────────────────────────────────────── */
.test-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 2.5rem;
    gap: 1rem;
}

.test-nav__dots {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.nav-dot {
    width: 10px;
    height: 10px;
    border-radius: var(--radius-full);
    background: var(--gray-300);
    border: none;
    cursor: pointer;
    transition: all var(--transition-normal);
    padding: 0;
}

.nav-dot.active {
    background: var(--gradient-primary);
    width: 28px;
    border-radius: 5px;
}

.nav-dot:hover:not(.active) {
    background: var(--gray-400);
}

/* ── Empty / no-questions state ─────────────────────────────── */
.no-questions {
    text-align: center;
    padding: 4rem 2rem;
}

/* ── Back button row ────────────────────────────────────────── */
.back-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.75rem;
    animation: fadeIn 0.35s ease both;
}

.back-row__title {
    font-size: var(--font-size-xl);
    font-weight: 800;
    color: var(--gray-800);
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 640px) {
    .question-card__header { padding: 1rem; }
    .answers-list          { padding: 0.75rem 1rem 1rem; }
    .question-card__meta   { padding: 0.45rem 1rem; }
    .test-nav              { flex-wrap: wrap; justify-content: center; }
}

/* =============================================================
   Student Take-Test Page  (.tt-*)
   ============================================================= */

.tt-header {
    background: var(--gradient-primary);
    padding: 1.25rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-md);
}
.tt-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    max-width: 860px;
    margin: 0 auto;
}
.tt-header__brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: white;
    font-weight: 800;
    font-size: var(--font-size-base);
}
.tt-header__logo {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.2);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}
.tt-header__school {
    font-size: var(--font-size-xs);
    color: rgba(255,255,255,0.8);
    background: rgba(255,255,255,0.15);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255,255,255,0.3);
}

/* ── Progress bar ── */
.tt-progress {
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    padding: 0.6rem 0;
    position: sticky;
    top: 68px;
    z-index: 90;
    box-shadow: var(--shadow-sm);
}
.tt-progress__inner {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}
.tt-progress__label {
    font-size: var(--font-size-xs);
    font-weight: 600;
    color: var(--gray-500);
    white-space: nowrap;
}
.tt-progress__bar-wrap {
    flex: 1;
    height: 6px;
    background: var(--gray-200);
    border-radius: var(--radius-full);
    overflow: hidden;
}
.tt-progress__bar {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    transition: width 0.4s ease;
}
.tt-progress__text {
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
    white-space: nowrap;
}

/* ── Main container ── */
.tt-wrap {
    max-width: 860px;
    margin: 0 auto;
    padding: 2rem 1.5rem 5rem;
}

/* ── Name entry card ── */
.tt-name-card {
    background: #fff;
    border-radius: var(--radius-xl);
    border: 2px solid var(--primary-200);
    box-shadow: var(--shadow-md);
    padding: 1.75rem 2rem;
    margin-bottom: 2rem;
    animation: fadeInUp 0.4s ease both;
}
.tt-name-card__title {
    font-size: var(--font-size-lg);
    font-weight: 800;
    color: var(--gray-800);
    margin-bottom: 0.25rem;
}
.tt-name-card__sub {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    margin-bottom: 1.25rem;
}
.tt-name-input {
    display: block;
    width: 100%;
    padding: 0.85rem 1.1rem;
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--gray-800);
    background: var(--gray-50);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    outline: none;
    transition: all var(--transition-fast);
    direction: rtl;
}
.tt-name-input:focus {
    border-color: var(--primary-500);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.12);
}

/* ── Page slides ── */
.tt-page         { display: none; }
.tt-page.active  { display: block; animation: fadeInUp 0.4s ease both; }

/* ── Question card ── */
.tt-question-card {
    background: #fff;
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    margin-bottom: 1.25rem;
}
.tt-question-card__header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem 1.5rem 1rem;
    border-bottom: 1px solid var(--gray-100);
}
.tt-q-number {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-full);
    background: var(--gradient-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-xs);
    font-weight: 800;
    flex-shrink: 0;
}
.tt-q-text {
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--gray-800);
    line-height: 1.65;
    flex: 1;
    padding-top: 0.1rem;
}
.tt-answers {
    padding: 1rem 1.5rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

/* ── Answer radio item ── */
.tt-answer {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    border: 1.5px solid var(--color-border);
    background: var(--color-bg);
    cursor: pointer;
    transition: all var(--transition-fast);
    user-select: none;
}
.tt-answer:hover {
    border-color: var(--primary-300);
    background: var(--primary-50);
}
.tt-answer input[type="radio"] { display: none; }
.tt-answer__radio {
    width: 20px;
    height: 20px;
    border-radius: var(--radius-full);
    border: 2px solid var(--gray-300);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}
.tt-answer__radio::after {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: var(--radius-full);
    background: var(--primary-600);
    opacity: 0;
    transform: scale(0);
    transition: all 0.2s ease;
}
.tt-answer input[type="radio"]:checked ~ .tt-answer__radio {
    border-color: var(--primary-500);
}
.tt-answer input[type="radio"]:checked ~ .tt-answer__radio::after {
    opacity: 1;
    transform: scale(1);
}
.tt-answer.selected {
    border-color: var(--primary-400);
    background: var(--primary-50);
}
.tt-answer__text {
    font-size: var(--font-size-sm);
    color: var(--gray-700);
    font-weight: 500;
}

/* ── Unanswered highlight ── */
.tt-question-card.unanswered {
    border-color: var(--color-danger);
    box-shadow: 0 0 0 3px rgba(239,68,68,0.12);
}

/* ── Navigation ── */
.tt-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 2rem;
    gap: 1rem;
}
.tt-nav__dots {
    display: flex;
    gap: 0.4rem;
    align-items: center;
}
.tt-dot {
    width: 9px;
    height: 9px;
    border-radius: var(--radius-full);
    background: var(--gray-300);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all var(--transition-normal);
}
.tt-dot.active {
    background: var(--gradient-primary);
    width: 26px;
    border-radius: 5px;
}

/* ── Submit button area ── */
.tt-submit-area         { display: none; margin-top: 2.5rem; text-align: center; animation: fadeInUp 0.4s ease both; }
.tt-submit-area.visible { display: block; }
.tt-submit-btn {
    padding: 1rem 3rem;
    font-size: var(--font-size-lg);
    border-radius: var(--radius-lg);
    background: var(--gradient-primary);
    color: white;
    border: none;
    font-family: var(--font-family);
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(30,58,138,0.35);
    transition: all var(--transition-normal);
}
.tt-submit-btn:hover    { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(30,58,138,0.45); }
.tt-submit-btn:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }
.tt-submit-note {
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
    margin-top: 0.75rem;
}

/* ── No questions state ── */
.tt-empty { text-align: center; padding: 4rem 2rem; }

/* ── Validation alert ── */
.tt-alert {
    display: none;
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
    border-radius: var(--radius-md);
    padding: 0.85rem 1.25rem;
    font-size: var(--font-size-sm);
    font-weight: 600;
    margin-bottom: 1.5rem;
    animation: fadeIn 0.3s ease both;
}
.tt-alert.visible { display: flex; align-items: center; gap: 0.5rem; }

@media (max-width: 640px) {
    .tt-wrap                   { padding: 1.25rem 1rem 5rem; }
    .tt-question-card__header  { padding: 1rem; }
    .tt-answers                { padding: 0.75rem 1rem 1rem; }
    .tt-nav                    { flex-wrap: wrap; justify-content: center; }
}

/* =============================================================
   Student Thank-You / Result Page  (.ty-*)
   ============================================================= */

.ty-topbar {
    background: var(--gradient-primary);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    box-shadow: var(--shadow-md);
}
.ty-topbar__logo {
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,0.2);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}
.ty-topbar__title {
    color: white;
    font-weight: 800;
    font-size: var(--font-size-sm);
}
.ty-topbar__school {
    margin-right: auto;
    color: rgba(255,255,255,0.75);
    font-size: var(--font-size-xs);
}

.ty-wrap {
    max-width: 560px;
    margin: 0 auto;
    padding: 4rem 1.5rem 5rem;
    text-align: center;
}

.ty-card {
    background: #fff;
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-lg);
    padding: 3rem 2.5rem;
    animation: fadeInUp 0.5s ease both;
}
.ty-icon {
    width: 90px;
    height: 90px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.75rem;
    margin: 0 auto 1.5rem;
    box-shadow: 0 8px 24px rgba(30,58,138,0.25);
    animation: scaleIn 0.5s ease both 0.15s;
}
@keyframes scaleIn {
    from { transform: scale(0.6); opacity: 0; }
    to   { transform: scale(1);   opacity: 1; }
}
.ty-title {
    font-size: var(--font-size-2xl);
    font-weight: 800;
    color: var(--gray-800);
    margin-bottom: 0.5rem;
}
.ty-name {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--primary-600);
    margin-bottom: 0.5rem;
}
.ty-sub {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    line-height: 1.7;
    margin-bottom: 2rem;
}
.ty-divider {
    width: 60px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    margin: 1.5rem auto;
}
.ty-info-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem 1.25rem;
    background: var(--gray-50);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: var(--font-size-sm);
    color: var(--gray-600);
    margin-bottom: 0.75rem;
}
.ty-note {
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
    margin-top: 1.75rem;
}

@media (max-width: 640px) {
    .ty-wrap { padding: 2rem 1rem 4rem; }
    .ty-card { padding: 2rem 1.25rem; }
}

/* ── Session Result Page ──────────────────────────────────── */
.sr-hero {
    background: var(--gradient-hero);
    padding: 2.5rem 0 2rem;
    margin-bottom: 2rem;
}
.sr-hero__inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1.5rem;
}
.sr-hero__label {
    font-size: var(--font-size-xs);
    color: rgba(255,255,255,0.6);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}
.sr-hero__name {
    font-size: var(--font-size-3xl);
    font-weight: 800;
    color: white;
    margin-bottom: 0.5rem;
}
.sr-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 1rem;
}
.sr-hero__meta-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: var(--font-size-sm);
    color: rgba(255,255,255,0.85);
}

.sr-wrap {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1.5rem 3rem;
}

/* Summary cards */
.sr-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}
.sr-summary-card {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
    box-shadow: var(--shadow-card);
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}
.sr-summary-card__icon {
    font-size: 1.6rem;
    line-height: 1;
    flex-shrink: 0;
}
.sr-summary-card__label {
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
    font-weight: 600;
    margin-bottom: 0.2rem;
}
.sr-summary-card__value {
    font-size: var(--font-size-base);
    font-weight: 700;
    color: var(--gray-800);
    line-height: 1.4;
}

/* Dominant plan banner */
.sr-plan-banner {
    background: var(--gradient-card);
    border: 1.5px solid var(--primary-200);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    box-shadow: var(--shadow-card);
}
.sr-plan-banner__badge {
    flex-shrink: 0;
    background: var(--gradient-primary);
    color: white;
    padding: 0.3rem 0.9rem;
    border-radius: var(--radius-full);
    font-size: var(--font-size-xs);
    font-weight: 700;
}
.sr-plan-banner__title {
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
    font-weight: 600;
    margin-bottom: 0.35rem;
}
.sr-plan-banner__text {
    font-size: var(--font-size-base);
    font-weight: 700;
    color: var(--primary-800);
}

/* Plan frequency bar */
.sr-plan-freq {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-card);
}
.sr-plan-freq__title {
    font-size: var(--font-size-sm);
    font-weight: 700;
    color: var(--gray-700);
    margin-bottom: 1rem;
}
.sr-plan-freq__row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.6rem;
}
.sr-plan-freq__label {
    width: 220px;
    flex-shrink: 0;
    font-size: var(--font-size-xs);
    color: var(--gray-700);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sr-plan-freq__bar-wrap {
    flex: 1;
    background: var(--gray-100);
    border-radius: var(--radius-full);
    height: 10px;
    overflow: hidden;
}
.sr-plan-freq__bar {
    height: 100%;
    border-radius: var(--radius-full);
    background: var(--gradient-primary);
    transition: width 0.6s ease;
}
.sr-plan-freq__count {
    font-size: var(--font-size-xs);
    color: var(--gray-500);
    font-weight: 600;
    min-width: 24px;
    text-align: left;
}

/* Section heading */
.sr-section-title {
    font-size: var(--font-size-base);
    font-weight: 800;
    color: var(--gray-800);
    margin-bottom: 0.75rem;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid var(--primary-200);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Question cards */
.sr-question-card {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    margin-bottom: 0.75rem;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition-fast);
}
.sr-question-card:hover { box-shadow: var(--shadow-md); }
.sr-question-card__q {
    padding: 0.9rem 1.25rem;
    background: var(--gray-50);
    border-bottom: 1px solid var(--color-border);
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}
.sr-q-num {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    background: var(--gradient-primary);
    color: white;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
}
.sr-q-text {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--gray-800);
    line-height: 1.5;
}
.sr-question-card__a {
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}
.sr-answer-text {
    font-size: var(--font-size-sm);
    color: var(--gray-700);
    flex: 1;
    min-width: 200px;
}
.sr-answer-plan {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

@media print {
    .btn, .sr-hero { display: none; }
    .sr-wrap { padding: 0; }
}

@media (max-width: 640px) {
    .sr-hero__name { font-size: var(--font-size-2xl); }
    .sr-plan-freq__label { width: 120px; }
}
