:root {
  --bg: #f4f8fc;
  --panel: #ffffff;
  --panel-solid: #ffffff;
  --line: #dce7f2;
  --muted: #66788d;
  --text: #172033;
  --accent: #1677e8;
  --accent-dark: #0d55ad;
  --success: #159447;
  --danger: #d93a4a;
  --shadow: 0 14px 42px rgba(35, 76, 120, 0.10);
}

* { box-sizing: border-box; }

html { min-height: 100%; background: var(--bg); }

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 8% 0%, rgba(22, 119, 232, 0.09), transparent 34%),
    radial-gradient(circle at 100% 80%, rgba(71, 154, 255, 0.07), transparent 30%),
    linear-gradient(180deg, #f8fbff 0%, var(--bg) 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button { font: inherit; }

.ambient {
  position: fixed;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  filter: blur(110px);
  opacity: .13;
  pointer-events: none;
}
.ambient-one { top: 8%; left: -90px; background: #63a9ff; }
.ambient-two { right: -100px; bottom: 15%; background: #9ac7ff; }

.page-shell { width: min(100% - 32px, 560px); margin: 0 auto; padding: 36px 0 48px; }

.brand { display: flex; align-items: center; gap: 12px; margin: 0 0 26px; }
.brand-mark { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid #cfe2f7; border-radius: 13px; color: var(--accent); background: #eaf4ff; box-shadow: 0 6px 18px rgba(22,119,232,.10); }
.brand-mark svg { width: 25px; fill: currentColor; }
.brand-copy { display: grid; gap: 1px; }
.brand-copy strong { font-size: 15px; letter-spacing: .01em; }
.brand-copy small { color: var(--muted); font-size: 12px; }

.payment-layout { display: grid; gap: 18px; }
.payment-layout.showing-details .summary-card,
.payment-layout.showing-details .methods-section { display: none; }
.summary-card, .details-card, .state-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--panel);
  box-shadow: var(--shadow);
}
.summary-card { padding: 24px; }
.summary-topline { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.availability-note { display: inline-flex; align-items: center; gap: 6px; color: #52677b; font-size: 12px; font-weight: 600; }
.availability-note svg { width: 16px; height: 16px; padding: 2px; color: var(--accent); border: 1px solid #cfe1f4; border-radius: 50%; background: #f5f9fd; fill: currentColor; }
.geo-label { color: var(--muted); font-size: 13px; }
.eyebrow { margin: 0 0 7px; color: var(--muted); font-size: 11px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.amount-row { display: flex; align-items: center; gap: 10px; }
.amount-row h1 { margin: 0; font-size: clamp(34px, 10vw, 48px); line-height: 1.08; letter-spacing: -.04em; }
.icon-button { display: grid; width: 36px; height: 36px; flex: 0 0 auto; place-items: center; color: var(--accent); border: 1px solid #d4e6f8; border-radius: 10px; background: #edf6ff; cursor: pointer; transition: transform .15s, background .15s; }
.icon-button:hover { background: #dfefff; transform: translateY(-1px); }
.icon-button svg { width: 18px; fill: currentColor; }
.concept { min-height: 18px; margin: 9px 0 25px; color: var(--muted); font-size: 13px; }
.refresh-button { margin-left: auto; padding: 8px 9px; color: var(--accent-dark); border: 0; border-radius: 9px; background: transparent; font-size: 12px; cursor: pointer; }
.refresh-button:hover { color: var(--accent-dark); background: #e9f3ff; }

.methods-section { padding: 10px 0 0; }
.section-heading { display: flex; justify-content: space-between; align-items: end; margin: 0 3px 13px; }
.method-heading-actions { display: flex; align-items: center; gap: 4px; }
.section-heading h2, .detail-heading h2 { margin: 0; font-size: 19px; letter-spacing: -.02em; }
.count-badge { padding: 5px 9px; color: var(--accent-dark); border: 1px solid #d7e8f9; border-radius: 99px; background: #edf6ff; font-size: 11px; }
.method-list { display: grid; gap: 10px; }
.method-card { width: 100%; display: flex; align-items: center; gap: 13px; padding: 14px; color: inherit; text-align: left; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: 0 5px 18px rgba(35,76,120,.06); cursor: pointer; transition: transform .15s, border-color .15s, background .15s, box-shadow .15s; }
.method-card:hover { transform: translateY(-1px); border-color: #9ac7f4; background: #fbfdff; box-shadow: 0 9px 24px rgba(35,76,120,.10); }
.method-card.is-selected { border-color: var(--accent); background: #f3f9ff; box-shadow: 0 0 0 3px rgba(22,119,232,.10); }
.bank-logo { display: grid; width: 46px; height: 46px; flex: 0 0 auto; place-items: center; color: #0f5db7; border: 1px solid #cfe3f8; border-radius: 13px; background: linear-gradient(145deg, #eaf4ff, #dbeeff); font-size: 15px; font-weight: 800; letter-spacing: .03em; }
.bank-logo.brand-bdv { color: #173f8a; border-color: #cfdcf1; background: #fff; box-shadow: inset 0 -4px 0 #d62838; }
.bank-logo.brand-bnc { color: #fff; border-color: #164c91; background: #164c91; }
.bank-logo.brand-bvc { color: #fff; border-color: #213b79; background: linear-gradient(145deg, #294d99, #172e67); }
.bank-logo.brand-bangente { color: #fff; border-color: #047d7a; background: #078f8b; }
.bank-logo.brand-mercantil { color: #fff; border-color: #144d9b; background: #1765bd; box-shadow: inset 0 -4px 0 #edc52f; }
.bank-logo.brand-banesco { color: #fff; border-color: #138447; background: #159952; }
.bank-logo.brand-bbva { width: 52px; color: #fff; border-color: #073d83; background: #064b9b; font-size: 11px; }
.bank-logo.brand-bancaribe { color: #fff; border-color: #e26f15; background: #ef7d1a; }
.bank-logo.brand-bancamiga { color: #fff; border-color: #32698e; background: #39779f; }
.bank-logo.brand-mobile { color: #fff; border-color: #168d74; background: #1aa184; }
.bank-logo.brand-transfer { color: #fff; border-color: #1765bd; background: #1677e8; }
.bank-logo.brand-citi { width: 52px; color: #07589f; border-color: #c7ddef; background: #fff; font-size: 11px; box-shadow: inset 0 -4px 0 #e74b3c; }
.bank-logo.brand-brasil { color: #11458d; border-color: #f0db48; background: #ffea4f; }
.bank-logo.brand-bna { color: #fff; border-color: #2f7ca5; background: #3187b3; }
.bank-logo.brand-itau { width: 52px; color: #163e86; border-color: #f18a20; background: #f59a23; font-size: 11px; }
.bank-logo.brand-sudameris { color: #fff; border-color: #1768a7; background: #1c78ba; }
.bank-logo.brand-gnb { color: #fff; border-color: #173b68; background: #1b477b; }
.bank-logo.brand-basa { width: 52px; color: #fff; border-color: #522275; background: #642989; font-size: 11px; }
.bank-logo.brand-continental { color: #fff; border-color: #1b4e96; background: #205cae; }
.bank-logo.brand-familiar { color: #fff; border-color: #c8202f; background: #d72736; }
.bank-logo.brand-atlas { color: #fff; border-color: #124f91; background: #155fae; box-shadow: inset 0 -4px 0 #f28c22; }
.bank-logo.brand-bancop { color: #fff; border-color: #287445; background: #318c54; }
.bank-logo.brand-interfisa { color: #fff; border-color: #243a78; background: #2a478f; }
.bank-logo.brand-solar { width: 54px; color: #ed1b3a; border-color: #e4e7eb; background: #fff; font-size: 11px; text-transform: lowercase; }
.bank-logo.brand-ueno { width: 54px; color: #fff; border-color: #e72c78; background: #ed3b86; font-size: 11px; text-transform: lowercase; }
.bank-logo.brand-zeta { color: #fff; border-color: #322a73; background: #3c3389; }
.bank-logo.brand-bnf { color: #fff; border-color: #176a41; background: #1b7e4d; }
.bank-logo.brand-fpj { color: #fff; border-color: #9f2639; background: #b52c42; }
.bank-logo.brand-finlatina { color: #fff; border-color: #24689c; background: #2a78b2; }
.bank-logo.brand-tu { color: #fff; border-color: #e04456; background: #ea5062; }
.bank-logo.brand-fic { color: #fff; border-color: #087b79; background: #0b918e; }
.method-copy { min-width: 0; display: grid; gap: 3px; }
.method-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.method-copy small { overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.chevron { margin-left: auto; color: var(--muted); font-size: 22px; }

.details-card { padding: 21px; scroll-margin-top: 16px; background: transparent; border: 0; box-shadow: none; }
.back-button { display: inline-flex; align-items: center; gap: 6px; margin: -2px 0 18px; padding: 8px 10px 8px 6px; color: var(--accent-dark); border: 0; border-radius: 10px; background: transparent; font-size: 13px; font-weight: 700; cursor: pointer; }
.back-button:hover { background: #edf6ff; }
.back-button svg { width: 19px; fill: currentColor; }
.detail-trust { max-width: 480px; margin: 0 auto 26px; text-align: center; }
.detail-trust-icon { display: grid; width: 42px; height: 42px; margin: 0 auto 9px; place-items: center; color: var(--success); }
.detail-trust-icon svg { width: 36px; fill: currentColor; }
.detail-trust h1 { margin: 0 0 11px; font-size: 24px; }
.detail-trust p { margin: 0; color: #526477; font-size: 14px; line-height: 1.65; }
.detail-heading { display: flex; gap: 13px; align-items: center; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: 0 5px 18px rgba(35,76,120,.06); }
.detail-timer { display: grid; justify-items: center; gap: 3px; padding: 22px 0 16px; }
.detail-timer small { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.detail-timer strong { color: #111827; font-size: 38px; font-variant-numeric: tabular-nums; letter-spacing: .03em; }
.detail-amount-strip { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 16px 0 4px; padding: 15px; border: 2px solid #9bc7f4; border-radius: 14px; background: #edf6ff; box-shadow: 0 5px 18px rgba(22,119,232,.08); }
.detail-amount-strip > span { display: grid; gap: 3px; }
.detail-amount-strip small { color: var(--muted); font-size: 11px; }
.detail-amount-strip strong { color: var(--text); font-size: 20px; letter-spacing: -.02em; }
.detail-fields { display: grid; gap: 10px; margin: 12px 0 14px; }
.detail-row { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 12px; padding: 14px 15px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 4px 14px rgba(35,76,120,.05); }
.detail-copy { min-width: 0; display: grid; gap: 3px; }
.detail-copy small { color: var(--muted); font-size: 11px; }
.detail-copy strong { overflow-wrap: anywhere; font-size: 14px; font-weight: 650; }
.notice { display: flex; gap: 10px; padding: 12px; margin: 5px 0 15px; color: #536b84; border: 1px solid #dce9f6; border-radius: 12px; background: #f4f9ff; }
.notice svg { width: 18px; flex: 0 0 auto; fill: var(--accent); }
.notice p { margin: 0; font-size: 11px; line-height: 1.45; }
.instructions { display: grid; gap: 14px; margin: 20px 0; padding: 0; list-style: none; }
.instructions li { display: grid; grid-template-columns: 30px minmax(0,1fr); gap: 11px; align-items: start; }
.instructions li > span { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 50%; color: #17324f; background: #fff; border: 1px solid var(--line); font-size: 12px; font-weight: 800; }
.instructions p { margin: 4px 0 0; color: #405469; font-size: 13px; line-height: 1.5; }
.primary-button { display: inline-flex; justify-content: center; align-items: center; gap: 9px; min-height: 46px; padding: 0 18px; color: #fff; border: 0; border-radius: 13px; background: var(--accent); box-shadow: 0 9px 24px rgba(22,119,232,.20); font-weight: 800; cursor: pointer; }
.primary-button:hover { background: var(--accent-dark); }
.primary-button svg { width: 18px; fill: currentColor; }
.full-button { width: 100%; }

.state-card { display: grid; justify-items: center; padding: 48px 28px; text-align: center; }
.state-card h1 { margin: 18px 0 7px; font-size: 22px; }
.state-card p { max-width: 360px; margin: 0 0 22px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.spinner { width: 38px; height: 38px; border: 3px solid #dce8f4; border-top-color: var(--accent); border-radius: 50%; animation: spin .85s linear infinite; }
.state-icon { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 50%; font-size: 24px; font-weight: 800; }
.error-icon { color: var(--danger); background: rgba(255,107,120,.12); }
.toast { position: fixed; left: 50%; bottom: max(22px, env(safe-area-inset-bottom)); z-index: 20; padding: 10px 16px; color: #fff; border-radius: 99px; background: #174f88; box-shadow: 0 14px 34px rgba(35,76,120,.22); font-size: 13px; font-weight: 750; opacity: 0; transform: translate(-50%, 14px); pointer-events: none; transition: .22s ease; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
footer { padding: 4px 8px; color: #708398; text-align: center; font-size: 10px; }
.lock { margin-right: 5px; color: var(--success); font-size: 7px; }
.is-hidden { display: none !important; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 520px) {
  .page-shell { width: min(100% - 24px, 560px); padding-top: 22px; }
  .brand { margin-bottom: 18px; }
  .summary-card { padding: 20px; }
  .summary-topline { margin-bottom: 24px; }
  .details-card { padding: 18px; }
  .refresh-button { max-width: 88px; line-height: 1.15; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
