.demo-banner { margin:0; padding:10px 20px; background:#fff0dc; color:#784100; font-size:14px; }
.bench-tabs { display:flex; gap:8px; margin:0 0 20px; }
.bench-tabs button { flex:1; padding:12px 4px; border:0; border-radius:12px; background:white; font-weight:800; }
.bench-tabs button[aria-pressed="true"] { color:white; background:#17171b; }
.bench-label, .bench-details label { display:grid; gap:7px; font-size:14px; margin-bottom:14px; }
.bench-label select, .bench-details input, .bench-details select { width:100%; min-width:0; padding:12px; border:1px solid #ddd; border-radius:10px; background:white; font-size:16px; }
.radar-card { padding:20px 12px; border-radius:22px; background:#17171b; color:white; }
.radar-card h2, .radar-card .eyebrow, .radar-card .bench-note { margin-left:8px; margin-right:8px; }
.radar-card .bench-note { color:#c4c4cc; }
#radar svg { width:100%; height:auto; display:block; }
.radar-key { display:flex; flex-wrap:wrap; gap:18px; padding:0 10px; font-weight:800; font-size:14px; color:#ff4b99; }
.radar-key span+span { color:#52d3c0; }
.bench-note { font-size:14px; line-height:1.5; color:#686872; }
.bench-summary { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin:16px 0; }
.bench-summary div { padding:15px; background:white; border-radius:15px; }
.bench-summary span { display:block; color:#686872; font-size:14px; }
.bench-summary strong { font:600 26px Oswald, sans-serif; }
.station-row { width:100%; display:grid; grid-template-columns:1fr auto auto; gap:10px; text-align:left; padding:14px 0; border:0; border-bottom:1px solid #eee; background:transparent; font-size:14px; }
.station-row span:last-child { color:#a90e54; }
.station-row:focus-visible, button:focus-visible { outline:3px solid #39b5a4; outline-offset:3px; }
.bench-space { margin-top:16px; }
.gap-row { display:flex; justify-content:space-between; gap:12px; font-size:14px; padding:9px 0; border-bottom:1px solid #eee; margin:0; }
.gap-row strong { white-space:nowrap; }
.bench-details { margin:16px 0; padding:18px; background:white; border-radius:18px; }
.bench-details summary { cursor:pointer; font-weight:800; margin-bottom:12px; }
.run-row { padding:15px 0; border-bottom:1px solid #eee; }
.run-row strong { font:600 28px Oswald,sans-serif; color:#a90e54; }
.run-row p { margin:5px 0 0; font-size:14px; color:#686872; }
[hidden] { display:none !important; }
:root {
  --pink: #ed1e79;
  --orange: #ef7f1a;
  --yellow: #edb43a;
  --teal: #39b5a4;
  --ink: #17171b;
  --muted: #777780;
  --line: #e9e9ed;
  --surface: #f6f6f8;
  --white: #fff;
  --shadow: 0 16px 40px rgba(23, 23, 27, .08);
}

* { box-sizing: border-box; }
body { margin: 0; background: #e8e8eb; color: var(--ink); font-family: "Nunito", Arial, sans-serif; font-size: 16px; }
button, input, select { font: inherit; }
button { cursor: pointer; }
.app-shell { width: min(100%, 480px); min-height: 100vh; margin: 0 auto; background: var(--surface); position: relative; padding-bottom: 92px; box-shadow: 0 0 60px rgba(0,0,0,.08); }
.topbar { height: 78px; padding: 14px 20px; display: flex; align-items: center; gap: 9px; background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.brand-logo { width: 136px; height: 42px; object-fit: contain; object-position: left center; }
.brand-360 { font: 700 24px/1 "Oswald", sans-serif; letter-spacing: 1px; padding-left: 10px; border-left: 2px solid var(--line); }
.icon-button { margin-left: auto; width: 42px; height: 42px; border: 0; background: var(--surface); border-radius: 50%; display: grid; place-items: center; position: relative; }
.icon-button svg { width: 21px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.notification-dot { position: absolute; width: 9px; height: 9px; border: 2px solid white; border-radius: 50%; background: var(--pink); right: 8px; top: 7px; }
.view { display: none; padding: 24px 20px 10px; }
.view.active { display: block; animation: enter .22s ease-out; }
@keyframes enter { from { opacity: 0; transform: translateY(5px); } }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: "Oswald", sans-serif; }
h1 { margin-bottom: 4px; font-size: 32px; line-height: 1.1; }
h2 { font-size: 23px; line-height: 1.15; }
h3 { font-size: 16px; margin-bottom: 5px; }
.muted { color: var(--muted); margin-bottom: 0; }
.eyebrow, .card-label { margin-bottom: 6px; font-size: 12px; font-weight: 900; letter-spacing: 1.2px; color: var(--pink); }
.welcome-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.avatar { width: 50px; height: 50px; border-radius: 18px; display: grid; place-items: center; color: white; font-weight: 900; background: linear-gradient(135deg, var(--pink), var(--orange)); box-shadow: 0 9px 22px rgba(237,30,121,.25); }
.avatar.large { width: 82px; height: 82px; border-radius: 28px; font-size: 22px; }
.membership-card { background: var(--ink); color: white; border-radius: 25px; padding: 22px; position: relative; overflow: hidden; box-shadow: var(--shadow); }
.membership-card::after { content: ""; width: 160px; height: 160px; position: absolute; right: -66px; top: -62px; border: 20px solid rgba(237,30,121,.65); border-radius: 50%; border-left-color: var(--teal); border-bottom-color: var(--orange); transform: rotate(-22deg); }
.membership-head, .credit-row { display: flex; align-items: flex-start; justify-content: space-between; position: relative; z-index: 1; }
.membership-head h2 { margin-bottom: 20px; font-size: 20px; }
.membership-card .card-label { color: #bdbdc4; }
.status-pill, .time-pill { border-radius: 999px; padding: 7px 11px; font-size: 12px; font-weight: 800; }
.status-pill { background: rgba(57,181,164,.2); color: #6ce1d2; }
.credit-row { justify-content: flex-start; gap: 13px; align-items: center; }
.credit-number strong { font: 700 42px/1 "Oswald", sans-serif; }
.credit-number span { color: #99999f; font-weight: 800; }
.credit-copy { display: flex; flex-direction: column; font-size: 14px; }
.credit-copy span { font-size: 12px; color: #aaaab1; }
.progress-track, .goal-progress { height: 6px; background: #38383d; border-radius: 99px; overflow: hidden; margin: 18px 0 11px; }
.progress-track span { display: block; width: 66.67%; height: 100%; background: linear-gradient(90deg, var(--pink), var(--orange), var(--yellow)); border-radius: inherit; transition: width .25s; }
.text-button, .link-button { border: 0; padding: 6px 0; background: transparent; color: inherit; font-weight: 800; }
.text-button span { color: var(--pink); margin-left: 6px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; margin-top: 27px; }
.section-heading h2 { margin-bottom: 0; }
.section-heading.compact { margin-top: 30px; margin-bottom: 13px; }
.time-pill { color: var(--pink); background: rgba(237,30,121,.1); }
.next-class-card { background: var(--white); padding: 16px; border-radius: 20px; display: flex; align-items: center; gap: 14px; margin-top: 12px; box-shadow: 0 8px 28px rgba(23,23,27,.05); }
.class-date { width: 57px; height: 65px; border-radius: 16px; flex: 0 0 auto; color: white; background: var(--pink); display: grid; place-content: center; text-align: center; }
.class-date span { font: 700 25px/1 "Oswald"; }
.class-date small { font-size: 11px; font-weight: 800; }
.class-info { flex: 1; }
.class-info p { color: var(--muted); font-size: 13px; margin-bottom: 5px; }
.class-info .spots { color: var(--teal); font-weight: 800; margin: 0; }
.spots span { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); }
.more-button { border: 0; background: transparent; font-size: 20px; color: var(--muted); transform: rotate(90deg); }
.link-button { color: var(--pink); }
.metrics-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.metric-card { min-height: 155px; border-radius: 20px; padding: 16px; color: white; }
.pink-card { background: linear-gradient(145deg, #f23d8a, #d81267); }
.teal-card { background: linear-gradient(145deg, #48c6b5, #229986); }
.orange-card { background: linear-gradient(145deg, #f49439, #df6911); }
.metric-icon { opacity: .8; margin-bottom: 17px; }
.metric-card p { font-size: 13px; font-weight: 800; margin-bottom: 5px; }
.metric-card strong { display: block; font: 700 28px/1.1 "Oswald"; }
.metric-card strong small { font-size: 15px; }
.metric-card span { display: block; margin-top: 8px; font-size: 12px; opacity: .85; }
.page-heading { margin-bottom: 23px; }
.page-heading.with-action { display: flex; align-items: center; justify-content: space-between; }
.week-strip { display: grid; grid-template-columns: repeat(5,1fr); gap: 8px; margin-bottom: 18px; }
.week-strip button { border: 0; border-radius: 16px; padding: 10px 6px; background: white; display: flex; flex-direction: column; gap: 5px; color: var(--muted); }
.week-strip strong { font-size: 17px; color: var(--ink); }
.week-strip .selected { background: var(--ink); color: #aaaab1; }
.week-strip .selected strong { color: white; }
.booking-note { padding: 15px; border-left: 4px solid var(--orange); background: #fff6ec; border-radius: 5px 15px 15px 5px; margin-bottom: 18px; }
.booking-note strong, .booking-note span { display: block; }
.booking-note span { font-size: 13px; color: var(--muted); margin-top: 3px; }
.class-list { display: grid; gap: 10px; }
.class-row { background: white; border-radius: 17px; padding: 14px; display: grid; grid-template-columns: 55px 1fr auto; align-items: center; gap: 9px; border: 1px solid transparent; }
.class-row time { font: 700 18px "Oswald"; }
.class-row h3, .class-row p { margin: 0; }
.class-row p { font-size: 12px; color: var(--muted); }
.class-row.booked { border-color: rgba(237,30,121,.25); background: #fffafd; }
.reserve-button { border: 0; color: white; background: var(--pink); border-radius: 11px; padding: 9px 11px; font-size: 12px; font-weight: 900; }
.reserve-button.wait { color: var(--orange); background: #fff0df; max-width: 80px; }
.reserve-button.confirmed { color: var(--pink); background: #ffe6f1; }
.reserve-button[disabled] { opacity: .45; cursor: not-allowed; }
.primary-button { border: 0; border-radius: 12px; padding: 11px 14px; background: var(--pink); color: white; font-weight: 900; box-shadow: 0 8px 20px rgba(237,30,121,.2); }
.primary-button.full { width: 100%; margin-top: 7px; padding: 14px; }
.chart-card, .benchmark-card, .goal-card, .policy-card { background: white; border-radius: 22px; padding: 19px; box-shadow: 0 8px 28px rgba(23,23,27,.04); }
.chart-heading { display: flex; justify-content: space-between; align-items: flex-start; }
.chart-heading p { margin-bottom: 2px; color: var(--muted); }
.chart-heading strong { font: 700 27px "Oswald"; }
.chart-heading > span { color: var(--teal); background: rgba(57,181,164,.12); padding: 6px 9px; border-radius: 10px; font-weight: 900; font-size: 13px; }
.line-chart { width: 100%; height: auto; overflow: visible; margin-top: 8px; }
.line-chart .grid-line { stroke: #ececf0; stroke-width: 1; }
.line-chart .area { fill: url(#area); }
.line-chart .line { fill: none; stroke: var(--pink); stroke-width: 4; stroke-linecap: round; }
.line-chart circle { fill: white; stroke: var(--pink); stroke-width: 4; }
.chart-labels { display: flex; justify-content: space-between; font-size: 10px; font-weight: 900; color: #aaaab1; }
.benchmark-card { margin-top: 13px; display: flex; align-items: center; justify-content: space-between; background: var(--ink); color: white; }
.benchmark-card h2 { margin-bottom: 4px; }
.benchmark-card span { display: block; color: #b9b9bf; font-size: 13px; max-width: 245px; }
.percentile-ring { width: 76px; height: 76px; flex: 0 0 76px; border-radius: 50%; display: grid; place-content: center; text-align: center; border: 7px solid var(--teal); border-left-color: #35353a; }
.percentile-ring strong { font: 700 22px/1 "Oswald"; }
.percentile-ring small { font-size: 10px; }
.records-list { margin-top: 20px; display: grid; gap: 9px; }
.records-list article { background: white; padding: 12px; display: grid; grid-template-columns: 44px 1fr auto; align-items: center; border-radius: 15px; gap: 11px; }
.record-badge { width: 44px; height: 44px; border-radius: 13px; color: white; display: grid; place-items: center; font-weight: 900; font-size: 12px; }
.records-list h3, .records-list p { margin: 0; }
.records-list p { font-size: 12px; color: var(--muted); }
.goal-card { margin-bottom: 13px; }
.goal-top { display: flex; justify-content: space-between; color: var(--pink); font-size: 12px; font-weight: 900; }
.goal-card h2 { margin: 10px 0 4px; }
.goal-card p { color: var(--muted); font-size: 14px; }
.goal-progress { background: #ededf1; margin-bottom: 0; }
.goal-progress span { height: 100%; display: block; background: var(--pink); border-radius: inherit; }
.goal-progress.teal span { background: var(--teal); }
.outline-button { width: 100%; border: 2px dashed #d6d6dc; background: transparent; padding: 15px; border-radius: 17px; color: var(--muted); font-weight: 900; }
.profile-head { text-align: center; display: grid; justify-items: center; margin-bottom: 25px; }
.profile-head h1 { margin-top: 13px; }
.profile-head p { color: var(--muted); }
.profile-menu { background: white; border-radius: 20px; overflow: hidden; }
.profile-menu button { width: 100%; display: flex; justify-content: space-between; border: 0; border-bottom: 1px solid var(--line); background: white; padding: 17px; text-align: left; font-weight: 800; }
.profile-menu button:last-child { border-bottom: 0; }
.profile-menu strong { color: var(--pink); font-size: 20px; }
.policy-card { margin-top: 16px; border-top: 4px solid var(--yellow); }
.policy-card p { color: var(--muted); font-size: 13px; margin: 6px 0 0; }
.bottom-nav { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: min(100%, 480px); height: 78px; z-index: 30; display: grid; grid-template-columns: repeat(5,1fr); background: rgba(255,255,255,.96); border-top: 1px solid var(--line); backdrop-filter: blur(12px); padding-bottom: env(safe-area-inset-bottom); }
.bottom-nav button { border: 0; background: transparent; display: grid; place-content: center; gap: 4px; color: #92929a; }
.bottom-nav span { font-size: 21px; line-height: 1; }
.bottom-nav small { font-size: 11px; font-weight: 800; }
.bottom-nav button.active { color: var(--pink); }
.modal-backdrop { position: fixed; inset: 0; z-index: 50; display: grid; align-items: end; justify-items: center; background: rgba(18,18,21,.5); padding: 15px; }
.modal-backdrop[hidden] { display: none; }
.modal { background: white; width: min(100%, 450px); border-radius: 25px 25px 18px 18px; padding: 24px; position: relative; animation: slideUp .22s ease-out; }
@keyframes slideUp { from { transform: translateY(30px); opacity: 0; } }
.modal-close { position: absolute; right: 17px; top: 14px; border: 0; background: var(--surface); width: 34px; height: 34px; border-radius: 50%; font-size: 23px; }
.modal h2 { margin-bottom: 20px; }
.modal label { display: grid; gap: 7px; font-size: 13px; font-weight: 900; margin-bottom: 14px; }
.modal input, .modal select { width: 100%; border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 13px; color: var(--ink); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.toast { position: fixed; left: 50%; bottom: 92px; transform: translate(-50%,20px); width: calc(min(100%,480px) - 40px); padding: 13px 16px; border-radius: 14px; color: white; background: var(--ink); font-weight: 800; opacity: 0; pointer-events: none; transition: .25s; z-index: 60; box-shadow: var(--shadow); }
.toast.show { opacity: 1; transform: translate(-50%,0); }

@media (min-width: 760px) {
  body { padding: 28px 0; }
  .app-shell { min-height: calc(100vh - 56px); border-radius: 28px; overflow: hidden; }
  .bottom-nav { bottom: 28px; border-radius: 0 0 28px 28px; }
}

@media (max-width: 370px) {
  .view { padding-inline: 15px; }
  .topbar { padding-inline: 15px; }
  .metrics-grid { grid-template-columns: 1fr; }
  .class-row { grid-template-columns: 50px 1fr; }
  .class-row .reserve-button { grid-column: 2; justify-self: start; }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
