:root {
    --bg-primary: #0b0f19;
    --bg-secondary: #111827;
    --bg-card: #1a2236;
    --bg-card-hover: #1e293b;
    --bg-input: #0f172a;
    --border: #2d3a4f;
    --border-focus: #6366f1;
    --accent: #6366f1;
    --accent-hover: #818cf8;
    --accent-glow: rgba(99, 102, 241, 0.25);
    --green: #22c55e;
    --green-bg: rgba(34, 197, 94, 0.1);
    --red: #ef4444;
    --red-bg: rgba(239, 68, 68, 0.1);
    --yellow: #eab308;
    --yellow-bg: rgba(234, 179, 8, 0.1);
    --text: #e2e8f0;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --white: #ffffff;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
    --transition: 0.2s ease;

    --bg: var(--bg-primary);
    --card-bg: var(--bg-card);
    --primary: var(--accent);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container { max-width: 1280px; margin: 0 auto; padding: 0 16px; width: 100%; }

.header {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
}
.header .container { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.logo { font-size: 1.1rem; font-weight: 700; color: var(--accent); letter-spacing: -0.3px; white-space: nowrap; }
.logo span { color: var(--text-secondary); font-weight: 400; }
.header-info { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; min-width: 0; }
.header-badge {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    color: var(--text-muted);
}
.header-beta {
    font-size: 0.62rem;
    color: var(--yellow);
    font-style: italic;
}

.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 20px 0;
    margin-top: auto;
}
.footer-content { text-align: center; }
.footer-content p { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 4px; }
.footer-features {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 10px;
}
.footer-feature {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.7rem;
    color: var(--text-muted);
}
.footer-feature .icon { color: var(--green); font-size: 0.7rem; }

.main { flex: 1; padding: 24px 0 40px; }

.progress-bar {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
    overflow-x: auto;
}
.steps { display: flex; align-items: center; justify-content: center; gap: 0; min-width: max-content; }
.step { display: flex; align-items: center; gap: 6px; opacity: 0.35; transition: opacity var(--transition); }
.step.active { opacity: 1; }
.step.done { opacity: 0.7; }
.step-num {
    width: 28px; height: 28px; border-radius: 50%;
    background: var(--bg-card); border: 2px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.75rem; color: var(--text-muted);
    transition: all var(--transition); flex-shrink: 0;
}
.step.active .step-num { background: var(--accent); border-color: var(--accent); color: var(--white); box-shadow: 0 0 12px var(--accent-glow); }
.step.done .step-num { background: var(--green); border-color: var(--green); color: var(--white); }
.step-label { font-size: 0.72rem; font-weight: 500; color: var(--text-muted); white-space: nowrap; }
.step.active .step-label { color: var(--text); }
.step-line { width: 32px; height: 2px; background: var(--border); margin: 0 4px; flex-shrink: 0; }
.step-line.done { background: var(--green); }
.step-line.active { background: var(--accent); }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 10px 24px; border: none; border-radius: var(--radius-sm);
    font-size: 0.9rem; font-weight: 600; cursor: pointer;
    text-decoration: none; text-align: center;
    transition: all var(--transition); font-family: inherit;
}
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--accent-hover); box-shadow: 0 0 16px var(--accent-glow); }
.btn-secondary { background: var(--bg-card); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--bg-card-hover); border-color: var(--text-muted); }
.btn-success { background: var(--green); color: var(--white); }
.btn-success:hover { box-shadow: 0 0 16px rgba(34, 197, 94, 0.3); }
.btn-full { width: 100%; }
.btn-lg { padding: 14px 32px; font-size: 1rem; border-radius: var(--radius); }
.btn-sm { padding: 8px 14px; font-size: 0.82rem; }

.form-group { margin-bottom: 16px; }
.form-group label {
    display: block; margin-bottom: 5px; font-weight: 600;
    font-size: 0.82rem; color: var(--text-secondary);
}
.form-group .hint { font-size: 0.72rem; color: var(--text-muted); margin-top: 4px; }
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="url"],
.form-group input[type="number"],
.form-group input[type="password"],
.form-group select,
.form-group textarea,
.form-control {
    width: 100%; padding: 10px 12px;
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    font-size: 0.9rem; font-family: inherit;
    background: var(--bg-input); color: var(--text);
    transition: border var(--transition), box-shadow var(--transition);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus, .form-control:focus {
    outline: none; border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}
.form-group select { cursor: pointer; }
.form-group textarea { resize: vertical; min-height: 70px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.form-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.form-narrow { max-width: 680px; margin: 0 auto; }

.color-row { display: flex; align-items: center; gap: 8px; }
.color-row input[type="color"] {
    width: 40px; height: 34px; border: 1px solid var(--border);
    border-radius: var(--radius-sm); cursor: pointer; padding: 2px;
    background: var(--bg-input);
}
.color-hex { font-size: 0.75rem; color: var(--text-muted); font-family: 'Courier New', monospace; min-width: 60px; }

.range-row { display: flex; align-items: center; gap: 10px; }
.range-row input[type="range"] { flex: 1; accent-color: var(--accent); }
.range-val {
    min-width: 32px; text-align: center; font-weight: 700;
    font-size: 1rem; color: var(--accent);
}

.toggle-group { display: flex; flex-direction: column; gap: 8px; }
.toggle-item {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 14px; background: var(--bg-input);
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    cursor: pointer; transition: all var(--transition); gap: 8px;
}
.toggle-item:hover { border-color: var(--text-muted); background: var(--bg-card); }
.toggle-item.active { border-color: var(--accent); background: rgba(99, 102, 241, 0.08); }
.toggle-info { flex: 1; min-width: 0; }
.toggle-name { font-weight: 600; font-size: 0.85rem; color: var(--text); }
.toggle-desc { font-size: 0.72rem; color: var(--text-muted); margin-top: 2px; }
.toggle-price { font-size: 0.72rem; color: var(--accent); font-weight: 600; white-space: nowrap; }
.toggle-switch {
    width: 40px; height: 22px; border-radius: 11px;
    background: var(--border); position: relative;
    transition: background var(--transition); flex-shrink: 0;
}
.toggle-switch::after {
    content: ''; position: absolute; top: 2px; left: 2px;
    width: 18px; height: 18px; border-radius: 50%;
    background: var(--text-muted); transition: all var(--transition);
}
.toggle-item.active .toggle-switch { background: var(--accent); }
.toggle-item.active .toggle-switch::after { left: 20px; background: var(--white); }
.toggle-item input[type="checkbox"] { display: none; }

.alert { padding: 10px 14px; border-radius: var(--radius-sm); margin-bottom: 14px; font-size: 0.85rem; border: 1px solid; }
.alert-error { background: var(--red-bg); color: var(--red); border-color: rgba(239, 68, 68, 0.3); }
.alert-success { background: var(--green-bg); color: var(--green); border-color: rgba(34, 197, 94, 0.3); }
.alert-warning { background: var(--yellow-bg); color: var(--yellow); border-color: rgba(234, 179, 8, 0.3); }

.section-header { text-align: center; margin-bottom: 32px; }
.section-header h2 { font-size: 1.5rem; font-weight: 800; margin-bottom: 6px; letter-spacing: -0.5px; }
.section-header p { color: var(--text-secondary); font-size: 0.92rem; max-width: 560px; margin: 0 auto; }

.card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 20px;
    transition: all var(--transition);
}
.card:hover { border-color: var(--text-muted); }

.login-page { display: flex; justify-content: center; align-items: center; min-height: 70vh; }
.login-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); box-shadow: var(--shadow-lg);
    padding: 40px 32px; max-width: 480px; width: 100%;
}
.login-header { text-align: center; margin-bottom: 28px; }
.login-header h2 { font-size: 1.4rem; font-weight: 800; margin-bottom: 6px; }
.login-header p { color: var(--text-secondary); font-size: 0.9rem; }

.tipo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 24px; }
.tipo-card {
    background: var(--bg-card); border: 2px solid var(--border);
    border-radius: var(--radius); padding: 20px 16px;
    cursor: pointer; transition: all var(--transition);
    text-align: center; position: relative;
    display: flex; flex-direction: column;
}
.tipo-card .price { margin-top: auto; }
.tipo-card:hover { border-color: var(--accent); box-shadow: 0 0 20px var(--accent-glow); }
.tipo-card.selected { border-color: var(--accent); background: rgba(99, 102, 241, 0.06); box-shadow: 0 0 20px var(--accent-glow); }
.tipo-card .badge {
    position: absolute; top: -10px; right: 12px;
    background: var(--accent); color: var(--white);
    padding: 3px 10px; border-radius: 20px;
    font-size: 0.65rem; font-weight: 700; text-transform: uppercase;
}
.tipo-card h3 { font-size: 1rem; margin-bottom: 6px; }
.tipo-card .desc { font-size: 0.75rem; color: var(--text-secondary); margin-bottom: 10px; line-height: 1.5; }
.tipo-details {
    text-align: left; margin-bottom: 12px; display: flex; flex-direction: column; gap: 4px;
}
.tipo-details span {
    font-size: 0.68rem; color: var(--text-muted); padding-left: 12px; position: relative;
}
.tipo-details span::before { content: '✓'; position: absolute; left: 0; color: var(--green); font-size: 0.65rem; }
.tipo-card .mini-preview {
    background: var(--bg-primary); border: 1px solid var(--border);
    border-radius: 6px; padding: 6px; margin-bottom: 12px; min-height: 70px;
}
.mp-bar { height: 5px; border-radius: 2px; margin-bottom: 3px; }
.mp-bar.nav { background: var(--accent); }
.mp-bar.hero { background: rgba(99, 102, 241, 0.2); height: 20px; }
.mp-bar.section { background: var(--border); height: 12px; }
.mp-bar.section.sm { height: 8px; width: 70%; }
.mp-bar.footer { background: var(--text-muted); height: 5px; margin-top: 3px; }
.mp-blog-row { display: flex; gap: 3px; margin-bottom: 3px; }
.mp-blog-row div { flex: 1; height: 14px; background: rgba(99, 102, 241, 0.15); border-radius: 2px; }
.tipo-card .features { display: flex; flex-wrap: wrap; gap: 3px; justify-content: center; margin-bottom: 10px; }
.tipo-card .features span {
    background: var(--bg-primary); padding: 2px 7px; border-radius: 10px;
    font-size: 0.65rem; color: var(--text-muted); border: 1px solid var(--border);
}
.tipo-card .price { font-size: 0.95rem; font-weight: 700; color: var(--accent); }

.cortesia-price { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.cortesia-price .price-original { text-decoration: line-through; color: var(--text-muted); font-size: 0.75rem; font-weight: 400; }
.cortesia-price strong { color: var(--green); font-size: 1.05rem; }
.cupom-badge {
    display: inline-block; padding: 2px 7px; border-radius: 10px;
    background: var(--green-bg); color: var(--green); border: 1px solid rgba(34, 197, 94, 0.3);
    font-size: 0.6rem; font-weight: 700;
}
.cupom-badge-sm {
    display: inline-block; padding: 1px 5px; border-radius: 8px;
    background: var(--green-bg); color: var(--green); border: 1px solid rgba(34, 197, 94, 0.3);
    font-size: 0.55rem; font-weight: 700;
}

.required-tag {
    display: inline-block; padding: 2px 7px; border-radius: 8px;
    background: var(--red-bg); color: var(--red); border: 1px solid rgba(239, 68, 68, 0.3);
    font-size: 0.6rem; font-weight: 700; vertical-align: middle; margin-left: 4px;
}
.optional-tag {
    display: inline-block; padding: 2px 7px; border-radius: 8px;
    background: rgba(99, 102, 241, 0.1); color: var(--accent); border: 1px solid rgba(99, 102, 241, 0.3);
    font-size: 0.6rem; font-weight: 700; vertical-align: middle; margin-left: 4px;
}

.infra-section {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 24px;
    margin-top: 20px;
}
.infra-section h3 { font-size: 1.1rem; font-weight: 700; text-align: center; }

.dominio-precos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.dominio-plano {
    background: var(--bg-input); border: 1px solid var(--border);
    border-radius: var(--radius-sm); padding: 14px; text-align: center;
}
.dominio-plano h5 { font-size: 0.85rem; margin-bottom: 6px; color: var(--text); }

.preco-desconto { display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; }
.preco-de { text-decoration: line-through; color: var(--text-muted); font-size: 0.8rem; }
.preco-por { font-weight: 700; color: var(--green); font-size: 1rem; }
.desconto-badge {
    display: inline-block; padding: 2px 7px; border-radius: 10px;
    background: var(--green-bg); color: var(--green); border: 1px solid rgba(34, 197, 94, 0.3);
    font-size: 0.6rem; font-weight: 700;
}

.hospedagem-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hospedagem-option {
    display: block; cursor: pointer;
    background: var(--bg-input); border: 2px solid var(--border);
    border-radius: var(--radius-sm); padding: 16px; text-align: center;
    transition: all var(--transition);
}
.hospedagem-option:hover { border-color: var(--accent); }
.hospedagem-option.selected { border-color: var(--accent); background: rgba(99, 102, 241, 0.06); box-shadow: 0 0 12px var(--accent-glow); }
.hospedagem-option input[type="radio"] { display: none; }
.hospedagem-content h5 { font-size: 0.9rem; margin-bottom: 6px; color: var(--text); }

.email-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.email-option {
    display: flex; flex-direction: column; cursor: pointer;
    background: var(--bg-input); border: 2px solid var(--border);
    border-radius: var(--radius-sm); padding: 16px;
    transition: all var(--transition);
}
.email-content { display: flex; flex-direction: column; flex: 1; }
.email-option:hover { border-color: var(--accent); }
.email-option.selected { border-color: var(--accent); background: rgba(99, 102, 241, 0.06); box-shadow: 0 0 12px var(--accent-glow); }
.email-option input[type="radio"] { display: none; }
.email-content h5 { font-size: 0.88rem; margin-bottom: 5px; color: var(--text); }
.email-content .desc { font-size: 0.72rem; color: var(--text-secondary); margin-bottom: 6px; }
.email-price { margin-bottom: 5px; }
.email-total { font-size: 0.72rem; color: var(--text-muted); margin-bottom: 6px; font-weight: 600; }
.email-features { list-style: none; padding: 0; margin: 0; }
.email-features li {
    font-size: 0.68rem; color: var(--text-muted); padding: 2px 0;
    padding-left: 14px; position: relative;
}
.email-features li::before { content: '✓'; position: absolute; left: 0; color: var(--green); font-size: 0.65rem; }

.credit-mention { font-size: 0.78rem; color: var(--text-muted); }
.credit-mention strong { color: var(--text-secondary); }

.included-section { margin-top: 32px; }
.included-section h3 { font-size: 1rem; margin-bottom: 14px; text-align: center; color: var(--text-secondary); }
.included-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.included-item {
    display: flex; align-items: flex-start; gap: 8px;
    padding: 12px 14px; background: var(--bg-card);
    border: 1px solid var(--border); border-radius: var(--radius-sm);
}
.included-icon { color: var(--green); font-size: 0.9rem; margin-top: 2px; flex-shrink: 0; }
.included-text h4 { font-size: 0.8rem; font-weight: 600; margin-bottom: 2px; }
.included-text p { font-size: 0.68rem; color: var(--text-muted); line-height: 1.4; }

/* ===== ETAPA 2 - PERSONALIZAÇÃO ===== */
.etapa2-layout { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; }
.preview-floating {
    position: sticky; top: 80px;
}
.preview-panel {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); overflow: hidden;
}
.preview-header {
    padding: 10px 14px; border-bottom: 1px solid var(--border);
    display: flex; align-items: center; gap: 6px;
}
.preview-dot { width: 7px; height: 7px; border-radius: 50%; }
.preview-dot.r { background: #ef4444; }
.preview-dot.y { background: #eab308; }
.preview-dot.g { background: #22c55e; }
.preview-header span { font-size: 0.68rem; color: var(--text-muted); margin-left: auto; }
.preview-body { padding: 0; min-height: 350px; overflow: hidden; }
.pv-nav { display: flex; align-items: center; justify-content: space-between; padding: 6px 10px; }
.pv-logo { font-size: 0.6rem; font-weight: 700; color: rgba(255,255,255,0.9); }
.pv-menu { display: flex; gap: 5px; }
.pv-menu-dot { width: 16px; height: 3px; background: rgba(255,255,255,0.3); border-radius: 2px; }
.pv-hero { padding: 18px 10px; text-align: center; }
.pv-hero-title { font-size: 0.75rem; font-weight: 700; margin-bottom: 3px; }
.pv-hero-sub { font-size: 0.55rem; margin-bottom: 8px; }
.pv-hero-btn { display: inline-block; padding: 3px 12px; border-radius: 3px; font-size: 0.55rem; font-weight: 600; }
.pv-section { padding: 10px; border-top: 1px solid rgba(255,255,255,0.05); }
.pv-section-title { font-size: 0.6rem; font-weight: 700; margin-bottom: 3px; }
.pv-section-text { font-size: 0.5rem; line-height: 1.4; }
.pv-section.alt { opacity: 0.85; }
.pv-footer { padding: 6px 10px; text-align: center; font-size: 0.45rem; }
.pv-divider { height: 8px; width: 100%; }
.pv-extras { padding: 6px 10px; display: flex; flex-wrap: wrap; gap: 3px; }
.pv-extra-tag {
    padding: 2px 5px; border-radius: 3px; font-size: 0.45rem;
    background: rgba(99, 102, 241, 0.15); color: var(--accent); border: 1px solid rgba(99, 102, 241, 0.3);
}

.color-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.color-group { display: flex; flex-direction: column; gap: 3px; }
.color-group label { font-size: 0.75rem; }

.font-selector { max-height: 200px; }

/* Section detail items */
.section-detail-item {
    background: var(--bg-input); border: 1px solid var(--border);
    border-radius: var(--radius-sm); padding: 12px; margin-bottom: 10px;
}
.section-detail-header {
    display: flex; align-items: center; gap: 10px; margin-bottom: 8px;
}
.section-detail-num {
    width: 26px; height: 26px; border-radius: 50%;
    background: var(--accent); color: var(--white);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.72rem; font-weight: 700; flex-shrink: 0;
}
.section-detail-header input {
    flex: 1; padding: 6px 10px; border: 1px solid var(--border);
    border-radius: var(--radius-sm); background: var(--bg-card);
    color: var(--text); font-size: 0.85rem; font-weight: 600; font-family: inherit;
}
.section-detail-header input:focus { outline: none; border-color: var(--accent); }
.section-detail-item textarea {
    width: 100%; padding: 6px 10px; border: 1px solid var(--border);
    border-radius: var(--radius-sm); background: var(--bg-card);
    color: var(--text); font-size: 0.78rem; font-family: inherit; resize: vertical;
}
.section-detail-item textarea:focus { outline: none; border-color: var(--accent); }
.section-foto-toggle {
    display: flex; align-items: center; gap: 6px; margin-top: 6px;
    font-size: 0.72rem; color: var(--text-muted); cursor: pointer;
}
.section-foto-toggle input { accent-color: var(--accent); }

/* ===== REDES SOCIAIS ===== */
.redes-posicao-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
.redes-posicao-option {
    display: flex; align-items: center; justify-content: center;
    padding: 12px; background: var(--bg-input); border: 2px solid var(--border);
    border-radius: var(--radius-sm); cursor: pointer; transition: all var(--transition);
    font-size: 0.82rem; font-weight: 600; text-align: center;
}
.redes-posicao-option:hover { border-color: var(--accent); }
.redes-posicao-option.selected { border-color: var(--accent); background: rgba(99, 102, 241, 0.06); box-shadow: 0 0 12px var(--accent-glow); }
.redes-posicao-option input[type="radio"] { display: none; }

.redes-list { display: flex; flex-direction: column; gap: 10px; }
.rede-item {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 14px; background: var(--bg-input);
    border: 1px solid var(--border); border-radius: var(--radius-sm);
}
.rede-icon {
    width: 36px; height: 36px; border-radius: 8px;
    background: var(--bg-card); border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-secondary); flex-shrink: 0;
}
.rede-input { flex: 1; min-width: 0; }
.rede-input label { display: block; font-size: 0.78rem; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.rede-input input {
    width: 100%; padding: 8px 10px; border: 1px solid var(--border);
    border-radius: var(--radius-sm); background: var(--bg-card);
    color: var(--text); font-size: 0.82rem; font-family: inherit;
}
.rede-input input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-glow); }

/* ===== ETAPA 5 - RESUMO ===== */
.resumo-layout { display: grid; grid-template-columns: 1fr 380px; gap: 24px; align-items: start; }
.resumo-preview { position: sticky; top: 80px; }
.resumo-section {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 20px; margin-bottom: 14px;
}
.resumo-section h3 {
    font-size: 0.9rem; font-weight: 700; margin-bottom: 14px;
    padding-bottom: 10px; border-bottom: 1px solid var(--border);
    display: flex; align-items: center; gap: 6px;
}
.resumo-section h3 .icon { color: var(--accent); }
.resumo-grid { display: grid; grid-template-columns: 120px 1fr; gap: 6px 12px; font-size: 0.82rem; }
.resumo-grid dt { color: var(--text-muted); }
.resumo-grid dd { font-weight: 600; display: flex; align-items: center; gap: 5px; word-break: break-word; }
.color-dot { width: 12px; height: 12px; border-radius: 3px; border: 1px solid var(--border); display: inline-block; }
.tag-list { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.tag {
    padding: 3px 8px; border-radius: 5px; font-size: 0.72rem;
    background: rgba(99, 102, 241, 0.1); color: var(--accent);
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.resumo-secao-item {
    padding: 8px 0; border-bottom: 1px solid var(--border);
    font-size: 0.82rem;
}
.resumo-secao-item:last-child { border-bottom: none; }
.resumo-secao-item p { font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; }

.estimativa-box {
    background: var(--bg-card); border: 2px solid var(--accent);
    border-radius: var(--radius); padding: 24px; text-align: center;
    margin-bottom: 14px; box-shadow: 0 0 24px var(--accent-glow);
}
.estimativa-box h3 { font-size: 0.9rem; margin-bottom: 14px; color: var(--text-secondary); }
.estimativa-valor { font-size: 1.4rem; font-weight: 800; color: var(--accent); margin-bottom: 4px; }
.estimativa-original { font-size: 0.85rem; color: var(--text-muted); text-decoration: line-through; margin-bottom: 4px; }
.estimativa-desconto {
    display: inline-block; padding: 3px 10px; border-radius: 16px;
    background: var(--green-bg); color: var(--green); border: 1px solid rgba(34, 197, 94, 0.3);
    font-size: 0.75rem; font-weight: 700; margin-top: 6px;
}
.estimativa-nota { font-size: 0.68rem; color: var(--text-muted); margin-top: 10px; }

.cupom-box {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 16px; margin-bottom: 14px;
}
.cupom-box h4 { font-size: 0.85rem; margin-bottom: 10px; color: var(--text-secondary); }
.cupom-row { display: flex; gap: 6px; }
.cupom-row input { flex: 1; text-transform: uppercase; }
.cupom-row .btn { white-space: nowrap; }

/* ===== CONTRATO ===== */
.contrato-page { display: flex; justify-content: center; padding: 20px 0; }
.contrato-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); box-shadow: var(--shadow-lg);
    padding: 40px 32px; max-width: 800px; width: 100%;
}
.contrato-header-doc { text-align: center; margin-bottom: 32px; padding-bottom: 20px; border-bottom: 2px solid var(--accent); }
.contrato-header-doc h1 { font-size: 1.4rem; font-weight: 800; color: var(--accent); margin-bottom: 6px; }
.contrato-header-doc p { font-size: 0.85rem; color: var(--text-secondary); }
.contrato-section { margin-bottom: 24px; }
.contrato-section h2 { font-size: 1rem; font-weight: 700; color: var(--accent); margin-bottom: 12px; padding-bottom: 6px; border-bottom: 1px solid var(--border); }
.contrato-section p { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.6; }
.contrato-table { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
.contrato-table th, .contrato-table td { padding: 8px 10px; border-bottom: 1px solid var(--border); text-align: left; }
.contrato-table th { color: var(--text-muted); font-weight: 500; width: 35%; }
.contrato-table td { color: var(--text); }
.contrato-table thead th { color: var(--text-secondary); font-weight: 600; border-bottom: 2px solid var(--border); }
.contrato-cores { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px; }
.contrato-cor { display: flex; align-items: center; gap: 8px; font-size: 0.78rem; color: var(--text-secondary); }
.contrato-cor span { width: 20px; height: 20px; border-radius: 4px; border: 1px solid var(--border); display: inline-block; }
.contrato-lista { list-style: none; padding: 0; }
.contrato-lista li { padding: 5px 0; font-size: 0.82rem; color: var(--text-secondary); padding-left: 16px; position: relative; }
.contrato-lista li::before { content: '✓'; position: absolute; left: 0; color: var(--green); }
.contrato-footer-doc { text-align: center; padding-top: 20px; border-top: 2px solid var(--accent); }
.contrato-footer-doc p { font-size: 0.82rem; }

/* ===== CONFIRMAÇÃO ===== */
.confirm-page { display: flex; justify-content: center; padding: 20px 0; }
.confirm-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); box-shadow: var(--shadow-lg);
    padding: 40px 32px; max-width: 640px; width: 100%; text-align: center;
}
.confirm-icon {
    width: 64px; height: 64px; border-radius: 50%;
    background: var(--green-bg); border: 2px solid rgba(34, 197, 94, 0.3);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem; color: var(--green); margin: 0 auto 16px;
}
.confirm-card h2 { color: var(--green); margin-bottom: 10px; font-size: 1.3rem; }
.confirm-card .desc { color: var(--text-secondary); margin-bottom: 24px; line-height: 1.7; font-size: 0.9rem; }
.confirm-table { width: 100%; border-collapse: collapse; text-align: left; margin-bottom: 20px; }
.confirm-table th, .confirm-table td {
    padding: 8px 10px; font-size: 0.82rem; border-bottom: 1px solid var(--border);
}
.confirm-table th { color: var(--text-muted); font-weight: 500; width: 40%; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .etapa2-layout { grid-template-columns: 1fr 300px; gap: 16px; }
    .resumo-layout { grid-template-columns: 1fr 340px; gap: 16px; }
}

@media (max-width: 768px) {
    .container { padding: 0 12px; }
    .etapa2-layout, .resumo-layout { grid-template-columns: 1fr; }
    .preview-floating, .resumo-preview { position: static; }
    .preview-floating { order: -1; }
    .tipo-grid { grid-template-columns: 1fr; max-width: 400px; margin-left: auto; margin-right: auto; }
    .form-row, .form-row-3, .color-grid { grid-template-columns: 1fr; }
    .hospedagem-grid, .dominio-precos { grid-template-columns: 1fr; }
    .email-grid { grid-template-columns: 1fr; }
    .section-header h2 { font-size: 1.2rem; }
    .section-header p { font-size: 0.82rem; }
    .redes-posicao-grid { grid-template-columns: 1fr 1fr; }
    .contrato-card { padding: 24px 16px; }
    .contrato-cores { grid-template-columns: 1fr 1fr; }
    .resumo-grid { grid-template-columns: 100px 1fr; gap: 4px 8px; font-size: 0.78rem; }
    .form-actions { flex-direction: column; }
    .form-actions .btn { width: 100%; }
}

@media (max-width: 480px) {
    .header .container { flex-direction: column; gap: 6px; text-align: center; }
    .header-info { align-items: center; }
    .steps { gap: 0; padding: 0 8px; }
    .step-line { width: 16px; margin: 0 2px; }
    .step-label { display: none; }
    .step-num { width: 24px; height: 24px; font-size: 0.65rem; }
    .login-card, .confirm-card { padding: 24px 16px; }
    .included-grid { grid-template-columns: 1fr; }
    .footer-features { gap: 8px; }
    .footer-feature { font-size: 0.62rem; }
    .tipo-card { padding: 16px 12px; }
    .infra-section { padding: 16px; }
    .card { padding: 14px; }
    .redes-posicao-grid { grid-template-columns: 1fr; }
    .contrato-cores { grid-template-columns: 1fr; }
    .contrato-table th { width: 30%; }
}

/* ==================== TOOLTIP ==================== */
.tooltip-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--border);
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 700;
    cursor: help;
    position: relative;
    vertical-align: middle;
    margin-left: 4px;
}
.tooltip-icon .tooltip-text {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--card-bg);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 400;
    width: 260px;
    line-height: 1.4;
    z-index: 999;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    transition: opacity 0.2s, visibility 0.2s;
    pointer-events: none;
    text-align: justify;
}
.tooltip-icon:hover .tooltip-text,
.tooltip-icon:focus .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* ==================== ÁREA DO CLIENTE ==================== */
.pedidos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
    margin-top: 20px;
}
.pedido-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
}
.pedido-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.pedido-id { font-size: 0.85rem; color: var(--text-muted); font-weight: 600; }
.pedido-card h3 { font-size: 1.1rem; margin: 0 0 4px; }
.pedido-info {
    display: flex;
    gap: 12px;
    margin-top: 8px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}
.pedido-dates {
    display: flex;
    gap: 16px;
    margin-top: 8px;
}
.pedido-dates small { color: var(--text-muted); }

.empty-state {
    text-align: center;
    padding: 60px 20px;
}
.empty-icon { font-size: 3rem; margin-bottom: 16px; }
.empty-state h3 { margin-bottom: 8px; }
.empty-state p { color: var(--text-secondary); margin-bottom: 20px; }

/* Cliente Detail Grid */
.cliente-detail-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 20px;
}
.cliente-detail-main { min-width: 0; }
.cliente-detail-sidebar { min-width: 0; }

/* Check Items Cliente */
.check-item-cliente {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}
.check-item-cliente:last-child { border-bottom: none; }
.check-bullet {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    flex-shrink: 0;
    background: var(--border);
    color: var(--text-muted);
}
.check-bullet.done { background: var(--green); color: #fff; }
.check-content { flex: 1; min-width: 0; }
.check-content strong { font-size: 0.9rem; }

/* Status badges (shared) */
.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}
.status-rascunho { background: rgba(148,163,184,0.15); color: #94a3b8; }
.status-enviado { background: rgba(251,191,36,0.15); color: #fbbf24; }
.status-em_analise { background: rgba(99,102,241,0.15); color: #6366f1; }
.status-correcao { background: rgba(249,115,22,0.15); color: #f97316; }
.status-aprovado_cliente { background: rgba(34,197,94,0.15); color: #22c55e; }
.status-em_desenvolvimento { background: rgba(59,130,246,0.15); color: #3b82f6; }
.status-revisao { background: rgba(168,85,247,0.15); color: #a855f7; }
.status-concluido { background: rgba(34,197,94,0.2); color: #22c55e; }
.status-cancelado { background: rgba(239,68,68,0.15); color: #ef4444; }

/* Timeline (shared) */
.timeline { padding-left: 20px; }
.timeline-item {
    position: relative;
    padding-bottom: 16px;
    padding-left: 16px;
    border-left: 2px solid var(--border);
}
.timeline-item:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline-dot {
    position: absolute;
    left: -7px;
    top: 4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary);
    border: 2px solid var(--bg);
}
.timeline-content strong { font-size: 0.85rem; text-transform: capitalize; }
.timeline-content p { font-size: 0.8rem; color: var(--text-secondary); margin: 2px 0; }
.timeline-content small { color: var(--text-muted); font-size: 0.75rem; }

/* DT rows (shared) */
.dt-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    font-size: 0.85rem;
}
.dt-row:last-child { border-bottom: none; }
.dt-label { color: var(--text-muted); flex-shrink: 0; margin-right: 12px; }
.dt-value { color: var(--text); text-align: right; }

/* Mensagens (shared) */
.mensagens-list {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 16px;
}
.mensagem-item {
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 8px;
}
.mensagem-admin { background: rgba(99,102,241,0.08); border-left: 3px solid var(--primary); }
.mensagem-cliente { background: rgba(34,197,94,0.08); border-left: 3px solid var(--green); }
.mensagem-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 0.8rem;
}
.mensagem-header strong { font-size: 0.85rem; }
.mensagem-header small { color: var(--text-muted); }
.mensagem-item p { font-size: 0.85rem; margin: 0; white-space: pre-line; }
.mensagem-form textarea {
    width: 100%;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px;
    color: var(--text);
    font-size: 0.85rem;
    resize: vertical;
}
.mensagem-form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
}
.mensagem-form-actions input[type="file"] { font-size: 0.8rem; color: var(--text-muted); }

@media (max-width: 768px) {
    .cliente-detail-grid { grid-template-columns: 1fr; }
    .pedidos-grid { grid-template-columns: 1fr; }
}

/* Font filter buttons */
.filter-btn {
    padding: 4px 12px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-muted);
    font-size: 0.78rem;
    cursor: pointer;
    transition: all 0.2s;
}
.filter-btn:hover { border-color: var(--primary); color: var(--text); }
.filter-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Section detail options */
.section-options-row {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 6px;
}
.section-select {
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text);
    font-size: 0.78rem;
}
.section-upload-row {
    margin-top: 8px;
}
.section-file-input {
    display: none;
}
.section-upload-btn {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 6px;
    border: 1px dashed var(--border);
    color: var(--text-muted);
    font-size: 0.78rem;
    cursor: pointer;
    transition: all 0.2s;
}
.section-upload-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}
.section-upload-label {
    cursor: pointer;
}

/* ===== CUSTOM FILE INPUT ===== */
.file-input-wrapper {
    position: relative;
    display: inline-block;
}
.file-input-wrapper input[type="file"] {
    position: absolute;
    left: 0; top: 0;
    width: 100%; height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}
.file-input-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1px dashed var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-input);
    color: var(--text-secondary);
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
}
.file-input-label:hover {
    border-color: var(--accent);
    color: var(--accent);
}
.file-input-wrapper.has-file .file-input-label {
    border-color: var(--green);
    color: var(--green);
    border-style: solid;
}

@media print {
    .header, .footer, .btn, .progress-bar { display: none !important; }
    body { background: #fff; color: #000; }
    .contrato-card { box-shadow: none; border: none; padding: 0; max-width: 100%; }
    .contrato-section h2 { color: #333; }
    .contrato-header-doc h1 { color: #333; }
    .contrato-table th, .contrato-table td { border-color: #ddd; }
}
