:root {
  --bg: #F7F5EF;
  --surface: #FFFFFF;
  --surface-soft: #F1EFE7;
  --sage: #4A6B53;
  --sage-light: #E8F0E8;
  --sage-border: #D4E0D4;
  --rose: #C48A84;
  --rose-soft: #F9ECEA;
  --amber: #B97B2A;
  --amber-soft: #FDF3E3;
  --danger: #B94A48;
  --danger-soft: #FDECEC;
  --info: #3A6B8C;
  --info-soft: #E9F3F8;
  --pump: #2A6F68;
  --pump-soft: #E5F4F2;
  --text: #2B332D;
  --muted: #68756B;
  --radius: 18px;
  --shadow: 0 8px 24px rgba(43, 51, 45, 0.06);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  min-height: 100vh;
  background-image:
    radial-gradient(circle at 8% 12%, rgba(196, 138, 132, 0.11) 0, transparent 28%),
    radial-gradient(circle at 92% 8%, rgba(74, 107, 83, 0.10) 0, transparent 30%);
}

h1, h2, h3, .brand-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  letter-spacing: 0.01em;
}

.hidden { display: none !important; }

.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.login-card {
  width: 100%;
  max-width: 410px;
  background: var(--surface);
  border: 1px solid var(--sage-border);
  border-radius: 24px;
  padding: 34px 28px;
  box-shadow: var(--shadow);
  text-align: center;
}

.login-card img { width: 74px; height: 74px; border-radius: 50%; margin-bottom: 10px; }
.login-card h1 { margin: 4px 0 4px; font-size: 2rem; color: var(--sage); }
.login-card p.sub { margin: 0 0 24px; color: var(--muted); font-size: 0.92rem; }

.field { text-align: left; margin-bottom: 14px; }
.field label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.field input, .field select {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--sage-border);
  border-radius: 12px;
  background: var(--bg);
  font-size: 0.94rem;
  color: var(--text);
  outline: none;
}
.field input:focus, .field select:focus { border-color: var(--sage); background: #fff; }

/* Campo de senha com botão "olhinho" */
.password-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.password-wrap input {
  padding-right: 44px;
}
.eye-btn {
  position: absolute;
  right: 8px;
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
}
.eye-btn:hover { background: var(--sage-light); color: var(--sage); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
  border-radius: 12px;
  padding: 10px 15px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.1s ease, opacity 0.2s ease, background 0.2s ease;
}
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-primary { background: var(--sage); color: #fff; }
.btn-primary:hover { background: #3D5B45; }
.btn-pump { background: var(--pump); color: #fff; }
.btn-pump:hover { background: #215953; }
.btn-soft { background: var(--sage-light); color: var(--sage); }
.btn-rose { background: var(--rose-soft); color: #8C4E48; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-outline { background: transparent; border: 1px solid var(--sage-border); color: var(--text); }
.btn-full { width: 100%; }
.btn-icon {
  padding: 4px 8px;
  font-size: 0.78rem;
  border-radius: 8px;
  border: 1px solid var(--sage-border);
  background: var(--bg);
  color: var(--muted);
  cursor: pointer;
}
.btn-icon:hover { background: var(--sage-light); color: var(--sage); }

.alert-box {
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 0.88rem;
  margin-bottom: 14px;
  text-align: left;
}
.alert-danger { background: var(--danger-soft); color: var(--danger); border: 1px solid #F3C6C6; }
.alert-success { background: var(--sage-light); color: var(--sage); border: 1px solid var(--sage-border); }
.alert-warning { background: var(--amber-soft); color: #8A5817; border: 1px solid #F0D9B5; }
.alert-info { background: var(--info-soft); color: var(--info); border: 1px solid #C6DFEE; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 245, 239, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--sage-border);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand { display: flex; align-items: center; gap: 10px; }
.brand img { width: 38px; height: 38px; border-radius: 50%; }
.brand-title { font-size: 1.45rem; font-weight: 700; color: var(--sage); line-height: 1; }
.brand-sub { font-size: 0.74rem; color: var(--muted); }

.nav-desktop { display: flex; gap: 6px; }
.nav-btn {
  border: none;
  background: transparent;
  color: var(--muted);
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
}
.nav-btn.active { background: var(--sage); color: #fff; }

.user-pill { display: flex; align-items: center; gap: 8px; font-size: 0.84rem; color: var(--muted); }

.container { max-width: 1140px; margin: 0 auto; padding: 20px 18px 96px; }

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

.card {
  background: var(--surface);
  border: 1px solid var(--sage-border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}

.card-title {
  margin: 0 0 10px;
  font-size: 1.25rem;
  color: var(--sage);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.kpi-label { font-size: 0.78rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.kpi-value { font-size: 1.75rem; font-weight: 700; color: var(--text); margin: 4px 0; }
.kpi-sub { font-size: 0.82rem; color: var(--muted); }

.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.73rem;
  font-weight: 700;
}
.badge-success { background: var(--sage-light); color: var(--sage); }
.badge-warning { background: var(--amber-soft); color: #8A5817; }
.badge-danger { background: var(--danger-soft); color: var(--danger); }
.badge-info { background: var(--info-soft); color: var(--info); }
.badge-pump { background: var(--pump-soft); color: var(--pump); }
.badge-muted { background: var(--surface-soft); color: var(--muted); }

.report-tabs {
  display: inline-flex;
  gap: 6px;
  background: var(--surface-soft);
  padding: 4px;
  border-radius: 999px;
}
.report-tab {
  border: none;
  background: transparent;
  color: var(--muted);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}
.report-tab.active { background: var(--sage); color: #fff; }

.report-summary-strip {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  padding: 10px 12px;
  background: var(--surface-soft);
  border-radius: 12px;
  margin-bottom: 10px;
  font-size: 0.84rem;
}
.report-list {
  max-height: 240px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.report-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 9px 12px;
  border: 1px solid var(--sage-border);
  border-radius: 10px;
  background: #fff;
  font-size: 0.83rem;
}

.seq-bar {
  background: var(--sage-light);
  border: 1px solid var(--sage-border);
  border-radius: 14px;
  padding: 14px 16px;
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.seq-active-banner {
  background: var(--info-soft);
  border: 1px solid #BBD8EA;
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 16px;
}

.zone-card {
  background: var(--surface);
  border: 1px solid var(--sage-border);
  border-radius: 16px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.zone-card.selected {
  border-color: var(--sage);
  box-shadow: 0 0 0 2px rgba(74, 107, 83, 0.20);
}
.zone-card.running {
  border-color: var(--info);
  background: #F4F9FC;
}
.zone-card.suspended {
  border-color: #E8D5B5;
  background: #FCF9F2;
}
.zone-card.pump-card {
  border-color: #B4DDD8;
  background: #F4FBFA;
}
.zone-card.inactive-card {
  opacity: 0.72;
  background: #FAF9F5;
  border-style: dashed;
}

.zone-select-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.zone-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  flex-wrap: wrap;
}

.zone-name-full {
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.3;
  word-break: break-word;
}

.zone-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.92rem;
}
.zone-checkbox input {
  width: 18px;
  height: 18px;
  accent-color: var(--sage);
  cursor: pointer;
}

.zone-clock {
  background: #E4F1FA;
  border: 1px solid #C2DFF2;
  color: #1F557A;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 0.84rem;
  font-weight: 700;
}
.zone-clock-bar {
  height: 7px;
  background: rgba(58, 107, 140, 0.18);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 6px;
}
.zone-clock-fill {
  height: 100%;
  background: var(--info);
  transition: width 0.5s linear;
}

.zone-finished {
  font-size: 0.78rem;
  color: var(--sage);
  background: var(--surface-soft);
  padding: 5px 9px;
  border-radius: 8px;
}

.zone-time-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: var(--bg);
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 0.82rem;
}
.zone-time-row input {
  width: 64px;
  padding: 5px 8px;
  border: 1px solid var(--sage-border);
  border-radius: 8px;
  text-align: center;
  font-weight: 700;
  background: #fff;
}

.zone-actions { display: flex; gap: 6px; margin-top: auto; }
.zone-actions .btn { flex: 1; padding: 8px 10px; font-size: 0.82rem; }

/* Modal de edição do setor */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(30, 38, 32, 0.48);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
.modal-card {
  width: 100%;
  max-width: 460px;
  background: var(--surface);
  border: 1px solid var(--sage-border);
  border-radius: 20px;
  padding: 22px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.18);
}

.forecast-strip { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.forecast-item { background: var(--surface-soft); border-radius: 12px; padding: 10px 8px; text-align: center; font-size: 0.8rem; }

.log-list { max-height: 280px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; }
.log-row {
  font-size: 0.84rem;
  padding: 9px 12px;
  border-radius: 10px;
  background: var(--surface-soft);
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.nav-mobile {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 30;
  background: var(--surface);
  border-top: 1px solid var(--sage-border);
  padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
  justify-content: space-around;
}
.nav-mobile button {
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  cursor: pointer;
}
.nav-mobile button.active { color: var(--sage); }

@media (max-width: 860px) {
  .grid-4, .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .forecast-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .nav-desktop { display: none; }
  .nav-mobile { display: flex; }
}
@media (max-width: 560px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .brand-sub { display: none; }
}


/* Quadro de Preferências de Alertas */
.alert-prefs-box {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--sage-border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.alert-pref-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  background: var(--bg);
  padding: 9px 12px;
  border-radius: 12px;
  border: 1px solid var(--sage-border);
}
.alert-pref-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
}
.alert-pref-check input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: var(--sage);
  cursor: pointer;
}
.alert-pref-input {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--muted);
}
.alert-pref-input input {
  width: 76px;
  padding: 5px 8px;
  border: 1px solid var(--sage-border);
  border-radius: 8px;
  background: #fff;
  font-weight: 600;
  text-align: center;
  color: var(--text);
}
.alert-pref-input input[type="time"] {
  width: 96px;
}
.ai-preview-box {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--sage-light);
  border: 1px solid var(--sage-border);
  font-size: 0.84rem;
  color: var(--text);
}
.zone-title-top {
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.25;
  word-break: break-word;
}
.zone-number-sub {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
}


/* Subpainéis dinâmicos da Gestão Inteligente */
.auto-subpanel {
  grid-column: 1 / -1;
  background: var(--bg);
  border: 1px solid var(--sage-border);
  border-radius: 14px;
  padding: 14px 16px;
  margin-top: 4px;
}
.auto-subpanel.boost-panel {
  background: #F4F9FC;
  border-color: #C2DFF2;
}
.auto-subpanel-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--sage);
  margin: 0 0 10px;
}
.auto-subpanel.boost-panel .auto-subpanel-title {
  color: var(--info);
}
.confirm-summary {
  background: var(--surface-soft);
  border: 1px solid var(--sage-border);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 0.86rem;
  line-height: 1.5;
  margin-bottom: 14px;
}


/* Aba Programação & Botão Rega Manual */
.weekday-strip {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.weekday-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid var(--sage-border);
  background: var(--bg);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}
.weekday-chip input { accent-color: var(--sage); cursor: pointer; }
.manual-hose-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 16px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--sage-border);
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}
.hunter-monitor-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.hunter-monitor-item {
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--surface-soft);
  border: 1px solid var(--sage-border);
  font-size: 0.8rem;
}
@media (max-width: 720px) {
  .hunter-monitor-grid { grid-template-columns: 1fr; }
}


/* Status Detalhado Irrigação Hoje (parte inferior da Aba Início) */
.origin-status-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}
.origin-box {
  background: var(--bg);
  border: 1px solid var(--sage-border);
  border-radius: 14px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.origin-box.has-activity {
  background: #F4FAF5;
  border-color: #B9D4BE;
}
.origin-box.has-hunter {
  background: #F3F8FC;
  border-color: #BDD8EB;
}
.origin-box-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.origin-box-val {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}
.origin-box-sub {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.35;
}
.today-pending-strip {
  background: var(--surface-soft);
  border: 1px solid var(--sage-border);
  border-radius: 12px;
  padding: 11px 14px;
  font-size: 0.83rem;
  line-height: 1.5;
}
.report-filter-bar {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.report-filter-chip {
  border: 1px solid var(--sage-border);
  background: var(--bg);
  color: var(--muted);
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
}
.report-filter-chip.active {
  background: var(--sage);
  color: #fff;
  border-color: var(--sage);
}
@media (max-width: 860px) {
  .origin-status-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .origin-status-grid { grid-template-columns: 1fr; }
}


/* =========================================================
   ABERTURA ROMÂNTICA PERSONALIZADA (v2.3)
   ========================================================= */
.splash-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 18px;
  text-align: center;
  overflow: hidden;
  cursor: pointer;
  background:
    radial-gradient(circle at 22% 18%, rgba(232, 188, 180, 0.34), transparent 48%),
    radial-gradient(circle at 80% 24%, rgba(168, 198, 173, 0.30), transparent 50%),
    radial-gradient(circle at 50% 85%, rgba(240, 224, 194, 0.42), transparent 55%),
    linear-gradient(160deg, #FBF8F3 0%, #F4EFE6 52%, #EDF2EC 100%);
  opacity: 1;
  transition: opacity 0.85s ease, visibility 0.85s ease;
}
.splash-overlay.splash-cold {
  background:
    radial-gradient(circle at 22% 18%, rgba(190, 214, 232, 0.38), transparent 48%),
    radial-gradient(circle at 80% 22%, rgba(212, 224, 236, 0.36), transparent 50%),
    linear-gradient(160deg, #F5F8FB 0%, #EAF0F6 55%, #E7EFEF 100%);
}
.splash-overlay.splash-rain {
  background:
    radial-gradient(circle at 24% 18%, rgba(168, 194, 212, 0.36), transparent 48%),
    radial-gradient(circle at 78% 26%, rgba(164, 190, 178, 0.30), transparent 52%),
    linear-gradient(160deg, #F2F6F8 0%, #E7EFF2 55%, #E6EEEB 100%);
}
.splash-overlay.splash-hot {
  background:
    radial-gradient(circle at 78% 18%, rgba(248, 210, 138, 0.44), transparent 46%),
    radial-gradient(circle at 20% 24%, rgba(234, 184, 168, 0.32), transparent 48%),
    linear-gradient(160deg, #FDF9F1 0%, #F9F0E1 55%, #F2F4EA 100%);
}
.splash-overlay.closing {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.splash-petals {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.splash-petal {
  position: absolute;
  top: -28px;
  width: 14px;
  height: 18px;
  border-radius: 70% 30% 65% 35% / 60% 40% 60% 40%;
  background: linear-gradient(135deg, rgba(226, 176, 170, 0.55), rgba(245, 222, 216, 0.25));
  animation: lbfPetalFall 6.8s ease-in-out infinite;
}
@keyframes lbfPetalFall {
  0% { transform: translateY(-20px) translateX(0) rotate(0deg); opacity: 0; }
  15% { opacity: 0.72; }
  85% { opacity: 0.45; }
  100% { transform: translateY(105vh) translateX(42px) rotate(220deg); opacity: 0; }
}

.splash-card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 460px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: lbfSplashRise 0.9s ease both;
}
@keyframes lbfSplashRise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.splash-brand {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sage);
  opacity: 0.85;
}
.splash-greeting {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.95rem, 5.5vw, 2.55rem);
  font-weight: 700;
  line-height: 1.12;
  color: #2B362E;
  margin: 0;
}
.splash-scene-wrap {
  width: 100%;
  max-width: 420px;
  margin: 4px 0 2px;
  filter: drop-shadow(0 12px 24px rgba(58, 76, 62, 0.10));
}
.splash-scene-wrap svg {
  width: 100%;
  height: auto;
  display: block;
}
.splash-climate-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(74, 107, 83, 0.22);
  font-size: 0.88rem;
  font-weight: 600;
  color: #36473B;
  backdrop-filter: blur(6px);
  max-width: 92%;
}
.splash-hint {
  margin-top: 8px;
  font-size: 0.76rem;
  color: var(--muted);
  opacity: 0.78;
}

/* Animações SVG da cena dos gatinhos */
.cat-walker {
  animation: lbfCatWalk 4.5s ease-in-out forwards;
}
@keyframes lbfCatWalk {
  0% { transform: translateX(-46px); }
  40% { transform: translateX(0px); }
  100% { transform: translateX(0px); }
}
.cat-bob {
  animation: lbfCatBob 1.3s ease-in-out infinite;
  transform-origin: center;
}
@keyframes lbfCatBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2.5px); }
}
.cat-tail {
  transform-origin: 96px 176px;
  animation: lbfTailSway 2.4s ease-in-out infinite;
}
@keyframes lbfTailSway {
  0%, 100% { transform: rotate(-6deg); }
  50% { transform: rotate(9deg); }
}
.paty-hair-sway {
  transform-origin: 128px 98px;
  animation: lbfHairSway 3.1s ease-in-out infinite;
}
@keyframes lbfHairSway {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(2.2deg); }
}
.can-pour {
  transform-origin: 196px 144px;
  animation: lbfCanTilt 4.5s ease-in-out forwards;
}
@keyframes lbfCanTilt {
  0%, 36% { transform: rotate(0deg); }
  48%, 92% { transform: rotate(20deg); }
  100% { transform: rotate(16deg); }
}
.water-streams {
  opacity: 0;
  animation: lbfWaterAppear 4.5s ease-in-out forwards;
}
@keyframes lbfWaterAppear {
  0%, 42% { opacity: 0; }
  52%, 95% { opacity: 1; }
  100% { opacity: 0.85; }
}
.water-drop {
  animation: lbfDropArc 0.95s linear infinite;
}
@keyframes lbfDropArc {
  0% { transform: translate(0, 0); opacity: 0; }
  15% { opacity: 0.95; }
  90% { opacity: 0.85; }
  100% { transform: translate(22px, 46px); opacity: 0; }
}
.flower-bloom {
  transform-origin: center bottom;
  animation: lbfFlowerSway 3.2s ease-in-out infinite;
}
@keyframes lbfFlowerSway {
  0%, 100% { transform: rotate(-1.6deg); }
  50% { transform: rotate(1.8deg); }
}
.rain-streak {
  animation: lbfRainFall 1.05s linear infinite;
}
@keyframes lbfRainFall {
  0% { transform: translate(6px, -24px); opacity: 0; }
  20% { opacity: 0.72; }
  90% { opacity: 0.55; }
  100% { transform: translate(-12px, 110px); opacity: 0; }
}
.cold-puff {
  animation: lbfColdPuff 2.6s ease-out infinite;
}
@keyframes lbfColdPuff {
  0% { transform: translate(0, 0) scale(0.7); opacity: 0; }
  25% { opacity: 0.75; }
  100% { transform: translate(24px, -14px) scale(1.35); opacity: 0; }
}
.sun-glow {
  transform-origin: 356px 46px;
  animation: lbfSunPulse 3.4s ease-in-out infinite;
}
@keyframes lbfSunPulse {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.08); opacity: 1; }
}

/* Bloco de Sons e Vibração na aba Sistema */
.sound-prefs-box {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--surface-soft);
  border: 1px solid var(--sage-border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}


/* Ajustes Abertura Romântica v2.4 (layout fiel ao protótipo) */
.splash-scene-card {
  width: 100%;
  max-width: 420px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 34px rgba(48, 66, 54, 0.10);
  overflow: hidden;
  margin-bottom: 10px;
}
.splash-scene-card svg {
  width: 100%;
  height: auto;
  display: block;
}
.splash-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 180px;
  margin: 2px auto 4px;
}
.splash-divider::before,
.splash-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(196, 138, 132, 0.55), transparent);
}
.splash-divider-diamond {
  width: 7px;
  height: 7px;
  background: var(--sage);
  transform: rotate(45deg);
  border-radius: 1px;
  opacity: 0.78;
}
.splash-greeting {
  font-style: italic;
}
.splash-pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sage);
  flex-shrink: 0;
}
.splash-overlay.splash-rain .splash-pill-dot { background: #3A6B8C; }
.splash-overlay.splash-cold .splash-pill-dot { background: #5B89A6; }
.splash-overlay.splash-hot .splash-pill-dot { background: #C88A2E; }

/* Banner de Chuva Ecowitt (aparece apenas quando há chuva) */
.rain-alert-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 13px 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, #EBF4FA 0%, #F4F9FC 100%);
  border: 1px solid #BDD7E8;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}
.rain-alert-title {
  color: #265675;
  font-weight: 700;
  font-size: 0.96rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.rain-alert-vol {
  background: #FFFFFF;
  border: 1px solid #C6DFEE;
  border-radius: 12px;
  padding: 7px 14px;
  text-align: right;
  min-width: 122px;
}
.rain-alert-vol strong {
  display: block;
  font-size: 1.18rem;
  color: #24577A;
  line-height: 1.1;
}
.rain-alert-vol span {
  font-size: 0.74rem;
  color: var(--muted);
}
.station-rain-banner {
  padding: 10px 14px;
  border-radius: 12px;
  background: #EBF4FA;
  border: 1px solid #BDD7E8;
  color: #24577A;
  font-size: 0.86rem;
  margin-bottom: 14px;
  line-height: 1.45;
}
