/* ============================================================
   Combat Fitness — shared "dash" design system
   Scoped to .dash so it never leaks into un-migrated pages.
   ============================================================ */
.dash {
    --dash-accent: #ff5722;
    --dash-accent-2: #ff8a50;
    --dash-ink: #1f2630;
    --dash-muted: #7a8694;
    --dash-card: #ffffff;
    --dash-radius: 18px;
    --dash-shadow: 0 10px 30px rgba(31, 38, 48, 0.08);
    font-family: "Figtree", "Kanit", sans-serif;
    color: var(--dash-ink);
    margin-bottom: 2.5rem;
}
.dash h2, .dash h3, .dash h4 { font-family: "Kanit", sans-serif; }

/* ---- Hero / page header ---- */
.dash-hero {
    position: relative;
    overflow: hidden;
    border-radius: var(--dash-radius);
    padding: 2.2rem 2.4rem;
    margin-bottom: 1.75rem;
    color: #fff;
    background: linear-gradient(135deg, #20262e 0%, #2d3742 55%, #3a2218 100%);
    box-shadow: var(--dash-shadow);
}
.dash-hero::after {
    content: "";
    position: absolute;
    top: -40%;
    right: -10%;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(255,87,34,0.45) 0%, rgba(255,87,34,0) 70%);
    pointer-events: none;
}
.dash-hero.dash-hero--sm { padding: 1.6rem 2.1rem; }
.dash-hero .eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--dash-accent-2);
    margin-bottom: 0.35rem;
}
.dash-hero h2 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 0.35rem;
    position: relative;
    z-index: 1;
}
.dash-hero.dash-hero--sm h2 { font-size: 1.6rem; }
.dash-hero p { margin: 0; color: rgba(255,255,255,0.72); position: relative; z-index: 1; }

/* ---- Stat strip ---- */
.dash-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 1.75rem;
}
.dash-stat {
    background: var(--dash-card);
    border-radius: var(--dash-radius);
    padding: 1.1rem 1.25rem;
    box-shadow: var(--dash-shadow);
    border: 1px solid rgba(31,38,48,0.04);
}
.dash-stat .label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--dash-muted);
    font-weight: 600;
}
.dash-stat .value {
    font-family: "Kanit", sans-serif;
    font-size: 1.7rem;
    font-weight: 600;
    line-height: 1.2;
    margin-top: 0.2rem;
}
.dash-stat .value small { font-size: 0.85rem; color: var(--dash-muted); font-weight: 500; }

/* ---- Card ---- */
.dash-card {
    background: var(--dash-card);
    border-radius: var(--dash-radius);
    box-shadow: var(--dash-shadow);
    border: 1px solid rgba(31,38,48,0.04);
    overflow: hidden;
    margin-bottom: 1.5rem;
}
.dash-card.dash-card--full { height: 100%; }
.dash-card-head {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1.1rem 1.35rem;
    font-family: "Kanit", sans-serif;
    font-weight: 600;
    font-size: 1.05rem;
    border-bottom: 1px solid rgba(31,38,48,0.06);
}
.dash-card-head .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--dash-accent); }
.dash-card-body { padding: 1.35rem; }

/* ---- Info list (key / value) ---- */
.dash-info { list-style: none; margin: 0 0 1.1rem; padding: 0; }
.dash-info:last-child { margin-bottom: 0; }
.dash-info li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0;
    border-bottom: 1px dashed rgba(31,38,48,0.08);
}
.dash-info li:last-child { border-bottom: 0; }
.dash-info .k { color: var(--dash-muted); font-weight: 500; }
.dash-info .v { font-weight: 600; }

/* ---- Quick action tiles ---- */
.dash-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem; }
.dash-action {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.95rem 1rem;
    border-radius: 14px;
    text-decoration: none;
    color: var(--dash-ink);
    background: #f6f8fa;
    border: 1px solid rgba(31,38,48,0.05);
    font-weight: 600;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.dash-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(31,38,48,0.12);
    background: #fff;
    color: var(--dash-ink);
}
.dash-action .ic {
    flex: 0 0 38px; width: 38px; height: 38px;
    display: grid; place-items: center;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--dash-accent), var(--dash-accent-2));
    color: #fff;
}
.dash-action .ic svg { width: 20px; height: 20px; }

/* ---- Buttons (override Bootstrap inside .dash) ---- */
.dash .btn {
    border-radius: 10px;
    font-weight: 600;
    padding: 0.5rem 1.1rem;
    border: none;
    transition: filter .15s ease, transform .15s ease, background .15s ease;
}
.dash .btn:hover { filter: brightness(1.05); transform: translateY(-1px); }
.dash .btn-sm { padding: 0.35rem 0.8rem; font-size: 0.82rem; }
.dash .btn-primary,
.dash .btn-success { background: linear-gradient(135deg, var(--dash-accent), var(--dash-accent-2)); color: #fff; }
.dash .btn-info { background: linear-gradient(135deg, #2d8cf0, #5ab0ff); color: #fff; }
.dash .btn-warning { background: linear-gradient(135deg, #f0a020, #f7c259); color: #3a2a00; }
.dash .btn-danger { background: linear-gradient(135deg, #e23b3b, #ff6f6f); color: #fff; }
.dash .btn-secondary,
.dash .dash-btn-ghost {
    background: #f1f4f7; color: var(--dash-ink);
    border: 1px solid rgba(31,38,48,0.08);
}
.dash .btn-secondary:hover,
.dash .dash-btn-ghost:hover { background: #e9edf1; color: var(--dash-ink); filter: none; }
.dash .dash-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1.1rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    background: linear-gradient(135deg, var(--dash-accent), var(--dash-accent-2));
    color: #fff;
    transition: filter .15s ease, transform .15s ease;
}
.dash .dash-btn:hover { filter: brightness(1.05); transform: translateY(-1px); color: #fff; }
.dash .dash-btn-ghost { font-size: 0.85rem; padding: 0.42rem 0.9rem; background: #f1f4f7; color: var(--dash-ink); border: 1px solid rgba(31,38,48,0.08); }
.dash .dash-btn-ghost:hover { background: #e9edf1; color: var(--dash-ink); filter: none; }
.dash .btn-block { display: block; width: 100%; }

/* ---- Forms (style existing Bootstrap markup inside .dash) ---- */
.dash .form-label,
.dash label { font-weight: 600; color: var(--dash-ink); margin-bottom: 0.35rem; }
.dash .form-control,
.dash .form-select {
    border-radius: 12px;
    border: 1px solid rgba(31,38,48,0.14);
    padding: 0.6rem 0.85rem;
    color: var(--dash-ink);
    background: #fbfcfd;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.dash .form-control:focus,
.dash .form-select:focus {
    border-color: var(--dash-accent);
    box-shadow: 0 0 0 0.2rem rgba(255,87,34,0.15);
    background: #fff;
    outline: none;
}
.dash .form-control[readonly] { background: #f1f3f5; color: var(--dash-muted); }
.dash .form-check-input:checked { background-color: var(--dash-accent); border-color: var(--dash-accent); }
.dash .input-group .form-control:not(:last-child) { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.dash .input-group-append .form-control,
.dash .input-group .form-select { border-top-left-radius: 0; border-bottom-left-radius: 0; }

/* ---- Tables ---- */
.dash-table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 0; }
.dash-table thead th {
    text-align: left;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--dash-muted);
    font-weight: 600;
    padding: 0.6rem 0.9rem;
    border-bottom: 1px solid rgba(31,38,48,0.08);
}
.dash-table tbody td {
    padding: 0.8rem 0.9rem;
    border-bottom: 1px solid rgba(31,38,48,0.05);
    vertical-align: middle;
}
.dash-table tbody tr:last-child td { border-bottom: 0; }
.dash-table tbody tr { transition: background .12s ease; }
.dash-table tbody tr:hover { background: #f8fafc; }

/* ---- Intensity badges ---- */
.badge-int {
    display: inline-block;
    padding: 0.22rem 0.65rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
}
.badge-int.Light { background: #e6f4ea; color: #1e7e45; }
.badge-int.Moderate { background: #fff3e0; color: #b9610b; }
.badge-int.Vigorous { background: #fde7e7; color: #c62828; }

/* ---- Pill badge (generic) ---- */
.dash-pill {
    display: inline-block;
    padding: 0.22rem 0.7rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    background: #eef1f4;
    color: var(--dash-ink);
}
.dash-pill.accent { background: rgba(255,87,34,0.12); color: var(--dash-accent); }

/* ---- Alerts inside .dash ---- */
.dash .alert {
    border-radius: 14px;
    border: none;
    font-weight: 500;
}
.dash .alert-success { background: #e6f4ea; color: #1e7e45; }
.dash .alert-info { background: #e7f1fd; color: #1a5fb4; }
.dash .alert-danger { background: #fde7e7; color: #c62828; }

/* ---- Empty state ---- */
.dash-empty { text-align: center; padding: 2rem 1rem; color: var(--dash-muted); }
.dash-empty a { color: var(--dash-accent); font-weight: 600; }

/* ---- Selectable list (wizard / checkboxes) ---- */
.dash-list { list-style: none; margin: 0; padding: 0; }
.dash-list .dash-list-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(31,38,48,0.08);
    border-radius: 14px;
    margin-bottom: 0.7rem;
    background: #fbfcfd;
    transition: border-color .15s ease, background .15s ease;
}
.dash-list .dash-list-item:hover { border-color: var(--dash-accent); background: #fff; }
.dash-list .dash-list-item input[type="checkbox"] { margin-top: 0.25rem; width: 1.1rem; height: 1.1rem; accent-color: var(--dash-accent); }
.dash-list .dash-list-item .title { font-weight: 600; }
.dash-list .dash-list-item small { color: var(--dash-muted); }

/* ---- Chart wrapper ---- */
.dash-chart-wrap { position: relative; height: 340px; }

/* ---- Dashboard Fight Camp promo banner ---- */
.dash-promo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    text-decoration: none;
    color: #fff;
    border-radius: var(--dash-radius);
    padding: 1.25rem 1.6rem;
    margin-bottom: 1.75rem;
    background: linear-gradient(135deg, #2d1a12 0%, #4a2417 55%, #ff5722 160%);
    box-shadow: var(--dash-shadow);
    transition: transform .15s ease, box-shadow .15s ease;
}
.dash-promo:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(255,87,34,0.25); color: #fff; }
.dash-promo-text { display: flex; flex-direction: column; gap: 0.15rem; }
.dash-promo-badge {
    text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.65rem; font-weight: 700;
    color: var(--dash-accent-2);
}
.dash-promo-text strong { font-family: "Kanit", sans-serif; font-size: 1.3rem; font-weight: 800; }
.dash-promo-text span:last-child { color: rgba(255,255,255,0.72); font-size: 0.9rem; }
.dash-promo-cta {
    flex: 0 0 auto;
    font-weight: 700;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    padding: 0.6rem 1.2rem;
    border-radius: 999px;
    white-space: nowrap;
}

/* ============================================================
   Fight Camp
   ============================================================ */
/* Pitch / enrollment */
.fc-pitch {
    text-align: center;
    color: #fff;
    border-radius: var(--dash-radius);
    padding: 3rem 2rem;
    background: linear-gradient(135deg, #1a1f26 0%, #2d3742 50%, #4a2417 100%);
    box-shadow: var(--dash-shadow);
    position: relative;
    overflow: hidden;
}
.fc-pitch::after {
    content: "";
    position: absolute;
    top: -30%; right: -10%;
    width: 360px; height: 360px;
    background: radial-gradient(circle, rgba(255,87,34,0.5) 0%, rgba(255,87,34,0) 70%);
}
.fc-pitch > * { position: relative; z-index: 1; }
.fc-pitch-badge {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--dash-accent-2);
    background: rgba(255,87,34,0.15);
    padding: 0.3rem 0.85rem;
    border-radius: 999px;
    margin-bottom: 1rem;
}
.fc-pitch h1 { font-family: "Kanit", sans-serif; font-weight: 800; font-size: 3rem; margin: 0 0 0.5rem; letter-spacing: -0.01em; }
.fc-pitch .lead { color: rgba(255,255,255,0.78); max-width: 620px; margin: 0 auto 2rem; font-size: 1.1rem; }
.fc-pitch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    max-width: 680px;
    margin: 0 auto;
}
.fc-pitch-item {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 14px;
    padding: 1.1rem 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}
.fc-pitch-ic { font-size: 1.6rem; }
.fc-pitch-item strong { font-family: "Kanit", sans-serif; }
.fc-pitch-item span:last-child { font-size: 0.8rem; color: rgba(255,255,255,0.6); }
.fc-start-btn { font-weight: 700; padding: 0.8rem 2rem; font-size: 1.1rem; }
.fc-pitch-note { color: rgba(255,255,255,0.6); }

/* Active camp hero */
.fc-hero {
    border-radius: var(--dash-radius);
    padding: 1.8rem 2rem;
    margin-bottom: 1.75rem;
    color: #fff;
    background: linear-gradient(135deg, #20262e 0%, #2d3742 55%, #3a2218 100%);
    box-shadow: var(--dash-shadow);
}
.fc-hero-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; }
.fc-hero .eyebrow { text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.72rem; font-weight: 600; color: var(--dash-accent-2); }
.fc-hero h2 { font-family: "Kanit", sans-serif; font-weight: 800; font-size: 2.2rem; margin: 0.1rem 0 0; }
.fc-hero .fc-of { color: rgba(255,255,255,0.5); font-weight: 500; font-size: 1.3rem; }
.fc-week { color: rgba(255,255,255,0.7); font-weight: 600; margin-top: 0.2rem; }
.fc-streak {
    background: rgba(255,87,34,0.18);
    border: 1px solid rgba(255,138,80,0.4);
    color: #ffb38f;
    font-weight: 700;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    white-space: nowrap;
}
.fc-streak span { color: #fff; font-size: 1.1rem; }
.fc-hero-bar { height: 10px; border-radius: 999px; background: rgba(255,255,255,0.12); overflow: hidden; margin: 1.2rem 0 1rem; }
.fc-hero-bar-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--dash-accent), var(--dash-accent-2)); transition: width .4s ease; }
.fc-quote { font-style: italic; color: rgba(255,255,255,0.82); font-size: 1.02rem; }

/* Task list */
.fc-tasks { list-style: none; margin: 0; padding: 0; }
.fc-task {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.95rem 1rem;
    border: 1px solid rgba(31,38,48,0.08);
    border-radius: 14px;
    margin-bottom: 0.75rem;
    background: #fff;
    transition: background .15s ease, border-color .15s ease, opacity .15s ease;
}
.fc-task:last-child { margin-bottom: 0; }
.fc-task.done { background: #f3f9f5; border-color: rgba(30,126,69,0.25); }
.fc-check {
    flex: 0 0 30px; width: 30px; height: 30px;
    border-radius: 50%;
    border: 2px solid rgba(31,38,48,0.2);
    background: #fff;
    color: #fff;
    cursor: pointer;
    display: grid;
    place-items: center;
    padding: 0;
    transition: background .15s ease, border-color .15s ease, transform .1s ease;
}
.fc-check svg { width: 16px; height: 16px; opacity: 0; }
.fc-check:hover { border-color: var(--dash-accent); }
.fc-check:active { transform: scale(0.9); }
.fc-task.done .fc-check { background: #1e7e45; border-color: #1e7e45; }
.fc-task.done .fc-check svg { opacity: 1; }
.fc-task-ic {
    flex: 0 0 40px; width: 40px; height: 40px;
    display: grid; place-items: center;
    border-radius: 11px;
    background: linear-gradient(135deg, var(--dash-accent), var(--dash-accent-2));
    color: #fff;
}
.fc-task-ic svg { width: 21px; height: 21px; }
.fc-task.done .fc-task-ic { background: #cfe6d8; color: #1e7e45; }
.fc-task-body { flex: 1 1 auto; min-width: 0; }
.fc-task-label { font-weight: 700; font-family: "Kanit", sans-serif; }
.fc-task.done .fc-task-label { text-decoration: line-through; color: var(--dash-muted); }
.fc-task-cat {
    font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.08em;
    font-weight: 700; color: var(--dash-accent);
    background: rgba(255,87,34,0.1); padding: 0.1rem 0.5rem; border-radius: 999px;
    margin-left: 0.35rem; vertical-align: middle;
}
.fc-task-desc { font-size: 0.85rem; color: var(--dash-muted); margin-top: 0.1rem; }
.fc-task-cta { flex: 0 0 auto; white-space: nowrap; }

.fc-allclear {
    display: none;
    text-align: center;
    margin-top: 1.1rem;
    padding: 1rem;
    border-radius: 14px;
    background: #e6f4ea;
    color: #1e7e45;
    font-weight: 600;
}
.fc-allclear.show { display: block; }

/* Completion */
.fc-complete {
    text-align: center;
    padding: 2.5rem 1.5rem;
}
.fc-complete h1 { font-family: "Kanit", sans-serif; font-weight: 800; font-size: 2.6rem; margin: 0.5rem 0; }
.fc-complete .lead { color: var(--dash-muted); max-width: 560px; margin: 0 auto; font-size: 1.15rem; }
.fc-confetti { font-size: 4.5rem; line-height: 1; animation: fc-pop .6s ease; }
@keyframes fc-pop { 0% { transform: scale(0) rotate(-20deg); } 70% { transform: scale(1.2) rotate(8deg); } 100% { transform: scale(1) rotate(0); } }

@media (max-width: 575px) {
    .fc-pitch h1 { font-size: 2.2rem; }
    .fc-hero h2 { font-size: 1.7rem; }
    /* Let the row wrap so the action button drops to its own line. */
    .fc-task { flex-wrap: wrap; }
    .fc-task-cta { flex: 1 1 100%; margin-left: 49px; text-align: center; }
}

/* ---- Date-range filter ---- */
.dash-filter {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}
.dash-filter-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    color: var(--dash-muted);
    margin-right: 0.25rem;
}
.dash-filter-btn {
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.42rem 0.95rem;
    border-radius: 999px;
    color: var(--dash-ink);
    background: #fff;
    border: 1px solid rgba(31,38,48,0.1);
    box-shadow: var(--dash-shadow);
    transition: background .12s ease, color .12s ease, border-color .12s ease, transform .12s ease;
}
.dash-filter-btn:hover { transform: translateY(-1px); color: var(--dash-ink); border-color: rgba(255,87,34,0.4); }
.dash-filter-btn.active {
    background: linear-gradient(135deg, var(--dash-accent), var(--dash-accent-2));
    color: #fff;
    border-color: transparent;
}

/* ---- Progress photo gallery ---- */
.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
}
.photo-tile {
    margin: 0;
    border-radius: 14px;
    overflow: hidden;
    background: #f6f8fa;
    border: 1px solid rgba(31,38,48,0.06);
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease;
}
.photo-tile:hover { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(31,38,48,0.15); }
.photo-tile img {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    background: #e9edf1;
}
.photo-tile figcaption { padding: 0.6rem 0.75rem; }
.photo-tile figcaption .d { display: block; font-weight: 600; font-size: 0.85rem; }
.photo-tile figcaption .m { display: block; font-size: 0.75rem; color: var(--dash-muted); margin-top: 0.1rem; }

/* ---- Compare panes ---- */
.compare-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.compare-pane {
    margin: 0;
    border-radius: 14px;
    overflow: hidden;
    background: #f6f8fa;
    border: 1px solid rgba(31,38,48,0.06);
}
.compare-pane img {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: contain;
    background: #20262e;
    max-height: 540px;
}
.compare-pane figcaption {
    padding: 0.7rem 0.9rem;
    font-size: 0.85rem;
    color: var(--dash-muted);
}
.compare-pane figcaption strong { color: var(--dash-ink); }
.compare-delta { margin-top: 1rem; font-weight: 600; }
.delta-pill {
    display: inline-block;
    padding: 0.22rem 0.7rem;
    border-radius: 999px;
    font-size: 0.85rem;
    margin-left: 0.35rem;
}
.delta-pill.down { background: #e6f4ea; color: #1e7e45; }
.delta-pill.up   { background: #fff3e0; color: #b9610b; }
.delta-pill.flat { background: #eef1f4; color: var(--dash-ink); }

/* ---- Lightbox ---- */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1080;
    background: rgba(15, 19, 24, 0.92);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 2rem;
}
.lightbox.open { display: flex; }
.lightbox img {
    max-width: 92vw;
    max-height: 82vh;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.lightbox-cap { color: #fff; margin-top: 1rem; font-weight: 600; }
.lightbox-close {
    position: absolute;
    top: 1.2rem;
    right: 1.6rem;
    color: #fff;
    font-size: 2.4rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0.8;
}
.lightbox-close:hover { opacity: 1; }

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

/* ---- Mobility workout player ---- */
.mob-player {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 14px;
    overflow: hidden;
    background: #20262e;
    box-shadow: var(--dash-shadow);
}
.mob-player iframe,
.mob-player > div {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
.mob-now {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin: 1rem 0 1.1rem;
}
.mob-now .step-no {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 40px; height: 40px;
    border-radius: 12px;
    font-family: "Kanit", sans-serif;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--dash-accent), var(--dash-accent-2));
}
.mob-now h3 { margin: 0; font-size: 1.35rem; font-weight: 700; }
.mob-now .count { color: var(--dash-muted); font-size: 0.85rem; }

.mob-progress {
    height: 8px;
    border-radius: 999px;
    background: #eef1f4;
    overflow: hidden;
    margin-bottom: 1.25rem;
}
.mob-progress-bar {
    height: 100%;
    width: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--dash-accent), var(--dash-accent-2));
    transition: width .3s ease;
}

.mob-controls { display: flex; gap: 0.6rem; flex-wrap: wrap; }

/* Playlist */
.mob-list { list-style: none; margin: 0; padding: 0; }
.mob-list li {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.7rem 0.85rem;
    border-radius: 12px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background .12s ease, border-color .12s ease;
}
.mob-list li:hover { background: #f6f8fa; }
.mob-list li.active { background: rgba(255,87,34,0.08); border-color: rgba(255,87,34,0.25); }
.mob-list li .idx {
    flex: 0 0 26px; width: 26px; height: 26px;
    display: grid; place-items: center;
    border-radius: 50%;
    font-size: 0.78rem; font-weight: 700;
    background: #eef1f4; color: var(--dash-muted);
}
.mob-list li.active .idx { background: var(--dash-accent); color: #fff; }
.mob-list li.done .idx { background: #1e7e45; color: #fff; }
.mob-list li .nm { font-weight: 600; font-size: 0.92rem; }
.mob-list li.done .nm { color: var(--dash-muted); }
.mob-list li .chk { margin-left: auto; color: #1e7e45; font-weight: 700; opacity: 0; }
.mob-list li.done .chk { opacity: 1; }

.mob-complete {
    text-align: center;
    padding: 1.25rem;
    border-radius: 14px;
    background: #e6f4ea;
    color: #1e7e45;
    font-weight: 600;
    margin-top: 1rem;
    display: none;
}
.mob-complete.show { display: block; }

/* ---- Wizard sidebar ---- */
.dash-wizard-sidebar {
    background: #f6f8fa;
    border-radius: 14px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.25rem;
}
.dash-wizard-sidebar h4 { font-size: 1rem; margin-bottom: 0.6rem; }
.dash-wizard-sidebar ul { list-style: none; margin: 0; padding: 0; }
.dash-wizard-sidebar li { padding: 0.3rem 0; color: var(--dash-muted); }

@media (max-width: 575px) {
    .dash-hero { padding: 1.6rem 1.4rem; }
    .dash-hero h2 { font-size: 1.5rem; }
    .dash-actions { grid-template-columns: 1fr; }
}
