:root {
  --bg: #fdf8f3;
  --surface: #fffdfa;
  --surface-2: #f7eee7;
  --surface-3: #f2e7de;
  --surface-glass: rgba(255,253,250,0.78);
  --border: #eadbd0;
  --border-strong: #ddc9bb;
  --text: #171319;
  --muted: #746b6f;
  --primary: #f43f5e;
  --primary-2: #be123c;
  --accent: #f59e0b;
  --accent-soft: #fff2cf;
  --success: #16a34a;
  --danger: #ef4444;
  --ink: #261c24;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 8px rgba(57,35,28,0.06), 0 1px 2px rgba(57,35,28,0.04);
  --shadow-md: 0 12px 32px rgba(57,35,28,0.10), 0 3px 8px rgba(57,35,28,0.05);
  --shadow-xl: 0 30px 80px rgba(57,35,28,0.16), 0 8px 24px rgba(244,63,94,0.09);
  --shadow: var(--shadow-sm);
  --text-xs: 0.72rem;
  --text-sm: 0.82rem;
  --text-base: 0.9375rem;
  --text-lg: 1.125rem;
  --text-xl: 1.375rem;
  --text-2xl: 1.75rem;
  --text-3xl: 2.25rem;
  --text-4xl: clamp(2.75rem, 7vw, 4.75rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  background-image: radial-gradient(circle at 10% 0%, rgba(244,63,94,.045), transparent 28rem), radial-gradient(circle at 90% 12%, rgba(245,158,11,.05), transparent 24rem);
}

a { color: inherit; text-decoration: none; transition: color .22s ease, opacity .22s ease, background-color .22s ease, border-color .22s ease, transform .22s ease, box-shadow .22s ease; }
button, input, select, textarea { transition: color .22s ease, background-color .22s ease, border-color .22s ease, box-shadow .22s ease, transform .22s ease, opacity .22s ease; }
:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(244,63,94,.18), 0 0 0 1px var(--primary); }

.topbar {
  display: flex; align-items: center; gap: 20px;
  padding: 0 32px; height: 68px;
  border-bottom: 1px solid rgba(221,201,187,.7);
  background: var(--surface-glass);
  backdrop-filter: blur(18px) saturate(1.5);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  box-shadow: 0 8px 26px rgba(74,42,30,.05);
  position: sticky; top: 0; z-index: 50;
}
.brand {
  display: flex; align-items: center; gap: 9px;
  text-decoration: none; color: inherit; flex-shrink: 0;
}
.brand-logo {
  width: 44px; height: 44px;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 10px rgba(244,63,94,0.25));
  transition: transform .25s ease, filter .25s ease;
}
.brand:hover .brand-logo { transform: rotate(-4deg) scale(1.05); filter: drop-shadow(0 7px 14px rgba(244,63,94,.3)); }
.brand-name {
  font-size: 15px; letter-spacing: -0.01em; font-weight: 800;
  background: linear-gradient(135deg, #F43F5E 0%, #BE123C 55%, #FBBF24 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav { display: flex; align-items: center; gap: 2px; }
.nav a {
  padding: 7px 13px; border-radius: 8px; color: var(--muted);
  font-size: 13.5px; font-weight: 600; transition: all .22s ease;
  position: relative;
  white-space: nowrap;
}
.nav a:hover { color: var(--text); background: var(--surface-2); }
.nav a::after { content:""; position:absolute; left:13px; right:13px; bottom:3px; height:2px; border-radius:2px; background:var(--primary); transform:scaleX(0); transition:transform .22s ease; }
.nav a:hover::after, .nav a.active::after { transform:scaleX(1); }
.nav a.active {
  color: var(--primary); background: rgba(244,63,94,0.08);
  font-weight: 600;
}

.user-chip {
  display: flex; align-items: center; gap: 12px;
  padding: 6px 6px 6px 6px; background: var(--surface); border: 1px solid var(--border);
  border-radius: 999px;
}
.user-chip img, .avatar-fallback {
  width: 32px; height: 32px; border-radius: 50%; object-fit: cover;
  display: flex; align-items: center; justify-content: center;
  background: var(--primary); color: white; font-weight: 700;
}
.user-meta { display: flex; flex-direction: column; line-height: 1.1; padding-right: 4px; }
.user-name { font-size: 13px; font-weight: 600; }
.user-points { font-size: 11px; color: var(--accent); }

.account-settings { max-width: 640px; margin: 0 auto; }
.account-settings .page-head h1 { font-size: clamp(26px, 5vw, 36px); }
.account-settings .auth-form h2 { font-size: 18px; margin: 16px 0 0; }
.account-settings .auth-field-row .auth-field { min-width: 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 18px; border-radius: 10px; font-weight: 600; font-size: 14px;
  border: 1px solid transparent; cursor: pointer; transition: all .24s cubic-bezier(.2,.8,.2,1);
  font-family: inherit;
}
.btn-primary {
  background: linear-gradient(135deg, #fb526f 0%, var(--primary) 48%, #d6294d 100%); color: white;
  box-shadow: 0 10px 22px -10px rgba(190,18,60,.7), inset 0 1px 0 rgba(255,255,255,.22);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(190,18,60,.8), 0 0 0 4px rgba(244,63,94,.08); }
.btn-primary:active, .btn:active { transform: translateY(1px) scale(.98); }
.btn-secondary { background: var(--surface-2); color: var(--text); border-color: var(--border); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface); border-color: var(--border-strong); transform: translateY(-1px); }
.btn-large { padding: 14px 24px; font-size: 15px; }
.btn-small { padding: 6px 12px; font-size: 12px; }

.main { max-width: 1200px; margin: 0 auto; padding: 40px 32px 64px; animation: page-entry .55s ease both; }
@keyframes page-entry { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:none; } }

.footer {
  padding: 40px 32px; border-top: 1px solid var(--border); margin-top: 72px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  color: var(--muted); font-size: 13px;
}
.footer-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.footer-tag { font-style: italic; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--primary); transform: translateY(-1px); }

/* Legal pages */
.legal-page { max-width: 820px; margin: 0 auto; padding: 8px 0 64px; line-height: 1.65; }
.legal-head { margin-bottom: 24px; }
.legal-head h1 { margin: 0 0 6px; font-size: 32px; }
.legal-page h2 { margin-top: 32px; font-size: 20px; }
.legal-page h3 { margin-top: 24px; font-size: 16px; }
.legal-page ul, .legal-page ol { padding-left: 22px; }
.legal-page li { margin: 6px 0; }
.legal-page a { color: var(--primary); }
.legal-page code { background: rgba(255,255,255,0.06); padding: 1px 6px; border-radius: 4px; font-size: 0.92em; }
.legal-notice {
  background: rgba(244,63,94,0.08); border: 1px solid rgba(244,63,94,0.25);
  color: var(--text); padding: 14px 16px; border-radius: 10px; margin: 18px 0 8px;
}
.legal-table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 14px; }
.legal-table th, .legal-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.legal-table th { color: var(--muted); font-weight: 600; }
.legal-footnote { margin-top: 36px; padding-top: 16px; border-top: 1px dashed var(--border); }

/* Landing */
.landing-body .main { max-width: 1240px; }
.hero {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center;
  padding: 64px 0;
}
.eyebrow { color: var(--primary); font-weight: 600; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }
.hero h1 {
  font-size: clamp(40px, 6vw, 68px); line-height: 1.05; margin: 16px 0 18px;
  letter-spacing: -0.025em; font-weight: 800;
}
.lede { font-size: 18px; color: var(--muted); max-width: 560px; line-height: 1.6; }
.hero-cta { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.trust-row { display: flex; gap: 24px; margin-top: 28px; color: var(--muted); font-size: 13px; flex-wrap: wrap; }

.hero-art { position: relative; height: 460px; }
.billboard-stack { position: relative; width: 100%; height: 100%; }
.billboard-card {
  position: absolute; padding: 22px; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border); width: 240px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 10px;
}
.billboard-card strong { font-size: 18px; }
.bb-cat {
  align-self: flex-start; padding: 4px 10px; border-radius: 999px; font-size: 11px;
  background: rgba(244,63,94,0.12); color: var(--primary); font-weight: 600;
}
.tilt-l { top: 30px; left: 0; transform: rotate(-6deg); }
.tilt-r { top: 80px; right: 10px; transform: rotate(5deg); }
.tilt-c { bottom: 40px; left: 80px; transform: rotate(-2deg);
  background: linear-gradient(135deg, var(--primary), var(--primary-2)); border: none; }
.tilt-c .bb-cat { background: rgba(255,255,255,0.2); color: white; }

.features { padding: 32px 0 64px; }
.features h2 { font-size: 32px; letter-spacing: -0.02em; margin-bottom: 32px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card {
  padding: 28px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); transition: all 0.2s;
}
.feature-card:hover { transform: translateY(-2px); border-color: var(--primary); }
.feature-icon { font-size: 32px; margin-bottom: 12px; }
.feature-card h3 { margin: 0 0 8px; }
.feature-card p { color: var(--muted); margin: 0; line-height: 1.6; }

/* Page head */
.page-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 24px; margin-bottom: 28px; flex-wrap: wrap;
}
.page-head h1 { font-size: 36px; letter-spacing: -0.02em; margin: 0; }
.muted { color: var(--muted); margin: 4px 0 0; }
.small { font-size: 13px; }

/* Filter bar */
.filter-bar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* Discover page header + filter pills (matches reference design) */
.discover-head { text-align: center; margin: 12px 0 14px; }
.discover-head h1 {
  font-size: clamp(20px, 3vw, 28px); letter-spacing: -0.02em; font-weight: 800; margin: 0 0 4px;
}
.discover-sub { color: var(--muted); font-size: 14px; margin: 0; }
.discover-filters {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  padding: 10px; display: flex; flex-direction: column; gap: 8px;
  max-width: 640px; margin: 0 auto 16px; box-shadow: var(--shadow);
}
.search-pill, .select-pill {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 999px; padding: 12px 18px; transition: border-color 0.15s, box-shadow 0.15s;
  color: var(--muted);
}
.search-pill { padding-right: 18px; }
.search-pill:focus-within, .select-pill:focus-within {
  border-color: var(--primary); box-shadow: 0 0 0 4px rgba(244,63,94,0.12); color: var(--text);
}
.select-pill { border: 2px solid var(--text); color: var(--text); justify-content: space-between; cursor: pointer; }
.search-pill input, .select-pill select {
  border: none; background: transparent; outline: none; padding: 0;
  font-family: inherit; font-size: 15px; color: var(--text); flex: 1;
  appearance: none; -webkit-appearance: none;
}
.search-pill input::placeholder { color: var(--muted); }
.select-pill svg { color: var(--text); pointer-events: none; }
select, input, textarea {
  background: var(--surface); border: 1px solid var(--border); color: var(--text);
  padding: 10px 14px; border-radius: 10px; font-family: inherit; font-size: 14px;
  outline: none; transition: border-color 0.15s;
}
select:focus, input:focus, textarea:focus { border-color: var(--primary); }

/* Single billboard shuffler — one big card cycling through all ads */
#bb-category-tabs[hidden],
.billboard-shuffler[hidden],
#feed-empty-state[hidden],
#feed-refresh-status[hidden] {
  display: none !important;
}

.bb-category-tabs {
  display: flex; align-items: center; gap: 8px;
  max-width: 960px; margin: 0 auto 4px;
}
.bb-category-track {
  display: flex; align-items: center; gap: 8px; flex: 1 1 auto; min-width: 0;
  overflow-x: auto; overscroll-behavior-x: contain; touch-action: pan-x pan-y pinch-zoom;
  scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-behavior: smooth;
  padding: 4px 2px;
}
.bb-category-track::-webkit-scrollbar { display: none; }
.bb-category-track:focus-visible { border-radius: 999px; }
.bb-category-arrow {
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 36px;
  width: 36px; height: 36px; padding: 0; border-radius: 50%;
  color: var(--text); background: var(--surface); border: 1px solid var(--border);
  cursor: pointer;
}
.bb-category-arrow:hover:not(:disabled) { color: var(--primary); border-color: var(--primary); }
.bb-category-arrow:disabled { color: var(--muted); opacity: .4; cursor: default; }
.bb-category-arrow:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.bb-category-tabs[data-no-overflow="true"] .bb-category-arrow {
  visibility: hidden; pointer-events: none;
}
.bb-tab {
  padding: 7px 16px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface); color: var(--muted); font-size: 13px; font-weight: 600;
  cursor: pointer; transition: background 0.15s, color 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.bb-tab:hover { border-color: var(--primary); color: var(--primary); }
.bb-tab.active { background: var(--primary); color: #fff; border-color: var(--primary); }

.billboard-shuffler {
  max-width: 620px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 18px;
}
.bb-stage { display: block; touch-action: pan-y pinch-zoom; }
.bb-controls {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 6px 0;
}
.bb-ctrl {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  width: 44px; height: 44px; border-radius: 999px;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border); cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.bb-ctrl:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-1px); }
.bb-ctrl-shuffle {
  width: auto; padding: 0 16px; font-size: 13px; font-weight: 700;
  background: linear-gradient(135deg, var(--primary), #fb7185); color: #fff; border-color: transparent;
  box-shadow: 0 6px 16px -8px rgba(244,63,94,0.6);
}
.bb-ctrl-shuffle:hover { color: #fff; }
.bb-progress {
  font-size: 13px; font-weight: 700; color: var(--muted);
  min-width: 56px; text-align: center;
}
.bb-auto-bar {
  height: 3px; border-radius: 999px; overflow: hidden;
  background: var(--border); margin: -4px 0;
}
.bb-auto-bar-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--primary), #fb7185);
  border-radius: 999px; will-change: width;
}
.bb-paused-label {
  font-size: 11px; color: var(--muted); text-align: center;
  letter-spacing: 0.04em; opacity: 0; transition: opacity 0.2s;
  height: 14px;
}
@media (hover: hover) {
  .billboard-shuffler:hover .bb-paused-label { opacity: 1; }
}
.billboard-shuffler.is-touch-paused .bb-paused-label { opacity: 1; }

/* Single ad-card layout */
.ad-card {
  position: relative;
  background: #0a0a14; border: 1px solid var(--border); border-radius: 22px;
  overflow: hidden; display: flex; flex-direction: column;
  text-decoration: none; color: inherit;
  box-shadow: 0 4px 14px rgba(15,23,42,0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.2s ease;
}
.ad-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 50px -20px rgba(15,23,42,0.35), 0 8px 18px -10px rgba(244,63,94,0.25);
  border-color: rgba(244,63,94,0.4);
}

/* Big billboard image area — fills card, overlays content */
.ad-billboard {
  position: relative;
  aspect-ratio: 4/5;
  min-height: 360px;
  background-size: cover; background-position: center;
  background-color: #0a0a14;
  display: flex; flex-direction: column; justify-content: space-between;
  overflow: hidden;
}
.ad-billboard::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0) 22%, rgba(0,0,0,0) 45%, rgba(0,0,0,0.85) 100%);
  pointer-events: none; z-index: 1;
}
.ad-image-video { background: #0a0a14; }
.ad-image-video video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; z-index: 0;
}

.ad-billboard-top {
  position: relative; z-index: 2;
  display: flex; align-items: flex-start; justify-content: space-between;
  padding: 16px 16px 0 16px; gap: 10px;
}
.ad-billboard-top .ad-cat-pill,
.ad-billboard-top .ad-tier-pill,
.ad-billboard-top .ad-flash-pill { position: static; }
.ad-billboard-tags { display: inline-flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }

.ad-billboard-overlay {
  position: relative; z-index: 2;
  padding: 22px 22px 22px;
  color: #fff;
  display: flex; flex-direction: column; gap: 8px;
}
.ad-bb-title {
  margin: 0; font-size: 30px; font-weight: 900; line-height: 1.12;
  letter-spacing: -0.025em; color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.ad-bb-headline {
  margin: 0; color: rgba(255,255,255,0.88); font-size: 14px; line-height: 1.5;
  text-shadow: 0 1px 8px rgba(0,0,0,0.5);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ad-bb-meta {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  font-size: 12.5px; color: rgba(255,255,255,0.75); font-weight: 600;
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
  margin-top: 4px;
}
.ad-bb-biz { color: #fff; font-weight: 700; }
.ad-bb-dot { opacity: 0.6; }
.ad-bb-discount {
  position: static !important; align-self: flex-start; margin-top: 10px;
}
.ad-tier-pill {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  padding: 5px 11px; border-radius: 999px; font-size: 11px; font-weight: 700;
  letter-spacing: 0.02em;
  background: rgba(255,255,255,0.95); color: var(--primary);
  box-shadow: 0 4px 14px rgba(15,23,42,0.18);
  backdrop-filter: blur(8px);
  display: inline-flex; align-items: center; gap: 4px;
}
.ad-tier-pill.tier-premium {
  background: linear-gradient(135deg, #f59e0b, #ef4444); color: #fff;
}
.ad-card.ad-tier-premium { border-color: rgba(245,158,11,0.55); }
.ad-card.ad-tier-premium::before {
  content: ""; position: absolute; inset: 0; border-radius: 18px; pointer-events: none;
  box-shadow: inset 0 0 0 2px rgba(245,158,11,0.45);
}
.ad-card.ad-tier-featured { border-color: rgba(244,63,94,0.45); }
.status-tier-featured { background: rgba(244,63,94,0.12); color: var(--primary); }
.status-tier-premium { background: linear-gradient(135deg, #f59e0b, #ef4444); color: #fff; }
.ad-thumb video { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; display: block; }
.ad-thumb-img { width: 100%; height: 100%; background-size: cover; background-position: center; border-radius: 8px; }
.billboard-video { background: #000; overflow: hidden; }
.billboard-bg-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
}
.billboard-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(135deg, rgba(0,0,0,0.55), rgba(0,0,0,0.85));
}
.billboard-video .back-link, .billboard-video .billboard-info { position: relative; z-index: 2; }
.ad-cat-pill {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  padding: 5px 11px; border-radius: 999px; font-size: 11px; font-weight: 600;
  background: rgba(255,255,255,0.92); color: #0f172a;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 14px rgba(15,23,42,0.18);
  text-transform: capitalize;
}
.ad-flash-pill {
  position: absolute; bottom: 14px; left: 14px; z-index: 2;
  padding: 5px 10px; border-radius: 999px; font-size: 11px; font-weight: 700;
  background: linear-gradient(135deg, #f59e0b, #ef4444); color: #fff;
  box-shadow: 0 4px 14px rgba(239,68,68,0.35);
  display: inline-flex; align-items: center; gap: 4px;
}
.ad-body { padding: 18px 18px 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.ad-business {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--muted); font-weight: 500;
}
.ad-business .ad-avatar {
  width: 22px; height: 22px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #fb7185);
  color: #fff; display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; flex-shrink: 0;
}
.ad-business .ad-loc {
  display: inline-flex; align-items: center; gap: 3px;
  color: var(--muted); font-weight: 400;
}
.ad-title {
  margin: 0; font-size: 18px; font-weight: 700; line-height: 1.25;
  letter-spacing: -0.015em; color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.ad-headline {
  margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.ad-foot {
  margin-top: auto; padding-top: 14px;
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid var(--border);
}
.ad-meta-stats {
  display: flex; align-items: center; gap: 12px;
  font-size: 12px; color: var(--muted); font-weight: 500;
}
.ad-meta-stats svg { width: 14px; height: 14px; }
.ad-cta {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 13px; border-radius: 999px;
  background: rgba(244,63,94,0.08); color: var(--primary);
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.01em;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.ad-cta svg { width: 14px; height: 14px; transition: transform 0.2s ease; }
.ad-card:hover .ad-cta svg { transform: translateX(2px); }

/* Card link wrapper (transparent inheritance) */
.ad-card-link { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.ad-distance {
  margin-left: auto; padding: 2px 8px; border-radius: 999px;
  background: rgba(244,63,94,0.1); color: var(--primary);
  font-size: 11px; font-weight: 600;
}
.ad-discount-pill {
  position: absolute; bottom: 14px; right: 14px; z-index: 2;
  padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 800;
  background: linear-gradient(135deg, #f59e0b, #ef4444); color: #fff;
  box-shadow: 0 6px 16px rgba(239,68,68,0.35);
  letter-spacing: 0.02em;
}
/* Card action row */
.ad-actions {
  display: flex; gap: 8px; padding: 0 18px 16px;
  align-items: stretch;
}
.ad-action {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 12px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
  font-size: 13px; font-weight: 600; cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.ad-action svg { width: 14px; height: 14px; }
.ad-action:hover { border-color: var(--primary); color: var(--primary); }
.ad-action.ad-action-primary {
  background: linear-gradient(135deg, var(--primary), #fb7185); color: #fff; border-color: transparent;
  box-shadow: 0 6px 16px -8px rgba(244,63,94,0.6);
}
.ad-action.ad-action-primary:hover { transform: translateY(-1px); color: #fff; }
.ad-action.ad-action-icon { flex: 0 0 42px; padding: 10px; }
.ad-action.is-done { background: rgba(244,63,94,0.12); color: var(--primary); border-color: rgba(244,63,94,0.3); }
.ad-action.is-loading { opacity: 0.7; }

/* Coupon reveal (shown after Claim) */
.ad-coupon-reveal { padding: 0 18px 18px; }
.coupon-card {
  border: 1.5px dashed var(--primary);
  border-radius: 14px; padding: 14px;
  background: linear-gradient(135deg, rgba(244,63,94,0.05), rgba(168,85,247,0.05));
  display: flex; flex-direction: column; gap: 10px;
}
.coupon-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.coupon-badge {
  padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 800;
  background: linear-gradient(135deg, #f59e0b, #ef4444); color: #fff; letter-spacing: 0.04em;
}
.coupon-points { font-size: 12px; font-weight: 700; color: var(--primary); }
.coupon-code {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 14px; border-radius: 10px;
  background: #fff; border: 1px solid var(--border);
  font-family: 'JetBrains Mono', 'SF Mono', Menlo, monospace;
  font-size: 16px; font-weight: 700; letter-spacing: 0.08em; color: var(--text);
}
.coupon-copy {
  border: 0; background: var(--primary); color: #fff;
  padding: 6px 12px; border-radius: 8px; font-size: 12px; font-weight: 600; cursor: pointer;
}
.coupon-link {
  text-align: center; color: var(--primary); font-weight: 600; font-size: 13px;
  text-decoration: none;
}
.coupon-link:hover { text-decoration: underline; }
.coupon-noted { border-style: solid; }

/* Rewards banner on the discover head */
.rewards-banner {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 10px; padding: 7px 14px;
  background: linear-gradient(135deg, rgba(244,63,94,0.1), rgba(245,158,11,0.1));
  border: 1px solid rgba(244,63,94,0.2);
  border-radius: 14px;
}
.rewards-icon {
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b, #ef4444); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700;
  box-shadow: 0 4px 14px rgba(245,158,11,0.4);
}
.rewards-text { display: flex; flex-direction: column; gap: 2px; }
.rewards-text strong { font-size: 15px; color: var(--text); }
.rewards-text span { font-size: 12px; }

/* "Near me" GPS toggle pill */
.near-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 999px; font-size: 14px; font-weight: 600;
  border: 1.5px solid var(--text); background: var(--surface); color: var(--text);
  cursor: pointer; transition: all 0.15s ease;
}
.near-pill:hover { background: var(--surface-2); }
.near-pill.is-on {
  background: var(--primary); color: #fff; border-color: var(--primary);
  box-shadow: 0 6px 16px -8px rgba(244,63,94,0.6);
}
.near-pill svg { flex-shrink: 0; }

/* Form row helper */
.form-row { display: flex; gap: 12px; }
@media (max-width: 540px) { .form-row { flex-direction: column; gap: 0; } }

/* Billboard discount banner */
.bb-discount-banner {
  display: inline-block; margin: 14px 0;
  padding: 8px 18px; border-radius: 999px;
  background: linear-gradient(135deg, #f59e0b, #ef4444); color: #fff;
  font-weight: 800; letter-spacing: 0.03em; font-size: 16px;
  box-shadow: 0 8px 22px rgba(239,68,68,0.4);
}

/* Empty state */
.empty-state {
  text-align: center; padding: 80px 20px; color: var(--muted);
  border: 1px dashed var(--border); border-radius: var(--radius);
}
.empty-state h2 { color: var(--text); margin: 0 0 8px; }

/* Billboard fullscreen */
.billboard-body .main { max-width: none; padding: 0; }
.billboard {
  min-height: calc(100vh - 76px);
  background-size: cover; background-position: center;
  display: flex; align-items: flex-end; padding: 48px;
  position: relative;
}
.back-link {
  position: absolute; top: 24px; left: 32px; color: white;
  background: rgba(0,0,0,0.5); padding: 8px 14px; border-radius: 999px;
  backdrop-filter: blur(8px); font-size: 13px;
}
.billboard-info { max-width: 720px; color: white; }
.billboard-info h1 {
  font-size: clamp(40px, 7vw, 84px); line-height: 1; margin: 14px 0 12px;
  letter-spacing: -0.03em; font-weight: 800;
}
.bb-headline { font-size: 22px; line-height: 1.4; margin: 0 0 18px; }
.biz-line { font-size: 15px; opacity: 0.85; margin-bottom: 24px; }
.bb-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.bb-meta { margin-top: 18px; font-size: 13px; opacity: 0.7; }

/* Forms */
.form-shell { max-width: 520px; margin: 0 auto; padding: 24px 0; }
.form-shell h1 { font-size: 32px; letter-spacing: -0.02em; margin: 0 0 6px; }
.stack-form { display: flex; flex-direction: column; gap: 16px; margin-top: 24px; }
.stack-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }
.stack-form input, .stack-form textarea, .stack-form select { font-size: 15px; color: var(--text); }
.alert {
  padding: 12px 16px; border-radius: 10px; font-size: 14px;
}
.alert-error { background: rgba(239,68,68,0.08); color: var(--danger); border: 1px solid rgba(239,68,68,0.25); }

/* Card */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px; margin-bottom: 24px;
}
.card h2 { margin: 0 0 16px; font-size: 20px; letter-spacing: -0.01em; }

/* Dashboard grid */
.dashboard-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 24px; align-items: start; }

/* Ad list rows */
.ad-list { display: flex; flex-direction: column; gap: 12px; }
.ad-row {
  display: grid; grid-template-columns: 96px 1fr; gap: 16px;
  padding: 12px; background: var(--surface-2); border-radius: 10px; align-items: center;
}
.ad-thumb {
  width: 96px; height: 72px; background-size: cover; background-position: center;
  border-radius: 8px; background-color: var(--surface);
}
.ad-row-body { min-width: 0; }
.ad-row-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.ad-row-body p { margin: 0 0 8px; }
.metrics { display: flex; gap: 16px; font-size: 13px; color: var(--muted); }
.metrics strong { color: var(--text); }
.row-actions { display: flex; gap: 8px; margin-top: 8px; }

/* Success badge */
.success-badge {
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(22,163,74,0.12); color: var(--success);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; margin-bottom: 16px;
}

/* Status pills */
.status-pill {
  padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em;
}
.status-pending { background: rgba(245,158,11,0.14); color: var(--accent); }
.status-flash { background: var(--primary); color: #fff; }
.upload-field {
  border: 1px dashed var(--border); border-radius: 12px; padding: 14px;
  display: flex; flex-direction: column; gap: 10px; background: var(--surface-2);
}
.upload-field legend { padding: 0 6px; font-size: 13px; color: var(--muted); }
.upload-field input[type="file"] {
  background: var(--surface); border: 1px solid var(--border); border-radius: 8px;
  padding: 10px; font-family: inherit; font-size: 14px;
}
.upload-progress { display: flex; align-items: center; gap: 10px; }
.upload-bar { flex: 1; height: 6px; background: var(--surface); border-radius: 999px; overflow: hidden; }
.upload-bar > span { display: block; height: 100%; width: 0%; background: var(--primary); transition: width 0.2s; }
.upload-pct { font-size: 12px; color: var(--muted); min-width: 36px; text-align: right; }
.upload-preview img, .upload-preview video {
  max-width: 100%; max-height: 220px; border-radius: 10px; display: block; background: #000;
}
.checkbox-row { display: flex; gap: 10px; align-items: center; cursor: pointer; }
.checkbox-row input { width: 18px; height: 18px; }
.latlng-field { border: 1px solid var(--border); border-radius: 10px; padding: 12px; }
.latlng-field legend { padding: 0 6px; font-size: 13px; }
.alert-info { background: rgba(244,63,94,0.08); color: var(--primary); border: 1px solid rgba(244,63,94,0.2); padding: 8px 12px; border-radius: 8px; }
.status-approved { background: rgba(22,163,74,0.12); color: var(--success); }
.status-rejected { background: rgba(239,68,68,0.1); color: var(--danger); }

/* Table */
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.table th { color: var(--muted); font-weight: 500; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; }

/* Responsive */
@media (max-width: 900px) {
  .topbar { padding: 12px 16px; flex-wrap: wrap; gap: 12px; }
  .nav { order: 3; width: 100%; overflow-x: auto; }
  .main { padding: 20px 16px; }
  .hero { grid-template-columns: 1fr; gap: 32px; padding: 32px 0; }
  .hero-art { height: 320px; }
  .feature-grid { grid-template-columns: 1fr; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .billboard { padding: 32px 20px; }
}

/* ============ Archersboard rebrand additions ============ */
.brand-stack { display: inline-flex; flex-direction: column; line-height: 1.15; }
.brand-tag { font-size: 10.5px; color: var(--muted); font-weight: 500; letter-spacing: 0.03em; -webkit-text-fill-color: var(--muted); }
.topbar-right { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.locale-form select {
  background: var(--surface); color: var(--text); border: 1px solid var(--border);
  border-radius: 999px; padding: 6px 10px; font-size: 12px; font-weight: 600;
  cursor: pointer; -webkit-appearance: none; appearance: none;
}

/* Sign-in modal */
.signin-modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 20px; }
.signin-modal[hidden] { display: none; }
.signin-modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.65); backdrop-filter: blur(4px); }
.signin-modal-card {
  position: relative; background: var(--surface); color: var(--text);
  border: 1px solid var(--border); border-radius: 16px; padding: 28px;
  max-width: 420px; width: 100%; box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.signin-modal-card h2 { margin: 0 0 8px; font-size: 22px; }
.signin-modal-actions { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }

/* Region pill on billboards */
.ad-region-pill {
  display: inline-flex; align-items: center; gap: 4px;
  background: rgba(255,255,255,0.18); backdrop-filter: blur(6px);
  color: #fff; padding: 4px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 600;
}
.status-region { background: rgba(244,63,94,0.12); color: var(--primary); }
.status-flash { background: rgba(245,158,11,0.15); color: #d97706; }
.status-tier-featured { background: rgba(244,63,94,0.12); color: var(--primary); }
.status-tier-premium { background: linear-gradient(135deg, #facc15, #f59e0b); color: #1f1300; }

/* Anonymous rewards banner */
.rewards-banner-anon { background: linear-gradient(135deg, rgba(244,63,94,0.08), rgba(245,158,11,0.08)); border-color: rgba(244,63,94,0.25); }

/* Region + budget fieldsets */
.region-field, .budget-field, .upload-field { border: 1px solid var(--border); border-radius: 10px; padding: 14px; }
.region-field legend, .budget-field legend, .upload-field legend { padding: 0 6px; font-size: 13px; }
.form-row { display: flex; gap: 10px; }
.form-row > label { display: flex; flex-direction: column; gap: 4px; }
.budget-local-preview { font-size: 18px; font-weight: 700; padding: 10px 0; color: var(--text); }

/* Standalone billboard detail page */
.billboard-detail { max-width: 900px; margin: 0 auto; padding: 16px 0; }
.back-link { display: inline-flex; align-items: center; color: var(--muted); text-decoration: none; font-size: 14px; margin-bottom: 16px; }
.back-link:hover { color: var(--text); }

/* Trust row on landing */
.trust-row { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 16px; color: var(--muted); font-size: 13px; }

@media (max-width: 700px) {
  .topbar-right { width: 100%; justify-content: flex-end; }
  .brand-tag { display: none; }
  .form-row { flex-direction: column; }
}

/* =========================================================
   SYSTEM 1 — DIGITAL BILLBOARD MOCKUP (dashboard + proof)
   ========================================================= */
.ad-row-actions { display: flex; gap: 8px; align-items: center; margin-top: 8px; flex-wrap: wrap; }

/* Mini mockup in ad list rows */
.bb-mini-mockup { flex-shrink: 0; width: 120px; display: flex; flex-direction: column; align-items: center; gap: 0; }
.bb-mini-frame {
  width: 120px; height: 72px; border-radius: 8px; overflow: hidden;
  border: 2px solid rgba(244,63,94,0.35);
  box-shadow: 0 4px 24px rgba(0,0,0,0.45), 0 0 0 1px rgba(244,63,94,0.15);
  position: relative; background: #0d0d14;
}
.bb-mini-media { width: 100%; height: 100%; object-fit: cover; display: block; }
.bb-mini-live-badge {
  position: absolute; top: 4px; right: 4px;
  background: rgba(0,0,0,0.72); border: 1px solid rgba(239,68,68,0.6);
  border-radius: 20px; padding: 1px 6px; font-size: 9px; font-weight: 700;
  color: #fff; letter-spacing: 0.04em; display: flex; align-items: center; gap: 4px;
}
.live-dot { width: 5px; height: 5px; border-radius: 50%; background: #ef4444; animation: pulse-dot 1.4s infinite; display: inline-block; }
@keyframes pulse-dot { 0%,100%{opacity:1;} 50%{opacity:0.3;} }
.bb-mini-pole { width: 4px; height: 20px; background: linear-gradient(180deg,rgba(244,63,94,0.5),rgba(244,63,94,0.1)); border-radius: 2px; }

/* Full billboard mockup on proof page */
.bb-mockup-wrap {
  flex-shrink: 0; display: flex; flex-direction: column; align-items: center;
  gap: 0; filter: drop-shadow(0 16px 48px rgba(244,63,94,0.25));
}
.bb-mockup-sky {
  display: flex; gap: 8px; margin-bottom: 4px;
}
.bb-mockup-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(244,63,94,0.4); }
.bb-mockup-board { display: flex; flex-direction: column; align-items: center; }
.bb-mockup-frame {
  width: 380px; max-width: 100%; aspect-ratio: 16/9;
  border-radius: 14px; overflow: hidden;
  border: 3px solid rgba(244,63,94,0.45);
  box-shadow: 0 0 0 1px rgba(244,63,94,0.2), 0 24px 72px rgba(0,0,0,0.6);
  position: relative; background: #0d0d14;
}
.bb-mockup-media { width: 100%; height: 100%; object-fit: cover; display: block; }
.bb-mockup-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
  padding: 16px 12px 10px;
  display: flex; justify-content: space-between; align-items: flex-end;
  font-size: 12px; font-weight: 600;
}
.bb-mockup-biz { color: rgba(255,255,255,0.9); }
.bb-mockup-live {
  color: #fff; background: rgba(239,68,68,0.85); border-radius: 12px;
  padding: 2px 8px; font-size: 10px; display: flex; align-items: center; gap: 4px;
}
.bb-mockup-pole { width: 6px; height: 36px; background: linear-gradient(180deg, rgba(244,63,94,0.5), transparent); border-radius: 3px; }
.bb-mockup-base { width: 48px; height: 4px; background: rgba(244,63,94,0.3); border-radius: 2px; }

/* =========================================================
   SYSTEM 1 — PROOF-OF-PLAY PANEL
   ========================================================= */
.proof-shell { max-width: 1000px; margin: 0 auto; padding: 0 0 64px; }
.proof-hero {
  display: flex; gap: 40px; align-items: flex-start; flex-wrap: wrap;
  background: linear-gradient(135deg, rgba(244,63,94,0.06), rgba(245,158,11,0.04));
  border: 1px solid var(--border); border-radius: 20px;
  padding: 32px; margin-bottom: 24px;
}
.proof-hero-left { flex: 1; min-width: 260px; }
.proof-header-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.proof-title { font-size: 26px; font-weight: 800; margin: 0 0 6px; }
.proof-headline { margin: 0 0 20px; font-size: 15px; }
.proof-stats-row { display: flex; gap: 20px; flex-wrap: wrap; }
.proof-stat { text-align: center; }
.proof-stat-n { font-size: 28px; font-weight: 800; color: var(--accent); line-height: 1; }
.proof-stat-l { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 4px; }

.proof-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: 16px; padding: 24px; margin-bottom: 20px; }
.proof-card h2 { margin: 0 0 16px; font-size: 17px; font-weight: 700; }
.proof-card-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 16px; }
.proof-card-head h2 { margin: 0; }

/* Geo breakdown bars */
.geo-bars { display: flex; flex-direction: column; gap: 10px; }
.geo-bar-row { display: flex; align-items: center; gap: 12px; }
.geo-country { min-width: 80px; font-size: 13px; font-weight: 600; }
.geo-bar-track { flex: 1; height: 8px; background: var(--border); border-radius: 4px; overflow: hidden; }
.geo-bar-fill { height: 100%; background: linear-gradient(90deg, var(--accent), #fb7185); border-radius: 4px; transition: width 0.6s ease; }
.geo-count { min-width: 40px; text-align: right; font-size: 13px; color: var(--muted); }

/* Proof-of-play log table */
.pop-table-wrap { overflow-x: auto; border-radius: 10px; border: 1px solid var(--border); }
.pop-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.pop-table th { padding: 10px 14px; text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); border-bottom: 1px solid var(--border); background: rgba(255,255,255,0.02); }
.pop-table td { padding: 10px 14px; border-bottom: 1px solid rgba(255,255,255,0.04); vertical-align: middle; }
.pop-table tr:last-child td { border-bottom: none; }
.pop-ts { font-family: monospace; font-size: 12px; color: var(--muted); }
.pop-type {
  display: inline-block; padding: 2px 10px; border-radius: 20px; font-size: 11px;
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
}
.pop-type-impression { background: rgba(59,130,246,0.15); color: #60a5fa; }
.pop-type-view { background: rgba(244,63,94,0.15); color: #a78bfa; }
.pop-type-click { background: rgba(16,185,129,0.15); color: #34d399; }
.pop-type-save { background: rgba(245,158,11,0.15); color: #fbbf24; }
.pop-type-claim { background: rgba(239,68,68,0.15); color: #f87171; }
.pop-geo { font-size: 13px; }

/* Status pill for slots */
.status-slot { background: rgba(244,63,94,0.12); color: #a78bfa; border-color: rgba(244,63,94,0.25); }

/* =========================================================
   SYSTEM 2 — DAYPARTING UI
   ========================================================= */
/* Payment method selector */
.payment-method-field { border: 1px solid var(--border); border-radius: 10px; padding: 14px; }
.payment-method-field legend { padding: 0 6px; font-size: 13px; }
.payment-options { display: flex; gap: 10px; flex-wrap: wrap; }
.payment-option { flex: 1; min-width: 220px; cursor: pointer; display: block; }
.payment-option input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.payment-option-card {
  border: 2px solid var(--border); border-radius: 12px; padding: 14px 16px;
  transition: border-color 0.15s, background 0.15s; user-select: none;
  background: rgba(255,255,255,0.02);
}
.payment-option input[type="radio"]:checked + .payment-option-card {
  border-color: var(--primary); background: rgba(244,63,94,0.06);
}
.payment-option-card:hover { border-color: var(--primary); }
.payment-option-title { font-weight: 600; font-size: 15px; margin-bottom: 4px; display: flex; align-items: center; gap: 8px; }
.payment-option-tag {
  font-size: 11px; font-weight: 700; letter-spacing: 0.03em;
  background: var(--border); color: var(--muted); border-radius: 6px; padding: 1px 7px;
}

.daypart-field { border: 1px solid var(--border); border-radius: 10px; padding: 14px; }
.daypart-field legend { padding: 0 6px; font-size: 13px; }
.daypart-options { display: flex; gap: 10px; flex-wrap: wrap; }
.daypart-check {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,0.03); border: 1px solid var(--border);
  border-radius: 12px; padding: 10px 16px; cursor: pointer;
  transition: border-color 0.15s, background 0.15s; flex: 1; min-width: 200px;
  user-select: none;
}
.daypart-check:has(input:checked) {
  border-color: rgba(244,63,94,0.5);
  background: rgba(244,63,94,0.1);
}
.daypart-check input[type=checkbox] { width: 16px; height: 16px; cursor: pointer; accent-color: var(--accent); }
.daypart-icon { font-size: 18px; }
.daypart-label { font-size: 13px; font-weight: 600; }

/* Daypart indicator on feed */
.daypart-indicator {
  display: flex; align-items: center; gap: 8px; margin-top: 6px; flex-wrap: wrap;
}
.daypart-badge {
  display: inline-flex; align-items: center; gap: 6px;
  border-radius: 20px; padding: 4px 14px; font-size: 12px; font-weight: 700;
  border: 1px solid transparent;
}
.daypart-morning { background: rgba(245,158,11,0.12); color: #fbbf24; border-color: rgba(245,158,11,0.25); }
.daypart-afternoon { background: rgba(59,130,246,0.12); color: #60a5fa; border-color: rgba(59,130,246,0.25); }
.daypart-nightlife { background: rgba(244,63,94,0.12); color: #a78bfa; border-color: rgba(244,63,94,0.25); }

/* =========================================================
   SYSTEM 3 — VIEW-TO-EARN PROGRESS BAR + REWARD MODAL
   ========================================================= */
.vte-bar-wrap {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 80;
  background: linear-gradient(transparent, rgba(13,13,20,0.98) 30%);
  padding: 20px 20px 16px;
  pointer-events: none;
}
.vte-bar-inner { max-width: 600px; margin: 0 auto; pointer-events: auto; }
.vte-bar-track {
  height: 6px; background: rgba(255,255,255,0.1); border-radius: 3px;
  overflow: hidden; margin-bottom: 8px;
}
.vte-bar-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--accent), #f59e0b);
  border-radius: 3px; transition: width 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.vte-bar-text { font-size: 12px; color: rgba(255,255,255,0.6); text-align: center; margin: 0; }

/* Reward modal */
.vte-modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.7); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.vte-modal-overlay[hidden] { display: none; }
.vte-modal-card {
  background: linear-gradient(135deg, #1a0e2e, #0d0d1a);
  border: 1px solid rgba(244,63,94,0.4);
  border-radius: 24px; padding: 40px 36px; max-width: 440px; width: 100%;
  text-align: center; position: relative; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(244,63,94,0.15), 0 40px 100px rgba(0,0,0,0.6);
  animation: modal-pop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes modal-pop { from { transform: scale(0.85) translateY(20px); opacity: 0; } to { transform: none; opacity: 1; } }
.vte-modal-glow {
  position: absolute; top: -60px; left: 50%; transform: translateX(-50%);
  width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(244,63,94,0.3), transparent 70%);
  pointer-events: none;
}
.vte-modal-icon { font-size: 52px; margin-bottom: 16px; animation: bounce-icon 0.6s 0.2s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
@keyframes bounce-icon { from { transform: scale(0) rotate(-15deg); } to { transform: none; } }
.vte-modal-title { font-size: 22px; font-weight: 800; margin: 0 0 12px; color: var(--text); }
.vte-modal-body { font-size: 14px; color: var(--muted); margin: 0 0 28px; line-height: 1.6; }
.vte-modal-actions { display: flex; flex-direction: column; gap: 10px; }
.vte-cta { font-size: 15px; padding: 14px 24px; border-radius: 14px; }


/* =========================================================
   FEATURE 1 — ANALYTICS CHART
   ========================================================= */
.chart-wrap {
  position: relative; padding: 16px 0 8px;
}

/* =========================================================
   FEATURE 5 — TRENDING STRIP
   ========================================================= */
.trending-section {
  max-width: 960px; margin: 0 auto 28px; padding: 0;
}
.trending-header {
  display: flex; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap;
}
.trending-title {
  font-size: 16px; font-weight: 800; color: var(--text);
}
.trending-strip {
  display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px;
  scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.1) transparent;
}
.trending-strip::-webkit-scrollbar { height: 4px; }
.trending-strip::-webkit-scrollbar-track { background: transparent; }
.trending-strip::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 2px; }
.trending-card {
  flex: 0 0 160px; display: flex; flex-direction: column;
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: 14px; overflow: hidden; text-decoration: none;
  color: inherit; transition: border-color 0.2s, transform 0.2s;
}
.trending-card:hover { border-color: rgba(244,63,94,0.5); transform: translateY(-2px); }
.trending-thumb {
  position: relative; width: 100%; aspect-ratio: 16/10; overflow: hidden; background: var(--card-bg);
}
.trending-thumb-media {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.trending-rank {
  position: absolute; top: 6px; left: 6px;
  background: rgba(0,0,0,0.7); color: #fff;
  font-size: 11px; font-weight: 800; padding: 2px 7px; border-radius: 8px;
}
.trending-info {
  padding: 10px 10px 12px; display: flex; flex-direction: column; gap: 2px;
}
.trending-name {
  font-size: 12px; font-weight: 700; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.trending-biz { font-size: 11px; }
.trending-views {
  margin-top: 4px; font-size: 11px; font-weight: 600;
  color: #f59e0b;
}

/* =========================================================
   FEATURE 4 — CAROUSEL DOTS
   ========================================================= */
.carousel-dots {
  position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 5px; z-index: 10; pointer-events: none;
}
.carousel-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,0.4); transition: background 0.3s, transform 0.3s;
}
.carousel-dot.active {
  background: #fff; transform: scale(1.3);
}

/* Carousel upload UI in business dashboard */
.carousel-field { margin-top: 0; }
.carousel-thumbs {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px;
}
.carousel-thumb-wrap {
  position: relative; width: 80px; height: 60px; border-radius: 8px; overflow: hidden;
  border: 1px solid var(--border);
}
.carousel-thumb-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.carousel-thumb-rm {
  position: absolute; top: 2px; right: 2px;
  background: rgba(0,0,0,0.7); color: #fff; border: none; border-radius: 50%;
  width: 18px; height: 18px; font-size: 12px; line-height: 18px;
  text-align: center; cursor: pointer; padding: 0;
}
.bb-mini-carousel-badge {
  position: absolute; bottom: 4px; right: 4px;
  background: rgba(0,0,0,0.7); color: #fff;
  font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 6px;
}

/* =========================================================
   FEATURE 3 — AD EXPIRY & RENEWAL
   ========================================================= */
.status-expired {
  background: rgba(239,68,68,0.15); color: #f87171; border-color: rgba(239,68,68,0.3);
}
.status-expiring {
  background: rgba(245,158,11,0.15); color: #fbbf24; border-color: rgba(245,158,11,0.3);
}
.ad-expiry-row {
  margin: 2px 0 4px; font-size: 12px;
}
.ad-row-expired { opacity: 0.75; }

/* =========================================================
   FEATURE 2 — VOUCHER PAGES
   ========================================================= */
.voucher-shell {
  max-width: 620px; margin: 0 auto; padding: 40px 20px 80px;
}
.voucher-hero {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  position: relative;
}
.voucher-glow {
  position: absolute; top: -40px; left: 50%; transform: translateX(-50%);
  width: 280px; height: 280px; border-radius: 50%;
  background: radial-gradient(circle, rgba(244,63,94,0.18), transparent 70%);
  pointer-events: none;
}
.voucher-icon { font-size: 56px; margin-bottom: 20px; animation: bounce-icon 0.6s cubic-bezier(0.34,1.56,0.64,1) both; }
.voucher-title { font-size: 28px; font-weight: 800; margin: 0 0 10px; }
.voucher-sub { font-size: 14px; max-width: 420px; margin: 0 0 32px; line-height: 1.6; }

.voucher-card {
  width: 100%; max-width: 380px; border-radius: 20px; overflow: hidden;
  background: linear-gradient(135deg, #1a0e2e, #100d20);
  border: 1px solid rgba(244,63,94,0.4);
  box-shadow: 0 0 0 1px rgba(244,63,94,0.12), 0 20px 60px rgba(0,0,0,0.4);
  margin-bottom: 28px;
}
.voucher-card-inner {
  padding: 28px 28px 20px;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.voucher-label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.15em;
  text-transform: uppercase; color: rgba(255,255,255,0.4);
}
.voucher-code {
  font-family: 'Courier New', Courier, monospace;
  font-size: 32px; font-weight: 900; letter-spacing: 0.2em;
  color: #fff; word-break: break-all;
}
.voucher-copy { margin-top: 4px; }
.voucher-meta {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 28px 16px;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 12px; color: rgba(255,255,255,0.5);
}
.voucher-type { font-weight: 600; color: #a78bfa; }

.voucher-steps {
  display: flex; flex-direction: column; gap: 12px;
  margin-bottom: 28px; width: 100%; max-width: 360px; text-align: left;
}
.voucher-step {
  display: flex; align-items: center; gap: 14px;
  font-size: 14px; color: var(--muted);
}
.voucher-step-n {
  flex: 0 0 28px; width: 28px; height: 28px; border-radius: 50%;
  background: rgba(244,63,94,0.15); color: var(--accent);
  font-size: 12px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.voucher-actions {
  display: flex; gap: 10px; flex-wrap: wrap; justify-content: center;
}

/* Voucher list page */
.voucher-list {
  display: flex; flex-direction: column; gap: 10px; max-width: 700px;
}
.voucher-list-card {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: 14px; padding: 16px 20px;
}
.voucher-list-left { display: flex; flex-direction: column; gap: 6px; }
.voucher-list-code {
  font-family: 'Courier New', Courier, monospace;
  font-size: 18px; font-weight: 900; letter-spacing: 0.15em; color: var(--text);
}
.voucher-list-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.voucher-expired { opacity: 0.6; }
.voucher-used { opacity: 0.65; }

/* =========================================================
   RESPONSIVE — MOBILE (iOS / Android) + TABLET + DESKTOP
   ========================================================= */

/* Shared container alignment for all feed sections */
.discover-head,
.discover-filters,
.bb-category-tabs,
.billboard-shuffler,
.trending-section,
.empty-state {
  padding-left: 0;
  padding-right: 0;
}

/* Tablet */
@media (max-width: 900px) {
  .main { padding: 20px 20px 80px; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .bb-mockup-wrap { display: none; }
}

/* Mobile */
@media (max-width: 640px) {
  .topbar { padding: 0 14px; gap: 8px; height: 54px; }
  .brand-tag { display: none; }
  .brand-logo { width: 30px; height: 30px; }
  .brand-name { font-size: 14px; }

  /* Nav: compress */
  .nav { gap: 0; }
  .nav a { padding: 6px 7px; font-size: 12px; }
  .nav > button { padding: 6px 8px; font-size: 11px; }

  /* Topbar right: hide points/name on tiny screens */
  .user-meta { display: none; }
  .user-chip { padding: 4px; gap: 6px; }

  .main { padding: 14px 14px 100px; }

  .discover-head { margin: 16px 0 20px; }
  .discover-head h1 { font-size: 22px; }
  .discover-sub { font-size: 14px; }
  .rewards-banner { padding: 12px 14px; gap: 10px; }
  .rewards-icon { font-size: 20px; }

  .discover-filters {
    padding: 10px; gap: 8px; border-radius: 12px; margin-bottom: 20px;
  }
  .search-pill, .select-pill { padding: 10px 14px; border-radius: 10px; }
  .search-pill input, .select-pill select { font-size: 14px; }

  .bb-category-tabs { gap: 6px; }
  .bb-tab { padding: 6px 12px; font-size: 12px; }

  .billboard-shuffler { gap: 12px; }
  .bb-ctrl { width: 40px; height: 40px; }
  .bb-ctrl-shuffle { padding: 0 12px; font-size: 12px; }

  .ad-billboard { min-height: 260px; border-radius: 16px; }
  .ad-bb-title { font-size: 20px; }
  .ad-bb-headline { font-size: 13px; }
  .ad-actions { gap: 8px; padding: 10px 12px 12px; flex-wrap: wrap; }
  .ad-action { font-size: 13px; padding: 10px 14px; border-radius: 10px; }

  /* Trending strip: smaller cards */
  .trending-header { margin-bottom: 10px; }
  .trending-title { font-size: 14px; }
  .trending-card { flex: 0 0 130px; border-radius: 10px; }
  .trending-thumb { aspect-ratio: 4/3; }
  .trending-info { padding: 8px 8px 10px; gap: 2px; }
  .trending-name { font-size: 11px; }
  .trending-views { font-size: 10px; }

  /* Dashboard */
  .page-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .ad-row { flex-direction: column; }
  .bb-mini-mockup { display: none; }
  .ad-row-actions { flex-wrap: wrap; }

  /* Proof panel */
  .proof-hero { flex-direction: column; }
  .proof-stats-row { gap: 12px; }
  .proof-stat-n { font-size: 22px; }

  /* Vouchers */
  .voucher-code { font-size: 22px; letter-spacing: 0.12em; }
  .voucher-shell { padding: 24px 14px 80px; }

  /* VTE bar */
  .vte-bar-wrap { padding: 16px 14px 14px; }
}

/* Very small screens */
@media (max-width: 380px) {
  .nav a { font-size: 11px; padding: 5px 6px; }
  .brand-name { font-size: 13px; }
  .ad-actions { flex-direction: column; }
  .ad-action { width: 100%; justify-content: center; }
}

/* Large screens / desktop */
@media (min-width: 1200px) {
  .main { padding: 28px 48px 60px; max-width: 1400px; margin: 0 auto; }
  .billboard-shuffler { max-width: 740px; }
  .bb-category-tabs { max-width: 740px; }
  .trending-section { max-width: 1100px; }
  .discover-filters { max-width: 680px; }
  .ad-billboard { min-height: 540px; }
}

/* =========================================================
   PREMIUM POLISH OVERRIDES
   ========================================================= */
.main { padding-top: 40px; animation: page-entry .55s ease both; }
@keyframes page-entry { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.hero { padding-top: 84px; padding-bottom: 72px; }
.hero h1, .land-hero-text h1 { letter-spacing: -.045em; line-height: 1.04; }
.land-bb-card { box-shadow: var(--shadow-xl); animation: card-float 6s ease-in-out infinite; }
.land-bb-card.c2 { animation-delay: -2s; }
.land-bb-card.c3 { animation-delay: -4s; }
@keyframes card-float { 0%,100% { margin-top: 0; } 50% { margin-top: -8px; } }
.land-stats { box-shadow: var(--shadow-md); }
.feature-card, .land-step, .land-feat { box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.feature-card:hover, .land-step:hover, .land-feat:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: rgba(244,63,94,.4); }
.discover-head h1 { font-size: clamp(24px, 4vw, 38px); letter-spacing: -.045em; }
.discover-filters { box-shadow: var(--shadow-md); }
.select-pill { border-width: 1px; border-color: var(--border-strong); }
.bb-tab { transition: all .22s ease; box-shadow: var(--shadow-sm); }
.bb-tab:hover { transform: translateY(-2px); }
.bb-auto-bar { background: var(--surface-3); }
.bb-auto-bar-fill { background: linear-gradient(90deg, var(--primary), #fb7185, var(--accent)); }
.ad-card { box-shadow: var(--shadow-md); }
.ad-card:hover { box-shadow: var(--shadow-xl); }
.card { box-shadow: var(--shadow-sm); border-color: rgba(221,201,187,.8); }
.card:hover { box-shadow: var(--shadow-md); }
.ad-row { border: 1px solid transparent; transition: transform .22s ease, background .22s ease, border-color .22s ease, box-shadow .22s ease; }
.ad-row:hover { transform: translateY(-2px); background: var(--surface); border-color: var(--border); box-shadow: var(--shadow-sm); }
.status-pill { border: 1px solid transparent; }
.table tbody tr { transition: background-color .2s ease; }
.table tbody tr:hover { background: rgba(244,63,94,.04); }
.footer { background: linear-gradient(180deg, rgba(247,238,231,.35), transparent); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* =========================================================
   MOBILE BOTTOM NAVIGATION BAR (iOS / Android PWA)
   ========================================================= */
.mobile-bottom-nav {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  border-top: 1px solid var(--border);
  padding: 6px 8px;
  padding-bottom: calc(6px + env(safe-area-inset-bottom));
  z-index: 200;
  justify-content: space-around;
  align-items: stretch;
}
@media (max-width: 768px) {
  .mobile-bottom-nav { display: flex; }
  /* Push page content above the nav bar */
  .main { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
  .footer { margin-bottom: calc(64px + env(safe-area-inset-bottom)); }
}
.mbn-item {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; color: var(--muted); font-size: 10px; font-weight: 600;
  padding: 6px 8px; border-radius: 12px; flex: 1;
  transition: color 0.15s, background 0.15s;
  text-decoration: none; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  min-height: 52px;
}
.mbn-item:hover, .mbn-item.mbn-active { color: var(--primary); background: rgba(244,63,94,0.07); }
.mbn-item svg { width: 22px; height: 22px; flex-shrink: 0; }
.mbn-item.mbn-post {
  color: var(--primary); background: rgba(244,63,94,0.08);
  border: 1.5px solid rgba(244,63,94,0.2); border-radius: 14px;
}
.mbn-item.mbn-post:hover, .mbn-item.mbn-post.mbn-active {
  background: rgba(244,63,94,0.15); border-color: rgba(244,63,94,0.35);
}

/* ── Campaign package pricing picker ───────────────────────────────────────── */
.pkg-field {
  border: 1px solid var(--border); border-radius: 12px; padding: 20px;
  display: flex; flex-direction: column; gap: 22px;
}
.pkg-field > legend { padding: 0 8px; font-size: 13px; font-weight: 600; color: var(--text); }

.pkg-section { display: flex; flex-direction: column; gap: 10px; }
.pkg-label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.07em;
  text-transform: uppercase; color: var(--muted);
}

/* Reach cards — 4-column grid */
.reach-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
@media (max-width: 580px) { .reach-cards { grid-template-columns: repeat(2, 1fr); } }
.reach-card {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  padding: 14px 8px; border-radius: 10px; border: 1.5px solid var(--border);
  background: var(--surface); cursor: pointer; text-align: center;
  transition: border-color 0.15s, background 0.15s;
}
.reach-card:hover { border-color: var(--primary); }
.reach-card.selected { border-color: var(--primary); background: rgba(244,63,94,0.06); }
.reach-card-icon { font-size: 20px; line-height: 1; }
.reach-card-name { font-size: 13px; font-weight: 700; color: var(--text); }
.reach-card.selected .reach-card-name { color: var(--primary); }
.reach-card-desc { font-size: 11px; color: var(--muted); line-height: 1.3; }
.reach-card-price { font-size: 11px; font-weight: 700; color: var(--accent); margin-top: 2px; }

/* Duration pills */
.duration-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.duration-pill {
  padding: 7px 18px; border-radius: 20px; border: 1.5px solid var(--border);
  background: var(--surface); font-size: 13px; font-weight: 500; color: var(--text);
  cursor: pointer; transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.duration-pill:hover { border-color: var(--primary); }
.duration-pill.selected { border-color: var(--primary); background: var(--primary); color: #fff; }

/* Placement cards — 3-column grid */
.placement-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 580px) { .placement-cards { grid-template-columns: 1fr; } }
.placement-card {
  padding: 14px; border-radius: 10px; border: 1.5px solid var(--border);
  background: var(--surface); cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.placement-card:hover { border-color: var(--primary); }
.placement-card.selected { border-color: var(--primary); background: rgba(244,63,94,0.06); }
.placement-card-header {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px;
}
.placement-card-name { font-size: 13px; font-weight: 700; color: var(--text); }
.placement-card.selected .placement-card-name { color: var(--primary); }
.placement-card-mult {
  font-size: 11px; font-weight: 700; color: var(--accent);
  background: rgba(245,158,11,0.12); padding: 2px 8px; border-radius: 6px;
}
.placement-card-desc { font-size: 11px; color: var(--muted); line-height: 1.4; }

/* Price summary box */
.price-summary {
  border-radius: 10px; padding: 16px 20px;
  background: linear-gradient(135deg, #F43F5E 0%, #BE123C 100%);
  color: #fff;
}
.price-summary-row {
  display: flex; justify-content: space-between; align-items: baseline;
}
.price-summary-label { font-size: 13px; font-weight: 500; opacity: 0.85; }
.price-summary-amount { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; }
.price-summary-local { font-size: 13px; opacity: 0.75; margin-top: 3px; }

/* Final surface tuning — shared by landing, feed, billboard and dashboard */
.billboard-detail { max-width: 980px; padding-top: 28px; }
.billboard-detail .back-link { margin-bottom: 20px; }
.billboard-detail .ad-card { border-radius: var(--radius-lg); overflow: hidden; }
.billboard-detail .ad-billboard { aspect-ratio: 16 / 10; min-height: 520px; }
.billboard-detail .ad-bb-title { font-size: clamp(34px, 6vw, 64px); max-width: 760px; }
.billboard-detail .ad-billboard-overlay { padding: 32px; gap: 12px; }
.billboard-detail .ad-actions { padding: 18px 22px 22px; background: var(--surface); }
.billboard-detail .ad-action { min-height: 46px; }
.bb-progress { font-variant-numeric: tabular-nums; letter-spacing: .03em; }
.bb-controls { padding: 12px 0; }
.bb-ctrl { box-shadow: var(--shadow-sm); }
.bb-ctrl-shuffle { box-shadow: 0 12px 24px -12px rgba(190,18,60,.75); }
.upload-field, .region-field, .daypart-field, .payment-method-field, .pkg-field {
  background: rgba(255,253,250,.55);
  border-color: var(--border);
}
.upload-field:hover, .region-field:hover, .daypart-field:hover, .payment-method-field:hover { border-color: var(--border-strong); }
.reach-card, .placement-card, .duration-pill, .payment-option-card, .daypart-check {
  transition: transform .22s ease, border-color .22s ease, background-color .22s ease, box-shadow .22s ease;
}
.reach-card:hover, .placement-card:hover, .payment-option-card:hover, .daypart-check:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.duration-pill:hover { transform: translateY(-1px); }
.price-summary { box-shadow: 0 14px 28px -18px rgba(190,18,60,.8); }
.empty-state { background: rgba(255,253,250,.56); box-shadow: var(--shadow-sm); }
.signin-modal-card { box-shadow: var(--shadow-xl); }
@media (max-width: 640px) {
  .billboard-detail { padding-top: 12px; }
  .billboard-detail .ad-billboard { aspect-ratio: 4 / 5; min-height: 390px; }
  .billboard-detail .ad-billboard-overlay { padding: 20px; }
  .billboard-detail .ad-bb-title { font-size: 32px; }
}

/* ═══════════════════════════════════════════════════════════════════
   AUTH PAGES
   ═══════════════════════════════════════════════════════════════════ */

/* ── Shared auth body ─────────────────────────────────────────────── */
.auth-body {
  background: var(--bg);
  min-height: 100vh;
  margin: 0; padding: 0;
}

/* ── Two-panel shell (login + signup-viewer + signup-business) ────── */
.auth-shell {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}
@media (max-width: 768px) {
  .auth-shell { grid-template-columns: 1fr; }
}

/* ── Brand panel (left) ───────────────────────────────────────────── */
.auth-panel-brand {
  background: linear-gradient(155deg, #1a0a12 0%, #2d0e1e 35%, #1c1018 70%, #0f0a0d 100%);
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  padding: 48px 40px;
}
.auth-panel-brand::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(244,63,94,0.25) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(245,158,11,0.15) 0%, transparent 45%);
  pointer-events: none;
}
.auth-panel-viewer {
  background: linear-gradient(155deg, #0a1220 0%, #0e1f38 35%, #0a1425 70%, #060d18 100%);
}
.auth-panel-viewer::before {
  background:
    radial-gradient(circle at 20% 20%, rgba(99,179,237,0.2) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(244,63,94,0.12) 0%, transparent 45%);
}
.auth-panel-business {
  background: linear-gradient(155deg, #0d1a0a 0%, #1a2e0e 35%, #0f1c0a 70%, #080d06 100%);
}
.auth-panel-business::before {
  background:
    radial-gradient(circle at 20% 20%, rgba(22,163,74,0.2) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(245,158,11,0.15) 0%, transparent 45%);
}
@media (max-width: 768px) {
  .auth-panel-brand { display: none; }
}

.auth-brand-inner {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; gap: 32px;
  max-width: 380px; width: 100%;
}
.auth-brand-logo {
  display: inline-flex; align-items: center; gap: 12px;
  text-decoration: none;
}
.auth-brand-name {
  font-size: 20px; font-weight: 800; letter-spacing: -0.01em; color: #fff;
}
.auth-brand-tag { font-size: 11px; color: rgba(255,255,255,0.55); font-weight: 500; }
.auth-brand-headline {
  display: flex; flex-direction: column; gap: 4px;
}
.auth-brand-headline span {
  font-size: clamp(28px, 3.5vw, 38px); font-weight: 800; letter-spacing: -0.03em;
  line-height: 1.1; color: #fff;
}
.auth-brand-headline span:nth-child(2) {
  color: rgba(255,255,255,0.65);
}
.auth-brand-headline span:nth-child(3) {
  color: rgba(255,255,255,0.35);
}

/* Floating ad preview cards on brand panel */
.auth-brand-floats {
  display: flex; flex-direction: column; gap: 12px;
}
.auth-float-card {
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px; padding: 16px 18px;
  backdrop-filter: blur(12px);
  display: flex; flex-direction: column; gap: 4px;
  transition: transform 0.3s ease, background 0.3s ease;
}
.auth-float-card:hover { transform: translateX(4px); background: rgba(255,255,255,0.1); }
.auth-float-cat {
  font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent); opacity: 0.9;
}
.auth-float-card strong { font-size: 14px; font-weight: 700; color: #fff; line-height: 1.3; }
.auth-float-loc { font-size: 11px; color: rgba(255,255,255,0.45); font-weight: 500; }

/* Viewer perks list */
.auth-viewer-perks { display: flex; flex-direction: column; gap: 16px; }
.auth-perk {
  display: flex; align-items: flex-start; gap: 14px;
}
.auth-perk-icon { font-size: 22px; flex-shrink: 0; line-height: 1; }
.auth-perk strong { display: block; font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 2px; }
.auth-perk p { margin: 0; font-size: 12.5px; color: rgba(255,255,255,0.5); line-height: 1.45; }

/* ── Form panel (right) ───────────────────────────────────────────── */
.auth-panel-form {
  display: flex; align-items: center; justify-content: center;
  padding: 48px 40px;
  background: var(--bg);
}
.auth-form-wrap {
  width: 100%; max-width: 400px;
  display: flex; flex-direction: column; gap: 0;
}
.auth-mobile-logo {
  display: none; align-items: center; gap: 8px;
  font-size: 16px; font-weight: 800; color: var(--text);
  text-decoration: none; margin-bottom: 24px;
}
@media (max-width: 768px) { .auth-mobile-logo { display: inline-flex; } }
.auth-back-link {
  display: inline-block; font-size: 13px; color: var(--muted);
  text-decoration: none; margin-bottom: 16px; transition: color .2s;
}
.auth-back-link:hover { color: var(--primary); }
.auth-title {
  font-size: 26px; font-weight: 800; letter-spacing: -0.025em;
  color: var(--text); margin: 0 0 6px;
}
.auth-subtitle {
  font-size: 14px; color: var(--muted); margin: 0 0 24px; line-height: 1.5;
}

/* Google button */
.auth-google-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 12px 16px; border-radius: 12px;
  background: var(--surface); border: 1.5px solid var(--border-strong);
  font-size: 14px; font-weight: 600; color: var(--text); text-decoration: none;
  transition: all .22s ease; cursor: pointer;
  box-shadow: var(--shadow-sm);
}
.auth-google-btn:hover {
  background: var(--surface-2); border-color: var(--text);
  transform: translateY(-1px); box-shadow: var(--shadow-md);
}

/* Divider */
.auth-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 20px 0; color: var(--muted); font-size: 12px; font-weight: 500;
}
.auth-divider::before, .auth-divider::after {
  content: ""; flex: 1; height: 1px; background: var(--border);
}

/* Form fields */
.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-field { display: flex; flex-direction: column; gap: 5px; }
.auth-field label {
  font-size: 13px; font-weight: 600; color: var(--text);
  display: flex; justify-content: space-between; align-items: center;
}
.auth-field-link { font-size: 12px; font-weight: 500; color: var(--primary); text-decoration: none; }
.auth-field-link:hover { text-decoration: underline; }
.auth-field input {
  width: 100%; padding: 12px 14px; font-size: 14px; border-radius: 11px;
  border: 1.5px solid var(--border); background: var(--surface);
  color: var(--text); outline: none; font-family: inherit;
  transition: border-color .18s, box-shadow .18s;
}
.auth-field input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(244,63,94,0.1);
}
.auth-field input::placeholder { color: var(--muted); }
.auth-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.auth-pw-strength { margin-top: 2px; min-height: 18px; }

.auth-submit-btn {
  width: 100%; padding: 13px; font-size: 15px; margin-top: 4px;
  border-radius: 12px; border: none;
}

/* Alerts */
.auth-alert {
  padding: 12px 14px; border-radius: 10px; font-size: 13.5px; font-weight: 500;
  margin-bottom: 16px; line-height: 1.4;
}
.auth-alert-error {
  background: rgba(239,68,68,0.08); border: 1px solid rgba(239,68,68,0.25); color: #c53030;
}
.auth-alert-success {
  background: rgba(22,163,74,0.08); border: 1px solid rgba(22,163,74,0.25); color: #166534;
}

/* Switch + legal */
.auth-switch { font-size: 13.5px; color: var(--muted); text-align: center; margin-top: 20px; }
.auth-switch a { color: var(--primary); font-weight: 600; text-decoration: none; }
.auth-switch a:hover { text-decoration: underline; }
.auth-legal { font-size: 11.5px; color: var(--muted); text-align: center; margin-top: 10px; line-height: 1.5; }
.auth-legal a { color: var(--muted); text-decoration: underline; }

/* ── Role-selection page ──────────────────────────────────────────── */
.auth-body-signup { background: var(--bg); }
.auth-signup-shell {
  max-width: 960px; margin: 0 auto;
  padding: 32px 24px 64px;
  display: flex; flex-direction: column; align-items: center; gap: 40px;
}
.auth-signup-nav {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
}
.auth-signup-logo { display: inline-flex !important; margin-bottom: 0 !important; }
.auth-login-link { font-size: 13.5px; color: var(--muted); text-decoration: none; }
.auth-login-link:hover { color: var(--text); }
.auth-login-link strong { color: var(--primary); }
.auth-signup-hero { text-align: center; }
.auth-signup-hero h1 {
  font-size: clamp(32px, 5vw, 52px); font-weight: 800; letter-spacing: -0.03em;
  color: var(--text); margin: 0 0 10px;
}
.auth-signup-hero p { font-size: 17px; color: var(--muted); margin: 0; }
.auth-role-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px; width: 100%;
}
@media (max-width: 620px) { .auth-role-grid { grid-template-columns: 1fr; } }
.auth-role-card {
  position: relative;
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px 28px;
  text-decoration: none; color: var(--text);
  display: flex; flex-direction: column; gap: 12px;
  transition: all .25s ease;
  box-shadow: var(--shadow-sm);
}
.auth-role-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary);
}
.auth-role-viewer:hover { border-color: #60a5fa; }
.auth-role-business {
  border-color: var(--primary);
  background: linear-gradient(160deg, #fff8f9, var(--surface));
}
.auth-role-business:hover {
  background: linear-gradient(160deg, #ffeff2, #fff8f9);
  border-color: var(--primary-2);
}
.auth-role-badge {
  position: absolute; top: 20px; right: 20px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff; font-size: 10px; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; padding: 4px 10px; border-radius: 999px;
}
.auth-role-icon {
  width: 48px; height: 48px; border-radius: 14px;
  background: rgba(244,63,94,0.08); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
}
.auth-role-icon svg { width: 24px; height: 24px; }
.auth-role-viewer .auth-role-icon { background: rgba(96,165,250,0.1); color: #3b82f6; }
.auth-role-card h2 { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; margin: 0; }
.auth-role-card > p { font-size: 14px; color: var(--muted); margin: 0; line-height: 1.55; }
.auth-role-perks {
  list-style: none; padding: 0; margin: 4px 0 0;
  display: flex; flex-direction: column; gap: 6px;
}
.auth-role-perks li {
  font-size: 13px; color: var(--muted); padding-left: 18px; position: relative;
}
.auth-role-perks li::before {
  content: "✓"; position: absolute; left: 0; color: var(--success); font-weight: 700; font-size: 12px;
}
.auth-role-cta {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: auto; padding-top: 16px;
  font-size: 14px; font-weight: 700; color: var(--primary);
  border-top: 1px solid var(--border);
}
.auth-role-cta::after { content: "→"; }
.auth-legal-note { font-size: 12px; color: var(--muted); text-align: center; }
.auth-legal-note a { color: var(--muted); text-decoration: underline; }

/* ── Minimal auth pages (forgot / reset / verify) ─────────────────── */
.auth-body-minimal { display: flex; align-items: center; justify-content: center; min-height: 100vh; }
.auth-minimal-wrap {
  width: 100%; max-width: 440px; padding: 24px;
  display: flex; flex-direction: column; align-items: center; gap: 28px;
}
.auth-center-logo { display: inline-flex !important; margin-bottom: 0 !important; }
.auth-minimal-card {
  width: 100%; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 40px 36px;
  box-shadow: var(--shadow-md);
}
@media (max-width: 480px) { .auth-minimal-card { padding: 28px 20px; } }

/* Success / error states on minimal pages */
.auth-success-state, .auth-error-state {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px;
}
.auth-success-icon, .auth-error-icon {
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 4px;
}
.auth-success-icon {
  background: rgba(22,163,74,0.1); color: var(--success);
}
.auth-success-icon svg, .auth-error-icon svg { width: 28px; height: 28px; }
.auth-error-icon {
  background: rgba(239,68,68,0.1); color: var(--danger);
}
.auth-success-state .auth-title, .auth-error-state .auth-title { font-size: 22px; }
.auth-success-state .auth-subtitle, .auth-error-state .auth-subtitle { font-size: 14px; max-width: 300px; }

/* Auth refresh — editorial city-guide palette */
.auth-body, .auth-body-minimal, .auth-body-signup {
  font-family: "DM Sans", system-ui, sans-serif;
  background-color: #f5f0e8;
  background-image: radial-gradient(ellipse at 8% 8%, rgba(204, 72, 69, .08), transparent 34rem);
  min-height: 100dvh;
}
.auth-title, .auth-signup-hero h1, .auth-role-card h2, .auth-success-state .auth-title,
.auth-error-state .auth-title {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  letter-spacing: -.035em;
}
.auth-shell { min-height: 100dvh; }
.auth-panel-brand {
  background: #263b38;
  padding: clamp(32px, 6vw, 88px);
}
.auth-panel-brand::before {
  background:
    radial-gradient(ellipse at 18% 12%, rgba(234, 153, 100, .23), transparent 45%),
    radial-gradient(ellipse at 88% 82%, rgba(172, 207, 183, .16), transparent 40%);
}
.auth-panel-viewer { background: #34454b; }
.auth-panel-viewer::before {
  background: radial-gradient(ellipse at 15% 20%, rgba(206, 159, 116, .22), transparent 48%),
    radial-gradient(ellipse at 85% 90%, rgba(171, 205, 195, .18), transparent 42%);
}
.auth-panel-business { background: #3d3d30; }
.auth-panel-business::before {
  background: radial-gradient(ellipse at 12% 18%, rgba(225, 159, 108, .24), transparent 48%),
    radial-gradient(ellipse at 90% 88%, rgba(190, 202, 153, .16), transparent 42%);
}
.auth-brand-inner { gap: clamp(26px, 4vh, 42px); max-width: 440px; }
.auth-brand-headline span { font-family: "Fraunces", Georgia, serif; font-size: clamp(32px, 4vw, 52px); font-weight: 600; }
.auth-brand-headline span:nth-child(2) { color: #e9c6a4; }
.auth-brand-headline span:nth-child(3) { color: rgba(255, 248, 235, .64); }
.auth-brand-tag { color: rgba(255, 248, 235, .72); letter-spacing: .08em; text-transform: uppercase; }
.auth-float-card {
  background: rgba(245, 240, 232, .1);
  border-color: rgba(245, 240, 232, .22);
}
.auth-float-cat { color: #f2bd82; }
.auth-float-loc { color: rgba(255, 248, 235, .75); }
.auth-perk { gap: 15px; }
.auth-perk-icon {
  width: 38px; height: 38px; border: 1px solid rgba(255, 248, 235, .3);
  border-radius: 12px; display: grid; place-items: center; color: #f2bd82;
  background: rgba(255, 248, 235, .07); flex: 0 0 38px;
}
.auth-perk-icon svg {
  width: 19px; height: 19px; fill: none; stroke: currentColor;
  stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
.auth-perk p { color: rgba(255, 248, 235, .77); }
.auth-panel-form { padding: clamp(24px, 5vw, 72px); background: #f5f0e8; }
.auth-form-wrap { max-width: 430px; }
.auth-title { font-size: clamp(29px, 3vw, 38px); color: #26332f; line-height: 1.12; }
.auth-subtitle { color: #5d625d; font-size: 15px; }
.auth-mobile-logo { color: #26332f; }
.auth-back-link, .auth-field-link, .auth-switch a { color: #9f3e3b; }
.auth-back-link:hover, .auth-field-link:hover, .auth-switch a:hover { color: #762b2b; }
.auth-google-btn {
  background: #fffdf8; border-color: #c9c1b5; border-radius: 8px;
  box-shadow: 0 2px 0 rgba(38, 51, 47, .05); min-height: 48px;
}
.auth-google-btn:hover { background: #fff; border-color: #68746b; }
.auth-form { gap: 15px; }
.auth-field { gap: 6px; }
.auth-field label { color: #343d38; }
.auth-field input {
  min-height: 48px; color: #26332f; background: #fffdf8;
  border: 1px solid #bfb8ad; border-radius: 8px;
}
.auth-field input::placeholder { color: #74766f; opacity: 1; }
.auth-field input:focus { border-color: #9f3e3b; box-shadow: 0 0 0 3px rgba(159, 62, 59, .14); }
.auth-submit-btn {
  min-height: 50px; border-radius: 8px; margin-top: 3px;
  background: #9f3e3b; box-shadow: 0 5px 14px rgba(109, 42, 39, .18);
}
.auth-submit-btn:hover { background: #7f302e; box-shadow: 0 8px 20px rgba(109, 42, 39, .2); }
.auth-switch { color: #5d625d; }
.auth-legal { color: #656963; }
.auth-legal a, .auth-legal-note a { color: #813532; }
.auth-alert {
  border-radius: 8px; padding: 13px 15px; margin: 0 0 16px;
  font-size: 13px; line-height: 1.5;
}
.auth-alert-error { color: #762b2b; background: #f8e5e1; border-color: #d8aaa0; }
.auth-alert-delivery {
  color: #593a13; background: #fff0d3; border: 1px solid #d7ad65;
  box-shadow: inset 4px 0 #b46b21;
}
.auth-optional { color: #62675f; font-size: 11px; font-weight: 500; }
.auth-signup-shell { max-width: 1120px; padding: 28px 30px 44px; }
.auth-signup-nav { margin-bottom: clamp(30px, 6vh, 64px); }
.auth-signup-hero { max-width: 740px; }
.auth-signup-hero h1 {
  color: #26332f; font-size: clamp(40px, 7vw, 76px);
  line-height: .99; max-width: 700px;
}
.auth-signup-hero p { color: #5d625d; font-size: 17px; }
.auth-role-grid { gap: 22px; margin-bottom: 28px; }
.auth-role-card {
  border-color: #d3c9bb; border-radius: 12px;
  background: #fffdf8; padding: clamp(22px, 3vw, 34px);
  box-shadow: 0 8px 24px rgba(38, 51, 47, .055);
}
.auth-role-card:hover { border-color: #9f3e3b; box-shadow: 0 16px 32px rgba(38, 51, 47, .1); }
.auth-role-card:focus-visible { outline: 3px solid #9f3e3b; outline-offset: 4px; }
.auth-role-viewer .auth-role-icon { background: #e9eee8; color: #3e6656; }
.auth-role-business .auth-role-icon { background: #f5e8da; color: #9f3e3b; }
.auth-role-card h2 { color: #26332f; font-size: 24px; }
.auth-role-card > p, .auth-role-perks li { color: #555e58; }
.auth-role-perks li::before { color: #3e6656; }
.auth-role-cta { color: #873532; }
.auth-minimal-wrap { max-width: 500px; gap: 24px; }
.auth-minimal-card {
  background: #fffdf8; border-color: #d3c9bb; border-radius: 12px;
  box-shadow: 0 18px 55px rgba(38, 51, 47, .1);
}
.auth-success-icon { background: #e6eee7; color: #32664b; }
.auth-error-icon { background: #f8e5e1; color: #8f3934; }
.auth-body-minimal .auth-submit-btn { width: 100%; }
.auth-success-state .auth-subtitle, .auth-error-state .auth-subtitle { color: #5d625d; }
.auth-field-row { gap: 12px; }
.nav-action-icon { width: 15px; height: 15px; margin-right: 6px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.email-status-banner {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 6px;
  padding: 10px 18px; color: #334e40; background: #e5eee4;
  border-bottom: 1px solid #b6cbbb; font-size: 13px; text-align: center;
}
.email-status-error { color: #683727; background: #f8e7d9; border-color: #dfb99c; }
.email-status-banner[hidden] { display: none !important; }
.auth-signup-alert { margin-top: 24px; }
@media (max-width: 768px) {
  .auth-shell { min-height: 100dvh; }
  .auth-panel-form { padding: max(20px, env(safe-area-inset-top)) 22px max(30px, env(safe-area-inset-bottom)); align-items: flex-start; }
  .auth-form-wrap { max-width: 500px; margin: 0 auto; }
  .auth-signup-shell { padding: 20px 20px 34px; }
  .auth-signup-nav { margin-bottom: 42px; }
  .auth-signup-hero h1 { font-size: clamp(42px, 11vw, 64px); }
  .auth-role-grid { grid-template-columns: 1fr; }
  .auth-role-card { min-height: 0; }
}
@media (max-width: 480px) {
  .auth-field-row { display: flex; flex-direction: column; gap: 15px; }
  .auth-signup-nav { align-items: center; }
  .auth-signup-logo span { font-size: 15px; }
  .auth-login-link { font-size: 12px; }
  .auth-minimal-wrap { padding: 20px 16px; }
  .auth-minimal-card { padding: 27px 21px; }
}
@media (prefers-reduced-motion: reduce) {
  .auth-body *, .auth-body-minimal *, .auth-body-signup * { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
