/* Catalyst brand: near-black, volt lime, Anton display + Manrope body (from catalystpickleball.com) */
:root {
  --bg: #0a0a0a; --surface: #141416; --surface2: #1c1c1f; --line: #26262a;
  --text: #fafafa; --muted: #b9b9bf; --dim: #6b6b72;
  --volt: #c9f218; --volt-d: #b2d915; --danger: #ff5a5a;
  --display: 'Anton', Impact, 'Arial Narrow', sans-serif;
  --body: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --r: 14px; --safe-b: env(safe-area-inset-bottom, 0px); --safe-t: env(safe-area-inset-top, 0px);
  color-scheme: dark;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); font: 15px/1.5 var(--body); }
body { overscroll-behavior: none; }
a { color: var(--volt); text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
[hidden] { display: none !important; }

#app { max-width: 480px; margin: 0 auto; height: 100dvh; display: flex; flex-direction: column; position: relative; background: var(--bg); }
@media (min-width: 520px) { body { background: #000; } #app { border-left: 1px solid var(--line); border-right: 1px solid var(--line); } }
.scroll { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding-bottom: 24px; }
.pad { padding: 0 18px; margin-top: 18px; }

/* header + tabs */
.top { display: flex; align-items: center; gap: 10px; padding: calc(10px + var(--safe-t)) 14px 10px; border-bottom: 1px solid var(--line); background: rgba(10,10,10,.92); backdrop-filter: blur(12px); }
.top h1 { flex: 1; margin: 0; font: 400 20px/1 var(--display); text-transform: uppercase; letter-spacing: .02em; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brand .logo { width: 36px; height: auto; display: block; margin: 0 2px; }
.iconbtn { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; color: var(--text); position: relative; flex: none; }
.iconbtn:active { background: var(--surface2); }
.iconbtn .dot { position: absolute; top: 7px; right: 7px; width: 8px; height: 8px; border-radius: 50%; background: var(--volt); }
.ic { width: 22px; height: 22px; flex: none; }
.tabs { display: flex; border-top: 1px solid var(--line); background: rgba(10,10,10,.96); padding-bottom: var(--safe-b); }
.tabs a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 9px 0 8px; color: var(--dim); font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.tabs a.on { color: var(--volt); }

/* type */
.display { font: 400 44px/.95 var(--display); text-transform: uppercase; margin: 0 0 12px; letter-spacing: .01em; }
.display em { font-style: normal; color: var(--volt); }
.display.sm { font-size: 36px; } .display.xs { font-size: 28px; margin-bottom: 6px; }
.eyebrow { color: var(--volt); font-size: 11px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; margin: 0 0 6px; display: flex; align-items: center; gap: 6px; }
.eyebrow .ic { width: 14px; height: 14px; }
.lead { color: var(--muted); margin: 0 0 18px; }
.sec { font: 400 18px/1 var(--display); text-transform: uppercase; letter-spacing: .03em; margin: 0 0 12px; }
.sechead { display: flex; justify-content: space-between; align-items: baseline; }
.link { font-size: 13px; font-weight: 700; }
.muted { color: var(--muted); } .small { font-size: 13px; } .center { text-align: center; }
.empty { color: var(--dim); text-align: center; padding: 20px 0; }
.clip { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

/* buttons */
.btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 15px 18px; margin-top: 10px; border-radius: 4px; background: var(--volt); color: #0a0a0a; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; font-size: 13px; border: 1px solid var(--volt); }
.btn:active { background: var(--volt-d); }
.btn.outline { background: transparent; color: var(--text); border-color: rgba(255,255,255,.35); }
.btn.ghost { background: transparent; color: var(--muted); border-color: transparent; }
.btn:disabled { opacity: .45; }
.btn.sm { width: auto; margin: 0; padding: 10px 16px; }
.btn .ic { width: 18px; height: 18px; }
.fab { position: sticky; bottom: 12px; margin: 12px 18px 0 auto; width: max-content; display: flex; align-items: center; gap: 6px; padding: 12px 18px; border-radius: 40px; background: var(--volt); color: #0a0a0a; font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; box-shadow: 0 8px 24px rgba(0,0,0,.5); }
.fab .ic { width: 18px; height: 18px; }

/* welcome */
.hero { position: relative; height: 100dvh; display: flex; flex-direction: column; justify-content: flex-end; }
.hero-img { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,10,10,.2) 0%, rgba(10,10,10,.75) 45%, #0a0a0a 75%), url('https://catalystpickleball.com/wp-content/uploads/2026/07/IMG_7997-scaled.jpg') center 20%/cover, #111; }
.hero-body { position: relative; padding: 24px 22px calc(28px + var(--safe-b)); }
.logo-lg .logo { width: 72px; height: auto; display: block; }
.hero .display { font-size: 64px; }

/* forms */
.form label { display: block; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.form input:not([type=checkbox]):not([type=file]), .form select, .form textarea, .search, select.mini {
  display: block; width: 100%; margin-top: 6px; padding: 13px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; color: var(--text); font: 16px var(--body); text-transform: none; letter-spacing: 0; }
.form input:focus, .form select:focus, .form textarea:focus, .search:focus { outline: none; border-color: var(--volt); }
.opt { color: var(--dim); font-weight: 600; text-transform: none; letter-spacing: 0; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row2 .btn { margin-top: 10px; }
.hint { color: var(--dim); font-size: 13px; margin: -6px 0 12px; }
.err { color: var(--danger); font-size: 14px; min-height: 1em; margin: 4px 0; }
.form label.file { display: flex; align-items: center; gap: 10px; padding: 16px; border: 1px dashed #3a3a40; border-radius: 10px; text-transform: none; letter-spacing: 0; font-size: 14px; color: var(--text); cursor: pointer; }
.form label.file.big { padding: 30px 16px; flex-direction: column; text-align: center; }
.form label.file input { display: none; }
.form label.check { display: flex; gap: 10px; align-items: center; text-transform: none; letter-spacing: 0; font-size: 15px; color: var(--text); }
.steps { display: flex; gap: 6px; padding: 14px 18px 0; } .steps i { flex: 1; height: 3px; background: var(--line); border-radius: 2px; } .steps i.on { background: var(--volt); }
.chips { border: 0; padding: 0; margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.chips legend { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; padding: 0; }
.chips label { margin: 0; } .chips input { display: none; }
.chips span { display: block; padding: 8px 14px; border: 1px solid var(--line); border-radius: 30px; color: var(--muted); font-size: 13px; letter-spacing: 0; }
.chips input:checked + span { background: var(--volt); color: #0a0a0a; border-color: var(--volt); }
.avatar-pick { display: flex !important; flex-direction: column; align-items: center; gap: 8px; cursor: pointer; text-transform: none !important; }
.avatar-pick input { display: none; }
.locart { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; background: rgba(201,242,24,.1); color: var(--volt); margin: 18px 0; }
.locart .ic { width: 40px; height: 40px; }
.okline { display: flex; gap: 8px; align-items: center; color: var(--volt); font-weight: 700; }
.manual { margin-top: 14px; color: var(--muted); } .manual summary { cursor: pointer; padding: 8px 0; font-weight: 700; }

/* cards */
.card { display: flex; gap: 12px; align-items: center; padding: 14px; margin-bottom: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); color: var(--text); }
.card:active { background: var(--surface2); }
.card .body { flex: 1; min-width: 0; }
.card h4 { margin: 0 0 2px; font-size: 15px; font-weight: 800; display: flex; align-items: center; gap: 6px; }
.card p { margin: 0; color: var(--muted); font-size: 13px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tag { display: inline-block; padding: 3px 8px; border-radius: 4px; background: var(--surface2); border: 1px solid var(--line); font-size: 11px; font-weight: 700; color: var(--muted); margin-top: 6px; margin-right: 4px; }
.tags .tag { margin: 0; }
.tag.volt { background: rgba(201,242,24,.12); border-color: rgba(201,242,24,.35); color: var(--volt); }
.game .when { width: 64px; flex: none; text-align: center; border-right: 1px solid var(--line); padding-right: 10px; }
.game .when b { display: block; font: 400 20px/1 var(--display); text-transform: uppercase; color: var(--volt); }
.game .when span { font-size: 12px; color: var(--muted); }
.cicon { width: 42px; height: 42px; border-radius: 10px; background: var(--surface2); display: grid; place-items: center; color: var(--volt); flex: none; }
.dist { font-weight: 800; font-size: 13px; color: var(--volt); white-space: nowrap; }
.ic.fav { width: 14px; height: 14px; color: var(--volt); fill: var(--volt); }
.av { border-radius: 50%; object-fit: cover; flex: none; display: grid; place-items: center; background: linear-gradient(135deg, #2a2a2f, #1a1a1d); border: 1px solid #3a3a40; color: var(--volt); font-weight: 800; }
.rating { text-align: right; } .rating b { display: block; font: 400 22px/1 var(--display); color: var(--volt); } .rating small { color: var(--dim); font-size: 11px; }

.hello { display: flex; justify-content: space-between; align-items: center; }
.hello .display { margin: 0; }
.dupr-pill { border: 1px solid var(--volt); border-radius: 10px; padding: 8px 12px; text-align: center; color: var(--text); }
.dupr-pill small { display: block; font-size: 10px; letter-spacing: .15em; font-weight: 800; color: var(--volt); }
.dupr-pill b { font: 400 24px/1 var(--display); }
.banner { display: flex; gap: 12px; align-items: center; margin: 16px 18px 0; padding: 14px; border-radius: var(--r); background: rgba(201,242,24,.1); border: 1px solid rgba(201,242,24,.3); color: var(--text); }
.banner .ic { color: var(--volt); } .banner b { display: block; font-size: 14px; } .banner span { color: var(--muted); font-size: 13px; }
.banner.muted { background: var(--surface); border-color: var(--line); }
.tipcard { padding: 18px; border-radius: var(--r); background: linear-gradient(135deg, #1a1d0c, #141416 60%); border: 1px solid rgba(201,242,24,.25); }
.tiptext { font-size: 17px; font-weight: 600; margin: 4px 0 10px; line-height: 1.45; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.quick { padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); color: var(--text); display: flex; flex-direction: column; gap: 4px; }
.quick .ic { color: var(--volt); margin-bottom: 4px; } .quick b { font-size: 14px; } .quick span { font-size: 12px; color: var(--muted); }

/* segmented / filters */
.toolbar { display: flex; flex-direction: column; gap: 10px; }
.seg { display: inline-flex; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 3px; }
.seg.wide { display: flex; } .seg.wide button { flex: 1; }
.seg button { padding: 8px 14px; border-radius: 8px; font-weight: 800; font-size: 13px; color: var(--muted); display: flex; align-items: center; justify-content: center; gap: 6px; }
.seg button .ic { width: 16px; height: 16px; }
.seg button.on { background: var(--volt); color: #0a0a0a; }
.search { margin: 0; }
.filters { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
select.mini { width: auto; margin: 0; padding: 8px 10px; font-size: 13px; }
.toggle { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--muted); }
.toggle input { appearance: none; width: 38px; height: 22px; border-radius: 22px; background: var(--line); position: relative; margin: 0; transition: .2s; }
.toggle input::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: .2s; }
.toggle input:checked { background: var(--volt); } .toggle input:checked::after { left: 19px; background: #0a0a0a; }
.chiprow { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.chip { padding: 8px 14px; border: 1px solid var(--line); border-radius: 30px; font-size: 13px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.chip.on { background: var(--volt); color: #0a0a0a; border-color: var(--volt); }

/* map */
.map { height: 300px; margin: 14px 18px 0; border-radius: var(--r); border: 1px solid var(--line); background: #111; z-index: 0; }
.map.sm { height: 180px; margin: 0; border-radius: 0; border: 0; }
.mpin { width: 22px; height: 22px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: #fff; border: 3px solid #0a0a0a; }
.mpin.home { background: var(--volt); }
.mme { width: 16px; height: 16px; border-radius: 50%; background: #4aa3ff; border: 3px solid #fff; box-shadow: 0 0 0 6px rgba(74,163,255,.25); }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: var(--surface2) !important; color: var(--text) !important; }
.leaflet-popup-content { font-family: var(--body); }

/* detail */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0; width: 100%; }
.stats div { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px 6px; text-align: center; }
.stats b { display: block; font: 400 22px/1.1 var(--display); color: var(--volt); text-transform: uppercase; }
.stats span { font-size: 11px; color: var(--dim); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.kv span { color: var(--dim); } .kv b { text-align: right; font-weight: 700; }
.bio { background: var(--surface); border-radius: 10px; padding: 12px 14px; color: var(--muted); margin: 14px 0 4px; width: 100%; text-align: left; }
.profile { display: flex; flex-direction: column; align-items: center; text-align: center; }
.profile .display { margin-top: 12px; }
.hscroll { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.pchip { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 64px; color: var(--text); font-size: 12px; }
.pchip small { color: var(--volt); font-weight: 800; }
.pchip.open .av { width: 52px; height: 52px; border-style: dashed; color: var(--dim); background: none; }
.pchip.open b { color: var(--dim); }

/* learn */
.coach { position: relative; min-height: 260px; display: flex; align-items: flex-end; }
.coach-img { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,10,10,.1), rgba(10,10,10,.85) 65%, #0a0a0a), url('https://catalystpickleball.com/wp-content/uploads/2026/07/IMG_6665.jpg') center 25%/cover, #111; }
.coach-body { position: relative; padding: 70px 18px 0; width: 100%; }
.coach-body p.small { margin: 0 0 10px; }
.progress { height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; } .progress i { display: block; height: 100%; background: var(--volt); }
.lesson { align-items: stretch; padding: 10px; }
.thumb { width: 116px; flex: none; border-radius: 10px; background: #222 center/cover; position: relative; min-height: 84px; display: grid; place-items: center; }
.thumb::before { content: ''; position: absolute; inset: 0; border-radius: inherit; background: rgba(0,0,0,.35); }
.lesson.wide { flex-direction: column; } .lesson.wide .thumb { width: 100%; height: 170px; }
.playic { position: relative; width: 34px; height: 34px; padding: 8px; border-radius: 50%; background: var(--volt); color: #0a0a0a; fill: #0a0a0a; }
.dur { position: absolute; bottom: 6px; right: 6px; font-size: 11px; font-weight: 800; background: rgba(0,0,0,.7); padding: 2px 6px; border-radius: 4px; }
.ic.done { width: 16px; height: 16px; color: var(--volt); }
.tip p { color: var(--text) !important; font-size: 15px !important; margin-bottom: 4px !important; }
.tip { flex-direction: column; align-items: flex-start; } .tip small { color: var(--dim); }
.cta { border-color: rgba(201,242,24,.35); } .cta > .ic { color: var(--volt); }
.player-wrap { aspect-ratio: 16/9; background: #000; }
.player-wrap video, .player-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }
.thumb.big { width: 100%; height: 100%; border-radius: 0; }
.soon { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; }
.points { padding-left: 20px; color: var(--muted); } .points li { margin-bottom: 8px; } .points li::marker { color: var(--volt); font-weight: 800; }

/* profile list */
.list { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 0; margin: 18px; overflow: hidden; }
.li { display: flex; align-items: center; gap: 12px; padding: 15px 16px; border-bottom: 1px solid var(--line); color: var(--text); font-weight: 600; text-align: left; width: 100%; }
.li:last-child { border-bottom: 0; } .li .ic { color: var(--volt); width: 20px; height: 20px; } .li span { flex: 1; } .li small { color: var(--dim); }
.li.danger { color: var(--danger); }

/* chat */
.chat { display: flex; flex-direction: column; gap: 8px; padding: 16px; }
.msg { max-width: 80%; padding: 10px 14px; border-radius: 16px 16px 16px 4px; background: var(--surface2); align-self: flex-start; }
.msg.mine { align-self: flex-end; background: var(--volt); color: #0a0a0a; border-radius: 16px 16px 4px 16px; }
.msg small { display: block; font-size: 10px; opacity: .6; margin-top: 2px; }
.composer { display: flex; gap: 8px; padding: 10px 12px calc(10px + var(--safe-b)); border-top: 1px solid var(--line); }
.composer input { flex: 1; padding: 12px 14px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); color: var(--text); font: 16px var(--body); }

/* sheet + toast */
.sheet-wrap { position: fixed; inset: 0; background: rgba(0,0,0,.6); display: flex; align-items: flex-end; justify-content: center; z-index: 50; }
.sheet { width: 100%; max-width: 480px; background: var(--surface); border-radius: 18px 18px 0 0; padding: 20px 18px calc(20px + var(--safe-b)); border-top: 1px solid var(--line); }
.sheet textarea { width: 100%; padding: 12px; border-radius: 8px; background: var(--bg); border: 1px solid var(--line); color: var(--text); font: 15px var(--body); }
.toast { position: fixed; left: 50%; bottom: calc(90px + var(--safe-b)); transform: translate(-50%, 20px); opacity: 0; background: var(--volt); color: #0a0a0a; font-weight: 800; padding: 12px 18px; border-radius: 30px; transition: .25s; z-index: 60; white-space: nowrap; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(.85) contrast(.9) saturate(.4); }
.card .eyebrow { letter-spacing: .1em; font-size: 10px; margin-bottom: 2px; }
.scroll:has(.chat) { display: flex; flex-direction: column; padding-bottom: 0; }
.chat { flex: 1; justify-content: flex-end; }
.composer { position: sticky; bottom: 0; background: var(--bg); }
.sheet.join { text-align: center; }
.logo-sm .logo { width: 52px; height: auto; margin: 0 auto 8px; display: block; }
.profile .logo-lg .logo { width: 72px; height: auto; display: block; }
.hello .btn.sm { width: auto; }
