
:root {
  color-scheme: dark;
  --bg: #11100f;
  --surface: #1b1916;
  --surface-raised: #24211c;
  --surface-deep: #151412;
  --text: #f7f2e8;
  --muted: #c7bdac;
  --subtle: #a59a87;
  --gold: #d5a84f;
  --gold-bright: #f1cb76;
  --gold-dim: #785d2d;
  --line: #40382a;
  --success: #80bd91;
  --error: #f09286;
  --radius-card: 18px;
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --ease: cubic-bezier(.2,.7,.2,1);
  font-family: Barlow, system-ui, sans-serif;
  font-size: 16px;
  background: var(--bg);
  color: var(--text);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* { box-sizing: border-box; }
html { min-width: 0; min-height: 100%; scroll-behavior: smooth; background: var(--bg); }
body { min-width: 0; min-height: 100vh; min-height: 100dvh; margin: 0; background: radial-gradient(ellipse at 80% 0%, #34291a 0, transparent 30rem), var(--bg); }
button { color: inherit; font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--gold-bright); outline-offset: 3px; }
button:disabled { cursor: not-allowed; opacity: .55; }
svg { display: block; width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.shell { width: min(100%, 680px); min-height: 100vh; min-height: 100dvh; margin: 0 auto; padding: max(12px, env(safe-area-inset-top)) 20px calc(106px + env(safe-area-inset-bottom)); }
.skip-link { position: fixed; z-index: 20; top: 8px; left: 8px; padding: 12px 16px; border-radius: 8px; background: var(--gold); color: #17130c; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.topbar { min-height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand img { flex: 0 0 44px; width: 44px; height: 44px; border: 1px solid var(--gold-dim); border-radius: 50%; object-fit: cover; }
.brand div { display: grid; gap: 2px; min-width: 0; }
.brand strong { font-size: 17px; letter-spacing: .01em; }
.eyebrow, .kicker { color: var(--muted); font-size: 11px; line-height: 1.25; font-weight: 700; letter-spacing: .13em; }
.icon-button { width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--gold-bright); transition: background 160ms var(--ease), transform 120ms var(--ease); }
.icon-button:active, .gold-button:active, .tab:active, .round-arrow:active { transform: scale(.97); }
.preview-banner { display: flex; align-items: flex-start; gap: 10px; margin: 18px 0 28px; padding: 12px 14px; border: 1px solid #6a512a; border-radius: 12px; background: #221c12; color: #f3ddb0; font-size: 13px; line-height: 1.45; }
.preview-banner strong { color: var(--gold-bright); }
.preview-dot { flex: 0 0 8px; width: 8px; height: 8px; margin-top: 5px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px #d5a84f22; }
.view { display: none; animation: enter 240ms var(--ease) both; }
.view.active { display: block; }
@keyframes enter { from { opacity: .4; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
.hero { position: relative; display: flex; align-items: center; justify-content: space-between; min-height: 202px; overflow: hidden; margin: 0 -20px 20px; padding: 22px 20px; border-top: 1px solid #6d542d; border-bottom: 1px solid var(--line); background: linear-gradient(112deg, #282116 0%, #191714 56%, #11100f 100%); }
.hero::after { position: absolute; top: -42px; right: -55px; width: 235px; height: 235px; border: 1px solid #d5a84f35; border-radius: 50%; content: ""; box-shadow: 0 0 0 12px #d5a84f08, 0 0 0 28px #d5a84f06; }
.hero-copy { position: relative; z-index: 1; }
.kicker { display: inline-flex; align-items: center; gap: 9px; color: var(--gold-bright); }
.line { display: inline-block; width: 24px; height: 1px; background: var(--gold); }
h1, h2, p { margin: 0; }
h1, h2 { font-family: "Barlow Condensed", Impact, sans-serif; font-weight: 700; }
.hero h1 { margin-top: 12px; font-size: clamp(38px, 10vw, 54px); line-height: .92; letter-spacing: -.015em; text-transform: uppercase; }
.hero p { margin-top: 13px; color: var(--muted); font-size: 15px; }
.hero-seal { position: relative; z-index: 1; flex: 0 0 auto; width: 92px; height: 92px; padding: 4px; border: 1px solid var(--gold-dim); border-radius: 50%; background: #090807; box-shadow: 0 0 0 5px #d5a84f13; }
.hero-seal img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.card { border: 1px solid var(--line); border-radius: var(--radius-card); background: linear-gradient(140deg, var(--surface-raised), var(--surface)); }
.membership-card { padding: 18px; }
.card-head, .member-line, .section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.status-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px; border: 1px solid #6e5835; border-radius: 99px; color: #e9d5a8; font-size: 11px; }
.status-pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.member-line { align-items: baseline; margin-top: 15px; font-size: 14px; }
.member-line span { color: var(--gold-bright); font-weight: 600; }
.member-note { margin-top: 9px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.section-block { margin-top: 29px; }
.section-heading { align-items: end; margin-bottom: 13px; }
.section-heading h2, .checkin-copy h2 { margin-top: 3px; font-family: "Barlow Condensed", Impact, sans-serif; font-size: 25px; line-height: 1; text-transform: uppercase; }
.text-button { min-height: 44px; padding: 4px 0 4px 12px; border: 0; background: transparent; color: var(--gold-bright); font-size: 13px; font-weight: 600; white-space: nowrap; }
.class-feature { width: 100%; display: flex; align-items: center; gap: 13px; min-height: 94px; padding: 12px; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(112deg, #292319, #1a1815); text-align: left; transition: border-color 160ms var(--ease), background 160ms var(--ease); }
.class-feature:hover { border-color: var(--gold-dim); background: #2a241a; }
.class-date { flex: 0 0 59px; display: grid; justify-items: center; gap: 0; padding: 8px 4px; border-right: 1px solid var(--line); color: var(--gold-bright); font-family: "Barlow Condensed", Impact, sans-serif; }
.class-date span { font-size: 12px; letter-spacing: .1em; }
.class-date strong { font-size: 22px; line-height: 1.1; }
.class-date small { font-size: 10px; }
.class-info { flex: 1; display: grid; gap: 5px; min-width: 0; }
.class-info strong { overflow: hidden; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.class-info span { color: var(--muted); font-size: 13px; }
.arrow { flex: 0 0 20px; width: 20px; color: var(--gold); }
.checkin-card { display: grid; grid-template-columns: 42px 1fr; gap: 0 12px; align-items: center; margin-top: 24px; padding: 16px; border: 1px solid #6e5429; border-radius: var(--radius-card); background: linear-gradient(118deg, #312719, #1e1a14); }
.checkin-mark { grid-row: span 2; display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid var(--gold-dim); border-radius: 12px; color: var(--gold-bright); }
.checkin-mark svg { width: 22px; height: 22px; }
.checkin-copy .eyebrow { color: var(--gold); }
.checkin-copy h2 { font-size: 24px; }
.checkin-copy p { margin-top: 5px; color: var(--muted); font-size: 12px; line-height: 1.35; }
.gold-button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 0 17px; border: 1px solid var(--gold-bright); border-radius: 12px; background: var(--gold); color: #17130c; font-weight: 700; box-shadow: 0 5px 18px #d5a84f20; transition: background 160ms var(--ease), transform 120ms var(--ease), box-shadow 160ms var(--ease); }
.gold-button:hover { background: var(--gold-bright); box-shadow: 0 7px 22px #d5a84f2a; }
.checkin-card .gold-button { grid-column: 1 / -1; width: 100%; margin-top: 14px; }
.stats-card { position: relative; display: grid; grid-template-columns: 1fr 1px 1fr; align-items: center; min-height: 116px; padding: 17px 16px 31px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.stats-card > div:not(.stat-divider):not(.stat-graphic) { display: grid; gap: 4px; }
.stats-card strong { color: var(--gold-bright); font-family: "Barlow Condensed", Impact, sans-serif; font-size: 32px; line-height: 1; }
.stats-card span { color: var(--muted); font-size: 12px; }
.stat-divider { width: 1px; height: 38px; background: var(--line); }
.stat-graphic { position: absolute; right: 16px; bottom: 13px; left: 16px; height: 13px; display: flex; align-items: end; gap: 5px; opacity: .7; }
.stat-graphic span { flex: 1; height: 2px; border-radius: 2px; background: var(--gold-dim); }
.stat-graphic span:nth-child(3), .stat-graphic span:nth-child(6) { height: 8px; background: var(--gold); }
.stat-graphic span:nth-child(5) { height: 12px; background: var(--gold-bright); }
.preview-tag { padding: 4px 7px; border: 1px solid var(--line); border-radius: 5px; color: var(--subtle); font-size: 9px; font-weight: 700; letter-spacing: .12em; }
.referral-strip { display: flex; align-items: center; gap: 12px; margin-top: 24px; padding: 15px 14px; border: 1px solid var(--line); border-radius: 15px; background: #1b1916; }
.ref-icon { flex: 0 0 39px; width: 39px; height: 39px; display: grid; place-items: center; border: 1px solid var(--gold-dim); border-radius: 12px; color: var(--gold-bright); }
.ref-icon svg { width: 21px; height: 21px; }
.referral-strip > div:nth-child(2) { flex: 1; display: grid; gap: 4px; }
.referral-strip strong { font-size: 14px; }
.referral-strip span { color: var(--muted); font-size: 12px; }
.round-arrow { flex: 0 0 44px; width: 44px; height: 44px; border: 1px solid var(--gold-dim); border-radius: 50%; background: #2b241a; color: var(--gold-bright); font-size: 19px; transition: transform 120ms var(--ease); }
.page-heading { padding: 18px 0 21px; }
.page-heading h1 { margin-top: 11px; font-size: clamp(38px, 10vw, 50px); line-height: .96; text-transform: uppercase; }
.page-heading p { margin-top: 10px; color: var(--muted); font-size: 15px; }
.day-switcher { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; margin: 1px 0 18px; }
.day-button { min-width: 0; min-height: 50px; display: grid; place-content: center; gap: 3px; padding: 5px 2px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--muted); }
.day-button span { font-size: 10px; font-weight: 700; text-align: center; }
.day-button strong { color: var(--text); font-family: "Barlow Condensed", Impact, sans-serif; font-size: 17px; text-align: center; }
.day-button[aria-pressed="true"] { border-color: var(--gold); background: #302516; color: var(--gold-bright); }
.day-button[aria-pressed="true"] strong { color: var(--gold-bright); }
.schedule-list { display: grid; gap: 11px; }
.schedule-card { display: grid; grid-template-columns: 63px 1fr auto; align-items: center; gap: 12px; min-height: 96px; padding: 13px; border: 1px solid var(--line); border-radius: 15px; background: linear-gradient(122deg, #24211c, #1a1815); text-align: left; transition: border-color 160ms var(--ease), transform 120ms var(--ease); }
.schedule-card:hover { border-color: var(--gold-dim); }
.schedule-card:active { transform: scale(.99); }
.schedule-time { padding-right: 9px; border-right: 1px solid var(--line); color: var(--gold-bright); font-family: "Barlow Condensed", Impact, sans-serif; font-size: 20px; font-weight: 700; line-height: 1; text-align: center; }
.schedule-time small { display: block; margin-top: 5px; color: var(--muted); font-family: Barlow, sans-serif; font-size: 10px; font-weight: 500; }
.schedule-detail { display: grid; gap: 5px; min-width: 0; }
.schedule-detail strong { font-size: 14px; line-height: 1.2; }
.schedule-detail span { color: var(--muted); font-size: 12px; }
.free-pill { padding: 4px 6px; border: 1px solid #49684e; border-radius: 5px; color: #9bcea5; font-size: 9px; font-weight: 700; }
.empty-day { padding: 28px 16px; border: 1px dashed var(--line); border-radius: 14px; color: var(--muted); text-align: center; }
.fine-print { margin: 15px 2px 0; color: var(--subtle); font-size: 12px; line-height: 1.45; }
.notice-card { display: flex; align-items: flex-start; gap: 11px; margin-bottom: 18px; padding: 14px; border: 1px solid #67512e; border-radius: 13px; background: #221c12; }
.notice-icon { flex: 0 0 21px; width: 21px; height: 21px; display: grid; place-items: center; border: 1px solid var(--gold); border-radius: 50%; color: var(--gold-bright); font-family: Georgia, serif; font-size: 13px; font-weight: 700; }
.notice-card p { color: var(--muted); font-size: 13px; line-height: 1.45; }
.notice-card strong { color: var(--gold-bright); }
.plan-list { display: grid; gap: 12px; }
.plan-card { min-width: 0; padding: 17px; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(132deg, #24211c, #191714); }
.plan-card.featured { border-color: var(--gold-dim); box-shadow: inset 0 0 0 1px #d5a84f12; }
.plan-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px; }
.plan-head h2 { font-size: 25px; line-height: 1; text-transform: uppercase; }
.plan-price { color: var(--gold-bright); font-family: "Barlow Condensed", Impact, sans-serif; font-size: 27px; font-weight: 700; white-space: nowrap; }
.plan-price small { color: var(--muted); font-family: Barlow, sans-serif; font-size: 12px; font-weight: 400; }
.plan-description { margin-top: 9px; color: var(--muted); font-size: 13px; }
.plan-meta { margin-top: 15px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--subtle); font-size: 12px; }
.plan-card .text-button { margin-top: 5px; padding-left: 0; }
.payment-note { margin-top: 24px; padding: 16px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface-deep); }
.payment-methods { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 12px; }
.payment-methods span { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; }
.payment-methods b { min-width: 35px; padding: 5px 6px; border: 1px solid var(--gold-dim); border-radius: 6px; color: var(--gold-bright); font-size: 10px; text-align: center; }
.payment-note small { display: block; margin-top: 12px; color: var(--subtle); font-size: 12px; }
.profile-banner { position: relative; overflow: hidden; margin: 4px -20px 20px; padding: 30px 20px 26px; border-top: 1px solid var(--gold-dim); border-bottom: 1px solid var(--line); background: linear-gradient(120deg, #292116, #181613 74%); }
.profile-banner img { float: right; width: 84px; height: 84px; margin: 2px 4px 8px 18px; border: 1px solid var(--gold-dim); border-radius: 50%; object-fit: cover; }
.profile-banner h1 { margin-top: 10px; font-size: 42px; line-height: .95; text-transform: uppercase; }
.profile-banner p { max-width: 290px; margin-top: 10px; color: var(--muted); font-size: 14px; line-height: 1.45; }
.profile-list { display: grid; gap: 9px; }
.profile-list button { min-height: 72px; display: flex; align-items: center; gap: 13px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); text-align: left; }
.list-icon { flex: 0 0 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--gold-dim); border-radius: 11px; color: var(--gold-bright); font-family: "Barlow Condensed", Impact, sans-serif; font-size: 15px; }
.profile-list button > span:nth-child(2) { flex: 1; display: grid; gap: 4px; }
.profile-list strong { font-size: 14px; }
.profile-list small { color: var(--muted); font-size: 12px; }
.list-arrow { color: var(--gold); font-size: 20px; }
.profile-foot { display: flex; align-items: center; justify-content: center; gap: 9px; margin-top: 24px; color: var(--subtle); font-size: 12px; letter-spacing: .05em; }
.wolf-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px #d5a84f1d; }
.tabbar { position: fixed; z-index: 10; right: 0; bottom: 0; left: 0; width: min(100%, 680px); display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin: 0 auto; padding: 9px 14px max(11px, env(safe-area-inset-bottom)); border-top: 1px solid #493a23; background: #151310f2; backdrop-filter: blur(14px); }
.tab { min-width: 0; min-height: 54px; display: grid; place-items: center; align-content: center; gap: 4px; border: 0; border-radius: 12px; background: transparent; color: var(--muted); transition: background 160ms var(--ease), color 160ms var(--ease); }
.tab svg { width: 20px; height: 20px; }
.tab span { font-size: 10px; font-weight: 600; }
.tab.active { background: #302719; color: var(--gold-bright); }
.toast { position: fixed; z-index: 30; right: 18px; bottom: calc(88px + env(safe-area-inset-bottom)); left: 18px; width: fit-content; max-width: min(460px, calc(100% - 36px)); margin: auto; padding: 12px 16px; border: 1px solid #746039; border-radius: 12px; background: #252016; color: var(--text); box-shadow: 0 10px 28px #0008; opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity 180ms var(--ease), transform 180ms var(--ease); }
.toast.show { opacity: 1; transform: translateY(0); }
.preview-dialog { width: min(440px, calc(100% - 32px)); padding: 25px; border: 1px solid var(--gold-dim); border-radius: 18px; background: #1a1814; color: var(--text); box-shadow: 0 18px 70px #000b; }
.preview-dialog::backdrop { background: #080706c9; backdrop-filter: blur(3px); }
.preview-dialog form { position: absolute; top: 12px; right: 12px; }
.dialog-close { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: var(--surface-raised); color: var(--text); font-size: 24px; }
.dialog-kicker { display: block; padding-right: 38px; color: var(--gold); font-size: 11px; font-weight: 700; letter-spacing: .13em; }
.preview-dialog h2 { margin-top: 14px; font-size: 32px; line-height: 1; text-transform: uppercase; }
.preview-dialog p { margin-top: 10px; color: var(--muted); font-size: 15px; line-height: 1.5; }
.contact-links { display: grid; gap: 8px; margin-top: 16px; }
.contact-links a { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 13px; border: 1px solid var(--line); border-radius: 10px; color: var(--gold-bright); font-size: 14px; text-decoration: none; }
.contact-links a:hover { border-color: var(--gold-dim); background: #262117; }
.preview-dialog .dialog-action { width: 100%; margin-top: 20px; }

@media (min-width: 700px) {
  .shell { padding-right: 32px; padding-left: 32px; }
  .hero { margin-right: -32px; margin-left: -32px; padding-right: 32px; padding-left: 32px; }
  .profile-banner { margin-right: -32px; margin-left: -32px; padding-right: 32px; padding-left: 32px; }
  .hero-seal { width: 112px; height: 112px; margin-right: 8%; }
  .tabbar { padding-right: 24px; padding-left: 24px; }
  .schedule-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 380px) {
  .shell { padding-right: 15px; padding-left: 15px; }
  .hero, .profile-banner { margin-right: -15px; margin-left: -15px; padding-right: 15px; padding-left: 15px; }
  .hero-seal { width: 72px; height: 72px; }
  .hero h1 { font-size: 39px; }
  .class-feature { gap: 9px; padding: 10px; }
  .checkin-card { padding: 12px; }
}
@media (max-width: 300px) {
  .hero { min-height: 0; }
  .hero h1 { font-size: 36px; }
  .hero-seal { display: none; }
}
@media (orientation: landscape) and (max-height: 540px) {
  .shell { width: min(100%, 980px); padding-bottom: calc(78px + env(safe-area-inset-bottom)); }
  .hero { min-height: 156px; }
  .hero-seal { width: 76px; height: 76px; }
  .tabbar { width: min(100%, 980px); }
  .schedule-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
