*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
:root {
    --bg: #0a0a0a; --card: #1a1a1a; --border: #2a2a2a;
    --text: #f1f1f1; --text2: #b0b0b0; --muted: #6a6a6a;
    --primary: #25f4ee; --primary-dark: #1cc0b8; --accent: #fe2c55;
    --radius: 24px; --radius-sm: 14px;
    --ease: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font: 'Inter', system-ui, sans-serif;
}
body {
    font-family: var(--font); background: var(--bg); color: var(--text);
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    padding: 16px; line-height: 1.5;
}
.app { width: 100%; max-width: 720px; margin: 0 auto; }
.card {
    background: var(--card); border-radius: var(--radius);
    padding: 32px 28px; border: 1px solid var(--border);
    box-shadow: 0 8px 32px rgba(0,0,0,.6);
}
h1, h2, h3, h4 { font-weight: 600; letter-spacing: -0.02em; }

/* ─── Botões ─── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 14px 28px; border: none; border-radius: var(--radius-sm);
    font-family: var(--font); font-size: 1rem; font-weight: 600; cursor: pointer;
    transition: var(--ease); min-height: 52px; text-decoration: none;
}
.btn-primary { background: var(--primary); color: #000; }
.btn-primary:hover:not(:disabled) { background: var(--primary-dark); transform: translateY(-2px); }
.btn-primary:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-outline { background: transparent; color: var(--text2); border: 2px solid var(--border); }
.btn-outline:hover { background: rgba(255,255,255,0.05); }
.btn-success { background: var(--accent); color: #fff; }
.btn-ghost { background: transparent; color: var(--text2); }
.btn-ghost:hover { background: rgba(255,255,255,0.05); }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; min-height: 38px; }

/* ─── Home ─── */
.home-header { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; justify-content: center; }
.logo i { font-size: 2.4rem; color: var(--primary); }
.logo-text {
    font-size: 1.3rem; font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.home-title { font-size: 1.7rem; font-weight: 700; line-height: 1.2; margin: 16px 0 12px; color: #fff; text-align: center; }
.home-desc { font-size: 1rem; color: var(--text2); margin-bottom: 24px; text-align: center; }
.home-features { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 24px 0 28px; }
.feature {
    display: flex; align-items: center; gap: 10px; font-size: 0.92rem;
    color: var(--text2); background: rgba(255,255,255,0.04);
    padding: 10px 14px; border-radius: var(--radius-sm); border: 1px solid var(--border);
}
.feature i { color: var(--primary); }
.home-privacy {
    font-size: 0.82rem; color: var(--muted); background: rgba(255,255,255,0.03);
    padding: 14px 16px; border-radius: var(--radius-sm); margin-top: 20px;
    line-height: 1.6; border-left: 3px solid var(--primary);
}
.home-privacy i { color: var(--primary); margin-right: 6px; }

/* ─── Tipo escolha ─── */
.tipo-escolha { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 20px 0 8px; }
.tipo-card {
    background: rgba(255,255,255,0.03); border: 2px solid var(--border);
    border-radius: var(--radius-sm); padding: 20px 16px; text-align: center;
    cursor: pointer; transition: var(--ease); position: relative;
}
.tipo-card:hover { border-color: var(--primary); }
.tipo-card.selecionado { border-color: var(--primary); background: rgba(37,244,238,0.1); }
.tipo-card i { font-size: 2rem; color: var(--primary); margin-bottom: 8px; display: block; }
.tipo-card .titulo { font-weight: 700; color: #fff; }
.tipo-card .desc { font-size: 0.8rem; color: var(--muted); }
.tipo-card .check-icon { position: absolute; top: 10px; right: 10px; color: var(--primary); opacity: 0; }
.tipo-card.selecionado .check-icon { opacity: 1; }

/* ─── Progress ─── */
.progress-section { margin-bottom: 28px; }
.progress-header { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 0.85rem; color: var(--text2); }
.progress-track { height: 6px; background: var(--border); border-radius: 99px; overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--primary), var(--accent)); width: 0%; transition: width 0.5s; }

/* ─── Steps ─── */
.step-container { display: none; animation: fadeIn 0.4s ease; }
.step-container.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.step-title { font-size: 1.4rem; font-weight: 700; color: #fff; margin-bottom: 4px; display: flex; align-items: center; gap: 10px; }
.step-title i { color: var(--primary); }
.step-sub { color: var(--text2); font-size: 0.95rem; margin-bottom: 24px; }

/* ─── Forms ─── */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; }
.form-group label .req { color: var(--accent); }
.form-group .hint { font-size: 0.8rem; color: var(--muted); margin-top: 4px; }
.form-control {
    width: 100%; padding: 14px 16px; border: 2px solid var(--border);
    border-radius: var(--radius-sm); font-family: var(--font); font-size: 1rem;
    background: #111; color: var(--text); transition: var(--ease); min-height: 52px;
}
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(37,244,238,0.1); }
.error-msg { display: none; font-size: 0.82rem; color: var(--accent); margin-top: 6px; align-items: center; gap: 6px; }
.error-msg.show { display: flex; }
.password-wrapper { position: relative; }
.password-wrapper .toggle-pwd {
    position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
    background: none; border: none; color: var(--muted); cursor: pointer; font-size: 1.2rem;
}

/* ─── Upload ─── */
.upload-zone {
    border: 2px dashed var(--border); border-radius: var(--radius-sm);
    padding: 28px 20px; text-align: center; cursor: pointer;
    transition: var(--ease); background: rgba(255,255,255,0.02); position: relative;
}
.upload-zone:hover { border-color: var(--primary); }
.upload-zone .icon { font-size: 2.4rem; color: var(--muted); margin-bottom: 8px; }
.upload-zone .uz-title { font-weight: 600; }
.upload-zone .uz-sub { font-size: 0.85rem; color: var(--muted); }
.upload-zone input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload-preview {
    display: none; margin-top: 16px; padding: 16px;
    background: rgba(255,255,255,0.04); border-radius: var(--radius-sm);
    align-items: center; gap: 16px; border: 1px solid var(--border);
}
.upload-preview.show { display: flex; flex-wrap: wrap; }
.upload-preview .thumb { width: 72px; height: 72px; border-radius: 8px; object-fit: cover; }
.upload-preview .info { flex: 1; min-width: 120px; }
.upload-preview .info .name { font-weight: 500; font-size: 0.9rem; word-break: break-all; }
.upload-preview .actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ─── Checkbox ─── */
.checkbox-group { display: flex; align-items: flex-start; gap: 12px; margin: 12px 0; cursor: pointer; }
.checkbox-group input[type="checkbox"] { width: 22px; height: 22px; min-width: 22px; margin-top: 1px; accent-color: var(--primary); cursor: pointer; }
.checkbox-group .label-text { font-size: 0.92rem; color: var(--text2); line-height: 1.5; }

/* ─── Nav ─── */
.nav-buttons { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.nav-buttons .btn { flex: 1; min-width: 100px; }

/* ─── Review ─── */
.review-card { background: rgba(255,255,255,0.03); border-radius: var(--radius-sm); padding: 16px 18px; margin-bottom: 14px; border: 1px solid var(--border); }
.review-header { display: flex; justify-content: space-between; margin-bottom: 8px; }
.review-header h4 { font-size: 0.95rem; color: #fff; display: flex; align-items: center; gap: 8px; }
.edit-link { font-size: 0.8rem; color: var(--primary); cursor: pointer; background: none; border: none; text-decoration: underline; }
.review-row { display: flex; justify-content: space-between; padding: 4px 0; font-size: 0.9rem; border-bottom: 1px solid rgba(255,255,255,0.04); }
.review-row:last-child { border-bottom: none; }
.review-row .label { color: var(--muted); }
.review-row .value { font-weight: 500; text-align: right; max-width: 60%; word-break: break-word; }

/* ─── Pagamento ─── */
.payment-box {
    background: rgba(255,255,255,0.03); border: 1px solid var(--border);
    border-radius: var(--radius-sm); padding: 24px 20px; text-align: center; margin: 16px 0;
}
.payment-value {
    font-size: 2.2rem; font-weight: 700; margin: 8px 0;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.payment-note { font-size: 0.85rem; color: var(--muted); margin-top: 8px; line-height: 1.6; }
.qr-box {
    margin: 16px auto 0; padding: 16px; background: #fff; border-radius: 12px;
    width: 220px; height: 220px; display: flex; align-items: center; justify-content: center;
}
.qr-box img { width: 100%; height: 100%; object-fit: contain; }
.copy-pix { display: flex; gap: 8px; margin-top: 12px; }
.copy-pix input {
    min-width: 0; flex: 1; font-size: 0.75rem; padding: 10px;
    background: #0e0e0e; border: 1px solid var(--border); border-radius: 8px; color: var(--text);
}
.payment-status-box {
    background: rgba(37,244,238,0.15); border: 1px solid var(--primary);
    border-radius: var(--radius-sm); padding: 14px; margin-top: 16px;
    color: var(--primary); font-weight: 600; text-align: center;
}
.terms-section { margin: 20px 0 16px; padding-top: 16px; border-top: 2px solid var(--border); }

/* ─── Success ─── */
#success { display: none; text-align: center; padding: 30px 20px 20px; }
#success.show { display: block; }
.success-icon {
    font-size: 4.5rem; color: var(--primary); background: rgba(37,244,238,0.12);
    width: 120px; height: 120px; border-radius: 50%; display: flex;
    align-items: center; justify-content: center; margin: 0 auto 20px;
    border: 3px solid var(--primary);
}
#success h2 {
    font-size: 2rem; color: #fff; margin-bottom: 12px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
#success .sub-message { color: var(--text2); max-width: 420px; margin: 0 auto 20px; }

/* ─── Loading ─── */
.loading-overlay {
    display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.8);
    z-index: 999; align-items: center; justify-content: center; flex-direction: column; gap: 16px;
}
.loading-overlay.show { display: flex; }
.spinner { width: 48px; height: 48px; border: 4px solid var(--border); border-top-color: var(--primary); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Responsive ─── */
@media (max-width: 480px) {
    .card { padding: 20px 16px; }
    .home-features { grid-template-columns: 1fr; }
    .nav-buttons { flex-direction: column; }
    .tipo-escolha { grid-template-columns: 1fr; }
}
