/* ================================================
   Liberal Vibe — Register Multi-Step
   ================================================ */
.register-body { background:#111317; min-height:100vh; display:flex; align-items:flex-start; justify-content:center; padding:24px 16px 60px; font-family:var(--font-landing, 'Inter', sans-serif); }

.reg-wrapper { width:100%; max-width:520px; }

/* ================================================
   POPUP PLANO FREE
   ================================================ */
.plan-popup-overlay {
    position: fixed; inset: 0; z-index: 9998;
    background: rgba(0,0,0,.75);
    backdrop-filter: blur(6px);
    display: flex; align-items: center; justify-content: center;
    padding: 20px; box-sizing: border-box;
    overflow-y: auto; overscroll-behavior: contain;
}
.plan-popup {
    background: #1a1c24;
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 20px;
    padding: 28px 24px 24px;
    width: 100%; max-width: 400px;
    text-align: center;
    animation: fadeInUp .3s ease;
}
.plan-badge-free {
    display: inline-block;
    background: #3b82f6;
    color: #fff;
    font-size: 11px; font-weight: 900; letter-spacing: 1.5px;
    padding: 4px 14px; border-radius: 50px;
    margin-bottom: 12px;
}
.plan-popup-title { font-size: 18px; font-weight: 800; color: #fff; margin-bottom: 6px; }
.plan-popup-price { font-size: 32px; font-weight: 900; color: #fff; margin-bottom: 4px; }
.plan-popup-price span { font-size: 14px; color: #fff; font-weight: 500; }
.plan-not-allowed-title { font-size: 12px; font-weight: 800; color: #f7235e; letter-spacing: .5px; text-align: left; margin: 14px 0 10px; }
.plan-not-allowed { list-style: none; padding: 0; margin: 0 0 18px; text-align: left; }
.plan-not-allowed li { font-size: 13px; color: #fff; padding: 5px 0 5px 22px; position: relative; border-bottom: 1px solid rgba(255,255,255,.04); }
.plan-not-allowed li::before { content: '✕'; position: absolute; left: 0; color: #f7235e; font-weight: 700; font-size: 11px; top: 6px; }
.plan-popup-footer-title { font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 20px; }
.plan-popup-btns { display: flex; flex-direction: column; gap: 10px; }
.plan-btn-upgrade {
    width: 100%; min-height: 64px; padding: 0 28px; border: none; border-radius: 12px;
    background: linear-gradient(135deg, #d8292f 0%, #f47175 100%);
    color: #fff; font-size: 19px; font-weight: 800; cursor: pointer;
    transition: all .2s; letter-spacing: 0;
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    box-shadow: 0 10px 24px rgba(216,41,47,.22);
}
.plan-btn-upgrade::after { content: '\f054'; font-family: 'Font Awesome 6 Free'; font-weight: 900; font-size: 18px; }
.plan-btn-upgrade:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(216,41,47,.32); }
.plan-btn-free {
    width: 100%; padding: 13px; border: 1.5px solid rgba(255,255,255,.15);
    border-radius: 50px; background: transparent;
    color: #fff; font-size: 14px; font-weight: 600; cursor: pointer;
    transition: all .2s;
}
.plan-btn-free:hover { border-color: rgba(255,255,255,.35); color: #fff; }


/* Logo */
.reg-logo-wrap { text-align:center; padding:28px 28px 0; }
.reg-logo { display:inline-flex; align-items:center; justify-content:center; gap:.18em; font-family:var(--font-brand-script); font-size:clamp(42px, 7vw, 52px); font-weight:700; letter-spacing:.035em; line-height:.95; white-space:nowrap; color:#ffffff; }
.reg-logo span { color:#f7235e; }
.reg-logo-sub { font-size:12px; color:#fff; margin-top:4px; font-weight:500; }


.reg-modal { background:#1a1c24; border:1px solid rgba(255,255,255,0.07); border-radius:20px; overflow:hidden; }

/* Step label */
.reg-step-label { text-align:center; padding:16px 28px 0; font-size:13px; font-weight:600; color:#fff; letter-spacing:.3px; }

/* Progress */
.reg-progress { display:flex; align-items:center; padding:18px 28px 8px; gap:0; }
.reg-dot { width:32px; height:32px; border-radius:50%; border:2px solid #2d2f3a; background:#1a1c24; color:#fff; font-size:13px; font-weight:700; display:flex; align-items:center; justify-content:center; flex-shrink:0; transition:all .25s; position:relative; z-index:1; }
.reg-dot.active { border-color:#f7235e; background:#f7235e; color:#fff; box-shadow:0 0 0 4px rgba(247,35,94,.15); }
.reg-dot.done { border-color:#f7235e; background:#f7235e; color:#fff; }
.reg-dot.done span { display:none; }
.reg-dot.done::after { content:'✓'; font-size:14px; }
.reg-line { flex:1; height:2px; background:#2d2f3a; transition:background .25s; }
.reg-line.done { background:#f7235e; }

/* Error */
.reg-error { display:none; margin:0 28px; padding:10px 14px; background:rgba(239,68,68,.1); border:1px solid rgba(239,68,68,.3); border-radius:10px; color:#f5c518; font-size:13px; font-weight:600; }
.reg-error.show { display:block; }
.reg-field-error-bubble { position:relative; margin:0 0 9px; padding:10px 12px 10px 34px; background:rgba(45,20,29,.96); border:1px solid rgba(239,68,68,.48); border-radius:10px; color:#f5c518; font-size:12.5px; font-weight:700; line-height:1.35; box-shadow:0 8px 24px rgba(0,0,0,.25); animation:fadeInUp .18s ease; }
.reg-field-error-bubble::before { content:'!'; position:absolute; left:12px; top:50%; transform:translateY(-50%); width:14px; height:14px; border-radius:50%; background:#ef4444; color:#fff; font-size:10px; line-height:14px; text-align:center; font-weight:900; }
.reg-field-error-bubble::after { content:''; position:absolute; left:22px; bottom:-7px; width:12px; height:12px; background:rgba(45,20,29,.96); border-right:1px solid rgba(239,68,68,.48); border-bottom:1px solid rgba(239,68,68,.48); transform:rotate(45deg); }
.reg-field-error-target { border-color:#ef4444 !important; box-shadow:0 0 0 2px rgba(239,68,68,.22) !important; }
.reg-checkbox.reg-field-error-target { border:1px solid rgba(239,68,68,.45); border-radius:10px; padding:10px; background:rgba(239,68,68,.06); }

/* Panels */
.reg-panel { display:none; padding:8px 28px 28px; }
.reg-panel.active { display:block; }

/* Labels / Inputs */
.reg-label { font-size:11px; font-weight:800; text-transform:uppercase; letter-spacing:.8px; color:#fff; margin-bottom:6px; display:block; }
.reg-input { width:100%; background:#12121a; border:1px solid rgba(255,255,255,0.35); border-radius:10px; padding:13px 16px; color:#fff; font-size:14px; box-sizing:border-box; transition:border-color .2s; outline:none; }
.reg-input:focus { border-color:#f7235e; }
.reg-input::placeholder { color:#fff; }
.reg-select { width:100%; background:#12121a; border:1px solid rgba(255,255,255,0.35); border-radius:10px; padding:13px 16px; color:#fff; font-size:14px; box-sizing:border-box; appearance:none; -webkit-appearance:none; outline:none; cursor:pointer; }
.reg-select:focus { border-color:#f7235e; }
.reg-group { margin-bottom:16px; }
.reg-group, .reg-input, .reg-select, .reg-upload-area, .reg-lf-btn, .reg-btn-wrap, .reg-checkbox { scroll-margin:24px; }
.reg-row { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.reg-hint { font-size:11px; color:#fff; margin-top:4px; }
.reg-hint.warn { color:#f5c518; }

/* City quick search */
.reg-city-search-wrap { position:relative; margin-bottom:8px; }
.reg-city-search:disabled { opacity:.62; cursor:not-allowed; }
.reg-city-results {
    display:none;
    position:absolute;
    left:0;
    right:0;
    top:calc(100% + 6px);
    z-index:30;
    max-height:220px;
    overflow-y:auto;
    padding:6px;
    background:#12121a;
    border:1px solid rgba(247,35,94,.62);
    border-radius:10px;
    box-shadow:0 16px 36px rgba(0,0,0,.45);
}
.reg-city-results.open { display:block; }
.reg-city-option {
    width:100%;
    min-height:38px;
    padding:8px 10px;
    background:transparent;
    border:none;
    border-radius:8px;
    color:#fff;
    cursor:pointer;
    display:flex;
    align-items:center;
    text-align:left;
    font-size:14px;
    font-weight:600;
}
.reg-city-option:hover,
.reg-city-option:focus { background:#f7235e; outline:none; }
.reg-city-option.empty { color:#f5c518; cursor:default; }
.reg-city-option.empty:hover { background:transparent; }

/* Password wrap */
.reg-pw-wrap { position:relative; }
.reg-pw-wrap .reg-input { padding-right:44px; }
.reg-pw-toggle { position:absolute; right:0; top:0; bottom:0; width:44px; background:none; border:none; color:#fff; cursor:pointer; display:flex; align-items:center; justify-content:center; font-size:15px; transition:color .15s; }
.reg-pw-toggle:hover { color:#f7235e; }

/* Continue button */
.reg-btn-wrap { display:flex; justify-content:center; margin-top:24px; width:100%; }
.reg-btn-continue { width:100%; min-height:64px; background:linear-gradient(135deg, #d8292f 0%, #f47175 100%); color:#fff; border:none; border-radius:12px; padding:0 28px; font-size:19px; font-weight:800; letter-spacing:0; cursor:pointer; transition:box-shadow .2s, transform .2s; text-align:left; text-decoration:none; display:flex; align-items:center; justify-content:space-between; gap:14px; box-shadow:0 10px 24px rgba(216,41,47,.22); animation:btnPulse 2s ease-in-out infinite; }
.reg-btn-continue::after { content:'\f054'; font-family:'Font Awesome 6 Free'; font-weight:900; font-size:18px; flex-shrink:0; }
.reg-btn-continue:hover { transform:translateY(-1px); box-shadow:0 12px 28px rgba(216,41,47,.32); animation:none; }
.reg-btn-continue:disabled { opacity:.6; cursor:not-allowed; transform:none; animation:none; }

@keyframes btnPulse {
    0%   { box-shadow: 0 0 0 0 rgba(247,35,94,0.55); }
    60%  { box-shadow: 0 0 0 10px rgba(247,35,94,0); }
    100% { box-shadow: 0 0 0 0 rgba(247,35,94,0); }
}

/* Referral warning (fixo até escolha) */
.ref-warning { position:relative; margin:0 0 12px; padding:10px 14px 10px 36px; background:rgba(45,20,29,.96); border:1px solid rgba(239,68,68,.48); border-radius:10px; color:#f5c518; font-size:12.5px; font-weight:700; line-height:1.4; text-align:left; box-shadow:0 8px 24px rgba(0,0,0,.25); animation:fadeInUp .18s ease; }
.ref-warning::before { content:'!'; position:absolute; left:12px; top:50%; transform:translateY(-50%); width:14px; height:14px; border-radius:50%; background:#ef4444; color:#fff; font-size:10px; line-height:14px; text-align:center; font-weight:900; }
.ref-warning::after { content:''; position:absolute; left:24px; bottom:-7px; width:12px; height:12px; background:rgba(45,20,29,.96); border-right:1px solid rgba(239,68,68,.48); border-bottom:1px solid rgba(239,68,68,.48); transform:rotate(45deg); }

/* Referral block */
.ref-block { background:rgba(247,35,94,.04); border:1px solid rgba(247,35,94,.15); border-radius:14px; padding:16px; margin-bottom:16px; }
.ref-title { font-size:13px; font-weight:800; color:#fff; letter-spacing:.6px; margin-bottom:12px; text-align:center; }
.ref-input-wrap { position:relative; display:flex; align-items:center; }
.ref-prefix { position:absolute; left:14px; color:#f7235e; font-weight:800; font-size:15px; pointer-events:none; z-index:1; }
.ref-input { padding-left:32px !important; padding-right:38px !important; }
.ref-status { position:absolute; right:12px; font-size:16px; display:none; }
.ref-status.loading,.ref-status.valid,.ref-status.invalid { display:block; }
.ref-status.valid { color:#4ade80; }
.ref-status.invalid { color:#ef4444; }
.ref-feedback { font-size:12px; margin-top:5px; min-height:16px; font-weight:600; }
.ref-feedback.success { color:#4ade80; }
.ref-feedback.error { color:#ef4444; }
.ref-block.ref-block--link-preview { display:flex; flex-direction:column; }
.ref-block.ref-block--link-preview #referralInputGroup { display:none !important; }
.ref-block.ref-block--link-preview .ref-avatar-box { order:2; }
.ref-block.ref-block--link-preview .reg-checkbox { order:3; margin:12px auto 0 !important; }
.ref-block.ref-block--link-preview .ref-hint { order:4; }
.ref-avatar-box { display:flex; align-items:center; gap:12px; background:rgba(74,222,128,.06); border:1px solid rgba(74,222,128,.2); border-radius:12px; padding:10px 14px; margin:10px 0; animation:fadeInUp .25s ease; }
.ref-avatar-img { width:44px; height:44px; border-radius:50%; object-fit:cover; border:2px solid #f7235e; flex-shrink:0; }
.ref-avatar-name { font-size:13px; font-weight:700; color:#fff; }
.ref-avatar-user { font-size:11px; color:#4ade80; font-weight:600; }
.ref-avatar-check { color:#4ade80; font-size:20px; margin-left:auto; }
.ref-hint { font-size:11px; color:#fff; margin-top:6px; padding:8px 12px; background:rgba(247,35,94,.06); border-radius:8px; }

/* Step section title */
.reg-section-title { font-size:13px; font-weight:800; color:#f7235e; text-transform:uppercase; letter-spacing:.6px; margin:20px 0 14px; padding-top:16px; border-top:1px solid rgba(255,255,255,.06); }

/* File upload */
.reg-upload-area { background:linear-gradient(135deg, rgba(255,209,102,.22), rgba(247,35,94,.16)); border:2px dashed rgba(245,197,24,.9); border-radius:12px; padding:24px; text-align:center; cursor:pointer; transition:border-color .2s, box-shadow .2s, background .2s; position:relative; overflow:hidden; box-shadow:0 0 0 1px rgba(245,197,24,.12), 0 10px 26px rgba(245,197,24,.08); }
.reg-upload-area:hover { border-color:#f5c518; background:linear-gradient(135deg, rgba(255,209,102,.3), rgba(247,35,94,.2)); box-shadow:0 0 0 1px rgba(245,197,24,.2), 0 12px 30px rgba(245,197,24,.14); }
.reg-upload-area input[type=file] { position:absolute; inset:0; opacity:0; cursor:pointer; width:100%; height:100%; }
.reg-upload-icon { font-size:28px; margin-bottom:6px; }
.reg-upload-text { font-size:13px; color:#fff; font-weight:500; }
.reg-upload-preview { width:80px; height:80px; border-radius:50%; object-fit:cover; display:none; margin:0 auto 6px; border:2px solid #f7235e; }
.reg-upload-preview.post-prev { width:100%; height:120px; border-radius:10px; }

/* Profile preview card */
.reg-profile-card { display:flex; flex-direction:column; align-items:center; gap:6px; margin:0 0 18px; text-align:center; }
.reg-profile-avatar-btn { position:relative; width:118px; height:118px; padding:0; border:0; border-radius:16px; background:transparent; cursor:pointer; overflow:visible; }
.reg-profile-avatar-img,
.reg-profile-avatar-fallback { width:100%; height:100%; border-radius:16px; border:1px solid rgba(255,255,255,.2); object-fit:cover; display:block; background:#f8f8f8; }
.reg-profile-avatar-img { display:none; }
.reg-profile-avatar-fallback { display:flex; align-items:center; justify-content:center; color:#fff; background:radial-gradient(circle at 50% 35%, #3e4148 0, #2c2f36 64%, #20242b 100%); font-size:64px; }
.reg-profile-edit { position:absolute; right:-4px; bottom:-4px; width:34px; height:34px; border-radius:50%; display:flex; align-items:center; justify-content:center; background:#1a1c24; border:2px solid rgba(255,255,255,.92); color:#fff; box-shadow:0 6px 18px rgba(0,0,0,.34); font-size:15px; }
.reg-profile-name { color:#fff; font-size:16px; font-weight:800; line-height:1.2; max-width:100%; overflow-wrap:anywhere; }
.reg-profile-username { color:#f5c518; font-size:12px; font-weight:700; line-height:1.2; max-width:100%; overflow-wrap:anywhere; }
.reg-profile-referral-row { display:flex; align-items:center; justify-content:center; gap:8px; flex-wrap:wrap; max-width:100%; }
.reg-referral-copy-btn { min-height:28px; padding:0 10px; border:1px solid rgba(34,197,94,.85); border-radius:7px; background:#16a34a; color:#fff; display:inline-flex; align-items:center; justify-content:center; gap:6px; font-size:11px; font-weight:800; cursor:pointer; transition:background .2s, border-color .2s, transform .2s; white-space:normal; text-align:center; line-height:1.15; }
.reg-referral-copy-btn:hover { background:#15803d; border-color:#fff; transform:translateY(-1px); }
.reg-referral-copy-btn.is-copied { background:rgba(34,197,94,.18); border-color:rgba(34,197,94,.8); color:#dcfce7; }
.reg-referral-reward { width:min(420px,100%); margin:2px auto 0; color:#fff; font-size:12px; font-weight:700; line-height:1.38; text-align:center; background:rgba(247,35,94,.1); border:1px solid rgba(247,35,94,.3); border-radius:10px; padding:9px 10px; }
.reg-referral-reward strong { color:#f5c518; font-weight:900; }

/* Checkbox */
.reg-checkbox { display:flex; align-items:flex-start; gap:10px; font-size:13px; color:#fff; line-height:1.5; cursor:pointer; margin-bottom:12px; }
.reg-checkbox input { width:16px; height:16px; flex-shrink:0; margin-top:2px; accent-color:#f7235e; cursor:pointer; }
.reg-checkbox a { color:#f7235e; }

/* Step 5 — Success */
.reg-success { text-align:center; padding:8px 0; }
.reg-success-icon { font-size:40px; margin-bottom:8px; }
.reg-success h2 { font-size:24px; font-weight:800; color:#fff; margin-bottom:12px; }
.reg-success p { font-size:14px; color:#fff; line-height:1.6; max-width:340px; margin:0 auto; }
.reg-success .reg-email-display { font-weight:700; color:#f5c518; }

/* Looking-for button */
.reg-lf-btn { width:100%; background:#12121a; border:1px solid rgba(255,255,255,0.35); border-radius:10px; padding:13px 16px; color:#fff; font-size:14px; text-align:left; cursor:pointer; display:flex; align-items:center; transition:border-color .2s; }
.reg-lf-btn.has-val { color:#fff; }
.reg-lf-btn:hover { border-color:#f7235e; }
.reg-lf-btn i { margin-left:auto; opacity:1; }

/* Input código verificação */
.reg-code-input {
    text-align: center;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 10px;
    padding: 16px;
    color: #fff;
}
.reg-code-input::placeholder { letter-spacing: 8px; font-size: 20px; opacity: 1; }

/* Animations */
@keyframes fadeInUp { from{opacity:0;transform:translateY(-6px)} to{opacity:1;transform:translateY(0)} }

/* Responsive */
@media (max-width:480px) {
    .reg-modal { border-radius:16px; }
    .reg-step-label { padding:12px 18px 0; font-size:12px; }
    .reg-progress { padding:14px 18px 8px; }
    .reg-panel { padding:8px 18px 22px; }
    .reg-row { grid-template-columns:1fr; gap:0; }
    .reg-referral-copy-btn { max-width:100%; }
    .reg-referral-reward { font-size:11.5px; }
}
