/* ============================================================
   TastyHouse — Unified Platform Prototype
   Design system: warm, food-forward marketplace
   ============================================================ */

:root {
  /* ---- Brand palette (TastyHouse orange + teal) ---- */
  --primary: #F26A1B;        /* TastyHouse orange */
  --primary-700: #B94B0B;
  --primary-600: #DC5D12;
  --primary-soft: #FDEBDC;
  --primary-ink: #FFFFFF;

  /* secondary brand accent (teal) */
  --secondary: #0D705C;
  --secondary-700: #0A5849;
  --secondary-soft: #E3F1ED;

  --accent: #F2A33A;         /* premium gold (Prime cue) */
  --accent-700: #C77E16;
  --accent-soft: #FDF1DA;

  --whatsapp: #25D366;
  --whatsapp-700: #0F8C57;
  --whatsapp-soft: #E4F8EC;

  --success: #1F9D55;
  --success-soft: #E5F5EC;
  --warning: #E08A1E;
  --warning-soft: #FBEFD8;
  --danger: #D7263D;
  --danger-soft: #FBE6E9;
  --info: #2D6FE0;
  --info-soft: #E6EEFB;

  /* ---- Neutrals (dark ink family on a warm canvas) ---- */
  --bg: #FBF7F2;
  --bg-2: #F1EBE3;
  --surface: #FFFFFF;
  --surface-2: #F8F4EE;
  --ink: #1E1E1E;
  --ink-2: #4A4A4A;
  --ink-3: #7A7A7A;
  --ink-4: #ABABAB;
  --line: #ECE6DE;
  --line-2: #DCD4C9;

  /* ---- Radii ---- */
  --r-xs: 6px;
  --r-sm: 9px;
  --r: 13px;
  --r-lg: 18px;
  --r-xl: 26px;
  --r-pill: 999px;

  /* ---- Shadows (warm) ---- */
  --shadow-xs: 0 1px 2px rgba(75,45,20,.07);
  --shadow-sm: 0 2px 6px -2px rgba(75,45,20,.12), 0 1px 2px rgba(75,45,20,.06);
  --shadow: 0 10px 26px -12px rgba(80,48,18,.22), 0 2px 6px -3px rgba(80,48,18,.10);
  --shadow-lg: 0 28px 64px -22px rgba(80,48,18,.34);

  /* ---- Type ---- */
  --font-display: 'Bricolage Grotesque', 'Hanken Grotesk', system-ui, sans-serif;
  --font-body: 'Hanken Grotesk', system-ui, -apple-system, sans-serif;

  /* ---- Layout ---- */
  --maxw: 1980px;
  --nav-h: 70px;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: #d6cfc4;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.05;
  text-wrap: balance;
}

p { margin: 0; }
button { font-family: inherit; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--primary-soft); color: var(--primary-700); }

/* ============================================================
   Browser chrome shell (responsive "device frame")
   ============================================================ */
#root { width: 100%; height: 100vh; }

.chrome {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  border-radius: 0;
  overflow: hidden;
  background: #2a2c30;
}
.chrome-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 46px;
  padding: 0 14px;
  background: #2a2c30;
  flex-shrink: 0;
}
.chrome-lights { display: flex; gap: 8px; }
.chrome-light { width: 12px; height: 12px; border-radius: 50%; }
.chrome-url {
  flex: 1;
  height: 30px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 14px;
  border-radius: var(--r-pill);
  background: #1d1f22;
  color: #c9cdd3;
  font-size: 13px;
  font-family: var(--font-body);
  max-width: 560px;
  margin: 0 auto;
}
.chrome-url svg { opacity: .6; flex-shrink: 0; }
.chrome-url b { color: #fff; font-weight: 600; }
.chrome-actions { display: flex; gap: 14px; color: #9aa0a6; }
.chrome-viewport {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  background: var(--bg);
  position: relative;
  scroll-behavior: smooth;
  display: flex;
  flex-direction: column;
}
/* the active view fills the space between the global header and footer */
.appmain { flex: 1 0 auto; display: flex; flex-direction: column; }
.appmain > * { flex: 1 0 auto; }
.chrome-viewport > footer { flex-shrink: 0; }

/* demo role switcher pinned bottom-left */
.demobar {
  position: fixed;
  left: 26px;
  bottom: 26px;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px;
  background: rgba(28,22,18,.92);
  backdrop-filter: blur(10px);
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-lg);
}
.demobar .lbl { color: #b9aea2; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: 0 10px 0 12px; }
.demobar button {
  border: 0;
  background: transparent;
  color: #d8cdc2;
  font-size: 12.5px;
  font-weight: 600;
  padding: 7px 13px;
  border-radius: var(--r-pill);
  cursor: pointer;
  display: flex; align-items: center; gap: 6px;
  transition: all .15s;
}
.demobar button:hover { color: #fff; background: rgba(255,255,255,.08); }
.demobar button.on { background: var(--primary); color: #fff; }

/* ============================================================
   Mobile bottom tab bar (phones) — hidden on desktop
   ============================================================ */
.mtabbar { display: none; }
@media (max-width: 720px) {
  .mtabbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 120;
    display: flex; align-items: stretch; justify-content: space-around;
    background: rgba(255,255,255,.94);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border-top: 1px solid var(--line);
    padding: 7px 4px calc(7px + env(safe-area-inset-bottom));
    box-shadow: 0 -10px 28px -18px rgba(80,48,18,.5);
  }
  .mtab {
    flex: 1; border: 0; background: transparent; cursor: pointer;
    display: flex; flex-direction: column; align-items: center; gap: 3px;
    padding: 4px 2px; color: var(--ink-3);
    font-family: var(--font-body); font-size: 10.5px; font-weight: 600; letter-spacing: .005em;
    border-radius: 12px; transition: color .15s;
  }
  .mtab:active { transform: scale(.94); }
  .mtab .mtab-ic { position: relative; display: grid; place-items: center; height: 24px; }
  .mtab .mtab-lbl { line-height: 1; }
  .mtab.on { color: var(--primary); }
  .mtab-badge {
    position: absolute; top: -5px; right: -10px;
    min-width: 16px; height: 16px; padding: 0 4px;
    border-radius: 8px; background: var(--primary); color: #fff;
    font-size: 9.5px; font-weight: 800; line-height: 1;
    display: grid; place-items: center; border: 2px solid #fff;
  }
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14.5px;
  line-height: 1;
  padding: 12px 20px;
  border-radius: var(--r-pill);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .12s, box-shadow .15s, background .15s, border-color .15s;
  white-space: nowrap;
  user-select: none;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn svg { flex-shrink: 0; }
.btn.primary { background: var(--primary); color: #fff; box-shadow: 0 6px 16px -8px rgba(242,106,27,.7); }
.btn.primary:hover { background: var(--primary-600); box-shadow: 0 10px 22px -8px rgba(242,106,27,.85); }
.btn.ghost { background: var(--surface); color: var(--ink); border-color: var(--line-2); }
.btn.ghost:hover { border-color: var(--ink-3); background: var(--surface-2); }
.btn.soft { background: var(--primary-soft); color: var(--primary-700); }
.btn.soft:hover { background: #fbddc6; }
.btn.secondary { background: var(--secondary); color: #fff; box-shadow: 0 6px 16px -8px rgba(13,112,92,.65); }
.btn.secondary:hover { background: var(--secondary-700); }
.btn.soft-teal { background: var(--secondary-soft); color: var(--secondary-700); }
.btn.soft-teal:hover { background: #d3e9e2; }
.btn.danger { background: var(--danger-soft); color: var(--danger); border-color: transparent; }
.btn.danger:hover { background: var(--danger); color: #fff; }
.btn.dark { background: var(--ink); color: #fff; }
.btn.dark:hover { background: #3a2e25; }
.btn.wa { background: var(--whatsapp); color: #06321f; font-weight: 700; box-shadow: 0 6px 16px -8px rgba(37,211,102,.7); }
.btn.wa:hover { background: #20bd5b; }
.btn.accent { background: var(--accent); color: #3d2a05; }
.btn.accent:hover { background: var(--accent-700); color: #fff; }
.btn.lg { padding: 15px 26px; font-size: 16px; }
.btn.sm { padding: 8px 14px; font-size: 13px; }
.btn.block { width: 100%; }
.btn.icon { padding: 11px; border-radius: 50%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.link { background: transparent; border: 0; color: var(--primary-700); padding: 4px 2px; }
.btn.link:hover { text-decoration: underline; }

/* ============================================================
   Badges & chips
   ============================================================ */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 700; letter-spacing: .02em;
  padding: 4px 9px; border-radius: var(--r-pill);
  text-transform: uppercase;
}
.badge.prime { background: linear-gradient(120deg,#FBD24B,#F2A33A); color: #5b3c02; }
.badge.hot { background: var(--primary); color: #fff; }
.badge.new { background: var(--info-soft); color: var(--info); }
.badge.top { background: var(--accent-soft); color: var(--accent-700); }
.badge.verified { background: var(--secondary-soft); color: var(--secondary-700); }
.badge.secondary { background: var(--secondary-soft); color: var(--secondary-700); }
.badge.draft { background: var(--bg-2); color: var(--ink-2); }
.badge.published { background: var(--success-soft); color: var(--success); }
.badge.pending { background: var(--warning-soft); color: var(--warning); }
.badge.sold { background: #ece8e4; color: var(--ink-3); }
.badge.soft { background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line); text-transform: none; font-weight: 600; }

.chip {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13.5px; font-weight: 600;
  padding: 9px 15px; border-radius: var(--r-pill);
  background: var(--surface); border: 1.5px solid var(--line-2);
  color: var(--ink-2); cursor: pointer; white-space: nowrap;
  transition: all .14s;
}
.chip:hover { border-color: var(--ink-3); color: var(--ink); }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip .ico { display: inline-flex; }

/* variant / option chips (variable products) */
.vchip { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; padding: 8px 13px; border-radius: var(--r-sm); background: var(--surface); border: 1.5px solid var(--line-2); color: var(--ink-2); cursor: pointer; transition: all .14s; }
.vchip:hover { border-color: var(--ink-3); color: var(--ink); }
.vchip.on { border-color: var(--primary); background: var(--primary-soft); color: var(--primary-700); }
.vchip .vdelta { font-size: 11.5px; font-weight: 700; color: var(--accent-700); }
.vchip.on .vdelta { color: var(--primary-700); }

/* ============================================================
   Cards / surfaces
   ============================================================ */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}

/* ---- Placeholder media (gradient blocks with label) ---- */
.ph {
  position: relative;
  background:
    linear-gradient(135deg, hsl(var(--h,18) 72% 62%), hsl(calc(var(--h,18) + 22) 74% 47%));
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; color: #fff;
}
.ph::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(120px 120px at 80% 12%, rgba(255,255,255,.28), transparent 60%),
    radial-gradient(90px 90px at 12% 90%, rgba(0,0,0,.16), transparent 60%);
}
.ph .ph-ico { position: relative; opacity: .9; }
.ph .ph-img { position: absolute; inset: 0; width: 100% !important; height: 100% !important; max-width: none !important; object-fit: cover; display: block; }
.ph.has-img::after { display: none; }
.ph .ph-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,18,22,.05) 0%, rgba(15,18,22,.18) 55%, rgba(15,18,22,.62) 100%); }
.ph .ph-lbl {
  position: absolute; bottom: 9px; left: 10px; z-index: 1;
  font-size: 11px; font-weight: 700; letter-spacing: .03em;
  background: rgba(0,0,0,.34); color: #fff; padding: 3px 8px; border-radius: var(--r-pill);
  backdrop-filter: blur(2px);
}

/* ============================================================
   Forms
   ============================================================ */
.field { display: flex; flex-direction: column; gap: 7px; }
.field > label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field .req { color: var(--primary); }
.input, .select, .textarea {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  background: var(--surface);
  border: 1.5px solid var(--line-2);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  width: 100%;
  transition: border-color .14s, box-shadow .14s;
}
.input::placeholder, .textarea::placeholder { color: var(--ink-4); }
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-soft);
}
.textarea { resize: vertical; min-height: 96px; line-height: 1.5; }
.input.err, .textarea.err { border-color: var(--danger); box-shadow: 0 0 0 4px var(--danger-soft); }
.field .hint { font-size: 12.5px; color: var(--ink-3); }
.field .errmsg { font-size: 12.5px; color: var(--danger); font-weight: 600; display: flex; align-items: center; gap: 5px; }
.inputwrap { position: relative; display: flex; align-items: center; }
.inputwrap .prefix { position: absolute; left: 13px; color: var(--ink-3); font-weight: 600; pointer-events: none; }
.inputwrap .prefix + .input { padding-left: 34px; }

/* segmented / toggle group */
.seg { display: inline-flex; background: var(--bg-2); border-radius: var(--r-pill); padding: 4px; gap: 3px; }
.seg button { border: 0; background: transparent; padding: 9px 18px; border-radius: var(--r-pill); font-weight: 600; font-size: 14px; color: var(--ink-2); cursor: pointer; transition: all .15s; }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }

/* choice card */
.choice {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 18px; border: 1.5px solid var(--line-2); border-radius: var(--r);
  background: var(--surface); cursor: pointer; transition: all .15s;
}
.choice:hover { border-color: var(--ink-3); }
.choice.on { border-color: var(--primary); background: var(--primary-soft); box-shadow: 0 0 0 3px var(--primary-soft); }
.choice .radio { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-2); flex-shrink: 0; margin-top: 2px; display: grid; place-items: center; }
.choice.on .radio { border-color: var(--primary); }
.choice.on .radio::after { content: ""; width: 11px; height: 11px; border-radius: 50%; background: var(--primary); }

/* ============================================================
   Stars
   ============================================================ */
.stars { display: inline-flex; align-items: center; gap: 2px; color: var(--accent); }
.stars .rt { color: var(--ink-2); font-weight: 700; font-size: 13.5px; margin-left: 4px; }
.stars .ct { color: var(--ink-3); font-weight: 500; font-size: 12.5px; }

/* ============================================================
   Utility
   ============================================================ */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; width: 100%; }
.row { display: flex; align-items: center; }
.col { display: flex; flex-direction: column; }
.gap4{gap:4px}.gap6{gap:6px}.gap8{gap:8px}.gap10{gap:10px}.gap12{gap:12px}.gap16{gap:16px}.gap20{gap:20px}.gap24{gap:24px}
.wrap { flex-wrap: wrap; }
.between { justify-content: space-between; }
.center { justify-content: center; }
.acenter { align-items: center; }
.aend { align-items: flex-end; }
.grow { flex: 1; }
.show-sm { display: none !important; }
.muted { color: var(--ink-3); }
.muted2 { color: var(--ink-2); }
.eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--primary); }
.eyebrow.teal { color: var(--secondary); }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }
.price { font-family: var(--font-display); font-weight: 700; }
.cfp { font-family: var(--font-display); font-weight: 700; color: var(--accent-700); }
.scrollx { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: thin; }
/* rail cards: show exactly 7 per row, no partial card peeking */
.scrollx > .rail-card { flex: 0 0 calc((100% - 6 * 16px) / 7); min-width: 200px; }
@media (max-width: 1500px) { .scrollx > .rail-card { flex-basis: calc((100% - 5 * 16px) / 6); } }
@media (max-width: 1200px) { .scrollx > .rail-card { flex-basis: calc((100% - 4 * 16px) / 5); } }
@media (max-width: 980px)  { .scrollx > .rail-card { flex-basis: 240px; } }
.scrollx::-webkit-scrollbar { height: 8px; }
.scrollx::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 4px; }

/* ============================================================
   Vendor storefront (cover + logo + hours + chips + rail)
   ============================================================ */
.vsf-card { padding: 0; overflow: hidden; margin-bottom: 20px; }
/* Fixed 16:9 cover — same ratio at every screen size (no fixed pixel height, so
   the framing never drifts with viewport width). Shared by vendor / influencer /
   rider public covers and the vendor editor preview. */
.vsf-cover { aspect-ratio: 16 / 9; position: relative; }
.vsf-cover .ph, .vsf-cover .ph-img { border-radius: 0; }
.vsf-headbar { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 16px 24px; padding: 0 clamp(18px, 3vw, 28px) clamp(20px, 3vw, 28px); }
.vsf-logo { width: 104px; height: 104px; border-radius: 50%; overflow: hidden; margin-top: -52px; border: 4px solid var(--surface); background: var(--surface); box-shadow: var(--shadow-sm); position: relative; z-index: 2; flex-shrink: 0; }
.vsf-id { flex: 1 1 300px; padding-top: 16px; min-width: 0; }
.vsf-contact { flex: 0 0 248px; padding-top: 16px; }

.vsf-hours { padding: 16px clamp(14px, 2.4vw, 22px); margin-bottom: 20px; }
.vsf-hours-top { display: flex; gap: 12px; margin-bottom: 14px; }
.vsf-hours-pill { flex: 1 1 0; min-width: 0; display: flex; align-items: center; gap: 11px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; padding: 11px 14px; cursor: pointer; font-family: inherit; text-align: left; color: var(--ink); }
.vsf-hours-pill:hover { border-color: var(--line-2); }
.vsf-hours-pill-txt { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.vsf-week { display: grid; grid-template-columns: repeat(7, 1fr); border-top: 1px solid var(--line); }
.vsf-day { padding: 12px 6px 10px; text-align: center; border-right: 1px solid var(--line); }
.vsf-day:last-child { border-right: 0; }
.vsf-day.today { background: var(--primary-soft); }
.vsf-day-d { font-size: 13px; font-weight: 700; margin-bottom: 4px; color: var(--ink); }
.vsf-day-t { font-size: 11.5px; color: var(--ink-2); line-height: 1.32; }

.vsf-chip { background: var(--surface); }
.vsf-chip.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.vsf-chip.on:hover { color: #fff; }

.vsf-rail > .lcard { flex: 0 0 clamp(230px, 70%, 280px); min-width: 0; }

@media (max-width: 760px) {
  /* .vsf-cover keeps its 16:9 aspect-ratio on phones — no fixed height override. */
  /* Phones: two-column header like the design — avatar + identity on the left,
     the action buttons stacked on the RIGHT beside the title (not below it). */
  .vsf-headbar { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 6px 12px; align-items: start; }
  .vsf-logo { width: 84px; height: 84px; border-radius: 50%; margin-top: -46px; grid-column: 1; grid-row: 1; }
  .vsf-id { display: contents; } /* let idmain + about place directly on the grid */
  .vsf-idmain { grid-column: 1; grid-row: 2; min-width: 0; padding-top: 2px; }
  .vsf-contact { grid-column: 2; grid-row: 1 / span 2; padding-top: 12px; }
  .vsf-contact .btn { font-size: 12.5px; padding: 10px 10px; }
  /* Description + social links get their own full-width row below both columns. */
  .vsf-about { grid-column: 1 / -1; grid-row: 3; min-width: 0; padding-top: 8px; }
  .vsf-about p { max-width: none; }
}
@media (max-width: 560px) {
  .vsf-day { padding: 10px 3px 9px; }
  .vsf-day-d { font-size: 11.5px; }
  .vsf-day-t { font-size: 10px; }
}

/* fade/slide in for route changes */
@keyframes fadeUp { from { transform: translateY(10px); } to { transform: none; } }
.routefade { animation: fadeUp .32s ease; }
@keyframes pop { from { transform: scale(.97); } to { transform: none; } }
.pop { animation: pop .2s ease; }

/* progress meter */
.meter { height: 8px; border-radius: var(--r-pill); background: var(--bg-2); overflow: hidden; }
.meter > i { display: block; height: 100%; background: linear-gradient(90deg,var(--accent),var(--primary)); border-radius: inherit; transition: width .5s cubic-bezier(.4,0,.2,1); }

/* toast */
.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%);
  background: var(--ink); color: #fff; padding: 13px 20px; border-radius: var(--r-pill);
  box-shadow: var(--shadow-lg); z-index: 500; font-weight: 600; font-size: 14px;
  display: flex; align-items: center; gap: 10px; animation: pop .25s ease both;
}
.toast .dot { width: 22px; height: 22px; border-radius: 50%; background: var(--whatsapp); display: grid; place-items: center; }

/* tooltip / coach bubble */
.coach {
  background: var(--ink); color: #fff; font-size: 13px; line-height: 1.5;
  padding: 12px 14px; border-radius: var(--r); max-width: 260px; box-shadow: var(--shadow-lg);
  position: relative;
}
.coach b { color: var(--accent); }

/* ============================================================
   Marketplace nav
   ============================================================ */
.thnav { position: sticky; top: 0; z-index: 100; background: rgba(251,246,239,.86); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.thnav-inner { height: var(--nav-h); display: flex; align-items: center; gap: 18px; }
.thnav-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.th-searchtoggle { display: none; background: var(--surface); border: 1px solid var(--line-2); border-radius: 50%; padding: 9px; cursor: pointer; color: var(--ink-2); }
.th-searchtoggle:hover { color: var(--primary-700); border-color: var(--primary); }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; font-size: 21px; letter-spacing: -.03em; cursor: pointer; }
.logo .mark { width: 34px; height: 34px; border-radius: 10px; background: var(--primary); display: grid; place-items: center; color: #fff; box-shadow: 0 4px 12px -4px rgba(242,106,27,.7); }
.logo b { color: var(--primary); }
.th-logo-word { font-size: 22px; }
.searchbar { flex: 1; max-width: 520px; display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1.5px solid var(--line-2); border-radius: var(--r-pill); padding: 10px 16px; cursor: text; transition: border-color .15s; }
.searchbar:focus-within { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.searchbar input { border: 0; outline: 0; flex: 1; min-width: 0; font-size: 14.5px; font-family: var(--font-body); background: transparent; color: var(--ink); }
.searchbar-go { flex-shrink: 0; background: var(--primary); color: #fff; border: 0; border-radius: var(--r-pill); padding: 7px 16px; margin: -3px -8px -3px 0; font-family: var(--font-body); font-weight: 700; font-size: 13.5px; cursor: pointer; transition: background .15s; }
.searchbar-go:hover { background: var(--primary-700); }
.vtabs { display: flex; gap: 4px; }
.vtab { padding: 9px 16px; border-radius: var(--r-pill); font-weight: 600; font-size: 14.5px; color: var(--ink-2); cursor: pointer; transition: all .15s; display: flex; align-items: center; gap: 8px; white-space: nowrap; flex-shrink: 0; }
.vtab .vlabel { white-space: nowrap; }
.vtab:hover { background: var(--bg-2); color: var(--ink); }
.vtab.on { background: var(--primary-soft); color: var(--primary-700); }

/* listing card */
.lcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; cursor: pointer; transition: transform .18s, box-shadow .18s; display: flex; flex-direction: column; }
.lcard:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.lcard .media { aspect-ratio: 4/3; position: relative; }
.lcard .body { padding: 14px 15px 16px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.lcard .ttl { font-weight: 700; font-size: 15.5px; line-height: 1.25; font-family: var(--font-display); letter-spacing: -.01em; }
.lcard .meta { font-size: 12.5px; color: var(--ink-3); display: flex; align-items: center; gap: 5px; }
.lcard .fav { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.92); display: grid; place-items: center; border: 0; cursor: pointer; box-shadow: var(--shadow-sm); transition: transform .12s; }
.lcard .fav:hover { transform: scale(1.1); }
.lcard .badgerow { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; flex-wrap: wrap; max-width: 78%; }

/* section header */
.shead { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.shead-main { display: flex; align-items: stretch; gap: 13px; min-width: 0; }
.shead-tick { flex: 0 0 4px; width: 4px; border-radius: 999px; background: var(--rail-accent, var(--primary)); }
.shead h2 { font-size: clamp(22px, 2.4vw, 30px); letter-spacing: -0.02em; }
.shead .sub { color: var(--ink-3); font-size: 14px; margin-top: 4px; }
.shead-eyebrow { display: inline-flex; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--rail-accent, var(--primary)); margin-bottom: 7px; }
.shead-eyebrow-ic { display: grid; place-items: center; width: 19px; height: 19px; border-radius: 6px; background: color-mix(in srgb, var(--rail-accent, var(--primary)) 15%, transparent); }

/* countdown pills */
.cd { display: inline-flex; gap: 5px; }
.cd span { background: var(--ink); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 13px; padding: 4px 7px; border-radius: 7px; min-width: 30px; text-align: center; }

/* grid */
.lgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; }
.lgrid.tight { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }

/* dashboard layout */
.dash { display: grid; grid-template-columns: 248px 1fr; min-height: calc(100vh - var(--nav-h)); width: 100%; }
.dside { background: var(--ink); color: #d9cec3; padding: 22px 16px; display: flex; flex-direction: column; gap: 4px; position: sticky; top: var(--nav-h); align-self: flex-start; max-height: calc(100vh - var(--nav-h)); overflow-y: auto; }
.dside .ditem { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r); font-weight: 600; font-size: 14.5px; cursor: pointer; color: #c9bdb1; transition: all .15s; }
.dside .ditem:hover { background: rgba(255,255,255,.07); color: #fff; }
.dside .ditem.on { background: var(--primary); color: #fff; }
.dside .ditem .badge { margin-left: auto; }
.dmain { padding: 30px 34px; overflow-x: hidden; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.stat .v { font-family: var(--font-display); font-weight: 700; font-size: 30px; letter-spacing: -.02em; }
.stat .k { font-size: 13px; color: var(--ink-3); font-weight: 600; }
.stat .delta { font-size: 12px; font-weight: 700; }
.stat .delta.up { color: var(--success); }

/* table */
.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); font-weight: 700; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.tbl td { padding: 14px; border-bottom: 1px solid var(--line); font-size: 14px; vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tr.clickable { cursor: pointer; }
.tbl tr.clickable:hover td { background: var(--surface-2); }

/* chat */
.chatwrap { display: grid; grid-template-columns: 300px 1fr; height: 100%; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
.chatlist { border-right: 1px solid var(--line); overflow-y: auto; }
.chatconv { display: flex; flex-direction: column; }
.chatitem { display: flex; gap: 12px; padding: 14px 16px; cursor: pointer; border-bottom: 1px solid var(--line); transition: background .12s; }
.chatitem:hover { background: var(--surface-2); }
.chatitem.on { background: var(--primary-soft); }
.bubble { max-width: 72%; padding: 10px 14px; border-radius: 16px; font-size: 14px; line-height: 1.45; }
.bubble.them { background: var(--bg-2); border-bottom-left-radius: 4px; align-self: flex-start; }
.bubble.me { background: var(--primary); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }

/* stepper (onboarding) */
.stepper { display: flex; flex-direction: column; gap: 2px; }
.step { display: flex; gap: 14px; padding: 12px 0; }
.step .dot { width: 30px; height: 30px; border-radius: 50%; background: var(--surface); border: 2px solid var(--line-2); display: grid; place-items: center; font-weight: 700; font-size: 13px; color: var(--ink-3); flex-shrink: 0; transition: all .2s; z-index: 1; }
.step.done .dot { background: var(--success); border-color: var(--success); color: #fff; }
.step.active .dot { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 0 0 5px var(--primary-soft); }
.step .stxt { display: flex; flex-direction: column; min-width: 0; }
.step .stxt .t { font-weight: 700; font-size: 14.5px; color: var(--ink); }
.step .stxt .d { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }
.step.todo .stxt .t { color: var(--ink-3); }
.steprail { position: relative; }
.steprail::before { content: ""; position: absolute; left: 14px; top: 22px; bottom: 22px; width: 2px; background: var(--line); }

/* hero */
.hero { position: relative; overflow: hidden; }
.hero-glow { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .5; }

/* Hero slider — 5-slide auto-advance carousel */
.hslider {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #1a1a1a;
}
.hslider-track {
  display: flex;
  width: 100%;
  transition: transform .7s cubic-bezier(.22,.61,.36,1);
  will-change: transform;
}
.hslide {
  position: relative;
  flex: 0 0 100%;
  background: linear-gradient(135deg, #2a1d14, #4a2f1c);
  min-height: clamp(360px, 46vw, 520px);
}
.hslide-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(1.05);
}
.hslide-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(95deg, rgba(10,12,14,.78) 0%, rgba(10,12,14,.55) 42%, rgba(10,12,14,.22) 72%, rgba(10,12,14,.08) 100%),
    linear-gradient(180deg, rgba(10,12,14,0) 35%, rgba(10,12,14,.35) 100%);
}
.hslide-scrim.warm {
  background: linear-gradient(95deg, rgba(80,28,6,.82) 0%, rgba(80,28,6,.5) 50%, rgba(80,28,6,.15) 90%);
}
.hslide-scrim.gold {
  background: linear-gradient(95deg, rgba(58,40,8,.85) 0%, rgba(58,40,8,.55) 50%, rgba(58,40,8,.2) 100%);
}
.hslide-scrim.dark {
  background: linear-gradient(95deg, rgba(2,6,10,.92) 0%, rgba(2,6,10,.72) 45%, rgba(2,6,10,.45) 75%, rgba(2,6,10,.3) 100%);
}
.hslide-pairmate { background: #000; overflow: hidden; display: block; cursor: pointer; }
.hslide-pairmate .hslide-img,
.hslide-pairmate .hslide-scrim { display: none; }
.pmslide-fullimg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: right center;
  display: block;
  background: #000;
}
.pmslide-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(95deg, #000 0%, rgba(0,0,0,.85) 32%, rgba(0,0,0,.45) 58%, rgba(0,0,0,.08) 100%);
}
.pmslide-text {
  position: relative; z-index: 2;
  padding: clamp(28px, 5vw, 60px);
  max-width: 560px;
  min-height: inherit;
  display: flex; flex-direction: column; justify-content: center;
  color: #fff;
}
@media (max-width: 640px) {
  .pmslide-fullimg { object-position: 72% center; }
  .pmslide-overlay { background: linear-gradient(180deg, rgba(0,0,0,.3) 0%, rgba(0,0,0,.55) 50%, #000 100%); }
}
.pmslide-wrap {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  gap: clamp(20px, 4vw, 56px);
  align-items: center;
  padding: clamp(28px, 5vw, 60px);
  min-height: inherit;
}
.pmslide-left { color: #fff; max-width: 520px; }
.pmslide-h1 {
  font-family: 'Bricolage Grotesque', serif;
  font-weight: 700;
  font-size: clamp(28px, 4.4vw, 50px);
  line-height: 1.05; letter-spacing: -0.02em;
  margin: 16px 0 14px; color: #fff;
}
.pmslide-sub {
  font-size: 15.5px; line-height: 1.55;
  color: rgba(255,255,255,.78);
  max-width: 420px;
}
.pmslide-powered {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px; padding: 8px 14px;
  font-size: 12.5px; font-weight: 600; color: rgba(255,255,255,.7);
}
.pmslide-powered-dot {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--primary); color: #fff;
  display: grid; place-items: center;
}

/* Stacked portrait cards */
.pmslide-photos {
  position: relative;
  height: clamp(220px, 30vw, 340px);
}
.pmslide-card {
  position: absolute; top: 50%;
  width: clamp(140px, 17vw, 200px);
  aspect-ratio: 3/4;
  border-radius: 22px; overflow: hidden;
  box-shadow: 0 24px 40px -16px rgba(0,0,0,.6);
  background: #1a1a1a;
}
.pmslide-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pmslide-card-0 { left: 18%; transform: translateY(-50%) rotate(-10deg); z-index: 1; }
.pmslide-card-1 { left: 30%; transform: translateY(-52%) rotate(0deg);   z-index: 3; }
.pmslide-card-2 { left: 42%; transform: translateY(-48%) rotate(10deg);  z-index: 2; }

/* Giant Pairmate wordmark across the bottom */
.pmslide-wordmark {
  position: absolute;
  left: 0; right: 0; bottom: -0.18em;
  text-align: center;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: clamp(110px, 22vw, 280px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: #3DE0DC;
  pointer-events: none;
  user-select: none;
  z-index: 1;
}

@media (max-width: 760px) {
  .pmslide-wrap { grid-template-columns: 1fr; }
  .pmslide-photos { display: none; }
  .pmslide-wordmark { font-size: 26vw; bottom: -0.12em; }
}
.hslide-content {
  position: relative;
  padding: clamp(28px, 5vw, 60px);
  max-width: 640px;
  color: #fff;
  min-height: inherit;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hslider-arrow {
  position: absolute; top: 50%;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,.16);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.25);
  color: #fff;
  display: grid; place-items: center;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background .15s, transform .15s;
  z-index: 2;
}
.hslider-arrow:hover { background: rgba(255,255,255,.28); }
.hslider-arrow.left { left: 18px; }
.hslider-arrow.right { right: 18px; }
.hslider-dots {
  position: absolute;
  left: 50%; bottom: 18px;
  transform: translateX(-50%);
  display: flex; gap: 8px;
  z-index: 2;
}
.hslider-dot {
  width: 28px; height: 5px;
  border-radius: 999px;
  background: rgba(255,255,255,.35);
  border: 0; cursor: pointer;
  transition: background .2s, width .2s;
}
.hslider-dot:hover { background: rgba(255,255,255,.55); }
.hslider-dot.on { background: #fff; width: 40px; }
@media (max-width: 560px) {
  .hslider-arrow { display: none; }
  .hslide-content { padding: 24px; }
}

/* Hero banner — real image with a clean scrim */
.hero-banner {
  position: relative; overflow: hidden;
  border-radius: var(--r-xl);
  min-height: clamp(360px, 46vw, 520px);
  background: #1a1a1a;
  box-shadow: var(--shadow);
}
.hero-banner-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  filter: saturate(1.05);
}
.hero-banner-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(95deg, rgba(10,12,14,.78) 0%, rgba(10,12,14,.55) 42%, rgba(10,12,14,.22) 72%, rgba(10,12,14,.08) 100%),
    linear-gradient(180deg, rgba(10,12,14,.0) 35%, rgba(10,12,14,.35) 100%);
}
.hero-banner-content {
  position: relative;
  padding: clamp(28px, 5vw, 60px);
  max-width: 640px;
  color: #fff;
  min-height: inherit;
}

/* Pairmate sponsored ad slot (stationary) */
.pmate-ad {
  position: relative; display: block;
  border-radius: var(--r-xl); overflow: hidden;
  min-height: clamp(220px, 26vw, 300px);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  background: #1a1a1a;
  transition: transform .2s ease, box-shadow .2s ease;
}
.pmate-ad:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.pmate-ad-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(1.05); }
.pmate-ad-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(95deg, rgba(60,12,55,.78) 0%, rgba(60,12,55,.5) 45%, rgba(60,12,55,.18) 85%, rgba(60,12,55,.06) 100%);
}
.pmate-ad-content {
  position: relative;
  padding: clamp(24px, 4vw, 40px);
  min-height: inherit;
  display: flex; flex-direction: column; justify-content: center;
  max-width: 640px;
}

/* Most viewed categories grid */
.mvc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}
.mvc-tile {
  position: relative; cursor: pointer;
  border-radius: var(--r-lg); overflow: hidden;
  background: #1a1a1a;
  border: 1px solid var(--line);
  min-height: 140px;
  transition: transform .18s ease, box-shadow .18s ease;
}
.mvc-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.mvc-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(1.04); }
.mvc-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,12,14,.0) 30%, rgba(10,12,14,.78) 100%);
}
.mvc-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 14px 14px; color: #fff; }
.mvc-name { font-family: var(--font-display); font-weight: 700; font-size: 16px; letter-spacing: -.01em; line-height: 1.2; }
.mvc-meta { margin-top: 3px; font-size: 12px; color: rgba(255,255,255,.82); }

/* PlugView — YouTube embed */
.plugview {
  position: relative;
  border-radius: var(--r-xl); overflow: hidden;
  height: 400px;
  background: #000;
  box-shadow: var(--shadow-sm);
}
.plugview-poster {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0; padding: 0; margin: 0;
  background: transparent;
  cursor: pointer;
  display: block;
}
.plugview-thumb {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.plugview-poster-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.15) 30%, rgba(0,0,0,.7) 100%);
}
.plugview-play {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 72px; height: 72px;
  border-radius: 50%;
  background: rgba(255, 60, 50, .96);
  color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 10px 30px -8px rgba(0,0,0,.55);
  transition: transform .18s ease;
}
.plugview-poster:hover .plugview-play { transform: translate(-50%, -50%) scale(1.06); }
.plugview-meta {
  position: absolute; left: 22px; right: 22px; bottom: 18px;
  color: #fff; text-align: left;
}
.plugview-channel {
  display: block; font-size: 12px; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; opacity: .85;
}
.plugview-title {
  display: block; font-family: var(--font-display); font-weight: 700;
  font-size: clamp(16px, 2vw, 22px); margin-top: 4px;
  line-height: 1.25;
}
.plugview-iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* PlugView — embed-blocked fallback */
.plugview-error { position: absolute; inset: 0; }
.plugview-error .plugview-thumb { filter: blur(8px) brightness(.45); }
.plugview-error-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,.85)); }
.plugview-error-body { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px; color: #fff; }
.plugview-error-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(18px, 2.4vw, 24px); }
.plugview-error-sub { margin-top: 6px; font-size: 14px; color: rgba(255,255,255,.78); max-width: 520px; line-height: 1.5; }

/* Reusable image-led page hero */
.page-hero {
  position: relative; overflow: hidden;
  border-radius: var(--r-xl);
  min-height: clamp(260px, 32vw, 360px);
  background: #1a1a1a;
  box-shadow: var(--shadow-sm);
}
.page-hero-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(1.04);
}
.page-hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(95deg, rgba(10,12,14,.78) 0%, rgba(10,12,14,.5) 45%, rgba(10,12,14,.18) 80%, rgba(10,12,14,.05) 100%);
}
.page-hero-scrim.warm {
  background:
    linear-gradient(95deg, rgba(80,28,6,.82) 0%, rgba(80,28,6,.5) 50%, rgba(80,28,6,.15) 90%);
}
.page-hero-scrim.gold {
  background:
    linear-gradient(95deg, rgba(58,40,8,.85) 0%, rgba(58,40,8,.55) 50%, rgba(58,40,8,.2) 100%);
}
.page-hero-content {
  position: relative;
  padding: clamp(24px, 4vw, 44px);
  min-height: inherit;
  display: flex; flex-direction: column; justify-content: center;
}

/* Refined vertical tiles (image-led) */
.vtile {
  position: relative; cursor: pointer;
  border-radius: var(--r-lg); overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  transition: transform .2s ease, box-shadow .2s ease;
}
.vtile:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.vtile .ph { height: 100%; }
.vtile .ph .ph-ico { display: none; }
.vtile-meta {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 14px 16px 14px;
  color: #fff; z-index: 2;
}
.vtile-head { display: flex; align-items: center; gap: 8px; }
.vtile-ic {
  width: 26px; height: 26px; border-radius: 8px;
  background: rgba(255,255,255,.18); backdrop-filter: blur(6px);
  display: grid; place-items: center;
}
.vtile-label {
  font-family: var(--font-display);
  font-weight: 700; font-size: 19px;
  letter-spacing: -.01em;
}
.vtile-tag {
  margin-top: 4px;
  font-size: 12.5px; line-height: 1.4;
  color: rgba(255,255,255,.82);
  max-width: 90%;
}

/* responsive */
@media (max-width: 1080px) {
  .vtabs .vlabel { display: none; }
}
@media (max-width: 900px) {
  .thnav-inner { gap: 14px; }
  .dash { grid-template-columns: 1fr; }
  .dside { flex-direction: row; overflow-x: auto; padding: 12px; gap: 6px; position: static; top: auto; align-self: auto; max-height: none; }
  .dside .ditem { white-space: nowrap; }
  .dside .ditem .badge { display: none; }
  .dside .dside-foot { display: none !important; }
  .chatwrap { grid-template-columns: 1fr; }
  .chatlist.hide-mobile { display: none; }
}
@media (max-width: 720px) {
  .container { padding: 0 16px; }
  .dmain { padding: 18px 16px 30px; }
  .hide-sm { display: none !important; }
  .show-sm { display: inline-flex !important; }
  .chrome-bar { display: none; }                 /* reclaim height on phones */
  .chrome-viewport { padding-bottom: calc(64px + env(safe-area-inset-bottom)); } /* clear the bottom tab bar */

  /* --- mobile header: menu toggle + logo (left) · action cluster (right); search opens as its own row --- */
  .thnav { backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); background: rgba(251,246,239,.94); }
  /* .thnav .thnav-inner beats the .container padding/max-width (higher specificity) */
  .thnav .thnav-inner { height: auto; max-width: 100% !important; padding: 12px 16px; gap: 8px; }
  .thnav .th-logo-word { font-size: 18px; }
  .thnav .logo svg { width: 28px; height: 28px; }
  .thnav .searchbar.open { padding: 11px 16px; }

  /* uniform 32×32 icon buttons (saved · notification · user · search · menu) */
  .thnav-actions .btn.icon,
  .thnav-actions .th-avatar,
  .th-searchtoggle,
  .th-navtoggle {
    width: 32px; height: 32px; padding: 0; flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center;
  }

  /* stack two-column layouts (these set grid-template-columns inline) */
  .ldetail-grid { grid-template-columns: 1fr !important; gap: 22px !important; }
  .dash-2col { grid-template-columns: 1fr !important; }

  /* tables → horizontally scrollable inside their card */
  .card:has(> .tbl) { overflow-x: auto !important; -webkit-overflow-scrolling: touch; }
  .tbl { min-width: 560px; }

  /* hide the demo role switcher on mobile — bottom tab bar handles navigation */
  .demobar { display: none !important; }
  #tweaks-root > button { bottom: calc(76px + env(safe-area-inset-bottom)) !important; }
}
@media (max-width: 860px) {
  .ldetail-grid { grid-template-columns: 1fr !important; }
  .dash-2col { grid-template-columns: 1fr !important; }
}
@media (max-width: 640px) {
  /* narrow cards: stack store name above its rating instead of cramming side-by-side */
  .lcard-vendor { flex-direction: column; align-items: flex-start !important; gap: 3px; }
}
@media (max-width: 560px) {
  .lgrid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .demobar { left: 12px; right: 12px; bottom: calc(76px + env(safe-area-inset-bottom)); justify-content: flex-start; overflow-x: auto; }
  /* collapse inline 2/3-column form-field rows to a single column */
  .row[style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
}

/* ============================================================
   DIASPORA
   ============================================================ */
.vtab-diaspora { color: var(--secondary-700); }
.vtab-diaspora:hover { background: var(--secondary-soft); color: var(--secondary-700); }
.vtab-diaspora.on { background: var(--secondary-soft); color: var(--secondary-700); }

.diaspora-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.16); color: #fff; backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.28);
  padding: 6px 13px; border-radius: var(--r-pill);
  font-size: 12.5px; font-weight: 800; letter-spacing: .01em;
}

.diaspora-cta, .diaspora-hero {
  position: relative; overflow: hidden;
  border-radius: var(--r-xl);
  background:
    linear-gradient(120deg, rgba(13,112,92,.88) 0%, rgba(10,88,73,.82) 45%, rgba(30,30,30,.82) 100%),
    url('https://images.unsplash.com/photo-1521737604893-d14cc237f11d?auto=format&fit=crop&crop=entropy&w=1800&q=85');
  background-size: cover;
  background-position: center;
  padding: clamp(24px,4vw,40px);
  display: flex; gap: 28px; align-items: center; flex-wrap: wrap;
  box-shadow: var(--shadow);
}
.diaspora-cta-glow, .diaspora-hero-glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(420px 220px at 88% 12%, rgba(242,106,27,.45), transparent 70%),
    radial-gradient(360px 200px at 10% 110%, rgba(242,163,58,.32), transparent 70%);
}
.diaspora-hero { display: block; }
.diaspora-step {
  display: inline-grid; place-items: center; width: 26px; height: 26px;
  border-radius: 50%; background: rgba(255,255,255,.18); color: #fff;
}

.country-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg, 18px); padding: 18px;
  cursor: pointer; transition: transform .15s, box-shadow .15s, border-color .15s;
}
.country-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--secondary); }
.country-flag { font-size: 38px; line-height: 1; display: block; }

/* ============================================================
   HOT DEALS
   ============================================================ */
.was { text-decoration: line-through; color: var(--ink-3); font-size: 13px; font-weight: 600; }
.cd-plain { font-family: var(--font-display); font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: .02em; color: var(--primary-700); }
.cd.ended { color: var(--ink-3); font-weight: 700; }
.deal-timer {
  display: inline-flex; align-items: center; gap: 5px;
  margin-top: 6px; font-size: 11.5px; font-weight: 700; color: var(--primary-700);
}
.deal-banner {
  border: 1px solid var(--primary); background: var(--primary-soft);
  border-radius: 14px; padding: 12px 14px;
}

/* ============================================================
   CONTACT LOCK (subscription expired)
   ============================================================ */
.contact-lock { position: relative; border-radius: var(--r-lg); overflow: hidden; }
.contact-lock-blur { filter: blur(5px); opacity: .55; pointer-events: none; user-select: none; }
.contact-lock-veil {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: 4px; padding: 16px;
  background: linear-gradient(180deg, rgba(251,247,242,.55), rgba(251,247,242,.82));
  backdrop-filter: blur(1px);
}
.contact-lock-badge {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--ink); color: #fff; display: grid; place-items: center; margin-bottom: 4px;
  box-shadow: var(--shadow-sm);
}
.contact-lock-title { font-family: var(--font-display); font-weight: 800; font-size: 15.5px; color: var(--ink); }
.contact-lock-sub { font-size: 12.5px; line-height: 1.45; color: var(--ink-2); max-width: 280px; }

/* ============================================================
   LOCATION FILTER
   ============================================================ */
.locpick {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1.5px solid var(--line-2);
  border-radius: var(--r-pill); padding: 9px 14px;
  font-size: 14px; font-weight: 600; color: var(--ink); cursor: pointer;
  white-space: nowrap; transition: border-color .15s, background .15s;
}
.locpick:hover { border-color: var(--ink-3); }
.locpick.on { border-color: var(--primary); background: var(--primary-soft); color: var(--primary-700); }
.locpick .locpick-ico { color: var(--primary); display: inline-flex; }
.locpick.on .locpick-ico { color: var(--primary-700); }
.loc-menu {
  position: absolute; z-index: 300; margin-top: 8px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  width: 300px; max-height: 60vh; overflow: hidden; display: flex; flex-direction: column;
}
.loc-menu-search { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.loc-menu-search input { border: 0; outline: 0; flex: 1; font-size: 14px; font-family: var(--font-body); background: transparent; color: var(--ink); }
.loc-menu-list { overflow-y: auto; padding: 6px; }
.loc-opt {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 10px 12px; border: 0; background: transparent; border-radius: var(--r-sm);
  font-size: 14px; font-weight: 600; color: var(--ink-2); cursor: pointer; text-align: left;
}
.loc-opt:hover { background: var(--surface-2); color: var(--ink); }
.loc-opt.on { background: var(--primary-soft); color: var(--primary-700); }
.loc-opt .loc-opt-sub { font-size: 11.5px; font-weight: 500; color: var(--ink-3); margin-left: auto; }
.loc-bar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-pill); padding: 8px 8px 8px 16px; margin-bottom: 18px;
}

/* ============================================================
   QUICK-ACCESS BANNERS (Service · Rider · Influencers)
   ============================================================ */
.qbanner-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.qbanner {
  position: relative; overflow: hidden; cursor: pointer; text-align: left;
  border: 1px solid var(--line); border-radius: var(--r-xl);
  padding: 24px 24px 22px; background: var(--surface);
  display: flex; flex-direction: column; gap: 4px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.qbanner::after {
  content: ''; position: absolute; right: -40px; top: -40px;
  width: 150px; height: 150px; border-radius: 50%; opacity: .14;
  background: var(--qb-accent); pointer-events: none; transition: transform .3s ease;
}
.qbanner:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--qb-accent); }
.qbanner:hover::after { transform: scale(1.25); }
.qbanner-ico {
  width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center;
  background: var(--qb-soft); color: var(--qb-accent); margin-bottom: 12px; position: relative; z-index: 1;
}
.qbanner-eyebrow { font-size: 11.5px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--qb-accent); }
.qbanner-title { font-family: var(--font-display); font-weight: 800; font-size: 21px; letter-spacing: -.02em; color: var(--ink); }
.qbanner-sub { font-size: 13.5px; line-height: 1.5; color: var(--ink-2); margin: 6px 0 16px; max-width: 30ch; }
.qbanner-cta { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; color: var(--qb-accent); }
.qbanner-cta svg { transition: transform .18s ease; }
.qbanner:hover .qbanner-cta svg { transform: translateX(4px); }
.qbanner-teal   { --qb-accent: var(--secondary-700); --qb-soft: var(--secondary-soft); }
.qbanner-orange { --qb-accent: var(--primary-700);   --qb-soft: var(--primary-soft); }
.qbanner-gold   { --qb-accent: var(--accent-700);    --qb-soft: var(--accent-soft); }
@media (max-width: 860px) { .qbanner-grid { grid-template-columns: 1fr; } }

/* ============================================================
   HOMEPAGE REFINEMENTS — rhythm, hierarchy, premium polish
   ============================================================ */

/* --- per-rail accent system (drives eyebrow + tick color) --- */
.rail-sec { margin-bottom: 46px; --rail-accent: var(--primary); }
.rail-sec[data-accent="gold"]    { --rail-accent: var(--accent-700); }
.rail-sec[data-accent="teal"]    { --rail-accent: var(--secondary); }
.rail-sec[data-accent="amber"]   { --rail-accent: var(--warning); }
.rail-sec[data-accent="neutral"] { --rail-accent: var(--ink-3); }

/* --- tinted full-bleed band: breaks the wall of identical white rails --- */
.rail-band {
  background: var(--surface-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 38px 0 34px;
  margin-bottom: 46px;
}

/* --- refined "see all" pill --- */
.see-all {
  display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto;
  padding: 9px 15px; border-radius: var(--r-pill);
  border: 1px solid var(--line-2); background: var(--surface);
  color: var(--ink); font-family: var(--font-body); font-weight: 700; font-size: 13.5px;
  cursor: pointer; white-space: nowrap; transition: border-color .15s, color .15s, background .15s;
}
.see-all:hover { border-color: var(--rail-accent, var(--primary)); color: var(--rail-accent, var(--primary)); background: color-mix(in srgb, var(--rail-accent, var(--primary)) 7%, var(--surface)); }
.see-all svg { transition: transform .15s; }
.see-all:hover svg { transform: translateX(3px); }

/* --- slim, smart location strip (replaces the boxy loc-bar) --- */
.loc-strip {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-size: 13.5px; color: var(--ink-2); padding: 2px;
}
.loc-strip-ic {
  flex: 0 0 auto; display: grid; place-items: center;
  width: 25px; height: 25px; border-radius: 7px;
  background: var(--primary-soft); color: var(--primary-700);
}
.loc-strip-txt b { color: var(--ink); font-weight: 700; }
.loc-strip-count {
  font-size: 11.5px; font-weight: 700; color: var(--ink-3);
  padding: 3px 9px; border-radius: var(--r-pill);
  background: var(--surface); border: 1px solid var(--line);
}
.loc-strip-count b { color: var(--primary-700); }
.loc-strip-clear {
  border: 0; background: transparent; color: var(--primary-700);
  font-weight: 700; font-size: 13px; cursor: pointer; font-family: inherit;
}
.loc-strip-clear:hover { text-decoration: underline; }

/* --- premium hero polish --- */
.hslide-content h1 { text-shadow: 0 2px 18px rgba(0,0,0,.35); }
.hslide-content p  { text-shadow: 0 1px 10px rgba(0,0,0,.30); }
.hslider { box-shadow: var(--shadow-lg); }
.hslide-scrim {
  background:
    linear-gradient(95deg, rgba(10,12,14,.62) 0%, rgba(10,12,14,.34) 45%, rgba(10,12,14,.05) 80%),
    linear-gradient(180deg, rgba(10,12,14,0) 40%, rgba(10,12,14,.45) 100%);
}
.hslider-arrow { background: rgba(255,255,255,.16); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.22); }
.hslider-dot { height: 6px; }
.hslider-dot.on { background: var(--accent); width: 40px; }

/* --- vertical tiles: hover reveal arrow + lift label --- */
.vtile-meta::after {
  content: ''; position: absolute; right: 16px; bottom: 16px;
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255,255,255,.92);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12h14m-6-7 7 7-7 7'/></svg>") center/16px no-repeat, linear-gradient(#000,#000);
  -webkit-mask-composite: source-out; mask-composite: subtract;
  opacity: 0; transform: translateX(-6px); transition: opacity .2s, transform .2s;
}
.vtile:hover .vtile-meta::after { opacity: 1; transform: translateX(0); }

/* --- premium sell CTA band --- */
.sell-cta {
  position: relative; overflow: hidden;
  border-radius: var(--r-xl); border: 1px solid var(--accent);
  background:
    radial-gradient(120% 140% at 0% 0%, var(--accent-soft) 0%, #FFFDF8 55%),
    var(--accent-soft);
  padding: clamp(26px, 4vw, 44px);
  display: flex; gap: 32px; align-items: center; flex-wrap: wrap;
  box-shadow: var(--shadow);
}
.sell-cta-glow {
  position: absolute; right: -80px; top: -80px; width: 320px; height: 320px;
  border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(242,163,58,.30) 0%, transparent 65%);
}
.sell-cta-body { position: relative; flex: 1 1 360px; min-width: 0; }
.sell-cta-title { font-size: clamp(26px, 3.2vw, 34px); line-height: 1.08; letter-spacing: -.02em; margin: 8px 0 10px; }
.sell-cta-sub { font-size: 15.5px; line-height: 1.55; color: var(--ink-2); max-width: 52ch; margin: 0 0 16px; }
.sell-cta-points { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.sell-cta-points li { display: flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 600; color: var(--ink); }
.sell-cta-points li svg { flex: 0 0 auto; color: #fff; background: var(--success); border-radius: 50%; padding: 3px; width: 21px; height: 21px; }
.sell-cta-action { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.sell-cta-link { border: 0; background: transparent; color: var(--accent-700); font-weight: 700; font-size: 14px; cursor: pointer; font-family: inherit; padding: 4px 0; }
.sell-cta-link:hover { text-decoration: underline; }

/* --- mobile-first homepage tuning --- */
@media (max-width: 720px) {
  .rail-sec { margin-bottom: 34px; }
  .rail-band { padding: 26px 0 22px; margin-bottom: 34px; }
  .shead { margin-bottom: 15px; align-items: center; }
  .shead-main { gap: 11px; }
  .hslide { min-height: clamp(380px, 78vw, 460px); }
  .hslide-content { justify-content: flex-end; padding: 22px 20px 30px; }
  .hslide-content h1 { font-size: clamp(26px, 8vw, 34px); }
  .sell-cta { padding: 24px 20px; gap: 18px; }
  .sell-cta-action { width: 100%; }
  .sell-cta-action .btn { width: 100%; justify-content: center; }
}
