/* ==========================================================================
   Login v3 — ivici
   Card claro sobre fundo escuro com glow laranja; painel direito reaproveita
   o celular do site (ivici-site/css/index.css) com cards flutuantes + carrossel.
   ========================================================================== */
:root {
  --lg-page: #0A0A0A;
  --lg-card: #ffffff;
  --lg-panel: #fdfaf6;
  --lg-border: #ece6dd;
  --lg-text: #1a1a1d;
  --lg-muted: #6b6b72;
  --lg-orange: #F26522;
  --lg-orange-2: #FF8C55;
  --lg-orange-ink: #C2410C;
  --lg-orange-ink-hover: #A8380A;
  --lg-orange-soft: #fff1e8;
  --lg-danger: #dc2626;
  --lg-ring: 0 0 0 3px rgba(242, 101, 34, .35);
  --lg-font-display: 'Barlow Condensed', sans-serif;
  --lg-font: 'Barlow', -apple-system, BlinkMacSystemFont, sans-serif;
  --lg-r-card: 28px;
  --lg-r-panel: 22px;
  --lg-r-input: 12px;
  --lg-r-btn: 999px;
  --lg-shadow-card: 0 40px 100px -30px rgba(0, 0, 0, .7);
  --lg-shadow-float: 0 18px 40px -12px rgba(26, 26, 29, .22);
  --lg-ease: cubic-bezier(.22, 1, .36, 1);

  /* tokens usados pelo bloco do celular (copiado do site) */
  --orange: #F26522;
  --pulse-duration: 1.8s;
  --d-bg: #fdfaf6;
  --d-card: #ffffff;
  --d-text: #1a1a1d;
  --d-muted: #8a8a90;
  --d-border: #ece6dd;
  --d-track: #efe9df;
  --d-green: #16a34a;
  --d-green-bg: rgba(22, 163, 74, .10);
  --d-red: #dc2626;
  --d-orange-soft: #fff1e8;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .35; }
}

body {
  background: var(--lg-page);
  color: var(--lg-text);
  font-family: var(--lg-font);
  -webkit-font-smoothing: antialiased;
}

/* ---------- página ---------- */
.lg-page {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  overflow: hidden;
  isolation: isolate;
}
.lg-page::before,
.lg-page::after {
  content: '';
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}
.lg-page::before {
  width: 620px; height: 620px;
  top: -220px; left: -160px;
  background: radial-gradient(circle, rgba(242, 101, 34, .45), transparent 70%);
}
.lg-page::after {
  width: 700px; height: 700px;
  bottom: -300px; right: -200px;
  background: radial-gradient(circle, rgba(255, 140, 85, .32), transparent 70%);
}
.lg-grain {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse at center, transparent 35%, #000 85%);
  mask-image: radial-gradient(ellipse at center, transparent 35%, #000 85%);
}

/* ---------- card ---------- */
.lg-shell {
  width: 100%;
  max-width: 1180px;
  min-height: 680px;
  display: grid;
  grid-template-columns: minmax(360px, 1fr) 1.08fr;
  gap: 12px;
  padding: 12px;
  background: var(--lg-card);
  border-radius: var(--lg-r-card);
  box-shadow: var(--lg-shadow-card), 0 0 0 1px rgba(255, 255, 255, .06);
  animation: lgShellIn .7s var(--lg-ease) both;
}
@keyframes lgShellIn {
  from { opacity: 0; transform: translateY(16px) scale(.985); }
  to   { opacity: 1; transform: none; }
}

/* ---------- lado do formulário ---------- */
.lg-form-side {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 40px;
}
.lg-form-inner {
  width: 100%;
  max-width: 380px;
}
.lg-logo {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 28px;
  color: var(--lg-text);
  text-decoration: none;
}
.lg-logo .brand-word {
  font-family: var(--lg-font-display);
  font-weight: 900;
  font-size: 34px;
  line-height: 1;
  letter-spacing: -.01em;
}
.lg-logo-tag {
  font-size: 11px;
  font-weight: 600;
  color: var(--lg-muted);
  letter-spacing: .16em;
  text-transform: uppercase;
}
.brand-word { display: inline-block; white-space: nowrap; }
.brand-i-wrap { position: relative; display: inline-block; }
.brand-i-dot {
  position: absolute;
  left: 50%;
  top: .22em;
  width: .24em; height: .24em;
  margin-left: -.12em;
  background: var(--lg-orange);
  border-radius: 50%;
}
.brand-period { color: var(--lg-orange); }

.lg-title {
  font-family: var(--lg-font-display);
  font-weight: 800;
  font-size: 44px;
  line-height: 1;
  letter-spacing: -.01em;
  color: var(--lg-text);
  margin: 0 0 12px;
  text-wrap: balance;
}
.lg-title em { font-style: normal; color: var(--lg-orange-ink); }
.lg-sub {
  font-size: 16px;
  line-height: 1.5;
  color: var(--lg-muted);
  margin: 0 0 28px;
  text-wrap: pretty;
}

/* toggle PF / PJ — classes mantidas por loginNovo19.js */
.lg-form-side .toggle-container { margin-bottom: 24px; }
.lg-form-side .toggle-track {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 4px;
  background: #f4efe7;
  border: 1px solid var(--lg-border);
  border-radius: var(--lg-r-btn);
}
.lg-form-side .toggle-option {
  position: relative;
  z-index: 1;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--lg-muted);
  border-radius: var(--lg-r-btn);
  cursor: pointer;
  user-select: none;
  transition: color .2s ease;
}
.lg-form-side .toggle-option:hover { color: var(--lg-text); }
.lg-form-side .toggle-option.active { color: var(--lg-text); }
.lg-form-side .toggle-option:focus-visible { outline: none; box-shadow: var(--lg-ring); }
.lg-form-side .toggle-thumb {
  position: absolute;
  top: 4px; left: 0;
  width: calc(50% - 4px);
  height: calc(100% - 8px);
  background: var(--lg-card);
  border-radius: var(--lg-r-btn);
  box-shadow: 0 2px 8px rgba(26, 26, 29, .12), 0 0 0 1px var(--lg-border);
  transform: translateX(4px);
  transition: transform .3s var(--lg-ease);
}

/* campos */
.lg-form-side .form-group { margin-bottom: 18px; }
.lg-label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 8px;
}
.lg-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--lg-text);
}
.lg-form-side .input-container { position: relative; }
.lg-form-side .input-container > .bi:first-child {
  position: absolute;
  left: 16px; top: 50%;
  transform: translateY(-50%);
  font-size: 17px;
  color: var(--lg-muted);
  pointer-events: none;
  transition: color .2s ease;
}
.lg-input {
  width: 100%;
  height: 50px;
  padding: 0 16px 0 46px;
  font: 500 16px/1 var(--lg-font);
  color: var(--lg-text);
  background: var(--lg-card);
  border: 1px solid var(--lg-border);
  border-radius: var(--lg-r-input);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.lg-input::placeholder { color: #a3a3aa; }
.lg-input:hover { border-color: #d9d0c3; }
.lg-input:focus { outline: none; border-color: var(--lg-orange); box-shadow: var(--lg-ring); }
.lg-form-side .input-container:focus-within > .bi:first-child { color: var(--lg-orange-ink); }
.lg-input.has-pass { padding-right: 52px; }
.lg-eye {
  position: absolute;
  right: 4px; top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: var(--lg-muted);
  font-size: 18px;
  border-radius: 10px;
  cursor: pointer;
}
.lg-eye:hover { color: var(--lg-text); }
.lg-eye:focus-visible { outline: none; box-shadow: var(--lg-ring); }

.lg-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--lg-orange-ink);
  text-decoration: none;
  border-radius: 4px;
}
.lg-link:hover { color: var(--lg-orange-ink-hover); text-decoration: underline; text-underline-offset: 3px; }
.lg-link:focus-visible { outline: none; box-shadow: var(--lg-ring); }

/* botões */
.lg-btn {
  width: 100%;
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 24px;
  font: 700 16px/1 var(--lg-font);
  letter-spacing: .01em;
  border-radius: var(--lg-r-btn);
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .15s ease, box-shadow .2s ease;
}
.lg-btn:active { transform: scale(.985); }
.lg-btn:focus-visible { outline: none; box-shadow: var(--lg-ring); }
.lg-btn-primary {
  margin-top: 8px;
  color: #fff;
  background: var(--lg-orange-ink);
  box-shadow: 0 10px 24px -10px rgba(194, 65, 12, .7);
}
.lg-btn-primary:hover { background: var(--lg-orange-ink-hover); color: #fff; }
.lg-btn-outline {
  color: var(--lg-text);
  background: var(--lg-card);
  border-color: var(--lg-border);
}
.lg-btn-outline:hover { border-color: var(--lg-text); color: var(--lg-text); }

.lg-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 22px 0;
  font-size: 13px;
  color: var(--lg-muted);
}
.lg-divider::before,
.lg-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--lg-border);
}
.lg-foot {
  margin: 20px 0 0;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
  color: var(--lg-muted);
}

/* entrada escalonada do formulário */
.lg-stagger > * { animation: lgRise .5s var(--lg-ease) both; }
.lg-stagger > *:nth-child(1) { animation-delay: .10s; }
.lg-stagger > *:nth-child(2) { animation-delay: .16s; }
.lg-stagger > *:nth-child(3) { animation-delay: .22s; }
.lg-stagger > *:nth-child(4) { animation-delay: .28s; }
.lg-stagger > *:nth-child(5) { animation-delay: .34s; }
.lg-stagger > *:nth-child(6) { animation-delay: .40s; }
@keyframes lgRise {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- painel vitrine ---------- */
.lg-showcase {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--lg-r-panel);
  background:
    radial-gradient(120% 80% at 50% 0%, #fff6ee 0%, transparent 60%),
    var(--lg-panel);
  border: 1px solid var(--lg-border);
  overflow: hidden;
}
.lg-showcase::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(26, 26, 29, .06) 1px, transparent 1px);
  background-size: 18px 18px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 70%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 70%);
  pointer-events: none;
}
.lg-stage {
  position: relative;
  flex: 1;
  min-height: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lg-stage .blob {
  position: absolute;
  width: 340px; height: 340px;
  opacity: .9;
  pointer-events: none;
}
.lg-stage .blob-1 { top: 10px; right: 40px; animation: blobFloatA 9s ease-in-out infinite; }
.lg-stage .blob-2 { bottom: -60px; left: 30px; animation: blobFloatB 11s ease-in-out infinite; }
@keyframes blobFloatA {
  0%, 100% { transform: translate(0, 0) rotate(0) scale(1); }
  50%      { transform: translate(-14px, 18px) rotate(8deg) scale(1.04); }
}
@keyframes blobFloatB {
  0%, 100% { transform: translate(0, 0) rotate(0) scale(1); }
  50%      { transform: translate(18px, -14px) rotate(-6deg) scale(1.05); }
}
.lg-phone-scale {
  position: relative;
  z-index: 2;
  transform: scale(.74);
  transform-origin: center center;
  margin: -80px 0;
}

/* cards flutuantes (glass claro) */
.lg-float {
  position: absolute;
  z-index: 5;
  min-width: 210px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, .86);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(236, 230, 221, .9);
  border-radius: 16px;
  box-shadow: var(--lg-shadow-float);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(.96);
  transition: opacity .45s var(--lg-ease), transform .45s var(--lg-ease), visibility 0s linear .45s;
}
.lg-float.is-on {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity .45s var(--lg-ease) .12s, transform .55s var(--lg-ease) .12s, visibility 0s;
}
.lg-float.is-on .lg-float-body { animation: lgBob 5s ease-in-out infinite alternate; }
.lg-float.pos-a { top: 12%; left: 6%; }
.lg-float.pos-b { bottom: 12%; right: 6%; }
.lg-float.pos-b.is-on { transition-delay: .22s; }
.lg-float-body { display: flex; align-items: center; gap: 12px; }
@keyframes lgBob {
  from { transform: translateY(-3px); }
  to   { transform: translateY(3px); }
}
.lg-float-icon {
  flex: none;
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--lg-orange);
  color: #fff;
}
.lg-float-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lg-float-icon.is-green { background: var(--d-green); }
.lg-float-val {
  font-variant-numeric: tabular-nums;
  font-family: var(--lg-font-display);
  font-weight: 800;
  font-size: 22px;
  line-height: 1;
  color: var(--lg-text);
}
.lg-float-val small { font-size: 12px; font-weight: 700; color: var(--lg-orange-ink); margin-right: 3px; }
.lg-float-lab {
  margin-top: 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--lg-muted);
}

/* legenda + carrossel */
.lg-caption {
  position: relative;
  z-index: 3;
  padding: 8px 32px 28px;
  text-align: center;
}
.lg-slides { position: relative; min-height: 108px; }
.lg-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .4s var(--lg-ease), transform .4s var(--lg-ease), visibility 0s linear .4s;
}
.lg-slide.is-on {
  position: relative;
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity .4s var(--lg-ease), transform .4s var(--lg-ease), visibility 0s;
}
.lg-slide h2 {
  font-family: var(--lg-font-display);
  font-weight: 800;
  font-size: 34px;
  line-height: 1.02;
  letter-spacing: -.01em;
  color: var(--lg-text);
  margin: 0 auto 10px;
  max-width: 440px;
  text-wrap: balance;
}
.lg-slide h2 em { font-style: normal; color: var(--lg-orange-ink); }
.lg-slide p {
  margin: 0 auto;
  max-width: 400px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--lg-muted);
}
.lg-dots {
  display: flex;
  justify-content: center;
  gap: 2px;
  margin-top: 18px;
}
.lg-dot {
  width: 28px; height: 28px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 999px;
  transition: width .35s var(--lg-ease);
}
.lg-dot::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 999px;
  background: #d9d0c3;
  transition: width .35s var(--lg-ease), background-color .35s ease;
}
.lg-dot[aria-current="true"] { width: 44px; }
.lg-dot[aria-current="true"]::before { width: 26px; background: var(--lg-orange); }
.lg-dot:hover::before { background: var(--lg-orange-2); }
.lg-dot:focus-visible { outline: none; box-shadow: var(--lg-ring); }
.lg-dots { align-items: center; }
.lg-pause {
  width: 28px; height: 28px;
  display: grid;
  place-items: center;
  margin-right: 6px;
  padding: 0;
  border: 1px solid var(--lg-border);
  border-radius: 999px;
  background: var(--lg-card);
  color: var(--lg-muted);
  font-size: 14px;
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease;
}
.lg-pause:hover { color: var(--lg-text); border-color: #d9d0c3; }
.lg-pause:focus-visible { outline: none; box-shadow: var(--lg-ring); }
.lg-btn, .lg-link, .lg-eye, .lg-dot, .lg-pause, .lg-form-side .toggle-option {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

/* ---------- celular (bloco copiado de ivici-site/css/index.css) ---------- */
.phone {
  position: relative;
  width: 292px;
  height: 628px;
  background: #050507;
  border-radius: 46px;
  border: 2px solid #2a2a32;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.04),
    inset 0 4px 8px rgba(0,0,0,0.6),
    0 40px 80px rgba(0,0,0,0.6),
    0 0 60px rgba(242,101,34,0.18);
  padding: 11px;
  z-index: 10;
  transform: rotate(-6deg) translateY(-20px);
  animation:
    heroPhoneIn 0.78s cubic-bezier(0.22, 1, 0.36, 1) 0.22s both,
    phoneFloat 4s ease-in-out 1s infinite alternate;
}
@keyframes heroPhoneIn {
  from { opacity: 0; filter: blur(5px); }
  to { opacity: 1; filter: none; }
}
@keyframes phoneFloat {
  from { transform: rotate(-6deg) translateY(-30px); }
  to   { transform: rotate(-6deg) translateY(-10px); }
}
.phone::before {
  content: '';
  position: absolute;
  top: 14px; left: 50%;
  transform: translateX(-50%);
  width: 90px; height: 22px;
  background: #050507;
  border-radius: 0 0 14px 14px;
  z-index: 3;
}
.phone::after {
  content: '';
  position: absolute;
  top: 22px; left: 50%;
  transform: translateX(-50%);
  width: 7px; height: 7px;
  background: #15151a;
  border-radius: 50%;
  box-shadow: 26px 0 0 -2px #15151a;
  z-index: 4;
}

.screen {
  width: 100%;
  height: 100%;
  background: var(--d-bg);
  border-radius: 34px;
  overflow: hidden;
  color: var(--d-text);
  display: flex;
  flex-direction: column;
  font-family: 'Barlow', sans-serif;
  position: relative;
}

.s-header {
  background: linear-gradient(135deg, #F26522, #FF8C55);
  padding: 38px 14px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
}
.s-header .left { display: flex; align-items: center; gap: 8px; }
.s-header .title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.s-live {
  font-family: 'Barlow', sans-serif;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.18);
  padding: 3px 6px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.s-live .liveDot { width: 5px; height: 5px; background: #fff; border-radius: 50%; animation: pulse var(--pulse-duration) ease-in-out infinite; }
.s-header svg { width: 16px; height: 16px; stroke: #fff; fill: none; stroke-width: 1.6; }

.s-body {
  padding: 11px 11px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: none;
}
.s-body::-webkit-scrollbar {
  display: none;
}
.phone .s-body {
  gap: 6px;
  padding: 9px 10px 11px;
}

.s-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.s-card {
  background: var(--d-card);
  border: 1px solid var(--d-border);
  padding: 8px 9px;
  border-radius: 9px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.s-card .lab {
  font-size: 7.5px;
  color: var(--d-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
}
.s-card .val {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 15px;
  color: var(--d-text);
  line-height: 1;
  letter-spacing: -0.01em;
}
.s-card .val .cur {
  font-size: 9px;
  color: var(--d-muted);
  margin-right: 2px;
  font-weight: 600;
}
.s-card .delta {
  font-size: 8px;
  color: var(--d-green);
  font-weight: 600;
  margin-top: 1px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.s-card .delta.down { color: var(--d-red); }
.s-card .badge {
  font-size: 7.5px;
  background: var(--d-green-bg);
  color: var(--d-green);
  padding: 2px 6px;
  border-radius: 4px;
  align-self: flex-start;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  margin-top: 2px;
}

/* Gauge card — fixed layout */
.s-gauge {
  background: var(--d-card);
  border: 1px solid var(--d-border);
  border-radius: 9px;
  padding: 8px 9px 7px;
}
.s-gauge .head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}
.s-gauge .head .lab {
  font-size: 8px;
  color: var(--d-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}
.s-gauge .pill-simples {
  background: var(--orange);
  color: #fff;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 4px;
}
.gauge-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 2.4 / 1;
  margin-top: 2px;
}
.gauge-wrap.big { aspect-ratio: 2 / 1; margin-top: 4px; }
.gauge-wrap svg { width: 100%; height: 100%; display: block; overflow: visible; }
.gauge-center {
  position: absolute;
  left: 50%;
  bottom: 6px;
  transform: translateX(-50%);
  text-align: center;
  line-height: 1;
}
.gauge-center .v {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 16px;
  color: var(--d-text);
}
.gauge-center.big .v { font-size: 19px; letter-spacing: -0.01em; }
.gauge-center .v .cur { font-size: 9px; color: var(--d-muted); margin-right: 2px; }
.gauge-center.big .v .cur { font-size: 10px; }
.gauge-center .pct {
  font-family: 'Barlow', sans-serif;
  font-size: 8px;
  color: var(--orange);
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-top: 3px;
}
.gauge-center.big .pct { font-size: 9px; }
.gauge-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 7px;
  color: var(--d-muted);
  letter-spacing: 0.06em;
  padding: 0 6px;
  margin-top: 4px;
  font-weight: 500;
}
.gauge-foot .mid { color: var(--d-text); font-weight: 700; letter-spacing: 0.04em; }

/* Adiantamento de Lucro — gauge card (hero phone) */
.s-gauge-lucro {
  padding: 6px 7px 6px;
}
.s-gauge-lucro .gauge-wrap.big {
  margin-top: 2px;
}
.s-gauge-lucro .lucro-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 6px;
}
.s-gauge-lucro .lucro-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 9px;
  color: var(--d-text);
  letter-spacing: 0.02em;
  line-height: 1.2;
  max-width: 52%;
}
.s-gauge-lucro .lucro-actions {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 4px 5px;
  flex-shrink: 0;
}
.s-gauge-lucro .lucro-toggle {
  display: inline-flex;
  border: 1px solid var(--d-border);
  border-radius: 5px;
  padding: 1px;
  gap: 2px;
  font-size: 6.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.s-gauge-lucro .lucro-toggle span {
  padding: 2px 5px;
  border-radius: 4px;
  color: var(--d-muted);
  cursor: default;
}
.s-gauge-lucro .lucro-toggle span.active {
  border: 1px solid var(--orange);
  color: var(--orange);
}
.s-gauge-lucro .lucro-filter {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 5px;
  border-radius: 5px;
  border: 1px solid var(--d-border);
  background: transparent;
  color: var(--d-muted);
  font-family: 'Barlow', sans-serif;
  font-size: 6.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: default;
}
.s-gauge-lucro .lucro-filter svg {
  width: 9px;
  height: 9px;
  stroke: currentColor;
  fill: none;
}
.s-gauge-lucro .lucro-filter .chev {
  font-size: 7px;
  opacity: 0.85;
  margin-left: 1px;
}
.s-gauge-lucro .lucro-rule {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--orange), transparent);
  margin: 0 0 4px;
  opacity: 0.95;
}
.s-gauge-lucro .lucro-center .v {
  font-size: 17px;
}
.s-gauge-lucro .lucro-period {
  font-family: 'Barlow', sans-serif;
  font-size: 7px;
  color: var(--d-muted);
  font-weight: 500;
  letter-spacing: 0.06em;
  margin-top: 4px;
}
.s-gauge-lucro .gauge-foot-lucro {
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 6px;
  margin-top: 5px;
  padding: 0 2px;
  line-height: 1.25;
}
.s-gauge-lucro .lucro-foot-left {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 6px;
  color: var(--d-muted);
  letter-spacing: 0.03em;
}
.s-gauge-lucro .lucro-foot-left strong {
  color: var(--d-text);
  font-weight: 800;
  letter-spacing: 0.02em;
}
.s-gauge-lucro .lucro-foot-pct {
  flex: 0 0 42%;
  text-align: right;
  font-family: 'Barlow', sans-serif;
  font-size: 6px;
  font-weight: 700;
  color: var(--orange);
  letter-spacing: 0.03em;
}

/* Sparkline card */
.s-spark {
  background: var(--d-card);
  border: 1px solid var(--d-border);
  border-radius: 9px;
  padding: 9px 10px 6px;
}
.spark-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}
.spark-head .lab {
  font-size: 8px;
  color: var(--d-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}
.spark-head .trend {
  font-size: 8.5px;
  color: var(--d-green);
  font-weight: 700;
  letter-spacing: 0.04em;
}
.s-spark svg {
  width: 100%;
  height: 32px;
  display: block;
}


/* ---------- ajustes do celular no login ---------- */
.lg-stage .phone { transform: rotate(-6deg); }
@keyframes phoneFloat {
  from { transform: rotate(-6deg) translateY(-10px); }
  to   { transform: rotate(-6deg) translateY(10px); }
}
.lg-stage .s-card .badge { white-space: nowrap; }

/* ---------- responsivo ---------- */
@media (max-width: 1100px) {
  .lg-shell { grid-template-columns: 1fr 1fr; }
  .lg-phone-scale { transform: scale(.66); margin: -110px 0; }
  .lg-float { min-width: 0; }
  .lg-float.pos-a { left: 3%; }
  .lg-float.pos-b { right: 3%; }
}
@media (max-width: 900px) {
  .lg-page { padding: 16px; align-items: flex-start; }
  .lg-shell { grid-template-columns: 1fr; min-height: 0; max-width: 480px; padding: 8px; }
  .lg-showcase { display: none; }
  .lg-form-side { padding: 36px 20px 28px; }
  .lg-title { font-size: 38px; }
}
@media (max-width: 380px) {
  .lg-title { font-size: 34px; }
}

/* ---------- movimento reduzido ---------- */
@media (prefers-reduced-motion: reduce) {
  .lg-shell,
  .lg-stagger > *,
  .lg-stage .blob,
  .lg-stage .phone,
  .lg-float.is-on .lg-float-body,
  .liveDot { animation: none !important; }
  .lg-float, .lg-slide, .lg-dot::before, .lg-form-side .toggle-thumb { transition-duration: .01ms !important; transition-delay: 0s !important; }
}

/* ---------- ajuste por altura da tela (notebooks) ---------- */
@media (min-width: 901px) {
  .lg-page { padding: 24px; }
  .lg-shell { min-height: 0; height: min(760px, calc(100dvh - 48px)); }
  .lg-form-side { overflow-y: auto; }
  .lg-stage { min-height: 0; overflow: hidden; }
}
@media (min-width: 901px) and (max-height: 820px) {
  .lg-phone-scale { transform: scale(.6); margin: -126px 0; }
  .lg-form-side { padding: 24px 40px; }
  .lg-logo { margin-bottom: 18px; }
  .lg-title { font-size: 38px; }
  .lg-sub { margin-bottom: 18px; }
  .lg-form-side .toggle-container { margin-bottom: 18px; }
  .lg-form-side .form-group { margin-bottom: 14px; }
  .lg-input { height: 46px; }
  .lg-btn { min-height: 46px; }
  .lg-divider { margin: 16px 0; }
  .lg-foot { margin-top: 14px; }
  .lg-slides { min-height: 92px; }
  .lg-slide h2 { font-size: 30px; }
  .lg-caption { padding-bottom: 18px; }
  .lg-dots { margin-top: 10px; }
}
@media (min-width: 901px) and (max-height: 680px) {
  .lg-shell { height: calc(100dvh - 32px); }
  .lg-page { padding: 16px; }
  .lg-phone-scale { transform: scale(.5); margin: -157px 0; }
  .lg-foot { display: none; }
  .lg-sub { display: none; }
  .lg-title { margin-bottom: 18px; }
  .lg-slide p { display: none; }
  .lg-slides { min-height: 64px; }
}

/* ==========================================================================
   Cenas da vitrine (v3.1): celular grande no slide 1 + modais empilhados
   ========================================================================== */
.lg-stage { overflow: hidden; }
.lg-scene {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .45s var(--lg-ease), visibility 0s linear .45s;
}
.lg-scene.is-on { opacity: 1; visibility: visible; transition: opacity .45s var(--lg-ease), visibility 0s; }

/* slide 1: celular grande, saindo pela base do painel */
.lg-scene--phone { place-items: start center; }
.lg-scene--phone .blob { width: 380px; height: 380px; }
.lg-scene--phone .blob-1 { top: 4%; right: 6%; }
.lg-scene--phone .blob-2 { bottom: -10%; left: 4%; }
.lg-scene--phone .lg-phone-scale {
  position: absolute;
  top: 28px;
  left: 50%;
  margin: 0;
  transform: translateX(-50%) scale(var(--phone-scale, .96));
  transform-origin: top center;
}
.lg-stage::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 72px;
  z-index: 6;
  background: linear-gradient(180deg, rgba(253, 250, 246, 0), var(--lg-panel));
  pointer-events: none;
}
.lg-scene--phone .lg-float.pos-a { top: 16%; left: 4%; }
.lg-scene--phone .lg-float.pos-b { top: 52%; bottom: auto; right: 4%; }

/* pilha de modais (estilo AbacatePay) */
.lg-stack {
  position: relative;
  width: 520px;
  height: 440px;
  transform: scale(var(--stack-fit, var(--stack-scale, 1)));
  flex: none;
}
.lg-modal {
  position: absolute;
  width: 300px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--lg-border);
  border-radius: 18px;
  box-shadow: 0 30px 60px -24px rgba(26, 26, 29, .28), 0 2px 6px rgba(26, 26, 29, .05);
  font-family: var(--lg-font);
  color: var(--lg-text);
  font-variant-numeric: tabular-nums;
}
.lg-modal--back {
  top: 14px; right: 6px;
  transform: rotate(4deg);
  opacity: .9;
}
.lg-modal--front {
  bottom: 18px; left: 10px;
  width: 316px;
  transform: rotate(-3deg);
}
.lg-modal--wide { width: 356px; }
.lg-scene.is-on .lg-modal--front { animation: lgModalIn .7s var(--lg-ease) .1s both; }
.lg-scene.is-on .lg-modal--back { animation: lgModalBackIn .7s var(--lg-ease) both; }
@keyframes lgModalIn {
  from { opacity: 0; transform: translateY(28px) rotate(-7deg); }
  to   { opacity: 1; transform: rotate(-3deg); }
}
@keyframes lgModalBackIn {
  from { opacity: 0; transform: translate(12px, -10px) rotate(8deg); }
  to   { opacity: .9; transform: rotate(4deg); }
}

.md-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.md-title { font-family: var(--lg-font-display); font-weight: 800; font-size: 20px; line-height: 1.1; }
.md-sub { font-size: 12px; font-weight: 600; color: var(--lg-muted); }
.md-x { font-size: 20px; line-height: 1; color: var(--lg-muted); }
.md-chip {
  flex: none;
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 999px;
  white-space: nowrap;
}
.md-chip.is-ok { color: #15803d; background: rgba(22, 163, 74, .12); }
.md-chip.is-warn { color: var(--lg-orange-ink); background: var(--lg-orange-soft); }
.md-row { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; font-size: 13px; color: var(--lg-muted); }
.md-row b { font-weight: 700; color: var(--lg-text); text-align: right; }
.md-total { padding-top: 8px; font-size: 14px; color: var(--lg-text); }
.md-total b { font-family: var(--lg-font-display); font-size: 20px; color: var(--lg-orange-ink); }
.md-field { margin-bottom: 10px; }
.md-lab { display: block; margin-bottom: 4px; font-size: 12px; font-weight: 600; color: var(--lg-muted); }
.md-val {
  display: block;
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 600;
  background: var(--lg-panel);
  border: 1px solid var(--lg-border);
  border-radius: 10px;
}
.md-val small { display: block; margin-top: 2px; font-size: 11px; font-weight: 500; color: var(--lg-muted); }
.md-sep { height: 1px; margin: 10px 0; background: var(--lg-border); }
.md-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  margin-top: 14px;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 999px;
}
.md-btn--primary { color: #fff; background: var(--lg-orange-ink); }
.md-btn--ghost { min-height: 34px; margin-top: 0; font-size: 12px; color: var(--lg-text); border: 1px solid var(--lg-border); }
.md-btn--sm { min-height: 32px; margin-top: 0; padding: 0 14px; font-size: 12px; }
.md-actions { display: flex; gap: 8px; margin-top: 12px; }
.md-actions .md-btn { flex: 1; }
.md-big { font-family: var(--lg-font-display); font-weight: 800; font-size: 30px; line-height: 1; }
.md-big small { display: block; margin-top: 4px; font-family: var(--lg-font); font-size: 12px; font-weight: 500; color: var(--lg-muted); }
.md-bar { height: 8px; margin: 12px 0 8px; background: var(--d-track); border-radius: 999px; overflow: hidden; }
.md-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--lg-orange), var(--lg-orange-2)); border-radius: inherit; }
.md-amount { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--lg-muted); }
.md-amount b { font-family: var(--lg-font-display); font-weight: 800; font-size: 30px; color: var(--lg-text); }
.md-note { margin-top: 6px; font-size: 12px; color: var(--lg-muted); }
.md-tx {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  grid-template-areas: "ico desc val" "ico desc chip";
  column-gap: 10px;
  row-gap: 3px;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid var(--lg-border);
}
.md-tx-ico {
  grid-area: ico;
  width: 28px; height: 28px;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: var(--lg-muted);
  background: var(--lg-panel);
  border-radius: 8px;
}
.md-tx-ico.is-in { color: #15803d; background: rgba(22, 163, 74, .12); }
.md-tx-desc { grid-area: desc; font-size: 13px; font-weight: 600; line-height: 1.25; }
.md-tx-desc small { display: block; font-size: 11px; font-weight: 500; color: var(--lg-muted); }
.md-tx-val { grid-area: val; justify-self: end; font-size: 13px; font-weight: 700; }
.md-tx-val.is-in { color: #15803d; }
.md-tx .md-chip { grid-area: chip; justify-self: end; }
.md-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 12px; font-size: 12px; color: var(--lg-muted); }
.md-check { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 13px; font-weight: 600; color: var(--lg-muted); }
.md-check.is-done, .md-check.is-now { color: var(--lg-text); }
.md-dot {
  flex: none;
  width: 22px; height: 22px;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
  color: var(--lg-muted);
  border: 1.5px solid var(--lg-border);
  border-radius: 999px;
}
.md-check.is-done .md-dot { color: #fff; background: #16a34a; border-color: #16a34a; }
.md-check.is-now .md-dot { color: #fff; background: var(--lg-orange-ink); border-color: var(--lg-orange-ink); }
.md-dot.is-warn { color: var(--lg-orange-ink); background: var(--lg-orange-soft); border-color: transparent; }
.md-alert { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; padding: 10px 12px; font-size: 12px; line-height: 1.4; background: var(--lg-panel); border: 1px solid var(--lg-border); border-radius: 12px; }

/* escalas por tamanho do painel */
@media (max-width: 1240px) { :root { --stack-scale: .9; } }
@media (max-width: 1100px) { :root { --stack-scale: .78; --phone-scale: .82; } }
@media (min-width: 901px) and (max-height: 820px) { :root { --stack-scale: .9; --phone-scale: .84; } }
@media (min-width: 901px) and (max-height: 680px) { :root { --stack-scale: .8; --phone-scale: .74; } }

@media (prefers-reduced-motion: reduce) {
  .lg-scene, .lg-scene.is-on { transition-duration: .01ms; }
  .lg-scene.is-on .lg-modal--front,
  .lg-scene.is-on .lg-modal--back { animation: none; }
}

/* rolagem interna do formulário (telas baixas): barra fina */
.lg-form-side { scrollbar-width: thin; scrollbar-color: #d9d0c3 transparent; }
.lg-form-side::-webkit-scrollbar { width: 8px; }
.lg-form-side::-webkit-scrollbar-thumb { background: #d9d0c3; border-radius: 999px; }
.lg-form-side::-webkit-scrollbar-track { background: transparent; }
@media (min-width: 901px) and (max-height: 620px) {
  .lg-logo { margin-bottom: 12px; }
  .lg-title { font-size: 32px; margin-bottom: 12px; }
  .lg-form-side .toggle-container { margin-bottom: 12px; }
  .lg-form-side .form-group { margin-bottom: 10px; }
  .lg-divider { margin: 10px 0; }
}

/* ==========================================================================
   Recuperar senha (usa a mesma casca do login)
   ========================================================================== */
.lg-group { margin-bottom: 18px; }
.lg-group .lg-label { display: block; margin-bottom: 8px; }
.lg-field { position: relative; }
.lg-field > .bi:first-child {
  position: absolute;
  left: 16px; top: 50%;
  transform: translateY(-50%);
  font-size: 17px;
  color: var(--lg-muted);
  pointer-events: none;
  transition: color .2s ease;
}
.lg-field:focus-within > .bi:first-child { color: var(--lg-orange-ink); }
.lg-page--recuperar .lg-btn-primary { margin-top: 4px; }
.lg-page--recuperar #formRecuperaSenha2 { animation: lgRise .35s var(--lg-ease) both; }

/* Script8.js pinta o thumb com cor inline (tema antigo) */
.lg-page--recuperar .toggle-thumb { background-color: var(--lg-card) !important; }

/* alertas Bootstrap que Script8.js injeta em #divMSG */
.lg-page--recuperar #divMSG .alert {
  margin-bottom: 16px;
  padding: 12px 44px 12px 14px;
  font-size: 14px;
  border-radius: var(--lg-r-input);
}

/* vitrine estática: sem animação de entrada */
.lg-showcase--static .lg-modal--front,
.lg-showcase--static .lg-modal--back { animation: none !important; }
.md-code { display: flex; gap: 6px; margin: 4px 0 6px; }
.md-code span {
  flex: 1;
  height: 44px;
  display: grid;
  place-items: center;
  font-family: var(--lg-font-display);
  font-weight: 800;
  font-size: 24px;
  background: var(--lg-panel);
  border: 1px solid var(--lg-border);
  border-radius: 10px;
}
.md-val--pass { letter-spacing: .2em; }

/* recuperar senha: o subtítulo explica o passo, fica visível mesmo em telas baixas */
.lg-page--recuperar .lg-sub { display: block !important; margin-bottom: 18px; }

/* ==========================================================================
   Vitrine v4: caminho do menu, agenda, stats, QR, documentos, setas
   ========================================================================== */
.md-crumb {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: -4px 0 10px;
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 600;
  color: var(--lg-orange-ink);
  background: var(--lg-orange-soft);
  border-radius: 999px;
}
.lg-modal--back .md-crumb { margin-bottom: 12px; }

.md-chip:not(.is-ok):not(.is-warn) { color: var(--lg-muted); background: #f1ece4; }

.md-qr {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  padding: 9px 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--lg-muted);
  background: var(--lg-panel);
  border: 1px dashed #d9d0c3;
  border-radius: 10px;
}
.md-qr .bi { flex: none; font-size: 22px; color: var(--lg-orange-ink); }

.md-doc {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 600;
  background: var(--lg-panel);
  border: 1px solid var(--lg-border);
  border-radius: 10px;
}
.md-doc .bi { font-size: 22px; color: var(--lg-danger); }
.md-doc small { display: block; font-size: 11px; font-weight: 500; color: var(--lg-muted); }

.md-seg {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  margin-bottom: 8px;
  padding: 3px;
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  color: var(--lg-muted);
  background: #f4efe7;
  border-radius: 999px;
}
.md-seg span { padding: 4px 0; border-radius: 999px; }
.md-seg .is-on { color: var(--lg-text); background: #fff; box-shadow: 0 1px 3px rgba(26, 26, 29, .12); }

.md-cal {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid var(--lg-border);
}
.md-cal:last-child { border-bottom: 0; }
.md-cal-d { font-size: 10px; font-weight: 600; line-height: 1.1; text-align: center; color: var(--lg-muted); }
.md-cal-d b { display: block; font-family: var(--lg-font-display); font-size: 18px; color: var(--lg-text); }
.md-cal-t { font-size: 13px; font-weight: 600; line-height: 1.25; }
.md-cal-t small { display: block; font-size: 11px; font-weight: 500; color: var(--lg-muted); }
.md-cal.is-today { margin: 0 -8px; padding: 7px 8px; background: var(--lg-orange-soft); border-radius: 10px; border-bottom-color: transparent; }
.md-cal.is-today .md-cal-d b { color: var(--lg-orange-ink); }

.md-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 10px; }
.md-stats span {
  padding: 8px 6px;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  color: var(--lg-muted);
  background: var(--lg-panel);
  border: 1px solid var(--lg-border);
  border-radius: 10px;
}
.md-stats b { display: block; font-family: var(--lg-font-display); font-size: 22px; color: var(--lg-text); }

.md-tx--doc .md-tx-ico .bi { font-size: 14px; }
.md-tx--doc:not(:has(.md-tx-val)) { grid-template-areas: "ico desc chip" "ico desc chip"; }
.md-btn--block { width: 100%; margin-top: 12px; min-height: 36px; }

/* setas do carrossel */
.lg-arrow {
  width: 28px; height: 28px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--lg-muted);
  font-size: 14px;
  border-radius: 999px;
  cursor: pointer;
  touch-action: manipulation;
  transition: color .2s ease, background-color .2s ease;
}
.lg-arrow:hover { color: var(--lg-text); background: #f1ece4; }
.lg-arrow:focus-visible { outline: none; box-shadow: var(--lg-ring); }

/* pilha maior que o painel: centraliza a trilha do grid (evita corte só à direita) */
.lg-scene { justify-content: center; align-content: center; }

/* aviso legal do login: sempre visível, inclusive em telas baixas */
.lg-foot.lg-legal { display: block !important; margin-top: 16px; }
.lg-legal .lg-link, .terms-text .lg-link { font-size: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
