/* ── Tokens ── */
:root {
  --bg: #000000;
  --surface: #2a2a27;
  --border: #3a3830;
  --text-primary: #e8e6df;
  --text-secondary: #8a8880;
  --text-muted: #6a6960;
  --card-brand: #a09e96;
  --card-name: #d4d2ca;
  --card-price: #7a7870;
  --pill-active-bg: #e8e6df;
  --pill-active-text: #1a1a18;
  --pill-bg: #2a2a27;
  --pill-text: #c2c0b6;
  --radius-card: 12px;
  --radius-pill: 20px;
  --gradient-card: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 40%);
  --verified-green: #4ade80;
  --snap-height: 99svh;
}

/* ── Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html, body {
  height: 100%;
  background: var(--bg);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
}

/* ── Screen visibility ── */
.screen {
  display: none;
  opacity: 0;
  transition: opacity 0.15s ease;
}
.screen.screen-visible { opacity: 1; }
body[data-view="home"]    .screen-home    { display: flex; flex-direction: column; height: calc(100svh - 48px); }
body[data-view="picks"]   .screen-picks   { display: flex; flex-direction: column; height: calc(100svh - 48px); }
body[data-view="profile"] .screen-profile { display: flex; flex-direction: column; height: calc(100svh - 48px); }
/* Product is an overlay — shown via data-overlay, base view stays visible underneath */
body[data-overlay="product"] .screen-product { display: block; opacity: 1; }

/* Product screen is a full-screen overlay so it can animate over other views */
.screen-product {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: #000;
  transform-origin: center center;
  will-change: transform, opacity, border-radius;
  overflow: hidden;
}
.screen-product.product-transitioning {
  pointer-events: none;
}
/* Simple fade enter fallback */
.screen-product.product-enter { opacity: 0; }
.screen-product.product-enter-active {
  opacity: 1;
  transition: opacity 0.3s ease;
}

/* ── Header / Logo ── */
.header {
  text-align: center;
  padding: 12px 0 4px;
  flex-shrink: 0;
}
.header-logo {
  height: 43px;
  max-width: 240px;
  margin: 0 auto;
}
.header-logo svg {
  width: 100%;
  height: 100%;
}
.tagline {
  text-align: center;
  font-size: 12px;
  color: var(--text-secondary);
  padding-bottom: 10px;
}

/* ── Search bar (inline, expands in-place) ── */
@property --border-angle {
  syntax: '<angle>';
  initial-value: 90deg;
  inherits: false;
}
@property --border-c1 {
  syntax: '<color>';
  initial-value: rgba(255, 215, 0, 0.5);
  inherits: false;
}
.search-bar {
  --border-c1: rgba(255, 215, 0, 0.5);
  --border-c2: rgba(255, 255, 255, 0.03);
  position: relative;
  isolation: isolate;
  background: var(--surface);
  border-radius: var(--radius-card);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 16px 14px;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s;
  border: 1.5px solid transparent;
  background-clip: padding-box;
}
.search-bar::before {
  content: "";
  position: absolute;
  inset: -1.5px;
  z-index: -1;
  border-radius: var(--radius-card);
  padding: 1.5px;
  background: conic-gradient(from var(--border-angle), var(--border-c2), var(--border-c1) 0.1turn, var(--border-c1) 0.15turn, var(--border-c2) 0.25turn);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  animation: borderRotate 3s linear 3 forwards, borderColor 3s linear 3 forwards;
}
@keyframes borderRotate {
  100% { --border-angle: 420deg; }
}
@keyframes borderColor {
  0%   { --border-c1: rgba(255, 215, 0, 0.5); }    /* gold */
  25%  { --border-c1: rgba(0, 191, 255, 0.5); }     /* sapphire */
  50%  { --border-c1: rgba(255, 99, 71, 0.5); }     /* wine */
  75%  { --border-c1: rgba(0, 255, 127, 0.5); }     /* emerald */
  100% { --border-c1: rgba(255, 215, 0, 0.5); }     /* back to gold */
}
.search-bar-icon { width: 16px; height: 16px; flex-shrink: 0; }
.search-bar-icon path { stroke: var(--text-muted); transition: stroke 0.2s; }
.search-bar-back {
  display: none;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}
.search-bar-back svg { width: 16px; height: 16px; }
.search-bar-back path { stroke: var(--text-primary); fill: none; }
.search-bar-placeholder {
  color: var(--text-muted);
  font-size: 13px;
  transition: opacity 0.3s ease;
}
.search-bar-placeholder.fade-out { opacity: 0; }
.search-bar-placeholder.fade-in  { opacity: 1; }
.search-bar-input {
  display: none;
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: #fff;
  font: inherit;
  font-size: 15px;
  min-width: 0;
  -webkit-appearance: none;
}
.search-bar-input::placeholder { color: var(--text-muted); }
.search-bar-input::-webkit-search-cancel-button { display: none; }
.search-bar-clear {
  display: none;
  background: none;
  border: none;
  padding: 2px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.search-bar-clear svg path { stroke: var(--text-muted); }

/* Active search state */
.search-bar.search-active {
  background: rgba(255,255,255,0.07);
  cursor: text;
}
.search-bar.search-active .search-bar-icon { display: none; }
.search-bar.search-active .search-bar-back { display: flex; }
.search-bar.search-active .search-bar-placeholder { display: none; }
.search-bar.search-active .search-bar-input { display: block; }
.search-bar.search-active .search-bar-clear { display: flex; }

/* Suggestions panel (below search bar, replaces grid) */
.search-suggestions {
  display: none;
  flex-direction: column;
  gap: 14px;
  padding: 4px 16px 80px;
  overflow-y: auto;
  flex: 1;
  -webkit-overflow-scrolling: touch;
}
.screen-home.search-active .search-suggestions { display: flex; animation: searchIn 0.2s ease both; }
.screen-home.search-active .grid-wrap { display: none; }
.screen-home.search-active .search-results-bar { display: none !important; }

/* Exit animation — keeps elements visible during fade-out */
.screen-home.search-closing .search-suggestions { display: flex; animation: searchOut 0.2s ease both; }
.screen-home.search-closing .grid-wrap { display: none; }
.search-bar.search-closing {
  background: rgba(255,255,255,0.07);
}
.search-bar.search-closing .search-bar-icon { display: none; }
.search-bar.search-closing .search-bar-back { display: flex; }
.search-bar.search-closing .search-bar-placeholder { display: none; }
.search-bar.search-closing .search-bar-input { display: block; }
.search-bar.search-closing .search-bar-clear { display: flex; }

/* Search results state — grid shows results, suggestions hidden */
.search-results-bar {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 6px 16px 8px;
  flex-shrink: 0;
}
.screen-home.search-results .search-results-bar { display: flex; }
.screen-home.search-results .search-suggestions { display: none; }
.screen-home.search-results .search-bar { display: none; }

@keyframes searchIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes searchOut {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(8px); }
}

/* ── Pills ── */
.pills {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 16px 14px;
  flex-shrink: 0;
  scrollbar-width: none;
}
.pills::-webkit-scrollbar { display: none; }
.pill {
  flex-shrink: 0;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  color: var(--pill-text);
  background: var(--pill-bg);
  white-space: nowrap;
  cursor: pointer;
  border: none;
  -webkit-tap-highlight-color: transparent;
}
.pill.active {
  background: var(--pill-active-bg);
  color: var(--pill-active-text);
}

/* ── Grid ── */
.grid-wrap {
  flex: 1;
  overflow-y: auto;
  padding: 0 16px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.grid-wrap::-webkit-scrollbar { display: none; }
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding-bottom: 80px; /* space for bottom nav */
}

/* ── Product card ── */
.grid-card {
  border-radius: var(--radius-card);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.grid-card-img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  background: var(--surface);
  display: block;
}
.grid-card-bm {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  background: rgba(0,0,0,0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}
.grid-card-bm svg { pointer-events: none; overflow: visible; }
.grid-card-bm path { stroke: #ccc; fill: none; }
.grid-card-bm.bookmarked path { fill: #ccc; }

/* ── Bookmark: gravity fill (optimistic, on click) ── */
.grid-card-bm.bm-filling path {
  fill: #ccc;
  clip-path: inset(0 0 100% 0);
  animation: bmGravityFill 0.45s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
.pc-bm-btn.bm-filling svg path {
  fill: white;
  clip-path: inset(0 0 100% 0);
  animation: bmGravityFill 0.45s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
@keyframes bmGravityFill {
  0%   { clip-path: inset(0 0 100% 0); }
  60%  { clip-path: inset(0 0 -5% 0); }
  80%  { clip-path: inset(0 0 4% 0); }
  100% { clip-path: inset(0 0 0 0); }
}

/* ── Bookmark: ring pulse (on API success) ── */
.grid-card-bm.bm-pulse::after,
.pc-bm-btn.bm-pulse::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.6);
  animation: bmRingPulse 0.5s ease-out forwards;
  pointer-events: none;
}
@keyframes bmRingPulse {
  0%   { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(1.8); opacity: 0; }
}

/* ── Bookmark: shake (on API failure) ── */
.grid-card-bm.bm-shake,
.pc-bm-btn.bm-shake {
  animation: bmShake 0.4s ease;
}
@keyframes bmShake {
  0%, 100% { transform: translateX(0); }
  15%  { transform: translateX(-4px); }
  30%  { transform: translateX(4px); }
  45%  { transform: translateX(-3px); }
  60%  { transform: translateX(3px); }
  75%  { transform: translateX(-1px); }
  90%  { transform: translateX(1px); }
}
.grid-card-info { padding: 8px 4px 4px; }
.grid-card-brand { font-size: 11px; color: var(--card-brand); font-weight: 500; }
.grid-card-name { font-size: 12px; color: var(--card-name); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.grid-card-price { font-size: 11px; color: var(--card-price); margin-top: 2px; }

/* ── List card (wishlist) ── */
.grid-list-card {
  grid-column: 1 / -1;
  border-radius: 14px;
  padding: 16px;
  background: linear-gradient(135deg, #2d2620 0%, #1f2420 100%);
  border: 0.5px solid var(--border);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.list-label { font-size: 10px; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 6px; }
.list-title { font-size: 15px; color: var(--text-primary); font-weight: 500; margin-bottom: 4px; }
.list-sub { font-size: 12px; color: var(--text-secondary); line-height: 1.4; }
.list-thumbs { display: flex; gap: 6px; margin-top: 10px; }
.list-thumb {
  width: 48px; height: 48px;
  border-radius: 8px;
  background: #3a3830;
  overflow: hidden;
}
.list-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ── Tip card (disabled) ── */
.grid-tip-card {
  display: none;
  grid-column: 1 / -1;
  padding: 12px 16px;
  border-radius: var(--radius-card);
  background: #22201e;
  border: 0.5px solid var(--border);
  align-items: center;
  gap: 10px;
}
.grid-tip-card svg { width: 20px; height: 20px; flex-shrink: 0; }
.grid-tip-card svg path { stroke: var(--text-secondary); }
.grid-tip-card .tip-text { font-size: 12px; color: var(--text-secondary); }
.grid-tip-card .tip-text em { color: var(--pill-text); font-style: normal; }

/* ── Bottom nav ── */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-around;
  padding: 10px 0 calc(10px + env(safe-area-inset-bottom));
  background: var(--bg);
  border-top: 0.5px solid var(--surface);
  z-index: 100;
  transition: transform 0.3s ease;
}
body[data-overlay="product"] .bottom-nav {
  transform: translateY(100%);
}
.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  background: none;
  border: none;
  padding: 4px 12px;
}
.nav-item span { font-size: 10px; color: var(--text-muted); }
.nav-item.active span { color: var(--text-primary); }
.nav-item svg path,
.nav-item svg circle { stroke: var(--text-muted); fill: none; }
.nav-item.active svg path,
.nav-item.active svg circle { stroke: var(--text-primary); }

/* ── Product view (snap-scroll, virtual) ── */
.product-feed {
  height: 100%;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.product-feed::-webkit-scrollbar { display: none; }

.product-card {
  scroll-snap-align: start;
  scroll-snap-stop: always;
  height: 99vh;
  height: 99svh;
  width: 100%;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #000;
  overflow: hidden;
}
.pc-loading-hint {
  color: rgba(255,255,255,0.45);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}
.pc-similar-pill {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(1rem);
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  color: rgba(255,255,255,0.7);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
  z-index: 20;
}
.pc-similar-pill.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Toast */
.rokom-toast {
  position: fixed;
  bottom: 5rem;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(12px);
  color: #fff;
  font-size: 0.85rem;
  padding: 10px 20px;
  border-radius: 999px;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
  z-index: 500;
}
.rokom-toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.rokom-toast.has-action { pointer-events: auto; }
.toast-action { color: rgba(255,255,255,0.7); text-decoration: underline; cursor: pointer; margin-left: 2px; }

/* Bookmark toast — matches similar-pill style */
.bm-toast {
  position: fixed;
  bottom: 5rem;
  left: 50%;
  transform: translateX(-50%) translateY(1rem);
  background: rgba(255,255,255,0.22);
  backdrop-filter: blur(12px);
  color: rgba(255,255,255,0.9);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
  z-index: 500;
  white-space: nowrap;
}
.bm-toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
.bm-toast .toast-action {
  color: rgba(255,255,255,0.9);
  text-decoration: underline;
  cursor: pointer;
  margin-left: 4px;
}

/* Wishlist picker drawer */
.wl-picker-backdrop, .wl-new-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 320;
}
.wl-new-backdrop { z-index: 330; }
.wl-picker-backdrop.open, .wl-new-backdrop.open {
  opacity: 1; visibility: visible; pointer-events: auto;
}
.wl-picker, .wl-new {
  position: fixed; bottom: 0; left: 0; width: 100%;
  background: #fff; color: #000;
  border-radius: 16px 16px 0 0;
  transform: translateY(100%);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: transform 0.3s ease, opacity 0.2s ease, visibility 0s 0.3s;
  display: flex; flex-direction: column;
  will-change: transform;
  z-index: 321;
}
.wl-new { z-index: 331; }
.wl-picker.open, .wl-new.open {
  transform: translateY(0);
  opacity: 1; visibility: visible; pointer-events: auto;
  transition: transform 0.3s ease, opacity 0.2s ease;
}
.wl-picker-handle, .wl-new-handle {
  width: 40px; height: 4px;
  background: #e5e5e5; border-radius: 2px;
  margin: 12px auto;
}
.wl-picker-title {
  font-size: 0.95rem; font-weight: 600;
  padding: 0 20px 8px; color: #222;
}
.wl-picker-list {
  flex: 1; overflow-y: auto; max-height: 40dvh;
  padding: 0 12px;
}
.wl-picker-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 12px; border-radius: 10px; cursor: pointer;
  transition: background 0.15s;
}
.wl-picker-item:active { background: #f5f5f5; }
.wl-picker-item.active { background: #f0f0f0; font-weight: 600; }
.wl-picker-item-name { font-size: 0.9rem; }
.wl-picker-item-count { font-size: 0.8rem; color: #999; }
.wl-picker-new {
  background: none; border: none; color: #000;
  font-size: 0.9rem; font-weight: 500;
  padding: 16px 20px; text-align: left; cursor: pointer;
  border-top: 1px solid #eee;
}
.wl-picker-new:active { background: #f5f5f5; }

/* New wishlist drawer */
.wl-new-body {
  display: flex; gap: 10px; padding: 8px 20px 24px; align-items: center;
}
.wl-new-input {
  flex: 1; border: 1px solid #ddd; border-radius: 8px;
  padding: 10px 12px; font-size: 0.9rem; outline: none;
  font-family: inherit;
}
.wl-new-input:focus { border-color: #000; }
.wl-new-create {
  background: #000; color: #fff; border: none;
  border-radius: 8px; padding: 10px 18px;
  font-size: 0.9rem; font-weight: 600; cursor: pointer;
  font-family: inherit;
}
.wl-new-create:disabled { opacity: 0.4; }

/* Image swiper */
.pc-image-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.pc-image-wrap::-webkit-scrollbar { display: none; }
.pc-img {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

/* Gradient overlay */
.pc-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 40%, transparent 60%, rgba(0,0,0,0.4) 100%);
  pointer-events: none;
}

/* Image nav arrows */
.pc-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 15;
  width: 36px; height: 36px;
  background: none; border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  padding: 0;
}
.pc-nav.pc-nav-visible { opacity: 1; }
.pc-nav svg {
  width: 20px; height: 20px;
  stroke: rgba(255,255,255,0.55); fill: none;
  stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round;
  filter: drop-shadow(0 0 4px rgba(0,0,0,0.6));
}
.pc-nav-left { left: 10px; }
.pc-nav-right { right: 10px; }

/* Dots */
.pc-dots {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 4px;
  z-index: 20;
}
.pc-dot {
  width: 3px; height: 3px;
  background: rgba(255,255,255,0.3);
  border-radius: 50%;
  transition: all 0.3s ease;
}
.pc-dot.active { background: #fff; transform: scale(1.3); }

/* Content overlay */
.pc-content {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 500px;
  padding: 0 20px calc(48px + env(safe-area-inset-bottom));
  margin-top: auto;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  justify-content: space-between;
  gap: 12px;
}
.pc-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.pc-title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-transform: lowercase;
  color: #fff;
}
.pc-brand {
  font-size: 13px;
  color: #a3a3a3;
  font-weight: 500;
}
.pc-brand-btn {
  background: none; border: none;
  color: inherit; font: inherit; font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  padding: 0; display: inline;
}
.pc-tags {
  font-size: 11px;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
}
.pc-tag { text-transform: lowercase; letter-spacing: 0.3px; }
.pc-tag::first-letter { text-transform: uppercase; }
.pc-tag-sep { margin: 0 4px; color: rgba(255,255,255,0.4); user-select: none; }
.pc-price-row { margin-top: 8px; }
.pc-price { font-size: 20px; font-weight: 600; color: #e5e5e5; }

/* Action buttons (right column) */
.pc-actions {
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-end;
}
.pc-bm-btn, .pc-share-btn {
  width: 44px; height: 44px;
  border: none; outline: none;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  background: none;
  -webkit-tap-highlight-color: transparent;
  position: relative;
}
.pc-bm-btn svg, .pc-share-btn svg {
  width: 20px; height: 20px;
  stroke: white; fill: none; stroke-width: 2;
  overflow: visible;
}
.pc-bm-btn.saved svg { fill: white; }
.pc-cta {
  background: transparent;
  color: rgba(255,255,255,0.6);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 6px 12px;
  border-radius: 24px;
  font-weight: 500; font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: 0.3px;
  margin-top: auto;
}

/* Back button */
.product-back {
  position: absolute;
  top: calc(12px + env(safe-area-inset-top));
  left: 12px;
  width: 36px; height: 36px;
  background: rgba(0,0,0,0.4);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; border: none;
  z-index: 55;
  -webkit-tap-highlight-color: transparent;
}
.product-back svg { pointer-events: none; }
.product-back path { stroke: #fff; fill: none; }

.search-section { display: flex; flex-direction: column; gap: 8px; }
.search-section-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.28);
  text-transform: lowercase;
}
.search-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.search-chip {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-pill);
  padding: 8px 16px;
  color: rgba(255,255,255,0.65);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.search-chip:active { background: rgba(255,255,255,0.16); }
.search-chip-icon {
  display: inline-flex;
  align-items: center;
  width: 13px; height: 13px;
  margin-right: 5px;
  opacity: 0.55;
}
.search-chip-icon svg { width: 100%; height: 100%; }
.brand-chip {
  border-color: rgba(255,255,255,0.15);
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Brand carousel */
.brand-carousel { display: flex; flex-direction: column; gap: 10px; overflow: hidden; padding: 8px 0; min-height: 140px; }
.brand-carousel-row {
  display: flex; gap: 8px; overflow-x: auto; -webkit-overflow-scrolling: touch;
  scrollbar-width: none; -ms-overflow-style: none;
}
.brand-carousel-row::-webkit-scrollbar { display: none; }

/* Search results */
.search-results-back {
  width: 32px; height: 32px;
  background: none; border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  flex-shrink: 0;
}
.search-results-back path { stroke: var(--text-primary); fill: none; }
.search-results-query {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
}
.search-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 16px;
  color: var(--text-secondary);
  font-size: 14px;
}

/* ── Saved / Picks screen ── */
.saved-header {
  padding: 16px 16px 8px;
  flex-shrink: 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.saved-title {
  font-size: 22px;
  font-weight: 600;
  color: var(--text-primary);
}
.saved-count {
  font-size: 8px;
  color: var(--text-muted);
  margin-left: 6px;
  flex: 1;
}
.saved-create-btn[disabled] {
  opacity: 0.3;
  pointer-events: none;
}
.saved-create-btn {
  width: 36px;
  height: 36px;
  border: none;
  background: none;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
  border-radius: 50%;
}
.saved-create-btn:active { background: var(--surface); }
.saved-create-btn svg { width: 20px; height: 20px; }

/* Ghost "new list" card */
.wl-cell-ghost .wl-cell-cover {
  border: 2px dashed var(--border, #ddd);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}
.wl-cell-ghost .wl-cell-cover svg {
  width: 28px;
  height: 28px;
  color: var(--text-muted);
}
.wl-cell-ghost .wl-cell-name {
  color: var(--text-muted);
}
.wl-cell-ghost.disabled {
  opacity: 0.4;
  pointer-events: none;
}

/* Wishlists index grid */
.saved-lists-wrap {
  flex: 1;
  overflow-y: auto;
  animation: fade-in 0.3s ease;
  padding: 8px 16px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.saved-lists-wrap::-webkit-scrollbar { display: none; }
.saved-lists {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding-bottom: 80px;
}

/* Wishlist cell */
.wl-cell {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.wl-cell-cover {
  aspect-ratio: 1;
  border-radius: 12px;
  background: var(--surface);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}
.wl-cell-empty-icon {
  font-size: 32px;
  opacity: 0.2;
}
.wl-cell-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.wl-cell-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wl-cell-count {
  font-size: 12px;
  color: var(--text-muted);
}

/* Cell menu button */
.wl-cell { position: relative; }
.wl-cell-cover { position: relative; }
.wl-cell-menu {
  position: absolute; top: 6px; right: 6px;
  width: 22px; height: 22px;
  background: rgba(0,0,0,0.35);
  border: none; border-radius: 50%;
  color: #fff; cursor: pointer;
  padding: 0; z-index: 2;
  display: flex; align-items: center; justify-content: center;
}
.wl-cell-menu svg { width: 14px; height: 14px; }
.wl-cell-menu::after {
  content: ''; position: absolute;
  inset: -11px;
}

/* Lock icon */
.wl-cell-lock {
  position: absolute; bottom: 6px; left: 6px;
  width: 22px; height: 22px;
  background: rgba(0,0,0,0.35);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  z-index: 2;
}
.wl-cell-lock svg { width: 12px; height: 12px; color: #fff; }

/* Cell dropdown */
.wl-cell-dropdown {
  position: absolute; top: calc(6px + 22px + 4px); right: 6px;
  background: #fff; color: #111;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  z-index: 100; min-width: 140px;
  overflow: hidden;
}
.wl-cell-dropdown button {
  display: block; width: 100%;
  padding: 10px 16px; text-align: left;
  background: none; border: none;
  font: inherit; font-size: 14px; cursor: pointer;
  color: #111;
}
.wl-cell-dropdown button:active { background: #f5f5f5; }

/* Delete confirm */
.wl-cell-dropdown.confirm {
  padding: 12px 16px; overflow: visible;
}
.wl-cell-dropdown.confirm span {
  font-size: 14px; font-weight: 600; display: block;
}
.wl-cell-dropdown-actions {
  display: flex; gap: 8px; margin-top: 10px;
}
.wl-cell-dropdown-actions button {
  flex: 1; padding: 8px; border-radius: 8px;
  font-size: 13px; font-weight: 600; text-align: center;
  width: auto;
}
.wl-cell-dropdown-actions button[data-action="cancel"] {
  background: #f5f5f5; color: #111;
}
.wl-cell-dropdown-actions button[data-action="confirm-delete"] {
  background: #e53935; color: #fff;
}


/* Wishlist detail header */
#saved-index { display: flex; flex-direction: column; min-height: 0; }
#saved-detail { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.saved-detail-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  flex-shrink: 0;
}
.saved-detail-back {
  width: 36px; height: 36px;
  background: none; border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.saved-detail-back path { stroke: var(--text-primary); fill: none; }
.saved-detail-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.saved-detail-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.saved-detail-count {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.2;
}

/* Empty state */
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.saved-empty {
  flex: 1;
  display: flex;
  animation: fade-in 0.3s ease;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 32px;
  text-align: center;
}
.saved-empty svg {
  stroke: var(--text-muted);
  margin-bottom: 4px;
}
.saved-empty p {
  font-size: 15px;
  color: var(--text-primary);
  font-weight: 500;
}
.saved-empty span {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ── Profile screen ── */
#profile-auth, #profile-account {
  flex: 1;
  display: flex;
  flex-direction: column;
}
#profile-account { position: relative; }
.profile-signout-icon {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-family: inherit;
  z-index: 1;
}
.profile-signout-icon:active { background: rgba(255,255,255,0.08); }
.profile-auth-header {
  padding: 24px 24px 8px;
}
.profile-auth-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
}
.profile-auth-form {
  padding: 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.profile-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 4px;
}
.profile-tab {
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.5);
  border-radius: 999px;
  padding: 10px 16px;
  font: inherit; font-size: 14px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.profile-tab.active {
  background: #fff;
  color: #000;
  border-color: #fff;
}
.profile-input {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  color: #fff;
  padding: 15px 16px;
  font: inherit; font-size: 16px;
  outline: none;
  -webkit-appearance: none;
}
.profile-input:focus { border-color: rgba(255,255,255,0.3); }
.profile-input::placeholder { color: rgba(255,255,255,0.28); }
.profile-error {
  font-size: 13px;
  color: #f87171;
  min-height: 18px;
}
.profile-submit {
  background: #fff;
  color: #000;
  border: none;
  border-radius: 14px;
  padding: 15px;
  font: inherit; font-weight: 700; font-size: 16px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.profile-submit:active { background: #d4d4d4; }
.profile-submit:disabled { opacity: 0.5; }
.profile-google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 4px 24px 0;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  background: none;
  color: rgba(255,255,255,0.7);
  font: inherit; font-size: 15px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.profile-google-btn:active { background: rgba(255,255,255,0.05); }
.profile-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 24px;
  color: rgba(255,255,255,0.25);
  font-size: 13px;
}
.profile-divider::before, .profile-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.12);
}
.profile-toggle-link {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  text-align: center;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  margin: 0;
  -webkit-tap-highlight-color: transparent;
}
.profile-fade {
  animation: profileFadeIn 200ms ease both;
}
@keyframes profileFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Signed-in account view */
.profile-account-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 24px 24px;
  gap: 8px;
}
.profile-avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.profile-name {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
}
.profile-email-display {
  font-size: 14px;
  color: var(--text-secondary);
}
.profile-menu {
  padding: 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.profile-menu-item {
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.1);
  background: none;
  color: var(--text-primary);
  font: inherit; font-size: 15px;
  cursor: pointer;
  text-align: left;
  -webkit-tap-highlight-color: transparent;
  display: flex;
  align-items: center;
  gap: 12px;
}
.profile-menu-icon {
  flex-shrink: 0;
  opacity: 0.7;
}
.profile-menu-item:active { background: rgba(255,255,255,0.05); }

/* About rokom link — centered above bottom nav */
.profile-about-link {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 16px 0;
  margin-top: auto;
  margin-bottom: 20px;
}
.profile-about-link:active { opacity: 0.6; }

/* About drawer */
.about-drawer-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 300;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.3s ease, visibility 0s linear 0.3s;
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}
.about-drawer-backdrop.open {
  opacity: 1; visibility: visible; pointer-events: auto;
  transition: opacity 0.3s ease;
}
.about-drawer {
  position: fixed; bottom: 0; left: 0; width: 100%;
  max-height: 70vh; max-height: 70dvh;
  background: #fff; color: #000;
  z-index: 301;
  border-top-left-radius: 20px; border-top-right-radius: 20px;
  transform: translateY(100%);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: transform 0.3s cubic-bezier(0.25,1,0.5,1);
  display: flex; flex-direction: column;
  will-change: transform;
}
.about-drawer.open {
  transform: translateY(0);
  opacity: 1; visibility: visible; pointer-events: auto;
}
.about-drawer-handle {
  width: 40px; height: 4px;
  background: #e5e5e5; border-radius: 2px;
  margin: 12px auto;
}
.about-drawer-body {
  padding: 8px 24px 32px;
  overflow-y: auto;
}
.about-lead {
  font-size: 16px; line-height: 1.6; color: #171717; margin-bottom: 18px;
}
.about-body {
  font-size: 15px; line-height: 1.65; color: #404040; margin-bottom: 14px;
}
.about-body:last-of-type { margin-bottom: 28px; }
.about-email {
  font-size: 13px; color: #a3a3a3; text-decoration: none;
}

/* ── Stub screens ── */
.stub-screen {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 14px;
}

/* ── Feed error ── */
.feed-error {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 24px;
  gap: 8px;
}
.feed-error-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}
.feed-error-sub {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  max-width: 260px;
}
.feed-error-btn {
  margin-top: 16px;
  padding: 10px 24px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.15);
  background: none;
  color: var(--text-primary);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.feed-error-btn:active { background: rgba(255,255,255,0.05); }

/* ── Loading spinner ── */
.grid-empty {
  grid-column: 1 / -1;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 48px 24px;
  color: #999; font-size: 13px;
}
.grid-loader {
  grid-column: 1 / -1;
  text-align: center;
  padding: 24px;
  animation: fade-in 0.3s ease;
}
.saved-lists:has(.grid-loader) {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 98vh;
  padding: 0;
  color: var(--text-muted);
  font-size: 12px;
}

/* ── Auth prompt sheet ── */
.auth-prompt-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 400;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}
.auth-prompt-backdrop.open {
  opacity: 1; visibility: visible; pointer-events: auto;
  transition: opacity 0.3s ease;
}
.auth-prompt {
  position: fixed; bottom: 0; left: 0; width: 100%;
  background: #fff; color: #000;
  z-index: 401;
  border-top-left-radius: 20px; border-top-right-radius: 20px;
  transform: translateY(100%);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: transform 0.3s cubic-bezier(0.25,1,0.5,1);
  will-change: transform;
}
.auth-prompt.open {
  transform: translateY(0);
  opacity: 1; visibility: visible; pointer-events: auto;
}
.auth-prompt-handle {
  width: 40px; height: 4px;
  background: #e5e5e5; border-radius: 2px;
  margin: 12px auto;
}
.auth-prompt-body {
  padding: 8px 24px 32px;
  display: flex; flex-direction: column;
  align-items: center; text-align: center; gap: 8px;
}
.auth-prompt-body svg { color: #111; margin-bottom: 4px; }
.auth-prompt-title {
  font-size: 18px; font-weight: 700; color: #111;
}
.auth-prompt-sub {
  font-size: 14px; color: #737373; line-height: 1.5; max-width: 280px;
}
.auth-prompt-btn {
  margin-top: 12px; width: 100%;
  padding: 14px; background: #111; color: #fff;
  border: none; border-radius: 12px;
  font: inherit; font-size: 16px; font-weight: 600;
  cursor: pointer;
}
.auth-prompt-dismiss {
  background: none; border: none;
  color: #a3a3a3; font: inherit; font-size: 14px;
  cursor: pointer; padding: 8px;
  -webkit-tap-highlight-color: transparent;
}

/* ── Share drawer ── */
.share-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 310;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}
.share-backdrop.open {
  opacity: 1; visibility: visible; pointer-events: auto;
  transition: opacity 0.3s ease;
}
.share-drawer {
  position: fixed; bottom: 0; left: 0; width: 100%;
  background: #fff; color: #000;
  z-index: 311;
  border-top-left-radius: 20px; border-top-right-radius: 20px;
  transform: translateY(100%);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: transform 0.3s cubic-bezier(0.25,1,0.5,1);
  display: flex; flex-direction: column;
  will-change: transform;
}
.share-drawer.open {
  transform: translateY(0);
  opacity: 1; visibility: visible; pointer-events: auto;
}
.share-handle {
  width: 40px; height: 4px;
  background: #e5e5e5; border-radius: 2px;
  margin: 12px auto;
}
.share-content {
  padding: 16px 20px 32px;
  display: flex; flex-direction: column; gap: 20px;
}
.share-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.share-name {
  flex: 1; min-width: 0;
  font: inherit; font-size: 22px; font-weight: 700; letter-spacing: -0.01em;
  border: none; padding: 0; outline: none;
  color: #111; background: transparent;
  text-overflow: ellipsis;
}
.share-name::placeholder { color: rgba(0,0,0,0.2); }
.share-toggle {
  position: relative;
  display: flex; align-items: center;
  background: #f5f5f5; border-radius: 20px;
  padding: 2px; border: none; cursor: pointer;
  width: 140px; height: 36px; flex-shrink: 0;
}
.share-toggle-opt {
  flex: 1; text-align: center;
  font-size: 13px; font-weight: 600; color: #737373;
  z-index: 2; transition: color 0.2s;
}
.share-toggle-slider {
  position: absolute; top: 2px; bottom: 2px; left: 2px;
  width: calc(50% - 2px);
  background: #fff; border-radius: 18px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  z-index: 1;
  transition: transform 0.25s cubic-bezier(0.4,0,0.2,1);
}
.share-toggle.on .share-toggle-slider { transform: translateX(100%); }
.share-toggle.on .share-toggle-opt:last-of-type { color: #111; }
.share-toggle:not(.on) .share-toggle-opt:first-of-type { color: #111; }
.share-url-row {
  display: none; align-items: center; gap: 10px;
  background: #f5f5f5; border-radius: 10px; padding: 12px 14px;
}
.share-url { flex: 1; font-size: 13px; color: #333; word-break: break-all; }
.share-copy {
  background: none; border: 1px solid rgba(0,0,0,0.18);
  border-radius: 16px; padding: 5px 14px;
  font: inherit; font-size: 13px; color: #333; cursor: pointer; white-space: nowrap;
}
.share-done {
  width: 100%; padding: 14px;
  background: #111; color: #fff;
  border: none; border-radius: 12px;
  font: inherit; font-size: 16px; font-weight: 600; cursor: pointer;
}

/* Edit & Share buttons in detail header */
.saved-detail-edit,
.saved-detail-share {
  width: 36px; height: 36px;
  background: none; border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; flex-shrink: 0;
  color: var(--text-secondary);
  -webkit-tap-highlight-color: transparent;
}

/* ── Brand page ── */
body[data-view="brand"] .screen-brand { display: flex; flex-direction: column; height: 100%; }
body[data-view="request-brand"] .screen-request-brand { display: flex; flex-direction: column; height: calc(100svh - 48px); }
.brand-page { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.brand-page-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  flex-shrink: 0;
}
.brand-page-back {
  width: 36px; height: 36px;
  background: none; border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.brand-page-back path { stroke: var(--text-primary); fill: none; }
.brand-page-name {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand-page-story {
  padding-bottom: 12px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-secondary);
}
.brand-page-story-text {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--text-primary);
  font-size: 13px;
  line-height: 1.4;
}
.brand-page-story-text.expanded {
  -webkit-line-clamp: unset;
}
.brand-page-more {
  background: none; border: none; padding: 0;
  font-size: 12px; color: var(--text-muted);
  cursor: pointer; margin-top: 2px;
  -webkit-tap-highlight-color: transparent;
}
.brand-page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}
.brand-page-meta a {
  color: var(--text-secondary);
  text-decoration: none;
}
.brand-page-loading {
  display: flex;
  justify-content: center;
  padding: 60px 0;
  color: var(--text-muted);
  font-size: 14px;
}

/* brand drawer footer */
.bd-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.bd-ig {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #000;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
}
.bd-ig img { width: 18px; height: 18px; object-fit: contain; }
.bd-explore {
  font-size: 14px;
  font-weight: 600;
  color: #000;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  white-space: nowrap;
}

/* ── Brand drawer ── */
.brand-drawer-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 300;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.3s ease, visibility 0s linear 0.3s;
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}
.brand-drawer-backdrop.open {
  opacity: 1; visibility: visible; pointer-events: auto;
  transition: opacity 0.3s ease;
}
.brand-drawer {
  position: fixed; bottom: 0; left: 0; width: 100%;
  max-height: 60vh; max-height: 60dvh;
  background: #fff; color: #000;
  z-index: 301;
  border-top-left-radius: 20px; border-top-right-radius: 20px;
  transform: translateY(100%);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: transform 0.3s cubic-bezier(0.25,1,0.5,1);
  display: flex; flex-direction: column;
  will-change: transform;
}
.brand-drawer.open {
  transform: translateY(0);
  opacity: 1; visibility: visible; pointer-events: auto;
}
.brand-drawer-handle {
  width: 40px; height: 4px;
  background: #e5e5e5; border-radius: 2px;
  margin: 12px auto;
}
.brand-drawer-content {
  flex: 1; display: flex; flex-direction: column;
  overflow: hidden; min-height: 0;
}
.bd-header { padding: 0 24px 12px; flex-shrink: 0; }
.bd-title { font-size: 24px; font-weight: 700; }
.bd-body-wrap {
  flex: 1; display: flex; flex-direction: column;
  position: relative; overflow: hidden; min-height: 0;
}
.bd-body {
  flex: 1; overflow-y: auto; padding: 0 24px 16px;
  scrollbar-width: none;
}
.bd-body::-webkit-scrollbar { display: none; }
.bd-fade {
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 48px;
  background: linear-gradient(to bottom, transparent, #fff);
  pointer-events: none;
}
.bd-footer {
  padding: 14px 24px 28px; flex-shrink: 0;
  background: #fff; border-top: 1px solid #f0f0f0;
}
.bd-section { margin-bottom: 24px; }
.bd-section h3 {
  font-size: 16px; font-weight: 700;
  color: #737373; margin-bottom: 8px; letter-spacing: -0.01em;
}
.bd-section p { font-size: 15px; line-height: 1.6; color: #171717; }
.bd-story {
  font-size: 17px; line-height: 1.6;
  color: #000; font-weight: 400; letter-spacing: -0.01em;
}
.bd-sentiment { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.bd-sentiment-item {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 15px; line-height: 1.5; color: #171717;
}
.bd-sentiment-dot {
  width: 8px; height: 8px; border-radius: 50%;
  flex-shrink: 0; margin-top: 7px;
}
.bd-sentiment-dot.positive { background: #22c55e; }
.bd-sentiment-dot.neutral { background: #eab308; }
.bd-sentiment-dot.negative { background: #f97316; }

/* Inline brand snippet on product card */
.pc-brand-snippet {
  font-size: 11px;
  color: rgba(255,255,255,0.45);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}
.pc-brand-more {
  font-size: 11px;
  color: rgba(255,255,255,0.55);
  background: none; border: none;
  padding: 0; cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  font: inherit; font-size: 11px;
  -webkit-tap-highlight-color: transparent;
}

/* ── Pulse logo container ── */
#pulse-logo {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s;
}

/* ── Desktop: constrain to 600px and center ── */
@media (min-width: 1200px) {
  body {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
  }

  .bottom-nav,
  .screen-product,
  .auth-prompt-backdrop,
  .auth-prompt,
  .share-backdrop,
  .share-drawer,
  .brand-drawer-backdrop,
  .brand-drawer,
  .wl-picker-backdrop,
  .wl-picker,
  .wl-new-backdrop,
  .wl-new,
  #pulse-logo {
    left: calc(50% - 300px);
    right: calc(50% - 300px);
    width: auto;
    max-width: 600px;
  }
}

/* ── Request a Brand ───────────────────────────────── */
.screen-request-brand {
  padding: 0 20px env(safe-area-inset-bottom);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.screen-request-brand::-webkit-scrollbar { display: none; }
.rb-header {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 0 8px;
  position: sticky; top: 0;
  background: var(--bg); z-index: 2;
}
.rb-pills {
  display: flex; gap: 6px;
  padding: 4px 0 12px;
}
.rb-pill {
  padding: 5px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.15);
  background: none;
  color: rgba(255,255,255,0.4);
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
}
.rb-pill-active {
  background: #fff;
  color: #000;
  border-color: #fff;
}
.rb-form-wrap { padding-bottom: 32px; }
.rb-form { display: flex; flex-direction: column; gap: 20px; }
.rb-field { display: flex; flex-direction: column; gap: 8px; }
.rb-label {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}
.rb-req { color: rgba(255,255,255,0.3); }
.rb-textarea {
  resize: vertical;
  min-height: 72px;
  width: 100%;
  box-sizing: border-box;
  font-family: inherit;
}
.rb-toggle-row { display: flex; gap: 8px; margin-top: 4px; }
.rb-toggle {
  flex: 1;
  padding: 10px 0;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  background: none;
  color: rgba(255,255,255,0.4);
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
}
.rb-toggle-active {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border-color: rgba(255,255,255,0.3);
}
.rb-helper {
  font-size: 12px;
  color: rgba(255,255,255,0.3);
  margin: 0;
}
.rb-success {
  text-align: center;
  padding: 48px 0;
}
.rb-success-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.rb-success-sub {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 24px;
}
.rb-another-btn {
  background: none;
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
}
.rb-list { padding: 8px 0 32px; display: flex; flex-direction: column; gap: 8px; }
.rb-request-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.1);
}
.rb-request-name {
  font-size: 14px;
  color: var(--text-primary);
}
.rb-status {
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 8px;
}
.rb-status-pending { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.4); }
.rb-status-added { background: rgba(74,222,128,0.15); color: #4ade80; }
.rb-status-declined { background: rgba(248,113,113,0.15); color: #f87171; }
