/* The Classic Forum — tema Forge (shell alinhado a ranking / marketplace) */
:root {
    --bg: #0c0c0e;
    --bg-soft: #141416;
    --bg-card: #1a1a1e;
    --bg-card-hover: #24242a;
    --border: #33333c;
    --text: #ece8e1;
    --text-dim: #9a948a;
    --text-faint: #666058;
    --accent: #d4894a;
    --gold: #e8b043;
    --danger: #d64545;
    --success: #6bbf6b;
    --radius: 2px;
    --font-display: 'Teko', sans-serif;
    --font-body: 'IBM Plex Sans', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    background: var(--bg);
    background-image:
        linear-gradient(180deg, rgba(212, 137, 74, .05), transparent 28%),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 80px,
            rgba(255, 255, 255, .012) 80px,
            rgba(255, 255, 255, .012) 81px
        );
    color: var(--text);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
main { flex: 1; width: 100%; padding: 24px 16px 48px; min-width: 0; }
.container { max-width: 1180px; margin: 0 auto; width: 100%; }
.narrow { max-width: 720px; margin: 0 auto; width: 100%; }
.muted { color: var(--text-dim); }
.empty-state { padding: 48px 16px; text-align: center; color: var(--text-dim); }

/* ---------------- topbar ---------------- */
.topbar {
    position: sticky; top: 0; z-index: 50;
    background: rgba(12, 12, 14, .96);
    backdrop-filter: blur(8px);
    border-bottom: 2px solid rgba(212, 137, 74, .4);
}
.topbar-inner {
    display: flex; align-items: center; gap: 16px;
    padding: 0 16px; height: 60px;
}
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); white-space: nowrap; flex: none; }
.brand-logo { width: 40px; height: 40px; object-fit: contain; flex: none; display: block; }
.brand-text { display: flex; align-items: baseline; gap: 7px; }
.brand-main { font-size: 24px; font-weight: 700; letter-spacing: 2px; }
.brand-sub { font-size: 15px; font-weight: 600; letter-spacing: 5px; color: var(--accent); }
.topnav { display: flex; gap: 4px; min-width: 0; align-items: center; }
.topnav-item {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; padding: 0; border-radius: 6px;
    color: var(--text-dim); border: 1px solid transparent; transition: all .15s; flex: none;
}
.topnav-item .nav-logo,
.mobile-nav-link .nav-logo { width: 28px; height: 28px; object-fit: contain; filter: saturate(.4); transition: filter .15s; flex: none; }
.topnav-item:hover .nav-logo, .topnav-item.active .nav-logo,
.mobile-nav-link:hover .nav-logo, .mobile-nav-link.active .nav-logo { filter: none; }
.topnav-item:hover { color: var(--text); background: var(--bg-card); border-color: var(--border); }
.topnav-item.active { border-color: var(--game-color, var(--accent)); background: var(--bg-card); }
.topnav-item.nav-text-fallback {
    width: auto; min-width: 40px; padding: 6px 10px; font-family: var(--font-display);
    font-weight: 600; font-size: 14px; letter-spacing: .5px;
}
.topnav-item .nav-chip-text { line-height: 1; }
.topbar-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; flex: none; }

.nav-toggle {
    display: none; width: 40px; height: 40px; padding: 0; border-radius: 8px;
    background: var(--bg-card); border: 1px solid var(--border); color: var(--text);
    cursor: pointer; align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.nav-toggle:hover { border-color: var(--accent); }
.nav-toggle-bar {
    display: block; width: 18px; height: 2px; border-radius: 1px;
    background: currentColor; transition: transform .2s, opacity .2s;
}
.nav-toggle.open .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle.open .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* menu mobile (drawer) */
.mobile-nav-backdrop {
    position: fixed; inset: 0; z-index: 60;
    background: rgba(0, 0, 0, .55); backdrop-filter: blur(2px);
    opacity: 0; pointer-events: none; transition: opacity .2s;
}
.mobile-nav-backdrop.open { opacity: 1; pointer-events: auto; }
.mobile-nav {
    position: fixed; top: 0; right: 0; bottom: 0; z-index: 70;
    width: min(340px, 88vw); background: var(--bg-soft);
    border-left: 1px solid var(--border);
    display: flex; flex-direction: column;
    transform: translateX(105%); transition: transform .22s ease;
    box-shadow: -12px 0 40px rgba(0, 0, 0, .45);
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 16px; border-bottom: 1px solid var(--border); flex: none;
}
.mobile-nav-title {
    font-family: var(--font-display); font-weight: 700; font-size: 18px;
    letter-spacing: 1px; text-transform: uppercase;
}
.mobile-nav-close {
    width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--border);
    background: var(--bg-card); color: var(--text); font-size: 22px; line-height: 1;
    cursor: pointer;
}
.mobile-nav-close:hover { border-color: var(--accent); color: var(--accent); }
.mobile-nav-body { overflow-y: auto; padding: 8px 12px 28px; flex: 1; }
.mobile-nav-section { margin-top: 14px; }
.mobile-nav-label {
    font-size: 11px; text-transform: uppercase; letter-spacing: 1.2px;
    color: var(--text-faint); padding: 4px 10px 8px;
}
.mobile-nav-list { display: flex; flex-direction: column; gap: 4px; }
.mobile-nav-link {
    display: flex; align-items: center; gap: 12px; width: 100%;
    padding: 11px 12px; border-radius: 10px; border: 1px solid transparent;
    color: var(--text); background: transparent; transition: background .15s, border-color .15s;
    font: inherit; text-align: left; cursor: pointer;
}
.mobile-nav-link:hover { background: var(--bg-card); }
.mobile-nav-link.active {
    background: var(--bg-card); border-color: var(--game-color, var(--accent));
    color: var(--game-color, var(--accent));
}
.mobile-nav-link .mnl-text { display: flex; flex-direction: column; min-width: 0; gap: 1px; }
.mobile-nav-link .mnl-name {
    font-family: var(--font-display); font-weight: 700; font-size: 16px; letter-spacing: .4px;
}
.mobile-nav-link .mnl-full {
    font-size: 12px; color: var(--text-dim); white-space: nowrap;
    overflow: hidden; text-overflow: ellipsis;
}
.mobile-logout-form { margin: 0; }
body.nav-open { overflow: hidden; }

.mobile-nav-body {
    scrollbar-width: thin;
    scrollbar-color: #4a453c transparent;
}
.mobile-nav-body::-webkit-scrollbar { width: 8px; height: 8px; }
.mobile-nav-body::-webkit-scrollbar-track { background: transparent; }
.mobile-nav-body::-webkit-scrollbar-thumb {
    background: #3a3630; border-radius: 8px; border: 2px solid transparent; background-clip: padding-box;
}

/* botoes (marketplace-style) */
.btn-action, .btn-account, .btn-secondary, .btn-danger, .btn-ghost {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 9px 18px; border-radius: 4px; border: 1px solid transparent;
    font-family: var(--font-display); font-size: 1.05rem; text-transform: uppercase;
    letter-spacing: .06em; cursor: pointer; line-height: 1; text-decoration: none;
    background: transparent; color: var(--text);
}
.btn-action {
    background: linear-gradient(180deg, #e09a54, #b8712f); color: #1d150c; font-weight: 600;
}
.btn-action:hover { filter: brightness(1.1); color: #1d150c; }
.btn-account { border-color: #4a4336; color: #cfc8ba; }
.btn-account:hover { border-color: var(--accent); color: var(--accent); }
.btn-secondary { border-color: var(--border); background: var(--bg-card); color: var(--text); font-family: var(--font-body); font-size: 13px; text-transform: none; letter-spacing: .02em; height: 36px; padding: 0 14px; border-radius: var(--radius); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.btn-danger { border-color: var(--danger); color: var(--danger); font-family: var(--font-body); font-size: 13px; text-transform: none; height: 36px; padding: 0 14px; }
.btn-ghost { color: var(--text-dim); font-family: var(--font-body); font-size: 13px; text-transform: none; height: 36px; padding: 0 14px; }
.btn-ghost:hover { color: var(--text); background: var(--bg-card); }
.btn-account-name { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inline-form { display: inline; }
.linkish { background: none; border: 0; color: var(--text-dim); cursor: pointer; font: inherit; padding: 0; }
.linkish:hover { color: var(--danger); }

/* idioma */
.lang-box { position: relative; flex: none; }
.lang-btn {
    display: flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 8px;
    background: var(--bg-card); border: 1px solid var(--border); color: var(--text);
    font-family: var(--font-display); font-weight: 600; font-size: 13px; letter-spacing: 1px;
    cursor: pointer; transition: border-color .15s;
}
.lang-btn:hover { border-color: var(--accent); }
.lang-flag {
    width: 20px; height: 14px; object-fit: cover; border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .12); flex: none;
}
.lang-code { line-height: 1; }
.lang-caret { font-size: 10px; color: var(--text-dim); }
.lang-menu {
    position: absolute; right: 0; top: calc(100% + 6px); min-width: 168px; z-index: 60;
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .45); overflow: hidden; display: none;
}
.lang-menu.open { display: block; }
.lang-item {
    display: flex; align-items: center; gap: 10px; padding: 9px 14px;
    font-size: 14px; color: var(--text);
}
.lang-item:hover { background: var(--bg-card-hover); }
.lang-item.active { color: var(--accent); font-weight: 600; }

/* ---------------- hero / secoes (ranking) ---------------- */
.hero { text-align: center; padding: 44px 16px 30px; }
.hero h1 {
    font-family: var(--font-display); font-size: clamp(30px, 5vw, 46px); font-weight: 700;
    letter-spacing: 2px; text-transform: uppercase;
}
.hero p { color: var(--text-dim); max-width: 620px; margin: 10px auto 0; }
.hero-compact { padding: 30px 16px 22px; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 18px; }

.section-title {
    font-family: var(--font-display); font-size: 22px; font-weight: 700;
    letter-spacing: 1px; text-transform: uppercase; margin: 28px 0 14px;
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.section-title::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, var(--border), transparent); min-width: 40px; }

.card {
    background: linear-gradient(180deg, #1e1e24, var(--bg-card));
    border: 1px solid #3a3a44; border-radius: var(--radius);
}
.panel {
    background: linear-gradient(180deg, #1e1e24, var(--bg-card));
    border: 1px solid #3a3a44; border-radius: var(--radius);
    padding: 18px 20px;
}
.panel-title {
    font-family: var(--font-display); font-size: 22px; font-weight: 700;
    letter-spacing: 1px; text-transform: uppercase; margin-bottom: 14px;
    border-bottom: 1px solid var(--border); padding-bottom: 8px;
}

.game-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.game-card {
    display: block; padding: 26px 24px; position: relative; overflow: hidden; text-align: center;
    border-radius: var(--radius); border: 1px solid var(--border);
    background: linear-gradient(145deg, var(--bg-card), var(--bg-soft));
    transition: transform .15s, border-color .15s;
}
.game-card:hover { transform: translateY(-3px); border-color: var(--gc, var(--accent)); }
.game-card::before {
    content: ''; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--gc, var(--accent));
}
.game-card h3 { font-family: var(--font-display); font-size: 24px; letter-spacing: 1px; }
.game-card .gc-sub { color: var(--text-dim); font-size: 13px; margin-top: 4px; }
.game-card .gc-count { margin-top: 14px; font-size: 13px; color: var(--gc, var(--accent)); font-weight: 600; }
.game-card .game-logo {
    width: min(230px, 60%); max-height: 140px; object-fit: contain;
    display: block; margin: 0 auto 6px;
    filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .55));
    transition: transform .18s;
}
.game-card:hover .game-logo { transform: scale(1.04); }

/* linha rica de topico (vp_topic_row): avatar + titulo + stats + ultimo post */
.topic-panel { padding: 6px 10px; }
.topic-row {
    position: relative;
    display: grid; grid-template-columns: auto 1fr auto auto; gap: 14px; align-items: center;
    padding: 12px 10px; border-bottom: 1px solid rgba(255,255,255,.04);
}
.topic-row:last-child { border-bottom: 0; }
.topic-row:hover { background: rgba(255,255,255,.02); }
.topic-row--pinned { background: rgba(232, 176, 67, .04); }
.topic-cover { position: absolute; inset: 0; z-index: 1; }
.topic-row a:not(.topic-cover), .topic-row .react-summary { position: relative; z-index: 2; }
.topic-row-avatar { flex: none; }
.topic-row-main { min-width: 0; }
.topic-row-title {
    font-size: 15px; font-weight: 600; line-height: 1.3;
    display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
    overflow: hidden;
}
.topic-row:hover .topic-row-title { color: var(--accent); }
.topic-flag { font-size: 13px; flex: none; }
.topic-row-meta { color: var(--text-dim); font-size: 12px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topic-ctx { color: var(--accent); }
.topic-row-stats { display: flex; gap: 14px; flex: none; }
.trs { display: flex; flex-direction: column; align-items: center; min-width: 48px; }
.trs strong { font-size: 14px; }
.trs small { font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-faint); }
.topic-row-last { display: flex; align-items: center; gap: 8px; min-width: 150px; justify-content: flex-end; flex: none; }
.topic-last-info { display: flex; flex-direction: column; align-items: flex-start; font-size: 12px; color: var(--text-dim); min-width: 0; }
.topic-last-info small { color: var(--text-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 120px; }

.crumbs { display: flex; flex-wrap: wrap; gap: 8px; color: var(--text-dim); font-size: 13px; margin-bottom: 16px; align-items: center; }
.crumbs a:hover, .crumb:hover { color: var(--accent); }
.crumb-sep { color: var(--text-faint); }
.crumb-cur { color: var(--text); }
.section-head {
    display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
    margin-bottom: 18px; flex-wrap: wrap;
}
.section-head h1 {
    font-family: var(--font-display); font-size: 36px; letter-spacing: 1px; line-height: 1.1;
    text-transform: uppercase;
}
.game-hero {
    display: flex; flex-direction: column; align-items: center; text-align: center;
    gap: 8px; padding: 18px 0 8px; margin-bottom: 8px;
}
.game-hero-logo {
    width: min(200px, 50%); max-height: 120px; object-fit: contain;
    filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .55));
}
.game-hero-title {
    font-family: var(--font-display); font-size: clamp(28px, 4vw, 40px);
    font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--accent);
}

.cat-list { list-style: none; }
.cat-row {
    display: grid; grid-template-columns: auto 1.4fr .6fr .9fr; gap: 12px; align-items: center;
    padding: 14px 8px; border-bottom: 1px solid rgba(255,255,255,.05);
}
.cat-row:last-child { border-bottom: 0; }
.cat-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: var(--radius);
    background: rgba(212, 137, 74, .1); border: 1px solid rgba(212, 137, 74, .25);
    color: var(--accent); flex: none;
}
.cat-icon.kind-announcement, .cat-icon.kind-news { color: var(--gold); border-color: rgba(232,176,67,.3); background: rgba(232,176,67,.08); }
.cat-icon.kind-support { color: #7eb8ff; border-color: rgba(126,184,255,.3); background: rgba(126,184,255,.07); }
.cat-icon.kind-community { color: #6bbf6b; border-color: rgba(107,191,107,.3); background: rgba(107,191,107,.07); }
.cat-name { font-weight: 700; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cat-main:hover .cat-name { color: var(--accent); }
.cat-desc { color: var(--text-dim); font-size: 13px; display: block; }
.cat-stats { display: flex; flex-direction: column; gap: 4px; color: var(--text-dim); font-size: 12px; }
.cat-last { font-size: 13px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cat-last a { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cat-last a:hover { color: var(--accent); }
.cat-last-meta { color: var(--text-faint); font-size: 12px; }

.badge {
    display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .04em;
    padding: 2px 8px; border: 1px solid var(--border); color: var(--text-dim); border-radius: 999px;
}
.badge-pin { border-color: var(--gold); color: var(--gold); }
.badge-lock { border-color: var(--danger); color: var(--danger); }
.badge-staff { border-color: var(--accent); color: var(--accent); }
.badge-on { border-color: var(--success); color: var(--success); }
.badge-off { border-color: var(--text-faint); color: var(--text-faint); }
.badge-kind { border-color: var(--accent); color: var(--accent); }
.badge-status-open { border-color: var(--gold); color: var(--gold); }
.badge-status-reviewed { border-color: var(--success); color: var(--success); }
.badge-status-dismissed { border-color: var(--text-faint); color: var(--text-faint); }

/* ---------------- post (topico) ---------------- */
.post-stack { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.post {
    display: grid; grid-template-columns: 190px 1fr; gap: 0;
    border: 1px solid var(--border); background: var(--bg-card); border-radius: var(--radius);
    overflow: hidden;
}
.post:target { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.post-author {
    background: var(--bg-soft); padding: 16px; border-right: 1px solid var(--border);
    display: flex; flex-direction: column; gap: 6px; align-items: flex-start;
}
.post-avatar-link { align-self: center; }
.author-name { font-weight: 700; word-break: break-word; }
.author-name:hover { text-decoration: underline; }
.author-name.role-admin, .role-admin { color: var(--gold); }
.author-name.role-moderator, .role-moderator { color: #7eb8ff; }
.role-badge {
    display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: .08em;
    text-transform: uppercase; padding: 1px 7px; border-radius: 999px;
}
.role-badge--admin { border: 1px solid var(--gold); color: var(--gold); }
.role-badge--mod { border: 1px solid #7eb8ff; color: #7eb8ff; }
.author-stats { font-size: 12px; color: var(--text-dim); display: flex; flex-direction: column; gap: 2px; margin-top: 4px; }
.author-stats div { display: flex; gap: 6px; }
.author-stats dt { color: var(--text-faint); }
.author-stats dd { margin: 0; }
.author-rep dd { color: var(--text-dim); }
.post-body-col { padding: 16px 18px; min-width: 0; display: flex; flex-direction: column; }
.post-meta {
    display: flex; gap: 12px; align-items: center; font-size: 12px; color: var(--text-dim);
    margin-bottom: 10px; flex-wrap: wrap;
}
.post-meta-spacer { flex: 1; }
.post-action { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; font-size: 12px; color: var(--text-dim); }
.post-action:hover { color: var(--accent); }
.post-action--danger:hover { color: var(--danger); }
.post-num { color: var(--text-faint); font-weight: 700; }
.post-num:hover { color: var(--accent); }
.post-replying {
    display: inline-block; font-size: 12px; color: var(--text-dim);
    margin-bottom: 8px; border-left: 2px solid var(--accent); padding-left: 8px;
}
.post-replying:hover { color: var(--accent); }
.post-content { white-space: normal; word-break: break-word; }
.post-content a, .post-body a { color: var(--accent); text-decoration: underline; }
.post-signature {
    margin-top: 16px; padding-top: 10px; border-top: 1px dashed var(--border);
    color: var(--text-dim); font-size: 13px; font-style: italic;
}
.post-foot { display: flex; align-items: center; gap: 16px; margin-top: 14px; flex-wrap: wrap; }
.post-foot .report-box { margin: 0; font-size: 12px; }

/* corpo renderizado (BBCode) */
.post-quote {
    margin: 8px 0; padding: 8px 12px; border-left: 3px solid var(--accent);
    background: rgba(212, 137, 74, .06); border-radius: 0 var(--radius) var(--radius) 0;
    font-size: 14px; color: var(--text-dim);
}
.post-quote .post-quote-head { display: block; font-size: 12px; margin-bottom: 4px; color: var(--text); }
.post-quote .post-quote-name { font-weight: 700; color: var(--accent); }
.post-quote .post-quote-link { color: var(--text-faint); text-decoration: none; }
.post-quote .post-quote-link:hover { color: var(--accent); }
.post-quote .post-quote { background: rgba(255,255,255,.03); }
.post-code {
    margin: 8px 0; padding: 10px 12px; background: #0a0a0c; border: 1px solid var(--border);
    border-radius: var(--radius); overflow-x: auto; font-size: 13px;
    font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; white-space: pre-wrap;
}
.post-img { max-width: min(100%, 640px); max-height: 480px; display: block; margin: 8px 0; border-radius: var(--radius); }
.post-youtube {
    display: block; position: relative; margin: 10px 0; max-width: 640px;
    aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius); overflow: hidden;
}
.post-youtube iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.stack-form { display: flex; flex-direction: column; gap: 12px; }
.stack-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--text-dim); }
.stack-form input, .stack-form textarea, .search-form input {
    background: var(--bg); border: 1px solid var(--border); color: var(--text);
    border-radius: var(--radius); padding: 10px 12px; font: inherit;
}
.stack-form input:focus, .stack-form textarea:focus, .search-form input:focus {
    outline: none; border-color: var(--accent);
}
.search-form { display: flex; gap: 8px; }
.search-form input { flex: 1; }
.login-panel { margin-top: 12px; }
.report-box { margin-top: 18px; color: var(--text-dim); }
.report-box summary { cursor: pointer; margin-bottom: 10px; }
.mod-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.report-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.report-row {
    display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
    padding: 12px; border: 1px solid var(--border); background: var(--bg-soft);
}

.pager { display: flex; gap: 6px; margin-top: 16px; flex-wrap: wrap; }
.pager a {
    min-width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--border); border-radius: var(--radius); color: var(--text-dim);
}
.pager a.active, .pager a:hover { border-color: var(--accent); color: var(--accent); }

.flash {
    margin: 0 0 16px; padding: 10px 14px; border-radius: var(--radius);
    border: 1px solid var(--border); background: var(--bg-card); font-size: 14px;
}
.flash-ok { border-color: rgba(107,191,107,.5); color: var(--success); }
.flash-error { border-color: rgba(214,69,69,.5); color: #ff8a8a; }

.notfound { text-align: center; padding: 90px 16px; }
.notfound h1 { font-family: var(--font-display); font-size: 64px; color: var(--accent); }

/* ---------------- footer ---------------- */
.site-footer {
    margin-top: auto;
    border-top: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(0,0,0,.18), rgba(0,0,0,.35));
}
.site-footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
    gap: 28px 32px;
    padding: 36px 16px 28px;
}
.sf-col { min-width: 0; }
.sf-logo { display: inline-block; margin-bottom: 12px; }
.sf-logo img {
    display: block; height: 36px; width: auto; object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,.35));
}
.sf-text {
    margin: 0 0 12px; font-size: 13px; line-height: 1.55; color: var(--text-dim); max-width: 32ch;
}
.sf-contact { margin: 0 0 14px; font-size: 13px; }
.sf-contact a { color: var(--text); }
.sf-contact a:hover { color: var(--accent); }
.sf-social { display: flex; flex-wrap: wrap; gap: 8px; }
.sf-social-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; border-radius: 8px;
    color: var(--accent); background: rgba(212, 137, 74, .12);
    border: 1px solid rgba(212, 137, 74, .28);
    transition: background .15s, border-color .15s, color .15s;
}
.sf-social-btn:hover {
    background: rgba(212, 137, 74, .22); border-color: var(--accent); color: #fff;
}
.sf-title {
    margin: 0 0 12px; font-family: var(--font-display); font-size: 15px; font-weight: 700;
    letter-spacing: 1px; text-transform: uppercase; color: var(--text);
}
.sf-list { list-style: none; margin: 0; padding: 0; }
.sf-list li { margin: 0 0 8px; }
.sf-list a { color: var(--text-dim); font-size: 13px; line-height: 1.4; }
.sf-list a:hover { color: var(--accent); }
.sf-games a { display: inline-flex; align-items: center; gap: 8px; }
.sf-games img { width: 16px; height: 16px; object-fit: contain; border-radius: 3px; flex: none; }
.site-footer-bar {
    border-top: 1px solid var(--border);
    padding: 14px 16px;
    text-align: center; font-size: 13px; color: var(--text-faint);
}
.site-footer-bar a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.site-footer-bar a:hover { color: #fff; }

@media (max-width: 960px) {
    .site-footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
    .cat-row { grid-template-columns: 1fr; gap: 6px; }
    .post { grid-template-columns: 1fr; }
    .post-author { border-right: 0; border-bottom: 1px solid var(--border); flex-direction: row; flex-wrap: wrap; align-items: center; }
    .topic-row { grid-template-columns: 1fr; }
    .topic-meta { justify-content: flex-start; }
}
@media (max-width: 1240px) {
    .topnav-item { width: 34px; height: 34px; }
    .topnav-item .nav-logo { width: 24px; height: 24px; }
    .topnav-item.nav-text-fallback { min-width: 34px; padding: 5px 7px; font-size: 12px; }
    .topbar-inner { gap: 10px; }
}
@media (max-width: 1080px) {
    .topnav-desktop { display: none; }
    .nav-toggle { display: inline-flex; }
    /* No mobile o menu de conta some — os itens estao todos no drawer */
    .account-menu { display: none !important; }
    .account-box .account-caret { display: none; }
}
@media (max-width: 900px) {
    .topbar-inner { gap: 10px; padding: 0 12px; }
    .brand-logo { width: 34px; height: 34px; }
    .brand-main { font-size: 20px; }
    .brand-sub { font-size: 12px; letter-spacing: 3px; }
    .topbar-actions { gap: 6px; }
    .btn-action { padding: 8px 12px; font-size: .95rem; }
    .btn-account-name { max-width: 90px; }
}
@media (max-width: 560px) {
    .site-footer-grid { grid-template-columns: 1fr; padding-top: 28px; }
    .sf-text { max-width: none; }
    .lang-code, .lang-caret { display: none; }
}
/* Acima do breakpoint do drawer (1080px) o menu mobile some; o botao de conta
   vira o menu de conta do desktop (perfil/notificacoes/moderacao/sair). */
@media (min-width: 1081px) {
    .mobile-nav, .mobile-nav-backdrop, .nav-toggle { display: none !important; }
}

/* ---------------- avatares ---------------- */
.avatar {
    position: relative; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%; overflow: hidden; flex: none; background: var(--bg-soft);
    border: 1px solid var(--border); vertical-align: middle;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar .avatar-letter { display: none; }
.avatar--fallback img { display: none; }
.avatar--fallback .avatar-letter {
    display: flex; align-items: center; justify-content: center;
    position: absolute; inset: 0; font-family: var(--font-display);
    font-weight: 700; font-size: 45%; color: #fff; line-height: 1;
    text-transform: uppercase; user-select: none;
}
.avatar-tone-0 { background: #7c4a2c; } .avatar-tone-1 { background: #3f5e7a; }
.avatar-tone-2 { background: #5b3f7a; } .avatar-tone-3 { background: #3f7a55; }
.avatar-tone-4 { background: #7a3f4b; } .avatar-tone-5 { background: #6e6e34; }
.avatar-tone-6 { background: #2f6e6e; } .avatar-tone-7 { background: #55482f; }

/* ---------------- header: icones de conta ---------------- */
.nav-ico {
    position: relative; display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; border: 1px solid rgba(216, 179, 106, .35); border-radius: 0;
    color: #cfc9bc; flex: none; transition: border-color .15s, color .15s;
}
.nav-ico:hover { border-color: #d8b36a; color: #fff; }
.nav-badge {
    position: absolute; top: -6px; right: -6px; min-width: 17px; height: 17px;
    padding: 0 4px; border-radius: 999px; background: var(--danger); color: #fff;
    font-size: 10px; font-weight: 700; display: inline-flex; align-items: center;
    justify-content: center; line-height: 1; border: 1px solid rgba(0,0,0,.4);
}
.nav-badge--inline { position: static; margin-left: 4px; vertical-align: middle; }

/* ---------------- estados vazios ---------------- */
.empty-state { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.empty-text { font-size: 15px; color: var(--text-dim); }
.empty-hint { font-size: 13px; color: var(--text-faint); max-width: 46ch; }
.empty-state .btn-primary {
    margin-top: 8px; display: inline-flex; padding: 9px 18px;
    background: linear-gradient(180deg, #e09a54, #b8712f); color: #1d150c;
    font-family: var(--font-display); font-size: 1.02rem; text-transform: uppercase;
    letter-spacing: .06em; border-radius: 4px; font-weight: 600;
}
.empty-state .btn-primary:hover { filter: brightness(1.1); }

/* ---------------- meritos (medalhas dos rankings) ---------------- */
.merit-badges { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.merit-chip {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 10.5px; font-weight: 700; letter-spacing: .03em; line-height: 1;
    padding: 3px 7px; border-radius: 999px; border: 1px solid var(--border);
    color: var(--text-dim); white-space: nowrap; cursor: default;
}
.merit-chip img { width: 14px; height: 14px; object-fit: contain; }
.merit-medal {
    display: inline-flex; align-items: center; justify-content: center;
    width: 15px; height: 15px; border-radius: 50%; font-size: 8.5px; color: #1d150c;
}
.merit-chip--gold, .merit-chip--title { border-color: rgba(232,176,67,.55); color: var(--gold); }
.merit-chip--gold .merit-medal { background: linear-gradient(180deg, #f2d27c, #c99a2e); }
.merit-chip--silver { border-color: rgba(200,200,210,.45); color: #c8c8d2; }
.merit-chip--silver .merit-medal { background: linear-gradient(180deg, #dcdce4, #9a9aa6); }
.merit-chip--bronze { border-color: rgba(205,127,50,.5); color: #cd7f32; }
.merit-chip--bronze .merit-medal { background: linear-gradient(180deg, #d99a5b, #a5642a); }
.merit-chip--patente { border-color: rgba(126,184,255,.4); color: #a8cdff; }
.merit-summary { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.merit-sum-chip {
    display: inline-flex; align-items: baseline; gap: 5px; font-size: 13px;
    padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px; color: var(--text-dim);
}
.merit-sum-chip strong { font-size: 15px; color: var(--text); }
.merit-sum-chip.merit-chip--gold strong { color: var(--gold); }
.merit-sum-chip--prize { border-color: rgba(107,191,107,.4); }
.merit-sum-chip--prize strong { color: var(--success); }
.merit-subtitle {
    font-family: var(--font-display); font-size: 16px; letter-spacing: .8px;
    text-transform: uppercase; color: var(--text-dim); margin: 16px 0 8px;
}
.merit-list { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.merit-item {
    display: flex; align-items: center; gap: 12px; padding: 8px 10px;
    background: var(--bg-soft); border: 1px solid rgba(255,255,255,.05); border-radius: var(--radius);
}
.merit-item-main { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.merit-item-main small { color: var(--text-faint); font-size: 12px; }
.pos-badge {
    display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; border-radius: 50%; font-weight: 800; font-size: 13px;
    color: #1d150c; flex: none;
}
.pos-gold { background: linear-gradient(180deg, #f2d27c, #c99a2e); box-shadow: 0 0 10px rgba(232,176,67,.35); }
.pos-silver { background: linear-gradient(180deg, #dcdce4, #9a9aa6); }
.pos-bronze { background: linear-gradient(180deg, #d99a5b, #a5642a); }
.pos-plain { background: var(--bg-card-hover); color: var(--text-dim); border: 1px solid var(--border); }
.char-list { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.char-item {
    display: flex; align-items: center; gap: 12px; padding: 8px 10px;
    background: var(--bg-soft); border: 1px solid rgba(255,255,255,.05); border-radius: var(--radius);
}
.char-game {
    font-size: 11px; font-weight: 700; letter-spacing: .04em; white-space: nowrap;
    padding: 3px 9px; border-radius: 999px; border: 1px solid var(--gc, var(--border));
    color: var(--gc, var(--accent)); flex: none;
}
.char-main { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.char-main small { color: var(--text-faint); font-size: 12px; }
.char-rk-link { font-size: 12px; color: var(--text-dim); white-space: nowrap; }
.char-rk-link:hover { color: var(--accent); }

/* ---------------- barra de estatisticas (home) ---------------- */
.stats-bar { margin-top: 28px; padding: 14px 16px; border: 1px solid var(--border); background: var(--bg-soft); border-radius: var(--radius); }
.stats-cells { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 13px; color: var(--text-dim); }
.stat-cell strong { color: var(--text); }
.stat-cell a { color: var(--accent); }
.stats-online { margin-top: 8px; font-size: 12.5px; color: var(--text-faint); line-height: 1.7; }
.stats-online a { color: var(--text-dim); }
.stats-online a:hover { color: var(--accent); }
.online-dot {
    display: inline-block; width: 8px; height: 8px; border-radius: 50%;
    background: var(--success); box-shadow: 0 0 6px rgba(107,191,107,.7); margin-right: 4px;
}

/* ---------------- composer BBCode ---------------- */
.composer { display: flex; flex-direction: column; gap: 0; }
.composer-toolbar {
    display: flex; align-items: center; gap: 2px; flex-wrap: wrap;
    padding: 6px 8px; background: var(--bg-soft);
    border: 1px solid var(--border); border-bottom: 0; border-radius: var(--radius) var(--radius) 0 0;
}
.cp-btn {
    min-width: 30px; height: 28px; padding: 0 8px; border: 1px solid transparent;
    background: transparent; color: var(--text-dim); border-radius: var(--radius);
    cursor: pointer; font-size: 13px; line-height: 1;
}
.cp-btn:hover { background: var(--bg-card-hover); color: var(--text); border-color: var(--border); }
.cp-sep { width: 1px; height: 18px; background: var(--border); margin: 0 6px; }
.cp-spacer { flex: 1; }
.cp-preview-btn { font-size: 12px; }
.cp-preview-btn.active { color: var(--accent); border-color: var(--accent); }
.composer-textarea {
    width: 100%; min-height: 180px; resize: vertical;
    background: var(--bg); border: 1px solid var(--border); color: var(--text);
    border-radius: 0 0 var(--radius) var(--radius); padding: 12px; font: inherit;
}
.composer-textarea:focus { outline: none; border-color: var(--accent); }
.composer-preview {
    margin-top: 8px; padding: 12px 14px; border: 1px dashed var(--accent);
    border-radius: var(--radius); background: rgba(212,137,74,.04); min-height: 40px;
}
.composer-hint { font-size: 11.5px; color: var(--text-faint); margin-top: 6px; }
.composer-guidelines { font-size: 13px; margin: -6px 0 12px; }
.form-row { display: flex; gap: 12px; flex-wrap: wrap; }
.form-row label { flex: 1; min-width: 180px; }
.form-actions { display: flex; gap: 10px; align-items: center; }
.check-label { flex-direction: row !important; align-items: center; gap: 8px !important; }
.check-label input { width: auto; }

/* ---------------- reacoes ---------------- */
.react-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.react-form { display: inline; }
.react-pill {
    display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px;
    border: 1px solid var(--border); border-radius: 999px; background: var(--bg-soft);
    color: var(--text-dim); font-size: 13px; cursor: pointer; font-family: inherit;
    transition: border-color .15s, color .15s, background .15s;
}
.react-pill:hover { border-color: var(--accent); color: var(--accent); }
.react-pill--on { border-color: var(--accent); color: var(--accent); background: rgba(212,137,74,.1); }
.react-pill--ro { cursor: default; }
.react-pill--ro:hover { border-color: var(--border); color: var(--text-dim); }
.react-ico { font-size: 13px; line-height: 1; }
.react-summary {
    background: none; border: 0; padding: 0; font: inherit; font-size: 12px;
    color: var(--text-faint); cursor: pointer; text-align: left;
}
.react-summary:hover { color: var(--accent); text-decoration: underline; }
.star-box { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.react-pill--star.react-pill--on { border-color: var(--gold); color: var(--gold); background: rgba(232,176,67,.1); }

/* ---------------- modal quem-reagiu ---------------- */
.modal-backdrop {
    position: fixed; inset: 0; z-index: 90; background: rgba(0,0,0,.55);
    backdrop-filter: blur(2px); display: flex; align-items: center; justify-content: center;
    padding: 16px;
}
.modal {
    width: min(380px, 92vw); max-height: 70vh; overflow-y: auto;
    background: var(--bg-card); border: 1px solid var(--border); border-top: 2px solid var(--accent);
    border-radius: var(--radius); box-shadow: 0 18px 50px rgba(0,0,0,.6); padding: 16px;
}
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.modal-title { font-family: var(--font-display); font-size: 18px; text-transform: uppercase; letter-spacing: 1px; }
.modal-close {
    width: 30px; height: 30px; border: 1px solid var(--border); background: var(--bg-soft);
    color: var(--text); font-size: 18px; line-height: 1; cursor: pointer; border-radius: var(--radius);
}
.modal-close:hover { border-color: var(--accent); color: var(--accent); }
.modal-list { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.modal-list li a { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: var(--radius); }
.modal-list li a:hover { background: var(--bg-card-hover); }

/* ---------------- mod toolbar ---------------- */
.mod-toolbar {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    padding: 10px 12px; margin-bottom: 14px;
    border: 1px dashed rgba(126,184,255,.4); border-radius: var(--radius);
    background: rgba(126,184,255,.04);
}
.mod-toolbar-label {
    font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
    color: #7eb8ff; margin-right: 6px;
}
.mod-move-form { display: inline-flex; gap: 6px; align-items: center; }
.mod-move-form select, .admin-filter select, .admin-user-form select {
    background: var(--bg); border: 1px solid var(--border); color: var(--text);
    border-radius: var(--radius); padding: 7px 8px; font: inherit; font-size: 13px; max-width: 240px;
}

/* ---------------- notificacoes ---------------- */
.notif-list { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.notif-row { border-radius: var(--radius); }
.notif-row--unread { background: rgba(212,137,74,.06); }
.notif-link { display: flex; align-items: center; gap: 12px; padding: 10px 12px; }
.notif-link:hover { background: var(--bg-card-hover); border-radius: var(--radius); }
.notif-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.notif-text { font-size: 14px; }
.notif-main time { font-size: 12px; color: var(--text-faint); }
.notif-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); flex: none; }

/* ---------------- mensagens privadas ---------------- */
.pm-inbox { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.pm-thread--unread { background: rgba(212,137,74,.06); border-radius: var(--radius); }
.pm-thread-link { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--radius); }
.pm-thread-link:hover { background: var(--bg-card-hover); }
.pm-thread-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.pm-thread-name { font-weight: 700; }
.pm-thread-preview { font-size: 13px; color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pm-thread-link time { font-size: 12px; color: var(--text-faint); flex: none; }
.pm-hint { margin-top: 14px; font-size: 13px; }
.pm-thread-head { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--border); margin-bottom: 12px; }
.pm-head-user { display: flex; align-items: center; gap: 10px; }
.pm-head-name { font-weight: 700; font-size: 16px; }
.pm-messages { display: flex; flex-direction: column; gap: 10px; max-height: 55vh; overflow-y: auto; padding: 4px; }
.dm-msg {
    max-width: 78%; align-self: flex-start; background: var(--bg-soft);
    border: 1px solid var(--border); border-radius: 10px 10px 10px 2px; padding: 8px 12px;
}
.dm-msg--mine { align-self: flex-end; background: rgba(212,137,74,.1); border-color: rgba(212,137,74,.35); border-radius: 10px 10px 2px 10px; }
.dm-msg:target { border-color: var(--accent); }
.dm-body { font-size: 14px; word-break: break-word; }
.dm-meta { display: flex; gap: 10px; align-items: center; font-size: 11px; color: var(--text-faint); margin-top: 4px; }
.dm-reply-ref { display: inline-block; font-size: 11px; color: var(--text-faint); margin-bottom: 4px; }
.dm-reply-ref:hover { color: var(--accent); }
.dm-reply-btn:hover { color: var(--accent); }
.pm-compose { margin-top: 12px; }
.pm-reply-hint { display: flex; gap: 10px; align-items: center; font-size: 12px; color: var(--text-dim); }
.pm-reply-hint[hidden], [hidden] { display: none !important; }
.pm-first { padding: 16px 0; }

/* ---------------- busca ---------------- */
.search-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 14px; }
.search-tab {
    display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px;
    border: 1px solid var(--border); border-radius: 999px; font-size: 13px; color: var(--text-dim);
}
.search-tab:hover { border-color: var(--accent); color: var(--accent); }
.search-tab.active { border-color: var(--accent); color: var(--accent); background: rgba(212,137,74,.08); }
.search-tab-n { font-size: 11px; color: var(--text-faint); }
.btn-more { margin-top: 12px; }

/* ---------------- listas compactas ---------------- */
.mini-list { list-style: none; display: flex; flex-direction: column; }
.mini-item {
    display: flex; align-items: baseline; justify-content: space-between; gap: 14px;
    padding: 9px 4px; border-bottom: 1px solid rgba(255,255,255,.04);
}
.mini-item:last-child { border-bottom: 0; }
.mini-item > a { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 1px; }
.mini-item > a:hover span { color: var(--accent); }
.mini-item time { font-size: 12px; color: var(--text-faint); white-space: nowrap; }
.mini-excerpt { font-size: 14px; }

/* ---------------- paginacao nova ---------------- */
.pager { display: flex; gap: 6px; margin: 16px 0; flex-wrap: wrap; align-items: center; }
.pager-btn, .pager-cur {
    min-width: 32px; height: 32px; padding: 0 10px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--border); border-radius: var(--radius); color: var(--text-dim); font-size: 13px;
}
.pager-btn:hover { border-color: var(--accent); color: var(--accent); }
.pager-cur { border-color: var(--accent); color: var(--accent); font-weight: 700; }
.pager-gap { color: var(--text-faint); padding: 0 2px; }

/* ---------------- perfil ---------------- */
.profile-card { margin-bottom: 16px; }
.profile-head { display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; }
.profile-id { flex: 1; min-width: 220px; }
.profile-id h1 { font-family: var(--font-display); font-size: 30px; letter-spacing: 1px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.profile-stats-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.stat-chip {
    display: inline-flex; align-items: baseline; gap: 5px; font-size: 12.5px;
    padding: 5px 11px; border: 1px solid var(--border); border-radius: 999px; color: var(--text-dim);
}
.stat-chip strong { color: var(--text); }
.profile-actions { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.profile-bio { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); color: var(--text-dim); font-size: 14px; }
.profile-avatar-hint { margin-top: 10px; font-size: 12px; }
.merits-panel { margin-bottom: 16px; }
.narrow .panel { margin-bottom: 16px; }

/* ---------------- moderacao / admin ---------------- */
.report-main { flex: 1; min-width: 240px; }
.report-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--text-dim); }
.report-note { margin: 8px 0; font-size: 14px; }
.report-target { font-size: 13px; }
.report-target a { color: var(--accent); }
.report-row--reviewed, .report-row--dismissed { opacity: .65; }
.report-summary { font-size: 12px; color: var(--text-faint); cursor: pointer; }
.report-summary:hover { color: var(--accent); }
.report-form { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.report-form textarea {
    background: var(--bg); border: 1px solid var(--border); color: var(--text);
    border-radius: var(--radius); padding: 8px 10px; font: inherit; font-size: 13px;
}
.btn-sm { align-self: flex-start; padding: 5px 12px; font-size: 12px; border: 1px solid var(--border); background: var(--bg-card); color: var(--text); border-radius: var(--radius); cursor: pointer; }
.btn-sm:hover { border-color: var(--accent); color: var(--accent); }
.admin-grid { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.admin-item { border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-soft); }
.admin-item-head { display: flex; align-items: center; gap: 12px; justify-content: space-between; padding: 11px 14px; cursor: pointer; }
.admin-item-head:hover { background: var(--bg-card-hover); }
.admin-item-name { font-weight: 700; display: inline-flex; align-items: center; gap: 8px; }
.admin-color-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--gc, var(--accent)); display: inline-block; }
.admin-form { padding: 4px 14px 14px; }
.admin-filter { margin-top: 14px; display: flex; gap: 10px; align-items: flex-end; }
.admin-filter label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--text-dim); }
.admin-delete-form { padding: 0 14px 14px; }
.admin-item--new { border-style: dashed; margin-top: 10px; }
.admin-user-list { list-style: none; display: flex; flex-direction: column; gap: 6px; margin-top: 14px; }
.admin-user-row {
    display: flex; align-items: center; gap: 12px; padding: 8px 10px;
    background: var(--bg-soft); border: 1px solid rgba(255,255,255,.05); border-radius: var(--radius); flex-wrap: wrap;
}
.admin-user-name { min-width: 160px; flex: 1; display: flex; flex-direction: column; }
.admin-user-name:hover { color: var(--accent); }
.admin-user-form { display: inline-flex; gap: 8px; align-items: center; flex-wrap: wrap; }

.visually-hidden {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.topic-head-actions { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }

/* ---------------- responsivo (componentes novos) ---------------- */
@media (max-width: 960px) {
    .topic-row { grid-template-columns: auto 1fr; }
    .topic-row-stats { display: none; }
    .topic-row-last { display: none; }
    .cat-row { grid-template-columns: auto 1fr; }
    .cat-stats { flex-direction: row; gap: 12px; grid-column: 2; }
    .cat-last { grid-column: 2; }
    .post-author { flex-direction: row; align-items: center; gap: 12px; }
    .post-avatar-link { align-self: auto; }
    .author-stats { flex-direction: row; gap: 12px; flex-wrap: wrap; margin-top: 0; }
    .merit-badges--post { margin-top: 0; }
    .profile-actions { align-items: flex-start; }
    .topic-head-actions { align-items: flex-start; }
}
/* compactacao do header no mobile (padrao da rede: fita some cedo, drawer cobre).
   Especificidade tripla: o bloco H51 inline do _head declara display na fita e
   vem depois deste arquivo na cascata. */
@media (max-width: 700px) {
    .topbar .topbar-actions .btn-account { display: none; }
}
@media (max-width: 560px) {
    .btn-search-label { display: none; }
    .btn-action.btn-search { display: none; }
    .topbar-actions { gap: 4px; }
    .nav-ico { width: 34px; height: 34px; }
    .dm-msg { max-width: 92%; }
    .form-row { flex-direction: column; }
    .mod-move-form select { max-width: 160px; }
}
@media (max-width: 480px) {
    .brand-logo { width: 28px; height: 28px; }
    .brand { gap: 6px; }
    .brand-text { gap: 5px; }
    /* especificidade tripla: vence o bloco H51 inline (17px em <=640) */
    .topbar .brand .brand-main { font-size: 15px; letter-spacing: 1px; }
    .topbar .brand .brand-sub { font-size: 10px; letter-spacing: 1.4px; }
    .topbar-inner { gap: 8px; padding: 0 12px; }
    .topbar .topbar-inner { padding: 0 12px; }
    .lang-btn { padding: 6px 8px; }
    .nav-ico { width: 30px; height: 30px; }
    .nav-toggle { width: 34px; height: 34px; }
}


/* ---------------- menu de conta (desktop) ---------------- */
.account-box { position: relative; flex: none; }
.account-box .btn-account { cursor: pointer; }
.account-caret { font-size: 10px; opacity: .75; }
.account-menu {
    position: absolute; right: 0; top: calc(100% + 6px); min-width: 210px; z-index: 60;
    background: var(--bg-card); border: 1px solid var(--border); border-top: 2px solid var(--accent);
    border-radius: var(--radius); box-shadow: 0 12px 30px rgba(0, 0, 0, .45);
    overflow: hidden; display: none;
}
.account-menu.open { display: block; }
.account-item {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    width: 100%; padding: 10px 14px; font: inherit; font-size: 14px; text-align: left;
    color: var(--text); background: transparent; border: 0; cursor: pointer;
}
.account-item:hover { background: var(--bg-card-hover); color: var(--accent); }
.account-item--staff { color: #7eb8ff; }
.account-item--logout { color: var(--danger); border-top: 1px solid var(--border); }
.account-logout-form { margin: 0; }

/* ---------------- login (pagina intermediaria do SSO) ---------------- */
.login-steps {
    margin: 12px 0 16px; padding-left: 20px; color: var(--text-dim);
    font-size: 14px; display: flex; flex-direction: column; gap: 6px;
}
.login-panel-link { margin-top: 14px; }
.login-panel-link a { color: var(--accent); }

/* meta compacta das linhas de topico: reaparece quando as colunas somem */
.topic-meta-mobile { display: none; }
@media (max-width: 960px) {
    .topic-meta-mobile { display: inline; }
}


/* ==== Melhorias 2026-08-09: a11y, nao-lidos, resolvido, boas-vindas, dossie ==== */

/* Acessibilidade: skip-link + foco visivel + reduced motion */
.skip-link {
    position: absolute; left: 8px; top: -48px; z-index: 200;
    background: var(--bg-card); color: var(--text); border: 1px solid var(--accent);
    border-radius: var(--radius); padding: 8px 14px; font-size: 13px; transition: top .15s;
}
.skip-link:focus { top: 8px; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible,
select:focus-visible, summary:focus-visible {
    outline: 2px solid var(--accent); outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important; animation-iteration-count: 1 !important;
        transition-duration: .01ms !important; scroll-behavior: auto !important;
    }
}

/* Marcador de nao lidos nas listas de topicos */
.topic-row--unread .topic-row-title { color: var(--text); }
.topic-row--unread .topic-row-title { font-weight: 700; }
.topic-unread-dot {
    display: inline-block; width: 8px; height: 8px; border-radius: 50%;
    background: var(--accent); margin-right: 6px; vertical-align: 2px; flex: none;
}

/* Topico resolvido (melhor resposta em categorias de suporte) */
.badge-solved { background: rgba(80, 160, 90, .16); color: #7dbd88; border: 1px solid rgba(80, 160, 90, .4); }
.solution-card {
    display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 10px;
    margin: -6px 0 14px; padding: 12px 16px;
    background: rgba(80, 160, 90, .07); border: 1px solid rgba(80, 160, 90, .3);
    border-radius: var(--radius);
}
.solution-label { color: #7dbd88; font-weight: 700; font-size: 13px; white-space: nowrap; }
.solution-link { color: var(--text); flex: 1 1 240px; min-width: 0; }
.solution-link:hover { color: #7dbd88; }
.post-action--solve { color: var(--text-dim); }
.post-action--solve:hover, .post-action--solve-on { color: #7dbd88; }
.post-replying--gone { color: var(--text-faint); text-decoration: line-through; cursor: default; }
.support-filter { margin-bottom: 14px; }

/* Checklist de boas-vindas (home, conta nova) */
.welcome-panel { border-color: var(--accent); }
.welcome-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.welcome-head .panel-title { margin: 0; }
.wc-dismiss { height: 30px; padding: 0 10px; }
.wc-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.wc-step { display: flex; align-items: baseline; gap: 10px; color: var(--text-dim); }
.wc-step a { color: var(--text); }
.wc-step a:hover { color: var(--accent); }
.wc-mark {
    display: inline-flex; align-items: center; justify-content: center; flex: none;
    width: 20px; height: 20px; border-radius: 50%; font-size: 12px;
    border: 1px solid var(--border); color: var(--text-faint); background: var(--bg-card);
}
.wc-mark--done { border-color: rgba(80, 160, 90, .5); color: #7dbd88; }

/* Dossie de moderacao no perfil (staff) */
.mod-dossier { border-color: var(--border); }
.stat-chip--alert { border-color: #b3564a; color: #d98a7f; }
.mini-item--deleted { opacity: .65; }

/* Rascunho restaurado (composer) */
.draft-note { font-size: 12.5px; margin: 6px 0 0; }
.pm-disabled-note { padding: 12px 0 0; }
