/* ==========================================================================
   The Silent Sphinx - Sacred Editorial & Mysterious Wisdom Design System
   "The Sanctuary of Human Genius & Timeless Mysteries"
   Typography: Cormorant Garamond (Graceful Literary Body) & Cinzel (Sacred Inscriptions)
   Atmosphere: Calm, Noble, Mystical, Celestial Midnight & Antique Gold
   ========================================================================== */

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

:root {
  /* Noble, Mystical Cosmic Palette */
  --bg-primary: #020614;
  --bg-secondary: #050b1e;
  --bg-surface: #081228;
  --bg-card: rgba(8, 16, 36, 0.9);
  --bg-card-hover: rgba(12, 22, 48, 0.97);
  
  --border-subtle: rgba(56, 189, 248, 0.14);
  --border-accent: rgba(56, 189, 248, 0.35);
  --border-gold: rgba(245, 158, 11, 0.4);
  
  /* Primary Mystical Accents */
  --color-sapphire-blue: #38bdf8;
  --color-sapphire-deep: #1d4ed8;
  --color-cyan-glow: #00f0ff;
  --color-gold-muted: #d97706;
  --color-gold-bright: #f59e0b;
  --color-parchment: #f1f5f9;
  
  /* Typography Colors */
  --color-text-main: #f8fafc;
  --color-text-body: #e2e8f0;
  --color-text-muted: #94a3b8;
  --color-text-dim: #64748b;
  
  /* Haute Couture & Editorial Luxury Typography */
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-brand: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-cinzel: 'Cinzel', serif;
  --font-cinzel-deco: 'Cinzel Decorative', 'Cinzel', serif;
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  
  --shadow-subtle: 0 4px 14px rgba(0, 0, 0, 0.5);
  --shadow-card: 0 12px 36px -8px rgba(0, 0, 0, 0.8), 0 0 20px rgba(14, 165, 233, 0.06);
  --shadow-hover: 0 20px 50px -10px rgba(0, 0, 0, 0.92), 0 0 28px rgba(56, 189, 248, 0.2);
  --shadow-modal: 0 25px 80px -10px rgba(0, 0, 0, 0.96), 0 0 35px rgba(56, 189, 248, 0.15);
  
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 85px;
}

body {
  font-family: var(--font-body);
  background-color: #020b12;
  color: var(--color-text-body);
  font-size: 1.1rem;
  line-height: 1.75;
  letter-spacing: 0.25px;
  overflow-x: hidden;
  font-variant-numeric: lining-nums tabular-nums;
  -moz-font-feature-settings: "lnum" 1, "tnum" 1;
  -webkit-font-feature-settings: "lnum" 1, "tnum" 1;
  font-feature-settings: "lnum" 1, "tnum" 1;
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(19, 78, 74, 0.55) 0%, transparent 68%),
    radial-gradient(circle at 85% 25%, rgba(45, 212, 191, 0.22) 0%, transparent 55%),
    radial-gradient(circle at 15% 75%, rgba(13, 148, 136, 0.20) 0%, transparent 60%),
    radial-gradient(circle at 50% 100%, rgba(2, 11, 18, 0.98) 0%, transparent 75%);
  background-attachment: fixed;
  transition: background-image 0.8s ease-in-out;
}

button, input, select, textarea, .wonder-card, .modal-container, .pagination-bar-wrap {
  font-variant-numeric: lining-nums tabular-nums;
  -moz-font-feature-settings: "lnum" 1, "tnum" 1;
  -webkit-font-feature-settings: "lnum" 1, "tnum" 1;
  font-feature-settings: "lnum" 1, "tnum" 1;
}

/* ==========================================================================
   Permanent Noble Sanctuary Atmosphere (Noble Cosmic Turquoise & Emerald)
   ========================================================================== */

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 7px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: #1e3a8a;
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: #38bdf8;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(135deg, rgba(2, 6, 20, 0.97) 0%, rgba(5, 12, 32, 0.97) 100%);
  backdrop-filter: blur(20px);
  border-bottom: 1.5px solid var(--border-subtle);
  padding: 12px 0;
  box-shadow: 0 4px 22px rgba(0, 0, 0, 0.7);
  transition: var(--transition);
}

.header .container {
  max-width: 1480px;
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid rgba(245, 158, 11, 0.8);
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.35);
}

.brand-title {
  font-family: var(--font-brand);
  font-size: 1.65rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffffff;
  white-space: nowrap;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8), 0 0 18px rgba(245, 158, 11, 0.3);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
}

.nav-link {
  font-family: var(--font-cinzel), 'Cinzel', serif;
  font-variant-numeric: lining-nums tabular-nums;
  color: rgba(248, 250, 252, 0.85);
  text-decoration: none;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.84rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 1px solid transparent;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
  color: #00f0ff;
  background: rgba(56, 189, 248, 0.12);
  border-color: var(--border-accent);
}

.nav-link-btn {
  font-family: var(--font-cinzel), 'Cinzel', serif;
  font-variant-numeric: lining-nums tabular-nums;
  background: transparent;
  color: var(--color-text-muted);
  border: 1.2px solid rgba(255, 255, 255, 0.2);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.nav-link-btn:hover {
  color: #ffffff;
  border-color: rgba(56, 189, 248, 0.4);
  background: rgba(30, 58, 138, 0.25);
}

/* Language Selector Dropdown */
.lang-selector {
  position: relative;
  display: inline-block;
}

.lang-btn {
  font-family: var(--font-cinzel);
  background: rgba(8, 16, 36, 0.9);
  border: 1.5px solid var(--border-accent);
  color: #ffffff;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.6px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
  transition: var(--transition);
}

.lang-btn:hover {
  background: rgba(30, 58, 138, 0.4);
  border-color: #00f0ff;
}

.lang-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  background: linear-gradient(165deg, rgba(8, 20, 44, 0.98) 0%, rgba(4, 11, 28, 0.99) 100%);
  border: 1.5px solid rgba(45, 212, 191, 0.35);
  border-radius: var(--radius-md);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.75), 0 0 20px rgba(45, 212, 191, 0.15);
  min-width: 240px;
  max-width: 280px;
  max-height: 460px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(45, 212, 191, 0.4) transparent;
  display: none;
  flex-direction: column;
  padding: 8px 6px;
  z-index: 1001;
  backdrop-filter: blur(24px);
}

.lang-dropdown::-webkit-scrollbar {
  width: 5px;
}
.lang-dropdown::-webkit-scrollbar-thumb {
  background: rgba(45, 212, 191, 0.35);
  border-radius: 4px;
}

.lang-dropdown.show {
  display: flex;
}

.lang-group-header {
  font-family: var(--font-cinzel, 'Cinzel', serif);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: #94a3b8;
  padding: 6px 10px 4px 10px;
  user-select: none;
}

.lang-group-header.ancient {
  color: #d4b996;
  letter-spacing: 1.8px;
  text-shadow: 0 0 10px rgba(212, 185, 150, 0.3);
  padding: 6px 10px 6px 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(212, 185, 150, 0.06);
  border-radius: var(--radius-sm);
  margin-bottom: 4px;
}

.lang-group-divider {
  height: 1px;
  margin: 8px 4px 8px 4px;
  background: linear-gradient(90deg, transparent 0%, rgba(212, 185, 150, 0.35) 50%, transparent 100%);
}

.lang-group-subdivider {
  height: 1px;
  margin: 6px 8px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.12) 50%, transparent 100%);
}

.lang-group-grid {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 11px;
  background: transparent;
  border: none;
  color: var(--color-text-body);
  font-family: var(--font-body);
  font-size: 0.94rem;
  font-weight: 500;
  cursor: pointer;
  border-radius: var(--radius-sm);
  text-align: left;
  transition: var(--transition);
}

.lang-option span {
  font-size: 1.1rem;
  line-height: 1;
}

.lang-option:hover, .lang-option.selected {
  background: rgba(45, 212, 191, 0.15);
  color: #5eead4;
  font-weight: 600;
}

.lang-option.ancient-option {
  color: #e2d3be;
  font-family: var(--font-serif, Georgia, serif);
  font-size: 0.98rem;
  letter-spacing: 0.4px;
  border-left: 2px solid rgba(212, 185, 150, 0.4);
  background: rgba(212, 185, 150, 0.04);
  margin-bottom: 2px;
}

.lang-option.ancient-option:hover, .lang-option.ancient-option.selected {
  background: rgba(212, 185, 150, 0.2);
  color: #fce7cf;
  border-left: 2px solid #d4b996;
  box-shadow: inset 0 0 12px rgba(212, 185, 150, 0.1);
}

/* RTL Support for Arabic */
[dir="rtl"] {
  direction: rtl;
  text-align: right;
}

[dir="rtl"] .lang-dropdown {
  right: auto;
  left: 0;
}

[dir="rtl"] .lang-option {
  text-align: right;
}

[dir="rtl"] .hero-banner-motto,
[dir="rtl"] .hero-banner-submotto,
[dir="rtl"] .section-title,
[dir="rtl"] .section-desc {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

/* ==========================================================================
   Hero Section (100vh Fullscreen & Sacred Motto)
   ========================================================================== */
.hero-fullscreen-section {
  position: relative;
  width: 100%;
  height: calc(100vh - 65px);
  height: calc(100dvh - 65px);
  min-height: 560px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: #020614;
  border-bottom: 1.5px solid var(--border-accent);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.85);
}

.hero-fullscreen-bg-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

.hero-fullscreen-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  display: block;
  transition: transform 1.2s ease;
}

.hero-fullscreen-section:hover .hero-fullscreen-bg {
  transform: scale(1.01);
}

.hero-fullscreen-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 50px;
  background: linear-gradient(to top, rgba(2, 6, 20, 0.98) 0%, rgba(2, 6, 20, 0.55) 30%, rgba(2, 6, 20, 0.05) 60%, transparent 80%);
}

.hero-fullscreen-content {
  text-align: center;
  max-width: 1100px;
  width: 100%;
  z-index: 3;
}

.hero-prelaunch-banner {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(8, 20, 42, 0.88);
  border: 1px solid rgba(56, 189, 248, 0.45);
  padding: 6px 22px;
  border-radius: var(--radius-full);
  margin-bottom: 18px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.8), 0 0 25px rgba(56, 189, 248, 0.25);
  backdrop-filter: blur(12px);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  color: #38bdf8;
  letter-spacing: 0.06em;
}

.prelaunch-beacon {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #00f0ff;
  box-shadow: 0 0 12px #00f0ff;
  animation: pulseBeacon 1.8s infinite ease-in-out;
}

.hero-banner-motto {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 3rem;
  font-weight: 300;
  letter-spacing: 0.04em;
  color: #fef08a;
  margin-bottom: 8px;
  text-shadow: 
    0 3px 8px rgba(0, 0, 0, 0.98),
    0 0 25px rgba(245, 158, 11, 0.5),
    0 0 45px rgba(30, 58, 138, 0.8),
    0 4px 18px #020617;
  pointer-events: none;
  line-height: 1.2;
}

.hero-banner-submotto {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-style: italic;
  color: #e2e8f0;
  margin-bottom: 26px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
  letter-spacing: 0.5px;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
}

.btn-primary {
  font-family: var(--font-cinzel), 'Cinzel', serif;
  font-variant-numeric: lining-nums tabular-nums;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #1e3a8a 0%, #0369a1 100%);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 10px 24px;
  border-radius: var(--radius-full);
  text-decoration: none;
  border: 1px solid rgba(56, 189, 248, 0.5);
  box-shadow: 0 4px 22px rgba(30, 58, 138, 0.5), 0 0 16px rgba(0, 240, 255, 0.25);
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(30, 58, 138, 0.7), 0 0 24px rgba(0, 240, 255, 0.5);
  background: linear-gradient(135deg, #2563eb 0%, #0ea5e9 100%);
}

.btn-link-subtle {
  font-family: var(--font-cinzel), 'Cinzel', serif;
  font-variant-numeric: lining-nums tabular-nums;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--color-text-muted);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  transition: var(--transition);
}

.btn-link-subtle:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

/* ==========================================================================
   Editorial Archive Section (Sections, Kickers & Search)
   ========================================================================== */
.section {
  padding: 70px 0;
  border-top: 1px solid var(--border-subtle);
  scroll-margin-top: 85px;
}

.section-header {
  text-align: center;
  max-width: 1050px;
  margin: 0 auto 48px auto;
  padding: 10px 20px 0 20px;
}

.section-kicker {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--color-gold-bright);
  margin-bottom: 8px;
  text-transform: uppercase;
}

.section-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 3.5rem;
  font-weight: 300;
  margin-bottom: 12px;
  color: #ffffff;
  letter-spacing: 0.03em;
  line-height: 1.18;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.7);
}

.archive-milestone-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: #facc15;
  background: linear-gradient(135deg, rgba(20, 36, 76, 0.95) 0%, rgba(8, 16, 36, 0.98) 100%);
  border: 1.2px solid rgba(245, 158, 11, 0.55);
  padding: 6px 18px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8), 0 0 25px rgba(245, 158, 11, 0.2);
  text-transform: uppercase;
}

.milestone-beacon {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981, 0 0 20px #10b981;
  animation: pulseBeacon 2s infinite;
}

@keyframes pulseBeacon {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.6; }
}

.section-subtitle {
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ====================================================
   SECTION 0: The Master Codex & Plate Gallery Showcase
   ==================================================== */
.gallery-showcase-section {
  padding: 50px 0 40px 0;
  background: radial-gradient(circle at 50% 30%, rgba(15, 23, 42, 0.95) 0%, rgba(2, 6, 20, 0.98) 100%);
  border-bottom: 1.5px solid rgba(245, 158, 11, 0.3);
  position: relative;
}

.gallery-plates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 28px;
}

.gallery-plate-card {
  position: relative;
  background: rgba(8, 16, 36, 0.88);
  border: 1.5px solid rgba(245, 158, 11, 0.35);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.75), 0 0 15px rgba(245, 158, 11, 0.08);
  cursor: pointer;
  transition: all 0.38s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.gallery-plate-card:hover {
  transform: translateY(-6px) scale(1.015);
  border-color: #facc15;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.9), 0 0 30px rgba(250, 204, 21, 0.35);
}

.gallery-plate-thumb-box {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #020617;
}

.gallery-plate-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s ease;
}

.gallery-plate-card:hover .gallery-plate-thumb-img {
  transform: scale(1.06);
}

.gallery-plate-badge-overlay {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(2, 6, 23, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(245, 158, 11, 0.6);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-family: var(--font-cinzel);
  font-size: 0.72rem;
  font-weight: 800;
  color: #facc15;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.gallery-plate-card {
  cursor: pointer;
}

.gallery-plate-action-hover {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.gallery-plate-card:hover .gallery-plate-action-hover {
  opacity: 1;
}

.gallery-plate-btn-peek {
  font-family: var(--font-cinzel);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: #ffffff;
  background: linear-gradient(135deg, #1e3a8a 0%, #0284c7 100%);
  border: 1.5px solid #38bdf8;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: auto;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery-plate-btn-peek:hover {
  transform: scale(1.06);
  box-shadow: 0 6px 24px rgba(56, 189, 248, 0.6);
}

.gallery-plate-info {
  padding: 16px 20px 20px 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.gallery-plate-author {
  font-family: var(--font-cinzel);
  font-size: 1.18rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}

.gallery-plate-desc {
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.55;
  font-style: italic;
}

/* ==========================================================================
   Home 3-Teaser Plates Showcase (Compact Single Horizontal Row)
   ========================================================================== */
/* ==========================================================================
   Home 3-Teaser Plates Showcase (Grand Luxury Archive Masterpieces)
   ========================================================================== */
.home-teaser-plates-box {
  margin: 0 auto 52px auto;
  max-width: 1240px;
  background: linear-gradient(135deg, rgba(6, 18, 42, 0.88) 0%, rgba(2, 8, 22, 0.96) 100%);
  border: 1.5px solid rgba(56, 189, 248, 0.35);
  border-radius: 20px;
  padding: 24px 28px 28px 28px;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.85), 0 0 35px rgba(56, 189, 248, 0.14);
  backdrop-filter: blur(14px);
}

.teaser-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.teaser-kicker {
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #38bdf8;
  display: flex;
  align-items: center;
  gap: 8px;
}

.teaser-full-gallery-link {
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #38bdf8;
  text-decoration: none;
  border-bottom: 1px dashed rgba(56, 189, 248, 0.6);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.teaser-full-gallery-link:hover {
  color: #ffffff;
  border-bottom-color: #ffffff;
}

.home-teaser-plates-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  transition: opacity 0.4s ease;
}

@media (max-width: 900px) {
  .home-teaser-plates-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.home-teaser-card {
  position: relative;
  height: 270px;
  border-radius: 14px;
  overflow: hidden;
  border: 1.5px solid rgba(56, 189, 248, 0.3);
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  background: #020617;
  display: block;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.75);
}

.home-teaser-card:hover {
  transform: translateY(-6px);
  border-color: #00f0ff;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.95), 0 0 35px rgba(56, 189, 248, 0.45);
}

.home-teaser-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.6) contrast(1.15);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s ease;
}

.home-teaser-card:hover .home-teaser-bg-img {
  transform: scale(1.06);
  filter: brightness(0.82) contrast(1.2);
}

.home-teaser-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.05) 0%, rgba(2, 6, 23, 0.45) 45%, rgba(2, 6, 23, 0.96) 100%);
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  pointer-events: none;
}

.home-teaser-seal {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  color: #facc15;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 6px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.8);
}

.home-teaser-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.55rem;
  font-weight: 400;
  color: #ffffff;
  line-height: 1.25;
  letter-spacing: 0.02em;
  margin-bottom: 6px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
}

.home-teaser-action {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  color: #38bdf8;
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* The 5-Tier Depth Discovery Bar */
.search-depth-bar {
  max-width: 1020px;
  margin: 0 auto 30px auto;
  background: rgba(6, 16, 36, 0.85);
  border: 1.5px solid rgba(45, 212, 191, 0.28);
  border-radius: 18px;
  padding: 16px 20px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6), 0 0 20px rgba(45, 212, 191, 0.06);
  backdrop-filter: blur(12px);
}

.depth-bar-kicker {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  color: #5eead4;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.depth-buttons-wrap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 8px;
}

.depth-btn {
  background: rgba(15, 23, 42, 0.75);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 9px 8px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
}

.depth-btn:hover {
  background: rgba(30, 41, 59, 0.95);
  border-color: rgba(45, 212, 191, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.depth-btn.active {
  background: linear-gradient(135deg, rgba(45, 212, 191, 0.18) 0%, rgba(2, 132, 199, 0.25) 100%);
  border-color: #5eead4;
  box-shadow: 0 0 16px rgba(45, 212, 191, 0.35), inset 0 0 10px rgba(45, 212, 191, 0.12);
  transform: translateY(-2px);
}

.depth-btn.active .depth-title {
  color: #ffffff;
  font-weight: 700;
}

.depth-btn.active .depth-badge {
  background: rgba(45, 212, 191, 0.2);
  color: #ccfbf1;
  border-color: rgba(45, 212, 191, 0.55);
}

.depth-btn-specialist.active {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.3) 0%, rgba(168, 85, 247, 0.3) 100%);
  border-color: #a855f7;
  box-shadow: 0 0 18px rgba(168, 85, 247, 0.5);
}

.depth-btn-specialist.active .depth-badge {
  background: rgba(168, 85, 247, 0.3);
  color: #e9d5ff;
  border-color: #c084fc;
}

.depth-icon {
  font-size: 1.05rem;
}

.depth-title {
  font-family: var(--font-cinzel);
  font-size: 0.72rem;
  font-weight: 600;
  color: #e2e8f0;
  letter-spacing: 0.3px;
  white-space: nowrap;
  line-height: 1.2;
}

.depth-badge {
  font-size: 0.65rem;
  font-family: var(--font-mono);
  background: rgba(255, 255, 255, 0.06);
  color: #94a3b8;
  padding: 2px 7px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  letter-spacing: 0.2px;
  margin-top: 2px;
}

/* Search Bar & Discovery Suite */
.search-bar-row {
  max-width: 900px;
  margin: 0 auto 16px auto;
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.search-bar-wrap {
  flex: 1;
  min-width: 280px;
  max-width: 520px;
  position: relative;
  margin: 0;
  display: flex;
  align-items: center;
}

.search-input {
  width: 100%;
  font-family: var(--font-body);
  background: rgba(8, 16, 36, 0.92);
  border: 1.5px solid var(--border-accent);
  border-radius: var(--radius-full);
  padding: 12px 42px 12px 46px;
  color: var(--color-text-main);
  font-size: 1rem;
  outline: none;
  box-shadow: var(--shadow-subtle);
  transition: var(--transition);
}

.search-input:focus {
  border-color: #00f0ff;
  box-shadow: 0 0 18px rgba(0, 240, 255, 0.35);
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.05rem;
  cursor: pointer;
  z-index: 2;
  user-select: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
  opacity: 0.8;
}

.search-icon:hover {
  transform: translateY(-50%) scale(1.15);
  opacity: 1;
}

.btn-search-clear {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: #94a3b8;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 2;
}

.btn-search-clear:hover {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.btn-execute-search {
  font-family: var(--font-sans);
  background: linear-gradient(135deg, #facc15 0%, #ca8a04 100%);
  border: 1.5px solid rgba(250, 204, 21, 0.85);
  color: #020617;
  padding: 11px 22px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  transition: all 0.25s ease;
  box-shadow: 0 4px 18px rgba(250, 204, 21, 0.28);
}

.btn-execute-search:hover {
  background: linear-gradient(135deg, #fde047 0%, #eab308 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(250, 204, 21, 0.5);
}

.btn-random-wonder {
  font-family: var(--font-sans);
  background: linear-gradient(135deg, rgba(45, 212, 191, 0.18) 0%, rgba(2, 132, 199, 0.28) 100%);
  border: 1.5px solid rgba(45, 212, 191, 0.55);
  color: #ccfbf1;
  padding: 11px 22px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  transition: all 0.25s ease;
  box-shadow: 0 4px 16px rgba(45, 212, 191, 0.18);
}

.btn-random-wonder:hover {
  background: linear-gradient(135deg, #2dd4bf 0%, #0ea5e9 100%);
  color: #020617;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(45, 212, 191, 0.45);
}

/* Collapsible Exploration Ideas Drawer */
.exploration-sparks-container {
  max-width: 980px;
  margin: 0 auto 24px auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.btn-exploration-toggle {
  font-family: var(--font-cinzel), 'Cinzel', serif;
  background: rgba(14, 26, 52, 0.85);
  border: 1.5px solid rgba(212, 185, 150, 0.4);
  color: #e2c9a5;
  padding: 8px 22px;
  border-radius: var(--radius-full);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4), inset 0 0 10px rgba(212, 185, 150, 0.05);
}

.btn-exploration-toggle:hover {
  background: rgba(22, 38, 74, 0.95);
  border-color: #facc15;
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(250, 204, 21, 0.25), inset 0 0 14px rgba(212, 185, 150, 0.15);
  transform: translateY(-2px);
}

.btn-exploration-toggle .toggle-arrow {
  display: inline-block;
  font-size: 0.9rem;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-exploration-toggle.expanded .toggle-arrow {
  transform: rotate(180deg);
}

.exploration-ideas-drawer {
  width: 100%;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease, margin-top 0.3s ease;
}

.exploration-ideas-drawer.collapsed {
  max-height: 0;
  opacity: 0;
  margin-top: 0;
  pointer-events: none;
}

.exploration-ideas-drawer:not(.collapsed) {
  max-height: 300px;
  opacity: 1;
  margin-top: 14px;
}

/* Quick Discovery Sparks inside drawer */
.discovery-sparks-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  max-width: 980px;
  margin: 0 auto;
}

.spark-pill {
  font-family: var(--font-cinzel), 'Cinzel', serif;
  font-size: 0.76rem;
  font-weight: 700;
  color: rgba(248, 250, 252, 0.85);
  background: rgba(14, 24, 52, 0.75);
  border: 1px solid rgba(212, 185, 150, 0.25);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.spark-pill:hover {
  background: rgba(250, 204, 21, 0.15);
  border-color: #facc15;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(250, 204, 21, 0.2);
}

/* Aristocratic Paginated Category Filters (4 Whole Pills per Set - 100% Whole, ZERO Cutting Guaranteed) */
.filter-carousel-container {
  margin-bottom: 34px;
}

.filter-carousel-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 0 auto 16px auto;
  width: 100%;
  max-width: 1200px;
  position: relative;
}

.filter-nav-arrow {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 50%;
  background: rgba(8, 18, 44, 0.95);
  border: 1.5px solid rgba(250, 204, 21, 0.75);
  color: #facc15;
  font-family: var(--font-cinzel), 'Cinzel', serif;
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.8), 0 0 14px rgba(250, 204, 21, 0.25);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
  user-select: none;
  padding: 0;
  line-height: 1;
}

.filter-nav-arrow:hover {
  background: rgba(30, 58, 138, 0.85);
  border-color: #facc15;
  color: #ffffff;
  box-shadow: 0 0 24px rgba(250, 204, 21, 0.6);
  transform: scale(1.1);
}

.filter-nav-arrow:active {
  transform: scale(0.95);
}

.filter-nav-arrow.disabled,
.filter-nav-arrow:disabled {
  opacity: 0.28;
  cursor: default;
  pointer-events: none;
  box-shadow: none;
  border-color: rgba(250, 204, 21, 0.25);
  color: #ca8a04; /* Luminous subdued gold, zero gray */
  background: rgba(8, 18, 44, 0.6);
  transform: none;
}

.filter-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: nowrap;
}

.filter-pill {
  font-family: var(--font-cinzel), 'Cinzel', serif;
  background: linear-gradient(135deg, rgba(12, 28, 64, 0.95) 0%, rgba(6, 16, 40, 0.98) 100%);
  border: 1.5px solid rgba(56, 189, 248, 0.45);
  color: #ffffff !important; /* Pure radiant white - zero gray */
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 0.77rem;
  font-weight: 700;
  letter-spacing: 0.45px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  animation: fadeInPill 0.28s ease-out;
}

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

.filter-pill:hover {
  color: #fef08a !important;
  border-color: #facc15;
  background: linear-gradient(135deg, rgba(30, 64, 175, 0.75) 0%, rgba(14, 116, 144, 0.75) 100%);
  box-shadow: 0 0 20px rgba(250, 204, 21, 0.35);
  transform: translateY(-1px);
}

.filter-pill.active {
  background: linear-gradient(135deg, #1d4ed8 0%, #0284c7 100%);
  border-color: #38bdf8;
  color: #ffffff !important;
  font-weight: 800;
  box-shadow: 0 0 22px rgba(56, 189, 248, 0.6), 0 4px 16px rgba(0, 0, 0, 0.8);
}

/* Aristocratic Discrete Pagination Dots */
.filter-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 6px;
}

.filter-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.22);
  border: 1px solid rgba(56, 189, 248, 0.45);
  cursor: pointer;
  padding: 0;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.filter-dot:hover {
  background: rgba(250, 204, 21, 0.6);
  border-color: #facc15;
  transform: scale(1.25);
}

.filter-dot.active {
  width: 26px;
  border-radius: 6px;
  background: linear-gradient(90deg, #facc15 0%, #38bdf8 100%);
  border-color: #facc15;
  box-shadow: 0 0 12px rgba(250, 204, 21, 0.55);
}

@media (max-width: 900px) {
  .filter-group {
    flex-wrap: wrap;
    gap: 8px;
  }
  .filter-pill {
    padding: 6px 12px;
    font-size: 0.72rem;
  }
}

/* Refined Curated Spotlight Bar (În Lumina Sfinxului) */
.spotlight-bar {
  background: linear-gradient(135deg, rgba(8, 20, 44, 0.92) 0%, rgba(4, 12, 28, 0.96) 100%);
  border: 1.5px solid rgba(45, 212, 191, 0.35);
  border-radius: var(--radius-md);
  padding: 18px 24px;
  margin-bottom: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.65), 0 0 20px rgba(45, 212, 191, 0.12);
  flex-wrap: wrap;
}

.spotlight-badge {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #5eead4;
  background: rgba(45, 212, 191, 0.14);
  border: 1px solid rgba(45, 212, 191, 0.4);
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.spotlight-body {
  flex: 1;
  min-width: 250px;
}

.spotlight-title {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
  letter-spacing: 0.2px;
}

.spotlight-text {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.btn-spotlight-action {
  font-family: var(--font-cinzel);
  background: rgba(8, 16, 36, 0.85);
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: var(--color-gold-bright);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.8px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-spotlight-action:hover {
  background: var(--color-gold-bright);
  color: #020614;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.5);
}

/* ==========================================================================
   Editorial Archive Cards Grid (Fluctuating Luxury Editorial Rhythm)
   Sequence: 3 Small (span 2) -> 1 Large (span 6) -> 2 Medium (span 3) -> 3 Small (span 2) -> 1 Large (span 6)
   ========================================================================== */
.wonders-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 28px;
  align-items: stretch;
}

.wonder-card {
  background: #060c1c !important;
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 0, 0, 0.4);
  position: relative;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease;
  cursor: pointer;
}

.wonder-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.95), 0 0 32px rgba(56, 189, 248, 0.3);
  border-color: #00f0ff;
}

/* ====================================================
   TIER 1: Small Editorial Card (3 in a row - span 2)
   ==================================================== */
.wonder-card.card-editorial-small {
  grid-column: span 2;
}
.wonder-card.card-editorial-small .wonder-card-inner-body {
  padding: 22px 24px;
}
.wonder-card.card-editorial-small .wonder-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.55rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.015em;
  color: #ffffff;
}
.wonder-card.card-editorial-small .wonder-summary {
  font-size: 0.96rem;
  line-height: 1.68;
}

/* ====================================================
   TIER 2: Medium Editorial Card (2 in a row - span 3)
   ==================================================== */
.wonder-card.card-editorial-medium {
  grid-column: span 3;
  border-width: 1.8px;
  background: #060c1c !important;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.85), 0 0 24px rgba(56, 189, 248, 0.12);
}
.wonder-card.card-editorial-medium .wonder-card-inner-body {
  padding: 28px 32px;
}
.wonder-card.card-editorial-medium .wonder-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2rem;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.025em;
  color: #ffffff;
  margin-bottom: 10px;
}
.wonder-card.card-editorial-medium .wonder-summary {
  font-size: 1.05rem;
  line-height: 1.76;
}

/* ====================================================
   TIER 3: Large Editorial Card (1 full-width - span 6)
   ==================================================== */
.wonder-card.card-editorial-large {
  grid-column: span 6;
  border-width: 2px;
  background: #060c1c !important;
  box-shadow: 0 16px 52px rgba(0, 0, 0, 0.9), 0 0 35px rgba(245, 158, 11, 0.18);
}
.wonder-card.card-editorial-large .wonder-card-jewel-header {
  height: 66px;
  min-height: 66px;
  max-height: 66px;
  box-sizing: border-box;
  padding: 0 30px;
}
.wonder-card.card-editorial-large .wonder-card-inner-body {
  padding: 32px 42px;
}

@media (min-width: 960px) {
  .wonder-card.card-editorial-large .wonder-card-inner-body {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 42px;
    align-items: center;
  }
}

.wonder-card.card-editorial-large .wonder-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2.5rem;
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: 0.035em;
  color: #fef08a;
  margin-bottom: 12px;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.9), 0 0 25px rgba(245, 158, 11, 0.35);
}
.wonder-card.card-editorial-large .wonder-metric {
  font-family: var(--font-cinzel), 'Cinzel', serif;
  font-variant-numeric: lining-nums tabular-nums;
  font-size: 1.05rem;
  margin-bottom: 16px;
}
.wonder-card.card-editorial-large .wonder-summary {
  font-size: 1.15rem;
  line-height: 1.82;
  color: #f8fafc;
  font-weight: 300;
}
.wonder-card.card-editorial-large .btn-read-deep {
  padding: 11px 24px;
  font-size: 0.88rem;
  letter-spacing: 1.1px;
  box-shadow: 0 4px 18px rgba(0, 240, 255, 0.25);
}

/* Editorial Spotlight badges */
.editorial-kicker-gold {
  font-family: var(--font-cinzel);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 2.2px;
  color: #f59e0b;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.wonder-jewel-spotlight-badge {
  position: absolute;
  right: 20px;
  font-family: var(--font-cinzel);
  font-size: 0.70rem;
  font-weight: 800;
  color: #facc15;
  background: rgba(245, 158, 11, 0.22);
  border: 1px solid rgba(245, 158, 11, 0.6);
  padding: 4px 10px;
  border-radius: 6px;
  letter-spacing: 1px;
  white-space: nowrap;
}

/* Upper Horizontal Jewel Header Banner (Majestic Height: 66px, Centered on Card Axis) */
.wonder-card-jewel-header {
  height: 66px;
  min-height: 66px;
  max-height: 66px;
  box-sizing: border-box;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  text-align: center;
}

.wonder-jewel-left {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 auto;
  min-width: 0;
  overflow: hidden;
}

.wonder-jewel-icon {
  font-size: 1.20rem;
  line-height: 1;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.65));
  flex-shrink: 0;
}

.wonder-jewel-title,
.wonder-jewel-roman {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 2px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.85);
  white-space: nowrap;
  line-height: 1;
}

/* ====================================================
   Authentic Archival Plate Thumbnail inside Wonder Cards
   ==================================================== */
.wonder-card-thumb-wrap {
  position: relative;
  width: 100%;
  height: 195px;
  overflow: hidden;
  background: #020617;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.wonder-card.card-editorial-small .wonder-card-thumb-wrap {
  height: 185px;
}

.wonder-card.card-editorial-medium .wonder-card-thumb-wrap {
  height: 235px;
}

.wonder-card.card-editorial-large .wonder-card-thumb-wrap {
  height: 320px;
}

.wonder-card-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s ease;
  filter: brightness(0.92) contrast(1.05);
}

.wonder-card:hover .wonder-card-thumb-img {
  transform: scale(1.05);
  filter: brightness(1.02) contrast(1.08);
}

.wonder-card-thumb-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(6, 12, 28, 0.04) 0%, rgba(6, 12, 28, 0.25) 55%, rgba(6, 12, 28, 0.90) 100%);
}

.wonder-card-thumb-caption {
  position: absolute;
  bottom: 11px;
  left: 14px;
  right: 14px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  pointer-events: none;
}

.wonder-card-thumb-seal {
  font-family: var(--font-cinzel), 'Cinzel', serif;
  font-size: 0.68rem;
  letter-spacing: 0.10em;
  font-weight: 700;
  color: #2dd4bf;
  background: rgba(6, 12, 28, 0.88);
  backdrop-filter: blur(8px);
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(45, 212, 191, 0.35);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.65);
  text-transform: uppercase;
}

/* Inner Body with Spacious Typography */
.wonder-card-inner-body {
  padding: 22px 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
}

.wonder-card-col-main {
  display: flex;
  flex-direction: column;
}

.wonder-card-col-side {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.wonder-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.55rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 8px;
  line-height: 1.25;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.wonder-metric {
  font-family: var(--font-cinzel), 'Cinzel', serif;
  font-variant-numeric: lining-nums tabular-nums;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.4;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.wonder-summary {
  font-family: var(--font-body);
  font-size: 1rem;
  color: #cbd5e1;
  line-height: 1.7;
  margin-bottom: 16px;
  font-weight: 400;
}

.wonder-source-bar {
  font-size: 0.8rem;
  color: #94a3b8;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.4;
  padding: 8px 12px;
  background: rgba(4, 9, 24, 0.6);
  border-radius: 6px;
  border-left: 2.5px solid rgba(56, 189, 248, 0.5);
}

.wonder-source-text {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.wonder-actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.btn-read-deep {
  font-family: var(--font-cinzel);
  background: linear-gradient(135deg, rgba(14, 28, 64, 0.95) 0%, rgba(20, 38, 80, 0.95) 100%);
  border: 1.5px solid #38bdf8;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.8px;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-align: center;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.btn-read-deep:hover {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  border-color: #facc15;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(56, 189, 248, 0.4);
}

.wonder-share-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-share-whatsapp {
  font-family: var(--font-cinzel);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.4px;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-share-whatsapp:hover {
  background: rgba(37, 211, 102, 0.15);
  color: #25D366;
  border-color: #25D366;
}

.btn-copy-link {
  font-family: var(--font-cinzel);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.4px;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-copy-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.35);
}

/* ====================================================
   Imperial Pagination Console (Noble Rounded Rectangle & Expanded Input)
   ==================================================== */
.pagination-bar-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 36px;
  padding: 10px 20px;
  background: linear-gradient(135deg, rgba(8, 18, 42, 0.95) 0%, rgba(4, 12, 28, 0.97) 100%);
  border: 1.5px solid rgba(245, 158, 11, 0.45);
  border-radius: 12px; /* Elegant Rounded Rectangle Console (No clumsy ellipse) */
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.75), 0 0 16px rgba(245, 158, 11, 0.14);
  max-width: max-content;
  margin-left: auto;
  margin-right: auto;
  flex-wrap: wrap;
}

.pagination-btn {
  font-family: var(--font-cinzel), 'Cinzel', serif;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.6px;
  color: #ffffff;
  background: linear-gradient(135deg, #1e3a8a 0%, #0369a1 100%);
  border: 1.2px solid #38bdf8;
  padding: 6px 14px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.pagination-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: #facc15;
  box-shadow: 0 0 12px rgba(250, 204, 21, 0.4);
}

.pagination-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(14, 22, 40, 0.5);
}

.pagination-pages-list {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
}

.pagination-page-num {
  font-family: var(--font-cinzel), 'Cinzel', serif;
  font-size: 0.76rem;
  font-weight: 700;
  color: rgba(248, 250, 252, 0.9);
  background: rgba(12, 22, 46, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.18);
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.pagination-page-num:hover {
  color: #ffffff;
  border-color: #38bdf8;
  background: rgba(30, 58, 138, 0.7);
  transform: scale(1.08);
}

.pagination-page-num.active {
  color: #020617;
  background: linear-gradient(135deg, #facc15 0%, #f59e0b 100%);
  border-color: #ffffff;
  font-weight: 800;
  box-shadow: 0 0 14px rgba(250, 204, 21, 0.65);
  transform: scale(1.08);
}

.pagination-dots {
  color: var(--color-gold-bright);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0 3px;
}

/* Jump to Page Box (Spacious & Comfortable) */
.pagination-jump-box {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 8px;
  padding-left: 12px;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
  font-family: var(--font-cinzel), 'Cinzel', serif;
  font-size: 0.74rem;
  color: #cbd5e1;
}

.pagination-jump-input {
  width: 108px; /* Generously widened for 10.000.000, 20.000, etc. */
  background: rgba(10, 18, 40, 0.95);
  border: 1.5px solid #38bdf8;
  border-radius: 6px;
  color: #ffffff;
  padding: 6px 10px;
  text-align: center;
  font-family: var(--font-cinzel), 'Cinzel', serif;
  font-weight: 700;
  font-size: 0.82rem;
  outline: none;
  transition: all 0.2s ease;
}

.pagination-jump-input:focus {
  border-color: #facc15;
  box-shadow: 0 0 10px rgba(250, 204, 21, 0.4);
}

.pagination-jump-btn {
  font-family: var(--font-cinzel), 'Cinzel', serif;
  font-size: 0.74rem;
  font-weight: 700;
  background: linear-gradient(135deg, #1d4ed8 0%, #0284c7 100%);
  border: 1.2px solid #38bdf8;
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pagination-jump-btn:hover {
  background: #0284c7;
  border-color: #facc15;
  transform: translateY(-1px);
}

/* ====================================================
   View Mode Toolbar (Vitrină Carduri vs. Registru Compact)
   ==================================================== */
.view-mode-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  padding: 10px 16px;
  background: rgba(8, 16, 36, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  flex-wrap: wrap;
}

.view-mode-stats {
  font-family: var(--font-cinzel);
  font-size: 0.85rem;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.5px;
}

.view-mode-switch-group {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(4, 9, 24, 0.8);
  padding: 4px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.view-mode-btn {
  font-family: var(--font-cinzel);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.6px;
  color: #94a3b8;
  background: transparent;
  border: 1px solid transparent;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.view-mode-btn:hover {
  color: #ffffff;
}

.view-mode-btn.active {
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.8) 0%, rgba(3, 105, 161, 0.8) 100%);
  color: #ffffff;
  border-color: #38bdf8;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.3);
}

/* ====================================================
   The Grand Registry Table (Compact List Mode)
   ==================================================== */
.wonders-registry-table {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.registry-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: linear-gradient(135deg, rgba(8, 16, 36, 0.85) 0%, rgba(12, 22, 48, 0.92) 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px 18px;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.registry-row:hover {
  transform: translateX(4px);
  border-color: #00f0ff;
  background: linear-gradient(135deg, rgba(14, 28, 60, 0.95) 0%, rgba(20, 38, 80, 0.98) 100%);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6), 0 0 16px rgba(56, 189, 248, 0.2);
}

.registry-col-seal {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 140px;
  flex-shrink: 0;
}

.registry-seal-badge {
  font-family: var(--font-cinzel);
  font-size: 0.72rem;
  font-weight: 800;
  color: #facc15;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  padding: 4px 8px;
  border-radius: 6px;
  white-space: nowrap;
}

.registry-col-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.registry-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.registry-metric {
  font-family: var(--font-cinzel), 'Cinzel', serif;
  font-variant-numeric: lining-nums tabular-nums;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--color-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.registry-col-action {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.btn-registry-open {
  font-family: var(--font-cinzel);
  font-size: 0.76rem;
  font-weight: 700;
  color: #38bdf8;
  background: rgba(14, 24, 52, 0.8);
  border: 1px solid #38bdf8;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.registry-row:hover .btn-registry-open {
  background: #38bdf8;
  color: #020617;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.5);
}

/* ==========================================================================
   Interactive Community Sanctuary (Composer & Feed)
   ========================================================================== */
.community-section {
  background: linear-gradient(180deg, transparent 0%, rgba(4, 9, 24, 0.85) 100%);
}

.community-composer-box {
  background: rgba(8, 16, 36, 0.9);
  border: 1.5px solid var(--border-accent);
  border-radius: var(--radius-md);
  padding: 22px 26px;
  margin-bottom: 34px;
  box-shadow: var(--shadow-card);
}

.composer-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.composer-icon {
  font-size: 1.5rem;
}

.composer-title {
  font-family: var(--font-cinzel);
  font-size: 1.22rem;
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.composer-subtitle {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text-muted);
  font-style: italic;
}

.composer-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.composer-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 4px;
}

.community-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 22px;
}

.community-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}

.community-card:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.comm-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1e3a8a 0%, #0369a1 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-cinzel);
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 1px;
  border: 1.5px solid rgba(56, 189, 248, 0.6);
  flex-shrink: 0;
}

.btn-upvote {
  font-family: var(--font-cinzel);
  background: rgba(14, 24, 52, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #38bdf8;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: var(--transition);
}

.btn-upvote:hover, .btn-upvote.voted {
  background: #1e3a8a;
  color: #ffffff;
  border-color: #00f0ff;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.35);
}

/* ==========================================================================
   Modals & Drawers
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(2, 6, 20, 0.88);
  backdrop-filter: blur(18px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.show {
  display: flex;
}

#wonderDeepModal {
  z-index: 100005 !important;
}

.modal-container {
  background: linear-gradient(145deg, rgba(8, 22, 48, 0.96) 0%, rgba(4, 12, 32, 0.99) 100%);
  border: 1.5px solid rgba(45, 212, 191, 0.38);
  border-radius: var(--radius-lg);
  max-width: 820px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 0;
  position: relative;
  box-shadow: 0 25px 80px -10px rgba(0, 0, 0, 0.96), 0 0 35px rgba(45, 212, 191, 0.15);
  display: flex;
  flex-direction: column;
}

.admin-modal-container {
  max-width: 680px;
}

.modal-jewel-header {
  height: 52px;
  width: 100%;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  position: sticky;
  top: 0;
  z-index: 10;
}

.modal-jewel-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal-jewel-seal {
  font-family: var(--font-cinzel);
  font-size: 0.82rem;
  letter-spacing: 2px;
  font-weight: 800;
  color: #ffffff;
}

.modal-jewel-category {
  font-family: var(--font-cinzel);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: rgba(255, 255, 255, 0.9);
}

.modal-jewel-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-btn-fullscreen {
  font-family: var(--font-cinzel);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.6px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #ffffff;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.modal-btn-fullscreen:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: #ffffff;
  transform: translateY(-1px);
}

.modal-close {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 700;
  transition: var(--transition);
}

.modal-close:hover {
  background: #ef4444;
  border-color: #ef4444;
  color: #ffffff;
  transform: rotate(90deg);
}

.modal-container.is-fullscreen {
  max-width: 100vw;
  width: 100vw;
  height: 100vh;
  max-height: 100vh;
  border-radius: 0;
  margin: 0;
}

.modal-container.is-fullscreen .modal-body-content {
  max-width: 960px;
  margin: 0 auto;
  padding: 48px 36px 60px 36px;
}

.modal-body-content {
  padding: 30px 34px 34px 34px;
}

.modal-hero-box {
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-metric-pill {
  display: inline-block;
  font-family: var(--font-cinzel), 'Cinzel', serif;
  font-variant-numeric: lining-nums tabular-nums;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-accent);
  margin-bottom: 14px;
  line-height: 1.4;
  background: rgba(14, 24, 52, 0.85);
  color: #38bdf8;
}

.modal-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2.8rem;
  font-weight: 300;
  color: #ffffff;
  line-height: 1.15;
  letter-spacing: 0.035em;
  margin-bottom: 6px;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.85);
}

.deep-story-section {
  margin-bottom: 30px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.deep-section-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.deep-section-num {
  font-family: var(--font-cinzel), 'Cinzel', serif;
  font-variant-numeric: lining-nums tabular-nums;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  background: rgba(30, 58, 138, 0.3);
  border: 1.2px solid rgba(56, 189, 248, 0.45);
  color: #38bdf8;
}

.deep-section-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.7rem;
  font-weight: 400;
  letter-spacing: 0.025em;
  color: #38bdf8;
}

.deep-story-p {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.30rem;
  line-height: 1.98;
  color: #f8fafc;
  font-weight: 400;
  text-align: justify;
  letter-spacing: 0.012em;
}

.deep-story-quote-box {
  background: linear-gradient(145deg, rgba(8, 16, 36, 0.95) 0%, rgba(4, 10, 24, 0.98) 100%);
  border-left: 3.5px solid var(--color-gold-bright);
  border-top: 1px solid rgba(245, 158, 11, 0.2);
  border-right: 1px solid rgba(245, 158, 11, 0.2);
  border-bottom: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 0 10px 10px 0;
  padding: 22px 28px;
  margin-top: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), inset 0 0 16px rgba(245, 158, 11, 0.08);
}

.quote-text {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  color: #fef08a !important;
  font-size: 1.32rem !important;
  line-height: 1.92 !important;
  font-weight: 400;
}

/* ==========================================================================
   Visual Archives & Historical Plate Gallery in Reading Modal
   ========================================================================== */
.modal-visual-plate-box {
  background: linear-gradient(145deg, rgba(8, 16, 36, 0.96) 0%, rgba(4, 10, 24, 0.98) 100%);
  border: 1.8px solid rgba(250, 204, 21, 0.45);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  margin-bottom: 30px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.85), 0 0 25px rgba(250, 204, 21, 0.12);
}

.visual-plate-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 10px;
}

.visual-plate-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.visual-plate-kicker {
  font-family: var(--font-cinzel), 'Cinzel', serif;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 1.6px;
  color: #facc15;
}

.visual-plate-badge {
  font-family: var(--font-cinzel), 'Cinzel', serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.4);
  padding: 3px 10px;
  border-radius: var(--radius-sm);
}

.visual-plate-folio-counter {
  font-family: var(--font-cinzel), 'Cinzel', serif;
  font-size: 0.78rem;
  font-weight: 700;
  color: #facc15;
  background: rgba(250, 204, 21, 0.12);
  border: 1px solid rgba(250, 204, 21, 0.35);
  padding: 3px 12px;
  border-radius: var(--radius-full);
}

/* Tabs for Multi-Plate Navigation */
.visual-plate-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.visual-plate-tab-btn {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #94a3b8;
  font-family: var(--font-cinzel), 'Cinzel', serif;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.visual-plate-tab-btn:hover {
  border-color: #facc15;
  color: #ffffff;
  background: rgba(30, 41, 59, 0.9);
}

.visual-plate-tab-btn.active {
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.5) 0%, rgba(15, 23, 42, 0.9) 100%);
  border-color: #facc15;
  color: #facc15;
  box-shadow: 0 0 12px rgba(250, 204, 21, 0.25);
  font-weight: 700;
}

.visual-plate-frame {
  position: relative;
  width: 100%;
  min-height: 280px;
  max-height: 540px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1.5px solid rgba(250, 204, 21, 0.35);
  background: #020614;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.9), inset 0 0 20px rgba(0, 0, 0, 0.8);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.visual-plate-img {
  width: 100%;
  height: 100%;
  max-height: 520px;
  object-fit: contain !important; /* STRICT: Never crop/truncate manuscripts! */
  display: block;
  transition: transform 0.4s ease;
  cursor: zoom-in;
  background: #020614;
}

.visual-plate-img:hover {
  transform: scale(1.015);
}

.visual-plate-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(2, 6, 20, 0.85);
  border: 1.5px solid rgba(250, 204, 21, 0.5);
  color: #facc15;
  font-size: 1.4rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  z-index: 5;
  box-shadow: 0 4px 15px rgba(0,0,0,0.8);
}

.visual-plate-nav-btn:hover {
  background: #0f172a;
  border-color: #facc15;
  color: #ffffff;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 0 15px rgba(250, 204, 21, 0.4);
}

.visual-plate-nav-btn.prev-btn { left: 14px; }
.visual-plate-nav-btn.next-btn { right: 14px; }

/* Transparent Legal & Archival Attestation Card */
.visual-plate-attestation-card {
  background: rgba(10, 18, 38, 0.92);
  border: 1.2px solid rgba(250, 204, 21, 0.35);
  border-radius: 8px;
  padding: 16px 20px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
}

.attestation-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 20px;
}

@media (max-width: 768px) {
  .attestation-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

.attestation-col {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.attestation-label {
  font-family: var(--font-cinzel), 'Cinzel', serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #facc15;
  text-transform: uppercase;
}

.attestation-val {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.08rem;
  line-height: 1.4;
  color: #f8fafc;
  font-weight: 400;
}

.attestation-license {
  color: #38bdf8 !important;
  font-weight: 600;
}

.sphinx-source-card {
  background: rgba(12, 22, 48, 0.75);
  border: 1.5px solid var(--border-accent);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 24px;
}

.sphinx-source-card .source-label {
  font-family: var(--font-cinzel);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #38bdf8;
  margin-bottom: 5px;
}

.sphinx-source-card .source-text {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  color: #ffffff;
}

.modal-share-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 20px;
  flex-wrap: wrap;
}

.modal-action-btn {
  font-family: var(--font-cinzel);
  padding: 9px 20px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

/* Forms */
.form-group {
  margin-bottom: 14px;
}

.form-label {
  display: block;
  font-family: var(--font-cinzel);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.6px;
  margin-bottom: 6px;
  color: #ffffff;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  background: rgba(12, 22, 48, 0.9);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: #ffffff;
  font-size: 1rem;
  outline: none;
  font-family: var(--font-body);
  transition: var(--transition);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: #00f0ff;
  background: rgba(18, 32, 66, 0.95);
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.25);
}

/* Toast */
.toast-notice {
  position: fixed;
  bottom: 24px;
  right: 24px;
  max-width: min(520px, calc(100vw - 32px));
  background: linear-gradient(135deg, rgba(6, 12, 30, 0.96) 0%, rgba(15, 23, 42, 0.98) 100%);
  border: 1.5px solid #facc15;
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 12px;
  font-family: var(--font-cinzel), 'Cinzel', Georgia, serif;
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.55;
  letter-spacing: 0.4px;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.85), 0 0 18px rgba(250, 204, 21, 0.3);
  z-index: 3000;
  display: none;
  align-items: center;
  gap: 12px;
  animation: slideUpToast 0.3s ease;
  backdrop-filter: blur(8px);
}

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

/* Footer */
.footer {
  border-top: 1.5px solid var(--border-subtle);
  background: #020614;
  padding: 42px 0;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* ==========================================================================
   Grand Sanctuary Portals (Porțile Sacre ale Căilor I, II, III - Aripile Sfinxului)
   ========================================================================== */
.sanctuary-paths-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto 54px auto;
}

.sanctuary-path-card {
  background: linear-gradient(145deg, rgba(8, 20, 44, 0.96) 0%, rgba(4, 10, 26, 0.98) 100%);
  border: 1.8px solid rgba(212, 185, 150, 0.55);
  border-radius: 16px;
  padding: 24px 26px;
  display: flex;
  align-items: center;
  gap: 18px;
  cursor: pointer;
  box-shadow: 0 14px 40px -8px rgba(0, 0, 0, 0.92), 0 0 22px rgba(212, 185, 150, 0.12), inset 0 0 0 1px rgba(212, 185, 150, 0.22);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, background 0.3s ease;
}

.sanctuary-path-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(250, 204, 21, 0.85), transparent);
}

.sanctuary-path-card:hover {
  transform: translateY(-5px);
  border-color: #facc15;
  box-shadow: 0 24px 60px -8px rgba(0, 0, 0, 0.96), 0 0 35px rgba(250, 204, 21, 0.32), inset 0 0 0 1px rgba(250, 204, 21, 0.45);
  background: linear-gradient(145deg, rgba(14, 30, 62, 0.98) 0%, rgba(8, 18, 42, 0.98) 100%);
}

.path-icon {
  width: 58px;
  height: 58px;
  min-width: 58px;
  border-radius: 14px;
  background: rgba(212, 185, 150, 0.12);
  border: 1.5px solid rgba(212, 185, 150, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  line-height: 1;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6), inset 0 0 14px rgba(212, 185, 150, 0.18);
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.6));
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.sanctuary-path-card:hover .path-icon {
  transform: scale(1.08);
  border-color: #facc15;
  box-shadow: 0 8px 24px rgba(250, 204, 21, 0.4), inset 0 0 18px rgba(250, 204, 21, 0.25);
}

.path-content {
  flex: 1;
  min-width: 0;
}

.path-kicker {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-gold-bright);
  margin-bottom: 4px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

.path-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.55rem;
  font-weight: 400;
  color: #ffffff;
  margin-bottom: 4px;
  line-height: 1.25;
  letter-spacing: 0.02em;
}

.path-desc {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: rgba(226, 232, 240, 0.88);
  line-height: 1.45;
  font-weight: 400;
}

.path-arrow {
  font-family: var(--font-cinzel);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-gold-bright);
  opacity: 0.5;
  transition: transform 0.25s ease, opacity 0.25s ease;
  padding-left: 6px;
}

.sanctuary-path-card:hover .path-arrow {
  opacity: 1;
  transform: translateX(5px);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1120px) {
  .sanctuary-paths-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
  .wonders-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .wonder-card.card-editorial-small,
  .wonder-card.card-editorial-medium {
    grid-column: span 1;
  }
  .wonder-card.card-editorial-large {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }
  .section-title {
    font-size: 2.6rem;
  }
  .hero-fullscreen-section {
    height: calc(100vh - 58px);
    min-height: 480px;
  }
  .hero-fullscreen-overlay {
    padding-bottom: 28px;
  }
  .hero-banner-motto {
    font-size: 2.4rem;
    margin-bottom: 16px;
    letter-spacing: 0.02em;
  }
  .hero-actions {
    gap: 10px;
  }
  .hero-btn-main {
    width: 100%;
    max-width: 300px;
    padding: 10px 18px;
    font-size: 0.84rem;
  }
  .wonders-grid, .community-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .wonder-card.card-editorial-small,
  .wonder-card.card-editorial-medium,
  .wonder-card.card-editorial-large {
    grid-column: span 1 !important;
  }
  .wonder-card.card-editorial-large .wonder-title {
    font-size: 1.95rem;
  }
  .wonder-card.card-editorial-medium .wonder-title {
    font-size: 1.7rem;
  }
  .wonder-card.card-editorial-large .wonder-card-inner-body {
    padding: 24px 20px;
  }
  .composer-row {
    grid-template-columns: 1fr;
  }
  .spotlight-bar {
    padding: 14px;
  }
  .sanctuary-paths-grid {
    grid-template-columns: 1fr;
  }

  /* Mobile Typography Comfort for Reading Dossiers & Modals */
  .deep-story-p,
  .level3-content,
  .level3-content p,
  .level3-full-dossier-body p,
  .titan-dossier-wrapper p,
  .titan-dossier-p {
    font-size: 1.18rem !important;
    line-height: 1.85 !important;
    text-align: left !important;
  }

  .deep-section-title {
    font-size: 1.4rem !important;
  }

  .level3-content h3,
  .level3-full-dossier-body h3,
  .titan-dossier-wrapper h3 {
    font-size: 1.35rem !important;
    margin-top: 36px !important;
    margin-bottom: 16px !important;
  }

  .level3-content h4,
  .level3-full-dossier-body h4,
  .titan-dossier-wrapper h4 {
    font-size: 1.28rem !important;
  }

  .titan-dossier-p.titan-dossier-note,
  .level3-dossier-note {
    font-size: 1.12rem !important;
    line-height: 1.8 !important;
  }
}

/* Decrypt Console Trigger Button (Haute-Couture Refined Console) */
.level3-trigger-wrapper {
  text-align: center;
  margin: 30px auto 20px auto;
  display: flex;
  justify-content: center;
}

.btn-decrypt-console {
  font-family: var(--font-cinzel), 'Cinzel', serif;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(14, 28, 60, 0.95) 0%, rgba(6, 14, 32, 0.98) 100%);
  border: 1.5px solid rgba(245, 158, 11, 0.55);
  border-radius: 10px;
  padding: 10px 24px;
  max-width: 460px;
  width: auto;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.65), 0 0 16px rgba(245, 158, 11, 0.12);
  transition: all 0.25s ease;
  text-decoration: none;
}

.btn-decrypt-console:hover {
  transform: translateY(-2px);
  border-color: #facc15;
  background: linear-gradient(135deg, rgba(20, 42, 88, 0.98) 0%, rgba(10, 22, 50, 1) 100%);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.8), 0 0 24px rgba(245, 158, 11, 0.3);
}

.btn-decrypt-console .decrypt-main-text {
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: #f8fafc;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  position: relative;
  z-index: 2;
}

.btn-decrypt-console .decrypt-sub-tag {
  font-size: 0.70rem;
  letter-spacing: 0.8px;
  color: #facc15;
  font-weight: 600;
  font-family: var(--font-cinzel), serif;
  text-transform: uppercase;
  position: relative;
  z-index: 2;
}

.btn-decrypt-console .decrypt-sub-tag.active {
  color: #4ade80;
}

/* Starea de încărcare a traducerii: pulsantul își păstrează culoarea clasică, iar fontul devine verde turcoaz vizibil */
.btn-decrypt-console.is-translating,
.btn-decrypt-console.is-decrypting {
  background: linear-gradient(135deg, rgba(14, 28, 60, 0.98) 0%, rgba(6, 14, 32, 1) 100%) !important;
  border-color: rgba(45, 212, 191, 0.75) !important;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.85), 0 0 20px rgba(0, 245, 212, 0.35) !important;
}

.btn-decrypt-console.is-translating .decrypt-main-text,
.btn-decrypt-console.is-decrypting .decrypt-main-text {
  color: #00f5d4 !important; /* Verde turcoaz intens, ultra-vizibil */
  font-weight: 800 !important;
  letter-spacing: 1.4px;
  text-shadow: 0 0 14px rgba(0, 245, 212, 0.85), 0 1px 3px rgba(0, 0, 0, 0.9) !important;
}

.btn-decrypt-console.is-translating .decrypt-sub-tag,
.btn-decrypt-console.is-decrypting .decrypt-sub-tag {
  color: #5eead4 !important; /* Verde turcoaz deschis pentru procentaj și detalii */
  font-weight: 700 !important;
  letter-spacing: 1px;
  text-shadow: 0 0 10px rgba(94, 234, 212, 0.6) !important;
}

/* Linie subțire de progres verde turcoaz la baza pulsantului */
.btn-decrypt-console .decrypt-progress-track {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, #0d9488 0%, #00f5d4 100%);
  transition: width 0.25s ease-out;
  z-index: 1;
  pointer-events: none;
  box-shadow: 0 0 12px #00f5d4;
}

/* ==========================================================================
   Level 3: Extended Archive (Sursa Primară)
   ========================================================================== */
.level3-archive-container {
  margin-top: 20px;
  padding: 35px 30px;
  background: linear-gradient(145deg, rgba(8, 22, 48, 0.96) 0%, rgba(4, 12, 32, 0.99) 100%);
  border: 1.5px solid rgba(45, 212, 191, 0.38);
  border-radius: 14px;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.8), 0 12px 35px rgba(0, 0, 0, 0.6), 0 0 24px rgba(45, 212, 191, 0.12);
  position: relative;
  overflow: hidden;
  animation: fadeIn 0.6s ease-out forwards;
}

.level3-archive-container::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(245, 158, 11, 0.8), transparent);
}

.level3-header {
  text-align: center;
  margin-bottom: 30px;
}

.level3-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  color: #facc15;
  font-size: 1.85rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 15px;
  text-shadow: 0 0 14px rgba(250, 204, 21, 0.35);
}

.level3-divider {
  height: 1px;
  background: radial-gradient(circle, rgba(245,158,11,0.5) 0%, transparent 100%);
  width: 80%;
  margin: 0 auto;
}

.level3-content {
  color: #f8fafc;
  font-size: 1.28rem;
  line-height: 1.98;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 400;
}

.level3-content h3,
.level3-full-dossier-body h3,
.titan-dossier-wrapper h3 {
  color: #facc15 !important;
  font-family: var(--font-cinzel), 'Cinzel', Georgia, serif !important;
  font-size: 1.65rem !important;
  line-height: 1.4 !important;
  letter-spacing: 0.035em !important;
  margin-top: 48px !important;
  margin-bottom: 22px !important;
  padding-bottom: 12px !important;
  border-bottom: 1.5px solid rgba(250, 204, 21, 0.35) !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8) !important;
}

.level3-content h4,
.level3-full-dossier-body h4,
.titan-dossier-wrapper h4 {
  font-family: var(--font-cinzel), 'Cinzel', Georgia, serif !important;
  font-size: 1.55rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.035em !important;
  color: #facc15 !important;
  margin-top: 42px !important;
  margin-bottom: 18px !important;
  padding-bottom: 10px !important;
  border-bottom: 1px solid rgba(245, 158, 11, 0.3) !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

.level3-content p,
.level3-full-dossier-body p,
.titan-dossier-wrapper p,
.titan-dossier-p {
  font-family: 'Cormorant Garamond', Georgia, serif !important;
  font-size: 1.28rem !important;
  line-height: 1.98 !important;
  color: #f8fafc !important;
  font-weight: 400 !important;
  margin-bottom: 22px !important;
  text-align: justify;
  letter-spacing: 0.012em;
}

.titan-dossier-p.titan-dossier-note,
.level3-dossier-note {
  font-size: 1.20rem !important;
  line-height: 1.95 !important;
  color: #93c5fd !important;
  font-style: italic !important;
  margin-bottom: 22px !important;
}

.level3-content img {
  width: 100%;
  max-width: 600px;
  display: block;
  margin: 30px auto;
  border: 1px solid rgba(245,158,11,0.3);
  border-radius: 8px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.6);
  filter: sepia(0.3) contrast(1.1);
}

.level3-caption {
  text-align: center;
  font-size: 0.85rem;
  color: #94a3b8;
  font-style: italic;
  margin-top: -15px;
  margin-bottom: 30px;
}

.level3-footnotes {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.85rem;
  color: #94a3b8;
}

/* Polyglot Level 3 Reader Toolbar & Localized Dossier Cards */
.level3-polyglot-toolbar {
  margin-bottom: 28px;
  padding: 16px 20px;
  background: linear-gradient(135deg, rgba(16, 28, 64, 0.95), rgba(8, 14, 30, 0.98));
  border: 1px solid rgba(212, 185, 150, 0.35);
  border-radius: 12px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.level3-polyglot-tag {
  font-size: 0.72rem;
  letter-spacing: 2px;
  color: #d4b996;
  font-weight: 700;
  text-transform: uppercase;
  font-family: var(--font-sans);
}

.level3-polyglot-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: #ffffff;
  margin-top: 3px;
  font-family: var(--font-serif);
}

.level3-reader-toggle-group {
  display: flex;
  gap: 8px;
  background: rgba(0, 0, 0, 0.35);
  padding: 4px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.level3-reader-btn {
  background: transparent;
  border: 1px solid transparent;
  color: rgba(255, 255, 255, 0.65);
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: var(--font-cinzel), 'Cinzel', serif;
  font-variant-numeric: lining-nums tabular-nums;
}

.level3-reader-btn.active {
  background: rgba(212, 185, 150, 0.2);
  border-color: rgba(212, 185, 150, 0.6);
  color: #fef08a;
  box-shadow: 0 0 10px rgba(212, 185, 150, 0.25);
}

.level3-reader-btn:hover:not(.active) {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.level3-synthesis-box {
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 24px;
}

.level3-metric-callout {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(45, 212, 191, 0.1);
  border: 1px solid rgba(45, 212, 191, 0.35);
  border-radius: 8px;
  color: #5eead4;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 16px;
}

/* ====================================================
   AERATED HOME PAGE ARCHITECTURE & MODAL EXHIBITIONS
   ==================================================== */
.search-bar-row .btn-execute-search,
.search-bar-row .btn-random-wonder,
.exploration-sparks-container,
.spotlight-bar {
  display: none !important;
}

.search-bar-row {
  max-width: 760px;
  margin: 0 auto 24px auto;
  width: 100%;
}

.search-bar-wrap {
  max-width: 100%;
  width: 100%;
}

.search-depth-bar {
  max-width: 920px;
  margin: 0 auto 22px auto;
  padding: 10px 16px;
  background: rgba(6, 16, 36, 0.7);
  border: 1px solid rgba(45, 212, 191, 0.22);
  border-radius: 14px;
}

.depth-bar-kicker {
  font-size: 0.68rem;
  margin-bottom: 8px;
}

.depth-buttons-wrap {
  gap: 6px;
}

.depth-btn {
  padding: 7px 6px;
  border-radius: 10px;
}

/* Dedicated Museum Hall & Community Modals */
.gallery-modal-overlay,
.community-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 4, 15, 0.92);
  backdrop-filter: blur(14px);
  z-index: 99990;
  display: none;
  justify-content: center;
  align-items: center;
  padding: 24px;
}

.gallery-modal-container,
.community-modal-container {
  max-width: 1180px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  background: linear-gradient(145deg, #091226 0%, #030816 100%);
  border: 1.5px solid rgba(245, 158, 11, 0.4);
  border-radius: 20px;
  padding: 36px 32px;
  position: relative;
  box-shadow: 0 0 60px rgba(0,0,0,0.95), 0 0 30px rgba(245, 158, 11, 0.15);
}

.gallery-modal-container .modal-close,
.community-modal-container .modal-close {
  position: absolute;
  top: 18px;
  right: 22px;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: #facc15;
  cursor: pointer;
  z-index: 10;
  transition: transform 0.2s ease;
}

.gallery-modal-container .modal-close:hover,
.community-modal-container .modal-close:hover {
  transform: scale(1.15);
  color: #ffffff;
}

/* ====================================================
   Haute-Couture Digital VIP Pass Card (Treapta III)
   ==================================================== */
.digital-vip-card-wrap {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  aspect-ratio: 1.586 / 1;
  background: linear-gradient(135deg, #0b1c44 0%, #030818 60%, #1e1b4b 100%);
  border: 1.8px solid rgba(250, 204, 21, 0.85);
  border-radius: 16px;
  padding: 22px 24px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.9), 0 0 30px rgba(250, 204, 21, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
}

.digital-vip-card-wrap::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 20%, rgba(250, 204, 21, 0.15), transparent 55%);
  pointer-events: none;
}

.vip-card-chip {
  width: 42px;
  height: 30px;
  background: linear-gradient(135deg, #eab308 0%, #ca8a04 100%);
  border-radius: 5px;
  border: 1px solid #fef08a;
  position: absolute;
  top: 60px;
  left: 24px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

.vip-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.vip-card-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.vip-card-logo {
  font-size: 1.2rem;
}

.vip-card-title {
  font-family: var(--font-cinzel), 'Cinzel', serif;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #ffffff;
}

.vip-card-badge {
  font-family: var(--font-cinzel), 'Cinzel', serif;
  font-size: 0.64rem;
  font-weight: 700;
  color: #facc15;
  background: rgba(250, 204, 21, 0.15);
  border: 1px solid rgba(250, 204, 21, 0.5);
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 1px;
}

.vip-card-tier {
  font-family: var(--font-cinzel), 'Cinzel', serif;
  font-size: 0.68rem;
  font-weight: 700;
  color: #38bdf8;
  letter-spacing: 1px;
  margin-top: 36px;
}

.vip-card-name {
  font-family: var(--font-cinzel), 'Cinzel', serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 1px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vip-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 8px;
}

.vip-card-label {
  display: block;
  font-size: 0.56rem;
  font-family: var(--font-cinzel), 'Cinzel', serif;
  color: #94a3b8;
  letter-spacing: 1px;
}

.vip-card-value {
  font-family: var(--font-mono), monospace;
  font-size: 0.76rem;
  font-weight: 700;
  color: #facc15;
}

