:root {
    --fin-bg: #131722;
    --fin-panel: #1e222d;
    --fin-border: #2a2e39;
    --fin-text-muted: #787b86;
    --fin-text: #d1d4dc;
    --fin-text-light: #ffffff;
    --fin-green: #089981;
    --fin-blue: #2962ff;
    --fin-gold: #e2a03f;
}

.etea-upgrade-wrapper {
    max-width: 900px; /* Réduit pour 2 colonnes */
    margin: 40px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--fin-text);
}

.etea-upgrade-header { text-align: center; margin-bottom: 40px; }
.etea-upgrade-header h2 { font-family: 'Share Tech Mono', monospace; font-size: 2.5em; color: var(--fin-text-light); margin-bottom: 15px; letter-spacing: 2px; }
.etea-upgrade-header p { color: var(--fin-text-muted); font-size: 1.1em; max-width: 600px; margin: 0 auto; line-height: 1.5; }

/* --- LE TOGGLE BILLING --- */
.etea-billing-toggle-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 50px;
}

.toggle-label {
    font-family: 'Share Tech Mono', monospace;
    font-size: 14px;
    color: var(--fin-text-muted);
    font-weight: bold;
    transition: color 0.3s;
    position: relative;
}
.toggle-label.active { color: var(--fin-text-light); }

.discount-badge {
    position: absolute;
    top: -25px;
    right: -30px;
    background: var(--fin-green);
    color: #fff;
    font-size: 9px;
    padding: 3px 8px;
    border-radius: 12px;
    white-space: nowrap;
}
.discount-badge::after {
    content: ''; position: absolute; bottom: -4px; left: 10px;
    border-width: 5px 5px 0; border-style: solid; border-color: var(--fin-green) transparent transparent transparent;
}

.etea-billing-switch { position: relative; display: inline-block; width: 60px; height: 30px; }
.etea-billing-switch input { opacity: 0; width: 0; height: 0; }
.etea-billing-slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: var(--fin-panel); transition: .4s; border-radius: 34px; border: 2px solid var(--fin-blue); }
.etea-billing-slider:before { position: absolute; content: ""; height: 20px; width: 20px; left: 3px; bottom: 3px; background-color: var(--fin-text-muted); transition: .4s; border-radius: 50%; }
input:checked + .etea-billing-slider { background-color: rgba(41, 98, 255, 0.2); }
input:checked + .etea-billing-slider:before { transform: translateX(30px); background-color: var(--fin-blue); }


/* --- PRICING GRID (2 COLONNES) --- */
.etea-pricing-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2 Colonnes égales */
    gap: 30px;
    align-items: stretch;
}

.etea-price-card {
    background: var(--fin-panel);
    border: 1px solid var(--fin-border);
    border-radius: 12px;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
}

.etea-price-card.free-plan {
    opacity: 0.9;
}

.etea-price-card.highlight {
    border-color: var(--fin-blue);
    background: linear-gradient(180deg, rgba(41, 98, 255, 0.05) 0%, var(--fin-panel) 100%);
    transform: scale(1.05); 
    box-shadow: 0 10px 40px rgba(41, 98, 255, 0.2);
    z-index: 10;
}
.etea-price-card.already-premium {
    border-color: var(--fin-green);
    background: linear-gradient(180deg, rgba(8, 153, 129, 0.05) 0%, var(--fin-panel) 100%);
}

.popular-badge {
    position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    background: var(--fin-blue); color: #fff; padding: 4px 15px; border-radius: 20px;
    font-size: 10px; font-weight: 800; letter-spacing: 1px; white-space: nowrap;
}

.card-header { text-align: center; margin-bottom: 25px; border-bottom: 1px dashed var(--fin-border); padding-bottom: 20px; }
.tier-name { display: block; font-family: 'Share Tech Mono', monospace; font-size: 1.6em; color: var(--fin-text-light); margin-bottom: 5px; }
.tier-focus { font-size: 11px; color: var(--fin-text-muted); text-transform: uppercase; letter-spacing: 1px; }

.price { text-align: center; margin-bottom: 10px; }
.currency { font-size: 1.5em; vertical-align: top; color: var(--fin-text-muted); }
.amount { font-size: 4em; font-weight: 800; color: var(--fin-text-light); line-height: 1; font-family: 'Share Tech Mono', monospace; }
.period { font-size: 1em; color: var(--fin-text-muted); }
.billed-yearly-text { text-align: center; font-size: 11px; color: var(--fin-green); margin-bottom: 20px; font-weight: bold; }

.features { list-style: none; padding: 0; margin: 0 0 40px 0; flex-grow: 1; }
.features li { margin-bottom: 15px; font-size: 14px; display: flex; align-items: center; gap: 10px; }
.features li.disabled { color: var(--fin-text-muted); opacity: 0.4; }
.check { color: var(--fin-green); font-weight: bold; }
.cross { color: var(--fin-red); font-weight: bold; }

/* BOUTONS */
.etea-btn-buy, .etea-btn-outline, .etea-btn-disabled {
    display: block; width: 100%; text-align: center; padding: 15px; border-radius: 6px;
    font-family: 'Share Tech Mono', monospace; font-weight: bold; font-size: 14px;
    text-decoration: none; transition: 0.3s; box-sizing: border-box;
}

.etea-btn-buy.premium {
    background: var(--fin-blue); color: #fff; border: none;
    box-shadow: 0 5px 15px rgba(41, 98, 255, 0.4);
}
.etea-btn-buy.premium:hover { background: #1c4ed8; transform: translateY(-2px); }

.etea-btn-outline {
    background: transparent; border: 1px solid var(--fin-border); color: var(--fin-text-light);
}
.etea-btn-outline:hover { border-color: var(--fin-text-muted); background: rgba(255,255,255,0.05); }

.etea-btn-disabled {
    background: rgba(255,255,255,0.05); border: 1px dashed var(--fin-border); color: var(--fin-text-muted); cursor: not-allowed;
}

@media (max-width: 768px) {
    .etea-pricing-grid { grid-template-columns: 1fr; gap: 40px; }
    .etea-price-card.highlight { transform: none; }
}