* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: #f4f6f8;
    color: #111827;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ================= TOPBAR ================= */
.topbar {
    background-color: #5d666d;
    height: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
    border-bottom: 3px solid #2563eb;
    color: white;
    flex-shrink: 0;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 24px;
    height: 24px;
    background-color: #2563eb;
    border-radius: 50%;
}

.logo-area h1 {
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.logo-area span {
    font-weight: 400;
}

.btn-entrar {
    background: transparent;
    border: none;
    color: #2563eb;
    font-weight: 700;
    cursor: pointer;
    font-size: 0.95rem;
}

body.auth-locked .dashboard {
    filter: blur(2px);
    pointer-events: none;
    user-select: none;
}

.auth-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(15, 23, 42, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-modal {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 10px;
    border: 1px solid #dbe3ee;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.35);
    padding: 18px;
}

.auth-modal h3 {
    margin: 0 0 8px;
    font-size: 1.2rem;
    color: #0f172a;
}

.auth-modal p {
    margin: 0 0 12px;
    font-size: 0.9rem;
    color: #475569;
}

.auth-modal input {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 8px;
}

.auth-password-wrap {
    position: relative;
    margin-bottom: 8px;
}

.auth-remember-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #334155;
    margin: 4px 0 10px;
    cursor: pointer;
}

.auth-remember-wrap input {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: #2563eb;
}

.auth-password-wrap input {
    margin-bottom: 0;
    padding-right: 40px;
}

.auth-pass-toggle {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 1rem;
    color: #334155;
}

.auth-actions {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}

.auth-actions button {
    flex: 1;
    border: none;
    border-radius: 8px;
    padding: 10px;
    font-weight: 700;
    background: #2563eb;
    color: #fff;
    cursor: pointer;
}

.auth-actions button.ghost {
    background: #e2e8f0;
    color: #0f172a;
}

.auth-feedback {
    min-height: 18px;
    margin-top: 8px;
    font-size: 0.85rem;
    color: #b91c1c;
}

.user-area {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-toggle-left {
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.08);
    color: #f8fafc;
    border-radius: 6px;
    padding: 7px 10px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
}

.btn-toggle-left-floating {
    position: fixed;
    top: 74px;
    left: 12px;
    z-index: 30;
    width: 34px;
    height: 34px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    color: #1f2937;
    font-size: 1rem;
    font-weight: 700;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.15);
}

.strategy-control {
    position: relative;
    flex: 0 0 auto;
}

.strategy-btn {
    position: static;
    width: 38px;
    height: 38px;
    border: 1px solid #dbe3ee;
    border-radius: 6px;
    background: #f8fafc;
    cursor: pointer;
    font-size: 0.95rem;
    line-height: 1;
}

.strategy-btn.active {
    background: #ecfeff;
    border-color: #67e8f9;
}

.strategy-menu {
    position: absolute;
    top: 42px;
    right: 0;
    width: 220px;
    background: #fff;
    border: 1px solid #dbe3ee;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.18);
    padding: 6px;
    display: none;
    z-index: 25;
}

.strategy-menu.open {
    display: block;
}

.strategy-option-btn,
.strategy-menu-link {
    width: 100%;
    border: 0;
    background: transparent;
    text-align: left;
    padding: 7px 8px;
    border-radius: 6px;
    font-size: 0.78rem;
    color: #334155;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.strategy-option-btn:hover,
.strategy-menu-link:hover {
    background: #f1f5f9;
}

.strategy-option-check {
    color: #0f766e;
    font-weight: 800;
}

.strategy-menu-empty {
    font-size: 0.76rem;
    color: #94a3b8;
    padding: 8px;
}

.strategies-screen {
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
}

.strategies-title {
    text-align: center;
    font-size: 1rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 10px;
}

.strategies-overview {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 10px;
}

.strategies-overview-card {
    border: 1px solid #dbe4ef;
    border-radius: 10px;
    background: #f8fbff;
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.strategies-overview-label {
    font-size: 0.72rem;
    color: #64748b;
    font-weight: 700;
}

.strategies-overview-card strong {
    font-size: 1.1rem;
    color: #0f172a;
}

.strategies-top-tools {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.strategies-date-picker {
    display: flex;
    align-items: center;
    gap: 8px;
}

.strategies-date-picker label {
    font-size: 0.78rem;
    color: #475569;
    font-weight: 700;
}

.strategies-date-picker select {
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 7px 10px;
    font-size: 0.8rem;
    background: #fff;
}

.strategy-share-btn {
    border: 0;
    border-radius: 8px;
    background: #0f172a;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 800;
    padding: 8px 12px;
    cursor: pointer;
}

.strategies-create-row {
    display: grid;
    grid-template-columns: minmax(280px, 520px) auto;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
}

.strategies-create-row input {
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 0.86rem;
    background: #f8fafc;
}

.strategies-create-row button {
    border: 0;
    border-radius: 8px;
    background: #2563eb;
    color: #fff;
    font-weight: 700;
    padding: 0 16px;
    cursor: pointer;
}

.strategy-feedback {
    min-height: 18px;
    margin: -2px 0 10px;
    font-size: 0.78rem;
    color: #0f766e;
    font-weight: 600;
}

.strategy-feedback.error {
    color: #b91c1c;
}

.strategies-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.strategy-chip {
    border: 1px solid #d1d5db;
    border-radius: 999px;
    padding: 4px 9px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #475569;
    background: #f8fafc;
}

.strategy-chip.active {
    border-color: #bfdbfe;
    color: #1d4ed8;
    background: #eff6ff;
}

.strategy-chip.muted {
    color: #94a3b8;
    border-style: dashed;
}

.strategies-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.strategies-date-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.strategies-date-title {
    font-size: 0.84rem;
    font-weight: 800;
    color: #334155;
    padding: 6px 2px 2px;
    border-bottom: 1px solid #e2e8f0;
    background: transparent;
    border-top: 0;
    border-left: 0;
    border-right: 0;
    width: 100%;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

.strategies-date-arrow {
    width: 14px;
    display: inline-flex;
    justify-content: center;
}

.strategies-date-cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.share-mode-modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.74);
    z-index: 80;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px;
}

.share-mode-toolbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.share-toolbar-date {
    color: #e2e8f0;
    font-size: 0.78rem;
    font-weight: 700;
}

.share-toolbar-select {
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 7px 10px;
    font-size: 0.78rem;
    background: #f8fafc;
    color: #0f172a;
    font-weight: 700;
}

.share-toolbar-btn {
    border: 0;
    border-radius: 10px;
    background: #f8fafc;
    color: #0f172a;
    font-weight: 800;
    font-size: 0.8rem;
    padding: 9px 14px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.18);
}

.share-mode-stage {
    width: min(96vw, 1720px);
    aspect-ratio: 16 / 9;
    background: #07132f;
    border-radius: 16px;
    padding: 14px;
    box-shadow: 0 14px 42px rgba(2, 6, 23, 0.52);
}

.share-canvas-root {
    width: 100%;
    height: 100%;
    border-radius: 14px;
    padding: 14px;
    background:
        radial-gradient(circle at 0% 0%, rgba(37, 99, 235, 0.36), transparent 42%),
        linear-gradient(140deg, #03153f 0%, #021233 48%, #010a22 100%);
    color: #e5edf9;
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 10px;
}

.share-date {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: 0.4px;
    line-height: 1;
}

.share-date-icon {
    font-size: 2.4rem;
}

.share-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    grid-auto-rows: minmax(0, 1fr);
    align-content: stretch;
    min-height: 0;
}

.share-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #d7e2ef;
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.16);
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.share-card-head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: linear-gradient(180deg, #f7fbff 0%, #ecf4ff 100%);
    color: #0f172a;
    font-weight: 800;
    border-bottom: 1px solid #dce7f4;
}

.share-card-title {
    flex: 1;
    font-size: 0.92rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.share-card-count {
    font-size: 0.72rem;
    color: #1d4ed8;
    background: #eff6ff;
    border: 1px solid #c8dbfa;
    border-radius: 999px;
    padding: 4px 9px;
    line-height: 1;
}

.share-card-body {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 0;
    overflow: hidden;
}

.share-game-row {
    display: grid;
    grid-template-columns: 74px 1fr;
    gap: 10px;
    border: 1px solid #e5edf6;
    border-radius: 8px;
    padding: 8px;
}

.share-game-time {
    font-size: 0.88rem;
    font-weight: 800;
    color: #334155;
    align-self: start;
    line-height: 1.15;
}

.share-game-comp {
    font-size: 0.8rem;
    color: #64748b;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.share-game-mid {
    min-width: 0;
}

.share-game-team {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.84rem;
    color: #0f172a;
    font-weight: 700;
    line-height: 1.2;
}

.share-game-team img {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.share-footer {
    border: 1px solid rgba(194, 214, 242, 0.26);
    background: rgba(6, 16, 44, 0.48);
    border-radius: 10px;
    padding: 8px 10px;
    display: grid;
    grid-template-rows: auto auto;
    gap: 8px;
    min-height: 0;
}

.share-legend-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.share-legend-label {
    font-size: 0.72rem;
    color: #d5e2f7;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.share-legend {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
    min-width: 0;
}

.share-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: 1px solid rgba(186, 206, 236, 0.35);
    background: rgba(241, 247, 255, 0.12);
    border-radius: 999px;
    padding: 2px 8px;
    color: #eff6ff;
    font-size: 0.7rem;
    font-weight: 700;
    max-width: 100%;
}

.share-legend-icon {
    font-size: 0.72rem;
}

.share-legend-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.share-legend-empty {
    font-size: 0.72rem;
    color: #c5d4eb;
    font-weight: 600;
}

.share-disclaimer {
    font-size: 0.74rem;
    color: #d7e5fa;
    font-weight: 600;
    line-height: 1.35;
}

.share-empty {
    grid-column: 1 / -1;
    text-align: center;
    border: 1px dashed rgba(255, 255, 255, 0.4);
    border-radius: 10px;
    padding: 18px;
    color: #cbd5e1;
}

@media (max-width: 1280px) {
    .share-date {
        font-size: 2.45rem;
    }

    .share-date-icon {
        font-size: 2rem;
    }

    .share-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .share-card-title {
        font-size: 0.84rem;
    }

    .share-card-body {
        gap: 6px;
    }

    .share-game-time {
        font-size: 0.78rem;
    }

    .share-game-comp {
        font-size: 0.7rem;
    }

    .share-game-team {
        font-size: 0.78rem;
    }

    .share-disclaimer {
        font-size: 0.68rem;
    }
}

.strategy-card {
    border: 1px solid #dbe4ef;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.strategy-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 14px;
    background: linear-gradient(90deg, #eef2ff 0%, #f8fafc 50%, #ecfeff 100%);
    border-bottom: 1px solid #dbe4ef;
}

.strategy-card-title-wrap {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.strategy-card-title-wrap strong {
    font-size: 0.95rem;
    color: #111827;
}

.strategy-card-title-wrap span {
    font-size: 0.72rem;
    color: #64748b;
}

.strategy-card-actions {
    display: flex;
    gap: 6px;
}

.strategy-card-actions button {
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #fff;
    color: #475569;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 6px 8px;
    cursor: pointer;
}

.strategy-card-actions .strategy-delete-btn {
    border-color: #fecaca;
    color: #b91c1c;
}

.strategy-card-body {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #fcfdff;
}

.strategy-card-body.collapsed {
    display: none;
}

.strategy-game-item {
    border: 1px solid #e7edf5;
    border-radius: 10px;
    padding: 9px 10px;
    background: #fff;
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) 30px;
    align-items: center;
    column-gap: 10px;
}

.strategy-game-time {
    font-size: 0.76rem;
    font-weight: 700;
    color: #475569;
    text-align: left;
}

.strategy-game-center {
    min-width: 0;
}

.strategy-game-meta {
    display: block;
    font-size: 0.72rem;
    color: #64748b;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.strategy-game-teams {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.strategy-game-team-line {
    display: flex;
    align-items: center;
    gap: 6px;
}

.strategy-game-team-line img {
    width: 15px;
    height: 15px;
    object-fit: contain;
}

.strategy-game-team-line strong {
    font-size: 0.84rem;
    color: #1f2937;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.strategy-remove-game-btn {
    border: 1px solid #fecaca;
    border-radius: 50%;
    background: #fff;
    color: #b91c1c;
    font-size: 0.78rem;
    font-weight: 700;
    width: 26px;
    height: 26px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.strategy-remove-game-btn:hover {
    background: #fef2f2;
}

.strategy-empty-msg,
.strategy-empty-list {
    border: 1px dashed #d1d5db;
    border-radius: 8px;
    padding: 10px;
    font-size: 0.78rem;
    color: #64748b;
    text-align: center;
    background: #f8fafc;
}

/* ================= DASHBOARD LAYOUT ================= */
.dashboard {
    display: grid;
    grid-template-columns: 220px 700px 1fr;
    gap: 16px;
    padding: 16px;
    height: calc(100vh - 60px);
    overflow: hidden;
}

.dashboard > * {
    min-height: 0;
}

/* ================= COLUNA 1: MENU ================= */
.col-menu {
    background: transparent;
    padding-top: 8px;
}

.menu-item {
    display: block;
    padding: 12px 16px;
    color: #5d666d;
    text-decoration: none;
    font-weight: 600;
    border-radius: 6px;
    margin-bottom: 4px;
    font-size: 0.95rem;
    transition: 0.2s;
}

.menu-item:hover, .menu-item.active {
    background-color: #e2e6eb;
    color: #2563eb;
}

/* ================= COLUNA 2: LISTA ================= */
.col-lista {
    background: white;
    border-radius: 8px;
    border: 1px solid #e1e5eb;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.lista-header {
    padding: 16px;
    border-bottom: 1px solid #e1e5eb;
    background: #fdfdfd;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #e1e5eb;
    border-radius: 6px;
    margin-bottom: 12px;
    outline: none;
}

.date-selector {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 10px;
}

.list-filters-row {
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.list-filter-btn {
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    color: #64748b;
    border-radius: 999px;
    min-width: 82px;
    height: 28px;
    font-size: 0.73rem;
    font-weight: 800;
    cursor: pointer;
    padding: 0 10px;
}

.list-filter-btn.active {
    background: #2563eb;
    border-color: #1d4ed8;
    color: #ffffff;
    box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.12);
}

.jogo-status {
    font-size: 0.64rem;
    color: #6b7280;
    line-height: 1;
    white-space: nowrap;
}

.jogo-status.live {
    color: #166534;
    font-weight: 800;
    font-size: 0.88rem;
    line-height: 1;
}

.live-apostrophe {
    animation: liveBlink 1.2s ease-in-out infinite;
}

@keyframes liveBlink {
    0%, 45% { opacity: 1; }
    55%, 100% { opacity: 0.25; }
}

.jogo-item-live {
    box-shadow: inset 2px 0 0 #22c55e;
}

.red-card-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    margin-left: 6px;
    vertical-align: middle;
}

.red-card-icon {
    width: 7px;
    height: 10px;
    border-radius: 1px;
    background: #dc2626;
    box-shadow: inset 0 0 0 1px rgba(127, 29, 29, 0.35);
}

.red-card-mult {
    font-size: 0.62rem;
    font-weight: 700;
    color: #991b1b;
    line-height: 1;
}

.date-arrow-btn {
    border: none;
    background: transparent;
    color: #6b7280;
    font-size: 1.2rem;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: 0.2s;
}

.date-arrow-btn:hover {
    background: #e2e6eb;
    color: #2563eb;
}

.date-center {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    touch-action: manipulation;
}

.date-center:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
    border-radius: 4px;
}

#texto-data {
    font-weight: 800;
    color: #2563eb;
    font-size: 1.1rem;
    cursor: pointer;
    text-transform: uppercase;
    user-select: none;
}

.date-input-hidden {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
}

.campeonato-header {
    background: #f4f6f8;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid #e1e5eb;
    border-top: 1px solid #e1e5eb;
    position: relative;
}

.campeonato-header .toggle-icon {
    position: static;
    flex: 0 0 auto;
}

.campeonato-header h2 {
    font-size: 0.9rem;
    font-weight: 700;
    color: #5d666d;
}

.jogo-item {
    position: relative;
    display: flex;
    align-items: center;
    padding: 12px 16px;
    cursor: pointer;
    transition: 0.2s;
}

.jogo-item:hover {
    background: #f9fafb;
}

.jogo-item.active {
    background: #eff6ff;
    border-left: 3px solid #2563eb;
}

.jogo-hora {
    font-size: 0.85rem;
    color: #6b7280;
    width: 45px;
    font-weight: 500;
}

.jogo-times {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.time {
    font-weight: 600;
    font-size: 0.9rem;
}

/* ================= COLUNA 3: DETALHES ================= */
.col-detalhes {
    overflow-y: auto;
    overflow-x: visible;
    padding: 8px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
    min-height: 0;
}

.card {
    background: white;
    border: 1px solid #e1e5eb;
    border-radius: 8px;
    padding: 16px;
}

.card h3 {
    font-size: 1rem;
    color: #5d666d;
    margin-bottom: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.detalhes-shell {
    width: 100%;
    max-width: none;
    margin: 0;
    padding-bottom: 10px;
}

.compact-card {
    width: 100%;
    max-width: none;
    overflow: visible;
}

#recent-sequence-summary {
    min-height: 170px;
}

#recent-sequence-summary > div {
    overflow: visible;
}

#stats-tables-container {
    overflow: visible;
}

.details-split-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
}

.details-split-left,
.details-split-right {
    min-width: 0;
}

.details-extra-card {
    width: 100%;
}

.details-main-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.95fr);
    gap: 12px;
    align-items: stretch;
}

.details-main-left,
.details-main-right {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.details-main-left > .stats-tabs {
    flex: 1;
}

.details-main-right {
    gap: 12px;
    min-height: 100%;
}

.right-stack-card {
    width: 100%;
}

#extras-panel {
    display: flex;
    flex: 1;
    min-height: 260px;
}

#extras-panel .right-stack-card {
    flex: 1;
}

#distribution-panel .right-stack-card {
    min-height: 360px;
}

.probabilities-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.detalhe-topo {
    display: flex;
    gap: 12px;
}

.detalhe-time-col,
.detalhe-centro-col {
    min-width: 0;
}

.detalhe-time-col h3 {
    font-size: 0.98rem !important;
}

.detalhe-odds-grid {
    width: 100%;
}

.detalhe-odds-grid-main,
.detalhe-odds-grid-secondary {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

.detalhe-odd-box {
    min-height: 78px;
    background: #f8fafc !important;
}

.detalhe-odd-box span {
    font-size: 0.7rem !important;
    letter-spacing: 0.02em;
}

.detalhe-odd-box strong {
    font-size: 1.08rem !important;
}

.detalhe-odd-box.destaque {
    background: #f5f7fb !important;
}

.stats-tabs-head > div {
    padding: 10px 0 !important;
    font-size: 0.78rem !important;
}

.stats-tab-btn {
    flex: 1;
    border: 0;
    background: transparent;
    text-align: center;
    padding: 14px 0;
    font-weight: 600;
    font-size: 0.85rem;
    color: #6b7280;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    text-transform: uppercase;
}

.stats-tab-btn.active {
    color: #2563eb;
    border-bottom-color: #2563eb;
    font-weight: 700;
}

.stats-tabs-content {
    padding: 14px !important;
}

.stats-toolbar {
    flex-wrap: wrap;
    align-items: center;
}

.stats-filter-group {
    background: #fff;
}

.stats-filter-btn {
    border: 0;
    background: #fff;
    color: #4b5563;
    padding: 5px 10px;
    font-size: 0.76rem;
    font-weight: 600;
    cursor: pointer;
    border-left: 1px solid #d1d5db;
}

.stats-filter-btn:first-child {
    border-left: 0;
}

.stats-filter-btn.active {
    background: #2563eb;
    color: #fff;
}

.stats-summary-label {
    margin-bottom: 10px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.stats-debug-line {
    margin-bottom: 8px;
    padding: 8px 10px;
    border-radius: 6px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 0.78rem;
    font-weight: 600;
}

.stats-summary-count {
    margin-bottom: 10px;
    font-size: 0.82rem;
    color: #64748b;
}

.stats-empty-state {
    border: 1px dashed #d1d5db;
    border-radius: 8px;
    padding: 16px;
    text-align: center;
    color: #94a3b8;
    font-size: 0.9rem;
}

.stats-table-card {
    margin-bottom: 12px !important;
}

.stats-table-head {
    padding: 8px 10px !important;
    font-size: 0.84rem !important;
}

.stats-table-card > div:not(.stats-table-head) {
    padding-top: 5px !important;
    padding-bottom: 5px !important;
}

.streaks-grid {
    gap: 12px !important;
}

.streaks-col {
    background: #fbfcfe;
    border: 1px solid #eef2f7;
    border-radius: 8px;
    padding: 12px;
}

.streak-item {
    background: transparent;
}

.classificacao-summary {
    margin-bottom: 10px;
    color: #64748b;
    font-size: 0.82rem;
    font-weight: 600;
}

.classificacao-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 10px;
}

.classificacao-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 999px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    font-size: 0.74rem;
    color: #334155;
    font-weight: 600;
}

.classificacao-zone-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    margin-right: 6px;
    vertical-align: middle;
}

.classificacao-table-wrap {
    overflow-x: auto;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.classificacao-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    min-width: 640px;
}

.classificacao-table th,
.classificacao-table td {
    padding: 9px 10px;
    border-bottom: 1px solid #eef2f7;
    font-size: 0.82rem;
    text-align: center;
    color: #334155;
}

.classificacao-table th {
    background: #f8fafc;
    color: #64748b;
    font-weight: 700;
}

.classificacao-team-cell {
    text-align: left !important;
    min-width: 180px;
}

.classificacao-marker {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 6px;
    border-radius: 999px;
    background: #eef2ff;
    color: #3730a3;
    font-size: 0.68rem;
    font-weight: 700;
    vertical-align: middle;
}

.classificacao-zone-badge {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 6px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    font-size: 0.66rem;
    font-weight: 700;
    vertical-align: middle;
}

.classificacao-meta-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 12px;
}

.classificacao-meta-block {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
    padding: 10px;
}

.classificacao-meta-title {
    font-size: 0.76rem;
    font-weight: 800;
    color: #334155;
    margin-bottom: 6px;
}

.classificacao-rules-text {
    font-size: 0.76rem;
    line-height: 1.45;
    color: #475569;
}

.classificacao-abbr-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
}

.classificacao-abbr-item {
    font-size: 0.73rem;
    color: #334155;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    padding: 3px 8px;
}

.classificacao-row.highlight-home {
    background: #eff6ff;
}

.classificacao-row.highlight-away {
    background: #f0fdf4;
}

.classificacao-row.highlight-home .classificacao-team-cell {
    box-shadow: inset 3px 0 0 #2563eb;
}

.classificacao-row.highlight-away .classificacao-team-cell {
    box-shadow: inset 3px 0 0 #16a34a;
}

.welcome-card,
#welcome-screen {
    width: 100%;
    max-width: none;
    margin: 12px 0 0;
}

body.left-collapsed .dashboard {
    grid-template-columns: 1fr;
}

body.left-collapsed .col-menu,
body.left-collapsed .col-lista {
    display: none;
}

body.left-collapsed .col-detalhes {
    padding-left: 0;
    padding-right: 0;
}

body.strategies-mode .dashboard {
    grid-template-columns: 220px 1fr;
}

body.strategies-mode .col-lista {
    display: none;
}

body.strategies-mode .col-detalhes {
    padding-left: 0;
    padding-right: 0;
}

.ladder-screen {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(360px, 540px) 1fr;
    gap: 14px;
}

.ladder-left-panel,
.ladder-right-panel {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px;
}

.ladder-head,
.ladder-row {
    display: grid;
    grid-template-columns: 1fr 90px 1fr 120px;
    gap: 8px;
    align-items: center;
}

.ladder-head {
    font-size: 0.78rem;
    color: #64748b;
    font-weight: 800;
    margin-bottom: 8px;
}

.ladder-grid {
    max-height: calc(100vh - 180px);
    overflow: auto;
    padding-right: 4px;
}

.ladder-row {
    margin-bottom: 4px;
}

.ladder-cell {
    border: 0;
    border-radius: 4px;
    height: 32px;
    font-size: 0;
    cursor: pointer;
}

.ladder-cell.lay {
    background: #e7acad;
    color: #7f1d1d;
}

.ladder-cell.back {
    background: #9ec8de;
    color: #1e3a8a;
}

.ladder-odd {
    text-align: center;
    font-weight: 700;
    color: #334155;
}

.ladder-pnl {
    background: #bfc0c2;
    border-radius: 4px;
    text-align: center;
    padding: 6px 8px;
    font-weight: 500;
    color: #475569;
}

.ladder-pnl.pos { color: #166534; }
.ladder-pnl.neg { color: #b91c1c; }

.ladder-clear-btn {
    width: 100%;
    border: 0;
    border-radius: 8px;
    background: #2563eb;
    color: #fff;
    padding: 10px;
    font-weight: 800;
    margin-bottom: 10px;
    cursor: pointer;
}

.ladder-clear-btn:hover {
    background: #1d4ed8;
}

.ladder-card {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
    padding: 12px;
    margin-bottom: 10px;
}

.ladder-controls label {
    display: grid;
    gap: 6px;
    font-weight: 700;
    color: #334155;
}

.ladder-controls input,
.ladder-controls select {
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 8px 10px;
    background: #fff;
}

.ladder-controls-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 10px;
}

.ladder-result {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.ladder-result div {
    text-align: center;
    display: grid;
    gap: 6px;
}

.ladder-result strong { color: #1f2937; }

.ladder-entries {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.ladder-entry-col h4 {
    margin: 0 0 8px;
    font-size: 0.92rem;
    color: #1f2937;
}

.ladder-entry-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    border-bottom: 1px solid #e2e8f0;
    font-size: 1rem;
    color: #475569;
}

.ladder-entry-item button {
    border: 0;
    background: transparent;
    cursor: pointer;
    width: 30px;
    height: 30px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    line-height: 1;
    color: #475569;
}

.ladder-entry-item button:hover {
    background: #e2e8f0;
}

.ladder-empty {
    font-size: 0.8rem;
    color: #94a3b8;
    padding: 8px 0;
}

body.ladder-mode .dashboard {
    grid-template-columns: 220px 1fr;
}

body.ladder-mode .col-lista {
    display: none;
}

body.ladder-mode .col-detalhes {
    padding-left: 0;
    padding-right: 0;
}

@media (max-width: 1420px) {
    .dashboard {
        grid-template-columns: 200px minmax(520px, 1fr) minmax(420px, 0.95fr);
    }

    .detalhes-shell,
    .compact-card,
    .welcome-card,
    #welcome-screen {
        max-width: none;
    }
}

@media (max-width: 1320px) {
    .details-main-grid,
    .details-split-grid {
        grid-template-columns: 1fr !important;
    }

    #distribution-panel .right-stack-card {
        min-height: 0;
    }

    .probabilities-grid {
        grid-template-columns: 1fr;
    }

    .strategy-game-item {
        grid-template-columns: 64px minmax(0, 1fr) 28px;
    }
}

@media (max-width: 1180px) {
    .dashboard {
        grid-template-columns: 180px minmax(420px, 1fr) minmax(340px, 0.92fr);
    }

    .detalhe-topo {
        flex-direction: column;
    }

    .detalhe-time-col,
    .detalhe-centro-col {
        width: 100% !important;
    }

    .streaks-grid,
    .detalhe-odds-grid-secondary {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 980px) {
    .dashboard {
        grid-template-columns: 1fr;
        height: auto;
        overflow: visible;
    }

    .col-lista,
    .col-detalhes {
        overflow: visible;
    }

    .col-detalhes {
        padding: 0;
    }

    .detalhe-odds-grid-main,
    .detalhe-odds-grid-secondary,
    .streaks-grid {
        grid-template-columns: 1fr !important;
    }

    .strategies-create-row {
        grid-template-columns: 1fr;
    }

    .strategy-game-item {
        grid-template-columns: 1fr;
        row-gap: 8px;
    }

    .strategy-remove-game-btn {
        justify-self: flex-end;
    }
}

/* Placar Topo */
.placar-header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    padding: 10px 0;
}

.time-escudo {
    font-size: 1.5rem;
    font-weight: 800;
}

.placar-vs {
    text-align: center;
}

.vs-texto {
    font-size: 1.2rem;
    font-weight: 800;
    color: #e1e5eb;
}

.vs-data {
    font-size: 0.8rem;
    color: #6b7280;
    margin-top: 4px;
}

/* Odds Grid */
.odds-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.odd-item {
    border: 1px solid #e1e5eb;
    border-radius: 6px;
    padding: 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.odd-item span {
    font-size: 0.75rem;
    color: #6b7280;
    font-weight: 700;
}

.odd-item strong {
    font-size: 1.1rem;
    color: #111827;
}

/* Tabela Radar */
.tabela-radar {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.tabela-radar th, .tabela-radar td {
    padding: 8px;
    text-align: center;
    border-bottom: 1px solid #f0f2f5;
}

.tabela-radar th {
    background: #f4f6f8;
    color: #6b7280;
    font-weight: 600;
}

.tabela-radar td:first-child {
    text-align: left;
    font-weight: 600;
}

/* Momentos */
.momentos-grid {
    display: flex;
    flex-direction: column;
}

.momento-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    padding: 8px 0;
    border-bottom: 1px solid #f0f2f5;
    text-align: center;
}

.momento-faixa {
    font-weight: 700;
    font-size: 0.9rem;
}

.momento-time {
    font-weight: 700;
    color: #111827;
}
