.online-frame { margin-bottom: 16px; }

.online-header {
    display: flex;
    align-items: center;
    gap: 12px;
}
.online-icon {
    color: var(--gold-mid);
    display: inline-flex;
    align-items: center;
    filter: drop-shadow(0 0 6px rgba(226, 182, 92, 0.4));
}

.online-summary {
    padding: 12px 18px;
    color: var(--text-secondary);
    background: rgba(5, 16, 42, 0.6);
    border-bottom: 1px solid rgba(74, 119, 212, 0.12);
    font-size: 13px;
    letter-spacing: 0.2px;
}
.online-summary strong { color: var(--gold-light); font-weight: 700; }

/* Tabela overview */
.online-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    color: var(--text-primary);
    table-layout: fixed;
}
.online-table th:nth-child(1), .online-table td:nth-child(1) { width: 35%; text-align: left; }
.online-table th:nth-child(2), .online-table td:nth-child(2) { width: 15%; text-align: center; }
.online-table th:nth-child(3), .online-table td:nth-child(3) { width: 25%; text-align: left; padding-left: 24px; }
.online-table th:nth-child(4), .online-table td:nth-child(4) { width: 25%; text-align: center; }

.online-players-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    color: var(--text-primary);
}
.online-table thead th, .online-players-table thead th {
    background: linear-gradient(180deg, rgba(27, 58, 122, 0.35) 0%, rgba(27, 58, 122, 0.2) 100%);
    color: var(--hydra-light);
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    padding: 10px 16px;
    text-align: left;
    border-bottom: 1px solid var(--frame-border-strong);
    letter-spacing: 0.4px;
}
.online-table tbody tr, .online-players-table tbody tr {
    border-bottom: 1px solid rgba(74, 119, 212, 0.06);
    transition: background 0.12s;
}
.online-table tbody tr:nth-child(even) td,
.online-players-table tbody tr:nth-child(even) td {
    background: rgba(74, 119, 212, 0.035);
}
.online-table tbody tr:hover td,
.online-players-table tbody tr:hover td {
    background: rgba(74, 119, 212, 0.12);
}
.online-table td, .online-players-table td {
    padding: 11px 16px;
    vertical-align: middle;
}

/* Nome do mundo com seta */
.online-world-name {
    color: var(--hydra-light);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.15s;
}
.online-world-name:hover { color: var(--hydra-glow); }
.online-world-arrow {
    color: var(--hydra-deep);
    font-size: 16px;
    transition: transform 0.15s, color 0.15s;
}
.online-world-name:hover .online-world-arrow {
    transform: translateX(2px);
    color: var(--hydra-glow);
}

/* Count online â€” Ã­cone + nÃºmero centralizados */
.online-count-cell {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}
.online-count-num {
    color: var(--text-primary);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}
.online-people-icon {
    color: var(--royal-light);
    display: inline-flex;
    align-items: center;
}

/* PvP cell â€” shield + label */
.online-pvp-cell {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.online-shield {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.online-shield--green   { color: var(--verdejante); filter: drop-shadow(0 0 3px rgba(30,153,104,0.5)); }
.online-shield--orange  { color: #E2A040; filter: drop-shadow(0 0 3px rgba(226,160,64,0.5)); }
.online-shield--red     { color: var(--vinho); filter: drop-shadow(0 0 3px rgba(159,45,58,0.5)); }
.online-shield--black   { color: #cfd8e0; filter: drop-shadow(0 0 3px rgba(0,0,0,0.7)); }
.online-pvp-label {
    color: var(--text-primary);
    font-weight: 500;
}

/* TransferÃªncia â€” cadeado + label, centralizados */
.online-transfer-cell {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}
.online-transfer-label { color: var(--text-primary); font-weight: 500; }
.online-lock { display: inline-flex; align-items: center; }
.online-lock--open   { color: var(--verdejante); }
.online-lock--closed { color: var(--vinho); }

/* Back link */
.online-back-link { margin: 0 0 14px; font-size: 13px; }
.online-back-link a {
    color: var(--hydra-light);
    text-decoration: none;
    transition: color 0.15s;
}
.online-back-link a:hover { color: var(--hydra-glow); }

/* Info grid no detail */
.online-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 28px;
    padding: 6px 0;
}
@media (max-width: 700px) { .online-info-grid { grid-template-columns: 1fr; } }
.online-info-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    padding: 6px 0;
    border-bottom: 1px dashed rgba(74, 119, 212, 0.08);
}
.online-info-key {
    color: var(--hydra-glow);
    font-weight: 600;
    min-width: 150px;
}
.online-info-val { color: var(--text-primary); display: inline-flex; align-items: center; gap: 6px; }
.online-info-val strong { color: var(--gold-light); font-variant-numeric: tabular-nums; font-weight: 700; }
.online-status-online {
    color: var(--verdejante);
    font-weight: 700;
    letter-spacing: 0.3px;
}

/* Filtro alfabÃ©tico */
.online-letters {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    padding: 12px 14px;
    background: rgba(5, 16, 42, 0.55);
    border-bottom: 1px solid rgba(74, 119, 212, 0.1);
    justify-content: center;
}
.online-letter {
    display: inline-block;
    min-width: 26px;
    text-align: center;
    padding: 4px 7px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    border-radius: 3px;
    transition: background 0.12s, color 0.12s;
}
.online-letter:hover { color: var(--hydra-light); background: rgba(74, 119, 212, 0.1); }
.online-letter--active {
    background: var(--hydra-deep);
    color: var(--white);
    font-weight: 700;
}

/* Players table */
.online-player-link {
    color: var(--hydra-light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.15s;
}
.online-player-link:hover { color: var(--hydra-glow); }
.online-player-level {
    color: var(--gold-light);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.online-empty {
    margin: 0;
    padding: 30px;
    color: var(--text-muted);
    text-align: center;
    font-style: italic;
    font-size: 13px;
}

/* Legenda */
.online-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 22px;
    font-size: 13px;
}
.online-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--text-primary);
}
