/* LTK / ShopMy / JoyLink inspired storefront + review styles */

:root {
  --bg: #09090b;
  --card: #18181b;
  --card-elevated: #0f172a;
  --text: #f4f4f5;
  --muted: #a1a1aa;
  --accent: #eab308;
  --border: #27272a;
  --radius: 20px;
  --shadow: 0 22px 50px rgba(0, 0, 0, 0.45);
  --gold: #eab308;
  --gold-deep: #ca8a04;
  --yellow: #f59e0b;
  --red: #ff4d6d;
  --cta: #eab308;
  --cta-text: #000000;
  --product-img-bg: #27272a;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.45;
}

.sf-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, #fffdf8 0%, #f7f1e2 100%);
}
.sf-kicker {
  margin: 0;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-weight: 600;
}
.sf-header h1 { margin: 0.2rem 0 0; font-size: 1.65rem; font-weight: 650; }
.sf-sub { color: var(--muted); margin: 0.45rem 0 0; max-width: 40rem; font-size: 0.95rem; }
.sf-upload-link {
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--border);
  padding: 0.65rem 1rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Creator profile hero */
.creator-hero {
  background: #18181b;
  border-bottom: 1px solid #27272a;
  padding: 1.5rem 1.25rem 1.25rem;
  color: #f4f4f5;
}
.creator-hero-inner {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem 1.25rem;
  align-items: center;
}
.creator-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #3f3f46;
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  object-fit: cover;
  padding: 0;
}
.creator-display {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: #f4f4f5;
  background: none;
  -webkit-text-fill-color: #f4f4f5;
  animation: none;
}
.creator-copy { min-width: 0; }
/* Long handles (@maya_style_studio) wrap instead of widening the page on phones. */
.creator-copy h1,
.creator-display { overflow-wrap: anywhere; }
.creator-copy h1 {
  margin: 0.15rem 0 0;
  font-size: clamp(1.25rem, 5.6vw, 1.75rem);
  font-weight: 650;
  color: #ffffff;
  background: none;
  -webkit-text-fill-color: #ffffff;
  animation: none;
}
.creator-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.7rem;
}
.creator-social a {
  color: var(--text);
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 650;
}
.creator-social a:hover { border-color: var(--gold); color: var(--gold); }
.sf-offers {
  max-width: 960px;
  margin: 0.9rem auto 0;
  padding: 0 1.25rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr));
  gap: 0.7rem;
}
.sf-offer {
  background: var(--card);
  border: 1px solid var(--gold);
  border-radius: 16px;
  padding: 0.9rem;
  display: grid;
  gap: 0.35rem;
}
.sf-offer h3 { margin: 0; font-size: 1rem; }
.sf-offer code {
  color: var(--gold);
  font-weight: 750;
  letter-spacing: 0.04em;
}
.sf-offer .sf-pill { justify-self: start; }
.creator-add { align-self: start; }
.creator-view-switch {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}
.creator-view-switch .sf-upload-link.is-active {
  background: #3f3f46;
  color: #ffffff;
  border-color: #52525b;
}
.creator-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-end;
}
.creator-actions .secondary {
  font-size: 0.85rem;
  padding: 0.5rem 0.85rem;
}

/* Owner header actions — solid zinc so they stay visible on dark heroes */
.storefront-page .creator-actions .sf-upload-link,
.storefront-page .creator-view-switch .sf-upload-link,
.review-page .review-header-actions .sf-upload-link,
.sf-header .sf-upload-link {
  background: #27272a !important;
  color: #ffffff !important;
  border: 1px solid #3f3f46 !important;
  -webkit-text-fill-color: #ffffff !important;
  box-shadow: none !important;
}
.storefront-page .creator-view-switch .sf-upload-link.is-active,
.review-page .review-header-actions .sf-upload-link.is-active {
  background: #3f3f46 !important;
  border-color: #52525b !important;
  color: #ffffff !important;
}
.settings-panel {
  max-width: 640px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem 2rem;
}
.settings-form {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.settings-hint {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}

/* One look per row: every look gets the same large card as the latest one. */
.sf-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  padding: 1rem 1.25rem 1.25rem;
  max-width: 960px;
  margin: 0 auto;
}
.sf-hero-feed {
  max-width: 960px;
  margin: 0.85rem auto 0;
  padding: 0 1.25rem;
}
.sf-look-large {
  display: grid;
  grid-template-columns: minmax(160px, 240px) minmax(12rem, 22rem);
  /* A set width, not fit-content: off-screen cards are size-contained
     (content-visibility), and fit-content would shrink them to the placeholder. */
  width: min(100%, calc(240px + 22rem + 1.25rem + 2px));
  gap: 1rem 1.25rem;
  align-items: stretch;
}
.sf-look-large .sf-thumb-wrap > img {
  aspect-ratio: 3 / 4;
}
.sf-look-large .meta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1rem 1.1rem 1.15rem 0;
}
.sf-look-large h3 { font-size: 1.25rem; }
.sf-video-card.is-target {
  box-shadow: 0 0 0 2px #d4af37, 0 16px 36px rgba(0, 0, 0, 0.28);
  border-color: #d4af37;
}
.sf-video-card.is-lazy:not(.is-revealed):not(.is-target) {
  display: none;
}
.sf-video-card {
  content-visibility: auto;
  contain-intrinsic-block-size: auto 420px;
}
.sf-hero-look,
.sf-video-card.is-target {
  content-visibility: visible;
}
.sf-feed-more {
  max-width: 960px;
  margin: 0 auto 1.5rem;
  padding: 0 1.25rem 1.25rem;
  text-align: center;
}
.sf-load-more {
  appearance: none;
  border: 1px solid #3f3f46;
  background: #27272a;
  color: #f4f4f5;
  border-radius: 999px;
  padding: 0.65rem 1.15rem;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}
.sf-load-more[hidden] { display: none; }
@media (max-width: 640px) {
  .sf-look-large {
    grid-template-columns: 1fr;
  }
  .sf-look-large .meta { padding: 0 0.85rem 1rem; }
}
.sf-empty {
  grid-column: 1 / -1;
  padding: 2rem 1rem;
  color: var(--muted);
  text-align: center;
}

.sf-video-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.sf-video-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.sf-thumb-wrap { position: relative; }
.sf-thumb-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  box-shadow: 0 4px 14px rgba(0,0,0,0.18);
  pointer-events: none;
}
.sf-section-head {
  max-width: 960px;
  margin: 0 auto;
  padding: 0.5rem 1.25rem 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
}
.sf-toolbar {
  display: grid;
  gap: 0.65rem;
  min-width: min(100%, 320px);
}
.sf-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.sf-pill {
  appearance: none;
  border: 1px solid var(--border);
  background: rgba(9, 30, 23, 0.72);
  color: #eef6f1;
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}
.sf-pill:hover { border-color: var(--gold); }
.sf-pill.is-active {
  background: var(--accent);
  color: #fff8dc;
  border-color: var(--accent);
}
.sf-search {
  display: grid;
  gap: 0.35rem;
  min-width: min(100%, 240px);
}
.sf-search input {
  width: 100%;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  font: inherit;
  background: rgba(9, 30, 23, 0.72);
  color: #eef6f1;
}
.sf-search input:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.sf-video-card[hidden],
#search-empty[hidden] { display: none !important; }
.sf-section-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 650;
}
.sf-section-sub {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}
.sf-video-card .sf-thumb-wrap > img {
  width: 100%;
  aspect-ratio: 9/16;
  object-fit: cover;
  background: #27272a;
  display: block;
}
.sf-look-preview {
  display: flex;
  flex-flow: row nowrap;
  gap: 0.3rem;
  margin: 0.55rem 0 0;
}
.sf-look-mini {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  object-fit: cover;
  background: #27272a;
  border: 1px solid var(--border);
  flex: 0 0 28px;
}
.sf-look-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin: 0.4rem 0 0;
}
.sf-look-chip {
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #e4e4e7;
  background: rgba(39, 39, 42, 0.92);
  border-radius: 999px;
  padding: 0.15rem 0.45rem;
}
.sf-thumb-badge {
  position: absolute;
  left: 0.65rem;
  bottom: 0.65rem;
  background: rgba(0,0,0,0.62);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
}
/* Source platform: subtle glass chip in the card corner. */
.sf-platform-badge {
  position: absolute;
  top: 0.55rem;
  left: 0.55rem;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  background: rgba(14, 40, 32, 0.62);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(212, 175, 55, 0.38);
  color: #f3efe0;
  box-shadow: 0 0 10px rgba(46, 230, 198, 0.16);
  pointer-events: none;
}
.sf-platform-badge .sf-platform-icon { width: 0.9rem; height: 0.9rem; }
.sf-platform-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.sf-platform-pill .sf-platform-icon { flex: 0 0 auto; opacity: 0.9; }
.sf-platform-pill.is-active {
  box-shadow: 0 0 14px rgba(46, 230, 198, 0.28);
}
.sf-platform-pill[data-empty="1"]:not(.is-active) { opacity: 0.55; }
.sf-platform-pill:focus-visible,
.sf-pill:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.sf-look-delete {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  z-index: 2;
  appearance: none;
  border: 0;
  background: rgba(17, 17, 17, 0.86);
  color: #fff;
  border-radius: 999px;
  padding: 0.35rem 0.65rem;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.02em;
}
.sf-look-delete:hover { background: #8a1f1f; }
.sf-video-card.is-empty {
  border-color: #e8b4b4;
  box-shadow: inset 0 0 0 1px #f4d4d4;
}
.empty-look-badge {
  margin: 0.4rem 0 0;
  color: #8a1f1f;
  font-size: 0.78rem;
  font-weight: 650;
}
.empty-look-tools,
.empty-look-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 0.85rem;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
}
.empty-look-filter input { accent-color: var(--accent); width: 1.05rem; height: 1.05rem; }
.sf-video-card .meta { padding: 0.75rem 0.85rem 0.9rem; }
.sf-video-card h3 { margin: 0; font-size: 0.92rem; font-weight: 600; }
.sf-video-card p { margin: 0.25rem 0 0; color: var(--muted); font-size: 0.82rem; }

.sf-drawer {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(calc(100% - 1.5rem), 760px);
  max-height: min(92vh, 880px);
  background: #18181b;
  color: #f4f4f5;
  border: 1px solid #27272a;
  box-shadow: 0 24px 64px rgba(0,0,0,0.55);
  border-radius: 20px;
  z-index: 100;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0 1.1rem 1.4rem;
  display: flex;
  flex-direction: column;
  -webkit-overflow-scrolling: touch;
}
.sf-look-modal-body {
  display: grid;
  grid-template-columns: minmax(140px, 220px) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}
.sf-look-modal-details { min-width: 0; }
.sf-look-primary {
  margin: 0 0 0.75rem;
}
.sf-look-lead {
  margin: 0 0 0.55rem;
  font-weight: 600;
}
/* `display: flex` outranks the UA rule for [hidden], so without this the
   drawer stays on screen permanently with an empty black player. */
.sf-drawer[hidden] {
  display: none;
}
.sf-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 0 0.5rem;
  position: sticky;
  top: 0;
  background: #18181b;
  z-index: 2;
  border-bottom: 1px solid #27272a;
  margin-bottom: 0.75rem;
}
.sf-drawer-title {
  margin: 0.15rem 0 0;
  font-size: 1.15rem;
  font-weight: 650;
  color: #ffffff;
}
.sf-drawer-close {
  border: 0;
  background: transparent;
  color: #f4f4f5;
  font-size: 1.85rem;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  flex-shrink: 0;
}
.sf-empty-drawer {
  color: var(--muted);
  font-size: 0.92rem;
  padding: 1rem 0;
}
.sf-drawer-count {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: capitalize;
}
.sf-drawer-video {
  border-radius: 14px;
  overflow: hidden;
  background: #111;
  aspect-ratio: 9 / 16;
  max-height: 240px;
}
.sf-drawer-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #111;
}
/* `display: block` above outranks [hidden]; without this the hidden <video>
   stays on screen as a black box over the embedded player. */
.sf-drawer-video video[hidden],
.sf-drawer-video .sf-look-embed[hidden],
.sf-drawer-video .sf-look-poster[hidden] { display: none; }
/* Social embeds (TikTok / Reels / Shorts) need a real portrait player, not a thumbnail slot. */
.sf-look-modal-body.has-embed { grid-template-columns: minmax(240px, 325px) minmax(0, 1fr); }
.sf-drawer-video.has-embed {
  aspect-ratio: auto;
  max-height: none;
  height: min(580px, 72vh);
}
@media (max-width: 640px) {
  .sf-look-modal-body.has-embed { grid-template-columns: 1fr; }
  .sf-drawer-video.has-embed { width: min(100%, 325px); max-height: none; height: min(520px, 70vh); }
}
.sf-look-embed,
.review-poster {
  width: 100%;
  height: 100%;
  min-height: 220px;
  border: 0;
  background: #111;
  object-fit: cover;
}
.sf-look-poster {
  width: 100%;
  height: 100%;
  min-height: 220px;
  max-height: 240px;
  display: block;
  object-fit: cover;
  background: #111;
  border-radius: 14px;
}
.sf-look-embed iframe {
  width: 100%;
  height: 100%;
  min-height: 220px;
  border: 0;
}
.sf-video-fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  min-height: 160px;
  aspect-ratio: 9 / 16;
  max-height: 240px;
  border-radius: 14px;
  background: #27272a;
  color: #a1a1aa;
  text-align: center;
  padding: 1rem;
}
.sf-video-fallback p {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 550;
}

.sf-drawer-products {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0.75rem 0 0;
  padding: 0.25rem 0 0.85rem;
  overflow: visible;
}
.sf-drawer-products::-webkit-scrollbar {
  height: 5px;
}
.sf-drawer-products::-webkit-scrollbar-thumb {
  background: rgba(244, 244, 245, 0.22);
  border-radius: 999px;
}
.sf-empty-drawer {
  grid-column: 1 / -1;
}

.sf-product {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 0.75rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid #27272a;
  align-items: center;
  color: #f4f4f5;
}
.sf-drawer-products .sf-product {
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.55rem;
  padding: 0.75rem;
  border: 1px solid #27272a;
  border-radius: 14px;
  background: #18181b;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  color: #f4f4f5;
}
.sf-drawer-products .sf-product-media {
  width: 100%;
  aspect-ratio: 4 / 5;
  height: auto;
  background: #27272a;
  border-radius: 10px;
  overflow: hidden;
}
.sf-drawer-products .sf-product-img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 10px;
  background: #27272a;
  object-fit: cover;
}
.sf-drawer-products .sf-shop-btn {
  width: 100%;
  text-align: center;
}
.sf-drawer-products .sf-product h3 {
  color: #ffffff;
  font-weight: 650;
}
.sf-drawer-products .sf-product .sf-price {
  color: #a1a1aa;
}
.sf-drawer-products .sf-product .sf-slot {
  color: #a1a1aa;
}
.sf-product-media {
  width: 70px;
  height: 70px;
  aspect-ratio: 1 / 1;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 8px;
  background: #27272a;
}
.sf-product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  background: #27272a;
  display: block;
}
.sf-product-copy { min-width: 0; }
.sf-product-copy .sf-shop-btn {
  margin-top: 0.45rem;
  font-size: 0.82rem;
  padding: 0.45rem 0.75rem;
  /* Long store names ("FlowerDelivery.com") wrap on phones instead of being clipped. */
  max-width: 100%;
  overflow-wrap: anywhere;
  touch-action: manipulation;
}
.sf-slot {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #a1a1aa;
  font-weight: 600;
}
.sf-product h3 { margin: 0.15rem 0; font-size: 0.95rem; line-height: 1.35; color: #ffffff; }
.sf-price { margin: 0; color: #a1a1aa; font-size: 0.85rem; }

.sf-shop-btn {
  display: inline-block;
  margin-top: 0.55rem;
  background: #eab308;
  color: #000000;
  text-decoration: none;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  border: 1px solid #ca8a04;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(234, 179, 8, 0.28);
}
.sf-shop-btn:hover {
  background: #f59e0b;
  color: #000000;
}
.sf-shop-btn.secondary {
  background: transparent;
  color: #f4f4f5;
  border: 1px solid #27272a;
  box-shadow: none;
}
.sf-shop-btn.secondary:hover {
  border-color: #eab308;
  color: #eab308;
  background: transparent;
}
.sf-shop-btn.danger {
  background: var(--red, #c8102e);
  border-color: var(--red, #c8102e);
  color: #fff;
  box-shadow: none;
}

.sf-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.62);
  z-index: 90;
}
body.drawer-open { overflow: hidden; }

/* Review page */
.review-page .review-header { align-items: center; }
.review-header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.review-grid {
  display: grid;
  grid-template-columns: minmax(240px, 360px) minmax(0, 1fr);
  gap: 1.25rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  align-items: start;
}
.review-label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 600;
  margin: 0 0 0.5rem;
}
.review-video {
  border-radius: 14px;
  overflow: hidden;
  background: #111;
  aspect-ratio: 9 / 16;
  max-height: 520px;
}
.review-video video,
#review-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #111;
}
.review-items-panel { min-width: 0; }
.review-items-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  margin-bottom: 0.65rem;
}
.review-items-heading .review-label { margin: 0; }
.review-add-item { flex-shrink: 0; }
.review-items-footer {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem;
  margin-top: 0.9rem;
}
.review-items-footer .review-add-item { min-height: 2.75rem; padding: 0.6rem 1.2rem; }
.review-add-status { font-size: 0.82rem; color: #a1a1aa; margin-left: 0.5rem; }
.review-items { display: flex; flex-direction: column; gap: 0.85rem; }

.review-item {
  background: #18181b;
  border: 1px solid #27272a;
  border-radius: 14px;
  padding: 1rem;
  display: grid;
  /* One column, top to bottom: store, find, link, then title / price / photo. */
  grid-template-columns: minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
  box-shadow: 0 8px 24px rgba(0,0,0,0.28);
  color: #f4f4f5;
  pointer-events: auto;
}
.review-item-media { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; min-width: 0; }
.review-item-head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.review-item-tools { display: inline-flex; align-items: center; gap: 0.4rem; margin-left: auto; }
.review-move { display: inline-flex; gap: 0.3rem; }
/* Delete: frees the slot for a new product (Hide keeps it as a draft). Red, but quiet
   until pointed at, so it is never mistaken for the page's main action. */
.review-delete-product {
  display: inline-flex; align-items: center; gap: 0.35rem;
  min-height: 2.25rem; padding: 0 0.7rem; border-radius: 8px;
  border: 1px solid rgba(248, 113, 113, 0.55); background: rgba(127, 29, 29, 0.28);
  color: #fecaca; font: inherit; font-size: 0.8rem; font-weight: 700; line-height: 1;
  cursor: pointer; white-space: nowrap; touch-action: manipulation;
}
.review-delete-product svg { flex: none; }
.review-delete-product:hover, .review-delete-product:focus-visible { background: #7f1d1d; border-color: #f87171; color: #fff; }
.review-delete-product:disabled { opacity: 0.55; cursor: progress; }
.review-move-btn {
  min-width: 2.25rem; min-height: 2.25rem; border-radius: 8px; border: 1px solid #3f3f46;
  background: #27272a; color: #f4f4f5; font-size: 1rem; cursor: pointer;
}
.review-move-btn:hover, .review-move-btn:focus-visible { border-color: #eab308; }
.review-item:first-of-type .review-move-btn[data-move="up"],
.review-item:last-of-type .review-move-btn[data-move="down"] { opacity: 0.35; }
.review-step-store .store-type { width: 100%; }
.review-step-details {
  display: grid;
  gap: 0.75rem;
  padding: 0.85rem;
  border-radius: 12px;
  border: 1px solid #27272a;
  background: rgba(255, 255, 255, 0.025);
}
.review-item img,
.review-preview-img,
.review-catalog-img,
.review-crop-img {
  width: 132px;
  height: 132px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
  background: #27272a;
  border: 1px solid #27272a;
}
.review-crop-secondary {
  width: 64px;
  height: 64px;
  align-self: center;
  opacity: 0.92;
}
.sf-product-images {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex-shrink: 0;
}
.sf-catalog-img {
  width: 96px;
  height: 96px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
  background: #27272a;
  border: 1px solid #27272a;
}
.sf-crop-img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #27272a;
  align-self: center;
}
.review-img-placeholder {
  width: 132px;
  height: 132px;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  background: #27272a;
  border: 1px dashed #3f3f46;
  display: grid;
  place-items: center;
  color: #a1a1aa;
  font-size: 0.75rem;
  font-weight: 600;
}
.review-slot {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #a1a1aa;
  font-weight: 600;
  text-align: center;
}
.review-item-fields {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: auto;
}
.review-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: #f4f4f5;
}
.review-toggle input { width: 1.05rem; height: 1.05rem; accent-color: #eab308; }
.review-toggle-hint { font-weight: 400; color: #a1a1aa; font-size: 0.8rem; }
.review-item.is-hidden-item { opacity: 0.6; border-style: dashed; }
.cj-search { margin-top: 0.6rem; padding: 0.7rem 0.8rem; border: 1px dashed #eab308; border-radius: 10px; display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; }
.cj-search-note { margin: 0; flex: 1 1 16rem; font-size: 0.85rem; color: #fcd34d; line-height: 1.4; }
.cj-search-open { flex: 0 0 auto; }

/* CJ TikTok Shop catalog modal */
body.cj-modal-open { overflow: hidden; }
.cj-modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 1.5rem; }
.cj-modal[hidden] { display: none; }
.cj-modal-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.72); }
.cj-modal-dialog { position: relative; width: min(960px, 100%); height: min(88vh, 900px); max-height: min(88vh, 900px); display: flex; flex-direction: column;
  background: #18181b; color: #f4f4f5; border: 1px solid #3f3f46; border-radius: 18px; box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5); overflow: hidden; }
.cj-modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; padding: 1.1rem 1.3rem 0.4rem; }
.cj-modal-kicker { margin: 0; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: #eab308; font-weight: 700; }
.cj-modal-head h2 { margin: 0.2rem 0 0; font-size: 1.25rem; color: #f4f4f5; background: none; -webkit-text-fill-color: currentColor; }
.cj-modal-close { background: none; border: 0; color: #a1a1aa; font-size: 1.8rem; line-height: 1; cursor: pointer; padding: 0 0.2rem; }
.cj-modal-close:hover { color: #f4f4f5; }
.cj-modal-search { display: flex; gap: 0.6rem; padding: 0.6rem 1.3rem; }
.cj-modal-q { flex: 1 1 auto; min-width: 0; font-size: 1rem; padding: 0.75rem 0.95rem; border-radius: 12px; border: 1px solid #52525b; background: #0f172a; color: #f4f4f5; }
.cj-modal-q:focus { outline: 2px solid #eab308; outline-offset: 1px; }
.cj-modal-status { margin: 0; padding: 0.2rem 1.3rem 0.6rem; font-size: 0.88rem; color: #a1a1aa; min-height: 1.2em; }
.cj-modal-results { flex: 1 1 auto; min-height: 0; align-content: start; overflow-y: auto; padding: 0.4rem 1.3rem 1.3rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(190px, 100%), 1fr)); gap: 1rem; }
/* Opens at full size (fixed height above) and fades/scales in; no collapsed first frame. */
.cj-modal:not([hidden]) .cj-modal-backdrop { animation: cj-fade 160ms ease-out; }
.cj-modal:not([hidden]) .cj-modal-dialog { animation: cj-rise 180ms ease-out; }
@keyframes cj-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes cj-rise { from { opacity: 0; transform: translateY(8px) scale(0.985); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .cj-modal:not([hidden]) .cj-modal-backdrop,
  .cj-modal:not([hidden]) .cj-modal-dialog { animation: none; }
}
/* Placeholder cards while the catalog loads, so results do not shift the layout. */
.cj-card.is-loading { pointer-events: none; }
.cj-card.is-loading .cj-card-media,
.cj-card.is-loading .cj-skel { background: #27272a; border-radius: 8px; }
.cj-card.is-loading .cj-skel { height: 0.9rem; }
.cj-card.is-loading .cj-skel.short { width: 45%; }
.cj-card.is-loading .cj-skel.button { height: 2.4rem; margin-top: auto; border-radius: 999px; }
.cj-card { display: flex; flex-direction: column; gap: 0.5rem; background: #0f0f12; border: 1px solid #27272a; border-radius: 14px; padding: 0.7rem; }
.cj-card-media { aspect-ratio: 1 / 1; border-radius: 10px; overflow: hidden; background: #27272a; display: flex; align-items: center; justify-content: center; }
/* The whole feed photo, scaled without cropping or stretching (white like store photos). */
.cj-card-media img { width: 100%; height: 100%; object-fit: contain; display: block; background: #fff; image-rendering: auto; }
.cj-modal-more { display: contents; }
.cj-modal-sentinel { grid-column: 1 / -1; height: 1px; }
.cj-card-title { margin: 0; color: #f4f4f5; background: none; -webkit-text-fill-color: currentColor; font-size: 0.92rem; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cj-card-price { margin: 0; font-size: 1rem; font-weight: 700; color: #fcd34d; }
.cj-card-price.is-empty { font-size: 0.82rem; font-weight: 500; color: #a1a1aa; }
.cj-card-use { margin-top: auto; width: 100%; }
@media (max-width: 640px) {
  .cj-modal { padding: 0; }
  .cj-modal-dialog { width: 100%; max-height: 100%; height: 100%; border-radius: 0; }
  .cj-modal-results { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.7rem; padding: 0.4rem 0.9rem 1rem; }
  .cj-modal-head, .cj-modal-search { padding-left: 0.9rem; padding-right: 0.9rem; }
  .cj-modal-status { padding-left: 0.9rem; padding-right: 0.9rem; }
}
.review-field { min-width: 0; }
.review-field .review-label {
  color: #a1a1aa;
}
.review-field input[type=text],
.review-field input.title,
.review-field input.query,
.review-field input.product-url,
.review-field input.image-url,
.review-field input.price,
.review-field select.store-type {
  width: 100%;
  min-width: 0;
  padding: 0.65rem 0.75rem;
  border: 1px solid #27272a;
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: inherit;
  color: #f4f4f5;
  background-color: #0f172a;
  caret-color: #f4f4f5;
  -webkit-text-fill-color: #f4f4f5;
  pointer-events: auto;
}
.review-field input[type=text]::placeholder,
.review-field input.title::placeholder,
.review-field input.query::placeholder,
.review-field input.product-url::placeholder,
.review-field input.image-url::placeholder,
.review-field input.price::placeholder {
  color: #71717a;
  -webkit-text-fill-color: #71717a;
  opacity: 1;
}
.review-field input[type=text]:focus {
  outline: none;
  border-color: #eab308;
  box-shadow: 0 0 0 3px rgba(234, 179, 8, 0.18);
  color: #ffffff;
  background-color: #0f172a;
}
/* Price with its "Show price" switch beside it; the switch wraps under it on narrow cards. */
.review-price-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.9rem; }
.review-price-row input.price { flex: none; width: 140px; }
.review-price-note { margin: 0.35rem 0 0; color: #a1a1aa; font-size: 0.78rem; line-height: 1.4; }
.review-item.is-price-hidden .review-price-row input.price { opacity: 0.55; }
.review-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 44px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #f4f4f5;
  cursor: pointer;
}
/* The real checkbox (role="switch") sits invisibly on the track: taps, keys and
   screen readers use it; the track shows its state. */
.review-switch input {
  position: absolute;
  left: 0;
  top: 50%;
  width: 2.6rem;
  height: 1.5rem;
  margin: 0;
  transform: translateY(-50%);
  opacity: 0;
  cursor: pointer;
}
.review-switch-track {
  position: relative;
  flex: none;
  width: 2.6rem;
  height: 1.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.review-switch-track::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0.15rem;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  background: #f4f4f5;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
  transform: translateY(-50%);
  transition: transform 0.2s ease, background-color 0.2s ease;
}
.review-switch input:checked + .review-switch-track { background: #2ee6c6; border-color: #2ee6c6; }
.review-switch input:checked + .review-switch-track::before { transform: translate(1.1rem, -50%); background: #04241f; }
.review-switch input:focus-visible + .review-switch-track { outline: 2px solid #f0d56a; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  .review-switch-track,
  .review-switch-track::before { transition: none; }
}
.review-query-row {
  display: flex;
  gap: 0.55rem;
  align-items: stretch;
}
.review-query-row .query {
  flex: 1;
  min-width: 0;
}
.review-find-shop {
  flex-shrink: 0;
  margin-top: 0;
  white-space: nowrap;
  align-self: stretch;
  display: inline-flex;
  align-items: center;
}
.review-find-shop:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}
.review-url-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.55rem;
  align-items: center;
}
.review-url-row .product-url {
  flex: 1 1 12rem;
  min-width: 0;
}
/* The product link is the one field every item needs, and on the dark card it was easy
   to miss: Tapixy gold border and glow, a lighter fill, a brighter label and placeholder.
   Once a link is in, it calms down (the empty ones stand out); a refused link is red.
   type="url", so the generic input[type=text]:focus ring above never applied to it. */
.review-step-link > .review-label { color: #f0d56a; font-weight: 800; letter-spacing: 0.06em; }
.review-field input.product-url {
  min-height: 48px;
  padding: 0.7rem 0.85rem;
  border: 2px solid rgba(234, 179, 8, 0.85);
  background-color: #1a2438;
  font-size: 16px; /* also keeps iOS from zooming in on tap */
  box-shadow: 0 0 0 3px rgba(234, 179, 8, 0.14), 0 0 18px rgba(234, 179, 8, 0.22);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.review-field input.product-url::placeholder { color: #e6d38a; -webkit-text-fill-color: #e6d38a; }
.review-field input.product-url:focus,
.review-field input.product-url:focus-visible {
  outline: none;
  border-color: #facc15;
  background-color: #1f2b44;
  color: #ffffff;
  box-shadow: 0 0 0 4px rgba(250, 204, 21, 0.38), 0 0 26px rgba(250, 204, 21, 0.35);
}
.review-field input.product-url:not(:placeholder-shown):not(:focus) {
  border-color: rgba(234, 179, 8, 0.45);
  background-color: #0f172a;
  box-shadow: none;
}
.review-field input.product-url[aria-invalid="true"],
.review-field input.product-url[aria-invalid="true"]:focus {
  border-color: #f87171;
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.3);
}
@media (prefers-reduced-motion: reduce) {
  .review-field input.product-url { transition: none; }
}
.review-store-searches {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.55rem;
}
.review-store-searches {
  align-items: center;
}
.review-store-searches .review-find-store {
  min-height: 2.35rem;
}
/* "Store app opened instead?" help: only phones and tablets hand store links to apps. */
.app-link-tip { display: none; }
@media (pointer: coarse), (any-pointer: coarse) {
  .app-link-tip {
    display: block;
    margin-top: 0.6rem;
    padding: 0.15rem 0.85rem;
    border: 1px solid rgba(240, 213, 106, 0.35);
    border-radius: 12px;
    background: rgba(240, 213, 106, 0.07);
    color: #e7ecea;
    font-size: 0.9rem;
    line-height: 1.45;
  }
  .app-link-tip summary {
    min-height: 44px;
    display: flex;
    align-items: center;
    color: #f0d56a;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
  }
  .app-link-tip summary::-webkit-details-marker { display: none; }
  .app-link-tip summary::before { content: "\24D8"; margin-right: 0.45rem; font-weight: 400; }
  .app-link-tip ol { margin: 0 0 0.75rem; padding-left: 1.2rem; }
  .app-link-tip li + li { margin-top: 0.4rem; }
  .app-link-tip strong { color: #fff4e0; }
  .stores-hero .app-link-tip { max-width: 40rem; margin-top: 1rem; }
}
.review-browse-stores {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  min-height: 2.35rem;
  padding: 0 0.4rem;
  color: #f0d56a;
  font-size: 0.88rem;
  font-weight: 700;
}
.review-image-upload {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  min-height: 2.2rem;
  margin-top: 0.55rem;
}
.product-url-status {
  /* Own line under the input, so every card's URL field is the same width. */
  flex: 1 0 100%;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
}
.product-url-status.is-saved {
  color: #eab308;
}
/* Errors take their own full-width line under the input instead of squeezing it. */
.product-url-status.is-error {
  min-width: 0;
  color: #f87171;
  font-weight: 500;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.product-url-status:empty { display: none; }
/* The price input keeps its 140px; its "Show price" switch and note use the rest. */
.review-field-inline { display: grid; grid-template-columns: minmax(0, 1fr); }

.review-actions {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}
.review-status { margin: 0; color: var(--muted); font-size: 0.9rem; width: 100%; }

@media (max-width: 860px) {
  .creator-hero-inner {
    grid-template-columns: auto 1fr;
  }
  .creator-actions,
  .creator-add {
    grid-column: 1 / -1;
    justify-self: start;
    align-items: flex-start;
  }
  .review-grid { grid-template-columns: 1fr; }
  .review-item {
    /* minmax(0, 1fr): the photo/buttons row must never widen the card past the screen. */
    grid-template-columns: minmax(0, 1fr);
  }
  .review-item-media {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    min-width: 0;
  }
  .review-item img {
    width: 108px;
    height: 108px;
  }
  .review-slot { text-align: left; }
  .sf-drawer {
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    transform: none;
    width: 100%;
    max-height: 92vh;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -8px 40px rgba(0,0,0,0.18);
  }
  .sf-look-modal-body {
    grid-template-columns: 1fr;
  }
  .sf-drawer-video {
    max-height: 280px;
    margin: 0 auto;
    width: min(100%, 220px);
  }
  .sf-header { flex-direction: column; align-items: stretch; }
  .bio-link-banner {
    grid-template-columns: 1fr;
    justify-items: start;
  }
  .sf-drawer-products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@supports (-webkit-touch-callout: none) {
  .sf-drawer-products {
    -webkit-overflow-scrolling: touch;
  }
}

body.storefront-page,
body.legal-page,
body.dashboard-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.sf-site-footer {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.25rem 1rem;
}
.sf-auth-nav {
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 0.5rem;
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.85rem;
}
.sf-auth-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.sf-auth-nav a:hover { color: var(--text); border-bottom-color: var(--border); }

.auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 0;
  background: var(--bg);
}
.auth-card {
  width: min(calc(100% - 3rem), 420px);
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  margin: auto;
  background: var(--card);
  border: 1px solid var(--gold, #d4af37);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem 1.75rem;
}
.auth-card h1 { margin: 0.25rem 0 0; font-size: 1.8rem; }
.auth-form { display: grid; gap: 0.65rem; margin-top: 1.25rem; }
.auth-form .review-label { margin-top: 0.35rem; }
/* "Remember me": a full-row, 44px touch target that stays aligned on iOS/iPadOS. */
.auth-remember {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 44px;
  margin-top: 0.2rem;
  cursor: pointer;
  font-size: 0.95rem;
  line-height: 1.3;
  -webkit-tap-highlight-color: transparent;
}
.auth-remember input {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin: 0;
  accent-color: #2ee6c6;
  cursor: pointer;
}
.auth-remember small { display: block; color: #9bb5ab; font-size: 0.8rem; }
.auth-remember input:focus-visible { outline: 2px solid #2ee6c6; outline-offset: 3px; }
.auth-submit { width: 100%; text-align: center; margin-top: 0.5rem; }
.auth-switch { margin: 1.25rem 0 0; color: var(--muted); font-size: 0.92rem; }
.auth-switch a { color: var(--accent); }
.auth-error,
.auth-notice {
  margin: 1rem 0 0;
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  font-size: 0.9rem;
  max-width: 100%;
  box-sizing: border-box;
  overflow-wrap: anywhere;
  word-break: break-all;
  overflow-x: hidden;
}
.auth-error {
  background: #fff1f0;
  color: #9b2c2c;
}
.auth-notice {
  background: rgba(46, 230, 198, 0.14);
  color: #127a68;
}
.auth-url { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.88rem; }
.field-error { margin: 0; min-height: 0; color: #ffb4c0; font-size: 0.82rem; }
/* "We formatted your username to: …" under a username field (username-format.js). */
.field-hint { margin: 0; color: #9fe9d8; font-size: 0.82rem; line-height: 1.4; overflow-wrap: anywhere; }
.field-hint[hidden] { display: none; }
.field-error:empty { display: none; }
/* "✓ name is available" from the live check (auth-form.js). */
.field-error.is-ok { color: #9fe9d8; }
/* What the username is for, always shown above the field. */
.field-help { margin: -2px 0 2px; color: var(--muted); font-size: 0.82rem; line-height: 1.4; overflow-wrap: anywhere; }
.auth-submit.is-loading,
.settings-form button.is-loading { opacity: 0.72; cursor: progress; }
input[aria-invalid="true"] { border-color: #ff4d6d; }
.url-input {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  font: inherit;
  background: #fff;
}
.url-input:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
/* Show / hide password: see brand.css (.password-field, .password-toggle). */

.dashboard-page { background: var(--bg); min-height: 100vh; }
.dashboard-header-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; align-items: center; }
.dashboard-look.is-empty { border-color: #e8b4b4; }
.dashboard-look[hidden] { display: none !important; }
.dashboard-panel {
  /* Fill the row (minus any side margins) up to the cap: in a flex-column body an
     auto-width panel with auto margins shrink-wraps to its widest table and pushes
     past a phone screen instead of letting the table scroll. */
  width: -webkit-fill-available;
  width: -moz-available;
  width: stretch;
  min-width: 0;
  box-sizing: border-box;
  max-width: 860px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem 0.25rem;
}
.dashboard-link-row {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 0.65rem;
}
.dashboard-link-row code {
  flex: 1;
  min-width: 12rem;
  padding: 0.7rem 0.85rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 0.92rem;
}
.dashboard-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.dashboard-looks { display: grid; gap: 0.75rem; padding-bottom: 1.5rem; }
.dashboard-look {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem 1rem;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
}
.dashboard-look h3 { margin: 0; font-size: 1rem; }
.dashboard-look p { margin: 0.25rem 0 0; color: var(--muted); font-size: 0.88rem; }
.dashboard-look-actions { display: flex; gap: 0.5rem; }
.bio-link-banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.25rem;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-top: 1.25rem;
  padding: 1.25rem 1.35rem 1.35rem;
}
.bio-link-banner h2 { margin: 0.2rem 0 0; font-size: 1.35rem; }
.bio-qr {
  margin: 0;
  text-align: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 0.75rem;
}
.bio-qr svg { display: block; width: 148px; height: 148px; }
.bio-qr figcaption {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.75rem;
}
.dashboard-look-share {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  margin-top: 0.7rem;
}
.dashboard-look-share code {
  flex: 1 1 12rem;
  padding: 0.45rem 0.6rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.78rem;
  overflow-wrap: anywhere;
}
.site-footer {
  margin-top: auto;
  border-top: 3px solid var(--gold, #d4af37);
  background: linear-gradient(180deg, #0a6b76 0%, #005f6a 55%, #04343a 100%);
  padding: 1.15rem 1.5rem 1.35rem;
}
.site-footer-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}
.site-footer-copy {
  margin: 0;
  color: #f7efd0;
  font-size: 0.8125rem;
  letter-spacing: 0.01em;
}
.site-footer-contact {
  max-width: 36rem;
  margin: 0;
  padding-left: 6rem;
  color: rgba(247, 239, 208, 0.78);
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.45;
}
.site-footer-contact a,
a.mailto-link,
a.text-yellow-400,
a[href^="mailto:"] {
  color: #fcd116;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  transition: color 0.2s ease, opacity 0.2s ease;
}
.site-footer-contact a:hover,
a.mailto-link:hover,
a.text-yellow-400:hover,
a[href^="mailto:"]:hover {
  color: #fbbf24;
  opacity: 0.8;
}
.site-footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
}
.site-footer-nav a {
  color: var(--yellow, #fcd116);
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 700;
  border-bottom: 1px solid transparent;
}
.site-footer-nav a:hover,
.site-footer-nav a:focus-visible {
  border-bottom-color: var(--yellow, #fcd116);
  color: #fff6c4;
}
.site-footer-affiliate {
  max-width: 36rem;
  margin: 0;
  padding-left: 6rem;
  color: rgba(247, 239, 208, 0.48);
  font-size: 0.72rem;
  font-weight: 400;
  line-height: 1.45;
}
.legal-page .legal-doc {
  max-width: 760px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem 0;
  flex: 1;
}
.legal-page .legal-doc h2 { margin: 1.5rem 0 0.5rem; font-size: 1.1rem; }
.legal-page .legal-doc p,
.legal-page .legal-doc li { color: var(--text); line-height: 1.55; }
/* Long legal words and lists stay inside a phone screen; bullets breathe. */
.legal-page .legal-doc { overflow-wrap: break-word; }
.legal-page .legal-doc ul { padding-left: 1.25rem; }
.legal-page .legal-doc li + li { margin-top: 0.45rem; }
/* A link to a section (/terms#account-suspension) lands below the sticky site header
   (about 98px tall on phones, 142px on desktop). */
.legal-page .legal-doc h2[id] { scroll-margin-top: 7rem; }
@media (min-width: 761px) {
  .legal-page .legal-doc h2[id] { scroll-margin-top: 10rem; }
}
.legal-updated { color: var(--muted); font-size: 0.88rem; }
@media (max-width: 640px) {
  .site-footer-inner { flex-direction: column; align-items: flex-start; }
  .site-footer-affiliate,
  .site-footer-contact { padding-left: 0; max-width: 100%; }
}

.dashboard-look-actions a,
.dashboard-look-actions button,
.dash-look-action {
  appearance: none;
  -webkit-appearance: none;
  text-decoration: none;
  border: 1px solid #3f3f46 !important;
  background: #27272a !important;
  color: #f4f4f5 !important;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}
.earnings-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 0.75rem;
}
.earnings-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
}
.earnings-value {
  margin: 0.35rem 0 0;
  font-size: 1.65rem;
  font-weight: 650;
}
.earnings-disclosure {
  margin: 0.85rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  max-width: 40rem;
}
.earnings-table-wrap { overflow-x: auto; margin: 0.85rem 0 1.25rem; }
.earnings-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 0.9rem;
}
.earnings-table th,
.earnings-table td {
  text-align: left;
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid var(--border);
}
.earnings-table th {
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.earnings-status {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: #efeae3;
  font-size: 0.75rem;
  font-weight: 650;
  text-transform: capitalize;
}
.earnings-status.cleared { background: #e7f3ea; color: #005f6a; }
.earnings-status.paid { background: #fff6d6; color: #8a6a00; }
.admin-upload-form { margin: 0.85rem 0 1.25rem; }
.payout-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}
.payout-switch input { width: 1.1rem; height: 1.1rem; accent-color: var(--accent); }
.payout-switch input:disabled { cursor: not-allowed; opacity: 0.45; }
.warning-badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: #fde8e8;
  color: #8a1f1f;
  font-size: 0.75rem;
  font-weight: 700;
}
.approval-hold { background: #fdf6f4; }
.flagged-metric { border-color: #e8b4b4; }
.analytics-cards { margin-bottom: 0.25rem; }
@media (max-width: 720px) {
  .earnings-cards { grid-template-columns: 1fr; }
}

/* ── Public product cards: beat brand.css gradient / light overrides ── */
.storefront-page .sf-drawer,
.storefront-page .sf-drawer-header {
  background: #18181b !important;
  color: #f4f4f5 !important;
  border-color: #27272a !important;
}
.storefront-page .sf-drawer-products .sf-product,
.storefront-page .sf-product {
  background: #18181b !important;
  border-color: #27272a !important;
  color: #f4f4f5 !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35) !important;
}
.storefront-page .sf-product h3,
.storefront-page .sf-drawer-products .sf-product h3,
.storefront-page .sf-drawer-title,
.storefront-page .sf-video-card h3,
.storefront-page .sf-look-lead {
  background: none !important;
  background-image: none !important;
  -webkit-background-clip: unset !important;
  background-clip: unset !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  animation: none !important;
}
.storefront-page .sf-product .sf-price,
.storefront-page .sf-product .sf-slot,
.storefront-page .sf-drawer-count {
  color: #a1a1aa !important;
  -webkit-text-fill-color: #a1a1aa !important;
}
.storefront-page .sf-shop-btn:not(.secondary):not(.danger),
.review-page .sf-shop-btn:not(.secondary):not(.danger) {
  background: #eab308 !important;
  color: #000000 !important;
  -webkit-text-fill-color: #000000 !important;
  border-color: #ca8a04 !important;
  box-shadow: 0 6px 16px rgba(234, 179, 8, 0.28) !important;
}
.storefront-page .sf-shop-btn:not(.secondary):not(.danger)::after,
.review-page .sf-shop-btn:not(.secondary):not(.danger)::after {
  display: none !important;
}
.storefront-page .sf-look-mini {
  background: #27272a !important;
  border-color: #3f3f46 !important;
  object-fit: cover;
}
.review-page .sf-header {
  background: #18181b !important;
  border-bottom: 1px solid #27272a !important;
  color: #f4f4f5 !important;
}
.review-page .sf-header h1,
.review-page .sf-kicker,
.review-page .sf-sub {
  background: none !important;
  -webkit-text-fill-color: inherit !important;
  animation: none !important;
}
.review-page .sf-header h1 {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}
.review-page .sf-kicker,
.review-page .sf-sub {
  color: #a1a1aa !important;
  -webkit-text-fill-color: #a1a1aa !important;
}

.needs-image { outline: 2px solid #e11d48; outline-offset: 2px; border-radius: 8px; }

/* Passkey sign-in on the login card. */
.passkey-login { display: grid; gap: 0.6rem; margin-top: 0.4rem; }
.passkey-login[hidden] { display: none; }
.auth-or {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0.2rem 0 0;
  color: #9bb5ab;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.auth-or::before,
.auth-or::after { content: ""; flex: 1; height: 1px; background: rgba(212, 175, 55, 0.3); }
.passkey-button { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; }
.code-input { letter-spacing: 0.3em; font-variant-numeric: tabular-nums; }

/* Look editor: this look's own link */
.review-look-share-panel { margin: 0 0 1rem; padding: 0.85rem 1rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); }
.review-look-share-panel .dashboard-look-share { margin-top: 0.35rem; }
.review-look-share-panel code.look-deep-link { flex: 1 1 12rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; overflow-wrap: normal; user-select: all; }
.review-look-share-panel .sf-section-sub { margin: 0.45rem 0 0; }
.look-copy-btn.is-copied { background: #15803d; border-color: #15803d; color: #fff; }

/* Editor: every product is its own numbered card ("Product 2 of 5"), clearly apart from the next. */
.review-items { counter-reset: review-item; gap: 1.35rem; }
.review-item {
  counter-increment: review-item;
  position: relative;
  background: linear-gradient(180deg, #1f1f24 0%, #17171b 100%);
  border: 1.5px solid #3f3f46;
  border-left: 4px solid #eab308;
  padding-top: 0.85rem;
}
.review-item::before {
  content: "Product " counter(review-item) " of " attr(data-max);
  grid-column: 1 / -1;
  justify-self: start;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: #eab308;
  color: #000;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}
.review-item + .review-item::after {
  content: "";
  position: absolute;
  left: 1rem;
  right: 1rem;
  top: calc(-0.675rem - 1px);
  border-top: 1px dashed rgba(234, 179, 8, 0.35);
  pointer-events: none;
}
.review-item:focus-within { border-color: #eab308; box-shadow: 0 0 0 3px rgba(234, 179, 8, 0.18), 0 8px 24px rgba(0, 0, 0, 0.28); }
.review-item.is-hidden-item { border-left-style: dashed; }

/* Feed cards: product tiles big enough to read without opening the look. */
.sf-look-preview.sf-look-products {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
  margin: 0.65rem 0 0;
}
.sf-look-large .sf-look-preview.sf-look-products { grid-template-columns: repeat(auto-fill, minmax(min(96px, 100%), 1fr)); }
.sf-look-product {
  margin: 0;
  min-width: 0;
  display: grid;
  gap: 0.3rem;
  padding: 0.3rem;
  border-radius: 12px;
  background: rgba(39, 39, 42, 0.7);
  border: 1px solid #3f3f46;
}
.sf-look-product-img { position: relative; display: block; }
.sf-look-products .sf-look-mini,
.storefront-page .sf-look-products .sf-look-mini {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  flex: none;
  border-radius: 9px;
  object-fit: cover;
  background: #fff !important;
}
/* Merchant name on product photos (feed tiles and the look's product cards). */
.sf-store-badge {
  position: absolute;
  left: 0.35rem;
  top: 0.35rem;
  z-index: 1;
  max-width: calc(100% - 0.7rem);
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  background: rgba(9, 9, 11, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fafafa;
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.01em;
  line-height: 1.3;
  /* Long names ("Trampoline Parts & Supply") wrap to a second line instead of being cut. */
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  pointer-events: none;
}
.sf-look-product .sf-store-badge { font-size: 0.64rem; padding: 0.1rem 0.42rem; }
/* The store ignores product links: tell the shopper what to search for there. */
.sf-product-note { margin: 0.35rem 0 0.5rem; color: #b9cdc5; font-size: 0.8rem; line-height: 1.4; }
.sf-drawer-products .sf-store-badge { font-size: 0.78rem; top: 0.5rem; left: 0.5rem; }
.sf-product-media { position: relative; }
.sf-look-price {
  position: absolute;
  left: 0.3rem;
  bottom: 0.3rem;
  max-width: calc(100% - 0.6rem);
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  background: #eab308;
  color: #000;
  font-size: 0.74rem;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sf-look-product figcaption {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.78rem;
  line-height: 1.25;
  font-weight: 600;
  color: #f4f4f5;
}
.sf-look-more {
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px dashed #52525b;
  color: #d4d4d8;
  font-size: 0.82rem;
  font-weight: 700;
  min-height: 3rem;
}
/* The tiles already name every item; the chip row would only repeat them. */
.sf-look-products:not(:empty) + .sf-look-chips { display: none; }

/* 18+ items in the editor: a reminder, or (red) why it can't be saved here. */
/* A neutral note about the chosen store (blocked stores keep the red .is-blocked style). */
.review-store-notice {
  margin: 0.45rem 0 0;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  background: rgba(148, 163, 184, 0.1);
  border: 1px solid rgba(148, 163, 184, 0.35);
  color: #cbd5e1;
  font-size: 0.84rem;
  line-height: 1.4;
}
.review-store-notice[hidden] { display: none; }
.review-store-notice.is-blocked { background: rgba(200, 16, 46, 0.16); border-color: #f87171; color: #fecaca; }
.review-store-notice a { color: #fde68a; font-weight: 700; }

/* Admin payouts: hold-a-sale form. */
.hold-sale-form { display: flex; flex-wrap: wrap; gap: 0.5rem 0.75rem; align-items: flex-end; margin: 0.6rem 0 0.9rem; }
.hold-sale-form label { display: grid; gap: 0.2rem; font-size: 0.82rem; flex: 1 1 9rem; min-width: 0; }
.hold-sale-form input { min-height: 40px; padding: 0.4rem 0.6rem; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.18); background: rgba(0, 0, 0, 0.25); color: inherit; font: inherit; width: 100%; }
/* Look builder: larger "show on storefront" checkbox for touch. */
input.show-on-storefront { width: 20px; height: 20px; accent-color: #2ee6c6; }

/* ── Larger, clearer product cards (look modal and feed cards) ──────────────
   The modal is wider so items get real space next to the video; images are square,
   uncropped product shots on white (store cards fill them edge to edge). */
.sf-drawer { width: min(calc(100% - 1.5rem), 1080px); }
@media (min-width: 641px) {
  /* Phones keep the stacked layout (video above, items below) from the rules above. */
  .sf-look-modal-body.has-embed { grid-template-columns: minmax(220px, 300px) minmax(0, 1fr); }
}
.sf-drawer-products {
  grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr));
  gap: 1rem;
}
.sf-drawer-products .sf-product {
  gap: 0.7rem;
  padding: 0.9rem;
  border-radius: 16px;
}
.sf-drawer-products .sf-product-media,
.sf-drawer-products .sf-product-img {
  aspect-ratio: 1 / 1;
  border-radius: 12px;
}
.sf-drawer-products .sf-product-media { background: #ffffff; }
.sf-drawer-products .sf-product-img { object-fit: contain; background: #ffffff; }
.sf-drawer-products .sf-product h3,
.storefront-page .sf-drawer-products .sf-product h3 { font-size: 1.05rem; line-height: 1.35; }
.sf-drawer-products .sf-product .sf-price,
.storefront-page .sf-drawer-products .sf-product .sf-price { font-size: 1rem; font-weight: 700; color: #f4f4f5 !important; -webkit-text-fill-color: #f4f4f5 !important; }
.sf-drawer-products .sf-shop-btn { min-height: 44px; font-size: 0.95rem; }
.sf-look-preview.sf-look-products { gap: 0.6rem; }
.sf-look-product { padding: 0.45rem; gap: 0.4rem; }
.sf-look-products .sf-look-mini,
.storefront-page .sf-look-products .sf-look-mini { object-fit: contain; border-radius: 10px; }
.sf-look-product figcaption { font-size: 0.86rem; }
.sf-look-large .sf-look-preview.sf-look-products { grid-template-columns: repeat(auto-fill, minmax(min(140px, 100%), 1fr)); }
@media (max-width: 640px) {
  /* Phones: two big cards per row in the modal; the video follows them (see below). */
  .sf-drawer-products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.7rem; }
  .sf-drawer-products .sf-product { padding: 0.65rem; }
  .sf-drawer-products .sf-product h3,
  .storefront-page .sf-drawer-products .sf-product h3 { font-size: 0.95rem; }
}

/* Payout methods: creator dashboard (locked under the minimum) and admin payouts.
   Cards follow the section's own width (container query): 1 per row on phones,
   2 on tablets / narrow columns, 4 in a row on wide screens. */
.payout-panel { container-type: inline-size; container-name: payout; }
.payout-notice {
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 0.75rem; row-gap: 0.7rem;
  margin: 0.5rem 0 1.1rem; padding: 0.85rem 1rem; border-radius: 14px; border: 1px solid var(--border);
  background: rgba(39, 39, 42, 0.7);
}
.payout-notice-icon { font-size: 1.15rem; line-height: 1; }
.payout-notice-text { margin: 0; display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; line-height: 1.35; }
.payout-notice-text strong { font-size: 1rem; color: var(--text); }
.payout-notice-text span { color: var(--muted); font-size: 0.9rem; overflow-wrap: anywhere; }
.payout-notice-text a { color: inherit; }
.payout-notice .payout-meter { grid-column: 1 / -1; }
.payout-notice-ready { background: rgba(6, 95, 70, 0.35); border-color: #047857; }
.payout-notice-ready strong { color: #d1fae5; }
.payout-notice-preview { background: rgba(234, 179, 8, 0.12); border-color: var(--gold-deep); }
.payout-notice-preview strong { color: #fde68a; }
.payout-notice-hold { background: rgba(127, 29, 29, 0.42); border-color: #7f1d1d; }
.payout-notice-hold strong { color: #fecaca; }
.payout-meter { height: 0.5rem; border-radius: 999px; background: var(--border); overflow: hidden; }
.payout-meter span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--gold-deep), var(--gold)); }
.payout-methods {
  list-style: none; margin: 0 0 1rem; padding: 0;
  display: grid; gap: 0.65rem; grid-template-columns: minmax(0, 1fr);
}
@container payout (min-width: 520px) { .payout-methods { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container payout (min-width: 900px) { .payout-methods { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.payout-method {
  display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); grid-template-rows: auto auto 1fr;
  column-gap: 0.75rem; row-gap: 0.2rem; align-items: start;
  padding: 0.9rem; border: 1px solid var(--border); border-radius: 14px; background: var(--card); min-width: 0;
}
.payout-method-logo { grid-row: 1 / span 3; width: 2.5rem; height: 2.5rem; border-radius: 50%; overflow: hidden; display: grid; place-items: center; }
.payout-method-logo svg { width: 100%; height: 100%; display: block; }
.payout-method-name { font-weight: 700; line-height: 1.25; color: var(--text); overflow-wrap: anywhere; }
.payout-method-detail { color: var(--muted); font-size: 0.8rem; line-height: 1.35; overflow-wrap: anywhere; }
.payout-fee {
  justify-self: start; align-self: end; margin-top: 0.45rem;
  font-size: 0.75rem; font-weight: 700; line-height: 1.2; padding: 0.25rem 0.55rem; border-radius: 999px;
  background: rgba(234, 179, 8, 0.14); color: var(--gold); white-space: normal;
}
.payout-panel.is-locked .payout-method { opacity: 0.55; filter: grayscale(0.85); }
.payout-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1rem; }
.payout-footnote { margin: 0; color: var(--muted); font-size: 0.8rem; flex: 1 1 16rem; }
.admin-payout-config .payout-footnote { margin-bottom: 1rem; }
.payout-request[disabled] { opacity: 0.45; cursor: not-allowed; }
.payout-badge-eligible { background: rgba(6, 95, 70, 0.45); color: #d1fae5; }
.payout-badge-locked { background: rgba(63, 63, 70, 0.7); color: var(--muted); }
.payout-badge-hold { background: rgba(127, 29, 29, 0.55); color: #fecaca; }

/* Look editor: drag a product card by its handle. */
.review-drag { cursor: grab; user-select: none; color: #a1a1aa; font-size: 1.1rem; padding: 0 0.35rem; line-height: 1; }
.review-drag:active { cursor: grabbing; }
.review-item.is-dragging { opacity: 0.55; outline: 2px dashed #eab308; outline-offset: 2px; }
.review-move-btn:disabled { opacity: 0.35; cursor: not-allowed; }

/* Admin creators table: non-blocking review warning. */
.admin-warning-badge {
  display: inline-block; margin-left: 0.35rem; padding: 0.12rem 0.5rem; border-radius: 999px;
  background: rgba(245, 158, 11, 0.16); border: 1px solid rgba(245, 158, 11, 0.5);
  color: #fcd34d; font-size: 0.75rem; font-weight: 700; white-space: nowrap;
}

/* ── Video frames: one 9:16 shape for every platform ────────────────────────────
   Thumbnails fill a 9:16 frame edge to edge (Instagram covers are often 1:1 or 4:5). */
.sf-look-large .sf-thumb-wrap > img { aspect-ratio: 9 / 16; }
.sf-video-card .sf-thumb-wrap > img,
.dashboard-look-thumb { object-fit: cover; object-position: center; }

/* Instagram's embed page is not a bare 9:16 video: it has a profile header above and
   a caption bar below. Forced into a 9:16 box the video was squeezed or cut off, so
   Instagram players get a taller frame that holds header + full 9:16 video + caption. */
/* Dark while Instagram's page loads (white flashed as a big empty box). */
.sf-look-embed iframe[src*="instagram.com"] { display: block; width: 100%; height: 100%; border: 0; background: #18181b; }
.sf-look-poster.is-link { cursor: pointer; }
.sf-drawer-video.has-embed:has(iframe[src*="instagram.com"]) { height: auto; aspect-ratio: 9 / 19.5; max-height: none; }

/* Look editor: "Source video" label above a player that keeps its own frame (the label
   used to sit inside the fixed 9:16 box, pushing the player out of view). */
.review-video {
  aspect-ratio: auto; max-height: none; overflow: visible; background: none; border-radius: 0;
  display: flex; flex-direction: column; gap: 0.5rem; min-width: 0; width: 100%; max-width: 360px;
}
.review-video > .review-label { margin: 0; }
.review-video > .sf-look-embed,
.review-video > .review-poster,
.review-video > video {
  width: 100%; height: auto; min-height: 0; aspect-ratio: 9 / 16; max-height: 640px;
  border-radius: 14px; overflow: hidden; background: #111; object-fit: cover;
}
.review-video > .sf-look-embed iframe { width: 100%; height: 100%; min-height: 0; border: 0; display: block; }
.review-video > .sf-look-embed:has(iframe[src*="instagram.com"]) { aspect-ratio: 9 / 19.5; max-height: none; }
/* A file Tapixy hosts is shown whole (never cropped) until review.js measures it. */
.review-video > video { object-fit: contain; }
/* Horizontal sources (YouTube long-form, landscape uploads; data-orientation from the
   server or review.js): a 16:9 frame, and on desktop a wider video column, so the
   player is neither squeezed into a 9:16 box nor cropped. */
.review-video[data-orientation="landscape"] { max-width: 480px; }
.review-video[data-orientation="landscape"] > .sf-look-embed,
.review-video[data-orientation="landscape"] > .review-poster,
.review-video[data-orientation="landscape"] > video { aspect-ratio: 16 / 9; max-height: none; }
.review-grid:has(.review-video[data-orientation="landscape"]) { grid-template-columns: minmax(280px, 480px) minmax(0, 1fr); }
@media (max-width: 900px) {
  .review-video { margin: 0 auto; max-width: min(100%, 340px); }
  /* One column: a horizontal player can use the full width. */
  .review-video[data-orientation="landscape"] { max-width: min(100%, 640px); }
}
@media (max-width: 860px) {
  .review-grid:has(.review-video[data-orientation="landscape"]) { grid-template-columns: 1fr; }
}
/* Phones turned sideways: the 9:16 player (~600px) was taller than the whole screen and
   pushed the items to tag far down. It keeps its shape at most 78% of the screen tall;
   Instagram's taller embed gets that height and scrolls inside its own frame. */
@media (orientation: landscape) and (max-height: 500px) {
  .review-video { max-width: min(100%, calc(78vh * 9 / 16)); }
  .review-video[data-orientation="landscape"] { max-width: min(100%, calc(78vh * 16 / 9)); }
  .review-video:has(iframe[src*="instagram.com"]) { max-width: min(100%, 340px); }
  .review-video > .sf-look-embed,
  .review-video > .review-poster,
  .review-video > video { max-height: 78vh; }
  .review-video > .sf-look-embed:has(iframe[src*="instagram.com"]) { aspect-ratio: auto; height: 78vh; }
}

.payout-tax-notice { margin: 0.75rem 0 0; color: var(--muted); font-size: 0.8rem; line-height: 1.5; }

.fraud-account { border: 1px solid var(--line, rgba(255,255,255,0.12)); border-radius: 12px; padding: 1rem; margin: 0 0 1rem; }
.fraud-account h3 { margin: 0 0 0.4rem; }
.fraud-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; margin: 0.6rem 0; }
.fraud-actions form { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.fraud-actions .url-input { min-width: 12rem; flex: 1 1 12rem; }
/* Admin → Fraud review → Blocked devices: one card per banned value, Unblock in reach on a phone. */
.device-ban-notice { margin: 0 0 0.85rem; }
.device-ban-search { display: grid; gap: 0.35rem; margin: 0 0 0.85rem; }
.device-ban-search-row { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.device-ban-search-row .url-input { flex: 1 1 16rem; min-width: 0; margin: 0; }
.device-ban-search-row .sf-shop-btn { text-decoration: none; text-align: center; }
.device-ban-count { margin: 0 0 0.6rem; font-size: 0.85rem; color: var(--muted, #9bb5ab); }
.device-ban-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 17.5rem), 1fr));
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.device-ban {
  display: grid;
  gap: 0.55rem;
  align-content: start;
  min-width: 0;
  padding: 0.9rem 0.95rem 1rem;
  border: 1px solid rgba(255, 77, 109, 0.32);
  border-radius: 14px;
  background: rgba(9, 30, 23, 0.55);
}
.device-ban-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.4rem; }
.device-ban-kind {
  padding: 0.15rem 0.6rem;
  border: 1px solid rgba(255, 77, 109, 0.5);
  border-radius: 999px;
  background: rgba(255, 77, 109, 0.12);
  color: #fecdd3;
  font-size: 0.74rem;
  font-weight: 750;
  white-space: nowrap;
}
.device-ban-until { font-size: 0.76rem; color: var(--muted, #9bb5ab); }
.device-ban-value {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 0.9rem;
  color: var(--text, #eef6f1);
}
.device-ban-facts { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.3rem 0.75rem; margin: 0; font-size: 0.84rem; }
.device-ban-facts > div { display: contents; }
.device-ban-facts dt { color: var(--muted, #9bb5ab); font-weight: 650; }
.device-ban-facts dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.device-ban-facts a { color: var(--gold-shine, #f0d56a); text-underline-offset: 2px; }
.device-ban form { margin: 0.15rem 0 0; }
.device-ban .sf-shop-btn { width: 100%; }
/* Audit log actions (device_unban, admin_edit…): readable gold-on-dark, not light-on-light. */
.audit-log-table .earnings-status {
  background: rgba(212, 175, 55, 0.14);
  border: 1px solid rgba(212, 175, 55, 0.45);
  color: #f5e2a0;
  white-space: nowrap;
}
.audit-log-table td { vertical-align: top; }

/* ── Look editor: save feedback ── */
.review-actions .sf-shop-btn.is-busy { cursor: progress; opacity: 0.85; }
.review-actions .sf-shop-btn.is-busy::before {
  content: "";
  display: inline-block;
  width: 0.9em;
  height: 0.9em;
  margin-right: 0.45em;
  vertical-align: -0.12em;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: review-spin 0.7s linear infinite;
}
.review-actions .sf-shop-btn.is-saved { filter: saturate(1.2); }
.review-actions button:disabled { cursor: not-allowed; }
.review-status.is-success { color: #2ee6c6; }
.review-status.is-error { color: #ff8a8a; }
@keyframes review-spin { to { transform: rotate(360deg); } }
.review-toast {
  position: fixed;
  left: 50%;
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 1000;
  max-width: min(92vw, 28rem);
  padding: 0.75rem 1.1rem;
  border-radius: 14px;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.4;
  text-align: center;
  color: #06231d;
  background: #2ee6c6;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 0.75rem);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.review-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.review-toast.is-error { color: #fff; background: #b4232c; }
@media (prefers-reduced-motion: reduce) {
  .review-toast { transition: none; }
  .review-actions .sf-shop-btn.is-busy::before { animation: none; }
}
/* The store didn't share the product name: the creator is asked to type it. */
.review-field input.title.needs-title {
  border-color: #f3d56a;
  box-shadow: 0 0 0 2px rgba(243, 213, 106, 0.28);
}
.review-field input.title.needs-title::placeholder { color: #f3d56a; -webkit-text-fill-color: #f3d56a; }
/* Taps act at once (no double-tap-to-zoom wait) everywhere in the editor. */
.review-page button,
.review-page select,
.review-page a,
.review-page input[type=checkbox] { touch-action: manipulation; }
/* Phones and tablets (iPhone, iPad, Android): iOS zooms the page into any field under
   16px, which shifts the layout under the next tap (often Publish). Every control is
   also at least a 44px touch target. */
@media (max-width: 760px), (pointer: coarse), (any-pointer: coarse) {
  .review-page input:not([type=checkbox]):not([type=file]),
  .review-page select,
  .review-page textarea,
  .review-field input[type=text],
  .review-field input.title,
  .review-field input.product-url,
  .review-field input.price,
  .review-field select.store-type { font-size: 16px; min-height: 44px; }
  .review-page .sf-shop-btn,
  .review-page .review-remove-item,
  .review-page .review-find-store { min-height: 44px; }
  .review-page .review-move-btn { min-width: 44px; min-height: 44px; }
  .review-page input[type=checkbox] { width: 22px; height: 22px; }
  .review-actions { gap: 0.6rem; padding-bottom: max(2rem, calc(env(safe-area-inset-bottom) + 1rem)); }
  .review-actions .sf-shop-btn { flex: 1 1 auto; font-size: 0.95rem; }
}

/* ── Storefront: profile, then platform pills, then the looks (no filler copy) ── */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
/* Same left edge as the profile above (960px column + the hero's 1.25rem side padding). */
.sf-section-head-compact {
  width: 100%;
  max-width: calc(960px + 2.5rem);
  box-sizing: border-box;
  padding-top: 0.25rem;
  padding-bottom: 0.15rem;
  align-items: center;
}
.sf-section-head-compact .sf-toolbar { width: 100%; min-width: 0; gap: 0.5rem; }
.sf-section-head-compact .sf-platform-pills { flex-wrap: wrap; }
@media (max-width: 480px) {
  /* All four platform pills fit on one row on phones (wraps only on the narrowest). */
  .sf-section-head-compact .sf-platform-pills { gap: 0.3rem; }
  .sf-section-head-compact .sf-platform-pills .sf-pill { padding-inline: 0.65rem; font-size: 0.84rem; }
}

/* ── One tap to the store from the feed ─────────────────────────────────────────
   Every item tile on a look card has its own buy button (the signed redirect), so
   shoppers do not have to open the look first; the rest of the card opens the look. */
.sf-look-shop {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0.3rem 0.4rem;
  border-radius: 999px;
  background: #f0d56a;
  color: #111111;
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  touch-action: manipulation;
}
.sf-look-shop:hover,
.sf-look-shop:focus-visible { background: #ffe58a; }
@media (pointer: coarse), (any-pointer: coarse) {
  .sf-look-shop { min-height: 44px; font-size: 0.86rem; }
}

@media (max-width: 640px) {
  /* Phones: a look card's cover no longer fills the whole screen (a full-width 9:16
     frame was ~600px tall, and Instagram placeholders looked stretched). */
  .sf-look-large .sf-thumb-wrap > img { max-height: min(62vh, 520px); width: 100%; }
  /* Opening a look shows the items first; the video (an Instagram or TikTok embed is
     often taller than the screen) follows below instead of hiding them. */
  .sf-look-modal-details { order: -1; }
  .sf-drawer-video.has-embed { height: min(460px, 60vh); }
}
@media (orientation: landscape) and (max-height: 500px) {
  /* Phones turned sideways: a 9:16 cover (~427px) was taller than the whole screen.
     object-fit: cover keeps the frame centred while the card fits in view. */
  .sf-look-large .sf-thumb-wrap > img { max-height: 78vh; }
  .sf-drawer-video.has-embed { height: min(460px, 78vh); }
}
