/* ==========================================================================
   Legend — tema editorial dark-fantasy para DragonCMS
   Topo horizontal + hero cinematográfico + seções largas.

   IMPORTANTE: os nomes de classe de componente (.card, .btn, .row-item,
   .badge-*, .field, .panel-layout, .data-table…) são os MESMOS das outras
   temas. É esse contrato que faz as ~46 páginas funcionarem sem reescrita —
   ao criar componente novo, siga o vocabulário existente.
   ========================================================================== */

:root {
    --ink: #05070d;
    --ink-2: #090d16;
    --surface: #0e1420;
    --surface-2: #141c2b;
    --surface-3: #1b2436;
    --line: #1e2839;
    --line-soft: #161e2c;

    --azure: #5aa9ff;
    --azure-bright: #8cc6ff;
    --azure-deep: #1e5fa8;
    --cyan: #4fe3e0;
    --gold: #d9a441;
    --gold-bright: #f0c96c;

    --text: #dbe4f2;
    --text-dim: #8d9bb3;
    --text-faint: #5c6880;

    --success: #43d39e;
    --danger: #f0616d;

    --radius: 14px;
    --radius-sm: 8px;
    --shadow: 0 24px 60px -24px rgba(0, 0, 0, .85);
    --font-display: 'Cinzel', Georgia, serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
    --transition: all .25s cubic-bezier(.4, 0, .2, 1);

    /* aliases consumidos pelas páginas herdadas */
    --bg: var(--ink);
    --bg-soft: var(--ink-2);
    --accent: var(--azure);
    --accent-2: var(--cyan);
    --accent-soft: rgba(90, 169, 255, .12);
    --accent-2-soft: rgba(79, 227, 224, .12);
    --gold-soft: rgba(217, 164, 65, .14);
    --success-soft: rgba(67, 211, 158, .14);
    --danger-soft: rgba(240, 97, 109, .14);
    --border: var(--line);
    --border-strong: #2b384f;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--azure-deep); }

body {
    background: var(--ink);
    color: var(--text-dim);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.65;
    min-height: 100vh;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; transition: var(--transition); }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4, h5 { font-family: var(--font-display); color: #fff; line-height: 1.15; font-weight: 700; }
p { margin: 0; }
::selection { background: var(--azure-deep); color: #fff; }

.container, .wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 28px; }

.skip-link {
    position: absolute; left: -9999px; top: 0; background: var(--azure);
    color: #04121f; padding: 10px 18px; z-index: 999; font-weight: 700; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Faixa superior ---------- */
.realm-bar {
    background: var(--ink-2); border-bottom: 1px solid var(--line-soft);
    font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--text-faint);
}
.realm-bar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; height: 38px; }
.realm-bar b { color: var(--azure); font-weight: 600; }

/* ---------- Cabeçalho ---------- */
.site-header {
    position: sticky; top: 0; z-index: 90;
    background: rgba(5, 7, 13, .88);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 28px; height: 78px; }
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand img { max-height: 40px; width: auto; }
.brand span {
    font-family: var(--font-display); font-size: 11px; letter-spacing: .3em;
    color: var(--text-faint); text-transform: uppercase; padding-left: 12px;
    border-left: 1px solid var(--line);
}
.site-header nav { display: flex; align-items: center; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.site-header nav a {
    padding: 9px 14px; font-size: 13px; font-weight: 600; color: var(--text-dim);
    border-radius: var(--radius-sm); position: relative;
}
.site-header nav a:hover { color: #fff; background: rgba(255, 255, 255, .04); }
.site-header nav a[aria-current="page"], .site-header nav a.active { color: var(--azure-bright); }
.site-header nav a[aria-current="page"]::after, .site-header nav a.active::after {
    content: ''; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px;
    background: var(--azure); border-radius: 2px;
}
.account-menu-link { border: 1px solid var(--line); }
.header-download { flex-shrink: 0; }
.menu-toggle {
    display: none; margin-left: auto; background: none; border: 1px solid var(--line);
    color: var(--text); padding: 8px 14px; border-radius: var(--radius-sm);
    font-family: var(--font-body); font-size: 12px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .1em; cursor: pointer; gap: 8px;
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); background: var(--ink); }
.hero-art {
    position: absolute; inset: 0;
    background:
        radial-gradient(1000px 700px at 78% 45%, rgba(90, 169, 255, .20), transparent 62%),
        radial-gradient(700px 500px at 12% 15%, rgba(79, 227, 224, .10), transparent 60%),
        var(--hero-image, none) right 6% center / auto 92% no-repeat,
        linear-gradient(160deg, #070b14 0%, #05070d 60%);
    pointer-events: none;
}
.hero-art::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(90deg, var(--ink) 4%, rgba(5, 7, 13, .78) 42%, rgba(5, 7, 13, .25) 100%);
}
.hero-inner { position: relative; z-index: 2; display: flex; align-items: center; gap: 40px; padding: 84px 28px 92px; min-height: 520px; }
.hero-copy { max-width: 620px; }
.eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: 11px; font-weight: 700; letter-spacing: .26em; text-transform: uppercase; color: var(--cyan);
}
.diamond { width: 7px; height: 7px; background: var(--cyan); transform: rotate(45deg); display: inline-block; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); margin-top: 18px; letter-spacing: -.01em; }
.hero h1 em { font-style: normal; color: var(--azure-bright); display: block; }
.ornament { display: flex; align-items: center; gap: 14px; margin: 24px 0; color: var(--gold); }
.ornament::before, .ornament::after { content: ''; height: 1px; flex: 0 0 90px; background: linear-gradient(90deg, transparent, var(--gold)); }
.ornament::after { background: linear-gradient(270deg, transparent, var(--gold)); }
.hero-description { font-size: 1.05rem; color: var(--text-dim); max-width: 520px; }
.hero-actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: 32px; }
.hero-link { font-size: 13px; font-weight: 600; color: var(--text-dim); }
.hero-link:hover { color: var(--azure-bright); }
.hero-caption { margin-top: 34px; font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: var(--text-faint); }
.hero-seal {
    margin-left: auto; flex-shrink: 0; text-align: center; padding: 26px 30px;
    border: 1px solid rgba(217, 164, 65, .35); border-radius: var(--radius);
    background: rgba(5, 7, 13, .55); backdrop-filter: blur(6px);
}
.hero-seal span { display: block; font-size: 9px; letter-spacing: .26em; text-transform: uppercase; color: var(--text-faint); }
.hero-seal strong { display: block; font-family: var(--font-display); font-size: 3rem; color: var(--gold-bright); line-height: 1; margin: 6px 0; }
.hero-seal small { font-size: 10px; letter-spacing: .34em; text-transform: uppercase; color: var(--text-faint); }

.embers { position: absolute; inset: 0; pointer-events: none; z-index: 1; overflow: hidden; }
.embers i {
    position: absolute; bottom: -12px; width: 3px; height: 3px; border-radius: 50%;
    background: var(--cyan); opacity: .5; animation: rise 14s linear infinite;
}
.embers i:nth-child(1) { left: 12%; animation-delay: 0s; }
.embers i:nth-child(2) { left: 32%; animation-delay: 3s; background: var(--azure); }
.embers i:nth-child(3) { left: 54%; animation-delay: 6s; }
.embers i:nth-child(4) { left: 71%; animation-delay: 9s; background: var(--gold); }
.embers i:nth-child(5) { left: 88%; animation-delay: 12s; }
@keyframes rise {
    0% { transform: translateY(0) scale(1); opacity: 0; }
    12% { opacity: .6; }
    100% { transform: translateY(-560px) scale(.3); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .embers { display: none; } }

/* ---------- Faixa de status do servidor ---------- */
.server-strip {
    display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px;
    background: var(--line); border: 1px solid var(--line);
    border-radius: var(--radius); overflow: hidden; margin: -34px auto 0; position: relative; z-index: 5;
    max-width: 1240px;
}
.server-strip > * { background: var(--surface); padding: 18px 22px; }
.server-strip span { display: block; font-size: 9px; letter-spacing: .2em; text-transform: uppercase; color: var(--text-faint); }
.server-strip strong { display: block; font-family: var(--font-display); font-size: 1.15rem; color: #fff; margin-top: 4px; }
.server-strip a:hover strong { color: var(--azure-bright); }
.server-presence { display: flex; align-items: center; gap: 14px; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; background: var(--success); box-shadow: 0 0 10px var(--success); }
.status-dot.unknown { background: var(--text-faint); box-shadow: none; }
.status-dot.off { background: var(--danger); box-shadow: 0 0 10px var(--danger); }

/* ---------- Conteúdo ---------- */
.page-content { padding: 64px 28px 80px; }
.section-heading { display: flex; align-items: center; gap: 24px; margin-bottom: 30px; flex-wrap: wrap; }
.section-heading h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-top: 6px; }
.heading-rule { flex: 1; height: 1px; background: linear-gradient(90deg, var(--line), transparent); min-width: 40px; }
.text-link { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--azure); white-space: nowrap; }
.text-link:hover { color: var(--azure-bright); }
.section-title { font-family: var(--font-display); font-size: 1.8rem; color: #fff; margin-bottom: 8px; }
.section-sub { color: var(--text-dim); margin-bottom: 26px; }

.notice {
    display: flex; align-items: center; gap: 12px; padding: 14px 18px; margin-bottom: 36px;
    border: 1px solid rgba(217, 164, 65, .3); background: rgba(217, 164, 65, .06);
    border-radius: var(--radius-sm); color: var(--gold-bright); font-size: 13px;
}

/* ---------- Notícias ---------- */
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 24px; }
.news-card {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    overflow: hidden; transition: var(--transition); display: flex; flex-direction: column;
}
.news-card:hover { border-color: var(--azure-deep); transform: translateY(-4px); box-shadow: var(--shadow); }
.news-art { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-2); }
.news-art img { width: 100%; height: 100%; object-fit: cover; }
/* Sem imagem cadastrada, a arte vira um brasão gerado por CSS em vez de buraco */
.news-art.is-empty {
    background:
        radial-gradient(420px 220px at 50% 120%, rgba(90, 169, 255, .22), transparent 70%),
        linear-gradient(140deg, var(--surface-2), var(--ink-2));
}
.news-art.is-empty::after {
    content: '◆'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    font-size: 30px; color: rgba(217, 164, 65, .45);
}
.news-art > span {
    position: absolute; top: 12px; left: 12px; z-index: 2;
    background: rgba(5, 7, 13, .82); border: 1px solid var(--line);
    color: var(--cyan); font-size: 9px; font-weight: 700; letter-spacing: .16em;
    text-transform: uppercase; padding: 4px 10px; border-radius: 4px;
}
.news-body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-meta { display: flex; justify-content: space-between; gap: 12px; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-faint); }
.news-body h3 { font-size: 1.1rem; }
.news-body h3 a:hover { color: var(--azure-bright); }
.excerpt { font-size: .9rem; color: var(--text-dim); flex: 1; }

/* ---------- Ranking + selo de guilda ---------- */
.ranking-section, .classes-section { margin-top: 72px; }
.ranking-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.ranking-table-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.ranking-table-wrap table { width: 100%; border-collapse: collapse; }
.ranking-table-wrap caption {
    text-align: left; padding: 18px 22px; font-family: var(--font-display); font-size: 1.05rem;
    color: #fff; border-bottom: 1px solid var(--line); background: var(--surface-2);
}
.ranking-table-wrap th {
    text-align: left; padding: 12px 22px; font-size: 10px; letter-spacing: .16em;
    text-transform: uppercase; color: var(--text-faint); border-bottom: 1px solid var(--line);
}
.ranking-table-wrap td { padding: 14px 22px; border-bottom: 1px solid var(--line-soft); color: var(--text); font-size: .92rem; }
.ranking-table-wrap tbody tr:last-child td { border-bottom: none; }
.ranking-table-wrap tbody tr:hover td { background: rgba(90, 169, 255, .04); }
.rank-number {
    display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 30px;
    font-family: var(--font-display); font-weight: 700; color: var(--text-faint);
    border: 1px solid var(--line); border-radius: 6px; font-size: .85rem;
}
.rank-number.podium-0 { color: #06121d; background: linear-gradient(135deg, var(--gold-bright), var(--gold)); border-color: transparent; }
.rank-number.podium-1 { color: #06121d; background: linear-gradient(135deg, #e6ecf5, #aab6c8); border-color: transparent; }
.rank-number.podium-2 { color: #1a0f06; background: linear-gradient(135deg, #d59a63, #a86b35); border-color: transparent; }

.siege-card {
    background:
        radial-gradient(500px 300px at 80% 0%, rgba(90, 169, 255, .16), transparent 65%),
        linear-gradient(180deg, var(--surface-2), var(--ink-2));
    border: 1px solid rgba(217, 164, 65, .28); border-radius: var(--radius); padding: 28px;
}
.siege-card h3 { font-size: 1.5rem; margin: 14px 0 12px; }
.siege-card h3 em { font-style: normal; color: var(--gold-bright); }
.siege-card p { font-size: .9rem; margin-bottom: 22px; }

/* ---------- Faixa de download ---------- */
.download-banner {
    margin-top: 72px; display: flex; align-items: center; justify-content: space-between;
    gap: 30px; flex-wrap: wrap; padding: 44px;
    background:
        radial-gradient(700px 300px at 20% 0%, rgba(79, 227, 224, .14), transparent 70%),
        linear-gradient(120deg, var(--surface-2), var(--ink-2));
    border: 1px solid var(--line); border-radius: var(--radius);
}
.download-banner h2 { font-size: 2rem; margin: 10px 0 8px; }

/* ---------- Botões ---------- */
.button, .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 13px 26px; border-radius: var(--radius-sm); border: 1px solid var(--line);
    background: var(--surface-2); color: var(--text);
    font-family: var(--font-body); font-size: 12px; font-weight: 700;
    letter-spacing: .1em; text-transform: uppercase; cursor: pointer; transition: var(--transition);
}
.button:hover, .btn:hover { border-color: var(--azure-deep); color: #fff; transform: translateY(-2px); }
.button.primary, .btn-primary {
    background: linear-gradient(135deg, var(--azure) 0%, var(--azure-deep) 100%);
    border-color: transparent; color: #04121f;
    box-shadow: 0 10px 28px -12px rgba(90, 169, 255, .7);
}
.button.primary:hover, .btn-primary:hover { filter: brightness(1.1); color: #04121f; }
.button.secondary, .btn-outline { background: transparent; }
.button.secondary:hover, .btn-outline:hover { border-color: var(--gold); color: var(--gold-bright); }
.btn-cyan { background: linear-gradient(135deg, var(--cyan), #189e9c); border-color: transparent; color: #04211f; }
.btn-danger { background: linear-gradient(135deg, var(--danger), #a3323c); border-color: transparent; color: #fff; }
.btn-sm { padding: 8px 16px; font-size: 11px; }
.btn-block { width: 100%; }
.btn[disabled], .button[disabled] { opacity: .5; cursor: not-allowed; transform: none; }

/* ---------- Vocabulário compartilhado com as demais páginas ---------- */
.flex { display: flex; }
.flex-c { display: flex; align-items: center; }
.flex-s { display: flex; align-items: center; justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.text-center { text-align: center; }
.muted { color: var(--text-dim); }
.faint { color: var(--text-faint); }
.hidden { display: none !important; }
.empty-note { text-align: center; padding: 44px 16px; color: var(--text-faint); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-bottom: 22px; }
.card-glow { box-shadow: var(--shadow); }
.card-header {
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line);
}
.card-header h3 { font-size: 1.05rem; }
.card-header a.more, .card-header .more { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--azure); }

.row-list { display: flex; flex-direction: column; gap: 8px; }
.row-item {
    display: flex; align-items: center; gap: 14px; padding: 12px 16px;
    background: var(--ink-2); border: 1px solid var(--line-soft); border-radius: var(--radius-sm); transition: var(--transition);
}
.row-item:hover { border-color: var(--azure-deep); background: var(--surface-2); }
.row-rank { width: 28px; text-align: center; font-family: var(--font-display); font-weight: 700; color: var(--text-faint); flex-shrink: 0; }
.row-rank.top1 { color: var(--gold-bright); }
.row-rank.top2 { color: #d3dcea; }
.row-rank.top3 { color: #c98a52; }
.row-avatar { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; background: var(--surface-2); flex-shrink: 0; }
.row-main { flex: 1; min-width: 0; }
.row-title { font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-sub { font-size: 11px; color: var(--text-faint); }
.row-value { font-family: var(--font-display); font-weight: 700; color: var(--azure-bright); white-space: nowrap; }
.list-head {
    display: flex; padding: 0 16px 10px; font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
    color: var(--text-faint); border-bottom: 1px solid var(--line); margin-bottom: 10px;
}
.info-list li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 4px; border-bottom: 1px solid var(--line-soft); }
.info-list li span:last-child { color: #fff; font-weight: 600; text-align: right; }

table.data-table { width: 100%; border-collapse: collapse; }
table.data-table th {
    text-align: left; padding: 12px 16px; font-size: 10px; letter-spacing: .14em;
    text-transform: uppercase; color: var(--text-faint); border-bottom: 1px solid var(--line);
}
table.data-table td { padding: 14px 16px; border-bottom: 1px solid var(--line-soft); font-size: .9rem; color: var(--text); }
table.data-table tr:last-child td { border-bottom: none; }
table.data-table tbody tr:hover td { background: rgba(90, 169, 255, .04); }

.tabs-nav { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.tab-btn {
    padding: 9px 18px; border-radius: var(--radius-sm); font-size: 11px; font-weight: 700;
    letter-spacing: .1em; text-transform: uppercase; color: var(--text-dim);
    background: var(--surface); border: 1px solid var(--line); cursor: pointer; font-family: var(--font-body);
}
.tab-btn:hover { border-color: var(--azure-deep); color: #fff; }
.tab-btn.active { background: linear-gradient(135deg, var(--azure-deep), #0f3a68); border-color: var(--azure); color: #fff; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

.badge {
    display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 4px;
    font-size: 9px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}
.badge-accent { background: rgba(90, 169, 255, .16); color: var(--azure-bright); }
.badge-cyan { background: rgba(79, 227, 224, .16); color: var(--cyan); }
.badge-gold { background: rgba(217, 164, 65, .18); color: var(--gold-bright); }
.badge-success { background: rgba(67, 211, 158, .16); color: var(--success); }
.badge-danger { background: rgba(240, 97, 109, .16); color: var(--danger); }
.badge-muted { background: rgba(255, 255, 255, .06); color: var(--text-faint); }

.field { margin-bottom: 18px; }
.field label { display: block; font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 8px; }
.field input, .field select, .field textarea, .input-control {
    width: 100%; background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius-sm);
    padding: 12px 15px; color: #fff; font-family: var(--font-body); font-size: .92rem; transition: var(--transition);
}
.field input:focus, .field select:focus, .field textarea:focus, .input-control:focus {
    outline: none; border-color: var(--azure); box-shadow: 0 0 0 3px rgba(90, 169, 255, .15);
}
.field textarea { min-height: 120px; resize: vertical; }
.field-hint { font-size: 11px; color: var(--text-faint); margin-top: 6px; }
.checkbox-row { display: flex; align-items: center; gap: 9px; font-size: .88rem; color: var(--text-dim); margin-bottom: 12px; }
.checkbox-row input { width: auto; }
select option { background: var(--surface); color: #fff; }

.alert { padding: 14px 18px; border-radius: var(--radius-sm); font-size: .88rem; font-weight: 500; margin-bottom: 20px; border-left: 3px solid; }
.alert-success { background: rgba(67, 211, 158, .1); color: #8fe8c8; border-color: var(--success); }
.alert-danger { background: rgba(240, 97, 109, .1); color: #f6a3aa; border-color: var(--danger); }

.auth-shell { max-width: 460px; margin: 0 auto; padding: 48px 20px 64px; }
.auth-shell h1 { font-size: 1.8rem; text-align: center; margin-bottom: 26px; }
.auth-links { display: flex; justify-content: space-between; gap: 16px; margin-top: 18px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.auth-links a:hover { color: var(--azure-bright); }

.stat-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }
.stat-pill { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 22px; min-width: 120px; text-align: center; }
.stat-pill b { display: block; font-family: var(--font-display); font-size: 1.5rem; color: #fff; }
.stat-pill span { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-faint); }

.pkg-card { position: relative; cursor: pointer; display: block; }
.pkg-card input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pkg-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; height: 100%; transition: var(--transition); }
.pkg-card input:checked ~ .pkg-box { border-color: var(--azure); background: rgba(90, 169, 255, .07); }
.pkg-price { font-family: var(--font-display); font-size: 1.9rem; color: #fff; }
.pkg-price sup { font-size: .8rem; color: var(--text-faint); margin-right: 3px; }

.item-slot {
    aspect-ratio: 1; background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center; padding: 6px; position: relative;
}
.item-slot img { max-width: 100%; max-height: 100%; object-fit: contain; }
.item-slot .empty-label { font-size: 7px; text-transform: uppercase; color: var(--text-faint); text-align: center; font-weight: 700; }
.item-grid { display: grid; gap: 8px; }

.panel-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 24px; align-items: start; }
.panel-sidebar { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; position: sticky; top: 96px; }
.panel-account { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; margin-bottom: 12px; border-bottom: 1px solid var(--line); }
.panel-account .avatar-circle {
    width: 44px; height: 44px; border-radius: 10px; flex-shrink: 0;
    background: linear-gradient(135deg, var(--azure), var(--azure-deep));
    display: flex; align-items: center; justify-content: center; font-weight: 700; color: #04121f; font-family: var(--font-display);
}
.panel-account h4 { font-size: .95rem; }
.panel-account .status { font-size: 9px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.panel-group-label { font-size: 9px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--text-faint); padding: 16px 10px 6px; }
.panel-group-label:first-child { padding-top: 0; }
.panel-link { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius-sm); font-size: .88rem; color: var(--text-dim); }
.panel-link:hover { background: rgba(255, 255, 255, .04); color: #fff; }
.panel-link.active { background: rgba(90, 169, 255, .12); color: var(--azure-bright); }
.panel-link i { width: 16px; text-align: center; }
.panel-content { min-width: 0; }

.chat-msg { display: flex; gap: 12px; margin-bottom: 16px; }
.chat-msg .avatar-circle { width: 34px; height: 34px; border-radius: 8px; background: var(--surface-2); flex-shrink: 0; }
.chat-bubble { background: var(--surface-2); border-radius: var(--radius-sm); padding: 14px 16px; max-width: 80%; font-size: .88rem; }
.chat-msg.mine { flex-direction: row-reverse; }
.chat-msg.mine .chat-bubble { background: rgba(90, 169, 255, .1); color: var(--azure-bright); }

.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 28px; flex-wrap: wrap; }
.pagination a, .pagination span {
    display: flex; align-items: center; justify-content: center; min-width: 36px; height: 36px;
    border-radius: var(--radius-sm); font-size: .85rem; font-weight: 600;
    background: var(--surface); border: 1px solid var(--line); color: var(--text-dim);
}
.pagination a:hover { border-color: var(--azure-deep); color: #fff; }
.pagination .active { background: linear-gradient(135deg, var(--azure), var(--azure-deep)); border-color: transparent; color: #04121f; }

.progress { height: 6px; background: rgba(255, 255, 255, .06); border-radius: 999px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: linear-gradient(90deg, var(--azure-deep), var(--cyan)); }

.modal-overlay { position: fixed; inset: 0; background: rgba(3, 5, 10, .82); backdrop-filter: blur(4px); z-index: 999; align-items: center; justify-content: center; padding: 16px; }
.modal-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; max-width: 440px; width: 100%; position: relative; box-shadow: var(--shadow); }
.modal-close { position: absolute; top: 16px; right: 16px; background: none; border: none; color: var(--text-faint); font-size: 1rem; cursor: pointer; }

/* Tooltip de itens: o CSS é compartilhado entre temas e vem numa paleta
   própria; realinhado aqui ao azul/ouro deste tema. */
.item-tooltip.item-tooltip { background: linear-gradient(180deg, var(--surface-2), var(--ink-2)); border-color: rgba(90, 169, 255, .28); box-shadow: var(--shadow); }
.item-tooltip__name.item-tooltip__name { color: var(--gold-bright); font-family: var(--font-display); }
.item-tooltip__line.item-tooltip__line { color: var(--text); }
.item-tooltip__line--bonus.item-tooltip__line--bonus { color: var(--cyan); }
.item-tooltip__empty.item-tooltip__empty { color: var(--text-faint); }

/* ---------- Rodapé ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--ink-2); padding: 48px 0 40px; margin-top: 80px; }
.footer-inner { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.footer-brand img { max-height: 40px; width: auto; opacity: .9; }
.footer-inner > div p { color: var(--text-dim); font-size: .88rem; }
.footer-inner > div small { color: var(--text-faint); font-size: .76rem; }
.site-footer nav { margin-left: auto; display: flex; gap: 20px; flex-wrap: wrap; font-size: .85rem; }
.site-footer nav a:hover { color: var(--azure-bright); }
.footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; margin-bottom: 32px; }
.footer-cols h4 { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 14px; }
.footer-cols a { display: block; font-size: .85rem; color: var(--text-dim); padding: 4px 0; }
.footer-cols a:hover { color: var(--azure-bright); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; padding-top: 22px; border-top: 1px solid var(--line); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-faint); }
.social-row { display: flex; gap: 8px; }
.social-row a { width: 36px; height: 36px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; color: var(--text-dim); }
.social-row a:hover { border-color: var(--azure-deep); color: var(--azure-bright); }

/* ---------- Responsivo ---------- */
@media (max-width: 1100px) {
    .server-strip { grid-template-columns: repeat(2, 1fr); }
    .ranking-layout { grid-template-columns: minmax(0, 1fr); }
    .panel-layout { grid-template-columns: minmax(0, 1fr); }
    .panel-sidebar { position: static; }
    .hero-seal { display: none; }
    .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
    .site-header nav { display: none; }
    .site-header nav.open {
        display: flex; flex-direction: column; align-items: stretch; gap: 2px;
        position: absolute; top: 78px; left: 0; right: 0; padding: 16px 28px 22px;
        background: var(--ink-2); border-bottom: 1px solid var(--line);
    }
    .site-header nav.open a { padding: 13px 10px; border-bottom: 1px solid var(--line-soft); }
    .menu-toggle { display: inline-flex; align-items: center; }
    .header-download { display: none; }
    .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
    .container, .wrap { padding: 0 18px; }
    .hero-inner { padding: 56px 18px 64px; min-height: auto; }
    .hero-art { background-position: right -30% center; opacity: .55; }
    .page-content { padding: 44px 18px 60px; }
    .server-strip { grid-template-columns: minmax(0, 1fr); margin-top: -20px; }
    .realm-bar .container span:last-child { display: none; }
    .download-banner { padding: 30px; }
    .footer-cols { grid-template-columns: repeat(2, 1fr); }
    .grid-4 { grid-template-columns: minmax(0, 1fr); }
    .site-footer nav { margin-left: 0; }
}
