:root {
  color-scheme: dark;
  --bg: #0f131c;            /* fundo da página (escuro) */
  --surface: #171d29;       /* cards / linhas */
  --surface-2: #1f2733;     /* campos / zonas suaves */
  --surface-3: #28313f;     /* hover */
  --header: #0c1119;        /* barra de topo */
  --header-2: #141b27;
  --line: #28313f;
  --line-2: #3a4556;
  --text: #e7ebf3;
  --muted: #94a0b6;
  --blue: #3b82f6;
  --blue-2: #2f6bd8;
  --green: #22c55e;
  --green-2: #19a64c;
  --gold: #f5a623;
  --red: #ef4759;
  --cyan: #38bdf8;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  --shadow-2: 0 8px 26px rgba(0, 0, 0, 0.5);
  --mono: ui-monospace, "Cascadia Code", Consolas, monospace;
  --sans: "Segoe UI", system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
body {
  margin: 0; min-height: 100vh; color: var(--text); font-family: var(--sans);
  background: var(--bg) radial-gradient(1200px 360px at 50% -120px, rgba(59, 130, 246, 0.1), transparent 70%) no-repeat;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { color: var(--text); }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.hidden { display: none; }
.hp { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; opacity: 0; }
hr { border: 0; border-top: 1px solid var(--line); margin: 18px 0; }

/* ---------- header / nav ---------- */
.site-header { background: linear-gradient(180deg, var(--header-2), var(--header)); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); position: sticky; top: 0; z-index: 50; }
.header-inner { max-width: 1440px; margin: 0 auto; padding: 0 28px; height: 60px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 800; color: #fff; }
.brand:hover { text-decoration: none; }
.brand span { color: var(--gold); }
.brand .logo { height: 36px; width: auto; }
.brand .hex { color: var(--gold); }
nav { display: flex; align-items: center; gap: 16px; }
.navlink { font-size: 14px; font-weight: 600; color: rgba(255, 255, 255, 0.74); padding: 4px 2px; }
.navlink:hover, .navlink.active { color: #fff; text-decoration: none; }
.nav-profile { display: inline-flex; align-items: center; gap: 9px; padding: 5px 13px 5px 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.12); transition: background 0.15s, border-color 0.15s; }
.nav-profile:hover, .nav-profile.active { background: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.28); text-decoration: none; }
.nav-head { width: 30px; height: 30px; flex-shrink: 0; border-radius: 8px; image-rendering: pixelated; background: rgba(255, 255, 255, 0.12); }
.nav-head-ph { display: inline-flex; align-items: center; justify-content: center; font-size: 15px; }
.nav-name { font-size: 14px; font-weight: 700; color: #fff; max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.navbadge { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; color: #4a3100; background: var(--gold); padding: 2px 7px; border-radius: 5px; }
.nav-logout { height: 32px; padding: 0 13px; border-radius: 9px; border: 1px solid rgba(255, 255, 255, 0.18); background: transparent; color: rgba(255, 255, 255, 0.82); cursor: pointer; font-size: 13px; font-weight: 600; }
.nav-logout:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }

/* ---------- layout ---------- */
.wrap { max-width: 1440px; margin: 0 auto; padding: 22px 28px 48px; }
.fwrap { width: 100%; }
.acc-wrap { max-width: 720px; margin: 0 auto; }
.site-footer { text-align: center; color: var(--muted); font-size: 12px; padding: 26px 0 36px; }

/* ---------- botões ---------- */
.btn { height: 40px; padding: 0 18px; border-radius: 10px; border: 0; background: var(--blue); color: #fff; font-size: 14px; font-weight: 700; cursor: pointer; box-shadow: 0 2px 0 var(--blue-2); }
.btn:hover { background: var(--blue-2); }
.btn.sm { height: 34px; padding: 0 16px; font-size: 13px; border-radius: 9px; }
.btn.block { width: 100%; margin-top: 10px; }
.ghost { height: 38px; padding: 0 15px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--muted); cursor: pointer; font-size: 13px; font-weight: 600; }
.ghost:hover { color: var(--text); border-color: var(--blue); }
.danger { height: 38px; padding: 0 15px; border-radius: 10px; border: 1px solid rgba(239, 71, 89, 0.45); background: rgba(239, 71, 89, 0.08); color: #ff8a97; cursor: pointer; font-size: 13px; font-weight: 600; }
.danger:hover { background: rgba(239, 71, 89, 0.16); }

/* ---------- inputs ---------- */
label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 12px; }
.hint { color: var(--muted); font-weight: 400; }
input, select, textarea, .input { width: 100%; height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text); font-size: 14px; font-family: var(--sans); }
textarea, .ta { height: auto; padding: 10px 12px; resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.22); }
select option { background: var(--surface-2); color: var(--text); }

/* ---------- cards ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px 24px; margin-bottom: 18px; box-shadow: var(--shadow); }
.card h2 { margin: 0 0 16px; font-size: 19px; }
.card h3 { margin: 0 0 10px; font-size: 15px; }
.row { display: flex; gap: 14px; padding: 8px 0; font-size: 14px; }
.row .k { color: var(--muted); min-width: 90px; }
.account .row .v { display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.badge { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 6px; margin-left: 6px; }
.badge.ok { color: #7ee2a8; background: rgba(34, 197, 94, 0.16); }
.badge.warn { color: #ffce7a; background: rgba(245, 166, 35, 0.16); }

/* ---------- auth ---------- */
.auth { max-width: 420px; margin: 28px auto 0; }
.tabs { display: flex; gap: 6px; margin-bottom: 18px; }
.tab { flex: 1; padding: 9px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--muted); cursor: pointer; font-size: 14px; font-weight: 600; }
.tab.active { background: var(--blue); color: #fff; border-color: var(--blue); }
.pane { display: flex; flex-direction: column; gap: 6px; }
.pane label { margin-bottom: 6px; }
.msg { font-size: 13px; min-height: 18px; }
.msg.ok { color: #7ee2a8; } .msg.err { color: #ff8a97; }
.bn { padding: 12px 16px; border-radius: 12px; margin-bottom: 18px; font-size: 14px; }
.bn.ok { background: rgba(34, 197, 94, 0.12); border: 1px solid rgba(34, 197, 94, 0.3); color: #7ee2a8; }
.bn.err { background: rgba(239, 71, 89, 0.1); border: 1px solid rgba(239, 71, 89, 0.3); color: #ff8a97; }

/* ---------- conta / vínculo ---------- */
.codecard { margin-top: 14px; background: var(--surface-2); border: 1px dashed var(--line-2); border-radius: 12px; padding: 16px; text-align: center; }
.code { font-family: var(--mono); font-size: 30px; font-weight: 800; letter-spacing: 6px; color: var(--cyan); }
.codecard p { margin: 10px 0 0; font-size: 13px; color: var(--muted); }
code { font-family: var(--mono); background: var(--surface-2); padding: 1px 6px; border-radius: 5px; color: var(--cyan); border: 1px solid var(--line); }
.mc-linked { display: flex; align-items: center; gap: 14px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.mc-head { width: 64px; height: 64px; flex-shrink: 0; border-radius: 10px; image-rendering: pixelated; background: var(--surface-3); border: 1px solid var(--line-2); box-shadow: var(--shadow); }
.tk-author .mc-head { width: 48px; height: 48px; }
.mc-info { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.mc-nick { font-family: var(--mono); font-size: 18px; font-weight: 800; color: var(--text); letter-spacing: 0.3px; word-break: break-all; }
.tk-author .mc-nick { font-size: 15px; }
.mc-sub { display: flex; align-items: center; gap: 6px; }
.mc-sub .badge { margin-left: 0; }
.link p { margin: 0 0 12px; }

/* ---------- hero do índice ---------- */
.hero-slim { position: relative; width: 100vw; margin: -22px calc(50% - 50vw) 22px; min-height: 150px; display: flex; align-items: center; justify-content: center; text-align: center; border-bottom: 1px solid var(--line);
  background: url(/img/banner.png) center/cover no-repeat, linear-gradient(120deg, #122046, #0e1626 60%, #102a22); }
.hero-slim::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 11, 20, 0.45), rgba(8, 11, 20, 0.72)); }
.hs-inner { position: relative; z-index: 2; padding: 28px 20px; }
.hs-inner h1 { font-size: 34px; margin: 0 0 6px; color: #fff; letter-spacing: -0.5px; text-shadow: 0 3px 16px rgba(0, 0, 0, 0.5); }
.hs-inner p { font-size: 14px; margin: 0; color: rgba(255, 255, 255, 0.86); }

/* ---------- breadcrumb ---------- */
.breadcrumb { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; font-size: 14px; font-weight: 600; }
.breadcrumb a { color: var(--gold); }
.breadcrumb a:hover { color: #ffc35a; text-decoration: none; }
.bc-sep { color: var(--muted); }
.bc-cur { color: var(--muted); font-weight: 600; }

/* ---------- layout do fórum ---------- */
.forum-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 22px; align-items: start; }
.forum-main { min-width: 0; }
.forum-side { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 76px; }
@media (max-width: 900px) { .forum-layout { grid-template-columns: 1fr; } .forum-side { position: static; flex-direction: column; } }

/* sidebar */
.side-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; box-shadow: var(--shadow); }
.side-card h3 { margin: 0 0 10px; font-size: 14px; }
.info-card { background: linear-gradient(160deg, rgba(59, 130, 246, 0.12), rgba(23, 29, 41, 0.4)); border-color: rgba(59, 130, 246, 0.28); }
.ip-box { display: flex; align-items: center; justify-content: space-between; gap: 8px; background: var(--surface-2); border: 1px dashed var(--line-2); border-radius: 10px; padding: 10px 12px; cursor: pointer; }
.ip-box .mono { font-family: var(--mono); font-weight: 700; color: var(--text); font-size: 14px; }
.ip-box .copy-btn { font-size: 11px; font-weight: 700; color: #fff; background: var(--green); padding: 3px 9px; border-radius: 6px; }
.ip-box:hover .copy-btn { background: var(--green-2); }
.nav-card .nav-item { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 9px; color: var(--text); font-size: 14px; font-weight: 600; }
.nav-card .nav-item:hover { background: var(--surface-2); text-decoration: none; }
.nav-card .nav-item.on { background: rgba(59, 130, 246, 0.16); color: #cfe0ff; }
.ni-ico { width: 20px; text-align: center; }
.ni-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* lista de boards */
.board-list { display: flex; flex-direction: column; gap: 10px; }
.board-row { display: grid; grid-template-columns: 48px minmax(0, 1fr) 78px minmax(0, 1.1fr); gap: 14px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; cursor: pointer; box-shadow: var(--shadow); transition: border-color 0.15s, transform 0.1s; }
.board-row:hover { border-color: var(--blue); transform: translateY(-1px); }
.br-ico { font-size: 26px; text-align: center; }
.br-name { font-size: 16px; font-weight: 700; }
.br-desc { margin-top: 2px; }
.br-stat { text-align: center; }
.br-stat b { display: block; font-size: 18px; color: var(--text); }
.br-last a { font-weight: 600; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.br-last span { display: block; margin-top: 2px; }
@media (max-width: 640px) { .board-row { grid-template-columns: 40px minmax(0, 1fr); } .br-stat, .br-last { display: none; } }

/* cabeçalho da board */
.board-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 16px; flex-wrap: wrap; }
.board-head h1 { font-size: 24px; margin: 0; }
.board-head p { margin: 4px 0 0; }

/* lista de tópicos */
.thread-list { display: flex; flex-direction: column; gap: 8px; }
.thread-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto auto; gap: 14px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 11px; padding: 11px 14px; cursor: pointer; box-shadow: var(--shadow); transition: border-color 0.15s; }
.thread-row:hover { border-color: var(--blue); }
.thread-row.pinned { border-color: rgba(245, 166, 35, 0.4); background: linear-gradient(180deg, rgba(245, 166, 35, 0.06), transparent); }
.tr-head { width: 40px; height: 40px; border-radius: 8px; image-rendering: pixelated; background: var(--surface-2); border: 1px solid var(--line); }
.tr-title { font-size: 15px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tr-sub { margin-top: 2px; }
.tr-stats { display: flex; flex-direction: column; gap: 2px; text-align: right; font-size: 12px; color: var(--muted); white-space: nowrap; }
.tr-stats b { color: var(--text); }
.tr-last { text-align: right; white-space: nowrap; }
@media (max-width: 680px) { .thread-row { grid-template-columns: 40px minmax(0, 1fr) auto; } .tr-last { display: none; } }
@media (max-width: 460px) { .thread-row { grid-template-columns: 40px minmax(0, 1fr); } .tr-stats { display: none; } }

.empty { text-align: center; padding: 44px 20px; color: var(--muted); background: var(--surface); border: 1px dashed var(--line-2); border-radius: 12px; }
.empty .ico { font-size: 32px; display: block; margin-bottom: 10px; opacity: 0.6; }

/* tags */
.tag-staff { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; color: #4a3100; background: var(--gold); padding: 2px 7px; border-radius: 5px; vertical-align: middle; }
.tag-op { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; color: #cfe0ff; background: rgba(59, 130, 246, 0.22); padding: 2px 7px; border-radius: 5px; }
.tag-pin { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; color: #ffce7a; background: rgba(245, 166, 35, 0.18); padding: 2px 7px; border-radius: 5px; margin-right: 6px; }
.tag-lock { font-size: 11px; margin-right: 6px; }

/* tópico (thread view) */
.thread-head { margin-bottom: 14px; }
.thread-head h1 { font-size: 24px; margin: 0 0 4px; line-height: 1.25; }
.mod-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; }
.mod-bar button { padding: 5px 11px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--muted); cursor: pointer; font-size: 12px; font-weight: 600; }
.mod-bar button:hover { color: var(--text); border-color: var(--blue); }
.mod-bar button.danger { color: #ff8a97; border-color: rgba(239, 71, 89, 0.4); background: rgba(239, 71, 89, 0.08); height: auto; }
.post-thread { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.post { display: grid; grid-template-columns: 130px minmax(0, 1fr); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.post.is-reply { grid-template-columns: 108px minmax(0, 1fr); }
.pb-user { background: var(--surface-2); border-right: 1px solid var(--line); padding: 16px 12px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.is-reply .pb-user { padding: 12px 10px; }
.pb-head { width: 72px; height: 72px; border-radius: 10px; image-rendering: pixelated; background: var(--surface-3); border: 1px solid var(--line-2); }
.is-reply .pb-head { width: 50px; height: 50px; }
.pb-nick { font-family: var(--mono); font-weight: 800; font-size: 14px; word-break: break-all; color: var(--text); }
.is-reply .pb-nick { font-size: 12px; }
.pb-side { padding: 0; min-width: 0; display: flex; flex-direction: column; }
.pb-meta { padding: 10px 18px; border-bottom: 1px solid var(--line); }
.pb-content { padding: 16px 18px; font-size: 15px; line-height: 1.7; color: #d4dae6; word-wrap: break-word; flex: 1; }
.pb-content h2 { font-size: 20px; margin: 20px 0 8px; } .pb-content h2:first-child { margin-top: 0; }
.pb-content h3 { font-size: 17px; margin: 16px 0 6px; }
.pb-content p { margin: 0 0 14px; } .pb-content p:last-child { margin-bottom: 0; }
.pb-content ul { margin: 0 0 14px; padding-left: 22px; }
.pb-content li { margin-bottom: 5px; }
.pb-content img { max-width: 100%; border-radius: 10px; margin: 10px 0; }
.pb-content a { color: var(--cyan); }
.pb-content.preview { margin-top: 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.edited { font-style: italic; }

/* ações do post: votos + responder */
.pb-actions { display: flex; align-items: center; gap: 12px; padding: 8px 16px 12px; }
.votebar { display: inline-flex; align-items: center; gap: 2px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 9px; padding: 2px; }
.votebar .vote { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 13px; font-weight: 700; border-radius: 7px; }
.votebar .vote:hover { background: var(--surface-3); color: var(--text); }
.votebar.v-up .vote.up { color: var(--green); }
.votebar.v-down .vote.down { color: var(--red); }
.reply-link { border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 13px; font-weight: 600; padding: 4px 6px; }
.reply-link:hover { color: var(--blue); }
.inline-reply { padding: 0 16px 14px; display: flex; flex-direction: column; gap: 8px; }

/* nick/head clicável -> perfil */
.clk { cursor: pointer; }
.pb-head.clk:hover { border-color: var(--blue); }
.pb-nick.clk:hover { color: var(--blue); }

/* assinatura sob os posts */
.post-sig { margin: 0 18px; padding: 10px 0 0; border-top: 1px dashed var(--line-2); font-size: 13px; line-height: 1.5; color: var(--muted); }
.post-sig p { margin: 0 0 6px; } .post-sig p:last-child { margin-bottom: 0; }
.post-sig img { max-width: 100%; max-height: 80px; border-radius: 6px; }
.post-sig a { color: var(--cyan); }

/* perfil de membro (estilo Steam) */
.pf-hero { display: flex; gap: 20px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px 24px; margin-bottom: 16px; box-shadow: var(--shadow); }
.pf-head { width: 110px; height: 110px; flex-shrink: 0; border-radius: 14px; image-rendering: pixelated; background: var(--surface-2); border: 1px solid var(--line-2); box-shadow: var(--shadow); }
.pf-id { min-width: 0; flex: 1; }
.pf-id h1 { font-size: 26px; margin: 0; word-break: break-all; }
.pf-tag { font-size: 15px; color: var(--text); margin: 4px 0 0; font-style: italic; }
.pf-meta { margin: 8px 0; }
.pf-stats { display: flex; gap: 18px; margin: 10px 0; }
.pf-stats b { color: var(--text); font-size: 17px; }
.pf-stats span { font-size: 12px; color: var(--muted); }
.pf-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.pf-link { display: inline-flex; align-items: center; gap: 5px; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 13px; font-size: 13px; font-weight: 600; color: var(--cyan); }
.pf-link:hover { border-color: var(--blue); text-decoration: none; }
.pf-actions { margin-top: 8px; }
.pf-sig-h { font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--muted); margin: 0 0 6px; }
.pf-about .pb-content { padding: 0; }
@media (max-width: 560px) { .pf-hero { flex-direction: column; align-items: center; text-align: center; } .pf-stats, .pf-links { justify-content: center; } }

/* editor de links do perfil */
.lbl { font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 8px; }
.link-row { display: flex; gap: 8px; margin-bottom: 8px; }
.link-row input:first-child { max-width: 180px; }
.link-row .lk-rm { flex-shrink: 0; width: 38px; padding: 0; }

/* árvore de respostas */
.replies-h { font-size: 15px; margin: 20px 0 10px; }
.no-replies { background: var(--surface); border: 1px dashed var(--line-2); border-radius: 12px; padding: 16px 18px; }
.reply-tree, .reply-node { display: flex; flex-direction: column; gap: 10px; }
.reply-children { padding-left: 20px; border-left: 2px solid var(--line); margin-left: 6px; display: flex; flex-direction: column; gap: 10px; }

/* estatísticas / ao vivo / online */
.thread-stats { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--green); animation: livepulse 2s infinite; }
@keyframes livepulse { 0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.45); } 70% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }
.online-line { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--text); margin-top: 8px; }
.online-line b { color: var(--green); font-size: 15px; }
@media (max-width: 560px) {
  .post, .post.is-reply { grid-template-columns: 1fr; }
  .pb-user { flex-direction: row; gap: 12px; text-align: left; border-right: 0; border-bottom: 1px solid var(--line); }
  .pb-head, .is-reply .pb-head { width: 44px; height: 44px; }
  .reply-children { padding-left: 12px; }
}

/* caixa de resposta */
.reply-box { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; box-shadow: var(--shadow); }
.reply-box h3 { margin: 0 0 10px; font-size: 15px; }
.rb-actions { display: flex; gap: 10px; align-items: center; margin-top: 10px; }
.locked-note { background: var(--surface); border: 1px dashed var(--line-2); border-radius: 12px; padding: 16px 18px; color: var(--muted); font-size: 14px; }

/* paginação */
.pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 16px 0; }
.pager button { padding: 7px 14px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text); cursor: pointer; font-size: 13px; font-weight: 600; }
.pager button:hover:not([disabled]) { border-color: var(--blue); }
.pager button[disabled] { opacity: 0.4; cursor: default; }

/* editor */
.editor .ta { font-family: var(--mono); font-size: 13px; }
.ed-actions { display: flex; gap: 10px; align-items: center; margin-top: 6px; flex-wrap: wrap; }
.back { margin-bottom: 16px; }

/* ---------- tickets ---------- */
.tk-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.tk-head h2 { margin: 0; }
.tk-scope { display: flex; gap: 6px; margin-bottom: 14px; }
.tk-scope button { padding: 6px 14px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--muted); cursor: pointer; font-size: 13px; }
.tk-scope button.active { background: var(--blue); color: #fff; border-color: var(--blue); }
.tk-list { display: flex; flex-direction: column; gap: 8px; }
.tk-row { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; cursor: pointer; box-shadow: var(--shadow); }
.tk-row:hover { border-color: var(--blue); }
.tk-cat { font-size: 11px; font-weight: 800; padding: 3px 9px; border-radius: 6px; text-transform: uppercase; letter-spacing: 0.5px; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.tk-cat.apelo { color: #ff8a97; background: rgba(239, 71, 89, 0.16); }
.tk-cat.bug { color: #ffce7a; background: rgba(245, 166, 35, 0.16); }
.tk-cat.sugestao { color: #7ee2a8; background: rgba(34, 197, 94, 0.16); }
.tk-subj { flex: 1; font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-nick { font-family: var(--mono); font-size: 11px; color: var(--cyan); }
.tk-when { font-size: 11px; color: var(--muted); white-space: nowrap; }
.tk-status { font-size: 11px; font-weight: 800; padding: 3px 9px; border-radius: 6px; white-space: nowrap; }
.tk-status.aberto { color: #8fd0f7; background: rgba(56, 189, 248, 0.16); }
.tk-status.respondido { color: #7ee2a8; background: rgba(34, 197, 94, 0.16); }
.tk-status.fechado { color: var(--muted); background: var(--surface-2); }
.tk-form-actions { display: flex; gap: 10px; align-items: center; margin-top: 6px; }
.tk-detail { display: flex; flex-direction: column; gap: 16px; }
.tk-detail-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.tk-detail-head h2 { margin: 0; flex: 1; font-size: 18px; min-width: 180px; }
.tk-status-ctl { display: flex; align-items: center; gap: 6px; margin-bottom: 16px; flex-wrap: wrap; }
.tk-status-ctl button { padding: 5px 11px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--muted); cursor: pointer; font-size: 12px; }
.tk-status-ctl button.active { background: var(--blue); color: #fff; border-color: var(--blue); }
.tk-thread { display: flex; flex-direction: column; gap: 12px; margin-bottom: 18px; }
.tk-msg { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.tk-msg.staff { border-color: rgba(245, 166, 35, 0.4); background: rgba(245, 166, 35, 0.07); }
.tk-msg-head { display: flex; gap: 8px; font-size: 12px; margin-bottom: 6px; }
.tk-msg-body { font-size: 14px; white-space: pre-wrap; word-break: break-word; line-height: 1.5; }
.tk-reply { display: flex; flex-direction: column; gap: 10px; }
.tk-reply .btn { align-self: flex-start; }
.tk-author h4 { margin: 14px 0 8px; font-size: 13px; }
.ap-pun { font-size: 13px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.ap-pun:last-child { border-bottom: 0; }
.ap-pt { font-family: var(--mono); font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 5px; background: rgba(239, 71, 89, 0.16); color: #ff8a97; }
.ap-pun.act .ap-pt { background: rgba(239, 71, 89, 0.28); }

@media (max-width: 560px) {
  nav { gap: 10px; }
  .nav-name { display: none; }
  .nav-profile { padding: 5px; gap: 0; }
}

/* ============ polish (2026-06-18) ============ */
/* Scrollbar escura a condizer com o tema (a default clara destoa num site escuro). */
* { scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 8px; border: 3px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #4a586c; }
::selection { background: rgba(245, 166, 35, 0.30); color: #fff; }

/* Botões: transição suave + leve elevação no hover, "pressionar" no clique. */
.btn { transition: background .15s, transform .08s, box-shadow .15s; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(59, 130, 246, 0.35); }
.btn:active { transform: translateY(1px); box-shadow: 0 1px 0 var(--blue-2); }
.ghost, .danger, .tab, .mod-bar button, .nav-logout, .nav-profile, .navlink { transition: background .15s, color .15s, border-color .15s, transform .1s; }
:is(.btn, .ghost, .danger, .tab, input, select, textarea):focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

/* Cards do fórum: elevam e ganham sombra mais forte ao passar o rato. */
.board-row, .thread-row { transition: border-color 0.15s, transform 0.12s, box-shadow 0.15s; }
.board-row:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.thread-row:hover { transform: translateY(-1px); box-shadow: var(--shadow-2); }
.side-card { transition: border-color 0.15s, box-shadow 0.15s; }
.nav-card .nav-item, .ip-box, .codecard { transition: background 0.15s, border-color 0.15s, color 0.15s; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

/* ============ polish 2 (2026-06-18): ícones-chip + antialiasing ============ */
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
/* Ícone de cada board como "chip" (rounded square), parecem badges intencionais. */
.board-row { grid-template-columns: 52px minmax(0, 1fr) 78px minmax(0, 1.1fr); }
.br-ico { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; justify-self: center; font-size: 22px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); transition: border-color 0.15s; }
.board-row:hover .br-ico { border-color: var(--blue); }
@media (max-width: 640px) { .board-row { grid-template-columns: 52px minmax(0, 1fr); } }
