/* ============================================================
   TCG Creators Hub — tema dark gamer / esports analytics
   ============================================================ */

:root {
    --bg: #0a0e17;
    --bg-2: #0d1220;
    --panel: rgba(19, 26, 44, 0.62);
    --panel-solid: #121a2c;
    --stroke: rgba(124, 143, 191, 0.14);
    --stroke-strong: rgba(124, 143, 191, 0.28);
    --txt: #dbe4f8;
    --txt-dim: #8b98b8;
    --txt-faint: #5b6788;
    --neon-purple: #a855f7;
    --neon-cyan: #22d3ee;
    --neon-green: #34d399;
    --neon-pink: #f472b6;
    --danger: #ef4444;
    --warn: #facc15;
    --font-display: 'Orbitron', 'Rajdhani', sans-serif;
    --font-head: 'Rajdhani', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

body {
    background: var(--bg);
    color: var(--txt);
    font-family: var(--font-body);
    font-size: 13px;
    overflow-x: hidden;
}

/* fundo com grid sutil + glow radial */
.bg-grid {
    position: fixed; inset: 0; z-index: 0; pointer-events: none;
    background:
        radial-gradient(1200px 600px at 15% -10%, rgba(168, 85, 247, 0.10), transparent 60%),
        radial-gradient(1000px 500px at 90% 110%, rgba(34, 211, 238, 0.08), transparent 60%),
        linear-gradient(rgba(124, 143, 191, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(124, 143, 191, 0.045) 1px, transparent 1px);
    background-size: auto, auto, 44px 44px, 44px 44px;
}

.app { position: relative; z-index: 1; padding: 66px 22px 40px; min-height: 100vh; }

/* ------------------------------------------------------------
   Menu superior fixo
   ------------------------------------------------------------ */
.topbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 60;
    display: flex; align-items: center; gap: 22px;
    height: 48px; padding: 0 22px;
    background: rgba(11, 15, 26, 0.88);
    border-bottom: 1px solid var(--stroke-strong);
    backdrop-filter: blur(14px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
}
.topbar::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.55), rgba(34, 211, 238, 0.4), transparent);
}
.brand {
    display: flex; align-items: center; gap: 10px;
    font-family: var(--font-head); font-weight: 700; font-size: 15px;
    letter-spacing: 1px; text-transform: uppercase;
    color: var(--txt); text-decoration: none; white-space: nowrap;
}
.brand-logo {
    height: 34px; width: auto;
    filter: drop-shadow(0 0 10px rgba(245, 197, 66, 0.35));
}
.brand-name { padding-top: 2px; }
.brand-mark {
    font-family: var(--font-display); font-size: 13px; font-weight: 900;
    padding: 2px 7px; border-radius: 7px; color: #fff;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.85), rgba(34, 211, 238, 0.65));
    box-shadow: 0 0 14px rgba(168, 85, 247, 0.45);
}

/* logos dos jogos */
.glogo { width: auto; vertical-align: -3px; margin-right: 5px; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.7)); }
.glogo-chip { width: auto; vertical-align: -4px; margin-right: 2px; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.6)); }
.topnav { display: flex; align-items: center; gap: 4px; flex: 1; }
.topnav-item {
    display: flex; align-items: center; gap: 7px;
    padding: 7px 14px; border-radius: 9px;
    color: var(--txt-dim); text-decoration: none;
    font-family: var(--font-head); font-weight: 600; font-size: 14px;
    letter-spacing: 0.5px; white-space: nowrap;
    border: 1px solid transparent;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.topnav-item:hover { background: rgba(124, 143, 191, 0.10); color: var(--txt); }
.topnav-item.active {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.22), rgba(34, 211, 238, 0.14));
    color: #fff;
    border-color: rgba(168, 85, 247, 0.4);
}
.tn-ico { font-size: 14px; }
.topbar-clock {
    font-family: var(--font-display); font-size: 14px;
    color: var(--neon-cyan);
    text-shadow: 0 0 12px rgba(34, 211, 238, 0.6);
    white-space: nowrap;
}
@media (max-width: 860px) {
    .topnav-item { padding: 7px 9px; font-size: 12px; }
    .brand span:not(.brand-mark) { display: none; }
}

/* ------------------------------------------------------------
   Cabeçalho de página
   ------------------------------------------------------------ */
.page-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 14px; flex-wrap: wrap; }
.page-title {
    font-family: var(--font-display); font-size: 22px; font-weight: 700;
    letter-spacing: 1.5px; text-transform: uppercase;
    background: linear-gradient(90deg, #fff, #b9c6ee);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.page-sub { color: var(--txt-dim); font-family: var(--font-head); font-size: 14px; letter-spacing: 0.4px; }
.page-head .spacer { flex: 1; }

/* ------------------------------------------------------------
   Painéis / cards (glassmorphism)
   ------------------------------------------------------------ */
.panel {
    background: var(--panel);
    border: 1px solid var(--stroke);
    border-radius: 14px;
    backdrop-filter: blur(10px);
    padding: 14px 16px;
    position: relative;
    overflow: hidden;
}
.panel::before {
    content: ''; position: absolute; inset: 0 0 auto 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.5), transparent);
}
.panel-title {
    font-family: var(--font-head); font-size: 13px; font-weight: 700;
    letter-spacing: 1.4px; text-transform: uppercase; color: var(--txt-dim);
    margin-bottom: 10px; display: flex; align-items: center; gap: 8px;
}
.panel-title .hint { margin-left: auto; font-size: 11px; font-weight: 500; letter-spacing: 0.2px; text-transform: none; color: var(--txt-faint); }

/* ------------------------------------------------------------
   KPIs
   ------------------------------------------------------------ */
.kpi-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 12px; }
.kpi {
    background: var(--panel); border: 1px solid var(--stroke); border-radius: 12px;
    padding: 12px 14px; backdrop-filter: blur(10px); position: relative; overflow: hidden;
}
.kpi .k-label { font-family: var(--font-head); font-size: 11px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; color: var(--txt-dim); }
.kpi .k-value {
    font-family: var(--font-display); font-size: 26px; font-weight: 700; line-height: 1.25;
    color: #fff; text-shadow: 0 0 18px rgba(168, 85, 247, 0.55);
}
.kpi .k-value small { font-size: 13px; color: var(--txt-dim); text-shadow: none; font-family: var(--font-head); }
.kpi .k-sub { font-size: 11px; color: var(--txt-faint); margin-top: 2px; }
.kpi.accent-cyan .k-value { text-shadow: 0 0 18px rgba(34, 211, 238, 0.6); }
.kpi.accent-green .k-value { text-shadow: 0 0 18px rgba(52, 211, 153, 0.6); }
.kpi.accent-pink .k-value { text-shadow: 0 0 18px rgba(244, 114, 182, 0.6); }
.kpi.live-kpi { border-color: rgba(239, 68, 68, 0.45); }
.kpi.live-kpi .k-value { color: #ff6b6b; text-shadow: 0 0 20px rgba(239, 68, 68, 0.75); }

/* ------------------------------------------------------------
   Grids de dashboard
   ------------------------------------------------------------ */
.grid { display: grid; gap: 12px; }
.dash-grid { grid-template-columns: repeat(12, 1fr); }
.col-3 { grid-column: span 3; } .col-4 { grid-column: span 4; }
.col-5 { grid-column: span 5; } .col-6 { grid-column: span 6; }
.col-7 { grid-column: span 7; } .col-8 { grid-column: span 8; }
.col-9 { grid-column: span 9; } .col-12 { grid-column: span 12; }
@media (max-width: 1100px) {
    .col-3, .col-4, .col-5 { grid-column: span 6; }
    .col-6, .col-7, .col-8, .col-9 { grid-column: span 12; }
}
@media (max-width: 720px) { .dash-grid > * { grid-column: span 12 !important; } }

.chart { width: 100%; height: 260px; }
.chart-tall { height: 320px; }
.chart-gauge { height: 210px; }

/* ------------------------------------------------------------
   Painel AO VIVO
   ------------------------------------------------------------ */
.live-dot {
    display: inline-block; width: 9px; height: 9px; border-radius: 50%;
    background: #ef4444; box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    animation: pulse 1.6s infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
    70% { box-shadow: 0 0 0 9px rgba(239, 68, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}
.live-list { display: flex; flex-direction: column; gap: 7px; max-height: 560px; overflow-y: auto; }
.live-row {
    display: flex; align-items: center; gap: 10px; padding: 7px 9px;
    background: rgba(239, 68, 68, 0.05); border: 1px solid rgba(239, 68, 68, 0.16);
    border-radius: 10px; text-decoration: none; color: var(--txt);
    transition: border-color 0.15s, background 0.15s;
}
.live-row:hover { border-color: rgba(239, 68, 68, 0.5); background: rgba(239, 68, 68, 0.1); }
.live-row img { width: 32px; height: 32px; border-radius: 8px; object-fit: cover; }
.live-row .lr-name { font-weight: 600; font-size: 13px; }
.live-row .lr-game { font-size: 11px; color: var(--txt-dim); }
.live-row .lr-time { margin-left: auto; font-family: var(--font-display); font-size: 12px; color: #ff8a8a; white-space: nowrap; display: flex; align-items: center; gap: 7px; }
.live-row .lr-viewers { color: var(--neon-cyan); font-size: 11px; }
.live-badge-partner { font-size: 9px; font-weight: 700; letter-spacing: 0.6px; color: #f5c542; border: 1px solid rgba(245, 197, 66, 0.5); border-radius: 4px; padding: 0 4px; }

/* ------------------------------------------------------------
   Leaderboard
   ------------------------------------------------------------ */
.lb-list { display: flex; flex-direction: column; gap: 6px; }
.lb-row {
    display: flex; align-items: center; gap: 10px; padding: 6px 9px;
    border-radius: 10px; border: 1px solid transparent; text-decoration: none; color: var(--txt);
    transition: background 0.15s, border-color 0.15s;
}
.lb-row:hover { background: rgba(124, 143, 191, 0.08); border-color: var(--stroke-strong); }
.lb-pos { font-family: var(--font-display); font-size: 14px; width: 26px; text-align: center; color: var(--txt-faint); }
.lb-row:nth-child(1) .lb-pos { color: #f5c542; text-shadow: 0 0 10px rgba(245, 197, 66, 0.6); }
.lb-row:nth-child(2) .lb-pos { color: #c9d4e8; }
.lb-row:nth-child(3) .lb-pos { color: #cd7f4f; }
.lb-row img { width: 30px; height: 30px; border-radius: 8px; object-fit: cover; }
.lb-name { font-weight: 600; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-meta { font-size: 11px; color: var(--txt-dim); }
.lb-value { margin-left: auto; font-family: var(--font-display); font-size: 13px; color: var(--neon-cyan); white-space: nowrap; }

/* ------------------------------------------------------------
   Cards de parceiros
   ------------------------------------------------------------ */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(295px, 1fr)); gap: 12px; }
.pcard {
    background: var(--panel); border: 1px solid var(--stroke); border-radius: 14px;
    padding: 13px 14px; backdrop-filter: blur(10px);
    display: flex; flex-direction: column; gap: 9px;
    transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
    text-decoration: none; color: var(--txt); position: relative; overflow: hidden;
}
.pcard:hover { transform: translateY(-2px); border-color: rgba(168, 85, 247, 0.5); box-shadow: 0 8px 26px rgba(168, 85, 247, 0.16); }
.pcard.meta-ok { border-left: 3px solid var(--neon-green); }
.pcard-head { display: flex; align-items: center; gap: 10px; }
.pcard-head img { width: 42px; height: 42px; border-radius: 10px; object-fit: cover; }
.pcard-name { font-family: var(--font-head); font-weight: 700; font-size: 16px; letter-spacing: 0.3px; line-height: 1.1; }
.pcard-game { font-size: 11px; color: var(--txt-dim); display: flex; align-items: center; gap: 5px; }
.game-chip { display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; font-weight: 600; padding: 1px 7px; border-radius: 20px; border: 1px solid; }
.tier-badge {
    margin-left: auto; font-family: var(--font-display); font-size: 10px; font-weight: 700;
    padding: 3px 7px; border-radius: 6px; border: 1px solid; letter-spacing: 0.8px; white-space: nowrap;
}
.meta-bars { display: flex; flex-direction: column; gap: 6px; }
.mbar-label { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--txt-dim); margin-bottom: 2px; }
.mbar-label b { color: var(--txt); font-weight: 600; }
.mbar { height: 6px; border-radius: 4px; background: rgba(124, 143, 191, 0.14); overflow: hidden; }
.mbar > i { display: block; height: 100%; border-radius: 4px; transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.pcard-foot { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--stroke); padding-top: 8px; }
.pcard-salary { font-size: 11px; color: var(--txt-dim); }
.pcard-salary b { font-family: var(--font-display); font-size: 14px; color: #fff; }
.pcard-salary .est { color: var(--neon-green); }
.pct-big { font-family: var(--font-display); font-size: 20px; font-weight: 700; }

/* ------------------------------------------------------------
   Filtros / toolbar
   ------------------------------------------------------------ */
.toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.tb-btn, .tb-select, .tb-input {
    background: rgba(19, 26, 44, 0.8); border: 1px solid var(--stroke-strong);
    color: var(--txt); border-radius: 9px; padding: 7px 12px;
    font-family: var(--font-head); font-weight: 600; font-size: 13px; letter-spacing: 0.4px;
    cursor: pointer; transition: border-color 0.15s, background 0.15s;
}
.tb-btn:hover { border-color: var(--neon-purple); }
.tb-btn.active { background: linear-gradient(135deg, rgba(168, 85, 247, 0.28), rgba(34, 211, 238, 0.16)); border-color: rgba(168, 85, 247, 0.6); color: #fff; }
.tb-input { cursor: text; min-width: 220px; font-family: var(--font-body); font-weight: 400; }
.tb-input:focus, .tb-select:focus { outline: none; border-color: var(--neon-cyan); }
.tb-count { color: var(--txt-faint); font-size: 12px; margin-left: auto; }

/* ------------------------------------------------------------
   Tabelas densas
   ------------------------------------------------------------ */
.tbl-wrap { overflow: auto; border-radius: 12px; border: 1px solid var(--stroke); }
table.tbl { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.tbl thead th {
    position: sticky; top: 0; z-index: 2;
    background: #101728; color: var(--txt-dim);
    font-family: var(--font-head); font-size: 11px; font-weight: 700;
    letter-spacing: 1px; text-transform: uppercase;
    padding: 9px 10px; text-align: left; white-space: nowrap;
    cursor: pointer; user-select: none;
}
.tbl thead th.sorted-asc::after { content: ' ▲'; color: var(--neon-cyan); }
.tbl thead th.sorted-desc::after { content: ' ▼'; color: var(--neon-cyan); }
.tbl tbody td { padding: 7px 10px; border-top: 1px solid var(--stroke); white-space: nowrap; }
.tbl tbody tr { transition: background 0.1s; }
.tbl tbody tr:hover { background: rgba(124, 143, 191, 0.07); }
.tbl .cell-name { display: flex; align-items: center; gap: 8px; }
.tbl .cell-name img { width: 26px; height: 26px; border-radius: 7px; object-fit: cover; }
.tbl .num { font-family: var(--font-display); font-size: 12px; }
.tbl a { color: var(--txt); text-decoration: none; }
.tbl a:hover { color: var(--neon-cyan); }

.badge { display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: 0.6px; padding: 2px 7px; border-radius: 5px; border: 1px solid; }
.badge-live { color: #ff6b6b; border-color: rgba(239, 68, 68, 0.5); background: rgba(239, 68, 68, 0.1); }
.badge-ban { color: #f87171; border-color: rgba(239, 68, 68, 0.5); }
.badge-partner { color: #f5c542; border-color: rgba(245, 197, 66, 0.45); }
.badge-off { color: var(--txt-faint); border-color: var(--stroke-strong); }
.badge-ok { color: var(--neon-green); border-color: rgba(52, 211, 153, 0.45); }

/* nível do streamer */
.lvl-chip {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 30px; padding: 2px 6px; border-radius: 6px;
    font-family: var(--font-display); font-size: 11px; font-weight: 700;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.25), rgba(34, 211, 238, 0.18));
    border: 1px solid rgba(168, 85, 247, 0.4); color: #e4d5ff;
}

/* ------------------------------------------------------------
   Perfil do criador
   ------------------------------------------------------------ */
.hero {
    display: flex; gap: 18px; align-items: center; margin-bottom: 14px;
    background: var(--panel); border: 1px solid var(--stroke); border-radius: 16px;
    padding: 18px 22px; backdrop-filter: blur(12px); position: relative; overflow: hidden;
}
.hero::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(120deg, rgba(168, 85, 247, 0.12), transparent 45%, rgba(34, 211, 238, 0.08));
    pointer-events: none;
}
.hero img.hero-avatar { width: 84px; height: 84px; border-radius: 18px; object-fit: cover; border: 2px solid rgba(168, 85, 247, 0.5); box-shadow: 0 0 24px rgba(168, 85, 247, 0.35); }
.hero-name { font-family: var(--font-display); font-size: 26px; font-weight: 700; letter-spacing: 1px; color: #fff; }
.hero-tags { display: flex; gap: 7px; margin-top: 6px; flex-wrap: wrap; align-items: center; }
.hero-socials { margin-left: auto; display: flex; flex-direction: column; gap: 5px; align-items: flex-end; z-index: 1; }
.hero-socials a { color: var(--txt-dim); text-decoration: none; font-size: 12px; transition: color 0.15s; }
.hero-socials a:hover { color: var(--neon-cyan); }

.stat-inline { display: flex; gap: 18px; flex-wrap: wrap; }
.stat-inline .si { min-width: 110px; }
.stat-inline .si-label { font-size: 10.5px; letter-spacing: 1px; text-transform: uppercase; color: var(--txt-faint); font-family: var(--font-head); font-weight: 600; }
.stat-inline .si-value { font-family: var(--font-display); font-size: 18px; color: #fff; }
.stat-inline .si-value small { font-size: 11px; color: var(--txt-dim); }

/* barra de progresso de nível */
.lvl-progress { height: 10px; border-radius: 6px; background: rgba(124, 143, 191, 0.14); overflow: hidden; position: relative; }
.lvl-progress > i {
    display: block; height: 100%;
    background: linear-gradient(90deg, var(--neon-purple), var(--neon-cyan));
    box-shadow: 0 0 14px rgba(34, 211, 238, 0.5); border-radius: 6px;
}

/* ------------------------------------------------------------
   Ficha do parceiro (descricao estruturada)
   ------------------------------------------------------------ */
.ficha-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 8px 14px;
}
.ficha-item {
    background: rgba(13, 18, 32, 0.55);
    border: 1px solid var(--stroke);
    border-radius: 10px; padding: 8px 11px; min-width: 0;
}
.ficha-label {
    font-family: var(--font-head); font-size: 10px; font-weight: 700;
    letter-spacing: 1.1px; text-transform: uppercase; color: var(--txt-faint);
}
.ficha-valor {
    font-size: 13px; font-weight: 600; color: var(--txt); margin-top: 2px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ficha-notas { margin-top: 12px; border-top: 1px solid var(--stroke); padding-top: 10px; }
.ficha-nota {
    font-size: 12px; color: var(--txt-dim); padding: 5px 10px; margin-bottom: 5px;
    background: rgba(245, 197, 66, 0.05); border-left: 2px solid rgba(245, 197, 66, 0.5);
    border-radius: 0 8px 8px 0;
}

/* ------------------------------------------------------------
   Comparativo mensal
   ------------------------------------------------------------ */
.comp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.comp-item {
    background: rgba(13, 18, 32, 0.55); border: 1px solid var(--stroke);
    border-radius: 12px; padding: 11px 13px;
}
.comp-label {
    font-family: var(--font-head); font-size: 10.5px; font-weight: 700;
    letter-spacing: 1.1px; text-transform: uppercase; color: var(--txt-dim);
}
.comp-valor {
    font-family: var(--font-display); font-size: 22px; font-weight: 700; color: #fff;
    margin-top: 3px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.comp-sub { font-size: 11px; color: var(--txt-faint); margin-top: 4px; }
.comp-sub b { color: var(--txt-dim); font-weight: 600; }
.delta {
    font-family: var(--font-head); font-size: 11px; font-weight: 700; letter-spacing: 0.4px;
    padding: 2px 8px; border-radius: 12px; border: 1px solid; white-space: nowrap;
}
.delta-up   { color: var(--neon-green); border-color: rgba(52, 211, 153, 0.45); background: rgba(52, 211, 153, 0.08); }
.delta-down { color: #ff8a8a; border-color: rgba(239, 68, 68, 0.45); background: rgba(239, 68, 68, 0.08); }
.delta-flat { color: var(--txt-dim); border-color: var(--stroke-strong); }

/* ------------------------------------------------------------
   Clips da Twitch
   ------------------------------------------------------------ */
.clips-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 9px; }
.clip-card {
    display: block; border-radius: 10px; overflow: hidden;
    border: 1px solid var(--stroke); background: rgba(13, 18, 32, 0.6);
    text-decoration: none; color: var(--txt);
    transition: transform 0.15s, border-color 0.15s;
}
.clip-card:hover { transform: translateY(-2px); border-color: var(--neon-purple); }
.clip-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.clip-info { padding: 6px 8px; }
.clip-title { font-size: 11px; font-weight: 600; line-height: 1.25; }
.clip-meta { font-size: 10px; color: var(--txt-faint); margin-top: 2px; }

/* ------------------------------------------------------------
   Timeline de encerramentos
   ------------------------------------------------------------ */
.timeline { position: relative; padding-left: 22px; max-height: 420px; overflow-y: auto; }
.timeline::before { content: ''; position: absolute; left: 7px; top: 4px; bottom: 4px; width: 2px; background: linear-gradient(180deg, rgba(239, 68, 68, 0.5), rgba(124, 143, 191, 0.15)); }
.tl-item { position: relative; padding: 6px 4px 10px; }
.tl-item::before {
    content: ''; position: absolute; left: -20px; top: 12px; width: 9px; height: 9px;
    border-radius: 50%; background: var(--bg); border: 2px solid var(--danger);
}
.tl-date { font-family: var(--font-display); font-size: 11px; color: #ff8a8a; }
.tl-name { font-weight: 700; font-family: var(--font-head); font-size: 14px; }
.tl-motivo { font-size: 12px; color: var(--txt-dim); margin-top: 2px; max-width: 720px; }

/* ------------------------------------------------------------
   Diversos
   ------------------------------------------------------------ */
.muted { color: var(--txt-dim); }
.faint { color: var(--txt-faint); }
.text-green { color: var(--neon-green); }
.text-cyan { color: var(--neon-cyan); }
.text-red { color: var(--danger); }
.mono { font-family: var(--font-display); }
.nowrap { white-space: nowrap; }
.mt { margin-top: 12px; }
.empty-note { color: var(--txt-faint); font-size: 12px; padding: 18px 6px; text-align: center; }

::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(124, 143, 191, 0.25); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: rgba(124, 143, 191, 0.45); }

/* ------------------------------------------------------------
   Login
   ------------------------------------------------------------ */
.login-wrap {
    position: relative; z-index: 1; min-height: 100vh;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 16px; padding: 24px;
}
.login-card {
    width: 100%; max-width: 420px;
    background: var(--panel); border: 1px solid var(--stroke-strong);
    border-radius: 18px; backdrop-filter: blur(14px);
    padding: 34px 34px 28px; position: relative; overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55), 0 0 40px rgba(168, 85, 247, 0.12);
}
.login-card::before {
    content: ''; position: absolute; inset: 0 0 auto 0; height: 2px;
    background: linear-gradient(90deg, transparent, var(--neon-purple), var(--neon-cyan), transparent);
}
.login-brand { display: flex; align-items: center; justify-content: center; }
.login-logo { max-width: 230px; height: auto; filter: drop-shadow(0 0 22px rgba(245, 197, 66, 0.3)); }
.login-brand-name {
    font-family: var(--font-display); font-size: 18px; font-weight: 700;
    letter-spacing: 3px; text-transform: uppercase; color: #fff;
    text-align: center; margin-top: 12px;
}
.login-sub { text-align: center; color: var(--txt-dim); font-size: 12px; margin: 8px 0 22px; line-height: 1.5; }
.login-alert { border-radius: 10px; padding: 10px 12px; font-size: 12.5px; margin-bottom: 16px; }
.login-alert-err { background: rgba(239, 68, 68, 0.12); border: 1px solid rgba(239, 68, 68, 0.45); color: #ff9d9d; }
.login-alert-ok { background: rgba(52, 211, 153, 0.10); border: 1px solid rgba(52, 211, 153, 0.4); color: #7ee7c0; }
.btn-twitch {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    width: 100%; padding: 13px; border-radius: 11px;
    background: #9146ff; color: #fff; text-decoration: none;
    font-family: var(--font-head); font-weight: 700; font-size: 15px; letter-spacing: 0.5px;
    box-shadow: 0 4px 22px rgba(145, 70, 255, 0.4);
    transition: filter 0.15s, transform 0.1s;
}
.btn-twitch:hover { filter: brightness(1.12); transform: translateY(-1px); }
.login-hint { text-align: center; color: var(--txt-faint); font-size: 11px; margin-top: 8px; }
.login-sep { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: var(--txt-faint); font-size: 11px; text-transform: uppercase; letter-spacing: 1.5px; }
.login-sep::before, .login-sep::after { content: ''; flex: 1; height: 1px; background: var(--stroke-strong); }
.login-label {
    display: block; font-family: var(--font-head); font-size: 11px; font-weight: 700;
    letter-spacing: 1.2px; text-transform: uppercase; color: var(--txt-dim); margin-bottom: 7px;
}
.login-row { display: flex; gap: 8px; }
.login-input { flex: 1; min-width: 0; }
.btn-admin {
    padding: 0 16px; border-radius: 9px; border: 1px solid rgba(34, 211, 238, 0.5);
    background: rgba(34, 211, 238, 0.12); color: var(--neon-cyan); cursor: pointer;
    font-family: var(--font-head); font-weight: 700; font-size: 13px; letter-spacing: 0.5px;
    transition: background 0.15s;
}
.btn-admin:hover { background: rgba(34, 211, 238, 0.22); }
.login-foot { color: var(--txt-faint); font-size: 11px; }

/* usuário logado na topbar */
.topbar-user { display: flex; align-items: center; gap: 9px; margin-left: auto; }
.topbar-user img { width: 26px; height: 26px; border-radius: 7px; object-fit: cover; }
.topbar-user .tu-name { font-family: var(--font-head); font-weight: 600; font-size: 13px; color: var(--txt); white-space: nowrap; }
.topbar-user .tu-role { font-size: 9px; font-weight: 700; letter-spacing: 0.8px; color: var(--neon-cyan); border: 1px solid rgba(34, 211, 238, 0.4); border-radius: 4px; padding: 1px 5px; }
.topbar-logout {
    color: var(--txt-dim); text-decoration: none; font-size: 12px;
    font-family: var(--font-head); font-weight: 600; letter-spacing: 0.4px;
    padding: 5px 10px; border-radius: 8px; border: 1px solid transparent;
    transition: color 0.15s, border-color 0.15s;
}
.topbar-logout:hover { color: #ff8a8a; border-color: rgba(239, 68, 68, 0.4); }

.err-box {
    max-width: 560px; margin: 18vh auto; text-align: center;
    background: var(--panel); border: 1px solid rgba(239, 68, 68, 0.4);
    border-radius: 16px; padding: 34px;
}
.err-box h1 { font-family: var(--font-display); color: #ff8a8a; margin-bottom: 10px; font-size: 20px; }
