/* ===== BASE E RESET UNIFICADOS ===== */
* { box-sizing: border-box; }

html, body {
    width: 100%;
    overflow-x: hidden;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--text);
    background: #171717;
}

a {
    text-decoration: none !important;
    color: inherit;
    transition: opacity 0.2s;
}
a:hover { opacity: 0.8; }

::-webkit-scrollbar {
    width: 10px;
    background-color: #111;
}
::-webkit-scrollbar-thumb {
    background-color: #2B2B2B;
    border-radius: 6px;
    border: 2px solid #111;
}
::-webkit-scrollbar-thumb:hover {
    background-color: #777;
}

:root {
  --primary: #4e73df;
  --success: #1cc88a;
  --info: #36b9cc;
  --warning: #f6c23e;
  --danger: #e74a3b;
  --bg-1: #1a1a1a;
  --bg-2: #2a2a2a;
  --bg-3: #333333;
  --border: #3a3a3a;
  --text: #f0f0f0;
  --muted: #aaa;
}

.perf-container-wrapper {
    width: 100%;
    max-width: 1100px;
    margin: 20px auto;
    padding: 0 15px;
}

.perf-dashboard-v2 {
    display: flex;
    flex-direction: column;
    background: #1e1e1e;
    border: 1px solid #333;
    padding: 24px;
    gap: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.perf-group-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #2a2a2a;
    padding-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.perf-brand {
    display: flex;
    align-items: center;
    gap: 15px;
}
.perf-brand i {
    font-size: 1.8rem;
    color: var(--success);
}
.perf-brand h3 {
    font-size: 1.3rem;
    margin: 0;
    font-weight: 700;
}
.perf-brand small {
    color: #777;
    font-size: 0.85rem;
}

.perf-tabs {
    display: flex;
    background: #121212;
    padding: 5px;
}
.tab-btn {
    background: transparent;
    border: none;
    color: #666;
    padding: 10px 20px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.9rem;
    text-decoration: none !important;
    transition: all 0.2s;
}
.tab-btn.active {
    background: rgb(26, 115, 232);
    color: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.tab-btn:hover:not(.active) {
    background: #2a2a2a;
    color: #ccc;
}

.perf-group-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.stats-grid {
    display: flex;
    gap: 40px;
}

.stat-box {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.stat-label {
    font-size: 0.75rem;
    color: #888;
    font-weight: 800;
    letter-spacing: 1px;
}
.stat-val {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
}
.stat-val.positive { color: var(--success); }
.stat-val.negative { color: var(--danger); }
.stat-val.neutral { color: var(--muted); }

.date-nav-v2 {
    display: flex;
    align-items: center;
    background: #2a2a2a;
    padding: 5px;
}
.nav-link {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: #333;
    transition: 0.2s;
    text-decoration: none !important;
}
.nav-link:hover:not(.disabled) {
    background: var(--primary);
    color: #fff;
}
.nav-link.disabled {
    opacity: 0.2;
    cursor: not-allowed;
    pointer-events: none;
}

/* ===== DROPDOWN CUSTOMIZADO – VERSÃO MAIS LARGA ===== */
.date-current {
    padding: 0 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #2a2a2a;
    height: 45px;
    min-width: 200px;
    border-left: 1px solid #3a3a3a;
    border-right: 1px solid #3a3a3a;
}

.custom-date-select {
    position: relative;
    width: 100%;
    cursor: pointer;
}

.custom-select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 0;
    background: transparent;
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    white-space: nowrap;
    line-height: 45px;
}

.custom-select-trigger .bi-chevron-down {
    font-size: 0.9rem;
    transition: transform 0.2s ease;
    color: #aaa;
}

.custom-date-select.open .custom-select-trigger .bi-chevron-down {
    transform: rotate(180deg);
}

.custom-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #1e1e1e;
    border: 1px solid #3a3a3a;
    border-radius: 6px;
    margin-top: 8px;
    z-index: 1000;
    display: none;
    max-height: 280px;
    overflow-y: auto;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    min-width: 180px;
}

.custom-date-select.open .custom-options {
    display: block;
}

.custom-option {
    padding: 12px 16px;
    color: #fff;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 0.95rem;
    white-space: nowrap;
}

.custom-option:hover {
    background: #2a2a2a;
    color: var(--primary);
}

.custom-options::-webkit-scrollbar {
    width: 6px;
}
.custom-options::-webkit-scrollbar-track {
    background: #111;
}
.custom-options::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 3px;
}

/* Responsividade */
@media (max-width: 850px) {
    .perf-group-main {
        flex-direction: column;
        align-items: flex-start;
    }
    .perf-group-stats {
        flex-direction: column;
        align-items: stretch;
    }
    .stats-grid {
        justify-content: space-between;
        gap: 20px;
    }
    .date-nav-v2 {
        align-self: flex-end;
    }
}
@media (max-width: 550px) {
    .stat-val {
        font-size: 1.5rem;
    }
    .date-current {
        height: 38px;
        min-width: 160px;
        padding: 0 8px;
    }
    .custom-select-trigger {
        font-size: 0.9rem;
        line-height: 38px;
    }
    .custom-option {
        font-size: 0.85rem;
        padding: 10px 12px;
    }
    .nav-link {
        width: 38px;
        height: 38px;
    }
}

/* ===== DICAS DO DIA ===== */
.dicas-container {
    background: transparent;
    border: none;
    margin: 0 auto;
    padding: 20px;
    width: 100%;
    max-width: 1400px;
}
.page-title {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2rem;
    color: #fff;
}

/* Forçando 3 colunas com especificidade máxima */
html body .dicas-grid,
html body .locked-preview-grid {
    column-count: 3 !important;
    column-gap: 20px !important;
    width: 100% !important;
}

/* TABLET: 2 colunas */
@media (max-width: 991px) {
    html body .dicas-grid,
    html body .locked-preview-grid {
        column-count: 2 !important;
    }
}

/* MOBILE: 1 coluna */
@media (max-width: 767px) {
    html body .dicas-grid,
    html body .locked-preview-grid {
        column-count: 1 !important;
    }
}

.card-partida {
    display: inline-block;
    width: 100%;
    margin: 0 0 20px;
    background: transparent;
    border: none;
    padding: 0;
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    page-break-inside: avoid;
}

.match-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #444;
}
.match-teams {
    display: flex;
    align-items: center;
    gap: 15px;
}
.team {
    display: flex;
    align-items: center;
    gap: 10px;
}
.team-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
}
.team-logo-container {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.vs {
    font-size: 1.2rem;
    color: var(--muted);
}
.match-info {
    text-align: right;
    color: var(--muted);
    font-size: 0.9rem;
}
.league-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
}
.league-logo {
    width: 30px;
    height: 30px;
    object-fit: contain;
}
.tips-container {
    background: rgba(30,30,30,0.6);
    padding: 12px;
}
.tip-group {
    margin-bottom: 12px;
}
.tip-group-title {
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 6px;
    padding-left: 5px;
}
.no-tips {
    color: var(--muted);
    font-style: italic;
    text-align: center;
    padding: 20px;
}

.tip-card {
    padding: 12px;
    position: relative;
}
.bookmaker-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
}
.fonte-badge {
    background: #ff6b00;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
}
.tip-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 10px;
    gap: 8px;
    padding-right: 60px;
}
.tip-market {
    font-weight: 600;
    font-size: 0.85rem;
    flex: 1;
}
.tip-odd-value {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    min-width: 75px;
}
.tip-odd {
    font-weight: bold;
    font-size: 0.85rem;
}
.value-indicator {
    display: inline-block;
    padding: 2px 5px;
    font-size: 9px;
    font-weight: bold;
    min-width: 55px;
    text-align: center;
}
.value-indicator.has-value {
    background: var(--success);
    color: #fff;
}
.value-indicator.no-value {
    background: #6b7280;
    color: #fff;
}
.tip-kpis {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-bottom: 6px;
}
.tip-kpis.second-row {
    margin-top: 5px;
}
.kpi {
    background: #1111113d;
    border: 1px solid #20252b;
    padding: 6px 4px;
    text-align: center;
}
.kpi span {
    display: block;
    font-size: 10px;
    color: #9aa3ad;
    margin-bottom: 3px;
}
.kpi strong {
    font-size: 12px;
    font-weight: 600;
}
.kpi.pos strong { color: var(--success); }
.kpi.neg strong { color: var(--danger); }

.tip-details {
    margin-top: 8px;
    border-top: 1px solid #2a2f36;
    padding-top: 6px;
}
.tip-details summary {
    cursor: pointer;
    color: #9aa3ad;
    font-size: 11px;
    padding: 3px 0;
    list-style: none;
}
.tip-details summary:hover {
    color: var(--text);
}
.details-content {
    margin-top: 6px;
    padding: 8px;
    background: #0f1216;
    font-size: 11px;
}
.kelly-section {
    display: flex;
    gap: 6px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}
.kelly-badge {
    display: inline-block;
    padding: 2px 6px;
    font-size: 10px;
    font-weight: bold;
}
.kelly-cheia {
    background: var(--primary);
    color: #fff;
}
.kelly-quarta {
    background: var(--info);
    color: #fff;
}
.features-list {
    margin: 6px 0 0;
    padding-left: 14px;
}
.features-list li {
    margin-bottom: 3px;
    line-height: 1.3;
}

.result-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 10px;
    border: 1px solid var(--border);
    margin-bottom: 6px;
}
.result-badge.win {
    color: var(--success);
    background: rgba(28,200,138,0.16);
    border-color: rgba(28,200,138,0.35);
}
.result-badge.loss {
    color: var(--danger);
    background: rgba(231,74,59,0.16);
    border-color: rgba(231,74,59,0.35);
}

.premium-nudge {
    margin: 30px auto;
    max-width: 800px;
    width: 95%;
}
.premium-nudge-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 24px;
    background: rgba(246, 194, 62, 0.05);
    border: 1px solid rgba(246, 194, 62, 0.2);
    border-left: 4px solid var(--warning);
    backdrop-filter: blur(10px);
}
.premium-nudge-left {
    display: flex;
    align-items: center;
    gap: 12px;
}
.premium-nudge-icon {
    width: 44px;
    height: 44px;
    background: rgba(246, 194, 62, 0.1);
    border: 1px solid rgba(246, 194, 62, 0.3);
    color: var(--warning);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}
.premium-nudge-title {
    font-weight: 800;
    color: #fff;
    font-size: 1.05rem;
}
.premium-nudge-subtitle {
    margin-top: 2px;
    color: var(--muted);
    font-size: 0.85rem;
}
.premium-nudge-actions .btn-success {
    background: var(--warning);
    border-color: var(--warning);
    color: #000;
    font-weight: 700;
}
.premium-nudge-actions .btn-success:hover {
    filter: brightness(1.05);
}
@media (max-width: 720px) {
    .premium-nudge-inner {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    .premium-nudge-left {
        flex-direction: column;
        text-align: center;
    }
    .premium-nudge-actions {
        width: 100%;
        justify-content: center;
    }
}

.locked-preview {
    position: relative;
    width: 100%;
    margin-top: 40px;
    padding-bottom: 50px;
}

.locked-preview-grid .card-partida {
    display: inline-block;
    width: 100%;
    margin: 0 0 20px;
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    page-break-inside: avoid;
}

.locked-preview-cta {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    z-index: 10;
    width: 100%;
    padding: 0 15px;
    pointer-events: auto;
}

.locked-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 24px 30px;
    background: #1a1a1a;
    border: 1px solid rgba(246, 194, 62, 0.3);
    border-top: 4px solid var(--warning);
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
    backdrop-filter: blur(2px);
}

@media (max-width: 768px) {
    .locked-cta-inner {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    .locked-icon {
        margin-bottom: 8px;
    }
    .locked-actions {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 12px;
        margin-top: 12px;
    }
    .locked-actions .btn {
        width: 100%;
        text-align: center;
        padding: 12px 10px;
    }
}
@media (max-width: 480px) {
    .locked-cta-inner {
        padding: 16px;
    }
}

.locked-preview-grid .ghost-tip {
    position: relative;
    filter: grayscale(0.55) brightness(0.92);
}
.locked-preview-grid .ghost-tip * {
    color: transparent !important;
}
.locked-preview-grid .ghost-tip img {
    opacity: 0.12 !important;
    filter: blur(2px) grayscale(1) !important;
}
.locked-preview-grid .ghost-tip::after {
    content: "Dica premium";
    position: absolute;
    top: 12px;
    left: 12px;
    font-size: 12px;
    font-weight: 700;
    color: rgba(233,238,245,0.7);
    background: rgba(0,0,0,0.35);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 6px 10px;
    backdrop-filter: blur(6px);
    z-index: 3;
}