/* Reset e Configurações Base - v2.0 - FIX BOTÕES */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #000000;
    --secondary-color: #64748B;
    --accent-color: #2563EB;
    --success-color: #10B981;
    --danger-color: #EF4444;
    --background: #FAFAFA;
    --surface: #FFFFFF;
    --border: #E2E8F0;
    --border-light: #F1F5F9;
    --text-primary: #0F172A;
    --text-secondary: #64748B;
    --text-muted: #94A3B8;
    --sim-color: #10B981;
    --nao-color: #3B82F6;
    --nao-bg: rgba(59, 130, 246, 0.04);
    --nao-bg-strong: rgba(59, 130, 246, 0.08);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.08);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header e Navegação */
header {
    background: #1A2332;
    border-bottom: 1px solid #242D3D;
    position: sticky;
    top: 0;
    z-index: 200;
}

.navbar {
    padding: 16px 0;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 40px;
    flex: 1;
}

/* Hamburger: oculto no desktop */
.nav-toggle {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    color: rgba(255,255,255,0.9);
    border-radius: 8px;
    transition: background 0.2s ease;
}
.nav-toggle:hover {
    background: rgba(255,255,255,0.1);
}
.nav-toggle-bar {
    display: block;
    width: 22px;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Drawer no desktop: comporta-se como linha (nav-links + nav-right) */
.nav-drawer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
    gap: 24px;
}

.nav-overlay {
    display: none;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    height: 40px;
}

.logo-image {
    height: 32px;
    width: auto;
    display: block;
    transition: all 0.2s ease;
}

.logo:hover .logo-image {
    opacity: 0.85;
    transform: scale(1.02);
}

.nav-links {
    display: flex;
    gap: 24px;
}

.nav-link {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
    padding: 6px 12px;
    border-radius: 6px;
}

.nav-link:hover {
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.08);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Language Selector */
.lang-selector {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-right: 16px;
    padding-right: 16px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.lang-flag {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: transparent;
    transition: all 0.15s ease;
    text-decoration: none;
    opacity: 0.65;
}

.lang-flag:hover {
    opacity: 0.95;
    background: rgba(255, 255, 255, 0.08);
}

.lang-flag.active {
    opacity: 1;
    background: rgba(255, 255, 255, 0.15);
}

.lang-flag svg {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    overflow: hidden;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.saldo {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

.saldo strong {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
}

/* User dropdown (submenu no nome logado) */
.user-dropdown {
    position: relative;
    z-index: 201;
}

.user-dropdown-trigger {
    text-decoration: none;
    font-family: inherit;
    cursor: pointer;
}

.user-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    min-width: 200px;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    z-index: 1000;
}

.user-dropdown-menu-cards {
    min-width: 0;
    padding: 16px;
    width: 280px;
}

.user-dropdown:hover .user-dropdown-menu,
.user-dropdown.open .user-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-menu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.user-menu-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-decoration: none;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    padding: 14px 10px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    color: #0F172A;
}

.user-menu-card:hover {
    border-color: #CBD5E1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    background: #F8FAFC;
}

.user-menu-card-icon {
    width: 28px;
    height: 28px;
    margin-bottom: 8px;
    color: #64748B;
    flex-shrink: 0;
}

.user-menu-card:hover .user-menu-card-icon {
    color: #0F172A;
}

.user-menu-card-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.user-menu-card-label {
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    line-height: 1.3;
}

.user-menu-card-logout .user-menu-card-icon {
    color: #64748B;
}

.user-menu-card-logout:hover {
    border-color: #FECACA;
    background: #FEF2F2;
}

.user-menu-card-logout:hover .user-menu-card-icon,
.user-menu-card-logout:hover .user-menu-card-label {
    color: #EF4444;
}

.user-dropdown-item {
    display: block;
    padding: 10px 18px;
    font-size: 14px;
    color: #0F172A;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.user-dropdown-item:hover {
    background: #F8FAFC;
    color: #000000;
}

.user-dropdown-divider {
    height: 1px;
    background: #E2E8F0;
    margin: 6px 0;
}

.user-dropdown-logout {
    color: #64748B;
}

.user-dropdown-logout:hover {
    color: #EF4444;
    background: #FEF2F2;
}

.auth-links {
    display: flex;
    gap: 12px;
}

/* Admin badge (bolinha vermelha sem número no header) */
.admin-link-with-badge {
    position: relative;
}
.admin-badge-dot {
    position: absolute;
    top: 2px;
    right: 4px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #EF4444;
    box-shadow: 0 0 0 2px #1A2332;
}

/* Admin breadcrumb */
.admin-breadcrumb {
    font-size: 14px;
    color: #64748B;
    margin-bottom: 20px;
}
.admin-breadcrumb-link {
    color: #2563EB;
    text-decoration: none;
}
.admin-breadcrumb-link:hover {
    text-decoration: underline;
}
.admin-breadcrumb-sep {
    margin: 0 8px;
    color: #94A3B8;
}
.admin-breadcrumb-current {
    color: #0F172A;
    font-weight: 500;
}

/* Botões */
.btn-primary, .btn-secondary {
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background: #1E293B;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--surface);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--border-light);
    border-color: var(--text-muted);
}

/* Botões na navbar com fundo preto */
header .btn-secondary {
    background: transparent;
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 13px;
    padding: 8px 14px;
}

header .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.25);
    transform: none;
}

header .btn-primary {
    background: #FFFFFF;
    color: #000000;
    font-size: 13px;
    padding: 8px 16px;
}

header .btn-primary:hover {
    background: #F1F5F9;
    transform: none;
    box-shadow: none;
}

.btn-block {
    width: 100%;
}

/* Main Content */
main {
    min-height: calc(100vh - 140px);
    padding: 48px 0;
}

/* Home Header */
.home-header {
    text-align: center;
    margin-bottom: 40px;
}

.home-header h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
    color: var(--text-primary);
}

.subtitle {
    font-size: 15px;
    color: var(--text-muted);
    font-weight: 400;
}

/* Filtros de Categoria */
.category-filter {
    display: flex;
    gap: 8px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.category-btn {
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    color: var(--text-secondary);
    background: var(--surface);
    border: 1px solid var(--border);
    transition: all 0.2s ease;
}

.category-btn:hover {
    color: var(--text-primary);
    border-color: var(--text-muted);
    background: var(--surface);
}

.category-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

/* Filtro "Encerrando em 24h" – tom pastel vermelho */
.category-btn-24h {
    background: rgba(239, 154, 154, 0.35);
    border-color: rgba(239, 154, 154, 0.6);
    color: #b71c1c;
}
.category-btn-24h:hover {
    background: rgba(239, 154, 154, 0.5);
    border-color: rgba(239, 154, 154, 0.8);
    color: #8b0000;
}
.category-btn-24h.active {
    background: rgba(198, 40, 40, 0.45);
    border-color: rgba(198, 40, 40, 0.7);
    color: #fff;
    box-shadow: 0 1px 3px rgba(198, 40, 40, 0.25);
}

/* Filtro de Subcategorias (Regiões) */
.subcategory-filter {
    margin-top: -16px;
    margin-bottom: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.subcategory-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-right: 8px;
    align-self: center;
}

/* Grid de Eventos */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.event-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    transition: all 0.25s ease;
    position: relative;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

.event-card:hover {
    border-color: var(--border);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

/* Card de evento encerrado (listagem) */
.event-card-encerrado {
    border-left: 4px solid var(--text-muted);
}

.event-card-encerrado .event-resultado-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 8px;
}

.event-card-encerrado .event-encerrado-data {
    margin: 0 0 12px 0;
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

.event-card-encerrado .event-ver-detalhes {
    margin: 16px 0 0 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-color);
}

.event-card-encerrado .event-ver-detalhes:hover {
    text-decoration: underline;
}

.event-card-content {
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Botão de Seguir Evento */
.btn-follow-event {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid var(--border);
    background: var(--background);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: visible;
}

.btn-follow-event .icon-follow {
    font-size: 20px;
    font-weight: 600;
    line-height: 1;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.btn-follow-event::after {
    content: 'Seguir evento';
    position: absolute;
    white-space: nowrap;
    right: 40px;
    top: 50%;
    transform: translateY(-50%) translateX(-10px);
    background: var(--primary-color);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.btn-follow-event:hover {
    transform: scale(1.15);
    border-color: var(--primary-color);
    background: var(--primary-color);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    animation: pulseHover 0.6s ease;
}

.btn-follow-event:hover::after {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

.btn-follow-event:hover .icon-follow {
    color: white;
    transform: rotate(90deg);
}

@keyframes pulseHover {
    0%, 100% {
        transform: scale(1.15);
    }
    50% {
        transform: scale(1.25);
    }
}

.btn-follow-event:active {
    transform: scale(0.95) rotate(90deg);
}

/* Estado quando já está seguindo */
.btn-follow-event.following {
    border-color: var(--success-color);
    background: var(--success-color);
}

.btn-follow-event.following .icon-follow {
    color: white;
}

.btn-follow-event.following::after {
    content: 'Remover evento';
}

.btn-follow-event.following:hover {
    border-color: var(--danger-color);
    background: var(--danger-color);
    transform: scale(1.15);
}

.btn-follow-event.following:hover .icon-follow {
    transform: rotate(-90deg);
}

/* Botão desabilitado quando não logado */
.btn-follow-event.disabled,
.btn-follow-event:disabled {
    opacity: 0.4;
    cursor: pointer;
    pointer-events: auto;
}

.btn-follow-event.disabled:hover,
.btn-follow-event:disabled:hover {
    transform: none;
    border-color: var(--border);
    background: var(--background);
    opacity: 0.5;
}

.btn-follow-event.disabled .icon-follow,
.btn-follow-event:disabled .icon-follow {
    color: var(--text-secondary);
    opacity: 0.6;
}

/* Botão de Remover Evento (Meus Eventos) */
/* Botão Remover Evento - Minimalista */
.btn-remove-event {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 100;
    opacity: 0.4;
}

.btn-remove-event .icon-remove {
    width: 16px;
    height: 16px;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.btn-remove-event:hover {
    opacity: 1;
    background: rgba(227, 27, 35, 0.08);
    transform: scale(1.05);
}

.btn-remove-event:hover .icon-remove {
    color: var(--danger-color);
}

.btn-remove-event:active {
    transform: scale(0.95);
}

.btn-remove-event:disabled {
    cursor: not-allowed;
    opacity: 0.3;
}

/* Animação de pulso ao adicionar */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

.btn-follow-event.pulse {
    animation: pulse 0.4s ease;
}

.event-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-right: 50px; /* Espaço apenas no header para não sobrepor o botão */
}

.event-category-region {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.event-category {
    color: var(--accent-color);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(37, 99, 235, 0.08);
    padding: 4px 8px;
    border-radius: 4px;
}

.category-separator {
    color: var(--text-secondary);
    font-weight: 400;
}

.event-region {
    color: var(--text-secondary);
    font-weight: 500;
}

.event-date {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
}

.event-question {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.45;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Badge de evento bombando */
.hot-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    animation: pulse-fire 1.5s ease-in-out infinite;
    filter: drop-shadow(0 0 4px rgba(255, 100, 0, 0.6));
}

@@keyframes pulse-fire {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.15);
        opacity: 0.85;
    }
}

.event-description {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.event-stats {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
}

.stat-icon {
    width: 13px;
    height: 13px;
    color: #94a3b8;
    flex-shrink: 0;
}

.stat-value-footer {
    font-size: 12px;
    font-weight: 500;
    color: #475569;
}

.stat-label {
    color: var(--text-secondary);
}

.stat-item .stat-value {
    font-weight: 600;
    font-size: 14px;
}

.stat-item .stat-value-wrap {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.event-stats .hot-badge {
    margin-left: 0;
    font-size: 13px;
}

/* Opções de Aposta */
.event-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-bottom: 4px;
}

.event-close-date {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 4px;
    font-weight: 500;
}
.event-close-date-text.event-encerrado {
    color: var(--text-muted);
    font-style: italic;
}
.event-countdown {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #b71c1c;
    font-weight: 700;
    font-size: 14px;
    padding: 4px 10px;
    background: rgba(239, 154, 154, 0.35);
    border-radius: 8px;
    border: 1px solid rgba(239, 154, 154, 0.6);
}
.event-countdown-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #b71c1c;
    flex-shrink: 0;
}
.event-countdown-icon svg {
    width: 18px;
    height: 18px;
    display: block;
}
.event-countdown-timer {
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
}
/* Countdown na página de detalhes: alinhado à linha do "Criado em" */
.detail-countdown-wrap .event-countdown {
    padding: 2px 8px;
    font-size: 14px;
    line-height: 1.4;
    vertical-align: middle;
}
.detail-countdown-wrap .event-countdown-icon svg {
    width: 16px;
    height: 16px;
}

.option {
    padding: 14px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    transition: all 0.2s ease;
}

.option:hover {
    border-color: var(--border);
}

.option-sim {
    background: rgba(16, 185, 129, 0.04);
}

.option-nao {
    background: var(--nao-bg);
}

.option-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

/* Wrapper título + imagem no card */
.event-question-wrap {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 0;
}

/* Imagem do evento no card */
.event-card-img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid var(--border);
    margin-top: 2px;
}

/* Imagem por opção no card multi-opção */
.card-multi-img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid var(--border);
}

/* Imagem do evento na página de detalhes */
.detail-event-img {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border);
    float: right;
    margin: 0 0 8px 16px;
}

/* Imagem por opção na lista de detalhes */
.kalshi-opcao-img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid var(--border);
}

/* Campo de imagem nas linhas de opção do admin */
.opcao-imagem {
    max-width: 260px;
    font-size: 12px;
}

/* Card multi-opção na listagem */
.card-multi-opcoes {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 6px;
}

.card-multi-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}

.card-multi-row:last-of-type {
    border-bottom: none;
}

.card-multi-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.card-multi-nome {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.3;
    word-break: break-word;
}

.card-multi-bar-wrap {
    height: 3px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
}

.card-multi-bar {
    height: 100%;
    background: #22c55e;
    border-radius: 2px;
    min-width: 4px;
}

.card-multi-right {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.card-multi-odds {
    font-size: 12px;
    color: var(--text-secondary);
    min-width: 34px;
    text-align: right;
}

.card-multi-perc-pill {
    font-size: 12px;
    font-weight: 700;
    border-radius: 20px;
    padding: 2px 8px;
    min-width: 40px;
    text-align: center;
    color: #16a34a;
    border: 1.5px solid #22c55e;
    background: #f0fdf4;
}

.card-multi-bar { background: #22c55e; }

.card-multi-btns {
    display: flex;
    gap: 3px;
    flex-shrink: 0;
}

.card-multi-btn {
    border: none;
    border-radius: 6px;
    padding: 4px 9px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.15s;
}

.card-multi-btn:hover { opacity: 0.85; }

.card-multi-btn-yes {
    background: #22c55e;
    color: #fff;
}

.card-multi-btn-no {
    background: #ef4444;
    color: #fff;
}

.card-multi-mais {
    font-size: 12px;
    color: var(--text-secondary);
    margin: 6px 0 0 0;
    text-align: right;
}

.option-label {
    font-weight: 600;
    font-size: 13px;
}

.option-odds {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.option-price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    line-height: 1.1;
}

.option-mult {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 600;
}

.option-sim .option-label,
.option-sim .option-odds {
    color: var(--sim-color);
}

.option-nao .option-label,
.option-nao .option-odds {
    color: var(--nao-color);
}

.option-stats {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.option-bar {
    height: 4px;
    background: var(--border-light);
    border-radius: 2px;
    overflow: hidden;
}

.option-fill {
    height: 100%;
    transition: width 0.3s;
}

.option-sim .option-fill {
    background: var(--sim-color);
}

.option-nao .option-fill {
    background: var(--nao-color);
}

.option-details {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-secondary);
    flex-wrap: wrap;
    gap: 4px;
}

.option-participants {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    opacity: 0.8;
}

/* Autenticação */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 200px);
}

.auth-box {
    width: 100%;
    max-width: 420px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-lg);
}

.auth-box h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    text-align: center;
}

.auth-box .subtitle {
    text-align: center;
    margin-bottom: 32px;
    font-size: 16px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.form-control {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: inherit;
    transition: all 0.2s ease;
    background: var(--surface);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.checkbox-group {
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

.checkbox-group label {
    margin: 0;
    font-weight: 400;
}

.validation-summary,
.field-validation-error {
    color: var(--danger-color);
    font-size: 13px;
}

.validation-summary {
    padding: 12px;
    background: rgba(227, 27, 35, 0.1);
    border-radius: 8px;
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: var(--text-secondary);
}

.auth-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.auth-forgot {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    text-align: center;
}

.auth-forgot-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.auth-forgot-link:hover {
    color: var(--primary-color);
}

.auth-forgot-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 0.85;
}

.auth-forgot-link:hover .auth-forgot-icon {
    opacity: 1;
}

/* Página de Detalhes */
.detail-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}
/* Eventos multi-opção (layout estilo Kalshi): usa mais largura */
.detail-container--wide {
    max-width: 1280px;
}

.detail-header {
    margin-bottom: 32px;
}

.back-link {
    display: inline-block;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 16px;
}

.back-link:hover {
    color: var(--text-primary);
}

.detail-title h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.3;
    display: flex;
    align-items: center;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 24px;
    font-size: 14px;
    color: var(--text-secondary);
}
.detail-meta .detail-countdown-wrap,
.detail-meta .event-close-date-text {
    display: inline-flex;
    align-items: center;
}

/* Meta: datas em uma linha, mesma fonte */
.detail-meta-date {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
}

/* =============================================
   Timeline moderna: Abertura / Encerramento / Resolução
   ============================================= */
.evt-timeline-wrap {
    margin-top: 28px;
    margin-bottom: 40px;
}
.evt-timeline {
    display: flex;
    flex-direction: column;
    position: relative;
}
/* Linha vertical contínua atrás de tudo */
.evt-timeline::before {
    content: '';
    position: absolute;
    left: 21px;
    top: 22px;
    bottom: 22px;
    width: 2px;
    background: #e2e8f0;
    border-radius: 2px;
    z-index: 0;
}
/* Cada item */
.evt-tl-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    position: relative;
    padding-bottom: 12px;
}
.evt-tl-item:last-child {
    padding-bottom: 0;
}
/* Coluna do ícone */
.evt-tl-icon-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    width: 44px;
    position: relative;
    z-index: 1;
}
.evt-tl-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: #f1f5f9;
    border: 2px solid #cbd5e1;
    color: #94a3b8;
    transition: background 0.25s, border-color 0.25s, color 0.25s, box-shadow 0.25s;
}
.evt-tl-icon svg {
    width: 20px;
    height: 20px;
}
/* Conector escondido — a linha vem do ::before do pai */
.evt-tl-connector { display: none; }

/* Corpo: título + data + badge */
.evt-tl-body {
    flex: 1;
    padding: 12px 16px 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    transition: background 0.25s, border-color 0.25s;
    min-width: 0;
}
.evt-tl-title {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #94a3b8;
    margin-bottom: 4px;
    line-height: 1;
}
.evt-tl-title svg {
    opacity: 0.65;
    flex-shrink: 0;
    width: 12px;
    height: 12px;
}
.evt-tl-date {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
    line-height: 1.4;
}
.evt-tl-time {
    font-size: 14px;
    font-weight: 400;
    color: #64748b;
    margin-left: 2px;
}
.evt-tl-pending {
    color: #d1d5db;
    font-size: 14px;
    font-weight: 400;
    margin-bottom: 8px;
    display: block;
}
.evt-tl-badge {
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    letter-spacing: 0.03em;
    line-height: 1.4;
}
.evt-tl-badge-done {
    background: #dcfce7;
    color: #15803d;
}
.evt-tl-badge-active {
    background: #eff6ff;
    color: #2563eb;
}

/* Estado: concluído */
.evt-tl-item.evt-tl-done .evt-tl-icon {
    background: #22c55e;
    border-color: #16a34a;
    color: #fff;
    box-shadow: 0 0 0 4px rgba(34,197,94,0.12);
}
.evt-tl-item.evt-tl-done .evt-tl-body {
    background: #f0fdf4;
    border-color: #bbf7d0;
}
.evt-tl-item.evt-tl-done .evt-tl-title {
    color: #16a34a;
}
.evt-tl-item.evt-tl-done .evt-tl-date {
    color: #166534;
}
.evt-tl-item.evt-tl-done .evt-tl-time {
    color: #4ade80;
}

/* Estado: em andamento */
.evt-tl-item.evt-tl-active .evt-tl-icon {
    background: #fff;
    border-color: #3b82f6;
    color: #2563eb;
    box-shadow: 0 0 0 4px rgba(59,130,246,0.1);
}
.evt-tl-item.evt-tl-active .evt-tl-body {
    background: #f8faff;
    border-color: #bfdbfe;
}
.evt-tl-item.evt-tl-active .evt-tl-title {
    color: #2563eb;
}
.evt-tl-item.evt-tl-active .evt-tl-date {
    color: #1e40af;
}
.evt-tl-item.evt-tl-active .evt-tl-time {
    color: #60a5fa;
}

/* Linha vertical: trecho verde quando o item acima está concluído */
.evt-tl-item.evt-tl-done + .evt-tl-item::before {
    content: '';
    position: absolute;
    left: 21px;
    top: -12px;
    height: 12px;
    width: 2px;
    background: #86efac;
    z-index: 0;
}

/* Mobile */
@media (max-width: 568px) {
    .evt-timeline::before {
        left: 18px;
    }
    .evt-tl-icon {
        width: 38px;
        height: 38px;
    }
    .evt-tl-icon svg {
        width: 17px;
        height: 17px;
    }
    .evt-tl-icon-col {
        width: 38px;
    }
    .evt-tl-item.evt-tl-done + .evt-tl-item::before {
        left: 18px;
    }
    .evt-tl-body {
        padding: 10px 14px 12px;
    }
    .evt-tl-title  { font-size: 11px; }
    .evt-tl-date   { font-size: 13px; }
    .evt-tl-time   { font-size: 13px; }
    .evt-tl-badge  { font-size: 11px; }
}

.follow-section {
    margin-bottom: 32px;
}

/* Gráfico de variação dos percentuais (desde o lançamento) */
.grafico-variacao-section {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    margin-bottom: 32px;
    box-shadow: var(--shadow-sm);
}

.grafico-variacao-titulo {
    margin: 0 0 12px;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.grafico-variacao-filtros {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.grafico-filtro {
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--background);
    color: var(--text-secondary);
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.grafico-filtro:hover {
    background: var(--surface);
    color: var(--text-primary);
    border-color: var(--text-muted);
}

.grafico-filtro.active {
    background: var(--accent-color);
    color: #fff;
    border-color: var(--accent-color);
}

.grafico-variacao-wrap {
    height: 220px;
    position: relative;
}

.grafico-variacao-legend {
    margin: 12px 0 0;
    font-size: 13px;
    color: var(--text-secondary);
}

.grafico-variacao-legend .legenda-sim { color: #22c55e; }
.grafico-variacao-legend .legenda-nao { color: #ef4444; }

.grafico-sem-dados {
    margin: 0;
    padding: 24px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
}

/* Seção de Apostas */
.betting-section {
    margin-bottom: 48px;
}

.betting-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.betting-binary-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    width: 100%;
    grid-column: 1 / -1;
}

.betting-card {
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.betting-sim {
    border-color: var(--sim-color);
}

.betting-nao {
    border-color: var(--nao-color);
}

.betting-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.betting-header h2 {
    font-size: 24px;
    font-weight: 700;
}

.betting-sim h2 {
    color: var(--sim-color);
}

.betting-nao h2 {
    color: var(--nao-color);
}

.betting-odds {
    font-size: 28px;
    font-weight: 700;
}

.betting-price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    line-height: 1.1;
}

.betting-price-main {
    font-size: 28px;
    font-weight: 800;
}

.betting-price-sub {
    font-size: 13px;
    color: var(--text-secondary);
}

.muted {
    color: var(--text-secondary);
}

.small {
    font-size: 12px;
}

.return-lines {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.taxa-linha {
    font-size: 12px;
    color: var(--text-secondary);
}

.taxa-valor {
    color: #e53e3e;
    font-weight: 600;
}

.lucro-liq-linha {
    font-size: 13px;
    font-weight: 600;
    border-top: 1px solid var(--border);
    padding-top: 4px;
    margin-top: 2px;
}

.lucro-liq-valor {
    color: #38a169;
}

.betting-stats {
    margin-bottom: 16px;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
}

.stat-row span:first-child {
    color: var(--text-secondary);
}

.stat-row span:last-child {
    font-weight: 600;
}

.betting-bar {
    height: 8px;
    background: var(--surface);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 20px;
}

.betting-fill {
    height: 100%;
    transition: width 0.3s;
}

.betting-sim .betting-fill {
    background: var(--sim-color);
}

.betting-nao .betting-fill {
    background: var(--nao-color);
}

.betting-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.bet-input {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
}

.btn-bet {
    width: 100%;
}

.bet-return {
    text-align: center;
    font-size: 14px;
    color: var(--text-secondary);
}

.bet-return span {
    font-weight: 700;
    color: var(--text-primary);
}

.login-prompt {
    text-align: center;
    padding: 48px;
    background: var(--surface);
    border-radius: 12px;
}

.login-prompt p {
    margin-bottom: 20px;
    font-size: 16px;
    color: var(--text-secondary);
}

.login-prompt .btn-primary,
.login-prompt .btn-secondary {
    margin: 0 8px;
}

/* Minhas Apostas no Evento */
.my-bets-section {
    background: var(--surface);
    border-radius: 12px;
    padding: 24px;
}

.my-bets-section h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
}

.bets-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bet-item {
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.bet-info {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    align-items: center;
    font-size: 14px;
    width: 100%;
}

.bet-date {
    font-size: 12px;
    color: var(--text-secondary);
    width: 100%;
    text-align: right;
}

.bet-type {
    padding: 4px 12px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 12px;
    white-space: normal;
    word-break: break-word;
}

.bet-sim {
    background: rgba(0, 182, 122, 0.1);
    color: var(--sim-color);
}

.bet-nao {
    background: var(--nao-bg-strong);
    color: var(--nao-color);
}

.bet-date {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Perfil */
.profile-container {
    max-width: 800px;
    margin: 0 auto;
}

.profile-header {
    margin-bottom: 24px;
}

.profile-header h1 {
    font-size: 32px;
    font-weight: 700;
}

/* Abas do Perfil */
.profile-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    border-bottom: 2px solid var(--border);
}

.profile-tab {
    padding: 12px 24px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all 0.2s ease;
    margin-bottom: -2px;
}

.profile-tab:hover {
    color: var(--text-primary);
    background: var(--hover-bg);
}

.profile-tab.active {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Modal de Alterar Senha */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal-overlay.show {
    display: flex;
}

/* Overlay "Carregando..." ao abrir página de detalhes do contrato */
.loading-detalhes-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.loading-detalhes-box {
    background: var(--surface, #fff);
    border-radius: 16px;
    padding: 32px 40px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}
.loading-detalhes-spinner {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    border: 4px solid rgba(0, 0, 0, 0.08);
    border-top-color: var(--accent-color, #2563eb);
    border-radius: 50%;
    animation: loading-detalhes-spin 0.9s linear infinite;
}
@keyframes loading-detalhes-spin {
    to { transform: rotate(360deg); }
}
.loading-detalhes-text {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary, #1e293b);
}

.modal-container {
    background: var(--surface);
    border-radius: 16px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-header {
    padding: 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h2 {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 32px;
    line-height: 1;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: var(--hover-bg);
    color: var(--text-primary);
}

.modal-body {
    padding: 24px;
}

.modal-subtitle {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 24px;
}

.modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.modal-actions button {
    flex: 1;
}

.profile-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

.profile-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.info-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.info-label {
    font-size: 14px;
    color: var(--text-secondary);
}

.info-value {
    font-size: 16px;
    font-weight: 600;
}

.saldo-destaque {
    color: var(--success-color);
    font-size: 20px;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--surface);
    border-radius: var(--radius-md);
    padding: 20px;
    text-align: center;
    border: 1px solid var(--border-light);
}

.stat-card h3 {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
}

.profile-actions {
    display: flex;
    gap: 16px;
}

.profile-actions a {
    flex: 1;
}

.profile-add-credit-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.profile-add-credit-text {
    margin: 0;
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Formulário de Alterar Senha */
.change-password-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.change-password-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.change-password-form .form-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.change-password-form .form-control {
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.2s ease;
    font-family: inherit;
}

.change-password-form .form-control:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.change-password-form .form-help {
    font-size: 12px;
    color: var(--text-secondary);
}

.change-password-form .form-actions {
    margin-top: 8px;
}

.topup-page-header .topup-balance {
    margin-top: 8px;
    font-size: 1rem;
    color: var(--text-secondary);
}

.topup-page-header .topup-balance strong {
    color: var(--success-color);
}

/* Alertas do Perfil */
.profile-alert {
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 16px;
    border: 1px solid var(--border);
    font-size: 14px;
    font-weight: 600;
}

.profile-alert-success {
    background: rgba(0, 182, 122, 0.08);
    border-color: rgba(0, 182, 122, 0.25);
    color: var(--success-color);
}

.profile-alert-error {
    background: rgba(227, 27, 35, 0.08);
    border-color: rgba(227, 27, 35, 0.25);
    color: var(--danger-color);
}

/* Adicionar créditos (demo) */
.topup-header h2 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
}

.topup-subtitle {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 18px;
}

.topup-layout {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 24px;
    align-items: start;
}

.topup-left,
.topup-right {
    min-width: 0;
}

.topup-form {
    min-width: 0;
}

.topup-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.topup-field.span-2 {
    grid-column: 1 / -1;
}

.topup-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.topup-row-inline {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.topup-field-small {
    width: 140px;
}

.topup-field-cvv {
    width: 120px;
}

.topup-field-cvv .topup-note {
    margin-top: 4px;
}

.topup-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.topup-input {
    width: 100%;
    height: 44px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--surface);
    padding: 0 12px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.topup-input[type="number"] {
    appearance: textfield;
}

.topup-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.12);
}

.topup-note {
    color: var(--text-secondary);
    font-size: 12px;
}

.topup-hints {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    max-width: 100%;
}

.pill {
    border: 1px solid var(--border);
    background: var(--background);
    color: var(--text-primary);
    height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
}

.pill:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.topup-seg {
    display: flex;
    gap: 10px;
}

.seg-option {
    flex: 1;
    position: relative;
    cursor: pointer;
    display: block;
}

.seg-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.seg-box {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 44px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--surface);
    font-weight: 700;
    font-size: 13px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.seg-option input:checked + .seg-box {
    border-color: rgba(0, 122, 255, 0.55);
    background: rgba(0, 122, 255, 0.08);
    color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.10);
}

.seg-option:hover {
    opacity: 0.98;
}

.topup-actions {
    margin-top: 18px;
    display: flex;
    justify-content: flex-end;
}

/* Destino abaixo do cartão */
.destino-card {
    margin-top: 14px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--background);
    padding: 14px;
}

.destino-title {
    font-size: 12px;
    font-weight: 800;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 10px;
}

.destino-note {
    font-size: 13px;
    color: var(--text-primary);
    line-height: 1.5;
}

/* Cartão virtual */
.card-virtual {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.96), rgba(15, 23, 42, 0.92));
    color: #fff;
}

.card-virtual-inner {
    padding: 18px 18px 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 220px;
}

.card-virtual-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-virtual-brand {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.card-virtual-brand .brand {
    font-weight: 900;
    letter-spacing: 1px;
    font-size: 16px;
}

.card-virtual-brand .demo {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.8px;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.card-virtual-chip {
    width: 44px;
    height: 34px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.16);
    display: grid;
    place-items: center;
}

.card-virtual-chip .chip {
    width: 26px;
    height: 20px;
    border-radius: 6px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.10));
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.card-virtual-number {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 18px;
    letter-spacing: 1px;
    opacity: 0.95;
}

.card-virtual-bottom {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 12px;
}

.card-virtual-name {
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    opacity: 0.95;
    max-width: 210px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.card-virtual-exp .label {
    font-size: 10px;
    letter-spacing: 0.8px;
    opacity: 0.7;
}

.card-virtual-exp .value {
    font-weight: 800;
    font-size: 12px;
    letter-spacing: 0.6px;
}

.card-virtual-hint {
    margin-top: auto;
    font-size: 12px;
    opacity: 0.7;
}

/* Histórico de créditos */
.creditos-table-wrap {
    overflow: auto;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--background);
}

.creditos-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 680px;
}

.creditos-table thead th {
    text-align: left;
    font-size: 12px;
    font-weight: 800;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
    background: var(--surface);
    position: sticky;
    top: 0;
}

.creditos-table tbody td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
    vertical-align: middle;
    color: var(--text-primary);
}

.creditos-table tbody tr:hover td {
    background: rgba(0, 0, 0, 0.02);
}

.creditos-table .mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 13px;
}

.creditos-table .valor {
    font-weight: 800;
}

.credito-status {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    border: 1px solid var(--border);
}

.credito-status.status-ok {
    background: rgba(0, 182, 122, 0.10);
    color: var(--success-color);
    border-color: rgba(0, 182, 122, 0.25);
}

.credito-status.status-warn {
    background: rgba(227, 27, 35, 0.10);
    color: var(--danger-color);
    border-color: rgba(227, 27, 35, 0.25);
}

.cartao-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.5px;
    margin-right: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
}

.creditos-vazio {
    border: 1px dashed var(--border);
    border-radius: 12px;
    padding: 18px;
    text-align: center;
    background: var(--background);
}

.creditos-vazio-title {
    font-weight: 900;
    margin-bottom: 6px;
}

.creditos-vazio-sub {
    color: var(--text-secondary);
    font-size: 13px;
}

/* Admin */
.admin-container {
    max-width: 900px;
    margin: 0 auto;
}

.admin-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.admin-field.span-2 {
    grid-column: 1 / -1;
}

.admin-label {
    font-size: 12px;
    font-weight: 800;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    display: block;
    margin-bottom: 8px;
}

.admin-help {
    color: var(--text-secondary);
    font-size: 12px;
    display: block;
    margin-top: 6px;
}

.admin-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
}

.admin-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.admin-checkbox label {
    margin: 0;
    font-weight: 600;
    cursor: pointer;
}

.admin-readonly {
    height: 44px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--surface);
    padding: 0 12px;
    display: flex;
    align-items: center;
    font-weight: 800;
}

.admin-actions {
    margin-top: 18px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.field-error {
    color: var(--danger-color);
    font-size: 12px;
    display: block;
    margin-top: 6px;
    font-weight: 700;
}

@media (max-width: 768px) {
    .admin-form-grid {
        grid-template-columns: 1fr;
    }

    .admin-actions {
        justify-content: stretch;
    }

    .admin-actions .btn-primary,
    .admin-actions .btn-secondary {
        width: 100%;
        text-align: center;
    }
}

/* Página de Lista */
.page-header {
    text-align: center;
    margin-bottom: 48px;
}

.page-header h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
}

.no-events {
    text-align: center;
    padding: 80px 20px;
}

.no-events p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

/* Admin Rascunho */
.admin-rascunho-page {
    max-width: 900px;
    margin: 0 auto;
}

.admin-rascunho-actions {
    margin-bottom: 28px;
}

.admin-rascunho-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.admin-rascunho-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.admin-rascunho-card:hover {
    box-shadow: var(--shadow-md);
}

.admin-rascunho-card-content {
    padding: 24px;
}

.admin-rascunho-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 13px;
    color: var(--text-muted);
}

.admin-rascunho-status {
    background: var(--background);
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 600;
    color: var(--text-secondary);
}

.admin-rascunho-date {
    color: var(--text-muted);
}

.admin-rascunho-pergunta {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
    line-height: 1.4;
}

.admin-rascunho-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 16px;
}

.admin-rascunho-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.admin-rascunho-encerra {
    font-size: 13px;
    color: var(--text-muted);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

/* Apostas Container */
.bets-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
}

.bet-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 22px;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: var(--shadow-sm);
}

.bet-card:hover {
    border-color: var(--border);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.bet-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.bet-type-badge {
    padding: 4px 12px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 12px;
}

.badge-sim {
    background: rgba(0, 182, 122, 0.1);
    color: var(--sim-color);
}

.badge-nao {
    background: var(--nao-bg-strong);
    color: var(--nao-color);
}

.bet-status {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 600;
}

.bet-question {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    line-height: 1.4;
}

.bet-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bet-detail-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}

.bet-detail-row .label {
    color: var(--text-secondary);
}

.bet-detail-row .value {
    font-weight: 600;
}

.bet-detail-row .value.highlight {
    color: var(--success-color);
}

/* Linha de posição destacada */
.bet-position-row {
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--border-light);
}

.position-value {
    font-weight: 700;
    font-size: 13px;
    padding: 4px 10px;
    border-radius: 6px;
}

.position-sim {
    background: rgba(16, 185, 129, 0.1);
    color: var(--sim-color);
}

.position-nao {
    background: rgba(59, 130, 246, 0.1);
    color: var(--nao-color);
}

/* Minhas Posições - Grid de pesquisa */
.posicoes-page {
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 48px;
}

.posicoes-header {
    margin-bottom: 24px;
}

.posicoes-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.posicoes-subtitle {
    font-size: 15px;
    color: var(--text-secondary);
}

.posicoes-grid-wrap {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.posicoes-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    border-bottom: 1px solid var(--border);
    background: var(--background);
}

.posicoes-tabs {
    display: flex;
    gap: 2px;
    flex-shrink: 0;
}

.posicoes-tab {
    padding: 7px 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    background: transparent;
    border: 1px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    transition: color 0.15s, background 0.15s, border-color 0.15s;
    white-space: nowrap;
}

.posicoes-tab:hover {
    color: var(--text-primary);
    background: var(--border-light);
}

.posicoes-tab.active {
    color: var(--text-primary);
    background: var(--surface);
    border-color: var(--border);
}

.posicoes-search-wrap {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1;
}

.posicoes-search-flex {
    flex: 1;
}

.posicoes-search-icon {
    position: absolute;
    left: 12px;
    font-size: 14px;
    color: var(--text-muted);
    pointer-events: none;
}

.posicoes-search-input {
    width: 100%;
    padding: 9px 14px 9px 38px;
    font-size: 14px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--surface);
    color: var(--text-primary);
    transition: border-color 0.2s;
}

.posicoes-search-input::placeholder {
    color: var(--text-muted);
}

.posicoes-search-input:focus {
    outline: none;
    border-color: var(--accent-color);
}

.posicoes-th-info-wrap {
    position: static;
    display: inline-flex;
    vertical-align: middle;
    margin-left: 5px;
}

.posicoes-th-info {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1.5px solid var(--text-muted);
    background: transparent;
    color: var(--text-muted);
    font-size: 9px;
    font-weight: 600;
    font-style: italic;
    letter-spacing: 0;
    text-transform: none;
    cursor: help;
    transition: border-color 0.15s ease, color 0.15s ease;
    flex-shrink: 0;
}

.posicoes-th-info-wrap:hover .posicoes-th-info {
    border-color: var(--text-primary);
    color: var(--text-primary);
}

.posicoes-th-tooltip {
    position: fixed;
    padding: 8px 12px;
    background: var(--text-primary);
    color: #fff;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: 0;
    text-transform: none;
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    white-space: normal;
    max-width: 240px;
    width: max-content;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease, visibility 0.15s ease;
    z-index: 9999;
    pointer-events: none;
}

.posicoes-th-tooltip::before {
    content: "";
    position: absolute;
    left: 14px;
    bottom: 100%;
    border: 5px solid transparent;
    border-bottom-color: var(--text-primary);
}

.posicoes-th-info-wrap:hover .posicoes-th-tooltip {
    opacity: 1;
    visibility: visible;
}

.posicoes-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.posicoes-filter-btn:hover {
    border-color: var(--text-muted);
    background: var(--border-light);
}

.posicoes-filter-icon {
    font-size: 14px;
    color: var(--text-muted);
}

.posicoes-table-wrap {
    overflow-x: auto;
}

.posicoes-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.posicoes-table th {
    text-align: left;
    padding: 12px 20px;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--text-muted);
    background: var(--background);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
    overflow: visible;
}

.posicoes-table td {
    padding: 14px 20px;
    border-bottom: 1px solid var(--border-light);
    vertical-align: middle;
}

.posicoes-table tbody tr:hover {
    background: var(--background);
}

.posicoes-table .col-mercado {
    min-width: 260px;
}

.posicoes-table .col-preco,
.posicoes-table .col-investido,
.posicoes-table .col-aganhar {
    white-space: nowrap;
}

.aganhar-liquido {
    display: block;
    font-weight: 600;
}

.aganhar-taxa {
    display: block;
    font-size: 11px;
    color: #e53e3e;
    margin-top: 2px;
}

.posicoes-table .resultado-ganhou {
    display: block;
    font-weight: 600;
    color: var(--success-color);
}

.posicoes-table .resultado-perdeu {
    display: block;
    font-weight: 600;
    color: var(--danger-color);
}

.posicoes-table .resultado-recebido {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

.posicoes-table .valor-liquidado {
    display: block;
    font-weight: 600;
    color: var(--success-color);
}

.posicoes-table .valor-perdido {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
}

.posicoes-table .col-valor {
    min-width: 140px;
}

.posicoes-table .col-acoes {
    width: 1%;
    white-space: nowrap;
    padding-right: 20px;
}

.posicoes-mercado-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

.posicoes-mercado-link:hover .posicoes-mercado-titulo {
    color: var(--accent-color);
}

.posicoes-mercado-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

.posicoes-mercado-icon.icon-sim {
    background: rgba(16, 185, 129, 0.12);
    color: var(--sim-color);
}

.posicoes-mercado-icon.icon-nao {
    background: var(--nao-bg-strong);
    color: var(--nao-color);
}

.posicoes-mercado-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.posicoes-mercado-titulo {
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.35;
}

.posicoes-mercado-sub {
    font-size: 13px;
    color: var(--text-secondary);
}

.posicoes-mercado-sub .sim-label {
    color: var(--sim-color);
    font-weight: 600;
}

.posicoes-mercado-sub .nao-label {
    color: var(--nao-color);
    font-weight: 600;
}

.preco-range {
    color: var(--text-primary);
    font-weight: 500;
}

.posicoes-table .valor-atual {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
}

.posicoes-table .valor-variacao {
    display: block;
    font-size: 13px;
    margin-top: 2px;
}

.posicoes-table .valor-variacao.positivo {
    color: var(--success-color);
}

.posicoes-table .valor-variacao.negativo {
    color: var(--danger-color);
}

.btn-posicoes {
    display: inline-block;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
}

.btn-posicoes.btn-vender {
    background: var(--accent-color);
    color: #fff;
    border: none;
}

.btn-posicoes.btn-vender:hover {
    background: #1d4ed8;
    color: #fff;
}

@media (max-width: 768px) {
    .posicoes-toolbar {
        flex-wrap: wrap;
    }
    .posicoes-search-wrap {
        min-width: 0;
    }
    .posicoes-table th,
    .posicoes-table td {
        padding: 10px 12px;
        font-size: 13px;
    }
}

/* Seção de Regras */
.rules-section {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-top: 32px;
    overflow: hidden;
}

.rules-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-light);
    background: var(--background);
}

.rules-header h2 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
}

.rules-icon {
    width: 20px;
    height: 20px;
    color: var(--text-secondary);
}

.rules-content {
    padding: 24px;
}

.rules-text {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-secondary);
}

.rules-text p {
    margin: 0 0 12px 0;
}

.rules-text p:last-child {
    margin-bottom: 0;
}

.rules-text strong {
    color: var(--text-primary);
}

/* Seção de Discussão */
.discussion-section {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-top: 24px;
    overflow: hidden;
}

.discussion-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-light);
    background: var(--background);
}

.discussion-header h2 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
}

.discussion-icon {
    width: 20px;
    height: 20px;
    color: var(--text-secondary);
}

.comment-count {
    background: var(--border-light);
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 100px;
    margin-left: 4px;
}

/* Formulário de comentário */
.comment-form {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    gap: 14px;
}

.comment-form-avatar,
.comment-avatar {
    flex-shrink: 0;
}

.avatar-initials {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-color), #1d4ed8);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
}

.comment-form-input {
    flex: 1;
}

.comment-form-input textarea {
    resize: none;
    min-height: 80px;
    margin-bottom: 12px;
}

.comment-form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.char-count {
    font-size: 12px;
    color: var(--text-muted);
}

.btn-comment {
    padding: 8px 20px;
}

/* Login para comentar */
.login-to-comment {
    padding: 32px 24px;
    text-align: center;
    border-bottom: 1px solid var(--border-light);
}

.login-to-comment p {
    margin: 0 0 16px 0;
    color: var(--text-secondary);
    font-size: 14px;
}

/* Lista de comentários */
.comments-list {
    padding: 0;
}

.comment {
    display: flex;
    gap: 14px;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-light);
}

.comment:last-child {
    border-bottom: none;
}

.comment-content {
    flex: 1;
    min-width: 0;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.comment-author {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.comment-date {
    font-size: 12px;
    color: var(--text-muted);
}

.comment-text {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-primary);
    word-wrap: break-word;
}

.comment-actions {
    margin-top: 10px;
}

.btn-reply {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s;
}

.btn-reply:hover {
    background: var(--border-light);
    color: var(--text-primary);
}

/* Formulário de resposta */
.reply-form {
    margin-top: 14px;
    padding: 14px;
    background: var(--background);
    border-radius: var(--radius-sm);
}

.reply-input {
    resize: none;
    min-height: 60px;
    margin-bottom: 10px;
    font-size: 13px;
}

.reply-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.reply-form-actions button {
    padding: 6px 14px;
    font-size: 13px;
}

/* Respostas */
.replies {
    margin-top: 16px;
    padding-left: 0;
    border-left: 2px solid var(--border-light);
    margin-left: 18px;
}

.reply {
    padding: 14px 20px;
    border-bottom: none;
}

.reply .avatar-initials {
    width: 28px;
    height: 28px;
    font-size: 11px;
}

.reply .comment-text {
    font-size: 13px;
}

/* Nenhum comentário */
.no-comments {
    padding: 48px 24px;
    text-align: center;
    color: var(--text-muted);
}

.no-comments svg {
    margin-bottom: 12px;
    opacity: 0.4;
}

.no-comments p {
    margin: 0;
    font-size: 14px;
}

/* Ações Administrativas */
.admin-actions-section {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    margin-top: 24px;
    margin-bottom: 24px;
}

.admin-actions-section h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Evento Encerrado */
.evento-encerrado-section {
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    margin-top: 24px;
    margin-bottom: 24px;
    overflow: hidden;
}

.evento-encerrado-header {
    padding: 20px 24px;
    background: var(--background);
    border-bottom: 1px solid var(--border-light);
}

.evento-encerrado-header h2 {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
}

.evento-encerrado-header svg {
    color: var(--success-color);
}

.evento-resultado {
    padding: 24px;
    text-align: center;
}

.resultado-badge {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
}

.resultado-sim {
    background: rgba(16, 185, 129, 0.1);
    color: var(--sim-color);
    border: 2px solid var(--sim-color);
}

.resultado-nao {
    background: rgba(59, 130, 246, 0.1);
    color: var(--nao-color);
    border: 2px solid var(--nao-color);
}

.resultado-descricao {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

.resultado-descricao strong {
    color: var(--text-primary);
}

/* Evidências do Resultado (evento encerrado) */
.evidencias-section {
    margin: 0 24px 24px 24px;
    padding: 20px 24px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.06) 0%, rgba(16, 185, 129, 0.06) 100%);
    border: 2px solid rgba(37, 99, 235, 0.2);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--accent-color);
}

.evidencias-section h3 {
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 14px 0;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.evidencias-section h3 svg {
    color: var(--accent-color);
    flex-shrink: 0;
}

.evidencias-content {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-primary);
}

.evidencias-content a {
    color: var(--accent-color);
    text-decoration: underline;
}

.evidencias-content a:hover {
    text-decoration: none;
}

.evidencias-vazio {
    margin: 0;
    font-size: 14px;
    color: var(--text-muted);
    font-style: italic;
}

/* Participação desabilitada (evento encerrado) */
.betting-form-disabled {
    pointer-events: none;
    opacity: 0.85;
}

.betting-form-guest {
    opacity: 0.9;
}

.betting-section-guest .betting-card {
    cursor: default;
}

.betting-encerrado-msg {
    margin: 0;
    padding: 14px 16px;
    background: var(--border-light);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    text-align: center;
}

/* Modal encerrar - campo evidências */
.modal-encerrar .modal-content {
    max-width: 520px;
}

.modal-evidencia-box {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
}

.modal-evidencia-box label {
    display: block;
    font-size: 14px;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.modal-evidencia-box .label-opcional {
    font-weight: 400;
    color: var(--text-muted);
    font-size: 12px;
}

.modal-evidencia-box textarea {
    width: 100%;
    min-height: 120px;
    resize: vertical;
    margin-bottom: 8px;
}

.evidencia-hint {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Ganhadores */
.ganhadores-section {
    padding: 24px;
    border-top: 1px solid var(--border-light);
}

.ganhadores-section h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 16px 0;
    color: var(--text-primary);
}

.ganhadores-stats {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-light);
}

.ganhadores-stats .stat-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ganhadores-stats .stat-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

.ganhadores-stats .stat-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.ganhadores-stats .stat-value.highlight {
    color: var(--success-color);
}

.ganhadores-list h4 {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 16px 0;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ganhadores-table {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.ganhador-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 16px;
    padding: 12px 16px;
    background: var(--background);
    border-bottom: 1px solid var(--border);
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ganhador-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 16px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-light);
    font-size: 14px;
    transition: background 0.2s;
}

.ganhador-row:last-child {
    border-bottom: none;
}

.ganhador-row:hover {
    background: var(--background);
}

.ganhador-nome {
    font-weight: 600;
    color: var(--text-primary);
}

.ganhador-contratos {
    color: var(--text-secondary);
    text-align: right;
}

.ganhador-valor {
    font-weight: 700;
    color: var(--success-color);
    text-align: right;
}

.sem-ganhadores {
    padding: 24px;
    text-align: center;
    color: var(--text-muted);
}

.sem-ganhadores p {
    margin: 0;
    font-size: 14px;
}

/* Footer */
footer {
    background: var(--surface);
    border-top: 1px solid var(--border-light);
    padding: 32px 0;
    margin-top: 80px;
}

footer p {
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
}

/* Responsividade */
@media (max-width: 768px) {
    /* Header mobile: compacto, só logo + hamburger */
    header .navbar {
        padding: 10px 0;
    }

    .nav-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 0;
    }

    .nav-left {
        flex-direction: row;
        justify-content: space-between;
        gap: 12px;
        width: 100%;
        text-align: left;
        flex: 1;
    }

    .nav-left .logo {
        height: 36px;
    }

    .nav-left .logo-image {
        height: 26px;
    }

    .nav-toggle {
        display: flex;
    }

    /* Drawer: painel lateral que abre com o hamburger */
    .nav-drawer {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: min(300px, 85vw);
        max-width: 300px;
        background: #1A2332;
        border-left: 1px solid #242D3D;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;
        padding: 60px 20px 24px;
        z-index: 201;
        transform: translateX(100%);
        transition: transform 0.25s ease, visibility 0.25s ease;
        visibility: hidden;
        overflow-y: auto;
        flex: none;
    }

    body.nav-open .nav-drawer {
        transform: translateX(0);
        visibility: visible;
    }

    .nav-drawer .nav-links {
        display: flex;
        flex-direction: column;
        gap: 4px;
        margin-bottom: 24px;
        padding-bottom: 20px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .nav-drawer .nav-link {
        padding: 12px 0;
        font-size: 15px;
        color: rgba(255,255,255,0.9);
    }

    .nav-drawer .nav-right {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }

    .nav-drawer .lang-selector {
        margin-right: 0;
        padding-right: 0;
        border-right: none;
        justify-content: flex-start;
        gap: 12px;
    }

    .nav-drawer .user-info {
        flex-direction: column;
        align-items: stretch;
    }

    .nav-drawer .user-info .saldo {
        display: block;
        margin-bottom: 8px;
    }

    .nav-drawer .auth-links {
        flex-direction: column;
    }

    .nav-drawer .auth-links .btn-primary {
        width: 100%;
        text-align: center;
    }

    /* Overlay ao abrir o menu */
    .nav-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.4);
        z-index: 200;
    }

    body.nav-open .nav-overlay {
        display: block;
    }

    .events-grid {
        grid-template-columns: 1fr;
    }

    .betting-options {
        grid-template-columns: 1fr;
    }

    .betting-binary-wrap {
        grid-template-columns: 1fr;
    }

    .profile-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .topup-grid {
        grid-template-columns: 1fr;
    }

    .topup-layout {
        grid-template-columns: 1fr;
    }

    .topup-actions {
        justify-content: stretch;
    }

    .topup-actions .btn-primary {
        width: 100%;
    }

    .topup-row-inline {
        gap: 12px;
    }

    .bets-container {
        grid-template-columns: 1fr;
    }

    .auth-box {
        padding: 32px 24px;
    }
}

/* Modal de Confirmação - COMENTADO PARA NÃO CONFLITAR COM MODAL DE ALTERAR SENHA */
/*
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.show {
    opacity: 1;
}
*/

.modal-content {
    background: var(--surface);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 450px;
    width: 90%;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.show .modal-content {
    transform: scale(1);
}

.modal-header {
    padding: 24px;
    text-align: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.modal-icon-alert {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    color: #F59E0B;
    stroke-width: 2;
}

.modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.modal-body {
    padding: 24px;
    text-align: center;
}

.modal-body p {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.modal-validade-aviso {
    margin: 12px 0 0;
    padding: 10px 14px;
    font-size: 13px;
    color: var(--text-secondary);
    background: rgba(245, 158, 11, 0.12);
    border-radius: 8px;
    border-left: 3px solid #f59e0b;
}

.modal-validade-aviso strong {
    color: #d97706;
}

.modal-footer {
    padding: 20px 24px;
    background: var(--background);
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

/* Modal de sucesso (participação confirmada) */
.modal-sucesso {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 32px 32px;
    text-align: center;
    gap: 0;
}
.modal-sucesso-icon-wrap {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: #dcfce7;
    border: 3px solid #86efac;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    flex-shrink: 0;
}
.modal-sucesso-icon {
    width: 32px;
    height: 32px;
    color: #16a34a;
    stroke-width: 2.5;
}
.modal-sucesso-titulo {
    margin: 0 0 28px;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
}
.btn-modal-sucesso-ok {
    width: 100%;
    padding: 13px 0;
    border: none;
    border-radius: 10px;
    background: #22c55e;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    font-family: inherit;
    letter-spacing: 0.01em;
}
.btn-modal-sucesso-ok:hover {
    background: #16a34a;
}

.btn-modal-cancel,
.btn-modal-confirm {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.btn-modal-cancel {
    background: transparent;
    color: var(--text-secondary);
}

.btn-modal-cancel:hover {
    background: rgba(0, 0, 0, 0.05);
}

.btn-modal-confirm {
    background: var(--danger-color);
    color: white;
}

.btn-modal-confirm:hover {
    background: #C41519;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(227, 27, 35, 0.3);
}

.btn-modal-confirm:active {
    transform: translateY(0);
}

.btn-modal-confirm:disabled {
    opacity: 0.8;
    cursor: not-allowed;
    transform: none;
}

.btn-modal-confirm:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* ========================================
   PÁGINA COMO FUNCIONA
   ======================================== */

.como-funciona-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero */
.cf-hero {
    text-align: center;
    padding: 60px 20px 50px;
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
    margin: -30px -20px 40px;
    border-radius: 0 0 32px 32px;
}

.cf-hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.cf-hero-subtitle {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.75);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Seções */
.cf-section {
    padding: 50px 0;
}

.cf-section-alt {
    background: var(--background);
    margin: 0 -20px;
    padding: 50px 40px;
    border-radius: var(--radius-lg);
}

.cf-section-title {
    font-size: 1.75rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-primary);
}

/* Intro Card */
.cf-intro-card {
    display: flex;
    gap: 40px;
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
}

.cf-intro-icon {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--accent-color), #1D4ED8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.cf-intro-icon svg {
    width: 50px;
    height: 50px;
}

.cf-intro-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.cf-intro-content p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.cf-intro-content p:last-child {
    margin-bottom: 0;
}

/* Passos */
.cf-steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.cf-step {
    flex: 1;
    min-width: 180px;
    max-width: 220px;
    text-align: center;
    position: relative;
}

.cf-step-number {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 32px;
    background: var(--accent-color);
    color: white;
    font-size: 14px;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.cf-step-icon {
    width: 80px;
    height: 80px;
    margin: 20px auto 20px;
    background: linear-gradient(135deg, #E0F2FE, #BAE6FD);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
}

.cf-step-icon svg {
    width: 36px;
    height: 36px;
}

.cf-step-icon-choice {
    background: linear-gradient(135deg, #D1FAE5, #A7F3D0);
    color: var(--success-color);
}

.cf-step-icon-wait {
    background: linear-gradient(135deg, #FEF3C7, #FDE68A);
    color: #D97706;
}

.cf-step-icon-win {
    background: linear-gradient(135deg, #FCE7F3, #FBCFE8);
    color: #DB2777;
}

.cf-step h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.cf-step p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.cf-step-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 60px;
    color: var(--text-muted);
}

.cf-step-arrow svg {
    width: 24px;
    height: 24px;
}

/* Preços */
.cf-prices-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.cf-price-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-md);
}

.cf-price-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.cf-price-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.cf-price-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent-color);
}

.cf-price-bar {
    height: 16px;
    background: var(--border);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 12px;
}

.cf-price-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-color), #3B82F6);
    border-radius: 8px;
    transition: width 0.5s ease;
}

.cf-price-prob {
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent-color);
    margin: 0 0 20px;
}

.cf-price-explain {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-align: center;
    line-height: 1.5;
    margin: 0;
}

.cf-price-example {
    background: var(--surface);
    border: 2px solid var(--success-color);
    border-radius: var(--radius-lg);
    padding: 30px;
}

.cf-price-example h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    text-align: center;
}

.cf-example-box {
    background: var(--background);
    border-radius: var(--radius-md);
    padding: 20px;
}

.cf-example-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.cf-example-label {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.cf-example-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.cf-example-divider {
    height: 1px;
    background: var(--border);
    margin: 10px 0;
}

.cf-example-highlight {
    color: var(--accent-color);
    font-size: 1.1rem;
}

.cf-example-win {
    color: var(--success-color);
    font-size: 1.2rem;
}

.cf-example-profit {
    color: var(--success-color);
    font-size: 1.3rem;
    font-weight: 800;
}

.cf-example-fee .cf-example-label {
    color: var(--text-muted);
}

.cf-example-fee-val {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
}

/* Escolhas Sim/Não */
.cf-choices {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 30px;
}

.cf-choice {
    flex: 1;
    max-width: 340px;
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 35px;
    text-align: center;
    transition: all 0.3s ease;
}

.cf-choice:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.cf-choice-sim {
    border-color: rgba(16, 185, 129, 0.3);
}

.cf-choice-sim:hover {
    border-color: var(--success-color);
}

.cf-choice-nao {
    border-color: rgba(59, 130, 246, 0.3);
}

.cf-choice-nao:hover {
    border-color: var(--nao-color);
}

.cf-choice-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cf-choice-sim .cf-choice-icon {
    background: linear-gradient(135deg, #D1FAE5, #A7F3D0);
    color: var(--success-color);
}

.cf-choice-nao .cf-choice-icon {
    background: linear-gradient(135deg, #DBEAFE, #BFDBFE);
    color: var(--nao-color);
}

.cf-choice-icon svg {
    width: 32px;
    height: 32px;
}

.cf-choice h3 {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.cf-choice-sim h3 {
    color: var(--success-color);
}

.cf-choice-nao h3 {
    color: var(--nao-color);
}

.cf-choice p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.cf-choice-example {
    background: var(--background);
    border-radius: var(--radius-sm);
    padding: 16px;
    text-align: left;
}

.cf-choice-q {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 8px;
}

.cf-choice-a {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.cf-choice-vs {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-muted);
}

/* Dicas */
.cf-tips {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.cf-tip {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 28px;
    text-align: center;
    transition: all 0.3s ease;
}

.cf-tip:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-color);
}

.cf-tip-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 18px;
    background: linear-gradient(135deg, #EEF2FF, #E0E7FF);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
}

.cf-tip-icon svg {
    width: 26px;
    height: 26px;
}

.cf-tip h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.cf-tip p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

/* CTA */
.cf-cta {
    text-align: center;
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
    margin: 40px -20px 0;
    padding: 60px 40px;
    border-radius: 32px 32px 0 0;
}

.cf-cta h2 {
    font-size: 2rem;
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 16px;
}

.cf-cta p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 30px;
}

.cf-cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary.btn-lg,
.btn-secondary.btn-lg {
    padding: 16px 36px;
    font-size: 1.05rem;
    font-weight: 700;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-primary.btn-lg {
    background: var(--accent-color);
    color: white;
}

.btn-primary.btn-lg:hover {
    background: #1D4ED8;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.4);
}

.btn-secondary.btn-lg {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary.btn-lg:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

/* FAQ */
.cf-faq {
    max-width: 800px;
    margin: 0 auto;
}

.cf-faq-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.cf-faq-item:hover {
    border-color: var(--accent-color);
}

.cf-faq-item.active {
    border-color: var(--accent-color);
    box-shadow: var(--shadow-md);
}

.cf-faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    transition: all 0.2s ease;
}

.cf-faq-question:hover {
    background: var(--background);
}

.cf-faq-question span {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.cf-faq-question svg {
    width: 20px;
    height: 20px;
    color: var(--text-muted);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.cf-faq-item.active .cf-faq-question svg {
    transform: rotate(180deg);
    color: var(--accent-color);
}

.cf-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.cf-faq-item.active .cf-faq-answer {
    max-height: 200px;
}

.cf-faq-answer p {
    padding: 0 24px 20px;
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Responsivo Como Funciona */
@media (max-width: 900px) {
    .cf-intro-card {
        flex-direction: column;
        text-align: center;
    }
    
    .cf-steps {
        gap: 20px;
    }
    
    .cf-step-arrow {
        display: none;
    }
    
    .cf-prices-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .cf-tips {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cf-choices {
        flex-direction: column;
        align-items: center;
    }
    
    .cf-choice-vs {
        transform: rotate(90deg);
    }
}

@media (max-width: 600px) {
    .cf-hero {
        padding: 40px 16px 35px;
    }
    
    .cf-hero h1 {
        font-size: 1.75rem;
    }
    
    .cf-hero-subtitle {
        font-size: 1rem;
    }
    
    .cf-section-title {
        font-size: 1.4rem;
    }
    
    .cf-intro-card {
        padding: 28px 20px;
    }
    
    .cf-intro-icon {
        width: 80px;
        height: 80px;
    }
    
    .cf-intro-icon svg {
        width: 40px;
        height: 40px;
    }
    
    .cf-step {
        min-width: 140px;
    }
    
    .cf-tips {
        grid-template-columns: 1fr;
    }
    
    .cf-cta {
        padding: 40px 20px;
    }
    
    .cf-cta h2 {
        font-size: 1.5rem;
    }
}


