/* Claude Tibia Server — tema "janela clássica": preto quente, ouro e serifa. */
:root {
  --bg: #0b0a09;
  --bg-2: #100e0c;
  --surface: #16130f;
  --surface-2: #1f1a14;
  --surface-3: #292218;
  --border: #3a2f1f;
  --border-strong: #5a4827;
  --field-border: #7d6a47;
  --text: #ece5d6;
  --muted: #a89f8d;
  --gold: #ffd75e;
  --gold-soft: #e9c669;
  --gold-dark: #b78e28;
  --gold-deep: #6e5416;
  --danger: #ff8a80;
  --ok: #6fdc98;
  --info: #8cc4ff;
  --radius: 6px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Cinzel", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
  --shadow: 0 1px 0 rgba(255, 215, 94, .05) inset, 0 10px 30px rgba(0, 0, 0, .45);
}

*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: dark; -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--text);
  font: 16px/1.6 var(--font);
  background-color: var(--bg);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 .85 0 0 0 0 .5 0 0 0 .035 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E"),
    radial-gradient(900px 420px at 50% -80px, rgba(183, 142, 40, .16), transparent 70%),
    linear-gradient(180deg, #0d0e12 0, var(--bg) 420px);
  background-repeat: repeat, no-repeat, no-repeat;
  overflow-wrap: break-word;
}
[hidden] { display: none !important; }
img { max-width: 100%; height: auto; }

a { color: var(--gold); text-decoration-color: rgba(255, 215, 94, .45); text-underline-offset: .18em; transition: color .15s; }
a:hover { color: #fff3c4; text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 3px; }
::selection { background: var(--gold-dark); color: #fff; }

code {
  font-family: var(--font-mono); font-size: .88em;
  background: var(--surface-3); border: 1px solid var(--border);
  padding: .08em .4em; border-radius: 4px; overflow-wrap: anywhere;
}
strong { color: #fff6dc; font-weight: 600; }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.2; font-weight: 700; letter-spacing: .02em; }
h1 {
  font-size: clamp(1.7rem, 4.5vw, 2.4rem);
  margin: 0 0 .9em; padding-bottom: .5em;
  color: var(--gold);
  text-shadow: 0 2px 0 rgba(0, 0, 0, .7);
  background: linear-gradient(90deg, var(--gold-dark), rgba(183, 142, 40, 0) 70%) left bottom / 100% 1px no-repeat;
}
h2 { font-size: 1.08rem; margin: 0 0 .9em; color: var(--gold-soft); letter-spacing: .05em; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.page { padding-top: 32px; padding-bottom: 64px; flex: 1; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.lead { font-size: 1.1rem; color: #cfc6b3; max-width: 62ch; margin-bottom: 1.4em; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--gold); color: #1b1505; padding: 8px 14px; border-radius: 4px; font-weight: 600; }
.skip-link:focus { top: 8px; color: #1b1505; }

/* ---------- Cabeçalho ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(9, 8, 7, .94);
  border-bottom: 1px solid var(--border-strong);
  box-shadow: 0 1px 0 #000, 0 8px 24px rgba(0, 0, 0, .5);
}
@supports (backdrop-filter: blur(8px)) {
  .site-header { background: rgba(9, 8, 7, .82); backdrop-filter: blur(10px); }
}
.header-row { display: flex; align-items: center; gap: 8px 20px; min-height: 64px; flex-wrap: wrap; }
.brand {
  display: inline-flex; align-items: center; gap: 10px; flex: none;
  color: var(--gold); text-decoration: none; white-space: nowrap;
  font: 700 1rem/1 var(--font-display); letter-spacing: .04em;
}
.brand img { display: block; border-radius: 6px; }
.brand:hover { color: #fff3c4; }

.nav-toggle { position: absolute; width: 1px; height: 1px; opacity: 0; margin: 0; }
.nav-toggle-label { display: none; }
.nav-panel { display: flex; flex: 1; align-items: center; gap: 16px; min-width: 0; }
.main-nav, .account-nav { display: flex; gap: 2px; align-items: center; }
.main-nav { flex: 1; }
.account-nav { gap: 6px; }
.main-nav a, .account-nav a:not(.button), .link-button {
  position: relative; color: #d8d0bf; text-decoration: none;
  padding: 8px 10px; border-radius: 4px; font: 500 .92rem/1.2 var(--font);
  transition: color .15s, background-color .15s;
}
.main-nav a:hover, .account-nav a:not(.button):hover, .link-button:hover { background: var(--surface-2); color: #fff; }
.main-nav a.active, .account-nav a.active:not(.button) { color: var(--gold); }
.main-nav a.active::after, .account-nav a.active:not(.button)::after {
  content: ""; position: absolute; left: 10px; right: 10px; bottom: 2px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.link-button { background: none; border: 0; cursor: pointer; }
.inline-form { display: inline; margin: 0; }

@media (max-width: 1250px) {
  .nav-toggle-label {
    display: inline-flex; align-items: center; gap: 8px; margin-left: auto;
    min-height: 40px; padding: 0 12px; cursor: pointer; user-select: none;
    color: var(--gold); font: 600 .9rem var(--font);
    border: 1px solid var(--border-strong); border-radius: 4px; background: var(--surface);
  }
  .nav-toggle-icon, .nav-toggle-icon::before, .nav-toggle-icon::after {
    display: block; width: 18px; height: 2px; background: currentColor; border-radius: 1px;
    transition: transform .2s, opacity .2s;
  }
  .nav-toggle-icon { position: relative; }
  .nav-toggle-icon::before, .nav-toggle-icon::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-icon::before { top: -6px; }
  .nav-toggle-icon::after { top: 6px; }
  .nav-toggle:checked + .nav-toggle-label .nav-toggle-icon { background: transparent; }
  .nav-toggle:checked + .nav-toggle-label .nav-toggle-icon::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle:checked + .nav-toggle-label .nav-toggle-icon::after { transform: translateY(-6px) rotate(-45deg); }
  .nav-toggle:focus-visible + .nav-toggle-label { outline: 2px solid var(--gold); outline-offset: 2px; }

  .nav-panel {
    display: none; flex: 0 0 100%; flex-direction: column; align-items: stretch; gap: 8px;
    padding: 8px 0 16px; border-top: 1px solid var(--border);
    max-height: calc(100vh - 64px); overflow-y: auto;
  }
  .nav-toggle:checked ~ .nav-panel { display: flex; }
  .main-nav { flex-direction: column; align-items: stretch; flex: none; }
  .main-nav a { padding: 12px 10px; font-size: 1rem; border-bottom: 1px solid rgba(58, 47, 31, .6); border-radius: 0; }
  .main-nav a.active::after { left: 0; right: auto; top: 10px; bottom: 10px; width: 2px; height: auto; background: var(--gold); }
  .account-nav { flex-wrap: wrap; padding-top: 8px; gap: 8px; }
  .account-nav a:not(.button), .link-button { padding: 10px 12px; font-size: 1rem; border: 1px solid var(--border); }
  .account-nav a.active:not(.button)::after { display: none; }
}
@media (max-width: 400px) {
  .brand { font-size: .88rem; gap: 8px; }
  .nav-toggle-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .nav-toggle-label { padding: 0 11px; }
}

/* ---------- Botões ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; padding: 9px 20px;
  font: 600 .98rem/1.2 var(--font); letter-spacing: .01em; text-decoration: none; text-align: center;
  color: #1b1505; cursor: pointer;
  background: linear-gradient(180deg, #ffe48e 0%, #ffd75e 45%, #d6a637 100%);
  border: 1px solid #7a5d16; border-radius: 4px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), inset 0 -1px 0 rgba(0, 0, 0, .25), 0 2px 0 #000, 0 6px 16px rgba(0, 0, 0, .4);
  transition: filter .15s, transform .1s, background-color .15s, color .15s;
}
.button:hover { color: #1b1505; filter: brightness(1.08); }
.button:active { transform: translateY(1px); }
.button:disabled, .button[disabled] { opacity: .5; cursor: not-allowed; filter: grayscale(.5); transform: none; }
.button-small { min-height: 34px; padding: 5px 13px; font-size: .88rem; }
.button-large { min-height: 50px; padding: 12px 26px; font-size: 1.05rem; }
.button-ghost {
  background: rgba(255, 215, 94, .04); color: var(--gold);
  border-color: var(--gold-dark);
  box-shadow: inset 0 1px 0 rgba(255, 215, 94, .08), 0 2px 0 #000;
}
.button-ghost:hover { background: rgba(255, 215, 94, .12); color: #fff3c4; filter: none; }

/* ---------- Cartões e grades ---------- */
.card, .status-card, .package {
  position: relative;
  background: linear-gradient(180deg, var(--surface-2) 0, var(--surface) 90px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card { padding: 22px; margin-bottom: 20px; min-width: 0; }
.card::before, .status-card::before {
  content: ""; position: absolute; left: 14px; right: 14px; top: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dark), transparent);
}
.card > h2:first-child, .card > h2 {
  padding-bottom: .7em; border-bottom: 1px solid var(--border);
}
.card > :last-child { margin-bottom: 0; }
.card-more { margin-top: 1em; font-weight: 500; }

.grid-3, .grid-4, .split { display: grid; gap: 20px; margin-bottom: 20px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); }
.split { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid-3 > .card, .grid-4 > .card, .split > .card { margin-bottom: 0; }
.narrow { max-width: 480px; margin: 0 auto; }

/* ---------- Home ---------- */
.hero {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: center;
  padding: clamp(28px, 6vw, 64px) clamp(20px, 5vw, 56px);
  margin-bottom: 24px;
  border: 1px solid var(--border-strong); border-radius: var(--radius);
  background:
    radial-gradient(620px 300px at 22% 0, rgba(255, 215, 94, .16), transparent 70%),
    radial-gradient(500px 300px at 100% 100%, rgba(120, 60, 20, .18), transparent 70%),
    linear-gradient(180deg, #17130d, #0e0c0a);
  box-shadow: inset 0 0 0 1px #000, inset 0 0 0 2px rgba(255, 215, 94, .07), 0 20px 50px rgba(0, 0, 0, .55);
}
.hero::before, .hero::after {
  content: ""; position: absolute; width: 26px; height: 26px; pointer-events: none;
  border: 2px solid var(--gold-dark); opacity: .8;
}
.hero::before { left: 8px; top: 8px; border-right: 0; border-bottom: 0; }
.hero::after { right: 8px; bottom: 8px; border-left: 0; border-top: 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 14px;
  color: var(--gold-soft); text-transform: uppercase; letter-spacing: .22em; font-size: .78rem; font-weight: 600;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--gold-dark); }
.hero h1 {
  font-size: clamp(2rem, 6.4vw, 3.6rem); line-height: 1.08; margin: 0 0 .45em; padding: 0;
  background: none; color: var(--gold);
  text-shadow: 0 2px 0 #000, 0 0 34px rgba(255, 215, 94, .22);
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero h1 {
    background: linear-gradient(180deg, #fff0b8 0%, #ffd75e 48%, #c2952c 100%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
    text-shadow: none; filter: drop-shadow(0 2px 0 #000);
  }
}
.hero .lead { font-size: clamp(1.02rem, 2.2vw, 1.2rem); margin-bottom: 0; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

.status-card { padding: 24px; text-align: center; background: linear-gradient(180deg, rgba(31, 26, 20, .95), rgba(16, 14, 12, .95)); border-color: var(--border-strong); }
.status-card p { margin: 0 0 .35em; }
.status-card > :last-child { margin-bottom: 0; }
.status-title { font: 700 .78rem var(--font-display); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px !important; }
.big-number {
  font: 700 3rem/1.1 var(--font-display); margin: 0 0 .1em; color: var(--gold);
  font-variant-numeric: tabular-nums lining-nums; text-shadow: 0 2px 0 #000;
}
.status-dot {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: .9rem; letter-spacing: .04em;
}
.status-dot::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--muted); }
.status-dot.online { color: var(--ok); }
.status-dot.offline { color: var(--danger); }
.status-dot.online::before { background: var(--ok); box-shadow: 0 0 0 3px rgba(111, 220, 152, .18), 0 0 10px rgba(111, 220, 152, .7); animation: pulse 2.4s ease-in-out infinite; }
.status-dot.offline::before { background: var(--danger); box-shadow: 0 0 0 3px rgba(255, 138, 128, .15); }
p.status-dot { display: flex; justify-content: flex-start; }
.status-card p.status-dot { justify-content: center; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(111, 220, 152, .06), 0 0 14px rgba(111, 220, 152, .5); } }

.feature { padding-top: 26px; }
.feature-icon {
  display: block; width: 46px; height: 46px; padding: 8px; margin-bottom: 16px;
  color: var(--gold); border: 1px solid var(--border-strong); border-radius: 4px;
  background: linear-gradient(180deg, #2a2216, #17130d);
  box-shadow: inset 0 1px 0 rgba(255, 215, 94, .12), 0 2px 0 #000;
}
.feature p { color: #cfc6b3; }

.top-list, .steps { list-style: none; padding: 0; margin: 0 0 1em; }
.top-list { counter-reset: rank; }
.top-list li {
  counter-increment: rank; display: flex; align-items: baseline; gap: 4px 12px; flex-wrap: wrap;
  padding: 9px 0; border-bottom: 1px solid var(--border);
}
.top-list li:last-child { border-bottom: 0; }
.top-list li::before {
  content: counter(rank); flex: none; width: 1.6em; text-align: center;
  font: 700 1rem var(--font-display); color: var(--muted);
}
.top-list li:nth-child(1)::before { color: var(--gold); }
.top-list li:nth-child(2)::before { color: #d5d5dc; }
.top-list li:nth-child(3)::before { color: #d99a66; }
.top-list a { font-weight: 600; text-decoration: none; }
.top-list a:hover { text-decoration: underline; }
.top-list .muted { margin-left: auto; font-size: .88rem; font-variant-numeric: tabular-nums; }

.steps { counter-reset: step; }
.steps li { counter-increment: step; position: relative; min-height: 34px; padding: 4px 0 4px 48px; margin-bottom: 14px; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 34px; height: 34px; display: grid; place-items: center;
  font: 700 1rem var(--font-display); color: var(--gold);
  border: 1px solid var(--gold-dark); border-radius: 50%;
  background: radial-gradient(circle at 50% 30%, #3a2e16, #17130d);
  box-shadow: 0 2px 0 #000;
}

/* ---------- Listas de dados ---------- */
.facts { display: grid; grid-template-columns: auto minmax(0, 1fr); margin: 0; }
.facts dt, .facts dd { padding: 8px 0; border-bottom: 1px dashed var(--border); }
.facts dt { color: var(--muted); padding-right: 16px; }
.facts dd { margin: 0; text-align: right; font-weight: 500; font-variant-numeric: tabular-nums; }
.facts dt:last-of-type, .facts dd:last-of-type { border-bottom: 0; }
.list { list-style: none; padding: 0; margin: 0; }
.list li { padding: 10px 0; border-bottom: 1px solid var(--border); }
.list li:last-child { border-bottom: 0; }

/* ---------- Tabelas ---------- */
.table-wrap {
  overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%;
  border: 1px solid var(--border); border-radius: 4px; background: var(--bg-2);
  scrollbar-color: var(--border-strong) transparent;
}
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th, .table td { padding: 8px 12px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: middle; }
.table thead th {
  background: linear-gradient(180deg, #2a2216, #1c1710);
  color: var(--gold-soft); font: 600 .74rem var(--font); letter-spacing: .08em; text-transform: uppercase;
  white-space: nowrap; border-bottom: 1px solid var(--border-strong);
}
.table tbody tr:nth-child(even) { background: rgba(255, 255, 255, .018); }
.table tbody tr:hover { background: rgba(255, 215, 94, .06); }
.table tbody tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; }
.table td a { font-weight: 600; text-decoration: none; }
.table td a:hover { text-decoration: underline; }
.table td code { white-space: nowrap; }
.table td .inline-form .button { white-space: nowrap; }
.table-rank td:first-child, .table-rank th:first-child { width: 3.5em; color: var(--muted); }
.table-rank tbody tr:nth-child(1) td:first-child { color: var(--gold); font-weight: 700; }
.table-rank tbody tr:nth-child(2) td:first-child { color: #d5d5dc; font-weight: 700; }
.table-rank tbody tr:nth-child(3) td:first-child { color: #d99a66; font-weight: 700; }

/* ---------- Formulários ---------- */
label { font-weight: 600; font-size: .92rem; }
input:not([type="radio"]):not([type="checkbox"]):not([type="hidden"]), select, textarea {
  display: block; width: 100%; min-height: 44px;
  background: #0d0b09; color: var(--text);
  border: 1px solid var(--field-border); border-radius: 4px;
  padding: 9px 12px; font: inherit;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, .5);
  transition: border-color .15s, box-shadow .15s;
}
input::placeholder, textarea::placeholder { color: #8f8777; opacity: 1; }
input:not([type="radio"]):not([type="checkbox"]):hover, select:hover, textarea:hover { border-color: #a08a5e; }
input:not([type="radio"]):not([type="checkbox"]):focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold);
}
input:disabled, select:disabled, textarea:disabled { opacity: .5; cursor: not-allowed; }
input[type="radio"], input[type="checkbox"] { width: 18px; height: 18px; margin: 0; flex: none; accent-color: var(--gold); }
select { appearance: auto; }
textarea { resize: vertical; }

.form { padding: 26px 24px; }
.form label { display: block; margin: 16px 0 6px; }
.form > label:first-of-type { margin-top: 0; }
.form label.check { font-weight: 400; font-size: .95rem; display: block; margin-top: 20px; }
.form label.check input { vertical-align: -3px; margin-right: 8px; }
.form .button { margin-top: 22px; width: 100%; min-height: 48px; }
.hint { color: var(--muted); font-size: .84rem; margin: 6px 0 0; }
.radio-row { border: 0; padding: 0; margin: 16px 0 0; display: flex; gap: 8px 24px; flex-wrap: wrap; min-width: 0; }
.radio-row legend { font-weight: 600; font-size: .92rem; margin-bottom: 6px; padding: 0; }
.radio-row label { display: inline-flex; gap: 8px; align-items: center; font-weight: 400; font-size: .95rem; margin: 0; min-height: 32px; }
.narrow > h1 + .muted { margin-top: -.6em; }
.narrow > .muted.small { text-align: center; margin-top: 16px; font-size: .92rem; }

.filters, .search {
  display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 20px;
  padding: 14px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
}
.filters label { display: grid; gap: 6px; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); flex: 1 1 180px; max-width: 260px; }
.filters select { font-size: 1rem; letter-spacing: 0; text-transform: none; }
.filters .button { min-height: 44px; padding: 9px 20px; font-size: .95rem; }
.search input { flex: 1 1 200px; width: auto !important; }
.search .button { min-height: 44px; }

/* ---------- Avisos, etiquetas, painel ---------- */
.notice {
  border: 1px solid var(--border-strong); border-left-width: 4px; border-radius: 4px;
  padding: 12px 16px; margin: 0 0 18px; background: var(--surface-2); color: var(--text);
}
.notice ul { margin: 0; padding-left: 1.2em; }
.notice-success { border-color: #2f7a4b; border-left-color: var(--ok); background: #11241a; }
.notice-error { border-color: #8a3434; border-left-color: var(--danger); background: #2a1313; }
.notice-info { border-color: #2d5a8a; border-left-color: var(--info); background: #111e2c; }

.tag {
  display: inline-block; font-size: .74rem; font-weight: 600; line-height: 1.5; padding: 1px 8px; border-radius: 3px;
  background: var(--surface-3); border: 1px solid var(--border-strong); color: #d8d0bf; white-space: nowrap;
}
.tag-danger { color: var(--danger); border-color: #8a3434; background: #2a1313; }
.tag-ok { color: var(--ok); border-color: #2f7a4b; background: #11241a; }

.subnav { display: flex; gap: 4px; margin-bottom: 22px; flex-wrap: wrap; border-bottom: 1px solid var(--border-strong); }
.subnav a {
  padding: 9px 14px; margin-bottom: -1px; text-decoration: none; font-weight: 500; font-size: .92rem;
  color: #d8d0bf; background: var(--surface); border: 1px solid var(--border); border-bottom-color: var(--border-strong);
  border-radius: 4px 4px 0 0;
}
.subnav a:hover { color: #fff; background: var(--surface-2); }
.subnav a.active { color: var(--gold); background: var(--bg); border-color: var(--border-strong); border-bottom-color: var(--bg); }
.stat { text-align: center; padding: 18px 14px; }
.stat .big-number { font-size: 2.2rem; }
.stat .muted { font-size: .85rem; }

/* ---------- Doações ---------- */
.packages { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 16px; margin: 20px 0 24px; }
.package {
  display: grid; gap: 4px; padding: 20px 18px 18px; cursor: pointer; font-weight: 400;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.package:hover { border-color: var(--gold-dark); transform: translateY(-2px); }
.package input { position: absolute; top: 14px; right: 14px; }
.package:has(input:checked) {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold), 0 0 24px rgba(255, 215, 94, .16), var(--shadow);
  background: linear-gradient(180deg, #2c2414 0, var(--surface) 110px);
}
.package:has(input:focus-visible) { outline: 2px solid var(--gold); outline-offset: 3px; }
.package:has(input:disabled) { cursor: not-allowed; opacity: .6; transform: none; }
.package-coins { font: 700 1.7rem/1.15 var(--font-display); color: var(--gold); font-variant-numeric: tabular-nums lining-nums; padding-right: 26px; }
.package-coins small { display: block; margin-top: 4px; font: 500 .74rem var(--font); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.package-price { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); font-size: 1.1rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.donate-form > label { display: block; margin: 0 0 6px; }
.donate-form > input { max-width: 420px; margin-bottom: 16px; }

.pay { text-align: center; }
.pay label { display: block; margin: 16px 0 6px; text-align: left; }
.qr { background: #fff; padding: 10px; border-radius: 6px; margin: 16px auto; display: block; border: 1px solid var(--gold-dark); }
.pay textarea { font-family: var(--font-mono); font-size: .8rem; margin: 0 0 12px; word-break: break-all; }
.pay #pay-state { margin: 16px 0 0; }

/* ---------- Texto longo ---------- */
.prose {
  max-width: 78ch; padding: 8px 24px 20px;
  background: linear-gradient(180deg, var(--surface-2) 0, var(--surface) 90px);
  border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
}
.prose h2 { margin: 1.5em 0 .7em; padding-bottom: .5em; border-bottom: 1px solid var(--border); }
.prose ul { padding-left: 1.2em; margin: 0; }
.prose li { margin-bottom: .55em; color: #d8d0bf; }
.prose li::marker { color: var(--gold-dark); }

/* ---------- Rodapé ---------- */
.site-footer { border-top: 1px solid var(--border-strong); background: #080706; color: var(--muted); font-size: .88rem; }
.footer-row { display: flex; justify-content: space-between; align-items: center; gap: 16px 32px; flex-wrap: wrap; padding-top: 22px; padding-bottom: 22px; }
.footer-brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.footer-brand img { flex: none; border-radius: 5px; opacity: .9; }
.footer-brand p { margin: 0; }
.footer-title { font: 700 .92rem var(--font-display); letter-spacing: .05em; color: var(--gold-soft); }
.footer-nav { display: flex; gap: 4px 18px; flex-wrap: wrap; }
.footer-nav a { color: #d8d0bf; text-decoration: none; padding: 4px 0; }
.footer-nav a:hover { color: var(--gold); text-decoration: underline; }

/* ---------- Telas pequenas ---------- */
@media (max-width: 860px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}
@media (max-width: 520px) {
  .page { padding-top: 22px; padding-bottom: 44px; }
  .card { padding: 18px 16px; }
  .form { padding: 20px 16px; }
  .prose { padding: 4px 16px 16px; }
  .hero-actions .button { flex: 1 1 100%; }
  .table th, .table td { padding: 7px 10px; }
  .filters label { max-width: none; }
  .filters .button, .search .button { flex: 1 1 100%; }
  .top-list .muted { margin-left: calc(1.6em + 12px); flex-basis: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .package:hover, .button:active { transform: none; }
}

/* Sugestões e reports */
.community-heading { display:flex; align-items:center; justify-content:space-between; gap:24px; margin-bottom:24px; }
.community-heading h1 { margin:0 0 10px; }
.community-heading .button { flex-shrink:0; }
.community-heading .eyebrow { color:var(--gold); text-transform:uppercase; letter-spacing:.15em; font-size:.75rem; margin:0 0 8px; }
.community-heading p { margin-bottom:0; }
.community-filters { display:flex; flex-wrap:wrap; gap:8px; align-items:center; margin-bottom:20px; }
.community-filters > a { padding:8px 16px; border:1px solid var(--border); border-radius:var(--radius); text-decoration:none; color:var(--muted); }
.community-filters > a.selected { border-color:var(--gold-dark); color:var(--gold); background:var(--surface-2); }
.community-filters > span { margin-left:auto; }
.community-note { padding:14px 18px; border-left:2px solid var(--gold-dark); background:var(--surface); }
.community-topic-preview h2 { margin:14px 0 10px; overflow-wrap:anywhere; }
.community-topic-preview h2 a { text-decoration:none; }
.community-excerpt { color:var(--muted); overflow-wrap:anywhere; margin:0 0 18px; }
.community-meta { display:flex; align-items:center; gap:10px 18px; flex-wrap:wrap; color:var(--muted); font-size:.82rem; }
.community-kind { padding:3px 9px; border:1px solid var(--border-strong); border-radius:4px; color:var(--gold); background:var(--surface-2); }
.community-kind--report { color:var(--danger); border-color:#64392e; }
.community-editor { max-width:860px; margin:0 auto; }
.community-post h1 { margin:22px 0; overflow-wrap:anywhere; }
.community-body { white-space:pre-wrap; overflow-wrap:anywhere; line-height:1.8; }
.community-reply .community-meta { margin-bottom:16px; }
.community-author { font-weight:600; }
.community-reply:target { border-color:var(--gold); }
.community-pagination, .community-actions { display:flex; align-items:center; flex-wrap:wrap; gap:18px; margin:24px 0; }
.community-empty { text-align:center; padding:48px 22px; }
#respostas, #responder, .community-reply { scroll-margin-top:90px; }
@media (max-width:600px) { .community-heading { align-items:flex-start; flex-direction:column; gap:18px; } .community-filters > span { width:100%; margin-left:0; } }
