@import '/css/design-system.css';

/* ========================================================
   GEMPRO LUXURY GEMSTONE MARKETPLACE DESIGN SYSTEM
   THEME: DARK OBSIDIAN, CHAMPAGNE GOLD & RADIANT EMERALD
   ======================================================== */
:root {
  color-scheme: dark;
  --bg-obsidian: #040813;
  --bg-deep: #060c1c;
  --bg-surface: #0a1329;
  --bg-card: rgba(13, 23, 46, 0.76);
  --bg-card-hover: rgba(20, 34, 66, 0.92);
  --bg-card-solid: #0d172e;
  --bg-input: rgba(10, 18, 36, 0.9);
  
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --line-highlight: rgba(212, 175, 55, 0.4);
  
  --ink: #f8fafc;
  --ink-2: #cbd5e1;
  --muted: #94a3b8;
  --subtle: #64748b;
  
  /* Luxury Color Accents */
  --gold: #d4af37;
  --gold-light: #f5e6a8;
  --gold-dark: #aa8024;
  --gold-glow: 0 0 24px rgba(212, 175, 55, 0.3);
  --gold-gradient: linear-gradient(135deg, #f5e6a8 0%, #d4af37 50%, #997825 100%);
  
  --emerald: #10b981;
  --emerald-light: #6ee7b7;
  --emerald-dark: #059669;
  --emerald-glow: 0 0 24px rgba(16, 185, 129, 0.35);
  --emerald-gradient: linear-gradient(135deg, #10b981 0%, #059669 100%);
  
  --teal: #14b8a6;
  --teal-dark: #0d9488;
  --cyan-glow: 0 0 25px rgba(20, 184, 166, 0.35);
  --sapphire: #3b82f6;
  --danger: #f43f5e;
  
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.7);
  --shadow-md: 0 14px 34px rgba(0, 0, 0, 0.5);
  --shadow-sm: 0 6px 18px rgba(0, 0, 0, 0.4);
  
  --paper: var(--bg-obsidian);
  --card: var(--bg-card-solid);
  --soft: rgba(255, 255, 255, 0.06);
  --shadow: var(--shadow-lg);

  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Inter, ui-sans-serif, sans-serif;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  background: var(--bg-obsidian);
  width: 100% !important;
  max-width: 100vw !important;
  overflow-x: hidden !important;
  position: relative;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg-obsidian);
  color: var(--ink);
  width: 100% !important;
  max-width: 100vw !important;
  overflow-x: hidden !important;
  position: relative;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Global Site Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 72px;
  padding: 12px max(20px, calc((100vw - 1180px) / 2));
  background: rgba(4, 8, 19, 0.85);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
  overflow-x: hidden;
}

.brand { display: inline-flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.brand .brand-logo-img {
  height: 44px;
  width: auto;
  max-width: 135px;
  object-fit: contain;
  transition: transform .2s ease;
}
.brand .brand-logo-dark {
  display: block !important;
}
.brand .brand-logo-light {
  display: none !important;
}
html[data-theme="light"] .brand .brand-logo-dark {
  display: none !important;
}
html[data-theme="light"] .brand .brand-logo-light {
  display: block !important;
}
.brand:hover .brand-logo-dark,
.brand:hover .brand-logo-light { transform: scale(1.02); }
.brand-mark { position: relative; display: grid; place-items: center; width: 34px; height: 30px; color: var(--ink); }
.brand-mark::before { content: "◇"; font-size: 34px; line-height: 1; transform: scaleX(1.12) rotate(45deg); }
.brand b { color: var(--emerald-light); }
.site-nav { display: flex; align-items: center; gap: 8px; }
.site-nav a { padding: 10px 14px; border-radius: 12px; color: var(--muted); font-weight: 700; text-decoration: none; transition: .18s ease; }
.site-nav a:hover, .site-nav a.active { background: var(--soft); color: var(--ink); }

/* Global Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
  backdrop-filter: blur(10px);
}
.button:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
}
.button.primary {
  border-color: rgba(16, 185, 129, 0.4);
  background: var(--emerald-gradient);
  color: white;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35);
}
.button.primary:hover {
  border-color: var(--emerald-light);
  box-shadow: 0 8px 26px rgba(16, 185, 129, 0.5);
}
.button.gold {
  border-color: rgba(212, 175, 55, 0.5);
  background: var(--gold-gradient);
  color: #0c0a03;
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.35);
}
.button.gold:hover {
  box-shadow: 0 8px 26px rgba(212, 175, 55, 0.5);
}
.button.ghost {
  background: transparent;
  border-color: transparent;
  color: var(--muted);
}
.button.ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--line);
  color: var(--ink);
}
.button.small { min-height: 38px; padding: 0 14px; border-radius: 11px; font-size: 13px; }
.button:disabled { opacity: .55; cursor: wait; transform: none; }

/* ========================================================
   SINGLE MODE TOGGLE, THEME SWITCHER & HEADER
   ======================================================== */
.marketplace-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Compact Single Icon Mode Switcher Button */
.header-mode-toggle-wrap {
  display: flex;
  align-items: center;
}
.single-mode-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(11, 20, 40, 0.85);
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
  transition: all .2s ease;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}
.single-mode-toggle-btn:hover {
  border-color: var(--gold);
  color: var(--gold-light);
  box-shadow: 0 0 18px rgba(212, 175, 55, 0.35);
  transform: translateY(-1px);
}
.single-mode-toggle-btn.is-catalog {
  border-color: rgba(212, 175, 55, 0.55);
  background: rgba(212, 175, 55, 0.12);
  color: var(--gold-light);
}
.single-mode-toggle-btn .mode-toggle-icon {
  font-size: 16px;
  line-height: 1;
}
.single-mode-toggle-btn .mode-tooltip-label {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--ink-2);
}

/* Theme Toggle Button (Sun / Moon) */
.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  min-width: 38px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(11, 20, 40, 0.85);
  color: var(--ink);
  font-size: 16px;
  cursor: pointer;
  transition: all .2s ease;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}
.theme-toggle-btn:hover {
  border-color: var(--gold);
  box-shadow: 0 0 16px rgba(212, 175, 55, 0.4);
  transform: scale(1.06);
}
.theme-toggle-icon {
  line-height: 1;
}

/* Legacy/Fallback Mode Switcher */
.view-mode-switcher {
  display: flex;
  align-items: center;
  padding: 4px;
  border-radius: 999px;
  background: rgba(11, 20, 40, 0.85);
  border: 1px solid var(--line-strong);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(16px);
}
.mode-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: all .2s ease;
}
.mode-tab:hover { color: var(--ink); }
.mode-tab.active {
  background: var(--gold-gradient);
  color: #0c0a03;
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.35);
}
.mode-icon { font-size: 15px; }

.currency-selector-box { display: inline-flex; align-items: center; }
.currency-header-select {
  height: 38px;
  padding: 0 12px;
  border-radius: 11px;
  border: 1px solid var(--line-strong);
  background: rgba(11, 20, 40, 0.85);
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
  transition: .2s ease;
  outline: none;
  backdrop-filter: blur(12px);
}
.currency-header-select:hover {
  border-color: var(--gold);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.25);
}

.saved-trigger-btn, .deals-trigger-btn {
  position: relative;
  gap: 6px;
  font-weight: 800;
}
.heart-icon { color: #f43f5e; font-size: 15px; }
.escrow-icon { font-size: 14px; }
.saved-counter-badge, .deals-counter-badge {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--gold);
  color: #0c0a03;
  font-size: 10px;
  font-weight: 900;
}
.saved-counter-badge { background: #f43f5e; color: white; }

.header-sell,
html[data-theme="light"] .header-sell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 12px;
  background: var(--emerald-gradient) !important;
  color: white !important;
  font-weight: 850;
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.45) !important;
  border: 1px solid rgba(16, 185, 129, 0.5) !important;
  flex-shrink: 0;
  transition: transform .18s ease, box-shadow .18s ease;
}
.header-sell:hover,
html[data-theme="light"] .header-sell:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #10b981 0%, #047857 100%) !important;
  box-shadow: 0 6px 22px rgba(16, 185, 129, 0.6) !important;
  color: white !important;
}
.header-sell .sell-plus { font-size: 15px; line-height: 1; }
.header-sell .sell-text-desktop { display: inline; }
.header-sell .sell-text-mobile { display: none; }

/* Luxury Emerald Green Styling for Sell in Mobile Navigation */
.mobile-nav a[href="/sell"],
html[data-theme="light"] .mobile-nav a[href="/sell"] {
  color: #10b981 !important;
  font-weight: 850 !important;
}
.mobile-nav a[href="/sell"] b,
html[data-theme="light"] .mobile-nav a[href="/sell"] b {
  color: #10b981 !important;
  text-shadow: 0 0 12px rgba(16, 185, 129, 0.45) !important;
}
.mobile-nav a.active[href="/sell"],
html[data-theme="light"] .mobile-nav a.active[href="/sell"] {
  color: #10b981 !important;
  text-shadow: 0 0 14px rgba(16, 185, 129, 0.65) !important;
}

/* ========================================================
   GEMREELS IMMERSIVE PLAYER (TIKTOK / REELS FOR GEMSTONES)
   ======================================================== */
body.reels-active { overflow: hidden; height: 100vh; height: 100dvh; background: var(--bg-obsidian); }
.gem-reels-section {
  position: relative;
  width: 100%;
  height: calc(100vh - 72px);
  height: calc(100dvh - 72px);
  overflow: hidden;
  background: var(--bg-obsidian);
}
.gem-reels-section[hidden] { display: none; }

/* Luxury Floating Sound Controller (Icon-Only) */
.reels-global-sound { position: absolute; top: 16px; right: 16px; z-index: 30; }
.sound-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(6, 13, 28, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: white;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: all .2s ease;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}
.sound-toggle-btn.icon-only {
  width: 42px;
  height: 42px;
  min-height: 42px;
  min-width: 42px;
  padding: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sound-toggle-btn.icon-only .sound-icon {
  font-size: 19px;
  line-height: 1;
}
.sound-toggle-btn:hover {
  background: rgba(8, 18, 40, 0.95);
  border-color: var(--gold);
  transform: scale(1.05);
}
.sound-bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 2.5px;
  height: 12px;
}
.s-bar {
  width: 2.5px;
  height: 30%;
  border-radius: 2px;
  background: var(--gold);
  transition: height .2s ease;
}
.sound-toggle-btn.is-unmuted .s-bar:nth-child(1) { animation: soundWave 0.8s ease-in-out infinite alternate; }
.sound-toggle-btn.is-unmuted .s-bar:nth-child(2) { animation: soundWave 1.1s ease-in-out infinite 0.2s alternate; }
.sound-toggle-btn.is-unmuted .s-bar:nth-child(3) { animation: soundWave 0.7s ease-in-out infinite 0.4s alternate; }
@keyframes soundWave { 0% { height: 20%; } 100% { height: 100%; } }

.reels-feed {
  width: 100%;
  height: 100%;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  background: var(--bg-obsidian);
}
.reels-feed::-webkit-scrollbar { display: none; }

.reel-slide {
  position: relative;
  width: 100%;
  height: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #000;
  touch-action: pan-y;
}

/* Ambient colored gem backdrop aura */
.reel-slide::before {
  content: "";
  position: absolute;
  inset: -60px;
  background: radial-gradient(circle at 50% 50%, var(--gem-glow, #114e8a) 0%, rgba(3,10,23,0.94) 65%, #02060f 100%);
  opacity: 0.65;
  filter: blur(40px);
  pointer-events: none;
  z-index: 1;
}

/* Desktop Smartphone Framing (9:16 vertical luxury frame) */
.reel-media-wrap {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  max-width: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
  background: #000;
  transition: all .2s ease;
}
@media (min-width: 900px) {
  .reel-media-wrap {
    height: calc(100% - 24px);
    margin: 12px 0;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.8), 0 0 45px var(--gem-glow, rgba(17, 78, 138, 0.35));
  }
}

.reel-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; z-index: 2; opacity: 1; }
.reel-fallback-photo { width: 100%; height: 100%; object-fit: cover; }
.reel-gem-ambient { position: absolute; inset: 0; width: 100%; height: 100%; display: grid; place-items: center; z-index: 1; }
.reel-sparkle-gem { font-size: 80px; filter: drop-shadow(0 0 30px rgba(255,255,255,0.6)); animation: gemPulse 3s ease-in-out infinite; }
@keyframes gemPulse { 0%, 100% { transform: scale(1) rotate(0deg); } 50% { transform: scale(1.12) rotate(6deg); } }

.gem-price-stack { display: flex; flex-direction: column; gap: 2px; }
.gem-per-carat-badge { font-size: 12px; font-weight: 850; color: var(--gold-light); letter-spacing: 0.3px; }
.stone-per-carat { font-size: 11px; font-weight: 850; color: var(--gold-light); background: rgba(212, 175, 55, 0.14); border: 1px solid rgba(212, 175, 55, 0.28); padding: 2px 7px; border-radius: 6px; display: inline-block; }

/* Tap Indicator Pulse */
.playback-pulse-indicator {
  position: absolute;
  z-index: 20;
  display: grid;
  place-items: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(10px);
  color: white;
  font-size: 32px;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.6);
  transition: opacity .2s, transform .2s;
}
.playback-pulse-indicator.animate { opacity: 1; transform: scale(1.1); transition: none; animation: pulseFade .7s forwards ease-out; }
@keyframes pulseFade { 0% { opacity: 1; transform: scale(0.8); } 50% { opacity: 0.9; transform: scale(1.15); } 100% { opacity: 0; transform: scale(1.3); } }

/* Double Tap Heart Burst */
.floating-heart-burst {
  position: absolute;
  z-index: 30;
  font-size: 56px;
  pointer-events: none;
  animation: heartBurst .9s ease-out forwards;
  filter: drop-shadow(0 4px 18px rgba(212, 175, 55, 0.8));
}
@keyframes heartBurst {
  0% { transform: scale(0.4) translateY(0); opacity: 0; }
  20% { transform: scale(1.3) translateY(-10px); opacity: 1; }
  80% { transform: scale(1) translateY(-40px); opacity: 0.9; }
  100% { transform: scale(0.8) translateY(-70px); opacity: 0; }
}

/* Reel Overlays */
.reel-overlay {
  position: absolute;
  inset: 0;
  z-index: 10;
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px 16px 26px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(3,10,23,0.6) 0%, transparent 16%, transparent 60%, rgba(3,10,23,0.92) 100%);
}
.reel-overlay * { pointer-events: auto; }

.reel-top-row { display: flex; align-items: center; justify-content: space-between; }
.ref-pill-box { display: inline-flex; align-items: center; gap: 8px; }
.ref-code-text {
  padding: 5px 10px;
  border-radius: 8px;
  background: rgba(6, 14, 30, 0.85);
  border: 1px solid rgba(255,255,255,0.18);
  color: white;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.8px;
}
.pill-cert {
  padding: 5px 10px;
  border-radius: 8px;
  background: rgba(16, 185, 129, 0.85);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: white;
  font-size: 11px;
  font-weight: 850;
}
.pill-cert.natural {
  background: rgba(37, 99, 235, 0.85);
  border-color: rgba(37, 99, 235, 0.4);
}

.reel-bottom-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; width: 100%; }

/* Glassmorphic Spec Badge (Bottom Left) - Modern Compact Layout */
.reel-gem-card {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(8, 16, 34, 0.84);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  transition: all .24s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reel-gem-card:hover {
  border-color: rgba(255, 255, 255, 0.35);
}

.gem-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}
.gem-primary-line {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex: 1;
  min-width: 0;
}
.gem-heading {
  margin: 0;
  font-size: 17px;
  font-weight: 850;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gem-carat-tag {
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(16, 185, 129, 0.22);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

/* Compact Price Row + More Info Button */
.gem-card-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.gem-price-stack {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}
.gem-price-amount {
  font-size: 21px;
  font-weight: 900;
  color: #38bdf8;
  text-shadow: 0 2px 10px rgba(56, 189, 248, 0.4);
  line-height: 1.1;
}
.gem-per-carat-badge {
  font-size: 11.5px;
  font-weight: 800;
  color: #cbd5e1;
  letter-spacing: 0.2px;
  white-space: nowrap;
}

/* More Details / More Info Pill Button */
.reel-more-details-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.reel-more-details-btn:hover {
  background: rgba(255, 255, 255, 0.24);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-1px);
}
.reel-more-details-btn .toggle-chevron {
  font-size: 12px;
  line-height: 1;
  transition: transform .2s ease;
}

/* Expandable Drawer (Hidden by default in compact mode) */
.gem-expanded-drawer {
  display: none;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  animation: reelDrawerFadeIn 0.22s ease forwards;
}
.reel-gem-card.is-expanded .gem-expanded-drawer {
  display: block;
}

@keyframes reelDrawerFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.gem-specs-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 8px;
}
.gem-specs-row span,
.gem-specs-row .spec-pill {
  padding: 3px 8px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.11);
  color: #f1f5f9;
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 11px;
  font-weight: 750;
  cursor: pointer;
  transition: background .15s ease;
}
.gem-specs-row span:hover,
.gem-specs-row .spec-pill:hover {
  background: rgba(255, 255, 255, 0.2);
}

.gem-dossier-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.gem-dossier-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 9px;
  background: rgba(56, 189, 248, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #38bdf8;
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease;
  width: 100%;
  justify-content: space-between;
}
.gem-dossier-action-btn:hover {
  background: rgba(56, 189, 248, 0.25);
  border-color: #38bdf8;
  transform: translateY(-1px);
}
.gem-dossier-action-btn .dossier-icon { font-size: 13px; }
.gem-dossier-action-btn .dossier-arrow { font-size: 12px; font-weight: 900; }

/* Backwards compatibility classes */
.gem-price-dock {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.gem-dossier-link {
  font-size: 11px;
  font-weight: 800;
  color: rgba(255,255,255,0.7);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Vertical Action Dock (Bottom Right) */
.reel-action-dock { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-bottom: 4px; }
.reel-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(8, 16, 34, 0.76);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: white;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}
.reel-btn:hover {
  transform: scale(1.08);
  background: rgba(12, 24, 50, 0.95);
  border-color: var(--line-highlight);
}
.reel-btn:active { transform: scale(0.96); }
.reel-btn .action-icon, .reel-btn .fav-icon { font-size: 18px; line-height: 1; }
.reel-btn .btn-label { font-size: 9px; font-weight: 850; letter-spacing: 0.3px; color: rgba(255,255,255,0.85); }

.reel-btn.fav-btn.saved {
  background: #fff0f3;
  border-color: #ff91a0;
  color: #d63353;
  box-shadow: 0 8px 24px rgba(214, 51, 83, 0.45);
}
.reel-btn.fav-btn.saved .btn-label { color: #d63353; }
.reel-btn.buy-btn {
  background: var(--emerald-gradient);
  border-color: rgba(16, 185, 129, 0.6);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.45);
}
.reel-btn.offer-btn {
  border-color: rgba(212, 175, 55, 0.4);
}
.reel-btn.offer-btn:hover {
  border-color: var(--gold);
}

.reels-empty-state {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
  text-align: center;
  color: white;
}
.reels-empty-state .empty-icon { font-size: 64px; margin-bottom: 12px; }
.reels-empty-state h3 { font-size: 22px; margin: 0 0 6px; }
.reels-empty-state p { color: #94a3b8; font-size: 14px; margin: 0 0 18px; }

/* ========================================================
   CATALOG GRID VIEW (SEARCH & MULTI-FACET FILTER)
   ======================================================== */
.catalog-section {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 100px;
}
.catalog-search-bar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  margin-bottom: 18px;
}
.search-box {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}
.search-box input {
  width: 100%;
  min-height: 54px;
  padding: 0 46px 0 20px;
  border-radius: 16px;
  border: 1px solid var(--line-strong);
  background: var(--bg-card);
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  outline: none;
  backdrop-filter: blur(16px);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.search-box input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}
.search-box input::placeholder { color: var(--subtle); }
.search-clear-btn {
  position: absolute;
  right: 14px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.1);
  color: var(--ink);
  font-size: 18px;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.search-clear-btn:hover { background: rgba(255, 255, 255, 0.2); }

.filter-toggle-btn {
  position: relative;
  gap: 8px;
  min-height: 54px;
  padding: 0 20px;
  font-weight: 850;
  border-radius: 16px;
}
.filter-active-dot {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.8);
}

/* Collapsible Filter Panel */
.filter-panel {
  display: none;
  padding: 24px;
  border-radius: 20px;
  background: var(--bg-card);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(24px);
  margin-bottom: 24px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
}
.filter-panel.open {
  display: block;
  animation: slideDownFade .24s ease-out;
}
@keyframes slideDownFade {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
.filter-grid-advanced {
  display: grid;
  grid-template-columns: repeat(3, 1fr) 1.2fr 1.2fr;
  gap: 16px;
  margin-bottom: 18px;
}
.filter-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.control {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: var(--bg-input);
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 700;
  outline: none;
  transition: border-color .18s ease;
}
.control:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}
.control option {
  background: #081022;
  color: var(--ink);
}

.range-scale {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  margin-top: 4px;
}
.filter-actions-row {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.catalog-heading-bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin: 28px 0 18px;
}
.eyebrow {
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--gold);
}
.catalog-heading-bar h2 {
  margin: 4px 0 0;
  font-size: clamp(24px, 3vw, 32px);
  letter-spacing: -1px;
  color: var(--ink);
}
.sort-control { width: auto; min-width: 170px; }

/* Luxury Stone Grid Cards */
.stone-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 16px;
}
.stone-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  backdrop-filter: blur(16px);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.stone-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-highlight);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.6), 0 0 25px rgba(212, 175, 55, 0.15);
}
.stone-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: radial-gradient(circle at 50% 40%, var(--gem-light, #1e3a8a) 0%, var(--gem, #0f172a) 60%, #020610 100%);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.stone-visual img,
.stone-visual video,
.stone-visual .stone-visual-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
  transition: transform .4s ease;
}
.stone-visual:hover img,
.stone-visual:hover video,
.stone-visual:hover .stone-visual-media {
  transform: scale(1.05);
}
.stone-visual-ambient {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  pointer-events: none;
}
.stone-ambient-crystal {
  font-size: 34px;
  opacity: 0.8;
  filter: drop-shadow(0 0 16px var(--gem-light, rgba(255, 255, 255, 0.4)));
  user-select: none;
}
.code-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(5, 10, 20, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #e2e8f0;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.6px;
}
.favorite-button {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(5, 10, 20, 0.7);
  backdrop-filter: blur(8px);
  color: white;
  font-size: 16px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform .18s ease, background .18s ease;
}
.favorite-button:hover {
  transform: scale(1.1);
  background: rgba(5, 10, 20, 0.95);
}
.favorite-button.saved {
  background: #fff0f3;
  border-color: #ff91a0;
  color: #d63353;
  box-shadow: 0 4px 14px rgba(214, 51, 83, 0.4);
}
.play-reel-pill {
  position: absolute;
  bottom: 12px;
  left: 12px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(6, 14, 30, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  color: white;
  font-size: 11px;
  font-weight: 850;
  box-shadow: 0 6px 16px rgba(0,0,0,0.4);
  transition: .18s ease;
}
.stone-visual:hover .play-reel-pill {
  transform: scale(1.05);
  background: var(--gold-gradient);
  color: #0c0a03;
}

.stone-info {
  display: flex;
  flex-direction: column;
  padding: 18px;
  flex: 1;
}
.stone-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.stone-topline h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 850;
  color: #f8fafc;
  line-height: 1.25;
}
.stone-price-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
}
.stone-price {
  font-size: 18px;
  font-weight: 900;
  color: #38bdf8;
  letter-spacing: -0.5px;
}

.stone-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}
.stone-meta span {
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 11px;
  font-weight: 750;
  color: #cbd5e1;
}
.stone-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: auto;
}

/* Trust Strip */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 48px;
}
.trust-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px;
  border-radius: 18px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  backdrop-filter: blur(16px);
}
.trust-icon { font-size: 28px; margin-bottom: 4px; }
.trust-item strong { color: var(--ink); font-size: 14px; }
.trust-item span { color: var(--muted); font-size: 12px; line-height: 1.45; }

/* ========================================================
   MODALS: OFFER, BUY, DETAILS, SAVED
   ======================================================== */
.modal-backdrop {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  background: rgba(2, 5, 12, 0.84);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
}
.modal-backdrop[hidden] { display: none !important; }

.offer-modal {
  position: relative;
  width: min(520px, 100%);
  max-height: min(88vh, calc(100dvh - 32px));
  overflow-y: auto;
  overscroll-behavior: contain;
  margin: auto;
  padding: 26px 24px 30px;
  border-radius: 24px;
  background: rgba(10, 18, 36, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(30px);
  box-sizing: border-box;
  color: var(--ink);
}
.offer-modal h2 {
  margin: 6px 0 4px;
  font-size: clamp(22px, 3.5vw, 28px);
  letter-spacing: -0.5px;
  color: var(--ink);
}
.offer-modal p {
  margin: 0 0 16px;
  color: var(--muted);
}
.modal-stone-subtitle {
  margin: 4px 0 18px;
  color: var(--gold-light);
  font-size: 13px;
  font-weight: 700;
}
.modal-close {
  position: sticky;
  top: 0;
  float: right;
  margin-top: -4px;
  margin-right: -4px;
  z-index: 20;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
  font-size: 22px;
  cursor: pointer;
  transition: background .15s ease, transform .15s ease;
}
.modal-close:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: scale(1.06);
}

.offer-box-container {
  padding: 20px;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: rgba(6, 12, 26, 0.85);
}
.offer-price-readout {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  margin-bottom: 14px;
}
.offer-curr-sym { font-size: 28px; font-weight: 800; color: var(--gold); }
.offer-val-text { font-size: 50px; font-weight: 900; letter-spacing: -2px; color: #38bdf8; line-height: 1; text-shadow: 0 0 20px rgba(56, 189, 248, 0.35); }

.discount-chips-row { display: flex; justify-content: center; gap: 8px; margin-bottom: 14px; }
.discount-chip {
  padding: 7px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 12px;
  font-weight: 850;
  color: var(--ink-2);
  cursor: pointer;
  transition: .15s ease;
}
.discount-chip:hover {
  border-color: var(--gold);
  color: var(--gold-light);
  background: rgba(212, 175, 55, 0.12);
}
.discount-chip.active {
  background: var(--gold-gradient);
  border-color: var(--gold);
  color: #0c0a03;
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.35);
}

.buy-summary-card {
  padding: 20px;
  border-radius: 18px;
  background: rgba(6, 12, 26, 0.85);
  border: 1px solid var(--line-strong);
  margin-bottom: 18px;
}
.buy-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.buy-price-row strong { font-size: 26px; font-weight: 900; color: #34d399; text-shadow: 0 0 15px rgba(52, 211, 153, 0.35); }

.escrow-process-steps { display: grid; gap: 12px; margin-top: 14px; }
.escrow-step { display: flex; align-items: flex-start; gap: 12px; }
.escrow-step .step-num {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--emerald-gradient);
  color: white;
  font-size: 11px;
  font-weight: 900;
  flex-shrink: 0;
}
.escrow-step strong { display: block; font-size: 12px; color: var(--ink); }
.escrow-step span { display: block; font-size: 11px; color: var(--muted); line-height: 1.35; }

.field-help-text { display: block; margin-top: 5px; font-size: 11px; color: var(--muted); line-height: 1.3; }
.privacy-footnote { display: block; margin-top: 14px; font-size: 11px; color: var(--muted); text-align: center; }

/* Stone Details Dossier */
.details-modal { width: min(540px, 100%); }
.details-specs-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 16px 0; }
.spec-detail-item {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(6, 12, 26, 0.7);
  border: 1px solid var(--line);
}
.spec-detail-item span { display: block; font-size: 11px; color: var(--muted); font-weight: 750; text-transform: uppercase; margin-bottom: 2px; }
.spec-detail-item strong { display: block; font-size: 14px; color: var(--ink); font-weight: 850; }

.cert-status-card { margin-bottom: 18px; }
.cert-box-verified {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.cert-box-verified.natural {
  background: rgba(37, 99, 235, 0.12);
  border-color: rgba(37, 99, 235, 0.3);
}
.cert-icon { font-size: 24px; flex-shrink: 0; }
.cert-box-verified strong { display: block; font-size: 13px; color: var(--ink); }
.cert-box-verified small { font-size: 11px; color: var(--muted); line-height: 1.3; }
.modal-dual-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }

/* Saved Modal */
.saved-modal { width: min(540px, 100%); max-height: 85vh; overflow-y: auto; }
.saved-items-grid { display: grid; gap: 10px; margin-top: 16px; }
.saved-stone-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(6, 12, 26, 0.7);
}
.saved-thumb-box {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255,255,255,0.06);
  font-size: 24px;
  flex-shrink: 0;
}
.saved-info-box { flex: 1; min-width: 0; }
.saved-info-box strong { display: block; font-size: 14px; color: var(--ink); }
.saved-info-box small { display: block; font-size: 12px; color: var(--muted); }
.saved-price { display: block; font-size: 14px; font-weight: 850; color: #38bdf8; margin-top: 2px; }

/* ========================================================
   SELLER STUDIO (ZERO-TYPING LUXURY VAULT)
   ======================================================== */
.seller-body { background: var(--bg-obsidian); color: var(--ink); }
.seller-shell { width: min(860px, calc(100% - 24px)); margin: 0 auto; padding: 24px 0 110px; }
.seller-intro { text-align: center; margin-bottom: 26px; }
.seller-intro h1 { margin: 8px 0; font-size: clamp(32px, 5.5vw, 48px); letter-spacing: -2px; color: var(--ink); }
.seller-intro p { max-width: 580px; margin: 0 auto; color: var(--muted); font-size: 15px; }

.qr-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--emerald-light);
  font-size: 12px;
  font-weight: 850;
}
.qr-pill span { font-size: 14px; }

.seller-rail { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 20px 0 28px; }
.rail-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px;
  border-radius: 14px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: all .2s ease;
}
.rail-item:hover { border-color: rgba(255,255,255,0.2); color: var(--ink); }
.rail-item.active {
  background: var(--gold-gradient);
  border-color: var(--gold);
  color: #0c0a03;
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.35);
}
.rail-num {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  font-size: 11px;
}
.rail-item.active .rail-num { background: #0c0a03; color: var(--gold-light); }

.form-card {
  margin-bottom: 24px;
  padding: 28px;
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  background: var(--bg-card);
  backdrop-filter: blur(24px);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.45);
}
.form-card-head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.step-number {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border-radius: 13px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: var(--emerald-light);
  font-size: 18px;
  font-weight: 900;
}
.form-card h2 { margin: 0; font-size: 22px; color: var(--ink); }
.form-card .subcopy { margin: 4px 0 0; color: var(--muted); font-size: 13px; }

.filming-tip-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 16px;
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.25);
  margin-bottom: 20px;
}
.tip-icon { font-size: 26px; flex-shrink: 0; }
.tip-text strong { display: block; color: var(--gold-light); font-size: 13px; }
.tip-text span { color: #d4c59a; font-size: 12px; line-height: 1.4; }

.video-choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.upload-tile {
  position: relative;
  display: flex;
  min-height: 154px;
  align-items: center;
  justify-content: center;
  padding: 20px;
  border: 2px dashed rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  background: rgba(6, 12, 26, 0.7);
  text-align: center;
  cursor: pointer;
  transition: all .2s ease;
}
.upload-tile:hover {
  border-color: var(--emerald);
  background: rgba(16, 185, 129, 0.08);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.2);
}
.upload-tile input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.tile-content { display: flex; flex-direction: column; align-items: center; }
.tile-content.horizontal { flex-direction: row; gap: 14px; text-align: left; }
.upload-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 10px;
  border-radius: 50%;
  font-size: 20px;
  color: white;
}
.upload-icon.small { width: 40px; height: 40px; font-size: 18px; margin-bottom: 0; flex-shrink: 0; }
.upload-icon.gallery-video-icon { background: linear-gradient(135deg, #1d5cb6, #0e3774); box-shadow: 0 6px 18px rgba(29, 92, 182, 0.35); }
.upload-icon.camera-video-icon { background: linear-gradient(135deg, #0f917b, #096858); box-shadow: 0 6px 18px rgba(15, 145, 123, 0.35); }
.upload-icon.photo-icon { background: #1e293b; border: 1px solid var(--line); }

.badge-source {
  margin-top: 6px;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(59, 130, 246, 0.18);
  color: #93c5fd;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.5px;
}
.badge-source.camera {
  background: rgba(16, 185, 129, 0.18);
  color: var(--emerald-light);
}
.badge-required {
  margin-top: 8px;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(244, 63, 94, 0.18);
  color: #fda4af;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.5px;
}

.photo-tile-copy strong { display: block; font-size: 13px; color: var(--ink); }
.photo-tile-copy small { font-size: 11px; color: var(--muted); }
.upload-tile.has-file { border-style: solid; border-color: var(--emerald); background: rgba(16, 185, 129, 0.12); }
.upload-tile.compact { min-height: 72px; padding: 12px 18px; }

.media-preview-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 14px; }
.media-empty {
  grid-column: 1/-1;
  padding: 20px;
  border-radius: 14px;
  background: rgba(6, 12, 26, 0.6);
  border: 1px dashed var(--line);
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}
.media-preview-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #08152c;
  border: 1px solid var(--line);
  box-shadow: 0 6px 16px rgba(0,0,0,0.4);
}
.media-preview-item video, .media-preview-item img { display: block; width: 100%; height: 130px; object-fit: cover; }
.media-preview-item .file-caption {
  padding: 8px 10px;
  background: rgba(10, 18, 36, 0.95);
  color: var(--ink-2);
  font-size: 11px;
  font-weight: 750;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ready-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  padding: 4px 8px;
  border-radius: 7px;
  background: rgba(16,185,129,0.92);
  color: white;
  font-size: 9px;
  font-weight: 900;
}
.remove-media-btn {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 4;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 0;
  background: rgba(6, 14, 30, 0.85);
  color: white;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: .15s ease;
  backdrop-filter: blur(4px);
}
.remove-media-btn:hover { background: #f43f5e; transform: scale(1.1); }

.field-block { margin-top: 24px; max-width: 100%; box-sizing: border-box; }
.field-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  row-gap: 6px;
  margin-bottom: 12px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}
.selection-pill {
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--emerald-light);
  font-size: 12px;
  font-weight: 850;
}
.tip-sub { font-size: 12px; color: var(--muted); font-weight: 600; }

/* ========================================================
   3-COLUMN GEMSTONE VARIETY PACKAGE GRID (SAMPLE REFERENCE)
   ======================================================== */
.variety-grid-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 8px;
}
@media (max-width: 580px) {
  .variety-grid-3col {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
}
.variety-card-3col {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  border-radius: 18px;
  background: var(--bg-surface);
  border: 1.5px solid var(--line);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  padding: 10px 8px 12px;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease, box-shadow 0.2s ease;
  user-select: none;
  overflow: hidden;
}
.variety-card-3col input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.variety-card-3col:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.variety-card-3col:has(input:checked) {
  border-color: var(--gold);
  background: rgba(212, 175, 55, 0.08);
  box-shadow: 0 0 0 2px var(--gold), 0 10px 28px rgba(212, 175, 55, 0.3);
}

/* Arch glow container matching Gem-App sample1 */
.variety-arch-wrap {
  position: relative;
  width: 100%;
  height: 74px;
  border-radius: 14px 14px 10px 10px;
  background: var(--arch-ambient, radial-gradient(circle at 50% 65%, rgba(59, 130, 246, 0.22) 0%, rgba(13, 23, 46, 0.5) 100%));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  overflow: hidden;
}
.variety-arch-wrap .gem-crystal-swatch {
  width: 44px;
  height: 44px;
  border-radius: 12px;
}
.variety-badge {
  position: absolute;
  top: 5px;
  right: 5px;
  font-size: 8.5px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(10, 18, 36, 0.85);
  color: #fde047;
  border: 1px solid rgba(253, 224, 71, 0.35);
  backdrop-filter: blur(4px);
  z-index: 2;
  white-space: nowrap;
}
.variety-badge.popular {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff;
  border: none;
}
.variety-badge.rare {
  background: linear-gradient(135deg, #ec4899, #be185d);
  color: #ffffff;
  border: none;
}
.variety-badge.king {
  background: linear-gradient(135deg, #ef4444, #b91c1c);
  color: #ffffff;
  border: none;
}
.variety-badge.best {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  border: none;
}

.variety-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2px;
  width: 100%;
}
.variety-name-bold {
  font-size: 12.5px;
  font-weight: 850;
  color: var(--ink);
  line-height: 1.2;
}
.variety-species-sub {
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.1;
}

/* Custom Variety Specification */
.custom-variety-wrap {
  background: rgba(10, 18, 36, 0.7);
  border: 1.5px solid var(--line-strong);
  border-radius: 18px;
  padding: 16px 18px;
  box-sizing: border-box;
  width: 100%;
}
.custom-variety-input-box {
  margin-bottom: 12px;
}
.custom-variety-input {
  width: 100%;
  box-sizing: border-box;
  min-height: 48px;
  padding: 11px 16px;
  border-radius: 14px;
  border: 1.5px solid var(--line-strong);
  background: var(--bg-input);
  color: var(--ink);
  font-size: 14px;
  font-weight: 750;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.custom-variety-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 16px rgba(212, 175, 55, 0.28);
}
.custom-variety-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.spec-chip {
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink-2);
  font-size: 11.5px;
  font-weight: 750;
  cursor: pointer;
  transition: all .15s ease;
}
.spec-chip:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
}
.spec-chip.active {
  background: var(--gold-gradient);
  color: #0c0a03;
  border-color: var(--gold);
  font-weight: 850;
  box-shadow: 0 2px 10px rgba(212, 175, 55, 0.35);
}

/* Fallback legacy 5-col grid support */
.variety-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.variety-card input { position: absolute; opacity: 0; pointer-events: none; }
.variety-card .card-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 88px;
  padding: 10px 6px;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  background: rgba(6, 12, 26, 0.7);
  cursor: pointer;
  transition: .18s ease;
  text-align: center;
}
.variety-card .card-inner:hover {
  border-color: rgba(255,255,255,0.25);
  transform: translateY(-2px);
}
.variety-card input:checked + .card-inner {
  border-color: var(--emerald);
  background: rgba(16, 185, 129, 0.1);
  box-shadow: 0 0 0 2px var(--emerald), 0 8px 24px var(--gem-glow, rgba(16, 185, 129, 0.3));
}
.gem-badge-icon { font-size: 24px; filter: drop-shadow(0 3px 6px rgba(0,0,0,0.4)); }
.gem-name { font-size: 11px; font-weight: 800; color: var(--ink-2); line-height: 1.2; }

/* ========================================================
   REALISTIC GEMSTONE CRYSTALLINE SWATCHES
   ======================================================== */
.gem-crystal-swatch {
  position: relative;
  display: block;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  margin: 0 auto;
  overflow: hidden;
  box-shadow: 
    0 4px 12px rgba(0, 0, 0, 0.45),
    inset 0 1px 2px rgba(255, 255, 255, 0.4),
    inset 0 -2px 4px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  flex-shrink: 0;
}
.variety-card:hover .gem-crystal-swatch,
.variety-card input:checked + .card-inner .gem-crystal-swatch {
  transform: scale(1.08) translateY(-1px);
  box-shadow: 
    0 6px 20px var(--gem-glow, rgba(212, 175, 55, 0.5)),
    inset 0 1px 3px rgba(255, 255, 255, 0.6),
    inset 0 -2px 6px rgba(0, 0, 0, 0.6);
  border-color: rgba(255, 255, 255, 0.6);
}

/* Faceted brilliance & refraction reflection overlay */
.swatch-facet-shine {
  position: absolute;
  inset: 0;
  background: 
    linear-gradient(135deg, rgba(255, 255, 255, 0.45) 0%, rgba(255, 255, 255, 0.1) 32%, transparent 60%),
    radial-gradient(circle at 75% 25%, rgba(255, 255, 255, 0.5) 0%, transparent 40%),
    linear-gradient(45deg, transparent 40%, rgba(255, 255, 255, 0.25) 50%, transparent 60%);
  pointer-events: none;
}

/* 1. Ceylon Royal Blue Sapphire */
.gem-crystal-swatch.blue-sapphire {
  background: 
    radial-gradient(ellipse at 35% 30%, #54a5ff 0%, #1562d9 45%, #052673 85%, #021136 100%),
    conic-gradient(from 45deg at 50% 50%, #0d47a1, #1e88e5, #0a3875, #42a5f5, #0d47a1);
  background-blend-mode: soft-light;
}

/* 2. Vivid Neon / Padparadscha Pink Sapphire */
.gem-crystal-swatch.pink-sapphire {
  background: 
    radial-gradient(ellipse at 35% 30%, #ff8ecb 0%, #ec3992 45%, #9b1359 85%, #4a0528 100%),
    conic-gradient(from 45deg at 50% 50%, #ad1457, #f06292, #880e4f, #ff80ab, #ad1457);
  background-blend-mode: soft-light;
}

/* 3. Pigeon Blood Ruby */
.gem-crystal-swatch.ruby {
  background: 
    radial-gradient(ellipse at 35% 30%, #ff526c 0%, #d80b2a 45%, #7e0315 85%, #3d010a 100%),
    conic-gradient(from 45deg at 50% 50%, #b71c1c, #e53935, #7f0000, #ff5252, #b71c1c);
  background-blend-mode: soft-light;
}

/* 4. Colombian Emerald */
.gem-crystal-swatch.emerald {
  background: 
    radial-gradient(ellipse at 35% 30%, #4ae59a 0%, #069e57 45%, #03522c 85%, #012413 100%),
    conic-gradient(from 45deg at 50% 50%, #1b5e20, #43a047, #0d3813, #66bb6a, #1b5e20);
  background-blend-mode: soft-light;
}

/* 5. Vivid Cobalt / Purple Spinel */
.gem-crystal-swatch.spinel {
  background: 
    radial-gradient(ellipse at 35% 30%, #d975ff 0%, #9024c9 45%, #4e0d73 85%, #240338 100%),
    conic-gradient(from 45deg at 50% 50%, #4a148c, #8e24aa, #311b92, #ba68c8, #4a148c);
  background-blend-mode: soft-light;
}

/* 6. Paraiba / Mint Tourmaline */
.gem-crystal-swatch.tourmaline {
  background: 
    radial-gradient(ellipse at 35% 30%, #4ff7e7 0%, #0db8a6 45%, #06695e 85%, #022e2a 100%),
    conic-gradient(from 45deg at 50% 50%, #004d40, #00897b, #00363a, #26a69a, #004d40);
  background-blend-mode: soft-light;
}

/* 7. Chrysoberyl Alexandrite (Color-Change: Teal to Purple) */
.gem-crystal-swatch.alexandrite {
  background: 
    radial-gradient(ellipse at 30% 30%, #5fe3b2 0%, #1e8275 40%, #592370 75%, #280b33 100%),
    conic-gradient(from 60deg at 50% 50%, #17544d, #7b2cbf, #14403b, #9d4edd, #17544d);
  background-blend-mode: soft-light;
}

/* 8. Canary / Golden Yellow Sapphire */
.gem-crystal-swatch.yellow-sapphire {
  background: 
    radial-gradient(ellipse at 35% 30%, #fff176 0%, #f5b300 45%, #a16e00 85%, #4d3300 100%),
    conic-gradient(from 45deg at 50% 50%, #f57f17, #fbc02d, #b26a00, #ffee58, #f57f17);
  background-blend-mode: soft-light;
}

/* 9. Garnet / Tsavorite */
.gem-crystal-swatch.garnet {
  background: 
    radial-gradient(ellipse at 35% 30%, #ff8359 0%, #c43818 45%, #691705 85%, #330902 100%),
    conic-gradient(from 45deg at 50% 50%, #bf360c, #e64a19, #870000, #ff7043, #bf360c);
  background-blend-mode: soft-light;
}

/* 10. Padparadscha Sunset Sapphire */
.gem-crystal-swatch.padparadscha {
  background: 
    radial-gradient(ellipse at 35% 30%, #fbcfe8 0%, #fb923c 45%, #ea580c 85%, #7c2d12 100%),
    conic-gradient(from 45deg at 50% 50%, #f43f5e, #fb923c, #f472b6, #ea580c, #f43f5e);
  background-blend-mode: soft-light;
}

/* 11. Zircon / Fire Topaz */
.gem-crystal-swatch.zircon {
  background: 
    radial-gradient(ellipse at 35% 30%, #ffffff 0%, #93c5fd 35%, #3b82f6 70%, #1d4ed8 100%),
    conic-gradient(from 45deg at 50% 50%, #60a5fa, #bfdbfe, #2563eb, #e0f2fe, #60a5fa);
  background-blend-mode: soft-light;
}

/* 12. Other Variety (Multi-Faceted Prismatic Diamond Crystal) */
.gem-crystal-swatch.other-gem {
  background: 
    radial-gradient(ellipse at 35% 30%, #ffffff 0%, #d4e0eb 35%, #8899ac 70%, #475569 100%),
    conic-gradient(from 45deg at 50% 50%, #64748b, #94a3b8, #cbd5e1, #e2e8f0, #94a3b8, #64748b);
  background-blend-mode: soft-light;
}

/* Shape Silhouettes — 12 Gemological Cuts in 6-column Grid */
.shape-grid-luxury { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
@media (max-width: 640px) {
  .shape-grid-luxury { grid-template-columns: repeat(4, 1fr); gap: 6px; }
}
@media (max-width: 420px) {
  .shape-grid-luxury { grid-template-columns: repeat(3, 1fr); gap: 6px; }
}
.shape-card input { position: absolute; opacity: 0; pointer-events: none; }
.shape-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 74px;
  padding: 8px 4px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: rgba(6, 12, 26, 0.7);
  cursor: pointer;
  transition: .18s ease;
  color: var(--ink-2);
  font-size: 11px;
  font-weight: 750;
  text-align: center;
}
.shape-inner:hover { border-color: rgba(255,255,255,0.25); transform: translateY(-1px); }
.facet-svg { width: 34px; height: 34px; stroke: #94a3b8; fill: rgba(148, 163, 184, 0.15); flex-shrink: 0; }
.shape-card input:checked + .shape-inner {
  background: var(--gold-gradient);
  border-color: var(--gold);
  color: #0c0a03;
  box-shadow: 0 6px 18px rgba(212, 175, 55, 0.35);
}
.shape-card input:checked + .shape-inner .facet-svg { stroke: #0c0a03; fill: rgba(12, 10, 3, 0.2); }

/* Trade Color Grid */
.trade-color-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
}
.color-swatch-card input { position: absolute; opacity: 0; pointer-events: none; }
.color-swatch-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 10px 8px;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  background: rgba(6, 12, 26, 0.7);
  cursor: pointer;
  transition: .18s ease;
  text-align: center;
}
.color-swatch-card:hover { border-color: rgba(255,255,255,0.25); transform: translateY(-1px); }
.swatch-bubble {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--swatch-gradient);
  box-shadow: inset 0 2px 4px rgba(255,255,255,0.4), 0 4px 12px rgba(0,0,0,0.4);
  border: 2px solid rgba(255,255,255,0.3);
  transition: transform .2s ease, box-shadow .2s ease;
  flex-shrink: 0;
}
.color-label { font-size: 11.5px; font-weight: 750; color: var(--ink-2); line-height: 1.2; }
.color-desc { font-size: 9.5px; color: var(--muted); line-height: 1.1; margin-top: 1px; }
.color-swatch-card input:checked + .swatch-bubble {
  transform: scale(1.12);
  box-shadow: 0 0 0 3px var(--gold), 0 8px 18px rgba(0,0,0,0.5);
}
.color-swatch-card:has(input:checked) {
  border-color: var(--gold);
  background: rgba(212, 175, 55, 0.1);
  box-shadow: 0 0 0 1px var(--gold);
}

/* Simplified User-Friendly Weight Box */
.weight-simple-box {
  padding: 22px;
  border: 1.5px solid var(--line-strong);
  border-radius: 20px;
  background: rgba(6, 12, 26, 0.85);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.weight-input-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.weight-step-btn {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
  font-size: 14px;
  font-weight: 850;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease;
}
.weight-step-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}
.weight-step-btn:active { transform: translateY(1px); }
.weight-input-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(10, 18, 36, 0.7);
  padding: 6px 18px;
  border-radius: 16px;
  border: 1.5px solid var(--line);
  box-sizing: border-box;
}
.weight-digital-input {
  width: auto;
  min-width: 90px;
  max-width: 125px;
  font-size: 38px;
  font-weight: 900;
  letter-spacing: 0;
  text-align: right;
  border: none;
  background: transparent;
  color: #38bdf8;
  outline: none;
  font-family: inherit;
  padding: 0 4px;
  margin: 0;
  -webkit-appearance: none;
  -moz-appearance: textfield;
}
.weight-digital-input::-webkit-outer-spin-button,
.weight-digital-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.weight-digital-input:focus {
  color: var(--gold-light);
}
.weight-unit-badge {
  font-size: 20px;
  font-weight: 850;
  color: var(--gold);
  line-height: 1;
  flex-shrink: 0;
}

/* Comprehensive Country of Origin Dropdown & Quick Chips */
.origin-dropdown-wrap {
  position: relative;
  margin-bottom: 10px;
}
.origin-select-dropdown {
  width: 100%;
  min-height: 50px;
  padding: 12px 18px;
  font-size: 14.5px;
  font-weight: 750;
  border-radius: 14px;
  border: 1.5px solid var(--line-strong);
  background-color: var(--bg-surface);
  color: var(--ink);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23d4af37' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.origin-select-dropdown:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}
.origin-quick-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}
.origin-chip-btn {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: .15s ease;
}
.origin-chip-btn:hover {
  border-color: rgba(255,255,255,0.25);
  color: var(--ink);
}
.origin-chip-btn.active {
  background: rgba(212, 175, 55, 0.15);
  border-color: var(--gold);
  color: var(--gold-light);
}

/* Dual Per-Carat and Total Asking Price Controls */
.pricing-dual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}
@media (max-width: 600px) {
  .pricing-dual-grid { grid-template-columns: 1fr; gap: 10px; }
}
.price-dual-card {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1.5px solid var(--line-strong);
  background: rgba(10, 18, 36, 0.7);
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.price-dual-card:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.25);
}
.price-dual-card.highlight {
  border-color: rgba(212, 175, 55, 0.4);
  background: rgba(212, 175, 55, 0.04);
}
.price-dual-label {
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted);
}
.price-dual-input-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.price-dual-sym {
  font-size: 22px;
  font-weight: 850;
  color: var(--gold);
  flex-shrink: 0;
}
.price-dual-input {
  width: 100%;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.5px;
  background: transparent;
  border: none;
  outline: none;
  color: #38bdf8;
  font-family: inherit;
}
.price-dual-input:focus {
  color: var(--gold-light);
}
.price-dual-sub {
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
}
.price-adaptive-pad {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 14px;
}
@media (max-width: 520px) {
  .price-adaptive-pad { grid-template-columns: repeat(2, 1fr); }
}

/* Carat Stepper */
.carat-stepper-box {
  padding: 24px;
  border: 1.5px solid var(--line-strong);
  border-radius: 20px;
  background: rgba(6, 12, 26, 0.85);
}
.stepper-main-display { display: flex; align-items: baseline; justify-content: center; gap: 8px; margin-bottom: 16px; }
.ct-val { font-size: 56px; font-weight: 900; letter-spacing: -2px; color: #38bdf8; line-height: 1; text-shadow: 0 0 20px rgba(56, 189, 248, 0.35); }
.ct-unit { font-size: 24px; font-weight: 850; color: var(--gold); }

.stepper-pad { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-bottom: 14px; }
.step-btn {
  min-height: 48px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
  font-weight: 850;
  cursor: pointer;
  transition: .15s ease;
}
.step-btn:hover { background: rgba(255, 255, 255, 0.14); border-color: rgba(255,255,255,0.3); transform: translateY(-1px); }
.step-btn:active { transform: translateY(1px); }
.step-btn.macro { background: rgba(59, 130, 246, 0.15); color: #93c5fd; border-color: rgba(59, 130, 246, 0.35); font-size: 14px; }
.step-btn.standard { font-size: 14px; }
.step-btn.micro { font-size: 12px; color: var(--muted); }

.preset-pill-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.preset-pill {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: .15s ease;
}
.preset-pill:hover { border-color: rgba(255,255,255,0.25); color: var(--ink); }
.preset-pill.active {
  background: var(--emerald-gradient);
  border-color: var(--emerald);
  color: white;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
}

/* Treatment Grid */
.treatment-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.treatment-card input { position: absolute; opacity: 0; pointer-events: none; }
.treatment-inner {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  background: rgba(6, 12, 26, 0.7);
  cursor: pointer;
  transition: .18s ease;
}
.treatment-inner:hover { border-color: rgba(255,255,255,0.25); }
.treatment-card input:checked + .treatment-inner {
  border-color: var(--emerald);
  background: rgba(16, 185, 129, 0.1);
  box-shadow: 0 0 0 2px var(--emerald);
}
.treat-badge-icon { font-size: 22px; margin-bottom: 2px; }
.treatment-inner strong { color: var(--ink); font-size: 14px; }
.treatment-inner small { color: var(--muted); font-size: 12px; }

/* Dimensions Steppers */
.dimensions-stepper-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.dim-column {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(6, 12, 26, 0.7);
  text-align: center;
}
.dim-label { display: block; font-size: 12px; font-weight: 800; color: var(--muted); text-transform: uppercase; margin-bottom: 8px; }
.dim-counter { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.dim-btn {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
  cursor: pointer;
  transition: .15s ease;
}
.dim-btn:hover { background: rgba(255, 255, 255, 0.18); border-color: var(--gold); }
.dim-val { font-size: 18px; font-weight: 900; color: #38bdf8; }
.dim-val small { font-size: 12px; color: var(--muted); font-weight: 700; }

/* Origin Chips */
.origin-chip-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.origin-chip input { position: absolute; opacity: 0; pointer-events: none; }
.origin-chip span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(6, 12, 26, 0.7);
  font-size: 12px;
  font-weight: 800;
  color: var(--ink-2);
  cursor: pointer;
  text-align: center;
  transition: .15s ease;
}
.origin-chip:hover span { border-color: rgba(255,255,255,0.25); color: var(--ink); }
.origin-chip input:checked + span {
  background: var(--gold-gradient);
  border-color: var(--gold);
  color: #0c0a03;
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.35);
}

/* Certificate */
.cert-block {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(6, 12, 26, 0.7);
}
.cert-toggle-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.cert-toggle-bar strong { font-size: 15px; color: var(--ink); }
.certificate-drawer { display: none; margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); }
.certificate-drawer.visible { display: block; }
.lab-pill-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.lab-pill input { position: absolute; opacity: 0; pointer-events: none; }
.lab-pill span {
  display: inline-flex;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 12px;
  font-weight: 800;
  color: var(--ink-2);
  cursor: pointer;
  transition: .15s ease;
}
.lab-pill input:checked + span {
  background: var(--emerald-gradient);
  border-color: var(--emerald);
  color: white;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
}

/* Price Box */
.price-stepper-box {
  padding: 24px;
  border: 1.5px solid var(--line-strong);
  border-radius: 20px;
  background: rgba(6, 12, 26, 0.85);
}
.currency-strip { display: flex; justify-content: center; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.curr-pill input { position: absolute; opacity: 0; pointer-events: none; }
.curr-pill span {
  display: inline-flex;
  padding: 6px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 12px;
  font-weight: 800;
  color: var(--ink-2);
  cursor: pointer;
  transition: .15s ease;
}
.curr-pill:hover span { border-color: rgba(255,255,255,0.3); color: var(--ink); }
.curr-pill input:checked + span {
  background: var(--gold-gradient);
  border-color: var(--gold);
  color: #0c0a03;
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.35);
}

.price-display-wrapper { display: flex; align-items: baseline; justify-content: center; gap: 6px; margin-bottom: 18px; }
.price-curr-sym { font-size: 34px; font-weight: 800; color: var(--gold); }
.price-amount { font-size: 60px; font-weight: 900; letter-spacing: -2px; color: #38bdf8; line-height: 1; text-shadow: 0 0 25px rgba(56, 189, 248, 0.35); }

.price-button-pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.price-btn {
  min-height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
  transition: .15s ease;
}
.price-btn:hover { background: rgba(255, 255, 255, 0.15); border-color: rgba(255,255,255,0.3); }

/* Real-Time Net Payout & Price-Per-Carat Breakdown */
.seller-payout-card {
  margin-top: 20px;
  padding: 20px 22px;
  border-radius: 18px;
  background: rgba(6, 14, 32, 0.92);
  border: 1.5px solid rgba(16, 185, 129, 0.35);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.payout-row { display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: var(--muted); font-weight: 700; }
.payout-row strong { font-weight: 850; color: var(--ink); }
.payout-row.highlight {
  margin-top: 6px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  font-size: 15px;
  color: var(--ink);
  font-weight: 850;
}
.payout-net { font-size: 24px; font-weight: 900; color: #34d399; text-shadow: 0 0 15px rgba(52, 211, 153, 0.4); }

/* Fee & Trust */
.fee-box {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin: 20px 0;
  padding: 18px;
  border-radius: 18px;
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.25);
  color: var(--gold-light);
}
.fee-check {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gold);
  color: #0c0a03;
  font-weight: 900;
  flex-shrink: 0;
}
.fee-box strong { font-size: 14px; color: var(--gold-light); }
.fee-box p { margin: 4px 0 0; font-size: 12px; line-height: 1.45; color: #d4c59a; }

.submit-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 58px;
  border: 0;
  border-radius: 18px;
  background: var(--emerald-gradient);
  color: white;
  font-size: 17px;
  font-weight: 900;
  box-shadow: 0 14px 30px rgba(16, 185, 129, 0.38);
  cursor: pointer;
  transition: .2s ease;
}
.submit-button:hover { transform: translateY(-2px); box-shadow: 0 18px 36px rgba(16, 185, 129, 0.5); }
.submit-button:disabled { opacity: .65; cursor: wait; transform: none; }
.btn-arrow { font-size: 20px; transition: transform .2s ease; }
.submit-button:hover .btn-arrow { transform: translateX(4px); }

/* Wizard Step Navigation Actions */
.wizard-step-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.wizard-step-actions.dual { justify-content: space-between; }
.wizard-back-row { margin-bottom: 14px; }
.wizard-next-btn {
  min-height: 48px;
  padding: 0 24px;
  font-size: 14px;
  font-weight: 850;
}
.wizard-prev-btn {
  min-height: 44px;
  padding: 0 18px;
  font-size: 13px;
  font-weight: 800;
}

.form-message { display: none; margin-top: 16px; padding: 14px 18px; border-radius: 14px; font-weight: 750; font-size: 14px; }
.form-message.ok { display: block; background: rgba(16, 185, 129, 0.14); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.35); }
.form-message.bad { display: block; background: rgba(244, 63, 94, 0.14); color: #fda4af; border: 1px solid rgba(244, 63, 94, 0.35); }
.form-message.busy { display: block; background: rgba(59, 130, 246, 0.14); color: #93c5fd; border: 1px solid rgba(59, 130, 246, 0.35); }

.upload-progress { height: 8px; margin-top: 10px; border-radius: 999px; background: rgba(255,255,255,0.1); overflow: hidden; }
.upload-progress span { display: block; height: 100%; background: var(--emerald-gradient); border-radius: inherit; transition: width .15s ease; }

.privacy-note { margin: 14px 0 0; color: var(--muted); font-size: 12px; text-align: center; }

/* Success Screen */
.success-screen { padding: 40px 10px; text-align: center; }
.success-card {
  max-width: 540px;
  margin: 0 auto;
  padding: 38px 28px;
  border-radius: 28px;
  background: var(--bg-card);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(24px);
}
.success-icon-burst {
  display: inline-grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  font-size: 36px;
  margin-bottom: 16px;
  box-shadow: 0 10px 24px rgba(16, 185, 129, 0.25);
}
.success-card h2 { margin: 0 0 8px; font-size: 28px; color: var(--ink); }
.success-card p { margin: 0 0 20px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.ref-badge-box {
  padding: 16px;
  border-radius: 16px;
  background: rgba(6, 12, 26, 0.85);
  border: 1px dashed var(--line-strong);
  margin-bottom: 20px;
}
.ref-badge-box small { display: block; font-size: 11px; font-weight: 850; letter-spacing: 1px; color: var(--gold); }
.ref-badge-box strong { font-size: 28px; letter-spacing: 1.5px; color: #38bdf8; }
.success-details-pill { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 24px; }
.success-details-pill span { padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,0.06); font-size: 12px; font-weight: 800; color: var(--ink-2); }
.success-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.mobile-nav { display: none; }

/* --- GEMPRO QC COMMAND CENTER STYLES --- */
.admin-body {
  background: #08111e;
  color: #f1f5f9;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  min-height: 100vh;
}

.admin-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8, 17, 30, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.admin-header-inner {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 16px;
}
.admin-header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.admin-header-brand .brand img {
  height: 28px;
  width: auto;
  filter: brightness(1.2);
}
.admin-title-badge {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.28);
  color: #34d399;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.admin-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.admin-user-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
  color: #94a3b8;
  font-weight: 600;
}
.admin-user-pill .user-dot {
  color: #e2e8f0;
  font-size: 10px;
}
.admin-user-pill.authenticated .user-dot {
  color: #10b981;
  text-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
}
.admin-user-pill.authenticated {
  color: #cbd5e1;
}

.button.small {
  padding: 6px 13px;
  font-size: 12px;
  border-radius: 9px;
}
.button.secondary {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
}
.button.secondary:hover {
  background: rgba(255, 255, 255, 0.14);
}
.button.ghost {
  background: transparent;
  border: 1px solid transparent;
  color: #94a3b8;
}
.button.ghost:hover {
  color: #f1f5f9;
  border-color: rgba(255, 255, 255, 0.1);
}

.admin-shell {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 80px;
}

/* Metrics Ribbon */
.qc-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
.metric-card {
  padding: 16px 18px;
  border-radius: 18px;
  background: #0f1c2e;
  border: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.metric-card.alert-state {
  border-color: rgba(245, 158, 11, 0.35);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08), #0f1c2e);
}
.metric-label {
  font-size: 11px;
  color: #94a3b8;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.metric-val {
  font-size: 28px;
  font-weight: 850;
  color: #f8fafc;
  margin: 4px 0 2px;
  letter-spacing: -0.5px;
}
.metric-card.alert-state .metric-val {
  color: #fbbf24;
}
.metric-sub {
  font-size: 11px;
  color: #64748b;
}
.metric-info-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 4px;
  font-size: 11.5px;
  font-weight: 700;
  color: #10b981;
}

/* Tabs */
.qc-nav-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 20px;
}
.qc-tab-btn {
  padding: 12px 18px;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  color: #94a3b8;
  font-size: 14px;
  font-weight: 750;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.15s ease;
}
.qc-tab-btn:hover {
  color: #e2e8f0;
}
.qc-tab-btn.active {
  color: #38bdf8;
  border-bottom-color: #38bdf8;
}
.tab-badge {
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  font-size: 11px;
  font-weight: 800;
}
.qc-tab-btn.active .tab-badge {
  background: rgba(56, 189, 248, 0.18);
  color: #38bdf8;
}

/* Filter Toolbar */
.qc-filter-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.filter-pills {
  display: flex;
  gap: 6px;
}
.filter-pill {
  padding: 7px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #0f1c2e;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}
.filter-pill:hover {
  border-color: rgba(255, 255, 255, 0.16);
  color: #f1f5f9;
}
.filter-pill.active {
  background: #1e293b;
  border-color: #38bdf8;
  color: #38bdf8;
}
.qc-search-box {
  flex: 1;
  max-width: 380px;
}
.qc-search-box input {
  width: 100%;
  padding: 8px 14px;
  border-radius: 10px;
  background: #0f1c2e;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #f1f5f9;
  font-size: 12px;
  outline: none;
}
.qc-search-box input:focus {
  border-color: #38bdf8;
}

/* Inspection Cards */
.review-queue {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.qc-card {
  border-radius: 22px;
  background: #0d1829;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  transition: opacity 0.2s;
}
.qc-card.working {
  opacity: 0.5;
  pointer-events: none;
}
.qc-card.is-rejected {
  border-color: rgba(239, 68, 68, 0.25);
}

.qc-card-header {
  padding: 20px 24px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.qc-status-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}
.qc-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.qc-status-pill.status-pending {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}
.qc-status-pill.status-rejected {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}
.qc-status-pill.status-published {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.qc-status-pill.status-reserved {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
}
.qc-status-pill.status-sold {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.3);
}
.qc-status-pill .dot {
  font-size: 8px;
}
.stone-code-tag {
  font-family: monospace;
  font-size: 12px;
  font-weight: 750;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: #cbd5e1;
}
.seller-blind-code {
  font-size: 11px;
  color: #64748b;
}
.qc-stone-headline {
  margin: 0;
  font-size: 24px;
  font-weight: 850;
  color: #f8fafc;
  letter-spacing: -0.5px;
}
.headline-color {
  color: #94a3b8;
  font-weight: 600;
}
.submission-time {
  margin-top: 4px;
  font-size: 11px;
  color: #64748b;
}

.qc-price-box {
  text-align: right;
  min-width: 140px;
}
.price-label {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #94a3b8;
}
.price-value {
  display: block;
  font-size: 26px;
  font-weight: 900;
  color: #10b981;
  letter-spacing: -0.5px;
}

/* Media Scrutiny Layout */
.qc-media-layout {
  padding: 20px 24px;
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 16px;
  background: #0a1322;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.qc-video-desk {
  display: flex;
  flex-direction: column;
  background: #060c16;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.qc-video-viewport {
  position: relative;
  overflow: hidden;
  min-height: 280px;
  max-height: 380px;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.qc-scrutiny-video {
  width: 100%;
  height: 100%;
  max-height: 380px;
  object-fit: contain;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.qc-video-viewport[data-zoom="1.5"] .qc-scrutiny-video {
  transform: scale(1.5);
  cursor: grab;
}
.qc-video-viewport[data-zoom="2"] .qc-scrutiny-video {
  transform: scale(2.0);
  cursor: grab;
}
.video-live-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  color: #f1f5f9;
  font-size: 10px;
  font-weight: 750;
}
.qc-scrutiny-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px 14px;
  background: #091322;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.qc-speed-group, .qc-frame-group, .qc-zoom-group {
  display: flex;
  align-items: center;
  gap: 4px;
}
.bar-tag {
  font-size: 10px;
  color: #64748b;
  font-weight: 750;
  text-transform: uppercase;
  margin-right: 2px;
}
.qc-control-btn {
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  font-size: 11px;
  font-weight: 750;
  cursor: pointer;
  transition: all 0.12s;
}
.qc-control-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #f8fafc;
}
.qc-control-btn.active {
  background: #10b981;
  border-color: #10b981;
  color: #061623;
  font-weight: 850;
}

.qc-secondary-media-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  align-content: start;
}
.qc-photo-thumb {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  height: 140px;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: block;
}
.qc-photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s;
}
.qc-photo-thumb:hover img {
  transform: scale(1.04);
}
.photo-badge {
  position: absolute;
  bottom: 8px;
  left: 8px;
  padding: 3px 7px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
}
.qc-cert-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
  border-radius: 12px;
  background: rgba(56, 189, 248, 0.08);
  border: 1px dashed rgba(56, 189, 248, 0.35);
  color: #f1f5f9;
  text-decoration: none;
  text-align: center;
  gap: 4px;
}
.cert-icon {
  font-size: 24px;
  color: #38bdf8;
}
.cert-link-action {
  font-size: 11px;
  color: #38bdf8;
  font-weight: 750;
}
.qc-media-empty {
  padding: 40px 20px;
  text-align: center;
  color: #64748b;
  background: #0a1322;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* Gemstone Spec Dossier */
.qc-specs-dossier {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.06);
}
.spec-cell {
  background: #0d1829;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
}
.spec-lbl {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #64748b;
  font-weight: 750;
  margin-bottom: 4px;
}
.spec-val {
  font-size: 13px;
  font-weight: 750;
  color: #e2e8f0;
}
.spec-val.highlight-val {
  color: #38bdf8;
  font-size: 15px;
}
.spec-val.unheated-val {
  color: #10b981;
}

/* Action Toolbar */
.qc-actions-toolbar {
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #0b1424;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.actions-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.button.danger {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
}
.button.danger:hover {
  background: rgba(239, 68, 68, 0.2);
}
.button.primary {
  background: #10b981;
  border: 1px solid #10b981;
  color: #061623;
  font-weight: 850;
}
.button.primary:hover {
  background: #059669;
  border-color: #059669;
}

/* Deals Desk */
.deals-desk-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.deals-desk-header h2 {
  margin: 0 0 4px;
  font-size: 24px;
}
.deals-desk-header p {
  margin: 0;
  color: #64748b;
  font-size: 13px;
}
.deals-grid {
  display: grid;
  gap: 16px;
}
.deal-card {
  border-radius: 18px;
  background: #0d1829;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px 24px;
}
.deal-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
}
.deal-status-pill {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}
.status-deal_agreed {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}
.status-reserved {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
}
.status-sold {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
}
.deal-stone-ref {
  display: block;
  font-size: 12px;
  color: #94a3b8;
  margin-top: 2px;
}
.deal-agreed-price {
  font-size: 24px;
  color: #10b981;
}
.deal-breakdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.breakdown-item {
  display: flex;
  flex-direction: column;
}
.b-lbl {
  font-size: 10px;
  text-transform: uppercase;
  color: #64748b;
  font-weight: 750;
  margin-bottom: 2px;
}
.b-val {
  font-size: 14px;
  color: #e2e8f0;
}
.fee-val {
  color: #fbbf24;
}
.payout-val {
  color: #10b981;
  font-weight: 850;
}

/* Modals */
.admin-dialog {
  width: min(540px, calc(100% - 24px));
  padding: 0;
  border: 0;
  border-radius: 24px;
  background: #0f1c2e;
  color: #f1f5f9;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.admin-dialog::backdrop {
  background: rgba(4, 10, 20, 0.78);
  backdrop-filter: blur(8px);
}
.dialog-content-box {
  padding: 28px;
  position: relative;
}
.modal-icon-badge {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.25);
  font-size: 20px;
  margin-bottom: 12px;
}
.modal-icon-badge.reject-badge {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.25);
  color: #f87171;
}
.dialog-content-box h2 {
  margin: 6px 0;
  font-size: 24px;
  letter-spacing: -0.5px;
}
.dialog-content-box p {
  margin: 0 0 20px;
  color: #94a3b8;
  font-size: 13px;
}

.key-input-wrapper {
  position: relative;
  display: flex;
}
.key-toggle-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: 0;
  color: #94a3b8;
  cursor: pointer;
  font-size: 16px;
}
.field-hint {
  display: block;
  margin-top: 5px;
  font-size: 11px;
  color: #64748b;
}

/* Google Auth UI */
.google-auth-card {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 18px;
}
.auth-security-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 700;
  color: #38bdf8;
  margin-bottom: 16px;
  letter-spacing: 0.2px;
}
.auth-security-badge .security-dot {
  color: #10b981;
  font-size: 10px;
}
.google-btn-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
}
.google-signin-wrapper {
  display: flex;
  justify-content: center;
  width: 100%;
}
.google-loading-placeholder {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: #94a3b8;
  padding: 8px;
}
.qc-spinner.small {
  width: 18px;
  height: 18px;
  border-width: 2px;
  margin: 0;
}
.google-login-status {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
}
.google-login-status.error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
}
.google-login-status.loading {
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: #38bdf8;
}
.google-config-notice {
  margin-top: 14px;
  padding: 14px;
  border-radius: 12px;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
}
.config-notice-header {
  font-size: 12.5px;
  color: #fbbf24;
  margin-bottom: 6px;
}
.config-notice-text {
  font-size: 11.5px;
  color: #cbd5e1;
  margin: 0 0 10px;
  line-height: 1.4;
}
.config-input-group {
  display: flex;
  gap: 8px;
}
.config-input-group .control.small {
  padding: 6px 10px;
  font-size: 12px;
  flex: 1;
}

/* Auth Divider */
.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 16px 0;
  color: #64748b;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.auth-divider span {
  padding: 0 12px;
}

/* Fallback Wrapper */
.fallback-auth-wrapper {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 12px 14px;
}
.fallback-toggle-btn {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: transparent;
  border: 0;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 0;
}
.fallback-toggle-btn:hover {
  color: #e2e8f0;
}
.toggle-arrow {
  font-size: 10px;
  transition: transform 0.2s ease;
}
.fallback-toggle-btn[aria-expanded="true"] .toggle-arrow {
  transform: rotate(90deg);
}
.fallback-auth-form {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.edit-specs-dialog {
  width: min(640px, calc(100% - 24px));
}
.edit-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}
.edit-dimensions-group {
  margin-bottom: 12px;
}
.dimensions-inputs {
  display: flex;
  align-items: center;
  gap: 8px;
}
.dim-x {
  color: #64748b;
  font-weight: 800;
}
.price-field-group .price-control {
  font-size: 18px;
  font-weight: 800;
  color: #10b981;
}

/* Preset Reason Chips */
.preset-reasons-wrapper {
  margin-bottom: 16px;
}
.preset-chips-grid {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 6px;
}
.reason-chip {
  text-align: left;
  padding: 8px 12px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.12s;
}
.reason-chip:hover {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.3);
  color: #f87171;
}

/* Loading & Empty States */
.admin-loading, .admin-error, .empty-state {
  padding: 60px 20px;
  text-align: center;
  border-radius: 20px;
  background: #0d1829;
  border: 1px solid rgba(255, 255, 255, 0.07);
}
.qc-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(56, 189, 248, 0.2);
  border-top-color: #38bdf8;
  border-radius: 50%;
  animation: qcSpin 0.8s linear infinite;
  margin: 0 auto 14px;
}
@keyframes qcSpin {
  to { transform: rotate(360deg); }
}
.empty-icon, .error-icon {
  font-size: 38px;
  margin-bottom: 10px;
}
.admin-error h3 {
  color: #f87171;
  margin: 6px 0;
}
.error-actions {
  margin-top: 18px;
}

/* Management & Members */
.management-head h2 { margin: 6px 0; font-size: 24px; }
.management-head p { margin: 0; color: #94a3b8; }
.invite-form {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 12px;
  align-items: flex-end;
  margin: 20px 0;
  padding: 18px;
  border-radius: 16px;
  background: #0f1c2e;
  border: 1px solid rgba(255, 255, 255, 0.07);
}
.member-list { display: grid; gap: 8px; }
.member-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 12px;
  background: #0d1829;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.member-row strong { display: block; color: #f1f5f9; }
.member-row span { display: block; margin-top: 3px; color: #64748b; font-size: 11px; }
.member-protected { color: #10b981; font-weight: 800; font-size: 12px; }

body.modal-open {
  overflow: hidden !important;
  touch-action: none;
}

.modal-backdrop {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  background: rgba(3, 10, 23, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
}
.modal-backdrop[hidden] {
  display: none !important;
}

.offer-modal {
  position: relative;
  width: min(520px, 100%);
  max-height: min(88vh, calc(100dvh - 32px));
  overflow-y: auto;
  overscroll-behavior: contain;
  margin: auto;
  padding: 24px 22px 28px;
  border-radius: 22px;
  background: white;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  box-sizing: border-box;
}
.offer-modal h2 {
  margin: 7px 0 4px;
  font-size: clamp(22px, 3.5vw, 28px);
  letter-spacing: -0.5px;
}
.offer-modal p {
  margin: 0 0 16px;
  color: var(--muted);
}
.offer-modal small {
  display: block;
  margin-top: 11px;
  color: var(--muted);
  text-align: center;
}

.modal-close {
  position: sticky;
  top: 0;
  float: right;
  margin-top: -4px;
  margin-right: -4px;
  z-index: 20;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: var(--soft);
  color: var(--ink);
  font-size: 22px;
  cursor: pointer;
  transition: background .15s ease, transform .15s ease;
}
.modal-close:hover {
  background: #dfe5ee;
  transform: scale(1.06);
}

.modal-submit {
  width: 100%;
  margin-top: 18px;
}
.toast { position: fixed; z-index: 100; left: 50%; bottom: 28px; max-width: min(430px, calc(100% - 28px)); padding: 13px 17px; border-radius: 13px; background: var(--ink); color: white; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transform: translate(-50%, 16px); transition: .2s ease; text-align: center; font-weight: 750; }
.toast.visible { opacity: 1; transform: translate(-50%, 0); }
.toast.bad { background: var(--danger); }


@media (max-width: 900px) {
  .discovery-hero { grid-template-columns: 1fr; }
  .hero-copy, .hero-stone { min-height: 360px; }
  .filter-grid { grid-template-columns: 1fr 1fr; }
  .stone-grid { grid-template-columns: 1fr 1fr; }
  .variety-grid { grid-template-columns: repeat(4, 1fr); }
  .review-media, .review-specs { grid-template-columns: 1fr 1fr; }
  .invite-form { grid-template-columns: 1fr 1fr; }
  .invite-form .button { grid-column: 1/-1; }
}

@media (max-width: 680px) {
  .site-header,
  .marketplace-header {
    padding-top: max(14px, env(safe-area-inset-top, 0px)) !important;
    padding-bottom: 10px !important;
    padding-left: max(12px, env(safe-area-inset-left, 0px)) !important;
    padding-right: max(12px, env(safe-area-inset-right, 0px)) !important;
    min-height: calc(52px + env(safe-area-inset-top, 0px)) !important;
    gap: 6px !important;
    justify-content: space-between !important;
    width: 100% !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .site-header .brand,
  .marketplace-header .brand { flex-shrink: 0 !important; min-width: 0 !important; }
  .site-header .brand .brand-logo-img,
  .marketplace-header .brand .brand-logo-img,
  .brand .brand-logo-img {
    height: 32px !important;
    width: auto !important;
    max-width: 88px !important;
    object-fit: contain !important;
  }
  .qr-pill {
    display: none !important;
  }
  .header-mode-toggle-wrap { flex-shrink: 0 !important; }
  .single-mode-toggle-btn {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    justify-content: center !important;
  }
  .single-mode-toggle-btn .mode-tooltip-label { display: none !important; }
  .single-mode-toggle-btn .mode-toggle-icon { font-size: 14px !important; }
  .theme-toggle-btn {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    font-size: 13px !important;
    flex-shrink: 0 !important;
  }
  .site-nav {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    flex-shrink: 0 !important;
  }
  .view-mode-switcher { padding: 2px !important; }
  .mode-tab { min-height: 30px !important; padding: 0 9px !important; font-size: 11px !important; gap: 3px !important; }
  .currency-header-select {
    height: 32px !important;
    font-size: 11px !important;
    padding: 0 4px !important;
    border-radius: 8px !important;
    max-width: 52px !important;
    flex-shrink: 0 !important;
  }
  .hide-on-mobile-header { display: none !important; }
  .header-sell {
    min-height: 32px !important;
    padding: 0 10px !important;
    font-size: 11.5px !important;
    font-weight: 850 !important;
    border-radius: 999px !important;
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    box-shadow: 0 2px 10px rgba(16, 185, 129, 0.45) !important;
  }
  .header-sell .sell-text-desktop { display: none !important; }
  .header-sell .sell-text-mobile { display: inline !important; }
  .header-sell .sell-plus { font-size: 13px !important; margin-right: 2px !important; }
  .sound-toggle-btn.icon-only {
    width: 36px;
    height: 36px;
    min-height: 36px;
    min-width: 36px;
  }
  .sound-toggle-btn.icon-only .sound-icon { font-size: 15px; }
  
  .modal-backdrop {
    padding: 10px 8px max(10px, env(safe-area-inset-bottom));
  }
  .offer-modal {
    width: 100%;
    max-height: min(92vh, calc(100dvh - 20px));
    padding: 20px 16px 24px;
    border-radius: 20px;
  }
  .details-modal {
    max-height: min(92vh, calc(100dvh - 20px));
  }
  .gem-reels-section {
    height: calc(100vh - 52px - 64px);
    height: calc(100dvh - 52px - 64px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
  }
  .reel-overlay { padding: 12px 10px 14px; }
  .reel-gem-card { max-width: 82% !important; padding: 10px 12px !important; }
  .gem-heading { font-size: 15px !important; }
  .gem-price-amount { font-size: 19px !important; }
  .gem-per-carat-badge { font-size: 10.5px !important; }
  .reel-more-details-btn { padding: 4px 9px !important; font-size: 10.5px !important; }
  .reel-btn { width: 46px; height: 46px; }
  .reel-btn .action-icon, .reel-btn .fav-icon { font-size: 16px; }
  .reel-btn .btn-label { font-size: 8.5px; }
  .catalog-section { width: calc(100% - 20px); padding-top: 14px; max-width: 100vw; box-sizing: border-box; overflow-x: hidden; }
  .filter-grid-advanced { grid-template-columns: 1fr; gap: 12px; }
  
  /* 2-Column Mobile Gemstone Search Grid */
  .stone-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .stone-card {
    border-radius: 14px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4) !important;
  }
  .stone-visual {
    aspect-ratio: 1 / 1 !important;
    min-height: auto !important;
    max-height: none !important;
  }
  .stone-visual img,
  .stone-visual video,
  .stone-visual .stone-visual-media {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }
  .code-tag {
    top: 6px !important;
    left: 6px !important;
    padding: 2px 5px !important;
    font-size: 8.5px !important;
    border-radius: 5px !important;
  }
  .favorite-button {
    top: 6px !important;
    right: 6px !important;
    width: 28px !important;
    height: 28px !important;
    font-size: 13px !important;
  }
  .play-reel-pill {
    bottom: 6px !important;
    left: 6px !important;
    padding: 3px 6px !important;
    font-size: 8.5px !important;
    gap: 3px !important;
  }
  .play-reel-pill span {
    font-size: 8.5px !important;
  }
  .stone-info {
    padding: 9px 7px !important;
  }
  .stone-topline {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 3px !important;
    margin-bottom: 5px !important;
  }
  .stone-topline h3 {
    font-size: 13px !important;
    font-weight: 850 !important;
    line-height: 1.2 !important;
    margin: 0 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 100% !important;
  }
  .stone-price-col {
    align-items: flex-start !important;
    text-align: left !important;
    gap: 1px !important;
  }
  .stone-price {
    font-size: 13.5px !important;
    font-weight: 900 !important;
  }
  .stone-per-carat {
    font-size: 9px !important;
    color: var(--muted) !important;
  }
  .stone-meta {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 3px !important;
    margin-bottom: 7px !important;
  }
  .stone-meta span {
    padding: 2px 4px !important;
    font-size: 8.5px !important;
    font-weight: 700 !important;
    border-radius: 4px !important;
  }
  .stone-actions {
    grid-template-columns: 1fr 1fr !important;
    gap: 4px !important;
    margin-top: auto !important;
  }
  .stone-actions .button {
    min-height: 28px !important;
    padding: 0 2px !important;
    font-size: 9.5px !important;
    font-weight: 800 !important;
    border-radius: 7px !important;
    text-align: center !important;
    justify-content: center !important;
  }

  .trust-strip { grid-template-columns: 1fr; }
  .seller-shell { width: min(100% - 16px, 840px); padding-top: 14px; max-width: 100vw; box-sizing: border-box; overflow-x: hidden; }
  .seller-intro { text-align: left; padding: 0 4px; }
  .seller-intro h1 { font-size: 30px; letter-spacing: -1px; word-break: break-word; }
  .seller-rail { gap: 6px; margin: 14px 0; }
  .rail-item { padding: 9px 4px; font-size: 11px; }
  .form-card { padding: 18px 14px; border-radius: 20px; max-width: 100%; box-sizing: border-box; overflow-x: hidden; }
  .variety-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .shape-grid-luxury { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .trade-color-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 8px !important; width: 100% !important; box-sizing: border-box !important; }
  .color-swatch-card { min-width: 0 !important; width: 100% !important; box-sizing: border-box !important; padding: 12px 6px !important; }
  .color-label { word-break: break-word !important; }
  .weight-input-wrap { padding: 6px 14px !important; gap: 6px !important; }
  .weight-digital-input { font-size: 34px !important; min-width: 80px !important; max-width: 115px !important; }
  .weight-unit-badge { font-size: 18px !important; }
  .stepper-pad { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .step-btn { min-height: 44px; font-size: 13px; }
  .ct-val { font-size: 46px; }
  .treatment-grid { grid-template-columns: 1fr; gap: 8px; }
  .dimensions-stepper-grid { grid-template-columns: 1fr; gap: 8px; }
  .origin-chip-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .price-amount { font-size: 46px; }
  .price-button-pad { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .video-choice-grid { grid-template-columns: 1fr; gap: 10px; }
  .brand .brand-logo-img { height: 32px !important; width: auto !important; max-width: 88px !important; }
  .deal-header {
    height: auto !important;
    min-height: calc(52px + env(safe-area-inset-top, 0px)) !important;
    padding-top: max(14px, env(safe-area-inset-top, 0px)) !important;
    padding-bottom: 10px !important;
    padding-left: max(12px, env(safe-area-inset-left, 0px)) !important;
    padding-right: max(12px, env(safe-area-inset-right, 0px)) !important;
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
  }
  .escrow-vault-tag {
    display: none !important;
  }
  
  /* Luxury Dark Glass Mobile Navigation */
  .mobile-nav {
    position: fixed;
    z-index: 50;
    left: 0;
    right: 0;
    bottom: 0;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    min-height: 64px;
    padding-bottom: env(safe-area-inset-bottom);
    border-top: 1px solid var(--line);
    background: rgba(4, 8, 19, 0.94);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
  }
  .mobile-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
    text-decoration: none;
    transition: color .18s ease;
  }
  .mobile-nav a.active {
    color: var(--gold-light);
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
  }
  .mobile-nav b { font-size: 18px; line-height: 1; }
  .toast { bottom: 78px; }
  
  .admin-shell { width: min(100% - 16px, 1280px); padding-top: 16px; }
  .qc-metrics-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .hide-mobile { display: none; }
  .qc-card-header { flex-direction: column; gap: 12px; }
  .qc-price-box { text-align: left; }
  .qc-media-layout { grid-template-columns: 1fr; }
  .qc-specs-dossier { grid-template-columns: 1fr 1fr; }
  .qc-actions-toolbar { flex-direction: column-reverse; align-items: stretch; gap: 10px; }
  .actions-right { flex-direction: column; width: 100%; gap: 8px; }
  .actions-right .button { width: 100%; }
  .actions-left .button { width: 100%; }
  .edit-form-grid { grid-template-columns: 1fr; }
  .deal-breakdown-grid { grid-template-columns: 1fr 1fr; }
  .member-row { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}


/* ========================================================
   STAGE 4: DOUBLE-BLIND ESCROW DEAL ROOM & WHATSAPP STYLING
   ======================================================== */

.phone-input-group {
  display: flex;
  gap: 10px;
  align-items: stretch;
  width: 100%;
}
.country-code-select {
  flex: 0 0 auto;
  max-width: 170px;
  min-height: 48px;
  padding: 11px 14px;
  border-radius: 14px;
  border: 1.5px solid var(--line-strong);
  background: var(--bg-input);
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.country-code-select option {
  background: #0d172e;
  color: #f8fafc;
}
.phone-number-input {
  flex: 1 1 auto;
  min-height: 48px;
  padding: 11px 16px;
  border-radius: 14px;
  border: 1.5px solid var(--line-strong);
  background: var(--bg-input);
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.phone-number-input::placeholder {
  color: var(--muted);
  opacity: 0.8;
}
.phone-number-input:focus, .country-code-select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, .25);
}

.whatsapp-security-guarantee {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
}
.whatsapp-security-guarantee .lock-icon {
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 2px;
}
.whatsapp-security-guarantee strong {
  display: block;
  font-size: 12px;
  font-weight: 800;
  color: var(--emerald-light);
}
.whatsapp-security-guarantee p {
  margin: 3px 0 0;
  font-size: 11px;
  line-height: 1.45;
  color: #a7f3d0;
}

/* Seller PIN Verification Card */
.seller-pin-card {
  margin-top: 20px;
  padding: 20px;
  border-radius: 18px;
  background: #0f172a;
  color: #f8fafc;
  text-align: center;
  border: 1px solid rgba(45, 212, 191, .3);
  box-shadow: 0 12px 32px rgba(15, 23, 42, .4);
}
.pin-card-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.pin-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .03em;
}
.pin-status-badge.pending {
  background: rgba(234, 179, 8, .2);
  color: #facc15;
  border: 1px solid rgba(234, 179, 8, .4);
}
.pin-status-badge.verified {
  background: rgba(34, 197, 94, .2);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, .4);
}
.pin-phone-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(45, 212, 191, .08);
  border: 1px dashed rgba(45, 212, 191, .35);
  border-radius: 14px;
  padding: 12px 18px;
  margin: 14px auto 14px;
  max-width: 440px;
}
.pin-phone-icon {
  font-size: 24px;
  flex-shrink: 0;
}
.pin-phone-meta {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.pin-phone-meta span {
  font-size: 11px;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-weight: 700;
}
.pin-phone-meta strong {
  font-size: 16px;
  color: #2dd4bf;
  letter-spacing: .05em;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.pin-display-number {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 38px;
  font-weight: 900;
  letter-spacing: .25em;
  color: #2dd4bf;
  margin: 12px 0 4px;
  text-shadow: 0 0 20px rgba(45, 212, 191, .5);
}
.pin-instruction {
  font-size: 13px;
  color: #94a3b8;
  max-width: 440px;
  margin: 0 auto 16px;
  line-height: 1.45;
}
.whatsapp-btn {
  background: #25d366 !important;
  color: #fff !important;
  border: none !important;
  font-weight: 800 !important;
  box-shadow: 0 4px 16px rgba(37, 211, 102, .35) !important;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.whatsapp-btn:hover {
  background: #1eb857 !important;
}
.pin-entry-form {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}
.pin-input {
  width: 140px;
  text-align: center;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: .15em;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .2);
  background: rgba(255, 255, 255, .08);
  color: #fff;
  outline: none;
}
.pin-input:focus {
  border-color: #2dd4bf;
  box-shadow: 0 0 0 3px rgba(45, 212, 191, .25);
}
.pin-feedback {
  margin-top: 10px;
  font-size: 12px;
  font-weight: 700;
  min-height: 20px;
}
.pin-err { color: #f87171; }
.pin-success { color: #4ade80; }
.pin-loading { color: #38bdf8; }

/* Deal Confirmation Sheet */
.deal-confirmed-modal {
  max-width: 520px;
  text-align: center;
}
.confirmed-icon-burst {
  font-size: 44px;
  margin-bottom: 6px;
}
.deal-room-access-card {
  margin-top: 18px;
  padding: 18px;
  border-radius: 16px;
  background: #0f172a;
  color: #f8fafc;
  border: 1px solid rgba(45, 212, 191, .3);
  text-align: center;
}
.deal-room-desc {
  font-size: 12px;
  color: #94a3b8;
  margin: 10px 0 16px;
  line-height: 1.45;
}
.confirmed-actions-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.security-advisory-box {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
  text-align: left;
}

/* My Deals Drawer */
.deals-drawer-modal {
  max-width: 560px;
}
.deals-items-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
  max-height: 65vh;
  overflow-y: auto;
}
.deal-drawer-card {
  padding: 16px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.deal-drawer-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .05);
}
.deal-drawer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.deal-badge-pill {
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  background: #e2e8f0;
  color: #334155;
}
.deal-badge-pill.submitted { background: #fef3c7; color: #b45309; }
.deal-badge-pill.accepted { background: #dcfce7; color: #15803d; }
.deal-date { font-size: 11px; color: var(--muted); }
.deal-stone-title {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.deal-stone-title strong { font-size: 15px; font-weight: 800; color: var(--text); }
.deal-stone-title span { font-size: 12px; color: var(--muted); }
.deal-drawer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px dashed var(--line);
}
.deal-amount { font-size: 16px; font-weight: 800; color: var(--teal-dark); }

/* Deal Room Standalone Page */
.deal-room-body {
  background: #090d16;
  color: #f1f5f9;
  font-family: var(--font-base, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
  min-height: 100vh;
  margin: 0;
  padding: 0;
}
.deal-header {
  height: 64px;
  padding: 0 clamp(16px, 4vw, 40px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  background: rgba(9, 13, 22, .92);
  backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 40;
}
.deal-header-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.deal-brand-title {
  font-weight: 900;
  font-size: 18px;
  letter-spacing: -.02em;
  color: #fff;
}
.gold-accent { color: #38bdf8; margin-left: 2px; }
.escrow-vault-tag {
  font-size: 11px;
  font-weight: 800;
  color: #2dd4bf;
  background: rgba(45, 212, 191, .12);
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgba(45, 212, 191, .25);
}
.deal-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.deal-status-chip {
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  background: rgba(255, 255, 255, .1);
  color: #94a3b8;
}
.deal-status-chip.payment_pending { background: rgba(234, 179, 8, .2); color: #facc15; border: 1px solid rgba(234, 179, 8, .3); }
.deal-status-chip.payment_verified { background: rgba(45, 212, 191, .2); color: #2dd4bf; border: 1px solid rgba(45, 212, 191, .3); }
.deal-status-chip.stone_at_lab { background: rgba(147, 51, 234, .2); color: #c084fc; border: 1px solid rgba(147, 51, 234, .3); }
.deal-status-chip.lab_verified { background: rgba(59, 130, 246, .2); color: #60a5fa; border: 1px solid rgba(59, 130, 246, .3); }
.deal-status-chip.dispatched { background: rgba(14, 165, 233, .2); color: #38bdf8; border: 1px solid rgba(14, 165, 233, .3); }
.deal-status-chip.completed { background: rgba(34, 197, 94, .2); color: #4ade80; border: 1px solid rgba(34, 197, 94, .3); }

.deal-main-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 16px 80px;
}
.deal-security-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(15, 23, 42, .95), rgba(30, 41, 59, .7));
  border: 1px solid rgba(45, 212, 191, .25);
  margin-bottom: 24px;
}
.deal-security-banner .shield-icon { font-size: 32px; flex-shrink: 0; }
.banner-text strong { display: block; font-size: 14px; font-weight: 800; color: #fff; }
.banner-text p { margin: 3px 0 0; font-size: 12px; color: #94a3b8; line-height: 1.45; }
.banner-badges { display: flex; gap: 8px; margin-left: auto; flex-shrink: 0; }
.sec-badge { font-size: 10px; font-weight: 800; padding: 3px 8px; border-radius: 6px; background: rgba(255, 255, 255, .08); color: #38bdf8; }

.deal-content-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 24px;
}
.deal-left-column, .deal-right-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Party Shield Cards */
.deal-parties-card {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 18px;
  border-radius: 16px;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, .08);
}
.party-col { display: flex; flex-direction: column; gap: 2px; text-align: center; }
.party-role { font-size: 10px; font-weight: 800; letter-spacing: .08em; color: #64748b; }
.party-alias { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 17px; font-weight: 800; color: #2dd4bf; }
.party-status { font-size: 11px; color: #94a3b8; }
.party-divider { padding: 0 12px; }
.vault-node { font-size: 11px; font-weight: 800; color: #38bdf8; background: rgba(56, 189, 248, .12); padding: 4px 10px; border-radius: 999px; border: 1px solid rgba(56, 189, 248, .25); white-space: nowrap; }

/* Timeline Card */
.deal-timeline-card {
  padding: 20px;
  border-radius: 16px;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, .08);
}
.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.timeline-header h3 { margin: 0; font-size: 16px; font-weight: 800; color: #fff; }
.milestone-counter { font-size: 12px; font-weight: 800; color: #2dd4bf; }
.timeline-steps-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.timeline-step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  position: relative;
}
.timeline-step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 13px;
  top: 28px;
  bottom: -12px;
  width: 2px;
  background: rgba(255, 255, 255, .1);
}
.timeline-step.completed:not(:last-child)::after {
  background: #2dd4bf;
}
.step-indicator {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 900;
  flex-shrink: 0;
  background: rgba(255, 255, 255, .08);
  color: #64748b;
  border: 1px solid rgba(255, 255, 255, .15);
  z-index: 1;
}
.timeline-step.completed .step-indicator {
  background: #0f766e;
  color: #2dd4bf;
  border-color: #2dd4bf;
}
.timeline-step.active .step-indicator {
  background: rgba(34, 211, 238, .2);
  color: #22d3ee;
  border-color: #22d3ee;
  box-shadow: 0 0 12px rgba(34, 211, 238, .4);
}
.step-content strong { display: block; font-size: 13px; font-weight: 800; color: #cbd5e1; }
.timeline-step.active .step-content strong { color: #fff; }
.timeline-step.completed .step-content strong { color: #94a3b8; }
.step-content p { margin: 2px 0 0; font-size: 11px; color: #64748b; line-height: 1.4; }

/* Action Panels */
.action-panel {
  padding: 20px;
  border-radius: 16px;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, .1);
}
.action-head { display: flex; gap: 12px; align-items: flex-start; }
.action-head h4 { margin: 0; font-size: 15px; font-weight: 800; color: #fff; }
.action-head p { margin: 3px 0 0; font-size: 12px; color: #94a3b8; line-height: 1.45; }
.action-icon { font-size: 26px; flex-shrink: 0; }
.escrow-wire-dossier {
  margin-top: 14px;
  padding: 14px;
  border-radius: 12px;
  background: rgba(0, 0, 0, .3);
  border: 1px solid rgba(255, 255, 255, .08);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.wire-field { display: flex; flex-direction: column; gap: 2px; }
.w-lbl { font-size: 10px; font-weight: 800; letter-spacing: .05em; color: #64748b; }
.w-val { font-size: 13px; color: #e2e8f0; font-weight: 600; }
.w-val.ref-code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 15px; color: #2dd4bf; font-weight: 900; letter-spacing: .05em; }
.w-val.amount-highlight { font-size: 18px; color: #38bdf8; font-weight: 900; }
.action-notice {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 11px;
  line-height: 1.45;
}
.action-notice.warning { background: rgba(234, 179, 8, .12); border: 1px solid rgba(234, 179, 8, .25); color: #fde047; }
.action-notice.info { background: rgba(56, 189, 248, .12); border: 1px solid rgba(56, 189, 248, .25); color: #bae6fd; }

/* Approve Offer Panel & 1-Click Action */
.approve-deal-panel {
  border: 1px solid rgba(45, 212, 191, .35);
  box-shadow: 0 10px 30px rgba(15, 23, 42, .4);
}
.deal-payout-highlight-box {
  margin: 16px 0;
  padding: 16px;
  background: rgba(0, 0, 0, .35);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.deal-payout-highlight-box .payout-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #cbd5e1;
}
.deal-payout-highlight-box .payout-row.fee {
  color: #94a3b8;
  font-size: 12px;
}
.deal-payout-highlight-box .payout-row.net {
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px dashed rgba(255, 255, 255, .15);
  font-size: 15px;
  font-weight: 800;
  color: #fff;
}
.deal-payout-highlight-box .payout-row.net strong.highlight {
  font-size: 20px;
  color: #2dd4bf;
  font-weight: 900;
  letter-spacing: .02em;
}
.deal-action-buttons-row {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}
.approve-deal-btn {
  flex: 2;
  background: var(--emerald-gradient) !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  padding: 12px 18px !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 20px rgba(16, 185, 129, .4) !important;
  border: 1px solid rgba(45, 212, 191, .4) !important;
  cursor: pointer;
}
.approve-deal-btn:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}
.decline-deal-btn {
  flex: 1;
  border-radius: 12px !important;
  color: #ef4444 !important;
  border-color: rgba(239, 68, 68, .3) !important;
  cursor: pointer;
}
.decline-deal-btn:hover {
  background: rgba(239, 68, 68, .1) !important;
}
.deal-action-feedback {
  margin-top: 10px;
  font-size: 12px;
}
.deal-action-feedback .status-loading { color: #38bdf8; }
.deal-action-feedback .status-success { color: #4ade80; font-weight: 700; }
.deal-action-feedback .status-err { color: #f87171; font-weight: 700; }

/* Right Column Stone Dossier */
.deal-stone-card {
  border-radius: 16px;
  overflow: hidden;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, .08);
}
.stone-media-container {
  width: 100%;
  aspect-ratio: 16/10;
  background: #020617;
  overflow: hidden;
  position: relative;
}
.deal-stone-video, .deal-stone-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.deal-stone-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  font-size: 15px;
  font-weight: 800;
}
.stone-details-body {
  padding: 18px;
}
.stone-ref-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.stone-ref-badge {
  font-size: 11px;
  font-weight: 800;
  color: #38bdf8;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.cert-pill {
  font-size: 10px;
  font-weight: 800;
  background: rgba(45, 212, 191, .15);
  color: #2dd4bf;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(45, 212, 191, .3);
}
.stone-title {
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
}
.stone-specs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.spec-cell {
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .04);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.spec-cell .lbl { font-size: 10px; color: #64748b; font-weight: 700; }
.spec-cell .val { font-size: 12px; color: #f1f5f9; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Financial Card */
.deal-financial-card {
  padding: 20px;
  border-radius: 16px;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, .08);
}
.fin-card-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 14px;
}
.fin-card-header h3 { margin: 0; font-size: 15px; font-weight: 800; color: #fff; }
.fin-card-header small { font-size: 10px; font-weight: 800; color: #2dd4bf; letter-spacing: .05em; }
.ledger-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.ledger-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #94a3b8;
}
.ledger-row.total strong { font-size: 18px; color: #fff; font-weight: 900; }
.ledger-row.fee span, .ledger-row.fee strong { color: #64748b; }
.ledger-row.payout strong { color: #2dd4bf; font-weight: 800; font-size: 15px; }

.protection-callout {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}
.protection-callout .prot-icon { font-size: 20px; flex-shrink: 0; }
.protection-callout strong { display: block; font-size: 12px; color: #fff; }
.protection-callout p { margin: 2px 0 0; font-size: 11px; color: #94a3b8; line-height: 1.4; }

/* WhatsApp Pager Card */
.deal-whatsapp-pager-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 14px;
  background: rgba(37, 211, 102, .08);
  border: 1px solid rgba(37, 211, 102, .25);
}
.deal-whatsapp-pager-card .pager-icon { font-size: 24px; }
.deal-whatsapp-pager-card strong { display: block; font-size: 13px; color: #4ade80; }
.deal-whatsapp-pager-card p { margin: 2px 0 0; font-size: 11px; color: #86efac; line-height: 1.4; }

/* Admin Deals Desk Styling */
.deals-section-card {
  padding: 20px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 4px 16px rgba(0, 0, 0, .04);
}
.deals-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}
.deals-section-head h3 { margin: 0; font-size: 17px; font-weight: 900; color: var(--text); }
.deals-section-head p { margin: 2px 0 0; font-size: 12px; color: var(--muted); }
.deals-sub-badge { font-size: 11px; font-weight: 800; padding: 3px 10px; border-radius: 999px; background: #e0f2fe; color: #0369a1; }
.empty-sub-state { padding: 24px; text-align: center; color: var(--muted); font-size: 13px; background: #f8fafc; border-radius: 12px; }

.offers-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.offer-card {
  padding: 18px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.offer-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.offer-type-tag { font-size: 10px; font-weight: 900; letter-spacing: .06em; padding: 2px 8px; border-radius: 6px; }
.offer-type-tag.buy { background: #dcfce7; color: #15803d; }
.offer-type-tag.offer { background: #fef3c7; color: #b45309; }
.offer-card-top h4 { margin: 4px 0 2px; font-size: 16px; font-weight: 900; color: var(--text); }
.stone-ref-sub { font-size: 12px; color: var(--muted); }
.offer-amount-box { text-align: right; }
.offer-amount-box .o-lbl { display: block; font-size: 10px; color: var(--muted); font-weight: 700; }
.offer-amount-box .o-val { font-size: 20px; font-weight: 900; color: var(--teal-dark); }
.offer-amount-box .o-ask { display: block; font-size: 11px; color: var(--muted); }

.offer-contact-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.contact-pill {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line);
}
.offer-footer-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.offer-time { font-size: 11px; color: var(--muted); }
.offer-btn-group { display: flex; gap: 8px; }

.deal-parties-row {
  display: flex;
  gap: 14px;
  padding: 10px 14px;
  background: #f8fafc;
  border-radius: 10px;
  font-size: 12px;
  color: var(--text);
  margin-top: 12px;
  flex-wrap: wrap;
}
.milestone-controller-panel {
  margin-top: 12px;
  padding: 14px;
  border-radius: 12px;
  background: #f1f5f9;
  border: 1px solid var(--line);
}
.controller-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 12px;
}
.controller-actions-row {
  display: flex;
  gap: 10px;
}
.milestone-select {
  flex: 1 1 auto;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.seller-wa-status-badge {
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  margin-left: 6px;
}
.seller-wa-status-badge.verified { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.seller-wa-status-badge.pending { background: #fef3c7; color: #b45309; border: 1px solid #fde68a; }
.seller-wa-status-badge.none { background: #f1f5f9; color: #64748b; }

@media (max-width: 900px) {
  .deal-content-grid { grid-template-columns: 1fr; }
  .deal-security-banner { flex-direction: column; align-items: flex-start; }
  .banner-badges { margin-left: 0; }
  .mobile-nav { grid-template-columns: repeat(5, 1fr) !important; }
}

/* ========================================================
   LIGHT THEME OVERRIDES (DATA-THEME="LIGHT")
   INSPIRED BY CLEAN NEUMORPHIC GEM-APP SAMPLE 1
   ======================================================== */
html[data-theme="light"] {
  color-scheme: light;
  --bg-obsidian: #f0f2f6;
  --bg-deep: #e8ecf2;
  --bg-surface: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f8fafc;
  --bg-card-solid: #ffffff;
  --bg-input: #ffffff;

  --line: rgba(15, 23, 42, 0.09);
  --line-strong: rgba(15, 23, 42, 0.16);
  --line-highlight: rgba(180, 134, 47, 0.45);

  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #475569;
  --subtle: #64748b;

  --shadow-lg: 0 20px 48px rgba(15, 23, 42, 0.10);
  --shadow-md: 0 10px 24px rgba(15, 23, 42, 0.06);
  --shadow-sm: 0 4px 12px rgba(15, 23, 42, 0.04);

  --paper: #f0f2f6;
  --card: #ffffff;
  --soft: rgba(15, 23, 42, 0.05);
}

html[data-theme="light"] body {
  background: var(--bg-obsidian);
  color: var(--ink);
}

/* Header & Nav */
html[data-theme="light"] .site-header {
  background: rgba(255, 255, 255, 0.94);
  border-bottom-color: rgba(15, 23, 42, 0.1);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

html[data-theme="light"] .single-mode-toggle-btn,
html[data-theme="light"] .theme-toggle-btn,
html[data-theme="light"] .currency-header-select {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.15);
  color: #0f172a;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
}

html[data-theme="light"] .single-mode-toggle-btn.is-catalog {
  background: rgba(212, 175, 55, 0.12);
  border-color: rgba(180, 134, 47, 0.5);
  color: #997825;
}

html[data-theme="light"] .site-nav a {
  color: #475569;
}
html[data-theme="light"] .site-nav a:hover,
html[data-theme="light"] .site-nav a.active {
  background: #f1f5f9;
  color: #0f172a;
}

/* Headings & General Text */
html[data-theme="light"] h1,
html[data-theme="light"] h2,
html[data-theme="light"] h3,
html[data-theme="light"] h4,
html[data-theme="light"] .form-card-head h2,
html[data-theme="light"] .seller-intro h1 {
  color: #0f172a !important;
}

html[data-theme="light"] .subcopy,
html[data-theme="light"] .tip-sub,
html[data-theme="light"] .privacy-note,
html[data-theme="light"] .seller-intro p {
  color: #475569 !important;
}

html[data-theme="light"] .eyebrow {
  color: #b4862f !important;
}

html[data-theme="light"] .field-label,
html[data-theme="light"] .field-label span {
  color: #0f172a !important;
}

html[data-theme="light"] .filming-tip-banner {
  background: #fefce8 !important;
  border-color: #fef08a !important;
  color: #854d0e !important;
}
html[data-theme="light"] .tip-text strong {
  color: #713f12 !important;
}
html[data-theme="light"] .tip-text span {
  color: #854d0e !important;
}

html[data-theme="light"] .selection-pill {
  background: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}
html[data-theme="light"] .selection-pill.active {
  background: #e0f2fe !important;
  border-color: #7dd3fc !important;
  color: #0369a1 !important;
}

/* Stepper Rail */
html[data-theme="light"] .rail-item {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  color: #475569 !important;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04) !important;
}
html[data-theme="light"] .rail-item .rail-num {
  background: #f1f5f9 !important;
  color: #0f172a !important;
}
html[data-theme="light"] .rail-item.active {
  background: #0f172a !important;
  border-color: #0f172a !important;
  color: #ffffff !important;
}
html[data-theme="light"] .rail-item.active .rail-num {
  background: #ffffff !important;
  color: #0f172a !important;
}

/* Cards & Modals */
html[data-theme="light"] .form-card,
html[data-theme="light"] .offer-modal,
html[data-theme="light"] .details-modal,
html[data-theme="light"] .deal-modal {
  background: #ffffff !important;
  border-color: rgba(15, 23, 42, 0.09) !important;
  color: #0f172a !important;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.07) !important;
}

html[data-theme="light"] .step-number {
  background: #0f172a !important;
  color: #ffffff !important;
}

/* 3-Column Variety Package Grid (Sample Reference) */
html[data-theme="light"] .variety-card-3col {
  background: #ffffff !important;
  border-color: rgba(15, 23, 42, 0.09) !important;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04) !important;
}
html[data-theme="light"] .variety-card-3col:hover {
  border-color: #cbd5e1 !important;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08) !important;
}
html[data-theme="light"] .variety-card-3col:has(input:checked) {
  border-color: #0f172a !important;
  background: #f8fafc !important;
  box-shadow: 0 0 0 2px #0f172a, 0 8px 22px rgba(15, 23, 42, 0.1) !important;
}
html[data-theme="light"] .variety-arch-wrap {
  background: radial-gradient(circle at 50% 65%, rgba(226, 232, 240, 0.7) 0%, rgba(248, 250, 252, 0.95) 100%) !important;
}
html[data-theme="light"] .variety-name-bold {
  color: #0f172a !important;
}
html[data-theme="light"] .variety-species-sub {
  color: #64748b !important;
}

/* Custom Variety in Light Mode */
html[data-theme="light"] .custom-variety-wrap {
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
}
html[data-theme="light"] .custom-variety-input {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}
html[data-theme="light"] .custom-variety-input:focus {
  border-color: #0f172a !important;
  box-shadow: 0 0 14px rgba(15, 23, 42, 0.15) !important;
}
html[data-theme="light"] .spec-chip {
  background: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
  color: #334155 !important;
}
html[data-theme="light"] .spec-chip:hover {
  background: #e2e8f0 !important;
}
html[data-theme="light"] .spec-chip.active {
  background: #0f172a !important;
  color: #ffffff !important;
  border-color: #0f172a !important;
}

/* Shapes in Light Mode */
html[data-theme="light"] .shape-inner {
  background: #f8fafc !important;
  border-color: rgba(15, 23, 42, 0.1) !important;
  color: #0f172a !important;
}
html[data-theme="light"] .shape-inner:hover {
  border-color: #cbd5e1 !important;
}
html[data-theme="light"] .facet-svg {
  stroke: #64748b !important;
  fill: rgba(100, 116, 139, 0.12) !important;
}
html[data-theme="light"] .shape-card input:checked + .shape-inner {
  background: #0f172a !important;
  border-color: #0f172a !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.25) !important;
}
html[data-theme="light"] .shape-card input:checked + .shape-inner .facet-svg {
  stroke: #ffffff !important;
  fill: rgba(255, 255, 255, 0.2) !important;
}

/* Colors in Light Mode */
html[data-theme="light"] .color-swatch-card {
  background: #f8fafc !important;
  border-color: rgba(15, 23, 42, 0.1) !important;
}
html[data-theme="light"] .color-label {
  color: #0f172a !important;
}
html[data-theme="light"] .color-desc {
  color: #64748b !important;
}
html[data-theme="light"] .color-swatch-card:has(input:checked) {
  border-color: #0f172a !important;
  background: #ffffff !important;
  box-shadow: 0 0 0 1px #0f172a !important;
}

/* Weight Box in Light Mode */
html[data-theme="light"] .weight-simple-box,
html[data-theme="light"] .carat-stepper-box {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04) !important;
}
html[data-theme="light"] .weight-input-wrap {
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
}
html[data-theme="light"] .weight-digital-input,
html[data-theme="light"] .ct-val {
  color: #0f172a !important;
  text-shadow: none !important;
}
html[data-theme="light"] .weight-unit-badge,
html[data-theme="light"] .ct-unit {
  color: #b4862f !important;
}
html[data-theme="light"] .weight-step-btn,
html[data-theme="light"] .step-btn {
  background: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}
html[data-theme="light"] .weight-step-btn:hover,
html[data-theme="light"] .step-btn:hover {
  background: #e2e8f0 !important;
}
html[data-theme="light"] .preset-pill {
  background: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
  color: #334155 !important;
}
html[data-theme="light"] .preset-pill.active {
  background: #0f172a !important;
  border-color: #0f172a !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2) !important;
}

/* Dimensions in Light Mode */
html[data-theme="light"] .dim-counter {
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
}
html[data-theme="light"] .dim-val {
  color: #0f172a !important;
}
html[data-theme="light"] .dim-btn {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}
html[data-theme="light"] .dim-label {
  color: #475569 !important;
}

/* Treatments in Light Mode */
html[data-theme="light"] .treatment-inner {
  background: #f8fafc !important;
  border-color: rgba(15, 23, 42, 0.1) !important;
}
html[data-theme="light"] .treatment-inner strong {
  color: #0f172a !important;
}
html[data-theme="light"] .treatment-inner small {
  color: #64748b !important;
}
html[data-theme="light"] .treatment-card input:checked + .treatment-inner {
  border-color: #0f172a !important;
  background: #ffffff !important;
  box-shadow: 0 0 0 1px #0f172a !important;
}

/* Origin in Light Mode */
html[data-theme="light"] .origin-select-dropdown {
  background-color: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}
html[data-theme="light"] .origin-chip-btn,
html[data-theme="light"] .origin-chip span {
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
  color: #334155 !important;
}
html[data-theme="light"] .origin-chip-btn.active,
html[data-theme="light"] .origin-chip input:checked + span {
  background: #0f172a !important;
  border-color: #0f172a !important;
  color: #ffffff !important;
}

/* Pricing in Light Mode */
html[data-theme="light"] .price-stepper-box {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04) !important;
}
html[data-theme="light"] .curr-pill span {
  background: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
  color: #334155 !important;
}
html[data-theme="light"] .curr-pill input:checked + span {
  background: #0f172a !important;
  border-color: #0f172a !important;
  color: #ffffff !important;
}
html[data-theme="light"] .price-dual-card {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
}
html[data-theme="light"] .price-dual-card:focus-within {
  border-color: #0f172a !important;
  background: #ffffff !important;
}
html[data-theme="light"] .price-dual-card.highlight {
  border-color: #cbd5e1 !important;
  background: #ffffff !important;
}
html[data-theme="light"] .price-dual-sym {
  color: #b4862f !important;
}
html[data-theme="light"] .price-dual-input {
  color: #0f172a !important;
}
html[data-theme="light"] .price-amount {
  color: #0f172a !important;
  text-shadow: none !important;
}
html[data-theme="light"] .price-curr-sym {
  color: #b4862f !important;
}
html[data-theme="light"] .price-btn {
  background: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}

/* Payout Card & Fees */
html[data-theme="light"] .seller-payout-card {
  background: #f0fdf4 !important;
  border-color: #86efac !important;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.08) !important;
}
html[data-theme="light"] .payout-row {
  color: #475569 !important;
}
html[data-theme="light"] .payout-row strong {
  color: #0f172a !important;
}
html[data-theme="light"] .payout-net {
  color: #059669 !important;
  text-shadow: none !important;
}
html[data-theme="light"] .fee-box {
  background: #fefce8 !important;
  border-color: #fef08a !important;
  color: #854d0e !important;
}
html[data-theme="light"] .fee-box p {
  color: #713f12 !important;
}
html[data-theme="light"] .fee-check {
  background: #b4862f !important;
  color: #ffffff !important;
}

/* WhatsApp Field & Phone Input Styling in Light Theme */
html[data-theme="light"] .phone-input-group {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}
html[data-theme="light"] .country-code-select {
  background: #f8fafc !important;
  border: 1.5px solid #cbd5e1 !important;
  color: #0f172a !important;
}
html[data-theme="light"] .country-code-select option {
  background: #ffffff !important;
  color: #0f172a !important;
}
html[data-theme="light"] .phone-number-input {
  background: #ffffff !important;
  border: 1.5px solid #cbd5e1 !important;
  color: #0f172a !important;
}
html[data-theme="light"] .phone-number-input::placeholder {
  color: #64748b !important;
  opacity: 1 !important;
}
html[data-theme="light"] .phone-number-input:focus,
html[data-theme="light"] .country-code-select:focus {
  background: #ffffff !important;
  border-color: #0f172a !important;
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.12) !important;
}
html[data-theme="light"] .whatsapp-security-guarantee {
  background: #f0fdf4 !important;
  border-color: #bbf7d0 !important;
  color: #166534 !important;
}
html[data-theme="light"] .whatsapp-security-guarantee p {
  color: #15803d !important;
}

/* Universal Inputs & Form Controls for Light Theme */
html[data-theme="light"] input:not([type="checkbox"]):not([type="radio"]),
html[data-theme="light"] select,
html[data-theme="light"] textarea,
html[data-theme="light"] .control {
  background-color: #ffffff !important;
  color: #0f172a !important;
  border-color: #cbd5e1 !important;
}
html[data-theme="light"] input::placeholder,
html[data-theme="light"] textarea::placeholder,
html[data-theme="light"] .control::placeholder {
  color: #64748b !important;
  opacity: 1 !important;
}
html[data-theme="light"] input:focus,
html[data-theme="light"] select:focus,
html[data-theme="light"] textarea:focus,
html[data-theme="light"] .control:focus {
  background-color: #ffffff !important;
  color: #0f172a !important;
  border-color: #0f172a !important;
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.1) !important;
}
html[data-theme="light"] select option {
  background-color: #ffffff !important;
  color: #0f172a !important;
}

/* Browser Autofill Overrides for Dark & Light Themes */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px #0a1224 inset !important;
  -webkit-text-fill-color: #f8fafc !important;
  transition: background-color 5000s ease-in-out 0s;
}
html[data-theme="light"] input:-webkit-autofill,
html[data-theme="light"] input:-webkit-autofill:hover, 
html[data-theme="light"] input:-webkit-autofill:focus,
html[data-theme="light"] input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px #ffffff inset !important;
  -webkit-text-fill-color: #0f172a !important;
  transition: background-color 5000s ease-in-out 0s;
}

/* Buttons */
html[data-theme="light"] .wizard-next-btn,
html[data-theme="light"] .button.primary:not(.header-sell):not(.submit-button) {
  background: #0f172a !important;
  color: #ffffff !important;
}
html[data-theme="light"] .header-sell,
html[data-theme="light"] .submit-button,
html[data-theme="light"] #btnSubmitListing {
  background: var(--emerald-gradient) !important;
  color: #ffffff !important;
  border: 1px solid rgba(16, 185, 129, 0.5) !important;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.45) !important;
}
html[data-theme="light"] .button.ghost {
  background: transparent !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}
html[data-theme="light"] .button.ghost:hover {
  background: #f1f5f9 !important;
}

/* Success Screen & PIN */
html[data-theme="light"] .success-card,
html[data-theme="light"] .seller-pin-card {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  color: #0f172a !important;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06) !important;
}
html[data-theme="light"] .pin-display-number {
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}
html[data-theme="light"] .pin-phone-box {
  background: #f0fdf4 !important;
  border-color: #86efac !important;
}
html[data-theme="light"] .pin-phone-meta span {
  color: #64748b !important;
}
html[data-theme="light"] .pin-phone-meta strong {
  color: #0f766e !important;
}
html[data-theme="light"] .ref-badge-box {
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
}
html[data-theme="light"] .ref-badge-box strong {
  color: #b4862f !important;
}
html[data-theme="light"] .success-details-pill span {
  background: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}

/* Upload Tiles */
html[data-theme="light"] .upload-tile {
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}
html[data-theme="light"] .upload-tile:hover {
  background: #f1f5f9 !important;
  border-color: #94a3b8 !important;
}
html[data-theme="light"] .tile-content strong {
  color: #0f172a !important;
}
html[data-theme="light"] .tile-content small {
  color: #64748b !important;
}

/* Reels & Stone Cards */
html[data-theme="light"] .reel-gem-card {
  background: rgba(255, 255, 255, 0.96) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(15, 23, 42, 0.14) !important;
  color: #0f172a !important;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18) !important;
}
html[data-theme="light"] .reel-gem-card:hover {
  border-color: rgba(15, 23, 42, 0.28) !important;
}
html[data-theme="light"] .reel-gem-card .gem-heading,
html[data-theme="light"] .gem-card-header .gem-heading {
  color: #0f172a !important;
  text-shadow: none !important;
}
html[data-theme="light"] .reel-gem-card .gem-carat-tag {
  background: #ecfdf5 !important;
  color: #047857 !important;
  border: 1px solid #6ee7b7 !important;
}
html[data-theme="light"] .reel-gem-card .gem-price-amount {
  color: #059669 !important;
  text-shadow: none !important;
}
html[data-theme="light"] .reel-gem-card .gem-per-carat-badge {
  color: #334155 !important;
  background: #f1f5f9 !important;
  border: 1px solid #cbd5e1 !important;
  padding: 1px 6px !important;
  border-radius: 5px !important;
}
html[data-theme="light"] .reel-gem-card .reel-more-details-btn {
  background: #0f172a !important;
  color: #ffffff !important;
  border: 1px solid #0f172a !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.18) !important;
}
html[data-theme="light"] .reel-gem-card .reel-more-details-btn:hover {
  background: #1e293b !important;
}
html[data-theme="light"] .reel-gem-card .gem-expanded-drawer {
  border-top-color: #e2e8f0 !important;
}
html[data-theme="light"] .reel-gem-card .gem-specs-row span,
html[data-theme="light"] .reel-gem-card .gem-specs-row .spec-pill,
html[data-theme="light"] .gem-spec-pill {
  background: #f8fafc !important;
  color: #0f172a !important;
  border: 1px solid #cbd5e1 !important;
  font-weight: 750 !important;
}
html[data-theme="light"] .reel-gem-card .gem-specs-row span:hover,
html[data-theme="light"] .reel-gem-card .gem-specs-row .spec-pill:hover {
  background: #e2e8f0 !important;
  border-color: #94a3b8 !important;
}
html[data-theme="light"] .reel-gem-card .gem-dossier-action-btn {
  background: #ecfdf5 !important;
  border: 1px solid #a7f3d0 !important;
  color: #047857 !important;
  font-weight: 850 !important;
}
html[data-theme="light"] .reel-gem-card .gem-dossier-action-btn:hover {
  background: #d1fae5 !important;
  border-color: #34d399 !important;
}
html[data-theme="light"] .reel-gem-card .gem-dossier-link {
  color: #047857 !important;
  font-weight: 800 !important;
}
html[data-theme="light"] .ref-code-text {
  background: rgba(255, 255, 255, 0.92) !important;
  border-color: rgba(15, 23, 42, 0.15) !important;
  color: #0f172a !important;
}

/* Modals & Dossier In Light Mode */
html[data-theme="light"] .spec-detail-item {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
}
html[data-theme="light"] .spec-detail-item span {
  color: #64748b !important;
}
html[data-theme="light"] .spec-detail-item strong {
  color: #0f172a !important;
}
html[data-theme="light"] .cert-box-verified {
  background: #ecfdf5 !important;
  border: 1px solid #a7f3d0 !important;
}
html[data-theme="light"] .cert-box-verified strong {
  color: #047857 !important;
}
html[data-theme="light"] .cert-box-verified small {
  color: #475569 !important;
}
html[data-theme="light"] .saved-stone-row {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
}
html[data-theme="light"] .saved-info-box strong {
  color: #0f172a !important;
}
html[data-theme="light"] .saved-info-box small {
  color: #64748b !important;
}
html[data-theme="light"] .saved-price {
  color: #059669 !important;
}
html[data-theme="light"] .deal-room-access-card {
  background: #f8fafc !important;
  color: #0f172a !important;
  border: 1px solid #cbd5e1 !important;
}
html[data-theme="light"] .deal-room-desc {
  color: #475569 !important;
}
html[data-theme="light"] .stone-card {
  background: #ffffff !important;
  border-color: rgba(15, 23, 42, 0.09) !important;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05) !important;
}
html[data-theme="light"] .stone-info {
  background: #ffffff !important;
}
html[data-theme="light"] .stone-info h3 {
  color: #0f172a !important;
}
html[data-theme="light"] .stone-info p {
  color: #475569 !important;
}
html[data-theme="light"] .stone-price {
  color: #059669 !important;
}

/* Mobile Nav in Light Mode */
html[data-theme="light"] .mobile-nav {
  background: rgba(255, 255, 255, 0.96) !important;
  border-top-color: rgba(15, 23, 42, 0.1) !important;
  box-shadow: 0 -2px 10px rgba(15, 23, 42, 0.04) !important;
}
html[data-theme="light"] .mobile-nav a:not([href="/sell"]) {
  color: #64748b !important;
}
html[data-theme="light"] .mobile-nav a.active:not([href="/sell"]) {
  color: #0f172a !important;
}
html[data-theme="light"] .mobile-nav a[href="/sell"],
html[data-theme="light"] .mobile-nav a[href="/sell"] b,
html[data-theme="light"] .mobile-nav a.active[href="/sell"],
html[data-theme="light"] .mobile-nav a.active[href="/sell"] b {
  color: #059669 !important;
  text-shadow: 0 0 10px rgba(16, 185, 129, 0.4) !important;
}

/* Deal Room in Light Mode */
html[data-theme="light"] .deal-header {
  background: #ffffff !important;
  border-bottom-color: #e2e8f0 !important;
}
html[data-theme="light"] .deal-brand-title {
  color: #0f172a !important;
}
html[data-theme="light"] .escrow-vault-tag {
  background: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
  color: #334155 !important;
}
html[data-theme="light"] .deal-room-body,
html[data-theme="light"] .deal-main-container {
  background: #f0f2f6 !important;
  color: #0f172a !important;
}
html[data-theme="light"] .deal-security-banner,
html[data-theme="light"] .deal-card,
html[data-theme="light"] .deals-section-card {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04) !important;
}
html[data-theme="light"] .deal-title,
html[data-theme="light"] .step-title,
html[data-theme="light"] .banner-title {
  color: #0f172a !important;
}
html[data-theme="light"] .step-desc,
html[data-theme="light"] .banner-desc,
html[data-theme="light"] .timeline-time {
  color: #475569 !important;
}
html[data-theme="light"] .escrow-step-card {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
}
html[data-theme="light"] .escrow-step-card.active {
  background: #ffffff !important;
  border-color: #0f172a !important;
  box-shadow: 0 0 0 2px #0f172a !important;
}
html[data-theme="light"] .escrow-step-card.completed {
  background: #f0fdf4 !important;
  border-color: #86efac !important;
}
html[data-theme="light"] .protection-callout strong {
  color: #0f172a !important;
}
html[data-theme="light"] .protection-callout p {
  color: #475569 !important;
}

html[data-theme="light"] .approve-deal-panel {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06) !important;
}
html[data-theme="light"] .deal-payout-highlight-box {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
}
html[data-theme="light"] .deal-payout-highlight-box .payout-row {
  color: #334155 !important;
}
html[data-theme="light"] .deal-payout-highlight-box .payout-row.net {
  color: #0f172a !important;
  border-top-color: #cbd5e1 !important;
}
html[data-theme="light"] .deal-payout-highlight-box .payout-row.net strong.highlight {
  color: #059669 !important;
}

/* ========================================================
   PROGRESSIVE WEB APP (PWA) STYLES & STANDALONE ADAPTATION
   ======================================================== */
.pwa-install-banner {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 90;
  width: min(calc(100% - 24px), 440px);
  padding: 10px 14px;
  border-radius: 18px;
  background: rgba(10, 18, 36, 0.94);
  border: 1px solid var(--line-highlight);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 24px rgba(212, 175, 55, 0.25);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  animation: pwaSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes pwaSlideUp {
  from { opacity: 0; transform: translate(-50%, 20px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}
.pwa-banner-inner {
  display: flex;
  align-items: center;
  gap: 12px;
}
.pwa-icon-box {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(6, 12, 26, 0.8);
  border: 1px solid var(--line-strong);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.pwa-banner-copy {
  flex: 1 1 auto;
  min-width: 0;
}
.pwa-banner-copy strong {
  display: block;
  font-size: 13px;
  font-weight: 850;
  color: var(--ink);
  line-height: 1.2;
}
.pwa-banner-copy span {
  display: block;
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}
.pwa-banner-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.pwa-install-btn {
  min-height: 34px;
  padding: 0 14px;
  font-size: 12px;
  font-weight: 850;
  border-radius: 999px;
}
.pwa-dismiss-btn {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
  transition: color 0.15s ease;
}
.pwa-dismiss-btn:hover {
  color: var(--ink);
}

/* Standalone PWA Safe-Area Support (iOS notch, status bar, home indicator) */
@media (display-mode: standalone) {
  .site-header,
  .marketplace-header {
    padding-top: max(14px, env(safe-area-inset-top, 0px)) !important;
    min-height: calc(52px + env(safe-area-inset-top, 0px)) !important;
  }
  .mobile-nav {
    padding-bottom: max(10px, env(safe-area-inset-bottom, 0px));
    min-height: calc(64px + env(safe-area-inset-bottom, 0px));
  }
  .gem-reels-section {
    height: calc(100dvh - 52px - 64px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
  }
  .pwa-install-banner {
    display: none !important;
  }
}

html[data-theme="light"] .pwa-install-banner {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(180, 134, 47, 0.4);
  box-shadow: 0 16px 40px rgba(7, 23, 53, 0.15), 0 0 20px rgba(212, 175, 55, 0.2);
}
html[data-theme="light"] .pwa-icon-box {
  background: #f8fafc;
  border-color: var(--line-strong);
}

/* ========================================================
   LUXURY DONUT CIRCLE GEMSTONE LOADER
   ======================================================== */
.luxury-donut-loader {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  width: 100%;
  height: 100%;
  padding: 40px 20px;
  box-sizing: border-box;
}

.donut-spinner-wrap {
  position: relative;
  width: 76px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.donut-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 4px solid rgba(212, 175, 55, 0.18);
  border-top-color: #fcedb4;
  border-right-color: #d4af37;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.25);
  animation: donutSpin 1.1s cubic-bezier(0.55, 0.15, 0.45, 0.85) infinite;
}

.donut-center-gem {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: gemGlowPulse 1.8s ease-in-out infinite;
  user-select: none;
}

.donut-gem-img {
  display: block;
  width: 38px;
  height: auto;
  max-width: 100%;
  aspect-ratio: 569 / 455;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  filter: brightness(2.8) contrast(1.2) drop-shadow(0 0 10px rgba(56, 189, 248, 0.9));
  transition: filter 0.25s ease, transform 0.25s ease;
}

.donut-spinner-wrap[style*="54px"] .donut-gem-img,
.deal-loading-card .donut-gem-img {
  width: 28px;
}

.pull-gem-icon .donut-gem-img,
.pull-gem-vector {
  width: 22px;
  filter: brightness(2.8) contrast(1.2) drop-shadow(0 0 8px rgba(56, 189, 248, 0.85));
}

@keyframes donutSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes gemGlowPulse {
  0%, 100% {
    transform: scale(0.92);
    opacity: 0.85;
    filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.5));
  }
  50% {
    transform: scale(1.08);
    opacity: 1;
    filter: drop-shadow(0 0 18px rgba(56, 189, 248, 0.95)) drop-shadow(0 0 10px rgba(212, 175, 55, 0.8));
  }
}

html[data-theme="light"] .donut-ring {
  border-color: rgba(212, 175, 55, 0.22);
  border-top-color: #d4af37;
  border-right-color: #8a671c;
  box-shadow: 0 0 16px rgba(212, 175, 55, 0.2);
}

html[data-theme="light"] .donut-gem-img,
html[data-theme="light"] .pull-gem-vector {
  filter: drop-shadow(0 2px 6px rgba(8, 24, 78, 0.35)) drop-shadow(0 0 6px rgba(212, 175, 55, 0.4));
}

/* ========================================================
   TOUCH PULL-TO-REFRESH SYSTEM (PWA & MOBILE WEB)
   ======================================================== */
.pull-refresh-indicator {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
  transform: translate3d(0, -80px, 0);
  opacity: 0;
  transition: transform 0.25s cubic-bezier(0.2, 0.9, 0.3, 1), opacity 0.2s ease;
}

.pull-refresh-indicator.pulling {
  opacity: 1;
  transition: none; /* Smooth 1:1 touch response */
}

.pull-refresh-indicator.refreshing {
  opacity: 1;
  transform: translate3d(0, calc(max(14px, env(safe-area-inset-top, 0px)) + 54px), 0) !important;
  transition: transform 0.25s ease-out;
}

.pull-refresh-indicator.retracting {
  opacity: 0;
  transform: translate3d(0, -80px, 0) !important;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease;
}

.pull-refresh-content {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(8, 16, 34, 0.94);
  border: 1.5px solid rgba(212, 175, 55, 0.4);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5), 0 0 14px rgba(212, 175, 55, 0.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
}

html[data-theme="light"] .pull-refresh-content {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(180, 134, 47, 0.5);
  box-shadow: 0 10px 28px rgba(7, 23, 53, 0.15), 0 0 14px rgba(212, 175, 55, 0.2);
}

.pull-donut-ring {
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  border: 2.5px solid rgba(212, 175, 55, 0.2);
  border-top-color: #fcedb4;
  border-right-color: #d4af37;
  transition: transform 0.05s linear;
}

.pull-refresh-indicator.refreshing .pull-donut-ring {
  animation: donutSpin 0.85s linear infinite;
}

.pull-gem-icon {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.7));
}

.pull-refresh-indicator.pull-ready .pull-refresh-content {
  border-color: #fcedb4;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(212, 175, 55, 0.5);
}

/* ========================================================
   DEAL ROOM LOADING, ERROR & MANUAL LOOKUP CARDS
   ======================================================== */
.deal-loading-card,
.deal-error-card,
.deal-lookup-card {
  max-width: 540px;
  margin: 32px auto;
  padding: 32px 24px;
  border-radius: 20px;
  background: rgba(12, 24, 48, 0.95);
  border: 1px solid rgba(212, 175, 55, 0.3);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 24px rgba(212, 175, 55, 0.15);
  text-align: center;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-sizing: border-box;
}

html[data-theme="light"] .deal-loading-card,
html[data-theme="light"] .deal-error-card,
html[data-theme="light"] .deal-lookup-card {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(180, 134, 47, 0.4);
  box-shadow: 0 20px 50px rgba(7, 23, 53, 0.12);
}

.deal-lookup-card h2,
.deal-error-card h2 {
  font-size: 20px;
  font-weight: 800;
  margin: 10px 0 8px;
  color: var(--ink, #ffffff);
}

.deal-lookup-card p,
.deal-error-card p {
  font-size: 13px;
  color: var(--muted, #94a3b8);
  margin-bottom: 20px;
  line-height: 1.5;
}

.deal-lookup-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0 auto 16px;
  max-width: 440px;
}

.deal-lookup-input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1.5px solid rgba(212, 175, 55, 0.35);
  background: rgba(4, 8, 19, 0.7);
  color: #fff;
  font-size: 14px;
  font-family: inherit;
  box-sizing: border-box;
  text-align: center;
  letter-spacing: 0.5px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

html[data-theme="light"] .deal-lookup-input {
  background: #f8fafc;
  color: #0c1830;
  border-color: #cbd5e1;
}

.deal-lookup-input:focus {
  outline: none;
  border-color: #d4af37;
  box-shadow: 0 0 14px rgba(212, 175, 55, 0.4);
}

.recent-deals-drawer {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: left;
}

html[data-theme="light"] .recent-deals-drawer {
  border-top-color: #e2e8f0;
}

.recent-deals-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #d4af37;
  margin-bottom: 8px !important;
}

.recent-deal-item-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--ink, #fff);
  cursor: pointer;
  margin-bottom: 8px;
  transition: all 0.15s ease;
  font-family: inherit;
  text-decoration: none;
  box-sizing: border-box;
}

html[data-theme="light"] .recent-deal-item-btn {
  background: #f1f5f9;
  border-color: #e2e8f0;
  color: #0f172a;
}

.recent-deal-item-btn:hover {
  background: rgba(212, 175, 55, 0.15);
  border-color: rgba(212, 175, 55, 0.5);
}

/* ========================================================
   DEAL ROOM: 3-ROUND PRICE NEGOTIATION & DOUBLE-BLIND CHAT
   ======================================================== */
.negotiation-panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* 1. Offer Timeline Card */
.offer-timeline-card {
  padding: 20px;
  border-radius: 16px;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

html[data-theme="light"] .offer-timeline-card {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.offer-timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

html[data-theme="light"] .offer-timeline-header {
  border-bottom-color: #f1f5f9;
}

.offer-timeline-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  color: #fff;
}

html[data-theme="light"] .offer-timeline-header h3 {
  color: #0f172a;
}

.round-status-pill {
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.offer-timeline-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

.timeline-node-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  position: relative;
  padding-bottom: 20px;
}

.timeline-node-item:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 11px;
  top: 24px;
  bottom: 0;
  width: 2px;
  background: rgba(255, 255, 255, 0.12);
}

html[data-theme="light"] .timeline-node-item:not(:last-child)::after {
  background: #e2e8f0;
}

.timeline-node-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  z-index: 1;
}

.timeline-node-dot.dot-asking {
  background: #334155;
  border: 2px solid #64748b;
  color: #94a3b8;
}

html[data-theme="light"] .timeline-node-dot.dot-asking {
  background: #cbd5e1;
  border-color: #94a3b8;
}

.timeline-node-dot.dot-buyer {
  background: #1e3a8a;
  border: 2px solid #3b82f6;
  color: #93c5fd;
}

.timeline-node-dot.dot-seller {
  background: #78350f;
  border: 2px solid #f59e0b;
  color: #fde68a;
}

.timeline-node-dot.dot-current {
  background: #047857;
  border: 2px solid #10b981;
  color: #a7f3d0;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.4);
}

.timeline-node-body {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.timeline-node-info strong {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: #f1f5f9;
}

html[data-theme="light"] .timeline-node-info strong {
  color: #0f172a;
}

.timeline-node-info p {
  margin: 2px 0 0;
  font-size: 11px;
  color: #94a3b8;
}

.timeline-node-price {
  text-align: right;
}

.timeline-node-price .price-val {
  font-size: 15px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.01em;
}

html[data-theme="light"] .timeline-node-price .price-val {
  color: #0f172a;
}

.timeline-node-price .time-label {
  display: block;
  font-size: 10px;
  color: #64748b;
  margin-top: 1px;
}

/* 2. Messages Card (Buyer & Seller) */
.deal-messages-card {
  padding: 20px;
  border-radius: 16px;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

html[data-theme="light"] .deal-messages-card {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.messages-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

html[data-theme="light"] .messages-header {
  border-bottom-color: #f1f5f9;
}

.messages-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  color: #fff;
}

html[data-theme="light"] .messages-header h3 {
  color: #0f172a;
}

.messages-privacy-badge {
  font-size: 10px;
  font-weight: 700;
  color: #2dd4bf;
  background: rgba(45, 212, 191, 0.1);
  padding: 3px 8px;
  border-radius: 6px;
}

.messages-thread {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 320px;
  overflow-y: auto;
  padding: 4px 0 10px;
}

.msg-bubble {
  display: flex;
  flex-direction: column;
  max-width: 82%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.45;
  box-sizing: border-box;
}

.msg-bubble.from-buyer {
  align-self: flex-end;
  background: #1e293b;
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #e2e8f0;
  border-bottom-right-radius: 4px;
}

html[data-theme="light"] .msg-bubble.from-buyer {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1e3a8a;
}

.msg-bubble.from-seller {
  align-self: flex-start;
  background: #1e293b;
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #e2e8f0;
  border-bottom-left-radius: 4px;
}

html[data-theme="light"] .msg-bubble.from-seller {
  background: #fffbeb;
  border-color: #fde68a;
  color: #78350f;
}

.msg-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
  font-size: 11px;
}

.msg-sender-tag {
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 4px;
}

.msg-bubble.from-buyer .msg-sender-tag { color: #60a5fa; }
.msg-bubble.from-seller .msg-sender-tag { color: #fbbf24; }

.msg-timestamp {
  font-size: 10px;
  color: #94a3b8;
}

.msg-text-body {
  word-break: break-word;
}

.messages-composer-form {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.msg-composer-input {
  flex: 1;
  padding: 10px 14px;
  border-radius: 10px;
  background: #020617;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 13px;
  font-family: inherit;
}

html[data-theme="light"] .msg-composer-input {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #0f172a;
}

.msg-composer-input:focus {
  outline: none;
  border-color: #d4af37;
}

.msg-send-btn {
  padding: 10px 16px;
  border-radius: 10px;
  background: rgba(212, 175, 55, 0.2);
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: #fcedb4;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.msg-send-btn:hover {
  background: rgba(212, 175, 55, 0.35);
}

/* 3. Three-Button Action Bar (Decline, Counter, Accept) */
.deal-action-3btn-row {
  display: grid;
  grid-template-columns: 1fr 1.15fr 1.25fr;
  gap: 12px;
  margin-top: 14px;
}

@media (max-width: 520px) {
  .deal-action-3btn-row {
    display: flex;
    flex-direction: column;
    gap: 9px;
    width: 100%;
  }
  .btn-action-accept {
    order: 1;
    width: 100%;
    padding: 13px 16px;
    font-size: 14.5px;
    text-align: center;
    box-sizing: border-box;
  }
  .btn-action-counter {
    order: 2;
    width: 100%;
    padding: 11px 16px;
    font-size: 13.5px;
    text-align: center;
    box-sizing: border-box;
  }
  .btn-action-decline {
    order: 3;
    width: 100%;
    padding: 10px 16px;
    font-size: 12.5px;
    text-align: center;
    box-sizing: border-box;
  }
}

.btn-action-decline {
  padding: 12px 14px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  background: rgba(239, 68, 68, 0.08);
  border: 1.5px solid rgba(239, 68, 68, 0.35);
  color: #ef4444;
  transition: all 0.15s ease;
  font-family: inherit;
}

.btn-action-decline:hover {
  background: rgba(239, 68, 68, 0.18);
  border-color: #ef4444;
}

.btn-action-counter {
  padding: 12px 14px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  background: rgba(245, 158, 11, 0.08);
  border: 1.5px solid rgba(245, 158, 11, 0.5);
  color: #f59e0b;
  transition: all 0.15s ease;
  font-family: inherit;
}

.btn-action-counter:hover:not(:disabled) {
  background: rgba(245, 158, 11, 0.2);
  border-color: #fbbf24;
}

.btn-action-counter:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  border-color: rgba(255, 255, 255, 0.1);
  color: #64748b;
  background: rgba(255, 255, 255, 0.04);
}

.btn-action-accept {
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  border: 1px solid rgba(245, 158, 11, 0.5);
  color: #ffffff;
  box-shadow: 0 4px 18px rgba(245, 158, 11, 0.35);
  transition: all 0.15s ease;
  font-family: inherit;
}

.btn-action-accept:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(245, 158, 11, 0.45);
}

/* 4. Counter Modal / Drawer */
.deal-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}

.deal-modal-backdrop[hidden] {
  display: none !important;
}

.deal-modal-sheet {
  width: 100%;
  max-width: 440px;
  background: #0f172a;
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 20px;
  padding: 24px;
  box-sizing: border-box;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
  animation: modalSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

html[data-theme="light"] .deal-modal-sheet {
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

@keyframes modalSlideUp {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.deal-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.counter-round-pill {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.15);
  padding: 3px 8px;
  border-radius: 6px;
}

.deal-modal-close {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 18px;
  cursor: pointer;
  padding: 4px 8px;
}

.counter-summary-box {
  background: rgba(0, 0, 0, 0.3);
  padding: 12px 14px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

html[data-theme="light"] .counter-summary-box {
  background: #f8fafc;
  border-color: #e2e8f0;
}

.counter-summary-box .summary-line {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #cbd5e1;
}

html[data-theme="light"] .counter-summary-box .summary-line {
  color: #475569;
}

.counter-summary-box strong { color: #f59e0b; font-weight: 900; }

.counter-input-lbl {
  display: block;
  font-size: 12px;
  font-weight: 800;
  color: #94a3b8;
  margin-bottom: 6px;
}

.counter-input-wrap {
  display: flex;
  align-items: center;
  background: #020617;
  border: 1.5px solid rgba(212, 175, 55, 0.4);
  border-radius: 12px;
  padding: 0 14px;
}

html[data-theme="light"] .counter-input-wrap {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.currency-prefix {
  font-size: 18px;
  font-weight: 900;
  color: #d4af37;
  margin-right: 6px;
}

#counterPriceInput {
  flex: 1;
  background: none;
  border: none;
  padding: 12px 0;
  font-size: 20px;
  font-weight: 900;
  color: #fff;
  font-family: inherit;
}

html[data-theme="light"] #counterPriceInput {
  color: #0f172a;
}

#counterPriceInput:focus { outline: none; }

#counterMessageInput {
  width: 100%;
  padding: 10px 12px;
  background: #020617;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  box-sizing: border-box;
}

html[data-theme="light"] #counterMessageInput {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #0f172a;
}

.counter-payout-preview {
  margin-top: 12px;
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
}

html[data-theme="light"] .counter-payout-preview {
  background: #f1f5f9;
}

.counter-payout-preview .preview-line {
  display: flex;
  justify-content: space-between;
  color: #94a3b8;
}

.counter-payout-preview .preview-line.net strong {
  color: #2dd4bf;
  font-weight: 800;
}

/* ========================================================
   GLOBAL & DEAL ROOM RESPONSIVE ENGINE (ALL SCREEN SIZES)
   Fully tested for iPhone XS (375px), iPhone SE (320px),
   Modern iPhones (390-430px), Android (360-412px), & Tablets
   ======================================================== */

/* 1. Global Viewport & Container Hardening */
html, body {
  width: 100% !important;
  max-width: 100vw !important;
  overflow-x: hidden !important;
  box-sizing: border-box !important;
}

*, *::before, *::after {
  box-sizing: border-box !important;
}

/* 2. Deal Room Header Responsiveness */
.deal-brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  min-width: 0;
}

@media (max-width: 680px) {
  .deal-header {
    height: auto !important;
    min-height: calc(54px + env(safe-area-inset-top, 0px)) !important;
    padding-top: max(10px, env(safe-area-inset-top, 0px)) !important;
    padding-bottom: 10px !important;
    padding-left: max(12px, env(safe-area-inset-left, 0px)) !important;
    padding-right: max(12px, env(safe-area-inset-right, 0px)) !important;
    width: 100% !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
    overflow: visible !important;
  }
  .deal-header-brand {
    gap: 8px !important;
    min-width: 0 !important;
  }
  .deal-header-brand .brand-logo-img {
    height: 30px !important;
    width: auto !important;
    max-width: 86px !important;
    object-fit: contain !important;
  }
  .deal-header .escrow-vault-tag {
    display: none !important;
  }
  .deal-header-actions {
    gap: 8px !important;
    flex-shrink: 0 !important;
  }
  .hide-on-deal-mobile {
    display: none !important;
  }
  .deal-status-chip {
    font-size: 10px !important;
    padding: 3px 8px !important;
    max-width: 140px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    letter-spacing: 0.02em !important;
  }
}

/* 3. Deal Main Container & Layout Grid */
@media (max-width: 900px) {
  .deal-content-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
}

@media (max-width: 680px) {
  .deal-main-container {
    padding: 14px 10px max(80px, calc(60px + env(safe-area-inset-bottom, 0px))) !important;
    width: 100% !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }
}

/* 4. Security Banner */
@media (max-width: 680px) {
  .deal-security-banner {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 10px !important;
    padding: 12px 14px !important;
    margin-bottom: 16px !important;
    border-radius: 14px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .deal-security-banner .shield-icon {
    font-size: 24px !important;
  }
  .banner-text strong {
    font-size: 13px !important;
  }
  .banner-text p {
    font-size: 11px !important;
    line-height: 1.4 !important;
  }
  .banner-badges {
    margin-left: 0 !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    width: 100% !important;
  }
  .sec-badge {
    font-size: 9.5px !important;
    padding: 2px 7px !important;
  }
}

/* 5. Party Shield Cards (Buyer & Seller) */
@media (max-width: 580px) {
  .deal-parties-card {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    padding: 12px 10px !important;
    width: 100% !important;
    border-radius: 14px !important;
    box-sizing: border-box !important;
  }
  .party-divider {
    grid-column: 1 / -1 !important;
    order: -1 !important;
    padding: 0 0 4px 0 !important;
    text-align: center !important;
  }
  .vault-node {
    display: inline-block !important;
    font-size: 10px !important;
    padding: 3px 9px !important;
    white-space: nowrap !important;
  }
  .party-col {
    min-width: 0 !important;
    padding: 8px 6px !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border-radius: 10px !important;
    box-sizing: border-box !important;
  }
  html[data-theme="light"] .party-col {
    background: rgba(15, 23, 42, 0.04) !important;
  }
  .party-role {
    font-size: 9px !important;
    letter-spacing: 0.05em !important;
  }
  .party-alias {
    font-size: 14px !important;
    word-break: break-all !important;
  }
  .party-status {
    font-size: 9.5px !important;
    line-height: 1.25 !important;
  }
}

/* 6. Timeline, Messages, & Action Cards Container */
@media (max-width: 580px) {
  .deal-timeline-card,
  .offer-timeline-card,
  .deal-messages-card,
  .deal-financial-card,
  .action-panel {
    padding: 16px 12px !important;
    border-radius: 14px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .timeline-header h3,
  .offer-timeline-header h3,
  .messages-header h3,
  .fin-card-header h3 {
    font-size: 15px !important;
  }
  .milestone-counter,
  .round-status-pill,
  .messages-privacy-badge {
    font-size: 10px !important;
    padding: 2px 7px !important;
  }
}

/* 7. Escrow Progress Milestones */
@media (max-width: 580px) {
  .timeline-step {
    gap: 10px !important;
  }
  .step-indicator {
    width: 24px !important;
    height: 24px !important;
    font-size: 11px !important;
  }
  .timeline-step:not(:last-child)::after {
    left: 11px !important;
    top: 24px !important;
  }
  .step-content {
    min-width: 0 !important;
    flex: 1 !important;
    word-break: break-word !important;
  }
  .step-content strong {
    font-size: 12px !important;
  }
  .step-content p {
    font-size: 10.5px !important;
  }
}

/* 8. Offer Timeline Progression */
@media (max-width: 580px) {
  .timeline-node-item {
    gap: 10px !important;
    padding-bottom: 14px !important;
  }
  .timeline-node-dot {
    width: 20px !important;
    height: 20px !important;
    font-size: 10px !important;
  }
  .timeline-node-item:not(:last-child)::after {
    left: 9px !important;
    top: 20px !important;
  }
  .timeline-node-body {
    min-width: 0 !important;
    flex: 1 !important;
    gap: 8px !important;
  }
  .timeline-node-info {
    min-width: 0 !important;
    flex: 1 !important;
  }
  .timeline-node-info strong {
    font-size: 12px !important;
    word-break: break-word !important;
  }
  .timeline-node-info p {
    font-size: 10.5px !important;
    word-break: break-word !important;
  }
  .timeline-node-price {
    flex-shrink: 0 !important;
    text-align: right !important;
  }
  .timeline-node-price .price-val {
    font-size: 13.5px !important;
  }
  .timeline-node-price .time-label {
    font-size: 9.5px !important;
  }
}

/* 9. Negotiation Messages Thread */
@media (max-width: 580px) {
  .msg-bubble {
    max-width: 90% !important;
    padding: 8px 12px !important;
    font-size: 12.5px !important;
  }
  .msg-meta-row {
    font-size: 10px !important;
    gap: 8px !important;
  }
  .msg-sender-tag {
    font-size: 10.5px !important;
  }
  .msg-text-body {
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
  }
  .messages-composer-form {
    gap: 6px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .msg-composer-input {
    min-width: 0 !important;
    flex: 1 !important;
    padding: 9px 10px !important;
    font-size: 12.5px !important;
  }
  .msg-send-btn {
    padding: 9px 12px !important;
    font-size: 12px !important;
    flex-shrink: 0 !important;
  }
}

/* 10. Wire Dossier & Action Centers */
.w-val {
  word-break: break-word !important;
  overflow-wrap: anywhere !important;
}
.w-val.ref-code {
  word-break: break-all !important;
  overflow-wrap: anywhere !important;
}

@media (max-width: 480px) {
  .deal-action-buttons-row {
    flex-direction: column !important;
    gap: 8px !important;
    width: 100% !important;
  }
  .approve-deal-btn,
  .decline-deal-btn {
    width: 100% !important;
    flex: none !important;
    text-align: center !important;
  }
}

/* 11. Stone Dossier & Specs Grid */
@media (max-width: 480px) {
  .stone-specs-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 6px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .spec-cell {
    min-width: 0 !important;
    padding: 7px 8px !important;
    box-sizing: border-box !important;
  }
  .spec-cell .lbl {
    font-size: 9.5px !important;
  }
  .spec-cell .val {
    font-size: 11.5px !important;
    word-break: break-word !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  .stone-title {
    font-size: 16px !important;
    margin-bottom: 10px !important;
    word-break: break-word !important;
  }
  .stone-details-body {
    padding: 14px 12px !important;
  }
}

/* 12. Counter Offer Modal / Bottom Sheet on Mobile */
@media (max-width: 520px) {
  .deal-modal-backdrop {
    padding: 0 !important;
    align-items: flex-end !important;
  }
  .deal-modal-sheet {
    max-width: 100% !important;
    width: 100% !important;
    border-radius: 20px 20px 0 0 !important;
    padding: 20px 16px max(20px, env(safe-area-inset-bottom, 0px)) !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
    box-sizing: border-box !important;
  }
  .counter-summary-box .summary-line {
    font-size: 12px !important;
  }
  .counter-modal-actions {
    flex-direction: column-reverse !important;
    gap: 8px !important;
    width: 100% !important;
  }
  .counter-modal-actions .button {
    width: 100% !important;
    flex: none !important;
  }
}

/* 13. Manual Lookup & Error Cards */
@media (max-width: 580px) {
  .deal-lookup-card,
  .deal-error-card {
    max-width: 100% !important;
    margin: 16px auto !important;
    padding: 20px 14px !important;
    border-radius: 16px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .deal-lookup-form {
    width: 100% !important;
    max-width: 100% !important;
  }
  .deal-lookup-input {
    width: 100% !important;
    padding: 12px 10px !important;
    font-size: 13.5px !important;
    box-sizing: border-box !important;
  }
}

/* 14. Admin Desk Header Mobile Safeguard */
@media (max-width: 680px) {
  .admin-header-inner {
    padding: 10px 12px !important;
    gap: 8px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .admin-title-badge {
    display: none !important;
  }
  .admin-user-pill span:not(.user-dot) {
    max-width: 90px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* ========================================================
   GLOBAL MARKETPLACE DIRECT SHIPPING & DEAL ROOM STYLES
   ======================================================== */
.role-you-tag {
  display: inline-block;
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 1px 5px;
  border-radius: 4px;
  background: #2563eb;
  color: #ffffff;
  vertical-align: middle;
  margin-left: 4px;
}

.deal-locked-address-box {
  background: rgba(0, 0, 0, 0.25);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 14px;
}

.unlocked-shipping-dossier {
  background: rgba(16, 185, 129, 0.06);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.05);
}

.buyer-destination-card {
  border-radius: 12px;
}

.shipping-address-edit-form .control.small {
  padding: 8px 10px;
  font-size: 13px;
  border-radius: 8px;
}

/* Light Theme Overrides for Direct Shipping Cards */
html[data-theme="light"] .role-you-tag {
  background: #1d4ed8;
  color: #ffffff;
}

html[data-theme="light"] .deal-locked-address-box {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
}

html[data-theme="light"] .deal-locked-address-box strong {
  color: #1e293b;
}

html[data-theme="light"] .deal-locked-address-box p {
  color: #64748b;
}

html[data-theme="light"] .unlocked-shipping-dossier {
  background: #f0fdf4;
  border: 1px solid #86efac;
}

html[data-theme="light"] .unlocked-shipping-dossier h4 {
  color: #065f46 !important;
}

html[data-theme="light"] .unlocked-shipping-dossier .address-lines-box {
  color: #1e293b !important;
}

html[data-theme="light"] .buyer-destination-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
}

html[data-theme="light"] .dest-card-head h5 {
  color: #0f172a !important;
}

html[data-theme="light"] .dest-details-readout p {
  color: #334155 !important;
}

html[data-theme="light"] .seller-dispatch-box {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
}

html[data-theme="light"] .seller-dispatch-box h4 {
  color: #0f172a !important;
}

html[data-theme="light"] .settlement-receipt-box {
  background: #f0fdf4 !important;
  border: 1px solid #86efac !important;
}

