/* ============================================================
   CODEX - tema do site (Znote AAC) - v3
   ============================================================ */
:root {
  --bg: #050a14;
  --bg-2: #08101d;
  --panel: rgba(12, 24, 40, .92);
  --panel-solid: #0c1828;
  --panel-2: #101f3e;
  --line: #1d3354;
  --line-soft: #142640;
  --glow: rgba(95, 170, 255, .35);
  --text: #dce8f5;
  --text-2: #8fa7c4;
  --text-3: #6f86a8;
  --gold: #f2c400;
  --gold-2: #ffd84a;
  --gold-ink: #1a1400;
  --cyan: #5fd3ff;
  --blue: #3d8bff;
  --green: #5fd35f;
  --red: #e04848;
  --radius: 10px;
  --radius-sm: 6px;
  --cut: 12px;
  --shadow: 0 14px 34px rgba(0, 0, 0, .45);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-title: 'Rajdhani', 'Inter', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  background-image:
    radial-gradient(1100px 600px at 80% 0%, rgba(61, 139, 255, .08), transparent 60%),
    radial-gradient(800px 500px at 0% 40%, rgba(242, 196, 0, .04), transparent 60%);
  color: var(--text);
  font: 15px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; border: 0; }
a { color: var(--gold); text-decoration: none; transition: color .15s; }
a:hover { color: var(--gold-2); }
p { margin: 0 0 1em; }
hr, .bighr { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }
center { display: block; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title); font-weight: 700; color: #fff;
  line-height: 1.15; margin: 0 0 .6em; letter-spacing: .4px;
}
h1 { font-size: 30px; } h2 { font-size: 24px; } h3 { font-size: 19px; }
h4 { font-size: 16px; color: var(--text); } h5, h6 { font-size: 14px; color: var(--text-2); }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--text-3); }
.ok { color: var(--green) !important; }
.bad { color: var(--red) !important; }
.ico { width: 22px; height: 22px; flex-shrink: 0; }
.ico-sm { width: 16px; height: 16px; }

/* cantos cortados (estilo do layout) */
.cut { clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut)); }

/* ---------- topo ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(5, 10, 20, .86);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
  box-shadow: 0 1px 0 rgba(242, 196, 0, .08);
}
.topbar-inner { display: flex; align-items: center; gap: 22px; height: 70px; }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 52px; width: auto; filter: drop-shadow(0 0 10px rgba(61, 139, 255, .25)); }
.nav { flex: 1; }
.menu, .menu ul { list-style: none; margin: 0; padding: 0; }
.menu { display: flex; gap: 2px; }
.menu > li { position: relative; }
.menu > li > a {
  display: block; padding: 24px 13px; white-space: nowrap;
  color: var(--text-2);
  font: 700 14px/1 var(--font-title); letter-spacing: 1px; text-transform: uppercase;
  position: relative;
}
.menu > li > a:hover { color: #fff; }
.menu > li.active > a { color: var(--gold); }
.menu > li.active > a::after {
  content: ''; position: absolute; left: 10px; right: 10px; bottom: 0; height: 3px;
  background: var(--gold); box-shadow: 0 0 12px rgba(242, 196, 0, .7); border-radius: 3px 3px 0 0;
}
.has-sub > a::before {
  content: ''; position: absolute; right: 0; top: 50%; margin-top: -2px;
  border: 4px solid transparent; border-top-color: currentColor; border-bottom: 0;
}
.has-sub > a { padding-right: 18px !important; }
.has-sub > ul {
  position: absolute; top: 100%; left: 0; min-width: 210px;
  padding: 6px; background: var(--panel-solid);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(-4px); transition: .15s;
}
.has-sub:hover > ul, .has-sub:focus-within > ul { opacity: 1; visibility: visible; transform: none; }
.has-sub ul a { display: block; padding: 8px 12px; border-radius: var(--radius-sm); color: var(--text); }
.has-sub ul a:hover { background: var(--panel-2); color: var(--gold); }

.topbar-side { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.status-pill {
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 8px;
  font: 700 13px/1 var(--font-title); letter-spacing: 1px; text-transform: uppercase; color: var(--text-2);
  background: var(--bg-2); border: 1px solid var(--line);
}
.status-pill i, .stat-head i { width: 8px; height: 8px; border-radius: 50%; background: var(--red); display: inline-block; }
.status-pill.is-on i, .stat-head.ok i { background: var(--green); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(95, 211, 95, .6); } 70% { box-shadow: 0 0 0 7px rgba(95, 211, 95, 0); } 100% { box-shadow: 0 0 0 0 rgba(95, 211, 95, 0); } }
.menu-toggle {
  display: none; margin-left: auto; width: 42px; height: 42px; padding: 10px;
  background: var(--panel-solid); border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; box-shadow: none;
}
.menu-toggle span { display: block; height: 2px; margin: 4px 0; background: var(--text); border-radius: 2px; }

/* ---------- botoes ---------- */
.btn-cta, .btn-ghost, button, input[type=submit], input[type=button], .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: var(--radius-sm);
  font: 700 15px/1.1 var(--font-title); letter-spacing: 1px; text-transform: uppercase;
  cursor: pointer; border: 1px solid transparent; text-decoration: none;
  transition: transform .1s, filter .15s, background .15s, border-color .15s, box-shadow .15s;
}
.btn-cta, button, input[type=submit], input[type=button], .btn-primary, .btn-success {
  background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: var(--gold-ink);
  box-shadow: 0 6px 18px rgba(242, 196, 0, .22), inset 0 1px 0 rgba(255, 255, 255, .4);
}
.btn-cta:hover, button:hover, input[type=submit]:hover, input[type=button]:hover, .btn-primary:hover, .btn-success:hover {
  color: var(--gold-ink); filter: brightness(1.07); box-shadow: 0 8px 24px rgba(242, 196, 0, .35);
}
.btn-cta:active, button:active, input[type=submit]:active { transform: translateY(1px); }
.btn-ghost, .btn-info, .btn-default {
  background: rgba(8, 16, 29, .55); color: #fff; border-color: rgba(143, 167, 196, .45);
}
.btn-ghost:hover, .btn-info:hover, .btn-default:hover { color: #fff; border-color: var(--gold); background: rgba(242, 196, 0, .08); }
.btn-warning { background: #3a2f0a; color: var(--gold-2); border-color: #6b5410; }
.btn-danger { background: #3a1214; color: #ff9b9b; border-color: #6b2226; }
.btn-lg { padding: 15px 28px; font-size: 17px; }
.btn-block { width: 100%; }
.pull-right { float: right; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background-color: var(--bg); background-position: center; background-size: cover; background-repeat: no-repeat;
  border-bottom: 1px solid var(--line-soft);
}
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 10, 20, .88) 0%, rgba(5, 10, 20, .55) 45%, rgba(5, 10, 20, .15) 75%, rgba(5, 10, 20, .35) 100%),
    linear-gradient(0deg, var(--bg) 0%, rgba(5, 10, 20, 0) 28%);
}
.hero-inner {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 40px;
  align-items: center; min-height: 520px; padding-top: 40px; padding-bottom: 56px;
}
.hero-logo { width: 360px; max-width: 80%; height: auto; margin-bottom: 6px; filter: drop-shadow(0 6px 24px rgba(61, 139, 255, .35)); }
.hero h1 {
  font-size: clamp(32px, 4.4vw, 52px); letter-spacing: 2px; text-transform: uppercase;
  margin: 0 0 12px; color: #fff; text-shadow: 0 2px 18px rgba(0, 0, 0, .6);
}
.hero p { font-size: 18px; color: #c9d8ea; max-width: 520px; text-shadow: 0 1px 10px rgba(0, 0, 0, .6); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.hero-side { display: grid; gap: 12px; }
.glass {
  background: linear-gradient(180deg, rgba(16, 31, 62, .78), rgba(8, 16, 29, .82));
  border: 1px solid rgba(61, 139, 255, .35);
  border-radius: var(--radius);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .3), 0 10px 26px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .05);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.stat-box { padding: 14px 18px; }
.stat-head { display: flex; align-items: center; gap: 8px; font: 700 15px/1 var(--font-title); letter-spacing: 1.5px; text-transform: uppercase; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.stat-row { padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.stat-row:last-child { border-bottom: 0; padding-bottom: 2px; }
.stat-row strong { display: block; font: 700 30px/1 var(--font-title); color: var(--gold); }
.stat-row span { font: 700 12px/1.4 var(--font-title); letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-2); }
.quick { display: flex; align-items: center; gap: 14px; padding: 12px 14px; color: var(--text); transition: border-color .15s, transform .15s; }
.quick:hover { color: #fff; border-color: var(--gold); transform: translateX(-2px); }
.quick-ico {
  width: 42px; height: 42px; flex-shrink: 0; display: grid; place-items: center;
  border-radius: 10px; background: rgba(242, 196, 0, .1); color: var(--gold); border: 1px solid rgba(242, 196, 0, .3);
}
.quick strong { display: block; font: 700 15px/1.2 var(--font-title); letter-spacing: 1px; text-transform: uppercase; }
.quick small { color: var(--text-2); font-size: 12px; }

/* ---------- grade ---------- */
.site-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) 300px; grid-template-areas: 'main side';
  gap: 26px; padding-top: 28px; padding-bottom: 48px;
}
.content { grid-area: main; min-width: 0; }
.sidebar-col { grid-area: side; display: flex; flex-direction: column; gap: 18px; }
.content {
  background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow);
}
.page-index .content { background: none; border: 0; padding: 0; box-shadow: none; }
.content > h1:first-child, .content > h2:first-child { margin-top: 0; }
.content h1 { padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.page-index .content h1 { border: 0; padding: 0; }
.content ul, .content ol { padding-left: 22px; }
.content li { margin-bottom: 4px; }
.panel { background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 24px; }

/* ---------- pagina inicial ---------- */
.banner {
  position: relative; display: flex; align-items: center; justify-content: center;
  min-height: 150px; margin-bottom: 30px; overflow: hidden;
  background-color: var(--panel-2); background-position: center; background-size: cover; background-repeat: no-repeat;
  border: 1px solid rgba(61, 139, 255, .45); border-radius: var(--radius);
  box-shadow: 0 0 24px rgba(61, 139, 255, .15), var(--shadow);
}
.banner::before { content: ''; position: absolute; inset: 0; background: radial-gradient(closest-side, rgba(5, 10, 20, .75), rgba(5, 10, 20, .15)); }
.banner-text { position: relative; text-align: center; }
.banner strong { display: block; font: 700 clamp(24px, 3.2vw, 34px)/1.1 var(--font-title); letter-spacing: 2px; text-transform: uppercase; color: #fff; text-shadow: 0 0 18px rgba(61, 139, 255, .8); }
.banner small { display: block; margin-top: 6px; font: 700 13px/1 var(--font-title); letter-spacing: 3px; text-transform: uppercase; color: var(--text-2); }
.banner:hover { border-color: var(--gold); }

.section { margin-bottom: 32px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section-head h2 {
  margin: 0; padding-left: 14px; position: relative;
  font-size: 22px; letter-spacing: 1.5px; text-transform: uppercase;
}
.section-head h2::before { content: ''; position: absolute; left: 0; top: 2px; bottom: 2px; width: 4px; border-radius: 2px; background: var(--gold); box-shadow: 0 0 10px rgba(242, 196, 0, .6); }
.section-head h2 em { font-style: normal; color: var(--cyan); }
.pager { display: flex; gap: 16px; font: 700 13px/1 var(--font-title); letter-spacing: 1px; text-transform: uppercase; }

.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.news-card {
  display: flex; flex-direction: column; overflow: hidden; color: var(--text);
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.news-card:hover { color: var(--text); border-color: rgba(61, 139, 255, .7); transform: translateY(-3px); box-shadow: 0 10px 28px rgba(0, 0, 0, .45), 0 0 18px var(--glow); }
.news-thumb { display: block; aspect-ratio: 16 / 9; background: var(--panel-2) center / cover no-repeat; border-bottom: 1px solid var(--line); }
.news-body { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px 14px; flex: 1; }
.news-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.news-meta time { font-size: 12px; color: var(--text-3); }
.news-body strong { font: 700 18px/1.2 var(--font-title); color: #fff; letter-spacing: .3px; }
.news-excerpt { font-size: 13px; color: var(--text-2); line-height: 1.5; flex: 1; }
.news-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; font: 700 13px/1 var(--font-title); letter-spacing: 1px; text-transform: uppercase; color: var(--gold); }
.chip {
  display: inline-block; padding: 3px 8px; border-radius: 4px;
  font: 700 11px/1.2 var(--font-title); letter-spacing: 1px; text-transform: uppercase;
  background: rgba(61, 139, 255, .16); color: #8fc0ff; border: 1px solid rgba(61, 139, 255, .45);
}
.chip-green { background: rgba(95, 211, 95, .14); color: #8fe88f; border-color: rgba(95, 211, 95, .45); }
.chip-cyan { background: rgba(95, 211, 255, .14); color: #9fe4ff; border-color: rgba(95, 211, 255, .45); }
.chip-red { background: rgba(224, 72, 72, .15); color: #ff9b9b; border-color: rgba(224, 72, 72, .45); }
.chip-gold { background: rgba(242, 196, 0, .14); color: var(--gold-2); border-color: rgba(242, 196, 0, .45); }

.feature-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.feature {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px;
  padding: 18px 10px 16px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .15s, box-shadow .15s;
}
.feature:hover { border-color: rgba(61, 139, 255, .7); box-shadow: 0 0 18px var(--glow); }
.feature-ico { color: #9fd0ff; margin-bottom: 6px; filter: drop-shadow(0 0 8px rgba(61, 139, 255, .6)); }
.feature-ico .ico { width: 34px; height: 34px; }
.feature strong { font: 700 14px/1.1 var(--font-title); letter-spacing: .5px; text-transform: uppercase; color: #fff; }
.feature small { font-size: 12px; color: var(--text-2); }

.explore-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.explore {
  position: relative; aspect-ratio: 16 / 10; overflow: hidden; display: flex; align-items: flex-end;
  background: var(--panel-2) center / cover no-repeat;
  border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .15s, transform .15s;
}
.explore::before { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(5, 10, 20, .92) 0%, rgba(5, 10, 20, .2) 60%, rgba(5, 10, 20, 0) 100%); }
.explore:hover { border-color: var(--gold); transform: translateY(-3px); }
.explore-text { position: relative; padding: 12px 14px; }
.explore strong { display: block; font: 700 16px/1.1 var(--font-title); letter-spacing: 1.2px; text-transform: uppercase; color: #fff; }
.explore small { font-size: 12px; color: var(--text-2); }

.back-link { display: inline-block; margin-bottom: 14px; font: 700 13px/1 var(--font-title); letter-spacing: 1px; text-transform: uppercase; }
.article h1 { font-size: 32px; margin: 10px 0 6px; }
.article-meta { color: var(--text-3); font-size: 13px; }
.article-body { font-size: 16px; line-height: 1.75; }
.news-img { width: 100%; border-radius: var(--radius-sm); margin: 10px 0; }
.empty { text-align: center; }

/* ---------- cartoes da lateral ---------- */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.card-title {
  margin: 0; padding: 13px 16px; font-size: 16px; text-transform: uppercase; letter-spacing: 1.5px;
  background: linear-gradient(90deg, rgba(16, 31, 62, .95), rgba(12, 24, 40, .6));
  border-bottom: 1px solid var(--line); border-left: 3px solid var(--gold);
}
.card-admin .card-title { border-left-color: var(--red); }
.card-body { padding: 14px 16px; }
.card-links { display: flex; justify-content: space-between; margin-top: 12px; font-size: 13px; }
.card-more { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 12px; font: 700 13px/1 var(--font-title); letter-spacing: 1px; text-transform: uppercase; }
.stack { display: grid; gap: 10px; }
.stack label { display: grid; gap: 5px; font-size: 13px; color: var(--text-2); }
.link-list { list-style: none; margin: 0; padding: 0; }
.link-list li { margin: 0; }
.link-list a { display: flex; align-items: center; justify-content: space-between; padding: 8px 10px; margin: 0 -10px; border-radius: var(--radius-sm); color: var(--text); }
.link-list a:hover { background: var(--panel-2); color: var(--gold); }
.link-list a.danger { color: #ff9b9b; }
.badge { min-width: 22px; padding: 1px 7px; border-radius: 999px; text-align: center; font-size: 12px; font-weight: 700; background: var(--line); color: var(--text-2); }
.badge-hot { background: var(--red); color: #fff; }
.search-form { display: flex; gap: 6px; }
.search-form input { flex: 1; min-width: 0; }
.search-form button { padding: 0 12px; }
.rank-list { list-style: none; margin: 0; padding: 0; }
.rank-list li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line-soft); margin: 0; }
.rank-list li:last-child { border-bottom: 0; }
.rank-list a { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); font-weight: 500; }
.rank-list a:hover { color: var(--gold); }
.rank-pos { width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; font: 700 14px/1 var(--font-title); background: var(--panel-2); color: var(--text-2); border: 1px solid var(--line); }
.rank-1 { background: var(--gold); color: var(--gold-ink); border-color: var(--gold-2); box-shadow: 0 0 10px rgba(242, 196, 0, .5); }
.rank-2 { background: #c9d3df; color: #1d2633; }
.rank-3 { background: #c9824a; color: #2a1606; }
.rank-lvl { font-size: 12px; color: var(--text-3); }
.info-list { list-style: none; margin: 0; padding: 0; }
.info-list li { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--line-soft); margin: 0; }
.info-list li:last-child { border-bottom: 0; }
.info-list span { color: var(--text-2); }
.info-list strong, .info-list strong a { color: #fff; }

/* ---------- formularios ---------- */
input[type=text], input[type=password], input[type=email], input[type=number], input[type=search],
select, textarea, .form-control, .search {
  width: 100%; padding: 10px 12px;
  background: var(--bg-2); color: var(--text);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  font: 14px/1.4 var(--font); transition: border-color .15s, box-shadow .15s;
}
input::placeholder, textarea::placeholder { color: var(--text-3); }
select { width: auto; max-width: 100%; }
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus, .form-control:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(242, 196, 0, .15); }
input[type=checkbox], input[type=radio] { accent-color: var(--gold); width: auto; }
form { margin: 0; }
label { color: var(--text-2); }
.content form input[type=text], .content form input[type=password], .content form input[type=email] { max-width: 420px; }
.g-recaptcha { margin: 10px 0; }

/* ---------- tabelas do Znote ---------- */
.content table {
  width: 100%; border-collapse: separate; border-spacing: 0; margin: 0 0 22px;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: 14px;
}
.content th, .content td { padding: 10px 14px; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--line-soft); }
.content tr:last-child td { border-bottom: 0; }
.content th, .content tr.yellow td, .content tr.yellow th {
  background: var(--panel-2); color: var(--gold);
  font: 700 14px/1.3 var(--font-title); text-transform: uppercase; letter-spacing: .8px; border-bottom: 1px solid var(--line);
}
.content tr.yellow a { color: #fff; }
.content tr.yellow a:hover { color: var(--gold-2); }
.content .table-striped tr:nth-child(even) td, .content table:not(#news) tr:not(.yellow):nth-child(even) td { background: rgba(16, 31, 62, .35); }
.content .table-hover tr:not(.yellow):hover td, .content .tbl-hover tr:not(.yellow):hover td { background: rgba(242, 196, 0, .05); }
.youtube { margin: 12px 0; }
.aspectratio { position: relative; padding-top: 56.25%; }
.aspectratio iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: var(--radius-sm); }
.profile_font { color: var(--text-2); }
.special { color: var(--gold); }
.forumReply, .postButton { margin: 12px 0; }
.avatar { border-radius: var(--radius-sm); }
.galleryImage { border-radius: var(--radius); border: 1px solid var(--line); }
pre, code { background: var(--bg-2); color: var(--text-2); border-radius: var(--radius-sm); }
pre { padding: 12px; overflow: auto; border: 1px solid var(--line); }
.admin-dump { padding-bottom: 30px; font-size: 12px; }

/* ---------- download ---------- */
.dl-hero {
  display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; padding: 24px; margin-bottom: 24px;
  background: linear-gradient(135deg, rgba(16, 31, 62, .9), rgba(10, 19, 32, .9)); border: 1px solid var(--line); border-radius: var(--radius);
}
.dl-hero img { width: 88px; height: 88px; }
.dl-hero h2 { margin: 0 0 4px; font-size: 26px; }
.dl-hero p { margin: 0 0 14px; color: var(--text-2); }
.dl-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 12px; font-size: 13px; color: var(--text-3); }
.steps { counter-reset: step; list-style: none; padding: 0 !important; display: grid; gap: 12px; margin: 0 0 24px; }
.steps li { counter-increment: step; position: relative; padding: 14px 16px 14px 58px; margin: 0; background: var(--bg-2); border: 1px solid var(--line-soft); border-radius: var(--radius); }
.steps li::before { content: counter(step); position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font: 700 15px/1 var(--font-title); background: var(--gold); color: var(--gold-ink); }
.steps strong { color: #fff; }
.req-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 24px; }
.req { padding: 14px 16px; background: var(--bg-2); border: 1px solid var(--line-soft); border-radius: var(--radius); }
.req span { display: block; font-size: 12px; color: var(--text-3); text-transform: uppercase; letter-spacing: 1px; }
.req strong { color: #fff; }
.faq details { background: var(--bg-2); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 0 16px; margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 14px 0; font-weight: 600; color: #fff; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: '+'; display: inline-block; width: 20px; color: var(--gold); font-weight: 700; }
.faq details[open] summary::before { content: '\2212'; }
.faq details p { color: var(--text-2); }

/* ---------- rodape ---------- */
.footer { border-top: 1px solid var(--line-soft); background: rgba(5, 10, 20, .95); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 28px; padding-top: 26px; padding-bottom: 26px; }
.footer-brand { display: flex; align-items: center; gap: 16px; }
.footer-brand img { height: 52px; width: auto; }
.footer-brand p { margin: 0; font-size: 13px; color: var(--text-2); }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 8px; border: 1px solid var(--line); color: var(--text-2); }
.footer-social a:hover { color: var(--gold); border-color: var(--gold); }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer-links a { color: var(--text-2); font-size: 14px; }
.footer-links a:hover { color: var(--gold); }
.to-top {
  position: fixed; right: 16px; bottom: 16px; z-index: 40; width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; background: var(--panel-2); color: var(--gold); border: 1px solid var(--line);
  font-size: 18px; opacity: 0; visibility: hidden; transition: .2s;
}
.to-top.show { opacity: 1; visibility: visible; }

/* ---------- telas menores ---------- */
@media (max-width: 1180px) {
  .status-pill { display: none; }
  .menu > li > a { padding-left: 9px; padding-right: 9px; font-size: 13px; }
  .feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1000px) {
  .menu-toggle { display: block; }
  .topbar-side { display: none; }
  .nav { position: absolute; top: 70px; left: 0; right: 0; background: var(--bg-2); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; display: none; }
  .nav.open { display: block; }
  .menu { flex-direction: column; }
  .menu > li > a { padding: 13px 10px; }
  .menu > li.active > a::after { display: none; }
  .has-sub > ul { position: static; opacity: 1; visibility: visible; transform: none; display: none; margin: 0 0 6px 12px; box-shadow: none; }
  .has-sub.sub-open > ul { display: block; }
  .hero-inner { grid-template-columns: 1fr; min-height: 0; gap: 26px; }
  .hero-side { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-box { grid-column: 1 / -1; }
  .site-grid { grid-template-columns: 1fr; grid-template-areas: 'main' 'side'; }
  .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .explore-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .content { padding: 18px; }
  .content table:not(#news) { display: block; overflow-x: auto; white-space: nowrap; }
  .dl-hero { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .brand img { height: 42px; }
  .hero-logo { width: 260px; }
  .hero p { font-size: 16px; }
  .hero-actions .btn-lg { width: 100%; }
  .hero-side { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .explore-grid { grid-template-columns: 1fr; }
  .section-head { flex-wrap: wrap; }
}

/* ---------- capturas raras ---------- */
.rare-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.rare {
  --c: var(--gold);
  display: flex; align-items: center; gap: 14px; padding: 14px 16px;
  background: linear-gradient(135deg, rgba(16, 31, 62, .9), rgba(8, 16, 29, .9));
  border: 1px solid var(--line); border-left: 3px solid var(--c); border-radius: var(--radius);
}
.rare-cyan { --c: var(--cyan); }
.rare-purple { --c: #b78cff; }
.rare-ico { width: 46px; height: 46px; flex-shrink: 0; display: grid; place-items: center; border-radius: 12px; color: var(--c); background: rgba(255, 255, 255, .04); border: 1px solid var(--line); }
.rare-ico .ico { width: 26px; height: 26px; filter: drop-shadow(0 0 6px currentColor); }
.rare-body { display: flex; flex-direction: column; min-width: 0; }
.rare-body small { font: 700 12px/1.2 var(--font-title); letter-spacing: 1.5px; text-transform: uppercase; color: var(--c); }
.rare-body strong { font: 700 19px/1.2 var(--font-title); color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rare-body span { font-size: 12px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- formularios extras ---------- */
.check { display: flex !important; align-items: center; gap: 8px; cursor: pointer; font-size: 13px; color: var(--text-2); }
.check input { margin: 0; }
.btn-sm { padding: 6px 10px; font-size: 13px; }
.alert { padding: 12px 16px; margin-bottom: 14px; border-radius: var(--radius); border: 1px solid; }
.alert-ok { background: rgba(95, 211, 95, .08); border-color: rgba(95, 211, 95, .4); color: #9fe89f; }
.alert-err { background: rgba(224, 72, 72, .08); border-color: rgba(224, 72, 72, .45); color: #ff9b9b; }
.pager-center { justify-content: center; flex-wrap: wrap; margin-top: 10px; }
.pager-center a { min-width: 34px; padding: 8px 10px; text-align: center; border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--text-2); }
.pager-center a.on, .pager-center a:hover { border-color: var(--gold); color: var(--gold); }
.ranking-table .rank-pos { width: 28px; height: 28px; }
.rank-n { background: var(--panel-2); }

/* ---------- painel codex ---------- */
.admin-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 18px; border-bottom: 1px solid var(--line); }
.admin-tabs a { padding: 10px 14px; font: 700 14px/1 var(--font-title); letter-spacing: 1px; text-transform: uppercase; color: var(--text-2); border-bottom: 3px solid transparent; margin-bottom: -1px; }
.admin-tabs a.on, .admin-tabs a:hover { color: var(--gold); border-bottom-color: var(--gold); }
.admin-cols { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 20px; align-items: start; }
.admin-form h2, .admin-list h2 { font-size: 19px; margin: 0 0 6px; }
.admin-form input[type=text], .admin-form input[type=number], .admin-form select, .admin-form textarea { max-width: none !important; width: 100%; }
.admin-form input[type=file] { color: var(--text-2); font-size: 13px; }
.admin-actions { display: flex; gap: 10px; margin-top: 4px; }
.admin-thumb { width: 100%; border-radius: var(--radius-sm); border: 1px solid var(--line); }
.icon-preview { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.icon-preview span { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 2px; border: 1px solid var(--line-soft); border-radius: var(--radius-sm); color: #9fd0ff; }
.icon-preview small { font-size: 10px; color: var(--text-3); text-align: center; }
.admin-item { display: flex; align-items: center; gap: 12px; padding: 10px; margin-bottom: 8px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.admin-item.off { opacity: .55; }
.admin-item-img { width: 72px; height: 44px; flex-shrink: 0; border-radius: var(--radius-sm); background: var(--panel-2) center / cover no-repeat; border: 1px solid var(--line); }
.admin-item-ico { width: 44px; height: 44px; flex-shrink: 0; display: grid; place-items: center; color: #9fd0ff; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.admin-item-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.admin-item-body strong { color: #fff; font-size: 14px; }
.admin-item-actions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.admin-item-actions form { display: flex; gap: 6px; }

@media (max-width: 1000px) {
  .rare-grid { grid-template-columns: 1fr; }
  .admin-cols { grid-template-columns: 1fr; }
}

/* ---------- loja ---------- */
.shop-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.shop-head h1 { margin-bottom: 6px; }
.shop-wallet { min-width: 170px; padding: 12px 16px; text-align: right; border: 1px solid rgba(242, 196, 0, .4); border-radius: var(--radius); background: rgba(242, 196, 0, .06); }
.shop-wallet small { display: block; font: 700 12px/1 var(--font-title); letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-2); }
.shop-wallet strong { display: block; font: 700 30px/1.2 var(--font-title); color: var(--gold); }
.shop-wallet a { font-size: 13px; }
.alert-info { background: rgba(61, 139, 255, .08); border-color: rgba(61, 139, 255, .4); color: #9fc8ff; }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.shop-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 16px 14px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .15s, box-shadow .15s; }
.shop-card:hover { border-color: rgba(61, 139, 255, .7); box-shadow: 0 0 18px var(--glow); }
.shop-pic { width: 84px; height: 84px; display: grid; place-items: center; margin-bottom: 4px; border-radius: 12px; background: var(--bg-2) center / contain no-repeat; border: 1px solid var(--line-soft); color: #9fd0ff; image-rendering: pixelated; }
.shop-pic .ico { width: 38px; height: 38px; }
.shop-card strong { font: 700 16px/1.2 var(--font-title); color: #fff; letter-spacing: .5px; }
.shop-card small { font-size: 12px; color: var(--text-2); min-height: 32px; }
.shop-price { font: 700 18px/1 var(--font-title); color: var(--gold); margin: 4px 0 6px; }
.shop-card form { width: 100%; margin-top: auto; }
.shop-card button[disabled] { background: var(--panel-2); color: var(--text-3); box-shadow: none; cursor: not-allowed; }
.shop-img { display: grid; place-items: center; color: #9fd0ff; background-size: contain !important; image-rendering: pixelated; }
.shop-thumb { max-width: 96px; image-rendering: pixelated; }
.admin-narrow { max-width: 460px; }
@media (max-width: 560px) { .shop-head { flex-direction: column; } .shop-wallet { text-align: left; width: 100%; } }
