@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');
@import url('https://fonts.googleapis.com/css2?family=Sora:wght@500;600;700&family=Source+Sans+3:wght@400;500;600&display=swap');

:root {
    --bo-cream: #f0f7ff;
    --bo-paper: #ffffff;
    --bo-ink-50: #e0f2fe;
    --bo-ink-200: #bae6fd;
    --bo-ink-600: #475569;
    --bo-ink-700: #1e293b;
    --bo-ink-900: #0f172a;
    --bo-border: #cbd5e1;
    --bo-accent: #ea580c;
    --bo-accent-700: #c2410c;
    --bo-success: #20876a;
    --bo-success-700: #17624c;
    --bo-danger: #b22d2f;
    --bo-danger-700: #8f2325;
    --bo-shell-gradient: #bae6fd;
    --bo-shell-gradient-dark: #ea580c;
    --bo-calendar-text: #0f172a;
}

html {
    font-size: 17px;
}

html,
body {
    font-family: 'Source Sans 3', 'Segoe UI', sans-serif;
    line-height: 1.5;
    background: linear-gradient(145deg, #f0f7ff 0%, #e0f2fe 45%, #dbeafe 100%) fixed;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Sora', 'Segoe UI', sans-serif;
}

.registration-availability-section {
    margin-top: 0.5rem;
}

.registration-availability-label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: #0f172a;
}

.registration-availability-editor {
    padding: 0.85rem;
    border: 1.5px dashed #cbd5e1;
    border-radius: 12px;
    background: #fff;
    user-select: none;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.registration-availability-visual {
    display: grid;
    gap: 0.4rem;
    overflow-x: auto;
    padding-bottom: 0.35rem;
}

.registration-availability-times,
.registration-availability-day-row {
    display: grid;
    grid-template-columns: 3.2rem repeat(28, minmax(13px, 1fr)) 3.5rem;
    gap: 0.15rem;
    align-items: center;
}

.registration-availability-time-label {
    color: #64748b;
    font-size: 0.68rem;
    font-weight: 600;
    text-align: center;
}

.registration-availability-day-label {
    color: #1e293b;
    font-size: 0.75rem;
    font-weight: 700;
}

.registration-availability-slot {
    min-height: 22px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    background: #f8fafc;
    cursor: pointer;
    outline: none;
    transition: all 0.15s ease;
}

.registration-availability-slot:hover {
    border-color: #f97316;
    background: #ffedd5;
}

.registration-availability-slot.selected {
    border-color: #ea580c;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    box-shadow: 0 1px 4px rgba(234, 88, 12, 0.35);
}

.registration-availability-slot:focus-visible {
    box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.4);
}

.registration-availability-day-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.25rem;
    margin-left: 0.25rem;
}

.registration-day-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 6px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.15s ease;
    padding: 0;
}

.registration-day-action-btn--select {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #059669;
}

.registration-day-action-btn--select:hover {
    background: #d1fae5;
    border-color: #6ee7b7;
    color: #047857;
}

.registration-day-action-btn--clear {
    background: #fff1f2;
    border-color: #fecdd3;
    color: #e11d48;
}

.registration-day-action-btn--clear:hover {
    background: #ffe4e6;
    border-color: #fda4af;
    color: #be123c;
}

.registration-availability-help {
    margin: 0.6rem 0 0;
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 500;
}

.registration-availability-summary {
    display: grid;
    gap: 0.25rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

body.bo-dark .registration-availability-label,
.dark .registration-availability-label,
html.dark .registration-availability-label {
    color: #f1f5f9;
}

body.bo-dark .registration-availability-editor,
.dark .registration-availability-editor,
html.dark .registration-availability-editor {
    border-color: #334155;
    background: #0f172a;
}

body.bo-dark .registration-availability-time-label,
.dark .registration-availability-time-label,
html.dark .registration-availability-time-label {
    color: #94a3b8;
}

body.bo-dark .registration-availability-day-label,
.dark .registration-availability-day-label,
html.dark .registration-availability-day-label {
    color: #f1f5f9;
}

body.bo-dark .registration-availability-slot,
.dark .registration-availability-slot,
html.dark .registration-availability-slot {
    border-color: #334155;
    background: #1e293b;
}

body.bo-dark .registration-availability-slot:hover,
.dark .registration-availability-slot:hover,
html.dark .registration-availability-slot:hover {
    border-color: #fb923c;
    background: #334155;
}

body.bo-dark .registration-availability-slot.selected,
.dark .registration-availability-slot.selected,
html.dark .registration-availability-slot.selected {
    border-color: #ea580c;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    box-shadow: 0 1px 4px rgba(249, 115, 22, 0.45);
}

body.bo-dark .registration-day-action-btn--select,
.dark .registration-day-action-btn--select,
html.dark .registration-day-action-btn--select {
    background: rgba(6, 78, 59, 0.45);
    border-color: #065f46;
    color: #34d399;
}

body.bo-dark .registration-day-action-btn--select:hover,
.dark .registration-day-action-btn--select:hover,
html.dark .registration-day-action-btn--select:hover {
    background: rgba(6, 95, 70, 0.7);
    border-color: #10b981;
    color: #6ee7b7;
}

body.bo-dark .registration-day-action-btn--clear,
.dark .registration-day-action-btn--clear,
html.dark .registration-day-action-btn--clear {
    background: rgba(136, 19, 55, 0.45);
    border-color: #9f1239;
    color: #fb7185;
}

body.bo-dark .registration-day-action-btn--clear:hover,
.dark .registration-day-action-btn--clear:hover,
html.dark .registration-day-action-btn--clear:hover {
    background: rgba(159, 18, 57, 0.7);
    border-color: #f43f5e;
    color: #fda4af;
}

body.bo-dark .registration-availability-help,
.dark .registration-availability-help,
html.dark .registration-availability-help {
    color: #94a3b8;
}

body.bo-dark .registration-availability-summary,
.dark .registration-availability-summary,
html.dark .registration-availability-summary {
    border-top-color: #334155;
}

@media (max-width: 768px) {
    .registration-availability-times,
    .registration-availability-day-row {
        grid-template-columns: 2.4rem repeat(28, minmax(12px, 1fr)) 3.2rem;
    }
}

.bo-shell {
    background: linear-gradient(145deg, #f0f7ff 0%, #e0f2fe 45%, #dbeafe 100%) fixed;
}

.bo-shell__header {
    position: sticky;
    top: 0;
    z-index: 80;
    overflow: visible;
    border-bottom: 1px solid rgba(30, 41, 59, 0.12);
}

.bo-shell__header-bg {
    position: absolute;
    inset: 0;
    background: var(--bo-shell-gradient);
}

.bo-shell__header-inner {
    position: relative;
    z-index: 1;
    padding: 0.7rem 1rem 0.8rem;
}

.bo-shell__top-row {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.bo-shell__brand-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s ease;
}

.bo-shell__brand-link:hover {
    text-decoration: none;
    color: inherit;
    opacity: 0.85;
}

.bo-shell__brand-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.bo-shell__brand {
    font-family: 'Sora', 'Segoe UI', sans-serif;
    color: #0f2747;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.2;
}

.bo-shell__tagline {
    color: #3b4f6c;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.bo-shell__nav {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    align-items: center;
}

.bo-shell__nav-link {
    color: #1f3f67;
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 999px;
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1;
    padding: 0.58rem 0.95rem;
    text-decoration: none;
    transition: all 0.2s ease;
    background: rgba(255, 255, 255, 0.55);
}

.bo-settings-strip {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    padding: 0.95rem 1rem;
    border: 1px solid var(--bo-border);
    border-radius: 1rem;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(19, 38, 53, 0.06);
}

.bo-settings-strip__header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.bo-settings-strip__title {
    margin: 0;
    font-family: 'Sora', 'Segoe UI', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--bo-ink-700);
}

.bo-settings-strip__subtitle {
    margin: 0;
    color: var(--bo-ink-600);
    font-size: 0.88rem;
}

.bo-settings-strip__items {
    display: flex;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.bo-settings-strip__item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.45rem;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
    white-space: nowrap;
}

.bo-settings-strip__item--pink {
    background: rgba(244, 114, 182, 0.12);
    color: #b23a7a;
}

.bo-settings-strip__item--blue {
    background: rgba(59, 130, 246, 0.12);
    color: #1d4ed8;
}

.bo-settings-strip__item:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(19, 38, 53, 0.08);
}

.bo-settings-strip__divider {
    align-self: center;
    width: 1px;
    height: 1.35rem;
    border-right: 2px dotted rgba(59, 130, 246, 0.28);
    margin: 0 0.1rem;
}

.bo-shell__nav-link:hover {
    color: #17314f;
    border-color: rgba(59, 130, 246, 0.35);
    background: rgba(255, 255, 255, 0.78);
}

.bo-shell__nav-link--active {
    color: #ffffff !important;
    background: var(--bo-accent);
    border-color: var(--bo-accent);
    box-shadow: 0 1px 4px rgba(37, 99, 235, 0.28);
}

/* ── Mobile slide-over menu ── */

.bo-mobile-menu-backdrop {
    position: fixed;
    inset: 0;
    z-index: 90;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.bo-mobile-menu-backdrop--visible {
    opacity: 1;
    pointer-events: auto;
}

.bo-mobile-menu-drawer {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 100;
    width: 280px;
    max-width: 85vw;
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    background: var(--bo-paper);
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.15);
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.bo-mobile-menu-drawer--open {
    transform: translateX(0);
}

.bo-mobile-nav-link {
    display: flex;
    align-items: center;
    padding: 0.65rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--bo-ink-700);
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.bo-mobile-nav-link:hover {
    background: var(--bo-ink-50);
    color: var(--bo-ink-900);
}

.bo-mobile-nav-link--active {
    background: rgba(59, 130, 246, 0.1);
    color: var(--bo-accent);
    font-weight: 600;
}

@media (min-width: 1024px) {

    .bo-mobile-menu-backdrop,
    .bo-mobile-menu-drawer {
        display: none;
    }
}

/* ── Public layout navbar ── */

.bo-school-logo {
    width: 2.5rem;
    height: 2.5rem;
    flex-shrink: 0;
    object-fit: contain;
}

.bo-brand-logo-wrap .bo-school-logo {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
}

.bo-public-logo {
    font-family: 'Sora', 'Segoe UI', sans-serif;
    color: #0f2747;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.2;
}

.bo-public-tagline {
    color: #3b4f6c;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.bo-shell__main {
    padding-top: 1rem;
}

.bo-page-header {
    position: relative;
    overflow: hidden;
    border-radius: 1.25rem;
    margin-bottom: 1rem;
}

.bo-page-header__bg {
    position: absolute;
    inset: 0;
    background: var(--bo-shell-gradient);
}

.bo-page-header__content {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    color: #132635;
}

.bo-page-header__eyebrow {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #355170;
}

.bo-page-header__title {
    margin: 0;
    font-size: 1.95rem;
    font-weight: 700;
    line-height: 1.05;
}

.bo-page-header__subtitle {
    margin: 0;
    color: #2f4b69;
    font-size: 0.97rem;
}

.bo-page-header__actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.bo-filter-bar {
    background: var(--bo-paper) !important;
    border: 1px solid var(--bo-border);
    box-shadow: 0 8px 22px rgba(19, 38, 53, 0.06);
}

.bo-filter-bar__layout {
    display: flex;
    gap: 0.9rem;
    justify-content: space-between;
    align-items: end;
    flex-wrap: wrap;
}

.bo-filter-bar__fields {
    flex: 1;
    min-width: 16rem;
}

.bo-filter-bar__actions {
    display: flex;
    align-items: center;
}

.bo-input {
    width: 100%;
    border: 1px solid var(--bo-border);
    border-radius: 0.75rem;
    background: #ffffff;
    color: var(--bo-ink-900);
    padding: 0.6rem 0.75rem;
    font-size: 0.93rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.bo-input:focus {
    outline: none;
    border-color: var(--bo-accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.bo-data-surface {
    background: var(--bo-paper) !important;
    border: 1px solid var(--bo-border);
    border-radius: 1rem;
    box-shadow: 0 6px 18px rgba(19, 38, 53, 0.04);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.bo-data-surface--plain {
    border-radius: 0 !important;
    box-shadow: none !important;
}

.bo-data-table th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--bo-ink-600);
}

.bo-data-col-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    white-space: nowrap;
}

.bo-data-col-header__title {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bo-data-col-header__btns {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.25rem;
    flex-shrink: 0;
    margin-left: 0.4rem;
}

.bo-data-sort-wrap,
.bo-data-filter-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.bo-data-sort-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--bo-border);
    border-radius: 0.25rem;
    background: #fff;
    color: var(--bo-ink-700);
    min-width: 1.3rem;
    height: 1.3rem;
    padding: 0;
    line-height: 1;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.bo-data-sort-btn:hover {
    background: var(--bo-ink-50);
}

/* ascending — sky blue */
.bo-data-sort-btn--asc {
    color: #0284c7;
    background: #f0f9ff;
    border-color: #7dd3fc;
}

.bo-data-sort-btn--asc:hover {
    background: #e0f2fe;
}

/* descending — rose pink */
.bo-data-sort-btn--desc {
    color: #e11d48;
    background: #fff1f2;
    border-color: #fda4af;
}

.bo-data-sort-btn--desc:hover {
    background: #ffe4e6;
}

/* filter icon button */
.bo-data-filter-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--bo-border);
    border-radius: 0.25rem;
    background: #fff;
    color: var(--bo-ink-600);
    min-width: 1.3rem;
    height: 1.3rem;
    padding: 0;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.bo-data-filter-btn:hover {
    background: var(--bo-ink-50);
}

/* active filter — sky blue */
.bo-data-filter-btn--active {
    color: #0284c7;
    background: #f0f9ff;
    border-color: #7dd3fc;
}

.bo-data-filter-btn--active:hover {
    background: #e0f2fe;
}

/* filter popup positioning */
.bo-data-filter-wrap {
    position: relative;
}

.bo-data-filter-popup {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    z-index: 50;
    min-width: 14rem;
    background: var(--bo-paper);
    border: 1px solid var(--bo-border);
    border-radius: 0.75rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.bo-data-filter-popup__footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.4rem;
    padding-top: 0.25rem;
    border-top: 1px solid var(--bo-border);
    margin-top: 0.25rem;
}

.bo-data-filter-clear {
    font-size: 0.78rem;
    padding: 0.25rem 0.6rem;
    border: 1px solid var(--bo-border);
    border-radius: 0.4rem;
    background: #fff;
    color: var(--bo-ink-700);
    cursor: pointer;
}

.bo-data-filter-clear:hover {
    background: var(--bo-ink-50);
}

.bo-data-filter-close {
    font-size: 0.78rem;
    padding: 0.25rem 0.6rem;
    border: 1px solid #7dd3fc;
    border-radius: 0.4rem;
    background: #f0f9ff;
    color: #0284c7;
    cursor: pointer;
}

.bo-data-filter-close:hover {
    background: #e0f2fe;
}

/* transparent backdrop to close popup on outside click */
.bo-data-filter-backdrop {
    position: fixed;
    inset: 0;
    z-index: 49;
}

.bo-data-filter-input {
    font-size: 0.8rem;
    padding: 0.4rem 0.55rem;
    width: 100%;
}

.bo-data-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0;
    padding: 0.7rem 1rem;
    border-top: 1px solid var(--bo-border);
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.85) 0%, rgba(255, 255, 255, 1) 100%);
}

.bo-data-pagination__summary {
    font-size: 0.8rem;
    color: var(--bo-ink-700);
}

.bo-data-pagination__controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.bo-data-pagination__size {
    width: 5rem;
}

.bo-data-pagination__page {
    font-size: 0.8rem;
    min-width: 3rem;
    text-align: center;
    color: var(--bo-ink-700);
}

.bo-card {
    background: var(--bo-paper) !important;
    border: 1px solid var(--bo-border);
    box-shadow: 0 6px 18px rgba(19, 38, 53, 0.06);
}

.bo-card__title {
    color: var(--bo-ink-900);
}

.bo-card__subtitle {
    color: var(--bo-ink-600);
}

.bo-btn {
    border-color: transparent;
}

.bo-btn--primary {
    background: var(--bo-accent);
    color: #ffffff;
}

.bo-btn--primary:hover {
    background: var(--bo-accent-700);
}

.bo-btn--primary:focus {
    --tw-ring-color: rgba(59, 130, 246, 0.5) !important;
}

.bo-btn--secondary {
    background: #ffffff;
    color: var(--bo-ink-900);
    border: 1px solid var(--bo-border);
}

.bo-btn--secondary:hover {
    background: var(--bo-ink-50);
}

.bo-btn--secondary:focus,
.bo-btn--ghost:focus {
    --tw-ring-color: rgba(42, 70, 89, 0.35) !important;
}

.bo-btn--ghost {
    background: transparent;
    color: var(--bo-ink-700);
}

.bo-btn--ghost:hover {
    background: var(--bo-ink-50);
}

.bo-btn--success {
    background: var(--bo-success);
    color: #ffffff;
}

.bo-btn--success:hover {
    background: var(--bo-success-700);
}

.bo-btn--success:focus {
    --tw-ring-color: rgba(32, 135, 106, 0.45) !important;
}

.bo-btn--danger {
    background: var(--bo-danger);
    color: #ffffff;
}

.bo-btn--danger:hover {
    background: var(--bo-danger-700);
}

.bo-btn--danger:focus {
    --tw-ring-color: rgba(178, 45, 47, 0.45) !important;
}

.bo-badge {
    line-height: 1.2;
}

.bo-badge--default {
    background: var(--bo-ink-50);
    color: var(--bo-ink-700);
    border-color: var(--bo-border);
}

.bo-badge--success {
    background: #e8f6f2;
    color: #17624c;
    border-color: #8dd5bf;
}

.bo-badge--warning {
    background: #fff5df;
    color: #8a5c00;
    border-color: #efd59c;
}

.bo-badge--error {
    background: #fdebec;
    color: #8f2325;
    border-color: #ebb0b2;
}

.bo-badge--info {
    background: #e8f2f7;
    color: #285b74;
    border-color: #abccdc;
}

.bo-badge--primary {
    background: #e8f7f8;
    color: #045f68;
    border-color: #9dd7dc;
}

.bo-badge--secondary {
    background: #edf1f4;
    color: #445d6f;
    border-color: #c0ced8;
}

.bo-empty-state {
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

.bo-empty-state__content {
    text-align: center;
    padding: 2rem 1rem;
}

.bo-empty-state__icon {
    margin: 0 auto;
    color: var(--bo-ink-600);
}

.bo-empty-state__title {
    margin: 0.75rem 0 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--bo-ink-900);
}

.bo-empty-state__description {
    margin: 0.35rem 0 0;
    color: var(--bo-ink-600);
    font-size: 0.93rem;
}

.bo-empty-state__action {
    margin-top: 0.8rem;
}

.bo-message-card {
    background: #f9fcfd !important;
    border: 1px solid var(--bo-border);
}

/* Landing page card/reveal styles must be global because classes are rendered inside child components (UiCard). */
.bo-landing-section-card {
    border-color: rgba(14, 165, 233, 0.28) !important;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(224, 242, 254, 0.92), rgba(219, 234, 254, 0.72)) !important;
}

.bo-landing-format-card {
    border-color: rgba(56, 189, 248, 0.34) !important;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.97), rgba(224, 242, 254, 0.9), rgba(219, 234, 254, 0.8)) !important;
}

.bo-landing-media-card {
    border-color: rgba(59, 130, 246, 0.34) !important;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.97), rgba(224, 242, 254, 0.88), rgba(219, 234, 254, 0.7)) !important;
}

.bo-landing-cta-card {
    border-color: rgba(16, 185, 129, 0.32) !important;
    background: linear-gradient(150deg, rgba(255, 255, 255, 0.95), rgba(209, 250, 229, 0.66), rgba(224, 242, 254, 0.44)) !important;
}

.bo-landing-contact-card {
    border-color: rgba(14, 116, 144, 0.3) !important;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.97), rgba(224, 242, 254, 0.9), rgba(219, 234, 254, 0.55)) !important;
}

.bo-landing-testimonials-card {
    border-color: rgba(56, 189, 248, 0.3) !important;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.97), rgba(224, 242, 254, 0.88), rgba(219, 234, 254, 0.58)) !important;
}

.bo-landing-news-card {
    border-color: rgba(56, 189, 248, 0.32) !important;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(224, 242, 254, 0.86), rgba(219, 234, 254, 0.74)) !important;
}

.bo-landing-methodology-card {
    border-color: rgba(14, 116, 144, 0.3) !important;
    background: linear-gradient(140deg, rgba(255, 255, 255, 0.98), rgba(224, 242, 254, 0.86), rgba(240, 253, 250, 0.62)) !important;
}

.bo-landing-month-card {
    border-color: rgba(14, 165, 233, 0.3) !important;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(224, 242, 254, 0.88), rgba(255, 255, 255, 0.9)) !important;
}

.bo-landing-benefits-card {
    border-color: rgba(16, 185, 129, 0.3) !important;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.97), rgba(240, 253, 250, 0.88), rgba(224, 242, 254, 0.5)) !important;
}

.bo-landing-faq-card {
    border-color: rgba(6, 95, 70, 0.26) !important;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(236, 253, 245, 0.72), rgba(224, 242, 254, 0.42)) !important;
}

.bo-welcome-card--info {
    border-color: rgba(14, 116, 144, 0.22) !important;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(224, 242, 254, 0.72)) !important;
}

.bo-welcome-card--success {
    border-color: rgba(22, 163, 74, 0.2) !important;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.97), rgba(220, 252, 231, 0.7)) !important;
}

.bo-welcome-card--warning {
    border-color: rgba(245, 158, 11, 0.24) !important;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.97), rgba(254, 243, 199, 0.74)) !important;
}

.bo-welcome-card--error {
    border-color: rgba(239, 68, 68, 0.22) !important;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.97), rgba(254, 226, 226, 0.74)) !important;
}

@media (max-width: 1023px) {
    .bo-page-header__content {
        flex-direction: column;
        align-items: flex-start;
    }

    .bo-shell__header-inner {
        padding-top: 0.65rem;
        padding-bottom: 0.7rem;
    }

    .bo-shell__top-row {
        gap: 0.5rem;
    }

    .bo-shell__brand {
        font-size: 1.1rem;
    }

    .bo-shell__brand-wrap {
        max-width: 140px;
    }

    .bo-shell__brand-wrap .bo-shell__brand {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

@media (max-width: 640px) {
    .bo-shell__header-inner {
        padding: 0.5rem 0.75rem 0.55rem;
    }

    .bo-shell__brand {
        font-size: 1rem;
    }

    .bo-shell__brand-wrap {
        max-width: 110px;
    }

    .bo-page-header__content {
        padding: 1rem;
    }

    .bo-page-header__title {
        font-size: 1.5rem;
    }

    .bo-shell__main {
        padding: 0.75rem 0.5rem;
    }

    .bo-school-logo {
        width: 2rem;
        height: 2rem;
    }
}

html.bo-dark,
html.bo-dark body,
body.bo-dark {
    background: linear-gradient(180deg, #09172B 0%, #0F2545 45%, #15335D 85%, #0B1C33 100%) fixed !important;
    color: #e5e7eb;
    --bo-cream: #0e2341;
    --bo-paper: #132845;
    --bo-ink-50: #1a3559;
    --bo-ink-200: #244773;
    --bo-ink-600: #94a3b8;
    --bo-ink-700: #cbd5e1;
    --bo-ink-900: #f8fafc;
    --bo-border: rgba(56, 189, 248, 0.22);
    --bo-accent: #f97316;
    --bo-accent-700: #ea580c;
    --bo-success: #10b981;
    --bo-success-700: #059669;
    --bo-danger: #ef4444;
    --bo-danger-700: #dc2626;
    --bo-calendar-text: #ffffff;
}

html:has(body.bo-dark),
html:has(body.bo-dark) body {
    background: linear-gradient(180deg, #09172B 0%, #0F2545 45%, #15335D 85%, #0B1C33 100%) fixed !important;
}

body.bo-dark .bo-shell {
    background: transparent !important;
}

/* School name in navbar */
body.bo-dark .bo-shell__brand {
    color: #ffffff !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

body.bo-dark .bo-shell__tagline {
    color: #94a3b8 !important;
}

body.bo-dark .bo-public-logo {
    color: #ffffff !important;
}

/* Elevated, brightened cards in dark mode */
body.bo-dark .bo-card,
body.bo-dark .bg-white {
    background-color: #152744 !important;
    border-color: rgba(56, 189, 248, 0.22) !important;
    color: #f8fafc !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4) !important;
}

body.bo-dark .bg-gray-50 {
    background-color: #0f1e36 !important;
}

/* Dark mode alert / info cards & payment cards */
body.bo-dark .bg-blue-50,
.bo-dark .bg-blue-50 {
    background-color: rgba(15, 37, 69, 0.85) !important;
    border-color: rgba(56, 189, 248, 0.35) !important;
    color: #e0f2fe !important;
}

body.bo-dark .bg-blue-50 .text-blue-800,
body.bo-dark .bg-blue-50 .text-blue-900,
.bo-dark .bg-blue-50 .text-blue-800,
.bo-dark .bg-blue-50 .text-blue-900 {
    color: #93c5fd !important;
}

body.bo-dark .bg-amber-50,
.bo-dark .bg-amber-50 {
    background-color: rgba(69, 26, 3, 0.6) !important;
    border-color: rgba(245, 158, 11, 0.35) !important;
    color: #fef3c7 !important;
}

body.bo-dark .bg-amber-50 .text-amber-800,
body.bo-dark .bg-amber-50 .text-amber-900,
.bo-dark .bg-amber-50 .text-amber-800,
.bo-dark .bg-amber-50 .text-amber-900 {
    color: #fcd34d !important;
}

body.bo-dark .bg-indigo-50,
.bo-dark .bg-indigo-50 {
    background-color: rgba(30, 27, 75, 0.7) !important;
    border-color: rgba(99, 102, 241, 0.35) !important;
    color: #e0e7ff !important;
}

body.bo-dark .bg-green-50,
.bo-dark .bg-green-50 {
    background-color: rgba(6, 78, 59, 0.5) !important;
    border-color: rgba(16, 185, 129, 0.35) !important;
    color: #d1fae5 !important;
}

body.bo-dark .bo-payment-option--selected,
.bo-dark .bo-payment-option--selected {
    background-color: rgba(15, 37, 69, 0.95) !important;
    border-color: #38bdf8 !important;
    box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.4) !important;
}

/* High contrast text */
body.bo-dark .text-gray-950,
body.bo-dark .text-gray-900,
body.bo-dark .text-gray-800 {
    color: #ffffff !important;
}

body.bo-dark .text-gray-700,
body.bo-dark .text-gray-600 {
    color: #cbd5e1 !important;
}

body.bo-dark .text-gray-500,
body.bo-dark .text-gray-400 {
    color: #94a3b8 !important;
}

body.bo-dark .border-gray-200,
body.bo-dark .border-gray-300,
body.bo-dark .divide-gray-100,
body.bo-dark .divide-gray-200 {
    border-color: rgba(56, 189, 248, 0.2) !important;
}

body.bo-dark .hover\:bg-gray-50:hover,
body.bo-dark .hover\:bg-gray-100:hover,
body.bo-dark .bg-gray-100 {
    background-color: #1a3254 !important;
}

body.bo-dark .bg-indigo-900 {
    background-color: #0c182b !important;
}

body.bo-dark .bo-shell__header-bg {
    background: #0f2545;
}

body.bo-dark .bo-shell__nav-link {
    color: #c9d7e2;
    border-color: rgba(56, 189, 248, 0.25);
    background: rgba(56, 189, 248, 0.08);
}

body.bo-dark .bo-shell__nav-link:hover {
    color: #ffffff;
    border-color: rgba(249, 115, 22, 0.5);
    background: rgba(249, 115, 22, 0.15);
}

body.bo-dark .bo-shell__nav-link--active {
    color: #ffffff !important;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%) !important;
    border-color: #ea580c !important;
    box-shadow: 0 2px 10px rgba(234, 88, 12, 0.35);
}

body.bo-dark .bo-settings-strip {
    border-color: rgba(56, 189, 248, 0.22);
    background: #0e1d33;
}

body.bo-dark .bo-settings-strip__title {
    color: #ffffff;
}

body.bo-dark .bo-settings-strip__subtitle {
    color: #94a3b8;
}

body.bo-dark .bo-settings-strip__item--pink {
    background: rgba(56, 189, 248, 0.14);
    color: #7dd3fc;
}

body.bo-dark .bo-settings-strip__item--blue {
    background: rgba(249, 115, 22, 0.14);
    color: #fdba74;
}

body.bo-dark .bo-settings-strip__divider {
    border-right-color: rgba(56, 189, 248, 0.2);
}

/* Inputs across forms */
body.bo-dark input:not([type="checkbox"]):not([type="radio"]):not([type="button"]):not([type="submit"]):not([type="color"]):not([type="range"]),
body.bo-dark textarea,
body.bo-dark select,
body.bo-dark .bo-input {
    background-color: #0e1d33 !important;
    border: 1px solid rgba(56, 189, 248, 0.28) !important;
    color: #f8fafc !important;
}

body.bo-dark input::placeholder,
body.bo-dark textarea::placeholder {
    color: #94a3b8 !important;
}

body.bo-dark input:focus,
body.bo-dark textarea:focus,
body.bo-dark select:focus,
body.bo-dark .bo-input:focus {
    border-color: #ea580c !important;
    box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.25) !important;
    outline: none !important;
}

/* Page Header in dark mode */
body.bo-dark .bo-page-header__content {
    color: #ffffff !important;
}

body.bo-dark .bo-page-header__bg {
    background: var(--bo-shell-gradient-dark);
}

body.bo-dark .bo-page-header__title {
    color: #ffffff !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

body.bo-dark .bo-page-header__eyebrow {
    color: #fdba74 !important;
}

body.bo-dark .bo-page-header__subtitle {
    color: #e2e8f0 !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

/* Buttons */
body.bo-dark .bo-btn--secondary {
    background: #0e1d33 !important;
    color: #cbd5e1 !important;
    border: 1px solid rgba(56, 189, 248, 0.25) !important;
}

body.bo-dark .bo-btn--secondary:hover {
    background: #183359 !important;
    color: #ffffff !important;
    border-color: rgba(56, 189, 248, 0.5) !important;
}

body.bo-dark .bo-btn--ghost {
    color: #cbd5e1 !important;
}

body.bo-dark .bo-btn--ghost:hover {
    background: #183359 !important;
    color: #ffffff !important;
}

body.bo-dark .bo-btn--primary {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%) !important;
    color: #ffffff !important;
    border-color: #ea580c !important;
    box-shadow: 0 4px 14px rgba(234, 88, 12, 0.35) !important;
}

body.bo-dark .bo-badge--default {
    background: #0e1d33;
    color: #cbd5e1;
    border-color: rgba(56, 189, 248, 0.25);
}

body.bo-dark .bo-mobile-nav-link {
    color: #d2dee6;
}

body.bo-dark .bo-mobile-nav-link:hover {
    background: #183359;
    color: #f3f8fb;
}

body.bo-dark .bo-mobile-nav-link--active {
    background: rgba(249, 115, 22, 0.2);
    color: #fb923c;
}

body.bo-dark .ring-indigo-100 {
    --tw-ring-color: rgba(56, 189, 248, 0.3) !important;
}

/* Table footers and pagination */
body.bo-dark .bo-data-pagination {
    background: #0c182b !important;
    border-top: 1px solid rgba(56, 189, 248, 0.2) !important;
    color: #cbd5e1 !important;
}

body.bo-dark .bo-data-pagination__summary,
body.bo-dark .bo-data-pagination__page {
    color: #94a3b8 !important;
}

body.bo-dark .bo-data-surface {
    background: #152744 !important;
    border-color: rgba(56, 189, 248, 0.22) !important;
}

body.bo-dark .bo-data-table thead {
    background: #0e1d33 !important;
}

body.bo-dark .bo-data-table th {
    color: #94a3b8 !important;
    border-bottom: 1px solid rgba(56, 189, 248, 0.18) !important;
}

body.bo-dark .bo-data-table td {
    border-bottom: 1px solid rgba(56, 189, 248, 0.12) !important;
    color: #e2e8f0 !important;
}

body.bo-dark .bo-data-table tfoot {
    background: #0c182b !important;
    border-top: 1px solid rgba(56, 189, 248, 0.2) !important;
    color: #cbd5e1 !important;
}

/* Avatar Context Menu in Navbar */
body.bo-dark .bo-user-menu {
    background: #0e1d33 !important;
    border: 1px solid rgba(56, 189, 248, 0.28) !important;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6) !important;
}

body.bo-dark .bo-user-menu .bo-btn--ghost,
body.bo-dark .bo-user-menu button {
    color: #e2e8f0 !important;
}

.bo-user-menu svg,
.bo-user-menu button svg,
.bo-user-menu .bo-btn--ghost svg {
    color: #475569;
    stroke: currentColor;
}

.bo-user-menu .bo-btn--ghost:hover svg,
.bo-user-menu button:hover svg {
    color: #ea580c;
    stroke: #ea580c;
}

body.bo-dark .bo-user-menu svg,
body.bo-dark .bo-user-menu button svg,
body.bo-dark .bo-user-menu .bo-btn--ghost svg {
    color: #38bdf8 !important;
    stroke: #38bdf8 !important;
}

body.bo-dark .bo-user-menu svg path,
body.bo-dark .bo-user-menu svg rect,
body.bo-dark .bo-user-menu svg circle {
    stroke: currentColor !important;
}

body.bo-dark .bo-user-menu .bo-btn--ghost:hover,
body.bo-dark .bo-user-menu button:hover {
    background: #183359 !important;
    color: #ffffff !important;
}

body.bo-dark .bo-user-menu .bo-btn--ghost:hover svg,
body.bo-dark .bo-user-menu button:hover svg {
    color: #fb923c !important;
    stroke: #fb923c !important;
}

body.bo-dark .bo-user-menu .bo-btn--danger svg {
    color: #f87171 !important;
    stroke: #f87171 !important;
}

/* Calendar styling in dark mode */
body.bo-dark .border-b,
body.bo-dark .border-t,
body.bo-dark .border-l,
body.bo-dark .border-r,
body.bo-dark .border {
    border-color: rgba(56, 189, 248, 0.16) !important;
}

h1:focus {
    outline: none;
}

a,
.btn-link {
    color: #0071c1;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "An error has occurred."
}

/* ==========================================================================
   Supersonic Dark Theme Global Overrides (body.bo-dark)
   ========================================================================== */

body.bo-dark {
    background-color: #0b1e38 !important;
}

body.bo-dark .bo-landing-page {
    background: #0b1e38 !important;
    color: #f8fafc !important;
}

body.bo-dark .bo-public-shell {
    background: #0b1e38 !important;
    color: #f8fafc !important;
}

body.bo-dark .bo-public-header {
    background: rgba(16, 38, 70, 0.92) !important;
    border-color: rgba(56, 189, 248, 0.25) !important;
    backdrop-filter: blur(16px) !important;
}

body.bo-dark .bo-brand-icon-wrap {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

body.bo-dark .bo-nav-link {
    color: #cbd5e1 !important;
}

body.bo-dark .bo-nav-link:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.08) !important;
}

body.bo-dark .bo-theme-toggle {
    color: #f8fafc !important;
    background: rgba(16, 38, 70, 0.85) !important;
    border-color: rgba(56, 189, 248, 0.3) !important;
}

body.bo-dark .bo-theme-toggle:hover {
    color: #ffffff !important;
    background: rgba(249, 115, 22, 0.25) !important;
    border-color: rgba(249, 115, 22, 0.6) !important;
}

body.bo-dark .bo-journal-btn {
    background: rgba(16, 38, 70, 0.85) !important;
    color: #ffffff !important;
    border-color: rgba(56, 189, 248, 0.35) !important;
}

body.bo-dark .bo-hero-section {
    background: linear-gradient(180deg, #15335d 0%, #1a3e6f 50%, #122a4e 100%) !important;
    border-bottom: none !important;
}

body.bo-dark .bo-hero-title {
    color: #ffffff !important;
}

body.bo-dark .bo-hero-subtitle {
    color: #e2e8f0 !important;
}

body.bo-dark .bo-hero-btn-secondary {
    background: #1c4175 !important;
    color: #ffffff !important;
    border-color: rgba(56, 189, 248, 0.4) !important;
}

body.bo-dark .bo-hero-btn-secondary:hover {
    background: #224e8c !important;
    border-color: rgba(56, 189, 248, 0.7) !important;
}

body.bo-dark .bo-telemetry-pill {
    background: #183968 !important;
    border-color: rgba(56, 189, 248, 0.3) !important;
    color: #f8fafc !important;
}

body.bo-dark .bo-cockpit-card {
    background: #1a3c6e !important;
    border: 1px solid rgba(56, 189, 248, 0.35) !important;
    box-shadow: 0 20px 50px rgba(7, 18, 36, 0.6) !important;
}

body.bo-dark .bo-live-badge {
    background: rgba(16, 39, 71, 0.9) !important;
    border-color: rgba(56, 189, 248, 0.4) !important;
    color: #fb923c !important;
}

body.bo-dark .bo-cockpit-stats-bar {
    background: #163562 !important;
    border-color: rgba(56, 189, 248, 0.25) !important;
}

body.bo-dark .bo-stat-box {
    background: #102747 !important;
    border: 1px solid rgba(56, 189, 248, 0.25) !important;
}

body.bo-dark .bo-methodology-section {
    background: #0e2341 !important;
    border-color: rgba(56, 189, 248, 0.25) !important;
}

body.bo-dark .bo-method-card {
    background: linear-gradient(180deg, #183664 0%, #122a4e 100%) !important;
    border: 1px solid rgba(56, 189, 248, 0.3) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
}

body.bo-dark .bo-courses-section {
    background: #102646 !important;
}

body.bo-dark .bo-audience-switch-container {
    background: #143158 !important;
    border: 1px solid rgba(56, 189, 248, 0.35) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
}

body.bo-dark .bo-course-card {
    background: linear-gradient(180deg, #183664 0%, #122a4e 100%) !important;
    border: 1px solid rgba(56, 189, 248, 0.3) !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35) !important;
}

body.bo-dark .bo-pricing-section {
    background: #0e2341 !important;
    border-color: rgba(56, 189, 248, 0.25) !important;
}

body.bo-dark .bo-pricing-card {
    background: linear-gradient(180deg, #183664 0%, #122a4e 100%) !important;
    border: 1px solid rgba(56, 189, 248, 0.3) !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3) !important;
}

body.bo-dark .bo-pricing-card--featured {
    border-color: rgba(249, 115, 22, 0.5) !important;
}

body.bo-dark .bo-blog-section {
    background: #102646 !important;
}

body.bo-dark .bo-blog-card {
    background: linear-gradient(180deg, #183664 0%, #122a4e 100%) !important;
    border: 1px solid rgba(56, 189, 248, 0.3) !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3) !important;
}

body.bo-dark .bo-faq-section {
    background: #0e2341 !important;
    border-color: rgba(56, 189, 248, 0.25) !important;
}

body.bo-dark .bo-faq-detail {
    background: #183968 !important;
    border: 1px solid rgba(56, 189, 248, 0.3) !important;
    color: #f8fafc !important;
}

body.bo-dark .bo-faq-detail[open] {
    border-color: rgba(249, 115, 22, 0.5) !important;
    background: #162e52 !important;
}

body.bo-dark .bo-section-title {
    color: #ffffff !important;
}

body.bo-dark .bo-section-subtitle {
    color: #cbd5e1 !important;
}

body.bo-dark .bo-card-title {
    color: #ffffff !important;
}

body.bo-dark .bo-card-text {
    color: #cbd5e1 !important;
}

/* Registration / Auth dark theme */
body.bo-dark .bo-auth-layout {
    background:
        radial-gradient(circle at 15% 15%, rgba(249, 115, 22, 0.15), transparent 45%),
        radial-gradient(circle at 85% 20%, rgba(56, 189, 248, 0.2), transparent 45%),
        linear-gradient(180deg, #15335D 0%, #1A3E6F 35%, #132D52 70%, #0E2445 100%) !important;
    color: #f8fafc !important;
}

body.bo-dark .bo-auth-layout__card {
    border: 1px solid rgba(56, 189, 248, 0.3) !important;
    background: rgba(19, 45, 82, 0.94) !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4) !important;
    color: #f8fafc !important;
}

body.bo-dark .bo-auth-layout__card .text-gray-900,
body.bo-dark .bo-auth-layout__card .text-slate-900 {
    color: #ffffff !important;
}

body.bo-dark .bo-auth-layout__card .text-gray-700,
body.bo-dark .bo-auth-layout__card .text-slate-700,
body.bo-dark .bo-auth-layout__card .text-gray-600,
body.bo-dark .bo-auth-layout__card .text-slate-600 {
    color: #cbd5e1 !important;
}

body.bo-dark .bo-auth-layout__card label {
    color: #e2e8f0 !important;
}

/* ==========================================================================
   Shared Markdown Typography System (.bo-markdown-content)
   ========================================================================== */

.bo-markdown-content {
    color: #334155;
    line-height: 1.8;
    font-size: 0.95rem;
}

.bo-markdown-content h1 {
    color: #0f172a;
    font-size: 1.6rem;
    font-weight: 800;
    margin-top: 2.25rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.bo-markdown-content h2 {
    color: #0f172a;
    font-size: 1.3rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 0.85rem;
    letter-spacing: -0.01em;
}

.bo-markdown-content h3 {
    color: #1e293b;
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.65rem;
}

.bo-markdown-content p {
    margin: 0 0 1.15rem;
    line-height: 1.75;
}

.bo-markdown-content p + p {
    margin-top: 0.5rem;
}

.bo-markdown-content strong {
    color: #0f172a;
    font-weight: 700;
}

.bo-markdown-content ul {
    list-style-type: disc;
    margin: 0.6rem 0 1.25rem 1.5rem;
}

.bo-markdown-content ol {
    list-style-type: decimal;
    margin: 0.6rem 0 1.25rem 1.5rem;
}

.bo-markdown-content li {
    margin-bottom: 0.45rem;
    line-height: 1.65;
}

.bo-markdown-content blockquote {
    border-left: 4px solid #ea580c;
    background: #fff7ed;
    padding: 0.65rem 1rem;
    font-style: italic;
    color: #475569;
    border-radius: 0 0.5rem 0.5rem 0;
    margin: 1.25rem 0;
}

.bo-markdown-content code {
    background: #e2e8f0;
    border-radius: 0.25rem;
    padding: 0.1rem 0.35rem;
    font-size: 0.875em;
    color: #0f172a;
    font-family: Consolas, "Courier New", monospace;
}

.bo-markdown-content pre {
    background: #0f172a;
    color: #e2e8f0;
    border-radius: 0.75rem;
    padding: 1rem;
    overflow-x: auto;
    margin: 1.25rem 0;
}

.bo-markdown-content pre code {
    background: transparent;
    padding: 0;
    color: inherit;
}

.bo-markdown-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.9rem;
}

.bo-markdown-content th,
.bo-markdown-content td {
    border: 1px solid #cbd5e1;
    padding: 0.65rem 0.85rem;
    text-align: left;
}

.bo-markdown-content th {
    background-color: #f1f5f9;
    font-weight: 700;
    color: #0f172a;
}

.bo-markdown-content a {
    color: #ea580c;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.bo-markdown-content a:hover {
    color: #c2410c;
}

.bo-markdown-content img {
    width: 100%;
    border-radius: 0.85rem;
    border: 1px solid #cbd5e1;
    margin: 1.25rem 0;
}

/* Dark variant (e.g. for /terms, /privacy, or dark mode) */
.bo-markdown-content.bo-markdown-content--dark,
body.bo-dark .bo-markdown-content,
.bo-dark .bo-markdown-content {
    color: #cbd5e1;
}

.bo-markdown-content.bo-markdown-content--dark h1,
body.bo-dark .bo-markdown-content h1,
.bo-dark .bo-markdown-content h1 {
    color: #ffffff;
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.bo-markdown-content.bo-markdown-content--dark h2,
body.bo-dark .bo-markdown-content h2,
.bo-dark .bo-markdown-content h2 {
    color: #f8fafc;
}

.bo-markdown-content.bo-markdown-content--dark h3,
body.bo-dark .bo-markdown-content h3,
.bo-dark .bo-markdown-content h3 {
    color: #e2e8f0;
}

.bo-markdown-content.bo-markdown-content--dark strong,
body.bo-dark .bo-markdown-content strong,
.bo-dark .bo-markdown-content strong {
    color: #ffffff;
}

.bo-markdown-content.bo-markdown-content--dark ul,
.bo-markdown-content.bo-markdown-content--dark ol,
body.bo-dark .bo-markdown-content ul,
body.bo-dark .bo-markdown-content ol,
.bo-dark .bo-markdown-content ul,
.bo-dark .bo-markdown-content ol {
    color: #cbd5e1;
}

.bo-markdown-content.bo-markdown-content--dark blockquote,
body.bo-dark .bo-markdown-content blockquote,
.bo-dark .bo-markdown-content blockquote {
    border-left-color: #f97316;
    background: rgba(249, 115, 22, 0.1);
    color: #fdba74;
}

.bo-markdown-content.bo-markdown-content--dark code,
body.bo-dark .bo-markdown-content code,
.bo-dark .bo-markdown-content code {
    background: rgba(255, 255, 255, 0.1);
    color: #fed7aa;
}

.bo-markdown-content.bo-markdown-content--dark pre,
body.bo-dark .bo-markdown-content pre,
.bo-dark .bo-markdown-content pre {
    background: #020617;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.bo-markdown-content.bo-markdown-content--dark th,
.bo-markdown-content.bo-markdown-content--dark td,
body.bo-dark .bo-markdown-content th,
body.bo-dark .bo-markdown-content td,
.bo-dark .bo-markdown-content th,
.bo-dark .bo-markdown-content td {
    border-color: rgba(255, 255, 255, 0.15);
}

.bo-markdown-content.bo-markdown-content--dark th,
body.bo-dark .bo-markdown-content th,
.bo-dark .bo-markdown-content th {
    background-color: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

.bo-markdown-content.bo-markdown-content--dark a,
body.bo-dark .bo-markdown-content a,
.bo-dark .bo-markdown-content a {
    color: #fb923c;
}

.bo-markdown-content.bo-markdown-content--dark a:hover,
body.bo-dark .bo-markdown-content a:hover,
.bo-dark .bo-markdown-content a:hover {
    color: #fdba74;
}

