/* ==========================================================================
   TSCE Digital Platform — Design System & Public Website
   Trust Skill Acquisition Centre of Excellence, Zaria
   --------------------------------------------------------------------------
   1. Tokens          5. Components (buttons, forms, badges, cards)
   2. Reset/base      6. Modal, toast, empty states
   3. Typography      7. Public site sections
   4. Layout helpers  8. Application / Payment / Success / Certificate
   ========================================================================== */

/* 1. TOKENS ------------------------------------------------------------- */
:root {
    /* Brand (from the TSCE flyer) */
    --primary: #1846D6;          /* royal blue */
    --primary-600: #1339B5;
    --primary-dark: #0B1D55;     /* deep navy */
    --primary-50: #EEF3FF;
    --primary-100: #DCE6FF;
    --secondary: #0EA5E9;        /* bright blue */
    --accent: #06C8E0;           /* electric cyan */
    --accent-50: #E6FBFE;
    --gold: #F5B400;
    --gold-50: #FFF7DB;
    --red: #E5304B;
    --green: #17A34A;            /* logo green */

    /* Semantic */
    --success: #12A150;
    --success-50: #E7F8EE;
    --warning: #D98A00;
    --warning-50: #FFF4DC;
    --danger: #DC2F45;
    --danger-50: #FDECEE;
    --info: #0B84D8;
    --info-50: #E6F4FD;

    /* Neutrals */
    --text: #0C1733;
    --text-2: #33415F;
    --muted: #64708D;
    --muted-2: #8F9AB3;
    --background: #F6F8FC;
    --surface: #FFFFFF;
    --surface-2: #F9FAFD;
    --border: #E3E8F2;
    --border-strong: #CCD5E6;

    /* Gradients */
    --grad-brand: linear-gradient(135deg, #1846D6 0%, #0EA5E9 60%, #06C8E0 100%);
    --grad-navy: linear-gradient(145deg, #0B1D55 0%, #13307F 100%);
    --grad-soft: linear-gradient(180deg, #F4F7FF 0%, #FFFFFF 100%);

    /* Type */
    --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-head: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;

    /* Shape & depth */
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 18px;
    --radius-xl: 26px;
    --shadow-xs: 0 1px 2px rgba(12, 23, 51, .06);
    --shadow-sm: 0 2px 8px rgba(12, 23, 51, .06), 0 1px 2px rgba(12, 23, 51, .04);
    --shadow: 0 10px 30px -12px rgba(16, 38, 102, .18), 0 2px 6px rgba(12, 23, 51, .05);
    --shadow-lg: 0 28px 60px -20px rgba(16, 38, 102, .30), 0 6px 14px rgba(12, 23, 51, .06);
    --ring: 0 0 0 4px rgba(24, 70, 214, .18);

    --ease: cubic-bezier(.2, .8, .2, 1);
    --container: 1200px;
    --header-h: 84px;
}

/* 2. RESET / BASE -------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 15.5px;
    line-height: 1.6;
    color: var(--text);
    background: var(--surface);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-600); }
button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid rgba(24, 70, 214, .45); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--primary-100); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 999; background: var(--primary-dark); color: #fff; padding: 10px 16px; border-radius: 8px; transition: top .2s; }
.skip-link:focus { top: 12px; color: #fff; }

/* 3. TYPOGRAPHY ---------------------------------------------------------- */
h1, h2, h3, h4, h5 { font-family: var(--font-head); color: var(--text); margin: 0 0 .5em; line-height: 1.15; letter-spacing: -.02em; font-weight: 800; }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.9rem); }
h2 { font-size: clamp(1.75rem, 3vw, 2.6rem); }
h3 { font-size: 1.25rem; letter-spacing: -.01em; font-weight: 700; }
h4 { font-size: 1.05rem; font-weight: 700; letter-spacing: -.005em; }
p { margin: 0 0 1em; color: var(--text-2); }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 640px; }
.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--font-head); font-weight: 700; font-size: .78rem;
    letter-spacing: .14em; text-transform: uppercase; color: var(--primary);
    margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--grad-brand); border-radius: 2px; }
.text-grad { background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .92em; }
.strong { font-weight: 700; color: var(--text); }

/* 4. LAYOUT HELPERS ------------------------------------------------------ */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; position: relative; }
.section-sm { padding: 64px 0; }
.section-alt { background: var(--background); }
.section-head { max-width: 720px; margin-bottom: 48px; }
/* Public website: section and page headings in capitals (portals are unaffected). */
body:not(.portal) main h1, body:not(.portal) main h2 { text-transform: uppercase; letter-spacing: .01em; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head.center .lead { margin-left: auto; margin-right: auto; }
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.flex { display: flex; gap: 12px; align-items: center; }
.flex-wrap { flex-wrap: wrap; }
.between { justify-content: space-between; }
.stack > * + * { margin-top: 12px; }
.mt-0 { margin-top: 0 !important; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; }
.mb-0 { margin-bottom: 0 !important; } .mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.w-full { width: 100%; }
.hidden { display: none !important; }
.divider { height: 1px; background: var(--border); margin: 20px 0; border: 0; }

/* 5. COMPONENTS ---------------------------------------------------------- */

/* Buttons */
.btn {
    --btn-bg: var(--surface); --btn-fg: var(--text); --btn-bd: var(--border);
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    height: 46px; padding: 0 20px; border-radius: 12px;
    border: 1px solid var(--btn-bd); background: var(--btn-bg); color: var(--btn-fg);
    font-family: var(--font-head); font-weight: 700; font-size: .93rem; letter-spacing: -.005em;
    white-space: nowrap; text-decoration: none; user-select: none;
    transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s, border-color .18s, color .18s;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); color: var(--btn-fg); }
.btn:active { transform: translateY(0); }
.btn[disabled], .btn.is-disabled { opacity: .55; pointer-events: none; }
.btn i { font-size: .95em; }
.btn-primary { --btn-bg: var(--primary); --btn-fg: #fff; --btn-bd: var(--primary); box-shadow: 0 8px 20px -8px rgba(24, 70, 214, .6); }
.btn-primary:hover { --btn-bg: var(--primary-600); box-shadow: 0 12px 26px -10px rgba(24, 70, 214, .7); }
.btn-grad { --btn-fg: #fff; --btn-bd: transparent; background: var(--grad-brand); box-shadow: 0 10px 24px -10px rgba(14, 165, 233, .7); }
.btn-dark { --btn-bg: var(--primary-dark); --btn-fg: #fff; --btn-bd: var(--primary-dark); }
.btn-gold { --btn-bg: var(--gold); --btn-fg: var(--primary-dark); --btn-bd: var(--gold); }
.btn-outline { --btn-bg: transparent; --btn-fg: var(--primary); --btn-bd: rgba(24, 70, 214, .35); }
.btn-outline:hover { --btn-bg: var(--primary-50); }
.btn-ghost { --btn-bg: transparent; --btn-bd: transparent; --btn-fg: var(--text-2); }
.btn-ghost:hover { --btn-bg: var(--primary-50); --btn-fg: var(--primary); box-shadow: none; }
.btn-light { --btn-bg: #fff; --btn-fg: var(--primary-dark); --btn-bd: #fff; }
.btn-success { --btn-bg: var(--success); --btn-fg: #fff; --btn-bd: var(--success); }
.btn-danger { --btn-bg: var(--danger); --btn-fg: #fff; --btn-bd: var(--danger); }
.btn-soft-danger { --btn-bg: var(--danger-50); --btn-fg: var(--danger); --btn-bd: transparent; }
.btn-soft { --btn-bg: var(--primary-50); --btn-fg: var(--primary); --btn-bd: transparent; }
.btn-sm { height: 36px; padding: 0 14px; font-size: .84rem; border-radius: 10px; gap: 7px; }
.btn-xs { height: 30px; padding: 0 10px; font-size: .78rem; border-radius: 8px; gap: 6px; }
.btn-lg { height: 54px; padding: 0 28px; font-size: 1rem; border-radius: 14px; }
.btn-icon { width: 40px; height: 40px; padding: 0; border-radius: 11px; }
.btn-block { width: 100%; }
.btn .spinner { width: 16px; height: 16px; }
.link-btn { background: none; border: 0; padding: 0; color: var(--primary); font-weight: 600; display: inline-flex; gap: 6px; align-items: center; }
.link-btn:hover { text-decoration: underline; }

/* Spinner */
.spinner { width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid rgba(24, 70, 214, .18); border-top-color: var(--primary); animation: spin .7s linear infinite; }
.btn-primary .spinner, .btn-grad .spinner, .btn-dark .spinner { border-color: rgba(255,255,255,.35); border-top-color: #fff; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Forms */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.form-grid .span-2 { grid-column: span 2; }
.form-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field label, .label { font-size: .84rem; font-weight: 600; color: var(--text-2); }
.field label .req { color: var(--danger); margin-left: 2px; }
.input, .select, .textarea {
    width: 100%; height: 46px; padding: 0 14px;
    background: var(--surface); border: 1px solid var(--border-strong); border-radius: 11px;
    font-size: .94rem; color: var(--text);
    transition: border-color .15s, box-shadow .15s, background .15s;
}
.textarea { height: auto; min-height: 110px; padding: 12px 14px; resize: vertical; line-height: 1.5; }
.select { appearance: none; padding-right: 38px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%2364708D' stroke-width='1.8' d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.input:hover, .select:hover, .textarea:hover { border-color: #b3bfd6; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--primary); box-shadow: var(--ring); }
.input::placeholder, .textarea::placeholder { color: var(--muted-2); }
.field.has-error .input, .field.has-error .select, .field.has-error .textarea { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(220, 47, 69, .12); }
.field-error { font-size: .78rem; color: var(--danger); display: none; }
.field.has-error .field-error { display: block; }
.hint { font-size: .78rem; color: var(--muted); }
.input-icon { position: relative; }
.input-icon > i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted-2); pointer-events: none; }
.input-icon > .input { padding-left: 40px; }
.input-affix { position: relative; }
.input-affix .affix-btn { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--muted); padding: 8px; border-radius: 8px; }
.input-affix .affix-btn:hover { color: var(--primary); background: var(--primary-50); }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: .9rem; color: var(--text-2); cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--primary); flex: none; }
.switch { position: relative; width: 44px; height: 24px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: var(--border-strong); border-radius: 30px; transition: .2s; cursor: pointer; }
.switch span::before { content: ""; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s var(--ease); box-shadow: var(--shadow-xs); }
.switch input:checked + span { background: var(--primary); }
.switch input:checked + span::before { transform: translateX(20px); }
.switch input:focus-visible + span { box-shadow: var(--ring); }
.upload-box { border: 1.5px dashed var(--border-strong); border-radius: 14px; padding: 22px; text-align: center; background: var(--surface-2); cursor: pointer; transition: .2s; }
.upload-box:hover, .upload-box.dragover { border-color: var(--primary); background: var(--primary-50); }
.upload-box i { font-size: 1.6rem; color: var(--primary); margin-bottom: 8px; }
.upload-box.done { border-style: solid; border-color: var(--success); background: var(--success-50); }
.upload-box.done i { color: var(--success); }

/* Badges */
.badge {
    display: inline-flex; align-items: center; gap: 6px;
    height: 26px; padding: 0 10px; border-radius: 999px;
    font-size: .74rem; font-weight: 700; letter-spacing: .01em; white-space: nowrap;
    background: var(--surface-2); color: var(--text-2); border: 1px solid var(--border);
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .85; }
.badge.no-dot::before { display: none; }
.badge-success { background: var(--success-50); color: var(--success); border-color: transparent; }
.badge-warning { background: var(--warning-50); color: #B06E00; border-color: transparent; }
.badge-danger { background: var(--danger-50); color: var(--danger); border-color: transparent; }
.badge-info { background: var(--info-50); color: var(--info); border-color: transparent; }
.badge-primary { background: var(--primary-50); color: var(--primary); border-color: transparent; }
.badge-gold { background: var(--gold-50); color: #9A6B00; border-color: transparent; }
.badge-neutral { background: #EEF1F7; color: var(--muted); border-color: transparent; }
.badge-dark { background: var(--primary-dark); color: #fff; border-color: transparent; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--primary-50); color: var(--primary); font-weight: 600; font-size: .8rem; }

/* Cards */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-xs); }
.card-pad { padding: 24px; }
.card-hover { transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s; }
.card-hover:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--primary-100); }
.icon-tile {
    width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; flex: none;
    background: var(--primary-50); color: var(--primary); font-size: 1.15rem;
}
.icon-tile.cyan { background: var(--accent-50); color: #0891B2; }
.icon-tile.gold { background: var(--gold-50); color: #B98700; }
.icon-tile.green { background: var(--success-50); color: var(--success); }
.icon-tile.red { background: var(--danger-50); color: var(--danger); }
.icon-tile.navy { background: var(--primary-dark); color: #fff; }
.icon-tile.grad { background: var(--grad-brand); color: #fff; }

/* Progress */
.progress { height: 8px; background: #EAEFF8; border-radius: 99px; overflow: hidden; }
.progress > span { display: block; height: 100%; width: 0; background: var(--grad-brand); border-radius: inherit; transition: width 1.1s var(--ease); }
.progress.green > span { background: linear-gradient(90deg, #12A150, #34D399); }
.progress.gold > span { background: linear-gradient(90deg, #F5B400, #FFD65A); }
.progress.sm { height: 6px; }

/* Avatars */
.avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; flex: none; font-weight: 700; font-size: .82rem; color: #fff; font-family: var(--font-head); background: var(--grad-brand); }
.avatar.lg { width: 64px; height: 64px; font-size: 1.25rem; }
.avatar.xl { width: 92px; height: 92px; font-size: 1.8rem; }
.avatar.sm { width: 30px; height: 30px; font-size: .72rem; }

/* Tabs */
.tabs { display: inline-flex; gap: 4px; padding: 4px; background: #EEF2F9; border-radius: 12px; flex-wrap: wrap; }
.tab { border: 0; background: transparent; padding: 8px 14px; border-radius: 9px; font-weight: 600; font-size: .86rem; color: var(--muted); display: inline-flex; gap: 8px; align-items: center; transition: .15s; }
.tab:hover { color: var(--text); }
.tab.active { background: #fff; color: var(--primary); box-shadow: var(--shadow-xs); }

/* 6. MODAL / TOAST / EMPTY ---------------------------------------------- */
.modal-backdrop {
    position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 24px;
    background: rgba(9, 18, 48, .45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    opacity: 0; transition: opacity .22s var(--ease);
}
.modal-backdrop.open { opacity: 1; }
.modal {
    width: 100%; max-width: 560px; max-height: calc(100vh - 48px); display: flex; flex-direction: column;
    background: var(--surface); border-radius: 22px; box-shadow: var(--shadow-lg); overflow: hidden;
    transform: translateY(18px) scale(.98); transition: transform .28s var(--ease);
}
.modal-backdrop.open .modal { transform: none; }
.modal.lg { max-width: 820px; }
.modal.xl { max-width: 1040px; }
.modal.sm { max-width: 420px; }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 22px 24px 16px; border-bottom: 1px solid var(--border); }
.modal-head h3 { margin: 0; font-size: 1.15rem; }
.modal-head p { margin: 4px 0 0; font-size: .86rem; color: var(--muted); }
.modal-close { border: 0; background: var(--surface-2); width: 36px; height: 36px; border-radius: 10px; color: var(--muted); flex: none; }
.modal-close:hover { background: var(--danger-50); color: var(--danger); }
.modal-body { padding: 22px 24px; overflow-y: auto; }
.modal-foot { padding: 16px 24px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 10px; background: var(--surface-2); flex-wrap: wrap; }

.toast-wrap { position: fixed; right: 20px; bottom: 20px; z-index: 1100; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.toast {
    pointer-events: auto; display: flex; gap: 12px; align-items: flex-start; min-width: 280px; max-width: 380px;
    padding: 14px 16px; background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--primary);
    border-radius: 14px; box-shadow: var(--shadow-lg); font-size: .9rem;
    animation: toastIn .35s var(--ease);
}
.toast.leaving { animation: toastOut .25s var(--ease) forwards; }
.toast .t-icon { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; flex: none; font-size: .8rem; background: var(--primary-50); color: var(--primary); }
.toast strong { display: block; font-family: var(--font-head); font-size: .92rem; color: var(--text); }
.toast span { color: var(--muted); font-size: .84rem; }
.toast.success { border-left-color: var(--success); } .toast.success .t-icon { background: var(--success-50); color: var(--success); }
.toast.error { border-left-color: var(--danger); } .toast.error .t-icon { background: var(--danger-50); color: var(--danger); }
.toast.warning { border-left-color: var(--warning); } .toast.warning .t-icon { background: var(--warning-50); color: var(--warning); }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px) scale(.97); } }
@keyframes toastOut { to { opacity: 0; transform: translateX(30px); } }

.empty { text-align: center; padding: 48px 24px; }
.empty .empty-icon { width: 72px; height: 72px; margin: 0 auto 16px; border-radius: 22px; display: grid; place-items: center; background: var(--primary-50); color: var(--primary); font-size: 1.6rem; position: relative; }
.empty .empty-icon::after { content: ""; position: absolute; inset: -8px; border-radius: 28px; border: 1px dashed var(--primary-100); }
.empty h4 { margin-bottom: 6px; }
.empty p { color: var(--muted); max-width: 380px; margin: 0 auto 16px; font-size: .92rem; }

.skeleton { background: linear-gradient(90deg, #EEF2F8 25%, #F7F9FC 37%, #EEF2F8 63%); background-size: 400% 100%; animation: shimmer 1.3s ease infinite; border-radius: 8px; }
@keyframes shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

.alert { display: flex; gap: 12px; padding: 14px 16px; border-radius: 14px; font-size: .9rem; background: var(--info-50); color: #0a5c96; border: 1px solid rgba(11, 132, 216, .15); }
.alert i { margin-top: 3px; }
.alert.warning { background: var(--warning-50); color: #8a5a00; border-color: rgba(217, 138, 0, .2); }
.alert.success { background: var(--success-50); color: #0d7a3d; border-color: rgba(18, 161, 80, .2); }
.alert.danger { background: var(--danger-50); color: #a8213a; border-color: rgba(220, 47, 69, .2); }
.alert p { color: inherit; margin: 0; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
    .reveal { opacity: 1; transform: none; }
}

/* 7. PUBLIC SITE ------------------------------------------------------- */

/* Logo */
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--primary-dark); }
.brand:hover { color: var(--primary-dark); }
.brand-mark { width: 64px; height: 64px; flex: none; object-fit: contain; }
.sidebar .brand-mark { width: 48px; height: 48px; }
/* On dark surfaces the emblem sits on a white badge so the navy hand stays visible */
.sidebar .brand-mark, .site-footer .brand-mark, .auth-side .brand-mark, .id-card .brand-mark { background: #fff; border-radius: 50%; padding: 3px; box-shadow: 0 0 0 2px rgba(255,255,255,.15); }
.logo-full { display: block; height: auto; }
.cert-logo { height: clamp(58px, 11vw, 104px); width: auto; }
.receipt-logo { height: 64px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { font-family: var(--font-head); font-weight: 800; font-size: 1.02rem; letter-spacing: -.01em; }
.brand-text small { font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-top: 3px; }

/* Announcement bar */
.announce-bar { background: var(--primary-dark); color: #DCE6FF; font-size: .84rem; position: relative; overflow: hidden; }
.announce-bar .container { display: flex; align-items: center; justify-content: center; gap: 14px; min-height: 42px; flex-wrap: wrap; padding-top: 6px; padding-bottom: 6px; text-align: center; }
.announce-bar strong { color: #fff; }
.announce-bar .pill { background: var(--gold); color: var(--primary-dark); font-weight: 800; font-size: .7rem; letter-spacing: .06em; padding: 3px 9px; border-radius: 99px; text-transform: uppercase; }
.announce-bar a { color: #7FE3F2; font-weight: 600; }
.announce-bar .countdown { font-variant-numeric: tabular-nums; color: #fff; font-weight: 600; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .86); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.site-header.scrolled { border-bottom-color: var(--border); box-shadow: 0 6px 24px -18px rgba(12, 23, 51, .35); }
.nav { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 20px; }
.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.site-header .container { max-width: 1320px; }
.nav-links a, .nav-links button.nav-drop-btn { white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; padding: 9px 9px; border-radius: 10px; font-size: .88rem; font-weight: 600; color: var(--text-2); background: none; border: 0; transition: .15s; }
.nav-links a:hover, .nav-links button.nav-drop-btn:hover { color: var(--primary); background: var(--primary-50); }
.nav-links a.active { color: var(--primary); }
.nav-links a.active::after { content: ""; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-drop { position: relative; }
.nav-drop-menu {
    position: absolute; right: 0; top: calc(100% + 10px); min-width: 250px; padding: 8px; list-style: none; margin: 0;
    background: #fff; border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden; transform: translateY(-6px); transition: .18s var(--ease);
}
.nav-drop.open .nav-drop-menu { opacity: 1; visibility: visible; transform: none; }
.nav-drop-menu a { display: flex !important; gap: 12px !important; align-items: center; padding: 10px 12px !important; border-radius: 10px; }
.nav-drop-menu a small { display: block; font-weight: 500; color: var(--muted); font-size: .76rem; }
.nav-drop-menu .icon-tile { width: 36px; height: 36px; border-radius: 10px; font-size: .9rem; }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--border); background: #fff; color: var(--primary-dark); font-size: 1.1rem; }

/* Mobile drawer */
.mobile-nav { position: fixed; inset: 0; z-index: 900; visibility: hidden; }
.mobile-nav .mn-backdrop { position: absolute; inset: 0; background: rgba(9, 18, 48, .45); opacity: 0; transition: .25s; }
.mobile-nav .mn-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(360px, 88vw); background: #fff; transform: translateX(100%); transition: transform .3s var(--ease); display: flex; flex-direction: column; padding: 18px; overflow-y: auto; }
.mobile-nav.open { visibility: visible; }
.mobile-nav.open .mn-backdrop { opacity: 1; }
.mobile-nav.open .mn-panel { transform: none; }
.mn-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.mn-links { list-style: none; padding: 0; margin: 0 0 18px; }
.mn-links a { display: flex; align-items: center; gap: 14px; padding: 13px 12px; border-radius: 12px; color: var(--text); font-weight: 600; }
.mn-links a i { width: 20px; color: var(--primary); text-align: center; }
.mn-links a:hover, .mn-links a.active { background: var(--primary-50); }

/* Hero */
.hero { position: relative; padding: 72px 0 96px; overflow: hidden; background: radial-gradient(1200px 520px at 85% -10%, rgba(6, 200, 224, .13), transparent 60%), radial-gradient(900px 500px at -10% 20%, rgba(24, 70, 214, .08), transparent 60%), #fff; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(24, 70, 214, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(24, 70, 214, .05) 1px, transparent 1px); background-size: 44px 44px; mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000 20%, transparent 75%); pointer-events: none; }
.hero .container { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero-tag { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 99px; background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow-sm); font-size: .82rem; font-weight: 600; color: var(--text-2); margin-bottom: 22px; }
.hero-tag b { background: var(--grad-brand); color: #fff; padding: 3px 10px; border-radius: 99px; font-size: .72rem; letter-spacing: .04em; }
.hero h1 { font-size: clamp(2.35rem, 5vw, 4.1rem); letter-spacing: -.035em; margin-bottom: 20px; }
.hero h1 .line2 { display: block; }
.hero .lead { font-size: 1.14rem; margin-bottom: 30px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 34px; }
.hero-meta { display: flex; gap: 26px; flex-wrap: wrap; }
.hero-meta div { display: flex; gap: 10px; align-items: center; font-size: .88rem; color: var(--muted); }
.hero-meta i { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--primary-50); color: var(--primary); font-size: .85rem; }
.hero-meta strong { display: block; color: var(--text); font-family: var(--font-head); font-size: .92rem; }

/* Hero visual composition */
.hero-visual { position: relative; aspect-ratio: 1 / .95; max-width: 560px; margin-left: auto; width: 100%; }
.orbit { position: absolute; inset: 8%; border-radius: 50%; border: 1px dashed rgba(24, 70, 214, .22); }
.orbit.o2 { inset: 22%; border-style: solid; border-color: rgba(6, 200, 224, .22); }
.orbit.o3 { inset: 0; border-color: rgba(24, 70, 214, .1); }
.hv-core {
    position: absolute; inset: 31%; border-radius: 32px; background: var(--grad-navy);
    display: grid; place-items: center; box-shadow: 0 30px 60px -20px rgba(11, 29, 85, .55), inset 0 1px 0 rgba(255,255,255,.12);
    transform: rotate(-6deg); animation: floatCore 7s ease-in-out infinite;
}
.hv-core::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(circle at 30% 20%, rgba(6, 200, 224, .45), transparent 55%); }
.hv-core img { width: 74%; height: auto; position: relative; transform: rotate(6deg); background: #fff; border-radius: 50%; padding: 6%; box-shadow: 0 10px 30px -8px rgba(0,0,0,.35); }
@keyframes floatCore { 50% { transform: rotate(-3deg) translateY(-8px); } }
.hv-node {
    position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px;
    background: rgba(255, 255, 255, .92); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow);
    font-weight: 700; font-size: .84rem; font-family: var(--font-head); color: var(--text); white-space: nowrap;
    backdrop-filter: blur(8px); animation: bob 6s ease-in-out infinite;
}
.hv-node .icon-tile { width: 34px; height: 34px; border-radius: 10px; font-size: .85rem; }
.hv-node small { display: block; font-family: var(--font-body); font-weight: 500; color: var(--muted); font-size: .7rem; }
.hv-node:nth-child(2n) { animation-delay: -2s; }
.hv-node:nth-child(3n) { animation-delay: -4s; }
@keyframes bob { 50% { transform: translateY(-9px); } }
.n-ai { top: 4%; left: 30%; } .n-cyber { top: 20%; right: -2%; } .n-soft { top: 44%; left: -6%; }
.n-cloud { bottom: 26%; right: -4%; } .n-net { bottom: 4%; left: 12%; } .n-data { top: 16%; left: -2%; } .n-mkt { bottom: 6%; right: 18%; }
.hv-card { position: absolute; left: 50%; bottom: -4%; transform: translateX(-50%); display: none; }
.pulse-dot { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(6, 200, 224, .6); animation: pulse 2.4s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 14px rgba(6, 200, 224, 0); } 100% { box-shadow: 0 0 0 0 rgba(6, 200, 224, 0); } }

/* Logos/partners strip */
.trust-strip { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--surface-2); }
.trust-strip .container { display: flex; align-items: center; gap: 36px; justify-content: space-between; padding-top: 20px; padding-bottom: 20px; flex-wrap: wrap; }
.trust-strip p { margin: 0; font-size: .8rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.trust-strip .tlogos { display: flex; gap: 34px; flex-wrap: wrap; align-items: center; }
.trust-strip .tlogos span { display: inline-flex; gap: 8px; align-items: center; font-family: var(--font-head); font-weight: 700; color: #7D89A6; font-size: 1rem; }

/* Stats */
.stats-band { margin-top: -48px; position: relative; z-index: 2; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border: 1px solid var(--border); border-radius: 24px; box-shadow: var(--shadow); overflow: hidden; }
.stat { padding: 30px 28px; position: relative; }
.stat + .stat::before { content: ""; position: absolute; left: 0; top: 24%; bottom: 24%; width: 1px; background: var(--border); }
.stat .num { font-family: var(--font-head); font-weight: 800; font-size: clamp(2rem, 3.4vw, 2.7rem); letter-spacing: -.03em; line-height: 1; color: var(--primary-dark); }
.stat .num em { font-style: normal; background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat p { margin: 8px 0 0; color: var(--muted); font-weight: 500; font-size: .92rem; }
.stat .stat-icon { position: absolute; right: 24px; top: 26px; color: var(--primary-100); font-size: 1.5rem; }
.demo-note { font-size: .72rem; color: var(--muted-2); text-align: right; margin-top: 8px; }

/* Why TSCE */
.why-card { padding: 28px; border-radius: 20px; background: #fff; border: 1px solid var(--border); position: relative; overflow: hidden; }
.why-card::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--grad-brand); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.why-card:hover::after { transform: scaleX(1); }
.why-card h3 { margin: 18px 0 8px; font-size: 1.12rem; }
.why-card p { margin: 0; color: var(--muted); font-size: .94rem; }

/* Programme cards */
.prog-filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.prog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.prog-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border); border-radius: 20px; overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s; cursor: pointer; text-align: left; padding: 0; color: inherit; }
.prog-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--primary-100); }
.prog-top { padding: 22px 22px 18px; position: relative; background: linear-gradient(160deg, var(--pc-bg, #F2F6FF) 0%, #fff 90%); }
.prog-top .icon-tile { width: 52px; height: 52px; border-radius: 15px; background: var(--pc, var(--primary)); color: #fff; font-size: 1.2rem; box-shadow: 0 10px 20px -10px var(--pc, var(--primary)); }
.prog-top .prog-track { position: absolute; right: 18px; top: 20px; }
.prog-body { padding: 4px 22px 18px; flex: 1; }
.prog-body h3 { font-size: 1.1rem; margin: 0 0 8px; line-height: 1.3; }
.prog-body p { font-size: .88rem; color: var(--muted); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.prog-meta { display: flex; gap: 16px; margin-top: 14px; font-size: .82rem; color: var(--text-2); font-weight: 600; flex-wrap: wrap; }
.prog-meta span { display: inline-flex; gap: 6px; align-items: center; }
.prog-meta i { color: var(--muted-2); }
.prog-foot { display: flex; align-items: center; justify-content: space-between; padding: 16px 22px; border-top: 1px solid var(--border); background: var(--surface-2); }
.prog-fee { font-family: var(--font-head); font-weight: 800; font-size: 1.25rem; color: var(--primary-dark); letter-spacing: -.02em; }
.prog-fee small { display: block; font-family: var(--font-body); font-weight: 500; font-size: .7rem; color: var(--muted); letter-spacing: 0; }
.prog-go { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 1px solid var(--border); color: var(--primary); transition: .2s; }
.prog-card:hover .prog-go { background: var(--primary); color: #fff; border-color: var(--primary); transform: rotate(-45deg); }
.seats { font-size: .76rem; font-weight: 600; color: var(--warning); display: inline-flex; gap: 5px; align-items: center; }
.seats.ok { color: var(--success); }

/* Programme detail modal */
.pd-hero { padding: 28px; background: linear-gradient(135deg, var(--primary-dark), #1a3a9e 60%, #0b7fb8); color: #fff; position: relative; overflow: hidden; }
.pd-hero::after { content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%; border: 40px solid rgba(255,255,255,.05); }
.pd-hero h2 { color: #fff; font-size: 1.7rem; margin: 10px 0 8px; }
.pd-hero p { color: #C9D6FF; margin: 0; max-width: 560px; }
.pd-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); border-bottom: 1px solid var(--border); }
.pd-facts div { background: #fff; padding: 16px 20px; }
.pd-facts small { display: block; color: var(--muted); font-size: .74rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.pd-facts strong { font-family: var(--font-head); font-size: 1.05rem; }
.pd-section { margin-bottom: 26px; }
.pd-section h4 { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; }
.pd-section h4 i { color: var(--primary); }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.checklist li { display: flex; gap: 10px; font-size: .93rem; color: var(--text-2); }
.checklist li::before { content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: .7rem; width: 20px; height: 20px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--success-50); color: var(--success); margin-top: 2px; }
.checklist.cols-2 { grid-template-columns: 1fr 1fr; }
.curriculum { list-style: none; padding: 0; margin: 0; counter-reset: mod; display: grid; gap: 8px; }
.curriculum li { counter-increment: mod; display: flex; align-items: center; gap: 14px; padding: 11px 14px; border: 1px solid var(--border); border-radius: 12px; font-weight: 600; font-size: .92rem; background: #fff; }
.curriculum li::before { content: counter(mod, decimal-leading-zero); font-family: var(--font-head); font-size: .78rem; font-weight: 800; color: var(--primary); background: var(--primary-50); width: 34px; height: 28px; border-radius: 8px; display: grid; place-items: center; flex: none; }
.curriculum li span { margin-left: auto; font-size: .76rem; font-weight: 500; color: var(--muted); }
.tag-list { display: flex; gap: 8px; flex-wrap: wrap; }
.seat-meter { display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border); }

/* Career pathway */
.pathway { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; position: relative; }
.pathway::before { content: ""; position: absolute; top: 42px; left: 10%; right: 10%; height: 2px; background: repeating-linear-gradient(90deg, var(--primary-100) 0 8px, transparent 8px 14px); }
.pathway .path-fill { position: absolute; top: 42px; left: 10%; height: 2px; width: 0; background: var(--grad-brand); transition: width 2.4s var(--ease); }
.pathway.in .path-fill { width: 80%; }
.path-step { text-align: center; position: relative; padding: 0 6px; cursor: default; }
.path-node { width: 84px; height: 84px; margin: 0 auto 18px; border-radius: 26px; display: grid; place-items: center; background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow-sm); font-size: 1.5rem; color: var(--primary); position: relative; z-index: 1; transition: .35s var(--ease); }
.path-step:hover .path-node, .path-step.active .path-node { background: var(--grad-brand); color: #fff; transform: translateY(-6px) rotate(-4deg); box-shadow: 0 18px 30px -14px rgba(24, 70, 214, .7); border-color: transparent; }
.path-step .step-no { font-size: .72rem; font-weight: 800; color: var(--primary); letter-spacing: .14em; }
.path-step h4 { font-size: 1.1rem; letter-spacing: .06em; margin: 4px 0 6px; }
.path-step p { font-size: .86rem; color: var(--muted); margin: 0; }

/* Scholarships */
.offer-card { position: relative; padding: 30px; border-radius: 22px; background: #fff; border: 1px solid var(--border); overflow: hidden; }
.offer-card .pct { font-family: var(--font-head); font-weight: 800; font-size: 3.4rem; line-height: 1; letter-spacing: -.04em; }
.offer-card .pct sup { font-size: 1.4rem; top: -1.2em; margin-left: 2px; }
.offer-card .pct small { font-size: 1rem; font-weight: 700; letter-spacing: 0; color: var(--muted); display: block; margin-bottom: 4px; }
.offer-card h3 { margin: 14px 0 8px; }
.offer-card p { font-size: .92rem; color: var(--muted); margin: 0; }
.offer-card.featured { background: var(--grad-navy); border-color: transparent; color: #fff; box-shadow: var(--shadow-lg); }
.offer-card.featured h3, .offer-card.featured .pct { color: #fff; }
.offer-card.featured p { color: #C3D0F5; }
.offer-card.featured .pct small { color: #9FB3EE; }
.offer-card .ribbon { position: absolute; top: 20px; right: 20px; }
.offer-card .deco { position: absolute; right: -30px; bottom: -30px; width: 140px; height: 140px; border-radius: 50%; background: radial-gradient(circle, rgba(6, 200, 224, .25), transparent 70%); }

/* How it works steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: st; }
.step-card { padding: 26px; border-radius: 20px; background: #fff; border: 1px solid var(--border); position: relative; }
.step-card .n { position: absolute; right: 20px; top: 16px; font-family: var(--font-head); font-weight: 800; font-size: 2.6rem; color: #EDF1F9; line-height: 1; }
.step-card h4 { margin: 18px 0 6px; }
.step-card p { font-size: .9rem; color: var(--muted); margin: 0; }

/* Innovation band (limited dark section) */
.innov { background: var(--grad-navy); border-radius: 32px; padding: 64px; color: #fff; position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.innov::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.09) 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(90deg, transparent, #000); -webkit-mask-image: linear-gradient(90deg, transparent, #000); }
.innov > * { position: relative; }
.innov h2 { color: #fff; }
.innov p { color: #BFCDF3; }
.innov .eyebrow { color: #7FE3F2; }
.innov-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.innov-item { padding: 18px; border-radius: 16px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); transition: .25s; }
.innov-item:hover { background: rgba(255,255,255,.1); transform: translateY(-3px); }
.innov-item i { color: #7FE3F2; font-size: 1.1rem; margin-bottom: 10px; display: block; }
.innov-item strong { display: block; font-family: var(--font-head); font-size: .95rem; }
.innov-item span { font-size: .8rem; color: #A9B9E6; }

/* Testimonials */
.testi { padding: 28px; border-radius: 20px; background: #fff; border: 1px solid var(--border); display: flex; flex-direction: column; gap: 18px; }
.testi .stars { color: var(--gold); font-size: .85rem; letter-spacing: 2px; }
.testi blockquote { margin: 0; font-size: 1rem; color: var(--text-2); line-height: 1.65; flex: 1; }
.testi .who { display: flex; gap: 12px; align-items: center; }
.testi .who strong { display: block; font-family: var(--font-head); font-size: .95rem; }
.testi .who span { font-size: .8rem; color: var(--muted); }

/* Cohort / timeline */
.cohort { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; padding: 44px; border-radius: 28px; background: linear-gradient(135deg, #F2F6FF, #EAFBFE); border: 1px solid var(--primary-100); }
.countdown-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 22px 0; }
.countdown-grid div { background: #fff; border-radius: 16px; padding: 16px 10px; text-align: center; border: 1px solid var(--border); box-shadow: var(--shadow-xs); }
.countdown-grid strong { font-family: var(--font-head); font-size: 2rem; font-weight: 800; color: var(--primary-dark); display: block; line-height: 1.1; font-variant-numeric: tabular-nums; }
.countdown-grid span { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 600; }
.timeline { position: relative; display: grid; gap: 14px; }
.tl-item { display: grid; grid-template-columns: 76px 1fr; gap: 16px; align-items: center; padding: 16px; border-radius: 16px; background: #fff; border: 1px solid var(--border); position: relative; }
.tl-date { text-align: center; border-radius: 12px; background: var(--primary-50); padding: 8px 4px; }
.tl-date b { display: block; font-family: var(--font-head); font-size: 1.4rem; color: var(--primary); line-height: 1; }
.tl-date small { font-size: .7rem; font-weight: 700; letter-spacing: .1em; color: var(--primary); text-transform: uppercase; }
.tl-item h4 { margin: 0 0 2px; font-size: 1rem; }
.tl-item p { margin: 0; font-size: .85rem; color: var(--muted); }
.tl-item.gold .tl-date { background: var(--gold-50); } .tl-item.gold .tl-date b, .tl-item.gold .tl-date small { color: #A77A00; }
.tl-item.green .tl-date { background: var(--success-50); } .tl-item.green .tl-date b, .tl-item.green .tl-date small { color: var(--success); }
.tl-item .now-flag { position: absolute; right: 14px; top: 14px; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item { border: 1px solid var(--border); border-radius: 16px; background: #fff; overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.faq-item.open { border-color: var(--primary-100); box-shadow: var(--shadow-sm); }
.faq-q { width: 100%; text-align: left; background: none; border: 0; padding: 20px 22px; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-family: var(--font-head); font-weight: 700; font-size: 1rem; color: var(--text); }
.faq-q i { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--primary-50); color: var(--primary); font-size: .8rem; transition: transform .25s var(--ease); flex: none; }
.faq-item.open .faq-q i { transform: rotate(45deg); background: var(--primary); color: #fff; }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s var(--ease); }
.faq-a > div { overflow: hidden; }
.faq-a p { padding: 0 22px 20px; margin: 0; color: var(--muted); }
.faq-item.open .faq-a { grid-template-rows: 1fr; }

/* CTA */
.cta-band { border-radius: 30px; padding: 56px; background: var(--grad-brand); color: #fff; display: flex; justify-content: space-between; align-items: center; gap: 30px; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -60px; top: -90px; width: 320px; height: 320px; border-radius: 50%; border: 50px solid rgba(255,255,255,.1); }
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { color: rgba(255,255,255,.88); margin: 0; max-width: 560px; }
.cta-band .flex { position: relative; z-index: 1; }

/* Page hero (inner pages) */
.page-hero { padding: 64px 0 56px; background: radial-gradient(800px 360px at 90% -20%, rgba(6, 200, 224, .14), transparent 60%), linear-gradient(180deg, #F4F7FF, #fff); border-bottom: 1px solid var(--border); }
.page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); }
.crumbs { display: flex; gap: 8px; align-items: center; font-size: .82rem; color: var(--muted); margin-bottom: 16px; }
.crumbs a { color: var(--muted); } .crumbs a:hover { color: var(--primary); }
.crumbs i { font-size: .6rem; }

/* Footer (one of the few dark areas) */
.site-footer { background: var(--primary-dark); color: #B9C6EA; padding: 72px 0 0; margin-top: 0; position: relative; overflow: hidden; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--primary), var(--accent), var(--gold), var(--green), var(--red)); }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr) 1.2fr; gap: 36px; }
.site-footer h5 { color: #fff; font-family: var(--font-head); font-size: .95rem; margin-bottom: 16px; letter-spacing: 0; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a { color: #B9C6EA; font-size: .9rem; }
.site-footer a:hover { color: #fff; }
.site-footer p { color: #9FB0DD; font-size: .9rem; }
.site-footer .brand { color: #fff; }
.site-footer .brand-text small { color: #8FA2D8; }
.socials { display: flex; gap: 10px; flex-wrap: wrap; }
.socials a { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); color: #fff; transition: .2s; }
.socials a:hover { background: var(--accent); color: var(--primary-dark); transform: translateY(-2px); }
.f-contact li { display: flex; gap: 10px; font-size: .88rem; }
.f-contact i { color: #7FE3F2; margin-top: 4px; width: 16px; }
.footer-bottom { margin-top: 56px; border-top: 1px solid rgba(255,255,255,.1); padding: 22px 0; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .84rem; }
.footer-bottom .motto { font-family: var(--font-head); font-weight: 700; color: #fff; letter-spacing: .02em; }
.footer-bottom .motto span { color: var(--gold); margin: 0 6px; }

/* Demo mode chip + Explore launcher */
.demo-chip { position: fixed; left: 18px; bottom: 18px; z-index: 800; display: flex; align-items: center; gap: 8px; padding: 8px 14px 8px 10px; border-radius: 99px; background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow); font-size: .78rem; font-weight: 700; color: var(--text-2); }
.demo-chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px var(--gold-50); }
.demo-chip button { border: 0; background: var(--primary-50); color: var(--primary); font-weight: 700; font-size: .74rem; padding: 5px 10px; border-radius: 99px; }
.explore-fab { position: fixed; right: 20px; bottom: 20px; z-index: 800; display: inline-flex; align-items: center; gap: 10px; padding: 0 20px 0 8px; height: 52px; border-radius: 99px; border: 0; background: var(--primary-dark); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: .9rem; box-shadow: 0 16px 36px -12px rgba(11, 29, 85, .7); transition: .2s var(--ease); }
.explore-fab:hover { transform: translateY(-2px); }
.explore-fab .ic { width: 38px; height: 38px; border-radius: 50%; background: var(--grad-brand); display: grid; place-items: center; }
.tour-list { display: grid; gap: 10px; }
.tour-item { display: flex; gap: 14px; align-items: center; padding: 14px; border-radius: 14px; border: 1px solid var(--border); background: #fff; color: var(--text); transition: .2s; text-align: left; width: 100%; }
.tour-item:hover { border-color: var(--primary); background: var(--primary-50); color: var(--text); transform: translateX(3px); }
.tour-item .n { width: 30px; height: 30px; border-radius: 50%; background: var(--primary-dark); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: .8rem; flex: none; }
.tour-item strong { display: block; font-family: var(--font-head); font-size: .94rem; }
.tour-item span { font-size: .8rem; color: var(--muted); }
.tour-item > i { margin-left: auto; color: var(--muted-2); }
.demo-creds { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cred-card { padding: 16px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface-2); }
.cred-card .mono { display: block; font-size: .8rem; color: var(--text-2); margin: 2px 0; word-break: break-all; }

/* 8. LOGIN ---------------------------------------------------------------- */
.auth-page { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; background: #fff; }
.auth-side { background: var(--grad-navy); color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.auth-side::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 400px at 100% 0%, rgba(6, 200, 224, .3), transparent 60%); }
.auth-side > * { position: relative; }
.auth-side h2 { color: #fff; font-size: 2.3rem; max-width: 460px; }
.auth-side p { color: #BFCDF3; max-width: 440px; }
.auth-side .brand { color: #fff; }
.auth-side .brand-text small { color: #9FB3EE; }
.auth-points { display: grid; gap: 14px; margin-top: 28px; }
.auth-points div { display: flex; gap: 12px; align-items: center; font-size: .92rem; color: #DCE6FF; }
.auth-points i { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.08); color: #7FE3F2; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 48px 24px; }
.auth-box { width: 100%; max-width: 440px; }
.auth-box h1 { font-size: 2rem; margin-bottom: 6px; }
.role-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; background: #EEF2F9; border-radius: 14px; margin: 24px 0; }
.role-switch button { border: 0; background: transparent; padding: 11px; border-radius: 10px; font-weight: 700; color: var(--muted); display: flex; gap: 8px; align-items: center; justify-content: center; font-family: var(--font-head); }
.role-switch button.active { background: #fff; color: var(--primary); box-shadow: var(--shadow-xs); }
.demo-login { margin-top: 26px; padding: 18px; border-radius: 16px; border: 1px dashed var(--border-strong); background: var(--surface-2); }
.demo-login h5 { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; display: flex; align-items: center; gap: 8px; font-family: var(--font-body); }
.demo-acc { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; }
.demo-acc + .demo-acc { border-top: 1px solid var(--border); }
.demo-acc strong { display: block; font-size: .9rem; }
.demo-acc span { font-size: .78rem; color: var(--muted); font-family: ui-monospace, Menlo, Consolas, monospace; }

/* 9. APPLICATION WIZARD -------------------------------------------------- */
.wizard-wrap { display: grid; grid-template-columns: 300px 1fr; gap: 32px; align-items: start; }
.wizard-steps { position: sticky; top: calc(var(--header-h) + 24px); padding: 24px; border-radius: 22px; background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow-xs); }
.wizard-steps ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; position: relative; }
.wstep { display: flex; gap: 14px; align-items: center; padding: 10px 8px; border-radius: 12px; position: relative; }
.wstep .dot { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--border-strong); color: var(--muted); font-weight: 800; font-size: .85rem; background: #fff; flex: none; transition: .3s var(--ease); font-family: var(--font-head); }
.wstep strong { display: block; font-size: .92rem; font-family: var(--font-head); color: var(--muted); }
.wstep small { font-size: .76rem; color: var(--muted-2); }
.wstep.active { background: var(--primary-50); }
.wstep.active .dot { border-color: var(--primary); background: var(--primary); color: #fff; box-shadow: 0 0 0 5px rgba(24, 70, 214, .15); }
.wstep.active strong { color: var(--primary-dark); }
.wstep.done .dot { border-color: var(--success); background: var(--success); color: #fff; }
.wstep.done strong { color: var(--text); }
.wizard-progress { margin-top: 18px; }
.wizard-card { background: #fff; border: 1px solid var(--border); border-radius: 24px; box-shadow: var(--shadow-sm); overflow: hidden; }
.wizard-head { padding: 26px 30px 20px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.wizard-head h2 { font-size: 1.45rem; margin: 0 0 4px; }
.wizard-head p { margin: 0; color: var(--muted); font-size: .92rem; }
.wizard-body { padding: 28px 30px; }
.wizard-foot { padding: 18px 30px; border-top: 1px solid var(--border); background: var(--surface-2); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.wpanel { display: none; animation: panelIn .35s var(--ease); }
.wpanel.active { display: block; }
@keyframes panelIn { from { opacity: 0; transform: translateX(14px); } }
.form-section-title { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 700; margin: 6px 0 14px; display: flex; align-items: center; gap: 10px; }
.form-section-title::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.option-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.option-card { position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: 14px; border: 1.5px solid var(--border); background: #fff; cursor: pointer; transition: .18s; }
.option-card:hover { border-color: var(--primary-100); background: var(--surface-2); }
.option-card input { position: absolute; opacity: 0; pointer-events: none; }
.option-card .oc-radio { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--border-strong); flex: none; margin-top: 2px; transition: .15s; }
.option-card strong { display: block; font-size: .93rem; font-family: var(--font-head); }
.option-card small { color: var(--muted); font-size: .8rem; }
.option-card.selected, .option-card:has(input:checked) { border-color: var(--primary); background: var(--primary-50); box-shadow: 0 0 0 3px rgba(24, 70, 214, .08); }
.option-card.selected .oc-radio, .option-card:has(input:checked) .oc-radio { border-color: var(--primary); border-width: 6px; }
.option-card:has(input:focus-visible) { box-shadow: var(--ring); }
.prog-select { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; max-height: 420px; overflow-y: auto; padding: 2px; }
.prog-option { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--border); background: #fff; cursor: pointer; text-align: left; transition: .15s; width: 100%; }
.prog-option:hover { border-color: var(--primary-100); }
.prog-option.selected { border-color: var(--primary); background: var(--primary-50); }
.prog-option .icon-tile { width: 40px; height: 40px; border-radius: 12px; background: var(--pc); color: #fff; font-size: .95rem; }
.prog-option strong { display: block; font-size: .88rem; line-height: 1.3; font-family: var(--font-head); color: var(--text); }
.prog-option small { color: var(--muted); font-size: .76rem; }
.prog-option .po-fee { margin-left: auto; font-family: var(--font-head); font-weight: 800; color: var(--primary-dark); font-size: .92rem; white-space: nowrap; }
.prog-option.disabled { opacity: .5; pointer-events: none; }

/* Fee summary */
.fee-box { border-radius: 18px; border: 1px solid var(--border); overflow: hidden; background: #fff; }
.fee-box .fee-head { padding: 16px 20px; background: var(--surface-2); border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.fee-row { display: flex; justify-content: space-between; gap: 16px; padding: 12px 20px; font-size: .94rem; }
.fee-row span:first-child { color: var(--text-2); }
.fee-row .neg { color: var(--success); font-weight: 700; }
.fee-row.total { border-top: 1px dashed var(--border-strong); padding: 16px 20px; margin-top: 4px; font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; background: linear-gradient(90deg, var(--primary-50), transparent); }
.fee-row.total span:last-child { color: var(--primary-dark); font-size: 1.45rem; letter-spacing: -.02em; }
.discount-card { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: 14px; border: 1.5px solid var(--border); background: #fff; position: relative; }
.discount-card.eligible { border-color: rgba(18, 161, 80, .35); background: linear-gradient(135deg, #F3FCF6, #fff); }
.discount-card.applied { border-color: var(--success); box-shadow: 0 0 0 3px rgba(18, 161, 80, .08); }
.discount-card.ineligible { opacity: .7; }
.discount-card .pct-pill { font-family: var(--font-head); font-weight: 800; font-size: 1.1rem; min-width: 64px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--primary-50); color: var(--primary); flex: none; }
.discount-card.eligible .pct-pill { background: var(--success-50); color: var(--success); }
.discount-card h4 { font-size: .97rem; margin: 0 0 3px; }
.discount-card p { font-size: .82rem; margin: 0; color: var(--muted); }
.discount-card .badge { margin-top: 8px; }
.review-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.review-grid div { padding: 12px 16px; border-bottom: 1px solid var(--border); }
.review-grid div:nth-child(odd) { border-right: 1px solid var(--border); }
.review-grid small { display: block; color: var(--muted); font-size: .74rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.review-grid strong { font-size: .92rem; word-break: break-word; }
.pw-meter { display: flex; gap: 4px; margin-top: 6px; }
.pw-meter span { flex: 1; height: 4px; border-radius: 4px; background: var(--border); transition: .2s; }

/* 10. PAYMENT (Zainpay checkout simulation) ------------------------------ */
.pay-wrap { display: grid; grid-template-columns: 1fr 440px; gap: 32px; align-items: start; }
.checkout { background: #fff; border-radius: 24px; border: 1px solid var(--border); box-shadow: var(--shadow); overflow: hidden; }
.checkout-head { padding: 20px 24px; display: flex; justify-content: space-between; align-items: center; background: linear-gradient(135deg, #0B1D55, #152F85); color: #fff; }
.zp-logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 800; font-size: 1.1rem; letter-spacing: -.01em; }
.zp-logo .zp-mark { width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, #22D3EE, #1846D6); display: grid; place-items: center; font-size: .9rem; color: #fff; }
.zp-logo small { display: block; font-family: var(--font-body); font-weight: 500; font-size: .7rem; color: #A9B9E6; }
.checkout-head .amt { text-align: right; }
.checkout-head .amt small { display: block; font-size: .72rem; color: #A9B9E6; }
.checkout-head .amt strong { font-family: var(--font-head); font-size: 1.35rem; }
.pay-methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 18px 24px 0; }
.pay-method { border: 1.5px solid var(--border); border-radius: 14px; padding: 12px 8px; background: #fff; display: flex; flex-direction: column; align-items: center; gap: 6px; font-weight: 700; font-size: .82rem; color: var(--text-2); transition: .15s; }
.pay-method i { font-size: 1.1rem; color: var(--muted); }
.pay-method:hover { border-color: var(--primary-100); }
.pay-method.active { border-color: var(--primary); background: var(--primary-50); color: var(--primary); }
.pay-method.active i { color: var(--primary); }
.pay-panel { padding: 22px 24px; display: none; }
.pay-panel.active { display: block; animation: panelIn .3s var(--ease); }
.card-visual { height: 170px; border-radius: 18px; padding: 20px; color: #fff; background: linear-gradient(135deg, #1846D6, #0EA5E9 70%, #06C8E0); position: relative; overflow: hidden; margin-bottom: 18px; box-shadow: 0 18px 30px -16px rgba(24, 70, 214, .8); }
.card-visual::after { content: ""; position: absolute; right: -40px; top: -40px; width: 180px; height: 180px; border-radius: 50%; background: rgba(255,255,255,.12); }
.card-visual .chip-ic { width: 40px; height: 30px; border-radius: 6px; background: linear-gradient(135deg, #F5D06F, #D8A93A); }
.card-visual .cv-num { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 1.15rem; letter-spacing: .12em; margin-top: 26px; }
.card-visual .cv-row { display: flex; justify-content: space-between; margin-top: 14px; font-size: .78rem; text-transform: uppercase; opacity: .92; }
.bank-box { border: 1px solid var(--border); border-radius: 16px; padding: 18px; background: var(--surface-2); }
.bank-box .row { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; font-size: .9rem; gap: 12px; }
.bank-box .row + .row { border-top: 1px dashed var(--border); }
.bank-box .row strong { font-family: var(--font-head); }
.copy-btn { border: 0; background: var(--primary-50); color: var(--primary); border-radius: 8px; padding: 4px 10px; font-size: .76rem; font-weight: 700; margin-left: 8px; }
.pay-secure { display: flex; gap: 10px; align-items: center; justify-content: center; font-size: .78rem; color: var(--muted); padding: 14px; border-top: 1px solid var(--border); background: var(--surface-2); flex-wrap: wrap; }
.pay-secure i { color: var(--success); }
.order-summary { position: sticky; top: calc(var(--header-h) + 24px); }
.sandbox-box { margin-top: 16px; padding: 14px 16px; border-radius: 14px; border: 1px dashed #E7B84A; background: #FFFBEF; font-size: .84rem; }
.sandbox-box strong { color: #8a5a00; display: flex; gap: 8px; align-items: center; margin-bottom: 8px; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }

/* Processing overlay */
.processing { text-align: center; padding: 34px 26px 28px; }
.proc-ring { width: 96px; height: 96px; margin: 0 auto 22px; position: relative; }
.proc-ring svg { width: 96px; height: 96px; transform: rotate(-90deg); }
.proc-ring circle { fill: none; stroke-width: 6; }
.proc-ring .bg { stroke: var(--primary-50); }
.proc-ring .fg { stroke: url(#procGrad); stroke-linecap: round; stroke-dasharray: 276; stroke-dashoffset: 276; transition: stroke-dashoffset .5s var(--ease); }
.proc-ring .ic { position: absolute; inset: 0; display: grid; place-items: center; font-size: 1.6rem; color: var(--primary); }
.proc-steps { text-align: left; display: grid; gap: 10px; margin-top: 22px; }
.proc-step { display: flex; gap: 12px; align-items: center; font-size: .9rem; color: var(--muted-2); transition: .3s; }
.proc-step i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: .65rem; border: 1.5px solid var(--border-strong); flex: none; }
.proc-step.active { color: var(--text); font-weight: 600; }
.proc-step.active i { border-color: var(--primary); color: var(--primary); }
.proc-step.done { color: var(--text-2); }
.proc-step.done i { background: var(--success); border-color: var(--success); color: #fff; }

/* Success check animation */
.success-mark { width: 104px; height: 104px; margin: 0 auto 22px; border-radius: 50%; background: var(--success-50); display: grid; place-items: center; position: relative; animation: popIn .5s var(--ease); }
.success-mark::before { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 2px solid rgba(18, 161, 80, .2); animation: ringOut 1.6s var(--ease) infinite; }
.success-mark svg { width: 56px; height: 56px; }
.success-mark path { stroke: var(--success); stroke-width: 5; fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw .6s .25s var(--ease) forwards; }
.success-mark.fail { background: var(--danger-50); } .success-mark.fail path { stroke: var(--danger); } .success-mark.fail::before { border-color: rgba(220, 47, 69, .2); }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes popIn { from { transform: scale(.6); opacity: 0; } }
@keyframes ringOut { 0% { transform: scale(.9); opacity: 1; } 100% { transform: scale(1.25); opacity: 0; } }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 1200; overflow: hidden; }
.confetti i { position: absolute; top: -12px; width: 9px; height: 14px; border-radius: 2px; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(110vh) rotate(720deg); } }

/* Success page */
.success-card { max-width: 860px; margin: 0 auto; background: #fff; border: 1px solid var(--border); border-radius: 28px; box-shadow: var(--shadow); overflow: hidden; }
.success-top { text-align: center; padding: 44px 32px 30px; background: radial-gradient(600px 240px at 50% 0%, rgba(18, 161, 80, .09), transparent 70%); }
.success-top h1 { font-size: clamp(1.5rem, 3vw, 2.1rem); letter-spacing: -.02em; }
.app-no { display: inline-flex; gap: 12px; align-items: center; padding: 12px 20px; border-radius: 16px; background: var(--primary-50); border: 1px dashed rgba(24, 70, 214, .35); margin-top: 8px; }
.app-no small { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.app-no strong { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 1.15rem; color: var(--primary-dark); }
.success-details { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--border); }
.success-details div { padding: 18px 22px; border-bottom: 1px solid var(--border); }
.success-details div:not(:nth-child(3n)) { border-right: 1px solid var(--border); }
.success-details small { display: block; color: var(--muted); font-size: .74rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
.success-details strong { font-size: .95rem; word-break: break-word; }
.success-actions { padding: 24px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; background: var(--surface-2); }
.next-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 860px; margin: 28px auto 0; }

/* Receipt (also printable) */
.receipt { font-size: .9rem; }
.receipt-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding-bottom: 18px; border-bottom: 2px solid var(--primary-dark); margin-bottom: 18px; }
.receipt-head h3 { margin: 0; font-size: 1.05rem; }
.receipt-head p { margin: 0; font-size: .78rem; color: var(--muted); }
.receipt table { width: 100%; border-collapse: collapse; }
.receipt td { padding: 9px 0; border-bottom: 1px dashed var(--border); }
.receipt td:last-child { text-align: right; font-weight: 600; }
.receipt .r-total td { font-family: var(--font-head); font-weight: 800; font-size: 1.1rem; border-bottom: 0; padding-top: 14px; }
.receipt .stamp { display: inline-block; margin-top: 16px; padding: 6px 14px; border: 2px solid var(--success); color: var(--success); border-radius: 8px; font-weight: 800; letter-spacing: .14em; transform: rotate(-4deg); font-size: .85rem; }

/* 11. CERTIFICATE -------------------------------------------------------- */
.certificate {
    position: relative; aspect-ratio: 1.414 / 1; width: 100%; max-width: 900px; margin: 0 auto;
    background: #fff; border-radius: 10px; box-shadow: var(--shadow-lg); overflow: hidden; padding: 4.5%;
    background-image: radial-gradient(circle at 0 0, rgba(24,70,214,.07), transparent 40%), radial-gradient(circle at 100% 100%, rgba(6,200,224,.08), transparent 40%);
}
.certificate::before { content: ""; position: absolute; inset: 14px; border: 2px solid var(--primary-dark); border-radius: 6px; pointer-events: none; }
.certificate::after { content: ""; position: absolute; inset: 20px; border: 1px solid var(--gold); border-radius: 4px; pointer-events: none; }
.cert-inner { position: relative; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: space-between; text-align: center; }
.cert-inner .cert-logo { margin-bottom: 2px; }
.cert-org { font-family: var(--font-head); font-weight: 800; letter-spacing: .14em; color: var(--primary-dark); font-size: clamp(.7rem, 1.6vw, 1rem); text-transform: uppercase; }
.cert-title { font-family: var(--font-head); font-weight: 800; letter-spacing: .22em; font-size: clamp(1rem, 3vw, 1.9rem); color: var(--primary-dark); margin: 0; }
.cert-sub { font-size: clamp(.65rem, 1.3vw, .88rem); color: var(--muted); margin: 0; }
.cert-name { font-family: "Plus Jakarta Sans", serif; font-weight: 800; font-size: clamp(1.4rem, 4.6vw, 3rem); letter-spacing: -.02em; background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1.1; padding-bottom: 6px; border-bottom: 2px solid var(--gold); }
.cert-prog { font-family: var(--font-head); font-weight: 700; font-size: clamp(.85rem, 2vw, 1.25rem); color: var(--text); margin: 0; }
.cert-foot { width: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 12px; font-size: clamp(.55rem, 1.1vw, .78rem); color: var(--muted); }
.cert-foot .sig { border-top: 1px solid var(--text-2); padding-top: 6px; }
.cert-foot .sig b { display: block; color: var(--text); font-size: 1.05em; }
.cert-seal { width: clamp(56px, 10vw, 92px); height: clamp(56px, 10vw, 92px); border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle, #FFD65A, #E0A100); color: var(--primary-dark); font-weight: 800; font-size: clamp(.5rem, 1vw, .7rem); letter-spacing: .08em; box-shadow: 0 0 0 4px #fff, 0 0 0 6px #E0A100; line-height: 1.2; }
.cert-meta { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; font-size: clamp(.55rem, 1.1vw, .78rem); color: var(--muted); }
.cert-meta b { color: var(--text); font-family: ui-monospace, Menlo, Consolas, monospace; }
.certificate.locked .cert-inner { filter: blur(0); }
.cert-lock { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(255,255,255,.72); backdrop-filter: blur(3px); z-index: 3; text-align: center; padding: 24px; }
.cert-watermark { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-head); font-weight: 800; font-size: clamp(2rem, 10vw, 7rem); color: rgba(24, 70, 214, .06); transform: rotate(-18deg); pointer-events: none; letter-spacing: .1em; }

/* Contact */
.contact-card { display: flex; gap: 16px; padding: 22px; border-radius: 18px; background: #fff; border: 1px solid var(--border); }
.contact-card h4 { margin: 0 0 4px; }
.contact-card p, .contact-card a { margin: 0; font-size: .92rem; }
.map-ph { border-radius: 22px; overflow: hidden; border: 1px solid var(--border); min-height: 340px; position: relative; background: linear-gradient(135deg, #EAF1FF, #E6FBFE); background-image: linear-gradient(rgba(24, 70, 214, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(24, 70, 214, .07) 1px, transparent 1px), linear-gradient(135deg, #EEF3FF, #E9FBFE); background-size: 32px 32px, 32px 32px, auto; }
.map-ph .road { position: absolute; background: #fff; box-shadow: 0 0 0 1px rgba(24,70,214,.08); }
.map-ph .road.r1 { left: -10%; right: -10%; top: 55%; height: 18px; transform: rotate(-12deg); }
.map-ph .road.r2 { top: -10%; bottom: -10%; left: 38%; width: 12px; transform: rotate(18deg); }
.map-pin { position: absolute; left: 50%; top: 46%; transform: translate(-50%, -100%); text-align: center; }
.map-pin i { font-size: 2.6rem; color: var(--red); filter: drop-shadow(0 8px 10px rgba(229, 48, 75, .35)); animation: bob 3s ease-in-out infinite; }
.map-pin .lbl { background: #fff; padding: 10px 14px; border-radius: 12px; box-shadow: var(--shadow); font-size: .82rem; font-weight: 600; white-space: nowrap; margin-top: 6px; }

/* News */
.news-card { display: flex; flex-direction: column; border-radius: 20px; overflow: hidden; border: 1px solid var(--border); background: #fff; }
.news-thumb { height: 150px; display: grid; place-items: center; font-size: 2.4rem; color: #fff; position: relative; overflow: hidden; }
.news-thumb::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.18) 1px, transparent 1px); background-size: 16px 16px; }
.news-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.news-body h3 { font-size: 1.05rem; margin: 8px 0; line-height: 1.35; }
.news-body p { font-size: .88rem; color: var(--muted); flex: 1; }
.news-meta { font-size: .76rem; color: var(--muted); display: flex; gap: 12px; }

/* Verify */
.verify-box { max-width: 640px; margin: 0 auto; }
.verify-result { margin-top: 22px; }

/* Print */
@media print {
    body { background: #fff !important; }
    .site-header, .site-footer, .announce-bar, .demo-chip, .explore-fab, .no-print, .toast-wrap, .sidebar, .topbar, .bottom-nav { display: none !important; }
    .print-only { display: block !important; }
    .modal-backdrop { position: static; background: none; backdrop-filter: none; padding: 0; }
    .modal { box-shadow: none; max-height: none; }
    .modal-foot, .modal-close { display: none; }
    .certificate { box-shadow: none; }
}
.print-only { display: none; }
