:root {
    --snhs-primary: #800000;
    --snhs-primary-dark: #4b0000;
    --snhs-primary-light: #b22222;
    --snhs-accent: #f0a500;
    --snhs-accent-light: #ffc940;
    --snhs-light: #f0f4f8;
    --snhs-surface: #ffffff;
    --snhs-text: #1e293b;
    --snhs-text-muted: #a16262;
    --snhs-gradient: linear-gradient(135deg, #800000 0%, #b22222 50%, #800000 100%);
    --snhs-gradient-accent: linear-gradient(135deg, #f0a500 0%, #ffc940 100%);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.1), 0 4px 8px rgba(0,0,0,0.05);
    --shadow-xl: 0 20px 50px rgba(0,0,0,0.12), 0 8px 16px rgba(0,0,0,0.06);
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.25rem;
}

* { transition: background-color 0.2s, border-color 0.2s, box-shadow 0.2s; }

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: var(--snhs-light);
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--snhs-text);
    line-height: 1.6;
}

main.container { flex: 1; }

/* ─── App Sidebar Layout (logged in) ───────────────────── */
.app-shell {
    min-height: 100vh;
    display: flex;
}

.app-sidebar {
    width: 270px;
    background: linear-gradient(180deg, #800000 0%, #b22222 100%);
    color: #fff;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    box-shadow: 4px 0 18px rgba(0, 0, 0, 0.15);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: #fff;
    padding: 0.5rem;
    margin-bottom: 1rem;
}

.sidebar-brand-title {
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.1;
}

.sidebar-brand-subtitle {
    font-size: 0.78rem;
    opacity: 0.8;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.sidebar-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    border-radius: 0.65rem;
    padding: 0.65rem 0.8rem;
    font-weight: 600;
    font-size: 0.92rem;
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.sidebar-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.13);
}

.sidebar-link.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
}

.sidebar-footer {
    margin-top: auto;
    padding-top: 1rem;
}

.sidebar-logout {
    background: rgba(239, 68, 68, 0.2);
}

.sidebar-logout:hover {
    background: rgba(239, 68, 68, 0.35);
}

.app-content {
    flex: 1;
    min-width: 0;
}

.app-mobile-topbar {
    display: none;
}

/* ─── Navbar ────────────────────────────────────────────── */
.bg-nav {
    background: var(--snhs-gradient);
    box-shadow: 0 4px 20px rgba(128, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.navbar-brand {
    font-size: 1.3rem;
    letter-spacing: 0.5px;
    font-weight: 700;
}

.navbar .nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    border-radius: var(--radius-sm);
    margin: 0 0.15rem;
    position: relative;
}

.navbar .nav-link:hover {
    background: rgba(255,255,255,0.12);
}

.navbar .nav-link.active,
.navbar .nav-link[aria-current="page"] {
    background: rgba(255,255,255,0.18);
}

/* ─── Cards ─────────────────────────────────────────────── */
.card {
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0,0,0,0.06);
    background: var(--snhs-surface);
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s cubic-bezier(.4,0,.2,1), box-shadow 0.25s cubic-bezier(.4,0,.2,1);
    overflow: hidden;
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card-header {
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    background-color: rgba(0,0,0,0.02);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    padding: 0.875rem 1.25rem;
}

/* Summary stat cards */
.stat-card {
    position: relative;
    overflow: hidden;
    border: none;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}

.stat-card.card-registered::before { background: var(--snhs-primary); }
.stat-card.card-pending::before { background: #f59e0b; }
.stat-card.card-evaluated::before { background: #10b981; }
.stat-card.card-atrisk::before { background: #ef4444; }

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.stat-card .stat-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-card.card-registered .stat-icon { background: rgba(128,0,0,0.1); color: var(--snhs-primary); }
.stat-card.card-pending .stat-icon    { background: rgba(245,158,11,0.1); color: #f59e0b; }
.stat-card.card-evaluated .stat-icon  { background: rgba(16,185,129,0.1); color: #10b981; }
.stat-card.card-atrisk .stat-icon     { background: rgba(239,68,68,0.1);  color: #ef4444; }

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.1;
}

/* ─── Tables ────────────────────────────────────────────── */
.table th {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--snhs-text-muted);
    border-top: none;
    font-weight: 700;
    padding: 0.875rem 1rem;
    background: rgba(0,0,0,0.015);
}

.table td {
    padding: 0.75rem 1rem;
    vertical-align: middle;
}

.table-hover tbody tr {
    transition: background-color 0.15s;
}

.table-hover tbody tr:hover {
    background-color: rgba(128, 0, 0, 0.03);
}

/* ─── Badges ────────────────────────────────────────────── */
.badge {
    font-weight: 600;
    padding: 0.4em 0.8em;
    font-size: 0.75rem;
    border-radius: 50rem;
    letter-spacing: 0.02em;
}

.badge-strand {
    font-size: 0.8rem;
    padding: 0.45em 1em;
}

/* ─── Progress bars ─────────────────────────────────────── */
.progress {
    border-radius: 50rem;
    background-color: #e2e8f0;
    overflow: hidden;
}

.progress-bar {
    transition: width 0.8s cubic-bezier(.4,0,.2,1);
}

/* ─── Form controls ─────────────────────────────────────── */
.form-control,
.form-select {
    border-radius: var(--radius-sm);
    border: 1.5px solid #e2e8f0;
    padding: 0.625rem 0.875rem;
    font-size: 0.925rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--snhs-primary-light);
    box-shadow: 0 0 0 3px rgba(178,34,34, 0.12);
}

.form-label {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--snhs-text);
    margin-bottom: 0.35rem;
}

.form-control.is-invalid {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239,68,68,0.1);
}

/* ─── Buttons ───────────────────────────────────────────── */
.btn {
    font-weight: 600;
    border-radius: var(--radius-sm);
    padding: 0.5rem 1.25rem;
    font-size: 0.9rem;
    transition: all 0.2s cubic-bezier(.4,0,.2,1);
    letter-spacing: 0.01em;
}

.btn-primary {
    background: var(--snhs-gradient);
    border: none;
    box-shadow: 0 2px 8px rgba(128, 0, 0, 0.25);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--snhs-primary-dark) 0%, var(--snhs-primary) 100%);
    box-shadow: 0 4px 16px rgba(128, 0, 0, 0.35);
    transform: translateY(-1px);
}

.btn-success {
    background: linear-gradient(135deg, #059669, #10b981);
    border: none;
    box-shadow: 0 2px 8px rgba(16,185,129,0.25);
}

.btn-success:hover {
    background: linear-gradient(135deg, #047857, #059669);
    box-shadow: 0 4px 16px rgba(16,185,129,0.35);
    transform: translateY(-1px);
}

.btn-outline-primary {
    color: var(--snhs-primary);
    border: 2px solid var(--snhs-primary);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--snhs-primary);
    border-color: var(--snhs-primary);
    transform: translateY(-1px);
}

.btn-outline-secondary {
    border: 2px solid #e2e8f0;
    color: var(--snhs-text-muted);
}

.btn-outline-secondary:hover {
    background: var(--snhs-light);
    border-color: #cbd5e1;
    color: var(--snhs-text);
}

.btn-lg {
    padding: 0.75rem 2rem;
    font-size: 1rem;
}

/* ─── Alerts ────────────────────────────────────────────── */
.alert {
    border-radius: var(--radius-md);
    border: none;
    font-weight: 500;
    padding: 1rem 1.25rem;
}

.alert-success { background: #ecfdf5; color: #065f46; border-left: 4px solid #10b981; }
.alert-danger  { background: #fef2f2; color: #991b1b; border-left: 4px solid #ef4444; }
.alert-warning { background: #fffbeb; color: #92400e; border-left: 4px solid #f59e0b; }
.alert-info    { background: #f5e0e0; color: #800000; border-left: 4px solid #b22222; }

/* ─── Hero / Landing ────────────────────────────────────── */
.hero-section {
    background: var(--snhs-gradient);
    border-radius: var(--radius-xl);
    padding: 3.5rem 2rem;
    color: #fff;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

/* Full-width landing hero with school background image */
.hero-section.hero-full {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    margin-top: 0;
    border-radius: 0;
    min-height: clamp(22rem, 58vh, 38rem);
    padding: clamp(3.25rem, 7vw, 6.5rem) clamp(1.25rem, 4vw, 2.5rem);
    display: flex;
    align-items: center;
    justify-content: center;
    background-image:
        linear-gradient(145deg, rgba(75, 0, 0, 0.9) 0%, rgba(128, 0, 0, 0.78) 42%, rgba(20, 6, 10, 0.88) 100%),
        url("https://images.unsplash.com/photo-1498243691581-b145c3f54a5a?auto=format&fit=crop&w=1920&q=80");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-section.hero-full .hero-content {
    max-width: 58rem;
    margin-left: auto;
    margin-right: auto;
}

.hero-section.hero-full .hero-subtitle {
    color: rgba(255, 255, 255, 0.95);
    font-size: clamp(1.1rem, 2.2vw, 1.45rem);
    max-width: 48rem;
    line-height: 1.65;
}

.hero-section.hero-full .hero-title {
    text-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
    font-size: clamp(1.65rem, 4.2vw, 3.35rem);
    line-height: 1.12;
}

.hero-section.hero-full .hero-logo {
    width: clamp(4.5rem, 10vw, 5.75rem);
    height: clamp(4.5rem, 10vw, 5.75rem);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 0;
}

.hero-eyebrow-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--snhs-accent-light);
    box-shadow: 0 0 0 3px rgba(240, 165, 0, 0.35);
}

.btn-hero-solid {
    background: #fff !important;
    color: var(--snhs-primary) !important;
    font-weight: 700 !important;
    border: none !important;
    box-shadow: var(--shadow-md);
    border-radius: var(--radius-md) !important;
}

.btn-hero-solid:hover {
    background: #fff9f0 !important;
    color: var(--snhs-primary-dark) !important;
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.btn-hero-outline {
    background: rgba(255, 255, 255, 0.12) !important;
    color: #fff !important;
    font-weight: 600 !important;
    border: 2px solid rgba(255, 255, 255, 0.38) !important;
    backdrop-filter: blur(10px);
    border-radius: var(--radius-md) !important;
}

.btn-hero-outline:hover {
    background: rgba(255, 255, 255, 0.22) !important;
    border-color: rgba(255, 255, 255, 0.55) !important;
    color: #fff !important;
}

/* ─── Landing page (index) ─────────────────────────────── */
.landing-page {
    padding-bottom: 0.5rem;
}

.landing-trust-strip {
    margin-top: -2rem;
    position: relative;
    z-index: 2;
    background: var(--snhs-surface);
    border-radius: var(--radius-xl);
    padding: 1.5rem 1.75rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(128, 0, 0, 0.08);
}

.landing-trust-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.875rem;
}

@media (min-width: 768px) {
    .landing-trust-item {
        justify-content: flex-start;
    }
}

.landing-trust-icon {
    font-size: 1.65rem;
    color: var(--snhs-primary);
    opacity: 0.9;
    flex-shrink: 0;
}

.landing-section-title {
    font-size: clamp(1.35rem, 2.5vw, 1.75rem);
    font-weight: 800;
    color: var(--snhs-text);
    letter-spacing: -0.02em;
}

.landing-section-lead {
    font-size: 1rem;
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
}

.landing-feature-card {
    background: var(--snhs-surface);
    border-radius: var(--radius-xl);
    padding: 2rem 1.5rem;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    position: relative;
    overflow: hidden;
}

.landing-feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--snhs-gradient);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.landing-feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(128, 0, 0, 0.12);
}

.landing-feature-card:hover::before {
    opacity: 1;
}

.landing-feature-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 1.25rem;
    border-radius: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.85rem;
}

.landing-feature-icon--maroon {
    background: linear-gradient(145deg, rgba(128, 0, 0, 0.12), rgba(178, 34, 34, 0.08));
    color: var(--snhs-primary);
}

.landing-feature-icon--accent {
    background: linear-gradient(145deg, rgba(16, 185, 129, 0.14), rgba(5, 150, 105, 0.08));
    color: #059669;
}

.landing-feature-icon--gold {
    background: linear-gradient(145deg, rgba(240, 165, 0, 0.18), rgba(255, 201, 64, 0.12));
    color: #c2410c;
}

.landing-panel {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border-radius: var(--radius-xl);
    padding: clamp(2rem, 4vw, 3rem);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: var(--shadow-md);
}

.landing-step {
    padding: 1.25rem 1rem;
    height: 100%;
    border-radius: var(--radius-lg);
    background: var(--snhs-surface);
    border: 1px solid rgba(128, 0, 0, 0.08);
    transition: box-shadow 0.2s ease;
}

.landing-step:hover {
    box-shadow: var(--shadow-sm);
}

.landing-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    font-weight: 800;
    font-size: 1rem;
    color: #fff;
    background: var(--snhs-gradient);
    margin-bottom: 1rem;
    box-shadow: 0 4px 14px rgba(128, 0, 0, 0.35);
}

.landing-cta {
    border-radius: var(--radius-xl);
    padding: clamp(2rem, 5vw, 3rem);
    background:
        radial-gradient(ellipse 80% 120% at 20% 0%, rgba(255, 201, 64, 0.18) 0%, transparent 55%),
        var(--snhs-gradient);
    box-shadow: var(--shadow-xl);
    margin-top: 0.5rem;
}

.btn-landing-cta-ghost {
    color: #fff !important;
    font-weight: 600 !important;
    border: 2px solid rgba(255, 255, 255, 0.45) !important;
    background: transparent !important;
    border-radius: var(--radius-md) !important;
}

.btn-landing-cta-ghost:hover {
    background: rgba(255, 255, 255, 0.14) !important;
    border-color: rgba(255, 255, 255, 0.65) !important;
    color: #fff !important;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(240,165,0,0.12) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-content { position: relative; z-index: 1; }

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.hero-subtitle {
    font-size: 1.15rem;
    opacity: 0.85;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

.feature-card {
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.25s, background 0.25s;
}

.feature-card:hover {
    background: rgba(255,255,255,0.12);
    transform: translateY(-4px);
}

.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.15);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
}

/* ─── Auth Cards ────────────────────────────────────────── */
body.auth-page {
    position: relative;
    min-height: 100vh;
    background:
        radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0) 35%),
        linear-gradient(135deg, var(--snhs-primary-dark) 0%, var(--snhs-primary) 45%, var(--snhs-primary-light) 100%);
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: cover;
}

body.auth-page::before {
    content: "";
    position: absolute;
    inset: 0;
    background: transparent;
    z-index: -1;
}

body.auth-page main.container {
    max-width: 1000px;
}

.auth-wrapper {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-wrapper-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: center;
    width: 100%;
    min-height: calc(100vh - 5.5rem);
}

.auth-brand-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.auth-brand-inner {
    text-align: center;
    /* padding: 1.5rem 1.25rem;
    background: rgba(255, 255, 255, 0.96); */
    /* border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md); */
}

.auth-brand-logo {
    width: 200px;
    height: 200px;
    /* object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25); */
}

.auth-brand-title {
    font-size: clamp(1.6rem, 4vw, 2.35rem);
    font-weight: 1000;
    margin: 2rem 0 0;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: var(--snhs-primary);
}

.auth-brand-subtitle {
    margin: 0.5rem 0 0;
    font-size: clamp(1rem, 2vw, 1.2rem);
    font-weight: 500;
    color: var(--snhs-primary-dark);
    opacity: 0.92;
}

.auth-form-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
}

.auth-header-compact .auth-header-icon {
    font-size: 2rem;
    opacity: 0.9;
    margin-bottom: 0.25rem;
}

.auth-card {
    border: none;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-xl);
    overflow: hidden;
    max-width: 440px;
    width: 100%;
}

.auth-card .card-body {
    padding: 2.5rem;
}

.auth-form-title {
    color: var(--snhs-primary);
    font-size: 1.45rem;
    font-weight: 700;
}

.auth-form-subtitle {
    font-size: 0.92rem;
}

.auth-header {
    background: var(--snhs-gradient);
    padding: 1.75rem 2rem;
    text-align: center;
    color: #fff;
}

.auth-header h3 {
    font-weight: 700;
    margin: 0;
    font-size: 1.35rem;
}

.auth-header p {
    opacity: 0.8;
    margin: 0.25rem 0 0;
    font-size: 0.9rem;
}

.input-icon-wrapper {
    position: relative;
}

.input-icon-wrapper .form-control {
    padding-left: 2.75rem;
}

.input-icon-wrapper .input-icon {
    position: absolute;
    left: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--snhs-text-muted);
    font-size: 1.1rem;
    pointer-events: none;
}

/* ─── Registration Form Steps ───────────────────────────── */
.form-section-card {
    border: none;
    box-shadow: var(--shadow-sm);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.form-section-header {
    background: #fff;
    color: var(--snhs-dark);
    border-bottom: 1px solid var(--snhs-gray-200);
    padding: 0.875rem 1.25rem;
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-section-header .step-badge {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
}

.form-section-card .card-body {
    padding: 1.5rem;
}

/* ─── Student Dashboard ─────────────────────────────────── */
.welcome-banner {
    background: var(--snhs-gradient);
    border-radius: var(--radius-lg);
    padding: 1.75rem 2rem;
    color: #fff;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}

.welcome-banner::after {
    content: '';
    position: absolute;
    top: -30%;
    right: -5%;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 1rem;
    border-radius: 50rem;
    font-weight: 600;
    font-size: 0.85rem;
}

.status-pending   { background: #fef3c7; color: #92400e; }
.status-evaluated { background: #d1fae5; color: #065f46; }
.status-enrolled  { background: #fde2e2; color: #800000; }

/* Prediction result card */
.prediction-card {
    border: none;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.prediction-header {
    padding: 1.25rem 1.5rem;
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.prediction-header.safe    { background: linear-gradient(135deg, #059669, #10b981); }
.prediction-header.at-risk { background: linear-gradient(135deg, #dc2626, #ef4444); }

.strand-display {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.strand-display .strand-badge {
    font-size: 1.5rem;
    padding: 0.6rem 2rem;
    border-radius: var(--radius-md);
    font-weight: 800;
    letter-spacing: 0.05em;
    box-shadow: var(--shadow-sm);
}

.confidence-ring {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 5px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    position: relative;
}

/* ─── Charts section ────────────────────────────────────── */
.chart-card {
    border: none;
    box-shadow: var(--shadow-sm);
    border-radius: var(--radius-lg);
}

.chart-card .card-header {
    background: transparent;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    font-size: 0.95rem;
}

/* ─── Detail page info rows ─────────────────────────────── */
.info-item {
    display: flex;
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.04);
}

.info-item:last-child { border-bottom: none; }

.info-label {
    font-weight: 600;
    color: var(--snhs-text-muted);
    font-size: 0.85rem;
    min-width: 140px;
    flex-shrink: 0;
}

.info-value {
    color: var(--snhs-text);
    font-weight: 500;
}

/* ─── Footer ────────────────────────────────────────────── */
footer {
    font-size: 0.85rem;
    background: linear-gradient(135deg, #541212, #240707) !important;
    padding: 1.25rem 0 !important;
}

/* ─── Animations ────────────────────────────────────────── */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-20px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.05); }
}

.animate-in {
    animation: fadeInUp 0.5s cubic-bezier(.4,0,.2,1) both;
}

.animate-in-delay-1 { animation-delay: 0.1s; }
.animate-in-delay-2 { animation-delay: 0.2s; }
.animate-in-delay-3 { animation-delay: 0.3s; }
.animate-in-delay-4 { animation-delay: 0.4s; }

/* ─── Scrollbar ─────────────────────────────────────────── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--snhs-light); }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #a16262; }

/* ─── Responsive ────────────────────────────────────────── */
@media (max-width: 768px) {
    .auth-wrapper-split {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        min-height: auto;
    }

    .auth-brand-panel {
        padding: 0.5rem 0 0;
    }

    .auth-brand-logo {
        width: 112px;
        height: 112px;
    }

    .auth-brand-title {
        margin-top: 1rem;
        font-size: clamp(1.35rem, 5vw, 1.75rem);
    }

    .auth-brand-subtitle {
        font-size: 1.05rem;
    }

    .app-shell {
        display: block;
        position: relative;
    }
    .app-mobile-topbar {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        background: #fff;
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
        padding: 0.75rem 1rem;
        position: sticky;
        top: 0;
        z-index: 1045;
    }
    .app-sidebar-toggle {
        border: 1px solid rgba(0, 0, 0, 0.12);
        box-shadow: none;
    }
    .app-mobile-brand {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        text-decoration: none;
        color: var(--snhs-primary-dark);
        font-weight: 700;
    }
    .app-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: min(82vw, 300px);
        height: 100vh;
        z-index: 1050;
        border-radius: 0;
        transform: translateX(-100%);
        transition: transform 0.25s ease;
        overflow-y: auto;
    }
    .app-shell.sidebar-open .app-sidebar {
        transform: translateX(0);
    }
    .app-sidebar-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, 0.45);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s ease;
        z-index: 1049;
    }
    .app-shell.sidebar-open .app-sidebar-backdrop {
        opacity: 1;
        pointer-events: auto;
    }
    .app-content main.container-fluid {
        padding: 1rem !important;
    }
    .hero-title { font-size: 1.75rem; }
    .hero-section { padding: 2.5rem 1.5rem; }
    .hero-section.hero-full {
        min-height: clamp(20rem, 52vh, 32rem);
        padding: 2.75rem 1rem 3.25rem;
    }
    .hero-section.hero-full .hero-title {
        font-size: clamp(1.45rem, 6.5vw, 2.15rem);
    }
    .hero-section.hero-full .hero-subtitle {
        font-size: 1.05rem;
    }
    .landing-trust-strip {
        margin-top: -1.25rem;
        padding: 1.25rem 1rem;
    }
    .landing-feature-card {
        padding: 1.5rem 1.25rem;
    }
    .landing-panel {
        padding: 1.75rem 1.25rem;
    }
    .auth-card .card-body { padding: 1.75rem; }
    .stat-number { font-size: 1.5rem; }
}

/* ─── Print ─────────────────────────────────────────────── */
@media print {
    .navbar, footer, .btn, .alert-dismissible .btn-close,
    form, .no-print { display: none !important; }
    .card { border: 1px solid #ddd !important; box-shadow: none !important; break-inside: avoid; }
    body { background: #fff; }
    main.container { max-width: 100%; padding: 0; }
    .hero-section { display: none; }
}
