/* ─── MHS Gold — Dark Navy Quantum Luxury ─────────────────────────────────────
   Deep space dark · Living aurora · Liquid glass · Gold flares · 3D-ready
   ─────────────────────────────────────────────────────────────────────────── */

:root {
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Newsreader", Georgia, "Times New Roman", serif;

  /* ── Core dark palette ── */
  --bg-void:    #05080f;
  --bg-surface: #0c1120;
  --bg-raised:  #111827;

  /* ── Gold spectrum ── */
  --gold:        #d4af37;
  --gold-bright: #f0cc5a;
  --gold-soft:   #c9a227;
  --gold-dim:    #9a7c1f;
  --gold-pale:   rgba(212, 175, 55, 0.1);
  --gold-glow:   rgba(212, 175, 55, 0.3);

  /* ── Liquid glass (dark) ── */
  --glass-bg:        rgba(12, 18, 36, 0.72);
  --glass-bg-hover:  rgba(18, 28, 52, 0.82);
  --glass-border:    rgba(255, 255, 255, 0.07);
  --glass-border-au: rgba(212, 175, 55, 0.22);
  --glass-inset:     rgba(255, 255, 255, 0.04);

  /* ── Text (light on dark) ── */
  --text-primary:   #f0ead6;
  --text-secondary: rgba(240, 234, 214, 0.72);
  --text-muted:     rgba(240, 234, 214, 0.44);
  --text-gold:      var(--gold-bright);

  /* ── Legacy compat ── */
  --bg-deep:        var(--bg-void);
  --bg-soft:        var(--bg-surface);
  --parchment:      var(--bg-void);
  --parchment-mid:  var(--bg-surface);
  --ink:            var(--text-primary);
  --ink-muted:      var(--text-secondary);
  --velvet:         #1a2942;
  --velvet-mid:     #243655;
  --brass-line:     rgba(212, 175, 55, 0.22);
  --border-hairline: rgba(255, 255, 255, 0.06);
  --surface-glass:  rgba(5, 8, 15, 0.9);
  --shadow-card:    0 24px 60px rgba(0,0,0,0.55), 0 1px 0 rgba(255,255,255,0.04) inset;
  --shadow-elevated: 0 32px 80px rgba(0,0,0,0.65);

  /* ── Motion ── */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring:   cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth:   cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html { scroll-behavior: smooth; }

/* ═══════════════════════════════════════════════════════════
   BODY — deep space + living aurora
═══════════════════════════════════════════════════════════ */
body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  letter-spacing: 0.01em;
  color: var(--text-primary);
  background-color: var(--bg-void);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Aurora layer — slow morph, always alive */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 80% 55% at 18% 0%,   rgba(212,175,55,0.10) 0%, transparent 60%),
    radial-gradient(ellipse 65% 45% at 88% 10%,  rgba(26,41,90,0.38)   0%, transparent 55%),
    radial-gradient(ellipse 50% 60% at 5%  75%,  rgba(60,12,95,0.12)   0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 95% 82%,  rgba(10,30,70,0.28)   0%, transparent 55%);
  animation: aurora-shift 22s ease-in-out infinite alternate;
}

/* Cinematic grain */
body::after {
  content: "";
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  opacity: 0.18;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

@keyframes aurora-shift {
  0%   { transform: scale(1)    translateX(0)     translateY(0);    opacity: 1; }
  33%  { transform: scale(1.06) translateX(2%)    translateY(-3%);  opacity: 0.85; }
  66%  { transform: scale(0.97) translateX(-1.5%) translateY(2%);   opacity: 0.95; }
  100% { transform: scale(1.04) translateX(1%)    translateY(1%);   opacity: 0.9; }
}

.app-container, .site-header, body > footer { position: relative; z-index: 1; }

/* ═══════════════════════════════════════════════════════════
   TYPOGRAPHY
═══════════════════════════════════════════════════════════ */
h1, h2, h3, .font-display { font-family: var(--font-display); font-optical-sizing: auto; color: var(--text-primary); }
.app-content h1 { font-weight: 600; letter-spacing: -0.02em; font-variation-settings: "SOFT" 40, "WONK" 0.6; }
.app-content h2,
.app-content h3 { font-weight: 600; letter-spacing: -0.015em; font-variation-settings: "SOFT" 35, "WONK" 0.4; }

/* ═══════════════════════════════════════════════════════════
   GLOBAL DARK OVERRIDES — Tailwind corrections
═══════════════════════════════════════════════════════════ */
.app-container .text-slate-900,
.site-header   .text-slate-900,
footer         .text-slate-900 { color: var(--text-primary)           !important; }
.app-container .text-slate-800,
.site-header   .text-slate-800 { color: rgba(240,234,214,.92)         !important; }
.app-container .text-slate-700,
.site-header   .text-slate-700 { color: rgba(240,234,214,.78)         !important; }
.app-container .text-slate-600,
footer         .text-slate-600 { color: rgba(240,234,214,.62)         !important; }
.app-container .text-slate-500,
footer         .text-slate-500 { color: rgba(240,234,214,.48)         !important; }
.app-container .text-amber-700 { color: var(--gold-bright)            !important; }
.app-container .text-emerald-600 { color: #6ee7b7                     !important; }
.app-container .bg-white,
footer         .bg-white        { background: var(--glass-bg)          !important; }
.app-container .border-slate-200,
footer         .border-slate-200 { border-color: rgba(255,255,255,.08) !important; }
.app-container .border-slate-300  { border-color: rgba(255,255,255,.1) !important; }

/* ═══════════════════════════════════════════════════════════
   HEADER — dark glass
═══════════════════════════════════════════════════════════ */
.site-header {
  background: rgba(5,8,15,0.9) !important;
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid rgba(212,175,55,0.1) !important;
  box-shadow: 0 1px 0 rgba(212,175,55,0.07), 0 16px 60px rgba(0,0,0,0.5);
}

/* Topbar */
.header-topbar {
  position: relative; overflow: hidden;
  background: linear-gradient(110deg, #060e1e 0%, #0d1f3f 46%, #08152a 100%);
  background-size: 220% 220%;
  animation: topbar-gradient 14s ease infinite;
  color: rgba(240,234,214,0.92);
  border-bottom: 1px solid rgba(212,175,55,0.07);
}
.header-topbar .h-11 { position: relative; z-index: 1; }
.header-topbar::after {
  content: "";
  position: absolute; top: 0; left: -35%; width: 30%; height: 100%;
  background: linear-gradient(90deg, rgba(212,175,55,0), rgba(212,175,55,0.2), rgba(212,175,55,0));
  transform: skewX(-22deg);
  animation: topbar-shine 6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes topbar-gradient { 0%,100% { background-position:0% 50%; } 50% { background-position:100% 50%; } }
@keyframes topbar-shine    { 0% { left:-40%;opacity:0; } 20% { opacity:1; } 60% { left:120%;opacity:0; } 100% { left:120%;opacity:0; } }

/* Nav links */
.nav-link {
  position: relative; transition: color 0.22s ease;
  color: rgba(240,234,214,0.7) !important;
  font-family: var(--font-body); font-weight: 500; font-size: 0.9375rem; letter-spacing: 0.02em;
}
.nav-link:hover { color: var(--text-primary) !important; }
.nav-link::after {
  content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-bright));
  border-radius: 2px; box-shadow: 0 0 8px rgba(212,175,55,0.6);
  transition: width 0.28s var(--ease-out-expo);
}
.nav-link:hover::after { width: 100%; }
.nav-link.is-active { color: var(--gold-bright) !important; font-weight: 700; }
.nav-link.is-active::after { width: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-bright)); }

.mobile-menu-panel {
  background: rgba(5,8,15,0.97) !important;
  backdrop-filter: blur(20px);
  border-color: rgba(212,175,55,0.1) !important;
}
.mobile-menu-panel a       { color: rgba(240,234,214,.72) !important; }
.mobile-menu-panel a:hover { color: var(--text-primary) !important; }
.mobile-menu-panel .is-active { color: var(--gold-bright) !important; }
.nav-glass { background: rgba(5,8,15,0.94); backdrop-filter: blur(10px); }

/* ═══════════════════════════════════════════════════════════
   PRELOADER
═══════════════════════════════════════════════════════════ */
.site-preloader {
  position: fixed; inset: 0; z-index: 100;
  background: var(--bg-void);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 1rem;
  transition: opacity 0.5s var(--ease-out-expo), visibility 0.5s ease;
}
.site-preloader.is-hidden { opacity: 0; visibility: hidden; }
.loader-ring {
  width: 48px; height: 48px;
  border: 2px solid rgba(212,175,55,0.15);
  border-top-color: var(--gold); border-right-color: rgba(212,175,55,0.5);
  border-radius: 50%;
  animation: spin 0.85s cubic-bezier(0.45,0.05,0.55,0.95) infinite;
  box-shadow: 0 0 24px rgba(212,175,55,0.25), inset 0 0 14px rgba(212,175,55,0.04);
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ═══════════════════════════════════════════════════════════
   GOLD UTILITIES
═══════════════════════════════════════════════════════════ */
.gold-text { color: var(--gold); }
.gold-gradient-text {
  background: linear-gradient(115deg, #f5e6b8 0%, var(--gold-bright) 38%, var(--gold) 62%, #7a5c0f 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 14px rgba(212,175,55,0.35));
}
.gold-ring { border: 1px solid var(--brass-line); }

/* ═══════════════════════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════════════════════ */
.btn-gold {
  font-family: var(--font-body);
  background: linear-gradient(105deg, #7a5c0f 0%, var(--gold-soft) 22%, var(--gold) 50%, var(--gold-bright) 76%, #f8edac 100%);
  color: #07090f; font-weight: 700; letter-spacing: 0.04em;
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 0 0 1px rgba(212,175,55,0.3), 0 8px 28px rgba(212,175,55,0.42), 0 2px 8px rgba(0,0,0,0.45);
  transition: transform 0.28s var(--ease-spring), filter 0.22s ease, box-shadow 0.28s ease;
  position: relative; overflow: hidden;
}
.btn-gold::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(255,255,255,0.2), rgba(255,255,255,0));
  pointer-events: none;
}
.btn-gold::after {
  content: ""; position: absolute; top: 0; left: -45%; width: 36%; height: 100%;
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,0.42), rgba(255,255,255,0));
  transform: skewX(-22deg); pointer-events: none;
  animation: btn-gold-shine 3.6s ease-in-out infinite;
}
@keyframes btn-gold-shine { 0% { left:-45%;opacity:0; } 20% { opacity:1; } 55% { left:130%;opacity:0; } 100% { left:130%;opacity:0; } }
.btn-gold:hover { filter: brightness(1.08) saturate(1.12); transform: translateY(-2px) scale(1.01); box-shadow: 0 0 0 1px rgba(212,175,55,0.5), 0 14px 36px rgba(212,175,55,0.52), 0 4px 12px rgba(0,0,0,0.5); }
.btn-gold:active { transform: translateY(0) scale(0.99); }

.btn-outline-gold {
  font-family: var(--font-body);
  border: 1px solid rgba(212,175,55,0.42); color: var(--gold-bright);
  background: rgba(212,175,55,0.06); font-weight: 600; letter-spacing: 0.02em;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.28s var(--ease-spring), box-shadow 0.25s ease;
}
.btn-outline-gold:hover { background: rgba(212,175,55,0.14); border-color: var(--gold); color: var(--gold-bright); transform: translateY(-2px); box-shadow: 0 0 24px rgba(212,175,55,0.28), 0 8px 20px rgba(0,0,0,0.35); }

.hero-content-slide .btn-outline-gold { border-color: rgba(240,234,214,0.32); color: var(--text-primary); background: rgba(5,8,15,0.38); backdrop-filter: blur(8px); }
.hero-content-slide .btn-outline-gold:hover { background: rgba(212,175,55,0.12); border-color: var(--gold-bright); color: var(--gold-bright); }

.btn-plum {
  background: linear-gradient(135deg, #0c1928, #1a3458);
  color: var(--text-primary); border: 1px solid rgba(212,175,55,0.14);
  box-shadow: 0 8px 24px rgba(0,0,0,0.45), 0 0 0 1px rgba(255,255,255,0.03) inset;
  transition: transform 0.22s ease, filter 0.2s ease, box-shadow 0.22s ease;
}
.btn-plum:hover { filter: brightness(1.1); transform: translateY(-1px); box-shadow: 0 12px 32px rgba(0,0,0,0.55), 0 0 20px rgba(212,175,55,0.1); }

.btn-editorial-cta {
  font-family: var(--font-body); font-weight: 600; letter-spacing: 0.03em;
  background: linear-gradient(135deg, rgba(212,175,55,0.12), rgba(212,175,55,0.05));
  color: var(--gold-bright); border: 1px solid rgba(212,175,55,0.28);
  box-shadow: 0 0 0 1px rgba(212,175,55,0.07) inset, 0 8px 24px rgba(0,0,0,0.38);
  transition: transform 0.28s var(--ease-spring), box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
  position: relative; overflow: hidden;
}
.btn-editorial-cta::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(212,175,55,0), rgba(212,175,55,0.18), rgba(212,175,55,0));
  transform: translateX(-110%) skewX(-22deg); transition: transform 0.65s ease; pointer-events: none;
}
.btn-editorial-cta:hover { transform: translateY(-2px) scale(1.01); box-shadow: 0 0 0 1px rgba(212,175,55,0.38), 0 14px 32px rgba(0,0,0,0.52), 0 0 28px rgba(212,175,55,0.2); background: rgba(212,175,55,0.14); border-color: rgba(212,175,55,0.52); }
.btn-editorial-cta:hover::after { transform: translateX(200%) skewX(-22deg); }

/* Header CTA */
.header-cta-animated {
  position: relative; overflow: hidden;
  animation: header-cta-float 3.2s ease-in-out infinite;
  box-shadow: 0 0 20px rgba(212,175,55,0.38), 0 8px 24px rgba(212,175,55,0.2);
}
.header-cta-animated::after {
  content: ""; position: absolute; top: 0; left: -45%; width: 36%; height: 100%;
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,0.45), rgba(255,255,255,0));
  transform: skewX(-22deg); pointer-events: none;
  animation: header-cta-shine 2.8s ease-in-out infinite;
}
@keyframes header-cta-float { 0%,100% { transform:translateY(0); } 50% { transform:translateY(-3px); } }
@keyframes header-cta-shine  { 0% { left:-45%;opacity:0; } 25% { opacity:1; } 60% { left:125%;opacity:0; } 100% { left:125%;opacity:0; } }

/* ═══════════════════════════════════════════════════════════
   HERO — full-screen cinematic
═══════════════════════════════════════════════════════════ */
.hero-section { position: relative; min-height: 68vh; background: #070912; }
@media (min-width: 641px) and (max-width: 1024px) { .hero-section { min-height: 72vh; } }
@media (min-width: 1025px) { .hero-section { min-height: 78vh; } }

.hero-slideshow { z-index: 0; position: absolute; inset: 0; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.8s ease-in-out; }
.hero-slide-image {
  width: 100%; height: 100%; object-fit: cover; object-position: center; display: block;
  transform: scale(1.04); transition: transform 9s ease-in-out;
  filter: saturate(0.82) brightness(0.72);
}
.hero-slide.is-active { opacity: 1; }
.hero-slide.is-active .hero-slide-image { transform: scale(1); }

.hero-overlay {
  background: linear-gradient(118deg, rgba(5,8,15,0.78) 0%, rgba(12,20,40,0.42) 42%, rgba(8,15,32,0.65) 100%);
  transition: opacity 0.55s var(--ease-out-expo);
  position: absolute; inset: 0;
}

/* Orbital glows */
.hero-glow {
  position: absolute; border-radius: 9999px; filter: blur(100px); pointer-events: none;
  animation: glow-pulse 7s ease-in-out infinite alternate;
}
.hero-glow.one { width:520px; height:520px; background:radial-gradient(circle,rgba(212,175,55,0.65),rgba(200,150,20,0.12)); top:-160px; right:-110px; opacity:0.28; }
.hero-glow.two { width:480px; height:480px; background:radial-gradient(circle,rgba(26,41,90,0.65),rgba(58,90,185,0.12)); bottom:-180px; left:-110px; opacity:0.32; animation-delay:-3.5s; }
@keyframes glow-pulse { 0% { transform:scale(1) rotate(0deg); opacity:0.22; } 50% { transform:scale(1.14) rotate(9deg); opacity:0.4; } 100% { transform:scale(0.93) rotate(-6deg); opacity:0.24; } }

/* Hero content */
.hero-content-stack { min-height: 330px; }
.hero-content-slide {
  position: absolute; inset: 0; opacity: 0;
  transform: translateY(26px) scale(0.99);
  transition: opacity 0.72s var(--ease-out-expo), transform 0.72s var(--ease-out-expo);
  pointer-events: none;
}
.hero-content-slide.is-active { opacity: 1; transform: translateY(0) scale(1); position: relative; pointer-events: auto; }
.hero-content-slide h1, .hero-content-slide p { overflow-wrap: anywhere; }

.hero-content-slide .hero-tagline {
  font-family: var(--font-body); font-weight: 600; letter-spacing: 0.28em;
  color: var(--gold-bright);
  text-shadow: 0 0 20px rgba(212,175,55,0.5), 0 2px 14px rgba(0,0,0,0.4);
  animation: tagline-glow 3.5s ease-in-out infinite alternate;
}
@keyframes tagline-glow {
  0%   { text-shadow:0 0 12px rgba(212,175,55,0.4),0 2px 12px rgba(0,0,0,0.4); }
  100% { text-shadow:0 0 32px rgba(212,175,55,0.75),0 0 64px rgba(212,175,55,0.18),0 2px 12px rgba(0,0,0,0.4); }
}
.hero-content-slide h1 {
  font-family: var(--font-display); font-weight: 700; font-variation-settings:"SOFT" 45,"WONK" 0.75;
  background: linear-gradient(155deg, #ffffff 0%, #f8f3e8 38%, rgba(212,175,55,0.88) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 28px rgba(0,0,0,0.55));
}
.hero-content-slide .hero-lede { font-family:var(--font-body); color:rgba(240,234,214,0.88); font-weight:400; line-height:1.72; text-shadow:0 1px 12px rgba(0,0,0,0.4); }

/* ── Slideshow drag / swipe ─────────────────────────────── */
.hero-slideshow {
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}
/* Prevent the browser's native image drag ghost interfering with swipe */
.hero-slide-image { pointer-events: none; -webkit-user-drag: none; }

/* Hint nudge: subtle left→right→centre shake on first visit */
@keyframes hero-swipe-nudge {
  0%   { transform: translateX(0); }
  18%  { transform: translateX(-28px); }
  42%  { transform: translateX(18px); }
  62%  { transform: translateX(-10px); }
  78%  { transform: translateX(6px); }
  100% { transform: translateX(0); }
}
.hero-swipe-hint { animation: hero-swipe-nudge 0.85s cubic-bezier(0.36,0.07,0.19,0.97) both; }

/* ── Slide transition — cross-fade with slight zoom ─────── */
.hero-slide { transition: opacity 0.75s ease-in-out; }
.hero-slide-image { transition: transform 9s ease-in-out, filter 0.75s ease; }

/* ── Nav buttons ────────────────────────────────────────── */
.hero-nav-btn {
  position: absolute; top: 50%; z-index: 5; width: 3.25rem; height: 3.25rem;
  border-radius: 14px; border: 1px solid rgba(212,175,55,0.28);
  background: rgba(5,8,15,0.62); color: var(--gold-bright);
  display: inline-flex; align-items: center; justify-content: center;
  transform: translateY(-50%);
  transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
  backdrop-filter: blur(10px); cursor: pointer;
}
.hero-nav-btn:hover { background:rgba(212,175,55,0.14); border-color:rgba(212,175,55,0.6); transform:translateY(-50%) scale(1.06); box-shadow:0 0 28px rgba(212,175,55,0.32); }
.hero-nav-prev { left: 1.25rem; }
.hero-nav-next { right: 1.25rem; }

/* Indicators */
.hero-indicators { position: absolute; left: 50%; bottom: 1.25rem; transform: translateX(-50%); z-index: 6; display: flex; align-items: center; gap: 0.5rem; }
.hero-indicator-dot { width: 2.75rem; height: 2.75rem; border-radius: 9999px; border: none; background: transparent; padding: 0; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.hero-indicator-dot::before { content: ""; width: 0.55rem; height: 0.55rem; border-radius: 9999px; border: 1px solid rgba(212,175,55,0.45); background: rgba(212,175,55,0.18); transition: width 0.3s var(--ease-spring), background 0.28s ease, box-shadow 0.28s ease; }
.hero-indicator-dot.is-active::before { width: 1.6rem; background: var(--gold); border-color: var(--gold-bright); box-shadow: 0 0 14px rgba(212,175,55,0.65); }

/* ═══════════════════════════════════════════════════════════
   HOME SECTION SHELL
═══════════════════════════════════════════════════════════ */
.home-bullion .section-shell {
  position: relative;
  padding-top: clamp(2.75rem, 8vw, 5.5rem); padding-bottom: clamp(2.75rem, 8vw, 5.5rem);
  overflow-x: clip; width: 100%; max-width: 100%;
}
.home-bullion .section-shell::before {
  content: ""; position: absolute; top: 2rem; left: 0; width: min(42vw, 320px); height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
  opacity: 0.55; pointer-events: none; box-shadow: 0 0 14px rgba(212,175,55,0.4);
}
.section-shell { padding-top: 5rem; padding-bottom: 5rem; }
.home-editorial-intro { position: relative; }
@media (min-width: 1024px) { .home-editorial-intro { padding-left: clamp(1rem,2.5vw,1.75rem); border-left: 1px solid var(--brass-line); box-sizing: border-box; } }

.home-bullion-prices { align-items: stretch; width: 100%; }
.home-bullion-prices .price-card-sell { margin-top: 0; }

/* ═══════════════════════════════════════════════════════════
   PRODUCTS INTRO CARD
═══════════════════════════════════════════════════════════ */
.products-intro-card {
  position: relative; box-sizing: border-box; max-width: 100%;
  border: 1px solid rgba(212,175,55,0.18); border-radius: 1.25rem;
  padding: 2rem 1.75rem;
  background: var(--glass-bg);
  backdrop-filter: blur(22px) saturate(160%); -webkit-backdrop-filter: blur(22px) saturate(160%);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.04) inset, 0 28px 64px rgba(0,0,0,0.55), 0 0 64px rgba(212,175,55,0.07);
  overflow: hidden;
  animation: products-intro-rise 0.85s var(--ease-out-expo) both;
}
.products-intro-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212,175,55,0.55), transparent);
}
.products-intro-card::after {
  content: ""; position: absolute; top: 0; left: -50%; width: 36%; height: 100%;
  background: linear-gradient(90deg, rgba(212,175,55,0), rgba(212,175,55,0.06), rgba(212,175,55,0));
  transform: skewX(-22deg);
  animation: products-intro-shine 4.2s ease-in-out infinite; pointer-events: none;
}
.products-intro-tag {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.32rem 0.9rem; border-radius: 9999px;
  background: linear-gradient(90deg, rgba(212,175,55,0.14), rgba(212,175,55,0.06));
  border: 1px solid rgba(212,175,55,0.25); color: var(--gold-bright);
  font-family: var(--font-display); font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 600;
}
.products-intro-title { margin-top: 0.55rem; font-family: var(--font-display); color: var(--text-primary); font-weight: 600; font-variation-settings:"SOFT" 40,"WONK" 0.5; }
.products-intro-copy  { font-family: var(--font-body); color: var(--text-secondary); max-width: 100%; margin-left: auto; margin-right: auto; }
@keyframes products-intro-rise  { from { opacity:0; transform:translateY(18px); } to { opacity:1; transform:translateY(0); } }
@keyframes products-intro-shine { 0% { left:-50%;opacity:0; } 22% { opacity:1; } 60% { left:130%;opacity:0; } 100% { left:130%;opacity:0; } }

/* ═══════════════════════════════════════════════════════════
   PREMIUM CARD
═══════════════════════════════════════════════════════════ */
.premium-card {
  background: var(--glass-bg);
  backdrop-filter: blur(22px) saturate(160%); -webkit-backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid var(--glass-border); box-shadow: var(--shadow-card);
  transition: transform 0.35s var(--ease-out-expo), border-color 0.3s ease, box-shadow 0.35s ease;
}
.premium-card:hover { transform: translateY(-4px); border-color: rgba(212,175,55,0.28); box-shadow: 0 36px 88px rgba(0,0,0,0.7), 0 0 48px rgba(212,175,55,0.12), 0 1px 0 rgba(255,255,255,0.06) inset; }

/* ═══════════════════════════════════════════════════════════
   PRICE CARDS
═══════════════════════════════════════════════════════════ */
.price-card { isolation: isolate; display: flex; flex-direction: column; height: 100%; }

.price-card-buy {
  background: linear-gradient(140deg, rgba(9,16,32,0.95) 0%, rgba(14,26,52,0.9) 52%, rgba(18,34,64,0.92) 100%);
  border: 1px solid rgba(212,175,55,0.28) !important;
  box-shadow: 0 0 0 1px rgba(212,175,55,0.08) inset, 0 28px 72px rgba(0,0,0,0.7), 0 0 48px rgba(212,175,55,0.12);
  backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
}
.price-card-buy .text-amber-700    { color: var(--gold-bright) !important; }
.price-card-buy .price-card-rate   { color: #ffffff !important; }
.price-card-buy .text-emerald-600  { color: #6ee7b7 !important; }

.price-card-sell {
  background: linear-gradient(140deg, rgba(10,18,36,0.9) 0%, rgba(16,26,48,0.85) 52%, rgba(13,22,44,0.92) 100%);
  border: 1px solid rgba(212,175,55,0.18) !important;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.03) inset, 0 28px 72px rgba(0,0,0,0.6);
  backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
}
.price-card-sell .text-amber-700   { color: var(--gold-bright) !important; }
.price-card-sell .price-card-rate  { color: var(--text-primary) !important; }
.price-card-sell .text-slate-600   { color: rgba(212,175,55,0.75) !important; }

.price-icon-wrap {
  width: 2.8rem; height: 2.8rem; border-radius: 9999px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(212,175,55,0.12); border: 1px solid rgba(212,175,55,0.25);
  color: var(--gold-bright); backdrop-filter: blur(4px);
  position: relative; z-index: 1;
  animation: float-icon 3.8s ease-in-out infinite;
  box-shadow: 0 0 16px rgba(212,175,55,0.2);
}
.price-card-buy  .price-icon-wrap { color: var(--gold-bright); }
.price-card-sell .price-icon-wrap { color: var(--gold); }

.price-float { position: absolute; border-radius: 9999px; pointer-events: none; z-index: 0; }
.price-float.one { width:120px; height:120px; top:-38px; right:-30px; }
.price-float.two { width:86px;  height:86px;  bottom:-28px; left:-24px; }
.price-card-buy  .price-float.one { background: radial-gradient(circle, rgba(212,175,55,0.18), transparent); }
.price-card-buy  .price-float.two { background: radial-gradient(circle, rgba(180,150,30,0.12), transparent); }
.price-card-sell .price-float.one { background: radial-gradient(circle, rgba(120,140,200,0.14), transparent); }
.price-card-sell .price-float.two { background: radial-gradient(circle, rgba(100,120,180,0.1),  transparent); }
@keyframes float-icon { 0%,100% { transform:translateY(0); } 50% { transform:translateY(-5px); } }

/* ═══════════════════════════════════════════════════════════
   GALLERY SECTION HEAD
═══════════════════════════════════════════════════════════ */
.gallery-section-head { display:flex; flex-direction:column; gap:1rem; margin-bottom:1.75rem; }
@media (min-width: 640px) { .gallery-section-head { flex-direction:row; flex-wrap:wrap; align-items:flex-end; justify-content:space-between; gap:1.5rem; } }

.gallery-kicker { font-family:var(--font-display); font-size:0.8125rem; font-weight:600; letter-spacing:0.24em; text-transform:uppercase; color:var(--gold-bright); text-shadow:0 0 18px rgba(212,175,55,0.45); margin-bottom:0.35rem; }
.gallery-section-head h3 { font-size:clamp(1.5rem,3.5vw,2.125rem); font-weight:600; color:var(--text-primary); line-height:1.15; }
.gallery-cta-link { font-family:var(--font-body); font-weight:600; font-size:0.9375rem; letter-spacing:0.04em; text-transform:uppercase; color:var(--gold-dim); border-bottom:1px solid rgba(212,175,55,0.25); padding-bottom:0.15rem; transition:color 0.25s ease,border-color 0.25s ease,transform 0.28s var(--ease-out-expo),text-shadow 0.25s ease; align-self:flex-start; }
@media (min-width: 640px) { .gallery-cta-link { align-self:auto; margin-bottom:0.35rem; } }
.gallery-cta-link:hover { color:var(--gold-bright); border-color:var(--gold); transform:translateX(3px); text-shadow:0 0 22px rgba(212,175,55,0.45); }

/* Gallery tabs */
.gallery-tabs-wrap { display:flex; align-items:center; gap:0.55rem; flex-wrap:wrap; }
.gallery-tab-btn { font-family:var(--font-body); padding:0.5rem 1.1rem; border-radius:9999px; border:1px solid rgba(212,175,55,0.18); background:rgba(12,18,36,0.72); color:var(--text-secondary); font-weight:600; font-size:0.9rem; letter-spacing:0.02em; transition:all 0.28s var(--ease-out-expo); cursor:pointer; backdrop-filter:blur(8px); }
.gallery-tab-btn:hover { border-color:rgba(212,175,55,0.38); background:rgba(212,175,55,0.08); color:var(--text-primary); }
.gallery-tab-btn.is-active { background:linear-gradient(120deg,rgba(212,175,55,0.18),rgba(212,175,55,0.07)); color:var(--gold-bright); border-color:rgba(212,175,55,0.42); box-shadow:0 0 22px rgba(212,175,55,0.22),0 6px 18px rgba(0,0,0,0.4); text-shadow:0 0 12px rgba(212,175,55,0.4); }

/* ═══════════════════════════════════════════════════════════
   GALLERY CARDS — 3D-ready dark glass
═══════════════════════════════════════════════════════════ */
.gallery-showcase-card {
  position: relative; border-radius: 1.25rem;
  border: 1px solid rgba(212,175,55,0.14);
  background: rgba(10,16,32,0.78);
  backdrop-filter: blur(18px) saturate(150%); -webkit-backdrop-filter: blur(18px) saturate(150%);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.62), 0 1px 0 rgba(255,255,255,0.04) inset;
  transition: border-color 0.32s ease, box-shadow 0.32s ease;
  transform-style: preserve-3d; will-change: transform;
}
.gallery-showcase-card::before { content:""; position:absolute; top:0; left:0; right:0; height:1px; background:linear-gradient(90deg,transparent 0%,rgba(212,175,55,0.55) 50%,transparent 100%); z-index:3; opacity:0.45; transition:opacity 0.3s ease; }
.gallery-showcase-card::after  { content:""; position:absolute; top:0; left:-58%; width:44%; height:100%; background:linear-gradient(90deg,rgba(255,255,255,0),rgba(212,175,55,0.07),rgba(255,255,255,0)); transform:skewX(-22deg); opacity:0; pointer-events:none; z-index:2; }
.gallery-showcase-card:hover   { border-color:rgba(212,175,55,0.38); box-shadow:0 32px 88px rgba(0,0,0,0.75),0 0 48px rgba(212,175,55,0.18),0 1px 0 rgba(255,255,255,0.07) inset; }
.gallery-showcase-card:hover::before { opacity:1; }
.gallery-showcase-card:hover::after  { animation:gallery-card-shine 1.4s ease forwards; }
.gallery-showcase-card > * { position:relative; z-index:2; }
@keyframes gallery-card-shine { 0% { left:-58%;opacity:0; } 30% { opacity:1; } 100% { left:132%;opacity:0; } }

.gallery-image-wrap { position:relative; border-bottom:1px solid rgba(212,175,55,0.1); background:linear-gradient(180deg,rgba(5,8,15,0.3),rgba(10,16,32,0.55)); overflow:hidden; }
.gallery-image { width:100%; height:280px; object-fit:contain; object-position:center; display:block; transition:transform 0.55s var(--ease-out-expo); filter:drop-shadow(0 6px 24px rgba(0,0,0,0.45)); }
.gallery-showcase-card:hover .gallery-image { transform:scale(1.05) translateY(-3px); }

.gallery-ribbon { position:absolute; left:0.9rem; top:1rem; writing-mode:vertical-rl; transform:rotate(180deg); font-size:0.85rem; font-weight:700; letter-spacing:0.04em; padding:0.55rem 0.45rem; border-radius:0.55rem; }
.gallery-ribbon.featured  { background:linear-gradient(180deg,rgba(212,175,55,0.9),rgba(155,120,18,0.9)); box-shadow:0 0 14px rgba(212,175,55,0.45); color:#07090f; }
.gallery-ribbon.out-stock { background:rgba(38,45,68,0.92); border:1px solid rgba(255,255,255,0.1); color:rgba(240,234,214,0.8); }

.gallery-title       { font-family:var(--font-display); color:var(--text-primary); font-weight:600; font-size:1.05rem; line-height:1.35; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; letter-spacing:-0.01em; }
.gallery-series      { color:var(--text-secondary); font-size:1rem; font-weight:500; }
.gallery-meta-row    { display:flex; flex-wrap:wrap; gap:0.45rem; }
.gallery-meta-pill   { display:inline-flex; align-items:center; padding:0.22rem 0.58rem; border-radius:9999px; background:rgba(212,175,55,0.09); color:var(--gold-bright); border:1px solid rgba(212,175,55,0.22); font-size:0.73rem; font-weight:600; }
.gallery-meta-pill.subtle { background:rgba(255,255,255,0.04); border-color:rgba(255,255,255,0.1); color:var(--text-secondary); }
.gallery-price-label { color:var(--text-muted); font-size:0.7rem; text-transform:uppercase; letter-spacing:0.1em; font-weight:700; margin-bottom:0.2rem; }
.gallery-price       { color:var(--gold-bright); font-size:1.25rem; line-height:1; font-weight:800; text-shadow:0 0 18px rgba(212,175,55,0.35); }
.gallery-rating      { color:var(--text-primary); font-size:0.9rem; font-weight:700; padding:0.35rem 0.62rem; border-radius:0.65rem; background:rgba(212,175,55,0.08); border:1px solid rgba(212,175,55,0.2); backdrop-filter:blur(6px); }
.gallery-rating span { color:var(--gold-bright); }

/* ═══════════════════════════════════════════════════════════
   REVEAL ANIMATION
═══════════════════════════════════════════════════════════ */
[data-reveal] { opacity:0; transform:translateY(34px); transition:opacity 0.78s var(--ease-out-expo),transform 0.78s var(--ease-out-expo); }
[data-reveal].is-visible { opacity:1; transform:translateY(0); }
[data-reveal][data-reveal-delay="1"] { transition-delay:0.1s; }
[data-reveal][data-reveal-delay="2"] { transition-delay:0.2s; }
[data-reveal][data-reveal-delay="3"] { transition-delay:0.3s; }
[data-reveal][data-reveal-delay="4"] { transition-delay:0.4s; }

/* ═══════════════════════════════════════════════════════════
   TICKER / FAQ / CODE ENTRY
═══════════════════════════════════════════════════════════ */
.ticker-wrap { overflow:hidden; position:relative; }
.ticker-track { display:inline-flex; white-space:nowrap; animation:ticker 26s linear infinite; }
@keyframes ticker { from { transform:translateX(0); } to { transform:translateX(-50%); } }
.faq-item button[aria-expanded="true"] .faq-icon { transform:rotate(45deg); }
.faq-content { max-height:0; overflow:hidden; transition:max-height 0.38s ease; }
.code-entry-section .code-entry-cards-stack { display:flex; flex-direction:column; gap:1.5rem; max-width:28rem; margin-left:auto; margin-right:auto; }
.code-entry-section .app-card { transition:transform 0.3s ease,box-shadow 0.3s ease; min-width:0; }
.code-entry-section .app-card.anim-delay-1 { animation-delay:0.1s; }
.code-entry-section .app-card.anim-delay-2 { animation-delay:0.2s; }
.code-entry-section .code-entry-card-2 { display:block !important; visibility:visible !important; min-height:120px; }

/* ═══════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════ */
footer.site-footer {
  font-family: var(--font-body);
  background: linear-gradient(180deg, rgba(8,13,26,0.98) 0%, rgba(5,8,15,1) 100%) !important;
  border-top: 1px solid rgba(212,175,55,0.12) !important;
  box-shadow: 0 -1px 0 rgba(212,175,55,0.06), inset 0 1px 0 rgba(255,255,255,0.02);
  position: relative; overflow: hidden;
}
footer.site-footer::before { content:""; position:absolute; top:0; left:0; right:0; height:1px; background:linear-gradient(90deg,transparent,rgba(212,175,55,0.45),transparent); }
footer .font-semibold { font-family:var(--font-display); font-weight:600; color:var(--text-primary) !important; }
footer a { transition:color 0.2s ease; }
footer a:hover { color:var(--gold-bright) !important; }

/* ═══════════════════════════════════════════════════════════
   MODALS & POPUPS
═══════════════════════════════════════════════════════════ */
.startup-popup-card {
  position: relative; background: rgba(8,12,22,0.97);
  border: 1px solid rgba(212,175,55,0.22);
  box-shadow: 0 32px 88px rgba(0,0,0,0.85), 0 0 64px rgba(212,175,55,0.08);
  backdrop-filter: blur(24px);
}
.startup-popup-close {
  position: absolute; top: 0.6rem; right: 0.6rem; width: 2.25rem; height: 2.25rem;
  border-radius: 9999px; border: 1px solid rgba(212,175,55,0.24);
  background: rgba(12,18,36,0.88); color: var(--text-secondary);
  font-size: 1.3rem; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.startup-popup-close:hover { border-color:var(--gold); background:rgba(212,175,55,0.12); color:var(--gold-bright); }

#appDownloadModal .w-full.max-w-2xl {
  background: rgba(8,12,24,0.97) !important; border: 1px solid rgba(212,175,55,0.2) !important;
  box-shadow: 0 32px 88px rgba(0,0,0,0.85) !important; backdrop-filter: blur(24px);
}
#appDownloadModal .border-b    { border-color:rgba(212,175,55,0.1) !important; }
#appDownloadModal .text-slate-900 { color:var(--text-primary) !important; }
#appDownloadModal .text-amber-700 { color:var(--gold-bright) !important; }
#appDownloadModal .w-9.h-9     { border-color:rgba(212,175,55,0.2) !important; color:var(--text-secondary) !important; background:rgba(12,18,36,0.7) !important; }

/* ═══════════════════════════════════════════════════════════
   FLOATING BUTTON
═══════════════════════════════════════════════════════════ */
.site-floating-btn { position:fixed; right:1rem; bottom:1rem; z-index:80; display:inline-flex; align-items:center; justify-content:center; width:auto; height:auto; padding:0; border-radius:0; background:transparent; color:inherit; border:none; box-shadow:none; text-decoration:none; transition:transform 0.22s ease,filter 0.22s ease; }
.site-floating-btn:hover { transform:translateY(-3px) scale(1.06); filter:brightness(1.12); }
.site-floating-btn-icon { width:var(--floating-icon-size,48px); height:var(--floating-icon-size,48px); object-fit:contain; filter:drop-shadow(0 0 10px rgba(212,175,55,0.3)); }

/* ═══════════════════════════════════════════════════════════
   PRODUCT IMAGE VIEWER
═══════════════════════════════════════════════════════════ */
.product-image-panel {
  position: relative;
  border-radius: 1.25rem;
  padding: 1.125rem 1.125rem 1.25rem;
  background:
    linear-gradient(155deg, rgba(22, 32, 58, 0.55) 0%, transparent 42%),
    linear-gradient(180deg, rgba(14, 20, 38, 0.98) 0%, rgba(6, 10, 18, 0.99) 100%);
  border: 1px solid rgba(212, 175, 55, 0.2);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 20px 56px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(0, 0, 0, 0.35);
  isolation: isolate;
}
.product-image-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(240, 204, 90, 0.22) 0%,
    transparent 35%,
    transparent 65%,
    rgba(212, 175, 55, 0.12) 100%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 0;
}
.product-image-panel-header {
  position: relative;
  z-index: 1;
  margin: 0 0 0.875rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.product-image-panel-eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-bright);
  opacity: 0.92;
}
.product-image-viewer {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.product-image-panel-meta {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 0.875rem;
  padding-top: 0.875rem;
  border-top: 1px solid rgba(212, 175, 55, 0.12);
}
.product-image-panel-meta .product-image-toolbar {
  padding: 0.4rem 0.55rem;
  border-radius: 0.7rem;
  background: rgba(5, 8, 15, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.product-image-toolbar { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:0.5rem; }
.product-zoom-glyph {
  display: block;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1;
}
.product-magnify-hint {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--text-muted);
}
.product-magnify-hint-label {
  color: var(--text-secondary);
  font-weight: 600;
}
.product-gallery-thumbs { display:flex; flex-wrap:wrap; gap:0.5rem; align-items:center; }
.product-gallery-thumb { padding:2px; border-radius:0.5rem; border:2px solid transparent; background:rgba(12,18,36,0.75); cursor:pointer; transition:border-color 0.2s ease,box-shadow 0.2s ease,transform 0.16s ease; }
.product-gallery-thumb:hover { border-color:rgba(212,175,55,0.45); transform:translateY(-1px); }
.product-gallery-thumb.is-active { border-color:rgba(212,175,55,0.92); box-shadow:0 0 18px rgba(212,175,55,0.3); }
.product-gallery-thumb-img { display:block; width:3.5rem; height:3.5rem; object-fit:contain; border-radius:0.35rem; background:rgba(10,16,32,0.65); }
.product-zoom-btn-group { display:inline-flex; align-items:center; gap:0.15rem; padding:0.2rem; border-radius:0.65rem; border:1px solid rgba(212,175,55,0.14); background:rgba(12,18,36,0.75); }
.product-zoom-btn { display:inline-flex; align-items:center; justify-content:center; min-width:2.35rem; min-height:2.35rem; padding:0.35rem; border-radius:0.5rem; border:1px solid rgba(212,175,55,0.12); background:rgba(12,18,36,0.65); color:var(--text-secondary); cursor:pointer; transition:background 0.2s ease,border-color 0.2s ease,color 0.2s ease,opacity 0.2s ease; }
.product-zoom-btn:hover:not(:disabled) { border-color:rgba(212,175,55,0.42); background:rgba(212,175,55,0.1); color:var(--gold-bright); }
.product-zoom-btn:disabled { opacity:0.35; cursor:not-allowed; }
.product-zoom-btn[aria-pressed="true"] { border-color:rgba(212,175,55,0.6); background:rgba(212,175,55,0.16); color:var(--gold-bright); }
.product-zoom-level { min-width:3.1rem; text-align:center; font-size:0.75rem; font-weight:700; letter-spacing:0.04em; color:var(--text-secondary); font-variant-numeric:tabular-nums; }
.product-image-stage { position:relative; overflow:auto; max-height:min(70vh,560px); border-radius:0.65rem; background:rgba(8,12,24,0.85); border:1px solid rgba(212,175,55,0.12); -webkit-overflow-scrolling:touch; }
.product-image-panel .product-image-stage {
  border-radius: 0.85rem;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04), 0 12px 40px rgba(0, 0, 0, 0.35);
}
.product-image-stage.is-magnify-ready { cursor:crosshair; }
.product-image-stage.is-magnify-off   { cursor:default; }
.product-image-frame { position:relative; display:block; width:100%; padding:0.5rem; box-sizing:border-box; }
.product-main-image { display:block; width:100%; max-width:100%; height:auto; margin:0 auto; object-fit:contain; border-radius:0.45rem; user-select:none; transition:width 0.2s ease; filter:drop-shadow(0 8px 28px rgba(0,0,0,0.55)); }
.product-main-image.is-zoomed { max-width:none; }
.product-magnify-lens { position:fixed; width:clamp(150px,32vw,210px); height:clamp(150px,32vw,210px); border-radius:50%; border:2px solid rgba(212,175,55,0.82); box-shadow:0 0 0 1px rgba(0,0,0,0.3),0 0 32px rgba(212,175,55,0.32),0 20px 50px rgba(0,0,0,0.55),inset 0 0 28px rgba(0,0,0,0.15); background-color:rgba(5,8,15,0.2); background-repeat:no-repeat; pointer-events:none; z-index:85; transform:translate(-50%,-50%); opacity:0; visibility:hidden; transition:opacity 0.12s ease,visibility 0.12s ease; will-change:transform,opacity; }
.product-magnify-lens.is-visible { opacity:1; visibility:visible; }

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — Tablet (641–768px)
═══════════════════════════════════════════════════════════ */
@media (min-width: 641px) and (max-width: 768px) {
  .hero-section { min-height: max(52vw, 340px); align-items: flex-end; position: relative; background: #070912; }
  .hero-slideshow { position: absolute; inset: 0; width: 100%; height: 100%; }
  .hero-slide     { transition: opacity 0.5s ease-in-out; position: absolute; inset: 0; width: 100%; height: 100%; }
  .hero-slide-image { object-fit: cover; object-position: center center; width: 100%; height: 100%; transform: none !important; }
  .hero-content-stack { min-height: auto; width: 100%; padding-top: 3.5rem; padding-bottom: 2.5rem; }
  .hero-content-slide { position: relative; inset: auto; display: flex; flex-direction: column; align-items: center; text-align: center; }
  .hero-content-slide:not(.is-active) { display: none; }
  .hero-overlay { position: absolute; inset: 0; width: 100%; height: 100%; background: linear-gradient(180deg, rgba(5,8,15,0.35) 0%, rgba(5,8,15,0.75) 100%); }
  .hero-glow { display: none; }
  .hero-nav-btn  { top: auto; bottom: 0.75rem; transform: none; width: 2.75rem; height: 2.75rem; border-radius: 10px; }
  .hero-nav-prev { left: 0.65rem; }
  .hero-nav-next { right: 0.65rem; }
  .hero-indicators { bottom: 0.9rem; gap: 0.2rem; }
}

/* Shared small-screen tweaks */
@media (max-width: 768px) {
  .site-floating-btn      { right: 0.75rem; bottom: 0.75rem; }
  .site-floating-btn-icon { width: var(--floating-icon-size,44px); height: var(--floating-icon-size,44px); }
  .gallery-image          { height: 220px; }
  .products-intro-card    { padding: 1.1rem 0.9rem; border-radius: 0.9rem; }
  .products-intro-tag     { font-size: 0.66rem; }
  .gallery-price, .gallery-rating { font-size: 0.9375rem; }
  .gallery-rating         { font-size: 0.8125rem; padding: 0.3rem 0.52rem; }
  .price-card .price-float.one { width: 92px; height: 92px; top: -32px; right: -26px; }
  .price-card .price-float.two { width: 72px; height: 72px; bottom: -22px; left: -20px; }
  .price-card .price-icon-wrap { width: 2.5rem; height: 2.5rem; }
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — Mobile (≤640px): image block + content block
═══════════════════════════════════════════════════════════ */
@media (max-width: 640px) {
  /* Hero section becomes a flex column */
  .hero-section {
    min-height: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    position: relative;
    overflow: visible;
    background: #070912;
  }

  /* Image wrapper — full-width landscape box, no portrait stretch */
  .hero-slideshow {
    position: relative !important;
    width: 100%; aspect-ratio: 16 / 9; min-height: 200px;
    flex-shrink: 0; overflow: hidden; background: #070912;
  }
  .hero-slide { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity 0.5s ease-in-out; }
  .hero-slide-image { object-fit: contain; object-position: center; width: 100%; height: 100%; transform: none !important; filter: saturate(0.85) brightness(0.82); }
  .hero-overlay { position: absolute; inset: 0; width: 100%; height: 100%; background: linear-gradient(180deg, rgba(5,8,15,0.08) 0%, rgba(5,8,15,0.55) 100%); }
  .hero-glow { display: none; }

  /* Nav arrows inside image block */
  .hero-nav-btn { position: absolute; top: 50% !important; bottom: auto !important; transform: translateY(-50%) !important; width: 2.25rem; height: 2.25rem; border-radius: 8px; }
  .hero-nav-prev { left: 0.4rem; }
  .hero-nav-next { right: 0.4rem; }
  .hero-indicators { position: absolute; left: 50%; bottom: 0.5rem; transform: translateX(-50%); }

  /* Content block — dark panel below the image */
  .hero-content-stack {
    position: relative !important; inset: auto !important;
    display: flex !important; flex-direction: column !important;
    align-items: center !important; text-align: center !important;
    padding: 1.25rem 1rem 1.5rem !important;
    background: linear-gradient(180deg, rgba(8,12,22,0.98), rgba(5,8,15,1));
    z-index: 2; min-height: 0; width: 100%; box-sizing: border-box;
  }
  .hero-content-slide { position: relative !important; inset: auto !important; opacity: 1 !important; transform: none !important; display: flex; flex-direction: column; align-items: center; text-align: center; width: 100%; pointer-events: auto; }
  .hero-content-slide:not(.is-active) { display: none !important; }

  /* Typography */
  .hero-content-slide .hero-tagline { font-size: 0.6rem; letter-spacing: 0.18em; margin-bottom: 0.3rem; color: var(--gold-bright); text-shadow: none; animation: none; }
  .hero-content-slide h1 { font-size: clamp(1.3rem,6vw,1.75rem); background: linear-gradient(135deg,#f0ead6,rgba(212,175,55,0.9)); -webkit-background-clip: text; background-clip: text; color: transparent; filter: none; margin-bottom: 0.3rem; }
  .hero-content-slide .hero-lede { font-size: 0.82rem; line-height: 1.5; color: rgba(240,234,214,0.72); text-shadow: none; margin-top: 0.3rem; }

  /* Buttons */
  .hero-content-slide .flex.flex-col { flex-direction: row !important; flex-wrap: wrap !important; justify-content: center !important; gap: 0.5rem !important; margin-top: 0.75rem !important; max-width: 100% !important; }
  .hero-content-slide a.btn-gold,
  .hero-content-slide a.btn-outline-gold { width: auto !important; min-width: 100px; padding: 0.5rem 1rem !important; font-size: 0.8rem !important; border-radius: 0.4rem !important; }
}

/* Desktop large */
@media (max-width: 1024px) {
  .hero-content-stack     { min-height: 300px; }
  .hero-content-slide h1  { max-width: min(92vw,640px); }
  .hero-content-slide p   { max-width: min(90vw,620px); }
}

/* ═══════════════════════════════════════════════════════════
   HOME NEWS SECTION
═══════════════════════════════════════════════════════════ */

/* Layout: featured left (60%) + side stack right (40%) */
.news-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 768px) {
  .news-layout {
    grid-template-columns: 1.2fr 1fr;
    gap: 1.5rem;
    align-items: start;
  }
}
@media (min-width: 1024px) {
  .news-layout { grid-template-columns: 1.4fr 1fr; gap: 2rem; }
}

/* ── Featured card ────────────────────────────────────────── */
.news-card-featured {
  position: relative;
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid rgba(212,175,55,0.16);
  background: rgba(8,13,28,0.82);
  backdrop-filter: blur(18px);
  box-shadow: 0 24px 64px rgba(0,0,0,0.55), 0 1px 0 rgba(255,255,255,0.04) inset;
  cursor: pointer;
  transition: transform 0.32s var(--ease-spring), border-color 0.28s ease, box-shadow 0.32s ease;
}
.news-card-featured::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212,175,55,0.55), transparent);
  z-index: 2;
}
.news-card-featured:hover {
  transform: translateY(-5px);
  border-color: rgba(212,175,55,0.38);
  box-shadow: 0 36px 88px rgba(0,0,0,0.7), 0 0 40px rgba(212,175,55,0.1);
}

.news-featured-img-wrap {
  position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden;
}
.news-featured-img {
  width: 100%; height: 100%; object-fit: cover; object-position: center; display: block;
  transition: transform 0.55s var(--ease-out-expo);
}
.news-card-featured:hover .news-featured-img { transform: scale(1.05); }
.news-featured-img-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(5,8,15,0.05) 40%, rgba(5,8,15,0.5) 100%);
}
.news-featured-no-img {
  width: 100%; aspect-ratio: 16/9;
  background: linear-gradient(135deg, rgba(12,18,36,0.9), rgba(20,30,56,0.8));
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
}

/* ── Side cards ───────────────────────────────────────────── */
.news-side-grid {
  display: flex; flex-direction: column; gap: 1rem;
}

.news-card-side {
  display: flex; gap: 0.9rem; align-items: flex-start;
  padding: 0.85rem 1rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(212,175,55,0.1);
  background: rgba(8,13,28,0.72);
  backdrop-filter: blur(14px);
  cursor: pointer;
  transition: transform 0.25s var(--ease-spring), border-color 0.22s ease, background 0.22s ease;
}
.news-card-side:hover {
  transform: translateX(4px);
  border-color: rgba(212,175,55,0.3);
  background: rgba(12,20,40,0.85);
}

.news-side-thumb {
  width: 5.5rem; height: 4.5rem; flex-shrink: 0;
  border-radius: 0.6rem; overflow: hidden;
  border: 1px solid rgba(212,175,55,0.1);
}
.news-side-img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.4s var(--ease-out-expo);
}
.news-card-side:hover .news-side-img { transform: scale(1.08); }
.news-side-no-img {
  background: rgba(12,18,36,0.8);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
}

.news-side-body { flex: 1; min-width: 0; }

/* ── Shared card body ─────────────────────────────────────── */
.news-card-body { padding: 1.1rem 1.25rem 1.25rem; }

.news-meta-row {
  display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem;
  margin-bottom: 0.55rem;
}

.news-category-pill {
  display: inline-flex; align-items: center;
  padding: 0.22rem 0.65rem; border-radius: 9999px;
  background: linear-gradient(90deg, rgba(212,175,55,0.18), rgba(212,175,55,0.08));
  border: 1px solid rgba(212,175,55,0.28);
  color: var(--gold-bright); font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.news-category-pill.small { font-size: 0.62rem; padding: 0.15rem 0.5rem; }

.news-date {
  display: inline-flex; align-items: center; gap: 0.3rem;
  font-size: 0.72rem; color: var(--text-muted);
}

.news-featured-title {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 700; line-height: 1.25;
  color: var(--text-primary);
  margin-bottom: 0.6rem;
  letter-spacing: -0.01em;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

.news-side-title {
  font-family: var(--font-display);
  font-size: 0.9rem; font-weight: 600;
  color: var(--text-primary); line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  margin-bottom: 0.25rem;
}

.news-excerpt {
  font-size: 0.875rem; color: var(--text-secondary);
  line-height: 1.65; margin-bottom: 0.85rem;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.news-side-excerpt {
  font-size: 0.78rem; color: var(--text-muted);
  line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.news-footer-row {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(212,175,55,0.08);
}
.news-author {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 0.75rem; color: var(--text-muted);
}
.news-read-more {
  display: inline-flex; align-items: center; gap: 0.3rem;
  font-size: 0.78rem; font-weight: 600;
  color: var(--gold-dim); letter-spacing: 0.02em;
  transition: color 0.2s ease, gap 0.2s ease;
}
.news-card-featured:hover .news-read-more { color: var(--gold-bright); gap: 0.5rem; }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 767px) {
  .news-card-featured { border-radius: 1rem; }
  .news-card-body { padding: 0.85rem 1rem 1rem; }
  .news-side-thumb { width: 4.5rem; height: 3.75rem; }
}

/* ── Empty state ────────────────────────────────────────────── */
.news-empty-state {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1rem;
  padding: 4rem 2rem;
  border-radius: 1.5rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  text-align: center;
}
.news-empty-icon {
  width: 5rem; height: 5rem;
  border-radius: 50%;
  background: rgba(212,175,55,0.08);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-dim);
}
.news-empty-title {
  font-size: 1.15rem; font-weight: 700;
  color: var(--text-primary); letter-spacing: 0.01em;
}
.news-empty-sub {
  max-width: 36rem;
  font-size: 0.9rem; color: var(--text-muted); line-height: 1.65;
}

/* ═══════════════════════════════════════════════════════════
   HOME PHOTO GALLERY — masonry grid + lightbox
═══════════════════════════════════════════════════════════ */

/* ── Masonry grid (CSS columns) ─────────────────────────── */
.home-photo-grid {
  columns: 2 200px;
  column-gap: 0.75rem;
}
@media (min-width: 640px)  { .home-photo-grid { columns: 3 200px; column-gap: 1rem; } }
@media (min-width: 1024px) { .home-photo-grid { columns: 4 220px; column-gap: 1.1rem; } }

/* Each item breaks cleanly inside a column */
.home-photo-item {
  display: block; width: 100%; break-inside: avoid; margin-bottom: 0.75rem;
  border-radius: 0.9rem; overflow: hidden; cursor: zoom-in;
  border: 1px solid rgba(212,175,55,0.12);
  position: relative; background: rgba(8,13,28,0.85);
  padding: 0; outline: none;
  box-shadow: 0 8px 28px rgba(0,0,0,0.4);
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s ease, border-color 0.28s ease;
  will-change: transform;
}
@media (min-width: 640px) { .home-photo-item { margin-bottom: 1rem; } }

.home-photo-item:hover {
  transform: translateY(-4px) scale(1.015);
  border-color: rgba(212,175,55,0.42);
  box-shadow: 0 20px 52px rgba(0,0,0,0.6), 0 0 32px rgba(212,175,55,0.14);
}
.home-photo-item:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* Image inside each cell */
.home-photo-img {
  display: block; width: 100%; height: auto;
  object-fit: cover; object-position: center;
  transition: transform 0.55s var(--ease-out-expo), filter 0.35s ease;
  filter: saturate(0.9) brightness(0.9);
}
.home-photo-item:hover .home-photo-img {
  transform: scale(1.06);
  filter: saturate(1.05) brightness(1.0);
}

/* Overlay — slides up on hover */
.home-photo-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(5,8,15,0.04) 0%, rgba(5,8,15,0.72) 100%);
  display: flex; flex-direction: column;
  align-items: center; justify-content: flex-end;
  padding: 1rem 0.85rem 0.85rem;
  gap: 0.2rem;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.28s ease, transform 0.28s var(--ease-out-expo);
  pointer-events: none;
}
.home-photo-item:hover .home-photo-overlay {
  opacity: 1;
  transform: translateY(0);
}
.home-photo-overlay svg {
  width: 2rem; height: 2rem;
  background: rgba(212,175,55,0.18);
  border: 1px solid rgba(212,175,55,0.4);
  border-radius: 50%;
  padding: 0.35rem;
  color: var(--gold-bright);
  box-shadow: 0 0 18px rgba(212,175,55,0.3);
  margin-bottom: 0.4rem;
}
.home-photo-overlay span {
  font-size: 0.8rem; font-weight: 600;
  color: #f0ead6; text-align: center;
  text-shadow: 0 1px 6px rgba(0,0,0,0.55);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 100%;
}
.home-photo-overlay small {
  font-size: 0.68rem; color: rgba(240,234,214,0.55);
}

/* ── Lightbox ────────────────────────────────────────────── */
.home-lightbox {
  position: fixed; inset: 0; z-index: 9990;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.28s var(--ease-out-expo), visibility 0.28s ease;
}
.home-lightbox.is-open {
  opacity: 1; visibility: visible; pointer-events: auto;
}

.home-lightbox-backdrop {
  position: absolute; inset: 0;
  background: rgba(3,5,12,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: zoom-out;
}

/* Close button */
.home-lightbox-close {
  position: absolute; top: 1rem; right: 1rem; z-index: 2;
  width: 2.5rem; height: 2.5rem; border-radius: 9999px;
  border: 1px solid rgba(212,175,55,0.3);
  background: rgba(10,16,36,0.88); color: rgba(240,234,214,0.7);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
  backdrop-filter: blur(8px);
}
.home-lightbox-close:hover {
  background: rgba(212,175,55,0.15); border-color: var(--gold); color: var(--gold-bright);
  transform: rotate(90deg);
}

/* Prev / Next nav */
.home-lightbox-nav {
  position: absolute; top: 50%; z-index: 2;
  transform: translateY(-50%);
  width: 3rem; height: 3rem; border-radius: 1rem;
  border: 1px solid rgba(212,175,55,0.25);
  background: rgba(8,13,28,0.75); color: var(--gold-bright);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; backdrop-filter: blur(10px);
  transition: background 0.22s, border-color 0.22s, transform 0.22s var(--ease-spring), box-shadow 0.22s;
}
.home-lightbox-nav:hover {
  background: rgba(212,175,55,0.14); border-color: rgba(212,175,55,0.55);
  box-shadow: 0 0 24px rgba(212,175,55,0.25);
}
.home-lightbox-prev { left: 1rem; }
.home-lightbox-next { right: 1rem; }
.home-lightbox-prev:hover { transform: translateY(-50%) translateX(-2px); }
.home-lightbox-next:hover { transform: translateY(-50%) translateX(2px); }
@media (max-width: 500px) {
  .home-lightbox-prev { left: 0.35rem; width: 2.4rem; height: 2.4rem; }
  .home-lightbox-next { right: 0.35rem; width: 2.4rem; height: 2.4rem; }
}

/* Inner image frame */
.home-lightbox-inner {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center;
  max-width: min(90vw, 900px); max-height: 92vh;
  gap: 0.75rem;
}
.home-lightbox-img-wrap {
  position: relative;
  max-height: 80vh; display: flex; align-items: center; justify-content: center;
}
.home-lightbox-img {
  display: block; max-width: 100%; max-height: 80vh;
  border-radius: 1rem; object-fit: contain;
  box-shadow: 0 40px 100px rgba(0,0,0,0.9), 0 0 0 1px rgba(212,175,55,0.1);
  transition: opacity 0.3s ease;
}

/* Loader spinner */
.home-lightbox-loader {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(8,13,28,0.6); border-radius: 1rem;
}
.home-lb-spinner {
  width: 2.5rem; height: 2.5rem;
  border: 2px solid rgba(212,175,55,0.15);
  border-top-color: var(--gold); border-right-color: rgba(212,175,55,0.5);
  border-radius: 50%;
  animation: spin 0.85s linear infinite;
}

/* Caption bar */
.home-lightbox-caption {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; width: 100%; padding: 0 0.25rem;
}
.home-lightbox-caption p {
  font-family: var(--font-display); font-size: 0.9rem; font-weight: 600;
  color: var(--text-primary); flex: 1; min-width: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.home-lightbox-caption span {
  font-size: 0.75rem; color: var(--text-muted);
  white-space: nowrap; flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════
   CMS / CKEditor CONTENT — responsive images & rich text
═══════════════════════════════════════════════════════════ */

/*
 * Target: article.premium-card that holds page_main_content()
 * CKEditor wraps images in <figure class="image"> and may set
 * inline width/max-width on both the <figure> and the <img>.
 * We use max-width overrides so nothing ever breaks the layout.
 */
.section-shell article.premium-card,
.section-shell .cms-content {
  overflow-x: hidden;
}

/* All images inside CMS content cards */
.section-shell article.premium-card img,
.section-shell .cms-content img,
.app-content   article.premium-card img {
  max-width: 100% !important;
  width: auto !important;
  height: auto !important;
  display: block;
  border-radius: 0.65rem;
}

/* CKEditor figure.image wrapper */
.section-shell article.premium-card figure,
.section-shell article.premium-card figure.image,
.section-shell article.premium-card .image,
.app-content   article.premium-card figure,
.app-content   article.premium-card figure.image {
  max-width: 100% !important;
  width: auto !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box;
}

/* CKEditor inline-style width on <figure style="width:..."> */
.section-shell article.premium-card figure[style],
.app-content   article.premium-card figure[style] {
  width: auto !important;
  max-width: 100% !important;
}

/* CKEditor image caption */
.section-shell article.premium-card figcaption,
.app-content   article.premium-card figcaption {
  font-size: 0.82rem;
  color: var(--text-secondary);
  text-align: center;
  margin-top: 0.5rem;
  font-style: italic;
}

/* Tables from CKEditor */
.section-shell article.premium-card table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  overflow-x: auto;
  display: block;
  font-size: 0.9rem;
}
.section-shell article.premium-card table td,
.section-shell article.premium-card table th {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--glass-border);
  word-break: break-word;
}

/* General rich-text typography inside CMS card */
.section-shell article.premium-card {
  color: var(--text-primary);
  line-height: 1.75;
}
.section-shell article.premium-card h1,
.section-shell article.premium-card h2,
.section-shell article.premium-card h3,
.section-shell article.premium-card h4 {
  margin-top: 1.5em;
  margin-bottom: 0.6em;
  line-height: 1.25;
}
.section-shell article.premium-card p { margin-bottom: 1em; }
.section-shell article.premium-card ul,
.section-shell article.premium-card ol {
  padding-left: 1.5rem;
  margin-bottom: 1em;
}
.section-shell article.premium-card a {
  color: var(--gold-bright);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.section-shell article.premium-card a:hover { color: var(--gold); }
.section-shell article.premium-card blockquote {
  border-left: 3px solid var(--gold);
  padding-left: 1rem;
  margin: 1.25rem 0;
  color: var(--text-secondary);
  font-style: italic;
}

/* ═══════════════════════════════════════════════════════════
   FLOATING CHAT + WHATSAPP — LEFT CLUSTER
═══════════════════════════════════════════════════════════ */

/* Button cluster — stacks vertically, bottom-left */
#mhs-float-cluster {
  position: fixed;
  left: 1.1rem; bottom: 1.1rem;
  z-index: 8000;
  display: flex;
  flex-direction: column-reverse;  /* chat toggle at bottom, WA above */
  align-items: center;
  gap: 0.65rem;
}

/* Shared button base */
#mhs-chat-toggle,
#mhs-wa-btn {
  width: 3.25rem; height: 3.25rem;
  border-radius: 9999px;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; border: none; outline: none;
  position: relative;
  transition: transform 0.28s var(--ease-spring), box-shadow 0.25s ease, filter 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

/* Chat toggle button */
#mhs-chat-toggle {
  background: linear-gradient(135deg, #1a2a4a, #0d1f3f);
  color: var(--gold-bright);
  border: 1px solid rgba(212,175,55,0.3);
  box-shadow: 0 0 0 1px rgba(212,175,55,0.12), 0 8px 28px rgba(0,0,0,0.55), 0 0 22px rgba(212,175,55,0.15);
}
#mhs-chat-toggle svg { width: 1.3rem; height: 1.3rem; }
#mhs-chat-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 0 0 1px rgba(212,175,55,0.35), 0 12px 36px rgba(0,0,0,0.6), 0 0 32px rgba(212,175,55,0.28);
}
#mhs-chat-toggle[aria-expanded="true"] {
  background: linear-gradient(135deg, rgba(212,175,55,0.22), rgba(212,175,55,0.1));
  border-color: rgba(212,175,55,0.55);
}

/* Unread notification dot */
#mhs-chat-unread-dot {
  position: absolute; top: 0.18rem; right: 0.18rem;
  width: 0.7rem; height: 0.7rem;
  border-radius: 9999px;
  background: #ef4444;
  border: 2px solid var(--bg-void);
  display: none;
  animation: unread-pulse 1.8s ease-in-out infinite;
}
#mhs-chat-unread-dot.visible { display: block; }
@keyframes unread-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.35); opacity: 0.7; }
}

/* WhatsApp button */
#mhs-wa-btn {
  background: linear-gradient(135deg, #25d366, #128c50);
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 6px 24px rgba(18,140,80,0.45), 0 2px 8px rgba(0,0,0,0.4);
  animation: wa-float 3.8s ease-in-out infinite;
}
#mhs-wa-btn svg { width: 1.45rem; height: 1.45rem; }
#mhs-wa-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 32px rgba(18,140,80,0.6), 0 4px 12px rgba(0,0,0,0.5);
  filter: brightness(1.08);
}
@keyframes wa-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-4px); }
}
#mhs-wa-btn:hover { animation: none; }

/* ── Chat Panel ─────────────────────────────────────────── */
#mhs-chat-panel {
  position: fixed;
  left: 1.1rem;
  bottom: calc(3.25rem + 1.1rem + 0.65rem + 0.4rem); /* above the button cluster */
  z-index: 7999;
  width: min(360px, calc(100vw - 2.2rem));
  max-height: min(520px, calc(100vh - 10rem));
  border-radius: 1.25rem;
  background: rgba(8,13,28,0.97);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid rgba(212,175,55,0.22);
  box-shadow: 0 28px 72px rgba(0,0,0,0.75), 0 0 48px rgba(212,175,55,0.1), 0 1px 0 rgba(255,255,255,0.04) inset;
  display: flex; flex-direction: column;
  overflow: hidden;
  /* Closed state */
  opacity: 0;
  transform: translateY(14px) scale(0.97);
  pointer-events: none;
  transition: opacity 0.28s var(--ease-out-expo), transform 0.3s var(--ease-spring);
}
#mhs-chat-panel.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
#mhs-chat-panel::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212,175,55,0.6), transparent);
}

/* Panel header */
.mhs-chat-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.85rem 1rem;
  background: linear-gradient(110deg, rgba(14,26,56,0.95), rgba(10,18,40,0.92));
  border-bottom: 1px solid rgba(212,175,55,0.1);
  flex-shrink: 0;
}
.mhs-chat-head-info { display: flex; align-items: center; gap: 0.75rem; }
.mhs-chat-avatar {
  width: 2.25rem; height: 2.25rem; border-radius: 9999px;
  background: linear-gradient(135deg, rgba(212,175,55,0.2), rgba(212,175,55,0.08));
  border: 1px solid rgba(212,175,55,0.3);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--gold-bright); flex-shrink: 0;
}
.mhs-chat-head-name { font-size: 0.9rem; font-weight: 700; color: #f0ead6; line-height: 1.2; }
.mhs-chat-head-sub  { font-size: 0.72rem; color: rgba(240,234,214,0.5); margin-top: 0.1rem; }
.mhs-chat-head-close {
  width: 1.9rem; height: 1.9rem; border-radius: 9999px; border: none;
  background: rgba(255,255,255,0.06); color: rgba(240,234,214,0.55);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background 0.18s, color 0.18s; flex-shrink: 0;
}
.mhs-chat-head-close:hover { background: rgba(212,175,55,0.12); color: var(--gold-bright); }

/* Start screen */
.mhs-chat-start {
  flex: 1; display: flex; flex-direction: column; overflow-y: auto; padding: 1rem;
}
.mhs-chat-welcome { text-align: center; padding: 0.75rem 0 1rem; }
.mhs-chat-welcome-icon { font-size: 2rem; margin-bottom: 0.5rem; }
.mhs-chat-welcome h3 { font-size: 1rem; font-weight: 700; color: #f0ead6; margin-bottom: 0.3rem; }
.mhs-chat-welcome p  { font-size: 0.8rem; color: rgba(240,234,214,0.52); line-height: 1.55; }

.mhs-chat-start input,
.mhs-chat-start textarea {
  width: 100%; box-sizing: border-box;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1); border-radius: 0.6rem;
  color: #f0ead6; font-size: 0.875rem; font-family: inherit;
  padding: 0.6rem 0.8rem; outline: none; resize: none;
  transition: border-color 0.2s;
  margin-bottom: 0.6rem;
}
.mhs-chat-start input::placeholder,
.mhs-chat-start textarea::placeholder { color: rgba(240,234,214,0.3); }
.mhs-chat-start input:focus,
.mhs-chat-start textarea:focus { border-color: rgba(212,175,55,0.45); }

.mhs-chat-start button[type="submit"] {
  width: 100%; padding: 0.7rem 1rem;
  background: linear-gradient(110deg, #c9a227, #d4af37, #e0bb4a);
  color: #07090f; font-size: 0.9rem; font-weight: 700;
  border: none; border-radius: 0.65rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  transition: filter 0.2s, transform 0.22s var(--ease-spring);
  letter-spacing: 0.02em;
}
.mhs-chat-start button[type="submit"]:hover { filter: brightness(1.08); transform: translateY(-1px); }
.mhs-chat-start button[type="submit"]:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* Conversation view */
.mhs-chat-conv {
  flex: 1; display: flex; flex-direction: column; min-height: 0;
}
.mhs-chat-msgs {
  flex: 1; overflow-y: auto; padding: 0.85rem 0.9rem;
  display: flex; flex-direction: column; gap: 0.6rem;
  scroll-behavior: smooth;
}
.mhs-chat-msgs::-webkit-scrollbar { width: 3px; }
.mhs-chat-msgs::-webkit-scrollbar-thumb { background: rgba(212,175,55,0.2); border-radius: 2px; }

/* Message bubbles */
.mhs-msg { display: flex; flex-direction: column; gap: 0.15rem; max-width: 80%; }
.mhs-msg.visitor { align-self: flex-end; align-items: flex-end; }
.mhs-msg.admin   { align-self: flex-start; align-items: flex-start; }
.mhs-msg-text {
  padding: 0.5rem 0.8rem; border-radius: 1rem; font-size: 0.84rem; line-height: 1.5;
  word-break: break-word; white-space: pre-wrap;
}
.mhs-msg.visitor .mhs-msg-text {
  background: linear-gradient(120deg, rgba(212,175,55,0.22), rgba(212,175,55,0.14));
  color: #f8edac;
  border-radius: 1rem 0.3rem 1rem 1rem;
  border: 1px solid rgba(212,175,55,0.25);
}
.mhs-msg.admin .mhs-msg-text {
  background: rgba(255,255,255,0.07);
  color: #f0ead6;
  border-radius: 0.3rem 1rem 1rem 1rem;
  border: 1px solid rgba(255,255,255,0.08);
}
.mhs-msg-time { font-size: 0.66rem; color: rgba(240,234,214,0.35); padding: 0 0.2rem; }

/* Admin "typing" indicator */
.mhs-typing-indicator {
  align-self: flex-start; padding: 0.5rem 0.85rem;
  background: rgba(255,255,255,0.06); border-radius: 0.3rem 1rem 1rem 1rem;
  border: 1px solid rgba(255,255,255,0.07);
  display: none; gap: 4px; align-items: center;
}
.mhs-typing-indicator.visible { display: flex; }
.mhs-typing-dot {
  width: 5px; height: 5px; border-radius: 9999px;
  background: rgba(212,175,55,0.65);
  animation: chat-dot-bounce 1.3s ease-in-out infinite;
}
.mhs-typing-dot:nth-child(2) { animation-delay: 0.2s; }
.mhs-typing-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes chat-dot-bounce {
  0%, 100% { transform: translateY(0); opacity: 0.4; }
  50%       { transform: translateY(-5px); opacity: 1; }
}

/* Chat reply input row */
.mhs-chat-reply-area {
  display: flex; align-items: flex-end; gap: 0.5rem;
  padding: 0.65rem 0.8rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
}
.mhs-chat-reply-area textarea {
  flex: 1; background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1); border-radius: 0.6rem;
  color: #f0ead6; font-size: 0.84rem; font-family: inherit;
  padding: 0.55rem 0.75rem; resize: none; outline: none;
  max-height: 100px; overflow-y: auto; line-height: 1.5;
  transition: border-color 0.2s;
}
.mhs-chat-reply-area textarea::placeholder { color: rgba(240,234,214,0.3); }
.mhs-chat-reply-area textarea:focus { border-color: rgba(212,175,55,0.42); }
#mhs-chat-send-btn {
  width: 2.4rem; height: 2.4rem; border-radius: 0.6rem; border: none; flex-shrink: 0;
  background: linear-gradient(120deg, #c9a227, #d4af37);
  color: #07090f; display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: filter 0.18s, transform 0.2s var(--ease-spring);
}
#mhs-chat-send-btn:hover { filter: brightness(1.1); transform: scale(1.08); }
#mhs-chat-send-btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 400px) {
  #mhs-chat-panel { width: calc(100vw - 1.6rem); left: 0.8rem; }
  #mhs-float-cluster { left: 0.8rem; bottom: 0.8rem; }
}

/* ═══════════════════════════════════════════════════════════
   ACCESSIBILITY
═══════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
