﻿@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Montserrat:wght@600;700;800&display=swap");

:root {
    --bg: #050505;
    --panel: #101010;
    --panel-2: #171717;
    --line: rgba(255, 255, 255, 0.1);
    --line-strong: rgba(255, 255, 255, 0.22);
    --text: #f5f5f5;
    --muted: #9a9a9a;
    --soft: #d8d8d8;
    --accent: #ffffff;
    --warm-accent: #aeb8c9;
    --danger: #ff5a5f;
    --ok: #9ff0c1;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body.os-body {
    min-height: 100vh;
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    letter-spacing: 0;
}

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

.os-topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid var(--line);
    background: rgba(5, 5, 5, 0.82);
    backdrop-filter: blur(18px);
}

.os-brand,
.login-brand {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.os-brand span,
.login-brand span {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--accent);
    color: #050505;
    background: var(--accent);
    font-weight: 900;
}

.os-brand img,
.login-brand img {
    width: 90px;
    object-fit: contain;
}

.os-brand strong,
.login-brand strong {
    font-family: "Montserrat", "Manrope", sans-serif;
    font-size: 21px;
    font-weight: 700;
}

.os-topbar__meta {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--muted);
    font-size: 12px;
}

.os-topbar__meta form {
    display: flex;
}

.topbar-icon,
.os-topbar__meta button {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,.045);
    color: var(--text);
    font: inherit;
    cursor: pointer;
    transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

.topbar-icon:hover,
.topbar-icon.is-active,
.os-topbar__meta button:hover {
    border-color: var(--line-strong);
    background: rgba(255,255,255,.11);
    transform: translateY(-1px);
}

.os-topbar__meta button {
    padding: 0;
}

.os-shell {
    width: min(1180px, 100%);
    margin: 0 auto;
    padding: 18px 14px 92px;
}

.hero-panel,
.page-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.hero-panel {
    min-height: 180px;
    padding: 24px;
    border: 1px solid var(--line-strong);
    background: #0d0d0d;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.18), 0 24px 80px rgba(0,0,0,0.4);
    overflow: hidden;
}

.hero-panel--compact {
    min-height: 136px;
}

.hero-panel p,
.page-head p {
    margin: 0 0 8px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.hero-panel h1,
.page-head h1 {
    margin: 0;
    font-family: "Montserrat", "Manrope", sans-serif;
    font-size: clamp(34px, 9vw, 76px);
    line-height: 0.88;
    font-weight: 700;
    letter-spacing: 0;
}

.page-head h1 {
    font-size: clamp(28px, 8vw, 52px);
}

.hero-panel h1 {
    font-size: clamp(26px, 6vw, 48px);
    line-height: 1;
}

.action-btn,
.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 44px;
    padding: 0 16px;
    border: 1px solid var(--accent);
    background: var(--accent);
    color: #050505;
    font-weight: 800;
    cursor: pointer;
    transition: transform .18s ease, opacity .18s ease;
}

.action-btn:hover,
.icon-btn:hover {
    transform: translateY(-1px);
}

.action-btn.is-loading {
    cursor: wait;
    opacity: .72;
    pointer-events: none;
}

.report-pdf-preview {
    max-width: 1180px;
}

.report-pdf-frame {
    display: block;
    width: 100%;
    height: calc(100dvh - var(--topbar-height, 80px) - 190px);
    min-height: 520px;
    border: 1px solid var(--line-strong);
    background: #fff;
}

.action-btn--wide {
    width: 100%;
}

.action-btn--ghost {
    background: transparent;
    color: var(--text);
    border-color: var(--line);
}

.action-btn--danger,
.icon-btn--danger {
    background: transparent;
    color: var(--danger);
    border-color: color-mix(in srgb, var(--danger) 60%, transparent);
}

.head-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.member-portal-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(100%, 520px);
}

.page-head .member-portal-actions .action-btn {
    width: 100%;
    min-width: 0;
    padding: 8px;
    font-size: 12px;
    line-height: 1.15;
    text-align: center;
}

.metric-grid,
.split-grid,
.signal-grid {
    display: grid;
    gap: 10px;
}

.metric-grid {
    grid-template-columns: repeat(4, 1fr);
    margin-bottom: 10px;
}

.split-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 10px;
}

.metric-card,
.os-panel,
.member-card,
.trainer-card,
.login-card {
    border: 1px solid var(--line);
    background:
        linear-gradient(180deg, rgba(255,255,255,0.045), transparent 120px),
        rgba(16, 16, 16, 0.9);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

.metric-card {
    min-height: 96px;
    padding: 16px;
    position: relative;
    overflow: hidden;
}

.metric-card::after {
    content: "";
    position: absolute;
    inset: auto 14px 12px auto;
    width: 34px;
    height: 2px;
    background: var(--accent);
    opacity: .55;
}

.metric-card span,
.signal-grid span,
.list-row span,
.trainer-card p,
.trainer-card__top span,
.note-text {
    color: var(--muted);
}

.metric-card strong {
    display: block;
    margin-top: 12px;
    font-family: "Montserrat", "Manrope", sans-serif;
    font-size: clamp(24px, 7vw, 38px);
    line-height: 1;
}

.member-detail-metrics .metric-card {
    min-height: 76px;
}

.member-detail-metrics .metric-card strong {
    font-size: clamp(18px, 5vw, 26px);
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.os-panel {
    padding: 16px;
}

.premium-form,
.premium-row {
    position: relative;
    overflow: hidden;
}

.panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.panel-head h2 {
    margin: 0;
    font-family: "Montserrat", "Manrope", sans-serif;
    font-size: 18px;
    font-weight: 700;
}

.panel-head a,
.panel-head span {
    color: var(--muted);
    font-size: 13px;
}

.stack-list,
.card-list {
    display: grid;
    gap: 8px;
}

.list-row,
.member-card {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 64px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
}

.list-row:last-child,
.member-card:last-child {
    border-bottom: 0;
}

.list-row time {
    display: grid;
    place-items: center;
    min-width: 54px;
    height: 42px;
    border: 1px solid var(--line);
    color: var(--soft);
    font-size: 13px;
    font-weight: 800;
}

.list-row div,
.member-card div {
    min-width: 0;
}

.list-row strong,
.member-card strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mini-meta {
    display: block;
    margin-top: 4px;
    color: var(--soft);
    font-size: 11px;
    font-weight: 800;
}

.package-row {
    align-items: flex-start;
}

.package-row > div {
    flex: 1;
}

.package-row time.is-frozen {
    border-color: rgba(137, 188, 255, .42);
    background: rgba(137, 188, 255, .1);
    color: #d9e8ff;
}

.package-row--debt {
    border-left: 3px solid rgba(255, 96, 103, .72);
    background: linear-gradient(90deg, rgba(255, 96, 103, .09), transparent 58%);
}

.package-debt-alert {
    display: flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    margin-top: 7px;
    color: #ffb9bc;
    font-size: 12px;
    font-weight: 900;
}

.member-card {
    justify-content: space-between;
    padding: 16px;
}

.member-card--stacked {
    display: grid;
    align-items: stretch;
    padding: 0;
}

.member-card__main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px;
}

.creator-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    margin-top: 9px;
    padding: 5px 9px;
    border: 1px solid transparent;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.creator-pill--pt {
    border-color: rgba(159, 240, 193, .35);
    background: rgba(159, 240, 193, .13);
    color: #baf7d1;
}

.creator-pill--private {
    border-color: rgba(255, 255, 255, .36);
    background: rgba(255, 255, 255, .12);
    color: #fff;
}

.health-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    margin-top: 8px;
    padding: 5px 9px;
    border: 1px solid color-mix(in srgb, var(--danger) 62%, transparent);
    background: color-mix(in srgb, var(--danger) 14%, #151515);
    color: #ffd1d3;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.payment-alert-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    margin-top: 8px;
    padding: 5px 9px;
    border: 1px solid rgba(255, 191, 87, .42);
    background: rgba(255, 191, 87, .14);
    color: #ffe0a6;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.payment-alert-pill--pending {
    border-color: color-mix(in srgb, var(--danger) 58%, transparent);
    background: color-mix(in srgb, var(--danger) 14%, #151515);
    color: #ffd1d3;
}

.freeze-pill {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    width: fit-content;
    max-width: 100%;
    margin-top: 6px;
    padding: 6px 10px;
    border: 1px solid rgba(137, 188, 255, .34);
    border-radius: 999px;
    background: rgba(137, 188, 255, .11);
    color: #d9e8ff;
    font-size: 11px;
    font-weight: 900;
    line-height: 1.2;
}

.freeze-pill del {
    color: var(--muted);
    text-decoration-color: rgba(255,255,255,.55);
}

.freeze-pill strong {
    display: inline;
    overflow: visible;
    color: #fff;
    white-space: nowrap;
}

.note-text--danger {
    border-color: color-mix(in srgb, var(--danger) 46%, var(--line));
    background: color-mix(in srgb, var(--danger) 12%, #111);
    color: #ffe1e2;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: max-content;
    min-height: 28px;
    margin-top: 6px;
    padding: 0 10px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    color: var(--soft);
    font-size: 11px;
    font-weight: 900;
    white-space: nowrap;
}

.list-row > .status-pill {
    margin: 0 0 0 auto;
}

.status-pill--paid {
    border-color: rgba(111, 230, 158, .42);
    background: rgba(111, 230, 158, .16);
    color: #bdf8d2;
}

.status-pill--partial,
.status-pill--pending {
    border-color: rgba(255, 170, 69, .46);
    background: rgba(255, 170, 69, .15);
    color: #ffd3a0;
}

.status-pill--cancelled,
.status-pill--refunded {
    border-color: rgba(255, 90, 95, .46);
    background: rgba(255, 90, 95, .15);
    color: #ffb8bb;
}

.member-session-row small {
    display: block;
    margin-top: 5px;
    color: var(--soft);
}

.review-pill {
    margin-left: auto;
    padding: 8px 10px;
    border: 1px solid rgba(255,255,255,.34);
    background: rgba(255,255,255,.12);
    color: var(--text);
    font-weight: 900;
}

.review-form ul {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.review-form li label {
    display: grid;
    place-items: center;
    min-height: 44px;
    border: 1px solid var(--line-strong);
    background: #0d0d0d;
}

.signal-grid {
    grid-template-columns: repeat(3, 1fr);
}

.signal-grid div {
    min-height: 92px;
    padding: 14px;
    border: 1px solid var(--line);
    background: #0b0b0b;
}

.signal-grid strong {
    display: block;
    margin-top: 14px;
    font-size: 30px;
}

.empty-state {
    margin: 0;
    padding: 18px 0;
    color: var(--muted);
}

.schedule-focus {
    display: grid;
    gap: 14px;
    margin-bottom: 14px;
}

.day-strip {
    display: grid;
    grid-template-columns: repeat(6, minmax(60px, 1fr));
    gap: 8px;
}

.day-pill {
    display: grid;
    place-items: center;
    gap: 8px;
    min-height: 82px;
    padding: 10px 8px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 26px;
    background: #20222b;
    color: var(--soft);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.06), inset 0 -3px 0 rgba(0,0,0,.22);
    transition: background .18s ease, color .18s ease, transform .18s ease, border-color .18s ease;
}

.day-pill span {
    font-size: 12px;
    font-weight: 800;
}

.day-pill strong {
    display: grid;
    place-items: center;
    width: 46px;
    height: 36px;
    border-radius: 17px;
    background: #050712;
    color: var(--text);
    font-family: "Montserrat", "Manrope", sans-serif;
    font-size: 20px;
    font-weight: 700;
}

.day-pill:hover {
    transform: translateY(-2px);
    border-color: var(--line-strong);
}

.day-pill.is-active {
    background: var(--warm-accent);
    color: #050505;
}

.day-pill.is-active strong {
    background: var(--accent);
    color: #050505;
}

.dashboard-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
}

.dashboard-section-head p {
    margin: 0 0 4px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.dashboard-section-head h2 {
    margin: 0;
    font-family: "Montserrat", "Manrope", sans-serif;
    font-size: 28px;
    line-height: 1;
}

.dashboard-section-head a {
    color: var(--warm-accent);
    font-size: 13px;
    font-weight: 900;
}

.dashboard-filter-panel {
    display: grid;
    gap: 8px;
    padding: 12px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,.035);
}

.filter-group {
    display: grid;
    gap: 8px;
}

.filter-group > span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.filter-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-pills small {
    color: var(--muted);
    font-size: 12px;
}

.filter-pill {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 13px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #0d0d0d;
    color: var(--soft);
    font-size: 12px;
    font-weight: 900;
    transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}

.filter-pill:hover {
    transform: translateY(-1px);
    border-color: var(--line-strong);
}

.filter-pill.is-active {
    border-color: rgba(174,184,201,.62);
    background: rgba(174,184,201,.17);
    color: #e5ebf4;
}

.upcoming-card-list {
    display: grid;
    gap: 10px;
}

.status-pill--package-active {
    border-color: rgba(93, 210, 142, .38);
    background: rgba(93, 210, 142, .12);
    color: #baf7d1;
}

.status-pill--package-expired,
.status-pill--package-finished {
    border-color: rgba(142, 158, 181, .38);
    background: rgba(142, 158, 181, .12);
    color: #ccd5e2;
}

.status-pill--package-cancelled {
    border-color: rgba(255, 96, 103, .4);
    background: rgba(255, 96, 103, .12);
    color: #ffc1c4;
}

.member-upcoming-trainings .upcoming-card-list {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
}

.upcoming-card--compact .upcoming-card__top strong {
    font-size: 17px;
}

.upcoming-card {
    display: grid;
    gap: 10px;
    padding: 14px;
    border: 1px solid var(--line);
    background:
        linear-gradient(180deg, rgba(255,255,255,.055), transparent 110px),
        #20222b;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}

.trial-appointment-row time small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 11px;
}

.trial-appointment-row > div > a {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    font-size: 12px;
}

.trial-appointment-row .row-actions {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: nowrap;
    gap: 6px;
    margin-left: auto;
}

.trial-appointment-row .trial-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    min-width: 42px;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(174, 184, 201, .34);
    background: #171a20;
    color: #dbe3ee;
    font-size: 14px;
    line-height: 1;
    transition: border-color .18s ease, background-color .18s ease, color .18s ease;
}

.trial-appointment-row .trial-action-btn:hover {
    border-color: rgba(174, 184, 201, .72);
    background: #252a34;
    color: #fff;
}

.measurement-panel {
    margin: 16px 0;
}

.measurement-panel .panel-head > div > p {
    margin: 0 0 4px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.measurement-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    margin-bottom: 18px;
    background: var(--line);
    border: 1px solid var(--line);
}

.measurement-summary > div {
    min-width: 0;
    padding: 14px 12px;
    background: #111318;
    border-top: 2px solid #e8edf5;
}

.measurement-summary > div:nth-child(2) { border-top-color: #76a7d8; }
.measurement-summary > div:nth-child(3) { border-top-color: #d39a72; }

.measurement-summary span {
    display: block;
    margin-bottom: 10px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.measurement-summary strong {
    display: inline-block;
    margin: 0;
    font-family: "Montserrat", sans-serif;
    font-size: clamp(22px, 7vw, 34px);
    line-height: 1;
}

.measurement-summary small {
    display: inline-block;
    margin-left: 6px;
    color: var(--muted);
    font-size: 11px;
}

.measurement-body-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin: -6px 0 18px;
}

.measurement-body-grid > div {
    min-width: 0;
    padding: 10px;
    border: 1px solid var(--line);
    background: #0d0f13;
}

.measurement-body-grid span,
.measurement-body-grid small {
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.measurement-body-grid span {
    display: block;
    margin-bottom: 6px;
}

.measurement-body-grid strong {
    margin-right: 4px;
    font-family: "Montserrat", sans-serif;
    font-size: 18px;
    line-height: 1;
}

.measurement-chart-wrap {
    position: relative;
    width: 100%;
    height: 280px;
}

.panel-head-actions {
    display: flex;
    align-items: center;
    gap: 7px;
}

.measurement-detail-list {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.measurement-record {
    border: 1px solid var(--line);
    background: #111318;
}

.measurement-record__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 48px;
    padding: 7px 10px;
    border-bottom: 1px solid var(--line);
}

.measurement-record__head time {
    color: var(--text);
    font-weight: 900;
}

.measurement-record__head time i {
    margin-right: 7px;
    color: var(--muted);
}

.measurement-record__metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    background: var(--line);
}

.measurement-record__metrics > div {
    min-width: 0;
    padding: 11px 9px;
    background: #0d0f13;
}

.measurement-record__metrics span,
.measurement-record__metrics small {
    display: block;
    color: var(--muted);
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
}

.measurement-record__metrics strong {
    display: inline-block;
    margin: 6px 4px 0 0;
    font-family: "Montserrat", sans-serif;
    font-size: 19px;
}

.measurement-record__metrics small {
    display: inline;
}

.measurement-history {
    display: grid;
    gap: 1px;
    margin-top: 18px;
    background: var(--line);
    border: 1px solid var(--line);
}

.measurement-history-row {
    background: #111318;
}

.measurement-history-main {
    display: grid;
    grid-template-columns: 72px repeat(3, minmax(0, 1fr)) 28px;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 8px 12px;
    color: var(--muted);
    font-size: 12px;
}

.measurement-history time,
.measurement-history strong {
    color: var(--text);
}

.measurement-history i {
    text-align: center;
}

.measurement-photo-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    padding: 0 12px 12px;
}

.measurement-photo-grid a {
    display: block;
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border: 1px solid var(--line);
    background: #090a0d;
}

.measurement-photo-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.measurement-photo-grid span {
    position: absolute;
    left: 6px;
    bottom: 6px;
    padding: 3px 7px;
    border: 1px solid rgba(255,255,255,.18);
    background: rgba(0,0,0,.66);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.measurement-history-row {
    position: relative;
}

.measurement-delete-form {
    position: absolute;
    top: 6px;
    right: 6px;
    z-index: 2;
}

.measurement-delete-form .icon-btn {
    width: 34px;
    height: 34px;
}

@media (max-width: 520px) {
    .metric-grid,
    .member-detail-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .measurement-chart-wrap { height: 240px; }
    .measurement-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .measurement-summary > div { padding: 12px 9px; }
    .measurement-body-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .measurement-history-main {
        grid-template-columns: 64px repeat(3, minmax(0, 1fr)) 18px;
        gap: 6px;
        padding: 8px;
        font-size: 10px;
    }
    .measurement-photo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 0 8px 8px; }
    .measurement-record__metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .log-filter {
        grid-template-columns: 1fr;
    }
}

.upcoming-card--cancelled {
    border-color: color-mix(in srgb, var(--danger) 64%, transparent);
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--danger) 18%, transparent), transparent 130px),
        #281a1d;
    box-shadow:
        inset 0 1px 0 color-mix(in srgb, var(--danger) 24%, transparent),
        0 0 0 1px color-mix(in srgb, var(--danger) 12%, transparent);
}

.upcoming-card--trial {
    border-color: rgba(83, 190, 203, .72);
    background: #17272c;
    box-shadow:
        inset 4px 0 0 #53becb,
        inset 0 1px 0 rgba(255,255,255,.1);
}

.upcoming-card--trial.upcoming-card--cancelled {
    background: #2b2615;
    box-shadow:
        inset 4px 0 0 #53becb,
        inset 0 0 0 1px rgba(214, 182, 76, .36);
}

.demo-training-pill {
    display: inline-flex !important;
    align-items: center;
    gap: 5px;
    width: fit-content;
    margin-top: 6px !important;
    padding: 4px 7px;
    border: 1px solid rgba(83, 190, 203, .58);
    background: rgba(83, 190, 203, .14);
    color: #bceff3 !important;
    font-size: 10px !important;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
}

.upcoming-card__top,
.upcoming-card__meta,
.upcoming-card__actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.trainer-avatar {
    display: grid;
    place-items: center;
    width: 54px;
    min-width: 54px;
    height: 54px;
    border: 1px solid rgba(255,255,255,.26);
    border-radius: 999px;
    background:
        radial-gradient(circle at 35% 25%, rgba(255,255,255,.28), transparent 32%),
        #12131a;
    color: var(--text);
    font-family: "Montserrat", "Manrope", sans-serif;
    font-size: 21px;
    font-weight: 700;
    text-transform: uppercase;
}

.upcoming-card__top div:nth-child(2) {
    min-width: 0;
}

.upcoming-card__top strong {
    display: block;
    overflow: hidden;
    color: var(--text);
    font-size: 20px;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.upcoming-card__top span {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 13px;
}

.status-dot {
    margin-left: auto;
    color: var(--muted);
    font-size: 12px;
    white-space: nowrap;
}

.upcoming-card--cancelled .status-dot {
    padding: 7px 10px;
    border: 1px solid color-mix(in srgb, var(--danger) 62%, transparent);
    background: color-mix(in srgb, var(--danger) 16%, transparent);
    color: #ffd7d8;
    font-size: 13px;
    font-weight: 900;
}

.status-dot::before {
    content: "";
    display: inline-block;
    width: 10px;
    height: 10px;
    margin-right: 7px;
    border-radius: 999px;
    background: #ff8a1f;
}

.status-dot--makeup::before {
    background: var(--warm-accent);
}

.status-dot--completed::before {
    background: var(--ok);
}

.status-dot--no_show::before {
    background: #f29a3f;
}

.status-dot--planned::before {
    background: #5794d6;
}

.status-dot--cancelled::before {
    background: var(--danger);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--danger) 18%, transparent);
}

.upcoming-card__meta {
    justify-content: space-between;
    padding: 9px 10px;
    background: #11131d;
}

.upcoming-card--cancelled .upcoming-card__meta {
    background: color-mix(in srgb, var(--danger) 10%, #11131d);
}

.upcoming-card__meta span {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--soft);
    font-weight: 800;
}

.upcoming-card__meta span + span {
    padding-left: 12px;
    border-left: 1px solid var(--line-strong);
}

.upcoming-card__meta i {
    color: var(--muted);
    font-size: 18px;
}

.upcoming-card__actions a,
.upcoming-card__actions button {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    border: 1px solid var(--line-strong);
    background: rgba(255,255,255,.045);
    color: var(--text);
    font-weight: 900;
    font: inherit;
    cursor: pointer;
}

.upcoming-card__actions a.is-danger-action,
.upcoming-card__actions button.is-danger-action {
    color: var(--danger);
    border-color: color-mix(in srgb, var(--danger) 58%, transparent);
    background: color-mix(in srgb, var(--danger) 10%, transparent);
}

.upcoming-card__actions--wrap {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
}

.upcoming-card__actions--wrap a,
.upcoming-card__actions--wrap button {
    min-width: 0;
    min-height: 36px;
    padding: 6px 4px;
    font-size: 12px;
    line-height: 1.15;
}

.upcoming-card__actions--wrap .is-danger-action {
    grid-column: 1 / -1;
}

.note-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    padding: 18px;
    background: rgba(0,0,0,.72);
    backdrop-filter: blur(8px);
}

.note-modal[hidden] {
    display: none;
}

.note-modal__panel {
    width: min(520px, 100%);
    border: 1px solid var(--line-strong);
    background: #0b0b0c;
    box-shadow: 0 24px 80px rgba(0,0,0,.55);
}

.note-modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid var(--line);
}

.note-modal__head strong {
    font-size: 15px;
}

.note-modal__close {
    width: 38px;
    height: 38px;
    border: 1px solid var(--line-strong);
    background: rgba(255,255,255,.05);
    color: var(--text);
    cursor: pointer;
}

.note-modal__body {
    padding: 16px;
    color: var(--text);
    white-space: pre-wrap;
    line-height: 1.55;
}

.confirm-modal__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 0 16px 16px;
}

.confirm-modal__actions .action-btn {
    justify-content: center;
}

.unselected-reminder__panel {
    width: min(460px, 100%);
    border-color: rgba(104, 136, 174, .62);
    box-shadow: 0 24px 80px rgba(0, 0, 0, .68), 0 0 0 1px rgba(104, 136, 174, .12);
}

.unselected-reminder__body {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 2px 12px;
    white-space: normal;
}

.unselected-reminder__body > strong {
    grid-row: 1 / 3;
    color: #dbe9f7;
    font-size: 38px;
    line-height: 1;
}

.unselected-reminder__body p {
    margin: 0;
    font-weight: 800;
}

.unselected-reminder__body span {
    color: var(--muted);
    font-size: 13px;
}

.unselected-reminder__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 0 16px 16px;
}

.unselected-reminder__actions .action-btn {
    justify-content: center;
    text-align: center;
    padding-inline: 10px;
    font-size: 12px;
}

@media (max-width: 380px) {
    .unselected-reminder__actions {
        grid-template-columns: 1fr;
    }
}

.filter-field {
    display: grid;
    gap: 7px;
}

.filter-field span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.member-filter-panel {
    margin-bottom: 12px;
}

.trainer-manage-row {
    padding: 14px;
}

.trainer-member-count {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: max-content;
    margin-top: 6px;
    padding: 5px 8px;
    border: 1px solid var(--line);
    color: var(--soft);
    font-size: 11px;
    font-weight: 900;
}

.trainer-row-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.member-search-form,
.select-search-box {
    display: flex;
    align-items: end;
    gap: 10px;
    margin-bottom: 12px;
    padding: 12px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,.025);
}

.member-search-form .filter-field,
.select-search-box .filter-field {
    flex: 1;
}

.select-search-box {
    margin: -4px 0 14px;
}

.is-native-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.member-live-search {
    position: relative;
    margin: -4px 0 14px;
}

.member-live-results {
    position: absolute;
    z-index: 50;
    right: 0;
    left: 0;
    top: calc(100% + 6px);
    display: grid;
    gap: 4px;
    max-height: min(440px, 62vh);
    overflow-y: auto;
    padding: 8px;
    border: 1px solid var(--line-strong);
    background: #090909;
    box-shadow: 0 18px 50px rgba(0,0,0,.45);
}

.member-live-results[hidden] {
    display: none;
}

.member-live-results button,
.member-live-results p {
    width: 100%;
    margin: 0;
    padding: 10px 12px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,.035);
    color: var(--text);
    text-align: left;
    font-weight: 800;
}

.member-live-results button {
    cursor: pointer;
}

.row-actions {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    margin-left: auto;
}

.row-actions .icon-btn {
    min-width: 38px;
    min-height: 38px;
    padding: 0;
}

.row-actions form {
    margin: 0;
}

.row-actions button.icon-btn {
    font: inherit;
    cursor: pointer;
}

.package-row .row-actions {
    flex: 0 0 auto;
    max-width: 138px;
}

@media (max-width: 430px) {
    .package-row {
        display: grid;
        grid-template-columns: 60px minmax(0, 1fr);
    }

    .package-row .row-actions {
        grid-column: 2;
        justify-content: flex-start;
        max-width: 100%;
        margin: 4px 0 0;
    }
}

.week-switcher {
    display: flex;
    gap: 8px;
    margin: 0 0 12px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.program-week {
    display: grid;
    gap: 12px;
}

.program-day .panel-head h2 {
    min-width: 42px;
    font-size: 36px;
    line-height: 1;
}

.program-date-range { margin-bottom: 12px !important; font-family: "Montserrat", sans-serif; font-size: clamp(24px, 7vw, 38px) !important; line-height: 1 !important; color: var(--text) !important; }
.panel-head .program-day-date { font-family: "Montserrat", sans-serif; font-size: 30px; line-height: 1; font-weight: 800; color: var(--text); }

.is-recently-created { position: relative; border-color: #76a7d8 !important; box-shadow: 0 0 0 2px rgba(118,167,216,.2) !important; }
.is-recently-created::before { content: "Yeni"; position: absolute; z-index: 2; top: 4px; right: 4px; display: inline-flex; width: max-content; padding: 3px 7px; background: #76a7d8; color: #07090d; font-size: 10px; font-weight: 900; text-transform: uppercase; }
.upcoming-card--unselected { border-color: rgba(211,154,114,.7); background: #231d1a; }

.dashboard-chart-modal { position: fixed; inset: 0; width: min(92vw, 680px); max-height: min(88vh, 620px); margin: auto; padding: 18px; border: 1px solid var(--line-strong); background: #101216; color: var(--text); }
.dashboard-chart-modal::backdrop { background: rgba(0,0,0,.78); }
.dashboard-chart-canvas { position: relative; height: 320px; }

.program-day .list-row {
    align-items: flex-start;
}

.program-day .list-row time {
    min-width: 48px;
}

.work-schedule-shell {
    max-width: 1120px;
}

.work-schedule-head {
    align-items: flex-end;
}

.month-switcher {
    display: grid;
    grid-template-columns: 42px minmax(150px, 1fr) 42px;
    align-items: center;
    gap: 8px;
}

.month-switcher strong {
    color: var(--text);
    font-family: "Montserrat", "Manrope", sans-serif;
    font-size: 15px;
    text-align: center;
}

.month-switcher--wide {
    width: min(100%, 420px);
    margin: 0 auto 14px;
}

.schedule-toolbar {
    display: grid;
    grid-template-columns: auto minmax(180px, 1fr) auto;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    padding: 12px;
    border: 1px solid var(--line);
    background: #0d0f12;
}

.schedule-toolbar label {
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.schedule-toolbar select {
    min-width: 0;
}

.work-week-tabs {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(64px, 1fr);
    gap: 7px;
    margin-bottom: 10px;
    overflow-x: auto;
    padding-bottom: 3px;
}

.work-week-tab {
    display: grid;
    place-items: center;
    gap: 3px;
    min-height: 58px;
    padding: 7px 5px;
    border: 1px solid var(--line);
    background: #101216;
    color: var(--muted);
}

.work-week-tab span {
    font-size: 10px;
    font-weight: 800;
}

.work-week-tab strong {
    color: var(--soft);
    font-family: "Montserrat", "Manrope", sans-serif;
    font-size: 14px;
}

.work-week-tab.is-active {
    border-color: rgba(137, 188, 255, .62);
    background: #17202b;
    color: #bcd9ff;
}

.work-week-tab.is-active strong {
    color: #edf5ff;
}

.selected-work-week {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: #dcecff;
}

.selected-work-week i {
    color: #76a7d8;
    font-size: 13px;
}

.selected-work-week strong {
    font-family: "Montserrat", "Manrope", sans-serif;
    font-size: 14px;
}

.work-schedule-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 14px;
    margin-bottom: 12px;
    padding: 0 2px;
}

.work-schedule-legend span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
}

.work-schedule-legend i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #7d8794;
}

.work-schedule-legend .is-free i { background: #79c99e; }
.work-schedule-legend .is-busy i { background: #76a7d8; }
.work-schedule-legend .is-leave i { background: #d3a574; }
.work-schedule-legend .is-off i { background: #747b86; }

.trainer-work-list {
    display: grid;
    gap: 12px;
}

.trainer-work-card {
    overflow: hidden;
    border: 1px solid var(--line-strong);
    background: #0d0f12;
}

.trainer-work-card__head {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: 11px;
    padding: 13px 14px;
    border-bottom: 1px solid var(--line);
    background: #15181e;
}

.trainer-avatar {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    background: #0b0d11;
    color: var(--text);
    font-family: "Montserrat", "Manrope", sans-serif;
    font-size: 17px;
    font-weight: 800;
}

.trainer-work-card__head h2 {
    margin: 0 0 3px;
    color: var(--text);
    font-family: "Montserrat", "Manrope", sans-serif;
    font-size: 17px;
}

.trainer-work-card__head span {
    display: block;
    color: var(--muted);
    font-size: 11px;
}

.weekly-roster-scroll {
    width: 100%;
    overflow: auto;
    overscroll-behavior: contain;
    scrollbar-color: #3b4654 #0a0c0f;
}

.weekly-roster-table {
    width: 100%;
    min-width: 900px;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
    background: #0b0d10;
}

.weekly-roster-table th,
.weekly-roster-table td {
    height: 48px;
    padding: 6px 8px;
    border-right: 1px solid #242932;
    border-bottom: 1px solid #242932;
    text-align: center;
    vertical-align: middle;
}

.weekly-roster-table thead th {
    position: sticky;
    top: 0;
    z-index: 3;
    height: 46px;
    background: #171b21;
    color: var(--text);
    font-family: "Montserrat", "Manrope", sans-serif;
    font-size: 12px;
}

.weekly-roster-table thead th:first-child,
.weekly-roster-table tbody th {
    position: sticky;
    left: 0;
    z-index: 2;
    width: 88px;
    background: #13161b;
    color: #c7cdd5;
    font-family: "Montserrat", "Manrope", sans-serif;
    font-size: 10px;
    white-space: nowrap;
}

.weekly-roster-table thead th:first-child {
    z-index: 4;
}

.weekly-roster-table thead th strong,
.weekly-roster-table thead th span {
    display: block;
}

.weekly-roster-table thead th span {
    margin-top: 2px;
    color: var(--muted);
    font-size: 9px;
}

.roster-cell {
    color: var(--muted);
    font-size: 10px;
}

.roster-cell strong,
.roster-cell small {
    display: block;
}

.roster-cell strong {
    color: var(--text);
    font-size: 11px;
    line-height: 1.25;
}

.roster-cell small {
    margin-top: 2px;
    color: #e8b17d;
    font-size: 8px;
}

.roster-cell--free {
    background: #0d1714;
    color: #83cba4;
}

.roster-cell--reserved {
    background: #192535;
    box-shadow: inset 0 0 0 1px rgba(118, 167, 216, .28);
}

.roster-cell--reserved-outside {
    background: #2a2119;
    box-shadow: inset 0 0 0 1px rgba(211, 165, 116, .34);
}

.roster-cell--leave {
    background: #271f18;
}

.roster-cell--leave strong {
    color: #e7bd8f;
}

.roster-cell--off,
.roster-cell--outside {
    background: #08090b;
    color: #454b54;
}

.roster-cell--outside {
    opacity: .48;
}

.trainer-work-days {
    display: grid;
}

.trainer-work-day {
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr);
    min-height: 76px;
    border-bottom: 1px solid var(--line);
}

.trainer-work-day:last-child {
    border-bottom: 0;
}

.trainer-work-day__date {
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 4px;
    border-right: 1px solid var(--line);
    background: #111318;
}

.trainer-work-day__date strong {
    color: var(--text);
    font-size: 12px;
}

.trainer-work-day__date time {
    color: var(--muted);
    font-family: "Montserrat", "Manrope", sans-serif;
    font-size: 11px;
    font-weight: 800;
}

.trainer-work-day__body {
    display: grid;
    align-content: center;
    gap: 8px;
    min-width: 0;
    padding: 10px 12px;
}

.trainer-work-day__status {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
}

.trainer-work-day__status strong {
    color: var(--soft);
    font-size: 12px;
}

.trainer-work-day__status span {
    color: var(--muted);
    font-size: 10px;
    text-align: right;
}

.free-range-list {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.free-range-list span {
    display: inline-flex;
    padding: 4px 7px;
    border: 1px solid rgba(121, 201, 158, .3);
    border-radius: 999px;
    background: rgba(121, 201, 158, .08);
    color: #a5e4c0;
    font-family: "Montserrat", "Manrope", sans-serif;
    font-size: 10px;
    font-weight: 700;
}

.free-range-list .is-full {
    border-color: rgba(118, 167, 216, .32);
    background: rgba(118, 167, 216, .09);
    color: #a9cbed;
}

.trainer-work-day--leave .trainer-work-day__date {
    background: rgba(211, 165, 116, .1);
}

.trainer-work-day--leave .trainer-work-day__status strong {
    color: #e7bd8f;
}

.trainer-work-day--off,
.trainer-work-day--unset,
.trainer-work-day--outside {
    background: #090a0c;
}

.trainer-work-day--off .trainer-work-day__status strong,
.trainer-work-day--unset .trainer-work-day__status strong,
.trainer-work-day--outside .trainer-work-day__status strong {
    color: #777f8a;
}

.trainer-work-day--outside {
    opacity: .5;
}

.schedule-warning {
    color: #efb87e !important;
    font-size: 10px;
}

.schedule-editor-panel,
.roster-editor-panel,
.leave-editor-panel {
    margin-bottom: 12px;
}

.roster-editor-panel .panel-head > div {
    display: grid;
    gap: 4px;
}

.roster-editor-form {
    display: grid;
    gap: 12px;
}

.weekly-roster-scroll--editor {
    max-height: min(68vh, 720px);
    border: 1px solid var(--line);
}

.weekly-roster-table--editor {
    min-width: 1080px;
}

.weekly-roster-table--editor th,
.weekly-roster-table--editor td {
    height: 48px;
    padding: 4px;
}

.weekly-roster-table--editor td {
    background: #0c0f13;
}

.weekly-roster-table--editor input {
    width: 100%;
    min-width: 0;
    height: 36px;
    padding: 6px 7px;
    border-color: #303640;
    background: #11151a;
    font-size: 11px;
}

.weekly-roster-table--editor input:not(:placeholder-shown) {
    border-color: rgba(118, 167, 216, .58);
    background: #192535;
}

.schedule-editor-panel .panel-head form {
    margin: 0;
}

.text-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #aac8e8;
    font: inherit;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
}

.monthly-schedule-form {
    display: grid;
    gap: 14px;
}

.monthly-workday-list {
    display: grid;
    border: 1px solid var(--line);
}

.monthly-workday {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) minmax(230px, 1fr);
    align-items: center;
    gap: 14px;
    padding: 12px;
    border-bottom: 1px solid var(--line);
    background: #0d0f12;
}

.monthly-workday:last-child {
    border-bottom: 0;
}

.monthly-workday.is-working {
    background: #121920;
}

.monthly-workday__toggle {
    display: flex;
    align-items: center;
    gap: 11px;
}

.monthly-workday__toggle input[type="checkbox"] {
    position: relative;
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    margin: 0;
    appearance: none;
    border: 1px solid #59616d;
    border-radius: 3px;
    background: #090b0e;
    cursor: pointer;
}

.monthly-workday__toggle input[type="checkbox"]:checked {
    border-color: #8db8e3;
    background: #76a7d8;
}

.monthly-workday__toggle input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 2px;
    width: 5px;
    height: 9px;
    border: solid #081019;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.monthly-workday__toggle input[type="checkbox"]:focus-visible {
    outline: 2px solid rgba(141, 184, 227, .7);
    outline-offset: 3px;
}

.monthly-workday__toggle label {
    display: grid;
    gap: 2px;
    cursor: pointer;
}

.monthly-workday__toggle strong {
    font-size: 13px;
}

.monthly-workday__toggle span {
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
}

.monthly-workday.is-working .monthly-workday__toggle span {
    color: #91ddb2;
}

.monthly-workday__times {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.monthly-workday__times label,
.leave-day-form label {
    display: grid;
    gap: 5px;
}

.monthly-workday__times label > span,
.leave-day-form label > span {
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
}

.monthly-workday__times input:disabled {
    opacity: .35;
}

.leave-day-form {
    display: grid;
    grid-template-columns: minmax(140px, .7fr) minmax(220px, 1.3fr) auto;
    align-items: end;
    gap: 10px;
    margin-bottom: 14px;
}

.leave-day-list {
    display: grid;
    border-top: 1px solid var(--line);
}

.leave-day-row {
    display: grid;
    grid-template-columns: 100px minmax(0, 1fr) 42px;
    align-items: center;
    gap: 10px;
    min-height: 54px;
    border-bottom: 1px solid var(--line);
}

.leave-day-row time {
    color: #e7bd8f;
    font-family: "Montserrat", "Manrope", sans-serif;
    font-size: 12px;
    font-weight: 800;
}

.leave-day-row span {
    color: var(--soft);
    font-size: 12px;
}

.leave-day-row form {
    margin: 0;
}

@media (max-width: 640px) {
    .work-schedule-head {
        gap: 14px;
    }

    .work-schedule-head .month-switcher {
        width: 100%;
    }

    .schedule-toolbar {
        grid-template-columns: 1fr auto;
    }

    .schedule-toolbar label {
        grid-column: 1 / -1;
    }

    .schedule-toolbar .action-btn {
        width: auto;
    }

    .trainer-work-day__status {
        display: grid;
        justify-content: stretch;
        gap: 3px;
    }

    .trainer-work-day__status span {
        text-align: left;
    }

    .monthly-workday {
        grid-template-columns: 1fr;
        gap: 9px;
    }

    .leave-day-form {
        grid-template-columns: 1fr;
    }

    .leave-day-form .action-btn {
        width: 100%;
    }
}

.member-calendar-grid {
    display: grid;
    gap: 10px;
}

.member-calendar-grid--hourly {
    gap: 14px;
}

.member-calendar-day {
    display: grid;
    grid-template-columns: 72px 1fr 42px;
    align-items: center;
    gap: 12px;
}

.member-calendar-day > div {
    display: grid;
    place-items: center;
    min-height: 74px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,.03);
}

.member-calendar-day span,
.member-calendar-day small {
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
}

.member-calendar-day strong {
    font-family: "Montserrat", "Manrope", sans-serif;
    font-size: 24px;
}

.member-calendar-day p {
    margin: 0;
    font-weight: 900;
}

.member-calendar-day.has-training {
    border-color: rgba(137, 188, 255, .28);
    background: linear-gradient(135deg, rgba(137,188,255,.1), rgba(255,255,255,.025));
}

.member-calendar-day--hourly {
    display: grid;
    grid-template-columns: 1fr;
}

.member-calendar-day--hourly > div {
    min-height: 0;
    border: 0;
    background: transparent;
    place-items: stretch;
}

.member-calendar-day__head {
    display: grid;
    grid-template-columns: 72px 1fr 42px;
    align-items: center;
    gap: 12px;
}

.member-calendar-day__head > div {
    display: grid;
    place-items: center;
    min-height: 74px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,.03);
}

.hour-density-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin-top: 12px;
}

.hour-density-cell {
    display: grid;
    place-items: center;
    gap: 3px;
    min-height: 48px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,.025);
}

.hour-density-cell span {
    color: var(--muted);
    font-size: 10px;
    font-weight: 900;
}

.hour-density-cell strong {
    font-family: "Montserrat", "Manrope", sans-serif;
    font-size: 18px;
}

.hour-density-cell.has-count {
    border-color: rgba(137,188,255,.35);
    background: rgba(137,188,255,.09);
}

.hour-density-cell.is-mine {
    border-color: rgba(159,240,193,.5);
    box-shadow: inset 0 0 0 1px rgba(159,240,193,.18);
}

.page-head__meta {
    display: block;
    margin-top: 7px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.availability-legend {
    display: flex;
    gap: 8px;
    margin: 0 0 12px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.availability-legend span {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 7px;
    padding: 7px 10px;
    border: 1px solid var(--line);
    background: #121419;
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
}

.availability-legend i { font-size: 8px; }
.availability-legend .is-available i { color: #79c99e; }
.availability-legend .is-busy i { color: #9aa5b5; }
.availability-legend .is-mine i { color: #76a7d8; }

.member-pt-program {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.member-pt-program__day.is-today {
    border-color: rgba(118,167,216,.65);
}

.member-pt-program__day .panel-head > div {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.member-pt-program__day .panel-head h2 { font-size: 20px; }

.member-pt-program__day .panel-head span {
    color: var(--text);
    font-family: "Montserrat", sans-serif;
    font-size: 18px;
    font-weight: 800;
}

.member-pt-program__day .panel-head small {
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
}

.availability-list {
    display: grid;
    gap: 6px;
}

.availability-row {
    display: grid;
    grid-template-columns: minmax(110px, auto) 1fr 18px;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 8px 10px;
    border: 1px solid var(--line);
    background: #101216;
}

.availability-row time {
    color: var(--text);
    font-family: "Montserrat", sans-serif;
    font-size: 12px;
    font-weight: 800;
}

.availability-row strong { font-size: 12px; }

.availability-row > i {
    justify-self: end;
    font-size: 11px;
}

.availability-row--available {
    border-color: rgba(121,201,158,.34);
    background: rgba(121,201,158,.07);
}

.availability-row--available strong,
.availability-row--available > i { color: #91ddb2; }

.availability-row--busy { background: #181b21; }

.availability-row--busy strong,
.availability-row--busy > i { color: #aab3c0; }

.availability-row--mine {
    border-color: rgba(118,167,216,.55);
    background: rgba(118,167,216,.12);
}

.availability-row--mine strong,
.availability-row--mine > i { color: #9cc7f1; }

.availability-row--past,
.availability-row--unavailable { opacity: .48; }

@media (max-width: 720px) {
    .member-pt-program { grid-template-columns: 1fr; }
    .availability-row { grid-template-columns: 116px 1fr 16px; }
}

.os-form {
    display: grid;
    gap: 14px;
}

.os-form p {
    display: grid;
    gap: 8px;
    margin: 0;
}

.os-form p.is-hidden {
    display: none;
}

.password-toggle-wrap {
    position: relative;
    display: block;
}

.password-toggle-wrap input {
    width: 100%;
    padding-right: 48px;
}

.password-toggle-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--muted);
}

.password-toggle-btn:hover {
    border-color: var(--line);
    color: var(--text);
}

.form-actions {
    display: flex;
    gap: 10px;
}

.form-actions > * {
    flex: 1;
}

.balance-stepper {
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    border: 1px solid var(--line);
    background: #050505;
}

.balance-stepper input {
    border: 0;
    text-align: center;
}

.balance-stepper__btn {
    border: 0;
    border-right: 1px solid var(--line);
    background: #111;
    color: var(--text);
    font-size: 20px;
    font-weight: 900;
}

.balance-stepper__btn:last-child {
    border-right: 0;
    border-left: 1px solid var(--line);
}

.os-form label {
    color: var(--soft);
    font-size: 13px;
    font-weight: 800;
}

.os-form input,
.os-form select,
.os-form textarea,
.date-filter input {
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--line-strong);
    border-radius: 0;
    padding: 10px 12px;
    background: #070707;
    color: var(--text);
    outline: none;
}

.os-form input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    display: inline-grid;
    place-items: center;
    width: 46px;
    min-width: 46px;
    height: 46px;
    min-height: 46px;
    padding: 0;
    border: 1px solid var(--line-strong);
    background:
        linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.02)),
        #080808;
    cursor: pointer;
    transition: border-color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease;
}

.os-form input[type="checkbox"]::before {
    content: "";
    width: 16px;
    height: 9px;
    border-left: 3px solid #050505;
    border-bottom: 3px solid #050505;
    opacity: 0;
    transform: rotate(-45deg) translate(1px, -1px) scale(.8);
    transition: opacity .18s ease, transform .18s ease;
}

.os-form input[type="checkbox"]:checked {
    border-color: var(--accent);
    background: var(--accent);
    box-shadow: 0 0 0 4px rgba(255,255,255,.08);
}

.os-form input[type="checkbox"]:checked::before {
    opacity: 1;
    transform: rotate(-45deg) translate(1px, -1px) scale(1);
}

.os-form input[type="checkbox"]:hover {
    transform: translateY(-1px);
    border-color: var(--accent);
}

.os-form .date-input,
.report-filter .date-input,
.date-filter .date-input {
    padding-right: 42px;
    background-image: linear-gradient(transparent, transparent), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23f5f5f5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 2v4'/%3E%3Cpath d='M16 2v4'/%3E%3Crect width='18' height='18' x='3' y='4' rx='2'/%3E%3Cpath d='M3 10h18'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 13px center;
    background-size: 18px;
}

.os-form textarea {
    resize: vertical;
}

.os-form input:focus,
.os-form select:focus,
.os-form textarea:focus,
.date-filter input:focus {
    border-color: var(--accent);
}

.errorlist {
    margin: 0;
    padding: 0;
    color: var(--danger);
    list-style: none;
    font-size: 13px;
}

.message-stack {
    display: grid;
    gap: 8px;
    margin-bottom: 14px;
}

.message {
    padding: 12px 14px;
    border: 1px solid var(--line-strong);
    background: #111;
    font-weight: 700;
}

.date-filter {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    margin-bottom: 12px;
}

.date-filter__button {
    min-width: 118px;
}

.report-filter {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 8px;
    margin-bottom: 12px;
}

.report-filter input,
.report-filter select {
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--line-strong);
    padding: 10px 12px;
    background: #070707;
    color: var(--text);
    outline: none;
}

.report-filter select {
    appearance: none;
    padding-right: 38px;
    cursor: pointer;
    font-weight: 800;
    background-image: linear-gradient(transparent, transparent), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23f5f5f5' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 18px;
}

.report-filter select option {
    background: #111;
    color: #f5f5f5;
}

.report-metrics .metric-card:nth-child(3) strong {
    color: var(--ok);
}

.report-list {
    margin-top: 14px;
}

.report-table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.report-table {
    width: 100%;
    min-width: 680px;
    border-collapse: separate;
    border-spacing: 0;
    color: var(--text);
    font-size: 13px;
}

.report-table th,
.report-table td {
    padding: 10px 12px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.report-table th {
    background: rgba(174,184,201,.12);
    color: #eef3fb;
    font-size: 12px;
    font-weight: 900;
}

.report-table td {
    background: rgba(255,255,255,.025);
}

.report-table a {
    color: #eef3fb;
    font-weight: 900;
}

.report-table small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 11px;
}

.report-table--sales {
    min-width: 860px;
}

.report-table--outstanding {
    min-width: 980px;
}

.report-table--expenses {
    min-width: 900px;
}

.report-table--expenses th:nth-child(4),
.report-table--expenses td:nth-child(4) {
    width: 34%;
}

.expense-report-filter {
    grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
}

.expense-report-metrics .metric-card small {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    font-size: 11px;
}

.expense-category-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.expense-category-pill {
    display: inline-flex;
    padding: 5px 8px;
    border: 1px solid rgba(137, 188, 255, .3);
    background: rgba(137, 188, 255, .09);
    color: #d9e8ff;
    font-size: 11px;
    font-weight: 900;
    white-space: nowrap;
}

.expense-note-cell {
    color: #c7d0dd;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.expense-amount {
    color: #ffcf86;
    white-space: nowrap;
}

.expense-row-actions {
    flex-wrap: nowrap;
}

@media (max-width: 760px) {
    .expense-report-filter {
        grid-template-columns: 1fr;
    }

    .report-table-wrap--expenses {
        overflow: visible;
    }

    .report-table--expenses {
        display: block;
        min-width: 0;
        border: 0;
    }

    .report-table--expenses thead {
        display: none;
    }

    .report-table--expenses tbody {
        display: grid;
        gap: 10px;
    }

    .report-table--expenses tr {
        display: grid;
        overflow: hidden;
        border: 1px solid var(--line-strong);
        background: rgba(255, 255, 255, .025);
    }

    .report-table--expenses td,
    .report-table--expenses td:nth-child(4) {
        display: grid;
        grid-template-columns: minmax(88px, 34%) minmax(0, 1fr);
        gap: 10px;
        width: auto;
        padding: 10px 12px;
        border-right: 0;
        overflow-wrap: anywhere;
    }

    .report-table--expenses td::before {
        content: attr(data-label);
        color: var(--muted);
        font-size: 10px;
        font-weight: 900;
        line-height: 1.4;
        text-transform: uppercase;
    }

    .report-table--expenses .expense-note-cell {
        grid-template-columns: 1fr;
        gap: 6px;
        padding-block: 12px;
        background: rgba(137, 188, 255, .045);
    }

    .report-table--expenses .expense-row-actions {
        justify-content: flex-start;
    }

    .report-table--expenses .expense-category-pill {
        max-width: 100%;
        white-space: normal;
    }

    .report-table--expenses .expense-empty-row td {
        display: block;
    }

    .report-table--expenses .expense-empty-row td::before {
        content: none;
    }
}

.outstanding-amount {
    color: #ffb9bc;
    white-space: nowrap;
}

.debt-age-pill {
    display: inline-flex;
    padding: 5px 8px;
    border: 1px solid rgba(255, 191, 87, .38);
    background: rgba(255, 191, 87, .11);
    color: #ffe0a6;
    font-size: 11px;
    font-weight: 900;
    white-space: nowrap;
}

.outstanding-row--expired td {
    background: rgba(142, 158, 181, .07);
}

.report-table--collection {
    min-width: 0;
    table-layout: fixed;
}

.report-table--collection th:first-child,
.report-table--collection td:first-child {
    width: 58%;
}

.report-table--collection th:last-child,
.report-table--collection td:last-child {
    width: 42%;
    border-right: 0;
    text-align: right;
    white-space: nowrap;
}

.schedule-table {
    position: relative;
}

.training-history-filter {
    grid-template-columns: 1fr 1fr auto auto;
}

.daily-report-panel {
    scroll-margin-top: 88px;
}

.training-history-list {
    display: grid;
    gap: 6px;
}

.training-history-item {
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-height: 68px;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-left: 3px solid var(--line-strong);
    background: #111317;
}

.training-history-item--completed { border-left-color: #65c98f; }
.training-history-item--no_show { border-left-color: #e18f63; }
.training-history-item--makeup { border-left-color: #76a7d8; }
.training-history-item--cancelled { border-left-color: #d5ad58; }
.training-history-item--unselected { border-left-color: #b89a82; }
.training-history-item--planned { border-left-color: #76a7d8; }

.training-history-date {
    display: grid;
    gap: 3px;
    padding-right: 9px;
    border-right: 1px solid var(--line);
}

.training-history-date strong {
    color: var(--text);
    font-family: "Montserrat", sans-serif;
    font-size: 16px;
    line-height: 1;
}

.training-history-date span {
    color: var(--muted);
    font-size: 9px;
    font-weight: 800;
    white-space: nowrap;
}

.training-history-summary {
    min-width: 0;
}

.training-history-summary > strong,
.training-history-summary > small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.training-history-summary > strong {
    color: var(--text);
    font-size: 14px;
    line-height: 1.2;
}

.training-history-summary > small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 9px;
}

.training-history-summary > small i {
    margin-right: 4px;
    font-size: 8px;
}

.training-history-summary > span {
    display: inline-flex;
    margin-top: 4px;
    color: #b8c2d0;
    font-size: 10px;
    font-weight: 900;
}

.training-history-side {
    display: grid;
    justify-items: end;
    gap: 7px;
}

.training-history-side .status-dot {
    font-size: 10px;
}

.training-history-actions {
    display: flex;
    justify-content: flex-end;
    gap: 4px;
}

.training-history-actions a,
.training-history-actions button {
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 1px solid var(--line-strong);
    background: #171a20;
    color: var(--text);
    font-size: 10px;
    cursor: pointer;
}

@media (max-width: 420px) {
    .training-history-item {
        grid-template-columns: 62px minmax(0, 1fr) auto;
        gap: 8px;
        min-height: 64px;
        padding: 7px 8px;
    }

    .training-history-date strong { font-size: 15px; }
    .training-history-summary > strong { font-size: 13px; }
}

.schedule-head-scroller {
    position: sticky;
    top: var(--topbar-height, 96px);
    z-index: 30;
    overflow: hidden;
    border: 1px solid var(--line);
    background: #151515;
}

.schedule-board {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x pan-y;
    border: 1px solid var(--line);
    border-top: 0;
    background: #0d0d0d;
}

.schedule-footer-actions {
    margin-top: 12px;
}

.daily-report-panel { margin-top: 12px; }
.daily-report-panel .list-row { min-height: 52px; padding-block: 8px; }

.daily-report-filters {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    margin: 10px 0;
    padding-bottom: 2px;
}

.daily-report-filters .filter-pill {
    flex: 0 0 auto;
}

.daily-report-row {
    border-left: 4px solid transparent;
}

.daily-report-row--completed {
    border-left-color: var(--ok);
    background: rgba(70, 185, 120, .09);
}

.daily-report-row--no_show {
    border-left-color: #f29a3f;
    background: rgba(242, 154, 63, .09);
}

.daily-report-row--planned {
    border-left-color: #5794d6;
    background: rgba(87, 148, 214, .1);
}

.daily-report-row--trial {
    border-right: 3px solid #53becb;
    box-shadow: inset -12px 0 18px -18px #53becb;
}

.daily-report-row--trial.daily-report-row--planned,
.daily-report-row--trial.daily-report-row--unselected {
    background: #14262b;
}

.demo-training-label,
.slot-demo-label {
    color: #80d8e1;
    font-weight: 900;
    text-transform: uppercase;
}

.log-filter {
    grid-template-columns: 1.15fr 1fr 1fr auto;
}

.log-select-field {
    position: relative;
}

.log-select-field span {
    color: #eef3fb;
}

.activity-log-panel {
    display: grid;
    gap: 10px;
}

.activity-log-row {
    display: grid;
    grid-template-columns: 74px 1fr;
    gap: 14px;
    padding: 14px;
    border: 1px solid var(--line);
    background: linear-gradient(135deg, rgba(255,255,255,.055), rgba(255,255,255,.02));
}

.activity-log-row time {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.4;
}

.activity-log-row strong {
    display: block;
    margin-bottom: 4px;
    font-size: 14px;
}

.activity-log-row p {
    margin: 0;
    color: var(--text-soft);
    line-height: 1.5;
}

.activity-log-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.activity-log-links a {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 6px 10px;
    border: 1px solid rgba(255,255,255,.18);
    background: rgba(255,255,255,.08);
    color: var(--text);
    font-size: 12px;
    font-weight: 800;
}

.activity-log-row--member_created {
    border-left: 3px solid rgba(92, 166, 255, .8);
}

.activity-log-row--appointment_created {
    border-left: 3px solid rgba(70, 211, 142, .8);
}

.activity-log-row--package_created {
    border-left: 3px solid rgba(212, 184, 125, .8);
}

.expiring-packages-panel {
    margin-top: 12px;
}

.whatsapp-panel {
    margin-top: 12px;
}

.whatsapp-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 8px;
}

.whatsapp-btn {
    justify-content: center;
    border-color: rgba(69, 190, 113, .55);
    background: rgba(69, 190, 113, .14);
    color: #baf2ce;
}

.whatsapp-btn--payment {
    border-color: rgba(242, 154, 63, .6);
    background: rgba(242, 154, 63, .12);
    color: #ffd4a6;
}

.whatsapp-btn--welcome {
    border-color: rgba(83, 190, 203, .58);
    background: rgba(83, 190, 203, .13);
    color: #c5f4f6;
}

.schedule-head,
.schedule-row {
    display: grid;
    grid-template-columns: 52px repeat(var(--trainer-count, 5), 125px);
    width: max-content;
    min-width: calc(52px + (var(--trainer-count, 5) * 125px));
}

.schedule-head span,
.schedule-head strong,
.schedule-row time,
.slot {
    min-height: 44px;
    padding: 6px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.schedule-head {
    background: #151515;
}

.schedule-head span {
    position: sticky;
    left: 0;
    z-index: 7;
    background: #151515;
}

.schedule-head strong,
.schedule-row time {
    font-size: 12px;
}

.schedule-row time {
    position: sticky;
    left: 0;
    z-index: 3;
    background: #0d0d0d;
    color: var(--muted);
    font-weight: 900;
}

.schedule-row time.has-training {
    border-color: rgba(174,184,201,.44);
    background: rgba(174,184,201,.16);
    color: #eef3fb;
    box-shadow: inset 3px 0 0 var(--warm-accent);
}

.schedule-head strong {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.slot {
    display: grid;
    align-content: center;
    gap: 3px;
    color: var(--muted);
    transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.slot-link {
    display: grid;
    gap: 1px;
    min-height: 100%;
}

.slot-link strong {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
}

.slot-tag {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    flex: 0 0 auto;
    padding: 2px 5px;
    border: 1px solid rgba(160, 184, 214, .45);
    background: rgba(92, 128, 170, .2);
    color: #dce8f8;
    font-size: 9px;
    line-height: 1;
    font-weight: 900;
    text-transform: uppercase;
}

.slot-tag i {
    font-size: 8px;
}

.slot em {
    color: var(--soft);
    font-size: 9px;
    font-style: normal;
}

.slot.is-filled {
    color: var(--text);
    background: #1e1e1e;
    cursor: grab;
}

.slot--cancelled {
    border-color: color-mix(in srgb, var(--danger) 52%, var(--line));
    background: color-mix(in srgb, var(--danger) 13%, #161616);
    box-shadow: inset 4px 0 0 var(--danger);
}

.slot--completed { background: #14251c !important; box-shadow: inset 4px 0 0 #46b978; }
.slot--no_show { background: #2a1719 !important; box-shadow: inset 4px 0 0 #df5b63; }
.slot--makeup { background: #152131 !important; box-shadow: inset 4px 0 0 #5794d6; }
.slot--cancelled { background: #2b2615 !important; box-shadow: inset 4px 0 0 #d6b64c; }

.slot--trial {
    border-color: rgba(83, 190, 203, .8);
}

.slot--trial.slot--planned,
.slot--trial.slot--unselected {
    background: #142d33 !important;
    box-shadow: inset 4px 0 0 #53becb;
}

.slot-demo-label {
    font-size: 8px;
}

.slot--cancelled .slot-link span {
    color: #ffd7d8;
    font-weight: 900;
}

.slot.is-filled:hover {
    border-color: var(--line-strong);
    background: #252a36;
}

.slot--cancelled.is-filled:hover {
    border-color: color-mix(in srgb, var(--danger) 72%, transparent);
    background: color-mix(in srgb, var(--danger) 18%, #202020);
}

.slot.is-dragging {
    transform: scale(.98);
    border-color: var(--accent);
    opacity: .75;
}

.trainer-card {
    padding: 16px;
}

.premium-card {
    position: relative;
    overflow: hidden;
}

.premium-card::before,
.premium-row::before,
.premium-form::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.75), transparent);
}

.trainer-card__top,
.trainer-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.trainer-card__top time {
    font-family: "Montserrat", "Manrope", sans-serif;
    font-size: 24px;
    font-weight: 700;
}

.trainer-card h2 {
    margin: 14px 0 6px;
    font-family: "Montserrat", "Manrope", sans-serif;
    font-size: 24px;
    line-height: 1.05;
}

.trainer-actions {
    margin-top: 14px;
}

.session-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.session-tags span {
    padding: 8px 10px;
    border: 1px solid var(--line-strong);
    background: #0a0a0a;
    color: var(--soft);
    font-size: 12px;
    font-weight: 800;
}

.call-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255,255,255,.28);
    background: linear-gradient(135deg, rgba(255,255,255,.16), rgba(255,255,255,.04));
    color: var(--text);
    font-weight: 800;
}

.call-chip {
    width: 42px;
    height: 42px;
    justify-content: center;
    margin-left: auto;
}

.muscle-picker {
    display: grid;
    grid-template-columns: minmax(150px, 220px) 1fr;
    gap: 18px;
    align-items: center;
    padding: 16px;
    border: 1px solid var(--line);
    background: #070707;
}

.muscle-figure {
    display: grid;
    place-items: center;
    min-height: 286px;
    border: 1px solid rgba(255,255,255,.08);
    background: #0b0b0b;
    overflow: hidden;
}

.body-map-svg {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    padding: 10px;
}

.body-map-svg svg {
    width: min(172px, 100%);
    height: auto;
    max-height: 268px;
    filter: drop-shadow(0 16px 26px rgba(0,0,0,.48));
}

.body-map-svg .cls-1,
.body-map-svg path:not(.cls-2) {
    fill: rgba(255,255,255,.13) !important;
    transition: fill .18s ease, opacity .18s ease, filter .18s ease;
}

.body-map-svg .cls-2 {
    fill: transparent !important;
}

.body-map-svg #gogus,
.body-map-svg #sirt,
.body-map-svg #bacak,
.body-map-svg #omuz,
.body-map-svg #kol,
.body-map-svg #core {
    cursor: pointer;
    pointer-events: auto;
}

.body-map-svg #gogus .cls-1,
.body-map-svg #sirt .cls-1,
.body-map-svg #bacak .cls-1,
.body-map-svg #omuz .cls-1,
.body-map-svg #kol .cls-1,
.body-map-svg #core .cls-1 {
    fill: rgba(255,255,255,.24) !important;
}

.body-map-svg #gogus.is-active .cls-1,
.body-map-svg #sirt.is-active .cls-1,
.body-map-svg #bacak.is-active .cls-1,
.body-map-svg #omuz.is-active .cls-1,
.body-map-svg #kol.is-active .cls-1,
.body-map-svg #core.is-active .cls-1 {
    fill: rgba(255,255,255,.92) !important;
    filter: drop-shadow(0 0 8px rgba(255,255,255,.28));
}

.body-map-svg #gogus.is-active,
.body-map-svg #sirt.is-active,
.body-map-svg #bacak.is-active,
.body-map-svg #omuz.is-active,
.body-map-svg #kol.is-active,
.body-map-svg #core.is-active {
    opacity: 1;
}

.muscle-buttons {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.muscle-buttons button {
    min-height: 42px;
    border: 1px solid var(--line-strong);
    background: #0e0e0e;
    color: var(--soft);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    transition: background .18s ease, color .18s ease, transform .18s ease;
}

.muscle-buttons button.is-active {
    background: var(--accent);
    color: #050505;
}

.trainer-actions a {
    flex: 1;
    display: inline-flex;
    justify-content: center;
    gap: 6px;
    padding: 10px 8px;
    border: 1px solid var(--line-strong);
    font-size: 13px;
    font-weight: 800;
}

.login-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 18px;
}

.login-card {
    width: min(420px, 100%);
    padding: 24px;
}

.login-brand {
    margin-bottom: 28px;
}

.login-brand p {
    width: 100%;
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
}

.note-text {
    margin: 8px 0 0;
    line-height: 1.6;
}

.os-mobile-nav {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 10px;
    z-index: 30;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(64px, 1fr));
    min-height: 66px;
    border: 1px solid var(--line-strong);
    background: rgba(9, 9, 9, 0.92);
    backdrop-filter: blur(18px);
    box-shadow: 0 18px 60px rgba(0,0,0,.62), inset 0 1px 0 rgba(255,255,255,.1);
}

.os-mobile-nav a {
    display: grid;
    place-items: center;
    align-content: center;
    gap: 4px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
}

.os-mobile-nav i {
    font-size: 17px;
}

.os-mobile-nav a.is-active {
    color: var(--text);
    background: rgba(255,255,255,0.08);
}

.date-picker-popover {
    position: fixed;
    z-index: 80;
    padding: 12px;
    border: 1px solid var(--line-strong);
    border-radius: 0;
    background:
        linear-gradient(180deg, rgba(255,255,255,.06), transparent 90px),
        #090909;
    color: var(--text);
    box-shadow: 0 22px 80px rgba(0,0,0,.72), inset 0 1px 0 rgba(255,255,255,.08);
}

.date-picker-popover[hidden] {
    display: none;
}

.date-picker-head {
    display: grid;
    grid-template-columns: 42px 1fr 42px;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.date-picker-head strong {
    text-align: center;
    font-family: "Montserrat", "Manrope", sans-serif;
    font-size: 15px;
    font-weight: 700;
}

.date-picker-head button,
.date-picker-days button {
    border: 1px solid var(--line);
    background: rgba(255,255,255,.045);
    color: var(--text);
    cursor: pointer;
    transition: border-color .18s ease, background .18s ease, color .18s ease, transform .18s ease;
}

.date-picker-head button {
    display: grid;
    place-items: center;
    width: 42px;
    height: 38px;
}

.date-picker-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.date-picker-days span,
.date-picker-days button {
    display: grid;
    place-items: center;
    min-height: 36px;
    font-size: 12px;
    font-weight: 800;
}

.date-picker-days span {
    color: var(--muted);
}

.date-picker-days button:hover,
.date-picker-days button:focus,
.date-picker-head button:hover,
.date-picker-head button:focus {
    border-color: var(--line-strong);
    background: rgba(255,255,255,.12);
    transform: translateY(-1px);
}

.date-picker-days button.is-today {
    border-color: rgba(255,255,255,.55);
}

.date-picker-days button.is-selected {
    border-color: var(--accent);
    background: var(--accent);
    color: #050505;
}

.form-submit-loader {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(5, 7, 9, .9);
    color: var(--text);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, visibility .2s ease;
}

.form-submit-loader__panel {
    display: grid;
    justify-items: center;
    gap: 10px;
}

.form-submit-loader.is-visible {
    opacity: 1;
    visibility: visible;
}

.form-submit-loader__spinner {
    width: 46px;
    height: 46px;
    border: 3px solid rgba(255, 255, 255, .16);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: form-submit-spin .75s linear infinite;
}

.form-submit-loader strong {
    font-family: "Montserrat", sans-serif;
    font-size: 16px;
}

.form-submit-loader small {
    color: var(--muted);
}

@media (min-width: 769px) {
    .form-submit-loader {
        background: rgba(3, 5, 7, .72);
        backdrop-filter: blur(5px);
    }

    .form-submit-loader__panel {
        width: min(340px, calc(100vw - 48px));
        padding: 34px 28px 30px;
        border: 1px solid var(--line-strong);
        background: #0d1014;
        box-shadow: 0 24px 80px rgba(0, 0, 0, .55);
    }
}

@keyframes form-submit-spin {
    to { transform: rotate(360deg); }
}

