:root {
    --bg-body: #0b1121;
    --bg-sidebar: #0f1524;
    --bg-card: #151c2e;
    --bg-hover: #1e293b;
    --border: #1e293b;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-low: #64748b;
    --orange: #f97316;
    --yellow: #eab308;
    --green: #10b981;
    --danger: #f87171;

    /* Compatibilidade com scanner legado */
    --card-dark: #151c2e;
    --border-dark: #1e293b;
    --glass-dark: rgba(15, 23, 42, .45);
    --shadow-dark: rgba(2, 6, 23, .45);
    --text-dark: #f8fafc;
    --text-muted-dark: #94a3b8;
    --text-secondary-dark: #64748b;
    --radius-xl: 12px;
    --radius-md: 8px;
    --radius-sm: 6px;
    --spacing-xl: 16px;
    --spacing-lg: 12px;
    --spacing-md: 10px;
    --spacing-sm: 8px;
    --spacing-xs: 4px;
    --text-xs: 11px;
    --text-sm: 12px;
    --text-base: 13px;
    --text-lg: 15px;
    --text-xl: 17px;
    --primary-gradient: linear-gradient(135deg, #f97316, #ea580c);
}

* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-body);
    color: var(--text-muted);
    font-size: 10.0px;
}

/* Shell principal */
.layout {
    display: flex;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.sidebar {
    width: 256px;
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-shrink: 0;
    transition: width .22s ease;
}

.brand {
    height: 50px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 24px;
    border-bottom: 1px solid var(--border);
    color: var(--text-main);
    font-size: 16px;
    font-weight: 600;
}

.brand-text {
    white-space: nowrap;
}

.sidebar-toggle-btn {
    margin-left: auto;
    border: 1px solid #334155;
    background: transparent;
    color: var(--text-muted);
    border-radius: 6px;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.sidebar-toggle-btn:hover {
    background: var(--bg-hover);
    color: var(--text-main);
}

.menu-text {
    white-space: nowrap;
}

.layout.sidebar-collapsed .sidebar {
    width: 78px;
}

.layout.sidebar-collapsed .menu-title,
.layout.sidebar-collapsed .menu-text,
.layout.sidebar-collapsed .brand-text {
    display: none;
}

.layout.sidebar-collapsed .brand-icon-wrapper {
    display: none;
}

.layout.sidebar-collapsed .brand {
    padding: 0 10px;
    gap: 8px;
}

.layout.sidebar-collapsed .menu-item {
    justify-content: center;
    padding: 10px;
}

.layout.sidebar-collapsed .connection-status {
    justify-content: center;
    padding: 8px;
}

.brand-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    border-radius: 6px;
    background: #1e293b;
}

.sidebar-content {
    padding: 16px;
}

.menu-title {
    margin: 0 0 8px;
    padding: 0 8px;
    color: var(--text-low);
    font-size: 11px;
    font-weight: 600;
}

.menu-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.menu-item {
    width: 100%;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--text-muted);
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
    cursor: pointer;
    transition: background-color .2s, color .2s;
}

.menu-item:hover,
.menu-item-active {
    background: var(--bg-hover);
    color: var(--text-main);
}

.sidebar-footer {
    padding: 16px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links a {
    color: var(--text-secondary-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.main-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.main-header {
    padding: 24px 32px 12px;
}

.main-header h1 {
    margin: 0;
    color: var(--text-main);
    font-size: 28px;
    font-weight: 600;
}

.status-message {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 12px;
    line-height: 1.2;
}

.status-connected {
    color: #6ee7b7;
    background: rgba(16, 185, 129, .10);
    border-color: rgba(16, 185, 129, .3);
}

.status-loading {
    color: #fcd34d;
    background: rgba(234, 179, 8, .10);
    border-color: rgba(234, 179, 8, .3);
    display: none;
}

.status-error {
    color: #fca5a5;
    background: rgba(239, 68, 68, .10);
    border-color: rgba(239, 68, 68, .3);
    display: none;
}

.icon-xs { width: 12px; height: 12px; }
.icon-sm { width: 16px; height: 16px; }
.icon-brand { color: #60a5fa; }
.icon-settings { color: var(--orange); }
.icon-online { color: var(--green); }

/* Páginas internas */
.page {
    min-height: 100vh;
    padding: 22px;
    background: var(--bg-body);
}

.page-head {
    margin-bottom: 18px;
}

.page-title {
    margin: 0 0 4px;
    color: var(--text-main);
    font-size: 24px;
    font-weight: 600;
}

.page-subtitle {
    margin: 0;
    color: var(--text-muted);
    font-size: 13px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.card {
    border-radius: 10px;
    padding: 16px;
}

.card1 {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px;
}

.text-main { color: var(--text-main); }
.text-muted { color: var(--text-muted); }
.text-low { color: var(--text-low); }
.text-orange { color: var(--orange); }
.text-green { color: var(--green); }

.row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.col {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }

.divider-top {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #334155;
}

.tag {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
}

.tag-orange { color: var(--orange); background: rgba(249, 115, 22, .2); }
.tag-yellow { color: var(--yellow); background: rgba(234, 179, 8, .2); }

.pill-profit {
    background: rgba(16, 185, 129, .15);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.alert {
    background: rgba(16, 185, 129, .14);
    border: 1px solid rgba(16, 185, 129, .24);
    border-radius: 10px;
    padding: 14px;
}

.item-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px;
    border: 1px solid transparent;
    border-radius: 8px;
}

.item:hover {
    background: rgba(30, 41, 59, .5);
    border-color: var(--border);
}

.stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 10px 0 20px;
}

.step {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-low);
}

.step-ball {
    width: 24px;
    height: 24px;
    border-radius: 999px;
    border: 1px solid #334155;
    background: #1e293b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.step.active { color: var(--text-main); }
.step.active .step-ball { background: #ea580c; border-color: #ea580c; }
.step-line { width: 34px; height: 1px; background: #334155; }

.book-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.book-btn {
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #334155;
    background: transparent;
    color: var(--text-muted);
    font-weight: 500;
    cursor: pointer;
}

.book-btn.active,
.book-btn:hover {
    background: var(--bg-hover);
    color: var(--text-main);
}

/* Auth baseado no mesmo visual */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: radial-gradient(circle at 20% 20%, rgba(249, 115, 22, .12), transparent 45%),
        radial-gradient(circle at 80% 80%, rgba(59, 130, 246, .08), transparent 50%),
        var(--bg-body);
}

.auth-wrapper {
    width: 100%;
    max-width: 450px;
}

.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
}

.auth-brand {
    text-align: center;
    margin-bottom: 18px;
}

.auth-brand img {
    width: 72px;
    height: 72px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid #334155;
    margin-bottom: 10px;
}

.auth-brand h1 {
    margin: 0;
    color: var(--text-main);
    font-size: 24px;
}

.auth-brand p {
    margin: 6px 0 0;
    color: var(--text-muted);
    font-size: 13px;
}

.auth-alert {
    border-radius: 10px;
    padding: 10px 12px;
    margin-bottom: 12px;
    font-size: 13px;
}

.auth-alert-error {
    border: 1px solid rgba(248, 113, 113, .35);
    background: rgba(248, 113, 113, .12);
    color: var(--danger);
}

.auth-alert-success {
    border: 1px solid rgba(16, 185, 129, .35);
    background: rgba(16, 185, 129, .12);
    color: #6ee7b7;
}

.auth-step-info {
    border: 1px solid rgba(249, 115, 22, .35);
    background: rgba(249, 115, 22, .12);
    color: #fdba74;
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 12px;
    font-size: 13px;
}

.auth-question-display {
    background: rgba(30, 41, 59, .5);
    border: 1px solid #334155;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 12px;
    color: var(--text-main);
}

.auth-form-group { margin-bottom: 12px; }

.auth-form-row {
    display: flex;
    gap: 10px;
}

.auth-form-row .auth-form-group { flex: 1; }

.auth-form-label {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
}

.auth-form-input {
    width: 100%;
    border: 1px solid #334155;
    background: rgba(15, 23, 42, .45);
    color: var(--text-main);
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 14px;
}

.auth-form-input::placeholder { color: var(--text-low); }

.auth-form-input:focus {
    outline: none;
    border-color: #fb923c;
    box-shadow: 0 0 0 3px rgba(251, 146, 60, .2);
}

.auth-btn {
    width: 100%;
    border: 0;
    border-radius: 8px;
    padding: 11px 12px;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    background: linear-gradient(135deg, #f97316, #ea580c);
}

.auth-btn:hover { filter: brightness(1.05); }

.auth-links {
    text-align: center;
    margin-top: 14px;
    line-height: 1.7;
}

.auth-links a {
    color: #fb923c;
    text-decoration: none;
    font-size: 13px;
}

.auth-links a:hover { text-decoration: underline; }

.auth-hint {
    display: block;
    margin-top: 6px;
    color: var(--text-low);
    font-size: 11px;
}

/* ===== Buscador Odds ===== */
.is-hidden { display: none !important; }

.buscador-toolbar {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    flex-wrap: wrap;
}

.search-wrap {
    flex: 1;
    min-width: 280px;
    position: relative;
}

.search-select {
    min-width: 180px;
    height: 42px;
}

.search-btn {
    padding: var(--spacing-md) var(--spacing-xl);
    background: var(--primary-gradient);
    color: #000;
    border: none;
    border-radius: var(--radius-sm);
    font-size: var(--text-base);
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.search-suggestions {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 10;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--bg-card);
    overflow: hidden;
    max-height: 280px;
    overflow-y: auto;
}

.search-suggestions.open { display: block; }

.suggestion-item {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
}

.suggestion-item:last-child { border-bottom: 0; }
.suggestion-item:hover,
.suggestion-item.active { background: var(--bg-hover); }

.suggestion-title {
    color: var(--text-main);
    font-weight: 600;
    font-size: 13px;
}

.suggestion-subtitle {
    color: var(--text-low);
    font-size: 12px;
    margin-top: 3px;
}

.loading-state {
    grid-column: 1 / -1; /* ocupa todas as colunas */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    text-align: center;
}
.empty-state {
    min-height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-muted);
    gap: 6px;
}



.empty-icon { font-size: 26px; }
.empty-text { color: var(--text-main); margin: 0; }
.empty-hint { color: var(--text-low); margin: 0; }

.loading-spinner {
            width: 48px;
            height: 48px;
            border: 4px solid var(--border-dark);
            border-top-color: var(--accent);
            border-radius: 50%;
            animation: spin 1s linear infinite;
            margin: 0 auto var(--spacing-lg);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.events-title {
    margin: 18px 0 10px;
    color: var(--text-main);
    font-size: 16px;
}

.events-table-container {
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: auto;
    background: var(--bg-card);
    margin-bottom: 14px;
}

.events-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 740px;
}

.events-table th,
.events-table td {
    padding: 10px;
    border-bottom: 1px solid var(--border);
}

.events-table th {
    color: var(--text-main);
    background: #111a2d;
    font-size: 12px;
    font-weight: 600;
    text-align: left;
    white-space: nowrap;
}

.events-table tr:last-child td { border-bottom: 0; }
.odd-row { background: rgba(11, 17, 33, .35); }
.even-row { background: transparent; }

.th-evento, .td-evento { min-width: 230px; }
.th-casa, .td-casa { min-width: 150px; }
.th-odd, .td-odd { text-align: center; min-width: 74px; }

.sortable { cursor: pointer; user-select: none; }
.sort-icon { color: var(--text-low); font-size: 11px; margin-left: 4px; }

.event-name { color: var(--text-main); font-weight: 600; }

.casa-name {
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 500;
}

.casa-name:hover { color: #fff; text-decoration: underline; }

.pa-badge {
    display: inline-block;
    margin-left: 5px;
    padding: 1px 6px;
    border-radius: 999px;
    background: #ffffff;
    color: #f97316;
    font-size: 10px;
    font-weight: 700;
}

.no-odd { color: var(--text-low); }

.odd-cell {
    border: 1px solid #334155;
    border-radius: 7px;
    padding: 5px 8px;
    background: rgba(15, 23, 42, .55);
    color: var(--text-main);
    font-weight: 700;
    display: inline-block;
    min-width: 52px;
}

.clickable-odd { cursor: pointer; }
.clickable-odd:hover { filter: brightness(1.1); }
.best-odd { border-color: #eab308; box-shadow: 0 0 0 2px rgba(16,185,129,.2); }

/* Estado selecionado ao clicar na odd */
.odd-cell.selected,
.odd-badge.selected {
    border-color: #f97316 !important;
    box-shadow: 0 0 0 2px rgba(249, 115, 22, .28), inset 0 0 0 1px rgba(249, 115, 22, .18);
    background: rgba(249, 115, 22, .14) !important;
    color: #fff;
    transform: translateY(-1px);
}

/* Efeito de variação da odd (SSE) */
.odd-cell.odd-up,
.odd-badge.odd-up {
    border-color: #10b981 !important;
    background: rgba(16, 185, 129, .2) !important;
    animation: oddFlashUp 1.1s ease-out 2;
}

.odd-cell.odd-down,
.odd-badge.odd-down {
    border-color: #ef4444 !important;
    background: rgba(239, 68, 68, .2) !important;
    animation: oddFlashDown 1.1s ease-out 2;
}

@keyframes oddFlashUp {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, .45); }
    70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

@keyframes oddFlashDown {
    0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, .45); }
    70% { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.home { color: #fb923c; }
.draw { color: #fb923c; }
.away { color: #fb923c; }
.dc1x { color: #fb923c; }
.dcx2 { color: #fb923c; }

.ranking-section {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.ranking-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px;
}

.ranking-title {
    color: var(--text-main);
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 10px;
}

.ranking-list { display: flex; flex-direction: column; gap: 8px; }

.ranking-item {
    border: 1px solid #334155;
    border-radius: 8px;
    padding: 9px;
    background: rgba(15, 23, 42, .4);
}

.ranking-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}

.ranking-header-actions { display: flex; align-items: center; gap: 8px; }

.ranking-leg {
    display: inline-block;
    background: rgba(30, 41, 59, .8);
    border: 1px solid #334155;
    border-radius: 999px;
    padding: 3px 8px;
    font-size: 11px;
    color: #cbd5e1;
    margin: 2px 4px 2px 0;
}

.ranking-profit { font-weight: 700; font-size: 12px; }
.ranking-profit.positive { color: #34d399; }
.ranking-profit.negative { color: #f87171; }

.ranking-btn {
    border: 1px solid #fb923c;
    background: rgba(249, 115, 22, .16);
    color: #fdba74;
    border-radius: 6px;
    padding: 4px 8px;
    cursor: pointer;
    font-weight: 700;
}

.ranking-btn:hover { background: rgba(249, 115, 22, .28); }
.no-combo { color: var(--text-low); font-size: 12px; }

.calculators-section {
    margin-top: 16px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    align-items: flex-start;
}

.calc-card {
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--bg-card);
    padding: 14px;
    width: 100%;
    overflow-x: auto;
}

.calc-header,
.calc-grid-header,
.calc-row,
.calc-summary {
    display: grid;
    grid-template-columns: 1.8fr .8fr .8fr .95fr .55fr .75fr .95fr;
    gap: 8px;
    align-items: center;
}

.calc-header {
    margin-bottom: 10px;
    grid-template-columns: 1fr auto;
    align-items: center;
}

.calc-total-input {
    display: flex;
    align-items: center;
    gap: 8px;
}

.calc-total-input label {
    color: var(--text-low);
    font-size: 12px;
    font-weight: 600;
}

.calc-total-input input {
    width: 120px;
    border: 1px solid #334155;
    background: rgba(15, 23, 42, .45);
    color: var(--text-main);
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 13px;
}

.calc-grid-header {
    color: var(--text-low);
    font-size: 11px;
    margin-bottom: 8px;
    padding: 0 2px;
}

.calc-row {
    margin-bottom: 8px;
    padding: 8px;
    border: 1px solid #243042;
    border-radius: 8px;
    background: rgba(11, 17, 33, .35);
}

.calc-row-label { color: var(--text-main); font-size: 8px; }
.house { color: #cbd5e1; margin-right: 4px; font-weight: 700; }

.calc-input {
    width: 100%;
    border: 1px solid #334155;
    background: rgba(15, 23, 42, .45);
    color: var(--text-main);
    border-radius: 6px;
    padding: 7px 8px;
    font-size: 10px;
}

.calc-lock { accent-color: #f97316; }

.calc-return {
    color: #cbd5e1;
    border: 1px dashed #334155;
    border-radius: 6px;
    padding: 6px 8px;
    text-align: center;
    font-size: 10px;
}

.calc-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
    margin-top: 10px;
    gap: 10px;
}

.calc-summary-item {
    border: 1px solid #334155;
    border-radius: 8px;
    padding: 8px;
    background: rgba(15, 23, 42, .35);
}

.calc-summary-label { color: var(--text-low); font-size: 11px; }
.calc-summary-value { color: var(--text-main); font-weight: 700; font-size: 13px; }

.game-card {
    position: relative;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--bg-card);
    padding: 12px;
    cursor: pointer;
    
}

.game-card:hover { border-color: #334155; background: #111a2d; }
.game-card.favorited { border-color: #f59e0b; }

.favorite-btn {

    position: absolute;
    color: #f97316;
    top: -7px;
    right: 1px;
    background: rgba(0, 0, 0, 0.0);
    border: none;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
    padding: 6px 8px;
    border-radius: 6px;
    line-height: 1;
    backdrop-filter: blur(4px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.favorite-btn-buscador {

    position: absolute;
    color: #f97316;
    top: 5px;
    right: 3px;
    background: rgba(0, 0, 0, 0.0);
    border: none;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
    padding: 6px 8px;
    border-radius: 6px;
    line-height: 1;
    backdrop-filter: blur(4px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}


.hide-btn {

    position: absolute;
    color: #f97316;
    top: -7px;
    right: 35px;
    background: rgba(0, 0, 0, 0.0);
    border: none;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
    padding: 6px 8px;
    border-radius: 6px;
    line-height: 1;
    backdrop-filter: blur(4px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.hide-btn-freebet {

    position: absolute;
    color: #f97316;
    top: 5px;
    right: 5px;
    background: rgba(0, 0, 0, 0.0);
    border: none;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
    padding: 6px 8px;
    border-radius: 6px;
    line-height: 1;
    backdrop-filter: blur(4px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.hide-events {

    position: absolute;
    color: #f97316;
    top: -7px;
    right: 70px;
    background: rgba(0, 0, 0, 0.0);
    border: none;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
    padding: 6px 8px;
    border-radius: 6px;
    line-height: 1;
    backdrop-filter: blur(4px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.favorite-btn.favorited { color: #f59e0b; border-color: #f59e0b; }

.game-card-header { margin-bottom: 8px; }
.game-card-sport { font-size: 11px; color: var(--text-muted); }
.game-card-teams { color: var(--text-main); font-weight: 700; }
.game-card-league { color: var(--text-low); font-size: 9px; margin-top: 4px; }

#todayGamesContainer {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.bettracker-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .55);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 60;
}

.bettracker-modal.open { display: flex; }

.bettracker-modal-content {
    width: min(980px, 92vw);
    height: min(760px, 88vh);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.bettracker-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
}

.bettracker-modal-title { color: var(--text-main); font-weight: 700; }

.bettracker-modal-close {
    border: 1px solid #334155;
    background: transparent;
    color: var(--text-muted);
    border-radius: 8px;
    padding: 6px 10px;
    cursor: pointer;
}

.bettracker-modal-close:hover { background: var(--bg-hover); color: var(--text-main); }

.bettracker-modal-body { flex: 1; }

.bettracker-iframe {
    width: 100%;
    height: 100%;
    border: 0;
    background: #fff;
}

@media (max-width: 980px) {
    .grid-2,
    .grid-3,
    .book-grid {
        grid-template-columns: 1fr;
    }

    .ranking-section,
    .calculators-section {
        grid-template-columns: 1fr;
    }

    .calc-header,
    .calc-grid-header,
    .calc-row {
        grid-template-columns: 1fr;
    }

    .calc-header {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .calc-summary {
        grid-template-columns: 1fr 1fr;
    }

    #todayGamesContainer {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .auth-form-row {
        flex-direction: column;
    }
}

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #334155; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #475569; }

/* ===== Styles migrados de alertas-scanner.php ===== */
/* Estilos específicos para cards de sinais */
        .signals-grid {
            display: flex;
            flex-direction: column;
            gap: var(--spacing-xl);
            margin-top: var(--spacing-xl);
        }

        .signal-card {
            background: var(--bg-card);
            border-radius: 10px;
            padding: 12px;
            border: 1px solid var(--border);
            box-shadow: none;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            overflow: hidden;
        }

        .signal-card:hover {
            transform: translateY(-1px);
            box-shadow: none;
            border-color: #334155;
            background: #111a2d;
        }

        body.light .signal-card {
            background: var(--card-light);
            border-color: var(--border-light);
            box-shadow: 0 8px 32px var(--shadow-light);
        }

        body.light .signal-card:hover {
            box-shadow: 0 15px 40px var(--shadow-light);
        }

        .signal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 8px;
            padding-bottom: 7px;
            border-bottom: 1px solid var(--border);
        }

        body.light .signal-header {
            border-bottom-color: var(--border-light);
        }

        .signal-type {
            display: inline-flex;
            align-items: center;
            gap: var(--spacing-sm);
            padding: 3px 8px;
            background: rgba(59, 130, 246, 0.2);
            border: 1px solid rgba(59, 130, 246, 0.3);
            border-radius: 999px;
            font-weight: 700;
            font-size: 9px;
            color: #93c5fd;
        }

        .signal-card.duo .signal-type {
            background: rgba(16, 185, 129, 0.2);
            border-color: rgba(16, 185, 129, 0.3);
            color: #86efac;
        }

        .signal-age {
            font-size: var(--text-sm);
            color: var(--text-muted-dark);
            font-weight: 500;
        }

        body.light .signal-age {
            color: var(--text-muted-light);
        }

        .signal-game {
            font-size: 11.5px;
            font-weight: 700;
            color: var(--text-dark);
            margin-bottom: 3px;
            line-height: 1.3;
        }

        body.light .signal-game {
            color: var(--text-light);
        }

        .signal-date {
            font-size: 9px;
            color: var(--text-secondary-dark);
            margin-bottom: 8px;
        }

        .signal-league {
            font-size: 9px;
            color: var(--text-secondary-dark);
            margin-bottom: 4px;
        }

        body.light .signal-date {
            color: var(--text-secondary-light);
        }

        body.light .signal-league {
            color: var(--text-secondary-light);
        }

        .signal-legs {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 7px;
            margin-bottom: 8px;
        }

        .leg {
            background: rgba(15, 23, 42, .45);
            padding: 8px;
            border-radius: 8px;
            border: 1px solid #334155;
            min-width: 110px;
        }

        body.light .leg {
            background: var(--glass-light);
            border-color: var(--border-light);
        }

        .leg-label {
            font-size: var(--text-xs);
            font-weight: 600;
            color: var(--text-muted-dark);
            text-transform: uppercase;
            letter-spacing: 0.05em;
            margin-bottom: var(--spacing-sm);
        }

        body.light .leg-label {
            color: var(--text-muted-light);
        }

        .leg-casa {
            font-size: 9.5px;
            font-weight: 700;
            color: var(--text-dark);
            margin-bottom: 3px;
        }

        body.light .leg-casa {
            color: var(--text-light);
        }

        .leg-odd {
            font-size: 11.8px;
            font-weight: 800;
            color: var(--orange);
            margin-bottom: 3px;
        }

        .leg-selection {
            font-size: 8.4px;
            color: var(--text-secondary-dark);
            margin-bottom: 6px;
            font-style: italic;
        }

        body.light .leg-selection {
            color: var(--text-secondary-light);
        }

        .leg-link {
            display: inline-block;
            padding: 3px 7px;
            background: var(--primary-gradient);
            color: white;
            text-decoration: none;
            border-radius: 8px;
            font-size: 8.4px;
            font-weight: 600;
            transition: all 0.3s ease;
            min-width: 50px;
        }

        .leg-link:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 16px rgba(255, 215, 0, 0.3);
        }

        .signal-footer {
            display: flex;
            justify-content: center;
            align-items: center;
            padding-top: 7px;
            border-top: 1px solid var(--border);
        }

        .signal-group {
            display: flex;
            flex-direction: column;
            gap: calc(var(--spacing-md) * 0.78125);
        }

        .signal-group-details {
            display: none;
            flex-direction: column;
            gap: calc(var(--spacing-md) * 0.78125);
        }

        .signal-group-details.open {
            display: flex;
        }

        .signal-group-details.open .signal-card {
            background: rgba(59, 130, 246, 0.12);
            border-color: rgba(59, 130, 246, 0.35);
        }

        body.light .signal-group-details.open .signal-card {
            background: rgba(59, 130, 246, 0.08);
            border-color: rgba(59, 130, 246, 0.25);
        }

        .group-toggle {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            font-size: var(--text-xs);
            font-weight: 700;
            color: var(--text-muted-dark);
            cursor: pointer;
            padding: 4px 8px;
            border-radius: var(--radius-sm);
            border: 1px solid var(--border-dark);
            background: rgba(255, 255, 255, 0.04);
            transition: all 0.2s ease;
        }

        body.light .group-toggle {
            border-color: var(--border-light);
            background: rgba(0, 0, 0, 0.04);
            color: var(--text-muted-light);
        }

        .group-toggle:hover {
            transform: translateY(-1px);
            box-shadow: 0 4px 12px var(--shadow-dark);
        }

        .group-toggle .group-toggle-count {
            color: var(--text-secondary-dark);
        }

        body.light .group-toggle .group-toggle-count {
            color: var(--text-secondary-light);
        }

        body.light .signal-footer {
            border-top-color: var(--border-light);
        }

        .signal-profit {
            font-size: var(--text-lg);
            font-weight: 800;
            padding: var(--spacing-sm) var(--spacing-md);
            border-radius: var(--radius-md);
        }

        .hide-btn:hover {
            transform: scale(1.15);
            background: rgba(0, 0, 0, 0.3);
        }

        body.light .hide-btn {
            background: rgba(255, 255, 255, 0.3);
            color: rgba(0, 0, 0, 0.65);
        }

        body.light .hide-btn:hover {
            background: rgba(255, 255, 255, 0.5);
        }

        .hide-events:hover {
            transform: scale(1.15);
            background: rgba(0, 0, 0, 0.3);
        }

        body.light .hide-events {
            background: rgba(255, 255, 255, 0.3);
            color: rgba(0, 0, 0, 0.65);
        }

        body.light .hide-events:hover {
            background: rgba(255, 255, 255, 0.5);
        }

        .hidden-count-button {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 6px 10px;
            border-radius: var(--radius-sm);
            border: 1px solid var(--border-dark);
            background: var(--glass-dark);
            color: var(--text-dark);
            font-size: 13px;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .hidden-count-button:hover {
            transform: translateY(-1px);
            box-shadow: 0 6px 16px var(--shadow-dark);
        }

        .view-toggle {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 6px 10px;
            border-radius: var(--radius-sm);
            border: 1px solid var(--border-dark);
            background: var(--glass-dark);
            color: var(--text-dark);
            font-size: 13px;
            font-weight: 600;
        }

        body.light .view-toggle {
            border-color: var(--border-light);
            background: var(--glass-light);
            color: var(--text-light);
        }

        .view-toggle .switch {
            position: relative;
            display: inline-block;
            width: 40px;
            height: 22px;
        }

        .view-toggle .switch input {
            opacity: 0;
            width: 0;
            height: 0;
        }

        .view-toggle .slider {
            position: absolute;
            cursor: pointer;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(255, 255, 255, 0.08);
            border: 1px solid var(--border-dark);
            transition: 0.2s;
            border-radius: 999px;
        }

        body.light .view-toggle .slider {
            background: rgba(0, 0, 0, 0.08);
            border-color: var(--border-light);
        }

        .view-toggle .slider:before {
            position: absolute;
            content: '';
            height: 16px;
            width: 16px;
            left: 2px;
            top: 2px;
            background: #f59e0b;
            transition: 0.2s;
            border-radius: 50%;
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
        }

        .view-toggle .switch input:checked + .slider:before {
            transform: translateX(18px);
            background: #f59e0b;
        }

        body.light .hidden-count-button {
            border-color: var(--border-light);
            background: var(--glass-light);
            color: var(--text-light);
        }

        .hidden-modal-list {
            display: flex;
            flex-direction: column;
            gap: var(--spacing-md);
        }

        .hidden-modal-item {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: var(--spacing-md);
            padding: var(--spacing-md);
            border-radius: var(--radius-md);
            border: 1px solid var(--border-dark);
            background: var(--glass-dark);
        }

        body.light .hidden-modal-item {
            border-color: var(--border-light);
            background: var(--glass-light);
        }

        .hidden-modal-item .hidden-title {
            color: var(--text-dark);
            font-weight: 600;
            font-size: var(--text-sm);
        }

        body.light .hidden-modal-item .hidden-title {
            color: var(--text-light);
        }

        .hidden-restore-btn {
            padding: 6px 10px;
            border-radius: var(--radius-sm);
            border: 1px solid var(--border-dark);
            background: transparent;
            color: var(--text-dark);
            font-size: 12px;
            cursor: pointer;
        }

        body.light .hidden-restore-btn {
            border-color: var(--border-light);
            color: var(--text-light);
        }

        .favorite-btn:hover {
            transform: scale(1.15);
            background: rgba(0, 0, 0, 0.3);
        }

        .favorite-btn.favorited {
            color: #FFD700;
            filter: drop-shadow(0 2px 8px rgba(255, 215, 0, 0.4));
            animation: starGlow 2s ease-in-out infinite;
        }

        @keyframes starGlow {
            0%, 100% {
                filter: drop-shadow(0 2px 8px rgba(255, 215, 0, 0.4));
            }
            50% {
                filter: drop-shadow(0 2px 12px rgba(255, 215, 0, 0.7));
            }
        }

        body.light .favorite-btn {
            background: rgba(255, 255, 255, 0.3);
        }

        body.light .favorite-btn:hover {
            background: rgba(255, 255, 255, 0.5);
        }

        .signal-card.favorited {
            border: 0.5px solid #FFD700 !important;
            box-shadow: 0 0 20px rgba(255, 215, 0, 0.3) !important;
        }

        .no-signals {
            text-align: center;
            padding: var(--spacing-3xl);
            color: var(--text-secondary-dark);
        }

        body.light .no-signals {
            color: var(--text-secondary-light);
        }

        .no-signals div:first-child {
            font-size: var(--text-4xl);
            margin-bottom: var(--spacing-md);
        }

        /* Responsive */
        @media (max-width: 768px) {
            .signal-legs {
                grid-template-columns: 1fr;
            }
        }

        /* Estilos para controle de abas múltiplas */
        .tab-control-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.95);
            backdrop-filter: blur(10px);
            z-index: 99999;
            display: none;
            align-items: center;
            justify-content: center;
        }

        .tab-control-overlay.active {
            display: flex;
        }

        .tab-control-modal {
            background: var(--card-dark);
            border-radius: var(--radius-xl);
            padding: var(--spacing-3xl);
            max-width: 500px;
            text-align: center;
            border: 2px solid var(--border-dark);
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
            position: relative;
            z-index: 100000;
        }

        body.light .tab-control-modal {
            background: var(--card-light);
            border-color: var(--border-light);
        }

        .tab-control-icon {
            font-size: 64px;
            margin-bottom: var(--spacing-lg);
        }

        .tab-control-title {
            font-size: var(--text-2xl);
            font-weight: 700;
            color: #ffffff;
            margin-bottom: var(--spacing-md);
        }

        body.light .tab-control-title {
            color: #000000;
        }

        .tab-control-message {
            font-size: var(--text-base);
            color: #cccccc;
            margin-bottom: var(--spacing-xl);
            line-height: 1.6;
        }

        body.light .tab-control-message {
            color: #333333;
        }

        .tab-control-button {
            padding: var(--spacing-md) var(--spacing-2xl);
            background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
            color: #000000;
            border: none;
            border-radius: var(--radius-md);
            font-size: var(--text-base);
            font-weight: 700;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .tab-control-button:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 24px rgba(255, 215, 0, 0.6);
        }

        /* Blur apenas no conteúdo principal, não no overlay */
        body.inactive-tab > *:not(.tab-control-overlay) {
            filter: blur(8px);
            pointer-events: none;
        }

        body.inactive-tab .tab-control-overlay {
            filter: none;
            pointer-events: auto;
        }

.container {
            min-width: 980px;
            margin: 0 auto;
            padding: 0 calc(var(--spacing-lg) * 0.78125);
        }
        .signals-grid {
            display: flex;
            flex-direction: column;
            gap: calc(var(--spacing-md) * 0.78125);
        }
        .signal-card {
            font-size: calc(var(--text-sm) * 0.78125);
            padding: calc(var(--spacing-md) * 0.78125);
            display: flex;
            flex-direction: row;
            align-items: center;
            gap: calc(var(--spacing-lg) * 0.78125);
        }
        .signal-type, .signal-age, .signal-date, .signal-league, .leg-label, .leg-selection {
            font-size: calc(var(--text-xs) * 0.90125);
        }
        .signal-game {
            font-size: calc(var(--text-base) * 1.10);
            margin-bottom: 0;
            flex: 1;
            min-width: 281px;
        }
        .leg-casa {
            font-size: calc(var(--text-base) * 0.78125);
        }
        .leg-odd {
            font-size: calc(var(--text-xl) * 0.78125);
        }
        .signal-profit {
            font-size: calc(var(--text-base) * 0.78125);
            padding: calc(var(--spacing-sm) * 0.78125) calc(var(--spacing-md) * 0.78125);
        }
        .signal-header {
            margin-bottom: 0;
            padding-bottom: 0;
            border-bottom: none;
            padding-right: calc(var(--spacing-md) * 0.78125);
            border-right: 1px solid var(--border-dark);
            min-width: 50px;
            flex-shrink: 0;
        }

        body.light .signal-header {
            border-right-color: var(--border-light);
        }
        .signal-type {
            padding: calc(var(--spacing-sm) * 0.78125) calc(var(--spacing-md) * 0.78125);
        }
        .signal-date {
            margin-bottom: 0;
            padding-left: calc(var(--spacing-sm) * 0.78125);
        }

        .signal-league {
            margin-bottom: 0;
            padding-left: calc(var(--spacing-sm) * 0.78125);
        }
        .signal-legs {
            gap: calc(var(--spacing-sm) * 0.78125);
            margin-bottom: 0;
            display: flex;
            flex-direction: row;
            flex: 1;
        }
        .leg {
            padding: calc(var(--spacing-md) * 0.78125) ;
        }
        .leg-label {
            margin-bottom: calc(var(--spacing-sm) * 0.78125);
        }
        .leg-casa {
            margin-bottom: calc(var(--spacing-xs) * 0.78125);
        }
        .leg-odd {
            margin-bottom: calc(var(--spacing-xs) * 0.78125);
        }
        .leg-selection {
            margin-bottom: calc(var(--spacing-sm) * 0.78125);
        }
        .leg-link {
            padding: calc(var(--spacing-xs) * 0.78125) calc(var(--spacing-sm) * 0.78125);
            font-size: calc(var(--text-xs) * 0.78125);
        }
        .signal-footer {
            padding-top: 0;
            border-top: none;
            padding-left: calc(var(--spacing-md) * 0.78125);
            border-left: 1px solid var(--border-dark);
            min-width: 109px;
            flex-shrink: 0;
        }

        body.light .signal-footer {
            border-left-color: var(--border-light);
        }

        .results-header {
            display: flex;
            align-items: center;
        }

        .results-controls {
            display: inline-flex;
            align-items: center;
            gap: var(--spacing-sm);
            margin-left: auto;
        }

        .sort-control {
            display: inline-flex;
            align-items: center;
            gap: var(--spacing-xs);
        }

        .filters-dropdown {
            position: relative;
        }

        .filters-button {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 6px 12px;
            border-radius: var(--radius-sm);
            border: 1px solid var(--border-dark);
            background: var(--glass-dark);
            color: var(--text-dark);
            font-size: 13px;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .filters-button:hover {
            transform: translateY(-1px);
            box-shadow: 0 6px 18px var(--shadow-dark);
        }

        body.light .filters-button {
            border-color: var(--border-light);
            background: var(--glass-light);
            color: var(--text-light);
        }

        .filters-button svg {
            width: 14px;
            height: 14px;
            fill: currentColor;
        }

        .checkbox-item.priority-item {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .checkbox-item.priority-item label {
            flex: 1;
        }

        .casa-priority-select {
            min-width: 40px;
            padding: 4px 6px;
            border-radius: var(--radius-sm);
            border: 1px solid var(--border-dark);
            background: var(--glass-dark);
            color: var(--text-dark);
            font-size: 12px;
            font-weight: 700;
            cursor: pointer;
        }

        body.light .casa-priority-select {
            border-color: var(--border-light);
            background: var(--glass-light);
            color: var(--text-light);
        }

        .filters-menu {
            position: fixed;
            inset: 0;
            display: none;
            padding: calc(var(--spacing-xl) * 1.1);
            background: rgba(5, 8, 16, 0.7);
            backdrop-filter: blur(6px);
            z-index: 9999;
            overflow: auto;
        }

        .filters-menu .filters-panel {
            position: relative;
            width: min(720px, 92vw);
            max-height: none;
            overflow: auto;
            margin: 0 auto;
            padding: calc(var(--spacing-xl) * 1.25);
            border-radius: var(--radius-xl);
            border: 1px solid var(--border-dark);
            background: var(--card-dark);
            box-shadow: 0 20px 60px var(--shadow-dark);
        }

        .filters-modal-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: var(--spacing-md);
            margin-bottom: var(--spacing-md);
        }

        .filter-section-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: var(--spacing-sm);
            margin-bottom: var(--spacing-sm);
        }

        .filter-actions {
            display: inline-flex;
            align-items: center;
            gap: 6px;
        }

        .filter-action-btn {
            padding: 4px 8px;
            border-radius: var(--radius-sm);
            border: 1px solid var(--border-dark);
            background: rgba(255, 255, 255, 0.06);
            color: var(--text-secondary-dark);
            font-size: 11px;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .filter-action-btn:hover {
            transform: translateY(-1px);
            box-shadow: 0 4px 12px var(--shadow-dark);
        }

        body.light .filter-action-btn {
            border-color: var(--border-light);
            background: rgba(0, 0, 0, 0.04);
            color: var(--text-secondary-light);
        }

        .sound-toggles-container {
            display: flex;
            flex-direction: column;
            gap: var(--spacing-sm);
            margin-top: var(--spacing-sm);
        }

        .filters-close {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            border: 1px solid var(--border-dark);
            background: transparent;
            color: var(--text-dark);
            font-size: 18px;
            font-weight: 700;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s ease;
        }

        .filters-close:hover {
            transform: translateY(-1px);
            box-shadow: 0 6px 16px var(--shadow-dark);
        }

        body.light .filters-close {
            border-color: var(--border-light);
            color: var(--text-light);
        }

        .panel {
            overflow: visible;
        }

        .filters-menu.open {
            display: block;
        }

        body.light .filters-menu {
            background: rgba(255, 255, 255, 0.65);
        }

        body.light .filters-menu .filters-panel {
            border-color: var(--border-light);
            background: var(--card-light);
            box-shadow: 0 20px 60px var(--shadow-light);
        }

        body.light .filters-menu {
            border-color: var(--border-light);
            background: var(--card-light);
            box-shadow: 0 15px 40px var(--shadow-light);
        }
/* ===== Converter Freebet ===== */
.freebet-page {
    margin: 0 auto;
}


.quiz-header {
    text-align: center;
    margin-bottom: 16px;
}

.quiz-title {
    margin: 0 0 6px;
    color: var(--text-main);
    font-size: 22px;
    font-weight: 700;
}

.quiz-subtitle {
    margin: 0;
    color: var(--text-muted);
    font-size: 13px;
}

.progress-container {
    margin-bottom: 16px;
}

.progress-steps {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.progress-step {
    flex: 1;
    text-align: center;
    position: relative;
}

.progress-step::before {
    content: '';
    position: absolute;
    top: 14px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--border);
    z-index: 0;
}

.progress-step:first-child::before { left: 50%; }
.progress-step:last-child::before { right: 50%; }

.progress-step-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    border: 1px solid #334155;
    background: rgba(15, 23, 42, .55);
    color: var(--text-muted);
    position: relative;
    z-index: 1;
}

.progress-step-label {
    display: block;
    margin-top: 6px;
    font-size: 11px;
    color: var(--text-low);
    font-weight: 600;
}

.progress-step.active .progress-step-circle,
.progress-step.completed .progress-step-circle {
    border-color: #fb923c;
    background: rgba(249, 115, 22, .18);
    color: #fdba74;
}

.progress-step.active .progress-step-label {
    color: #fdba74;
}

.quiz-content {
    min-height: 280px;
}

.bookmaker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}

.bookmaker-card {
    border: 1px solid #334155;
    border-radius: 10px;
    padding: 12px;
    background: rgba(15, 23, 42, .45);
    cursor: pointer;
    text-align: center;
    transition: .2s ease;
}

.bookmaker-card:hover {
    border-color: #fb923c;
    transform: translateY(-1px);
}

.bookmaker-card.selected {
    border-color: #fb923c;
    background: rgba(249, 115, 22, .14);
}

.bookmaker-name {
    color: var(--text-main);
    font-size: 13px;
    font-weight: 700;
}

.value-input-container {
    max-width: 420px;
    margin: 0 auto 14px;
}

.value-input-label {
    display: block;
    text-align: center;
    color: var(--text-main);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 8px;
}

.value-input-wrapper {
    position: relative;
}

.value-input-prefix {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #fb923c;
    font-size: 18px;
    font-weight: 700;
}

.value-input {
    width: 100%;
    border: 1px solid #334155;
    border-radius: 10px;
    background: rgba(15, 23, 42, .45);
    color: var(--text-main);
    font-size: 20px;
    font-weight: 700;
    text-align: center;
    padding: 12px 14px;
}

.value-input:focus {
    outline: none;
    border-color: #fb923c;
    box-shadow: 0 0 0 3px rgba(251, 146, 60, .18);
}

.value-suggestions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 8px;
}

.value-suggestion {
    border: 1px solid #334155;
    background: rgba(15, 23, 42, .45);
    color: #cbd5e1;
    border-radius: 8px;
    padding: 5px 9px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.value-suggestion:hover,
.value-suggestion.selected {
    border-color: #fb923c;
    color: #fff;
    background: rgba(249, 115, 22, .2);
}

.quiz-actions {
    margin-top: 14px;
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.filters-bar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.filters-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filters-dropdown-group {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.filter-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.filter-label {
    color: var(--text-low);
    font-size: 11px;
    font-weight: 700;
}

.filter-control {
    min-width: 148px;
    border: 1px solid #334155;
    border-radius: 8px;
    background: rgba(15, 23, 42, .45);
    color: var(--text-main);
    padding: 7px 9px;
    font-size: 12px;
}

.results-container-resultado {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 10px;
}

.result-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px;
    position: relative;
}

.result-card-header {
    border-bottom: 1px solid var(--border);
    padding-bottom: 8px;
    margin-bottom: 8px;
}

.result-event-name a {
    color: var(--text-main);
    font-weight: 700;
    text-decoration: none;
}

.result-event-meta {
    color: var(--text-low);
    font-size: 12px;
    margin-bottom: 8px;
}

.result-strategy {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.result-bet-row {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    border: 1px solid #334155;
    border-radius: 8px;
    padding: 8px;
    background: rgba(15, 23, 42, .35);
}

.result-bet-row.freebet {
    border-left: 3px solid #f59e0b;
}

.result-bet-label { color: var(--text-main); font-weight: 700; font-size: 12px; }
.result-bet-details { color: #cbd5e1; font-size: 12px; }
.result-bet-house { color: #cbd5e1; font-weight: 700; text-decoration: none; }
.result-bet-house:hover { color: #fff; text-decoration: underline; }
.result-bet-stake { color: var(--text-main); font-weight: 700; font-size: 12px; }

.result-summary {
    margin-top: 8px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.result-summary-item {
    border: 1px solid #334155;
    border-radius: 8px;
    padding: 8px;
    background: rgba(15, 23, 42, .35);
}

.result-summary-label { color: var(--text-low); font-size: 11px; }
.result-summary-value { color: var(--text-main); font-size: 14px; font-weight: 700; }
.result-summary-value.profit { color: #34d399; }

@media (max-width: 900px) {
    .progress-steps { gap: 4px; }
    .progress-step-label { font-size: 10px; }
    .filters-bar { flex-direction: column; align-items: stretch; }
    .filters-group,
    .filters-dropdown-group { width: 100%; }
}

