/* estilos/src/pages/payment.css */
/* Página de Pagamento / Plano - PsicoDados */

/* ─────────────────────────────────────────── */
/*  PAYMENT PAGE LAYOUT                       */
/* ─────────────────────────────────────────── */

.payment-page {
    min-height: 100vh;
    background: var(--bg-primary, #0f0f1a);
    color: var(--text-primary, #e2e8f0);
    padding-bottom: 3rem;
}

.payment-hero {
    background: var(--hero-bg-payment, linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%));
    padding: 2.5rem 1rem 3rem;
    text-align: center;
    border-bottom: 1px solid rgba(100, 210, 255, 0.15);
    position: relative;
    overflow: hidden;
}

.payment-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at center, rgba(100, 210, 255, 0.05) 0%, transparent 60%);
    pointer-events: none;
}

.payment-hero h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
}

.payment-hero p {
    color: rgba(255,255,255,0.7);
    font-size: 1rem;
}

.sandbox-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(251, 191, 36, 0.15);
    border: 1px solid rgba(251, 191, 36, 0.4);
    color: #fbbf24;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.3rem 0.75rem;
    border-radius: 100px;
    margin-top: 0.75rem;
}

.sandbox-badge svg {
    width: 14px;
    height: 14px;
}

.payment-container {
    max-width: 1400px;
    width: 90%;
    margin: 2.5rem auto;
    padding: 0 1.25rem;
}

/* ─────────────────────────────────────────── */
/*  BARRA DE CONTROLE SUPERIOR                */
/* ─────────────────────────────────────────── */

.payment-control-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1rem;
}

.control-bar-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex: 1;
}

.control-bar-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.control-bar-title svg {
    width: 24px;
    height: 24px;
    color: #64d2ff;
}

.control-bar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Responsividade da barra de controle */
@media (max-width: 768px) {
    .payment-control-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .control-bar-left {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .control-bar-right {
        justify-content: flex-start;
    }
    
    .control-bar-title {
        font-size: 1.1rem;
    }
}

/* ─────────────────────────────────────────── */
/*  STATUS DO PLANO ATIVO                     */
/* ─────────────────────────────────────────── */

.plan-status-card {
    background: linear-gradient(135deg, #0d2b4e 0%, #0a3d2e 100%);
    border: 1px solid rgba(52, 211, 153, 0.3);
    border-radius: 1.25rem;
    padding: 2rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.plan-status-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, #34d399, #10b981);
    border-radius: 4px 0 0 4px;
}

.plan-status-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.plan-status-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.plan-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(52, 211, 153, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.plan-status-title h2 {
    color: #fff;
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
}

.plan-status-title p {
    color: rgba(255,255,255,0.6);
    font-size: 0.85rem;
    margin: 0;
}

.badge-status {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 1rem;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-status.active {
    background: rgba(52, 211, 153, 0.15);
    border: 1px solid rgba(52, 211, 153, 0.4);
    color: #34d399;
}

.badge-status.pending {
    background: rgba(251, 191, 36, 0.15);
    border: 1px solid rgba(251, 191, 36, 0.4);
    color: #fbbf24;
}

.badge-status.overdue {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #ef4444;
}

.badge-status.inactive, .badge-status.cancelled {
    background: rgba(100,116,139, 0.15);
    border: 1px solid rgba(100,116,139,0.4);
    color: #94a3b8;
}

.badge-status .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    animation: pulse-dot 1.5s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.plan-status-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.plan-detail-item {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 0.75rem;
    padding: 1rem;
}

.plan-detail-item .label {
    color: rgba(255,255,255,0.5);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.35rem;
}

.plan-detail-item .value {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
}

.plan-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

/* ─────────────────────────────────────────── */
/*  PIX QR CODE PENDENTE                      */
/* ─────────────────────────────────────────── */

.pix-pending-card {
    background: linear-gradient(135deg, #1a1a2e 0%, #1a2340 100%);
    border: 1px solid rgba(100, 210, 255, 0.2);
    border-radius: 1.25rem;
    padding: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.pix-pending-card h3 {
    color: #64d2ff;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.pix-pending-card p.sub {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.qr-code-wrapper {
    display: inline-block;
    background: #fff;
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.qr-code-wrapper img {
    width: 200px;
    height: 200px;
    display: block;
}

.pix-payload-box {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 0.75rem;
    padding: 1rem;
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    color: #a0aec0;
    word-break: break-all;
    text-align: left;
    margin-bottom: 1rem;
    max-height: 80px;
    overflow-y: auto;
}

/* ─────────────────────────────────────────── */
/*  SELEÇÃO DE PLANO & PAGAMENTO              */
/* ─────────────────────────────────────────── */

.payment-section-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.payment-section-title span {
    display: inline-block;
    width: 28px;
    height: 28px;
    background: rgba(100, 210, 255, 0.1);
    border: 1px solid rgba(100, 210, 255, 0.3);
    border-radius: 50%;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64d2ff;
    font-weight: 700;
}

.plan-cards-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.plan-select-card {
    background: rgba(255,255,255,0.04);
    border: 2px solid rgba(255,255,255,0.08);
    border-radius: 1rem;
    padding: 1.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.plan-select-card:hover {
    border-color: rgba(100, 210, 255, 0.4);
    background: rgba(100, 210, 255, 0.04);
    transform: translateY(-2px);
}

.plan-select-card.selected {
    border-color: #64d2ff;
    background: rgba(100, 210, 255, 0.08);
    box-shadow: 0 0 0 1px rgba(100, 210, 255, 0.3), 0 0 20px rgba(100, 210, 255, 0.1);
}

.plan-select-card.recommended {
    border-color: rgba(167, 139, 250, 0.5);
}

.recommended-badge {
    position: absolute;
    top: -10px;
    right: 12px;
    background: linear-gradient(90deg, #7c3aed, #a78bfa);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.plan-select-card .plan-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.25rem;
}

.plan-select-card .plan-price {
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.plan-select-card .plan-price small {
    font-size: 0.8rem;
    font-weight: 400;
    color: rgba(255,255,255,0.5);
}

.plan-select-card.current-plan {
    border-color: rgba(52, 211, 153, 0.5);
    opacity: 0.6;
    cursor: not-allowed;
}

.plan-select-card.current-plan::after {
    content: 'Plano Atual';
    position: absolute;
    bottom: 8px;
    right: 10px;
    font-size: 0.7rem;
    color: #34d399;
    font-weight: 600;
}

/* ─────────────────────────────────────────── */
/*  MÉTODOS DE PAGAMENTO                      */
/* ─────────────────────────────────────────── */

.payment-methods {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 1.25rem;
    padding: 1.75rem;
    margin-bottom: 2rem;
}

.method-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    background: rgba(0,0,0,0.2);
    padding: 4px;
    border-radius: 0.75rem;
    width: fit-content;
}

.method-tab {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.6rem 1.2rem;
    border-radius: 0.6rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    background: transparent;
    color: rgba(255,255,255,0.5);
    transition: all 0.2s ease;
}

.method-tab:hover {
    color: rgba(255,255,255,0.8);
}

.method-tab.active {
    background: rgba(100, 210, 255, 0.1);
    color: #64d2ff;
    border: 1px solid rgba(100, 210, 255, 0.25);
}

.method-tab svg {
    width: 18px;
    height: 18px;
}

.method-panel {
    display: none;
}

.method-panel.active {
    display: block;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* PIX Panel */
.pix-panel-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
}

.pix-icon {
    width: 64px;
    height: 64px;
    background: rgba(100, 210, 255, 0.1);
    border: 1px solid rgba(100, 210, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
}

.pix-panel-content h3 {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
}

.pix-panel-content p {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    max-width: 420px;
    margin: 0;
}

.pix-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
    width: 100%;
    max-width: 380px;
}

.pix-info-list li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: rgba(255,255,255,0.7);
    font-size: 0.85rem;
    padding: 0.4rem 0;
}

.pix-info-list li::before {
    content: '✓';
    color: #34d399;
    font-weight: 700;
    flex-shrink: 0;
}

/* Cartão Panel */
.card-panel-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
}

.card-icon {
    width: 64px;
    height: 64px;
    background: rgba(167, 139, 250, 0.1);
    border: 1px solid rgba(167, 139, 250, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
}

.card-panel-content h3 {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
}

.card-panel-content p {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    max-width: 420px;
    margin: 0;
}

.security-badges {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 0.5rem;
}

.security-badge {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.5);
    background: rgba(255,255,255,0.04);
    padding: 0.3rem 0.65rem;
    border-radius: 100px;
    border: 1px solid rgba(255,255,255,0.08);
}

/* ─────────────────────────────────────────── */
/*  ORDER SUMMARY                             */
/* ─────────────────────────────────────────── */

.order-summary {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.order-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
}

.order-row.total {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 0.5rem;
    padding-top: 1rem;
    color: #fff;
    font-weight: 700;
    font-size: 1.05rem;
}

.order-row.total .price {
    color: #64d2ff;
    font-size: 1.3rem;
}

/* ─────────────────────────────────────────── */
/*  BOTÕES                                    */
/* ─────────────────────────────────────────── */

.btn-payment-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #0ea5e9, #38bdf8);
    color: #fff;
    border: none;
    border-radius: 0.875rem;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-payment-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(14, 165, 233, 0.35);
}

.btn-payment-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-payment-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem 1.25rem;
    background: rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.7);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-payment-secondary:hover {
    background: rgba(255,255,255,0.09);
    color: #fff;
}

.btn-payment-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem 1.25rem;
    background: rgba(239,68,68,0.1);
    color: #ef4444;
    border: 1px solid rgba(239,68,68,0.25);
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-payment-danger:hover {
    background: rgba(239,68,68,0.18);
}

/* ─────────────────────────────────────────── */
/*  LOADER & SUCCESS STATES                   */
/* ─────────────────────────────────────────── */

.payment-loading {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2rem;
    text-align: center;
}

.payment-loading.show {
    display: flex;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(100, 210, 255, 0.1);
    border-top-color: #64d2ff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.payment-success-inline {
    background: rgba(52, 211, 153, 0.08);
    border: 1px solid rgba(52, 211, 153, 0.25);
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    animation: fadeIn 0.3s ease;
}

.payment-success-inline h3 {
    color: #34d399;
    margin-bottom: 0.5rem;
}

.payment-success-inline p {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
}

/* ─────────────────────────────────────────── */
/*  ALERT / MESSAGE BOXES                     */
/* ─────────────────────────────────────────── */

@keyframes alertSlideIn {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.alert-success,
.alert-error,
.alert-warning,
.alert-info {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 0.9rem 1rem 0.9rem 1.1rem;
    border-radius: 12px;
    font-size: 0.875rem;
    line-height: 1.55;
    margin-bottom: 1.25rem;
    position: relative;
    border-left: 3.5px solid;
    animation: alertSlideIn 0.22s ease;
}

.alert-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
}

.alert-icon svg {
    width: 18px;
    height: 18px;
}

.alert-body {
    flex: 1;
    min-width: 0;
}

.alert-body strong {
    font-weight: 600;
}

.alert-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0 0.15rem;
    opacity: 0.4;
    font-size: 1.15rem;
    line-height: 1;
    flex-shrink: 0;
    color: currentColor;
    transition: opacity 0.15s;
    margin-top: -1px;
    align-self: flex-start;
}
.alert-close:hover { opacity: 0.85; }

/* Variantes de cor */
.alert-success {
    background: rgba(52, 211, 153, 0.08);
    border-color: #34d399;
    color: #a7f3d0;
}
.alert-error {
    background: rgba(239, 68, 68, 0.09);
    border-color: #f87171;
    color: #fca5a5;
}
.alert-warning {
    background: rgba(251, 191, 36, 0.08);
    border-color: #fbbf24;
    color: #fde68a;
}
.alert-info {
    background: rgba(100, 210, 255, 0.08);
    border-color: #64d2ff;
    color: #a5d8ff;
}

/* ─────────────────────────────────────────── */
/*  LAYOUT DE 2 COLUNAS (telas grandes)       */
/* ─────────────────────────────────────────── */

.payment-two-column-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (min-width: 1024px) {
    .payment-two-column-layout {
        grid-template-columns: 1.4fr 1fr;
        align-items: start;
    }
    
    .payment-two-column-layout .payment-methods {
        margin-bottom: 0;
    }
    
    .payment-summary-column {
        position: sticky;
        top: 2rem;
    }
}

.payment-summary-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* ─────────────────────────────────────────── */
/*  RESPONSIVE                                */
/* ─────────────────────────────────────────── */

@media (max-width: 768px) {
    .payment-container {
        width: 95%;
        padding: 0 0.75rem;
    }
    
    .payment-hero {
        padding: 2rem 1rem;
    }
}

@media (max-width: 600px) {
    .payment-hero h1 { font-size: 1.5rem; }
    .plan-status-header { flex-direction: column; }
    .plan-detail-item { padding: 0.75rem; }
    .method-tabs { 
        flex-direction: column; 
        width: 100%; 
    }
    .method-tab { justify-content: center; }
    .plan-cards-row { grid-template-columns: 1fr; }
    
    .payment-section-title {
        font-size: 1rem;
    }
    
    .payment-section-title span {
        width: 24px;
        height: 24px;
        font-size: 0.75rem;
    }
}

/* ─────────────────────────────────────────── */
/*  PLAN BANNER (em outros dashboards)        */
/* ─────────────────────────────────────────── */

.plan-notice-banner {
    background: linear-gradient(90deg, rgba(100, 210, 255, 0.08) 0%, rgba(167, 139, 250, 0.08) 100%);
    border-bottom: 1px solid rgba(100, 210, 255, 0.15);
    padding: 0.6rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.75);
}

.plan-notice-banner a {
    color: #64d2ff;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid rgba(100, 210, 255, 0.3);
}

.plan-notice-banner a:hover {
    color: #a5d8ff;
}

.plan-notice-banner.has-plan {
    background: linear-gradient(90deg, rgba(52, 211, 153, 0.05) 0%, rgba(16, 185, 129, 0.05) 100%);
    border-bottom-color: rgba(52, 211, 153, 0.1);
    color: rgba(52, 211, 153, 0.8);
}

.plan-notice-banner .dot-active {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 6px #34d399;
    flex-shrink: 0;
}

/* ═══════════════════════════════════════════ */
/*  TEMA CLARO — overrides completos          */
/* ═══════════════════════════════════════════ */

[data-theme="light"] .payment-page {
    background: #f1f5f9;
    color: #1e293b;
}

[data-theme="light"] .payment-hero {
    border-bottom-color: rgba(99, 102, 241, 0.2);
}

[data-theme="light"] .payment-hero h1 { color: #fff; }
[data-theme="light"] .payment-hero p  { color: rgba(255,255,255,0.85); }

/* Barra de controle */
[data-theme="light"] .payment-control-bar {
    background: #fff;
    border-color: rgba(0,0,0,0.08);
}
[data-theme="light"] .control-bar-title {
    color: #1e293b;
}

/* Container / seções */
[data-theme="light"] .payment-section-title {
    color: #1e293b;
}
[data-theme="light"] .payment-section-title span {
    background: rgba(79, 70, 229, 0.1);
    border-color: rgba(79, 70, 229, 0.3);
    color: #4f46e5;
}

/* ── Plan status card (plano ativo) ── */
[data-theme="light"] .plan-status-card {
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    border-color: rgba(52, 211, 153, 0.45);
    color: #1e293b;
}
[data-theme="light"] .plan-status-title h2 { color: #1e293b; }
[data-theme="light"] .plan-status-title p  { color: #64748b; }
[data-theme="light"] .plan-icon {
    background: rgba(52, 211, 153, 0.18);
}
[data-theme="light"] .plan-detail-item {
    background: rgba(0,0,0,0.03);
    border-color: rgba(0,0,0,0.08);
}
[data-theme="light"] .plan-detail-item .label { color: #94a3b8; }
[data-theme="light"] .plan-detail-item .value { color: #1e293b; }

/* ── PIX pending card ── */
[data-theme="light"] .pix-pending-card {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-color: rgba(14, 165, 233, 0.35);
    color: #1e293b;
}
[data-theme="light"] .pix-pending-card h3  { color: #0369a1; }
[data-theme="light"] .pix-pending-card .sub { color: #64748b; }
[data-theme="light"] .pix-payload-box {
    background: rgba(0,0,0,0.04);
    border-color: rgba(0,0,0,0.1);
    color: #334155;
}

/* ── Seleção de plano ── */
[data-theme="light"] .plan-select-card {
    background: #ffffff;
    border-color: rgba(0,0,0,0.1);
    color: #1e293b;
}
[data-theme="light"] .plan-select-card:hover {
    border-color: rgba(79, 70, 229, 0.45);
    background: rgba(79, 70, 229, 0.03);
}
[data-theme="light"] .plan-select-card.selected {
    border-color: #4f46e5;
    background: rgba(79, 70, 229, 0.06);
    box-shadow: 0 0 0 1px rgba(79, 70, 229, 0.25), 0 0 20px rgba(79, 70, 229, 0.08);
}
[data-theme="light"] .plan-select-card .plan-name  { color: #64748b; }
[data-theme="light"] .plan-select-card .plan-price { color: #1e293b; }
[data-theme="light"] .plan-select-card .plan-price small { color: #94a3b8; }

/* ── Métodos de pagamento ── */
[data-theme="light"] .payment-methods {
    background: #ffffff;
    border-color: rgba(0,0,0,0.08);
}
[data-theme="light"] .method-tabs {
    background: rgba(0,0,0,0.05);
}
[data-theme="light"] .method-tab {
    color: #475569;
}
[data-theme="light"] .method-tab:hover {
    color: #1e293b;
}
[data-theme="light"] .method-tab.active {
    background: rgba(79, 70, 229, 0.1);
    color: #4f46e5;
    border-color: rgba(79, 70, 229, 0.25);
}
[data-theme="light"] .pix-icon {
    background: rgba(79, 70, 229, 0.1);
    border-color: rgba(79, 70, 229, 0.25);
}
[data-theme="light"] .pix-panel-content h3  { color: #1e293b; }
[data-theme="light"] .pix-panel-content p   { color: #64748b; }
[data-theme="light"] .pix-info-list li      { color: #475569; }
[data-theme="light"] .card-icon {
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.25);
}
[data-theme="light"] .card-panel-content h3 { color: #1e293b; }
[data-theme="light"] .card-panel-content p  { color: #64748b; }
[data-theme="light"] .security-badge {
    color: #64748b;
    background: rgba(0,0,0,0.04);
    border-color: rgba(0,0,0,0.07);
}

/* ── Order summary ── */
[data-theme="light"] .order-summary {
    background: #ffffff;
    border-color: rgba(0,0,0,0.08);
}
[data-theme="light"] .order-row          { color: #475569; }
[data-theme="light"] .order-row.total    { color: #1e293b; }
[data-theme="light"] .order-row.total    { border-top-color: rgba(0,0,0,0.08); }
[data-theme="light"] .order-row.total .price { color: #4f46e5; }

/* ── Botão secondary ── */
[data-theme="light"] .btn-payment-secondary {
    background: rgba(0,0,0,0.04);
    color: #475569;
    border-color: rgba(0,0,0,0.1);
}
[data-theme="light"] .btn-payment-secondary:hover {
    background: rgba(0,0,0,0.08);
    color: #1e293b;
}

/* ── Spinner ── */
[data-theme="light"] .spinner {
    border-color: rgba(79, 70, 229, 0.1);
    border-top-color: #4f46e5;
}

/* ── Alertas ── */
[data-theme="light"] .alert-warning {
    background: rgba(245, 158, 11, 0.07);
    border-color: #d97706;
    color: #92400e;
}
[data-theme="light"] .alert-success {
    background: rgba(16, 185, 129, 0.07);
    border-color: #059669;
    color: #065f46;
}
[data-theme="light"] .alert-error {
    background: rgba(239, 68, 68, 0.07);
    border-color: #dc2626;
    color: #7f1d1d;
}
[data-theme="light"] .alert-info {
    background: rgba(59, 130, 246, 0.07);
    border-color: #2563eb;
    color: #1e3a8a;
}
[data-theme="light"] .alert-close {
    color: currentColor;
}

/* ── payment-success-inline ── */
[data-theme="light"] .payment-success-inline {
    background: #f0fdf4;
    border-color: rgba(16, 185, 129, 0.35);
}
[data-theme="light"] .payment-success-inline h3 { color: #059669; }
[data-theme="light"] .payment-success-inline p  { color: #475569; }

/* ── Plan notice banner (dashboards) ── */
[data-theme="light"] .plan-notice-banner {
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.07) 0%, rgba(139, 92, 246, 0.07) 100%);
    border-bottom-color: rgba(99, 102, 241, 0.15);
    color: #475569;
}
[data-theme="light"] .plan-notice-banner a { color: #4f46e5; border-bottom-color: rgba(79, 70, 229, 0.3); }
[data-theme="light"] .plan-notice-banner a:hover { color: #3730a3; }
[data-theme="light"] .plan-notice-banner.has-plan { color: #065f46; }

/* ── payment_details específicos ── */
[data-theme="light"] .status-hero        { color: #1e293b !important; }
[data-theme="light"] .status-hero h2     { color: #1e293b !important; }
[data-theme="light"] .status-hero-meta   { color: #64748b !important; }
[data-theme="light"] .info-grid .info-cell {
    background: #ffffff;
    border-color: rgba(0,0,0,0.08);
}
[data-theme="light"] .info-cell .lbl     { color: #94a3b8; }
[data-theme="light"] .info-cell .val     { color: #1e293b; }
[data-theme="light"] .info-cell .val.mono { color: #64748b; }
[data-theme="light"] .cal-card {
    background: #ffffff;
    border-color: rgba(0,0,0,0.08);
}
[data-theme="light"] .cal-info h4        { color: #1e293b; }
[data-theme="light"] .cal-info p         { color: #64748b; }
[data-theme="light"] .cal-info p strong  { color: #1e293b; }
[data-theme="light"] .sec-block {
    background: #ffffff;
    border-color: rgba(0,0,0,0.08);
}
[data-theme="light"] .sec-block h3       { color: #334155; }
[data-theme="light"] .hist-table th      { color: #94a3b8; border-bottom-color: rgba(0,0,0,0.08); }
[data-theme="light"] .hist-table td      { color: #475569; border-bottom-color: rgba(0,0,0,0.04); }
[data-theme="light"] .hist-table tr:hover td { background: rgba(0,0,0,0.02); }
[data-theme="light"] .ext-btn {
    background: rgba(0,0,0,0.04);
    color: #475569;
    border-color: rgba(0,0,0,0.08);
}
[data-theme="light"] .ext-btn:hover { background: rgba(0,0,0,0.08); color: #1e293b; }
[data-theme="light"] .user-info h4  { color: #1e293b; }
[data-theme="light"] .user-info p   { color: #94a3b8; }
[data-theme="light"] .asaas-alert.info {
    background: #eff6ff;
    border-color: rgba(59, 130, 246, 0.3);
    color: #1e40af;
}
[data-theme="light"] .asaas-alert.warn {
    background: #fffbeb;
    border-color: rgba(245, 158, 11, 0.3);
    color: #92400e;
}
[data-theme="light"] .asaas-alert.err {
    background: #fef2f2;
    border-color: rgba(239, 68, 68, 0.3);
    color: #7f1d1d;
}
[data-theme="light"] .asaas-alert.ok {
    background: #f0fdf4;
    border-color: rgba(16, 185, 129, 0.3);
    color: #065f46;
}
[data-theme="light"] .empty-st      { color: #94a3b8; }
[data-theme="light"] .sbx-ribbon {
    background: #fffbeb;
    border-color: rgba(245, 158, 11, 0.3);
    color: #92400e;
}
