/* =====================================================================
   Black Archlord — Nueva WEB theme (shared by the redesigned pages)
   ===================================================================== */

:root {
  --nw-bg: #070608;
  --nw-bg-2: #0d0a0c;
  --nw-panel: rgba(16, 11, 13, 0.88);
  --nw-panel-2: rgba(24, 15, 17, 0.92);
  --nw-line: rgba(196, 52, 40, 0.28);
  --nw-line-soft: rgba(255, 255, 255, 0.07);
  --nw-frame: rgba(201, 145, 88, 0.32);
  --nw-red: #e3342a;
  --nw-red-hot: #ff4a36;
  --nw-red-deep: #8c1410;
  --nw-gold: #e0a96a;
  --nw-gold-soft: #c9915a;
  --nw-text: #f1e9e4;
  --nw-muted: #a59792;
  --nw-green: #36d26b;
  --nw-blue: #3d8bd9;
  --nw-font-display: "Cinzel", "Marcellus SC", Georgia, serif;
  --nw-font-body: "Inter", "Roboto Condensed", system-ui, -apple-system, "Segoe UI", sans-serif;
  --nw-radius: 4px;
  --nw-max: 1240px;
  --nw-header-h: 64px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.nw-body {
  margin: 0;
  min-height: 100vh;
  color: var(--nw-text);
  background-color: var(--nw-bg);
  background-image:
    radial-gradient(ellipse at 50% 120%, rgba(160, 24, 14, 0.35), transparent 60%),
    radial-gradient(ellipse at 0% 60%, rgba(120, 18, 12, 0.22), transparent 45%),
    radial-gradient(ellipse at 100% 60%, rgba(120, 18, 12, 0.22), transparent 45%);
  background-attachment: fixed;
  font-family: var(--nw-font-body);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* :where() deja la especificidad en 0 para que los componentes puedan colorear sus enlaces */
:where(body.nw-body) a {
  color: inherit;
  text-decoration: none;
}

body.nw-body [hidden] {
  display: none !important;
}

:where(body.nw-body) img {
  max-width: 100%;
  display: block;
}

.nw-container {
  width: 100%;
  max-width: var(--nw-max);
  margin: 0 auto;
  padding: 0 20px;
}

.nw-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Buttons ---------- */

.nw-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 30px;
  border: 1px solid transparent;
  border-radius: var(--nw-radius);
  font-family: var(--nw-font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.nw-btn i {
  font-size: 17px;
}

.nw-btn:hover {
  transform: translateY(-2px);
}

.nw-btn--primary {
  color: #fff !important;
  border-color: rgba(255, 140, 110, 0.65);
  background: linear-gradient(180deg, #ef3b2c 0%, #b8170f 55%, #8d0f09 100%);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.6), 0 0 22px rgba(255, 60, 40, 0.45), inset 0 1px 0 rgba(255, 210, 190, 0.35);
}

.nw-btn--primary:hover {
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.6), 0 0 34px rgba(255, 70, 45, 0.7), inset 0 1px 0 rgba(255, 210, 190, 0.45);
}

.nw-btn--ghost {
  color: var(--nw-text) !important;
  border-color: var(--nw-frame);
  background: linear-gradient(180deg, rgba(30, 20, 18, 0.92), rgba(8, 6, 6, 0.92));
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.nw-btn--ghost:hover {
  border-color: var(--nw-gold);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.6), 0 0 18px rgba(224, 169, 106, 0.25);
}

.nw-btn--sm {
  min-height: 38px;
  padding: 0 16px;
  font-size: 13px;
  gap: 8px;
}

.nw-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--nw-red-hot) !important;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: gap 0.18s ease, color 0.18s ease;
}

.nw-link:hover {
  gap: 12px;
  color: #ff7a63 !important;
}

/* =====================================================================
   HEADER
   ===================================================================== */

.nw-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nw-header-h);
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.nw-header.is-scrolled {
  background: rgba(7, 6, 8, 0.92);
  box-shadow: 0 1px 0 var(--nw-line), 0 10px 30px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
}

.nw-header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 100%;
}

.nw-header-brand {
  display: none;
  font-family: var(--nw-font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.06em;
}

.nw-header-brand span {
  color: var(--nw-red-hot);
}

.nw-nav {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  margin: 0 auto;
  padding: 0 10px;
  list-style: none;
}

/* Fondo en forma de trapecio. Va en ::before porque un clip-path en la
   propia lista recortaría los submenús desplegables. */
.nw-nav::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border: 1px solid var(--nw-frame);
  border-top: 0;
  background: linear-gradient(180deg, rgba(10, 8, 9, 0.95), rgba(20, 12, 12, 0.92));
  clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 100%, 14px 100%);
  pointer-events: none;
}

/* Si el idioma tiene textos largos, la barra se ajusta en vez de cambiar. */
.nw-header.is-tight .nw-nav > li > a {
  padding: 0 9px;
  letter-spacing: 0.03em;
}

.nw-header.is-tighter .nw-nav > li > a {
  padding: 0 7px;
  font-size: 12px;
  letter-spacing: 0;
}

.nw-nav > li {
  position: relative;
}

.nw-nav > li > a {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 52px;
  padding: 0 14px;
  color: #ddd2cc;
  font-family: var(--nw-font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 0.18s ease;
}

.nw-nav > li > a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--nw-red-hot), transparent);
  box-shadow: 0 0 10px var(--nw-red-hot);
  opacity: 0;
  transform: scaleX(0.4);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.nw-nav > li:hover > a,
.nw-nav > li.is-active > a {
  color: var(--nw-red-hot);
}

.nw-nav > li:hover > a::after,
.nw-nav > li.is-active > a::after {
  opacity: 1;
  transform: scaleX(1);
}

.nw-nav .nw-caret {
  font-size: 9px;
  opacity: 0.7;
}

/* dropdowns */
.nw-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  min-width: 210px;
  margin: 0;
  padding: 8px 0;
  list-style: none;
  border: 1px solid var(--nw-line);
  background: rgba(12, 9, 10, 0.98);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 8px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}

.nw-dropdown .nw-dropdown {
  top: -9px;
  left: 100%;
  transform: translate(8px, 0);
}

.nw-has-drop:hover > .nw-dropdown,
.nw-has-drop:focus-within > .nw-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.nw-dropdown .nw-has-drop:hover > .nw-dropdown,
.nw-dropdown .nw-has-drop:focus-within > .nw-dropdown {
  transform: translate(0, 0);
}

.nw-dropdown li {
  position: relative;
}

.nw-dropdown a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 18px;
  color: #d8ccc6;
  font-size: 14px;
  transition: color 0.15s ease, background 0.15s ease;
}

.nw-dropdown a:hover,
.nw-dropdown li.is-active > a {
  color: #fff;
  background: linear-gradient(90deg, rgba(227, 52, 42, 0.22), transparent);
}

.nw-nav-panel-head {
  display: none;
}

/* right-side tools */
.nw-header-tools {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nw-login-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 20px;
  border: 1px solid rgba(255, 90, 60, 0.7);
  border-radius: var(--nw-radius);
  color: #fff !important;
  background: linear-gradient(180deg, rgba(150, 20, 14, 0.55), rgba(40, 6, 4, 0.85));
  box-shadow: 0 0 16px rgba(255, 60, 40, 0.3);
  font-family: var(--nw-font-display);
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  transition: box-shadow 0.18s ease, background 0.18s ease;
}

.nw-login-btn:hover {
  box-shadow: 0 0 26px rgba(255, 60, 40, 0.55);
}

.nw-icon-btn {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--nw-frame);
  border-radius: var(--nw-radius);
  color: #e8dcd6 !important;
  background: rgba(10, 8, 9, 0.85);
  cursor: pointer;
  transition: border-color 0.18s ease, color 0.18s ease;
}

.nw-icon-btn:hover {
  color: var(--nw-red-hot) !important;
  border-color: rgba(255, 90, 60, 0.6);
}

.nw-account-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 14px;
  border: 1px solid var(--nw-frame);
  border-radius: var(--nw-radius);
  background: rgba(10, 8, 9, 0.85);
  color: #fff !important;
  font-weight: 600;
  font-size: 14px;
  max-width: 180px;
}

.nw-account-chip span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nw-account-chip i {
  color: var(--nw-red-hot);
}

.nw-badge-count {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  color: #fff;
  background: var(--nw-red);
  box-shadow: 0 0 10px rgba(255, 60, 40, 0.8);
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}

.nw-popover {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 250px;
  padding: 14px 16px;
  border: 1px solid var(--nw-line);
  background: rgba(12, 9, 10, 0.98);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
  font-size: 14px;
  z-index: 10;
}

.nw-popover[hidden] {
  display: none;
}

.nw-popover p {
  margin: 0 0 10px;
}

/* Campana de notificaciones: texto y enlace con el mismo margen izquierdo */
.nw-notify {
  position: relative;
}

.nw-notify .nw-popover {
  min-width: 220px;
  white-space: nowrap;
}

.nw-notify .nw-popover .nw-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nw-lang {
  position: relative;
}

.nw-lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 14px;
  border: 1px solid var(--nw-frame);
  border-radius: var(--nw-radius);
  color: #e8dcd6;
  background: rgba(10, 8, 9, 0.85);
  font-family: var(--nw-font-body);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.nw-lang-btn i {
  font-size: 9px;
  opacity: 0.7;
}

.nw-lang .nw-popover {
  min-width: 160px;
  padding: 6px 0;
}

.nw-lang .nw-popover a {
  display: block;
  padding: 8px 16px;
  color: #d8ccc6;
}

.nw-lang .nw-popover a:hover,
.nw-lang .nw-popover a.is-current {
  color: #fff;
  background: linear-gradient(90deg, rgba(227, 52, 42, 0.22), transparent);
}

.nw-nav-toggle,
.nw-nav-backdrop {
  display: none;
}

/* Menú compacto (hamburguesa): lo activa el header cuando el menú no cabe
   en la pantalla, según el idioma, o en pantallas de 991px o menos. */

html.nw-compact .nw-header {
  background: rgba(7, 6, 8, 0.92);
  box-shadow: 0 1px 0 var(--nw-line);
}

html.nw-compact .nw-header-brand {
  display: block;
  margin-right: auto;
  font-size: 16px;
  white-space: nowrap;
}

html.nw-compact .nw-nav-toggle {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--nw-frame);
  border-radius: var(--nw-radius);
  color: #e8dcd6;
  background: rgba(10, 8, 9, 0.85);
  font-size: 18px;
  cursor: pointer;
}

html.nw-compact .nw-nav-backdrop {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(0, 0, 0, 0.65);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s;
}

html.nw-compact body.nw-nav-open .nw-nav-backdrop {
  opacity: 1;
  visibility: visible;
}

html.nw-compact body.nw-nav-open {
  overflow: hidden;
}

html.nw-compact .nw-nav {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1101;
  display: block;
  width: min(86vw, 320px);
  height: 100vh;
  margin: 0;
  padding: 0 0 24px;
  overflow-y: auto;
  border: 0;
  border-right: 1px solid var(--nw-line);
  background: #0b0809;
  clip-path: none;
  transform: translateX(-105%);
}

/* La animación solo existe al abrir/cerrar (clase puesta por el header). */
html.nw-compact.nw-nav-anim .nw-nav {
  transition: transform 0.28s ease;
}

html.nw-compact body.nw-nav-open .nw-nav {
  transform: translateX(0);
}

html.nw-compact .nw-nav::before {
  display: none;
}

html.nw-compact .nw-nav-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--nw-line);
  font-family: var(--nw-font-display);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

html.nw-compact .nw-nav > li > a {
  height: auto;
  padding: 14px 18px;
  border-bottom: 1px solid var(--nw-line-soft);
  font-size: 14px;
}

html.nw-compact .nw-nav > li > a::after {
  display: none;
}

html.nw-compact .nw-nav .nw-caret {
  margin-left: auto;
}

html.nw-compact .nw-dropdown,
html.nw-compact .nw-dropdown .nw-dropdown {
  position: static;
  display: none;
  min-width: 0;
  padding: 0;
  border: 0;
  box-shadow: none;
  background: rgba(255, 255, 255, 0.03);
  opacity: 1;
  visibility: visible;
  transform: none !important;
}

html.nw-compact .nw-has-drop.is-open > .nw-dropdown {
  display: block;
}

html.nw-compact .nw-dropdown a {
  padding: 11px 18px 11px 30px;
}

html.nw-compact .nw-dropdown .nw-dropdown a {
  padding-left: 44px;
}

/* =====================================================================
   HERO
   ===================================================================== */

.nw-hero {
  position: relative;
  min-height: 620px;
  padding: calc(var(--nw-header-h) + 70px) 0 120px;
  overflow: hidden;
  isolation: isolate;
}

.nw-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -3;
  background: url("../../img/heavens-hell/wallpaper/wallpaper-hh.png") center 30% / cover no-repeat;
  filter: hue-rotate(32deg) saturate(1.45) brightness(0.72) contrast(1.1);
  transform: scale(1.04);
}

.nw-hero-char {
  /* Ajustes rápidos del personaje (PNG con transparencia, cuerpo entero):
     --char-zoom  tamaño respecto al alto de la caja (100% = cuerpo entero;
                  más = más cerca, se recortan las piernas, que se funden abajo)
     --char-top   distancia de los cuernos al borde superior de la página */
  --char-zoom: 140%;
  --char-top: 40px;
  position: absolute;
  top: var(--char-top);
  right: max(-90px, calc((100vw - var(--nw-max)) / 2 - 150px));
  bottom: 0;
  z-index: -2;
  width: min(60vw, 780px);
  background: url("../../img/heavens-hell/archlord-char.png") center top / auto var(--char-zoom) no-repeat;
  -webkit-mask-image: linear-gradient(to bottom, #000 68%, transparent 97%);
  mask-image: linear-gradient(to bottom, #000 68%, transparent 97%);
  filter: drop-shadow(0 0 38px rgba(255, 60, 40, 0.35)) saturate(1.1);
}

.nw-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(7, 6, 8, 0.92) 0%, rgba(7, 6, 8, 0.6) 42%, rgba(7, 6, 8, 0.05) 70%),
    linear-gradient(180deg, rgba(7, 6, 8, 0.65) 0%, transparent 22%, transparent 70%, var(--nw-bg) 100%);
}

.nw-embers {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(2px 2px at 12% 78%, rgba(255, 120, 60, 0.9), transparent),
    radial-gradient(1.5px 1.5px at 32% 64%, rgba(255, 90, 40, 0.8), transparent),
    radial-gradient(2px 2px at 58% 82%, rgba(255, 140, 70, 0.9), transparent),
    radial-gradient(1.5px 1.5px at 74% 58%, rgba(255, 90, 40, 0.8), transparent),
    radial-gradient(2px 2px at 88% 74%, rgba(255, 120, 60, 0.9), transparent),
    radial-gradient(1px 1px at 22% 40%, rgba(255, 160, 90, 0.7), transparent),
    radial-gradient(1px 1px at 66% 34%, rgba(255, 160, 90, 0.7), transparent);
  animation: nw-embers 14s linear infinite;
}

@keyframes nw-embers {
  from { background-position: 0 0; transform: translateY(0); opacity: 0.9; }
  to { background-position: 0 -40px; transform: translateY(-60px); opacity: 0.4; }
}

.nw-hero-content {
  max-width: 560px;
}

.nw-logo {
  position: relative;
  margin: 0;
  font-family: "Cinzel Decorative", var(--nw-font-display);
  font-weight: 900;
  line-height: 0.92;
  color: #f4ece8;
  text-transform: uppercase;
  background: linear-gradient(180deg, #ffffff 0%, #e9e2df 45%, #9c918e 60%, #f7f1ee 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 0 rgba(0, 0, 0, 0.9)) drop-shadow(0 0 22px rgba(255, 40, 30, 0.55));
}

.nw-logo span {
  display: block;
}

.nw-logo .nw-logo-top {
  font-size: clamp(42px, 6vw, 72px);
  padding-left: 0.9em;
}

.nw-logo .nw-logo-bottom {
  font-size: clamp(50px, 7.4vw, 88px);
}

.nw-logo::before {
  content: "";
  position: absolute;
  left: -10px;
  top: -30px;
  width: 170px;
  height: 170px;
  z-index: -1;
  background: radial-gradient(circle, rgba(255, 40, 30, 0.55), transparent 65%);
  filter: blur(6px);
}

.nw-tagline {
  margin: 26px 0 18px;
  color: #f1e3dc;
  font-family: var(--nw-font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.5em;
  text-transform: uppercase;
}

.nw-hero-text {
  margin: 0 0 32px;
  max-width: 440px;
  color: #ddd0ca;
  font-size: 16px;
}

.nw-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

/* =====================================================================
   STATS BAR
   ===================================================================== */

.nw-stats {
  position: relative;
  z-index: 2;
  margin-top: -64px;
}

.nw-stats-bar {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border: 1px solid var(--nw-frame);
  background: linear-gradient(180deg, rgba(22, 14, 14, 0.96), rgba(9, 7, 8, 0.96));
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.nw-stat {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 18px;
  border-right: 1px solid var(--nw-line-soft);
  min-width: 0;
}

.nw-stat:last-child {
  border-right: 0;
}

.nw-stat-icon {
  flex: 0 0 auto;
  width: 38px;
  color: var(--nw-gold);
  font-size: 28px;
  text-align: center;
  filter: drop-shadow(0 0 8px rgba(224, 169, 106, 0.35));
}

.nw-stat-label {
  display: block;
  color: var(--nw-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.nw-stat-value {
  display: block;
  color: #fff;
  font-family: var(--nw-font-display);
  font-size: 20px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nw-status-dot {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  margin: 0 6px;
  border-radius: 50%;
  background: #6b6b6b;
}

.nw-stat.is-online .nw-status-dot {
  background: radial-gradient(circle at 35% 35%, #7dffa6, var(--nw-green));
  box-shadow: 0 0 16px rgba(54, 210, 107, 0.75);
}

.nw-stat.is-online .nw-stat-value {
  color: var(--nw-green);
}

.nw-stat.is-offline .nw-status-dot {
  background: var(--nw-red);
  box-shadow: 0 0 16px rgba(227, 52, 42, 0.75);
}

.nw-stat.is-offline .nw-stat-value {
  color: var(--nw-red-hot);
}

/* =====================================================================
   SECTIONS / PANELS
   ===================================================================== */

.nw-section {
  padding-top: 28px;
}

.nw-panel {
  position: relative;
  border: 1px solid var(--nw-frame);
  background: linear-gradient(180deg, rgba(20, 13, 14, 0.94), rgba(9, 7, 8, 0.94));
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

/* ornamental corners */
.nw-panel::before,
.nw-panel::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: var(--nw-gold);
  border-style: solid;
  pointer-events: none;
  opacity: 0.8;
}

.nw-panel::before {
  top: -1px;
  left: -1px;
  border-width: 2px 0 0 2px;
}

.nw-panel::after {
  right: -1px;
  bottom: -1px;
  border-width: 0 2px 2px 0;
}

.nw-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--nw-line-soft);
}

.nw-panel-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: #fff;
  font-family: var(--nw-font-display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nw-panel-title i {
  color: var(--nw-gold);
  font-size: 18px;
  filter: drop-shadow(0 0 6px rgba(224, 169, 106, 0.4));
}

.nw-panel-body {
  padding: 18px 22px 22px;
}

/* ---------- Feature cards ---------- */

.nw-features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.nw-feature {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  /* mismo formato que img/index/*.png (600x450): la imagen se ve completa */
  aspect-ratio: 4 / 3;
  padding: 20px;
  overflow: hidden;
  border: 1px solid var(--nw-frame);
  isolation: isolate;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.nw-feature-img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* imágenes de img/index (600x450): personaje o motivo en la mitad superior */
  object-position: center top;
  transition: transform 0.5s ease;
}

.nw-feature::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(8, 6, 7, 0.1) 0%, rgba(8, 6, 7, 0.55) 45%, rgba(8, 6, 7, 0.96) 80%);
}

.nw-feature:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 90, 60, 0.6);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55), 0 0 24px rgba(255, 60, 40, 0.18);
}

.nw-feature:hover .nw-feature-img {
  transform: scale(1.06);
}

.nw-feature h3 {
  margin: 0 0 6px;
  color: #fff;
  font-family: var(--nw-font-display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nw-feature p {
  margin: 0 0 12px;
  color: #d6c9c3;
  font-size: 14px;
  line-height: 1.45;
}

.nw-feature .nw-link {
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ---------- News + rankings grid ---------- */

.nw-split {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  gap: 22px;
  align-items: stretch;
}

.nw-split > .nw-panel {
  display: flex;
  flex-direction: column;
}

.nw-split .nw-panel-foot {
  margin-top: auto;
}

.nw-news-list {
  display: grid;
}

.nw-news {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--nw-line-soft);
}

.nw-news:first-child {
  padding-top: 4px;
}

.nw-news:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.nw-news-thumb {
  position: relative;
  overflow: hidden;
  /* mismo formato que img/news/*.png (600x450): la imagen se ve completa */
  aspect-ratio: 4 / 3;
  border: 1px solid var(--nw-line-soft);
  background: #120c0c;
}

.nw-news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.nw-news:hover .nw-news-thumb img {
  transform: scale(1.06);
}

.nw-tag {
  display: inline-block;
  padding: 2px 8px;
  border: 1px solid currentColor;
  border-radius: 2px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nw-tag--patch { color: #5aa6ff; background: rgba(61, 139, 217, 0.12); }
.nw-tag--event { color: #f2b544; background: rgba(242, 181, 68, 0.1); }
.nw-tag--notice { color: #ff6a50; background: rgba(227, 52, 42, 0.12); }

.nw-news-title {
  display: block;
  margin: 6px 0 2px;
  color: #fff;
  font-family: var(--nw-font-display);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
}

.nw-news-title:hover {
  color: var(--nw-red-hot);
}

.nw-news-desc {
  margin: 0 0 4px;
  color: #cfc3bd;
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.nw-news-date {
  color: var(--nw-muted);
  font-size: 12px;
}

.nw-news-date i {
  margin-right: 5px;
  color: var(--nw-red);
}

/* ---------- Rankings tabs ---------- */

.nw-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

.nw-tab {
  height: 38px;
  padding: 0 8px;
  border: 1px solid var(--nw-line-soft);
  border-radius: 2px;
  color: #cfc3bd;
  background: rgba(255, 255, 255, 0.03);
  font-family: var(--nw-font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.18s ease;
}

.nw-tab:hover {
  color: #fff;
  border-color: rgba(255, 90, 60, 0.4);
}

.nw-tab[aria-selected="true"] {
  color: #fff;
  border-color: rgba(255, 110, 80, 0.75);
  background: linear-gradient(180deg, #c8241a, #7e0e09);
  box-shadow: 0 0 16px rgba(255, 60, 40, 0.35);
}

.nw-tab-panel[hidden] {
  display: none;
}

.nw-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.nw-table th {
  padding: 8px 10px;
  border-bottom: 1px solid var(--nw-line-soft);
  color: var(--nw-muted);
  font-size: 12px;
  font-weight: 600;
  text-align: left;
}

.nw-table td {
  padding: 9px 10px;
  border-bottom: 1px solid var(--nw-line-soft);
  color: #e6dcd7;
  vertical-align: middle;
}

.nw-table tr:last-child td {
  border-bottom: 0;
}

.nw-table tbody tr {
  transition: background 0.15s ease;
}

.nw-table tbody tr:hover {
  background: rgba(227, 52, 42, 0.07);
}

.nw-table .is-num {
  text-align: right;
  font-weight: 700;
}

.nw-table .is-center {
  text-align: center;
}

.nw-rank-pos {
  width: 34px;
  color: #cfc3bd;
  text-align: center;
  font-weight: 700;
}

.nw-rank-pos i {
  font-size: 16px;
}

.nw-rank-1 i { color: #f2b544; filter: drop-shadow(0 0 6px rgba(242, 181, 68, 0.6)); }
.nw-rank-2 i { color: #cfd6df; filter: drop-shadow(0 0 6px rgba(207, 214, 223, 0.5)); }
.nw-rank-3 i { color: #d08a4e; filter: drop-shadow(0 0 6px rgba(208, 138, 78, 0.5)); }

.nw-lv-top {
  color: #f2b544 !important;
}

.nw-player {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: #fff;
}

.nw-avatar {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border: 1px solid var(--nw-frame);
  border-radius: 50%;
  background: #140d0d;
  object-fit: cover;
}

.nw-guild-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 12px 6px;
  border-bottom: 1px solid var(--nw-line-soft);
}

.nw-guild-row:last-child {
  border-bottom: 0;
}

.nw-guild-row img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  filter: drop-shadow(0 5px 8px rgba(0, 0, 0, 0.45));
}

.nw-guild-name {
  display: block;
  color: #fff;
  font-family: var(--nw-font-display);
  font-size: 17px;
  font-weight: 700;
}

.nw-guild-master {
  color: var(--nw-muted);
  font-size: 13px;
}

.nw-guild-place {
  color: #f2b544;
  font-family: var(--nw-font-display);
  font-weight: 700;
}

.nw-guild-row.is-silver .nw-guild-place {
  color: #cfd6df;
}

.nw-castle-archlord td {
  background: rgba(242, 181, 68, 0.07);
}

.nw-castle-archlord td:first-child {
  color: #f2b544;
  font-weight: 700;
}

.nw-panel-foot {
  padding: 0 22px 18px;
}

/* ---------- Server info ---------- */

.nw-info-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.nw-info {
  padding: 14px 16px;
  border: 1px solid var(--nw-line-soft);
  background: rgba(255, 255, 255, 0.025);
}

.nw-info-label {
  display: block;
  margin-bottom: 4px;
  color: var(--nw-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nw-info-value,
.nw-info-value a {
  color: #fff;
  font-weight: 700;
  font-size: 15px;
}

.nw-info-value a {
  color: var(--nw-red-hot);
}

.nw-info.is-wide {
  grid-column: span 2;
}

.nw-clock {
  font-variant-numeric: tabular-nums;
}

/* Eventos activos: solo el enlace al calendario */
.nw-info--events {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
}

.nw-info--events .nw-info-label {
  margin-bottom: 0;
}

.nw-info--events .nw-btn {
  flex: 0 0 auto;
}

/* ---------- Gallery (promotions) ---------- */

.nw-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.nw-shot {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--nw-frame);
  background: #120c0c;
}

.nw-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease, filter 0.45s ease;
}

.nw-shot::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.6), inset 0 -40px 40px -20px rgba(0, 0, 0, 0.6);
  pointer-events: none;
}

.nw-shot:hover img {
  transform: scale(1.06);
  filter: brightness(1.12);
}

.nw-shot-label {
  position: absolute;
  left: 12px;
  bottom: 10px;
  z-index: 1;
  color: #fff;
  font-family: var(--nw-font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-shadow: 0 2px 6px #000;
}

/* =====================================================================
   FOOTER
   ===================================================================== */

.nw-footer {
  position: relative;
  margin-top: 56px;
  padding: 44px 0 22px;
  border-top: 1px solid var(--nw-line);
  background:
    radial-gradient(ellipse at 50% 140%, rgba(190, 30, 18, 0.35), transparent 60%),
    linear-gradient(180deg, rgba(10, 7, 8, 0.96), #050405);
}

.nw-footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, minmax(0, 0.7fr)) 1.4fr;
  gap: 28px;
  align-items: start;
}

.nw-footer-logo {
  margin: 0 0 12px;
  font-family: "Cinzel Decorative", var(--nw-font-display);
  font-weight: 900;
  font-size: 26px;
  line-height: 1;
  color: #f1e9e4;
  text-shadow: 0 0 18px rgba(255, 40, 30, 0.55);
}

.nw-footer p {
  margin: 0 0 16px;
  color: var(--nw-muted);
  font-size: 13px;
}

.nw-socials {
  display: flex;
  gap: 16px;
  font-size: 18px;
}

.nw-socials a {
  color: #d8ccc6;
  transition: color 0.15s ease;
}

.nw-socials a:hover {
  color: var(--nw-red-hot);
}

.nw-footer h4 {
  margin: 4px 0 12px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nw-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.nw-footer li {
  margin-bottom: 7px;
}

.nw-footer li a {
  color: var(--nw-muted);
  font-size: 13px;
  transition: color 0.15s ease;
}

.nw-footer li a:hover {
  color: #fff;
}

.nw-discord-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid rgba(88, 101, 242, 0.55);
  border-radius: var(--nw-radius);
  background: linear-gradient(135deg, rgba(88, 101, 242, 0.22), rgba(20, 14, 30, 0.9));
  box-shadow: 0 0 22px rgba(88, 101, 242, 0.2);
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}

.nw-discord-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(88, 101, 242, 0.4);
}

.nw-discord-cta > i:first-child {
  color: #8e99ff;
  font-size: 34px;
}

.nw-discord-cta strong {
  display: block;
  color: #fff;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.nw-discord-cta span {
  display: block;
  color: #b8b4cc;
  font-size: 12px;
  line-height: 1.4;
}

.nw-discord-cta > i:last-child {
  margin-left: auto;
  color: #fff;
}

.nw-footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid var(--nw-line-soft);
  color: var(--nw-muted);
  font-size: 12px;
}

.nw-footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}

.nw-footer-meta i {
  margin-right: 6px;
  color: var(--nw-red);
}

.nw-footer-meta b {
  color: #e8dcd6;
  font-weight: 600;
}

/* =====================================================================
   SUBPAGE HERO (cabecera de páginas interiores)
   ===================================================================== */

.nw-page-hero {
  position: relative;
  padding: calc(var(--nw-header-h) + 56px) 0 44px;
  overflow: hidden;
  isolation: isolate;
  border-bottom: 1px solid var(--nw-line);
}

.nw-page-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("../../img/heavens-hell/wallpaper/wallpaper-hh.png") center 35% / cover no-repeat;
  filter: hue-rotate(32deg) saturate(1.45) brightness(0.55) contrast(1.1);
}

.nw-page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(7, 6, 8, 0.92) 0%, rgba(7, 6, 8, 0.55) 60%, rgba(7, 6, 8, 0.75) 100%),
    linear-gradient(180deg, rgba(7, 6, 8, 0.5), var(--nw-bg));
}

.nw-page-hero-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.nw-page-title {
  margin: 10px 0 8px;
  color: #fff;
  font-family: "Cinzel Decorative", var(--nw-font-display);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 0 24px rgba(255, 40, 30, 0.45);
}

.nw-page-subtitle {
  max-width: 560px;
  margin: 0;
  color: #d9ccc6;
  font-size: 15px;
}

.nw-page-count {
  flex: 0 0 auto;
  min-width: 150px;
  padding: 14px 20px;
  border: 1px solid var(--nw-frame);
  background: rgba(10, 8, 9, 0.85);
  text-align: center;
}

.nw-page-count-value {
  display: block;
  color: var(--nw-red-hot);
  font-family: var(--nw-font-display);
  font-size: 34px;
  font-weight: 700;
  line-height: 1.1;
}

/* =====================================================================
   NEWS PAGE
   ===================================================================== */

.nw-news-page {
  display: grid;
  gap: 18px;
  max-width: 980px;
}

.nw-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 12px;
  padding: 14px;
  scroll-margin-top: calc(var(--nw-header-h) + 16px);
}

.nw-toolbar .nw-input {
  padding-right: 16px;
}

.nw-select-wrap {
  position: relative;
}

.nw-select-wrap > i {
  position: absolute;
  top: 50%;
  right: 16px;
  color: var(--nw-muted);
  font-size: 11px;
  pointer-events: none;
  transform: translateY(-50%);
}

.nw-select {
  padding: 0 40px 0 16px !important;
  appearance: none;
  cursor: pointer;
}

.nw-select option {
  color: #fff;
  background: #120c0d;
}

.nw-article-list {
  display: grid;
  gap: 16px;
}

.nw-article {
  padding: 22px 26px 24px;
  scroll-margin-top: calc(var(--nw-header-h) + 16px);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.nw-article.is-highlighted {
  border-color: rgba(255, 90, 60, 0.85);
  box-shadow: 0 0 0 1px rgba(255, 90, 60, 0.5), 0 0 34px rgba(255, 60, 40, 0.35);
}

.nw-article.is-single {
  padding: 30px 34px 34px;
}

.nw-article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  color: var(--nw-muted);
  font-size: 13px;
}

.nw-article-meta i {
  margin-right: 6px;
  color: var(--nw-red);
}

.nw-article-title {
  margin: 12px 0 0;
  color: #fff;
  font-family: var(--nw-font-display);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
}

.nw-article.is-single .nw-article-title {
  font-size: 28px;
}

.nw-article-link {
  color: #fff !important;
  transition: color 0.15s ease;
}

.nw-article-link:hover {
  color: var(--nw-red-hot) !important;
}

.nw-article-body {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--nw-line-soft);
  color: #d6cac4;
  font-size: 15px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.nw-article-body a {
  color: var(--nw-red-hot) !important;
  text-decoration: underline !important;
}

.nw-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.nw-page-btn {
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--nw-frame);
  border-radius: var(--nw-radius);
  color: #e8dcd6;
  background: rgba(10, 8, 9, 0.85);
  font-family: var(--nw-font-display);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
}

.nw-page-btn:hover {
  border-color: rgba(255, 90, 60, 0.6);
  color: #fff;
}

.nw-page-btn.is-active {
  border-color: rgba(255, 110, 80, 0.75);
  color: #fff;
  background: linear-gradient(180deg, #c8241a, #7e0e09);
  box-shadow: 0 0 16px rgba(255, 60, 40, 0.35);
}

.nw-empty {
  padding: 44px 20px;
  color: var(--nw-muted);
  text-align: center;
}

.nw-empty i {
  display: block;
  margin-bottom: 10px;
  color: var(--nw-red);
  font-size: 30px;
}

.nw-scroll-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 900;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 110, 80, 0.7);
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(180deg, #c8241a, #7e0e09);
  box-shadow: 0 0 18px rgba(255, 60, 40, 0.45);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.nw-scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* =====================================================================
   ACCOUNT PAGES (login, register, recuperar, reset)
   ===================================================================== */

.nw-btn--block {
  width: 100%;
}

.nw-auth {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100vh;
  padding: calc(var(--nw-header-h) + 48px) 0 64px;
  overflow: hidden;
  isolation: isolate;
}

.nw-auth-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("../../img/heavens-hell/wallpaper/wallpaper-hh.png") center 30% / cover no-repeat;
  filter: hue-rotate(32deg) saturate(1.45) brightness(0.6) contrast(1.1);
}

.nw-auth::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse at 30% 40%, rgba(160, 24, 14, 0.25), transparent 60%),
    linear-gradient(180deg, rgba(7, 6, 8, 0.7) 0%, rgba(7, 6, 8, 0.35) 40%, var(--nw-bg) 100%);
}

.nw-auth-wrap {
  display: grid;
  grid-template-columns: minmax(0, 480px);
  justify-content: center;
}

.nw-auth-wrap--single {
  grid-template-columns: minmax(0, 560px);
  justify-content: center;
}

.nw-auth-card {
  padding: 34px 34px 30px;
}

.nw-auth-card--center {
  text-align: center;
}

.nw-auth-card--center .nw-modal-icon {
  margin: 0 auto 14px;
}

.nw-auth-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--nw-red-hot);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.nw-auth-title {
  margin: 10px 0 6px;
  color: #fff;
  font-family: var(--nw-font-display);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.03em;
}

.nw-auth-subtitle {
  margin: 0 0 22px;
  color: var(--nw-muted);
  font-size: 14px;
}

.nw-auth-note {
  margin: 18px 0 0;
  color: var(--nw-muted);
  font-size: 13px;
}

.nw-form {
  display: grid;
  gap: 16px;
}

.nw-field label {
  display: block;
  margin-bottom: 6px;
  color: #e8dcd6;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

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

.nw-input-wrap > i {
  position: absolute;
  left: 15px;
  color: var(--nw-muted);
  font-size: 14px;
  pointer-events: none;
  transition: color 0.18s ease;
}

.nw-input {
  width: 100%;
  height: 48px;
  padding: 0 46px 0 42px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--nw-radius);
  color: #fff;
  background: rgba(6, 4, 5, 0.75);
  font-family: var(--nw-font-body);
  font-size: 15px;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.nw-input::placeholder {
  color: #7d716d;
}

.nw-input:focus {
  border-color: rgba(255, 90, 60, 0.75);
  background: rgba(10, 6, 6, 0.9);
  box-shadow: 0 0 0 3px rgba(227, 52, 42, 0.18);
}

.nw-input-wrap:focus-within > i {
  color: var(--nw-red-hot);
}

.nw-input[readonly],
.nw-input-wrap.is-locked .nw-input {
  color: var(--nw-gold);
  background: rgba(30, 20, 14, 0.6);
  cursor: not-allowed;
}

.nw-input--code {
  font-family: "Courier New", monospace;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.4em;
}

.nw-input-toggle {
  position: absolute;
  right: 6px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: var(--nw-radius);
  color: var(--nw-muted);
  background: transparent;
  cursor: pointer;
}

.nw-input-toggle:hover {
  color: #fff;
}

.nw-help {
  display: block;
  min-height: 0;
  margin-top: 6px;
  font-size: 12.5px;
}

.nw-help:empty {
  display: none;
}

.nw-help.is-error {
  color: #ff6a55;
}

.nw-help.is-ok {
  color: var(--nw-green);
}

.nw-help.is-error::before,
.nw-help.is-ok::before {
  margin-right: 6px;
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
}

.nw-help.is-error::before {
  content: "\f06a";
}

.nw-help.is-ok::before {
  content: "\f058";
}

.nw-recaptcha {
  display: flex;
  justify-content: center;
  min-height: 78px;
}

.nw-auth-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 18px;
  color: var(--nw-muted);
  font-size: 13px;
}

.nw-auth-links--center {
  justify-content: center;
}

/* ---------- Alerts ---------- */

.nw-alert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
  padding: 13px 15px;
  border: 1px solid;
  border-left-width: 3px;
  border-radius: var(--nw-radius);
  font-size: 14px;
  line-height: 1.45;
}

.nw-alert > i {
  margin-top: 2px;
  font-size: 16px;
}

.nw-alert--error {
  border-color: rgba(255, 90, 60, 0.55);
  color: #ffd2c9;
  background: rgba(120, 18, 10, 0.35);
}

.nw-alert--error > i {
  color: var(--nw-red-hot);
}

.nw-alert--warning {
  border-color: rgba(242, 181, 68, 0.55);
  color: #ffe9bf;
  background: rgba(120, 80, 10, 0.3);
}

.nw-alert--warning > i {
  color: #f2b544;
}

.nw-alert--success {
  border-color: rgba(54, 210, 107, 0.5);
  color: #cdf5da;
  background: rgba(16, 90, 40, 0.3);
}

.nw-alert--success > i {
  color: var(--nw-green);
}

/* ---------- Modal ---------- */

.nw-modal {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
}

.nw-modal.is-open {
  display: flex;
}

.nw-modal-box {
  width: min(100%, 440px);
  padding: 34px 30px 30px;
  text-align: center;
  animation: nw-pop 0.25s ease;
}

.nw-modal-box h2 {
  margin: 0 0 8px;
  color: #fff;
  font-family: var(--nw-font-display);
  font-size: 22px;
}

.nw-modal-box p {
  margin: 0 0 22px;
  color: var(--nw-muted);
}

.nw-modal-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  font-size: 28px;
}

.nw-modal-icon--ok {
  color: #0b2414;
  background: radial-gradient(circle at 35% 35%, #8dffb3, var(--nw-green));
  box-shadow: 0 0 26px rgba(54, 210, 107, 0.55);
}

@keyframes nw-pop {
  from { opacity: 0; transform: scale(0.94); }
  to { opacity: 1; transform: scale(1); }
}

/* =====================================================================
   RESPONSIVE
   ===================================================================== */

@media (max-width: 1199px) {
  .nw-nav > li > a {
    padding: 0 12px;
    font-size: 12px;
  }

  .nw-stats-bar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .nw-stat:nth-child(3) {
    border-right: 0;
  }

  .nw-stat:nth-child(-n+3) {
    border-bottom: 1px solid var(--nw-line-soft);
  }

  .nw-split {
    grid-template-columns: 1fr;
  }

  .nw-footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .nw-footer-brand,
  .nw-footer-discord {
    grid-column: span 3;
  }
}

@media (max-width: 991px) {
  .nw-hero {
    min-height: 0;
    padding-top: calc(var(--nw-header-h) + 50px);
  }

  .nw-hero-char {
    width: 70vw;
    opacity: 0.55;
  }

  .nw-features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nw-info-grid,
  .nw-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

@media (max-width: 640px) {
  .nw-account-chip span,
  .nw-login-btn span {
    display: none;
  }

  .nw-login-btn {
    padding: 0 13px;
  }

  .nw-container {
    padding: 0 16px;
  }

  .nw-tagline {
    letter-spacing: 0.28em;
    font-size: 12px;
  }

  .nw-hero-actions .nw-btn {
    flex: 1 1 100%;
  }

  .nw-stats-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nw-stat {
    padding: 14px 12px;
    gap: 10px;
    border-bottom: 1px solid var(--nw-line-soft);
  }

  .nw-stat:nth-child(odd) {
    border-right: 1px solid var(--nw-line-soft);
  }

  .nw-stat:nth-child(even) {
    border-right: 0;
  }

  .nw-stat-icon {
    width: 28px;
    font-size: 22px;
  }

  .nw-stat-value {
    font-size: 16px;
  }

  .nw-features,
  .nw-info-grid {
    grid-template-columns: 1fr;
  }

  .nw-info.is-wide {
    grid-column: auto;
  }

  .nw-news {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 12px;
  }

  .nw-tab {
    font-size: 10px;
    letter-spacing: 0.04em;
  }

  .nw-panel-head,
  .nw-panel-body {
    padding-left: 14px;
    padding-right: 14px;
  }

  .nw-table th,
  .nw-table td {
    padding: 8px 6px;
  }

  .nw-hide-sm {
    display: none;
  }

  .nw-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nw-footer-brand,
  .nw-footer-discord {
    grid-column: span 2;
  }

  .nw-lang-btn {
    padding: 0 10px;
  }

  .nw-auth {
    padding-top: calc(var(--nw-header-h) + 24px);
  }

  .nw-page-hero {
    padding: calc(var(--nw-header-h) + 32px) 0 28px;
  }

  .nw-page-hero-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .nw-page-count {
    display: flex;
    align-items: baseline;
    gap: 10px;
    min-width: 0;
    padding: 8px 14px;
  }

  .nw-page-count-value {
    font-size: 22px;
  }

  .nw-toolbar {
    grid-template-columns: 1fr;
  }

  .nw-article,
  .nw-article.is-single {
    padding: 18px 16px 20px;
  }

  .nw-article-title,
  .nw-article.is-single .nw-article-title {
    font-size: 19px;
  }

  .nw-auth-card {
    padding: 26px 18px 22px;
  }

  .nw-auth-title {
    font-size: 24px;
  }

  .nw-recaptcha {
    transform: scale(0.92);
    transform-origin: center;
  }
}

/* =====================================================================
   DONATE (Pcoins)
   ===================================================================== */

body.nw-modal-open {
  overflow: hidden;
}

.nw-don-tiers {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
  margin-bottom: 20px;
  padding: 14px 20px;
  color: var(--nw-muted);
  font-size: 13px;
}

.nw-don-tiers-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-right: auto;
  color: #fff;
  font-family: var(--nw-font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nw-don-tiers-title i {
  color: var(--nw-gold);
}

.nw-don-tier-step {
  color: var(--nw-green);
  font-weight: 700;
  white-space: nowrap;
}

.nw-don-tier-step b {
  margin-right: 4px;
  color: var(--nw-text);
}

.nw-don-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.nw-don-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.nw-don-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 90, 60, 0.6);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 26px rgba(255, 60, 40, 0.2);
}

.nw-don-card-top {
  padding: 18px 18px 16px;
  border-bottom: 1px solid var(--nw-line-soft);
  background: linear-gradient(180deg, rgba(227, 52, 42, 0.12), transparent);
}

.nw-don-tier {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--nw-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nw-don-tier-badge {
  color: var(--nw-muted);
  font-size: 10px;
  white-space: nowrap;
}

.nw-don-card.is-advanced .nw-don-tier-badge { color: var(--nw-gold); background: rgba(224, 169, 106, 0.1); }
.nw-don-card.is-premium .nw-don-tier-badge { color: #ff6a50; background: rgba(227, 52, 42, 0.12); }
.nw-don-card.is-elite .nw-don-tier-badge { color: #fff; border-color: rgba(255, 110, 80, 0.75); background: linear-gradient(180deg, #c8241a, #7e0e09); }

.nw-don-card.is-elite {
  border-color: rgba(255, 90, 60, 0.55);
}

.nw-don-cc {
  margin: 0;
  color: #fff;
  font-family: var(--nw-font-display);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.05;
}

.nw-don-cc span {
  display: block;
  margin-top: 6px;
  color: var(--nw-red-hot);
  font-family: var(--nw-font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.nw-don-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 16px 18px 18px;
}

.nw-don-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.nw-don-price-label {
  color: var(--nw-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nw-don-price {
  color: var(--nw-gold);
  font-family: var(--nw-font-display);
  font-size: 22px;
  font-weight: 700;
}

.nw-don-benefits {
  display: grid;
  gap: 8px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  color: #d6cac4;
  font-size: 13px;
  line-height: 1.35;
}

.nw-don-benefits li {
  position: relative;
  padding-left: 22px;
}

.nw-don-benefits li::before {
  content: "\f00c";
  position: absolute;
  top: 1px;
  left: 0;
  color: var(--nw-green);
  font-family: "Font Awesome 6 Free";
  font-size: 12px;
  font-weight: 900;
}

.nw-don-bonus {
  color: var(--nw-green);
  font-weight: 700;
}

.nw-don-pay {
  display: grid;
  gap: 10px;
  margin-top: auto;
}

.nw-don-paypal {
  min-height: 38px;
}

/* Oculta el "Powered by PayPal" bajo el botón */
.nw-don-paypal .paypal-powered-by,
.nw-don-paypal div[data-testid="paypal-powered-by"],
.nw-don-paypal div[class*="paypal-powered-by"],
.nw-don-paypal > div:not(:first-child),
.nw-don-paypal > div + div {
  display: none !important;
}

.nw-don-card-btn {
  padding: 0 10px;
  font-family: var(--nw-font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.nw-don-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  max-width: 900px;
  margin: 24px auto 0;
  padding: 14px 20px;
  color: var(--nw-muted);
  font-size: 13px;
  text-align: center;
}

.nw-don-note i {
  color: var(--nw-gold);
}

.nw-don-popup {
  position: fixed;
  top: calc(var(--nw-header-h) + 14px);
  right: 20px;
  z-index: 1400;
  max-width: min(360px, calc(100vw - 40px));
  padding: 14px 20px;
  border: 1px solid rgba(255, 110, 80, 0.7);
  border-radius: var(--nw-radius);
  color: #fff;
  background: linear-gradient(180deg, rgba(30, 14, 12, 0.97), rgba(10, 6, 6, 0.97));
  box-shadow: 0 0 24px rgba(255, 60, 40, 0.35);
  font-weight: 600;
}

.nw-don-modal {
  width: min(100%, 520px);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 24px;
  text-align: left;
}

.nw-don-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--nw-line-soft);
}

.nw-modal-box .nw-don-modal-head p {
  margin: 0;
  font-size: 14px;
}

.nw-don-modal-summary {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
  padding: 14px 16px;
  border: 1px solid var(--nw-frame);
  background: rgba(6, 4, 5, 0.6);
}

.nw-don-modal-summary strong {
  display: block;
  margin-top: 4px;
  color: #fff;
  font-family: var(--nw-font-display);
  font-size: 19px;
}

.nw-don-modal-summary > div:last-child {
  text-align: right;
}

.nw-don-modal-summary > div:last-child strong {
  color: var(--nw-gold);
}

.nw-don-card-container {
  min-height: 48px;
}

.nw-modal-box .nw-don-modal-help {
  margin: 14px 0 0;
  font-size: 13px;
  text-align: center;
}

@media (max-width: 1199px) {
  .nw-don-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .nw-don-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .nw-don-grid {
    grid-template-columns: 1fr;
  }

  .nw-don-tiers-title {
    flex: 1 1 100%;
  }
}

/* =====================================================================
   DOWNLOAD (cliente y macro)
   ===================================================================== */

.nw-dl-page {
  display: grid;
  gap: 20px;
}

.nw-dl-date {
  display: block;
  margin-top: 4px;
  color: #fff;
  font-family: var(--nw-font-display);
  font-size: 20px;
  font-weight: 700;
  white-space: nowrap;
}

.nw-dl-stats {
  display: flex;
  gap: 12px;
}

.nw-dl-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
}

.nw-dl-file {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--nw-muted);
  font-size: 13px;
}

.nw-dl-file i {
  color: var(--nw-gold);
}

.nw-dl-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.nw-dl-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
  padding: 20px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.nw-dl-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 90, 60, 0.6);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 26px rgba(255, 60, 40, 0.2);
}

.nw-dl-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
}

.nw-dl-mirror {
  color: var(--nw-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nw-dl-icon {
  margin-top: 6px;
  color: var(--nw-red-hot);
  font-size: 30px;
  filter: drop-shadow(0 0 10px rgba(255, 60, 40, 0.45));
}

.nw-dl-name {
  margin: 0;
  color: #fff;
  font-family: var(--nw-font-display);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.2;
}

.nw-dl-card p {
  flex: 1;
  margin: 0 0 6px;
  color: var(--nw-muted);
  font-size: 13.5px;
}

.nw-dl-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.nw-dl-text {
  margin: 0 0 16px;
  color: #d6cac4;
  font-size: 14px;
}

.nw-dl-actions,
.nw-dl-launcher {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.nw-dl-launcher {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.nw-dl-macro {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 22px;
  color: var(--nw-muted) !important;
  font-size: 14px;
  transition: border-color 0.18s ease;
}

.nw-dl-macro:hover {
  border-color: rgba(255, 90, 60, 0.6);
}

.nw-dl-macro > i {
  color: var(--nw-red-hot);
  font-size: 22px;
}

.nw-dl-macro > i:last-child {
  margin-left: auto;
  font-size: 15px;
}

.nw-dl-macro strong {
  display: block;
  color: #fff;
  font-family: var(--nw-font-display);
  font-size: 16px;
}

.nw-dl-note {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 22px;
}

.nw-dl-note h3 {
  margin: 0 0 4px;
  color: #fff;
  font-family: var(--nw-font-display);
  font-size: 17px;
}

.nw-dl-note p {
  margin: 0;
  color: var(--nw-muted);
  font-size: 14px;
}

.nw-dl-note .nw-btn {
  flex: 0 0 auto;
  margin-left: auto;
}

.nw-dl-note-icon {
  color: var(--nw-green);
  font-size: 30px;
}

/* Ventanas: guía, imágenes y términos */
.nw-dl-modal {
  width: min(100%, 680px);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 24px 26px;
  text-align: left;
}

.nw-dl-modal--wide {
  width: min(100%, 900px);
}

.nw-dl-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--nw-line-soft);
}

.nw-modal-box .nw-dl-modal-head h2 {
  margin: 4px 0 0;
}

.nw-dl-steps {
  display: grid;
  gap: 14px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  counter-reset: nw-step;
}

.nw-dl-steps > li {
  position: relative;
  padding-left: 48px;
  counter-increment: nw-step;
}

.nw-dl-steps > li::before {
  content: counter(nw-step);
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 110, 80, 0.7);
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(180deg, #c8241a, #7e0e09);
  font-family: var(--nw-font-display);
  font-weight: 700;
}

.nw-dl-steps h3 {
  margin: 4px 0 4px;
  color: #fff;
  font-family: var(--nw-font-display);
  font-size: 15px;
}

.nw-modal-box .nw-dl-steps p {
  margin: 0;
  color: #d6cac4;
  font-size: 14px;
}

.nw-dl-steps ul {
  margin: 8px 0;
  padding-left: 18px;
  color: var(--nw-gold);
  font-size: 14px;
}

.nw-dl-modal .nw-alert {
  margin-top: 12px;
}

.nw-modal-box .nw-alert p {
  margin: 4px 0 0;
  color: inherit;
  font-size: 13.5px;
}

.nw-dl-shots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
}

.nw-dl-shots figure {
  margin: 0;
}

.nw-dl-shots button {
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--nw-frame);
  background: #000;
  cursor: zoom-in;
}

.nw-dl-shots button:hover {
  border-color: rgba(255, 90, 60, 0.7);
}

.nw-dl-shots img {
  width: 100%;
}

.nw-dl-shots figcaption {
  margin-top: 8px;
  color: var(--nw-muted);
  font-size: 13px;
  text-align: center;
}

.nw-dl-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1350;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.9);
}

.nw-dl-lightbox.is-open {
  display: flex;
}

.nw-dl-lightbox img {
  max-width: 100%;
  max-height: calc(100vh - 48px);
  object-fit: contain;
}

.nw-dl-lightbox .nw-icon-btn {
  position: absolute;
  top: 16px;
  right: 16px;
}

.nw-dl-terms-icon {
  color: #fff;
  background: linear-gradient(180deg, #c8241a, #7e0e09);
  box-shadow: 0 0 22px rgba(255, 60, 40, 0.45);
}

.nw-dl-terms-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
}

.nw-dl-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--nw-frame);
  background: rgba(6, 4, 5, 0.6);
  color: #e8dcd6;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}

.nw-dl-check input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--nw-red);
  cursor: pointer;
}

.nw-dl-terms-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.nw-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

@media (max-width: 1199px) {
  .nw-dl-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 991px) {
  .nw-dl-split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .nw-dl-stats {
    flex-direction: column;
    width: 100%;
  }

  .nw-dl-stats .nw-stat-label {
    white-space: normal;
  }

  .nw-dl-note {
    flex-direction: column;
    align-items: flex-start;
  }

  .nw-dl-note .nw-btn {
    margin-left: 0;
  }

  .nw-dl-shots {
    grid-template-columns: 1fr;
  }

  .nw-dl-modal {
    padding: 18px 16px;
  }
}

@media (max-width: 520px) {
  .nw-dl-grid,
  .nw-dl-launcher {
    grid-template-columns: 1fr;
  }
}

/* Móvil estrecho con sesión iniciada: campana + salir + idioma deben caber
   ("Administrar cuenta" sigue disponible en el menú Cuenta) */
@media (max-width: 420px) {
  .nw-header-tools {
    gap: 6px;
  }

  .nw-account-chip {
    display: none !important;
  }

  html.nw-compact .nw-header-brand {
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nw-embers {
    animation: none;
  }

  .nw-btn,
  .nw-feature,
  .nw-feature-img,
  .nw-shot img {
    transition: none;
  }
}

/* =====================================================================
   AUCTION HOUSE
   ===================================================================== */

.nw-balance {
  flex: 0 0 auto;
  display: grid;
  gap: 6px;
  min-width: 220px;
  padding: 14px 20px;
  border: 1px solid var(--nw-frame);
  background: rgba(10, 8, 9, 0.85);
}

.nw-balance-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: var(--nw-muted);
  font-size: 13px;
  white-space: nowrap;
}

.nw-balance-row i {
  width: 16px;
  color: var(--nw-gold);
  font-size: 13px;
}

.nw-balance-row b {
  color: var(--nw-gold);
  font-family: var(--nw-font-display);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.1;
}

.nw-balance-row.is-pcoin i,
.nw-balance-row.is-pcoin b {
  color: var(--nw-red-hot);
}

.nw-ah-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.nw-ah-filters {
  position: sticky;
  top: calc(var(--nw-header-h) + 16px);
}

.nw-ah-filter-form {
  display: grid;
  gap: 14px;
}

.nw-ah-filter-form .nw-btn--block {
  margin-top: 4px;
}

.nw-ah-layout .nw-input {
  height: 42px;
  padding: 0 14px;
  font-size: 14px;
}

.nw-ah-layout .nw-input-wrap .nw-input {
  padding-left: 40px;
}

.nw-ah-main {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.nw-ah-searchbox {
  padding: 14px;
  scroll-margin-top: calc(var(--nw-header-h) + 16px);
}

.nw-ah-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
}

.nw-ah-search .nw-btn {
  min-height: 42px;
}

.nw-ah-advanced {
  display: none;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--nw-line-soft);
}

.nw-ah-advanced.is-open {
  display: grid;
}

.nw-ah-results {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  padding: 0 2px;
}

.results-count {
  color: var(--nw-muted);
  font-size: 14px;
}

.results-count b {
  color: #fff;
  font-family: var(--nw-font-display);
  font-size: 18px;
}

.nw-ah-perpage {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--nw-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.nw-ah-layout .nw-ah-perpage .nw-input {
  width: 86px;
  height: 36px;
}

.nw-ah-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.nw-ah-empty {
  grid-column: 1 / -1;
}

.nw-ah-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  padding: 16px;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.nw-ah-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 90, 60, 0.6);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.55), 0 0 22px rgba(255, 60, 40, 0.18);
}

.nw-ah-card-head {
  display: grid;
  gap: 10px;
}

.nw-ah-icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid var(--nw-frame);
  background: radial-gradient(circle at 50% 40%, rgba(227, 52, 42, 0.22), rgba(6, 4, 5, 0.9) 70%);
  box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.7);
}

.nw-ah-icon img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.6));
}

.nw-ah-card-heading {
  display: grid;
  justify-items: start;
  gap: 6px;
  min-width: 0;
}

.nw-ah-card-title {
  margin: 0;
  color: #fff;
  font-family: var(--nw-font-display);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
  overflow-wrap: break-word;
}

.nw-ah-bound {
  color: #5aa6ff;
  background: rgba(61, 139, 217, 0.12);
  font-size: 10px;
}

.nw-ah-meta {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 10px 0 0;
  border-top: 1px solid var(--nw-line-soft);
  font-size: 13px;
}

.nw-ah-meta > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.nw-ah-meta dt {
  color: var(--nw-muted);
}

.nw-ah-meta dd {
  margin: 0;
  color: var(--nw-text);
  font-weight: 600;
  text-align: right;
  overflow-wrap: anywhere;
}

.nw-ah-reinforce {
  color: #c084fc !important;
}

.nw-ah-stones {
  padding: 6px 8px;
  border-left: 2px solid var(--nw-blue);
  color: #b9d8ff;
  background: rgba(61, 139, 217, 0.08);
  font-size: 12px;
  line-height: 1.4;
}

.nw-ah-block {
  display: grid;
  gap: 4px;
}

.nw-ah-block-label {
  color: var(--nw-gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nw-ah-stats {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--nw-green);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
}

.nw-ah-stats li {
  position: relative;
  padding-left: 11px;
}

.nw-ah-stats li::before {
  content: "";
  position: absolute;
  top: 0.55em;
  left: 0;
  width: 4px;
  height: 4px;
  background: var(--nw-red);
  transform: rotate(45deg);
}

.nw-ah-skills {
  color: var(--nw-gold);
  font-size: 12px;
  font-weight: 600;
}

.nw-ah-price {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--nw-line);
  color: var(--nw-gold);
  font-family: var(--nw-font-display);
  font-size: 15px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.nw-ah-price i {
  color: var(--nw-gold-soft);
  font-size: 13px;
}

/* Paginación con enlaces y huecos */
a.nw-page-btn,
span.nw-page-btn {
  display: inline-grid;
  place-items: center;
}

.nw-page-btn[aria-disabled="true"] {
  opacity: 0.4;
  pointer-events: none;
}

.nw-page-gap,
.nw-page-gap:hover {
  border-color: transparent;
  color: var(--nw-muted);
  background: transparent;
  cursor: default;
}

@media (max-width: 1199px) {
  .nw-ah-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .nw-ah-advanced {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 991px) {
  .nw-ah-layout {
    grid-template-columns: 1fr;
  }

  .nw-ah-filters {
    position: static;
  }

  .nw-ah-filter-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nw-ah-filter-form .nw-btn--block {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .nw-ah-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .nw-balance {
    min-width: 0;
    width: 100%;
    padding: 10px 14px;
  }

  .nw-balance-row b {
    font-size: 18px;
  }

  .nw-ah-search {
    grid-template-columns: 1fr 1fr;
  }

  .nw-ah-search .nw-input-wrap {
    grid-column: 1 / -1;
  }

  .nw-ah-search .nw-btn {
    padding: 0 10px;
    font-size: 12px;
  }

  .nw-ah-advanced {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .nw-ah-grid,
  .nw-ah-filter-form {
    grid-template-columns: 1fr;
  }
}

/* =====================================================================
   CONTACT SUPPORT (contact.php)
   ===================================================================== */

.nw-contact-page {
  max-width: 860px;
  padding-bottom: 60px;
}

.nw-contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 20px;
  padding-top: 22px;
}

.nw-contact-full {
  grid-column: 1 / -1;
}

.nw-contact-help {
  color: var(--nw-muted);
}

.nw-select:disabled {
  color: var(--nw-gold);
  background: rgba(30, 20, 14, 0.6);
  cursor: not-allowed;
}

/* Textarea con el mismo aspecto que .nw-input */
.nw-input.nw-textarea {
  display: block;
  height: auto;
  min-height: 180px;
  padding: 13px 16px;
  line-height: 1.55;
  resize: vertical;
}

.nw-contact-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 20px;
  padding-top: 18px;
  border-top: 1px solid var(--nw-line-soft);
}

.nw-contact-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--nw-muted);
  font-size: 13px;
}

.nw-contact-note i {
  color: var(--nw-gold-soft);
}

.nw-contact-foot .nw-btn {
  min-width: 200px;
}

@media (max-width: 640px) {
  .nw-contact-grid {
    grid-template-columns: 1fr;
  }

  .nw-contact-grid,
  .nw-contact-foot {
    padding-right: 16px;
    padding-left: 16px;
  }

  .nw-contact-foot .nw-btn {
    width: 100%;
  }
}

/* =====================================================================
   LEGAL PAGES (privacy.php)
   ===================================================================== */

.nw-legal-meta {
  display: grid;
  gap: 8px;
  flex: 0 0 auto;
  min-width: 240px;
  margin: 0;
}

.nw-legal-meta > div {
  padding: 9px 16px;
  border: 1px solid var(--nw-frame);
  border-left: 3px solid var(--nw-red);
  background: rgba(10, 8, 9, 0.85);
}

.nw-legal-meta dt {
  color: var(--nw-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nw-legal-meta dd {
  margin: 2px 0 0;
  color: #fff;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.nw-legal-layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  align-items: start;
  gap: 24px;
  padding-bottom: 60px;
}

.nw-legal-toc {
  position: sticky;
  top: calc(var(--nw-header-h) + 20px);
  padding: 18px 18px 14px;
}

.nw-legal-toc-title {
  margin: 0 0 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--nw-line-soft);
  color: #fff;
  font-family: var(--nw-font-display);
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nw-legal-toc ol {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nw-legal-toc a {
  display: block;
  padding: 7px 10px;
  border-left: 2px solid transparent;
  color: #d9ccc6;
  font-size: 13.5px;
  line-height: 1.35;
  transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.nw-legal-toc a:hover,
.nw-legal-toc a:focus-visible {
  border-left-color: var(--nw-red-hot);
  color: #fff;
  background: rgba(227, 52, 42, 0.1);
}

.nw-legal-body {
  display: grid;
  gap: 16px;
}

.nw-legal-section {
  padding: 22px 26px;
  scroll-margin-top: calc(var(--nw-header-h) + 20px);
}

.nw-legal-section p {
  margin: 0;
  color: #d9ccc6;
}

.nw-legal-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 12px;
  color: #fff;
  font-family: var(--nw-font-display);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.03em;
}

.nw-legal-num {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--nw-frame);
  color: var(--nw-red-hot);
  background: rgba(120, 18, 12, 0.25);
  font-size: 15px;
}

.nw-legal-list {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.nw-legal-list li {
  position: relative;
  padding-left: 22px;
  color: #d9ccc6;
}

.nw-legal-list li::before {
  content: "";
  position: absolute;
  top: 0.62em;
  left: 4px;
  width: 7px;
  height: 7px;
  background: var(--nw-red);
  transform: rotate(45deg);
}

.nw-legal-note-icon {
  color: var(--nw-gold);
}

.nw-legal-signature {
  margin: 4px 0 0;
  color: var(--nw-muted);
  font-family: var(--nw-font-display);
  font-size: 14px;
  letter-spacing: 0.06em;
  text-align: right;
}

@media (max-width: 991px) {
  .nw-legal-layout {
    grid-template-columns: 1fr;
  }

  .nw-legal-toc {
    position: static;
  }

  .nw-legal-toc ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nw-legal-meta {
    width: 100%;
    min-width: 0;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .nw-legal-meta,
  .nw-legal-toc ol {
    grid-template-columns: 1fr;
  }

  .nw-legal-section {
    padding: 18px 16px;
  }

  .nw-legal-title {
    gap: 10px;
    font-size: 17px;
  }

  .nw-legal-num {
    width: 34px;
    height: 34px;
    font-size: 13px;
  }

  .nw-legal-signature {
    text-align: left;
  }
}

/* Enlaces dentro del texto y tabla (cookie-policy.php) */
.nw-legal-section p a {
  color: var(--nw-red-hot);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.nw-legal-section p a:hover {
  color: #fff;
}

.nw-legal-table {
  width: 100%;
  margin-top: 4px;
  border: 1px solid var(--nw-line-soft);
  border-collapse: collapse;
  background: rgba(6, 4, 5, 0.55);
  font-size: 14px;
}

.nw-legal-table th,
.nw-legal-table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--nw-line-soft);
  text-align: left;
  vertical-align: top;
}

.nw-legal-table th {
  color: var(--nw-gold);
  background: rgba(120, 18, 12, 0.22);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nw-legal-table td {
  color: #d9ccc6;
}

.nw-legal-table td strong {
  color: #fff;
  font-weight: 600;
}

.nw-legal-table tbody tr:last-child td {
  border-bottom: 0;
}

.nw-legal-cell-label {
  display: none;
}

@media (max-width: 640px) {
  .nw-legal-table,
  .nw-legal-table tbody,
  .nw-legal-table tr,
  .nw-legal-table td {
    display: block;
  }

  .nw-legal-table thead {
    display: none;
  }

  .nw-legal-table tr {
    padding: 6px 0;
    border-bottom: 1px solid var(--nw-line);
  }

  .nw-legal-table tbody tr:last-child {
    border-bottom: 0;
  }

  .nw-legal-table td {
    padding: 6px 14px;
    border-bottom: 0;
  }

  .nw-legal-cell-label {
    display: block;
    margin-bottom: 2px;
    color: var(--nw-gold);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }
}

/* =====================================================================
   MANAGE ACCOUNT (manage.php)
   ===================================================================== */

.nw-manage-page {
  display: grid;
  gap: 22px;
  padding-bottom: 60px;
}

.nw-manage-chars {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 14px;
}

.nw-manage-char {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--nw-line-soft);
  border-top: 2px solid var(--nw-red);
  background: linear-gradient(180deg, rgba(120, 18, 12, 0.18), rgba(6, 4, 5, 0.6) 55%);
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.nw-manage-char:hover {
  border-color: var(--nw-frame);
  border-top-color: var(--nw-red-hot);
  transform: translateY(-2px);
}

.nw-manage-char-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nw-manage-char-avatar {
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  border: 1px solid var(--nw-frame);
  background: rgba(0, 0, 0, 0.5);
  object-fit: cover;
}

.nw-manage-char-id {
  min-width: 0;
  flex: 1;
}

.nw-manage-char-id h3 {
  margin: 0;
  overflow: hidden;
  color: #fff;
  font-family: var(--nw-font-display);
  font-size: 17px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nw-manage-char-class {
  color: var(--nw-gold);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nw-manage-char-level {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  min-width: 52px;
  padding: 4px 8px;
  border: 1px solid var(--nw-line);
  color: var(--nw-red-hot);
  background: rgba(120, 18, 12, 0.25);
  font-family: var(--nw-font-display);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.1;
}

.nw-manage-char-level small {
  color: var(--nw-muted);
  font-family: var(--nw-font-body);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nw-manage-char-stats {
  display: grid;
  gap: 6px;
  margin: 0;
}

.nw-manage-char-stats > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  padding: 7px 10px;
  border: 1px solid var(--nw-line-soft);
  background: rgba(0, 0, 0, 0.35);
}

.nw-manage-char-stats dt {
  color: var(--nw-muted);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nw-manage-char-stats dt {
  flex: 0 0 auto;
}

.nw-manage-char-stats dd {
  min-width: 0;
  margin: 0;
  color: #fff;
  font-weight: 600;
  text-align: right;
  overflow-wrap: anywhere;
}

.nw-manage-gold {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--nw-gold) !important;
}

.nw-manage-gold i {
  font-size: 12px;
}

.nw-manage-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0;
  color: var(--nw-muted);
}

.nw-manage-email {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  min-width: 0;
  color: var(--nw-muted);
  font-size: 13px;
}

.nw-manage-email strong {
  color: var(--nw-gold);
  overflow-wrap: anywhere;
}

.nw-manage-forms {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.nw-manage-form {
  padding: 20px;
  border: 1px solid var(--nw-line-soft);
  background: rgba(6, 4, 5, 0.55);
}

.nw-manage-form-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.nw-manage-form-head h3 {
  margin: 0 0 4px;
  color: #fff;
  font-family: var(--nw-font-display);
  font-size: 18px;
}

.nw-manage-form-head p {
  margin: 0;
  color: var(--nw-muted);
  font-size: 13px;
}

.nw-manage-form-icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--nw-frame);
  color: var(--nw-gold);
  background: rgba(120, 18, 12, 0.25);
}

.nw-manage-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-top: 6px;
}

.nw-manage-meta .nw-help {
  margin-top: 0;
}

.nw-manage-counter {
  flex: 0 0 auto;
  margin-left: auto;
  color: var(--nw-muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.nw-manage-strength {
  color: var(--nw-muted);
  font-size: 12.5px;
}

.nw-manage-strength.is-weak b { color: var(--nw-red-hot); }
.nw-manage-strength.is-fair b { color: #f2b544; }
.nw-manage-strength.is-strong b { color: var(--nw-gold); }
.nw-manage-strength.is-very-strong b { color: var(--nw-green); }

@media (max-width: 991px) {
  .nw-manage-forms {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .nw-manage-page .nw-panel-head {
    flex-direction: column;
    align-items: flex-start;
    padding-right: 16px;
    padding-left: 16px;
  }

  .nw-manage-page .nw-panel-body {
    padding-right: 16px;
    padding-left: 16px;
  }

  .nw-manage-chars {
    grid-template-columns: 1fr;
  }

  .nw-manage-form {
    padding: 16px;
  }
}

/* Barra de estadísticas en móvil: etiquetas largas (p. ej. "Tasa de experiencia") pasan a dos líneas */
@media (max-width: 520px) {
  .nw-stats-bar .nw-stat > div {
    min-width: 0;
  }

  .nw-stats-bar .nw-stat-label {
    white-space: normal;
  }
}

/* =====================================================================
   RANKINGS (ranking-level.php, ranking-guilds.php)
   ===================================================================== */

.nw-rank-page {
  display: grid;
  gap: 18px;
  max-width: 1040px;
  padding-bottom: 60px;
}

.nw-rank-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.nw-rank-tab {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 20px;
  border: 1px solid var(--nw-line-soft);
  color: #cfc3bd;
  background: rgba(10, 8, 9, 0.85);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.nw-rank-tab i {
  color: var(--nw-gold-soft);
}

.nw-rank-tab:hover {
  border-color: rgba(255, 90, 60, 0.4);
  color: #fff;
}

.nw-rank-tab.is-active {
  border-color: rgba(255, 110, 80, 0.75);
  color: #fff;
  background: linear-gradient(180deg, #c8241a, #7e0e09);
  box-shadow: 0 0 16px rgba(255, 60, 40, 0.35);
}

.nw-rank-tab.is-active i {
  color: #fff;
}

.nw-rank-badge {
  padding: 5px 12px;
  border: 1px solid var(--nw-line-soft);
  color: var(--nw-muted);
  background: rgba(0, 0, 0, 0.35);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.nw-rank-body {
  padding-top: 8px;
}

.nw-rank-table td {
  padding-top: 11px;
  padding-bottom: 11px;
}

.nw-rank-table tbody tr {
  transition: background 0.15s ease;
}

.nw-rank-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

.nw-rank-table tr.is-podium {
  background: linear-gradient(90deg, rgba(227, 52, 42, 0.12), transparent 70%);
}

.nw-rank-empty {
  padding: 36px 10px !important;
  color: var(--nw-muted) !important;
  text-align: center;
}

.nw-rank-castle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-weight: 600;
}

.nw-rank-castle i {
  color: var(--nw-gold-soft);
  font-size: 13px;
}

.nw-castle-archlord .nw-rank-castle i {
  color: #f2b544;
}

.nw-rank-guild {
  color: var(--nw-gold);
}

.nw-page-count-value small {
  margin-left: 2px;
  color: var(--nw-muted);
  font-size: 0.55em;
}

@media (max-width: 640px) {
  .nw-rank-tab {
    flex: 1 1 0;
    justify-content: center;
    padding: 0 10px;
    font-size: 11px;
    letter-spacing: 0.04em;
  }

  .nw-rank-page .nw-panel-head {
    flex-wrap: wrap;
    padding-right: 16px;
    padding-left: 16px;
  }

  .nw-rank-body {
    padding-right: 10px;
    padding-left: 10px;
  }
}

/* =====================================================================
   BACK IN TIME (backintime.php)
   ===================================================================== */

.nw-bit-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 440px);
  align-items: center;
  gap: 32px;
}

.nw-bit-levels {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}

.nw-bit-levels > span {
  padding: 7px 14px;
  border: 1px solid rgba(255, 110, 80, 0.6);
  color: #fff;
  background: rgba(120, 18, 12, 0.45);
  font-family: var(--nw-font-display);
  font-size: 15px;
  font-weight: 700;
}

.nw-bit-levels > i {
  color: var(--nw-gold);
}

.nw-bit-entrance {
  position: relative;
  margin: 0;
  border: 1px solid var(--nw-frame);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 40px rgba(227, 52, 42, 0.18);
}

.nw-bit-entrance img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.nw-bit-page {
  display: grid;
  gap: 34px;
  padding-top: 28px;
  padding-bottom: 60px;
}

.nw-bit-kicker {
  color: var(--nw-red-hot);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.nw-bit-heading {
  margin-bottom: 16px;
}

.nw-bit-heading h2 {
  margin: 6px 0 6px;
  color: #fff;
  font-family: var(--nw-font-display);
  font-size: 28px;
  font-weight: 700;
}

.nw-bit-heading p,
.nw-bit-note {
  max-width: 720px;
  margin: 0;
  color: var(--nw-muted);
}

.nw-bit-schedule {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.nw-bit-window {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 10px;
  border: 1px solid var(--nw-line-soft);
  border-top: 2px solid var(--nw-red);
  background: rgba(6, 4, 5, 0.6);
}

.nw-bit-window i {
  color: var(--nw-gold);
}

.nw-bit-window strong {
  color: #fff;
  font-family: var(--nw-font-display);
  font-size: 18px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.nw-bit-note {
  margin-top: 14px;
  font-size: 13.5px;
}

.nw-bit-rules {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.nw-bit-rule {
  padding: 20px;
}

.nw-bit-rule > i {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 12px;
  border: 1px solid var(--nw-frame);
  color: var(--nw-gold);
  background: rgba(120, 18, 12, 0.25);
  font-size: 18px;
}

.nw-bit-rule h3 {
  margin: 0 0 6px;
  color: #fff;
  font-family: var(--nw-font-display);
  font-size: 17px;
}

.nw-bit-rule p {
  margin: 0;
  color: #d9ccc6;
  font-size: 14px;
}

.nw-bit-monsters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.nw-bit-monster {
  padding: 16px;
}

.nw-bit-monster-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.nw-bit-monster-image {
  flex: 0 0 auto;
  width: 72px;
  height: 96px;
  border: 1px solid var(--nw-frame);
  background: radial-gradient(circle, rgba(120, 18, 12, 0.35), rgba(0, 0, 0, 0.6));
}

.nw-bit-monster-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nw-bit-monster h3 {
  margin: 0 0 6px;
  color: #fff;
  font-family: var(--nw-font-display);
  font-size: 18px;
}

.nw-bit-monster-level {
  display: inline-block;
  padding: 3px 9px;
  border: 1px solid var(--nw-line);
  color: var(--nw-red-hot);
  background: rgba(120, 18, 12, 0.25);
  font-size: 12px;
  font-weight: 700;
}

.nw-bit-drops-label {
  display: block;
  margin-bottom: 8px;
  color: var(--nw-gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nw-bit-drops {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nw-bit-drops li {
  padding: 4px 9px;
  border: 1px solid var(--nw-line-soft);
  color: #e0d4ce;
  background: rgba(255, 255, 255, 0.03);
  font-size: 12.5px;
}

.nw-bit-chests {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.nw-bit-chest {
  padding: 18px;
  border-top: 2px solid var(--nw-gold-soft);
}

.nw-bit-chest--2 {
  border-top-color: #cfd6df;
}

.nw-bit-chest--3 {
  border-top-color: var(--nw-red-hot);
}

.nw-bit-chest-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--nw-line-soft);
}

.nw-bit-chest-title img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.nw-bit-chest-title span {
  color: var(--nw-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nw-bit-chest-title h3 {
  margin: 2px 0 0;
  color: #fff;
  font-family: var(--nw-font-display);
  font-size: 17px;
}

.nw-bit-chest-items {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nw-bit-chest-items li {
  display: flex;
  gap: 8px;
  color: #e0d4ce;
  font-size: 14px;
}

.nw-bit-chest-items i {
  margin-top: 4px;
  color: var(--nw-red-hot);
  font-size: 11px;
}

@media (max-width: 1199px) {
  .nw-bit-rules {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nw-bit-monsters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 991px) {
  .nw-bit-hero-inner {
    grid-template-columns: 1fr;
  }

  .nw-bit-entrance {
    max-width: 520px;
  }

  .nw-bit-schedule {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nw-bit-chests {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .nw-bit-rules,
  .nw-bit-monsters {
    grid-template-columns: 1fr;
  }

  .nw-bit-heading h2 {
    font-size: 23px;
  }

  .nw-bit-window strong {
    font-size: 15px;
  }

  .nw-bit-block .nw-panel-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* =====================================================================
   MONSTER DROPS / BESTIARY (mobs.php)
   ===================================================================== */

.nw-mobs-page {
  display: grid;
  gap: 18px;
  padding-bottom: 60px;
}

.nw-mobs-filters {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) auto;
  align-items: end;
  gap: 12px 14px;
  padding: 16px 18px;
}

.nw-mobs-filters .nw-field > span:first-child {
  display: block;
  margin-bottom: 6px;
  color: #e8dcd6;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.nw-mobs-search .nw-input {
  padding-right: 14px;
}

.nw-mobs-actions {
  display: flex;
  gap: 8px;
}

.nw-mobs-actions .nw-btn {
  height: 48px;
}

.nw-mobs-actions .mobs-clear[hidden] {
  display: none;
}

#mobsResults[aria-busy="true"] {
  opacity: 0.55;
  transition: opacity 0.2s ease;
}

.nw-mobs-empty i {
  margin-bottom: 10px;
  color: var(--nw-red-hot);
  font-size: 34px;
}

.nw-mobs-empty h2 {
  margin: 0 0 6px;
  color: #fff;
  font-family: var(--nw-font-display);
  font-size: 22px;
}

.nw-mobs-empty p {
  margin: 0;
}

.nw-mobs-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.nw-mob-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.nw-mob-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-bottom: 1px solid var(--nw-line-soft);
  background: linear-gradient(180deg, rgba(120, 18, 12, 0.18), transparent);
}

.nw-mob-emblem {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  overflow: hidden;
  border: 1px solid var(--nw-frame);
  color: var(--nw-red-hot);
  background: radial-gradient(circle, rgba(120, 18, 12, 0.35), rgba(0, 0, 0, 0.6));
  font-size: 24px;
}

.nw-mob-emblem img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
}

.nw-mob-emblem small {
  color: var(--nw-muted);
  font-size: 10px;
}

.nw-mob-info {
  min-width: 0;
}

.nw-mob-info h2 {
  margin: 0 0 6px;
  color: var(--mob-name-color, #fff);
  font-family: var(--nw-font-display);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.2;
  text-shadow: 0 1px 6px #000;
  overflow-wrap: anywhere;
}

.nw-mob-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.nw-mob-meta > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border: 1px solid var(--nw-line-soft);
  color: #d9ccc6;
  background: rgba(0, 0, 0, 0.35);
  font-size: 12px;
}

.nw-mob-meta i {
  color: var(--nw-gold-soft);
  font-size: 11px;
}

.nw-mob-meta .nw-mob-level {
  border-color: var(--nw-line);
  color: var(--nw-red-hot);
  background: rgba(120, 18, 12, 0.25);
  font-weight: 700;
}

.nw-mob-drops summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  color: var(--nw-gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  list-style: none;
}

.nw-mob-drops summary::-webkit-details-marker {
  display: none;
}

.nw-mob-drops summary::after {
  content: "\f078";
  margin-left: 8px;
  color: var(--nw-muted);
  font-family: "Font Awesome 6 Free";
  font-size: 10px;
  font-weight: 900;
  transition: transform 0.2s ease;
}

.nw-mob-drops[open] summary::after {
  transform: rotate(180deg);
}

.nw-mob-drops summary b {
  margin-left: auto;
  color: #e8dcd6;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: none;
}

.nw-mob-drop-list {
  display: grid;
  gap: 4px;
  max-height: 330px;
  overflow: auto;
  padding: 0 12px 14px;
  scrollbar-width: thin;
  scrollbar-color: rgba(201, 145, 88, 0.45) transparent;
}

.nw-mob-drop {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 6px;
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.nw-mob-drop:hover {
  border-color: var(--nw-line-soft);
  background: rgba(255, 255, 255, 0.03);
}

.nw-mob-drop-icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--nw-line-soft);
  color: var(--nw-muted);
  background: rgba(0, 0, 0, 0.5);
}

.nw-mob-drop-icon img {
  max-width: 32px;
  max-height: 32px;
  cursor: zoom-in;
}

.nw-mob-drop strong {
  min-width: 0;
  color: #e8dcd6;
  font-size: 13px;
  font-weight: 500;
  overflow-wrap: anywhere;
}

/* Visor de imagen a pantalla completa (lo abre mobs-filter.js) */
.mobs-image-viewer {
  position: fixed;
  inset: 0;
  z-index: 1400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(4px);
  cursor: zoom-out;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease, visibility 0.18s ease;
}

.mobs-image-viewer.is-open {
  opacity: 1;
  visibility: visible;
}

.mobs-image-viewer img {
  width: auto;
  height: auto;
  max-width: calc(100vw - 48px);
  max-height: calc(100vh - 48px);
  border: 1px solid var(--nw-frame);
  box-shadow: 0 18px 65px rgba(0, 0, 0, 0.75);
  object-fit: contain;
  cursor: default;
}

body.mobs-viewer-open {
  overflow: hidden;
}

.mobs-pagination .nw-page-btn.disabled {
  opacity: 0.4;
  pointer-events: none;
}

@media (max-width: 1199px) {
  .nw-mobs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 991px) {
  .nw-mobs-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nw-mobs-search {
    grid-column: 1 / -1;
  }

  .nw-mobs-actions {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .nw-mobs-filters {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .nw-mobs-actions .nw-btn {
    flex: 1 1 0;
  }

  .nw-mobs-grid {
    grid-template-columns: 1fr;
  }
}

/* =====================================================================
   NOTIFICACIONES (user-updates.php)
   ===================================================================== */

.nw-upd-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  flex: 0 0 auto;
  min-width: 330px;
}

.nw-upd-stat {
  padding: 14px 12px;
  border: 1px solid var(--nw-frame);
  background: rgba(10, 8, 9, 0.85);
  text-align: center;
}

.nw-upd-stat span {
  display: block;
  color: var(--nw-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nw-upd-stat strong {
  display: block;
  margin-top: 4px;
  color: #fff;
  font-family: var(--nw-font-display);
  font-size: 28px;
  line-height: 1.1;
}

.nw-upd-stat.is-unread strong {
  color: var(--nw-red-hot);
}

.nw-upd-stat.is-read strong {
  color: var(--nw-green);
}

.nw-upd-page {
  display: grid;
  gap: 18px;
  max-width: 980px;
}

.nw-upd-head {
  flex-wrap: wrap;
}

.nw-upd-head-copy {
  margin: 6px 0 0;
  color: var(--nw-muted);
  font-size: 13px;
}

.nw-upd-mark-all .nw-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.nw-upd-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.nw-upd-item {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px 22px;
  border-bottom: 1px solid var(--nw-line-soft);
  border-left: 3px solid transparent;
  transition: background 0.15s ease;
}

.nw-upd-item:last-child {
  border-bottom: 0;
}

.nw-upd-item:hover {
  background: rgba(255, 255, 255, 0.025);
}

.nw-upd-item.is-unread {
  border-left-color: var(--nw-red);
  background: rgba(227, 52, 42, 0.07);
}

.nw-upd-dot {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--nw-line-soft);
  color: var(--nw-muted);
  background: rgba(0, 0, 0, 0.3);
}

.nw-upd-item.is-unread .nw-upd-dot {
  border-color: rgba(255, 90, 60, 0.45);
  color: var(--nw-red-hot);
}

.nw-upd-message {
  color: #d9ccc6;
  font-size: 14px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.nw-upd-item.is-unread .nw-upd-message {
  color: #fff;
  font-weight: 600;
}

.nw-upd-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nw-upd-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-right: 4px;
  color: var(--nw-red-hot);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.nw-upd-status i {
  font-size: 8px;
}

.nw-upd-status.is-read {
  color: var(--nw-muted);
}

.nw-upd-status.is-read i {
  color: var(--nw-green);
  font-size: 12px;
}

.nw-upd-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--nw-frame);
  border-radius: var(--nw-radius);
  color: var(--nw-text);
  background: rgba(30, 20, 18, 0.92);
  cursor: pointer;
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}

.nw-upd-icon:hover,
.nw-upd-icon:focus-visible {
  border-color: var(--nw-green);
  color: var(--nw-green);
  outline: none;
}

.nw-upd-icon.is-danger:hover,
.nw-upd-icon.is-danger:focus-visible {
  border-color: var(--nw-red-hot);
  color: var(--nw-red-hot);
  background: rgba(227, 52, 42, 0.12);
}

.nw-upd-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--nw-muted);
  font-size: 13px;
}

.nw-upd-note i {
  color: var(--nw-gold);
}

.nw-upd-modal-icon {
  color: #fff;
  background: radial-gradient(circle at 35% 35%, #ff7a5c, var(--nw-red-deep));
  box-shadow: 0 0 26px rgba(227, 52, 42, 0.5);
}

.nw-upd-modal-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
}

@media (max-width: 900px) {
  .nw-upd-stats {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 640px) {
  .nw-upd-item {
    grid-template-columns: 34px minmax(0, 1fr);
    padding: 14px 16px;
  }

  .nw-upd-dot {
    width: 34px;
    height: 34px;
  }

  .nw-upd-actions {
    grid-column: 2;
    justify-content: flex-end;
  }

  .nw-upd-mark-all,
  .nw-upd-mark-all .nw-btn {
    width: 100%;
  }
}

/* =====================================================================
   CREAR NOTIFICACIÓN (text-update.php, solo admin)
   ===================================================================== */

.nw-txt-page {
  display: grid;
  gap: 16px;
  max-width: 640px;
}

.nw-txt-page > .nw-alert {
  margin-bottom: 0;
}

.nw-txt-form {
  padding: 26px;
}

.nw-txt-form .nw-input-wrap .nw-input {
  padding-right: 16px;
}

/* =====================================================================
   RETURN WARRIOR (return-warrior.php, return-warrior-list.php)
   ===================================================================== */

.nw-rw-title {
  max-width: 820px;
  font-size: clamp(32px, 4.4vw, 50px);
}

.nw-rw-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.nw-rw-page {
  display: grid;
  gap: 22px;
  padding-top: 28px;
  padding-bottom: 60px;
}

.nw-rw-kicker {
  display: block;
  margin-bottom: 4px;
  color: var(--nw-red-hot);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Nueva expansión */
.nw-rw-expansion {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px 26px;
  border-color: rgba(255, 90, 60, 0.45);
  background:
    radial-gradient(circle at 0% 50%, rgba(227, 52, 42, 0.25), transparent 45%),
    linear-gradient(180deg, rgba(20, 13, 14, 0.94), rgba(9, 7, 8, 0.94));
}

.nw-rw-expansion-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 62px;
  height: 62px;
  border: 1px solid rgba(255, 90, 60, 0.5);
  border-radius: 50%;
  color: var(--nw-red-hot);
  background: rgba(227, 52, 42, 0.14);
  box-shadow: 0 0 24px rgba(227, 52, 42, 0.35);
  font-size: 26px;
}

.nw-rw-expansion h2,
.nw-rw-heading h2,
.nw-rw-boost h2 {
  margin: 0;
  color: #fff;
  font-family: var(--nw-font-display);
  font-size: 24px;
  font-weight: 700;
}

.nw-rw-expansion p,
.nw-rw-heading p,
.nw-rw-boost p {
  margin: 6px 0 0;
  color: #d9ccc6;
  font-size: 14px;
}

/* Recompensas */
.nw-rw-rewards {
  padding: 26px;
}

.nw-rw-heading {
  margin-bottom: 20px;
}

.nw-rw-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 12px;
}

.nw-rw-reward {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--nw-line-soft);
  background: rgba(0, 0, 0, 0.3);
  transition: border-color 0.18s ease;
}

.nw-rw-reward:hover {
  border-color: var(--nw-frame);
}

.nw-rw-reward-img {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid var(--nw-frame);
  background: radial-gradient(circle, rgba(224, 169, 106, 0.14), rgba(0, 0, 0, 0.5));
}

.nw-rw-reward-img img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.nw-rw-reward h3 {
  margin: 0 0 3px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}

.nw-rw-qty {
  color: var(--nw-muted);
  font-size: 12px;
}

.nw-rw-qty strong {
  color: var(--nw-gold);
}

/* Subida a nivel 50 */
.nw-rw-boost {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  padding: 22px 26px;
}

.nw-rw-level {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  border: 2px solid var(--nw-gold);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(224, 169, 106, 0.18), rgba(0, 0, 0, 0.5));
  box-shadow: 0 0 26px rgba(224, 169, 106, 0.25);
  text-align: center;
}

.nw-rw-level span {
  color: var(--nw-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nw-rw-level strong {
  color: var(--nw-gold);
  font-family: var(--nw-font-display);
  font-size: 34px;
  line-height: 1;
}

/* Lista de elegidos */
.nw-rw-list {
  display: grid;
  gap: 16px;
  max-width: 980px;
}

.nw-rw-search {
  grid-template-columns: minmax(0, 1fr) auto;
}

.nw-rw-search-actions {
  display: flex;
  gap: 8px;
}

.nw-rw-search-actions .nw-btn {
  min-height: 48px;
}

.nw-rw-results {
  margin: -4px 0 0;
  color: var(--nw-muted);
  font-size: 14px;
}

.nw-rw-results b {
  color: #fff;
}

.nw-rw-table-wrap {
  overflow-x: auto;
  padding: 6px 12px 12px;
}

.nw-rw-table th:first-child,
.nw-rw-pos {
  width: 60px;
  text-align: center;
}

.nw-rw-pos {
  color: var(--nw-muted);
  font-weight: 700;
}

.nw-rw-empty {
  padding: 30px 10px !important;
  color: var(--nw-muted) !important;
  text-align: center;
}

.nw-rw-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border: 1px solid;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nw-rw-status.is-claimed {
  border-color: rgba(54, 210, 107, 0.5);
  color: var(--nw-green);
  background: rgba(54, 210, 107, 0.08);
}

.nw-rw-status.is-unclaimed {
  border-color: rgba(242, 181, 68, 0.55);
  color: #f2b544;
  background: rgba(242, 181, 68, 0.1);
}

.nw-rw-pagination {
  align-items: center;
}

.nw-rw-page-info {
  padding: 0 12px;
  color: var(--nw-muted);
  font-size: 14px;
}

@media (max-width: 760px) {
  .nw-rw-boost {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .nw-rw-boost .nw-btn {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .nw-rw-expansion {
    align-items: flex-start;
    padding: 18px;
  }

  .nw-rw-expansion-icon {
    width: 48px;
    height: 48px;
    font-size: 20px;
  }

  .nw-rw-rewards {
    padding: 18px;
  }

  .nw-rw-grid {
    grid-template-columns: 1fr;
  }

  .nw-rw-boost {
    gap: 16px;
    padding: 18px;
  }

  .nw-rw-level {
    width: 76px;
    height: 76px;
  }

  .nw-rw-level strong {
    font-size: 28px;
  }

  .nw-rw-search {
    grid-template-columns: 1fr;
  }

  .nw-rw-search-actions .nw-btn {
    flex: 1 1 0;
  }
}

/* =====================================================================
   ERROR 404 (error404.php)
   ===================================================================== */

.nw-err-main {
  position: relative;
  display: grid;
  align-items: center;
  min-height: calc(100vh - 80px);
  padding: calc(var(--nw-header-h) + 40px) 0 60px;
  overflow: hidden;
  isolation: isolate;
}

.nw-err-main::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse at 50% 45%, rgba(7, 6, 8, 0.35), rgba(7, 6, 8, 0.92) 70%),
    linear-gradient(180deg, rgba(7, 6, 8, 0.4), var(--nw-bg));
}

.nw-err-card {
  max-width: 620px;
  margin: 0 auto;
  padding: 44px 36px 38px;
  text-align: center;
}

.nw-err-card .nw-auth-eyebrow {
  justify-content: center;
}

.nw-err-code {
  margin: 6px 0 0;
  color: var(--nw-red-hot);
  font-family: "Cinzel Decorative", var(--nw-font-display);
  font-size: clamp(96px, 18vw, 150px);
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 0 40px rgba(255, 40, 30, 0.55), 0 0 2px rgba(255, 200, 180, 0.6);
}

.nw-err-title {
  margin: 4px 0 12px;
  color: #fff;
  font-family: var(--nw-font-display);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nw-err-copy {
  max-width: 480px;
  margin: 0 auto 26px;
  color: #d9ccc6;
  font-size: 15px;
  line-height: 1.65;
}

.nw-err-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

@media (max-width: 560px) {
  .nw-err-card {
    padding: 34px 20px 28px;
  }

  .nw-err-actions .nw-btn {
    flex: 1 1 100%;
  }
}
