/* ==========================================================================
   N.K. CROSS - BESPOKE LUXURY EDITORIAL & INTERACTIVE PLATFORM
   Aesthetic: Obsidian Noir, Brushed Champagne Gold & High-End Typography
   ========================================================================== */

:root {
  /* Editorial Luxury Color System */
  --bg-deep: #060709;
  --bg-surface: #0c0e14;
  --bg-card: #12151e;
  --bg-card-hover: #181d2a;
  --bg-elevated: #1e2433;
  --bg-glass: rgba(12, 14, 20, 0.92);
  --bg-glass-card: rgba(18, 21, 30, 0.85);

  --gold-primary: #c5a059;
  --gold-light: #e8d39e;
  --gold-dark: #8c6d32;
  --gold-glow: rgba(197, 160, 89, 0.22);
  
  --crimson-wine: #9e2a2b;
  --crimson-vibrant: #d9383a;
  --crimson-glow: rgba(217, 56, 58, 0.25);
  
  --tactical-blue: #3b82f6;
  --tactical-cyan: #06b6d4;
  --silver-line: #94a3b8;
  --amber-gold: #d97706;

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-gold: #e8d39e;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-gold: rgba(197, 160, 89, 0.35);
  --border-gold-strong: rgba(197, 160, 89, 0.8);

  --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.5);
  --shadow-elevated: 0 15px 40px -10px rgba(0, 0, 0, 0.85);
  --shadow-gold: 0 0 30px rgba(197, 160, 89, 0.2);

  --font-serif: 'Cinzel', 'Playfair Display', Georgia, serif;
  --font-sans: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;

  --ease-editorial: cubic-bezier(0.19, 1, 0.22, 1);
}

/* Global Reset & Performance Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
  min-height: 100vh;
  background: 
    radial-gradient(ellipse 70% 40% at 50% 0%, rgba(197, 160, 89, 0.06), transparent 70%),
    radial-gradient(ellipse 60% 40% at 90% 40%, rgba(158, 42, 43, 0.04), transparent 60%),
    var(--bg-deep);
  background-attachment: fixed;
}

::selection {
  background: var(--gold-primary);
  color: #060709;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s var(--ease-editorial);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Typography Scale */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  letter-spacing: 0.05em;
  color: #ffffff;
  font-weight: 700;
  line-height: 1.2;
}

.text-gold { color: var(--gold-primary); }
.text-crimson { color: var(--crimson-vibrant); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }

/* Top Announcement Banner */
.announcement-bar {
  background: linear-gradient(90deg, #12151e 0%, #1f1818 50%, #12151e 100%);
  border-bottom: 1px solid var(--border-gold);
  padding: 0.55rem 1.5rem;
  font-size: 0.78rem;
  color: var(--text-secondary);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  position: relative;
  z-index: 1001;
}

.announcement-bar strong {
  color: var(--gold-light);
}

.announcement-link {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 700;
  transition: color 0.2s ease;
}

.announcement-link:hover {
  color: var(--gold-primary);
}

.announcement-dismiss {
  position: absolute;
  right: 1.2rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
}

/* Navigation Bar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.9rem 0;
  transition: background 0.3s ease;
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.nav-brand {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.brand-title {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: #ffffff;
  text-transform: uppercase;
}

.brand-subtitle {
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  color: var(--gold-primary);
  text-transform: uppercase;
  font-weight: 600;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  position: relative;
  padding: 0.3rem 0;
  white-space: nowrap;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold-primary);
  transition: width 0.3s var(--ease-editorial);
}

.nav-links a:hover {
  color: #ffffff;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.nav-vip-btn {
  font-size: 0.72rem;
  padding: 0.45rem 1rem;
  letter-spacing: 0.1em;
  border-radius: 50px;
  border-color: var(--gold-primary);
  color: var(--gold-primary);
  white-space: nowrap;
}

.nav-vip-btn:hover {
  background: var(--gold-primary);
  color: #060709;
}

.lang-selector {
  display: flex;
  gap: 0.2rem;
  background: var(--bg-surface);
  padding: 0.2rem;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-subtle);
}

.lang-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0.25rem 0.45rem;
  border-radius: 2px;
  transition: all 0.2s ease;
}

.lang-btn.active, .lang-btn:hover {
  color: #060709;
  background: var(--gold-primary);
}

/* Luxury Editorial Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.8rem;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: all 0.3s var(--ease-editorial);
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold-primary) 50%, var(--gold-dark) 100%);
  color: #060709;
  box-shadow: 0 4px 20px var(--gold-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(197, 160, 89, 0.4);
}

.btn-crimson {
  background: linear-gradient(135deg, var(--crimson-vibrant) 0%, var(--crimson-wine) 100%);
  color: #ffffff;
  box-shadow: 0 4px 20px var(--crimson-glow);
}

.btn-crimson:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(217, 56, 58, 0.45);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-gold);
}

.btn-outline:hover {
  background: rgba(197, 160, 89, 0.08);
  border-color: var(--gold-primary);
  color: var(--gold-primary);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  font-size: 0.72rem;
}

.btn-ghost:hover {
  background: rgba(200, 169, 90, 0.06);
  border-color: var(--gold-muted);
  color: var(--gold-primary);
  transform: translateY(-2px);
}

.btn-dossier {
  letter-spacing: 0.05em;
}

/* Bespoke Badges */
.badge-ku {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: #041d30;
  color: #ff9900;
  border: 1px solid rgba(255, 153, 0, 0.4);
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.badge-heat {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: rgba(158, 42, 43, 0.2);
  color: #fca5a5;
  border: 1px solid rgba(158, 42, 43, 0.5);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Hero Section */
.hero {
  padding: 5.5rem 0 4.5rem;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gold-primary);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
  border-left: 2px solid var(--gold-primary);
  padding-left: 0.8rem;
}

.hero-title {
  font-size: 3.1rem;
  line-height: 1.15;
  margin-bottom: 1.4rem;
  font-weight: 800;
}

.hero-title span {
  background: linear-gradient(135deg, #ffffff 0%, var(--gold-light) 60%, var(--gold-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 2.2rem;
  max-width: 560px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  margin-bottom: 2.8rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.8rem;
  max-width: 500px;
}

.stat-value {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--gold-primary);
  display: block;
}

.stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}

/* Featured Book Showcase */
.featured-wrap {
  position: relative;
}

.featured-card {
  background: var(--bg-glass-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 1.8rem;
  box-shadow: var(--shadow-elevated), var(--shadow-gold);
  text-align: center;
  backdrop-filter: blur(16px);
  transition: all 0.4s var(--ease-editorial);
}

.featured-card:hover {
  border-color: var(--border-gold-strong);
  transform: translateY(-4px);
}

.featured-cover {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  box-shadow: 0 15px 35px rgba(0,0,0,0.85);
  margin-bottom: 1.2rem;
}

/* Section Shared Headers */
.section {
  padding: 5.5rem 0;
  position: relative;
}

.section-head {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-tag {
  font-size: 0.75rem;
  color: var(--gold-primary);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-weight: 700;
  margin-bottom: 0.6rem;
  display: block;
}

.section-title {
  font-size: 2.4rem;
  margin-bottom: 1rem;
}

.section-desc {
  max-width: 660px;
  margin: 0 auto;
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* Sagas Overview Shelf */
.sagas-guide-shelf {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
  margin-top: 1rem;
}

.saga-guide-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-top: 4px solid var(--gold-primary);
  border-radius: var(--radius-md);
  padding: 2.2rem;
  display: flex;
  flex-direction: column;
  transition: all 0.3s var(--ease-editorial);
}

.saga-guide-card.wildfire { border-top-color: #c5a059; }
.saga-guide-card.shadow { border-top-color: #3b82f6; }
.saga-guide-card.mafia { border-top-color: #9e2a2b; }
.saga-guide-card.deepwater { border-top-color: #00bcd4; }

.saga-guide-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-elevated);
}

.saga-badge-header {
  font-size: 0.72rem;
  color: var(--gold-primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 0.5rem;
  display: block;
}

.saga-guide-title {
  font-size: 1.5rem;
  margin-bottom: 0.8rem;
}

.saga-guide-meta {
  background: rgba(0,0,0,0.3);
  border-radius: var(--radius-xs);
  padding: 0.9rem 1.1rem;
  margin: 1rem 0 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.saga-guide-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  flex-grow: 1;
}

/* Filter Controls */
.filter-tabs {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-xs);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: all 0.25s var(--ease-editorial);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--gold-primary);
  color: #060709;
  border-color: var(--gold-primary);
  box-shadow: 0 0 15px var(--gold-glow);
}

/* Book Catalog Grid */
.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 2.2rem;
}

.book-card {
  background: var(--bg-glass-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.35s var(--ease-editorial);
  backdrop-filter: blur(8px);
}

.book-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-gold);
  box-shadow: var(--shadow-elevated), var(--shadow-gold);
}

.book-cover-box {
  position: relative;
  aspect-ratio: 1 / 1.5;
  overflow: hidden;
  background: #000;
}

.book-cover-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-editorial);
}

.book-card:hover .book-cover-box img {
  transform: scale(1.04);
}

.book-badges-floating {
  position: absolute;
  top: 0.8rem;
  left: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  z-index: 2;
}

.book-content {
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.book-series-tag {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gold-primary);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.35rem;
}

.book-title {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.book-tropes-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1.1rem;
}

.trope-item {
  font-size: 0.7rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-xs);
  color: var(--text-secondary);
}

.book-synopsis {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 1.4rem;
  flex-grow: 1;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.book-actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

.book-actions-grid.book-actions-three {
  grid-template-columns: 1fr 1fr;
}

.book-actions-grid.book-actions-three .btn-dossier {
  grid-column: 1 / -1;
  text-align: center;
  padding: 0.5rem;
  font-size: 0.7rem;
}

.book-actions-grid .btn {
  padding: 0.65rem 0.75rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}

/* ==========================================================================
   D3.JS INTERACTIVE CHARACTER & UNIVERSE NODE GRAPH (FULL-WIDTH CINEMATIC)
   ========================================================================== */
.graph-section-wrapper {
  background: 
    radial-gradient(circle at 50% 50%, rgba(18, 21, 30, 0.95), var(--bg-deep)),
    linear-gradient(180deg, var(--bg-deep) 0%, rgba(18, 21, 30, 0.6) 50%, var(--bg-deep) 100%);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.graph-layout {
  position: relative;
  width: 100%;
  margin-top: 2rem;
}

.graph-canvas-container {
  background: radial-gradient(circle at 50% 50%, #111520 0%, #060709 100%);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  position: relative;
  width: 100%;
  height: 750px;
  overflow: hidden;
  box-shadow: var(--shadow-elevated), var(--shadow-gold);
}

#d3-universe-graph {
  width: 100%;
  height: 100%;
  cursor: grab;
}

#d3-universe-graph:active {
  cursor: grabbing;
}

/* Faction Filter Controls (Top Left) */
.graph-overlay-controls {
  position: absolute;
  top: 1.2rem;
  left: 1.2rem;
  display: flex;
  gap: 0.5rem;
  z-index: 10;
  flex-wrap: wrap;
}

.graph-ctrl-btn {
  background: rgba(12, 14, 20, 0.88);
  border: 1px solid var(--border-gold);
  color: var(--text-primary);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.4rem 0.9rem;
  border-radius: 50px;
  cursor: pointer;
  backdrop-filter: blur(10px);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: all 0.25s ease;
}

.graph-ctrl-btn:hover,
.graph-ctrl-btn.active {
  background: var(--gold-primary);
  color: #060709;
  box-shadow: 0 0 15px var(--gold-glow);
}

/* Compact Horizontal Legend Bar (Bottom Center) */
.graph-legend-box {
  position: absolute;
  bottom: 1.2rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(12, 14, 20, 0.92);
  border: 1px solid var(--border-gold);
  border-radius: 50px;
  padding: 0.45rem 1.2rem;
  font-size: 0.75rem;
  color: var(--text-secondary);
  backdrop-filter: blur(16px);
  z-index: 10;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1.1rem;
  max-width: 95%;
  flex-wrap: wrap;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(0,0,0,0.8);
}

.legend-title {
  display: none;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  padding: 0.25rem 0.6rem;
  border-radius: 50px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.legend-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.legend-line-indicator {
  width: 18px;
  height: 3px;
  border-radius: 2px;
  flex-shrink: 0;
}

.ind-romance { background: var(--crimson-vibrant); border-top: 1px dashed #fff; }
.ind-family { background: var(--silver-line); }
.ind-brotherhood { background: var(--amber-gold); }
.ind-intel { background: var(--tactical-cyan); }
.ind-crossover { background: var(--gold-primary); border-top: 1px dotted #fff; }

/* Floating Slide-in Dossier Inspector Panel */
.dossier-inspector-panel {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  width: 370px;
  max-height: calc(100% - 2.4rem);
  background: rgba(14, 17, 24, 0.97);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 1.8rem 1.6rem;
  box-shadow: -20px 0 50px rgba(0, 0, 0, 0.95), 0 0 30px rgba(197, 160, 89, 0.2);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  z-index: 30;
  overflow-y: auto;
  transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1), opacity 0.35s ease;
  transform: translateX(115%);
  opacity: 0;
  pointer-events: none;
}

.dossier-inspector-panel.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

/* Custom Luxury Scrollbar for Dossier Panel */
.dossier-inspector-panel::-webkit-scrollbar {
  width: 5px;
}

.dossier-inspector-panel::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
}

.dossier-inspector-panel::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--gold-dark) 0%, var(--gold-primary) 100%);
  border-radius: 10px;
}

.dossier-inspector-panel::-webkit-scrollbar-thumb:hover {
  background: var(--gold-light);
}

.dossier-close-btn {
  position: absolute;
  top: 0.9rem;
  right: 1.1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: all 0.2s ease;
}

.dossier-close-btn:hover {
  color: #ffffff;
  background: rgba(217, 56, 58, 0.3);
  border-color: var(--crimson-vibrant);
}

.dossier-hint-badge {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  background: rgba(18, 21, 30, 0.9);
  border: 1px solid var(--border-gold);
  color: var(--gold-primary);
  padding: 0.4rem 0.9rem;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  backdrop-filter: blur(10px);
  z-index: 10;
  pointer-events: none;
  animation: pulseGold 2.5s infinite;
}

@keyframes pulseGold {
  0%, 100% { box-shadow: 0 0 0 0 rgba(197, 160, 89, 0.4); }
  50% { box-shadow: 0 0 15px 4px rgba(197, 160, 89, 0.2); }
}

.dossier-reopen-btn.visible {
  display: block;
}

.dossier-avatar-wrap {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 2px solid var(--gold-primary);
  overflow: hidden;
  margin: 0 auto 0.8rem;
  box-shadow: 0 0 20px var(--gold-glow);
}

.dossier-avatar-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dossier-title-name {
  font-size: 1.35rem;
  text-align: center;
  margin-bottom: 0.2rem;
}

.dossier-code-alias {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--gold-primary);
  text-align: center;
  display: block;
  margin-bottom: 0.8rem;
  letter-spacing: 0.1em;
}

.dossier-spec-table {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  padding: 0.8rem;
  margin: 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 0.8rem;
}

.dossier-spec-row {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  padding-bottom: 0.3rem;
}

.dossier-spec-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.dossier-spec-row span {
  color: var(--text-muted);
  text-transform: uppercase;
  font-size: 0.68rem;
  letter-spacing: 0.05em;
}

.dossier-spec-row strong {
  color: var(--text-primary);
  text-align: right;
}

.dossier-bio-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* ==========================================================================
   LUXURY HIGH-CONVERTING READER MAGNET / VIP CLUB CARD
   ========================================================================== */
.vip-card-banner {
  background: 
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(197, 160, 89, 0.14) 0%, transparent 80%),
    linear-gradient(180deg, #161a25 0%, #0d1017 100%);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 4rem 2.5rem;
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.9), 0 0 35px rgba(197, 160, 89, 0.15);
  position: relative;
  overflow: hidden;
}

.vip-card-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold-primary), var(--gold-light), transparent);
}

.vip-content-limit {
  max-width: 720px;
  margin: 0 auto;
}

.vip-tagline {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.25em;
  color: var(--gold-primary);
  text-transform: uppercase;
  background: rgba(197, 160, 89, 0.08);
  border: 1px solid var(--border-gold);
  padding: 0.4rem 1.1rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
}

.vip-title {
  font-size: 2.3rem;
  margin-bottom: 1.2rem;
  line-height: 1.2;
}

.vip-title span {
  color: var(--gold-primary);
}

.vip-text {
  font-size: 1.02rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 2rem;
}

.vip-badges-row {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  margin-bottom: 2.2rem;
  flex-wrap: wrap;
}

.vip-badge-item {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-xs);
  letter-spacing: 0.05em;
}

/* Newsletter Form Elements */
.newsletter-form {
  width: 100%;
  margin: 0 auto;
}

.newsletter-form-row {
  display: flex;
  gap: 0.8rem;
  max-width: 600px;
  margin: 0 auto 1.4rem;
  align-items: stretch;
}

.newsletter-input-field {
  flex-grow: 1;
  background: rgba(6, 7, 9, 0.8);
  border: 1px solid var(--border-gold);
  color: #ffffff;
  padding: 1.1rem 1.4rem;
  border-radius: var(--radius-xs);
  font-size: 0.95rem;
  font-family: var(--font-sans);
  transition: all 0.3s ease;
}

.newsletter-input-field::placeholder {
  color: var(--text-muted);
}

.newsletter-input-field:focus {
  outline: none;
  border-color: var(--gold-primary);
  box-shadow: 0 0 20px var(--gold-glow);
  background: #060709;
}

.newsletter-form-row .btn {
  padding: 1.1rem 2rem;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  font-weight: 800;
}

.newsletter-privacy-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   READER TESTIMONIALS / SOCIAL PROOF SECTION
   ========================================================================== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 1rem;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2.2rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.3s var(--ease-editorial);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-gold);
  box-shadow: var(--shadow-elevated);
}

.testimonial-stars {
  color: #fbbf24;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  letter-spacing: 0.2em;
}

.testimonial-quote {
  font-size: 0.95rem;
  color: var(--text-primary);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 1.4rem;
  flex-grow: 1;
}

.testimonial-author-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 1rem;
  font-size: 0.8rem;
}

.testimonial-author-name {
  color: #fff;
  font-weight: 700;
}

.testimonial-source {
  color: var(--gold-primary);
  font-weight: 600;
}

/* ==========================================================================
   EXIT-INTENT / TIMED LUXURY POPUP MODAL
   ========================================================================== */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.4s var(--ease-editorial);
}

.popup-overlay.active {
  display: flex;
  opacity: 1;
}

.popup-card {
  background: 
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(197, 160, 89, 0.16) 0%, transparent 80%),
    linear-gradient(180deg, #161a25 0%, #0d1017 100%);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  max-width: 600px;
  width: 100%;
  padding: 3rem 2.5rem;
  position: relative;
  text-align: center;
  box-shadow: 0 25px 60px rgba(0,0,0,0.95), 0 0 40px rgba(197, 160, 89, 0.2);
  transform: translateY(20px);
  transition: transform 0.4s var(--ease-editorial);
}

.popup-overlay.active .popup-card {
  transform: translateY(0);
}

.popup-dismiss-btn {
  position: absolute;
  top: 1.2rem;
  right: 1.4rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
}

.popup-dismiss-btn:hover {
  color: #fff;
}

/* Spotify Player Layout */
.spotify-shelf {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 2.5rem;
}

.spotify-player-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.8rem;
  transition: all 0.3s var(--ease-editorial);
  display: flex;
  flex-direction: column;
}

.spotify-player-box:hover {
  border-color: #1db954;
  box-shadow: 0 10px 30px rgba(29, 185, 84, 0.15);
  transform: translateY(-4px);
}

.spotify-header-row {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 1.2rem;
}

.spotify-icon-svg {
  width: 40px;
  height: 40px;
  color: #1db954;
  flex-shrink: 0;
}

.spotify-tracklist {
  background: rgba(0, 0, 0, 0.4);
  border-radius: var(--radius-xs);
  padding: 1rem;
  margin: 1.2rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.track-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  padding-bottom: 0.4rem;
}

.track-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.track-title {
  color: var(--text-primary);
  font-weight: 500;
}

.track-artist {
  color: var(--text-muted);
  font-size: 0.75rem;
  margin-left: 0.5rem;
}

/* Author Section */
.author-grid-layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 3.5rem;
  align-items: center;
}

.author-portrait-frame {
  border-radius: var(--radius-md);
  border: 2px solid var(--gold-primary);
  box-shadow: var(--shadow-elevated), var(--shadow-gold);
  overflow: hidden;
}

.author-portrait-frame img {
  width: 100%;
  height: auto;
  filter: contrast(104%);
}

.author-text-wrap h3 {
  font-size: 2.2rem;
  margin-bottom: 1.2rem;
}

.author-text-wrap p {
  color: var(--text-secondary);
  font-size: 1.02rem;
  line-height: 1.8;
  margin-bottom: 1.2rem;
}

/* Footer */
.footer {
  background: #030405;
  border-top: 1px solid var(--border-subtle);
  padding: 3.5rem 0 2.5rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-nav-links {
  display: flex;
  gap: 2rem;
}

.footer-nav-links a:hover {
  color: var(--gold-primary);
}

/* Sample Reader Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 2500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

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

.modal-sheet {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  max-width: 680px;
  width: 100%;
  padding: 2.5rem;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.95);
  max-height: 88vh;
  overflow-y: auto;
}

.modal-dismiss {
  position: absolute;
  top: 1.2rem;
  right: 1.4rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
}

.modal-dismiss:hover {
  color: #fff;
}

/* Modal interior elements */
.modal-series-label {
  font-size: 0.72rem;
  color: var(--gold-primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  display: block;
  margin-bottom: 0.4rem;
}

.modal-book-title {
  font-size: 1.7rem;
  color: #fff;
  margin-bottom: 0.2rem;
  line-height: 1.15;
}

.modal-extract-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1rem;
  margin-top: 0.5rem;
  margin-bottom: 0.9rem;
  font-style: italic;
}

.modal-body-text {
  color: var(--text-secondary);
  font-size: 0.97rem;
  line-height: 1.85;
  max-height: 46vh;
  overflow-y: auto;
  padding-right: 0.6rem;
  scroll-behavior: smooth;
}

.modal-body-text::-webkit-scrollbar { width: 4px; }
.modal-body-text::-webkit-scrollbar-track { background: transparent; }
.modal-body-text::-webkit-scrollbar-thumb { background: var(--gold-primary); border-radius: 4px; }

.modal-body-text p {
  margin-bottom: 1.1rem;
}

.modal-body-text em {
  color: var(--gold-primary);
  font-style: normal;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 1rem;
}

.modal-footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.2rem;
  margin-top: 1.6rem;
  flex-wrap: wrap;
}

.modal-footer-meta {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.modal-footer-ku {
  color: #4ade80;
  font-weight: 600;
}

.modal-footer-actions {
  display: flex;
  gap: 0.7rem;
  flex-shrink: 0;
}

/* Badge new — Deep Water */
.badge-new {
  background: rgba(0, 200, 120, 0.18) !important;
  color: #4ade80 !important;
  border: 1px solid rgba(74, 222, 128, 0.35) !important;
}

/* D3 Graph SVG styling */
.node-circle {
  cursor: pointer;
  transition: all 0.3s ease;
}

.node-circle:hover {
  filter: drop-shadow(0 0 10px var(--gold-primary));
}

.node-label {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  fill: #ffffff;
  text-anchor: middle;
  pointer-events: none;
  text-shadow: 0 2px 4px rgba(0,0,0,0.9);
}

.link-line {
  stroke-opacity: 0.65;
  transition: all 0.3s ease;
  cursor: pointer;
}

.link-line.romance { stroke: var(--crimson-vibrant); stroke-width: 2.5px; stroke-dasharray: 6, 6; }
.link-line.family { stroke: var(--silver-line); stroke-width: 2px; }
.link-line.intel { stroke: var(--tactical-cyan); stroke-width: 2px; }
.link-line.crossover { stroke: var(--gold-primary); stroke-width: 1.8px; stroke-dasharray: 4, 4; }
.link-line.brotherhood { stroke: var(--amber-gold); stroke-width: 2px; }

.link-line:hover {
  stroke-opacity: 1;
  stroke-width: 4px;
}

/* Responsive Media Queries */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-eyebrow {
    margin: 0 auto 1.2rem;
    border-left: none;
    padding-left: 0;
  }
  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-stats {
    margin: 0 auto;
  }
  .graph-layout {
    grid-template-columns: 1fr;
  }
  .author-grid-layout {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .author-portrait-frame {
    max-width: 280px;
    margin: 0 auto;
  }
  .nav-links {
    display: none;
  }
  .newsletter-form-row {
    flex-direction: column;
  }
  .vip-card-banner {
    padding: 3rem 1.5rem;
  }
  .vip-title {
    font-size: 1.8rem;
  }
}
