/* ==========================================================================
   3 Towns · brand styles
   Palette sampled from the logo:  navy #112355 · teal #04808E · orange #B54F22
   ========================================================================== */
:root {
  --navy: #112355; --navy-900: #0a1638; --navy-700: #1b2f6b; --navy-50: #eef1f8;
  --teal: #04808e; --teal-ink: #077482; --teal-600: #036b77; --teal-50: #e6f3f4;
  --orange: #b54f22; --orange-600: #9a421c; --orange-50: #fbefe8; --orange-300: #e08a5c;
  --cream: #faf6ef; --sand: #f3ece0; --sand-2: #ebe2d2; --line: #e6ddcd;
  --ink: #141d36; --muted: #5d6478; --white: #fff;
  --ok: #157a4a; --bad: #b3261e;
  --r-sm: 10px; --r: 16px; --r-lg: 22px; --r-xl: 28px;
  --shadow-sm: 0 1px 2px rgba(17,35,85,.06), 0 1px 1px rgba(17,35,85,.04);
  --shadow: 0 1px 2px rgba(17,35,85,.05), 0 8px 24px -8px rgba(17,35,85,.14);
  --shadow-lg: 0 24px 60px -18px rgba(10,22,56,.35);
  --f-head: 'Outfit', system-ui, sans-serif;
  --f-body: 'Plus Jakarta Sans', system-ui, sans-serif;
  --f-cond: 'Barlow Condensed', 'Outfit', sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, monospace;
  --ease: cubic-bezier(.2,.8,.2,1);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--f-body); color: var(--ink); font-size: 15px; line-height: 1.55;
  background: var(--cream);
  background-image: radial-gradient(rgba(17,35,85,.06) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
svg { width: 1em; height: 1em; flex: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--f-head); line-height: 1.15; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--teal) 55%, transparent); outline-offset: 2px; border-radius: 8px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Top bar ---------- */
.topbar { position: relative; background: var(--navy); color: #fff; overflow: hidden; }
.topbar__glow { position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(420px 220px at 92% -30%, rgba(4,128,142,.55), transparent 70%),
    radial-gradient(360px 200px at 105% 120%, rgba(181,79,34,.45), transparent 70%),
    radial-gradient(300px 160px at -5% 130%, rgba(4,128,142,.25), transparent 70%); }
.topbar::after { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px); background-size: 18px 18px; }
.topbar__inner { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 14px; padding-top: 18px; padding-bottom: 18px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.brand__mark { width: 46px; height: auto; filter: drop-shadow(0 4px 10px rgba(0,0,0,.25)); }
.brand__text { display: flex; flex-direction: column; }
.brand__name { font-family: var(--f-head); font-weight: 800; font-size: 26px; letter-spacing: .04em; line-height: 1; white-space: nowrap; }
.brand__towns { font-family: var(--f-cond); font-weight: 600; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: #e08a5c; margin-top: 4px; line-height: 1; white-space: nowrap; }
.brand__tag { font-family: var(--f-cond); font-weight: 600; font-size: 16px; letter-spacing: .02em; color: #7fd3dc; margin-top: 3px; white-space: nowrap; }

.stats { display: flex; flex-wrap: wrap; gap: 8px; }
.stat { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px 7px 9px; border-radius: 999px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.14); font-size: 13.5px; color: rgba(255,255,255,.85);
  backdrop-filter: blur(6px); white-space: nowrap; }
.stat b { color: #fff; font-family: var(--f-head); font-size: 15px; font-weight: 700; }
.stat__ic { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font-size: 13px; }
.stat__ic--pts { background: #f5c451; color: #6b4a00; }
.stat__ic--streak { background: var(--orange); color: #ffe1cf; }
.stat__ic--entries { background: var(--teal); color: #d8f6f8; }
.stat.bump { animation: bump .5s var(--ease); }
@keyframes bump { 30% { transform: scale(1.12); background: rgba(255,255,255,.22); } }
.guestchip { display: inline-flex; align-items: center; gap: 10px; padding: 6px 6px 6px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.08); color: #fff; font-size: 13.5px; }
.guestchip small { color: rgba(255,255,255,.7); font-size: 12.5px; }
.guestchip .btn { padding: 8px 14px; font-size: 13.5px; }

/* ---------- Tabs ---------- */
.tabs-wrap { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--cream) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.tabs { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 6px; margin: 10px 0;
  background: var(--sand); border-radius: 16px; border: 1px solid var(--line); }
.tabs button { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 6px; border: 0; background: none;
  padding: 10px 4px; border-radius: 11px; font-family: var(--f-head); font-weight: 600; font-size: 14.5px; color: var(--muted); transition: color .25s; }
.tabs button svg { font-size: 17px; }
.tabs button[aria-selected="true"] { color: #fff; }
.tabs__ink { position: absolute; z-index: 0; top: 6px; bottom: 6px; left: 6px; border-radius: 11px; background: var(--teal);
  box-shadow: 0 6px 16px -6px rgba(4,128,142,.7); transition: transform .35s var(--ease), width .35s var(--ease); }

/* ---------- Layout ---------- */
.view { padding-top: 16px; padding-bottom: 40px; min-height: 60vh; outline: none; }
.stack { display: grid; gap: 14px; }
.grid2 { display: grid; gap: 14px; }
.panel { animation: fadeUp .45s var(--ease) both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; box-shadow: var(--shadow-sm); }
.card h2 { font-size: 21px; font-weight: 700; }
.card h3 { font-size: 17px; font-weight: 700; }
.card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.card__icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; font-size: 22px; flex: none; }
.ic-teal { background: var(--teal-50); color: var(--teal-ink); }
.ic-orange { background: var(--orange-50); color: var(--orange); }
.ic-navy { background: var(--navy-50); color: var(--navy); }
.lede { color: var(--muted); font-size: 14px; margin-top: 4px; }
.eyebrow { font-family: var(--f-cond); font-weight: 700; font-size: 15px; letter-spacing: .08em; text-transform: uppercase; color: var(--orange); display: inline-flex; align-items: center; gap: 6px; }
.section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 8px 2px 2px; }
.section-title h2 { font-size: 20px; }
.section-title span { color: var(--muted); font-size: 13px; }

/* Badges */
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 999px; line-height: 1.4; white-space: nowrap; }
.badge--sample { background: var(--sand); color: #6f6553; border: 1px dashed #c9bba2; }
.badge--new { background: var(--teal-50); color: var(--teal-ink); }
.badge--ok { background: #e5f4ec; color: var(--ok); }
.badge--navy { background: var(--navy-50); color: var(--navy); }
.badge--orange { background: var(--orange-50); color: var(--orange-600); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 13px; padding: 12px 18px;
  font-family: var(--f-head); font-weight: 700; font-size: 15.5px; letter-spacing: .005em; line-height: 1.1; text-decoration: none;
  transition: transform .15s var(--ease), box-shadow .2s, background .2s, color .2s; position: relative; overflow: hidden; white-space: nowrap; }
.btn svg { font-size: 18px; }
.btn:active { transform: scale(.97); }
.btn--orange { background: var(--orange); color: #fff; box-shadow: 0 6px 16px -8px rgba(181,79,34,.9); }
.btn--orange:hover { background: var(--orange-600); }
.btn--teal { background: var(--teal); color: #fff; box-shadow: 0 6px 16px -8px rgba(4,128,142,.9); }
.btn--teal:hover { background: var(--teal-600); }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-700); }
.btn--ghost { background: #fff; color: var(--navy); border: 1.5px solid var(--line); }
.btn--ghost:hover { border-color: var(--navy); }
.btn--light { background: #fff; color: var(--navy); }
.btn--block { width: 100%; }
.btn--sm { padding: 8px 12px; font-size: 13.5px; border-radius: 10px; }
.btn[disabled], .btn.is-done { cursor: default; }
.btn.is-done { background: #e5f4ec; color: var(--ok); box-shadow: none; }
.btn::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.28) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .7s var(--ease); }
.btn--orange:hover::after, .btn--teal:hover::after { transform: translateX(120%); }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--teal-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.iconbtn { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--navy); font-size: 18px; }

/* Forms */
.field { display: grid; gap: 6px; margin-top: 12px; }
.field > span { font-size: 13.5px; font-weight: 600; color: #3b4258; }
.field > span em { font-style: normal; font-weight: 500; color: var(--muted); }
.input, .select, textarea.input { width: 100%; border: 1.5px solid var(--line); background: #fdfbf7; border-radius: 12px; padding: 12px 14px; font-size: 16px;
  transition: border-color .2s, box-shadow .2s, background .2s; min-height: 48px; appearance: none; -webkit-appearance: none; }
.input::placeholder { color: #9a9fae; }
.input:focus, .select:focus { outline: none; border-color: var(--teal); background: #fff; box-shadow: 0 0 0 4px rgba(4,128,142,.14); }
.select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23112355' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 10l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 40px; }
input[type="date"].input { display: block; }
.check { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; font-size: 14px; color: #3b4258; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--teal); margin: 1px 0 0; flex: none; }
.form-msg { margin-top: 10px; font-size: 14px; border-radius: 12px; padding: 10px 12px; display: flex; gap: 8px; align-items: flex-start; }
.form-msg svg { margin-top: 3px; }
.form-msg--ok { background: #e5f4ec; color: #0f5e38; }
.form-msg--info { background: var(--teal-50); color: #075560; }
.form-msg--bad { background: #fbe9e7; color: var(--bad); }
.fine { font-size: 12.5px; color: var(--muted); margin-top: 10px; }
.row2 { display: grid; gap: 0 12px; }

/* Progress */
.progress { height: 10px; border-radius: 999px; background: var(--sand); overflow: hidden; margin-top: 10px; }
.progress > i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--teal), var(--orange));
  transition: width .9s var(--ease); }

/* ---------- Deals ---------- */
.filters { display: grid; gap: 10px; }
.towns { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.towns::-webkit-scrollbar, .chips::-webkit-scrollbar { display: none; }
.town { display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff;
  font-weight: 600; font-size: 14px; white-space: nowrap; color: var(--ink); transition: all .2s; }
.town svg { font-size: 15px; }
.town[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.town--navy svg { color: var(--navy); } .town--teal svg { color: var(--teal); } .town--orange svg { color: var(--orange); }
.town[aria-pressed="true"] svg { color: #fff; }
.town--all svg { color: var(--muted); }
.chips { display: flex; gap: 7px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; margin: 0 -16px; padding-left: 16px; padding-right: 16px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 13px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff;
  font-size: 14px; font-weight: 600; white-space: nowrap; color: #353d55; transition: all .2s; }
.chip svg { font-size: 15px; color: var(--teal-ink); }
.chip[aria-pressed="true"] { background: var(--teal); border-color: var(--teal); color: #fff; }
.chip[aria-pressed="true"] svg { color: #fff; }

.deals { display: grid; gap: 14px; }
.deal { display: grid; grid-template-columns: 64px 1fr; gap: 14px; position: relative; transition: transform .25s var(--ease), box-shadow .25s; animation: fadeUp .45s var(--ease) both; }
.deal:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.deal__thumb { width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center; font-size: 28px; overflow: hidden; }
.deal__thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb--navy { background: linear-gradient(135deg, #1b2f6b, #112355); color: #b9c6ea; }
.thumb--teal { background: linear-gradient(135deg, #07a0b0, #04808e); color: #d6f5f8; }
.thumb--orange { background: linear-gradient(135deg, #d0652f, #b54f22); color: #ffe2d2; }
.deal__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 13px; color: var(--muted); }
.deal__meta .sep { width: 3px; height: 3px; border-radius: 50%; background: #b9b2a4; }
.deal__biz { font-size: 17px; font-weight: 700; margin-top: 2px; }
.deal__offer { font-family: var(--f-head); font-size: 19px; font-weight: 700; color: var(--orange); line-height: 1.2; margin-top: 6px; }
.deal__terms { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.deal__top { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.deal .btn-row { margin-top: 12px; }
.code { margin-top: 12px; border: 2px dashed var(--teal); background: var(--teal-50); border-radius: 14px; padding: 12px 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; animation: pop .45s var(--ease); }
.code__val { font-family: var(--f-mono); font-weight: 700; font-size: 22px; letter-spacing: .06em; color: var(--navy); }
.code__hint { font-size: 12.5px; color: #075560; }
.code--redeemed { border-color: #9ccbb1; background: #eef8f2; }
@keyframes pop { 0% { transform: scale(.94); opacity: 0; } 60% { transform: scale(1.02); opacity: 1; } }

.flash { position: relative; overflow: hidden; color: #fff; border: 0; padding: 20px;
  background: radial-gradient(500px 220px at 100% 0%, rgba(255,180,130,.35), transparent 60%), linear-gradient(135deg, #c35a28 0%, #b54f22 45%, #8f3d18 100%);
  box-shadow: 0 18px 40px -18px rgba(181,79,34,.8); }
.flash::before { content: ''; position: absolute; right: -40px; top: -40px; width: 180px; height: 180px; border-radius: 50%; border: 22px solid rgba(255,255,255,.07); }
.flash__label { display: inline-flex; align-items: center; gap: 6px; font-family: var(--f-cond); font-size: 16px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #ffe1cf; }
.flash__label svg { animation: zap 1.6s infinite; }
@keyframes zap { 0%,100% { opacity: 1; } 50% { opacity: .45; } }
.timer { display: inline-flex; gap: 4px; margin-left: 4px; }
.timer span { font-family: var(--f-mono); font-weight: 700; font-size: 14px; background: rgba(0,0,0,.22); border-radius: 6px; padding: 2px 6px; color: #fff; letter-spacing: .03em; }
.flash .deal__biz { color: #fff; font-size: 20px; margin-top: 10px; }
.flash .deal__meta { color: rgba(255,255,255,.78); }
.flash .deal__meta .sep { background: rgba(255,255,255,.5); }
.flash .deal__offer { color: #fff; font-size: 24px; }
.flash .deal__terms { color: rgba(255,255,255,.75); }
.flash .badge--sample { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.4); }
.flash .code { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.6); }
.flash .code__val { color: #fff; } .flash .code__hint { color: #ffe1cf; }
.flash__body { position: relative; z-index: 1; display: grid; gap: 0; }
.empty { text-align: center; padding: 30px 18px; color: var(--muted); }
.empty svg { font-size: 34px; color: var(--teal); margin: 0 auto 8px; }

.browse-note { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 16px; background: var(--navy-50); color: var(--navy); font-size: 13.5px; }
.browse-note svg { font-size: 20px; flex: none; color: var(--teal-ink); }
.browse-note .linkbtn { color: var(--navy); }

/* ---------- Rewards (reuses dark hero card) ---------- */
.giveaway { position: relative; overflow: hidden; background: linear-gradient(150deg, var(--navy) 0%, #142c6b 60%, #0e5a73 130%); color: #fff; border: 0; }
.giveaway::after { content: ''; position: absolute; width: 260px; height: 260px; right: -90px; top: -110px; border-radius: 50%;
  background: radial-gradient(circle, rgba(4,128,142,.65), transparent 70%); }
.giveaway > * { position: relative; z-index: 1; }
.giveaway .lede { color: rgba(255,255,255,.78); }
.giveaway .card__icon { background: rgba(255,255,255,.12); color: #ffd27a; }
.prize { font-family: var(--f-head); font-weight: 800; font-size: 34px; line-height: 1.05; margin-top: 12px; letter-spacing: -.02em; }
.prize small { display: block; font-size: 14px; font-weight: 600; color: #7fd3dc; letter-spacing: 0; margin-top: 4px; }
.giveaway .progress { background: rgba(255,255,255,.14); height: 12px; }
.giveaway .progress > i { background: linear-gradient(90deg, #26b3c2, #f08a4f); }
.giveaway__foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px; font-size: 13px; margin-top: 8px; color: rgba(255,255,255,.82); }
.giveaway__foot b { color: #fff; }
.entries-big { display: flex; align-items: baseline; gap: 6px; font-family: var(--f-head); }
.entries-big b { font-size: 34px; }

.rewards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-top: 12px; }
.reward-card { border: 1px solid var(--line); border-radius: 16px; padding: 14px; background: var(--cream); display: flex; flex-direction: column; gap: 6px; }
.reward-card h3 { font-size: 16px; margin: 0; line-height: 1.25; }
.reward-card__top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.reward-card__cost { font-family: var(--f-mono); font-weight: 700; font-size: 13px; color: var(--teal-ink); display: inline-flex; align-items: center; gap: 4px; }
.reward-card__cost svg { font-size: 14px; }
.reward-card__biz { font-size: 13px; color: var(--muted); margin: 0; }
.reward-card__note { font-size: 12px; color: var(--muted); margin: 0 0 4px; }
.reward-card .btn-row { margin-top: auto; }
.rewards-hero .fine a { color: #9fe3ea; }

.challenge { margin-top: 14px; }
.challenge__row { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 14.5px; }
.challenge__row b { font-family: var(--f-head); }
.challenge .progress { height: 8px; margin-top: 7px; }
.challenge.done .challenge__row b { color: var(--ok); }
.earn { list-style: none; padding: 0; margin: 10px 0 0; }
.earn li { display: grid; grid-template-columns: 36px 1fr auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.earn li:last-child { border-bottom: 0; }
.earn .ic { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; font-size: 18px; }
.earn b { font-family: var(--f-head); font-size: 16px; color: var(--teal-ink); }
.reflink { margin-top: 12px; display: flex; align-items: center; gap: 10px; border: 2px dashed var(--teal); border-radius: 14px; padding: 12px 14px; background: var(--teal-50); }
.reflink code { font-family: var(--f-mono); font-weight: 700; font-size: 14px; color: var(--navy); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.wallet { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.wallet li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--cream); border: 1px solid var(--line); }
.wallet .w-offer { font-size: 13.5px; font-weight: 600; }
.wallet .w-biz { font-size: 12.5px; color: var(--muted); }
.wallet code { font-family: var(--f-mono); font-weight: 700; color: var(--navy); font-size: 14px; }

/* ---------- Businesses ---------- */
.offer { position: relative; overflow: hidden; border: 2px solid var(--orange); background:
  radial-gradient(420px 200px at 100% 0%, rgba(181,79,34,.08), transparent 70%), #fff; }
.offer h2 { font-size: 26px; margin-top: 6px; }
.offer h2 .hl { color: var(--orange); }
.offer p { color: #3f465c; font-size: 14.5px; margin-top: 8px; }
.offer s { color: var(--muted); }
.countdown { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; padding: 8px 12px; border-radius: 12px; background: var(--orange-50); color: var(--orange-600); font-weight: 700; font-size: 14px; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.plan { text-align: left; border: 2px solid var(--line); border-radius: 16px; background: #fff; padding: 12px 14px; transition: all .2s; position: relative; }
.plan b { display: block; font-family: var(--f-head); font-size: 22px; color: var(--navy); }
.plan b small { font-size: 13px; color: var(--muted); font-weight: 600; }
.plan span { font-size: 12.5px; color: var(--muted); }
.plan[aria-pressed="true"] { border-color: var(--orange); background: var(--orange-50); box-shadow: 0 8px 20px -12px rgba(181,79,34,.7); }
.plan[aria-pressed="true"]::after { content: ''; position: absolute; top: 10px; right: 10px; width: 18px; height: 18px; border-radius: 50%; background: var(--orange)
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/12px no-repeat; }
.plan .save { position: absolute; top: -10px; left: 12px; background: var(--teal); color: #fff; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; letter-spacing: .03em; }
.spots { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 14.5px; }
.spots th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; padding: 8px 6px; border-bottom: 1px solid var(--line); }
.spots td { padding: 9px 6px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.spots tr:last-child td { border-bottom: 0; }
.spots td:last-child, .spots th:last-child { text-align: right; }
.spots .cat { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.spots .cat svg { color: var(--teal-ink); font-size: 17px; }
.dots { display: inline-flex; gap: 3px; vertical-align: middle; margin-right: 6px; }
.dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--sand-2); }
.dots i.on { background: var(--teal); }
.full { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.price-big { font-family: var(--f-head); font-weight: 800; font-size: 54px; color: var(--teal-ink); line-height: 1; margin-top: 12px; letter-spacing: -.03em; }
.price-big small { font-size: 17px; color: var(--muted); font-weight: 600; letter-spacing: 0; }
.benefits { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 0; }
.benefits li { display: flex; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.benefits li:last-child { border-bottom: 0; }
.benefits .tick { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--teal-50); color: var(--teal-ink); font-size: 13px; flex: none; }
.compare { width: 100%; border-collapse: separate; border-spacing: 0; margin-top: 14px; font-size: 14px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.compare th, .compare td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare tr:last-child td { border-bottom: 0; }
.compare thead th { background: var(--cream); font-family: var(--f-head); font-size: 14px; }
.compare .trio { background: var(--teal-50); color: #064e57; font-weight: 600; }
.compare thead .trio { background: var(--teal); color: #fff; }
.compare td:first-child { color: var(--muted); font-weight: 600; }

/* Wizard */
.wizard__steps { display: flex; gap: 6px; margin: 14px 0 4px; }
.wizard__steps i { flex: 1; height: 5px; border-radius: 999px; background: var(--sand-2); transition: background .3s; }
.wizard__steps i.on { background: var(--teal); }
.wizard__label { font-size: 12.5px; color: var(--muted); font-weight: 600; letter-spacing: .03em; text-transform: uppercase; }
.wizard__nav { display: flex; gap: 10px; justify-content: space-between; margin-top: 18px; }
.wizard__nav .btn--orange, .wizard__nav .btn--teal { flex: 1; }
.dropzone { display: grid; place-items: center; text-align: center; gap: 6px; border: 2px dashed var(--line); border-radius: 16px; padding: 18px; background: var(--cream); color: var(--muted); cursor: pointer; transition: all .2s; font-size: 14px; }
.dropzone:hover { border-color: var(--teal); color: var(--teal-ink); }
.dropzone svg { font-size: 26px; color: var(--teal-ink); }
.photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.photo { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--sand); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo button { position: absolute; top: 5px; right: 5px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(10,22,56,.7); color: #fff; display: grid; place-items: center; font-size: 13px; }
.photo span { position: absolute; left: 6px; bottom: 6px; font-size: 10.5px; font-weight: 700; background: rgba(255,255,255,.9); color: var(--navy); padding: 1px 6px; border-radius: 6px; }
.summary { display: grid; gap: 0; margin-top: 12px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.summary div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border-bottom: 1px solid var(--line); font-size: 14px; }
.summary div:last-child { border-bottom: 0; }
.summary dt, .summary span:first-child { color: var(--muted); }
.summary b { text-align: right; }
.summary .total { background: var(--cream); font-size: 15px; }
.summary .total b { font-family: var(--f-head); font-size: 18px; color: var(--navy); }
.paybox { margin-top: 14px; border-radius: 16px; padding: 14px; background: var(--navy-50); color: var(--navy); display: flex; gap: 12px; align-items: flex-start; font-size: 14px; }
.paybox svg { font-size: 22px; flex: none; color: var(--teal-ink); margin-top: 1px; }
.confirm { text-align: center; padding: 26px 18px; }
.confirm__burst { width: 76px; height: 76px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; font-size: 36px; color: #fff;
  background: linear-gradient(135deg, var(--teal), #06a3b4); box-shadow: 0 0 0 10px var(--teal-50); animation: pop .6s var(--ease); }
.confirm h2 { font-size: 24px; }
.confirm p { color: var(--muted); margin-top: 8px; }
.confirm .btn-row { justify-content: center; }
.preview-deal { text-align: left; margin-top: 16px; }

/* ---------- Dashboard ---------- */
.dash-switch { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.kpi { border-radius: 16px; padding: 14px; background: var(--cream); border: 1px solid var(--line); }
.kpi__top { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 13px; font-weight: 600; }
.kpi__top svg { font-size: 18px; }
.kpi b { display: block; font-family: var(--f-head); font-size: 30px; font-weight: 800; color: var(--teal-ink); margin-top: 4px; letter-spacing: -.02em; }
.kpi:nth-child(2) b, .kpi:nth-child(3) b { color: var(--orange); }
.kpi:nth-child(4) b { color: var(--navy); }
.chart { margin-top: 16px; }
.chart__bars { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; align-items: end; height: 150px; padding: 0 2px; border-bottom: 1.5px solid var(--line); }
.bar { position: relative; border-radius: 9px 9px 3px 3px; height: 0; transition: height .9s var(--ease); background: var(--teal); min-height: 4px; }
.bar:nth-child(even) { background: var(--orange); }
.bar span { position: absolute; top: -20px; left: 50%; transform: translateX(-50%); font-size: 11.5px; font-weight: 700; color: var(--muted); }
.chart__labels { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; margin-top: 6px; font-size: 12px; color: var(--muted); text-align: center; font-weight: 600; }
.chart__cap { font-size: 13px; color: var(--muted); margin-top: 8px; }
.dlist { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 8px; }
.dlist li { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; padding: 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--cream); }
.dlist .o { font-weight: 700; font-size: 14.5px; }
.dlist .s { font-size: 12.5px; color: var(--muted); }
.verify { display: flex; gap: 8px; margin-top: 12px; }
.verify .input { font-family: var(--f-mono); font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }

/* ---------- Sheet / modal ---------- */
.sheet { position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-end; justify-content: center; }
.sheet[hidden] { display: none; }
.sheet__scrim { position: absolute; inset: 0; background: rgba(10,22,56,.5); backdrop-filter: blur(3px); animation: fade .25s both; }
@keyframes fade { from { opacity: 0; } }
.sheet__panel { position: relative; width: 100%; max-width: 480px; max-height: 92vh; overflow: auto; background: #fff; border-radius: 26px 26px 0 0;
  padding: 26px 20px calc(22px + env(safe-area-inset-bottom)); box-shadow: var(--shadow-lg); animation: up .4s var(--ease) both; }
.sheet__panel::before { content: ''; position: absolute; top: 9px; left: 50%; width: 42px; height: 5px; border-radius: 5px; background: var(--sand-2); transform: translateX(-50%); }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
.sheet__close { position: absolute; top: 14px; right: 14px; }
.sheet__hero { display: flex; gap: 12px; align-items: center; margin-bottom: 4px; padding-right: 40px; }
.sheet__hero img { width: 48px; }
.sheet__hero h2 { font-size: 22px; }
.sheet__perks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0 2px; }
.sheet__perks div { border-radius: 14px; padding: 10px 8px; text-align: center; font-size: 12px; font-weight: 600; color: #3b4258; background: var(--cream); }
.sheet__perks svg { display: block; margin: 0 auto 4px; font-size: 20px; }
.sheet__perks .p1 svg { color: var(--navy); } .sheet__perks .p2 svg { color: var(--teal); } .sheet__perks .p3 svg { color: var(--orange); }

/* ---------- Toasts ---------- */
.toasts { position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 80; display: grid; gap: 8px; width: max-content; max-width: calc(100vw - 32px); }
.toast { display: flex; align-items: center; gap: 10px; background: var(--navy-900); color: #fff; padding: 11px 16px 11px 12px; border-radius: 14px; box-shadow: var(--shadow-lg); font-size: 14.5px; font-weight: 600;
  animation: toastIn .4s var(--ease) both; }
.toast.out { animation: toastOut .3s ease both; }
.toast .ic { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #f5c451; color: #6b4a00; font-size: 14px; }
.toast b { color: #ffd27a; font-family: var(--f-head); }
@keyframes toastIn { from { transform: translateY(16px) scale(.96); opacity: 0; } }
@keyframes toastOut { to { transform: translateY(10px); opacity: 0; } }
.confetti { position: fixed; pointer-events: none; z-index: 90; width: 8px; height: 8px; border-radius: 2px; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-900); color: rgba(255,255,255,.75); padding: 34px 0 calc(34px + env(safe-area-inset-bottom)); font-size: 13.5px; }
.footer__inner { display: grid; gap: 18px; }
.footer__logo { width: 120px; height: auto; }
.footer__copy { display: grid; gap: 8px; }
.footer__towns { display: flex; align-items: center; gap: 8px; color: #fff; font-weight: 600; font-family: var(--f-head); font-size: 15px; flex-wrap: wrap; }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; margin-left: 4px; }
.dot--navy { background: #6f86c9; } .dot--teal { background: var(--teal); } .dot--orange { background: var(--orange-300); }
.footer__fine { font-size: 12.5px; color: rgba(255,255,255,.6); }
.footer .linkbtn { color: #7fd3dc; font-size: 12.5px; }

/* ---------- Responsive ---------- */
@media (max-width: 420px) {
  .brand__towns { font-size: 9px; letter-spacing: .05em; }
}
@media (max-width: 379px) {
  .pagebar .brand__towns { display: none; }
}
@media (min-width: 560px) {
  .row2 { grid-template-columns: 1fr 1fr; }
  .chips { margin: 0; padding-left: 0; padding-right: 0; flex-wrap: wrap; }
}
@media (min-width: 760px) {
  .wrap { padding: 0 24px; }
  .topbar__inner { flex-direction: row; align-items: center; justify-content: space-between; padding-top: 22px; padding-bottom: 22px; }
  .brand__mark { width: 52px; } .brand__name { font-size: 30px; } .brand__towns { font-size: 12px; letter-spacing: .1em; }
  .stats { justify-content: flex-end; }
  .tabs { max-width: 620px; }
  .deals { grid-template-columns: repeat(2, 1fr); }
  .grid2 { grid-template-columns: 1fr 1fr; align-items: start; }
  .grid2 > .stack { align-content: start; }
  .flash { padding: 26px; }
  .flash__body { grid-template-columns: 1fr auto; align-items: end; gap: 20px; }
  .flash__body .btn-row { margin-top: 0; }
  .card { padding: 22px; }
  .sheet { align-items: center; }
  .sheet__panel { border-radius: 26px; padding: 30px 26px 26px; }
  .sheet__panel::before { display: none; }
  .footer__inner { grid-template-columns: auto 1fr; align-items: center; gap: 28px; }
}
@media (min-width: 1080px) {
  .deals { grid-template-columns: repeat(3, 1fr); }
  .deals .flash { grid-column: 1 / -1; }
  .view { padding-top: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

.benefits--compact li { padding: 8px 0; font-size: 14px; }
.footer__social { display: flex; gap: 8px; flex-wrap: wrap; }
.social { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,.18); color: #fff; text-decoration: none; font-size: 13px; font-weight: 600; transition: background .2s; }
.social:hover { background: rgba(255,255,255,.1); }
.social svg { font-size: 16px; }
[hidden] { display: none !important; }

.stat > span:last-child b { margin-right: 1px; }
.wallet code { white-space: nowrap; }
.spots td:nth-child(2), .full { white-space: nowrap; }
.confirm > p { color: var(--muted); }
.confirm .deal__offer { color: var(--orange); }
.dash-switch { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.dash-switch::-webkit-scrollbar { display: none; }
@media (max-width: 559px) {
  .towns { display: grid; grid-template-columns: auto repeat(3, 1fr); gap: 6px; }
  .town { justify-content: center; padding: 9px 8px; font-size: 13.5px; gap: 5px; }
  .town svg { font-size: 13px; }
  .town .wide { display: none; }
  .dots { display: none; }
  .guestchip { width: 100%; justify-content: space-between; }
}

@media (min-width: 760px) {
  #listing { position: sticky; top: 92px; }
  .flash__top { justify-content: flex-start !important; gap: 12px !important; }
}
@media (min-width: 760px) { .grid2 > .stack:has(#listing) { align-self: stretch; align-content: start; } }

/* ==========================================================================
   v3: photos, business profile, legal links, content pages
   ========================================================================== */
/* Deal card with photos: cover image + thumbnails */
.deal--photo { grid-template-columns: 1fr; padding-top: 0; overflow: hidden; gap: 12px; }
.deal__cover, .biz__gallery { position: relative; margin: 0 -18px; aspect-ratio: 16 / 9; background: var(--sand); overflow: hidden; }
.deal__cover .gal__main, .biz__gallery .gal__main { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity .25s; }
.gal__thumbs { position: absolute; left: 10px; bottom: 10px; display: flex; gap: 6px; }
.gal__thumb { width: 40px; height: 40px; padding: 0; border-radius: 10px; overflow: hidden; border: 2px solid rgba(255,255,255,.75); background: #fff; box-shadow: 0 4px 12px -4px rgba(10,22,56,.5); cursor: pointer; transition: transform .2s var(--ease), border-color .2s; }
.gal__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gal__thumb[aria-pressed="true"] { border-color: var(--orange); transform: translateY(-2px); }
.gal__kind { position: absolute; right: 10px; top: 10px; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; background: rgba(10,22,56,.62); color: #fff; padding: 3px 8px; border-radius: 999px; backdrop-filter: blur(4px); }
.gal__kind:empty { display: none; }
.bizlink { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; display: inline-flex; align-items: center; gap: 2px; }
.bizlink svg { font-size: 14px; opacity: .55; transition: transform .2s var(--ease); }
.bizlink:hover svg { transform: translateX(2px); opacity: 1; }
.deal .btn-row { flex-wrap: wrap; }

/* Business profile sheet */
.sheet--biz .sheet__panel { padding-top: 0; }
.sheet--biz .sheet__panel::before { z-index: 2; background: rgba(255,255,255,.8); }
.sheet--biz .sheet__close { z-index: 3; background: rgba(255,255,255,.92); }
.biz__gallery { margin: 0 -22px; aspect-ratio: 4 / 3; border-radius: 26px 26px 0 0; }
.biz__gallery .gal__thumb { width: 52px; height: 52px; }
.biz__nophoto { margin: 0 -22px; height: 150px; border-radius: 26px 26px 0 0; display: grid; place-items: center; align-content: center; gap: 8px; font-size: 40px; }
.biz__nophoto span { font-size: 12.5px; font-weight: 600; opacity: .85; }
.biz__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-top: 16px; }
.biz__head h2 { font-size: 24px; margin-top: 2px; }
.biz__sub { margin-top: 18px; font-size: 15px; color: var(--muted); font-weight: 600; }
.biz__deals { display: grid; gap: 10px; margin-top: 8px; }
.biz__deal { border: 1px solid var(--line); border-radius: 16px; padding: 14px; background: var(--cream); }
.biz__deal .deal__offer { margin-top: 0; }
.biz__deal .btn-row { margin-top: 10px; }

/* Wizard photo slots */
.photos { gap: 10px; margin-top: 14px; }
.photo { border: 1px solid var(--line); }
.photo .photo__cover { position: absolute; left: 6px; top: 6px; bottom: auto; font-size: 10.5px; font-weight: 700; background: var(--orange); color: #fff; padding: 2px 7px; border-radius: 6px; }
.photo__kind { position: absolute; left: 5px; right: 5px; bottom: 5px; font: 600 11.5px var(--f-body); color: var(--navy); background: rgba(255,255,255,.94); border: 0; border-radius: 8px; padding: 4px 6px; }
.photo--empty { display: grid; place-items: center; align-content: center; gap: 2px; text-align: center; cursor: pointer; border: 2px dashed var(--line); background: var(--cream); color: var(--muted); transition: border-color .2s, color .2s, background .2s; padding: 6px; }
.photo--empty svg { font-size: 22px; color: var(--teal-ink); margin-bottom: 2px; }
.photo--empty b { font-size: 13px; color: var(--navy); }
.photo--empty span { font-size: 11.5px; }
.photo--empty:hover, .photo--empty:focus-within { border-color: var(--teal); background: var(--teal-50); }
.photo-meta { display: flex; justify-content: space-between; gap: 8px; margin-top: 10px; font-size: 12.5px; color: var(--muted); }
.photo-count b { color: var(--navy); }
.photo-count.is-full b { color: var(--orange); }

/* Agreement lines */
.agree { line-height: 1.5; }
.agree a, .agree-box a, .rules-link { color: var(--teal-ink); font-weight: 600; text-underline-offset: 2px; }
.giveaway .rules-link { color: #9fe3ea; white-space: nowrap; }
.agree-box { margin-top: 14px; padding: 12px; border-radius: 12px; background: var(--cream); border: 1.5px solid var(--line); }
.agree-box.is-bad { border-color: var(--bad); background: #fdf2f1; }

/* Footer links */
.footer__links { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; }
.footer__links a:not(.social) { color: #fff; font-weight: 600; text-decoration: none; font-size: 14px; }
.footer__links a:not(.social):hover { color: #7fd3dc; text-decoration: underline; }
.footer__social { display: inline-flex; gap: 8px; }

/* ---------- Content pages (about / terms / privacy / rules) ---------- */
.pagebar .topbar__inner { flex-direction: row; align-items: center; justify-content: space-between; }
.backlink { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); color: #fff; text-decoration: none; font-weight: 600; font-size: 14px; transition: background .2s; }
.backlink:hover { background: rgba(255,255,255,.18); }
.pagenav { background: var(--cream); border-bottom: 1px solid var(--line); }
.pagenav .wrap { display: flex; gap: 6px; overflow-x: auto; padding-top: 10px; padding-bottom: 10px; scrollbar-width: none; }
.pagenav a { flex: none; padding: 8px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 600; color: var(--navy); text-decoration: none; border: 1px solid var(--line); background: #fff; }
.pagenav a[aria-current="page"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.doc { max-width: 820px; margin: 0 auto; padding: 22px 0 48px; }
.doc__hero { padding: 6px 0 18px; }
.doc__hero h1 { font-size: clamp(30px, 7vw, 44px); line-height: 1.05; font-weight: 800; color: var(--navy); letter-spacing: -.01em; }
.doc__hero .lede { font-size: 16px; margin-top: 10px; max-width: 60ch; }
.doc__meta { font-size: 13px; color: var(--muted); margin-top: 10px; }
.doc .card { padding: 22px; }
.doc .card + .card { margin-top: 14px; }
.prose { font-size: 15px; line-height: 1.65; color: #2b3350; }
.prose h2 { font-size: 20px; color: var(--navy); margin: 26px 0 8px; scroll-margin-top: 16px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 16px; color: var(--navy); margin: 18px 0 6px; }
.prose p, .prose ul, .prose ol { margin: 8px 0; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin: 4px 0; }
.prose a { color: var(--teal-ink); font-weight: 600; text-underline-offset: 2px; }
.prose strong { color: var(--ink); }
.prose .caps { text-transform: uppercase; font-size: 14px; letter-spacing: .01em; }
.toc { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; counter-reset: toc; }
.toc a { display: block; padding: 6px 0; color: var(--navy); font-weight: 600; text-decoration: none; font-size: 14px; border-bottom: 1px dashed var(--line); }
.toc a:hover { color: var(--teal-ink); }
.ph { background: #fff3c4; color: #6b4a00; border: 1px dashed #d9b44a; border-radius: 6px; padding: 0 5px; font-weight: 600; white-space: normal; }
.draft-banner { background: #fff3c4; border-bottom: 1px solid #e5c766; color: #5a3f00; font-size: 14px; }
.draft-banner .wrap { display: flex; gap: 10px; align-items: flex-start; padding-top: 10px; padding-bottom: 10px; }
.draft-banner svg { font-size: 18px; flex: none; margin-top: 2px; }
.note { margin: 12px 0; padding: 10px 12px; border-left: 4px solid #d9b44a; background: #fffaf0; border-radius: 8px; font-size: 13.5px; color: #5a4a20; }
.note::before { content: 'Drafting note: '; font-weight: 700; }
.no-draft .note, .no-draft .draft-banner { display: none; }
.keybox { border-radius: var(--r); padding: 14px 16px; background: var(--navy); color: #fff; margin: 12px 0; }
.keybox p { margin: 0; }
.keybox strong { color: #ffd27a; }
/* About */
.about-hero { position: relative; border-radius: var(--r-xl); padding: 26px 22px; color: #fff; overflow: hidden;
  background: radial-gradient(120% 90% at 100% 0%, rgba(4,128,142,.55), transparent 60%), radial-gradient(90% 80% at 0% 100%, rgba(181,79,34,.45), transparent 60%), var(--navy); }
.about-hero h1 { color: #fff; font-size: clamp(30px, 7.5vw, 46px); line-height: 1.05; font-weight: 800; }
.about-hero .tagline { font-family: var(--f-cond); font-weight: 700; font-size: 19px; letter-spacing: .06em; text-transform: uppercase; color: #7fd3dc; }
.about-hero p { color: rgba(255,255,255,.85); margin-top: 12px; font-size: 16px; max-width: 56ch; }
.about-hero img { position: absolute; right: -10px; bottom: -14px; width: 120px; opacity: .22; }
.pillars { display: grid; gap: 12px; margin-top: 14px; }
.pillar { display: flex; gap: 12px; align-items: flex-start; }
.pillar .ic { flex: none; width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; font-size: 20px; }
.pillar h3 { font-size: 17px; }
.pillar p { color: var(--muted); font-size: 14.5px; margin-top: 2px; }
.ic-navy { background: var(--navy-50); color: var(--navy); } .ic-teal { background: var(--teal-50); color: var(--teal-ink); } .ic-orange { background: var(--orange-50); color: var(--orange); }
.steps { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 10px; counter-reset: st; }
.steps li { counter-increment: st; display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: start; font-size: 15px; }
.steps li::before { content: counter(st); width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font: 700 14px var(--f-head); background: var(--orange); color: #fff; }
.steps.teal li::before { background: var(--teal); }
.steps b { color: var(--navy); }
.towns-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.towns-row span { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; font-weight: 700; font-family: var(--f-head); color: #fff; }
.towns-row svg { font-size: 15px; }
.tw-navy { background: var(--navy); } .tw-teal { background: var(--teal); } .tw-orange { background: var(--orange); }
.founder { display: grid; gap: 14px; align-items: start; }
.founder__photo { width: 96px; height: 96px; border-radius: 50%; border: 2px dashed #d9b44a; background: #fffaf0; display: grid; place-items: center; text-align: center; font-size: 11.5px; font-weight: 600; color: #6b4a00; padding: 8px; }
.contact-grid { display: grid; gap: 10px; margin-top: 12px; }
.contact-item { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--cream); text-decoration: none; color: var(--ink); }
.contact-item .ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-size: 18px; flex: none; }
.contact-item b { display: block; color: var(--navy); }
.contact-item span { font-size: 13.5px; color: var(--muted); }
@media (min-width: 760px) {
  .doc { padding-top: 32px; }
  .about-hero { padding: 40px; }
  .about-hero img { width: 180px; right: 24px; bottom: -20px; opacity: .3; }
  .pillars { grid-template-columns: repeat(3, 1fr); }
  .pillar { flex-direction: column; }
  .split { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  .split .card + .card { margin-top: 0; }
  .founder { grid-template-columns: 110px 1fr; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
}
@media print { .topbar, .pagenav, .footer, .draft-banner { display: none; } .doc .card { border: 0; box-shadow: none; } }
.biz__gallery, .biz__nophoto { margin: 0 -20px; }
@media (min-width: 760px) { .biz__gallery, .biz__nophoto { margin: 0 -26px; } .sheet--biz .sheet__panel { max-width: 560px; overflow-x: hidden; } }
@media (min-width: 760px) { .deal__cover { margin: 0 -22px; } }
.biz__gallery .gal__kind { top: auto; bottom: 14px; right: 12px; }
.photo__kind { font-size: 11px; padding: 4px 2px 4px 5px; }

/* ==========================================================================
   v4: Events tab, event posting, admin review
   ========================================================================== */
/* 5 tabs: icon over label on phones so all five fit at 360-430px */
.tabs { grid-template-columns: repeat(5, 1fr); gap: 2px; }
@media (max-width: 559px) {
  .tabs { padding: 5px; margin: 8px 0; }
  .tabs button { flex-direction: column; gap: 3px; padding: 7px 1px 6px; font-size: 12px; letter-spacing: 0; min-width: 0; }
  .tabs button svg { font-size: 19px; }
  .tabs button span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .tabs__ink { top: 5px; bottom: 5px; }
}
@media (min-width: 760px) { .tabs { max-width: 720px; } }

.badge--bad { background: #fbe9e7; color: var(--bad); }
.badge--live { background: #e5f4ec; color: var(--ok); }
.badge--live i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(21,122,74,.5); animation: livePulse 1.6s infinite; }
@keyframes livePulse { 70% { box-shadow: 0 0 0 7px rgba(21,122,74,0); } 100% { box-shadow: 0 0 0 0 rgba(21,122,74,0); } }

.ev-intro { border-radius: var(--r-lg); padding: 18px; color: #fff; background: radial-gradient(120% 140% at 100% 0%, #0e5a73 0%, transparent 55%), linear-gradient(150deg, var(--navy) 0%, #172e70 100%); position: relative; overflow: hidden; }
.ev-intro .eyebrow { color: #8fe0e8; }
.ev-intro h2 { font-size: 22px; margin-top: 6px; color: #fff; }
.ev-intro p { margin: 8px 0 0; color: rgba(255,255,255,.8); font-size: 14px; }

.evday { display: grid; gap: 10px; }
.evday__h { display: flex; align-items: baseline; gap: 8px; font-size: 19px; color: var(--navy); margin-top: 6px; }
.evday__h small { font: 600 13.5px var(--f-body); color: var(--muted); }
.evday__h i { flex: 1; height: 1px; background: var(--line); align-self: center; }
.evday__h em { font: 600 12px var(--f-body); color: var(--muted); font-style: normal; }
.evlist { display: grid; gap: 12px; }

.etype { display: inline-flex; align-items: center; gap: 6px; font: 700 12px var(--f-body); letter-spacing: .02em; padding: 5px 10px 5px 8px; border-radius: 999px; }
.etype svg { font-size: 15px; }
.etype--navy { background: var(--navy-50); color: var(--navy); }
.etype--teal { background: var(--teal-50); color: var(--teal-ink); }
.etype--orange { background: var(--orange-50); color: var(--orange-600); }
.etype--gold { background: #fdf3d8; color: #7a5a06; }

.ev { display: grid; gap: 6px; animation: fadeUp .45s var(--ease) both; position: relative; overflow: hidden; }
.ev--photo { padding-top: 0; }
.ev__cover { margin: 0 -18px 8px; aspect-ratio: 16 / 9; background: var(--sand); overflow: hidden; }
.ev__cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ev__top { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.ev__badges { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.ev__title { font-size: 19px; color: var(--navy); margin-top: 4px; }
.ev__biz { font-size: 14px; }
.ev__biz .bizlink, .ev__biz b { color: var(--ink); font-weight: 700; }
.ev__when { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-weight: 700; color: var(--orange-600); font-size: 14.5px; margin-top: 2px; }
.ev__when > svg { font-size: 16px; }
.ev__rec { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 600; color: var(--teal-ink); background: var(--teal-50); padding: 2px 8px; border-radius: 999px; }
.ev__rec svg { font-size: 13px; }
.ev__desc { margin: 2px 0 0; font-size: 14.5px; color: #3b4258; }
.ev__addr { margin: 0; display: flex; gap: 6px; align-items: center; font-size: 13px; color: var(--muted); }
.ev__addr svg { color: var(--teal); flex: none; }
.ev__deal { margin-top: 6px; border: 1.5px dashed #e4b69c; background: var(--orange-50); border-radius: 16px; padding: 12px 14px; }
.ev__deal-label { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--orange-600); }
.ev__deal .deal__offer { margin-top: 4px; font-size: 17px; }
.ev__deal .btn-row { margin-top: 10px; }
.ev__deal .code { margin-top: 10px; }
.ev__actions { margin-top: 8px; flex-wrap: wrap; }
.ev-cta { margin-top: 4px; }
@media (min-width: 760px) {
  .ev__cover { margin: 0 -22px 8px; }
  .evlist { grid-template-columns: repeat(2, 1fr); }
  .ev-intro { padding: 24px 26px; }
}
@media (min-width: 1080px) { .evlist { grid-template-columns: repeat(3, 1fr); } }

/* Business sheet: upcoming events */
.biz__events { display: grid; gap: 8px; margin-top: 8px; }
.biz__event { display: grid; gap: 4px; justify-items: start; border: 1px solid var(--line); border-radius: 14px; padding: 12px; background: #fff; }
.biz__event b { font-family: var(--f-head); color: var(--navy); font-size: 15.5px; }
.biz__event > span:last-child { font-size: 13px; color: var(--orange-600); font-weight: 700; }

/* Post an event form */
.row2--always { grid-template-columns: 1fr 1fr; }
.field .count { margin-left: auto; float: right; font-variant-numeric: tabular-nums; }
textarea.input { resize: vertical; min-height: 88px; font-family: var(--f-body); line-height: 1.45; }
.toggle { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 14px; background: #fdfbf7; cursor: pointer; }
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.toggle__ui { flex: none; width: 44px; height: 26px; border-radius: 999px; background: #cfc6b6; position: relative; transition: background .2s; }
.toggle__ui::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s var(--ease); }
.toggle input:checked + .toggle__ui { background: var(--teal); }
.toggle input:checked + .toggle__ui::after { transform: translateX(18px); }
.toggle input:focus-visible + .toggle__ui { box-shadow: 0 0 0 4px rgba(4,128,142,.2); }
.toggle b { display: block; font-size: 14.5px; color: var(--navy); }
.toggle small { display: block; font-size: 12.5px; color: var(--muted); }
.ev-photo { position: relative; display: block; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 9; max-width: 360px; background: var(--sand); }
.ev-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ev-photo .iconbtn { position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; font-size: 15px; background: rgba(255,255,255,.94); }
.ev-photo--empty { aspect-ratio: auto; display: flex; align-items: center; gap: 12px; padding: 14px; border: 1.5px dashed #cdbfa6; background: #fdfbf7; cursor: pointer; color: var(--teal-ink); font-size: 22px; }
.ev-photo--empty b { display: block; font-size: 14px; color: var(--navy); }
.ev-photo--empty small { display: block; font-size: 12.5px; color: var(--muted); }
.evstat li { align-items: center; }
.evstat .evstat__reason { grid-column: 1 / -1; display: flex; gap: 6px; align-items: flex-start; font-size: 13px; color: var(--bad); background: #fdf2f1; border-radius: 10px; padding: 8px 10px; }
.evstat .evstat__reason svg { flex: none; margin-top: 2px; font-size: 13px; }
.evstat .evstat__act { grid-column: 1 / -1; justify-self: start; font-size: 13px; }

/* Admin (admin.html) */
.admin { display: grid; gap: 14px; padding: 18px 0 40px; }
.admin__warn { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: #fdf3d8; color: #6b4f07; font-size: 13.5px; border: 1px solid #f0dc9f; }
.admin__warn svg { flex: none; font-size: 18px; margin-top: 1px; }
.admin__lock { max-width: 420px; }
.admin__tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.admin__tabs .chip b { font-family: var(--f-mono); font-size: 12px; background: rgba(17,35,85,.08); border-radius: 999px; padding: 1px 7px; }
.admin__tabs .chip[aria-pressed="true"] b { background: rgba(255,255,255,.22); }
.areview { display: grid; gap: 10px; }
.areview__meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12.5px; color: var(--muted); }
.areview__meta b { color: var(--ink); }
.areview__act { display: grid; gap: 8px; border-top: 1px dashed var(--line); padding-top: 12px; }
.areview__act textarea { min-height: 64px; }
.areview .ev { box-shadow: none; background: var(--cream); }
@media (min-width: 760px) { .alist { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; align-items: start; } }
@media (max-width: 759px) { .alist { display: grid; gap: 14px; } }
.admin { grid-template-columns: minmax(0, 1fr); }
.admin .card__head { gap: 10px; }
.admin__tabs { flex-wrap: wrap; overflow: visible; margin-top: 12px; }
.admin__tabs .chip { padding: 7px 12px; }
.admin__warn span { min-width: 0; }
.stack { grid-template-columns: minmax(0, 1fr); }
.row2 > *, .field { min-width: 0; }
input.input[type="date"], input.input[type="time"] { min-width: 0; width: 100%; }
.admin .card__head > .btn { flex: none; white-space: nowrap; }

/* Magazine link in the app header */
.topbar .maglink { position: absolute; top: 22px; right: 16px; padding: 8px 13px; font-size: 13.5px; }
.topbar .maglink svg { width: 16px; height: 16px; }
@media (min-width: 760px) { .topbar .maglink { position: static; margin-left: auto; margin-right: 12px; } }
