/* public/css/style.css */
:root{
  --bg: #f3f6fb;
  --surface: #ffffff;
  --surface-2: rgba(255,255,255,.82);

  --text: #0c1733;
  --muted: #42526b;
  --muted2: #5f6f88;

  --border: rgba(5, 4, 111, .08);
  --border-strong: rgba(5, 4, 111, .14);

  --shadow: 0 18px 45px rgba(12, 23, 51, .10);
  --shadow-soft: 0 10px 25px rgba(12, 23, 51, .08);
  --shadow-hover: 0 20px 55px rgba(12, 23, 51, .14);

  --primary: #05046F;
  --primary-2: #1483D7;
  --primary-dark: #0A167F;

  --success: #05046F;
  --danger: #c62828;

  --radius: 16px;
  --radius-sm: 12px;

  --container: 1120px;

  --ring: 0 0 0 4px rgba(20,131,215,.16);
  --grad: linear-gradient(135deg, var(--primary), var(--primary-2));

  --topbar-h: 82px;
  --footer-gap: 12px;
}

* {
  box-sizing: border-box;
  font-family: "Inter", Arial, Helvetica, sans-serif;
}

html, body {
  min-height: 100%;
  height: 100%;
}

body {
  background: var(--bg);
  margin: 0;
  padding: 0;
  color: var(--text);
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  overflow-x: hidden;
  min-height: 100dvh;
}

body::before{
  content:"";
  position: fixed;
  inset: -40vh -20vw auto -20vw;
  height: 70vh;
  background:
    radial-gradient(closest-side at 20% 30%, rgba(5,4,111,.16), transparent 60%),
    radial-gradient(closest-side at 70% 10%, rgba(20,131,215,.14), transparent 62%),
    radial-gradient(closest-side at 50% 60%, rgba(10,22,127,.08), transparent 66%);
  filter: blur(18px);
  z-index: -1;
  pointer-events: none;
}

a {
  color: inherit;
}

button, a, input {
  transition:
    transform .15s ease,
    box-shadow .15s ease,
    filter .15s ease,
    background .15s ease,
    border-color .15s ease,
    color .15s ease,
    opacity .15s ease;
}

:focus-visible {
  outline: none;
  box-shadow: var(--ring);
  border-radius: 12px;
}

/* TOPBAR */
.topbar{
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255,255,255,.84);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.topbar-inner{
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(10px, 1.2vw, 14px) clamp(12px, 2vw, 18px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.brand{
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex-wrap: nowrap;
}

.brand-mark{
  height: 54px;
  min-width: 82px;
  max-width: 290px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  background: transparent;
  box-shadow: none;
  flex: 0 0 auto;
  overflow: visible;
}

.brand-mark img{
  width: auto !important;
  height: 100% !important;
  max-width: 300px !important;
  object-fit: contain !important;
  display: block !important;
}

.brand-text{
  min-width: 0;
}

.brand-name{
  font-weight: 900;
  font-size: 14px;
  letter-spacing: .2px;
  line-height: 1.2;
}

.brand-line-1,
.brand-line-2{
  display: inline;
}

.brand-sub{
  font-size: 12px;
  color: var(--muted2);
  margin-top: 2px;
}

.topnav{
  display: flex;
  gap: 10px;
  align-items: center;
}

.topnav-link{
  text-decoration: none;
  color: var(--muted);
  font-weight: 800;
  font-size: 13px;
  white-space: nowrap;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
}

.topnav-link:hover{
  color: var(--primary-dark);
  background: rgba(5,4,111,.05);
  border-color: rgba(5,4,111,.08);
}

.topnav-link:active{
  transform: translateY(1px);
}

/* PAGE */
.page {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* HERO */
.hero{
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  padding: clamp(10px, 1.6vw, 18px) clamp(12px, 2vw, 18px) clamp(8px, 1vw, 12px);
}

.hero-inner{
  max-width: var(--container);
  width: 100%;
  margin: 0 auto;
  border-radius: clamp(16px, 2vw, 22px);
  background:
    radial-gradient(1200px 500px at 10% 0%, rgba(5,4,111,.18), transparent 60%),
    radial-gradient(900px 500px at 90% 20%, rgba(20,131,215,.16), transparent 60%),
    linear-gradient(135deg, rgba(5,4,111,.09), rgba(20,131,215,.08));
  border: 1px solid rgba(5,4,111,.14);
  padding: clamp(14px, 1.7vw, 22px);
  box-shadow: 0 20px 60px rgba(12,23,51,.10);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
  gap: clamp(12px, 1.4vw, 18px);
  align-items: center;
  min-height: min(720px, calc(100dvh - 170px));
}

.hero-left{
  padding: clamp(4px, .8vw, 10px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-title{
  margin: 0 0 8px;
  font-size: clamp(24px, 1.6vw + 14px, 38px);
  line-height: 1.06;
  letter-spacing: -0.7px;
}

.hero-subtitle{
  margin: 0 0 12px;
  color: var(--muted);
  font-size: clamp(13px, .55vw + 11px, 16px);
  line-height: 1.5;
  max-width: 58ch;
}

.hero-points{
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-weight: 700;
  font-size: clamp(12px, .35vw + 11px, 13px);
}

.hero-right{
  display: grid;
  justify-items: end;
  align-items: center;
}

.card-form{
  width: 100%;
  max-width: 400px;
}

/* CARD */
.card{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.card:hover{
  box-shadow: var(--shadow);
}

.card-form{
  padding: clamp(14px, 2vw, 18px);
}

.card-head{
  margin-bottom: 12px;
}

.card-title{
  font-weight: 900;
  font-size: 16px;
  letter-spacing: -.2px;
}

.card-desc{
  color: var(--muted2);
  font-size: 13px;
  margin-top: 4px;
}

/* FORM */
.form-grid{
  display: grid;
  gap: 12px;
}

.field{
  display: grid;
  gap: 8px;
}

.label{
  font-size: 12px;
  color: var(--muted2);
  font-weight: 800;
  letter-spacing: .2px;
}

input{
  width: 100%;
  padding: 13px 14px;
  font-size: 14px;
  border-radius: 12px;
  border: 1px solid rgba(5, 4, 111, .14);
  background: #fff;
  outline: none;
}

input::placeholder{
  color: rgba(95,111,136,.88);
}

input:focus{
  border-color: rgba(20,131,215,.50);
  box-shadow: var(--ring);
}

/* BUTTONS */
.btn{
  width: 100%;
  padding: 13px 14px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 900;
  font-size: 14px;
  letter-spacing: .2px;
}

.btn-primary{
  color: #fff;
  background: var(--grad);
  box-shadow: 0 14px 25px rgba(5,4,111,.24);
}

.btn-primary:hover{
  filter: brightness(1.02);
  box-shadow: 0 18px 34px rgba(5,4,111,.28);
}

.btn-primary:active{
  transform: translateY(1px);
}

.btn-primary:disabled{
  opacity: .65;
  cursor: not-allowed;
  box-shadow: none;
}

.btn-secondary{
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(5, 4, 111, .10);
  background: var(--primary-dark);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
  margin-top: 10px;
}

.btn-secondary:hover{
  filter: brightness(1.03);
}

.btn-secondary:active{
  transform: translateY(1px);
}

/* RESULTADO */
.resultado{
  font-size: 13px;
  line-height: 1.4;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px dashed rgba(5,4,111,.14);
  background: rgba(5,4,111,.03);
  display: none;
  word-break: break-word;
}

.resultado.sucesso{
  display: block;
  border-color: rgba(10,124,47,.25);
  background: rgba(10,124,47,.07);
  color: var(--success);
  font-weight: 800;
}

.resultado.erro{
  display: block;
  border-color: rgba(198,40,40,.25);
  background: rgba(198,40,40,.07);
  color: var(--danger);
  font-weight: 800;
}

.security-hint{
  font-size: 12px;
  color: var(--muted2);
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(20,131,215,.07);
  border: 1px solid rgba(20,131,215,.14);
  word-break: break-word;
}

/* CONTENT */
.content{
  padding: 0 clamp(12px, 2vw, 18px) clamp(10px, 1.2vw, 14px);
}

.content-inner{
  max-width: var(--container);
  margin: 0 auto;
}

.grid-2{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* PANELS */
.panel{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  min-width: 0;
}

.panel:hover{
  box-shadow: var(--shadow);
}

.panel-head{
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(5,4,111,.03), transparent);
  gap: 10px;
}

.panel-title{
  font-weight: 900;
  font-size: 14px;
  letter-spacing: .2px;
}

.panel-chip{
  font-size: 11px;
  font-weight: 900;
  padding: 6px 10px;
  border-radius: 999px;
  color: #fff;
  background: var(--grad);
  white-space: nowrap;
  box-shadow: 0 10px 18px rgba(20,131,215,.16);
}

.chip-secondary{
  background: rgba(5,4,111,.92);
  box-shadow: none;
}

.list{
  padding: 14px;
}

/* ITEMS */
.item{
  background: #fff;
  border: 1px solid rgba(5, 4, 111, .08);
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 16px 44px rgba(12,23,51,.10);
  margin-bottom: 12px;
  min-width: 0;
}

.item:hover{
  transform: translateY(-2px);
  box-shadow: 0 22px 62px rgba(12,23,51,.14);
  border-color: rgba(5,4,111,.12);
}

.item-title{
  font-weight: 900;
  margin-bottom: 8px;
  color: var(--text);
  font-size: 14px;
}

.item-line{
  margin: 6px 0;
  color: var(--muted);
  font-size: 13px;
  word-break: break-word;
}

.item-line b{
  color: var(--text);
}

/* CTA link button */
.btn-link{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 999px;
  background: var(--grad);
  color: #fff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .2px;
  box-shadow: 0 14px 30px rgba(5,4,111,.22);
}

.btn-link:hover{
  filter: brightness(1.03);
  box-shadow: 0 20px 44px rgba(5,4,111,.28);
}

.btn-link:active{
  transform: translateY(1px);
}

.empty,
.loading{
  padding: 12px;
  color: var(--muted);
  background: rgba(255,255,255,.78);
  border: 1px dashed rgba(5,4,111,.12);
  border-radius: 14px;
  font-size: 13px;
  word-break: break-word;
}

/* FOOTER */
.footer{
  margin-top: auto;
  padding: 8px clamp(12px, 2vw, 18px) 12px;
}

.footer-inner{
  max-width: var(--container);
  margin: 0 auto;
  padding: 12px 16px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.80);
  box-shadow: 0 16px 45px rgba(12,23,51,.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-brand{
  font-weight: 900;
}

.footer-note{
  color: var(--muted2);
  font-size: 12px;
  margin-top: 4px;
}

.footer-right{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-link{
  color: var(--muted);
  text-decoration: none;
  font-weight: 900;
  font-size: 12px;
}

.footer-link:hover{
  color: var(--primary-dark);
  text-decoration: underline;
}

.footer-left-inline{
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-left-inline .footer-note{
  margin-top: 0;
}

/* utilitário */
.hidden{
  display: none !important;
}

/* cabeçalho resultados */
.results-header{
  margin: 6px 0 16px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.80);
  box-shadow: var(--shadow-soft);
}

.results-title{
  font-weight: 900;
  font-size: clamp(16px, 1vw + 13px, 18px);
  letter-spacing: -0.2px;
}

.results-sub{
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

/* TRUST / SELOS */
.trustbox{
  margin-top: 14px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(5,4,111,.08);
  background: rgba(255,255,255,.80);
  box-shadow: 0 14px 40px rgba(12,23,51,.06);
}

.trustbox-title{
  font-weight: 900;
  font-size: 13px;
  margin-bottom: 10px;
  color: rgba(12,23,51,.88);
  letter-spacing: .2px;
}

.trust-seals{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.trust-seal{
  flex: 1 1 170px;
  min-width: 170px;
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 10px;
  border-radius: 16px;
  border: 1px solid rgba(5,4,111,.08);
  background: rgba(255,255,255,.92);
}

.trust-seal:hover{
  transform: translateY(-2px);
  box-shadow: 0 18px 45px rgba(12,23,51,.10);
  border-color: rgba(5,4,111,.12);
}

.trust-ico{
  width: 36px;
  height: 36px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(20,131,215,.12);
  color: rgba(5,4,111,.96);
}

.trust-text strong{
  display: block;
  font-size: 13px;
  line-height: 1.1;
  color: rgba(12,23,51,.94);
}

.trust-text span{
  display: block;
  font-size: 12px;
  line-height: 1.25;
  color: rgba(66,82,107,.96);
  margin-top: 2px;
}

.trustbox-links{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 10px;
  font-size: 12px;
  color: rgba(66,82,107,.96);
}

.trustbox-link{
  text-decoration: none;
  font-weight: 900;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(5,4,111,.04);
  border: 1px solid rgba(5,4,111,.07);
}

.trustbox-link:hover{
  background: rgba(5,4,111,.06);
  border-color: rgba(5,4,111,.10);
}

.trustbox-dot{
  opacity: .7;
}

/* WhatsApp widget */
.wa-widget{
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9999;
  font-family: "Inter", Arial, Helvetica, sans-serif;
}

.wa-toggle{
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 18px 45px rgba(15, 23, 42, .18);
  background: #25D366;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.wa-toggle:hover{
  filter: brightness(1.02);
}

.wa-toggle:active{
  transform: translateY(1px);
}

.wa-panel{
  position: absolute;
  right: 0;
  bottom: 70px;
  width: min(340px, calc(100vw - 36px));
  background: #ffffff;
  border: 1px solid rgba(5, 4, 111, .10);
  border-radius: 18px;
  box-shadow: 0 18px 55px rgba(12, 23, 51, .18);
  overflow: hidden;
  display: none;
  transform-origin: bottom right;
}

.wa-panel.open{
  display: block;
  animation: waPop .16s ease-out;
}

@keyframes waPop{
  from{
    opacity: 0;
    transform: translateY(8px) scale(.98);
  }
  to{
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.wa-panel-head{
  background: #1fa855;
  color: #fff;
  padding: 12px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.wa-title{
  font-weight: 900;
  font-size: 13px;
  letter-spacing: .2px;
  line-height: 1.1;
}

.wa-sub{
  font-weight: 600;
  font-size: 12px;
  opacity: .92;
  margin-top: 2px;
}

.wa-close{
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  background: rgba(255,255,255,.18);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.wa-close:hover{
  background: rgba(255,255,255,.25);
}

.wa-panel-body{
  padding: 12px;
  background: rgba(243, 246, 251, .72);
}

.wa-bubble{
  background: #ffffff;
  border: 1px solid rgba(5, 4, 111, .08);
  border-radius: 16px;
  padding: 10px 12px;
  color: rgba(12, 23, 51, .88);
  font-size: 13px;
  line-height: 1.5;
  box-shadow: 0 10px 25px rgba(12, 23, 51, .06);
}

.wa-actions{
  margin-top: 10px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.wa-start{
  flex: 1 1 auto;
  text-decoration: none;
  background: #25D366;
  color: #fff;
  padding: 10px 12px;
  border-radius: 14px;
  font-weight: 900;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  box-shadow: 0 12px 22px rgba(37,211,102,.22);
}

.wa-start:hover{
  filter: brightness(1.02);
  box-shadow: 0 16px 30px rgba(37,211,102,.26);
}

.wa-start:active{
  transform: translateY(1px);
}

.wa-number{
  flex: 1 1 100%;
  font-size: 12px;
  color: rgba(66, 82, 107, .95);
  text-align: center;
  margin-top: 6px;
}

/* =========================================
   PN (Negociação) - Cards, Botões, Pills
========================================= */
body .pn-card{
  background: linear-gradient(180deg, #ffffff 0%, rgba(255,255,255,.94) 100%) !important;
  border: 1px solid rgba(5,4,111,.10) !important;
  border-radius: 18px !important;
  padding: 14px 14px !important;
  box-shadow: 0 16px 40px rgba(12,23,51,.10) !important;
  position: relative !important;
}

body .pn-card::before{
  content:"" !important;
  position: absolute !important;
  left: 0 !important;
  top: 12px !important;
  bottom: 12px !important;
  width: 4px !important;
  border-radius: 999px !important;
  background: linear-gradient(180deg, rgba(5,4,111,.90), rgba(20,131,215,.88)) !important;
  opacity: .95 !important;
}

body .pn-card:hover{
  transform: translateY(-2px) !important;
  box-shadow: 0 22px 60px rgba(12,23,51,.14) !important;
  border-color: rgba(5,4,111,.14) !important;
}

body .pn-card-title{
  font-weight: 950 !important;
  font-size: 14px !important;
  letter-spacing: -.2px !important;
  margin: 0 0 10px 0 !important;
  padding-left: 10px !important;
  color: rgba(12,23,51,.92) !important;
}

body .pn-kv{
  display: grid !important;
  grid-template-columns: 165px minmax(0, 1fr) !important;
  gap: 8px 10px !important;
  margin: 0 !important;
  padding-left: 10px !important;
  align-items: start !important;
}

body .pn-k{
  font-weight: 900 !important;
  font-size: 12px !important;
  color: rgba(12,23,51,.70) !important;
  line-height: 1.35 !important;
  text-align: left !important;
  white-space: nowrap !important;
}

body .pn-v{
  font-weight: 800 !important;
  font-size: 13px !important;
  color: rgba(12,23,51,.88) !important;
  line-height: 1.4 !important;
  text-align: left !important;
  min-width: 0 !important;
  word-break: break-word !important;
  overflow-wrap: anywhere !important;
}

/* Opções: 1 card por linha */
body .pn-opts-grid{
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 14px !important;
  margin-top: 14px !important;
  align-items: start !important;
}

body .pn-opts-grid > .pn-card{
  align-self: start !important;
  height: auto !important;
  display: flex !important;
  flex-direction: column !important;
}

/* Botões */
body .pn-btn{
  border: 0 !important;
  border-radius: 14px !important;
  padding: 11px 14px !important;
  font-weight: 950 !important;
  letter-spacing: .2px !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
}

body .pn-btn:active{
  transform: translateY(1px) !important;
}

body .pn-btn-primary{
  color: #fff !important;
  background: linear-gradient(135deg, #05046F 0%, #1483D7 100%) !important;
  box-shadow: 0 14px 30px rgba(5,4,111,.28) !important;
}

body .pn-btn-primary:hover{
  filter: brightness(1.03) !important;
  box-shadow: 0 20px 44px rgba(5,4,111,.34) !important;
}

body .pn-btn-primary:disabled{
  opacity: .65 !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
}

body .pn-btn-ghost{
  background: rgba(5,4,111,.05) !important;
  color: rgba(12,23,51,.92) !important;
  border: 1px solid rgba(5,4,111,.10) !important;
}

body .pn-btn-ghost:hover{
  background: rgba(5,4,111,.08) !important;
  border-color: rgba(5,4,111,.14) !important;
}

/* Pills vencimento */
body .pn-pillrow{
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  padding-left: 10px !important;
}

body .pn-pill{
  border-radius: 999px !important;
  padding: 9px 12px !important;
  font-weight: 950 !important;
  font-size: 12px !important;
  border: 1px solid rgba(5,4,111,.14) !important;
  background: rgba(255,255,255,.94) !important;
  box-shadow: 0 8px 18px rgba(12,23,51,.08) !important;
  cursor: pointer !important;
}

body .pn-pill:hover{
  transform: translateY(-1px) !important;
  box-shadow: 0 14px 28px rgba(12,23,51,.12) !important;
}

body .pn-pill.active{
  color: #fff !important;
  border-color: transparent !important;
  background: linear-gradient(135deg, #05046F 0%, #1483D7 100%) !important;
  box-shadow: 0 16px 34px rgba(5,4,111,.28) !important;
}

/* Container detalhes do contrato */
.js-detalhes-contrato{
  margin-top: 12px !important;
  display: grid !important;
  gap: 12px !important;
}

/* Nota (também usada no modal) */
body .pn-note{
  margin-top: 12px !important;
  padding: 10px 12px !important;
  border-radius: 14px !important;
  border: 1px solid rgba(20,131,215,.16) !important;
  background: rgba(20,131,215,.07) !important;
  color: rgba(12,23,51,.84) !important;
  font-size: 12px !important;
  font-weight: 750 !important;
  line-height: 1.45 !important;
}

/* =========================================
   PN Modal - Layout + Visual + Animação
========================================= */
body .pn-modal-overlay{
  position: fixed !important;
  inset: 0 !important;
  display: none;
  align-items: center !important;
  justify-content: center !important;
  padding: 16px !important;
  background: rgba(2, 6, 23, .58) !important;
  backdrop-filter: blur(12px) !important;
  z-index: 99999 !important;
}

body .pn-modal{
  width: min(720px, calc(100vw - 32px)) !important;
  max-height: calc(100vh - 32px) !important;
  overflow: auto !important;
  border-radius: 18px !important;
  background:
    radial-gradient(900px 300px at 15% 0%, rgba(5,4,111,.16), transparent 60%),
    radial-gradient(800px 300px at 85% 10%, rgba(20,131,215,.14), transparent 60%),
    #ffffff !important;
  border: 1px solid rgba(5,4,111,.12) !important;
  box-shadow: 0 40px 120px rgba(0,0,0,.38) !important;
}

body .pn-modal-head{
  padding: 16px 18px !important;
  border-bottom: 1px solid rgba(5,4,111,.10) !important;
  background: rgba(255,255,255,.82) !important;
  backdrop-filter: blur(10px) !important;
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 12px !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 1 !important;
}

body .pn-modal-title{
  font-weight: 950 !important;
  font-size: 16px !important;
  letter-spacing: -.3px !important;
  color: rgba(12,23,51,.92) !important;
}

body .pn-modal-sub{
  margin-top: 4px !important;
  font-weight: 700 !important;
  font-size: 12px !important;
  color: rgba(66,82,107,.92) !important;
}

body .pn-modal-body{
  padding: 16px 18px !important;
}

body .pn-hr{
  height: 1px !important;
  background: rgba(5,4,111,.10) !important;
  margin: 14px 0 !important;
}

body .pn-modal .pn-kv{
  grid-template-columns: 165px minmax(0, 1fr) !important;
  gap: 8px 10px !important;
  padding-left: 0 !important;
  align-items: start !important;
}

body .pn-modal .pn-k{
  font-size: 12px !important;
  font-weight: 950 !important;
  color: rgba(12,23,51,.70) !important;
}

body .pn-modal .pn-v{
  font-size: 13px !important;
  font-weight: 850 !important;
  color: rgba(12,23,51,.90) !important;
}

body .pn-modal-actions{
  padding: 14px 18px !important;
  border-top: 1px solid rgba(5,4,111,.10) !important;
  background: rgba(255,255,255,.84) !important;
  backdrop-filter: blur(10px) !important;
  display: flex !important;
  gap: 10px !important;
  justify-content: flex-end !important;
  position: sticky !important;
  bottom: 0 !important;
  z-index: 1 !important;
}

body .pn-modal-actions .pn-btn{
  min-width: 160px !important;
}

body #pnModalClose{
  width: 40px !important;
  height: 40px !important;
  padding: 0 !important;
  border-radius: 14px !important;
  font-size: 18px !important;
  line-height: 1 !important;
}

/* Animação de abertura */
@keyframes pnFadeIn{
  from{ opacity: 0; }
  to{ opacity: 1; }
}

@keyframes pnPopIn{
  from{
    opacity: 0;
    transform: translateY(8px) scale(.98);
  }
  to{
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

body .pn-modal-overlay[style*="display: flex"]{
  animation: pnFadeIn .16s ease-out;
}

body .pn-modal-overlay[style*="display: flex"] .pn-modal{
  animation: pnPopIn .18s ease-out;
}

@media (max-height: 860px) and (min-width: 981px){
  .topbar-inner{
    padding: 8px 16px;
  }

  .brand-mark{
    height: 48px;
    min-width: 70px;
    max-width: 240px;
  }

  .brand-mark img{
    max-width: 240px !important;
  }

  .hero{
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .hero-inner{
    min-height: min(640px, calc(100dvh - 150px));
    padding: 16px;
    gap: 14px;
  }

  .hero-title{
    font-size: clamp(22px, 1.4vw + 14px, 32px);
    margin-bottom: 6px;
  }

  .hero-subtitle{
    margin-bottom: 10px;
    line-height: 1.45;
  }

  .hero-points{
    gap: 5px;
    font-size: 12px;
  }

  .card-form{
    max-width: 380px;
  }

  .card-form,
  .card{
    box-shadow: var(--shadow-soft);
  }

  .card-form{
    padding: 14px;
  }

  .field{
    gap: 6px;
  }

  input{
    padding: 11px 12px;
  }

  .btn{
    padding: 11px 12px;
  }

  .security-hint,
  .resultado{
    padding: 8px 10px;
    font-size: 12px;
  }

  .footer{
    padding-top: 6px;
    padding-bottom: 8px;
  }

  .footer-inner{
    padding: 10px 14px;
  }

  .footer-note,
  .footer-link{
    font-size: 11px;
  }
}

/* RESPONSIVO */
@media (max-width: 980px){
  .page{
    min-height: auto;
  }

  .hero{
    display: block;
    flex: initial;
  }

  .hero-inner{
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-right{
    justify-items: stretch;
  }

  .card-form{
    max-width: 100%;
  }

  .grid-2{
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px){
  .brand{
    min-width: 0;
    gap: 10px;
  }

  .brand-mark{
    height: 48px;
    min-width: 48px;
    max-width: 140px;
  }

  .brand-mark img{
    max-width: 140px !important;
  }

  .brand-name{
    font-size: 13px;
    line-height: 1.25;
  }

  .brand-line-1,
  .brand-line-2{
    display: block;
  }

  .brand-sub{
    display: none;
  }

  .topnav{
    width: 100%;
    justify-content: flex-end;
    gap: 10px;
  }

  .hero-left{
    padding: 6px 4px 2px;
  }

  .hero-inner{
    padding: 14px;
    min-height: auto;
  }

  input{
    padding: 12px 12px;
  }

  .btn{
    padding: 12px 12px;
  }

  .panel-head{
    padding: 12px 12px;
  }

  .list{
    padding: 12px;
  }

  body .pn-card{
    padding: 12px 12px 12px 14px !important;
  }

  body .pn-card::before{
    top: 10px !important;
    bottom: 10px !important;
  }

  body .pn-card-title{
    padding-left: 8px !important;
    margin-bottom: 10px !important;
    line-height: 1.3 !important;
  }

  body .pn-kv{
    grid-template-columns: 135px minmax(0, 1fr) !important;
    gap: 7px 8px !important;
    padding-left: 8px !important;
  }

  body .pn-pillrow{
    padding-left: 8px !important;
    gap: 8px !important;
  }

  body .pn-pill{
    width: 100% !important;
    text-align: center !important;
    justify-content: center !important;
  }

  body .pn-btn{
    width: 100% !important;
  }
}

@media (max-width: 520px){
  body .pn-modal-actions{
    flex-direction: column !important;
    align-items: stretch !important;
  }

  body .pn-modal-actions .pn-btn{
    width: 100% !important;
    min-width: 0 !important;
  }
}

@media (max-width: 420px){
  .topbar-inner{
    gap: 10px;
  }

  .brand-mark{
    height: 42px;
    min-width: 42px;
    max-width: 120px;
  }

  .brand-mark img{
    max-width: 120px !important;
  }

  .topnav-link{
    font-size: 12px;
  }

  .item{
    padding: 12px;
  }

  .trust-seal{
    min-width: 100%;
  }
}

@media (max-width: 380px){
  body .pn-kv{
    grid-template-columns: 1fr !important;
    gap: 4px !important;
  }

  body .pn-k{
    white-space: normal !important;
    margin-bottom: -2px !important;
  }

  body .pn-card-title,
  body .pn-kv,
  body .pn-pillrow{
    padding-left: 6px !important;
  }

  body .pn-modal .pn-kv{
    grid-template-columns: 1fr !important;
    gap: 4px !important;
  }
}

@media (min-width: 1440px){
  .hero{
    padding-top: 40px;
  }

  .hero-inner{
    padding: 30px;
  }
}

@media (prefers-reduced-motion: reduce){
  *{
    animation: none !important;
    transition: none !important;
  }
}