/* Firenze Marketplace — dark black / gold luxury UI */

:root {
  --bg: #000000;
  --bg-elevated: #0c0c0c;
  --bg-card: #111111;
  --bg-panel: #0a0a0a;
  --gold: #d4af37;
  --gold-soft: #c9a227;
  --gold-bright: #f0d78c;
  --gold-dim: rgba(212, 175, 55, 0.18);
  --text: #f5f5f5;
  --text-muted: #a3a3a3;
  --border: rgba(212, 175, 55, 0.28);
  --danger: #e85d5d;
  --wa: #25d366;
  --header-h: 88px;
  --nav-h: 48px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --radius: 14px;
  --font: system-ui, "Quicksand", -apple-system, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
  height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
}

body {
  overflow: hidden;
  position: relative;
  width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

a {
  color: var(--gold);
}

#app {
  position: relative;
  max-width: 480px;
  margin: 0 auto;
  height: 100%;
  /* svh = stable (no jump when URL bar shows/hides); dvh fills dynamic when supported */
  height: 100svh;
  height: 100dvh;
  max-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.08);
  overflow: hidden;
}

/* —— Header —— */
.app-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  height: calc(var(--header-h) + var(--safe-top));
  padding-top: var(--safe-top);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.92) 40%, rgba(0, 0, 0, 0));
  pointer-events: none;
}

.app-header .header-logo {
  pointer-events: auto;
  width: 240px;
  max-width: 86%;
  height: auto;
  max-height: 76px;
  object-fit: contain;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.7));
}

/* —— Main / views —— */
.app-main {
  flex: 1;
  min-height: 0;
  position: relative;
}

.view {
  position: absolute;
  inset: 0;
  display: none;
}

.view.active {
  display: block;
}

.view-feed.active {
  display: block;
}

.view-panel {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--bg-panel);
  padding:
    calc(var(--header-h) + var(--safe-top) + 12px)
    20px
    calc(var(--nav-h) + var(--safe-bottom) + 24px);
}

.panel-inner {
  max-width: 420px;
  margin: 0 auto;
}

.panel-title {
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--gold-bright);
  margin-bottom: 8px;
}

.panel-sub {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.45;
  margin-bottom: 20px;
}

/* —— TikTok-style feed —— */
.feed {
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-snap-type: y mandatory;
  /* smooth + mandatory snap fights finger scrolling on mobile ("freeze") */
  scroll-behavior: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  touch-action: pan-y;
}

.feed-card {
  position: relative;
  /* Use feed viewport height — NOT 100dvh (mobile chrome resize = "se mueve"/deform) */
  height: 100%;
  min-height: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  overflow: hidden;
  background: #050505;
}

/* Horizontal gallery */
.gallery {
  position: absolute;
  inset: 0;
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  /* pan-x pan-y: gallery fills the card — must allow vertical feed swipe too */
  touch-action: pan-x pan-y;
  scrollbar-width: none;
}

.gallery::-webkit-scrollbar {
  display: none;
}

.gallery-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  position: relative;
  background: #1a1a1a;
}

.gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-slide .slide-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(212, 175, 55, 0.15), transparent 50%),
    linear-gradient(160deg, #1a1510 0%, #0a0a0a 60%, #12100c 100%);
  color: var(--gold);
  font-size: 3rem;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.gallery-dots {
  position: absolute;
  top: calc(var(--header-h) + var(--safe-top) + 8px);
  left: 0;
  right: 0;
  z-index: 5;
  display: flex;
  justify-content: center;
  gap: 6px;
  pointer-events: none;
}

.gallery-dots .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: background 0.15s ease, transform 0.15s ease;
}

.gallery-dots .dot.active {
  background: var(--gold);
  border-color: var(--gold-bright);
  transform: scale(1.15);
}

.feed-card .scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, transparent 18%),
    /* Softer bottom so frosted product bar reveals the photo */
    linear-gradient(0deg, rgba(0, 0, 0, 0.42) 0%, rgba(0, 0, 0, 0.22) 28%, transparent 52%);
  pointer-events: none;
  z-index: 2;
}

.feed-card .card-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding:
    0 8px
    calc(var(--nav-h) + var(--safe-bottom) + 8px);
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 10px 12px;
  align-items: end;
  z-index: 3;
  pointer-events: none;
}

.feed-card .card-body .card-info {
  display: none !important; /* Flib: no left caption overlay on feed */
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
}


.feed-card .card-body .card-side {
  grid-column: 2;
  grid-row: 1;
}

.feed-card .card-body .product-bar {
  grid-column: 1 / -1;
  grid-row: 2;
  justify-self: stretch;
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  pointer-events: auto;
}

.feed-card .card-body .card-info,
.feed-card .card-body .card-side,
.feed-card .card-body button,
.feed-card .card-body a {
  pointer-events: auto;
}

.card-info {
  flex: 1;
  min-width: 0;
}

.card-info .piece-ids {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}

.piece-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid var(--border);
  color: var(--gold-bright);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

.piece-badge.prov {
  color: #e8e8e8;
  border-color: rgba(255, 255, 255, 0.22);
}

.piece-badge.ia {
  color: #0a0a0a;
  background: linear-gradient(135deg, #f0d78c 0%, var(--gold) 50%, #c4a03a 100%);
  border-color: var(--gold-bright);
  letter-spacing: 0.1em;
}

.card-info .piece-name {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 4px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.7);
}

.card-info .piece-specs {
  font-size: 0.82rem;
  color: rgba(245, 245, 245, 0.82);
  margin-bottom: 4px;
  line-height: 1.35;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7);
}

.card-info .piece-desc {
  font-size: 0.86rem;
  color: rgba(245, 245, 245, 0.88);
  line-height: 1.4;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding-bottom: 4px;
}

.side-stat,
.side-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  min-width: 44px;
}

.side-stat span,
.side-btn span {
  font-size: 0.72rem;
  font-weight: 600;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

.side-btn .icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.side-btn:active .icon-circle {
  transform: scale(0.92);
}

.side-btn.favored .icon-circle {
  background: var(--gold-dim);
  border-color: var(--gold);
  color: var(--gold-bright);
}

.side-btn.favored svg {
  fill: var(--gold);
  stroke: var(--gold);
}

.side-stat .icon-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-muted);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.12s ease, opacity 0.12s ease, background 0.15s ease;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.97);
}

.btn-gold {
  background: linear-gradient(135deg, #e8c76a 0%, var(--gold) 45%, #a88728 100%);
  color: #111;
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.35);
}

.btn-outline {
  background: rgba(0, 0, 0, 0.45);
  color: var(--gold-bright);
  border: 1px solid var(--border);
  backdrop-filter: blur(6px);
}

.btn-whatsapp {
  background: var(--wa);
  color: #062;
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 16px;
}

.btn-block {
  width: 100%;
  padding: 14px 18px;
}

.btn:disabled {
  opacity: 0.55;
  cursor: wait;
}


/* —— Flib-style product bar (above thin bottom nav) —— */
.product-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  max-width: none;
  margin-inline: 0;
  min-height: 84px;
  padding: 14px 14px 14px 16px;
  border-radius: 18px;
  /* Flib frosted glass: photo shows through — ~25% más transparente */
  background: rgba(0, 0, 0, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(14px) saturate(1.35);
  -webkit-backdrop-filter: blur(14px) saturate(1.35);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
}

.product-bar-thumb {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: #1a1a1a;
  border: 1.5px solid rgba(212, 175, 55, 0.45);
  display: block;
}

span.product-bar-thumb,
.product-bar-thumb-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  color: var(--gold);
  background:
    radial-gradient(ellipse at 30% 20%, rgba(212, 175, 55, 0.2), transparent 55%),
    #1a1510;
}

.product-bar-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 2px 0;
}

.product-bar-price {
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: #FF9F1A;
  line-height: 1.15;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.75), 0 0 10px rgba(0, 0, 0, 0.35);
}

.product-bar-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #f5f5f5;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7), 0 0 8px rgba(0, 0, 0, 0.3);
}

.buyer-edit-row {
  margin: 0.35rem 0 0.75rem;
  text-align: center;
}

.link-edit-buyer {
  background: none;
  border: none;
  padding: 0;
  color: #c9a227;
  font: inherit;
  font-size: 0.85rem;
  text-decoration: underline;
  cursor: pointer;
}

.link-edit-buyer:hover {
  color: #e8c547;
}

.buyer-otp-step[hidden] {
  display: none !important;
}

.buyer-otp-hint {
  font-size: 0.85rem;
  color: rgba(245, 245, 245, 0.75);
  margin: 0 0 0.75rem;
  line-height: 1.35;
}

.buyer-otp-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.buyer-otp-code {
  letter-spacing: 0.35em;
  font-size: 1.25rem;
  font-weight: 700;
  text-align: center;
}

.product-bar-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(245, 245, 245, 0.88);
  white-space: normal;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  text-overflow: ellipsis;
  line-height: 1.25;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.65);
}

.product-bar-specs {
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: rgba(245, 245, 245, 0.78);
  text-transform: none;
}

.product-bar-cta {
  flex-shrink: 0;
  min-width: 88px;
  height: 52px;
  padding: 0 18px;
  border: none;
  border-radius: 999px;
  background: #22c55e;
  color: #04140a;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(34, 197, 94, 0.45);
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.12s ease, filter 0.12s ease;
}

.product-bar-cta:active {
  transform: scale(0.96);
  filter: brightness(0.95);
}

.product-bar-cta.btn-cotizar {
  background: linear-gradient(135deg, #f0d78c 0%, var(--gold) 55%, #c4a03a 100%);
  color: #0a0a0a;
  box-shadow: 0 2px 12px rgba(212, 175, 55, 0.4);
}

/* —— Bottom nav (Flib-style: compact icon + tiny label) —— */
.bottom-nav {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  height: calc(var(--nav-h) + var(--safe-bottom));
  padding: 2px 0 var(--safe-bottom);
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: stretch;
  background: rgba(0, 0, 0, 0.94);
  border-top: 1px solid rgba(212, 175, 55, 0.18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  cursor: pointer;
  padding: 2px 1px 1px;
  min-width: 0;
  -webkit-tap-highlight-color: transparent;
}

.nav-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.8;
}

.nav-btn .nav-label {
  font-size: 9px;
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  opacity: 0.9;
}

.nav-btn.active {
  color: var(--gold-bright);
}

.nav-btn.active svg {
  opacity: 1;
  stroke: var(--gold);
}

.nav-btn.active .nav-label {
  color: var(--gold-bright);
  opacity: 1;
}

/* —— Favoritos list —— */
.favs-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fav-item {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 12px;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px;
}

.fav-item img,
.fav-item .thumb-fallback {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  object-fit: cover;
  background: #1a1a1a;
}

.fav-item .thumb-fallback {
  display: grid;
  place-items: center;
  color: var(--gold);
  font-size: 1.4rem;
}

.fav-item h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.fav-item p {
  font-size: 0.8rem;
  color: var(--gold-soft);
}

.fav-item .fav-meta {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.fav-item .remove-fav {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  padding: 8px;
}

.empty-state {
  text-align: center;
  padding: 36px 16px;
  color: var(--text-muted);
  border: 1px dashed rgba(212, 175, 55, 0.25);
  border-radius: var(--radius);
  background: rgba(212, 175, 55, 0.04);
}

.empty-state strong {
  display: block;
  color: var(--gold-bright);
  margin-bottom: 6px;
  font-size: 1.05rem;
}

/* —— Product type toggle (Venta | IA) —— */
.product-type-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0 0 18px;
}

.product-type-btn {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #0a0a0a;
  color: var(--text-muted);
  border-radius: 12px;
  padding: 12px 10px;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.product-type-btn .pt-title {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: inherit;
  line-height: 1.2;
}

.product-type-btn .pt-sub {
  display: block;
  margin-top: 4px;
  font-size: 0.72rem;
  color: rgba(245, 245, 245, 0.45);
  letter-spacing: 0.02em;
}

.product-type-btn.active {
  border-color: var(--gold);
  background: rgba(212, 175, 55, 0.12);
  color: var(--gold-bright);
  box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.25), 0 4px 16px rgba(212, 175, 55, 0.12);
}

.product-type-btn.active .pt-sub {
  color: var(--gold-soft);
}

.product-type-btn:active {
  transform: scale(0.98);
}

.ia-hint {
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--text-muted);
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px dashed rgba(212, 175, 55, 0.35);
  background: rgba(212, 175, 55, 0.06);
  margin: 0 0 4px;
}

.ia-hint strong {
  color: var(--gold-bright);
}

#ventaFields,
#iaFields {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

#ventaFields[hidden],
#iaFields[hidden] {
  display: none;
}

/* —— Upload form —— */
.upload-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.upload-form .field-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gold-soft);
  margin-bottom: 6px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.upload-form label:not(.chip):not(.photo-upload):not(.video-upload) {
  display: block;
}

.upload-form input[type="text"],
.upload-form input[type="number"],
.upload-form input[type="tel"],
.upload-form input[type="email"],
.upload-form select,
.upload-form textarea {
  width: 100%;
  background: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.15s ease;
}

.upload-form textarea {
  resize: vertical;
  min-height: 64px;
}

.upload-form input:focus,
.upload-form select:focus,
.upload-form textarea:focus {
  border-color: var(--gold);
}

.upload-form input.invalid,
.upload-form select.invalid {
  border-color: var(--danger);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.photo-upload,
.video-upload {
  display: block;
  cursor: pointer;
}

.photo-upload input[type="file"],
.video-upload input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
}

.field-hint {
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text-muted);
  font-size: 0.68rem;
}

.media-upload-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.photo-preview {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  border: 1px dashed rgba(212, 175, 55, 0.4);
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.photo-preview.multi {
  aspect-ratio: auto;
  min-height: 120px;
  max-height: 280px;
  padding: 10px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  align-content: start;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.photo-preview.multi:not(.has-thumbs) {
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-thumb {
  position: relative;
  aspect-ratio: 1;
  min-width: 0;
  min-height: 72px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.3);
  background: #111;
}

.photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo-thumb .thumb-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-preview {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  border: 1px dashed rgba(212, 175, 55, 0.4);
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.video-preview video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #000;
}

.video-preview.has-video .photo-placeholder {
  display: none;
}

.media-count {
  margin: -4px 0 4px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.photo-placeholder {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  padding: 0 12px;
}

/* Gallery video slide */
.gallery-slide.video-slide {
  background: #000;
}

.gallery-slide.video-slide video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-dots .dot.video-dot {
  border-radius: 3px;
  width: 14px;
  background: rgba(212, 175, 55, 0.45);
}

.gallery-dots .dot.video-dot.active {
  background: var(--gold);
}

.chip-fieldset {
  border: none;
}

.chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-flex;
  cursor: pointer;
}

.chip input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.chip span {
  display: inline-block;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  background: #141414;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-muted);
  transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}

.chip input:checked + span {
  background: var(--gold-dim);
  border-color: var(--gold);
  color: var(--gold-bright);
}

/* —— FAQ —— */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 4px 14px;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  font-weight: 700;
  padding: 12px 0;
  color: var(--gold-bright);
  position: relative;
  padding-right: 24px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 12px;
  color: var(--gold);
  font-weight: 700;
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-item p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.5;
  padding-bottom: 14px;
}

.faq-item strong {
  color: var(--text);
}

/* —— Contact —— */
.contact-card {
  margin-top: 20px;
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  line-height: 1.5;
}

.contact-card .muted {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 8px;
}



/* —— Mi cuenta (comprador) —— */
.account-card {
  margin-bottom: 16px;
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  line-height: 1.5;
}

.account-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gold-bright);
  margin-bottom: 10px;
}

.account-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
  margin: 6px 0;
  font-size: 0.95rem;
}

.account-label {
  color: var(--text-muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  min-width: 72px;
}

.badge-verified {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #0b0b0b;
  background: var(--gold-bright);
  border-radius: 999px;
  padding: 2px 8px;
}

.account-cta {
  margin-bottom: 16px;
  padding: 18px 16px;
  border-radius: var(--radius);
  border: 1px solid rgba(212, 175, 55, 0.28);
  background: var(--bg-card);
}

.account-cta-lead {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.45;
  margin-bottom: 14px;
}

.cuenta-contact {
  margin-top: 18px;
}

.cuenta-contact .btn-whatsapp {
  margin-top: 10px;
}

#cuentaLoggedIn .btn-block + .btn-block {
  margin-top: 8px;
}

/* —— Modal —— */
.modal-backdrop {
  position: absolute;
  inset: 0;
  z-index: 60;
  background: rgba(0, 0, 0, 0.72);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
  padding-bottom: calc(16px + var(--safe-bottom));
  backdrop-filter: blur(4px);
}

.modal-backdrop[hidden] {
  display: none;
}

.modal {
  width: 100%;
  max-width: 400px;
  background: #121212;
  border: 1px solid var(--border);
  border-radius: 20px 20px 16px 16px;
  padding: 22px 20px 20px;
  position: relative;
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.55);
  animation: slideUp 0.22s ease;
}

@keyframes slideUp {
  from {
    transform: translateY(24px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
}

.modal h2 {
  font-size: 1.25rem;
  color: var(--gold-bright);
  margin-bottom: 6px;
  padding-right: 28px;
}

.modal-lead {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 16px;
  line-height: 1.4;
}

.modal label {
  display: block;
  margin-bottom: 12px;
}

.modal label span {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gold-soft);
  margin-bottom: 5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.modal input {
  width: 100%;
  background: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.15s ease;
}

.modal input:focus {
  border-color: var(--gold);
}

.modal input.invalid {
  border-color: var(--danger);
}

.footnote {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 4px 0 16px;
  padding: 10px 12px;
  background: var(--gold-dim);
  border-radius: 10px;
  border-left: 3px solid var(--gold);
}

/* —— Toast —— */
.toast {
  position: absolute;
  left: 50%;
  bottom: calc(var(--nav-h) + var(--safe-bottom) + 16px);
  transform: translateX(-50%);
  z-index: 70;
  max-width: calc(100% - 32px);
  background: #1a1a1a;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 0.88rem;
  font-weight: 600;
  text-align: center;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.5);
  animation: toastIn 0.2s ease;
}

.toast[hidden] {
  display: none;
}

.toast.toast-gold {
  color: #111;
  background: linear-gradient(135deg, #e8c76a, var(--gold));
  border-color: transparent;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translate(-50%, 10px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

/* Desktop comfort */
@media (min-width: 481px) {
  body {
    background: #050505;
  }

  #app {
    border-left: 1px solid rgba(212, 175, 55, 0.12);
    border-right: 1px solid rgba(212, 175, 55, 0.12);
  }

  .modal-backdrop {
    align-items: center;
  }

  .modal {
    border-radius: 16px;
  }
}


/* —— Proveedor session / registro —— */
.supplier-session {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
  padding: 10px 14px;
  border-radius: var(--radius);
  background: var(--gold-dim);
  border: 1px solid var(--border);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--gold-bright);
  line-height: 1.35;
}

.supplier-session .session-text {
  flex: 1;
  min-width: 0;
}

.supplier-session .btn-session-out {
  flex-shrink: 0;
  background: transparent;
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: var(--text-muted);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.supplier-session .btn-session-out:active {
  transform: scale(0.97);
}

.prov-success {
  margin-top: 8px;
  padding: 20px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  text-align: center;
}

.prov-success-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gold-bright);
  margin-bottom: 10px;
}

.prov-success-id {
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: 8px;
}

.prov-success-id strong {
  display: inline-block;
  margin-top: 4px;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--border);
  color: var(--gold-bright);
  letter-spacing: 0.06em;
  font-size: 1.15rem;
}

.prov-success-sub {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 16px;
  line-height: 1.4;
}


#videoUploadWrap[hidden] {
  display: none;
}

#videoUploadWrap.is-optional .video-preview {
  border-style: dotted;
  opacity: 0.95;
}


/* —— Auth gate (proveedor login/registro) —— */
.auth-gate-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 12px 0 18px;
}

.auth-tab {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-muted);
  border-radius: 999px;
  padding: 10px 12px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
}

.auth-tab.active {
  background: var(--gold-dim);
  border-color: rgba(212, 175, 55, 0.55);
  color: var(--gold-bright);
}

.auth-mock-note {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: var(--radius);
  border: 1px dashed rgba(212, 175, 55, 0.35);
  background: rgba(212, 175, 55, 0.06);
  color: var(--text-muted);
  font-size: 0.78rem;
  line-height: 1.4;
}

.auth-mock-note strong {
  color: var(--gold-bright);
}

.auth-switch {
  margin-top: 14px;
  text-align: center;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.auth-switch button {
  appearance: none;
  background: none;
  border: none;
  color: var(--gold-bright);
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 0;
  font-size: inherit;
}

#provLoginForm[hidden],
#provRequestForm[hidden],
#provRegisterForm[hidden],
#subirAuthPanel[hidden],
#subirUploadPanel[hidden],
#provSuccess[hidden],
#adminInviteSection[hidden],
#adminInviteMinted[hidden] {
  display: none !important;
}

.auth-wholesaler-note {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: var(--radius);
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.28);
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--text);
}

.auth-request-lead,
.auth-invite-lead {
  margin: 0 0 12px;
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.auth-request-foot {
  margin: 10px 0 0;
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--text-muted);
}

.auth-gate-tabs {
  flex-wrap: wrap;
}

.auth-gate-tabs .auth-tab {
  flex: 1 1 auto;
  min-width: 30%;
  font-size: 0.78rem;
  padding: 10px 8px;
}

.admin-invite-panel {
  margin: 0 0 18px;
  padding: 14px;
  border-radius: var(--radius);
  border: 1px solid rgba(212, 175, 55, 0.35);
  background: rgba(0, 0, 0, 0.25);
}

.admin-invite-h3 {
  margin: 14px 0 8px;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold-bright);
}

.admin-invite-minted {
  margin: 10px 0 0;
  font-size: 0.86rem;
  color: var(--gold-bright);
  word-break: break-all;
}

.admin-invite-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-invite-list li {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  font-size: 0.82rem;
  line-height: 1.35;
}

.admin-invite-list code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--gold-bright);
  font-weight: 700;
}

.admin-invite-empty {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.admin-request-row {
  flex-wrap: wrap;
}

.admin-request-meta {
  color: var(--text-muted);
  font-size: 0.75rem;
}

.btn-invite-copy,
.btn-sm {
  flex-shrink: 0;
  appearance: none;
  border: 1px solid rgba(212, 175, 55, 0.45);
  background: transparent;
  color: var(--gold-bright);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.7rem;
  font-weight: 700;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.btn.btn-sm {
  width: auto;
  display: inline-flex;
  padding: 8px 12px;
  font-size: 0.72rem;
}

/* —— Hashtags / filtro feed —— */
.feed-filter-bar {
  position: absolute;
  top: calc(var(--header-h) + var(--safe-top) + 6px);
  left: 12px;
  right: 12px;
  z-index: 28;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px 10px 14px;
  border-radius: 999px;
  background: rgba(12, 12, 12, 0.88);
  border: 1px solid rgba(212, 175, 55, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  pointer-events: auto;
}

.feed-filter-bar[hidden] {
  display: none !important;
}

.feed-filter-label {
  font-size: 0.88rem;
  color: var(--text);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feed-filter-label strong {
  color: var(--gold-bright);
  font-weight: 700;
}

.btn-clear-filter {
  flex-shrink: 0;
  appearance: none;
  border: 1px solid rgba(212, 175, 55, 0.5);
  background: var(--gold-dim);
  color: var(--gold-bright);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
}

.btn-clear-filter:active {
  transform: scale(0.97);
}

.piece-hashtags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 12px;
}

.piece-hashtag {
  appearance: none;
  border: 1px solid rgba(212, 175, 55, 0.35);
  background: rgba(0, 0, 0, 0.35);
  color: var(--gold-bright);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  cursor: pointer;
  line-height: 1.2;
}

.piece-hashtag:active,
.piece-hashtag.is-active {
  background: rgba(212, 175, 55, 0.22);
  border-color: rgba(212, 175, 55, 0.7);
}

.feed-empty-filter {
  height: 100%;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px 28px calc(var(--nav-h) + 40px);
  color: var(--text);
  background: #0a0a0a;
  scroll-snap-align: start;
}

.feed-empty-filter h2 {
  color: var(--gold-bright);
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.feed-empty-filter p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 18px;
  line-height: 1.45;
}


/* —— Admin session badge —— */
.session-admin-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(212, 175, 55, 0.22);
  border: 1px solid rgba(212, 175, 55, 0.55);
  color: var(--gold-bright);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  vertical-align: middle;
}


/* —— Ayuda hub + medidores (ported from Oro Trueque) —— */
#view-faq .ayuda-hub-btns {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 0 18px;
}
#view-faq .ayuda-hub-btns .btn {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 0.95rem;
  white-space: normal;
  text-align: center;
  line-height: 1.25;
}
#view-faq .ayuda-hub-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
  margin: -6px 0 14px;
  line-height: 1.35;
}
#view-faq .ayuda-faq-toggle {
  margin: 8px 0 12px;
}
#view-faq .ayuda-tool-panel[hidden],
#view-faq .ayuda-hub[hidden] {
  display: none !important;
}
#view-faq .ayuda-back {
  margin: 0 0 10px !important;
  width: auto;
  align-self: flex-start;
  padding: 8px 14px !important;
  border-radius: 999px;
}
#view-faq .ayuda-tool-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--gold-bright);
  margin: 0 0 12px;
  letter-spacing: 0.02em;
}
#view-faq .ayuda-wrap {
  padding: 0 0 24px;
}
#view-faq .ring-tool .hint,
#view-faq .cut-tool .hint,
#view-faq .ayuda-wrap .hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
  line-height: 1.4;
}
#view-faq .ring-tool label,
#view-faq .cut-tool label {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  margin: 12px 0 6px;
}
#view-faq .ring-tool .seg,
#view-faq .cut-tool .seg {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
#view-faq .ring-tool .seg button,
#view-faq .cut-tool .seg button {
  flex: 1;
  min-width: calc(33% - 8px);
  padding: 10px 8px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  font-size: 13px;
  cursor: pointer;
  min-height: 40px;
}
#view-faq .ring-tool .seg button.on,
#view-faq .cut-tool .seg button.on {
  background: var(--gold);
  color: #1a1000;
  font-weight: 700;
  border-color: var(--gold);
}
/* OT-style primary / ghost buttons inside medidor */
#view-faq .ring-tool .btn,
#view-faq .cut-tool .btn,
#view-faq .ayuda-wrap .btn.ot-btn {
  display: block;
  width: 100%;
  background: var(--gold);
  color: #1a1000;
  border: 0;
  border-radius: 12px;
  padding: 14px;
  font-weight: 800;
  font-size: 16px;
  cursor: pointer;
  text-align: center;
  white-space: normal;
}
#view-faq .ring-tool .btn.ghost,
#view-faq .cut-tool .btn.ghost,
#view-faq .ayuda-wrap .btn.ghost {
  background: transparent;
  color: var(--gold-bright);
  border: 1px solid var(--gold);
}
#view-faq .ring-tool .ring-adj .btn,
#view-faq .cut-tool .ring-adj .btn {
  width: auto;
  min-width: 52px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
}


/* Medidor de talla */
#view-faq .ring-tool { padding-bottom: 40px; }
#view-faq .card-cal-wrap { display:flex; justify-content:center; padding: 12px 0 8px; overflow:hidden; }
#view-faq .card-cal {
  height: 54px; max-width: 100%;
  border: 2px dashed var(--gold);
  border-radius: 10px;
  background: rgba(212,175,55,.08);
  position: relative;
}
#view-faq .card-cal::after {
  content: "Tarjeta";
  position: absolute; inset: 0;
  display:flex; align-items:center; justify-content:center;
  font-size: 12px; color: var(--gold-bright); font-weight: 700;
}
#view-faq .ring-adj { display:flex; align-items:center; justify-content:center; gap:14px; margin-top:12px; }
#view-faq .ring-adj .btn { min-width: 52px; padding: 0 14px; }
#view-faq .ring-size-row { display:flex; align-items:center; justify-content:space-between; gap:10px; margin: 8px 0; }
#view-faq .ring-size-lab { font-size: 22px; font-weight: 800; text-align:center; flex:1; }
#view-faq .ring-size-lab b { color: var(--gold-bright); }
#view-faq .ring-stage {
  display:flex; flex-direction:column; align-items:center;
  padding: 28px 12px 18px;
  background: #070b14;
  border: 1px solid var(--border);
  border-radius: 16px;
  margin-top: 10px;
}
#view-faq .ring-circle {
  border-radius: 50%;
  border: 3px solid var(--gold);
  box-shadow: 0 0 0 1px rgba(212,175,55,.35), inset 0 0 0 1px rgba(255,255,255,.06);
  background: transparent;
  flex: 0 0 auto;
}
#view-faq .ring-tip { text-align:center; max-width: 280px; margin-top: 18px; }
#view-faq .ring-picks {
  display:flex; flex-wrap:wrap; gap:8px; justify-content:center;
  margin-top: 16px;
}
#view-faq .ring-picks button {
  width: 42px; height: 42px; min-height: 42px; padding: 0;
  border-radius: 50%; border: 1px solid var(--border);
  background: rgba(255,255,255,.04); color: var(--text);
  font-weight: 700; font-size: 14px;
}
#view-faq .ring-picks button.on {
  border-color: var(--gold); color: var(--gold-bright);
  background: rgba(212,175,55,.16);
}

#view-faq .width-line-wrap {
  width: min(92%, 340px);
  padding: 40px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
#view-faq .width-line { display: none; }
#view-faq .width-bar-solid {
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #e8c04a;
  box-shadow: none;
  outline: none;
  flex: 0 0 auto;
  min-height: 0;
  box-sizing: content-box;
}
#view-faq .width-picks {
  display: flex; flex-wrap: wrap; gap: 6px; justify-content: center;
  margin-top: 16px;
}
#view-faq .width-picks button {
  width: 36px; height: 36px; min-height: 36px; padding: 0;
  border-radius: 8px; border: 1px solid var(--border);
  background: rgba(255,255,255,.04); color: var(--text);
  font-weight: 700; font-size: 12px;
}
#view-faq .width-picks button.on {
  border-color: var(--gold); color: var(--gold-bright);
  background: rgba(212,175,55,.16);
}

#view-faq .ring-tool input[type=range] {
  -webkit-appearance: none; appearance: none; height: 28px; background: transparent;
}
#view-faq .ring-tool input[type=range]::-webkit-slider-runnable-track {
  height: 6px; background: rgba(255,255,255,.18); border-radius: 999px;
}
#view-faq .ring-tool input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 26px; height: 26px; margin-top: -10px;
  border-radius: 50%; background: var(--gold); border: 2px solid #1a1000;
}

#view-faq .ring-stage-ref {
  position: relative;
  min-height: 280px;
  justify-content: center;
}
#view-faq .ring-grid {
  position: absolute;
  inset: 16px;
  border-radius: 14px;
  opacity: 0.22;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px);
  background-size: 12px 12px;
}


#view-faq .card-cal-short {
  height: 18px !important;
  border-radius: 6px !important;
  border-style: solid !important;
}
#view-faq .card-cal-short::after {
  content: "Lado corto" !important;
  font-size: 11px !important;
}

#view-faq .cal-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: center;
  margin: 8px 0 4px;
}
#view-faq .cal-visual { flex: 1; min-width: 0; }
#view-faq .cal-howto {
  flex: 0 0 140px;
  text-align: center;
}
#view-faq .cal-howto img {
  width: 140px;
  height: auto;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #0c1222;
}
#view-faq .card-cal-wrap-vert {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  min-height: 200px;
  overflow: visible;
  padding: 8px 0;
}
#view-faq .card-cal-vert {
  width: 52px !important;
  max-width: 52px;
  height: 160px;
  border-radius: 8px !important;
  border: 2px solid var(--gold) !important;
  border-style: solid !important;
  background: rgba(212,175,55,.16) !important;
}
#view-faq .card-cal-vert::after {
  content: "Altura" !important;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 11px !important;
}
@media (max-width: 360px) {
  #view-faq .cal-howto { flex-basis: 110px; }
  #view-faq .cal-howto img { width: 110px; }
}

#view-faq .card-cal-wrap-coin {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 180px;
  padding: 12px 0;
}
#view-faq .card-cal-coin {
  border-radius: 50%;
  border: 3px solid var(--gold);
  background: rgba(212,175,55,.12);
  box-shadow: none;
  flex: 0 0 auto;
}


#view-faq .cal-howto { flex: 0 0 148px; }
#view-faq .howto-card {
  background: #0c1222;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px 8px 12px;
}
#view-faq .howto-title {
  text-align: center;
  color: var(--gold-bright);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 8px;
}
#view-faq .howto-cols { display: flex; gap: 6px; }
#view-faq .howto-col { flex: 1; text-align: center; }
#view-faq .howto-label { font-size: 10px; color: var(--gold-bright); font-weight: 700; margin-bottom: 4px; }
#view-faq .howto-phone {
  height: 88px;
  border: 1px solid rgba(212,175,55,.55);
  border-radius: 10px;
  background: #161b2a;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}
#view-faq .howto-coin {
  width: 34px; height: 34px; border-radius: 50%;
  border: 3px solid var(--gold);
  display: block;
  background: rgba(212,175,55,.12);
}
#view-faq .howto-bar {
  width: 12px; height: 58px; border-radius: 3px;
  background: var(--gold);
  display: block;
}
#view-faq .howto-cap {
  font-size: 9px;
  color: var(--text-muted);
  margin-top: 5px;
  line-height: 1.2;
}
@media (max-width: 360px) {
  .cal-howto { flex-basis: 120px; }
  .howto-phone { height: 76px; }
}

/* Medidor: diámetro EXACTO (border-box global no debe restar borde) */
#view-faq .ring-disk,
#view-faq .cal-disk {
  box-sizing: content-box !important;
  border: 0 !important;
  padding: 0 !important;
  margin: 0 auto;
  border-radius: 50%;
  flex: 0 0 auto;
  position: relative;
  z-index: 1;
}
#view-faq .ring-disk {
  background: #f5f0e8;
  box-shadow: 0 0 0 1px rgba(0,0,0,.25);
}
#view-faq .cal-disk {
  background: rgba(232,192,74,.2);
  box-shadow: 0 0 0 2px var(--gold);
}
#view-faq .ring-circle,
#view-faq .ring-circle-lg {
  /* legacy — por si queda alguna referencia */
  box-sizing: content-box !important;
  border: 0 !important;
  background: #f5f0e8;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(0,0,0,.25);
}
#view-faq .card-cal-vert,
#view-faq .card-cal-coin,
#view-faq .width-bar-solid {
  box-sizing: content-box !important;
}
#view-faq .card-cal-vert {
  border: 0 !important;
  box-shadow: 0 0 0 2px var(--gold);
  background: rgba(212,175,55,.25) !important;
}

#view-faq .ring-stage-ref {
  background: #f3f0ea !important;
  border: 1px solid rgba(0,0,0,.12);
}
#view-faq .ring-stage-ref .ring-grid {
  opacity: 0.55;
  background-image:
    linear-gradient(rgba(0,0,0,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,.08) 1px, transparent 1px);
  background-size: 10px 10px;
}
#view-faq .ring-stage-ref .ring-size-lab,
#view-faq .ring-stage-ref .hint {
  color: #2a2433 !important;
}

#view-faq #cal-mode button { font-size: 12px; padding: 8px 4px; min-width: calc(25% - 8px); }


/* Medidor dedo: guías verticales (ancho = diámetro del dedo) */
#view-faq .finger-stage {
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}
#view-faq .finger-gap-wrap {
  display: flex;
  align-items: stretch;
  justify-content: center;
  width: 100%;
  min-height: 220px;
  position: relative;
  z-index: 1;
}
#view-faq .finger-rail {
  flex: 1 1 auto;
  min-width: 12px;
  background: rgba(42, 36, 51, 0.52);
}
#view-faq .finger-rail-l { border-radius: 14px 0 0 14px; }
#view-faq .finger-rail-r { border-radius: 0 14px 14px 0; }
#view-faq .finger-gap {
  flex: 0 0 auto;
  box-sizing: content-box !important;
  width: 40px;
  min-height: 220px;
  background: transparent;
  border-left: 3px solid #2a2433;
  border-right: 3px solid #2a2433;
  position: relative;
}
#view-faq .finger-gap::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 18px;
  bottom: 18px;
  width: 0;
  border-left: 1px dashed rgba(42, 36, 51, 0.28);
  transform: translateX(-50%);
  pointer-events: none;
}
/* Guía visual: cómo poner el dedo */
#view-faq .dedo-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: center;
  margin: 0 0 4px;
}
#view-faq .dedo-row .finger-stage {
  flex: 1;
  min-width: 0;
}
#view-faq .dedo-howto {
  flex: 0 0 132px;
  text-align: center;
}
#view-faq .dedo-howto .howto-card { padding: 10px 8px 12px; }
#view-faq .dedo-howto-phone {
  height: 110px;
  max-width: 108px;
  margin: 0 auto;
  padding: 6px;
  box-sizing: border-box;
}
#view-faq .dedo-illus {
  display: flex;
  align-items: stretch;
  width: 100%;
  height: 100%;
  border-radius: 6px;
  overflow: hidden;
  background: #f3f0ea;
}
#view-faq .dedo-illus-rail {
  flex: 1 1 auto;
  min-width: 10px;
  background: rgba(42, 36, 51, 0.42);
  display: block;
}
#view-faq .dedo-illus-rail-l { border-radius: 4px 0 0 4px; }
#view-faq .dedo-illus-rail-r { border-radius: 0 4px 4px 0; }
#view-faq .dedo-illus-finger {
  flex: 0 0 22px;
  display: block;
  position: relative;
  align-self: stretch;
  margin: 2px 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,.28) 0 14%, transparent 22%),
    linear-gradient(180deg, #e8b89a 0%, #d4a07a 55%, #c48a68 100%);
  border-radius: 11px 11px 7px 7px;
  border-left: 1.5px solid #2a2433;
  border-right: 1.5px solid #2a2433;
  box-sizing: border-box;
}
#view-faq .dedo-illus-finger::before {
  /* uña en la punta (arriba) */
  content: "";
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 11px;
  height: 9px;
  border-radius: 5px 5px 3px 3px;
  background: rgba(255, 245, 235, 0.55);
  box-shadow: 0 0 0 1px rgba(42, 36, 51, 0.12);
}
#view-faq .dedo-illus-finger::after {
  /* marca donde irá el anillo */
  content: "";
  position: absolute;
  left: -1px;
  right: -1px;
  top: 52%;
  height: 7px;
  border-top: 1.5px dashed rgba(212, 160, 23, 0.85);
  border-bottom: 1.5px dashed rgba(212, 160, 23, 0.85);
  background: rgba(212, 160, 23, 0.18);
  pointer-events: none;
}
#view-faq .dedo-howto-cap {
  font-size: 9px;
  line-height: 1.25;
  margin-top: 6px;
  text-align: center;
}
@media (max-width: 380px) {
  #view-faq .dedo-row {
    flex-direction: column-reverse;
    align-items: stretch;
  }
  #view-faq .dedo-howto {
    flex: 0 0 auto;
    width: 100%;
    max-width: 220px;
    margin: 0 auto 8px;
  }
  #view-faq .dedo-howto-phone {
    max-width: 120px;
    height: 96px;
  }
}

#view-faq .ring-tip-text { transition: opacity .18s ease; }
#view-faq .tip-dim { opacity: 0.22; }

#view-faq #rt-metodo button { min-width: calc(50% - 8px); }

/* Cortes y tamaño de piedra */
#view-faq .cut-tool .cut-table {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 4px;
}
#view-faq .cut-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255,255,255,.03);
}
#view-faq .cut-ico {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  color: var(--gold-bright);
  margin-top: 2px;
}
#view-faq .cut-ico svg { display: block; }
#view-faq .cut-meta { flex: 1; min-width: 0; }
#view-faq .cut-name { font-size: 14px; line-height: 1.25; }
#view-faq .cut-en { color: var(--text-muted); font-weight: 500; font-size: 12px; }
#view-faq .cut-tip { margin: 3px 0 0; font-size: 12px; line-height: 1.3; }
#view-faq .cut-picks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin: 0 0 8px;
}
#view-faq .cut-picks button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  width: 64px;
  min-height: 58px;
  padding: 6px 4px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.04);
  color: var(--text);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.1;
}
#view-faq .cut-picks button.on {
  border-color: var(--gold);
  color: var(--gold-bright);
  background: rgba(212,175,55,.16);
}
#view-faq .cut-pick-ico {
  width: 22px;
  height: 22px;
  color: inherit;
}
#view-faq .cut-pick-ico svg { width: 22px; height: 22px; display: block; }
#view-faq .cut-pick-lab { text-align: center; }
#view-faq .cut-stage {
  min-height: 260px;
  justify-content: center;
}
#view-faq .cut-shape-svg {
  display: block;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  filter: drop-shadow(0 0 0.5px rgba(0,0,0,.35));
  overflow: visible;
}
#view-faq .cut-shape {
  background: #f5f0e8;
  box-shadow: 0 0 0 1px rgba(0,0,0,.25);
  flex: 0 0 auto;

}
#view-faq .faq-item a {
  color: var(--gold-bright);
  font-weight: 650;
  text-underline-offset: 2px;
}


/* —— Gold pricing (seller panel, internal cost) —— */
.gold-pricing-box {
  margin: 12px 0 16px;
  padding: 14px 14px 12px;
  border-radius: var(--radius);
  border: 1px solid rgba(212, 175, 55, 0.4);
  background: rgba(212, 175, 55, 0.07);
}

.gold-spot-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.gold-spot-main { flex: 1; min-width: 0; }

.gold-spot-value {
  margin: 4px 0 2px;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--gold-bright);
  letter-spacing: 0.01em;
}

.gold-spot-meta {
  margin: 0;
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.gold-pricing-hint {
  margin: 0 0 12px;
  font-size: 0.74rem;
  line-height: 1.4;
  color: var(--text-muted);
}

.cost-internal-row {
  margin: 8px 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px dashed rgba(212, 175, 55, 0.35);
}

.cost-line {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 3px 0;
}

.cost-line strong { color: var(--text); font-variant-numeric: tabular-nums; }

.cost-line.cost-total {
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px solid rgba(212, 175, 55, 0.25);
  font-weight: 700;
  color: var(--gold-bright);
}

.cost-line.cost-total strong { color: var(--gold-bright); font-size: 0.95rem; }

.field-hint-inline {
  display: block;
  margin-top: 4px;
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.btn-sm {
  padding: 6px 10px;
  font-size: 0.85rem;
  min-width: 40px;
}


/* —— Comprar checkout modal —— */
.modal-comprar {
  max-height: min(88vh, 720px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.comprar-piece-summary {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.3);
  font-size: 0.86rem;
  line-height: 1.4;
  color: var(--text);
}

.comprar-piece-summary strong {
  color: var(--gold-bright);
}

.pay-fieldset {
  border: none;
  margin: 0 0 14px;
  padding: 0;
}

.pay-fieldset .field-label {
  display: block;
  margin-bottom: 8px;
}

.pay-options,
.florida-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.florida-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.pay-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  cursor: pointer;
}

.pay-option:has(input:checked),
.pay-option.selected {
  border-color: rgba(212, 175, 55, 0.65);
  background: rgba(212, 175, 55, 0.12);
}

.pay-option input {
  margin-top: 3px;
  accent-color: var(--gold);
  flex-shrink: 0;
}

.pay-option-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.pay-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text);
}

.pay-fee {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.comprar-estimate {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px dashed rgba(212, 175, 55, 0.35);
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.comprar-estimate .est-line {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 2px 0;
}

.comprar-estimate .est-line.total {
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px solid rgba(212, 175, 55, 0.25);
  color: var(--gold-bright);
  font-weight: 700;
}

.comprar-notes {
  margin: 0 0 14px;
  font-size: 0.74rem;
  line-height: 1.4;
  color: var(--text-muted);
}

.comprar-notes strong {
  color: var(--text);
}

#btnComprarCancel {
  margin-top: 8px;
}

/* —— Cotizar modal (IA) —— */
.modal-cotizar {
  max-height: min(88vh, 760px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.modal select {
  width: 100%;
  background: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 12px 14px;
  outline: none;
  color: var(--text);
  font: inherit;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--gold-soft) 50%),
    linear-gradient(135deg, var(--gold-soft) 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% + 2px), calc(100% - 12px) calc(50% + 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  transition: border-color 0.15s ease;
}

.modal select:focus {
  border-color: var(--gold);
}

.modal select.invalid {
  border-color: var(--danger);
}

.cotizar-notice {
  margin: 4px 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.35);
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--text);
}

.cotizar-notice strong {
  color: var(--gold-bright);
}

.cotizar-steps {
  margin: 0 0 14px;
  padding: 10px 12px 10px 28px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px dashed rgba(212, 175, 55, 0.35);
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.cotizar-steps li {
  margin: 4px 0;
}

.cotizar-steps strong {
  color: var(--gold-soft);
}

.cotizar-deposit {
  margin: 0 0 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.18), rgba(212, 175, 55, 0.06));
  border: 1px solid rgba(212, 175, 55, 0.55);
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--text);
}

.cotizar-deposit strong {
  display: block;
  margin-bottom: 4px;
  color: var(--gold-bright);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

#btnCotizarCancel {
  margin-top: 8px;
}


/* —— Shipping options (Comprar) —— */
.ship-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ship-options .pay-option .pay-name {
  color: var(--gold-bright);
}

.ship-clause {
  margin: 10px 0 14px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.25);
  font-size: 0.78rem;
  line-height: 1.4;
  color: rgba(255,255,255,0.82);
}

.btn-confirm-lg {
  min-height: 56px;
  padding: 16px 20px;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: 14px;
}
.confirm-subtext {
  margin: 10px 0 4px;
  text-align: center;
  color: var(--gold-bright);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.35;
}

/* layout freeze fix · cut-shape brace · #view-faq scope · feed 100% · 2026-09-09T15:50+02:00 */


/* —— Venta video-only (~15s early-TikTok) —— */
.media-upload-block.is-venta-video #photoUploadWrap {
  display: none !important;
}

.media-upload-block.is-venta-video #videoUploadWrap {
  order: -1;
}

.media-upload-block.is-venta-video .video-preview {
  min-height: 200px;
  border-color: rgba(212, 175, 55, 0.55);
}

.gallery.is-video-only .gallery-slide.video-slide video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}

.gallery-dots .dot.video-dot[style*="background-image"] {
  background-size: cover;
  background-position: center;
  border-radius: 50%;
}

/* First-visit “Toca para oír” overlay (hides after session unmute) */
.gallery-slide.video-slide .video-tap-play {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: none;
  background: rgba(0, 0, 0, 0.28);
  color: #fff;
  cursor: pointer;
  font: inherit;
  -webkit-tap-highlight-color: transparent;
}
.gallery-slide.video-slide .video-tap-play[hidden] {
  display: none !important;
}
.gallery-slide.video-slide .video-tap-play .video-tap-pill {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 1rem 1.35rem 0.9rem;
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.gallery-slide.video-slide .video-tap-play .video-tap-icon {
  font-size: 2.75rem;
  line-height: 1;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.45));
}
.gallery-slide.video-slide .video-tap-play small {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  opacity: 0.95;
}
.gallery-slide.video-slide.has-video-ready .slide-fallback {
  opacity: 0;
  pointer-events: none;
}

/* TikTok-style mute: white circle, black speaker, right side */
.gallery-slide.video-slide .video-mute-btn {
  position: absolute;
  right: 14px;
  top: calc(var(--header-h, 88px) + var(--safe-top, 0px) + 28px);
  bottom: auto;
  z-index: 8;
  width: 48px;
  height: 48px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #fff;
  color: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
}
.gallery-slide.video-slide .video-mute-btn:active {
  transform: scale(0.94);
}
.gallery-slide.video-slide .video-mute-btn svg {
  display: block;
  width: 22px;
  height: 22px;
  pointer-events: none;
}
.gallery-slide.video-slide .video-mute-btn .video-mute-icon {
  font-size: 1.2rem;
  line-height: 1;
  color: #111;
}
.gallery-slide.video-slide .video-mute-btn[data-muted="0"] {
  background: #fff;
}
.gallery-slide.video-slide .video-mute-btn[data-muted="1"] {
  background: #fff;
}

/* Bunny Stream embed in TikTok-style feed */
.gallery-slide.bunny-slide {
  position: relative;
  background: #0a0a0a;
}
.gallery-slide.bunny-slide .bunny-embed {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: inherit;
}
.gallery-slide.bunny-slide .bunny-processing {
  position: absolute;
  left: 50%;
  bottom: 1.25rem;
  transform: translateX(-50%);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: #f5e6c8;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  pointer-events: none;
  opacity: 0.85;
}


/* —— Seller listings / eliminar publicación —— */
.seller-listings {
  margin: 0 0 22px;
  padding: 14px 14px 10px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}

.seller-listings-head {
  margin-bottom: 12px;
}

.seller-listings-title {
  margin: 0 0 4px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.01em;
}

.seller-listings-sub {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--text-muted);
}

.seller-listings-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.seller-listing-row {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: calc(var(--radius) - 4px);
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(212, 175, 55, 0.18);
}

.seller-listing-thumb,
.seller-listing-thumb-fallback {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  object-fit: cover;
  background: rgba(212, 175, 55, 0.12);
}

.seller-listing-thumb-fallback {
  display: grid;
  place-items: center;
  font-size: 1.35rem;
}

.seller-listing-meta {
  min-width: 0;
}

.seller-listing-meta h3 {
  margin: 0 0 2px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.seller-listing-sub,
.seller-listing-bunny {
  margin: 0;
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.seller-listing-bunny {
  color: var(--gold-bright);
  margin-top: 2px;
}

.btn-danger-outline {
  flex-shrink: 0;
  background: transparent;
  border: 1px solid rgba(220, 90, 90, 0.55);
  color: #f0a0a0;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  white-space: nowrap;
}

.btn-danger-outline:hover,
.btn-danger-outline:focus-visible {
  background: rgba(220, 90, 90, 0.14);
  border-color: rgba(240, 120, 120, 0.85);
  color: #ffc9c9;
}

.btn-danger-outline:active {
  transform: scale(0.97);
}

.seller-listings-empty-msg {
  margin: 4px 0 8px;
  padding: 14px 12px;
}

@media (max-width: 380px) {
  .seller-listing-row {
    grid-template-columns: 48px 1fr;
    grid-template-rows: auto auto;
  }
  .btn-seller-delete {
    grid-column: 1 / -1;
    justify-self: stretch;
    text-align: center;
  }
}
