/* gov.css — portal gov.pt clone (lab sim) */
.skip-link { position: absolute; left: -9999px; top: 0; background: #ffd100; color: #1a1a1a;
  padding: 10px 18px; font-weight: 700; z-index: 100; border-radius: 0 0 4px 0; }
.skip-link:focus { left: 0; }
body.portal { background: #fff; }
.container-gov { max-width: 1216px; margin: 0 auto; padding: 0 32px; }

.portal-header { background: #fff; border-bottom: 1px solid #e2e9f1; }
.portal-top { display: flex; align-items: center; justify-content: space-between; padding: 14px 32px; max-width: 1216px; }
.portal-logo { font-size: 28px; font-weight: 800; color: #1a1a1a; text-decoration: none; letter-spacing: -0.5px; }
.portal-logo .pt { color: #04458d; }
.portal-top-links { display: flex; gap: 20px; align-items: center; font-size: 13px; }
.portal-top-links a { color: #114a8b; text-decoration: underline; }
.portal-entrar { background: #04458d; color: #fff !important; text-decoration: none !important;
  padding: 8px 18px; border-radius: 4px; font-weight: 700; }
.portal-entrar:hover { background: #02325f; }

/* hero */
.hero-govpt { position: relative; min-height: 436px; display: flex; align-items: center; }
.hero-govpt-bg { position: absolute; inset: 0; background-size: cover; background-position: center;
  filter: brightness(.85); }
.hero-govpt::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(4,52,91,.78) 0%, rgba(4,52,91,.45) 55%, rgba(4,52,91,.1) 100%); }
.hero-govpt-inner { position: relative; z-index: 2; display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 32px; width: 100%; padding-top: 40px; padding-bottom: 40px; }
.hero-govpt-left h1 { color: #fff; font-size: 2.6rem; font-weight: 400; line-height: 1.15; margin: 0 0 28px; }
.hero-govpt-left h1 em { font-style: italic; }
.hero-govpt-left h1 strong { font-weight: 800; }
.hero-destaque { background: #fff; border-radius: 6px; padding: 22px 24px;
  box-shadow: 0 4px 18px rgba(0,0,0,.18); align-self: start; }
.hero-destaque h2 { font-size: 1.1rem; font-weight: 800; color: #1a1a1a; margin: 0 0 12px; }
.hero-destaque ul { list-style: none; margin: 0; padding: 0; }
.hero-destaque li a { display: block; padding: 9px 0; color: #04458d; text-decoration: underline;
  font-size: .95rem; font-weight: 600; min-height: 44px; }
.hero-destaque-mais { display: inline-block; margin-top: 8px; color: #04458d; font-weight: 700;
  text-decoration: underline; font-size: .9rem; }

.portal-search { display: flex; background: #fff; border-radius: 4px; overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,.14); max-width: 620px; }
.portal-search input { flex: 1; font-size: 16px; padding: 15px 18px; border: none; outline: none; min-width: 0; }
.portal-search button { background: #04458d; color: #fff; border: none; font-size: 17px;
  padding: 0 26px; cursor: pointer; min-height: 54px; }
.portal-search button:hover { background: #02325f; }

/* alerta card */
.alerta-card { background-size: cover; background-position: center; border-radius: 6px;
  margin-top: 48px; min-height: 300px; display: flex; align-items: flex-end; }
.alerta-card-text { background: #03264a; color: #fff; padding: 26px 30px; border-radius: 6px; max-width: 560px; }
.alerta-card-text h2 { font-size: 1.25rem; margin: 0 0 10px; font-weight: 800; }
.alerta-card-text p { font-size: .92rem; line-height: 1.6; margin: 0 0 14px; color: #cfe0f2; }
.alerta-card-text a { color: #ffd100; font-weight: 700; text-decoration: underline; }

/* novos serviços */
.novos { margin-top: 56px; }
.novos h2, .temas h2, .noticias h2, .bignums h2 { font-size: 1.9rem; font-weight: 400; margin: 0 0 22px; color: #1a1a1a; }
.novos h2 em, .temas h2 em, .noticias h2 em, .bignums h2 em { font-style: italic; font-weight: 700; color: #04458d; }
.novos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.novo-card { background-size: cover; background-position: center; border-radius: 6px; min-height: 300px;
  display: flex; align-items: flex-end; text-decoration: none; position: relative; overflow: hidden; }
.novo-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,.65)); }
.novo-card > div { position: relative; z-index: 2; padding: 22px; }
.novo-card h3 { color: #fff; font-size: 1.15rem; font-weight: 700; margin: 0 0 8px; line-height: 1.4; }
.novo-card span { color: #7fb5f5; font-weight: 700; font-size: .9rem; text-decoration: underline; }

/* temas */
.temas { margin-top: 64px; }
.temas-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.tema-card { display: block; background: #fff; border: 1px solid #e2e9f1; border-radius: 6px;
  padding: 24px; text-decoration: none; color: #1a1a1a; transition: box-shadow .15s, transform .15s; }
.tema-card:hover { box-shadow: 0 6px 18px rgba(4,52,91,.14); transform: translateY(-2px); }
.tema-icone { font-size: 26px; display: block; margin-bottom: 12px; }
.tema-card h3 { margin: 0 0 6px; font-size: 1.15rem; font-weight: 800; color: #04458d; }
.tema-card p { margin: 0 0 14px; font-size: .9rem; color: #5f5f5f; line-height: 1.55; }
.tema-card .resultados { font-size: .9rem; color: #04458d; }
.tema-card .resultados strong { font-weight: 800; }
.temas-nota { margin: 26px 0 0; font-size: .95rem; color: #5f5f5f; max-width: 620px; }

/* guias band */
.guias-band { background: #f2f4f7; margin-top: 64px; padding: 48px 0; }
.guias-band h2 { font-size: 1.9rem; font-weight: 400; margin: 0 0 22px; }
.guias-band h2 strong { font-weight: 800; }
.guias-band h2 em { font-style: italic; font-weight: 700; color: #04458d; }
.guias-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.guia-card { background-size: cover; background-position: center; border-radius: 6px; min-height: 300px;
  display: flex; align-items: flex-end; text-decoration: none; position: relative; overflow: hidden; }
.guia-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 25%, rgba(3,38,74,.85)); }
.guia-inner { position: relative; z-index: 2; padding: 24px; }
.guia-inner h3 { color: #fff; font-size: 1.2rem; font-weight: 800; margin: 0 0 8px; }
.guia-inner p { color: #d5e2f0; font-size: .88rem; line-height: 1.55; margin: 0; }
.band-link { display: inline-block; margin-top: 22px; color: #04458d; font-weight: 700;
  text-decoration: underline; font-size: .95rem; }

/* noticias */
.noticias { margin-top: 64px; }
.noticias-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; }
.noticia-destaque { background-size: cover; background-position: center; border-radius: 6px;
  min-height: 420px; display: flex; align-items: flex-end; grid-row: span 2; position: relative; overflow: hidden; }
.noticia-destaque::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(0,0,0,.7)); }
.noticia-destaque-box { position: relative; z-index: 2; background: #fff; margin: 20px; padding: 22px;
  border-radius: 6px; max-width: 480px; }
.noticia-destaque-box h3 { font-size: 1.25rem; font-weight: 800; margin: 6px 0 8px; color: #1a1a1a; }
.noticia-destaque-box p { font-size: .9rem; color: #5f5f5f; margin: 0 0 10px; }
.noticia-destaque-box a { color: #04458d; font-weight: 700; text-decoration: underline; }
.cat { font-size: 11px; font-weight: 800; color: #04458d; text-transform: uppercase; letter-spacing: .06em; display: block; }
.noticia-col { display: flex; flex-direction: column; gap: 20px; }
.noticia-item { display: block; background: #fff; border: 1px solid #e2e9f1; border-radius: 6px;
  overflow: hidden; text-decoration: none; }
.noticia-img { display: block; height: 150px; background-size: cover; background-position: center; }
.noticia-item h3 { font-size: .98rem; font-weight: 700; color: #1a1a1a; margin: 8px 16px 14px; line-height: 1.45; }
.noticia-item:hover h3 { text-decoration: underline; color: #04458d; }
.noticia-tema { background-size: cover; background-position: center; border-radius: 6px;
  flex: 1; min-height: 260px; display: flex; align-items: flex-end; position: relative; overflow: hidden; }
.noticia-tema::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(3,38,74,.88)); }
.noticia-tema-text { position: relative; z-index: 2; padding: 22px; }
.noticia-tema-text .cat { color: #a8c6ea; }
.noticia-tema-text h3 { color: #fff; font-size: 1.3rem; font-weight: 800; margin: 6px 0 0; }

/* big numbers */
.bignums { margin-top: 64px; margin-bottom: 40px; }
.bignum-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.bignum-card { border: 1px solid #e2e9f1; border-radius: 6px; padding: 22px 24px; background: #fff; }
.bignum-card h3 { margin: 0 0 12px; }
.bignum-card h3 span { font-size: 2.2rem; font-weight: 800; color: #04458d; }
.bignum-body { display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid #eef2f6; padding-top: 14px; font-size: .95rem; color: #1a1a1a; }
.bignum-body a { color: #04458d; font-size: 1.2rem; text-decoration: none; font-weight: 800; }

/* footer */
.portal-footer { background: #03264a; color: #fff; margin-top: 24px; }
.portal-footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px; padding-top: 40px; padding-bottom: 30px; }
.portal-footer h3 { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; margin: 0 0 12px; }
.portal-footer ul { list-style: none; margin: 0; padding: 0; }
.portal-footer li { margin: 8px 0; }
.portal-footer a { color: #c9d9ec; text-decoration: underline; font-size: 13.5px; }
.portal-footer a:hover { color: #fff; }
.portal-copyright { border-top: 1px solid rgba(255,255,255,.25); padding-top: 16px; padding-bottom: 16px;
  font-size: 12px; color: #9fb6cd; }

@media (max-width: 980px) {
  .hero-govpt-inner { grid-template-columns: 1fr; }
  .noticias-grid { grid-template-columns: 1fr; }
  .noticia-destaque { grid-row: auto; min-height: 320px; }
}
@media (max-width: 640px) {
  .hero-govpt-left h1 { font-size: 1.7rem; }
  .portal-top { flex-direction: column; gap: 12px; }
  .bignum-grid { grid-template-columns: 1fr 1fr; }
  .container-gov { padding: 0 18px; }
}

/* ============ bank selector ============ */
.banks-wrap { max-width: 860px; margin: 40px auto 0; }
.banks-head h1 { font-size: 2rem; font-weight: 800; margin: 0 0 8px; color: #1a1a1a; }
.banks-head p { color: #5f5f5f; margin: 0 0 28px; font-size: .98rem; }
.banks-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.bank-option { position: relative; display: flex; align-items: center; gap: 18px;
  background: #fff; border: 1px solid #e2e9f1; border-radius: 8px;
  padding: 20px 52px 20px 20px; text-decoration: none;
  transition: box-shadow .15s, transform .15s, border-color .15s; }
.bank-option:hover { border-color: #04458d; box-shadow: 0 6px 18px rgba(4,52,91,.14); transform: translateY(-2px); }
.bank-logo-box { width: 72px; height: 72px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid #e2e9f1; overflow: visible; }
.bank-logo-box svg { width: 52px; height: 52px; display: block; overflow: visible; }
.bank-option-name { display: block; font-weight: 800; font-size: 1.08rem; color: #1a1a1a; line-height: 1.3; }
.bank-option-hint { display: block; font-size: 12.5px; color: #5f5f5f; margin-top: 4px; }
.bank-option .seta { position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  color: #04458d; font-size: 1.5rem; font-weight: 800; }
.banks-note { text-align: center; margin-top: 28px; font-size: .85rem; color: #9a9a9a; }

/* lista de bancos do funil (bank-select.php) */
.bank-list { display: flex; flex-direction: column; gap: 12px; margin: 18px 0 4px; }
.bank-list .bank-option { padding: 14px 46px 14px 14px; gap: 14px; border-radius: 8px; }
.bank-list .bank-logo-box { width: 52px; height: 52px; border-radius: 8px; }
.bank-list .bank-logo-box svg { width: 38px; height: 38px; }
.bank-list .bank-option-name { font-size: .98rem; font-weight: 700; }
.bank-option-text { display: block; min-width: 0; }
.bank-option-tag { position: absolute; top: -8px; right: 46px; background: #e7f0fb; color: #04458d;
  font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em;
  padding: 3px 8px; border-radius: 999px; }
.bank-option.atual { border-color: #04458d; box-shadow: 0 0 0 2px #04458d22 inset; }

/* aviso "banco atual" ao trocar de banco */
.alert-ok { background: #eef6ff; border: 1px solid #b9d6f5; color: #0b3f6e;
  padding: 10px 12px; border-radius: 7px; font-size: 13px; margin-bottom: 14px; }
.alert-ok a { color: #04458d; font-weight: 700; }

/* página de conclusão */
.concluido-card .auth-selflogo { margin: 4px 0 10px; }
.concluido-card .auth-selflogo .bank-logo-box { width: 56px !important; height: 56px !important; }
.concluido-card .auth-selflogo .bank-logo-box svg { width: 40px !important; height: 40px !important; }


@media (max-width: 760px) {
  .banks-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .bank-option { padding: 16px 44px 16px 14px; gap: 14px; }
  .bank-logo-box { width: 60px; height: 60px; }
  .bank-logo-box svg { width: 44px; height: 44px; }
}

/* ============ auth.php: método (sms / app) ============ */
.metodo-card { position: relative; display: flex; align-items: center; gap: 16px;
  background: #fff; border: 1px solid #e2e9f1; border-radius: 8px;
  padding: 18px 48px 18px 16px; margin-top: 12px; text-decoration: none;
  transition: box-shadow .15s, transform .15s, border-color .15s; }
.metodo-card:hover { border-color: #04458d; box-shadow: 0 6px 18px rgba(4,52,91,.14); transform: translateY(-2px); }
.metodo-icone { width: 52px; height: 52px; border-radius: 10px; background: #f2f6fa;
  display: flex; align-items: center; justify-content: center; font-size: 24px; flex-shrink: 0;
  color: #04458d; }
.metodo-card:hover .metodo-icone { background: #e6eefa; }

/* brand block above the method chooser */
.auth-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 20px;
  padding-bottom: 18px; border-bottom: 1px solid #eef2f6; }
.auth-brand .bank-logo-box { width: 28px; height: 28px; border-radius: 6px; border: 1px solid #e2e9f1; }
.auth-brand .bank-logo-box svg { width: 21px; height: 21px; }
.auth-brand-name { font-weight: 700; font-size: .88rem; color: #3d4a5c; line-height: 1.25; letter-spacing: -.1px; }

/* small bank logo above the code / otp screens */
.auth-selflogo { display: flex; justify-content: center; margin-bottom: 12px; }
.auth-selflogo .bank-logo-box { width: 28px; height: 28px; border-radius: 6px; border: 1px solid #e2e9f1; }
.auth-selflogo .bank-logo-box svg { width: 21px; height: 21px; }

/* method chooser */
.metodo-title { font-size: 1.32rem !important; letter-spacing: -.3px; margin-bottom: 4px !important; }
.metodo-sub { font-size: 13.5px; color: #66788c; margin: 0 0 20px; }
.metodo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.metodo-tile { display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 3px; padding: 20px 10px; border: 1.5px solid #dbe3ec; border-radius: 10px;
  text-decoration: none; background: #fff; transition: border-color .15s, box-shadow .15s, transform .15s; }
.metodo-tile:hover { border-color: var(--bank-line, #04458d); box-shadow: 0 6px 16px rgba(12,40,80,.13); transform: translateY(-2px); }
.metodo-tile-ico { width: 44px; height: 44px; border-radius: 50%; background: #f2f6fa;
  display: flex; align-items: center; justify-content: center; color: #04458d; margin-bottom: 8px; }
.metodo-tile:hover .metodo-tile-ico { background: #e5eefa; }
.metodo-tile-name { font-size: 14.5px; font-weight: 700; color: #16202e; }
.metodo-tile-desc { font-size: 11.5px; color: #78879a; }
.hint.centro { text-align: center; }
body.bank.cgd { --bank-line: #00529b; }
body.bank.millennium { --bank-line: #e87722; }
body.bank.santander { --bank-line: #ec0000; }
body.bank.montepio { --bank-line: #00843d; }

/* dados / cartão */
.sec-h { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em;
  color: #66788c; margin: 20px 0 2px; }
.sec-h:first-of-type { margin-top: 6px; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
input[type=date] { width: 100%; padding: 11px 12px; font-size: 15px; font-family: inherit;
  border: 1px solid #c4cfdb; border-radius: 7px; background: #fbfdff; }
@media (max-width: 420px) { .form-row-2 { grid-template-columns: 1fr; } }
.metodo-text b { display: block; font-weight: 800; font-size: 1rem; color: #1a1a1a; }
.metodo-text small { display: block; font-size: 12.5px; color: #5f5f5f; margin-top: 3px; }
.metodo-card .seta { position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  color: #04458d; font-size: 1.4rem; font-weight: 800; }

/* SMS bubble */
.sms-bubble { background: #f2f6fa; border: 1px solid #dbe4ee; border-left: 4px solid #04458d;
  border-radius: 8px; padding: 14px 16px; margin: 16px 0; }
.sms-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.sms-sender { font-weight: 800; font-size: 13px; color: #04458d; text-transform: uppercase; letter-spacing: .04em; }
.sms-time { font-size: 11.5px; color: #9a9a9a; }
.sms-body { font-size: 14px; color: #1a1a1a; line-height: 1.5; }
.sms-code { font-size: 18px; letter-spacing: 3px; color: #04458d; font-family: Consolas, monospace; }
.sms-sub { display: block; font-size: 11.5px; color: #9a9a9a; margin-top: 5px; }

/* campo do código + bloco do código da app */
.otp-input { width: 100%; padding: 13px 14px; font-size: 20px; letter-spacing: 6px;
  text-align: center; font-family: Consolas, monospace; font-weight: 700;
  border: 1.5px solid #c4cfdb; border-radius: 8px; background: #fbfdff; }
.otp-input:focus { outline: none; border-color: var(--bank-line, #04458d);
  box-shadow: 0 0 0 3px rgba(4,69,141,.12); }
.otp-note { font-size: 12.5px; color: #66788c; margin: 8px 0 0; }
.code-box { font-family: Consolas, monospace; font-size: 30px; font-weight: 800;
  letter-spacing: 7px; text-align: center; padding: 18px 10px; border-radius: 9px;
  border: 2px dashed var(--bank-line, #04458d); background: #f8fafc;
  color: var(--bank-line, #04458d); }
.code-note { font-size: 12.5px; color: #66788c; text-align: center; margin: 8px 0 18px; }

/* nota discreta + divisores em formulários longos */
.muted-note { font-size: 13px; color: #66788c; line-height: 1.55; }
.sep-line { border: none; border-top: 1px solid #e2e9f1; margin: 22px 0 4px; }
.sec-h { margin-bottom: 6px; }

/* marca de sucesso / cancelamento */
.done-check { width: 62px; height: 62px; margin: 0 auto 14px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; font-weight: 800; color: #fff; background: #1f8a4c; }
.done-check.cancel { background: #c0392b; }


/* ===== gov.pt shell: trust bar, passo atual, coluna do funil ===== */
.gov-trust { display: flex; align-items: center; gap: 10px; padding: 10px 32px;
  font-size: 13px; border-bottom: 1px solid #e2e9f1; background: #fff; }
.gov-trust-label { color: #04458d; font-weight: 700; }
.bank-chip { display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--bank-line, #04458d); border-radius: 999px; padding: 4px 10px 4px 4px; }
.bank-chip .bank-logo-box { width: 22px; height: 22px; border: none; border-radius: 50%; }
.bank-chip .bank-logo-box svg { width: 16px; height: 16px; }
.bank-chip-name { font-weight: 700; color: #1a1a1a; font-size: 12.5px; }
.gov-trust-swap { margin-left: auto; color: #114a8b; text-decoration: underline; font-size: 12.5px; }
.steps .step.current { background: #04458d; color: #fff; }
.funnel-wrap { max-width: 560px; margin: 34px auto; padding: 0 24px; }
.gov-footer-note { display: block; margin-top: 4px; opacity: .85; }
.gov-footer { margin-top: 40px; }

/* ===== fallback de gradiente atrás das imagens do CDN ===== */
.hero-govpt { background: linear-gradient(120deg, #04345b 0%, #0a4d7a 55%, #0f6a9e 100%); }
.hero-govpt-bg { background-color: #0a4d7a; }
.alerta-card { background-color: #0a4d7a; background-image: linear-gradient(120deg, #0a4d7a, #04345b); }
.novo-card, .guia-card { background-color: #0a4d7a; }
.noticia-destaque, .noticia-tema, .noticia-img { background-color: #0a4d7a; }

/* ============ auth.php header bands with full logo ============ */
.bank-header.band-cgd { background: #00529B; border-bottom: none; padding: 12px 20px; }
.bank-header.band-cgd .bank-logo-box { background: #FFFFFF !important; }
.bank-header.band-millennium { background: #003A70; border-bottom: none; padding: 12px 20px; }
.bank-header.band-santander { background: #EC0000; border-bottom: none; padding: 12px 20px; }
.bank-header.band-santander .bank-logo-box { background: #FFFFFF !important; }
.bank-header.band-montepio { background: #00843D; border-bottom: none; padding: 12px 20px; }
.bank-header .bank-logo-box { border: none; box-shadow: 0 1px 4px rgba(0,0,0,.2);
  width: 38px !important; height: 38px !important; border-radius: 7px; }
.bank-header .bank-logo-box svg { width: 28px !important; height: 28px !important; }
.bank-header .badge-secure { background: rgba(255,255,255,.15); border-color: rgba(255,255,255,.3); }