/**
 * Wizard de Cadastro Forstore
 * Design inspirado na Nuvemshop, adaptado à identidade Forstore
 * Mobile-first, responsivo
 */

/* ============================================
   CSS Variables
============================================ */
:root {
    /* Cores do fundo (gradiente azul escuro) */
    --wizard-bg-start: #0a1628;
    --wizard-bg-mid: #0d1f4d;
    --wizard-bg-end: #0d47a1;

    /* Cores Forstore */
    --primary: #0057D9;
    --primary-light: #3b82f6;
    --primary-dark: #0040a3;
    --secondary: #FF3366;
    --secondary-dark: #e12154;

    /* Cards e superfícies */
    --card-bg: rgba(255, 255, 255, 0.06);
    --card-bg-hover: rgba(255, 255, 255, 0.1);
    --card-border: rgba(255, 255, 255, 0.12);
    --card-border-hover: rgba(255, 255, 255, 0.25);

    /* Inputs */
    --input-bg: rgba(255, 255, 255, 0.08);
    --input-bg-focus: rgba(255, 255, 255, 0.12);
    --input-border: rgba(255, 255, 255, 0.15);
    --input-border-focus: rgba(255, 255, 255, 0.4);
    --input-border-error: #ef4444;

    /* Texto */
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.75);
    --text-muted: rgba(255, 255, 255, 0.5);
    --text-placeholder: rgba(255, 255, 255, 0.4);

    /* Estados */
    --success: #22c55e;
    --success-bg: rgba(34, 197, 94, 0.15);
    --error: #ef4444;
    --error-bg: rgba(239, 68, 68, 0.15);
    --warning: #f59e0b;

    /* Outros */
    --border-radius: 12px;
    --border-radius-lg: 16px;
    --border-radius-xl: 24px;
    --transition: 0.2s ease;
    --shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

/* ============================================
   Reset e Base
============================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, var(--wizard-bg-start) 0%, var(--wizard-bg-mid) 50%, var(--wizard-bg-end) 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--primary-light);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--text-primary);
}

img {
    max-width: 100%;
    height: auto;
}

/* ============================================
   Layout Principal
============================================ */
.wizard-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 1rem;
}

.wizard-header {
    padding: 1.5rem 0;
    text-align: center;
}

.wizard-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.wizard-logo-mark {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.25rem;
    font-family: 'Poppins', sans-serif;
}

.wizard-logo-text {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 0.02em;
}

.wizard-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
}

.wizard-card {
    width: 100%;
    max-width: 480px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius-xl);
    padding: 2rem;
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow);
}

.wizard-card-lg {
    max-width: 800px;
}

.wizard-card-xl {
    max-width: 1100px;
}

/* ============================================
   Títulos
============================================ */
.wizard-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-align: center;
}

.wizard-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
    text-align: center;
    margin-bottom: 2rem;
}

/* ============================================
   Formulários
============================================ */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.form-label-required::after {
    content: ' *';
    color: var(--secondary);
}

.form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    font-family: inherit;
    color: var(--text-primary);
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: var(--border-radius);
    transition: all var(--transition);
    outline: none;
}

.form-control::placeholder {
    color: var(--text-placeholder);
}

.form-control:focus {
    background: var(--input-bg-focus);
    border-color: var(--input-border-focus);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.form-control:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    color: #666;
}

.form-control.is-invalid {
    border-color: var(--input-border-error);
}

.form-control.is-valid {
    border-color: var(--success);
}

/* Input com ícone */
.input-group {
    position: relative;
}

.input-group .form-control {
    padding-right: 3rem;
}

.input-group-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    cursor: pointer;
    transition: color var(--transition);
}

.input-group-icon:hover {
    color: var(--text-primary);
}

/* Textarea */
textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

/* Select */
select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.5)' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* Mensagens de erro/sucesso */
.form-text {
    font-size: 0.8125rem;
    margin-top: 0.375rem;
    color: var(--text-muted);
}

.form-error {
    color: var(--error);
}

.form-success {
    color: var(--success);
}

/* ============================================
   Botões
============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

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

.btn-primary {
    background: linear-gradient(130deg, var(--secondary), var(--primary));
    color: white;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.35);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(59, 130, 246, 0.45);
}

.btn-secondary {
    background: var(--card-bg);
    color: var(--text-primary);
    border: 1px solid var(--card-border);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--card-bg-hover);
    border-color: var(--card-border-hover);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--card-border);
}

.btn-outline:hover:not(:disabled) {
    background: var(--card-bg);
    border-color: var(--card-border-hover);
}

.btn-link {
    background: transparent;
    color: var(--primary-light);
    padding: 0.5rem;
}

.btn-link:hover {
    color: var(--text-primary);
}

.btn-block {
    width: 100%;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-sm {
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
}

/* ============================================
   Checkboxes e Options
============================================ */
.option-card {
    display: block;
    padding: 1rem 1.25rem;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all var(--transition);
    margin-bottom: 0.75rem;
    user-select: none;
    -webkit-user-select: none;
    position: relative;
}

.option-card * {
    pointer-events: none;
}

.option-card:hover {
    background: var(--card-bg-hover);
    border-color: var(--card-border-hover);
}

.option-card.selected {
    background: rgba(59, 130, 246, 0.15);
    border-color: var(--primary-light);
}

.option-card input[type="checkbox"],
.option-card input[type="radio"] {
    display: none;
}

.option-card-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.option-card-check {
    width: 24px;
    height: 24px;
    border: 2px solid var(--card-border);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    flex-shrink: 0;
}

.option-card.selected .option-card-check {
    background: var(--primary);
    border-color: var(--primary);
}

.option-card-check svg {
    width: 14px;
    height: 14px;
    opacity: 0;
    transition: opacity var(--transition);
}

.option-card.selected .option-card-check svg {
    opacity: 1;
}

.option-card-text {
    flex: 1;
}

.option-card-title {
    font-weight: 500;
    margin-bottom: 0.125rem;
}

.option-card-desc {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

/* ============================================
   Indicador de Progresso
============================================ */
.progress-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.progress-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--card-border);
    transition: all var(--transition);
}

.progress-dot.active {
    background: var(--primary);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2);
}

.progress-dot.completed {
    background: var(--success);
}

/* ============================================
   Alerts
============================================ */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.alert-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

.alert-content {
    flex: 1;
}

.alert-success {
    background: var(--success-bg);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #86efac;
}

.alert-error {
    background: var(--error-bg);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

.alert-warning {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #fcd34d;
}

/* ============================================
   Planos (Etapa 5.1)
============================================ */
.billing-toggle {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.25rem;
    background: var(--card-bg);
    border-radius: 999px;
    margin-bottom: 2rem;
}

.billing-option {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    border: none;
    background: transparent;
    color: var(--text-muted);
    border-radius: 999px;
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.billing-option:hover {
    color: var(--text-primary);
}

.billing-option.active {
    background: linear-gradient(130deg, var(--secondary), var(--primary));
    color: white;
}

.billing-discount {
    font-size: 0.7rem;
    padding: 0.125rem 0.375rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 999px;
}

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

.plano-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    position: relative;
    cursor: pointer;
    transition: all var(--transition);
}

.plano-card:hover {
    background: var(--card-bg-hover);
    border-color: var(--card-border-hover);
    transform: translateY(-2px);
}

.plano-card.selected {
    border-color: var(--primary);
    background: rgba(59, 130, 246, 0.1);
}

.plano-card.popular {
    border-color: var(--secondary);
}

.plano-badge {
    position: absolute;
    top: -10px;
    right: 1rem;
    padding: 0.25rem 0.75rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    background: var(--secondary);
    color: white;
    border-radius: 999px;
}

.plano-name {
    font-family: 'Poppins', sans-serif;
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.plano-desc {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.plano-price {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.plano-price-period {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--text-muted);
}

.plano-fee {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.plano-features {
    list-style: none;
}

.plano-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.plano-features li::before {
    content: '';
    width: 16px;
    height: 16px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2322c55e'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z'/%3E%3C/svg%3E") no-repeat center;
    flex-shrink: 0;
    margin-top: 2px;
}

/* ============================================
   Accordion (Etapa 5 Onboarding)
============================================ */
.onboarding-steps {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.onboarding-step {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: all var(--transition);
}

.onboarding-step.active {
    border-color: var(--primary-light);
}

.onboarding-step.completed {
    border-color: var(--success);
}

.onboarding-step-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    cursor: pointer;
    transition: background var(--transition);
}

.onboarding-step-header:hover {
    background: var(--card-bg-hover);
}

.onboarding-step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--card-bg);
    border: 2px solid var(--card-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
    flex-shrink: 0;
    transition: all var(--transition);
}

.onboarding-step.active .onboarding-step-number {
    background: var(--primary);
    border-color: var(--primary);
}

.onboarding-step.completed .onboarding-step-number {
    background: var(--success);
    border-color: var(--success);
}

.onboarding-step-info {
    flex: 1;
}

.onboarding-step-title {
    font-weight: 500;
    margin-bottom: 0.125rem;
}

.onboarding-step-desc {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.onboarding-step-status {
    font-size: 0.75rem;
    padding: 0.25rem 0.625rem;
    border-radius: 999px;
    font-weight: 500;
}

.onboarding-step.completed .onboarding-step-status {
    background: var(--success-bg);
    color: var(--success);
}

.onboarding-step-arrow {
    color: var(--text-muted);
    transition: transform var(--transition);
}

.onboarding-step.active .onboarding-step-arrow {
    transform: rotate(180deg);
}

.onboarding-step-content {
    display: none;
    padding: 0 1.25rem 1.25rem;
    border-top: 1px solid var(--card-border);
}

.onboarding-step.active .onboarding-step-content {
    display: block;
}

/* ============================================
   Checkout / Pagamento
============================================ */
.checkout-summary {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.checkout-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.checkout-item-label {
    color: var(--text-secondary);
}

.checkout-item-value {
    font-weight: 500;
}

.checkout-total {
    display: flex;
    justify-content: space-between;
    padding-top: 0.75rem;
    margin-top: 0.75rem;
    border-top: 1px solid var(--card-border);
    font-size: 1.125rem;
    font-weight: 600;
}

.payment-methods {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.payment-method {
    flex: 1;
    padding: 1rem;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius);
    text-align: center;
    cursor: pointer;
    transition: all var(--transition);
}

.payment-method:hover {
    background: var(--card-bg-hover);
}

.payment-method.selected {
    border-color: var(--primary);
    background: rgba(59, 130, 246, 0.1);
}

.payment-method-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.payment-method-name {
    font-size: 0.875rem;
    font-weight: 500;
}

.pix-qrcode {
    text-align: center;
    padding: 2rem;
}

.pix-qrcode img {
    max-width: 200px;
    margin: 0 auto 1rem;
    border-radius: var(--border-radius);
}

.pix-code {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.pix-code input {
    flex: 1;
}

/* ============================================
   Links e navegação
============================================ */
.wizard-footer {
    text-align: center;
    padding: 1rem 0;
    color: var(--text-muted);
    font-size: 0.8125rem;
}

.wizard-footer a {
    color: var(--text-secondary);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    transition: color var(--transition);
}

.back-link:hover {
    color: var(--text-primary);
}

.text-center {
    text-align: center;
}

.mt-1 {
    margin-top: 0.5rem;
}

.mt-2 {
    margin-top: 1rem;
}

.mt-3 {
    margin-top: 1.5rem;
}

.mt-4 {
    margin-top: 2rem;
}

.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

.divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
    color: var(--text-muted);
    font-size: 0.8125rem;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--card-border);
}

/* ============================================
   Loading
============================================ */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    border-top-color: var(--text-primary);
    animation: spin 0.8s linear infinite;
}

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

.btn .loading {
    width: 16px;
    height: 16px;
}

/* ============================================
   Responsivo
============================================ */
@media (min-width: 768px) {
    .wizard-container {
        padding: 2rem;
    }

    .wizard-card {
        padding: 2.5rem;
    }

    .wizard-title {
        font-size: 2rem;
    }

    .billing-toggle {
        display: inline-flex;
    }

    .planos-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 767px) {
    .wizard-title {
        font-size: 1.5rem;
    }

    .wizard-card {
        padding: 1.5rem;
        border-radius: var(--border-radius-lg);
    }

    .planos-grid {
        grid-template-columns: 1fr;
    }

    .plano-card {
        padding: 1.25rem;
    }

    .billing-toggle {
        flex-direction: column;
        width: 100%;
    }

    .billing-option {
        justify-content: center;
    }

    .payment-methods {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .wizard-container {
        padding: 0.5rem;
    }

    .wizard-header {
        padding: 1rem 0;
    }

    .wizard-card {
        padding: 1.25rem;
    }

    .form-control {
        padding: 0.75rem;
        font-size: 16px;
        /* Previne zoom no iOS */
    }

    .btn {
        padding: 0.75rem 1.25rem;
    }
}

/* ============================================
   Etapa 5 - Onboarding Accordion
============================================ */

.wizard-card-xl {
    max-width: 1100px;
}

.onboarding-accordion {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.accordion-item {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: all 0.2s ease;
}

.accordion-item.locked {
    opacity: 0.5;
    pointer-events: none;
}

.accordion-item.completed .accordion-header {
    opacity: 0.7;
}

.accordion-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    cursor: pointer;
    user-select: none;
}

.accordion-header:hover {
    background: var(--card-bg-hover);
}

.accordion-number {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
}

.accordion-number svg {
    width: 16px;
    height: 16px;
}

.accordion-number.done {
    background: var(--success);
}

.accordion-number.lock {
    background: var(--text-muted);
}

.accordion-title {
    flex: 1;
}

.accordion-title h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.accordion-title p {
    margin: 0.25rem 0 0;
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.accordion-toggle {
    width: 24px;
    height: 24px;
    transition: transform 0.2s ease;
}

.accordion-toggle svg {
    width: 24px;
    height: 24px;
    color: var(--text-muted);
}

.accordion-item.active .accordion-toggle,
.accordion-item.open .accordion-toggle {
    transform: rotate(180deg);
}

.accordion-content {
    display: none;
    padding: 0 1.25rem 1.25rem;
    border-top: 1px solid var(--card-border);
}

.accordion-item.active .accordion-content,
.accordion-item.open .accordion-content {
    display: block;
}

/* Step completed message */
.step-completed-msg {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--success-bg);
    border-radius: 8px;
    color: var(--success);
    font-size: 0.875rem;
}

.step-completed-msg svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Waiting message */
.waiting-msg {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem;
}

.waiting-msg svg {
    width: 48px;
    height: 48px;
    color: var(--primary-light);
    margin-bottom: 1rem;
}

.waiting-msg p {
    margin: 0;
    color: var(--text-secondary);
}

/* Billing toggle */
.billing-toggle {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.billing-btn {
    flex: 1;
    min-width: 100px;
    padding: 0.75rem 1rem;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.billing-btn:hover {
    background: var(--input-bg-focus);
    border-color: var(--input-border-focus);
}

.billing-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.badge-discount {
    font-size: 0.7rem;
    background: var(--success);
    color: white;
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
    margin-left: 0.25rem;
}

/* Plans grid */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.plan-card {
    background: var(--input-bg);
    border: 2px solid transparent;
    border-radius: var(--border-radius);
    padding: 1.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.plan-card:hover {
    border-color: var(--primary-light);
}

.plan-card.selected {
    border-color: var(--primary);
    background: rgba(0, 87, 217, 0.1);
}

.plan-header h4 {
    margin: 0 0 0.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
}

.plan-price {
    margin-bottom: 0.75rem;
}

.price-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
}

.price-period {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.plan-desc {
    margin: 0 0 1rem;
    font-size: 0.8125rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
}

.plan-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0;
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.plan-features li svg {
    width: 16px;
    height: 16px;
    color: var(--success);
    flex-shrink: 0;
}

/* Payment section */
.payment-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--card-border);
}

.payment-section h4 {
    margin: 0 0 1rem;
    font-size: 1rem;
    color: var(--text-primary);
}

.payment-methods {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.payment-method {
    flex: 1;
    min-width: 140px;
    cursor: pointer;
}

.payment-method input {
    display: none;
}

.payment-method-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    background: var(--input-bg);
    border: 2px solid transparent;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.payment-method input:checked+.payment-method-content {
    border-color: var(--primary);
    background: rgba(0, 87, 217, 0.1);
}

.payment-method-content span {
    font-weight: 500;
    color: var(--text-primary);
}

.payment-method-content small {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* DNS Info */
.dns-info {
    background: var(--input-bg);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.dns-info p {
    margin: 0 0 0.75rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.dns-record {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--card-border);
    font-size: 0.875rem;
}

.dns-record:last-child {
    border-bottom: none;
}

.dns-record span {
    color: var(--text-muted);
    min-width: 80px;
}

.dns-record strong {
    color: var(--text-primary);
    font-family: monospace;
}

.btn-copy {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-left: auto;
}

/* Email options */
.email-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.email-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 8px;
    cursor: pointer;
}

.email-option input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

/* Shipping & Gateway options */
.option-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.option-btn {
    padding: 1rem;
    background: var(--input-bg);
    border: 2px solid transparent;
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.option-btn:hover {
    border-color: var(--primary-light);
}

.option-btn.selected {
    border-color: var(--primary);
    background: rgba(0, 87, 217, 0.1);
}

/* Onboarding complete */
.onboarding-complete {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem;
}

.complete-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--success-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.complete-icon svg {
    width: 40px;
    height: 40px;
    color: var(--success);
}

.onboarding-complete h2 {
    margin: 0 0 0.5rem;
    font-size: 1.5rem;
    color: var(--text-primary);
}

.onboarding-complete p {
    margin: 0 0 1.5rem;
    color: var(--text-secondary);
}

.complete-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* Utilities */
.mt-1 {
    margin-top: 0.5rem;
}

.mt-2 {
    margin-top: 1rem;
}

.mt-3 {
    margin-top: 1.5rem;
}

.text-muted {
    color: var(--text-muted);
}

/* ============================================
   PIX Payment
============================================ */
.pix-container {
    text-align: center;
    padding: 1.5rem 0;
}

.pix-qrcode {
    margin-bottom: 1rem;
}

.pix-qrcode img {
    width: 200px;
    height: 200px;
    padding: 1rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.pix-info {
    margin-bottom: 1.5rem;
}

.pix-valor {
    font-family: 'Poppins', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.5rem;
}

.pix-expira {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0;
}

.pix-expira span {
    font-weight: 600;
    color: var(--warning);
}

.pix-codigo {
    text-align: left;
    margin-bottom: 1.5rem;
}

.pix-codigo label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.pix-codigo-container {
    display: flex;
    gap: 0.5rem;
}

.pix-codigo-container input {
    flex: 1;
    padding: 0.75rem;
    font-size: 0.8125rem;
    font-family: monospace;
    color: var(--text-primary);
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: var(--border-radius);
    overflow: hidden;
    text-overflow: ellipsis;
}

.pix-codigo-container button {
    padding: 0.75rem 1rem;
    white-space: nowrap;
}

.pix-copiado {
    font-size: 0.8125rem;
    color: var(--success);
    margin-top: 0.5rem;
    font-weight: 500;
}

.pix-aguardando {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(59, 130, 246, 0.1);
    border-radius: var(--border-radius);
    color: var(--primary-light);
    font-size: 0.875rem;
}

.loading-small {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(59, 130, 246, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-light);
    animation: spin 0.8s linear infinite;
}

/* PIX Sucesso */
.pix-sucesso {
    text-align: center;
    padding: 2rem;
}

.pix-sucesso-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--success-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: scaleIn 0.3s ease;
}

.pix-sucesso-icon svg {
    width: 40px;
    height: 40px;
    color: var(--success);
}

.pix-sucesso h3 {
    margin: 0 0 0.5rem;
    font-size: 1.5rem;
    color: var(--success);
    font-family: 'Poppins', sans-serif;
}

.pix-sucesso p {
    margin: 0;
    color: var(--text-secondary);
}

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Frete e Gateway Options */
.frete-options,
.gateway-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.frete-option,
.gateway-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all var(--transition);
}

.frete-option:hover,
.gateway-option:hover {
    background: var(--input-bg-focus);
    border-color: var(--input-border-focus);
}

.frete-option:has(input:checked),
.gateway-option:has(input:checked) {
    background: rgba(59, 130, 246, 0.1);
    border-color: var(--primary);
}

.frete-option input,
.gateway-option input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

.frete-option span,
.gateway-option span {
    font-size: 0.875rem;
    color: var(--text-primary);
}

/* Locked step styles */
.onboarding-step.locked {
    opacity: 0.5;
}

.onboarding-step.locked .onboarding-step-header {
    cursor: not-allowed;
}

.onboarding-step-number.done {
    background: var(--success);
    border-color: var(--success);
}

.onboarding-step-number.done svg {
    width: 16px;
    height: 16px;
    color: white;
}

.onboarding-step-number.lock {
    background: transparent;
    border-color: var(--text-muted);
}

.onboarding-step-number.lock svg {
    width: 14px;
    height: 14px;
    color: var(--text-muted);
}

/* ============================================
   DNS Help Section
============================================ */
.dns-help-section {
    margin: 1rem 0;
}

.dns-help-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 0.875rem;
    cursor: pointer;
    padding: 0.5rem 0;
    transition: color var(--transition);
}

.dns-help-toggle:hover {
    color: var(--text-primary);
}

.dns-help-toggle svg {
    flex-shrink: 0;
}

.dns-help-arrow {
    margin-left: auto;
    transition: transform var(--transition);
}

.dns-help-toggle.active .dns-help-arrow {
    transform: rotate(180deg);
}

.dns-help-content {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--card-bg);
    border-radius: var(--border-radius);
    border: 1px solid var(--card-border);
}

.dns-registrar {
    border-bottom: 1px solid var(--card-border);
}

.dns-registrar:last-child {
    border-bottom: none;
}

.dns-registrar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 0.9375rem;
    font-weight: 500;
    padding: 0.875rem 0;
    cursor: pointer;
    transition: color var(--transition);
}

.dns-registrar-header:hover {
    color: var(--primary-light);
}

.dns-registrar-arrow {
    transition: transform var(--transition);
}

.dns-registrar-header.active .dns-registrar-arrow {
    transform: rotate(180deg);
}

.dns-registrar-content {
    padding: 0 0 1rem 0;
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.7;
}

.dns-registrar-content ol {
    margin: 0;
    padding-left: 1.25rem;
}

.dns-registrar-content ol li {
    margin-bottom: 0.5rem;
}

.dns-registrar-content ul {
    margin: 0.5rem 0;
    padding-left: 1.25rem;
    list-style-type: disc;
}

.dns-registrar-content ul li {
    margin-bottom: 0.25rem;
}

.dns-registrar-content a {
    color: var(--primary-light);
}

.dns-registrar-content a:hover {
    text-decoration: underline;
}

.dns-registrar-content strong {
    color: var(--text-primary);
    font-weight: 600;
}

.dns-doc-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.75rem;
    color: var(--primary-light);
    font-size: 0.8125rem;
}

.dns-doc-link:hover {
    text-decoration: underline;
}