:root {
  --fid-red: #c8102e;
  --fid-red-dark: #9e0c24;
  --fid-ink: #1a1a24;
  --fid-slate: #5a6072;
  --fid-mist: #f4f5f8;
  --fid-line: #e3e5ec;
  --fid-gold: #e8a33d;
  --fid-green: #2e9e5b;
  --radius: 4px;
  --shadow: 0 10px 30px rgba(26, 26, 36, 0.08);
  --shadow-lg: 0 24px 60px rgba(26, 26, 36, 0.14);
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Lato", "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  color: var(--fid-ink);
  background: #fff;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--fid-red); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--fid-line);
}
.nav-inner { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--fid-ink); font-size: 19px; }
.brand:hover { text-decoration: none; }
.brand .mark {
  width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center;
  background: var(--fid-red); color: #fff; font-weight: 900; font-size: 16px;
}
.brand .sub { color: var(--fid-slate); font-weight: 500; font-size: 13px; }
.brand-logo { height: 34px; width: auto; display: block; }
.admin-bar .brand-logo { height: 26px; }
.nav-links { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav-links a { color: var(--fid-slate); font-weight: 600; font-size: 15px; }
.nav-links a.active, .nav-links a:hover { color: var(--fid-ink); text-decoration: none; }
.nav-cta { margin-left: 8px; }

/* ---------- Header estilo Fidelidade (réplica) ---------- */
.topbar { background: #fff; border-bottom: 1px solid var(--fid-line); font-size: 15px; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 42px; }
.topbar a { color: #656769; font-weight: 500; }
.topbar a:hover { color: var(--fid-ink); text-decoration: none; }
.topbar-right { display: flex; gap: 24px; align-items: center; }
.fid-header { background: #fff; }
.fid-header-logo { display: flex; justify-content: center; padding: 16px 24px 10px; }
.fid-header-logo .brand-logo { height: 48px; }
.fid-nav { border-top: 1px solid var(--fid-line); border-bottom: 3px solid var(--fid-red); background: #fff; position: sticky; top: 0; z-index: 50; }
.fid-nav-inner { display: flex; justify-content: center; gap: 34px; align-items: center; height: 56px; flex-wrap: wrap; }
.fid-nav a { color: var(--fid-ink); font-weight: 700; font-size: 15px; letter-spacing: .01em; position: relative; }
.fid-nav a:hover { color: var(--fid-red); text-decoration: none; }
.fid-nav a.active { color: var(--fid-red); }
.fid-nav a.active::after { content: ''; position: absolute; left: 0; right: 0; bottom: -18px; height: 3px; background: var(--fid-red); }
.fid-nav-cta { background: var(--fid-red); color: #fff !important; padding: 9px 18px; border-radius: 3px; font-size: 14px; }
.fid-nav-cta:hover { background: var(--fid-red-dark); color: #fff !important; }

/* ---------- Slider (hero de banners) ---------- */
.slider { position: relative; overflow: hidden; background: #eef2f8; }
.slide { display: none; position: relative; }
.slide.on { display: block; animation: fade .6s ease; }
@keyframes fade { from { opacity: .4 } to { opacity: 1 } }
.slide { min-height: 460px; }
.slide img { width: 100%; height: 520px; display: block; object-fit: cover; }
.slide::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,10,12,.62) 0%, rgba(20,10,12,.28) 45%, rgba(20,10,12,0) 70%); }
.slide-caption { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; text-align: left; color: #fff; }
.slide-caption > * { max-width: var(--max); width: 100%; margin-left: auto; margin-right: auto; padding: 0 24px; }
.slide-caption .eye { font-weight: 800; letter-spacing: .12em; text-transform: uppercase; font-size: 13px; margin-bottom: 12px; color: #ffd7d9; }
.slide-caption h2 { color: #fff; font-size: clamp(26px, 3.8vw, 46px); line-height: 1.1; max-width: 16ch; margin: 0 0 26px; text-shadow: 0 2px 20px rgba(0,0,0,.35); letter-spacing: -.01em; }
.slide-caption .btn { width: max-content; background: var(--fid-red); color: #fff; box-shadow: 0 10px 26px rgba(0,0,0,.28); }
.slide-caption .btn:hover { background: var(--fid-red-dark); }
.slide-dots { display: flex; justify-content: center; gap: 8px; background: #fff; padding: 18px 16px; flex-wrap: wrap; border-bottom: 1px solid var(--fid-line); }
.slide-dots button { background: none; border: 0; color: var(--fid-slate); font-weight: 700; cursor: pointer; font-size: 14px; font-family: inherit; padding: 8px 18px; border-radius: 999px; transition: .15s; }
.slide-dots button:hover { background: var(--fid-mist); color: var(--fid-ink); }
.slide-dots button.on { color: #fff; background: var(--fid-red); }
.slider-nav { position: absolute; top: calc(50% - 26px); transform: translateY(-50%); background: rgba(255,255,255,.9); border: 0; width: 46px; height: 46px; border-radius: 50%; cursor: pointer; font-size: 22px; color: var(--fid-ink); z-index: 4; box-shadow: var(--shadow); transition: .15s; }
.slider-nav:hover { background: #fff; color: var(--fid-red); }
.slider-nav.prev { left: 18px; } .slider-nav.next { right: 18px; }
@media (max-width: 700px) { .slide img { height: 420px; } .slide-caption h2 { font-size: 26px; } }

/* ---------- Cards "Eu quero" ---------- */
.euquero { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.euquero a { position: relative; border-radius: 14px; overflow: hidden; min-height: 300px; display: flex; align-items: flex-end; color: #fff; box-shadow: var(--shadow); background-size: cover; background-position: center; }
.euquero a::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,32,60,.1), rgba(10,32,60,.78)); }
.euquero .eq-body { position: relative; padding: 26px; }
.euquero .eq-body img { width: 44px; margin-bottom: 10px; filter: brightness(0) invert(1); }
.euquero h3 { color: #fff; margin: 0 0 8px; font-size: 24px; }
.euquero p { color: rgba(255,255,255,.92); margin: 0; font-size: 15px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  background: var(--fid-red); color: #fff; border: 0; border-radius: 3px;
  padding: 13px 24px; font-weight: 700; font-size: 15px; transition: .15s;
  box-shadow: 0 6px 16px rgba(237,28,36,.24); font-family: inherit;
}
.btn:hover { background: var(--fid-red-dark); text-decoration: none; transform: translateY(-1px); }
.btn.ghost { background: #fff; color: var(--fid-ink); border: 1.5px solid var(--fid-line); box-shadow: none; }
.btn.ghost:hover { border-color: var(--fid-ink); background: #fff; }
.btn.small { padding: 8px 14px; font-size: 13px; box-shadow: none; }
.btn.gold { background: var(--fid-gold); box-shadow: 0 6px 16px rgba(232,163,61,.24); }
.btn.slate { background: var(--fid-slate); box-shadow: none; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- Hero ---------- */
.hero { padding: 80px 0 64px; background:
  radial-gradient(1000px 500px at 85% -10%, rgba(237,28,36,.08), transparent 60%),
  linear-gradient(180deg, #fff, var(--fid-mist)); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-block; font-weight: 700; color: var(--fid-red); font-size: 13px;
  letter-spacing: .08em; text-transform: uppercase; background: rgba(237,28,36,.08);
  padding: 6px 12px; border-radius: 999px; margin-bottom: 18px; }
h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1.08; margin: 0 0 18px; letter-spacing: -.02em; }
.hero p.lead { font-size: 19px; color: var(--fid-slate); margin: 0 0 28px; max-width: 44ch; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-card {
  background: #fff; border-radius: 20px; box-shadow: var(--shadow-lg);
  padding: 28px; border: 1px solid var(--fid-line);
}
.hero-card h3 { margin: 0 0 4px; }
.savings-visual { display: grid; gap: 14px; }
.savings-row { display: flex; justify-content: space-between; align-items: center;
  padding: 14px 16px; background: var(--fid-mist); border-radius: 12px; }
.savings-row .v { font-weight: 800; font-size: 20px; }
.chip { font-size: 12px; font-weight: 700; color: var(--fid-green);
  background: rgba(46,158,91,.12); padding: 4px 10px; border-radius: 999px; }

/* ---------- Sections ---------- */
section { padding: 64px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section-head h2 { font-size: clamp(26px, 4vw, 38px); margin: 0 0 12px; letter-spacing: -.01em; }
.section-head p { color: var(--fid-slate); font-size: 17px; margin: 0; }
h2 { letter-spacing: -.01em; }

.grid { display: grid; gap: 22px; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }

.card { background: #fff; border: 1px solid var(--fid-line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow); }
.card .ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: rgba(237,28,36,.08); color: var(--fid-red); margin-bottom: 18px; }
.ico { width: 24px; height: 24px; display: inline-block; vertical-align: middle; }
.card .ic .ico { width: 26px; height: 26px; }
.list-check { list-style: none; padding: 0; margin: 0; }
.list-check li { display: flex; gap: 10px; align-items: center; color: var(--fid-slate); font-size: 16px; padding: 6px 0; }
.list-check li .ico { color: var(--fid-green); width: 20px; height: 20px; flex: none; }
.card h3 { margin: 0 0 8px; font-size: 19px; }
.card p { margin: 0; color: var(--fid-slate); }

.muted { background: var(--fid-mist); }

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; gap: 18px; }
.step { display: flex; gap: 18px; align-items: flex-start; background: #fff;
  border: 1px solid var(--fid-line); border-radius: var(--radius); padding: 22px 24px; }
.step .n { counter-increment: step; flex: none; width: 40px; height: 40px; border-radius: 50%;
  background: var(--fid-red); color: #fff; font-weight: 800; display: grid; place-items: center; }
.step .n::before { content: counter(step); }
.step h3 { margin: 0 0 4px; font-size: 18px; }
.step p { margin: 0; color: var(--fid-slate); }

/* ---------- CTA band ---------- */
.band { background: linear-gradient(120deg, var(--fid-red), var(--fid-red-dark)); color: #fff;
  border-radius: 24px; padding: 48px; text-align: center; box-shadow: var(--shadow-lg); }
.band h2 { color: #fff; margin: 0 0 10px; }
.band p { color: rgba(255,255,255,.9); margin: 0 auto 26px; max-width: 52ch; font-size: 17px; }
.band .btn { background: #fff; color: var(--fid-red); }
.band .btn:hover { background: #fff; color: var(--fid-red-dark); }

/* ---------- Forms ---------- */
.form-card { max-width: 520px; margin: 0 auto; background: #fff; border: 1px solid var(--fid-line);
  border-radius: 18px; padding: 34px; box-shadow: var(--shadow); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 14px; }
.field input, .field select {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--fid-line); border-radius: 10px;
  font-size: 15px; font-family: inherit; background: #fff; color: var(--fid-ink);
}
.field input:focus, .field select:focus { outline: none; border-color: var(--fid-red); }
.field .hint { font-size: 12px; color: var(--fid-slate); margin-top: 5px; }
.alert { padding: 12px 16px; border-radius: 10px; margin-bottom: 18px; font-size: 14px; }
.alert.error { background: rgba(237,28,36,.08); color: var(--fid-red-dark); }
.alert.ok { background: rgba(46,158,91,.1); color: #1e7a44; }

/* ---------- Program panel ---------- */
.panel-grid { display: grid; grid-template-columns: 340px 1fr; gap: 28px; align-items: start; }
.qr-card { background: #fff; border: 1px solid var(--fid-line); border-radius: 18px; padding: 26px; text-align: center; box-shadow: var(--shadow); }
.qr-card img { border-radius: 12px; }
.share-link { display: flex; gap: 8px; margin-top: 14px; }
.share-link input { flex: 1; padding: 10px 12px; border: 1.5px solid var(--fid-line); border-radius: 10px; font-size: 13px; }
.reward-badge { font-size: 34px; font-weight: 900; color: var(--fid-red); }

/* ---------- Página Savings ---------- */
.sv-hero { position: relative; background: linear-gradient(120deg, #7a0f16, var(--fid-red-dark)); color: #fff; overflow: hidden; }
.sv-hero img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .32; }
.sv-hero .wrap { position: relative; text-align: center; padding: 70px 24px; }
.sv-hero .eye { font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: 15px; color: #ffd7d9; }
.sv-hero h1 { color: #fff; font-size: clamp(28px, 4vw, 44px); margin: 12px 0 10px; }
.sv-hero .tanb { font-size: clamp(22px, 3vw, 32px); font-weight: 900; margin: 8px 0 18px; }
.sv-hero .note { font-size: 13px; color: rgba(255,255,255,.8); max-width: 60ch; margin: 14px auto 0; }
.sv-hero .hero-actions { justify-content: center; }
.sv-hero .btn.ghost { background: transparent; border-color: rgba(255,255,255,.6); color: #fff; }

.benef { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.benef .card { text-align: center; }
.benef .card .ic { margin: 0 auto 14px; }
.benef .card h3 { text-transform: uppercase; font-size: 17px; letter-spacing: .02em; }

.docs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.doc { display: flex; align-items: center; justify-content: space-between; gap: 14px; background: #fff;
  border: 1px solid var(--fid-line); border-radius: 12px; padding: 16px 20px; box-shadow: var(--shadow); }
.doc:hover { text-decoration: none; border-color: var(--fid-red); transform: translateY(-2px); transition: .15s; }
.doc span { font-weight: 700; color: var(--fid-ink); }
.doc .dl { color: var(--fid-red); font-weight: 800; white-space: nowrap; }
.app-dl { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.app-dl a { display: inline-flex; align-items: center; gap: 8px; background: var(--fid-ink); color: #fff; padding: 12px 22px; border-radius: 12px; font-weight: 700; }
.app-dl a:hover { text-decoration: none; opacity: .9; }
.video-embed { position: relative; padding-bottom: 56.25%; height: 0; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-lg); }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.blog-hero { background-size: cover; background-position: center; color: #fff; }
.blog-hero .wrap { padding: 70px 24px 46px; }
.blog-hero .blog-back { color: rgba(255,255,255,.85); font-weight: 700; display: inline-block; margin-bottom: 16px; }
.blog-hero h1 { color: #fff; max-width: 22ch; margin: 8px 0 0; text-shadow: 0 2px 16px rgba(0,0,0,.35); }

/* ---------- Produtos em destaque ---------- */
.prod-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.prod-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--fid-line);
  border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); transition: .18s; color: var(--fid-ink); }
.prod-card:hover { text-decoration: none; transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.prod-media { height: 132px; display: grid; place-items: center; color: #fff; }
.prod-media .ico { width: 46px; height: 46px; }
.prod-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.prod-media.m1 { background: linear-gradient(135deg, var(--fid-red), var(--fid-red-dark)); }
.prod-media.m2 { background: linear-gradient(135deg, #1f9d55, #147a40); }
.prod-media.m3 { background: linear-gradient(135deg, var(--fid-gold), #c9821f); }
.prod-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.prod-tag { font-size: 12px; font-weight: 700; color: var(--fid-red); text-transform: uppercase; letter-spacing: .04em; }
.prod-body h3 { margin: 0; font-size: 21px; }
.prod-body p { margin: 0; color: var(--fid-slate); flex: 1; }
.prod-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--fid-red); margin-top: 6px; }
.prod-link .ico { width: 18px; height: 18px; }

/* ---------- Categorias ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cat-tile { background: #fff; border: 1px solid var(--fid-line); border-radius: 16px; padding: 30px 26px;
  box-shadow: var(--shadow); color: var(--fid-ink); transition: .18s; }
.cat-tile:hover { text-decoration: none; transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--fid-red); }
.cat-ic { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
  background: rgba(237,28,36,.08); color: var(--fid-red); margin-bottom: 16px; }
.cat-ic .ico { width: 28px; height: 28px; }
.cat-tile h3 { margin: 0 0 6px; font-size: 22px; }
.cat-tile p { margin: 0; color: var(--fid-slate); }

/* ---------- Teaser de cotações ---------- */
.cot-teaser { display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: center;
  background: #fff; border: 1px solid var(--fid-line); border-radius: 20px; padding: 36px; box-shadow: var(--shadow); }
.cot-teaser .btn .ico { width: 18px; height: 18px; }
.cot-mini { display: grid; gap: 10px; }

/* ---------- Cotações ---------- */
.cot-hero { background: linear-gradient(180deg, #fff, var(--fid-mist)); border-bottom: 1px solid var(--fid-line); }
.cot-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 0 0 24px; }
.cot-stat { background: #fff; border: 1px solid var(--fid-line); border-radius: 14px; padding: 18px 20px; box-shadow: var(--shadow); }
.cot-stat .l { font-size: 13px; color: var(--fid-slate); font-weight: 600; }
.cot-stat .v { font-size: 26px; font-weight: 800; letter-spacing: -.02em; margin-top: 4px; }
.cot-stat .v.pos { color: var(--fid-green); }
.cot-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.cot-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.cot-search { position: relative; }
.cot-search input { border: 1.5px solid var(--fid-line); border-radius: 999px; padding: 10px 16px 10px 40px; font-size: 14px; font-family: inherit; min-width: 260px; }
.cot-search input:focus { outline: none; border-color: var(--fid-red); }
.cot-search::before { content: '⌕'; position: absolute; left: 15px; top: 7px; font-size: 20px; color: var(--fid-slate); }
.pill { border: 1.5px solid var(--fid-line); background: #fff; color: var(--fid-slate); border-radius: 3px;
  padding: 9px 18px; font-weight: 700; font-size: 14px; cursor: pointer; font-family: inherit; transition: .15s; }
.pill.on, .pill:hover { background: var(--fid-red); color: #fff; border-color: var(--fid-red); }
#cot thead th { position: sticky; top: 0; z-index: 2; }
#cot tbody tr:nth-child(even) { background: #fafbfc; }
#cot tbody tr:hover { background: rgba(237,28,36,.04); }
#cot td { font-size: 14px; }
.rend { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; }
.rend.pos { color: var(--fid-green); }
.rend .ico { width: 14px; height: 14px; }
.risk { display: inline-flex; gap: 4px; align-items: center; }
.risk i { width: 9px; height: 9px; border-radius: 50%; background: var(--fid-line); display: inline-block; }
.risk i.on { background: var(--fid-red); }
.risk .n { font-size: 12px; color: var(--fid-slate); margin-left: 4px; }
.risk-legend { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--fid-slate); margin-top: 14px; }
.cot-empty { text-align: center; padding: 40px; color: var(--fid-slate); display: none; }
.saber { padding: 7px 14px; box-shadow: none; }

/* ---------- Modal ---------- */
.modal-overlay { position: fixed; inset: 0; background: rgba(20,10,12,.55); display: none; align-items: center; justify-content: center; z-index: 200; padding: 20px; }
.modal-overlay.on { display: flex; animation: fade .2s ease; }
.modal { background: #fff; border-radius: 6px; max-width: 480px; width: 100%; padding: 30px; box-shadow: var(--shadow-lg); position: relative; max-height: 92vh; overflow-y: auto; }
.modal-close { position: absolute; top: 12px; right: 14px; background: none; border: 0; font-size: 26px; line-height: 1; color: var(--fid-slate); cursor: pointer; }
.modal h3 { font-size: 22px; }

/* ---------- FAQ ---------- */
.faq { max-width: 800px; margin: 0 auto; }
.faq details { background: #fff; border: 1px solid var(--fid-line); border-radius: 12px; margin-bottom: 12px; box-shadow: var(--shadow); overflow: hidden; }
.faq summary { cursor: pointer; padding: 18px 22px; font-weight: 700; font-size: 17px; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 22px; color: var(--fid-red); font-weight: 400; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq details[open] summary { border-bottom: 1px solid var(--fid-line); }
.faq .a { padding: 16px 22px 22px; color: var(--fid-slate); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--fid-line); border-radius: var(--radius); box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--fid-line); white-space: nowrap; }
th { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--fid-slate); background: var(--fid-mist); }
tr:last-child td { border-bottom: 0; }
.badge { font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: .03em; }
.badge.LANDED { background: #eef1f6; color: #5a6072; }
.badge.REGISTERED { background: rgba(232,163,61,.15); color: #a06a12; }
.badge.POLICY_SUBSCRIBED { background: rgba(46,110,200,.14); color: #245bb0; }
.badge.ELIGIBLE_30D { background: rgba(46,158,91,.14); color: #1e7a44; }
.badge.REWARDED { background: rgba(46,158,91,.2); color: #14663a; }
.badge.CANCELLED, .badge.NOT_ELIGIBLE { background: rgba(237,28,36,.1); color: var(--fid-red-dark); }

/* ---------- Dashboard ---------- */
.admin-bar { background: var(--fid-ink); }
.admin-bar .nav-inner { height: 56px; }
.admin-bar .brand, .admin-bar .nav-links a { color: #fff; }
.admin-bar .brand .sub { color: rgba(255,255,255,.6); }
.admin-bar .nav-links a { color: rgba(255,255,255,.7); font-size: 14px; }
.admin-bar .nav-links a.active, .admin-bar .nav-links a:hover { color: #fff; }
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.kpi { background: #fff; border: 1px solid var(--fid-line); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow); }
.kpi .label { font-size: 13px; color: var(--fid-slate); font-weight: 600; margin-bottom: 8px; }
.kpi .value { font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
.kpi .sub { font-size: 12px; color: var(--fid-slate); margin-top: 4px; }
.kpi.accent { background: linear-gradient(120deg, var(--fid-red), var(--fid-red-dark)); border: 0; }
.kpi.accent .label, .kpi.accent .sub { color: rgba(255,255,255,.85); }
.kpi.accent .value { color: #fff; }

.funnel { display: grid; gap: 10px; }
.funnel-row { display: grid; grid-template-columns: 220px 1fr 60px; align-items: center; gap: 14px; }
.funnel-row .bar { height: 30px; background: var(--fid-mist); border-radius: 8px; overflow: hidden; }
.funnel-row .bar > span { display: block; height: 100%; background: linear-gradient(90deg, var(--fid-red), var(--fid-gold)); border-radius: 8px; min-width: 2px; }
.funnel-row .pct { font-weight: 700; text-align: right; }
.funnel-row .lab { font-size: 14px; color: var(--fid-slate); font-weight: 600; }

.panel-title { display: flex; align-items: center; justify-content: space-between; margin: 0 0 22px; }
.panel-title h2 { margin: 0; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 26px; }
.tabs a { padding: 8px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--fid-slate); background: var(--fid-mist); }
.tabs a.active { background: var(--fid-red); color: #fff; text-decoration: none; }

.comm { background: #fff; border: 1px solid var(--fid-line); border-radius: 12px; padding: 16px 18px; margin-bottom: 12px; box-shadow: var(--shadow); }
.comm .meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 12px; color: var(--fid-slate); margin-bottom: 8px; }
.comm .tg { font-weight: 700; color: var(--fid-red); background: rgba(237,28,36,.08); padding: 3px 8px; border-radius: 6px; }
.comm .subj { font-weight: 700; margin-bottom: 6px; }
.comm pre { white-space: pre-wrap; font-family: inherit; font-size: 13px; color: var(--fid-slate); margin: 0; }

/* ---------- Footer ---------- */
footer.site { background: var(--fid-ink); color: rgba(255,255,255,.7); padding: 48px 0 28px; margin-top: 40px; }
footer.site .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 28px; margin-bottom: 32px; }
footer.site h4 { color: #fff; font-size: 14px; margin: 0 0 12px; }
footer.site a { color: rgba(255,255,255,.7); display: block; margin-bottom: 8px; font-size: 14px; }
footer.site a:hover { color: #fff; }
footer.site .brand { color: #fff; margin-bottom: 12px; }
footer.site .legal { border-top: 1px solid rgba(255,255,255,.12); padding-top: 20px; font-size: 12px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

.disclaimer { font-size: 12px; color: var(--fid-slate); max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.fid-footer-grid { display: grid; grid-template-columns: 1.6fr 2fr 1.1fr; gap: 40px; margin-bottom: 30px; align-items: start; }
.fid-footer-brand p { max-width: 34ch; color: rgba(255,255,255,.7); }
.fid-social { display: flex; gap: 12px; margin-top: 16px; }
.fid-social a { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.1); color: #fff; transition: .15s; }
.fid-social a:hover { background: var(--fid-red); }
.fid-social svg { width: 18px; height: 18px; }
.fid-footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.fid-footer-contact h4, .fid-footer-cols h4 { color: #fff; font-size: 14px; margin: 0 0 12px; }
.fid-phone-lg { color: #fff; font-size: 24px; font-weight: 800; margin: 0 0 6px; }
.fid-footer-contact p { color: rgba(255,255,255,.7); font-size: 14px; margin: 0 0 8px; }
@media (max-width: 900px) { .fid-footer-grid { grid-template-columns: 1fr; gap: 28px; } }

@media (max-width: 900px) {
  .hero-grid, .panel-grid { grid-template-columns: 1fr; }
  .grid.cols-3, .grid.cols-4, .grid.cols-2 { grid-template-columns: 1fr; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
  footer.site .cols { grid-template-columns: 1fr 1fr; }
  .funnel-row { grid-template-columns: 130px 1fr 48px; }
}

/* ============================================================
   COOL LAYER — restyle inspirado no design Multicare/Fidelidade
   (tipografia grande, cartões arredondados, mais respiração)
   Mantém o vermelho Fidelidade e botões de cantos rectos.
   ============================================================ */
:root{
  --r-xl: 32px; --r-lg: 24px; --r-md: 18px; --r-sm: 10px;
  --shadow-soft: 0 12px 40px rgba(26,26,36,.10);
  --shadow-card: 3px 3px 24px rgba(26,26,36,.09);
}

/* --- Tipografia mais forte --- */
h1{ font-size: clamp(38px, 5.2vw, 72px); line-height: 1.04; font-weight: 900; letter-spacing: -.02em; }
h2{ font-size: clamp(28px, 3.4vw, 46px); line-height: 1.1; font-weight: 800; letter-spacing: -.01em; }
h3{ font-weight: 800; letter-spacing: -.01em; }
.lead{ font-size: clamp(17px, 1.5vw, 21px); line-height: 1.55; color: var(--fid-slate); }

/* --- Eyebrow com sublinhado vermelho (assinatura Fidelidade) --- */
.eyebrow{
  display: inline-block; font-weight: 800; text-transform: uppercase;
  letter-spacing: .09em; font-size: 12.5px; color: var(--fid-red);
  padding-bottom: 4px; position: relative; margin-bottom: 6px;
}
.eyebrow::after{ content:""; position:absolute; left:0; bottom:0; width:100%; height:3px; background: var(--fid-red); border-radius: 100px; }

/* --- Cabeçalho de secção centrado --- */
.section-head{ text-align: center; max-width: 780px; margin: 0 auto 42px; }
.section-head h2{ margin: 10px 0 10px; }
.section-head p{ font-size: 18px; color: var(--fid-slate); margin: 0; }

/* --- Cartões arredondados + sombra suave + hover --- */
.card{
  border-radius: var(--r-lg) !important; box-shadow: var(--shadow-card);
  border: 1px solid #eef0f4; background: #fff;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover{ transform: translateY(-4px); box-shadow: 0 18px 48px rgba(26,26,36,.14); }
.card .ic{
  width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center;
  background: rgba(237,28,36,.08); color: var(--fid-red); margin-bottom: 18px;
}
.card .ic svg{ width: 28px; height: 28px; }

/* --- Botões: cantos rectos (linha Fidelidade), mais presença --- */
.btn{
  border-radius: 4px !important; font-weight: 800; letter-spacing: .01em;
  padding: 14px 26px; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover{ transform: translateY(-2px); box-shadow: 0 10px 24px rgba(237,28,36,.28); }
.btn.small{ padding: 9px 16px; }
.btn.ghost:hover{ box-shadow: none; }

/* --- Hero com mais escala --- */
.hero{ padding-top: 56px; }
.hero .lead{ max-width: 640px; }

/* --- Nav: hover mais nítido --- */
.fid-nav-inner a{ transition: color .15s ease; }

/* --- Badges de loja (App Store / Google Play) --- */
.app-dl{ display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.store-badge{
  display: inline-flex; align-items: center; gap: 11px; background: #111318; color: #fff;
  padding: 10px 18px; border-radius: 8px; text-decoration: none; transition: background .15s ease, transform .15s ease;
}
.store-badge:hover{ background: #000; text-decoration: none; transform: translateY(-2px); }
.store-badge svg{ width: 24px; height: 24px; flex: none; }
.store-badge span{ display: flex; flex-direction: column; line-height: 1.1; font-weight: 800; font-size: 16px; }
.store-badge small{ font-weight: 500; font-size: 10px; opacity: .85; text-transform: uppercase; letter-spacing: .4px; }

/* --- Faixa "acessos rápidos" / tiles com ícone grande --- */
.qa-band{ background: var(--fid-mist); border-radius: var(--r-xl); padding: 40px; }
.qa-grid{ display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.qa-tile{ display: flex; gap: 16px; align-items: center; padding: 18px; background: #fff; border-radius: var(--r-md); box-shadow: var(--shadow-card); text-decoration: none; color: var(--fid-ink); transition: transform .18s ease, box-shadow .18s ease; }
.qa-tile:hover{ transform: translateY(-4px); box-shadow: 0 16px 40px rgba(26,26,36,.12); text-decoration: none; }
.qa-tile .qa-ic{ width: 56px; height: 56px; border-radius: 18px; background: var(--fid-red); color: #fff; display: grid; place-items: center; flex: none; }
.qa-tile .qa-ic svg{ width: 26px; height: 26px; }
.qa-tile b{ font-size: 17px; font-weight: 800; }
@media (max-width: 860px){ .qa-grid{ grid-template-columns: repeat(2, 1fr); } }

/* --- Fluxo tipo n8n (organigrama do "como funciona") --- */
.flow{ display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; align-items: stretch; position: relative; }
.flow-node{
  position: relative; background: #fff; border: 1px solid #eef0f4; border-radius: var(--r-lg);
  box-shadow: var(--shadow-card); padding: 30px 22px 26px; margin: 0 14px; text-align: center;
  transition: transform .2s ease, box-shadow .2s ease;
}
.flow-node:hover{ transform: translateY(-5px); box-shadow: 0 18px 46px rgba(26,26,36,.14); }
.flow-node .fn-num{
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 16px;
  font-weight: 900; font-size: 22px; color: #fff; box-shadow: 0 8px 20px rgba(0,0,0,.18);
}
.flow-node .fn-ic{ width: 44px; height: 44px; margin: 0 auto 12px; color: var(--fid-red); }
.flow-node .fn-ic svg{ width: 44px; height: 44px; }
.flow-node h3{ font-size: 20px; margin: 0 0 8px; }
.flow-node p{ font-size: 15px; color: var(--fid-slate); margin: 0; line-height: 1.5; }
/* conectores animados entre nós */
.flow-node::after{
  content: ""; position: absolute; top: 52px; right: -14px; width: 28px; height: 3px;
  background: repeating-linear-gradient(90deg, var(--fid-red) 0 7px, transparent 7px 12px);
  z-index: 2;
}
.flow-node:last-child::after{ display: none; }
/* nós todos em vermelho Fidelidade (sem outras cores) */
.flow-node .fn-num{ background: var(--fid-red); }
.flow-node .fn-ic{ color: var(--fid-red); }
@media (max-width: 900px){
  .flow{ grid-template-columns: 1fr; gap: 18px; }
  .flow-node{ margin: 0; }
  .flow-node::after{ top: auto; right: auto; bottom: -16px; left: 50%; transform: translateX(-50%) rotate(90deg); }
}

/* --- CTA assimétrica (texto+ícones à esquerda, botões à direita) --- */
.cta-split{
  display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
  background: linear-gradient(120deg, var(--fid-red), var(--fid-red-dark)); color: #fff;
  border-radius: var(--r-xl); padding: 40px 44px;
}
.cta-split h2{ color: #fff; margin: 0 0 6px; }
.cta-split p{ margin: 0; color: rgba(255,255,255,.9); font-size: 18px; }
.cta-split .cta-actions{ display: flex; gap: 12px; flex-wrap: wrap; }
.cta-split .btn{ background: #fff; color: var(--fid-red); }
.cta-split .btn:hover{ background: #fff; box-shadow: 0 12px 28px rgba(0,0,0,.25); }
.cta-split .btn.ghost{ background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.6); }

/* ============================================================
   HEADER moderno — logo à esquerda, nav horizontal, CTA à direita
   ============================================================ */
.mh{ position: sticky; top: 0; z-index: 60; background: rgba(255,255,255,.96); backdrop-filter: saturate(180%) blur(10px); border-bottom: 1px solid var(--fid-line); }
.mh-inner{ display: flex; align-items: center; gap: 26px; height: 74px; }
.mh-logo{ display: flex; align-items: center; flex: none; }
.mh-logo .brand-logo{ height: 40px; width: auto; display: block; }
.mh-logo .mark{ width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--fid-red); color: #fff; font-weight: 900; }
.mh-nav{ display: flex; align-items: center; gap: 26px; margin-left: auto; }
.mh-nav > a{ color: var(--fid-ink); font-weight: 700; font-size: 15px; position: relative; padding: 6px 0; transition: color .15s ease; }
.mh-nav > a::after{ content:""; position:absolute; left:0; right:0; bottom:-2px; height:3px; background: var(--fid-red); border-radius: 100px; transform: scaleX(0); transition: transform .18s ease; }
.mh-nav > a:hover{ color: var(--fid-red); text-decoration: none; }
.mh-nav > a:hover::after,
.mh-nav > a.active::after{ transform: scaleX(1); }
.mh-nav > a.active{ color: var(--fid-red); }
.mh-actions{ display: flex; align-items: center; gap: 14px; margin-left: 8px; }
.mh-user{ width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: var(--fid-ink); border: 1px solid var(--fid-line); transition: .15s; }
.mh-user:hover{ color: var(--fid-red); border-color: var(--fid-red); text-decoration: none; }
.mh-user svg{ width: 20px; height: 20px; }
.mh-cta{ padding: 11px 20px !important; }
.mh-cta.active{ box-shadow: 0 10px 24px rgba(237,28,36,.28); }
.mh-burger{ display: none; margin-left: auto; background: none; border: 0; color: var(--fid-ink); cursor: pointer; }
.mh-burger svg{ width: 30px; height: 30px; }
@media (max-width: 1040px){
  .mh-inner{ height: 64px; flex-wrap: wrap; }
  .mh-burger{ display: inline-flex; }
  .mh-nav{ display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 0; margin: 0 0 12px; }
  .mh-nav.open{ display: flex; }
  .mh-nav > a{ padding: 14px 4px; border-bottom: 1px solid var(--fid-line); font-size: 16px; }
  .mh-nav > a::after{ display: none; }
  .mh-actions{ width: 100%; margin: 10px 0 0; }
  .mh-cta{ flex: 1; text-align: center; justify-content: center; }
}

/* --- Faixa de acessos rápidos sobreposta ao hero --- */
.qa-overlap{ margin-top: -56px; position: relative; z-index: 5; }
@media (max-width: 860px){ .qa-overlap{ margin-top: 24px; } }
.qa-band h3{ margin: 0 0 4px; font-size: 22px; }
.qa-band .qa-sub{ color: var(--fid-slate); margin: 0 0 22px; }

/* --- Cotações: botão "Saber mais" sempre visível + tabela mais limpa --- */
#cot .saber, table .saber{ background: var(--fid-red) !important; color: #fff !important; border: 0; font-weight: 800; white-space: nowrap; box-shadow: 0 6px 16px rgba(237,28,36,.24); }
#cot .saber:hover, table .saber:hover{ background: var(--fid-red-dark) !important; }
.table-wrap table{ border-collapse: separate; border-spacing: 0; }
.table-wrap thead th{ font-size: 12.5px; text-transform: uppercase; letter-spacing: .03em; color: var(--fid-slate); background: var(--fid-mist); }
.table-wrap tbody tr{ transition: background .12s ease; }
.table-wrap tbody tr:hover{ background: #fafbfc; }
.table-wrap td, .table-wrap th{ vertical-align: middle; }

/* ===== Overrides finais ===== */
/* Acessos rápidos: só ícones outline, sem fundo nem card */
.qa-overlap{ margin-top: 0; }
.qa-band{ background: transparent !important; padding: 34px 0 6px; }
.qa-band h3{ font-size: 20px; }
.qa-grid{ gap: 12px; }
.qa-tile{ background: transparent !important; box-shadow: none !important; border: 0; padding: 12px 8px; flex-direction: column; text-align: center; gap: 12px; }
.qa-tile:hover{ transform: translateY(-3px); box-shadow: none !important; }
.qa-tile:hover b{ color: var(--fid-red); }
.qa-tile .qa-ic{ background: transparent !important; color: var(--fid-red); width: auto; height: auto; border-radius: 0; }
.qa-tile .qa-ic svg{ width: 40px; height: 40px; }
.qa-tile b{ font-size: 16px; transition: color .15s ease; }

/* Slider: dots redondos DENTRO do hero (estilo Multicare) */
.slide-dots{ position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 6; display: flex; gap: 10px; background: none; padding: 0; }
.slide-dots button{ width: 11px; height: 11px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.55); font-size: 0 !important; color: transparent; cursor: pointer; transition: width .2s ease, background .2s ease; overflow: hidden; }
.slide-dots button:hover{ background: rgba(255,255,255,.85); }
.slide-dots button.on{ width: 30px; border-radius: 6px; background: #fff; }

/* Logo do menu mais pequeno */
.mh-logo .brand-logo{ height: 30px; }
.mh-inner{ height: 66px; }
@media (max-width: 1040px){ .mh-logo .brand-logo{ height: 28px; } }

/* ===== Ajustes finais 2 ===== */
/* Menu: rótulos em duas linhas, centrados */
.mh-nav > a{ text-align: center; line-height: 1.16; font-size: 13.5px; }
.mh-nav{ gap: 22px; }
@media (max-width: 1040px){ .mh-nav > a{ text-align: left; line-height: 1.3; } .mh-nav > a br{ display: none; } }

/* Botão "Recomende e ganhe" no nav — mais destacado */
.mh-cta{ gap: 9px; padding: 12px 22px !important; font-size: 14.5px; font-weight: 800; border-radius: 6px !important; box-shadow: 0 8px 20px rgba(237,28,36,.30); }
.mh-cta svg{ flex: none; }
.mh-cta:hover{ box-shadow: 0 12px 28px rgba(237,28,36,.42); }

/* Acessos rápidos — mais limpo e centrado */
.qa-band{ text-align: center; padding: 40px 0 10px; }
.qa-band h3{ font-size: 22px; margin: 0 0 4px; }
.qa-band .qa-sub{ margin: 0 0 26px; }
.qa-grid{ max-width: 860px; margin: 0 auto; }
.qa-tile{ gap: 14px; padding: 14px 8px; }
.qa-tile .qa-ic svg{ width: 42px; height: 42px; stroke-width: 1.7; }
.qa-tile b{ font-size: 15.5px; }

/* Ícones das redes sociais no rodapé — bem formatados */
.fid-social{ display: flex; gap: 10px; margin-top: 16px; }
.fid-social a{ width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; transition: background .15s ease, transform .15s ease; }
.fid-social a:hover{ background: var(--fid-red); transform: translateY(-2px); text-decoration: none; }
.fid-social a svg{ width: 19px; height: 19px; display: block; }

/* ===== Cotações: ícones nos filtros + pesquisa ===== */
.cot-filters .pill{ display: inline-flex; align-items: center; gap: 7px; }
.cot-filters .pill svg{ width: 17px; height: 17px; flex: none; }
.cot-search{ position: relative; }
.cot-search svg{ position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--fid-slate); pointer-events: none; }
.cot-search input{ padding-left: 40px !important; }

/* ===== Hero da home muito mais forte ===== */
.slider{ background: #14100f; }
.slide{ min-height: 560px; }
.slide img{ height: 620px; }
.slide::after{ background: linear-gradient(90deg, rgba(16,8,9,.78) 0%, rgba(16,8,9,.42) 42%, rgba(16,8,9,.05) 72%), linear-gradient(0deg, rgba(16,8,9,.55), transparent 40%); }
.slide-caption .eye{ font-size: 13px; letter-spacing: .14em; color: #ffd7d9; position: relative; padding-bottom: 8px; }
.slide-caption .eye::after{ content:""; position:absolute; left:0; bottom:0; width:40px; height:3px; background: var(--fid-red); border-radius: 100px; }
.slide-caption h2{ font-size: clamp(34px, 5vw, 66px); line-height: 1.02; font-weight: 900; letter-spacing: -.025em; max-width: 15ch; margin: 14px 0 28px; }
.slide-caption .btn{ padding: 15px 30px; font-size: 16px; }
.slider-nav{ background: rgba(255,255,255,.14); color: #fff; backdrop-filter: blur(4px); }
.slider-nav:hover{ background: #fff; color: var(--fid-red); }
@media (max-width: 700px){ .slide img{ height: 480px; } .slide{ min-height: 440px; } .slide-caption h2{ font-size: 32px; } }

/* Subtítulo por baixo do título no hero da home */
.slide-caption .slide-sub{ color: rgba(255,255,255,.92); font-size: clamp(16px, 1.5vw, 20px); line-height: 1.5; max-width: 30ch; margin: -8px 0 26px; text-shadow: 0 2px 14px rgba(0,0,0,.35); }
@media (max-width: 700px){ .slide-caption .slide-sub{ font-size: 15px; margin: 0 0 20px; } }

/* ===== Cotações: hover na linha + seta no Saber mais ===== */
#cot tbody tr{ cursor: pointer; }
#cot tbody tr:hover{ background: rgba(237,28,36,.06) !important; }
#cot tbody tr:hover td{ border-color: rgba(237,28,36,.14); }
#cot tbody tr td:last-child{ text-align: right; white-space: nowrap; }
#cot .saber{ display: inline-flex; align-items: center; gap: 4px; transition: transform .14s ease, box-shadow .14s ease, opacity .14s ease; opacity: .92; }
#cot .saber::after{ content: "›"; font-weight: 900; font-size: 15px; line-height: 1; }
#cot tbody tr:hover .saber{ opacity: 1; transform: translateY(-1px); box-shadow: 0 8px 20px rgba(237,28,36,.42); }

/* ============================================================
   MOBILE — correções
   ============================================================ */
@media (max-width: 1040px){
  /* Header: menu como painel branco sólido (sem sobreposição) */
  .mh-inner{ height: 58px; flex-wrap: nowrap; position: relative; gap: 12px; }
  .mh-logo .brand-logo{ height: 24px; }
  .mh-burger{ margin-left: auto; }
  .mh-nav{
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--fid-line);
    box-shadow: 0 22px 44px rgba(0,0,0,.14);
    padding: 6px 24px 18px; margin: 0; display: none; z-index: 70;
  }
  .mh-nav.open{ display: flex; }
  .mh-nav > a{ padding: 15px 2px; font-size: 16px; border-bottom: 1px solid var(--fid-line); }
  .mh-nav > a br{ display: none; }
  .mh-actions{ width: 100%; margin: 12px 0 0; }
  .mh-cta{ width: 100%; justify-content: center; }
}
@media (max-width: 760px){
  /* Cards "Eu quero" empilhados */
  .euquero{ grid-template-columns: 1fr; gap: 16px; }
  .euquero a{ min-height: 220px; }
  .euquero .eq-body h3{ font-size: 26px; }
  .euquero .eq-body p{ text-decoration: none; }
  /* Acessos rápidos: 2 colunas confortáveis */
  .qa-grid{ grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .qa-tile{ padding: 12px 4px; }
  .qa-tile b{ font-size: 14px; }
  /* Cotações: toolbars empilham */
  .cot-toolbar{ flex-direction: column; align-items: stretch; gap: 12px; }
  .cot-filters{ flex-wrap: wrap; }
  .cta-split{ padding: 28px 22px; }
  .cta-split .cta-actions{ width: 100%; }
  .cta-split .cta-actions .btn{ flex: 1; justify-content: center; }
}

/* ===== Mobile — teaser de cotações + passos ===== */
@media (max-width: 820px){
  .cot-teaser{ grid-template-columns: 1fr !important; gap: 22px; }
  .cot-teaser .cot-mini{ width: 100%; }
  .savings-row{ width: 100%; }
}
@media (max-width: 900px){
  .flow{ grid-template-columns: 1fr !important; }
  .flow-node{ margin: 0; text-align: center; }
  .flow-node .fn-num, .flow-node .fn-ic{ margin-left: auto; margin-right: auto; }
}
@media (max-width: 760px){
  /* Passos do programa: cartão empilhado, número em cima */
  .pg-steps{ grid-template-columns: 1fr !important; }
  .pg-step{ text-align: center; }
  .pg-step-badge{ margin-left: auto; margin-right: auto; }
  /* Hero do programa: rewards por baixo do texto */
  .pg-herored .pg-grid{ grid-template-columns: 1fr !important; }
  /* aderir: colunas empilham já a 920px (ok) */
}

/* ============================================================
   ADMIN THEME — Backoffice (Fidelidade)
   Layer added at the END. Overrides are scoped to admin pages
   via `body:has(.admin-bar)` so the public site is untouched.
   Reuses --fid-red / --fid-slate / --fid-line / Lato tokens.
   New admin-only markup hooks are prefixed with `adm-`.
   ============================================================ */
:root{
  --adm-bg: #f5f6fa;
  --adm-surface: #ffffff;
  --adm-line: #e6e8f0;
  --adm-radius: 16px;
  --adm-radius-sm: 12px;
  --adm-shadow: 0 6px 22px rgba(26,26,36,.07);
  --adm-shadow-lg: 0 14px 40px rgba(26,26,36,.12);
}

/* --- Page background & base rhythm --- */
body:has(.admin-bar){ background: var(--adm-bg); }
body:has(.admin-bar) > main{ padding-bottom: 24px; }
body:has(.admin-bar) section{ padding: 28px 0 !important; }

/* --- Top bar ------------------------------------------------ */
.admin-bar{
  background: linear-gradient(100deg, var(--fid-ink), #24242f);
  box-shadow: 0 2px 14px rgba(0,0,0,.18);
  position: sticky; top: 0; z-index: 60;
}
.admin-bar .nav-inner{ height: 60px; gap: 16px; }
.admin-bar .brand{ font-size: 17px; white-space: nowrap; }
.admin-bar .brand .sub{ color: rgba(255,255,255,.55); }
.admin-bar .nav-links{
  gap: 4px; overflow-x: auto; overflow-y: hidden;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
  padding: 6px 0; margin-left: auto; min-width: 0;
}
.admin-bar .nav-links::-webkit-scrollbar{ display: none; }
.admin-bar .nav-links a{
  color: rgba(255,255,255,.72); font-size: 14px; font-weight: 600;
  padding: 7px 13px; border-radius: 999px; white-space: nowrap;
  transition: background .15s ease, color .15s ease;
}
.admin-bar .nav-links a.active,
.admin-bar .nav-links a:hover{ color:#fff; background: rgba(255,255,255,.12); }
.admin-bar .nav-links form{ flex: none; }

/* --- Panel heading + description --------------------------- */
body:has(.admin-bar) .panel-title{
  align-items: flex-start; gap: 14px; flex-wrap: wrap;
  margin: 0 0 20px; padding-bottom: 16px;
  border-bottom: 1px solid var(--adm-line);
}
body:has(.admin-bar) .panel-title h2{ font-size: clamp(24px,3vw,34px); }
.adm-lead{ color: var(--fid-slate); margin: 4px 0 0; font-size: 15px; line-height: 1.5; max-width: 70ch; }
.adm-head-actions{ display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-left: auto; }
.adm-section-title{ margin: 30px 0 14px; font-size: 18px; }
.adm-section-title:first-of-type{ margin-top: 8px; }

/* --- Tabs -------------------------------------------------- */
body:has(.admin-bar) .tabs{
  gap: 6px; margin-bottom: 24px; padding: 5px;
  background: #fff; border: 1px solid var(--adm-line);
  border-radius: 999px; box-shadow: var(--adm-shadow);
  overflow-x: auto; scrollbar-width: none; width: max-content; max-width: 100%;
}
body:has(.admin-bar) .tabs::-webkit-scrollbar{ display: none; }
body:has(.admin-bar) .tabs a{
  background: transparent; white-space: nowrap;
  padding: 9px 18px; transition: background .15s ease, color .15s ease;
}
body:has(.admin-bar) .tabs a:hover{ color: var(--fid-ink); background: var(--fid-mist); }
body:has(.admin-bar) .tabs a.active{ background: var(--fid-red); color:#fff; box-shadow: 0 4px 12px rgba(200,16,46,.28); }

/* --- KPI cards --------------------------------------------- */
body:has(.admin-bar) .kpi-grid{ gap: 16px; }
body:has(.admin-bar) .kpi{
  border: 1px solid var(--adm-line); border-radius: var(--adm-radius);
  box-shadow: var(--adm-shadow); padding: 20px 22px;
  transition: transform .18s ease, box-shadow .18s ease;
  position: relative; overflow: hidden;
}
body:has(.admin-bar) .kpi::before{
  content:""; position:absolute; left:0; top:0; bottom:0; width:4px;
  background: linear-gradient(180deg, var(--fid-red), var(--fid-gold)); opacity:.85;
}
body:has(.admin-bar) .kpi:hover{ transform: translateY(-3px); box-shadow: var(--adm-shadow-lg); }
body:has(.admin-bar) .kpi .value{ font-size: 32px; }
body:has(.admin-bar) .kpi.accent{
  background: linear-gradient(120deg, var(--fid-red), var(--fid-red-dark));
  box-shadow: 0 12px 30px rgba(200,16,46,.28);
}
body:has(.admin-bar) .kpi.accent::before{ display:none; }

/* --- Cards ------------------------------------------------- */
body:has(.admin-bar) .card{
  border-radius: var(--adm-radius) !important;
  border: 1px solid var(--adm-line);
  box-shadow: var(--adm-shadow);
  padding: 24px;
}
body:has(.admin-bar) .card:hover{ transform: none; box-shadow: var(--adm-shadow); }
body:has(.admin-bar) .card h3{ margin-top: 0; }

/* --- Tables ------------------------------------------------ */
body:has(.admin-bar) .table-wrap{
  border: 1px solid var(--adm-line); border-radius: var(--adm-radius);
  box-shadow: var(--adm-shadow); overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
body:has(.admin-bar) table{ min-width: 640px; }
body:has(.admin-bar) thead th{
  position: sticky; top: 0; z-index: 1;
  background: var(--fid-mist); border-bottom: 2px solid var(--adm-line);
  padding: 13px 16px;
}
body:has(.admin-bar) tbody td{ padding: 13px 16px; vertical-align: middle; }
body:has(.admin-bar) tbody tr{ transition: background .12s ease; }
body:has(.admin-bar) tbody tr:nth-child(even){ background: #fafbfd; }
body:has(.admin-bar) tbody tr:hover{ background: rgba(200,16,46,.045); }
body:has(.admin-bar) tbody tr:last-child td{ border-bottom: 0; }
.adm-actions{ display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.adm-actions form{ margin: 0; }

/* --- Badges: sharper, consistent --------------------------- */
body:has(.admin-bar) .badge{ padding: 5px 11px; font-size: 11px; }

/* --- Forms & inputs (touch-friendly) ----------------------- */
body:has(.admin-bar) .field{ margin-bottom: 16px; }
body:has(.admin-bar) .field label{
  display: block; font-size: 13px; font-weight: 700;
  color: var(--fid-ink); margin-bottom: 6px;
}
body:has(.admin-bar) .field input,
body:has(.admin-bar) .field select,
body:has(.admin-bar) .field textarea,
body:has(.admin-bar) textarea,
body:has(.admin-bar) select{
  width: 100%; padding: 11px 14px; font-size: 15px;
  border: 1.5px solid var(--adm-line); border-radius: var(--adm-radius-sm);
  font-family: inherit; background: #fff; color: var(--fid-ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
body:has(.admin-bar) .field input:focus,
body:has(.admin-bar) .field select:focus,
body:has(.admin-bar) .field textarea:focus,
body:has(.admin-bar) textarea:focus,
body:has(.admin-bar) select:focus{
  outline: none; border-color: var(--fid-red);
  box-shadow: 0 0 0 3px rgba(200,16,46,.12);
}
body:has(.admin-bar) code{
  background: var(--fid-mist); padding: 2px 7px; border-radius: 6px;
  font-size: 12.5px; color: var(--fid-red-dark);
}
.adm-toolbar{ display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; }

/* --- Buttons: friendlier corners inside admin -------------- */
body:has(.admin-bar) .btn{ border-radius: 10px !important; }
body:has(.admin-bar) .btn.small{ padding: 8px 15px; font-size: 13.5px; }

/* --- Login card -------------------------------------------- */
.login-card{ box-shadow: var(--adm-shadow-lg); border-radius: 22px !important; }

/* --- Responsive -------------------------------------------- */
@media (max-width: 760px){
  body:has(.admin-bar) .wrap{ padding: 0 16px; }
  body:has(.admin-bar) section{ padding: 20px 0 !important; }
  .admin-bar .nav-inner{ height: 54px; }
  .admin-bar .brand span:not(.mark):not(.sub){ display: none; }
  body:has(.admin-bar) .kpi-grid{ grid-template-columns: repeat(2, 1fr) !important; }
  body:has(.admin-bar) .kpi .value{ font-size: 26px; }
  body:has(.admin-bar) .card{ padding: 18px; }
  body:has(.admin-bar) .grid.cols-2{ grid-template-columns: 1fr !important; }
  body:has(.admin-bar) .funnel-row{ grid-template-columns: 1fr; gap: 4px; }
  body:has(.admin-bar) .funnel-row .bar{ height: 22px; }
  body:has(.admin-bar) .funnel-row .pct{ text-align: left; }
  .adm-head-actions{ margin-left: 0; width: 100%; }
}
@media (max-width: 460px){
  body:has(.admin-bar) .kpi-grid{ grid-template-columns: 1fr !important; }
}

/* ============================================================
   Mostrar/ocultar password (olho)
   ============================================================ */
.pw-wrap{ position: relative; display: block; }
.pw-wrap > input{ width: 100%; padding-right: 44px !important; }
.pw-eye{ position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: none; border: 0; padding: 6px; cursor: pointer; color: var(--fid-slate); display: grid; place-items: center; }
.pw-eye:hover{ color: var(--fid-red); }
.pw-eye svg{ width: 20px; height: 20px; }
.pw-eye .off{ display: none; }
.pw-eye.on .on{ display: none; }
.pw-eye.on .off{ display: block; }

/* ============================================================
   Barra inferior tipo app (mobile) + extras do menu
   ============================================================ */
.tabbar{ display: none; }
.mh-nav-user{ display: none; }
.mh-appbadges{ display: none; }

@media (max-width: 1040px){
  .mh-burger{ display: none !important; }           /* usamos a tab bar */
  body{ padding-bottom: 66px; }                      /* espaço para a tab bar */
  .tabbar{
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    background: #fff; border-top: 1px solid var(--fid-line);
    box-shadow: 0 -6px 22px rgba(0,0,0,.10);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px));
    justify-content: space-around; align-items: stretch;
  }
  .tabbar a, .tabbar button{
    flex: 1; background: none; border: 0; text-decoration: none; cursor: pointer;
    display: flex; flex-direction: column; align-items: center; gap: 3px;
    color: var(--fid-slate); font: 700 11px/1.1 "Lato", sans-serif; padding: 4px 2px;
  }
  .tabbar svg{ width: 23px; height: 23px; }
  .tabbar a.active{ color: var(--fid-red); }
  /* extras dentro do menu aberto */
  .mh-nav-user{ display: flex; align-items: center; gap: 10px; padding: 15px 2px; border-bottom: 1px solid var(--fid-line); font-weight: 700; color: var(--fid-ink); }
  .mh-nav-user svg{ width: 20px; height: 20px; }
  .mh-appbadges{ display: block; padding: 14px 0 2px; }
  .mh-appbadges-t{ display: block; font-size: 13px; font-weight: 700; color: var(--fid-slate); margin-bottom: 10px; }
  .mh-appbadges .app-dl{ justify-content: flex-start; }
}

/* ============================================================
   Correções mobile — MySavings, Documentos, rodapé
   ============================================================ */
@media (max-width: 760px){
  .benef{ grid-template-columns: 1fr !important; gap: 14px; }
  .docs{ grid-template-columns: 1fr !important; }
  .grid.cols-2, .grid.cols-3{ grid-template-columns: 1fr !important; }
  /* rodapé: marca e redes centradas */
  .fid-footer-brand{ text-align: center; }
  .fid-footer-brand p{ margin-left: auto; margin-right: auto; }
  .fid-social{ justify-content: center; }
  .fid-footer-cols{ grid-template-columns: 1fr 1fr; }
}
/* Ícones sociais sempre centrados verticalmente/horizontalmente no círculo */
.fid-social a{ line-height: 0; }

/* ============================================================
   Cotações — mobile: esconder colunas secundárias, foco no essencial
   colunas: 1 Nome | 2 Data | 3 Cotação | 4 Rend1 | 5 Rend3 | 6 Taxa | 7 Risco | 8 Comerc | 9 Ação
   ============================================================ */
@media (max-width: 820px){
  #cot thead th:nth-child(2), #cot tbody td:nth-child(2),   /* Data */
  #cot thead th:nth-child(5), #cot tbody td:nth-child(5),   /* Rend 3 anos */
  #cot thead th:nth-child(6), #cot tbody td:nth-child(6),   /* Taxa */
  #cot thead th:nth-child(8), #cot tbody td:nth-child(8){   /* Comerc */
    display: none;
  }
  #cot{ min-width: 0 !important; width: 100%; }
  .table-wrap{ overflow-x: visible; }
  #cot td, #cot th{ padding: 12px 8px; }
  #cot .saber{ padding: 8px 12px; }
}

/* Cotações: cartões de estatística em 2x2 no mobile (evita overflow) */
@media (max-width: 760px){
  .cot-stats{ display: grid !important; grid-template-columns: repeat(2, 1fr) !important; gap: 10px !important; overflow: visible !important; }
  .cot-stat{ min-width: 0 !important; }
  .cot-hero h1{ font-size: clamp(28px, 8vw, 40px); }
}

/* ===== Ajustes finais: ícones sociais centrados + badges das lojas à esquerda ===== */
.fid-social a{ display: inline-flex !important; align-items: center; justify-content: center; line-height: 1; padding: 0; }
.fid-social a svg{ display: block; margin: auto; }
.app-dl{ justify-content: flex-start; }
