:root {
    --sidebar-w: 260px;
    /* Business Navachar School — logo palette */
    --brand: #ff6b00;
    --brand-dark: #ffb800;
    --brand-deep: #0a1d37;
    --brand-navy: #0a1d37;
    --brand-gold: #ffd700;
    --accent: #ff8a00;
    --bg: #f4f6f9;
    --surface: #ffffff;
    --text: #0a1d37;
    --muted: #64748b;
    --border: #e2e8f0;
    --danger: #dc2626;
    --success: #16a34a;
    --warning: #d97706;
    --shadow: 0 10px 30px rgba(10, 29, 55, 0.07);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: "Segoe UI", "Nunito Sans", "Noto Sans Gujarati", "Noto Sans Devanagari", system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
}

a { text-decoration: none; color: inherit; }

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

.sidebar {
    width: var(--sidebar-w);
    max-width: var(--sidebar-w);
    background: linear-gradient(180deg, #050b14 0%, #0a1d37 55%, #132744 100%);
    color: #e2e8f0;
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform .25s ease;
}

.sidebar-brand {
    padding: 1.1rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,.08);
    display: flex;
    align-items: center;
    gap: .75rem;
}

.sidebar-brand .logo,
.sidebar-brand .brand-logo {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: #000;
    display: grid;
    place-items: center;
    font-weight: 800;
    color: #fff;
    letter-spacing: .5px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid rgba(255, 184, 0, .35);
}

.sidebar-brand .brand-logo img {
    width: 46px;
    height: 46px;
    max-width: 46px;
    max-height: 46px;
    object-fit: contain;
    display: block;
}

.sidebar-brand h1 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
}

.sidebar-brand small {
    color: #94a3b8;
    font-size: .75rem;
}

.sidebar-nav {
    padding: 1rem .75rem;
    flex: 1;
    overflow-y: auto;
}

.nav-label {
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #94a3b8;
    padding: .75rem .85rem .35rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .7rem .85rem;
    border-radius: 10px;
    color: #cbd5e1;
    margin-bottom: .2rem;
    transition: .2s ease;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(255, 107, 0, .18);
    color: #fff;
}

.nav-link i { font-size: 1.1rem; width: 1.25rem; text-align: center; }

.main-wrap {
    margin-left: var(--sidebar-w);
    flex: 1;
    min-width: 0;
}

.topbar {
    background: rgba(255,255,255,.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: .85rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
}

.page-content {
    padding: 1.5rem;
}

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

.page-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.page-header p {
    margin: .25rem 0 0;
    color: var(--muted);
    font-size: .9rem;
}

.card-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.card-panel .card-body { padding: 1.25rem; }

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.2rem;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.stat-card::after {
    content: "";
    position: absolute;
    right: -20px;
    top: -20px;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: rgba(255, 107, 0, .08);
}

.stat-card .label {
    color: var(--muted);
    font-size: .85rem;
    margin-bottom: .35rem;
}

.stat-card .value {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--brand-deep);
}

.stat-card .icon {
    position: absolute;
    right: 1rem;
    top: 1rem;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: rgba(255, 107, 0, .12);
    color: var(--brand);
    font-size: 1.2rem;
}

.btn-brand {
    background: linear-gradient(135deg, #ffb800 0%, #ff6b00 100%);
    border: none;
    color: #fff;
    border-radius: 10px;
    padding: .55rem 1rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    transition: .2s ease;
    box-shadow: 0 6px 16px rgba(255, 107, 0, .25);
}

.btn-brand:hover { filter: brightness(1.05); color: #fff; transform: translateY(-1px); }

.btn-soft {
    background: #fff;
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 10px;
    padding: .55rem 1rem;
    font-weight: 600;
}

.btn-danger-soft {
    background: #fef2f2;
    color: var(--danger);
    border: 1px solid #fecaca;
    border-radius: 10px;
    padding: .4rem .7rem;
}

.btn-edit-soft {
    background: #fff7ed;
    color: #9a3412;
    border: 1px solid #fdba74;
    border-radius: 10px;
    padding: .4rem .7rem;
}

.btn-view-soft {
    background: #f5f0e8;
    color: #6b5a3e;
    border: 1px solid #e8dcc8;
    border-radius: 10px;
    padding: .4rem .7rem;
}

.btn-report-soft {
    background: #eff6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    padding: .4rem .7rem;
}

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

.table-modern th,
.table-modern td {
    padding: .9rem 1rem;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: middle;
}

.table-modern th {
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--muted);
    background: #f8fafc;
}

.table-modern tr:hover td { background: #f8fafc; }

.badge-pill {
    display: inline-flex;
    align-items: center;
    padding: .25rem .65rem;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 700;
}

.badge-superadmin { background: #fef3c7; color: #92400e; }
.badge-institute { background: #dbeafe; color: #1e40af; }
.badge-teacher { background: #dcfce7; color: #166534; }
.badge-student { background: #f3e8ff; color: #6b21a8; }
.badge-coach { background: #ffedd5; color: #9a3412; }
.badge-active { background: #dcfce7; color: #166534; }
.badge-inactive { background: #fee2e2; color: #991b1b; }

.form-label { font-weight: 600; font-size: .875rem; margin-bottom: .35rem; }
.form-control, .form-select {
    border-radius: 10px !important;
    border-color: var(--border) !important;
    padding: .65rem .85rem !important;
}
.form-control:focus, .form-select:focus {
    border-color: var(--brand) !important;
    box-shadow: 0 0 0 .2rem rgba(255, 107, 0, .18) !important;
}

.password-wrap {
    position: relative !important;
    display: block;
    width: 100%;
}
.password-wrap .form-control {
    padding-right: 2.75rem !important;
}
.password-toggle {
    position: absolute !important;
    right: .45rem !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    border: 0 !important;
    background: transparent !important;
    color: #64748b !important;
    width: 2rem;
    height: 2rem;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    cursor: pointer;
    padding: 0 !important;
    z-index: 3;
    appearance: none;
    -webkit-appearance: none;
    box-shadow: none !important;
    line-height: 1;
}
.password-toggle:hover,
.password-toggle:focus {
    color: var(--brand) !important;
    background: rgba(255, 107, 0, .1) !important;
    outline: none;
}

.user-chip {
    display: flex;
    align-items: center;
    gap: .65rem;
}

.avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffb800, #ff6b00);
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: .9rem;
}

.dropdown-menu { border-radius: 12px; border: 1px solid var(--border); box-shadow: var(--shadow); }
.dropdown-item { border-radius: 8px; margin: 2px 6px; }
.dropdown-item:hover { background: #f1f5f9; }

.alert {
    border: none;
    border-radius: 12px;
    border-left: 4px solid;
}

.alert-success { background: #ecfdf5; border-left-color: var(--success); color: #065f46; }
.alert-danger { background: #fef2f2; border-left-color: var(--danger); color: #991b1b; }

/* Auth pages */
.auth-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    background: var(--bg);
}

.auth-hero {
    background:
        radial-gradient(ellipse at 12% 18%, rgba(255, 184, 0, .16), transparent 42%),
        radial-gradient(ellipse at 88% 78%, rgba(255, 107, 0, .12), transparent 48%),
        linear-gradient(155deg, #ffffff 0%, #fff8f0 42%, #fff1e6 100%);
    color: var(--brand-navy);
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border-right: 1px solid rgba(10, 29, 55, .08);
}

.auth-hero::after {
    content: "";
    position: absolute;
    inset: auto -20% -30% 40%;
    height: 55%;
    background: linear-gradient(135deg, rgba(255, 184, 0, .14), rgba(255, 107, 0, .08));
    filter: blur(40px);
    pointer-events: none;
}

.auth-hero > * { position: relative; z-index: 1; }

.auth-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.auth-brand-logo {
    width: auto;
    max-width: min(100%, 420px);
    height: 180px;
    max-height: 180px;
    object-fit: contain;
    object-position: left center;
    display: block;
}

.auth-brand-meta h1 {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--brand-navy);
}

.auth-brand-meta small {
    color: var(--muted);
    font-size: .85rem;
}

.auth-tagline {
    color: #ff6b00;
    font-weight: 700;
    letter-spacing: .02em;
    margin: 0 0 .85rem;
}

.auth-hero h2 {
    font-size: 2.35rem;
    font-weight: 800;
    margin: 0 0 1rem;
    line-height: 1.2;
    color: var(--brand-navy);
}

.auth-hero p {
    font-size: 1.05rem;
    opacity: 1;
    color: #475569;
    max-width: 440px;
}

.auth-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: #fff;
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.auth-card h3 {
    margin: 0 0 .35rem;
    font-weight: 800;
}

.auth-card .subtitle {
    color: var(--muted);
    margin-bottom: 1.5rem;
}

.role-pills {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: 1.5rem;
}

.role-pills span {
    background: rgba(255, 107, 0, .08);
    border: 1px solid rgba(255, 107, 0, .28);
    color: var(--brand-navy);
    padding: .35rem .7rem;
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 600;
}

.sidebar-toggle {
    display: none;
    border: 1px solid var(--border);
    background: #fff;
    border-radius: 10px;
    width: 40px;
    height: 40px;
}

.overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,.45);
    z-index: 999;
}

@media (max-width: 992px) {
    .auth-page { grid-template-columns: 1fr; }
    .auth-hero { display: none; }
    .sidebar { transform: translateX(-100%); }
    .sidebar.open { transform: translateX(0); overflow-y: auto; }
    .main-wrap { margin-left: 0; }
    .sidebar-toggle { display: inline-grid; place-items: center; }
    .overlay.show { display: block; }
}

.empty-state {
    text-align: center;
    padding: 2.5rem 1rem;
    color: var(--muted);
}

.empty-state i { font-size: 2.5rem; color: #94a3b8; margin-bottom: .75rem; display: block; }

.search-box {
    position: relative;
    max-width: 280px;
}

.search-box i {
    position: absolute;
    left: .85rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
}

.search-box input {
    padding-left: 2.3rem !important;
}

/* Business Coach 31-stage lifecycle board */
.lifecycle-board {
    overflow: hidden;
}

.lifecycle-hero {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1.25rem;
    padding: 1rem 1.1rem;
    border-radius: 16px;
    background:
        radial-gradient(circle at top right, rgba(45, 212, 191, .18), transparent 45%),
        linear-gradient(135deg, #f0fdfa 0%, #ffffff 55%, #f8fafc 100%);
    border: 1px solid #ccfbf1;
}

.lifecycle-hero-main {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.lifecycle-ring {
    --pct: 0;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: conic-gradient(var(--brand) calc(var(--pct) * 1%), #e2e8f0 0);
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.lifecycle-ring-inner {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #fff;
    display: grid;
    place-items: center;
    text-align: center;
    line-height: 1.05;
}

.lifecycle-ring-inner strong {
    font-size: .95rem;
    color: var(--brand-deep);
}

.lifecycle-ring-inner span {
    font-size: .65rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .04em;
}

.lifecycle-kicker {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--brand);
    margin-bottom: .15rem;
}

.lifecycle-title {
    font-size: 1.15rem;
    color: var(--text);
}

.lifecycle-sub {
    font-size: .85rem;
    color: var(--muted);
}

.lifecycle-hero-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: .65rem;
}

.lifecycle-legend {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem .9rem;
    font-size: .75rem;
    color: var(--muted);
}

.lifecycle-legend .legend-dot,
.coach-stage-legend .legend-dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    margin-right: .3rem;
    vertical-align: middle;
}

.lifecycle-legend .legend-dot.done,
.coach-stage-legend .legend-dot.done { background: #16a34a; }
.lifecycle-legend .legend-dot.doing,
.coach-stage-legend .legend-dot.doing { background: #d97706; }
.lifecycle-legend .legend-dot.pending,
.coach-stage-legend .legend-dot.pending { background: #94a3b8; }
.lifecycle-legend .legend-dot.active,
.coach-stage-legend .legend-dot.active {
    background: var(--brand);
    box-shadow: 0 0 0 3px rgba(255, 107, 0, .18);
}

.lifecycle-track-bar {
    height: 8px;
    border-radius: 999px;
    background: #e2e8f0;
    overflow: hidden;
}

.lifecycle-track-fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #ffb800, #ff6b00);
    transition: width .35s ease;
}

.lifecycle-track-meta {
    display: flex;
    justify-content: space-between;
    margin-top: .4rem;
    font-size: .72rem;
    color: var(--muted);
}

.lifecycle-roles {
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.lifecycle-role {
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
}

.lifecycle-role-head {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .85rem 1rem;
    background: #f8fafc;
    user-select: none;
}

.lifecycle-role-head::-webkit-details-marker { display: none; }
.lifecycle-role-head::marker { content: ''; }

.lifecycle-role-head:hover {
    background: #f1f5f9;
}

.lifecycle-role[open] .lifecycle-role-head {
    border-bottom: 1px solid var(--border);
    background: linear-gradient(180deg, #f0fdfa, #f8fafc);
}

.lifecycle-role-left {
    display: flex;
    align-items: center;
    gap: .75rem;
    min-width: 0;
}

.lifecycle-role-icon {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    background: rgba(255, 107, 0, .1);
    color: var(--brand-deep);
    flex-shrink: 0;
}

.lifecycle-role-name {
    font-weight: 700;
    color: var(--brand-deep);
    font-size: .92rem;
}

.lifecycle-role-range {
    font-size: .75rem;
    color: var(--muted);
}

.lifecycle-role-right {
    display: flex;
    align-items: center;
    gap: .75rem;
}

.lifecycle-mini-bar {
    width: 72px;
    height: 6px;
    border-radius: 999px;
    background: #e2e8f0;
    overflow: hidden;
}

.lifecycle-mini-bar span {
    display: block;
    height: 100%;
    background: var(--brand);
}

.lifecycle-chevron {
    color: var(--muted);
    transition: transform .2s ease;
}

.lifecycle-role[open] .lifecycle-chevron {
    transform: rotate(180deg);
}

.lifecycle-role .coach-stage-grid {
    padding: .9rem;
}

.lifecycle-roles.is-compact .lifecycle-role:not([open]) .lifecycle-role-head {
    opacity: .92;
}

.coach-stage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: .65rem;
}

.coach-stage-item {
    display: flex;
    align-items: flex-start;
    gap: .7rem;
    padding: .75rem .85rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: #fff;
    text-decoration: none;
    color: inherit;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
    min-height: 72px;
}

.coach-stage-item:hover {
    border-color: #99f6e4;
    box-shadow: 0 8px 20px rgba(255, 107, 0, .08);
    transform: translateY(-1px);
    color: inherit;
}

.coach-stage-num {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    font-weight: 700;
    font-size: .9rem;
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.coach-stage-meta {
    display: flex;
    flex-direction: column;
    gap: .15rem;
    min-width: 0;
}

.coach-stage-title {
    font-size: .82rem;
    font-weight: 600;
    line-height: 1.25;
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.coach-stage-status {
    font-size: .72rem;
    color: var(--muted);
    text-transform: capitalize;
}

.coach-stage-item.is-done {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.coach-stage-item.is-done .coach-stage-num {
    background: #16a34a;
    border-color: #16a34a;
    color: #fff;
}

.coach-stage-item.is-done .coach-stage-status {
    color: #15803d;
}

.coach-stage-item.is-doing {
    background: #fffbeb;
    border-color: #fde68a;
}

.coach-stage-item.is-doing .coach-stage-num {
    background: #d97706;
    border-color: #d97706;
    color: #fff;
}

.coach-stage-item.is-doing .coach-stage-status {
    color: #b45309;
}

.coach-stage-item.is-active {
    border-color: var(--brand);
    background: linear-gradient(180deg, #f0fdfa 0%, #fff 100%);
    box-shadow: 0 0 0 2px rgba(255, 107, 0, .16);
}

.coach-stage-item.is-active .coach-stage-num {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}

.coach-stage-item.is-active .coach-stage-status {
    color: var(--brand-deep);
    font-weight: 600;
}

@media (max-width: 768px) {
    .lifecycle-hero-actions {
        align-items: flex-start;
        width: 100%;
    }

    .coach-stage-grid {
        grid-template-columns: 1fr;
    }

    .lifecycle-mini-bar {
        display: none;
    }
}

/* Business Coach admin workspace tabs */
.coach-hub-nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .75rem;
}

.coach-hub-tab {
    display: flex;
    flex-direction: column;
    gap: .15rem;
    padding: 1rem 1.05rem;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: #fff;
    text-decoration: none;
    color: inherit;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.coach-hub-tab i {
    font-size: 1.2rem;
    color: var(--brand);
    margin-bottom: .2rem;
}

.coach-hub-tab span {
    font-weight: 700;
    color: var(--brand-deep);
}

.coach-hub-tab small {
    color: var(--muted);
    font-size: .75rem;
}

.coach-hub-tab:hover {
    border-color: #99f6e4;
    box-shadow: 0 8px 18px rgba(255, 107, 0, .08);
    transform: translateY(-1px);
    color: inherit;
}

.coach-hub-tab.active {
    border-color: var(--brand);
    background: linear-gradient(180deg, #f0fdfa 0%, #fff 100%);
    box-shadow: 0 0 0 2px rgba(255, 107, 0, .14);
}

.coach-open-box-title {
    display: flex;
    align-items: center;
    gap: .85rem;
    padding-bottom: .85rem;
    border-bottom: 1px solid var(--border);
}

.coach-open-box-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: rgba(255, 107, 0, .1);
    color: var(--brand-deep);
    font-size: 1.15rem;
    flex-shrink: 0;
}

.coach-row-clickable:hover td {
    background: #f8fafc;
}

.coach-box {
    overflow: hidden;
}

.coach-box-head {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    user-select: none;
}

.coach-box-head::-webkit-details-marker { display: none; }
.coach-box-head::marker { content: ''; }

.coach-box-head:hover {
    background: #f8fafc;
}

.coach-box[open] .coach-box-head {
    border-bottom: 1px solid var(--border);
    background: linear-gradient(180deg, #f0fdfa, #fff);
}

.coach-box-chevron {
    color: var(--muted);
    transition: transform .2s ease;
}

.coach-box[open] .coach-box-chevron {
    transform: rotate(180deg);
}

@media (max-width: 992px) {
    .coach-hub-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 576px) {
    .coach-hub-nav {
        grid-template-columns: 1fr;
    }
}

/* ========== Business Coach panel theme ========== */
body.theme-coach {
    --brand: #ea580c;
    --brand-dark: #f97316;
    --brand-deep: #c2410c;
    --accent: #ffb800;
    --bg: #fff7ed;
    --surface: #ffffff;
    --text: #1c1917;
    --muted: #78716c;
    --border: #fed7aa;
    --shadow: 0 10px 30px rgba(194, 65, 12, 0.08);
}

body.theme-coach .sidebar {
    background: linear-gradient(180deg, #1c1917 0%, #7c2d12 55%, #9a3412 100%);
}

body.theme-coach .sidebar-brand .logo,
body.theme-coach .sidebar-brand .brand-logo {
    background: #000;
    border-color: rgba(251, 146, 60, .45);
}

body.theme-coach .nav-link.active {
    background: linear-gradient(135deg, rgba(234, 88, 12, .95), rgba(249, 115, 22, .85));
    color: #fff;
    box-shadow: 0 8px 18px rgba(234, 88, 12, .28);
}

body.theme-coach .nav-link:hover {
    background: rgba(251, 146, 60, .16);
    color: #fff;
}

body.theme-coach .topbar {
    border-bottom-color: #fed7aa;
    background: rgba(255, 247, 237, .92);
}

body.theme-coach .btn-brand {
    background: linear-gradient(135deg, #ea580c, #f97316);
}

body.theme-coach .stat-card .value,
body.theme-coach .page-header h2 {
    color: #9a3412;
}

body.theme-coach .progress-bar {
    background: linear-gradient(90deg, #ea580c, #fb923c) !important;
}

body.theme-coach .bc-module-icon {
    background: #ffedd5 !important;
    color: #c2410c !important;
}

body.theme-coach .avatar {
    background: linear-gradient(135deg, #ea580c, #fb923c);
}

/* ========== BNS Member panel — brand orange (matches logo) ========== */
body.theme-student {
    --brand: #ff6b00;
    --brand-dark: #ffb800;
    --brand-deep: #0a1d37;
    --accent: #ff8a00;
    --bg: #f4f6f9;
    --surface: #ffffff;
    --text: #0a1d37;
    --muted: #64748b;
    --border: #e2e8f0;
    --shadow: 0 10px 30px rgba(10, 29, 55, 0.07);
}

body.theme-student .sidebar {
    background: linear-gradient(180deg, #050b14 0%, #0a1d37 55%, #132744 100%);
}

body.theme-student .sidebar-brand .logo,
body.theme-student .sidebar-brand .brand-logo {
    background: #000;
    border-color: rgba(255, 107, 0, .45);
}

body.theme-student .nav-link.active {
    background: linear-gradient(135deg, #ff6b00, #ff8a00);
    color: #fff;
    box-shadow: 0 8px 18px rgba(255, 107, 0, .28);
}

body.theme-student .nav-link:hover {
    background: rgba(255, 107, 0, .16);
    color: #fff;
}

body.theme-student .topbar {
    border-bottom-color: #ffe4cc;
    background: rgba(255, 255, 255, .94);
}

body.theme-student .btn-brand {
    background: linear-gradient(135deg, #ff6b00, #ff8a00);
}

body.theme-student .btn-brand:hover {
    filter: brightness(1.05);
}

body.theme-student .stat-card .value,
body.theme-student .page-header h2 {
    color: #0a1d37;
}

body.theme-student .stat-card .icon {
    background: #fff7ed;
    color: #c2410c;
}

body.theme-student .progress-bar {
    background: linear-gradient(90deg, #ff6b00, #ffb800) !important;
}

body.theme-student .avatar {
    background: linear-gradient(135deg, #ff6b00, #ffb800);
}

body.theme-student .badge-pill.badge-student,
body.theme-student .badge-pill.badge-active {
    background: #fff7ed;
    color: #c2410c;
}

body.theme-student .mp-stage-icon {
    background: #fff7ed !important;
    color: #c2410c !important;
}

body.theme-student .mp-tabs .nav-link.active {
    background: linear-gradient(135deg, #ff6b00, #ff8a00) !important;
    color: #fff !important;
}

body.theme-student .mp-status-pill {
    background: #fff7ed;
    color: #c2410c;
    border-color: #fdba74;
}

body.theme-student .mp-status-pill::before {
    background: #ff6b00;
}

body.theme-student .mp-choice:hover {
    border-color: #fdba74;
    background: #fff7ed;
}

body.theme-student .mp-choice.active,
body.theme-student .mp-choice:has(input:checked) {
    border-color: #ff6b00;
    background: #fff7ed;
    box-shadow: 0 0 0 1px #ff6b00 inset;
}

body.theme-student .mp-summary.ok {
    border-color: #fdba74;
    background: #fff7ed;
}

body.theme-student .card-panel {
    border-color: #e2e8f0;
}

body.theme-student .btn-soft {
    background: #fff7ed;
    color: #c2410c;
    border-color: #fed7aa;
}

body.theme-student .btn-soft:hover {
    background: #ffedd5;
    color: #9a3412;
}

.pwa-install-btn[hidden],
[data-pwa-install][hidden],
[data-pwa-install-banner][hidden] {
    display: none !important;
}

@media (display-mode: standalone) {
    .pwa-install-btn,
    [data-pwa-install],
    [data-pwa-install-banner] {
        display: none !important;
    }
}

.section-media-bar { margin: 0 0 1rem; }
.section-media-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.section-media-btn {
    border: 1px solid var(--border); background: #fff; color: var(--text);
    border-radius: 999px; padding: .4rem .9rem; font-weight: 700; font-size: .85rem; cursor: pointer;
}
.section-media-btn.is-image { border-color: #fed7aa; background: #fff7ed; color: #9a3412; }
.section-media-btn.is-video { border-color: #bfdbfe; background: #eff6ff; color: #1d4ed8; }
.section-media-btn.is-active, .section-media-btn:hover { box-shadow: var(--shadow); }
.section-media-panel { margin-top: .75rem; }
.section-media-panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .5rem; font-weight: 700; }
.section-media-close {
    width: 2rem; height: 2rem; border-radius: 999px; border: 1px solid #fecaca;
    background: #fef2f2; color: #b91c1c; cursor: pointer;
}
.section-media-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .75rem; }
.section-media-grid.is-videos { grid-template-columns: 1fr; }
.section-media-item { margin: 0; background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: .75rem; }
.section-media-item img { width: 100%; max-height: 280px; object-fit: contain; border-radius: 10px; display: block; background: #f8fafc; }
.section-media-embed { position: relative; width: 100%; padding-top: 56.25%; margin-top: .5rem; border-radius: 12px; overflow: hidden; background: #000; }
.section-media-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.section-media-link { display: inline-block; margin-top: .5rem; color: #1d4ed8; font-weight: 600; }

