/* --- VARIÁVEIS --- */
:root {
    --primary: #00acec;
    --primary-dark: #008cb9;
    --text-main: #1a1a1a;
    --text-light: #666666;
    --bg-body: #f4f7f9;
    --bg-card: #ffffff;
    --border-color: #e1e5e8;
    --success: #00c851;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* TEMAS */
body.theme-blackfriday {
    --primary: #00acec;
    --secundary: #ADEC00;
    --bg-body: #121212;
    --bg-card: #1E1E1E;
    --text-main: #e0e0e0;
    --text-light: #a0a0a0;
    --border-color: #333333;
}

body.theme-blackfriday .highlight { 
    color: #00acec; 
    text-shadow: 0 0 15px rgba(0, 172, 236, 0.6); 
}

body.theme-christmas {
    --primary: #d42426;
    --bg-body: #f8f9fa;
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23d42426' fill-opacity='0.05' fill-rule='evenodd'%3E%3Ccircle cx='3' cy='3' r='3'/%3E%3Ccircle cx='13' cy='13' r='3'/%3E%3C/g%3E%3C/svg%3E");
}

/* --- EFEITO DE NEVE (TEMA NATAL) --- */
.snow-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

.snowflake {
    position: absolute;
    top: -10px;
    color: white;
    font-size: 1em;
    user-select: none;
    pointer-events: none;
    animation: snowfall linear infinite;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

@keyframes snowfall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0.8;
    }
}

/* Variações de tamanho */
.snowflake.small { font-size: 0.8em; }
.snowflake.medium { font-size: 1.2em; }
.snowflake.large { font-size: 1.6em; }

/* Variações de velocidade */
.snowflake.slow { animation-duration: 15s; }
.snowflake.normal { animation-duration: 10s; }
.snowflake.fast { animation-duration: 7s; }

body.theme-summer {
    --primary: #ff9f1c;
    --bg-body: linear-gradient(180deg, #fffbf0 0%, #fff 100%);
}

/* --- GERAL --- */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    overflow-x: hidden;
}

.container { 
    max-width: 1100px; 
    margin: 0 auto; 
    padding: 0 20px; 
}

a { text-decoration: none; }
.hidden { display: none !important; }

.promo-alert {
    background: linear-gradient(90deg, var(--primary) 0%, #007bb5 100%);
    color: white;
    text-align: center;
    padding: 12px 0;
    font-weight: 600;
    font-size: 0.9rem;
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 1001;
    width: 100%;
}

/* --- HEADER --- */
.promo-alert {
    background: linear-gradient(90deg, var(--primary) 0%, #007bb5 100%);
    color: white;
    text-align: center;
    padding: 12px 0;
    font-weight: 600;
    font-size: 0.9rem;
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 1001;
    width: 100%;
}

/* --- HEADER --- */
.main-header {
    padding: 15px 0;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    width: 100%;
}

body:has(.promo-alert:not(.hidden)) .main-header {
    top: 44px;
}

body.theme-blackfriday .main-header { 
    background: rgba(18, 18, 18, 0.95); 
}

.header-content { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}

/* Navegação */
.main-header nav {
    display: flex;
    align-items: center;
    gap: 15px;
}

.main-header nav a { 
    color: var(--text-main); 
    font-weight: 500; 
    white-space: nowrap;
}

.logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
}

/* Ajustar responsivo se necessário */
@media (max-width: 768px) {
    .logo-img {
        height: 32px;
    }
}

.logo { 
    font-weight: 800; 
    font-size: 1.5rem; 
    color: var(--text-main); 
}

.logo .dot { color: var(--primary); }

.main-header nav a { 
    margin-left: 20px; 
    color: var(--text-main); 
    font-weight: 500; 
}

.btn-nav { 
    border: 2px solid var(--primary); 
    padding: 6px 18px; 
    border-radius: 50px; 
    color: var(--primary) !important; 
}

.btn-nav2 { 
    background: linear-gradient(135deg, #ff9f1c 0%, #ff8c00 100%);
    color: white !important;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(255, 159, 28, 0.3);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-nav2:hover {
    background: linear-gradient(135deg, #ff8c00 0%, #ff7700 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 159, 28, 0.4);
}

/* --- HERO & SLIDER --- */
.hero {
    padding: 40px 0;
    text-align: center;
    min-height: 450px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-slider-wrapper {
    position: relative;
    height: 250px;
    width: 100%;
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 1;
}

.hero-slide.active {
    opacity: 1 !important;
    transform: translateY(0) !important;
    pointer-events: all;
    z-index: 10;
}

.hero-slide h1 { 
    font-size: 3rem; 
    font-weight: 800; 
    margin-bottom: 15px; 
    line-height: 1.1; 
}

.highlight { color: var(--primary); }

.hero-stats { 
    display: flex; 
    justify-content: center; 
    gap: 20px; 
    flex-wrap: wrap; 
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 15px 20px;
    border-radius: 12px;
    display: flex; 
    align-items: center; 
    gap: 10px;
    box-shadow: var(--shadow);
}

/* --- CONTROLES --- */
.controls-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    margin: 0 auto 50px auto;
    background: var(--bg-card);
    padding: 25px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 900px;
}

.control-group {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.step-label { 
    display: block; 
    font-size: 0.8rem; 
    font-weight: 800; 
    color: var(--text-light); 
    margin-bottom: 15px; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
}

.toggle-region-wrapper { 
    display: inline-flex; 
    background: var(--bg-body); 
    padding: 5px; 
    border-radius: 50px; 
    border: 1px solid var(--border-color);
    justify-content: center;
}

.region-btn { 
    background: transparent; 
    border: none; 
    padding: 10px 25px; 
    border-radius: 50px; 
    cursor: pointer; 
    font-weight: 700; 
    color: var(--text-light); 
    transition: 0.3s; 
    display: flex; 
    align-items: center; 
    gap: 8px; 
    font-size: 1rem; 
    white-space: nowrap; 
}

.region-btn.active { 
    background: var(--primary); 
    color: white; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.1); 
}

#cycle-container {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.cycle-option {
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    padding: 10px 20px;
    border-radius: 10px;
    cursor: pointer;
    min-width: 130px;
    position: relative;
    font-weight: 600;
    transition: all 0.2s;
    text-align: center;
}

.cycle-option:hover { border-color: var(--primary); }

.cycle-option.active { 
    background: var(--primary); 
    color: white; 
    border-color: var(--primary); 
    transform: scale(1.05); 
}

.cycle-discount-badge {
    font-size: 0.7rem;
    background: var(--success);
    color: white;
    padding: 3px 8px;
    border-radius: 20px;
    position: absolute;
    top: -10px; 
    right: -5px;
    font-weight: 800;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* --- GRID DE PLANOS (CORREÇÃO: AUTO-FILL) --- */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    width: 100%;
}

.plan-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 35px;
    transition: 0.3s;
    display: flex; 
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.plan-card:hover { 
    border-color: var(--primary); 
    box-shadow: 0 15px 30px rgba(0,0,0,0.1); 
    transform: translateY(-8px); 
}

.current-price { 
    font-size: 2.8rem; 
    font-weight: 800; 
    color: var(--text-main); 
    margin: 5px 0; 
}

.plan-header h3 { 
    font-size: 1.5rem; 
    margin-bottom: 5px; 
}

.region-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.region-badge.region-br {
    background: rgba(0, 156, 59, 0.1);
    color: #009c3b;
    border: 1px solid rgba(0, 156, 59, 0.3);
}

.region-badge.region-ca {
    background: rgba(255, 0, 0, 0.1);
    color: #ff0000;
    border: 1px solid rgba(255, 0, 0, 0.3);
}

body.theme-blackfriday .region-badge.region-br {
    background: rgba(0, 156, 59, 0.2);
    color: #00d14a;
}

body.theme-blackfriday .region-badge.region-ca {
    background: rgba(255, 0, 0, 0.2);
    color: #ff4444;
}

.features-list { 
    list-style: none; 
    margin: 20px 0; 
    flex: 1; 
}

.features-list li { 
    margin-bottom: 10px; 
    color: var(--text-light); 
    font-size: 0.95rem; 
    display: flex; 
    align-items: center; 
}

.features-list li::before { 
    content: '✓'; 
    color: var(--primary); 
    margin-right: 10px; 
    font-weight: bold; 
    font-size: 1.1rem; 
}

.trial-section { 
    margin: 80px 0; 
    padding: 0 20px;
}

.trial-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 50px;
    text-align: center;
    box-shadow: var(--shadow);
}

.trial-header h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.trial-header p {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.trial-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.trial-feature {
    background: var(--bg-body);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
}

.trial-feature .feature-icon {
    font-size: 1.5rem;
}

.trial-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-main { 
    background: var(--primary); 
    color: white; 
    text-align: center; 
    padding: 15px; 
    border-radius: 10px; 
    font-weight: 700; 
    display: block; 
    margin-top: 25px; 
    font-size: 1rem; 
    text-transform: uppercase; 
    letter-spacing: 0.5px; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.1); 
    transition: 0.3s; 
}

.btn-main:hover { 
    background: var(--primary-dark); 
    transform: translateY(-2px); 
    box-shadow: 0 8px 20px rgba(0,0,0,0.15); 
}

.btn-invoice {
    background: linear-gradient(135deg, #ff9f1c 0%, #ff8c00 100%);
    color: white !important;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(255, 159, 28, 0.3);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-invoice:hover {
    background: linear-gradient(135deg, #ff8c00 0%, #ff7700 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 159, 28, 0.4);
}

/* RESPONSIVO - MOBILE */
@media (max-width: 768px) {
    /* --- HEADER MOBILE --- */
    .header-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .logo {
        margin-bottom: 0;
    }
    
    .logo-img {
        height: 32px;
    }
    
    /* Esconder links normais no mobile */
    .main-header nav a:not(.btn-invoice):not(.btn-nav) {
        display: none;
    }
    
    /* Mostrar apenas os botões no mobile */
    .main-header nav {
        flex-direction: row;
        width: auto;
        gap: 8px;
    }
    
    .btn-invoice,
    .btn-nav {
        padding: 8px 15px;
        font-size: 0.8rem;
        white-space: nowrap;
    }
    
    /* --- TABELA DE PLANOS MOBILE --- */
    .pricing-table-wrapper {
        border-radius: 10px;
        overflow-x: auto;
    }
    
    /* Esconder colunas desnecessárias no mobile */
    .pricing-table thead th:nth-child(2),
    .pricing-table thead th:nth-child(3),
    .pricing-table thead th:nth-child(4),
    .pricing-table tbody td:nth-child(2),
    .pricing-table tbody td:nth-child(3),
    .pricing-table tbody td:nth-child(4) {
        display: none;
    }
    
    /* Ajustar tamanho das células restantes */
    .pricing-table thead th {
        font-size: 0.75rem;
        padding: 12px 8px;
    }
    
    .pricing-table tbody td {
        padding: 15px 8px;
        font-size: 0.85rem;
    }
    
    .pricing-table tbody td:first-child {
        padding-left: 15px;
        font-size: 1rem;
    }
    
    /* Botão contratar menor no mobile */
    .btn-hire {
        padding: 8px 12px;
        font-size: 0.75rem;
        gap: 4px;
    }
    
    .btn-hire::before {
        font-size: 0.9rem;
    }
    
    /* Preço mais compacto no mobile */
    .price-with-discount {
        gap: 2px;
    }
    
    .price-original {
        font-size: 0.7rem;
    }
    
    .price-discounted {
        font-size: 0.95rem;
    }
    
    .price-no-discount {
        font-size: 0.9rem;
    }
    
    /* Bandeira menor no mobile */
    .pricing-table .flag-icon,
    .pricing-table td img {
        width: 20px;
        height: 15px;
    }
    
    /* --- OUTROS ELEMENTOS MOBILE --- */
    .trial-content { 
        grid-template-columns: 1fr; 
        text-align: center; 
    }
    
    .hero-stats { 
        flex-direction: column; 
    }
    
    .controls-wrapper { 
        flex-direction: column; 
        width: 100%; 
        gap: 30px;
    }
    
    .plans-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-slide h1 {
        font-size: 2rem;
    }
    
    .trial-card {
        padding: 30px 20px;
    }
    
    .trial-header h2 {
        font-size: 1.8rem;
    }
    
    .trial-features {
        grid-template-columns: 1fr;
    }
    
    .trial-actions {
        flex-direction: column;
    }
    
    .trial-actions .btn-main,
    .trial-actions .btn-outline {
        width: 100%;
    }
    
    .affiliate-card {
        padding: 30px 20px;
    }
    
    .affiliate-content {
        flex-direction: column;
        text-align: center;
    }
    
    .affiliate-text h3 {
        font-size: 1.5rem;
    }
    
    .affiliate-features {
        flex-direction: column;
    }
    
    .payment-icons {
        gap: 15px;
    }
    
    .payment-icon {
        height: 35px;
    }
    
    .payment-policies-section {
        padding: 30px 20px;
    }
    
    /* Modal de upgrade no mobile */
    .upgrade-modal-content {
        width: 95%;
    }
    
    .upgrade-modal-header {
        padding: 30px 20px 20px;
    }
    
    .upgrade-options {
        padding: 20px;
    }
    
    .upgrade-modal-header h3 {
        font-size: 1.3rem;
    }
    
    .upgrade-option-card {
        padding: 15px;
    }
}

/* --- TABELA DE PREÇOS (NOVO LAYOUT) --- */
.pricing-table-wrapper {
    width: 100%;
    overflow-x: auto;
    margin: 40px 0;
}

.pricing-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--bg-card);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.pricing-table thead {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
}

.pricing-table thead th {
    padding: 18px 15px;
    font-weight: 700;
    text-align: center;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-right: 1px solid rgba(255,255,255,0.1);
}

.pricing-table thead th:last-child {
    border-right: none;
}

.pricing-table thead th:first-child {
    text-align: left;
    padding-left: 30px;
}

.pricing-table tbody tr {
    border-bottom: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.pricing-table tbody tr:hover {
    background: rgba(0, 172, 236, 0.03);
    transform: scale(1.005);
}

.pricing-table tbody tr:last-child {
    border-bottom: none;
}

.pricing-table tbody td {
    padding: 20px 15px;
    text-align: center;
    font-size: 0.95rem;
    color: var(--text-main);
}

.pricing-table tbody td:first-child {
    font-weight: 700;
    font-size: 1.1rem;
    text-align: left;
    padding-left: 30px;
    color: var(--text-main);
}

/* Ícones de check */
.pricing-table .check-icon {
    color: var(--success);
    font-size: 1.3rem;
    font-weight: bold;
}

/* Bandeira */
.pricing-table .flag-icon {
    width: 28px;
    height: auto;
    vertical-align: middle;
}

.flag-icon {
    font-size: 1.8rem;
    line-height: 1;
    display: inline-block;
}

/* Preços */
.price-cell {
    font-weight: 700;
    color: var(--text-main);
}

.price-with-discount {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}

.price-original {
    font-size: 0.85rem;
    color: var(--text-light);
    text-decoration: line-through;
}

.price-discounted {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--primary);
}

.price-no-discount {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-main);
}

.price-unavailable {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--text-light);
    opacity: 0.4;
}

/* --- MODAL DE UPGRADE DE CICLO (REDESIGN) --- */
.upgrade-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.upgrade-modal.hidden {
    display: none;
}

.upgrade-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
}

.upgrade-modal-content {
    position: relative;
    background: var(--bg-card);
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.selected-plan-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
    margin-top: 8px;
}

.selected-plan-name span {
    font-weight: 700;
}

.upgrade-option-card.current-cycle .upgrade-radio.selected::after {
    transform: translate(-50%, -50%) scale(1);
    background: var(--text-light);
}

/* Card padrão - sem destaque */
.upgrade-option-card {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
}

.upgrade-option-card:hover {
    border-color: var(--primary);
    background: rgba(0, 172, 236, 0.02);
}

@keyframes badge-pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 6px rgba(220, 38, 38, 0);
    }
}

.upgrade-recommended-text {
    background: var(--primary);
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-block;
    animation: badge-pulse 2s ease-in-out infinite;
}

.upgrade-option-card:hover .upgrade-recommended-text {
    animation-play-state: paused;
}

.upgrade-option-card.recommended {
    border-color: var(--border-color);
    background: var(--bg-card);
    animation: none; /* Remove qualquer animação */
}

.upgrade-option-card.recommended:hover {
    border-color: var(--primary);
    background: rgba(0, 172, 236, 0.02);
}

.upgrade-option-card.selected {
    border-color: var(--primary) !important;
    background: rgba(0, 172, 236, 0.05) !important;
}

.upgrade-radio {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    flex-shrink: 0;
    position: relative;
    transition: all 0.2s;
}

.upgrade-radio::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 10px;
    height: 10px;
    background: var(--primary);
    border-radius: 50%;
    transition: transform 0.2s;
}

/* Rádio selecionado - APENAS com classe .selected */
.upgrade-radio.selected {
    border-color: var(--primary) !important;
    background: var(--primary) !important;
}

.upgrade-radio.selected::after {
    transform: translate(-50%, -50%) scale(1) !important;
    background: white !important;
    opacity: 1 !important;
}

/* Card "ESCOLHA ATUAL" - visual neutro */
.upgrade-option-card.current-cycle {
    border-color: var(--border-color);
    background: var(--bg-body);
}

.upgrade-option-card.current-cycle .upgrade-radio {
    border-color: var(--text-light);
}

/* Remover estilos que faziam o recommended parecer sempre selecionado */
.upgrade-option-card.recommended:not(.selected) {
    border-color: var(--border-color);
    background: var(--bg-card);
}

.upgrade-option-card.recommended:not(.selected) .upgrade-radio {
    border-color: var(--border-color);
    background: transparent;
}

.upgrade-option-card.recommended:not(.selected) .upgrade-radio::after {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0);
}

.upgrade-current-badge {
    background: var(--text-light);
    color: white;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.upgrade-badges {
    width: 100%;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
}

.upgrade-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: var(--text-light);
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
    z-index: 10;
}

.selected-plan-name {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    text-align: center;
    margin-top: 15px;
    padding: 12px 20px;
    background: rgba(0, 172, 236, 0.08);
    border-radius: 10px;
    border: 2px solid rgba(0, 172, 236, 0.2);
}

.selected-plan-name span {
    font-weight: 800;
    color: var(--text-main);
}

.upgrade-modal-close:hover {
    background: var(--bg-body);
    color: var(--text-main);
}

.upgrade-modal-header {
    padding: 35px 30px 25px;
    border-bottom: 1px solid var(--border-color);
}

.upgrade-modal-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-main);
}

.upgrade-modal-header p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.5;
}

.upgrade-options {
    padding: 25px 30px;
}



/* Animação de pulsação suave para o card recomendado */
@keyframes subtle-pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(0, 172, 236, 0.4);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(0, 172, 236, 0);
        transform: scale(1.01);
    }
}


.upgrade-option-card:hover .upgrade-radio {
    border-color: var(--primary);
}

.upgrade-option-card.recommended .upgrade-radio {
    border-color: var(--primary);
}

.upgrade-option-card:hover .upgrade-radio::after,
.upgrade-option-card.recommended .upgrade-radio::after {
    transform: translate(-50%, -50%) scale(1);
}

.upgrade-option-content {
    flex: 1;
}

.upgrade-option-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}
    
.upgrade-cycle-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
}

.upgrade-discount-badge {
    background: var(--success);
    color: white;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.upgrade-recommended-text {
    background: var(--primary);
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
}

.upgrade-option-bottom {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.upgrade-old-price {
    font-size: 0.9rem;
    color: var(--text-light);
    text-decoration: line-through;
}

.upgrade-new-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
}

.upgrade-period {
    font-size: 0.85rem;
    color: var(--text-light);
}

.upgrade-economy-text {
    color: var(--success);
    font-size: 0.9rem;
    font-weight: 700;
    margin-top: 6px;
    display: block;
}

.upgrade-modal-footer {
    padding: 20px 30px;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-continue {
    background: transparent;
    color: var(--text-main);
    border: 2px solid var(--border-color);
    padding: 14px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.95rem;
    width: 100%;
}

.btn-continue:hover {
    background: var(--bg-body);
    border-color: var(--text-main);
}

/* Garante que o texto fique no lugar durante a animação */
.btn-hire, .btn-continue {
    position: relative;
    overflow: hidden; 
}

.btn-hire span, .btn-continue span {
    position: relative;
    z-index: 1; /* Texto fica na camada 1 */
}

.nyan-runner {
    position: absolute;
    top: 50%;
    left: -80px; /* Começa escondido na esquerda (ajuste conforme largura do gato) */
    transform: translateY(-50%);
    height: 35px; /* Altura ajustada para caber bem no botão */
    width: auto;
    z-index: 99; /* Gato fica na camada 99 (acima do texto) */
    pointer-events: none;
    transition: left 1.5s linear; /* Duração da corrida */
}

.upgrade-no-options {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-light);
}

.upgrade-no-options-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

/* Responsivo */
@media (max-width: 768px) {
    .upgrade-modal-content {
        width: 95%;
    }
    
    .upgrade-modal-header {
        padding: 30px 20px 20px;
    }
    
    .upgrade-options {
        padding: 20px;
    }
    
    .upgrade-modal-header h3 {
        font-size: 1.3rem;
    }
    
    .upgrade-option-card {
        padding: 15px;
    }
}

/* Botão Contratar */
.btn-hire-alt {
    background: var(--primary);
    color: white;
}

.btn-hire-alt:hover {
    background: var(--primary-dark);
}

.btn-hire-alt::before {
    content: '↗';
}

.btn-hire {
    background: var(--success);
    color: white;
    padding: 10px 25px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 3px 10px rgba(0, 200, 81, 0.3);
}

.btn-hire:hover {
    background: #00a642;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 200, 81, 0.4);
}

.btn-hire::before {
    content: '🛒';
    font-size: 1rem;
}

/* Popular Badge */
.popular-row {
    position: relative;
    background: linear-gradient(90deg, rgba(0, 172, 236, 0.05) 0%, rgba(0, 172, 236, 0.02) 100%) !important;
}

.popular-row td:first-child::before {
    margin-right: 8px;
}

/* Responsivo */
@media (max-width: 1200px) {
    .pricing-table {
        font-size: 0.85rem;
    }
    
    .pricing-table thead th,
    .pricing-table tbody td {
        padding: 12px 8px;
    }
    
    .pricing-table tbody td:first-child,
    .pricing-table thead th:first-child {
        padding-left: 15px;
    }
}

@media (max-width: 768px) {
    .pricing-table-wrapper {
        border-radius: 10px;
    }
    
    .btn-hire {
        padding: 8px 15px;
        font-size: 0.8rem;
    }
    
    .pricing-table thead th {
        font-size: 0.75rem;
        padding: 12px 5px;
    }
    
    .pricing-table tbody td {
        padding: 15px 5px;
        font-size: 0.85rem;
    }
}

/* Afiliados */

.affiliates-section {
    margin: 80px 0;
    padding: 0 20px;
}

.affiliate-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 20px;
    padding: 50px;
    color: white;
    box-shadow: var(--shadow);
}

.affiliate-content {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-bottom: 30px;
}

.affiliate-icon {
    font-size: 4rem;
    background: rgba(255, 255, 255, 0.2);
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
}

.affiliate-text h3 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.affiliate-text p {
    font-size: 1.1rem;
    opacity: 0.95;
}

.affiliate-features {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.affiliate-benefit {
    background: rgba(255, 255, 255, 0.15);
    padding: 12px 20px;
    border-radius: 25px;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.affiliate-card .btn-main {
    background: white;
    color: var(--primary);
    display: inline-block;
    margin: 0 auto;
}

.affiliate-card .btn-main:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 15px 30px;
    border-radius: 10px;
    font-weight: 700;
    text-align: center;
    display: inline-block;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    /* ... código existente ... */
    
    .trial-card {
        padding: 30px 20px;
    }
    
    .trial-header h2 {
        font-size: 1.8rem;
    }
    
    .trial-features {
        grid-template-columns: 1fr;
    }
    
    .trial-actions {
        flex-direction: column;
    }
    
    .trial-actions .btn-main,
    .trial-actions .btn-outline {
        width: 100%;
    }
    
    .affiliate-card {
        padding: 30px 20px;
    }
    
    .affiliate-content {
        flex-direction: column;
        text-align: center;
    }
    
    .affiliate-text h3 {
        font-size: 1.5rem;
    }
    
    .affiliate-features {
        flex-direction: column;
    }
}

#year-counter {
    font-weight: 800;
    color: var(--primary);
    font-size: 1.05em;
    display: inline-block;
    min-width: 80px;
}

/* --- SEÇÃO DE PAGAMENTO E POLÍTICAS --- */
.payment-policies-section {
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    padding: 50px 20px;
    margin-top: 80px;
}

.payment-methods {
    text-align: center;
    margin-bottom: 30px;
}

.payment-methods h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 25px;
}

.payment-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: nowrap;
    overflow-x: auto;
}

.payment-icon {
    height: 75px;
    width: auto;
    object-fit: contain;
    opacity: 0.8;
    transition: all 0.3s ease;
    filter: grayscale(20%);
}

.payment-icon:hover {
    opacity: 1;
    filter: grayscale(0%);
    transform: translateY(-3px);
}

.policies-wrapper {
    text-align: center;
    margin-top: 30px;
}

.btn-policies {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: var(--text-light);
    border: 2px solid var(--border-color);
    padding: 12px 30px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.btn-policies:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* Responsivo */
@media (max-width: 768px) {
    .payment-icons {
        gap: 15px;
    }
    
    .payment-icon {
        height: 35px;
    }
    
    .payment-policies-section {
        padding: 30px 20px;
    }
}

/* Tema Dark */
body.theme-blackfriday .pricing-table {
    background: var(--bg-card);
}

body.theme-blackfriday .pricing-table tbody tr:hover {
    background: rgba(0, 172, 236, 0.08);
}

/* --- NYAN CAT ANIMATION --- */
.btn-checkout {
    position: relative; /* Necessário para o gato ficar dentro/sobre o botão */
    overflow: hidden;   /* Garante que o gato suma quando sair do botão */
}

/* O Gato */
.nyan-runner {
    position: absolute;
    top: 50%;
    left: -60px; /* Começa escondido na esquerda */
    transform: translateY(-50%);
    height: 40px; /* Tamanho do gato */
    width: auto;
    z-index: 100;
    pointer-events: none; /* O clique passa através dele */
    transition: left 1.5s linear; /* Velocidade da corrida (1.5s) */
}

/* O Rastro de Arco-íris (Opcional, se o GIF já não tiver) */
.nyan-trail {
    position: absolute;
    top: 50%;
    left: -100%; /* Começa bem longe */
    height: 20px;
    width: 0;
    background: linear-gradient(to bottom, 
        #ff0000 16%, 
        #ff9900 16%, 32%, 
        #ffff00 32%, 48%, 
        #33ff00 48%, 64%, 
        #0099ff 64%, 80%, 
        #6633ff 80%);
    transform: translateY(-50%);
    transition: width 1.5s linear;
    z-index: 90;
}