/* =============================================
   TAMÚ — Design System
   ============================================= */

/* ---- Custom Properties ---- */
:root {
  --bg-dark:            #010326;
  --bg-light:           #f0f1fa;
  --yellow:             #ebf227;
  --green:              #1db954;
  --green-bg:           rgba(29,185,84,0.12);
  --green-border:       rgba(29,185,84,0.25);
  --blue:               #1195e1;
  --blue-bg:            rgba(17,149,225,0.08);
  --blue-border:        rgba(17,149,225,0.2);
  --red:                #ef4444;
  --red-bg:             rgba(239,68,68,0.08);

  --white:              #ffffff;
  --text-muted:         rgba(255,255,255,0.5);
  --text-dim:           rgba(255,255,255,0.35);
  --text-subtle:        rgba(255,255,255,0.4);
  --text-medium:        rgba(255,255,255,0.6);

  --card-dark-bg:       rgba(255,255,255,0.04);
  --card-dark-border:   rgba(255,255,255,0.08);
  --card-yellow-bg:     rgba(235,242,39,0.08);
  --card-yellow-border: rgba(235,242,39,0.18);

  --input-bg:           #ffffff;
  --input-border:       #e0e0e0;
  --input-focus:        #1195e1;
  --placeholder:        #bbbbbb;
  --label:              #888888;
  --text-dark:          #010326;

  --font:       'Poppins', sans-serif;
  --r-sm:       8px;
  --r-md:       12px;
  --r-lg:       16px;
  --r-xl:       24px;
  --r-full:     9999px;
}

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

body {
  font-family: var(--font);
  background: #06091e;
  display: flex;
  justify-content: center;
  min-height: 100dvh;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ---- Phone Wrapper ---- */
#app-wrapper {
  width: 100%;
  max-width: 390px;
  height: 100dvh;
  position: relative;
  overflow: hidden;
  background: var(--bg-dark);
  box-shadow: 0 0 80px rgba(0,0,0,0.6);
}

#app {
  position: relative;
  width: 100%;
  height: 100%;
}

/* ---- Screen Base ---- */
.screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg-dark);
}

.screen-scroll {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.screen-scroll::-webkit-scrollbar { display: none; }

/* ---- Floating CTA ---- */
.floating-cta {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 24px 32px;
  background: linear-gradient(to top, var(--bg-dark) 70%, transparent);
  pointer-events: none;
  z-index: 10;
}
.floating-cta .btn {
  pointer-events: all;
}

/* ---- Screen Transitions ---- */
@keyframes slideInRight  { from { transform: translateX(100%) }  to { transform: translateX(0) } }
@keyframes slideOutLeft  { from { transform: translateX(0) }    to { transform: translateX(-25%) } }
@keyframes slideInLeft   { from { transform: translateX(-25%) } to { transform: translateX(0) } }
@keyframes slideOutRight { from { transform: translateX(0) }    to { transform: translateX(100%) } }

.slide-in-right  { animation: slideInRight  0.32s cubic-bezier(0.25,0.46,0.45,0.94) both; }
.slide-out-left  { animation: slideOutLeft  0.32s cubic-bezier(0.25,0.46,0.45,0.94) both; pointer-events: none; }
.slide-in-left   { animation: slideInLeft   0.32s cubic-bezier(0.25,0.46,0.45,0.94) both; }
.slide-out-right { animation: slideOutRight 0.32s cubic-bezier(0.25,0.46,0.45,0.94) both; pointer-events: none; }

/* ---- Status Bar ---- */
.status-bar { display: none; }
.status-icons { display: none; }

/* ---- Nav Header ---- */
.nav-header {
  display: flex;
  align-items: center;
  padding: 0 6px;
  height: 52px;
  flex-shrink: 0;
}
.back-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--white);
  border-radius: var(--r-sm);
  transition: opacity 0.15s;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}
.back-btn:active { opacity: 0.6; }
.page-title {
  flex: 1;
  font-size: 17px;
  font-weight: 600;
  color: var(--white);
  text-align: center;
  padding-right: 44px;
}

/* ---- Progress Bar ---- */
.progress-bar-track {
  height: 3px;
  background: rgba(255,255,255,0.08);
  flex-shrink: 0;
}
.progress-bar-fill {
  height: 100%;
  background: var(--yellow);
  transition: width 0.5s ease;
  border-radius: 0 2px 2px 0;
}

/* ---- Logo ---- */
/* ── Flow version toggle ── */
.flow-toggle {
  display: flex;
  background: rgba(255,255,255,0.07);
  border-radius: 20px;
  padding: 3px;
  gap: 2px;
}
.flow-btn {
  background: none;
  border: none;
  font-family: var(--font);
  font-size: 10px;
  font-weight: 600;
  color: rgba(255,255,255,0.35);
  padding: 4px 10px;
  border-radius: 16px;
  cursor: pointer;
  letter-spacing: 0.3px;
  transition: background 0.2s, color 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.flow-btn.active {
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.85);
}

.tamu-logo {
  font-size: 30px;
  font-weight: 700;
  color: var(--yellow);
  letter-spacing: -1.5px;
  line-height: 1;
  padding: 10px 20px 0;
}
.tamu-logo-yellow { color: var(--yellow); }

/* ---- Typography ---- */
.cat-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--yellow);
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

.h1 { font-size: 28px; font-weight: 700; line-height: 1.45; color: var(--white); }
.h2 { font-size: 22px; font-weight: 700; line-height: 1.3; color: var(--white); }
.h3 { font-size: 17px; font-weight: 700; line-height: 1.4; color: var(--white); }

.body-muted  { font-size: 14px; color: var(--text-muted); line-height: 1.6; }
.body-dim    { font-size: 12px; color: var(--text-dim);   line-height: 1.6; }
.body-subtle { font-size: 13px; color: var(--text-subtle); line-height: 1.6; }

.amount-xl   { font-size: 40px; font-weight: 700; color: var(--yellow); line-height: 1.1; letter-spacing: -1px; }
.amount-lg   { font-size: 32px; font-weight: 700; color: var(--yellow); line-height: 1.1; letter-spacing: -0.5px; }
.amount-green-xl { font-size: 40px; font-weight: 700; color: var(--green); line-height: 1.1; letter-spacing: -1px; }

/* ---- Layout ---- */
.px-6 { padding-left: 24px; padding-right: 24px; }
.py-4 { padding-top: 16px; padding-bottom: 16px; }
.py-6 { padding-top: 24px; padding-bottom: 24px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mb-5 { margin-bottom: 20px; }
.mb-6 { margin-bottom: 24px; }
.mt-4 { margin-top: 16px; }
.mt-5 { margin-top: 20px; }
.mt-6 { margin-top: 24px; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.flex-row { display: flex; align-items: center; }
.flex-col { display: flex; flex-direction: column; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-1 { flex: 1; }
.text-center { text-align: center; }

/* ---- Cards ---- */
.card-dark {
  background: var(--card-dark-bg);
  border: 0.6px solid var(--card-dark-border);
  border-radius: var(--r-xl);
  padding: 20px;
}
.card-yellow {
  background: var(--card-yellow-bg);
  border: 0.6px solid var(--card-yellow-border);
  border-radius: var(--r-xl);
  padding: 20px;
}
/* ── Hero credit card ── */
.hero-credit-card {
  border-radius: var(--r-xl);
  padding: 28px 24px 24px;
  background: #ebf227;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  position: relative;
  overflow: hidden;
}
.hero-credit-card::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 160px;
  height: 160px;
  background: rgba(255,255,255,0.12);
  border-radius: 50%;
  pointer-events: none;
}
.hero-credit-card::after {
  content: '';
  position: absolute;
  bottom: -50px;
  left: -30px;
  width: 130px;
  height: 130px;
  background: rgba(0,0,0,0.05);
  border-radius: 50%;
  pointer-events: none;
}
.hero-credit-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(0,0,0,0.1);
  color: #1a2200;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 0.3px;
  margin-bottom: 10px;
}
.hero-credit-label {
  font-size: 11px;
  font-weight: 600;
  color: rgba(0,0,0,0.45);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 2px;
}
.hero-credit-value {
  font-size: 46px;
  font-weight: 700;
  color: #010326;
  letter-spacing: -2px;
  line-height: 1.05;
  animation: heroValueIn 0.55s cubic-bezier(0.22,1,0.36,1) both;
}
.hero-credit-sub {
  font-size: 12px;
  color: rgba(0,0,0,0.45);
  margin-top: 6px;
}
@keyframes heroValueIn {
  from { opacity: 0; transform: translateY(12px) scale(0.92); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.card-blue {
  background: var(--blue-bg);
  border: 0.6px solid var(--blue-border);
  border-radius: var(--r-lg);
  padding: 16px;
}
.card-green {
  background: rgba(29,185,84,0.06);
  border: 0.6px solid rgba(29,185,84,0.2);
  border-radius: var(--r-md);
  padding: 14px 16px;
}
.card-white {
  background: white;
  border-radius: var(--r-lg);
  padding: 16px;
  margin-bottom: 12px;
}

/* ---- Approved Badge ---- */
.badge-approved {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--green-bg);
  color: var(--green);
  font-size: 10px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--r-full);
  letter-spacing: 0.3px;
}
.badge-green {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--green-bg);
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--r-full);
  border: 0.6px solid var(--green-border);
}

/* ---- Proposal Rows ---- */
/* ── Resumo colapsável ── */
.resumo-toggle {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: var(--font);
  -webkit-tap-highlight-color: transparent;
}
.resumo-chevron {
  color: rgba(255,255,255,0.4);
  display: flex;
  align-items: center;
  transition: transform 0.25s ease;
}
.resumo-chevron.rotated { transform: rotate(180deg); }
.resumo-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.28s ease;
  overflow: hidden;
}
.resumo-body.open { grid-template-rows: 1fr; }
.resumo-body > * { min-height: 0; }

.proposal-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
}
.proposal-label  { font-size: 13px; color: var(--text-subtle); }
.proposal-value  { font-size: 15px; font-weight: 700; color: var(--white); }
.proposal-divider { height: 1px; background: rgba(255,255,255,0.07); margin: 10px 0; }
.proposal-label-sm { font-size: 11px; color: var(--text-dim); }
.proposal-value-sm { font-size: 11px; font-weight: 600; color: var(--text-medium); }

/* ---- Edit Link ---- */
.edit-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
  color: var(--blue);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

/* ---- Buttons ---- */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  border-radius: var(--r-sm);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  width: 100%;
  transition: transform 0.12s ease, opacity 0.2s ease, filter 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  text-decoration: none;
  letter-spacing: -0.2px;
}
.btn:active:not(:disabled) { transform: scale(0.97); }

.btn-primary { background: var(--yellow); color: var(--bg-dark); }
.btn-primary:hover:not(:disabled) { filter: brightness(1.06); }
.btn-primary:disabled,
.btn-primary[disabled] { opacity: 0.38; cursor: not-allowed; transform: none; filter: none; }

.btn-outline {
  background: transparent;
  border: 1.3px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.7);
}
.btn-outline:hover { border-color: rgba(255,255,255,0.4); }

.btn-ghost {
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.6);
  font-weight: 600;
}

/* ---- Terms / Checkbox ---- */
.terms-card {
  background: var(--card-dark-bg);
  border: 0.6px solid var(--card-dark-border);
  border-radius: var(--r-lg);
  padding: 14px 16px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  cursor: pointer;
  user-select: none;
  transition: border-color 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.terms-card:active { opacity: 0.9; }
.checkbox-box {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  border: 1.5px solid rgba(255,255,255,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  transition: all 0.2s ease;
  background: transparent;
}
.checkbox-box.checked {
  background: var(--yellow);
  border-color: var(--yellow);
}
.terms-text {
  font-size: 12.5px;
  font-weight: 500;
  color: rgba(255,255,255,0.65);
  line-height: 1.6;
}
.terms-text a { color: var(--yellow); text-decoration: underline; text-underline-offset: 2px; }

/* ---- Form Section ---- */
.form-section {
  background: var(--bg-light);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  padding: 24px;
  flex: 1;
  overflow-y: auto;
  scrollbar-width: none;
}
.form-section::-webkit-scrollbar { display: none; }

.form-group { display: flex; flex-direction: column; gap: 4px; margin-bottom: 20px; }
.form-group:last-child { margin-bottom: 0; }

.input-label {
  font-size: 9px;
  font-weight: 600;
  color: var(--label);
  letter-spacing: 0.9px;
  text-transform: uppercase;
}
.input-wrap { position: relative; }
.input-field {
  height: 52px;
  width: 100%;
  background: var(--input-bg);
  border: 0.6px solid var(--input-border);
  border-radius: var(--r-md);
  padding: 0 48px 0 16px;
  font-family: var(--font);
  font-size: 16px;
  color: var(--text-dark);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
}
.input-field.no-icon { padding-right: 16px; }
.input-field::placeholder { color: var(--placeholder); font-weight: 400; }
.input-field:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(17,149,225,0.12);
}
.input-field.valid {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(29,185,84,0.1);
}
.input-field.invalid {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(239,68,68,0.1);
}
.input-icon-right {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  display: flex;
  align-items: center;
  color: var(--label);
  transition: color 0.2s;
}
.input-field.valid  + .input-icon-right { color: var(--green); }
.input-field.invalid + .input-icon-right { color: var(--red); }
.input-error {
  font-size: 11px;
  color: var(--red);
  margin-top: 3px;
  display: none;
}
.input-field.invalid ~ .input-error { display: block; }

/* Phone prefix */
.phone-wrap { position: relative; }
.phone-prefix {
  position: absolute;
  left: 0; top: 0;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 12px 0 16px;
  font-size: 16px;
  color: rgba(1,3,38,0.35);
  border-right: 0.6px solid var(--input-border);
  pointer-events: none;
  white-space: nowrap;
  gap: 6px;
}
.input-field.phone-input { padding-left: 68px; }

/* CEP loading */
.cep-loading {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  display: none;
}
.cep-loading.active { display: flex; }

/* Form footer (sticky CTA) */
.form-footer {
  background: var(--bg-light);
  border-top: 0.6px solid #e8e8f0;
  padding: 16px 24px 20px;
  flex-shrink: 0;
}
.step-hint {
  font-size: 11px;
  color: #aaa;
  text-align: center;
  margin-top: 6px;
}

/* ---- LGPD Note ---- */
.lgpd-note {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-top: 16px;
}
.lgpd-note-text {
  font-size: 11px;
  color: #888;
  line-height: 1.5;
}

/* ---- Slider (Etapa 1.5) ---- */
.slider-section { padding: 0 2px; }
.slider-val-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 14px;
}
.slider-val-label { font-size: 13px; color: var(--text-muted); }
.slider-val-amount { font-size: 15px; font-weight: 700; color: var(--white); }
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 5px;
  border-radius: 3px;
  outline: none;
  cursor: pointer;
  transition: background 0.1s;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.25);
  cursor: pointer;
  transition: transform 0.15s ease;
  border: 2px solid var(--blue);
}
input[type="range"]::-webkit-slider-thumb:active { transform: scale(1.15); }
input[type="range"]::-moz-range-thumb {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.25);
  cursor: pointer;
  border: 2px solid var(--blue);
}
.slider-limits {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
}
.slider-limit-label { font-size: 11px; color: var(--text-dim); }
.limit-label { font-size: 10px; font-weight: 600; color: rgba(255,255,255,0.4); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 8px; }
.theme-light .limit-label { color: rgba(1,3,38,0.45); }

/* Prazo pills */
.pills-row { display: flex; gap: 8px; }
.pill {
  flex: 1;
  height: 44px;
  border-radius: var(--r-full);
  border: 1.5px solid rgba(255,255,255,0.15);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  background: transparent;
  transition: all 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.pill.active {
  border-color: var(--yellow);
  color: var(--white);
  background: rgba(235,242,39,0.08);
  transform: scale(1.04);
}
.pill:active { transform: scale(0.97); }

/* Edit mode toggle */
.edit-mode-toggle {
  display: flex;
  background: rgba(255,255,255,0.06);
  border-radius: var(--r-full);
  padding: 3px;
  gap: 3px;
}
.edit-mode-btn {
  flex: 1;
  height: 38px;
  border-radius: var(--r-full);
  border: none;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.edit-mode-btn.active {
  background: rgba(255,255,255,0.12);
  color: var(--white);
}
.theme-light .edit-mode-toggle { background: rgba(1,3,38,0.07); }
.theme-light .edit-mode-btn.active { background: #ffffff; color: #010326; }
.theme-light .edit-mode-btn { color: rgba(1,3,38,0.45); }

/* Credit value input */
.credit-input-wrap {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.06);
  border: 1.5px solid rgba(255,255,255,0.15);
  border-radius: 16px;
  padding: 0 20px;
  height: 64px;
  gap: 8px;
  transition: border-color 0.2s;
}
.credit-input-wrap:focus-within {
  border-color: var(--blue);
  background: rgba(17,149,225,0.06);
}
.credit-input-prefix {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-muted);
  flex-shrink: 0;
}
.credit-input-field {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font);
  font-size: 28px;
  font-weight: 700;
  color: var(--white);
  width: 100%;
  min-width: 0;
}
.credit-input-field::placeholder { color: var(--text-dim); }

.theme-light .credit-input-wrap { background: #ffffff; border-color: rgba(1,3,38,0.15); }
.theme-light .credit-input-wrap:focus-within { border-color: var(--blue); background: rgba(17,149,225,0.04); }
.theme-light .credit-input-prefix { color: rgba(1,3,38,0.4); }
.theme-light .credit-input-field { color: #010326; }

/* Vertical prazo options */
.prazo-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 18px;
  border-radius: 14px;
  border: 1.5px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.03);
  font-family: var(--font);
  cursor: pointer;
  transition: all 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.prazo-option.active {
  border-color: var(--yellow);
  background: rgba(235,242,39,0.06);
}
.prazo-option-label {
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
}
.prazo-option-value {
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
}
.prazo-option-sub {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-muted);
}
.prazo-option:active { transform: scale(0.99); }

/* theme-light overrides */
.theme-light .prazo-option { background: #ffffff; border-color: rgba(1,3,38,0.1); }
.theme-light .prazo-option.active { background: rgba(150,160,0,0.06); border-color: var(--yellow); }
.theme-light .prazo-option-label { color: #010326; }
.theme-light .prazo-option-value { color: #010326; }

/* Installment result box */
.installment-box {
  background: var(--card-dark-bg);
  border: 0.6px solid var(--card-dark-border);
  border-radius: var(--r-md);
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.installment-left { display: flex; flex-direction: column; gap: 4px; }
.installment-title { font-size: 13px; font-weight: 600; color: var(--white); }
.installment-fits { font-size: 11px; color: var(--green); display: flex; align-items: center; gap: 4px; }
.installment-amount { font-size: 24px; font-weight: 700; color: var(--blue); }
.installment-meta { display: flex; gap: 20px; padding: 6px 0 2px; }
.installment-meta-item { display: flex; flex-direction: column; gap: 1px; }
.installment-meta-label { font-size: 10px; color: var(--text-dim); }
.installment-meta-value { font-size: 12px; font-weight: 600; color: var(--text-muted); }

/* Info tip */
.info-tip {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  background: rgba(255,255,255,0.03);
  border-radius: var(--r-md);
  padding: 12px 14px;
}
.info-tip-text { font-size: 12px; color: var(--text-muted); line-height: 1.5; }

/* ---- OTP Inputs ---- */
.otp-row { display: flex; gap: 8px; justify-content: center; }
.otp-input {
  width: 44px;
  height: 54px;
  background: rgba(255,255,255,0.06);
  border: 1.5px solid rgba(255,255,255,0.12);
  border-radius: var(--r-md);
  font-family: var(--font);
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  text-align: center;
  outline: none;
  transition: all 0.18s ease;
  caret-color: transparent;
  -webkit-tap-highlight-color: transparent;
}
.otp-input:focus { border-color: var(--yellow); background: rgba(235,242,39,0.06); }
.otp-input.filled { border-color: rgba(255,255,255,0.3); background: rgba(255,255,255,0.08); }

.otp-timer { font-size: 13px; color: var(--text-dim); text-align: center; margin-top: 16px; }
.otp-timer .timer-val { color: var(--blue); font-weight: 600; }
.otp-resend { font-size: 13px; text-align: center; margin-top: 16px; color: var(--text-muted); }
.otp-resend a { color: var(--blue); cursor: pointer; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

/* ---- Processing Screen ---- */
.radar-wrap {
  position: relative;
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}
.radar-ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid rgba(235,242,39,0.3);
  animation: radarPulse 2.4s ease-out infinite;
}
.radar-ring:nth-child(1) { width: 36px; height: 36px; animation-delay: 0s; }
.radar-ring:nth-child(2) { width: 60px; height: 60px; animation-delay: 0.6s; }
.radar-ring:nth-child(3) { width: 90px; height: 90px; animation-delay: 1.2s; }
.radar-dot { width: 14px; height: 14px; background: var(--yellow); border-radius: 50%; z-index: 1; }

@keyframes radarPulse {
  0%   { opacity: 0.8; transform: scale(0.7); }
  100% { opacity: 0;   transform: scale(1.35); }
}

.process-list { display: flex; flex-direction: column; gap: 18px; }
.process-item {
  display: flex;
  align-items: center;
  gap: 14px;
  opacity: 0.3;
  transition: opacity 0.35s ease;
}
.process-item.active, .process-item.done { opacity: 1; }
.process-dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s ease;
}
.process-item.active .process-dot { border-color: var(--yellow); }
.process-item.done  .process-dot { background: var(--green-bg); border-color: var(--green); }
.process-text { font-size: 14px; font-weight: 600; color: var(--white); }

.top-progress-bar {
  height: 3px;
  background: var(--yellow);
  position: fixed;
  top: 0; left: 0;
  animation: progressSlide 3s ease-in-out forwards;
  border-radius: 0 2px 2px 0;
}
@keyframes progressSlide {
  0%  { width: 0; }
  40% { width: 60%; }
  80% { width: 85%; }
  100%{ width: 100%; }
}

/* ---- Spinner ---- */
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.spinner {
  width: 14px; height: 14px;
  border: 2px solid rgba(235,242,39,0.25);
  border-top-color: var(--yellow);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
  flex-shrink: 0;
}
.spinner-blue {
  width: 16px; height: 16px;
  border: 2px solid rgba(17,149,225,0.2);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}

/* ---- Circular Progress (Etapa 6b) ---- */
.scrolling-ticker {
  background: rgba(255,255,255,0.04);
  border-top: 0.6px solid rgba(255,255,255,0.06);
  border-bottom: 0.6px solid rgba(255,255,255,0.06);
  padding: 10px 0;
  overflow: hidden;
  white-space: nowrap;
}
.ticker-inner {
  display: inline-block;
  animation: ticker 12s linear infinite;
  font-size: 12px;
  color: var(--green);
  font-weight: 600;
}
@keyframes ticker { from { transform: translateX(100%) } to { transform: translateX(-100%) } }

/* ---- PIX Section ---- */
.pix-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.pix-tab {
  padding: 8px 18px;
  border-radius: var(--r-full);
  border: 1.5px solid #d0d0d8;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  color: #555;
  background: var(--white);
  cursor: pointer;
  transition: all 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.pix-tab.active {
  background: var(--bg-dark);
  color: var(--white);
  border-color: var(--bg-dark);
}

/* PIX Account Card (slide in) */
.pix-account-card {
  background: rgba(29,185,84,0.05);
  border: 0.6px solid rgba(29,185,84,0.18);
  border-radius: var(--r-md);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: slideDown 0.3s ease-out both;
  margin-top: 12px;
}
@keyframes slideDown { from { opacity:0; transform:translateY(-8px) } to { opacity:1; transform:translateY(0) } }
.pix-bank-logo {
  width: 36px; height: 36px;
  background: var(--green-bg);
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.pix-account-label { font-size: 11px; color: var(--green); font-weight: 600; margin-bottom: 2px; }
.pix-account-name  { font-size: 14px; font-weight: 700; color: var(--text-dark); }
.pix-account-sub   { font-size: 12px; color: #888; }

/* ---- Disclaim Notes ---- */
.disclaim {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 4px 0;
}
.disclaim-text { font-size: 12px; color: #777; line-height: 1.55; }

/* ---- Contract Review ---- */
.contract-summary-card {
  background: var(--bg-dark);
  border-radius: var(--r-xl);
  padding: 20px;
  color: var(--white);
  margin-bottom: 16px;
}
.contract-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}
.csr-label { font-size: 12px; color: var(--text-subtle); }
.csr-value { font-size: 12px; font-weight: 600; color: var(--white); text-align: right; }
.csr-value.bold { font-size: 13px; font-weight: 700; }
.contract-section {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 16px;
  margin-bottom: 12px;
}
.cs-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.cs-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}
.cs-row { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; }
.cs-label { font-size: 13px; color: #888; }
.cs-value { font-size: 13px; color: var(--text-dark); text-align: right; max-width: 58%; overflow-wrap: anywhere; }

.contract-legal {
  background: var(--bg-light);
  border-radius: var(--r-md);
  padding: 14px;
  font-size: 12px;
  color: #555;
  line-height: 1.6;
  margin-top: 4px;
}
.contract-legal a { color: var(--blue); text-decoration: underline; }
.contract-legal strong { color: var(--text-dark); }

/* ---- Success Screen ---- */
.success-tag {
  font-size: 10px;
  font-weight: 600;
  color: var(--green);
  letter-spacing: 1.8px;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: block;
}
.success-receive-card {
  background: var(--card-dark-bg);
  border: 0.6px solid var(--card-dark-border);
  border-radius: var(--r-xl);
  padding: 24px;
  text-align: center;
}
.success-receive-label {
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.timeline-card {
  background: var(--card-dark-bg);
  border: 0.6px solid var(--card-dark-border);
  border-radius: var(--r-xl);
  padding: 4px 20px;
  margin-bottom: 24px;
}
.timeline-item {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 0.6px solid rgba(255,255,255,0.06);
  text-align: left;
}
.timeline-item:last-child { border-bottom: none; }
.timeline-icon {
  width: 32px; height: 32px;
  border-radius: var(--r-sm);
  background: rgba(255,255,255,0.05);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.timeline-title { font-size: 13px; font-weight: 600; color: var(--white); margin-bottom: 2px; text-align: left; }
.timeline-sub   { font-size: 11px; color: var(--text-dim); line-height: 1.4; text-align: left; }

/* ---- Icon Circles ---- */
.icon-circle {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto;
}
.icon-circle-yellow {
  background: rgba(235,242,39,0.09);
  border: 1.5px solid rgba(235,242,39,0.22);
}
.icon-circle-blue {
  background: rgba(17,149,225,0.1);
  border: 1.5px solid rgba(17,149,225,0.2);
}
.icon-circle-green {
  background: rgba(29,185,84,0.12);
  border: 2px solid var(--green);
}

/* ---- Identity Steps ---- */
.identity-step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 0;
  border-bottom: 0.6px solid rgba(255,255,255,0.06);
}
.identity-step:last-child { border-bottom: none; }
.identity-icon {
  width: 32px; height: 32px;
  border-radius: var(--r-sm);
  background: rgba(255,255,255,0.05);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.identity-title { font-size: 14px; font-weight: 700; color: var(--white); margin-bottom: 2px; }
.identity-sub   { font-size: 12px; color: var(--text-muted); }

/* ---- Fade In ---- */
@keyframes fadeUp { from { opacity:0; transform:translateY(12px) } to { opacity:1; transform:translateY(0) } }
.fade-up { animation: fadeUp 0.4s ease-out both; }

/* ---- Marquee ticker (Etapa 6b) ---- */
.analysis-note {
  overflow: hidden;
  background: rgba(29,185,84,0.04);
  border-radius: var(--r-md);
  padding: 10px 0;
}
.analysis-inner {
  display: inline-block;
  white-space: nowrap;
  animation: marquee 10s linear infinite;
  font-size: 12px;
  color: var(--green);
  font-weight: 600;
  padding-left: 100%;
}
@keyframes marquee { from { transform: translateX(0) } to { transform: translateX(-200%) } }

/* ---- Light section in dark screens ---- */
.section-light-header {
  padding: 20px 24px 0;
  background: var(--bg-dark);
}
.section-light-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--yellow);
  letter-spacing: 1.8px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

/* PIX dark header */
.pix-header {
  background: var(--bg-dark);
  padding: 12px 24px 20px;
}
.pix-receive-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-dim);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.pix-receive-amount-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.pix-receive-amount { font-size: 28px; font-weight: 700; color: var(--yellow); }
.pix-receive-sub { font-size: 12px; color: var(--text-dim); margin-top: 2px; }
.pix-dollar-circle {
  width: 42px; height: 42px;
  background: rgba(235,242,39,0.1);
  border: 1.5px solid rgba(235,242,39,0.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

/* ---- Utility ---- */
.divider { height: 0.6px; background: rgba(255,255,255,0.07); margin: 4px 0; }
.divider-light { height: 0.6px; background: var(--input-border); margin: 8px 0; }

/* =====================
   DARK SCREEN (Etapa 6b) — approved checkmark circle
   ===================== */
.approved-circle {
  width: 80px; height: 80px;
  border-radius: 50%;
  border: 2px solid var(--yellow);
  background: rgba(235,242,39,0.08);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto;
  animation: popIn 0.5s cubic-bezier(0.34,1.56,0.64,1) both;
}
@keyframes popIn {
  from { opacity:0; transform:scale(0.5) }
  to   { opacity:1; transform:scale(1) }
}

/* =====================
   Folha de pagamento section (Etapa 8)
   ===================== */
.payroll-section {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 16px;
  margin-bottom: 12px;
}
.ps-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 12px;
}

/* Responsive: on small phones reduce padding */
@media (max-height: 700px) {
  .px-6 { padding-left: 16px; padding-right: 16px; }
  .card-yellow, .card-dark { padding: 16px; }
}

/* ══════════════════════════════════════════
   IDENTITY VERIFICATION — Document + Bio
   ══════════════════════════════════════════ */

/* ── Document choice cards ── */
.doc-choice-card {
  background: #fff;
  border: 2px solid #e8e8e8;
  border-radius: 16px;
  padding: 18px 20px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s;
  margin-bottom: 12px;
  -webkit-tap-highlight-color: transparent;
}
.doc-choice-card.selected {
  border-color: var(--yellow);
  background: rgba(235,242,39,0.05);
}
.doc-radio-btn {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #ccc;
  flex-shrink: 0;
  margin-top: 2px;
  transition: all 0.18s;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.doc-choice-card.selected .doc-radio-btn {
  border-color: var(--yellow);
  background: var(--yellow);
}
.doc-choice-card.selected .doc-radio-btn::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bg-dark);
}
.doc-card-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 4px;
}
.doc-card-sub-label {
  font-size: 11px;
  color: #999;
  text-transform: uppercase;
  letter-spacing: .8px;
  font-weight: 600;
  margin-bottom: 2px;
}
.doc-card-sub-value {
  font-size: 13px;
  color: #555;
  font-weight: 600;
}

/* ── Photo instruction tips ── */
.tip-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid #f0f0f0;
}
.tip-row:last-child { border-bottom: none; }
.tip-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #555;
}
.tip-text {
  font-size: 14px;
  color: #333;
  line-height: 1.4;
}

/* ── Camera overlay ── */
.cam-screen {
  position: absolute;
  inset: 0;
  background: #1c1c1e;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}
.cam-close-btn {
  position: absolute;
  top: 52px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  z-index: 10;
  -webkit-tap-highlight-color: transparent;
}
.cam-hint {
  position: absolute;
  top: 96px;
  left: 0; right: 0;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  z-index: 10;
  letter-spacing: 0.1px;
}
.cam-viewfinder {
  flex: 1;
  width: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #2a2a2c;
}
.cam-doc-frame {
  width: 78%;
  aspect-ratio: 3/4.2;
  border: 3px solid #a8ff47;
  border-radius: 10px;
  position: relative;
  box-shadow:
    0 0 0 9999px rgba(0,0,0,0.52),
    0 0 28px rgba(168,255,71,0.18);
  z-index: 2;
}
/* corner accents */
.cam-doc-frame::before, .cam-doc-frame::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 24px;
  border-color: #a8ff47;
  border-style: solid;
}
.cam-doc-frame::before {
  top: -4px; left: -4px;
  border-width: 4px 0 0 4px;
  border-radius: 4px 0 0 0;
}
.cam-doc-frame::after {
  bottom: -4px; right: -4px;
  border-width: 0 4px 4px 0;
  border-radius: 0 0 4px 0;
}
/* scanning line animation */
@keyframes scanLine {
  0%   { top: 8%; opacity: 1; }
  48%  { top: 88%; opacity: 1; }
  50%  { top: 88%; opacity: 0; }
  52%  { top: 8%;  opacity: 0; }
  54%  { top: 8%;  opacity: 1; }
  100% { top: 8%;  opacity: 1; }
}
.cam-scan-line {
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, #a8ff47 30%, #a8ff47 70%, transparent 100%);
  animation: scanLine 2.4s ease-in-out infinite;
  z-index: 3;
}
.cam-bottom-bar {
  width: 100%;
  padding: 20px 24px 36px;
  background: #1c1c1e;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.cam-shutter-btn {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.6);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.1s;
}
.cam-shutter-btn:active { transform: scale(0.93); }
.cam-shutter-inner {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: white;
}
.cam-upload-link {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  background: none;
  border: none;
  font-family: var(--font);
}
/* Flash animation on capture */
@keyframes camFlash {
  0%   { opacity: 0; }
  15%  { opacity: 0.85; }
  100% { opacity: 0; }
}
.cam-flash {
  position: absolute;
  inset: 0;
  background: white;
  pointer-events: none;
  animation: camFlash 0.35s ease-out forwards;
  z-index: 20;
}

/* ── Photo preview ── */
.photo-preview-area {
  background: #ebebeb;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 3/4.2;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.photo-preview-area img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.photo-preview-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: #aaa;
}
.btn-link-green {
  background: none;
  border: none;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  color: var(--blue);
  cursor: pointer;
  text-align: center;
  padding: 4px 0;
  -webkit-tap-highlight-color: transparent;
}

/* ── Biometrics camera ── */
.bio-cam-screen {
  position: absolute;
  inset: 0;
  background: #0d0d0f;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.bio-viewfinder {
  flex: 1;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 20px;
  position: relative;
}
.bio-oval-wrap {
  position: relative;
  width: 220px;
  height: 280px;
}
.bio-oval {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 3px solid var(--yellow);
  box-shadow:
    0 0 0 9999px rgba(0,0,0,0.55),
    0 0 32px rgba(235,242,39,0.2);
  position: relative;
  overflow: hidden;
  background: #2a2a2c;
}
.bio-face-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.15);
}
@keyframes bioProgress {
  from { stroke-dashoffset: 628; }
  to   { stroke-dashoffset: 0; }
}
.bio-progress-ring {
  position: absolute;
  inset: -6px;
  width: calc(100% + 12px);
  height: calc(100% + 12px);
  transform: rotate(-90deg);
  border-radius: 50%;
}
.bio-progress-ring circle {
  fill: none;
  stroke: var(--yellow);
  stroke-width: 3;
  stroke-dasharray: 628;
  stroke-dashoffset: 628;
  stroke-linecap: round;
}
.bio-progress-ring.animating circle {
  animation: bioProgress 3s linear forwards;
}
.bio-hint-text {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  text-align: center;
  font-weight: 500;
  letter-spacing: 0.1px;
}
.bio-dots {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}
.bio-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  transition: background 0.3s;
}
.bio-dot.active { background: var(--yellow); }
.bio-bottom-bar {
  width: 100%;
  padding: 16px 24px 36px;
  background: #0d0d0f;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.bio-status-text {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  text-align: center;
}
@keyframes bioCapFlash {
  0%   { opacity: 0; }
  20%  { opacity: 1; }
  100% { opacity: 0; }
}
.bio-flash {
  position: absolute;
  inset: 0;
  background: white;
  animation: bioCapFlash 0.4s ease-out forwards;
  z-index: 20;
  border-radius: 50%;
  pointer-events: none;
}

/* ── Biometrics redesign (Creditas-style) ── */

/* Intro screen */
.bio-intro-icon {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: rgba(17, 149, 225, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  margin: 0 auto 8px;
}
.bio-tip-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid #ebebeb;
}
.bio-tip-row:last-child { border-bottom: none; }
.bio-tip-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #555;
}
.bio-tip-text strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 2px;
}
.bio-tip-text span {
  font-size: 13px;
  color: #888;
}
.bio-secure-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  color: #aaa;
  padding-top: 4px;
}

/* Prepare screen */
.bio-prepare-oval-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 8px 0;
}
.bio-prepare-oval {
  width: 200px;
  height: 256px;
  border-radius: 50%;
  border: 3px dashed #c5c7d4;
  background: #e8e9f0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aeb0c0;
}

/* Live camera screen */
.bio-live-screen {
  position: absolute;
  inset: 0;
  background: #0d0d0f;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
}
.bio-live-oval-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  width: 100%;
}
.bio-live-oval {
  width: 200px;
  height: 256px;
  border-radius: 50%;
  border: 3px solid var(--green);
  background: #2a2a2c;
  transition: width 0.6s ease, height 0.6s ease;
  position: relative;
  overflow: hidden;
}
.bio-live-oval.size-2 {
  width: 230px;
  height: 294px;
}
.bio-live-oval.size-3 {
  width: 254px;
  height: 324px;
}
.bio-hint-pill-wrap {
  position: absolute;
  bottom: calc(50% + 145px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  transition: bottom 0.6s ease;
  pointer-events: none;
}
.bio-hint-pill-wrap.size-2 { bottom: calc(50% + 162px); }
.bio-hint-pill-wrap.size-3 { bottom: calc(50% + 178px); }
.bio-hint-pill {
  background: rgba(30,30,30,0.82);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 18px;
  border-radius: 20px;
  white-space: nowrap;
  backdrop-filter: blur(4px);
}
.bio-live-bottom {
  width: 100%;
  padding: 20px 24px 44px;
  background: #0d0d0f;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bio-live-cancel {
  background: none;
  border: none;
  font-family: var(--font);
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  font-weight: 500;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

/* Validating screen */
.bio-validando-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex: 1;
  padding: 0 32px;
  text-align: center;
}
.bio-spin-icon-wrap {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(29, 185, 84, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  margin-bottom: 8px;
}
@keyframes spinCW {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.bio-spin-icon-wrap svg {
  animation: spinCW 1.1s linear infinite;
}

/* ── Toggle Switch ── */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 28px;
  flex-shrink: 0;
}
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: rgba(255,255,255,0.12);
  border-radius: 28px;
  transition: background 0.25s;
}
.toggle-slider::before {
  content: '';
  position: absolute;
  width: 22px;
  height: 22px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.25s;
}
.toggle-switch input:checked + .toggle-slider { background: rgba(255,255,255,0.25); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(20px); }

/* ── Seguro Row ── */
.seguro-row {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255,255,255,0.03);
  border: 0.6px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 12px 16px;
  margin-bottom: 20px;
}

/* ═══════════════════════════════════════
   LIGHT THEME
   ═══════════════════════════════════════ */

body.theme-light-body { background: #e4e6f5; }

.theme-light {
  /* Core palette flip */
  --bg-dark:            #ffffff;
  --bg-light:           #f0f1fa;
  --white:              #010326;
  --text-muted:         rgba(1, 3, 38, 0.52);
  --text-dim:           rgba(1, 3, 38, 0.36);
  --text-subtle:        rgba(1, 3, 38, 0.42);
  --text-medium:        rgba(1, 3, 38, 0.64);
  --card-dark-bg:       rgba(1, 3, 38, 0.035);
  --card-dark-border:   rgba(1, 3, 38, 0.08);
  --card-yellow-bg:     rgba(150, 160, 0, 0.06);
  --card-yellow-border: rgba(130, 140, 0, 0.2);
}

/* App wrapper */
.theme-light { background: #ffffff; }

/* Typography amounts — yellow is unreadable on white */
.theme-light .amount-xl,
.theme-light .amount-lg,
.theme-light .amount-green-xl { color: #010326; }
.theme-light .cat-label { color: #7a8200; }

/* Logo */
.theme-light .tamu-logo { color: #010326; }

/* Flow toggle */
.theme-light .flow-toggle { background: rgba(1,3,38,0.07); }
.theme-light .flow-btn { color: rgba(1,3,38,0.38); }
.theme-light .flow-btn.active { background: rgba(1,3,38,0.11); color: rgba(1,3,38,0.85); }

/* Nav */
.theme-light .back-btn { color: #010326; }
.theme-light .page-title { color: #010326; }
.theme-light .nav-header { background: #ffffff; }

/* Progress bar */
.theme-light .progress-bar-track { background: rgba(1,3,38,0.08); }

/* Buttons */
.theme-light .btn-primary { color: #010326; }
.theme-light .btn.btn-ghost { color: rgba(1,3,38,0.55) !important; }
.theme-light .btn-outline {
  border-color: rgba(1,3,38,0.2);
  color: #010326;
  background: transparent;
}

/* Terms / checkbox */
.theme-light .terms-card { background: rgba(1,3,38,0.03); border-color: rgba(1,3,38,0.08); }
.theme-light .terms-text { color: rgba(1,3,38,0.6); }
.theme-light .terms-text a { color: var(--blue); }
.theme-light .checkbox-box { border-color: rgba(1,3,38,0.3); background: transparent; }
.theme-light .checkbox-box.checked { background: var(--yellow); border-color: var(--yellow); }

/* Info tip */
.theme-light .info-tip { background: rgba(1,3,38,0.04); border-color: rgba(1,3,38,0.06); }

/* Pills */
.theme-light .pill { background: #ffffff; border-color: rgba(1,3,38,0.15); color: rgba(1,3,38,0.7); }
.theme-light .pill.active { background: rgba(150,160,0,0.08); border-color: var(--yellow); color: #010326; }

/* Installment box */
.theme-light .installment-box { background: #f8f8ff; border-color: rgba(1,3,38,0.07); }
.theme-light .installment-title { color: #010326; }
.theme-light .installment-meta-label { color: rgba(1,3,38,0.45); }
.theme-light .installment-meta-value { color: #010326; }

/* Proposal rows */
.theme-light .proposal-label { color: rgba(1,3,38,0.45); }
.theme-light .proposal-value { color: #010326; }
.theme-light .proposal-label-sm { color: rgba(1,3,38,0.45); }
.theme-light .proposal-value-sm { color: #010326; }
.theme-light .proposal-divider { background: rgba(1,3,38,0.08); }
.theme-light .edit-link { color: var(--blue); }

/* Resumo toggle chevron */
.theme-light .resumo-chevron { color: #010326; }

/* Form screens */
.theme-light .form-section { background: #ffffff; }
.theme-light .form-card { background: #f0f1fa; }
.theme-light .input-label { color: #888; }

/* PIX */
.theme-light .pix-header { background: #ffffff; }
.theme-light .pix-receive-label { color: rgba(1,3,38,0.5); }
.theme-light .pix-receive-amount { color: #010326; }
.theme-light .pix-receive-sub { color: rgba(1,3,38,0.45); }
.theme-light .pix-dollar-circle { background: rgba(1,3,38,0.05); border-color: rgba(1,3,38,0.08); }
.theme-light .pix-tab { background: #ffffff; color: rgba(1,3,38,0.55); border-color: rgba(1,3,38,0.15); }
.theme-light .pix-tab.active { background: #010326; color: #ffffff; border-color: #010326; }
.theme-light .pix-account-card { background: rgba(29,185,84,0.06); border-color: rgba(29,185,84,0.2); }

/* OTP */
.theme-light .otp-input { background: #f0f1fa; border-color: rgba(1,3,38,0.15); color: #010326; }

/* Contract */
.theme-light .contract-summary-card { background: rgba(1,3,38,0.04); border-color: rgba(1,3,38,0.08); }
.theme-light .csr-label { color: rgba(1,3,38,0.45); }
.theme-light .csr-value { color: #010326; }
.theme-light .contract-section { background: #ffffff; }
.theme-light .cs-title { color: #010326; }
.theme-light .cs-label { color: rgba(1,3,38,0.45); }
.theme-light .cs-value { color: #010326; }
.theme-light .payroll-section { background: #f0f1fa; }
.theme-light .ps-title { color: #010326; }
.theme-light .contract-legal { color: rgba(1,3,38,0.55); }
.theme-light .divider { background: rgba(1,3,38,0.08); }

/* Approved circle */
.theme-light .approved-circle { background: rgba(29,185,84,0.08); border-color: rgba(29,185,84,0.2); }

/* Step items in etapa4 */
.theme-light .step-item { background: rgba(1,3,38,0.04); border-color: rgba(1,3,38,0.07); }
.theme-light .step-num { background: rgba(1,3,38,0.08); color: #010326; }
.theme-light .step-title { color: #010326; }
.theme-light .step-desc { color: rgba(1,3,38,0.5); }

/* Identity confirmation screen */
.theme-light .icon-circle { background: rgba(1,3,38,0.05); }
.theme-light .icon-circle-yellow { background: rgba(130,140,0,0.09); border-color: rgba(130,140,0,0.22); }
.theme-light .icon-circle-blue   { background: rgba(17,149,225,0.09); border-color: rgba(17,149,225,0.2); }
.theme-light .icon-circle-green  { background: rgba(29,185,84,0.1);   border-color: rgba(29,185,84,0.25); }
.theme-light .identity-icon  { background: rgba(1,3,38,0.06); }
.theme-light .identity-title { color: #010326; }
.theme-light .identity-sub   { color: rgba(1,3,38,0.52); }
.theme-light .info-tip-text  { color: rgba(1,3,38,0.65); }
.unico-brand { color: var(--white); }
.theme-light .unico-brand { color: #010326; }

/* Bio intro/prepare keep light (already var(--bg-light)) */
.theme-light .bio-tip-row { border-color: rgba(1,3,38,0.08); }
.theme-light .bio-secure-note { color: rgba(1,3,38,0.45); }
.theme-light .bio-prepare-oval { border-color: rgba(1,3,38,0.2); background: #e8e9f5; color: rgba(1,3,38,0.2); }

/* Bio camera — always dark regardless of theme */
.theme-light .bio-live-screen { background: #0d0d0f !important; }
.theme-light .bio-live-bottom { background: #0d0d0f !important; }
.theme-light .bio-live-cancel { color: rgba(255,255,255,0.6) !important; }

/* Seguro row */
.theme-light .seguro-row { background: rgba(1,3,38,0.03); border-color: rgba(1,3,38,0.07); }
.theme-light .toggle-slider { background: rgba(1,3,38,0.15); }
.theme-light .toggle-slider::before { box-shadow: 0 1px 3px rgba(0,0,0,0.15); }
.theme-light .toggle-switch input:checked + .toggle-slider { background: rgba(1,3,38,0.25); }

/* Card-blue */
.theme-light .card-blue { background: rgba(17,149,225,0.06); border-color: rgba(17,149,225,0.15); }

/* ID doc screen */
.theme-light .doc-option { background: #ffffff; border-color: rgba(1,3,38,0.1); }

/* Timeline (etapa9) */
.theme-light .timeline-dot { background: var(--green); }
.theme-light .timeline-line { background: rgba(1,3,38,0.1); }
.theme-light .timeline-title { color: #010326; }
.theme-light .timeline-sub { color: rgba(1,3,38,0.5); }

/* Theme button */
.theme-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: rgba(255,255,255,0.7);
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.2s, color 0.2s;
}
.theme-btn:active { opacity: 0.7; }
.theme-light .theme-btn {
  background: rgba(1,3,38,0.07);
  color: rgba(1,3,38,0.6);
}
