/* ============================================================
   Tema Tibia clássico (7.x) — website OTServer
   Pedra escura + pergaminho + dourado, com sprites reais do
   cliente em public/img/sprites/ (extraídos por tools/extract_sprites.py)
   ============================================================ */

* { box-sizing: border-box; }

/* reserva sempre o espaço da barra de rolagem vertical: sem isso, alternar
   entre páginas curtas (sem scroll) e longas (com scroll) desloca o
   .wrapper centralizado e muda a largura percebida da página */
html { overflow-y: scroll; }

body {
    margin: 0;
    background: #0a1220 url('../img/bg_portal.jpg') center/cover fixed no-repeat;
    color: #c9d8ec;
    font-family: Verdana, Arial, sans-serif;
    font-size: 15px;
}

/* veu escuro sobre o wallpaper para manter a leitura confortável */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(10, 18, 32, .38);
    pointer-events: none;
    z-index: -1;
}

a { color: #5182f5; text-decoration: none; }
a:hover { color: #9ed0ff; text-decoration: underline; }

/* Sprites: sempre nítidos (pixel art). */
img.sprite, .pixelated, .auth-art img, .offer-icon img, .voc-icon img {
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

.wrapper {
    width: 95%;
    max-width: 1800px;
    margin: 24px auto;
    padding: 0 18px;
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 48px);
}

/* ---------- Cabeçalho ----------
   Arte public/img/header_logo.jpg (5376x480, proporção ~11:1) exibida
   com cover: sem distorção, logo completa e central; o crop do cover
   cai só nas laterais de paisagem em telas estreitas.
   Altura reduzida pela metade (até 160px). */
.site-header {
    text-align: center;
    border: 2px solid #2a4a6e;
    border-bottom: 1px solid #1c3050;
    background: url('../img/header_logo.jpg') center/cover no-repeat,
                linear-gradient(#16233a, #0e1626 60%, #0a1220);
    box-shadow: inset 0 0 30px rgba(0,0,0,.6), 0 4px 10px rgba(0,0,0,.5);
    padding: 0;
    height: clamp(80px, 8.5vw, 160px);
    border-radius: 8px 8px 0 0;
    position: relative;
}
.site-header h1 {
    margin: 0;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 34px;
    font-variant: small-caps;
    color: #e3c26a;
    text-shadow: 0 2px 0 #000, 0 0 14px rgba(81,130,245,.35);
    letter-spacing: 4px;
}
.site-header h1 a { color: inherit; text-decoration: none; }
.site-header .subtitle {
    margin: 4px 0 0;
    color: #7a98c0;
    font-size: 12px;
    letter-spacing: 1px;
    font-variant: small-caps;
}
.site-header .site-logo {
    max-width: 340px;
    height: auto;
    image-rendering: pixelated;
}
/* link invisivel sobre o header inteiro (clicar na logo leva ao Inicio) */
.site-header .site-home {
    position: absolute;
    left: 0; right: 0; top: 0; bottom: 0;
    display: block;
}

/* ---------- Corpo: menu lateral + conteúdo ---------- */
.layout-body {
    display: flex;
    align-items: stretch;
    flex: 1;
}

/* ---------- Navegação lateral ---------- */
/* coluna fixa de 215px à esquerda do conteúdo; os painéis das bordas da
   tela são elementos separados, fora do .wrapper (ver .edge-card) */
.site-nav {
    flex: 0 0 215px;
    width: 215px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: rgba(12, 20, 32, .92);
    border: 2px solid #2a4a6e;
    border-top: none;
    border-right: none;
    padding: 14px 10px;
    box-shadow: inset 0 0 24px rgba(0,0,0,.5);
    border-radius: 0 0 0 6px;
}
.nav-group { display: flex; flex-direction: column; gap: 5px; }
.nav-title {
    font-variant: small-caps;
    letter-spacing: 1.6px;
    font-size: 11px;
    color: #c5a35e;
    padding: 0 6px 5px;
    border-bottom: 1px solid #1c3050;
    margin-bottom: 3px;
    user-select: none;
}
details.nav-group > summary.nav-title {
    cursor: pointer;
    list-style: none;
    position: relative;
}
details.nav-group > summary.nav-title::-webkit-details-marker { display: none; }
details.nav-group > summary.nav-title::after {
    content: '\25BE';
    position: absolute;
    right: 8px;
    color: #4a73a8;
    transition: transform .15s ease;
}
details.nav-group:not([open]) > summary.nav-title::after { transform: rotate(-90deg); }

.site-nav a.nav-link {
    display: block;
    padding: 9px 12px 9px 11px;
    background: transparent;
    border: 1px solid transparent;
    border-left: 3px solid transparent;
    border-radius: 4px;
    color: #c4d5ee;
    font-weight: bold;
    font-size: 13px;
    font-variant: small-caps;
    letter-spacing: .6px;
    text-align: left;
}
.site-nav a.nav-link:hover {
    background: rgba(81, 130, 245, .10);
    border-left-color: #3f6db0;
    color: #e8f1ff;
    text-decoration: none;
}
.site-nav a.nav-link.active {
    background: linear-gradient(90deg, rgba(74, 115, 190, .5), rgba(74, 115, 190, .08));
    border-color: rgba(90, 150, 220, .35);
    border-left-color: #8ab8f4;
    color: #fff;
    box-shadow: inset 0 0 14px rgba(81, 130, 245, .10);
}
.site-nav a.nav-link.nav-logout { color: #d8a0a6; }
.site-nav a.nav-link.nav-logout:hover {
    background: rgba(154, 74, 88, .15);
    border-left-color: #a05060;
    color: #ffdfe3;
}

/* ---------- Conteúdo ---------- */
.content {
    background: rgba(16, 24, 38, .93);
    border: 2px solid #2a4a6e;
    border-top: none;
    padding: 20px;
    min-height: 480px;
    display: flex;
    flex-direction: column;
    /* flex: 1 faz a área de conteúdo ocupar toda a largura livre ao lado
       do menu — sem isso ela encolhe para a largura do próprio conteúdo
       e cada página fica com uma largura diferente */
    flex: 1;
    min-width: 0;
    /* o canto inferior direito do painel pertence ao .side-rail; quando o
       rail some (< 1280px) o radius volta ao .content via media query */
    border-radius: 0;
    box-shadow: inset 0 0 40px rgba(0,0,0,.5);
}
/* páginas curtas/estreitas: centraliza o bloco na área de conteúdo
   (vertical e horizontalmente) sem esticar o conteúdo */
.page-fill {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.page-fill > * { max-width: 100%; }
.content h2 {
    font-family: Georgia, 'Times New Roman', serif;
    font-variant: small-caps;
    color: #e3c26a;
    text-shadow: 0 1px 0 #000;
    border-bottom: 2px solid #2a4a6e;
    padding-bottom: 6px;
    margin-top: 0;
    letter-spacing: 1px;
}
.content h3 { color: #cfae58; font-variant: small-caps; }

.site-footer {
    text-align: center;
    color: #4a6a90;
    font-size: 11px;
    padding: 10px 0;
}

/* ---------- Banner hero (sprites reais) ---------- */
.hero {
    margin: 4px 0 18px;
    text-align: center;
}
.hero img {
    max-width: 100%;
    height: auto;
    border: 2px solid #2a4a6e;
    border-radius: 4px;
    box-shadow: 0 6px 16px rgba(0,0,0,.6), inset 0 0 0 1px #000;
}

/* ---------- Flash messages ---------- */
.flash {
    padding: 10px 14px;
    margin-bottom: 12px;
    border-radius: 4px;
    border: 1px solid;
}
.flash-success { background: #1d3a14; border-color: #4a7a2e; color: #b8e08a; }
.flash-error   { background: #101a31; border-color: #23396b; color: #5385fa; }
.flash-info    { background: #14303a; border-color: #2e5a7a; color: #8ac0e0; }

/* ---------- Tabelas ---------- */
table.table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0;
}
table.table th {
    background: #111c34;
    color: #d4af37;
    font-variant: small-caps;
    letter-spacing: .5px;
    border: 1px solid #2a4a6e;
    padding: 8px 10px;
    text-align: left;
}
table.table td {
    border: 1px solid #14203d;
    padding: 8px 10px;
    vertical-align: middle;
}
table.table tr:nth-child(even) td { background: rgba(20,40,70,.7); }
table.table tr:hover td { background: #111c34; }
td.voc-cell, th.voc-cell { width: 44px; text-align: center; }

/* Wrapper de rolagem horizontal: em telas estreitas a tabela rola
   dentro do card em vez de estourar a borda (o min-content de 7+
   colunas pode ser maior que a viewport). Aplicado a todas as
   table.table do portal. */
.table-wrap { overflow-x: auto; margin: 0 -2px; padding: 0 2px; }

/* ---------- Formulários ---------- */
form.form label {
    display: block;
    margin: 12px 0 4px;
    color: #4a8ac8;
    font-weight: bold;
    font-variant: small-caps;
    letter-spacing: .5px;
}
form.form input[type=text],
form.form input[type=password],
form.form input[type=email],
form.form input[type=number],
form.form input[type=datetime-local],
form.form select,
form.form textarea {
    width: 100%;
    max-width: 420px;
    padding: 8px;
    background: #0e1a2e;
    border: 1px solid #2a4a6e;
    color: #d5e4f7;
    border-radius: 3px;
    font-size: 14px;
    box-shadow: inset 0 2px 5px rgba(0,0,0,.6);
}
form.form input:focus, form.form select:focus, form.form textarea:focus {
    outline: none;
    border-color: #5182f5;
    box-shadow: inset 0 2px 5px rgba(0,0,0,.6), 0 0 8px rgba(81,130,245,.25);
}
/* Linha de checkbox/toggle dentro do .form (ex.: liga/desliga do admin). */
form.form label.check-line {
    display: flex; align-items: center; gap: 8px;
    color: #d5e4f7; font-variant: normal; letter-spacing: 0;
    cursor: pointer; text-transform: none;
}
form.form label.check-line input[type=checkbox],
form.form label.check-line input[type=radio] {
    width: 16px; height: 16px; accent-color: #d4af37; cursor: pointer;
}

button.btn, a.btn {
    display: inline-block;
    margin-top: 14px;
    padding: 10px 26px;
    background: linear-gradient(#24457f, #16294d);
    border: 1px solid #3c60b4;
    border-bottom: 3px solid #122342;
    color: #eef4ff;
    font-weight: bold;
    font-size: 14px;
    font-variant: small-caps;
    letter-spacing: 1px;
    border-radius: 5px;
    cursor: pointer;
    text-shadow: 0 1px 0 #000;
    box-shadow: inset 0 1px 0 rgba(107,172,255,.25), 0 2px 6px rgba(0,0,0,.5);
}
button.btn:hover, a.btn:hover {
    background: linear-gradient(#2d529b, #1c3568);
    border-color: #d4af37;
    transform: translateY(-1px);
    box-shadow: inset 0 1px 0 rgba(140,190,255,.3), 0 5px 12px rgba(0,0,0,.55), 0 0 10px rgba(212,175,55,.25);
    text-decoration: none;
}
button.btn:active, a.btn:active { transform: translateY(1px); border-bottom-width: 1px; }
button.btn:disabled { opacity: .5; cursor: not-allowed; }
button.btn-small { margin-top: 0; padding: 4px 12px; font-size: 12px; }

/* ---------- Caixas / cartões ---------- */
.box {
    background: rgba(20,40,70,.55);
    border: 1px solid #2a4a6e;
    border-radius: 4px;
    padding: 14px;
    margin-bottom: 14px;
    box-shadow: inset 0 0 18px rgba(0,0,0,.35);
}
.box .box-title {
    color: #d4af37;
    font-weight: bold;
    font-variant: small-caps;
    letter-spacing: .5px;
    margin-bottom: 8px;
}

.account-number {
    font-size: 26px;
    color: #e3c26a;
    letter-spacing: 3px;
    font-weight: bold;
}

/* ---------- Loja ---------- */
.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 12px;
}
.shop-offer {
    background: rgba(20,40,70,.6);
    border: 1px solid #2a4a6e;
    border-radius: 4px;
    padding: 12px;
    display: flex;
    gap: 10px;
}
.shop-offer .offer-body { flex: 1; }
.offer-icon {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #160f05;
    border: 1px solid #1c3050;
    border-radius: 4px;
    box-shadow: inset 0 0 8px rgba(0,0,0,.7);
}
.offer-icon img { max-width: 36px; max-height: 36px; }
.shop-offer h4 { margin: 0 0 6px; color: #d4af37; font-variant: small-caps; }
.shop-offer .price { color: #7ae08a; font-weight: bold; }
.shop-offer .offer-type { font-size: 11px; color: #7a98c0; text-transform: uppercase; letter-spacing: 1px; }

/* ---------- Status online ---------- */
/* Textos de status: ONLINE sempre verde, OFFLINE sempre vermelho
   (vale para highscores, perfil, conta, guilds e painel do servidor). */
.online  { color: #6adf5a; font-weight: bold; }
.offline { color: #e05555; font-weight: bold; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; }
.dot.on  { background: #6adf5a; }
.dot.off { background: #e05555; }

/* ---------- Paginação ---------- */
.pagination { margin: 14px 0; }
.pagination a, .pagination span {
    display: inline-block;
    padding: 5px 11px;
    margin-right: 4px;
    border: 1px solid #2a4a6e;
    background: #281d0c;
}
.pagination .current { background: #1c3050; color: #9ed0ff; font-weight: bold; }

.muted { color: #7a98c0; font-size: 12px; }
.stat-grid { display: flex; gap: 20px; flex-wrap: wrap; margin: 10px 0; }
.stat-grid .stat {
    background: rgba(20,40,70,.6);
    border: 1px solid #2a4a6e;
    padding: 10px 18px;
    border-radius: 4px;
    text-align: center;
    min-width: 120px;
}
.stat-grid .stat .num { font-size: 22px; color: #e3c26a; font-weight: bold; }

/* ---------- Login/registro com arte lateral ---------- */
.auth-wrap {
    display: flex;
    gap: 24px;
    align-items: stretch;
    flex-wrap: wrap;
    /* largura controlada: o cartão não estica até a borda da área de
       conteúdo — fica centralizado, com visual limpo, dentro do .page-fill */
    width: 100%;
    max-width: 880px;
    margin-inline: auto;
    background: rgba(12, 20, 32, .75);
    border: 2px solid #2a4a6e;
    border-radius: 8px;
    padding: 28px;
    box-shadow: 0 10px 30px rgba(0,0,0,.55), inset 0 0 30px rgba(0,0,0,.35);
}
.auth-wrap .auth-form {
    flex: 1;
    min-width: 280px;
    display: flex;
    flex-direction: column;
}
.auth-wrap .auth-form form.form {
    flex: 1;
    display: flex;
    flex-direction: column;
}
/* respiro extra entre os campos dentro do cartão de autenticação */
.auth-wrap .auth-form form.form label { margin-top: 16px; }
.auth-wrap .auth-form form.form label:first-of-type { margin-top: 0; }
/* espaçador flexível antes do botão: garante folga mínima de 22px após o
   último campo e ancora o botão no rodapé do cartão quando sobra altura */
.auth-wrap .auth-form form.form::before {
    content: "";
    order: 1;
    flex: 1 0 22px;
}
/* botão compacto: largura automática, alinhado à esquerda do formulário */
.auth-wrap .auth-form form.form .btn {
    order: 2;
    align-self: flex-start;
    margin-top: 0;
    width: auto;
    min-width: 180px;
}
.auth-art {
    flex: 0 0 200px;
    text-align: center;
    background: rgba(22,15,5,.7);
    border: 1px solid #2a4a6e;
    border-radius: 6px;
    padding: 16px 10px;
    box-shadow: inset 0 0 24px rgba(0,0,0,.6);
}
.auth-art img { display: block; margin: 0 auto; }
.auth-art .art-caption {
    margin-top: 10px;
    color: #7a98c0;
    font-size: 11px;
    font-variant: small-caps;
    letter-spacing: 1px;
}

/* ---------- Ícones de vocação ---------- */
.voc-gallery { display: flex; gap: 10px; margin: 6px 0 4px; flex-wrap: wrap; }
.voc-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #160f05;
    border: 1px solid #1c3050;
    border-radius: 4px;
    box-shadow: inset 0 0 8px rgba(0,0,0,.7);
    position: relative;
}
.voc-icon img { max-width: 40px; max-height: 40px; }
.voc-icon .voc-label {
    position: absolute;
    bottom: -18px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    color: #7a98c0;
    white-space: nowrap;
    font-variant: small-caps;
}
.voc-gallery { margin-bottom: 26px; }

/* ---------- Nav logado x visitante ---------- */
/* menus exclusivos de conta logada (verde, destaca do azul royal) */
/* (links de conta usam .nav-link.nav-logout — ver bloco da navegação) */
/* ---------- Notícias ---------- */
.news-item { border-bottom: 1px solid #2a4a6e; padding: 10px 0 4px; }
.news-item:last-of-type { border-bottom: none; }
.news-head { display: flex; justify-content: space-between; gap: 10px; }
.news-head strong { color: #e3c26a; }
/* rodapé do card: autor + data/hora encostado no canto inferior direito */
.news-foot { text-align: right; margin-top: 2px; padding-right: 2px; font-variant: small-caps; }
/* corpo rico da notícia (HTML sanitizado por news_render) */
.news-body p { margin: 6px 0; }
.news-body img { max-width: 100%; height: auto; margin: 4px 0; }
.news-body ul, .news-body ol { margin: 6px 0 6px 22px; }
.news-body h3, .news-body h4 { margin: 10px 0 6px; }
/* linha de ações do item: Editar/Excluir encostados no canto inferior direito */
.news-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
/* botões do form (Publicar/Salvar + Cancelar edição) lado a lado */
.news-form-actions { display: flex; gap: 10px; }
/* "Cancelar edição" mais discreto que o .btn principal, ainda no tema */
button.btn-cancel {
    background: linear-gradient(#3a4254, #232a38);
    border-color: #4a5568;
    border-bottom-color: #1a2130;
}
button.btn-cancel:hover {
    background: linear-gradient(#454f66, #2a3342);
    border-color: #d4af37;
}

/* ---------- Editor rico de notícias (admin) ---------- */
.news-editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
    margin: 4px 0 6px;
}
.news-editor-toolbar button {
    min-width: 30px;
    padding: 4px 9px;
    background: linear-gradient(#24457f, #16294d);
    border: 1px solid #3c60b4;
    border-bottom: 2px solid #122342;
    border-radius: 3px;
    color: #eef4ff;
    font-weight: bold;
    font-size: 12px;
    cursor: pointer;
    text-shadow: 0 1px 0 #000;
}
.news-editor-toolbar button:hover {
    border-color: #d4af37;
    background: linear-gradient(#2d529b, #1c3568);
}
.news-editor-toolbar .toolbar-sep {
    width: 1px;
    height: 18px;
    background: #2a4a6e;
    margin: 0 3px;
}
/* contenteditable estilizado como os inputs do tema */
.news-editor {
    width: 100%;
    min-height: 160px;
    padding: 8px;
    background: #0e1a2e;
    border: 1px solid #2a4a6e;
    border-radius: 3px;
    color: #d5e4f7;
    font-size: 14px;
    box-shadow: inset 0 2px 5px rgba(0,0,0,.6);
    overflow-wrap: break-word;
}
.news-editor:focus {
    outline: none;
    border-color: #5182f5;
    box-shadow: inset 0 2px 5px rgba(0,0,0,.6), 0 0 8px rgba(81,130,245,.25);
}
.news-editor:empty::before {
    content: attr(data-placeholder);
    color: #5a7898;
    pointer-events: none;
}
.news-editor img { max-width: 100%; }

/* ---------- Hover com contraste claro (override geral) ---------- */
a { transition: color .15s ease; }
.content a:hover, .site-footer a:hover {
    color: #bfe0ff;
    text-decoration: underline;
}
.site-nav a, button.btn, a.btn { transition: background .15s ease, border-color .15s ease, color .15s ease, transform .15s ease, box-shadow .15s ease; }
table.table tbody tr:hover td { background: rgba(60,110,180,.45); }
select:hover, input[type="text"]:hover, textarea:hover,
select:focus, input[type="text"]:focus, textarea:focus,
input[type="password"]:focus, input[type="email"]:focus {
    border-color: #6ab0ee;
    outline: none;
    box-shadow: 0 0 6px rgba(90,160,240,.35);
}

/* ---------- Seleção de vocação por outfit clicável ---------- */
.voc-gallery { display: flex; gap: 10px; margin: 4px 0 14px; flex-wrap: wrap; }
.voc-option { cursor: pointer; text-align: center; }
.voc-option input { display: none; }
.voc-option .voc-img {
    display: block; width: 56px; height: 56px; margin: 0 auto;
    padding: 8px; border: 2px solid #2a4a6e; border-radius: 6px;
    background: linear-gradient(#16243c, #0c1626);
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.voc-option:hover .voc-img { border-color: #4a8ac8; box-shadow: 0 0 8px rgba(90,160,240,.35); }
.voc-option input:checked + .voc-img {
    border-color: #6ab0ee;
    background: linear-gradient(#24497e, #16305a);
    box-shadow: 0 0 10px rgba(90,160,240,.5);
}
.voc-label { display: block; margin-top: 4px; font-size: 11px; color: #c9d8ec; font-variant: small-caps; letter-spacing: .5px; }
.voc-option input:checked ~ .voc-label { color: #9ed0ff; }

/* ---------- Criação de personagem: layout 2 colunas ---------- */
.char-cols { display: flex; gap: 18px; align-items: flex-start; }
.char-left { flex: 1; min-width: 0; }
.char-side { flex: 0 0 330px; margin-top: 0; }
.char-side .box-title { margin-top: 0; }

/* ---------- Sexo: botões estilo Tibia ---------- */
.sex-gallery { display: flex; gap: 8px; margin: 4px 0 14px; }
.sex-option { flex: 1; cursor: pointer; }
.sex-option input { display: none; }
.sex-btn {
    display: block; text-align: center; padding: 9px 12px;
    background: linear-gradient(#1e3a63, #12233d);
    border: 1px solid #35639c; border-radius: 4px;
    color: #d5e4f7; font-weight: bold; font-size: 13px;
    font-variant: small-caps; letter-spacing: .5px;
    box-shadow: inset 0 1px 0 rgba(160,200,255,.15);
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.sex-option:hover .sex-btn { border-color: #4a8ac8; box-shadow: 0 0 8px rgba(90,160,240,.35); }
.sex-option input:checked + .sex-btn {
    border-color: #6ab0ee;
    background: linear-gradient(#2c5f9e, #1a3d6e);
    color: #ffffff;
    box-shadow: inset 0 1px 0 rgba(200,230,255,.3), 0 0 10px rgba(90,160,240,.5);
}
.char-side .voc-gallery { margin-bottom: 4px; }
.char-actions { display: flex; justify-content: flex-end; margin-top: 16px; }

/* ---------- Filtros do highscores (ranking à esquerda, vocação à direita) ---------- */
.hs-filters { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 10px; gap: 12px; }
.hs-filter-group { display: flex; flex-direction: column; }
.hs-filter-group label { margin: 0 0 4px; }
.hs-filter-group select { max-width: 200px; }

/* ---------- Abas ---------- */
/* A barra desce 1px sobre o painel: a borda inferior dos botoes cobre a
   borda superior do .box (linha continua). A aba ativa usa o mesmo fundo
   translucido do card e nao tem borda inferior, fundindo-se a ele. */
.tabs {
    display: flex; gap: 4px;
    margin-bottom: -1px;
    position: relative; z-index: 1; /* fica acima da borda do .box */
}
.tab-btn {
    padding: 8px 18px; cursor: pointer;
    background: linear-gradient(#16243c, #0c1626);
    border: 1px solid #2a4a6e; border-radius: 4px 4px 0 0;
    color: #c9d8ec; font-weight: bold; font-size: 13px;
    font-variant: small-caps; letter-spacing: .5px;
    transition: background .15s ease, color .15s ease;
}
.tab-btn:not(.active):hover { background: linear-gradient(#24497e, #16305a); color: #9ed0ff; }
.tab-btn.active {
    background: rgba(20,40,70,.55); /* mesma superficie do .box */
    color: #fff;
    border-color: #2a4a6e;
    border-bottom-color: transparent; /* "abre" a aba sobre o painel */
    box-shadow: inset 0 2px 0 #d4af37; /* filete dourado no topo */
}
/* canto superior esquerdo reto onde o painel encontra a primeira aba
   (:first-child — paineis com mais de um .box, como o Console do
   admin_server.php, mantem o raio nos boxes seguintes) */
.tab-panel > .box:first-child { border-top-left-radius: 0; }

/* ---------- Modal ---------- */
.modal-overlay {
    position: fixed; inset: 0; z-index: 100;
    background: rgba(0,0,0,.88);
    display: flex; align-items: center; justify-content: center;
}
.modal { width: 400px; max-width: 92vw; box-shadow: 0 8px 30px rgba(0,0,0,.7); }
/* fundo opaco: o .box padrão é translúcido e deixava o wallpaper vazar no modal */
.modal .box { background: #101f3a; }
.modal .box-title { display: flex; justify-content: space-between; align-items: center; }
.modal-close {
    background: none; border: none; color: #c9d8ec;
    font-size: 20px; cursor: pointer; line-height: 1; padding: 0 4px;
}
.modal-close:hover { color: #fff; }

/* Modal de criação de personagem: mais larga para caber o layout de 2 colunas. */
.modal.modal-char { width: 820px; max-height: 92vh; overflow-y: auto; }
.modal-char .char-cols { flex-wrap: wrap; }
.modal-char .char-side { flex: 1 1 300px; }

/* ---------- Cards de dados da conta (estilo Tibia: painel chanfrado) ---------- */
.info-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.info-card {
    flex: 1 1 140px; min-width: 140px;
    padding: 10px 12px;
    background: #101c30;
    border: 1px solid #0a1220;
    border-top-color: #3a5a8a;
    border-left-color: #3a5a8a;
    border-radius: 2px;
    box-shadow: inset 0 0 12px rgba(0,0,0,.55);
}
.info-card.info-wide { flex-basis: 100%; }
.info-label { font-size: 11px; color: #8aa5cc; font-variant: small-caps; letter-spacing: .6px; margin-bottom: 3px; text-shadow: 0 1px 0 #000; }
.info-value { font-size: 19px; font-weight: bold; color: #dce8f8; text-shadow: 0 1px 0 #000; }
.info-value.small { font-size: 14px; font-weight: normal; }
.info-value.accent { color: #8ec4ff; }
.info-link { display: inline-block; margin-top: 4px; font-size: 11px; }

/* sessoes da loja */
.shop-category {
    margin: 18px 0 8px;
    padding-bottom: 4px;
    border-bottom: 1px solid #2a4a7a;
    color: #d9c98a;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 15px;
}

/* console do servidor (admin_server) */
.srv-console {
    background: #060c16;
    color: #9ecbff;
    border: 1px solid #1c3357;
    padding: 8px;
    height: 380px;
    overflow-y: auto;
    font-family: Consolas, monospace;
    font-size: 12px;
    white-space: pre-wrap;
    margin: 0;
}

/* seletor de item com sprite (admin ofertas) */
.item-picker { display: flex; gap: 10px; align-items: flex-start; }
.item-picker img { width: 32px; height: 32px; image-rendering: pixelated; background: #0e1a2e; border: 1px solid #2a4a7a; }
.item-picker > div { flex: 1; position: relative; }
.item-search-results {
    position: absolute; z-index: 50; top: 100%; left: 0; right: 0;
    background: #0e1a2e; border: 1px solid #3a6db5; max-height: 220px; overflow-y: auto;
}
.item-opt { display: flex; align-items: center; gap: 8px; padding: 4px 6px; cursor: pointer; }
.item-opt:hover { background: rgba(60,110,180,.4); }
.item-opt img { width: 24px; height: 24px; }

/* seletor visual de icone de sessao */
.icon-grid { display: flex; flex-wrap: wrap; gap: 5px; margin: 6px 0 12px; }
.icon-opt { cursor: pointer; border: 1px solid #2a4a7a; background: #0e1a2e; padding: 3px; line-height: 0; }
.icon-opt input { display: none; }
.icon-opt img { width: 26px; height: 26px; }
.icon-opt:hover { border-color: #7aa7e8; }
.icon-opt.selected { border-color: #5b8fd0; box-shadow: 0 0 6px #3a6db5; background: #16305a; }

/* ---------- Coluna lateral direita ----------
   Terceira coluna do .layout-body (nav | conteúdo | rail): painel com o
   mesmo fundo azul do .content, encostado nele (sem margin-left e sem
   border-left — a borda direita do .content já é o divisor, espelhando
   o acoplamento entre .site-nav e .content). Os cards "Download Client"
   e "Top 5 Level" ficam dentro do painel, como caixas do conteúdo.
   Em telas estreitas a coluna some para não apertar o conteúdo. */
.side-rail {
    flex: 0 0 240px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: rgba(16, 24, 38, .93);
    border: 2px solid #2a4a6e;
    border-top: none;
    border-left: none;
    padding: 14px;
    box-shadow: inset 0 0 40px rgba(0,0,0,.5);
    border-radius: 0 0 6px 0;
}
.side-rail .side-card { margin: 0; }
@media (max-width: 1280px) {
    .side-rail { display: none; }
    /* sem o rail, o canto inferior direito do painel volta ao .content */
    .content { border-radius: 0 0 6px 0; }
}

.side-card .btn { display: block; text-align: center; margin-top: 10px; }
.download-card .download-thumb {
    display: block;
    width: 100%;
    border: 1px solid #1c3050;
    border-radius: 3px;
    margin-bottom: 8px;
}
.download-card p { margin: 0 0 4px; }

/* ---------- Card Top 5 Level ---------- */
.top5-list { list-style: none; margin: 0 0 6px; padding: 0; counter-reset: top5; }
.top5-list li {
    display: flex;
    align-items: baseline;
    gap: 7px;
    padding: 5px 2px;
    border-bottom: 1px solid #14203d;
}
.top5-list li:last-child { border-bottom: none; }
.top5-rank {
    min-width: 20px;
    text-align: center;
    color: #d4af37;
    font-weight: bold;
    font-variant: small-caps;
    text-shadow: 0 1px 0 #000;
}
.top5-name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.top5-level { color: #e3c26a; font-weight: bold; }
.top5-level::before {
    content: 'lv ';
    font-weight: normal;
    font-size: 10px;
    color: #7a98c0;
}
.top5-more { font-size: 12px; }

/* ---------- Card Stats (rail) ----------
   Estatísticas que ficavam no header: 3 linhas compactas (rótulo à
   esquerda, número dourado à direita), no mesmo ritmo do .top5-list.
   A linha "Players Online" é um link para online.php — por isso o
   seletor usa .stats-row (serve para <a> e <div>). */
.stats-list { display: flex; flex-direction: column; }
.stats-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    padding: 5px 2px;
    border-bottom: 1px solid #14203d;
    font-size: 12px;
    color: #a8c0e2;
}
.stats-row:last-child { border-bottom: none; }
.stats-num { color: #e3c26a; font-weight: bold; font-size: 14px; }
/* Status do servidor no card "STATUS" do rail: verde online / vermelho offline. */
.stats-status { font-weight: bold; font-size: 12px; letter-spacing: 1px; }
.stats-status.on  { color: #6adf5a; text-shadow: 0 0 8px rgba(106,223,90,.4); }
.stats-status.off { color: #e05555; text-shadow: 0 0 8px rgba(224,85,85,.4); }
/* linha-link "Players Online": sem sublinhado, realce dourado no hover */
a.stats-row { text-decoration: none; }
a.stats-row:hover {
    color: #9ed0ff;
    text-decoration: none;
}
a.stats-row:hover .stats-num { color: #d4af37; }

/* ---------- Modal de download ---------- */
.modal.modal-download { width: 540px; }
.modal-download .download-story {
    margin-top: 2px;
    font-style: italic;
    line-height: 1.55;
    color: #c9d8ec;
}
.modal-download .download-story strong { color: #e3c26a; }
.modal-download .download-shot {
    display: block;
    width: 100%;
    max-width: 460px;
    margin: 10px auto 4px;
    border: 2px solid #2a4a6e;
    border-radius: 4px;
    box-shadow: 0 6px 16px rgba(0,0,0,.6);
}
.modal-download .btn-download {
    display: block;
    text-align: center;
    font-size: 16px;
    padding: 12px 20px;
    letter-spacing: 1.4px;
}

/* ---------- Tickets de suporte ---------- */
/* Contador de notificação dentro do link do menu (ex.: "Tickets 2"). */
.nav-badge {
    float: right;
    min-width: 17px;
    margin-top: 1px;
    padding: 1px 5px;
    background: linear-gradient(#e3c26a, #b8902e);
    border: 1px solid #7a5c14;
    border-radius: 9px;
    color: #201604;
    font-size: 11px;
    font-weight: bold;
    line-height: 14px;
    text-align: center;
    text-shadow: none;
    font-variant: normal;
    box-shadow: 0 0 6px rgba(212,175,55,.5);
}
/* Pill de status/categoria nas listas e no detalhe do ticket. */
.pill {
    display: inline-block;
    padding: 1px 9px;
    border: 1px solid;
    border-radius: 9px;
    font-size: 11px;
    font-weight: bold;
    font-variant: small-caps;
    letter-spacing: .4px;
}
.pill-open     { background: #101a31; border-color: #3a5cae; color: #8ab0f4; }
.pill-answered { background: #1d3a14; border-color: #4a7a2e; color: #b8e08a; }
.pill-closed   { background: #1a1a1a; border-color: #3a3a3a; color: #8a94a6; }
.pill-new      { background: #3a2e08; border-color: #d4af37; color: #e3c26a; margin-left: 4px; }
.pill-cat      { background: #0e1a2e; border-color: #2a4a7a; color: #9ec0e8; }
.pill-staff    { background: #3a2e08; border-color: #d4af37; color: #e3c26a; margin-left: 6px; }
/* Corpo/resposta do ticket: texto com BBCode-lite ([img]/[url]/
   [b][i][u]) renderizado por ticket_render(). Imagens de evidência
   nunca estouram a largura da mensagem. */
.ticket-body { line-height: 1.55; color: #d5e4f7; white-space: normal; overflow-wrap: break-word; }
.ticket-body img {
    max-width: 100%;
    height: auto;
    margin: 4px 0;
    border: 1px solid #2a4a6e;
    border-radius: 3px;
}
.ticket-reply { border-color: #4a7a2e; }
/* Thread do ticket (conversa contínua): mensagens empilhadas estilo
   chat — jogador com borda azul royal, staff com borda dourada.
   Altura limitada com rolagem própria (o JS abre já na última
   mensagem) para a página não ficar interminável em threads longas. */
.ticket-thread {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 420px;
    overflow-y: auto;
    padding-right: 8px; /* respiro para a scrollbar não colar nas mensagens */
}
/* Scrollbar do tema (azul royal) na thread e nas tabelas roláveis —
   regras WebKit + as propriedades padrão do Firefox. */
.ticket-thread, .table-wrap {
    scrollbar-width: thin;
    scrollbar-color: #2d529b #0a1424;
}
.ticket-thread::-webkit-scrollbar, .table-wrap::-webkit-scrollbar { width: 10px; height: 10px; }
.ticket-thread::-webkit-scrollbar-track, .table-wrap::-webkit-scrollbar-track { background: #0a1424; }
.ticket-thread::-webkit-scrollbar-thumb, .table-wrap::-webkit-scrollbar-thumb {
    background: #2d529b;
    border: 2px solid #0a1424;
    border-radius: 6px;
}
.ticket-thread::-webkit-scrollbar-thumb:hover, .table-wrap::-webkit-scrollbar-thumb:hover {
    background: #d4af37;
}
.ticket-msg {
    background: #0c1830;
    border: 1px solid #1e3260;
    border-left: 3px solid #3a5cae;
    border-radius: 4px;
    padding: 8px 12px;
}
.ticket-msg .ticket-body { margin: 6px 0 0; }
.ticket-msg-staff { border-color: #6b5a1e; border-left-color: #d4af37; background: #141a2e; }
.ticket-msg-staff .ticket-msg-meta strong { color: #e3c26a; }
.ticket-msg-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap; /* em telas estreitas o meta quebra linha em vez de estourar */
    font-size: 12px;
    color: #8ab0f4;
}
.ticket-msg-meta .muted { margin-left: auto; }
/* Rodapé dentro de uma mensagem/card de ticket (autor + data da
   Descrição — fase 6): separado por uma linha fina do tema. */
.ticket-msg-foot { margin-top: 8px; padding-top: 6px; border-top: 1px solid #1e3260; }
/* Lista de recompensas do ticket (fase 6): cada recompensa concedida é
   um item — dourado quando entregue, azul royal enquanto pendente na
   fila de entrega do depot. */
.ticket-rewards {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.ticket-reward {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap; /* em telas estreitas o estado quebra para a linha de baixo */
    background: #0c1830;
    border: 1px solid #1e3260;
    border-left: 3px solid #d4af37;
    border-radius: 4px;
    padding: 6px 12px;
}
.ticket-reward.is-pending { border-left-color: #3a5cae; }
.ticket-reward-label { color: #e3c26a; font-weight: bold; }
.ticket-reward.is-pending .ticket-reward-label { color: #8ab0f4; }
.ticket-reward .muted { margin-left: auto; }
/* Barra de filtros da fila admin (GET): campos lado a lado. */
form.form-filters { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; }
form.form-filters label { margin: 0; }
form.form-filters select { width: auto; max-width: none; min-width: 130px; }

/* ---------- Detalhe do ticket: 2 cards lado a lado ----------
   Grid com altura travada na viewport (tudo visível sem rolar a página):
   o card da esquerda concentra o chamado + seletor de recompensa e o da
   direita é conversa + resposta fixa no rodapé. Conteúdo que exceder a
   altura rola DENTRO do próprio card. Empilha em telas estreitas. */
.ticket-view {
    display: grid;
    grid-template-columns: 380px minmax(0, 1fr);
    gap: 16px;
    align-items: stretch;
    margin-bottom: 14px;
    height: calc(100vh - 330px);
    min-height: 460px;
}
.ticket-view > .box { margin-bottom: 0; }
@media (max-width: 1100px) {
    .ticket-view { grid-template-columns: 1fr; height: auto; }
    .ticket-chat .ticket-thread { max-height: 420px; }
}

/* Card 1 — painel de informações: outfit real do personagem em destaque
   no topo, linhas de meta (rótulo à esquerda, valor/pill à direita) no
   ritmo do .stats-list do rail e ações centralizadas. */
.ticket-hero {
    text-align: center;
    padding: 6px 0 10px;
    border-bottom: 1px solid #1e3260;
    margin-bottom: 6px;
}
.ticket-hero img {
    width: 64px;
    height: 64px;
    padding: 6px;
    background: #0e1a2e;
    border: 1px solid #2a4a6e;
    border-radius: 6px;
    box-shadow: inset 0 0 10px rgba(0,0,0,.55);
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}
.ticket-hero-name { display: block; margin-top: 6px; color: #e3c26a; font-weight: bold; }
a.ticket-hero-name:hover { color: #ffe9a8; }
.ticket-hero .muted { display: block; margin-top: 2px; }
.ticket-meta { list-style: none; margin: 4px 0; padding: 0; }
.ticket-meta li {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    padding: 5px 2px;
    border-bottom: 1px solid #14203d;
    font-size: 12px;
    color: #a8c0e2;
}
.ticket-meta li:last-child { border-bottom: none; }
.ticket-meta .m-val { text-align: right; color: #dce8f8; }
.ticket-info-actions { display: flex; justify-content: center; margin-top: 10px; }
.ticket-info-actions .btn { margin-top: 0; }
/* O card do chamado rola internamente quando o conteúdo (meta +
   recompensas + seletor de concessão) excede a altura travada. */
.ticket-info { overflow-y: auto; }
/* Campos do seletor de recompensa: ficam FORA de um <form> (submetem via
   atributo form="admin-reply-form"), então precisam do estilo do tema
   replicado aqui — mesma base do form.form, largura menor. */
.ticket-info input[type=text],
.ticket-info input[type=number] {
    width: 100%;
    padding: 6px 8px;
    background: #0e1a2e;
    border: 1px solid #2a4a6e;
    color: #d5e4f7;
    border-radius: 3px;
    font-size: 13px;
    box-shadow: inset 0 2px 5px rgba(0,0,0,.6);
}
.ticket-info input:focus {
    outline: none;
    border-color: #5182f5;
    box-shadow: inset 0 2px 5px rgba(0,0,0,.6), 0 0 8px rgba(81,130,245,.25);
}
.ticket-info .check-line {
    display: flex; align-items: center; gap: 8px;
    margin: 4px 0; cursor: pointer; color: #d5e4f7; font-size: 13px;
}
.ticket-info .check-line input[type=radio] {
    width: 16px; height: 16px; accent-color: #d4af37; cursor: pointer;
}
.ticket-info .reward-label {
    display: block; margin: 8px 0 4px;
    color: #4a8ac8; font-weight: bold; font-variant: small-caps; letter-spacing: .5px;
}
.ticket-info .reward-fields .muted { font-size: 11px; margin: 4px 0 0; }
/* Subtítulo de seção dentro do card de informações (ex.: Recompensas) —
   separado por uma linha fina, no estilo small-caps dourado do tema. */
.ticket-info-subtitle {
    margin: 12px 0 6px;
    padding-top: 10px;
    border-top: 1px solid #1e3260;
    color: #d4af37;
    font-weight: bold;
    font-variant: small-caps;
    letter-spacing: .5px;
}

/* Card 2 — conversa: balões estilo chat. As mensagens do outro lado
   ficam à esquerda; as do usuário da tela vão à direita
   (.ticket-msg-own — mensagens do jogador em ticket.php, da staff em
   admin_tickets.php) e a borda-guia acompanha o alinhamento. */
.ticket-thread .ticket-msg { max-width: 82%; align-self: flex-start; }
.ticket-thread .ticket-msg-own {
    align-self: flex-end;
    border-left-width: 1px;
    border-right: 3px solid #3a5cae;
}
.ticket-thread .ticket-msg-staff.ticket-msg-own { border-right-color: #d4af37; }
/* Card de conversa: coluna flex com a thread crescendo (rolagem própria)
   e a caixa de resposta sempre fixa no rodapé do card. */
.ticket-chat { display: flex; flex-direction: column; overflow: hidden; }
.ticket-chat .ticket-thread { flex: 1 1 auto; max-height: none; min-height: 120px; }
/* Caixa de resposta no rodapé do card de conversa, separada por linha
   fina; o textarea ocupa toda a largura do card (override do 420px). */
.ticket-compose { flex: 0 0 auto; border-top: 1px solid #1e3260; margin-top: 10px; padding-top: 8px; }
.ticket-chat form.form textarea { max-width: none; }
/* Rodapé compacto da resposta: select "Responder como", hint e botão
   alinhados na mesma linha (quebra só em telas muito estreitas). */
.ticket-compose-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 8px;
}
.ticket-compose-row label { margin: 0; }
.ticket-compose-row select { width: auto; max-width: 220px; padding: 6px 8px; }
.ticket-compose-row .compose-hint { margin-left: auto; font-size: 11px; }
.ticket-compose-row .btn { margin-top: 0; padding: 8px 20px; }
.ticket-compose-note { margin: 10px 0 0; padding-top: 10px; border-top: 1px solid #1e3260; }

/* ---------- Anexos de evidência (upload de imagem nos tickets) ---------- */
/* Input de arquivo no tema escuro — botão do seletor segue o padrão do site. */
form.form input[type=file] { font-size: 12px; color: #8ab0f4; max-width: 300px; }
form.form input[type=file]::file-selector-button {
    padding: 5px 10px; margin-right: 8px;
    background: #16305a; border: 1px solid #3a6db5; border-radius: 3px;
    color: #d5e4f7; cursor: pointer; font-size: 12px;
}
form.form input[type=file]::file-selector-button:hover { background: #1e3f74; }
/* "Anexar imagem" no rodapé da resposta: label + input na mesma linha. */
form.form label.attach-label {
    display: flex; align-items: center; gap: 8px;
    margin: 0; font-variant: small-caps; white-space: nowrap;
}
/* Thumbnails clicáveis dentro de cada mensagem da thread — abrem a
   imagem inteira numa nova aba (ticket_img.php, acesso autenticado). */
.ticket-attachments { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.ticket-attach-img {
    max-width: 180px; max-height: 120px;
    border: 1px solid #2a4a6e; border-radius: 4px;
    background: #0e1a2e;
}
.ticket-attachments a:hover .ticket-attach-img { border-color: #5182f5; }

/* Ícones Tibia dos itens do menu (sprites reais do cliente,
   sempre nítidos via image-rendering: pixelated). */
.nav-icon {
    width: 18px; height: 18px;
    margin-right: 7px; vertical-align: -4px;
    image-rendering: pixelated;
}
.nav-title .nav-icon { width: 20px; height: 20px; margin-right: 6px; vertical-align: -5px; }

/* ---------- Guilds ---------- */
/* Form inline dentro de células de tabela (botões de ação lado a lado). */
.inline-form { display: inline-flex; align-items: center; gap: 4px; margin: 0; }
.table-actions { white-space: nowrap; }
.table-actions .btn { margin-top: 0; }
/* Campo de apelido do membro dentro da célula — compacto. */
.nick-input {
    width: 90px; padding: 3px 6px; font-size: 12px;
    background: #0e1a2e; border: 1px solid #2a4a6e; border-radius: 3px;
    color: #d5e4f7;
}
.nick-input:focus { outline: none; border-color: #5182f5; }

/* ---------- Loja de Pontos (Mercado Pago) ---------- */
.point-packages {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 16px;
}
.point-package {
    position: relative;
    background: rgba(14, 26, 46, .85);
    border: 1px solid #2a4a6e;
    border-radius: 6px;
    padding: 18px 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.point-package:hover {
    transform: translateY(-3px);
    border-color: #5182f5;
    box-shadow: 0 6px 16px rgba(0,0,0,.5), 0 0 12px rgba(81,130,245,.25);
}
.point-package.popular {
    border-color: #d4af37;
    box-shadow: 0 0 14px rgba(212,175,55,.25);
}
.pkg-badge {
    position: absolute;
    top: -10px;
    right: 12px;
    background: linear-gradient(#e3c26a, #b8902e);
    color: #201604;
    font-size: 11px;
    font-weight: bold;
    padding: 2px 10px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: .5px;
    box-shadow: 0 2px 6px rgba(0,0,0,.5);
}
.pkg-points {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 32px;
    font-weight: bold;
    color: #e3c26a;
    text-shadow: 0 2px 4px #000;
    margin-bottom: 6px;
}
.pkg-name {
    font-size: 15px;
    font-weight: bold;
    color: #d5e4f7;
    margin-bottom: 4px;
}
.pkg-price {
    font-size: 22px;
    font-weight: bold;
    color: #8ec4ff;
    margin-bottom: 8px;
}
.pkg-desc {
    font-size: 12px;
    color: #8aa5cc;
    margin-bottom: 14px;
    flex: 1;
}
.point-package .btn-buy {
    width: 100%;
    margin-top: auto;
    padding: 10px;
    font-size: 13px;
}
.point-package .btn-buy:disabled {
    opacity: .5;
    cursor: not-allowed;
}

/* ---------- Responsividade global para dispositivos móveis ---------- */
@media (max-width: 768px) {
    .wrapper {
        width: 100%;
        margin: 8px auto;
        padding: 0 8px;
    }
    .layout-body {
        flex-direction: column;
    }
    .site-nav {
        width: 100%;
        flex: none;
        border-radius: 0;
        border-right: 2px solid #2a4a6e;
        border-bottom: none;
    }
    .content {
        border-radius: 0 0 6px 6px;
        border-top: none;
        padding: 14px;
    }
    .char-cols {
        flex-direction: column;
    }
    .char-side {
        flex: 1 1 100%;
        width: 100%;
    }
    .auth-wrap {
        padding: 18px;
        gap: 16px;
    }
    .auth-art {
        flex: 1 1 100%;
    }
    .point-packages {
        grid-template-columns: 1fr;
    }
}

