/* ======================================================
   La Bella · Painel Operacional
   Paleta champagne / dourado / verde-sálvia sobre creme
   ====================================================== */

:root {
  --lb-ink: #332F26;
  --lb-green-deep: #26331F;
  --lb-green: #2F4327;
  --lb-green-soft: #3A4A32;
  --lb-green-sage: #6E8A5E;
  --lb-muted: #8A7F5E;
  --lb-gold: #E4B43A;
  --lb-gold-deep: #8C6A1F;
  --lb-gold-mid: #C89A3C;
  --lb-red: #A34430;
  --lb-glass: rgba(255,255,255,0.5);
  --lb-glass-strong: rgba(255,255,255,0.55);
  --lb-glass-border: rgba(255,255,255,0.7);
  --lb-shadow: 0 10px 30px rgba(120,95,20,0.08);

  /* 🔤 Escala global de fontes. 1 = original, 1.3 = +30%.
     Vale pra TODO texto, menos os números clássicos (Marcellus). */
  --fs: 1.3;
}

* { box-sizing: border-box; }

html, body {
  background: #F7F1E2; /* champanhe base — cobre a barra de status e o overscroll */
}

body {
  margin: 0;
  -webkit-font-smoothing: antialiased;
  font-family: 'Manrope', sans-serif;
  color: var(--lb-ink);
}

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: rgba(180,150,90,0.35); border-radius: 8px; }

@keyframes orbPulse {
  0%   { box-shadow: 0 0 0 0 rgba(228,180,58,0.45), 0 0 0 0 rgba(47,67,39,0.25); }
  70%  { box-shadow: 0 0 0 18px rgba(228,180,58,0), 0 0 0 30px rgba(47,67,39,0); }
  100% { box-shadow: 0 0 0 0 rgba(228,180,58,0), 0 0 0 0 rgba(47,67,39,0); }
}
@keyframes orbSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes orbSpinRev {
  from { transform: rotate(360deg); }
  to   { transform: rotate(0deg); }
}
@keyframes orbFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-7px); }
}
@keyframes orbHalo {
  0%, 100% { opacity: 0.35; transform: scale(1); }
  50%      { opacity: 0.7;  transform: scale(1.12); }
}
@keyframes orbBreathe {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.06); }
}
@keyframes starTwinkle {
  0%, 100% { opacity: 0.85; transform: scale(1) rotate(0deg); }
  50%      { opacity: 1;    transform: scale(1.18) rotate(8deg); }
}

/* ================= PAGE ================= */
.lb-page {
  min-height: 100vh;
  width: 100%;
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(228,180,58,0.16), transparent 60%),
    radial-gradient(1000px 700px at 100% 0%, rgba(47,67,39,0.12), transparent 55%),
    linear-gradient(165deg, #F7F1E2 0%, #F1E7D2 45%, #F6EFDD 100%);
  padding: 28px clamp(16px, 3vw, 48px) 64px;
}

/* ================= HEADER ================= */
.lb-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}
.lb-brand { display: flex; align-items: center; gap: 18px; }
.lb-logo {
  height: 52px; width: auto; object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(120,95,20,0.15));
  /* Aumenta a logo só visualmente (transform não reflui o layout),
     então o divisor e os textos ao lado NÃO se mexem. */
  transform: scale(1.3);
  transform-origin: center;
}
.lb-brand-divider {
  width: 1px; height: 38px;
  background: linear-gradient(180deg, transparent, rgba(120,100,50,0.35), transparent);
}
.lb-brand-titlerow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.lb-brand-title {
  font-family: 'Playfair Display', serif;
  font-size: calc(19px * var(--fs)); font-weight: 600; color: var(--lb-green-deep); letter-spacing: 0.2px;
}
.lb-brand-sub {
  font-family: 'Cormorant Garamond', serif; font-style: italic;
  font-size: calc(15px * var(--fs)); color: var(--lb-muted); margin-top: 1px;
}

.lb-header-actions { display: flex; align-items: center; gap: 14px; }
.lb-chip {
  display: flex; align-items: center; gap: 9px;
  background: var(--lb-glass-strong);
  backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid var(--lb-glass-border);
  border-radius: 14px; padding: 9px 16px;
  box-shadow: 0 6px 18px rgba(120,95,20,0.07);
}
.lb-chip-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--lb-green-sage);
  box-shadow: 0 0 0 3px rgba(110,138,94,0.18);
}
.lb-chip-text { font-size: calc(13px * var(--fs)); font-weight: 600; color: var(--lb-green-soft); }

.lb-icon-btn {
  position: relative; width: 44px; height: 44px; border-radius: 14px;
  background: var(--lb-glass-strong);
  backdrop-filter: blur(18px);
  border: 1px solid var(--lb-glass-border);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(120,95,20,0.07);
  cursor: pointer; padding: 0;
}
.lb-icon-badge {
  position: absolute; top: 9px; right: 9px;
  width: 8px; height: 8px; border-radius: 50%;
  background: #C24E3A; border: 1.5px solid #F7F1E2;
}
.lb-avatar {
  width: 44px; height: 44px; border-radius: 14px; overflow: hidden;
  border: 1px solid rgba(255,255,255,0.8);
  box-shadow: 0 6px 18px rgba(120,95,20,0.1);
  background: linear-gradient(135deg, #E4B43A, #8C8C88);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif; font-weight: 700; color: #2B2A26; font-size: calc(15px * var(--fs));
}

/* ================= LAYOUT ================= */
.lb-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 22px;
  align-items: start;
}
.lb-main { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
/* Cada view (Operacional/Financeiro) reempilha suas seções com o MESMO respiro
   do .lb-main — sem isto os cards ficam grudados (gap 0), pois viram netos.
   :not([hidden]) é ESSENCIAL: senão o display:flex sobrescreve o `hidden`
   da view inativa e as duas aparecem empilhadas. */
.lb-view:not([hidden]) { display: flex; flex-direction: column; gap: 22px; }
.lb-sidebar { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 18px; }

/* ================= CARD BASE ================= */
.lb-card {
  background: var(--lb-glass);
  backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--lb-glass-border);
  border-radius: 22px;
  padding: 22px 24px;
  box-shadow: var(--lb-shadow);
  min-width: 0;
}
.lb-card-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 16px;
}
.lb-card-head--tight { margin-bottom: 6px; }
.lb-card-title {
  font-family: 'Playfair Display', serif; font-size: calc(17px * var(--fs)); font-weight: 600; color: var(--lb-green-deep);
}
.lb-card-title--sm { font-size: calc(15px * var(--fs)); margin-bottom: 12px; }
.lb-card-note {
  font-family: 'Cormorant Garamond', serif; font-style: italic; color: var(--lb-muted); font-size: calc(14px * var(--fs));
}
.lb-card-caption { font-size: calc(12px * var(--fs)); color: var(--lb-muted); margin-bottom: 6px; }
.lb-section-title {
  font-family: 'Playfair Display', serif; font-size: calc(17px * var(--fs)); font-weight: 600;
  color: var(--lb-green-deep); margin-bottom: 14px;
}
.lb-pill {
  font-size: calc(13px * var(--fs)); font-weight: 700; color: var(--lb-gold-deep);
  background: rgba(228,180,58,0.16); padding: 4px 10px; border-radius: 20px;
}

/* ================= KPIs ================= */
.lb-kpi-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 18px;
}
.lb-kpi {
  background: var(--lb-glass);
  backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--lb-glass-border);
  border-radius: 22px;
  padding: 20px 20px 16px;
  box-shadow: var(--lb-shadow);
  position: relative; overflow: hidden;
}
.lb-kpi-top { display: flex; align-items: center; justify-content: space-between; }
.lb-kpi-icon {
  width: 38px; height: 38px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
}
.lb-kpi-delta { font-size: calc(12px * var(--fs)); font-weight: 700; padding: 4px 9px; border-radius: 20px; }
/* Número clássico de destaque — NÃO escala (fonte Marcellus) */
.lb-kpi-value {
  font-family: 'Marcellus', serif; font-size: 26px; font-weight: 400;
  color: var(--lb-green-deep); margin-top: 14px; line-height: 1; letter-spacing: 0.2px;
}
.lb-kpi-name { font-size: calc(13px * var(--fs)); color: var(--lb-muted); margin-top: 6px; font-weight: 600; }
.lb-kpi-spark { margin-top: 10px; display: block; }

/* ================= FUNNEL ================= */
.lb-two-col { display: grid; grid-template-columns: 1.05fr 1fr; gap: 18px; }
.lb-funnel { display: flex; flex-direction: column; gap: 11px; }
.lb-funnel-row-head {
  display: flex; justify-content: space-between; font-size: calc(13px * var(--fs)); margin-bottom: 5px;
}
.lb-funnel-label { font-weight: 700; color: var(--lb-green-soft); }
.lb-funnel-value { color: var(--lb-muted); font-weight: 600; }
.lb-funnel-conv { font-weight: 700; }
.lb-funnel-track {
  height: 14px; border-radius: 8px; background: rgba(140,120,60,0.1); overflow: hidden;
}
.lb-funnel-fill { height: 100%; border-radius: 8px; }

/* ================= WEEK CHART ================= */
.lb-week-chart { display: block; overflow: visible; }
.lb-week-labels { display: flex; justify-content: space-between; margin-top: 2px; }
.lb-week-labels span { font-size: calc(11px * var(--fs)); color: var(--lb-muted); font-weight: 600; }

/* ================= AGENTS ================= */
.lb-agents {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px;
}
.lb-agent {
  background: var(--lb-glass);
  backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--lb-glass-border);
  border-radius: 22px; padding: 20px; box-shadow: var(--lb-shadow);
}
.lb-agent-head { display: flex; align-items: center; gap: 12px; }
.lb-agent-avatar {
  width: 44px; height: 44px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif; font-weight: 700; color: #fff; font-size: calc(16px * var(--fs));
}
.lb-agent-name { font-weight: 700; font-size: calc(14.5px * var(--fs)); color: var(--lb-green-deep); }
.lb-agent-status { display: flex; align-items: center; gap: 6px; margin-top: 2px; }
.lb-agent-status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--lb-green-sage); }
.lb-agent-status-text { font-size: calc(12px * var(--fs)); color: var(--lb-muted); font-weight: 600; }
.lb-agent-metrics { display: flex; flex-direction: column; gap: 9px; margin-top: 16px; }
.lb-agent-metric { display: flex; justify-content: space-between; font-size: calc(12.5px * var(--fs)); }
.lb-agent-metric-label { color: var(--lb-muted); font-weight: 600; }
.lb-agent-metric-value { color: var(--lb-ink); font-weight: 700; }
.lb-agent-track {
  height: 8px; border-radius: 6px; background: rgba(140,120,60,0.1);
  margin-top: 14px; overflow: hidden;
}
.lb-agent-fill { height: 100%; border-radius: 6px; background: linear-gradient(90deg, #C89A3C, #E4B43A); }
.lb-agent-cap { font-size: calc(11px * var(--fs)); color: var(--lb-muted); margin-top: 5px; font-weight: 600; }

/* ================= PRIORITIES ================= */
.lb-priorities { display: flex; flex-direction: column; gap: 2px; }
.lb-priority {
  display: flex; align-items: center; gap: 14px; padding: 13px 6px;
  border-bottom: 1px solid rgba(140,120,60,0.12);
}
.lb-priority:last-child { border-bottom: none; }
.lb-priority-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
/* Avatar (silhueta) do cliente do WhatsApp — cor por contato + badge de urgência */
.lb-priority-avatar {
  position: relative; width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
  align-self: flex-start; margin-top: 1px; /* avatar no topo, resto do row centralizado */
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid rgba(255,255,255,0.7);
  box-shadow: 0 3px 10px rgba(120,95,20,0.18), inset 0 1px 0 rgba(255,255,255,0.4);
}
.lb-priority-badge {
  position: absolute; right: -1px; bottom: -1px; width: 12px; height: 12px;
  border-radius: 50%; border: 2px solid #F7F1E2;
}
.lb-priority-body { min-width: 0; flex: 1; }
.lb-priority-client { font-weight: 700; font-size: calc(14px * var(--fs)); color: var(--lb-green-deep); }
.lb-priority-reason { font-size: calc(12.5px * var(--fs)); color: var(--lb-muted); margin-top: 2px; }
.lb-priority-urgency {
  font-size: calc(11.5px * var(--fs)); font-weight: 700; padding: 5px 11px; border-radius: 20px; flex-shrink: 0;
}
.lb-priority-time {
  font-size: calc(12px * var(--fs)); color: var(--lb-muted); font-weight: 600;
  width: 52px; text-align: right; flex-shrink: 0;
}

/* ================= REVENUE / DONUT ================= */
.lb-revenue { display: grid; grid-template-columns: 180px 1fr; gap: 28px; align-items: center; }
.lb-donut {
  width: 180px; height: 180px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.6);
}
.lb-donut-hole {
  width: 112px; height: 112px; border-radius: 50%; background: #F7F1E2;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 0 10px; box-sizing: border-box; line-height: 1.18;
  box-shadow: 0 4px 14px rgba(120,95,20,0.12);
}
/* Número clássico de destaque — NÃO escala (fonte Marcellus) */
.lb-donut-total {
  font-family: 'Marcellus', serif; font-size: 16px; font-weight: 400;
  color: var(--lb-green-deep); letter-spacing: 0.2px;
}
.lb-donut-label { font-size: calc(10.5px * var(--fs)); color: var(--lb-muted); font-weight: 700; letter-spacing: 0.3px; }
.lb-revenue-list { display: flex; flex-direction: column; gap: 11px; min-width: 0; }
.lb-revenue-item { display: flex; align-items: center; gap: 10px; }
.lb-revenue-swatch { width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0; }
.lb-revenue-name { font-size: calc(13px * var(--fs)); font-weight: 700; color: var(--lb-green-soft); flex: 1; min-width: 0; }
.lb-revenue-value { font-size: calc(13px * var(--fs)); font-weight: 700; color: var(--lb-green-deep); }
.lb-revenue-pct { font-size: calc(12px * var(--fs)); font-weight: 700; color: var(--lb-muted); width: 40px; text-align: right; }

/* ================= ORB / SIDEBAR ================= */
.lb-orb-card {
  padding: 28px 22px; border: 1px solid rgba(255,255,255,0.75);
  box-shadow: 0 12px 34px rgba(120,95,20,0.1);
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
/* flutuação suave da ORB inteira */
.lb-orb {
  position: relative; width: 120px; height: 120px; margin-bottom: 16px;
  animation: orbFloat 5.5s ease-in-out infinite;
}
/* halo pulsante atrás da ORB */
.lb-orb::before {
  content: ""; position: absolute; inset: -14px; border-radius: 50%;
  background: radial-gradient(circle, rgba(228,180,58,0.55), rgba(228,180,58,0) 68%);
  filter: blur(6px); z-index: 0;
  animation: orbHalo 3.4s ease-in-out infinite;
}
/* segundo anel, girando ao contrário, mais fino */
.lb-orb::after {
  content: ""; position: absolute; inset: -3px; border-radius: 50%;
  background: conic-gradient(from 90deg, rgba(110,138,94,0), #6E8A5E, rgba(228,180,58,0.9), rgba(110,138,94,0));
  opacity: 0.4; z-index: 0;
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 3px));
          mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 3px));
  animation: orbSpinRev 7s linear infinite;
}
.lb-orb-ring {
  position: absolute; inset: 0; border-radius: 50%; z-index: 1;
  background: conic-gradient(from 0deg, #E4B43A, #F5E2A8, #6E8A5E, #E4B43A);
  animation: orbSpin 9s linear infinite; opacity: 0.55; filter: blur(1px);
}
.lb-orb-core {
  position: absolute; inset: 10px; border-radius: 50%; z-index: 2;
  background: radial-gradient(circle at 32% 28%, #FBEFC9, #E4B43A 55%, #8C6A1F 100%);
  animation: orbPulse 2.6s ease-out infinite, orbBreathe 4.4s ease-in-out infinite;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 22px rgba(140,106,31,0.35);
}
/* estrela cintilando no centro */
.lb-orb-core svg { transform-origin: center; animation: starTwinkle 2.8s ease-in-out infinite; }

.lb-orb-title { font-family: 'Playfair Display', serif; font-size: calc(18px * var(--fs)); font-weight: 700; color: var(--lb-green-deep); }
.lb-orb-sub {
  font-family: 'Cormorant Garamond', serif; font-style: italic;
  font-size: calc(14px * var(--fs)); color: var(--lb-muted); margin-top: 2px;
}
.lb-orb-stats { width: 100%; display: flex; flex-direction: column; gap: 9px; margin-top: 20px; }
.lb-orb-stat {
  display: flex; justify-content: space-between; align-items: center;
  background: rgba(228,180,58,0.1); border-radius: 12px; padding: 10px 13px;
}
.lb-orb-stat-label { font-size: calc(12.5px * var(--fs)); font-weight: 600; color: #5B5238; }
.lb-orb-stat-value { font-size: calc(13.5px * var(--fs)); font-weight: 800; color: var(--lb-green-deep); }
.lb-orb-now {
  margin-top: 18px; width: 100%; font-size: calc(12px * var(--fs)); line-height: 1.5; color: var(--lb-muted);
  text-align: left; background: rgba(255,255,255,0.5);
  border: 1px solid var(--lb-glass-border); border-radius: 14px; padding: 12px 14px;
}
.lb-orb-now-tag { font-weight: 800; color: var(--lb-green-soft); }

/* ================= OCCUPANCY ================= */
.lb-occupancy { display: flex; flex-direction: column; gap: 10px; }
.lb-occupancy-row-head {
  display: flex; justify-content: space-between; font-size: calc(12px * var(--fs)); margin-bottom: 4px;
}
.lb-occupancy-label { font-weight: 700; color: var(--lb-green-soft); }
.lb-occupancy-pct { color: var(--lb-muted); font-weight: 600; }
.lb-occupancy-track {
  height: 7px; border-radius: 6px; background: rgba(140,120,60,0.1); overflow: hidden;
}
.lb-occupancy-fill { height: 100%; border-radius: 6px; }

/* ============ MENU FIXO · LIQUID GLASS (metas) ============ */
.lb-topbar {
  position: sticky; top: 10px; z-index: 60;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 9px 14px; margin-bottom: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,0.16), rgba(255,255,255,0.05));
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 22px;
  box-shadow: 0 12px 34px rgba(120,95,20,0.10), inset 0 1px 0 rgba(255,255,255,0.6);
}
.lb-topbar-title {
  flex: 0 0 auto; font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 13.5px;
  letter-spacing: 0.6px; color: #2B2A1E; cursor: pointer; white-space: nowrap;
  padding: 7px 13px; border-radius: 13px; border: 1px solid rgba(255,255,255,0.6);
  background: linear-gradient(135deg, #FBEFC9 0%, #E4B43A 55%, #C89A3C 100%); /* champanhe da ORB */
  box-shadow: 0 4px 12px rgba(228,180,58,0.35), inset 0 1px 0 rgba(255,255,255,0.65);
  transition: filter 0.15s ease, transform 0.1s ease;
}
.lb-topbar-title:hover { filter: brightness(1.05); }
.lb-topbar-title:active { transform: scale(0.97); }
/* Letreiro de aeroporto (motor em JS): passa sozinho, mas dá pra ARRASTAR
   pro lado pra achar a meta; um toque abre a edição. */
.lb-goals {
  flex: 1 1 240px; min-width: 0; overflow: hidden; padding: 2px; position: relative;
  touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: grab;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.lb-goals:active { cursor: grabbing; }
.lb-ticker-track {
  display: inline-flex; align-items: center; width: max-content;
  will-change: transform; backface-visibility: hidden; transform: translateZ(0);
}
.lb-ticker-seq { display: inline-flex; align-items: center; flex: 0 0 auto; }
.lb-ticker-sep {
  flex: 0 0 auto; margin: 0 12px; color: var(--lb-gold-mid); font-size: 12px; opacity: 0.75;
}
.lb-goal {
  display: flex; align-items: center; gap: 8px; flex: 0 0 auto;
  padding: 5px 12px 5px 6px; border-radius: 16px;
  background: rgba(255,255,255,0.45); border: 1px solid rgba(255,255,255,0.6);
  box-shadow: 0 3px 10px rgba(120,95,20,0.06);
}
.lb-gauge { flex: 0 0 auto; display: block; }
.lb-goal-info { display: flex; flex-direction: column; line-height: 1.2; }
.lb-goal-name { font-size: 11px; font-weight: 700; color: var(--lb-green-soft); white-space: nowrap; }
.lb-goal-nums { font-size: 11px; font-weight: 600; color: var(--lb-muted); white-space: nowrap; margin-top: 1px; }
.lb-goal-atual { font-weight: 800; color: var(--lb-green-deep); }
.lb-goal-sep { margin: 0 3px; opacity: 0.6; }
.lb-goal-meta {
  font-weight: 800; color: var(--lb-gold-deep); cursor: pointer;
  border-bottom: 1px dashed rgba(140,106,31,0.55); padding-bottom: 1px;
}
.lb-goal-meta:hover { color: var(--lb-gold-mid); }
.lb-goal-input {
  width: 66px; font-size: 11px; font-weight: 800; font-family: inherit;
  border: 1px solid var(--lb-gold-mid); border-radius: 6px; padding: 1px 4px;
  color: var(--lb-green-deep); background: #fff;
}

.lb-goal { cursor: pointer; }  /* sem hover/transition no letreiro — evita repintar e "agarrar" */

/* ============ POPUP · LIQUID GLASS (definir meta) ============ */
.lb-modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  background: rgba(40,35,20,0.20);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  animation: lbFade 0.18s ease;
}
.lb-modal-overlay[hidden] { display: none; }
.lb-modal {
  width: min(300px, 86vw); padding: 22px 22px 18px; border-radius: 24px; text-align: center;
  background: linear-gradient(180deg, rgba(255,255,255,0.30), rgba(255,255,255,0.12));
  backdrop-filter: blur(34px) saturate(190%); -webkit-backdrop-filter: blur(34px) saturate(190%);
  border: 1px solid rgba(255,255,255,0.65);
  box-shadow: 0 28px 64px rgba(120,95,20,0.30), inset 0 1px 0 rgba(255,255,255,0.8);
  animation: lbPop 0.2s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
@keyframes lbFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes lbPop { from { opacity: 0; transform: scale(0.94) translateY(6px); } to { opacity: 1; transform: scale(1) translateY(0); } }
.lb-modal-title {
  font-family: 'Playfair Display', serif; font-size: 18px; font-weight: 700; color: var(--lb-green-deep);
}
.lb-modal-sub {
  font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 14px;
  color: var(--lb-muted); margin-top: 2px; margin-bottom: 14px;
}
.lb-modal-input {
  width: 100%; text-align: center; font-family: 'Marcellus', serif; font-size: 26px;
  color: var(--lb-green-deep); background: rgba(255,255,255,0.55);
  border: 1px solid rgba(255,255,255,0.8); border-radius: 14px; padding: 10px 12px;
  box-shadow: inset 0 1px 4px rgba(120,95,20,0.08); outline: none;
}
.lb-modal-input:focus { border-color: var(--lb-gold-mid); box-shadow: 0 0 0 3px rgba(228,180,58,0.25); }
.lb-modal-actions { display: flex; gap: 10px; margin-top: 16px; }
.lb-modal-btn {
  flex: 1; padding: 11px 12px; border-radius: 14px; font-family: 'Manrope', sans-serif;
  font-size: 13.5px; font-weight: 700; cursor: pointer; border: 1px solid transparent;
  transition: filter 0.15s ease;
}
.lb-modal-btn:hover { filter: brightness(1.04); }
.lb-modal-cancel {
  background: rgba(255,255,255,0.45); border-color: rgba(255,255,255,0.7); color: var(--lb-green-soft);
}
.lb-modal-save {
  background: linear-gradient(90deg, #C89A3C, #E4B43A); color: #2B2A1E;
  box-shadow: 0 6px 16px rgba(228,180,58,0.35);
}

/* Painel com TODAS as metas */
.lb-modal-all { width: min(350px, 90vw); }
.lb-metas-list { display: flex; flex-direction: column; gap: 10px; margin: 6px 0 2px; text-align: left; }
.lb-metas-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.lb-metas-row label { font-size: 13.5px; font-weight: 700; color: var(--lb-green-soft); }
.lb-metas-input {
  width: 116px; text-align: center; font-family: 'Marcellus', serif; font-size: 18px;
  color: var(--lb-green-deep); background: rgba(255,255,255,0.55);
  border: 1px solid rgba(255,255,255,0.8); border-radius: 10px; padding: 6px 8px; outline: none;
}
.lb-metas-input:focus { border-color: var(--lb-gold-mid); box-shadow: 0 0 0 3px rgba(228,180,58,0.25); }

/* ============ TOGGLE Operacional / Financeiro (mesmo estilo do METAS) ============ */
.lb-viewbtn {
  flex: 0 0 auto; font-family: 'Manrope', sans-serif; font-weight: 800;
  font-size: 13px; letter-spacing: 0.4px; cursor: pointer; white-space: nowrap;
  padding: 7px 14px; border-radius: 13px; border: 1px solid rgba(255,255,255,0.6);
  color: var(--lb-gold-deep); background: rgba(255,255,255,0.42);
  transition: color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.lb-viewbtn:active { transform: scale(0.97); }
.lb-viewbtn.is-active {
  color: #2B2A1E;
  background: linear-gradient(135deg, #FBEFC9 0%, #E4B43A 55%, #C89A3C 100%);
  box-shadow: 0 4px 12px rgba(228,180,58,0.35), inset 0 1px 0 rgba(255,255,255,0.65);
}

/* ============ RODAPÉ (padrão La Bella · champanhe/glass) ============ */
.lb-footer {
  margin-top: 40px; padding: 26px 28px 20px; border-radius: 22px;
  background: var(--lb-glass);
  backdrop-filter: blur(20px) saturate(160%); -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--lb-glass-border);
  box-shadow: var(--lb-shadow);
}
.lb-footer-main { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.lb-footer-brand { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.lb-footer-logo {
  font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 19px;
  color: var(--lb-green-deep); letter-spacing: 0.3px;
}
.lb-footer-logo span { color: var(--lb-gold-deep); }
.lb-footer-tagline {
  font-family: 'Cormorant Garamond', serif; font-style: italic;
  font-size: calc(14px * var(--fs)); color: var(--lb-muted);
}
.lb-footer-contact { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; text-align: right; }
.lb-footer-owner { font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 12.5px; letter-spacing: 0.5px; color: var(--lb-green-soft); }
.lb-footer-site { font-size: 12.5px; color: var(--lb-muted); }
.lb-footer-phone {
  margin-top: 6px; display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 14px; text-decoration: none;
  font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 13.5px; color: #2B2A1E;
  border: 1px solid rgba(255,255,255,0.6);
  background: linear-gradient(135deg, #FBEFC9 0%, #E4B43A 55%, #C89A3C 100%);
  box-shadow: 0 4px 12px rgba(228,180,58,0.35), inset 0 1px 0 rgba(255,255,255,0.65);
  transition: filter 0.15s ease, transform 0.1s ease;
}
.lb-footer-phone:hover { filter: brightness(1.05); }
.lb-footer-phone:active { transform: scale(0.98); }
.lb-footer-bottom {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin-top: 18px; padding-top: 14px; border-top: 1px solid rgba(140,106,31,0.18);
  font-size: 11.5px; color: var(--lb-muted); letter-spacing: 0.3px;
}
/* No mobile o rodapé empilha TUDO alinhado à esquerda (no desktop fica lado a lado). */
@media (max-width: 720px) {
  .lb-footer { padding: 22px 20px 18px; }
  .lb-footer-main { flex-direction: column; align-items: flex-start; gap: 16px; }
  .lb-footer-contact { align-items: flex-start; text-align: left; }
  .lb-footer-bottom { flex-direction: column; gap: 6px; }
}

/* ============ Faturamento por Dia (barras empilhadas) ============ */
.lb-fatdia {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; height: 158px;
}
.lb-fatdia-col { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; min-width: 0; height: 100%; }
.lb-fatdia-val { font-family: 'Marcellus', serif; font-size: 11px; color: var(--lb-green-deep); line-height: 1; }
.lb-fatdia-bar {
  width: 62%; max-width: 34px; border-radius: 6px 6px 0 0; overflow: hidden;
  display: flex; flex-direction: column-reverse; box-shadow: 0 2px 6px rgba(120,95,20,0.12);
  background: rgba(140,120,60,0.08);
}
.lb-fatdia-seg { width: 100%; }
.lb-fatdia-day { font-size: calc(11px * var(--fs)); font-weight: 700; color: var(--lb-muted); }
.lb-fatdia-legend { display: flex; gap: 16px; justify-content: center; margin-top: 14px; flex-wrap: wrap; }
.lb-fatdia-legend span { display: inline-flex; align-items: center; gap: 6px; font-size: calc(12px * var(--fs)); font-weight: 600; color: var(--lb-green-soft); }
.lb-fatdia-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }

/* ============ TEXTURA BRILHOSA no topo das seções ============ */
.lb-card, .lb-kpi, .lb-agent { position: relative; }
.lb-card::before, .lb-kpi::before, .lb-agent::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px;
  border-radius: 22px 22px 0 0;
  background: linear-gradient(90deg,
    #8C6A1F 0%, #C89A3C 14%, #FBEFC9 32%, #E4B43A 50%, #FBEFC9 68%, #C89A3C 86%, #8C6A1F 100%);
  box-shadow: 0 1px 8px rgba(228,180,58,0.55);
  pointer-events: none;
}

/* ================= REDUZIR MOVIMENTO (acessibilidade) ================= */
@media (prefers-reduced-motion: reduce) {
  .lb-orb, .lb-orb::before, .lb-orb::after, .lb-orb-ring, .lb-orb-core, .lb-orb-core svg {
    animation: none !important;
  }
}

/* ================= RESPONSIVE ================= */
@media (max-width: 1080px) {
  .lb-layout { grid-template-columns: 1fr; }
  /* No celular, o bloco da Bella (sidebar) sobe pra ser o PRIMEIRO */
  .lb-sidebar { position: static; order: -1; }
  /* Bella (ORB) some na view Financeiro SÓ no mobile; no desktop ela fica nas duas. */
  body[data-view="financeiro"] .lb-orb-card { display: none; }
}
@media (max-width: 720px) {
  .lb-two-col { grid-template-columns: 1fr; }
  .lb-revenue { grid-template-columns: 1fr; justify-items: center; text-align: left; }
  .lb-revenue-list { width: 100%; }
  /* Topo mais enxuto no celular (empresária vê pelo 📲) */
  .lb-logo { height: 42px; }
  .lb-brand-title { font-size: 19px; }
  .lb-brand-sub { font-size: 13.5px; }
  .lb-topbar { top: 6px; gap: 10px; padding: 8px 10px;
    backdrop-filter: blur(14px) saturate(170%); -webkit-backdrop-filter: blur(14px) saturate(170%); }
  .lb-topbar-title { font-size: 12px; letter-spacing: 0.4px; padding: 6px 10px; }
  .lb-viewbtn { font-size: 11.5px; padding: 6px 11px; }
}
