@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;700;900&family=Cinzel+Decorative:wght@700;900&family=UnifrakturMaguntia&family=MedievalSharp&family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;600;700&display=swap');

:root {
  --bg-void: #030508;
  --bg-panel: rgba(10, 14, 20, 0.95);
  --bg-panel-solid: #090d14;
  --bg-panel-2: rgba(15, 20, 28, 0.96);
  --bg-card: rgba(12, 16, 24, 0.92);
  --bg-card-hover: rgba(19, 26, 38, 0.98);

  /* Gothic Lich King & Dark Iron Palette */
  --iron-dark: #151a22;
  --iron-border: #424c5c;
  --iron-highlight: #718196;

  /* Fuego/brasas: acento cálido, deliberadamente distinto del dorado de
     runa para que no compitan por el mismo protagonismo. */
  --ember-gold: #ff7a1e;
  --ember-gold-bright: #ff9d3b;
  --ember-dark: #b6480a;
  --ember-glow: rgba(255, 122, 30, 0.45);

  /* Lich King Frost & Rune Palette */
  --ice-bright: #8fe3ff;
  --ice-mid: #4f9fc9;
  --ice-deep: #164e73;
  --ice-dim: #1a384e;
  --ice-glow: rgba(143, 227, 255, 0.4);
  --ice-glow-intense: rgba(143, 227, 255, 0.75);

  /* Oro de runa: mas saturado que un "gold" generico de plantilla --
     el oro real de la UI de WoW pega fuerte, no es un beige apagado. */
  --rune-gold: #e0af35;
  --rune-gold-bright: #ffd35e;
  --rune-gold-dark: #6b4a12;
  --gold-glow: rgba(224, 175, 53, 0.5);

  --text-main: #dbeaf2;
  --text-dim: #8ba9bd;
  --text-muted: #537286;
  
  --line: rgba(143, 227, 255, 0.18);
  --line-gold: rgba(217, 184, 119, 0.4);
  --line-subtle: rgba(255, 255, 255, 0.08);

  /* Factions */
  --alliance-blue: #0078ff;
  --alliance-glow: rgba(0, 120, 255, 0.5);
  --horde-red: #c41e3a;
  --horde-glow: rgba(196, 30, 58, 0.5);

  /* WoW Class Colors */
  --class-warrior: #C69B6D;
  --class-paladin: #F48CBA;
  --class-hunter: #AAD372;
  --class-rogue: #FFF468;
  --class-priest: #FFFFFF;
  --class-deathknight: #C41E3A;
  --class-shaman: #0070DE;
  --class-mage: #3FC7EB;
  --class-warlock: #8788EE;
  --class-druid: #FF7C0A;
}

/* ---------- GOTHIC LICH KING / DARK IRON FRAME SYSTEM ---------- */
.wow-gothic-card {
  position: relative;
  background: radial-gradient(circle at 80% 50%, rgba(38, 22, 48, 0.95) 0%, rgba(15, 18, 25, 0.98) 55%, rgba(6, 8, 12, 0.99) 100%);
  /* Marco real del juego (Interface/DialogFrame) en vez del recorte en
     diagonal + remaches dibujados a mano que tenía antes. */
  border: 16px solid transparent;
  border-image: url('../images/borders/wow-dialog-frame.png?v=1') 24 fill;
  box-shadow:
    0 14px 44px rgba(0, 0, 0, 0.9),
    inset 0 0 40px rgba(0, 0, 0, 0.95);
  padding: 22px;
  /* overflow:hidden sacado: junto con border-image algunos navegadores
     recortan el borde superior de forma inconsistente. Ya no hace
     falta -- era para contener los remaches/clip-path viejos. */
}

/* Los remaches dibujados en CSS y los brackets en L ya no se usan --
   quedan ocultos por si algún template todavía trae el div en el
   markup (el marco real ya trae sus propios remaches tallados). */
.wow-gothic-corners,
.gothic-bracket-tl,
.gothic-bracket-tr,
.gothic-bracket-bl,
.gothic-bracket-br {
  display: none;
}

.gothic-eyebrow {
  font-family: 'Cinzel', serif;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #e58835;
  margin-bottom: 6px;
}

.gothic-title {
  font-family: 'Cinzel Decorative', 'Cinzel', serif;
  font-weight: 700;
  color: #ff9933;
  text-shadow: 0 0 16px rgba(255, 153, 51, 0.4), 0 2px 4px rgba(0, 0, 0, 0.9);
  letter-spacing: 0.03em;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background-color: var(--bg-void);
  background-image:
    radial-gradient(circle at 50% 0%, rgba(79, 159, 201, 0.22) 0%, transparent 65%),
    radial-gradient(circle at 15% 40%, rgba(0, 120, 255, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 85% 60%, rgba(196, 30, 58, 0.06) 0%, transparent 50%),
    linear-gradient(180deg, rgba(3, 7, 13, 0.4) 0%, rgba(3, 7, 13, 0.85) 40%, var(--bg-void) 95%),
    url('../images/hero-background.jpg');
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  background-attachment: fixed;
  color: var(--text-main);
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Grano/ruido fino sobre todo el sitio: sin esto cualquier fondo con
   gradientes suaves se ve "renderizado", plano y perfecto -- con grano
   se siente mas a textura de piedra/cuero curtido. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Viñeta: oscurece los bordes de la pantalla, centra la mirada -- otro
   detalle que las plantillas genéricas con gradiente plano se saltean. */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  box-shadow: inset 0 0 220px rgba(0, 0, 0, 0.65);
}

.mono { font-family: 'JetBrains Mono', monospace; }
.display { font-family: 'Cinzel', serif; }
.display-decorative { font-family: 'Cinzel Decorative', 'Cinzel', serif; }
/* Blackletter runico: solo para acentos puntuales y grandes (numeros de
   error, remates de titulo) -- en texto corrido es ilegible, a proposito
   se usa poco para que pegue fuerte cuando aparece. */
.rune-title { font-family: 'UnifrakturMaguntia', 'Cinzel Decorative', cursive; font-weight: 400; }
a { color: inherit; text-decoration: none; }

/* ---------- ICONOS REALES DE WOW (reemplazan emoji genérico) ---------- */
.wow-icon {
  width: 20px;
  height: 20px;
  vertical-align: -5px;
  border-radius: 3px;
  border: 1px solid var(--rune-gold-dark);
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.7), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  margin-right: 6px;
  object-fit: cover;
  background: #060b10;
}
.wow-icon-sm { width: 16px; height: 16px; vertical-align: -3px; border-radius: 2px; margin-right: 4px; }
.wow-icon-lg { width: 28px; height: 28px; vertical-align: -8px; border-radius: 4px; margin-right: 8px; }
.faction-icon-emoji {
  width: 18px;
  height: 18px;
  vertical-align: -4px;
  object-fit: contain;
  margin-right: 4px;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.85));
}

/* Canvas Snow / Frost Particles */
#frost-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.frost-field {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.frost-field svg { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.15; }

/* ---------- HEADER & NAVBAR ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(4, 9, 16, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 2px solid var(--rune-gold-dark);
  box-shadow: 0 4px 28px rgba(0, 0, 0, 0.7), 0 0 16px rgba(143, 227, 255, 0.15);
}

nav {
  max-width: 1300px;
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  height: 46px;
  width: auto;
  display: block;
  filter: drop-shadow(0 0 16px rgba(143, 227, 255, 0.45));
  transition: transform 0.25s ease, filter 0.25s ease;
}
.brand-logo:hover {
  transform: scale(1.04);
  filter: drop-shadow(0 0 24px rgba(143, 227, 255, 0.75));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-links a {
  font-family: 'Cinzel', serif;
  font-size: 0.84rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 700;
  position: relative;
  padding: 6px 0;
  transition: color 0.25s ease;
  text-shadow: 0 1px 2px #000;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--rune-gold-bright);
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--rune-gold), var(--ice-bright), transparent);
  transition: width 0.25s ease;
}

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

.nav-right-tools {
  display: flex;
  align-items: center;
  gap: 12px;
}

.realm-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  background: rgba(8, 18, 28, 0.9);
  border: 1px solid var(--line-gold);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.status-dot.online {
  background: #5be08a;
  box-shadow: 0 0 8px #5be08a;
  animation: pulse-dot 2s infinite ease-in-out;
}

.status-dot.offline {
  background: #d95050;
  box-shadow: 0 0 8px #d95050;
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.7; }
}

.btn-audio-toggle {
  background: rgba(143, 227, 255, 0.08);
  border: 1px solid var(--line-gold);
  color: var(--rune-gold-bright);
  font-family: 'Cinzel', serif;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-audio-toggle:hover {
  border-color: var(--rune-gold-bright);
  box-shadow: 0 0 12px var(--gold-glow);
}

/* ---------- GLOBAL QUICK SEARCH BAR IN NAVBAR ---------- */
.nav-search-wrap {
  position: relative;
  min-width: 180px;
  max-width: 260px;
  margin: 0 8px;
}

.nav-search-box {
  display: flex;
  align-items: center;
  background: rgba(8, 12, 18, 0.95);
  border: 1px solid #3c4a5c;
  border-radius: 4px;
  padding: 5px 10px;
  transition: all 0.2s ease;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.7);
}

.nav-search-box:focus-within {
  border-color: var(--rune-gold);
  box-shadow: 0 0 12px rgba(217, 184, 119, 0.35), inset 0 1px 3px rgba(0, 0, 0, 0.8);
}

.nav-search-icon {
  color: var(--text-dim);
  flex-shrink: 0;
  margin-right: 6px;
}

.nav-search-box input {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 0.8rem;
  width: 100%;
  outline: none;
  font-family: 'Inter', sans-serif;
}

.nav-search-box input::placeholder {
  color: var(--text-muted);
}

.nav-search-clear {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 0.9rem;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}
.nav-search-clear:hover {
  color: #ffffff;
}

.nav-search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  min-width: 260px;
  background: #090d14;
  border: 1px solid #58677c;
  border-radius: 4px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.95);
  z-index: 1000;
  max-height: 380px;
  overflow-y: auto;
  animation: tabFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.search-group-title {
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--rune-gold);
  background: rgba(18, 24, 34, 0.95);
  padding: 6px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  letter-spacing: 0.08em;
}

.search-result-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  color: var(--text-main);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 0.82rem;
  transition: background 0.15s ease;
}

.search-result-item:hover, .search-result-item.selected {
  background: rgba(30, 42, 58, 0.9);
}

.search-empty {
  padding: 12px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.mobile-burger {
  display: none;
  background: transparent;
  border: none;
  color: var(--ice-bright);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ---------- AUTHENTIC WORLD OF WARCRAFT BUTTONS ---------- */
/* Botones estilo "panel de Opciones" de WoW: el gradiente azul metálico
   con bisel y el borde de acero de ese menú in-game (Video / Sound &
   Voice / Interface...), sampleado directo de una captura real. */
.btn-wow-primary, .btn-primary,
.btn-wow-secondary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  border: 1px solid #0a0d16;
  border-radius: 8px;
  background: linear-gradient(180deg, #3d5eac 0%, #274490 14%, #1d3372 48%, #14213f 82%, #0c1224 100%);
  color: var(--rune-gold-bright);
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 0.86rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 12px 28px;
  cursor: pointer;
  text-shadow: 0 1px 3px #000000, 0 0 8px rgba(0, 0, 0, 0.9);
  box-shadow:
    inset 0 1px 0 rgba(165, 180, 215, 0.55),
    inset 0 -1px 0 rgba(0, 0, 0, 0.55),
    0 0 0 1px #4a5568,
    0 3px 10px rgba(0, 0, 0, 0.75);
  transition: all 0.18s ease;
  user-select: none;
  text-decoration: none;
}

.btn-wow-secondary, .btn-secondary {
  color: var(--text-main);
  letter-spacing: 0.08em;
  padding: 12px 26px;
  text-shadow: 0 1px 2px #000000;
}

.btn-wow-primary:hover, .btn-primary:hover,
.btn-wow-secondary:hover, .btn-secondary:hover {
  border-color: #0a0d16;
  color: #ffffff;
  background: linear-gradient(180deg, #4f74c4 0%, #3053a8 14%, #24408a 48%, #182a52 82%, #0f1830 100%);
  box-shadow:
    inset 0 1px 0 rgba(205, 220, 255, 0.8),
    inset 0 -1px 0 rgba(0, 0, 0, 0.55),
    0 0 0 1px #6b7890,
    0 0 18px rgba(60, 100, 200, 0.55);
  transform: translateY(-1px);
}

.btn-wow-primary:active, .btn-primary:active,
.btn-wow-secondary:active, .btn-secondary:active {
  transform: translateY(1px);
  background: linear-gradient(180deg, #0c1224 0%, #14213f 100%);
  box-shadow:
    inset 0 2px 6px rgba(0, 0, 0, 0.85),
    0 1px 3px rgba(0, 0, 0, 0.7);
}

.btn-login {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #0a0d16;
  border-radius: 6px;
  background: linear-gradient(180deg, #3d5eac 0%, #274490 20%, #1d3372 55%, #0c1224 100%);
  padding: 6px 16px;
  font-family: 'Cinzel', serif;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--rune-gold-bright);
  text-shadow: 0 1px 2px #000;
  box-shadow:
    inset 0 1px 0 rgba(165, 180, 215, 0.55),
    0 0 0 1px #4a5568;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.btn-login:hover {
  color: #ffffff;
  background: linear-gradient(180deg, #4f74c4 0%, #3053a8 20%, #24408a 55%, #0f1830 100%);
  box-shadow:
    inset 0 1px 0 rgba(205, 220, 255, 0.8),
    0 0 0 1px #6b7890,
    0 0 14px rgba(60, 100, 200, 0.5);
  transform: translateY(-1px);
}

/* ---------- ORNATE WOW CARDS & GOTHIC BORDERS ---------- */
.card {
  background: radial-gradient(circle at 75% 30%, rgba(30, 36, 48, 0.96) 0%, rgba(12, 16, 24, 0.98) 60%, rgba(6, 8, 12, 0.99) 100%);
  border: 14px solid transparent;
  border-image: url('../images/borders/wow-dialog-frame.png?v=1') 24 fill;
  padding: 22px;
  box-shadow:
    0 14px 44px rgba(0, 0, 0, 0.9),
    inset 0 0 35px rgba(0, 0, 0, 0.95);
  position: relative;
}

/* Hover de las tarjetas de clase en la Guia (antes onmouseover/onmouseout
   inline -- la CSP (script-src sin 'unsafe-inline') bloquea esos atributos
   igual que bloqueaba los onclick, asi que se paso a :hover puro). */
.class-lore-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.class-lore-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.8);
}

.wow-card-ornate {
  background: radial-gradient(circle at 75% 50%, rgba(38, 24, 48, 0.96) 0%, rgba(14, 18, 26, 0.98) 55%, rgba(6, 8, 12, 0.99) 100%);
  border: 16px solid transparent;
  border-image: url('../images/borders/wow-dialog-frame.png?v=1') 24 fill;
  padding: 24px;
  position: relative;
  box-shadow:
    0 14px 44px rgba(0, 0, 0, 0.9),
    inset 0 0 40px rgba(0, 0, 0, 0.95);
}

/* ---------- AUTHENTIC WOW IN-GAME REALM WINDOW & PARCHMENT ---------- */
.wow-realm-window {
  background: radial-gradient(circle at 50% 30%, #161c26 0%, #0c1017 65%, #05070a 100%);
  border: 16px solid transparent;
  border-image: url('../images/borders/wow-dialog-frame.png?v=1') 24 fill;
  box-shadow:
    0 16px 50px rgba(0, 0, 0, 0.95),
    inset 0 0 35px rgba(0, 0, 0, 0.95);
  margin: 0 auto 30px;
  max-width: 1050px;
  /* overflow:hidden sacado: con border-image algunos navegadores
     recortaban el borde de arriba de forma inconsistente. */
  position: relative;
}

.wow-realm-window-header {
  /* La misma placa de titulo "Options" del panel de referencia (real,
     Interface/DialogFrame/UI-DialogBox-Header). border-image en vez de
     background-image: la barra es mucho mas ancha que alta, y estirar
     la imagen entera (100% 100%) aplastaba el ornamento de las puntas
     -- con border-image las puntas quedan fijas y solo se estira la
     franja del medio. */
  background: #0c0f14;
  /* slice 26 medido a mano (columna/fila por columna/fila) sobre el
     asset real: ahí es donde termina el rombo tallado de la esquina y
     empieza el riel liso repetible -- probado localmente antes de subir. */
  border: 26px solid transparent;
  border-image: url('../images/borders/wow-header-plate.png?v=2') 26 fill;
  padding: 2px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.wow-realm-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
.wow-realm-table th {
  background: rgba(8, 11, 16, 0.9);
  padding: 10px 16px;
  font-family: 'Cinzel', serif;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--rune-gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 1px solid #283342;
}
.wow-realm-table td {
  padding: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.9rem;
  color: var(--text-main);
  vertical-align: middle;
}
.wow-realm-table tr:hover td {
  background: rgba(79, 159, 201, 0.08);
}

/* Parchment Quest Bulletin */
.wow-parchment-box {
  background: #e2d2b4 url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%239C8259' fill-opacity='0.08' fill-rule='evenodd'/%3E%3C/svg%3E");
  color: #2b1d0c;
  border: 3px solid #6b5333;
  border-radius: 3px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.8), inset 0 0 40px rgba(100, 70, 30, 0.25);
  padding: 24px 30px;
  position: relative;
}
.wow-parchment-box h3, .wow-parchment-box h4 {
  font-family: 'Cinzel Decorative', 'Cinzel', serif;
  color: #522f08;
  text-shadow: 0 1px 0 rgba(255,255,255,0.4);
}
.wow-parchment-box p {
  color: #382917;
  font-size: 0.94rem;
  line-height: 1.6;
}

/* Faction Crests */
.faction-crest-img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  vertical-align: middle;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.8));
}

/* Lich King Quote Box */
.lich-quote-card {
  max-width: 860px;
  margin: 0 auto 28px;
  background: radial-gradient(circle at 50% 50%, rgba(22, 78, 115, 0.25) 0%, rgba(4, 9, 16, 0.95) 80%);
  border: 1px solid var(--ice-mid);
  border-radius: 6px;
  padding: 18px 24px;
  text-align: center;
  position: relative;
  box-shadow: 0 0 24px rgba(79, 159, 201, 0.22);
}

.lich-quote-text {
  font-family: 'Cinzel', serif;
  font-style: italic;
  font-size: 1rem;
  color: var(--ice-bright);
  line-height: 1.6;
  text-shadow: 0 0 12px rgba(143, 227, 255, 0.4);
}

.lich-quote-author {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rune-gold);
  margin-top: 8px;
}

/* ---------- LICH KING SHOWCASE BANNER ---------- */
.lich-showcase-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 32px;
  align-items: center;
}

.lich-art-frame {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid var(--rune-gold);
  box-shadow: 0 0 30px rgba(79, 159, 201, 0.4), inset 0 0 20px rgba(0, 0, 0, 0.8);
}

.lich-art-img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease, filter 0.4s ease;
}
.lich-art-frame:hover .lich-art-img {
  transform: scale(1.03);
  filter: brightness(1.1);
}

.lich-art-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 35px rgba(3, 7, 13, 0.85);
  pointer-events: none;
}

/* ---------- MAIN LAYOUT & SECTIONS ---------- */
main {
  position: relative;
  z-index: 1;
  flex: 1;
}

section {
  max-width: 1300px;
  margin: 0 auto;
  padding: 40px 24px;
}

.section-head {
  text-align: center;
  margin-bottom: 34px;
}
.section-head .eyebrow {
  margin-bottom: 10px;
}
.section-head h2 {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  color: #ffffff;
  text-shadow: 0 0 24px rgba(143, 227, 255, 0.3);
}
.section-head p {
  color: var(--text-dim);
  max-width: 620px;
  margin: 10px auto 0;
  font-size: 0.94rem;
  line-height: 1.6;
}

.eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--rune-gold);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before, .eyebrow::after {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--rune-gold-dark);
}

/* ---------- HERO SECTION (COMPACT & BALANCED ABOVE THE FOLD) ---------- */
.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 20px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-logo {
  width: min(380px, 85%);
  height: auto;
  margin: 0 auto 8px;
  display: block;
  filter: drop-shadow(0 0 28px rgba(143, 227, 255, 0.5)) drop-shadow(0 0 60px rgba(79, 159, 201, 0.3));
  animation: logo-float 6s ease-in-out infinite alternate;
}

@keyframes logo-float {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-6px); }
}

.hero .tagline {
  font-size: 1rem;
  color: var(--text-dim);
  max-width: 620px;
  margin: 0 auto 20px;
  line-height: 1.55;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

/* Realmlist Interactive Box */
.realmlist-copy-box {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(6, 14, 22, 0.92);
  border: 1px solid var(--rune-gold);
  border-radius: 6px;
  padding: 6px 10px 6px 16px;
  box-shadow: 0 0 24px rgba(0, 0, 0, 0.6), inset 0 0 14px rgba(217, 184, 119, 0.12);
  margin-bottom: 22px;
}

.realmlist-text {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.84rem;
  color: var(--rune-gold);
  letter-spacing: 0.04em;
}

.btn-copy-realm {
  background: rgba(217, 184, 119, 0.15);
  border: 1px solid var(--rune-gold);
  color: var(--rune-gold-bright);
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-copy-realm:hover {
  background: var(--rune-gold);
  color: #120c02;
  box-shadow: 0 0 16px rgba(217, 184, 119, 0.6);
}

/* ---------- REALM STATUS & FACTION BALANCE ---------- */
.realm-dashboard-card {
  width: 100%;
  max-width: 960px;
  margin: 0 auto 16px;
  background: linear-gradient(180deg, rgba(10, 22, 34, 0.92) 0%, rgba(5, 12, 20, 0.96) 100%);
  /* Marco real de UI-DialogBox-Border.blp (el borde del panel de Opciones
     del juego), rearmado en static/images/borders/wow-dialog-frame.png a
     partir de las piezas reales del atlas -- no es un recreado en CSS. */
  border: 15px solid var(--line-gold);
  border-image: url('../images/borders/wow-dialog-frame.png?v=1') 24 fill;
  padding: 22px 28px;
  box-shadow: 0 12px 45px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(143, 227, 255, 0.15);
  backdrop-filter: blur(12px);
}

.realm-dash-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 18px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
  margin-bottom: 18px;
}

.dash-stat-group {
  text-align: left;
}
.dash-stat-group.center {
  text-align: center;
}

.dash-realm-name {
  font-family: 'Cinzel', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
  text-shadow: 0 0 16px rgba(143, 227, 255, 0.35);
}
.dash-realm-type {
  font-size: 0.76rem;
  color: var(--rune-gold);
  margin-top: 3px;
  letter-spacing: 0.08em;
}

.dash-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ice-bright);
}
.dash-lbl {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-top: 3px;
}

/* Faction Balance Bar */
.faction-balance-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faction-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.faction-label-alliance {
  color: #72b2ff;
  display: flex;
  align-items: center;
  gap: 6px;
}
.faction-label-horde {
  color: #ff687e;
  display: flex;
  align-items: center;
  gap: 6px;
}

.faction-bar-track {
  height: 12px;
  background: #060e16;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.8);
}

.faction-bar-alliance {
  background: linear-gradient(90deg, #00459e, var(--alliance-blue));
  box-shadow: 0 0 14px var(--alliance-glow);
  transition: width 0.8s ease;
  height: 100%;
}

.faction-bar-horde {
  background: linear-gradient(90deg, var(--horde-red), #e62e49);
  box-shadow: 0 0 14px var(--horde-glow);
  transition: width 0.8s ease;
  height: 100%;
}

/* ---------- 3-STEP QUICK START ---------- */
.quickstart-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.step-card {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 30px 24px;
  position: relative;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}
.step-card:hover {
  transform: translateY(-4px);
  border-color: var(--rune-gold);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 24px rgba(217, 184, 119, 0.2);
}

.step-number {
  font-family: 'Cinzel Decorative', 'Cinzel', serif;
  font-size: 2.2rem;
  color: var(--rune-gold);
  opacity: 0.4;
  position: absolute;
  top: 18px;
  right: 22px;
}

.step-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.step-card h3 {
  font-family: 'Cinzel', serif;
  font-size: 1.15rem;
  color: #ffffff;
  margin-bottom: 10px;
}

.step-card p {
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 22px;
  flex: 1;
}

/* ---------- RATES GRID ---------- */
.rates-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.rate-badge-card {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 20px 14px;
  text-align: center;
  transition: all 0.22s ease;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}
.rate-badge-card:hover {
  transform: scale(1.04);
  border-color: var(--ember-gold);
  box-shadow: 0 0 22px var(--ember-glow);
}

.rate-icon {
  font-size: 1.8rem;
  margin-bottom: 8px;
}
.rate-multiplier {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--rune-gold-bright);
}
.rate-name {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin-top: 6px;
}

/* ---------- FEATURES GRID ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 30px 24px;
  transition: all 0.25s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
.feature:hover {
  border-color: var(--ice-mid);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow: 0 0 24px rgba(143, 227, 255, 0.16);
}
.feature .fnum {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: var(--rune-gold);
  margin-bottom: 12px;
}
.feature h3 {
  font-family: 'Cinzel', serif;
  font-size: 1.15rem;
  margin-bottom: 10px;
  color: #ffffff;
}
.feature p {
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.6;
}

/* ---------- ACCOUNT PORTAL ---------- */
.account-portal-container {
  max-width: 650px;
  margin: 0 auto;
}

.portal-tabs {
  display: flex;
  border-bottom: 2px solid var(--line-gold);
  margin-bottom: 28px;
  gap: 8px;
}

.tab-btn {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-family: 'Cinzel', serif;
  font-size: 0.92rem;
  font-weight: 700;
  padding: 10px 18px;
  cursor: pointer;
  position: relative;
  transition: color 0.2s ease;
}
.tab-btn:hover { color: var(--rune-gold-bright); }
.tab-btn.active {
  color: var(--rune-gold-bright);
}
/* Separador real entre pestañas (UIFrameDialogBoxVertical, la misma
   barrita que separa botones en los paneles del juego). */
.tab-btn:not(:first-child) {
  background-image: url('../images/borders/wow-divider.png?v=1');
  background-repeat: no-repeat;
  background-position: left center;
  background-size: 8px 70%;
  padding-left: 26px;
}
.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--rune-gold-bright);
  box-shadow: 0 0 10px var(--rune-gold-bright);
}

.form-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.field {
  position: relative;
}

.field label {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 8px;
  font-weight: 600;
}

.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.field input, .field select {
  width: 100%;
  background: var(--bg-panel-2);
  border: 1px solid var(--line);
  color: #ffffff;
  padding: 13px 16px;
  font-family: 'Inter', sans-serif;
  font-size: 0.94rem;
  border-radius: 4px;
  transition: all 0.2s ease;
}
.field input:focus, .field select:focus {
  outline: none;
  border-color: var(--rune-gold);
  box-shadow: 0 0 16px rgba(217, 184, 119, 0.3);
}

.toggle-pass-visibility {
  position: absolute;
  right: 12px;
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 1.1rem;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s ease, color 0.2s ease;
}
.toggle-pass-visibility.is-showing {
  opacity: 1;
  color: var(--rune-gold-bright);
  text-shadow: 0 0 8px var(--gold-glow);
}

.pass-strength-track {
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  margin-top: 8px;
  overflow: hidden;
}
.pass-strength-bar {
  height: 100%;
  width: 0;
  transition: width 0.3s ease, background 0.3s ease;
}
.pass-strength-text {
  font-size: 0.72rem;
  margin-top: 6px;
  display: block;
}

.form-actions {
  display: flex;
  gap: 16px;
  margin-top: 10px;
  flex-wrap: wrap;
}

/* ---------- FLASH ALERTS ---------- */
.flash-wrap {
  max-width: 760px;
  margin: 16px auto 20px;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.flash {
  padding: 14px 18px;
  border-radius: 4px;
  font-size: 0.9rem;
  border: 1px solid;
  display: flex;
  align-items: center;
  gap: 12px;
}
.flash-error { background: rgba(217, 80, 80, 0.12); border-color: #d95050; color: #ffb8b8; }
.flash-success { background: rgba(91, 224, 138, 0.12); border-color: #5be08a; color: #c4f9d6; }
.flash-warning { background: rgba(217, 184, 119, 0.12); border-color: var(--rune-gold); color: #f5e4bf; }

/* ---------- ARMORY: CONTROLS & TABLE ---------- */
.armory-controls {
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.class-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.class-pill {
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  background: rgba(14, 28, 44, 0.85);
  border: 1px solid var(--line);
  color: var(--text-dim);
  cursor: pointer;
  transition: all 0.2s ease;
}
.class-pill:hover, .class-pill.active {
  border-color: currentColor;
  transform: translateY(-1px);
  box-shadow: 0 0 12px currentColor;
}

.filters-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.filters-row input, .filters-row select {
  background: var(--bg-panel-2);
  border: 1px solid var(--line);
  color: #ffffff;
  padding: 11px 16px;
  font-family: inherit;
  font-size: 0.88rem;
  border-radius: 4px;
}
.filters-row input { flex: 1; min-width: 220px; }

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line-gold);
  border-radius: 6px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.ice-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
.ice-table th {
  background: rgba(6, 13, 22, 0.98);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rune-gold);
  padding: 13px 16px;
  border-bottom: 1px solid var(--line-gold);
  white-space: nowrap;
}
.ice-table td {
  padding: 13px 16px;
  border-bottom: 1px solid rgba(143, 227, 255, 0.08);
  font-size: 0.9rem;
  white-space: nowrap;
}
.ice-table tr:hover td {
  background: rgba(143, 227, 255, 0.05);
}

.char-name-link {
  font-weight: 700;
  transition: text-shadow 0.2s ease;
}
.char-name-link:hover {
  text-shadow: 0 0 12px currentColor;
}

.online-tag { color: #5be08a; font-weight: 700; }
.offline-tag { color: var(--text-muted); }

.pagination-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
  color: var(--text-dim);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
}

/* ---------- ARMORY: PAPERDOLL LAYOUT (ULTIMOWOW / WARMANE STYLE) ---------- */
.paperdoll-layout {
  display: grid;
  grid-template-columns: 270px 1fr 270px;
  gap: 20px;
  margin-top: 16px;
  align-items: start;
}

.slot-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gear-slot {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 6px 10px;
  transition: all 0.2s ease;
  cursor: pointer;
  position: relative;
}
.gear-slot:hover {
  border-color: var(--rune-gold);
  background: var(--bg-card-hover);
  box-shadow: 0 0 16px rgba(217, 184, 119, 0.25);
}

.slot-col.right .gear-slot {
  flex-direction: row-reverse;
  text-align: right;
}

.slot-icon-box {
  width: 42px;
  height: 42px;
  border-radius: 4px;
  border: 2px solid #333333;
  background: #060b10;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  color: var(--text-muted);
  flex-shrink: 0;
  overflow: hidden;
}

.slot-info {
  flex: 1;
  min-width: 0;
}
.slot-item-name {
  font-size: 0.84rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.slot-type-lbl {
  font-size: 0.68rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.paperdoll-center {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.character-hero-card {
  background: var(--bg-panel);
  border: 14px solid transparent;
  border-image: url('../images/borders/wow-dialog-frame.png?v=1') 24 fill;
  padding: 22px 20px;
  text-align: center;
  position: relative;
}

.ilvl-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(217, 184, 119, 0.15);
  border: 1px solid var(--rune-gold);
  padding: 6px 16px;
  border-radius: 20px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 1rem;
  font-weight: 700;
  color: var(--rune-gold-bright);
  box-shadow: 0 0 16px rgba(217, 184, 119, 0.3);
}

.paperdoll-bottom-weapons {
  display: flex;
  justify-content: center;
  gap: 14px;
}
.paperdoll-bottom-weapons .gear-slot {
  width: 220px;
}

/* ---------- CUSTOM WOW TOOLTIP ---------- */
#wow-custom-tooltip {
  position: fixed;
  display: none;
  z-index: 10000;
  background: rgba(5, 10, 16, 0.98);
  border: 1px solid var(--rune-gold);
  border-radius: 6px;
  padding: 14px 18px;
  max-width: 320px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.8), 0 0 14px rgba(217, 184, 119, 0.35);
  pointer-events: none;
  font-size: 0.88rem;
  line-height: 1.5;
}
.tooltip-header {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 4px;
}
.tooltip-ilvl { color: var(--rune-gold); font-size: 0.82rem; }
.tooltip-slot { color: var(--text-dim); font-size: 0.8rem; }
.tooltip-id { color: var(--text-muted); font-size: 0.72rem; margin-top: 6px; }

/* Item Quality Colors */
.quality-0 { color: #9d9d9d !important; border-color: #9d9d9d !important; }
.quality-1 { color: #ffffff !important; border-color: #ffffff !important; }
.quality-2 { color: #1eff00 !important; border-color: #1eff00 !important; }
.quality-3 { color: #0070dd !important; border-color: #0070dd !important; }
.quality-4 { color: #a335ee !important; border-color: #a335ee !important; }
.quality-5 { color: #ff8000 !important; border-color: #ff8000 !important; }
.quality-6 { color: #e6cc80 !important; border-color: #e6cc80 !important; }
.quality-7 { color: #00ccff !important; border-color: #00ccff !important; }

/* ---------- WOW MODAL DIALOGS ---------- */
.wow-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-close-btn {
  position: absolute;
  top: 14px;
  right: 18px;
  background: transparent;
  border: none;
  color: var(--rune-gold);
  font-size: 1.2rem;
  cursor: pointer;
  transition: transform 0.2s ease;
}
.modal-close-btn:hover {
  transform: scale(1.2);
  color: #ffffff;
}

/* ---------- RANKINGS (LEADERBOARDS) ---------- */
.rankings-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.rank-board-card {
  background: var(--bg-panel);
  border: 13px solid transparent;
  border-image: url('../images/borders/wow-dialog-frame.png?v=1') 24 fill;
  padding: 20px 18px;
}
.rank-board-card h3 {
  font-family: 'Cinzel', serif;
  font-size: 1.2rem;
  color: #ffffff;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.leaderboard-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.leader-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-panel-2);
  border: 1px solid var(--line-subtle);
  border-radius: 4px;
  padding: 9px 12px;
  transition: all 0.2s ease;
}
.leader-item:hover {
  border-color: var(--rune-gold);
  transform: translateX(3px);
}

.leader-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rank-pos {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-dim);
}

.rank-pos.pos-1 { background: #ffd700; color: #2b1f00; font-size: 0.9rem; box-shadow: 0 0 10px #ffd700; }
.rank-pos.pos-2 { background: #c0c0c0; color: #1a1a1a; font-size: 0.9rem; }
.rank-pos.pos-3 { background: #cd7f32; color: #1a1005; font-size: 0.9rem; }

.leader-name {
  font-weight: 700;
  font-size: 0.9rem;
}

.leader-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.86rem;
  color: var(--rune-gold);
  font-weight: 600;
}

/* ---------- TOAST NOTIFICATIONS ---------- */
.toast-container {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast-pill {
  pointer-events: auto;
  background: rgba(6, 12, 20, 0.96);
  border: 1px solid var(--ice-mid);
  border-radius: 6px;
  padding: 12px 18px;
  color: #ffffff;
  font-size: 0.88rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 14px rgba(143, 227, 255, 0.3);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: toast-slide-in 0.3s ease forwards;
}

.toast-success { border-color: #5be08a; box-shadow: 0 0 16px rgba(91, 224, 138, 0.3); }
.toast-error { border-color: #d95050; box-shadow: 0 0 16px rgba(217, 80, 80, 0.3); }

@keyframes toast-slide-in {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.toast-fadeout {
  animation: toast-fade 0.4s ease forwards;
}

@keyframes toast-fade {
  to { transform: translateY(10px); opacity: 0; }
}

/* ---------- FAQ ACCORDION (native <details>, sin JS) ---------- */
.faq-item {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 2px 22px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.faq-item[open] {
  border-color: var(--rune-gold);
  box-shadow: 0 0 18px rgba(224, 175, 53, 0.12);
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 0;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 0.96rem;
  color: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.4rem;
  line-height: 1;
  color: var(--rune-gold);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item[open] summary { color: var(--rune-gold-bright); }
.faq-answer {
  padding: 0 0 20px;
  color: var(--text-dim);
  font-size: 0.9rem;
  line-height: 1.65;
}
.faq-answer a { color: var(--rune-gold); font-weight: 600; text-decoration: underline; }
.faq-answer code {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--line-subtle);
  border-radius: 3px;
  padding: 2px 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85em;
  color: var(--ice-bright);
}

/* ---------- FOOTER ---------- */
footer {
  position: relative;
  z-index: 1;
  border-top: 2px solid var(--rune-gold-dark);
  background: rgba(3, 7, 12, 0.98);
  padding: 48px 24px 28px;
  margin-top: auto;
}

.footer-inner {
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 36px;
}

.footer-brand p {
  color: var(--text-dim);
  font-size: 0.86rem;
  line-height: 1.6;
  margin-top: 12px;
  max-width: 340px;
}

.footer-col h4 {
  font-family: 'Cinzel', serif;
  font-size: 0.86rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rune-gold);
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  font-size: 0.86rem;
  color: var(--text-dim);
  margin-bottom: 9px;
  transition: color 0.2s ease;
}
.footer-col a:hover { color: var(--rune-gold-bright); }

.footer-bottom {
  max-width: 1300px;
  margin: 36px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--line-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ---------- RESPONSIVE MEDIA QUERIES ---------- */
@media (max-width: 1080px) {
  .lich-showcase-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .lich-art-frame {
    max-width: 340px;
    margin: 0 auto;
  }
  .paperdoll-layout {
    grid-template-columns: 1fr;
  }
  .slot-col.right .gear-slot {
    flex-direction: row;
    text-align: left;
  }
  .rankings-grid {
    grid-template-columns: 1fr;
  }
  .rates-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 820px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(4, 9, 16, 0.98);
    flex-direction: column;
    padding: 24px;
    border-bottom: 1px solid var(--line-gold);
    gap: 18px;
  }
  .nav-links.active {
    display: flex;
  }
  .mobile-burger {
    display: block;
  }
  .realm-dash-grid {
    grid-template-columns: 1fr 1fr;
  }
  .quickstart-grid {
    grid-template-columns: 1fr;
  }
  .features {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 540px) {
  .rates-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .realm-dash-grid {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    grid-template-columns: 1fr;
  }
}

/* ---------- SMOOTH FLUIDITY & PERFORMANCE OPTIMIZATIONS ---------- */
html {
  scroll-behavior: smooth;
}

/* Custom Gothic Dark Iron Scrollbar */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: #06090e;
  border-left: 1px solid #1a222e;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #3d4a5c 0%, #1c2430 100%);
  border: 1px solid #586980;
  border-radius: 2px;
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #5b6e87 0%, #293547 100%);
  border-color: var(--rune-gold);
}

/* Fluid Page Reveal Entrance */
@keyframes pageReveal {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

main {
  animation: pageReveal 0.28s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Smooth Tab Transitions */
.tab-content, .active-tab-animate {
  animation: tabFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) both;
}

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

/* Fluid Card & Spec Hover */
.spec-card-item {
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s ease, border-color 0.2s ease, opacity 0.2s ease;
  will-change: transform, opacity;
}
.spec-card-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.9), 0 0 16px rgba(143, 227, 255, 0.15);
}

/* Floating Back-to-Top Button */
.back-to-top-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 42px;
  height: 42px;
  border-radius: 4px;
  border: 2px solid #58677c;
  background: rgba(13, 17, 24, 0.92);
  color: var(--rune-gold-bright);
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 99;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.8);
}
.back-to-top-btn.visible {
  opacity: 1;
  visibility: visible;
}
.back-to-top-btn:hover {
  border-color: var(--rune-gold);
  transform: translateY(-3px);
  box-shadow: 0 0 16px rgba(217, 184, 119, 0.5);
  background: rgba(22, 29, 40, 0.98);
}

