/* ==========================================================================
   AGATHISHA — AGS DESIGN SYSTEM  (v1.0)
   Presentation layer only. No application logic depends on this file.
   Load AFTER Tailwind so component classes can co-exist with utilities.
   ========================================================================== */

:root {
    /* Brand */
    --ags-teal:        #0EA5A0;
    --ags-teal-600:    #0B8C88;
    --ags-teal-50:     #E7F7F6;
    --ags-navy:        #0B2C4D;
    --ags-navy-700:    #123A63;
    --ags-violet:      #7C5CFF;
    --ags-violet-50:   #F0EDFF;
    --ags-cyan:        #22D3EE;
    --ags-amber:       #F5A524;
    --ags-rose:        #F43F5E;
    --ags-emerald:     #10B981;

    /* Neutrals */
    --ags-ink:         #0C1B2A;
    --ags-body:        #46586E;
    --ags-muted:       #7C8DA4;
    --ags-line:        #E8EEF5;
    --ags-line-soft:   #F1F5F9;
    --ags-surface:     #FFFFFF;
    --ags-canvas:      #F6F8FC;

    /* Signature gradients */
    --ags-grad-brand:  linear-gradient(120deg, #0EA5A0 0%, #23A9D8 48%, #7C5CFF 100%);
    --ags-grad-soft:   linear-gradient(120deg, #E7F7F6 0%, #EAF3FE 50%, #F0EDFF 100%);
    --ags-grad-navy:   linear-gradient(135deg, #0B2C4D 0%, #123A63 55%, #0E6E8C 100%);
    /* Deep navy → indigo → violet. Shared by the footer card and the admin
       console's dark surfaces so both portals use one dark register. */
    --ags-grad-deep:   linear-gradient(115deg, #0B2C4D 0%, #17356B 46%, #3B2E7E 78%, #4B357F 100%);
    --ags-grad-deep-sm: linear-gradient(115deg, #0B2C4D 0%, #2A3A76 60%, #4B357F 100%);

    /* Elevation */
    --ags-sh-xs: 0 1px 2px rgba(12, 27, 42, .05);
    --ags-sh-sm: 0 1px 2px rgba(12, 27, 42, .04), 0 6px 16px -10px rgba(12, 27, 42, .18);
    --ags-sh-md: 0 1px 2px rgba(12, 27, 42, .04), 0 14px 32px -18px rgba(12, 27, 42, .28);
    --ags-sh-lg: 0 2px 4px rgba(12, 27, 42, .04), 0 28px 56px -28px rgba(12, 27, 42, .32);
    --ags-sh-brand: 0 12px 28px -12px rgba(14, 165, 160, .55);

    /* Radii */
    --ags-r-sm: 10px;
    --ags-r-md: 14px;
    --ags-r-lg: 20px;
    --ags-r-xl: 26px;
}

/* --------------------------------------------------------------------------
   1. Typography foundation
   -------------------------------------------------------------------------- */

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

body {
    font-family: 'Inter', system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 15px;
    line-height: 1.65;
    letter-spacing: -0.005em;
    color: var(--ags-body);
    background: var(--ags-canvas);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: "cv02", "cv03", "cv04", "ss01";
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
    color: var(--ags-ink);
    font-weight: 700;
    letter-spacing: -0.022em;
    line-height: 1.18;
    text-transform: none;
}

.ags-display {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    letter-spacing: -0.032em;
    line-height: 1.06;
    color: var(--ags-ink);
}

/* Gradient headline word */
.ags-grad-text {
    background: var(--ags-grad-brand);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

/* Small caps label above a heading — used sparingly */
.ags-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: var(--ags-teal-600);
}
.ags-eyebrow.is-light { color: rgba(255, 255, 255, .75); }
.ags-eyebrow .dot {
    width: 6px; height: 6px; border-radius: 99px;
    background: var(--ags-teal);
    box-shadow: 0 0 0 3px rgba(14, 165, 160, .18);
}

.ags-lead   { font-size: 16px; line-height: 1.7; color: var(--ags-body); }
.ags-meta   { font-size: 12.5px; color: var(--ags-muted); letter-spacing: 0; }
.ags-mono   { font-variant-numeric: tabular-nums; letter-spacing: .01em; }

/* --------------------------------------------------------------------------
   2. Surfaces
   -------------------------------------------------------------------------- */

.ags-card {
    background: var(--ags-surface);
    border: 1px solid var(--ags-line);
    border-radius: var(--ags-r-lg);
    box-shadow: var(--ags-sh-sm);
    transition: box-shadow .35s cubic-bezier(.2,.7,.3,1), transform .35s cubic-bezier(.2,.7,.3,1), border-color .35s;
}
.ags-card-hover:hover {
    box-shadow: var(--ags-sh-md);
    transform: translateY(-3px);
    border-color: #DCE6F2;
}
.ags-card-pad { padding: 1.5rem; }

.ags-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.15rem 1.5rem;
    border-bottom: 1px solid var(--ags-line-soft);
}

/* Hairline gradient rule on top of a card */
.ags-card-accent { position: relative; overflow: hidden; }
.ags-card-accent::before {
    content: '';
    position: absolute; inset: 0 0 auto 0; height: 3px;
    background: var(--ags-grad-brand);
    opacity: .9;
}

/* Frosted glass tile — for use over dark or gradient backgrounds */
.ags-glass {
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: var(--ags-r-lg);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

/* --------------------------------------------------------------------------
   3. Hero / page banner
   -------------------------------------------------------------------------- */

.ags-hero {
    position: relative;
    overflow: hidden;
    background: var(--ags-grad-navy);
    color: #fff;
}
.ags-hero::after {
    content: '';
    position: absolute; inset: 0;
    background:
        radial-gradient(620px 320px at 88% -10%, rgba(34, 211, 238, .30), transparent 70%),
        radial-gradient(520px 320px at 8% 120%, rgba(124, 92, 255, .28), transparent 70%);
    pointer-events: none;
}
.ags-hero > * { position: relative; z-index: 2; }
.ags-hero h1, .ags-hero h2, .ags-hero h3 { color: #fff; }

.ags-hero-light {
    position: relative;
    overflow: hidden;
    background: var(--ags-grad-soft);
    border-bottom: 1px solid var(--ags-line);
}
.ags-hero-light::after {
    content: '';
    position: absolute; inset: 0;
    background:
        radial-gradient(600px 300px at 85% 0%, rgba(14, 165, 160, .16), transparent 70%),
        radial-gradient(520px 280px at 5% 100%, rgba(124, 92, 255, .14), transparent 70%);
    pointer-events: none;
}
.ags-hero-light > * { position: relative; z-index: 2; }

/* Decorative molecular grid overlay */
.ags-dots::before {
    content: '';
    position: absolute; inset: 0;
    background-image: radial-gradient(rgba(255,255,255,.16) 1px, transparent 1px);
    background-size: 22px 22px;
    mask-image: linear-gradient(to bottom, black, transparent 75%);
    -webkit-mask-image: linear-gradient(to bottom, black, transparent 75%);
    pointer-events: none;
}

/* --------------------------------------------------------------------------
   3b. Stemcell visual (decorative hero artwork — see includes/partials/stemcell-visual.php)
   -------------------------------------------------------------------------- */

.ags-bio {
    position: absolute;
    top: -40px;
    bottom: -40px;
    right: -40px;
    width: 560px;
    z-index: 1;
    pointer-events: none;
    opacity: .95;
    /* fades the artwork into the hero on the side nearest the copy */
    mask-image: linear-gradient(100deg, transparent 0%, rgba(0,0,0,.45) 22%, #000 55%);
    -webkit-mask-image: linear-gradient(100deg, transparent 0%, rgba(0,0,0,.45) 22%, #000 55%);
}
.ags-bio svg { width: 100%; height: 100%; overflow: visible; }

/* Marching strand — one full 300px period, so the loop is seamless */
@keyframes ags-helix-march { from { transform: translate(258px, -8px) rotate(14deg); } to { transform: translate(258px, -308px) rotate(14deg); } }
.ags-bio-helix { animation: ags-helix-march 9s linear infinite; }

/* Rungs breathe to suggest the helix turning toward the viewer */
@keyframes ags-rung-turn { 0%, 100% { opacity: .9; } 50% { opacity: .45; } }
.ags-bio-rungs { animation: ags-rung-turn 3.2s ease-in-out infinite; }

/* Colonies drift and pulse at different rates so the field never looks locked */
@keyframes ags-cell-drift-a { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-10px, -18px) scale(1.035); } }
@keyframes ags-cell-drift-b { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(14px, 16px) scale(1.05); } }
@keyframes ags-cell-drift-c { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-16px, 12px) scale(.95); } }

.ags-bio-cell { transform-box: fill-box; transform-origin: center; will-change: transform; }
.ags-bio-cell-1 { animation: ags-cell-drift-a 13s ease-in-out infinite; }
.ags-bio-cell-2 { animation: ags-cell-drift-b 16s ease-in-out infinite; }
.ags-bio-cell-3 { animation: ags-cell-drift-c 11s ease-in-out infinite; }
.ags-bio-cell-4 { animation: ags-cell-drift-b 14s ease-in-out infinite reverse; }
.ags-bio-cell-5 { animation: ags-cell-drift-a 10s ease-in-out infinite reverse; }

/* Free-floating motes */
@keyframes ags-mote { 0% { transform: translate(0, 0); opacity: .15; } 35% { opacity: .8; } 100% { transform: translate(18px, -60px); opacity: 0; } }
.ags-bio-motes circle { transform-box: fill-box; animation: ags-mote 7s ease-in-out infinite; }
.ags-bio-motes .m1 { animation-duration: 7.5s; animation-delay: 0s; }
.ags-bio-motes .m2 { animation-duration: 9s;   animation-delay: 1.2s; }
.ags-bio-motes .m3 { animation-duration: 6.5s; animation-delay: 2.4s; }
.ags-bio-motes .m4 { animation-duration: 8.5s; animation-delay: .6s; }
.ags-bio-motes .m5 { animation-duration: 7s;   animation-delay: 3.1s; }
.ags-bio-motes .m6 { animation-duration: 9.5s; animation-delay: 1.8s; }
.ags-bio-motes .m7 { animation-duration: 8s;   animation-delay: 4s; }
.ags-bio-motes .m8 { animation-duration: 6.8s; animation-delay: 2.9s; }

@media (max-width: 1279px) {
    .ags-bio { width: 440px; right: -110px; opacity: .6; }
}
@media (max-width: 1023px) {
    .ags-bio { display: none; }
}

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */

.ags-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1;
    padding: .78rem 1.35rem;
    border-radius: var(--ags-r-md);
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: transform .25s cubic-bezier(.2,.7,.3,1), box-shadow .25s, background-color .25s, color .25s, border-color .25s;
}
.ags-btn:active { transform: translateY(1px) scale(.99); }
.ags-btn i { font-size: 1.05em; }

.ags-btn-primary {
    background: var(--ags-grad-brand);
    background-size: 160% 100%;
    color: #fff;
    box-shadow: var(--ags-sh-brand);
}
.ags-btn-primary:hover { background-position: 100% 0; color: #fff; transform: translateY(-2px); box-shadow: 0 18px 34px -14px rgba(14,165,160,.65); }

.ags-btn-navy { background: var(--ags-navy); color: #fff; box-shadow: var(--ags-sh-sm); }
.ags-btn-navy:hover { background: var(--ags-navy-700); color: #fff; transform: translateY(-2px); }

.ags-btn-ghost {
    background: #fff;
    color: var(--ags-ink);
    border-color: var(--ags-line);
    box-shadow: var(--ags-sh-xs);
}
.ags-btn-ghost:hover { border-color: var(--ags-teal); color: var(--ags-teal-600); transform: translateY(-2px); }

.ags-btn-soft { background: var(--ags-teal-50); color: var(--ags-teal-600); }
.ags-btn-soft:hover { background: var(--ags-teal); color: #fff; }

.ags-btn-glass { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.22); color: #fff; }
.ags-btn-glass:hover { background: rgba(255,255,255,.2); color: #fff; }

.ags-btn-sm { padding: .55rem 1rem; font-size: 12.5px; border-radius: var(--ags-r-sm); }
.ags-btn-lg { padding: 1rem 1.9rem; font-size: 15px; border-radius: var(--ags-r-lg); }
.ags-btn-block { width: 100%; }

/* Text link with sliding arrow */
.ags-link {
    display: inline-flex; align-items: center; gap: .4rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 13px; font-weight: 600; color: var(--ags-teal-600);
    text-decoration: none;
}
.ags-link i { transition: transform .3s; }
.ags-link:hover i { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   5. Badges & pills
   -------------------------------------------------------------------------- */

.ags-badge {
    display: inline-flex;
    align-items: center;
    gap: .38rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .01em;
    line-height: 1;
    padding: .42rem .7rem;
    border-radius: 999px;
    border: 1px solid transparent;
}
.ags-badge::before {
    content: '';
    width: 5px; height: 5px; border-radius: 999px;
    background: currentColor;
    opacity: .85;
}
.ags-badge-plain::before { display: none; }

.ags-badge-success { background: #E9F9F1; color: #067A57; border-color: #C9F0E0; }
.ags-badge-warn    { background: #FEF6E7; color: #A9700A; border-color: #FAE7C3; }
.ags-badge-danger  { background: #FEECEF; color: #B4223A; border-color: #FBD3DA; }
.ags-badge-info    { background: #EAF3FE; color: #1B5FA8; border-color: #D3E5FB; }
.ags-badge-brand   { background: var(--ags-teal-50); color: var(--ags-teal-600); border-color: #C9EDEB; }
.ags-badge-violet  { background: var(--ags-violet-50); color: #5A3FD6; border-color: #DCD5FF; }
.ags-badge-neutral { background: #F4F7FB; color: #5A6B80; border-color: var(--ags-line); }

.ags-chip {
    display: inline-flex; align-items: center; gap: .4rem;
    padding: .3rem .6rem; border-radius: 8px;
    background: #F4F7FB; border: 1px solid var(--ags-line);
    font-size: 11.5px; font-weight: 600; color: #5A6B80;
    font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------------------------
   6. Stat tiles
   -------------------------------------------------------------------------- */

.ags-stat {
    position: relative;
    overflow: hidden;
    background: var(--ags-surface);
    border: 1px solid var(--ags-line);
    border-radius: var(--ags-r-lg);
    padding: 1.35rem 1.4rem;
    box-shadow: var(--ags-sh-sm);
    transition: transform .35s cubic-bezier(.2,.7,.3,1), box-shadow .35s, border-color .35s;
}
.ags-stat:hover { transform: translateY(-3px); box-shadow: var(--ags-sh-md); border-color: #DCE6F2; }
.ags-stat-label {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 12px; font-weight: 600; color: var(--ags-muted);
    letter-spacing: .02em; margin-bottom: .55rem; display: block;
}
.ags-stat-value {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 2rem; font-weight: 800; line-height: 1;
    letter-spacing: -0.03em; color: var(--ags-ink);
    font-variant-numeric: tabular-nums;
}
.ags-stat-icon {
    position: absolute; top: 1.15rem; right: 1.15rem;
    width: 42px; height: 42px; border-radius: 13px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.15rem;
    transition: transform .4s cubic-bezier(.2,.7,.3,1);
}
.ags-stat:hover .ags-stat-icon { transform: scale(1.08) rotate(-4deg); }
.ags-stat-foot { margin-top: .8rem; font-size: 12px; color: var(--ags-muted); }

.ags-i-teal   { background: var(--ags-teal-50);  color: var(--ags-teal-600); }
.ags-i-violet { background: var(--ags-violet-50); color: #5A3FD6; }
.ags-i-rose   { background: #FEECEF; color: #D63B54; }
.ags-i-amber  { background: #FEF6E7; color: #B47A0A; }
.ags-i-navy   { background: #EAF1F9; color: var(--ags-navy); }
.ags-i-emerald{ background: #E9F9F1; color: #08916A; }

/* Feature/quick-action tile */
.ags-tile {
    display: block;
    background: var(--ags-surface);
    border: 1px solid var(--ags-line);
    border-radius: var(--ags-r-lg);
    padding: 1.25rem;
    text-decoration: none;
    box-shadow: var(--ags-sh-xs);
    transition: transform .35s cubic-bezier(.2,.7,.3,1), box-shadow .35s, border-color .35s;
}
.ags-tile:hover { transform: translateY(-3px); box-shadow: var(--ags-sh-md); border-color: #D6E6F2; }
.ags-tile-icon {
    width: 44px; height: 44px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; margin-bottom: .9rem;
}
.ags-tile-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14.5px; font-weight: 700; color: var(--ags-ink); letter-spacing: -0.015em;
}
.ags-tile-sub { font-size: 12.5px; color: var(--ags-muted); margin-top: .18rem; }

/* --------------------------------------------------------------------------
   7. Tables
   -------------------------------------------------------------------------- */

.ags-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.ags-table thead th {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--ags-muted);
    background: #FAFCFE;
    text-align: left;
    padding: .85rem 1.5rem;
    border-bottom: 1px solid var(--ags-line);
    white-space: nowrap;
}
.ags-table tbody td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--ags-line-soft);
    font-size: 13.5px;
    color: var(--ags-body);
    vertical-align: middle;
}
.ags-table tbody tr { transition: background-color .2s; }
.ags-table tbody tr:hover { background: #FAFCFE; }
.ags-table tbody tr:last-child td { border-bottom: 0; }
.ags-td-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14px; font-weight: 650; color: var(--ags-ink); letter-spacing: -0.015em;
    display: block; line-height: 1.35;
}
.ags-td-sub { font-size: 11.5px; color: var(--ags-muted); margin-top: .15rem; letter-spacing: .02em; }

/* Empty state */
.ags-empty { text-align: center; padding: 4rem 1.5rem; }
.ags-empty-icon {
    width: 76px; height: 76px; margin: 0 auto 1.25rem;
    border-radius: 24px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.9rem;
    background: var(--ags-grad-soft);
    color: var(--ags-teal-600);
    border: 1px solid var(--ags-line);
}
.ags-empty-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 16px; font-weight: 700; color: var(--ags-ink); margin-bottom: .35rem;
}
.ags-empty-text { font-size: 13.5px; color: var(--ags-muted); max-width: 380px; margin: 0 auto 1.5rem; }

/* --------------------------------------------------------------------------
   8. Sidebar navigation
   -------------------------------------------------------------------------- */

.ags-side {
    background: var(--ags-surface);
    border: 1px solid var(--ags-line);
    border-radius: var(--ags-r-xl);
    box-shadow: var(--ags-sh-sm);
    overflow: hidden;
}
.ags-side-head {
    position: relative;
    padding: 1.4rem 1.4rem 1.3rem;
    background: var(--ags-grad-navy);
    color: #fff;
    overflow: hidden;
}
.ags-side-head::after {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(280px 160px at 100% 0%, rgba(34,211,238,.35), transparent 70%);
}
.ags-side-head > * { position: relative; z-index: 2; }

.ags-side-body { padding: .75rem; }
.ags-side-label {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
    color: var(--ags-muted);
    padding: .85rem .85rem .5rem;
}
.ags-nav-item {
    position: relative;
    display: flex; align-items: center; gap: .8rem;
    padding: .7rem .85rem;
    border-radius: var(--ags-r-md);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 13.5px; font-weight: 600; letter-spacing: -0.01em;
    color: #55677E;
    text-decoration: none;
    transition: background-color .25s, color .25s, transform .25s;
}
.ags-nav-item i { font-size: 1.15rem; color: var(--ags-muted); transition: color .25s, transform .25s; }
.ags-nav-item:hover { background: #F4F8FC; color: var(--ags-ink); }
.ags-nav-item:hover i { color: var(--ags-teal); transform: translateX(1px); }
.ags-nav-item.is-active {
    background: var(--ags-teal-50);
    color: var(--ags-teal-600);
}
.ags-nav-item.is-active i { color: var(--ags-teal-600); }
.ags-nav-item.is-active::before {
    content: '';
    position: absolute; left: 0; top: 22%; bottom: 22%;
    width: 3px; border-radius: 0 4px 4px 0;
    background: var(--ags-grad-brand);
}
.ags-nav-count {
    margin-left: auto;
    font-size: 11px; font-weight: 700;
    background: #EEF3F9; color: #5A6B80;
    padding: .12rem .45rem; border-radius: 999px;
}

/* Horizontal scroll pills (mobile nav) */
.ags-pill {
    display: inline-flex; align-items: center; gap: .5rem;
    white-space: nowrap; flex-shrink: 0;
    padding: .62rem 1.05rem;
    border-radius: 999px;
    border: 1px solid var(--ags-line);
    background: #fff;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 12.5px; font-weight: 600; color: #55677E;
    text-decoration: none;
    box-shadow: var(--ags-sh-xs);
    transition: all .25s;
}
.ags-pill.is-active { background: var(--ags-grad-brand); color: #fff; border-color: transparent; box-shadow: var(--ags-sh-brand); }

/* --------------------------------------------------------------------------
   9. Site header
   -------------------------------------------------------------------------- */

#masthead { background: #fff; width: 100%; z-index: 1000; position: sticky; top: 0; }

.header-top-bar {
    background: var(--ags-grad-navy);
    color: rgba(255,255,255,.86);
    padding: 8px 0;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
}
.header-top-bar a { color: rgba(255,255,255,.86); }
.header-top-bar a:hover { color: #fff; }

.header-main {
    padding: 12px 0;
    border-bottom: 1px solid var(--ags-line);
    /* The masthead behind this bar is solid #fff, so the old translucent
       background and backdrop blur produced no visible effect — they only
       forced the sticky header onto its own paint layer, which smeared the
       content scrolling underneath it. Solid white renders identically. */
    background: #fff;
}
.header-container {
    display: flex; align-items: center; justify-content: space-between;
    width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 24px;
}

.main-navigation ul { display: flex; list-style: none; gap: 2rem; margin: 0; padding: 0; }
.main-navigation ul li a {
    position: relative;
    display: inline-block;
    padding: 6px 0;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: -0.01em;
    text-transform: none;
    color: #40536B;
    text-decoration: none;
    transition: color .25s;
}
.main-navigation ul li a::after {
    content: ''; position: absolute; bottom: 0; left: 0;
    width: 0; height: 2px; border-radius: 2px;
    background: var(--ags-grad-brand);
    transition: width .3s cubic-bezier(.2,.7,.3,1);
}
.main-navigation ul li a:hover::after,
.main-navigation ul li a.active::after { width: 100%; }
.main-navigation ul li a:hover,
.main-navigation ul li a.active { color: var(--ags-teal-600); }
.nav-link-active { color: var(--ags-teal-600); font-weight: 600; }

.get-started-btn {
    display: inline-flex; align-items: center; gap: .5rem;
    background: var(--ags-grad-brand);
    background-size: 160% 100%;
    color: #fff !important;
    padding: .72rem 1.3rem;
    border-radius: var(--ags-r-md);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600; font-size: 13.5px; letter-spacing: -0.01em;
    text-transform: none; text-decoration: none;
    box-shadow: var(--ags-sh-brand);
    transition: all .3s cubic-bezier(.2,.7,.3,1);
}
.get-started-btn:hover { background-position: 100% 0; transform: translateY(-2px); box-shadow: 0 18px 34px -14px rgba(14,165,160,.6); }

.ags-icon-btn {
    width: 40px; height: 40px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 12px;
    border: 1px solid var(--ags-line);
    background: #fff;
    color: #5A6B80;
    transition: all .25s;
}
.ags-icon-btn:hover { color: var(--ags-teal-600); border-color: #CFE9E8; background: var(--ags-teal-50); }

.ags-user-chip {
    display: flex; align-items: center; gap: .7rem;
    padding: 5px 14px 5px 5px;
    border-radius: 999px;
    border: 1px solid var(--ags-line);
    background: #fff;
    transition: all .25s;
}
.ags-user-chip:hover { border-color: #CFE9E8; background: #FBFDFE; box-shadow: var(--ags-sh-xs); }
.ags-avatar {
    width: 36px; height: 36px; border-radius: 999px;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
    font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 14px;
    color: #fff;
    background: var(--ags-grad-brand);
}
.ags-dropdown {
    background: #fff;
    border: 1px solid var(--ags-line);
    border-radius: var(--ags-r-lg);
    box-shadow: var(--ags-sh-lg);
    padding: .5rem;
}
.ags-dd-item {
    display: flex; align-items: center; gap: .7rem;
    padding: .6rem .75rem;
    border-radius: var(--ags-r-sm);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 13px; font-weight: 550; color: #4A5C74;
    text-decoration: none;
    transition: all .2s;
}
.ags-dd-item i { font-size: 1.1rem; color: var(--ags-muted); transition: color .2s; }
.ags-dd-item:hover { background: var(--ags-teal-50); color: var(--ags-teal-600); }
.ags-dd-item:hover i { color: var(--ags-teal-600); }
.ags-dd-item.is-danger:hover { background: #FEECEF; color: #C42A44; }
.ags-dd-item.is-danger:hover i { color: #C42A44; }

/* --------------------------------------------------------------------------
   9b. Account chip & notification centre (header, right side)
   -------------------------------------------------------------------------- */

/* ---- Bell ---- */
.ags-bell {
    position: relative;
    width: 42px; height: 42px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 14px;
    border: 1px solid var(--ags-line);
    background: #fff;
    color: #4A5C74;
    transition: color .25s, border-color .25s, background-color .25s, transform .25s;
}
.ags-bell:hover { color: var(--ags-teal-600); border-color: #CFE9E8; background: var(--ags-teal-50); }
.ags-bell:hover i { animation: ags-swing .6s ease-in-out; transform-origin: 50% 12%; }
@keyframes ags-swing {
    20% { transform: rotate(13deg); } 40% { transform: rotate(-10deg); }
    60% { transform: rotate(6deg); }  80% { transform: rotate(-4deg); } 100% { transform: none; }
}
.ags-bell-dot {
    position: absolute; top: -5px; right: -5px;
    min-width: 20px; height: 20px; padding: 0 5px;
    border-radius: 999px;
    background: linear-gradient(135deg, #FB7185, #E11D48);
    color: #fff; font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 10.5px; font-weight: 700; line-height: 1;
    align-items: center; justify-content: center;
    border: 2px solid #fff;
    box-shadow: 0 4px 10px -3px rgba(225, 29, 72, .7);
}

/* ---- Account chip ---- */
.ags-acc-chip {
    display: flex; align-items: center; gap: .6rem;
    padding: 4px 12px 4px 4px;
    border-radius: 999px;
    border: 1px solid var(--ags-line);
    background: #fff;
    transition: border-color .25s, box-shadow .25s, background-color .25s;
}
.ags-acc-chip:hover { border-color: #CFE9E8; box-shadow: var(--ags-sh-sm); }
.ags-acc-ava {
    position: relative;
    width: 34px; height: 34px; border-radius: 999px;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 13.5px;
    color: #fff; background: var(--ags-grad-brand);
    box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px rgba(14,165,160,.35);
}
.ags-acc-ava img { width: 100%; height: 100%; object-fit: cover; border-radius: 999px; }
.ags-acc-ava::after {
    content: '';
    position: absolute; right: -1px; bottom: -1px;
    width: 10px; height: 10px; border-radius: 999px;
    background: #22C55E; border: 2px solid #fff;
}
.ags-acc-chev { font-size: 12px; color: #A7B5C6; transition: transform .3s, color .25s; }
.ags-acc:hover .ags-acc-chev { transform: rotate(180deg); color: var(--ags-teal-600); }

/* Hover bridge: the popover floats below its trigger with a visual gap, so the
   wrapper grows an invisible strip across that gap. Without it the pointer
   leaves :hover mid-way and the panel closes before you arrive.
   It only accepts pointer events while the group is hovered, so it can never
   swallow clicks on the page underneath. */
.ags-hoverpop::after {
    content: '';
    position: absolute;
    top: 100%; right: 0;
    width: 360px; height: 16px;
    pointer-events: none;
}
.ags-hoverpop:hover::after { pointer-events: auto; }

/* ---- Shared popover ---- */
.ags-pop {
    position: absolute; right: 0; top: calc(100% + 10px);
    border-radius: 20px;
    background: #fff;
    border: 1px solid var(--ags-line);
    box-shadow: 0 24px 48px -20px rgba(12, 27, 42, .28), 0 4px 12px -6px rgba(12, 27, 42, .12);
    overflow: hidden;
    z-index: 120;
}
.ags-pop::before {
    content: '';
    position: absolute; top: -6px; right: 22px;
    width: 12px; height: 12px;
    /* matches the gradient head where the beak meets it (right edge) */
    background: #3E3179;
    transform: rotate(45deg);
    border-radius: 2px;
}
.ags-pop-head {
    position: relative; overflow: hidden;
    background: var(--ags-grad-deep);
    padding: 16px 18px;
    color: #fff;
}
.ags-pop-head::after {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(220px 120px at 100% 0%, rgba(124, 92, 255, .45), transparent 70%);
}
.ags-pop-head > * { position: relative; z-index: 2; }
.ags-pop-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 13.5px; font-weight: 700; color: #fff; letter-spacing: -.015em; line-height: 1.2;
}
.ags-pop-body { padding: 8px; }
.ags-pop-foot {
    padding: 10px 14px;
    border-top: 1px solid var(--ags-line-soft);
    background: #FBFCFE;
}

/* ---- Account popover ---- */
.ags-acc-pop { width: 286px; }
.ags-acc-id { display: flex; align-items: center; gap: .75rem; }
.ags-acc-id-ava {
    width: 44px; height: 44px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 17px; color: #fff;
    background: rgba(255,255,255,.16);
    border: 1px solid rgba(255,255,255,.24);
    overflow: hidden; flex-shrink: 0;
}
.ags-acc-id-ava img { width: 100%; height: 100%; object-fit: cover; }
.ags-acc-mail { font-size: 12px; color: rgba(255,255,255,.62); }
.ags-acc-role {
    display: inline-flex; align-items: center; gap: .3rem;
    margin-top: 8px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
    color: #5EEAD4;
    background: rgba(94, 234, 212, .14);
    border: 1px solid rgba(94, 234, 212, .28);
    padding: .28rem .5rem; border-radius: 999px;
}
.ags-acc-item {
    display: flex; align-items: center; gap: .7rem;
    padding: .55rem .6rem;
    border-radius: 13px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 13px; font-weight: 600; color: #3F5266;
    text-decoration: none;
    transition: background-color .2s, color .2s;
}
.ags-acc-item i {
    width: 32px; height: 32px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.05rem;
    background: #F1F5FA; color: #5A6B80;
    transition: background-color .2s, color .2s, transform .25s;
}
.ags-acc-item:hover { background: #F5F9FC; color: var(--ags-ink); }
.ags-acc-item:hover i { background: var(--ags-teal-50); color: var(--ags-teal-600); transform: translateY(-1px); }
.ags-acc-item.is-danger { color: #C7405A; }
.ags-acc-item.is-danger i { background: #FDECEF; color: #D14561; }
.ags-acc-item.is-danger:hover { background: #FDECEF; color: #B22B45; }
.ags-acc-item.is-danger:hover i { background: #FBD5DC; color: #B22B45; }

/* ---- Notification popover ---- */
.ags-note-pop { width: 344px; }
.ags-note-count {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 10.5px; font-weight: 700; letter-spacing: .06em;
    color: #FBCFE8; background: rgba(244, 114, 182, .18);
    border: 1px solid rgba(244, 114, 182, .3);
    padding: .26rem .5rem; border-radius: 999px;
}
.ags-note-list { max-height: 336px; overflow-y: auto; padding: 8px; }
.ags-note-item {
    position: relative;
    display: flex; align-items: flex-start; gap: .7rem;
    padding: .6rem .65rem;
    border-radius: 14px;
    text-decoration: none;
    transition: background-color .2s;
}
.ags-note-item:hover { background: #F5F9FC; }
.ags-note-item.is-unread { background: rgba(14, 165, 160, .06); }
.ags-note-item.is-unread::before {
    content: '';
    position: absolute; left: 0; top: 26%; bottom: 26%;
    width: 3px; border-radius: 0 3px 3px 0;
    background: var(--ags-grad-brand);
}
.ags-note-ico {
    width: 34px; height: 34px; border-radius: 11px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center; font-size: 1.05rem;
}
.ags-note-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 12.8px; font-weight: 650; color: var(--ags-ink); line-height: 1.35;
}
.ags-note-msg { font-size: 12px; color: var(--ags-muted); line-height: 1.4; margin-top: 1px; }
.ags-note-time { font-size: 11px; color: #A7B5C6; margin-top: 3px; display: flex; align-items: center; gap: .35rem; }
.ags-note-new { width: 6px; height: 6px; border-radius: 999px; background: var(--ags-teal); }
.ags-note-empty { text-align: center; padding: 34px 18px; }
.ags-note-empty-ico {
    width: 58px; height: 58px; margin: 0 auto 12px; border-radius: 18px;
    display: flex; align-items: center; justify-content: center; font-size: 1.5rem;
    background: var(--ags-grad-soft); color: var(--ags-teal-600);
    border: 1px solid var(--ags-line);
}

@media (max-width: 420px) {
    .ags-note-pop { width: min(86vw, 344px); }
    .ags-acc-pop  { width: min(80vw, 286px); }
}

/* --------------------------------------------------------------------------
   9c. Student portal page furniture
   -------------------------------------------------------------------------- */

.ags-pagehead { padding-top: 26px; padding-bottom: 20px; }
.ags-pagetitle {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 2rem; font-weight: 800; letter-spacing: -.035em; line-height: 1.1;
    color: var(--ags-ink);
}
.ags-pagesub { font-size: 14px; color: var(--ags-muted); margin-top: 4px; }

/* On the student portal the eyebrow sits flush-left like the other portals */
.ags-pagehead .ags-eyebrow::after {
    content: ''; width: 22px; height: 2px; border-radius: 2px;
    background: linear-gradient(90deg, var(--ags-teal), rgba(14,165,160,0));
}
.ags-pagehead .ags-eyebrow .dot { display: none; }

.ags-toolbar {
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: space-between;
    background: var(--ags-surface); border: 1px solid var(--ags-line);
    border-radius: var(--ags-r-lg); box-shadow: var(--ags-sh-sm); padding: 12px;
}
.ags-toolbar input.ags-input { padding-left: 2.5rem; }

.ags-act {
    width: 32px; height: 32px; border-radius: 10px;
    display: inline-flex; align-items: center; justify-content: center; font-size: .8rem;
    background: #F5F8FB; border: 1px solid var(--ags-line); color: #5A6B80;
    text-decoration: none; transition: all .22s;
}
.ags-act:hover { background: var(--ags-teal); border-color: transparent; color: #fff; transform: translateY(-1px); }
.ags-act-danger:hover { background: #E4506A; }

.ags-note {
    display: flex; align-items: flex-start; gap: .7rem;
    padding: 12px 14px; border-radius: 14px;
    background: var(--ags-teal-50); border: 1px solid #C9EDEB; color: #0A6F6B;
    font-size: 13px; line-height: 1.5;
}
.ags-note i { font-size: 1.05rem; margin-top: 1px; opacity: .85; }

.ags-modal {
    position: relative;
    background: #fff; border: 1px solid var(--ags-line);
    border-radius: var(--ags-r-xl);
    box-shadow: 0 40px 80px -30px rgba(12, 27, 42, .5);
    overflow: hidden;
}
.ags-modal-head {
    position: relative; overflow: hidden;
    padding: 20px 24px; background: var(--ags-grad-deep); color: rgba(255,255,255,.72);
    display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem;
}
.ags-modal-head::after {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(260px 140px at 100% 0%, rgba(94, 234, 212, .3), transparent 72%);
}
.ags-modal-head > * { position: relative; z-index: 2; }
.ags-modal-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 17px; font-weight: 700; color: #fff; letter-spacing: -.02em;
}
.ags-modal-sub { font-size: 12.5px; color: rgba(255,255,255,.6); margin-top: 3px; }
.ags-modal-close {
    width: 34px; height: 34px; border-radius: 11px; flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); color: #fff;
    transition: all .22s;
}
.ags-modal-close:hover { background: #E4506A; border-color: transparent; transform: rotate(90deg); }
.ags-modal-body { padding: 22px 24px; }
.ags-modal-foot {
    padding: 16px 24px; background: #FAFCFE;
    border-top: 1px solid var(--ags-line-soft);
    display: flex; align-items: center; gap: 10px;
}

/* Legacy colours from the old dark hero, now on light student cards */
.ags-card [class*="text-emerald-400"] { color: #08916A; }
.ags-card [class*="text-amber-400"]   { color: #A9700A; }
.ags-card [class*="text-slate-300"]   { color: #8A97A8; }
.ags-card [class*="text-slate-500"]   { color: #56677C; }
.ags-pagehead [class*="text-slate-400"], .ags-pagehead [class*="text-slate-500"] { color: var(--ags-muted); }

/* Glass tiles carried over from the old dark hero, now on a light header */
.ags-pagehead [class*="bg-white/5"],
.ags-pagehead [class*="bg-white/10"] {
    background: #F5F8FB;
    border-color: var(--ags-line);
    backdrop-filter: none;
    box-shadow: var(--ags-sh-sm);
}
.ags-pagehead [class*="text-white"] { color: var(--ags-ink); }
.ags-pagehead [class*="bg-gradient-to-br"] [class*="text-white"],
.ags-pagehead [class*="from-primary"] [class*="text-white"] { color: #fff; }
.ags-pagehead [class*="border-white/10"], .ags-pagehead [class*="border-white/5"] { border-color: var(--ags-line); }
.ags-empty-icon [class*="text-"] { font-size: 1.9rem; }

/* --------------------------------------------------------------------------
   9d. Public course catalogue
   -------------------------------------------------------------------------- */

/* Filter toolbar that follows you down the page */
.cat-bar {
    position: sticky;
    top: 16px;
    z-index: 30;
    background: rgba(255, 255, 255, .82);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border: 1px solid var(--ags-line);
    border-radius: var(--ags-r-xl);
    box-shadow: var(--ags-sh-md);
    padding: 14px;
}
.cat-bar-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) auto auto;
    gap: 10px;
    align-items: center;
}
@media (max-width: 900px) {
    .cat-bar-grid { grid-template-columns: 1fr; }
    .cat-bar { position: static; }
}

/* Segmented price control */
.cat-seg {
    display: inline-flex; align-items: center; gap: 3px;
    padding: 3px; border-radius: 999px;
    background: #F1F5F9; border: 1px solid var(--ags-line);
}
.cat-seg label {
    position: relative;
    display: inline-flex; align-items: center; justify-content: center;
    padding: .5rem .9rem; border-radius: 999px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 12.5px; font-weight: 600; color: #56677C;
    cursor: pointer; white-space: nowrap;
    transition: color .25s, background-color .25s;
}
.cat-seg input { position: absolute; opacity: 0; pointer-events: none; }
.cat-seg label:hover { color: var(--ags-ink); }
.cat-seg input:checked + span { color: #fff; }
.cat-seg label:has(input:checked) { background: var(--ags-grad-brand); color: #fff; box-shadow: var(--ags-sh-brand); }

/* Active filter chips */
.cat-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cat-chip {
    display: inline-flex; align-items: center; gap: .45rem;
    padding: .35rem .5rem .35rem .75rem;
    border-radius: 999px;
    background: var(--ags-teal-50); border: 1px solid #C9EDEB;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 12px; font-weight: 600; color: var(--ags-teal-600);
    text-decoration: none;
}
.cat-chip i { font-size: .95rem; opacity: .7; transition: opacity .2s; }
.cat-chip:hover i { opacity: 1; }

/* ---- Course card: compact, tilts in 3D under the pointer ---- */
.cat-scene { perspective: 1100px; }

.cat-card {
    position: relative;
    display: flex; flex-direction: column;
    background: #fff;
    border: 1px solid var(--ags-line);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: var(--ags-sh-sm);
    height: 100%;
    transform-style: preserve-3d;
    transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateZ(0);
    transition: transform .45s cubic-bezier(.2,.7,.3,1), box-shadow .45s, border-color .45s;
    will-change: transform;
}
.cat-card.is-tilting { transition: box-shadow .45s, border-color .45s; }
.cat-card:hover {
    box-shadow: 0 2px 6px rgba(12,27,42,.05), 0 34px 60px -26px rgba(12,27,42,.55);
    border-color: #CFE9E8;
}

/* glare that follows the pointer */
.cat-glare {
    position: absolute; inset: 0; z-index: 6; pointer-events: none;
    border-radius: inherit;
    background: radial-gradient(220px circle at var(--gx, 50%) var(--gy, 0%), rgba(255,255,255,.42), transparent 62%);
    opacity: 0;
    transition: opacity .4s;
}
.cat-card:hover .cat-glare { opacity: 1; }

/* ---- cover ---- */
.cat-cover {
    position: relative; display: block;
    aspect-ratio: 16 / 9; overflow: hidden; background: #EEF3F8;
    transform: translateZ(28px);
}
.cat-cover img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .9s cubic-bezier(.2,.7,.3,1);
}
.cat-card:hover .cat-cover img { transform: scale(1.08); }
.cat-cover::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(11,44,77,0) 55%, rgba(11,44,77,.55));
}

/* status pill on the image */
.cat-status {
    position: absolute; top: 12px; left: 12px; z-index: 3;
    display: inline-flex; align-items: center; gap: .4rem;
    padding: .34rem .65rem; border-radius: 999px;
    background: rgba(255,255,255,.93);
    backdrop-filter: blur(8px);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 11px; font-weight: 700;
    box-shadow: 0 6px 14px -6px rgba(12,27,42,.5);
    transform: translateZ(20px);
}
.cat-status::before {
    content: ''; width: 6px; height: 6px; border-radius: 999px; background: currentColor;
}
.cat-status.is-open   { color: #067A57; }
.cat-status.is-soon   { color: #1B5FA8; }
.cat-status.is-closed { color: #9AA9B8; }
.cat-status.is-open::before { animation: ags-ping-soft 2.4s infinite; }

/* ---- body ---- */
.cat-body {
    padding: 16px 16px 0;
    flex: 1 1 auto;
    transform: translateZ(20px);
}
.cat-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 15.5px; font-weight: 700; letter-spacing: -.022em; line-height: 1.35;
    color: var(--ags-ink);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    min-height: 2.7em;
    transition: color .3s;
}
.cat-card:hover .cat-title { color: var(--ags-teal-600); }
.cat-sub {
    display: flex; align-items: center; gap: .4rem;
    margin-top: 7px;
    font-size: 12px; color: var(--ags-muted);
}
.cat-sub i { font-size: .95rem; color: var(--ags-teal); }

/* ---- actions ---- */
.cat-actions {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    padding: 14px 16px 16px;
    transform: translateZ(26px);
}
.cat-actions .ags-btn {
    width: 100%;
    padding: .6rem .6rem;
    font-size: 12px;
    border-radius: 11px;
}
.cat-actions .ags-btn i { transition: transform .3s; }
.cat-card:hover .cat-actions .ags-btn i { transform: translateX(3px); }
@media (max-width: 400px) { .cat-actions { grid-template-columns: 1fr; } }

/* Reduced motion: drop the auto-playing parts (image zoom, glare) but keep the
   pointer-driven tilt — it only moves in direct response to the user, and a
   flat card would leave nothing of the effect at all. */
@media (prefers-reduced-motion: reduce) {
    .cat-card:hover .cat-cover img { transform: none; }
    .cat-glare { display: none; }
    .cat-status.is-open::before { animation: none; }
}

/* ---- Empty state ---- */
.cat-empty {
    text-align: center; padding: 70px 24px;
    background: #fff; border: 1px dashed #D6E2EC; border-radius: var(--ags-r-xl);
}
.cat-empty-ico {
    width: 84px; height: 84px; margin: 0 auto 18px; border-radius: 28px;
    display: flex; align-items: center; justify-content: center; font-size: 2rem;
    background: var(--ags-grad-soft); color: var(--ags-teal-600); border: 1px solid var(--ags-line);
}

/* ---- Scroll reveal ---- */
.reveal { opacity: 0; transform: translateY(22px); }
.reveal.is-in {
    opacity: 1; transform: none;
    transition: opacity .7s cubic-bezier(.2,.7,.3,1), transform .7s cubic-bezier(.2,.7,.3,1);
}
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; }
    .cat-card:hover { transform: none; }
    .cat-card:hover .cat-cover img { transform: none; }
}

/* --------------------------------------------------------------------------
   10. Forms
   -------------------------------------------------------------------------- */

.ags-label {
    display: block;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 12.5px; font-weight: 600; color: #3C4E66;
    margin-bottom: .45rem; letter-spacing: -0.005em;
}
.ags-input, .ags-select, .ags-textarea {
    width: 100%;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: var(--ags-ink);
    background: #fff;
    border: 1px solid var(--ags-line);
    border-radius: var(--ags-r-md);
    padding: .72rem .95rem;
    transition: border-color .25s, box-shadow .25s, background-color .25s;
}
.ags-input::placeholder, .ags-textarea::placeholder { color: #A7B5C6; }
.ags-input:focus, .ags-select:focus, .ags-textarea:focus {
    outline: none;
    border-color: var(--ags-teal);
    box-shadow: 0 0 0 4px rgba(14, 165, 160, .12);
}
.ags-search { position: relative; }
.ags-search .ags-input { padding-left: 2.6rem; }
.ags-search > i {
    position: absolute; left: .95rem; top: 50%; transform: translateY(-50%);
    color: #A7B5C6; font-size: 1rem; pointer-events: none;
}

/* --------------------------------------------------------------------------
   11. Progress
   -------------------------------------------------------------------------- */

.ags-progress { height: 6px; border-radius: 999px; background: #EDF2F8; overflow: hidden; }
.ags-progress > span { display: block; height: 100%; border-radius: 999px; background: var(--ags-grad-brand); transition: width .8s cubic-bezier(.2,.7,.3,1); }

/* --------------------------------------------------------------------------
   12. Footer
   -------------------------------------------------------------------------- */

.ags-footer { background: transparent; padding: 0; }

/* The footer body is a rounded card floating on the page canvas */
.ags-foot-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--ags-r-xl);
    background: var(--ags-grad-deep);
    color: rgba(255, 255, 255, .74);
    box-shadow: 0 30px 60px -34px rgba(11, 44, 77, .55);
    padding: 26px 30px;
}
.ags-foot-card::before {
    content: '';
    position: absolute; inset: 0; pointer-events: none;
    background:
        radial-gradient(560px 300px at 92% 8%, rgba(124, 92, 255, .30), transparent 68%),
        radial-gradient(460px 260px at 4% 100%, rgba(34, 211, 238, .14), transparent 70%);
}
.ags-foot-card > * { position: relative; z-index: 2; }
.ags-foot-card h3, .ags-foot-card h4 { color: #fff; }

.ags-foot-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 13px; font-weight: 700; letter-spacing: -.01em;
    color: #fff; margin-bottom: .85rem;
}
.ags-foot-link {
    display: block;
    font-size: 13.5px; line-height: 1.45;
    color: rgba(255, 255, 255, .7); text-decoration: none;
    padding: 3.5px 0;
    transition: color .22s, transform .22s;
}
.ags-foot-link:hover { color: #fff; transform: translateX(3px); }

.ags-foot-social {
    width: 34px; height: 34px; border-radius: 999px;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .16);
    color: #fff; text-decoration: none; font-size: 13px;
    transition: all .25s;
}
.ags-foot-social:hover { background: var(--ags-teal); border-color: transparent; transform: translateY(-2px); }

.ags-foot-contact {
    display: flex; align-items: center; gap: .55rem;
    font-size: 13px; color: rgba(255,255,255,.72); text-decoration: none;
    padding: 2.5px 0; transition: color .22s;
}
.ags-foot-contact i { font-size: 1rem; color: rgba(255,255,255,.45); }
.ags-foot-contact:hover { color: #fff; }

/* Enquiry panel */
/* Dark glass, so the artwork diffusing behind it can never hurt legibility */
.ags-foot-form {
    background: rgba(9, 22, 45, .38);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: var(--ags-r-lg);
    padding: 16px 16px 17px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.ags-foot-field {
    width: 100%;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: #fff;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 11px;
    padding: .6rem .8rem;
    transition: border-color .22s, background-color .22s, box-shadow .22s;
}
.ags-foot-field::placeholder { color: rgba(255, 255, 255, .45); }
.ags-foot-field:focus {
    outline: none;
    background: rgba(255, 255, 255, .13);
    border-color: rgba(94, 234, 212, .65);
    box-shadow: 0 0 0 3px rgba(45, 212, 191, .14);
}
select.ags-foot-field { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 2rem; }
select.ags-foot-field option { color: #0C1B2A; background: #fff; }
textarea.ags-foot-field { resize: vertical; min-height: 38px; line-height: 1.5; }
.ags-foot-submit {
    width: 100%; height: 100%; min-height: 38px;
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 13.5px; font-weight: 600; color: #fff;
    background: linear-gradient(120deg, #0EA5A0 0%, #4F7FE8 55%, #7C5CFF 100%);
    background-size: 165% 100%;
    border: 0; border-radius: 12px; padding: .72rem 1.1rem; cursor: pointer;
    box-shadow: 0 14px 26px -14px rgba(124, 92, 255, .8);
    transition: background-position .35s, transform .25s, box-shadow .25s;
}
.ags-foot-submit:hover { background-position: 100% 0; transform: translateY(-2px); }
.ags-foot-submit i { transition: transform .3s; }
.ags-foot-submit:hover i { transform: translateX(3px); }

/* Legal strip below the card */
.ags-foot-legal {
    display: flex; align-items: center; justify-content: space-between;
    gap: 1rem; flex-wrap: wrap;
    padding: 14px 6px 18px;
    font-size: 12.5px; color: var(--ags-muted);
}
.ags-foot-legal a { color: var(--ags-body); text-decoration: none; font-weight: 500; transition: color .22s; }
.ags-foot-legal a:hover { color: var(--ags-teal-600); }
.ags-foot-legal .sep { color: #CBD8E6; }

/* Footer artwork */
.ags-biof {
    position: absolute;
    top: -40px; bottom: -40px; right: -34px;
    width: 340px;
    z-index: 1;
    pointer-events: none;
    opacity: .9;
    /* Straight across, and fully clear along the whole left edge. At 100deg the
       edge was only clear at its top corner, so the artwork (wider than this box,
       and drifting) was sliced there into a hard line with a lighter band beside it. */
    mask-image: linear-gradient(90deg, transparent 0%, transparent 7%, rgba(0,0,0,.5) 32%, #000 64%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, transparent 7%, rgba(0,0,0,.5) 32%, #000 64%);
}
.ags-biof svg { width: 100%; height: 100%; overflow: visible; }

/* ---- the DNA helix: sits at an angle and travels upward for ever ---- */
.ags-biof .agf-helix-wrap { transform: translate(300px, 150px) rotate(16deg); }
@keyframes agf-march { from { transform: translateY(0); } to { transform: translateY(-256px); } }
.ags-biof .agf-helix { animation: agf-march 13s linear infinite; }

/* rungs breathe, as if the helix is turning towards you and away */
@keyframes agf-turn { 0%, 100% { transform: scaleX(1); opacity: .95; } 50% { transform: scaleX(.34); opacity: .55; } }
.ags-biof .agf-rungs { animation: agf-turn 4.2s ease-in-out infinite; transform-origin: center; }

/* ---- cells drift slowly, each on its own timing ---- */
@keyframes agf-float-a { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-9px, 11px) scale(1.045); } }
@keyframes agf-float-b { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(11px, -8px) scale(.96); } }
@keyframes agf-float-c { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(7px, 9px) scale(1.03); } }
@keyframes agf-breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.022); } }

.ags-biof .agf-drift-a { animation: agf-float-a 19s ease-in-out infinite; transform-origin: 332px 58px; }
.ags-biof .agf-drift-b { animation: agf-float-b 24s ease-in-out infinite; transform-origin: 176px 46px; }
.ags-biof .agf-drift-c { animation: agf-float-c 21s ease-in-out infinite; transform-origin: 96px 150px; }
.ags-biof .agf-hero    { animation: agf-breathe 9s ease-in-out infinite;  transform-origin: 252px 196px; }

/* ---- the magenta bloom where the helix meets the cell ---- */
@keyframes agf-pulse { 0%, 100% { opacity: .55; transform: scale(1); } 50% { opacity: 1; transform: scale(1.12); } }
.ags-biof .agf-hot { animation: agf-pulse 5.5s ease-in-out infinite; transform-origin: 236px 150px; }

/* ---- the ambient wash behind everything ---- */
@keyframes agf-wash { 0%, 100% { opacity: .8; transform: scale(1); } 50% { opacity: 1; transform: scale(1.07); } }
.ags-biof .agf-wash { animation: agf-wash 16s ease-in-out infinite; transform-origin: 210px 170px; }

/* ---- particles rise and twinkle ---- */
@keyframes agf-rise { 0% { transform: translateY(6px); opacity: 0; } 22% { opacity: 1; } 78% { opacity: .85; } 100% { transform: translateY(-30px); opacity: 0; } }
.ags-biof .agf-motes circle { animation: agf-rise 7s ease-in-out infinite; }
.ags-biof .agf-m1 { animation-duration: 7.5s;  animation-delay: 0s; }
.ags-biof .agf-m2 { animation-duration: 9s;    animation-delay: 1.1s; }
.ags-biof .agf-m3 { animation-duration: 6.8s;  animation-delay: 2.3s; }
.ags-biof .agf-m4 { animation-duration: 10s;   animation-delay: .6s; }
.ags-biof .agf-m5 { animation-duration: 8.2s;  animation-delay: 3.1s; }
.ags-biof .agf-m6 { animation-duration: 11s;   animation-delay: 1.8s; }
.ags-biof .agf-m7 { animation-duration: 7.8s;  animation-delay: 4s; }

@media (max-width: 1279px) { .ags-biof { width: 330px; opacity: .62; right: -70px; } }
@media (max-width: 1023px) { .ags-biof { display: none; } }

/* Slow, decorative drift — softened under reduced motion, not switched off,
   since removing it entirely leaves an empty corner. */
@media (prefers-reduced-motion: reduce) {
    .ags-biof .agf-helix { animation-duration: 30s; }
    .ags-biof .agf-rungs { animation-duration: 9s; }
    .ags-biof .agf-drift-a,
    .ags-biof .agf-drift-b,
    .ags-biof .agf-drift-c { animation-duration: 46s; }
    .ags-biof .agf-hero  { animation-duration: 20s; }
    .ags-biof .agf-hot   { animation-duration: 12s; }
    .ags-biof .agf-motes circle { animation-duration: 16s; }
}
@media (max-width: 767px) {
    .ags-foot-card { padding: 26px 20px 24px; border-radius: var(--ags-r-lg); }
    .ags-foot-legal { justify-content: center; text-align: center; padding-bottom: 26px; }
}

/* --------------------------------------------------------------------------
   12b. Page loading
   A top progress bar plus a short fade-in. The fade also hides the flash of
   unstyled content while the Tailwind CDN builds its stylesheet.
   -------------------------------------------------------------------------- */

#agsProgress {
    position: fixed; top: 0; left: 0; right: 0;
    height: 3px; z-index: 9999;
    pointer-events: none;
    opacity: 0;
    transition: opacity .3s ease .1s;
}
#agsProgress.is-active { opacity: 1; transition-delay: 0s; }
#agsProgress > span {
    display: block; height: 100%; width: 0;
    background: var(--ags-grad-brand);
    box-shadow: 0 0 12px rgba(14, 165, 160, .7), 0 0 4px rgba(124, 92, 255, .6);
    border-radius: 0 3px 3px 0;
    transition: width .35s cubic-bezier(.25, .8, .3, 1);
}

body { opacity: 0; }
body.ags-ready { opacity: 1; transition: opacity .3s ease; }
.no-js body, body.ags-fallback { opacity: 1; }

/* Content settles in just after the shell paints */
body.ags-ready .ags-shell > *,
body.ags-ready main > * { animation: ags-fade-up .5s cubic-bezier(.2, .7, .3, 1) both; }
@keyframes ags-fade-up { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Anything already carrying an explicit entrance keeps its own timing */
body.ags-ready .ags-rise { animation: ags-rise .6s cubic-bezier(.2,.7,.3,1) both; }

/* Skeleton shimmer for async areas */
.ags-skel {
    position: relative; overflow: hidden;
    background: #EDF1F6; border-radius: 10px;
}
.ags-skel::after {
    content: '';
    position: absolute; inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.75), transparent);
    animation: ags-shimmer 1.4s infinite;
}
@keyframes ags-shimmer { 100% { transform: translateX(100%); } }

/* Cross-page smoothing */
img { -webkit-user-drag: none; }
a, button { -webkit-tap-highlight-color: transparent; }

/* --------------------------------------------------------------------------
   13. Motion
   -------------------------------------------------------------------------- */

@keyframes ags-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.ags-rise { animation: ags-rise .6s cubic-bezier(.2,.7,.3,1) both; }
.ags-d1 { animation-delay: .06s; }
.ags-d2 { animation-delay: .12s; }
.ags-d3 { animation-delay: .18s; }
.ags-d4 { animation-delay: .24s; }

@keyframes ags-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.ags-float { animation: ags-float 7s ease-in-out infinite; }

@keyframes ags-ping-soft { 0% { box-shadow: 0 0 0 0 rgba(244,63,94,.45); } 70% { box-shadow: 0 0 0 9px rgba(244,63,94,0); } 100% { box-shadow: 0 0 0 0 rgba(244,63,94,0); } }
.ags-live-dot { animation: ags-ping-soft 2s infinite; }

/* Reduced motion (Windows: Accessibility → Visual effects → Animation effects).
   One-shot entrances and attention-seeking motion are dropped and their end
   state is applied directly; the hero artwork keeps only a very slow drift so
   the page still feels alive without anything darting around. */
@media (prefers-reduced-motion: reduce) {
    .ags-rise, .ags-float, .animate-pulse-custom, .ags-live-dot,
    .adm-bars span, .adm-ring .val {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
    .adm-spark .line { animation: none !important; stroke-dashoffset: 0 !important; }
    .ags-bio-motes circle { animation: none !important; opacity: .45 !important; }
    body.ags-ready .ags-shell > *, body.ags-ready main > * { animation: none !important; }
    #agsProgress > span { transition: none !important; }
    .ags-skel::after { animation: none !important; }
    .ags-bio-rungs { animation: none !important; }
    .ags-bio-helix { animation-duration: 28s !important; }
    .ags-bio-cell  { animation-duration: 44s !important; }
    /* The footer artwork handles reduced motion in its own block above —
       it slows down rather than stopping, so the corner is never empty. */

    *, *::before, *::after { transition-duration: .001ms !important; }
}

/* --------------------------------------------------------------------------
   14. Utilities & scrollbars
   -------------------------------------------------------------------------- */

::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #CBD8E6; border-radius: 999px; border: 2px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: #A9BDD3; background-clip: content-box; }

.scrollbar-none::-webkit-scrollbar { display: none; }
.scrollbar-none { -ms-overflow-style: none; scrollbar-width: none; }

.ags-divider { height: 1px; background: linear-gradient(90deg, transparent, var(--ags-line), transparent); }
.ags-shell { width: 100%; max-width: 1320px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }

::selection { background: rgba(14, 165, 160, .18); color: var(--ags-ink); }

/* Mobile: table rows become cards (kept compatible with existing markup hook) */
@media (max-width: 768px) {
    .mobile-table-card .overflow-x-auto { overflow-x: visible; }
    .mobile-table-card table,
    .mobile-table-card thead,
    .mobile-table-card tbody,
    .mobile-table-card th,
    .mobile-table-card td,
    .mobile-table-card tr { display: block; }
    .mobile-table-card thead tr { position: absolute; top: -9999px; left: -9999px; }
    .mobile-table-card tbody tr {
        margin: 0 1rem 1rem;
        border: 1px solid var(--ags-line);
        border-radius: var(--ags-r-lg);
        background: #fff;
        padding: 1.1rem;
        box-shadow: var(--ags-sh-xs);
    }
    .mobile-table-card tbody td {
        border: none !important;
        padding: .5rem 0 !important;
        text-align: left !important;
    }
    .mobile-table-card tbody td:before {
        content: attr(data-label);
        display: block;
        font-family: 'Plus Jakarta Sans', sans-serif;
        font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
        color: var(--ags-muted);
        margin-bottom: .3rem;
    }
    .ags-shell { padding-left: 16px; padding-right: 16px; }
    .ags-stat-value { font-size: 1.75rem; }
}

.mask-linear-fade {
    mask-image: linear-gradient(to right, black 88%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, black 88%, transparent 100%);
}

/* Legacy font utilities (Zain / Fredoka) remapped to the new type system so
   pages not yet migrated keep rendering correctly. Extra specificity is
   intentional — it must win over the Tailwind CDN utility. */
body .font-\[\'Zain\'\],
body .font-\[Zain\] { font-family: 'Inter', system-ui, sans-serif !important; }
body .font-\[\'Fredoka\'\],
body .font-\[Fredoka\] { font-family: 'Plus Jakarta Sans', system-ui, sans-serif !important; letter-spacing: -0.02em; }

/* --------------------------------------------------------------------------
   15. Payment pages   (prefix: pay-)
   payment.php · payment-status.php · payment-success.php · payment-error.php
   Appended section — nothing above this line is modified.
   These are the money screens, so the register is deliberately quiet:
   hairline borders, one accent colour, no looping animation.
   -------------------------------------------------------------------------- */

/* ---- Checkout hero ---- */
.pay-hero-sub {
    color: rgba(255, 255, 255, .66);
    font-size: 15px;
    line-height: 1.7;
    max-width: 34rem;
}

/* ---- Enrolment summary ---- */
.pay-course { display: flex; align-items: center; gap: 1.15rem; }
.pay-course-img {
    width: 92px; height: 92px; flex-shrink: 0;
    border-radius: 18px; overflow: hidden;
    background: #EEF3F8;
    border: 1px solid var(--ags-line);
}
.pay-course-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pay-course-name {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 19px; font-weight: 700; letter-spacing: -.022em; line-height: 1.3;
    color: var(--ags-ink);
}
@media (max-width: 480px) {
    .pay-course { flex-direction: column; align-items: stretch; gap: .9rem; }
    .pay-course-img { width: 100%; height: 148px; }
}

/* ---- Divided fee ledger ---- */
.pay-ledger { list-style: none; margin: 0; padding: 0; }
.pay-ledger li {
    display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem;
    padding: 13px 0;
    border-bottom: 1px solid var(--ags-line-soft);
}
.pay-ledger li:last-child { border-bottom: 0; padding-bottom: 2px; }
.pay-ledger-label { font-size: 13.5px; color: var(--ags-body); }
.pay-ledger-note { display: block; font-size: 12px; color: var(--ags-muted); margin-top: 2px; }
.pay-ledger-value {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 15px; font-weight: 650; color: var(--ags-ink);
    font-variant-numeric: tabular-nums; white-space: nowrap;
}
.pay-ledger-value.is-credit { color: #08916A; }

/* The one number that matters gets its own tinted row */
.pay-due {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    margin-top: 18px; padding: 17px 20px;
    border-radius: var(--ags-r-lg);
    background: var(--ags-teal-50);
    border: 1px solid #C9EDEB;
}
.pay-due-label {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 12.5px; font-weight: 600; color: var(--ags-teal-600);
}
.pay-due-value {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.7rem; font-weight: 800; letter-spacing: -.032em; line-height: 1.15;
    color: var(--ags-ink); font-variant-numeric: tabular-nums;
    margin-top: 2px;
}
.pay-due-ico {
    width: 44px; height: 44px; flex-shrink: 0;
    border-radius: 999px;
    display: flex; align-items: center; justify-content: center;
    background: #fff; border: 1px solid #C9EDEB;
    color: var(--ags-teal-600); font-size: 1.2rem;
}

/* ---- Sticky pay panel ---- */
.pay-panel { position: sticky; top: 108px; }
@media (max-width: 1023px) { .pay-panel { position: static; } }

.pay-amount { position: relative; }
.pay-amount .pay-cur {
    position: absolute; left: 17px; top: 50%; transform: translateY(-50%);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 19px; font-weight: 600; color: #A7B5C6;
    pointer-events: none; transition: color .25s;
}
.pay-amount input {
    width: 100%;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 25px; font-weight: 700; letter-spacing: -.03em;
    color: var(--ags-ink); font-variant-numeric: tabular-nums;
    background: #FBFCFE;
    border: 1px solid var(--ags-line);
    border-radius: var(--ags-r-lg);
    padding: 15px 16px 15px 42px;
    transition: border-color .25s, box-shadow .25s, background-color .25s;
}
.pay-amount input:focus {
    outline: none;
    background: #fff;
    border-color: var(--ags-teal);
    box-shadow: 0 0 0 4px rgba(14, 165, 160, .12);
}
.pay-amount:focus-within .pay-cur { color: var(--ags-teal-600); }
/* Spinners add visual noise to a currency field */
.pay-amount input::-webkit-outer-spin-button,
.pay-amount input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pay-amount input[type=number] { -moz-appearance: textfield; }

/* ---- Trust markers ---- */
.pay-trust { display: grid; gap: 11px; }
.pay-trust-row {
    display: flex; align-items: flex-start; gap: .65rem;
    font-size: 12.5px; line-height: 1.55; color: var(--ags-body);
    margin: 0;
}
.pay-trust-row i { font-size: 1.05rem; color: var(--ags-teal-600); flex-shrink: 0; margin-top: 1px; }

.pay-marks {
    display: flex; align-items: center; justify-content: center;
    gap: 14px; flex-wrap: wrap;
}
.pay-marks img {
    height: 14px; width: auto;
    opacity: .5; filter: grayscale(1);
    transition: opacity .4s, filter .4s;
}
.pay-marks img.is-wide { height: 9px; }
.pay-marks:hover img { opacity: .85; filter: none; }
.pay-marks .sep { width: 1px; height: 13px; background: var(--ags-line); }

/* --------------------------------------------------------------------------
   15b. Payment result screens
   -------------------------------------------------------------------------- */

.pay-stage {
    position: relative;
    overflow: hidden;
    background: var(--ags-canvas);
}
.pay-stage::before {
    content: '';
    position: absolute; inset: 0; pointer-events: none;
    background:
        radial-gradient(680px 320px at 50% -10%, rgba(14, 165, 160, .11), transparent 70%),
        radial-gradient(520px 300px at 92% 104%, rgba(124, 92, 255, .07), transparent 70%);
}
.pay-stage.is-error::before {
    background:
        radial-gradient(680px 320px at 50% -10%, rgba(244, 63, 94, .09), transparent 70%),
        radial-gradient(520px 300px at 92% 104%, rgba(11, 44, 77, .05), transparent 70%);
}
.pay-stage > * { position: relative; z-index: 2; }

.pay-result { max-width: 620px; margin: 0 auto; }
.pay-result-card {
    padding: 38px 24px 30px;
    text-align: center;
    border-radius: var(--ags-r-xl);
    box-shadow: var(--ags-sh-lg);
}
@media (min-width: 640px) { .pay-result-card { padding: 52px 48px 38px; } }

.pay-mark {
    position: relative;
    width: 80px; height: 80px; margin: 0 auto 26px;
    border-radius: 999px;
    display: flex; align-items: center; justify-content: center;
    font-size: 2.05rem;
    animation: pay-mark-in .55s cubic-bezier(.2, .7, .3, 1) both;
}
.pay-mark::after {
    content: '';
    position: absolute; inset: -9px;
    border-radius: inherit;
    border: 1px solid currentColor;
    opacity: .2;
}
.pay-mark i { position: relative; z-index: 2; }
.pay-mark.is-success { background: #E4F7EE; color: #08916A; }
.pay-mark.is-error   { background: #FDECEF; color: #D63B54; }

/* One settle on arrival — nothing loops on a result screen */
@keyframes pay-mark-in { from { opacity: 0; transform: scale(.86); } to { opacity: 1; transform: none; } }

.pay-result-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.7rem; font-weight: 800; letter-spacing: -.032em; line-height: 1.15;
    color: var(--ags-ink);
}
@media (min-width: 640px) { .pay-result-title { font-size: 2.05rem; } }
.pay-result-text {
    font-size: 14.5px; line-height: 1.7; color: var(--ags-body);
    max-width: 30rem; margin: 12px auto 0;
}

/* Transaction facts */
.pay-dl {
    margin: 28px 0 0;
    border: 1px solid var(--ags-line);
    border-radius: var(--ags-r-lg);
    background: #FBFCFE;
    overflow: hidden;
    text-align: left;
}
.pay-dl > div {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: 14px 18px;
    border-bottom: 1px solid var(--ags-line-soft);
}
.pay-dl > div:last-child { border-bottom: 0; }
.pay-dl dt { font-size: 13px; color: var(--ags-muted); flex-shrink: 0; }
.pay-dl dd {
    margin: 0;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14px; font-weight: 650; color: var(--ags-ink);
    font-variant-numeric: tabular-nums;
    text-align: right;
    /* Gateway references can be long — wrap them rather than widen the page */
    overflow-wrap: anywhere;
}
.pay-dl dd.is-amount { font-size: 17px; font-weight: 800; letter-spacing: -.02em; }

/* Failure reason returned by the gateway */
.pay-reason {
    margin: 26px 0 0;
    padding: 14px 16px;
    border-radius: var(--ags-r-md);
    background: #FEF3F5;
    border: 1px solid #FBD3DA;
    color: #A8203A;
    font-size: 13.5px; line-height: 1.6;
    text-align: left;
    overflow-wrap: anywhere;
}

/* Next steps */
.pay-next { margin-top: 28px; display: grid; gap: 10px; }
.pay-next .ags-btn { width: 100%; }
@media (min-width: 520px) {
    .pay-next { grid-auto-flow: column; justify-content: center; }
    .pay-next .ags-btn { width: auto; }
}

.pay-help { margin-top: 24px; display: grid; gap: 12px; text-align: left; }
@media (min-width: 640px) { .pay-help { grid-template-columns: 1fr 1fr; } }
.pay-help-item {
    padding: 16px;
    border-radius: var(--ags-r-md);
    background: #FAFCFE;
    border: 1px solid var(--ags-line);
}
.pay-help-title {
    display: flex; align-items: center; gap: .45rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 13px; font-weight: 700; color: var(--ags-ink);
    margin-bottom: 5px;
}
.pay-help-title i { font-size: 1rem; color: var(--ags-teal-600); }
.pay-help-text { font-size: 12.5px; line-height: 1.6; color: var(--ags-muted); }

.pay-foot {
    margin-top: 18px;
    text-align: center;
    font-size: 12px; color: var(--ags-muted);
    overflow-wrap: anywhere;
}

@media (prefers-reduced-motion: reduce) {
    .pay-mark { animation: none; }
    .pay-marks img { opacity: .6; }
}

/* ==========================================================================
   15. Contact & feedback pages   (contact-us.php, feedback.php)
   Appended section — everything above this comment is untouched.
   Prefix: .cf-  (contact / feedback)
   ========================================================================== */

/* ---- Panel that holds the form ---- */
.cf-panel { padding: 1.6rem 1.4rem; }
.cf-panel-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.45rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.15;
    color: var(--ags-ink);
    margin-bottom: .35rem;
}
@media (min-width: 768px) {
    .cf-panel { padding: 2.2rem 2.25rem; }
    .cf-panel-title { font-size: 1.7rem; }
}

/* ---- Contact detail card ---- */
.cf-item { padding: 1.35rem 1.3rem; }
.cf-item-ico {
    width: 46px; height: 46px; border-radius: 15px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.2rem; margin-bottom: .95rem;
    transition: transform .4s cubic-bezier(.2,.7,.3,1);
}
.cf-item:hover .cf-item-ico { transform: translateY(-2px) scale(1.06); }
.cf-item-label {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 12px; font-weight: 600; color: var(--ags-muted);
    margin-bottom: .3rem;
}
.cf-item-value {
    display: block;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14.5px; font-weight: 700; letter-spacing: -.015em; line-height: 1.45;
    color: var(--ags-ink); text-decoration: none;
    overflow-wrap: anywhere;
    transition: color .22s;
}
a.cf-item-value:hover { color: var(--ags-teal-600); }
.cf-item-note { font-size: 12.5px; color: var(--ags-muted); margin-top: .5rem; line-height: 1.5; }

/* ---- Map panel ---- */
.cf-map { overflow: hidden; }
.cf-map-frame { height: 226px; background: #E9EFF6; }
.cf-map-frame iframe {
    display: block; width: 100%; height: 100%; border: 0;
    filter: saturate(.72) contrast(.96);
    transition: filter .6s ease;
}
.cf-map:hover .cf-map-frame iframe { filter: none; }
.cf-map-foot {
    display: flex; align-items: flex-start; gap: .8rem;
    padding: 1rem 1.15rem;
    border-top: 1px solid var(--ags-line);
}
.cf-map-ico {
    width: 34px; height: 34px; border-radius: 11px; flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1rem;
    background: var(--ags-teal-50); color: var(--ags-teal-600);
}
.cf-map-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 13.5px; font-weight: 700; letter-spacing: -.015em; color: var(--ags-ink);
}
.cf-map-sub { font-size: 12.5px; color: var(--ags-muted); margin-top: 2px; line-height: 1.5; }

/* ---- Form rhythm ---- */
.cf-form { display: flex; flex-direction: column; gap: 1.2rem; }
.cf-actions {
    display: flex; flex-direction: column; align-items: flex-start; gap: .9rem;
    padding-top: .25rem;
}
.cf-fineprint { font-size: 12.5px; color: var(--ags-muted); line-height: 1.6; }
.cf-fineprint .ags-link { font-size: 12.5px; }
@media (min-width: 640px) {
    .cf-actions { flex-direction: row; align-items: center; gap: 1.15rem; }
    .cf-fineprint { max-width: 340px; }
}

/* Chevron for our own selects (scoped, so shipped .ags-select is unchanged) */
.cf-selectwrap { position: relative; }
select.cf-select { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 2.6rem; }
.cf-selectwrap > i {
    position: absolute; right: .95rem; top: 50%; transform: translateY(-50%);
    font-size: .95rem; color: #A7B5C6; pointer-events: none;
}

/* ---- Inline error ---- */
.cf-alert {
    display: flex; align-items: flex-start; gap: .65rem;
    padding: 12px 14px; margin-bottom: 1.4rem;
    border-radius: 14px;
    background: #FEECEF; border: 1px solid #FBD3DA; color: #B4223A;
    font-size: 13px; line-height: 1.55;
}
.cf-alert i { font-size: 1.05rem; margin-top: 1px; opacity: .9; flex-shrink: 0; }

/* ---- Success state ---- */
.cf-done { text-align: center; padding: 2.4rem .5rem 2rem; }
.cf-done-ico {
    width: 72px; height: 72px; border-radius: 24px; margin: 0 auto 1.35rem;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem; color: #fff;
    background: var(--ags-grad-brand);
    box-shadow: var(--ags-sh-brand);
    animation: cf-pop .55s cubic-bezier(.2,.9,.3,1.25) both;
}
@keyframes cf-pop { from { opacity: 0; transform: scale(.72); } to { opacity: 1; transform: none; } }
.cf-done-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.35rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.2;
    color: var(--ags-ink); margin-bottom: .6rem;
}
.cf-done-text {
    font-size: 14px; line-height: 1.65; color: var(--ags-body);
    max-width: 420px; margin: 0 auto;
}

/* ---- Satisfaction scale ---- */
.cf-rate { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.cf-rate-opt { position: relative; display: inline-flex; cursor: pointer; }
.cf-rate-opt input {
    position: absolute; inset: 0; width: 100%; height: 100%;
    margin: 0; opacity: 0; cursor: pointer;
}
.cf-rate-opt span {
    display: flex; align-items: center; justify-content: center;
    width: 48px; height: 48px; border-radius: 16px;
    background: #fff; border: 1px solid var(--ags-line);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 15px; font-weight: 700; color: #8A97A8;
    font-variant-numeric: tabular-nums;
    transition: background-color .28s, color .28s, border-color .28s, box-shadow .28s, transform .28s cubic-bezier(.2,.7,.3,1);
}
.cf-rate-opt:hover span { border-color: var(--ags-teal); color: var(--ags-teal-600); }
.cf-rate-opt input:checked + span {
    background: var(--ags-grad-brand); color: #fff; border-color: transparent;
    box-shadow: var(--ags-sh-brand); transform: translateY(-2px);
}
.cf-rate-opt input:focus-visible + span { box-shadow: 0 0 0 4px rgba(14,165,160,.22); }
.cf-scale-ends {
    display: flex; justify-content: space-between; gap: 1rem;
    max-width: 292px; margin-top: .6rem;
    font-size: 12px; color: var(--ags-muted);
}

/* ---- Side panel ---- */
.cf-aside { padding: 1.5rem 1.4rem; }
.cf-aside-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.05rem; font-weight: 700; letter-spacing: -.02em; color: var(--ags-ink);
    margin-bottom: 1.1rem;
}
.cf-points { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1rem; }
.cf-points li { display: flex; align-items: flex-start; gap: .8rem; font-size: 13px; line-height: 1.6; color: var(--ags-body); }
.cf-points strong { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; color: var(--ags-ink); }
.cf-point-ico {
    width: 34px; height: 34px; border-radius: 11px; flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: .95rem;
}

@media (max-width: 640px) {
    .cf-map-frame { height: 190px; }
    .cf-rate { gap: 8px; }
    .cf-rate-opt span { width: 42px; height: 42px; border-radius: 14px; font-size: 14px; }
    .cf-scale-ends { max-width: 250px; }
}

@media (prefers-reduced-motion: reduce) {
    .cf-done-ico { animation: none !important; opacity: 1 !important; transform: none !important; }
    .cf-item:hover .cf-item-ico { transform: none; }
    .cf-rate-opt input:checked + span { transform: none; }
    .cf-map:hover .cf-map-frame iframe { filter: saturate(.72) contrast(.96); }
}

/* ==========================================================================
   15. Standalone pages — register / forgot password / not found
   These three pages render their own <head> and do NOT include
   includes/header.php, so everything they need lives in this section.
   Prefixes: .auth-* (shared two-panel shell), .pwm-* (password meter),
   .nf-* (not found). Append-only — nothing above this line is touched.
   ========================================================================== */

/* ---- 15.1 Two-panel shell ---------------------------------------------- */

.auth-page { background: var(--ags-canvas); min-height: 100vh; }

.auth-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    min-height: 100vh;
}
@media (min-width: 1024px) {
    .auth-split { grid-template-columns: minmax(0, 42%) minmax(0, 58%); }
}
@media (min-width: 1440px) {
    .auth-split { grid-template-columns: minmax(0, 520px) minmax(0, 1fr); }
}

/* Deep gradient brand panel (left) */
.auth-brand {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: var(--ags-grad-deep);
    color: rgba(255, 255, 255, .74);
    display: flex;
    flex-direction: column;
    gap: 26px;
    padding: 26px 22px 32px;
}
.auth-brand::after {
    content: '';
    position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background:
        radial-gradient(540px 320px at 92% 2%, rgba(124, 92, 255, .40), transparent 68%),
        radial-gradient(460px 300px at 0% 104%, rgba(34, 211, 238, .22), transparent 70%);
}
.auth-brand > * { position: relative; z-index: 3; }
.auth-brand > .auth-art { z-index: 1; }

@media (min-width: 1024px) {
    .auth-brand {
        position: sticky; top: 0;
        height: 100vh;
        padding: 46px 44px 40px;
        justify-content: space-between;
        gap: 30px;
    }
}

/* Decorative stemcell / helix artwork inside the brand panel */
.auth-art {
    position: absolute;
    top: -4%; bottom: -4%; right: -8%;
    width: 78%;
    max-width: 470px;
    pointer-events: none;
    opacity: .9;
    mask-image: linear-gradient(105deg, transparent 0%, rgba(0,0,0,.4) 26%, #000 62%);
    -webkit-mask-image: linear-gradient(105deg, transparent 0%, rgba(0,0,0,.4) 26%, #000 62%);
}
.auth-art svg { width: 100%; height: 100%; overflow: visible; }
@media (max-width: 1023px) { .auth-art { opacity: .5; width: 66%; right: -16%; } }

/* One 160px period of the helix marches up, so the loop is seamless */
@keyframes auth-helix-march { from { transform: translateY(0); } to { transform: translateY(-160px); } }
.auth-helix { animation: auth-helix-march 10s linear infinite; }
@keyframes auth-rung-turn { 0%, 100% { opacity: .9; } 50% { opacity: .38; } }
.auth-rungs { animation: auth-rung-turn 3.4s ease-in-out infinite; }

/* Brand panel copy */
.auth-logo {
    display: inline-flex; align-items: center; justify-content: center;
    background: #fff;
    border-radius: 18px;
    padding: 11px 18px;
    box-shadow: 0 20px 38px -22px rgba(0, 0, 0, .8);
    align-self: flex-start;
}
.auth-logo img { height: 44px; width: auto; display: block; }
@media (min-width: 1024px) { .auth-logo img { height: 52px; } }

.auth-brand-body { display: flex; flex-direction: column; gap: 16px; max-width: 30rem; }
.auth-brand-ta {
    font-size: clamp(1.05rem, .92rem + .5vw, 1.3rem);
    font-weight: 600; line-height: 1.55; letter-spacing: 0;
    color: #fff;
}
.auth-brand-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800; letter-spacing: -.032em; line-height: 1.1;
    font-size: clamp(1.7rem, 1.25rem + 1.5vw, 2.4rem);
    color: #fff;
}
.auth-brand-text { font-size: 14.5px; line-height: 1.7; color: rgba(255, 255, 255, .72); }

.auth-points { display: grid; gap: 11px; }
.auth-point { display: flex; align-items: flex-start; gap: .7rem; font-size: 13.5px; line-height: 1.55; color: rgba(255, 255, 255, .78); }
.auth-point i {
    width: 26px; height: 26px; border-radius: 9px; flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: .95rem;
    background: rgba(94, 234, 212, .14);
    border: 1px solid rgba(94, 234, 212, .26);
    color: #5EEAD4;
}
.auth-brand-foot {
    font-size: 12.5px; line-height: 1.65; color: rgba(255, 255, 255, .5);
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, .12);
}
.auth-brand-foot a { color: rgba(255, 255, 255, .82); text-decoration: none; }
.auth-brand-foot a:hover { color: #fff; text-decoration: underline; }

/* Content panel (right) */
.auth-body { display: flex; justify-content: center; padding: 30px 16px 44px; }
@media (min-width: 640px)  { .auth-body { padding: 40px 28px 52px; } }
@media (min-width: 1024px) { .auth-body { padding: 52px 48px 60px; align-items: center; } }
.auth-body-inner { width: 100%; max-width: 720px; }
.auth-body-narrow { max-width: 440px; }

.auth-head { margin-bottom: 24px; }
.auth-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(1.55rem, 1.3rem + .85vw, 2rem);
    font-weight: 800; letter-spacing: -.032em; line-height: 1.14;
    color: var(--ags-ink);
    margin-top: 10px;
}
.auth-sub { margin-top: 8px; font-size: 14px; line-height: 1.6; color: var(--ags-muted); }

/* ---- 15.2 Form furniture ----------------------------------------------- */

.auth-card { padding: 22px; }
@media (min-width: 640px) { .auth-card { padding: 30px; } }

.auth-rule { margin: 24px 0; }

.auth-section-head { display: flex; align-items: center; gap: .7rem; margin-bottom: 15px; }
.auth-step {
    width: 27px; height: 27px; border-radius: 9px; flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 12px; font-weight: 700;
    background: var(--ags-teal-50); color: var(--ags-teal-600);
    border: 1px solid #C9EDEB;
}
.auth-section-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14.5px; font-weight: 700; letter-spacing: -.015em;
    color: var(--ags-ink); line-height: 1.3;
}
.auth-section-hint { font-size: 12.5px; color: var(--ags-muted); line-height: 1.35; }

.auth-grid { display: grid; gap: 15px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .auth-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.auth-field { min-width: 0; }

/* Input with a leading icon */
.auth-ico { position: relative; }
.auth-ico > i {
    position: absolute; left: .92rem; top: 50%; transform: translateY(-50%);
    font-size: 1.05rem; color: #A7B5C6; pointer-events: none;
    transition: color .25s;
}
.auth-ico .ags-input,
.auth-ico .ags-select { padding-left: 2.65rem; }
.auth-ico:focus-within > i { color: var(--ags-teal); }

.auth-ico select.ags-select {
    appearance: none; -webkit-appearance: none;
    cursor: pointer;
    padding-right: 2.4rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237C8DA4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right .9rem center;
    background-size: 15px 15px;
}

/* Show / hide password */
.auth-ico .has-eye { padding-right: 3rem; }
.auth-eye {
    position: absolute; right: .5rem; top: 50%; transform: translateY(-50%);
    width: 32px; height: 32px; border-radius: 10px;
    display: inline-flex; align-items: center; justify-content: center;
    background: transparent; border: 0; padding: 0;
    color: #90A1B5; font-size: 1.05rem; cursor: pointer;
    transition: background-color .2s, color .2s;
}
.auth-eye:hover { background: #F1F5FA; color: var(--ags-teal-600); }
.auth-eye:focus-visible { outline: 2px solid var(--ags-teal); outline-offset: 1px; }

/* File picker that shows the chosen filename */
.auth-file {
    position: relative;
    display: flex; align-items: center; gap: .8rem;
    min-width: 0;
    padding: .62rem .75rem;
    border: 1px dashed #CBD9E7;
    border-radius: var(--ags-r-md);
    background: #FBFDFF;
    transition: border-color .25s, background-color .25s, box-shadow .25s;
}
.auth-file:hover,
.auth-file:focus-within {
    border-color: var(--ags-teal);
    background: var(--ags-teal-50);
    box-shadow: 0 0 0 4px rgba(14, 165, 160, .1);
}
.auth-file input[type="file"] {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    opacity: 0; cursor: pointer;
}
.auth-file-ico {
    width: 38px; height: 38px; border-radius: 12px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.15rem;
    background: var(--ags-teal-50); color: var(--ags-teal-600);
}
.auth-file-body { min-width: 0; }
.auth-file-name {
    display: block;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 13px; font-weight: 600; color: var(--ags-ink);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.auth-file-hint { font-size: 11.5px; color: var(--ags-muted); line-height: 1.4; }
.auth-file.is-set { border-style: solid; border-color: #C9EDEB; background: var(--ags-teal-50); }
.auth-file.is-set .auth-file-ico { background: #fff; }

.auth-hint { margin-top: .45rem; font-size: 12px; color: var(--ags-muted); line-height: 1.5; }
.auth-hint.is-ok   { color: #067A57; }
.auth-hint.is-warn { color: #A9700A; }

.auth-submit { margin-top: 26px; }
.auth-fineprint { margin-top: 14px; font-size: 12px; line-height: 1.6; color: var(--ags-muted); }

.auth-foot {
    margin-top: 22px; padding-top: 18px;
    border-top: 1px solid var(--ags-line);
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: 12px;
    font-size: 13.5px; color: var(--ags-muted);
}
.auth-foot a { color: var(--ags-teal-600); font-weight: 600; text-decoration: none; }
.auth-foot a:hover { text-decoration: underline; }

/* ---- 15.3 Alerts & the approval-pending success state ------------------- */

.auth-alert {
    display: flex; align-items: flex-start; gap: .75rem;
    padding: 13px 15px;
    border-radius: 15px;
    font-size: 13.5px; line-height: 1.55;
    margin-bottom: 18px;
}
.auth-alert i { font-size: 1.15rem; line-height: 1.25; flex-shrink: 0; }
.auth-alert-error { background: #FEECEF; border: 1px solid #FBD3DA; color: #A81E36; }
.auth-alert-ok    { background: #E9F9F1; border: 1px solid #C9F0E0; color: #06614A; }

.auth-done {
    position: relative; overflow: hidden;
    margin-bottom: 26px;
    padding: 26px 24px 24px;
    border-radius: var(--ags-r-xl);
    background: var(--ags-grad-deep);
    color: rgba(255, 255, 255, .78);
    box-shadow: 0 30px 60px -34px rgba(11, 44, 77, .6);
}
.auth-done::after {
    content: '';
    position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(360px 210px at 94% 0%, rgba(94, 234, 212, .34), transparent 70%);
}
.auth-done > * { position: relative; z-index: 2; }
.auth-done-ico {
    width: 52px; height: 52px; border-radius: 17px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem; margin-bottom: 14px;
    background: rgba(94, 234, 212, .16);
    border: 1px solid rgba(94, 234, 212, .32);
    color: #5EEAD4;
}
.auth-done-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 20px; font-weight: 700; letter-spacing: -.022em; color: #fff;
}
.auth-done-text { margin-top: 7px; font-size: 14px; line-height: 1.65; color: rgba(255, 255, 255, .76); }
.auth-done-steps { display: grid; gap: 9px; margin-top: 17px; }
.auth-done-step { display: flex; align-items: flex-start; gap: .6rem; font-size: 13px; line-height: 1.55; color: rgba(255, 255, 255, .72); }
.auth-done-step i { color: #5EEAD4; font-size: 1.05rem; line-height: 1.35; flex-shrink: 0; }
.auth-done-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }

/* ---- 15.4 Password strength meter (visual only) ------------------------- */

.pwm { margin-top: .6rem; }
.pwm-track { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.pwm-track span {
    display: block; height: 5px; border-radius: 999px;
    background: #E6ECF4;
    transition: background-color .35s ease;
}
.pwm-foot {
    display: flex; align-items: center; justify-content: space-between;
    gap: .75rem; margin-top: .45rem;
}
.pwm-level {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 12px; font-weight: 600; color: var(--ags-muted);
}
.pwm-tip { font-size: 11.5px; color: var(--ags-muted); text-align: right; }

.pwm[data-level="1"] .pwm-track span:nth-child(-n+1) { background: #F43F5E; }
.pwm[data-level="1"] .pwm-level { color: #C42A44; }
.pwm[data-level="2"] .pwm-track span:nth-child(-n+2) { background: #F5A524; }
.pwm[data-level="2"] .pwm-level { color: #A9700A; }
.pwm[data-level="3"] .pwm-track span:nth-child(-n+3) { background: var(--ags-teal); }
.pwm[data-level="3"] .pwm-level { color: var(--ags-teal-600); }
.pwm[data-level="4"] .pwm-track span { background: var(--ags-emerald); }
.pwm[data-level="4"] .pwm-level { color: #067A57; }

/* ---- 15.5 Not found ----------------------------------------------------- */

.nf-page {
    position: relative; overflow: hidden;
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    background: var(--ags-canvas);
    padding: 56px 0 60px;
}
.nf-page::before {
    content: '';
    position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background:
        radial-gradient(720px 420px at 84% -8%, rgba(14, 165, 160, .16), transparent 68%),
        radial-gradient(680px 400px at 6% 108%, rgba(124, 92, 255, .16), transparent 70%);
}
.nf-inner { position: relative; z-index: 3; max-width: 640px; margin: 0 auto; text-align: center; }

.nf-num {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800; letter-spacing: -.05em; line-height: .88;
    font-size: clamp(6rem, 3.5rem + 19vw, 15rem);
    background: var(--ags-grad-brand);
    -webkit-background-clip: text; background-clip: text;
    color: transparent; -webkit-text-fill-color: transparent;
}
.nf-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(1.4rem, 1.15rem + 1vw, 1.95rem);
    font-weight: 800; letter-spacing: -.03em; line-height: 1.18;
    color: var(--ags-ink);
    margin-top: 6px;
}
.nf-text {
    margin: 12px auto 0;
    max-width: 30rem;
    font-size: 15px; line-height: 1.7; color: var(--ags-body);
}
.nf-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 26px; }
.nf-ref { margin-top: 34px; font-size: 12px; color: var(--ags-muted); }
.nf-ref code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 11.5px; letter-spacing: .04em;
    background: #fff; border: 1px solid var(--ags-line); border-radius: 8px;
    padding: .18rem .45rem; color: #5A6B80;
}

.nf-orb { position: absolute; z-index: 1; pointer-events: none; opacity: .6; }
.nf-orb svg { width: 100%; height: auto; display: block; overflow: visible; }
.nf-orb-a { top: 7%; right: 5%; width: min(280px, 27vw); }
.nf-orb-b { bottom: 5%; left: 3%; width: min(210px, 23vw); }
@media (max-width: 767px) {
    .nf-orb { opacity: .32; }
    .nf-orb-a { top: 2%; right: -6%; width: 46vw; }
    .nf-orb-b { bottom: 1%; left: -8%; width: 40vw; }
}

@keyframes nf-drift {
    0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
    50%      { transform: translate3d(0, -26px, 0) rotate(4deg); }
}
.nf-drift   { animation: nf-drift 17s ease-in-out infinite; }
.nf-drift-b { animation: nf-drift 23s ease-in-out infinite reverse; }

/* ---- 15.6 Reduced motion ------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
    .auth-rungs { animation: none !important; opacity: .7 !important; }
    .auth-helix { animation-duration: 40s !important; }
    .nf-drift, .nf-drift-b { animation: none !important; transform: none !important; }
}

/* ==========================================================================
   15. Long-form document pages  (terms.php, privacy-policy.php)
   Reading layout: compact deep header, sticky contents rail, prose card.
   Prefix .ags-doc-* â€” appended only, nothing above this line is altered.
   ========================================================================== */

/* ---- document header ---- */
.ags-doc-hero { padding: 72px 0 104px; }
.ags-doc-hero-inner { max-width: 780px; }
.ags-doc-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: clamp(2rem, 4.6vw, 3rem);
    letter-spacing: -.034em;
    line-height: 1.08;
    color: #fff;
    margin: 14px 0 0;
}
.ags-doc-hero-sub {
    margin: 14px 0 0;
    max-width: 62ch;
    font-size: 15.5px;
    line-height: 1.75;
    color: rgba(255, 255, 255, .72);
}
.ags-doc-meta { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 24px; }
.ags-doc-metaitem {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: 7px 13px; border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .17);
    color: rgba(255, 255, 255, .84);
    font-size: 12.5px; line-height: 1.3;
}
.ags-doc-metaitem i { font-size: 14px; color: #7FE7E3; }

@media (max-width: 768px) {
    .ags-doc-hero { padding: 52px 0 84px; }
    .ags-doc-hero-sub { font-size: 14.5px; }
}

/* ---- two-column reading layout ---- */
.ags-doc-wrap { position: relative; z-index: 5; margin-top: -60px; margin-bottom: 40px; }
.ags-doc-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}
@media (min-width: 1024px) {
    .ags-doc-grid { grid-template-columns: 274px minmax(0, 1fr); gap: 32px; }
    .ags-doc-rail { position: sticky; top: 22px; }
}

/* ---- contents rail ---- */
.ags-doc-toc {
    background: var(--ags-surface);
    border: 1px solid var(--ags-line);
    border-radius: var(--ags-r-xl);
    box-shadow: var(--ags-sh-sm);
    padding: 16px;
}
.ags-doc-toc-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 12.5px; font-weight: 700; color: var(--ags-ink);
    margin: 0; padding: 2px 8px 10px;
}
.ags-doc-prog {
    height: 3px; border-radius: 999px; overflow: hidden;
    background: var(--ags-line-soft); margin: 0 8px 12px;
}
.ags-doc-prog span {
    display: block; height: 100%; width: 0; border-radius: 999px;
    background: var(--ags-grad-brand);
    transition: width .15s linear;
}
.ags-doc-toc-nav { display: flex; flex-direction: column; gap: 2px; }
.ags-doc-toc-link {
    position: relative;
    display: flex; align-items: flex-start; gap: 10px;
    padding: 9px 12px; border-radius: 12px;
    font-size: 13.5px; line-height: 1.4; font-weight: 500;
    color: var(--ags-body); text-decoration: none;
    transition: background-color .22s, color .22s;
}
.ags-doc-toc-num {
    font-size: 11.5px; font-weight: 700; color: #A7B5C6;
    font-variant-numeric: tabular-nums; padding-top: 1px;
}
.ags-doc-toc-link:hover { background: #F4F8FC; color: var(--ags-ink); }
.ags-doc-toc-link.is-current { background: var(--ags-teal-50); color: var(--ags-teal-600); font-weight: 600; }
.ags-doc-toc-link.is-current .ags-doc-toc-num { color: var(--ags-teal); }
.ags-doc-toc-link.is-current::before {
    content: ''; position: absolute; left: 0; top: 9px; bottom: 9px;
    width: 3px; border-radius: 999px; background: var(--ags-teal);
}
.ags-doc-ask {
    margin: 14px 8px 4px; padding-top: 14px;
    border-top: 1px solid var(--ags-line-soft);
}
.ags-doc-ask p { font-size: 12.5px; color: var(--ags-muted); margin: 0 0 6px; }

/* ---- prose card ---- */
.ags-doc-body { border-radius: var(--ags-r-xl); padding: 30px 22px; }
@media (min-width: 768px) { .ags-doc-body { padding: 42px 48px; } }

.ags-doc-sec {
    padding: 28px 0;
    border-top: 1px solid var(--ags-line-soft);
    scroll-margin-top: 26px;
}
.ags-doc-sec:first-of-type { padding-top: 0; border-top: 0; }
.ags-doc-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.ags-doc-n {
    width: 34px; height: 34px; flex: none; border-radius: 11px;
    display: inline-flex; align-items: center; justify-content: center;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 12.5px; font-weight: 700;
    font-variant-numeric: tabular-nums;
    background: var(--ags-teal-50); color: var(--ags-teal-600); border: 1px solid #C9EDEB;
}
.ags-doc-n.is-navy   { background: #EEF3F9; color: var(--ags-navy); border-color: var(--ags-line); }
.ags-doc-n.is-violet { background: var(--ags-violet-50); color: #5A3FD6; border-color: #DCD5FF; }
.ags-doc-n.is-rose   { background: #FEECEF; color: #B4223A; border-color: #FBD3DA; }
.ags-doc-sec h2 {
    margin: 0; font-size: 19px; line-height: 1.32;
    font-weight: 700; letter-spacing: -.02em; color: var(--ags-ink);
}

.ags-doc-prose { max-width: 68ch; }
.ags-doc-prose p { font-size: 15px; line-height: 1.75; color: var(--ags-body); margin: 0 0 13px; }
.ags-doc-prose p:last-child { margin-bottom: 0; }
.ags-doc-prose strong { color: var(--ags-ink); font-weight: 600; }

.ags-doc-bullets {
    list-style: none; margin: 15px 0 0; padding: 0;
    display: flex; flex-direction: column; gap: 12px;
}
.ags-doc-bullets li {
    position: relative; padding-left: 25px;
    font-size: 15px; line-height: 1.72; color: var(--ags-body);
}
.ags-doc-bullets li::before {
    content: ''; position: absolute; left: 5px; top: .62em;
    width: 7px; height: 7px; border-radius: 999px;
    background: var(--ags-teal); box-shadow: 0 0 0 3px rgba(14, 165, 160, .13);
}
.ags-doc-bullets li > strong:first-child { display: block; margin-bottom: 2px; }

.ags-doc-tiles {
    list-style: none; margin: 16px 0 0; padding: 0;
    display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 620px) { .ags-doc-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ags-doc-tiles li {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 13px 15px; border-radius: 14px;
    background: #F7FAFD; border: 1px solid var(--ags-line);
    font-size: 14px; line-height: 1.55; color: var(--ags-body);
}
.ags-doc-tiles i { font-size: 16px; color: var(--ags-teal); margin-top: 1px; }

.ags-doc-callout {
    border: 1px solid #C9EDEB; border-radius: var(--ags-r-lg);
    padding: 22px; background: linear-gradient(180deg, #F3FBFB 0%, #FFFFFF 72%);
}
@media (min-width: 768px) { .ags-doc-callout { padding: 26px 28px; } }
.ags-doc-plat {
    list-style: none; margin: 16px 0 0; padding: 0;
    display: flex; flex-direction: column; gap: 10px;
}
.ags-doc-plat li {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 14px 16px; background: #fff;
    border: 1px solid var(--ags-line); border-radius: 14px;
}
.ags-doc-plat-ico {
    width: 34px; height: 34px; flex: none; border-radius: 11px;
    display: inline-flex; align-items: center; justify-content: center;
    color: #fff; font-size: 14px;
}
.ags-doc-plat p { margin: 0; font-size: 14px; line-height: 1.65; color: var(--ags-body); }
.ags-doc-plat strong { display: block; margin-bottom: 2px; color: var(--ags-ink); font-weight: 600; }

.ags-doc-foot {
    margin-top: 26px; padding-top: 20px;
    border-top: 1px solid var(--ags-line);
    display: flex; flex-wrap: wrap; align-items: center;
    justify-content: space-between; gap: 14px;
}
.ags-doc-ref { margin: 0; font-size: 12.5px; color: var(--ags-muted); }

@media (max-width: 480px) {
    .ags-doc-body { padding: 26px 18px; }
    .ags-doc-sec h2 { font-size: 17px; }
    .ags-doc-foot { justify-content: flex-start; }
}

/* ---- back to top ---- */
.ags-doc-top {
    position: fixed; right: 22px; bottom: 24px; z-index: 55;
    width: 46px; height: 46px; border-radius: 999px;
    display: inline-flex; align-items: center; justify-content: center;
    background: #fff; color: var(--ags-navy); font-size: 17px;
    border: 1px solid var(--ags-line); box-shadow: var(--ags-sh-md);
    opacity: 0; visibility: hidden; transform: translateY(12px);
    cursor: pointer;
    transition: opacity .3s, transform .3s, visibility .3s, background-color .25s, color .25s, border-color .25s;
}
.ags-doc-top.is-on { opacity: 1; visibility: visible; transform: none; }
.ags-doc-top:hover { background: var(--ags-teal); border-color: transparent; color: #fff; }
@media (max-width: 640px) {
    .ags-doc-top { right: 14px; bottom: 16px; width: 42px; height: 42px; font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
    .ags-doc-prog span { transition: none; }
    .ags-doc-top { transform: none; }
}

/* ==========================================================================
   HOME PAGE  (prefix: hm-)
   Appended for index.php + TEMPLETE/hero.php. Every rule below is namespaced
   with .hm- so nothing shipped earlier in this file changes.
   ========================================================================== */

/* Plain grouping wrapper. Keeps .reveal elements off the shell's one-shot
   entrance animation (body.ags-ready .ags-shell > *) so the scroll reveal
   stays in control of its own opacity. */
.hm-wrap { position: relative; }

/* ---- Hero ---------------------------------------------------------------- */

.hm-hero { padding: 66px 0 112px; }
.hm-hero-copy { max-width: 44rem; }

.hm-hero-title {
    font-size: clamp(2.1rem, 5.2vw, 3.85rem);
    margin: 0 0 20px;
}

/* Lighter gradient than --ags-grad-brand: the brand teal to violet ramp is
   too dark to read as a highlight on the deep hero. */
.hm-hero-word {
    background: linear-gradient(120deg, #5EEAD4 0%, #7DD3FC 52%, #C4B5FD 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

.hm-hero-lead {
    max-width: 35rem;
    margin: 0;
    font-size: 16.5px;
    line-height: 1.75;
    color: rgba(255, 255, 255, .68);
}

.hm-hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.hm-trust {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 28px;
    max-width: 42rem;
    margin-top: 42px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, .13);
}
.hm-trust-item {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    font-size: 12.5px;
    color: rgba(255, 255, 255, .62);
}
.hm-trust-item i { font-size: 1.1rem; color: #5EEAD4; opacity: .92; }

@media (max-width: 767px) {
    .hm-hero { padding: 44px 0 84px; }
    .hm-hero-lead { font-size: 15.5px; }
    .hm-trust { margin-top: 30px; padding-top: 20px; gap: 10px 20px; }
}
@media (max-width: 479px) {
    .hm-hero-cta { gap: 10px; }
    .hm-hero-cta .ags-btn { flex: 1 1 100%; }
}

/* ---- Stats strip (one divided inline band, not tiles) -------------------- */

.hm-statsband { position: relative; z-index: 20; margin-top: -58px; }

.hm-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    background: var(--ags-surface);
    border: 1px solid var(--ags-line);
    border-radius: var(--ags-r-xl);
    box-shadow: var(--ags-sh-lg);
    padding: 26px 10px;
}
.hm-stat { position: relative; text-align: center; padding: 6px 20px; }
.hm-stat + .hm-stat::before {
    content: '';
    position: absolute; left: 0; top: 4px; bottom: 4px;
    width: 1px;
    background: linear-gradient(180deg, transparent, var(--ags-line) 20%, var(--ags-line) 80%, transparent);
}
.hm-stat-val {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(1.8rem, 3.3vw, 2.55rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.035em;
    color: var(--ags-ink);
    font-variant-numeric: tabular-nums;
    margin: 0;
}
.hm-stat-val span {
    background: var(--ags-grad-brand);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}
.hm-stat-lab { margin: 10px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--ags-muted); }

/* Four labels across get cramped below ~900px, so the strip folds to 2x2 and
   the vertical rules give way to a single horizontal one between the rows. */
@media (max-width: 899px) {
    .hm-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 22px 6px; row-gap: 26px; }
    .hm-stat { padding: 4px 14px; }
    .hm-stat:nth-child(odd)::before { display: none; }
    .hm-stat:nth-child(n+3)::after {
        content: '';
        position: absolute; left: 14px; right: 14px; top: -13px;
        height: 1px; background: var(--ags-line);
    }
}
@media (max-width: 767px) {
    .hm-statsband { margin-top: -44px; }
    .hm-stats { padding: 20px 4px; }
    .hm-stat { padding: 4px 10px; }
}

/* ---- Section scaffolding ------------------------------------------------- */

.hm-sec { position: relative; padding: 88px 0; }
.hm-sec-soft {
    background: var(--ags-grad-soft);
    border-top: 1px solid var(--ags-line);
    border-bottom: 1px solid var(--ags-line);
}
.hm-sec-white {
    background: var(--ags-surface);
    border-top: 1px solid var(--ags-line);
    border-bottom: 1px solid var(--ags-line);
}

.hm-sechead { max-width: 42rem; margin-bottom: 48px; }
.hm-sechead-mid { margin-left: auto; margin-right: auto; text-align: center; }
.hm-sectitle {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(1.55rem, 3.1vw, 2.35rem);
    font-weight: 800;
    letter-spacing: -.03em;
    line-height: 1.15;
    color: var(--ags-ink);
    margin: 14px 0 0;
}
.hm-secsub { margin: 14px 0 0; font-size: 15.5px; line-height: 1.72; color: var(--ags-body); }

@media (max-width: 767px) {
    .hm-sec { padding: 60px 0; }
    .hm-sechead { margin-bottom: 32px; }
    .hm-secsub { font-size: 14.5px; }
}

/* ---- Grids --------------------------------------------------------------- */

.hm-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.hm-grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 1023px) {
    .hm-grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hm-grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 599px) {
    .hm-grid3, .hm-grid4 { grid-template-columns: minmax(0, 1fr); gap: 16px; }
}

/* ---- Specialisation card ------------------------------------------------- */

.hm-card {
    position: relative;
    overflow: hidden;
    height: 100%;
    background: var(--ags-surface);
    border: 1px solid var(--ags-line);
    border-radius: var(--ags-r-xl);
    padding: 26px 24px;
    box-shadow: var(--ags-sh-sm);
    transition: transform .4s cubic-bezier(.2,.7,.3,1), box-shadow .4s, border-color .4s;
}
.hm-card::after {
    content: '';
    position: absolute; left: 0; bottom: 0;
    height: 3px; width: 0;
    background: var(--ags-grad-brand);
    transition: width .5s cubic-bezier(.2,.7,.3,1);
}
.hm-card:hover { transform: translateY(-4px); box-shadow: var(--ags-sh-md); border-color: #DAE6F2; }
.hm-card:hover::after { width: 100%; }

.hm-ico {
    width: 52px; height: 52px;
    border-radius: 17px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 18px;
    transition: transform .4s cubic-bezier(.2,.7,.3,1);
}
.hm-card:hover .hm-ico { transform: translateY(-2px) rotate(-5deg); }

.hm-ico-teal   { background: var(--ags-teal-50);   color: var(--ags-teal-600); }
.hm-ico-violet { background: var(--ags-violet-50); color: #5A3FD6; }
.hm-ico-cyan   { background: #E4F7FC;              color: #0E7C93; }
.hm-ico-navy   { background: #EAF1F9;              color: var(--ags-navy); }
.hm-ico-rose   { background: #FEECEF;              color: #D63B54; }
.hm-ico-amber  { background: #FEF6E7;              color: #B47A0A; }

.hm-card-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 16.5px;
    font-weight: 700;
    letter-spacing: -.02em;
    line-height: 1.3;
    color: var(--ags-ink);
    margin: 0 0 9px;
}
.hm-card-text { margin: 0; font-size: 13.8px; line-height: 1.68; color: var(--ags-muted); }

/* ---- Value card (Why Agathisha) ----------------------------------------- */

.hm-why {
    height: 100%;
    background: rgba(255, 255, 255, .82);
    border: 1px solid rgba(255, 255, 255, .9);
    border-radius: var(--ags-r-xl);
    padding: 26px 24px;
    box-shadow: var(--ags-sh-sm);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: transform .4s cubic-bezier(.2,.7,.3,1), box-shadow .4s, background-color .4s;
}
.hm-why:hover { transform: translateY(-4px); background: #fff; box-shadow: var(--ags-sh-md); }
.hm-why-ico {
    width: 48px; height: 48px;
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 18px;
    color: #fff;
    background: var(--ags-grad-brand);
    background-size: 160% 100%;
    box-shadow: var(--ags-sh-brand);
    transition: background-position .5s, transform .4s cubic-bezier(.2,.7,.3,1);
}
.hm-why:hover .hm-why-ico { background-position: 100% 0; transform: translateY(-2px); }

/* ---- Enrolment timeline -------------------------------------------------- */

.hm-steps {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}
.hm-steps::before {
    content: '';
    position: absolute;
    left: 11%; right: 11%; top: 28px;
    height: 2px; border-radius: 2px;
    background: linear-gradient(90deg, rgba(14,165,160,.18), rgba(124,92,255,.34) 50%, rgba(14,165,160,.18));
}
.hm-step { position: relative; text-align: center; padding: 0 6px; }
.hm-step-num {
    position: relative;
    z-index: 2;
    width: 58px; height: 58px;
    margin: 0 auto 20px;
    border-radius: 20px;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.15rem; font-weight: 800;
    letter-spacing: -.02em;
    color: #fff;
    background: var(--ags-grad-deep-sm);
    box-shadow: 0 0 0 8px var(--ags-surface), 0 16px 30px -16px rgba(11, 44, 77, .65);
    transition: transform .4s cubic-bezier(.2,.7,.3,1);
}
.hm-step:hover .hm-step-num { transform: translateY(-3px); }
.hm-step-ico {
    display: inline-flex; align-items: center; justify-content: center;
    width: 30px; height: 30px;
    border-radius: 10px;
    margin-bottom: 10px;
    font-size: .95rem;
    background: var(--ags-teal-50);
    color: var(--ags-teal-600);
}
.hm-steps-foot { margin-top: 46px; text-align: center; }

@media (max-width: 1023px) {
    .hm-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 22px; }
    .hm-steps::before { display: none; }
}
@media (max-width: 599px) {
    .hm-steps { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .hm-steps::before {
        display: block;
        left: 28px; right: auto; top: 24px; bottom: 42px;
        width: 2px; height: auto;
        background: linear-gradient(180deg, rgba(14,165,160,.28), rgba(124,92,255,.3));
    }
    .hm-step {
        display: grid;
        grid-template-columns: 58px minmax(0, 1fr);
        gap: 18px;
        text-align: left;
        padding: 0 0 28px;
    }
    .hm-step-num { margin: 0; }
    .hm-steps-foot { margin-top: 26px; text-align: left; }
}

/* ---- Closing call to action --------------------------------------------- */

.hm-cta {
    position: relative;
    overflow: hidden;
    border-radius: var(--ags-r-xl);
    padding: 54px 48px;
    color: rgba(255, 255, 255, .72);
    background: var(--ags-grad-deep);
    box-shadow: 0 34px 66px -36px rgba(11, 44, 77, .6);
}
.hm-cta::before {
    content: '';
    position: absolute; inset: 0; pointer-events: none;
    background:
        radial-gradient(560px 300px at 88% 4%, rgba(34, 211, 238, .26), transparent 68%),
        radial-gradient(460px 280px at 4% 104%, rgba(124, 92, 255, .30), transparent 70%);
}
.hm-cta::after {
    content: '';
    position: absolute; inset: 0; pointer-events: none;
    background-image: radial-gradient(rgba(255, 255, 255, .14) 1px, transparent 1px);
    background-size: 24px 24px;
    mask-image: radial-gradient(72% 76% at 84% 16%, #000, transparent 76%);
    -webkit-mask-image: radial-gradient(72% 76% at 84% 16%, #000, transparent 76%);
}
.hm-cta > * { position: relative; z-index: 2; }

.hm-cta-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}
.hm-cta-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(1.55rem, 3vw, 2.3rem);
    font-weight: 800;
    letter-spacing: -.03em;
    line-height: 1.16;
    color: #fff;
    margin: 14px 0 0;
    max-width: 22ch;
}
.hm-cta-sub { margin: 14px 0 0; max-width: 34rem; font-size: 15px; line-height: 1.7; color: rgba(255, 255, 255, .64); }
.hm-cta-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hm-cta-note {
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px;
    margin-top: 18px;
}
.hm-cta-note a {
    display: inline-flex; align-items: center; gap: .5rem;
    font-size: 13px; color: rgba(255, 255, 255, .68);
    text-decoration: none;
    transition: color .22s;
}
.hm-cta-note a:hover { color: #fff; }
.hm-cta-note i { font-size: 1rem; color: rgba(255, 255, 255, .45); }

@media (max-width: 767px) {
    .hm-cta { padding: 38px 24px; border-radius: var(--ags-r-lg); }
    .hm-cta-actions { width: 100%; }
    .hm-cta-actions .ags-btn { flex: 1 1 100%; }
}

/* ---- Reduced motion ------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
    .hm-card:hover,
    .hm-why:hover,
    .hm-step:hover .hm-step-num { transform: none; }
    .hm-card:hover .hm-ico,
    .hm-why:hover .hm-why-ico { transform: none; }
    .hm-card::after { display: none; }
}

/* --------------------------------------------------------------------------
   15. Public course details  (course-details.php — prefix: cd-)
   Appended section. Nothing shipped above is modified. Layout: a full-bleed
   hero carrying the course cover, then a two column body whose right rail
   (the enrol card) follows the reader down the page on desktop.
   -------------------------------------------------------------------------- */

/* ---- Hero ---- */
.cd-hero {
    position: relative;
    overflow: hidden;
    background: var(--ags-grad-deep);
    color: #fff;
    padding: 40px 0 128px;
}
.cd-hero-media { position: absolute; inset: 0; z-index: 0; }
.cd-hero-media img {
    width: 100%; height: 100%;
    object-fit: cover;
    transform: scale(1.04);
    display: block;
}
.cd-hero-veil {
    position: absolute; inset: 0; z-index: 1;
    background:
        linear-gradient(100deg, rgba(7,23,42,.96) 0%, rgba(9,30,58,.92) 42%, rgba(43,33,96,.76) 100%),
        radial-gradient(680px 340px at 88% -12%, rgba(34,211,238,.26), transparent 70%);
}
/* the dot grid from .ags-dots has to sit above the cover, not behind it */
.cd-hero::before { z-index: 2; }
.cd-hero-inner { position: relative; z-index: 3; }
.cd-hero h1 { color: #fff; }

.cd-crumb {
    display: flex; align-items: center; flex-wrap: wrap; gap: .5rem;
    font-size: 12.5px; color: rgba(255,255,255,.55);
    margin-bottom: 18px;
}
.cd-crumb a { color: rgba(255,255,255,.66); text-decoration: none; transition: color .22s; }
.cd-crumb a:hover { color: #fff; }
.cd-crumb i { font-size: 11px; opacity: .5; }
.cd-crumb-now {
    color: rgba(255,255,255,.9);
    min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.cd-hero-eyebrow { margin-bottom: 12px; }
.cd-title {
    color: #fff;
    font-size: clamp(1.7rem, 1.05rem + 2.7vw, 3rem);
    max-width: 800px;
}

.cd-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; max-width: 860px; }
.cd-chip {
    display: inline-flex; align-items: center; gap: .42rem;
    padding: .42rem .8rem;
    border-radius: 999px;
    background: rgba(255,255,255,.09);
    border: 1px solid rgba(255,255,255,.16);
    color: rgba(255,255,255,.86);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 12px; font-weight: 600; line-height: 1.45;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.cd-chip i { font-size: .95rem; opacity: .75; }
.cd-chip.is-open { background: rgba(94,234,212,.15); border-color: rgba(94,234,212,.32); color: #A7F3E4; }

.cd-herofoot {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: 16px;
    max-width: 800px;
    margin-top: 26px; padding-top: 22px;
    border-top: 1px solid rgba(255,255,255,.13);
}
.cd-tutors { display: flex; align-items: center; gap: 12px; min-width: 0; }
.cd-avastack { display: flex; }
.cd-ava {
    width: 38px; height: 38px; flex: 0 0 auto;
    border-radius: 999px; overflow: hidden;
    border: 2px solid rgba(255,255,255,.85);
    background: #123A63;
    margin-left: -10px;
    box-shadow: var(--ags-sh-sm);
}
.cd-avastack .cd-ava:first-child { margin-left: 0; }
.cd-ava img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cd-tutors-txt { min-width: 0; }
.cd-tutors-txt .k, .cd-feetile .k {
    display: block;
    font-size: 11.5px; line-height: 1.35;
    color: rgba(255,255,255,.55);
}
.cd-tutors-txt .v {
    display: block;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14px; font-weight: 600; color: #fff;
    overflow: hidden; text-overflow: ellipsis;
}
.cd-feetile {
    padding: 10px 16px;
    border-radius: var(--ags-r-md);
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.16);
}
.cd-feetile .v {
    display: block;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 20px; font-weight: 800; letter-spacing: -.025em; color: #fff;
    font-variant-numeric: tabular-nums;
}

/* ---- Body layout ---- */
.cd-wrap { position: relative; z-index: 5; margin-top: -84px; }
.cd-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
.cd-aside { order: -1; }                     /* enrol card first on small screens */
.cd-main { min-width: 0; }

@media (min-width: 1024px) {
    .cd-grid { grid-template-columns: minmax(0, 1fr) 366px; gap: 26px; }
    .cd-aside { order: 0; }
    .cd-sticky { position: sticky; top: 130px; }
}
/* short laptop screens: let a tall card scroll inside itself rather than
   leaving its lower half unreachable while it is pinned */
@media (min-width: 1024px) and (max-height: 880px) {
    .cd-sticky { max-height: calc(100vh - 136px); overflow-y: auto; scrollbar-width: thin; }
}

/* ---- Tabs (the JS hooks .course-nav-tabs / .tab-pane are preserved) ---- */
.cd-tabbar {
    overflow-x: auto; overflow-y: hidden;
    padding: 2px 0 4px;
    margin-bottom: 18px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.cd-tabbar::-webkit-scrollbar { display: none; }
.cd-tabs {
    display: inline-flex; align-items: center; gap: 4px;
    list-style: none; margin: 0;
    padding: 6px;
    border-radius: 999px;
    background: rgba(255,255,255,.96);
    border: 1px solid var(--ags-line);
    box-shadow: var(--ags-sh-md);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
}
.cd-tabs li {
    padding: .6rem 1.15rem;
    border-radius: 999px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 13px; font-weight: 600; color: #55677E;
    white-space: nowrap; cursor: pointer;
    transition: background-color .25s, color .25s, box-shadow .25s;
}
.cd-tabs li:hover { background: #F1F6FB; color: var(--ags-ink); }
.cd-tabs li.active { background: var(--ags-grad-brand); color: #fff; box-shadow: var(--ags-sh-brand); }
.cd-panes .tab-pane.hidden { display: none; }

/* ---- Content blocks ---- */
.cd-block { padding: 0; overflow: hidden; }
.cd-block + .cd-block { margin-top: 18px; }
.cd-block-head {
    display: flex; align-items: flex-start; gap: 14px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--ags-line-soft);
}
.cd-block-ico {
    width: 42px; height: 42px; flex: 0 0 auto;
    border-radius: 14px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.15rem;
}
.cd-block-title {
    font-size: 16.5px; font-weight: 700; letter-spacing: -.02em;
    color: var(--ags-ink);
    margin: 0 0 2px;
}
.cd-block-body { padding: 20px; }
.cd-block .ags-empty { padding: 3rem 1.5rem; }

.cd-prose p { margin: 0; font-size: 15px; line-height: 1.85; color: var(--ags-body); }
.cd-prose p:empty::after {
    content: 'Details for this programme will be published shortly.';
    color: var(--ags-muted);
    font-size: 14px;
}

/* ---- Highlights ---- */
.cd-hl { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
@media (min-width: 640px) { .cd-hl { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cd-hl-item {
    display: flex; align-items: flex-start; gap: .7rem;
    padding: 13px 15px;
    border-radius: 16px;
    background: #FAFCFE;
    border: 1px solid var(--ags-line);
    font-size: 13.5px; line-height: 1.55; color: #3C4E66;
}
.cd-hl-item i {
    flex: 0 0 auto;
    width: 22px; height: 22px; margin-top: 1px;
    border-radius: 8px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--ags-teal-50); color: var(--ags-teal-600);
    font-size: 10px;
}

/* ---- Facts grid ---- */
.cd-facts {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    background: var(--ags-line);
    border: 1px solid var(--ags-line);
    border-radius: var(--ags-r-md);
    overflow: hidden;
}
@media (min-width: 768px) { .cd-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.cd-fact { background: #fff; padding: 13px 15px; }
.cd-fact .k { display: block; font-size: 11.5px; color: var(--ags-muted); margin-bottom: 3px; }
.cd-fact .v {
    display: block;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 13.5px; font-weight: 650; color: var(--ags-ink);
    overflow-wrap: anywhere;
}

/* ---- Curriculum ---- */
.cd-tablewrap { overflow-x: auto; }
.cd-lessons { min-width: 460px; }
.cd-num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 30px; height: 30px;
    border-radius: 10px;
    background: var(--ags-teal-50); color: var(--ags-teal-600);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 12.5px; font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.cd-lessons .ags-badge + .ags-badge { margin-left: 6px; }

/* ---- Instructors ---- */
.cd-tutor { display: flex; align-items: center; gap: 20px; padding: 20px; }
.cd-tutor + .cd-tutor { margin-top: 16px; }
.cd-tutor-photo {
    width: 92px; height: 92px; flex: 0 0 auto;
    border-radius: 24px; overflow: hidden;
    border: 1px solid var(--ags-line);
    background: var(--ags-grad-soft);
}
.cd-tutor-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cd-tutor-txt { min-width: 0; }
.cd-tutor-name { font-size: 17px; margin: 0 0 8px; }
.cd-tutor-bio { margin-top: 10px; font-size: 13.5px; line-height: 1.6; color: var(--ags-muted); }
@media (max-width: 520px) {
    .cd-tutor { flex-direction: column; align-items: flex-start; gap: 14px; }
}

/* ---- Enrol card ---- */
.cd-buy { padding: 0; overflow: hidden; }
.cd-buy-cover { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #EEF3F8; }
.cd-buy-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cd-buy-cover::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(11,44,77,0) 52%, rgba(11,44,77,.55));
}
.cd-buy-status {
    position: absolute; left: 12px; bottom: 12px; z-index: 2;
    display: inline-flex; align-items: center; gap: .4rem;
    padding: .34rem .7rem;
    border-radius: 999px;
    background: rgba(255,255,255,.94);
    backdrop-filter: blur(8px);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 11.5px; font-weight: 700; color: #5A6B80;
    box-shadow: 0 6px 14px -6px rgba(12,27,42,.5);
}
.cd-buy-status::before { content: ''; width: 6px; height: 6px; border-radius: 999px; background: currentColor; }
.cd-buy-status.is-open { color: #067A57; }

.cd-buy-body { padding: 18px; }
.cd-price-row { margin-bottom: 14px; }
.cd-price {
    display: block;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 2rem; font-weight: 800; line-height: 1.1; letter-spacing: -.03em;
    color: var(--ags-ink);
    font-variant-numeric: tabular-nums;
}
.cd-price-note { display: block; margin-top: 3px; font-size: 12px; color: var(--ags-muted); }
.cd-buy-state {
    display: flex; align-items: center; flex-wrap: wrap; gap: .45rem;
    margin-top: 12px;
    font-size: 12.5px; color: var(--ags-muted);
}
.cd-meta { margin-top: 18px; padding-top: 4px; border-top: 1px solid var(--ags-line-soft); }
.cd-meta-row {
    display: flex; align-items: flex-start; gap: .7rem;
    padding: 9px 0;
    border-bottom: 1px solid var(--ags-line-soft);
    font-size: 13px;
}
.cd-meta-row:last-child { border-bottom: 0; }
.cd-meta-row i { flex: 0 0 auto; width: 20px; margin-top: 1px; text-align: center; font-size: 1.05rem; color: var(--ags-teal); }
.cd-meta-row .k { flex: 0 0 auto; color: var(--ags-muted); }
.cd-meta-row .v {
    margin-left: auto; min-width: 0;
    text-align: right;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600; color: var(--ags-ink);
    overflow-wrap: anywhere;
}
.cd-buy-note { margin-top: 16px; font-size: 12.5px; }

.cd-btn-violet { background: var(--ags-violet); color: #fff; box-shadow: 0 12px 28px -12px rgba(124,92,255,.6); }
.cd-btn-violet:hover { background: #6B4AF0; color: #fff; transform: translateY(-2px); }
.cd-btn-emerald { background: #0FA97B; color: #fff; box-shadow: 0 12px 28px -12px rgba(15,169,123,.6); }
.cd-btn-emerald:hover { background: #0C8F68; color: #fff; transform: translateY(-2px); }

.cd-help {
    display: flex; align-items: center; gap: 14px;
    margin-top: 16px; padding: 16px;
    border-radius: var(--ags-r-lg);
    background: var(--ags-grad-soft);
    border: 1px solid var(--ags-line);
}
.cd-help-ico {
    width: 40px; height: 40px; flex: 0 0 auto;
    border-radius: 13px;
    display: inline-flex; align-items: center; justify-content: center;
    background: #fff; color: var(--ags-teal-600);
    font-size: 1.15rem;
    box-shadow: var(--ags-sh-xs);
}
.cd-help-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 13.5px; font-weight: 700; line-height: 1.4; color: var(--ags-ink);
    margin-bottom: 4px;
}

/* ---- Responsive ---- */
@media (max-width: 1023px) {
    .cd-hero { padding: 32px 0 116px; }
    .cd-wrap { margin-top: -76px; }
}
/* Tablet: the enrol card is full width, so the cover moves beside the details
   instead of becoming an oversized banner */
@media (min-width: 640px) and (max-width: 1023px) {
    .cd-buy { display: grid; grid-template-columns: 260px minmax(0, 1fr); }
    .cd-buy-cover { aspect-ratio: auto; height: 100%; min-height: 210px; }
    .cd-buy-body { padding: 20px; }
}
@media (max-width: 640px) {
    .cd-hero { padding: 26px 0 104px; }
    .cd-wrap { margin-top: -68px; }
    .cd-block-head { padding: 16px; gap: 12px; }
    .cd-block-body { padding: 16px; }
    .cd-tutor { padding: 16px; }
    .cd-buy-body { padding: 16px; }
    .cd-price { font-size: 1.75rem; }
    .cd-feetile { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
    .cd-hero-media img { transform: none; }
    .cd-btn-violet:hover, .cd-btn-emerald:hover { transform: none; }
}

/* ---- 15.7 Box model for the standalone pages ---------------------------
   These pages are visible before the Tailwind CDN has finished building its
   preflight, so the shell sets its own box model. Scoped to body.auth-page,
   which only the three standalone pages carry — nothing else is affected. */

body.auth-page,
body.auth-page *,
body.auth-page *::before,
body.auth-page *::after { box-sizing: border-box; }


/* ==========================================================================
   Forgot password — email link flow
   Added when the page moved from "set a new password here" to
   "email me a one-time reset link".
   ========================================================================== */

/* Local-development notice: shown only when PHP mail() is unavailable and the
   reset link was written to the log instead. Never appears on a live host. */
.fp-dev {
    display: flex; align-items: flex-start; gap: 10px;
    margin-bottom: 18px; padding: 12px 14px;
    font-size: 12.5px; line-height: 1.55;
    color: #6B4B00;
    background: #FFF8E6;
    border: 1px dashed #F0D48A;
    border-radius: var(--ags-r-lg);
}
.fp-dev i { font-size: 15px; margin-top: 1px; flex: none; color: #B98900; }

/* Submit button loading state */
.fp-btn-load { display: none; align-items: center; gap: 9px; }
.fp-spin {
    width: 16px; height: 16px; flex: none;
    border-radius: 50%;
    border: 2.4px solid rgba(255,255,255,.35);
    border-top-color: #fff;
    animation: fp-rot .7s linear infinite;
}
@keyframes fp-rot { to { transform: rotate(360deg); } }

#fp-submit.is-loading            { pointer-events: none; filter: saturate(.92); }
#fp-submit.is-loading .fp-btn-label { display: none; }
#fp-submit.is-loading .fp-btn-load  { display: inline-flex; }

/* Three-step explainer under the form */
.fp-steps {
    list-style: none;
    margin: 20px 0 0; padding: 0;
    display: grid; gap: 9px;
    counter-reset: none;
}
.fp-steps li {
    display: flex; align-items: center; gap: 11px;
    font-size: 13px; font-weight: 500; color: var(--ags-slate-600, #5B6B80);
}
.fp-steps li span {
    width: 24px; height: 24px; flex: none;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 11.5px; font-weight: 700;
    color: var(--ags-teal-600);
    background: var(--ags-teal-50);
    border: 1px solid #CDEDEB;
    border-radius: 50%;
}

@media (min-width: 560px) {
    .fp-steps { grid-template-columns: repeat(3, 1fr); gap: 12px; }
    .fp-steps li { font-size: 12.5px; gap: 9px; }
}

/* The spinner is a status indicator, so it keeps turning under reduced
   motion — it is simply slowed down. */
@media (prefers-reduced-motion: reduce) {
    .fp-spin { animation-duration: 1.15s; }
}


/* ==========================================================================
   Floating notifications
   A banner that drops in from the top, waits, then leaves — rather than a
   strip wedged into the page that shifts everything down.
   ========================================================================== */

.ags-toasts {
    position: fixed;
    top: 14px; left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    display: flex; flex-direction: column; gap: 9px;
    width: min(420px, calc(100vw - 24px));
    pointer-events: none;
}

.ags-toast {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 13px 14px;
    pointer-events: auto;
    cursor: pointer;

    color: #F2F6FA;
    background: rgba(24, 34, 48, .82);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 18px;
    box-shadow:
        0 1px 2px rgba(6, 16, 30, .3),
        0 18px 44px -12px rgba(6, 16, 30, .55),
        inset 0 1px 0 rgba(255, 255, 255, .1);

    -webkit-backdrop-filter: blur(22px) saturate(160%);
    backdrop-filter: blur(22px) saturate(160%);

    opacity: 0;
    transform: translateY(-14px) scale(.97);
    transition: opacity .3s cubic-bezier(.22,.9,.28,1),
                transform .34s cubic-bezier(.22,.9,.28,1);
}
.ags-toast.is-in  { opacity: 1; transform: translateY(0) scale(1); }
.ags-toast.is-out { opacity: 0; transform: translateY(-12px) scale(.97); }

/* the coloured badge on the left */
.ags-toast-ico {
    width: 34px; height: 34px; flex: none;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 15px; border-radius: 11px;
}
.ags-toast.is-success .ags-toast-ico { color: #06231A; background: #34D399; }
.ags-toast.is-error   .ags-toast-ico { color: #2A0710; background: #FB7185; }
.ags-toast.is-info    .ags-toast-ico { color: #04202B; background: #67E8F9; }

.ags-toast-body { flex: 1; min-width: 0; }
.ags-toast-title {
    margin: 0 0 2px;
    font-family: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
    font-size: 12.5px; font-weight: 700; letter-spacing: -.005em;
    color: #FFFFFF;
}
.ags-toast-text {
    margin: 0;
    font-size: 13px; line-height: 1.5;
    color: rgba(226, 236, 246, .82);
    word-break: break-word;
}

.ags-toast-x {
    width: 26px; height: 26px; flex: none;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 11px;
    color: rgba(226, 236, 246, .55);
    background: rgba(255, 255, 255, .08);
    border: 0; border-radius: 8px; cursor: pointer;
    transition: background .18s ease, color .18s ease;
}
.ags-toast-x:hover { background: rgba(255, 255, 255, .18); color: #fff; }

/* Phones: full width, tucked under the notch area */
@media (max-width: 560px) {
    .ags-toasts { top: 10px; width: calc(100vw - 20px); }
    .ags-toast { border-radius: 16px; padding: 12px 13px; }
    .ags-toast-text { font-size: 12.5px; }
}

/* A notification that never settles is worse than none, so under reduced
   motion it simply appears and disappears instead of sliding. */
@media (prefers-reduced-motion: reduce) {
    .ags-toast { transition-duration: .18s; transform: none; }
    .ags-toast.is-in  { transform: none; }
    .ags-toast.is-out { transform: none; }
}

/* When the browser cannot blur, fall back to a solid panel so the text
   never sits on top of the page behind it. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .ags-toast { background: #182230; }
}


/* ==========================================================================
   STUDENT — LIVE SESSIONS
   ========================================================================== */

.slc-head { margin-bottom: 20px; }
.slc-head-title {
    margin: 0 0 4px;
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-size: 21px; font-weight: 800; letter-spacing: -.022em; line-height: 1.2;
    color: #0A1A2B;
}
.slc-head-sub { margin: 0; font-size: 13.5px; line-height: 1.6; color: #7B8EA4; }



/* ---- Recordings list ---- */
.slc-recs { display: grid; gap: 10px; }
.slc-rec {
    display: flex; align-items: center; gap: 14px;
    padding: 14px 16px;
    background: #fff; border: 1px solid var(--ags-line, #E8EEF5); border-radius: 14px;
    text-decoration: none;
    transition: border-color .18s ease, transform .16s ease, box-shadow .22s ease;
}
.slc-rec:hover {
    border-color: #C4B5FD; transform: translateY(-2px);
    box-shadow: 0 14px 30px -20px rgba(124,92,255,.7);
}
.slc-rec-play {
    width: 42px; height: 42px; flex: none;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; color: #fff;
    background: linear-gradient(140deg, #7C5CFF, #4C33C7);
    border-radius: 13px;
    box-shadow: 0 8px 18px -10px rgba(76,51,199,.9);
}
.slc-rec-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.slc-rec-title { font-size: 14px; font-weight: 700; color: #0A1A2B; line-height: 1.35; }
.slc-rec-course { font-size: 12.5px; color: #7B8EA4; }
.slc-rec-go {
    flex: none; display: inline-flex; align-items: center; gap: 7px;
    font-size: 12.5px; font-weight: 700; color: #5B46B8; white-space: nowrap;
}
.slc-rec-go i { transition: transform .18s ease; }
.slc-rec:hover .slc-rec-go i { transform: translateX(3px); }

/* ---- Empty states ---- */
.slc-empty {
    padding: 44px 26px; text-align: center;
    background: #fff; border: 1px dashed #DCE6F1; border-radius: 18px;
}
.slc-empty-ico {
    width: 60px; height: 60px; margin: 0 auto 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; color: #9AACC0;
    background: #F4F8FC; border-radius: 20px;
}
.slc-empty h5 {
    margin: 0 0 6px;
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-size: 16.5px; font-weight: 700; color: #0A1A2B;
}
.slc-empty p { margin: 0 auto; max-width: 44ch; font-size: 13.5px; line-height: 1.65; color: #7B8EA4; }

@media (max-width: 560px) {
    .slc-card { padding: 17px; }
    .slc-rec { padding: 12px 13px; gap: 11px; }
    .slc-rec-go span { display: none; }
}

/* ==========================================================================
   STUDENT — MY PROFILE
   ========================================================================== */

.spf-cardhead { padding: 17px 22px; border-bottom: 1px solid #EDF2F8; background: #FAFCFE; }
.spf-cardtitle {
    margin: 0 0 3px;
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-size: 16.5px; font-weight: 800; letter-spacing: -.018em; color: #0A1A2B;
}
.spf-cardsub { margin: 0; font-size: 13px; color: #7B8EA4; }

.spf-body { padding: 22px; }

/* ---- Photo ---- */
.spf-photo {
    display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
    padding-bottom: 22px; margin-bottom: 22px;
    border-bottom: 1px dashed #E7EEF6;
}
.spf-photo-wrap { position: relative; flex: none; }
.spf-photo-img {
    width: 96px; height: 96px; object-fit: cover;
    border-radius: 26px; background: #F3F7FB;
    border: 1px solid #E3EBF4;
    box-shadow: 0 4px 14px rgba(11,44,77,.10);
}
.spf-photo-btn {
    position: absolute; right: -6px; bottom: -6px;
    width: 34px; height: 34px;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; color: #fff; cursor: pointer;
    background: linear-gradient(140deg, #0EA5A0, #0B6E6A);
    border: 3px solid #fff; border-radius: 12px;
    box-shadow: 0 6px 16px -8px rgba(11,110,106,.9);
    transition: transform .16s ease;
}
.spf-photo-btn:hover { transform: scale(1.06); }
.spf-photo-title { margin: 0 0 3px; font-size: 14.5px; font-weight: 700; color: #0A1A2B; }
.spf-photo-hint { margin: 0; font-size: 12.5px; line-height: 1.6; color: #7B8EA4; max-width: 40ch; }

/* ---- Fields ---- */
.spf-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 640px) { .spf-grid { grid-template-columns: 1fr 1fr; } .spf-col-2 { grid-column: 1 / -1; } }

.spf-field { min-width: 0; }
.spf-label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; color: #33506F; }
.spf-label b { color: #E11D48; font-weight: 700; }
.spf-label i { font-style: normal; font-weight: 500; color: #9AACC0; }

.spf-input {
    width: 100%; padding: 11px 14px;
    font-family: inherit; font-size: 14px; color: #0C1B2A;
    background: #fff; border: 1px solid #DCE6F1; border-radius: 12px; outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.spf-input::placeholder { color: #A6B6C8; }
.spf-input:hover { border-color: #C6D6E6; }
.spf-input:focus { border-color: #0EA5A0; box-shadow: 0 0 0 4px rgba(14,165,160,.14); }
.spf-input.is-locked { background: #F4F7FA; color: #7C8DA4; cursor: not-allowed; }
.spf-textarea { min-height: 86px; line-height: 1.6; resize: vertical; }

.spf-foot { display: flex; justify-content: flex-end; margin-top: 22px; padding-top: 18px; border-top: 1px solid #EDF2F8; }
.spf-save {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    height: 44px; padding: 0 22px;
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-size: 13.5px; font-weight: 700;
    color: #04202B; border: 0; border-radius: 12px; cursor: pointer;
    background: linear-gradient(100deg, #22D3EE, #0EA5A0 60%, #4FD1C5);
    box-shadow: 0 10px 24px -12px rgba(14,165,160,.95);
    transition: transform .16s ease, box-shadow .22s ease;
}
.spf-save:hover { transform: translateY(-1px); box-shadow: 0 16px 30px -12px rgba(14,165,160,1); }

/* ---- Security row ---- */
.spf-sec {
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px; flex-wrap: wrap;
    padding: 16px 18px;
    background: #FAFCFE; border: 1px solid #E7EEF6; border-radius: 15px;
}
.spf-sec-left { display: flex; align-items: center; gap: 14px; min-width: 0; }
.spf-sec-ico {
    width: 42px; height: 42px; flex: none;
    display: flex; align-items: center; justify-content: center;
    font-size: 15px; color: #0B8C88;
    background: #E7F7F6; border: 1px solid #CDEDEB; border-radius: 13px;
}
.spf-sec-title { margin: 0 0 2px; font-size: 14px; font-weight: 700; color: #0A1A2B; }
.spf-sec-text { margin: 0; font-size: 12.5px; line-height: 1.55; color: #7B8EA4; }
.spf-sec-btn {
    flex: none;
    display: inline-flex; align-items: center; gap: 8px;
    height: 40px; padding: 0 16px;
    font-size: 13px; font-weight: 700; text-decoration: none;
    color: #23415F; background: #fff;
    border: 1px solid #DFE7F0; border-radius: 11px;
    transition: background .18s ease, border-color .18s ease, transform .16s ease;
}
.spf-sec-btn:hover { background: #F4F8FC; border-color: #C3D6E8; transform: translateY(-1px); color: #0B2C4D; }

@media (max-width: 560px) {
    .spf-body { padding: 17px 16px; }
    .spf-cardhead { padding: 15px 16px; }
    .spf-photo { gap: 15px; }
    .spf-photo-img { width: 80px; height: 80px; border-radius: 22px; }
    .spf-input { font-size: 16px; }   /* stops iOS zooming on tap */
    .spf-sec-btn { width: 100%; justify-content: center; }
}


/* ==========================================================================
   STUDENT — LIVE SESSIONS, v2
   The page answers one question first: what do I join right now. Everything
   else reads as a timetable underneath it.
   ========================================================================== */

.slc-head {
    display: flex; align-items: flex-end; justify-content: space-between;
    gap: 16px; flex-wrap: wrap; margin-bottom: 18px;
}
.slc-count-chip {
    flex: none; padding: 5px 12px;
    font-size: 12px; font-weight: 700; color: #5B7396;
    background: #F1F6FB; border: 1px solid #E1E9F2; border-radius: 999px;
}

/* ==========================================================================
   The spotlight
   ========================================================================== */

.slc-spot {
    position: relative; overflow: hidden;
    border-radius: 22px;
    background: linear-gradient(140deg, #0B2C4D 0%, #123A6B 46%, #3B2E8A 100%);
    box-shadow: 0 2px 6px rgba(11,44,77,.10), 0 28px 60px -32px rgba(11,44,77,.75);
}
.slc-spot.is-live {
    background: linear-gradient(140deg, #4C0C22 0%, #8E1233 45%, #C11742 100%);
    box-shadow: 0 2px 6px rgba(140,15,45,.14), 0 28px 60px -30px rgba(193,23,66,.8);
}
.slc-spot.is-soon {
    background: linear-gradient(140deg, #43310A 0%, #85631A 46%, #B98900 100%);
}

/* a soft bloom in the corner so the panel is not a flat slab */
.slc-spot-glow {
    position: absolute; inset: 0; pointer-events: none;
    background:
        radial-gradient(60% 80% at 88% 8%, rgba(255,255,255,.22) 0%, rgba(255,255,255,0) 60%),
        radial-gradient(50% 70% at 6% 96%, rgba(255,255,255,.10) 0%, rgba(255,255,255,0) 62%);
}

.slc-spot-inner {
    position: relative; z-index: 2;
    display: flex; align-items: center; justify-content: space-between;
    gap: 26px; flex-wrap: wrap;
    padding: 26px 28px;
}
.slc-spot-main { min-width: 0; flex: 1 1 320px; }
.slc-spot-side { flex: none; display: flex; flex-direction: column; align-items: stretch; gap: 9px; min-width: 210px; }

.slc-spot-tag {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 5px 12px; margin-bottom: 13px;
    font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
    color: #fff; background: rgba(255,255,255,.16);
    border: 1px solid rgba(255,255,255,.24); border-radius: 999px;
}
.slc-spot-tag i { font-size: 11px; }

.slc-spot-title {
    margin: 0 0 6px;
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-size: clamp(21px, 3.4vw, 27px); font-weight: 800;
    letter-spacing: -.024em; line-height: 1.18; color: #fff;
    text-wrap: balance;
}
.slc-spot-course {
    margin: 0 0 15px;
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    font-size: 14px; color: rgba(226,240,252,.78);
}
.slc-spot-code {
    padding: 2px 9px;
    font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
    font-size: 11.5px; font-weight: 600; color: #fff;
    background: rgba(255,255,255,.13);
    border: 1px solid rgba(255,255,255,.2); border-radius: 7px;
}
.slc-spot-meta { display: flex; gap: 18px; flex-wrap: wrap; }
.slc-spot-meta span {
    display: inline-flex; align-items: center; gap: 9px;
    font-size: 13.5px; color: rgba(226,240,252,.8);
}
.slc-spot-meta i { font-size: 12px; opacity: .65; }

/* the action */
.slc-spot-join {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    height: 52px; padding: 0 22px;
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-size: 15px; font-weight: 800; letter-spacing: -.01em;
    color: #7A0F2C; background: #fff;
    border-radius: 14px; text-decoration: none;
    box-shadow: 0 12px 28px -12px rgba(0,0,0,.6);
    transition: transform .16s ease, box-shadow .22s ease;
}
.slc-spot-join:hover { transform: translateY(-2px); box-shadow: 0 18px 36px -12px rgba(0,0,0,.7); color: #7A0F2C; }

.slc-spot-wait {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    height: 52px; padding: 0 18px;
    font-size: 13.5px; font-weight: 700; color: #fff;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.26); border-radius: 14px;
}
.slc-spot-note {
    margin: 0; text-align: center;
    font-size: 12px; line-height: 1.5; color: rgba(226,240,252,.62);
}

/* ---- countdown ---- */
.slc-count {
    padding: 13px 14px;
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 14px;
}
.slc-count-row { display: flex; align-items: stretch; gap: 7px; }
.slc-count-cell {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
    padding: 7px 4px;
    background: rgba(0,0,0,.16); border-radius: 10px;
}
.slc-count-cell b {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-size: 19px; font-weight: 800; line-height: 1; color: #fff;
    font-variant-numeric: tabular-nums;
}
.slc-count-cell i {
    font-style: normal; font-size: 10px; font-weight: 600;
    letter-spacing: .07em; text-transform: uppercase; color: rgba(226,240,252,.6);
}
.slc-count-now { margin: 0; text-align: center; font-size: 13.5px; font-weight: 700; color: #fff; }

@media (max-width: 720px) {
    .slc-spot-inner { padding: 22px 20px; gap: 20px; }
    .slc-spot-side { min-width: 0; width: 100%; }
}

/* ==========================================================================
   The timetable
   ========================================================================== */

.slc-day + .slc-day { margin-top: 22px; }

.slc-day-head { display: flex; align-items: center; gap: 12px; margin-bottom: 11px; }
.slc-day-name {
    flex: none;
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-size: 13px; font-weight: 800; letter-spacing: .02em;
    color: #0B2C4D;
}
.slc-day-line { flex: 1; height: 1px; background: #E4EBF3; }
.slc-day-num {
    flex: none; min-width: 22px; padding: 2px 8px;
    font-size: 11.5px; font-weight: 700; text-align: center;
    color: #7B8EA4; background: #F2F6FA;
    border: 1px solid #E4EBF3; border-radius: 999px;
}

.slc-rows { display: grid; gap: 8px; }

.slc-row {
    display: flex; align-items: center; gap: 16px;
    padding: 13px 16px;
    background: #fff; border: 1px solid #E8EEF5; border-radius: 14px;
    transition: border-color .18s ease, transform .16s ease, box-shadow .22s ease;
}
.slc-row:hover { transform: translateY(-1px); border-color: #CFDEEC; box-shadow: 0 12px 26px -20px rgba(11,44,77,.6); }
.slc-row.is-live { border-color: #F8C4CE; background: #FFF7F9; }
.slc-row.is-soon { border-color: #F2E0A8; background: #FFFBF0; }

/* time rail on the left, like a real schedule */
.slc-row-time {
    flex: none; width: 62px;
    display: flex; flex-direction: column; align-items: center; gap: 1px;
    padding-right: 15px; border-right: 1px solid #EDF2F8;
}
.slc-row-time b {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-size: 16px; font-weight: 800; color: #0B1B2B; line-height: 1;
    font-variant-numeric: tabular-nums;
}
.slc-row-time i {
    font-style: normal; font-size: 10.5px; font-weight: 700;
    letter-spacing: .06em; color: #9AACC0;
}
.slc-row.is-live .slc-row-time b { color: #C11742; }

.slc-row-body { flex: 1; min-width: 0; }
.slc-row-title {
    margin: 0 0 2px;
    font-size: 14.5px; font-weight: 700; line-height: 1.32; letter-spacing: -.01em;
    color: #0A1A2B;
}
.slc-row-course {
    margin: 0;
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    font-size: 12.5px; color: #7B8EA4;
}
.slc-row-code {
    padding: 1px 7px;
    font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
    font-size: 11px; color: #0B8C88;
    background: #EFFBFA; border: 1px solid #CDEDEB; border-radius: 6px;
}
.slc-row-span { display: none; margin: 3px 0 0; font-size: 12px; color: #9AACC0; }

.slc-row-action { flex: none; }
.slc-mini {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 36px; padding: 0 15px;
    font-size: 12.5px; font-weight: 700; white-space: nowrap;
    border-radius: 10px; text-decoration: none;
}
.slc-mini-join {
    color: #fff; background: linear-gradient(100deg, #E11D48, #BE123C);
    box-shadow: 0 8px 18px -10px rgba(225,29,72,.95);
    transition: transform .16s ease, box-shadow .2s ease;
}
.slc-mini-join:hover { transform: translateY(-1px); color: #fff; box-shadow: 0 14px 24px -10px rgba(225,29,72,1); }
.slc-mini-wait { color: #8A6B06; background: #FDF3D4; border: 1px solid #F2E0A8; }
.slc-mini-soon { color: #5B7396; background: #F2F6FA; border: 1px solid #E3EBF3; font-variant-numeric: tabular-nums; }
.slc-mini-done { color: #9AACC0; background: #F7FAFD; border: 1px solid #EDF2F8; }

@media (max-width: 560px) {
    .slc-row { flex-wrap: wrap; gap: 12px; padding: 13px 14px; }
    .slc-row-time {
        width: auto; flex-direction: row; align-items: baseline; gap: 5px;
        padding-right: 0; border-right: 0;
    }
    .slc-row-body { flex: 1 1 100%; order: 3; }
    .slc-row-action { margin-left: auto; }
    .slc-row-span { display: block; }
}

/* small empty note under a single-session list */
.slc-empty-sm { padding: 22px; }
.slc-empty-sm p { margin: 0; font-size: 13.5px; color: #7B8EA4; }

/* Reduced motion: the pulse is a status signal, so it only slows down. */
@media (prefers-reduced-motion: reduce) {
    .slc-dot { animation-duration: 3.2s; }
}


/* ==========================================================================
   PAYMENT — student side (manual transfer, then proof)
   ========================================================================== */

.pay-crumbs { display: flex; align-items: center; gap: 9px; font-size: 12.5px; color: #8FA3B8; }
.pay-crumbs a { color: #5B7396; text-decoration: none; }
.pay-crumbs a:hover { color: #0B2C4D; text-decoration: underline; }
.pay-crumbs i { font-size: 10px; opacity: .5; }

/* ---- Balance summary ---- */
.pay-summary {
    display: flex; align-items: center; justify-content: space-between;
    gap: 28px; flex-wrap: wrap;
    padding: 26px 28px; margin-bottom: 22px;
    border-radius: 20px; color: #fff;
    background: linear-gradient(140deg, #0B2C4D 0%, #123A6B 46%, #3B2E8A 100%);
    box-shadow: 0 2px 6px rgba(11,44,77,.10), 0 26px 56px -32px rgba(11,44,77,.7);
}
.pay-summary.is-settled { background: linear-gradient(140deg, #064E3B 0%, #0B7A5E 48%, #10A37F 100%); }

.pay-summary-main { min-width: 0; flex: 1 1 280px; }
.pay-summary-side { flex: 1 1 260px; max-width: 340px; }

.pay-sum-tag {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 5px 12px; margin-bottom: 11px;
    font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
    background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.24); border-radius: 999px;
}
.pay-sum-title {
    margin: 0 0 5px;
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-size: clamp(26px, 4.4vw, 34px); font-weight: 800; letter-spacing: -.028em; line-height: 1.1;
    /* stated outright: the global h1–h6 rule sets a dark ink colour, which
       would otherwise win over the white inherited from .pay-summary */
    color: #fff;
}
.pay-sum-sub { margin: 0; font-size: 13.5px; line-height: 1.6; color: rgba(226,240,252,.8); }

.pay-bar { height: 9px; border-radius: 99px; background: rgba(255,255,255,.18); overflow: hidden; margin-bottom: 12px; }
.pay-bar span { display: block; height: 100%; border-radius: 99px; background: #5EEAD4; transition: width .5s ease; }
.pay-figures { display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; color: rgba(226,240,252,.72); }
.pay-figures b { color: #fff; font-weight: 700; font-variant-numeric: tabular-nums; }

/* ---- Two panels ---- */
.pay-cols { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 960px) { .pay-cols { grid-template-columns: 1fr 1fr; } }

.pay-panel { overflow: hidden; }
.pay-panel-head {
    display: flex; align-items: center; gap: 14px;
    padding: 18px 22px; border-bottom: 1px solid #EDF2F8; background: #FAFCFE;
}
.pay-step {
    width: 30px; height: 30px; flex: none;
    display: inline-flex; align-items: center; justify-content: center;
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-size: 13px; font-weight: 800; color: #fff;
    background: linear-gradient(140deg, #0EA5A0, #0B6E6A); border-radius: 10px;
}
.pay-panel-title { margin: 0 0 2px; font-family: 'Plus Jakarta Sans', 'Inter', sans-serif; font-size: 16.5px; font-weight: 800; letter-spacing: -.018em; color: #0A1A2B; }
.pay-panel-sub { margin: 0; font-size: 12.5px; color: #7B8EA4; }
.pay-panel-body { padding: 22px; }

/* ---- Ways to pay ---- */
.pay-methods { display: grid; gap: 16px; }
.pay-method { padding: 16px; background: #FAFCFE; border: 1px solid #E7EEF6; border-radius: 15px; }
.pay-method-name {
    display: flex; align-items: center; gap: 9px; margin: 0 0 13px;
    font-size: 13.5px; font-weight: 700; color: #0B2C4D;
}
.pay-method-name i { color: #0B8C88; }
.pay-method-note { margin: 9px 0 0; font-size: 12px; line-height: 1.55; color: #7B8EA4; }

.pay-qr { display: flex; justify-content: center; margin-bottom: 13px; }
.pay-qr img {
    width: 168px; height: 168px; object-fit: contain;
    padding: 10px; background: #fff;
    border: 1px solid #E3EBF4; border-radius: 14px;
}
.pay-qr-holder {
    width: 168px; height: 168px;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
    color: #9AACC0; text-align: center;
    background: #fff; border: 1px dashed #CFDEEC; border-radius: 14px;
}
.pay-qr-holder i { font-size: 40px; opacity: .45; }
.pay-qr-holder span { font-size: 11.5px; max-width: 15ch; line-height: 1.4; }

.pay-copy {
    display: flex; align-items: center; gap: 9px; flex-wrap: wrap;
    padding: 10px 12px; background: #fff; border: 1px solid #E3EBF4; border-radius: 11px;
}
.pay-copy-label { font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #9AACC0; }
.pay-copy code {
    flex: 1; min-width: 0;
    font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
    font-size: 13px; font-weight: 600; color: #0B2C4D; word-break: break-all;
}
.pay-copy-btn {
    flex: none; padding: 6px 12px;
    font-family: inherit; font-size: 11.5px; font-weight: 700;
    color: #0B8C88; background: #EFFBFA;
    border: 1px solid #C6EBE8; border-radius: 8px; cursor: pointer;
    transition: background .16s ease, color .16s ease;
}
.pay-copy-btn:hover { background: #0EA5A0; border-color: #0EA5A0; color: #fff; }

.pay-bank { margin: 0; display: grid; gap: 8px; }
.pay-bank-row {
    display: flex; align-items: baseline; justify-content: space-between; gap: 14px;
    padding-bottom: 8px; border-bottom: 1px dashed #E7EEF6;
}
.pay-bank-row:last-child { border-bottom: 0; padding-bottom: 0; }
.pay-bank dt { flex: none; font-size: 12px; color: #8FA3B8; }
.pay-bank dd {
    margin: 0; text-align: right;
    font-size: 13px; font-weight: 700; color: #12314F;
    font-variant-numeric: tabular-nums; word-break: break-word;
}

.pay-tip {
    display: flex; gap: 11px; align-items: flex-start;
    margin-top: 16px; padding: 13px 15px;
    font-size: 12.5px; line-height: 1.6; color: #6B4B00;
    background: #FFF8E6; border: 1px dashed #F0D48A; border-radius: 13px;
}
.pay-tip i { margin-top: 2px; color: #B98900; }
.pay-tip b { color: #4A3B06; }

/* ---- Proof form ---- */
.pay-grid { display: grid; grid-template-columns: 1fr; gap: 15px; margin-bottom: 18px; }
@media (min-width: 560px) { .pay-grid { grid-template-columns: 1fr 1fr; } .pay-col-2 { grid-column: 1 / -1; } }

.pay-field { min-width: 0; }
.pay-label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; color: #33506F; }
.pay-label b { color: #E11D48; }
.pay-hint { margin: 6px 0 0; font-size: 11.5px; line-height: 1.5; color: #8FA3B8; }

.pay-input {
    width: 100%; padding: 11px 14px;
    font-family: inherit; font-size: 14px; color: #0C1B2A;
    background: #fff; border: 1px solid #DCE6F1; border-radius: 12px; outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.pay-input:hover { border-color: #C6D6E6; }
.pay-input:focus { border-color: #0EA5A0; box-shadow: 0 0 0 4px rgba(14,165,160,.14); }

.pay-money { position: relative; }
.pay-money > span {
    position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
    font-size: 13px; font-weight: 700; color: #8FA3B8; pointer-events: none;
}
.pay-money .pay-input { padding-left: 42px; font-weight: 700; font-variant-numeric: tabular-nums; }

.pay-drop {
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    padding: 22px 16px; cursor: pointer; text-align: center;
    background: #FAFCFE; border: 1px dashed #CFDEEC; border-radius: 14px;
    transition: border-color .18s ease, background .18s ease;
}
.pay-drop:hover { border-color: #0EA5A0; background: #F2FBFA; }
.pay-drop.has-file { border-style: solid; border-color: #7FD8D3; background: #F2FBFA; }
.pay-drop > i { font-size: 24px; color: #9AACC0; }
.pay-drop.has-file > i { color: #0B8C88; }
.pay-drop-main { font-size: 13.5px; font-weight: 700; color: #0B2C4D; }
.pay-drop-sub { font-size: 11.5px; color: #8FA3B8; word-break: break-all; max-width: 34ch; }

.pay-submit {
    position: relative;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    width: 100%; height: 48px;
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-size: 14.5px; font-weight: 700;
    color: #04202B; border: 0; border-radius: 13px; cursor: pointer;
    background: linear-gradient(100deg, #22D3EE, #0EA5A0 60%, #4FD1C5);
    box-shadow: 0 12px 26px -12px rgba(14,165,160,.95);
    transition: transform .16s ease, box-shadow .22s ease;
}
.pay-submit:hover { transform: translateY(-1px); box-shadow: 0 18px 32px -12px rgba(14,165,160,1); }
.pay-btn-load { display: none; align-items: center; gap: 9px; }
.pay-spin {
    width: 16px; height: 16px; border-radius: 50%;
    border: 2.4px solid rgba(4,32,43,.25); border-top-color: #04202B;
    animation: pay-rot .7s linear infinite;
}
@keyframes pay-rot { to { transform: rotate(360deg); } }
#paySubmit.is-loading { pointer-events: none; filter: saturate(.9); }
#paySubmit.is-loading .pay-btn-label { display: none; }
#paySubmit.is-loading .pay-btn-load { display: inline-flex; }

.pay-safe {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    margin: 13px 0 0; font-size: 11.5px; color: #8FA3B8;
}

.pay-done {
    display: flex; flex-direction: column; align-items: center; gap: 12px;
    padding: 34px 20px; text-align: center;
}
.pay-done i { font-size: 34px; color: #10B981; }
.pay-done p { margin: 0; font-size: 13.5px; color: #5B6B80; }

/* ---- History ---- */
.pay-history { margin-top: 20px; }
.pay-panel-head { justify-content: space-between; }

.pay-list { display: grid; gap: 12px; }
.pay-item {
    padding: 16px 18px;
    background: #fff; border: 1px solid #E8EEF5; border-radius: 15px;
}
.pay-item.is-ok   { border-color: #C6EEDC; background: #FBFEFD; }
.pay-item.is-no   { border-color: #FBD5DC; background: #FFFBFC; }
.pay-item.is-wait { border-color: #F2E0A8; background: #FFFDF7; }

.pay-item-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.pay-item-amount {
    margin: 0 0 2px;
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-size: 18px; font-weight: 800; color: #0A1A2B; font-variant-numeric: tabular-nums;
}
.pay-item-meta { margin: 0; font-size: 12px; color: #8FA3B8; }

.pay-state {
    display: inline-flex; align-items: center; gap: 7px; flex: none;
    padding: 5px 11px;
    font-size: 12px; font-weight: 700; border-radius: 999px; white-space: nowrap;
}
.pay-state.is-ok   { color: #0F7A5A; background: #EAFAF3; border: 1px solid #C6EEDC; }
.pay-state.is-no   { color: #C81E42; background: #FEECEF; border: 1px solid #FBD5DC; }
.pay-state.is-wait { color: #A66A00; background: #FFF8E6; border: 1px solid #F2E0A8; }

.pay-item-body { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 11px; }
.pay-item-ref {
    display: inline-flex; align-items: center; gap: 6px;
    font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
    font-size: 12px; color: #5B7396;
}
.pay-item-ref i { font-size: 10px; opacity: .5; }
.pay-item-file {
    display: inline-flex; align-items: center; gap: 7px;
    font-size: 12.5px; font-weight: 700; color: #0B8C88; text-decoration: none;
}
.pay-item-file:hover { text-decoration: underline; }
.pay-item-state-text { margin: 10px 0 0; font-size: 12.5px; color: #7B8EA4; }

.pay-reason {
    margin-top: 13px; padding: 13px 15px;
    background: #FFF1F3; border: 1px solid #FBD5DC; border-radius: 12px;
}
.pay-reason-head { display: flex; align-items: center; gap: 8px; margin: 0 0 5px; font-size: 12.5px; font-weight: 700; color: #9F1239; }
.pay-reason-text { margin: 0 0 6px; font-size: 13px; line-height: 1.6; color: #7A1029; }
.pay-reason-foot { margin: 0; font-size: 11.5px; color: #B4747F; }

.pay-note-ok {
    display: flex; gap: 9px; align-items: flex-start;
    margin-top: 12px; padding: 11px 13px;
    font-size: 12.5px; line-height: 1.55; color: #0F7A5A;
    background: #EAFAF3; border: 1px solid #C6EEDC; border-radius: 11px;
}

.pay-empty { padding: 34px 20px; text-align: center; color: #8FA3B8; }
.pay-empty i { font-size: 30px; opacity: .4; }
.pay-empty p { margin: 12px 0 0; font-size: 13.5px; }

@media (max-width: 560px) {
    .pay-summary { padding: 22px 20px; }
    .pay-panel-body { padding: 18px 16px; }
    .pay-input { font-size: 16px; }
    .pay-money .pay-input { font-size: 16px; }
}

/* ==========================================================================
   PAYMENT — admin review
   ========================================================================== */

.pay-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 4px; }
.pay-tab {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 9px 15px;
    font-size: 12.5px; font-weight: 700; text-decoration: none;
    color: #5B7396; background: #fff;
    border: 1px solid #E1E9F2; border-radius: 11px;
    transition: background .16s ease, border-color .16s ease, color .16s ease;
}
.pay-tab:hover { background: #F4F8FC; border-color: #C3D6E8; color: #0B2C4D; }
.pay-tab.is-on { color: #04202B; border-color: transparent; background: linear-gradient(100deg, #22D3EE, #0EA5A0 60%, #4FD1C5); }
.pay-tab-n {
    min-width: 20px; padding: 1px 7px;
    font-size: 11px; font-weight: 800; text-align: center;
    background: rgba(0,0,0,.10); border-radius: 999px; font-variant-numeric: tabular-nums;
}
.pay-tab.is-on .pay-tab-n { background: rgba(0,0,0,.16); }

.pay-admin-list { display: grid; gap: 14px; }
.pay-admin {
    padding: 18px 20px;
    background: #fff; border: 1px solid #E5E1D6; border-radius: 18px;
    box-shadow: 0 1px 2px rgba(24,32,40,.04), 0 12px 28px -20px rgba(24,32,40,.3);
}
.pay-admin.is-wait { border-left: 4px solid #F59E0B; }
.pay-admin.is-ok   { border-left: 4px solid #10B981; }
.pay-admin.is-no   { border-left: 4px solid #E11D48; }

.pay-admin-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.pay-admin-who { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pay-admin-amount {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-size: 20px; font-weight: 800; color: #0A1A2B; font-variant-numeric: tabular-nums;
}
.pay-admin-state {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 4px 11px; font-size: 11.5px; font-weight: 700; border-radius: 999px;
}
.pay-admin-state.is-ok   { color: #0F7A5A; background: #EAFAF3; border: 1px solid #C6EEDC; }
.pay-admin-state.is-no   { color: #C81E42; background: #FEECEF; border: 1px solid #FBD5DC; }
.pay-admin-state.is-wait { color: #A66A00; background: #FFF8E6; border: 1px solid #F2E0A8; }
.pay-admin-when { font-size: 12px; color: #8FA3B8; font-variant-numeric: tabular-nums; }

.pay-admin-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 640px) { .pay-admin-grid { grid-template-columns: repeat(4, 1fr); } }
.pay-admin-cell { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pay-admin-cell > span { font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #9AACC0; }
.pay-admin-cell > b { font-size: 13.5px; font-weight: 700; color: #12202D; word-break: break-word; }
.pay-admin-cell > em { font-style: normal; font-size: 11.5px; color: #8A9299; word-break: break-word; }
.pay-admin-ref { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: 12.5px !important; }
.pay-admin-file {
    display: inline-flex; align-items: center; gap: 7px; align-self: flex-start;
    margin-top: 2px; padding: 5px 11px;
    font-size: 12px; font-weight: 700; text-decoration: none;
    color: #4A3AA8; background: #EDEBFB; border: 1px solid #D8D3F5; border-radius: 9px;
}
.pay-admin-file:hover { background: #6D5BD0; border-color: #6D5BD0; color: #fff; }

.pay-admin-remark {
    display: flex; gap: 10px; align-items: flex-start;
    margin-top: 14px; padding: 11px 13px;
    font-size: 12.5px; line-height: 1.55; border-radius: 11px;
}
.pay-admin-remark.is-no { color: #9F1239; background: #FFF1F3; border: 1px solid #FBD5DC; }
.pay-admin-remark.is-ok { color: #0F7A5A; background: #EAFAF3; border: 1px solid #C6EEDC; }
.pay-admin-remark em { display: block; margin-top: 3px; font-style: normal; font-size: 11px; opacity: .7; }

.pay-admin-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 16px; padding-top: 14px; border-top: 1px solid #EFECE3; }
.pay-admin-form { display: flex; align-items: center; gap: 9px; flex: 1 1 300px; }
.pay-admin-input {
    flex: 1; min-width: 0; padding: 9px 12px;
    font-family: inherit; font-size: 12.5px; color: #12202D;
    background: #fff; border: 1px solid #E1E9F2; border-radius: 10px; outline: none;
}
.pay-admin-input:focus { border-color: #0EA5A0; box-shadow: 0 0 0 3px rgba(14,165,160,.13); }

.pay-ok, .pay-no {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 38px; padding: 0 16px; flex: none;
    font-family: inherit; font-size: 12.5px; font-weight: 700;
    border: 0; border-radius: 10px; cursor: pointer;
    transition: transform .16s ease, box-shadow .2s ease;
}
.pay-ok { color: #fff; background: linear-gradient(100deg, #34D399, #059669); box-shadow: 0 8px 18px -10px rgba(5,150,105,.9); }
.pay-no { color: #C81E42; background: #FEECEF; border: 1px solid #FBD5DC; }
.pay-ok:hover { transform: translateY(-1px); }
.pay-no:hover { background: #E11D48; border-color: #E11D48; color: #fff; transform: translateY(-1px); }

.pay-empty-ico {
    width: 64px; height: 64px; margin: 0 auto 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; color: #9AACC0; background: #F4F8FC; border-radius: 20px;
}
.pay-empty-title { margin: 0 0 5px; font-size: 16px; font-weight: 700; color: #12202D; }
.pay-empty-text { margin: 0; font-size: 13px; color: #8A9299; }

@media (max-width: 640px) {
    .pay-admin { padding: 16px; }
    .pay-admin-form { flex: 1 1 100%; }
    .pay-ok, .pay-no { flex: 1; }
}


/* =====================================================================
   Student · course detail  (.scd-*)
   A warmer, friendlier take for the student portal: a colourful hero,
   at-a-glance counters, a real timetable instead of a data table, and
   recordings as cards. Presentation only — no behaviour is changed.
   ===================================================================== */

/* ---- Breadcrumb ---- */
.scd-crumbs {
    display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
    margin-bottom: 16px;
    font-size: 13px; font-weight: 600; color: #8A9CB0;
}
.scd-crumbs a {
    display: inline-flex; align-items: center; gap: 6px;
    color: #64788F; text-decoration: none;
    transition: color .16s ease;
}
.scd-crumbs a:hover { color: var(--ags-teal, #0EA5A0); }
.scd-crumbs i { font-size: 15px; }
.scd-crumbs > i { font-size: 12px; color: #C3CFDC; }
.scd-crumbs span {
    color: #0A1A2B; font-weight: 700;
    max-width: 46ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ---- Hero ---------------------------------------------------------- */
.scd-hero {
    /* Everything is painted by this one background — no absolutely placed
       children, no overflow clipping, no compositing layer. A plain box
       cannot be left stranded on screen while the page scrolls past it. */
    display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 24px;
    padding: 30px 32px 28px;
    border-radius: 24px;
    background:
        linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px) 0 0 / 46px 46px,
        linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px) 0 0 / 46px 46px,
        radial-gradient(440px 420px at 90% 2%, rgba(34,211,238,.30) 0%, rgba(34,211,238,0) 66%),
        radial-gradient(120% 140% at 88% 8%, #1D5E86 0%, rgba(29,94,134,0) 58%),
        linear-gradient(135deg, #0B2C4D 0%, #103F63 46%, #0E7C7B 100%);
    box-shadow: 0 22px 48px rgba(11, 44, 77, .26);
    color: #fff;
}
.scd-hero-inner { flex: 1 1 340px; min-width: 0; }

/* soft light bloom, top right */
/* faint grid so the panel is not a flat wash */

.scd-hero-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 16px; }
.scd-chip {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 6px 12px;
    font-size: 12.5px; font-weight: 700; letter-spacing: .01em; color: #EAF6FF;
    background: rgba(255,255,255,.13);
    border: 1px solid rgba(255,255,255,.20);
    border-radius: 999px;
}
.scd-chip i { font-size: 14px; opacity: .85; }
.scd-state {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 6px 13px;
    font-size: 12.5px; font-weight: 800;
    border-radius: 999px; border: 1px solid transparent;
}
.scd-state i { font-size: 15px; }
.scd-state.is-on   { background: rgba(52,211,153,.20); border-color: rgba(52,211,153,.45); color: #B9F7DF; }
.scd-state.is-wait { background: rgba(251,191,36,.18); border-color: rgba(251,191,36,.44); color: #FCE7AE; }

.scd-hero-title {
    margin: 0 0 8px;
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-size: 32px; font-weight: 800; line-height: 1.14; letter-spacing: -.03em;
    color: #fff;
}
.scd-hero-sub {
    margin: 0 0 22px; max-width: 62ch;
    font-size: 15px; line-height: 1.65; color: rgba(226,242,255,.78);
}

.scd-hero-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-bottom: 24px; }
.scd-meta {
    display: inline-flex; align-items: center; gap: 9px;
    font-size: 13.5px; color: rgba(214,235,250,.76);
}
.scd-meta i { font-size: 17px; color: #6FE3E0; }
.scd-meta b { color: #fff; font-weight: 700; }

.scd-hero-act { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---- Back / secondary buttons ---- */
.scd-back {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 11px 18px;
    font-size: 13.5px; font-weight: 700; text-decoration: none;
    color: #0B2C4D; background: #fff;
    border: 1px solid transparent; border-radius: 13px;
    box-shadow: 0 6px 16px rgba(3, 22, 40, .22);
    transition: transform .16s ease, box-shadow .22s ease, background .18s ease, color .18s ease;
}
.scd-back i { font-size: 17px; }
.scd-back:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(3, 22, 40, .3); color: var(--ags-teal, #0EA5A0); }

/* The certificate is the one thing on this page a graduate came back for,
   so it is the only gold button among the plain white ones. */
.scd-back.is-cert {
    background: linear-gradient(135deg, #F5A524, #E0891C);
    color: #2E2503; box-shadow: 0 8px 20px rgba(245, 165, 36, .38);
}
.scd-back.is-cert:hover { color: #2E2503; box-shadow: 0 14px 30px rgba(245, 165, 36, .5); }
.scd-back.is-ghost {
    background: rgba(255,255,255,.10); color: #EAF6FF;
    border-color: rgba(255,255,255,.24); box-shadow: none;
}
.scd-back.is-ghost:hover { background: rgba(255,255,255,.19); color: #fff; }

/* on a white page (locked state) the back button needs its own border */
.scd-locked-act .scd-back {
    border-color: var(--ags-line, #E8EEF5);
    box-shadow: 0 1px 2px rgba(11,44,77,.05);
}

/* ---- At-a-glance counters ------------------------------------------ */
.scd-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(186px, 1fr));
    gap: 14px;
}
.scd-fact {
    position: relative; overflow: hidden;
    display: flex; align-items: center; gap: 14px;
    padding: 18px;
    background: #fff;
    border: 1px solid var(--ags-line, #E8EEF5);
    border-radius: 18px;
    box-shadow: 0 1px 2px rgba(11, 44, 77, .04);
    transition: border-color .18s ease, transform .16s ease, box-shadow .22s ease;
}
.scd-fact::after {
    content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
    background: linear-gradient(180deg, #0EA5A0, #22D3EE);
    opacity: 0; transition: opacity .2s ease;
}
.scd-fact:hover { border-color: rgba(14,165,160,.34); transform: translateY(-3px); box-shadow: 0 14px 30px rgba(11,44,77,.09); }
.scd-fact:hover::after { opacity: 1; }
.scd-fact-ico {
    width: 46px; height: 46px; flex: 0 0 46px;
    display: flex; align-items: center; justify-content: center;
    font-size: 21px; color: var(--ags-teal, #0EA5A0);
    background: rgba(14,165,160,.10); border-radius: 15px;
}
.scd-fact-body { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.scd-fact-value {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-size: 26px; font-weight: 800; line-height: 1.1; letter-spacing: -.03em; color: #0A1A2B;
}
.scd-fact-label { font-size: 12.5px; font-weight: 600; color: #7B8EA4; }

/* a live class is the one thing worth shouting about */
.scd-fact.is-live { border-color: rgba(225,29,72,.28); background: linear-gradient(180deg, #FFF6F8 0%, #fff 62%); }
.scd-fact.is-live .scd-fact-ico { color: #E11D48; background: rgba(225,29,72,.11); }
.scd-fact.is-live .scd-fact-value { color: #B4123C; }
.scd-fact.is-live::after { background: linear-gradient(180deg, #F43F5E, #FB7185); opacity: 1; }

/* ---- About --------------------------------------------------------- */
.scd-about {
    padding: 24px 26px;
    background: #fff;
    border: 1px solid var(--ags-line, #E8EEF5);
    border-radius: 20px;
    box-shadow: 0 1px 2px rgba(11, 44, 77, .04);
}
.scd-about-title {
    display: flex; align-items: center; gap: 9px;
    margin: 0 0 10px;
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-size: 17px; font-weight: 800; letter-spacing: -.018em; color: #0A1A2B;
}
.scd-about-title i { font-size: 19px; color: var(--ags-teal, #0EA5A0); }
.scd-about-text { margin: 0; font-size: 14.5px; line-height: 1.8; color: #55677C; }

/* ---- Section headings ---------------------------------------------- */
.scd-head { margin: 0 0 20px; padding: 0 2px; }
.scd-head-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.scd-head-title {
    margin: 0 0 4px;
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-size: 22px; font-weight: 800; letter-spacing: -.024em; line-height: 1.2;
    color: #0A1A2B;
}
.scd-head-sub { margin: 0; font-size: 14px; line-height: 1.6; color: #7B8EA4; }

.scd-enrol {
    display: inline-flex; align-items: center; gap: 11px;
    padding: 10px 16px;
    background: linear-gradient(135deg, #0B2C4D, #14506F);
    border-radius: 14px; color: #fff;
    box-shadow: 0 8px 20px rgba(11,44,77,.20);
}
.scd-enrol i { font-size: 20px; color: #6FE3E0; }
.scd-enrol small { display: block; font-size: 11px; font-weight: 600; color: rgba(210,234,250,.66); }
.scd-enrol b { display: block; font-size: 14px; font-weight: 800; letter-spacing: .02em; }

/* ---- Flash note ---- */
.scd-note {
    display: flex; align-items: center; gap: 13px;
    padding: 16px 20px;
    background: rgba(14,165,160,.07);
    border: 1px solid rgba(14,165,160,.20);
    border-radius: 16px;
    font-size: 14px; font-weight: 600; color: #0B6B67;
}
.scd-note i { font-size: 20px; flex-shrink: 0; }

/* ---- Empty states -------------------------------------------------- */
.scd-empty {
    padding: 46px 26px; text-align: center;
    background: #fff;
    border: 1px dashed #D8E4EF;
    border-radius: 20px;
}
.scd-empty-ico {
    width: 66px; height: 66px; margin: 0 auto 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 27px; color: #9AACC0;
    background: #F3F8FC; border-radius: 22px;
}
.scd-empty-title { margin: 0 0 6px; font-size: 16px; font-weight: 700; color: #12202D; }
.scd-empty-text { margin: 0 auto; max-width: 46ch; font-size: 13.5px; line-height: 1.65; color: #8A9CB0; }

/* ---- Live session card --------------------------------------------- */
.scd-lives { display: grid; gap: 14px; }
.scd-live {
    /* same reasoning as .scd-hero — one background, no layered children */
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px;
    padding: 22px 24px;
    background:
        radial-gradient(300px 300px at 94% 0%, rgba(255,142,170,.34) 0%, rgba(255,142,170,0) 64%),
        linear-gradient(135deg, #4C1D3D 0%, #7A1F44 48%, #B21E4B 100%);
    border-radius: 22px;
    box-shadow: 0 18px 38px rgba(150, 24, 62, .26);
    color: #fff;
}
.scd-live-main { display: flex; align-items: center; gap: 17px; min-width: 0; }
.scd-live-ico {
    position: relative; flex: 0 0 54px;
    width: 54px; height: 54px;
    display: flex; align-items: center; justify-content: center;
    font-size: 26px; color: #fff;
    background: rgba(255,255,255,.16);
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 18px;
}
.scd-live-ping {
    position: absolute; top: -3px; right: -3px;
    width: 13px; height: 13px; border-radius: 50%;
    background: #FF5C8A; border: 2.5px solid #7A1F44;
    box-shadow: 0 0 0 0 rgba(255,92,138,.7);
    animation: scdPing 2s cubic-bezier(.4,0,.6,1) infinite;
}
@keyframes scdPing {
    0%   { box-shadow: 0 0 0 0 rgba(255,92,138,.65); }
    70%  { box-shadow: 0 0 0 11px rgba(255,92,138,0); }
    100% { box-shadow: 0 0 0 0 rgba(255,92,138,0); }
}
.scd-live-body { min-width: 0; }
.scd-live-tag {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 4px 11px; margin-bottom: 8px;
    font-size: 11.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
    color: #FFD7E2; background: rgba(255,255,255,.15);
    border-radius: 999px;
}
.scd-live-dot {
    width: 7px; height: 7px; border-radius: 50%; background: #FF5C8A;
    animation: scdBlink 1.6s ease-in-out infinite;
}
@keyframes scdBlink { 0%,100% { opacity: 1; } 50% { opacity: .32; } }
.scd-live-title {
    margin: 0 0 9px;
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-size: 19px; font-weight: 800; letter-spacing: -.02em; line-height: 1.28; color: #fff;
}
.scd-live-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 13px; color: rgba(255,225,234,.82); }
.scd-live-meta span { display: inline-flex; align-items: center; gap: 6px; }
.scd-live-meta i { font-size: 15px; opacity: .8; }

/* the one call to action on the page */
.scd-join {
    display: inline-flex; align-items: center; gap: 9px;
    padding: 13px 24px;
    font-size: 14.5px; font-weight: 800; text-decoration: none;
    color: #A31043; background: #fff;
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(0,0,0,.22);
    transition: transform .16s ease, box-shadow .22s ease;
}
.scd-join i { font-size: 18px; }
.scd-join:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(0,0,0,.3); }

/* the locked screen reuses .scd-join, but in the house colours */
.scd-locked-act .scd-join { color: #fff; background: linear-gradient(135deg, #0EA5A0, #0B8F8B); box-shadow: 0 10px 24px rgba(14,165,160,.32); }

/* ---- Timetable ----------------------------------------------------- */
.scd-tl { position: relative; margin: 0; padding: 0 0 0 4px; list-style: none; }
.scd-tl::before {
    content: ''; position: absolute; left: 33px; top: 14px; bottom: 14px; width: 2px;
    background: linear-gradient(180deg, rgba(14,165,160,.34), rgba(124,92,255,.20), transparent);
}
.scd-tl-item { position: relative; display: flex; align-items: flex-start; gap: 20px; padding-bottom: 14px; }
.scd-tl-item:last-child { padding-bottom: 0; }
.scd-tl-date {
    position: relative; z-index: 1; flex: 0 0 60px;
    width: 60px; padding: 9px 0; text-align: center;
    background: #fff;
    border: 1px solid var(--ags-line, #E8EEF5);
    border-radius: 15px;
    box-shadow: 0 2px 8px rgba(11,44,77,.06);
}
.scd-tl-date b {
    display: block;
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-size: 21px; font-weight: 800; line-height: 1; color: #0A1A2B;
}
.scd-tl-date i {
    display: block; margin-top: 3px;
    font-size: 11px; font-style: normal; font-weight: 700;
    letter-spacing: .09em; text-transform: uppercase; color: #8A9CB0;
}
.scd-tl-card {
    flex: 1; min-width: 0;
    padding: 17px 20px;
    background: #fff;
    border: 1px solid var(--ags-line, #E8EEF5);
    border-radius: 18px;
    box-shadow: 0 1px 2px rgba(11,44,77,.04);
    transition: border-color .18s ease, transform .16s ease, box-shadow .22s ease;
}
.scd-tl-item:hover .scd-tl-card {
    border-color: rgba(124,92,255,.30);
    transform: translateX(3px);
    box-shadow: 0 12px 26px rgba(11,44,77,.08);
}
.scd-tl-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 7px; }
.scd-tl-no { font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #A6B6C7; }
.scd-tl-state {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 11px;
    font-size: 12px; font-weight: 700;
    color: #5B45C7; background: rgba(124,92,255,.10);
    border: 1px solid rgba(124,92,255,.20); border-radius: 999px;
}
.scd-tl-dot { width: 6px; height: 6px; border-radius: 50%; background: #7C5CFF; animation: scdBlink 2.4s ease-in-out infinite; }
.scd-tl-title {
    margin: 0 0 9px;
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-size: 16.5px; font-weight: 700; letter-spacing: -.015em; line-height: 1.35; color: #0A1A2B;
}
.scd-tl-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: #7B8EA4; }
.scd-tl-meta span { display: inline-flex; align-items: center; gap: 7px; }
.scd-tl-meta i { font-size: 15px; color: #A6B6C7; }

/* ---- Timeline states -----------------------------------------------
   Upcoming keeps the violet badge defined above, so it needs no rules.
   Live is red and Completed is grey, so a student can tell at a glance
   which classes are behind them and which are still to come. */

/* Live now — red, and the only one that keeps blinking. */
.scd-tl-item.is-live .scd-tl-state {
    color: #B3213B;
    background: rgba(244,63,94,.10);
    border-color: rgba(244,63,94,.24);
}
.scd-tl-item.is-live .scd-tl-dot { background: var(--ags-rose, #F43F5E); }
.scd-tl-item.is-live .scd-tl-card { border-color: rgba(244,63,94,.32); }
.scd-tl-item.is-live .scd-tl-date { border-color: rgba(244,63,94,.36); }

/* Completed — quiet grey and a dashed edge, so past classes sit back
   and the eye lands on what is still coming. */
.scd-tl-item.is-done .scd-tl-state {
    color: #6B7C90;
    background: rgba(107,124,144,.09);
    border-color: rgba(107,124,144,.20);
}
.scd-tl-item.is-done .scd-tl-dot { background: #9AABBD; animation: none; }
.scd-tl-item.is-done .scd-tl-card {
    background: #FBFCFE;
    border-style: dashed;
    border-color: #E2E9F2;
}
.scd-tl-item.is-done .scd-tl-title { color: #52657A; }
.scd-tl-item.is-done .scd-tl-date {
    background: #F6F8FC;
    box-shadow: none;
    border-color: #E6ECF4;
}
.scd-tl-item.is-done .scd-tl-date b { color: #6B7C90; }

/* ---- Recordings ---------------------------------------------------- */
.scd-recs { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.scd-rec {
    display: flex; align-items: center; gap: 16px;
    padding: 15px 17px;
    background: #fff;
    border: 1px solid var(--ags-line, #E8EEF5);
    border-radius: 18px;
    box-shadow: 0 1px 2px rgba(11,44,77,.04);
    text-decoration: none;
    transition: border-color .18s ease, transform .16s ease, box-shadow .22s ease;
}
.scd-rec:hover { border-color: rgba(14,165,160,.34); transform: translateY(-3px); box-shadow: 0 14px 30px rgba(11,44,77,.09); }
.scd-rec-thumb {
    position: relative; flex: 0 0 62px;
    width: 62px; height: 56px;
    display: flex; align-items: center; justify-content: center;
    font-size: 21px; color: #fff;
    background: linear-gradient(135deg, #0B2C4D, #0E7C7B);
    border-radius: 15px;
    transition: transform .18s ease;
}
.scd-rec:hover .scd-rec-thumb { transform: scale(1.05); }
.scd-rec-no {
    position: absolute; right: -5px; bottom: -5px;
    min-width: 22px; height: 22px; padding: 0 5px;
    display: flex; align-items: center; justify-content: center;
    font-size: 10.5px; font-weight: 800; color: #0B2C4D;
    background: #fff; border-radius: 8px;
    box-shadow: 0 2px 6px rgba(11,44,77,.16);
}
.scd-rec-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.scd-rec-title {
    font-size: 15px; font-weight: 700; letter-spacing: -.01em; line-height: 1.35; color: #0A1A2B;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.scd-rec:hover .scd-rec-title { color: var(--ags-teal, #0EA5A0); }
.scd-rec-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 12.5px; color: #8A9CB0; }
.scd-rec-meta > span { display: inline-flex; align-items: center; gap: 6px; }
.scd-rec-meta i { font-size: 14px; }
.scd-rec-lock { color: #0B8F8B; font-weight: 600; }
.scd-rec-go {
    flex: 0 0 34px; width: 34px; height: 34px;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; color: #9AACC0;
    background: #F3F8FC; border-radius: 11px;
    transition: background .18s ease, color .18s ease, transform .16s ease;
}
.scd-rec:hover .scd-rec-go { background: var(--ags-teal, #0EA5A0); color: #fff; transform: translateX(3px); }

/* ---- Payments ------------------------------------------------------ */
.scd-pays { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 14px; }
.scd-pay {
    position: relative; overflow: hidden;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid var(--ags-line, #E8EEF5);
    border-radius: 18px;
    box-shadow: 0 1px 2px rgba(11,44,77,.04);
    transition: transform .16s ease, box-shadow .22s ease;
}
.scd-pay::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; }
.scd-pay:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(11,44,77,.09); }
.scd-pay.is-ok::before   { background: linear-gradient(180deg, #10B981, #34D399); }
.scd-pay.is-wait::before { background: linear-gradient(180deg, #F59E0B, #FBBF24); }
.scd-pay-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.scd-pay-date { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: #8A9CB0; }
.scd-pay-date i { font-size: 14px; }
.scd-pay-state {
    padding: 4px 11px;
    font-size: 11.5px; font-weight: 800; letter-spacing: .03em;
    border-radius: 999px; border: 1px solid transparent;
}
.scd-pay.is-ok   .scd-pay-state { color: #047857; background: rgba(16,185,129,.11); border-color: rgba(16,185,129,.24); }
.scd-pay.is-wait .scd-pay-state { color: #B45309; background: rgba(245,158,11,.11); border-color: rgba(245,158,11,.26); }
.scd-pay-amount {
    margin: 0 0 3px;
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-size: 25px; font-weight: 800; letter-spacing: -.03em; color: #0A1A2B;
}
.scd-pay-note { margin: 0; font-size: 12.5px; line-height: 1.5; color: #8A9CB0; }
/* The receipt number, readable without opening the PDF - it is what a
   student quotes when they ask about a payment. */
.scd-pay-ref { margin: 6px 0 0; font-size: 11.5px; color: #8A9CB0; }
.scd-pay-ref b { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
                 font-size: 11px; color: var(--ags-ink, #0C1B2A); letter-spacing: .01em; }

/* ---- Locked (not approved / not paid) ------------------------------ */
.scd-locked {
    padding: 46px 32px; text-align: center;
    background: linear-gradient(180deg, #F7FBFF 0%, #fff 55%);
    border: 1px solid var(--ags-line, #E8EEF5);
    border-radius: 24px;
    box-shadow: 0 1px 2px rgba(11,44,77,.04);
}
.scd-locked-ico {
    width: 78px; height: 78px; margin: 0 auto 20px;
    display: flex; align-items: center; justify-content: center;
    font-size: 32px; color: #B45309;
    background: rgba(245,158,11,.12); border-radius: 26px;
}
.scd-locked-title {
    margin: 0 0 10px;
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-size: 23px; font-weight: 800; letter-spacing: -.024em; color: #0A1A2B;
}
.scd-locked-text { margin: 0 auto 28px; max-width: 54ch; font-size: 14.5px; line-height: 1.75; color: #66788C; }
.scd-steps { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 28px; }
.scd-step {
    display: flex; align-items: center; gap: 13px;
    padding: 15px 20px; min-width: 216px;
    background: #fff;
    border: 1px solid var(--ags-line, #E8EEF5);
    border-radius: 16px; text-align: left;
}
.scd-step-ico {
    width: 40px; height: 40px; flex: 0 0 40px;
    display: flex; align-items: center; justify-content: center;
    font-size: 19px; border-radius: 13px;
}
.scd-step.is-done { border-color: rgba(16,185,129,.30); }
.scd-step.is-done .scd-step-ico { color: #047857; background: rgba(16,185,129,.11); }
.scd-step.is-wait .scd-step-ico { color: #B45309; background: rgba(245,158,11,.12); }
.scd-step-body { display: flex; flex-direction: column; gap: 1px; }
.scd-step-label { font-size: 11.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: #94A6B8; }
.scd-step-value { font-size: 15px; font-weight: 700; color: #0A1A2B; }
.scd-locked-act { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

/* ---- Leave this course --------------------------------------------- */
.scd-leave {
    max-width: 420px;
    padding: 20px 22px; text-align: center;
    background: #FFF7F8;
    border: 1px solid #FADCE2;
    border-radius: 20px;
}
.scd-leave-title { margin: 0 0 5px; font-size: 15px; font-weight: 800; letter-spacing: -.012em; color: #8C1D33; }
.scd-leave-sub { margin: 0 0 15px; font-size: 13.5px; line-height: 1.6; color: #B2687C; }
.scd-leave-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; padding: 11px 18px;
    font-size: 13.5px; font-weight: 700; color: #B4123C;
    background: #fff; border: 1px solid #F5C6D0; border-radius: 13px;
    cursor: pointer;
    transition: background .18s ease, color .18s ease, border-color .18s ease, transform .16s ease;
}
.scd-leave-btn i { font-size: 17px; }
.scd-leave-btn:hover { background: #E11D48; border-color: #E11D48; color: #fff; transform: translateY(-1px); }
.scd-leave-wait {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    padding: 11px 16px;
    font-size: 13px; font-weight: 700; color: #B45309;
    background: rgba(245,158,11,.11); border: 1px solid rgba(245,158,11,.28); border-radius: 13px;
}
.scd-leave-wait i { font-size: 16px; }

.scd-leave-form {
    max-width: 520px; margin-top: 14px; overflow: hidden;
    background: #fff;
    border: 1px solid var(--ags-line, #E8EEF5);
    border-radius: 20px;
    box-shadow: 0 18px 40px rgba(11,44,77,.12);
}
.scd-leave-form-head { padding: 20px 22px 16px; border-bottom: 1px solid #F1F5F9; }
.scd-leave-form-head h4 { margin: 0 0 5px; font-size: 16px; font-weight: 800; letter-spacing: -.015em; color: #0A1A2B; }
.scd-leave-form-head p { margin: 0; font-size: 13.5px; line-height: 1.65; color: #7B8EA4; }
.scd-leave-form-head b { color: #B4123C; font-weight: 700; }
.scd-leave-form-body { padding: 20px 22px 22px; }
.scd-leave-label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 700; color: #55677C; }
.scd-leave-input {
    width: 100%; padding: 13px 15px;
    font-family: inherit; font-size: 14px; line-height: 1.6; color: #0A1A2B;
    background: #FBFDFF; border: 1px solid #DDE7F1; border-radius: 14px;
    outline: none; resize: vertical;
    transition: border-color .18s ease, box-shadow .2s ease, background .18s ease;
}
.scd-leave-input::placeholder { color: #A6B6C7; }
.scd-leave-input:focus { background: #fff; border-color: var(--ags-teal, #0EA5A0); box-shadow: 0 0 0 4px rgba(14,165,160,.12); }
.scd-leave-act { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.scd-leave-cancel, .scd-leave-go {
    flex: 1 1 160px; padding: 12px 18px;
    font-size: 13.5px; font-weight: 700; border-radius: 13px; cursor: pointer;
    transition: background .18s ease, color .18s ease, border-color .18s ease, transform .16s ease;
}
.scd-leave-cancel { color: #55677C; background: #fff; border: 1px solid var(--ags-line, #E8EEF5); }
.scd-leave-cancel:hover { background: #F3F8FC; color: #0A1A2B; transform: translateY(-1px); }
.scd-leave-go { color: #fff; background: #E11D48; border: 1px solid #E11D48; }
.scd-leave-go:hover { background: #BE123C; border-color: #BE123C; transform: translateY(-1px); }

/* ---- Small screens ------------------------------------------------- */
@media (max-width: 900px) {
    .scd-hero { padding: 24px 20px 22px; border-radius: 22px; }
    .scd-hero-title { font-size: 26px; }
    .scd-hero-sub { font-size: 14px; margin-bottom: 18px; }
}
@media (max-width: 640px) {
    .scd-crumbs { font-size: 12.5px; }
    .scd-crumbs span { max-width: 20ch; }
    .scd-hero-title { font-size: 24px; }
    .scd-facts { grid-template-columns: 1fr 1fr; gap: 10px; }
    .scd-fact { padding: 14px; gap: 11px; }
    .scd-fact-ico { width: 38px; height: 38px; flex-basis: 38px; font-size: 17px; border-radius: 12px; }
    .scd-fact-value { font-size: 21px; }
    .scd-fact-label { font-size: 11.5px; }
    .scd-about { padding: 18px; }
    .scd-head-title { font-size: 19px; }
    .scd-head-row { flex-direction: column; align-items: flex-start; }
    .scd-live { padding: 18px; border-radius: 20px; }
    .scd-live-title { font-size: 17px; }
    .scd-join { width: 100%; justify-content: center; }
    .scd-tl::before { left: 25px; }
    .scd-tl-item { gap: 13px; }
    .scd-tl-date { flex-basis: 48px; width: 48px; }
    .scd-tl-date b { font-size: 18px; }
    .scd-tl-card { padding: 14px 15px; }
    .scd-tl-title { font-size: 15px; }
    .scd-recs, .scd-pays { grid-template-columns: 1fr; }
    .scd-locked { padding: 32px 20px; }
    .scd-locked-title { font-size: 20px; }
    .scd-step { min-width: 0; width: 100%; }
    .scd-leave, .scd-leave-form { max-width: none; }
}

/* Respect a reduced-motion preference by calming the movement — not by
   removing it, which leaves the page looking broken. */
@media (prefers-reduced-motion: reduce) {
    .scd-live-ping { animation-duration: 4.5s; }
    .scd-live-dot, .scd-tl-dot { animation-duration: 5s; }
    .scd-fact:hover, .scd-rec:hover, .scd-pay:hover, .scd-back:hover, .scd-join:hover { transform: none; }
    .scd-tl-item:hover .scd-tl-card { transform: none; }
}


/* ---- Small fee note, sitting to one side of the hero ---------------- */
.scd-fee {
    flex: 0 0 auto;
    width: 186px;
    display: flex; flex-direction: column; align-items: flex-start; gap: 3px;
    padding: 15px 17px;
    background: rgba(255,255,255,.11);
    border: 1px solid rgba(255,255,255,.20);
    border-radius: 16px;
}
.scd-fee-label {
    font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    color: rgba(214,235,250,.66);
}
.scd-fee-amount {
    display: flex; align-items: center; gap: 7px;
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-size: 24px; font-weight: 800; letter-spacing: -.03em; line-height: 1.15; color: #fff;
}
.scd-fee-amount i { font-size: 21px; }
.scd-fee-note { margin-top: 1px; font-size: 11.5px; line-height: 1.45; color: rgba(214,235,250,.62); }
.scd-fee-btn {
    margin-top: 10px; width: 100%;
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    padding: 9px 14px;
    font-size: 13px; font-weight: 800; text-decoration: none;
    color: #0B2C4D; background: #fff;
    border-radius: 11px;
    transition: background .18s ease, color .18s ease;
}
.scd-fee-btn:hover { background: #DFF7F5; color: #0A6E6A; }

/* money still owed gets an amber edge; settled gets a green one */
.scd-fee.is-due   { border-color: rgba(251,191,36,.46); background: rgba(251,191,36,.13); }
.scd-fee.is-due   .scd-fee-label { color: #FCE7AE; }
.scd-fee.is-clear { border-color: rgba(52,211,153,.42); background: rgba(52,211,153,.13); }
.scd-fee.is-clear .scd-fee-label  { color: #B9F7DF; }
.scd-fee.is-clear .scd-fee-amount { color: #C8FBE6; font-size: 21px; }

@media (max-width: 640px) {
    .scd-fee { width: 100%; flex-direction: row; align-items: center; flex-wrap: wrap; gap: 4px 12px; }
    .scd-fee-label  { width: 100%; }
    .scd-fee-amount { font-size: 21px; }
    .scd-fee-note   { flex: 1; }
    .scd-fee-btn    { width: auto; margin-top: 0; }
}

/* =========================================================================
   STUDENT DASHBOARD — the class that matters now, then the timetable
   Prefix: .sd-   Added when the dashboard was rebuilt around live sessions
   rather than around recordings a student never has to act on.
   ========================================================================= */

/* ---- Spotlight: whatever is live, else whatever is nearest -------------- */
.sd-spot {
    position: relative; overflow: hidden;
    border-radius: 24px;
    padding: 26px 28px;
    background: linear-gradient(135deg, #0B2C4D 0%, #17356B 55%, #3B2E7E 100%);
    color: #fff;
    box-shadow: 0 24px 60px -34px rgba(11,44,77,.75);
}
.sd-spot-glow {
    position: absolute; inset: -40% -10% auto auto;
    width: 460px; height: 460px; border-radius: 50%;
    background: radial-gradient(circle, rgba(34,211,238,.30) 0%, transparent 64%);
    pointer-events: none;
}
.sd-spot.is-live .sd-spot-glow { background: radial-gradient(circle, rgba(244,63,94,.38) 0%, transparent 64%); }
.sd-spot.is-live { box-shadow: 0 24px 60px -30px rgba(225,29,72,.6); }

.sd-spot-in {
    position: relative; z-index: 1;
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px;
}
.sd-spot-main { min-width: 0; flex: 1 1 320px; }

.sd-spot-tag {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 5px 12px; border-radius: 999px;
    background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18);
    font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.sd-spot.is-live .sd-spot-tag { background: rgba(244,63,94,.20); border-color: rgba(244,63,94,.42); }
.sd-dot {
    width: 7px; height: 7px; border-radius: 50%; background: #FF5B77;
    box-shadow: 0 0 0 4px rgba(244,63,94,.22);
    animation: sd-pulse 2s ease-in-out infinite;
}
@keyframes sd-pulse {
    0%,100% { box-shadow: 0 0 0 4px rgba(244,63,94,.22); }
    50%     { box-shadow: 0 0 0 8px rgba(244,63,94,.06); }
}

.sd-spot-title {
    margin: 14px 0 0;
    font-family: 'Plus Jakarta Sans','Inter',sans-serif;
    font-size: clamp(20px, 2.4vw, 27px); font-weight: 750; letter-spacing: -.03em; line-height: 1.2;
    color: #fff;   /* the site-wide heading colour is dark navy — unreadable on this dark card */
    text-shadow: 0 1px 12px rgba(6,18,40,.35);
}
.sd-spot-course { margin: 7px 0 0; font-size: 13.5px; color: rgba(255,255,255,.72); }
.sd-spot-code {
    margin-left: 8px; padding: 2px 8px; border-radius: 6px;
    background: rgba(255,255,255,.10); font-size: 11px; letter-spacing: .04em;
}
.sd-spot-meta {
    display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 14px;
    font-size: 12.5px; color: rgba(255,255,255,.66);
}
.sd-spot-meta span { display: inline-flex; align-items: center; gap: 7px; }

.sd-spot-side { flex: 0 0 auto; text-align: center; }
.sd-spot-join {
    display: inline-flex; align-items: center; gap: 9px;
    padding: 14px 26px; border-radius: 14px;
    background: #fff; color: #0B2C4D;
    font-size: 14.5px; font-weight: 700; text-decoration: none;
    box-shadow: 0 14px 32px -14px rgba(0,0,0,.7);
    transition: transform .18s ease, box-shadow .22s ease;
}
.sd-spot-join:hover { transform: translateY(-2px); box-shadow: 0 20px 40px -14px rgba(0,0,0,.8); }
.sd-spot-when {
    display: block; padding: 12px 22px; border-radius: 14px;
    background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14);
}
.sd-spot-when-k { display: block; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.sd-spot-when-v { display: block; margin-top: 3px; font-size: 19px; font-weight: 750; font-variant-numeric: tabular-nums; }
.sd-spot-note { margin: 9px 0 0; font-size: 11.5px; color: rgba(255,255,255,.55); max-width: 210px; }

/* ---- Two timetable panels ---------------------------------------------- */
.sd-cols { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; }
@media (max-width: 900px) { .sd-cols { grid-template-columns: 1fr; } }

.sd-panel { overflow: hidden; }
.sd-panel-top {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 16px 18px; border-bottom: 1px solid var(--ags-line, #E8EEF5);
    background: var(--ags-canvas, #F6F8FC);
}
.sd-panel-name { margin: 0; font-size: 15px; font-weight: 700; letter-spacing: -.02em; color: var(--ags-ink, #0C1B2A); }
.sd-panel-note { margin: 2px 0 0; font-size: 11.5px; color: var(--ags-muted, #7C8DA4); }
.sd-panel-num {
    min-width: 26px; height: 26px; padding: 0 8px; border-radius: 8px;
    display: inline-flex; align-items: center; justify-content: center;
    background: #fff; border: 1px solid var(--ags-line, #E8EEF5);
    font-size: 12.5px; font-weight: 750; color: var(--ags-ink, #0C1B2A);
}
.sd-panel.is-today .sd-panel-num { background: #FFF1F3; border-color: #FBD6DC; color: #C6203C; }

/* the rail, same idea as the instructor agenda */
.sd-panel-list { padding: 4px 16px 14px; }
.sd-slot {
    position: relative;
    display: grid; grid-template-columns: 46px 15px minmax(0,1fr) auto;
    align-items: start; gap: 0;
    padding: 13px 0 14px;
    border-bottom: 1px solid var(--ags-line-soft, #F1F5F9);
}
.sd-slot:last-child { border-bottom: 0; padding-bottom: 4px; }
.sd-slot::before {
    content: ''; position: absolute; left: 53px; top: 0; bottom: 0; width: 1px;
    background: var(--ags-line, #E8EEF5);
}
.sd-slot:first-child::before { top: 14px; }
.sd-slot:last-child::before  { bottom: calc(100% - 22px); }

.sd-slot-when { text-align: right; padding-right: 2px; line-height: 1; }
.sd-slot-when b {
    display: block; font-family: 'Plus Jakarta Sans','Inter',sans-serif;
    font-size: 16px; font-weight: 750; letter-spacing: -.03em;
    font-variant-numeric: tabular-nums; color: var(--ags-ink, #0C1B2A);
}
.sd-slot-when i {
    display: block; margin-top: 3px; font-style: normal;
    font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
    color: var(--ags-muted, #7C8DA4);
}
.sd-slot-mark {
    position: relative; z-index: 1; justify-self: center; margin-top: 5px;
    width: 9px; height: 9px; border-radius: 50%;
    background: #fff; box-shadow: inset 0 0 0 2px #C3C7DE;
}
.sd-slot-body { min-width: 0; padding-left: 3px; padding-right: 10px; }
.sd-slot-state {
    display: block; font-size: 10px; font-weight: 800;
    letter-spacing: .13em; text-transform: uppercase;
    color: var(--ags-muted, #7C8DA4); margin-bottom: 3px;
}
.sd-slot-topic {
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    font-family: 'Plus Jakarta Sans','Inter',sans-serif;
    font-size: 13.5px; font-weight: 650; letter-spacing: -.015em; line-height: 1.32;
    color: var(--ags-ink, #0C1B2A);
}
.sd-slot-course {
    display: block; margin-top: 4px; font-size: 11.5px; color: var(--ags-body, #46586E);
    opacity: .78; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sd-slot-join {
    align-self: center; flex: none;
    padding: 7px 14px; border-radius: 10px;
    background: var(--ags-grad-brand, linear-gradient(120deg,#0EA5A0,#7C5CFF));
    color: #fff; font-size: 12px; font-weight: 700; text-decoration: none;
    white-space: nowrap;
}
.sd-slot-join:hover { filter: brightness(1.08); }

/* state colours, matching the instructor agenda */
.sd-slot.is-live .sd-slot-mark {
    background: #E11D48; box-shadow: 0 0 0 3px rgba(225,29,72,.16);
    animation: sd-mark 2.4s ease-in-out infinite;
}
@keyframes sd-mark {
    0%,100% { box-shadow: 0 0 0 3px rgba(225,29,72,.16); }
    50%     { box-shadow: 0 0 0 6px rgba(225,29,72,.05); }
}
.sd-slot.is-live .sd-slot-when b,
.sd-slot.is-live .sd-slot-state { color: #C6203C; }

.sd-slot.is-upcoming .sd-slot-mark  { box-shadow: inset 0 0 0 2.5px #7C5CFF; }
.sd-slot.is-upcoming .sd-slot-state { color: #5B45C7; }

.sd-slot.is-finished .sd-slot-mark  { background: #DDE1EC; box-shadow: none; }
.sd-slot.is-finished .sd-slot-when b,
.sd-slot.is-finished .sd-slot-topic { color: #8A93A8; font-weight: 600; }
.sd-slot.is-finished .sd-slot-course { opacity: .5; }

.sd-empty { text-align: center; padding: 30px 14px; }
.sd-empty i { font-size: 1.5rem; color: var(--ags-muted, #7C8DA4); opacity: .5; }
.sd-empty p { margin-top: 9px; font-size: 12.5px; color: var(--ags-muted, #7C8DA4); }

@media (prefers-reduced-motion: reduce) {
    .sd-dot, .sd-slot.is-live .sd-slot-mark { animation: none; }
}

/* Receipt link inside a student's payment card. Understated: the amount and
   whether it cleared are what a student came to check; the document is what
   they fetch occasionally. */
.scd-pay-receipt {
    display:inline-flex; align-items:center; gap:6px; margin-top:10px;
    padding:6px 11px; border-radius:9px;
    border:1px solid var(--ags-line,#E8EEF5); background:#fff;
    font-size:12px; font-weight:650; color:var(--ags-body,#46586E); text-decoration:none;
    transition:border-color .16s ease, color .16s ease, background .16s ease;
}
.scd-pay-receipt:hover { background:var(--ags-navy,#0B2C4D); border-color:var(--ags-navy,#0B2C4D); color:#fff; }

/* =========================================================================
   CHAT — shared by the admin inbox and the instructor's single thread
   ========================================================================= */
.ch-wrap { display:grid; grid-template-columns:300px minmax(0,1fr); gap:0;
           border:1px solid var(--ags-line,#E8EEF5); border-radius:18px; overflow:hidden; background:#fff;
           height:min(72vh,620px); }
.ch-wrap.is-single { grid-template-columns:minmax(0,1fr); }
@media (max-width:860px){ .ch-wrap{ grid-template-columns:minmax(0,1fr); height:auto; } .ch-list{ display:none; } .ch-wrap.show-list .ch-list{ display:block; } }

.ch-list { border-right:1px solid var(--ags-line,#E8EEF5); background:#FBFCFE; overflow-y:auto; }
.ch-list-head { padding:14px 16px; border-bottom:1px solid var(--ags-line,#E8EEF5); background:#fff; position:sticky; top:0; z-index:1; }
.ch-search { width:100%; padding:9px 12px; border:1px solid var(--ags-line,#E8EEF5); border-radius:10px; font-size:13px; }

.ch-item { display:flex; gap:11px; padding:12px 14px; cursor:pointer; border-bottom:1px solid var(--ags-line-soft,#F1F5F9);
           transition:background .15s ease; }
.ch-item:hover { background:#fff; }
.ch-item.is-on { background:#fff; box-shadow:inset 3px 0 0 var(--ags-teal,#0EA5A0); }
.ch-ava { width:38px; height:38px; border-radius:50%; flex:none; background:var(--ags-grad-brand,linear-gradient(120deg,#0EA5A0,#7C5CFF));
          color:#fff; display:flex; align-items:center; justify-content:center; font-weight:750; font-size:14px; }
.ch-item-body { min-width:0; flex:1; }
.ch-item-top { display:flex; align-items:baseline; justify-content:space-between; gap:8px; }
.ch-item-name { font-size:13.5px; font-weight:700; color:var(--ags-ink,#0C1B2A); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.ch-item-time { font-size:10.5px; color:var(--ags-muted,#7C8DA4); flex:none; }
.ch-item-last { font-size:12px; color:var(--ags-muted,#7C8DA4); margin-top:2px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.ch-badge { min-width:20px; height:20px; padding:0 6px; border-radius:999px; background:#E11D48; color:#fff;
            font-size:11px; font-weight:750; display:inline-flex; align-items:center; justify-content:center; }
.ch-badge.is-new { animation:ch-pulse 1.4s ease-in-out infinite; }
@keyframes ch-pulse { 0%,100%{ box-shadow:0 0 0 0 rgba(225,29,72,.5);} 70%{ box-shadow:0 0 0 7px rgba(225,29,72,0);} }

.ch-main { display:flex; flex-direction:column; min-width:0; }
.ch-head { display:flex; align-items:center; gap:11px; padding:13px 18px; border-bottom:1px solid var(--ags-line,#E8EEF5); }
.ch-head-name { font-size:14.5px; font-weight:700; color:var(--ags-ink,#0C1B2A); }
.ch-head-sub  { font-size:11.5px; color:var(--ags-muted,#7C8DA4); }
.ch-mute { margin-left:auto; background:none; border:1px solid var(--ags-line,#E8EEF5); border-radius:9px;
           width:32px; height:32px; cursor:pointer; color:var(--ags-muted,#7C8DA4); }
.ch-mute:hover { color:var(--ags-ink,#0C1B2A); }

.ch-feed { flex:1; overflow-y:auto; padding:18px; background:
           radial-gradient(circle at 20% 10%, rgba(14,165,160,.04), transparent 45%),
           radial-gradient(circle at 85% 90%, rgba(124,92,255,.04), transparent 45%), #FBFCFE; }
.ch-day { text-align:center; margin:14px 0 10px; }
.ch-day span { font-size:10.5px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:var(--ags-muted,#7C8DA4);
               background:#fff; border:1px solid var(--ags-line,#E8EEF5); border-radius:999px; padding:4px 12px; }

.ch-msg { max-width:74%; margin-bottom:9px; animation:ch-in .22s cubic-bezier(.2,.8,.3,1); }
@keyframes ch-in { from{ opacity:0; transform:translateY(7px);} to{ opacity:1; transform:none; } }
.ch-msg.is-me { margin-left:auto; }
.ch-bubble { padding:10px 13px; border-radius:15px; font-size:13.5px; line-height:1.5; word-wrap:break-word; white-space:pre-wrap; }
.ch-msg.is-them .ch-bubble { background:#fff; border:1px solid var(--ags-line,#E8EEF5); border-bottom-left-radius:5px; color:var(--ags-ink,#0C1B2A); }
.ch-msg.is-me   .ch-bubble { background:var(--ags-navy,#0B2C4D); color:#fff; border-bottom-right-radius:5px; }
.ch-meta { display:flex; align-items:center; gap:5px; margin-top:3px; font-size:10.5px; color:var(--ags-muted,#7C8DA4); }
.ch-msg.is-me .ch-meta { justify-content:flex-end; }
.ch-tick { font-size:11px; letter-spacing:-2px; }
.ch-tick.is-read { color:#38BDF8; }

.ch-typing { display:flex; gap:4px; align-items:center; padding:8px 13px; width:fit-content;
             background:#fff; border:1px solid var(--ags-line,#E8EEF5); border-radius:15px; border-bottom-left-radius:5px; }
.ch-typing i { width:6px; height:6px; border-radius:50%; background:#B9C4D4; animation:ch-dot 1.2s infinite; }
.ch-typing i:nth-child(2){ animation-delay:.15s; } .ch-typing i:nth-child(3){ animation-delay:.3s; }
@keyframes ch-dot { 0%,60%,100%{ transform:translateY(0); opacity:.5; } 30%{ transform:translateY(-4px); opacity:1; } }

.ch-compose { display:flex; gap:9px; padding:12px 14px; border-top:1px solid var(--ags-line,#E8EEF5); background:#fff; }
.ch-input { flex:1; resize:none; max-height:110px; padding:11px 13px; border:1px solid var(--ags-line,#E8EEF5);
            border-radius:12px; font-size:13.5px; font-family:inherit; line-height:1.5; }
.ch-input:focus { outline:none; border-color:var(--ags-teal,#0EA5A0); }
.ch-send { flex:none; width:44px; border:0; border-radius:12px; cursor:pointer; color:#fff;
           background:var(--ags-grad-brand,linear-gradient(120deg,#0EA5A0,#7C5CFF)); }
.ch-send:disabled { opacity:.45; cursor:not-allowed; }

.ch-empty { display:flex; flex-direction:column; align-items:center; justify-content:center; height:100%; text-align:center; color:var(--ags-muted,#7C8DA4); }
.ch-empty i { font-size:2rem; opacity:.4; margin-bottom:10px; }
@media (prefers-reduced-motion: reduce){ .ch-msg,.ch-badge.is-new,.ch-typing i{ animation:none; } }

/* ---- Student support widget --------------------------------------------- */
/* Above the sticky masthead, which sits at 1000. At 900 the header slid
   over the top of an open panel as the page scrolled, cutting off the
   greeting - the first message in the feed, so the first thing lost.
   Modals live at 9999 and still come out on top of this. */
.sw-root { position:fixed; right:20px; bottom:20px; z-index:1100; }
.sw-fab { position:relative; width:56px; height:56px; border-radius:50%; border:0; cursor:pointer; color:#fff;
          background:var(--ags-grad-brand,linear-gradient(120deg,#0EA5A0,#7C5CFF)); font-size:22px;
          box-shadow:0 10px 28px -10px rgba(11,44,77,.6); transition:transform .18s ease; }
.sw-fab:hover { transform:translateY(-2px); }
.sw-fab.is-open i:before { content:"\e93a"; }
.sw-fab-badge { position:absolute; top:-3px; right:-3px; min-width:21px; height:21px; padding:0 6px; border-radius:999px;
                background:#E11D48; color:#fff; font-size:11px; font-weight:750; display:flex; align-items:center; justify-content:center;
                border:2px solid #fff; }
.sw-fab-badge.hidden { display:none; }
/* Only rings when a reply lands while the panel is shut. */
.sw-fab.is-ringing { animation:sw-ring 1.1s ease-in-out infinite; }
@keyframes sw-ring { 0%,100%{ box-shadow:0 10px 28px -10px rgba(11,44,77,.6), 0 0 0 0 rgba(225,29,72,.45); }
                     70%{ box-shadow:0 10px 28px -10px rgba(11,44,77,.6), 0 0 0 14px rgba(225,29,72,0); } }

/* Never taller than the room between the header and the bubble, so the
   top of the conversation cannot end up underneath the header. */
.sw-panel { position:absolute; right:0; bottom:70px; width:min(340px,calc(100vw - 40px));
            height:min(460px, calc(100vh - 170px));
            display:flex; flex-direction:column; background:#fff; border:1px solid var(--ags-line,#E8EEF5);
            border-radius:16px; overflow:hidden; box-shadow:0 24px 60px -24px rgba(11,44,77,.45);
            animation:sw-pop .2s cubic-bezier(.2,.8,.3,1); }
@keyframes sw-pop { from{ opacity:0; transform:translateY(10px) scale(.98);} to{ opacity:1; transform:none; } }
.sw-head { display:flex; align-items:center; gap:8px; padding:13px 14px; color:#fff;
           background:linear-gradient(120deg,#0B2C4D,#17356B); }
.sw-head-txt { flex:1; min-width:0; }
.sw-title { margin:0; font-size:14px; font-weight:700; }
.sw-sub { margin:2px 0 0; font-size:11px; color:rgba(255,255,255,.7); }
.sw-icon { width:28px; height:28px; border:0; background:rgba(255,255,255,.12); color:#fff; border-radius:8px; cursor:pointer; }
.sw-icon:hover { background:rgba(255,255,255,.22); }

.sw-feed { flex:1; overflow-y:auto; padding:14px; background:#FBFCFE; }
.sw-hello { text-align:center; padding:22px 10px; }
.sw-hello-t { margin:0 0 6px; font-size:14px; font-weight:700; color:var(--ags-ink,#0C1B2A); }
.sw-hello-b { margin:0; font-size:12.5px; line-height:1.6; color:var(--ags-muted,#7C8DA4); }
.sw-msg { max-width:82%; margin-bottom:8px; animation:sw-in .2s ease; }
@keyframes sw-in { from{ opacity:0; transform:translateY(6px);} to{ opacity:1; transform:none; } }
.sw-msg.is-me { margin-left:auto; }
.sw-bubble { padding:9px 12px; border-radius:14px; font-size:13px; line-height:1.5; white-space:pre-wrap; word-wrap:break-word; }
.sw-msg.is-them .sw-bubble { background:#fff; border:1px solid var(--ags-line,#E8EEF5); border-bottom-left-radius:4px; color:var(--ags-ink,#0C1B2A); }
.sw-msg.is-me .sw-bubble { background:var(--ags-navy,#0B2C4D); color:#fff; border-bottom-right-radius:4px; }
.sw-time { margin-top:2px; font-size:10px; color:var(--ags-muted,#7C8DA4); }
.sw-msg.is-me .sw-time { text-align:right; }

.sw-compose { display:flex; gap:8px; padding:10px 11px; border-top:1px solid var(--ags-line,#E8EEF5); background:#fff; }
.sw-input { flex:1; resize:none; max-height:90px; padding:9px 11px; border:1px solid var(--ags-line,#E8EEF5);
            border-radius:11px; font-size:13px; font-family:inherit; line-height:1.5; }
.sw-input:focus { outline:none; border-color:var(--ags-teal,#0EA5A0); }
.sw-send { flex:none; width:38px; border:0; border-radius:11px; cursor:pointer; color:#fff;
           background:var(--ags-grad-brand,linear-gradient(120deg,#0EA5A0,#7C5CFF)); }
.sw-send:disabled { opacity:.45; cursor:not-allowed; }
@media (prefers-reduced-motion: reduce){ .sw-fab.is-ringing,.sw-msg,.sw-panel{ animation:none; } }

/* ---- Presence and waiting alerts ---------------------------------------- */
.pr-dot { display:inline-block; width:8px; height:8px; border-radius:50%; background:#C3CBD8; flex:none; }
.pr-dot.is-on { background:#10B981; box-shadow:0 0 0 3px rgba(16,185,129,.18); }
.ch-ava { position:relative; }
.ch-ava .pr-dot { position:absolute; right:-1px; bottom:-1px; border:2px solid #fff; width:11px; height:11px; }

/* The waiting bar only appears when somebody is actually waiting, and gets
   louder the longer they have been. Colour does the work, not motion. */
.pr-wait { display:flex; align-items:center; gap:11px; padding:11px 15px; border-radius:12px; margin-bottom:14px;
           background:#FFF8EC; border:1px solid #F6E0B8; color:#7A5810; font-size:13px; }
.pr-wait.is-urgent { background:#FDECEF; border-color:#F8D2DA; color:#9B2540; }
.pr-wait i { font-size:17px; flex:none; }
.pr-wait.is-urgent i { animation:pr-nudge 2s ease-in-out infinite; }
@keyframes pr-nudge { 0%,88%,100%{ transform:none; } 92%{ transform:rotate(-12deg);} 96%{ transform:rotate(12deg);} }
.pr-wait b { font-weight:700; }
.pr-wait-go { margin-left:auto; font-size:12px; font-weight:700; text-decoration:none; color:inherit;
              border:1px solid currentColor; border-radius:8px; padding:5px 11px; opacity:.75; }
.pr-wait-go:hover { opacity:1; }

.ch-item.is-waiting { background:#FFFDF7; }
.ch-wait-tag { font-size:10px; font-weight:750; color:#A9700A; }
.ch-wait-tag.is-urgent { color:#C33A52; }

/* Auto-reply reads as a note from the system, not a person */
.ch-msg.is-auto .ch-bubble, .sw-msg.is-auto .sw-bubble {
  background:#F3F6FB; border:1px dashed #D6DEEA; color:#5B6B80; font-style:italic; }

/* Star rating */
.ch-rate { margin:14px auto; max-width:340px; text-align:center; padding:16px; background:#fff;
           border:1px solid var(--ags-line,#E8EEF5); border-radius:14px; }
.ch-rate-t { margin:0 0 3px; font-size:13.5px; font-weight:700; color:var(--ags-ink,#0C1B2A); }
.ch-rate-s { margin:0 0 11px; font-size:11.5px; color:var(--ags-muted,#7C8DA4); }
.ch-stars { display:flex; justify-content:center; gap:5px; margin-bottom:10px; }
.ch-star { width:32px; height:32px; border:0; background:none; cursor:pointer; font-size:23px; line-height:1;
           color:#D8DEE8; transition:transform .12s ease, color .12s ease; }
.ch-star:hover, .ch-star.is-lit { color:#F5A524; transform:scale(1.14); }
.ch-rate-note { width:100%; padding:8px 10px; border:1px solid var(--ags-line,#E8EEF5); border-radius:9px; font-size:12.5px; }
.ch-rate-done { font-size:12.5px; color:#0A7A56; font-weight:650; }
@media (prefers-reduced-motion: reduce){ .pr-wait.is-urgent i,.ch-star{ animation:none; transition:none; } }
.sw-td { width:5px; height:5px; border-radius:50%; background:#B9C4D4; animation:ch-dot 1.2s infinite; }
.sw-td:nth-child(2){ animation-delay:.15s; } .sw-td:nth-child(3){ animation-delay:.3s; }
/* Past conversations inside the widget */
.sw-hist { flex:1; display:flex; flex-direction:column; overflow:hidden; background:#FBFCFE; }
.sw-hist-top { display:flex; align-items:center; gap:8px; padding:9px 11px; border-bottom:1px solid var(--ags-line,#E8EEF5);
               background:#fff; font-size:12.5px; font-weight:700; color:var(--ags-ink,#0C1B2A); }
.sw-hist-top .sw-icon { background:var(--ags-canvas,#F6F8FC); color:var(--ags-body,#46586E); }
.sw-hist-list { flex:1; overflow-y:auto; padding:10px; }
.sw-hist-row { display:block; width:100%; text-align:left; margin-bottom:7px; padding:10px 11px; cursor:pointer;
               background:#fff; border:1px solid var(--ags-line,#E8EEF5); border-radius:11px; }
.sw-hist-row:hover { border-color:var(--ags-teal,#0EA5A0); }
.sw-hist-q { display:block; font-size:12.5px; font-weight:650; color:var(--ags-ink,#0C1B2A); }
.sw-hist-m { display:block; margin-top:3px; font-size:10.5px; color:var(--ags-muted,#7C8DA4); }
.sw-hist-empty { text-align:center; font-size:12px; color:var(--ags-muted,#7C8DA4); padding:16px 10px; line-height:1.6; }
.sw-hist-read { padding:2px; }
.sw-hist-read .sw-msg { max-width:88%; }
/* Ticket stage bar and system lines */
.ch-tk { display:flex; align-items:center; gap:10px; }
.ch-tk-state { font-size:11px; font-weight:750; letter-spacing:.04em; text-transform:uppercase; }
.ch-tk-state.is-wait   { color:#A9700A; }
.ch-tk-state.is-live   { color:#0A7A56; }
.ch-tk-state.is-closed { color:var(--ags-muted,#7C8DA4); }
.ch-tk-btn { border:0; border-radius:9px; padding:7px 14px; font-size:12.5px; font-weight:700; cursor:pointer; color:#fff; }
.ch-tk-btn.is-join  { background:var(--ags-grad-brand,linear-gradient(120deg,#0EA5A0,#7C5CFF)); }
.ch-tk-btn.is-close { background:#0B2C4D; }
.ch-tk-btn:hover { filter:brightness(1.1); }

.ch-sys { text-align:center; margin:12px 0; }
.ch-sys span { display:inline-block; padding:6px 14px; border-radius:999px; background:#EEF2F8;
               border:1px solid #E2E9F2; font-size:11.5px; color:#5B6B80; }
.ch-input:disabled { background:#F6F8FC; cursor:not-allowed; }

/* The back-to-top button lives in the same corner as the chat bubble and
   fades in on scroll, so on any page with the bubble the two circles landed
   on top of each other. Move it above the bubble when the bubble is there. */
body.has-chat-bubble .ags-doc-top { bottom: 92px; }

/* The panel before a conversation exists. Opening the bubble used to file a
   support ticket and write a greeting into it, whether or not the student
   then said anything - so every page load left an empty ticket behind. Now
   the panel opens on this, and nothing is created until they ask for it. */
.sw-intro { display:flex; flex-direction:column; align-items:center; justify-content:center;
            text-align:center; height:100%; padding:26px 20px; gap:4px; }
.sw-intro-ico { width:52px; height:52px; border-radius:999px; display:grid; place-items:center;
                background:var(--ags-grad-brand,linear-gradient(120deg,#0EA5A0,#7C5CFF)); color:#fff;
                font-size:23px; margin-bottom:12px; }
.sw-intro-t { margin:0 0 6px; font-size:15px; font-weight:700; color:var(--ags-ink,#0C1B2A); }
.sw-intro-b { margin:0 0 16px; font-size:12.5px; line-height:1.6; color:var(--ags-muted,#7C8DA4); }
.sw-intro-go { border:0; border-radius:12px; padding:11px 20px; cursor:pointer; color:#fff;
               font-size:13.5px; font-weight:700; font-family:inherit;
               background:var(--ags-grad-brand,linear-gradient(120deg,#0EA5A0,#7C5CFF));
               box-shadow:0 10px 22px -12px rgba(11,44,77,.7); transition:transform .18s ease; }
.sw-intro-go:hover { transform:translateY(-1px); }
.sw-intro-go:disabled { opacity:.6; cursor:wait; transform:none; }
.sw-intro-note { margin:12px 0 0; font-size:11px; color:var(--ags-muted,#7C8DA4); }

/* --------------------------------------------------------------------------
   The panel's corners, which were squaring off as the page scrolled.

   The shape was borrowed rather than owned: the panel set border-radius and
   overflow:hidden, and the dark header underneath it was a plain rectangle
   being clipped to look round. A fixed, composited element repainting during
   a scroll can lose that clip, and when it does the header shows its real
   corners - the box the top of the chat kept turning into.

   So the pieces at the edges carry the radius themselves. Nothing depends on
   the clip any more, and there is no compositing hint to go stale: whichever
   child is at the top or the bottom is already the right shape.

   15px, not 16, so the curve sits inside the panel's 1px border instead of
   fighting it.
   -------------------------------------------------------------------------- */

.sw-head { border-radius: 15px 15px 0 0; }

/* Whichever of these is last on screen is the bottom of the panel: the
   compose box while chatting, the intro before a chat exists, the list while
   reading past conversations. */
.sw-compose,
.sw-intro,
.sw-hist { border-radius: 0 0 15px 15px; }

/* instructor-swap notice on the student's live class list */
.slc-swap-note{display:inline-flex;align-items:center;gap:8px;margin-top:9px;
  padding:7px 12px;border-radius:9px;font-size:12.5px;line-height:1.5;
  color:#8a5a13;background:#fdf3e2;border:1px solid #f0dcb4}
.slc-swap-note i{font-size:11px;color:#c98a2b}
.slc-swap-note b{font-weight:700}
.slc-swap-note--sm{font-size:11.5px;padding:5px 10px;margin-top:6px}

/* ===================== student assessments ===================== */
.asm-flash{margin-bottom:18px;padding:13px 18px;border-radius:12px;background:#FFF7ED;
  border:1px solid #FED7AA;color:#9A3412;font-size:13.5px;font-weight:600}
.asm-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:18px}
.asm-card{background:#fff;border:1px solid #E5EAF1;border-radius:18px;padding:20px;
  display:flex;flex-direction:column;gap:10px;box-shadow:0 8px 22px rgba(12,27,42,.06);
  transition:transform .3s,box-shadow .3s}
.asm-card:hover{transform:translateY(-4px);box-shadow:0 18px 38px rgba(12,27,42,.12)}
.asm-card h3{font-size:15.5px;font-weight:800;color:#0C1B2A;line-height:1.35}
.asm-card-top{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap}
.asm-card-meta{font-size:12.5px;color:#68738B;line-height:1.7}
.asm-tag{font-size:11px;font-weight:700;padding:4px 11px;border-radius:999px;
  background:#F1F5F9;color:#475569;border:1px solid #E2E8F0}
.asm-tag-open{background:#ECFDF5;color:#065F46;border-color:#A7F3D0}
.asm-tag-pass{background:#ECFDF5;color:#065F46;border-color:#A7F3D0}
.asm-tag-fail{background:#FEF2F2;color:#991B1B;border-color:#FECACA}
.asm-btn{display:inline-flex;align-items:center;justify-content:center;gap:9px;margin-top:auto;
  padding:11px 18px;border-radius:12px;font-size:13px;font-weight:700;text-decoration:none;
  transition:transform .25s,box-shadow .25s,background .25s;cursor:pointer;border:0}
.asm-btn-main{background:linear-gradient(135deg,#0EA5A0,#0284C7);color:#fff}
.asm-btn-main:hover{transform:translateY(-2px);box-shadow:0 12px 26px rgba(14,165,160,.35);color:#fff}
.asm-btn-ghost{background:#fff;border:1px solid #E2E8F0;color:#0C1B2A}
.asm-btn-ghost:hover{border-color:#0EA5A0;color:#0EA5A0}
.asm-empty{grid-column:1/-1;text-align:center;padding:60px 20px;color:#68738B}
.asm-empty i{font-size:40px;color:#CBD5E1;margin-bottom:14px}
.asm-empty h3{font-size:17px;font-weight:800;color:#0C1B2A;margin-bottom:6px}

/* the exam sheet */
.asm-exam{max-width:820px;margin:0 auto}
.asm-exam-head{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;
  background:#fff;border:1px solid #E5EAF1;border-radius:18px;padding:18px 22px;margin-bottom:18px;
  position:sticky;top:12px;z-index:5;box-shadow:0 10px 26px rgba(12,27,42,.08)}
.asm-exam-head h2{font-size:17px;font-weight:800;color:#0C1B2A}
.asm-exam-head p{font-size:12.5px;color:#68738B;margin-top:3px}
.asm-timer{display:inline-flex;align-items:center;gap:9px;padding:10px 16px;border-radius:12px;
  background:#0C1B2A;color:#fff;font-size:16px;font-weight:800;font-variant-numeric:tabular-nums}
.asm-timer.is-low{background:#E11D48;animation:asmPulse 1s ease-in-out infinite}
@keyframes asmPulse{50%{opacity:.75}}
.asm-q{background:#fff;border:1px solid #E5EAF1;border-radius:16px;padding:20px;margin-bottom:14px}
.asm-q-text{display:flex;gap:12px;font-size:14.5px;font-weight:700;color:#0C1B2A;line-height:1.55;margin-bottom:14px}
.asm-q-n{flex:none;width:28px;height:28px;border-radius:9px;background:#E3F5F4;color:#0EA5A0;
  display:grid;place-items:center;font-size:12.5px;font-weight:800}
.asm-choices{display:grid;gap:9px}
.asm-choice{display:flex;align-items:center;gap:12px;padding:12px 14px;border-radius:12px;
  border:1.5px solid #E5EAF1;cursor:pointer;transition:border-color .2s,background .2s}
.asm-choice:hover{border-color:#99E5E2;background:#F7FDFC}
.asm-choice input{accent-color:#0EA5A0;width:16px;height:16px;flex:none}
.asm-choice:has(input:checked){border-color:#0EA5A0;background:#E3F5F4}
.asm-choice-letter{flex:none;width:24px;height:24px;border-radius:8px;background:#F1F5F9;color:#475569;
  display:grid;place-items:center;font-size:11.5px;font-weight:800}
.asm-choice:has(input:checked) .asm-choice-letter{background:#0EA5A0;color:#fff}
.asm-choice-text{font-size:13.5px;color:#22314A;line-height:1.5}
.asm-exam-foot{display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap;
  padding:8px 2px 40px}
.asm-hint{font-size:13px;color:#68738B;font-weight:600}

/* the result card */
.asm-result{max-width:520px;margin:20px auto;text-align:center;background:#fff;border-radius:22px;
  padding:44px 30px;border:1px solid #E5EAF1;box-shadow:0 18px 44px rgba(12,27,42,.1)}
.asm-result-badge{font-size:54px;margin-bottom:14px}
.asm-result.is-pass .asm-result-badge{color:#10B981}
.asm-result.is-fail .asm-result-badge{color:#E11D48}
.asm-result h2{font-size:18px;font-weight:800;color:#0C1B2A;margin-bottom:12px}
.asm-result-score{font-size:38px;font-weight:800;color:#0C1B2A}
.asm-result-score span{font-size:17px;color:#68738B;font-weight:700}
.asm-result-verdict{font-size:14px;font-weight:700;margin:8px 0 4px}
.asm-result.is-pass .asm-result-verdict{color:#065F46}
.asm-result.is-fail .asm-result-verdict{color:#991B1B}
.asm-result-when{font-size:12px;color:#8A93A8;margin-bottom:22px}

/* --------------------------------------------------------------------------
   The widget hides its parts with the hidden attribute - intro.hidden = true,
   panel.hidden = !open, and so on. That leans on the browser's own
   [hidden]{display:none}, which any author "display" rule outranks, and the
   panel, the intro, the compose box and the history list all set display:flex
   above. So hidden was being ignored on exactly the four elements that use it:
   the greeting sat on top of a live conversation, "Start a chat" looked dead
   because the intro it replaced never went away, and the panel could not shut.

   Attribute-qualified, so these only bite while the element is actually
   hidden, and no !important is needed to win.
   -------------------------------------------------------------------------- */
.sw-panel[hidden],
.sw-intro[hidden],
.sw-feed[hidden],
.sw-compose[hidden],
.sw-hist[hidden] { display: none; }

/* --------------------------------------------------------------------------
   Scroll chaining. The panel floats over the page, so a wheel or a swipe
   inside it was doing both jobs at once: the feed scrolled to its end and the
   page underneath carried on from there, which reads as the whole design
   sliding about while you are trying to read a conversation.

   overscroll-behavior:contain keeps the gesture inside whichever box owns it
   and stops it passing to the page once that box has nowhere left to go. The
   panel itself carries it too, so a wheel over the header or the intro - both
   unscrollable - does not fall through to the page either.
   -------------------------------------------------------------------------- */
.sw-panel { overscroll-behavior: contain; }
.sw-feed,
.sw-hist-list,
.sw-input { overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }

/* --------------------------------------------------------------------------
   The panel is a flex column, and a flex item will not shrink below its own
   content unless it is told it may: min-height defaults to auto, not 0. So
   the feed grew to the full height of the conversation instead of scrolling
   inside the space left over, which pushed the compose box past the bottom of
   the panel - the last bubble sitting half under the writing line - and left
   the wheel with nothing scrollable to act on, so it went to the page instead
   and both moved at once.

   min-height:0 lets these three shrink, which makes the feed the real
   scroller. overscroll-behavior above only works once that is true.

   The intro is sized the same way for the same reason: height:100% against a
   flex parent is a guess, flex:1 is the actual space left.
   -------------------------------------------------------------------------- */
.sw-feed,
.sw-hist,
.sw-hist-list { min-height: 0; }
.sw-intro { flex: 1; min-height: 0; height: auto; overflow-y: auto; }

/* --------------------------------------------------------------------------
   Fee the office has asked for.

   It has to be noticed - the course stays shut until it is paid, so a student
   who misses it simply finds nothing works and does not know why. But it is
   not an error and it is not the student's mistake, so it reads as a bill
   rather than a warning: the amount large enough to recognise at a glance,
   the reason beside it, and the way to settle it on the right.

   Amber rather than red. Red says something has gone wrong; nothing has.
   -------------------------------------------------------------------------- */
.ags-due {
    display:flex; align-items:center; gap:18px; flex-wrap:wrap;
    padding:18px 20px; border-radius:var(--ags-r-lg,16px);
    background:linear-gradient(120deg,#FFFBF3,#FFF6E8);
    border:1px solid #F3DFB8; box-shadow:0 10px 26px -18px rgba(180,120,20,.5);
}
.ags-due-ico {
    flex:none; width:46px; height:46px; border-radius:14px; display:grid; place-items:center;
    background:linear-gradient(140deg,#F0A526,#E4851B); color:#fff; font-size:19px;
    box-shadow:0 8px 18px -8px rgba(228,133,27,.75);
}
.ags-due-body { flex:1; min-width:190px; }
.ags-due-kicker {
    margin:0; font-size:11px; font-weight:750; letter-spacing:.09em; text-transform:uppercase;
    color:#A9741A;
}
.ags-due-amt {
    margin:2px 0 0; font-size:26px; font-weight:800; line-height:1.15; color:#5A3B07;
    font-variant-numeric:tabular-nums;
}
.ags-due-meta { margin:5px 0 0; font-size:12.5px; line-height:1.55; color:#8A6A2E; }
.ags-due-meta b { color:#5A3B07; font-weight:700; }
.ags-due-act {
    flex:none; display:inline-flex; align-items:center; gap:8px;
    padding:11px 20px; border-radius:12px; border:0; cursor:pointer;
    font-size:13.5px; font-weight:750; color:#fff; text-decoration:none;
    background:linear-gradient(120deg,#F0A526,#E4851B);
    box-shadow:0 10px 22px -12px rgba(228,133,27,.9);
    transition:transform .18s ease, box-shadow .18s ease;
}
.ags-due-act:hover { transform:translateY(-1px); box-shadow:0 14px 26px -12px rgba(228,133,27,.95); }

/* On a course card the same message has to fit a narrow column, so it stacks
   and drops the icon rather than squeezing everything onto one line. */
.ags-due-sm { flex-direction:column; align-items:stretch; gap:10px; padding:14px 15px; }
.ags-due-sm .ags-due-ico { display:none; }
.ags-due-sm .ags-due-amt { font-size:20px; }
.ags-due-sm .ags-due-act { width:100%; justify-content:center; }

@media (max-width:560px) {
    .ags-due { gap:13px; }
    .ags-due-act { width:100%; justify-content:center; }
}

/* --------------------------------------------------------------------------
   Paying a fee online.

   A payment page is asking somebody to part with real money on a screen they
   have never seen before, so most of the work here is reassurance: the amount
   and what it is for stated plainly, who is taking the money named, and the
   one thing that matters about this server said out loud - it never sees a
   card. The padlock is small on purpose. A page that shouts about being safe
   reads like one that needs to.
   -------------------------------------------------------------------------- */
.chk-wrap { max-width: 560px; margin: 44px auto 80px; padding: 0 16px; }

.chk-card {
    background:#fff; border:1px solid var(--ags-line,#E8EEF5);
    border-radius:20px; overflow:hidden; box-shadow:0 26px 60px -34px rgba(11,44,77,.45);
}
.chk-head {
    padding:22px 26px 20px; color:#fff;
    background:linear-gradient(125deg,#0B2C4D 0%,#17356B 60%,#0EA5A0 190%);
}
.chk-head-top { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.chk-brand { display:flex; align-items:center; gap:10px; font-size:13px; font-weight:750; letter-spacing:.01em; }
.chk-brand img { height:26px; width:auto; display:block; border-radius:6px; background:#fff; padding:2px 4px; }
.chk-lock {
    display:inline-flex; align-items:center; gap:6px; padding:5px 11px; border-radius:999px;
    background:rgba(255,255,255,.14); font-size:11px; font-weight:700; letter-spacing:.03em;
}
/* h1 carries a dark colour of its own from the base rules, which beats the
   white inherited from the banner, so it is set here rather than left to
   inheritance. */
.chk-title { margin:16px 0 0; font-size:19px; font-weight:800; letter-spacing:-.01em; color:#fff; }
.chk-sub   { margin:4px 0 0; font-size:12.5px; color:rgba(255,255,255,.72); }

.chk-body { padding:24px 26px 26px; }

/* The figure itself, given the room it deserves. */
.chk-amount {
    text-align:center; padding:22px 18px; border-radius:16px;
    background:linear-gradient(160deg,#F7FBFF,#EEF5FC); border:1px solid #DCE9F5;
}
.chk-amount-k {
    margin:0; font-size:11px; font-weight:750; letter-spacing:.1em; text-transform:uppercase; color:#6C8299;
}
.chk-amount-v {
    margin:5px 0 0; font-size:40px; line-height:1.05; font-weight:800; color:var(--ags-navy,#0B2C4D);
    font-variant-numeric:tabular-nums; letter-spacing:-.02em;
}
.chk-amount-n { margin:9px 0 0; font-size:12.5px; color:#6C8299; line-height:1.6; }

.chk-rows { margin:20px 0 0; border-top:1px solid var(--ags-line,#E8EEF5); }
.chk-row {
    display:flex; align-items:baseline; justify-content:space-between; gap:14px;
    padding:11px 2px; border-bottom:1px solid var(--ags-line,#E8EEF5); font-size:13px;
}
.chk-row span { color:#7C8DA4; }
.chk-row b { color:var(--ags-ink,#0C1B2A); font-weight:700; text-align:right; }

.chk-pay {
    display:flex; align-items:center; justify-content:center; gap:9px; width:100%;
    margin-top:22px; padding:15px 20px; border:0; border-radius:14px; cursor:pointer;
    font-family:inherit; font-size:15px; font-weight:750; color:#fff;
    background:var(--ags-grad-brand,linear-gradient(120deg,#0EA5A0,#7C5CFF));
    box-shadow:0 16px 32px -16px rgba(14,165,160,.9);
    transition:transform .18s ease, box-shadow .18s ease;
}
.chk-pay:hover { transform:translateY(-1px); box-shadow:0 20px 38px -16px rgba(14,165,160,.95); }
.chk-pay:disabled { opacity:.6; cursor:wait; transform:none; }

/* What they can pay with, as words rather than borrowed logos. */
.chk-methods { display:flex; flex-wrap:wrap; gap:7px; justify-content:center; margin-top:16px; }
.chk-method {
    padding:5px 11px; border-radius:8px; border:1px solid var(--ags-line,#E8EEF5);
    background:#FBFCFE; font-size:11px; font-weight:700; color:#5B6E84; letter-spacing:.02em;
}

.chk-assure { margin-top:18px; padding-top:16px; border-top:1px solid var(--ags-line,#E8EEF5); }
.chk-assure-row {
    display:flex; align-items:flex-start; gap:10px; margin-bottom:11px;
    font-size:12.5px; line-height:1.6; color:#5B6E84;
}
.chk-assure-row:last-child { margin-bottom:0; }
.chk-assure-ico {
    flex:none; width:22px; height:22px; border-radius:7px; display:grid; place-items:center;
    background:#E8F7F5; color:#0A8A84; font-size:11px; margin-top:1px;
}
.chk-assure-row b { color:var(--ags-ink,#0C1B2A); font-weight:700; }

.chk-alt { margin:18px 0 0; text-align:center; font-size:12.5px; color:#7C8DA4; }
.chk-alt a { color:var(--ags-teal,#0EA5A0); font-weight:700; text-decoration:none; }
.chk-alt a:hover { text-decoration:underline; }

.chk-note {
    margin:0 0 18px; padding:12px 14px; border-radius:11px; font-size:12.5px; line-height:1.6;
    background:#FEF2F2; border:1px solid #F6D2D2; color:#98333B;
}
.chk-wait { text-align:center; padding:26px 10px; font-size:13px; color:#5B6E84; }
.chk-spin {
    width:30px; height:30px; margin:0 auto 12px; border-radius:50%;
    border:3px solid #DCE9F5; border-top-color:var(--ags-teal,#0EA5A0);
    animation:chk-turn .8s linear infinite;
}
@keyframes chk-turn { to { transform:rotate(360deg); } }
@media (prefers-reduced-motion: reduce){ .chk-spin { animation:none; } }

.chk-foot { margin-top:16px; text-align:center; font-size:11.5px; color:#93A3B6; line-height:1.7; }

@media (max-width:560px) {
    .chk-wrap { margin-top:24px; }
    .chk-body, .chk-head { padding-left:18px; padding-right:18px; }
    .chk-amount-v { font-size:34px; }
}

/* Way out, above the card and to the left, where a back control is looked for.
   A button rather than a line of text: this page is reached from an email as
   often as from the portal, so leaving has to be as obvious as paying. */
.chk-back {
    display:inline-flex; align-items:center; gap:8px; margin:0 0 14px;
    padding:9px 16px 9px 13px; border-radius:11px; text-decoration:none;
    background:#fff; border:1px solid var(--ags-line,#E8EEF5);
    font-size:13px; font-weight:700; color:#5B6E84;
    box-shadow:0 6px 16px -12px rgba(11,44,77,.5);
    transition:transform .18s ease, border-color .18s ease, color .18s ease;
}
.chk-back:hover { transform:translateX(-2px); border-color:#CBD9E8; color:var(--ags-ink,#0C1B2A); }
.chk-back i { font-size:13px; }

/* --------------------------------------------------------------------------
   A student's own fee record.

   This lives outside /admin/, so it cannot borrow the console's table styles -
   that layer is not loaded here. It gets its own, and they are quieter than the
   admin ones on purpose: somebody reading their own fees wants the figures, not
   a dashboard.

   Money is set in tabular figures throughout, so the columns line up digit
   under digit and a balance can be compared at a glance rather than read.
   -------------------------------------------------------------------------- */
.sp-head { margin-bottom: 22px; }
.sp-kicker {
    display:inline-block; font-size:11px; font-weight:750; letter-spacing:.1em;
    text-transform:uppercase; color:var(--ags-teal,#0EA5A0);
}
.sp-title { margin:6px 0 0; font-size:26px; font-weight:800; letter-spacing:-.02em; }
.sp-sub   { margin:5px 0 0; font-size:13.5px; color:var(--ags-muted,#7C8DA4); }

/* The three figures at the top. */
.sp-tiles { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; }
.sp-tile {
    padding:18px 18px 16px; border-radius:16px; background:#fff;
    border:1px solid var(--ags-line,#E8EEF5); box-shadow:0 10px 26px -22px rgba(11,44,77,.5);
}
.sp-tile-k {
    margin:0; font-size:11px; font-weight:750; letter-spacing:.08em; text-transform:uppercase;
    color:var(--ags-muted,#7C8DA4);
}
.sp-tile-v {
    margin:7px 0 0; font-size:25px; font-weight:800; line-height:1.1;
    font-variant-numeric:tabular-nums; letter-spacing:-.02em; color:var(--ags-ink,#0C1B2A);
}
.sp-tile.is-paid .sp-tile-v { color:#0A7A56; }
.sp-tile.is-due  .sp-tile-v { color:#B4780F; }
.sp-tile.is-due  { background:linear-gradient(150deg,#FFFCF6,#FFF7EB); border-color:#F3DFB8; }

.sp-panel {
    background:#fff; border:1px solid var(--ags-line,#E8EEF5); border-radius:18px;
    overflow:hidden; box-shadow:0 12px 30px -24px rgba(11,44,77,.5);
}
.sp-panel-head { padding:18px 20px 14px; border-bottom:1px solid var(--ags-line,#E8EEF5); }
.sp-panel-head h2 { margin:0; font-size:15px; font-weight:750; }
.sp-panel-head p  { margin:3px 0 0; font-size:12.5px; color:var(--ags-muted,#7C8DA4); }

.sp-table { width:100%; border-collapse:collapse; }
.sp-table th {
    text-align:left; padding:11px 20px; font-size:11px; font-weight:750;
    letter-spacing:.07em; text-transform:uppercase; color:var(--ags-muted,#7C8DA4);
    background:#FBFCFE; border-bottom:1px solid var(--ags-line,#E8EEF5); white-space:nowrap;
}
.sp-table td {
    padding:14px 20px; font-size:13.5px; border-bottom:1px solid var(--ags-line,#E8EEF5);
    color:var(--ags-ink,#0C1B2A); vertical-align:top;
}
.sp-table tr:last-child td { border-bottom:0; }
.sp-table tbody tr:hover td { background:#FBFCFE; }
.sp-num { text-align:right; font-variant-numeric:tabular-nums; white-space:nowrap; }
.sp-strong { font-weight:750; }
.sp-muted { display:block; margin-top:3px; font-size:11.5px; color:var(--ags-muted,#7C8DA4); }
.sp-ref { font-variant-numeric:tabular-nums; font-weight:700; letter-spacing:.01em; }
.sp-empty { text-align:center; padding:38px 20px; color:var(--ags-muted,#7C8DA4); font-size:13.5px; }

.sp-chip {
    display:inline-flex; align-items:center; gap:5px; padding:4px 10px; border-radius:999px;
    font-size:11px; font-weight:750; letter-spacing:.02em; white-space:nowrap;
}
.sp-chip-ok   { background:#E6F7F0; color:#0A7A56; }
.sp-chip-wait { background:#FFF4E2; color:#A9741A; }
.sp-chip-no   { background:#FDECEE; color:#A8323C; }

.sp-receipt {
    display:inline-flex; align-items:center; gap:6px; padding:6px 12px; border-radius:9px;
    border:1px solid var(--ags-line,#E8EEF5); background:#fff; text-decoration:none;
    font-size:12px; font-weight:700; color:#5B6E84; white-space:nowrap;
    transition:border-color .18s ease, color .18s ease;
}
.sp-receipt:hover { border-color:var(--ags-teal,#0EA5A0); color:var(--ags-teal,#0EA5A0); }

/* A table is the wrong shape on a phone, so each row becomes a card and the
   column headings come back as labels on the left of each value. */
@media (max-width:760px) {
    .sp-tiles { grid-template-columns:1fr; }
    .sp-table thead { display:none; }
    .sp-table, .sp-table tbody, .sp-table tr, .sp-table td { display:block; width:100%; }
    .sp-table tr { padding:6px 0; border-bottom:1px solid var(--ags-line,#E8EEF5); }
    .sp-table tr:last-child { border-bottom:0; }
    .sp-table td { border:0; padding:7px 18px; display:flex; justify-content:space-between; gap:16px; }
    .sp-table td::before {
        content:attr(data-label); flex:none; font-size:11.5px; font-weight:750;
        color:var(--ags-muted,#7C8DA4); text-transform:uppercase; letter-spacing:.05em;
    }
    .sp-num { text-align:right; }
}

/* --------------------------------------------------------------------------
   Admissions steps on the student's own course page.

   The exam and the application form are the two things still owed of them
   after they have paid, and both were only ever mentioned in an email. Here
   they sit on the page the student actually returns to, each saying where it
   has got to and offering the way in while it is still outstanding.
   -------------------------------------------------------------------------- */
.scd-adm { display:grid; grid-template-columns:repeat(2,1fr); gap:14px; margin:18px 0 4px; }
.scd-adm-card {
    display:flex; align-items:flex-start; gap:13px; padding:17px 18px;
    background:#fff; border:1px solid var(--ags-line,#E8EEF5); border-radius:16px;
    box-shadow:0 10px 26px -24px rgba(11,44,77,.5);
}
.scd-adm-card.is-done { background:linear-gradient(150deg,#F5FCF8,#EDF9F3); border-color:#CDEBDC; }
.scd-adm-ico {
    flex:none; width:40px; height:40px; border-radius:13px; display:grid; place-items:center;
    background:#EEF4FB; color:#2E86C8; font-size:17px;
}
.scd-adm-card.is-done .scd-adm-ico { background:#DCF3E8; color:#0A7A56; }
.scd-adm-body { flex:1; min-width:0; }
.scd-adm-k {
    margin:0; font-size:11px; font-weight:750; letter-spacing:.08em;
    text-transform:uppercase; color:var(--ags-muted,#7C8DA4);
}
.scd-adm-v { margin:4px 0 0; font-size:16px; font-weight:800; color:var(--ags-ink,#0C1B2A); }
.scd-adm-card.is-done .scd-adm-v { color:#0A7A56; }
.scd-adm-n { margin:4px 0 0; font-size:12px; line-height:1.55; color:var(--ags-muted,#7C8DA4); }
.scd-adm-bar { height:6px; border-radius:99px; background:#EDF1F7; margin-top:9px; overflow:hidden; }
.scd-adm-bar span { display:block; height:100%; border-radius:99px; background:linear-gradient(90deg,#2E86C8,#0EA5A0); }
.scd-adm-go {
    display:inline-flex; align-items:center; gap:7px; margin-top:11px; padding:8px 15px;
    border-radius:10px; text-decoration:none; font-size:12.5px; font-weight:750; color:#fff;
    background:linear-gradient(120deg,#2E86C8,#1B5E96);
    box-shadow:0 10px 20px -12px rgba(27,94,150,.9);
    transition:transform .18s ease;
}
.scd-adm-go:hover { transform:translateY(-1px); color:#fff; }
@media (max-width:760px) { .scd-adm { grid-template-columns:1fr; } }

/* --------------------------------------------------------------------------
   What the student still owes: the exam, and the form.

   This was a calm blue panel among a dashboard full of calm blue cards, which
   is a poor way to say "this is the one thing you must act on". Amber, a live
   dot, a heavier border and a shadow that lifts it off the page — the same
   language the fee notice uses, because it is the same kind of message.

   Space above it as well: it used to sit flush under the hero, which read as
   part of the banner rather than the first thing on the page.
   -------------------------------------------------------------------------- */
.ags-todo {
    display: flex; align-items: flex-start; gap: 18px; flex-wrap: wrap;
    margin-top: 6px; padding: 20px 22px; border-radius: var(--ags-r-lg, 16px);
    background: linear-gradient(122deg, #FFFCF5 0%, #FFF6E6 100%);
    border: 1px solid #F0D9A9;
    box-shadow: 0 14px 34px -22px rgba(170, 115, 20, .55);
}
.ags-todo-ico {
    flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
    background: linear-gradient(140deg, #F5AE2E, #E1821A); color: #fff; font-size: 20px;
    box-shadow: 0 10px 20px -9px rgba(225, 130, 26, .8);
}
.ags-todo-body { flex: 1; min-width: 210px; }

.ags-todo-kicker {
    display: flex; align-items: center; gap: 7px; margin: 0;
    font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #A9741A;
}
/* a small live dot: enough movement to catch the eye, not enough to nag */
.ags-todo-dot {
    width: 7px; height: 7px; border-radius: 50%; background: #E1821A;
    box-shadow: 0 0 0 0 rgba(225, 130, 26, .55);
    animation: ags-todo-ping 2.4s ease-out infinite;
}
@keyframes ags-todo-ping {
    0%   { box-shadow: 0 0 0 0 rgba(225,130,26,.55); }
    70%  { box-shadow: 0 0 0 7px rgba(225,130,26,0); }
    100% { box-shadow: 0 0 0 0 rgba(225,130,26,0); }
}
@media (prefers-reduced-motion: reduce) { .ags-todo-dot { animation: none; } }

.ags-todo-course { margin: 6px 0 0; font-size: 17px; font-weight: 800; color: #5A3B07; }
.ags-todo-prog {
    display: inline-block; margin-left: 8px; padding: 3px 9px; border-radius: 7px;
    background: #5A3B07; color: #FFF6E6; font-size: 10.5px; font-weight: 800; letter-spacing: .06em;
    vertical-align: middle;
}

.ags-todo-list { margin: 9px 0 0; padding: 0; list-style: none; }
.ags-todo-list li {
    display: flex; align-items: flex-start; gap: 8px;
    font-size: 13px; line-height: 1.6; color: #7A5A22; margin-bottom: 4px;
}
.ags-todo-list li b { color: #5A3B07; font-weight: 800; }
.ags-todo-list i { font-size: 14px; margin-top: 2px; opacity: .7; }

.ags-todo-bar { height: 7px; border-radius: 99px; background: #F0E1C2; margin-top: 10px; overflow: hidden; max-width: 340px; }
.ags-todo-bar span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #F5AE2E, #E1821A); }

.ags-todo-acts { display: flex; flex-direction: column; gap: 9px; flex: none; }
.ags-todo-go {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 11px 20px; border-radius: 12px; text-decoration: none; white-space: nowrap;
    font-size: 13.5px; font-weight: 750; color: #fff;
    background: linear-gradient(120deg, #F5AE2E, #E1821A);
    box-shadow: 0 12px 24px -13px rgba(225, 130, 26, .95);
    transition: transform .18s ease;
}
.ags-todo-go:hover { transform: translateY(-1px); color: #fff; }
.ags-todo-go.is-ghost {
    background: #fff; color: #A9741A; border: 1px solid #EBD3A4; box-shadow: none;
}
.ags-todo-go.is-ghost:hover { border-color: #E1821A; color: #8A5E12; }

@media (max-width: 720px) {
    .ags-todo-acts { flex-direction: row; width: 100%; }
    .ags-todo-go { flex: 1; }
}

/* A shorter banner on the student dashboard.

   It was 48px of padding above and 96–112px below, sized back when the cards
   were pulled up into it and the lower half was meant to sit behind them. They
   no longer overlap, so all that depth was just pushing the page down: the
   first thing a student needs to read started below the fold. Stated in the
   stylesheet rather than as utility classes, because the Tailwind build here is
   prebuilt and several of the ones this page asked for are not in it. */
.ags-hero.is-slim { padding-top: 30px; padding-bottom: 36px; }
@media (min-width: 768px) { .ags-hero.is-slim { padding-top: 38px; padding-bottom: 44px; } }

/* --------------------------------------------------------------------------
   Course cards: same height, whatever is on them.

   A card with two reminders was taller than one with none, so a row of them
   sat at different heights and the grid looked broken. The reminder strip and
   the footer now hold their space whether they have anything in them or not.
   -------------------------------------------------------------------------- */
.mc-state { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.mc-dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.mc-dot.is-on   { background: #10B981; box-shadow: 0 0 0 3px rgba(16,185,129,.15); }
.mc-dot.is-wait { background: #F0A526; box-shadow: 0 0 0 3px rgba(240,165,38,.15); }
.mc-state-txt { font-size: 11.5px; font-weight: 650; color: var(--ags-muted, #7C8DA4); }

/* Reserved whether it holds anything or not — that is what keeps the row level. */
.mc-todo { display: flex; flex-wrap: wrap; gap: 6px; min-height: 26px; margin-bottom: 14px; }
.mc-flag {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 4px 9px; border-radius: 7px; text-decoration: none;
    background: #FFF5E4; border: 1px solid #F3DFB8; color: #A9741A;
    font-size: 10.5px; font-weight: 750; white-space: nowrap;
    transition: background-color .18s ease, border-color .18s ease;
}
.mc-flag:hover { background: #FFEBCB; border-color: #E8C98A; color: #8A5E12; }
.mc-flag i { font-size: 11px; }

/* The payment footer sits in the same box a Launch button would, so a paid
   card and an unpaid one end at the same line. */
.mc-pay {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 9px 10px 9px 13px; border-radius: 12px;
    background: linear-gradient(120deg, #FFFBF3, #FFF6E8); border: 1px solid #F3DFB8;
}
.mc-pay-amt { font-size: 13px; font-weight: 800; color: #5A3B07; white-space: nowrap; }
.mc-pay-amt.is-quiet { font-size: 12px; font-weight: 700; color: #A9741A; }
.mc-pay-go {
    display: inline-flex; align-items: center; gap: 6px; flex: none;
    padding: 8px 14px; border-radius: 9px; text-decoration: none;
    font-size: 12px; font-weight: 750; color: #fff;
    background: linear-gradient(120deg, #F0A526, #E4851B);
    box-shadow: 0 8px 16px -10px rgba(228,133,27,.9);
    transition: transform .18s ease;
}
.mc-pay-go:hover { transform: translateY(-1px); color: #fff; }

/* --------------------------------------------------------------------------
   Admissions steps, while they are still outstanding.

   These two cards sat white among white cards, which is a poor way to tell
   somebody their course will not finish until they act on them. Outstanding
   now carries the same amber the dashboard and the fee notice use, with a
   live dot on the heading; once done it goes quiet and green, and a failed
   paper is stated plainly rather than dressed as something to get on with.
   -------------------------------------------------------------------------- */
.scd-adm-card.is-todo {
    background: linear-gradient(150deg, #FFFCF6 0%, #FFF6E8 100%);
    border-color: #F0D9A9;
    box-shadow: 0 12px 28px -22px rgba(170, 115, 20, .6);
}
.scd-adm-card.is-todo .scd-adm-ico {
    background: linear-gradient(140deg, #F5AE2E, #E1821A); color: #fff;
    box-shadow: 0 8px 16px -8px rgba(225, 130, 26, .75);
}
.scd-adm-card.is-todo .scd-adm-k { color: #A9741A; }
.scd-adm-card.is-todo .scd-adm-v { color: #5A3B07; }
.scd-adm-card.is-todo .scd-adm-n { color: #8A6A2E; }
.scd-adm-card.is-todo .scd-adm-bar { background: #F0E1C2; }
.scd-adm-card.is-todo .scd-adm-bar span { background: linear-gradient(90deg, #F5AE2E, #E1821A); }
.scd-adm-card.is-todo .scd-adm-go {
    background: linear-gradient(120deg, #F5AE2E, #E1821A);
    box-shadow: 0 10px 20px -12px rgba(225, 130, 26, .95);
}

/* a small live dot on the heading of anything still owed */
.scd-adm-card.is-todo .scd-adm-k::before {
    content: ""; display: inline-block; vertical-align: middle;
    width: 6px; height: 6px; margin-right: 7px; border-radius: 50%;
    background: #E1821A; box-shadow: 0 0 0 0 rgba(225,130,26,.55);
    animation: scd-adm-ping 2.4s ease-out infinite;
}
@keyframes scd-adm-ping {
    0%   { box-shadow: 0 0 0 0 rgba(225,130,26,.55); }
    70%  { box-shadow: 0 0 0 6px rgba(225,130,26,0); }
    100% { box-shadow: 0 0 0 0 rgba(225,130,26,0); }
}
@media (prefers-reduced-motion: reduce) { .scd-adm-card.is-todo .scd-adm-k::before { animation: none; } }

/* a paper that was not passed is not a task, so it does not shout */
.scd-adm-card.is-shut { background: #FDF6F7; border-color: #F0D2D6; }
.scd-adm-card.is-shut .scd-adm-ico { background: #FBE4E7; color: #A8323C; box-shadow: none; }
.scd-adm-card.is-shut .scd-adm-v { color: #A8323C; }

/* --------------------------------------------------------------------------
   The application form, in its own colour.

   Both outstanding steps were amber, which made them read as one task shown
   twice. They are not: an exam is sat once under timed conditions, a form is
   filled at leisure over several sittings. Violet for the form keeps it
   plainly outstanding while saying it is a different kind of work — and when
   both are on screen the eye can tell them apart without reading.
   -------------------------------------------------------------------------- */
.scd-adm-card.is-form.is-todo {
    background: linear-gradient(150deg, #FAF8FF 0%, #F3EEFF 100%);
    border-color: #DCD0F5;
    box-shadow: 0 12px 28px -22px rgba(96, 60, 180, .55);
}
.scd-adm-card.is-form.is-todo .scd-adm-ico {
    background: linear-gradient(140deg, #A07BEA, #6D4BC8); color: #fff;
    box-shadow: 0 8px 16px -8px rgba(109, 75, 200, .75);
}
.scd-adm-card.is-form.is-todo .scd-adm-k  { color: #6D4BC8; }
.scd-adm-card.is-form.is-todo .scd-adm-v  { color: #3F2A72; }
.scd-adm-card.is-form.is-todo .scd-adm-n  { color: #6B5A96; }
.scd-adm-card.is-form.is-todo .scd-adm-bar      { background: #E4DAF7; }
.scd-adm-card.is-form.is-todo .scd-adm-bar span { background: linear-gradient(90deg, #A07BEA, #6D4BC8); }
.scd-adm-card.is-form.is-todo .scd-adm-go {
    background: linear-gradient(120deg, #A07BEA, #6D4BC8);
    box-shadow: 0 10px 20px -12px rgba(109, 75, 200, .95);
}
.scd-adm-card.is-form.is-todo .scd-adm-k::before {
    background: #6D4BC8; box-shadow: 0 0 0 0 rgba(109,75,200,.55);
    animation-name: scd-form-ping;
}
@keyframes scd-form-ping {
    0%   { box-shadow: 0 0 0 0 rgba(109,75,200,.55); }
    70%  { box-shadow: 0 0 0 6px rgba(109,75,200,0); }
    100% { box-shadow: 0 0 0 0 rgba(109,75,200,0); }
}

/* the same distinction on the course card chips, so the two pages agree */
.mc-flag.is-form {
    background: #F4EFFF; border-color: #DCD0F5; color: #6D4BC8;
}
.mc-flag.is-form:hover { background: #EBE2FC; border-color: #C6B4EE; color: #553A9E; }

/* --------------------------------------------------------------------------
   The course hero's footing: facts, then the way out.

   The buttons were sized like primary actions sitting under a line of quiet
   grey facts, so they carried more weight than they earn — leaving a course
   page is not the point of the page. Brought down to the same scale as the
   line above and tucked closer to it, they read as part of the same footing
   rather than a separate band of controls.
   -------------------------------------------------------------------------- */
.scd-hero-meta { margin-bottom: 12px; gap: 8px 18px; }
.scd-hero-act  { gap: 8px; }
.scd-back {
    padding: 7px 13px;
    font-size: 12.5px; font-weight: 700;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(3, 22, 40, .18);
}
.scd-back i { font-size: 14px; }
.scd-back:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(3, 22, 40, .24); }

/* the certificate still earns its size — it is what a graduate came back for */
.scd-back.is-cert { padding: 9px 16px; font-size: 13px; }
.scd-back.is-cert i { font-size: 16px; }

/* The buttons now live inside the facts row, so the row has to make room for
   them: the facts take the space they need and the buttons are pushed to the
   far end of the same line. On a narrow screen the row wraps and they fall
   beneath, which is the right answer there. */
.scd-hero-meta { align-items: center; }
.scd-hero-meta > .scd-hero-act { margin-left: auto; }
@media (max-width: 720px) {
    .scd-hero-meta > .scd-hero-act { margin-left: 0; width: 100%; }
}

/* --------------------------------------------------------------------------
   Keeping the hero's facts on one line.

   The text column was allowed to shrink to 340px, because the fee panel sits
   beside it and takes 186px plus the gap. At that width four short items —
   registration number, start, end, and the way back — cannot share a line, so
   each took one of its own and the footing became four stacked rows.

   Asking for 640px before it gives way lets them sit together on any ordinary
   desktop, and the row still wraps properly when there genuinely is not room.
   -------------------------------------------------------------------------- */
.scd-hero-inner { flex: 1 1 640px; }

/* the facts themselves do not break mid-item */
.scd-hero-meta > .scd-meta { white-space: nowrap; }
.scd-hero-meta > .scd-hero-act .scd-back { white-space: nowrap; }

/* below that the panel stacks, and the facts wrap as they should */
/* superseded by the 1100px rule below, which reshapes the fee card as well
   as widening it — two rules saying different things about the same panel is
   how a layout drifts. */

/* --------------------------------------------------------------------------
   The hero at narrower widths.

   The fee card is a tall narrow column because it stands beside the text on a
   desktop. When the row runs out of width it drops underneath, and a 186px
   column stranded at the left of a full-width panel looks like something that
   fell off rather than a considered layout.

   So it changes shape as it moves: beside the text it stays a column; below
   it, it lies down — label and amount on the left, the button on the right —
   and takes the full width it now has. Same information, arranged for the
   space it is actually in.
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
    .scd-hero { gap: 18px; }
    .scd-hero-inner { flex: 1 1 100%; }

    .scd-fee {
        width: 100%;
        flex-direction: row; align-items: center; flex-wrap: wrap;
        gap: 6px 16px;
        padding: 13px 16px;
    }
    /* label above the figure, the two of them together on the left */
    .scd-fee-label  { flex: 1 1 100%; order: 1; }
    .scd-fee-amount { order: 2; font-size: 21px; }
    .scd-fee-note   { order: 3; margin-top: 0; flex: 1 1 auto; }
    .scd-fee-btn    { order: 4; margin-top: 0; width: auto; margin-left: auto; padding: 9px 18px; }
}

/* On a phone the button goes back to full width: a thumb needs the target
   more than the line needs to stay tidy. */
@media (max-width: 560px) {
    .scd-fee-note { flex: 1 1 100%; }
    .scd-fee-btn  { width: 100%; margin-left: 0; }
}

/* The way out now sits at the end of the chips row, not under the dates.

   In the facts line it had no room: registration number, start and end dates
   already filled the width the fee panel left, so the buttons wrapped and
   landed adrift in the middle of a new line. The chips row is short and is
   where a reader looks first, which is a better place for it anyway. */
.scd-hero-chips > .scd-hero-act { margin-left: auto; display: flex; gap: 8px; }

/* restored: the facts are a plain row again */
.scd-hero-meta > .scd-hero-act { margin-left: 0; }

@media (max-width: 720px) {
    .scd-hero-chips > .scd-hero-act { margin-left: 0; width: 100%; }
}

/* =====================================================================
   Mentorship board (mb-*) — shared by the student, mentor and office views.
   The accent follows the area it sits in: teal for students, violet in the
   faculty studio, deep teal in the admin console.
   ===================================================================== */
.mb{
    --mb-a:#0EA5A0; --mb-a2:#23A9D8; --mb-soft:#E7F7F6;
    --mb-ink:#0C1B2A; --mb-body:#46586E; --mb-muted:#7C8DA4; --mb-line:#E8EEF5;
    display:flex; flex-direction:column; gap:18px; min-width:0;
}
.mb-theme-ins .mb{ --mb-a:#6D5BD0; --mb-a2:#4C8DF6; --mb-soft:#EEEBFC; }
.mb-theme-adm .mb{ --mb-a:#0E7C78; --mb-a2:#0EA5A0; --mb-soft:#E3F5F4; }

/* Controls hidden by script must stay hidden whatever display they carry. */
.mb [hidden], .mn-row[hidden], .mn-pane[hidden], .mn-empty[hidden]{ display:none !important; }

.mb-dot{
    display:inline-block; flex-shrink:0; width:8px; height:8px; border-radius:50%;
    background:var(--c,#CBD2DA);
    box-shadow:0 0 0 3px color-mix(in srgb, var(--c,#CBD2DA) 25%, transparent);
}

/* ---------- The bridge ---------- */
.mb-hero{
    position:relative; overflow:hidden; border-radius:24px; padding:24px 26px 20px; color:#fff;
    background:linear-gradient(125deg,#0B2C4D 0%,#17356B 52%,#3B2E7E 100%);
    box-shadow:0 26px 50px -30px rgba(11,44,77,.7);
}
.mb-hero::before{
    content:''; position:absolute; width:380px; height:380px; right:-120px; top:-190px; border-radius:50%;
    background:radial-gradient(circle, color-mix(in srgb, var(--mb-a) 55%, transparent) 0%, transparent 70%);
    pointer-events:none;
}
.mb-hero > *{ position:relative; }
.mb-bridge{ display:grid; grid-template-columns:minmax(0,1fr) minmax(90px,1fr) minmax(0,1fr); align-items:center; gap:14px; }
.mb-person{ display:flex; align-items:center; gap:12px; min-width:0; }
.mb-person.is-right{ flex-direction:row-reverse; text-align:right; }
.mb-ava{
    width:54px; height:54px; flex-shrink:0; border-radius:18px; overflow:hidden;
    display:grid; place-items:center; color:#fff;
    font:800 17px/1 'Plus Jakarta Sans',sans-serif;
    background:rgba(255,255,255,.12); border:2px solid rgba(255,255,255,.35);
}
.mb-ava img{ width:100%; height:100%; object-fit:cover; }
.mb-ava.is-mentor{ border-color:var(--mb-a2); box-shadow:0 0 0 4px color-mix(in srgb, var(--mb-a2) 25%, transparent); }
.mb-ava.is-sm{ width:34px; height:34px; border-radius:12px; font-size:12px; border:0; background:var(--mb-soft); color:var(--mb-a); }
.mb-person-k{ font:700 10.5px/1 Inter,sans-serif; letter-spacing:.12em; text-transform:uppercase; color:rgba(255,255,255,.55); }
.mb-person-n{ margin-top:5px; font:800 16px/1.2 'Plus Jakarta Sans',sans-serif; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.mb-person-s{ margin-top:3px; font-size:12px; color:rgba(255,255,255,.62); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }

.mb-link{ display:flex; align-items:center; gap:8px; }
/* The dashes move by sliding an over-wide strip sideways (transform), not by
   animating background-position — that would repaint every frame. */
.mb-link-line{ position:relative; overflow:hidden; flex:1; height:2px; border-radius:2px; }
.mb-link-line::before{
    content:''; position:absolute; top:0; bottom:0; left:-24px; right:0;
    background:repeating-linear-gradient(90deg, rgba(255,255,255,.55) 0 6px, transparent 6px 12px);
    animation:mb-flow 1.4s linear infinite; will-change:transform;
}
@keyframes mb-flow{ from{ transform:translateX(0); } to{ transform:translateX(24px); } }
.mb-link-badge{
    display:flex; flex-direction:column; align-items:center; gap:2px; padding:8px 14px; border-radius:14px;
    background:rgba(255,255,255,.1); border:1px solid rgba(255,255,255,.22); white-space:nowrap;
}
.mb-link-badge b{ font:800 14px/1 'Plus Jakarta Sans',sans-serif; }
.mb-link-badge small{ font:700 9.5px/1 Inter,sans-serif; letter-spacing:.12em; text-transform:uppercase; color:rgba(255,255,255,.55); }

.mb-hero-meta{ display:flex; flex-wrap:wrap; gap:8px; margin-top:18px; }
.mb-tag{
    display:inline-flex; align-items:center; gap:7px; padding:6px 12px; border-radius:999px;
    font:600 12px/1.2 Inter,sans-serif; color:#fff;
    background:rgba(255,255,255,.1); border:1px solid rgba(255,255,255,.16);
}
.mb-tag i{ font-size:14px; opacity:.8; }
.mb-tag.is-ended{ background:rgba(244,63,94,.18); border-color:rgba(244,63,94,.35); }

/* Weekly check-ins: Week 1 is the week the mentorship began */
.mb-weeks{ margin-top:16px; }
.mb-weeks-k{ font:700 10.5px/1 Inter,sans-serif; letter-spacing:.12em; text-transform:uppercase; color:rgba(255,255,255,.55); margin-bottom:8px; }
.mb-strip{ display:flex; align-items:center; gap:6px; }
.mb-strip-d{ flex:1; max-width:44px; height:22px; border-radius:7px; background:rgba(255,255,255,.14); display:grid; place-items:center; }
.mb-strip-d b{ font:700 10.5px/1 Inter,sans-serif; color:rgba(255,255,255,.75); }
.mb-strip-d.is-set{ background:var(--c); box-shadow:0 0 12px -2px var(--c); }
.mb-strip-d.is-set b{ color:#fff; }
.mb-strip-d.is-miss{ background:transparent; border:1.5px dashed rgba(255,255,255,.32); }
.mb-strip-d.is-later{ background:rgba(255,255,255,.06); }
.mb-strip-d.is-later b{ color:rgba(255,255,255,.32); }
.mb-strip-d.is-now{ outline:2px solid #fff; outline-offset:2px; background:rgba(255,255,255,.22); }
.mb-strip-d.is-now b{ color:#fff; }
.mb-weeks-key{ display:flex; flex-wrap:wrap; gap:6px 14px; margin-top:9px; font:600 11px Inter,sans-serif; color:rgba(255,255,255,.55); }
.mb-weeks-key span{ display:inline-flex; align-items:center; gap:6px; }
.mb-weeks-key i{ width:14px; height:9px; border-radius:3px; background:rgba(255,255,255,.14); }
.mb-weeks-key i.is-set{ background:#10b981; }
.mb-weeks-key i.is-now{ outline:1.5px solid #fff; outline-offset:1px; background:rgba(255,255,255,.22); }
.mb-weeks-key i.is-miss{ background:transparent; border:1.5px dashed rgba(255,255,255,.4); }
.mb-weeks-key i.is-later{ background:rgba(255,255,255,.07); }
/* the mentor opens their Faculty profile */
a.mb-person.is-link{ color:inherit; text-decoration:none; border-radius:16px; padding:4px; margin:-4px; transition:background .2s; }
a.mb-person.is-link:hover{ background:rgba(255,255,255,.07); }
a.mb-person.is-link .mb-ava{ transition:transform .25s; }
a.mb-person.is-link:hover .mb-ava{ transform:translateY(-2px) scale(1.04); }
.mb-person-go{ margin-top:5px; display:inline-flex; align-items:center; gap:5px; padding:3px 9px; border-radius:999px;
    background:rgba(255,255,255,.12); font:700 11px/1.3 Inter,sans-serif; color:#fff; transition:background .2s; }
a.mb-person.is-link:hover .mb-person-go{ background:#14b8a6; }

/* ---------- Layout ---------- */
.mb-grid{ display:grid; grid-template-columns:minmax(0,1fr) 320px; gap:18px; align-items:start; }
.mb-col{ display:flex; flex-direction:column; gap:18px; min-width:0; }
@media (min-width:1101px){ .mb-timeline{ position:sticky; top:96px; } }
@media (max-width:1100px){ .mb-grid{ grid-template-columns:minmax(0,1fr); } }

.mb-panel{
    min-width:0; padding:20px 22px; border-radius:22px; background:#fff; border:1px solid var(--mb-line);
    box-shadow:0 1px 2px rgba(12,27,42,.04), 0 14px 32px -22px rgba(12,27,42,.3);
}
.mb-week{ border-top:3px solid var(--mb-a); }
.mb-panel-head{ display:flex; align-items:flex-start; justify-content:space-between; gap:12px; margin-bottom:14px; }
.mb-kicker{ font:700 10.5px/1.3 Inter,sans-serif; letter-spacing:.1em; text-transform:uppercase; color:var(--mb-a); }
.mb-h{ margin-top:4px; font:800 17px/1.25 'Plus Jakarta Sans',sans-serif; color:var(--mb-ink); }
.mb-count{ white-space:nowrap; padding:5px 10px; border-radius:999px; background:#F3F6FA; font:700 12px Inter,sans-serif; color:var(--mb-muted); }
.mb-pill{
    display:inline-flex; align-items:center; gap:7px; white-space:nowrap; padding:6px 12px; border-radius:999px;
    font:700 12px Inter,sans-serif;
    background:color-mix(in srgb, var(--c) 12%, #fff); color:color-mix(in srgb, var(--c) 75%, #000);
}
.mb-pill.is-due{ --c:#F59E0B; }

/* ---------- Check-in ---------- */
.mb-label{ display:block; margin:16px 0 8px; font:700 12.5px Inter,sans-serif; color:var(--mb-ink); }
.mb-compose > .mb-label:first-of-type{ margin-top:0; }
.mb-pulses{ display:flex; flex-wrap:wrap; gap:8px; }
.mb-pulse, .mb-radio{ position:relative; }
.mb-pulse input, .mb-radio input{ position:absolute; opacity:0; pointer-events:none; }
.mb-pulse > span{
    display:inline-flex; align-items:center; gap:8px; cursor:pointer; padding:9px 14px; border-radius:12px;
    border:1.5px solid var(--mb-line); font:700 12.5px Inter,sans-serif; color:var(--mb-body); transition:.15s;
}
.mb-pulse input:checked + span{ border-color:var(--c); color:var(--mb-ink); background:color-mix(in srgb, var(--c) 10%, #fff); }
.mb-pulse input:focus-visible + span, .mb-radio input:focus-visible + span{ outline:2px solid var(--mb-a); outline-offset:2px; }

.mb-input{
    width:100%; padding:11px 14px; border-radius:14px; resize:vertical;
    border:1.5px solid var(--mb-line); background:#FAFBFD;
    font:500 13.5px/1.6 Inter,sans-serif; color:var(--mb-ink);
    transition:border-color .15s, box-shadow .15s, background .15s;
}
.mb-input:focus{ outline:none; border-color:var(--mb-a); background:#fff; box-shadow:0 0 0 4px var(--mb-soft); }
.mb-compose-foot{ display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; margin-top:14px; }
.mb-muted{ display:inline-flex; align-items:center; gap:6px; font-size:12.5px; color:var(--mb-muted); }
.mb-muted .isax-tick-circle, .mb-tl-s .isax-tick-circle{ color:#10B981; }
.mb-after{ margin-top:12px; }

.mb-btn{
    display:inline-flex; align-items:center; justify-content:center; gap:8px; cursor:pointer;
    padding:11px 18px; border:0; border-radius:12px; color:#fff;
    font:700 13px/1 'Plus Jakarta Sans',sans-serif;
    background:linear-gradient(120deg, var(--mb-a), var(--mb-a2));
    box-shadow:0 10px 20px -12px var(--mb-a); transition:transform .15s, box-shadow .15s;
}
.mb-btn:hover{ transform:translateY(-1px); box-shadow:0 14px 24px -12px var(--mb-a); }
.mb-btn.is-sm{ padding:8px 14px; font-size:12px; }

.mb-note{ padding:16px 18px; border-radius:16px; background:var(--mb-soft); }
.mb-note-body{ font:500 14px/1.75 Inter,sans-serif; color:var(--mb-ink); }
.mb-next{ display:flex; gap:10px; margin-top:14px; padding-top:12px; border-top:1px dashed rgba(12,27,42,.14); }
.mb-next > i{ font-size:18px; color:var(--mb-a); }
.mb-next b{ font:800 11px Inter,sans-serif; letter-spacing:.08em; text-transform:uppercase; color:var(--mb-a); }
.mb-next p{ margin-top:3px; font-size:13.5px; line-height:1.65; color:var(--mb-ink); }
.mb-reply{ display:flex; gap:12px; margin-top:14px; padding:14px; border-radius:14px; background:#F8FAFC; border:1px solid var(--mb-line); }
.mb-reply-k{ font:700 12px Inter,sans-serif; color:var(--mb-a); }
.mb-reply p:last-child{ margin-top:3px; font-size:13.5px; line-height:1.65; color:var(--mb-ink); }
.mb-ack{ margin-top:14px; }

.mb-empty{ text-align:center; padding:28px 16px; color:var(--mb-muted); }
.mb-empty > i{
    display:inline-grid; place-items:center; width:58px; height:58px; margin-bottom:10px; border-radius:18px;
    font-size:28px; color:var(--mb-a); background:var(--mb-soft);
}
.mb-empty p{ max-width:440px; margin:0 auto; font-size:13.5px; line-height:1.7; }
.mb-empty p b{ color:var(--mb-ink); }
.mb-empty.is-sm{ padding:16px; }
.mb-empty.is-sm > i{ width:44px; height:44px; font-size:21px; border-radius:14px; }

/* ---------- Board ---------- */
.mb-tracks{ display:flex; gap:8px; overflow-x:auto; margin-bottom:14px; padding:2px 2px 6px; scrollbar-width:none; }
.mb-tracks::-webkit-scrollbar{ display:none; }
.mb-chip{
    --t:var(--mb-ink);
    flex-shrink:0; display:inline-flex; align-items:center; gap:7px; cursor:pointer;
    padding:8px 12px; border-radius:12px; border:1.5px solid var(--mb-line); background:#fff;
    font:700 12.5px Inter,sans-serif; color:var(--mb-body); transition:.15s;
}
.mb-chip i{ font-size:15px; color:var(--t); }
.mb-chip b{
    display:inline-grid; place-items:center; min-width:20px; height:20px; padding:0 6px; border-radius:999px;
    font-size:11px; color:var(--t); background:color-mix(in srgb, var(--t) 13%, #fff);
}
.mb-chip:hover{ border-color:color-mix(in srgb, var(--t) 40%, #fff); }
.mb-chip.is-on{ border-color:var(--t); color:var(--mb-ink); background:color-mix(in srgb, var(--t) 8%, #fff); }

.mb-add{ margin-bottom:14px; border:1.5px dashed var(--mb-line); border-radius:16px; transition:border-color .15s, box-shadow .15s; }
.mb-add[open]{ border-style:solid; border-color:var(--mb-a); box-shadow:0 0 0 4px var(--mb-soft); }
.mb-add > summary, .mb-closed > summary, .mb-answer-box > summary{ list-style:none; cursor:pointer; }
.mb-add > summary::-webkit-details-marker, .mb-closed > summary::-webkit-details-marker,
.mb-answer-box > summary::-webkit-details-marker{ display:none; }
.mb-add > summary{ display:flex; align-items:center; gap:8px; padding:13px 16px; font:700 13px 'Plus Jakarta Sans',sans-serif; color:var(--mb-a); }
.mb-add-form{ display:flex; flex-direction:column; gap:10px; padding:0 16px 16px; }
.mb-add-tracks{ display:flex; flex-wrap:wrap; gap:6px; }
.mb-radio > span{
    display:inline-flex; align-items:center; gap:6px; cursor:pointer; padding:7px 11px; border-radius:10px;
    border:1.5px solid var(--mb-line); font:700 12px Inter,sans-serif; color:var(--mb-body); transition:.15s;
}
.mb-radio > span i{ color:var(--t); }
.mb-radio input:checked + span{ border-color:var(--t); color:var(--mb-ink); background:color-mix(in srgb, var(--t) 10%, #fff); }
.mb-add-foot{ display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:10px; }
.mb-due-in{
    display:inline-flex; align-items:center; gap:8px; padding:5px 6px 5px 12px; border-radius:12px;
    border:1.5px solid var(--mb-line); font:700 12px Inter,sans-serif; color:var(--mb-muted);
}
.mb-due-in input{ border:0; outline:none; background:transparent; font:600 13px Inter,sans-serif; color:var(--mb-ink); }

.mb-items{ display:flex; flex-direction:column; gap:10px; }
.mb-item{
    --t:var(--mb-a);
    position:relative; overflow:hidden; padding:14px 16px 12px 19px; border-radius:16px;
    border:1px solid var(--mb-line); background:#fff; transition:box-shadow .2s, border-color .2s;
}
.mb-item::before{ content:''; position:absolute; left:0; top:0; bottom:0; width:4px; background:var(--t); }
.mb-item:hover{ box-shadow:0 12px 26px -20px rgba(12,27,42,.4); }
.mb-item.is-doing{ background:linear-gradient(90deg, color-mix(in srgb, var(--t) 6%, #fff), #fff 65%); }
.mb-item.is-done, .mb-item.is-dropped{ opacity:.72; }
.mb-item.is-done .mb-item-h, .mb-item.is-dropped .mb-item-h{ text-decoration:line-through; text-decoration-color:rgba(12,27,42,.3); }
.mb-item.is-late{ border-color:#FBD0D8; }
.mb-item-top{ display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin-bottom:6px; }
.mb-item-track{ display:inline-flex; align-items:center; gap:5px; font:800 10.5px Inter,sans-serif; letter-spacing:.08em; text-transform:uppercase; color:var(--t); }
.mb-item-track i{ font-size:14px; }
.mb-item-due{ display:inline-flex; align-items:center; gap:4px; padding:3px 8px; border-radius:8px; background:#F3F6FA; font:700 11.5px Inter,sans-serif; color:var(--mb-muted); }
.mb-item.is-late .mb-item-due{ color:#C42A44; background:#FEECEF; }
.mb-item-by{ margin-left:auto; font-size:11.5px; color:var(--mb-muted); }
.mb-item-h{ font:700 14.5px/1.45 'Plus Jakarta Sans',sans-serif; color:var(--mb-ink); overflow-wrap:anywhere; }
.mb-item-p{ margin-top:4px; font-size:13px; line-height:1.65; color:var(--mb-body); overflow-wrap:anywhere; }
.mb-answer{
    margin-top:10px; padding:10px 12px; border-radius:12px;
    background:color-mix(in srgb, var(--t) 7%, #fff); border:1px solid color-mix(in srgb, var(--t) 20%, #fff);
}
.mb-answer-k{ display:flex; align-items:center; gap:6px; margin-bottom:4px; font:700 11.5px Inter,sans-serif; color:var(--t); }
.mb-answer-k span{ margin-left:auto; font-weight:600; color:var(--mb-muted); }
.mb-answer > p:last-child{ font-size:13px; line-height:1.65; color:var(--mb-ink); overflow-wrap:anywhere; }
.mb-waiting{ display:inline-flex; align-items:center; gap:8px; margin-top:10px; font:600 12px Inter,sans-serif; color:#B45309; }
.mb-waiting .mb-dot{ --c:#F59E0B; animation:mb-blink 1.6s ease-in-out infinite; }
@keyframes mb-blink{ 50%{ opacity:.35; } }

.mb-item-foot{ display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:8px; margin-top:12px; }
.mb-steps{ display:inline-flex; flex-wrap:wrap; gap:2px; padding:3px; border-radius:11px; background:#F3F6FA; }
.mb-step{
    padding:6px 11px; border:0; border-radius:8px; background:transparent; cursor:pointer;
    font:700 11.5px Inter,sans-serif; color:var(--mb-muted); transition:.15s;
}
.mb-step:hover{ color:var(--mb-ink); }
.mb-step.is-on{ background:#fff; color:var(--mb-ink); box-shadow:0 1px 3px rgba(12,27,42,.14); }
.mb-step.is-on[value="done"]{ color:#059669; }
.mb-step.is-on[value="doing"]{ color:#2563EB; }
.mb-step.is-drop:hover, .mb-step.is-drop.is-on{ color:#C42A44; }
.mb-state{ padding:5px 10px; border-radius:8px; background:#F3F6FA; font:700 11.5px Inter,sans-serif; color:var(--mb-muted); }
.mb-state.is-done{ background:#E4F8F0; color:#059669; }
.mb-state.is-doing{ background:#EAF3FE; color:#2563EB; }
.mb-answer-box > summary{ display:inline-flex; align-items:center; gap:6px; padding:6px 10px; border-radius:9px; font:700 12px Inter,sans-serif; color:var(--mb-a); }
.mb-answer-box > summary:hover{ background:var(--mb-soft); }
.mb-answer-box[open]{ flex-basis:100%; }
.mb-answer-box form{ display:flex; flex-direction:column; align-items:flex-end; gap:8px; margin-top:8px; }

.mb-closed{ margin-top:14px; }
.mb-closed > summary{ display:inline-flex; align-items:center; gap:8px; font:700 12.5px Inter,sans-serif; color:var(--mb-muted); }
.mb-closed > summary b{ padding:2px 8px; border-radius:999px; background:#F3F6FA; font-size:11px; }
.mb-closed > .mb-items{ margin-top:10px; }

/* ---------- Timeline ---------- */
.mb-tl{ position:relative; margin:0; padding:0; list-style:none; }
.mb-tl::before{ content:''; position:absolute; left:6px; top:6px; bottom:6px; width:2px; background:var(--mb-line); }
.mb-tl-i{ position:relative; padding:0 0 18px 26px; }
.mb-tl-i:last-child{ padding-bottom:0; }
.mb-tl-dot{ position:absolute; left:0; top:2px; width:14px; height:14px; border-radius:50%; background:#fff; border:3px solid var(--c); }
.mb-tl-w{ display:flex; flex-wrap:wrap; align-items:center; gap:8px; font:800 12.5px 'Plus Jakarta Sans',sans-serif; color:var(--mb-ink); }
.mb-tl-w span{ font:700 10px Inter,sans-serif; letter-spacing:.07em; text-transform:uppercase; color:var(--c); }
.mb-tl-t{
    margin-top:4px; font-size:13px; line-height:1.6; color:var(--mb-body); overflow-wrap:anywhere;
    display:-webkit-box; -webkit-line-clamp:4; -webkit-box-orient:vertical; overflow:hidden;
}
.mb-tl-n{ display:flex; gap:6px; margin-top:6px; font-size:12.5px; color:var(--mb-ink); }
.mb-tl-n i{ color:var(--mb-a); }
.mb-tl-r{ margin-top:6px; padding:8px 10px; border-radius:10px; background:#F8FAFC; font-size:12.5px; line-height:1.55; color:var(--mb-body); overflow-wrap:anywhere; }
.mb-tl-s{ display:flex; align-items:center; gap:5px; margin-top:6px; font-size:11.5px; color:var(--mb-muted); }

.mb-back{ display:inline-flex; align-items:center; gap:6px; margin-bottom:10px; font:700 12.5px Inter,sans-serif; color:#0B8C88; text-decoration:none; }
.mb-back:hover{ text-decoration:underline; }
.ins-head .mb-back{ color:#6D5BD0; }

/* ---------- Phones ---------- */
@media (max-width:640px){
    .mb-hero{ padding:20px 18px 16px; border-radius:20px; }
    .mb-bridge{ grid-template-columns:minmax(0,1fr); gap:12px; }
    .mb-person.is-right{ flex-direction:row; text-align:left; }
    .mb-link{ justify-content:flex-start; padding-left:66px; }
    .mb-link-line{ display:none; }
    .mb-link-badge{ flex-direction:row; gap:6px; padding:6px 12px; }
    .mb-ava{ width:48px; height:48px; border-radius:16px; }
    .mb-strip{ gap:4px; }
    .mb-strip-d{ height:20px; border-radius:6px; }
    .mb-strip-d b{ font-size:9.5px; }
    .mb-panel{ padding:16px; border-radius:18px; }
    .mb-item-by{ margin-left:0; }
    .mb-compose-foot .mb-btn, .mb-add-foot .mb-btn, .mb-ack .mb-btn{ width:100%; }
    .mb-due-in{ width:100%; }
    .mb-due-in input{ flex:1; }
}
@media (prefers-reduced-motion:reduce){
    .mb-link-line::before, .mb-waiting .mb-dot{ animation:none; }
}

/* =====================================================================
   Side menus that fit the screen.
   The admin, faculty and student menus are sticky. When a menu was taller
   than the window, its last items only came into view once the page itself
   had been scrolled to the very bottom. On desktop the menu now stops just
   under the header, never runs past the bottom of the window, and scrolls
   its own list — without dragging the page along when it reaches an end.
   --ags-hdr is the header's measured height (set in footer.php).
   ===================================================================== */
@media (min-width:1024px){
    .adm-side, .ins-side, .ags-side{
        top:calc(var(--ags-hdr, 106px) + 14px) !important;
        max-height:calc(100vh - var(--ags-hdr, 106px) - 28px);
        display:flex; flex-direction:column;
    }
    .adm-side > *, .ins-side > *, .ags-side > *{ flex-shrink:0; }
    .adm-side-body, .ins-side-body, .ags-side-body{
        flex:1 1 auto !important; min-height:0; overflow-y:auto;
        overscroll-behavior:contain; scrollbar-width:thin; scrollbar-color:rgba(12,27,42,.18) transparent;
    }
    .adm-side-body::-webkit-scrollbar, .ins-side-body::-webkit-scrollbar, .ags-side-body::-webkit-scrollbar{ width:6px; }
    .adm-side-body::-webkit-scrollbar-thumb, .ins-side-body::-webkit-scrollbar-thumb, .ags-side-body::-webkit-scrollbar-thumb{
        background:rgba(12,27,42,.18); border-radius:6px;
    }
}

/* Decorative animations stop while they are off screen (footer.php adds
   .is-offscreen). Nothing to look at, so nothing to redraw. */
.is-offscreen, .is-offscreen *{ animation-play-state:paused !important; }

/* The bell's unread badge sits in the sticky header, which is on screen the
   whole time the page scrolls. Its pulse animated box-shadow — a repaint of
   the header on every frame. Same ripple now, drawn by a layer that only
   scales and fades. */
.ags-bell-dot.ags-live-dot{ animation:none; isolation:isolate; }
.ags-bell-dot.ags-live-dot::after{
    content:''; position:absolute; inset:-2px; border-radius:inherit; pointer-events:none;
    background:rgba(244,63,94,.45); z-index:-1;
    animation:ags-live-ring 2s ease-out infinite; will-change:transform, opacity;
}
@keyframes ags-live-ring{ from{ transform:scale(1); opacity:.9; } 70%, to{ transform:scale(1.7); opacity:0; } }
@media (prefers-reduced-motion:reduce){ .ags-bell-dot.ags-live-dot::after{ animation:none; opacity:0; } }

/* =====================================================================
   Steady pop-ups.
   1. Full-screen dialog overlays dim the page but no longer blur it: a blur
      is recomputed over the whole window whenever anything behind changes,
      which showed as the dialog flashing.
   2. The scrollbar's space is always reserved, so hiding the scrollbar
      while a dialog is open no longer shifts the whole page sideways.
   ===================================================================== */
.fixed.inset-0[class*="backdrop-blur"]{ -webkit-backdrop-filter:none !important; backdrop-filter:none !important; }
html{ scrollbar-gutter:stable; }

/* ---- Course page header: the mentor card and the category tag ---------
   The mentor sits in the chip row where the internal batch code used to be:
   a glass pill with their face, their name and a Message button. */
.scd-mentor{
    display:inline-flex; align-items:center; gap:10px; padding:5px 5px 5px 6px; border-radius:999px; text-decoration:none;
    background:rgba(255,255,255,.12); border:1px solid rgba(255,255,255,.24); color:#fff;
    transition:background .18s, border-color .18s, transform .18s;
}
.scd-mentor:hover{ background:rgba(255,255,255,.2); border-color:rgba(255,255,255,.4); transform:translateY(-1px); }
.scd-mentor-ava{
    flex-shrink:0; display:grid; place-items:center; width:32px; height:32px; border-radius:50%; overflow:hidden;
    background:linear-gradient(135deg,#7C5CFF,#5B47C4); border:2px solid rgba(255,255,255,.75);
    font:800 12px 'Plus Jakarta Sans',sans-serif; color:#fff;
}
.scd-mentor-ava img{ width:100%; height:100%; object-fit:cover; }
.scd-mentor-txt{ display:flex; flex-direction:column; line-height:1.15; min-width:0; }
.scd-mentor-txt small{ font:700 10px Inter,sans-serif; letter-spacing:.08em; text-transform:uppercase; color:rgba(255,255,255,.65); }
.scd-mentor-txt b{ font:800 13px 'Plus Jakarta Sans',sans-serif; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:190px; }
.scd-mentor-go{
    display:inline-flex; align-items:center; gap:6px; padding:7px 13px; border-radius:999px;
    background:#fff; color:#4B3BB0; font:800 12px Inter,sans-serif; white-space:nowrap;
}
.scd-mentor-go i{ font-size:14px; }
.scd-mentor-go.is-new{ background:#FDE68A; color:#7A5300; }
.scd-mentor-dot{ width:7px; height:7px; border-radius:50%; background:#D97706; animation:scd-mentor-blink 1.6s ease-in-out infinite; }
@keyframes scd-mentor-blink{ 50%{ opacity:.3; } }
.scd-chip.is-quiet{ color:rgba(234,246,255,.7); border-style:dashed; }

/* "FISRM" in front of the course name in the title. */
.scd-hero-cat{
    display:inline-block; vertical-align:middle; margin:0 10px 4px 0; padding:4px 11px; border-radius:10px;
    font:800 .42em/1.3 Inter,sans-serif; letter-spacing:.08em; text-transform:uppercase;
    color:#E4DEFF; background:rgba(124,92,255,.32); border:1px solid rgba(196,181,253,.5);
}
@media (max-width:560px){
    .scd-mentor{ width:100%; }
    .scd-mentor-txt{ flex:1; }
    .scd-mentor-txt b{ max-width:none; }
}
@media (prefers-reduced-motion:reduce){ .scd-mentor-dot{ animation:none; } }

/* ---- My mentor: one tab per course -----------------------------------
   Each tab names the course (category in its own colour) and that course's
   mentor, so a student with two mentors never mixes the conversations. */
.smt-tabs{ display:grid; grid-template-columns:repeat(auto-fill,minmax(230px,1fr)); gap:10px; }
.smt-tab{
    display:flex; flex-direction:column; gap:7px; padding:12px 14px; border-radius:16px; text-decoration:none;
    background:#fff; border:1.5px solid var(--ags-line,#E8EEF5); box-shadow:0 1px 2px rgba(12,27,42,.04);
    transition:border-color .15s, box-shadow .15s, transform .15s;
}
.smt-tab:hover{ transform:translateY(-1px); border-color:color-mix(in srgb, var(--cc) 45%, #fff); }
.smt-tab.is-on{
    border-color:var(--cc); background:color-mix(in srgb, var(--cc) 6%, #fff);
    box-shadow:0 12px 26px -18px var(--cc);
}
.smt-tab-course{ font:700 13.5px/1.3 'Plus Jakarta Sans',sans-serif; color:var(--ags-ink,#0C1B2A); }
.smt-tab-course b{
    display:inline-block; margin-right:6px; padding:2px 8px; border-radius:7px; vertical-align:1px;
    font:800 10.5px Inter,sans-serif; letter-spacing:.06em; text-transform:uppercase;
    color:var(--cc); background:color-mix(in srgb, var(--cc) 12%, #fff);
}
.smt-tab-who{ display:flex; align-items:center; gap:7px; font:600 12px Inter,sans-serif; color:var(--ags-body,#46586E); }
.smt-tab-ava{
    display:grid; place-items:center; width:22px; height:22px; border-radius:50%; overflow:hidden; flex-shrink:0;
    background:linear-gradient(135deg,#7C5CFF,#5B47C4); color:#fff; font:800 9px 'Plus Jakarta Sans',sans-serif;
}
.smt-tab-ava img{ width:100%; height:100%; object-fit:cover; }
.smt-tab-new{ margin-left:auto; padding:2px 8px; border-radius:999px; background:#FDE68A; color:#7A5300; font:800 10.5px Inter,sans-serif; }
.smt-tab.is-none .smt-tab-who{ color:var(--ags-muted,#7C8DA4); }

/* The course on a mentorship board's hero. */
.mb-tag.is-course{ background:rgba(255,255,255,.16); border-color:rgba(255,255,255,.28); font-weight:700; }
.mb-tag.is-course b{ color:#fff; font-weight:800; letter-spacing:.04em; text-transform:uppercase; font-size:11px; margin-right:2px; }

/* ---- Mentorship board: attachments -----------------------------------
   The paperclip on every message box, the names of the files chosen, and
   the chips for files already attached. */
.mb-attach-wrap{ display:flex; flex-wrap:wrap; align-items:center; gap:6px 8px; margin-top:10px; }
.mb-attach{
    display:inline-flex; align-items:center; gap:6px; padding:7px 12px; border-radius:10px; cursor:pointer;
    border:1.5px dashed var(--mb-line); background:#fff; font:700 12px Inter,sans-serif; color:var(--mb-a);
    transition:border-color .15s, background .15s;
}
.mb-attach:hover{ border-color:var(--mb-a); background:var(--mb-soft); }
.mb-attach i{ font-size:15px; }
.mb-attach input{ position:absolute; width:1px; height:1px; opacity:0; pointer-events:none; }
.mb-attach:focus-within{ outline:2px solid var(--mb-a); outline-offset:2px; }
.mb-attach-list{ display:flex; flex-wrap:wrap; align-items:center; gap:5px; min-width:0; }
.mb-attach-chip{ max-width:220px; padding:4px 9px; border-radius:8px; background:var(--mb-soft); color:var(--mb-ink);
    font:600 11.5px Inter,sans-serif; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.mb-attach-chip.is-bad{ background:#FEECEF; color:#C42A44; max-width:none; }
.mb-attach-clear{ border:0; background:none; cursor:pointer; font:700 11.5px Inter,sans-serif; color:var(--mb-muted); text-decoration:underline; }

.mb-files{ display:flex; flex-wrap:wrap; gap:6px; margin-top:9px; }
.mb-file{
    display:inline-flex; align-items:center; gap:7px; max-width:100%; padding:6px 10px; border-radius:10px; text-decoration:none;
    background:#fff; border:1px solid var(--mb-line); font:600 12px Inter,sans-serif; color:var(--mb-ink);
    transition:border-color .15s, box-shadow .15s;
}
.mb-file:hover{ border-color:var(--mb-a); box-shadow:0 6px 14px -10px var(--mb-a); }
.mb-file i{ font-size:15px; color:var(--mb-a); flex-shrink:0; }
.mb-file span{ min-width:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:220px; }
.mb-file small{ flex-shrink:0; font-weight:600; font-size:10.5px; color:var(--mb-muted); }
.mb-tl .mb-files{ margin-top:6px; }
.mb-tl .mb-file{ padding:4px 8px; font-size:11.5px; }
.mb-tl .mb-file span{ max-width:150px; }
.mb-answer-box form .mb-attach-wrap{ align-self:stretch; margin-top:0; }
@media (max-width:640px){ .mb-file span{ max-width:160px; } }

/* International bank transfer panel (includes/partials/intl-bank.php) */
.ib-card { display: grid; gap: 12px; }
.ib-head { display: flex; gap: 11px; align-items: flex-start; }
.ib-head b { display: block; font-size: 14px; color: #0B2C4D; }
.ib-head small { display: block; margin-top: 2px; font-size: 12px; color: #6C819A; line-height: 1.5; }
.ib-ico { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 11px; color: #fff; background: linear-gradient(135deg, #2563EB, #7C5CFF); }
.ib-rows { margin: 0; border: 1px solid #E6EDF5; border-radius: 13px; overflow: hidden; }
.ib-rows > div { display: flex; justify-content: space-between; gap: 14px; padding: 9px 13px; font-size: 12.5px; }
.ib-rows > div + div { border-top: 1px solid #EEF2F7; }
.ib-rows dt { color: #6C819A; flex: none; }
.ib-rows dd { margin: 0; text-align: right; font-weight: 700; color: #0B2C4D; word-break: break-word; }
.ib-note { margin: 0; font-size: 12px; line-height: 1.55; color: #6C819A; }
.ib-go { display: flex; justify-content: center; align-items: center; gap: 8px; }

/* My courses: the entrance exam comes first (exam → payment → application) */
.mc-pay.is-exam { background: linear-gradient(100deg, #F3F0FF, #ECE7FF); border-color: #DCD3FB; }
.mc-pay.is-exam .mc-pay-amt { color: #5B45C9; font-size: 11.5px; }
.mc-pay.is-exam .mc-pay-go { background: linear-gradient(100deg, #7C5CFF, #5B45C9); color: #fff; }
.mc-wait {
    display: flex; align-items: flex-start; gap: 9px; padding: 10px 12px; border-radius: 12px;
    font-size: 12px; line-height: 1.45; font-weight: 600; color: #4A5A70; background: #F6F8FB; border: 1px solid #E6ECF3;
}
.mc-wait i { font-size: 16px; flex: none; margin-top: 1px; color: #7C5CFF; }
.mc-wait.is-pay_soon { background: #EEFBF4; border-color: #C9EEDB; color: #0A6B4F; }
.mc-wait.is-pay_soon i { color: #10B981; }
.mc-wait.is-retry { background: #FFF6F1; border-color: #F8DCCB; color: #9A4A1A; }
.mc-wait.is-retry i { color: #F97316; }

/* My courses: "You cleared the entrance exam · 55%" — green, beside the amber payment note */
.mc-cleared {
    display: flex; align-items: center; gap: 8px; margin: 8px 0 2px; padding: 7px 11px; border-radius: 11px;
    background: linear-gradient(100deg, #E9FBF3, #DDF7EC); border: 1px solid #BDEBD6;
    font-size: 12px; font-weight: 600; color: #0A6B4F;
}
.mc-cleared i { font-size: 16px; color: #10B981; }
.mc-cleared b {
    margin-left: 4px; padding: 1px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 800;
    color: #fff; background: linear-gradient(100deg, #10B981, #059669);
}
.mc-cleared.is-chip { display: inline-flex; margin: 0; padding: 6px 11px; white-space: nowrap; }
.ags-due .mc-cleared.is-chip { margin-right: 10px; align-self: center; }
@media (max-width: 640px) { .ags-due .mc-cleared.is-chip { margin: 8px 0 0; } }
.mc-cleared small { margin-left: 6px; font-size: 10.5px; font-weight: 600; opacity: .75; }
.mc-cleared.is-notyet { background: linear-gradient(100deg, #FFF4EC, #FFEBDD); border-color: #F8D2B5; color: #9A3F12; }
.mc-cleared.is-notyet i { color: #F97316; }
.mc-cleared.is-notyet b { background: linear-gradient(100deg, #FB923C, #EA580C); }
.mc-cleared.is-review { background: linear-gradient(100deg, #F3F0FF, #ECE7FF); border-color: #DCD3FB; color: #4C3BB0; }
.mc-cleared.is-review i { color: #7C5CFF; }

/* Course page: once the exam has been sat, the application form is the one
   thing left — full width, with how much of it is done. */
.scd-adm.is-single { grid-template-columns: 1fr; }
.scd-adm-step {
    margin-left: 8px; padding: 2px 8px; border-radius: 999px; font-size: 10px; letter-spacing: .04em;
    color: #5B45C9; background: #EFEBFF; vertical-align: 1px;
}
.scd-adm-pct {
    margin-left: 8px; padding: 2px 10px; border-radius: 999px; font-size: 13px; font-weight: 800;
    color: #fff; background: linear-gradient(100deg, #2E86C8, #0EA5A0); vertical-align: 2px;
}
.scd-adm-card.is-done .scd-adm-pct { background: linear-gradient(100deg, #10B981, #059669); }
.scd-adm.is-single .scd-adm-card.is-form { padding: 20px 22px; align-items: center; }
.scd-adm.is-single .scd-adm-card.is-form .scd-adm-ico {
    width: 58px; height: 58px; border-radius: 50%; font-size: 22px;
    background: radial-gradient(closest-side, #fff 78%, transparent 80% 100%),
                conic-gradient(#0EA5A0 calc(var(--p, 0) * 1%), #E6EEF6 0);
}
.scd-adm.is-single .scd-adm-card.is-form .scd-adm-bar { height: 9px; }
.scd-adm.is-single .scd-adm-card.is-form .scd-adm-go { float: right; margin-top: -2px; }
@media (max-width: 640px) {
    .scd-adm { grid-template-columns: 1fr; }
    .scd-adm.is-single .scd-adm-card.is-form .scd-adm-go { float: none; margin-top: 11px; }
}

/* A class or lesson that shows but cannot be entered yet (fee in heads: the
   Programme Enrolment Fee is not confirmed) */
.ags-locked { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 10px; font-size: 12px; font-weight: 700;
              color: #64748B; background: #EEF2F7; border: 1px dashed #CBD5E1; cursor: not-allowed; white-space: nowrap; }
.ags-locked i { font-size: 11px; }

/* My courses — Fees & next steps */
.mc-feebar { width: 170px; max-width: 100%; height: 6px; margin: 7px 0 4px; border-radius: 999px; background: #E9EEF5; overflow: hidden; }
.mc-feebar span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #0E9F9A, #2563EB); }
.mc-pill { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.mc-pill.is-ok { background: #D1FAE5; color: #047857; }
.mc-pill.is-wait { background: #FEF3C7; color: #92400E; }
.mc-pill.is-due { background: #FFE4E6; color: #BE123C; }
.mc-pill.is-calm { background: #EEF2F7; color: #334155; }
.mc-pill.is-info { background: #EDE9FE; color: #6D28D9; }

/* Student profile — basic details */
.spf-hint { margin: 5px 0 0; font-size: 11.5px; color: #8A97A8; line-height: 1.5; }
.spf-radios { display: flex; gap: 8px; flex-wrap: wrap; }
.spf-radio { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border: 1px solid #E2E8F0; border-radius: 12px; font-size: 13px; font-weight: 600; color: #334155; cursor: pointer; }
.spf-radio:has(input:checked) { border-color: #0E9F9A; background: #F2FAF9; color: #0F766E; }
.spf-radio input { accent-color: #0E9F9A; }
.spf-quals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 640px) { .spf-quals { grid-template-columns: 1fr; } }
.spf-qual { display: flex; align-items: center; gap: 8px; padding: 0 0 0 10px; border: 1px solid #E2E8F0; border-radius: 12px; background: #fff; overflow: hidden; }
.spf-qual span { font-size: 11px; font-weight: 800; color: #0E9F9A; letter-spacing: .04em; }
.spf-qual input { flex: 1; min-width: 0; border: 0; outline: 0; padding: 11px 10px 11px 0; font-size: 13.5px; background: transparent; }
.spf-qual:focus-within { border-color: #0E9F9A; box-shadow: 0 0 0 3px rgba(14,159,154,.12); }
[hidden].spf-field { display: none !important; }

/* Course descriptions typed by the office (includes/RichText.php): bullets,
   a bold label before the colon, the bracketed aside in italics. */
.rt > * + * { margin-top: .7em; }
.rt p { margin: 0; }
.rt-list { margin: 0; padding: 0; list-style: none; display: grid; gap: .55em; }
.rt-list li { position: relative; padding-left: 1.35em; }
.rt-list li::before {
    content: ''; position: absolute; left: .2em; top: .68em; width: .42em; height: .42em; border-radius: 50%;
    background: linear-gradient(135deg, #2BB6D3, #6CBE45);
}
.rt strong { font-weight: 750; color: #173F6B; }
.rt em { font-style: italic; }
.rt em.rt-aside { color: #7C8DA4; }
/* an application already sent: a calm green link back to it, not a warning */
.mc-flag.is-sent { background: #ECFDF5; border-color: #A7F3D0; color: #047857; }
.mc-flag.is-sent:hover { background: #D1FAE5; border-color: #6EE7B7; color: #065F46; }

/* Account menu, tighter (6 Oct 2026): the rows sat far apart and the menu ran
   long for five links. Smaller icon tiles, less padding, the sign-out row
   no longer double-padded by its footer. */
.ags-acc-ids { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ags-acc-ids .ags-acc-role { margin-top: 0; }
.ags-acc-role.is-reg { color: #FDE68A; background: rgba(242,199,68,.14); border-color: rgba(242,199,68,.4); letter-spacing: .04em; }
.ags-acc-pop .ags-pop-body { padding: 5px 6px; display: flex; flex-direction: column; gap: 1px; }
.ags-acc-pop .ags-pop-foot { padding: 5px 6px; }
.ags-acc-pop .ags-acc-item { gap: .6rem; padding: .32rem .5rem; border-radius: 10px; font-size: 13px; line-height: 1.25; }
.ags-acc-pop .ags-acc-item i { width: 28px; height: 28px; border-radius: 9px; font-size: .95rem; }

/* ---------------------------------------------------------------------------
   Student course page header (6 Oct 2026): the programme leads, large; the
   batch follows as a tag; the teachers are faces, and pointing at one opens
   a card with who they are.
   --------------------------------------------------------------------------- */
.scd-hero-title.has-prog { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; margin-bottom: 10px; }
.scd-hero-prog {
    font: 800 46px/1 'Plus Jakarta Sans', sans-serif; letter-spacing: -.035em;
    background: linear-gradient(100deg, #FFFFFF 0%, #B9F2EE 45%, #FFFFFF 75%); background-size: 200% 100%;
    -webkit-background-clip: text; background-clip: text; color: transparent;
    animation: scd-prog-sheen 8s ease-in-out infinite;
}
@keyframes scd-prog-sheen { 0%, 100% { background-position: 100% 0; } 50% { background-position: 0 0; } }
.scd-hero-batch {
    display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 10px;
    font: 800 14px/1.2 Inter, sans-serif; letter-spacing: .02em; color: #E4DEFF;
    background: rgba(124,92,255,.28); border: 1px solid rgba(196,181,253,.5);
}
.scd-hero-batch i { font-size: 14px; color: #C4B5FD; }
.scd-meta-no b { letter-spacing: .02em; }

.scd-faculty { display: inline-flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.scd-faculty-k { display: inline-flex; align-items: center; gap: 9px; font-size: 13.5px; color: rgba(214,235,250,.76); }
.scd-faculty-k i { font-size: 17px; color: #6FE3E0; }
.scd-faces { display: flex; align-items: center; padding-left: 8px; }
.scd-face { position: relative; margin-left: -9px; cursor: pointer; outline: none; z-index: 1; animation: scd-face-in .5s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(.15s + var(--i) * .07s); }
@keyframes scd-face-in { from { opacity: 0; transform: translateY(6px) scale(.8); } to { opacity: 1; transform: none; } }
.scd-face-img {
    display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; overflow: hidden;
    border: 2.5px solid #0E5A6E; box-shadow: 0 4px 10px rgba(3,20,36,.35);
    background: linear-gradient(135deg, #F2C744, #E8A317); color: #0B2C4D; font: 800 13px 'Plus Jakarta Sans', sans-serif;
    transition: transform .25s cubic-bezier(.3,1.5,.5,1), border-color .2s, box-shadow .2s;
}
.scd-face-img img { width: 100%; height: 100%; object-fit: cover; }
.scd-face:hover, .scd-face:focus-within, .scd-face:focus { z-index: 30; }
.scd-face:hover .scd-face-img, .scd-face:focus .scd-face-img {
    transform: translateY(-4px) scale(1.18); border-color: #6FE3E0; box-shadow: 0 0 0 4px rgba(111,227,224,.25), 0 10px 20px rgba(3,20,36,.45);
}

/* the card */
.scd-tip {
    position: absolute; left: 50%; bottom: calc(100% + 14px); width: 300px; padding: 14px 15px 13px; border-radius: 18px;
    text-align: left; white-space: normal; color: #E9EEF8; cursor: default;
    background:
        radial-gradient(260px 140px at 100% 0%, rgba(124,92,255,.42), transparent 70%),
        radial-gradient(200px 120px at 0% 100%, rgba(34,211,238,.22), transparent 70%),
        linear-gradient(135deg, #0F2A4F 0%, #1C2F66 55%, #3A2D7C 100%);
    border: 1px solid rgba(196,181,253,.35);
    box-shadow: 0 24px 50px -18px rgba(3,10,30,.75), 0 0 0 1px rgba(255,255,255,.04) inset;
    opacity: 0; visibility: hidden; pointer-events: none;
    transform: translate(calc(-50% + var(--shift, 0px)), 8px) scale(.94); transform-origin: 50% 100%;
    transition: opacity .2s ease, transform .28s cubic-bezier(.2,.9,.25,1.2), visibility 0s linear .2s;
}
.scd-tip::after {   /* the pointer */
    content: ''; position: absolute; left: calc(50% - var(--shift, 0px)); bottom: -7px; width: 14px; height: 14px; margin-left: -7px;
    background: #2A2E70; border-right: 1px solid rgba(196,181,253,.35); border-bottom: 1px solid rgba(196,181,253,.35); transform: rotate(45deg);
}
.scd-tip::before {  /* a bridge, so moving the pointer up into the card does not close it */
    content: ''; position: absolute; left: 0; right: 0; bottom: -16px; height: 16px;
}
.scd-face:hover .scd-tip, .scd-face:focus .scd-tip, .scd-face:focus-within .scd-tip {
    opacity: 1; visibility: visible; pointer-events: auto; transform: translate(calc(-50% + var(--shift, 0px)), 0) scale(1);
    transition: opacity .2s ease, transform .28s cubic-bezier(.2,.9,.25,1.2), visibility 0s;
}
.scd-tip-top { display: flex; align-items: center; gap: 12px; }
.scd-tip-ava {
    flex-shrink: 0; display: grid; place-items: center; width: 62px; height: 62px; border-radius: 18px; overflow: hidden; position: relative;
    background: linear-gradient(135deg, #F2C744, #E8A317); color: #0B2C4D; font: 800 20px 'Plus Jakarta Sans', sans-serif;
    box-shadow: 0 0 0 2px rgba(255,255,255,.18), 0 0 0 5px rgba(111,227,224,.18);
}
.scd-tip-ava img { width: 100%; height: 100%; object-fit: cover; }
.scd-tip-who { min-width: 0; }
.scd-tip-who b { display: block; font: 800 15px/1.25 'Plus Jakarta Sans', sans-serif; color: #fff; }
.scd-tip-who small { display: block; margin-top: 3px; font: 700 11.5px/1.35 Inter, sans-serif; color: #9FE1CB; }
.scd-tip-about { display: block; margin-top: 10px; font: 500 12.5px/1.55 Inter, sans-serif; color: rgba(226,235,250,.82); }
.scd-tip-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.scd-tip-tags em {
    font: 700 10.5px/1 Inter, sans-serif; font-style: normal; padding: 5px 8px; border-radius: 999px;
    color: #E4DEFF; background: rgba(255,255,255,.08); border: 1px solid rgba(196,181,253,.3);
}
.scd-tip-go {
    display: inline-flex; align-items: center; gap: 5px; margin-top: 11px; padding: 6px 11px; border-radius: 9px; text-decoration: none;
    font: 800 11.5px Inter, sans-serif; color: #0B2C4D; background: linear-gradient(180deg, #8EF0E9, #5FD6CF);
    box-shadow: 0 2px 0 #2E9E98;
}
.scd-tip-go:hover { filter: brightness(1.06); color: #0B2C4D; }

@media (max-width: 640px) {
    .scd-hero-prog { font-size: 36px; }
    .scd-tip { width: min(300px, calc(100vw - 32px)); }
}
@media (prefers-reduced-motion: reduce) {
    .scd-hero-prog, .scd-face { animation: none; }
    .scd-tip, .scd-face-img { transition: none; }
}

/* My courses: pay first, the entrance exam beside it (13 Oct 2026) */
.mc-exam-link { display: flex; align-items: center; gap: 7px; margin-top: 8px; padding: 8px 12px; border-radius: 12px; font-size: 12px; font-weight: 600; color: #5B45C9; background: #F3F0FF; border: 1px solid #DCD3FB; text-decoration: none; }
.mc-exam-link i:last-child { margin-left: auto; }
.mc-exam-link:hover { background: #ECE7FF; color: #4B36B8; }
.mc-exam-link.is-note { color: #6B5FA8; background: #F7F5FF; margin-bottom: 0; }

/* phones: form fields at 16px, so iPhones do not zoom the page in when a field is tapped (17 Nov 2026) */
@media (max-width:768px){input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]),select,textarea{font-size:16px !important}}

/* Phone fixes (24 Nov 2026)
   - student course page: a long row of faculty photos ran off the right edge; it now wraps
   - admin payments: the payment card was wider than a phone screen */
.scd-faculty { max-width: 100%; }
.scd-faces { flex-wrap: wrap; row-gap: 6px; }
.pay-admin-list { grid-template-columns: minmax(0, 1fr); }
.pay-admin { min-width: 0; }
@media (max-width: 640px) { .pay-admin-form { flex-wrap: wrap; min-width: 0; } }
