@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  --bg-deep: #061525;
  --bg-mid: #0a2744;
  --bg-card: rgba(255, 255, 255, 0.07);
  --bg-card-solid: #0f2d4a;
  --stroke: rgba(255, 255, 255, 0.12);
  --text: #eef6ff;
  --muted: #8fb0d0;
  --accent: #00d4aa;
  --accent-2: #3ec7ff;
  --warn: #ffb020;
  --danger: #ff5c7a;
  --ok: #2ee59d;
  --radius: 22px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  --font: 'Outfit', sans-serif;
  --display: 'Space Grotesk', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg-deep);
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }

.app-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(62, 199, 255, 0.25), transparent 60%),
    radial-gradient(900px 500px at 90% 10%, rgba(0, 212, 170, 0.18), transparent 55%),
    radial-gradient(800px 500px at 50% 100%, rgba(255, 92, 122, 0.12), transparent 50%),
    linear-gradient(160deg, #04101f 0%, #0a2744 45%, #062033 100%);
}

.app-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
  pointer-events: none;
}

/* ——— Topbar ——— */
.app-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(18px);
  background: rgba(6, 21, 37, 0.75);
  border-bottom: 1px solid var(--stroke);
  padding: 0.85rem 1.25rem;
}
.app-nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}
.brand-logo {
  height: 52px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  border-radius: 12px;
  filter: drop-shadow(0 4px 12px rgba(0, 200, 255, 0.25));
}
.brand-text .brand-prev { color: #fff; }
.brand-text .brand-ia {
  background: linear-gradient(120deg, #3ec7ff, #00d4aa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: none;
}
.nav-links {
  display: flex;
  gap: 0.4rem;
  align-items: center;
}
.nav-links a {
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: 0.2s;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--text);
  background: rgba(255,255,255,0.08);
}
.user-chip {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.35rem 0.75rem 0.35rem 0.35rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--stroke);
  font-size: 0.9rem;
}
.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.85rem;
}

/* ——— Layout ——— */
.shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 4rem;
}

.hero-app {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.5rem;
  align-items: start;
  min-height: min(72vh, 640px);
  margin-bottom: 2rem;
  overflow: visible;
}
@media (max-width: 900px) {
  .hero-app { grid-template-columns: 1fr; min-height: auto; }
}

.hero-copy h1 {
  font-family: var(--display);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
}
.hero-copy h1 span {
  background: linear-gradient(120deg, var(--accent), var(--accent-2), #fff59d);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-copy p {
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.55;
  max-width: 34rem;
  margin: 0 0 1.5rem;
}

.search-wrap {
  position: relative;
  max-width: 520px;
  z-index: 40;
}
.search-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--stroke);
  border-radius: 18px;
  padding: 0.85rem 1rem;
  box-shadow: var(--shadow);
  transition: 0.25s;
}
.search-box:focus-within {
  border-color: rgba(0, 212, 170, 0.55);
  box-shadow: 0 0 0 4px rgba(0, 212, 170, 0.15), var(--shadow);
}
.search-box input {
  flex: 1;
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--text);
  font-size: 1.05rem;
}
.search-box input::placeholder { color: var(--muted); }
.search-results {
  position: absolute;
  left: 0; right: 0; top: calc(100% + 8px);
  background: #0c243d;
  border: 1px solid var(--stroke);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: none;
  z-index: 80;
  max-height: 340px;
  overflow-y: auto;
}
.search-results.open { display: block; animation: fadeUp 0.25s ease; }
.search-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  cursor: pointer;
  transition: 0.15s;
}
.search-item:hover { background: rgba(62, 199, 255, 0.1); }
.search-item strong { font-weight: 600; }
.search-item small { color: var(--muted); }
.badge-lit {
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: rgba(62, 199, 255, 0.2);
  color: var(--accent-2);
  font-weight: 600;
}

/* ——— Cards ——— */
.panel {
  background: var(--bg-card);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  padding: 1.25rem;
}
.panel-title {
  font-family: var(--display);
  font-size: 1.15rem;
  margin: 0 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
@media (max-width: 800px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

.stat-card {
  padding: 1.1rem;
  border-radius: 18px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--stroke);
}
.stat-card .label { color: var(--muted); font-size: 0.85rem; }
.stat-card .value {
  font-family: var(--display);
  font-size: 1.8rem;
  font-weight: 700;
  margin-top: 0.25rem;
}

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 0;
  border-radius: 14px;
  padding: 0.85rem 1.25rem;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s transform, 0.2s box-shadow, 0.2s background;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), #00b894);
  color: #042018;
  box-shadow: 0 10px 28px rgba(0, 212, 170, 0.3);
}
.btn-primary:hover { filter: brightness(1.05); }
.btn-ghost {
  background: rgba(255,255,255,0.06);
  color: var(--text);
  border: 1px solid var(--stroke);
}
.btn-social {
  width: 100%;
  background: rgba(255,255,255,0.06);
  color: var(--text);
  border: 1px solid var(--stroke);
  margin-top: 0.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
}
.btn-social .social-ico {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.btn-social.google:hover { border-color: #ea4335; }
.btn-social.facebook:hover { border-color: #1877f2; }
.btn-block { width: 100%; }

.input-password {
  position: relative;
  display: flex;
  align-items: center;
}
.input-password input {
  width: 100%;
  padding: 0.85rem 2.75rem 0.85rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: rgba(0,0,0,0.25);
  color: var(--text);
  outline: none;
}
.input-password input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,212,170,0.15);
}
.btn-eye {
  position: absolute;
  right: 0.55rem;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  padding: 0.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}
.btn-eye:hover { color: var(--text); background: rgba(255,255,255,0.06); }
.auth-extras {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: -0.25rem 0 1rem;
  flex-wrap: wrap;
}
.check-lembrar {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--muted);
  font-size: 0.9rem;
  cursor: pointer;
  user-select: none;
}
.check-lembrar input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}
.link-forgot {
  color: var(--accent-2);
  font-size: 0.9rem;
  font-weight: 600;
}
.link-forgot:hover { text-decoration: underline; }

/* ——— Auth ——— */
.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}
.auth-card {
  width: min(440px, 100%);
  padding: 2rem;
  border-radius: 28px;
  background: rgba(12, 36, 61, 0.85);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.auth-card::before {
  content: '';
  position: absolute;
  top: -80px; right: -60px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,212,170,0.35), transparent 70%);
  pointer-events: none;
}
.auth-card h1 {
  font-family: var(--display);
  font-size: 1.85rem;
  margin: 0.5rem 0 0.35rem;
}
.auth-card .sub { color: var(--muted); margin: 0 0 1.5rem; }
.field { margin-bottom: 1rem; }
.field label {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.4rem;
}
.field input {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: rgba(0,0,0,0.25);
  color: var(--text);
  outline: none;
}
.field input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,212,170,0.15);
}
.divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--muted);
  font-size: 0.85rem;
  margin: 1.25rem 0;
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--stroke);
}
.alert-box {
  padding: 0.85rem 1rem;
  border-radius: 12px;
  margin-bottom: 1rem;
  font-size: 0.92rem;
}
.alert-box.error { background: rgba(255,92,122,0.15); border: 1px solid rgba(255,92,122,0.35); color: #ffb3c1; }
.alert-box.ok { background: rgba(46,229,157,0.12); border: 1px solid rgba(46,229,157,0.3); color: #9ff5d0; }
.alert-box.info { background: rgba(62,199,255,0.12); border: 1px solid rgba(62,199,255,0.3); color: #b8e8ff; }

/* ——— Weather icons (SVG animados coloridos) ——— */
.wx-img {
  width: 120px;
  height: 120px;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 12px 24px rgba(0,0,0,0.35)) drop-shadow(0 0 20px rgba(100, 180, 255, 0.25));
  animation: wxFloat 3.5s ease-in-out infinite;
}
.wx-img-sm {
  width: 72px;
  height: 72px;
  display: inline-block;
  margin: 0 4px;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,0.35)) drop-shadow(0 0 12px rgba(255, 200, 80, 0.2));
  animation: wxFloat 3s ease-in-out infinite;
}
.wx-img-lg {
  width: 210px;
  height: 210px;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.45)) drop-shadow(0 0 40px rgba(62, 199, 255, 0.35));
  animation: wxFloat 4s ease-in-out infinite;
}
.wx-glow { display: inline-flex; }
.weather-showcase {
  text-align: center;
  padding: 1.75rem 1.35rem 1.5rem;
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background:
    radial-gradient(420px 200px at 50% 0%, rgba(255, 190, 60, 0.22), transparent 58%),
    radial-gradient(380px 180px at 15% 100%, rgba(62, 199, 255, 0.18), transparent 55%),
    radial-gradient(320px 160px at 90% 80%, rgba(0, 212, 170, 0.14), transparent 50%),
    linear-gradient(165deg, rgba(14, 42, 70, 0.95), rgba(7, 22, 40, 0.98));
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 22px 50px rgba(0,0,0,0.32), inset 0 1px 0 rgba(255,255,255,0.06);
}
.weather-showcase::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.04) 48%, transparent 65%);
  pointer-events: none;
}
.wx-showcase-title {
  font-family: var(--display);
  margin: 0.85rem 0 0.3rem;
  font-size: 1.35rem;
  position: relative;
  z-index: 1;
}
.wx-showcase-sub {
  color: var(--muted);
  margin: 0;
  font-size: 0.95rem;
  position: relative;
  z-index: 1;
}
.wx-row-pretty {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
  margin-top: 1.1rem;
  padding: 0.7rem 0.55rem;
  border-radius: 20px;
  background: rgba(0,0,0,0.28);
  border: 1px solid rgba(255,255,255,0.08);
  position: relative;
  z-index: 1;
}
.wx-showcase-cta {
  margin-top: 1.15rem;
  position: relative;
  z-index: 1;
}
.wx-showcase-cta .btn {
  min-width: 220px;
  box-shadow: 0 12px 28px rgba(0, 212, 170, 0.35);
}
[data-wx] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}
.wx-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

@keyframes wxFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* legado (mantido vazio para não quebrar) */
.wx, .wx-sm, .wx-lg { display: contents; }

/* Month strip */
.month-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.65rem;
}
@media (max-width: 700px) {
  .month-strip { grid-template-columns: repeat(3, 1fr); }
}
.month-chip {
  text-align: center;
  padding: 0.75rem 0.4rem;
  border-radius: 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--stroke);
  transition: 0.2s;
}
.month-chip:hover {
  transform: translateY(-3px);
  border-color: rgba(0,212,170,0.4);
}
.month-chip .m-name { font-size: 0.8rem; color: var(--muted); }
.month-chip .m-temp { font-weight: 700; font-size: 1.05rem; margin: 0.2rem 0; }
.month-chip .m-risk {
  font-size: 0.68rem;
  font-weight: 650;
  margin-top: 0.3rem;
  line-height: 1.25;
  min-height: 2.1em;
}
.m-risk.risco-baixo { color: #7dffc4; }
.m-risk.risco-medio { color: #ffd27a; }
.m-risk.risco-alto { color: #ff8fa3; }
.m-risk.risco-tipo-enchente { color: #8fdfff; }
.m-risk.risco-tipo-vendaval { color: #c4b5ff; }
.m-risk.risco-tipo-ressaca { color: #5ad1ff; }
.m-risk.risco-tipo-geada { color: #a8e6ff; }
.m-risk.risco-tipo-neve { color: #e8f4ff; }
.m-risk.risco-alto.risco-tipo-enchente,
.m-risk.risco-alto.risco-tipo-vendaval,
.m-risk.risco-alto.risco-tipo-ressaca { color: #ff8fa3; }

.m-prop {
  margin-top: 0.25rem;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.prop-legend {
  font-weight: 700;
  padding: 0.1rem 0.35rem;
  border-radius: 6px;
  font-size: 0.8rem;
}
.prop-badge {
  display: inline-block;
  margin: 0.35rem 0 0.45rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.prop-pequena, .m-prop.prop-pequena, .prop-badge.prop-pequena, .prop-legend.prop-pequena {
  color: #7dffc4;
  background: rgba(46, 229, 157, 0.12);
}
.prop-media, .m-prop.prop-media, .prop-badge.prop-media, .prop-legend.prop-media {
  color: #ffd27a;
  background: rgba(255, 176, 32, 0.14);
}
.prop-alta, .m-prop.prop-alta, .prop-badge.prop-alta, .prop-legend.prop-alta {
  color: #ff8fa3;
  background: rgba(255, 92, 122, 0.16);
}
.m-risk.prop-pequena { color: #7dffc4; }
.m-risk.prop-media { color: #ffd27a; }
.m-risk.prop-alta { color: #ff8fa3; }

/* ——— Rios / mar / neve ——— */
.hydro-lead {
  color: var(--muted);
  font-size: 0.9rem;
  margin: -0.35rem 0 0.85rem;
  line-height: 1.45;
}

/* ——— Accordion Insights / Cadeia ——— */
.city-accordion {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.accordion-item {
  overflow: hidden;
}
.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  font: inherit;
  -webkit-tap-highlight-color: transparent;
}
.accordion-trigger-text { flex: 1; min-width: 0; }
.accordion-trigger .panel-title {
  margin: 0;
  flex: 1;
}
.accordion-trigger .hydro-lead,
.accordion-preview {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.accordion-item.is-open .accordion-preview { display: none; }
.hydro-lead-open { margin-top: 0.75rem; }
.accordion-chevron {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  margin-top: 0.1rem;
  border-radius: 8px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,0.05);
  position: relative;
}
.accordion-chevron::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 46%;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: translate(-50%, -60%) rotate(45deg);
  transition: transform 0.2s ease;
}
.accordion-item.is-open .accordion-chevron::before {
  transform: translate(-50%, -30%) rotate(-135deg);
}
.accordion-item.is-open .accordion-trigger {
  margin-bottom: 0.35rem;
}
.accordion-body {
  padding-top: 0.35rem;
  animation: fadeUp 0.28s ease;
}
.accordion-body[hidden] {
  display: none !important;
}

.hydro-tabs {
  margin-bottom: 0.85rem;
}
.hydro-tab-panel { display: none; animation: fadeUp 0.3s ease; }
.hydro-tab-panel.active { display: block; }
.hydro-card-full {
  width: 100%;
}
.hydro-card-full h3 { display: none; }

.hydro-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.hydro-card {
  background: rgba(0,0,0,0.22);
  border: 1px solid var(--stroke);
  border-radius: 16px;
  padding: 1rem 1.05rem;
}
.hydro-card h3 {
  margin: 0 0 0.45rem;
  font-family: var(--display);
  font-size: 1.05rem;
}
.hydro-card-snow {
  border-color: rgba(168, 230, 255, 0.28);
  background: linear-gradient(160deg, rgba(20,40,70,0.55), rgba(0,0,0,0.25));
}
.hydro-sum { color: var(--muted); font-size: 0.9rem; margin: 0 0 0.55rem; line-height: 1.45; }
.hydro-meta { font-size: 0.82rem; color: var(--accent-2); margin-bottom: 0.65rem; }
.hydro-steps {
  margin: 0 0 0.85rem;
  padding-left: 1.15rem;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}
.hydro-steps.numbered li { margin-bottom: 0.55rem; }
.hydro-steps.numbered strong { display: block; color: var(--text); font-size: 0.9rem; }
.hydro-steps.numbered span { display: block; }
.hydro-steps.numbered em {
  display: inline-block;
  margin-top: 0.2rem;
  font-style: normal;
  font-size: 0.75rem;
  color: var(--accent);
  background: rgba(0,212,170,0.1);
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
}
.river-list { list-style: none; margin: 0; padding: 0; }
.river-list li {
  padding: 0.7rem 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.river-list li p { margin: 0.3rem 0 0; color: var(--muted); font-size: 0.85rem; }
.river-top {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
}
.river-list li.enche-primeiro {
  background: rgba(255,92,122,0.06);
  margin: 0 -0.4rem;
  padding-left: 0.4rem;
  padding-right: 0.4rem;
  border-radius: 10px;
}
.hydro-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.hydro-tags span {
  font-size: 0.72rem;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: rgba(62,199,255,0.12);
  color: #8fdfff;
  border: 1px solid rgba(62,199,255,0.25);
}
.hydro-sub {
  margin: 0.75rem 0 0.45rem;
  font-size: 0.92rem;
}
.snow-dates { list-style: none; margin: 0; padding: 0; }
.snow-dates li {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 0.65rem;
  padding: 0.55rem 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 0.88rem;
}
.snow-date {
  font-family: var(--display);
  font-weight: 700;
  color: #a8e6ff;
  font-size: 0.95rem;
}
.hydro-fonte {
  margin: 0.45rem 0 0;
  font-size: 0.72rem;
  color: var(--muted);
}

/* Streets ranking */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--stroke);
  padding-bottom: 0.75rem;
}
.tab-btn {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--stroke);
  color: var(--muted);
  border-radius: 999px;
  padding: 0.55rem 1rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.88rem;
  transition: 0.2s;
}
.tab-btn:hover { color: var(--text); border-color: rgba(0,212,170,0.35); }
.tab-btn.active {
  background: linear-gradient(135deg, rgba(0,212,170,0.25), rgba(62,199,255,0.2));
  color: var(--text);
  border-color: rgba(0,212,170,0.5);
}
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeUp 0.3s ease; }
#street-map {
  height: 280px;
  border-radius: 16px;
  border: 1px solid var(--stroke);
  margin-top: 0;
}
.map-caption {
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 0.5rem;
}
.mobile-only { display: none !important; }
.btn-gmaps {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 0.75rem;
  width: 100%;
  padding: 0.7rem 0.9rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.88rem;
  color: #0b1a12;
  background: linear-gradient(135deg, #34d399, #2dd4bf);
  border: none;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(45, 212, 191, 0.25);
}
.btn-gmaps:hover { filter: brightness(1.05); }
.routes-hint {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0 0 0.75rem;
  line-height: 1.4;
}
.route-mobile-bar {
  display: none;
  margin-top: 0.55rem;
  padding: 0.65rem 0.75rem;
  border-radius: 14px;
  background: rgba(0, 212, 170, 0.12);
  border: 1px solid rgba(0, 212, 170, 0.35);
  align-items: center;
  gap: 0.65rem;
  justify-content: space-between;
}
.route-mobile-bar[hidden] { display: none !important; }
.route-mobile-label {
  display: block;
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.route-mobile-info strong {
  display: block;
  font-size: 0.88rem;
  line-height: 1.25;
}
.btn-gmaps-bar {
  display: inline-flex;
  width: auto;
  margin: 0;
  flex-shrink: 0;
  padding: 0.55rem 0.75rem;
  font-size: 0.8rem;
}
.streets-map-wrap {
  border-radius: 16px;
}
.street-item {
  cursor: pointer;
  border-radius: 12px;
  padding: 0.85rem !important;
  margin-bottom: 0.35rem;
  transition: 0.15s;
}
.street-item:hover, .street-item.selected {
  background: rgba(62, 199, 255, 0.1);
}
.street-detail {
  margin-top: 0.55rem;
  padding: 0.75rem;
  border-radius: 12px;
  background: rgba(0,0,0,0.25);
  border: 1px solid var(--stroke);
  font-size: 0.88rem;
  color: var(--muted);
  display: none;
}
.street-item.selected .street-detail { display: block; }
.street-detail strong { color: var(--text); }
.rain-group {
  margin-bottom: 1.25rem;
  padding: 1rem;
  border-radius: 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--stroke);
}
.rain-group h4 {
  margin: 0 0 0.75rem;
  font-family: var(--display);
  font-size: 1rem;
  color: var(--accent-2);
}
.route-card {
  padding: 1rem;
  border-radius: 16px;
  background: rgba(0,212,170,0.08);
  border: 1px solid rgba(0,212,170,0.25);
  margin-bottom: 0.75rem;
}
.route-card h4 { margin: 0 0 0.35rem; font-size: 1rem; }
.route-card .path {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 0.5rem 0;
  font-weight: 600;
}
.route-card .arrow { color: var(--accent); }
.news-item {
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.news-item .when { color: var(--accent); font-size: 0.8rem; font-weight: 700; }
.news-item .src { color: var(--muted); font-size: 0.8rem; }

/* Você sabia? */
.voce-sabia-panel {
  position: relative;
  padding: 1.5rem 1.5rem 1.25rem;
  border-radius: 24px;
  background:
    radial-gradient(600px 200px at 0% 0%, rgba(255, 176, 32, 0.18), transparent 60%),
    radial-gradient(500px 180px at 100% 100%, rgba(0, 212, 170, 0.12), transparent 55%),
    rgba(255,255,255,0.06);
  border: 1px solid rgba(255, 176, 32, 0.35);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.voce-sabia-badge {
  display: inline-block;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffb020, #ff8a00);
  color: #1a1200;
  margin-bottom: 1rem;
}
.voce-sabia-card { display: none; animation: fadeUp 0.35s ease; }
.voce-sabia-card.active { display: block; }
.voce-sabia-card h3 {
  font-family: var(--display);
  font-size: 1.25rem;
  margin: 0 0 0.75rem;
  line-height: 1.3;
}
.voce-sabia-card h3 small { color: var(--muted); font-weight: 500; font-size: 0.9rem; }
.vs-ano {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.vs-fato {
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.55;
  margin: 0 0 1rem;
}
.vs-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.vs-stat {
  min-width: 120px;
  padding: 0.75rem 1rem;
  border-radius: 14px;
  background: rgba(0,0,0,0.28);
  border: 1px solid var(--stroke);
}
.vs-num {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--warn);
}
.vs-lbl { font-size: 0.78rem; color: var(--muted); }
.vs-fonte {
  font-size: 0.88rem;
  color: var(--muted);
  padding: 0.75rem 1rem;
  border-radius: 12px;
  background: rgba(62, 199, 255, 0.08);
  border: 1px solid rgba(62, 199, 255, 0.2);
}
.vs-fonte strong { color: var(--accent-2); }
.vs-ia {
  margin: 0.85rem 0 0;
  font-size: 0.9rem;
  color: var(--accent);
}
.voce-sabia-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1rem;
}
.voce-sabia-nav .btn { padding: 0.5rem 0.9rem; font-size: 0.85rem; }
#vs-counter { color: var(--muted); font-size: 0.85rem; }
.street-list { list-style: none; padding: 0; margin: 0; }
.street-meta { color: var(--muted); font-size: 0.85rem; margin-top: 0.15rem; }
.street-rank {
  width: 42px; height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-family: var(--display);
}
.street-rank.first { background: rgba(255,92,122,0.2); color: var(--danger); }
.street-rank.next { background: rgba(255,176,32,0.2); color: var(--warn); }
.street-rank.late { background: rgba(62,199,255,0.15); color: var(--accent-2); }
.street-meta { color: var(--muted); font-size: 0.85rem; }
.fase-pill {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  white-space: nowrap;
}
.fase-enche_primeiro { background: rgba(255,92,122,0.2); color: #ff8fa3; }
.fase-enche_depois { background: rgba(255,176,32,0.2); color: #ffd27a; }
.fase-risco_tardio { background: rgba(62,199,255,0.15); color: #8fdfff; }
.fase-sem_risco { background: rgba(46,229,157,0.18); color: #7dffc4; }
.fase-atencao { background: rgba(255,176,32,0.22); color: #ffd27a; }
.fase-risco_agora { background: rgba(255,92,122,0.28); color: #ffb0bd; box-shadow: 0 0 0 1px rgba(255,92,122,0.35); }

/* ——— Sino de alertas ——— */
.nav-user {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  position: relative;
}
.alert-bell-wrap { position: relative; }
.alert-bell-btn {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,0.06);
  color: var(--text);
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
}
.alert-bell-btn:hover { background: rgba(255,255,255,0.1); }
.alert-bell-wrap.has-alerts .alert-bell-btn,
.alert-bell-wrap.alert-danger .alert-bell-btn {
  color: #ff5c7a;
  border-color: rgba(255, 92, 122, 0.55);
  background: rgba(255, 92, 122, 0.15);
  box-shadow: 0 0 0 2px rgba(255, 92, 122, 0.2);
}
.alert-bell-btn.ringing {
  animation: bell-shake 1.1s ease-in-out infinite;
  transform-origin: top center;
}
@keyframes bell-shake {
  0%, 100% { transform: rotate(0deg); }
  10% { transform: rotate(14deg); }
  20% { transform: rotate(-12deg); }
  30% { transform: rotate(10deg); }
  40% { transform: rotate(-8deg); }
  50% { transform: rotate(6deg); }
  60% { transform: rotate(-4deg); }
  70% { transform: rotate(2deg); }
  80% { transform: rotate(0deg); }
}
.alert-bell-wrap.has-alerts .alert-bell-badge {
  background: #ff2d55;
  box-shadow: 0 0 10px rgba(255, 45, 85, 0.55);
  animation: badge-pulse 1.4s ease-in-out infinite;
}
@keyframes badge-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.12); }
}
.alert-quando {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: rgba(0, 212, 170, 0.18);
  color: #7dffc4;
}
.alert-tipo-relampagos { background: rgba(196, 181, 255, 0.22); color: #d4c4ff; }
.alert-tipo-vendaval,
.alert-tipo-vento { background: rgba(143, 223, 255, 0.2); color: #8fdfff; }
.alert-tipo-chuva_forte,
.alert-tipo-chuva { background: rgba(62, 199, 255, 0.2); color: #8fdfff; }
.alert-tipo-geada,
.alert-tipo-neve { background: rgba(168, 230, 255, 0.2); color: #a8e6ff; }
.alert-tipo-critico { background: rgba(255,92,122,0.2); color: #ff8fa3; }
.alert-tipo-atencao { background: rgba(255,176,32,0.2); color: #ffd27a; }
.alert-tipo-ressaca { background: rgba(62,199,255,0.2); color: #8fdfff; }
.alert-bell-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--danger);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  line-height: 1;
}
.alert-bell-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: min(340px, calc(100vw - 1.5rem));
  max-height: min(70vh, 420px);
  overflow: auto;
  background: #0c243d;
  border: 1px solid var(--stroke);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 0.85rem;
  z-index: 200;
}
.alert-bell-head {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  align-items: baseline;
  margin-bottom: 0.65rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.alert-bell-head span { color: var(--muted); font-size: 0.8rem; }
.alert-bell-empty { color: var(--muted); font-size: 0.9rem; margin: 0.5rem 0; }
.alert-bell-list { list-style: none; margin: 0; padding: 0; }
.alert-bell-list li {
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.alert-bell-list li:last-child { border-bottom: 0; }
.alert-bell-item-top {
  display: flex;
  gap: 0.45rem;
  align-items: center;
  margin-bottom: 0.3rem;
  flex-wrap: wrap;
}
.alert-bell-list p {
  margin: 0 0 0.55rem;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.45;
}
.alert-tipo {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: rgba(62,199,255,0.15);
  color: #8fdfff;
}
.alert-tipo-critico { background: rgba(255,92,122,0.2); color: #ff8fa3; }
.alert-tipo-atencao { background: rgba(255,176,32,0.2); color: #ffd27a; }
.alert-tipo-ressaca { background: rgba(62,199,255,0.2); color: #8fdfff; }
.alert-wa-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #7dffb0;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(37, 211, 102, 0.12);
  border: 1px solid rgba(37, 211, 102, 0.35);
}
.alert-wa-btn:hover { background: rgba(37, 211, 102, 0.22); }

.impact-panel { margin-top: 1rem; }
.impact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 0.75rem;
}
.impact-card {
  background: rgba(0,0,0,0.2);
  border: 1px solid var(--stroke);
  border-radius: 14px;
  padding: 0.85rem;
}
.impact-card h4 { margin: 0 0 0.35rem; font-size: 0.95rem; }
.impact-card .big {
  font-family: var(--display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent-2);
}
.impact-card ul { margin: 0.35rem 0 0; padding-left: 1.05rem; color: var(--muted); font-size: 0.85rem; line-height: 1.45; }
.impact-card p { margin: 0; color: var(--muted); font-size: 0.85rem; }

.year-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: end;
  margin-bottom: 1.25rem;
}
.year-bar select, .year-bar input[type="number"] {
  padding: 0.7rem 0.9rem;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  background: rgba(0,0,0,0.25);
  color: var(--text);
  min-width: 120px;
}

.insight-list {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
  line-height: 1.6;
}
.insight-list li { margin-bottom: 0.45rem; }
.insight-list li::marker { color: var(--accent); }

.extreme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.75rem;
}
.extreme-card {
  padding: 1rem;
  border-radius: 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--stroke);
}
.extreme-card.on {
  border-color: rgba(255, 92, 122, 0.4);
  background: rgba(255, 92, 122, 0.08);
}
.extreme-card h4 { margin: 0.4rem 0 0.2rem; font-size: 0.95rem; }
.extreme-card p { margin: 0; font-size: 0.8rem; color: var(--muted); }

.confianca {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(0,212,170,0.15);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
}

.city-hero {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  align-items: center;
  margin-bottom: 1.5rem;
}
@media (max-width: 600px) {
  .city-hero { grid-template-columns: 1fr; text-align: center; }
  .city-hero .wx { margin: 0 auto; }
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}
.wx-showcase-title {
  font-family: var(--display);
  margin: 1rem 0 0.35rem;
}
.wx-showcase-sub {
  color: var(--muted);
  margin: 0;
  font-size: 0.95rem;
}
.wx-showcase-cta { margin-top: 1.25rem; }
.shortcut-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.user-logout {
  color: var(--muted);
  font-size: 0.8rem;
  margin-left: 0.35rem;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
}
.btn-back {
  display: none;
  align-items: center;
  gap: 0.15rem;
  padding: 0.45rem 0.65rem;
  border-radius: 12px;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--stroke);
  color: var(--text);
  font-weight: 600;
  font-size: 0.88rem;
  flex-shrink: 0;
}
.btn-back svg { display: block; }
.nav-links-mobile {
  display: none;
}

/* ——— Bottom nav (mobile) ——— */
.bottom-nav {
  display: none;
}

/* ——— Mobile ——— */
@media (max-width: 900px) {
  .nav-links-desktop { display: none !important; }
  .btn-back,
  .nav-links-mobile,
  .mobile-only-back,
  .btn-back-inline { display: none !important; }

  .impact-grid { grid-template-columns: 1fr; }
  .alert-bell-panel { width: min(320px, calc(100vw - 1rem)); right: -0.25rem; }

  .bottom-nav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    background: rgba(6, 18, 32, 0.98);
    backdrop-filter: blur(16px);
    border-top: 1px solid var(--stroke);
    padding: 0.35rem 0.4rem calc(0.45rem + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -8px 28px rgba(0,0,0,0.45);
  }
  .bottom-nav a,
  .bottom-nav-more {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    padding: 0.45rem 0.25rem;
    border-radius: 12px;
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 600;
    background: transparent;
    border: 0;
    cursor: pointer;
    font-family: inherit;
    width: 100%;
  }
  .bottom-nav a.active,
  .bottom-nav-more.active {
    color: var(--accent);
    background: rgba(0, 212, 170, 0.12);
  }
  .bottom-nav svg { display: block; }

  /* Jump seções cidade — centralizado + ícones */
  .city-jump {
    display: none;
  }
  body.cidade-page .city-jump.mobile-only {
    display: block !important;
    position: sticky;
    top: 52px;
    z-index: 50;
    margin: 0 0 0.85rem;
    padding: 0.55rem 0 0.65rem;
    background:
      linear-gradient(180deg, rgba(6, 21, 37, 0.97), rgba(8, 28, 48, 0.9));
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(62, 199, 255, 0.12);
  }
  .city-jump-inner {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 0.4rem;
    max-width: 420px;
    margin: 0 auto;
    padding: 0 0.35rem;
  }
  .city-jump-btn {
    flex: 1 1 0;
    min-width: 0;
    max-width: 76px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    border: 1px solid transparent;
    background: rgba(255,255,255,0.04);
    color: var(--muted);
    font: inherit;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    padding: 0.45rem 0.25rem 0.5rem;
    border-radius: 16px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
    -webkit-tap-highlight-color: transparent;
  }
  .city-jump-btn:active { transform: scale(0.96); }
  .cj-label {
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }
  .cj-ico {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    position: relative;
    display: grid;
    place-items: center;
    flex-shrink: 0;
  }
  .cj-ico::before,
  .cj-ico::after {
    content: '';
    position: absolute;
  }

  /* Resumo — casa / painel */
  .cj-resumo {
    background: linear-gradient(145deg, rgba(62,199,255,0.25), rgba(0,212,170,0.15));
  }
  .cj-resumo::before {
    width: 14px;
    height: 12px;
    bottom: 9px;
    left: 50%;
    transform: translateX(-50%);
    background: #3ec7ff;
    border-radius: 2px 2px 1px 1px;
    box-shadow: 0 0 8px rgba(62,199,255,0.45);
  }
  .cj-resumo::after {
    width: 0;
    height: 0;
    top: 7px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 9px solid transparent;
    border-right: 9px solid transparent;
    border-bottom: 8px solid #7ddfff;
  }

  /* IA — circuito / brilho */
  .cj-ia {
    background: linear-gradient(145deg, rgba(0,212,170,0.3), rgba(62,199,255,0.18));
  }
  .cj-ia::before {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    margin: -5px 0 0 -5px;
    background: #00d4aa;
    box-shadow:
      0 0 0 3px rgba(0,212,170,0.25),
      0 0 12px rgba(0,212,170,0.55);
    animation: cj-pulse 1.8s ease-in-out infinite;
  }
  .cj-ia::after {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(0,212,170,0.55);
    border-radius: 6px;
    top: 50%;
    left: 50%;
    margin: -9px 0 0 -9px;
    transform: rotate(45deg);
  }

  /* Clima — sol + nuvem */
  .cj-clima {
    background: linear-gradient(145deg, rgba(255,176,32,0.28), rgba(62,199,255,0.12));
  }
  .cj-clima::before {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    top: 7px;
    left: 8px;
    background: #ffb020;
    box-shadow: 0 0 10px rgba(255,176,32,0.65);
    animation: cj-spin 8s linear infinite;
  }
  .cj-clima::after {
    width: 16px;
    height: 9px;
    bottom: 8px;
    right: 6px;
    background: #cfefff;
    border-radius: 8px;
    box-shadow: -6px 0 0 -1px #e8f6ff;
  }

  /* Ruas — caminho */
  .cj-ruas {
    background: linear-gradient(145deg, rgba(255,92,122,0.22), rgba(255,176,32,0.12));
  }
  .cj-ruas::before {
    width: 4px;
    height: 18px;
    background: linear-gradient(180deg, #ff8fa3, #ffb020);
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(255,92,122,0.4);
  }
  .cj-ruas::after {
    width: 10px;
    height: 2px;
    background: rgba(255,255,255,0.7);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 -5px 0 rgba(255,255,255,0.45), 0 5px 0 rgba(255,255,255,0.45);
    animation: cj-dash 1.2s steps(2) infinite;
  }

  /* Sabia — lâmpada / ideia */
  .cj-sabia {
    background: linear-gradient(145deg, rgba(196,181,255,0.28), rgba(62,199,255,0.12));
  }
  .cj-sabia::before {
    width: 12px;
    height: 12px;
    border-radius: 50% 50% 45% 45%;
    top: 7px;
    left: 50%;
    margin-left: -6px;
    background: #c4b5ff;
    box-shadow: 0 0 10px rgba(196,181,255,0.55);
    animation: cj-glow 2s ease-in-out infinite;
  }
  .cj-sabia::after {
    width: 6px;
    height: 4px;
    bottom: 7px;
    left: 50%;
    margin-left: -3px;
    background: #a89cff;
    border-radius: 0 0 2px 2px;
  }

  .city-jump-btn.active {
    color: var(--text);
    background: rgba(255,255,255,0.08);
    border-color: rgba(0,212,170,0.45);
    box-shadow:
      0 0 0 1px rgba(0,212,170,0.15),
      0 8px 20px rgba(0, 0, 0, 0.25);
  }
  .city-jump-btn.active .cj-label {
    color: #7dffc4;
  }
  .city-jump-btn.active .cj-ico {
    transform: translateY(-1px) scale(1.06);
  }

  @keyframes cj-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.8; }
  }
  @keyframes cj-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
  }
  @keyframes cj-dash {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
  }
  @keyframes cj-glow {
    0%, 100% { box-shadow: 0 0 8px rgba(196,181,255,0.4); }
    50% { box-shadow: 0 0 14px rgba(196,181,255,0.85); }
  }

  @media (max-width: 380px) {
    .city-jump-inner { gap: 0.25rem; }
    .city-jump-btn { font-size: 0.62rem; padding: 0.4rem 0.15rem 0.45rem; }
    .cj-ico { width: 30px; height: 30px; border-radius: 10px; }
  }

  body.cidade-page .city-sec {
    display: none;
  }
  body.cidade-page .city-sec.is-active {
    display: block;
    animation: fadeUp 0.28s ease;
  }
  body.cidade-page .city-hero {
    margin-bottom: 0.75rem;
    padding: 0.85rem;
  }
  body.cidade-page .city-hero h1 {
    font-size: 1.55rem !important;
  }
  body.cidade-page .year-bar {
    gap: 0.45rem;
  }
  body.cidade-page .year-bar .btn,
  body.cidade-page .year-bar a.btn {
    flex: 1;
    justify-content: center;
    text-align: center;
  }
  body.cidade-page .month-strip {
    display: flex !important;
    grid-template-columns: none !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 0.5rem;
    padding-bottom: 0.35rem;
  }
  body.cidade-page .month-chip {
    flex: 0 0 108px;
  }

  /* Sheet Mais */
  .more-sheet-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 10000;
  }
  .more-sheet {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10001;
    background: #0c243d;
    border-radius: 22px 22px 0 0;
    border: 1px solid var(--stroke);
    border-bottom: 0;
    padding: 0.65rem 1rem calc(1.1rem + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -16px 40px rgba(0,0,0,0.45);
    max-height: min(78vh, 560px);
    overflow: auto;
    animation: sheetUp 0.28s ease;
  }
  @keyframes sheetUp {
    from { transform: translateY(30%); opacity: 0.6; }
    to { transform: translateY(0); opacity: 1; }
  }
  .more-sheet[hidden],
  .more-sheet-backdrop[hidden] { display: none !important; }
  .more-sheet-handle {
    width: 42px;
    height: 4px;
    border-radius: 999px;
    background: rgba(255,255,255,0.2);
    margin: 0.15rem auto 0.75rem;
  }
  .more-sheet-title {
    margin: 0 0 0.85rem;
    font-family: var(--display);
    font-size: 1.15rem;
  }
  .more-sheet-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem;
  }
  .more-sheet-item {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    align-items: flex-start;
    padding: 0.85rem 0.8rem;
    border-radius: 14px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--stroke);
    color: var(--text);
    font: inherit;
    font-weight: 600;
    font-size: 0.88rem;
    text-align: left;
    cursor: pointer;
  }
  .more-ico {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(0,212,170,0.15);
    display: inline-block;
    position: relative;
  }
  .more-ico::before {
    content: '';
    position: absolute;
    inset: 7px;
    border: 2px solid var(--accent);
    border-radius: 50%;
  }
  .more-ico-sun::before { border-radius: 50%; box-shadow: 0 0 0 2px rgba(0,212,170,0.25); }
  .more-ico-map::before { border-radius: 3px; }
  .more-ico-bell::before { border-radius: 40% 40% 20% 20%; top: 6px; bottom: 8px; }
  .more-sheet-city {
    margin-top: 1rem;
  }
  .more-sheet-city p {
    margin: 0 0 0.45rem;
    color: var(--muted);
    font-size: 0.8rem;
  }
  .more-sheet-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
  }
  .more-sheet-chips a {
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    background: rgba(0,212,170,0.12);
    border: 1px solid rgba(0,212,170,0.3);
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 700;
  }
  .more-sheet-close {
    width: 100%;
    margin-top: 1rem;
    justify-content: center;
  }

  body.has-bottom-nav .shell {
    padding: 0.85rem 0.85rem 5.5rem;
  }
  body.mapas-page.has-bottom-nav .shell.mapas-shell {
    padding: 0.3rem 0 0 !important;
  }
  body.has-bottom-nav .footer-mini {
    padding-bottom: 5rem;
  }

  .app-nav { padding: 0.55rem 0 0; }
  .app-nav-inner {
    padding: 0 0.75rem 0.45rem;
    gap: 0.5rem;
  }
  .brand-logo {
    height: 36px;
    max-width: 100px;
    border-radius: 8px;
  }
  .user-chip {
    padding: 0.25rem 0.5rem 0.25rem 0.25rem;
    gap: 0.35rem;
  }
  .user-name { display: none; }
  .user-avatar { width: 28px; height: 28px; font-size: 0.75rem; }
  .user-logout { margin-left: 0; font-size: 0.75rem; }

  .shell {
    padding: 0.85rem 0.85rem 2rem;
  }

  .hero-app {
    gap: 0.85rem;
    margin-bottom: 1rem;
    min-height: 0;
  }
  .hero-copy h1 {
    font-size: 1.55rem;
    line-height: 1.15;
    margin: 0 0 0.55rem;
  }
  .hero-lead {
    font-size: 0.92rem !important;
    line-height: 1.4 !important;
    margin: 0 0 0.85rem !important;
  }
  .hero-actions {
    margin-top: 0.85rem;
    gap: 0.5rem;
  }
  .hero-actions .btn {
    flex: 1;
    min-width: 0;
    padding: 0.7rem 0.85rem;
    font-size: 0.9rem;
  }

  .search-box {
    padding: 0.7rem 0.85rem;
    border-radius: 14px;
  }
  .search-box input { font-size: 0.95rem; }

  .weather-showcase {
    display: block;
    padding: 1rem 0.85rem !important;
    border-radius: 20px;
  }
  .weather-showcase .wx-img-lg {
    width: 88px !important;
    height: 88px !important;
  }
  .wx-showcase-title { font-size: 1.05rem; margin: 0.4rem 0 0.2rem; }
  .wx-showcase-sub { font-size: 0.82rem; }
  .wx-row-pretty { margin-top: 0.65rem; padding: 0.45rem; }
  .weather-showcase .wx-img-sm {
    width: 36px !important;
    height: 36px !important;
  }
  .wx-showcase-cta .btn { width: 100%; min-width: 0; }

  .panel {
    padding: 0.9rem;
    border-radius: 16px;
  }
  .panel-title { font-size: 1rem; margin-bottom: 0.65rem; }

  .grid-3 {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 0.5rem;
  }
  .stat-card {
    padding: 0.65rem 0.45rem;
    border-radius: 12px;
    text-align: center;
  }
  .stat-card .label { font-size: 0.68rem; line-height: 1.2; }
  .stat-card .value { font-size: 1.15rem; margin-top: 0.15rem; }

  .grid-2 {
    grid-template-columns: 1fr !important;
    gap: 0.75rem;
  }

  .voce-sabia-panel {
    padding: 1rem;
    border-radius: 16px;
    margin-bottom: 1rem !important;
  }
  .voce-sabia-badge {
    font-size: 0.75rem;
    padding: 0.3rem 0.65rem;
    margin-bottom: 0.65rem;
  }
  .voce-sabia-card h3 { font-size: 1.05rem; }
  .vs-fato { font-size: 0.92rem; margin-bottom: 0.75rem; }
  .vs-stat { min-width: 0; flex: 1; padding: 0.55rem 0.65rem; }
  .vs-num { font-size: 1rem; }

  .insight-list { font-size: 0.9rem; padding-left: 1.1rem; }
  .insight-list li { margin-bottom: 0.35rem; }
  .shortcut-list { gap: 0.45rem; }
  .shortcut-list .btn { padding: 0.65rem 0.85rem; font-size: 0.9rem; }

  .month-strip { grid-template-columns: repeat(3, 1fr) !important; gap: 0.45rem; }
  .month-chip { padding: 0.55rem 0.3rem; border-radius: 12px; }
  .month-chip .m-temp { font-size: 0.95rem; }

  .tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 0.35rem;
    padding-bottom: 0.55rem;
    margin-bottom: 0.75rem;
  }
  .tab-btn {
    flex: 0 0 auto;
    padding: 0.55rem 0.95rem;
    font-size: 0.82rem;
    white-space: nowrap;
    border-radius: 999px;
  }

  .mobile-only { display: block !important; }
  .btn-gmaps.mobile-only,
  .btn-gmaps { display: inline-flex !important; }
  .route-mobile-bar.mobile-only:not([hidden]) {
    display: flex !important;
  }

  .streets-layout.mode-routes {
    display: flex;
    flex-direction: column;
  }
  .streets-layout.mode-routes .streets-map-col {
    order: -1;
  }
  .streets-map-wrap {
    position: sticky;
    top: 52px;
    z-index: 40;
    background: rgba(6, 21, 37, 0.92);
    backdrop-filter: blur(12px);
    padding: 0.35rem 0 0.55rem;
    margin: 0 -0.15rem 0.35rem;
  }
  #street-map {
    height: 220px;
    border-radius: 14px;
  }
  .map-caption { font-size: 0.78rem; margin-top: 0.4rem; }

  .route-card {
    padding: 0.9rem;
    border-radius: 14px;
  }
  .route-card.selected {
    border-color: rgba(0, 212, 170, 0.55);
    box-shadow: 0 0 0 1px rgba(0, 212, 170, 0.25);
  }
  .route-card .path {
    font-size: 0.88rem;
  }
  .streets-list-col .street-item {
    -webkit-tap-highlight-color: transparent;
  }

  .hydro-grid { grid-template-columns: 1fr; }
  .snow-dates li { grid-template-columns: 96px 1fr; }

  .hydro-panel .panel-title { font-size: 1.05rem; line-height: 1.25; }
  .hydro-lead { font-size: 0.85rem; margin-bottom: 0.75rem; }
  .hydro-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 0.4rem;
    padding-bottom: 0.45rem;
    margin-bottom: 0.65rem;
    scrollbar-width: none;
  }
  .hydro-tabs::-webkit-scrollbar { display: none; }
  .hydro-tabs .tab-btn {
    flex: 0 0 auto;
    min-height: 42px;
    padding: 0.55rem 1rem;
    font-size: 0.84rem;
  }
  .hydro-card-full {
    padding: 0.95rem;
    border-radius: 14px;
  }
  .hydro-steps { font-size: 0.88rem; }
  .river-list li { padding: 0.75rem 0; }
  .river-top strong { font-size: 0.92rem; line-height: 1.3; }

  .city-hero {
    gap: 0.75rem;
    text-align: left !important;
  }
  .city-hero .wx-img-lg,
  .city-hero .wx-img {
    width: 88px !important;
    height: 88px !important;
  }

  .auth-page { padding: 0.85rem; align-items: start; padding-top: 1.25rem; }
  .auth-card {
    padding: 1.25rem 1rem;
    border-radius: 20px;
  }
  .auth-card h1 { font-size: 1.45rem; }
  .auth-card .sub { font-size: 0.9rem; margin-bottom: 1rem; }
  .auth-card .brand-logo {
    height: 64px !important;
    max-width: 160px !important;
  }
  .field { margin-bottom: 0.75rem; }
  .field input,
  .input-password input {
    padding: 0.75rem 0.9rem;
    font-size: 16px; /* evita zoom iOS */
  }
  .input-password input { padding-right: 2.5rem; }
  .btn { padding: 0.75rem 1rem; }
  .btn-social { margin-top: 0.45rem; font-size: 0.9rem; }

  .footer-mini {
    font-size: 0.75rem;
    padding: 1.25rem 0.75rem;
    line-height: 1.4;
  }

  .page-title-sm {
    font-size: 1.35rem !important;
  }

  .city-hero {
    gap: 0.75rem !important;
  }
  .city-hero h1 {
    font-size: 1.45rem !important;
  }
}

@media (max-width: 400px) {
  .hero-copy h1 { font-size: 1.35rem; }
  .grid-3 { gap: 0.35rem; }
  .stat-card .value { font-size: 1.05rem; }
}

.btn-back-inline {
  display: inline-flex;
  align-items: center;
  color: var(--accent-2);
  font-weight: 600;
  font-size: 0.92rem;
}
@media (min-width: 901px) {
  .mobile-only-back { display: none; }
}

.footer-mini {
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  padding: 2rem 1rem;
  opacity: 0.8;
}

@keyframes sunPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}
@keyframes pulseSun {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.15); opacity: 0.85; }
}
@keyframes spinRays {
  to { transform: rotate(360deg); }
}
@keyframes floatCloud {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(6px); }
}
@keyframes rainFall {
  0% { transform: translateY(0); opacity: 0; }
  20% { opacity: 1; }
  100% { transform: translateY(36px); opacity: 0; }
}
@keyframes snowFall {
  0% { transform: translate(0, 0); opacity: 0; }
  20% { opacity: 1; }
  100% { transform: translate(8px, 40px); opacity: 0; }
}
@keyframes boltFlash {
  0%, 40%, 60%, 100% { opacity: 0.15; }
  45%, 55% { opacity: 1; }
}
@keyframes seaBob {
  0%, 100% { transform: translateY(0) scaleX(1); }
  50% { transform: translateY(-4px) scaleX(1.03); }
}
@keyframes foamMove {
  to { transform: translateX(28px); }
}
@keyframes frostPulse {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.25); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in { animation: fadeUp 0.45s ease both; }
.delay-1 { animation-delay: 0.08s; }
.delay-2 { animation-delay: 0.16s; }
.delay-3 { animation-delay: 0.24s; }
