/* ============================================================
   Template Thunder — visual DARK (GenesisBR)
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
    --bg-card: rgba(15, 15, 15, .96);
    --bg-card-head: #1a1a1a;
    --bg-input: #1d1d1d;
    --line: #2a2a2a;
    --line-soft: #232323;
    --txt: #cfcfcf;
    --txt-soft: #8f8f8f;
    --red: #d32f2f;
    --red-hi: #ff4b4b;
    --gold: #d4af37;
}

/* ---------- Estrutura geral ---------- */
html, body { overflow-x: hidden; }
.page-wrap { width: 1050px; max-width: 97%; margin: 0 auto; }

/* ---------- Header full-width (arte sangrando nas bordas) ---------- */
/* Toda a arte (logo, cavaleiro, moldura) esta na fundo-unico.jpg (1920, miolo escuro uniforme) —
   o header e so um espacador clicavel por cima dela */
.site-header { position: relative; height: 225px; background: none; }
.site-header .logo-link { position: absolute; left: 0; top: 0; width: 45%; height: 100%; z-index: 1; }

/* Topbar: social + download (sobre a arte) */
.topbar { position: relative; z-index: 2; width: 1050px; max-width: 97%; margin: 0 auto;
    display: flex; justify-content: space-between; align-items: flex-start; padding: 14px 4px 10px; box-sizing: border-box; }
.topbar-social { display: flex; align-items: center; gap: 8px; color: #bdbdbd; font-size: 12px; }
.topbar-social span { margin-right: 2px; }
.topbar-social a { display: flex; align-items: center; justify-content: center; width: 30px; height: 30px;
    background: rgba(46,16,16,.88); border: 1px solid #5a2424; border-radius: 4px; color: #eee; font-size: 14px;
    transition: background .15s, color .15s, border-color .15s; }
.topbar-social a:hover { background: var(--red); border-color: var(--red); color: #fff; }
.topbar-social .ic-discord { display: block; }

.client-download { display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px;
    background: rgba(18,18,18,.94); border: 1px solid var(--line); border-radius: 5px;
    box-shadow: 0 4px 14px rgba(0,0,0,.5); transition: border-color .15s, box-shadow .15s;
    margin-right: -185px; }
@media (max-width: 1500px) { .client-download { margin-right: 0; } }
.client-download:hover { border-color: var(--red); box-shadow: 0 4px 18px rgba(211,47,47,.25); }
.client-download .cd-icon { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px;
    background: linear-gradient(to bottom, #b71c1c, #7f1010); border-radius: 4px; color: #fff; font-size: 17px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.15); }
.client-download .cd-text { display: flex; flex-direction: column; line-height: 1.15; font-size: 12px; color: #fff; }
.client-download .cd-text b { color: #fff; letter-spacing: .5px; }
.client-download .cd-text em { font-style: normal; color: var(--red-hi); font-weight: bold; letter-spacing: .5px; }
.client-download .cd-text small { color: var(--txt-soft); font-size: 10px; margin-top: 2px; }

/* Colunas (a sidebar sobe por cima da arte do header, como na referência) */
.main-cols { display: flex; gap: 17px; align-items: flex-start; padding: 0; position: relative; z-index: 2; margin-top: 0; }
.sidebar { flex: 0 0 215px; display: flex; flex-direction: column; gap: 15px; }
.content { flex: 1; min-width: 0; padding-top: 0; }
.aside-right { flex: 0 0 235px; display: flex; flex-direction: column; gap: 15px; padding-top: 0; }
@media (max-width: 1100px) { .aside-right { display: none; } }
@media (max-width: 760px) { .main-cols { flex-direction: column; } .sidebar { flex: 1 1 auto; width: 100%; } }

/* ---------- Cards ---------- */
.card { background: var(--bg-card); border: 1px solid var(--line); border-radius: 6px; overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,.45); }
.card-head { display: flex; align-items: center; gap: 7px; padding: 10px 12px; background: var(--bg-card-head);
    border-bottom: 1px solid var(--line); color: #fff; font-weight: bold; font-size: 10px;
    text-transform: uppercase; letter-spacing: .6px; white-space: nowrap; }
.card-head .fa { color: var(--red-hi); font-size: 12px; }
.card-body { padding: 10px 12px; }
.card-head .head-btn { margin-left: auto; padding: 3px 8px; background: #222; border: 1px solid #3a3a3a;
    border-radius: 3px; color: #fff; font-size: 8.5px; letter-spacing: .4px; white-space: nowrap;
    transition: background .15s, border-color .15s; }
.card-head .head-btn:hover { background: var(--red); border-color: var(--red); color: #fff; }

/* ---------- Coluna direita: informações do servidor ---------- */
.info-list { list-style: none; margin: 0; padding: 4px 0; }
.info-list li { display: flex; justify-content: space-between; align-items: center; gap: 8px;
    padding: 7px 12px; border-bottom: 1px solid var(--line-soft); font-size: 10.5px; }
.info-list li:last-child { border-bottom: 0; }
.info-list li span { color: var(--txt-soft); text-transform: uppercase; font-size: 9px; letter-spacing: .4px; }
.info-list li b { color: #fff; }
.info-list li b.ok { color: #2ecc40; }
.info-list li b.ok .fa { font-size: 8px; vertical-align: 1px; margin-right: 3px; }

/* ---------- Coluna direita: listas de ranking ---------- */
.rank-list { list-style: none; margin: 0; padding: 0; }
.rank-list li { display: flex; align-items: center; gap: 9px; padding: 6px 4px;
    border-bottom: 1px solid var(--line-soft); font-size: 11px; }
.rank-list li:last-child { border-bottom: 0; }
.rank-list li.rank-head { color: var(--txt-soft); font-size: 9.5px; text-transform: uppercase;
    letter-spacing: .5px; padding: 4px; }
.rank-list li.rank-head span:first-child { width: 22px; }
.rank-list li.rank-head span:last-child { margin-left: auto; }
.rank-list .pos { width: 20px; height: 20px; flex: 0 0 20px; display: flex; align-items: center; justify-content: center;
    background: #262626; border-radius: 4px; font-weight: bold; font-size: 10px; color: #bbb; }
.rank-list .pos.p1 { background: linear-gradient(to bottom, #d4af37, #8a6d1c); color: #fff; }
.rank-list .pos.p2 { background: linear-gradient(to bottom, #9aa4ad, #5d6770); color: #fff; }
.rank-list .pos.p3 { background: linear-gradient(to bottom, #b06b3c, #6e3d1c); color: #fff; }
.rank-list .nm { color: #e8e8e8; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-list .vl { margin-left: auto; color: var(--red-hi); font-weight: bold; font-size: 10.5px; }

/* ---------- Menu lateral ---------- */
.side-nav { list-style: none; margin: 6px; padding: 0; }
.side-nav li { margin: 1px 0; }
.side-nav li a { display: flex; align-items: center; gap: 9px; padding: 7px 10px; border-radius: 4px;
    color: var(--txt); font-size: 12.5px; transition: background .12s, color .12s; }
.side-nav li a .fa { width: 15px; text-align: center; color: #9a9a9a; font-size: 13px; transition: color .12s; }
.side-nav li a:hover { background: rgba(211,47,47,.12); color: #fff; }
.side-nav li a:hover .fa { color: var(--red-hi); }
.side-nav li.active a { background: linear-gradient(to bottom, #c62828, #8e1414); color: #fff; font-weight: 600;
    box-shadow: 0 2px 8px rgba(198,40,40,.35); }
.side-nav li.active a .fa { color: #fff; }

/* ---------- Eventos (sidebar) ---------- */
ul#c_events.sidebar-events { list-style: none; margin: 0; padding: 4px 0; max-height: 300px; overflow-y: auto; }
ul#c_events.sidebar-events li { display: flex; justify-content: space-between; align-items: center; gap: 6px;
    padding: 5px 12px; border-bottom: 1px solid var(--line-soft); font-size: 11.5px; line-height: 1.3; }
ul#c_events.sidebar-events li:last-child { border-bottom: 0; }
ul#c_events.sidebar-events li i { display: none; }
ul#c_events.sidebar-events li p { display: none; }
ul#c_events.sidebar-events .ev-name { color: #d6d6d6; white-space: nowrap; overflow: hidden;
    text-overflow: ellipsis; max-width: 120px; }
ul#c_events.sidebar-events .ev-time { color: var(--red-hi); font-weight: bold; white-space: nowrap;
    font-family: Consolas, monospace; font-size: 11px; }
.sidebar-events { scrollbar-width: thin; scrollbar-color: #3a3a3a #161616; }
.sidebar-events::-webkit-scrollbar { width: 8px; }
.sidebar-events::-webkit-scrollbar-track { background: #161616; }
.sidebar-events::-webkit-scrollbar-thumb { background: #3a3a3a; border-radius: 4px; }
.sidebar-events::-webkit-scrollbar-thumb:hover { background: #4d4d4d; }

/* Linha fixa do Castle Siege no card de eventos */
.ev-special { display: flex; justify-content: space-between; align-items: center; gap: 6px;
    padding: 7px 12px; background: rgba(211,47,47,.12); border-top: 1px solid var(--line);
    font-size: 11.5px; }
.ev-special .ev-name { color: #fff; font-weight: bold; }
.ev-special .ev-time { color: var(--red-hi); font-weight: bold; }

/* ---------- Login (sidebar) ---------- */
#loginjsz { font-size: 12px; color: var(--txt); }
#loginjsz form#logar { display: block; padding: 2px 0; }
#loginjsz .in-wrap { position: relative; display: block; margin: 0 0 8px; }
#loginjsz .in-wrap > .fa { position: absolute; left: 10px; top: 50%; transform: translateY(-50%);
    color: #7a7a7a; font-size: 13px; pointer-events: none; }
#loginjsz input[type=text], #loginjsz input[type=password] {
    display: block; width: 100%; padding: 9px 10px 9px 30px; margin: 0; box-sizing: border-box;
    background: var(--bg-input); border: 1px solid #333; border-radius: 4px; color: #eee; font-size: 12px;
    box-shadow: none; transition: border-color .15s, box-shadow .15s; }
#loginjsz input::placeholder { color: #7d7d7d; }
#loginjsz input[type=text]:focus, #loginjsz input[type=password]:focus {
    border-color: var(--red); box-shadow: 0 0 0 2px rgba(211,47,47,.18); outline: none; }
#loginjsz .in-row { display: flex; gap: 6px; margin: 0 0 8px; }
#loginjsz .in-row .in-wrap { flex: 1; margin: 0; }
#loginjsz .btn-login { flex: 0 0 38px; height: 36px; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(to bottom, #c62828, #8e1414); border: 0; border-radius: 4px; color: #fff;
    font-size: 14px; cursor: pointer; transition: filter .15s; }
#loginjsz .btn-login:hover { filter: brightness(1.2); }
#loginjsz .forgot { display: block; text-align: right; font-size: 11px; color: var(--txt-soft); padding: 2px 0 0; }
#loginjsz .forgot:hover { color: var(--red-hi); }
#loginjsz label { font-size: 11px; color: var(--txt-soft); display: block; margin: 4px 0 0; }
#loginjsz ul { list-style: none; margin: 0 0 8px; padding: 0; }
#loginjsz ul li { padding: 5px 4px; border-bottom: 1px solid var(--line-soft); font-size: 11.5px; }
#loginjsz ul li:last-child { border-bottom: 0; }
#loginjsz ul li i { color: var(--red-hi); margin-right: 5px; width: 14px; text-align: center; }
#loginjsz ul li .text { font-weight: bold; color: #fff; }
#loginjsz ul li a { color: var(--txt); }
#loginjsz ul li a:hover { color: var(--red-hi); }
#loginjsz .notification { background: var(--red); color: #fff; border-radius: 9px; padding: 0 6px;
    font-size: 9px; margin-left: 4px; }

/* ---------- Conteúdo ---------- */
.thunder-content { position: relative; min-height: 430px; font-size: 12px; color: var(--txt); line-height: 1.5; }
.thunder-content a { color: var(--red-hi); }
.thunder-content a:hover { color: #ff7676; }
.thunder-content p { margin: 0 0 10px; }
.thunder-content .clear { clear: both; }
.align-center, .thunder-content .align-center { text-align: center; }
.thunder-content .text { font-weight: bold; color: #fff; }

/* Páginas internas ganham "cartão" ao redor do conteúdo solto */
.thunder-content > *:not(.thunder-welcome):not(.box-panel):not(.card) { position: relative; z-index: 1; }

/* ---------- Títulos de seção (viram cabeçalho de card) ---------- */
.thunder-content h1, .thunder-content h1.title, .thunder-content .title {
    display: flex; align-items: center; gap: 8px;
    font-size: 11px; color: #fff; font-weight: bold; text-transform: uppercase; letter-spacing: .8px;
    background: var(--bg-card-head); padding: 11px 14px; margin: 0 0 0;
    border: 1px solid var(--line); border-bottom: 1px solid var(--line); border-radius: 6px 6px 0 0;
    text-shadow: none; }
.thunder-content h1:before, .thunder-content .title:before {
    content: "\f101"; font-family: FontAwesome; color: var(--red-hi); font-size: 12px; }
/* bloco logo após um título vira corpo do card */
.thunder-content h1 + *, .thunder-content .title + * {
    background: var(--bg-card); border: 1px solid var(--line); border-top: 0;
    border-radius: 0 0 6px 6px; padding: 12px 14px; margin: 0 0 16px; box-shadow: 0 4px 16px rgba(0,0,0,.45); }

/* ---------- Boas-vindas (home, card com o cavaleiro) ---------- */
.thunder-welcome { position: relative; min-height: 118px; margin: 0 0 15px; padding: 16px 22px;
    border: 1px solid var(--line); border-radius: 6px; overflow: hidden;
    background: #0d0d0d url(../images/hero.jpg) no-repeat right 28%; background-size: cover;
    box-shadow: 0 4px 18px rgba(0,0,0,.5); box-sizing: border-box; }
.thunder-welcome:before { content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(5,5,5,.96) 0%, rgba(5,5,5,.85) 38%, rgba(5,5,5,.35) 70%, rgba(5,5,5,.15) 100%); }
.thunder-welcome > * { position: relative; z-index: 1; }
.thunder-welcome h2 { font-size: 15px; color: #fff; margin: 0 0 7px; text-transform: uppercase;
    letter-spacing: .5px; font-weight: 700; border-left: 3px solid var(--red); padding-left: 9px; }
.thunder-welcome h2 span, .thunder-welcome h2 b { color: var(--red-hi); }
.thunder-welcome p { color: #cfcfcf; font-size: 11.5px; margin: 0 0 5px; max-width: 60%; }
.thunder-welcome .btn { margin-top: 5px; }

/* ---------- Breadcrumb: escondido (duplicava com os títulos das páginas) ---------- */
.breadcrumber { display: none !important; }
/* some também com o título que vinha grudado no breadcrumb (Downloads, Rankings...) */
.thunder-content h1:has(+ .breadcrumber), .thunder-content .title:has(+ .breadcrumber) { display: none !important; }

/* ---------- Grid ---------- */
.grid { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-start; }
.grid > [class^="grid-"] { box-sizing: border-box; min-width: 0; }
.grid-1 { flex: 0 0 6%; } .grid-2 { flex: 0 0 14%; } .grid-3 { flex: 0 0 22%; }
.grid-4 { flex: 1 1 30%; } .grid-6 { flex: 1 1 46%; } .grid-8 { flex: 2 1 62%; }
.grid-12 { flex: 1 1 100%; }
@media (max-width: 560px) { .grid > [class^="grid-"] { flex: 1 1 100%; } }

/* ---------- Painel de serviços (menu interno das contas) ---------- */
.panel { margin: 0 0 14px; }
.panel-services { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line);
    border-radius: 5px; overflow: hidden; background: var(--bg-card); }
.panel-services li { border-bottom: 1px solid var(--line-soft); }
.panel-services li:last-child { border-bottom: none; }
.panel-services li a { display: block; padding: 9px 12px; color: var(--txt); font-size: 12px;
    text-decoration: none; transition: background .15s, color .15s; }
.panel-services li a:before { content: "\f105"; font-family: FontAwesome; color: var(--red-hi); margin-right: 8px; }
.panel-services li a:hover { background: rgba(211,47,47,.12); color: #fff; }
.panel-services li.active a { background: linear-gradient(to bottom, #c62828, #8e1414); color: #fff; font-weight: bold; }
.panel-services li.active a:before { color: #fff; }

/* ---------- Cards de personagem ---------- */
.characters { display: flex; flex-wrap: wrap; gap: 12px; margin: 12px 0; }
.character { display: block; width: 104px; text-decoration: none; text-align: center;
    border: 1px solid var(--line); border-radius: 5px; padding: 6px; background: var(--bg-card);
    transition: border-color .15s, box-shadow .15s; }
.character:hover { border-color: var(--red); box-shadow: 0 2px 10px rgba(211,47,47,.25); }
.character.active { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(212,175,55,.35); }
.character .name { font-size: 11px; font-weight: bold; color: var(--red-hi); margin-bottom: 5px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.character .avatar { width: 90px; height: 100px; margin: 0 auto; background: #161616;
    border: 1px solid var(--line-soft); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.character .avatar img { max-width: 90px; max-height: 100px; }

/* ---------- Painéis em caixa ---------- */
.box-panel { border: 1px solid var(--line); border-radius: 6px; margin: 0 0 16px; overflow: hidden;
    background: var(--bg-card); box-shadow: 0 4px 16px rgba(0,0,0,.45); }
.box-panel-title { display: flex; align-items: center; gap: 8px; background: var(--bg-card-head); color: #fff;
    padding: 10px 14px; font-weight: bold; font-size: 11px; text-transform: uppercase; letter-spacing: .8px;
    border-bottom: 1px solid var(--line); }
.box-panel-title .fa { color: var(--red-hi); }
.box-panel-content { padding: 12px 14px; background: transparent; }

/* ---------- Tabelas ---------- */
.thunder-content table { border-collapse: collapse; }
table.list, table.panel, .box-panel-content table, .thunder-content table.list {
    width: 100%; border-collapse: collapse; font-size: 12px; }
table.list td, table.panel td, .box-panel-content table td { padding: 8px 10px; border-bottom: 1px solid var(--line-soft); color: var(--txt); }
table.list th, .thunder-content table th { padding: 8px 10px; background: #191919; color: #bdbdbd;
    text-align: left; border-bottom: 2px solid var(--red); font-size: 11px; text-transform: uppercase; }
table.list tr:nth-child(even) td { background: rgba(255,255,255,.02); }
table.list tr:hover td { background: rgba(211,47,47,.08); }
table.list td:first-child { color: var(--txt-soft); }

/* ---------- Listas de conteúdo (notícias etc.) ---------- */
.thunder-content ul:not(.panel-services):not(.tabs):not(.breadcrumber):not(.sidebar-events) {
    margin: 0; padding: 0; list-style: none; }
/* lista logo após um título (ex: notícias) respira antes do próximo card */
.thunder-content h1 + ul:not(.breadcrumber), .thunder-content .title + ul:not(.breadcrumber) {
    margin: 0 0 15px !important; }
.thunder-content h1 + ul li, .thunder-content .title + ul li {
    display: flex; align-items: center; gap: 10px; padding: 7px 4px; margin: 0;
    border-bottom: 1px solid var(--line-soft); font-size: 11.5px; }
.thunder-content h1 + ul li:last-child, .thunder-content .title + ul li:last-child { border-bottom: 0; }
.thunder-content h1 + ul li > *:last-child:not(:first-child),
.thunder-content .title + ul li > *:last-child:not(:first-child) {
    margin-left: auto; color: var(--txt-soft); font-weight: normal; white-space: nowrap; font-size: 10.5px; }
.thunder-content ul li { margin: 3px 0; }
.thunder-content ul li a { font-weight: 600; color: #f0f0f0; }
.thunder-content ul li a:hover { color: var(--red-hi); }
.thunder-content ul li a .tag { color: var(--red-hi); font-weight: bold; }
/* Chips coloridos por tipo de post */
.thunder-content .tag { display: inline-block; min-width: 58px; text-align: center; padding: 2px 8px;
    border-radius: 3px; font-size: 9.5px; letter-spacing: .5px; margin-right: 6px; color: #fff !important; }
.thunder-content .tag-event  { background: linear-gradient(to bottom, #c62828, #8e1414); }
.thunder-content .tag-update { background: linear-gradient(to bottom, #1565c0, #0d3f75); }
.thunder-content .tag-news   { background: linear-gradient(to bottom, #b08d1e, #6e5710); }
.thunder-content ul li small, .thunder-content ul li .meta { color: var(--txt-soft); font-weight: normal; }
.thunder-content ul li .meta b, .thunder-content ul li small b { color: var(--red-hi); }

/* "VER TODAS" no cabeçalho das notícias */
.news-all { margin-left: auto; color: #fff !important; font-size: 10px; letter-spacing: .6px; font-weight: bold; }
.news-all:hover { color: var(--red-hi) !important; }

/* ---------- Alertas ---------- */
.alert, .msg { padding: 11px 14px; border-radius: 4px; margin: 0 0 14px; font-size: 12px;
    border: 1px solid var(--line); background: #161616; color: var(--txt); }
.alert-danger  { background: rgba(211,47,47,.12); color: #ff8a8a; border-color: rgba(211,47,47,.4); }
.alert-success { background: rgba(46,125,50,.14); color: #7fd88a; border-color: rgba(46,125,50,.45); }
.alert-info    { background: rgba(25,118,210,.14); color: #7db7e8; border-color: rgba(25,118,210,.45); }
.alert-warning { background: rgba(255,160,0,.12);  color: #e8c063; border-color: rgba(255,160,0,.4); }

/* ---------- Formulários ---------- */
.thunder-content form { display: block; }
.thunder-content label { display: block; font-size: 11.5px; color: #fff; margin: 0 0 4px; font-weight: bold; }
.thunder-content input[type=text], .thunder-content input[type=password],
.thunder-content input[type=email], .thunder-content input[type=number],
.thunder-content input[type=tel], .thunder-content select, .thunder-content textarea {
    width: 100%; max-width: 340px; padding: 10px 11px; margin: 0 0 10px;
    background: var(--bg-input) !important; border: 1px solid #333 !important; border-radius: 4px; box-shadow: none;
    box-sizing: border-box; font-size: 12.5px; color: #eee !important; transition: border-color .2s, box-shadow .2s; }
.thunder-content input::placeholder, .thunder-content textarea::placeholder { color: #7d7d7d; }
.thunder-content input:focus, .thunder-content select:focus, .thunder-content textarea:focus {
    border-color: var(--red); box-shadow: 0 0 0 2px rgba(211,47,47,.18); outline: none; }
.thunder-content select option { background: #1d1d1d; color: #eee; }

/* Botões */
.thunder-content .btn, .thunder-content input[type=submit], .thunder-content button,
.thunder-content .btn-secondary, .thunder-content a.btn, .btn {
    display: inline-block; padding: 8px 16px; height: auto; line-height: normal;
    background: linear-gradient(to bottom, #c62828, #8e1414); color: #fff !important;
    border: none; border-radius: 4px; cursor: pointer; font-size: 11px; font-weight: bold;
    text-transform: uppercase; letter-spacing: .4px; text-decoration: none;
    text-shadow: 0 1px 1px rgba(0,0,0,.35); box-shadow: 0 3px 10px rgba(198,40,40,.3);
    transition: filter .2s, transform .05s; margin: 2px 4px 2px 0; }
.thunder-content .btn:hover, .thunder-content input[type=submit]:hover,
.thunder-content button:hover, .thunder-content .btn-secondary:hover, .btn:hover { filter: brightness(1.15); }
.thunder-content .btn:active, .thunder-content input[type=submit]:active, .btn:active { transform: translateY(1px); }
.thunder-content .btn:before, .thunder-content a.btn:before { content: "\f234"; font-family: FontAwesome;
    margin-right: 8px; font-weight: normal; }
.thunder-content .btn-secondary { background: linear-gradient(to bottom, #3a3a3a, #222); box-shadow: 0 3px 10px rgba(0,0,0,.35); }
.thunder-content .btn-secondary:before { content: none !important; margin: 0; }
.thunder-content .btn .fa { margin-right: 4px; }
.thunder-content .btn-secondary.active { background: linear-gradient(to bottom, #c62828, #8e1414); }

/* ---------- Abas ---------- */
.tabs { list-style: none; margin: 0 0 -1px; padding: 0; border-bottom: 2px solid var(--red); }
.tabs li { display: inline-block; }
.tabs li a { display: block; padding: 8px 15px; color: #bdbdbd; font-weight: bold; font-size: 11px;
    text-transform: uppercase; border: 1px solid transparent; border-bottom: none; }
.tabs li a.active { background: var(--red); color: #fff; border-radius: 4px 4px 0 0; }
.tab-content { padding: 12px 2px; }

/* ---------- Rankings ---------- */
.rankings { width: 100%; }
.rankings .character, .rankings .guild { display: flex; align-items: center; gap: 8px; width: auto;
    padding: 8px 10px; border: 0; border-bottom: 1px solid var(--line-soft); border-radius: 0;
    font-size: 12px; background: transparent; }
.rankings .character:hover, .rankings .guild:hover { background: rgba(211,47,47,.08); box-shadow: none; border-color: var(--line-soft); }
.rankings .rank { width: 30px; font-weight: bold; color: var(--red-hi); text-align: center; }
.rankings .image img { width: 26px; height: 26px; }
.rankings .name { flex: 1; font-weight: 600; color: #e6e6e6; }
.rankings .level, .rankings .class { color: var(--txt-soft); }

/* ---------- Castle Siege (card novo: arte + mark + master) ---------- */
.siege-wrap { padding: 0 !important; }
.siege-card { position: relative; display: flex; align-items: center; gap: 18px; min-height: 195px;
    padding: 20px 24px; box-sizing: border-box; border-radius: 0 0 6px 6px; overflow: hidden;
    background: #0a0a0b url(../images/siege-bg.jpg) no-repeat center center; background-size: cover; }
.siege-card:before { content: ""; position: absolute; inset: 0;
    background: linear-gradient(to bottom, rgba(8,8,9,.15) 0%, rgba(8,8,9,.55) 55%, rgba(8,8,9,.92) 100%); }
.siege-card > * { position: relative; z-index: 1; }
.siege-owner { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.siege-mark { width: 78px; height: 78px; display: flex; align-items: center; justify-content: center;
    background: rgba(15,15,16,.85); border: 1px solid #3a3a3a; border-radius: 6px;
    box-shadow: 0 3px 12px rgba(0,0,0,.6); color: #555; font-size: 26px; }
.siege-mark img { max-width: 64px; max-height: 64px; image-rendering: pixelated; }
.siege-owner-names { display: flex; flex-direction: column; gap: 3px; }
.siege-owner-names b { color: #fff; font-size: 13px; text-shadow: 0 1px 2px #000; }
.siege-owner-names span { color: #bdbdbd; font-size: 10.5px; }
.siege-owner-names span .fa { color: var(--gold); }
.siege-owner-names span em { font-style: normal; color: var(--red-hi); font-weight: bold; }
.siege-next { flex: 1; text-align: center; }
.siege-next b { display: block; color: #fff; font-size: 14px; letter-spacing: 1px; text-shadow: 0 1px 3px #000; }
.siege-next span { display: block; margin-top: 3px; color: var(--red-hi); font-weight: bold; font-size: 12px;
    text-transform: uppercase; text-shadow: 0 1px 3px #000; }
.siege-master { flex: 0 0 auto; text-align: center; }
.siege-master img { display: block; width: 68px; height: 74px; border: 1px solid #3a3a3a; border-radius: 4px;
    background: #111; box-shadow: 0 3px 12px rgba(0,0,0,.6); margin: 0 auto 5px; }
.siege-master b { display: inline-block; padding: 2px 10px; background: rgba(15,15,16,.9);
    border: 1px solid #3a3a3a; border-radius: 3px; color: #fff; font-size: 11px; letter-spacing: .5px; }

/* ---------- Castle Siege (legado, ainda usado em outras paginas) ---------- */
.castle-siege { position: relative; width: 556px; max-width: 100%; height: 188px; margin: 6px auto 8px; }
.castle-siege .siege { position: absolute; top: 0; left: 0; width: 556px; max-width: 100%; border-radius: 4px;
    filter: saturate(.75) brightness(.82); }
.castle-siege .mark { position: absolute; width: 126px; height: 126px; top: 48px; left: 5px;
    display: flex; align-items: center; justify-content: center; }
.castle-siege .mark img { max-width: 110px; max-height: 110px; }
.castle-siege .image { position: absolute; width: 68px; height: 74px; right: 58px; top: 77px; overflow: hidden; }
.castle-siege .image img { width: 68px; height: 74px; }
.castle-siege .next { position: absolute; bottom: 53px; left: 175px; width: 191px; height: 19px;
    line-height: 19px; text-align: center; font-weight: bold; color: #ff4b4b; text-shadow: 0 1px 2px #000;
    text-transform: uppercase; }
.castle-siege .owner { position: absolute; top: 18px; left: 10px; width: 113px; height: 19px;
    line-height: 19px; text-align: center; font-weight: bold; color: #fff; text-shadow: 0 1px 2px #000; }
.castle-siege .master { position: absolute; bottom: 12px; right: 58px; width: 68px; height: 17px;
    line-height: 17px; text-align: center; font-weight: bold; color: #fff; font-size: 11px; text-shadow: 0 1px 2px #000; }

/* ---------- Rodapé (a faixa final da arte — linha vermelha + ornamento — vive aqui,
     sangrando a tela inteira por fora do wrap) ---------- */
.footer { display: flex; justify-content: space-between; align-items: center; gap: 24px;
    width: 100vw; margin: 26px 0 0 calc(50% - 50vw); box-sizing: border-box;
    padding: 100px calc(50vw - 515px) 26px; background: url(../images/footer-bg.jpg) no-repeat center top;
    background-size: 1430px auto; border: 0;
    font-size: 12px; color: var(--txt-soft); }
@media (max-width: 1080px) { .footer { padding: 100px 16px 26px; } }
.footer .red { color: var(--red-hi); font-weight: bold; }
.foot-blurbs { display: flex; gap: 44px; align-items: center; }
.blurb { display: flex; align-items: center; gap: 12px; }
.blurb > .fa { font-size: 26px; color: var(--red); text-shadow: 0 2px 6px rgba(211,47,47,.4); }
.blurb b { display: block; color: #fff; font-size: 12.5px; }
.blurb span { display: block; color: var(--txt-soft); font-size: 11px; margin-top: 2px; }
.footer-copy { text-align: right; line-height: 1.5; }
@media (max-width: 900px) { .foot-blurbs { display: none; } .footer { justify-content: center; } .footer-copy { text-align: center; } }

/* ---------- Loadings / overlay ---------- */
@keyframes thunder-spin { to { transform: rotate(360deg); } }
@keyframes thunder-stripes { from { background-position: 0 0; } to { background-position: 40px 0; } }
.loading-login { display: none !important; }
.loading-login img { display: none; }
.loading-partial { display: block; margin: 14px auto; width: 30px; height: 30px;
    border: 3px solid #333; border-top-color: var(--red); border-radius: 50%; animation: thunder-spin .8s linear infinite; }
.overlay { position: absolute; inset: 0; background: rgba(0,0,0,.45); z-index: 50;
    display: flex; align-items: flex-start; justify-content: center; border-radius: 6px; }
.overlay .progress { width: 60%; height: 8px; margin-top: 30px; background: #222; border-radius: 5px;
    overflow: hidden; box-shadow: inset 0 1px 2px rgba(0,0,0,.4); }
.overlay .progress .bar { height: 100%; width: 100% !important;
    background-image: linear-gradient(45deg,#c62828 25%,#8e1414 25%,#8e1414 50%,#c62828 50%,#c62828 75%,#8e1414 75%,#8e1414);
    background-size: 40px 40px; animation: thunder-stripes 1s linear infinite; }
