/* ==========================================================================
   Zestora — Global Design Tokens & Theme
   Applied to every page (landing, CES-AI, auth, app, student, parent).
   Load AFTER bootstrap.min.css.
   --------------------------------------------------------------------------
   Palette: Blue (brand) with Yellow & Red accents, deep Slate neutrals,
   White surfaces — CES-AI Computer Educational Services theme.
   ========================================================================== */

:root {
    /* ---- Brand ---- */
    --zs-primary: #2563eb;         /* Indigo 600 */
    --zs-primary-dark: #1e40af;    /* Indigo 700 */
    --zs-primary-deeper: #172554;  /* Indigo 900 */
    --zs-primary-soft: #eff6ff;    /* Indigo 50  */
    --zs-violet: #3b82f6;          /* Violet 500 */
    --zs-cyan: #60a5fa;            /* Cyan 400  */
    --zs-amber: #f59e0b;           /* Amber 500 */
    --zs-red: #ef4444;             /* Red 500 — logo quadrant */
    --zs-red-dark: #b91c1c;        /* Red 700 */
    --zs-gold: #ffb400;            /* Logo yellow */
    --zs-green: #34a853;           /* Logo green (quadrant 4) */

    /* ---- Neutrals ---- */
    --zs-dark: #0f172a;            /* Slate 900 — dark sections & footer */
    --zs-sidebar: #172554;         /* Deep indigo-navy sidebar */
    --zs-ink: #1e293b;             /* Text ink on light */
    --zs-heading: #172554;         /* One consistent heading color everywhere */
    --zs-body: #334155;            /* Body text on light */
    --zs-muted: #64748b;           /* Secondary text */
    --zs-surface: #f8fafc;         /* App background */
    --zs-border: #e2e8f0;          /* Hairlines */

    /* ---- Gradients ---- */
    --zs-gradient: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    --zs-gradient-soft: linear-gradient(135deg, #eff6ff 0%, #eff6ff 100%);
    --zs-glow: rgba(37, 99, 235, .28);

    /* ---- Typography ---- */
    --zs-font: 'Segoe UI', system-ui, -apple-system, sans-serif;
    --zs-radius: 12px;

    /* ---- Bootstrap bridge ---- */
    --bs-primary: #2563eb;
    --bs-primary-rgb: 37, 99, 235;
    --bs-link-color-rgb: 37, 99, 235;
    --bs-link-hover-color-rgb: 30, 64, 175;
    --bs-body-bg: #f8fafc;
    --bs-body-color: #334155;
    --bs-body-font-family: var(--zs-font);
    --bs-border-color: #e2e8f0;
}

/* ---------- Bootstrap semantic overrides ---------- */

a { text-decoration-color: rgba(37, 99, 235, .4); }

.btn-primary {
    --bs-btn-bg: #2563eb;
    --bs-btn-border-color: #2563eb;
    --bs-btn-hover-bg: #1e40af;
    --bs-btn-hover-border-color: #1e40af;
    --bs-btn-active-bg: #172554;
    --bs-btn-active-border-color: #172554;
    --bs-btn-disabled-bg: #2563eb;
    --bs-btn-disabled-border-color: #2563eb;
    --bs-btn-focus-shadow-rgb: 37, 99, 235;
}

.btn-outline-primary {
    --bs-btn-color: #2563eb;
    --bs-btn-border-color: #2563eb;
    --bs-btn-hover-bg: #2563eb;
    --bs-btn-hover-border-color: #2563eb;
    --bs-btn-active-bg: #1e40af;
    --bs-btn-active-border-color: #1e40af;
    --bs-btn-disabled-color: #2563eb;
    --bs-btn-disabled-border-color: #2563eb;
    --bs-btn-focus-shadow-rgb: 37, 99, 235;
}

.badge.bg-primary, .text-bg-primary { background-color: #2563eb !important; }
.text-primary { color: #2563eb !important; }
.border-primary { border-color: #2563eb !important; }

.alert-primary {
    --bs-alert-color: #172554;
    --bs-alert-bg: #dbeafe;
    --bs-alert-border-color: #bfdbfe;
}

.form-control:focus,
.form-select:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 0 .25rem rgba(37, 99, 235, .18);
}

.form-check-input:checked { background-color: #2563eb; border-color: #2563eb; }
.form-check-input:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 0 .25rem rgba(37, 99, 235, .18);
}

.page-link.active, .page-item.active .page-link {
    background-color: #2563eb;
    border-color: #2563eb;
}
.page-link:focus { box-shadow: 0 0 0 .25rem rgba(37, 99, 235, .2); }

.text-bg-primary {
    color: #fff !important;
    background-color: #2563eb !important;
}

/* ---------- Shared components ---------- */

/* Cards — explicit white so they stand out on the #f8fafc app background */
.card {
    --bs-card-bg: #fff;
    border-radius: var(--zs-radius);
}
.card.border-0.shadow-sm { box-shadow: 0 1px 3px rgba(15, 23, 42, .07), 0 6px 18px -8px rgba(15, 23, 42, .08) !important; }

/* Progress */
.progress-bar { background-color: var(--zs-primary); }

/* ================================================================
   Dashboard layouts (teacher / app.php  &  student.php)
   ================================================================ */

.sidebar {
    min-height: 100vh;
    background:
        radial-gradient(500px 240px at 110% -10%, rgba(96, 165, 250, .22), transparent 60%),
        radial-gradient(400px 260px at -20% 115%, rgba(245, 158, 11, .14), transparent 55%),
        linear-gradient(180deg, #172554 0%, #0a2f28 60%, #072420 100%);
    color: #fff;
    flex-shrink: 0;
    border-right: 1px solid rgba(255, 255, 255, .06);
}

.sidebar-brand {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    color: #fff;
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: .3px;
    text-decoration: none;
}

.sidebar-logo {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 1rem;
    color: #fff;
    background: var(--zs-gradient);
    box-shadow: 0 6px 16px rgba(37, 99, 235, .4);
    flex-shrink: 0;
}

.sidebar-sub {
    display: block;
    color: #60a5fa;
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: 1.8px;
    text-transform: uppercase;
}

.sidebar .nav-link {
    color: #a5b1cf;
    border-radius: 8px;
    font-size: .925rem;
    padding: .5rem .75rem;
    transition: background-color .15s ease, color .15s ease;
}

.sidebar .nav-link:hover { color: #fff; background: rgba(147, 197, 253, .1); }
.sidebar .nav-link.active {
    color: #fff;
    background: linear-gradient(90deg, rgba(59, 130, 246, .35) 0%, rgba(37, 99, 235, .2) 100%);
    box-shadow: inset 3px 0 0 var(--zs-cyan);
}

/* Fixed-width icons keep every menu row aligned */
.sidebar .nav-link .fa {
    width: 1.4em;
    text-align: center;
    font-size: .95em;
}

.sidebar-section-label {
    padding: 1.1rem .75rem .4rem;
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #60a5fa;
    border-top: 1px solid rgba(255,255,255,.08);
    margin-top: .3rem;
    user-select: none;
}
.sidebar-section-label:first-child { border-top: none; margin-top: 0; }

.sidebar-label {
    padding: .9rem .75rem .3rem;
    font-size: .64rem;
    font-weight: 700;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: #93c5fd;
    opacity: .75;
    user-select: none;
}
.sidebar-toggle {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: opacity .2s;
}
.sidebar-toggle:hover { opacity: 1; }
.sidebar-toggle .sidebar-arrow {
    font-size: .5rem;
    transition: transform .2s;
}
.sidebar-toggle.collapsed .sidebar-arrow { transform: rotate(-90deg); }
.sidebar-group {
    overflow: hidden;
    max-height: 0;
    transition: max-height .25s ease;
}
.sidebar-group.show { max-height: 600px; }

.sidebar .nav-link .fa {
    margin-right: .35rem;
}

.navbar-top {
    background: #fff;
    border-bottom: 1px solid var(--zs-border);
}

/* ================================================================
   Auth pages (layouts/auth.php) — split-screen
   ================================================================ */

.auth-body { background: #fff; }

.auth-shell {
    min-height: 100vh;
    display: flex;
}

/* Left brand panel */
.auth-aside {
    flex: 0 0 44%;
    max-width: 44%;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3.5rem 3.25rem 2.75rem;
    color: #cbd5e1;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.auth-aside-brand {
    display: inline-flex;
    align-items: center;
    gap: .7rem;
    text-decoration: none;
}

.auth-aside-brand .d-block { color: #fff; font-weight: 800; letter-spacing: .3px; }

.auth-aside-title {
    color: #fff;
    font-weight: 800;
    font-size: 1.85rem;
    line-height: 1.28;
    letter-spacing: -.3px;
    margin: 2.4rem 0 .8rem;
    max-width: 24rem;
}

.auth-aside-title span {
    background: linear-gradient(120deg, #93c5fd 0%, #bfdbfe 55%, #fde68a 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.auth-aside-lead {
    color: rgba(203, 213, 225, .72);
    max-width: 24rem;
    font-size: .95rem;
}

.auth-points {
    list-style: none;
    margin: 2.2rem 0 0;
    padding: 0;
    display: grid;
    gap: 1rem;
}

.auth-points li {
    display: flex;
    gap: .85rem;
    align-items: flex-start;
    color: #cbd5e1;
    font-size: .93rem;
    max-width: 26rem;
}

.auth-point-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    color: #93c5fd;
    background: rgba(59, 130, 246, .18);
    border: 1px solid rgba(147, 197, 253, .3);
}

.auth-point-icon svg { width: 16px; height: 16px; }

.auth-aside-foot {
    margin-top: 3rem;
    font-size: .78rem;
    color: rgba(148, 163, 184, .6);
}

/* Right form panel */
.auth-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
    background: var(--zs-surface);
}

.auth-form-wrap {
    width: 100%;
    max-width: 420px;
}

.auth-form-wrap-lg { max-width: 660px; }

.auth-mobile-brand {
    display: flex;
    align-items: center;
    gap: .65rem;
    margin-bottom: 1.5rem;
}

.auth-brand {
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--zs-ink);
    letter-spacing: .3px;
}

.auth-card {
    background: #fff;
    border: 1px solid var(--zs-border) !important;
    border-radius: 16px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 24px 50px -24px rgba(37, 99, 235, .25) !important;
}

.auth-title {
    color: var(--zs-ink);
    font-weight: 800;
    font-size: 1.5rem;
    margin-bottom: .35rem;
}

.auth-sub { color: var(--zs-muted); }

/* "Back to home" link on the login card */
.auth-back-link {
    display: inline-flex; align-items: center; gap: .4rem;
    color: var(--zs-muted); font-size: .85rem; font-weight: 600;
    text-decoration: none; margin-bottom: .75rem;
    transition: color .15s ease;
}
.auth-back-link:hover { color: var(--zs-primary); text-decoration: none; }
.auth-back-link:focus-visible { outline: 2px solid var(--zs-primary); outline-offset: 2px; border-radius: 4px; }

/* Checkbox picker (e.g. teacher registration: subjects & qualifications) */
.picker-boxes {
    display: flex; flex-wrap: wrap; gap: .45rem;
    max-height: 200px; overflow-y: auto;
    border: 1px solid var(--zs-border); border-radius: 10px;
    background: #f8fafc;
    padding: .6rem;
}
.picker-chip {
    display: inline-flex; align-items: center; gap: .4rem;
    border: 1px solid var(--zs-border); border-radius: 999px;
    padding: .28rem .75rem .28rem .5rem;
    background: #fff; font-size: .85rem; line-height: 1.25;
    color: var(--zs-ink); cursor: pointer; user-select: none;
    transition: background .12s ease, border-color .12s ease, color .12s ease;
}
.picker-chip:hover { border-color: var(--zs-primary); color: var(--zs-primary); }
.picker-chip input { accent-color: var(--zs-primary); margin: 0; }
.picker-chip:has(input:checked) {
    background: #eff6ff;
    border-color: var(--zs-primary);
    color: var(--zs-primary);
    font-weight: 600;
}
.picker-chip:has(input:focus-visible) { outline: 2px solid var(--zs-primary); outline-offset: 2px; }

.auth-card .input-group-text {
    background: #f8fafc;
    border-color: var(--zs-border);
    color: var(--zs-muted);
    width: 42px;
    justify-content: center;
}

.auth-card .form-control,
.auth-card .form-select {
    border-radius: 0 10px 10px 0;
    background: #f8fafc;
}

.auth-section {
    display: flex;
    align-items: center;
    gap: .65rem;
    margin: 1.75rem 0 1.1rem;
}
.auth-section:first-of-type { margin-top: 0; }

.auth-section-icon {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    color: var(--zs-primary-deeper);
    background: var(--zs-primary-soft);
    font-size: .85rem;
}

.auth-section-title {
    font-weight: 700;
    font-size: .95rem;
    color: var(--zs-ink);
}

/* ---------- CES-AI home ---------- */

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: #bfdbfe;
    border: 1px solid rgba(147, 197, 253, .35);
    background: rgba(59, 130, 246, .12);
    padding: .4rem .9rem;
    border-radius: 999px;
    margin-bottom: 1.2rem;
}

.hero-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--zs-gold);
    box-shadow: 0 0 0 4px rgba(255, 215, 0, .18);
}

.hero h1 { font-weight: 800; letter-spacing: -.4px; }

.hero-search {
    max-width: 34rem;
    margin: 0 auto 1.4rem;
    position: relative;
    display: flex;
    align-items: stretch;
    border-radius: 14px;
    overflow: hidden;
    background: rgba(255, 255, 255, .95);
    box-shadow: 0 18px 40px -16px rgba(2, 6, 23, .4);
}

.hero-search-icon {
    display: flex;
    align-items: center;
    padding: 0 1rem;
    color: var(--zs-muted);
    background: #fff;
}

.hero-search .form-control {
    border: 0;
    background: #fff;
    padding: .85rem .5rem;
    font-size: 1rem;
    box-shadow: none;
}

.hero-search .btn-light {
    border-radius: 0 14px 14px 0;
    padding: .85rem 1.6rem;
    font-weight: 700;
    color: var(--zs-primary-deeper);
    border: 0;
    background: #fff;
}

.hero-search .btn-light:hover {
    background: #f1f5f9;
    color: var(--zs-primary-deeper);
}

.hero-stats {
    display: inline-flex;
    gap: 2.5rem;
    padding: 1rem 1.8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .18);
    backdrop-filter: blur(6px);
}

.hero-stats > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.1;
}

.hero-stats strong {
    font-size: 1.25rem;
    color: #fff;
}

.hero-stats span {
    font-size: .72rem;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: rgba(203, 213, 225, .75);
    margin-top: .2rem;
}

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

.section-head h3 { margin-bottom: 0; font-weight: 800; color: var(--zs-heading); }

.academy-card-head,
.course-card-head {
    display: flex;
    align-items: center;
    gap: .85rem;
    margin-bottom: .5rem;
}

.academy-card-icon,
.course-card-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--zs-gradient);
    box-shadow: 0 6px 14px rgba(37, 99, 235, .3);
}

.course-card-icon { background: linear-gradient(135deg, #3b82f6, #2563eb); }

.subject-pill {
    display: inline-flex;
    align-items: center;
    padding: .5rem .9rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--zs-border);
    color: var(--zs-ink);
    text-decoration: none;
    font-size: .875rem;
    font-weight: 500;
    transition: all .15s ease;
}

.subject-pill:hover {
    background: var(--zs-primary-soft);
    border-color: #93c5fd;
    color: var(--zs-primary-deeper);
    transform: translateY(-1px);
}

/* Tint subject pills with the logo palette — variety instead of one flat blue */
.subject-pill:nth-child(4n+2) { border-color: #fecaca; background: #fef2f2; color: #b91c1c; }
.subject-pill:nth-child(4n+2):hover { background: #fee2e2; border-color: #ef4444; }
.subject-pill:nth-child(4n+3) { border-color: #fde68a; background: #fffbeb; color: #b45309; }
.subject-pill:nth-child(4n+3):hover { background: #fef3c7; border-color: #f59e0b; }
.subject-pill:nth-child(4n) { border-color: #bbf7d0; background: #f0fdf4; color: #15803d; }
.subject-pill:nth-child(4n):hover { background: #dcfce7; border-color: #22c55e; }

.step-card { padding: 1.5rem 1rem; }

.step-num {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin: 0 auto;
    display: grid;
    place-items: center;
    font-weight: 800;
    color: #fff;
    background: var(--zs-gradient);
    box-shadow: 0 6px 14px rgba(37, 99, 235, .3);
}

.step-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    margin: 1rem auto 0;
    display: grid;
    place-items: center;
    font-size: 1.2rem;
}
.step-icon.accent-blue  { background: #eff6ff; color: #2563eb; }
.step-icon.accent-red   { background: #fef2f2; color: #ef4444; }
.step-icon.accent-gold  { background: #fffbeb; color: #d97706; }
.step-icon.accent-green { background: #f0fdf4; color: #16a34a; }

.cta-band {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
    padding: 2rem 2.2rem;
    border-radius: 20px;
    background: radial-gradient(600px 300px at 100% 0%, rgba(59, 130, 246, .4), transparent 70%),
                var(--zs-gradient);
    box-shadow: 0 20px 50px -16px rgba(37, 99, 235, .45);
}

.cta-band h4 { font-weight: 800; letter-spacing: -.3px; }

/* Landing-page "Interested in CES-AI?" inquiry section */
.landing-inquiry-section {
    padding: 3.5rem 0;
    background: linear-gradient(120deg, #1e3a8a 0%, #2563eb 55%, #3b82f6 100%);
    position: relative;
    overflow: hidden;
}
.landing-inquiry-section::after {
    content: '';
    position: absolute;
    width: 420px; height: 420px; border-radius: 50%;
    top: -140px; right: -140px;
    background: radial-gradient(circle, rgba(255, 180, 0, .28), transparent 70%);
    pointer-events: none;
}
.landing-inquiry-section .container { position: relative; z-index: 1; }
.landing-inquiry-form {
    background: #fff;
    border-radius: 16px;
    padding: 1.1rem 1.25rem 1.25rem;
    box-shadow: 0 18px 40px -14px rgba(15, 23, 42, .45);
    border: 1px solid rgba(255, 255, 255, .6);
}
.landing-inquiry-form .form-control,
.landing-inquiry-form .form-select { border-radius: 10px; }
.landing-inquiry-form .form-control:focus,
.landing-inquiry-form .form-select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .18);
}

/* Landing-page YouTube embed block ("Watch CES-AI in action") */
.mkt-video-section {
    padding: 3.5rem 0;
    background: radial-gradient(circle at 20% 0%, rgba(37, 99, 235, .06), transparent 50%);
}
.mkt-video-wrap {
    position: relative;
    aspect-ratio: 16 / 9;
    max-width: 960px;
    width: 100%;
    border-radius: 18px;
    overflow: hidden;
    box-shadow:
        0 30px 60px -20px rgba(15, 23, 42, .35),
        0 6px 0 rgba(37, 99, 235, .18);
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, .9);
}
.mkt-video-wrap iframe {
    width: 100%; height: 100%; border: 0; display: block;
}

@media (max-width: 767.98px) {
    .hero-stats { gap: 1.5rem; }
    .section-head { flex-direction: column; align-items: flex-start; }
}

/* ================================================================
   Public / CES-AI pages (layouts/public.php)
   ================================================================ */

.hero {
    background: radial-gradient(900px 480px at 80% -20%, rgba(59, 130, 246, .35), transparent 65%),
                radial-gradient(700px 420px at 5% 110%, rgba(255, 215, 0, .18), transparent 60%),
                var(--zs-gradient);
    color: #fff;
    padding: 4rem 0;
}

footer.site-footer {
    background: var(--zs-dark);
    color: #94a3b8;
    padding: 2rem 0;
    margin-top: 3rem;
}

footer.site-footer a { color: #cbd5e1; text-decoration: none; }
footer.site-footer a:hover { color: #fff; }

/* IMG logo variant — public/images/logo.png replaces the letter badge */
img.navbar-logo,
img.sidebar-logo {
    background: none;
    border: none;
    box-shadow: none;
    display: inline-block;
    object-fit: contain;
    height: 32px;
    width: auto;
}
.public-nav img.navbar-logo {
    background: none;
    box-shadow: none;
    height: 34px;
}
footer.site-footer .footer-brand img.navbar-logo {
    background: none;
    height: 30px;
}
.sidebar img.sidebar-logo,
.auth-aside img.sidebar-logo,
.auth-mobile-brand img.sidebar-logo {
    height: 36px;
}

/* Small brand badge for light navbars */
.navbar-logo {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: .95rem;
    color: #fff;
    background: var(--zs-gradient);
    box-shadow: 0 5px 12px rgba(37, 99, 235, .35);
}

/* CES-AI hero: soft white cards + contrast on gradient */
.hero .btn-light {
    border-radius: 10px;
    padding: .6rem 1.4rem;
    font-weight: 600;
}

.card-hover {
    transition: box-shadow .18s ease, transform .18s ease;
}
.card-hover:hover {
    box-shadow:
        0 5px 14px rgba(15, 23, 42, .14),
        4px 4px 0 rgba(37, 99, 235, .08),
        inset 0 1px 0 rgba(255, 255, 255, 1);
    transform: translateY(-3px);
}

/* ================================================================
   Global polish — buttons, cards, tables, forms, typography
   ================================================================ */

/* Headings — one consistent color on all light backgrounds.
   Dark sections keep their own explicit white rules (.mkt-hero h1, .dashboard-welcome h3, .admin-page-head h3, .text-white, ...) */
h1, h2, h3, h4, h5, h6 { color: var(--zs-heading); letter-spacing: -.2px; }
h1, h2, h3 { font-weight: 800; }

/* Buttons */
.btn {
    border-radius: 10px;
    font-weight: 600;
    letter-spacing: .1px;
    transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}
.btn-sm { border-radius: 8px; }
.btn-lg { border-radius: 12px; padding: .8rem 1.7rem; font-size: 1rem; }

.btn-primary {
    border: 0;
    background-image: var(--zs-gradient);
    box-shadow: 0 8px 18px -8px rgba(37, 99, 235, .55);
}
.btn-primary:hover,
.btn-primary:focus-visible {
    filter: brightness(1.07);
    transform: translateY(-1px);
    box-shadow: 0 12px 24px -8px rgba(37, 99, 235, .6);
}
.btn-primary:active { transform: translateY(0); }

.btn-outline-secondary {
    --bs-btn-color: #475569;
    --bs-btn-border-color: #cbd5e1;
    --bs-btn-hover-bg: #f1f5f9;
    --bs-btn-hover-color: #1e293b;
    --bs-btn-hover-border-color: #cbd5e1;
    --bs-btn-active-bg: #e2e8f0;
    --bs-btn-active-color: #1e293b;
    --bs-btn-active-border-color: #cbd5e1;
}

.btn-light { border: 1px solid var(--zs-border); }
.btn-light:hover { background: #fff; border-color: #cbd5e1; }
.btn i.fa { line-height: 1; }

/* Nav welcome message (academy profile pages) */
.ap-nav-collapse {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
}
.ap-nav-collapse .navbar-nav {
    margin-right: 0;
}
.ap-nav-welcome {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .4rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .2);
    color: rgba(255, 255, 255, .9);
    font-size: .85rem;
    font-weight: 600;
    font-family: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
    letter-spacing: .3px;
    margin-left: auto;
    margin-top: .5rem;
}
@media (min-width: 992px) {
    .ap-nav-welcome { margin-top: 0; }
}
.ap-nav-welcome strong {
    font-weight: 700;
    color: #fde68a;
}
.ap-nav-welcome .fa { color: #fde68a; }
.card {
    border-color: transparent;
    /* Bevel: bright top/left, shaded bottom/right */
    border-top-color: rgba(255, 255, 255, .95);
    border-left-color: rgba(255, 255, 255, .95);
    border-right-color: rgba(147, 197, 253, .45);
    border-bottom-color: rgba(147, 197, 253, .45);
    box-shadow:
        0 3px 8px rgba(15, 23, 42, .10),
        3px 3px 0 rgba(37, 99, 235, .05),
        inset 0 1px 0 rgba(255, 255, 255, .9);
}
.card:hover {
    box-shadow:
        0 5px 14px rgba(15, 23, 42, .14),
        4px 4px 0 rgba(37, 99, 235, .08),
        inset 0 1px 0 rgba(255, 255, 255, 1);
}
.card.border-0.shadow-sm {
    border: none !important;
    box-shadow:
        0 3px 8px rgba(15, 23, 42, .10),
        3px 3px 0 rgba(37, 99, 235, .05),
        inset 0 1px 0 rgba(255, 255, 255, .9) !important;
}
.card-header {
    background: var(--zs-primary-soft);
    border-bottom: 1px solid #dbeafe;
    font-weight: 700;
    color: var(--zs-primary-deeper);
}
.card-footer { background: #fbfcfe; border-top: 1px solid var(--zs-border); }

/* Card detail text — dark for readability */
.card .card-text { color: #1e293b !important; }
.card p { color: #1e293b; }
.step-card p { color: #1e293b !important; }
.tip-card p { color: #1e293b !important; }

/* Panel/page-title header bar — the actual "form header" pattern used
   across Super Admin and billing pages (plain <h3> until now). */
.panel-title {
    padding: .85rem 1.25rem;
    margin: 0 0 1.5rem;
    border-radius: 12px;
    background: var(--zs-primary-soft);
    color: var(--zs-primary-deeper);
    border: 1px solid #dbeafe;
}

/* Tables */
.table {
    --bs-table-hover-bg: #f8fafc;
    margin-bottom: 0;
    vertical-align: middle;
    color: var(--zs-body);
}
.table > :not(caption) > * > * { padding: .8rem 1rem; }
.table > thead th {
    background: var(--zs-primary-soft);
    color: var(--zs-primary-deeper);
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .7px;
    text-transform: uppercase;
    border-bottom: 1px solid #dbeafe;
    white-space: nowrap;
}
.table-hover > tbody > tr:hover > * { --bs-table-bg-state: #f8fafc; }
.table td, .table th { border-color: var(--zs-border); }

/* Forms */
.form-label {
    font-weight: 600;
    font-size: .875rem;
    color: var(--zs-ink);
    margin-bottom: .35rem;
}
.form-control, .form-select {
    border-radius: 10px;
    padding: .6rem .85rem;
    border-color: #dbe2ea;
    color: var(--zs-body);
}
.form-control::placeholder { color: #94a3b8; }
.form-select { padding-right: 2.25rem; }
.input-group > .form-control:not(:first-child),
.input-group > .form-select:not(:first-child) { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.input-group > .form-control:not(:last-child),
.input-group > .form-select:not(:last-child) { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.input-group-text {
    background: #f8fafc;
    border-color: #dbe2ea;
    color: var(--zs-muted);
}

/* Accordion */
.accordion-item {
    border-color: var(--zs-border);
    border-radius: 12px !important;
    margin-bottom: .6rem;
    overflow: hidden;
}
.accordion-button { font-weight: 600; color: var(--zs-ink); }
.accordion-button:not(.collapsed) {
    background: var(--zs-primary-soft);
    color: var(--zs-primary-deeper);
    box-shadow: none;
}
.accordion-button:focus {
    box-shadow: 0 0 0 .2rem rgba(37, 99, 235, .15);
    border-color: transparent;
}

/* Badges & alerts */
.badge { font-weight: 600; letter-spacing: .2px; border-radius: 6px; }
.alert { border-radius: 12px; border-width: 1px; }

/* ================================================================
   CES-AI v2 — photographic hero, glass panel, accent cards
   ================================================================ */

.mkt-hero {
    position: relative;
    color: #fff;
    padding: 5.5rem 0 5.5rem;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}
.mkt-hero::after {
    content: '';
    position: absolute;
    inset: auto 0 0 0;
    height: 110px;
    background: linear-gradient(to bottom, transparent, rgba(246, 247, 251, .9));
    pointer-events: none;
}
.mkt-hero .container { position: relative; z-index: 2; }
.mkt-hero h1 {
    color: #fff;
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    line-height: 1.13;
    letter-spacing: -.7px;
}
.mkt-hero .lead { color: rgba(226, 232, 240, .82); }

.mkt-stats {
    display: flex;
    gap: 2.2rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}
.mkt-stats > div { display: flex; flex-direction: column; }
.hero-highlight {
    background: linear-gradient(135deg, #ffd700, #ffb400, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-quick-links {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
}
.hero-quick-label {
    color: rgba(255, 255, 255, .6);
    font-size: .8rem;
    font-weight: 600;
}
.hero-quick-pill {
    display: inline-flex;
    align-items: center;
    padding: .3rem .8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .2);
    color: rgba(255, 255, 255, .85);
    font-size: .78rem;
    font-weight: 600;
    text-decoration: none;
    transition: background .18s ease, transform .18s ease;
}
.hero-quick-pill:hover {
    background: rgba(255, 255, 255, .22);
    color: #fff;
    transform: translateY(-1px);
    text-decoration: none;
}
.mkt-stat-item {
    display: flex;
    align-items: center;
    gap: .6rem;
}
.mkt-stat-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .18);
    color: #fde68a;
    font-size: .9rem;
}
.mkt-glass-badge {
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .4px;
    text-transform: uppercase;
    background: rgba(255, 180, 0, .2);
    color: #fde68a;
    border: 1px solid rgba(253, 230, 138, .3);
    padding: .25rem .65rem;
    border-radius: 999px;
}
.mkt-glass-count {
    font-size: .72rem;
    color: rgba(255, 255, 255, .5);
    margin-left: auto;
}
.mkt-glass-cta {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, .12);
}
.mkt-stats span {
    color: rgba(203, 213, 225, .7);
    font-size: .72rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-top: .2rem;
}

/* Glass panel on the hero */
.mkt-glass {
    padding: 1.5rem;
    border-radius: 20px;
    background: rgba(15, 23, 42, .55);
    border: 1px solid rgba(255, 255, 255, .16);
    backdrop-filter: blur(14px);
    box-shadow: 0 30px 70px -20px rgba(2, 6, 23, .7);
}
.mkt-glass-title {
    color: #fff;
    font-weight: 700;
    font-size: .8rem;
    letter-spacing: 1.6px;
    text-transform: uppercase;
}
.mkt-flame { color: var(--zs-amber); }
.mkt-glass-row {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .6rem .7rem;
    border-radius: 10px;
    color: #e2e8f0;
    text-decoration: none;
    font-size: .92rem;
    transition: background-color .15s ease;
}
.mkt-glass-row:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.mkt-glass-row .fa-arrow-right { font-size: .8rem; color: rgba(148, 163, 184, .8); }
.mkt-glass-icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    display: grid;
    place-items: center;
    color: #bfdbfe;
    background: rgba(59, 130, 246, .22);
    border: 1px solid rgba(147, 197, 253, .25);
    flex-shrink: 0;
}

/* Colored icon accents for cards */
.mkt-accent-1 { background: linear-gradient(135deg, #2563eb, #60a5fa) !important; }  /* logo blue  */
.mkt-accent-2 { background: linear-gradient(135deg, #ef4444, #f87171) !important; }  /* logo red   */
.mkt-accent-3 { background: linear-gradient(135deg, #f59e0b, #fbbf24) !important; }  /* logo yellow */
.mkt-accent-4 { background: linear-gradient(135deg, #22c55e, #4ade80) !important; }  /* logo green */

.academy-card-icon, .course-card-icon { color: #fff; box-shadow: 0 8px 16px -6px rgba(15, 23, 42, .35); }

.mkt-card-arrow {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .82rem;
    font-weight: 600;
    color: var(--zs-primary);
    margin-top: .9rem;
}

.subject-pill { background: #fff; }

/* Step cards — redesigned */
.step-card {
    position: relative;
    height: 100%;
    padding: 2rem 1.5rem 1.5rem;
    border-radius: 20px;
    border: 1px solid transparent;
    overflow: hidden;
    box-shadow:
        0 3px 8px rgba(15, 23, 42, .10),
        3px 3px 0 rgba(37, 99, 235, .05),
        inset 0 1px 0 rgba(255, 255, 255, .9);
    transition: transform .25s ease, box-shadow .25s ease;
}
.step-card:hover {
    transform: translateY(-6px);
    box-shadow:
        0 8px 24px rgba(15, 23, 42, .16),
        5px 5px 0 rgba(37, 99, 235, .08),
        inset 0 1px 0 rgba(255, 255, 255, 1);
}

/* Accent-tinted step card backgrounds */
.step-card.accent-blue  { background: linear-gradient(180deg, #eff6ff 0%, #f8fafc 100%); border-top-color: #bfdbfe; border-left-color: #bfdbfe; }
.step-card.accent-red   { background: linear-gradient(180deg, #fef2f2 0%, #f8fafc 100%); border-top-color: #fecaca; border-left-color: #fecaca; }
.step-card.accent-gold  { background: linear-gradient(180deg, #fffbeb 0%, #f8fafc 100%); border-top-color: #fde68a; border-left-color: #fde68a; }

/* Step number badge — top-right corner */
.step-num-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: .85rem;
    color: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .15);
    z-index: 2;
}

/* Icon wrapper — large circle with gradient ring */
.step-icon-wrap {
    width: 72px;
    height: 72px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    position: relative;
}
.step-icon-wrap::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px dashed rgba(37, 99, 235, .15);
    transition: transform .4s ease;
}
.step-card:hover .step-icon-wrap::before { transform: rotate(90deg); }
.step-icon-wrap.accent-blue::before  { border-color: rgba(37, 99, 235, .2); }
.step-icon-wrap.accent-red::before   { border-color: rgba(239, 68, 68, .2); }
.step-icon-wrap.accent-gold::before  { border-color: rgba(245, 158, 11, .2); }

.step-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    transition: transform .25s ease;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .12);
}
.step-card:hover .step-icon { transform: scale(1.08); }
.step-icon.accent-blue  { background: linear-gradient(135deg, #2563eb, #60a5fa); color: #fff; font-size: 1.5rem; }
.step-icon.accent-red   { background: linear-gradient(135deg, #ef4444, #f87171); color: #fff; font-size: 1.5rem; }
.step-icon.accent-gold  { background: linear-gradient(135deg, #f59e0b, #fbbf24); color: #fff; font-size: 1.5rem; }

/* Step title & text */
.step-card h5 {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--zs-heading);
    margin-bottom: .5rem;
}
.step-card p {
    color: #1e293b !important;
    font-size: .88rem;
    line-height: 1.55;
    margin-bottom: 0;
}

/* CTA band with photo */
.cta-band {
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}
.cta-band::before {
    content: '';
    position: absolute;
    inset: 0;
    /* Blue keeps the brand, with warm red + yellow glows from the logo quadrants */
    background: radial-gradient(420px 260px at 100% 0%, rgba(255, 180, 0, .55), transparent 70%),
                radial-gradient(380px 240px at 0% 100%, rgba(239, 68, 68, .6), transparent 70%),
                linear-gradient(100deg, rgba(23, 37, 84, .96) 0%, rgba(37, 99, 235, .88) 55%, rgba(59, 130, 246, .68) 100%);
}
.cta-band > * { position: relative; z-index: 1; }

/* ================================================================
   Student portal
   ================================================================ */

.min-w-0 { min-width: 0; }

.topbar-eyebrow {
    font-size: .64rem;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--zs-muted);
    line-height: 1.2;
}
.topbar-title {
    font-weight: 700;
    color: var(--zs-ink);
    font-size: .95rem;
    line-height: 1.2;
}

/* Signed-in student chip at the bottom of the sidebar */
.sidebar-user-card {
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .65rem .7rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .08);
}
.sidebar-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 800;
    color: #fff;
    background: var(--zs-gradient);
    flex-shrink: 0;
}
.sidebar-user-name { color: #fff; font-weight: 600; font-size: .85rem; }
.sidebar-user-meta { color: #8fb3aa; font-size: .72rem; }

/* Course marker in the student dashboard table */
.course-dot {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    display: grid;
    place-items: center;
    background: var(--zs-primary-soft);
    color: var(--zs-primary);
    font-size: .7rem;
    flex-shrink: 0;
}

/* Quick-access icons */
.quick-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    font-size: .9rem;
    flex-shrink: 0;
    color: #fff;
}
.quick-teal  { background: linear-gradient(135deg, #2563eb, #3b82f6); }
.quick-blue  { background: linear-gradient(135deg, #0ea5e9, #0891b2); }
.quick-amber { background: linear-gradient(135deg, #f59e0b, #d97706); }
.quick-rose  { background: linear-gradient(135deg, #f43f5e, #be185d); }

/* Student page building blocks — shared by every portal page */
.student-summary {
    display: flex;
    align-items: center;
    gap: .9rem;
    height: 100%;
    padding: 1rem 1.1rem;
    background: #fff;
    border: 1px solid var(--zs-border);
    border-radius: 14px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}
.student-summary-icon {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 1rem;
    flex-shrink: 0;
    background: var(--zs-gradient);
}
.ss-teal  { background: linear-gradient(135deg, #2563eb, #3b82f6); }
.ss-blue  { background: linear-gradient(135deg, #0ea5e9, #0891b2); }
.ss-amber { background: linear-gradient(135deg, #f59e0b, #d97706); }
.ss-rose  { background: linear-gradient(135deg, #f43f5e, #be185d); }
.student-summary-label {
    font-size: .66rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--zs-muted);
    line-height: 1.2;
}
.student-summary-value {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--zs-ink);
    line-height: 1.15;
}
.student-summary-meta { font-size: .74rem; color: var(--zs-muted); }

.empty-state {
    text-align: center;
    padding: 2.5rem 1.25rem;
    color: var(--zs-muted);
}
.empty-state-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    margin: 0 auto .9rem;
    background: var(--zs-primary-soft);
    color: var(--zs-primary);
    font-size: 1.4rem;
}
.empty-state h6 { color: var(--zs-ink); font-weight: 700; margin-bottom: .25rem; }
.empty-state p { font-size: .86rem; margin: 0; }

.detail-body { color: var(--zs-body); line-height: 1.7; }
.detail-body p:last-child { margin-bottom: 0; }

/* Quiz answer options */
.option-row {
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .7rem .9rem;
    border: 1px solid var(--zs-border);
    border-radius: 12px;
    cursor: pointer;
    margin-bottom: .5rem;
    transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.option-row:hover { border-color: #93c5fd; background: var(--zs-primary-soft); }
.option-row .form-check-input { margin: 0; flex-shrink: 0; }
.option-row:has(.form-check-input:checked) {
    border-color: var(--zs-primary);
    background: var(--zs-primary-soft);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .1);
}

.question-num {
    display: inline-grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: var(--zs-primary-soft);
    color: var(--zs-primary-deeper);
    font-weight: 800;
    font-size: .85rem;
    flex-shrink: 0;
}

/* Slim progress bar used on attendance / progress pages */
.mini-progress {
    height: 8px;
    border-radius: 999px;
    background: #eff6ff;
}
.mini-progress .progress-bar {
    background: var(--zs-gradient);
    border-radius: 999px;
}

/* Attendance status chips */
.att-chip {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .28rem .65rem;
    border-radius: 999px;
    font-size: .74rem;
    font-weight: 600;
    white-space: nowrap;
}
.att-present { background: #dbeafe; color: #172554; }
.att-absent  { background: #fee2e2; color: #991b1b; }
.att-late    { background: #fef3c7; color: #92400e; }
.att-excused { background: #e0f2fe; color: #075985; }
.att-other   { background: #f1f5f9; color: #475569; }

/* Big score block on graded assignment / quiz views */
.score-block {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.35rem;
    border-radius: 16px;
    background: var(--zs-primary-soft);
    border: 1px solid #dbeafe;
}
.score-block .score {
    font-size: 2rem;
    font-weight: 800;
    color: var(--zs-primary-deeper);
    line-height: 1;
}
.score-block .score small { font-size: .9rem; font-weight: 600; color: var(--zs-muted); }
.score-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 1.2rem;
    background: var(--zs-gradient);
    flex-shrink: 0;
}

/* Classroom join card */
.join-icon {
    width: 74px;
    height: 74px;
    border-radius: 22px;
    display: grid;
    place-items: center;
    margin: 0 auto;
    color: #fff;
    font-size: 1.8rem;
    background: var(--zs-gradient);
    box-shadow: 0 18px 34px -16px rgba(37, 99, 235, .65);
}
.join-meta {
    max-width: 22rem;
    margin-left: auto;
    margin-right: auto;
    padding: .35rem 1rem;
    border-radius: 12px;
    background: #fbfcfe;
    border: 1px solid var(--zs-border);
}
.join-meta > div:last-child { border-bottom: 0 !important; }

/* Keep summary progress bars from stretching on narrow cards */
.student-summary .mini-progress { margin-top: .4rem; }

/* ================================================================
   Parent portal
   ================================================================ */

.parent-chart {
    position: relative;
    height: 300px;
}
@media (max-width: 575.98px) {
    .parent-chart { height: 240px; }
}

.child-avatar {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 800;
    font-size: 1.15rem;
    background: var(--zs-gradient);
    box-shadow: 0 12px 24px -14px rgba(37, 99, 235, .7);
    flex-shrink: 0;
}

.parent-stat {
    height: 100%;
    padding: .7rem .85rem;
    border: 1px solid var(--zs-border);
    border-radius: 12px;
    background: #fbfcfe;
}
.parent-stat-label {
    font-size: .64rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--zs-muted);
    line-height: 1.2;
}
.parent-stat-value {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--zs-ink);
    line-height: 1.25;
}

.course-block {
    padding: 1rem 1.1rem;
    border: 1px solid var(--zs-border);
    border-radius: 14px;
    background: #fff;
}
.course-block + .course-block { margin-top: .75rem; }


/* ================================================================
   Public navbar & footer (tuition.pk-inspired)
   ================================================================ */

.public-nav {
    background: linear-gradient(135deg, #172554 0%, #1e40af 100%);
    padding: .5rem 0;
    box-shadow: 0 2px 16px rgba(2, 25, 21, .18);
}
.public-nav .navbar-brand { color: #fff; text-decoration: none; }
.public-nav .navbar-brand-text .d-block {
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: .2px;
    font-size: 1.05rem;
}
.navbar-brand-sub {
    display: block;
    font-size: .55rem;
    font-weight: 700;
    letter-spacing: 2.2px;
    text-transform: uppercase;
    color: rgba(255,255,255,.5);
    line-height: 1.4;
}
.public-nav .navbar-logo {
    background: #ffd700;
    color: #172554;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .15);
}
.public-nav .nav-link {
    color: rgba(255, 255, 255, .78) !important;
    font-weight: 500;
    font-size: .88rem;
    padding: .45rem .9rem !important;
    border-radius: 6px;
    transition: background-color .15s ease, color .15s ease;
    letter-spacing: .2px;
}
.public-nav .nav-link:hover,
.public-nav .nav-link:focus {
    color: #fff !important;
    background: rgba(255, 255, 255, .1);
}
.public-nav .navbar-toggler {
    border-color: rgba(255, 255, 255, .35);
    padding: .3rem .5rem;
}
.public-nav .navbar-toggler:focus { box-shadow: 0 0 0 .2rem rgba(255, 215, 0, .3); }
.public-nav .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
.public-nav .dropdown-menu {
    border: none;
    border-radius: 10px;
    padding: .4rem 0;
    min-width: 200px;
}
.public-nav .dropdown-item {
    font-size: .88rem;
    padding: .5rem 1rem;
    font-weight: 500;
}
.public-nav .dropdown-item:hover { background: #f0f4ff; }

.btn-gold {
    background: #ffd700;
    border: 0;
    color: #3d3000;
    font-weight: 700;
    border-radius: 8px;
    padding: .45rem 1.1rem;
    font-size: .85rem;
    box-shadow: 0 4px 12px -4px rgba(255, 215, 0, .5);
    transition: background .15s, transform .15s, box-shadow .15s;
}
.btn-gold:hover,
.btn-gold:focus-visible {
    background: #ffe14d;
    color: #3d3000;
    transform: translateY(-1px);
    box-shadow: 0 8px 18px -6px rgba(255, 215, 0, .6);
}
.btn-nav-ghost {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .3);
    background: transparent;
    border-radius: 8px;
    padding: .45rem .9rem;
    font-weight: 500;
    font-size: .85rem;
    transition: background .15s, border-color .15s;
}
.btn-nav-ghost:hover,
.btn-nav-ghost:focus-visible {
    color: #fff;
    background: rgba(255, 255, 255, .1);
    border-color: rgba(255, 255, 255, .6);
}

footer.site-footer {
    background: #0f172a;
    color: #9fb3ad;
    padding: 3.5rem 0 0;
    margin-top: 4rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
    gap: 2.2rem;
}
footer.site-footer .footer-brand {
    display: inline-flex;
    align-items: center;
    gap: .7rem;
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.05rem;
}
.footer-brand-sub {
    display: block;
    font-size: .58rem;
    font-weight: 700;
    letter-spacing: 2.4px;
    text-transform: uppercase;
    color: #7fe0c8;
}
.footer-lead {
    color: #93a8a2;
    font-size: .9rem;
    line-height: 1.6;
    max-width: 22rem;
    margin: 1rem 0 0;
}
footer.site-footer .footer-social {
    display: flex;
    gap: .5rem;
    margin-top: 1.1rem;
}
footer.site-footer .footer-social a {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, .07);
    color: #c9d8d3;
    text-decoration: none;
    transition: background-color .15s ease, color .15s ease;
}
footer.site-footer .footer-social a:hover { background: #2563eb; color: #fff; }

.footer-heading {
    color: #fff;
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}
footer.site-footer .footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: .55rem;
}
footer.site-footer .footer-links a {
    color: #9fb3ad;
    text-decoration: none;
    font-size: .9rem;
    transition: color .15s ease;
}
footer.site-footer .footer-links a:hover { color: #ffd700; }
footer.site-footer .footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: .55rem;
    color: #9fb3ad;
    font-size: .88rem;
}
footer.site-footer .footer-contact i { color: #3b82f6; margin-top: .25rem; }

.footer-bottom {
    margin-top: 2.6rem;
    padding: 1.15rem 0;
    border-top: 1px solid rgba(255, 255, 255, .08);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .5rem 1.5rem;
    font-size: .82rem;
    color: #7c928c;
}

@media (max-width: 991.98px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 575.98px) {
    .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; }
    .footer-bottom { flex-direction: column; }
}



/* Explore-by-category grid (icon cards) — redesigned */
.category-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .6rem;
    height: 100%;
    padding: 1.5rem 1rem 1.2rem;
    border-radius: 18px;
    border: 1px solid transparent;
    overflow: hidden;
    text-decoration: none;
    color: var(--zs-ink);
    font-weight: 600;
    font-size: .85rem;
    text-align: center;
    box-shadow:
        0 3px 8px rgba(15, 23, 42, .10),
        3px 3px 0 rgba(37, 99, 235, .05),
        inset 0 1px 0 rgba(255, 255, 255, .9);
    transition: transform .25s ease, box-shadow .25s ease;
}
.category-card:hover {
    transform: translateY(-5px);
    box-shadow:
        0 8px 24px rgba(15, 23, 42, .16),
        5px 5px 0 rgba(37, 99, 235, .08),
        inset 0 1px 0 rgba(255, 255, 255, 1);
}

/* Accent-tinted card backgrounds */
.category-card.accent-blue  { background: linear-gradient(180deg, #eff6ff 0%, #f8fafc 100%); border-top-color: #bfdbfe; border-left-color: #bfdbfe; }
.category-card.accent-red   { background: linear-gradient(180deg, #fef2f2 0%, #f8fafc 100%); border-top-color: #fecaca; border-left-color: #fecaca; }
.category-card.accent-gold  { background: linear-gradient(180deg, #fffbeb 0%, #f8fafc 100%); border-top-color: #fde68a; border-left-color: #fde68a; }
.category-card.accent-green { background: linear-gradient(180deg, #f0fdf4 0%, #f8fafc 100%); border-top-color: #bbf7d0; border-left-color: #bbf7d0; }

/* Icon circle */
.category-icon-wrap {
    position: relative;
    width: 64px;
    height: 64px;
    margin: 0 auto .25rem;
}
.category-icon-wrap::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 2px dashed rgba(37, 99, 235, .12);
    transition: transform .4s ease;
}
.category-card:hover .category-icon-wrap::before { transform: rotate(90deg); }
.category-card.accent-blue .category-icon-wrap::before  { border-color: rgba(37, 99, 235, .18); }
.category-card.accent-red .category-icon-wrap::before   { border-color: rgba(239, 68, 68, .18); }
.category-card.accent-gold .category-icon-wrap::before  { border-color: rgba(245, 158, 11, .18); }
.category-card.accent-green .category-icon-wrap::before { border-color: rgba(34, 197, 94, .18); }

.category-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 1.4rem;
    color: #fff;
    transition: transform .25s ease;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .12);
}
.category-card:hover .category-icon { transform: scale(1.1); }
.category-icon.accent-blue  { background: linear-gradient(135deg, #2563eb, #60a5fa); }
.category-icon.accent-red   { background: linear-gradient(135deg, #ef4444, #f87171); }
.category-icon.accent-gold  { background: linear-gradient(135deg, #f59e0b, #fbbf24); }
.category-icon.accent-green { background: linear-gradient(135deg, #22c55e, #4ade80); }

/* Label */
.category-label {
    display: block;
    font-weight: 700;
    font-size: .85rem;
    color: var(--zs-heading);
    line-height: 1.3;
    margin-top: .25rem;
    transition: color .18s ease;
}
.category-card:hover .category-label { color: var(--zs-primary-deeper); }

/* Arrow indicator */
.category-arrow {
    position: absolute;
    bottom: .75rem;
    right: .75rem;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: .65rem;
    color: var(--zs-primary);
    background: rgba(37, 99, 235, .08);
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity .2s ease, transform .2s ease;
}
.category-card:hover .category-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Tips & resources cards */
.tip-card {
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--zs-border);
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
    transition: transform .18s ease, box-shadow .18s ease;
}
.tip-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -14px rgba(15, 23, 42, .2); }
.tip-card-img {
    height: 150px;
    background-size: cover;
    background-position: center;
}

/* ================================================================
   Teacher dashboard
   ================================================================ */

.dashboard-welcome {
    padding: 1.75rem 1.9rem;
    border-radius: 18px;
    color: #fff;
    background: radial-gradient(500px 240px at 110% -10%, rgba(96, 165, 250, .4), transparent 60%),
                var(--zs-gradient);
    box-shadow: 0 20px 50px -18px rgba(37, 99, 235, .5);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.dashboard-welcome h3 { color: #fff; font-weight: 800; letter-spacing: -.3px; }
.dashboard-welcome p { color: rgba(255, 255, 255, .85); max-width: 42rem; }

/* Colored metric cards */
.metric-card {
    position: relative;
    display: flex;
    gap: 1rem;
    padding: 1.1rem 1.25rem;
    border-radius: 16px;
    color: #fff;
    height: 100%;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 14px 30px -14px rgba(15, 23, 42, .2);
    transition: transform .18s ease, box-shadow .18s ease;
}
.metric-card:hover { transform: translateY(-3px); color: #fff; box-shadow: 0 4px 10px rgba(15, 23, 42, .1), 0 22px 40px -16px rgba(15, 23, 42, .3); }

.metric-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 1.15rem;
    background: rgba(255, 255, 255, .22);
    flex-shrink: 0;
}

.metric-body { min-width: 0; }
.metric-label {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    opacity: .9;
}
.metric-value {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1.05;
    margin-top: .15rem;
}
.metric-trend {
    font-size: .74rem;
    opacity: .85;
    margin-top: .3rem;
}

.metric-teal  { background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%); }
.metric-blue  { background: linear-gradient(135deg, #0ea5e9 0%, #0891b2 100%); }
.metric-amber { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); }
.metric-rose  { background: linear-gradient(135deg, #f43f5e 0%, #be185d 100%); }

/* Activity lists on the dashboard */
.activity-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.activity-list li {
    display: flex;
    gap: .9rem;
    align-items: center;
    padding: .65rem 0;
    border-bottom: 1px solid var(--zs-border);
}
.activity-list li:last-child { border-bottom: 0; }

.activity-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 700;
    color: #fff;
    background: var(--zs-gradient);
    flex-shrink: 0;
    font-size: .95rem;
}

.activity-date {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: var(--zs-primary-soft);
    color: var(--zs-primary-deeper);
    flex-shrink: 0;
    line-height: 1;
}
.activity-date .day { font-weight: 800; font-size: 1.05rem; }
.activity-date .mon { font-size: .62rem; letter-spacing: 1.2px; font-weight: 700; }

/* ================================================================
   Subjects page
   ================================================================ */

/* Adopted-subject tiles (colored cards, one per subject) */
.subject-tile {
    display: flex;
    align-items: center;
    gap: .9rem;
    padding: .95rem 1.1rem;
    border-radius: 14px;
    height: 100%;
    color: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 10px 22px -12px rgba(15, 23, 42, .25);
    transition: transform .18s ease, box-shadow .18s ease;
}
.subject-tile:hover { transform: translateY(-2px); box-shadow: 0 4px 10px rgba(15, 23, 42, .08), 0 16px 32px -14px rgba(15, 23, 42, .3); }

.subject-tile-icon {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    font-size: 1.05rem;
    background: rgba(255, 255, 255, .22);
    flex-shrink: 0;
}
.subject-tile-name {
    font-weight: 700;
    font-size: .98rem;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.subject-tile-meta {
    font-size: .74rem;
    opacity: .88;
    margin-top: .2rem;
}

/* Grouped library — section header for each category */
.subject-category { margin-top: 1.4rem; }
.subject-category:first-of-type { margin-top: .2rem; }
.subject-category-head {
    display: flex;
    align-items: center;
    gap: .7rem;
    margin-bottom: .8rem;
}
.subject-category-badge {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: .95rem;
    flex-shrink: 0;
}
.subject-category-name { font-weight: 700; color: var(--zs-ink); font-size: .95rem; }
.subject-category-count { font-size: .72rem; color: var(--zs-muted); margin-top: .1rem; }

/* Rows in the library */
.subject-library-item {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .55rem .85rem;
    border-radius: 10px;
    background: #fff;
    border: 1px solid var(--zs-border);
    font-size: .9rem;
    color: var(--zs-ink);
    margin: 0;
}
.subject-library-item.is-adopted {
    background: var(--zs-primary-soft);
    border-color: #bfdbfe;
}

/* Empty state */
.subject-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .75rem;
    padding: 2.25rem 1.5rem;
    border-radius: 14px;
    background: #fbfcfe;
    border: 1px dashed var(--zs-border);
    color: var(--zs-muted);
    text-align: center;
}
.subject-empty .fa { font-size: 1.75rem; color: #bfdbfe; }

/* Category color classes (shared between adopted tiles & library badges) */
.subj-math     { background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%); }
.subj-science  { background: linear-gradient(135deg, #0ea5e9 0%, #0891b2 100%); }
.subj-lang     { background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%); }
.subj-cs       { background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%); }
.subj-arts     { background: linear-gradient(135deg, #f43f5e 0%, #be185d 100%); }
.subj-biz      { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); }
.subj-test     { background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%); }
.subj-custom   { background: linear-gradient(135deg, #a855f7 0%, #7e22ce 100%); }
.subj-other    { background: linear-gradient(135deg, #64748b 0%, #475569 100%); }

/* ================================================================
   CES-AI search page
   ================================================================ */

.mkt-search-hero {
    background: var(--zs-gradient-soft);
    border-bottom: 1px solid #dbeafe;
}

.search-filter-card {
    background: #fff;
    border: 1px solid var(--zs-border);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 24px 50px -24px rgba(37, 99, 235, .2);
}

.search-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .75rem;
    padding: 3rem 1.5rem;
    border-radius: 16px;
    background: #fbfcfe;
    border: 1px dashed var(--zs-border);
    color: var(--zs-muted);
    text-align: center;
}
.search-empty .fa {
    font-size: 1.8rem;
    color: #bfdbfe;
}

/* ================================================================
   Super Admin portal
   ================================================================ */

.admin-body { background: var(--zs-surface); }

.admin-nav {
    padding-top: .55rem;
    padding-bottom: .55rem;
}

.admin-role-badge {
    background: rgba(255, 215, 0, .16);
    border: 1px solid rgba(255, 215, 0, .38);
    color: #ffe680;
    font-weight: 700;
    font-size: .72rem;
    letter-spacing: .4px;
    padding: .4rem .75rem;
}

.admin-page-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.3rem 1.5rem;
    margin-bottom: 1rem;
    border-radius: 16px;
    background: var(--zs-gradient);
    color: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 20px 36px -20px rgba(37, 99, 235, .6);
}
.admin-page-head h3 {
    color: #fff;
    font-weight: 800;
    letter-spacing: -.3px;
    font-size: 1.35rem;
}
.admin-page-head p {
    color: rgba(255, 255, 255, .86);
    max-width: 46rem;
    font-size: .9rem;
}

.admin-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    padding: .55rem;
    margin-bottom: 1.5rem;
    background: #fff;
    border: 1px solid var(--zs-border);
    border-radius: 14px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}
.admin-tab {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .5rem .8rem;
    border-radius: 10px;
    color: var(--zs-body);
    font-size: .83rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background .15s ease, color .15s ease;
}
.admin-tab .fa { font-size: .9rem; color: var(--zs-primary); }
.admin-tab:hover,
.admin-tab:focus-visible {
    background: var(--zs-primary-soft);
    color: var(--zs-primary-deeper);
}
.admin-tab.active {
    background: var(--zs-gradient);
    color: #fff;
    box-shadow: 0 8px 18px -10px var(--zs-glow);
}
.admin-tab.active .fa { color: #fff; }

.admin-chart {
    position: relative;
    height: 280px;
}
@media (max-width: 575.98px) {
    .admin-chart { height: 230px; }
}

.admin-footer {
    margin-top: 2rem;
    padding: 1.1rem 0;
    border-top: 1px solid var(--zs-border);
    color: var(--zs-muted);
    font-size: .78rem;
}
.admin-footer .container-xxl {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: .5rem;
}

.metric-orange { background: linear-gradient(135deg, #ff5722 0%, #d84315 100%); }

.admin-plan-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    padding-bottom: .9rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--zs-border);
}
.admin-plan-head .plan-key {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .6px;
    text-transform: uppercase;
    color: var(--zs-primary);
    background: var(--zs-primary-soft);
    border-radius: 999px;
    padding: .25rem .65rem;
}

.admin-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.admin-table-wrap .table { min-width: 640px; }

.admin-status {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-weight: 600;
}
.admin-status::before {
    content: "";
    width: .5rem;
    height: .5rem;
    border-radius: 50%;
    background: currentColor;
    display: inline-block;
}

/* ============================================
   In-house chat assistant widget
   ============================================ */
.assistant-fab {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    text-decoration: none;
    display: grid;
    place-items: center;
    box-shadow: 0 10px 30px rgba(37, 99, 235, .45);
    z-index: 1040;
    transition: transform .18s ease, box-shadow .18s;
}
.assistant-fab:hover,
.assistant-fab:focus-visible {
    transform: translateY(-3px);
    box-shadow: 0 16px 36px rgba(37, 99, 235, .55);
    color: #fff;
}
.assistant-fab .fa { font-size: 1.65rem; }

.assistant-panel {
    position: fixed;
    bottom: 5.5rem;
    right: 1.5rem;
    width: 380px;
    max-width: calc(100vw - 2rem);
    max-height: 560px;
    height: min(560px, calc(100dvh - 7rem));
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 28px 60px rgba(15, 23, 42, .35);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 1040;
    border: 1px solid rgba(37, 99, 235, .2);
}
.assistant-panel[hidden] { display: none; }

.assistant-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .75rem 1rem;
    background: linear-gradient(135deg, #1d4ed8, #2563eb);
    color: #fff;
}
.assistant-title { font-weight: 700; font-size: .95rem; line-height: 1.1; }
.assistant-close {
    background: transparent;
    border: 0;
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
    padding: .1rem .4rem;
    cursor: pointer;
    border-radius: 8px;
}
.assistant-close:hover { background: rgba(255, 255, 255, .15); }

.assistant-body {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: .9rem;
    background: #f8fafc;
}

.assistant-msg {
    max-width: 85%;
    padding: .55rem .7rem;
    border-radius: 12px;
    font-size: .88rem;
    line-height: 1.45;
    margin-bottom: .55rem;
    word-wrap: break-word;
}
.assistant-msg-user {
    background: #2563eb;
    color: #fff;
    align-self: flex-end;
    margin-left: auto;
    border-bottom-right-radius: 2px;
}
.assistant-msg-bot {
    background: #eef4ff;
    color: #0f172a;
    align-self: flex-start;
    border-bottom-left-radius: 2px;
}

.assistant-chips { display: flex; flex-wrap: wrap; gap: .35rem; margin: .35rem 0 .65rem; }
.assistant-chip {
    background: #e0ebff;
    color: #1d4ed8;
    border: 0;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 600;
    padding: .32rem .75rem;
    cursor: pointer;
    transition: transform .1s;
}
.assistant-chip:hover { transform: translateY(-1px); background: #cdddfe; }
.assistant-chip:focus-visible { outline: 2px solid #1d4ed8; outline-offset: 1px; }

.assistant-form {
    display: flex;
    gap: .4rem;
    padding: .6rem .75rem;
    border-top: 1px solid #e2e8f0;
    background: #fff;
}
.assistant-input {
    flex: 1 1 auto;
    min-width: 0;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    padding: .5rem .85rem;
    font-size: .9rem;
    transition: box-shadow .15s;
}
.assistant-input:focus { outline: 0; box-shadow: 0 0 0 3px rgba(37, 99, 235, .25); border-color: #2563eb; }
.assistant-send {
    background: #2563eb;
    color: #fff;
    border: 0;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    cursor: pointer;
}
.assistant-send:hover { background: #1d4ed8; }
.assistant-send:focus-visible { outline: 2px solid #1d4ed8; outline-offset: 2px; }

@media (max-width: 480px) {
    .assistant-fab { width: 56px; height: 56px; bottom: 1rem; right: 1rem; }
    .assistant-fab .fa { font-size: 1.4rem; }
    .assistant-panel { width: calc(100vw - 1.5rem); max-height: none; height: calc(100dvh - 6rem); bottom: 4.5rem; right: .75rem; }
}
/* Dashboard section card color accents */
.card-accent-primary  { border-left: 4px solid #2563eb; }
.card-accent-indigo   { border-left: 4px solid #6366f1; }
.card-accent-teal     { border-left: 4px solid #14b8a6; }
.card-accent-amber    { border-left: 4px solid #f59e0b; }
.card-accent-rose     { border-left: 4px solid #f43f5e; }
.card-accent-violet   { border-left: 4px solid #8b5cf6; }
.card-accent-emerald  { border-left: 4px solid #10b981; }

.dashboard-section-title { font-weight: 700; letter-spacing: -.2px; }
.card-accent-primary  .dashboard-section-title { color: #1d4ed8; }
.card-accent-indigo   .dashboard-section-title { color: #4f46e5; }
.card-accent-teal     .dashboard-section-title { color: #0d9488; }
.card-accent-amber    .dashboard-section-title { color: #b45309; }
.card-accent-rose     .dashboard-section-title { color: #be123c; }
.card-accent-violet   .dashboard-section-title { color: #7c3aed; }
.card-accent-emerald  .dashboard-section-title { color: #047857; }
