:root {
  --bg: #070b12;
  --bg-2: #0b1118;
  --card: #121821;
  --card-2: #171e28;
  --line: #222a36;
  --text: #f2f5fa;
  --muted: #8b93a3;
  --dim: #5d6573;
  --blue: #3d8bff;
  --teal: #2ee6c5;
  --red: #ff5b5b;
  --orange: #ff8a3d;
  --yellow: #f5c542;
  --green: #3dce6e;
  --safe: env(safe-area-inset-bottom, 0px);
  --tab: 72px;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: #05070c; color: var(--text); font-family: Inter, system-ui, sans-serif; }
body { -webkit-font-smoothing: antialiased; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.device { min-height: 100%; display: flex; justify-content: center; align-items: stretch; }
.phone { width: 100%; max-width: 430px; min-height: 100vh; background: var(--bg); position: relative; overflow: hidden; box-shadow: 0 0 0 1px #1a2230; }
@media (min-width: 760px) {
  body { padding: 24px 0; }
  .device { align-items: center; }
  .phone { min-height: 844px; height: 844px; border-radius: 36px; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.55), 0 0 0 10px #11151d; }
}

.screen { min-height: 100%; padding-bottom: calc(var(--tab) + var(--safe) + 8px); overflow: auto; }
.screen--full { padding-bottom: 0; height: 100%; }
.headline { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 18px 18px 0; }
.headline h1 { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: -0.03em; }
.text-btn { height: 36px; padding: 0 12px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); color: var(--text); font-size: 13px; font-weight: 600; }
.text-btn--dark { background: rgba(7,11,18,.7); border-color: rgba(255,255,255,.12); backdrop-filter: blur(6px); }
.loc { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; margin: 6px 18px 12px; }
.search { display: flex; align-items: center; gap: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 11px 12px; color: var(--muted); margin: 0 16px; }
.search input { flex: 1; background: none; border: 0; outline: none; color: var(--text); }
.chips { display: flex; gap: 8px; overflow: auto; padding: 12px 18px 4px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 8px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--muted); font-weight: 600; font-size: 13px; }
.chip.on { background: var(--blue); border-color: var(--blue); color: #fff; }

.list { padding: 8px 16px 16px; display: flex; flex-direction: column; gap: 12px; }
.club { display: grid; grid-template-columns: 92px 1fr; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 10px; text-align: left; width: 100%; }
.cover { height: 92px; border-radius: 14px; position: relative; overflow: hidden; }
.cover.a { background:
  radial-gradient(circle at 20% 80%, rgba(61,139,255,.45), transparent 40%),
  radial-gradient(circle at 80% 20%, rgba(255,90,160,.35), transparent 42%),
  linear-gradient(160deg, #1a2a4a, #0c1422 55%, #2a1540); }
.cover.b { background:
  radial-gradient(circle at 70% 80%, rgba(46,230,197,.35), transparent 40%),
  linear-gradient(160deg, #12332c, #0c1422 50%, #1a2848); }
.cover.c { background:
  radial-gradient(circle at 30% 30%, rgba(255,138,61,.4), transparent 40%),
  linear-gradient(160deg, #3a1a28, #0c1422 50%, #1a2840); }
.cover::before { content: ""; position: absolute; inset: 18% 12% auto 12%; height: 28%; border: 2px solid rgba(255,255,255,.18); border-radius: 4px; box-shadow: 0 0 16px rgba(61,139,255,.35); }
.cover::after { content: ""; position: absolute; left: 18%; right: 18%; top: 52%; height: 8px; border-radius: 4px; background: rgba(61,139,255,.35); }
.cover .badge { position: absolute; top: 8px; right: 8px; font-size: 11px; font-weight: 700; padding: 4px 7px; border-radius: 8px; z-index: 1; }
.badge-24 { background: var(--orange); color: #1a0d00; }
.badge-open { background: #1b3d36; color: var(--teal); }
.club h3 { margin: 2px 0; font-size: 16px; }
.club .addr { color: var(--muted); font-size: 12px; }
.stars { color: var(--text); font-size: 12px; font-weight: 600; margin: 4px 0; }
.stats { display: flex; gap: 12px; margin-top: 8px; font-size: 12px; }
.stats b { font-size: 15px; display: block; }
.stats .occ b { color: var(--red); }
.stats .free b { color: var(--teal); }
.stats span { color: var(--muted); }

.tabbar { position: absolute; left: 0; right: 0; bottom: 0; height: calc(var(--tab) + var(--safe)); padding-bottom: var(--safe); background: #0d131c; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(4, 1fr); z-index: 30; }
.tab { display: flex; align-items: center; justify-content: center; color: var(--dim); font-size: 13px; font-weight: 600; position: relative; }
.tab.on { color: var(--text); }
.tab.on::after { content: ""; position: absolute; top: 0; left: 25%; right: 25%; height: 2px; background: var(--blue); }

.splash { min-height: 100%; background: radial-gradient(120% 80% at 50% 10%, #163057, #070b12 55%); display: flex; flex-direction: column; padding: 28px 22px 32px; }
.splash__art { flex: 1; border-radius: 24px; margin: 18px 0 22px; min-height: 280px; overflow: hidden; border: 1px solid var(--line); background: #0a1424; }
.splash__art img { width: 100%; height: 100%; object-fit: cover; }
.logo-mark { width: 76px; height: 76px; margin: 28px auto 12px; display: grid; place-items: center; color: #9ec4ff; font-weight: 800; font-size: 20px; background: linear-gradient(160deg, #1c2b44, #0e1622); border: 1px solid #2c3b55; clip-path: polygon(50% 0%, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%); }
.splash h1 { text-align: center; margin: 0; font-size: 34px; letter-spacing: .08em; }
.splash h1 small { display: block; font-size: 15px; letter-spacing: 0; color: var(--muted); font-weight: 600; margin-top: 4px; }
.splash p { text-align: center; color: var(--muted); }
.btn { display: flex; align-items: center; justify-content: center; width: 100%; height: 52px; border-radius: 16px; font-weight: 700; font-size: 16px; }
.btn-blue { background: var(--blue); color: #fff; box-shadow: 0 10px 28px rgba(61,139,255,.35); }
.btn-blue:disabled { opacity: .5; }
.btn-ghost { background: var(--card); border: 1px solid var(--line); }
.hint { text-align: center; color: var(--dim); font-size: 13px; margin-top: 12px; }

.hero { height: 250px; position: relative; }
.hero .cover { position: absolute; inset: 0; border-radius: 0; height: auto; }
.hero .cover::before, .hero .cover::after { display: none; }
.hero .navs { position: absolute; top: 16px; left: 14px; right: 14px; display: flex; justify-content: space-between; z-index: 2; }
.hero .dist { position: absolute; right: 14px; bottom: 40px; color: #fff; font-size: 12px; font-weight: 600; z-index: 2; text-shadow: 0 1px 8px #000; }
.sheet { margin-top: -28px; position: relative; background: var(--bg); border-radius: 24px 24px 0 0; padding: 18px 18px 8px; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 12px; margin: 14px 0; text-align: center; }
.kpis b { display: block; font-size: 22px; }
.kpis span { color: var(--muted); font-size: 12px; }
.tabs { display: flex; gap: 18px; font-weight: 600; border-bottom: 1px solid var(--line); margin: 8px 0 12px; overflow: auto; }
.tabs button { padding: 10px 0; color: var(--muted); white-space: nowrap; }
.tabs button.on { color: var(--text); box-shadow: inset 0 -2px 0 var(--blue); }
.muted { color: var(--muted); font-size: 14px; line-height: 1.5; }
.row-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0; }
.mini { height: 42px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); font-weight: 600; }
.photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.photos .cover { height: 72px; }
.photos .more { display: grid; place-items: center; background: #1a2433; border-radius: 14px; font-weight: 700; color: #fff; }

.zones { display: flex; gap: 8px; padding: 0 16px 10px; overflow: hidden; }
.zone { padding: 8px 12px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); font-size: 12px; color: var(--muted); white-space: nowrap; flex: none; }
.zone.on { border-color: var(--blue); color: var(--text); }
.hall-map { margin: 8px 16px; height: 380px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: #10161f; }
.hall-map .hall-svg { width: 100%; height: 100%; overflow: hidden; }
.legend { display: flex; flex-wrap: wrap; gap: 12px; padding: 8px 18px 16px; color: var(--muted); font-size: 12px; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 5px; }
.sticky-cta { padding: 0 16px 12px; }
.btn[disabled] { opacity: .45; pointer-events: none; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px; }
.seg { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 10px; }
.seg button { height: 40px; border-radius: 12px; background: #0e141d; border: 1px solid var(--line); color: var(--muted); font-weight: 600; font-size: 13px; }
.seg button.on { background: var(--blue); border-color: var(--blue); color: #fff; }
.price { display: flex; justify-content: space-between; margin-top: 10px; color: var(--muted); }
.specs { display: flex; gap: 8px; margin-top: 8px; color: var(--muted); font-size: 12px; }
.specs span { background: #0e141d; border: 1px solid var(--line); border-radius: 8px; padding: 4px 8px; }
.field { margin-top: 12px; }
.field label { display: block; color: var(--muted); font-size: 12px; margin-bottom: 6px; }
.field input, .field textarea { width: 100%; border-radius: 12px; border: 1px solid var(--line); background: #0e141d; padding: 12px; outline: none; }
.field input { height: 46px; }

.ok { text-align: center; padding: 36px 22px 24px; }
.qr { width: 180px; height: 180px; margin: 18px auto; background: #fff; border-radius: 12px; padding: 10px; display: grid; place-items: center; }
.qr img, .qr canvas, .qr table { width: 160px !important; height: 160px !important; }

.avatar { width: 54px; height: 54px; border-radius: 50%; background: #1c2b44; display: grid; place-items: center; font-weight: 800; color: #9ec4ff; }
.menu { margin: 12px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.menu button, .menu a { display: flex; width: 100%; align-items: center; gap: 10px; padding: 14px 16px; border-top: 1px solid var(--line); color: var(--text); text-align: left; }
.menu button:first-child, .menu a:first-child { border-top: 0; }
.wallet { margin: 0 16px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px; display: flex; justify-content: space-between; align-items: center; }
.amounts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 8px 16px; }
.amounts button { height: 48px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); font-weight: 700; }

.map-wrap { position: relative; height: calc(100% - 132px); min-height: 480px; background:
  linear-gradient(#1a233088 1px, transparent 1px) 0 0 / 32px 32px,
  linear-gradient(90deg, #1a233088 1px, transparent 1px) 0 0 / 32px 32px,
  #121820; }
#map { position: absolute; inset: 0; min-height: 480px; }
.map-art {
  position: absolute; inset: 0; z-index: 450; pointer-events: none;
  background: transparent;
}
.map-pin { position: absolute; display: flex; align-items: center; gap: 6px; transform: translate(-50%, -100%); z-index: 2; text-align: left; pointer-events: auto; }
.map-pin i { width: 14px; height: 14px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 25%, transparent); flex: none; }
.map-pin span { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 6px 8px; font-size: 11px; font-weight: 700; color: var(--text); }
.map-pin small { display: block; color: var(--muted); font-weight: 600; }
.leaflet-container { background: #1a2330; font-family: Inter, sans-serif; }
.leaflet-tile { filter: invert(1) hue-rotate(180deg) brightness(.9) saturate(.35) contrast(.95); }
.leaflet-control-attribution { display: none; }
.map-fab { position: absolute; left: 50%; bottom: calc(var(--tab) + 18px); transform: translateX(-50%); z-index: 700; background: var(--blue); color: #fff; border-radius: 999px; padding: 12px 18px; font-weight: 700; white-space: nowrap; }
.map-label { background: var(--card); color: var(--text); border: 1px solid var(--line); border-radius: 10px; padding: 6px 8px; font-size: 11px; font-weight: 700; box-shadow: 0 8px 20px rgba(0,0,0,.35); }
.map-label small { display: block; color: var(--muted); font-weight: 600; }
.pin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid #071018; box-shadow: 0 0 0 2px currentColor; }

.back { display: flex; align-items: center; gap: 8px; font-weight: 700; padding: 16px 18px 8px; }
.empty { padding: 40px 24px; text-align: center; color: var(--muted); }
.review { padding: 12px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 40px 1fr; gap: 10px; }
.filter-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.switch { width: 44px; height: 26px; border-radius: 999px; background: #2a3342; position: relative; flex: none; }
.switch.on { background: var(--blue); }
.switch i { width: 20px; height: 20px; border-radius: 50%; background: #fff; position: absolute; top: 3px; left: 3px; display: block; }
.switch.on i { left: 21px; }
.pad { padding: 0 18px 18px; }
.seg-top { display: flex; gap: 8px; padding: 0 16px 10px; }
.seg-top button { flex: 1; height: 36px; border-radius: 10px; background: var(--card); color: var(--muted); font-weight: 600; }
.seg-top button.on { background: #1a2740; color: var(--text); }
.radio { display: flex; align-items: center; gap: 10px; padding: 10px 0; }
.radio b { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); flex: none; }
.radio.on b { border-color: var(--blue); box-shadow: inset 0 0 0 4px var(--blue); }
.pill { display: inline-flex; align-items: center; gap: 6px; background: #163528; color: var(--teal); border-radius: 999px; padding: 4px 8px; font-size: 12px; font-weight: 700; }
.toast { position: absolute; left: 16px; right: 16px; bottom: calc(var(--tab) + 16px); background: #1c2430; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; z-index: 80; text-align: center; }
.sheet-form { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 12px; margin-top: 12px; }
