/* BMW CCA demo — single stylesheet (site, member portal, back office). No build step. */
@font-face { font-family: Kanit; font-weight: 300; font-display: swap; src: url(../fonts/kanit-latin-300-normal.woff2) format("woff2"); }
@font-face { font-family: Kanit; font-weight: 400; font-display: swap; src: url(../fonts/kanit-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: Kanit; font-weight: 500; font-display: swap; src: url(../fonts/kanit-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: Kanit; font-weight: 600; font-display: swap; src: url(../fonts/kanit-latin-600-normal.woff2) format("woff2"); }

:root {
  --blue: #1c69d4; --blue-600: #1557b0; --blue-800: #0a2a5e; --blue-50: #edf4fe; --blue-100: #d3e4fb;
  --m-light: #5fb3ff; --m-dark: #1d3a8f; --m-red: #e2231a; --navy: #070d1c;
  --ink: #0a0f1c; --ink-2: #384152; --muted: #667085; --line: #e4e7ec; --bg: #ffffff; --panel: #f4f5f7;
  --green: #12805c; --green-50: #e7f6ef; --amber: #a15c00; --amber-50: #fff4e0; --red: #b42318; --red-50: #fdecea;
  --radius: 18px; --radius-sm: 10px; --shadow: 0 1px 2px rgba(10,15,28,.05), 0 12px 32px rgba(10,15,28,.08);
  --mstripe: linear-gradient(90deg, var(--m-light) 0 33.3%, var(--m-dark) 33.3% 66.6%, var(--m-red) 66.6%);
  --font: Kanit, "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-weight: 300; color: var(--ink); background: var(--bg); line-height: 1.55; font-size: 16px; }
h1, h2, h3, h4 { font-weight: 500; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4vw, 3.1rem); } h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); } h3 { font-size: 1.25rem; } h4 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
strong, b { font-weight: 500; }
small, .small { font-size: .875rem; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); font-size: .92em; }
.container { width: min(1200px, 100% - 2.5rem); margin-inline: auto; }
.narrow { width: min(760px, 100% - 2.5rem); margin-inline: auto; }
.stack > * + * { margin-top: 1rem; }
.row { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.grid { display: grid; gap: 1.25rem; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .g3, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }
.section { padding: 4.5rem 0; }
.section.tight { padding: 2.5rem 0; }
.section.alt { background: var(--panel); }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 500; color: var(--blue); margin-bottom: .6rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- demo ribbon ---------- */
.demo-bar { background: #111827; color: #e5e7eb; font-size: .82rem; text-align: center; padding: .4rem 1rem; }
.demo-bar a { color: #93b4ff; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.site-header .bar { display: flex; align-items: center; gap: 2rem; height: 76px; }
.brand { display: flex; align-items: center; gap: .7rem; color: var(--ink); font-weight: 600; letter-spacing: .02em; }
.brand:hover { text-decoration: none; }
.brand img { height: 46px; width: auto; }
.brand .mark { display: inline-flex; align-items: center; gap: .3em; white-space: nowrap; height: 42px; padding: 0 .7rem; border: 2px solid var(--ink); border-radius: 6px; font-size: 1.05rem; background: linear-gradient(90deg, #fff 0 50%, var(--blue-50) 50%); }
.brand .mark b { color: var(--blue); font-weight: 600; }
.nav { display: flex; gap: .3rem; align-items: center; flex: 1; }
.nav > .item { position: relative; }
.nav > .item > a, .nav > .item > button { display: flex; align-items: center; gap: .3rem; padding: .55rem .8rem; border-radius: 8px; color: var(--ink); font: inherit; font-weight: 400; font-size: 1.05rem; background: none; border: 0; cursor: pointer; }
.nav > .item > a:hover, .nav > .item > button:hover, .nav > .item:focus-within > button { background: var(--panel); text-decoration: none; }
.nav .chev { width: 12px; height: 12px; }
.nav .menu { position: absolute; top: calc(100% + 6px); left: 0; min-width: 240px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: .5rem; display: none; }
.nav .item:hover .menu, .nav .item:focus-within .menu { display: block; }
.nav .menu a { display: block; padding: .55rem .75rem; border-radius: 8px; color: var(--ink); }
.nav .menu a:hover { background: var(--blue-50); text-decoration: none; }
.nav .menu a small { display: block; color: var(--muted); }
.header-actions { display: flex; gap: .6rem; align-items: center; }
.icon-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: var(--ink); position: relative; }
.icon-btn:hover { background: var(--panel); text-decoration: none; }
.icon-btn .count { position: absolute; top: 2px; right: 0; background: var(--blue); color: #fff; font-size: .7rem; min-width: 18px; height: 18px; border-radius: 9px; display: grid; place-items: center; padding: 0 4px; }
.menu-toggle { display: none; }
@media (max-width: 980px) {
  .site-header .bar { gap: 1rem; }
  .menu-toggle { display: inline-grid; margin-left: auto; }
  .nav { display: none; position: absolute; top: 76px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 1rem; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav .menu { position: static; display: block; box-shadow: none; border: 0; padding: 0 0 .5rem .75rem; }
  .header-actions .btn { display: none; }
}

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .78rem 1.35rem; border-radius: 10px; font: inherit; font-weight: 500; font-size: 1rem; border: 1.5px solid transparent; cursor: pointer; transition: background .15s, transform .05s; text-decoration: none !important; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-600); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-outline { background: #fff; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--panel); }
.btn-ghost { background: transparent; color: var(--blue); }
.btn-ghost:hover { background: var(--blue-50); }
.btn-light { background: #fff; color: var(--blue-800); }
.btn-danger { background: var(--red); color: #fff; }
.btn-sm { padding: .45rem .85rem; font-size: .9rem; border-radius: 8px; }
.btn-lg { padding: 1rem 1.7rem; font-size: 1.1rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-applepay { background: #000; color: #fff; }
.btn-googlepay { background: #fff; color: #3c4043; border-color: #dadce0; }
.paybtn-row { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.link-btn { background: none; border: 0; padding: 0; color: var(--blue); font: inherit; cursor: pointer; }
.link-btn:hover { text-decoration: underline; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; color: #fff; background: radial-gradient(1200px 500px at 85% 10%, #2f63ea 0%, transparent 60%), linear-gradient(135deg, #0b1d4f 0%, #12307f 50%, #1f4fd1 100%); }
.hero.has-photo { background-size: cover; background-position: center; }
.hero.has-photo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6,14,38,.85) 0%, rgba(6,14,38,.35) 70%); }
.hero .container { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; padding: 5.5rem 0 5rem; }
.hero h1 { font-weight: 500; }
.hero .lead { font-size: 1.2rem; color: #dbe5ff; max-width: 34em; }
.hero .stripes { position: absolute; right: -80px; bottom: -40px; width: 620px; opacity: .18; }
.hero-card { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: 20px; padding: 1.6rem; backdrop-filter: blur(6px); }
.hero-card h3 { color: #fff; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2.2rem; }
.hero-stats div { border-left: 2px solid rgba(255,255,255,.35); padding-left: .9rem; }
.hero-stats b { display: block; font-size: 1.7rem; font-weight: 500; }
.hero-stats span { color: #c5d3ff; font-size: .9rem; }
@media (max-width: 900px) { .hero .container { grid-template-columns: 1fr; padding: 3.5rem 0; } }

.page-head { background: var(--panel); border-bottom: 1px solid var(--line); padding: 2.6rem 0 2.2rem; }
.page-head h1 { font-size: clamp(1.8rem, 3vw, 2.5rem); margin-bottom: .3rem; }
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: .6rem; }

/* ---------- cards ---------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.card.shadow { box-shadow: var(--shadow); border-color: transparent; }
.card.pad-sm { padding: 1rem 1.1rem; }
.card h3 { margin-bottom: .35rem; }
.card-link { display: block; color: inherit; transition: box-shadow .15s, transform .15s; }
.card-link:hover { text-decoration: none; box-shadow: var(--shadow); transform: translateY(-2px); }
.feature .ico { width: 52px; height: 52px; border-radius: 14px; background: var(--blue-50); color: var(--blue); display: grid; place-items: center; margin-bottom: 1rem; }
.feature .ico svg { width: 26px; height: 26px; }
.tile-ico { width: 64px; height: 64px; margin: 0 auto .7rem; color: var(--blue-800); }

/* ---------- pricing ---------- */
.pricing { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
@media (max-width: 900px) { .pricing { grid-template-columns: repeat(2, 1fr); } }
.price-card { border: 1.5px solid var(--line); border-radius: var(--radius); padding: 1.5rem; background: #fff; position: relative; display: flex; flex-direction: column; }
.price-card.featured { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-100); }
.price-card .tag { position: absolute; top: -12px; left: 1.2rem; background: var(--blue); color: #fff; font-size: .75rem; padding: .2rem .6rem; border-radius: 20px; }
.price-card .amt { font-size: 2.3rem; font-weight: 500; }
.price-card .per { color: var(--muted); font-size: .9rem; }
.price-card ul { padding-left: 1.1rem; margin: 1rem 0; color: var(--ink-2); flex: 1; }
label.price-card { cursor: pointer; }
label.price-card input { position: absolute; opacity: 0; }
label.price-card:has(input:checked) { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-100); background: var(--blue-50); }

/* ---------- forms ---------- */
.form { display: grid; gap: 1rem; }
.field label, .label { display: block; font-weight: 400; font-size: .92rem; margin-bottom: .35rem; color: var(--ink-2); }
.field .hint { font-size: .82rem; color: var(--muted); margin-top: .25rem; }
.field .err { font-size: .85rem; color: var(--red); margin-top: .3rem; }
input:not([type]), input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], input[type=date], input[type=datetime-local], input[type=search], select, textarea {
  width: 100%; font: inherit; font-weight: 300; padding: .72rem .85rem; border: 1.5px solid #cfd4dd; border-radius: 10px; background: #fff; color: var(--ink);
}
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-100); }
.has-err input, .has-err select { border-color: var(--red); }
.check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 300; }
.check input { margin-top: .3rem; width: 18px; height: 18px; accent-color: var(--blue); }
.otp-input { font-family: var(--mono) !important; font-size: 1.6rem !important; letter-spacing: .5em; text-align: center; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.4rem 1.4rem; margin: 0; }
legend { font-weight: 500; padding: 0 .4rem; }
.steps { display: flex; gap: .5rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.steps span { padding: .35rem .8rem; border-radius: 20px; background: var(--panel); font-size: .88rem; color: var(--muted); }
.steps span.on { background: var(--blue); color: #fff; }

/* ---------- alerts / badges ---------- */
.flash { padding: .9rem 1.1rem; border-radius: 10px; margin: 1rem 0; border: 1px solid; }
.flash.ok { background: var(--green-50); border-color: #b5e3cc; color: #0b5a40; }
.flash.err { background: var(--red-50); border-color: #f4c2bd; color: #8a1a12; }
.flash.info { background: var(--blue-50); border-color: var(--blue-100); color: var(--blue-800); }
.flash.warn { background: var(--amber-50); border-color: #f5d49c; color: #6e3f00; }
.badge { display: inline-block; font-size: .75rem; font-weight: 500; padding: .18rem .55rem; border-radius: 20px; letter-spacing: .02em; }
.badge-green { background: var(--green-50); color: var(--green); }
.badge-amber { background: var(--amber-50); color: var(--amber); }
.badge-red { background: var(--red-50); color: var(--red); }
.badge-blue { background: var(--blue-50); color: var(--blue); }
.badge-grey { background: #eef0f3; color: #4b5263; }
.pill { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .75rem; border-radius: 20px; background: var(--panel); font-size: .85rem; color: var(--ink-2); }

/* ---------- events ---------- */
.filters { display: flex; gap: .7rem; flex-wrap: wrap; align-items: end; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; }
.filters .field { min-width: 170px; flex: 1; }
.filters .field label { font-size: .8rem; }
.event-list { display: grid; gap: .8rem; }
.event-row { display: grid; grid-template-columns: 84px 1fr auto; gap: 1.2rem; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; color: inherit; }
.event-row:hover { text-decoration: none; box-shadow: var(--shadow); }
.datebox { text-align: center; border-radius: 12px; background: var(--blue-50); color: var(--blue-800); padding: .55rem 0; }
.datebox .m { text-transform: uppercase; font-size: .75rem; letter-spacing: .12em; font-weight: 500; }
.datebox .d { font-size: 1.7rem; font-weight: 500; line-height: 1; }
.datebox .w { font-size: .72rem; color: var(--muted); }
.event-row h3 { margin: 0 0 .2rem; font-size: 1.1rem; }
.event-meta { display: flex; gap: .4rem 1rem; flex-wrap: wrap; color: var(--muted); font-size: .9rem; }
.event-meta svg { width: 15px; height: 15px; vertical-align: -2px; margin-right: .2rem; }
@media (max-width: 640px) { .event-row { grid-template-columns: 64px 1fr; } .event-row .right { grid-column: 1 / -1; } }
.cap-bar { height: 6px; border-radius: 3px; background: #e9ecf2; overflow: hidden; margin-top: .4rem; }
.cap-bar span { display: block; height: 100%; background: var(--blue); }

/* ---------- store ---------- */
.store-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.1rem; }
.product { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.product .art { aspect-ratio: 4 / 3; display: grid; place-items: center; background: linear-gradient(160deg, #f6f8fc, #e6ecf8); color: var(--blue-800); }
.product .art svg { width: 38%; height: 38%; }
.product .body { padding: 1rem 1.1rem 1.1rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.product .name { font-weight: 400; }
.product .prices { display: flex; gap: .5rem; align-items: baseline; }
.product .prices .strike { text-decoration: line-through; color: var(--muted); font-size: .9rem; }
.product .prices .now { font-weight: 500; font-size: 1.1rem; }
.product form { margin-top: auto; }
.chips { display: flex; gap: .5rem; flex-wrap: wrap; }
.chip { padding: .4rem .9rem; border-radius: 20px; border: 1px solid var(--line); color: var(--ink-2); font-size: .9rem; background: #fff; }
.chip.on, .chip:hover { background: var(--ink); color: #fff; border-color: var(--ink); text-decoration: none; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table.t { width: 100%; border-collapse: collapse; font-size: .93rem; }
.t th { text-align: left; font-weight: 500; color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; padding: .75rem .9rem; border-bottom: 1px solid var(--line); background: #fafbfc; white-space: nowrap; }
.t td { padding: .7rem .9rem; border-bottom: 1px solid #eef0f3; vertical-align: middle; }
.t tr:last-child td { border-bottom: 0; }
.t tr:hover td { background: #fafbff; }
.t .num { text-align: right; font-variant-numeric: tabular-nums; }
.t a.rowlink { color: var(--ink); font-weight: 400; }

/* ---------- member portal ---------- */
.acct-hero { background: var(--panel); border-bottom: 1px solid var(--line); }
.acct-hero .container { display: grid; grid-template-columns: auto 1fr auto; gap: 1.6rem; align-items: center; padding: 2rem 0; }
.avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; font-size: 1.4rem; font-weight: 500; }
.kv { display: grid; grid-template-columns: repeat(4, auto); gap: .3rem 2.2rem; }
.kv dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.kv dd { margin: 0 0 .2rem; font-weight: 400; }
@media (max-width: 900px) { .acct-hero .container { grid-template-columns: auto 1fr; } .acct-hero .actions { grid-column: 1 / -1; } .kv { grid-template-columns: repeat(2, auto); } }
.link-col h3 { font-size: 1.15rem; padding-bottom: .6rem; border-bottom: 1px solid var(--line); margin-bottom: .6rem; }
.link-col a.lk { display: flex; gap: .8rem; padding: .6rem .5rem; border-radius: 10px; color: var(--ink); align-items: flex-start; }
.link-col a.lk:hover { background: var(--blue-50); text-decoration: none; }
.link-col a.lk svg { width: 20px; height: 20px; flex: none; color: var(--blue); margin-top: .15rem; }
.link-col a.lk span { display: block; font-size: .86rem; color: var(--muted); }
.link-col .sub { text-transform: uppercase; font-size: .72rem; letter-spacing: .1em; color: var(--muted); margin: .8rem .5rem .2rem; }
.acct-layout { display: grid; grid-template-columns: 240px 1fr; gap: 2rem; padding: 2rem 0 4rem; }
.acct-nav a { display: block; padding: .55rem .8rem; border-radius: 9px; color: var(--ink-2); }
.acct-nav a.on, .acct-nav a:hover { background: var(--blue-50); color: var(--blue-800); text-decoration: none; }
@media (max-width: 860px) { .acct-layout { grid-template-columns: 1fr; } .acct-nav { display: flex; overflow-x: auto; gap: .3rem; } .acct-nav a { white-space: nowrap; } }

/* ---------- digital membership card ---------- */
.member-card { width: min(420px, 100%); aspect-ratio: 1.586; border-radius: 20px; padding: 1.4rem 1.5rem; color: #fff; position: relative; overflow: hidden;
  background: radial-gradient(500px 200px at 100% 0%, rgba(255,255,255,.18), transparent 60%), linear-gradient(135deg, #0b1d4f, #1f4fd1); box-shadow: 0 18px 40px rgba(14,42,115,.35); display: flex; flex-direction: column; }
.member-card.lifetime { background: radial-gradient(500px 200px at 100% 0%, rgba(255,255,255,.22), transparent 60%), linear-gradient(135deg, #1b1b1f, #4a4a52); }
.member-card.lapsed { filter: grayscale(.8); }
.member-card .stripe { position: absolute; right: 0; top: 0; bottom: 0; width: 34px; background: linear-gradient(90deg, #6fa8ff 0 33%, #1f4fd1 33% 66%, #e2231a 66%); opacity: .9; }
.member-card .top { display: flex; justify-content: space-between; align-items: center; padding-right: 30px; }
.member-card .name { font-size: 1.35rem; font-weight: 500; margin-top: auto; }
.member-card .meta { display: flex; gap: 1.6rem; font-size: .85rem; color: #c8d6ff; }
.member-card .meta b { display: block; color: #fff; font-size: 1rem; font-weight: 400; }
.qr-box { background: #fff; padding: 12px; border-radius: 14px; display: inline-block; border: 1px solid var(--line); }
.qr-box svg, .qr-box img { width: 200px; height: 200px; }

/* ---------- payment sheet (mock) ---------- */
.sheet-backdrop { position: fixed; inset: 0; background: rgba(10,14,25,.5); display: none; align-items: flex-end; justify-content: center; z-index: 100; }
.sheet-backdrop.open { display: flex; }
.sheet { width: min(460px, 100%); background: #fff; border-radius: 20px 20px 0 0; padding: 1.3rem 1.5rem 1.8rem; animation: up .22s ease-out; }
@media (min-width: 700px) { .sheet-backdrop { align-items: center; } .sheet { border-radius: 20px; } }
@keyframes up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.sheet .line { display: flex; justify-content: space-between; padding: .55rem 0; border-bottom: 1px solid #eef0f3; }
.sheet .total { font-size: 1.3rem; font-weight: 500; border: 0; }
.sheet .demo-note { font-size: .8rem; color: var(--muted); text-align: center; margin-top: .7rem; }
.sheet .confirm-ico { width: 64px; height: 64px; margin: .5rem auto; border-radius: 50%; display: grid; place-items: center; background: var(--green-50); color: var(--green); }

/* ---------- footer ---------- */
.site-footer { background: #0b1222; color: #b8c1d6; padding: 3.5rem 0 2rem; margin-top: 0; }
.site-footer h4 { color: #fff; font-size: .95rem; }
.site-footer a { color: #b8c1d6; display: block; padding: .2rem 0; font-size: .92rem; }
.site-footer a:hover { color: #fff; }
.site-footer .legal { border-top: 1px solid #1e2a44; margin-top: 2.5rem; padding-top: 1.3rem; font-size: .82rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

/* ---------- back office ---------- */
body.admin { background: #f5f6f8; }
.admin-shell { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.admin-side { background: #0b1222; color: #c7cfdf; padding: 1.2rem .9rem; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.admin-side .brand { color: #fff; margin: .2rem .5rem 1.3rem; }
.admin-side .brand .mark { border-color: #fff; background: transparent; color: #fff; }
.admin-side .brand .mark b { color: #8fb0ff; }
.admin-side .scope { font-size: .78rem; background: #16213a; border-radius: 10px; padding: .6rem .75rem; margin-bottom: 1rem; color: #9fb0d3; }
.admin-side .scope b { color: #fff; display: block; font-size: .85rem; }
.admin-side nav a { display: flex; align-items: center; gap: .7rem; padding: .55rem .75rem; border-radius: 9px; color: #c7cfdf; font-size: .95rem; }
.admin-side nav a svg { width: 18px; height: 18px; opacity: .85; }
.admin-side nav a:hover { background: #16213a; color: #fff; text-decoration: none; }
.admin-side nav a.on { background: var(--blue); color: #fff; }
.admin-side .sep { font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; color: #64708c; margin: 1.1rem .75rem .35rem; }
.admin-main { padding: 1.6rem 2rem 3rem; min-width: 0; }
.admin-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.4rem; flex-wrap: wrap; }
.admin-top h1 { font-size: 1.7rem; margin: 0; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1rem; margin-bottom: 1.4rem; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.15rem; }
.kpi .lbl { font-size: .8rem; color: var(--muted); }
.kpi .val { font-size: 1.85rem; font-weight: 500; line-height: 1.2; font-variant-numeric: tabular-nums; }
.kpi .delta { font-size: .8rem; }
.kpi .delta.up { color: var(--green); } .kpi .delta.down { color: var(--red); }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.3rem; }
.panel > h3 { font-size: 1.05rem; margin-bottom: .9rem; display: flex; justify-content: space-between; align-items: center; }
.tabs { display: flex; gap: .2rem; border-bottom: 1px solid var(--line); margin-bottom: 1.2rem; overflow-x: auto; }
.tabs a { padding: .6rem 1rem; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs a.on { color: var(--ink); border-color: var(--blue); }
.tabs a:hover { text-decoration: none; color: var(--ink); }
.bars { display: grid; gap: .45rem; }
.bars .b { display: grid; grid-template-columns: 160px 1fr 54px; gap: .7rem; align-items: center; font-size: .88rem; }
.bars .b .track { background: #eef1f6; border-radius: 4px; height: 12px; overflow: hidden; }
.bars .b .fill { background: var(--blue); height: 100%; border-radius: 4px; }
.bars .b .n { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.chart svg { width: 100%; height: auto; display: block; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { padding: .55rem 0 .55rem 1.2rem; border-left: 2px solid var(--line); position: relative; font-size: .92rem; }
.timeline li::before { content: ""; position: absolute; left: -6px; top: .95rem; width: 10px; height: 10px; border-radius: 50%; background: var(--blue); }
.seg-count { font-size: 2.4rem; font-weight: 500; color: var(--blue); }
@media (max-width: 960px) { .admin-shell { grid-template-columns: 1fr; } .admin-side { position: static; height: auto; } .admin-main { padding: 1.2rem; } }

.empty { text-align: center; padding: 3rem 1rem; color: var(--muted); }
.mt0 { margin-top: 0; } .mt1 { margin-top: 1rem; } .mt2 { margin-top: 2rem; } .mb0 { margin-bottom: 0; } .mb1 { margin-bottom: 1rem; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
@media print { .site-header, .site-footer, .demo-bar, .no-print { display: none !important; } }

h1 > svg, h2 > svg, h3 > svg, h4 > svg, p > svg, .btn > svg, .pill > svg, .flash > svg, .small > svg, a > svg:only-child:not(.tile-ico svg) { width: 1.1em; height: 1.1em; vertical-align: -.18em; flex: none; }
.icon-btn > svg { width: 24px; height: 24px; }
.site-footer .brand .mark { border-color: #fff; color: #fff; background: transparent; }
.site-footer .brand .mark b { color: #8fb0ff; }
.site-footer .brand { display: inline-flex; padding: 0; }
.tile-ico svg { width: 64px; height: 64px; }

.admin-side form .link-btn { width: 100%; white-space: nowrap; }
.admin-side form .link-btn svg { width: 18px; height: 18px; opacity: .85; }
.link-col a.lk div { min-width: 0; }

/* "Concept" overlay on the club logo (config: concept_overlay). Marks every screen as a prototype. */
.brand-logo { position: relative; display: inline-flex; align-items: center; }
.brand-logo.is-concept { overflow: hidden; border-radius: 6px; }
.concept-stripe { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.concept-stripe span {
  display: block; width: 160%; transform: rotate(-18deg); background: rgba(214, 31, 38, .88); color: #fff;
  text-align: center; font: 600 11px/1.55 var(--font); letter-spacing: .28em; text-transform: uppercase;
  box-shadow: 0 1px 2px rgba(0,0,0,.25);
}
.site-footer .concept-stripe span, .admin-side .concept-stripe span { background: rgba(226, 35, 26, .92); }
@media print { .concept-stripe span { -webkit-print-color-adjust: exact; print-color-adjust: exact; } }
.row > svg { width: 22px; height: 22px; flex: none; color: var(--blue); }


/* =====================================================================
   Editorial refresh (Nov 2026): photo-led public site
   ===================================================================== */
h1, h2 { font-weight: 600; letter-spacing: -.025em; }
h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); }
.eyebrow { color: var(--blue); letter-spacing: .18em; font-size: .74rem; font-weight: 600; display: inline-flex; align-items: center; gap: .6rem; }
.eyebrow::before { content: ""; width: 22px; height: 3px; background: var(--mstripe); border-radius: 2px; }
.section { padding: 5.5rem 0; }
.section.alt { background: #f6f7f9; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 2rem; }
.section-head h2 { margin: 0; max-width: 18em; }
.section-head p { margin: .6rem 0 0; color: var(--muted); max-width: 38em; }
.btn { border-radius: 999px; }
.btn-outline { border-color: #c9ced8; }
.btn-outline:hover { border-color: var(--ink); background: #fff; }
.btn-glass { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.45); backdrop-filter: blur(6px); }
.btn-glass:hover { background: rgba(255,255,255,.22); }
.arrow-link { font-weight: 500; color: var(--ink); display: inline-flex; gap: .4rem; align-items: center; }
.arrow-link::after { content: "→"; transition: transform .15s; }
.arrow-link:hover { text-decoration: none; } .arrow-link:hover::after { transform: translateX(3px); }

/* header: thin M stripe, quieter nav */
.site-header { border-bottom: 1px solid rgba(10,15,28,.07); }
.site-header::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--mstripe); }
.site-header .bar { height: 72px; }
.nav > .item > a, .nav > .item > button { font-size: .98rem; font-weight: 400; color: var(--ink-2); }
.nav .menu { border-radius: 16px; padding: .6rem; }
@media (max-width: 980px) { .nav { top: 72px; } }

/* hero: full-bleed photo slideshow */
.hero.photo-hero { min-height: min(86vh, 780px); display: flex; align-items: flex-end; background: var(--navy); }
.hero-slides { position: absolute; inset: 0; }
.hero-slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; animation: heroFade 28s infinite; transform: scale(1.04); }
.hero-slides img:nth-child(1) { animation-delay: -2s; }
.hero-slides img:nth-child(2) { animation-delay: 5s; }
.hero-slides img:nth-child(3) { animation-delay: 12s; }
.hero-slides img:nth-child(4) { animation-delay: 19s; }
@keyframes heroFade { 0% { opacity: 0; transform: scale(1.08); } 4% { opacity: 1; } 25% { opacity: 1; } 30% { opacity: 0; transform: scale(1); } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .hero-slides img { animation: none; } .hero-slides img:not(:first-child) { display: none; } }
.photo-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(5,10,24,.92) 0%, rgba(5,10,24,.55) 38%, rgba(5,10,24,.1) 70%), linear-gradient(90deg, rgba(5,10,24,.55) 0%, transparent 60%); }
.photo-hero .container { z-index: 1; padding: 7rem 0 3.2rem; grid-template-columns: 1.35fr .8fr; align-items: end; }
.photo-hero h1 { font-size: clamp(2.6rem, 6.2vw, 5.2rem); line-height: .98; letter-spacing: -.035em; margin-bottom: 1.2rem; }
.photo-hero .lead { color: #e1e8f5; font-size: 1.18rem; }
.photo-hero .eyebrow { color: #cfe3ff; } 
.hero-card { background: rgba(10,16,32,.45); border-color: rgba(255,255,255,.2); backdrop-filter: blur(14px); }
.hero-card .thumb { border-radius: 12px; overflow: hidden; aspect-ratio: 16/9; margin-bottom: 1rem; }
.hero-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.hero-stats { border-top: 1px solid rgba(255,255,255,.18); padding-top: 1.4rem; }
.hero-stats div { border-left: 0; padding-left: 0; }
.hero-caption { position: absolute; right: 1.2rem; top: 1rem; z-index: 1; font-size: .75rem; color: rgba(255,255,255,.7); }
@media (max-width: 900px) { .photo-hero .container { grid-template-columns: 1fr; padding: 9rem 0 2.5rem; } .photo-hero { min-height: 0; } }

/* photo page heads */
.page-head.photo { position: relative; overflow: hidden; color: #fff; border: 0; padding: 7.5rem 0 2.8rem; background: var(--navy) var(--ph) center / cover no-repeat; }
.page-head.photo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(5,10,24,.9) 0%, rgba(5,10,24,.45) 55%, rgba(5,10,24,.2) 100%); }
.page-head.photo .container { position: relative; }
.page-head.photo h1 { color: #fff; font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
.page-head.photo .muted, .page-head.photo .crumbs, .page-head.photo .crumbs a, .page-head.photo .event-meta { color: #d6dff0; }
.page-head.photo .event-meta a { color: #fff; text-decoration: underline; }
.page-head.photo.tall { padding-top: 12rem; }

/* event cards (image on top) */
.event-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
@media (max-width: 960px) { .event-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .event-cards { grid-template-columns: 1fr; } }
.event-card { display: flex; flex-direction: column; color: inherit; border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--line); transition: box-shadow .2s, transform .2s; }
.event-card:hover { text-decoration: none; box-shadow: var(--shadow); transform: translateY(-3px); }
.event-card .img { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #dde3ec; }
.event-card .img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.event-card:hover .img img { transform: scale(1.04); }
.event-card .date { position: absolute; left: .9rem; top: .9rem; background: #fff; border-radius: 12px; padding: .35rem .7rem; text-align: center; line-height: 1.05; box-shadow: 0 4px 14px rgba(0,0,0,.18); }
.event-card .date b { display: block; font-size: 1.45rem; font-weight: 600; }
.event-card .date span { font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; color: var(--blue); font-weight: 600; }
.event-card .type { position: absolute; right: .9rem; top: .9rem; background: rgba(10,15,28,.62); color: #fff; backdrop-filter: blur(6px); font-size: .74rem; padding: .25rem .65rem; border-radius: 20px; }
.event-card .body { padding: 1.1rem 1.2rem 1.25rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.event-card h3 { font-size: 1.12rem; margin: 0; }
.event-card .meta { color: var(--muted); font-size: .88rem; }
.event-card .foot { margin-top: auto; padding-top: .6rem; display: flex; justify-content: space-between; align-items: center; font-size: .9rem; }

/* event rows get a photo thumbnail */
.event-row { grid-template-columns: 150px 1fr auto; padding: .7rem 1.2rem .7rem .7rem; border-radius: var(--radius); }
.event-row .thumb { position: relative; height: 104px; border-radius: 12px; overflow: hidden; }
.event-row .thumb img { width: 100%; height: 100%; object-fit: cover; }
.event-row .thumb .datebox { position: absolute; left: .45rem; top: .45rem; background: #fff; padding: .25rem .55rem; border-radius: 9px; box-shadow: 0 3px 10px rgba(0,0,0,.2); }
.event-row .thumb .datebox .d { font-size: 1.25rem; }
.event-row .thumb .datebox .w { display: none; }
@media (max-width: 640px) { .event-row { grid-template-columns: 110px 1fr; } .event-row .thumb { height: 84px; } }

/* experience mosaic */
.mosaic { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 210px; gap: 1rem; }
.mosaic a { position: relative; border-radius: var(--radius); overflow: hidden; color: #fff; display: flex; align-items: flex-end; padding: 1.2rem 1.3rem; }
.mosaic a:hover { text-decoration: none; }
.mosaic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.mosaic a:hover img { transform: scale(1.05); }
.mosaic a::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, rgba(5,10,24,.82), rgba(5,10,24,0) 62%); }
.mosaic .t { position: relative; z-index: 2; }
.mosaic .t b { display: block; font-size: 1.3rem; font-weight: 600; letter-spacing: -.01em; }
.mosaic .t span { font-size: .9rem; color: #d6dff0; }
.mosaic .big { grid-column: span 2; grid-row: span 2; }
.mosaic .big .t b { font-size: 1.9rem; }
.mosaic .wide { grid-column: span 2; }
@media (max-width: 900px) { .mosaic { grid-template-columns: 1fr 1fr; grid-auto-rows: 180px; } }
@media (max-width: 560px) { .mosaic { grid-template-columns: 1fr; } .mosaic .big, .mosaic .wide { grid-column: auto; grid-row: span 1; } }

/* split photo + text */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 4rem; align-items: center; }
.split .pic { border-radius: 24px; overflow: hidden; aspect-ratio: 4 / 3.4; position: relative; }
.split .pic img { width: 100%; height: 100%; object-fit: cover; }
.split .pic .tag { position: absolute; left: 1rem; bottom: 1rem; background: rgba(255,255,255,.92); color: var(--ink); font-size: .8rem; padding: .35rem .75rem; border-radius: 20px; }
.split.flip .pic { order: 2; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 2rem; } .split.flip .pic { order: 0; } }
.benefit-list { display: grid; gap: 1.4rem; margin: 1.8rem 0; }
.benefit-list > div { display: grid; grid-template-columns: 48px 1fr; gap: 1rem; }
.benefit-list .ico { width: 48px; height: 48px; border-radius: 14px; background: var(--blue-50); color: var(--blue); display: grid; place-items: center; }
.benefit-list .ico svg { width: 24px; height: 24px; }
.benefit-list h3 { font-size: 1.1rem; margin-bottom: .2rem; }
.benefit-list p { margin: 0; color: var(--muted); font-size: .95rem; }

/* full-bleed photo band (chapters) */
.photo-band { position: relative; color: #fff; padding: 7rem 0; background: var(--navy) var(--ph) center / cover no-repeat; }
.photo-band::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,10,24,.88) 0%, rgba(5,10,24,.55) 55%, rgba(5,10,24,.25) 100%); }
.photo-band .container { position: relative; }
.photo-band h2 { color: #fff; }
.photo-band p { color: #d6dff0; max-width: 34em; }
.photo-band input { border-color: transparent; }
.photo-band .eyebrow { color: #cfe3ff; }

/* pricing + cards refinement */
.price-card { border-radius: var(--radius); padding: 1.7rem; }
.price-card .amt { font-weight: 600; letter-spacing: -.02em; }
.card { border-radius: var(--radius); }
.feature .ico { border-radius: 14px; }

/* chapter cards with photos */
.chapter-tile { display: grid; grid-template-columns: 72px 1fr; gap: .9rem; align-items: center; color: inherit; padding: .55rem; border-radius: 14px; }
.chapter-tile:hover { background: #fff; box-shadow: var(--shadow); text-decoration: none; }
.chapter-tile img { width: 72px; height: 56px; border-radius: 10px; object-fit: cover; }

/* login split */
.auth-split { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - 110px); }
.auth-split .pic { position: relative; background: var(--navy) var(--ph) center / cover; }
.auth-split .pic::before { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(5,10,24,.85), rgba(5,10,24,.1) 60%); }
.auth-split .pic .q { position: absolute; left: 2.5rem; right: 2.5rem; bottom: 2.5rem; color: #fff; }
.auth-split .pic .q b { font-size: 1.8rem; font-weight: 600; display: block; line-height: 1.15; letter-spacing: -.02em; }
.auth-split .pic .q span { color: #d6dff0; }
.auth-split .form-side { display: flex; align-items: center; justify-content: center; padding: 3rem 1.5rem; }
.auth-split .form-side > div { width: min(420px, 100%); }
@media (max-width: 860px) { .auth-split { grid-template-columns: 1fr; } .auth-split .pic { min-height: 220px; } }

/* member portal header */
.acct-hero { position: relative; background: var(--navy) var(--ph, none) center 60% / cover; color: #fff; border: 0; }
.acct-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,10,24,.92) 0%, rgba(5,10,24,.7) 60%, rgba(5,10,24,.45) 100%); }
.acct-hero .container { position: relative; padding: 2.6rem 0; }
.acct-hero h1, .acct-hero h2 { color: #fff; }
.acct-hero .kv dt, .acct-hero .muted { color: #b9c5dc; }
.acct-hero .btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.acct-hero .badge-grey { background: rgba(255,255,255,.15); color: #fff; }

/* footer */
.site-footer { background: var(--navy); position: relative; padding-top: 4rem; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--mstripe); }
.site-footer .photo-credit { font-size: .78rem; color: #7d89a3; }
.member-card { background: radial-gradient(500px 200px at 100% 0%, rgba(255,255,255,.16), transparent 60%), linear-gradient(135deg, #07122e, #1c4fb0); }
.member-card .stripe { background: linear-gradient(90deg, var(--m-light) 0 33%, var(--m-dark) 33% 66%, var(--m-red) 66%); }

/* back office keeps its denser, squarer controls */
body.admin .btn { border-radius: 10px; }
body.admin .card, body.admin .panel, body.admin .kpi { border-radius: 14px; }
body.admin h1, body.admin h2 { font-weight: 500; letter-spacing: -.01em; }
body.admin .eyebrow::before { display: none; }
@media (max-width: 900px) { .pricing { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .pricing { grid-template-columns: 1fr; }
  label.price-card .amt { font-size: 1.8rem; }
  fieldset { min-width: 0; padding: 1rem; }
  .photo-hero .container { padding: 5.5rem 0 2rem; }
  .hero-stats b { font-size: 1.3rem; }
  .section { padding: 3.5rem 0; }
}
/* invisible bridge over the gap between a nav button and its dropdown, so hover isn't lost on the way down */
.nav .menu::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
@media (max-width: 980px) { .nav .menu::before { display: none; } }

.page-head.photo .eyebrow { color: #cfe3ff; }
