/* Golden Session Styles */

.main-content {
    margin-left: 0 !important;
    padding: 28px clamp(16px, 3vw, 36px) 48px;
}

/* Respiro maior entre os cards da página */
.main-content > section.card {
    margin-bottom: 28px;
}

/* Os cards desta página não são clicáveis — sem "pulo" (translateY) no hover */
.card:hover {
    transform: none;
}

/* Filter bar */
.filter-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

/* Linha de filtros (data / somente ativas) — em cima do combo */
.gs-filter-bar {
    align-items: flex-end;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-default);
}

/* O card do combo fica acima do card de resumo, senão o dropdown aberto
   (que transborda pra baixo) some atrás do resumo — cada card cria seu
   próprio stacking context por causa do backdrop-filter. */
.gs-picker-card {
    position: relative;
    z-index: 30;
}

/* Combo de temporada (abaixo dos filtros) */
.season-picker-row {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.season-picker-row > label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-secondary);
}

.filter-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.filter-field label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-secondary);
}

.gs-input {
    height: 38px;
    box-sizing: border-box;
    padding: 0 12px;
    border: 1px solid var(--border-default);
    border-radius: 8px;
    background-color: var(--bg-input, #141c2e);
    color: var(--text-primary);
    color-scheme: dark;
    font-size: 0.85rem;
}

.gs-input:focus {
    outline: none;
    border-color: var(--accent-gold, #f59e0b);
}

/* "Somente ativas" como chip alinhado aos inputs */
.gs-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 38px;
    padding: 0 14px;
    border: 1px solid var(--border-default);
    border-radius: 8px;
    background-color: var(--bg-input, #141c2e);
    color: var(--text-secondary);
    font-size: 0.85rem;
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
    transition: border-color 0.15s ease, color 0.15s ease;
}

.gs-checkbox:hover {
    border-color: var(--border-strong, rgba(255, 255, 255, 0.16));
    color: var(--text-primary);
}

.gs-checkbox input {
    width: 16px;
    height: 16px;
    accent-color: var(--accent-gold, #f59e0b);
    cursor: pointer;
}

/* Botões do filtro alinhados aos inputs */
.gs-filter-bar .btn {
    height: 38px;
    display: inline-flex;
    align-items: center;
}

.gs-btn-ghost {
    display: inline-flex;
    align-items: center;
    height: 38px;
    padding: 0 16px;
    border: 1px solid var(--border-default);
    border-radius: 8px;
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-decoration: none;
    cursor: pointer;
    transition: border-color 0.15s ease, color 0.15s ease;
}

.gs-btn-ghost:hover {
    border-color: var(--border-strong, rgba(255, 255, 255, 0.16));
    color: var(--text-primary);
}

/* Cabeçalho do resumo da temporada */
.season-summary-head {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.season-summary-head h3 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--text-primary);
}

.season-summary-actions {
    margin-left: auto;
    display: flex;
    gap: 8px;
}

/* Tabelas largas rolam dentro do card em vez de estourar a tela/scrollbar */
.table-container,
.modern-table-wrapper {
    overflow-x: auto;
    max-width: 100%;
}

/* Ações ao lado do combo (Ranking / Detalhes) */
.filter-actions {
    margin-left: auto;
    display: flex;
    gap: 8px;
}

/* Resumo da temporada selecionada */
.season-summary {
    margin-top: 4px;
}

.filter-bar label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    white-space: nowrap;
}

/* ===== Dropdown customizado de temporada (substitui o <select> nativo) ===== */
.season-dropdown {
    position: relative;
    min-width: 320px;
    max-width: 560px;
    width: 100%;
}

.season-dropdown-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    border: 1px solid var(--border-default);
    border-radius: 8px;
    background-color: var(--bg-input, #141c2e);
    color: var(--text-primary);
    font-size: 0.95rem;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.season-dropdown-trigger:hover {
    border-color: var(--border-strong, rgba(255, 255, 255, 0.16));
}

.season-dropdown.is-open .season-dropdown-trigger,
.season-dropdown-trigger:focus-visible {
    outline: none;
    border-color: var(--accent-gold, #f59e0b);
}

.season-dropdown-value {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.season-dropdown-caret {
    flex-shrink: 0;
    color: var(--text-secondary);
    font-size: 0.8rem;
    transition: transform 0.15s ease;
}

.season-dropdown.is-open .season-dropdown-caret {
    transform: rotate(180deg);
}

.season-dropdown-panel {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 60;
    padding: 6px;
    background: #131a2b; /* opaco — não deixa o resumo vazar por trás */
    border: 1px solid var(--border-strong, rgba(255, 255, 255, 0.16));
    border-radius: 10px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
}

.season-dropdown-panel[hidden] {
    display: none;
}

.season-dropdown-search {
    width: 100%;
    box-sizing: border-box;
    padding: 8px 10px;
    margin-bottom: 6px;
    border: 1px solid var(--border-default);
    border-radius: 6px;
    background-color: var(--bg-input, #141c2e);
    color: var(--text-primary);
    font-size: 0.85rem;
}

.season-dropdown-search:focus {
    outline: none;
    border-color: var(--accent-gold, #f59e0b);
}

.season-dropdown-list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: min(320px, 55vh);
    overflow-y: auto;
}

.season-dropdown-option {
    padding: 9px 12px;
    border-radius: 6px;
    font-size: 0.9rem;
    color: var(--text-primary);
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: background 0.12s ease;
}

.season-dropdown-option:hover {
    background: var(--bg-card-hover, rgba(255, 255, 255, 0.06));
}

.season-dropdown-option.is-selected {
    background: var(--accent-gold-glow, rgba(251, 191, 36, 0.18));
    color: var(--accent-gold, #fbbf24);
    font-weight: 600;
}

/* Info grid for details page */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.info-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
}

.info-value {
    font-size: 0.9rem;
    color: var(--text-primary);
}

.info-value.highlight-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #f59e0b;
}

.info-value.mono {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    background: var(--bg-secondary);
    padding: 2px 6px;
    border-radius: 4px;
}

.session-description {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-default);
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Section titles */
.section-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

/* Tabs */
.rounds-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.tab-btn {
    padding: 6px 16px;
    border: 1px solid var(--border-default);
    border-radius: 6px;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.15s;
}

.tab-btn:hover {
    background: var(--bg-hover, var(--bg-secondary));
    color: var(--text-primary);
}

.tab-btn.active {
    background: #f59e0b;
    border-color: #f59e0b;
    color: #000;
    font-weight: 600;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Badges */
.badge-gold {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-ranking {
    background: rgba(99, 102, 241, 0.15);
    color: #818cf8;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.status-pending {
    background: rgba(234, 179, 8, 0.15);
    color: #ca8a04;
    border: 1px solid rgba(234, 179, 8, 0.3);
}

/* Table cells */
.loading-cell,
.empty-cell,
.error-cell {
    text-align: center;
    padding: 24px;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.error-cell {
    color: #ef4444;
}

.id-cell {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.retry-link {
    background: none;
    border: none;
    color: #f59e0b;
    cursor: pointer;
    font-size: 0.875rem;
    text-decoration: underline;
    padding: 0;
    margin-left: 8px;
}

.retry-link:hover {
    color: #d97706;
}

/* Header actions (right side) */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Ranking section */
.ranking-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.ranking-section-header .section-title {
    margin-bottom: 0;
}

.ranking-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.ranking-interval-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.ranking-interval-select {
    padding: 6px 10px;
    border: 1px solid var(--border-default);
    border-radius: 6px;
    background-color: var(--bg-input, #141c2e);
    color: var(--text-primary);
    color-scheme: dark;
    font-size: 0.875rem;
    cursor: pointer;
}

.ranking-interval-select option {
    background-color: #141c2e;
    color: var(--text-primary);
}

.ranking-interval-select:focus {
    outline: none;
    border-color: var(--accent-gold, #f59e0b);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.8rem;
}

.ranking-timer {
    font-size: 0.875rem;
    color: var(--text-secondary);
    white-space: nowrap;
}

.ranking-last-update {
    font-size: 0.75rem;
    color: var(--text-secondary);
    white-space: nowrap;
}

/* Ranking table rows */
.ranking-position {
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
}

.ranking-points {
    color: #f59e0b;
}

.ranking-top-row {
    background: rgba(245, 158, 11, 0.05);
}

.ranking-top-row:hover {
    background: rgba(245, 158, 11, 0.1) !important;
}

/* ===== Linhas clicáveis (abrem o detalhamento) ===== */
.ranking-row-clickable {
    cursor: pointer;
    transition: background 0.15s ease;
}

.ranking-row-clickable:hover {
    background: var(--bg-card-hover, rgba(255, 255, 255, 0.06)) !important;
}

/* ===== Modal de detalhamento (quebra de pontos) ===== */
.breakdown-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.breakdown-modal-overlay[hidden] {
    display: none;
}

.breakdown-modal {
    width: min(720px, 100%);
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    background: var(--bg-surface, #101623);
    border: 1px solid var(--border-strong, rgba(255, 255, 255, 0.16));
    border-radius: 14px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.breakdown-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-default, rgba(255, 255, 255, 0.08));
}

.breakdown-modal-header h2 {
    margin: 0;
    font-size: 1.15rem;
    color: var(--text-primary, #f1f5f9);
}

.breakdown-subtitle {
    margin: 4px 0 0;
    font-size: 0.85rem;
    color: var(--text-secondary, #8b9cb6);
}

.breakdown-close-btn {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border: 1px solid var(--border-default, rgba(255, 255, 255, 0.08));
    border-radius: 8px;
    background: var(--bg-input, rgba(0, 0, 0, 0.2));
    color: var(--text-secondary, #8b9cb6);
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.breakdown-close-btn:hover {
    background: var(--bg-card-hover, rgba(255, 255, 255, 0.08));
    color: var(--text-primary, #f1f5f9);
}

.breakdown-modal-body {
    padding: 16px 24px 24px;
    overflow-y: auto;
}

.breakdown-loading,
.breakdown-empty,
.breakdown-error {
    padding: 24px 0;
    text-align: center;
    color: var(--text-secondary, #8b9cb6);
}

.breakdown-section {
    margin-top: 18px;
}

.breakdown-section:first-child {
    margin-top: 4px;
}

.breakdown-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.breakdown-round-badge {
    padding: 2px 10px;
    border-radius: 999px;
    background: var(--accent-primary-glow, rgba(139, 92, 246, 0.28));
    color: var(--accent-primary-light, #a78bfa);
    font-size: 0.75rem;
    font-weight: 600;
}

.breakdown-round-badge--noround {
    background: var(--accent-gold-glow, rgba(251, 191, 36, 0.22));
    color: var(--accent-gold, #fbbf24);
}

.breakdown-round-id {
    font-family: var(--font-mono, monospace);
    font-size: 0.8rem;
    color: var(--text-secondary, #8b9cb6);
}

.breakdown-round-points {
    margin-left: auto;
    font-weight: 700;
    color: var(--accent-gold, #f59e0b);
}

.breakdown-table {
    width: 100%;
    border-collapse: collapse;
}

.breakdown-table th,
.breakdown-table td {
    padding: 8px 10px;
    border-bottom: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.04));
    font-size: 0.85rem;
    text-align: left;
    color: var(--text-primary, #f1f5f9);
}

.breakdown-table th {
    color: var(--text-secondary, #8b9cb6);
    font-weight: 600;
}

.breakdown-num {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

/* ===== Responsividade (portada/adaptada do PR #74, nos mesmos breakpoints) ===== */
.page-header {
    flex-wrap: wrap;
    gap: 12px;
}

.table-container {
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 820px) {
    .main-content {
        padding: 20px 16px 40px;
    }

    /* Combo e ações ocupam a linha toda */
    .season-dropdown {
        min-width: 0;
        flex: 1 1 100%;
    }

    .filter-actions {
        width: 100%;
    }

    /* Filtro de datas empilha e estica */
    .gs-filter-bar {
        align-items: stretch;
    }

    .gs-filter-bar .filter-field {
        flex: 1 1 140px;
    }

    .gs-filter-bar .gs-input {
        width: 100%;
    }
}

@media (max-width: 520px) {
    .info-grid {
        grid-template-columns: 1fr;
    }

    .filter-actions {
        flex-direction: column;
    }

    .filter-actions .btn {
        width: 100%;
        text-align: center;
    }

    .ranking-controls {
        width: 100%;
    }
}

/* ===== Index: acabamento premium inspirado no Router Monitor ===== */
body.premium.gs-index {
    background-color: var(--bg-base);
    background-image:
        radial-gradient(circle at 15% 10%, rgba(139, 92, 246, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 85% 20%, rgba(56, 189, 248, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 50% 90%, rgba(52, 211, 153, 0.08) 0%, transparent 50%);
}

.gs-index .gs-page-shell {
    width: min(100%, 1480px);
    margin: 0 auto;
    padding: 32px 36px 56px !important;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.gs-index .page-header,
.gs-index .main-content > section.card {
    margin-bottom: 0;
}

.gs-index .gs-command-header {
    position: relative;
    overflow: hidden;
    min-height: 96px;
    /* Banner principal sem o visual esfumaçado (glass): sem blur/fundo translúcido/borda/sombra. */
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    box-shadow: none;
}

.gs-index .gs-command-header::after {
    content: none;
}

.gs-index .page-header h1 {
    letter-spacing: 0;
}

.gs-index .subtitle {
    margin: 5px 0 0;
    color: #9aa8bd;
    font-size: 0.86rem;
}

.gs-hero-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.gs-hero-card {
    position: relative;
    min-height: 152px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 18px;
    background:
        linear-gradient(145deg, rgba(22, 30, 46, 0.72) 0%, rgba(8, 12, 21, 0.84) 100%);
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.gs-hero-card::before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gs-card-accent), transparent);
    opacity: 0.82;
}

.gs-hero-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.44), 0 0 24px var(--gs-card-glow);
}

.gs-hero-card--gold {
    --gs-card-accent: #fbbf24;
    --gs-card-glow: rgba(251, 191, 36, 0.16);
}

.gs-hero-card--violet {
    --gs-card-accent: #a78bfa;
    --gs-card-glow: rgba(139, 92, 246, 0.18);
}

.gs-hero-card--cyan {
    --gs-card-accent: #38bdf8;
    --gs-card-glow: rgba(56, 189, 248, 0.16);
}

.gs-hero-card--emerald {
    --gs-card-accent: #34d399;
    --gs-card-glow: rgba(52, 211, 153, 0.15);
}

.gs-hero-label,
.gs-panel-kicker {
    color: #91a0b7;
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0;
}

.gs-hero-value {
    margin-top: 16px;
    color: #f8fafc;
    font-family: var(--font-mono);
    font-size: 2.9rem;
    font-weight: 800;
    line-height: 1;
    text-shadow: 0 8px 24px rgba(251, 191, 36, 0.13);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gs-hero-value--text {
    font-family: var(--font-display);
    font-size: 1.72rem;
}

.gs-hero-value--schedule {
    font-size: 2.42rem;
}

.gs-hero-detail {
    margin-top: 12px;
    color: #8b9cb6;
    font-size: 0.86rem;
    min-height: 1.3em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gs-control-panel,
.gs-summary-card,
.gs-table-card {
    padding: 0;
    overflow: visible;
}

.gs-control-panel {
    z-index: 40;
}

.gs-panel-head,
.gs-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 20px 24px 0;
}

.gs-panel-title,
.gs-section-title {
    margin: 4px 0 0;
    color: #f8fafc;
    font-size: 1.02rem;
    font-weight: 700;
    letter-spacing: 0;
}

.gs-section-head {
    justify-content: flex-start;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.gs-section-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(251, 191, 36, 0.13);
    border: 1px solid rgba(251, 191, 36, 0.22);
    color: #fbbf24;
    flex-shrink: 0;
}

.gs-index .gs-filter-bar {
    padding: 18px 24px 20px;
    margin: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    gap: 14px;
}

.gs-index .filter-field label,
.gs-index .season-picker-row > label,
.gs-index .filter-bar label {
    color: #91a0b7;
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0;
}

.gs-index .gs-input,
.gs-index .gs-checkbox,
.gs-index .season-dropdown-trigger,
.gs-index .season-dropdown-search {
    border-color: rgba(255, 255, 255, 0.10);
    background: rgba(4, 8, 16, 0.48);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.gs-index .gs-input:hover,
.gs-index .gs-checkbox:hover,
.gs-index .season-dropdown-trigger:hover {
    border-color: rgba(255, 255, 255, 0.18);
}

.gs-index .gs-input:focus,
.gs-index .season-dropdown-search:focus,
.gs-index .season-dropdown.is-open .season-dropdown-trigger,
.gs-index .season-dropdown-trigger:focus-visible {
    border-color: rgba(251, 191, 36, 0.72);
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.11);
}

.gs-index .gs-filter-bar .btn,
.gs-index .gs-btn-ghost,
.gs-index .season-dropdown-trigger,
.gs-index .gs-input,
.gs-index .gs-checkbox {
    min-height: 40px;
}

.gs-index .gs-filter-bar .btn {
    padding: 0 18px;
}

.gs-index .gs-btn-ghost {
    padding: 0 18px;
    font-weight: 700;
}

.gs-index .season-picker-row {
    padding: 20px 24px 24px;
    gap: 8px;
}

.gs-index .season-dropdown {
    max-width: 760px;
}

.gs-index .season-dropdown-trigger {
    padding: 12px 14px;
    border-radius: 10px;
}

.gs-index .season-dropdown-panel {
    top: calc(100% + 8px);
    padding: 8px;
    background: #101725;
    border-color: rgba(251, 191, 36, 0.24);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.64), 0 0 22px rgba(251, 191, 36, 0.09);
}

.gs-index .season-dropdown-option {
    padding: 10px 12px;
    border-radius: 8px;
}

.gs-index .season-dropdown-option.is-selected {
    background: rgba(251, 191, 36, 0.16);
    color: #f8d56d;
}

.gs-index .season-summary {
    margin: 0;
    padding: 22px 24px 24px;
}

.gs-index .season-summary-head {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.gs-index .season-summary-head h3 {
    font-size: 1.34rem;
    letter-spacing: 0;
}

.gs-index .season-summary-actions .btn,
.gs-index .season-summary-actions .gs-btn-ghost {
    min-height: 38px;
}

.gs-index .status-badge {
    border: 1px solid transparent;
    letter-spacing: 0;
}

.gs-index .status-active {
    background: rgba(52, 211, 153, 0.12);
    border-color: rgba(52, 211, 153, 0.28);
    color: #86efac;
}

.gs-index .status-inactive {
    background: rgba(251, 191, 36, 0.12);
    border-color: rgba(251, 191, 36, 0.28);
    color: #f8d56d;
}

.gs-index .info-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 0;
}

.gs-index .info-item {
    min-height: 88px;
    padding: 14px;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 10px;
    background: rgba(4, 8, 16, 0.28);
}

.gs-index .info-label {
    color: #91a0b7;
    letter-spacing: 0;
}

.gs-index .info-value {
    color: #eef4ff;
    font-size: 0.92rem;
}

.gs-index .info-value.highlight-value {
    color: #fbbf24;
    text-shadow: 0 0 14px rgba(251, 191, 36, 0.20);
}

.gs-index .info-value.mono {
    border: 1px solid rgba(139, 92, 246, 0.20);
    background: rgba(139, 92, 246, 0.12);
    color: #c4b5fd;
}

.gs-index .session-description {
    margin-top: 18px;
    color: #a9b6c9;
}

.gs-index .gs-table-card {
    overflow: hidden;
}

.gs-index .gs-table-shell {
    margin: 0 24px 24px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    background: rgba(4, 8, 16, 0.22);
    box-shadow: none;
}

.gs-index .gs-table-shell table {
    min-width: 860px;
}

.gs-index .gs-table-shell thead {
    background: rgba(255, 255, 255, 0.03);
    color: #91a0b7;
}

.gs-index .gs-table-shell th {
    padding: 16px 18px;
    color: #aebbd0;
    border-bottom: 1px solid rgba(251, 191, 36, 0.16);
    font-size: 0.77rem;
    letter-spacing: 0;
}

.gs-index .gs-table-shell td {
    padding: 16px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.gs-index .gs-table-shell tbody tr:hover {
    background: rgba(251, 191, 36, 0.05);
}

.gs-index .loading-cell,
.gs-index .empty-cell,
.gs-index .error-cell {
    color: #91a0b7;
    padding: 34px 18px;
}

@media (max-width: 1180px) {
    .gs-hero-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gs-index .info-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .gs-index .gs-page-shell {
        padding: 20px 16px 42px !important;
        gap: 18px;
    }

    .gs-index .gs-command-header {
        align-items: flex-start;
    }

    .gs-hero-grid,
    .gs-index .info-grid {
        grid-template-columns: 1fr;
    }

    .gs-hero-card {
        min-height: 136px;
        padding: 20px;
    }

    .gs-hero-value {
        font-size: 2.4rem;
    }

    .gs-hero-value--text {
        font-size: 1.48rem;
    }

    .gs-hero-value--schedule {
        font-size: 2.1rem;
    }

    .gs-index .gs-filter-bar,
    .gs-index .season-picker-row,
    .gs-index .season-summary,
    .gs-panel-head,
    .gs-section-head {
        padding-left: 18px;
        padding-right: 18px;
    }

    .gs-index .gs-table-shell {
        margin-left: 18px;
        margin-right: 18px;
    }

    .gs-index .season-summary-actions {
        width: 100%;
        margin-left: 0;
    }

    .gs-index .season-summary-actions .btn,
    .gs-index .season-summary-actions .gs-btn-ghost {
        flex: 1;
        justify-content: center;
    }
}

/* ===== Tabelas Golden Session no padrão do Router Monitor ===== */
.premium .table-container.modern-table-wrapper,
.gs-index .gs-table-shell {
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    background: rgba(5, 10, 19, 0.40);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
    overflow: auto;
}

.premium .table-container.modern-table-wrapper.glass-card {
    padding: 0;
}

.premium .table-container.modern-table-wrapper::before {
    content: none;
}

.premium .table-container.modern-table-wrapper table,
.gs-index .gs-table-shell table {
    min-width: 760px;
    border-collapse: separate;
    border-spacing: 0;
}

.premium .table-container.modern-table-wrapper thead,
.gs-index .gs-table-shell thead {
    background: #8b5cf6;
    color: #ffffff;
}

.premium .table-container.modern-table-wrapper th,
.gs-index .gs-table-shell th {
    padding: 14px 18px;
    border-bottom: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.premium .table-container.modern-table-wrapper td,
.gs-index .gs-table-shell td {
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.045);
    color: #dfe8f6;
    font-size: 0.9rem;
    background: transparent;
}

.premium .table-container.modern-table-wrapper tbody tr,
.gs-index .gs-table-shell tbody tr {
    border-bottom: 0;
}

.premium .table-container.modern-table-wrapper tbody tr:hover,
.gs-index .gs-table-shell tbody tr:hover {
    background: rgba(255, 255, 255, 0.035);
}

.premium .table-container.modern-table-wrapper tbody tr:last-child td,
.gs-index .gs-table-shell tbody tr:last-child td {
    border-bottom: 0;
}

.premium .table-container.modern-table-wrapper .loading-cell,
.premium .table-container.modern-table-wrapper .empty-cell,
.premium .table-container.modern-table-wrapper .error-cell,
.gs-index .gs-table-shell .loading-cell,
.gs-index .gs-table-shell .empty-cell,
.gs-index .gs-table-shell .error-cell {
    padding: 32px 18px;
    color: #8b9cb6;
    background: rgba(5, 10, 19, 0.12);
}

.premium .table-container.modern-table-wrapper .id-cell,
.gs-index .gs-table-shell .id-cell {
    color: #718199;
    font-family: var(--font-mono);
}

.gs-ranking .table-container.modern-table-wrapper table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
}

.gs-ranking .table-container.modern-table-wrapper th:nth-child(1),
.gs-ranking .table-container.modern-table-wrapper td:nth-child(1) {
    width: 27%;
}

.gs-ranking .table-container.modern-table-wrapper th:nth-child(2),
.gs-ranking .table-container.modern-table-wrapper td:nth-child(2) {
    width: 47%;
}

.gs-ranking .table-container.modern-table-wrapper th:nth-child(3),
.gs-ranking .table-container.modern-table-wrapper td:nth-child(3) {
    width: 26%;
}

.gs-ranking .ranking-player-cell {
    max-width: 100%;
}

.gs-ranking .ranking-player-name,
.gs-ranking .ranking-player-id {
    display: block;
    min-width: 0;
}

.gs-ranking .ranking-player-name {
    color: #eef4ff;
    font-family: var(--font-display);
    font-weight: 700;
}

.gs-ranking .ranking-player-id {
    margin-top: 4px;
    color: #718199;
    font-family: var(--font-mono);
    font-size: 0.76rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.gs-ranking .ranking-position,
.gs-ranking .ranking-points {
    white-space: nowrap;
}

@media (max-width: 520px) {
    .gs-ranking .table-container.modern-table-wrapper th,
    .gs-ranking .table-container.modern-table-wrapper td {
        padding-left: 12px;
        padding-right: 12px;
    }
}

/* ===== Ajustes finais: respiro, ranking header e tabelas sem degradê ===== */
.gs-index .gs-table-shell {
    margin: 18px 24px 28px;
}

.gs-ranking .gs-ranking-shell {
    width: min(100%, 1480px);
    margin: 0 auto;
    padding: 32px 36px 56px !important;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.gs-ranking .gs-ranking-header,
.gs-ranking .main-content > section.card {
    margin-bottom: 0;
}

.gs-ranking .gs-ranking-header {
    min-height: 96px;
}

.gs-ranking .gs-ranking-title-block {
    min-width: 0;
}

.gs-ranking .gs-ranking-id {
    margin: 5px 0 0;
    color: #9aa8bd;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    overflow-wrap: anywhere;
}

.gs-ranking .gs-id-prefix {
    color: #91a0b7;
    font-family: var(--font-display);
    font-weight: 700;
    text-transform: uppercase;
}

.gs-ranking .gs-ranking-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 24px;
}

.gs-ranking .gs-ranking-toolbar::before {
    left: 24px;
    right: 24px;
}

.gs-ranking .gs-ranking-toolbar-status {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 220px;
}

.gs-ranking .gs-ranking-toolbar-status strong {
    color: #f8fafc;
    font-size: 1rem;
}

.gs-ranking .gs-ranking-toolbar-status span:last-child {
    color: #91a0b7;
    font-size: 0.84rem;
}

.gs-ranking .gs-ranking-toolbar-status #countdown {
    color: #fbbf24;
    font-family: var(--font-mono);
}

.gs-ranking .ranking-controls {
    justify-content: flex-end;
}

.gs-ranking .ranking-interval-label {
    min-height: 38px;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 9px;
    background: rgba(4, 8, 16, 0.34);
}

.gs-ranking .ranking-interval-select {
    min-width: 76px;
    border-color: rgba(255, 255, 255, 0.12);
    border-radius: 7px;
    background-color: rgba(0, 0, 0, 0.24);
}

.gs-ranking .ranking-controls .btn {
    min-height: 38px;
    padding: 0 16px;
    border-radius: 9px;
}

.gs-ranking .ranking-last-update {
    margin-left: 10px;
    color: #708197;
    font-family: var(--font-body);
}

.breakdown-modal-header > div {
    min-width: 0;
}

.breakdown-subtitle {
    line-height: 1.42;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.breakdown-round-id {
    min-width: 0;
    flex: 1 1 240px;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.breakdown-round-points {
    flex-shrink: 0;
}

.premium .table-container.modern-table-wrapper thead,
.gs-index .gs-table-shell thead,
.breakdown-table thead {
    background: #8b5cf6 !important;
    background-image: none !important;
    color: #ffffff;
}

.premium .table-container.modern-table-wrapper th,
.gs-index .gs-table-shell th,
.breakdown-table th {
    background: transparent !important;
    color: rgba(255, 255, 255, 0.9) !important;
}

.breakdown-table {
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 10px;
    overflow: hidden;
}

.breakdown-table th,
.breakdown-table td {
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.045);
}

.breakdown-table tbody tr:last-child td {
    border-bottom: 0;
}

.breakdown-section-header {
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 10px;
    background: rgba(5, 10, 19, 0.32);
}

@media (max-width: 760px) {
    .gs-index .gs-table-shell {
        margin: 18px 18px 24px;
    }

    .gs-ranking .gs-ranking-shell {
        padding: 20px 16px 42px !important;
        gap: 18px;
    }

    .gs-ranking .gs-ranking-header {
        align-items: flex-start;
    }

    .gs-ranking .gs-ranking-toolbar {
        align-items: stretch;
        flex-direction: column;
        padding: 18px;
    }

    .gs-ranking .ranking-controls {
        justify-content: flex-start;
        width: 100%;
    }

    .gs-ranking .ranking-interval-label {
        width: 100%;
        justify-content: space-between;
    }

    .gs-ranking .ranking-controls .btn {
        flex: 1;
        justify-content: center;
    }

    .gs-ranking .ranking-last-update {
        display: block;
        margin: 2px 0 0;
    }
}
