/* ============================================================
   Wend: design system
   Apple / Airbnb / Linear: white, large photography, rounded
   cards, excellent typography, fast animations. The businesses
   provide the color; the chrome stays quiet.
   ============================================================ */

:root {
  --ink: #16181d;
  --ink-2: #4a4f57;
  --ink-3: #868c96;
  --line: #ececef;
  --line-2: #e3e3e7;
  --bg: #ffffff;
  --bg-soft: #f7f7f8;
  --bg-softer: #fafafb;
  --accent: #111317;         /* primary buttons: near-black, Apple-like */
  --accent-ink: #ffffff;
  --brand: #e8542b;          /* one warm spark, used sparingly */
  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 26px;
  --shadow: 0 1px 2px rgba(20,22,28,.04), 0 8px 24px rgba(20,22,28,.06);
  --shadow-lg: 0 4px 12px rgba(20,22,28,.06), 0 20px 48px rgba(20,22,28,.12);
  --maxw: 1120px;
  --nav-h: 64px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  padding-bottom: env(safe-area-inset-bottom);
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

/* Keyboard focus: visible, calm, only when navigating by keyboard */
a:focus-visible, button:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px;
}
input:focus-visible, textarea:focus-visible, select:focus-visible { outline: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  max-width: var(--maxw); margin: 0 auto; height: var(--nav-h);
  padding: 0 22px; display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 9px; }
.brand-mark {
  width: 26px; height: 26px; border-radius: 8px;
  background: linear-gradient(135deg, #1b1d22, #3a3d45);
  position: relative; flex: none;
}
.brand-mark::after {
  content: ""; position: absolute; inset: 7px 7px auto 7px; height: 3px;
  border-radius: 2px; background: var(--brand);
}
.brand-text { font-weight: 800; letter-spacing: -.02em; font-size: 18px; }
.brand-town {
  font-size: 11px; font-weight: 600; color: var(--ink-3);
  border: 1px solid var(--line-2); border-radius: 999px; padding: 2px 8px; margin-left: 2px;
}
.topnav { display: flex; align-items: center; gap: 4px; }
.topnav a {
  font-size: 15px; font-weight: 500; color: var(--ink-2);
  padding: 8px 14px; border-radius: 10px; transition: background .15s, color .15s;
}
.topnav a:hover { background: var(--bg-soft); color: var(--ink); }
.topnav a.active { color: var(--ink); font-weight: 600; background: var(--bg-soft); }
.topnav .btn-claim {
  margin-left: 6px; background: var(--accent); color: var(--accent-ink);
  font-weight: 600; padding: 9px 16px; border-radius: 11px;
}
.topnav .btn-claim:hover { background: #000; color: #fff; opacity: .92; }

/* ---------- App container ---------- */
.app { max-width: var(--maxw); margin: 0 auto; padding: 26px 22px 80px; min-height: 70vh; }
.view { animation: fade .35s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Full-page loader */
.loader { display: grid; place-items: center; gap: 16px; padding: 110px 0; }
.loader-ring { width: 34px; height: 34px; border: 3px solid var(--line-2); border-top-color: var(--brand); border-radius: 50%; animation: spin .8s linear infinite; }
.loader p { color: var(--ink-3); font-weight: 600; font-size: 14px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Typography helpers ---------- */
.h1 { font-size: clamp(28px, 4.5vw, 40px); font-weight: 800; letter-spacing: -.03em; line-height: 1.08; }
.h2 { font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.muted { color: var(--ink-3); }
.lead { font-size: 17px; color: var(--ink-2); }

.section-head { display: flex; align-items: baseline; justify-content: space-between; margin: 34px 0 16px; gap: 12px; }
.section-head a { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.section-head a:hover { color: var(--ink); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600;
  padding: 12px 20px; border-radius: 12px; transition: transform .1s, background .15s, box-shadow .15s; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #000; }
.btn-ghost { background: var(--bg-soft); color: var(--ink); border: 1px solid var(--line-2); }
.btn-ghost:hover { background: #f0f0f2; }
.btn-block { width: 100%; justify-content: center; }
.btn-lg { padding: 15px 26px; font-size: 16px; border-radius: 14px; }
.btn-danger { background: #fdecec; color: #c8362f; border: 1px solid #f7d7d5; }
.btn-danger:hover { background: #fbe0df; }

/* ---------- Hero (home) ---------- */
.home-hero { padding: 16px 0 8px; }
.home-hero .eyebrow { color: var(--brand); }
.home-hero h1 { margin: 10px 0 10px; font-size: clamp(30px, 5vw, 44px); }
.home-hero p { max-width: 560px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 18px; font-size: 13.5px; font-weight: 600; color: var(--ink-3); }
.hero-meta span { display: inline-flex; align-items: center; gap: 7px; }
.hero-meta span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); opacity: .75; }

/* Small brand-color dot (feed cards) */
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }

/* ---------- Feed ---------- */
.feed { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.fcard {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); transition: transform .18s, box-shadow .18s;
  display: flex; flex-direction: column;
}
.fcard { cursor: pointer; }
.fcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.fcard-cta { align-self: flex-start; margin-top: 8px; font-size: 13.5px; font-weight: 700; color: #fff; background: var(--accent); padding: 8px 14px; border-radius: 999px; transition: background .15s, transform .1s; }
.fcard-cta:hover { background: #000; }
.fcard-cta:active { transform: scale(.97); }
.digest-row { cursor: pointer; }
.dr-cta { flex: none; font-size: 12px; font-weight: 700; color: #fff; background: var(--accent); padding: 7px 13px; border-radius: 999px; white-space: nowrap; }
.dr-cta:hover { background: #000; }
.fcard-media { position: relative; aspect-ratio: 4 / 3; background: var(--bg-soft); overflow: hidden; }
.fcard-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.fcard:hover .fcard-media img { transform: scale(1.045); }

/* Gentle shimmer behind photos while they load */
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.fcard-media, .bcard-media, .profile-hero, .item-row img, .digest-row img, .manage-row img {
  background-image: linear-gradient(100deg, #f1f1f3 40%, #fafafb 50%, #f1f1f3 60%);
  background-size: 200% 100%;
  animation: shimmer 1.8s linear infinite;
}
.fcard-badge {
  position: absolute; top: 12px; left: 12px; font-size: 11.5px; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase; color: #fff;
  background: rgba(17,19,23,.62); backdrop-filter: blur(6px);
  padding: 5px 10px; border-radius: 999px;
}
.fcard-badge.event { background: rgba(21,101,192,.72); }
.fcard-badge.promo { background: rgba(200,54,25,.72); }
.fcard-body { padding: 15px 16px 17px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.fcard-biz { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); }
.fcard-title { font-size: 17px; font-weight: 700; letter-spacing: -.01em; line-height: 1.25; }
.fcard-when { font-size: 13.5px; color: var(--ink-2); font-weight: 500; margin-top: auto; padding-top: 4px; }
.fcard-when::before { content: ""; }

/* ---------- Business directory ---------- */
.grid-biz { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.bcard {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); transition: transform .18s, box-shadow .18s;
}
.bcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.bcard-media { aspect-ratio: 16 / 10; background: var(--bg-soft); overflow: hidden; }
.bcard-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.bcard:hover .bcard-media img { transform: scale(1.045); }
.bcard-body { padding: 14px 16px 16px; }
.bcard-cat { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); }
.bcard-name { font-size: 18px; font-weight: 700; letter-spacing: -.01em; margin-top: 2px; }
.bcard-tag { font-size: 14px; color: var(--ink-2); margin-top: 4px; }
.bcard-chip { display:inline-block; margin-top:10px; font-size:12px; font-weight:600; color:var(--ink-2);
  background:var(--bg-soft); border:1px solid var(--line-2); border-radius:999px; padding:4px 10px; }

/* ---------- Filter chips ---------- */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 6px; -webkit-overflow-scrolling: touch; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; font-size: 14px; font-weight: 600; color: var(--ink-2); white-space: nowrap;
  background: var(--bg-soft); border: 1px solid var(--line-2); border-radius: 999px; padding: 8px 15px; transition: all .15s; }
.chip:hover { background: #f0f0f2; }
.chip.active { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ---------- Business profile ---------- */
.profile-hero { position: relative; border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: 21 / 9; background: var(--bg-soft); box-shadow: var(--shadow); }
.profile-hero img { width: 100%; height: 100%; object-fit: cover; }
.profile-hero::after { content:""; position:absolute; inset:0; background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.42)); }
.profile-head { display: flex; align-items: flex-end; gap: 18px; margin-top: -46px; padding: 0 8px; position: relative; z-index: 2; }
.profile-logo { width: 92px; height: 92px; border-radius: 20px; flex: none;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow);
  display: grid; place-items: center; overflow: hidden; }
.profile-logo img { width: 100%; height: 100%; object-fit: cover; }
.profile-logo span { font-size: 34px; font-weight: 800; color: var(--ink); }
.profile-titles { padding-bottom: 6px; }
.profile-titles h1 { font-size: clamp(24px, 3.6vw, 32px); font-weight: 800; letter-spacing: -.03em; }
.profile-titles .profile-cat { color: var(--ink-3); font-weight: 600; font-size: 14px; margin-top: 2px; }
.profile-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 6px; }
.profile-actions .btn { padding: 10px 16px; font-size: 14px; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 46px; height: 46px; border-radius: 12px; background: var(--bg-soft); border: 1px solid var(--line-2); color: var(--ink); }
.icon-btn:hover { background: #f0f0f2; }
.profile-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 28px; margin-top: 26px; }
.about p { font-size: 16px; color: var(--ink-2); line-height: 1.65; }
.info-card { background: var(--bg-softer); border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 18px; }
.info-row { display: flex; align-items: flex-start; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.info-row:last-child { border-bottom: none; }
.info-row .k { width: 26px; color: var(--ink-3); flex: none; padding-top: 1px; }
.info-row .v { font-size: 15px; }
.info-row .v a { color: var(--brand); font-weight: 600; }
.hours-row { display: flex; justify-content: space-between; font-size: 14.5px; padding: 5px 0; }
.hours-row.today { font-weight: 700; }
.hours-row .day { color: var(--ink-2); }

/* Claim banner */
.claim-banner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  background: linear-gradient(120deg, #16181d, #2c2f38); color: #fff; border-radius: var(--radius);
  padding: 20px 22px; margin: 24px 0 4px; box-shadow: var(--shadow-lg); }
.claim-banner h3 { font-size: 18px; font-weight: 700; }
.claim-banner p { color: rgba(255,255,255,.72); font-size: 14px; margin-top: 2px; }
.claim-banner .btn { background: #fff; color: var(--ink); }
.claim-banner .btn:hover { background: #f2f2f2; }

/* Detail list (promotion / event mini rows) */
.item-row { display: flex; gap: 14px; align-items: center; background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 12px; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; }
.item-row:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.item-row img { width: 78px; height: 78px; border-radius: 10px; object-fit: cover; flex: none; background: var(--bg-soft); }
.item-row .ir-body { flex: 1; min-width: 0; }
.item-row .ir-title { font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.item-row .ir-when { font-size: 13.5px; color: var(--ink-2); margin-top: 2px; }
.ir-cta { flex: none; align-self: center; font-size: 13.5px; font-weight: 700; color: #fff; background: var(--accent); padding: 9px 15px; border-radius: 999px; white-space: nowrap; transition: transform .1s, background .15s; }
.ir-cta:hover { background: #000; }
.ir-cta:active { transform: scale(.97); }
.item-date { flex: none; width: 58px; text-align: center; background: var(--bg-soft); border-radius: 10px; padding: 8px 4px; }
.item-date .m { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--brand); }
.item-date .d { font-size: 22px; font-weight: 800; line-height: 1; }
.stack { display: flex; flex-direction: column; gap: 12px; }

/* ---------- Empty / search ---------- */
.searchbar { display: flex; align-items: center; gap: 10px; background: var(--bg-soft); border: 1px solid var(--line-2);
  border-radius: 14px; padding: 14px 16px; margin: 6px 0 22px; }
.searchbar input { flex: 1; border: none; background: none; outline: none; font-size: 17px; color: var(--ink); font-family: inherit; }
.searchbar svg { color: var(--ink-3); flex: none; width: 22px; height: 22px; }
.empty { text-align: center; padding: 70px 20px; color: var(--ink-3); }
.empty h3 { color: var(--ink); font-size: 19px; font-weight: 700; margin-bottom: 6px; }

/* ---------- Forms (dashboard) ---------- */
.form-card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 700; color: var(--ink-2); margin-bottom: 7px; letter-spacing: .01em; }
.field input, .field textarea, .field select {
  width: 100%; font-family: inherit; font-size: 15px; color: var(--ink);
  background: var(--bg-softer); border: 1px solid var(--line-2); border-radius: 11px; padding: 12px 14px; outline: none; transition: border .15s, box-shadow .15s; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: #c9c9cf; box-shadow: 0 0 0 3px rgba(20,22,28,.05); }
.field textarea { min-height: 92px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hours-editor { display: flex; flex-direction: column; gap: 8px; }
.he-row { display: flex; align-items: center; gap: 12px; }
.he-day { flex: none; width: 42px; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.he-row input { flex: 1; font-family: inherit; font-size: 14.5px; color: var(--ink);
  background: var(--bg-softer); border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 12px; outline: none; }
.he-row input:focus { border-color: #c9c9cf; box-shadow: 0 0 0 3px rgba(20,22,28,.05); }
.dash-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.dash-tabs { display: flex; gap: 6px; background: var(--bg-soft); padding: 5px; border-radius: 12px; width: fit-content; margin-bottom: 20px; }
.dash-tabs button { font-size: 14px; font-weight: 600; color: var(--ink-2); padding: 8px 16px; border-radius: 8px; }
.dash-tabs button.active { background: #fff; color: var(--ink); box-shadow: var(--shadow); }
.manage-row { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg); }
.manage-row img { width: 56px; height: 56px; border-radius: 9px; object-fit: cover; flex: none; background: var(--bg-soft); }
.manage-row .mr-actions { display: flex; gap: 8px; }
.mini-btn { font-size: 13px; font-weight: 600; padding: 8px 12px; border-radius: 9px; background: var(--bg-soft); border: 1px solid var(--line-2); color: var(--ink); }
.mini-btn:hover { background: #f0f0f2; }
.mini-btn.danger { color: #c8362f; }

/* ---------- Modal ---------- */
.modal-scrim { position: fixed; inset: 0; z-index: 100; background: rgba(20,22,28,.42);
  display: grid; place-items: center; padding: 20px; animation: fade .2s ease; }
.modal { background: #fff; border-radius: 24px; width: 100%; max-width: 440px; padding: 28px; box-shadow: var(--shadow-lg);
  animation: pop .28s cubic-bezier(.2,.8,.3,1.1); max-height: 90vh; overflow-y: auto; }
.modal.wide { max-width: 560px; }
@keyframes pop { from { opacity: 0; transform: scale(.94) translateY(10px); } to { opacity: 1; transform: none; } }
.modal h2 { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.modal .sub { color: var(--ink-2); font-size: 15px; margin: 4px 0 18px; }
.modal-close { position: sticky; top: 0; float: right; color: var(--ink-3); font-size: 22px; line-height: 1; }

/* ---------- Welcome to Wend (owner first-run) ---------- */
.welcome-badge { display: inline-block; font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--brand); background: #fdf1ec; border: 1px solid #f3d9cd; padding: 5px 12px; border-radius: 999px; margin-bottom: 12px; }
.welcome-list { display: flex; flex-direction: column; gap: 14px; margin: 18px 0 22px; }
.wl-row { display: flex; gap: 13px; align-items: flex-start; }
.wl-n { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #fff;
  font-size: 13px; font-weight: 800; display: grid; place-items: center; margin-top: 1px; }
.wl-row strong { font-size: 15px; font-weight: 700; }
.wl-row p { font-size: 13.5px; color: var(--ink-2); line-height: 1.5; margin-top: 2px; }

/* Getting-started checklist (dashboard) */
.gs-card { position: relative; background: linear-gradient(120deg, #fbf1e7, #f7e9dd); border: 1px solid #f0dcc6;
  border-radius: var(--radius); padding: 18px 20px; margin-bottom: 16px; }
.gs-title { font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #a05a3a; margin-bottom: 12px; }
.gs-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.gs-step { display: flex; gap: 11px; align-items: flex-start; text-align: left; background: rgba(255,255,255,.7);
  border: 1px solid #f0dcc6; border-radius: 13px; padding: 13px 14px; transition: transform .12s, background .15s, box-shadow .15s; }
.gs-step:hover { transform: translateY(-2px); background: #fff; box-shadow: var(--shadow); }
.gs-step .gs-n { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--brand); color: #fff;
  font-size: 12.5px; font-weight: 800; display: grid; place-items: center; }
.gs-step strong { display: block; font-size: 14px; font-weight: 700; color: var(--ink); }
.gs-step span { font-size: 12.5px; color: var(--ink-2); line-height: 1.4; }
.gs-x { position: absolute; top: 12px; right: 14px; color: #b58a6b; font-size: 18px; line-height: 1; }
.gs-x:hover { color: #7a5230; }
@media (max-width: 620px) { .gs-steps { grid-template-columns: 1fr; } }

/* ---------- Badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700;
  padding: 4px 10px; border-radius: 999px; }
.badge.featured { background: #fff6e6; color: #a5751a; }
.badge.pending { background: #eef1f5; color: #5b6472; }
.badge.live { background: #e9f7ee; color: #1f8a4c; }
.badge.past { background: #f1f1f4; color: #8a8f99; font-size: 11px; vertical-align: 2px; }

/* ---------- Weekend banner (home + events) ---------- */
.weekend-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  background: linear-gradient(120deg, #fbf1e7 0%, #f7e6d6 100%);
  border: 1px solid #f0dcc6; border-radius: var(--radius-lg);
  padding: 20px 22px; margin: 22px 0 8px; transition: transform .18s, box-shadow .18s;
}
.weekend-banner:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.wb-eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--brand); }
.wb-title { font-size: 20px; font-weight: 800; letter-spacing: -.02em; margin: 5px 0 4px; color: #4a2c17; }
.wb-sub { font-size: 14px; color: #916a4a; font-weight: 500; }
.wb-badge { flex: none; width: 74px; text-align: center; background: #fff; border-radius: 16px; padding: 12px 6px; box-shadow: var(--shadow); }
.wb-badge .m { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--brand); }
.wb-badge .d { font-size: 30px; font-weight: 800; line-height: 1; color: #4a2c17; }

/* ---------- Weekend digest page ---------- */
.digest { max-width: 620px; margin: 0 auto; }
.digest-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.digest-head { background: linear-gradient(150deg, #16181d, #34291f); color: #fff; padding: 30px 28px 26px; text-align: center; }
.digest-brand { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .04em; color: rgba(255,255,255,.72); text-transform: uppercase; }
.digest-brand .brand-mark { width: 18px; height: 18px; border-radius: 6px; }
.digest-title { font-size: 32px; font-weight: 800; letter-spacing: -.03em; line-height: 1.05; margin: 12px 0 8px; }
.digest-dates { font-size: 15px; font-weight: 600; color: var(--brand); background: rgba(232,84,43,.16); display: inline-block; padding: 5px 14px; border-radius: 999px; }
.digest-list { padding: 12px 14px; }
.digest-row { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 14px; transition: background .15s; }
.digest-row:hover { background: var(--bg-soft); }
.digest-row + .digest-row { border-top: 1px solid var(--line); border-radius: 0; }
.digest-row img { width: 62px; height: 62px; border-radius: 12px; object-fit: cover; flex: none; background: var(--bg-soft); }
.dr-body { flex: 1; min-width: 0; }
.dr-biz { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); }
.dr-title { font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.dr-when { font-size: 13.5px; color: var(--ink-2); }
.dr-tag { flex: none; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 4px 9px; border-radius: 999px; }
.dr-tag.event { background: #e9f0fb; color: #2b6bbf; }
.dr-tag.promo { background: #fbeee7; color: #c0512c; }
.digest-foot { text-align: center; font-size: 13.5px; color: var(--ink-3); padding: 18px 22px 24px; border-top: 1px solid var(--line); }

.subscribe-card { max-width: 620px; margin: 18px auto 0; background: var(--bg-softer); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; text-align: center; }
.subscribe-card h3 { font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.subscribe-card p { color: var(--ink-2); font-size: 14.5px; margin: 6px 0 16px; }
.subscribe-row { display: flex; gap: 10px; max-width: 420px; margin: 0 auto; }
.subscribe-row input { flex: 1; font-family: inherit; font-size: 15px; background: #fff; border: 1px solid var(--line-2); border-radius: 12px; padding: 12px 14px; outline: none; }
.subscribe-row input:focus { border-color: #c9c9cf; }
.subscribe-row .btn { flex: none; }

/* ---------- Share modal ---------- */
.share-preview { position: relative; background: var(--bg-soft); border-radius: 16px; overflow: hidden; min-height: 200px; display: grid; place-items: center; border: 1px solid var(--line); }
.share-preview img { width: 100%; max-width: 300px; display: none; margin: 0 auto; border-radius: 10px; }
.share-loading { color: var(--ink-3); font-size: 14px; padding: 60px 20px; }
.share-alt { display: flex; gap: 10px; margin-top: 10px; justify-content: center; }
.mini-btn.share { color: var(--brand); border-color: #f3d9cd; background: #fdf3ee; }
.mini-btn.share:hover { background: #fbe9e0; }
.consent { font-size: 12px; color: var(--ink-3); text-align: center; line-height: 1.55; margin-top: 8px; }
.sub-lead { color: var(--ink-2); font-size: 14.5px; margin: 6px 0 14px; }
.keyword { font-size: 13.5px; color: var(--ink-2); margin-top: 12px; }
.keyword strong { color: var(--ink); }

.qr-toggle { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 14px; font-weight: 500; color: var(--ink-2); cursor: pointer; }
.qr-toggle input { width: 18px; height: 18px; accent-color: var(--brand); }

/* ---------- Brand chip + color picker ---------- */
.brand-chip { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; padding: 4px 11px; border-radius: 999px; }
.profile-metaline { margin-top: 6px; display: flex; align-items: center; gap: 8px; font-size: 14px; }
.color-field { display: flex; align-items: center; gap: 12px; }
.color-field input[type="color"] { width: 52px; height: 44px; padding: 4px; border: 1px solid var(--line-2); border-radius: 11px; background: var(--bg-softer); cursor: pointer; }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.swatch { width: 30px; height: 30px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line-2); cursor: pointer; transition: transform .1s; }
.swatch:hover { transform: scale(1.12); }

/* ---------- Dashboard stats strip ---------- */
.stats-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 14px; }
.stats-strip .stat { background: var(--bg-softer); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.stats-strip .stat-n { font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
.stats-strip .stat-l { font-size: 13px; color: var(--ink-3); font-weight: 500; margin-top: 2px; }
.stat.stat-accent { background: #fdf3ee; border-color: #f3d9cd; }
.stat.stat-accent .stat-n { color: var(--brand); }
.stat.stat-accent .stat-l { color: #a05a3a; }

.dash-notes { margin-bottom: 22px; }
.top-post { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: var(--bg-softer);
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 16px; font-size: 14px; }
.tp-label { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); }
.tp-title { font-weight: 700; }
.tp-n { margin-left: auto; font-weight: 700; font-size: 13px; color: var(--ink-2); }
.stat-delta { font-size: 12px; font-weight: 700; color: var(--ink-3); margin-top: 6px; }
.stat-delta.up { color: #1f8a4c; }
.stat-delta.down { color: #c8362f; }

/* Claim picker (unclaimed dashboard) */
.pick-logo { width: 46px; height: 46px; border-radius: 12px; flex: none; display: grid; place-items: center; }
.pick-logo span { font-size: 17px; font-weight: 800; }

/* Photo picker (composer + profile) */
.photo-picker { position: relative; border: 1.5px dashed var(--line-2); border-radius: 14px; background: var(--bg-softer);
  min-height: 96px; display: grid; place-items: center; overflow: hidden; cursor: pointer; transition: border-color .15s, background .15s; }
.photo-picker:hover { border-color: #c2c2c8; background: #f2f2f4; }
.photo-picker img { width: 100%; height: 150px; object-fit: cover; }
.pp-hint { color: var(--ink-3); font-size: 14px; font-weight: 600; padding: 24px; }

/* ---------- Bottom nav (mobile) ---------- */
.bottomnav { display: none; }

.footer { text-align: center; color: var(--ink-3); font-size: 13px; padding: 48px 0 14px; border-top: 1px solid var(--line); margin-top: 56px; }
.footer-brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; letter-spacing: -.02em; font-size: 15px; color: var(--ink); }
.footer-brand .brand-mark { width: 20px; height: 20px; border-radius: 6px; }
.footer-tag { margin-top: 6px; }
.footer-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 20px; margin-top: 14px; }
.footer a { color: var(--ink-2); font-weight: 600; }
.footer a:hover { color: var(--ink); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .feed, .grid-biz { grid-template-columns: repeat(2, 1fr); }
  .profile-grid { grid-template-columns: 1fr; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .topnav { display: none; }
  .app { padding: 18px 16px 96px; }
  .feed, .grid-biz { grid-template-columns: 1fr; gap: 16px; }
  .brand-town { display: none; }
  .bottomnav {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
    background: rgba(255,255,255,.9); backdrop-filter: saturate(180%) blur(20px);
    border-top: 1px solid var(--line); padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
    justify-content: space-around;
  }
  .bottomnav a { display: flex; flex-direction: column; align-items: center; gap: 3px; color: var(--ink-3); font-size: 11px; font-weight: 600; padding: 4px 10px; min-width: 56px; }
  .bottomnav a.active { color: var(--ink); }
  .bottomnav svg { width: 23px; height: 23px; }
  .profile-hero { aspect-ratio: 16 / 10; }
  .profile-logo { width: 74px; height: 74px; }
  .weekend-banner { flex-direction: row-reverse; justify-content: flex-end; gap: 14px; padding: 16px; }
  .wb-badge { width: 60px; padding: 9px 5px; }
  .wb-badge .d { font-size: 24px; }
  .wb-title { font-size: 17px; }
  .stats-strip { gap: 10px; grid-template-columns: repeat(2, 1fr); }
  .stats-strip .stat { padding: 14px; }
  .stats-strip .stat-n { font-size: 24px; }
  .stats-strip .stat-l { font-size: 11.5px; }
  .subscribe-row { flex-direction: column; }
  .digest-title { font-size: 27px; }
  /* bigger touch targets for owner controls */
  .mini-btn { padding: 10px 14px; font-size: 13.5px; }
  .manage-row .mr-actions { flex-wrap: wrap; justify-content: flex-end; }
  .dash-tabs button { padding: 10px 16px; }
}
