/* ============================================================
   Not Busy Now — v2: Bright, edgy, startup-energetic
   Cream/ivory base + vibrant multi-color accents + big rounded shapes
   ============================================================ */

:root {
  /* Base surfaces */
  --cream: #F6F1E7;          /* warm off-white app background */
  --cream-2: #EFE8D8;        /* section band */
  --white: #FFFFFF;
  --ink: #17171F;            /* near-black for text — never pure black */
  --ink-2: #2A2A38;
  --muted: #6B6E7E;
  --muted-2: #9CA0B0;
  --line: #E9E3D2;           /* soft cream border */
  --line-2: #DED6BF;

  /* Vibrant accent set */
  --coral: #FF4B2B;          /* primary CTA — bright orange-coral */
  --coral-dark: #E63A1A;
  --lime: #D0FF4C;           /* electric energy accent */
  --lime-dark: #A9E62E;
  --indigo: #4B3CFF;         /* cool contrast */
  --pink: #FF3D8A;
  --amber: #FFB800;
  --teal: #14C4B6;
  --plum: #7B2CBF;

  /* Success/status */
  --success: #10B981;
  --danger:  #FF4B2B;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  font-family: 'Inter Tight', 'DM Sans', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Subtle noise on cream for texture */
body::before {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence baseFrequency='0.9'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  mix-blend-mode: multiply;
}

/* Neutralize former theme classes */
body.theme-dark, body.theme-light { background: var(--cream); color: var(--ink); }

/* ---------- Typography ---------- */
.font-display {
  font-family: 'Bricolage Grotesque', 'Outfit', 'Inter Tight', sans-serif;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.02;
}
.font-serif-italic {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.font-mono {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  letter-spacing: -0.01em;
}

/* Section eyebrow */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 0.85rem;
  background: var(--ink);
  color: var(--cream);
  border-radius: 999px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 1.25rem;
}
.section-tag .pulse-dot {
  width: 7px; height: 7px; border-radius: 999px;
  background: var(--lime);
  box-shadow: 0 0 0 3px rgba(208, 255, 76, 0.35);
  animation: dot-pulse 1.6s ease-in-out infinite;
}
@keyframes dot-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.7); opacity: 0.6; }
}

/* ---------- Header ---------- */
.nbn-header {
  position: sticky;
  top: 16px;
  z-index: 60;
  margin: 16px 20px 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid var(--line);
  box-shadow: 0 12px 24px -20px rgba(23, 23, 31, 0.25);
}
.nbn-header .inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 22px;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nbn-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}
.logo-img {
  height: 42px;
  width: auto;
  display: block;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.nbn-logo:hover .logo-img { transform: scale(1.03) rotate(-1deg); }

/* keep older logo-mark rules for compatibility */
.nbn-logo .logo-mark {
  width: 30px; height: 30px;
  border-radius: 9px;
  background: var(--coral);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  box-shadow: 0 0 0 3px rgba(255, 75, 43, 0.15);
  transform: rotate(-6deg);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.nbn-logo:hover .logo-mark { transform: rotate(0deg) scale(1.06); }
.nbn-logo .logo-mark i { font-size: 1rem; }

.nav-links { display: flex; gap: 4px; }
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.88rem;
  color: var(--ink-2);
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.nav-link:hover { background: var(--cream-2); color: var(--ink); }
.nav-link.active { background: var(--ink); color: var(--cream); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  font-family: inherit;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(0.98); }

.btn-primary {
  background: var(--coral);
  color: var(--white);
  box-shadow: 0 8px 24px -6px rgba(255, 75, 43, 0.45);
}
.btn-primary:hover { background: var(--coral-dark); transform: translateY(-2px); box-shadow: 0 14px 30px -6px rgba(255, 75, 43, 0.55); }

.btn-ink {
  background: var(--ink);
  color: var(--cream);
}
.btn-ink:hover { background: var(--ink-2); transform: translateY(-2px); }

.btn-lime {
  background: var(--lime);
  color: var(--ink);
  box-shadow: 0 8px 24px -6px rgba(208, 255, 76, 0.55);
}
.btn-lime:hover { background: var(--lime-dark); transform: translateY(-2px); }

.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
}
.btn-outline:hover { background: var(--ink); color: var(--cream); transform: translateY(-2px); }

.btn-ghost {
  background: transparent;
  color: var(--ink-2);
}
.btn-ghost:hover { background: var(--cream-2); color: var(--ink); }

.btn-sm { padding: 0.55rem 1.05rem; font-size: 0.85rem; }
.btn-xs { padding: 0.4rem 0.85rem; font-size: 0.78rem; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; box-shadow: none !important; }

/* ---------- Cards ---------- */
.card {
  background: var(--white);
  border-radius: 22px;
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -20px rgba(23, 23, 31, 0.18);
  border-color: var(--line-2);
}
.soft-card {
  background: var(--white);
  border-radius: 22px;
  border: 1px solid var(--line);
  padding: 1.75rem;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 6rem 6vw 5rem;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: 1.15fr 1fr; gap: 4rem; }
}
.hero-blob {
  position: absolute;
  pointer-events: none;
  border-radius: 999px;
  filter: blur(60px);
  opacity: 0.55;
  z-index: 0;
}
.hero-blob.b1 { width: 520px; height: 520px; background: var(--coral); top: -140px; right: -100px; }
.hero-blob.b2 { width: 420px; height: 420px; background: var(--lime); bottom: -160px; left: -80px; opacity: 0.7; }
.hero-blob.b3 { width: 300px; height: 300px; background: var(--indigo); top: 30%; left: 42%; opacity: 0.28; }

.hero .inner { position: relative; z-index: 1; max-width: 1400px; margin: 0 auto; }

/* Just-posted rotating chip */
.just-posted {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 1rem 0.55rem 0.6rem;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px -14px rgba(23,23,31,0.2);
  margin: 0.75rem 0 1.5rem;
  font-size: 0.85rem;
  color: var(--ink);
  overflow: hidden;
  max-width: 100%;
}
.just-posted .jp-label {
  background: var(--lime);
  color: var(--ink);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
}
.just-posted .jp-arrow { color: var(--muted); font-weight: 700; }
.just-posted .jp-cycle {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-width: 0;
}
.just-posted .jp-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  animation: jp-slide 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes jp-slide {
  0%   { opacity: 0; transform: translateY(14px); }
  100% { opacity: 1; transform: translateY(0); }
}
.hero h1 {
  font-family: 'Bricolage Grotesque', 'Outfit', sans-serif;
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.96;
  font-size: clamp(2.75rem, 7.5vw, 6.75rem);
  margin: 1rem 0 1.75rem;
  max-width: 15ch;
  color: var(--ink);
}
.hero h1 .swash {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--coral);
}
.hero h1 .underline-lime {
  position: relative;
  display: inline-block;
  z-index: 1;
}
.hero h1 .underline-lime::after {
  content: '';
  position: absolute;
  left: -4px; right: -4px;
  bottom: 4px;
  height: 34%;
  background: var(--lime);
  z-index: -1;
  border-radius: 4px;
}
.hero .sub {
  color: var(--muted);
  font-size: 1.2rem;
  line-height: 1.5;
  max-width: 46ch;
  margin-bottom: 2.25rem;
}

/* Hero right — floating deal preview cards */
.hero-preview-stack {
  position: relative;
  height: 460px;
}
.mini-deal {
  position: absolute;
  width: 260px;
  background: var(--white);
  border-radius: 20px;
  padding: 1rem;
  box-shadow: 0 25px 40px -20px rgba(23, 23, 31, 0.25);
  border: 1px solid var(--line);
  animation: float 6s ease-in-out infinite;
}
.mini-deal .img {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  background-size: cover;
  background-position: center;
  margin-bottom: 0.75rem;
}
.mini-deal .m-title { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 1rem; letter-spacing: -0.02em; }
.mini-deal .m-sub { font-size: 0.78rem; color: var(--muted); margin-top: 0.15rem; }
.mini-deal .m-price {
  display: flex; align-items: baseline; gap: 0.5rem; margin-top: 0.75rem;
}
.mini-deal .m-now { font-family: 'JetBrains Mono', monospace; font-weight: 700; font-size: 1.4rem; color: var(--coral); }
.mini-deal .m-old { font-size: 0.85rem; text-decoration: line-through; color: var(--muted-2); }
.mini-deal .m-chip {
  position: absolute; top: -12px; left: 18px;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  background: var(--ink);
  color: var(--cream);
}
.mini-deal.d1 { top: 0; right: 30px; transform: rotate(4deg); animation-delay: 0s; z-index: 1; }
.mini-deal.d1 .m-chip { background: var(--indigo); color: var(--white); }
.mini-deal.d2 { top: 235px; right: 40px; transform: rotate(-5deg); animation-delay: 1.2s; z-index: 3; }
.mini-deal.d2 .m-chip { background: var(--lime); color: var(--ink); }
.mini-deal.d3 { top: 190px; right: 215px; transform: rotate(-3deg); animation-delay: 2s; z-index: 2; }
.mini-deal.d3 .m-chip { background: var(--coral); color: var(--white); }
@keyframes float {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -10px; }
}

/* Hero metric row */
.hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3.5rem;
  max-width: 640px;
}
.hero-metric .label {
  font-family: 'JetBrains Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.7rem;
  color: var(--muted);
}
.hero-metric .val {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: 2.4rem;
  color: var(--ink);
  margin-top: 0.25rem;
}
.hero-metric .val.coral { color: var(--coral); }

/* ---------- Ticker (light theme) ---------- */
.ticker {
  background: var(--ink);
  color: var(--cream);
  padding: 1rem 0;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  z-index: 1;
}
.ticker__track {
  display: inline-flex;
  gap: 3rem;
  animation: scroll 45s linear infinite;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.86rem;
  color: rgba(246, 241, 231, 0.7);
}
.ticker__track span.hot { color: var(--lime); font-weight: 700; }
.ticker__track b { color: var(--white); font-weight: 700; }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Section: How it works ---------- */
.how-card {
  border-radius: 26px;
  padding: 2rem;
  border: 1px solid var(--line);
  background: var(--white);
  position: relative;
  overflow: hidden;
}
.how-card .step-num {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 5rem;
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--ink);
  opacity: 0.08;
  position: absolute;
  top: 1rem;
  right: 1.25rem;
}
.how-card .step-label {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: var(--lime);
  color: var(--ink);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.how-card.pop-coral .step-label { background: var(--coral); color: var(--white); }
.how-card.pop-indigo .step-label { background: var(--indigo); color: var(--white); }

/* ---------- Industries pill grid ---------- */
.ind-card {
  padding: 1.4rem;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--white);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.ind-card:hover {
  transform: translateY(-3px);
  border-color: transparent;
  background: var(--ink);
  color: var(--cream);
}
.ind-card:hover .ind-title { color: var(--cream); }
.ind-card:hover .ind-copy { color: rgba(246,241,231,0.7); }
.ind-card:hover .ind-icon { background: var(--lime); color: var(--ink); }
.ind-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink);
  font-size: 1.2rem;
  margin-bottom: 0.9rem;
  transition: background 0.2s ease, color 0.2s ease;
}
.ind-title { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 1.1rem; letter-spacing: -0.02em; }
.ind-copy { color: var(--muted); font-size: 0.88rem; margin-top: 0.3rem; }

/* Distinct industry accent color helpers */
.ic-salon      { background: #FFE3EE; color: #C71B5E; }
.ic-restaurant { background: #FFE9DC; color: #C74A17; }
.ic-shipping   { background: #E1E5FF; color: #3B39D6; }
.ic-hotel      { background: #EDDCFF; color: #6E22C7; }
.ic-fitness    { background: #EEFACC; color: #4A8600; }
.ic-retail     { background: #D6F7F3; color: #0B7A73; }
.ic-travel     { background: #FFE0E7; color: #B31B49; }
.ic-trades     { background: #FFF3C4; color: #8A6A00; }

/* ---------- CTA strip ---------- */
.cta-strip {
  background: var(--ink);
  color: var(--cream);
  border-radius: 32px;
  padding: 3.5rem;
  position: relative;
  overflow: hidden;
}
.cta-strip .cta-blob {
  position: absolute;
  width: 320px; height: 320px;
  border-radius: 999px;
  filter: blur(60px);
  opacity: 0.7;
}
.cta-strip .cta-blob.c1 { background: var(--coral); top: -80px; right: 20%; opacity: 0.55; }
.cta-strip .cta-blob.c2 { background: var(--lime); bottom: -100px; left: 10%; opacity: 0.35; }

/* ---------- Footer ---------- */
.nbn-footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 6vw;
  margin-top: 2rem;
  color: var(--muted);
  font-size: 0.88rem;
  position: relative;
  z-index: 1;
}

/* ---------- Feed / Search / Chips ---------- */
.search-wrap {
  background: var(--white);
  border-radius: 999px;
  border: 1px solid var(--line);
  padding: 0.35rem 0.35rem 0.35rem 1.2rem;
  display: flex; align-items: center; gap: 0.75rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.search-wrap:focus-within { border-color: var(--ink); box-shadow: 0 6px 20px -12px rgba(23,23,31,0.25); }
.search-wrap i { color: var(--muted); }
.search-wrap input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-family: inherit;
  font-size: 0.98rem;
  padding: 0.6rem 0;
  color: var(--ink);
}
.search-wrap input::placeholder { color: var(--muted-2); }

.chip {
  padding: 0.55rem 1.05rem;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 0.85rem;
  font-family: inherit;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  display: inline-flex; align-items: center; gap: 0.4rem;
}
.chip:hover { transform: translateY(-2px); border-color: var(--ink); }
.chip.active { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.chip.active i { color: var(--lime); }

/* ---------- Deal cards (feed) ---------- */
.deal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 1.75rem;
}
.deal-card {
  background: var(--white);
  border-radius: 22px;
  border: 1px solid var(--line);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.2s ease;
}
.deal-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 40px -20px rgba(23, 23, 31, 0.22);
  border-color: transparent;
}
.deal-card .accent-strip { height: 5px; width: 100%; }
.deal-card .img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #eee;
}
.deal-card .img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.deal-card:hover .img-wrap img { transform: scale(1.06); }
.deal-card .float-badges {
  position: absolute; top: 12px; left: 12px; right: 12px;
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 0.4rem;
}
.deal-card .body {
  padding: 1.15rem 1.25rem 1.35rem;
}
.deal-card .biz-line {
  font-family: 'JetBrains Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.7rem;
  color: var(--muted);
}
.deal-card .d-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.025em;
  margin: 0.4rem 0 0.85rem;
  color: var(--ink);
  line-height: 1.25;
  min-height: 3em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.deal-card .price-row {
  display: flex; align-items: end; justify-content: space-between; gap: 1rem;
}
.deal-card .price-now {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 1.7rem;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1;
}
.deal-card .price-slash {
  font-size: 0.85rem;
  text-decoration: line-through;
  color: var(--muted-2);
  display: block;
  margin-bottom: 2px;
}
.deal-card .left-pill {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--cream-2);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ink);
}

/* ---------- Pill badges ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--line);
}
.pill.savings { background: var(--coral); color: var(--white); border-color: transparent; }
.pill.time    { background: var(--ink); color: var(--lime); border-color: transparent; }
.pill.hot     { background: var(--lime); color: var(--ink); border-color: transparent; }
.pill.industry {
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(8px);
}

/* ---------- Login ---------- */
.login-panel {
  background: var(--white);
  border-radius: 24px;
  border: 1px solid var(--line);
  padding: 2.25rem;
  box-shadow: 0 24px 50px -30px rgba(23, 23, 31, 0.22);
}
label {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: 0.5rem;
  font-weight: 700;
}
.input, .select, .textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  font-family: inherit;
  font-size: 0.98rem;
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 4px rgba(23, 23, 31, 0.08);
}
.textarea { min-height: 120px; resize: vertical; }
.select { appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' stroke='%2317171F' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }

/* ---------- Dashboard ---------- */
.dashboard-band {
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream-2) 100%);
  border-radius: 32px;
  padding: 2rem 2rem 2.5rem;
  margin-bottom: 2rem;
  border: 1px solid var(--line);
}
.stat-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.4rem 1.5rem;
  position: relative;
  overflow: hidden;
}
.stat-card .stat-icon-wrap {
  position: absolute;
  top: 1rem; right: 1rem;
  width: 36px; height: 36px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}
.stat-card .stat-label {
  font-family: 'JetBrains Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--muted);
}
.stat-card .stat-value {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: 2.4rem;
  letter-spacing: -0.035em;
  margin-top: 0.5rem;
  color: var(--ink);
  line-height: 1.05;
}
.stat-card .stat-delta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.35rem;
}
.stat-card.tint-coral .stat-icon-wrap { background: rgba(255,75,43,0.14); color: var(--coral); }
.stat-card.tint-lime  .stat-icon-wrap { background: rgba(208,255,76,0.35); color: #4A8600; }
.stat-card.tint-indigo .stat-icon-wrap { background: rgba(75,60,255,0.14); color: var(--indigo); }
.stat-card.tint-amber .stat-icon-wrap { background: rgba(255,184,0,0.18); color: #8A6A00; }

/* Dashboard deal row */
.dash-deal-row {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.1rem;
  margin-bottom: 0.85rem;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  display: flex; gap: 1.1rem; align-items: center;
}
.dash-deal-row:hover { transform: translateY(-2px); border-color: var(--ink); box-shadow: 0 10px 24px -14px rgba(23,23,31,0.2); }
.dash-deal-row img {
  width: 84px; height: 84px; border-radius: 14px; object-fit: cover; flex-shrink: 0;
}
.dash-deal-row .dd-title { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 1.05rem; letter-spacing: -0.02em; margin-top: 0.15rem; }
.dash-deal-row .dd-meta { color: var(--muted); font-size: 0.85rem; margin-top: 0.15rem; }
.status-dot {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
}
.status-dot::before { content: ''; width: 7px; height: 7px; border-radius: 999px; }
.status-dot.active::before { background: var(--success); box-shadow: 0 0 0 3px rgba(16,185,129,0.2); }
.status-dot.sold::before   { background: var(--amber); }
.status-dot.exp::before    { background: var(--muted-2); }
.status-dot.active { color: var(--success); }
.status-dot.sold { color: #B87700; }
.status-dot.exp  { color: var(--muted); }

/* Activity feed */
.activity-card { padding: 1.5rem; }
.log-row {
  display: grid;
  grid-template-columns: 68px 1fr auto;
  gap: 0.75rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.85rem;
  align-items: center;
}
.log-row:last-child { border-bottom: none; }
.log-row .type-tag {
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: center;
}
.log-row .type-tag.sms    { background: #FFE3EE; color: #C71B5E; }
.log-row .type-tag.email  { background: #E1E5FF; color: #3B39D6; }
.log-row .type-tag.social { background: #EDDCFF; color: #6E22C7; }
.log-row .type-tag.claim  { background: #E4FCEA; color: #087F5B; }
.log-row .ts { font-family: 'JetBrains Mono', monospace; font-size: 0.72rem; color: var(--muted); }

/* ---------- Peer leaderboard ---------- */
.peer-band {
  background: var(--white);
  border-radius: 28px;
  border: 1px solid var(--line);
  padding: 2rem;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}
.peer-band::before {
  content: '';
  position: absolute;
  right: -60px; top: -60px;
  width: 260px; height: 260px;
  background: var(--lime);
  filter: blur(50px);
  opacity: 0.35;
  border-radius: 999px;
  pointer-events: none;
}
.peer-band-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  position: relative;
  z-index: 1;
}
@media (min-width: 900px) {
  .peer-band-grid { grid-template-columns: 320px 1fr; align-items: start; }
}
.peer-headline .avg-num {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  letter-spacing: -0.04em;
  font-size: 4.5rem;
  line-height: 1;
  color: var(--ink);
  margin-top: 0.75rem;
}
.peer-headline .avg-num .unit {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 1.5rem;
  color: var(--coral);
  margin-left: 0.3rem;
  letter-spacing: 0;
}
.peer-headline .avg-cap {
  font-size: 0.95rem;
  color: var(--muted);
  margin-top: 0.6rem;
  line-height: 1.5;
  max-width: 32ch;
}
.peer-rank-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: var(--lime);
  color: var(--ink);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.peer-rank-pill.warm { background: var(--coral); color: var(--white); }

.peer-list { display: flex; flex-direction: column; gap: 0.5rem; }
.peer-row {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  background: var(--cream);
  transition: transform 0.15s ease, background 0.15s ease;
}
.peer-row:hover { transform: translateX(2px); }
.peer-row .rank {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--ink);
  text-align: center;
  letter-spacing: -0.02em;
}
.peer-row .rank-medal {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--cream);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: 0.85rem;
  margin: 0 auto;
}
.peer-row .rank-medal.gold   { background: #FFB800; color: #1A1A1A; }
.peer-row .rank-medal.silver { background: #C7C7CE; color: #1A1A1A; }
.peer-row .rank-medal.bronze { background: #CE7B3B; color: #FFFFFF; }
.peer-row .biz-code {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  color: var(--ink);
  font-size: 0.9rem;
}
.peer-row .biz-city {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 2px;
}
.peer-row .peer-stats {
  text-align: right;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  color: var(--ink);
  font-weight: 700;
}
.peer-row .peer-stats .revenue { color: var(--muted); font-weight: 500; font-size: 0.78rem; margin-top: 2px; }
.peer-row.is-you {
  background: var(--ink);
  color: var(--cream);
  box-shadow: 0 12px 24px -14px rgba(23,23,31,0.4);
}
.peer-row.is-you .rank-medal { background: var(--coral); color: var(--white); }
.peer-row.is-you .biz-code { color: var(--white); }
.peer-row.is-you .biz-city { color: rgba(246,241,231,0.7); }
.peer-row.is-you .peer-stats { color: var(--lime); }
.peer-row.is-you .peer-stats .revenue { color: rgba(246,241,231,0.6); }

.peer-footnote {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--line);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

/* Peer eyebrow */
.peer-band .section-tag { margin-bottom: 0; }
.peer-headline h3 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: 1.65rem;
  margin-top: 1rem;
  color: var(--ink);
}
.peer-headline h3 em {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-weight: 400;
  color: var(--coral);
}
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(23, 23, 31, 0.35);
  backdrop-filter: blur(6px);
  z-index: 150;
  display: flex; align-items: center; justify-content: center;
  padding: 2rem;
  animation: fadeIn 0.2s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: var(--white);
  border-radius: 24px;
  padding: 2rem;
  max-width: 660px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 40px 80px -30px rgba(23, 23, 31, 0.4);
  animation: pop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes pop { from { transform: scale(0.94) translateY(20px); opacity: 0; } to { transform: scale(1) translateY(0); opacity: 1; } }
.modal h2 { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; letter-spacing: -0.03em; }

/* ---------- Toast ---------- */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 200;
  display: flex; flex-direction: column; gap: 12px;
  max-width: 400px;
}
.toast {
  background: var(--white);
  border-radius: 16px;
  padding: 1rem 1.2rem;
  border: 1px solid var(--line);
  box-shadow: 0 20px 40px -20px rgba(23,23,31,0.35);
  animation: slide-in 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex; gap: 0.75rem; align-items: flex-start;
  border-left: 5px solid var(--success);
}
.toast.info  { border-left-color: var(--indigo); }
.toast.error { border-left-color: var(--coral); }
.toast .toast-icon {
  width: 32px; height: 32px; flex-shrink: 0;
  border-radius: 10px;
  background: #E4FCEA; color: var(--success);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}
.toast.info .toast-icon  { background: #E1E5FF; color: var(--indigo); }
.toast.error .toast-icon { background: #FFE3DC; color: var(--coral); }
.toast .title { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 0.95rem; color: var(--ink); }
.toast .body  { color: var(--muted); font-size: 0.82rem; margin-top: 2px; line-height: 1.4; }
@keyframes slide-in {
  from { transform: translateX(120%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ---------- Countdown ---------- */
.countdown .colon { animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0.2; } }

/* ---------- Views ---------- */
.view { display: none; position: relative; z-index: 1; }
.view.active { display: block; }

/* Hide React root */
#root { display: none !important; }
.hidden { display: none !important; }

/* Empty state */
.empty-state {
  padding: 3.5rem 2rem;
  border-radius: 22px;
  border: 1.5px dashed var(--line-2);
  background: var(--white);
  color: var(--muted);
  text-align: left;
}
.empty-state .es-title { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 1.35rem; color: var(--ink); letter-spacing: -0.02em; margin-bottom: 0.4rem; }

/* Deal detail */
.deal-hero-img {
  border-radius: 24px;
  overflow: hidden;
  min-height: 380px;
  background-size: cover;
  background-position: center;
  border: 1px solid var(--line);
}
.claim-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 1.75rem;
  margin-bottom: 1.5rem;
}

/* Section spacer utility */
.container-x { max-width: 1400px; margin: 0 auto; padding-left: 6vw; padding-right: 6vw; }

/* Responsive */
@media (max-width: 900px) {
  .hero { padding: 4rem 5vw 3rem; }
  .hero-preview-stack { display: none; }
  .hero-metrics { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
}
