:root {
    --navy-950: #041226;
    --navy-900: #06172f;
    --navy-850: #0a1e3b;
    --navy-800: #0d2749;
    --navy-700: #143760;
    --gold-500: #d4af37;
    --gold-400: #f0d36b;
    --gold-300: #ffe69b;
    --text-main: #ffffff;
    --text-soft: #d9e4f2;
    --text-muted: #aebbd0;
    --line-gold: rgba(212, 175, 55, 0.32);
    --line-soft: rgba(255, 255, 255, 0.12);
    --panel-bg: rgba(10, 30, 59, 0.92);
    --panel-bg-strong: #0a1e3b;
    --shadow-deep: 0 18px 48px rgba(0, 0, 0, 0.28);
    --drawer-width-left: 17rem;
}

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    min-height: 100%;
    background: var(--navy-900);
    color: var(--text-main);
}

body {
    margin: 0;
}

.app-shell {
    --app-modal-left: 0rem;
}

@media (min-width: 960px) {
    .app-shell.drawer-open {
        --app-modal-left: var(--drawer-width-left);
    }
}

.mud-typography,
.mud-input,
.mud-button,
.mud-table,
.mud-paper,
.mud-dialog,
.mud-snackbar {
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
}

.mud-paper {
    border: 1px solid var(--line-soft);
    background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0));
}

.mud-button-filled-primary {
    color: var(--navy-950);
    box-shadow: 0 10px 24px rgba(212, 175, 55, 0.18);
}

.mud-button-outlined-primary {
    background: rgba(212, 175, 55, 0.07);
}

.mud-input-control > .mud-input-control-input-container > .mud-input-label-inputcontrol {
    color: var(--text-soft);
}

.mud-input.mud-input-outlined .mud-input-outlined-border {
    border-color: rgba(212, 175, 55, 0.36);
}

.mud-input.mud-input-outlined:hover .mud-input-outlined-border,
.mud-input.mud-input-outlined.mud-focused .mud-input-outlined-border {
    border-color: var(--gold-500);
}

.mud-table {
    color: var(--text-main);
}

.mud-table-head .mud-table-cell {
    color: var(--gold-500);
    font-weight: 850;
    text-transform: uppercase;
}

.mud-dialog {
    border: 1px solid var(--line-gold);
}

.mud-overlay-dark {
    background-color: rgba(2, 8, 18, 0.76);
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: var(--gold-400);
}

.btn-primary {
    color: var(--navy-950);
    background-color: var(--gold-500);
    border-color: var(--gold-500);
    font-weight: 750;
}

.btn-primary:hover {
    color: var(--navy-950);
    background-color: var(--gold-400);
    border-color: var(--gold-400);
}

.btn-secondary {
    color: var(--text-main);
    border-color: var(--line-gold);
    background-color: rgba(255, 255, 255, 0.08);
}

.btn-secondary:hover {
    color: var(--gold-300);
    border-color: var(--gold-500);
    background-color: rgba(212, 175, 55, 0.14);
}

.btn-outline-danger {
    color: #ffb4b4;
    border-color: rgba(255, 120, 120, 0.55);
}

.btn-outline-danger:hover {
    color: var(--navy-950);
    background: #ffb4b4;
    border-color: #ffb4b4;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem var(--navy-950), 0 0 0 0.25rem rgba(212, 175, 55, 0.6);
}

.content {
    min-height: 100vh;
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: #ffb4b4;
}

#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    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."
    }

.loading-progress {
    position: absolute;
    display: block;
    width: 8rem;
    height: 8rem;
    inset: 20vh 0 auto 0;
    margin: 0 auto 0 auto;
}

    .loading-progress circle {
        fill: none;
        stroke: #e0e0e0;
        stroke-width: 0.6rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

        .loading-progress circle:last-child {
            stroke: var(--gold-500);
            stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
            transition: stroke-dasharray 0.05s ease-in-out;
        }

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

    .loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "Loading");
    }

code {
    color: #c02d76;
}

.auth-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 2rem;
    background:
        linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(6, 23, 47, 0) 28rem),
        var(--navy-900);
}

.auth-panel,
.panel {
    width: 100%;
    max-width: 34rem;
    border: 1px solid var(--line-gold);
    border-radius: 8px;
    background: var(--panel-bg);
    padding: 1.5rem;
    color: var(--text-main);
    box-shadow: var(--shadow-deep);
}

.auth-panel h1,
.auth-panel h2,
.panel h1,
.panel h2,
.page-header h1 {
    color: var(--gold-400);
}

.eyebrow {
    margin-bottom: 0.25rem;
    color: var(--gold-500);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.login-form {
    display: grid;
    gap: 1rem;
    margin-top: 1.25rem;
}

.login-form label,
.profile-form label,
.lead-form label {
    display: grid;
    gap: 0.4rem;
    color: var(--text-soft);
    font-weight: 600;
}

.profile-form,
.lead-form {
    display: grid;
    gap: 1rem;
}

.form-grid,
.selection-grid,
.option-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
    gap: 1rem;
}

.button-row,
.table-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.compact-heading {
    margin: 0 0 0.75rem;
    font-size: 1rem;
}

.compact-table th,
.compact-table td {
    padding: 0.55rem;
}

.checkbox-group {
    display: grid;
    gap: 0.55rem;
    min-width: 0;
    align-content: start;
    border: 1px solid var(--line-gold);
    border-radius: 8px;
    padding: 0.9rem;
    background: rgba(4, 18, 38, 0.35);
}

.checkbox-group legend {
    float: none;
    width: auto;
    margin: 0;
    padding: 0 0.25rem;
    color: var(--gold-500);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
}

.check-row {
    display: flex !important;
    grid-template-columns: none !important;
    align-items: center;
    gap: 0.5rem !important;
    font-weight: 500 !important;
    min-width: 0;
}

.check-row input {
    flex: 0 0 auto;
    width: 1rem;
    height: 1rem;
}

.check-row span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.lead-table {
    table-layout: fixed;
}

.lead-table td {
    vertical-align: top;
    overflow-wrap: anywhere;
    white-space: normal;
}

.lead-table td:nth-child(7) {
    white-space: pre-wrap;
}

.customer-list-wrap {
    max-width: 76rem;
}

.customer-compact-table {
    table-layout: fixed;
}

.customer-compact-table th,
.customer-compact-table td {
    padding: 0.85rem 1rem;
}

.customer-compact-table tbody tr {
    background: rgba(255, 255, 255, 0.035);
    transition: background 0.15s ease;
}

.customer-compact-table tbody tr + tr td {
    border-top: 0.45rem solid transparent;
}

.customer-compact-table td {
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.customer-detail-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
    gap: 0.75rem;
}

.customer-detail-summary div {
    display: grid;
    gap: 0.25rem;
    border: 1px solid var(--line-soft);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.85rem;
}

.customer-detail-summary span {
    color: var(--gold-500);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.customer-detail-summary strong {
    color: var(--text-main);
    font-size: 1rem;
    overflow-wrap: anywhere;
}

.finance-overview {
    margin-bottom: 1rem;
}

.modal-backdrop-panel {
    position: fixed;
    inset: 4rem 0 0 var(--app-modal-left, 0);
    display: grid;
    align-items: start;
    justify-items: center;
    overflow-y: auto;
    background: rgba(2, 8, 18, 0.72);
    padding: 1.5rem 1rem 1rem;
    z-index: 1050;
    transition: left 180ms ease;
}

.customer-modal {
    width: min(64rem, 100%);
    max-height: calc(100dvh - 6.5rem);
    overflow: auto;
    border: 1px solid var(--line-gold);
    border-radius: 8px;
    background: var(--navy-850);
    color: var(--text-main);
    padding: 1.25rem;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.42);
}

.modal-header-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: start;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--line-soft);
    padding-bottom: 1rem;
}

.modal-header-row h2 {
    margin: 0;
}

.modal-close-button {
    display: grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border: 1px solid var(--line-gold);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--gold-400);
    font-weight: 800;
}

.modal-close-button:hover {
    background: rgba(212, 175, 55, 0.14);
    color: var(--gold-300);
}

.dropdown-check-group {
    align-content: start;
}

.option-picker-button {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    align-items: center;
    width: 100%;
    min-height: 2.5rem;
    border: 1px solid var(--line-gold);
    border-radius: 6px;
    background: rgba(4, 18, 38, 0.75);
    padding: 0.5rem 0.75rem;
    color: var(--text-main);
    text-align: left;
    font-weight: 600;
    min-width: 0;
}

.option-picker-button:hover {
    border-color: var(--gold-500);
    background: rgba(212, 175, 55, 0.1);
}

.option-picker-button span:first-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.option-picker-list {
    display: grid;
    gap: 0.55rem;
    max-height: 13rem;
    overflow-y: auto;
    border-top: 1px solid var(--line-soft);
    margin-top: 0.35rem;
    padding-top: 0.65rem;
}

.lead-config-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
    gap: 1rem;
}

.lead-config-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    width: 100%;
    min-height: 9rem;
    border: 1px solid var(--line-gold);
    border-radius: 8px;
    background: var(--panel-bg);
    padding: 1.25rem;
    color: var(--text-main);
    text-align: left;
    box-shadow: var(--shadow-deep);
    transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.lead-config-card:hover {
    border-color: var(--gold-400);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.36);
    transform: translateY(-1px);
}

.lead-config-icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 3rem;
    height: 3rem;
    border-radius: 8px;
    background: rgba(212, 175, 55, 0.14);
    color: var(--gold-400);
}

.lead-config-icon svg {
    width: 1.55rem;
    height: 1.55rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.lead-config-card-body {
    display: grid;
    gap: 0.35rem;
    min-width: 0;
}

.lead-config-title {
    color: var(--gold-400);
    font-size: 1.1rem;
    font-weight: 800;
}

.lead-config-description {
    color: var(--text-muted);
    line-height: 1.35;
}

.lead-config-count {
    margin-top: 0.5rem;
    color: var(--gold-500);
    font-size: 0.85rem;
    font-weight: 700;
}

.split-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
}

.lead-option-list {
    display: grid;
    gap: 0.65rem;
    margin-top: 1rem;
}

.lead-option-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    border: 1px solid var(--line-soft);
    border-radius: 8px;
    padding: 0.85rem;
}

.lead-option-item > span {
    color: var(--text-main);
    font-weight: 700;
}

.profile-image-editor {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.profile-image-preview,
.coach-thumb {
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid var(--line-gold);
    background: rgba(212, 175, 55, 0.12);
    color: var(--gold-400);
    font-weight: 700;
}

.profile-image-preview {
    width: 6rem;
    height: 6rem;
    border-radius: 8px;
    font-size: 1.5rem;
}

.profile-image-preview img,
.coach-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-image-controls {
    display: grid;
    gap: 0.6rem;
}

.coach-thumb {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 6px;
    font-size: 0.8rem;
}

.coach-detail-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--line-soft);
}

.coach-detail-header h2 {
    margin: 0;
}

.coach-detail-image {
    display: grid;
    place-items: center;
    width: 5.5rem;
    height: 5.5rem;
    overflow: hidden;
    border: 1px solid var(--line-gold);
    border-radius: 8px;
    background: rgba(212, 175, 55, 0.12);
    color: var(--gold-400);
    font-size: 1.4rem;
    font-weight: 700;
}

.coach-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dashboard {
    padding: 1.5rem;
    color: var(--text-main);
}

.page-header {
    margin-bottom: 1.25rem;
}

.responsive-header {
    gap: 1rem;
}

.page-header-icon {
    color: var(--gold-400);
    font-size: 2.4rem;
    opacity: 0.92;
}

.state-panel {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    border: 1px solid var(--line-soft);
    border-radius: 8px;
    background: rgba(4, 18, 38, 0.42);
    padding: 1rem;
}

.mud-auth-panel {
    background:
        linear-gradient(145deg, rgba(212, 175, 55, 0.11), rgba(10, 30, 59, 0.92) 16rem),
        var(--panel-bg);
}

.auth-chip {
    width: max-content;
}

.auth-brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    width: max-content;
    border: 1px solid rgba(212, 175, 55, 0.48);
    border-radius: 999px;
    background: rgba(212, 175, 55, 0.08);
    padding: 0.25rem 0.65rem 0.25rem 0.3rem;
    color: var(--gold-400);
}

.auth-brand-logo {
    width: 1.35rem;
    height: 1.35rem;
    object-fit: contain;
}

.auth-brand-text {
    color: var(--gold-400);
    font-weight: 800;
    line-height: 1;
}

.mud-stat-card,
.action-card,
.mud-list-panel {
    border: 1px solid var(--line-gold);
    background:
        linear-gradient(145deg, rgba(212, 175, 55, 0.08), rgba(255, 255, 255, 0) 18rem),
        var(--panel-bg);
    color: var(--text-main);
}

.mud-stat-card {
    min-height: 9rem;
}

.stat-value {
    color: var(--text-main);
    font-weight: 850;
}

.stat-icon,
.action-card-icon,
.table-avatar {
    border: 1px solid var(--line-gold);
    background: rgba(212, 175, 55, 0.14);
    color: var(--gold-400);
}

.action-card {
    min-height: 13rem;
    padding: 1.25rem;
    cursor: pointer;
    transition: border-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.action-card:hover {
    border-color: var(--gold-400);
    transform: translateY(-2px);
    box-shadow: 0 20px 52px rgba(0, 0, 0, 0.34);
}

.action-card-title {
    color: var(--gold-400);
}

.action-card-description {
    color: var(--text-muted);
}

.mud-list-panel {
    max-width: none;
    padding: 1.25rem;
}

.list-panel-header {
    gap: 1rem;
    margin-bottom: 1rem;
}

.modern-table {
    border: 1px solid var(--line-soft);
    border-radius: 8px;
    overflow: hidden;
    background: rgba(4, 18, 38, 0.24);
}

.clickable-table .mud-table-row {
    cursor: pointer;
}

.table-primary-text {
    font-weight: 800;
}

.money-text {
    color: var(--gold-300);
    font-weight: 850;
}

.count-chip {
    width: max-content;
    margin-top: 0.35rem;
}

.alert-list {
    margin: 0.5rem 0 0;
    padding-left: 1.1rem;
}

.table-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-panel {
    max-width: 58rem;
}

.profile-editor-row {
    flex-wrap: wrap;
    gap: 1.25rem;
}

.profile-avatar {
    width: 7rem !important;
    height: 7rem !important;
    border: 1px solid var(--line-gold);
    background: rgba(212, 175, 55, 0.14);
    color: var(--gold-400);
    font-size: 1.6rem;
    font-weight: 850;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.file-drop-panel {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-height: 5.5rem;
    border: 1px dashed rgba(212, 175, 55, 0.48);
    border-radius: 8px;
    background: rgba(4, 18, 38, 0.38);
    padding: 1rem;
    color: var(--gold-400);
}

.file-drop-icon {
    flex: 0 0 auto;
}

.file-drop-input {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    min-width: 0;
}

.upload-modal {
    width: min(42rem, 100%);
    max-height: calc(100dvh - 6.5rem);
}

.wiki-document-card {
    height: 100%;
    border: 1px solid var(--line-gold);
    background:
        linear-gradient(145deg, rgba(212, 175, 55, 0.08), rgba(255, 255, 255, 0) 16rem),
        rgba(4, 18, 38, 0.48);
    padding: 1rem;
}

.wiki-document-icon {
    border: 1px solid var(--line-gold);
    background: rgba(212, 175, 55, 0.14);
    color: var(--gold-400);
}

.wiki-document-title-wrap {
    min-width: 0;
}

.wiki-document-title-wrap .mud-typography {
    overflow-wrap: anywhere;
}

.wiki-actions {
    flex-wrap: wrap;
}

.archive-panels {
    background: transparent;
}

.archive-panels .mud-expand-panel {
    border: 1px solid var(--line-soft);
    background: rgba(4, 18, 38, 0.24);
}

.option-row {
    border: 1px solid var(--line-soft);
    background: rgba(4, 18, 38, 0.34);
}

.option-row-inner {
    gap: 1rem;
    padding: 0.85rem;
}

.booking-day-card {
    border: 1px solid var(--line-soft);
    background: rgba(4, 18, 38, 0.34);
    padding: 0.85rem;
}

.booking-day-button {
    justify-content: space-between;
    width: 100%;
    color: var(--gold-400);
    font-size: 1.05rem;
    font-weight: 850;
}

.modern-booking-slot {
    min-height: 3rem;
    justify-content: center;
}

.fact-card {
    height: 100%;
    border: 1px solid var(--line-soft);
    background: rgba(4, 18, 38, 0.34);
    padding: 0.9rem;
}

.compact-modal {
    width: min(34rem, 100%);
    max-height: calc(100dvh - 6.5rem);
}

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

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
    gap: 1rem;
}

.stat-card {
    display: grid;
    gap: 0.35rem;
    min-height: 8.5rem;
    border: 1px solid var(--line-gold);
    border-radius: 8px;
    background: var(--panel-bg);
    padding: 1.25rem;
    box-shadow: var(--shadow-deep);
}

.stat-label {
    color: var(--gold-500);
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
}

.stat-card strong {
    color: var(--text-main);
    font-size: 2.4rem;
    line-height: 1;
}

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

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

.full-width-panel {
    max-width: none;
}

.fact-list {
    display: grid;
    gap: 0.75rem;
    margin: 1rem 0 0;
}

.fact-list div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px solid #edf1f6;
    padding-bottom: 0.75rem;
}

.fact-list dt {
    color: #607087;
    font-weight: 600;
}

.fact-list dd {
    margin: 0;
    color: #1f2b3d;
    font-weight: 700;
    text-align: right;
}

.muted-text {
    color: #607087;
    margin: 0;
}

.table-wrap {
    margin-top: 1rem;
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 0.75rem;
    border-bottom: 1px solid #edf1f6;
    text-align: left;
}

.data-table th {
    color: #607087;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
}

.data-table td {
    color: #1f2b3d;
}

.clickable-row {
    cursor: pointer;
}

.clickable-row:hover {
    background: #f5f7fb;
}

.table-link {
    display: block;
    color: #1b6ec2;
    font-weight: 700;
    text-decoration: none;
}

.table-link:hover {
    text-decoration: underline;
}

.logout-button {
    width: 100%;
    border: 0;
    background: transparent;
    text-align: left;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* Navy / Gold theme overrides */
h1,
h2,
h3,
.page-header h1,
.compact-heading {
    color: var(--gold-400);
}

p,
span,
label,
dt,
dd,
td,
th,
legend {
    color: inherit;
}

.panel,
.auth-panel,
.stat-card,
.lead-config-card,
.customer-modal {
    border-color: var(--line-gold);
    background: var(--panel-bg);
    color: var(--text-main);
    box-shadow: var(--shadow-deep);
}

.panel h2,
.auth-panel h2,
.customer-modal h2,
.stat-card strong,
.lead-config-title {
    color: var(--gold-400);
}

.eyebrow,
.stat-label,
.fact-list dt,
.data-table th,
.checkbox-group legend {
    color: var(--gold-500);
}

.muted-text,
.stat-note,
.lead-config-description {
    color: var(--text-muted);
}

.fact-list div,
.data-table th,
.data-table td,
.coach-detail-header,
.modal-header-row {
    border-color: var(--line-soft);
}

.fact-list dd,
.data-table td,
.lead-option-item > span {
    color: var(--text-main);
}

.form-control,
.form-select,
input[type="date"],
textarea,
select {
    border-color: rgba(212, 175, 55, 0.36);
    background-color: rgba(4, 18, 38, 0.78);
    color: var(--text-main);
}

.form-control:focus,
.form-select:focus,
textarea:focus,
select:focus {
    border-color: var(--gold-500);
    background-color: rgba(4, 18, 38, 0.9);
    color: var(--text-main);
}

.form-control::placeholder {
    color: rgba(217, 228, 242, 0.56);
}

.data-table {
    color: var(--text-main);
}

.data-table tbody tr:hover,
.clickable-row:hover {
    background: rgba(212, 175, 55, 0.08);
}

.table-link {
    color: var(--gold-400);
}

.table-wrap {
    border: 1px solid var(--line-soft);
    border-radius: 8px;
    background: rgba(4, 18, 38, 0.28);
}

.checkbox-group,
.lead-option-item,
.option-picker-button {
    border-color: var(--line-gold);
    background: rgba(4, 18, 38, 0.48);
    color: var(--text-main);
}

.option-picker-list {
    border-color: var(--line-soft);
}

.calendar-timeslot-layout {
    display: grid;
    gap: 1rem;
}

.calendar-timeslot-form-panel {
    max-width: 46rem;
}

.calendar-timeslot-form-grid {
    grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
}

.calendar-timeslot-table-wrap {
    max-width: 46rem;
}

.calendar-timeslot-table {
    table-layout: fixed;
}

.calendar-timeslot-table th,
.calendar-timeslot-table td {
    padding: 0.85rem 1rem;
}

.calendar-timeslot-table .table-actions {
    flex-wrap: nowrap;
}

.calendar-timeslot-table th:last-child,
.calendar-timeslot-table td:last-child {
    width: 13rem;
}

.archive-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    border: 0;
    background: transparent;
    padding: 0;
    color: var(--gold-400);
    font-size: 1.5rem;
    font-weight: 700;
    text-align: left;
}

.archive-toggle:hover,
.archive-toggle:focus-visible {
    color: var(--gold-300);
}

.wiki-upload-panel {
    max-width: 52rem;
}

.wiki-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.wiki-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border: 1px solid var(--line-gold);
    border-radius: 8px;
    background: rgba(4, 18, 38, 0.42);
    padding: 1rem;
}

.wiki-card-main {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    flex: 1 1 auto;
    min-width: 0;
    border: 0;
    background: transparent;
    color: var(--text-main);
    padding: 0;
    text-align: left;
}

.wiki-card-main:hover .wiki-card-title,
.wiki-card-main:focus-visible .wiki-card-title {
    color: var(--gold-300);
}

.wiki-card-icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 3rem;
    height: 3rem;
    border: 1px solid var(--line-gold);
    border-radius: 8px;
    background: rgba(212, 175, 55, 0.14);
    color: var(--gold-400);
    font-size: 0.8rem;
    font-weight: 850;
}

.wiki-card-body {
    display: grid;
    gap: 0.35rem;
    min-width: 0;
}

.wiki-card-title {
    color: var(--gold-400);
    font-size: 1.1rem;
    font-weight: 850;
    overflow-wrap: anywhere;
}

.wiki-card-meta {
    color: var(--text-muted);
    overflow-wrap: anywhere;
}

.wiki-card-actions {
    display: flex;
    flex-wrap: wrap;
    flex: 0 0 auto;
    gap: 0.5rem;
}

@media (max-width: 640px) {
    .wiki-card {
        align-items: stretch;
        flex-direction: column;
    }
}

.wiki-preview-modal {
    display: flex;
    flex-direction: column;
    width: min(74rem, 100%);
    height: min(88vh, 56rem);
    overflow: hidden;
}

.wiki-preview-frame {
    flex: 1 1 auto;
    width: 100%;
    min-height: 0;
    border: 1px solid var(--line-soft);
    border-radius: 8px;
    background: #101827;
}

.public-booking-page {
    display: grid;
    min-height: 100vh;
    place-items: start center;
    padding: 2rem 1rem;
}

.public-booking-panel {
    max-width: 56rem;
}

.booking-slot-list {
    display: grid;
    gap: 1.25rem;
}

.booking-slot-day {
    display: grid;
    gap: 0.75rem;
}

.booking-day-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    border: 0;
    border-bottom: 1px solid var(--line-soft);
    background: transparent;
    padding: 0 0 0.55rem;
    color: var(--gold-400);
    font-size: 1.1rem;
    font-weight: 800;
    text-align: left;
}

.booking-day-toggle:hover,
.booking-day-toggle:focus-visible {
    color: var(--gold-300);
}

.booking-slot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr));
    gap: 0.65rem;
}

.booking-slot-button {
    border: 1px solid var(--line-gold);
    border-radius: 8px;
    background: rgba(212, 175, 55, 0.12);
    color: var(--text-main);
    padding: 0.75rem;
    font-weight: 800;
}

.booking-slot-button:hover,
.booking-slot-button:focus-visible {
    background: var(--gold-500);
    color: var(--navy-950);
}

.booking-confirm-modal {
    width: min(30rem, 100%);
}

.profile-image-preview,
.coach-thumb,
.coach-detail-image,
.lead-config-icon {
    border-color: var(--line-gold);
    background: rgba(212, 175, 55, 0.14);
    color: var(--gold-400);
}

.alert-success {
    border-color: rgba(104, 211, 145, 0.42);
    background: rgba(20, 83, 45, 0.5);
    color: #dcfce7;
}

.alert-danger {
    border-color: rgba(248, 113, 113, 0.48);
    background: rgba(127, 29, 29, 0.5);
    color: #fee2e2;
}

.logout-button {
    color: var(--gold-400);
}

.logout-button:hover {
    color: var(--gold-300);
}
