/* ============================================================
   X Angel OTServer â€” Design System v8
   Tema: Fantasy Portal â€” Vibrant & Fun
   ============================================================ */

/* â”€â”€ DESIGN TOKENS â”€â”€ */
:root {
  /* Paleta vibrante */
  --purple:       #7C5CFC;
  --purple-light: #a080ff;
  --purple-glow:  rgba(124, 92, 252, .4);
  --blue:         #5B8EF5;
  --teal:         #18DCFF;
  --teal-glow:    rgba(24, 220, 255, .35);
  --orange:       #FF6B35;
  --orange-light: #FF9F43;
  --orange-glow:  rgba(255, 107, 53, .4);
  --gold:         #FFC312;
  --gold-light:   #FFE082;
  --gold-glow:    rgba(255, 195, 18, .35);
  --green:        #26DE81;
  --green-glow:   rgba(38, 222, 129, .4);
  --red:          #FF5E57;

  /* Gradientes */
  --grad-brand:   linear-gradient(135deg, #FFC312 0%, #FF8C00 60%, #FF6B35 100%);
  --grad-primary: linear-gradient(135deg, #7C5CFC 0%, #5B8EF5 100%);
  --grad-cta:     linear-gradient(135deg, #FF6B35 0%, #FF9F43 100%);
  --grad-teal:    linear-gradient(135deg, #18DCFF 0%, #7C5CFC 100%);
  --grad-server:  linear-gradient(135deg, #26DE81 0%, #18DCFF 100%);
  --grad-rainbow: linear-gradient(90deg, #7C5CFC, #18DCFF, #26DE81, #FFC312, #FF6B35, #FF5E57, #7C5CFC);

  /* SuperfÃ­cies navy-escuras (nÃ£o preto puro) */
  --bg-base:    #090b1e;
  --bg-card:    rgba(13, 16, 46, 0.92);
  --bg-card-h:  rgba(20, 24, 68, 0.90);
  --bg-section: rgba(9, 11, 30, 0.88);

  /* Texto */
  --text:       #e8eeff;
  --text-muted: #7f90b8;
  --text-dim:   #44526e;

  /* Bordas */
  --border:     rgba(100, 120, 255, 0.22);
  --border-sub: rgba(70,  90, 200, 0.12);

  /* Tipografia */
  --f-display: 'Cinzel Decorative', 'Cinzel', serif;
  --f-heading: 'Cinzel', serif;
  --f-body:    'IM Fell English', 'Palatino Linotype', Georgia, serif;

  /* EspaÃ§amento 4px grid */
  --s1:4px; --s2:8px; --s3:12px; --s4:16px;
  --s5:20px; --s6:24px; --s8:32px; --s10:40px; --s12:48px;

  --r-sm: 4px; --r: 8px; --r-lg: 14px;

  /* Sombras */
  --sh:    0 4px 20px rgba(0,0,0,.5);
  --sh-lg: 0 8px 40px rgba(0,0,0,.75);
}

/* â”€â”€ RESET â”€â”€ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* â”€â”€ BODY â”€â”€ */
body {
  background: var(--bg-base);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.8;
  min-height: 100vh;
}

/* Faixa rainbow animada no topo */
body::before {
  content: '';
  display: block;
  height: 4px;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9999;
  background: var(--grad-rainbow);
  background-size: 250% 100%;
  animation: rainbow-run 5s linear infinite;
}
@keyframes rainbow-run {
  0%   { background-position: 0% 50%; }
  100% { background-position: 250% 50%; }
}

a { color: var(--teal); text-decoration: none; transition: color .18s; }
a:hover { color: var(--text); }
#content-body a:visited,
.s-card--meta a:visited { color: var(--purple-light); }

/* â”€â”€ PAGE WRAP â€” alinha topbar/header/grid/footer ao mesmo eixo â”€â”€ */
#page-wrap {
  max-width: 1320px;
  margin: 0 auto;
}

/* â”€â”€ CONTAINER â”€â”€ */
.container {
  max-width: 1320px;
  margin: 0 auto;
  padding-left: var(--s6);
  padding-right: var(--s6);
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   TOPBAR
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
#topbar {
  margin-top: 4px;
  background: rgba(7, 8, 24, 0.98);
  border-bottom: 1px solid var(--border-sub);
  font-family: var(--f-heading);
  font-size: 0.72rem;
  letter-spacing: .8px;
}
.topbar-inner {
  display: flex; align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  padding: 7px 0;
}
.topbar-left, .topbar-right {
  display: flex; align-items: center;
  gap: var(--s3); flex-wrap: wrap;
}
.status-pill {
  display: inline-flex; align-items: center; gap: 5px;
  color: var(--green); font-weight: 700;
  text-shadow: 0 0 10px var(--green-glow);
}
.status-blink { font-size: .45em; animation: pulse-dot 2s ease-in-out infinite; }
@keyframes pulse-dot {
  0%,100% { opacity:1; transform:scale(1); }
  50%      { opacity:.25; transform:scale(0.7); }
}
.topbar-divider { width:1px; height:13px; background: var(--border-sub); flex-shrink:0; }
.topbar-info { color: var(--text-muted); }
.topbar-info i { margin-right:5px; color: var(--purple-light); font-size:.9em; }
.topbar-right a { color: var(--text-muted); font-size:.72rem; transition:color .15s; }
.topbar-right a:hover { color: var(--teal); }
.topbar-login {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 12px;
  font-family: var(--f-heading); font-size: .7rem; letter-spacing: 1px; text-transform: uppercase;
  color: var(--gold) !important;
  border: 1px solid rgba(255,195,18,.35);
  border-radius: 20px;
  transition: all .18s;
}
.topbar-login:hover {
  color: var(--gold-light) !important;
  background: rgba(255,195,18,.1);
  border-color: var(--gold);
  box-shadow: 0 0 10px rgba(255,195,18,.25);
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   HEADER STICKY
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
#site-header {
  position: sticky;
  top: 4px;
  z-index: 200;
  background: rgba(7, 9, 26, 0.97);
  border: 3px solid transparent;
  border-image: linear-gradient(90deg, var(--purple), var(--teal), var(--green), var(--gold), var(--orange)) 1;
  box-shadow: var(--sh-lg), 0 0 0 1px rgba(100,100,220,.08);
}

.header-inner {
  display: flex; align-items: center;
  justify-content: space-between;
  gap: var(--s6);
  padding: var(--s5) var(--s4) var(--s4);
}

.site-brand { display:block; text-decoration:none; }
.site-brand:hover #site-title { filter: brightness(1.15) drop-shadow(0 0 20px var(--gold-glow)); }

/* TÃ­tulo com gradiente de texto */
#site-title {
  font-family: var(--f-display);
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: 3px;
  line-height: 1.1;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 22px var(--gold-glow));
  transition: filter .25s;
}

#site-tagline {
  font-family: var(--f-heading);
  font-size: .7rem;
  color: var(--text-dim);
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-top: var(--s1);
}

.header-actions { display:flex; gap: var(--s2); flex-shrink:0; }

/* BotÃ£o CTA â€” laranja coral */
.btn-cta {
  display: inline-flex; align-items: center; gap:7px;
  padding: 10px 22px;
  background: var(--grad-cta);
  border: none; border-radius: var(--r);
  font-family: var(--f-heading);
  font-size: .75rem; letter-spacing: 1px;
  text-transform: uppercase; color: #fff;
  font-weight: 700;
  box-shadow: 0 4px 16px var(--orange-glow);
  transition: transform .18s, box-shadow .18s;
  white-space: nowrap;
  text-decoration: none;
}
.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px var(--orange-glow);
  color: #fff; text-decoration: none;
}
.btn-cta:active { transform: translateY(0); }

/* BotÃ£o Primary â€” roxo */
.btn-primary {
  display: inline-flex; align-items: center; gap:7px;
  padding: 10px 22px;
  background: var(--grad-primary);
  border: none; border-radius: var(--r);
  font-family: var(--f-heading);
  font-size: .75rem; letter-spacing: 1px;
  text-transform: uppercase; color: #fff;
  font-weight: 700;
  box-shadow: 0 4px 16px var(--purple-glow);
  transition: transform .18s, box-shadow .18s;
  white-space: nowrap;
  text-decoration: none;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px var(--purple-glow);
  color: #fff; text-decoration: none;
}
.btn-primary:active { transform: translateY(0); }

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   NAV HORIZONTAL
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
#main-nav {
  background: rgba(8, 9, 28, 0.98);
  border-top: 1px solid var(--border-sub);
  position: relative; /* containing block para o submenu full-width */
}
.nav-inner {
  display: flex; align-items: stretch;
  overflow-x: auto; scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  max-width: 1320px; margin: 0 auto; padding: 0 var(--s6);
}
.nav-inner::-webkit-scrollbar { display: none; }

.nav-inner > ul.menulevel1,
#main-nav ul.menulevel1 {
  display: flex; list-style: none; margin: 0; padding: 0; flex: 1;
}

/* li sem position:relative â€” o submenu se posiciona em relaÃ§Ã£o ao #main-nav */
#main-nav ul.menulevel1 > li { position: static; flex-shrink: 0; }

/* â”€â”€ Link padrÃ£o â”€â”€ */
#main-nav ul.menulevel1 > li > a {
  display: flex; align-items: center; gap: 6px;
  padding: 13px 18px;
  font-family: var(--f-heading);
  font-size: .73rem; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 3px solid transparent;
  border-left: none; background: none;
  white-space: nowrap;
  transition: color .18s, border-color .18s, background .18s;
  text-decoration: none;
}
#main-nav ul.menulevel1 > li > a::before { display: none; }
#main-nav ul.menulevel1 > li > a:hover {
  color: var(--text);
  border-bottom-color: var(--teal);
  background: rgba(24, 220, 255, .04);
  text-decoration: none;
}

/* Seta removida â€” nav customizado nao tem submenus */
#main-nav ul.menulevel1 > li.docs > a::after,
#main-nav ul.menulevel1 > li.sdocs > a::after {
  display: none;
}

/* â”€â”€ PÃ¡gina ativa sem filhos (sdoc) â”€â”€ */
#main-nav ul.menulevel1 > li.sdoc {
  display: flex; align-items: center;
  padding: 13px 18px;
  font-family: var(--f-heading);
  font-size: .73rem; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--gold);
  border-bottom: none; border-left: none;
  background: rgba(255, 195, 18, .07);
  white-space: nowrap;
  position: relative; /* mantÃ©m position:relative sÃ³ aqui para o ::after */
}
#main-nav ul.menulevel1 > li.sdoc::after {
  content: '';
  position: absolute; bottom: 0; left: 4px; right: 4px; height: 3px;
  background: var(--grad-brand);
  border-radius: 3px 3px 0 0;
}
#main-nav ul.menulevel1 > li.sdoc::before { display: none; }

/* â”€â”€ PÃ¡gina ativa COM filhos (sdocs) â”€â”€ */
#main-nav ul.menulevel1 > li.sdocs {
  display: flex; align-items: center;
  font-family: var(--f-heading);
  font-size: .73rem; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--gold);
  border-bottom: none; border-left: none;
  background: rgba(255, 195, 18, .07);
  white-space: nowrap;
  cursor: default;
}
/* O texto direto dentro de li.sdocs (sem anchor) */
#main-nav ul.menulevel1 > li.sdocs > a,
#main-nav ul.menulevel1 > li.sdocs:not(:has(a)) {
  padding: 13px 18px;
  color: var(--gold);
}
/* Linha dourada abaixo do item ativo com filhos */
#main-nav ul.menulevel1 > li.sdocs {
  position: static;
  border-bottom: 3px solid var(--gold);
}
#main-nav ul.menulevel1 > li.sdocs::before {
  display: none;
}
/* Underline dourado â€” via wrapper abaixo */
#main-nav ul.menulevel1 > li.sdocs > a::before { display: none; }

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   SUBMENU FULL-WIDTH (abre na prÃ³pria tela)
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
#main-nav ul.menulevel2 {
  /* Posicionado relativo ao #main-nav (full-width) */
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 300;

  display: none;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  overflow-x: auto;
  gap: var(--s2);
  padding: var(--s3) var(--s6);

  background: rgba(10, 11, 34, 0.99);
  border-top: 2px solid transparent;
  border-image: linear-gradient(90deg, var(--purple), var(--teal), var(--green)) 1;
  border-bottom: 1px solid var(--border-sub);
  box-shadow: 0 8px 30px rgba(0,0,0,.6), 0 0 24px rgba(124,92,252,.12);

  animation: submenu-in .2s ease;
}

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

/* Mostrar ao hover do li pai */
#main-nav ul.menulevel1 > li.docs:hover > ul.menulevel2,
#main-nav ul.menulevel1 > li.sdocs:hover > ul.menulevel2 { display: flex; }

/* Label "Subcategorias:" no inÃ­cio */
#main-nav ul.menulevel2::before {
  content: '\f07b';
  font-family: 'Font Awesome 6 Free'; font-weight: 900;
  font-size: .72rem;
  color: var(--text-dim);
  letter-spacing: 1px;
  margin-right: var(--s1);
  flex-shrink: 0;
}

/* Cada item do submenu como "tag/chip" */
#main-nav ul.menulevel2 > li {
  flex-shrink: 0;
  list-style: none;
}

#main-nav ul.menulevel2 > li > a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 16px;
  font-family: var(--f-heading);
  font-size: .7rem; letter-spacing: 1px; text-transform: uppercase;
  color: var(--text-muted);
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border-sub);
  border-radius: 20px; /* pill shape */
  white-space: nowrap;
  transition: all .18s;
  text-decoration: none;
}
#main-nav ul.menulevel2 > li > a::before {
  font-family: 'Font Awesome 6 Free'; font-weight: 900;
  content: "\f054";
  font-size: .55em;
  color: var(--purple);
  transition: color .18s;
}
#main-nav ul.menulevel2 > li > a:hover {
  color: var(--teal);
  background: rgba(24,220,255,.1);
  border-color: rgba(24,220,255,.4);
  box-shadow: 0 0 14px rgba(24,220,255,.2);
  text-decoration: none;
  transform: translateY(-1px);
}
#main-nav ul.menulevel2 > li > a:hover::before { color: var(--teal); }

/* Item ativo dentro do submenu */
#main-nav ul.menulevel2 > li.sdoc > a,
#main-nav ul.menulevel2 > li.sdocs > a {
  color: var(--gold);
  background: rgba(255,195,18,.1);
  border-color: rgba(255,195,18,.4);
  box-shadow: 0 0 12px rgba(255,195,18,.15);
}

#main-nav ul.menulevel3 { display: none; }

/* â”€â”€ Hamburger toggle â”€â”€ */
/* Oculto por padrÃ£o (desktop); exibido apenas em mobile via media query abaixo */
@media (min-width: 961px) {
  .nav-toggle { display: none !important; }
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  width: 100%;
  padding: 10px var(--s6);
  background: rgba(8, 9, 28, 0.98);
  border: none;
  border-top: 1px solid var(--border-sub);
  color: var(--text-muted);
  font-family: var(--f-heading);
  font-size: .72rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: color .18s, background .18s;
}
.nav-toggle:hover { color: var(--teal); background: rgba(24,220,255,.04); }
.nav-toggle i { font-size: 1rem; }

/* â”€â”€ Search na nav â”€â”€ */
.nav-search {
  display: flex; align-items: center;
  margin-left: auto; padding: var(--s2) 0; flex-shrink: 0;
}
.nav-search input[type="text"], .nav-search input.text {
  background: rgba(15,18,55,.8);
  border: 1px solid var(--border-sub); border-right: none;
  border-radius: var(--r-sm) 0 0 var(--r-sm);
  color: var(--text); padding: 7px 11px;
  font-family: var(--f-body); font-size: .8rem; outline: none; width: 135px;
  transition: border-color .2s;
}
.nav-search input[type="text"]:focus, .nav-search input.text:focus {
  border-color: var(--purple);
  box-shadow: 0 0 8px var(--purple-glow);
}
.nav-search input[type="submit"], .nav-search input.submit {
  background: rgba(124,92,252,.25);
  border: 1px solid var(--border); border-radius: 0 var(--r-sm) var(--r-sm) 0;
  color: var(--purple-light); padding: 7px 11px;
  font-family: var(--f-heading); font-size: .68rem; letter-spacing: 1px; cursor: pointer;
  transition: all .2s;
}
.nav-search input[type="submit"]:hover, .nav-search input.submit:hover {
  background: rgba(124,92,252,.45); color: var(--text);
  box-shadow: 0 0 10px var(--purple-glow);
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   PAGE GRID
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
#page-body { background: rgba(0,0,0,.1); margin-top: var(--s3); }

.page-grid {
  display: grid;
  grid-template-columns: 238px 1fr;
  min-height: calc(100vh - 220px);
  max-width: 1320px;
  margin: 0 auto;
  background: rgba(8, 10, 28, .84);
  border-left: 1px solid var(--border-sub);
  border-right: 1px solid var(--border-sub);
  border-top: 3px solid transparent;
  border-bottom: 3px solid transparent;
  border-image: linear-gradient(90deg, var(--purple), var(--teal), var(--green), var(--gold), var(--orange)) 1;
}
.page-grid.no-sidebar {
  grid-template-columns: 1fr;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   SIDEBAR
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
#sidebar {
  padding: var(--s5) var(--s3);
  background: rgba(9, 11, 32, .90);
  border-right: 1px solid var(--border-sub);
  display: flex; flex-direction: column; gap: var(--s3);
}

/* Card base */
.s-card {
  background: var(--bg-card);
  border: 1px solid var(--border-sub);
  border-radius: var(--r);
  padding: var(--s4);
  position: relative;
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
.s-card:hover {
  border-color: var(--border);
}
/* Topo colorido do card */
.s-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--grad-primary);
}
.s-card--server::before { background: var(--grad-server); }
.s-card--meta::before   { background: var(--grad-teal); }

.s-card__head {
  font-family: var(--f-heading);
  font-size: .72rem; font-weight: 700;
  color: var(--teal);
  letter-spacing: 2px; text-transform: uppercase;
  margin-bottom: var(--s3);
  padding-bottom: var(--s2);
  border-bottom: 1px solid var(--border-sub);
}
.s-card__head i { margin-right: 7px; }

/* Status */
.server-status-line {
  display: flex; align-items: center; gap: var(--s2);
  font-family: var(--f-heading); font-size: .85rem;
  color: var(--green);
  text-shadow: 0 0 10px var(--green-glow);
  margin-bottom: var(--s3);
}
.status-dot {
  width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0;
}
.status-dot.online {
  background: var(--green);
  box-shadow: 0 0 10px var(--green-glow), 0 0 20px rgba(38,222,129,.2);
  animation: pulse-dot 2s infinite;
}
.status-dot.offline { background: var(--red); box-shadow: 0 0 8px rgba(255,94,87,.5); }

.server-stats {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--s2) var(--s3);
}
.ss-item { display: flex; flex-direction: column; gap: 1px; }
.ss-item--wide {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding-bottom: var(--s1);
  border-bottom: 1px solid var(--border-sub);
  margin-bottom: var(--s1);
}
.ss-val--ip {
  font-size: .72rem;
  letter-spacing: 0;
  color: var(--teal);
  font-family: 'Courier New', monospace;
}
.ss-label {
  font-family: var(--f-heading); font-size: .6rem;
  letter-spacing: 1px; text-transform: uppercase; color: var(--text-dim);
}
.ss-val {
  font-family: var(--f-heading); font-size: .8rem;
  font-weight: 600; color: var(--text);
}
.ss-rate {
  background: var(--grad-cta);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
}
.ss-pvp {
  color: var(--red);
  text-shadow: 0 0 8px rgba(255,94,87,.4);
}
.ss-online {
  color: #4cffb0;
  text-shadow: 0 0 8px rgba(76,255,176,.35);
  font-weight: 700;
}

/* Quick links */
.quick-link {
  display: flex; align-items: center; gap: 8px;
  padding: var(--s2) var(--s3);
  margin-bottom: 7px;
  font-family: var(--f-heading);
  font-size: .72rem; letter-spacing: .8px; text-transform: uppercase;
  border: 1px solid var(--border-sub);
  border-radius: var(--r-sm);
  background: rgba(255,255,255,.03);
  color: var(--text-muted);
  transition: all .18s;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}
.quick-link::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  opacity: 0;
  transition: opacity .18s;
}
.quick-link:hover {
  border-color: transparent;
  text-decoration: none;
  transform: translateX(3px);
}
.quick-link:hover::before { opacity: 1; }
.quick-link i { width: 14px; text-align: center; flex-shrink: 0; }

/* Cores especÃ­ficas por link */
.ql--purple:hover { background: rgba(124,92,252,.14); color: var(--purple-light); box-shadow: 0 0 14px var(--purple-glow); }
.ql--purple::before { background: var(--purple); }

.ql--orange:hover { background: rgba(255,107,53,.14); color: var(--orange-light); box-shadow: 0 0 14px var(--orange-glow); }
.ql--orange::before { background: var(--orange); }

.ql--teal:hover { background: rgba(24,220,255,.12); color: var(--teal); box-shadow: 0 0 14px var(--teal-glow); }
.ql--teal::before { background: var(--teal); }

.ql--dim:hover { background: rgba(255,255,255,.05); color: var(--text); }
.ql--dim::before { background: var(--text-dim); }


/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   MAIN CONTENT
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
#main-content {
  background: rgba(11, 13, 36, .86);
  min-height: 600px;
  display: flex; flex-direction: column;
}

/* Breadcrumb */
#breadcrumb {
  display: flex; align-items: center; gap: 8px;
  padding: var(--s2) var(--s8);
  background: rgba(7, 8, 24, .6);
  border-bottom: 1px solid var(--border-sub);
  font-family: var(--f-heading); font-size: .71rem;
  color: var(--text-muted); letter-spacing: .5px;
}
#breadcrumb i { color: var(--purple-light); font-size: .8em; }
#breadcrumb a { color: var(--purple-light); }
#breadcrumb a:hover { color: var(--teal); }

/* Content body */
#content-body {
  padding: var(--s8);
  flex: 1; position: relative;
}

/* â”€â”€ Headings â”€â”€ */
#content-body h1, #content-body h2,
#content-body h3, #content-body h4 {
  font-family: var(--f-heading);
  letter-spacing: 1.5px;
  margin: 1.4em 0 .6em;
}

#content-body h1 {
  font-size: 1.7rem;
  color: var(--gold-light);
  text-shadow: 0 0 24px var(--gold-glow), 0 1px 4px rgba(0,0,0,.9);
  padding-bottom: .35em;
  position: relative;
  display: inline-block;
  width: 100%;
  border-bottom: 2px solid rgba(255,195,18,.25);
}
#content-body h1::before {
  font-family: 'Font Awesome 6 Free'; font-weight: 900;
  content: "\f521"; font-size: .68em;
  margin-right: 11px; color: var(--orange); text-shadow: none;
}
#content-body h1::after {
  content: '';
  display: block; position: absolute;
  bottom: -3px; left: 0; width: 90px; height: 3px;
  background: var(--grad-brand);
  border-radius: 2px;
}

#content-body h2 {
  font-size: 1.35rem;
  color: var(--purple-light);
  text-shadow: 0 0 16px var(--purple-glow);
}
#content-body h2::before {
  font-family: 'Font Awesome 6 Free'; font-weight: 900;
  content: "\f005"; font-size: .52em;
  margin-right: 9px; color: var(--purple); text-shadow: none;
}
#content-body h3 { font-size: 1.12rem; color: var(--teal); }
#content-body h4 { font-size: .96rem; color: var(--text-muted); }

#content-body p { margin-bottom: .9em; color: var(--text); }
#content-body ul, #content-body ol { margin: .6em 0 .9em 1.6em; }
#content-body li { margin-bottom: .35em; }
#content-body li::marker { color: var(--purple); }

#content-body strong, #content-body b { color: var(--gold-light); }
#content-body em { color: var(--teal); }
#content-body a { color: var(--teal); }
#content-body a:hover { color: var(--text); }

#content-body blockquote {
  border-left: 4px solid var(--purple);
  background: rgba(124,92,252,.07);
  padding: var(--s3) var(--s5); margin: 1em 0;
  font-style: italic; color: var(--text-muted);
  border-radius: 0 var(--r) var(--r) 0;
  box-shadow: inset 3px 0 12px rgba(124,92,252,.1);
}

#content-body hr {
  border: none; height: 2px; margin: 1.6em 0;
  background: var(--grad-teal);
  opacity: .3; border-radius: 2px;
}
#content-body img { max-width: 100%; border: 1px solid var(--border); border-radius: var(--r-sm); }

/* â”€â”€ Tabelas â”€â”€ */
#content-body table { border-collapse: collapse; width: 100%; margin-bottom: 1.2em; }
#content-body th {
  background: linear-gradient(135deg, rgba(124,92,252,.2) 0%, rgba(91,142,245,.2) 100%);
  color: var(--teal);
  font-family: var(--f-heading); font-size: .8rem; letter-spacing: 1px;
  padding: 11px 15px;
  border: 1px solid var(--border);
  text-align: left;
}
#content-body td {
  padding: 9px 15px;
  border: 1px solid var(--border-sub);
  font-size: .97rem;
}
#content-body tr:nth-child(even) td { background: rgba(124,92,252,.04); }
#content-body tr:hover td {
  background: rgba(24,220,255,.04);
  transition: background .15s;
}

/* â”€â”€ FormulÃ¡rios â”€â”€ */
#content-body input[type="text"],
#content-body input[type="password"],
#content-body input[type="email"],
#content-body input[type="number"],
#content-body select,
#content-body textarea {
  background: rgba(9, 11, 34, .85);
  border: 2px solid var(--border);
  border-radius: var(--r);
  color: var(--text); padding: 10px 14px;
  font-family: var(--f-body); font-size: 1rem; outline: none;
  width: 100%; transition: border-color .2s, box-shadow .2s;
  margin-bottom: var(--s3);
}
#content-body input:focus,
#content-body select:focus,
#content-body textarea:focus {
  border-color: var(--purple);
  box-shadow: 0 0 14px var(--purple-glow), inset 0 1px 4px rgba(0,0,0,.4);
}
#content-body input::placeholder,
#content-body textarea::placeholder { color: var(--text-dim); opacity: .8; }

#content-body label {
  display: block;
  font-family: var(--f-heading); font-size: .73rem;
  color: var(--teal); letter-spacing: 1px; text-transform: uppercase;
  margin-bottom: var(--s1);
}

#content-body input[type="submit"],
#content-body input[type="button"],
#content-body button {
  background: var(--grad-primary);
  border: none; border-radius: var(--r);
  color: #fff; padding: 10px 24px;
  font-family: var(--f-heading); font-size: .78rem;
  letter-spacing: 1.5px; text-transform: uppercase;
  cursor: pointer; font-weight: 700;
  box-shadow: 0 4px 14px var(--purple-glow);
  transition: transform .18s, box-shadow .18s;
}
#content-body input[type="submit"]:hover,
#content-body button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--purple-glow);
}

/* CMS edit */
.edit {
  background: rgba(255,94,87,.1);
  border: 2px solid rgba(255,94,87,.4);
  border-radius: var(--r); padding: var(--s2) var(--s3);
  margin-bottom: var(--s3); font-size: .73rem;
}
.edit a { color: var(--red); }

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   FOOTER
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
#site-footer {
  background: rgba(6, 7, 22, 0.98);
  border: 3px solid transparent;
  border-image: linear-gradient(90deg, var(--purple), var(--teal), var(--green), var(--gold), var(--orange)) 1;
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: var(--s10);
  padding-top: var(--s10); padding-bottom: var(--s8);
  border-bottom: 1px solid var(--border-sub);
  align-items: start;
}

.footer-logo {
  font-family: var(--f-display); font-size: 1.3rem;
  background: var(--grad-brand);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 2px; margin-bottom: var(--s2);
}
.footer-desc {
  font-size: .85rem; color: var(--text-muted);
  line-height: 1.65; margin-bottom: var(--s4);
}
.footer-ip {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-heading); font-size: .72rem;
  color: var(--text-dim);
}
.footer-ip i { color: var(--purple-light); }
.footer-ip code {
  font-family: 'Courier New', monospace; font-size: .82rem;
  color: var(--teal);
  background: rgba(24,220,255,.07);
  border: 1px solid rgba(24,220,255,.2);
  border-radius: var(--r-sm); padding: 3px 10px; letter-spacing: .5px;
}

.footer-col { display: flex; flex-direction: column; gap: var(--s2); }
.footer-col__title {
  font-family: var(--f-heading); font-size: .7rem;
  color: var(--purple-light); letter-spacing: 2px; text-transform: uppercase;
  margin-bottom: var(--s1); padding-bottom: var(--s1);
  border-bottom: 1px solid var(--border-sub);
}
.footer-col a {
  font-family: var(--f-heading); font-size: .74rem;
  color: var(--text-muted); letter-spacing: .5px;
  transition: color .15s;
}
.footer-col a i { margin-right: 6px; font-size: .8em; opacity: .7; }
.footer-col a:hover { color: var(--teal); }

.footer-contact {
  font-family: var(--f-heading); font-size: .68rem;
  color: var(--text-dim); letter-spacing: .5px; margin-top: var(--s1);
}
.footer-contact i { margin-right: 5px; color: var(--teal); opacity: .6; }

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding: var(--s3) 0;
  font-family: var(--f-heading); font-size: .68rem;
  color: var(--text-dim); letter-spacing: .5px;
}
.footer-credit a { color: var(--text-dim); }
.footer-credit a:hover { color: var(--purple-light); }

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   HIGHSCORES (rank.php fragment)
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.rank-wrap { display: flex; flex-direction: column; gap: var(--s4); }
.rank-title {
  font-family: var(--f-heading); font-size: 1.1rem;
  color: var(--gold-light); letter-spacing: 2px; text-transform: uppercase;
  text-shadow: 0 0 18px var(--gold-glow);
}
.rank-title i { margin-right: 8px; color: var(--orange); }
.rank-filters {
  display: flex; flex-wrap: wrap; gap: var(--s2);
}
.rank-pill {
  display: inline-flex; align-items: center;
  padding: 6px 16px;
  font-family: var(--f-heading); font-size: .68rem;
  letter-spacing: 1px; text-transform: uppercase;
  color: var(--text-muted);
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border-sub);
  border-radius: 20px;
  transition: all .18s; text-decoration: none;
}
.rank-pill:hover {
  color: var(--teal); background: rgba(24,220,255,.1);
  border-color: rgba(24,220,255,.4);
  box-shadow: 0 0 12px rgba(24,220,255,.15);
  text-decoration: none;
}
.rank-pill.active {
  color: var(--gold); background: rgba(255,195,18,.1);
  border-color: rgba(255,195,18,.4);
  box-shadow: 0 0 12px rgba(255,195,18,.15);
}
.rank-pagination {
  display: flex; gap: var(--s3); justify-content: flex-end;
  font-family: var(--f-heading); font-size: .73rem;
  padding-top: var(--s3); border-top: 1px solid var(--border-sub);
}
.rank-pagination a {
  color: var(--purple-light); text-decoration: none;
  transition: color .15s;
}
.rank-pagination a:hover { color: var(--teal); }

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   UTILITÃRIOS
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
ul.search { list-style: none; }
ul.search li { padding: var(--s2) 0; border-bottom: 1px solid var(--border-sub); }
ul.search li a { color: var(--teal); font-family: var(--f-heading); font-size: .8rem; }

body { scrollbar-color: var(--purple) #090b1e; }
::-webkit-scrollbar { width: 7px; }
::-webkit-scrollbar-track { background: #090b1e; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--purple), var(--blue));
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--purple-light), var(--teal));
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   RESPONSIVIDADE
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
/* Comprime o nav quando container < 1320px (abaixo do ponto em que todos os itens cabem) */
@media (max-width: 1319px) and (min-width: 961px) {
  #main-nav ul.menulevel1 > li > a {
    padding: 13px 7px; letter-spacing: 0; font-size: .7rem;
  }
  #main-nav ul.menulevel1 > li > a i { display: none; }
}

@media (max-width: 960px) {
  .topbar-info { display: none; }
  .page-grid { grid-template-columns: 1fr; }
  #sidebar {
    border-right: none; border-bottom: 1px solid var(--border-sub);
    flex-direction: row; flex-wrap: wrap; padding: var(--s4);
  }
  .s-card { flex: 1 1 calc(50% - var(--s3)); min-width: 210px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--s6); }
  #content-body { padding: var(--s6) var(--s5); }
  #breadcrumb { padding-left: var(--s5); padding-right: var(--s5); }
}

@media (max-width: 960px) {
  /* Nav: hamburger em tablet e mobile */
  .nav-toggle { display: flex; }
  #nav-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
    padding: 0;
  }
  #main-nav.nav-open #nav-menu { max-height: 600px; }
  #main-nav.nav-open .nav-inner { overflow-x: visible; }
  #main-nav ul.menulevel1 { flex-direction: column; width: 100%; }
  #main-nav ul.menulevel1 > li > a {
    padding: 12px var(--s6);
    font-size: .73rem; letter-spacing: 1px;
    border-bottom: 1px solid var(--border-sub);
    border-left: 3px solid transparent;
  }
  #main-nav ul.menulevel1 > li > a:hover {
    border-left-color: var(--teal);
    border-bottom-color: var(--border-sub);
  }
  #main-nav ul.menulevel1 > li.sdocs {
    border-bottom: 1px solid var(--border-sub);
    border-left: 3px solid var(--gold);
  }
  .nav-search { display: none; }
}

@media (max-width: 640px) {
  #topbar { display: none; }
  .header-inner {
    flex-direction: column; align-items: stretch;
    gap: var(--s3); padding: var(--s4) 0 var(--s3);
  }
  .site-brand { text-align: center; }
  #site-title { font-size: 1.4rem; letter-spacing: 1px; }
  .header-actions {
    width: 100%;
    justify-content: stretch;
    gap: var(--s2);
  }
  .btn-cta, .btn-primary {
    flex: 1 1 0;
    justify-content: center;
    padding: 10px 12px;
    font-size: .7rem;
    letter-spacing: .8px;
    white-space: nowrap;
  }

  #content-body { padding: var(--s5) var(--s4); }
  #breadcrumb { padding-left: var(--s4); padding-right: var(--s4); flex-wrap: wrap; }

  /* Tabelas globais com scroll horizontal */
  #content-body table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
    white-space: nowrap;
  }
  #content-body th, #content-body td { font-size: .88rem; padding: 8px 10px; }

  #sidebar { flex-direction: column; }
  .s-card { flex: 1 1 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--s5); padding-top: var(--s6); }
  .footer-bottom { flex-direction: column; gap: var(--s2); text-align: center; }

  /* News card: menos padding no mobile */
  .news-card { margin: 20px auto; }
  .news-card-header { padding: 14px 18px; gap: 8px; }
  .news-card-title { font-size: .88rem; }
  .news-card-date { font-size: .68rem; }
  .news-card-body-inner { padding: 18px 18px 22px; }
}

/* â”€â”€ STAGES TABLE (sidebar) â”€â”€ */
.ss-stages { flex-direction: column; align-items: flex-start; gap: 6px; }
.ss-stages .ss-label { margin-bottom: 2px; }

.stages-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .78rem;
  margin-top: 4px;
}
.stages-table th,
.stages-table td {
  padding: 4px 8px;
  border: 1px solid rgba(255,195,18,.25);
  text-align: center;
}
.stages-table thead th {
  background: rgba(255,195,18,.1);
  color: var(--gold);
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  font-size: .7rem;
}
.stages-table tbody tr:nth-child(even) td {
  background: rgba(255,255,255,.03);
}
.stages-table tbody td:first-child { color: #cfd6ec; }
.stages-table tbody td:last-child  { color: var(--gold); font-weight: 700; }

/* â”€â”€ NEWS COLAPSÃVEL â”€â”€ */
.news-card {
  background: rgba(255,195,18,.07);
  border: 1px solid rgba(255,195,18,.4);
  border-radius: 14px;
  margin: 32px auto;
  max-width: 760px;
  box-shadow: 0 0 24px rgba(255,195,18,.1);
  overflow: hidden;
}

.news-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 28px;
  cursor: pointer;
  user-select: none;
  transition: background .2s;
}

.news-card-header:hover {
  background: rgba(255,195,18,.06);
}

.news-card-title {
  flex: 1;
  color: #FFC312;
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.news-card-date {
  color: #8899bb;
  font-size: .75rem;
  letter-spacing: 1px;
  white-space: nowrap;
}

.news-card-chevron {
  color: #FFC312;
  font-size: .8rem;
  transition: transform .3s ease;
  flex-shrink: 0;
}

.news-card.open .news-card-chevron {
  transform: rotate(180deg);
}

.news-card-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease, border-top-color .2s;
  border-top: 1px solid transparent;
}

.news-card.open .news-card-body {
  max-height: 4000px;
  border-top-color: rgba(255,195,18,.2);
}

.news-card-body-inner {
  padding: 24px 28px 28px;
}

@media (max-width: 480px) {
  #site-title { font-size: 1.15rem; letter-spacing: .5px; }
  #site-tagline { font-size: .6rem; letter-spacing: 2px; }
  .btn-cta, .btn-primary {
    font-size: .62rem;
    padding: 9px 8px;
    gap: 4px;
    letter-spacing: .5px;
  }
  /* Esconde Ã­cones dos botÃµes em telas muito pequenas pra priorizar o texto */
  .btn-cta i, .btn-primary i { display: none; }
  #content-body { padding: var(--s4) var(--s3); }
  #breadcrumb { padding: var(--s2) var(--s3); font-size: .65rem; }
  .container { padding-left: var(--s3); padding-right: var(--s3); }

  /* News card: muito pequeno */
  .news-card-header { padding: 12px 14px; }
  .news-card-title { font-size: .82rem; letter-spacing: .8px; }
  .news-card-date { display: none; }
  .news-card-body-inner { padding: 14px 14px 18px; }


}


/* ============================================================
   X Angel OTServer â€” Blue/Gold Tibia-like layout v9
   Menu lateral inspirado em sites clÃ¡ssicos de Tibia.
   ============================================================ */

:root {
  --xg-blue-dark: #173356;
  --xg-blue: #285f9e;
  --xg-blue-light: #4e8bc8;
  --xg-gold: #d99a2b;
  --xg-gold-light: #f5cf6c;
  --xg-paper: #e3ca8d;
  --xg-paper-light: #f2dda4;
  --xg-paper-dark: #b78f50;
  --xg-ink: #241407;
  --xg-wood: #4b2a13;
  --xg-wood-dark: #201006;
  --xg-line: rgba(61, 32, 12, .32);
}

body {
  background:
    radial-gradient(circle at 18% -8%, rgba(78,139,200,.24), transparent 34%),
    radial-gradient(circle at 82% 10%, rgba(245,207,108,.18), transparent 32%),
    linear-gradient(rgba(8, 13, 22, .46), rgba(18, 10, 6, .78)),
    url("/templates/scrolls/xangel-demon-party-bg.png") center top / cover fixed;
  color: var(--xg-paper-light);
  font-family: Inter, Arial, sans-serif;
}

body::before { display: none; }

#page-wrap {
  max-width: 1500px;
  padding: 0 18px;
}

.container {
  max-width: 1500px;
  padding-left: 18px;
  padding-right: 18px;
}

#topbar {
  margin-top: 0;
  background: rgba(13, 24, 42, .94);
  border: 1px solid rgba(245,207,108,.22);
  border-top: 0;
  font-family: Inter, Arial, sans-serif;
}

.topbar-inner { padding: 7px 10px; }
.topbar-info { color: #d7c99d; }
.topbar-info i { color: var(--xg-gold-light); }
.status-pill { color: #9fe077; text-shadow: none; }
.topbar-divider { background: rgba(245,207,108,.18); }

#site-header {
  position: relative;
  top: auto;
  margin-top: 10px;
  background:
    linear-gradient(90deg, rgba(11,22,39,.97), rgba(30,47,70,.78) 48%, rgba(55,31,10,.42)),
    radial-gradient(circle at 75% 12%, rgba(245,207,108,.24), transparent 34%);
  border: 1px solid rgba(245,207,108,.32);
  border-bottom: 4px solid var(--xg-gold);
  box-shadow: 0 20px 52px rgba(0,0,0,.36);
}

.header-inner {
  min-height: 176px;
  padding: 28px 18px 24px;
}

.site-brand {
  display: inline-flex;
  flex-direction: column;
  position: relative;
  padding-left: 84px;
}

.site-brand::before {
  content: "X";
  position: absolute;
  left: 0;
  top: 2px;
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  border-radius: 5px;
  border: 2px solid var(--xg-gold-light);
  background: linear-gradient(135deg, rgba(245,207,108,.28), rgba(78,139,200,.18)), #11233c;
  color: var(--xg-gold-light);
  font-family: var(--f-display);
  font-size: 38px;
  font-weight: 800;
  box-shadow: inset 0 0 0 2px rgba(0,0,0,.42), 0 0 28px rgba(78,139,200,.36);
}

#site-title {
  background: none;
  -webkit-text-fill-color: initial;
  color: #fff0bd;
  font-family: var(--f-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1;
  letter-spacing: 1px;
  text-shadow: 0 3px #0b1628;
  filter: none;
}

#site-tagline {
  color: #d4c08a;
  margin-top: 7px;
  font-family: Inter, Arial, sans-serif;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: 2.5px;
}

.header-actions {
  align-self: flex-end;
  background: linear-gradient(rgba(22,47,85,.9), rgba(15,30,55,.9));
  border: 1px solid rgba(245,207,108,.48);
  border-radius: 5px;
  padding: 12px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.05), 0 0 24px rgba(78,139,200,.15);
}

.btn-cta,
.btn-primary,
#content-body input[type="submit"],
#content-body input[type="button"],
#content-body button {
  border-radius: 4px;
  font-family: Inter, Arial, sans-serif;
  font-weight: 900;
  letter-spacing: .5px;
  box-shadow: inset 0 1px rgba(255,255,255,.28), 0 3px 0 #4c2c0b;
}

.btn-cta {
  background: linear-gradient(#f0b746, #9c641f);
  color: #201204;
  border: 1px solid #8e5a24;
}

.btn-cta:hover { color: #201204; }

.btn-primary {
  background: linear-gradient(#316aa7, #173356);
  border: 1px solid #8ab2dd;
  color: #fff0bd;
  box-shadow: inset 0 1px rgba(255,255,255,.18), 0 3px 0 #09182b;
}

#main-nav {
  display: none;
  background: linear-gradient(#30649f, #173356);
  border-top: 1px solid rgba(245,207,108,.34);
}

#page-body {
  margin-top: 16px;
  background: none;
}

.page-grid {
  grid-template-columns: 230px minmax(0, 1fr) 250px;
  gap: 16px;
  max-width: 1500px;
  background: none;
  border: 0;
}

.page-grid.no-sidebar {
  grid-template-columns: minmax(0, 1fr);
}

#sidebar,
#right-rail,
#main-content {
  border: 2px solid #6f4c1f;
  border-radius: 5px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.18), 0 9px 22px rgba(0,0,0,.3);
  overflow: hidden;
}

#sidebar {
  padding: 0;
  gap: 0;
  background: linear-gradient(#183258, #0d1c33);
  border-color: #9d762c;
}

.xg-side-nav {
  display: grid;
  gap: 0;
}

.xg-menu-block + .xg-menu-block {
  border-top: 1px solid rgba(245,207,108,.27);
}

.xg-menu-title,
.s-card__head,
.xg-rail-title,
#breadcrumb,
#content-body .med-title,
#content-body .rank-title {
  background: linear-gradient(#30649f, #173356);
  color: #fff0bd;
  border-bottom: 2px solid var(--xg-gold);
  font-family: var(--f-heading);
  text-shadow: 0 1px #071224;
}

.xg-menu-title {
  padding: 10px 12px;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .7px;
  text-transform: uppercase;
}

.xg-menu-link {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 37px;
  padding: 8px 10px;
  color: #edf5ff;
  text-decoration: none;
  font-family: Inter, Arial, sans-serif;
  font-size: .74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .2px;
  background: linear-gradient(#244f85, #132b4c);
  border-top: 1px solid rgba(255,255,255,.08);
  border-bottom: 1px solid rgba(0,0,0,.42);
}

.xg-menu-link i {
  width: 14px;
  color: var(--xg-gold-light);
  text-align: center;
}

.xg-menu-link:hover,
.xg-menu-link.is-active {
  color: #201204;
  background: linear-gradient(#f0b746, #9c641f);
}

.xg-menu-link:hover i,
.xg-menu-link.is-active i {
  color: #201204;
}

#sidebar .s-card {
  border: 0;
  border-top: 1px solid rgba(245,207,108,.27);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.s-card__head {
  margin: 0;
  padding: 10px 12px;
  border-radius: 0;
  color: #fff0bd;
}

.server-status-line {
  color: #e9f3ff;
  border-color: rgba(245,207,108,.2);
}

.server-stats {
  gap: 7px;
}

.ss-item {
  background: rgba(255,245,210,.08);
  border-color: rgba(245,207,108,.2);
}

.ss-label { color: #d7c99d; }
.ss-val { color: #fff0bd; }
.ss-rate, .ss-pvp, .ss-online { color: #9fe077; }

.quick-link {
  color: #edf5ff;
  background: linear-gradient(#244f85, #132b4c);
  border-color: rgba(245,207,108,.2);
}

.quick-link:hover {
  transform: none;
  color: #201204;
  background: linear-gradient(#f0b746, #9c641f);
}

#main-content,
#right-rail {
  background: linear-gradient(rgba(240,222,168,.98), rgba(203,170,100,.98));
  color: var(--xg-ink);
}

#breadcrumb {
  padding: 9px 16px;
  color: #eaf4ff;
  font-family: Inter, Arial, sans-serif;
  font-size: .74rem;
}

#breadcrumb a { color: #fff0bd; }
#breadcrumb i { color: var(--xg-gold-light); }

#content-body {
  padding: 18px;
  color: var(--xg-ink);
}

#content-body h1 {
  color: #34200d;
  text-shadow: none;
  border-bottom-color: rgba(40,95,158,.25);
  font-size: 1.6rem;
}

#content-body h1::before {
  color: var(--xg-blue);
}

#content-body h1::after {
  background: linear-gradient(90deg, var(--xg-blue), var(--xg-gold));
}

#content-body h2 {
  color: var(--xg-blue-dark);
  text-shadow: none;
}

#content-body h2::before { color: var(--xg-gold); }
#content-body h3 { color: #34200d; }
#content-body p,
#content-body li {
  color: #4b3620;
  font-family: Inter, Arial, sans-serif;
}

#content-body strong,
#content-body b {
  color: #34200d;
}

#content-body a {
  color: #1e5d96;
  font-weight: 700;
}

#content-body table {
  background: rgba(255,245,210,.32);
  border: 1px solid rgba(61,32,12,.24);
}

#content-body th {
  background: linear-gradient(#30649f, #173356);
  color: #fff0bd;
  border-color: rgba(61,32,12,.32);
}

#content-body td {
  color: #3c2817;
  border-color: rgba(61,32,12,.22);
}

#content-body tr:nth-child(even) td { background: rgba(255,245,210,.24); }
#content-body tr:hover td { background: rgba(78,139,200,.12); }

#content-body input[type="text"],
#content-body input[type="password"],
#content-body input[type="email"],
#content-body input[type="number"],
#content-body select,
#content-body textarea {
  background: rgba(255,245,210,.7);
  color: #241407;
  border-color: rgba(61,32,12,.42);
  font-family: Inter, Arial, sans-serif;
}

.news-card {
  background: rgba(255,245,210,.42) !important;
  border: 1px solid rgba(61,32,12,.3) !important;
  border-radius: 5px !important;
  box-shadow: none !important;
  max-width: none;
}

.news-card-header {
  background: linear-gradient(#30649f, #173356) !important;
  border-bottom: 2px solid var(--xg-gold);
}

.news-card-title,
.news-card-chevron {
  color: #fff0bd !important;
}

.news-card-date { color: #dbe9ff !important; }
.news-card-body-inner { background: rgba(240,222,168,.58); }

#right-rail {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.xg-rail-card + .xg-rail-card {
  border-top: 1px solid rgba(61,32,12,.24);
}

.xg-rail-title {
  padding: 10px 12px;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .7px;
  text-transform: uppercase;
}

.xg-rail-title i {
  color: var(--xg-gold-light);
  margin-right: 6px;
}

.xg-rail-body {
  padding: 12px;
}

.xg-account-actions {
  display: grid;
  gap: 8px;
}

.xg-rail-button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 10px;
  border-radius: 4px;
  border: 1px solid #8ab2dd;
  background: linear-gradient(#316aa7, #173356);
  color: #fff0bd;
  text-decoration: none;
  font-family: Inter, Arial, sans-serif;
  font-size: .74rem;
  font-weight: 900;
  text-transform: uppercase;
  box-shadow: inset 0 1px rgba(255,255,255,.18), 0 3px 0 #09182b;
}

.xg-rail-button--gold {
  background: linear-gradient(#f0b746, #9c641f);
  border-color: #8e5a24;
  color: #201204;
  box-shadow: inset 0 1px rgba(255,255,255,.32), 0 3px 0 #4c2c0b;
}

.xg-rail-table {
  width: 100%;
  border-collapse: collapse;
  font-family: Inter, Arial, sans-serif;
  font-size: .78rem;
}

.xg-rail-table td {
  padding: 8px 0;
  border-bottom: 1px solid rgba(61,32,12,.22);
  color: #4b3620;
}

.xg-rail-table td:last-child {
  text-align: right;
  color: #1e5d96;
  font-weight: 900;
}

.xg-stages-table {
  margin-top: 10px;
  border: 1px solid rgba(61,32,12,.24);
  background: rgba(255,244,207,.42);
}

.xg-stages-table th,
.xg-stages-table td {
  padding: 6px 8px;
  border-bottom: 1px solid rgba(61,32,12,.18);
}

.xg-stages-table th {
  background: linear-gradient(#30649f, #173356);
  color: #fff0bd;
  font-family: var(--f-heading);
  font-size: .68rem;
  letter-spacing: .5px;
  text-align: left;
}

.xg-stages-table th:last-child,
.xg-stages-table td:last-child {
  text-align: right;
}

.xg-stages-table tbody tr:last-child td {
  border-bottom: 0;
}

#site-footer {
  margin-top: 18px;
  background: linear-gradient(rgba(13,24,42,.96), rgba(9,17,31,.96));
  border: 1px solid rgba(245,207,108,.28);
  border-top: 4px solid var(--xg-gold);
}

.footer-logo {
  background: none;
  -webkit-text-fill-color: initial;
  color: #fff0bd;
}

.footer-col__title { color: #fff0bd; }
.footer-col a,
.footer-desc,
.footer-bottom {
  color: #c9b98c;
}

@media (min-width: 961px) {
  .nav-toggle { display: none !important; }
}

@media (max-width: 1200px) and (min-width: 961px) {
  .page-grid {
    grid-template-columns: 220px minmax(0, 1fr);
  }
  #right-rail {
    grid-column: 2;
  }
}

@media (max-width: 960px) {
  #page-wrap { padding: 0 10px; }
  #topbar { display: block; }
  .topbar-inner { justify-content: center; }
  .topbar-info:nth-of-type(n+3),
  .topbar-divider:nth-of-type(n+3) { display: none; }

  .header-inner {
    min-height: auto;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 14px 10px;
  }
  .site-brand {
    flex: 1 1 100%;
    max-width: 100%;
    padding-left: 54px;
  }
  .site-brand-wrap {
    flex: 1 1 100%;
    max-width: 100%;
  }
  .site-brand::before {
    width: 42px;
    height: 42px;
    font-size: 24px;
  }
  #site-title {
    font-size: 1.45rem;
  }
  #site-tagline {
    font-size: .55rem;
    letter-spacing: 1.4px;
  }
  .header-actions {
    display: flex;
    flex: 1 0 100%;
    align-self: stretch;
    justify-content: center;
    gap: 8px;
    padding: 8px;
  }
  .header-actions .btn-cta,
  .header-actions .btn-primary {
    flex: 1 1 140px;
    min-width: 0;
    justify-content: center;
  }
  #main-nav {
    display: block;
  }
  .nav-toggle {
    display: flex;
    justify-content: space-between;
    color: #fff0bd;
    background: linear-gradient(#30649f, #173356);
    border-top: 1px solid rgba(245,207,108,.34);
  }
  #main-nav ul.menulevel1 > li > a {
    color: #edf5ff;
    background: linear-gradient(#244f85, #132b4c);
    border-left: 0;
    border-bottom: 1px solid rgba(245,207,108,.16);
    font-family: Inter, Arial, sans-serif;
  }
  #main-nav ul.menulevel1 > li > a:hover,
  #main-nav ul.menulevel1 > li.sdocs > a {
    color: #201204;
    background: linear-gradient(#f0b746, #9c641f);
  }
  .page-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  #sidebar {
    display: none;
  }
  #right-rail {
    order: 3;
  }
  #content-body {
    padding: 12px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .container {
    padding-left: 10px;
    padding-right: 10px;
  }
  .topbar-info:nth-of-type(n+2),
  .topbar-divider { display: none; }
  .header-inner {
    padding: 12px 8px;
  }
  #site-title { font-size: 1.25rem; }
  #site-tagline { display: none; }
  #content-body h1 { font-size: 1.28rem; }
  .news-card-header {
    padding: 12px 14px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.site-brand-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.xg-social-chips {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  margin-left: 84px;
}

.xg-social-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: max-content;
  padding: 5px 11px;
  border: 1px solid rgba(245,207,108,.34);
  border-radius: 4px;
  color: #fff0bd;
  font-family: Inter, Arial, sans-serif;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .7px;
  text-transform: uppercase;
  text-decoration: none;
}

.xg-discord-chip {
  background: linear-gradient(#244f85, #132b4c);
}

.xg-instagram-chip {
  background: linear-gradient(135deg, #8234af, #e1306c 52%, #f77737);
  border-color: rgba(255,214,120,.42);
}

.xg-whatsapp-chip {
  background: linear-gradient(135deg, #128c7e, #075e54);
  border-color: rgba(255,240,189,.42);
}

.xg-social-chip:hover {
  color: #201204;
  background: linear-gradient(#f0b746, #9c641f);
}

@media (max-width: 960px) {
  .xg-social-chips {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: calc(100% - 54px);
    margin: 8px 0 0 54px;
  }
  .xg-social-chip {
    width: 100%;
    justify-content: center;
    padding: 8px 10px;
    box-shadow: 0 8px 18px rgba(0,0,0,.18), inset 0 0 0 1px rgba(255,255,255,.06);
  }
}

.page-grid,
#main-content,
#content-body,
.news-card,
.news-card-header,
.news-card-title {
  min-width: 0;
}

.news-card-title {
  overflow-wrap: anywhere;
  line-height: 1.38;
}

.news-card:not(.open) .news-card-body {
  height: 0 !important;
  max-height: 0 !important;
  overflow: hidden !important;
  opacity: 0;
  pointer-events: none;
}

.news-card.open .news-card-body {
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 640px) {
  .news-card {
    width: 100%;
    margin: 20px 0;
  }

  .news-card-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 14px;
    align-items: center;
    box-sizing: border-box;
    padding: 12px 14px;
    gap: 8px;
  }

  .news-card-title {
    display: block;
    max-width: 100%;
    font-size: .68rem;
    letter-spacing: 0;
    white-space: normal !important;
    word-break: break-word;
  }

  .news-card-date {
    display: none !important;
  }

  .news-card-chevron {
    flex: 0 0 auto;
  }
}

/* UX polish: keep the left rail focused on navigation; right rail owns summaries. */
#sidebar > .s-card {
  display: none;
}

.xg-menu-link span,
.xg-rail-button,
.quick-link,
.btn-cta,
.btn-primary {
  overflow-wrap: anywhere;
}

/* Legacy CMS content used inline dark panels; normalize them for the parchment page. */
#content-body div[style*="background:#12122a"],
#content-body div[style*="background:#1a1a3a"],
#content-body div[style*="background:rgba(20,20,45"],
#content-body div[style*="background:rgba(9,11,34"],
#content-body div[style*="background:rgba(124,92,252"],
#content-body div[style*="background:rgba(88,101,242"],
#content-body div[style*="background:rgba(255,195,18"],
#content-body div[style*="background:rgba(46,213,115"],
#content-body div[style*="background:rgba(38,222,129"],
#content-body div[style*="background:rgba(255,99,72"],
#content-body div[style*="background:rgba(255,255,255"],
#content-body div[style*="background:rgba(0,0,0"],
#content-body div[style*="background:linear-gradient(135deg,rgba("] {
  background: rgba(255,244,207,.68) !important;
  border-color: rgba(96,60,18,.32) !important;
  color: #241407 !important;
  box-shadow: none !important;
}

#content-body div[style*="color:#fff;"],
#content-body p[style*="color:#fff;"],
#content-body div[style*="color:#ffffff;"],
#content-body p[style*="color:#ffffff;"],
#content-body div[style*="color:#FFFFFF;"],
#content-body p[style*="color:#FFFFFF;"],
#content-body div[style*="color:white"],
#content-body p[style*="color:white"],
#content-body div[style*="color: white"],
#content-body p[style*="color: white"] {
  color: #173356 !important;
}

#content-body [style*="color:#e8ecff"],
#content-body [style*="color:#dde2f8"],
#content-body [style*="color:#cfd6ec"],
#content-body [style*="color:#aaa"],
#content-body [style*="color:#7a82b0"],
#content-body [style*="color:#9aa3c0"] {
  color: #3f2b17 !important;
}

#content-body [style*="color:#FFC312"],
#content-body [style*="color:#ffc312"],
#content-body [style*="color:#FF9F43"],
#content-body [style*="color:#a080ff"],
#content-body [style*="color:#7289DA"],
#content-body [style*="color:#93c5fd"],
#content-body [style*="color:#c084fc"],
#content-body [style*="color:#c9b8ff"] {
  color: #173356 !important;
}

#content-body [style*="color:#2ed573"],
#content-body [style*="color:#26DE81"],
#content-body [style*="color:#34d399"] {
  color: #176b2f !important;
}

#content-body [style*="color:#ff6348"],
#content-body [style*="color:#fca5a5"] {
  color: #8c2d1c !important;
}

#content-body code,
#content-body [style*="font-family:monospace"] {
  background: rgba(40,95,158,.12) !important;
  border: 1px solid rgba(40,95,158,.22);
  border-radius: 4px;
  color: #173356 !important;
  padding: 1px 5px;
}

#content-body a.btn-primary,
#content-body a.btn-cta,
#content-body a[style*="background:linear-gradient(135deg,#444,#222)"] {
  min-height: 42px;
  border-radius: 4px !important;
  text-align: center;
}

#content-body a.btn-primary {
  color: #fff0bd !important;
}

#content-body a.btn-cta {
  color: #201204 !important;
}

#content-body a[style*="background:linear-gradient(135deg,#444,#222)"] {
  background: linear-gradient(#316aa7, #173356) !important;
  border: 1px solid #8ab2dd !important;
  color: #fff0bd !important;
}

#content-body .btn-primary[download] {
  opacity: 1;
}

#content-body form {
  max-width: 620px;
}

#content-body label {
  color: #173356;
  font-weight: 800;
}

/* Xangel Guide: keep the parchment layout readable after legacy inline colors are normalized. */
#content-body .xangel-guide {
  color: #2f1d0d;
}

#content-body .xangel-guide [style*="color:#a0a8c8"],
#content-body .xangel-guide [style*="color:#9ca3af"],
#content-body .xangel-guide [style*="color:#7a82b0"],
#content-body .xangel-guide [style*="color:#cfd6ec"],
#content-body .xangel-guide [style*="color:#e8ecff"] {
  color: #3f2b17 !important;
}

#content-body .xangel-guide [style*="color:#93c5fd"],
#content-body .xangel-guide [style*="color:#bfdbfe"],
#content-body .xangel-guide [style*="color:#dbeafe"],
#content-body .xangel-guide [style*="color:#60a5fa"],
#content-body .xangel-guide [style*="color:#74b9ff"] {
  color: #173356 !important;
}

#content-body .xangel-guide [style*="color:#34d399"],
#content-body .xangel-guide [style*="color:#6ee7b7"],
#content-body .xangel-guide [style*="color:#86efac"],
#content-body .xangel-guide [style*="color:#bbf7d0"],
#content-body .xangel-guide [style*="color:#2ed573"],
#content-body .xangel-guide [style*="color:#26DE81"] {
  color: #176b2f !important;
}

#content-body .xangel-guide [style*="color:#FFC312"],
#content-body .xangel-guide [style*="color:#ffc312"],
#content-body .xangel-guide [style*="color:#fbbf24"],
#content-body .xangel-guide [style*="color:#fde68a"],
#content-body .xangel-guide [style*="color:#fef3c7"] {
  color: #6f4700 !important;
}

#content-body .xangel-guide [style*="color:#f87171"],
#content-body .xangel-guide [style*="color:#fca5a5"],
#content-body .xangel-guide [style*="color:#ff6348"] {
  color: #8c2d1c !important;
}

#content-body .xangel-guide [style*="color:#c084fc"],
#content-body .xangel-guide [style*="color:#a78bfa"],
#content-body .xangel-guide [style*="color:#c9b8ff"],
#content-body .xangel-guide [style*="color:#f9a8d4"] {
  color: #5b3585 !important;
}

#content-body .xangel-guide em {
  color: #173356 !important;
}

#content-body .xangel-guide div[style*="background:rgba(30,10,10"] {
  background: rgba(255,244,207,.68) !important;
  border-color: rgba(140,45,28,.32) !important;
  box-shadow: none !important;
}

#content-body .xangel-guide thead tr,
#content-body .xangel-guide thead tr[style] {
  background: linear-gradient(#30649f, #173356) !important;
}

#content-body .xangel-guide th,
#content-body .xangel-guide th[style] {
  color: #fff0bd !important;
  background-color: #173356 !important;
  background-image: linear-gradient(#30649f, #173356) !important;
  border-color: rgba(255,240,189,.28) !important;
  text-shadow: 0 1px 1px rgba(0,0,0,.35);
}

#content-body .xangel-guide td,
#content-body .xangel-guide td[style] {
  border-color: rgba(96,60,18,.24) !important;
}

#content-body .xangel-guide tbody tr[style*="background:rgba(255,255,255"],
#content-body .xangel-guide tbody tr:nth-child(even) {
  background: rgba(146,110,37,.1) !important;
}

#content-body .xangel-guide tbody tr[style*="background:rgba(52,211,153"] {
  background: rgba(53,128,78,.16) !important;
}

#content-body .xangel-guide code,
#content-body .xangel-guide [style*="font-family:monospace"] {
  color: #173356 !important;
}
