/* ================================================================
   AI TRUST — Calculator Frontend Styles
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;600&display=swap');

:root {
    --aitc-primary:      #0f172a;
    --aitc-accent:       #6366f1;
    --aitc-accent-light: #818cf8;
    --aitc-success:      #10b981;
    --aitc-warning:      #f59e0b;
    --aitc-danger:       #ef4444;
    --aitc-surface:      #ffffff;
    --aitc-surface2:     #f8fafc;
    --aitc-border:       #e2e8f0;
    --aitc-text:         #1e293b;
    --aitc-muted:        #64748b;
    --aitc-radius:       16px;
    --aitc-shadow:       0 4px 24px rgba(0,0,0,.08);
    --aitc-shadow-lg:    0 12px 40px rgba(99,102,241,.18);
}

/* ---- WRAPPER ---- */
.aitrust-calculator {
    font-family: 'Sora', sans-serif;
    max-width: 1100px;
    margin: 0 auto;
    color: var(--aitc-text);
}

/* ================================================================
   HEADER — toggle + régua
   ================================================================ */
.aitc-header {
    text-align: center;
    margin-bottom: 40px;
}

/* ---- Toggle Mensal/Anual — ISOLADO DO TEMA ---- */
.aitc-period-toggle {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 50px;
    padding: 10px 22px;
    box-shadow: 0 4px 24px rgba(0,0,0,.08);
    margin-bottom: 24px;
    font-family: 'Sora', sans-serif;
}

.aitc-period-label {
    font-size: 15px;
    font-weight: 500;
    color: #64748b;
    transition: color .2s;
    display: flex;
    align-items: center;
    gap: 8px;
    user-select: none;
    cursor: pointer;
    line-height: 1;
    /* reset qualquer herança do tema */
    margin: 0;
    padding: 0;
    background: none;
    border: none;
    box-shadow: none;
    text-transform: none;
    letter-spacing: normal;
}
.aitc-period-label.active {
    color: #0f172a;
    font-weight: 700;
}

/* O toggle em si: div puro, zero contaminação de tema */
.aitc-toggle-track {
    position: relative;
    width: 52px;
    height: 28px;
    border-radius: 28px;
    background: #10b981;   /* ANUAL → verde */
    cursor: pointer;
    flex-shrink: 0;
    transition: background .3s ease;
    /* reset total */
    margin: 0;
    padding: 0;
    border: none;
    outline: none;
    box-shadow: none;
    display: block;
}
.aitc-toggle-track.monthly {
    background: #f59e0b;   /* MENSAL → âmbar/laranja */
}
.aitc-toggle-knob {
    position: absolute;
    top: 3px;
    left: 27px;  /* posição ANUAL (direita) */
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 2px 6px rgba(0,0,0,.22);
    transition: left .25s cubic-bezier(.34,1.56,.64,1);
    pointer-events: none;
    margin: 0;
    padding: 0;
    border: none;
}
.aitc-toggle-track.monthly .aitc-toggle-knob {
    left: 3px;   /* posição MENSAL (esquerda) */
}

.aitc-discount-badge {
    display: inline-block;
    background: #10b981;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 20px;
    letter-spacing: .5px;
    line-height: 1.4;
    font-family: 'Sora', sans-serif;
}

/* ---- Régua de anos ---- */
.aitc-years-wrapper {
    display: flex;
    align-items: center;
    gap: 16px;
    justify-content: center;
    max-width: 520px;
    margin: 0 auto;
    opacity: 1;
    transition: opacity .3s;
}
.aitc-years-wrapper.hidden { opacity: 0; pointer-events: none; height: 0; overflow: hidden; margin: 0; }

.aitc-years-label { font-size: 14px; color: var(--aitc-muted); white-space: nowrap; }

.aitc-years-rail { flex: 1; }
.aitc-years-track {
    position: relative;
    height: 6px;
    background: var(--aitc-border);
    border-radius: 6px;
    margin-bottom: 10px;
}
.aitc-years-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: var(--aitc-accent);
    border-radius: 6px;
    transition: width .2s;
    pointer-events: none;
}
.aitc-years-slider {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    transform: translateY(-50%);
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    cursor: pointer;
    outline: none;
}
.aitc-years-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--aitc-accent);
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(99,102,241,.4);
    transition: transform .15s;
}
.aitc-years-slider::-webkit-slider-thumb:hover { transform: scale(1.15); }
.aitc-years-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--aitc-accent);
    border: 3px solid #fff;
}

.aitc-years-steps {
    display: flex;
    justify-content: space-between;
    padding: 0 2px;
}
.aitc-years-step {
    font-size: 11px;
    color: var(--aitc-muted);
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: color .15s;
}
.aitc-years-step.active { color: var(--aitc-accent); font-weight: 700; }

.aitc-years-value {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    font-size: 14px;
    color: var(--aitc-primary);
    min-width: 50px;
    text-align: right;
    white-space: nowrap;
}

/* ================================================================
   GRID DE PLANOS
   ================================================================ */
.aitc-plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    align-items: start;
    padding-top: 44px;
    overflow: visible;
}

/* ---- Loading ---- */
.aitc-loading {
    grid-column: 1/-1;
    text-align: center;
    padding: 60px;
    color: var(--aitc-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}
.aitc-spinner {
    width: 22px;
    height: 22px;
    border: 3px solid var(--aitc-border);
    border-top-color: var(--aitc-accent);
    border-radius: 50%;
    animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- Card ---- */
.aitc-plan-card {
    background: var(--aitc-surface);
    border: 1.5px solid var(--aitc-border);
    border-radius: var(--aitc-radius);
    padding: 32px 28px;
    position: relative;
    overflow: visible;
    transition: transform .22s, box-shadow .22s, border-color .22s;
    display: flex;
    flex-direction: column;
}
.aitc-plan-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--aitc-shadow-lg);
    border-color: var(--aitc-accent);
}

/* Plano destacado */
.aitc-plan-card.featured {
    border-color: var(--aitc-accent);
    box-shadow: var(--aitc-shadow-lg);
    transform: translateY(-8px) scale(1.02);
}
.aitc-plan-card.featured:hover { transform: translateY(-12px) scale(1.02); }

/* Badge "Mais Assinado" — selo premium */
.aitc-popular-badge {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 5px 18px 5px 14px;
    border-radius: 20px;
    box-shadow: 0 3px 12px rgba(245,158,11,.45);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 5px;
}
.aitc-popular-badge::before {
    content: '🏆';
    font-size: 12px;
}

/* ---- Icones flutuantes acima do card ---- */
.aitc-float-icon-wrap {
    position: absolute;
    top: -36px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    pointer-events: none;
    z-index: 10;
}
.aitc-float-icon {
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.aitc-float-icon svg {
    width: 36px;
    height: 36px;
    display: block;
    overflow: visible;
}

/* pulse — olho piscando com aura */
@keyframes aitc-pulse {
    0%,100% { opacity:1;    filter:drop-shadow(0 0 6px currentColor) drop-shadow(0 0 14px currentColor); transform:scale(1); }
    45%     { opacity:0.12; filter:none; transform:scale(0.86); }
    55%     { opacity:0.12; filter:none; transform:scale(0.86); }
}
.aitc-float-icon--pulse { animation: aitc-pulse 2.8s ease-in-out infinite; }

/* glow — estrela brilhando */
@keyframes aitc-glow {
    0%,100% { filter:drop-shadow(0 0 4px currentColor) drop-shadow(0 0 10px currentColor); opacity:.85; }
    50%      { filter:drop-shadow(0 0 14px currentColor) drop-shadow(0 0 30px currentColor); opacity:1; }
}
.aitc-float-icon--glow { animation: aitc-glow 2.4s ease-in-out infinite; }

/* float — foguete subindo/descendo */
@keyframes aitc-float-anim {
    0%,100% { transform:translateY(0);    filter:drop-shadow(0 0 5px currentColor); }
    50%      { transform:translateY(-9px); filter:drop-shadow(0 0 16px currentColor); }
}
.aitc-float-icon--float { animation: aitc-float-anim 2.4s ease-in-out infinite; }

/* zap — raio piscando duplo */
@keyframes aitc-zap {
    0%,76%,100% { opacity:1;    filter:drop-shadow(0 0 6px currentColor); }
    79%          { opacity:0.05; filter:none; }
    82%          { opacity:1;    filter:drop-shadow(0 0 20px currentColor); }
    85%          { opacity:0.05; filter:none; }
}
.aitc-float-icon--zap { animation: aitc-zap 2.6s ease-in-out infinite; }

/* spin lenta — alvo */
@keyframes aitc-spin-slow { to { transform:rotate(360deg); } }
.aitc-float-icon--spin {
    animation: aitc-spin-slow 6s linear infinite;
    filter: drop-shadow(0 0 6px currentColor);
}

/* ---- Card Header ---- */

.aitc-plan-badge {
    display: block;
    padding: 0;
    border-radius: 0;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -.3px;
    text-transform: none;
    color: #0f172a;          /* preto para Starter e Growth */
    margin-bottom: 10px;
    text-align: left;
    background: transparent !important;
    line-height: 1.1;
}

/* Nome do plano — oculto, substituído pelo badge */
.aitc-plan-name {
    display: none;
}

.aitc-plan-desc {
    font-size: 14px;
    color: var(--aitc-muted);
    margin: 0 0 24px;
    line-height: 1.6;
    min-height: 42px;
}

/* ---- Preço ---- */
.aitc-price-block { margin-bottom: 24px; }

.aitc-price-main {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    margin-bottom: 4px;
}
.aitc-currency {
    font-size: 20px;
    font-weight: 700;
    color: var(--aitc-primary);
    line-height: 1;
    padding-bottom: 8px;
}
.aitc-amount {
    font-family: 'JetBrains Mono', monospace;
    font-size: 52px;
    font-weight: 800;
    color: var(--aitc-primary);
    line-height: 1;
    letter-spacing: -2px;
    transition: all .3s;
}
.aitc-period-suffix {
    font-size: 14px;
    color: var(--aitc-muted);
    padding-bottom: 10px;
}

.aitc-price-detail {
    font-size: 13px;
    color: var(--aitc-muted);
    min-height: 20px;
}
.aitc-price-detail .savings {
    color: var(--aitc-success);
    font-weight: 600;
}
.aitc-price-detail .original {
    text-decoration: line-through;
    margin-right: 4px;
}
.aitc-price-detail .total-label {
    color: var(--aitc-accent);
    font-weight: 600;
}

/* Nota FREE após o trial */
.aitc-free-note {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 12px;
    color: #15803d;
    margin-top: 8px;
    line-height: 1.5;
}
.aitc-free-note strong { color: #166534; }

/* Preço FREE — R$0 em verde */
.aitc-amount.free-zero { color: #16a34a; }
.aitc-free-period-badge {
    display: inline-block;
    background: #16a34a;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    letter-spacing: .5px;
    margin-left: 4px;
    vertical-align: middle;
}

/* Divider */
.aitc-divider {
    height: 1px;
    background: var(--aitc-border);
    margin: 20px 0;
}

/* ---- Features ---- */
.aitc-features-list {
    list-style: none;
    margin: 0 0 28px;
    padding: 0;
    flex: 1;
}
.aitc-features-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: var(--aitc-text);
    margin-bottom: 10px;
    line-height: 1.5;
}
.aitc-features-list li .aitc-feat-icon {
    color: var(--aitc-success);
    font-size: 15px;
    flex-shrink: 0;
    margin-top: 1px;
}

/* ---- CTA ---- */
.aitc-cta-btn {
    display: block;
    width: 100%;
    padding: 14px;
    border-radius: 10px;
    font-family: 'Sora', sans-serif;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
    border: 2px solid transparent;
    transition: all .2s;
    margin-top: auto;
}
.aitc-cta-btn.primary {
    background: var(--aitc-accent);
    color: #fff;
    box-shadow: 0 4px 14px rgba(99,102,241,.35);
}
.aitc-cta-btn.primary:hover {
    background: #4f46e5;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(99,102,241,.45);
}
.aitc-cta-btn.secondary {
    background: transparent;
    color: var(--aitc-accent);
    border-color: var(--aitc-accent);
}
.aitc-cta-btn.secondary:hover {
    background: var(--aitc-accent);
    color: #fff;
}

/* ---- Limites ---- */
.aitc-limits {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.aitc-limit-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: var(--aitc-muted);
    background: var(--aitc-surface2);
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 500;
}

/* ================================================================
   SELETOR DE DOMÍNIOS (+/-) — layout vertical
   ================================================================ */
.aitc-domain-selector {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: var(--aitc-surface2);
    border: 1px solid var(--aitc-border);
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 12px;
}

/* Linha de cima: ícone + título + tip */
.aitc-domain-label {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 14px;
    font-weight: 600;
    color: var(--aitc-text);
}
.aitc-domain-icon { font-size: 16px; flex-shrink: 0; }
.aitc-domain-tip {
    font-size: 11px;
    font-weight: 400;
    color: var(--aitc-muted);
    background: var(--aitc-border);
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: auto;
    white-space: nowrap;
}

/* Linha de baixo: controle +/- centralizado */
.aitc-domain-controls-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}

/* Controle +/- */
.aitc-qty-control {
    display: flex;
    align-items: center;
    border: 1.5px solid var(--aitc-border);
    border-radius: 8px;
    overflow: hidden;
    background: var(--aitc-surface);
}

.aitc-qty-btn {
    width: 34px;
    height: 34px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: var(--aitc-qty-bg, #e2e8f0);
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    color: var(--aitc-qty-color, #1e293b);
    transition: background .15s, color .15s, border-color .15s;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0;
}
.aitc-qty-btn:hover:not(.disabled) {
    background: var(--aitc-qty-hover-bg, #475569);
    border-color: var(--aitc-qty-hover-bg, #475569);
    color: var(--aitc-qty-hover-color, #ffffff);
}
.aitc-qty-btn.disabled {
    background: #f1f5f9;
    border-color: #e2e8f0;
    color: #cbd5e1;
    cursor: not-allowed;
}

.aitc-qty-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 16px;
    font-weight: 700;
    color: var(--aitc-primary);
    min-width: 32px;
    text-align: center;
    padding: 0 6px;
    border-left: 1px solid var(--aitc-border);
    border-right: 1px solid var(--aitc-border);
    transition: transform .15s;
}

/* Animação de bump */
@keyframes bumpUp   { 0%{transform:translateY(0)}40%{transform:translateY(-5px)}100%{transform:translateY(0)} }
@keyframes bumpDown { 0%{transform:translateY(0)}40%{transform:translateY(5px)} 100%{transform:translateY(0)} }
.aitc-qty-bump-up   { animation: bumpUp   .28s ease; }
.aitc-qty-bump-down { animation: bumpDown .28s ease; }

/* Bloco de total */
.aitc-price-total-wrapper { margin-bottom: 16px; }
.aitc-price-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    gap: 8px;
    background: linear-gradient(135deg, #eff6ff 0%, #f0fdf4 100%);
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    padding: 10px 14px;
    min-height: 40px;
}
.aitc-total-label {
    font-size: 11px;
    color: var(--aitc-muted);
    font-weight: 500;
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.aitc-total-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 16px;
    font-weight: 800;
    color: var(--aitc-accent);
    white-space: nowrap;
    flex-shrink: 0;
}

/* ================================================================
   FOOTER DA CALCULADORA
   ================================================================ */
.aitc-footer {
    text-align: center;
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid var(--aitc-border);
    color: var(--aitc-muted);
    font-size: 13px;
}

/* ================================================================
   BADGE & PLAN SUMMARY (dashboard)
   ================================================================ */
.aitrust-badge-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.aitrust-badge {
    display: inline-block;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    letter-spacing: .5px;
    font-family: 'Sora', sans-serif;
}
.aitrust-badge-expiry {
    font-size: 13px;
    color: #64748b;
}
.aitrust-badge-expiry.aitrust-badge-warning { color: #d97706; font-weight: 600; }

.aitrust-upgrade-btn {
    display: inline-block;
    background: #6366f1;
    color: #fff !important;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 20px;
    text-decoration: none;
    transition: background .2s;
}
.aitrust-upgrade-btn:hover { background: #4f46e5; }

/* Locked feature */
.aitrust-locked-feature {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f1f5f9;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 13px;
    color: #64748b;
}
.aitrust-lock-icon { font-size: 16px; }
.aitrust-lock-upgrade {
    color: #6366f1;
    font-weight: 600;
    font-size: 12px;
    text-decoration: none;
}

/* Plan Summary */
.aitrust-plan-summary {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    font-family: 'Sora', sans-serif;
}
.aitrust-ps-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-left: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}
.aitrust-ps-name { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 600; }
.aitrust-ps-expiry { font-size: 13px; color: #64748b; }
.aitrust-ps-expiry.warning { color: #d97706; font-weight: 600; }

.aitrust-features-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.aitrust-features-list li { display: flex; align-items: center; gap: 8px; font-size: 13px; padding: 6px 0; }
.aitrust-features-list li.locked { color: #94a3b8; }

.aitrust-lock-small {
    font-size: 11px;
    color: #6366f1;
    text-decoration: none;
    margin-left: auto;
    font-weight: 600;
}

.aitrust-ps-footer { margin-top: 20px; text-align: right; }

/* Admin financial page */
.aitrust-fin-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}
.aitrust-fin-stat {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
}
.aitrust-fin-stat.warning { border-top: 3px solid #f59e0b; }
.aitrust-fin-stat.danger  { border-top: 3px solid #ef4444; }
.aitrust-fin-stat.success { border-top: 3px solid #10b981; }

.aitrust-fin-stat .stat-value { font-size: 28px; font-weight: 800; color: #1e293b; }
.aitrust-fin-stat .stat-label { font-size: 12px; color: #64748b; margin-top: 4px; }

.aitrust-fin-actions { margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }

.aitrust-subs-table .aitrust-row-expiring { background: #fffbeb !important; }
.aitrust-subs-table .aitrust-row-expired  { background: #fef2f2 !important; }

.aitrust-settings-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 24px;
    margin-bottom: 24px;
}
.aitrust-settings-card h2 { margin-top: 0; border-bottom: 1px solid #e2e8f0; padding-bottom: 12px; }

/* ================================================================
   WIDGET DE SLOTS (dashboard)
   ================================================================ */
.aitrust-slots-widget {
    background: #fff;
    border: 1px solid var(--aitc-border, #e2e8f0);
    border-radius: 12px;
    padding: 16px 20px;
    font-family: 'Sora', sans-serif;
}
.aitrust-slots-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}
.aitrust-slots-icon  { font-size: 18px; }
.aitrust-slots-title { font-size: 14px; font-weight: 700; color: #1e293b; flex: 1; }
.aitrust-slots-add   {
    font-size: 12px;
    font-weight: 700;
    color: #6366f1;
    text-decoration: none;
    background: #eff6ff;
    padding: 3px 10px;
    border-radius: 20px;
    transition: background .2s;
}
.aitrust-slots-add:hover { background: #6366f1; color: #fff; }

.aitrust-slots-bar-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.aitrust-slots-bar {
    flex: 1;
    height: 8px;
    background: #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}
.aitrust-slots-fill {
    height: 100%;
    background: #6366f1;
    border-radius: 8px;
    transition: width .4s ease;
}
.aitrust-slots-fill.warning { background: #f59e0b; }
.aitrust-slots-fill.danger  { background: #ef4444; }
.aitrust-slots-pct  { font-size: 11px; font-weight: 700; color: #64748b; min-width: 30px; text-align: right; }

.aitrust-slots-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #64748b;
}
.aitrust-slots-sep   { color: #cbd5e1; }
.aitrust-slots-total { margin-left: auto; }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 768px) {
    .aitc-plans-grid { grid-template-columns: 1fr; }
    .aitc-plan-card.featured { transform: none; }
    .aitrust-features-list { grid-template-columns: 1fr; }
    .aitrust-fin-stats { grid-template-columns: 1fr 1fr; }
    .aitrust-ps-header { flex-direction: column; }
    .aitc-years-wrapper { flex-direction: column; gap: 10px; }
    .aitc-years-rail { width: 100%; }
}

@media (max-width: 480px) {
    .aitrust-fin-stats { grid-template-columns: 1fr; }
    .aitc-amount { font-size: 40px; }
}

/* ================================================================
   BADGE VERMELHO — 1 domínio incluído (FREE)
================================================================ */
.aitc-domain-tip-red {
    background: #ef4444 !important;
    color: #ffffff !important;
    font-weight: 700 !important;
}

/* ================================================================
   NOTA FREE COMPACTA COM PIPE
================================================================ */
.aitc-free-note {
    display: flex;
    align-items: center;
    gap: 0;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 13px;
    color: #15803d;
    margin-top: 8px;
    flex-wrap: wrap;
    line-height: 1.6;
}
.aitc-free-note strong { color: #166534; }
.aitc-pipe {
    display: inline-block;
    margin: 0 8px;
    color: #86efac;
    font-weight: 300;
    font-size: 16px;
    line-height: 1;
}

/* ================================================================
   CHECKOUT DRAWER
================================================================ */
body.aitc-drawer-open { overflow: hidden; }

#aitc-drawer-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,.55);
    z-index: 99990;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}
#aitc-drawer-overlay.open { display: block; animation: fadeIn .25s ease; }

@keyframes fadeIn { from{opacity:0} to{opacity:1} }

#aitc-checkout-drawer {
    position: fixed;
    top: 0;
    right: -600px;
    width: 100%;
    max-width: 560px;
    height: 100vh;
    background: #ffffff;
    z-index: 99991;
    display: flex;
    flex-direction: column;
    box-shadow: -8px 0 40px rgba(0,0,0,.18);
    transition: right .35s cubic-bezier(.4,0,.2,1);
    font-family: 'Sora', sans-serif;
}
#aitc-checkout-drawer.open { right: 0; }

/* Cabeçalho do drawer */
.aitc-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #e2e8f0;
    flex-shrink: 0;
    background: #f8fafc;
}
.aitc-drawer-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
}
.aitc-drawer-title .aitrust-badge {
    font-size: 11px;
    padding: 3px 10px;
}
.aitc-drawer-close {
    width: 34px;
    height: 34px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    font-size: 16px;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s, color .15s;
    flex-shrink: 0;
    padding: 0;
    line-height: 1;
}
.aitc-drawer-close:hover { background: #fee2e2; color: #ef4444; border-color: #fca5a5; }

/* Corpo do drawer */
.aitc-drawer-body {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

/* Resumo do pedido */
.aitc-order-summary {
    padding: 20px 24px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    flex-shrink: 0;
}
.aitc-order-summary h4 {
    margin: 0 0 12px;
    font-size: 13px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: .6px;
}
.aitc-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #475569;
    padding: 4px 0;
}
.aitc-summary-total {
    padding-top: 10px;
    margin-top: 8px;
    border-top: 1px solid #e2e8f0;
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
}
.aitc-free-drawer-note {
    margin-top: 10px;
    padding: 8px 12px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 6px;
    font-size: 13px;
    color: #15803d;
}

/* Área do botão de checkout */
.aitc-drawer-checkout-action {
    padding: 20px 24px 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.aitc-drawer-checkout-action .aitc-cta-btn {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-family: 'Sora', sans-serif;
    font-weight: 700;
}
.aitc-drawer-checkout-action .aitc-cta-btn:disabled {
    opacity: .65;
    cursor: not-allowed;
}
.aitc-drawer-secure {
    text-align: center;
    font-size: 12px;
    color: #94a3b8;
    margin: 0;
}

/* Checkout embed — não usado mais, mas mantido para compatibilidade */
#aitc-checkout-embed { display: none; }

@media (max-width: 600px) {
    #aitc-checkout-drawer { max-width: 100%; }
}

/* ================================================================
   TOOLTIP DE UPGRADE (botão + no plano FREE)
================================================================ */
.aitc-domain-controls-row {
    position: relative; /* âncora para o tooltip */
}

/* Botão + do FREE — laranja para indicar que é interativo */
.aitc-qty-free-upgrade {
    width: 34px;
    height: 34px;
    border: none;
    background: transparent;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    color: #f59e0b;
    transition: background .15s, color .15s, transform .15s;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0;
}
.aitc-qty-free-upgrade:hover {
    background: #fef3c7;
    color: #d97706;
}

/* Animação de pulso ao clicar */
@keyframes freePulse {
    0%   { transform: scale(1); }
    35%  { transform: scale(1.35); }
    70%  { transform: scale(.92); }
    100% { transform: scale(1); }
}
.aitc-qty-free-pulse { animation: freePulse .45s ease; }

/* Tooltip */
.aitc-upgrade-tooltip {
    display: none;
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: #1e293b;
    color: #fff;
    border-radius: 10px;
    padding: 10px 14px;
    white-space: nowrap;
    box-shadow: 0 8px 24px rgba(0,0,0,.22);
    z-index: 100;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-family: 'Sora', sans-serif;
    animation: tooltipIn .2s ease;
}
.aitc-upgrade-tooltip.visible {
    display: flex;
}
/* Setinha */
.aitc-upgrade-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #1e293b;
}

@keyframes tooltipIn {
    from { opacity: 0; transform: translateX(-50%) translateY(6px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.aitc-upgrade-tip-btn {
    display: inline-block;
    background: #f59e0b;
    color: #1e293b !important;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 20px;
    text-decoration: none !important;
    transition: background .15s;
}
.aitc-upgrade-tip-btn:hover {
    background: #fbbf24;
}

/* ================================================================
   TOOLTIP UPGRADE — botão + do plano FREE
================================================================ */
.aitc-qty-free-plus {
    width: 34px;
    height: 34px;
    border: none;
    background: transparent;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    color: #f59e0b;
    transition: background .15s, color .15s;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0;
}
.aitc-qty-free-plus:hover { background: #fef3c7; color: #d97706; }

.aitc-upgrade-tooltip {
    display: none;
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    background: #1e293b;
    color: #fff;
    border-radius: 10px;
    padding: 12px 16px;
    white-space: nowrap;
    z-index: 200;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 200px;
    box-shadow: 0 8px 24px rgba(0,0,0,.25);
    font-family: 'Sora', sans-serif;
}
.aitc-upgrade-tooltip.aitc-utip-open {
    display: flex;
    animation: utipIn .18s ease;
}
@keyframes utipIn {
    from { opacity: 0; transform: translateX(-50%) translateY(6px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.aitc-utip-arrow {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 7px solid transparent;
    border-top-color: #1e293b;
}
.aitc-utip-text { font-size: 13px; color: #cbd5e1; }
.aitc-utip-btn {
    display: inline-block;
    background: #f59e0b;
    color: #1e293b !important;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 20px;
    text-decoration: none !important;
    transition: background .15s;
}
.aitc-utip-btn:hover { background: #fbbf24; }

/* ================================================================
   TIER COLOR SYSTEM — Starter / Growth / Domination  v4.1.0
   ================================================================ */

/* ---- Starter (verde) ---- */
:root {
    --aitc-starter-color:   #00b050;
    --aitc-starter-light:   #e6f7ed;
    --aitc-starter-glow:    rgba(0,176,80,.18);
    --aitc-growth-color:    #2563eb;
    --aitc-growth-light:    #eff6ff;
    --aitc-growth-glow:     rgba(37,99,235,.18);
    --aitc-domination-color:#7c3aed;
    --aitc-domination-light:#f5f3ff;
    --aitc-domination-glow: rgba(124,58,237,.22);
}

/* Tagline estratégica */
.aitc-plan-tagline {
    font-size: 13px;
    font-style: italic;
    color: var(--aitc-muted);
    margin: 0 0 8px;
    line-height: 1.45;
    font-weight: 700;
    text-align: center;
}

/* ---- STARTER ---- */
.aitc-tier-starter {
    border-top: 3px solid var(--aitc-starter-color);
}
.aitc-tier-starter:hover {
    border-color: var(--aitc-starter-color);
    box-shadow: 0 12px 40px var(--aitc-starter-glow);
}
.aitc-tier-starter .aitc-cta-btn.secondary {
    background: var(--aitc-starter-color);
    color: #fff;
    border: none;
}
.aitc-tier-starter .aitc-cta-btn.secondary:hover {
    background: #009040;
}
.aitc-tier-starter .aitc-total-value {
    color: var(--aitc-starter-color);
}
.aitc-tier-starter .aitc-feat-icon {
    color: var(--aitc-starter-color);
}

/* ---- GROWTH (featured) ---- */
.aitc-tier-growth {
    border-top: 3px solid var(--aitc-growth-color);
}
.aitc-tier-growth.featured {
    border-color: var(--aitc-growth-color);
    box-shadow: 0 12px 40px var(--aitc-growth-glow);
}
.aitc-tier-growth .aitc-cta-btn.primary,
.aitc-tier-growth .aitc-cta-btn.secondary {
    background: var(--aitc-growth-color);
    color: #fff;
    border: none;
}
.aitc-tier-growth .aitc-cta-btn:hover {
    background: #1d4fd8;
}
.aitc-tier-growth .aitc-total-value {
    color: var(--aitc-growth-color);
}
.aitc-tier-growth .aitc-feat-icon {
    color: var(--aitc-growth-color);
}
.aitc-tier-growth .aitc-popular-badge {
    background: linear-gradient(135deg, var(--aitc-growth-color) 0%, #1d4fd8 100%);
    box-shadow: 0 3px 12px var(--aitc-growth-glow);
}

/* ---- DOMINATION (premium roxo) ---- */
.aitc-tier-domination {
    border-top: 3px solid var(--aitc-domination-color);
    background: linear-gradient(160deg, #faf8ff 0%, #fff 60%);
}
.aitc-tier-domination:hover {
    border-color: var(--aitc-domination-color);
    box-shadow: 0 16px 48px var(--aitc-domination-glow);
}
/* Título Domination em roxo */
.aitc-tier-domination .aitc-plan-badge {
    color: var(--aitc-domination-color) !important;
    background: transparent !important;
}
.aitc-tier-domination .aitc-cta-btn.secondary {
    background: linear-gradient(135deg, var(--aitc-domination-color) 0%, #6d28d9 100%);
    color: #fff;
    border: none;
    box-shadow: 0 4px 16px var(--aitc-domination-glow);
}
.aitc-tier-domination .aitc-cta-btn.secondary:hover {
    background: linear-gradient(135deg, #6d28d9 0%, #5b21b6 100%);
    box-shadow: 0 6px 20px var(--aitc-domination-glow);
    transform: translateY(-1px);
}
.aitc-tier-domination .aitc-total-value {
    color: var(--aitc-domination-color);
}
.aitc-tier-domination .aitc-feat-icon {
    color: var(--aitc-domination-color);
}
/* Popular badge override para Domination */
.aitc-tier-domination .aitc-popular-badge {
    background: linear-gradient(135deg, var(--aitc-domination-color) 0%, #9333ea 100%);
    box-shadow: 0 3px 12px var(--aitc-domination-glow);
}

/* ---- CTA buttons base ---- */
.aitc-tier-starter .aitc-cta-btn,
.aitc-tier-growth .aitc-cta-btn,
.aitc-tier-domination .aitc-cta-btn {
    font-weight: 800;
    letter-spacing: .3px;
    transition: background .2s, box-shadow .2s, transform .15s;
}

/* ---- Separador com acento de cor por tier ---- */
.aitc-tier-starter .aitc-divider  { border-color: var(--aitc-starter-light); }
.aitc-tier-growth .aitc-divider   { border-color: var(--aitc-growth-light); }
.aitc-tier-domination .aitc-divider { border-color: var(--aitc-domination-light); }

/* ================================================================
   ÍCONE DO PLANO (configurado via admin)
   ================================================================ */
.aitc-plan-icon-wrap {
    margin-bottom: 12px;
}
.aitc-plan-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
    display: block;
}
