:root {
  --bg: #060711;
  --panel: rgba(18, 20, 32, .74);
  --panel-strong: rgba(21, 23, 36, .92);
  --line: rgba(154, 164, 201, .18);
  --line-strong: rgba(245, 247, 255, .22);
  --text: #f7f7fb;
  --muted: #a6acc2;
  --dim: #6f758f;
  --accent: #ff315f;
  --font: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { background: #02030a; color: var(--text); font-family: var(--font); -webkit-font-smoothing: antialiased; }
body { margin: 0; min-height: 100dvh; background: linear-gradient(180deg, #070812 0%, #03040a 58%, #060711 100%); }
body::before {
  content: ''; position: fixed; inset: 0; pointer-events: none;
  background:
    radial-gradient(70% 44% at 50% 0%, rgba(255,49,95,.13), transparent 64%),
    radial-gradient(60% 34% at 0% 55%, rgba(255,49,95,.08), transparent 70%),
    linear-gradient(90deg, rgba(255,255,255,.035), transparent 22%, transparent 78%, rgba(255,255,255,.025));
}
button { font: inherit; cursor: pointer; }
#app { position: relative; z-index: 1; width: min(100%, 430px); min-height: 100dvh; margin: 0 auto; padding: 0 21px 128px; overflow-x: hidden; }
.view { display: none; }
.view.active { display: block; animation: viewIn .28s ease both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.phone-status { height: 38px; display: flex; align-items: center; justify-content: space-between; padding: 4px 10px 0; font-size: 15px; }
.phone-status strong { font-size: 17px; letter-spacing: .01em; }
.phone-status div { display: flex; align-items: center; gap: 9px; }
.signal { width: 20px; height: 16px; display: inline-block; background: linear-gradient(90deg, #fff 3px, transparent 3px 5px, #fff 5px 8px, transparent 8px 10px, #fff 10px 14px, transparent 14px 16px, #fff 16px); border-radius: 2px; clip-path: polygon(0 100%,100% 100%,100% 0,78% 0,78% 22%,56% 22%,56% 43%,34% 43%,34% 64%,12% 64%,12% 82%,0 82%); }
.wifi { width: 19px; height: 14px; border: 4px solid #fff; border-bottom: 0; border-left-color: transparent; border-right-color: transparent; border-radius: 18px 18px 0 0; position: relative; }
.wifi::after { content: ''; position: absolute; left: 5px; top: 7px; width: 5px; height: 5px; background: #fff; border-radius: 50%; }
.battery { width: 27px; height: 14px; border: 2px solid #fff; border-radius: 4px; position: relative; }
.battery::before { content: ''; position: absolute; right: -5px; top: 3px; width: 3px; height: 6px; background: #fff; border-radius: 0 2px 2px 0; }
.battery::after { content: ''; position: absolute; inset: 2px 4px 2px 2px; background: #fff; border-radius: 2px; }

/* ── top bar buttons ── */
.profile-top { min-height: 50px; display: flex; justify-content: space-between; align-items: flex-start; }
.scan-button, .message-button { border: 0; background: transparent; color: var(--text); padding: 0; position: relative; }

/* Scan — hexagonal radar */
.scan-button { width: 58px; display: grid; gap: 7px; justify-items: center; color: var(--muted); }
.scan-glyph { width: 46px; height: 46px; position: relative; display: grid; place-items: center; }
.scan-glyph::before {
  content: ''; width: 38px; height: 38px;
  background: linear-gradient(145deg, rgba(28,31,48,.92), rgba(10,12,23,.88));
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  border: 1px solid var(--line);
}
.scan-glyph::after {
  content: ''; position: absolute; width: 22px; height: 22px;
  border: 2px solid rgba(255,255,255,.35); border-radius: 50%;
  animation: scanPulse 2.4s ease-in-out infinite;
}
.scan-button small { font-size: 12px; font-weight: 700; }
@keyframes scanPulse {
  0%, 100% { transform: scale(.8); opacity: .3; }
  50% { transform: scale(1.3); opacity: .85; }
}

/* Message — sleek envelope */
.message-button { width: 46px; height: 46px; position: relative; display: grid; place-items: center; }
.message-glyph {
  width: 28px; height: 20px;
  border: 2px solid rgba(255,255,255,.85); border-radius: 5px;
  position: relative; background: rgba(20,22,36,.7);
  transition: transform .2s;
}
.message-glyph::before {
  content: ''; position: absolute; left: 1px; right: 1px; top: 5px; height: 2px;
  background: rgba(255,255,255,.55);
  box-shadow: 0 5px 0 rgba(255,255,255,.4);
}
.message-glyph::after {
  content: ''; position: absolute; left: 3px; bottom: -7px;
  width: 10px; height: 10px;
  border-left: 2px solid rgba(255,255,255,.85);
  border-bottom: 2px solid rgba(255,255,255,.85);
  transform: skew(-18deg); background: #0d0f1a;
}
.message-button i {
  position: absolute; top: 6px; right: 5px; width: 9px; height: 9px;
  border-radius: 50%;
  box-shadow: 0 0 10px currentColor;
  transition: background .4s, box-shadow .4s;
}

/* ── hero zone / avatar ── */
.hero-zone { text-align: center; margin-top: -4px; }
.chroma-disc {
  width: 122px; height: 122px; border-radius: 50%; margin: 0 auto;
  position: relative; display: grid; place-items: center;
  box-shadow: 0 0 44px var(--disc-glow, rgba(255,49,95,.35)), inset 0 2px 7px rgba(255,255,255,.28);
  border: 4px solid rgba(255,255,255,.12);
  transition: background .5s ease, box-shadow .5s ease;
}
.chroma-disc::before {
  content: ''; position: absolute; inset: -9px; border-radius: 50%;
  border: 2px solid rgba(255,190,205,.55);
  box-shadow: inset 0 0 0 4px rgba(5,7,17,.86);
}
.chroma-disc > span {
  width: 50px; height: 50px; border-radius: 50%;
  border: 7px solid #11131f;
}
.chroma-disc::after {
  content: ''; position: absolute; left: 31px; right: 18px; height: 4px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.78), transparent);
  box-shadow: 0 0 14px rgba(255,255,255,.5);
}
.hero-disc b {
  position: absolute; right: -12px; bottom: 5px;
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  background: #ffe113; border: 3px solid #11131f;
  box-shadow: 0 4px 18px rgba(255,225,19,.32);
}
.hero-zone h1 { margin: 14px 0 0; font-size: 28px; line-height: 1; font-weight: 900; }
.hero-name-row { display: flex; align-items: baseline; justify-content: center; gap: 10px; margin-top: 14px; }
.hero-name-row h1 { margin: 0; font-size: 28px; line-height: 1; font-weight: 900; }
.hero-role-tag { font-size: 14px; font-weight: 600; opacity: .8; }
.hero-zone p { margin: 8px 0 10px; color: var(--accent); font-size: 16px; font-weight: 500; }

/* ── status card ── */
.status-card {
  margin-top: 14px; min-height: 132px;
  border: 2px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(24,27,42,.88), rgba(10,12,22,.84));
  text-align: center; padding: 18px 18px 13px;
  position: relative; isolation: isolate;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 20px 50px rgba(0,0,0,.24);
  transition: border-color .5s ease, box-shadow .5s ease;
}
/* animated border ring via ::after */
.status-card::after {
  content: ''; position: absolute; inset: -4px; border-radius: 26px;
  pointer-events: none; z-index: -1;
  transition: border-color .5s ease, box-shadow .5s ease, opacity .5s ease;
  border: 2px solid transparent;
  opacity: 0;
}
/* CHILL — pink flowing ring */
.status-card[data-status="chill"]::after {
  opacity: 1;
  border-color: rgba(255,56,104,.45);
  box-shadow: 0 0 18px rgba(255,56,104,.18), 0 0 36px rgba(255,56,104,.08);
  animation: chillFlow 3s ease-in-out infinite;
}
@keyframes chillFlow {
  0%, 100% { border-color: rgba(255,56,104,.3); box-shadow: 0 0 14px rgba(255,56,104,.12), 0 0 28px rgba(255,56,104,.05); }
  50% { border-color: rgba(255,120,150,.55); box-shadow: 0 0 22px rgba(255,90,130,.25), 0 0 40px rgba(255,56,104,.12); }
}
/* OPEN — yellow electric ring */
.status-card[data-status="open"]::after {
  opacity: 1;
  border-color: rgba(255,229,54,.45);
  box-shadow: 0 0 16px rgba(255,229,54,.22), 0 0 32px rgba(255,229,54,.1), inset 0 0 0 transparent;
  animation: zapFlicker 2s ease-in-out infinite;
}
@keyframes zapFlicker {
  0%, 100% { border-color: rgba(255,229,54,.35); box-shadow: 0 0 12px rgba(255,229,54,.15), 0 0 28px rgba(255,229,54,.06); }
  30% { border-color: rgba(255,229,54,.55); box-shadow: 0 0 20px rgba(255,229,54,.3), 0 0 38px rgba(255,229,54,.14); }
  60% { border-color: rgba(255,229,54,.4); box-shadow: 0 0 14px rgba(255,229,54,.18), 0 0 30px rgba(255,229,54,.08); }
}
/* HUNTING — purple burst ring */
.status-card[data-status="hunting"]::after {
  opacity: 1;
  border-color: rgba(180,77,255,.45);
  box-shadow: 0 0 20px rgba(180,77,255,.25), 0 0 40px rgba(180,77,255,.12);
  animation: burstPulse 1.8s ease-in-out infinite;
}
@keyframes burstPulse {
  0%, 100% { border-color: rgba(180,77,255,.3); box-shadow: 0 0 14px rgba(180,77,255,.15), 0 0 30px rgba(180,77,255,.06); }
  50% { border-color: rgba(200,120,255,.6); box-shadow: 0 0 26px rgba(180,77,255,.35), 0 0 48px rgba(180,77,255,.18); }
}

.status-card span, .section-row strong, .quick-title { color: var(--muted); font-size: 13px; font-weight: 800; letter-spacing: .055em; }
.status-card h2 { margin: 7px 0 5px; font-size: 45px; line-height: .95; color: var(--accent); font-weight: 900; transition: color .4s ease, opacity .25s ease, transform .25s ease; }
.status-card p { margin: 0; color: var(--muted); font-size: 15px; transition: color .4s ease, opacity .25s ease; }
.pager { display: flex; justify-content: center; gap: 12px; margin-top: 12px; }
.pager i { width: 9px; height: 9px; background: #373b51; border-radius: 50%; transition: background .4s ease, box-shadow .4s ease; }
.pager .active { background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.section-row { margin-top: 13px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.section-row button { background: none; border: 0; color: var(--muted); padding: 0; font-size: 12px; }
.section-row span { display: inline-grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; border: 1px solid var(--muted); }
.status-options { margin-top: 9px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.status-option {
  min-height: 101px; border-radius: 14px;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(23,26,41,.84), rgba(10,12,22,.78));
  color: var(--text);
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  padding: 12px 8px 11px;
  transition: border-color .4s ease, box-shadow .4s ease, transform .2s ease;
}
.status-option:active { transform: scale(.96); }
.status-option.selected { border-color: var(--accent); box-shadow: 0 0 28px rgba(255,49,95,.18), inset 0 0 24px rgba(255,49,95,.08); }
.status-option strong { color: currentColor; font-size: 13px; transition: color .4s ease; }
.status-option.selected strong { color: var(--accent); }
.status-option small { color: var(--muted); font-size: 12px; line-height: 1.35; max-width: 72px; }
.status-icon { display: block; position: relative; width: 60px; height: 26px; transition: opacity .3s ease; }
.status-icon.pulse::before { content: ''; position: absolute; left: 6px; right: 6px; top: 14px; height: 4px; border-radius: 999px; background: linear-gradient(90deg, transparent, #ff6f8d, #ff3868, #ff9aaa, transparent); box-shadow: 0 0 13px #ff3868; }
.hero-disc .status-icon { width: 27px; height: 20px; }
.hero-disc .status-icon.pulse::before { left: 2px; right: 2px; top: 9px; height: 2px; background: #171923; box-shadow: none; }
.hero-disc .status-icon.equal::before, .hero-disc .status-icon.equal::after { left: 4px; right: 4px; height: 2px; background: #171923; }
.hero-disc .status-icon.equal::before { top: 7px; }
.hero-disc .status-icon.equal::after { bottom: 6px; }
.hero-disc .status-icon.slashes { width: 25px; height: 20px; background: repeating-linear-gradient(132deg, transparent 0 7px, #171923 7px 10px, transparent 10px 15px); }
.status-icon.equal::before, .status-icon.equal::after { content: ''; position: absolute; left: 7px; right: 7px; height: 4px; border-radius: 999px; background: #fff; }
.status-icon.equal::before { top: 9px; } .status-icon.equal::after { bottom: 8px; }
.status-icon.slashes { background: repeating-linear-gradient(132deg, transparent 0 13px, #fff 13px 18px, transparent 18px 28px); }

/* ── All-Seeing Eye CTA ── */
.match-cta {
  width: 100%; margin-top: 15px; min-height: 60px;
  border: 0; border-radius: 17px; color: white;
  background: linear-gradient(110deg, #f51968, #ff315f 56%, #ff293d);
  display: grid; grid-template-columns: 52px 1fr 28px; align-items: center;
  padding: 0 16px;
  box-shadow: 0 18px 42px rgba(255,49,95,.25);
  transition: transform .15s ease, box-shadow .15s ease;
}
.match-cta:active { transform: scale(.97); }
.match-cta strong { font-size: 20px; }
.match-cta i { width: 15px; height: 15px; border-top: 3px solid #fff; border-right: 3px solid #fff; transform: rotate(45deg); }
/* ── CTA bolt icon (replaces eye) ── */
.cta-bolt {
  width: 28px; height: 36px; justify-self: center;
  background: #161821;
  clip-path: polygon(53% 0, 16% 52%, 43% 52%, 29% 100%, 84% 39%, 55% 39%);
  filter: drop-shadow(0 0 4px rgba(255,255,255,.3));
}

.home-actions { margin-top: 18px; display: grid; grid-template-columns: 1fr; gap: 10px; }
.tag-action { min-height: 88px; border: 1px solid var(--line); border-radius: 15px; background: linear-gradient(145deg, rgba(23,26,41,.88), rgba(10,12,22,.78)); color: var(--text); display: grid; grid-template-columns: 58px 1fr; grid-template-rows: auto auto; align-items: center; column-gap: 12px; padding: 12px 16px; text-align: left; }
.tag-action .quick-tag { grid-row: 1 / 3; transform: rotate(-42deg); }
.tag-action strong { font-size: 16px; line-height: 1.1; }
.tag-action small { color: var(--muted); font-size: 12px; }
.discover-chroma-action { min-height: 48px; border: 1px solid rgba(255,49,95,.35); border-radius: 15px; background: rgba(255,49,95,.08); color: var(--accent); font-weight: 900; }
.quick-band, .quick-nfc, .quick-tag, .nav-band { display: block; width: 48px; height: 30px; border: 3px solid #f047ff; border-radius: 50%; box-shadow: 0 0 20px rgba(240,71,255,.45); }
.quick-nfc { width: 48px; height: 48px; border-color: #1677ff; border-radius: 50%; box-shadow: 0 0 18px rgba(22,119,255,.35); background: repeating-radial-gradient(circle at 24px 24px, transparent 0 9px, #1677ff 10px 12px, transparent 13px 18px); }
.quick-tag { width: 43px; height: 31px; border-radius: 4px; border-color: #ff982c; transform: rotate(-42deg); box-shadow: 0 0 17px rgba(255,152,44,.32); position: relative; }
.quick-tag::after { content: ''; position: absolute; right: 6px; top: 6px; width: 6px; height: 6px; border: 2px solid #ff982c; border-radius: 50%; }

/* ── bottom nav ── */
.bottom-nav { position: fixed; left: 50%; bottom: max(12px, env(safe-area-inset-bottom)); transform: translateX(-50%); width: min(calc(100% - 42px), 388px); height: 69px; border: 1px solid var(--line); border-radius: 22px; background: rgba(13,15,25,.9); backdrop-filter: blur(22px); display: grid; grid-template-columns: 1fr 1.2fr 1fr; align-items: center; z-index: 40; box-shadow: 0 18px 42px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.05); transition: transform .3s cubic-bezier(.4,0,.2,1), opacity .3s ease; }
.bottom-nav.nav-hidden { transform: translateX(-50%) translateY(120px); opacity: 0; pointer-events: none; }
.nav-item, .nav-center { border: 0; background: none; color: var(--muted); min-width: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.nav-item.active { color: var(--accent); }
.nav-item span:last-child { font-size: 12px; font-weight: 700; }
.nav-devil { width: 24px; height: 24px; position: relative; }
.nav-devil::before {
  content: ''; position: absolute; left: 4px; top: 3px; width: 16px; height: 16px;
  border: 2px solid currentColor; border-radius: 50%;
}
/* horns */
.nav-devil::after {
  content: ''; position: absolute; left: 4px; top: -1px; width: 16px; height: 10px;
  background: 
    radial-gradient(3px 6px at 3px 3px, currentColor 40%, transparent 41%),
    radial-gradient(3px 6px at 13px 3px, currentColor 40%, transparent 41%);
}
.nav-devil i { position: absolute; left: 9px; top: 9px; width: 6px; height: 5px; display: block; }
.nav-devil i::before, .nav-devil i::after {
  content: ''; position: absolute; top: 0; width: 2.5px; height: 3px;
  background: currentColor; border-radius: 50%;
}
.nav-devil i::before { left: 0; }
.nav-devil i::after { right: 0; }
.nav-devil b {
  position: absolute; left: 9px; bottom: 5px; width: 4px; height: 4px;
  border-radius: 0 0 50% 50%; border: 2px solid currentColor; border-top: 0;
  display: block;
}
.nav-band { width: 26px; height: 17px; border-color: currentColor; box-shadow: none; }
.nav-lightning { width: 62px; height: 62px; transform: translateY(-12px); border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle, #ffe536 0 42%, #f8c900 43% 58%, rgba(255,229,54,.2) 59% 100%); border: 3px solid #fff176; box-shadow: 0 0 22px rgba(255,229,54,.78), 0 0 46px rgba(255,229,54,.26), inset 0 2px 5px rgba(255,255,255,.45); position: relative; }
.nav-lightning::before { content: ''; width: 22px; height: 33px; background: #161821; clip-path: polygon(53% 0, 16% 52%, 43% 52%, 29% 100%, 84% 39%, 55% 39%); filter: drop-shadow(0 0 2px rgba(0,0,0,.4)); }

/* ── welcome / result / pages ── */
.welcome-content, .result-content, .page-header, .wristband-content, .discover-content, .tag-editor { padding-top: 48px; text-align: center; }
.welcome-content h1, .result-content h2, .page-header h1, .tag-editor h2 { margin: 14px 0 6px; font-size: 30px; }
.welcome-content p, .result-content p, .page-header p { color: var(--muted); margin: 0 0 22px; }
.btn-primary, .btn-secondary, .btn-ghost, .icon-text { border: 0; border-radius: 14px; min-height: 46px; padding: 0 20px; font-weight: 800; }
.btn-primary { background: linear-gradient(110deg, #f51968, #ff315f); color: white; }
.btn-secondary { background: var(--panel); color: var(--text); border: 1px solid var(--line); }
.btn-ghost, .icon-text { background: transparent; color: var(--muted); }

/* ── registration ── */
.reg-header { padding-top: 22px; display: grid; grid-template-columns: auto 1fr 38px; gap: 12px; align-items: center; }
.progress-bar { height: 4px; border-radius: 999px; background: rgba(255,255,255,.12); overflow: hidden; }
#reg-progress { height: 100%; background: var(--accent); transition: width .3s ease; }
.reg-body { padding-top: 45px; }
.reg-body h2 { text-align: center; font-size: 24px; }
.reg-options, .tag-grid { display: grid; gap: 11px; margin-top: 22px; }
.reg-option, .tag-chip { min-height: 56px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); color: var(--text); display: flex; align-items: center; gap: 12px; padding: 0 16px; font-weight: 700; transition: border-color .3s ease, background .3s ease, color .3s ease; }
.reg-option span { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.1); }
.reg-option.selected, .tag-chip.selected { border-color: var(--accent); color: var(--accent); background: rgba(255,49,95,.1); }
.reg-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; }
.result-traits { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 16px 0 22px; }
.result-traits span { padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); color: var(--muted); font-size: 12px; font-weight: 800; }

/* ── discover (simplified) ── */
.discover-status-bar {
  display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; gap: 8px;
  margin-top: 18px; padding: 10px;
  border: 1px solid var(--line); border-radius: 18px;
  background: var(--panel);
}
.discover-status-bar button {
  min-height: 42px; border: 1px solid var(--line); border-radius: 12px;
  background: rgba(255,255,255,.04); color: var(--text);
  font-weight: 800; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  transition: border-color .3s ease, background .3s ease, box-shadow .3s ease;
}
.discover-status-bar button.active-filter {
  border-color: var(--accent);
  background: rgba(255,49,95,.1);
  box-shadow: 0 0 18px rgba(255,49,95,.12);
}
.discover-status-bar span { color: var(--muted); font-size: 12px; font-weight: 800; white-space: nowrap; }
.dsb-dot { width: 10px; height: 10px; display: inline-block; border-radius: 50%; box-shadow: 0 0 10px currentColor; }
.stripe-micro { width: 24px; height: 12px; display: inline-block; border-radius: 2px; background: linear-gradient(0deg, transparent 30%, rgba(255,255,255,.75) 30%, rgba(255,255,255,.75) 70%, transparent 70%); }
.stripe-active { background: linear-gradient(0deg, transparent 10%, rgba(255,255,255,.75) 10%, rgba(255,255,255,.75) 30%, transparent 30%, transparent 70%, rgba(255,255,255,.75) 70%, rgba(255,255,255,.75) 90%, transparent 90%); }
.stripe-selective { background: repeating-linear-gradient(60deg, transparent, transparent 4px, rgba(255,255,255,.75) 4px, rgba(255,255,255,.75) 7px); }
.discover-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.discover-card {
  --accent: #ff315f; min-height: 132px;
  border: 1px solid var(--line); border-radius: 16px;
  background: var(--panel); padding: 17px 10px; text-align: center;
  transition: border-color .3s ease, transform .15s ease;
}
.discover-card:active { transform: scale(.97); }
.mini-dot { width: 46px; height: 46px; border-radius: 50%; margin: 0 auto 10px; background: var(--accent); box-shadow: 0 0 22px color-mix(in srgb, var(--accent) 45%, transparent); }
.discover-card h3 { margin: 0; } .discover-card p, .discover-card span { color: var(--muted); font-size: 12px; }
.discover-card small { display: block; color: var(--dim); margin-top: 6px; font-size: 11px; }
.discover-card em { display: inline-block; margin: 7px 2px 0; padding: 3px 6px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent); font-style: normal; font-size: 10px; font-weight: 800; }

/* ── wristband ── */
.wristband-preview-wrapper { margin-top: 24px; padding: 14px; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); overflow-x: auto; }
.wristband-preview-wrapper canvas { display: block; width: 100%; min-width: 620px; height: auto; border-radius: 10px; }
.wristband-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.premium-upsell { margin-top: 20px; padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); text-align: center; }
.premium-upsell h3 { margin: 0 0 6px; }
.premium-upsell p { margin: 0 0 14px; color: var(--muted); font-size: 13px; }
.color-options { display: flex; justify-content: center; gap: 9px; }
.color-option { width: 38px; height: 38px; border: 2px solid rgba(255,255,255,.2); border-radius: 50%; color: white; font-weight: 900; }
.color-option.selected { border-color: white; box-shadow: 0 0 18px rgba(255,255,255,.22); }

/* ── toast ── */
.toast { position: fixed; z-index: 40; left: 50%; bottom: 98px; transform: translate(-50%, 18px); opacity: 0; pointer-events: none; transition: .2s ease; background: var(--panel-strong); color: var(--text); border: 1px solid var(--line); border-radius: 999px; padding: 11px 17px; font-size: 13px; box-shadow: 0 18px 35px rgba(0,0,0,.3); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ── discover header (new minimal) ── */
.discover-minimal-header { display: flex; align-items: center; justify-content: center; padding-top: 52px; }
.discover-minimal-header h1 {
  font-size: 42px; font-weight: 900; letter-spacing: .06em;
  background: linear-gradient(135deg, #c4ff8c 0%, #7df5a5 22%, #a8e6cf 44%, #d4f0c0 66%, #b8f0a8 88%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  text-shadow:
    0 0 18px rgba(160,255,180,.35),
    0 0 40px rgba(120,240,150,.22),
    0 0 70px rgba(100,220,130,.14),
    2px 2px 0 rgba(60,100,70,.15);
  filter: drop-shadow(0 4px 12px rgba(80,200,100,.18));
  transform: rotate(-1.5deg);
  transition: transform .3s ease;
}
.discover-minimal-header h1:active { transform: rotate(.5deg) scale(1.03); }
.discover-filter-row {
  display: flex; align-items: center; gap: 8px; margin-top: 14px;
  padding: 12px; border: 1px solid var(--line);
  border-radius: 18px; background: var(--panel);
}
.discover-filter-btn {
  flex: 1; min-height: 42px; border: 1px solid var(--line);
  border-radius: 12px; background: rgba(255,255,255,.04);
  color: var(--text); font-weight: 800; font-size: 13px;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  transition: border-color .3s ease, background .3s ease, box-shadow .3s ease;
}
.discover-filter-btn.active-filter {
  border-color: var(--accent);
  background: rgba(255,49,95,.1);
  box-shadow: 0 0 18px rgba(255,49,95,.12);
}

@media (max-width: 370px) {
  #app { padding-left: 15px; padding-right: 15px; }
  .status-card h2 { font-size: 46px; }
  .match-cta strong { font-size: 19px; }
  .status-option { padding-left: 6px; padding-right: 6px; }
}

@media print {
  .bottom-nav, .phone-status, .profile-top, .btn-primary, .btn-secondary, .toast, .page-header, .premium-upsell, .wristband-actions { display: none !important; }
  body { background: white; }
  #app { max-width: none; width: 100%; padding: 0; }
  .view { display: none !important; }
  #view-wristband { display: block !important; }
  .wristband-preview-wrapper { border: 0; background: transparent; padding: 0; }
}

/* ══════════════════════════════════════════
   DISCOVER — Map + Club System
   ══════════════════════════════════════════ */

/* Override discover view to be full-width, no padding */
#view-discover {
  padding: 0 !important;
}
#view-discover.active {
  display: flex;
  flex-direction: column;
  position: fixed;
  inset: 0;
  z-index: 10;
  animation: viewIn .28s ease both;
  background: #060711;
}

/* Map container — fills the entire viewport */
#map-container {
  flex: 1;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* Leaflet overrides for dark theme */
#map-container .leaflet-container {
  background: #0a0c16;
}
.leaflet-control-zoom {
  border: 1px solid var(--line) !important;
  border-radius: 12px !important;
  overflow: hidden;
  margin-bottom: 20px !important; /* clear bottom edge */
}
.leaflet-control-zoom a {
  background: var(--panel-strong) !important;
  color: var(--text) !important;
  border-color: var(--line) !important;
  width: 36px !important;
  height: 36px !important;
  line-height: 36px !important;
  font-size: 18px !important;
}
.leaflet-control-zoom a:hover {
  background: rgba(255,255,255,.12) !important;
}

/* User location dot */
.user-dot-pulse {
  width: 22px; height: 22px;
  background: #4da6ff;
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(77,166,255,.25), 0 0 0 14px rgba(77,166,255,.10);
  animation: userDotPulse 2s ease-out infinite;
}
@keyframes userDotPulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(77,166,255,.3), 0 0 0 10px rgba(77,166,255,.12); }
  50% { box-shadow: 0 0 0 8px rgba(77,166,255,.15), 0 0 0 18px rgba(77,166,255,.04); }
}

/* Club map pins */
.club-marker { background: transparent !important; border: 0 !important; }
.club-pin {
  display: flex; flex-direction: column; align-items: center;
  gap: 4px; transform: translateY(-46px);
  cursor: pointer; pointer-events: auto;
  transition: transform .15s ease;
}
.club-pin:hover { transform: translateY(-50px) scale(1.06); }
.club-pin:active { transform: translateY(-46px) scale(.96); }
.pin-dot {
  width: 16px; height: 16px;
  background: var(--pin-color, #ff315f);
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow:
    0 0 10px var(--pin-glow, var(--pin-color, #ff315f)),
    0 0 22px color-mix(in srgb, var(--pin-glow, var(--pin-color, #ff315f)) 40%, transparent);
  position: relative;
}
.pin-dot::after {
  content: ''; position: absolute; left: 50%; bottom: -10px; transform: translateX(-50%);
  width: 2px; height: 8px; background: rgba(255,255,255,.5); border-radius: 0 0 2px 2px;
}
.pin-label {
  font-size: 11px; font-weight: 700; color: #fff;
  background: rgba(10,12,22,.85); backdrop-filter: blur(6px);
  padding: 3px 8px; border-radius: 999px;
  white-space: nowrap;
  border: 1px solid rgba(255,255,255,.15);
  text-shadow: 0 1px 3px rgba(0,0,0,.6);
}

/* ══ Draggable Bottom Sheet ══ */
.club-sheet {
  position: fixed; left: 50%; transform: translateX(-50%);
  width: min(100%, 430px);
  top: 100vh; /* hidden */
  max-height: 75vh; /* cap, but height driven by content */
  background: linear-gradient(180deg, rgba(14,16,27,.98), rgba(8,10,19,.995));
  border-radius: 22px 22px 0 0;
  border: 1px solid var(--line);
  border-bottom: 0;
  z-index: 35;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0 20px 24px;
  box-shadow: 0 -8px 40px rgba(0,0,0,.5);
  transition: top .35s cubic-bezier(.2,.8,.2,1);
  will-change: top;
}
/* Peek: show ~60% of screen, bottom aligns with zoom controls */
.club-sheet[data-state="peek"] {
  top: calc(40vh);
}
/* Dragging: disable transition so it follows finger instantly */
.club-sheet.dragging {
  transition: none !important;
}
.sheet-handle {
  width: 36px; height: 5px; background: rgba(255,255,255,.25);
  border-radius: 999px; margin: 10px auto 14px;
}
.sheet-header {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 12px;
}
.sheet-header h2 {
  margin: 0; font-size: 22px; font-weight: 900; line-height: 1.15;
}
.sheet-event {
  margin: 5px 0 0; font-size: 14px; color: var(--accent); font-weight: 700;
}
.sheet-time {
  margin: 3px 0 0; font-size: 12px; color: var(--muted);
}
.sheet-close {
  width: 32px; height: 32px; min-width: 32px;
  border: 1px solid var(--line); border-radius: 50%;
  background: rgba(255,255,255,.06); color: var(--muted);
  display: grid; place-items: center; font-size: 14px;
  transition: background .2s;
}
.sheet-close:hover { background: rgba(255,255,255,.12); color: #fff; }
.sheet-desc {
  margin: 12px 0 6px; font-size: 14px; color: #c8cde0; line-height: 1.5;
}
.sheet-addr {
  margin: 0 0 14px; font-size: 12px; color: var(--dim);
}

/* Stats row — attendee count + color breakdown */
.sheet-stats {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px;
}
.stat-chip {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
  font-size: 12px; font-weight: 700;
}
.stat-num { color: var(--text); font-size: 15px; }
.stat-dot { width: 10px; height: 10px; border-radius: 50%; }
.stat-label { color: var(--muted); }

/* Joined badge */
.sheet-joined-badge {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 12px 16px; margin-bottom: 14px;
  border-radius: 14px;
  background: rgba(40,216,131,.1); border: 1px solid rgba(40,216,131,.25);
  color: #28d883; font-size: 14px; font-weight: 700;
}
.joined-check { font-size: 18px; }
.sheet-edit-time {
  background: none; border: 0; color: var(--muted); font-size: 12px;
  text-decoration: underline; cursor: pointer; padding: 2px 6px;
}

/* Time picker */
.sheet-time-picker {
  margin-bottom: 14px; padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
}
.sheet-time-picker label {
  display: block; margin-bottom: 8px;
  font-size: 13px; color: var(--muted); font-weight: 700;
}
.time-inputs {
  display: flex; align-items: center; gap: 10px;
}
.time-inputs input[type="time"] {
  flex: 1; min-height: 40px;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--panel); color: var(--text);
  padding: 0 12px; font-size: 15px; font-family: var(--font);
}
.time-inputs input[type="time"]::-webkit-calendar-picker-indicator {
  filter: invert(1);
}
.time-inputs span { color: var(--muted); font-size: 13px; }
.sheet-save-time {
  margin-top: 10px; min-height: 34px; padding: 0 16px;
  border: 0; border-radius: 10px;
  background: var(--accent); color: #fff;
  font-weight: 700; font-size: 13px;
  cursor: pointer;
}

/* Join button — most prominent element */
.sheet-join-btn {
  width: 100%; min-height: 54px;
  border: 0; border-radius: 16px;
  font-weight: 800; font-size: 17px;
  color: #fff;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: linear-gradient(110deg, #f51968, var(--accent, #ff315f));
  box-shadow: 0 8px 28px rgba(255,49,95,.3);
  transition: transform .15s ease, box-shadow .15s ease;
  margin-bottom: 8px;
}
.sheet-join-btn:active { transform: scale(.97); }
.sheet-join-btn.joined {
  background: linear-gradient(110deg, #1a8a4a, #28d883);
  box-shadow: 0 8px 28px rgba(40,216,131,.3);
}
.btn-join-icon {
  width: 26px; height: 26px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.6);
  display: grid; place-items: center;
  font-size: 16px; font-weight: 400;
}
.btn-eye {
  width: 24px; height: 24px; position: relative; display: inline-block;
}
.btn-eye::before {
  content: ''; position: absolute; inset: 2px;
  border: 3px solid rgba(255,255,255,.9); border-radius: 50%;
}
.btn-eye::after {
  content: ''; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 10px; height: 10px; background: rgba(255,255,255,.9); border-radius: 50%;
}
.sheet-hint {
  text-align: center; font-size: 12px; color: var(--dim);
  margin: 4px 0 0;
}

/* ══ Match Overlay (full-screen) ══ */
.match-overlay {
  position: fixed; inset: 0; z-index: 40;
  background: rgba(5,7,17,.96);
  backdrop-filter: blur(12px);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 0;
  opacity: 0; pointer-events: none;
  transition: opacity .28s ease;
  overflow-y: auto;
}
.match-overlay.open {
  opacity: 1; pointer-events: auto;
}
#match-overlay-content {
  width: min(100%, 430px); padding: 28px 21px 60px;
}
.match-header { margin-bottom: 28px; }
.match-back {
  background: none; border: 0; color: var(--muted);
  font-size: 15px; font-weight: 600;
  padding: 6px 0; cursor: pointer;
}
.match-header h3 { margin: 8px 0 2px; font-size: 24px; font-weight: 900; }
.match-sub { font-size: 13px; color: var(--dim); }

/* Percentage ring */
.match-ring {
  width: 160px; height: 160px; margin: 0 auto 20px;
  border-radius: 50%;
  display: grid; place-items: center;
  border: 5px solid color-mix(in srgb, var(--accent) 30%, transparent);
  box-shadow: 0 0 40px color-mix(in srgb, var(--accent) 20%, transparent);
}
.match-ring-inner {
  text-align: center;
}
.match-big-num {
  font-size: 42px; font-weight: 900;
  color: var(--accent);
}
.match-sub-text {
  display: block; font-size: 12px; color: var(--muted);
  margin-top: 2px;
}

.match-detail-row { text-align: center; margin-bottom: 20px; }
.detail-num { font-size: 22px; font-weight: 800; color: var(--text); }
.detail-label { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }

/* Legend */
.match-legend {
  padding: 14px; border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
  margin-bottom: 18px;
}
.legend-item {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  font-size: 13px; margin-bottom: 4px;
}
.legend-label { color: var(--dim); }
.legend-role { font-weight: 700; }
.legend-type { color: var(--muted); font-size: 12px; }
.legend-roles { color: var(--text); font-weight: 600; }

/* Breakdown bars */
.match-breakdown {
  padding: 14px; border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
  margin-bottom: 18px;
}
.breakdown-title {
  font-size: 13px; font-weight: 800; color: var(--muted);
  display: block; margin-bottom: 12px;
}
.breakdown-row {
  display: flex; align-items: center; gap: 10px; margin-bottom: 8px;
}
.breakdown-role { font-size: 13px; font-weight: 700; min-width: 70px; }
.breakdown-bar-track {
  flex: 1; height: 8px; background: rgba(255,255,255,.08);
  border-radius: 999px; overflow: hidden;
}
.breakdown-bar {
  height: 100%; border-radius: 999px;
  transition: width .6s ease;
}
.breakdown-count {
  font-size: 13px; font-weight: 700; color: var(--text); min-width: 20px; text-align: right;
}

/* Empty state */
.match-empty {
  text-align: center; padding: 24px;
  border: 1px solid var(--line); border-radius: 14px;
  background: rgba(255,255,255,.02);
  margin-bottom: 18px;
}
.match-empty p { margin: 0 0 6px; color: var(--muted); font-size: 14px; }
.match-empty-hint { font-size: 12px !important; color: var(--dim) !important; }

/* Time badge in match overlay */
.match-time-badge {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; margin-bottom: 18px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
  font-size: 13px; color: var(--muted);
}

/* Done button */
.match-done-btn {
  width: 100%; min-height: 48px;
  border: 1px solid var(--line); border-radius: 14px;
  background: var(--panel); color: var(--text);
  font-weight: 800; font-size: 15px;
  cursor: pointer;
}
