/* ===== ONBOARDING SPLASH ===== */
.onboarding { max-width: 720px; }
.onboarding-hero { text-align: center; margin-bottom: 24px; }
.onboarding-hero h2 { font-size: 1.5rem; margin-bottom: 8px; }
.onboarding-hero p { color: var(--text-secondary); }
.ob-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 24px 0; }
.ob-step { text-align: center; padding: 20px 16px; background: var(--bg); border-radius: var(--radius); }
.ob-step-num {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; margin: 0 auto 12px;
}
.ob-step h3 { font-size: .95rem; margin-bottom: 6px; }
.ob-step p { font-size: .82rem; color: var(--text-secondary); line-height: 1.5; }

/* ===== STEPPER / WIZARD ===== */
.stepper { display: flex; align-items: center; margin-bottom: 28px; }
.stepper-item { display: flex; align-items: center; gap: 10px; }
.stepper-dot {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .82rem; color: var(--text-muted); flex-shrink: 0;
}
.stepper-item.active .stepper-dot { background: var(--accent); border-color: var(--accent); color: #fff; }
.stepper-item.done .stepper-dot { background: var(--success); border-color: var(--success); color: #fff; }
.stepper-label { font-size: .85rem; font-weight: 500; color: var(--text-secondary); white-space: nowrap; }
.stepper-item.active .stepper-label { color: var(--text); font-weight: 600; }
.stepper-line { width: 40px; height: 2px; background: var(--border); margin: 0 12px; flex-shrink: 0; }
.stepper-item.done + .stepper-line { background: var(--success); }

/* ===== CHOICE CARDS ===== */
.choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 8px; }
.choice-card {
  border: 2px solid var(--border); border-radius: var(--radius); padding: 18px 16px;
  cursor: pointer; transition: var(--transition); text-align: center; background: var(--surface);
}
.choice-card:hover { border-color: var(--accent); }
.choice-card.selected { border-color: var(--accent); background: var(--accent-light); }
.choice-card svg { width: 26px; height: 26px; color: var(--accent); margin-bottom: 8px; }
.choice-card h4 { font-size: .9rem; margin-bottom: 3px; }
.choice-card p { font-size: .76rem; color: var(--text-secondary); }

/* ===== AI HINT ===== */
.ai-hint {
  display: flex; gap: 12px; align-items: flex-start;
  background: linear-gradient(135deg, var(--info-light), #fff);
  border: 1px solid #E5D5F0; border-radius: var(--radius); padding: 14px 16px; margin: 18px 0;
}
.ai-hint svg { width: 20px; height: 20px; color: var(--info); flex-shrink: 0; margin-top: 1px; }
.ai-hint-text { font-size: .85rem; line-height: 1.5; }
.ai-hint-text strong { color: var(--info); }

/* ===== TWO FACES (CAPTAÇÃO) ===== */
.capt-hero {
  background: linear-gradient(135deg, var(--primary), var(--primary-lighter));
  color: #fff; border-radius: var(--radius-lg); padding: 24px 28px; margin-bottom: 22px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px;
}
.capt-hero-falta { font-size: 2rem; font-weight: 700; line-height: 1.1; }
.capt-hero-label { font-size: .82rem; opacity: .8; margin-bottom: 2px; }
.capt-progress { flex: 1; min-width: 260px; max-width: 460px; }
.capt-progress-bar { height: 10px; background: rgba(255,255,255,.2); border-radius: 5px; overflow: hidden; margin-top: 4px; }
.capt-progress-fill { height: 100%; background: var(--success); border-radius: 5px; }
.capt-progress-legend { display: flex; justify-content: space-between; font-size: .78rem; opacity: .85; margin-top: 6px; }

.faces-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.face-panel { background: var(--surface); border: 1px solid var(--border-light); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); overflow: hidden; }
.face-head { padding: 16px 20px; border-bottom: 1px solid var(--border-light); display: flex; align-items: center; justify-content: space-between; }
.face-head h3 { font-size: 1rem; display: flex; align-items: center; gap: 8px; }
.face-head h3 svg { width: 18px; height: 18px; color: var(--accent); }
.face-total { font-weight: 700; }
.face-total span { font-size: .75rem; color: var(--text-secondary); font-weight: 400; display: block; text-align: right; }
.face-item { display: flex; align-items: center; gap: 12px; padding: 13px 20px; border-bottom: 1px solid var(--border-light); }
.face-item:last-child { border-bottom: none; }
.face-item-main { flex: 1; min-width: 0; }
.face-item-main h4 { font-size: .9rem; font-weight: 600; margin-bottom: 3px; }
.face-item-sub { font-size: .76rem; color: var(--text-secondary); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.face-item-val { font-weight: 700; text-align: right; white-space: nowrap; font-size: .92rem; }

/* mode pill */
.mode-pill { display: inline-flex; border: 1px solid var(--border); border-radius: 20px; overflow: hidden; font-size: .68rem; font-weight: 700; cursor: pointer; }
.mode-pill span { padding: 2px 9px; }
.mode-pill .seg-on { background: var(--accent); color: #fff; }
.mode-pill .seg-off { color: var(--text-muted); background: var(--surface); }
.mode-pill.is-controle .seg-ctrl { background: var(--text-secondary); color: #fff; }
.mode-pill.is-controle .seg-fin { color: var(--text-muted); background: var(--surface); }

.origem-tag { font-size: .68rem; font-weight: 600; padding: 2px 8px; border-radius: 10px; }
.origem-proprio { background: var(--bg); color: var(--text-secondary); }
.origem-patrocinio { background: var(--accent-light); color: var(--accent); }
.origem-emprestimo { background: var(--info-light); color: var(--info); }
.origem-aberto { background: var(--warning-light); color: var(--warning); }

/* ===== CONTA CORRENTE ===== */
.cc-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 18px; }
.cc-kpi { background: var(--surface); border: 1px solid var(--border-light); border-radius: var(--radius-lg); padding: 20px 22px; box-shadow: var(--shadow-sm); }
.cc-kpi-label { font-size: .82rem; color: var(--text-secondary); display: flex; align-items: center; gap: 6px; }
.cc-kpi-label svg { width: 15px; height: 15px; }
.cc-kpi-value { font-size: 1.55rem; font-weight: 700; margin-top: 6px; }
.cc-kpi.livre .cc-kpi-value { color: var(--success); }
.cc-kpi.bloq .cc-kpi-value { color: var(--warning); }
.cc-explainer { font-size: .82rem; color: var(--text-secondary); background: var(--accent-light); border-radius: var(--radius); padding: 12px 16px; margin-bottom: 18px; display: flex; gap: 10px; align-items: flex-start; }
.cc-explainer svg { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; margin-top: 1px; }
.cc-mov { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border-light); }
.cc-mov:last-child { border-bottom: none; }
.cc-mov-icon { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.cc-mov-icon svg { width: 18px; height: 18px; }
.cc-in { background: var(--success-light); color: var(--success); }
.cc-out { background: var(--danger-light); color: var(--danger); }
.cc-mov-main { flex: 1; min-width: 0; }
.cc-mov-main h4 { font-size: .9rem; font-weight: 600; }
.cc-mov-main .cc-mov-sub { font-size: .76rem; color: var(--text-secondary); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 2px; }
.cc-mov-val { font-weight: 700; white-space: nowrap; text-align: right; }
.cc-mov-val.neg { color: var(--danger); }
.cc-mov-val.pos { color: var(--success); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .faces-grid { grid-template-columns: 1fr; }
  .cc-kpis { grid-template-columns: 1fr; }
  .ob-steps { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .stepper-label { display: none; }
  .stepper-line { width: 20px; margin: 0 6px; }
  .capt-hero-falta { font-size: 1.6rem; }
}

/* ===== PATROCINADORES (ALCANCE / DESCOBERTA) ===== */
.spon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.spon-card { background: var(--surface); border: 1px solid var(--border-light); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 18px; transition: var(--transition); }
.spon-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.spon-card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.spon-logo { width: 46px; height: 46px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; font-size: .9rem; }
.spon-name { font-weight: 700; font-size: .98rem; }
.spon-sector { font-size: .78rem; color: var(--text-secondary); }
.spon-match { margin-left: auto; text-align: center; }
.spon-match-val { font-weight: 700; font-size: 1.05rem; color: var(--success); line-height: 1; }
.spon-match small { font-size: .62rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .5px; }
.spon-row { font-size: .82rem; color: var(--text-secondary); margin: 5px 0; display: flex; gap: 7px; align-items: flex-start; }
.spon-row svg { width: 14px; height: 14px; flex-shrink: 0; margin-top: 2px; color: var(--text-muted); }
.spon-card .btn { width: 100%; margin-top: 12px; justify-content: center; }

.alcance-strip { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.alcance-strip .ap-bar { flex: 1; min-width: 200px; height: 8px; background: var(--border); border-radius: 4px; overflow: hidden; }
.alcance-strip .ap-fill { height: 100%; background: var(--success); border-radius: 4px; }

@media (max-width: 1024px) { .spon-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 768px) { .spon-grid { grid-template-columns: 1fr; } }

/* ===== LOGIN — frentes (8 perfis) ===== */
.login-frente-label { font-size: .7rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); font-weight: 700; margin: 14px 0 2px; }
.login-frente-label:first-child { margin-top: 0; }
.login-container { max-height: 95vh; }
.login-form-side { overflow-y: auto; }
.login-portal-cards .login-portal-card { padding: 12px 16px; gap: 12px; }
.login-portal-cards .login-portal-icon { width: 38px; height: 38px; }
.login-portal-cards .login-portal-card h3 { font-size: .92rem; }
.login-portal-cards .login-portal-card p { font-size: .76rem; }
