/* ==========================================================================
   PRISMA Digitech — Design System & Adaptive UI Stylesheet
   Digitech University (Universitas Teknologi Digital)
   ========================================================================== */

:root {
    /* Surface & Neutral */
    --surface-white:   #FFFFFF;
    --surface-canvas:  #F8FAFC;
    --surface-muted:   #F1F5F9;
    --border-subtle:   #E2E8F0;
    --border-strong:   #CBD5E1;

    /* Primary Energy — Merah Digitech */
    --red-primary:     #D91E2A;
    --red-hover:       #B91C1C;
    --red-tint:        #FEF2F2;
    --red-border:      #FECACA;

    /* Structure & Academic — Biru Digitech */
    --navy-primary:    #0F2A5F;
    --navy-deep:       #091B40;
    --navy-soft:       #17387A;
    --blue-royal:      #1D4ED8;
    --blue-tint:       #EFF6FF;
    --blue-border:     #BFDBFE;

    /* Semantic Status */
    --emerald:         #059669;
    --emerald-tint:    #ECFDF5;
    --emerald-border:  #A7F3D0;
    --amber:           #D97706;
    --amber-tint:      #FFFBEB;
    --amber-border:    #FDE68A;

    /* Text */
    --text-primary:    #0F172A;
    --text-secondary:  #334155;
    --text-muted:      #64748B;
    --text-on-dark:    #F8FAFC;

    /* Typography */
    --font-display:    'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --font-sans:       'Inter', system-ui, -apple-system, sans-serif;
    --font-mono:       'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;

    /* Layout Metrics */
    --sidebar-width:   264px;
    --sidebar-mini:    76px;
    --topbar-height:   64px;
    --mobile-nav-h:    64px;
    --container-max:   1240px;

    /* Radii & Elevation */
    --radius-sm:       6px;
    --radius-md:       10px;
    --radius-lg:       14px;
    --radius-xl:       18px;
    --radius-full:     9999px;
    --shadow-xs:       0 1px 2px rgba(15, 42, 95, 0.04);
    --shadow-sm:       0 2px 6px rgba(15, 42, 95, 0.06);
    --shadow-md:       0 8px 24px rgba(15, 42, 95, 0.08);
    --shadow-lg:       0 16px 40px rgba(15, 42, 95, 0.14);
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    background-color: var(--surface-canvas);
    color: var(--text-primary);
    line-height: 1.55;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .font-display {
    font-family: var(--font-display);
    letter-spacing: -0.02em;
    color: var(--navy-primary);
}

.font-mono, .mono-num {
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums;
}

a {
    color: var(--blue-royal);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: var(--radius-md);
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.25;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease;
    text-decoration: none;
    white-space: nowrap;
}

.btn:hover { text-decoration: none; }

.btn-primary {
    background-color: var(--red-primary);
    color: #FFFFFF;
    box-shadow: 0 2px 8px rgba(217, 30, 42, 0.22);
}

.btn-primary:hover {
    background-color: var(--red-hover);
    color: #FFFFFF;
    transform: translateY(-1px);
}

.btn-navy {
    background-color: var(--navy-primary);
    color: #FFFFFF;
}

.btn-navy:hover {
    background-color: var(--navy-deep);
    color: #FFFFFF;
}

.btn-outline {
    background-color: var(--surface-white);
    color: var(--navy-primary);
    border-color: var(--border-subtle);
}

.btn-outline:hover {
    border-color: var(--navy-primary);
    background-color: var(--surface-canvas);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
}

.btn-ghost:hover {
    background: var(--surface-muted);
    color: var(--navy-primary);
}

.btn-sm {
    padding: 7px 12px;
    font-size: 13px;
    border-radius: var(--radius-sm);
}

.btn-lg {
    padding: 13px 24px;
    font-size: 15px;
    border-radius: var(--radius-md);
}

/* ── Cards & Surfaces ───────────────────────────────────────────────────── */
.card {
    background: var(--surface-white);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xs);
}

.card-pad { padding: 22px; }

.alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border-radius: var(--radius-md);
    font-size: 13.5px;
    border: 1px solid var(--border-subtle);
    margin-bottom: 16px;
}

.alert-error {
    background: var(--red-tint);
    border-color: var(--red-border);
    color: #991B1B;
}

.alert-success {
    background: var(--emerald-tint);
    border-color: var(--emerald-border);
    color: #065F46;
}

.alert-info {
    background: var(--blue-tint);
    border-color: var(--blue-border);
    color: var(--navy-primary);
}

.alert-warning {
    background: var(--amber-tint);
    border-color: var(--amber-border);
    color: #92400E;
}

/* ── Status Pills ───────────────────────────────────────────────────────── */
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.2;
    border: 1px solid transparent;
}

.pill-navy    { background: var(--blue-tint); color: var(--navy-primary); border-color: var(--blue-border); }
.pill-blue    { background: var(--blue-tint); color: var(--blue-royal); border-color: var(--blue-border); }
.pill-red     { background: var(--red-tint); color: var(--red-primary); border-color: var(--red-border); }
.pill-emerald { background: var(--emerald-tint); color: var(--emerald); border-color: var(--emerald-border); }
.pill-amber   { background: var(--amber-tint); color: var(--amber); border-color: var(--amber-border); }
.pill-slate   { background: var(--surface-muted); color: var(--text-secondary); border-color: var(--border-subtle); }

/* ── Public Navbar & Footer ─────────────────────────────────────────────── */
.pub-navbar {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-subtle);
}

.pub-navbar-inner {
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand-lockup:hover { text-decoration: none; }

.brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--navy-primary) 0%, #173B82 65%, var(--red-primary) 100%);
    color: #FFFFFF;
    display: grid;
    place-items: center;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 16px;
    letter-spacing: -0.03em;
    flex-shrink: 0;
    box-shadow: 0 3px 10px rgba(15, 42, 95, 0.18);
}

.brand-text-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 16px;
    color: var(--navy-primary);
    line-height: 1.15;
    display: block;
}

.brand-text-sub {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.02em;
    display: block;
}

.pub-nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.pub-nav-links a.nav-item {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.pub-nav-links a.nav-item:hover {
    color: var(--navy-primary);
}

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

.pub-footer {
    background: var(--navy-primary);
    color: rgba(248, 250, 252, 0.85);
    padding: 48px 0 28px;
    margin-top: 64px;
    border-top: 4px solid var(--red-primary);
}

.pub-footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.pub-footer h4 {
    color: #FFFFFF;
    font-size: 14px;
    margin-bottom: 12px;
}

.pub-footer ul {
    list-style: none;
    display: grid;
    gap: 8px;
    font-size: 13.5px;
}

.pub-footer a {
    color: rgba(248, 250, 252, 0.78);
}

.pub-footer a:hover {
    color: #FFFFFF;
}

.pub-footer-bottom {
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 12.5px;
    color: rgba(248, 250, 252, 0.65);
}

/* ── Landing Hero & Sections ────────────────────────────────────────────── */
.prisma-hero {
    position: relative;
    background: var(--surface-white);
    border-bottom: 1px solid var(--border-subtle);
    overflow: hidden;
    padding: 56px 0 60px;
}

.prisma-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 88% 18%, rgba(217, 30, 42, 0.08) 0%, transparent 38%),
        radial-gradient(circle at 12% 85%, rgba(15, 42, 95, 0.07) 0%, transparent 42%),
        linear-gradient(to right, rgba(226, 232, 240, 0.35) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(226, 232, 240, 0.35) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 40px 40px, 40px 40px;
    pointer-events: none;
}

.prisma-hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.25fr 0.95fr;
    gap: 36px;
    align-items: center;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--blue-tint);
    border: 1px solid var(--blue-border);
    color: var(--navy-primary);
    padding: 6px 12px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 18px;
}

.hero-eyebrow-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--red-primary);
}

.hero-headline {
    font-size: clamp(30px, 4vw, 44px);
    font-weight: 800;
    line-height: 1.12;
    color: var(--navy-primary);
    margin-bottom: 16px;
}

.hero-headline span.accent {
    color: var(--red-primary);
}

.hero-lead {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 580px;
    margin-bottom: 26px;
}

.hero-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 28px;
}

.hero-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.hero-stat-box {
    background: var(--surface-white);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    box-shadow: var(--shadow-xs);
}

.hero-stat-label {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 4px;
}

.hero-stat-val {
    font-family: var(--font-mono);
    font-size: 20px;
    font-weight: 700;
    color: var(--navy-primary);
}

/* Batch Countdown Panel */
.batch-panel {
    background: var(--navy-primary);
    color: #FFFFFF;
    border-radius: var(--radius-xl);
    padding: 28px;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
    border-top: 4px solid var(--red-primary);
}

.batch-panel-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(255, 255, 255, 0.12);
    color: #FFFFFF;
    padding: 5px 10px;
    border-radius: var(--radius-full);
    margin-bottom: 14px;
}

.batch-panel h2 {
    color: #FFFFFF;
    font-size: 21px;
    margin-bottom: 6px;
}

.batch-panel-meta {
    font-size: 13px;
    color: rgba(248, 250, 252, 0.78);
    margin-bottom: 20px;
}

.countdown-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.countdown-cell {
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius-md);
    padding: 12px 8px;
    text-align: center;
}

.countdown-num {
    font-family: var(--font-mono);
    font-size: 24px;
    font-weight: 700;
    color: #FFFFFF;
    line-height: 1.1;
    display: block;
}

.countdown-unit {
    font-size: 11px;
    color: rgba(248, 250, 252, 0.72);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.batch-timeline {
    display: grid;
    gap: 10px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 13px;
}

.batch-timeline-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.batch-timeline-row span:first-child { color: rgba(248, 250, 252, 0.72); }
.batch-timeline-row span:last-child  { font-family: var(--font-mono); font-weight: 600; color: #FFFFFF; }

/* Landing Content Sections */
.pub-section { padding: 56px 0 0; }

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.section-kicker {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--red-primary);
    margin-bottom: 4px;
}

.section-heading {
    font-size: 26px;
    font-weight: 800;
    color: var(--navy-primary);
}

.schemes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.scheme-card {
    background: var(--surface-white);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 18px;
    box-shadow: var(--shadow-xs);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.scheme-card:hover {
    border-color: var(--navy-primary);
    box-shadow: var(--shadow-md);
}

.scheme-top-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 12px;
}

.scheme-code {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
    color: var(--navy-primary);
    background: var(--surface-muted);
    padding: 4px 9px;
    border-radius: var(--radius-sm);
}

.scheme-budget-box {
    background: var(--surface-canvas);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 14px 0;
}

.scheme-meta-list {
    display: grid;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
}

.two-col-split {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 24px;
}

.announcement-list {
    display: grid;
    gap: 14px;
}

.announcement-item {
    background: var(--surface-white);
    border: 1px solid var(--border-subtle);
    border-left: 4px solid var(--navy-primary);
    border-radius: var(--radius-md);
    padding: 18px;
}

.announcement-item-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.faq-list { display: grid; gap: 10px; }

.faq-item {
    background: var(--surface-white);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.faq-trigger {
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-family: var(--font-display);
    font-size: 14.5px;
    font-weight: 700;
    color: var(--navy-primary);
    cursor: pointer;
}

.faq-answer {
    display: none;
    padding: 0 18px 16px;
    font-size: 13.5px;
    color: var(--text-secondary);
    border-top: 1px solid var(--surface-muted);
    padding-top: 12px;
}

.faq-item.is-open .faq-answer { display: block; }
.faq-item.is-open .faq-chevron { transform: rotate(180deg); }
.faq-chevron { transition: transform 0.18s ease; flex-shrink: 0; }

/* ── Auth Split Screen (Desktop) & Single Card (Mobile) ─────────────────── */
.auth-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    background: var(--surface-white);
}

.auth-brand-pane {
    background: linear-gradient(155deg, var(--navy-deep) 0%, var(--navy-primary) 60%, #173B82 100%);
    color: #FFFFFF;
    padding: 48px 56px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.auth-brand-pane::after {
    content: "";
    position: absolute;
    right: -120px;
    bottom: -120px;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(217, 30, 42, 0.34) 0%, transparent 70%);
    pointer-events: none;
}

.auth-quote-box {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-left: 4px solid var(--red-primary);
    border-radius: var(--radius-md);
    padding: 20px 22px;
    position: relative;
    z-index: 1;
}

.auth-form-pane {
    background: var(--surface-canvas);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 24px;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: var(--surface-white);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 32px;
    box-shadow: var(--shadow-md);
}

.form-group { margin-bottom: 16px; }

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--navy-primary);
    margin-bottom: 6px;
}

.form-input, .form-select, .form-textarea {
    width: 100%;
    background: var(--surface-white);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    font-family: var(--font-sans);
    font-size: 14px;
    color: var(--text-primary);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--blue-royal);
    box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.12);
}

.input-wrap { position: relative; }

.input-toggle-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 6px;
}

/* ── Authenticated Adaptive App Shell ───────────────────────────────────── */
.app-shell {
    min-height: 100vh;
    display: flex;
    background: var(--surface-canvas);
}

.app-sidebar {
    width: var(--sidebar-width);
    background: var(--navy-primary);
    color: var(--text-on-dark);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 45;
    transition: width 0.2s ease;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.app-shell.is-sidebar-collapsed .app-sidebar {
    width: var(--sidebar-mini);
}

.app-main-wrap {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-width: 0;
    display: flex;
    flex-direction: column;
    transition: margin-left 0.2s ease;
}

.app-shell.is-sidebar-collapsed .app-main-wrap {
    margin-left: var(--sidebar-mini);
}

.sidebar-head {
    height: var(--topbar-height);
    padding: 0 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #FFFFFF;
    text-decoration: none;
    overflow: hidden;
}

.sidebar-brand:hover { text-decoration: none; }

.app-shell.is-sidebar-collapsed .sidebar-brand-text,
.app-shell.is-sidebar-collapsed .sidebar-nav-label,
.app-shell.is-sidebar-collapsed .sidebar-section-title,
.app-shell.is-sidebar-collapsed .sidebar-user-meta {
    display: none;
}

.sidebar-collapse-btn {
    width: 30px;
    height: 30px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #FFFFFF;
    display: grid;
    place-items: center;
    cursor: pointer;
    flex-shrink: 0;
}

.sidebar-nav {
    flex: 1;
    padding: 16px 12px;
    overflow-y: auto;
    display: grid;
    gap: 4px;
    align-content: start;
}

.sidebar-section-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(248, 250, 252, 0.52);
    padding: 10px 10px 4px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--radius-md);
    color: rgba(248, 250, 252, 0.84);
    font-size: 13.5px;
    font-weight: 500;
    text-decoration: none;
    position: relative;
    transition: background-color 0.14s ease, color 0.14s ease;
}

.sidebar-link:hover {
    background: rgba(255, 255, 255, 0.09);
    color: #FFFFFF;
    text-decoration: none;
}

.sidebar-link.is-active {
    background: rgba(255, 255, 255, 0.14);
    color: #FFFFFF;
    font-weight: 700;
}

.sidebar-link.is-active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    bottom: 6px;
    width: 4px;
    border-radius: 0 4px 4px 0;
    background: var(--red-primary);
}

.sidebar-foot {
    padding: 14px 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.app-topbar {
    height: var(--topbar-height);
    background: var(--surface-white);
    border-bottom: 1px solid var(--border-subtle);
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    position: sticky;
    top: 0;
    z-index: 35;
}

.topbar-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    color: var(--text-muted);
}

.topbar-breadcrumb strong {
    color: var(--navy-primary);
    font-weight: 700;
}

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

.topbar-search {
    position: relative;
    width: 240px;
}

.topbar-search input {
    width: 100%;
    padding: 8px 12px 8px 34px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-subtle);
    background: var(--surface-canvas);
    font-size: 13px;
}

.topbar-icon-btn {
    position: relative;
    width: 38px;
    height: 38px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-subtle);
    background: var(--surface-white);
    color: var(--navy-primary);
    display: grid;
    place-items: center;
    cursor: pointer;
}

.notif-badge {
    position: absolute;
    top: -3px;
    right: -3px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: var(--radius-full);
    background: var(--red-primary);
    color: #FFFFFF;
    font-family: var(--font-mono);
    font-size: 10.5px;
    font-weight: 700;
    display: grid;
    place-items: center;
}

.app-content {
    padding: 24px;
    flex: 1;
}

/* Dense Data Table (Desktop) vs Cards (Mobile) */
.prisma-table-wrap {
    background: var(--surface-white);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: auto;
}

.prisma-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
}

.prisma-table thead th {
    position: sticky;
    top: 0;
    background: var(--surface-canvas);
    color: var(--navy-primary);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid var(--border-subtle);
}

.prisma-table tbody td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--surface-muted);
    vertical-align: middle;
}

.prisma-table tbody tr:hover {
    background: #FAFBFD;
}

.prisma-mobile-cards { display: none; }

/* Mobile App Chrome (Hidden on Desktop >= 1024px) */
.mobile-topbar { display: none; }
.mobile-bottom-nav { display: none; }
.prisma-fab { display: none; }

/* Bottom Sheet / Slide-up Drawer */
.prisma-sheet-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(9, 27, 64, 0.45);
    z-index: 60;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.prisma-sheet-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
}

.prisma-sheet {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 65;
    background: var(--surface-white);
    border-radius: 20px 20px 0 0;
    padding: 12px 20px 28px;
    max-height: 82vh;
    overflow-y: auto;
    transform: translateY(100%);
    transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: var(--shadow-lg);
}

.prisma-sheet.is-open {
    transform: translateY(0);
}

.prisma-sheet-handle {
    width: 44px;
    height: 4px;
    border-radius: 99px;
    background: var(--border-strong);
    margin: 0 auto 14px;
}

/* ── Responsive Breakpoints (< 1024px Mobile & Tablet) ──────────────────── */
@media (max-width: 1023px) {
    .pub-nav-links { display: none; }

    .prisma-hero-grid,
    .schemes-grid,
    .two-col-split,
    .pub-footer-grid,
    .auth-shell {
        grid-template-columns: 1fr;
    }

    .auth-brand-pane {
        display: none;
    }

    .auth-form-pane {
        min-height: 100vh;
        padding: 20px 16px;
        background: linear-gradient(180deg, var(--navy-primary) 0%, var(--navy-primary) 160px, var(--surface-canvas) 160px);
    }

    .hero-stats-row {
        grid-template-columns: 1fr;
    }

    /* Hide Desktop Sidebar & Topbar; enable Mobile Shell */
    .app-sidebar,
    .app-topbar {
        display: none;
    }

    .app-main-wrap {
        margin-left: 0 !important;
        padding-bottom: calc(var(--mobile-nav-h) + 20px);
    }

    .mobile-topbar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        height: 56px;
        padding: 0 16px;
        background: var(--navy-primary);
        color: #FFFFFF;
        position: sticky;
        top: 0;
        z-index: 40;
    }

    .app-content {
        padding: 16px;
    }

    .prisma-table-wrap { display: none; }
    .prisma-mobile-cards {
        display: grid;
        gap: 12px;
    }

    .mobile-bottom-nav {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        height: var(--mobile-nav-h);
        background: var(--surface-white);
        border-top: 1px solid var(--border-subtle);
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: 1fr;
        z-index: 45;
        box-shadow: 0 -4px 16px rgba(15, 42, 95, 0.06);
    }

    .mobile-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        font-size: 10.5px;
        font-weight: 600;
        color: var(--text-muted);
        text-decoration: none;
        border: none;
        background: transparent;
        cursor: pointer;
        position: relative;
    }

    .mobile-nav-item.is-active {
        color: var(--red-primary);
    }

    .mobile-nav-item.is-active::after {
        content: "";
        position: absolute;
        top: 0;
        width: 28px;
        height: 3px;
        border-radius: 0 0 4px 4px;
        background: var(--red-primary);
    }

    .prisma-fab {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        position: fixed;
        right: 16px;
        bottom: calc(var(--mobile-nav-h) + 16px);
        z-index: 46;
        background: var(--red-primary);
        color: #FFFFFF;
        padding: 12px 18px;
        border-radius: var(--radius-full);
        font-weight: 700;
        font-size: 13.5px;
        box-shadow: 0 8px 20px rgba(217, 30, 42, 0.35);
        text-decoration: none;
    }

    .prisma-fab:hover {
        background: var(--red-hover);
        color: #FFFFFF;
        text-decoration: none;
    }
}
