@import url('https://fonts.googleapis.com/css2?family=Charm:wght@400;700&family=Alex+Brush&display=swap');

@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@300;400;500;600&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500;1,600&family=Cinzel:wght@400;500;600;700&display=swap');

:root {
  --bg-color: #0c0d10;
  --panel-bg: rgba(24, 26, 30, 0.94);
  --gold-primary: #d4af37;
  --gold-accent: #fae8a4;
  --gold-dark: #8a6b16;
  --gold-specular: #fff9e6;
  --gold-glow: rgba(212, 175, 55, 0.25);
  --text-primary: #f5f6f8;
  --text-secondary: #a3a7ad;
  --border-color: rgba(212, 175, 55, 0.24);
  --border-active: rgba(250, 232, 164, 0.65);
  --font-serif: 'Cormorant Garamond', serif;
  --font-sans: 'Be Vietnam Pro', sans-serif;
  --transition-smooth: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);

  /* Magazine Editorial Variables */
  --bg-warm: #fcfbfa;
  --text-dark: #202022;
  --text-muted: #6e6e73;
  --font-serif-display: 'Cormorant Garamond', Georgia, serif;
  --font-serif-body: 'Lora', Georgia, serif;
  --font-imperial: 'Imperial Script', cursive;
  --font-sans-outfit: 'Plus Jakarta Sans', 'Be Vietnam Pro', sans-serif;
  --transition-slow: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);

  /* Luxury Unified Tokens */
  --lux-bg: #0c0d10;
  --lux-panel-bg: rgba(24, 26, 30, 0.52);
  --lux-panel-blur: blur(20px);
  --lux-gold-primary: #d4af37;
  --lux-gold-accent: #fae8a4;
  --lux-gold-dark: #8a6b16;
  --lux-text-primary: #f5f6f8;
  --lux-text-secondary: #a3a7ad;
  --lux-border-color: rgba(212, 175, 55, 0.20);
  --lux-border-active: rgba(250, 232, 164, 0.55);
  --lux-separator: 1px solid rgba(212, 175, 55, 0.12);
  --lux-radius: 8px;
  --lux-shadow-md: 0 12px 30px rgba(0, 0, 0, 0.4);
  --lux-shadow-hover: 0 16px 40px rgba(212, 175, 55, 0.12);

  --lux-font-serif: 'Cormorant Garamond', serif;
  --lux-font-sans-labels: 'Plus Jakarta Sans', 'Be Vietnam Pro', sans-serif;
  --lux-font-sans-body: 'Be Vietnam Pro', sans-serif;

  --lux-text-h1: 32px;
  --lux-line-height-h1: 1.2;
  --lux-weight-h1: 300;
  --lux-letter-spacing-h1: 0.02em;

  --lux-text-h2: 18px;
  --lux-line-height-h2: 1.3;
  --lux-weight-h2: 400;
  --lux-letter-spacing-h2: 0.1em;

  --lux-text-h3: 15px;
  --lux-line-height-h3: 1.4;
  --lux-weight-h3: 500;
  --lux-letter-spacing-h3: 0.03em;

  --lux-text-body: 13px;
  --lux-line-height-body: 1.6;
  --lux-weight-body: 300;

  --lux-text-meta: 9px;
  --lux-line-height-meta: 1.4;
  --lux-weight-meta: 600;
  --lux-letter-spacing-meta: 0.15em;

  --lux-btn-padding: 10px 20px;
  --lux-btn-padding-block: 12px;
  --lux-btn-font: var(--lux-font-sans-labels);
  --lux-btn-size: 9px;
  --lux-btn-spacing: 0.1em;
  --lux-btn-radius: 4px;
  --lux-btn-transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

/* Background Texture for the page */
body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 20%, rgba(197, 168, 128, 0.05) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* Utility classes */
.hidden {
  display: none !important;
}

/* ==========================================================================
   PREVIEW WORKSPACE & HIGH-CONTRAST EXHIBITION SHOWCASE STAGE
   ========================================================================== */

/* Outer Studio Presentation Canvas */
.preview-workspace {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 52px;
  padding: 40px 24px;
  background-color: #060709;
  background-image: 
    radial-gradient(circle at 75% 50%, rgba(197, 168, 128, 0.08) 0%, transparent 55%),
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.02) 0%, transparent 40%),
    linear-gradient(rgba(197, 168, 128, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(197, 168, 128, 0.025) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 48px 48px, 48px 48px;
  box-sizing: border-box;
  position: relative;
  z-index: 1;
}

/* Left Side: Luxury Control & Curation Console */
.preview-control-panel {
  width: 420px;
  max-width: 100%;
  background: rgba(13, 14, 17, 0.9);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(197, 168, 128, 0.28);
  border-radius: 24px;
  padding: 28px 24px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 18px;
  flex-shrink: 0;
  z-index: 20;
}

.panel-header {
  border-bottom: 1px solid rgba(197, 168, 128, 0.18);
  padding-bottom: 16px;
}

.panel-brand-tag {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--gold-primary);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.panel-main-title {
  font-family: var(--font-serif);
  font-size: 23px;
  font-weight: 400;
  color: #f7f5f0;
  line-height: 1.25;
  margin-bottom: 4px;
}

.panel-subtitle {
  font-family: var(--font-sans);
  font-size: 11px;
  color: #8c8c94;
  letter-spacing: 0.03em;
  margin-bottom: 10px;
}

.panel-meta-badge {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-accent);
  background: rgba(197, 168, 128, 0.08);
  border: 1px solid rgba(197, 168, 128, 0.22);
  padding: 4px 10px;
  border-radius: 12px;
}

.panel-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.section-label {
  font-family: var(--font-sans);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-primary);
  opacity: 0.9;
}

.button-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.panel-action-btn {
  width: 100%;
  padding: 11px 16px;
  border-radius: 12px;
  font-family: var(--font-sans);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition-smooth);
  text-align: center;
  outline: none;
}

.panel-action-btn.btn-gold-primary {
  background: linear-gradient(135deg, #d4b58a 0%, #a68453 100%);
  color: #0b0b0c;
  border: none;
  box-shadow: 0 4px 18px rgba(197, 168, 128, 0.3);
}

.panel-action-btn.btn-gold-primary:hover {
  filter: brightness(1.1);
  box-shadow: 0 6px 24px rgba(197, 168, 128, 0.45);
}

.panel-action-btn.btn-glass-outline {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(197, 168, 128, 0.28);
  color: #e2e2e8;
}

.panel-action-btn.btn-glass-outline:hover {
  background: rgba(197, 168, 128, 0.1);
  border-color: var(--gold-accent);
  color: var(--gold-accent);
}

.telemetry-info-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(197, 168, 128, 0.15);
  border-radius: 10px;
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.telemetry-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-sans);
  font-size: 9.5px;
}

.telemetry-label {
  color: #8c8c94;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.telemetry-val {
  color: var(--gold-accent);
  font-weight: 600;
}

.toggle-group-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.panel-toggle-btn {
  padding: 9px 12px;
  border-radius: 10px;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 500;
  color: #a0a0a8;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: var(--transition-smooth);
  text-align: center;
  outline: none;
}

.panel-toggle-btn:hover {
  background: rgba(197, 168, 128, 0.08);
  color: #e2e2e8;
  border-color: rgba(197, 168, 128, 0.3);
}

.panel-toggle-btn.active {
  background: rgba(197, 168, 128, 0.18);
  border-color: var(--gold-primary);
  color: var(--gold-primary);
  font-weight: 600;
  box-shadow: 0 0 12px rgba(197, 168, 128, 0.2);
}

.chapter-quick-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.panel-quick-btn {
  padding: 8px 10px;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 9.5px;
  font-weight: 500;
  color: #c4c4cc;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(197, 168, 128, 0.15);
  cursor: pointer;
  transition: var(--transition-smooth);
  text-align: left;
  outline: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.panel-quick-btn:hover {
  background: rgba(197, 168, 128, 0.12);
  border-color: var(--gold-accent);
  color: var(--gold-accent);
}

.lang-pill-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.panel-lang-pill {
  padding: 6px 8px;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 9.5px;
  font-weight: 500;
  color: #9c9ca4;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: var(--transition-smooth);
  text-align: center;
  outline: none;
}

.panel-lang-pill:hover {
  color: #ffffff;
  border-color: rgba(197, 168, 128, 0.3);
}

.panel-lang-pill.active {
  background: var(--gold-primary);
  border-color: var(--gold-primary);
  color: #0b0b0c;
  font-weight: 700;
}

.panel-footer {
  border-top: 1px solid rgba(197, 168, 128, 0.15);
  padding-top: 14px;
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--gold-primary);
  text-align: center;
}

.panel-footer-sub {
  font-size: 8px;
  color: #72727a;
  font-weight: 400;
  letter-spacing: 0.04em;
  margin-top: 2px;
}

/* Right Side: High-Contrast Showcase Stage */
.preview-device-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  z-index: 10;
}

/* Ambient Backlight / Exhibition Pedestal Aura */
.stage-pedestal-light {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 480px;
  height: 890px;
  border-radius: 56px;
  background: radial-gradient(circle at center, rgba(197, 168, 128, 0.18) 0%, rgba(197, 168, 128, 0.05) 45%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 1;
}

/* Mobile viewport mockup */
.mobile-container {
  width: 375px;
  max-width: 375px;
  height: 812px;
  background-color: var(--bg-color);
  border: 1px solid rgba(197, 168, 128, 0.35);
  border-radius: 36px;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: 
    0 0 0 8px rgba(22, 23, 28, 0.95),
    0 0 0 9.5px rgba(197, 168, 128, 0.4),
    0 35px 90px rgba(0, 0, 0, 0.95),
    0 0 45px rgba(197, 168, 128, 0.15);
  overflow: hidden; /* Header and bottom bar are fixed, contents scroll inside */
  z-index: 10;
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.mobile-container::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

/* Simulated NFC Tap Screen */
#nfc-screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #0b0b0c;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 100;
  padding: 30px;
  text-align: center;
  transition: opacity 0.8s ease-in-out, visibility 0.8s;
}

#nfc-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.logo-container-initial {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 8px;
  margin-top: 60px;
}

.brand-logo-nfc {
  height: 36px;
  max-width: 160px;
  filter: brightness(0) invert(1) sepia(20%) saturate(800%) hue-rotate(15deg);
}

.brand-sub-initial {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 10px;
  letter-spacing: 0.25em;
  color: var(--text-secondary);
  text-transform: uppercase;
  margin-bottom: 80px;
}

.nfc-ring {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  cursor: pointer;
  margin-bottom: 50px;
  transition: var(--transition-smooth);
}

.nfc-ring::before {
  content: "";
  position: absolute;
  width: 120%;
  height: 120%;
  border-radius: 50%;
  border: 1px solid rgba(197, 168, 128, 0.05);
  animation: pulse-ring 2.5s infinite cubic-bezier(0.215, 0.61, 0.355, 1);
}

.nfc-ring::after {
  content: "";
  position: absolute;
  width: 140%;
  height: 140%;
  border-radius: 50%;
  border: 1px solid rgba(197, 168, 128, 0.02);
  animation: pulse-ring 3.5s infinite cubic-bezier(0.215, 0.61, 0.355, 1);
}

.nfc-core {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(197, 168, 128, 0.15) 0%, rgba(22, 22, 24, 0.9) 100%);
  border: 1px solid var(--gold-primary);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: var(--transition-smooth);
}

.nfc-ring:hover .nfc-core {
  border-color: var(--gold-accent);
  background: radial-gradient(circle, rgba(197, 168, 128, 0.25) 0%, rgba(22, 22, 24, 0.9) 100%);
  transform: scale(1.05);
}

.nfc-text-center {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 14px;
  color: var(--gold-accent);
}

.nfc-hint {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 13px;
  color: var(--text-secondary);
  max-width: 240px;
  margin-top: 10px;
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.85);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.35);
    opacity: 0;
  }
}

/* Cryptographic Authentication Sequence Screen */
#auth-screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-color);
  background-image: radial-gradient(ellipse at 50% 45%, rgba(212, 175, 55, 0.05) 0%, var(--bg-color) 70%);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 110;
  padding: 30px;
  transition: opacity 0.5s ease-in-out;
}

#auth-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.auth-box {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  transition: opacity 0.4s ease;
}

/* ==========================================================================
   HERMÈS HAUTE COUTURE ÉTIQUETTE AUTHENTICATION ANIMATION
   ========================================================================== */
.hermes-auth-container {
  width: 100%;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  background: #0f1115;
  border: 1px solid rgba(212, 175, 55, 0.45);
  border-radius: 12px;
  padding: 28px 18px 24px 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.95), inset 0 1px 1px rgba(255, 245, 200, 0.15);
}

.hermes-auth-header {
  text-align: center;
  margin-bottom: 12px;
}

.hermes-brand-title {
  font-family: 'Cinzel', 'Cormorant Garamond', serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.38em;
  color: #faeed0;
  text-transform: uppercase;
  margin-bottom: 4px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9), 0 0 18px rgba(212, 175, 55, 0.5);
}

.hermes-brand-meta {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: #e6cb7e;
  text-transform: uppercase;
}

.hermes-progress-counter {
  font-family: 'Cinzel', 'Cormorant Garamond', Georgia, serif;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #ffe699;
  margin-bottom: 16px;
  text-shadow: 0 0 18px rgba(212, 175, 55, 0.8), 0 2px 6px rgba(0, 0, 0, 0.9);
  transition: opacity 0.5s ease;
}

.hermes-progress-counter.fade-out {
  opacity: 0;
}

.hermes-stage-frame {
  width: 100%;
  max-width: 344px;
  height: 190px;
  background: #060708;
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 6px;
  box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.95), 0 8px 25px rgba(0, 0, 0, 0.7);
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 8px;
}

/* Four delicate couture corner registration marks */
.hermes-corner-mark {
  position: absolute;
  width: 12px;
  height: 12px;
  border-color: #d4af37;
  pointer-events: none;
}
.hermes-corner-tl { top: 6px; left: 6px; border-top: 1.5px solid; border-left: 1.5px solid; }
.hermes-corner-tr { top: 6px; right: 6px; border-top: 1.5px solid; border-right: 1.5px solid; }
.hermes-corner-bl { bottom: 6px; left: 6px; border-bottom: 1.5px solid; border-left: 1.5px solid; }
.hermes-corner-br { bottom: 6px; right: 6px; border-bottom: 1.5px solid; border-right: 1.5px solid; }

.embroidery-canvas-wrap {
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
}

#embroidery-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.hermes-auth-status {
  margin-top: 18px;
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: #ffffff !important;
  text-transform: uppercase;
  user-select: none;
  z-index: 10;
  white-space: nowrap;
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(212, 175, 55, 0.35);
  padding: 7px 18px;
  border-radius: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.8);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
  transition: opacity 0.4s ease;
}

.hermes-auth-status.fade-out {
  opacity: 0;
}

/* Indochine Antique Bronze & Quantum NFC Cryptographic Radar Animation */
.nfc-quantum-radar-container {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 1px solid rgba(197, 168, 128, 0.3);
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  background: radial-gradient(circle at 50% 50%, rgba(20, 18, 16, 0.98) 0%, rgba(11, 11, 12, 1) 100%);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.7), inset 0 0 25px rgba(197, 168, 128, 0.08);
  overflow: hidden;
}

/* 1. Quantum Electromagnetic Ripples (Radiating from NFC Chip Node) */
.radar-wave {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid var(--gold-primary);
  pointer-events: none;
  opacity: 0;
  animation: quantum-pulse 2.8s infinite cubic-bezier(0.2, 0.8, 0.2, 1);
}

.radar-wave.wave-1 { width: 60px; height: 60px; animation-delay: 0s; }
.radar-wave.wave-2 { width: 120px; height: 120px; animation-delay: 0.9s; }
.radar-wave.wave-3 { width: 180px; height: 180px; animation-delay: 1.8s; }

@keyframes quantum-pulse {
  0% {
    transform: translate(-50%, -50%) scale(0.4);
    opacity: 0.9;
    border-color: var(--gold-accent);
    box-shadow: 0 0 10px rgba(229, 211, 179, 0.4);
  }
  50% {
    opacity: 0.45;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.6);
    opacity: 0;
    border-color: var(--gold-dark);
  }
}

/* 2. Indochine Antique Bronze Concentric Radar Rings */
.radar-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  pointer-events: none;
}

.radar-ring.ring-outer {
  width: 176px;
  height: 176px;
  border: 1px dashed rgba(197, 168, 128, 0.35);
  animation: spin-clockwise 24s linear infinite;
}

.radar-ring.ring-mid {
  width: 124px;
  height: 124px;
  border: 1px solid rgba(197, 168, 128, 0.25);
  box-shadow: inset 0 0 12px rgba(197, 168, 128, 0.05);
}

.radar-ring.ring-inner {
  width: 72px;
  height: 72px;
  border: 1px dashed rgba(229, 211, 179, 0.4);
  animation: spin-counter 16s linear infinite;
}

@keyframes spin-clockwise {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes spin-counter {
  from { transform: translate(-50%, -50%) rotate(360deg); }
  to { transform: translate(-50%, -50%) rotate(0deg); }
}

/* 3. Rotating Cryptographic Laser Sweep Beam */
.radar-beam {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: conic-gradient(from 0deg at 50% 50%, rgba(197, 168, 128, 0.32) 0deg, rgba(197, 168, 128, 0.08) 45deg, transparent 90deg, transparent 360deg);
  animation: radar-sweep 2.4s linear infinite;
  pointer-events: none;
  z-index: 2;
}

@keyframes radar-sweep {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* 4. Fine Crosshair Calibration Grid */
.radar-crosshair-h {
  position: absolute;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(197, 168, 128, 0.35) 50%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}

.radar-crosshair-v {
  position: absolute;
  height: 100%;
  width: 1px;
  background: linear-gradient(180deg, transparent 0%, rgba(197, 168, 128, 0.35) 50%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}

/* 5. Quantum NFC Microchip Core & Monogram Emblem */
.nfc-chip-node {
  position: relative;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: radial-gradient(circle, #242220 0%, #111113 100%);
  border: 1px solid var(--gold-accent);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 4;
  box-shadow: 0 0 16px rgba(197, 168, 128, 0.4), inset 0 0 8px rgba(229, 211, 179, 0.2);
}

.chip-quantum-core {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold-accent);
  box-shadow: 0 0 12px var(--gold-primary), 0 0 24px var(--gold-accent);
  animation: core-breathe 1.8s infinite ease-in-out;
  opacity: 0.8;
  z-index: 1;
}

@keyframes core-breathe {
  0%, 100% { transform: scale(0.85); opacity: 0.6; }
  50% { transform: scale(1.35); opacity: 1; }
}

.brand-logo-radar {
  height: 14px;
  max-width: 38px;
  z-index: 2;
  filter: brightness(0) invert(1) sepia(20%) saturate(800%) hue-rotate(15deg);
  opacity: 0.95;
}

/* 6. High-Tech Telemetry Badge */
.auth-crypto-badge {
  font-family: var(--lux-font-sans-labels);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--gold-primary);
  background: rgba(197, 168, 128, 0.08);
  border: 1px solid rgba(197, 168, 128, 0.25);
  border-radius: 10px;
  padding: 2px 10px;
  margin-bottom: 8px;
  text-transform: uppercase;
}

/* Poised Single-text fade step styles */
.auth-status-container {
  height: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 10px;
}

.auth-text-step {
  font-family: var(--font-sans);
  font-size: 10.5px;
  text-transform: uppercase;
  color: var(--text-secondary);
  letter-spacing: 0.15em;
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
  text-align: center;
}

.auth-text-step.fade-in {
  opacity: 1;
  color: var(--gold-accent);
  text-shadow: 0 0 8px rgba(197, 168, 128, 0.3);
}

.auth-text-step.fade-out {
  opacity: 0;
}

/* High-Fashion Success Wax Seal overlay styles */
.seal-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  animation: seal-fade-in 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes seal-fade-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   OPTION 2: CARTIER & PATEK PHILIPPE BRUSHED GOLD PLAQUE AUTHENTICATION
   ========================================================================== */
.cert-gold-card {
  width: 100%;
  background: linear-gradient(135deg, #1b170e 0%, #2f2713 30%, #4a3e1f 50%, #2a2211 75%, #16120a 100%);
  border-radius: 4px;
  padding: 22px 18px;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9), inset 0 1px 1px rgba(255, 245, 200, 0.4), inset 0 -1px 2px rgba(0, 0, 0, 0.8);
  border: 1px solid #73591c;
}

.cert-gold-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,0.02) 0px, rgba(255,255,255,0.02) 1px, transparent 1px, transparent 3px);
  pointer-events: none;
}

.rivet {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffe89e 0%, #87671b 70%, #3d2c08 100%);
  box-shadow: 0 1px 2px rgba(0,0,0,0.8), inset 0 0.5px 0.5px #fff;
  z-index: 2;
}
.rivet-tl { top: 8px; left: 8px; }
.rivet-tr { top: 8px; right: 8px; }
.rivet-bl { bottom: 8px; left: 8px; }
.rivet-br { bottom: 8px; right: 8px; }

.gold-inner-frame {
  border: 1px solid rgba(212, 175, 55, 0.4);
  padding: 16px 12px;
  border-radius: 2px;
  position: relative;
  z-index: 1;
  text-align: center;
}

.gold-top-crest {
  font-family: 'Cinzel', 'Cormorant Garamond', serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.38em;
  color: #f7e7b4;
  text-transform: uppercase;
  text-shadow: 0 1px 1px rgba(0,0,0,0.9), 0 -1px 0 rgba(255,255,255,0.2);
  margin-bottom: 2px;
}

.gold-doc-name {
  font-family: 'Cinzel', serif;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.28em;
  color: #cbb16a;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.gold-divider-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, #cbb16a, transparent);
  margin: 10px 0;
}

.gold-spec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  text-align: left;
  margin: 12px 0;
}

.gold-spec-item {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(212, 175, 55, 0.35);
  padding: 8px 10px;
  border-radius: 2px;
}

.gold-spec-k {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 7.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #e6cb7e;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.gold-spec-v {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 0.03em;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.gold-serial-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(0,0,0,0.45);
  border: 1px solid #73591c;
  padding: 7px 10px;
  margin-top: 10px;
  border-radius: 2px;
  max-width: 66%;
}

.serial-left {
  font-family: 'Cinzel', serif;
  font-size: 8px;
  letter-spacing: 0.16em;
  color: #e6cb7e;
  text-transform: uppercase;
  white-space: nowrap;
}

.serial-right {
  font-family: 'Cinzel', serif;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: #fff2c4;
  white-space: nowrap;
}

/* Circular Authenticity Stamp in Bottom Right Quadrant */
.cert-stamp-badge {
  position: absolute;
  bottom: 12px;
  right: 14px;
  width: 102px;
  height: 102px;
  pointer-events: none;
  z-index: 10;
  color: #d4af37;
  opacity: 0;
  transform-origin: center center;
  will-change: transform, opacity, filter;
}

/* Stamping impact animation: zooms in from outside and slams down with a sharp stop bit after plaque loads */
#auth-seal-box:not(.hidden) .cert-stamp-badge,
.cert-stamp-badge.stamp-active {
  animation: stamp-slam-down 0.52s cubic-bezier(0.22, 1, 0.36, 1) 0.72s both;
}

#cert-modal .cert-stamp-badge.stamp-active {
  animation: stamp-slam-down 0.48s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both !important;
}

@keyframes stamp-slam-down {
  0% {
    opacity: 0;
    transform: scale(3.2) rotate(14deg);
    filter: drop-shadow(0 40px 60px rgba(0, 0, 0, 0.95)) brightness(1.4);
  }
  35% {
    opacity: 0.85;
    transform: scale(2.0) rotate(8deg);
    filter: drop-shadow(0 24px 36px rgba(0, 0, 0, 0.85)) brightness(1.25);
  }
  68% {
    opacity: 1;
    transform: scale(1.06) rotate(-2deg);
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.75)) brightness(1.1);
  }
  80% {
    /* Hard impact stop bit */
    transform: scale(0.95) rotate(0deg);
    filter: drop-shadow(0 0 24px rgba(212, 175, 55, 0.98)) brightness(1.35);
  }
  90% {
    transform: scale(1.02) rotate(0deg);
    filter: drop-shadow(0 2px 8px rgba(212, 175, 55, 0.5)) brightness(1.05);
  }
  100% {
    opacity: 0.95;
    transform: scale(1) rotate(0deg);
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.85)) brightness(1);
  }
}

.seal-redirect-countdown {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 11.5px;
  font-weight: 500;
  color: #faeed0 !important;
  letter-spacing: 0.04em;
  text-align: center;
  margin-top: 14px;
  line-height: 1.6;
  background: rgba(18, 20, 24, 0.94);
  backdrop-filter: blur(16px);
  padding: 10px 18px;
  border-radius: 8px;
  border: 1px solid rgba(212, 175, 55, 0.35);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.85);
}

/* Dashboard Layout */
#dashboard {
  opacity: 0;
  transition: opacity 1s ease-in-out;
  display: flex;
  flex-direction: column;
  height: 100%; /* Spans the entire height of .mobile-container */
  overflow: hidden; /* Header and bottom bar are fixed inside dashboard, middle views scroll */
  z-index: 10;
  padding: 0;
}

#dashboard.visible {
  opacity: 1;
}

.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(197, 168, 128, 0.18);
  padding: 0 16px;
  height: 56px;
  box-sizing: border-box;
  background: linear-gradient(180deg, rgba(15, 15, 17, 0.25) 0%, rgba(10, 10, 11, 0.4) 100%) !important; /* Premium see-through opacity */
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  z-index: 210;
  width: 100%;
  flex-shrink: 0; /* Prevents header from shrinking in flex container */
}

.header-col-left, .header-col-right {
  flex: 1;
  display: flex;
  align-items: center;
}

.header-col-left {
  justify-content: flex-start;
}

.header-col-right {
  justify-content: flex-end;
}

.header-col-center {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-logo-header-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 24px;
}

/* Owner/Guest views display wrappers */
#owner-view, #guest-view {
  transition: opacity 0.5s ease;
  flex: 1;
  min-height: 0; /* Crucial: allows container to shrink below content height in flex layout */
  overflow-y: auto; /* Independent inner scrolling */
  padding: 16px 20px 80px 20px;
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
  position: relative; /* Set positioning context for absolute items inside them */
}

#owner-view::-webkit-scrollbar, #guest-view::-webkit-scrollbar {
  display: none; /* Hide scrollbars for ultra-clean mobile aesthetic */
}

/* Certificate Card */
.cert-card {
  background: rgba(11, 11, 12, 0.95);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(197, 168, 128, 0.25) !important;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  position: relative !important;
  z-index: 10;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7);
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
  max-height: none;
}

/* Collapsed Drawer State (Hidden) */
.cert-card.is-collapsed-bar {
  transform: translateY(-15px);
  opacity: 0;
  pointer-events: none;
  max-height: 0;
  padding: 0;
  border-color: transparent !important;
  box-shadow: none !important;
}

.cert-card.is-collapsed-bar .cert-normal-wrap {
  display: none;
}

.cert-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-accent), var(--gold-dark));
}

.cert-tag-container {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.cert-tag {
  font-family: var(--font-sans);
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--gold-primary);
  text-transform: uppercase;
  border: 1px solid var(--border-color);
  padding: 4px 10px;
  border-radius: 20px;
  display: inline-block;
}

/* Pulsating indicator */
.pulse-dot {
  width: 6px;
  height: 6px;
  background-color: #4ade80;
  border-radius: 50%;
  margin-right: 8px;
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7);
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(74, 222, 128, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(74, 222, 128, 0);
  }
}

.cert-title {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 28px;
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.cert-number-container {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.cert-number {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--gold-accent);
  letter-spacing: 0.1em;
}

/* Golden expand arrow */
.expand-arrow {
  width: 6px;
  height: 6px;
  border-right: 1.5px solid var(--gold-primary);
  border-bottom: 1.5px solid var(--gold-primary);
  transform: rotate(45deg);
  margin-left: 10px;
  transition: transform 0.4s ease;
  display: inline-block;
  margin-bottom: 3px;
}

.expand-arrow.expanded {
  transform: rotate(-135deg);
  margin-bottom: 0px;
  margin-top: 3px;
}

.cert-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  border-top: 1px dashed var(--border-color);
  border-bottom: 1px dashed var(--border-color);
  padding: 16px 0;
  margin-top: 20px;
  margin-bottom: 20px;
  transition: max-height 0.5s cubic-bezier(0, 1, 0, 1), opacity 0.4s ease, padding 0.5s ease;
  max-height: 500px;
  opacity: 1;
  overflow: hidden;
}

.cert-grid.collapsed {
  max-height: 0;
  opacity: 0;
  padding-top: 0;
  padding-bottom: 0;
  border-top-color: transparent;
  border-bottom-color: transparent;
  margin-top: 0;
  margin-bottom: 0;
}

.cert-item {
  text-align: left;
}

.cert-label {
  font-family: var(--font-sans);
  font-size: 10px;
  text-transform: uppercase;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}

.cert-value {
  font-family: var(--font-serif);
  font-size: 15px;
  color: var(--text-primary);
}

.cert-signature {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 18px;
  color: var(--gold-accent);
  margin-top: 10px;
}

/* Flat Scrolling Sections Styles */
.section-card {
  background: var(--panel-bg);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.section-card:hover {
  border-color: var(--border-active);
  box-shadow: 0 12px 35px rgba(197, 168, 128, 0.05);
}

.section-title {
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--gold-accent);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 8px;
}

.subsection-title {
  font-family: var(--font-serif);
  font-size: 16px;
  color: var(--gold-primary);
  margin-bottom: 12px;
  font-style: italic;
}

.section-desc {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--text-primary);
  line-height: 1.7;
  margin-bottom: 16px;
}

.section-desc-secondary {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}

/* 5 Heritage Pillars Story Widget */
.heritage-tabs-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.heritage-tabs-scroll::-webkit-scrollbar {
  display: none;
}

.heritage-tab {
  flex-shrink: 0;
  padding: 6px 14px;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  font-family: var(--font-sans);
  font-size: 11px;
  text-transform: uppercase;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-smooth);
  letter-spacing: 0.05em;
}

.heritage-tab:hover, .heritage-tab.active {
  border-color: var(--gold-accent);
  color: var(--gold-accent);
  background: rgba(197, 168, 128, 0.05);
}

.heritage-content-box {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(197, 168, 128, 0.08);
  border-radius: 8px;
  padding: 16px;
  min-height: 140px;
}

#heritage-pillar-title, #heritage-pillar-desc,
#guest-pillar-title, #guest-pillar-desc {
  transition: opacity 0.3s ease;
}

/* Video Player Styles */
.video-container {
  width: 100%;
  height: 200px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background-color: #070708;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  margin-bottom: 20px;
}

#video-placeholder {
  text-align: center;
  z-index: 2;
  padding: 20px;
}

.video-title {
  font-family: var(--font-serif);
  font-size: 16px;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.video-subtitle {
  font-size: 9px;
  color: var(--text-secondary);
  text-transform: uppercase;
  margin-bottom: 16px;
  letter-spacing: 0.1em;
}

#video-loader {
  width: 0%;
  height: 2px;
  background: var(--gold-primary);
  position: absolute;
  bottom: 0;
  left: 0;
  transition: width 0.1s linear;
}

.quote-box {
  border-left: 2px solid var(--gold-primary);
  padding-left: 14px;
  font-style: italic;
  color: var(--text-secondary);
  font-size: 12px;
  margin: 16px 0;
}

/* Interactive Timeline Journal Styles */
.journal-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
  margin-bottom: 24px;
}

.journal-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 14px;
}

.journal-date {
  font-size: 11px;
  color: var(--gold-primary);
  margin-bottom: 4px;
}

.journal-event {
  font-family: var(--font-serif);
  font-size: 16px;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.journal-note {
  font-size: 12px;
  color: var(--text-secondary);
}

/* Conversational Chatbot Styles */
.chat-memoir-container {
  background: #080809;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  margin-top: 12px;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.5);
}

.chat-messages {
  height: 220px;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-bubble {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 12px;
  font-family: var(--font-sans);
  font-size: 12px;
  line-height: 1.5;
}

.chat-bubble.bot-msg {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
  align-self: flex-start;
  border-bottom-left-radius: 2px;
  border: 1px solid rgba(255, 255, 255, 0.02);
}

.chat-bubble.user-msg {
  background: rgba(197, 168, 128, 0.15);
  color: var(--gold-accent);
  align-self: flex-end;
  border-bottom-right-radius: 2px;
  border: 1px solid rgba(197, 168, 128, 0.2);
}

.chat-input-bar {
  display: flex;
  border-top: 1px solid var(--border-color);
  background: rgba(22, 22, 24, 0.5);
}

.chat-input {
  flex-grow: 1;
  background: transparent;
  border: none;
  padding: 12px 16px;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 13px;
}

.chat-input:focus {
  outline: none;
}

.chat-send-btn {
  background: none;
  border: none;
  color: var(--gold-primary);
  padding: 0 16px;
  font-family: var(--font-sans);
  font-weight: 500;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.chat-send-btn:hover {
  color: var(--gold-accent);
}

.chat-options-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.02);
  background: rgba(0, 0, 0, 0.2);
}

.chat-option-tag {
  background: none;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 4px 10px;
  font-family: var(--font-sans);
  font-size: 10px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.chat-option-tag:hover {
  border-color: var(--gold-primary);
  color: var(--gold-accent);
  background: rgba(197, 168, 128, 0.05);
}

.chat-photo-simulator {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(197, 168, 128, 0.04);
  border-top: 1px solid rgba(197, 168, 128, 0.15);
  padding: 6px 16px;
  font-size: 11px;
  color: var(--gold-primary);
}

/* Forms generic styling */
.interactive-form {
  margin-top: 24px;
  border-top: 1px dashed var(--border-color);
  padding-top: 20px;
}

.form-title {
  font-family: var(--font-serif);
  font-size: 16px;
  color: var(--gold-accent);
  margin-bottom: 12px;
}

.form-desc {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 12px;
  line-height: 1.6;
}

.form-group {
  margin-bottom: 12px;
}

.form-label {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.form-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 10px;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 13px;
}

.form-input:focus {
  outline: none;
  border-color: var(--gold-accent);
}

.submit-btn {
  width: 100%;
  background: var(--gold-primary);
  border: none;
  color: #0b0b0c;
  font-family: var(--font-sans);
  font-weight: 500;
  text-transform: uppercase;
  padding: 12px;
  border-radius: 4px;
  cursor: pointer;
  letter-spacing: 0.1em;
  font-size: 12px;
  transition: var(--transition-smooth);
}

.submit-btn:hover {
  background: var(--gold-accent);
}

/* Styling & Ritual Steps Styles */
.styling-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 12px;
}

.styling-step {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(197, 168, 128, 0.1);
  border-radius: 6px;
  padding: 12px 16px;
}

.styling-step strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 14px;
  color: var(--gold-accent);
  margin-bottom: 4px;
}

.styling-step span {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Info and rules blocks */
.alert-info-box {
  background: rgba(197, 168, 128, 0.02);
  border-left: 2px solid var(--gold-primary);
  padding: 12px;
  border-radius: 0 6px 6px 0;
  font-size: 11px;
  font-style: italic;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-top: 16px;
}

.rules-box {
  background: rgba(255, 255, 255, 0.01);
  padding: 16px;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  margin-bottom: 20px;
  font-size: 12px;
}

.rules-title {
  margin-bottom: 8px;
  color: var(--gold-accent);
  font-weight: 600;
  letter-spacing: 0.05em;
}

.rules-box p {
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.rules-box p:last-child {
  margin-bottom: 0;
}

/* Trunk Show Box */
.vip-invitation-box {
  border: 1px solid var(--gold-primary);
  padding: 24px;
  border-radius: 8px;
  text-align: center;
  background: rgba(197, 168, 128, 0.03);
}

.invitation-title {
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--gold-accent);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.invitation-subtitle {
  font-size: 14px;
  margin-bottom: 16px;
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--text-primary);
}

.invitation-desc {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.invitation-details {
  font-size: 11px;
  margin-bottom: 20px;
  border-top: 1px dashed var(--border-color);
  padding-top: 12px;
  color: var(--text-secondary);
}

.invitation-details strong {
  color: var(--gold-accent);
}

/* Share card preview */
.share-preview-box {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 16px;
  background: #111113;
  margin-bottom: 16px;
  text-align: center;
}

.share-card-image {
  width: 100%;
  height: 280px;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  background-color: #050505;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  position: relative;
}

.share-card-image::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  bottom: 10px;
  border: 1px solid rgba(197, 168, 128, 0.15);
  pointer-events: none;
}

.share-card-brand {
  font-family: var(--font-serif);
  font-size: 14px;
  letter-spacing: 0.25em;
  color: var(--gold-accent);
  text-transform: uppercase;
  margin-bottom: 30px;
}

.share-card-title {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 24px;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.share-card-meta {
  font-family: var(--font-sans);
  font-size: 9px;
  color: var(--gold-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Stats (Minh Bach Xanh) */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 20px 0;
}

.stats-item {
  background: rgba(255, 255, 255, 0.02);
  padding: 16px;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  text-align: center;
}

.stats-number {
  font-size: 24px;
  font-family: var(--font-serif);
  color: var(--gold-accent);
  margin-bottom: 4px;
}

.stats-label {
  font-size: 9px;
  color: var(--text-secondary);
  text-transform: uppercase;
  line-height: 1.5;
}

/* Audio button (inherited by simulated buttons) */
.audio-btn {
  background: none;
  border: 1px solid var(--gold-primary);
  color: var(--gold-accent);
  padding: 10px 24px;
  border-radius: 20px;
  font-family: var(--font-sans);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.15em;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.audio-btn:hover {
  background: var(--gold-primary);
  color: #0b0b0c;
}

/* Luxury Toast Notification */
.toast-msg {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(22, 22, 24, 0.95);
  border: 1px solid var(--gold-primary);
  color: var(--text-primary);
  padding: 12px 24px;
  border-radius: 4px;
  font-family: var(--font-sans);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  z-index: 300;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast-msg.show {
  transform: translateX(-50%) translateY(0);
}


/* --- GUEST VIEW SPECIFIC STYLES --- */
.guest-welcome-card {
  position: absolute !important;
  top: 42px;
  left: 16px;
  right: 16px;
  z-index: 200;
  background: rgba(11, 11, 12, 0.95) !important;
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(197, 168, 128, 0.25) !important;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7);
  cursor: pointer;
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease, max-height 0.4s ease;
  max-height: 520px;
}

/* Collapsed Drawer State (Hidden) */
.guest-welcome-card.is-collapsed-bar {
  transform: translateY(-15px);
  opacity: 0;
  pointer-events: none;
  max-height: 0;
  padding: 0;
  border-color: transparent !important;
  box-shadow: none !important;
}

.guest-welcome-card.is-collapsed-bar .guest-normal-wrap {
  display: none;
}

.guest-welcome-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gold-primary);
}

.guest-verified-badge {
  font-family: var(--font-sans);
  font-size: 9px;
  letter-spacing: 0.25em;
  color: #4ade80;
  text-transform: uppercase;
  border: 1px solid rgba(74, 222, 128, 0.3);
  background: rgba(74, 222, 128, 0.03);
  padding: 4px 14px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 16px;
}

.guest-title {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 28px;
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.guest-meta {
  font-family: var(--font-sans);
  font-size: 11px;
  color: var(--gold-accent);
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.guest-color-tag {
  font-family: var(--font-serif);
  font-size: 13px;
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 16px;
  border-bottom: 1px dashed var(--border-color);
  padding-bottom: 12px;
}

.guest-desc {
  font-family: var(--font-sans);
  font-size: 12.5px;
  color: var(--text-primary);
  line-height: 1.6;
}

/* Owner Login CTA inside Guest View */
.guest-owner-login-cta {
  margin-top: 24px;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.owner-cta-text {
  font-family: var(--font-sans);
  font-size: 11px;
  color: var(--text-secondary);
}

.owner-login-btn {
  background: none;
  border: 1px solid var(--gold-primary);
  color: var(--gold-accent);
  font-family: var(--font-sans);
  font-size: 9px;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  letter-spacing: 0.05em;
  transition: var(--transition-smooth);
}

.owner-login-btn:hover {
  background: var(--gold-primary);
  color: #0b0b0c;
  box-shadow: 0 4px 12px rgba(197, 168, 128, 0.2);
}

/* Lookbook Catalog Grid */
.lookbook-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
}

.lookbook-item {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.lookbook-item:hover {
  border-color: var(--border-active);
}

.lookbook-media-placeholder {
  height: 120px;
  background: linear-gradient(135deg, #111113 0%, #1c1c1f 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.lookbook-media-placeholder .media-title {
  font-family: var(--font-serif);
  font-size: 16px;
  color: var(--gold-accent);
  margin-bottom: 4px;
}

.lookbook-media-placeholder .media-details {
  font-family: var(--font-sans);
  font-size: 9px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.lookbook-info {
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.lookbook-info strong {
  font-family: var(--font-sans);
  font-size: 12.5px;
  color: var(--text-primary);
  font-weight: 500;
}

.lookbook-info span {
  font-family: var(--font-sans);
  font-size: 11px;
  color: var(--text-secondary);
}

/* Brand SVG logos general specs */
.brand-logo-nfc {
  height: 60px;
  max-width: 220px;
  filter: brightness(0) invert(1) sepia(20%) saturate(800%) hue-rotate(15deg);
}

.brand-logo-header {
  height: 16px;
  max-width: 90px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1) sepia(20%) saturate(800%) hue-rotate(15deg);
}

.brand-logo-auth {
  height: 28px;
  max-width: 120px;
  filter: brightness(0) invert(1) sepia(20%) saturate(800%) hue-rotate(15deg);
}

/* RESPONSIVE DESIGN - Preview Mode & Multi-Device Viewport */
@media (max-width: 1023px) {
  .preview-workspace {
    flex-direction: column;
    align-items: center;
    gap: 32px;
    padding: 24px 16px;
  }
  .preview-control-panel {
    width: 375px;
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  body {
    padding: 0;
    background-color: #0b0b0c;
  }
  .preview-workspace {
    padding: 0;
    flex-direction: column;
    background: #0b0b0c;
    gap: 0;
  }
  .preview-control-panel {
    width: 100%;
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-top: 1px solid rgba(197, 168, 128, 0.25);
    order: 2; /* Sits below mobile viewport on small screens */
  }
  .preview-device-stage {
    width: 100%;
    order: 1;
  }
  .stage-pedestal-light {
    display: none;
  }
  .mobile-container {
    width: 100%;
    max-width: 100%;
    height: 100vh;
    border-radius: 0;
    border: none;
    box-shadow: none !important;
  }
}

/* Custom entrance and exit animation for the success certificate */
#auth-seal-box #auth-success-cert {
  animation: cert-slide-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

#auth-seal-box #auth-success-cert.cert-closing-to-header {
  animation: cert-close-to-indicator 0.72s cubic-bezier(0.2, 0.8, 0.2, 1) forwards !important;
}

@keyframes cert-close-to-indicator {
  0% {
    transform: translateY(0) scale(1);
    opacity: 1;
    filter: blur(0);
  }
  30% {
    transform: translateY(-16px) scale(0.92);
    opacity: 0.95;
  }
  100% {
    transform: translate(-36vw, -46vh) scale(0.12);
    opacity: 0;
    filter: blur(4px);
  }
}

.cert-countdown-closing {
  opacity: 0;
  transition: opacity 0.35s ease;
}

@keyframes cert-slide-up {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Discrete language selector inside app header */
.header-lang-bar {
  display: flex;
  align-items: center;
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 3px 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition-smooth);
  z-index: 50;
}

.header-lang-bar:hover {
  background: rgba(197, 168, 128, 0.03);
  border-color: rgba(197, 168, 128, 0.2);
  color: var(--gold-accent);
}

/* Luxury Day/Night Theme Toggle Switch (No Emojis, Pure Luxury Typography) */
.header-theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--lux-font-sans-labels);
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--gold-primary);
  background: rgba(197, 168, 128, 0.06);
  border: 1px solid rgba(197, 168, 128, 0.25);
  border-radius: 12px;
  padding: 3px 8px;
  cursor: pointer;
  transition: var(--transition-smooth);
  outline: none;
  z-index: 50;
  line-height: 1.2;
}

.header-theme-toggle:hover {
  background: rgba(197, 168, 128, 0.15);
  border-color: var(--gold-accent);
  color: var(--gold-accent);
}

body.day-mode .header-theme-toggle {
  background: rgba(138, 109, 69, 0.08);
  border-color: rgba(138, 109, 69, 0.3);
  color: #6a4f29;
}

body.day-mode .header-theme-toggle:hover {
  background: rgba(138, 109, 69, 0.16);
  border-color: #6a4f29;
  color: #3b2a14;
}

/* Header NFC Replay Trigger Button */
.header-nfc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--gold-primary);
  background: rgba(197, 168, 128, 0.08);
  border: 1px solid rgba(197, 168, 128, 0.25);
  border-radius: 12px;
  padding: 3px 7px;
  cursor: pointer;
  transition: var(--transition-smooth);
  outline: none;
  line-height: 1.2;
}

.header-nfc-btn:hover {
  background: rgba(197, 168, 128, 0.2);
  border-color: var(--gold-accent);
  color: var(--gold-accent);
}

body.day-mode .header-nfc-btn {
  background: #ede8dc !important;
  border-color: rgba(122, 88, 40, 0.35) !important;
  color: #4a3416 !important;
}

body.day-mode .header-nfc-btn:hover {
  background: #dfd8c7 !important;
  border-color: #7a5828 !important;
}


/* Guest View Flat Editorial Memoir Flow */
.heritage-editorial-flow {
  position: relative;
  padding-left: 20px;
  border-left: 1px solid rgba(197, 168, 128, 0.12);
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.editorial-block {
  text-align: left;
}

.editorial-block-title {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--gold-accent);
  letter-spacing: 0.08em;
  margin-top: 0;
  margin-bottom: 8px;
  position: relative;
}

.editorial-block-title::before {
  content: '';
  position: absolute;
  left: -26px;
  top: 3px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--bg-color);
  border: 1.5px solid var(--gold-accent);
}

.editorial-block-text {
  font-family: var(--font-sans);
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
}

.quote-box {
  margin-top: 14px;
  padding: 14px 18px;
  border-left: 2px solid var(--gold-accent);
  background: rgba(197, 168, 128, 0.02);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-primary);
}

/* Discrete button for manual sequence display */
.nfc-sequence-btn {
  background: transparent;
  border: 1px solid rgba(197, 168, 128, 0.3);
  color: var(--gold-accent);
  padding: 8px 16px;
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.nfc-sequence-btn:hover {
  background: rgba(197, 168, 128, 0.05);
  border-color: var(--gold-accent);
}

/* Glassmorphic Language Modal Overlay */
.lang-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(11, 11, 12, 0.5);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  border-radius: 24px; /* Matches phone container rounded corners */
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.lang-modal-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

.lang-glass-card {
  width: 85%;
  max-width: 290px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(197, 168, 128, 0.2);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  text-align: center;
  transform: scale(0.92);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.lang-modal-overlay.visible .lang-glass-card {
  transform: scale(1);
}

.lang-modal-header {
  margin-bottom: 16px;
}

.lang-modal-title {
  display: block;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  color: var(--gold-accent);
  letter-spacing: 0.1em;
}

.lang-modal-subtitle {
  display: block;
  font-family: var(--font-sans);
  font-size: 8px;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
  margin-top: 2px;
}

.lang-options-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.lang-grid-item {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 6px;
  padding: 10px 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.lang-grid-item:hover {
  background: rgba(197, 168, 128, 0.02);
  border-color: rgba(197, 168, 128, 0.25);
}

.lang-grid-item.active {
  background: rgba(197, 168, 128, 0.05);
  border-color: var(--gold-accent);
}

.lang-name {
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-primary);
}

.lang-code {
  font-family: var(--font-sans);
  font-size: 8px;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
}

.lang-grid-item.active .lang-code {
  color: var(--gold-accent);
  font-weight: 600;
}

.lang-close-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  padding: 6px 20px;
  font-family: var(--font-sans);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.lang-close-btn:hover {
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text-primary);
}

/* Header verify status tag on the left */
.header-verify-status {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-sans);
  font-size: 8px;
  font-weight: 700;
  color: #e2fbe8;
  cursor: pointer;
  padding: 3px 9px;
  border-radius: 12px;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.28);
  transition: var(--transition-smooth);
  z-index: 50;
  opacity: 0;
  pointer-events: none;
}

.header-verify-status.visible {
  opacity: 1;
  pointer-events: auto;
}

.header-verify-status:hover {
  background: rgba(34, 197, 94, 0.16);
  border-color: rgba(34, 197, 94, 0.45);
}

.header-verify-status .verify-text {
  letter-spacing: 0.08em;
  font-size: 7.5px;
  font-weight: 700;
  color: #e2fbe8;
}

.header-verify-status .pulse-dot {
  width: 6px;
  height: 6px;
  background-color: #22c55e; /* Vibrant pulsing emerald green */
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.9);
  animation: pulse-green 1.8s infinite;
}

@keyframes pulse-green {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.85);
  }
  70% {
    transform: scale(1.1);
    box-shadow: 0 0 0 6px rgba(34, 197, 94, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

.header-verify-status.pulse-highlight {
  animation: header-indicator-bloom 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes header-indicator-bloom {
  0% {
    transform: scale(1.3);
    box-shadow: 0 0 18px rgba(34, 197, 94, 0.9);
    border-color: rgba(34, 197, 94, 0.8);
    background: rgba(34, 197, 94, 0.25);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 rgba(34, 197, 94, 0);
    border-color: rgba(34, 197, 94, 0.28);
    background: rgba(34, 197, 94, 0.08);
  }
}


/* --- DIGITAL MAGAZINE STYLES --- */
/* Editorial Header */
.editorial-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-color);
  background: rgba(7, 7, 8, 0.9);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-issue {
  font-size: 8.5px;
  font-weight: 600;
  color: var(--gold-accent);
  letter-spacing: 0.15em;
}

.header-brand {
  font-family: var(--font-serif);
  font-size: 13px;
  letter-spacing: 0.25em;
  font-weight: 300;
  color: var(--text-primary);
  text-align: center;
}

.lang-selector-globe {
  font-size: 8.5px;
  font-weight: 600;
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  padding: 2px 6px;
  border-radius: 10px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.lang-selector-globe:hover {
  border-color: var(--gold-primary);
  color: var(--gold-accent);
}

/* Magazine Container */
.magazine-container {
  padding: 32px 24px;
  flex: 1;
}

/* Cover Section */
.editorial-cover {
  text-align: center;
  margin-bottom: 48px;
}

.magazine-title {
  font-family: 'Charm', cursive;
  font-size: 52px;
  font-weight: 400;
  color: var(--gold-accent);
  line-height: 1.1;
  margin-bottom: 20px;
  text-align: center;
}

.magazine-intro {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--text-secondary);
  padding: 0 10px;
}

.magazine-line-divider {
  width: 40px;
  height: 1px;
  background: var(--gold-primary);
  margin: 32px auto 0 auto;
}

/* Magazine Section */
.magazine-section {
  margin-bottom: 56px;
  position: relative;
}

.section-meta {
  font-size: 8.5px;
  font-weight: 600;
  color: var(--gold-primary);
  letter-spacing: 0.2em;
  margin-bottom: 8px;
}

.section-heading {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 400;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 24px;
}

/* Media Spread Box */
.media-spread {
  margin-bottom: 24px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-card);
}

.fabric-macro-view {
  height: 180px;
  background: linear-gradient(135deg, #161618 0%, #2a2620 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 16px;
}

.macro-texture-grain {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.12;
  background-image: radial-gradient(var(--gold-accent) 0.5px, transparent 0.5px), radial-gradient(var(--gold-accent) 0.5px, #000 0.5px);
  background-size: 4px 4px;
  background-position: 0 0, 2px 2px;
}

.texture-label {
  font-size: 8px;
  letter-spacing: 0.15em;
  color: var(--gold-accent);
  background: rgba(0, 0, 0, 0.6);
  padding: 3px 8px;
  border-radius: 4px;
  border: 0.5px solid rgba(197, 168, 128, 0.3);
  font-family: var(--font-sans);
}

.audio-trigger-box {
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  border-top: 1px solid var(--border-color);
}

.magazine-audio-btn {
  background: none;
  border: 1px solid var(--gold-primary);
  color: var(--gold-accent);
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.1em;
  padding: 8px 20px;
  border-radius: 20px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.magazine-audio-btn:hover {
  background: var(--gold-primary);
  color: #0b0b0c;
}

.audio-status {
  font-size: 8px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Editorial Body */
.editorial-body {
  font-family: var(--font-serif);
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--text-secondary);
}

.editorial-paragraph {
  margin-bottom: 24px;
  text-align: left;
  letter-spacing: 0.02em;
  font-weight: 300;
}

.drop-cap {
  font-family: var(--font-serif);
  font-size: 48px;
  float: left;
  line-height: 0.8;
  margin-right: 8px;
  margin-top: 4px;
  color: var(--gold-accent);
}

/* Glossary Terms (clickable) */
.glossary-term {
  color: var(--text-primary);
  border-bottom: 1px dashed var(--gold-primary);
  cursor: pointer;
  transition: color 0.3s ease;
}

.glossary-term:hover {
  color: var(--gold-accent);
}

/* Editorial Block Quotes */
.editorial-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 16px;
  color: var(--gold-accent);
  border-left: 2px solid var(--gold-primary);
  padding-left: 16px;
  margin: 28px 0;
  line-height: 1.5;
}

.editorial-quote cite {
  display: block;
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  margin-top: 8px;
}

/* Interactive Pattern Comparison Slider */
.slider-container {
  width: 100%;
  height: 200px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  margin-bottom: 24px;
  background: #0d0d0e;
}

.slider-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.layer-sketch {
  background: radial-gradient(circle, #1a1a1c 0%, #0c0c0d 100%);
  z-index: 1;
}

.layer-embroidery {
  background: radial-gradient(circle, #25221b 0%, #0f0e0b 100%);
  z-index: 2;
  clip-path: inset(0 0 0 50%); /* Start at 50% slider handle */
}

.sketch-sketchbook-mock, .embroidery-mock {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.sketch-vector, .embroidery-vector {
  width: 120px;
  height: 120px;
}

.layer-tag {
  position: absolute;
  bottom: 12px;
  font-size: 8px;
  letter-spacing: 0.15em;
  color: var(--text-secondary);
  background: rgba(0, 0, 0, 0.4);
  padding: 2px 6px;
  border-radius: 3px;
}

.layer-embroidery .layer-tag {
  color: var(--gold-accent);
}

.slider-handle-bar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  z-index: 3;
  cursor: ew-resize;
  -webkit-appearance: none;
}

/* Custom Visual handle line to represent separator */
.slider-container::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--slide-pos, 50%);
  width: 1px;
  background: var(--gold-primary);
  box-shadow: 0 0 8px var(--gold-primary);
  z-index: 2;
  pointer-events: none;
}

/* Draping Strip Storyboard Layout */
.draping-strip {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 12px;
  margin-bottom: 24px;
  scroll-snap-type: x mandatory;
}

.draping-strip::-webkit-scrollbar {
  height: 3px;
}
.draping-strip::-webkit-scrollbar-thumb {
  background: rgba(197, 168, 128, 0.2);
  border-radius: 2px;
}

.strip-item {
  flex: 0 0 160px;
  scroll-snap-align: start;
}

.strip-photo-placeholder {
  height: 180px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background: linear-gradient(180deg, #111113 0%, #080809 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.strip-photo-placeholder::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  bottom: 8px;
  border: 0.5px dashed rgba(197, 168, 128, 0.2);
  pointer-events: none;
}

.step-num {
  font-family: var(--font-serif);
  font-size: 36px;
  font-style: italic;
  color: rgba(197, 168, 128, 0.25);
  margin-bottom: 4px;
}

.step-label {
  font-size: 8px;
  letter-spacing: 0.15em;
  color: var(--text-secondary);
}

/* Cover Spread presentation box */
.cover-spread-container {
  margin-bottom: 24px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 16px;
  background: var(--bg-card);
}

.cover-image-box {
  width: 100%;
  height: 320px;
  border: 1px solid var(--border-color);
  background: #050506;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 24px;
  overflow: hidden;
}

.cover-image-box::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  bottom: 10px;
  border: 1px solid rgba(197, 168, 128, 0.1);
  pointer-events: none;
}

.cover-brand-overlay {
  font-family: var(--font-serif);
  font-size: 18px;
  letter-spacing: 0.35em;
  color: var(--gold-accent);
  z-index: 2;
  margin-top: 10px;
}

.cover-title-overlay {
  font-family: var(--font-serif);
  font-size: 28px;
  font-style: italic;
  color: var(--text-primary);
  z-index: 2;
  margin-bottom: 10px;
}

.cover-meta-overlay {
  font-size: 7.5px;
  letter-spacing: 0.15em;
  color: var(--text-secondary);
  z-index: 2;
}

.cover-model-silhouette {
  position: absolute;
  top: 40px;
  bottom: 40px;
  width: 120px;
  background: linear-gradient(180deg, rgba(197, 168, 128, 0.05) 0%, rgba(197, 168, 128, 0.01) 100%);
  border-radius: 60px 60px 0 0;
  border: 0.5px solid rgba(197, 168, 128, 0.15);
  z-index: 1;
}

/* Glassmorphism Slide-up Drawer styling */
.magazine-drawer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(11, 11, 12, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(197, 168, 128, 0.25);
  border-radius: 16px 16px 0 0;
  z-index: 150;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 16px 24px 32px 24px;
}

.magazine-drawer.open {
  transform: translateY(0);
}

.drawer-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  margin-bottom: 18px;
}

.drawer-notch {
  width: 36px;
  height: 4px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
  margin-bottom: 12px;
}

.drawer-close {
  position: absolute;
  right: 0;
  top: 0;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 9px;
  letter-spacing: 0.1em;
  cursor: pointer;
}

.drawer-title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-style: italic;
  color: var(--gold-accent);
  margin-bottom: 8px;
}

.drawer-body {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* Glassmorphism Language Selector Modal */
.glass-lang-modal {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  z-index: 200;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.glass-lang-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.lang-modal-box {
  width: 280px;
  background: rgba(18, 18, 20, 0.95);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}

.lang-modal-title {
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--gold-accent);
  margin-bottom: 20px;
}

.lang-list {
  list-style: none;
  margin-bottom: 20px;
}

.lang-list li {
  padding: 10px 0;
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  transition: var(--transition-smooth);
}

.lang-list li:last-child {
  border-bottom: none;
}

.lang-list li:hover, .lang-list li.active {
  color: var(--text-primary);
  font-weight: 600;
  background: rgba(197, 168, 128, 0.05);
}

.lang-close-btn {
  background: none;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 9px;
  letter-spacing: 0.1em;
  padding: 6px 16px;
  border-radius: 15px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.lang-close-btn:hover {
  border-color: var(--gold-primary);
  color: var(--text-primary);
}

/* Spine Layout & Tab Swapping */
.relic-tab-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 12px;
  margin-bottom: 28px;
  scroll-snap-type: x mandatory;
  border-bottom: 1px solid rgba(197, 168, 128, 0.08);
}

.relic-tab-bar::-webkit-scrollbar {
  height: 2px;
}

.relic-tab-bar::-webkit-scrollbar-thumb {
  background: rgba(197, 168, 128, 0.2);
  border-radius: 1px;
}

.relic-tab {
  background: none;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 6px 14px;
  border-radius: 15px;
  font-family: var(--font-sans);
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  cursor: pointer;
  white-space: nowrap;
  scroll-snap-align: start;
  transition: var(--transition-smooth);
}

.relic-tab.active {
  border-color: var(--gold-primary);
  color: var(--gold-accent);
  background: rgba(197, 168, 128, 0.05);
}

.relic-editorial-header {
  margin-bottom: 32px;
  text-align: center;
}

.spine-segment {
  margin-bottom: 44px;
  padding-bottom: 32px;
  border-bottom: 1px dashed rgba(197, 168, 128, 0.08);
}

.spine-segment:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.segment-meta {
  font-family: var(--font-sans);
  font-size: 8.5px;
  font-weight: 600;
  color: var(--gold-primary);
  letter-spacing: 0.15em;
  margin-bottom: 16px;
}

/* Colorway Interactive Swatches */
.colorway-selector-box {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.color-swatches {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.swatch {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
  position: relative;
  transition: var(--transition-smooth);
}

.swatch.active {
  transform: scale(1.15);
}

.swatch.active::after {
  content: "";
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border: 1px solid var(--gold-accent);
  border-radius: 50%;
}

.color-explanation-text {
  font-family: var(--font-sans);
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--text-secondary);
  text-align: center;
  min-height: 54px;
  max-width: 320px;
}

/* Fade animation */
#relic-content-container {
  opacity: 1;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

#relic-content-container.fade-out {
  opacity: 0;
}

/* Custom CSS Abstract Art Backgrounds */
.custom-css-art-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
  transition: var(--transition-smooth);
}

/* 1. Dong Son Clouds: Celadon green & bronze patina with gold rotating wind lines */
.art-dong-son {
  background: radial-gradient(circle at 50% 50%, #152019 0%, #060907 100%);
}
.art-dong-son .art-layer-1 {
  position: absolute;
  top: -20%;
  left: -20%;
  width: 140%;
  height: 140%;
  background: radial-gradient(circle, rgba(197, 168, 128, 0.08) 0%, transparent 60%);
  animation: art-spin 20s linear infinite;
}
.art-dong-son .art-layer-2 {
  position: absolute;
  top: 10%;
  left: 10%;
  width: 80%;
  height: 80%;
  border: 1px dashed rgba(197, 168, 128, 0.15);
  border-radius: 50%;
  animation: art-spin-reverse 15s linear infinite;
}

/* 2. Imperial Phoenix: Crimson & deep maroon with golden radiant sparks */
.art-phoenix {
  background: radial-gradient(circle at 50% 50%, #2f1316 0%, #080304 100%);
}
.art-phoenix .art-layer-1 {
  position: absolute;
  top: -10%;
  left: -10%;
  width: 120%;
  height: 120%;
  background: radial-gradient(circle, rgba(229, 205, 168, 0.06) 0%, transparent 50%);
  animation: art-pulse 4s ease-in-out infinite alternate;
}
.art-phoenix .art-layer-2 {
  position: absolute;
  top: 20%;
  left: 10%;
  width: 80%;
  height: 60%;
  border: 0.5px solid rgba(229, 205, 168, 0.08);
  border-radius: 50% 50% 0 0;
  transform: rotate(-15deg);
}

/* 3. Thuy Ba Waves: Deep Indigo & Gold ripple sweeps */
.art-waves {
  background: radial-gradient(circle at 50% 50%, #0d1a26 0%, #030609 100%);
}
.art-waves .art-layer-1 {
  position: absolute;
  bottom: 0;
  left: -50%;
  width: 200%;
  height: 100%;
  background: radial-gradient(ellipse at bottom, rgba(197, 168, 128, 0.05) 0%, transparent 70%);
}
.art-waves .art-layer-2 {
  position: absolute;
  bottom: 10px;
  left: 0;
  width: 100%;
  height: 40px;
  border-top: 1px solid rgba(197, 168, 128, 0.12);
  border-radius: 50% 50% 0 0;
}
.art-waves .art-layer-3 {
  position: absolute;
  bottom: 25px;
  left: 0;
  width: 100%;
  height: 40px;
  border-top: 1px solid rgba(197, 168, 128, 0.08);
  border-radius: 50% 50% 0 0;
}

/* 4. Lotus Mandala: Deep violet-purple with concentric rings */
.art-lotus {
  background: radial-gradient(circle at 50% 50%, #1e1329 0%, #060408 100%);
}
.art-lotus .art-layer-1 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 160px;
  height: 160px;
  border: 0.5px solid rgba(197, 168, 128, 0.12);
  border-radius: 50%;
  animation: art-pulse 6s ease-in-out infinite;
}
.art-lotus .art-layer-2 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  border: 1px dashed rgba(197, 168, 128, 0.08);
  border-radius: 50%;
}

/* 5. Cranes Nesting: Ash rose & gold delicate feathering */
.art-cranes {
  background: radial-gradient(circle at 50% 50%, #291a1a 0%, #080505 100%);
}
.art-cranes .art-layer-1 {
  position: absolute;
  top: -10%;
  right: -10%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(197, 168, 128, 0.05) 0%, transparent 60%);
  animation: art-pulse 5s ease-in-out infinite alternate;
}
.art-cranes .art-layer-2 {
  position: absolute;
  top: 15%;
  left: 20%;
  width: 60%;
  height: 70%;
  border-left: 0.5px solid rgba(197, 168, 128, 0.1);
  border-radius: 50%;
  transform: rotate(30deg);
}

/* Animations */
@keyframes art-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
@keyframes art-spin-reverse {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(-360deg); }
}
@keyframes art-pulse {
  0% { transform: scale(0.95); opacity: 0.7; }
  50% { transform: scale(1.05); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.7; }
}

/* Extra Typography Enhancements for bold publishing style */
.relic-editorial-header .section-heading {
  font-family: var(--font-serif);
  font-size: 38px;
  font-weight: 300;
  font-style: italic;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin-top: 4px;
}
.segment-meta {
  font-weight: 600;
  letter-spacing: 0.25em;
  color: var(--gold-accent);
}
.editorial-quote {
  font-size: 17.5px;
  font-weight: 300;
  letter-spacing: 0.01em;
  color: var(--gold-accent);
}

/* Wearing Highlight Box */
.wearing-highlight-box {
  background: rgba(197, 168, 128, 0.03);
  border: 1px solid rgba(197, 168, 128, 0.12);
  padding: 24px;
  margin-top: 24px;
  text-align: center;
  border-radius: 8px;
}

.wearing-label {
  font-family: var(--font-sans);
  font-size: 9.5px;
  font-weight: 600;
  color: var(--gold-accent);
  letter-spacing: 0.15em;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.wearing-desc {
  font-family: var(--font-serif);
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--text-primary);
  font-style: italic;
  letter-spacing: 0.02em;
}




/* --- HIGH FASHION EDITORIAL LAYOUT INSPIRATIONS --- */
.editorial-photo-frame {
  position: relative;
  margin: 32px 16px 44px 16px;
}

.editorial-photo-frame::after {
  content: "";
  position: absolute;
  top: 10px;
  left: 10px;
  right: -10px;
  bottom: -10px;
  border: 1px solid rgba(197, 168, 128, 0.25);
  pointer-events: none;
  z-index: 0;
}

.editorial-photo-frame > div {
  position: relative;
  z-index: 1;
}

/* Paint chip style color swatches */
.color-swatches {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin: 28px 0;
}

.swatch {
  width: 52px;
  height: 80px;
  background: #111113;
  border: 1px solid var(--border-color);
  border-radius: 2px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  transition: var(--transition-smooth);
}

.swatch-color-bar {
  height: 52px;
  width: 100%;
}

.swatch-info {
  height: 28px;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-family: monospace;
  font-size: 7px;
  color: var(--text-secondary);
  background: #09090b;
  border-top: 1px solid var(--border-color);
  line-height: 1.3;
}

.swatch.active {
  transform: translateY(-6px);
  border-color: var(--gold-primary);
  box-shadow: 0 8px 24px rgba(197, 168, 128, 0.18);
}

.swatch.active::after {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border: 1.5px solid var(--gold-accent);
  border-radius: 4px;
  pointer-events: none;
}

/* --- EDITORIAL DIGITAL MAGAZINE PAGE STYLE EXTENSIONS --- */
.category-scroll {
  display: flex;
  overflow-x: auto;
  background: var(--bg-warm);
  padding: 12px 16px;
  border-bottom: 1px solid rgba(140, 115, 85, 0.08);
  gap: 20px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  position: sticky;
  top: 0;
  z-index: 99;
}
.category-scroll::-webkit-scrollbar {
  display: none;
}
.category-item {
  font-size: 9.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  white-space: nowrap;
  cursor: pointer;
  scroll-snap-align: start;
  transition: color 0.3s ease;
  position: relative;
}
.category-item.active {
  color: var(--text-dark);
  font-weight: 600;
}
.category-item.active::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 1.5px;
  background-color: var(--gold-dark);
}
.story-section {
  padding: 56px 24px;
  background-color: var(--bg-warm);
  border-bottom: 1px solid rgba(140, 115, 85, 0.08);
  transition: var(--transition-slow);
}
.inlay-photo-card {
  background: #f5f4f0;
  border: 1px solid rgba(140, 115, 85, 0.12);
  border-radius: 8px;
  padding: 12px;
  margin: 28px 0;
  box-shadow: 0 4px 15px rgba(0,0,0,0.02);
  transition: var(--transition-slow);
}
.inlay-photo {
  width: 100%;
  height: 240px;
  border-radius: 4px;
  background-size: cover;
  background-position: center;
  background-color: #e5e5e7;
}
.inlay-caption {
  font-family: var(--font-serif-body);
  font-size: 11.5px;
  font-style: italic;
  color: var(--text-muted);
  margin-top: 8px;
  text-align: center;
  letter-spacing: 0.05em;
}
.chapter-heading-block {
  text-align: center;
  margin-bottom: 36px;
}
.chapter-meta-tag {
  font-size: 9px;
  font-weight: 600;
  color: var(--gold-primary);
  text-transform: uppercase;
  letter-spacing: 0.25em;
  margin-bottom: 12px;
  display: block;
}
.chapter-main-title {
  font-family: var(--font-serif-display);
  font-size: 32px;
  font-weight: 300;
  color: #f5eedb; /* High contrast ivory gold (> 14:1) */
  line-height: 1.15;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}
.poem-stanza {
  font-family: var(--font-serif-body);
  font-size: 15px;
  line-height: 1.95;
  color: #f0f0f2; /* High contrast crisp white-grey (> 14.5:1) */
  font-weight: 400;
  margin-bottom: 28px;
  letter-spacing: 0.01em;
  text-align: left;
}
.text-center {
  text-align: center !important;
}
.text-right {
  text-align: right !important;
}
.italic-highlight {
  font-style: italic;
  color: var(--gold-accent);
}
.gold-highlight {
  color: var(--gold-accent);
  font-weight: 500;
}
.poem-stanza p {
  margin-bottom: 16px;
}
.poem-stanza .drop-cap {
  font-family: var(--font-imperial);
  font-size: 110px;
  float: left;
  line-height: 0.65;
  margin-right: 14px;
  margin-top: 2px;
  color: var(--gold-accent);
  font-weight: 400;
}
.quote-block {
  border-left: 1.5px solid var(--gold-primary);
  padding-left: 18px;
  margin: 36px 0;
  font-family: var(--font-serif-display);
  font-style: italic;
  font-size: 19px;
  line-height: 1.7;
  color: var(--gold-accent);
  letter-spacing: 0.02em;
}
.quote-author {
  font-family: var(--font-sans-outfit);
  font-style: normal;
  font-size: 9.5px;
  font-weight: 600;
  color: var(--gold-primary);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  display: block;
  margin-top: 8px;
}
.slider-frame {
  width: 100%;
  height: 240px;
  border: 1px solid rgba(140, 115, 85, 0.2);
  border-radius: 6px;
  position: relative;
  overflow: hidden;
  margin: 32px 0;
}
.slider-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}
.layer-before {
  background-image: url('relic_carving.jpg');
  z-index: 1;
}
.layer-after {
  background-image: url('relic_embroidery.jpg');
  z-index: 2;
  clip-path: inset(0 0 0 50%);
}
.slider-bar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  z-index: 4;
  cursor: ew-resize;
}
.slider-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1.5px;
  background: var(--gold-accent);
  z-index: 3;
  pointer-events: none;
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
}
.slider-tag {
  position: absolute;
  bottom: 12px;
  font-size: 8px;
  letter-spacing: 0.1em;
  background: rgba(0,0,0,0.65);
  color: var(--gold-accent);
  padding: 3px 8px;
  z-index: 3;
  text-transform: uppercase;
  border-radius: 2px;
}
.swatches-section {
  margin: 32px 0;
}
.swatches-grid {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 20px;
}
.swatch-card {
  width: 68px;
  height: 108px;
  border: 1px solid rgba(140, 115, 85, 0.15);
  background: #f5f4f0;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: var(--transition-slow);
}
.swatch-color {
  height: 72px;
  width: 100%;
  border-top-left-radius: 3px;
  border-top-right-radius: 3px;
}
.swatch-meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-size: 8px;
  letter-spacing: 0.08em;
  color: #dcdce0; /* High contrast legible text (> 12:1) */
  border-top: 1px solid rgba(197, 168, 128, 0.2);
  line-height: 1.35;
  font-weight: 500;
}
.swatch-card.active {
  transform: translateY(-8px);
  border-color: var(--gold-dark);
  box-shadow: 0 12px 24px rgba(140, 115, 85, 0.15);
}
.swatch-desc {
  font-family: var(--font-serif-body);
  font-size: 13.5px;
  font-style: italic;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.6;
  padding: 0 12px;
}
.stacked-cards-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 32px 0;
}
.stacked-card {
  background: #f5f4f0;
  border: 1px solid rgba(140, 115, 85, 0.1);
  border-radius: 6px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.stacked-card-img {
  width: 60px;
  height: 60px;
  border-radius: 4px;
  background-size: cover;
  background-position: center;
}
.stacked-card-text {
  flex: 1;
  font-family: var(--font-serif-body);
  font-size: 15.5px;
  line-height: 1.5;
  color: var(--text-dark);
  font-style: italic;
}
.chapter-reveal-theme {
  background-color: #0b132b !important;
  color: #f9f8f6 !important;
  transition: var(--transition-slow);
}
.chapter-reveal-theme .chapter-main-title {
  color: #f9f8f6 !important;
}
.chapter-reveal-theme .poem-stanza {
  color: #eaeaea !important;
}
.chapter-reveal-theme .chapter-meta-tag {
  color: var(--gold-accent) !important;
}
.chapter-reveal-theme .inlay-photo-card {
  background-color: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.1);
}
.split-grid {
  display: grid;
  grid-template-cols: 1fr 1fr;
  gap: 16px;
  margin: 32px 0;
}
.split-col {
  padding: 12px;
  border: 0.5px solid rgba(255, 255, 255, 0.15);
  background-color: rgba(255,255,255,0.02);
  border-radius: 4px;
}
.split-col-title {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-accent);
  margin-bottom: 8px;
}
.split-col-body {
  font-family: var(--font-serif-body);
  font-size: 14.5px;
  line-height: 1.6;
  color: #eaeaea;
}
.secret-trigger-box {
  border: 1px dashed var(--gold-accent);
  padding: 24px;
  text-align: center;
  margin: 36px 0;
  cursor: pointer;
  transition: var(--transition-slow);
}
.secret-trigger-box:hover {
  background-color: rgba(197, 168, 128, 0.08);
  border-style: solid;
}
.secret-title {
  font-size: 10px;
  font-weight: 600;
  color: var(--gold-accent);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 8px;
}
.secret-prompt {
  font-family: var(--font-serif-body);
  font-size: 15px;
  font-style: italic;
  color: var(--text-muted);
}
.chapter-reveal-theme .secret-prompt {
  color: #b2b2b8;
}
.ending-block {
  text-align: center;
  margin-top: 64px;
  border-top: 1px solid rgba(140, 115, 85, 0.1);
  padding-top: 48px;
}
.signature-divider {
  width: 24px;
  height: 1px;
  background: var(--gold-primary);
  margin: 24px auto;
}
.footer-logo {
  font-family: var(--font-serif-display);
  font-size: 18px;
  letter-spacing: 0.25em;
  color: var(--text-dark);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.footer-credit {
  font-size: 9px;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.8;
}

/* --- UNIFIED DARK EDITORIAL CHAPTERS STYLE --- */
.bg-chapter-cover,
.bg-chapter-1,
.bg-chapter-2,
.bg-chapter-3,
.bg-chapter-4,
.bg-chapter-ket {
  background-color: #0b0b0c !important;
  color: var(--lux-text-primary) !important;
  border-bottom: 1px solid rgba(197, 168, 128, 0.08) !important;
}

/* Specific elements color adjustment */
.bg-chapter-cover .chapter-main-title,
.bg-chapter-1 .chapter-main-title,
.bg-chapter-2 .chapter-main-title,
.bg-chapter-3 .chapter-main-title,
.bg-chapter-4 .chapter-main-title,
.bg-chapter-ket .chapter-main-title {
  color: var(--lux-gold-accent) !important;
}

.bg-chapter-cover .chapter-meta-tag,
.bg-chapter-1 .chapter-meta-tag,
.bg-chapter-2 .chapter-meta-tag,
.bg-chapter-3 .chapter-meta-tag,
.bg-chapter-4 .chapter-meta-tag,
.bg-chapter-ket .chapter-meta-tag {
  color: var(--lux-gold-primary) !important;
}

.bg-chapter-cover .poem-stanza,
.bg-chapter-1 .poem-stanza,
.bg-chapter-2 .poem-stanza,
.bg-chapter-3 .poem-stanza,
.bg-chapter-4 .poem-stanza,
.bg-chapter-ket .poem-stanza,
.story-section .poem-stanza p,
.story-section p {
  color: #f0f0f2 !important; /* Crisp high contrast white-grey (> 14.5:1) */
}

.bg-chapter-cover .stacked-card-text,
.bg-chapter-1 .stacked-card-text,
.bg-chapter-2 .stacked-card-text,
.bg-chapter-3 .stacked-card-text,
.bg-chapter-4 .stacked-card-text,
.bg-chapter-ket .stacked-card-text {
  color: #f0f0f2 !important;
}

.bg-chapter-cover .footer-logo,
.bg-chapter-ket .footer-logo {
  color: var(--lux-gold-accent) !important;
}

/* Swatch card adjustments for dark context */
.bg-chapter-1 .swatch-card,
.bg-chapter-2 .swatch-card {
  background-color: var(--lux-panel-bg) !important;
  border: 1px solid var(--lux-border-color) !important;
}

.bg-chapter-1 .swatch-card.active,
.bg-chapter-2 .swatch-card.active {
  border-color: var(--lux-border-active) !important;
}

.bg-chapter-1 .swatch-title,
.bg-chapter-2 .swatch-title {
  color: #f5eedb !important;
}

.bg-chapter-1 .swatch-desc,
.bg-chapter-2 .swatch-desc,
.swatch-desc {
  color: #e5e5ea !important; /* High contrast legible description (> 13:1) */
}

/* Inlaid photo card dark mode harmony */
.story-section .inlay-photo-card {
  background: rgba(22, 22, 26, 0.7) !important;
  border: 1px solid rgba(197, 168, 128, 0.2) !important;
}
.story-section .inlay-caption {
  color: #d1d1d6 !important;
}
.story-section .inlay-photo-card p {
  color: #f5eedb !important;
}

/* --- VERTICAL SCROLL DOT INDICATORS NAVIGATION --- */
.vertical-scroll-nav {
  position: sticky;
  top: 50%;
  float: right;
  margin-right: 14px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 99;
  pointer-events: none;
}

.nav-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: rgba(140, 115, 85, 0.28);
  cursor: pointer;
  pointer-events: auto;
  position: relative;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-dot::after {
  content: "";
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  border-radius: 50%;
  border: 1px solid transparent;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-dot.active {
  background-color: var(--gold-dark);
  transform: scale(1.25);
}

.nav-dot.active::after {
  border-color: var(--gold-dark);
  transform: scale(1.15);
}

.nav-tooltip {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%) translateX(6px);
  background-color: rgba(22, 22, 24, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #f5f5f7;
  font-family: var(--font-sans-outfit);
  font-size: 8px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 8px;
  border-radius: 3px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.nav-dot:hover .nav-tooltip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* Contrast themes for Ch4 Dark background */
.vertical-scroll-nav.contrast-theme .nav-dot {
  background-color: rgba(255, 255, 255, 0.28);
}

.vertical-scroll-nav.contrast-theme .nav-dot.active {
  background-color: var(--gold-accent);
}

.vertical-scroll-nav.contrast-theme .nav-dot.active::after {
  border-color: var(--gold-accent);
}

/* --- PREMIUM LUXURY ATELIER DIRECTORY FOOTER --- */
.app-directory-footer {
  background-color: #0b0b0c;
  padding: 40px 24px 32px 24px;
  border-top: 1px solid rgba(197, 168, 128, 0.12);
  margin-top: 16px;
  margin-left: -20px; /* Offset the parent dashboard container padding */
  margin-right: -20px;
  margin-bottom: -24px; /* Align to the very bottom edge of the view */
}

.footer-divider-line {
  width: 32px;
  height: 1px;
  background-color: var(--gold-primary);
  margin: 0 auto 28px auto;
  opacity: 0.5;
}

.footer-brand-header {
  text-align: center;
  margin-bottom: 36px;
}

.footer-brand-title {
  font-family: var(--font-serif-display);
  font-size: 15px;
  font-weight: 300;
  letter-spacing: 0.25em;
  color: var(--text-primary);
  display: block;
  margin-bottom: 6px;
}

.footer-brand-tagline {
  font-family: var(--font-sans);
  font-size: 8.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold-primary);
}

.footer-sitemap-grid {
  display: grid;
  grid-template-cols: 1fr 1fr;
  gap: 28px 20px;
  margin-bottom: 40px;
}

.footer-sitemap-col {
  display: flex;
  flex-direction: column;
}

.sitemap-col-title {
  font-family: var(--font-sans);
  font-size: 9.5px;
  font-weight: 600;
  color: var(--gold-primary);
  letter-spacing: 0.12em;
  margin-bottom: 12px;
  border-bottom: 0.5px solid rgba(197, 168, 128, 0.15);
  padding-bottom: 6px;
}

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

.sitemap-links li a {
  font-family: var(--font-serif-body);
  font-size: 11.5px;
  color: var(--text-secondary);
  text-decoration: none;
  font-style: italic;
  transition: var(--transition-smooth);
  cursor: pointer !important;
  display: inline-block;
  position: relative;
  z-index: 50;
  padding: 4px 0;
  pointer-events: auto !important;
}

.sitemap-links li a:hover {
  color: var(--gold-accent);
  padding-left: 4px;
}

.footer-bottom-info {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 24px;
}

.copyright-text {
  font-family: var(--font-sans);
  font-size: 7.5px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.credit-text {
  font-family: var(--font-sans);
  font-size: 7px;
  color: var(--gold-primary);
  letter-spacing: 0.15em;
  opacity: 0.6;
  text-transform: uppercase;
}

.credit-text a {
  color: var(--gold-primary) !important;
  text-decoration: underline;
  cursor: pointer !important;
  display: inline-block;
  position: relative;
  z-index: 50;
  pointer-events: auto !important;
  padding: 2px 4px;
}

/* --- GUEST TAB SYSTEM PANES AND BOTTOM BAR NAVIGATION --- */
.guest-tab-pane {
  display: none;
  width: 100%;
  padding-bottom: 72px !important; /* Prevents sticky footer overlap */
}

.guest-tab-pane.active {
  display: block;
  animation: tab-fade-in 0.4s ease-out forwards;
}

@keyframes tab-fade-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.bottom-tab-bar {
  height: 56px;
  background: linear-gradient(0deg, rgba(15, 15, 17, 0.25) 0%, rgba(10, 10, 11, 0.4) 100%) !important; /* Premium see-through opacity */
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(197, 168, 128, 0.18);
  box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 200;
  padding: 0 12px;
  width: 100%;
  flex-shrink: 0; /* Prevents tab bar from shrinking in flex container */
}

.tab-item {
  flex: 1;
  height: 100%;
  background: none;
  border: none;
  outline: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer !important;
  position: relative;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: auto !important;
  z-index: 250;
}

.tab-label {
  font-family: var(--font-sans-outfit);
  font-size: 8.5px;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: all 0.3s ease;
  pointer-events: none;
}

.tab-item.active .tab-label {
  color: var(--gold-accent);
  font-weight: 600;
  text-shadow: 0 0 8px rgba(229, 211, 179, 0.25);
}

.tab-item.active::after {
  content: "";
  position: absolute;
  bottom: 8px;
  width: 14px;
  height: 1.5px;
  background-color: var(--gold-accent);
  border-radius: 1px;
}

/* Ensure padding-bottom on the mobile container for guest view avoids overlap */
#guest-view {
  padding-bottom: 0 !important;
}

/* --- PREMIUM VISUAL HUB DIRECTORY --- */
.visual-hub-directory {
  background-color: var(--bg-warm);
  border: 1px solid rgba(197, 168, 128, 0.2);
  margin: 0 0 36px 0;
  padding: 24px 16px;
  position: relative;
}

.visual-hub-directory::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  right: 3px;
  bottom: 3px;
  border: 1px solid rgba(197, 168, 128, 0.08);
  pointer-events: none;
}

.directory-title-wrap {
  text-align: center;
  margin-bottom: 24px;
}

.directory-subtitle {
  font-family: var(--font-sans-outfit);
  font-size: 8px;
  font-weight: 600;
  color: var(--gold-primary);
  letter-spacing: 0.15em;
  display: block;
  margin-bottom: 4px;
}

.directory-title {
  font-family: var(--font-serif-display);
  font-size: 18px;
  font-weight: 300;
  color: var(--text-dark);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.directory-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background-color: rgba(197, 168, 128, 0.15); /* Serves as center grid divider lines */
  border: 1px solid rgba(197, 168, 128, 0.15);
}

.directory-item {
  background-color: var(--bg-warm); /* Matches background to mask separator container */
  padding: 20px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  position: relative;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.directory-item:hover {
  background-color: rgba(197, 168, 128, 0.04);
}

.directory-num {
  font-family: var(--font-serif-display);
  font-size: 16px;
  color: rgba(140, 115, 85, 0.45);
  margin-bottom: 8px;
  transition: color 0.3s ease;
}

.directory-item:hover .directory-num {
  color: var(--gold-primary);
}

.directory-content-wrap {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.directory-main {
  font-family: var(--font-sans-outfit);
  font-size: 10px;
  font-weight: 600;
  color: var(--text-dark);
  letter-spacing: 0.08em;
}

.directory-sub {
  font-family: var(--font-serif-body);
  font-size: 9px;
  color: var(--text-muted);
  font-style: italic;
}

/* --- PREMIUM CAMPAIGN MATERIALS FEED --- */
.campaign-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 16px;
}

.campaign-card {
  background: var(--lux-panel-bg);
  backdrop-filter: var(--lux-panel-blur);
  -webkit-backdrop-filter: var(--lux-panel-blur);
  border: var(--lux-border-width) solid var(--lux-border-color);
  border-radius: var(--lux-radius);
  padding: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--lux-shadow-md);
  transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;
}

.campaign-card:hover {
  border-color: var(--lux-border-active);
  box-shadow: var(--lux-shadow-hover);
  transform: translateY(-2px);
}

.campaign-badge {
  font-family: var(--font-sans-outfit);
  font-size: 8px;
  font-weight: 600;
  color: var(--gold-primary);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: 1px solid rgba(197, 168, 128, 0.25);
  padding: 3px 8px;
  border-radius: 12px;
  align-self: flex-start;
}

.campaign-card-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.campaign-card-title {
  font-family: var(--font-serif-display);
  font-size: 15px;
  font-weight: 400;
  color: var(--text-primary);
  letter-spacing: 0.05em;
}

.campaign-card-desc {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.campaign-action-btn {
  font-family: var(--font-sans-outfit);
  font-size: 9px;
  font-weight: 600;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-decoration: none;
  border: 1px solid var(--gold-primary);
  background: none;
  padding: 8px 16px;
  border-radius: 4px;
  text-align: center;
  margin-top: 6px;
  display: inline-block;
  align-self: flex-start;
  transition: all 0.3s ease;
}

.campaign-action-btn:hover {
  background: var(--gold-primary);
  color: #0b0b0c;
  box-shadow: 0 4px 12px rgba(197, 168, 128, 0.25);
}

.campaign-card-subtitle {
  font-family: var(--font-sans-outfit);
  font-size: 8.5px;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: -6px;
}

.campaign-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 11px;
  color: var(--gold-accent);
  line-height: 1.5;
  margin: 12px 0 6px 0;
  padding-left: 12px;
  border-left: 2px solid var(--gold-primary);
}

.campaign-specs-grid {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: var(--lux-separator);
}

.campaign-spec-row {
  display: flex;
  justify-content: space-between;
  font-size: 9.5px;
  font-family: var(--font-sans);
}

.campaign-spec-key {
  color: var(--text-secondary);
  font-weight: 300;
}

.campaign-spec-val {
  color: var(--text-primary);
  font-weight: 500;
}

/* --- CAMPAIGN REEL PLAYERS --- */
.reel-embed-container {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #000;
  border-radius: 8px;
  overflow: hidden;
  margin-top: 12px;
  border: 1px solid rgba(197, 168, 128, 0.15);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}

.reel-iframe {
  width: 280px;
  height: 480px;
  border: none;
  overflow: hidden;
  background-color: #000;
}

/* --- E-COMMERCE COLLECTION PLATFORM --- */
.store-cart-bar {
  display: none;
  background: rgba(197, 168, 128, 0.1);
  border: 1px solid rgba(197, 168, 128, 0.25);
  border-radius: 6px;
  padding: 12px 16px;
  margin-bottom: 24px;
  justify-content: space-between;
  align-items: center;
  animation: tab-fade-in 0.4s ease-out forwards;
}

.store-cart-bar.visible {
  display: flex;
}

.cart-bar-info {
  font-family: var(--font-sans-outfit);
  font-size: 10px;
  color: var(--text-primary);
  letter-spacing: 0.05em;
}

.cart-highlight {
  color: var(--gold-accent) !important;
  font-weight: 600;
}

.cart-bar-btn {
  font-family: var(--font-sans-outfit);
  font-size: 9px;
  font-weight: 600;
  color: #0b0b0c;
  background: var(--gold-primary);
  border: none;
  padding: 6px 14px;
  border-radius: 4px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
}

.cart-bar-btn:hover {
  background: var(--gold-accent);
  box-shadow: 0 4px 10px rgba(229, 211, 179, 0.3);
}

.store-product-grid {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.store-product-card {
  background: var(--lux-panel-bg);
  backdrop-filter: var(--lux-panel-blur);
  -webkit-backdrop-filter: var(--lux-panel-blur);
  border: var(--lux-border-width) solid var(--lux-border-color);
  border-radius: var(--lux-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--lux-shadow-md);
  transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;
}

.store-product-card:hover {
  border-color: var(--lux-border-active);
  box-shadow: var(--lux-shadow-hover);
  transform: translateY(-2px);
}

.product-img-fallback {
  height: 120px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  border-bottom: 1px solid rgba(197, 168, 128, 0.1);
}

.product-img-label {
  font-family: var(--font-serif-display);
  font-size: 16px;
  font-style: italic;
  color: rgba(197, 168, 128, 0.4);
  letter-spacing: 0.1em;
}

.product-info {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.product-title {
  font-family: var(--font-serif-display);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: 0.03em;
}

.product-desc {
  font-family: var(--font-sans);
  font-size: 10.5px;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.4;
}

.product-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  border-top: 1px solid rgba(197, 168, 128, 0.08);
  padding-top: 12px;
}

.product-price {
  font-family: var(--font-sans-outfit);
  font-size: 12px;
  font-weight: 600;
  color: var(--gold-accent);
}

.btn-add-to-cart {
  font-family: var(--font-sans-outfit);
  font-size: 8.5px;
  font-weight: 600;
  color: var(--text-primary);
  background: none;
  border: 1px solid var(--gold-primary);
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
}

.btn-add-to-cart:hover {
  background: var(--gold-primary);
  color: #0b0b0c;
  box-shadow: 0 4px 10px rgba(197, 168, 128, 0.25);
}

/* --- CHECKOUT DRAWER LIST --- */
.checkout-items-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 180px;
  overflow-y: auto;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding-bottom: 12px;
}

.checkout-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
}

.checkout-item-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
}

.checkout-item-name {
  font-family: var(--font-serif-display);
  font-size: 11.5px;
  color: var(--text-primary);
}

.checkout-item-sub {
  font-family: var(--font-sans-outfit);
  font-size: 8.5px;
  color: var(--text-secondary);
}

.checkout-item-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.checkout-size-select {
  font-family: var(--font-sans);
  font-size: 8px;
  background: #0b0b0c;
  color: var(--text-primary);
  border: 1px solid rgba(197, 168, 128, 0.3);
  padding: 3px 6px;
  border-radius: 3px;
  outline: none;
}

.checkout-remove-btn {
  font-family: var(--font-sans-outfit);
  font-size: 8px;
  background: none;
  border: none;
  color: #f87171;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.checkout-remove-btn:hover {
  color: #f87171;
  text-decoration: underline;
}

/* --- UNIFIED LUXURY COMPONENTS --- */
.lux-btn-primary {
  background: var(--lux-gold-primary) !important;
  border: 1px solid var(--lux-gold-primary) !important;
  color: #0b0b0c !important;
  font-family: var(--lux-btn-font) !important;
  font-size: var(--lux-btn-size) !important;
  text-transform: uppercase !important;
  letter-spacing: var(--lux-btn-spacing) !important;
  border-radius: var(--lux-btn-radius) !important;
  padding: var(--lux-btn-padding) !important;
  cursor: pointer !important;
  font-weight: 600 !important;
  transition: var(--lux-btn-transition) !important;
}

.lux-btn-primary:hover {
  background: var(--lux-gold-accent) !important;
  border-color: var(--lux-gold-accent) !important;
  box-shadow: 0 4px 15px rgba(197, 168, 128, 0.3) !important;
}

.lux-btn-outline {
  background: none !important;
  border: 1px solid var(--lux-gold-primary) !important;
  color: var(--lux-gold-primary) !important;
  font-family: var(--lux-btn-font) !important;
  font-size: var(--lux-btn-size) !important;
  text-transform: uppercase !important;
  letter-spacing: var(--lux-btn-spacing) !important;
  border-radius: var(--lux-btn-radius) !important;
  padding: var(--lux-btn-padding) !important;
  cursor: pointer !important;
  font-weight: 600 !important;
  transition: var(--lux-btn-transition) !important;
}

.lux-btn-outline:hover {
  background: rgba(197, 168, 128, 0.08) !important;
  border-color: var(--lux-gold-accent) !important;
  color: var(--lux-gold-accent) !important;
  box-shadow: 0 4px 15px rgba(197, 168, 128, 0.15) !important;
}

.lux-list-item {
  list-style: none !important;
  position: relative !important;
  padding-left: 18px !important;
  font-family: var(--lux-font-sans-body) !important;
  font-size: 12px !important;
  color: #e1e1e6 !important; /* High contrast readable light grey (> 12:1) */
  line-height: 1.6 !important;
  margin-bottom: 8px !important;
}

.section-desc, .form-desc {
  color: #d1d1d6 !important; /* High contrast legible text (> 11:1) */
  font-size: 13px !important;
  line-height: 1.65 !important;
  margin-bottom: 16px !important;
}

.lux-list-item::before {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 6px !important;
  height: 1px !important;
  background-color: var(--lux-gold-primary) !important;
}

/* --- LIVE CATALOG IMAGE HOVER SWAP --- */
.product-image-wrap {
  position: relative;
  height: 510px; /* Increased vertical height by 15% to display full model and product details */
  width: 100%;
  overflow: hidden;
  border-radius: var(--lux-radius) var(--lux-radius) 0 0;
  background-color: #0b0b0c;
  border-bottom: 1px solid rgba(197, 168, 128, 0.08);
}

.product-img-main,
.product-img-hover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.product-img-hover {
  opacity: 0;
}

.store-product-card:hover .product-img-hover {
  opacity: 1;
}

/* Size selectors in catalog */
.product-size-selector-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 12px 0;
}

.size-selector-label {
  font-family: var(--lux-font-sans-labels);
  font-size: 8px;
  color: var(--lux-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.size-options-grid {
  display: flex;
  gap: 8px;
}

.size-option-btn {
  font-family: var(--lux-font-sans-labels);
  font-size: 9px;
  color: var(--lux-text-secondary);
  background: none;
  border: 1px solid rgba(197, 168, 128, 0.15);
  border-radius: 3px;
  padding: 4px 10px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.size-option-btn:hover {
  border-color: var(--lux-gold-primary);
  color: var(--lux-gold-primary);
}

.size-option-btn.selected {
  background: var(--lux-gold-primary) !important;
  border-color: var(--lux-gold-primary) !important;
  color: #0b0b0c !important;
  font-weight: 600 !important;
}

/* --- MINIMAL SUBTLE FORMS (DỊCH VỤ) --- */
.minimal-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}

.minimal-form-label {
  font-family: var(--lux-font-sans-labels);
  font-size: 9px;
  color: var(--lux-gold-primary);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.minimal-form-input {
  background: none !important;
  border: none !important;
  border-bottom: 1px solid rgba(197, 168, 128, 0.2) !important;
  color: var(--lux-text-primary) !important;
  font-family: var(--lux-font-sans-body) !important;
  font-size: 12.5px !important;
  padding: 8px 0 !important;
  outline: none !important;
  border-radius: 0 !important;
  width: 100% !important;
  transition: border-bottom-color 0.4s ease !important;
}

.minimal-form-input:focus {
  border-bottom-color: var(--lux-gold-primary) !important;
}

.minimal-form-input option {
  background: #0b0b0c !important;
  color: var(--lux-text-primary) !important;
}

/* Poetic layout stanzas & spacing */
.poetic-section {
  padding: 56px 24px;
  border-bottom: 1px solid rgba(197, 168, 128, 0.08);
  background-color: #0b0b0c;
  transition: all 0.4s ease;
}

.poetic-section:last-child {
  border-bottom: none;
}

.guest-tab-pane .chapter-meta-tag,
#owner-view .chapter-meta-tag {
  color: var(--lux-gold-primary) !important;
  font-weight: 600 !important;
  letter-spacing: 0.2em !important;
}

.guest-tab-pane .chapter-main-title,
#owner-view .chapter-main-title {
  color: #f5eedb !important; /* High contrast warm ivory gold, > 14:1 contrast ratio against #0b0b0c */
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9) !important;
}

.guest-tab-pane .poem-stanza,
#owner-view .poem-stanza {
  color: #f0f0f2 !important; /* Crisp high-contrast readable off-white, > 14.5:1 contrast ratio */
  font-family: var(--font-serif-body) !important;
  font-size: 13px !important;
  line-height: 1.9 !important;
  margin-bottom: 32px !important;
  letter-spacing: 0.01em !important;
  padding: 0 16px !important;
}

/* Also ensure dark magazine chapters have crisp high contrast */
.story-section .poem-stanza {
  color: #f0f0f2;
}
.story-section .chapter-main-title {
  color: #f5eedb;
}
.story-section .chapter-meta-tag {
  color: var(--lux-gold-primary);
}

.poetic-divider {
  width: 36px;
  height: 1px;
  background: var(--lux-gold-primary);
  margin: 32px auto;
  opacity: 0.4;
}






/* ==========================================================================
   CLEAN SLATE LUXURY OWNER SUITE & LOGIN MODAL STYLES
   ========================================================================== */

/* 1. Guest Minimal Provenance Header Tag */
.guest-provenance-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(197, 168, 128, 0.05);
  border: 1px solid rgba(197, 168, 128, 0.18);
  border-radius: 20px;
  margin: 8px 12px 18px 12px;
  font-family: var(--lux-font-sans-labels);
  font-size: 8.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lux-gold-primary);
  backdrop-filter: blur(8px);
}
.provenance-indicator {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: var(--lux-gold-primary);
  box-shadow: 0 0 6px var(--lux-gold-primary);
}

/* 2. Continuous Luxury Owner Dossier Flow */
.owner-tab-pane {
  display: block;
  margin-bottom: 52px;
}
.owner-tab-pane:last-of-type {
  margin-bottom: 24px;
}

/* 4. Fit Specs Collapsible */
.fit-specs-toggle-btn {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  color: var(--lux-gold-primary);
  font-family: var(--lux-font-sans-labels);
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  padding: 6px 0;
}
.fit-specs-toggle-btn:hover {
  color: var(--lux-gold-accent);
}

/* 5. Look of the Day Switcher & Card */
.lotd-switcher {
  display: flex;
  gap: 8px;
  margin: 14px 0 16px 0;
}
.lotd-switch-btn {
  flex: 1;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--lux-border-color);
  color: var(--lux-text-secondary);
  font-family: var(--lux-font-sans-labels);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 8px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}
.lotd-switch-btn.active {
  background: rgba(197, 168, 128, 0.15);
  border-color: var(--lux-gold-primary);
  color: var(--lux-gold-primary);
  font-weight: 600;
}

.lotd-card {
  background: var(--lux-panel-bg);
  border: 1px solid var(--lux-border-color);
  border-radius: var(--lux-radius);
  padding: 16px;
  position: relative;
  overflow: hidden;
}
.lotd-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--lux-gold-primary);
}
.lotd-tag {
  font-family: var(--lux-font-sans-labels);
  font-size: 8px;
  letter-spacing: 0.15em;
  color: var(--lux-gold-primary);
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 6px;
}
.lotd-title {
  font-family: var(--font-serif-display);
  font-size: 16px;
  font-weight: normal;
  color: var(--text-primary);
  margin-bottom: 10px;
}
.lotd-items-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 14px;
  border-top: 1px dashed var(--lux-border-color);
  padding-top: 12px;
}
.lotd-item-badge {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 6px 10px;
  font-size: 9px;
  color: var(--lux-text-secondary);
  border-radius: 3px;
  font-family: var(--lux-font-sans-labels);
}

/* 6. Look Submission Dropzone */
.photo-upload-dropzone {
  border: 1px dashed var(--lux-border-color);
  background: rgba(255, 255, 255, 0.02);
  border-radius: 4px;
  padding: 22px 14px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}
.photo-upload-dropzone:hover {
  border-color: var(--lux-gold-primary);
  background: rgba(197, 168, 128, 0.04);
}
.dropzone-text {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--text-primary);
}
.dropzone-sub {
  font-size: 9.5px;
  color: var(--lux-text-secondary);
  margin-top: 4px;
}
.preview-badge {
  font-family: var(--font-sans);
  font-size: 11px;
  color: var(--lux-gold-primary);
  font-weight: 600;
}
.privacy-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
}
.privacy-label {
  font-family: var(--font-serif-body);
  font-size: 12px;
  color: var(--lux-text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.privacy-label input[type="radio"] {
  accent-color: var(--lux-gold-primary);
}

/* 7. Gamification: Heritage Passport Stamp Grid */
.heritage-stamps-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 14px;
}
.stamp-card {
  background: #0d0d10;
  border: 1px solid var(--lux-border-color);
  border-radius: 4px;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  transition: all 0.3s ease;
}
.stamp-card.unlocked {
  border-color: var(--lux-gold-primary);
  background: linear-gradient(145deg, rgba(197, 168, 128, 0.08), rgba(0, 0, 0, 0.4));
}
.stamp-card.active-progress {
  border-color: rgba(197, 168, 128, 0.4);
}
.stamp-seal {
  font-family: monospace;
  font-size: 8.5px;
  letter-spacing: 0.15em;
  color: var(--lux-gold-accent);
  border: 1px solid var(--lux-gold-primary);
  padding: 2px 6px;
  border-radius: 2px;
  margin-bottom: 8px;
  font-weight: 600;
  background: rgba(197, 168, 128, 0.06);
}
.stamp-name {
  font-family: var(--font-serif-display);
  font-size: 13.5px;
  color: #fff;
  margin-bottom: 4px;
}
.stamp-desc {
  font-size: 9.5px;
  color: #c8c8cc; /* High contrast readable light grey against #0d0d10 (> 10:1) */
  line-height: 1.45;
  margin-bottom: 10px;
  flex-grow: 1;
}
.stamp-status-tag {
  font-size: 8px;
  font-family: var(--lux-font-sans-labels);
  letter-spacing: 0.12em;
  padding: 4px 9px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  color: #dfdfe4; /* High contrast legible tag (> 11:1) */
  text-transform: uppercase;
  font-weight: 500;
}
.stamp-card.unlocked .stamp-status-tag {
  background: rgba(197, 168, 128, 0.25);
  color: var(--lux-gold-accent); /* Crisp bright gold accent */
  font-weight: 600;
}

/* 8. Bottom Bar Item Owner Subtle Distinction */
.tab-item-owner .tab-label {
  color: rgba(197, 168, 128, 0.75);
}
.tab-item-owner.active .tab-label {
  color: var(--lux-gold-primary);
  font-weight: 600;
}

/* ==========================================================================
   OWNER DOSSIER LUXURY IMAGE GALLERIES & BESPOKE MAKING-OF CHRONICLE
   ========================================================================== */
.owner-gallery-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 14px;
}

.owner-gallery-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-top: 14px;
}

.owner-photo-card {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(197, 168, 128, 0.22);
  background: #0f0f11;
  display: flex;
  flex-direction: column;
}

.owner-photo-card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.owner-photo-card.photo-tall img {
  height: 260px;
}

.owner-photo-card.photo-compact img {
  height: 130px;
}

.owner-photo-card:hover img {
  transform: scale(1.03);
}

.owner-photo-caption {
  font-family: var(--font-serif);
  font-size: 11px;
  color: var(--lux-gold-accent);
  padding: 8px 10px;
  background: rgba(14, 14, 16, 0.94);
  border-top: 1px solid rgba(197, 168, 128, 0.12);
  line-height: 1.35;
  text-align: center;
}

.owner-photo-subtag {
  display: block;
  font-family: var(--font-sans);
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lux-gold-primary);
  margin-bottom: 2px;
}

/* Making-Of Chronicle Cards */
.making-of-timeline {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 18px;
}

.making-of-card {
  border: 1px solid var(--lux-border-color);
  background: rgba(22, 22, 24, 0.45);
  backdrop-filter: var(--lux-panel-blur);
  border-radius: var(--lux-radius);
  padding: 16px;
}

.making-of-step-badge {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 8.5px;
  letter-spacing: 0.15em;
  color: var(--lux-gold-primary);
  border: 1px solid rgba(197, 168, 128, 0.35);
  padding: 3px 8px;
  border-radius: 2px;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.making-of-title {
  font-family: var(--font-serif-display);
  font-size: 16px;
  color: var(--lux-gold-accent);
  margin: 0 0 6px 0;
}

.making-of-narrative {
  font-family: var(--font-serif-body);
  font-size: 12px;
  line-height: 1.6;
  color: var(--lux-text-secondary);
  margin: 0 0 14px 0;
}

/* Vault Preview Cards */
.vault-preview-card {
  border: 1px solid rgba(197, 168, 128, 0.25);
  background: #0f0f11;
  border-radius: 4px;
  overflow: hidden;
}

.vault-preview-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.vault-info-box {
  padding: 10px 12px;
  background: rgba(18, 18, 20, 0.95);
  border-top: 1px solid rgba(197, 168, 128, 0.15);
}

.vault-badge {
  font-family: var(--font-sans);
  font-size: 8px;
  letter-spacing: 0.15em;
  color: var(--lux-gold-primary);
  text-transform: uppercase;
}

.vault-name {
  font-family: var(--font-serif-display);
  font-size: 14px;
  color: #fff;
  margin-top: 2px;
}

/* Single Ao Dai Portrait in Chapter I */
.owner-photo-single {
  width: 100%;
  margin-bottom: 24px;
}
.owner-photo-single .owner-photo-card {
  border: 1px solid rgba(197, 168, 128, 0.35);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
}
.owner-photo-single img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  display: block;
}

/* Chapter II: Clean Editorial Timeline */
.owner-timeline {
  position: relative;
  margin: 20px 0 24px 14px;
  padding-left: 22px;
  border-left: 1px solid rgba(197, 168, 128, 0.25);
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.owner-timeline-item {
  position: relative;
}
.owner-timeline-node {
  position: absolute;
  left: -27px;
  top: 3px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--lux-gold-primary);
  border: 2px solid #0b0b0c;
  box-shadow: 0 0 8px rgba(197, 168, 128, 0.4);
}
.owner-timeline-date {
  font-family: var(--font-sans);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--lux-gold-primary);
  text-transform: uppercase;
  margin-bottom: 4px;
}
.owner-timeline-event {
  font-family: var(--font-serif-display);
  font-size: 16.5px;
  color: #fff;
  line-height: 1.35;
  margin-bottom: 12px;
}
.owner-timeline-photo {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid rgba(197, 168, 128, 0.22);
  display: block;
  margin-bottom: 10px;
}
.owner-timeline-desc {
  font-family: var(--font-serif-body);
  font-size: 13px;
  line-height: 1.75;
  color: #f0f0f2; /* High contrast crisp white-grey (> 14.5:1) */
  margin: 0;
}

/* Chapter II: Photo Uploader inside New Memory Form */
.journal-photo-uploader {
  margin-bottom: 16px;
}
.journal-upload-box {
  border: 1px dashed rgba(197, 168, 128, 0.4);
  background: rgba(197, 168, 128, 0.04);
  padding: 16px;
  text-align: center;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  color: var(--lux-gold-accent);
  transition: all 0.3s ease;
}
.journal-upload-box:hover {
  background: rgba(197, 168, 128, 0.08);
  border-color: var(--lux-gold-primary);
}
.journal-preview-card {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(197, 168, 128, 0.3);
  text-align: center;
}
.journal-preview-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

/* Chapter III: Clean Look of the Day Feature (1 Big Image) */
.lotd-clean-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.lotd-hero-tag {
  font-family: var(--font-sans);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  color: var(--lux-gold-primary);
  text-transform: uppercase;
  margin-bottom: 14px;
  font-weight: 600;
}
.lotd-big-image-wrap {
  width: 100%;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(197, 168, 128, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  margin-bottom: 18px;
}
.lotd-big-img {
  width: 100%;
  height: 440px;
  object-fit: cover;
  display: block;
}
.lotd-hero-title {
  font-family: var(--font-serif-display);
  font-size: 21px;
  color: #f5eedb; /* High contrast warm gold ivory */
  margin: 0 0 10px 0;
  line-height: 1.35;
}
.lotd-hero-desc {
  font-family: var(--font-serif-body);
  font-size: 13.5px;
  line-height: 1.8;
  color: #f0f0f2; /* High contrast crisp white-grey (> 14.5:1) */
  margin: 0;
  padding: 0 6px;
}

/* ==========================================================================
   DAY MODE / LIGHT LUXURY THEME (High Contrast Silk Parchment & Antique Bronze)
   Strictly complies with WCAG AAA, approved fonts, and zero emojis.
   ========================================================================== */

body.day-mode {
  --bg-color: #f7f5f0;
  --panel-bg: rgba(255, 255, 255, 0.94);
  --gold-primary: #7a5828;
  --gold-accent: #4a3416;
  --gold-dark: #3a2810;
  --text-primary: #18181a;
  --text-secondary: #4a4a50;
  --border-color: rgba(122, 88, 40, 0.25);
  --border-active: rgba(74, 52, 22, 0.6);

  /* Magazine Editorial Variables */
  --bg-warm: #f2eee6;
  --text-dark: #121214;
  --text-muted: #545458;

  /* Luxury Unified Tokens */
  --lux-bg: #f7f5f0;
  --lux-panel-bg: rgba(255, 255, 255, 0.88);
  --lux-gold-primary: #7a5828;
  --lux-gold-accent: #4a3416;
  --lux-text-primary: #18181a;
  --lux-text-secondary: #4a4a50;
  --lux-border-color: rgba(122, 88, 40, 0.2);
  --lux-border-active: rgba(74, 52, 22, 0.6);
  --lux-separator: 1px solid rgba(122, 88, 40, 0.14);
  --lux-shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
  --lux-shadow-hover: 0 16px 40px rgba(122, 88, 40, 0.12);

  background-color: #f7f5f0;
  color: #18181a;
}

body.day-mode::before {
  background: radial-gradient(circle at 50% 20%, rgba(122, 88, 40, 0.06) 0%, transparent 70%);
}

/* Mobile Container */
body.day-mode .mobile-container {
  background-color: #f7f5f0;
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.18), 0 0 1px 1px rgba(0, 0, 0, 0.05);
}

/* App Header & Brand Logo in Day Mode */
body.day-mode .app-header {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(247, 245, 240, 0.95) 100%) !important;
  border-bottom: 1px solid rgba(122, 88, 40, 0.2);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06), inset 0 -1px 0 rgba(122, 88, 40, 0.08);
}

body.day-mode .brand-logo-header {
  /* Rich deep bronze hue */
  filter: brightness(0) saturate(100%) invert(35%) sepia(30%) saturate(1200%) hue-rotate(5deg);
}

body.day-mode .brand-logo-nfc {
  filter: brightness(0) saturate(100%) invert(25%) sepia(40%) saturate(1100%) hue-rotate(5deg);
}

/* Verified Status Dot & Text */
body.day-mode .header-verify-status {
  background: rgba(40, 167, 69, 0.12);
  border-color: rgba(40, 167, 69, 0.35);
  color: #1b662d;
}

body.day-mode .pulse-dot {
  background: #1b662d;
  box-shadow: 0 0 8px rgba(40, 167, 69, 0.6);
}

body.day-mode .header-lang-bar {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.1);
  color: #333336;
}

body.day-mode .header-lang-bar:hover {
  background: rgba(122, 88, 40, 0.1);
  border-color: rgba(122, 88, 40, 0.35);
  color: #7a5828;
}

/* Bottom Navigation Bar */
body.day-mode .bottom-tab-bar {
  background: linear-gradient(0deg, rgba(255, 255, 255, 0.95) 0%, rgba(247, 245, 240, 0.9) 100%) !important;
  border-top: 1px solid rgba(122, 88, 40, 0.2);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

body.day-mode .tab-label {
  color: #55555c;
}

body.day-mode .tab-item.active .tab-label {
  color: #7a5828;
  font-weight: 700;
  text-shadow: none;
}

body.day-mode .tab-item.active::after {
  background-color: #7a5828;
  box-shadow: 0 0 6px rgba(122, 88, 40, 0.4);
}

/* Cards & Panels in Day Mode */
body.day-mode .section-card,
body.day-mode .cert-card,
body.day-mode .owner-spec-card,
body.day-mode .owner-lotd-card,
body.day-mode .owner-timeline-form-card,
body.day-mode .owner-timeline-entry-card,
body.day-mode .heritage-card,
body.day-mode .privilege-card,
body.day-mode .couture-service-card,
body.day-mode .spec-item,
body.day-mode .editorial-chapter-card {
  background: rgba(255, 255, 255, 0.92) !important;
  border-color: rgba(122, 88, 40, 0.22) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06) !important;
}

/* Typography Overrides for High Contrast in Day Mode */
body.day-mode .provenance-tag,
body.day-mode .guest-provenance-tag {
  background: rgba(122, 88, 40, 0.08) !important;
  border-color: rgba(122, 88, 40, 0.3) !important;
  color: #4a3416 !important;
}

body.day-mode .provenance-indicator {
  background-color: #7a5828 !important;
}

body.day-mode .poetic-title,
body.day-mode .owner-ch-title,
body.day-mode .section-title,
body.day-mode .magazine-title,
body.day-mode .lotd-hero-title,
body.day-mode .cert-garment-name {
  color: #18181a !important;
}

body.day-mode .poetic-subtitle,
body.day-mode .owner-ch-desc,
body.day-mode .section-desc-secondary,
body.day-mode .timeline-entry-meta,
body.day-mode .timeline-entry-date,
body.day-mode .spec-label,
body.day-mode .form-label {
  color: #4a4a50 !important;
}

body.day-mode .section-desc,
body.day-mode .poetic-body,
body.day-mode .timeline-entry-note,
body.day-mode .lotd-hero-desc,
body.day-mode .spec-value {
  color: #18181a !important;
}

body.day-mode .spec-tag,
body.day-mode .owner-ch-badge,
body.day-mode .lotd-hero-tag {
  color: #7a5828 !important;
}

/* Timeline Components */
body.day-mode .owner-timeline-stream {
  border-left-color: rgba(122, 88, 40, 0.35) !important;
}

body.day-mode .timeline-node-pin {
  background: #7a5828 !important;
  box-shadow: 0 0 0 3px rgba(122, 88, 40, 0.2) !important;
}

body.day-mode .timeline-entry-occasion {
  background: rgba(122, 88, 40, 0.1) !important;
  color: #4a3416 !important;
  border-color: rgba(122, 88, 40, 0.3) !important;
}

/* Form Inputs in Day Mode */
body.day-mode .timeline-input,
body.day-mode .timeline-textarea {
  background: rgba(255, 255, 255, 0.95) !important;
  border-color: rgba(122, 88, 40, 0.3) !important;
  color: #18181a !important;
}

body.day-mode .timeline-input:focus,
body.day-mode .timeline-textarea:focus {
  border-color: #7a5828 !important;
  background: #ffffff !important;
  box-shadow: 0 0 0 2px rgba(122, 88, 40, 0.15) !important;
}

/* Buttons in Day Mode */
body.day-mode .btn-save-memory {
  background: linear-gradient(135deg, #7a5828 0%, #4a3416 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 15px rgba(122, 88, 40, 0.3) !important;
}

body.day-mode .btn-save-memory:hover {
  background: linear-gradient(135deg, #8c6731 0%, #5a3f1d 100%) !important;
  box-shadow: 0 6px 20px rgba(122, 88, 40, 0.4) !important;
}

/* Image Wrappers and Borders */
body.day-mode .owner-grand-portrait-wrap,
body.day-mode .lotd-big-image-wrap,
body.day-mode .timeline-entry-img-wrap {
  border-color: rgba(122, 88, 40, 0.3) !important;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1) !important;
}

/* Modals & Dialogs */
body.day-mode .lang-modal-box,
body.day-mode .owner-login-box,
body.day-mode .cert-modal-box {
  background: rgba(255, 255, 255, 0.96) !important;
  border-color: rgba(122, 88, 40, 0.3) !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2) !important;
}

body.day-mode .lang-grid-item {
  background: rgba(0, 0, 0, 0.03) !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
  color: #18181a !important;
}

body.day-mode .lang-grid-item:hover,
body.day-mode .lang-grid-item.active {
  background: rgba(122, 88, 40, 0.12) !important;
  border-color: #7a5828 !important;
  color: #7a5828 !important;
}

/* Toast Notification in Day Mode */
body.day-mode #toast {
  background: rgba(24, 24, 26, 0.92);
  color: #f5f5f7;
  border: 1px solid rgba(122, 88, 40, 0.4);
}

/* Day Mode Harmonization for Poetic Headers and Photo Cards */
body.day-mode .poetic-section {
  background-color: transparent !important;
  border-bottom-color: rgba(122, 88, 40, 0.12) !important;
}

body.day-mode .guest-tab-pane .chapter-meta-tag,
body.day-mode #owner-view .chapter-meta-tag,
body.day-mode .story-section .chapter-meta-tag {
  color: #7a5828 !important;
}

body.day-mode .guest-tab-pane .chapter-main-title,
body.day-mode #owner-view .chapter-main-title,
body.day-mode .story-section .chapter-main-title {
  color: #18181a !important;
  text-shadow: none !important;
}

body.day-mode .guest-tab-pane .poem-stanza,
body.day-mode #owner-view .poem-stanza,
body.day-mode .story-section .poem-stanza {
  color: #18181a !important;
}

body.day-mode .owner-photo-card {
  background: #ffffff !important;
  border-color: rgba(122, 88, 40, 0.25) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08) !important;
}

body.day-mode .owner-photo-caption {
  background: rgba(255, 255, 255, 0.95) !important;
  color: #18181a !important;
  border-top-color: rgba(122, 88, 40, 0.15) !important;
}

body.day-mode .owner-photo-subtag {
  color: #7a5828 !important;
}

body.day-mode .story-section {
  background-color: transparent !important;
  color: #18181a !important;
}

body.day-mode .stamp-card {
  background: #ffffff !important;
  border-color: rgba(122, 88, 40, 0.25) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05) !important;
}

body.day-mode .stamp-card.unlocked {
  border-color: #7a5828 !important;
  background: linear-gradient(145deg, rgba(122, 88, 40, 0.08), #ffffff) !important;
}

body.day-mode .stamp-card.active-progress {
  border-color: rgba(122, 88, 40, 0.4) !important;
  background: #ffffff !important;
}

body.day-mode .stamp-seal {
  color: #7a5828 !important;
  border-color: rgba(122, 88, 40, 0.4) !important;
  background: rgba(122, 88, 40, 0.06) !important;
}

body.day-mode .stamp-name {
  color: #18181a !important;
}

body.day-mode .stamp-desc {
  color: #4a4a50 !important;
}

body.day-mode .stamp-status-tag {
  background: rgba(0, 0, 0, 0.06) !important;
  color: #4a4a50 !important;
}

body.day-mode .stamp-card.unlocked .stamp-status-tag {
  background: rgba(122, 88, 40, 0.18) !important;
  color: #4a3416 !important;
}

body.day-mode .privilege-box {
  background: rgba(122, 88, 40, 0.06) !important;
  border-color: rgba(122, 88, 40, 0.25) !important;
}

body.day-mode .privilege-box h4 {
  color: #18181a !important;
}

body.day-mode .privilege-box p {
  color: #4a4a50 !important;
}

/* ==========================================================================
   DAY MODE HIGH CONTRAST & READABILITY OVERRIDES
   Ensures WCAG AAA crisp readability on light backgrounds for all text elements.
   ========================================================================== */

/* 1. Digital Magazine Story Chapters (#pane-dress) */
body.day-mode .bg-chapter-cover,
body.day-mode .bg-chapter-1,
body.day-mode .bg-chapter-2,
body.day-mode .bg-chapter-3,
body.day-mode .bg-chapter-4,
body.day-mode .bg-chapter-ket,
body.day-mode .story-section {
  background-color: #f7f5f0 !important;
  color: #18181a !important;
  border-bottom: 1px solid rgba(122, 88, 40, 0.12) !important;
}

body.day-mode .bg-chapter-cover .chapter-main-title,
body.day-mode .bg-chapter-1 .chapter-main-title,
body.day-mode .bg-chapter-2 .chapter-main-title,
body.day-mode .bg-chapter-3 .chapter-main-title,
body.day-mode .bg-chapter-4 .chapter-main-title,
body.day-mode .bg-chapter-ket .chapter-main-title,
body.day-mode .story-section .chapter-main-title {
  color: #18181a !important;
  text-shadow: none !important;
}

body.day-mode .bg-chapter-cover .chapter-meta-tag,
body.day-mode .bg-chapter-1 .chapter-meta-tag,
body.day-mode .bg-chapter-2 .chapter-meta-tag,
body.day-mode .bg-chapter-3 .chapter-meta-tag,
body.day-mode .bg-chapter-4 .chapter-meta-tag,
body.day-mode .bg-chapter-ket .chapter-meta-tag,
body.day-mode .story-section .chapter-meta-tag {
  color: #7a5828 !important;
}

body.day-mode .bg-chapter-cover .poem-stanza,
body.day-mode .bg-chapter-1 .poem-stanza,
body.day-mode .bg-chapter-2 .poem-stanza,
body.day-mode .bg-chapter-3 .poem-stanza,
body.day-mode .bg-chapter-4 .poem-stanza,
body.day-mode .bg-chapter-ket .poem-stanza,
body.day-mode .story-section .poem-stanza,
body.day-mode .story-section .poem-stanza p,
body.day-mode .story-section p,
body.day-mode .story-section blockquote,
body.day-mode .story-section span {
  color: #18181a !important;
}

body.day-mode .bg-chapter-cover .stacked-card-text,
body.day-mode .bg-chapter-1 .stacked-card-text,
body.day-mode .bg-chapter-2 .stacked-card-text,
body.day-mode .bg-chapter-3 .stacked-card-text,
body.day-mode .bg-chapter-4 .stacked-card-text,
body.day-mode .bg-chapter-ket .stacked-card-text {
  color: #18181a !important;
}

body.day-mode .story-section .drop-cap {
  color: #7a5828 !important;
}

body.day-mode .story-section .inlay-photo-card {
  background: #ffffff !important;
  border-color: rgba(122, 88, 40, 0.22) !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06) !important;
}

body.day-mode .story-section .inlay-caption,
body.day-mode .story-section .inlay-photo-card p {
  color: #4a4a50 !important;
}

/* Swatch cards in Day Mode */
body.day-mode .bg-chapter-1 .swatch-card,
body.day-mode .bg-chapter-2 .swatch-card,
body.day-mode .swatch-card {
  background: #ffffff !important;
  border-color: rgba(122, 88, 40, 0.2) !important;
}

body.day-mode .bg-chapter-1 .swatch-title,
body.day-mode .bg-chapter-2 .swatch-title,
body.day-mode .swatch-title {
  color: #18181a !important;
}

body.day-mode .bg-chapter-1 .swatch-desc,
body.day-mode .bg-chapter-2 .swatch-desc,
body.day-mode .swatch-desc {
  color: #4a4a50 !important;
}

/* Vertical scroll dots in Day Mode */
body.day-mode .nav-dot {
  background-color: rgba(122, 88, 40, 0.35);
}

body.day-mode .nav-dot.active {
  background-color: #7a5828;
}

body.day-mode .nav-dot.active::after {
  border-color: #7a5828;
}

/* 2. Owner Timeline & Forms (#owner-view) */
body.day-mode .owner-timeline-event {
  color: #18181a !important;
}

body.day-mode .owner-timeline-date {
  color: #7a5828 !important;
}

body.day-mode .owner-timeline-desc {
  color: #2b2b30 !important;
}

body.day-mode .owner-timeline-photo {
  border-color: rgba(122, 88, 40, 0.25) !important;
}

body.day-mode .form-desc,
body.day-mode .section-desc {
  color: #38383e !important;
}

body.day-mode .form-title {
  color: #18181a !important;
}

body.day-mode .form-label {
  color: #4a4a50 !important;
}

body.day-mode .form-input,
body.day-mode select.form-input,
body.day-mode textarea.form-input {
  background: #ffffff !important;
  border-color: rgba(122, 88, 40, 0.3) !important;
  color: #18181a !important;
}

body.day-mode .form-input option {
  background: #ffffff !important;
  color: #18181a !important;
}

body.day-mode .journal-upload-box {
  border-color: rgba(122, 88, 40, 0.4) !important;
  background: rgba(122, 88, 40, 0.05) !important;
  color: #4a3416 !important;
}

body.day-mode .submit-btn.lux-btn-primary {
  background: linear-gradient(135deg, #7a5828 0%, #4a3416 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 15px rgba(122, 88, 40, 0.25) !important;
}

body.day-mode .submit-btn.lux-btn-outline {
  background: transparent !important;
  border-color: rgba(122, 88, 40, 0.4) !important;
  color: #5c4324 !important;
}

/* 3. Care & Maintenance Rules (#sec-owner-care) */
body.day-mode .rules-box {
  background: rgba(122, 88, 40, 0.05) !important;
  border-color: rgba(122, 88, 40, 0.2) !important;
}

body.day-mode .rules-title {
  color: #7a5828 !important;
}

body.day-mode .lux-list-item {
  color: #2b2b30 !important;
}

body.day-mode .lux-list-item::before {
  background-color: #7a5828 !important;
}

/* 4. Heritage Stamps & Privilege Box (#sec-owner-gamification) */
body.day-mode .stamp-seal {
  color: #4a3416 !important;
  border-color: rgba(122, 88, 40, 0.5) !important;
  background: rgba(122, 88, 40, 0.1) !important;
}

body.day-mode .stamp-status-tag {
  background: rgba(0, 0, 0, 0.08) !important;
  color: #2b2b30 !important;
}

body.day-mode .stamp-card.unlocked .stamp-status-tag {
  background: rgba(122, 88, 40, 0.22) !important;
  color: #3b2a14 !important;
}

body.day-mode .privilege-box div,
body.day-mode .privilege-box span {
  color: #2b2b30 !important;
}

/* 5. Header Controls High Contrast */
body.day-mode .header-verify-status {
  background: #e8f5e9 !important;
  border-color: #81c784 !important;
}

body.day-mode .header-verify-status .verify-text {
  color: #1b5e20 !important;
  font-weight: 700 !important;
}

body.day-mode .header-theme-toggle {
  background: #ede8dc !important;
  border-color: rgba(122, 88, 40, 0.45) !important;
}

body.day-mode .header-theme-toggle .theme-label {
  color: #3b2a14 !important;
  font-weight: 700 !important;
}

body.day-mode .header-lang-bar {
  background: #ede8dc !important;
  border-color: rgba(0, 0, 0, 0.18) !important;
}

body.day-mode .header-lang-bar .lang-label {
  color: #1f1f23 !important;
  font-weight: 700 !important;
}

body.day-mode .header-lang-bar .globe-icon {
  stroke: #1f1f23 !important;
}

/* 6. Provenance Tag & Seals */
body.day-mode .guest-provenance-tag span {
  color: #3b2a14 !important;
  font-weight: 600 !important;
}

body.day-mode .seal-certified-tag {
  color: #3b2a14 !important;
  background: rgba(122, 88, 40, 0.15) !important;
  border-color: rgba(122, 88, 40, 0.35) !important;
  font-weight: 700 !important;
}

body.day-mode .seal-wax {
  border-color: #7a5828 !important;
}

/* 7. Image Slider Tags & Interactive Overlays */
body.day-mode .slider-tag {
  background: rgba(255, 255, 255, 0.92) !important;
  color: #18181a !important;
  border: 1px solid rgba(122, 88, 40, 0.3) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
  font-weight: 700 !important;
}

/* 8. Chapter IV (Reveal Theme) in Day Mode */
body.day-mode .chapter-reveal-theme,
body.day-mode #sec-ch4 {
  background-color: #f7f5f0 !important;
  color: #18181a !important;
}

body.day-mode .chapter-reveal-theme .chapter-main-title,
body.day-mode #sec-ch4 .chapter-main-title {
  color: #18181a !important;
}

body.day-mode .chapter-reveal-theme .chapter-meta-tag,
body.day-mode #sec-ch4 .chapter-meta-tag {
  color: #7a5828 !important;
}

body.day-mode .chapter-reveal-theme .poem-stanza,
body.day-mode #sec-ch4 .poem-stanza,
body.day-mode .chapter-reveal-theme p,
body.day-mode #sec-ch4 p {
  color: #18181a !important;
}

/* 9. Dual-Tone Fabric Swatches in Day Mode */
body.day-mode .split-card {
  border-color: rgba(122, 88, 40, 0.25) !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06) !important;
}

body.day-mode .split-meta {
  background: #ffffff !important;
  color: #18181a !important;
}

body.day-mode .split-meta div,
body.day-mode .split-meta span {
  color: #18181a !important;
  font-weight: 600 !important;
}

/* 10. Store, Cart, Forms, and Utility Elements */
body.day-mode .cart-bar-btn.lux-btn-primary {
  background: linear-gradient(135deg, #7a5828 0%, #4a3416 100%) !important;
  color: #ffffff !important;
}

body.day-mode .size-option-btn.selected {
  background: #7a5828 !important;
  color: #ffffff !important;
  border-color: #4a3416 !important;
}

body.day-mode .size-option-btn {
  background: #ffffff !important;
  border-color: rgba(122, 88, 40, 0.3) !important;
  color: #18181a !important;
}

body.day-mode select.form-input option,
body.day-mode select option {
  background: #ffffff !important;
  color: #18181a !important;
}

/* 11. Swatch cards (Colorway palette in Digital Magazine) in Day Mode */
body.day-mode .swatch {
  border-color: rgba(122, 88, 40, 0.3) !important;
  background: #ffffff !important;
}

body.day-mode .swatch-info {
  background: #ffffff !important;
  border-top-color: rgba(122, 88, 40, 0.2) !important;
}

body.day-mode .swatch-info div {
  color: #18181a !important;
  font-weight: 700 !important;
}

body.day-mode #color-explanation {
  color: #2b2b30 !important;
}

/* 12. Primary action buttons text readability in Day Mode */
body.day-mode button.lux-btn-primary,
body.day-mode .submit-btn.lux-btn-primary,
body.day-mode #btn-add-journal,
body.day-mode #btn-submit-service,
body.day-mode #btn-submit-booking,
body.day-mode #btn-store-checkout {
  background: #5c3e16 !important;
  color: #ffffff !important;
  border: 1px solid #3b280e !important;
  font-weight: 700 !important;
}

body.day-mode button.lux-btn-primary:hover,
body.day-mode .submit-btn.lux-btn-primary:hover {
  background: #452d0d !important;
  color: #ffffff !important;
}

/* 13. Ensure Chapter IV inline styles are overridden in Day Mode */
body.day-mode #sec-ch4 div,
body.day-mode #sec-ch4 p,
body.day-mode #sec-ch4 h2,
body.day-mode #sec-ch4 span {
  color: #18181a !important;
}

body.day-mode #sec-ch4 .chapter-meta-tag {
  color: #7a5828 !important;
}

body.day-mode #sec-ch4 .inlay-caption {
  color: #4a4a50 !important;
}

body.day-mode #sec-ch4 .inlay-photo-card {
  background: #ffffff !important;
  border-color: rgba(122, 88, 40, 0.22) !important;
}

/* 14. Day Mode Support for NFC Quantum Radar Animation */
body.day-mode #auth-screen {
  background-color: #f7f5f0 !important;
}

body.day-mode .nfc-quantum-radar-container {
  background: radial-gradient(circle at 50% 50%, #ffffff 0%, #f4f0e6 100%) !important;
  border-color: rgba(122, 88, 40, 0.35) !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08), inset 0 0 20px rgba(122, 88, 40, 0.06) !important;
}

body.day-mode .radar-ring.ring-outer {
  border-color: rgba(122, 88, 40, 0.4) !important;
}

body.day-mode .radar-ring.ring-mid {
  border-color: rgba(122, 88, 40, 0.3) !important;
}

body.day-mode .radar-ring.ring-inner {
  border-color: rgba(74, 52, 22, 0.45) !important;
}

body.day-mode .radar-wave {
  border-color: #7a5828 !important;
}

body.day-mode .radar-beam {
  background: conic-gradient(from 0deg at 50% 50%, rgba(122, 88, 40, 0.28) 0deg, rgba(122, 88, 40, 0.06) 45deg, transparent 90deg, transparent 360deg) !important;
}

body.day-mode .radar-crosshair-h,
body.day-mode .radar-crosshair-v {
  background: linear-gradient(90deg, transparent 0%, rgba(122, 88, 40, 0.45) 50%, transparent 100%) !important;
}

body.day-mode .nfc-chip-node {
  background: radial-gradient(circle, #f9f7f2 0%, #e8e3d5 100%) !important;
  border-color: #7a5828 !important;
  box-shadow: 0 0 14px rgba(122, 88, 40, 0.3) !important;
}

body.day-mode .chip-quantum-core {
  background: #7a5828 !important;
  box-shadow: 0 0 10px rgba(122, 88, 40, 0.6) !important;
}

body.day-mode .brand-logo-radar {
  filter: brightness(0) saturate(100%) invert(35%) sepia(30%) saturate(1200%) hue-rotate(5deg) !important;
}

body.day-mode .auth-crypto-badge {
  background: #ede8dc !important;
  border-color: rgba(122, 88, 40, 0.4) !important;
  color: #4a3416 !important;
}

body.day-mode .auth-text-step {
  color: #18181a !important;
}

body.day-mode .auth-text-step.fade-in {
  color: #7a5828 !important;
  text-shadow: none !important;
}

/* Day Mode Overrides for Wax Seal Verification Screen */
body.day-mode .seal-success-title {
  color: #18181a !important;
}

body.day-mode .seal-success-subtitle {
  color: #666666 !important;
}

body.day-mode .cert-details-table {
  background: rgba(247, 245, 240, 0.95) !important;
  border-color: rgba(122, 88, 40, 0.25) !important;
}

body.day-mode .cert-details-table tr {
  border-bottom-color: rgba(122, 88, 40, 0.15) !important;
}

body.day-mode .cert-details-table td:first-child {
  border-right-color: rgba(122, 88, 40, 0.15) !important;
}

body.day-mode .detail-label {
  color: #666666 !important;
}

body.day-mode .detail-value {
  color: #18181a !important;
}

body.day-mode .seal-redirect-countdown {
  color: #7a5828 !important;
}


