/* ============================================================
   Template Thunder — CSS do conteúdo (clássico ThunderBR, compacto)
   ============================================================ */

/* ---------- Base da coluna de conteúdo (~612px) ---------- */
.thunder-content { position: relative; padding: 12px 16px; font-size: 11px; color: #333;
    line-height: 1.5; min-height: 430px; }
.thunder-content a { color: #7b2128; }
.thunder-content a:hover { color: #c0392b; }
.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: #222; }

/* ---------- Títulos de seção ---------- */
.thunder-content h1, .thunder-content h1.title, .thunder-content .title {
    font-size: 12px; color: #fff; font-family: Verdana, Arial; font-weight: bold;
    background: linear-gradient(to bottom, #8a2a2a, #5e1a1a);
    padding: 5px 10px; margin: 0 0 10px; border-left: 3px solid #d4af37;
    text-shadow: 0 1px 1px rgba(0,0,0,.4); border-radius: 2px; }

/* ---------- Boas-vindas (home) ---------- */
.thunder-welcome { border-bottom: 1px solid #eee; padding-bottom: 12px; margin-bottom: 14px; }
.thunder-welcome h2 { font-size: 15px; color: #7b2128; margin: 0 0 6px; font-family: Verdana, Arial; }

/* ---------- Breadcrumb ---------- */
.breadcrumber { list-style: none; margin: 0 0 14px; padding: 6px 10px; background: #f3f3f3;
    border: 1px solid #e2e2e2; border-radius: 2px; font-size: 11px; }
.breadcrumber li { display: inline; color: #999; }
.breadcrumber li:not(:last-child):after { content: " › "; color: #bbb; }
.breadcrumber li.active { color: #7b2128; font-weight: bold; }

/* ---------- Grid (sistema 12 col: grid-4 + grid-8 etc.) ---------- */
.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 (.panel) e menu de serviços ---------- */
.panel { margin: 0 0 14px; }
.panel-services { list-style: none; margin: 0; padding: 0; border: 1px solid #e2e2e2;
    border-radius: 3px; overflow: hidden; background: #fafafa; }
.panel-services li { border-bottom: 1px solid #ececec; }
.panel-services li:last-child { border-bottom: none; }
.panel-services li a { display: block; padding: 8px 12px; color: #444; font-size: 11px;
    text-decoration: none; transition: background .15s, color .15s; }
.panel-services li a:before { content: "» "; color: #b08; color: #c0392b; }
.panel-services li a:hover { background: #f3e3e3; color: #7b2128; }
.panel-services li.active a { background: linear-gradient(to bottom, #8a2a2a, #5e1a1a);
    color: #fff; font-weight: bold; }
.panel-services li.active a:before { color: #f1d27a; }

/* ---------- 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 #ddd; border-radius: 4px; padding: 6px; background: #fff;
    transition: border-color .15s, box-shadow .15s, transform .05s; }
.character:hover { border-color: #8a2a2a; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.character.active { border-color: #d4af37; box-shadow: 0 0 0 2px rgba(212,175,55,.4); }
.character .name { font-size: 11px; font-weight: bold; color: #7b2128; margin-bottom: 5px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.character .avatar { width: 90px; height: 100px; margin: 0 auto; background: #f1f1f1;
    border: 1px solid #e6e6e6; 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 #ddd; border-radius: 3px; margin: 0 0 14px; overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.box-panel-title { background: linear-gradient(to bottom, #3a3a3a, #222); color: #fff;
    padding: 8px 12px; font-weight: bold; font-size: 12px; text-transform: uppercase; letter-spacing: .4px; }
.box-panel-content { padding: 12px; background: #fff; }

/* ---------- 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: 7px 10px; border-bottom: 1px solid #eee; }
table.list th, .thunder-content table th { padding: 7px 10px; background: #f3f3f3; color: #555;
    text-align: left; border-bottom: 2px solid #8a2a2a; font-size: 11px; text-transform: uppercase; }
table.list tr:nth-child(even) td { background: #fafafa; }
table.list tr:hover td { background: #fdf3f3; }
table.list td:first-child { color: #777; }

/* ---------- Listas genéricas de conteúdo ---------- */
.thunder-content ul:not(.panel-services):not(.tabs):not(.breadcrumber) { margin: 0 0 12px; padding-left: 20px; }
.thunder-content ul li { margin: 3px 0; }

/* ---------- Alertas / mensagens ---------- */
.alert, .msg { padding: 11px 14px; border-radius: 3px; margin: 0 0 14px; font-size: 12px;
    border: 1px solid #e2e2e2; background: #f7f7f7; color: #555; }
.alert-danger  { background: #fdecec; color: #a12626; border-color: #f3c5c5; }
.alert-success { background: #eaf7ea; color: #246b24; border-color: #c4e7c4; }
.alert-info    { background: #eaf2fb; color: #1f5fa8; border-color: #c4dcf3; }
.alert-warning { background: #fff7e6; color: #9a6b00; border-color: #f3e0b0; }

/* ---------- Formulários ---------- */
.thunder-content form { display: block; }
.thunder-content label { display: block; font-size: 11px; color: #555; 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: 320px; padding: 9px 10px; margin: 0 0 10px;
    border: 1px solid #cfcfcf; border-radius: 3px; box-shadow: none; box-sizing: border-box;
    font-size: 12px; background: #fff; transition: border-color .2s, box-shadow .2s; }
.thunder-content input:focus, .thunder-content select:focus, .thunder-content textarea:focus {
    border-color: #8a2a2a; box-shadow: 0 0 0 2px rgba(138,42,42,.12); outline: none; }

/* Botões */
.thunder-content .btn, .thunder-content input[type=submit], .thunder-content button,
.thunder-content .btn-secondary, .thunder-content a.btn {
    display: inline-block; padding: 9px 20px; height: auto; line-height: normal;
    background: linear-gradient(to bottom, #8a2a2a, #5e1a1a); color: #fff !important;
    border: none; border-radius: 3px; cursor: pointer; font-size: 12px; font-weight: bold;
    text-decoration: none; text-shadow: 0 1px 1px rgba(0,0,0,.3); box-shadow: 0 2px 4px rgba(0,0,0,.15);
    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 { filter: brightness(1.15); }
.thunder-content .btn:active, .thunder-content input[type=submit]:active { transform: translateY(1px); }
.thunder-content .btn-secondary { background: linear-gradient(to bottom, #555, #333); }
.thunder-content .btn-secondary.active { background: linear-gradient(to bottom, #8a2a2a, #5e1a1a); }

/* ---------- Abas ---------- */
.tabs { list-style: none; margin: 0 0 -1px; padding: 0; border-bottom: 2px solid #8a2a2a; }
.tabs li { display: inline-block; }
.tabs li a { display: block; padding: 7px 14px; color: #555; font-weight: bold; font-size: 11px;
    text-transform: uppercase; border: 1px solid transparent; border-bottom: none; }
.tabs li a.active { background: #8a2a2a; color: #fff; border-radius: 3px 3px 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: 7px 10px; border: 0; border-bottom: 1px solid #eee; border-radius: 0; font-size: 12px; background: #fff; }
.rankings .character:hover, .rankings .guild:hover { background: #fdf3f3; box-shadow: none; }
.rankings .rank { width: 30px; font-weight: bold; color: #7b2128; text-align: center; }
.rankings .image img { width: 26px; height: 26px; }
.rankings .name { flex: 1; font-weight: 600; }
.rankings .level, .rankings .class { color: #777; }

/* ---------- Eventos (home) — caixa compacta com rolagem ---------- */
.thunder-events { max-height: 240px; overflow-y: auto; }
.thunder-events ul, ul#c_events { list-style: none; margin: 0; padding: 0; }
ul#c_events li { display: flex; align-items: center; justify-content: space-between;
    padding: 6px 10px; border-bottom: 1px solid #eee; font-size: 11px; }
ul#c_events li:nth-child(even) { background: #fafafa; }
ul#c_events li p { margin: 0; font-weight: 600; color: #333; }
ul#c_events li span { font-weight: bold; color: #7b2128; }
ul#c_events li i.icon-on { color: #2ecc40; } ul#c_events li i.icon-off { color: #bbb; }

/* ============================================================
   CAIXA DE LOGIN NA SIDEBAR (166px)
   ============================================================ */
#loginjsz { font-size: 11px; color: #54423F; padding: 6px 4px; }
#loginjsz form#logar { display: block; padding: 6px 0 2px; }
#loginjsz input[type=text], #loginjsz input[type=password] {
    display: block; width: 138px; padding: 7px 8px; margin: 0 auto 7px; border: 1px solid #c9c9c9;
    border-radius: 3px; box-shadow: inset 0 1px 2px rgba(0,0,0,.06); box-sizing: border-box; font-size: 11px;
    transition: border-color .2s, box-shadow .2s; }
#loginjsz input[type=text]:focus, #loginjsz input[type=password]:focus {
    border-color: #8a2a2a; box-shadow: 0 0 0 2px rgba(138,42,42,.12); outline: none; }
#loginjsz #imglogar { display: block; margin: 2px auto 4px; cursor: pointer; transition: filter .2s; }
#loginjsz #imglogar:hover { filter: brightness(1.2); }
#loginjsz label { font-size: 10px; color: #777; display: block; text-align: center; margin: 2px 0; }
#loginjsz ul { list-style: none; margin: 0 0 8px; padding: 0; }
#loginjsz ul li { padding: 5px 10px; border-bottom: 1px dotted #ddd; }
#loginjsz ul li i { color: #8a2a2a; margin-right: 4px; }
#loginjsz ul li .text { font-weight: bold; color: #222; }
#loginjsz .notification { background: #c0392b; color: #fff; border-radius: 9px; padding: 0 6px; font-size: 9px; margin-left: 4px; }

/* ============================================================
   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: block; margin: 6px auto; width: 26px; height: 26px;
    border: 3px solid #e3c9c9; border-top-color: #8a2a2a; border-radius: 50%; animation: thunder-spin .8s linear infinite; }
.loading-login img { display: none; }
.loading-partial { display: block; margin: 14px auto; width: 30px; height: 30px;
    border: 3px solid #e0e0e0; border-top-color: #8a2a2a; border-radius: 50%; animation: thunder-spin .8s linear infinite; }
.overlay { position: absolute; inset: 0; background: rgba(255,255,255,.65); z-index: 50;
    display: flex; align-items: flex-start; justify-content: center; }
.overlay .progress { width: 60%; height: 8px; margin-top: 30px; background: #e7e7e7; border-radius: 5px;
    overflow: hidden; box-shadow: inset 0 1px 2px rgba(0,0,0,.1); }
.overlay .progress .bar { height: 100%; width: 100% !important;
    background-image: linear-gradient(45deg,#8a2a2a 25%,#a23a3a 25%,#a23a3a 50%,#8a2a2a 50%,#8a2a2a 75%,#a23a3a 75%,#a23a3a);
    background-size: 40px 40px; animation: thunder-stripes 1s linear infinite; }

/* ============================================================
   AJUSTES v4 (overrides)
   ============================================================ */

/* --- Menu do usuário logado: fonte menor, igual ao menu de baixo --- */
#loginjsz { font-size: 10px; }
#loginjsz ul { margin: 0 0 4px; }
#loginjsz ul li,
#loginjsz #logadocomsucesso li,
#loginjsz #logadocomsucesso2 li { padding: 3px 8px; font-size: 10px; line-height: 1.35; }
#loginjsz ul li i { margin-right: 3px; }

/* --- Eventos na sidebar (compacto: só nome + tempo) --- */
ul#c_events.sidebar-events { list-style: none; margin: 0; padding: 0; max-height: 175px; overflow-y: auto; }
ul#c_events.sidebar-events li { display: flex; justify-content: space-between; align-items: center; gap: 4px;
    padding: 3px 8px; border-bottom: 1px dotted #cfcfcf; font-size: 9px; line-height: 1.25; background: transparent; }
ul#c_events.sidebar-events li:nth-child(even) { background: rgba(0,0,0,.03); }
ul#c_events.sidebar-events li i { display: none; }           /* esconde iconezinhos */
ul#c_events.sidebar-events li p { display: none; }           /* segurança: some com <p> antigo */
ul#c_events.sidebar-events .ev-name { color: #333; font-weight: bold; white-space: nowrap;
    overflow: hidden; text-overflow: ellipsis; max-width: 96px; }
ul#c_events.sidebar-events .ev-time { color: #7b2128; font-weight: bold; white-space: nowrap; }

/* --- Login: UM spinner limpo só + clarão suave --- */
.loading-login { display: none !important; }                 /* esconde o spinner do form (deixa só o da partial) */
.loading-partial { width: 22px; height: 22px; border-width: 3px; margin: 10px auto; }
.overlay { background: rgba(255,255,255,.4); }

/* ============================================================
   AJUSTES v5
   ============================================================ */

/* --- Seções do menu lateral: iguais às barras "Painel do Usuário"/"Menu" --- */
.menu-sec { position: relative; box-sizing: border-box; height: 30px; line-height: 28px; padding: 0 22px 0 14px;
    color: #333; font-weight: bold; font-size: 11px; white-space: nowrap; overflow: hidden;
    background: linear-gradient(to bottom, #fdfdfd 0%, #f1f1f1 30%, #dedede 80%, #d2d2d2 100%);
    border-top: 1px solid #ffffff; border-bottom: 1px solid #b6b6b6; }
.menu-sec:before { content: "› "; color: #666; font-weight: bold; margin-right: 2px; }
.menu-sec:after { content: ""; position: absolute; top: 5px; bottom: 5px; right: 6px; width: 9px;
    background: linear-gradient(to bottom, #6a6a6a, #333); border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(255,255,255,.6), inset 0 1px 1px rgba(255,255,255,.25); }
.menu-spacer { height: 26px; }

/* --- Faixa que liga o topo ao conteúdo (completa o banner) --- */
.content-top { display: block; width: 100%; height: auto; margin: 0; }

/* --- Scrollbar discreta (eventos da sidebar) --- */
.sidebar-events { scrollbar-width: thin; scrollbar-color: #b3b3b3 #e2e2e2; }
.sidebar-events::-webkit-scrollbar { width: 8px; }
.sidebar-events::-webkit-scrollbar-track { background: #e2e2e2; }
.sidebar-events::-webkit-scrollbar-thumb { background: #b3b3b3; border-radius: 4px; border: 2px solid #e2e2e2; }
.sidebar-events::-webkit-scrollbar-thumb:hover { background: #969696; }

/* --- Castle Siege (imagem com textos posicionados) --- */
.castle-siege { position: relative; width: 556px; max-width: 100%; height: 188px; margin: 6px auto 14px; }
.castle-siege .siege { position: absolute; top: 0; left: 0; width: 556px; max-width: 100%; }
.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: #fff; text-shadow: 0 1px 2px #000; }
.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; }
