
@import url('https://fonts.googleapis.com/css2?family=Exo+2:wght@300;400;500;600;700;800;900&family=Inter:wght@300;400;500;600&display=swap');

/* ============================================================
   POKE NIGHT — MODERN DARK THEME
   ============================================================ */

:root {
  /* Core palette */
  --bg:           #080a10;
  --bg2:          #0c0e17;
  --bg3:          #10131e;
  --surface:      #141824;
  --surface2:     #1b1f2e;
  --surface3:     #222638;

  /* Accent — purple/mystic */
  --red:          #7c3aed;
  --red2:         #9d5ff5;
  --red-dim:      rgba(124,58,237,.15);
  --red-glow:     rgba(124,58,237,.35);

  /* Accent 2 — mystic light purple */
  --blue:         #a78bfa;
  --blue-dim:     rgba(167,139,250,.12);

  /* Text */
  --t1:           #f0f2fa;
  --t2:           #a8adc4;
  --t3:           #5a6080;

  /* Borders */
  --b1:           rgba(255,255,255,.06);
  --b2:           rgba(255,255,255,.10);
  --b-red:        rgba(124,58,237,.4);

  /* Status */
  --green:        #22c55e;
  --yellow:       #eab308;
  --orange:       #f97316;

  /* Misc */
  --radius:       10px;
  --radius-sm:    6px;
  --radius-lg:    16px;
  --nav-h:        64px;
  --transition:   .18s ease;
}

/* ============================================================ RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--t2);
  font-size: 14px;
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
}
ul { list-style: none; }
a { color: var(--blue); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--t1); }
img { max-width: 100%; display: block; }
input, select, textarea, button { font-family: inherit; }

/* ============================================================ SCROLLBAR */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--surface3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--red); }

/* ============================================================ BACKGROUND NOISE OVERLAY */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(124,58,237,.10) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 80% 110%, rgba(167,139,250,.06) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* ============================================================ NAVBAR */
.pn-nav {
  position: sticky;
  top: 0;
  z-index: 900;
  height: var(--nav-h);
  background: rgba(8,10,16,.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--b1);
  box-shadow: 0 1px 0 var(--b-red), 0 4px 32px rgba(0,0,0,.5);
}

.pn-nav__inner {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 32px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 0;
}

/* Logo */
.pn-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: 32px;
  flex-shrink: 0;
  text-decoration: none;
}
.pn-logo__img { height: 38px; width: auto; }
.pn-logo__text {
  font-family: 'Exo 2', sans-serif;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--t1);
  letter-spacing: -0.5px;
  line-height: 1;
}
.pn-logo__text em { color: var(--red); font-style: normal; }

/* Nav links */
.pn-nav__links {
  display: flex;
  align-items: center;
  flex: 1;
  height: 100%;
}
.pn-nav__links > li {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}
.pn-nav__links > li > a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 16px;
  height: 100%;
  color: var(--t2);
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .4px;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color var(--transition);
  position: relative;
}
.pn-nav__links > li > a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 16px;
  right: 16px;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transition: transform var(--transition);
  border-radius: 2px 2px 0 0;
}
.pn-nav__links > li > a:hover,
.pn-nav__links > li > a.active { color: var(--t1); }
.pn-nav__links > li > a:hover::after,
.pn-nav__links > li > a.active::after { transform: scaleX(1); }
.pn-nav__links > li > a i { color: var(--red); font-size: .78rem; }

/* Dropdown */
.pn-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 1px);
  left: 0;
  min-width: 200px;
  background: rgba(12,14,23,.97);
  backdrop-filter: blur(20px);
  border: 1px solid var(--b2);
  border-top: 2px solid var(--red);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: 0 16px 40px rgba(0,0,0,.6);
  overflow: hidden;
  z-index: 999;
}
.pn-nav__links > li:hover .pn-dropdown { display: block; }
.pn-dropdown li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  color: var(--t2);
  font-size: .82rem;
  border-bottom: 1px solid var(--b1);
  transition: background var(--transition), color var(--transition);
}
.pn-dropdown li:last-child a { border-bottom: none; }
.pn-dropdown li a:hover { background: var(--red-dim); color: var(--t1); }
.pn-dropdown li a i { color: var(--red); width: 14px; text-align: center; font-size: .78rem; }

/* Nav right */
.pn-nav__right {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 16px;
  flex-shrink: 0;
}

/* Online pill in nav */
.pn-online-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: rgba(34,197,94,.08);
  border: 1px solid rgba(34,197,94,.2);
  border-radius: 20px;
  font-size: .75rem;
  font-weight: 600;
  color: var(--green);
  margin-right: 8px;
}
.pn-online-pill span {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
  animation: pulse-green 2s infinite;
}
@keyframes pulse-green {
  0%,100% { opacity: 1; }
  50% { opacity: .4; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 20px;
  border-radius: var(--radius-sm);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  white-space: nowrap;
  text-decoration: none;
}
.btn-ghost {
  background: transparent;
  border: 1px solid var(--b2);
  color: var(--t2);
}
.btn-ghost:hover { border-color: var(--red); color: var(--t1); background: var(--red-dim); }

.btn-red {
  background: var(--red);
  color: #fff;
  box-shadow: 0 0 0 0 var(--red-glow);
}
.btn-red:hover {
  background: var(--red2);
  color: #fff;
  box-shadow: 0 4px 20px var(--red-glow);
  transform: translateY(-1px);
}

.btn-sm { padding: 6px 14px; font-size: .75rem; }
.btn-lg { padding: 13px 32px; font-size: .9rem; }
.btn-block { width: 100%; justify-content: center; }

/* ============================================================ HERO */
.pn-hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: stretch;
  overflow: hidden;
}

/* Animated background */
.pn-hero__bg {
  position: absolute;
  inset: 0;
  background:
    url('../img/mainbg.jpg') center/cover no-repeat,
    linear-gradient(135deg, #080a10 0%, #12091a 100%);
  z-index: 0;
}
.pn-hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(8,10,16,.95) 0%,
    rgba(8,10,16,.7) 50%,
    rgba(8,10,16,.92) 100%
  );
}

/* Animated grid lines */
.pn-hero__grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(rgba(124,58,237,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124,58,237,.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: linear-gradient(to bottom, transparent, rgba(0,0,0,.5) 30%, rgba(0,0,0,.5) 70%, transparent);
}

/* Glow orbs */
.pn-hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 1;
}
.pn-hero__orb--1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(124,58,237,.22) 0%, transparent 70%);
  top: -100px; left: -100px;
}
.pn-hero__orb--2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(167,139,250,.12) 0%, transparent 70%);
  bottom: -80px; right: 200px;
}

.pn-hero__inner {
  position: relative;
  z-index: 2;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 32px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  min-height: 520px;
}

/* Hero main content */
.pn-hero__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 72px 0;
  max-width: 560px;
}

.pn-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  background: var(--red-dim);
  border: 1px solid var(--b-red);
  border-radius: 20px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--red2);
  margin-bottom: 20px;
  width: fit-content;
}
.pn-hero__badge span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--red);
  animation: pulse-red 1.5s infinite;
}
@keyframes pulse-red {
  0%,100% { box-shadow: 0 0 0 0 var(--red-glow); }
  50% { box-shadow: 0 0 0 5px transparent; }
}

.pn-hero__title {
  font-family: 'Exo 2', sans-serif;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 900;
  color: var(--t1);
  line-height: 1.05;
  margin-bottom: 16px;
  letter-spacing: -1px;
}
.pn-hero__title em {
  font-style: normal;
  color: transparent;
  background: linear-gradient(135deg, var(--red) 0%, var(--red2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.pn-hero__sub {
  font-size: .95rem;
  color: var(--t2);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 460px;
}

.pn-hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

/* Hero stats bar */
.pn-hero__stats {
  display: flex;
  gap: 28px;
}
.pn-hero__stat { display: flex; flex-direction: column; }
.pn-hero__stat-val {
  font-family: 'Exo 2', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--t1);
  line-height: 1;
}
.pn-hero__stat-lbl {
  font-size: .7rem;
  color: var(--t3);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 2px;
}
.pn-hero__stat-sep {
  width: 1px;
  background: var(--b2);
  align-self: stretch;
}

/* Hero side panel */
.pn-hero__panel {
  width: 300px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  background: rgba(8,10,16,.75);
  backdrop-filter: blur(16px);
  border: 1px solid var(--b2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  align-self: center;
  margin: 32px 0;
  margin-left: auto;
}

.pn-panel-block {
  padding: 16px 18px;
  border-bottom: 1px solid var(--b1);
}
.pn-panel-block:last-child { border-bottom: none; }

.pn-panel-label {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--t3);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.pn-panel-label i { color: var(--red); }

.pn-online-big {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.pn-online-big strong {
  font-family: 'Exo 2', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--t1);
  line-height: 1;
}
.pn-online-big span { font-size: .8rem; color: var(--t3); }

.pn-catch-list { display: flex; flex-direction: column; gap: 5px; }
.pn-catch-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  background: var(--surface);
  border-radius: var(--radius-sm);
  font-size: .8rem;
  color: var(--t2);
  border: 1px solid var(--b1);
  transition: border-color var(--transition);
}
.pn-catch-item:hover { border-color: var(--b-red); }
.pn-catch-item i { color: var(--red); font-size: .72rem; flex-shrink: 0; }

/* Ultima Captura card no painel hero */
.pn-lc-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.pn-lc-img {
  background: rgba(0,0,0,0.3);
  border-radius: var(--radius-sm);
  width: 100%;
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 0;
}
.pn-lc-img img {
  max-width: 140px;
  max-height: 140px;
  image-rendering: pixelated;
  filter: drop-shadow(0 0 8px rgba(100,200,255,0.3));
}
.pn-lc-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  width: 100%;
}
.pn-lc-name {
  font-size: .92rem;
  font-weight: 700;
  color: var(--t1);
  text-align: center;
}
.pn-lc-trainer {
  font-size: .80rem;
  color: var(--t3);
  display: flex;
  align-items: center;
  gap: 5px;
}
.pn-lc-trainer a {
  color: #7eb8d4;
  text-decoration: none;
}
.pn-lc-trainer a:hover { text-decoration: underline; }

.pn-dl-btns { display: flex; flex-direction: column; gap: 7px; }

/* ============================================================ MAIN LAYOUT */
.pn-layout {
  position: relative;
  z-index: 1;
  max-width: 100%;
  margin: 28px auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 24px;
  align-items: start;
}

/* ============================================================ CARDS */
.pn-card {
  background: var(--surface);
  border: 1px solid var(--b1);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 20px;
  transition: border-color var(--transition);
}
.pn-card:hover { border-color: var(--b2); }

.pn-card__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: var(--surface2);
  border-bottom: 1px solid var(--b1);
}
.pn-card__head-icon {
  width: 28px; height: 28px;
  border-radius: var(--radius-sm);
  background: var(--red-dim);
  border: 1px solid var(--b-red);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  font-size: .75rem;
  flex-shrink: 0;
}
.pn-card__head-title {
  font-family: 'Exo 2', sans-serif;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--t2);
  flex: 1;
}
.pn-card__head-link {
  font-size: .72rem;
  color: var(--t3);
  transition: color var(--transition);
}
.pn-card__head-link:hover { color: var(--red); }

.pn-card__body { padding: 18px; }

/* ============================================================ NEWS POSTS */
.pn-post {
  background: var(--surface);
  border: 1px solid var(--b1);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: 0 4px 24px rgba(0,0,0,.3);
  transition: border-color .18s, box-shadow .18s;
}
.pn-post:hover {
  border-color: rgba(124,58,237,.3);
  box-shadow: 0 6px 32px rgba(124,58,237,.1);
}

.pn-post__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  background: linear-gradient(135deg, var(--surface2) 0%, rgba(124,58,237,.10) 100%);
  border-bottom: 1px solid rgba(124,58,237,.12);
  flex-wrap: wrap;
}
.pn-post__date {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: .72rem;
  color: var(--t3);
  background: rgba(124,58,237,.12);
  border: 1px solid rgba(124,58,237,.2);
  border-radius: 20px;
  padding: 3px 10px;
}
.pn-post__date i { color: var(--red); font-size: .68rem; }
.pn-post__author {
  font-size: .75rem;
  color: var(--t3);
  display: flex;
  align-items: center;
  gap: 5px;
}
.pn-post__author::before {
  content: 'por';
  color: var(--t3);
  font-size: .7rem;
}
.pn-post__author a {
  color: var(--blue);
  font-weight: 600;
}
.pn-post__author a:hover { color: var(--t1); }

.pn-post__title {
  font-family: 'Exo 2', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--t1);
  margin-left: auto;
  line-height: 1.3;
}
.pn-post__title a { color: inherit; }
.pn-post__title a:hover { color: var(--red); }

.pn-post__body {
  font-size: .88rem;
  color: var(--t2);
  line-height: 1.8;
  padding: 20px 22px 22px;
  background: var(--surface);
}
.pn-post__body p { margin-bottom: 10px; }
.pn-post__body p:last-child { margin-bottom: 0; }
.pn-post__body img { border-radius: var(--radius-sm); max-width: 100%; margin: 10px 0; }

/* Estilo rico dentro do corpo do post */
.pn-post__body b,
.pn-post__body strong {
  color: var(--t1);
  font-weight: 700;
}
.pn-post__body li {
  padding: 4px 0 4px 20px;
  position: relative;
  color: var(--t2);
}
.pn-post__body li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--red);
  font-size: .8em;
}
.pn-post__body center {
  text-align: center;
}
.pn-post__body font[size] {
  display: block;
  margin: 6px 0;
}
.pn-post__body a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.pn-post__body a:hover { color: var(--t1); }
.pn-post__body iframe {
  border-radius: var(--radius-sm);
  border: none;
  width: 100%;
}
/* Linha separadora entre parágrafos grandes */
.pn-post__body br + br {
  display: block;
  content: '';
  margin-top: 6px;
}

/* Changelog */
#changelogTable { width: 100%; border-collapse: collapse; }
#changelogTable td { padding: 9px 12px; border-bottom: 1px solid var(--b1); font-size: .82rem; color: var(--t2); }
#changelogTable tr:last-child td { border-bottom: none; }
#changelogTable tr.yellow td { color: var(--yellow); font-weight: 600; }
#changelogTable tr:nth-child(even) td { background: rgba(255,255,255,.02); }
#changelogTable tr:hover td { background: var(--red-dim); }

/* ============================================================ SIDEBAR */
.pn-sidebar { display: flex; flex-direction: column; gap: 0; }

/* Login widget */
.pn-login-card {
  background: var(--surface);
  border: 1px solid var(--b1);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 20px;
}
.pn-login-card__head {
  padding: 14px 18px;
  background: linear-gradient(135deg, var(--surface2) 0%, rgba(124,58,237,.08) 100%);
  border-bottom: 1px solid var(--b1);
  display: flex;
  align-items: center;
  gap: 10px;
}
.pn-login-card__head i { color: var(--red); }
.pn-login-card__head span {
  font-family: 'Exo 2', sans-serif;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--t2);
}
.pn-login-card__body { padding: 16px; }

.pn-input {
  width: 100%;
  background: var(--bg2);
  border: 1px solid var(--b2);
  border-radius: var(--radius-sm);
  color: var(--t1);
  padding: 10px 14px;
  font-size: .85rem;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  margin-bottom: 10px;
  height: auto;
}
.pn-input:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px var(--red-dim);
}
.pn-input::placeholder { color: var(--t3); }

.pn-input-icon {
  position: relative;
  margin-bottom: 10px;
}
.pn-input-icon i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--t3);
  font-size: .8rem;
  pointer-events: none;
}
.pn-input-icon input {
  width: 100%;
  background: var(--bg2);
  border: 1px solid var(--b2);
  border-radius: var(--radius-sm);
  color: var(--t1);
  padding: 10px 14px 10px 36px;
  font-size: .85rem;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  height: auto;
}
.pn-input-icon input:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px var(--red-dim);
}
.pn-input-icon input::placeholder { color: var(--t3); }

.pn-login-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-top: 1px solid var(--b1);
  background: var(--surface2);
}
.pn-login-footer a { font-size: .78rem; color: var(--t3); }
.pn-login-footer a:hover { color: var(--red); }

/* Top players */
.pn-rank-list { display: flex; flex-direction: column; }
.pn-rank-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--b1);
}
.pn-rank-item:last-child { border-bottom: none; }

.pn-rank-num {
  width: 26px; height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Exo 2', sans-serif;
  font-size: .75rem;
  font-weight: 800;
  flex-shrink: 0;
  border: 1px solid var(--b2);
  color: var(--t3);
  background: var(--bg2);
}
.pn-rank-num.r1 { background: rgba(234,179,8,.1); border-color: rgba(234,179,8,.4); color: #eab308; }
.pn-rank-num.r2 { background: rgba(148,163,184,.1); border-color: rgba(148,163,184,.3); color: #94a3b8; }
.pn-rank-num.r3 { background: rgba(249,115,22,.1); border-color: rgba(249,115,22,.3); color: #f97316; }

.pn-rank-name { flex: 1; font-size: .83rem; color: var(--t2); }
.pn-rank-name a { color: var(--t2); }
.pn-rank-name a:hover { color: var(--t1); }
.pn-rank-lv {
  font-family: 'Exo 2', sans-serif;
  font-size: .78rem;
  font-weight: 700;
  color: var(--t3);
  background: var(--surface2);
  padding: 2px 8px;
  border-radius: 10px;
  border: 1px solid var(--b1);
}

/* Stats widget */
.pn-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.pn-stat-box {
  background: var(--bg2);
  border: 1px solid var(--b1);
  border-radius: var(--radius-sm);
  padding: 14px 12px;
  text-align: center;
  transition: border-color var(--transition);
}
.pn-stat-box:hover { border-color: var(--b-red); }
.pn-stat-box__val {
  font-family: 'Exo 2', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--t1);
  line-height: 1;
  margin-bottom: 4px;
}
.pn-stat-box__lbl {
  font-size: .68rem;
  color: var(--t3);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Quick links */
.pn-quick-links { display: flex; flex-direction: column; gap: 6px; }
.pn-quick-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--bg2);
  border: 1px solid var(--b1);
  border-radius: var(--radius-sm);
  color: var(--t2);
  font-size: .82rem;
  font-weight: 500;
  transition: all var(--transition);
}
.pn-quick-link i { color: var(--red); width: 14px; text-align: center; font-size: .8rem; }
.pn-quick-link:hover { border-color: var(--b-red); color: var(--t1); background: var(--red-dim); }

/* My account widget */
.pn-account-welcome {
  padding: 14px 18px;
  font-size: .82rem;
  color: var(--t3);
  border-bottom: 1px solid var(--b1);
}
.pn-account-welcome strong { color: var(--t1); }

/* ============================================================ TABLES */
table { width: 100%; border-collapse: collapse; }
th {
  background: var(--surface2);
  color: var(--t3);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 11px 14px;
  text-align: left;
  border-bottom: 1px solid var(--b1);
}
td { padding: 11px 14px; border-bottom: 1px solid var(--b1); color: var(--t2); font-size: .84rem; }
tr:last-child td { border-bottom: none; }
tr:nth-child(even) td { background: rgba(255,255,255,.015); }
tr:hover td { background: var(--red-dim); }

/* ============================================================ FORMS */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: .78rem; color: var(--t3); margin-bottom: 6px; font-weight: 500; }
.form-control {
  width: 100%;
  background: var(--bg2);
  border: 1px solid var(--b2);
  border-radius: var(--radius-sm);
  color: var(--t1);
  padding: 10px 14px;
  font-size: .85rem;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  height: auto;
}
.form-control:focus { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-dim); }

/* ============================================================ ALERTS */
.alert-box {
  padding: 11px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid;
  margin-bottom: 14px;
  font-size: .84rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.alert-success { background: rgba(34,197,94,.08); border-color: rgba(34,197,94,.25); color: #4ade80; }
.alert-danger   { background: rgba(239,68,68,.08); border-color: rgba(239,68,68,.25); color: #f87171; }
.alert-warning  { background: rgba(234,179,8,.08); border-color: rgba(234,179,8,.25); color: #fbbf24; }
.alert-info     { background: rgba(14,165,233,.08); border-color: rgba(14,165,233,.25); color: #38bdf8; }
.alert-default  { background: var(--surface2); border-color: var(--b2); color: var(--t2); }
.alert-collapse { display: inline-flex; }
.alert-size1 { font-size: 12px; }
.alert-size2 { font-size: 15px; }
.alert-size3 { font-size: 18px; }
.alert-size4 { font-size: 20px; }

/* News legacy table */
#news {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--b1);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 20px;
}
#news tr.yellow td {
  background: var(--surface2);
  color: var(--t2);
  font-size: .78rem;
  font-weight: 600;
  padding: 12px 18px;
  border-bottom: 1px solid var(--b1);
}
#news tr.yellow td a { color: var(--blue); }
#news tr.yellow td a:hover { color: var(--t1); }
#news tr.yellow td b { color: var(--t1); font-size: .9rem; }
#news td {
  padding: 16px 18px;
  color: var(--t2);
  font-size: .88rem;
  line-height: 1.75;
  border-bottom: none;
}
#news td p { margin: 0; }
#news tr:hover td { background: transparent; }

/* ============================================================ FOOTER */
.pn-footer {
  position: relative;
  z-index: 1;
  background: var(--bg2);
  border-top: 1px solid var(--b1);
  margin-top: 48px;
}
.pn-footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
}

.pn-footer__top {
  max-width: 100%;
  margin: 0 auto;
  padding: 48px 32px 32px;
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1fr;
  gap: 40px;
}

.pn-footer__brand-name {
  font-family: 'Exo 2', sans-serif;
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--t1);
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}
.pn-footer__brand-name em { color: var(--red); font-style: normal; }
.pn-footer__brand-desc { font-size: .82rem; color: var(--t3); line-height: 1.75; margin-bottom: 18px; }

.pn-footer__social { display: flex; gap: 8px; }
.pn-footer__social a {
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--b2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--t3);
  font-size: .88rem;
  transition: all var(--transition);
}
.pn-footer__social a:hover { border-color: var(--red); color: var(--red); background: var(--red-dim); }

.pn-footer__col h4 {
  font-family: 'Exo 2', sans-serif;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--t3);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--b1);
}
.pn-footer__col ul li { margin-bottom: 9px; }
.pn-footer__col ul li a { color: var(--t3); font-size: .82rem; transition: color var(--transition); }
.pn-footer__col ul li a:hover { color: var(--t1); padding-left: 4px; }

.pn-footer__bottom {
  border-top: 1px solid var(--b1);
  padding: 16px 32px;
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .72rem;
  color: var(--t3);
}

/* ============================================================ LEGACY COMPAT */
.well { padding: 0; }

.postHolder {
  background: var(--surface);
  border: 1px solid var(--b1);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: 0 4px 24px rgba(0,0,0,.3);
  transition: border-color .18s, box-shadow .18s;
}
.postHolder:hover {
  border-color: rgba(124,58,237,.3);
  box-shadow: 0 6px 32px rgba(124,58,237,.1);
}

.header {
  font-family: 'Exo 2', sans-serif;
  font-size: .78rem;
  font-weight: 600;
  color: var(--t3);
  padding: 12px 18px;
  background: linear-gradient(135deg, var(--surface2) 0%, rgba(124,58,237,.12) 100%);
  border-bottom: 1px solid rgba(124,58,237,.15);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.header a { color: var(--blue); font-weight: 600; }
.header a:hover { color: var(--t1); }
.header b { color: var(--t1); font-size: .85rem; }

.body {
  padding: 20px 22px;
  font-size: .88rem;
  color: var(--t2);
  line-height: 1.8;
}
.body p { margin-bottom: 10px; }
.body p:last-child { margin-bottom: 0; }
.body b, .body strong { color: var(--t1); font-weight: 700; }
.body img { border-radius: var(--radius-sm); max-width: 100%; margin: 10px 0; }
.body a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.body a:hover { color: var(--t1); }
.body li { padding: 3px 0 3px 18px; position: relative; }
.body li::before { content: '▸'; position: absolute; left: 0; color: var(--red); font-size: .8em; }
.pull-left { float: left; }
.pull-right { float: right; }
.preventCollapse { overflow: hidden; }
.centralizeContent { text-align: center; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.smedia { font-size: 1.4em; }

/* Legacy login form */
.loginContainer { display: none; }
.loginForm input {
  width: 100%; background: var(--bg2); border: 1px solid var(--b2);
  color: var(--t1); padding: 10px 14px; margin-bottom: 10px;
  border-radius: var(--radius-sm); height: auto; outline: none;
}
.loginForm input:focus { border-color: var(--red); }
.loginForm button {
  width: 100%; background: var(--red); color: #fff; border: none;
  padding: 11px; cursor: pointer; border-radius: var(--radius-sm);
  font-weight: 700; text-transform: uppercase; font-size: .82rem;
}
.loginForm button:hover { background: var(--red2); }
.searchForm input {
  width: 100%; background: var(--bg2); border: 1px solid var(--b2);
  color: var(--t1); padding: 9px 12px; border-radius: var(--radius-sm); height: auto;
}

select {
  background: var(--bg2); color: var(--t2); border: 1px solid var(--b2);
  border-radius: var(--radius-sm); padding: 9px 12px; font-size: .85rem; height: auto;
  outline: none;
}
select:focus { border-color: var(--red); }
input {
  background: var(--bg2); color: var(--t1); border: 1px solid var(--b2);
  border-radius: var(--radius-sm); padding: 9px 12px; font-size: .85rem; height: auto;
}
input:focus { outline: none; border-color: var(--red); }

/* Countdown */
#countDownTimer {
  color: var(--red);
  font-family: 'Exo 2', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  margin-top: 16px;
}

/* Page-specific */
.page_characterprofile #characterProfileTable thead th:first-of-type { position: relative; width: 28%; }
.page_characterprofile #characterProfileTable thead th:last-of-type { text-align: left; padding-left: 16px; }
.page_characterprofile .outfit { position: absolute; top: 0; left: 0; }
.page_characterprofile .flag { position: absolute; top: 16px; right: 16px; }
.postHolder iframe { display: block; margin: auto; }

/* Btn aliases for legacy */
.btn-full { width: 100%; display: block; text-align: center; padding: 10px; border-radius: var(--radius-sm); font-size: .82rem; font-weight: 700; text-transform: uppercase; cursor: pointer; border: none; transition: all var(--transition); }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red2); color: #fff; }
.btn-outline { background: transparent; border: 1px solid var(--b2); color: var(--t2); }
.btn-outline:hover { border-color: var(--red); color: var(--t1); }

/* ============================================================ RESPONSIVE */
@media (max-width: 1024px) {
  .pn-layout { grid-template-columns: 1fr 280px; }
  .pn-footer__top { grid-template-columns: 1fr 1fr 1fr; }
  .pn-footer__top > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .pn-layout { grid-template-columns: 1fr; }
  .pn-hero__panel { display: none; }
  .pn-footer__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .pn-nav__links { display: none; }
  .pn-hero__title { font-size: 2rem; }
  .pn-hero__content { padding: 36px 0; }
  .pn-footer__top { grid-template-columns: 1fr; }
  .pn-footer__bottom { flex-direction: column; gap: 6px; text-align: center; }
  .pn-hero__stats { gap: 16px; }
}
