:root {
    --ink: #16120e;
    --ink-2: #3b3530;
    --muted: #7e7870;
    --warm-bg: #f9f6f2;
    --surface: #ffffff;
    --border: #ebe7e1;
    --border-2: #d4cfc8;

    --orange: #ff5533;
    --orange-hover: #ff3d1a;
    --orange-pale: #fff4f2;
    --orange-mid: #ffd9d3;

    --blue: #2563eb;
    --blue-pale: #eff6ff;

    --green: #16a34a;
    --green-pale: #f0fdf4;

    --amber: #d97706;
    --amber-pale: #fffbeb;

    --red: #dc2626;
    --red-pale: #fef2f2;

    --purple: #7c3aed;
    --purple-pale: #f5f3ff;

    --font-display: 'Syne', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    --r-sm: 6px;
    --r-md: 12px;
    --r-lg: 20px;
    --r-xl: 28px;

    --shadow: 0 1px 3px rgba(22, 18, 14, .06), 0 4px 16px rgba(22, 18, 14, .06);
    --shadow-lg: 0 4px 6px rgba(22, 18, 14, .04), 0 12px 40px rgba(22, 18, 14, .1);
    --ease: cubic-bezier(.4, 0, .2, 1);
}

/* Base settings */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body), sans-serif;
    background: var(--warm-bg);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display), sans-serif;
    line-height: 1.1;
    color: var(--ink);
}

p {
    line-height: 1.7;
}

/* Scrolling behaviour */
::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}

::-webkit-scrollbar-track {
    background: var(--warm-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--border-2);
    border-radius: 99px;
}

/* Animations */
@keyframes pulse {
    /* Pulsing animation */
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: .5;
        transform: scale(.7);
    }
}

@keyframes fadeUp {
    /* Gradual fade up */
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-1 {
    animation: fadeUp .55s ease both;
}

.fade-2 {
    animation: fadeUp .55s .10s ease both;
}

.fade-3 {
    animation: fadeUp .55s .18s ease both;
}

.fade-4 {
    animation: fadeUp .55s .26s ease both;
}

.fade-5 {
    animation: fadeUp .55s .34s ease both;
}

/* Wordmark */
.wordmark {
    font-family: var(--font-display), sans-serif;
    font-size: 1.2rem;
    line-height: 1;
    display: inline-flex;
    align-items: baseline;
    text-decoration: none;
    color: var(--ink);
}

.wordmark .wm-my {
    font-weight: 400;
    font-style: normal;
    color: var(--muted);
    padding-right: 3px;
}

.wordmark .wm-b {
    font-weight: 800;
    color: var(--ink);
    letter-spacing: -.03em;
}

/* Inverted wordmark (on dark backgrounds) */
.wordmark-inv .wm-my {
    color: rgba(255, 255, 255, .4);
}

.wordmark-inv .wm-b {
    color: #fff;
}

/* Buttons */
.btn-primary-brand {
    background: var(--orange);
    color: #fff;
    font-family: var(--font-display), sans-serif;
    font-weight: 700;
    font-size: .9rem;
    padding: .75rem 1.6rem;
    border-radius: var(--r-sm);
    border: 2px solid var(--orange);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    transition: all .2s var(--ease);
}

.btn-primary-brand:hover {
    background: var(--orange-hover);
    border-color: var(--orange-hover);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(255, 85, 51, .28);
}

.btn-secondary-brand {
    background: transparent;
    color: var(--ink);
    font-family: var(--font-display), sans-serif;
    font-weight: 600;
    font-size: .9rem;
    padding: .75rem 1.4rem;
    border-radius: var(--r-sm);
    border: 2px solid var(--border-2);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    transition: all .2s var(--ease);
}

.btn-secondary-brand:hover {
    border-color: var(--ink);
    color: var(--ink);
    background: var(--border);
}

.btn-cta-orange {
    background: var(--orange);
    color: #fff;
    font-family: var(--font-display), sans-serif;
    font-weight: 700;
    font-size: 1rem;
    padding: .9rem 2rem;
    border-radius: var(--r-sm);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    transition: all .2s var(--ease);
}

.btn-cta-orange:hover {
    background: var(--orange-hover);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(255, 85, 51, .4);
}

.btn-cta-ghost {
    background: rgba(255, 255, 255, .08);
    color: rgba(255, 255, 255, .7);
    border: 2px solid rgba(255, 255, 255, .15);
    font-family: var(--font-display), sans-serif;
    font-weight: 600;
    font-size: .9rem;
    padding: .9rem 1.6rem;
    border-radius: var(--r-sm);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    transition: all .2s var(--ease);
}

.btn-cta-ghost:hover {
    background: rgba(255, 255, 255, .14);
    color: #fff;
    border-color: rgba(255, 255, 255, .3);
}

/* Status badges */
.s-badge {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .22rem .6rem;
    border-radius: 99px;
    font-family: var(--font-display), sans-serif;
    font-size: .69rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.s-badge::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
}

.sb-pending {
    background: var(--amber-pale);
    color: var(--amber);
}

.sb-review {
    background: var(--blue-pale);
    color: var(--blue);
}

.sb-approved {
    background: var(--green-pale);
    color: var(--green);
}

.sb-rejected {
    background: var(--red-pale);
    color: var(--red);
}

.sb-flagged {
    background: #fdf4ff;
    color: #7e22ce;
}

/* Sections */
.section {
    padding: 5.5rem 0;
}

.section-alt {
    background: var(--surface);
}

.section-dark {
    background: var(--ink);
}

/* Section label */
.s-label {
    display: inline-block;
    font-family: var(--font-display), sans-serif;
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--orange);
    margin-bottom: .85rem;
}

/* Section title */
.s-title {
    font-family: var(--font-display), sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -.04em;
    line-height: 1.05;
    color: var(--ink);
}

.s-lead {
    font-size: 1rem;
    color: var(--muted);
    line-height: 1.75;
    max-width: 520px;
    margin-top: .85rem;
}

.section-dark .s-label {
    color: rgba(255, 255, 255, .3);
}

.section-dark .s-title {
    color: #fff;
}

.section-dark .s-lead {
    color: rgba(255, 255, 255, .45);
}

/* Navbar */
.site-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(249, 246, 242, .92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    display: flex;
    align-items: center;
    height: 60px;
    gap: 1.5rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: .25rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    display: block;
    padding: .4rem .8rem;
    font-size: .875rem;
    font-weight: 500;
    color: var(--muted);
    text-decoration: none;
    border-radius: var(--r-sm);
    transition: all .18s var(--ease);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--ink);
    background: var(--border);
}

.nav-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: .75rem;
}

.nav-login {
    font-size: .875rem;
    font-weight: 600;
    color: var(--muted);
    text-decoration: none;
    padding: .4rem .85rem;
    border-radius: var(--r-sm);
    transition: all .18s var(--ease);
}

.nav-login:hover {
    color: var(--ink);
    background: var(--border);
}

.btn-nav-demo {
    background: var(--ink);
    color: #fff;
    font-family: var(--font-display), sans-serif;
    font-size: .85rem;
    font-weight: 700;
    padding: .48rem 1.1rem;
    border-radius: var(--r-sm);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    transition: all .18s var(--ease);
}

.btn-nav-demo:hover {
    background: var(--ink-2);
    color: #fff;
    transform: translateY(-1px);
}

.btn-nav-cta {
    background: var(--orange);
    color: #fff;
    font-family: var(--font-display), sans-serif;
    font-size: .85rem;
    font-weight: 700;
    padding: .48rem 1.1rem;
    border-radius: var(--r-sm);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    transition: all .18s var(--ease);
}

.btn-nav-cta:hover {
    background: var(--orange-hover);
    color: #fff;
    transform: translateY(-1px);
}

/* Homepage hero */
.hero {
    padding: 5rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: var(--orange-pale);
    border: 1px solid var(--orange-mid);
    border-radius: 99px;
    padding: .3rem .9rem;
    font-size: .78rem;
    font-weight: 700;
    color: var(--orange);
    font-family: var(--font-display), sans-serif;
    letter-spacing: .04em;
    text-transform: uppercase;
    margin-bottom: 1.75rem;
}

.hero-eyebrow::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--orange);
    animation: pulse 2s ease infinite;
}

.hero h1 {
    font-size: clamp(2.8rem, 5.5vw, 5rem);
    font-weight: 800;
    letter-spacing: -.04em;
    line-height: 1;
    color: var(--ink);
    margin-bottom: 1.5rem;
}

.hero h1 em {
    font-style: italic;
    color: var(--orange);
    font-weight: 400;
}

.hero-lead {
    font-size: 1.05rem;
    color: var(--muted);
    max-width: 500px;
    line-height: 1.75;
    margin-bottom: 2.25rem;
}

.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
}

/* Dashboard preview card */
.hero-screen {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(22, 18, 14, .04);
    overflow: hidden;
}

/* ── Unified window chrome (used by _window_chrome.html partial) ── */
.win-chrome {
    padding: .65rem 1rem;
    display: flex;
    align-items: center;
    gap: .5rem;
}

.win-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.win-title {
    font-family: var(--font-mono), monospace;
    font-size: .65rem;
    color: rgba(255, 255, 255, .3);
    margin-left: .35rem;
}

/* Dark variant - hero dashboard preview */
.win-chrome.hs-bar {
    background: #100e0b;
}

/* Light variant - feature block panels (inherits .win-chrome) */
.win-chrome.fv-header {
    background: var(--warm-bg);
    border-bottom: 1px solid var(--border);
}

.win-chrome.fv-header .win-title {
    color: var(--muted);
}

.hs-body {
    padding: 1.25rem;
}

.hs-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: .5rem;
    margin-bottom: .85rem;
}

.hs-stat {
    background: var(--warm-bg);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    padding: .65rem .75rem;
}

.hs-stat .val {
    font-family: var(--font-display), sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--ink);
    line-height: 1;
    letter-spacing: -.04em;
}

.hs-stat .lbl {
    font-size: .65rem;
    font-weight: 600;
    color: var(--muted);
    margin-top: .15rem;
}

.hs-table {
    width: 100%;
    border-collapse: collapse;
}

.hs-table thead th {
    font-family: var(--font-display), sans-serif;
    font-size: .6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--muted);
    padding: .45rem .65rem;
    border-bottom: 1px solid var(--border);
    background: var(--warm-bg);
    white-space: nowrap;
}

.hs-table tbody td {
    padding: .55rem .65rem;
    font-size: .75rem;
    color: var(--ink-2);
    border-bottom: 1px solid rgba(22, 18, 14, .04);
}

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

/* Mini badges used inside hero table */
.hs-badge {
    display: inline-flex;
    align-items: center;
    gap: .2rem;
    padding: .15rem .45rem;
    border-radius: 99px;
    font-size: .6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.hs-badge::before {
    content: '';
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: currentColor;
}

.hb-g {
    background: var(--green-pale);
    color: var(--green);
}

.hb-a {
    background: var(--amber-pale);
    color: var(--amber);
}

.hb-b {
    background: var(--blue-pale);
    color: var(--blue);
}


/* Problem */
.problem-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--border);
    border-radius: var(--r-xl);
    overflow: hidden;
}

.problem-cell {
    background: var(--surface);
    padding: 2rem 2.25rem;
    transition: background .2s var(--ease);
}

.problem-cell:hover {
    background: var(--warm-bg);
}

.problem-cell .pc-icon {
    font-size: 1.25rem;
    color: var(--orange);
    margin-bottom: .75rem;
    display: block;
}

.problem-cell h4 {
    font-family: var(--font-display), sans-serif;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: .5rem;
}

.problem-cell p {
    font-size: .875rem;
    color: var(--muted);
    margin: 0;
    line-height: 1.65;
}

.before-after {
    display: flex;
    gap: .75rem;
    margin-top: .85rem;
    flex-wrap: wrap;
}

.ba-chip {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: .72rem;
    font-weight: 600;
    padding: .25rem .65rem;
    border-radius: var(--r-sm);
}

.ba-before {
    background: var(--red-pale);
    color: var(--red);
}

.ba-after {
    background: var(--green-pale);
    color: var(--green);
}

/* Feature blocks */
.feature-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
    margin-bottom: 5rem;
}

.feature-block:last-child {
    margin-bottom: 0;
}

.feature-block.flip {
    direction: rtl;
}

.feature-block.flip > * {
    direction: ltr;
}

/* Feature visual (mock UI panel) */
.feature-visual {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.fv-body {
    padding: 1.25rem;
}

/* Feature copy */
.feature-text .ft-step {
    font-family: var(--font-display), sans-serif;
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--orange);
    margin-bottom: .5rem;
}

.feature-text h3 {
    font-family: var(--font-display), sans-serif;
    font-size: 1.9rem;
    font-weight: 800;
    letter-spacing: -.04em;
    line-height: 1.05;
    color: var(--ink);
    margin-bottom: .85rem;
}

.feature-text p {
    font-size: .95rem;
    color: var(--muted);
    line-height: 1.75;
}

.feature-bullets {
    list-style: none;
    padding: 0;
    margin: 1.25rem 0 0;
    display: flex;
    flex-direction: column;
    gap: .55rem;
}

.feature-bullets li {
    display: flex;
    align-items: flex-start;
    gap: .65rem;
    font-size: .9rem;
    color: var(--ink-2);
    line-height: 1.5;
}

.feature-bullets li::before {
    content: '→';
    color: var(--orange);
    flex-shrink: 0;
    font-weight: 700;
}

/* Workflow steps (used in feature visual) */
.workflow-step {
    display: flex;
    align-items: center;
    gap: .85rem;
    padding: .75rem;
    background: var(--warm-bg);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    margin-bottom: .5rem;
    transition: all .18s var(--ease);
}

.workflow-step .ws-num {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--ink);
    color: #fff;
    font-family: var(--font-display), sans-serif;
    font-size: .7rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.workflow-step .ws-label {
    font-size: .83rem;
    font-weight: 600;
    color: var(--ink);
    flex: 1;
}

.workflow-step .ws-status {
    font-size: .68rem;
    color: var(--muted);
}

.workflow-step.ws-done .ws-num {
    background: var(--green);
}

.workflow-step.ws-active .ws-num {
    background: var(--orange);
}

.workflow-step.ws-active {
    border-color: var(--orange-mid);
    background: var(--orange-pale);
}

.workflow-step.ws-active .ws-status {
    color: var(--orange);
    font-weight: 600;
}

/* Compliance section */
.compliance-meter {
    background: var(--ink);
    border-radius: var(--r-lg);
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    margin-bottom: .75rem;
}

.compliance-meter::after {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(255, 85, 51, .08);
}

.cm-score {
    font-family: var(--font-display), sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    letter-spacing: -.06em;
}

.cm-score-unit {
    font-size: 1.8rem;
    font-weight: 400;
    color: rgba(255, 255, 255, .4);
}

.cm-label {
    font-family: var(--font-display), sans-serif;
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: rgba(255, 255, 255, .35);
    margin-top: .2rem;
}

.cm-items {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: .4rem;
}

.cm-item {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .78rem;
}

.cm-item span {
    color: rgba(255, 255, 255, .5);
}

.cm-item.ok i {
    color: #4ade80;
}

.cm-item.ok span {
    color: rgba(255, 255, 255, .75);
}

.cm-item.warn i {
    color: #facc15;
}

/* Report rows */
.report-row {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .7rem .85rem;
    background: var(--warm-bg);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    margin-bottom: .4rem;
    transition: all .18s var(--ease);
    cursor: default;
}

.report-row:hover {
    border-color: var(--orange-mid);
    background: var(--orange-pale);
}

.rr-icon {
    width: 30px;
    height: 30px;
    border-radius: var(--r-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .8rem;
    flex-shrink: 0;
}

.rr-label {
    font-size: .83rem;
    font-weight: 600;
    color: var(--ink);
    flex: 1;
}

.rr-dl {
    font-size: .72rem;
    font-weight: 700;
    color: var(--blue);
    display: flex;
    align-items: center;
    gap: .25rem;
}

/* Pricing grid */
.pricing-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
    align-items: start;
}

.price-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: box-shadow .2s var(--ease);
}

.price-card:hover {
    box-shadow: var(--shadow-lg);
}

.price-card.featured {
    background: var(--ink);
    border-color: var(--ink);
}

.price-tier {
    font-family: var(--font-display), sans-serif;
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--muted);
    margin-bottom: 1rem;
    display: block;
}

.price-card.featured .price-tier {
    color: rgba(255, 255, 255, .4);
}

.price-amount {
    font-family: var(--font-display), sans-serif;
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -.06em;
    color: var(--ink);
    line-height: 1;
    display: block;
}

.price-card.featured .price-amount {
    color: #fff;
}

.price-period {
    font-size: .82rem;
    color: var(--muted);
    margin-top: .25rem;
    display: block;
}

.price-card.featured .price-period {
    color: rgba(255, 255, 255, .4);
}

.price-desc {
    font-size: .875rem;
    color: var(--muted);
    line-height: 1.6;
    margin: 1.25rem 0;
}

.price-card.featured .price-desc {
    color: rgba(255, 255, 255, .5);
}

.price-divider {
    border-color: var(--border);
    margin: 1.25rem 0;
}

.price-card.featured .price-divider {
    border-color: rgba(255, 255, 255, .1);
}

.price-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: .6rem;
}

.price-features li {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    font-size: .875rem;
    color: var(--ink-2);
    line-height: 1.45;
}

.price-features li i {
    flex-shrink: 0;
    font-size: .8rem;
    margin-top: .15rem;
}

.price-card.featured .price-features li {
    color: rgba(255, 255, 255, .65);
}

.pi-y {
    color: var(--green);
}

.pi-n {
    color: var(--border-2);
}

.price-card.featured .pi-y {
    color: #4ade80;
}

.price-cta {
    display: block;
    text-align: center;
    margin-top: 1.75rem;
    padding: .75rem;
    border-radius: var(--r-sm);
    font-family: var(--font-display), sans-serif;
    font-size: .875rem;
    font-weight: 700;
    text-decoration: none;
    transition: all .2s var(--ease);
    border: 2px solid;
}

.price-cta.dark {
    background: var(--ink);
    color: #fff;
    border-color: var(--ink);
}

.price-cta.dark:hover {
    background: var(--ink-2);
}

.price-cta.outline {
    background: transparent;
    color: var(--muted);
    border-color: var(--border-2);
}

.price-cta.outline:hover {
    border-color: var(--ink);
    color: var(--ink);
}

.price-cta.orange {
    background: var(--orange);
    color: #fff;
    border-color: var(--orange);
}

.price-cta.orange:hover {
    background: var(--orange-hover);
}

.price-badge {
    display: inline-block;
    background: var(--orange);
    color: #fff;
    font-family: var(--font-display), sans-serif;
    font-size: .62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    padding: .18rem .5rem;
    border-radius: var(--r-sm);
    margin-left: .4rem;
    vertical-align: middle;
}

/* FAQ */
.faq-item {
    border-bottom: 1px solid var(--border);
}

.faq-btn {
    width: 100%;
    background: none;
    border: none;
    padding: 1.15rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    cursor: pointer;
    text-align: left;
    font-family: var(--font-display), sans-serif;
    font-size: .975rem;
    font-weight: 700;
    color: var(--ink);
    transition: color .18s var(--ease);
}

.faq-btn:hover {
    color: var(--orange);
}

.faq-icon {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--warm-bg);
    border: 1.5px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .7rem;
    color: var(--muted);
    flex-shrink: 0;
    transition: all .2s var(--ease);
}

.faq-btn[aria-expanded="true"] .faq-icon {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 0 1.15rem;
    font-size: .9rem;
    color: var(--muted);
    line-height: 1.75;
}

/* Final call-to-action */
.final-cta {
    background: var(--ink);
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.final-cta::before {
    content: 'Demo.';
    position: absolute;
    right: -2rem;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--font-display), sans-serif;
    font-size: 18rem;
    font-weight: 800;
    color: rgba(255, 255, 255, .025);
    letter-spacing: -.1em;
    line-height: 1;
    pointer-events: none;
    user-select: none;
}

.final-cta h2 {
    font-family: var(--font-display), sans-serif;
    font-size: clamp(2.2rem, 5vw, 4.5rem);
    font-weight: 800;
    letter-spacing: -.05em;
    line-height: 1;
    color: #fff;
    margin-bottom: 1.25rem;
}

.final-cta p {
    color: rgba(255, 255, 255, .45);
    font-size: 1rem;
    max-width: 440px;
    line-height: 1.7;
}

.cta-checklist {
    display: flex;
    flex-direction: column;
    gap: .65rem;
}

.cta-checklist-item {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    font-size: .875rem;
    color: rgba(255, 255, 255, .6);
    line-height: 1.5;
}

.cta-checklist-item i {
    color: var(--orange);
    flex-shrink: 0;
    margin-top: .15rem;
}

.cta-panel {
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: var(--r-xl);
    padding: 1.75rem;
}

.cta-panel-label {
    font-family: var(--font-display), sans-serif;
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: rgba(255, 255, 255, .25);
    margin-bottom: 1.1rem;
}

/* Footer */
.site-footer {
    background: var(--ink);
    padding: 4rem 0 2rem;
    color: rgba(255, 255, 255, .4);
}

.footer-tagline {
    font-family: var(--font-display), sans-serif;
    font-size: .9rem;
    color: rgba(255, 255, 255, .5);
    margin-top: .5rem;
    max-width: 260px;
    line-height: 1.55;
}

.footer-head {
    font-family: var(--font-display), sans-serif;
    font-size: .65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: rgba(255, 255, 255, .22);
    margin-bottom: .85rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: .4rem;
}

.footer-links a {
    font-size: .84rem;
    color: rgba(255, 255, 255, .4);
    text-decoration: none;
    transition: color .18s var(--ease);
}

.footer-links a:hover {
    color: rgba(255, 255, 255, .9);
}

.footer-divider {
    border-color: rgba(255, 255, 255, .07);
    margin: 2.5rem 0 1.5rem;
}

.footer-legal {
    font-size: .75rem;
    color: rgba(255, 255, 255, .2);
}

.footer-chip {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: var(--r-sm);
    padding: .3rem .65rem;
    font-size: .7rem;
    color: rgba(255, 255, 255, .3);
}

.footer-chip-invert {
    background: #111827;
    color: #ffffff;
    border: 1px solid #1f2937;
}

/* ════════════════════════════════════════════════════════════════
   ADMIN DASHBOARD COMPONENTS
   (used in admin.html)
   ════════════════════════════════════════════════════════════════ */

/* Sidebar */
.admin-sidebar {
    width: var(--sb-w, 240px);
    background: #100e0b;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 200;
    border-right: 1px solid rgba(255, 255, 255, .06);
    transition: transform .28s var(--ease);
}

.sb-top {
    padding: 1.1rem 1.1rem .9rem;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sb-nav {
    flex: 1;
    overflow-y: auto;
    padding: .75rem 0;
    scrollbar-width: none;
}

.sb-section {
    font-family: var(--font-display), sans-serif;
    font-size: .6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: rgba(255, 255, 255, .2);
    padding: .9rem 1rem .35rem;
}

.sb-link {
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .55rem 1rem;
    font-size: .84rem;
    font-weight: 500;
    color: rgba(255, 255, 255, .45);
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    transition: all .15s var(--ease);
    border-left: 2px solid transparent;
}

.sb-link:hover {
    color: rgba(255, 255, 255, .85);
    background: rgba(255, 255, 255, .04);
}

.sb-link.active {
    color: #fff;
    background: rgba(255, 85, 51, .08);
    border-left-color: var(--orange);
}

.sb-link .sbl-icon {
    width: 18px;
    font-size: .9rem;
    flex-shrink: 0;
    opacity: .7;
}

.sb-link.active .sbl-icon {
    opacity: 1;
    color: var(--orange);
}

.sb-badge {
    margin-left: auto;
    background: rgba(255, 85, 51, .2);
    color: var(--orange);
    font-size: .65rem;
    font-weight: 700;
    padding: .15rem .45rem;
    border-radius: 99px;
}

.sb-foot {
    border-top: 1px solid rgba(255, 255, 255, .06);
    padding: .9rem 1rem;
    display: flex;
    align-items: center;
    gap: .7rem;
}

.sb-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 85, 51, .15);
    border: 1.5px solid rgba(255, 85, 51, .3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display), sans-serif;
    font-size: .72rem;
    font-weight: 800;
    color: var(--orange);
    flex-shrink: 0;
}

.sb-name {
    font-size: .8rem;
    font-weight: 600;
    color: #fff;
    display: block;
    line-height: 1.2;
}

.sb-role {
    font-size: .7rem;
    color: rgba(255, 255, 255, .35);
    display: block;
}

/* Topbar */
.admin-topbar {
    position: fixed;
    top: 0;
    left: var(--sb-w, 240px);
    right: 0;
    height: 56px;
    z-index: 100;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    gap: 1rem;
}

.topbar-search {
    flex: 1;
    max-width: 360px;
    position: relative;
}

.topbar-search input {
    width: 100%;
    background: var(--warm-bg);
    border: 1.5px solid var(--border);
    border-radius: var(--r-sm);
    padding: .4rem .85rem .4rem 2.1rem;
    font-family: var(--font-body), sans-serif;
    font-size: .84rem;
    color: var(--ink);
    transition: all .18s;
}

.topbar-search input:focus {
    outline: none;
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(255, 85, 51, .1);
}

.topbar-search i {
    position: absolute;
    left: .7rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    font-size: .8rem;
}

.topbar-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: .5rem;
}

.tb-btn {
    width: 34px;
    height: 34px;
    border: 1.5px solid var(--border);
    border-radius: var(--r-sm);
    background: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: .9rem;
    cursor: pointer;
    transition: all .18s;
    position: relative;
}

.tb-btn:hover {
    border-color: var(--border-2);
    color: var(--ink);
}

.tb-notif {
    position: absolute;
    top: -3px;
    right: -3px;
    width: 14px;
    height: 14px;
    background: var(--orange);
    color: #fff;
    font-size: .55rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--surface);
}

.tb-user {
    display: flex;
    align-items: center;
    gap: .55rem;
    border: 1.5px solid var(--border);
    border-radius: var(--r-sm);
    padding: .3rem .7rem .3rem .35rem;
    cursor: pointer;
    transition: all .18s;
    background: var(--surface);
}

.tb-user:hover {
    border-color: var(--border-2);
}

.tb-user-av {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--orange-pale);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display), sans-serif;
    font-size: .68rem;
    font-weight: 800;
    color: var(--orange);
}

/* Admin content area */
.admin-main {
    margin-left: var(--sb-w, 240px);
    padding-top: 56px;
    flex: 1;
}

.admin-content {
    padding: 1.75rem;
}

/* Stat cards */
.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 1.25rem 1.35rem;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    transition: box-shadow .2s var(--ease);
}

.stat-card:hover {
    box-shadow: var(--shadow-lg);
}

.stat-card .sc-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: var(--r-lg) var(--r-lg) 0 0;
}

.stat-card .sc-icon {
    width: 38px;
    height: 38px;
    border-radius: var(--r-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.stat-card .sc-value {
    font-family: var(--font-display), sans-serif;
    font-size: 1.9rem;
    font-weight: 800;
    letter-spacing: -.04em;
    color: var(--ink);
    line-height: 1;
    margin-top: .65rem;
}

.stat-card .sc-label {
    font-family: var(--font-display), sans-serif;
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--muted);
    margin-top: .25rem;
}

.stat-card .sc-delta {
    display: flex;
    align-items: center;
    gap: .3rem;
    font-size: .76rem;
    font-weight: 600;
    margin-top: .5rem;
}

.sc-delta.up {
    color: var(--green);
}

.sc-delta.down {
    color: var(--red);
}

/* Admin card / panel */
.admin-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.card-hd {
    display: flex;
    align-items: center;
    padding: .9rem 1.25rem;
    border-bottom: 1px solid var(--border);
    gap: .75rem;
}

.card-hd h3 {
    font-family: var(--font-display), sans-serif;
    font-size: .95rem;
    font-weight: 800;
    color: var(--ink);
    margin: 0;
    flex: 1;
}

.card-hd .card-meta {
    font-size: .78rem;
    color: var(--muted);
}

/* Filter bar */
.filter-bar {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
    padding: .85rem 1.25rem;
    border-bottom: 1px solid var(--border);
    background: var(--warm-bg);
}

.f-tab {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .32rem .75rem;
    border-radius: var(--r-sm);
    font-family: var(--font-display), sans-serif;
    font-size: .78rem;
    font-weight: 700;
    color: var(--muted);
    background: none;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: all .15s var(--ease);
}

.f-tab:hover {
    color: var(--ink);
    background: var(--border);
}

.f-tab.active {
    color: var(--ink);
    border-color: var(--border-2);
    background: var(--surface);
}

.f-count {
    background: var(--border);
    color: var(--muted);
    font-size: .65rem;
    font-weight: 700;
    padding: .1rem .38rem;
    border-radius: 99px;
}

.f-tab.active .f-count {
    background: var(--orange);
    color: #fff;
}

.f-right {
    margin-left: auto;
    display: flex;
    gap: .5rem;
    align-items: center;
}

.f-select {
    border: 1.5px solid var(--border);
    border-radius: var(--r-sm);
    padding: .32rem .65rem;
    font-family: var(--font-body), sans-serif;
    font-size: .78rem;
    color: var(--ink);
    background: var(--surface);
    cursor: pointer;
}

.f-select:focus {
    outline: none;
    border-color: var(--orange);
}

/* Admin table */
.admin-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: .84rem;
}

.admin-table thead th {
    font-family: var(--font-display), sans-serif;
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .09em;
    color: var(--muted);
    padding: .7rem 1rem;
    border-bottom: 1px solid var(--border);
    background: var(--warm-bg);
    white-space: nowrap;
}

.admin-table thead th:first-child {
    padding-left: 1.25rem;
}

.admin-table thead th:last-child {
    padding-right: 1.25rem;
}

.admin-table tbody td {
    padding: .8rem 1rem;
    border-bottom: 1px solid rgba(22, 18, 14, .04);
    vertical-align: middle;
}

.admin-table tbody td:first-child {
    padding-left: 1.25rem;
}

.admin-table tbody td:last-child {
    padding-right: 1.25rem;
}

.admin-table tbody tr {
    transition: background .15s;
}

.admin-table tbody tr:hover {
    background: var(--warm-bg);
}

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

/* Table action buttons */
.tbl-actions {
    display: flex;
    gap: .4rem;
    align-items: center;
}

.tbl-btn {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .28rem .6rem;
    border-radius: var(--r-sm);
    font-family: var(--font-display), sans-serif;
    font-size: .72rem;
    font-weight: 700;
    border: 1.5px solid;
    cursor: pointer;
    transition: all .15s;
    white-space: nowrap;
}

.tb-view {
    border-color: var(--border-2);
    background: var(--surface);
    color: var(--muted);
}

.tb-view:hover {
    border-color: var(--ink);
    color: var(--ink);
}

.tb-approve {
    border-color: #bbf7d0;
    background: var(--green-pale);
    color: var(--green);
}

.tb-approve:hover {
    background: #d1fae5;
}

.tb-reject {
    border-color: #fecaca;
    background: var(--red-pale);
    color: var(--red);
}

.tb-reject:hover {
    background: #fee2e2;
}

.tb-flag {
    border-color: #e9d5ff;
    background: #fdf4ff;
    color: #7e22ce;
}

.tb-flag:hover {
    background: #f3e8ff;
}

/* Progress bar */
.prog-bar {
    height: 5px;
    background: var(--border);
    border-radius: 99px;
    overflow: hidden;
    margin-top: .4rem;
}

.prog-fill {
    height: 100%;
    border-radius: 99px;
    transition: width .6s var(--ease);
}

/* Activity feed */
.act-item {
    display: flex;
    align-items: flex-start;
    gap: .85rem;
    padding: .85rem 0;
    border-bottom: 1px solid var(--border);
}

.act-item:last-child {
    border-bottom: none;
}

.act-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--r-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .85rem;
    flex-shrink: 0;
}

.ai-g {
    background: var(--green-pale);
    color: var(--green);
}

.ai-o {
    background: var(--amber-pale);
    color: var(--amber);
}

.ai-r {
    background: var(--red-pale);
    color: var(--red);
}

.ai-b {
    background: var(--blue-pale);
    color: var(--blue);
}

.ai-p {
    background: var(--orange-pale);
    color: var(--orange);
}

.act-text {
    font-size: .83rem;
    color: var(--ink-2);
    line-height: 1.45;
    flex: 1;
}

.act-text strong {
    color: var(--ink);
}

.act-time {
    font-size: .7rem;
    color: var(--muted);
    margin-top: .2rem;
    display: block;
    font-family: var(--font-mono), monospace;
}

/* Modal */
.modal-content {
    border: none;
    border-radius: var(--r-lg);
    box-shadow: 0 24px 64px rgba(22, 18, 14, .18);
}

.modal-header {
    background: var(--ink);
    border-radius: var(--r-lg) var(--r-lg) 0 0;
    border-bottom: none;
    padding: 1.1rem 1.35rem;
}

.modal-title {
    font-family: var(--font-display), sans-serif;
    font-size: 1rem;
    font-weight: 800;
    color: #fff;
}

.btn-close {
    filter: invert(1);
}

.modal-body {
    padding: 1.35rem;
}

.modal-footer {
    border-top: 1px solid var(--border);
    padding: .9rem 1.35rem;
}

.detail-row {
    display: flex;
    padding: .6rem 0;
    border-bottom: 1px solid var(--border);
    font-size: .85rem;
}

.detail-row:last-child {
    border-bottom: none;
}

.dr-label {
    color: var(--muted);
    font-weight: 600;
    width: 150px;
    flex-shrink: 0;
    font-family: var(--font-display), sans-serif;
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.dr-value {
    color: var(--ink);
    font-weight: 600;
    flex: 1;
}

/* Overlay for mobile sidebar */
.sb-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(16, 14, 11, .5);
    z-index: 150;
}

/* ════════════════════════════════════════════════════════════════
   APPLICATION FORM COMPONENTS
   (used in apply.html)
   ════════════════════════════════════════════════════════════════ */
.apply-nav {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: .875rem 0;
    position: sticky;
    top: 0;
    z-index: 50;
}

.apply-nav .container {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.progress-strip {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

.step-tabs {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
}

.step-tab {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .85rem 1.35rem;
    white-space: nowrap;
    cursor: pointer;
    border: none;
    background: none;
    transition: all .18s;
    position: relative;
    border-right: 1px solid var(--border);
}

.step-tab:last-child {
    border-right: none;
}

.step-tab .st-num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display), sans-serif;
    font-size: .72rem;
    font-weight: 800;
    background: var(--border);
    color: var(--muted);
    flex-shrink: 0;
    transition: all .2s;
}

.step-tab .st-label {
    font-size: .8rem;
    font-weight: 600;
    color: var(--muted);
    font-family: var(--font-display), sans-serif;
}

.step-tab.done .st-num {
    background: var(--green);
    color: #fff;
}

.step-tab.done .st-label {
    color: var(--ink);
}

.step-tab.active .st-num {
    background: var(--orange);
    color: #fff;
}

.step-tab.active .st-label {
    color: var(--orange);
}

.step-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--orange);
}

.step-track {
    display: flex;
    align-items: stretch;
    border-top: 3px solid var(--border);
    position: relative;
}

.step-track-fill {
    position: absolute;
    top: -3px;
    left: 0;
    height: 3px;
    background: var(--orange);
    transition: width .4s var(--ease);
    border-radius: 0 2px 2px 0;
}

.apply-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    min-height: calc(100vh - 120px);
}

.apply-main {
    padding: 2.5rem;
    border-right: 1px solid var(--border);
}

.apply-sidebar {
    padding: 2rem;
    background: var(--warm-bg);
}

/* Field elements */
.field-group {
    margin-bottom: 1.35rem;
}

.field-label {
    display: block;
    font-family: var(--font-display), sans-serif;
    font-size: .78rem;
    font-weight: 700;
    color: var(--ink);
    text-transform: uppercase;
    letter-spacing: .07em;
    margin-bottom: .45rem;
}

.field-label .req {
    color: var(--orange);
    margin-left: 2px;
}

.field-hint {
    font-size: .78rem;
    color: var(--muted);
    margin-top: .3rem;
    line-height: 1.5;
}

.form-control, .form-select {
    width: 100%;
    background: var(--surface);
    border: 1.5px solid var(--border-2);
    border-radius: var(--r-sm);
    font-family: var(--font-body), sans-serif;
    font-size: .9375rem;
    color: var(--ink);
    padding: .6rem .9rem;
    transition: all .18s;
    line-height: 1.5;
}

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

.form-control:focus, .form-select:focus {
    outline: none;
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(255, 85, 51, .12);
    background: var(--surface);
}

/* Choice items (radio/checkbox) */
.choice-group {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.choice-item {
    display: flex;
    align-items: flex-start;
    gap: .85rem;
    padding: .85rem 1rem;
    border: 1.5px solid var(--border-2);
    border-radius: var(--r-sm);
    cursor: pointer;
    transition: all .18s;
    background: var(--surface);
}

.choice-item:hover {
    border-color: var(--orange-mid);
    background: var(--orange-pale);
}

.choice-item.selected {
    border-color: var(--orange);
    background: var(--orange-pale);
}

.choice-item input[type="radio"],
.choice-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--orange);
    flex-shrink: 0;
    margin-top: .1rem;
    cursor: pointer;
}

.choice-item .ci-label {
    font-size: .9rem;
    font-weight: 600;
    color: var(--ink);
    display: block;
}

.choice-item .ci-sub {
    font-size: .78rem;
    color: var(--muted);
    display: block;
    margin-top: .1rem;
}

/* File upload zone */
.upload-zone {
    border: 2px dashed var(--border-2);
    border-radius: var(--r-md);
    background: var(--warm-bg);
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all .2s;
    position: relative;
}

.upload-zone:hover, .upload-zone.dragover {
    border-color: var(--orange);
    background: var(--orange-pale);
}

.upload-zone input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}

.uz-icon {
    font-size: 2rem;
    color: var(--border-2);
    margin-bottom: .75rem;
    transition: color .2s;
}

.upload-zone:hover .uz-icon {
    color: var(--orange);
}

.uz-title {
    font-family: var(--font-display), sans-serif;
    font-size: .9rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: .25rem;
}

.uz-sub {
    font-size: .78rem;
    color: var(--muted);
}

/* Callout boxes */
.form-callout {
    border-radius: var(--r-md);
    padding: 1rem 1.1rem;
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    font-size: .84rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.form-callout i {
    flex-shrink: 0;
    margin-top: .1rem;
    font-size: .95rem;
}

.fc-info {
    background: var(--blue-pale);
    border: 1px solid #bfdbfe;
    color: #1e3a8a;
}

.fc-warn {
    background: var(--amber-pale);
    border: 1px solid #fde68a;
    color: #78350f;
}

.fc-success {
    background: var(--green-pale);
    border: 1px solid #bbf7d0;
    color: #14532d;
}

/* Form section header */
.form-section-hd {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border);
}

.fsh-step {
    font-family: var(--font-display), sans-serif;
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--orange);
    margin-bottom: .4rem;
}

.form-section-hd h2 {
    font-family: var(--font-display), sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -.03em;
    color: var(--ink);
    margin: 0;
}

.form-section-hd p {
    font-size: .875rem;
    color: var(--muted);
    margin: .4rem 0 0;
    line-height: 1.6;
}

/* Form divider */
.form-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0;
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--muted);
    font-family: var(--font-display), sans-serif;
}

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

/* Form step visibility */
.form-step {
    display: none;
}

.form-step.active {
    display: block;
}

/* Apply action bar */
.apply-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: none;
    border: 1.5px solid var(--border-2);
    border-radius: var(--r-sm);
    padding: .65rem 1.25rem;
    font-family: var(--font-display), sans-serif;
    font-size: .875rem;
    font-weight: 700;
    color: var(--muted);
    cursor: pointer;
    transition: all .18s;
    text-decoration: none;
}

.btn-back:hover {
    border-color: var(--ink);
    color: var(--ink);
}

.btn-next {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: var(--ink);
    color: #fff;
    border: 2px solid var(--ink);
    border-radius: var(--r-sm);
    padding: .65rem 1.6rem;
    font-family: var(--font-display), sans-serif;
    font-size: .9rem;
    font-weight: 800;
    cursor: pointer;
    transition: all .2s;
    letter-spacing: -.01em;
}

.btn-next:hover {
    background: var(--ink-2);
    color: #fff;
    transform: translateY(-1px);
}

.btn-submit {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: var(--orange);
    color: #fff;
    border: 2px solid var(--orange);
    border-radius: var(--r-sm);
    padding: .65rem 1.6rem;
    font-family: var(--font-display), sans-serif;
    font-size: .9rem;
    font-weight: 800;
    cursor: pointer;
    transition: all .2s;
    letter-spacing: -.01em;
}

.btn-submit:hover {
    background: var(--orange-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(255, 85, 51, .35);
}

/* Sidebar cards (apply page) */
.sidebar-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 1.35rem;
    box-shadow: var(--shadow);
    margin-bottom: 1rem;
}

.sidebar-card h5 {
    font-family: var(--font-display), sans-serif;
    font-size: .85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--muted);
    margin-bottom: 1rem;
}

/* Success screen */
.success-screen {
    text-align: center;
    padding: 3rem 2rem;
    display: none;
}

.success-screen.active {
    display: block;
}

.success-icon {
    width: 72px;
    height: 72px;
    background: var(--green-pale);
    border: 2px solid #bbf7d0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--green);
    margin: 0 auto 1.5rem;
}

.ref-box {
    display: inline-block;
    background: var(--warm-bg);
    border: 1.5px solid var(--border-2);
    border-radius: var(--r-sm);
    padding: .5rem 1.25rem;
    font-family: var(--font-mono), monospace;
    font-size: .95rem;
    color: var(--orange);
    font-weight: 500;
    margin: 1rem 0;
    letter-spacing: .05em;
}

/* ════════════════════════════════════════════════════════════════
   UTILITY CLASSES
   Replaces repeated inline style= declarations across templates.
   ════════════════════════════════════════════════════════════════ */

/* Typography */
.t-mono {
    font-family: var(--font-mono), monospace;
}

.t-mono-sm {
    font-family: var(--font-mono), monospace;
    font-size: .82rem;
}

.t-mono-bold {
    font-family: var(--font-mono), monospace;
    font-weight: 600;
}

.t-mono-muted {
    font-family: var(--font-mono), monospace;
    color: var(--muted);
}

.t-strong {
    font-weight: 600;
    color: var(--ink);
}

.t-muted {
    color: var(--muted);
}

/* distinct from Bootstrap text-muted palette */
.t-ink {
    color: var(--ink);
}

.t-orange {
    color: var(--orange);
}

.t-sm {
    font-size: .82rem;
}

.t-xs {
    font-size: .72rem;
}

/* Micro-label: small all-caps heading used in modals and panels */
.micro-label {
    font-family: var(--font-display), sans-serif;
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--muted);
}

/* Card body padding variants */
.card-bd {
    padding: 1.1rem 1.25rem;
}

.card-bd-sm {
    padding: .5rem 1.25rem 1rem;
}

/* Check icon - sidebar progress checklist */
.check-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--border);
    color: var(--muted);
    font-size: .65rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background .2s, color .2s;
}

.check-icon.done {
    background: var(--green);
    color: #fff;
}

/* Mac-window chrome dot colours (used in hero + feature visuals) */
.win-dot-r {
    background: #ff5f57;
}

.win-dot-a {
    background: #febc2e;
}

.win-dot-g {
    background: #28c840;
}

/* Option card - action-choice items in modals */
.option-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.1rem 1.25rem;
    background: var(--warm-bg);
    border: 1.5px solid var(--border);
    border-radius: var(--r-md);
    text-decoration: none;
    cursor: pointer;
    text-align: left;
    width: 100%;
    transition: border-color .18s, background .18s;
}

.option-card:hover {
    border-color: var(--orange);
    background: var(--orange-pale);
}

.option-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--r-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.option-card-title {
    font-family: var(--font-display), sans-serif;
    font-weight: 700;
    color: var(--ink);
    display: block;
}

.option-card-sub {
    font-size: .82rem;
    color: var(--muted);
}

/* Table cell helpers - replaces per-cell inline styles in admin tables */
.td-name {
    font-weight: 600;
    color: var(--ink);
}

.td-meta {
    color: var(--muted);
    font-size: .82rem;
}

.td-amount {
    font-family: var(--font-mono), monospace;
    font-weight: 600;
}

.td-type {
    color: var(--muted);
}

.td-date {
    color: var(--muted);
    font-size: .82rem;
}

/* Assessment row - replaces full inline style block */
.assess-row {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .7rem .85rem;
    background: var(--warm-bg);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
}

.assess-row.is-flagged {
    background: var(--purple-pale);
    border-color: #ddd6fe;
}

.assess-row-name {
    font-size: .8rem;
    font-weight: 600;
    color: var(--ink);
    display: block;
}

.assess-row-sub {
    font-size: .7rem;
    color: var(--muted);
}

.assess-flag-badge {
    font-size: .68rem;
    font-weight: 700;
    padding: .2rem .5rem;
    background: #ede9fe;
    color: var(--purple);
    border-radius: 4px;
}

.assess-mini-btn {
    border: 1px solid;
    border-radius: 4px;
    padding: .2rem .5rem;
    font-size: .68rem;
    font-weight: 700;
    cursor: pointer;
}

.assess-mini-btn.approve {
    background: var(--green-pale);
    border-color: #bbf7d0;
    color: var(--green);
}

.assess-mini-btn.reject {
    background: var(--red-pale);
    border-color: #fecaca;
    color: var(--red);
}

/* Payment row - replaces full inline style block */
.pay-row {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .6rem .75rem;
    background: var(--warm-bg);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    font-size: .78rem;
}

.pay-row.on-hold {
    background: var(--amber-pale);
    border-color: #fde68a;
}

.pay-status-badge {
    font-size: .65rem;
    font-weight: 700;
    padding: .15rem .4rem;
    border-radius: 3px;
}

/* Avatar circle - student initials in tables and partials */
.student-av {
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display), sans-serif;
    font-weight: 800;
    flex-shrink: 0;
}

.student-av-sm {
    width: 28px;
    height: 28px;
    font-size: .65rem;
}

.student-av-md {
    width: 30px;
    height: 30px;
    font-size: .68rem;
}

/* Report panel wrapper (compliance section) */
.report-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.report-panel-hd {
    background: var(--warm-bg);
    border-bottom: 1px solid var(--border);
    padding: .65rem .9rem;
}

.report-panel-bd {
    padding: .75rem .9rem;
    display: flex;
    flex-direction: column;
    gap: .4rem;
}

/* Callout block (compliance section) */
.feature-callout {
    background: var(--orange-pale);
    border: 1px solid var(--orange-mid);
    border-radius: var(--r-md);
    padding: 1.1rem 1.25rem;
    display: flex;
    align-items: flex-start;
    gap: .85rem;
}

.feature-callout-title {
    font-family: var(--font-display), sans-serif;
    font-size: .85rem;
    font-weight: 700;
    color: var(--ink);
    display: block;
    margin-bottom: .2rem;
}

.feature-callout-body {
    font-size: .82rem;
    color: var(--muted);
    margin: 0;
    line-height: 1.55;
}

.feature-callout i {
    color: var(--orange);
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: .1rem;
}

/* Budget footer row */
.budget-footer {
    margin-top: 1.1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.budget-remaining {
    font-family: var(--font-display), sans-serif;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--ink);
    letter-spacing: -.03em;
}

/* Sidebar badge pill (Admin label in sidebar) */
.sb-admin-badge {
    font-family: var(--font-display), sans-serif;
    font-size: .6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    background: rgba(255, 85, 51, .15);
    color: var(--orange);
    padding: .2rem .5rem;
    border-radius: var(--r-sm);
}

/* Deadline sidebar card variant */
.sidebar-card-warn {
    background: var(--orange-pale);
    border-color: var(--orange-mid);
}

.sidebar-card-warn h5 {
    color: var(--orange);
}

/* Help link variants */
.help-link-orange {
    color: var(--orange);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: .5rem;
}

.help-link-blue {
    color: var(--blue);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: .5rem;
}

/* ════════════════════════════════════════════════════════════════
   ADDITIONAL COMPONENT CLASSES
   Net-new classes not covered above.
   ════════════════════════════════════════════════════════════════ */

/* Workflow step - inactive/upcoming state */
.ws-step-inactive {
    opacity: .5;
}

.ws-num-inactive {
    background: var(--border);
    color: var(--muted);
    font-size: .7rem;
}

/* Feature visual - assessment filter pills */
.fv-pill {
    padding: .28rem .65rem;
    border-radius: var(--r-sm);
    font-size: .72rem;
    font-weight: 700;
    font-family: var(--font-display), sans-serif;
    display: inline-flex;
    align-items: center;
    gap: .25rem;
}

.fv-pill-dark {
    background: var(--ink);
    color: #fff;
}

.fv-pill-light {
    background: var(--warm-bg);
    border: 1px solid var(--border);
    color: var(--muted);
    font-weight: 600;
}

.fv-pill-purple {
    background: var(--purple-pale);
    border: 1px solid #ddd6fe;
    color: var(--purple);
    font-weight: 600;
}

.fv-pill-muted {
    opacity: .5;
}

/* Feature visual - payment batch dark card */
.batch-card {
    background: var(--ink);
    border-radius: var(--r-md);
    padding: 1rem 1.1rem;
    margin-bottom: .75rem;
}

.batch-label {
    font-family: var(--font-display), sans-serif;
    font-size: .65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: rgba(255, 255, 255, .35);
}

.batch-amount {
    font-family: var(--font-display), sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    letter-spacing: -.05em;
    margin-top: .2rem;
}

.batch-count {
    background: rgba(22, 163, 74, .2);
    color: #4ade80;
    font-size: .68rem;
    font-weight: 700;
    padding: .25rem .55rem;
    border-radius: 99px;
}

/* Feature visual - progress-saved confirmation chip */
.progress-saved-chip {
    background: var(--green-pale);
    border: 1px solid #bbf7d0;
    border-radius: var(--r-sm);
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .5rem .75rem;
}

.progress-saved-chip span {
    font-size: .82rem;
    font-weight: 600;
    color: var(--green);
}

/* Choice item - bursary-type award amount tag */
.ci-amount {
    font-family: var(--font-display), sans-serif;
    font-weight: 800;
    color: var(--orange);
    font-size: .9rem;
    flex-shrink: 0;
}

.ci-amount.ci-amount-muted {
    color: var(--muted);
}

/* Choice item - horizontal layout (checkbox grids) */
.choice-item.choice-row {
    flex-direction: row;
    align-items: center;
    gap: .65rem;
}

/* Step 5 declaration box */
.decl-box {
    background: var(--warm-bg);
    border: 1.5px solid var(--border);
    border-radius: var(--r-lg);
    padding: 1.5rem;
}

.decl-heading {
    font-family: var(--font-display), sans-serif;
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--muted);
    margin-bottom: 1rem;
}

.decl-text {
    font-size: .875rem;
    color: var(--ink-2);
    line-height: 1.55;
}

.choice-item input.decl-input {
    margin-top: .15rem;
    flex-shrink: 0;
}

/* Modal application - summary stat cells */
.modal-summary-cell {
    background: var(--warm-bg);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: .9rem;
    text-align: center;
}

.modal-summary-cell.cell-accent {
    background: var(--orange-pale);
    border-color: var(--orange-mid);
}

.modal-cell-label {
    font-family: var(--font-display), sans-serif;
    font-size: .62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--muted);
    margin-top: .4rem;
}

.modal-cell-label.cell-accent {
    color: var(--orange);
}

/* Document attachment row */
.doc-row {
    display: flex;
    align-items: center;
    gap: .85rem;
    padding: .75rem .9rem;
    background: var(--warm-bg);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    margin-bottom: .4rem;
}

.doc-icon {
    width: 36px;
    height: 36px;
    background: var(--red-pale);
    border-radius: var(--r-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--red);
    font-size: 1rem;
    flex-shrink: 0;
}

.doc-name {
    font-size: .84rem;
    font-weight: 600;
    color: var(--ink);
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.doc-meta {
    font-size: .72rem;
    color: var(--muted);
    font-family: var(--font-mono), monospace;
}

/* Admin topbar - user name text */
.tb-user-name {
    font-family: var(--font-display), sans-serif;
    font-size: .8rem;
    font-weight: 700;
    color: var(--ink);
}

/* Sidebar - sign-out link */
.sb-signout {
    color: rgba(255, 255, 255, .3);
    font-size: .85rem;
    text-decoration: none;
    flex-shrink: 0;
}

/* Table mono cell (date-width font) */
.td-mono {
    font-family: var(--font-mono), monospace;
    font-size: .82rem;
}

/* ════════════════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════════════════ */

/* ── Workflow step states (feature visuals) ─────────────────── */
.ws-step-inactive {
    opacity: .5;
}

.ws-num-inactive {
    background: var(--border);
    color: var(--muted);
    font-size: .7rem;
}

/* ── Payment batch dark card (feature visual) ───────────────── */
.batch-card {
    background: var(--ink);
    border-radius: var(--r-md);
    padding: 1rem 1.1rem;
    margin-bottom: .75rem;
}

.batch-label {
    font-family: var(--font-display), sans-serif;
    font-size: .65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: rgba(255, 255, 255, .35);
}

.batch-amount {
    font-family: var(--font-display), sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    letter-spacing: -.05em;
    margin-top: .2rem;
}

.batch-count {
    background: rgba(22, 163, 74, .2);
    color: #4ade80;
    font-size: .68rem;
    font-weight: 700;
    padding: .25rem .55rem;
    border-radius: 99px;
}

/* ── Bursary-type choice item amount ────────────────────────── */
.ci-amount {
    font-family: var(--font-display), sans-serif;
    font-weight: 800;
    color: var(--orange);
    font-size: .9rem;
    flex-shrink: 0;
}

.ci-amount.ci-amount-muted {
    color: var(--muted);
}

/* ── Choice item layout variants ────────────────────────────── */
.choice-item.choice-row {
    flex-direction: row;
    align-items: center;
    gap: .65rem;
}

/* ── Declaration box (step 5) ───────────────────────────────── */
.decl-box {
    background: var(--warm-bg);
    border: 1.5px solid var(--border);
    border-radius: var(--r-lg);
    padding: 1.5rem;
}

.decl-heading {
    font-family: var(--font-display), sans-serif;
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--muted);
    margin-bottom: 1rem;
}

.decl-text {
    font-size: .875rem;
    color: var(--ink-2);
    line-height: 1.55;
}

.choice-item input.decl-input {
    margin-top: .15rem;
    flex-shrink: 0;
}

/* ── Modal summary cells ────────────────────────────────────── */
.modal-summary-cell {
    background: var(--warm-bg);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: .9rem;
    text-align: center;
}

.modal-summary-cell.cell-accent {
    background: var(--orange-pale);
    border-color: var(--orange-mid);
}

.modal-cell-label {
    font-family: var(--font-display), sans-serif;
    font-size: .62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--muted);
    margin-top: .4rem;
}

.modal-cell-label.cell-accent {
    color: var(--orange);
}

/* ── Doc attachment row ─────────────────────────────────────── */
.doc-row {
    display: flex;
    align-items: center;
    gap: .85rem;
    padding: .75rem .9rem;
    background: var(--warm-bg);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    margin-bottom: .4rem;
}

.doc-icon {
    width: 36px;
    height: 36px;
    background: var(--red-pale);
    border-radius: var(--r-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--red);
    font-size: 1rem;
    flex-shrink: 0;
}

.doc-name {
    font-size: .84rem;
    font-weight: 600;
    color: var(--ink);
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.doc-meta {
    font-size: .72rem;
    color: var(--muted);
    font-family: var(--font-mono), monospace;
}

/* ── Topbar user name ───────────────────────────────────────── */
.tb-user-name {
    font-family: var(--font-display), sans-serif;
    font-size: .8rem;
    font-weight: 700;
    color: var(--ink);
}

/* ── Sidebar logout link ────────────────────────────────────── */
.sb-signout {
    color: rgba(255, 255, 255, .3);
    font-size: .85rem;
    text-decoration: none;
    flex-shrink: 0;
}

/* ════════════════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════════════════ */
@media (max-width: 1199px) {
    :root {
        --sb-w: 210px;
    }
}

@media (max-width: 991px) {
    .nav-links {
        display: none;
    }

    .feature-block,
    .feature-block.flip {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .problem-grid {
        grid-template-columns: 1fr;
    }

    .hs-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .admin-sidebar {
        transform: translateX(-100%);
    }

    .admin-sidebar.open {
        transform: translateX(0);
        box-shadow: 4px 0 32px rgba(16, 14, 11, .3);
    }

    .admin-main {
        margin-left: 0;
    }

    .admin-topbar {
        left: 0;
    }

    .sb-overlay.show {
        display: block;
    }

    .apply-layout {
        grid-template-columns: 1fr;
    }

    .apply-sidebar {
        display: none;
    }
}

@media (max-width: 767px) {
    .hero {
        padding: 3.5rem 0 3rem;
    }

    .final-cta::before {
        display: none;
    }

    .apply-main {
        padding: 1.5rem 1rem;
    }

    .step-tab .st-label {
        display: none;
    }
}

/* ════════════════════════════════════════════════════════════════
   LEGAL PAGES
   Shared layout for Privacy Policy, DPA, Terms, Accessibility etc.
   ════════════════════════════════════════════════════════════════ */

/* ── Page hero ──────────────────────────────────────────────── */
.legal-hero {
    background: var(--ink);
    padding: 5rem 0 3.5rem;
    position: relative;
    overflow: hidden;
}

.legal-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 80% at 110% 50%, rgba(255, 85, 51, .12) 0%, transparent 60%),
    radial-gradient(ellipse 40% 60% at -10% 80%, rgba(255, 85, 51, .06) 0%, transparent 55%);
    pointer-events: none;
}

.legal-hero-eyebrow {
    font-family: var(--font-display), sans-serif;
    font-size: .65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: var(--orange);
    margin-bottom: .75rem;
}

.legal-hero h1 {
    font-family: var(--font-display), sans-serif;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    color: #fff;
    letter-spacing: -.04em;
    line-height: 1.1;
    margin: 0 0 1rem;
}

.legal-hero-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem 1.25rem;
    margin-top: 1.25rem;
}

.legal-chip {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-family: var(--font-mono), monospace;
    font-size: .72rem;
    color: rgba(255, 255, 255, .45);
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 99px;
    padding: .28rem .8rem;
}

.legal-chip.lc-warn {
    color: var(--orange);
    background: rgba(255, 85, 51, .08);
    border-color: rgba(255, 85, 51, .2);
}

/* ── Two-column layout ──────────────────────────────────────── */
.legal-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 0 4rem;
    align-items: start;
    padding: 3.5rem 0 5rem;
}

@media (max-width: 991px) {
    .legal-layout {
        grid-template-columns: 1fr;
        gap: 2rem 0;
    }
}

/* ── Table of contents ──────────────────────────────────────── */
.legal-toc {
    position: sticky;
    top: 5.5rem;
    background: var(--warm-bg);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 1.25rem 0;
}

.ltoc-head {
    font-family: var(--font-display), sans-serif;
    font-size: .65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--muted);
    padding: 0 1.25rem .75rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: .5rem;
}

.ltoc-link {
    display: block;
    padding: .42rem 1.25rem;
    font-size: .825rem;
    color: var(--ink-2);
    text-decoration: none;
    border-left: 2px solid transparent;
    transition: color .15s, border-color .15s, background .15s;
    line-height: 1.4;
}

.ltoc-link:hover {
    color: var(--orange);
    background: var(--orange-pale);
    border-left-color: var(--orange-mid);
}

.ltoc-link.active {
    color: var(--orange);
    font-weight: 600;
    border-left-color: var(--orange);
    background: var(--orange-pale);
}

.ltoc-link.ltoc-sub {
    padding-left: 2rem;
    font-size: .775rem;
    color: var(--muted);
}

@media (max-width: 991px) {
    .legal-toc {
        position: static;
        border-radius: var(--r-md);
    }
}

/* ── Document body ──────────────────────────────────────────── */
.legal-body {
}

.legal-section {
    padding-bottom: 3.5rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 3.5rem;
    scroll-margin-top: 6rem;
}

.legal-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.ls-num {
    font-family: var(--font-mono), monospace;
    font-size: .68rem;
    font-weight: 500;
    color: var(--orange);
    letter-spacing: .05em;
    display: block;
    margin-bottom: .4rem;
}

.legal-section h2 {
    font-family: var(--font-display), sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--ink);
    letter-spacing: -.03em;
    margin: 0 0 1.25rem;
    line-height: 1.2;
}

.legal-section h3 {
    font-family: var(--font-display), sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -.01em;
    margin: 1.75rem 0 .6rem;
}

.legal-section p {
    font-size: .9375rem;
    line-height: 1.75;
    color: var(--ink-2);
    margin-bottom: .9rem;
}

.legal-section p:last-child {
    margin-bottom: 0;
}

.legal-section ul,
.legal-section ol {
    padding-left: 1.4rem;
    margin-bottom: .9rem;
}

.legal-section li {
    font-size: .9375rem;
    line-height: 1.75;
    color: var(--ink-2);
    margin-bottom: .3rem;
}

.legal-section a {
    color: var(--orange);
    text-decoration: underline;
    text-underline-offset: .15em;
}

.legal-section strong {
    color: var(--ink);
    font-weight: 600;
}

/* ── Callout boxes ──────────────────────────────────────────── */
.legal-callout {
    display: flex;
    align-items: flex-start;
    gap: .9rem;
    padding: 1.1rem 1.25rem;
    border-radius: var(--r-md);
    margin: 1.5rem 0;
    font-size: .875rem;
    line-height: 1.65;
}

.legal-callout i {
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: .1rem;
}

.lc-orange {
    background: var(--orange-pale);
    border: 1px solid var(--orange-mid);
    color: var(--ink-2);
}

.lc-orange i {
    color: var(--orange);
}

.lc-ink {
    background: #f0ede9;
    border: 1px solid var(--border-2);
    color: var(--ink-2);
}

.lc-ink i {
    color: var(--ink);
}

.lc-green {
    background: var(--green-pale);
    border: 1px solid #bbf7d0;
    color: var(--ink-2);
}

.lc-green i {
    color: var(--green);
}

/* ── Data table (DPA schedules) ─────────────────────────────── */
.legal-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .875rem;
    margin: 1.25rem 0 1.5rem;
}

.legal-table th {
    background: var(--ink);
    color: rgba(255, 255, 255, .8);
    font-family: var(--font-display), sans-serif;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    padding: .7rem 1rem;
    text-align: left;
}

.legal-table td {
    padding: .75rem 1rem;
    border-bottom: 1px solid var(--border);
    color: var(--ink-2);
    line-height: 1.55;
    vertical-align: top;
}

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

.legal-table tr:nth-child(odd) td {
    background: var(--warm-bg);
}

.legal-table tr:nth-child(even) td {
    background: #fff;
}

.legal-table td strong {
    color: var(--ink);
    font-weight: 600;
}

/* ── Contact card ───────────────────────────────────────────── */
.legal-contact-card {
    background: var(--ink);
    border-radius: var(--r-lg);
    padding: 2rem 2.25rem;
    color: rgba(255, 255, 255, .7);
    margin-top: 2rem;
}

.legal-contact-card h3 {
    color: #fff !important;
    margin-top: 0 !important;
}

.legal-contact-card a {
    color: var(--orange);
}

.lcc-row {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    margin-bottom: .75rem;
    font-size: .875rem;
    line-height: 1.6;
}

.lcc-row i {
    color: var(--orange);
    flex-shrink: 0;
    margin-top: .15rem;
}

.lcc-row:last-child {
    margin-bottom: 0;
}

/* ── Signature block (DPA) ──────────────────────────────────── */
.sig-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

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

.sig-block {
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 1.25rem;
}

.sig-party {
    font-family: var(--font-display), sans-serif;
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--orange);
    margin-bottom: .6rem;
}

.sig-line {
    border-bottom: 1px solid var(--border-2);
    margin: 1.5rem 0 .4rem;
    height: 1.5rem;
}

.sig-label {
    font-size: .72rem;
    color: var(--muted);
    font-family: var(--font-mono), monospace;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 767px) {
    .legal-hero {
        padding: 3.5rem 0 2.5rem;
    }

    .legal-layout {
        padding: 2rem 0 3rem;
    }

    .legal-section h2 {
        font-size: 1.2rem;
    }

    .legal-table {
        font-size: .8rem;
    }

    .legal-table th, .legal-table td {
        padding: .55rem .75rem;
    }

    .sig-grid {
        grid-template-columns: 1fr;
    }

    .legal-contact-card {
        padding: 1.5rem;
    }
}

/* ════════════════════════════════════════════════════════════════
   MARKETING INTERIOR PAGES
   About, Contact, Blog, Customers
   ════════════════════════════════════════════════════════════════ */

/* ── Interior hero (smaller than landing hero) ───────────────── */
.mkt-hero {
    background: var(--ink);
    padding: 4.5rem 0 3rem;
    position: relative;
    overflow: hidden;
}

.mkt-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 50% 100% at 100% 50%, rgba(255, 85, 51, .1) 0%, transparent 60%);
    pointer-events: none;
}

.mkt-eyebrow {
    font-family: var(--font-display), sans-serif;
    font-size: .65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: var(--orange);
    margin-bottom: .75rem;
    display: block;
}

.mkt-hero h1 {
    font-family: var(--font-display), sans-serif;
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    color: #fff;
    letter-spacing: -.04em;
    line-height: 1.1;
    margin: 0 0 1rem;
}

.mkt-hero p {
    color: rgba(255, 255, 255, .45);
    font-size: .975rem;
    max-width: 500px;
    line-height: 1.75;
    margin: 0;
}

/* ── Values / icon grid ──────────────────────────────────────── */
.value-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 2rem;
    transition: box-shadow .2s var(--ease), border-color .2s;
}

.value-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--border-2);
}

.vc-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--r-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 1.1rem;
    flex-shrink: 0;
}

.vc-title {
    font-family: var(--font-display), sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: .4rem;
}

.vc-body {
    font-size: .875rem;
    color: var(--ink-2);
    line-height: 1.7;
}

/* ── Team cards ──────────────────────────────────────────────── */
.team-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    overflow: hidden;
    transition: box-shadow .2s;
}

.team-card:hover {
    box-shadow: var(--shadow-lg);
}

.tc-avatar {
    width: 100%;
    aspect-ratio: 1;
    background: linear-gradient(135deg, var(--ink) 0%, #2d2620 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display), sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: rgba(255, 255, 255, .15);
    letter-spacing: -.05em;
}

.tc-body {
    padding: 1.25rem;
}

.tc-name {
    font-family: var(--font-display), sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: .15rem;
}

.tc-role {
    font-size: .8rem;
    color: var(--orange);
    font-weight: 600;
    margin-bottom: .6rem;
}

.tc-bio {
    font-size: .84rem;
    color: var(--ink-2);
    line-height: 1.65;
}

/* ── Contact form ────────────────────────────────────────────── */
.contact-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    padding: 2.5rem;
    box-shadow: var(--shadow);
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.cii-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--r-md);
    background: var(--orange-pale);
    border: 1px solid var(--orange-mid);
    color: var(--orange);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .9rem;
    flex-shrink: 0;
}

.cii-label {
    font-family: var(--font-display), sans-serif;
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--muted);
    margin-bottom: .25rem;
}

.cii-value {
    font-size: .9rem;
    color: var(--ink-2);
    line-height: 1.55;
}

.cii-value a {
    color: var(--ink);
    text-decoration: none;
}

.cii-value a:hover {
    color: var(--orange);
}

/* ── Blog list ───────────────────────────────────────────────── */
.blog-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    overflow: hidden;
    transition: box-shadow .2s, border-color .2s;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--border-2);
}

.bc-thumb {
    aspect-ratio: 16/9;
    background: var(--ink);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display), sans-serif;
    font-size: 3rem;
    font-weight: 800;
    color: rgba(255, 255, 255, .08);
    letter-spacing: -.05em;
    position: relative;
    overflow: hidden;
}

.bc-thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 60%, rgba(255, 85, 51, .12));
}

.bc-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.bc-tag {
    font-family: var(--font-display), sans-serif;
    font-size: .62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--orange);
    margin-bottom: .5rem;
    display: block;
}

.bc-title {
    font-family: var(--font-display), sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.3;
    margin-bottom: .6rem;
    text-decoration: none;
    display: block;
}

.bc-title:hover {
    color: var(--orange);
}

.bc-excerpt {
    font-size: .875rem;
    color: var(--ink-2);
    line-height: 1.7;
    flex: 1;
}

.bc-meta {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-top: 1.1rem;
    padding-top: .9rem;
    border-top: 1px solid var(--border);
    font-size: .78rem;
    color: var(--muted);
}

/* ── Blog featured post ──────────────────────────────────────── */
.blog-featured {
    background: var(--ink);
    border-radius: var(--r-xl);
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.blog-featured::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 100% at 100% 0%, rgba(255, 85, 51, .12), transparent 60%);
}

.bf-tag {
    color: var(--orange);
}

.bf-title {
    font-family: var(--font-display), sans-serif;
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 800;
    color: #fff;
    letter-spacing: -.03em;
    line-height: 1.15;
    margin: .5rem 0 1rem;
}

.bf-excerpt {
    color: rgba(255, 255, 255, .5);
    font-size: .9rem;
    line-height: 1.7;
    max-width: 520px;
}

.bf-meta {
    color: rgba(255, 255, 255, .3);
    font-size: .78rem;
    margin-top: 1.25rem;
}

/* ── Customers / case studies ────────────────────────────────── */
.case-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    overflow: hidden;
}

.cc-header {
    padding: 2rem 2rem 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cc-logo {
    width: 48px;
    height: 48px;
    border-radius: var(--r-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display), sans-serif;
    font-size: 1.1rem;
    font-weight: 800;
    flex-shrink: 0;
}

.cc-name {
    font-family: var(--font-display), sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--ink);
}

.cc-type {
    font-size: .78rem;
    color: var(--muted);
}

.cc-body {
    padding: 1.75rem 2rem;
}

.cc-quote {
    font-size: .95rem;
    color: var(--ink-2);
    line-height: 1.75;
    font-style: italic;
    border-left: 3px solid var(--orange);
    padding-left: 1rem;
    margin: 0 0 1.5rem;
}

.cc-attribution {
    font-size: .8rem;
    font-weight: 600;
    color: var(--ink);
    display: block;
    margin-bottom: .2rem;
}

.cc-attribution-role {
    font-weight: 400;
    color: var(--muted);
}

.cc-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding: 1.5rem 2rem;
    background: var(--warm-bg);
    border-top: 1px solid var(--border);
}

.cs-stat-val {
    font-family: var(--font-display), sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--orange);
    letter-spacing: -.03em;
}

.cs-stat-label {
    font-size: .74rem;
    color: var(--muted);
    line-height: 1.4;
    margin-top: .15rem;
}

/* ════════════════════════════════════════════════════════════════
   ADMIN SUB-PAGES
   Applications, Students, Payments, Reports, Settings, Analytics
   ════════════════════════════════════════════════════════════════ */

/* ── Page header (shared across admin sub-pages) ─────────────── */
.admin-page-hd {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.aph-titles h1 {
    font-family: var(--font-display), sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -.03em;
    margin: 0;
}

.aph-titles p {
    color: var(--muted);
    font-size: .84rem;
    margin: .2rem 0 0;
}

.aph-actions {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
}

/* ── Search bar ──────────────────────────────────────────────── */
.search-bar {
    display: flex;
    align-items: center;
    gap: .6rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: .5rem .85rem;
    transition: border-color .15s;
}

.search-bar:focus-within {
    border-color: var(--orange);
}

.search-bar i {
    color: var(--muted);
    font-size: .85rem;
    flex-shrink: 0;
}

.search-bar input {
    border: none;
    outline: none;
    background: none;
    font-size: .875rem;
    color: var(--ink);
    font-family: var(--font-body), sans-serif;
    width: 200px;
}

.search-bar input::placeholder {
    color: var(--muted);
}

/* ── Application detail layout ───────────────────────────────── */
.detail-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 1.5rem;
    align-items: start;
}

@media (max-width: 1100px) {
    .detail-layout {
        grid-template-columns: 1fr;
    }
}

/* ── Audit trail ─────────────────────────────────────────────── */
.audit-item {
    display: flex;
    align-items: flex-start;
    gap: .85rem;
    padding: .85rem 0;
    border-bottom: 1px solid var(--border);
}

.audit-item:last-child {
    border-bottom: none;
}

.audit-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .7rem;
    flex-shrink: 0;
    margin-top: .1rem;
}

.audit-dot.ad-g {
    background: var(--green-pale);
    color: var(--green);
}

.audit-dot.ad-o {
    background: var(--orange-pale);
    color: var(--orange);
}

.audit-dot.ad-b {
    background: var(--blue-pale);
    color: var(--blue);
}

.audit-dot.ad-r {
    background: var(--red-pale);
    color: var(--red);
}

.audit-dot.ad-p {
    background: var(--purple-pale);
    color: var(--purple);
}

.audit-action {
    font-size: .84rem;
    color: var(--ink-2);
    line-height: 1.5;
}

.audit-action strong {
    color: var(--ink);
    font-weight: 600;
}

.audit-time {
    font-family: var(--font-mono), monospace;
    font-size: .72rem;
    color: var(--muted);
    margin-top: .2rem;
}

/* ── Analytics charts ────────────────────────────────────────── */
.chart-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 1.5rem;
}

.chart-card-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.chart-card-hd h3 {
    font-family: var(--font-display), sans-serif;
    font-size: .9rem;
    font-weight: 700;
    color: var(--ink);
    margin: 0;
}

.chart-wrap {
    position: relative;
    width: 100%;
}

/* ── Student table extras ────────────────────────────────────── */
.student-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
    display: inline-block;
}

/* ── Reports page ────────────────────────────────────────────── */
.report-type-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1.1rem;
    transition: border-color .15s, box-shadow .15s;
    cursor: pointer;
}

.report-type-card:hover {
    border-color: var(--orange);
    box-shadow: var(--shadow);
}

.rtc-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--r-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.rtc-name {
    font-family: var(--font-display), sans-serif;
    font-size: .9rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: .25rem;
}

.rtc-desc {
    font-size: .82rem;
    color: var(--muted);
    line-height: 1.55;
}

.rtc-format {
    font-family: var(--font-mono), monospace;
    font-size: .7rem;
    color: var(--orange);
    margin-top: .4rem;
    display: block;
}

/* ── Settings page ───────────────────────────────────────────── */
.settings-section {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    margin-bottom: 1.25rem;
    overflow: hidden;
}

.settings-section-hd {
    padding: 1.1rem 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--warm-bg);
}

.settings-section-hd h3 {
    font-family: var(--font-display), sans-serif;
    font-size: .9rem;
    font-weight: 700;
    color: var(--ink);
    margin: 0;
}

.settings-section-body {
    padding: 1.5rem;
}

.settings-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
    padding: .9rem 0;
    border-bottom: 1px solid var(--border);
}

.settings-row:last-child {
    border-bottom: none;
}

.sr-info {
}

.sr-label {
    font-size: .875rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: .15rem;
}

.sr-desc {
    font-size: .8rem;
    color: var(--muted);
    line-height: 1.5;
}

.sr-control {
    flex-shrink: 0;
}

/* Toggle switch */
.toggle {
    position: relative;
    width: 40px;
    height: 22px;
    display: inline-block;
}

.toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-track {
    position: absolute;
    inset: 0;
    background: var(--border-2);
    border-radius: 99px;
    cursor: pointer;
    transition: background .2s;
}

.toggle input:checked + .toggle-track {
    background: var(--orange);
}

.toggle-track::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    transition: transform .2s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
}

.toggle input:checked + .toggle-track::after {
    transform: translateX(18px);
}

/* ════════════════════════════════════════════════════════════════
   ERROR PAGES  (404 / 500)
   ════════════════════════════════════════════════════════════════ */
.error-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ink);
    position: relative;
    overflow: hidden;
}

.error-page::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 80% at 50% 50%, rgba(255, 85, 51, .07), transparent 65%);
}

.error-code {
    font-family: var(--font-display), sans-serif;
    font-size: clamp(6rem, 20vw, 12rem);
    font-weight: 800;
    color: rgba(255, 255, 255, .04);
    letter-spacing: -.05em;
    line-height: 1;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    white-space: nowrap;
}

.error-content {
    text-align: center;
    position: relative;
    z-index: 1;
    padding: 2rem;
}

.error-content h1 {
    font-family: var(--font-display), sans-serif;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 800;
    color: #fff;
    letter-spacing: -.03em;
    margin: 0 0 .75rem;
}

.error-content p {
    color: rgba(255, 255, 255, .4);
    font-size: .95rem;
    max-width: 400px;
    margin: 0 auto 2rem;
    line-height: 1.75;
}

@media (max-width: 767px) {
    .mkt-hero {
        padding: 3rem 0 2.25rem;
    }

    .contact-card {
        padding: 1.75rem;
    }

    .blog-featured {
        padding: 2rem;
    }

    .admin-page-hd {
        flex-direction: column;
    }

    .search-bar input {
        width: 140px;
    }

    .settings-row {
        flex-direction: column;
        gap: .6rem;
    }

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

    .detail-layout {
        grid-template-columns: 1fr;
    }
}

/* ════════════════════════════════════════════════════════════════
   AUTH PAGES  (login, password reset, email confirm)
   ════════════════════════════════════════════════════════════════ */
.auth-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 480px;
}

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

.auth-aside {
    background: var(--ink);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2.5rem 3rem;
    position: relative;
    overflow: hidden;
}

.auth-aside::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at -10% 110%, rgba(255, 85, 51, .14), transparent 55%),
    radial-gradient(ellipse 60% 40% at 110% -10%, rgba(255, 85, 51, .08), transparent 55%);
    pointer-events: none;
}

.auth-aside-body {
    position: relative;
    z-index: 1;
}

.auth-tagline {
    font-family: var(--font-display), sans-serif;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 800;
    color: #fff;
    letter-spacing: -.04em;
    line-height: 1.15;
    margin: 3rem 0 1rem;
}

.auth-tagline em {
    color: var(--orange);
    font-style: normal;
}

.auth-aside p {
    color: rgba(255, 255, 255, .4);
    font-size: .9rem;
    line-height: 1.75;
    max-width: 360px;
    margin: 0;
}

.auth-trust {
    display: flex;
    flex-direction: column;
    gap: .6rem;
    position: relative;
    z-index: 1;
}

.auth-trust-item {
    display: flex;
    align-items: center;
    gap: .75rem;
    font-size: .8rem;
    color: rgba(255, 255, 255, .35);
}

.auth-trust-item i {
    color: var(--orange);
    font-size: .8rem;
    flex-shrink: 0;
}

@media (max-width: 900px) {
    .auth-aside {
        display: none;
    }
}

.auth-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2.5rem;
    background: var(--warm-bg);
}

.auth-panel-inner {
    max-width: 360px;
    margin: 0 auto;
    width: 100%;
}

.auth-panel-hd {
    margin-bottom: 2rem;
}

.auth-panel-hd h1 {
    font-family: var(--font-display), sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--ink);
    letter-spacing: -.03em;
    margin: .75rem 0 .4rem;
}

.auth-panel-hd p {
    font-size: .875rem;
    color: var(--muted);
    margin: 0;
    line-height: 1.6;
}

.auth-form .field-group {
    margin-bottom: 1.1rem;
}

.auth-form .form-control {
    background: #fff;
    border: 1px solid var(--border-2);
}

.auth-form .form-control:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(255, 85, 51, .1);
}

.auth-submit {
    width: 100%;
    background: var(--orange);
    color: #fff;
    border: none;
    border-radius: var(--r-sm);
    font-family: var(--font-display), sans-serif;
    font-weight: 700;
    font-size: .95rem;
    padding: .8rem;
    cursor: pointer;
    transition: background .15s, transform .1s;
    margin-top: .25rem;
}

.auth-submit:hover {
    background: var(--orange-hover);
}

.auth-submit:active {
    transform: scale(.99);
}

.auth-link {
    text-align: center;
    font-size: .825rem;
    color: var(--muted);
    margin-top: 1.25rem;
}

.auth-link a {
    color: var(--orange);
    text-decoration: none;
    font-weight: 600;
}

.auth-link a:hover {
    text-decoration: underline;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin: 1.25rem 0;
    font-size: .75rem;
    color: var(--muted);
}

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

.auth-alert {
    padding: .85rem 1rem;
    border-radius: var(--r-sm);
    font-size: .84rem;
    margin-bottom: 1.1rem;
    line-height: 1.55;
    display: flex;
    align-items: flex-start;
    gap: .6rem;
}

.auth-alert i {
    flex-shrink: 0;
    margin-top: .1rem;
}

.auth-alert.aa-error {
    background: var(--red-pale);
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.auth-alert.aa-success {
    background: var(--green-pale);
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.auth-alert.aa-info {
    background: var(--blue-pale);
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

/* ════════════════════════════════════════════════════════════════
   STUDENT PORTAL SHELL
   Persistent layout for approved students - dashboard, claims,
   history, documents. Mirrors admin shell but lighter weight.
   ════════════════════════════════════════════════════════════════ */

/* ── Shell layout ───────────────────────────────────────────── */
.sp-shell {
    display: grid;
    grid-template-columns: 220px 1fr;
    min-height: 100vh;
}

@media (max-width: 900px) {
    .sp-shell {
        grid-template-columns: 1fr;
    }
}

/* ── Student sidebar ─────────────────────────────────────────── */
.sp-sidebar {
    background: var(--ink);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 100;
}

@media (max-width: 900px) {
    .sp-sidebar {
        position: fixed;
        inset: 0 0 0 auto;
        width: 260px;
        transform: translateX(100%);
        transition: transform .25s ease;
        height: 100%;
    }

    .sp-sidebar.open {
        transform: translateX(0);
    }
}

.sp-sidebar-top {
    padding: 1.4rem 1.25rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
}

/* Student avatar + name in sidebar */
.sp-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--orange);
    color: #fff;
    font-family: var(--font-display), sans-serif;
    font-weight: 800;
    font-size: .9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    letter-spacing: -.02em;
}

.sp-student-name {
    font-family: var(--font-display), sans-serif;
    font-size: .85rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    margin-top: .6rem;
}

.sp-student-meta {
    font-size: .72rem;
    color: rgba(255, 255, 255, .4);
    font-family: var(--font-mono), monospace;
    margin-top: .15rem;
}

/* Award badge in sidebar */
.sp-award-badge {
    margin: .9rem 1.25rem;
    background: rgba(255, 85, 51, .12);
    border: 1px solid rgba(255, 85, 51, .2);
    border-radius: var(--r-md);
    padding: .65rem .9rem;
}

.sp-award-amount {
    font-family: var(--font-display), sans-serif;
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--orange);
    letter-spacing: -.04em;
}

.sp-award-label {
    font-size: .68rem;
    color: rgba(255, 255, 255, .35);
    font-family: var(--font-mono), monospace;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-top: .15rem;
}

.sp-award-remaining {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: .5rem;
}

.sp-award-bar-wrap {
    flex: 1;
    height: 3px;
    background: rgba(255, 255, 255, .1);
    border-radius: 99px;
    margin-right: .6rem;
}

.sp-award-bar {
    height: 100%;
    border-radius: 99px;
    background: var(--orange);
    transition: width .4s ease;
}

.sp-award-pct {
    font-size: .68rem;
    color: rgba(255, 255, 255, .35);
    font-family: var(--font-mono), monospace;
    white-space: nowrap;
}

/* Nav links */
.sp-nav {
    padding: .75rem 0;
    flex: 1;
}

.sp-section {
    font-size: .62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: rgba(255, 255, 255, .25);
    padding: .9rem 1.25rem .35rem;
}

.sp-link {
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .55rem 1.25rem;
    font-size: .84rem;
    color: rgba(255, 255, 255, .55);
    text-decoration: none;
    border-left: 2px solid transparent;
    transition: color .15s, background .15s, border-color .15s;
    line-height: 1.3;
}

.sp-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, .05);
}

.sp-link.active {
    color: #fff;
    border-left-color: var(--orange);
    background: rgba(255, 85, 51, .1);
}

.sp-link i {
    font-size: .9rem;
    flex-shrink: 0;
    width: 16px;
    text-align: center;
}

.sp-badge {
    margin-left: auto;
    background: var(--orange);
    color: #fff;
    font-size: .65rem;
    font-weight: 700;
    border-radius: 99px;
    padding: .1rem .45rem;
    font-family: var(--font-mono), monospace;
}

/* Sidebar footer */
.sp-foot {
    padding: 1rem 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, .07);
    font-size: .78rem;
}

.sp-signout {
    display: flex;
    align-items: center;
    gap: .5rem;
    color: rgba(255, 255, 255, .35);
    text-decoration: none;
    transition: color .15s;
    font-size: .78rem;
}

.sp-signout:hover {
    color: rgba(255, 255, 255, .7);
}

/* ── Main content area ───────────────────────────────────────── */
.sp-main {
    background: var(--warm-bg);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Topbar (mobile hamburger + page title) */
.sp-topbar {
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 0 1.5rem;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 50;
}

.sp-topbar-title {
    font-family: var(--font-display), sans-serif;
    font-weight: 700;
    font-size: .95rem;
    color: var(--ink);
}

.sp-hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--ink);
    cursor: pointer;
    padding: .25rem;
}

@media (max-width: 900px) {
    .sp-hamburger {
        display: block;
    }

    .sp-topbar-title {
        font-size: .85rem;
    }
}

.sp-content {
    padding: 2rem 2rem 3rem;
    flex: 1;
}

@media (max-width: 640px) {
    .sp-content {
        padding: 1.25rem 1rem 2.5rem;
    }
}

/* ── Expense claim cards ─────────────────────────────────────── */
.claim-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    margin-bottom: .75rem;
    overflow: hidden;
    transition: box-shadow .15s;
}

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

.claim-card-hd {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    cursor: pointer;
}

.claim-icon {
    width: 38px;
    height: 38px;
    border-radius: var(--r-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .95rem;
    flex-shrink: 0;
}

.claim-info {
    flex: 1;
    min-width: 0;
}

.claim-title {
    font-family: var(--font-display), sans-serif;
    font-weight: 700;
    font-size: .875rem;
    color: var(--ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.claim-meta {
    font-size: .75rem;
    color: var(--muted);
    margin-top: .1rem;
}

.claim-amount {
    font-family: var(--font-mono), monospace;
    font-weight: 700;
    font-size: .95rem;
    color: var(--ink);
    flex-shrink: 0;
}

.claim-bd {
    padding: 0 1.25rem 1.1rem;
    border-top: 1px solid var(--border);
    display: none;
}

.claim-bd.open {
    display: block;
    padding-top: .9rem;
}

/* ── Submit claim form ───────────────────────────────────────── */
.claim-form-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    overflow: hidden;
}

.claim-form-hd {
    padding: 1.1rem 1.5rem;
    border-bottom: 1px solid var(--border);
    background: var(--warm-bg);
    display: flex;
    align-items: center;
    gap: .75rem;
}

.claim-form-hd h2 {
    font-family: var(--font-display), sans-serif;
    font-size: 1rem;
    font-weight: 800;
    color: var(--ink);
    margin: 0;
}

.claim-form-body {
    padding: 1.5rem;
}

/* Category pills */
.cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: .5rem;
    margin-bottom: 1.25rem;
}

.cat-pill {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .35rem;
    padding: .75rem .5rem;
    border: 2px solid var(--border);
    border-radius: var(--r-md);
    cursor: pointer;
    text-align: center;
    transition: border-color .15s, background .15s;
    background: var(--warm-bg);
}

.cat-pill:hover {
    border-color: var(--orange-mid);
    background: var(--orange-pale);
}

.cat-pill.selected {
    border-color: var(--orange);
    background: var(--orange-pale);
    box-shadow: 0 0 0 1px var(--orange);
}

.cat-pill input {
    display: none;
}

.cat-pill i {
    font-size: 1.2rem;
    color: var(--muted);
    transition: color .15s;
}

.cat-pill.selected i {
    color: var(--orange);
}

.cat-pill span {
    font-size: .72rem;
    font-weight: 600;
    color: var(--ink-2);
    line-height: 1.3;
}

/* Line items */
.line-item {
    display: grid;
    grid-template-columns: 1fr auto auto auto;
    gap: .5rem;
    align-items: center;
    padding: .6rem 0;
    border-bottom: 1px solid var(--border);
}

.line-item:last-of-type {
    border-bottom: none;
}

@media (max-width: 540px) {
    .line-item {
        grid-template-columns: 1fr 1fr;
        row-gap: .5rem;
    }
}

/* Budget summary strip */
.budget-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.bs-cell {
    background: #fff;
    padding: 1rem 1.25rem;
    text-align: center;
}

.bs-value {
    font-family: var(--font-display), sans-serif;
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: -.04em;
    color: var(--ink);
}

.bs-value.bsv-green {
    color: var(--green);
}

.bs-value.bsv-orange {
    color: var(--orange);
}

.bs-label {
    font-size: .72rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-top: .15rem;
    font-family: var(--font-mono), monospace;
}

/* Mobile sidebar overlay */
.sp-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(22, 18, 14, .5);
    z-index: 99;
}

.sp-overlay.show {
    display: block;
}


/* ============================================================
   UTILITY CLASSES - replaces repeated inline styles
   ============================================================ */

/* Typography */
.t-mono {
    font-family: var(--font-mono), monospace;
}

.t-mono-sm {
    font-family: var(--font-mono), monospace;
    font-size: .78rem;
}

.t-mono-xs {
    font-family: var(--font-mono), monospace;
    font-size: .72rem;
    color: var(--muted);
}

.t-mono-val {
    font-family: var(--font-mono), monospace;
    font-weight: 600;
}

.t-mono-val-ink {
    font-family: var(--font-mono), monospace;
    font-weight: 600;
    color: var(--ink);
}

.t-mono-amount {
    font-family: var(--font-mono), monospace;
    font-weight: 700;
    font-size: .875rem;
}

.t-mono-ref {
    font-family: var(--font-mono), monospace;
    font-size: .78rem;
    color: var(--muted);
    width: 40px;
    text-align: right;
}

.t-display-num {
    font-family: var(--font-display), sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: var(--orange);
    letter-spacing: -.04em;
}

.t-display-label {
    font-family: var(--font-display), sans-serif;
    font-weight: 800;
    color: var(--orange);
    font-size: .9rem;
    flex-shrink: 0;
}

.t-xs {
    font-size: .72rem;
}

.t-sm {
    font-size: .78rem;
}

.t-sm-muted {
    font-size: .78rem;
    color: var(--muted);
}

.t-sm-600 {
    font-size: .78rem;
    font-weight: 600;
}

.t-body-sm {
    font-size: .82rem;
}

.t-body-sm-muted {
    font-size: .82rem;
    color: var(--muted);
}

.t-body-sm-ink2 {
    font-size: .82rem;
    color: var(--ink-2);
}

.t-body-sm-muted-mt {
    font-size: .82rem;
    color: var(--muted);
    margin-top: .2rem;
}

.t-85 {
    font-size: .85rem;
}

.t-875 {
    font-size: .875rem;
}

.t-875-muted {
    font-size: .875rem;
    color: var(--muted);
    margin: 0;
}

.t-875-ink2 {
    font-size: .875rem;
    color: var(--ink-2);
}

.t-875-600 {
    font-size: .875rem;
    font-weight: 600;
}

.t-875-600-ink {
    font-weight: 600;
    font-size: .875rem;
    color: var(--ink);
}

.t-8 {
    font-size: .8rem;
}

.t-8-muted {
    font-size: .8rem;
    color: var(--muted);
}

.t-84 {
    font-size: .84rem;
}

.t-600 {
    font-weight: 600;
}

.t-600-ink {
    font-weight: 600;
    color: var(--ink);
}

.t-700 {
    font-weight: 700;
}

.t-orange {
    color: var(--orange);
}

.t-muted {
    color: var(--muted);
}

.t-green {
    color: var(--green);
}

.t-amber {
    color: var(--amber);
}

.t-blue {
    color: var(--blue);
}

.t-ink {
    color: var(--ink);
}

.t-ink2 {
    color: var(--ink-2);
}

.t-no-dec {
    text-decoration: none;
}

.t-no-dec-orange {
    color: var(--orange);
    text-decoration: none;
}

/* Page header - used at top of every student/admin page */
.page-hd {
    margin-bottom: 1.75rem;
    position: relative;
    z-index: 1;
}

.page-title {
    font-family: var(--font-display), sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -.04em;
    color: var(--ink);
    margin: 0 0 .35rem;
}

.page-subtitle {
    color: var(--muted);
    font-size: .875rem;
    margin: 0;
}

/* Status callouts - coloured alert boxes inside cards */
.callout {
    border-radius: var(--r-md);
    padding: .8rem 1rem;
    margin-bottom: 1.25rem;
}

.callout-green {
    background: var(--green-pale);
    border: 1px solid #bbf7d0;
}

.callout-amber {
    background: var(--amber-pale);
    border: 1px solid #fde68a;
}

.callout-red {
    background: var(--red-pale);
    border: 1px solid #fecaca;
}

.callout-blue {
    background: var(--blue-pale);
    border: 1px solid #bfdbfe;
}

.callout-orange {
    background: var(--orange-pale);
    border: 1px solid var(--orange-mid);
}

.callout p {
    font-size: .875rem;
    color: var(--ink-2);
    margin: 0;
}

.callout strong {
    color: #92400e;
}

/* amber heading */
.callout-green p {
    color: var(--ink-2);
}

/* Progress / spend bar */
.spend-bar-track {
    height: 8px;
    background: var(--border);
    border-radius: 99px;
    overflow: hidden;
}

.spend-bar-fill {
    height: 100%;
    border-radius: 99px;
}

/* Data rows - used in tables, claim item lists, payment schedules */
.data-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .5rem 0;
    border-bottom: 1px solid var(--border);
    font-size: .84rem;
}

.data-row:last-child {
    border-bottom: none;
}

.data-row-label {
    font-weight: 600;
}

.data-row-sub {
    color: var(--muted);
    margin-left: .4rem;
}

.data-row-val {
    font-family: var(--font-mono), monospace;
    font-weight: 700;
}

.data-row-val-sm {
    font-family: var(--font-mono), monospace;
    font-size: .78rem;
    color: var(--muted);
}

/* Icon circles - category icons on claims */
.icon-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: .9rem;
}

.icon-circle-orange {
    background: var(--orange-pale);
    color: var(--orange);
}

.icon-circle-green {
    background: var(--green-pale);
    color: var(--green);
}

.icon-circle-blue {
    background: var(--blue-pale);
    color: var(--blue);
}

.icon-circle-amber {
    background: var(--amber-pale);
    color: var(--amber);
}

.icon-circle-sm {
    width: 24px;
    height: 24px;
    font-size: .7rem;
}

/* Section header row inside cards */
.card-hd-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-hd-link {
    font-size: .8rem;
    color: var(--orange);
    font-weight: 600;
    text-decoration: none;
}

.card-hd-link:hover {
    text-decoration: underline;
}

/* Card body padding */
.card-body-pad {
    padding: 1.25rem 1.5rem;
}

.card-body-pad-0 {
    padding: 0 1.25rem 1rem;
}

.card-body-pt {
    padding: .5rem 1.25rem 1rem;
}

/* Divider row */
.row-divider {
    border-bottom: 1px solid var(--border);
}

/* Flex helpers */
.flex-1 {
    flex: 1;
}

.flex-1-min0 {
    flex: 1;
    min-width: 0;
}

.ms-auto-block {
    margin-left: auto;
}

.scroll-x {
    overflow-x: auto;
}

/* Width utilities */
.w-130 {
    width: 130px;
}

.w-140-shrink0 {
    width: 140px;
    flex-shrink: 0;
}

/* Auth page link row - used at bottom of auth forms */
.auth-link-sep {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
}

/* Badge size modifiers */
.badge-xs {
    font-size: .72rem;
}

.badge-sm {
    font-size: .78rem;
    padding: .35rem .8rem;
}

.badge-sm-compact {
    font-size: .78rem;
    padding: .35rem .5rem;
}

/* White card surface */
.surface-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
}

/* Stat / summary number */
.stat-num {
    font-family: var(--font-display), sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: var(--orange);
    letter-spacing: -.04em;
    margin: 0;
}

.stat-label {
    font-size: .875rem;
    color: var(--muted);
    margin: .2rem 0 0;
}

/* Additional utilities from second audit pass */
.t-mono-8 {
    font-family: var(--font-mono), monospace;
    font-size: .8rem;
}

.t-mono-sm-muted {
    font-family: var(--font-mono), monospace;
    font-size: .78rem;
    color: var(--muted);
}

.t-mono-xs-muted {
    font-family: var(--font-mono), monospace;
    font-size: .72rem;
    color: var(--muted);
}

.t-label-caps {
    font-size: .72rem;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .07em;
}

.t-875-ink2-lh {
    font-size: .875rem;
    color: var(--ink-2);
    line-height: 1.55;
}

.t-84-muted {
    font-size: .84rem;
    color: var(--muted);
}

.t-75-muted {
    font-size: .75rem;
    color: var(--muted);
}

.t-75-muted-mt {
    font-size: .75rem;
    color: var(--muted);
    margin-top: .1rem;
}

.t-amber-600 {
    color: var(--amber);
    font-weight: 600;
}

.t-display-lg {
    font-family: var(--font-display), sans-serif;
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--orange);
    letter-spacing: -.05em;
    line-height: 1;
}

.t-muted-sm-shrink0 {
    color: var(--muted);
    font-size: .75rem;
    flex-shrink: 0;
}

.t-muted-875-0 {
    color: var(--muted);
    font-size: .875rem;
    margin: 0;
}

/* Password strength bars */
.pw-bar {
    flex: 1;
    height: 3px;
    border-radius: 99px;
    background: var(--border);
    transition: background .3s;
}

/* Progress bar segment (allauth / signup) */
.prog-bar-seg {
    flex: 1;
    background: var(--border);
    border-radius: 99px;
    height: 8px;
}

/* Spend bar - horizontal track used in sidebar badge */
.spend-track-sm {
    flex: 1;
    background: var(--border);
    border-radius: 99px;
    height: 8px;
}

/* Auth submit link variant (text-link style, not button) */
.auth-submit-link {
    text-decoration: none;
    line-height: 2.5;
}

/* Ghost white utility - on dark backgrounds */
.t-white-50 {
    color: rgba(255, 255, 255, .5);
    font-size: .875rem;
    line-height: 1.6;
    margin-top: .3rem;
}

.t-white-20 {
    color: rgba(255, 255, 255, .2);
}

.t-white-20-ul {
    color: rgba(255, 255, 255, .2);
    text-decoration: underline;
}

.t-white-20-sm {
    margin-top: 2rem;
    font-size: .8rem;
    color: rgba(255, 255, 255, .2);
}

/* Misc layout */
.shrink-0 {
    flex-shrink: 0;
}

.shrink-0-mt15 {
    margin-top: .15rem;
    flex-shrink: 0;
}

.mt-3-rem {
    margin-top: 1.5rem;
}

.mt-03 {
    margin-top: .3rem;
}

.jc-space-between {
    justify-content: space-between;
}

.ai-flex-start {
    align-items: flex-start;
}

/* Badge colours for category icons (used in claim cards) */
.bg-purple-pale {
    background: var(--purple-pale);
    color: var(--purple);
}

.bg-green-pale {
    background: var(--green-pale);
    color: var(--green);
}

.bg-blue-pale {
    background: var(--blue-pale);
    color: var(--blue);
}

.bg-blue-pale-only {
    background: var(--blue-pale);
}

/* ── Claim table (expenses_history, application_detail) ─────── */
.claim-table {
    width: 100%;
    font-size: .84rem;
    border-collapse: collapse;
    margin-bottom: 1rem;
}

.claim-table th {
    text-align: left;
    padding: .4rem 0;
    color: var(--muted);
    font-weight: 600;
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.claim-table th.text-end {
    text-align: right;
}

.claim-table td {
    padding: .55rem 0;
    color: var(--ink);
}

.claim-table td.text-end {
    text-align: right;
    color: var(--muted);
}

.claim-table td.t-end-mono {
    text-align: right;
    font-family: var(--font-mono), monospace;
    font-weight: 600;
}

.claim-table tfoot td {
    padding: .55rem 0;
    font-weight: 700;
    font-size: .875rem;
}

.claim-table tfoot td.t-end-total {
    text-align: right;
    font-family: var(--font-mono), monospace;
    font-weight: 800;
    font-size: .95rem;
}

.claim-table tr + tr td {
    border-top: 1px solid var(--border);
}

/* ── Budget legend swatch ────────────────────────────────────── */
.swatch {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 2px;
    margin-right: 4px;
}

.swatch-orange {
    background: var(--orange);
}

.swatch-amber {
    background: var(--amber);
}

.swatch-green {
    background: var(--green);
}

/* ── Budget legend row ───────────────────────────────────────── */
.budget-legend {
    font-size: .72rem;
    color: var(--muted);
}

/* ── Page heading (shared across student + admin pages) ──────── */
.page-title-lg {
    font-family: var(--font-display), sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -.04em;
    color: var(--ink);
    margin: 0 0 .35rem;
}

.page-actions {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    white-space: nowrap;
}

/* ── Stat / budget surface card ─────────────────────────────── */
.budget-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 1rem 1.25rem;
}

.budget-card-label {
    font-size: .8rem;
    font-weight: 600;
    color: var(--ink);
}

/* ── Two-tone spend bar (approved + pending) ─────────────────── */
.spend-bar-track-rel {
    height: 8px;
    background: var(--border);
    border-radius: 99px;
    overflow: hidden;
    position: relative;
}

.spend-bar-approved {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    background: var(--orange);
    border-radius: 99px;
}

.spend-bar-pending {
    position: absolute;
    top: 0;
    bottom: 0;
    background: var(--amber);
    border-radius: 99px;
}

/* ── Table header col (admin tables) ─────────────────────────── */
.th-label {
    text-align: left;
    color: var(--muted);
    font-weight: 600;
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .06em;
}

/* ── Chevron icon in claim cards ─────────────────────────────── */
.chevron-muted {
    color: var(--muted);
    font-size: .75rem;
    transition: transform .2s;
}

/* ── Ghost button on dark bg (403, marketing dark sections) ─── */
.btn-ghost-dark {
    text-decoration: none;
    background: rgba(255, 255, 255, .06);
    border-color: rgba(255, 255, 255, .15);
    color: rgba(255, 255, 255, .6);
}

/* ── chart placeholder ───────────────────────────────────────── */
.chart-wrap {
    height: 200px;
}
