:root,
[data-theme="light"] {
    --brand-500: #d81f26;
    --brand-600: #b6151c;
    --brand-700: #8d0d13;
    --brand-50: #fdecef;
    --surface-0: #f7f8fb;
    --surface-1: #ffffff;
    --surface-2: #f1f2f6;
    --border-strong: #d9dde5;
    --border-soft: #e5e7ee;
    --text-strong: #0f172a;
    --text-mid: #475467;
    --text-soft: #6b7280;
    --shadow-1: 0 10px 30px rgba(15, 23, 42, 0.1);
    --shadow-2: 0 18px 40px rgba(15, 23, 42, 0.12);
    --input-bg: #ffffff;
    --pill-active: rgba(216, 31, 38, 0.1);
    --muted-accent: #8f9bb3;
    --table-hover: rgba(13, 148, 136, 0.06);
    --accent-blue: #2563eb;
    --accent-amber: #f59e0b;
    --accent-green: #10b981;
    --accent-red: #ef4444;
    --focus-ring: 0 0 0 3px rgba(216, 31, 38, 0.18);
}

[data-theme="dark"] {
    --brand-500: #f1545a;
    --brand-600: #e33a41;
    --brand-700: #c1252c;
    --brand-50: #2a1a1c;
    --surface-0: #0b1220;
    --surface-1: #0f1829;
    --surface-2: #121c2f;
    --border-strong: #1f2a3d;
    --border-soft: #182235;
    --text-strong: #e4e7ee;
    --text-mid: #c1c8d7;
    --text-soft: #94a3b8;
    --shadow-1: 0 14px 30px rgba(0, 0, 0, 0.3);
    --shadow-2: 0 22px 50px rgba(0, 0, 0, 0.45);
    --input-bg: #111a2a;
    --pill-active: rgba(241, 84, 90, 0.14);
    --muted-accent: #8ba2c3;
    --table-hover: rgba(148, 163, 184, 0.08);
    --accent-blue: #60a5fa;
    --accent-amber: #fbbf24;
    --accent-green: #34d399;
    --accent-red: #f87171;
    --focus-ring: 0 0 0 3px rgba(241, 84, 90, 0.25);
}

:root {
    --color-primary: var(--brand-500);
    --color-primary-dark: var(--brand-600);
    --color-accent: #d4b96f;
    --color-dark: var(--text-strong);
    --color-light: var(--surface-0);
    --color-muted: var(--text-soft);
    --font-heading: "Rajdhani", Arial, sans-serif;
    --font-body: "Roboto", "Helvetica Neue", sans-serif;
    --max-width: 1140px;
    --transition: 0.25s ease-in-out;
}

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

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--text-strong);
    background-color: var(--color-light);
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition);
}

a:hover,
a:focus {
    color: var(--color-primary);
}

.parallax-bg {
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    opacity: 0.14;
    background-image: linear-gradient(135deg, rgba(8, 9, 10, 0.92), rgba(8, 9, 10, 0.6)), url("../Images/tkd-parallax-pattern.svg");
    background-blend-mode: multiply;
    background-size: cover, 220px;
    background-repeat: no-repeat, repeat;
    transform: translate3d(0, 0, 0);
    transition: opacity 0.4s ease-in-out;
}

body.js-enabled [data-reveal] {
    --reveal-translate-y: 32px;
    opacity: 0;
    transform: translate3d(0, var(--reveal-translate-y), 0);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
    will-change: opacity, transform;
}

body.js-enabled [data-reveal="fade"] {
    --reveal-translate-y: 0;
}

body.js-enabled [data-reveal].is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

@media (prefers-reduced-motion: reduce) {
    .parallax-bg {
        transition: none;
    }

    body.js-enabled [data-reveal] {
        transition-duration: 0.01ms;
        transition-delay: 0s;
    }
}

.sound-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.95rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-family: var(--font-heading);
    font-size: 0.875rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color var(--transition), border-color var(--transition), box-shadow var(--transition), color var(--transition);
    margin-left: 0.75rem;
}

.sound-toggle__status {
    font-weight: 700;
}

.sound-toggle:hover,
.sound-toggle:focus-visible {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.75);
    outline: none;
}

.sound-toggle:focus-visible {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.35);
}

.sound-toggle[aria-pressed="true"] {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
    box-shadow: 0 1rem 2.25rem rgba(216, 31, 38, 0.35);
}

.floating-cta {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 1.5rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: #fff;
    box-shadow: 0 1.5rem 3rem rgba(8, 9, 10, 0.45);
    z-index: 1000;
    transition: transform var(--transition), box-shadow var(--transition);
}

.floating-cta:hover,
.floating-cta:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 1.75rem 3.25rem rgba(8, 9, 10, 0.55);
    outline: none;
}

.floating-cta:focus-visible {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.6), 0 1.75rem 3.25rem rgba(8, 9, 10, 0.5);
}

.container {
    width: min(100% - 3rem, var(--max-width));
    margin: 0 auto;
}

.announcement-bar {
    background: linear-gradient(90deg, rgba(216, 31, 38, 0.98), rgba(245, 158, 11, 0.98));
    color: #fff;
}

.announcement-bar__content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    padding: 0.55rem 0;
    text-align: center;
    font-weight: 600;
    font-size: 0.95rem;
}

.announcement-bar__content p {
    margin: 0;
}

.announcement-bar__label {
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.18);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.announcement-bar a {
    color: #fff;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

.announcement-bar a:hover,
.announcement-bar a:focus-visible {
    color: #fff;
    text-decoration-color: rgba(255, 255, 255, 0.7);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: rgba(8, 9, 10, 0.95);
    color: white;
}

.site-header .container {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1rem 0;
    flex-wrap: wrap;
}

/* ── Brand ── */
.brand-link {
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
    font-family: var(--font-heading);
    letter-spacing: 0.1em;
}

.brand-taegeuk { display: none; }

.brand-text { display: contents; }

.brand-mark {
    padding: 0.35rem 0.65rem;
    background-color: var(--color-primary);
    border-radius: 0.25rem;
    font-weight: 700;
    font-size: 1rem;
}

.brand-name {
    font-size: 1rem;
    font-weight: 600;
}


/* ── Fixed corner badges ── */
.kukkiwon-badge,
.taegeuk-badge {
    position: fixed;
    top: 14px;
    z-index: 2147483647; /* max z-index — always on top */
    pointer-events: none;
    width: 70px;
    height: 70px;
    isolation: isolate;
}

.kukkiwon-badge { left: 14px; }
.taegeuk-badge  { right: 14px; }

.kukkiwon-badge img,
.taegeuk-badge img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    border-radius: 50%;
    border: 2px solid rgba(201,162,39,0.65);
    box-shadow:
        0 0 0 4px rgba(201,162,39,0.14),
        0 0 22px rgba(201,162,39,0.5),
        0 4px 20px rgba(0,0,0,0.7);
    background: rgba(5,5,15,0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    animation: badge-glow 4s ease-in-out infinite;
}

.taegeuk-badge img { animation-delay: 2s; }

@keyframes badge-glow {
    0%, 100% { box-shadow: 0 0 0 4px rgba(201,162,39,0.14), 0 0 22px rgba(201,162,39,0.5),  0 4px 20px rgba(0,0,0,0.7); }
    50%       { box-shadow: 0 0 0 6px rgba(201,162,39,0.24), 0 0 36px rgba(201,162,39,0.78), 0 4px 28px rgba(0,0,0,0.8); }
}

/* Mobile — hide badges entirely to reduce clutter */
@media (max-width: 768px) {
    .kukkiwon-badge, .taegeuk-badge { display: none; }
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-left: auto;
}

.lang-toggle {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    position: relative;
}

.lang-toggle__btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: rgba(255, 255, 255, 0.6);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.875rem;
    letter-spacing: 0.08em;
    padding: 0.55rem 0.85rem;
    border-radius: 999px;
    cursor: pointer;
    transition: background var(--transition), color var(--transition), border-color var(--transition);
    line-height: 1;
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.lang-toggle__btn.is-active {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.55);
    color: #fff;
}

.lang-toggle__btn:hover:not(.is-active) {
    background: rgba(255, 255, 255, 0.13);
    color: rgba(255, 255, 255, 0.9);
}

.lang-toggle__sep {
    color: rgba(255, 255, 255, 0.28);
    font-size: 0.75rem;
    user-select: none;
}

.goog-te-banner-frame.skiptranslate,
body > .goog-te-banner-frame {
    display: none !important;
}

body {
    top: 0 !important;
}

.main-nav {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.main-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    font-weight: 500;
    justify-content: center;
    flex-wrap: wrap;
    column-gap: 1.5rem;
    row-gap: 0.35rem;
}

.main-nav ul li a {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

@media (max-width: 1200px) {
    .main-nav ul {
        column-gap: 1rem;
    }
}

@media (max-width: 992px) {
    .header-actions {
        flex-direction: column;
        align-items: flex-end;
        gap: 0.35rem;
    }
}

.nav-toggle {
    display: none;
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 0.4rem 0.8rem;
    border-radius: 0.3rem;
    color: white;
    font-weight: 600;
    letter-spacing: 0.06em;
    min-height: 44px;
    min-width: 44px;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.6rem;
    background-color: var(--color-primary);
    color: white;
    font-weight: 600;
    border-radius: 999px;
    box-shadow: 0 0.5rem 1.25rem rgba(216, 31, 38, 0.35);
    transition: transform var(--transition), box-shadow var(--transition), background-color var(--transition);
}

.cta-btn:hover,
.cta-btn:focus {
    transform: translateY(-1px);
    background-color: var(--color-primary-dark);
    box-shadow: 0 0.75rem 1.5rem rgba(216, 31, 38, 0.4);
}

.secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.6rem;
    border-radius: 999px;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    font-weight: 600;
    transition: background-color var(--transition), color var(--transition);
}

.secondary-btn:hover,
.secondary-btn:focus {
    background-color: var(--color-primary);
    color: white;
}

.hero {
    padding: 7rem 0 4rem;
    background-image: radial-gradient(circle at top left, rgba(216, 31, 38, 0.2), transparent 55%), radial-gradient(circle at bottom right, rgba(8, 9, 10, 0.2), transparent 45%);
}

.hero-content {
    display: grid;
    align-items: center;
    gap: 2.5rem;
    grid-template-columns: 1fr;
}

@media (max-width: 768px) {
    .site-header .container {
        flex-direction: column;
        align-items: flex-start;
    }

    .header-actions {
        width: 100%;
        order: 3;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .main-nav {
        width: 100%;
        order: 2;
    }

    .cta-btn {
        align-self: flex-end;
    }

    .hero-copy {
        grid-row: 1;
    }

    .hero-aside {
        grid-row: 2;
    }
}

.hero-aside {
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
}

.hero-copy {
    position: relative;
    background: linear-gradient(135deg, rgba(216, 31, 38, 0.1), rgba(255, 255, 255, 0.98) 38%, #ffffff 100%);
    padding: 2.75rem;
    border-radius: 1.5rem;
    box-shadow: 0 2.25rem 3.25rem rgba(8, 9, 10, 0.12);
    border: 1px solid rgba(8, 9, 10, 0.08);
    max-width: 980px;
    margin: 0 auto;
    overflow: hidden;
}

.hero-copy::after {
    content: "";
    position: absolute;
    top: -90px;
    right: -120px;
    width: 240px;
    height: 240px;
    background: radial-gradient(circle, rgba(216, 31, 38, 0.18), transparent 70%);
    pointer-events: none;
}

.hero-copy h1 {
    margin: 0 0 1rem;
    font-family: var(--font-heading);
    font-size: clamp(2.6rem, 4vw, 3.4rem);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1.12;
}

.hero-copy p {
    max-width: 60ch;
    font-size: 1.1rem;
    line-height: 1.65;
    color: #2b3038;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    background: rgba(216, 31, 38, 0.12);
    color: var(--color-primary-dark);
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.78rem;
}

.hero-benefits {
    list-style: none;
    padding: 0;
    margin: 1.25rem 0 1.75rem;
    display: grid;
    gap: 0.85rem;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    color: var(--color-text);
    font-weight: 600;
}

.hero-benefits li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 0.85rem;
    border: 1px solid rgba(216, 31, 38, 0.18);
    background: rgba(216, 31, 38, 0.07);
}

.hero-benefits li::before {
    content: "✓";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 999px;
    background: rgba(216, 31, 38, 0.18);
    color: var(--color-primary-dark);
    font-weight: 800;
    font-size: 0.9rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
    justify-content: flex-start;
}

.hero-flyer-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(220px, 1fr));
}

.hero-flyer-grid--single {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin: 0 auto;
}

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

.hero-flyer {
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 0 2.5rem 3.25rem rgba(8, 9, 10, 0.35);
    border: 1px solid rgba(8, 9, 10, 0.1);
    background: #0b0b0b;
}

.hero-flyer img {
    display: block;
    width: 100%;
    height: auto;
}

.hero-highlight {
    position: relative;
    padding: 2.5rem;
    background: linear-gradient(135deg, rgba(216, 31, 38, 0.95), rgba(8, 9, 10, 0.92));
    border-radius: 1.25rem;
    box-shadow: 0 2.75rem 3.5rem rgba(8, 9, 10, 0.35);
    color: white;
    overflow: hidden;
}

.hero-highlight::after {
    content: "";
    position: absolute;
    top: -30%;
    right: -20%;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.16), transparent 60%);
    transform: rotate(12deg);
    pointer-events: none;
}

.hero-highlight h2 {
    margin-top: 0.5rem;
    font-family: var(--font-heading);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.hero-highlight p,
.hero-highlight li {
    color: rgba(255, 255, 255, 0.88);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.75rem;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: white;
}

.hero-highlight ul {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 2rem;
    display: grid;
    gap: 0.85rem;
}

.hero-highlight li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
}

.hero-highlight li::before {
    content: "";
    display: inline-block;
    width: 0.85rem;
    height: 0.85rem;
    border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, 0.85);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.2);
}

.hero-highlight-btn {
    background-color: white;
    color: var(--color-primary) !important;
    font-weight: 700;
    box-shadow: 0 1.5rem 3rem rgba(255, 255, 255, 0.15);
    margin-top: 0.5rem;
}

    .hero-highlight-btn:hover,
    .hero-highlight-btn:focus {
        background-color: rgba(255, 255, 255, 0.85);
        color: var(--color-primary-dark) !important;
    }

.hero-highlight--open-enrollment {
    background: linear-gradient(135deg, #1e8650, #15653c);
}

.hero-highlight--open-enrollment::after {
    background: radial-gradient(circle, rgba(255, 255, 255, 0.12), transparent 60%);
}

.hero-highlight--open-enrollment .hero-badge {
    background: rgba(255, 255, 255, 0.15);
}

.hero-highlight--open-enrollment .hero-highlight-btn {
    color: #1e8650 !important;
}

.hero-highlight--open-enrollment .hero-highlight-btn:hover,
.hero-highlight--open-enrollment .hero-highlight-btn:focus {
    color: #15653c !important;
}

.hero-highlight__image {
    width: 100%;
    height: auto;
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.2);
}


.open-enrollment {
    padding: 4.5rem 0;
    background: radial-gradient(circle at top left, rgba(216, 31, 38, 0.12), transparent 55%),
                linear-gradient(160deg, #0f172a 0%, #05070c 100%);
    color: #fff;
}

.open-enrollment__wrap {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.75rem;
    align-items: center;
}

.open-enrollment__poster {
    display: flex;
    justify-content: center;
    align-items: center;
}

.open-enrollment__poster img {
    display: block;
    width: min(100%, 560px);
    border-radius: 1.5rem;
    box-shadow: 0 2.5rem 3.5rem rgba(8, 9, 10, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.open-enrollment__content {
    background: rgba(15, 23, 42, 0.78);
    padding: clamp(1.75rem, 3vw, 2.5rem);
    border-radius: 1.5rem;
    box-shadow: 0 2.25rem 3.25rem rgba(8, 9, 10, 0.35);
    backdrop-filter: blur(6px);
}

.open-enrollment__eyebrow {
    display: inline-flex;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-size: 0.85rem;
    margin: 0 0 1rem;
}

.open-enrollment__title {
    margin: 0 0 0.75rem;
    font-family: var(--font-heading);
    font-size: clamp(2.1rem, 3.8vw, 2.8rem);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.open-enrollment__lede {
    margin: 0 0 1.9rem;
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.05rem;
}

.open-enrollment__list {
    list-style: none;
    padding: 0;
    margin: 0 0 2.1rem;
    display: grid;
    gap: 0.9rem;
}

.open-enrollment__list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

.open-enrollment__list li::before {
    content: "";
    width: 0.9rem;
    height: 0.9rem;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.85);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.18);
}

.open-enrollment__cta {
    display: grid;
    gap: 0.75rem;
}

.open-enrollment__cta .cta-btn {
    justify-self: flex-start;
    background: #fff;
    color: #0f172a !important;
    box-shadow: 0 1.75rem 3rem rgba(255, 255, 255, 0.15);
    font-weight: 700;
}

.open-enrollment__cta .cta-btn:hover,
.open-enrollment__cta .cta-btn:focus {
    background: rgba(255, 255, 255, 0.88);
    color: #0f172a !important;
}

.open-enrollment__note {
    margin: 0;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 900px) {
    .open-enrollment__poster img {
        width: min(100%, 500px);
    }
}

@media (max-width: 768px) {
    .open-enrollment__content {
        text-align: center;
    }
    .open-enrollment__cta {
        justify-items: center;
    }
}

@media (max-width: 540px) {
    .open-enrollment {
        padding: 3.75rem 0;
    }
    .open-enrollment__content {
        padding: 1.5rem;
    }
}


.section {
    padding: 4.5rem 0;
}

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

.section-highlight {
    background: linear-gradient(135deg, rgba(216, 31, 38, 0.08), rgba(8, 9, 10, 0.75));
}

.section-header {
    text-align: center;
    max-width: 60ch;
    margin: 0 auto 3rem;
}

.section-header h2 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.card-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
    padding: 2rem;
    background-color: white;
    border-radius: 1rem;
    box-shadow: 0 1.5rem 3rem rgba(8, 9, 10, 0.1);
}

.card ul {
    padding-left: 1.1rem;
}

.profile-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.profile-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 2rem;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-card__media {
    margin: -2rem -2rem 0;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 1.25rem 2.5rem rgba(0, 0, 0, 0.28);
    background-color: rgba(8, 9, 10, 0.85);
}

.profile-card__photo {
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: center;
}

.profile-card__media--portrait .profile-card__photo {
    aspect-ratio: 3 / 4;
}

.profile-card__photo--fisher {
    object-position: 50% 18%;
}

.profile-card__photo--cain {
    object-position: 50% 18%;
}

.profile-card__photo--elle { object-position: 52% 18%; }
.profile-card__photo--jackson {
    object-position: 50% 35%;
    filter: contrast(1.04) saturate(1.02);
}
.profile-card__photo--fatima {
    object-position: 50% 28%;
}

.profile-card--no-photo {
    padding-top: 2.5rem;
}

.profile-title {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    margin-top: -0.25rem;
}

.media-highlight {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.media-highlight__video {
    width: min(100%, 720px);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 1.5rem 3rem rgba(8, 9, 10, 0.35);
    background-color: black;
}

.dojo-calendar {
    padding: 2rem;
    background: white;
    border-radius: 1.25rem;
    box-shadow: 0 1.5rem 3rem rgba(8, 9, 10, 0.12);
    display: grid;
    gap: 1.75rem;
}

.dojo-calendar__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.dojo-calendar__current {
    font-family: var(--font-heading);
    font-size: clamp(1.35rem, 2.5vw, 1.75rem);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dojo-calendar__nav {
    border: 1px solid rgba(8, 9, 10, 0.12);
    background: transparent;
    color: var(--color-dark);
    border-radius: 0.75rem;
    width: 3rem;
    height: 3rem;
    font-size: 1.75rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color var(--transition), border-color var(--transition), color var(--transition), transform var(--transition);
}

.dojo-calendar__nav:hover,
.dojo-calendar__nav:focus-visible {
    background-color: var(--color-primary);
    color: white;
    border-color: transparent;
    outline: none;
    transform: translateY(-1px);
}

.dojo-calendar__legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
    font-size: 0.85rem;
    color: var(--color-muted);
}

.dojo-calendar__legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dojo-calendar__legend-item::before {
    content: "";
    width: 0.85rem;
    height: 0.85rem;
    border-radius: 50%;
    background: var(--color-muted);
    box-shadow: 0 0 0 3px rgba(8, 9, 10, 0.04);
}

.dojo-calendar__legend-item--after-school::before {
    background: #f97316;
}

.dojo-calendar__legend-item--class::before {
    background: #2563eb;
}

.dojo-calendar__legend-item--leadership::before {
    background: #7c3aed;
}

.dojo-calendar__legend-item--event::before {
    background: #16a34a;
}

.dojo-calendar__legend-item--testing::before {
    background: #ef4444;
}

.dojo-calendar__legend-item--focus::before {
    background: #0ea5e9;
}

.dojo-calendar__legend-item--closure::before {
    background: #475569;
}

.dojo-calendar__grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.35rem;
    text-align: center;
}

.dojo-calendar__weekday {
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    padding-bottom: 0.5rem;
    color: var(--color-muted);
}

.dojo-calendar__day {
    position: relative;
    min-height: 4.2rem;
    border-radius: 1rem;
    border: 1px solid rgba(8, 9, 10, 0.08);
    background: rgba(255, 255, 255, 0.85);
    font-weight: 600;
    color: var(--color-dark);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 0.75rem;
    gap: 0.35rem;
    cursor: pointer;
    transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition), background-color var(--transition);
}

.dojo-calendar__day:hover,
.dojo-calendar__day:focus-visible {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0.5rem 1.25rem rgba(216, 31, 38, 0.12);
    transform: translateY(-1px);
}

.dojo-calendar__day.is-muted {
    color: rgba(8, 9, 10, 0.35);
    background: rgba(241, 245, 249, 0.6);
    cursor: default;
}

.dojo-calendar__day.is-muted:hover,
.dojo-calendar__day.is-muted:focus-visible {
    border-color: rgba(8, 9, 10, 0.08);
    box-shadow: none;
    transform: none;
}

.dojo-calendar__day.is-today {
    border-color: var(--color-primary);
}

.dojo-calendar__day.is-selected {
    background: linear-gradient(135deg, rgba(216, 31, 38, 0.1), rgba(216, 31, 38, 0.18));
    border-color: var(--color-primary);
    box-shadow: 0 1.25rem 2.5rem rgba(216, 31, 38, 0.12);
}

.dojo-calendar__date {
    font-size: 1rem;
}

.dojo-calendar__markers {
    display: flex;
    gap: 0.25rem;
    margin-top: auto;
}

.dojo-calendar__marker {
    width: 0.35rem;
    height: 0.35rem;
    border-radius: 50%;
}

.dojo-calendar__marker--after-school {
    background: #f97316;
}

.dojo-calendar__marker--class {
    background: #2563eb;
}

.dojo-calendar__marker--leadership {
    background: #7c3aed;
}

.dojo-calendar__marker--event {
    background: #16a34a;
}

.dojo-calendar__marker--testing {
    background: #ef4444;
}

.dojo-calendar__marker--focus {
    background: #0ea5e9;
}

.dojo-calendar__marker--closure {
    background: #475569;
}

.dojo-calendar__details {
    border-top: 1px solid rgba(8, 9, 10, 0.08);
    padding-top: 1.5rem;
}

.dojo-calendar__details-heading {
    margin: 0 0 0.75rem;
    font-family: var(--font-heading);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.95rem;
    color: var(--color-muted);
}

.dojo-calendar__events-list {
    display: grid;
    gap: 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.dojo-calendar__event {
    border-radius: 1rem;
    padding: 1rem 1.25rem;
    background: rgba(8, 9, 10, 0.04);
    border: 1px solid rgba(8, 9, 10, 0.08);
    display: grid;
    gap: 0.4rem;
}

.dojo-calendar__event-title {
    font-weight: 700;
    margin: 0;
}

.dojo-calendar__event-meta {
    font-size: 0.95rem;
    color: var(--color-muted);
    margin: 0;
}

.dojo-calendar__tag {
    justify-self: start;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
    background: rgba(8, 9, 10, 0.08);
    color: var(--color-dark);
}

.dojo-calendar__tag--after-school {
    background: rgba(249, 115, 22, 0.15);
    color: #f97316;
}

.dojo-calendar__tag--class {
    background: rgba(37, 99, 235, 0.15);
    color: #2563eb;
}

.dojo-calendar__tag--leadership {
    background: rgba(124, 58, 237, 0.15);
    color: #7c3aed;
}

.dojo-calendar__tag--event {
    background: rgba(22, 163, 74, 0.15);
    color: #16a34a;
}

.dojo-calendar__tag--testing {
    background: rgba(239, 68, 68, 0.18);
    color: #ef4444;
}

.dojo-calendar__tag--focus {
    background: rgba(14, 165, 233, 0.18);
    color: #0ea5e9;
}

.dojo-calendar__tag--closure {
    background: rgba(71, 85, 105, 0.18);
    color: #334155;
}

.dojo-calendar__empty {
    margin: 0;
    color: var(--color-muted);
}

.dojo-calendar__note {
    margin: 1.5rem 0 0;
    font-size: 0.9rem;
    color: var(--color-muted);
}

.highlight-grid {
    display: grid;
    gap: 2rem;
    align-items: start;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.highlight-card {
    background-color: var(--color-dark);
    color: white;
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: 0 1.5rem 3rem rgba(8, 9, 10, 0.2);
    text-align: center;
}

.pricing-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 1.5rem;
}

.pricing-list h3 {
    margin-bottom: 0.4rem;
    font-family: var(--font-heading);
}

.focus-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0b0c10, #1a0508);
    color: #f8f9fa;
    padding: 6rem 0;
}

.focus-section__bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top left, rgba(216, 31, 38, 0.5), transparent 58%),
        radial-gradient(circle at bottom right, rgba(216, 31, 38, 0.35), transparent 55%);
    opacity: 0.9;
    pointer-events: none;
}

.focus-section__content {
    position: relative;
    z-index: 1;
    max-width: 1080px;
}

.focus-section__header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 3.5rem;
    display: grid;
    gap: 1.1rem;
}

.focus-section__tagline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 1rem;
    border-radius: 999px;
    background: rgba(216, 31, 38, 0.2);
    color: #ff4658;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-size: 0.75rem;
}

.focus-section__header h2 {
    margin: 0;
    font-family: var(--font-heading);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    color: #ffffff;
}

.focus-section__header p {
    margin: 0;
    color: rgba(248, 249, 250, 0.7);
    font-size: 1.06rem;
}

.focus-section__pillars {
    display: grid;
    gap: 1.75rem;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    margin-bottom: 3.25rem;
}

.focus-pillar {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.1rem;
    align-items: start;
    background: linear-gradient(140deg, rgba(20, 7, 10, 0.95), rgba(54, 12, 16, 0.9));
    border-radius: 1.25rem;
    padding: 2rem 1.6rem;
    border: 1px solid rgba(255, 70, 88, 0.25);
    box-shadow: 0 1.9rem 3.1rem rgba(0, 0, 0, 0.45);
}

.focus-pillar__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 0.75rem;
    font-family: var(--font-heading);
    letter-spacing: 0.08em;
    font-weight: 700;
    background: linear-gradient(135deg, #ff3344, #d81f26);
    color: #ffffff;
    box-shadow: 0 1.1rem 2.4rem rgba(216, 31, 38, 0.35);
}

.focus-pillar h3 {
    margin: 0 0 0.5rem;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 1.2rem;
    color: #ffffff;
}

.focus-pillar p {
    margin: 0;
    color: rgba(248, 249, 250, 0.7);
    font-size: 0.98rem;
}

.focus-section__benefits {
    display: grid;
    gap: 1.75rem;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.focus-benefit {
    background: rgba(5, 6, 8, 0.92);
    border-radius: 1.1rem;
    padding: 2rem 1.8rem;
    border: 1px solid rgba(255, 51, 68, 0.18);
    box-shadow: 0 1.6rem 3.2rem rgba(0, 0, 0, 0.35);
    text-align: left;
}

.focus-benefit h4 {
    margin: 0 0 1rem;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 1rem;
    color: #ffffff;
    position: relative;
}

.focus-benefit h4::after {
    content: "";
    display: block;
    width: 56px;
    height: 3px;
    background: linear-gradient(135deg, #ff3344, #d81f26);
    margin-top: 0.45rem;
}

.focus-benefit p {
    margin: 0;
    color: rgba(248, 249, 250, 0.7);
    font-size: 0.98rem;
}

.testimonials .testimonial-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.testimonials blockquote {
    margin: 0 0 1rem;
    font-size: 1.05rem;
    font-style: italic;
}

.testimonial-grid figure {
    margin: 0;
    padding: 1.8rem;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-section {
    background-color: #ffffff;
}

.contact-grid {
    display: grid;
    gap: 2.5rem;
    align-items: start;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.contact-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    display: grid;
    gap: 0.75rem;
}

.contact-note {
    color: var(--color-muted);
}

.contact-form {
    display: grid;
    gap: 0.85rem;
    padding: 2rem;
    background-color: white;
    border-radius: 1rem;
    box-shadow: 0 1.5rem 3rem rgba(8, 9, 10, 0.08);
}

.contact-form label {
    font-weight: 600;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(8, 9, 10, 0.12);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(216, 31, 38, 0.15);
    outline: none;
}

.contact-form button {
    margin-top: 0.5rem;
}

.form-status {
    margin: 0.75rem 0 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-primary);
    min-height: 1.2rem;
}

.form-status.is-progress {
    color: rgba(8, 9, 10, 0.65);
}

.parent-group-section {
    background: linear-gradient(135deg, rgba(216, 31, 38, 0.08), rgba(8, 9, 10, 0.02));
}

.group-grid {
    display: grid;
    gap: 2.5rem;
    align-items: start;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.group-card {
    background: #fff;
    border-radius: 1rem;
    padding: 2rem;
    border: 1px solid rgba(8, 9, 10, 0.08);
    box-shadow: 0 1.5rem 3rem rgba(8, 9, 10, 0.08);
    display: grid;
    gap: 1.25rem;
}

.group-card--light {
    background: #fdf7f7;
}

.group-benefits {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.5rem;
}

.group-benefits li::before {
    content: "• ";
    color: var(--color-primary);
    font-weight: 700;
}

.group-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.group-note {
    color: var(--color-muted);
    margin: 0;
}

.group-form {
    display: grid;
    gap: 0.85rem;
}

.group-form label {
    font-weight: 600;
}

.group-form input,
.group-form textarea {
    width: 100%;
    padding: 0.75rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(8, 9, 10, 0.12);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.group-form input:focus,
.group-form textarea:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(216, 31, 38, 0.15);
    outline: none;
}

.site-footer {
    background-color: var(--color-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 3rem 0 2rem;
    font-size: 0.95rem;
}

.footer-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.footer-grid h3 {
    font-family: var(--font-heading);
    letter-spacing: 0.08em;
}

.footer-grid ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
    display: grid;
    gap: 0.5rem;
}

.footer-note {
    text-align: center;
    margin: 2rem 0 0;
    color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 840px) {
    .site-header .container {
        flex-wrap: wrap;
        gap: 1rem;
        justify-content: center;
    }

    .sound-toggle {
        order: 4;
        width: 100%;
        max-width: 15rem;
        justify-content: center;
        margin-left: 0;
        margin-top: 0.25rem;
    }

    .main-nav ul {
        flex-direction: column;
        background-color: rgba(8, 9, 10, 0.95);
        position: absolute;
        top: 110%;
        right: 0;
        padding: 1.25rem;
        border-radius: 0.75rem;
        box-shadow: 0 1.5rem 3rem rgba(8, 9, 10, 0.35);
        display: none;
    }

    .main-nav ul.active {
        display: flex;
    }

    .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
    }

    .card-grid,
    .profile-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .card,
    .profile-card {
        padding: 1.65rem;
    }

    .profile-card__media {
        margin: -1.5rem -1.5rem 0;
    }

    .dojo-calendar {
        padding: 1.5rem;
    }

    .dojo-calendar__legend {
        gap: 0.5rem 1rem;
    }
}

@media (max-width: 600px) {
    .container {
        width: min(100% - 2rem, var(--max-width));
    }

    .hero {
        padding-top: 6rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-highlight {
        padding: 1.5rem; /* Reduced padding for smaller screens */
    }

    .hero-highlight h2 {
        font-size: 1.8rem; /* Adjusted font size for smaller screens */
    }

    .hero-highlight p,
    .hero-highlight li {
        font-size: 0.95rem; /* Adjusted font size for smaller screens */
    }

    .hero-copy {
        padding: 2rem;
    }

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

    .card,
    .profile-card {
        padding: 1.5rem;
    }

    .profile-card__media {
        margin: 0;
    }

    .sound-toggle {
        margin-top: 0.5rem;
    }

    .dojo-calendar {
        padding: 1.25rem;
        gap: 1.25rem;
    }

    .dojo-calendar__header {
        flex-direction: column;
        align-items: stretch;
    }

    .dojo-calendar__grid {
        gap: 0.25rem;
    }

    .dojo-calendar__day {
        min-height: 3.6rem;
        padding: 0.65rem;
    }

    .dojo-calendar__legend {
        justify-content: center;
    }

    .dojo-calendar__details {
        padding-top: 1rem;
    }

    .dojo-calendar__events-list {
        gap: 0.75rem;
    }
}

@media (max-width: 720px) {
    .floating-cta {
        display: inline-flex;
        right: auto;
        left: 1.25rem;
    }
}

/* Student Portal */
.student-portal {
    background-color: #fff;
}

.section-heading {
    max-width: 720px;
    margin: 0 auto 2.5rem;
    text-align: center;
}

.section-heading h2 {
    margin-top: 0.35rem;
    margin-bottom: 0.85rem;
}

.section-heading p {
    margin: 0 auto;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    background: rgba(8, 9, 10, 0.06);
    color: rgba(8, 9, 10, 0.65);
}

.portal-highlights {
    background: linear-gradient(135deg, rgba(3, 11, 27, 0.96), rgba(14, 58, 126, 0.92));
    color: #fff;
    position: relative;
    overflow: hidden;
}

.portal-highlights::before,
.portal-highlights::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.35;
}

.portal-highlights::before {
    width: 240px;
    height: 240px;
    background: rgba(56, 189, 248, 0.25);
    top: 5%;
    left: -10%;
}

.portal-highlights::after {
    width: 300px;
    height: 300px;
    background: rgba(245, 158, 11, 0.25);
    bottom: -15%;
    right: -5%;
}

.portal-highlights .section-heading p {
    color: rgba(255, 255, 255, 0.75);
}

.highlight-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.75rem;
}

.highlight-card {
    position: relative;
    z-index: 1;
    background: rgba(8, 9, 10, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 1.25rem;
    padding: 2rem;
    box-shadow: 0 28px 56px rgba(3, 11, 27, 0.45);
    backdrop-filter: blur(12px);
}

.highlight-card h3 {
    margin-top: 0;
    font-family: var(--font-heading);
    font-size: 1.35rem;
    letter-spacing: 0.01em;
}

.highlight-card p {
    margin-bottom: 1.25rem;
    color: rgba(255, 255, 255, 0.75);
}

.highlight-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.highlight-list li {
    position: relative;
    padding-left: 1.35rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.92);
}

.highlight-list li::before {
    content: ">";
    position: absolute;
    left: 0.35rem;
    color: rgba(245, 158, 11, 0.9);
    font-size: 1rem;
}

.portal-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.portal-card {
    background: var(--color-light);
    border-radius: 1rem;
    padding: 2rem;
    border: 1px solid rgba(8, 9, 10, 0.08);
    box-shadow: 0 12px 24px rgba(8, 9, 10, 0.08);
}

.portal-card h3 {
    margin-top: 0;
    margin-bottom: 0.8rem;
}

.portal-card ul {
    padding-left: 1.2rem;
    margin: 0 0 1rem;
}

.portal-card li {
    margin-bottom: 0.35rem;
}

.form-status.is-success {
    color: #1e8650;
}

.portal-hint,
.portal-note {
    font-size: 0.9rem;
    color: var(--color-muted);
    margin-top: 0;
}

.portal-note {
    margin-bottom: 0;
}

.portal-placeholder {
    margin-top: 2rem;
    padding: 1.5rem;
    text-align: center;
    border-radius: 0.85rem;
    border: 1px dashed rgba(8, 9, 10, 0.2);
    color: var(--color-muted);
}

.portal-app {
    margin-top: 2.5rem;
}

.portal-readiness-grid {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.readiness-card,
.belt-test-card {
    background: #fff;
    border-radius: 1.25rem;
    border: 1px solid rgba(8, 9, 10, 0.08);
    box-shadow: 0 12px 24px rgba(8, 9, 10, 0.08);
}

.readiness-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.readiness-target {
    margin: 0;
    font-size: 0.95rem;
    color: var(--color-muted);
}

.readiness-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem 0.85rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: rgba(8, 9, 10, 0.08);
    color: rgba(8, 9, 10, 0.7);
}

.readiness-pill.is-ready {
    background: rgba(30, 134, 80, 0.15);
    color: #1e8650;
}

.readiness-pill.is-missing {
    background: rgba(216, 31, 38, 0.15);
    color: var(--color-primary);
}

.readiness-form {
    display: grid;
    gap: 0.85rem;
}

.readiness-form input[type="number"] {
    border-radius: 0.75rem;
    border: 1px solid rgba(8, 9, 10, 0.12);
    padding: 0.75rem;
    font-size: 1rem;
    font-family: inherit;
}

.readiness-form input[type="number"]:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(216, 31, 38, 0.15);
    outline: none;
}

.stripe-checklist {
    border: 1px solid rgba(8, 9, 10, 0.08);
    border-radius: 1rem;
    padding: 1rem 1.25rem;
    display: grid;
    gap: 0.45rem;
}

.stripe-checklist legend {
    font-weight: 700;
    padding: 0 0.35rem;
    color: rgba(8, 9, 10, 0.7);
}

.stripe-checklist label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.stripe-checklist input[type="checkbox"] {
    width: 1.1rem;
    height: 1.1rem;
}

.readiness-summary {
    margin-top: 1.5rem;
    border-top: 1px solid rgba(8, 9, 10, 0.08);
    padding-top: 1.25rem;
}

.readiness-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.95rem;
}

.readiness-metrics strong {
    color: rgba(8, 9, 10, 0.7);
}

.readiness-checklist {
    list-style: none;
    margin: 1rem 0;
    padding: 0;
    display: grid;
    gap: 0.65rem;
}

.readiness-checklist li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1rem;
    border-radius: 0.9rem;
    border: 1px solid rgba(8, 9, 10, 0.08);
    background: rgba(8, 9, 10, 0.02);
    font-weight: 600;
}

.readiness-checklist .readiness-pill {
    margin-left: 1rem;
}

.readiness-note {
    font-size: 0.9rem;
    color: rgba(8, 9, 10, 0.7);
    margin: 0.75rem 0 0;
}

.readiness-attendance {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 1rem;
    border: 1px solid rgba(8, 9, 10, 0.08);
    background: rgba(8, 9, 10, 0.02);
    font-size: 0.9rem;
    color: rgba(8, 9, 10, 0.8);
}

.readiness-attendance ul {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0;
    display: grid;
    gap: 0.35rem;
}

.readiness-attendance li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.readiness-download {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-left: 0.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-primary);
}

.readiness-download::after {
    content: "⇩";
    font-size: 1rem;
}

.belt-test-card .cta-btn[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}

.belt-test-card .belt-test-form {
    margin-top: 1.25rem;
}

.belt-test-hint {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-muted);
    min-height: 1.4rem;
}

.portal-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: #fff;
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid rgba(8, 9, 10, 0.08);
    box-shadow: 0 10px 20px rgba(8, 9, 10, 0.08);
}

.portal-student-name {
    font-size: 1.5rem;
    margin: 0;
}

.portal-student-meta {
    margin: 0.25rem 0 0;
    font-size: 0.95rem;
    color: var(--color-muted);
}

.toolbar-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.text-link-btn {
    background: none;
    border: none;
    color: var(--color-primary);
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
}

.text-link-btn:hover,
.text-link-btn:focus {
    color: var(--color-primary-dark);
}

.text-link-btn.is-danger {
    color: #b91c1c;
}

.text-link-btn.is-danger:hover,
.text-link-btn.is-danger:focus {
    color: #7f1d1d;
}

.belt-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.belt-card {
    background: #fff;
    border-radius: 1rem;
    border: 1px solid rgba(8, 9, 10, 0.08);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    box-shadow: 0 16px 30px rgba(8, 9, 10, 0.08);
    border-left: 4px solid var(--color-primary);
}

.belt-card:not(.locked) {
    border-left-color: var(--color-primary);
}

.belt-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.belt-card.locked {
    opacity: 0.55;
    border-left-color: rgba(8, 9, 10, 0.2);
}

.belt-card h4 {
    margin: 0;
    font-family: var(--font-heading);
    font-size: 1.25rem;
}

.belt-card__image {
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 155px;
    padding: 0.35rem 0.65rem;
    margin: 0.65rem 0 0.35rem;
    border-radius: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.25);
    object-fit: contain;
    background: radial-gradient(circle at top, rgba(255, 255, 255, 0.08), transparent 65%), #010101;
    box-shadow: inset 0 1px 6px rgba(255, 255, 255, 0.1), 0 10px 20px rgba(0, 0, 0, 0.15);
    display: block;
}

.belt-card.locked .belt-card__image {
    filter: grayscale(0.8);
    opacity: 0.75;
}

.belt-card p {
    margin: 0;
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    letter-spacing: 0.06em;
}

.badge-unlocked {
    background: rgba(30, 180, 90, 0.15);
    color: #1e8650;
}

.badge-locked {
    background: rgba(8, 9, 10, 0.08);
    color: rgba(8, 9, 10, 0.7);
}

.badge-awaiting {
    background: rgba(216, 31, 38, 0.15);
    color: var(--color-primary);
}

.resource-links {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.resource-links .secondary-btn {
    width: 100%;
}

.resource-links a[aria-disabled="true"] {
    pointer-events: none;
    opacity: 0.45;
}

.certificate-action {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.certificate-status {
    font-size: 0.9rem;
    color: var(--color-muted);
}

.portal-support {
    margin-top: 3rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.75rem;
}

.support-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.75));
    border-radius: 1.25rem;
    padding: 2rem;
    border: 1px solid rgba(8, 9, 10, 0.08);
    box-shadow: 0 20px 32px rgba(8, 9, 10, 0.08);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.support-card h4 {
    margin: 0;
    font-size: 1.25rem;
}

.support-card__lead {
    margin: 0;
    color: var(--color-muted);
}

.support-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.support-list {
    margin: 0;
    padding-left: 1.2rem;
    color: var(--color-muted);
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.portal-resources {
    background: var(--color-light);
}

.resource-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.75rem;
}

.resource-card {
    background: #fff;
    border-radius: 1.25rem;
    padding: 2rem;
    border: 1px solid rgba(8, 9, 10, 0.08);
    box-shadow: 0 22px 36px rgba(8, 9, 10, 0.08);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.resource-card h3 {
    margin: 0;
    font-size: 1.2rem;
}

.resource-card p {
    margin: 0;
    color: var(--color-muted);
}

.portal-calendar-section {
    background: var(--color-light);
}

.portal-calendar {
    background: var(--color-light);
}

.portal-calendar__actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.portal-calendar__header {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.portal-calendar__note {
    margin: 0 auto 1.5rem;
    max-width: 640px;
    text-align: center;
    font-weight: 600;
    color: var(--color-primary);
}

.portal-calendar__header .portal-calendar__note {
    margin: 0;
    text-align: left;
}

.portal-calendar__table-wrap {
    overflow-x: auto;
    border-radius: 1.25rem;
    border: 1px solid rgba(8, 9, 10, 0.1);
    box-shadow: 0 18px 32px rgba(8, 9, 10, 0.08);
    background: #fff;
}

.portal-calendar__table {
    width: 100%;
    border-collapse: collapse;
    min-width: 900px;
    font-size: 0.95rem;
}

.portal-calendar__table th,
.portal-calendar__table td {
    border: 1px solid rgba(8, 9, 10, 0.08);
    padding: 0.85rem 0.9rem;
    text-align: center;
    vertical-align: top;
}

.portal-calendar__table tbody td[colspan] {
    text-align: center;
    font-weight: 600;
    padding: 1.5rem;
    font-size: 1rem;
    text-transform: none;
    letter-spacing: normal;
}

.portal-calendar__table thead th {
    background: rgba(8, 9, 10, 0.04);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.portal-calendar__table tbody th {
    text-align: left;
    background: rgba(216, 31, 38, 0.08);
    font-size: 0.92rem;
    white-space: nowrap;
    vertical-align: top;
    padding-right: 1rem;
}

.week-label {
    display: block;
    font-weight: 700;
}

.calendar-stale-badge {
    display: inline-block;
    margin-left: 0.55rem;
    font-size: 0.55em;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #8a6d1a;
    background: rgba(201, 162, 39, 0.16);
    border: 1px solid rgba(201, 162, 39, 0.45);
    border-radius: 999px;
    padding: 0.18rem 0.65rem;
    vertical-align: middle;
    white-space: nowrap;
}

.is-stale-month {
    font-size: 0.85em;
}

.week-focus {
    display: block;
    font-size: 0.8rem;
    color: rgba(8, 9, 10, 0.7);
    margin-top: 0.2rem;
}

.calendar-week-row {
    background: #fff;
}

.calendar-week-row--focus th {
    border-right: 1px solid rgba(8, 9, 10, 0.08);
}

.calendar-week-focus {
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.85rem 1rem;
    font-size: 0.9rem;
}

.calendar-week-row--theme-poomsae .calendar-week-focus {
    background: #dbe6ff;
    color: #0f172a;
}

.calendar-week-row--theme-sparring .calendar-week-focus {
    background: #ffe7d5;
    color: #5f1a00;
}

.calendar-week-row--theme-breaking .calendar-week-focus {
    background: #f9d9f8;
    color: #5d0a4a;
}

.calendar-week-row--theme-default .calendar-week-focus {
    background: #f0f4f8;
    color: #0f172a;
}

.calendar-week-note {
    background: #fff8cc;
    color: #4c4100;
    font-size: 0.85rem;
    line-height: 1.5;
    padding: 1rem;
    border-left: 1px solid rgba(8, 9, 10, 0.08);
    width: 240px;
}

.calendar-week-note.is-empty {
    background: #f6f7f9;
    color: rgba(8, 9, 10, 0.45);
}

.calendar-week-row--days td {
    background: #fff;
    padding: 1rem;
    vertical-align: top;
}

.calendar-day {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    align-items: flex-start;
    min-height: 4.5rem;
}

.day-number {
    display: block;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.04em;
}

.day-number.is-muted {
    color: rgba(8, 9, 10, 0.45);
}

.day-event {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.8rem;
    line-height: 1.35;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.day-event--closed {
    color: var(--color-primary);
    font-weight: 700;
}

.day-event--test {
    color: #8b5cf6;
    font-weight: 700;
}

.day-event--highlight {
    color: #0f172a;
    font-weight: 700;
}

.day-event--gear {
    color: #0d9488;
    font-weight: 700;
}

.day-event--empty {
    color: rgba(8, 9, 10, 0.4);
}

.portal-calendar__footnotes {
    margin: 1.75rem auto 0;
    max-width: 680px;
    list-style: none;
    padding: 0;
    display: grid;
    gap: 0.35rem;
    font-size: 0.85rem;
    color: rgba(8, 9, 10, 0.7);
}

.portal-calendar__footnotes strong {
    color: rgba(8, 9, 10, 0.9);
}

.portal-calendar__footnotes .abbr-note {
    display: inline-block;
    margin-left: 0.25rem;
}

.schedule-month-label {
    font-weight: 700;
    color: var(--color-primary);
    margin: 0.5rem 0 1.5rem;
    font-size: 1.05rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.portal-admin {
    background: #fff;
}

.admin-panel {
    display: grid;
    grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
    gap: 2rem;
    align-items: flex-start;
}

.admin-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    z-index: 999;
}

.admin-modal[hidden] {
    display: none;
}

.admin-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(7, 9, 12, 0.65);
    backdrop-filter: blur(6px);
}

.admin-modal__panel {
    position: relative;
    width: min(1180px, 100%);
    max-height: 92vh;
    overflow-y: auto;
    border-radius: 1.5rem;
    background: #fff;
    padding: 2.5rem;
    box-shadow: 0 2.5rem 4rem rgba(8, 9, 10, 0.32);
    z-index: 1;
}

.admin-modal__close {
    position: absolute;
    top: 1.25rem;
    right: 1.5rem;
    font-weight: 700;
}

body.admin-modal-open {
    overflow: hidden;
}

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

    .admin-modal__panel {
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .instructor-access__inner {
        flex-direction: column;
        text-align: center;
    }
}

.admin-auth {
    display: grid;
    gap: 0.9rem;
    padding: 1.25rem 1.5rem;
    border-radius: 0.9rem;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 16px 28px rgba(0, 0, 0, 0.08);
    background: #fff;
    max-width: 460px;
    width: min(95%, 520px);
    margin: 0 auto;
}

.admin-auth label {
    font-weight: 600;
}

.admin-auth input {
    padding: 0.5rem;
    border-radius: 0.6rem;
    border: 1px solid rgba(8, 9, 10, 0.12);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.admin-auth input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(216, 31, 38, 0.15);
    outline: none;
}

.admin-auth .cta-btn {
    margin-top: 1rem;
    padding: 0.7rem 1rem;
}

.admin-key-field {
    display: grid;
    gap: 0.4rem;
}

.admin-key-note {
    font-size: 0.85rem;
    color: rgba(8, 9, 10, 0.55);
    margin: 0;
}

.admin-dashboard {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.admin-dashboard.is-expanded {
    grid-template-columns: minmax(0, 1fr);
}

.admin-summary,
.admin-events {
    background: var(--color-light);
    border-radius: 1.25rem;
    padding: 1.75rem;
    border: 1px solid rgba(8, 9, 10, 0.08);
    box-shadow: 0 16px 28px rgba(8, 9, 10, 0.08);
    margin-bottom: 1rem;
}

.admin-attendance {
    background: var(--color-light);
    border-radius: 1.25rem;
    padding: 1.75rem;
    border: 1px solid rgba(8, 9, 10, 0.08);
    box-shadow: 0 16px 28px rgba(8, 9, 10, 0.08);
    margin-bottom: 1rem;
}

.admin-enroll {
    background: var(--color-light);
    border-radius: 1.25rem;
    padding: 1.75rem;
    border: 1px solid rgba(8, 9, 10, 0.08);
    box-shadow: 0 16px 28px rgba(8, 9, 10, 0.08);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 1rem;
}

.admin-enroll__form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.admin-enroll__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.admin-enroll__grid label {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.95rem;
    font-weight: 600;
}

.admin-enroll__grid input,
.admin-enroll__grid select {
    width: 100%;
    padding: 0.7rem 0.85rem;
    border-radius: 0.65rem;
    border: 1px solid rgba(8, 9, 10, 0.15);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.admin-enroll__grid input:focus,
.admin-enroll__grid select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(216, 31, 38, 0.15);
}

.admin-enroll__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}

.admin-enroll__result {
    border-radius: 1rem;
    border: 1px dashed rgba(8, 9, 10, 0.2);
    padding: 1.25rem;
    background: rgba(216, 31, 38, 0.04);
}

.admin-enroll__result-title {
    margin: 0 0 0.65rem;
    font-weight: 700;
}

.admin-enroll__result-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.65rem;
}

.admin-enroll__detail {
    background: #fff;
    border-radius: 0.85rem;
    padding: 0.85rem;
    border: 1px solid rgba(8, 9, 10, 0.08);
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.admin-enroll__detail span {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(8, 9, 10, 0.55);
}

.admin-enroll__detail strong {
    font-size: 1rem;
}

.admin-roster-detail {
    margin-top: 1.25rem;
    padding: 1.25rem;
    border: 1px solid rgba(8, 9, 10, 0.08);
    border-radius: 1rem;
    background: rgba(8, 9, 10, 0.02);
    display: grid;
    gap: 1rem;
}

.admin-roster-detail__head {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
    align-items: flex-end;
}

.admin-roster-detail__label {
    margin: 0;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(8, 9, 10, 0.6);
}

.admin-roster-detail__name {
    margin: 0.1rem 0;
    font-size: 1.2rem;
    font-weight: 700;
}

.admin-roster-detail__meta {
    margin: 0;
    color: rgba(8, 9, 10, 0.7);
}

.admin-roster-detail__membership label {
    display: block;
    margin-bottom: 0.35rem;
    font-weight: 600;
}

.admin-roster-detail__membership select {
    min-width: 220px;
    padding: 0.65rem 0.75rem;
    border-radius: 0.65rem;
    border: 1px solid rgba(8, 9, 10, 0.15);
    margin-right: 0.5rem;
}

.admin-roster-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.admin-attendance-adjust {
    border: 1px solid rgba(8, 9, 10, 0.08);
    border-radius: 0.9rem;
    background: #fff;
    padding: 1rem;
}

.admin-attendance-adjust__intro {
    margin-bottom: 0.85rem;
}

.admin-attendance-adjust__title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.admin-attendance-adjust__copy {
    margin: 0.25rem 0 0;
    color: rgba(8, 9, 10, 0.65);
    font-size: 0.9rem;
}

.admin-attendance-adjust__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.85rem;
}

.admin-attendance-adjust__grid label {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.92rem;
    font-weight: 600;
}

.admin-attendance-adjust__grid label small {
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(8, 9, 10, 0.55);
}

.admin-attendance-adjust__grid input,
.admin-attendance-adjust__grid select {
    width: 100%;
    padding: 0.75rem 0.85rem;
    border-radius: 0.7rem;
    border: 1px solid rgba(8, 9, 10, 0.14);
    font-family: inherit;
    font-size: 0.98rem;
    background: #fff;
}

.admin-attendance-adjust__grid input:focus,
.admin-attendance-adjust__grid select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(216, 31, 38, 0.14);
}

.admin-attendance-adjust__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem;
    margin-top: 0.95rem;
}

.admin-attendance-adjust__actions .secondary-btn,
.admin-attendance-adjust__actions .text-link-btn {
    min-width: 140px;
}

.admin-attendance-adjust__actions .form-status {
    margin: 0;
    flex: 1 1 220px;
}

.admin-roster-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.75rem;
}

.admin-roster-card {
    background: #fff;
    border-radius: 0.85rem;
    border: 1px solid rgba(8, 9, 10, 0.08);
    padding: 0.75rem;
    box-shadow: 0 8px 16px rgba(8, 9, 10, 0.05);
}

.admin-roster-card .card-label {
    margin: 0;
    font-size: 0.85rem;
    color: rgba(8, 9, 10, 0.6);
}

.admin-roster-card .card-value {
    margin: 0.2rem 0 0;
    font-weight: 700;
    font-size: 1.1rem;
}

.admin-accordion {
    border: 1px solid rgba(8, 9, 10, 0.08);
    border-radius: 0.8rem;
    padding: 0.75rem 1rem;
    background: #fff;
}

.admin-accordion summary {
    cursor: pointer;
    font-weight: 700;
}

.admin-accordion__hint {
    margin: 0.5rem 0 0;
    color: rgba(8, 9, 10, 0.7);
}

.admin-roster-notes__meta {
    font-size: 0.8rem;
    color: rgba(8, 9, 10, 0.6);
}

@media (max-width: 768px) {
    .section {
        padding: 2rem 1rem;
    }
    header.site-header,
    .main-nav {
        position: relative;
        z-index: 10;
    }
    .main-nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.35rem;
        flex-wrap: wrap;
        min-width: 200px;
    }
    .site-header .container {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    .hero .container,
    .hero-content {
        grid-template-columns: 1fr !important;
        text-align: left;
    }
    .hero .cta-btn {
        width: 100%;
        text-align: center;
    }
    .hero {
        padding-top: 6rem !important;
    }
    .hero-content {
        grid-template-columns: 1fr !important;
    }
    .cta-btn,
    .secondary-btn {
        width: 100%;
        text-align: center;
    }
    .highlight-card,
    .resource-card,
    .portal-card,
    .faq-item,
    .admin-card,
    .admin-summary,
    .admin-events,
    .admin-attendance,
    .admin-enroll {
        padding: 1.25rem;
    }
    .admin-table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .lang-toggle {
        width: 100%;
        justify-content: flex-start;
    }
    .admin-trigger {
        width: 44px;
        height: 44px;
        right: 4px;
        bottom: 4px;
    }
}
.admin-summary h3,
.admin-events h3,
.admin-attendance h3 {
    margin-top: 0;
    margin-bottom: 1rem;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.admin-table th,
.admin-table td {
    border: 1px solid rgba(8, 9, 10, 0.08);
    padding: 0.75rem 0.85rem;
    text-align: left;
}

.admin-table th {
    background: rgba(8, 9, 10, 0.04);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
}

.admin-event-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.75rem;
}

.admin-event-list li {
    padding: 0.85rem 1rem;
    border-radius: 0.9rem;
    background: #fff;
    border: 1px solid rgba(8, 9, 10, 0.08);
    box-shadow: 0 10px 20px rgba(8, 9, 10, 0.06);
    font-size: 0.95rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.admin-event-meta {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(8, 9, 10, 0.55);
}

.admin-summary__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.35rem;
}

.admin-summary__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-end;
}

.admin-generated {
    font-size: 0.85rem;
    color: rgba(8, 9, 10, 0.6);
    margin: 0 0 1rem;
}

.admin-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.admin-status-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.65rem;
    border-radius: 999px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.admin-status-pill.is-active {
    background: rgba(23, 162, 184, 0.15);
    color: rgb(23, 102, 138);
}

.admin-status-pill.is-suspended {
    background: rgba(220, 53, 69, 0.15);
    color: rgb(161, 46, 62);
}

.admin-row-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.admin-row-actions button {
    font-size: 0.8rem;
    padding: 0.35rem 0.65rem;
}

.admin-roster-row.is-selected {
    background: rgba(229, 243, 252, 0.55);
}

.admin-report-card {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    z-index: 999;
}

.admin-report-card[hidden] {
    display: none;
}

.admin-report-card__dialog {
    background: #fff;
    border-radius: 1.5rem;
    max-width: 960px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2rem;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

body[data-admin-panel-view="report"] .admin-report-card {
    align-items: stretch;
    justify-content: stretch;
    padding: 0;
}

body[data-admin-panel-view="report"] .admin-report-card__dialog {
    max-width: 100%;
    width: 100%;
    max-height: 100%;
    height: 100%;
    border-radius: 0;
    padding: 2.5rem 3rem;
}

.admin-report-card__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: rgba(8, 9, 10, 0.65);
}

.report-card-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

.report-card-section {
    margin-bottom: 1.25rem;
}

.report-card-section h4 {
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.85rem;
    color: rgba(8, 9, 10, 0.65);
}

.portal-reminders {
    background: #fff;
}

.reminder-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}

.reminder-card {
    background: #fff;
    border-radius: 1.25rem;
    border: 1px solid rgba(8, 9, 10, 0.08);
    box-shadow: 0 18px 32px rgba(8, 9, 10, 0.08);
    display: grid;
    grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
    gap: 1.25rem;
    padding: 1.5rem;
    align-items: center;
}

.reminder-card img {
    width: 100%;
    border-radius: 0.85rem;
    box-shadow: 0 8px 20px rgba(8, 9, 10, 0.15);
    object-fit: cover;
}

.reminder-card__content h3 {
    margin: 0 0 0.5rem;
    font-size: 1.2rem;
}

.reminder-card__content p {
    margin: 0 0 1rem;
    color: var(--color-muted);
}

.portal-faq {
    background: linear-gradient(135deg, rgba(3, 11, 27, 0.96), rgba(15, 70, 135, 0.92));
    color: #fff;
}

.portal-faq .section-heading p {
    color: rgba(255, 255, 255, 0.75);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}

.faq-item {
    background: rgba(8, 9, 10, 0.55);
    border-radius: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 1.75rem;
    box-shadow: 0 28px 56px rgba(3, 11, 27, 0.45);
}

.faq-item summary {
    font-weight: 600;
    font-size: 1.05rem;
    cursor: pointer;
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";
    float: right;
    transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-item p {
    margin-top: 1rem;
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.75);
}

.instructor-access {
    background: #fff;
    padding: 3rem 0;
}

.instructor-access__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.75rem 2rem;
    border-radius: 1.25rem;
    border: 1px solid rgba(8, 9, 10, 0.08);
    box-shadow: 0 16px 30px rgba(8, 9, 10, 0.08);
    background: var(--color-light);
}

.admin-launcher {
    border: none;
    border-radius: 999px;
    padding: 0.9rem 2rem;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(120deg, var(--color-primary), #8b0c14);
    box-shadow: 0 1rem 2rem rgba(216, 31, 38, 0.25);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.admin-launcher:hover {
    transform: translateY(-2px);
    box-shadow: 0 1.25rem 2.25rem rgba(216, 31, 38, 0.32);
}

.faq-item a {
    color: #8dd4ff;
}


.winter-games {
    padding: 4rem 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(2, 6, 23, 0.92));
    color: #fff;
    position: relative;
    overflow: hidden;
}

.winter-games::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), transparent 65%), linear-gradient(-135deg, rgba(56, 189, 248, 0.08), transparent 65%);
    opacity: 0.08;
    pointer-events: none;
}

.winter-games__wrap {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.25rem;
    z-index: 1;
}

.winter-games__poster-gallery {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
}

.winter-games__content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
    align-items: center;
    width: min(100%, 960px);
}

.winter-games__eyebrow {
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.75);
    margin: 0;
}

.winter-games__title {
    font-size: clamp(2.25rem, 4vw, 3rem);
    margin: 0;
    line-height: 1.1;
}

.winter-games__tagline {
    margin: 0;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 215, 0, 0.9);
}

.winter-games__lede {
    margin: 0;
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.88);
}

.winter-games__details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    margin: 0;
    width: 100%;
}

.winter-games__details dt {
    font-size: 0.85rem; /* Increased font size for better readability */
    letter-spacing: 0.15em; /* Adjusted letter spacing */
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75); /* Slightly brighter color */
    font-weight: 700; /* Made bolder */
}

.winter-games__details dd {
    margin: 0.35rem 0 0;
    font-weight: 700; /* Made bolder */
    font-size: 1.1rem; /* Increased font size for prominence */
    color: #fff; /* Ensured white color for strong contrast */
}

.winter-games__divisions {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.5rem;
    width: 100%;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.winter-games__divisions li {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.6);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
    font-weight: 600;
    font-size: 0.95rem;
}

.winter-games__divisions li::before {
    content: "•";
    color: rgba(255, 215, 0, 0.9);
    font-size: 1.2rem;
}

.winter-games__cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.5rem;
    justify-content: center;
}

.winter-games__cta {
    background: linear-gradient(135deg, #facc15, #f97316);
    border: none;
    color: #0f172a;
}

.winter-games__register {
    background: linear-gradient(135deg, #38bdf8, #8b5cf6);
    border: none;
    color: #0f172a;
}

.winter-games__secondary {
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
}

.winter-games__secondary:hover,
.winter-games__secondary:focus {
    border-color: rgba(255, 255, 255, 0.9);
    color: #fff;
}

.winter-games__footnote {
    margin: 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

.winter-games__poster {
    position: relative;
    border-radius: 0.75rem;
    border: none;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.35);
    background: none;
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
}

.winter-games__poster img {
    display: block;
    width: 100%;
    height: auto;
}

.winter-games__mission {
    background: rgba(15, 23, 42, 0.65);
    border-radius: 1.5rem;
    padding: 1.75rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.35);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: min(100%, 960px);
    margin: 0 auto;
}

.winter-games__mission h3 {
    margin: 0;
    font-family: var(--font-heading);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 215, 0, 0.9);
    font-size: 1rem;
}

.winter-games__mission p {
    margin: 0;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
}

.winter-games__qr {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin-top: 1.25rem;
}

.winter-games__qr img {
    width: 180px;
    height: 180px;
    border-radius: 1rem;
    box-shadow: 0 1rem 2rem rgba(15, 23, 42, 0.35);
    background: #fff;
}

@media (max-width: 900px) {
    .winter-games {
        padding: 3rem 0;
    }

    .winter-games__wrap {
        gap: 1.75rem;
    }

    .winter-games__content,
    .winter-games__mission {
        width: 100%;
    }
}

@media (max-width: 700px) {
    .winter-games__content {
        align-items: flex-start;
        text-align: left;
    }
}

@media (max-width: 600px) {
    .winter-games {
        padding: 2.75rem 0;
    }

    .winter-games__cta-row {
        flex-direction: column;
        align-items: stretch;
    }

    .winter-games__divisions {
        grid-template-columns: 1fr;
    }
}

@keyframes winterGlow {
    to {
        transform: rotate(360deg);
    }
}

.certificate-log {
    margin-top: 2rem;
    background: #fff;
    border-radius: 1rem;
    border: 1px solid rgba(8, 9, 10, 0.08);
    padding: 1.5rem;
    box-shadow: 0 12px 24px rgba(8, 9, 10, 0.08);
}

.certificate-log h4 {
    margin-top: 0;
}

.certificate-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
}

.certificate-list li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(8, 9, 10, 0.08);
}

.certificate-list li:last-child {
    border-bottom: none;
}

.certificate-meta {
    font-size: 0.9rem;
    color: var(--color-muted);
}

.certificate-list button {
    background: none;
    border: none;
    color: var(--color-primary);
    font-weight: 600;
    cursor: pointer;
}

.certificate-list button:hover,
.certificate-list button:focus {
    color: var(--color-primary-dark);
}

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

    .portal-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .highlight-grid,
    .portal-support,
    .reminder-grid,
    .resource-grid,
    .faq-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .reminder-card {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .calendar-week-note {
        width: auto;
    }

    .admin-dashboard {
        grid-template-columns: 1fr;
    }
}

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

    .belt-card {
        padding: 1.25rem;
    }

    .belt-card__image {
        max-height: 140px;
        padding: 0.25rem 0.5rem;
    }

    .highlight-grid,
    .portal-support,
    .reminder-grid,
    .resource-grid,
    .faq-grid {
        grid-template-columns: 1fr;
    }

    .portal-calendar__actions {
        justify-content: flex-start;
    }

    .portal-calendar__table {
        min-width: 600px;
    }

    .section-heading {
        text-align: left;
        margin-bottom: 2rem;
    }

    .section-heading p {
        margin-left: 0;
        margin-right: 0;
    }

    .calendar-week-note {
        margin-top: 1rem;
    }

    .admin-summary,
    .admin-events {
        padding: 1.5rem;
    }

    .admin-table {
        font-size: 0.9rem;
    }
}

@media (max-width: 600px) {
    .site-header .container {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .hero .hero-content,
    .hero-content {
        grid-template-columns: 1fr !important;
        text-align: center;
    }

    .hero-actions {
        justify-content: center;
    }

    .admin-summary__actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .portal-calendar__table {
        min-width: 100%;
        font-size: 0.85rem;
    }

    .portal-calendar__table th,
    .portal-calendar__table td {
        padding: 0.6rem;
    }
}

.belt-test-form {
    margin-top: 2.5rem;
    display: grid;
    gap: 0.85rem;
    padding: 2rem;
    background-color: var(--color-light);
    border-radius: 1rem;
    box-shadow: 0 1.5rem 3rem rgba(8, 9, 10, 0.08);
    border: 1px solid rgba(8, 9, 10, 0.08);
}

.belt-test-form label {
    font-weight: 600;
}

.belt-test-form input,
.belt-test-form select,
.belt-test-form textarea {
    width: 100%;
    padding: 0.75rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(8, 9, 10, 0.12);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.belt-test-form input:focus,
.belt-test-form select:focus,
.belt-test-form textarea:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(216, 31, 38, 0.15);
    outline: none;
}

.belt-test-form button {
    margin-top: 0.5rem;
}

    .belt-test-form .form-status {
        margin: 0.75rem 0 0;
        font-size: 0.95rem;
        font-weight: 600;
        color: var(--color-primary);
        min-height: 1.2rem;
    }

/* Coach Fatima Page Specific Styles */
.banner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.banner-card {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 1.5rem 3rem rgba(8, 9, 10, 0.15);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 350px; /* Ensure cards have a minimum height */
}

.banner-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.banner-content {
    position: relative;
    z-index: 2;
    background: linear-gradient(to top, rgba(8, 9, 10, 0.9), rgba(8, 9, 10, 0.5) 50%, transparent);
    color: white;
    padding: 2rem;
    padding-top: 4rem; /* More padding at top to ensure text is visible over gradient */
}

.banner-content h3 {
    margin-top: 0;
    font-family: var(--font-heading);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.banner-content p {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 1.5rem;
}

.banner-content .cta-btn {
    background-color: var(--color-primary);
    color: white;
    font-weight: 600;
    box-shadow: 0 0.5rem 1.25rem rgba(216, 31, 38, 0.35);
}

.banner-content .cta-btn:hover {
    background-color: var(--color-primary-dark);
}

@media (max-width: 600px) {
    .banner-grid {
        margin-top: 2rem;
        gap: 1.5rem;
    }

    .banner-card {
        min-height: 300px;
    }

    .banner-content {
        padding: 1.5rem;
        padding-top: 3rem;
    }

    .banner-content h3 {
        font-size: 1.5rem;
    }
}

/* --- Admin dashboard Square-style overrides --- */
.portal-admin {
    background: var(--surface-0);
    color: var(--text-strong);
}

.admin-panel {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
}

.admin-topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.85rem 1rem;
    padding: 0.85rem 1rem;
    border-radius: 0.9rem;
    background: var(--surface-1);
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-1);
}

.admin-topbar__title {
    margin: 0;
    font-size: 1.35rem;
    letter-spacing: 0.01em;
    color: var(--text-strong);
}

.admin-topbar__actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.5rem;
    justify-content: end;
    align-items: center;
    padding: 0.4rem;
    border-radius: 0.9rem;
    background: var(--surface-2);
    border: 1px solid var(--border-soft);
}

.admin-topbar__actions .btn-ghost,
.admin-topbar__actions .btn-primary,
.admin-topbar__actions .theme-toggle {
    padding: 0.45rem 0.8rem;
    font-size: 0.84rem;
    box-shadow: none;
    border-radius: 0.75rem;
    min-height: 32px;
    justify-content: center;
    width: 100%;
}

@media (max-width: 980px) {
    .admin-topbar {
        grid-template-columns: 1fr;
    }
    .admin-topbar__actions {
        grid-auto-flow: row;
        justify-content: start;
    }
}

.admin-topbar__actions .btn-ghost,
.admin-topbar__actions .theme-toggle {
    background: transparent;
    border-color: transparent;
}

@media (max-width: 900px) {
    .admin-topbar__actions {
        justify-content: flex-start;
    }
}

.btn-ghost,
.btn-primary,
.btn-light,
.theme-toggle {
    border-radius: 10px;
    font-weight: 700;
    padding: 0.6rem 0.95rem;
    cursor: pointer;
    transition: background var(--transition), border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.btn-ghost {
    border: 1px solid var(--border-strong);
    background: var(--surface-1);
    color: var(--text-strong);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
    border-color: var(--brand-500);
    box-shadow: var(--focus-ring);
    outline: none;
}

.btn-primary {
    border: none;
    background: var(--brand-500);
    color: #fff;
    box-shadow: var(--shadow-2);
}

.btn-primary:hover,
.btn-primary:focus-visible {
    transform: translateY(-1px);
    box-shadow: var(--shadow-2);
}

.btn-light {
    border: 1px solid var(--border-strong);
    background: var(--surface-2);
    color: var(--text-strong);
}

.theme-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border: 1px solid var(--border-strong);
    background: var(--surface-1);
}

.admin-shell {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 1.5rem;
    align-items: flex-start;
}

.admin-dashboard.is-expanded .admin-shell {
    grid-template-columns: 1fr;
}

.admin-dashboard.is-expanded .admin-sidebar {
    display: none;
}

.admin-main {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
}
.admin-main > * {
    display: block;
}

.admin-card {
    margin-bottom: 2rem !important;
}

.admin-sidebar {
    position: sticky;
    top: 1rem;
    align-self: flex-start;
    background: var(--surface-1);
    color: var(--text-strong);
    border-radius: 1rem;
    padding: 1.1rem;
    box-shadow: var(--shadow-1);
    border: 1px solid var(--border-soft);
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
}

.admin-sidebar__brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-soft);
}

.admin-sidebar__mark {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 0.9rem;
    background: var(--brand-500);
    color: #fff;
    font-weight: 800;
    font-family: var(--font-heading);
    letter-spacing: 0.08em;
}

.admin-sidebar__title {
    margin: 0;
    font-size: 1.05rem;
    letter-spacing: 0.02em;
    text-transform: none;
}

.admin-sidebar__sub {
    margin: 0.1rem 0 0;
    color: var(--text-soft);
    font-size: 0.9rem;
}

.admin-nav {
    margin: 1rem 0;
    display: grid;
    gap: 0.35rem;
}

.admin-nav__section-label {
    margin: 0.85rem 0 0.35rem;
    padding: 0.35rem 0.5rem;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-soft);
    border-bottom: 1px solid var(--border-soft);
}

.admin-nav__item {
    width: 100%;
    display: grid;
    grid-template-columns: 4px 1fr auto;
    gap: 0.75rem;
    align-items: center;
    padding: 0.75rem 0.85rem;
    border-radius: 0.9rem;
    border: 1px solid transparent;
    background: var(--surface-1);
    color: inherit;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-transform: none;
    cursor: pointer;
    position: relative;
    transition: background var(--transition), color var(--transition), border-color var(--transition), box-shadow var(--transition);
    box-shadow: var(--shadow-1);
}

.admin-nav__item::before {
    content: "";
    display: block;
    width: 4px;
    height: 100%;
    border-radius: 12px;
    background: transparent;
    justify-self: stretch;
}

.admin-nav__item:hover,
.admin-nav__item:focus-visible {
    background: var(--surface-2);
    border-color: var(--brand-200);
    box-shadow: inset 3px 0 0 var(--brand-300), var(--shadow-1);
    outline: none;
}

.admin-nav__item:active {
    background: var(--surface-3);
    transform: translateY(1px);
}

.admin-nav__item.is-active {
    background: var(--surface-2);
    color: var(--text-strong);
    border-color: var(--brand-500);
    box-shadow: inset 4px 0 0 var(--brand-500), var(--shadow-2);
}

.admin-nav__item.is-active::before {
    background: var(--brand-500);
}

.admin-nav__icon {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.65rem;
    background: var(--pill-active);
    font-weight: 800;
    font-size: 0.9rem;
    font-family: var(--font-heading);
}

.admin-nav__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 0.5rem;
    border-radius: 999px;
    background: var(--surface-2);
    color: var(--text-soft);
    font-size: 0.75rem;
}

.admin-card,
.admin-summary,
.admin-events,
.admin-attendance,
.admin-enroll {
    background: var(--surface-1);
    border-radius: 1.1rem;
    padding: 1.5rem;
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-1);
    margin-bottom: 1rem;
}

.admin-card__title {
    font-size: 1.1rem;
    letter-spacing: 0.01em;
    color: var(--text-strong);
}

.admin-card__meta {
    color: var(--text-soft);
}

.admin-table {
    background: var(--surface-1);
    border: 1px solid var(--border-soft);
    border-radius: 1rem;
    overflow: hidden;
    min-width: 100%;
}

.admin-table tbody tr {
    border-bottom: 1px solid var(--border-soft);
}

.admin-table th,
.admin-table td {
    border: none;
    border-bottom: 0;
    color: var(--text-strong);
}

.admin-table th {
    background: var(--surface-2);
    position: sticky;
    top: 0;
    z-index: 1;
    text-transform: none;
    letter-spacing: 0.02em;
    font-size: 0.9rem;
}

.admin-table thead tr {
    border-bottom: 1px solid var(--border-soft);
}

.admin-table tbody tr:hover {
    background: var(--surface-2);
}

.admin-table--compact th,
.admin-table--compact td {
    padding: 0.55rem 0.7rem;
    border-bottom: 1px solid var(--border-soft);
}

.admin-table tbody tr {
    border-bottom: 1px solid var(--border-soft);
}

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

.comm-detail-row {
    background: var(--surface-2);
}

.comm-detail-row[hidden] {
    display: none;
}

.admin-table tr:hover td {
    background: var(--table-hover);
}

.admin-row-actions button {
    border-radius: 8px;
    border: 1px solid var(--border-soft);
    background: var(--surface-2);
}

.admin-pill {
    background: var(--pill-active);
    color: var(--brand-700);
    border-radius: 999px;
    padding: 0.25rem 0.6rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.admin-pill--success { background: rgba(16, 185, 129, 0.12); color: #0f9d74; }
.admin-pill--warning { background: rgba(245, 158, 11, 0.16); color: #b77400; }
.admin-pill--danger { background: rgba(239, 68, 68, 0.14); color: #b91c1c; }

.admin-roster-detail {
    background: var(--surface-2);
    border: 1px solid var(--border-soft);
}

.admin-roster-card {
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-1);
    background: var(--surface-1);
}

.admin-status-pill {
    border: 1px solid var(--border-soft);
}

.admin-status-pill.is-active { background: rgba(16, 185, 129, 0.14); color: #0f9d74; }
.admin-status-pill.is-suspended { background: rgba(239, 68, 68, 0.14); color: #b91c1c; }

.admin-email-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1rem;
}

.admin-email-left,
.admin-email-right {
    display: grid;
    gap: 0.85rem;
    align-content: start;
}

.admin-email-form textarea,
.admin-email-form input,
.admin-email-form select {
    width: 100%;
    padding: 0.85rem;
    border-radius: 0.8rem;
    border: 1px solid var(--border-strong);
    background: var(--input-bg);
    color: var(--text-strong);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.admin-email-form textarea:focus,
.admin-email-form input:focus,
.admin-email-form select:focus {
    border-color: var(--brand-500);
    box-shadow: var(--focus-ring);
    outline: none;
}

.admin-radio-grid label {
    border-color: var(--border-strong);
    background: var(--surface-2);
}

.admin-nav__item .admin-nav__icon {
    background: var(--pill-active);
}

.admin-event-list li {
    border: 1px solid var(--border-soft);
    background: var(--surface-1);
    box-shadow: var(--shadow-1);
}

.admin-report-card__dialog {
    background: var(--surface-1);
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-2);
    color: var(--text-strong);
}

.admin-modal__panel {
    background: var(--surface-1);
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-2);
    color: var(--text-strong);
}

.admin-modal__backdrop {
    background: rgba(7, 9, 12, 0.55);
    backdrop-filter: blur(10px);
}

.admin-trigger {
    opacity: 0.08;
}

/* Slide-out drawers (events, email, student) */
.admin-drawer {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: stretch;
    justify-content: flex-end;
    z-index: 1100;
    pointer-events: none;
    opacity: 0;
    transition: opacity 180ms ease;
}

.admin-drawer[hidden] {
    display: none !important;
}

.admin-drawer:not([hidden]) {
    opacity: 1;
    pointer-events: auto;
}

.admin-drawer__backdrop {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.2));
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 180ms ease 60ms;
}

.admin-drawer__panel {
    position: relative;
    width: min(860px, 96vw);
    min-width: min(620px, 96vw);
    height: 100%;
    overflow-y: auto;
    background: var(--surface-1);
    border-left: 1px solid var(--border-soft);
    box-shadow: -18px 0 40px rgba(0, 0, 0, 0.26);
    padding: 1.25rem 1.25rem 1.5rem;
    z-index: 1;
    display: grid;
    gap: 1rem;
    transform: translateX(100%);
    transition: transform 200ms ease, opacity 180ms ease;
    opacity: 0;
}

.admin-drawer:not([hidden]) .admin-drawer__panel {
    transform: translateX(0);
    opacity: 1;
}

.admin-drawer:not([hidden]) .admin-drawer__backdrop {
    opacity: 1;
}

.admin-drawer .secondary-btn:hover,
.admin-drawer .btn-primary:hover,
.admin-drawer .btn-ghost:hover,
.admin-drawer .text-link-btn:hover {
    background: var(--surface-2);
    border-color: var(--border-soft);
}

.admin-drawer .secondary-btn:active,
.admin-drawer .btn-primary:active,
.admin-drawer .btn-ghost:active,
.admin-drawer .text-link-btn:active {
    transform: translateY(1px);
}

.btn-primary.is-loading,
.secondary-btn.is-loading,
.btn-ghost.is-loading,
.text-link-btn.is-loading {
    position: relative;
    opacity: 0.8;
    pointer-events: none;
}

.admin-drawer__close {
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
}

.admin-table-wrap--wide {
    max-width: 100%;
    width: 100%;
}

.admin-table--wide {
    width: 100%;
    min-width: 100%;
}

.admin-filter-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 0.75rem;
    margin: 0.5rem 0 0.75rem;
    align-items: center;
}

.admin-filter-row input,
.admin-filter-row select {
    width: 100%;
    padding: 0.65rem 0.75rem;
    border-radius: 0.75rem;
    border: 1px solid var(--border-soft);
    background: var(--surface-1);
}

.admin-drawer__header {
    display: grid;
    gap: 0.25rem;
}

@media (max-width: 700px) {
    .admin-drawer__panel {
        width: 100%;
        min-width: 100%;
        border-radius: 0;
    }
}

@media (max-width: 1024px) {
    .admin-panel,
    .admin-shell {
        grid-template-columns: 1fr;
    }
    .admin-sidebar {
        position: relative;
        max-height: none;
    }
    .admin-topbar {
        flex-direction: column;
        align-items: flex-start;
    }
    .admin-table {
        min-width: 960px;
    }
}
.instructor-access {
    display: none;
}

.admin-trigger {
    position: fixed;
    right: 8px;
    bottom: 8px;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    padding: 0;
    opacity: 0.12;
    z-index: 900;
    cursor: pointer;
    text-indent: -9999px;
}

.admin-trigger:focus-visible {
    opacity: 1;
    background: rgba(8, 9, 10, 0.75);
    color: #fff;
    border-radius: 12px 0 0 0;
    text-indent: -9999px;
}

@media (max-width: 1100px) {
    .faq-grid {
        grid-template-columns: 1fr;
    }
    .faq-item {
        width: 100%;
    }
}

/* Admin dashboard redesign */
.portal-admin {
    background: var(--color-light);
}

.admin-access {
    display: grid;
    gap: 1.5rem;
    align-items: start;
}

.admin-auth {
    display: grid;
    gap: 0.85rem;
    padding: 1.25rem 1.5rem;
    border-radius: 0.9rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 16px 28px rgba(0, 0, 0, 0.08);
    background: #fff;
    width: min(520px, 100%);
    margin: 0 auto;
}

.admin-auth label {
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-family: var(--font-heading);
    color: var(--color-dark);
}

.admin-auth input {
    padding: 0.75rem;
    border-radius: 0.6rem;
    border: 1px solid rgba(0, 0, 0, 0.12);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.admin-auth input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(179, 0, 0, 0.18);
    outline: none;
}

.admin-shell {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 1.5rem;
    align-items: flex-start;
}

.admin-dashboard.is-expanded .admin-shell {
    grid-template-columns: 1fr;
}

.admin-dashboard.is-expanded .admin-sidebar {
    display: none;
}

.admin-dashboard.is-expanded .admin-main {
    grid-column: 1 / -1;
}

.admin-main {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: stretch;
    max-width: 1300px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

#admin-roster.admin-card {
    grid-column: 1 / -1;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

.portal-admin .container {
    max-width: 1420px;
}

.admin-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.admin-table {
    min-width: 1100px;
}

.admin-sidebar {
    position: sticky;
    top: 1rem;
    align-self: flex-start;
    background: linear-gradient(180deg, #c01414, var(--color-primary-dark));
    color: #fff;
    border-radius: 1rem;
    padding: 0.85rem;
    box-shadow: 0 18px 28px rgba(0, 0, 0, 0.22);
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
}

.admin-sidebar__brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.admin-sidebar__mark {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 0.65rem;
    background: #fff;
    color: var(--color-primary);
    font-weight: 800;
    font-family: var(--font-heading);
    letter-spacing: 0.08em;
}

.admin-sidebar__title {
    margin: 0;
    font-size: 0.98rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.admin-sidebar__sub {
    margin: 0.1rem 0 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.82rem;
}

.admin-nav {
    margin: 0.8rem 0;
    display: grid;
    gap: 0.25rem;
}

.admin-nav__section-label {
    margin: 0.6rem 0 0.25rem;
    padding: 0.2rem 0.45rem;
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.78);
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.admin-nav__item {
    width: 100%;
    display: grid;
    grid-template-columns: 22px 1fr auto;
    gap: 0.55rem;
    align-items: center;
    padding: 0.45rem 0.6rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.08);
    color: inherit;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-transform: none;
    font-size: 0.82rem;
    line-height: 1.2;
    cursor: pointer;
    transition: background var(--transition), color var(--transition), transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.admin-nav__item:hover,
.admin-nav__item:focus-visible {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.18);
    outline: none;
}

.admin-nav__item.is-active {
    background: #fff;
    color: var(--color-primary);
    border-color: rgba(0, 0, 0, 0.12);
    box-shadow: 0 14px 26px rgba(0, 0, 0, 0.18);
}

.admin-nav__icon {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.18);
    font-weight: 800;
    font-size: 0.78rem;
    font-family: var(--font-heading);
}

.admin-nav__item.is-active .admin-nav__icon {
    background: var(--color-primary);
    color: #fff;
}

.admin-nav__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 0.35rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
}

.portal-admin .admin-nav__item {
    min-height: 44px;
    padding: 0.55rem 0.75rem;
    font-size: 0.84rem;
    line-height: 1;
    grid-template-columns: 32px 1fr auto;
    gap: 0.65rem;
    white-space: nowrap;
}

.portal-admin .admin-nav__item > span:not(.admin-nav__icon):not(.admin-nav__badge) {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.portal-admin .admin-nav__icon {
    width: 32px;
    height: 32px;
    font-size: 1rem;
    border-radius: 0.6rem;
}

.portal-admin .admin-nav__badge {
    font-size: 0.68rem;
    min-width: 20px;
    height: 20px;
}

.portal-admin .admin-nav__section-label {
    margin-top: 1.1rem;
    font-size: 0.72rem;
    letter-spacing: 0.13em;
}

.portal-admin .btn-ghost,
.portal-admin .btn-primary,
.portal-admin .secondary-btn,
.portal-admin .cta-btn {
    min-height: 34px;
    padding: 0.4rem 0.75rem;
    border-radius: 0.7rem;
    font-size: 0.85rem;
    line-height: 1.1;
}

.portal-admin .text-link-btn {
    text-decoration: none;
    padding: 0.2rem 0.4rem;
    border-radius: 0.5rem;
}

.portal-admin .text-link-btn:hover,
.portal-admin .text-link-btn:focus {
    background: rgba(0, 0, 0, 0.06);
}

.portal-admin .text-link-btn.is-danger:hover,
.portal-admin .text-link-btn.is-danger:focus {
    background: rgba(239, 68, 68, 0.12);
}

.admin-sidebar__footer {
    margin-top: 1rem;
    padding: 0.75rem;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.08);
    font-size: 0.9rem;
    line-height: 1.4;
}

.admin-main {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: stretch;
    max-width: 1300px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.admin-topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.75rem 1rem;
}

.admin-topbar__title {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-family: var(--font-heading);
}

.admin-topbar__actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.5rem;
    align-items: center;
    justify-content: end;
    padding: 0.4rem;
    border-radius: 0.9rem;
    background: var(--surface-2);
    border: 1px solid var(--border-soft);
}

.admin-topbar__actions .btn-ghost,
.admin-topbar__actions .btn-primary,
.admin-topbar__actions .theme-toggle {
    padding: 0.45rem 0.8rem;
    font-size: 0.84rem;
    line-height: 1;
    white-space: nowrap;
    box-shadow: none;
    min-height: 32px;
    border-radius: 0.75rem;
    justify-content: center;
    width: 100%;
    text-transform: none;
}

.admin-topbar__actions .btn-ghost,
.admin-topbar__actions .theme-toggle {
    background: transparent;
    border-color: transparent;
}

.admin-topbar__actions .theme-toggle {
    padding-inline: 0.6rem;
}

body[data-admin-active-tab="tab-banners"] #admin-banners {
    display: block;
}

body[data-admin-active-tab="tab-banners"] #admin-banners[hidden] {
    display: block;
}

@media (max-width: 900px) {
    .admin-topbar {
        grid-template-columns: 1fr;
    }
    .admin-topbar__actions {
        justify-content: flex-start;
    }
}

.admin-views {
    display: grid;
    gap: 1rem;
}

[data-admin-panel] {
    display: block;
    width: 100%;
}

[data-admin-panel][hidden] {
    display: none;
}

.admin-card {
    background: #fff;
    border-radius: 0.85rem;
    padding: 1.5rem;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.06);
    display: grid;
    gap: 0.9rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.admin-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.admin-card__title {
    margin: 0;
    font-family: var(--font-heading);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 800;
}

.admin-card__meta {
    margin: 0;
    color: var(--color-muted);
}

.admin-banner-form {
    display: grid;
    gap: 1rem;
}

.admin-banner-form__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.75rem;
}

.admin-banner-form__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.admin-banner-list {
    display: grid;
    gap: 1rem;
}

.admin-banner-item {
    border-radius: 0.85rem;
    border: 1px solid var(--border-soft);
    background: var(--surface-2);
    padding: 1rem;
    display: grid;
    gap: 0.75rem;
}

.admin-banner-item__preview {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.admin-banner-item__preview img {
    width: 140px;
    max-width: 100%;
    border-radius: 0.65rem;
    border: 1px solid var(--border-soft);
    background: #0b0b0b;
    object-fit: cover;
}

.admin-banner-item__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.6rem;
}

.admin-banner-item__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.checkbox-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 600;
}

.admin-email-form {
    display: grid;
    gap: 1rem;
    position: relative;
    z-index: 2;
}

.email-panel {
    display: grid;
    gap: 1.5rem;
}

.email-recipient-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.65rem;
    margin-bottom: 0.25rem;
}

.pill-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 0.9rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 0.75rem;
    background: #fafafa;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.pill-button input {
    margin: 0;
}

.pill-button.is-active {
    border-color: var(--brand-300);
    background: var(--surface-2);
}

.email-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.email-grid label {
    display: grid;
    gap: 0.35rem;
}

.email-inline {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.email-inline input {
    flex: 1;
}

.email-message {
    min-height: 250px;
}

.cta-btn--full {
    width: 100%;
    justify-content: center;
}

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

.admin-two-col {
    display: grid;
    grid-template-columns: 1fr 0.8fr;
    gap: 2rem;
    align-items: start;
}

.admin-two-col .admin-card {
    width: 100%;
}

#admin-email.admin-card {
    max-width: 920px;
    justify-self: stretch;
    width: 100%;
}

.email-parent-card {
    width: 100%;
    max-width: 920px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.admin-radio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.5rem;
}

.admin-radio-grid label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.75rem;
    background: #fafafa;
    border-radius: 0.65rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    font-weight: 700;
    letter-spacing: 0.04em;
}

.admin-email-conditional {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.6rem;
}

.email-panel .admin-email-columns {
    gap: 1.25rem;
    align-items: start;
}

.email-panel .admin-email-left,
.email-panel .admin-email-right {
    background: var(--surface-2);
    border: 1px solid var(--border-soft);
    border-radius: 1rem;
    padding: 1rem 1.1rem;
    box-shadow: var(--shadow-soft);
}

.email-panel .admin-email-right textarea {
    min-height: 280px;
}

.email-panel .admin-topbar__actions {
    position: sticky;
    top: 0;
    padding: 0.75rem 0.25rem;
    margin: 0;
    background: var(--surface-1);
    border-bottom: 1px solid var(--border-soft);
    z-index: 5;
}

.skeleton {
    display: block;
    width: 100%;
    height: 12px;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.06));
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.4s ease infinite;
    border-radius: 6px;
}

.skeleton--line {
    height: 12px;
}

@keyframes skeleton-shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

@media (max-width: 900px) {
    .admin-two-col {
        grid-template-columns: 1fr;
    }
}

.admin-card hr {
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    margin: 0.5rem 0 0;
}

.admin-card--highlight {
    border-left: 4px solid var(--color-primary);
    grid-column: 1 / -1;
}

.admin-card--gold {
    border-left: 4px solid var(--color-accent);
    grid-column: 1 / -1;
}

.admin-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.06);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.admin-pill--success {
    background: rgba(17, 128, 67, 0.12);
    color: #0f5132;
}

.admin-pill--warning {
    background: rgba(212, 185, 111, 0.18);
    color: #8a6b00;
}

.admin-pill--danger {
    background: rgba(179, 0, 0, 0.1);
    color: var(--color-primary);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    background: #fff;
}

.admin-table th,
.admin-table td {
    border: 1px solid rgba(0, 0, 0, 0.08);
    padding: 0.75rem 0.85rem;
    text-align: left;
}

.admin-table th {
    background: #f7f7f7;
    text-transform: uppercase;
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    font-family: var(--font-heading);
}

.admin-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 0.75rem;
}

.admin-accordion {
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 0.85rem;
    padding: 0.75rem 1rem;
    background: #fff;
    transition: box-shadow var(--transition), border-color var(--transition);
}

.admin-accordion summary {
    cursor: pointer;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-family: var(--font-heading);
}

.admin-accordion[open] {
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
    border-color: rgba(0, 0, 0, 0.12);
}

.admin-accordion__hint {
    margin: 0.5rem 0 0;
    color: rgba(0, 0, 0, 0.7);
}

.admin-roster-detail {
    padding: 1.25rem;
    border-radius: 0.9rem;
    border: 1px solid rgba(0, 0, 0, 0.06);
    background: #fff;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    display: grid;
    gap: 1rem;
}

.profile-card__header {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1rem;
    align-items: center;
}

.profile-avatar {
    width: 72px;
    height: 72px;
    border-radius: 1rem;
    background: rgba(179, 0, 0, 0.08);
    display: grid;
    place-items: center;
    color: var(--color-primary);
    font-weight: 800;
    font-size: 1.35rem;
    border: 1px solid rgba(179, 0, 0, 0.16);
}

.profile-meta {
    display: grid;
    gap: 0.25rem;
}

.profile-name {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 800;
}

.profile-meta small {
    color: var(--color-muted);
}

.profile-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    justify-content: flex-end;
}

.profile-actions details {
    position: relative;
}

.profile-actions summary {
    list-style: none;
    cursor: pointer;
}

.profile-actions summary::-webkit-details-marker {
    display: none;
}

.profile-actions menu {
    position: absolute;
    right: 0;
    top: calc(100% + 0.35rem);
    background: #fff;
    border-radius: 0.65rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.12);
    padding: 0.35rem;
    min-width: 180px;
    display: grid;
    gap: 0.35rem;
}

.profile-actions button {
    width: 100%;
    justify-content: flex-start;
}

.profile-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.75rem;
}

.profile-metric {
    padding: 0.9rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(0, 0, 0, 0.06);
    background: #fafafa;
}

.profile-metric__label {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.85rem;
    color: var(--color-muted);
}

.profile-metric__value {
    margin: 0.35rem 0 0;
    font-weight: 800;
    font-size: 1.2rem;
}

.admin-roster-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.admin-class-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.5rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: rgba(0, 0, 0, 0.06);
}

.badge--gold {
    background: rgba(212, 185, 111, 0.16);
    color: #7a5b00;
}

.badge--muted {
    background: rgba(0, 0, 0, 0.05);
    color: var(--color-dark);
}

.class-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    z-index: 1000;
}

.class-modal[hidden] {
    display: none;
}

.class-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
}

.class-modal__panel {
    position: relative;
    width: min(1100px, 100%);
    max-height: 92vh;
    display: grid;
    grid-template-rows: auto 1fr auto;
    background: #fff;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 26px 60px rgba(0, 0, 0, 0.32);
    z-index: 1;
}

body[data-portal-mode="admin"] .class-modal {
    padding: 0;
    align-items: stretch;
    justify-content: stretch;
}

body[data-portal-mode="admin"] .class-modal__panel {
    width: 100vw;
    max-width: 100vw;
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
}

.class-modal__header {
    background: var(--color-primary);
    color: #fff;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.class-modal__body {
    padding: 1.25rem;
    background: var(--surface-2);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 0.75rem;
    overflow-x: auto;
}

.class-modal__body--drawer {
    padding: 1rem 1.25rem 0.75rem;
}

.class-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.5rem 1rem 0;
}

.class-broadcast-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    padding: 0 1rem 0.65rem;
}

.class-broadcast-row .pill-button {
    background: var(--surface-2);
    border: 1px solid var(--border-soft);
}

.class-modal__column {
    background: var(--surface-1);
    border: 1px solid var(--border-soft);
    border-radius: 0.9rem;
    padding: 0.95rem;
    box-shadow: var(--shadow-soft);
    display: grid;
    gap: 0.5rem;
    max-height: 360px;
    overflow: hidden;
}

.class-modal__column.is-hidden {
    display: none;
}

.class-modal__column.is-muted {
    opacity: 0.6;
}

.class-modal__column.is-muted .class-modal__list {
    filter: grayscale(0.2);
}

.class-modal__list {
    margin: 0;
    padding: 0;
    list-style: none;
    overflow-y: auto;
    display: grid;
    gap: 0.35rem;
}

.class-modal__pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem 0.65rem;
    border-radius: 0.65rem;
    font-size: 0.8rem;
    font-weight: 700;
    background: rgba(0, 0, 0, 0.05);
}

.class-modal__footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem 1.25rem 1.25rem;
    border-top: 1px solid var(--border-soft);
    background: var(--surface-1);
}

.class-drawer.is-compact .class-modal__column {
    padding: 0.65rem;
    border-radius: 0.65rem;
}

.class-drawer.is-compact .class-modal__fields label,
.class-drawer.is-compact .class-modal__actions {
    gap: 0.4rem;
}

.class-drawer.is-compact .class-modal__body {
    gap: 0.5rem;
}

.class-modal__controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.5rem;
    width: 100%;
}

.class-modal__actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.65rem;
    margin-top: 0.5rem;
}

.class-modal__fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.5rem;
}

.class-modal__fields label {
    display: grid;
    gap: 0.25rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.85rem;
}

.class-modal__fields select,
.class-modal__fields input {
    padding: 0.65rem 0.75rem;
    border-radius: 0.6rem;
    border: 1px solid rgba(0, 0, 0, 0.14);
}

.student-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: stretch;
    justify-content: flex-end;
    padding: 0;
    z-index: 1100;
    pointer-events: none;
    opacity: 0;
    transition: opacity 180ms ease;
}

.student-modal[hidden] {
    display: none !important;
}

.student-modal:not([hidden]) {
    opacity: 1;
    pointer-events: auto;
}

.student-modal__backdrop {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.2));
    backdrop-filter: blur(6px);
}

.student-modal__panel {
    position: relative;
    background: var(--surface-1);
    width: min(560px, 92vw);
    min-width: min(440px, 92vw);
    height: 100%;
    overflow-y: auto;
    box-shadow: -18px 0 40px rgba(0, 0, 0, 0.26);
    padding: 1.25rem 1.25rem 1.5rem;
    z-index: 1;
    display: grid;
    gap: 1rem;
    transform: translateX(100%);
    transition: transform 200ms ease;
    border-radius: 1rem 0 0 1rem;
}

body[data-portal-mode="admin"] .student-modal {
    justify-content: stretch;
}

body[data-portal-mode="admin"] .student-modal__panel {
    width: 100vw;
    min-width: 100vw;
    border-radius: 0;
    box-shadow: none;
}

body[data-portal-mode="admin"] .class-drawer {
    justify-content: stretch;
}

body[data-portal-mode="admin"] .class-drawer .admin-drawer__panel {
    width: 100vw;
    min-width: 100vw;
    max-width: 100vw;
    border-radius: 0;
    box-shadow: none;
    border-left: none;
}

.portal-admin .class-drawer .admin-drawer__panel {
    width: 100vw !important;
    min-width: 100vw !important;
    max-width: 100vw !important;
}

.student-modal:not([hidden]) .student-modal__panel {
    transform: translateX(0);
}

.student-modal__close {
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
}

.student-modal__header {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: start;
    padding: 0.5rem 0.25rem 0.55rem;
    border-bottom: 1px solid var(--border-soft);
}

.student-modal__avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: 0.08em;
}

.student-modal__meta {
    color: var(--color-dark);
    margin: 0.15rem 0 0.35rem;
}

.student-modal__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
}

.student-modal__actions summary {
    list-style: none;
}

.student-modal__actions details[open] summary {
    background: var(--color-primary);
    color: #fff;
}

.student-modal__actions menu {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 0.5rem;
    padding: 0.5rem;
    display: grid;
    gap: 0.25rem;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.14);
}

.admin-drawer .secondary-btn:hover,
.admin-drawer .btn-primary:hover,
.admin-drawer .btn-ghost:hover,
.admin-drawer .text-link-btn:hover {
    background: var(--surface-2);
    border-color: var(--border-soft);
}

.admin-drawer .secondary-btn:active,
.admin-drawer .btn-primary:active,
.admin-drawer .btn-ghost:active,
.admin-drawer .text-link-btn:active {
    transform: translateY(1px);
}

.student-modal__stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
}

.student-modal__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.5rem;
    align-items: center;
}

.student-modal__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 2;
    padding: 0.5rem 0;
    background: var(--surface-1);
}

.student-modal__nav button {
    padding: 0.55rem 0.9rem;
    border-radius: 0.65rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #f7f7f7;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.student-modal__nav button.is-active {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

.student-modal__content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    padding-bottom: 1rem;
}

.student-modal__card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 0.75rem;
    padding: 1rem;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.student-modal__card-head {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    align-items: flex-start;
    margin-bottom: 0.65rem;
}

.student-modal__form {
    display: grid;
    gap: 0.75rem;
}

.student-modal__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.65rem;
}

.student-modal__grid label {
    display: grid;
    gap: 0.35rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.85rem;
}

.student-modal__grid input,
.student-modal__grid select,
.student-modal__form textarea {
    padding: 0.65rem 0.75rem;
    border-radius: 0.6rem;
    border: 1px solid rgba(0, 0, 0, 0.12);
    font-family: "Roboto", sans-serif;
}

.student-modal__grid--compact {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.student-modal__actions-row {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.student-modal__timeline {
    list-style: none;
    padding: 0;
    margin: 0.75rem 0 0;
    display: grid;
    gap: 0.65rem;
}

.student-modal__timeline li {
    padding: 1rem 1.05rem;
    background: var(--surface-2);
    border-radius: 0.65rem;
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-soft);
    display: grid;
    gap: 0.2rem;
}

.student-modal__content {
    scroll-behavior: smooth;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

[data-student-panel] {
    transition: opacity 120ms ease, transform 120ms ease;
}

[data-student-panel][hidden] {
    opacity: 0;
    transform: translateY(8px);
}

.class-modal__body,
.class-modal__body--drawer {
    overscroll-behavior: contain;
}

.student-modal__timeline .admin-roster-notes__meta {
    margin-bottom: 0.2rem;
    font-weight: 700;
}

.student-modal__timeline .admin-roster-notes__meta strong {
    color: var(--color-primary);
}

.student-notes-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin: 0.25rem 0 0.35rem;
}

.student-notes-filter button {
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: #f7f7f7;
    border-radius: 999px;
    padding: 0.35rem 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all var(--transition);
}

.student-notes-filter button.is-active {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
    box-shadow: 0 12px 24px rgba(198, 0, 0, 0.18);
}

.student-modal__last {
    font-weight: 700;
    color: var(--color-primary);
}

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

    .student-modal__actions {
        justify-content: flex-start;
    }
}

@keyframes modal-fade {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

    .admin-main {
        max-width: 100%;
    }

    .admin-sidebar {
        position: static;
        max-height: none;
    }

    .admin-nav {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
}

@media (max-width: 768px) {
    .admin-card {
        padding: 1.25rem;
    }

    .profile-card__header {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        padding: 1rem;
    }

    .class-modal__panel {
        grid-template-rows: auto 1fr auto;
    }

    .student-modal__panel {
        width: 95%;
        height: 95vh;
    }
}


.class-card__meta {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 0.25rem;
}

.class-card__pill {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    background: rgba(212, 185, 111, 0.16);
    color: #7a5b00;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.75rem;
}

/* Skip-to-content link — hidden until keyboard focused */
.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    z-index: 9999;
    padding: 0.65rem 1.25rem;
    background: var(--brand-500);
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    border-radius: 0 0 0.5rem 0.5rem;
    text-decoration: none;
    transition: top 0.15s ease;
}
.skip-link:focus {
    top: 0;
    outline: 3px solid #fff;
    outline-offset: 2px;
}

/* FAQ section */
.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: var(--surface-2, #fff);
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 0.75rem;
    overflow: hidden;
    transition: box-shadow var(--transition);
}

.faq-item:hover {
    box-shadow: var(--shadow-1);
}

.faq-item summary {
    cursor: pointer;
    padding: 1rem 1.25rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-strong, #0f172a);
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    line-height: 1.4;
    user-select: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
    content: '+';
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--brand-500, #d81f26);
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-item > p,
.faq-item > div {
    padding: 0 1.25rem 1rem;
    color: var(--text-mid, #475467);
    line-height: 1.65;
    font-size: 0.95rem;
}

.faq-item > p a {
    color: var(--brand-500, #d81f26);
    text-decoration: underline;
}

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

[data-theme="dark"] .faq-item {
    background: var(--surface-2, #1e293b);
    border-color: rgba(255,255,255,0.08);
}

[data-theme="dark"] .faq-item summary {
    color: var(--text-strong, #f1f5f9);
}

/* =====================================================
   ARA UI — Toast Notifications
   ===================================================== */
.ara-toast-container {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 9999;
    display: flex;
    flex-direction: column-reverse;
    gap: 0.55rem;
    pointer-events: none;
    max-width: 360px;
    width: calc(100vw - 2rem);
}

.ara-toast {
    pointer-events: auto;
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    padding: 0.8rem 1rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.18);
    font-size: 0.875rem;
    font-family: var(--font-body, 'Roboto', sans-serif);
    background: #fff;
    border-left: 4px solid #d1d5db;
    color: #111827;
    line-height: 1.45;
    animation: ara-toast-in 0.22s cubic-bezier(.2,.8,.4,1) both;
}

[data-theme="dark"] .ara-toast {
    background: #1e2535;
    color: #e5e7eb;
    border-left-color: #374151;
}

.ara-toast.is-out {
    animation: ara-toast-out 0.2s ease forwards;
}

@keyframes ara-toast-in {
    from { opacity: 0; transform: translateY(14px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0)   scale(1); }
}

@keyframes ara-toast-out {
    from { opacity: 1; transform: translateY(0) scale(1); }
    to   { opacity: 0; transform: translateY(8px) scale(0.95); }
}

.ara-toast--success { border-left-color: #10b981; }
.ara-toast--error   { border-left-color: #ef4444; }
.ara-toast--info    { border-left-color: #3b82f6; }
.ara-toast--warning { border-left-color: #f59e0b; }

.ara-toast__icon {
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
    font-style: normal;
}

.ara-toast__body { flex: 1; }

.ara-toast__close {
    background: none;
    border: none;
    cursor: pointer;
    opacity: 0.4;
    font-size: 0.9rem;
    line-height: 1;
    padding: 0;
    flex-shrink: 0;
    color: inherit;
    transition: opacity 0.15s;
}

.ara-toast__close:hover { opacity: 0.85; }

/* =====================================================
   ARA UI — Confirm / Prompt Modal
   ===================================================== */
.ara-confirm-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.48);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: ara-backdrop-in 0.18s ease;
}

@keyframes ara-backdrop-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.ara-confirm-dialog {
    background: #fff;
    border-radius: 1rem;
    padding: 2rem;
    width: min(440px, 100%);
    box-shadow: 0 8px 48px rgba(0,0,0,0.24);
    animation: ara-dialog-in 0.2s cubic-bezier(.2,.8,.4,1);
}

[data-theme="dark"] .ara-confirm-dialog {
    background: #1e2535;
    color: #e5e7eb;
}

@keyframes ara-dialog-in {
    from { opacity: 0; transform: translateY(-10px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0)    scale(1); }
}

.ara-confirm-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.65rem;
    font-style: normal;
}

.ara-confirm-title {
    font-family: var(--font-heading, 'Rajdhani', sans-serif);
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 0.45rem;
    line-height: 1.25;
}

.ara-confirm-body {
    font-size: 0.9rem;
    color: #6b7280;
    margin: 0 0 1.25rem;
    line-height: 1.55;
}

[data-theme="dark"] .ara-confirm-body { color: #9ca3af; }

.ara-confirm-input {
    display: block;
    width: 100%;
    margin-bottom: 1.25rem;
    padding: 0.6rem 0.85rem;
    border: 1px solid rgba(0,0,0,0.18);
    border-radius: 0.5rem;
    font-size: 0.9rem;
    box-sizing: border-box;
    background: var(--input-bg, #fff);
    color: inherit;
    font-family: inherit;
    transition: border-color 0.15s;
}

.ara-confirm-input:focus {
    outline: none;
    border-color: var(--brand-500, #d81f26);
    box-shadow: 0 0 0 3px rgba(216,31,38,0.12);
}

[data-theme="dark"] .ara-confirm-input {
    background: #0f172a;
    border-color: rgba(255,255,255,0.15);
    color: #e5e7eb;
}

.ara-confirm-actions {
    display: flex;
    gap: 0.6rem;
    justify-content: flex-end;
}

.btn-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.6rem 1.25rem;
    border-radius: 0.5rem;
    border: none;
    font-family: var(--font-heading, 'Rajdhani', sans-serif);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.15s, box-shadow 0.15s;
    background-color: #ef4444;
    color: #fff;
}

.btn-danger:hover { background-color: #dc2626; transform: translateY(-1px); }
.btn-danger:active { transform: translateY(0); }

/* =====================================================
   ARA UI — Belt Rank Pills
   ===================================================== */
.belt-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    white-space: nowrap;
    vertical-align: middle;
}

.belt-pill::before {
    content: '';
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 999px;
    flex-shrink: 0;
}

.belt-pill--white  { background: #f3f4f6; color: #374151; }
.belt-pill--white::before  { background: #d1d5db; box-shadow: inset 0 0 0 1px #9ca3af; }

.belt-pill--yellow { background: #fef9c3; color: #854d0e; }
.belt-pill--yellow::before { background: #facc15; }

.belt-pill--orange { background: #ffedd5; color: #9a3412; }
.belt-pill--orange::before { background: #f97316; }

.belt-pill--green  { background: #dcfce7; color: #15803d; }
.belt-pill--green::before  { background: #22c55e; }

.belt-pill--blue   { background: #dbeafe; color: #1d4ed8; }
.belt-pill--blue::before   { background: #3b82f6; }

.belt-pill--purple { background: #ede9fe; color: #6d28d9; }
.belt-pill--purple::before { background: #8b5cf6; }

.belt-pill--red    { background: rgba(216,31,38,0.12); color: #b6151c; }
.belt-pill--red::before    { background: #d81f26; }

.belt-pill--brown  { background: #fdf2d0; color: #78350f; }
.belt-pill--brown::before  { background: #92400e; }

.belt-pill--black  { background: #111827; color: #f9fafb; }
.belt-pill--black::before  { background: #374151; box-shadow: inset 0 0 0 1px #6b7280; }

/* =====================================================
   ARA UI — Skeleton Loader
   ===================================================== */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e4e4e4 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
    border-radius: 0.4rem;
    display: block;
}

[data-theme="dark"] .skeleton {
    background: linear-gradient(90deg, #2a3147 25%, #344063 50%, #2a3147 75%);
    background-size: 200% 100%;
}

@keyframes skeleton-shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-line {
    height: 0.85rem;
    margin-bottom: 0.5rem;
}

.skeleton-line--short { width: 60%; }
.skeleton-line--med   { width: 80%; }

/* =====================================================
   Admin sidebar — SVG icon sizing
   ===================================================== */
.admin-nav__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.admin-nav__icon svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    display: block;
}

/* ============================================================
   BELT JOURNEY SECTION
   ============================================================ */

.belt-journey {
    background: #111827;
    color: #fff;
    padding: 5rem 0 0;
    overflow: hidden;
}

.belt-journey__header {
    max-width: 700px;
    padding-bottom: 3rem;
}

.belt-journey__header .eyebrow {
    color: var(--brand-red, #d81f26);
    letter-spacing: 0.12em;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.75rem;
}

.belt-journey__header h2 {
    font-size: clamp(1.8rem, 4vw, 2.75rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1rem;
    color: #fff;
}

.belt-journey__header p {
    color: #9ca3af;
    font-size: 1.05rem;
    line-height: 1.7;
    max-width: 580px;
}

/* Belt track — horizontally scrollable strip */
.belt-track {
    display: flex;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.2) transparent;
    gap: 0;
    width: 100%;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
}

.belt-track::-webkit-scrollbar {
    height: 4px;
}
.belt-track::-webkit-scrollbar-track { background: transparent; }
.belt-track::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.2);
    border-radius: 2px;
}

/* Individual belt step */
.belt-step {
    flex: 1 0 180px;
    min-width: 140px;
    max-width: 220px;
    padding: 2rem 1.25rem 2.25rem;
    position: relative;
    scroll-snap-align: start;
    transition: transform 0.2s ease, filter 0.2s ease;
    cursor: default;
}

.belt-step:hover {
    transform: translateY(-4px);
    filter: brightness(1.12);
    z-index: 2;
}

/* Phase label */
.belt-step__phase {
    display: block;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin-bottom: 0.6rem;
    opacity: 0.8;
}

/* Belt name */
.belt-step__name {
    display: block;
    font-size: 1.1rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

/* Focus description */
.belt-step__focus {
    font-size: 0.78rem;
    line-height: 1.5;
    opacity: 0.82;
    margin: 0;
}

/* ── Belt colour palettes ── */

.belt-step--white {
    background: #e8e8e0;
    color: #1a1a1a;
}
.belt-step--white .belt-step__phase,
.belt-step--white .belt-step__focus { opacity: 0.6; }

/* High white: white base with yellow-stripe accent on left */
.belt-step--high-white {
    background: #efefea;
    color: #1a1a1a;
    border-left: 6px solid #f5c518;
}
.belt-step--high-white .belt-step__phase,
.belt-step--high-white .belt-step__focus { opacity: 0.6; }

.belt-step--yellow {
    background: #f5c518;
    color: #1a1a00;
}
.belt-step--yellow .belt-step__phase,
.belt-step--yellow .belt-step__focus { opacity: 0.7; }

/* High yellow: yellow with green stripe */
.belt-step--high-yellow {
    background: #f0bc10;
    color: #1a1a00;
    border-left: 6px solid #15803d;
}
.belt-step--high-yellow .belt-step__phase,
.belt-step--high-yellow .belt-step__focus { opacity: 0.7; }

.belt-step--green {
    background: #15803d;
    color: #fff;
}

/* High green: green with blue stripe */
.belt-step--high-green {
    background: #166534;
    color: #fff;
    border-left: 6px solid #1d4ed8;
}

.belt-step--blue {
    background: #1d4ed8;
    color: #fff;
}

/* High blue: blue with red stripe */
.belt-step--high-blue {
    background: #1e40af;
    color: #fff;
    border-left: 6px solid #d81f26;
}

.belt-step--red {
    background: #d81f26;
    color: #fff;
}

/* High red: red with black stripe */
.belt-step--high-red {
    background: #be1a1f;
    color: #fff;
    border-left: 6px solid #111827;
}

.belt-step--black {
    background: #1a1a1a;
    color: #fff;
    border-left: 1px solid rgba(255,255,255,0.08);
}
.belt-step--black .belt-step__phase,
.belt-step--black .belt-step__focus { opacity: 0.7; }

/* Dan degrees — slightly lighter to differentiate */
.belt-step--dan {
    background: #242424;
}

/* 4th Dan / Master — subtle gold accent */
.belt-step--master {
    background: #1f1a0a;
    border-left: 6px solid #b8960c;
}
.belt-step--master .belt-step__phase { color: #d4a800; opacity: 1; }

/* Reveal animation (driven by data-reveal in main.js scroll observer) */
[data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
[data-reveal].is-visible {
    opacity: 1;
    transform: none;
}

/* Footer CTAs */
.belt-journey__footer {
    display: flex;
    gap: 1rem;
    align-items: center;
    padding: 2.5rem 0 4rem;
    flex-wrap: wrap;
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .belt-step {
        flex: 0 0 160px;
        padding: 1.5rem 1rem 1.75rem;
    }
    .belt-step__name { font-size: 0.95rem; }
}

@media (max-width: 600px) {
    .belt-journey { padding-top: 3.5rem; }
    .belt-journey__header { padding-bottom: 2rem; }
    .belt-journey__footer { padding: 1.75rem 0 3rem; }
    .belt-step {
        flex: 0 0 140px;
        min-width: 130px;
        padding: 1.25rem 0.85rem 1.5rem;
    }
    .belt-step__name { font-size: 0.875rem; }
    .belt-step__focus { font-size: 0.875rem; }
}

/* Belt step meaning line */
.belt-step__meaning {
    display: block;
    font-style: italic;
    font-size: 0.74rem;
    line-height: 1.45;
    opacity: 0.75;
    margin-bottom: 0.65rem;
    font-weight: 400;
}

/* ============================================================
   MASTER ARA CHAT WIDGET
   ============================================================ */

#ara-chat-widget {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 9000;
    font-family: inherit;
}

/* ── Trigger button ── */
#ara-chat-btn {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: var(--brand-red, #d81f26);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    position: relative;
}

#ara-chat-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(216,31,38,0.45);
}

#ara-chat-btn:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 2px;
}

.ara-chat-btn__icon,
.ara-chat-btn__close {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.ara-chat-btn__icon svg {
    width: 26px;
    height: 26px;
}

.ara-chat-btn__close {
    font-size: 1.2rem;
    opacity: 0;
    transform: rotate(-90deg);
}

#ara-chat-btn.is-open .ara-chat-btn__icon {
    opacity: 0;
    transform: scale(0.7);
}

#ara-chat-btn.is-open .ara-chat-btn__close {
    opacity: 1;
    transform: rotate(0deg);
}

/* ── Chat panel ── */
#ara-chat-panel {
    position: absolute;
    bottom: 72px;
    right: 0;
    width: 360px;
    max-height: 560px;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.22), 0 2px 8px rgba(0,0,0,0.12);
    overflow: hidden;
    animation: ara-chat-in 0.22s cubic-bezier(.34,1.56,.64,1) both;
}

#ara-chat-panel[hidden] {
    display: none;
}

@keyframes ara-chat-in {
    from { opacity: 0; transform: scale(0.92) translateY(12px); }
    to   { opacity: 1; transform: none; }
}

/* ── Header ── */
.ara-chat__header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1rem 1rem 1.25rem;
    background: #111827;
    color: #fff;
    flex-shrink: 0;
}

.ara-chat__avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--brand-red, #d81f26);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    flex-shrink: 0;
    color: #fff;
}

.ara-chat__name {
    font-weight: 700;
    font-size: 0.95rem;
    margin: 0;
    color: #fff;
}

.ara-chat__status {
    font-size: 0.72rem;
    color: #9ca3af;
    margin: 0;
}

.ara-chat__close-btn {
    margin-left: auto;
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    font-size: 1rem;
    padding: 0.25rem;
    line-height: 1;
    border-radius: 4px;
    transition: color 0.15s;
}

.ara-chat__close-btn:hover { color: #fff; }

/* ── Messages area ── */
.ara-chat__messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    scroll-behavior: smooth;
}

/* Empty / starter state */
.ara-chat__empty {
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Greeting strip */
.ara-chat__greeting {
    background: linear-gradient(135deg, #0f1829 0%, #1a0609 100%);
    padding: 1rem 1.1rem 0.9rem;
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
}

.ara-chat__greeting-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #d81f26;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.ara-chat__greeting-bubble {
    background: rgba(255,255,255,0.1);
    border-radius: 4px 12px 12px 12px;
    padding: 0.55rem 0.8rem;
    font-size: 0.84rem;
    color: #e4e7ee;
    line-height: 1.5;
}

/* Contact CTA block */
.ara-chat__contact {
    padding: 0.85rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    border-bottom: 1px solid #e5e7eb;
}

.ara-chat__contact-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #9ca3af;
    margin: 0;
}

.ara-chat__cta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.8rem 1rem;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.15s, box-shadow 0.15s;
    font-family: inherit;
}

.ara-chat__cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.18);
}

.ara-chat__cta--call {
    background: #d81f26;
    color: #fff;
}

.ara-chat__cta--text {
    background: #0f1829;
    color: #fff;
}

.ara-chat__cta--book {
    background: #c9a227;
    color: #fff;
    text-decoration: none;
}

.ara-chat__cta-icon {
    font-size: 1.4rem;
    line-height: 1;
    flex-shrink: 0;
}

.ara-chat__cta-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.ara-chat__cta-number {
    font-weight: 700;
    font-size: 0.97rem;
    line-height: 1.2;
}

.ara-chat__cta-sublabel {
    font-size: 0.71rem;
    opacity: 0.75;
    font-weight: 400;
}

/* Starters / FAQ section */
.ara-chat__starters-wrap {
    padding: 0.75rem 1rem 0.85rem;
}

.ara-chat__starters-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #9ca3af;
    margin: 0 0 0.5rem;
}

.ara-chat__starters {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.ara-chat__starter-btn {
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 0.45rem 0.75rem;
    font-size: 0.79rem;
    text-align: left;
    cursor: pointer;
    color: #374151;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    font-family: inherit;
}

.ara-chat__starter-btn:hover {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #991b1b;
}

.ara-chat__empty-title { display: none; }
.ara-chat__empty-sub   { display: none; }

/* Message bubbles */
.ara-chat__bubble {
    max-width: 84%;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.ara-chat__bubble--user {
    align-self: flex-end;
}

.ara-chat__bubble--bot {
    align-self: flex-start;
}

.ara-chat__bubble-text {
    padding: 0.6rem 0.85rem;
    border-radius: 12px;
    font-size: 0.875rem;
    line-height: 1.55;
    word-break: break-word;
}

.ara-chat__bubble--user .ara-chat__bubble-text {
    background: var(--brand-red, #d81f26);
    color: #fff;
    border-radius: 12px 12px 2px 12px;
}

.ara-chat__bubble--bot .ara-chat__bubble-text {
    background: #f3f4f6;
    color: #111827;
    border-radius: 2px 12px 12px 12px;
}

/* Typing indicator */
.ara-chat__typing {
    display: flex;
    align-items: center;
    padding: 0.65rem 0.9rem;
    background: #f3f4f6;
    border-radius: 2px 12px 12px 12px;
    align-self: flex-start;
    max-width: fit-content;
    gap: 0.3rem;
}

.ara-chat__typing span {
    display: block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #9ca3af;
    animation: ara-typing-bounce 1.2s infinite ease-in-out;
}

.ara-chat__typing span:nth-child(2) { animation-delay: 0.2s; }
.ara-chat__typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes ara-typing-bounce {
    0%, 80%, 100% { transform: translateY(0); opacity: 0.4; }
    40%            { transform: translateY(-5px); opacity: 1; }
}

/* Action chips */
.ara-chat__action-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.ara-chat__chip {
    background: #fff;
    border: 1.5px solid var(--brand-red, #d81f26);
    color: var(--brand-red, #d81f26);
    border-radius: 20px;
    padding: 0.3rem 0.75rem;
    font-size: 0.76rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    font-family: inherit;
    white-space: nowrap;
}

.ara-chat__chip:hover {
    background: var(--brand-red, #d81f26);
    color: #fff;
}

/* ── Input form ── */
.ara-chat__form {
    display: flex;
    align-items: center;
    gap: 0;
    border-top: 1px solid #e5e7eb;
    padding: 0.65rem 0.85rem;
    flex-shrink: 0;
    background: #fff;
}

.ara-chat__input {
    flex: 1;
    border: 1.5px solid #e5e7eb;
    border-radius: 20px 0 0 20px;
    padding: 0.55rem 0.85rem;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.15s;
    font-family: inherit;
    background: #f9fafb;
}

.ara-chat__input:focus {
    border-color: var(--brand-red, #d81f26);
    background: #fff;
}

.ara-chat__send {
    background: var(--brand-red, #d81f26);
    border: 1.5px solid var(--brand-red, #d81f26);
    border-left: none;
    border-radius: 0 20px 20px 0;
    padding: 0.55rem 0.8rem;
    cursor: pointer;
    color: #fff;
    display: flex;
    align-items: center;
    transition: background 0.15s;
}

.ara-chat__send:hover { background: #b71c1c; border-color: #b71c1c; }

.ara-chat__send svg {
    width: 18px;
    height: 18px;
}

/* ── Responsive ── */
@media (max-width: 440px) {
    #ara-chat-widget {
        bottom: 1rem;
        right: 1rem;
    }
    #ara-chat-panel {
        width: calc(100vw - 2rem);
        right: -1rem;
        bottom: 70px;
        max-height: 70vh;
    }
}

/* ================================================================
   ADMIN PANEL MODERNIZATION — 2026 ARA-Themed Full-Screen Redesign
   ================================================================ */

/* ── Full-screen shell ─────────────────────────────────────────── */
/* JS hoists #admin-dashboard to <body> on login; position:fixed
   then covers the full viewport with no ancestor interference.     */
body.admin-active {
    overflow: hidden;
}

body.admin-active > .site-header,
body.admin-active > main,
body.admin-active > .site-footer {
    display: none !important;
}

body.admin-active > #admin-dashboard {
    position: fixed;
    inset: 0;
    z-index: 9990;
    background: #f4f5f8;
    overflow: hidden;
    display: flex !important;
    flex-direction: column;
}

[data-theme="dark"] body.admin-active > #admin-dashboard,
body.admin-active > #admin-dashboard[data-theme="dark"] {
    background: #0b1220;
}

/* ── App shell grid ────────────────────────────────────────────── */
body.admin-active .admin-shell {
    flex: 1;
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    grid-template-rows: 1fr;
    gap: 0;
    overflow: hidden;
}

/* ── Dark sidebar (Ruby-style near-black with red accents) ─────── */
body.admin-active .admin-sidebar {
    position: static;
    height: 100%;
    border-radius: 0;
    max-height: 100%;
    overflow-y: auto;
    top: auto;
    background: #13131f !important;
    box-shadow: 4px 0 24px rgba(0,0,0,0.28) !important;
    border: none !important;
}

body.admin-active .admin-sidebar__brand {
    padding: 1.25rem 1.1rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 0.5rem;
}

body.admin-active .admin-sidebar__mark {
    background: #fff;
    color: #d81f26;
    font-size: 0.9rem;
    width: 42px;
    height: 42px;
    border-radius: 0.75rem;
}

body.admin-active .admin-sidebar__title {
    font-size: 1rem;
    color: #fff;
}

body.admin-active .admin-sidebar__sub {
    color: rgba(255,255,255,0.55);
    font-size: 0.78rem;
}

body.admin-active .admin-nav {
    padding: 0 0.75rem;
    gap: 0.2rem;
}

body.admin-active .admin-nav__section-label {
    color: rgba(255,255,255,0.4);
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    margin: 1rem 0 0.3rem;
    padding: 0 0.5rem;
    border: none;
}

body.admin-active .admin-nav__item {
    padding: 0.65rem 0.85rem;
    border-radius: 0.65rem;
    font-size: 0.86rem;
    color: rgba(255,255,255,0.8);
    background: transparent;
    border: none;
    grid-template-columns: 28px 1fr auto;
    gap: 0.65rem;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
    min-height: 44px;
}

body.admin-active .admin-nav__item:hover,
body.admin-active .admin-nav__item:focus-visible {
    background: rgba(255,255,255,0.07);
    color: #fff;
    border: none;
    box-shadow: none;
}

body.admin-active .admin-nav__item.is-active {
    background: #d81f26;
    color: #fff;
    border: none;
    box-shadow: 0 6px 20px rgba(216,31,38,0.45);
}

body.admin-active .admin-nav__icon {
    width: 28px;
    height: 28px;
    border-radius: 0.5rem;
    background: rgba(255,255,255,0.1);
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

body.admin-active .admin-nav__item.is-active .admin-nav__icon {
    background: rgba(255,255,255,0.25);
    color: #fff;
}

body.admin-active .admin-nav__badge {
    background: rgba(255,255,255,0.2);
    font-size: 0.7rem;
    padding: 0.1rem 0.4rem;
    border-radius: 999px;
}

body.admin-active .admin-nav__item.is-active .admin-nav__badge {
    background: rgba(255,255,255,0.35);
}

body.admin-active .admin-sidebar__footer {
    margin: auto 0 0;
    padding: 1rem 0.85rem;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.45);
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* ── Sidebar logout button ─────────────────────────────────────── */
.admin-logout-btn {
    display: block;
    width: 100%;
    margin-top: 0.6rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.55rem;
    border: 1px solid rgba(216,31,38,0.4);
    background: transparent;
    color: rgba(255,200,200,0.85);
    font-size: 0.77rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    text-align: center;
}

.admin-logout-btn:hover {
    background: rgba(216,31,38,0.2);
    color: #fff;
}

/* ── Clean topbar (white bar) ──────────────────────────────────── */
body.admin-active #admin-topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #fff;
    border-bottom: 1px solid #e5e7ee;
    padding: 0.9rem 2rem;
    margin: 0;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    flex-shrink: 0;
}

[data-theme="dark"] body.admin-active #admin-topbar {
    background: #0f1829;
    border-bottom-color: #182235;
}

body.admin-active .admin-topbar__meta {
    color: #d81f26;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    font-weight: 700;
    margin: 0 0 0.15rem;
}

body.admin-active .admin-topbar__title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #13131f;
    margin: 0;
}

[data-theme="dark"] body.admin-active .admin-topbar__title {
    color: #fff;
}

/* ── Main content area ─────────────────────────────────────────── */
body.admin-active .admin-main {
    height: 100%;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: none;
    padding: 0;
    background: #f4f5f8;
}

[data-theme="dark"] body.admin-active .admin-main {
    background: #0b1220;
}

body.admin-active #admin-main-content {
    padding: 1.75rem 2rem 2.5rem;
    flex: 1;
}

/* ── Skeleton loader ───────────────────────────────────────────── */
.admin-component-loading {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.skeleton {
    background: #e2e5ec;
    border-radius: 0.5rem;
    animation: skeleton-pulse 1.6s ease-in-out infinite;
}

[data-theme="dark"] .skeleton {
    background: #182235;
}

.skeleton-line { height: 1rem; width: 100%; }
.skeleton-line--med { width: 65%; }

@keyframes skeleton-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* ── Dashboard layout ──────────────────────────────────────────── */

/* Big Ruby-style KPI hero tiles — 4 in a row at top */
.admin-hero-tiles {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-bottom: 1.75rem;
}

.admin-hero-tile {
    background: #d81f26;
    border-radius: 1.1rem;
    padding: 1.4rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.1rem;
    color: #fff;
    box-shadow: 0 8px 24px rgba(216,31,38,0.35);
    transition: transform 0.18s, box-shadow 0.18s;
    position: relative;
    overflow: hidden;
}

.admin-hero-tile::after {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
}

.admin-hero-tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(216,31,38,0.45);
}

.admin-hero-tile--muted {
    background: #fff;
    color: #13131f;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    border: 1px solid #e5e7ee;
}

.admin-hero-tile--muted:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.admin-hero-tile--muted::after {
    background: rgba(216,31,38,0.06);
}

[data-theme="dark"] .admin-hero-tile--muted {
    background: #0f1829;
    border-color: #182235;
    color: #f0f4ff;
}

.admin-hero-tile__icon {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    border-radius: 0.9rem;
    background: rgba(255,255,255,0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    line-height: 1;
}

.admin-hero-tile--muted .admin-hero-tile__icon {
    background: rgba(216,31,38,0.1);
}

.admin-hero-tile__body {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.admin-hero-tile__label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.85;
    margin: 0;
}

.admin-hero-tile--muted .admin-hero-tile__label {
    color: #666;
    opacity: 1;
}

[data-theme="dark"] .admin-hero-tile--muted .admin-hero-tile__label {
    color: rgba(255,255,255,0.55);
}

.admin-hero-tile__value {
    font-size: 2.2rem;
    font-weight: 900;
    font-family: var(--font-heading);
    letter-spacing: 0.02em;
    line-height: 1;
    margin: 0;
}

.admin-hero-tile--muted .admin-hero-tile__value {
    color: #13131f;
}

[data-theme="dark"] .admin-hero-tile--muted .admin-hero-tile__value {
    color: #f0f4ff;
}

/* Dashboard two-column grid */
.admin-dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 1.5rem;
    align-items: start;
}

.admin-dashboard-col {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* White content cards */
body.admin-active .admin-card {
    background: #fff;
    border: 1px solid #e5e7ee;
    border-radius: 1rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

[data-theme="dark"] body.admin-active .admin-card {
    background: #0f1829;
    border-color: #182235;
}

body.admin-active .admin-card--highlight {
    background: #fff;
    border-color: #e5e7ee;
}

[data-theme="dark"] body.admin-active .admin-card--highlight {
    background: #0f1829;
    border-color: #182235;
}

/* KPI stat card grid (secondary, inside cards) */
.admin-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.admin-kpi-card {
    background: #f8f9fc;
    border: 1px solid #e5e7ee;
    border-radius: 0.85rem;
    padding: 0.9rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    transition: box-shadow 0.15s, transform 0.15s;
}

[data-theme="dark"] .admin-kpi-card {
    background: #0b1220;
    border-color: #182235;
}

.admin-kpi-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    transform: translateY(-1px);
}

.admin-kpi-card .card-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #888;
    margin: 0;
}

.admin-kpi-card .card-value {
    font-size: 1.7rem;
    font-weight: 900;
    font-family: var(--font-heading);
    color: #13131f;
    margin: 0;
    line-height: 1;
}

[data-theme="dark"] .admin-kpi-card .card-value {
    color: #f0f4ff;
}

.admin-kpi-card--primary .card-value {
    color: #d81f26;
}

/* ── Email template tiles ──────────────────────────────────────── */
.email-template-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.email-template-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.1rem 0.75rem;
    border-radius: 0.85rem;
    border: 1px solid #e5e7ee;
    background: #f8f9fc;
    cursor: pointer;
    transition: background 0.15s, box-shadow 0.15s, transform 0.15s;
    font-weight: 700;
    font-size: 0.8rem;
    text-align: center;
    color: #13131f;
}

[data-theme="dark"] .email-template-tile {
    background: #0b1220;
    border-color: #182235;
    color: #f0f4ff;
}

.email-template-tile:hover {
    background: #fff;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    transform: translateY(-2px);
    border-color: #d81f26;
}

.email-template-tile__icon { font-size: 1.6rem; line-height: 1; }
.email-template-tile__label { font-size: 0.78rem; }

/* ── Communications two-column layout ─────────────────────────── */
.comm-layout {
    display: grid;
    grid-template-columns: 230px 1fr;
    gap: 1.25rem;
    align-items: start;
    margin-top: 0.5rem;
}

.comm-student-list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    border-right: 1px solid #e5e7ee;
    padding-right: 1rem;
}

[data-theme="dark"] .comm-student-list {
    border-right-color: #182235;
}

.comm-search {
    padding: 0.55rem 0.8rem;
    border-radius: 0.6rem;
    border: 1px solid #e5e7ee;
    font-size: 1rem;
    width: 100%;
    background: #f8f9fc;
    color: #13131f;
}

[data-theme="dark"] .comm-search {
    background: #0b1220;
    border-color: #182235;
    color: #f0f4ff;
}

.comm-roster-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    max-height: 55vh;
    overflow-y: auto;
}

.comm-roster-list li {
    padding: 0.5rem 0.65rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    color: #444;
    transition: background 0.12s, color 0.12s;
}

[data-theme="dark"] .comm-roster-list li {
    color: rgba(255,255,255,0.7);
}

.comm-roster-list li:hover,
.comm-roster-list li.is-selected {
    background: rgba(216,31,38,0.08);
    color: #d81f26;
}

.comm-thread {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.comm-thread__header {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.comm-thread__name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #13131f;
}

[data-theme="dark"] .comm-thread__name {
    color: #f0f4ff;
}

.student-notes-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
}

.student-notes-filter button {
    padding: 0.28rem 0.65rem;
    border-radius: 2rem;
    border: 1px solid #e5e7ee;
    background: #f8f9fc;
    font-size: 0.76rem;
    font-weight: 700;
    cursor: pointer;
    color: #666;
    transition: background 0.12s, color 0.12s;
}

.student-notes-filter button.is-active,
.student-notes-filter button:hover {
    background: #d81f26;
    color: #fff;
    border-color: #d81f26;
}

.comm-compose-form {
    display: grid;
    gap: 0.6rem;
    background: #f8f9fc;
    border-radius: 0.75rem;
    padding: 0.85rem;
    border: 1px solid #e5e7ee;
}

[data-theme="dark"] .comm-compose-form {
    background: #0b1220;
    border-color: #182235;
}

.comm-compose-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

/* ── Settings action grid ──────────────────────────────────────── */
.settings-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.settings-action-btn {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 1.1rem 1.25rem;
    border-radius: 0.9rem;
    border: 1px solid #e5e7ee;
    background: #f8f9fc;
    cursor: pointer;
    text-align: left;
    transition: background 0.15s, box-shadow 0.15s;
    width: 100%;
}

[data-theme="dark"] .settings-action-btn {
    background: #0b1220;
    border-color: #182235;
}

.settings-action-btn:hover {
    background: #fff;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

[data-theme="dark"] .settings-action-btn:hover {
    background: #0f1829;
}

.settings-action-btn--danger { border-color: rgba(216,31,38,0.3); }
.settings-action-btn--danger:hover { background: rgba(216,31,38,0.06); box-shadow: none; }
.settings-action-btn--info { cursor: default; }

.settings-action-btn__icon { font-size: 1.4rem; line-height: 1; }

.settings-action-btn__label {
    font-weight: 700;
    font-family: var(--font-heading);
    letter-spacing: 0.05em;
    font-size: 0.95rem;
    color: #13131f;
}

[data-theme="dark"] .settings-action-btn__label {
    color: #f0f4ff;
}

/* ── Mobile breakpoints ────────────────────────────────────────── */
@media (max-width: 1200px) {
    .admin-dashboard-grid { grid-template-columns: 1fr; }
    .admin-hero-tiles { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
    body.admin-active .admin-shell {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
    }
    body.admin-active .admin-sidebar {
        height: auto;
        max-height: 45vh;
        overflow-y: auto;
    }
    body.admin-active .admin-main {
        height: calc(100vh - 45vh);
        overflow-y: auto;
    }
    .admin-hero-tiles { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
    body.admin-active #admin-main-content { padding: 1rem; }
}

@media (max-width: 600px) {
    .admin-hero-tiles { grid-template-columns: 1fr; }
    .comm-layout { grid-template-columns: 1fr; }
    .comm-student-list { border-right: none; border-bottom: 1px solid #e5e7ee; padding-right: 0; padding-bottom: 1rem; }
    .comm-compose-row { grid-template-columns: 1fr; }
}
    padding: 0.85rem 1rem;
    border-right: 1px solid #e5e7ee;
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

[data-theme="dark"] body.admin-active .admin-roster-card {
    background: #0f1829;
    border-right-color: #182235;
}

body.admin-active .admin-roster-card:last-child { border-right: none; }

body.admin-active .card-label {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #999;
    margin: 0;
}

body.admin-active .card-value {
    font-size: 1.4rem;
    font-weight: 900;
    font-family: var(--font-heading);
    color: #13131f;
    margin: 0;
    line-height: 1;
}

[data-theme="dark"] body.admin-active .card-value {
    color: #f0f4ff;
}

/* ── admin-enroll__grid style boost ── */
body.admin-active .admin-enroll__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.85rem;
}

body.admin-active .admin-enroll__grid label {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: #555;
    letter-spacing: 0.04em;
}

[data-theme="dark"] body.admin-active .admin-enroll__grid label {
    color: rgba(255,255,255,0.6);
}

body.admin-active .admin-enroll__grid input,
body.admin-active .admin-enroll__grid select,
body.admin-active .admin-enroll__grid textarea {
    padding: 0.52rem 0.75rem;
    border-radius: 0.5rem;
    border: 1px solid #dde1ec;
    background: #fff;
    font-size: 1rem;
    color: #13131f;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.15s, box-shadow 0.15s;
}

[data-theme="dark"] body.admin-active .admin-enroll__grid input,
[data-theme="dark"] body.admin-active .admin-enroll__grid select {
    background: #0b1220;
    border-color: #182235;
    color: #f0f4ff;
}

body.admin-active .admin-enroll__grid input:focus,
body.admin-active .admin-enroll__grid select:focus {
    outline: none;
    border-color: #d81f26;
    box-shadow: 0 0 0 3px rgba(216,31,38,0.1);
}

body.admin-active .admin-enroll__actions {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-top: 1rem;
    flex-wrap: wrap;
    padding: 0 1.5rem 1.25rem;
}

/* ── Accordion style ── */
body.admin-active .admin-accordion {
    background: #fff;
    border: 1px solid #e5e7ee;
    border-radius: 1rem;
    overflow: hidden;
    margin-bottom: 1.25rem;
}

[data-theme="dark"] body.admin-active .admin-accordion {
    background: #0f1829;
    border-color: #182235;
}

body.admin-active .admin-accordion__trigger {
    padding: 1.1rem 1.5rem;
    background: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: none;
    color: #13131f;
    transition: background 0.15s;
}

[data-theme="dark"] body.admin-active .admin-accordion__trigger {
    background: #0f1829;
    color: #f0f4ff;
}

body.admin-active .admin-accordion__trigger:hover {
    background: #fafbfe;
}

body.admin-active .admin-accordion[open] .admin-accordion__trigger {
    border-bottom: 1px solid #e5e7ee;
}

body.admin-active .admin-accordion > div {
    padding: 1.25rem 1.5rem;
}

/* ── Form status messages ── */
body.admin-active .form-status {
    font-size: 0.83rem;
    font-weight: 600;
    padding: 0.4rem 0.75rem;
    border-radius: 0.45rem;
    min-height: 1rem;
}

body.admin-active .form-status.is-success {
    background: rgba(16,185,129,0.1);
    color: #0f9d74;
}

body.admin-active .form-status.is-error {
    background: rgba(216,31,38,0.08);
    color: #c01414;
}

/* ── btn-ghost upgrade ── */
body.admin-active .btn-ghost {
    padding: 0.45rem 0.85rem;
    font-size: 0.83rem;
    font-weight: 700;
    border-radius: 0.5rem;
    border: 1.5px solid #e5e7ee;
    background: #fff;
    color: #444;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
}

body.admin-active .btn-ghost:hover {
    border-color: #d81f26;
    color: #d81f26;
    background: rgba(216,31,38,0.04);
}

[data-theme="dark"] body.admin-active .btn-ghost {
    background: #0f1829;
    border-color: #182235;
    color: rgba(255,255,255,0.7);
}

/* ── admin-topbar__actions spacing ── */
body.admin-active .admin-topbar__actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

/* ── admin-event-list upgrade ── */
body.admin-active .admin-event-list {
    list-style: none;
    padding: 0.75rem 1.5rem;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

body.admin-active .admin-event-list li {
    padding: 0.6rem 0;
    border-bottom: 1px solid #f4f5f8;
    font-size: 0.86rem;
    color: #444;
}

[data-theme="dark"] body.admin-active .admin-event-list li {
    border-bottom-color: #182235;
    color: rgba(255,255,255,0.7);
}

body.admin-active .admin-event-list li:last-child {
    border-bottom: none;
}

/* ── admin-pill upgrade ── */
body.admin-active .admin-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.22rem 0.6rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

body.admin-active .admin-pill--warning {
    background: rgba(245,158,11,0.14);
    color: #92600a;
}

body.admin-active .admin-pill--success {
    background: rgba(16,185,129,0.12);
    color: #0f9d74;
}

body.admin-active .admin-pill--danger {
    background: rgba(216,31,38,0.1);
    color: #b91c1c;
}

/* ── Banner form grid ── */
body.admin-active .admin-banner-form__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.85rem;
    margin-bottom: 0.85rem;
}

body.admin-active .admin-banner-form label {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: #555;
}

body.admin-active .admin-banner-form input,
body.admin-active .admin-banner-form select {
    padding: 0.52rem 0.75rem;
    border-radius: 0.5rem;
    border: 1px solid #dde1ec;
    background: #fff;
    font-size: 0.87rem;
    color: #13131f;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.15s, box-shadow 0.15s;
}

body.admin-active .admin-banner-form input:focus {
    outline: none;
    border-color: #d81f26;
    box-shadow: 0 0 0 3px rgba(216,31,38,0.1);
}

body.admin-active .admin-banner-list {
    padding: 0.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* ── class-modal broadcast/filter row ── */
body.admin-active .class-filter-row,
body.admin-active .class-broadcast-row {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    padding: 0.75rem 1.5rem;
    border-bottom: 1px solid #f0f1f5;
}

/* ── Drawer (slide panel) styling ── */
body.admin-active .admin-drawer__panel {
    background: #fff;
    box-shadow: -4px 0 40px rgba(0,0,0,0.14);
}

[data-theme="dark"] body.admin-active .admin-drawer__panel {
    background: #0f1829;
}

body.admin-active .admin-drawer__header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #f0f1f5;
}

[data-theme="dark"] body.admin-active .admin-drawer__header {
    border-bottom-color: #182235;
}

body.admin-active .admin-drawer__header h3 {
    font-size: 1.1rem;
    font-weight: 800;
    font-family: var(--font-heading);
    margin: 0.25rem 0 0;
    color: #13131f;
}

[data-theme="dark"] body.admin-active .admin-drawer__header h3 {
    color: #f0f4ff;
}

body.admin-active .admin-drawer__close {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    font-size: 0.82rem;
    color: #888;
    font-weight: 700;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0.3rem 0.5rem;
}

body.admin-active .admin-drawer__close:hover {
    color: #d81f26;
}

body.admin-active .admin-email-form,
body.admin-active .admin-email-columns {
    padding: 1.25rem 1.5rem;
    display: grid;
    gap: 1rem;
}

body.admin-active .admin-email-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    padding: 1.25rem 1.5rem;
}

@media (max-width: 640px) {
    body.admin-active .admin-email-columns {
        grid-template-columns: 1fr;
    }
}

body.admin-active .admin-email-left,
body.admin-active .admin-email-right {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

body.admin-active .admin-email-form label,
body.admin-active .email-panel label {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: #555;
}

body.admin-active .admin-email-form input,
body.admin-active .admin-email-form select,
body.admin-active .admin-email-form textarea,
body.admin-active .email-panel input,
body.admin-active .email-panel select,
body.admin-active .email-panel textarea {
    padding: 0.52rem 0.75rem;
    border-radius: 0.5rem;
    border: 1px solid #dde1ec;
    background: #fff;
    font-size: 1rem;
    color: #13131f;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.15s, box-shadow 0.15s;
}

body.admin-active .admin-email-form input:focus,
body.admin-active .email-panel input:focus,
body.admin-active .email-panel select:focus,
body.admin-active .email-panel textarea:focus {
    outline: none;
    border-color: #d81f26;
    box-shadow: 0 0 0 3px rgba(216,31,38,0.1);
}

body.admin-active .email-recipient-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #f0f1f5;
}

/* ── Student drawer ── */
body.admin-active .student-modal__header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #f0f1f5;
    flex-wrap: wrap;
}

body.admin-active .student-modal__avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #d81f26;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    flex-shrink: 0;
}

body.admin-active .student-modal__stats {
    display: flex;
    gap: 0;
    border-bottom: 1px solid #f0f1f5;
}

body.admin-active .profile-metric {
    flex: 1;
    padding: 0.85rem 1rem;
    border-right: 1px solid #f0f1f5;
    text-align: center;
}

body.admin-active .profile-metric:last-child { border-right: none; }

body.admin-active .profile-metric__label {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #999;
    margin: 0 0 0.2rem;
}

body.admin-active .profile-metric__value {
    font-size: 1.4rem;
    font-weight: 900;
    font-family: var(--font-heading);
    color: #d81f26;
    margin: 0;
}

body.admin-active .student-modal__nav {
    display: flex;
    border-bottom: 1px solid #f0f1f5;
    overflow-x: auto;
    padding: 0 1.5rem;
    gap: 0;
}

body.admin-active .student-modal__nav button {
    padding: 0.75rem 1rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: #888;
    background: none;
    border: none;
    border-bottom: 2.5px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    transition: color 0.15s, border-color 0.15s;
}

body.admin-active .student-modal__nav button.is-active,
body.admin-active .student-modal__nav button:hover {
    color: #d81f26;
    border-bottom-color: #d81f26;
}

body.admin-active .student-modal__content {
    overflow-y: auto;
}

body.admin-active .student-modal__card {
    padding: 1.25rem 1.5rem;
}

body.admin-active .student-modal__card-head {
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f0f1f5;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

body.admin-active .student-modal__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 0.85rem;
    margin-bottom: 1rem;
}

body.admin-active .student-modal__grid label {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: #555;
}

body.admin-active .student-modal__grid input,
body.admin-active .student-modal__grid select,
body.admin-active .student-modal__grid textarea {
    padding: 0.5rem 0.7rem;
    border-radius: 0.5rem;
    border: 1px solid #dde1ec;
    background: #fff;
    font-size: 0.86rem;
    color: #13131f;
    width: 100%;
    box-sizing: border-box;
}

body.admin-active .student-modal__grid input:focus,
body.admin-active .student-modal__grid select:focus {
    outline: none;
    border-color: #d81f26;
    box-shadow: 0 0 0 3px rgba(216,31,38,0.1);
}

body.admin-active .student-modal__actions-row {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}

body.admin-active .student-modal__timeline {
    list-style: none;
    padding: 0;
    margin: 0.75rem 0 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

body.admin-active .student-modal__timeline li {
    padding: 0.65rem 0;
    border-bottom: 1px solid #f4f5f8;
    font-size: 0.85rem;
    color: #444;
}

[data-theme="dark"] body.admin-active .student-modal__timeline li {
    border-bottom-color: #182235;
    color: rgba(255,255,255,0.7);
}

/* ── class-panel drawer columns ── */
body.admin-active .class-modal__body--drawer {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding: 1rem 1.5rem;
}

body.admin-active .class-modal__column h4 {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #888;
    margin: 0 0 0.5rem;
}

body.admin-active .class-modal__list {
    list-style: none;
    padding: 0;
    margin: 0;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

body.admin-active .class-modal__list li {
    padding: 0.5rem 0.65rem;
    background: #f8f9fc;
    border-radius: 0.5rem;
    font-size: 0.84rem;
    border: 1px solid #e5e7ee;
}

body.admin-active .class-modal__footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #f0f1f5;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

body.admin-active .class-modal__fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.75rem;
}

body.admin-active .class-modal__fields label {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: #555;
}

body.admin-active .class-modal__fields input,
body.admin-active .class-modal__fields select {
    padding: 0.5rem 0.7rem;
    border-radius: 0.5rem;
    border: 1px solid #dde1ec;
    font-size: 0.86rem;
    background: #fff;
    color: #13131f;
    width: 100%;
}

body.admin-active .class-modal__actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}

/* ================================================================
   RUBY DASHBOARD MATCH — ARA TKD Style
   ================================================================ */

/* ── KPI Hero Tiles — Ruby style: white circle icon + label/value ── */
body.admin-active .admin-hero-tile {
    background: #d81f26;
    border-radius: 1rem;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    color: #fff;
    box-shadow: 0 8px 28px rgba(216,31,38,0.38);
    transition: transform 0.15s, box-shadow 0.15s;
}

body.admin-active .admin-hero-tile:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 36px rgba(216,31,38,0.45);
}

body.admin-active .admin-hero-tile__circle {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: rgba(255,255,255,0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

body.admin-active .admin-hero-tile__circle svg {
    width: 28px;
    height: 28px;
    stroke: #fff;
}

body.admin-active .admin-hero-tile__body {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

body.admin-active .admin-hero-tile__label {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0.82;
    margin: 0;
}

body.admin-active .admin-hero-tile__value {
    font-size: 2.2rem;
    font-weight: 900;
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
    line-height: 1;
    margin: 0;
}

/* ── Sidebar quick-links — Ruby style ── */
body.admin-active .admin-sidebar__quicklinks {
    padding: 0.5rem 1rem 0.75rem;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    margin-bottom: 0.25rem;
}

body.admin-active .admin-sidebar__quicklinks-label {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.35);
    margin: 0 0 0.5rem;
}

body.admin-active .admin-sidebar__quicklinks-row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

body.admin-active .admin-quicklink {
    width: 44px;
    height: 44px;
    border-radius: 0.65rem;
    background: rgba(255,255,255,0.07);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}

body.admin-active .admin-quicklink svg {
    width: 20px;
    height: 20px;
    stroke: rgba(255,255,255,0.55);
    transition: stroke 0.15s;
}

body.admin-active .admin-quicklink:hover {
    background: rgba(255,255,255,0.14);
}

body.admin-active .admin-quicklink:hover svg {
    stroke: #fff;
}

body.admin-active .admin-quicklink--active {
    background: #d81f26;
    box-shadow: 0 4px 14px rgba(216,31,38,0.5);
}

body.admin-active .admin-quicklink--active svg {
    stroke: #fff;
}

/* ── Topbar — Ruby 3-part layout ── */
body.admin-active #admin-topbar {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1.25rem;
    padding: 0.85rem 1.5rem;
    background: #fff;
    border-bottom: 1px solid #e5e7ee;
    position: sticky;
    top: 0;
    z-index: 50;
}

[data-theme="dark"] body.admin-active #admin-topbar {
    background: #0f1829;
    border-bottom-color: #182235;
}

body.admin-active .admin-topbar__welcome {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

body.admin-active .admin-topbar__home-pill {
    width: 40px;
    height: 40px;
    border-radius: 0.65rem;
    border: 1.5px solid #d81f26;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

body.admin-active .admin-topbar__home-pill svg {
    width: 18px;
    height: 18px;
    stroke: #d81f26;
}

body.admin-active .admin-topbar__title {
    font-size: 1.05rem;
    font-weight: 800;
    font-family: var(--font-heading);
    letter-spacing: 0.04em;
    color: #13131f;
    margin: 0;
    white-space: nowrap;
}

[data-theme="dark"] body.admin-active .admin-topbar__title {
    color: #f0f4ff;
}

/* ── Topbar search ── */
body.admin-active .admin-topbar__search-wrap {
    position: relative;
    max-width: 420px;
    width: 100%;
    justify-self: center;
}

body.admin-active .admin-topbar__search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    stroke: #aaa;
    pointer-events: none;
}

body.admin-active .admin-topbar__search {
    width: 100%;
    padding: 0.55rem 0.9rem 0.55rem 2.4rem;
    border-radius: 0.65rem;
    border: 1px solid #e5e7ee;
    background: #f8f9fc;
    font-size: 0.88rem;
    color: #13131f;
    box-sizing: border-box;
    transition: border-color 0.15s, box-shadow 0.15s;
}

body.admin-active .admin-topbar__search:focus {
    outline: none;
    border-color: #d81f26;
    box-shadow: 0 0 0 3px rgba(216,31,38,0.1);
    background: #fff;
}

[data-theme="dark"] body.admin-active .admin-topbar__search {
    background: #0b1220;
    border-color: #182235;
    color: #f0f4ff;
}

/* ── Topbar avatar — Ruby user circle ── */
body.admin-active .admin-topbar__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #d81f26;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 900;
    font-family: var(--font-heading);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(216,31,38,0.4);
    border: 2px solid rgba(255,255,255,0.9);
    cursor: default;
}

/* ── Ruby secondary stat row ── */
body.admin-active .admin-ruby-stat-row {
    display: flex;
    gap: 0;
    border-top: 1px solid #f0f1f5;
    flex-wrap: wrap;
}

[data-theme="dark"] body.admin-active .admin-ruby-stat-row {
    border-top-color: #182235;
}

body.admin-active .admin-ruby-stat-row--stacked {
    flex-direction: column;
    border-top: none;
    padding: 0.5rem 1.5rem 1rem;
    gap: 0.75rem;
}

body.admin-active .admin-ruby-stat {
    flex: 1;
    min-width: 120px;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1rem 1.25rem;
    border-right: 1px solid #f0f1f5;
}

[data-theme="dark"] body.admin-active .admin-ruby-stat {
    border-right-color: #182235;
}

body.admin-active .admin-ruby-stat:last-child {
    border-right: none;
}

body.admin-active .admin-ruby-stat-row--stacked .admin-ruby-stat {
    border-right: none;
    padding: 0;
}

body.admin-active .admin-ruby-stat__icon {
    width: 46px;
    height: 46px;
    border-radius: 0.65rem;
    background: #d81f26;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(216,31,38,0.3);
}

body.admin-active .admin-ruby-stat__icon svg {
    width: 22px;
    height: 22px;
    stroke: #fff;
}

body.admin-active .admin-ruby-stat__label {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #999;
    margin: 0 0 0.2rem;
}

body.admin-active .admin-ruby-stat__value {
    font-size: 1.5rem;
    font-weight: 900;
    font-family: var(--font-heading);
    color: #13131f;
    margin: 0;
    line-height: 1;
}

[data-theme="dark"] body.admin-active .admin-ruby-stat__value {
    color: #f0f4ff;
}

/* ── Tighten admin card padding ── */
body.admin-active .admin-card {
    margin-bottom: 1.25rem;
}

/* ── Sidebar brand tighten ── */
body.admin-active .admin-sidebar__brand {
    padding: 1.25rem 1rem 0.85rem;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}

/* ── Admin topbar meta hidden (replaced by welcome layout) ── */
body.admin-active .admin-topbar__meta {
    display: none;
}

/* ================================================================
   APEX DARK SHELL — ARA TKD Edition
   Full dark navy theme across the entire admin panel
   ================================================================ */

/* ── Base dark shell ── */
body.admin-active > #admin-dashboard {
    background: #0d1117 !important;
}

body.admin-active .admin-main {
    background: #0d1117 !important;
}

body.admin-active #admin-topbar {
    background: #161b27 !important;
    border-bottom: 1px solid rgba(255,255,255,0.07) !important;
}

body.admin-active .admin-topbar__title {
    color: #e8eaed !important;
}

body.admin-active .admin-topbar__search {
    background: rgba(255,255,255,0.06) !important;
    border-color: rgba(255,255,255,0.1) !important;
    color: #e8eaed !important;
}

body.admin-active .admin-topbar__search::placeholder {
    color: rgba(255,255,255,0.3);
}

body.admin-active .admin-topbar__search-icon {
    stroke: rgba(255,255,255,0.3) !important;
}

body.admin-active .admin-topbar__home-pill {
    border-color: rgba(216,31,38,0.55) !important;
    background: rgba(216,31,38,0.1) !important;
}

body.admin-active .admin-topbar__home-pill svg {
    stroke: #d81f26 !important;
}

/* ── Dark cards ── */
body.admin-active .admin-card,
body.admin-active .ara-card {
    background: #161b27 !important;
    border-color: rgba(255,255,255,0.07) !important;
    box-shadow: 0 2px 16px rgba(0,0,0,0.35) !important;
}

body.admin-active .ara-card__header,
body.admin-active .admin-card__header,
body.admin-active .admin-summary__header {
    border-bottom-color: rgba(255,255,255,0.07) !important;
}

body.admin-active .ara-card__title,
body.admin-active .admin-card__title {
    color: #e8eaed !important;
}

body.admin-active .ara-meta,
body.admin-active .admin-card__meta {
    color: rgba(255,255,255,0.4) !important;
}

body.admin-active .ara-eyebrow {
    color: #d81f26 !important;
}

/* ── Dark tables — Apex style ── */
body.admin-active .admin-table thead th,
body.admin-active .ara-table thead th {
    background: #1a2035 !important;
    color: rgba(255,255,255,0.38) !important;
    border-bottom-color: rgba(255,255,255,0.08) !important;
}

body.admin-active .admin-table tbody tr,
body.admin-active .ara-table tbody tr {
    border-bottom-color: rgba(255,255,255,0.05) !important;
}

body.admin-active .admin-table tbody tr:hover,
body.admin-active .ara-table tbody tr:hover {
    background: rgba(255,255,255,0.03) !important;
}

body.admin-active .admin-table td,
body.admin-active .ara-table td {
    color: rgba(255,255,255,0.78) !important;
}

body.admin-active .ara-table__empty {
    color: rgba(255,255,255,0.3) !important;
}

body.admin-active .admin-table-wrap {
    background: transparent;
}

/* ── Nav — Apex full-width red pill for active ── */
body.admin-active .admin-nav__item {
    color: rgba(255,255,255,0.6) !important;
    border-radius: 0.65rem !important;
    margin: 0 0.5rem !important;
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
}

body.admin-active .admin-nav__item:hover {
    background: rgba(255,255,255,0.06) !important;
    color: #fff !important;
}

body.admin-active .admin-nav__item.is-active {
    background: #d81f26 !important;
    color: #fff !important;
    border-radius: 0.65rem !important;
    box-shadow: 0 4px 16px rgba(216,31,38,0.4) !important;
}

body.admin-active .admin-nav__item.is-active .admin-nav__badge {
    background: rgba(255,255,255,0.25) !important;
    color: #fff !important;
}

/* ── Filter bar — dark ── */
body.admin-active .ara-filter-bar {
    background: #161b27 !important;
    border-bottom-color: rgba(255,255,255,0.07) !important;
}

body.admin-active .ara-search,
body.admin-active .ara-select {
    background: rgba(255,255,255,0.06) !important;
    border-color: rgba(255,255,255,0.1) !important;
    color: #e8eaed !important;
}

body.admin-active .ara-search::placeholder {
    color: rgba(255,255,255,0.3) !important;
}

/* ── Pill buttons — Apex filter style ── */
body.admin-active .pill-button {
    background: rgba(255,255,255,0.06) !important;
    border-color: rgba(255,255,255,0.1) !important;
    color: rgba(255,255,255,0.65) !important;
}

body.admin-active .pill-button.is-active,
body.admin-active .pill-button:hover {
    background: #d81f26 !important;
    border-color: #d81f26 !important;
    color: #fff !important;
}

/* ── btn-ghost in dark ── */
body.admin-active .btn-ghost {
    background: rgba(255,255,255,0.06) !important;
    border-color: rgba(255,255,255,0.12) !important;
    color: rgba(255,255,255,0.7) !important;
}

body.admin-active .btn-ghost:hover {
    background: rgba(255,255,255,0.12) !important;
    border-color: rgba(255,255,255,0.2) !important;
    color: #fff !important;
}

/* ── Status pills — Apex colorful ── */
body.admin-active .admin-pill {
    font-size: 0.7rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    padding: 0.22rem 0.65rem !important;
    border-radius: 999px !important;
}

body.admin-active .admin-pill--warning {
    background: rgba(245,158,11,0.18) !important;
    color: #fbbf24 !important;
}

body.admin-active .admin-pill--success {
    background: rgba(52,211,153,0.15) !important;
    color: #34d399 !important;
}

body.admin-active .admin-pill--danger {
    background: rgba(248,113,113,0.15) !important;
    color: #f87171 !important;
}

/* ── Admin status badges in table rows ── */
body.admin-active .status-active,
body.admin-active [data-status="active"] {
    background: rgba(52,211,153,0.14);
    color: #34d399;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

body.admin-active .status-inactive,
body.admin-active [data-status="inactive"] {
    background: rgba(156,163,175,0.14);
    color: #9ca3af;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

body.admin-active .status-frozen,
body.admin-active [data-status="frozen"] {
    background: rgba(96,165,250,0.14);
    color: #60a5fa;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* ── Stat row / detail panel ── */
body.admin-active .ara-stat {
    background: #1a2035 !important;
    border-right-color: rgba(255,255,255,0.07) !important;
}

body.admin-active .ara-stat-row {
    border-color: rgba(255,255,255,0.07) !important;
}

body.admin-active .ara-stat__label {
    color: rgba(255,255,255,0.4) !important;
}

body.admin-active .ara-stat__value {
    color: #e8eaed !important;
}

body.admin-active .ara-detail-panel {
    background: #0d1117 !important;
}

body.admin-active .ara-section-label {
    color: #d81f26 !important;
    border-bottom-color: rgba(216,31,38,0.2) !important;
}

/* ── Admin roster cards ── */
body.admin-active .admin-roster-cards {
    border-color: rgba(255,255,255,0.07) !important;
}

body.admin-active .admin-roster-card {
    background: #1a2035 !important;
    border-right-color: rgba(255,255,255,0.07) !important;
}

body.admin-active .card-label {
    color: rgba(255,255,255,0.4) !important;
}

body.admin-active .card-value {
    color: #e8eaed !important;
}

body.admin-active .admin-roster-detail {
    background: #0d1117 !important;
}

/* ── Form inputs — dark ── */
body.admin-active .ara-label > span,
body.admin-active .admin-enroll__grid label {
    color: rgba(255,255,255,0.55) !important;
}

body.admin-active .ara-label input,
body.admin-active .ara-label select,
body.admin-active .ara-label textarea,
body.admin-active .ara-form input:not([type="checkbox"]):not([type="radio"]),
body.admin-active .ara-form select,
body.admin-active .ara-form textarea,
body.admin-active .admin-enroll__grid input,
body.admin-active .admin-enroll__grid select,
body.admin-active .admin-enroll__grid textarea {
    background: #0d1117 !important;
    border-color: rgba(255,255,255,0.1) !important;
    color: #e8eaed !important;
}

body.admin-active .ara-inset-form {
    background: #0d1117 !important;
    border-color: rgba(255,255,255,0.07) !important;
}

body.admin-active .ara-checkbox-label {
    color: rgba(255,255,255,0.75) !important;
}

/* ── Info tiles (classes tab) ── */
body.admin-active .ara-info-tile {
    background: #1a2035 !important;
    border-color: rgba(255,255,255,0.07) !important;
}

body.admin-active .ara-info-tile__label {
    color: rgba(255,255,255,0.38) !important;
}

body.admin-active .ara-info-tile__value {
    color: #e8eaed !important;
}

/* ── Tier badges ── */
body.admin-active .ara-tier-badge {
    background: #1a2035 !important;
    border-color: rgba(255,255,255,0.07) !important;
}

body.admin-active .ara-tier-badge__label {
    color: rgba(255,255,255,0.4) !important;
}

/* ── Accordion ── */
body.admin-active details.ara-card,
body.admin-active details.admin-accordion {
    background: #161b27 !important;
    border-color: rgba(255,255,255,0.07) !important;
}

body.admin-active .ara-accordion__trigger {
    background: #161b27 !important;
    color: #e8eaed !important;
    border-bottom-color: rgba(255,255,255,0.07) !important;
}

body.admin-active .ara-badge--outline {
    color: #d81f26 !important;
    border-color: rgba(216,31,38,0.4) !important;
}

/* ── Event list ── */
body.admin-active .admin-event-list li {
    border-bottom-color: rgba(255,255,255,0.06) !important;
    color: rgba(255,255,255,0.7) !important;
}

/* ── Ruby stat row dark ── */
body.admin-active .admin-ruby-stat-row {
    border-top-color: rgba(255,255,255,0.07) !important;
}

body.admin-active .admin-ruby-stat {
    border-right-color: rgba(255,255,255,0.07) !important;
}

body.admin-active .admin-ruby-stat__label {
    color: rgba(255,255,255,0.38) !important;
}

body.admin-active .admin-ruby-stat__value {
    color: #e8eaed !important;
}

/* ── Drawers — Apex dark ── */
body.admin-active .admin-drawer__panel {
    background: #161b27 !important;
    box-shadow: -6px 0 48px rgba(0,0,0,0.55) !important;
}

body.admin-active .admin-drawer__header {
    border-bottom-color: rgba(255,255,255,0.07) !important;
}

body.admin-active .admin-drawer__header h3 {
    color: #e8eaed !important;
}

body.admin-active .admin-drawer__close {
    color: rgba(255,255,255,0.4) !important;
}

body.admin-active .admin-drawer__close:hover {
    color: #d81f26 !important;
}

/* ── Student modal ── */
body.admin-active .student-modal__header {
    border-bottom-color: rgba(255,255,255,0.07) !important;
}

body.admin-active .student-modal__stats {
    border-bottom-color: rgba(255,255,255,0.07) !important;
}

body.admin-active .profile-metric {
    border-right-color: rgba(255,255,255,0.07) !important;
}

body.admin-active .profile-metric__label {
    color: rgba(255,255,255,0.4) !important;
}

body.admin-active .student-modal__nav {
    border-bottom-color: rgba(255,255,255,0.07) !important;
}

body.admin-active .student-modal__nav button {
    color: rgba(255,255,255,0.45) !important;
}

body.admin-active .student-modal__nav button.is-active,
body.admin-active .student-modal__nav button:hover {
    color: #d81f26 !important;
    border-bottom-color: #d81f26 !important;
}

body.admin-active .student-modal__card-head {
    border-bottom-color: rgba(255,255,255,0.07) !important;
}

body.admin-active .student-modal__grid label {
    color: rgba(255,255,255,0.55) !important;
}

body.admin-active .student-modal__grid input,
body.admin-active .student-modal__grid select,
body.admin-active .student-modal__grid textarea {
    background: #0d1117 !important;
    border-color: rgba(255,255,255,0.1) !important;
    color: #e8eaed !important;
}

body.admin-active .student-modal__timeline li {
    border-bottom-color: rgba(255,255,255,0.06) !important;
    color: rgba(255,255,255,0.7) !important;
}

/* ── Communications ── */
body.admin-active .comm-sidebar,
body.admin-active .comm-thread,
body.admin-active .comm-layout {
    background: #161b27 !important;
    border-color: rgba(255,255,255,0.07) !important;
}

body.admin-active #comm-student-roster li {
    border-bottom-color: rgba(255,255,255,0.06) !important;
    color: rgba(255,255,255,0.75) !important;
}

body.admin-active #comm-student-roster li.is-selected {
    background: rgba(216,31,38,0.18) !important;
    color: #fff !important;
}

/* ── Settings grid ── */
body.admin-active .settings-action-tile {
    background: #1a2035 !important;
    border-color: rgba(255,255,255,0.07) !important;
    color: rgba(255,255,255,0.8) !important;
}

body.admin-active .settings-action-tile:hover {
    background: rgba(216,31,38,0.12) !important;
    border-color: rgba(216,31,38,0.3) !important;
}

/* ── Email template tiles ── */
body.admin-active .email-template-tile {
    background: #1a2035 !important;
    border-color: rgba(255,255,255,0.07) !important;
    color: rgba(255,255,255,0.8) !important;
}

body.admin-active .email-template-tile:hover {
    background: rgba(216,31,38,0.12) !important;
    border-color: rgba(216,31,38,0.3) !important;
}

/* ── Email form in drawer ── */
body.admin-active .admin-email-form label,
body.admin-active .email-panel label {
    color: rgba(255,255,255,0.55) !important;
}

body.admin-active .admin-email-form input,
body.admin-active .admin-email-form select,
body.admin-active .admin-email-form textarea,
body.admin-active .email-panel input,
body.admin-active .email-panel select,
body.admin-active .email-panel textarea {
    background: #0d1117 !important;
    border-color: rgba(255,255,255,0.1) !important;
    color: #e8eaed !important;
}

/* ── Banner form ── */
body.admin-active .admin-banner-form label {
    color: rgba(255,255,255,0.55) !important;
}

body.admin-active .admin-banner-form input,
body.admin-active .admin-banner-form select {
    background: #0d1117 !important;
    border-color: rgba(255,255,255,0.1) !important;
    color: #e8eaed !important;
}

/* ── Class panel ── */
body.admin-active .class-filter-row,
body.admin-active .class-broadcast-row {
    border-bottom-color: rgba(255,255,255,0.07) !important;
    background: #161b27;
}

body.admin-active .class-modal__column h4 {
    color: rgba(255,255,255,0.38) !important;
}

body.admin-active .class-modal__list li {
    background: #1a2035 !important;
    border-color: rgba(255,255,255,0.07) !important;
    color: rgba(255,255,255,0.75) !important;
}

body.admin-active .class-modal__footer {
    border-top-color: rgba(255,255,255,0.07) !important;
}

body.admin-active .class-modal__fields label {
    color: rgba(255,255,255,0.55) !important;
}

body.admin-active .class-modal__fields input,
body.admin-active .class-modal__fields select {
    background: #0d1117 !important;
    border-color: rgba(255,255,255,0.1) !important;
    color: #e8eaed !important;
}

/* ── Warning banner ── */
body.admin-active .ara-info-banner--warning {
    background: rgba(245,158,11,0.1) !important;
    color: #fbbf24 !important;
}

/* ── Sidebar footer ── */
body.admin-active .admin-sidebar__footer {
    color: rgba(255,255,255,0.4) !important;
    border-top-color: rgba(255,255,255,0.07) !important;
}

/* ── Apex summary header text ── */
body.admin-active .admin-summary__header h3 {
    color: #e8eaed !important;
}

/* ── Nav section labels ── */
body.admin-active .admin-nav__section-label {
    color: rgba(255,255,255,0.28) !important;
    letter-spacing: 0.12em !important;
}

/* ── Skeleton loader dark ── */
body.admin-active .skeleton {
    background: rgba(255,255,255,0.08) !important;
}

body.admin-active .admin-component-loading {
    background: #161b27 !important;
}

/* ── Report card dialog ── */
body.admin-active .admin-report-card__dialog {
    background: #161b27 !important;
    border-color: rgba(255,255,255,0.07) !important;
    color: #e8eaed !important;
}

/* ── KPI cards on dashboard ── */
body.admin-active .admin-kpi-card {
    background: #1a2035 !important;
    border-color: rgba(255,255,255,0.07) !important;
}

/* ================================================================
   APEX EXACT MATCH — ARA TKD Blue-Navy Edition (FINAL)
   Overrides all previous dark blocks with correct Apex palette
   ================================================================ */

/* ── Apex palette: blue-navy, not near-black ── */
body.admin-active > #admin-dashboard { background: #1a2035 !important; }
body.admin-active .admin-main        { background: #1a2035 !important; }

/* Sidebar: slightly darker blue than main */
body.admin-active .admin-sidebar {
    background: #161c30 !important;
    box-shadow: 2px 0 20px rgba(0,0,0,0.3) !important;
}

/* ── Topbar — full Apex layout ── */
body.admin-active #admin-topbar {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0 1.5rem !important;
    height: 64px !important;
    min-height: 64px !important;
    background: #161c30 !important;
    border-bottom: 1px solid rgba(255,255,255,0.07) !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 100 !important;
    gap: 1rem !important;
}

body.admin-active .admin-topbar__left {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

body.admin-active .admin-topbar__right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

/* Hamburger — red square, exact Apex */
body.admin-active .admin-hamburger {
    width: 40px;
    height: 40px;
    border-radius: 0.55rem;
    background: #d81f26;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(216,31,38,0.4);
}

body.admin-active .admin-hamburger span {
    width: 16px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    display: block;
}

/* Search bar */
body.admin-active .admin-topbar__search-wrap {
    position: relative;
    max-width: 380px;
    width: 100%;
}

body.admin-active .admin-topbar__search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 15px;
    height: 15px;
    stroke: rgba(255,255,255,0.35) !important;
    pointer-events: none;
}

body.admin-active .admin-topbar__search {
    width: 100%;
    padding: 0.55rem 0.9rem 0.55rem 2.25rem;
    border-radius: 0.55rem;
    border: 1px solid rgba(255,255,255,0.1) !important;
    background: rgba(255,255,255,0.06) !important;
    font-size: 0.87rem;
    color: #e8eaed !important;
    box-sizing: border-box;
    transition: border-color 0.15s, box-shadow 0.15s;
}

body.admin-active .admin-topbar__search::placeholder {
    color: rgba(255,255,255,0.3) !important;
}

body.admin-active .admin-topbar__search:focus {
    outline: none !important;
    border-color: #d81f26 !important;
    box-shadow: 0 0 0 3px rgba(216,31,38,0.2) !important;
}

/* Icon buttons (refresh, download, theme) */
body.admin-active .admin-icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 0.5rem;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.05);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, border-color 0.15s;
    flex-shrink: 0;
}

body.admin-active .admin-icon-btn svg {
    width: 17px;
    height: 17px;
    stroke: rgba(255,255,255,0.6);
    transition: stroke 0.15s;
}

body.admin-active .admin-icon-btn:hover {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.2);
}

body.admin-active .admin-icon-btn:hover svg {
    stroke: #fff;
}

/* Topbar divider + user info */
body.admin-active .admin-topbar__divider {
    width: 1px;
    height: 32px;
    background: rgba(255,255,255,0.1);
    margin: 0 0.25rem;
    flex-shrink: 0;
}

body.admin-active .admin-topbar__user {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    cursor: default;
}

body.admin-active .admin-topbar__avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #d81f26;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 900;
    font-family: var(--font-heading);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 2px solid rgba(255,255,255,0.2);
    box-shadow: 0 2px 8px rgba(216,31,38,0.4);
}

body.admin-active .admin-topbar__user-info {
    display: flex;
    flex-direction: column;
}

body.admin-active .admin-topbar__user-name {
    font-size: 0.87rem;
    font-weight: 700;
    color: #e8eaed;
    margin: 0;
    white-space: nowrap;
    line-height: 1.2;
}

body.admin-active .admin-topbar__user-role {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.38);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
}

/* ── Navigation — Apex exact ── */
body.admin-active .admin-nav {
    padding: 0.5rem 0;
}

body.admin-active .admin-nav__section-label {
    font-size: 0.62rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.15em !important;
    text-transform: uppercase !important;
    color: rgba(255,255,255,0.28) !important;
    padding: 1rem 1.25rem 0.35rem !important;
    margin: 0 !important;
}

body.admin-active .admin-nav__item {
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    padding: 0.65rem 1rem !important;
    margin: 0.1rem 0.75rem !important;
    border-radius: 0.6rem !important;
    border: none !important;
    background: transparent !important;
    color: rgba(255,255,255,0.55) !important;
    font-size: 0.88rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    text-align: left !important;
    width: calc(100% - 1.5rem) !important;
    transition: background 0.15s, color 0.15s !important;
    box-shadow: none !important;
}

body.admin-active .admin-nav__item:hover {
    background: rgba(255,255,255,0.07) !important;
    color: #fff !important;
}

body.admin-active .admin-nav__item.is-active {
    background: #d81f26 !important;
    color: #fff !important;
    box-shadow: 0 4px 16px rgba(216,31,38,0.4) !important;
}

body.admin-active .admin-nav__icon {
    font-size: 1.1rem !important;
    width: 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
}

body.admin-active .admin-nav__badge {
    margin-left: auto !important;
    background: rgba(255,255,255,0.2) !important;
    color: #fff !important;
    font-size: 0.62rem !important;
    font-weight: 800 !important;
    padding: 0.15rem 0.45rem !important;
    border-radius: 999px !important;
}

body.admin-active .admin-nav__item.is-active .admin-nav__badge {
    background: rgba(255,255,255,0.25) !important;
}

/* ── Sidebar brand ── */
body.admin-active .admin-sidebar__brand {
    padding: 1.1rem 1.25rem 1rem !important;
    border-bottom: 1px solid rgba(255,255,255,0.07) !important;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

body.admin-active .admin-sidebar__mark {
    width: 38px;
    height: 38px;
    background: #d81f26;
    border-radius: 0.55rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 900;
    color: #fff;
    font-family: var(--font-heading);
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(216,31,38,0.4);
}

body.admin-active .admin-sidebar__title {
    font-size: 0.95rem !important;
    font-weight: 800 !important;
    color: #fff !important;
    margin: 0 !important;
    font-family: var(--font-heading);
    letter-spacing: 0.04em;
}

body.admin-active .admin-sidebar__sub {
    font-size: 0.68rem !important;
    color: rgba(255,255,255,0.38) !important;
    margin: 0 !important;
    letter-spacing: 0.04em;
}

/* ── Quick links ── */
body.admin-active .admin-sidebar__quicklinks {
    padding: 0.75rem 1.25rem !important;
    border-bottom: 1px solid rgba(255,255,255,0.07) !important;
}

body.admin-active .admin-sidebar__quicklinks-label {
    font-size: 0.62rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.15em !important;
    text-transform: uppercase !important;
    color: rgba(255,255,255,0.28) !important;
    margin: 0 0 0.5rem !important;
}

body.admin-active .admin-sidebar__quicklinks-row {
    display: flex;
    gap: 0.5rem;
}

body.admin-active .admin-quicklink {
    width: 42px !important;
    height: 42px !important;
    border-radius: 0.6rem !important;
    background: rgba(255,255,255,0.07) !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

body.admin-active .admin-quicklink svg {
    width: 18px !important;
    height: 18px !important;
    stroke: rgba(255,255,255,0.5) !important;
}

body.admin-active .admin-quicklink:hover {
    background: rgba(255,255,255,0.13) !important;
}

body.admin-active .admin-quicklink:hover svg { stroke: #fff !important; }

body.admin-active .admin-quicklink--active {
    background: #d81f26 !important;
    border-color: transparent !important;
    box-shadow: 0 4px 12px rgba(216,31,38,0.45) !important;
}

body.admin-active .admin-quicklink--active svg { stroke: #fff !important; }

/* ── Sidebar footer ── */
body.admin-active .admin-sidebar__footer {
    padding: 1rem 1.25rem !important;
    border-top: 1px solid rgba(255,255,255,0.07) !important;
    color: rgba(255,255,255,0.35) !important;
    font-size: 0.78rem !important;
}

body.admin-active .admin-logout-btn {
    display: block !important;
    width: 100% !important;
    margin-top: 0.6rem !important;
    padding: 0.5rem 0.75rem !important;
    border-radius: 0.5rem !important;
    background: rgba(216,31,38,0.12) !important;
    border: 1px solid rgba(216,31,38,0.3) !important;
    color: #f87171 !important;
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    text-align: center !important;
    transition: background 0.15s !important;
}

body.admin-active .admin-logout-btn:hover {
    background: rgba(216,31,38,0.25) !important;
}

/* ── Content cards — Apex slightly lighter than bg ── */
body.admin-active .admin-card,
body.admin-active .ara-card {
    background: #1f2747 !important;
    border: 1px solid rgba(255,255,255,0.07) !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.25) !important;
    border-radius: 0.85rem !important;
}

body.admin-active .ara-card__header,
body.admin-active .admin-card__header,
body.admin-active .admin-summary__header {
    border-bottom-color: rgba(255,255,255,0.07) !important;
}

body.admin-active .ara-card__title,
body.admin-active .admin-card__title,
body.admin-active .admin-summary__header h3 {
    color: #e8eaed !important;
    margin: 0 !important;
}

body.admin-active .ara-meta,
body.admin-active .admin-card__meta {
    color: rgba(255,255,255,0.4) !important;
}

body.admin-active .ara-eyebrow { color: #d81f26 !important; }

/* ── Tables — Apex exact ── */
body.admin-active .admin-table thead th,
body.admin-active .ara-table thead th {
    background: #232d4b !important;
    color: rgba(255,255,255,0.4) !important;
    border-bottom: 2px solid rgba(255,255,255,0.08) !important;
    padding: 0.75rem 1rem !important;
    font-size: 0.72rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
}

body.admin-active .admin-table tbody tr,
body.admin-active .ara-table tbody tr {
    border-bottom: 1px solid rgba(255,255,255,0.05) !important;
}

body.admin-active .admin-table tbody tr:hover,
body.admin-active .ara-table tbody tr:hover {
    background: rgba(255,255,255,0.04) !important;
}

body.admin-active .admin-table td,
body.admin-active .ara-table td {
    color: rgba(255,255,255,0.78) !important;
    padding: 0.75rem 1rem !important;
}

body.admin-active .ara-table__empty {
    color: rgba(255,255,255,0.28) !important;
    padding: 3rem 1rem !important;
}

/* ── Filter bar & search ── */
body.admin-active .ara-filter-bar {
    background: #1f2747 !important;
    border-bottom: 1px solid rgba(255,255,255,0.07) !important;
    padding: 0.75rem 1.25rem !important;
}

body.admin-active .ara-search,
body.admin-active .ara-select {
    background: rgba(255,255,255,0.06) !important;
    border-color: rgba(255,255,255,0.1) !important;
    color: #e8eaed !important;
}

body.admin-active .ara-search::placeholder { color: rgba(255,255,255,0.3) !important; }

/* ── Pill buttons ── */
body.admin-active .pill-button {
    background: rgba(255,255,255,0.06) !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    color: rgba(255,255,255,0.6) !important;
    border-radius: 0.45rem !important;
    padding: 0.35rem 0.75rem !important;
    font-weight: 700 !important;
}

body.admin-active .pill-button.is-active,
body.admin-active .pill-button:hover {
    background: #d81f26 !important;
    border-color: #d81f26 !important;
    color: #fff !important;
}

/* ── Buttons ── */
body.admin-active .btn-ghost {
    background: rgba(255,255,255,0.06) !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    color: rgba(255,255,255,0.7) !important;
    border-radius: 0.5rem !important;
}

body.admin-active .btn-ghost:hover {
    background: rgba(255,255,255,0.12) !important;
    color: #fff !important;
}

/* ── Status pills ── */
body.admin-active .admin-pill { border-radius: 0.35rem !important; font-size: 0.7rem !important; font-weight: 800 !important; text-transform: uppercase !important; letter-spacing: 0.07em !important; padding: 0.22rem 0.6rem !important; }
body.admin-active .admin-pill--success  { background: rgba(52,211,153,0.15) !important; color: #34d399 !important; }
body.admin-active .admin-pill--warning  { background: rgba(251,191,36,0.15) !important; color: #fbbf24 !important; }
body.admin-active .admin-pill--danger   { background: rgba(248,113,113,0.15) !important; color: #f87171 !important; }

/* ── Stat rows (detail panel) ── */
body.admin-active .ara-stat-row { border-color: rgba(255,255,255,0.07) !important; }
body.admin-active .ara-stat { background: #232d4b !important; border-right-color: rgba(255,255,255,0.07) !important; }
body.admin-active .ara-stat__label { color: rgba(255,255,255,0.38) !important; }
body.admin-active .ara-stat__value { color: #e8eaed !important; }
body.admin-active .ara-detail-panel { background: #161c30 !important; }
body.admin-active .ara-section-label { color: #d81f26 !important; border-bottom-color: rgba(216,31,38,0.2) !important; }

/* Admin roster stat cards */
body.admin-active .admin-roster-cards { border-color: rgba(255,255,255,0.07) !important; }
body.admin-active .admin-roster-card  { background: #232d4b !important; border-right-color: rgba(255,255,255,0.07) !important; }
body.admin-active .card-label { color: rgba(255,255,255,0.38) !important; }
body.admin-active .card-value { color: #e8eaed !important; }
body.admin-active .admin-roster-detail { background: #161c30 !important; border-top-color: #d81f26 !important; }

/* ── Form inputs ── */
body.admin-active .ara-label > span,
body.admin-active .admin-enroll__grid label,
body.admin-active .admin-banner-form label,
body.admin-active .admin-email-form label,
body.admin-active .email-panel label,
body.admin-active .student-modal__grid label,
body.admin-active .class-modal__fields label {
    color: rgba(255,255,255,0.5) !important;
}

body.admin-active .ara-label input,
body.admin-active .ara-label select,
body.admin-active .ara-label textarea,
body.admin-active .ara-form input:not([type="checkbox"]):not([type="radio"]),
body.admin-active .ara-form select,
body.admin-active .ara-form textarea,
body.admin-active .admin-enroll__grid input,
body.admin-active .admin-enroll__grid select,
body.admin-active .admin-banner-form input,
body.admin-active .admin-email-form input,
body.admin-active .admin-email-form select,
body.admin-active .admin-email-form textarea,
body.admin-active .email-panel input,
body.admin-active .email-panel select,
body.admin-active .email-panel textarea,
body.admin-active .student-modal__grid input,
body.admin-active .student-modal__grid select,
body.admin-active .student-modal__grid textarea,
body.admin-active .class-modal__fields input,
body.admin-active .class-modal__fields select {
    background: rgba(255,255,255,0.06) !important;
    border-color: rgba(255,255,255,0.1) !important;
    color: #e8eaed !important;
}

body.admin-active .ara-inset-form { background: #161c30 !important; border-color: rgba(255,255,255,0.07) !important; }
body.admin-active .ara-checkbox-label { color: rgba(255,255,255,0.7) !important; }

/* ── Info tiles ── */
body.admin-active .ara-info-tile { background: #232d4b !important; border-color: rgba(255,255,255,0.07) !important; }
body.admin-active .ara-info-tile__label { color: rgba(255,255,255,0.38) !important; }
body.admin-active .ara-info-tile__value { color: #e8eaed !important; }

/* Tier badges */
body.admin-active .ara-tier-badge { background: #232d4b !important; border-color: rgba(255,255,255,0.07) !important; }
body.admin-active .ara-tier-badge__label { color: rgba(255,255,255,0.38) !important; }

/* ── Accordion ── */
body.admin-active details.ara-card,
body.admin-active details.admin-accordion {
    background: #1f2747 !important;
    border-color: rgba(255,255,255,0.07) !important;
}
body.admin-active .ara-accordion__trigger {
    background: #1f2747 !important;
    color: #e8eaed !important;
    border-bottom-color: rgba(255,255,255,0.07) !important;
}

/* ── Ruby stat row ── */
body.admin-active .admin-ruby-stat-row { border-top-color: rgba(255,255,255,0.07) !important; }
body.admin-active .admin-ruby-stat { border-right-color: rgba(255,255,255,0.07) !important; }
body.admin-active .admin-ruby-stat__label { color: rgba(255,255,255,0.38) !important; }
body.admin-active .admin-ruby-stat__value { color: #e8eaed !important; }

/* ── Event list ── */
body.admin-active .admin-event-list li { border-bottom-color: rgba(255,255,255,0.06) !important; color: rgba(255,255,255,0.65) !important; }

/* KPI tiles — keep bold red against dark bg */
body.admin-active .admin-kpi-card { background: #232d4b !important; border-color: rgba(255,255,255,0.07) !important; }

/* ── Drawers — Apex dark ── */
body.admin-active .admin-drawer__panel {
    background: #1f2747 !important;
    box-shadow: -6px 0 48px rgba(0,0,0,0.5) !important;
}
body.admin-active .admin-drawer__header { border-bottom-color: rgba(255,255,255,0.07) !important; }
body.admin-active .admin-drawer__header h3 { color: #e8eaed !important; }
body.admin-active .admin-drawer__close { color: rgba(255,255,255,0.4) !important; }
body.admin-active .admin-drawer__close:hover { color: #d81f26 !important; }

/* ── Student modal ── */
body.admin-active .student-modal__header { border-bottom-color: rgba(255,255,255,0.07) !important; }
body.admin-active .student-modal__stats { border-bottom-color: rgba(255,255,255,0.07) !important; }
body.admin-active .profile-metric { border-right-color: rgba(255,255,255,0.07) !important; }
body.admin-active .profile-metric__label { color: rgba(255,255,255,0.38) !important; }
body.admin-active .student-modal__nav { border-bottom-color: rgba(255,255,255,0.07) !important; }
body.admin-active .student-modal__nav button { color: rgba(255,255,255,0.45) !important; }
body.admin-active .student-modal__nav button.is-active,
body.admin-active .student-modal__nav button:hover { color: #d81f26 !important; border-bottom-color: #d81f26 !important; }
body.admin-active .student-modal__card-head { border-bottom-color: rgba(255,255,255,0.07) !important; }
body.admin-active .student-modal__timeline li { border-bottom-color: rgba(255,255,255,0.06) !important; color: rgba(255,255,255,0.65) !important; }

/* ── Comms ── */
body.admin-active .comm-sidebar,
body.admin-active .comm-thread,
body.admin-active .comm-layout { background: #1f2747 !important; border-color: rgba(255,255,255,0.07) !important; }
body.admin-active #comm-student-roster li { border-bottom-color: rgba(255,255,255,0.06) !important; color: rgba(255,255,255,0.75) !important; }
body.admin-active #comm-student-roster li.is-selected { background: rgba(216,31,38,0.2) !important; color: #fff !important; }

/* ── Settings + Email tiles ── */
body.admin-active .settings-action-tile { background: #232d4b !important; border-color: rgba(255,255,255,0.07) !important; color: rgba(255,255,255,0.8) !important; }
body.admin-active .settings-action-tile:hover { background: rgba(216,31,38,0.14) !important; border-color: rgba(216,31,38,0.3) !important; }
body.admin-active .email-template-tile { background: #232d4b !important; border-color: rgba(255,255,255,0.07) !important; color: rgba(255,255,255,0.8) !important; }
body.admin-active .email-template-tile:hover { background: rgba(216,31,38,0.14) !important; border-color: rgba(216,31,38,0.3) !important; }

/* ── Class panel ── */
body.admin-active .class-filter-row,
body.admin-active .class-broadcast-row { border-bottom-color: rgba(255,255,255,0.07) !important; background: #1f2747 !important; }
body.admin-active .class-modal__column h4 { color: rgba(255,255,255,0.38) !important; }
body.admin-active .class-modal__list li { background: #232d4b !important; border-color: rgba(255,255,255,0.07) !important; color: rgba(255,255,255,0.75) !important; }
body.admin-active .class-modal__footer { border-top-color: rgba(255,255,255,0.07) !important; }

/* ── Info banner ── */
body.admin-active .ara-info-banner--warning { background: rgba(245,158,11,0.1) !important; color: #fbbf24 !important; }

/* ── Skeleton loader ── */
body.admin-active .skeleton { background: rgba(255,255,255,0.07) !important; }
body.admin-active .admin-component-loading { background: #1f2747 !important; padding: 1.5rem !important; }

/* ── Admin enroll result box ── */
body.admin-active .ara-success-box { background: rgba(52,211,153,0.08) !important; border-color: rgba(52,211,153,0.25) !important; }

/* ══════════════════════════════════════════════════════════════════
   Booking / Trial Schedule Section
   ══════════════════════════════════════════════════════════════════ */
.booking-section { background: var(--bg-alt, #f8f9fa); }

.booking-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

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

/* Schedule cards */
.booking-schedule__title,
.booking-form__title {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 1.25rem;
    color: var(--text-primary, #0a0a0f);
}

.booking-slots {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.booking-slot {
    background: #fff;
    border: 1.5px solid rgba(0,0,0,0.08);
    border-radius: 1rem;
    padding: 1.1rem 1.25rem;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto auto;
    gap: 0.15rem 1rem;
    align-items: center;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.booking-slot:hover {
    border-color: rgba(216,31,38,0.35);
    box-shadow: 0 4px 16px rgba(216,31,38,0.1);
}

.booking-slot--asap { border-color: rgba(201,162,39,0.3); }

.booking-slot__day {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #888;
    grid-column: 1;
    grid-row: 1;
}

.booking-slot__time {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #d81f26;
    grid-column: 1;
    grid-row: 2;
    line-height: 1;
}

.booking-slot__name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary, #0a0a0f);
    grid-column: 1;
    grid-row: 3;
}

.booking-slot__meta {
    font-size: 0.78rem;
    color: #888;
    grid-column: 1;
    grid-row: 4;
}

.booking-slot__btn {
    grid-column: 2;
    grid-row: 1 / 5;
    background: #d81f26;
    color: #fff;
    border: none;
    border-radius: 0.6rem;
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
    align-self: center;
}

.booking-slot__btn:hover { background: #b01a20; }

@media (max-width: 480px) {
    .booking-slot { grid-template-columns: 1fr; }
    .booking-slot__btn { grid-column: 1; grid-row: auto; margin-top: 0.5rem; width: 100%; }
}

/* Booking form */
.booking-form-wrap {
    background: #fff;
    border: 1.5px solid rgba(0,0,0,0.08);
    border-radius: 1.25rem;
    padding: 2rem;
}

.booking-form { display: flex; flex-direction: column; gap: 0.85rem; }

.booking-form__field { display: flex; flex-direction: column; gap: 0.3rem; }

.booking-form__field label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary, #555);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.booking-form__field input,
.booking-form__field select,
.booking-form__field textarea {
    border: 1.5px solid rgba(0,0,0,0.12);
    border-radius: 0.5rem;
    padding: 0.65rem 0.85rem;
    font-size: 1rem;
    font-family: inherit;
    color: var(--text-primary, #0a0a0f);
    background: #fafafa;
    transition: border-color 0.2s;
    width: 100%;
}

.booking-form__field input:focus,
.booking-form__field select:focus,
.booking-form__field textarea:focus {
    outline: none;
    border-color: #d81f26;
    background: #fff;
}

.booking-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.booking-form__submit { margin-top: 0.5rem; }

.booking-form__status {
    font-size: 0.9rem;
    font-weight: 500;
    min-height: 1.4em;
    color: #22c55e;
    text-align: center;
}

.booking-form__status.error { color: #d81f26; }

/* Booking section — always light so text and cards are clean and readable */
.booking-section {
    background: #ffffff;
    border-top: 3px solid rgba(216,31,38,0.15);
    border-bottom: 3px solid rgba(216,31,38,0.10);
}
.booking-section .section-header h2 { color: #0a0a0f; }
.booking-section .section-header p   { color: #555; }
.booking-slot { background: #f8f9fb; }
.booking-form-wrap { background: #ffffff; }

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .booking-section { background: #ffffff; }
    :root:not([data-theme="light"]) .booking-section .section-header h2 { color: #0a0a0f; }
    :root:not([data-theme="light"]) .booking-section .section-header p   { color: #555; }
    :root:not([data-theme="light"]) .booking-slot { background: #f8f9fb; border-color: rgba(0,0,0,0.08); }
    :root:not([data-theme="light"]) .booking-slot__name { color: #0a0a0f; }
    :root:not([data-theme="light"]) .booking-slot__day  { color: #888; }
    :root:not([data-theme="light"]) .booking-form-wrap { background: #ffffff; border-color: rgba(0,0,0,0.1); }
    :root:not([data-theme="light"]) .booking-schedule__title,
    :root:not([data-theme="light"]) .booking-form__title { color: #0a0a0f; }
    :root:not([data-theme="light"]) .booking-form__field label { color: #555; }
    :root:not([data-theme="light"]) .booking-form__field input,
    :root:not([data-theme="light"]) .booking-form__field select,
    :root:not([data-theme="light"]) .booking-form__field textarea { background: #f8f9fb; border-color: rgba(0,0,0,0.12); color: #0a0a0f; }
}
:root[data-theme="dark"] .booking-section { background: #ffffff; }
:root[data-theme="dark"] .booking-section .section-header h2 { color: #0a0a0f; }
:root[data-theme="dark"] .booking-section .section-header p   { color: #555; }
:root[data-theme="dark"] .booking-slot { background: #f8f9fb; border-color: rgba(0,0,0,0.08); }
:root[data-theme="dark"] .booking-slot__name { color: #0a0a0f; }
:root[data-theme="dark"] .booking-slot__day  { color: #888; }
:root[data-theme="dark"] .booking-form-wrap { background: #ffffff; border-color: rgba(0,0,0,0.1); }
:root[data-theme="dark"] .booking-schedule__title,
:root[data-theme="dark"] .booking-form__title { color: #0a0a0f; }
:root[data-theme="dark"] .booking-form__field label { color: #555; }
:root[data-theme="dark"] .booking-form__field input,
:root[data-theme="dark"] .booking-form__field select,
:root[data-theme="dark"] .booking-form__field textarea { background: #f8f9fb; border-color: rgba(0,0,0,0.12); color: #0a0a0f; }

/* ── Coach Fatima — Yoga & Zumba class facts + fall flyer (2026-10) ── */
.class-facts {
    list-style: none;
    padding: 0;
    margin: 0.85rem 0 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.class-facts li {
    font-size: 0.88rem;
    line-height: 1.45;
    color: var(--color-muted, rgba(8, 9, 10, 0.65));
    padding-left: 1.1rem;
    position: relative;
}

.class-facts li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.52em;
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: var(--color-primary, #d81f26);
}

.class-facts li strong {
    color: inherit;
}

.fall-flyer {
    margin: 2rem 0 0;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 1.5rem 3rem rgba(8, 9, 10, 0.18);
}

.fall-flyer img {
    display: block;
    width: 100%;
    height: auto;
}

/* Stacked variant: poster image in normal flow, content below (no overlay) —
   used when the artwork already contains its own text (fall 2026 posters) */
.banner-card--stacked {
    min-height: 0;
    justify-content: flex-start;
    background: #fff;
}

.banner-card--stacked .banner-image {
    position: static;
    width: 100%;
    height: auto;
    object-fit: contain;
    z-index: auto;
}

.banner-card--stacked .banner-content {
    position: relative;
    z-index: 2;
    padding: 1.25rem 1.5rem 1.5rem;
    background: #fff;
    color: rgba(8, 9, 10, 0.85);
}

.banner-card--stacked .banner-content h3 {
    color: #101318;
}

.banner-card--stacked .banner-content p {
    color: rgba(8, 9, 10, 0.68);
    margin-bottom: 0;
}
