:root {
  --bg: #f8fafc;
  --bg-2: #ffffff;
  --panel: #ffffff;
  --panel-2: #f1f5f9;
  --panel-hover: #e2e8f0;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --text: #0f172a;
  --text-2: #334155;
  --muted: #64748b;
  --accent: #d97706; /* Golden Amber from logo Farol da Cidade & book */
  --accent-2: #ea580c; /* Sunset Orange from logo community figures */
  --accent-subtle: #fef3c7;
  --kids: #16a34a; /* Fresh Green from logo compass star */
  --brand-blue: #2563eb; /* Ocean Blue from logo lighthouse & waves */
  --radius: 14px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Space Grotesk", var(--font);
  --topbar-height: 72px;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  max-width: 100vw;
}
body {
  background: var(--bg);
  color: var(--text);
  font: 14px/1.45 var(--font);
  -webkit-font-smoothing: antialiased;
}
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { margin: 0; font-family: var(--display); letter-spacing: -.01em; }
.muted { color: var(--muted); margin: 2px 0 0; }
[hidden] { display: none !important; }

/* ---------- Top bar ---------- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000; /* above Leaflet panes */
  display: flex; align-items: center; gap: 24px;
  padding: 14px 28px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.topbar-logo-img {
  height: 40px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  display: block;
}
.brand-mark { width: 36px; height: 36px; color: var(--accent); }
.brand-emblem-img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 8px;
}
.brand h1 { font-size: 19px; }
.tagline { margin: 0; font-size: 12px; color: var(--muted); }

.search {
  flex: 1; max-width: 560px;
  display: flex; align-items: center; gap: 10px;
  background: var(--panel-2); border: 1px solid var(--line);
  border-radius: 999px; padding: 9px 16px;
  transition: border-color .15s, box-shadow .15s;
}
.search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.15); }
.search svg { width: 17px; height: 17px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
.search input { flex: 1; background: none; border: 0; outline: 0; color: var(--text); font: inherit; }

/* ---------- Topbar Toggles (Grátis / Infantil) ---------- */
.topbar-mobile-controls {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.topbar-compact-btn {
  display: none;
}
.topbar-toggles {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.kids-toggle,
.free-toggle,
.toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 13px 7px 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  transition: border-color .15s, color .15s, background .15s;
  user-select: none;
  white-space: nowrap;
}

.kids-toggle .switch,
.free-toggle .switch,
.toggle-btn .switch {
  width: 32px;
  height: 18px;
  border-radius: 999px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  position: relative;
  transition: background .15s, border-color .15s;
  flex-shrink: 0;
}

.kids-toggle .switch i,
.free-toggle .switch i,
.toggle-btn .switch i {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--muted);
  transition: transform .15s, background .15s;
}

.kids-toggle:hover,
.free-toggle:hover,
.toggle-btn:hover {
  border-color: var(--kids);
}

.kids-toggle[aria-checked="true"],
.free-toggle[aria-checked="true"],
.toggle-btn[aria-checked="true"] {
  color: var(--text);
  border-color: var(--kids);
}

.kids-toggle[aria-checked="true"] .switch,
.free-toggle[aria-checked="true"] .switch,
.toggle-btn[aria-checked="true"] .switch {
  background: color-mix(in srgb, var(--kids) 35%, transparent);
  border-color: var(--kids);
}

.kids-toggle[aria-checked="true"] .switch i,
.free-toggle[aria-checked="true"] .switch i,
.toggle-btn[aria-checked="true"] .switch i {
  transform: translateX(14px);
  background: var(--kids);
}

/* Proximity Toggle Specific Colors */
.proximity-toggle:hover {
  border-color: #38bdf8;
}
.proximity-toggle[aria-checked="true"],
.proximity-toggle.active {
  color: #38bdf8;
  border-color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
}
.proximity-toggle[aria-checked="true"] .switch,
.proximity-toggle.active .switch {
  background: rgba(56, 189, 248, 0.3);
  border-color: #38bdf8;
}
.proximity-toggle[aria-checked="true"] .switch i,
.proximity-toggle.active .switch i {
  transform: translateX(14px);
  background: #38bdf8;
}


/* ---------- Layout ---------- */
.layout { display: grid; grid-template-columns: 320px 1fr; gap: 28px; padding: calc(var(--topbar-height) + 18px) 28px 60px; max-width: 1500px; margin: 0 auto; }
.sidebar { align-self: start; display: flex; flex-direction: column; gap: 14px; }

.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.panel h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-family: var(--font); font-weight: 600; }
.link { background: none; border: 0; color: var(--accent); font-size: 12px; padding: 0; }
.link:hover { text-decoration: underline; }

/* ---------- Calendar ---------- */
.cal-month-wrap { display: block; margin-top: 14px; }
.cal-toggle-btn { display: none; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cal-head h2 { font-size: 16px; }
.icon-btn { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel-2); font-size: 18px; line-height: 1; }
.icon-btn:hover { border-color: var(--accent); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.cal-weekdays span { text-align: center; font-size: 11px; color: var(--muted); padding: 4px 0; font-weight: 600; }
.cal-day {
  position: relative; aspect-ratio: 1; border: 0; border-radius: 9px;
  background: transparent; font-size: 13px; font-weight: 500;
  display: flex; align-items: center; justify-content: center;
  transition: background .12s;
}
.cal-day:hover { background: var(--panel-2); }
.cal-day.out { color: #cbd5e1; }
.cal-day.past:not(.selected):not(.in-range) { color: #94a3b8; }
.cal-day.today { box-shadow: inset 0 0 0 1.5px var(--accent); font-weight: 700; }
.cal-day.in-range { background: rgba(217, 119, 6, 0.14); border-radius: 0; color: var(--text); }
.cal-day.range-start { border-radius: 9px 0 0 9px; }
.cal-day.range-end { border-radius: 0 9px 9px 0; }
.cal-day.selected { background: var(--accent); color: #ffffff; border-radius: 9px; font-weight: 700; }
.cal-day.selected.range-start:not(.range-end) { border-radius: 9px 0 0 9px; }
.cal-day.selected.range-end:not(.range-start) { border-radius: 0 9px 9px 0; }
.hint { font-size: 11px; color: var(--muted); margin: 10px 0 8px; text-align: center; }
.presets { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 12px; }
.presets button { background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; padding: 7px; font-size: 12px; font-weight: 500; }
.presets button:hover, .presets button.active { border-color: var(--accent); color: var(--accent); }

/* ---------- Proximity Filter Panel ---------- */
.proximity-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  transition: border-color .2s ease, background .2s ease;
}
.proximity-panel.prox-active {
  border-color: rgba(56, 189, 248, 0.5);
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.05), var(--panel));
}
.proximity-head-title {
  display: flex;
  align-items: center;
  gap: 8px;
}
.proximity-icon {
  color: #38bdf8;
  flex-shrink: 0;
}
.proximity-panel-switch {
  padding: 4px 6px;
  min-height: 28px;
}
.proximity-panel-switch[aria-checked="true"] .switch,
.proximity-panel-switch.active .switch {
  background: rgba(56, 189, 248, 0.3);
  border-color: #38bdf8;
}
.proximity-panel-switch[aria-checked="true"] .switch i,
.proximity-panel-switch.active .switch i {
  background: #38bdf8;
  transform: translateX(14px);
}
.proximity-subtitle {
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 10px;
  line-height: 1.35;
}
.proximity-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.proximity-radius-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.proximity-radius-badge {
  font-size: 12.5px;
  font-weight: 700;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 2.5px 8px;
  border-radius: 6px;
}
.proximity-slider-wrap {
  width: 100%;
}
.proximity-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: var(--line);
  outline: none;
  cursor: pointer;
}
.proximity-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #38bdf8;
  cursor: pointer;
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.5);
  transition: transform .1s ease;
}
.proximity-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}
.proximity-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #38bdf8;
  cursor: pointer;
  border: none;
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.5);
}
.proximity-presets-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}
.prox-chip {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 5px 0;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  text-align: center;
  transition: all .15s ease;
}
.prox-chip:hover {
  border-color: var(--brand-blue);
  color: var(--text);
}
.prox-chip.active {
  background: var(--brand-blue);
  border-color: var(--brand-blue);
  color: #ffffff;
  font-weight: 700;
}
.proximity-feedback {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.4;
}
.prox-loading {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--brand-blue);
}
.prox-error {
  color: #ef4444;
}
.spinner-inline {
  display: inline-block;
  width: 12px;
  height: 12px;
  border: 2px solid rgba(37, 99, 235, 0.3);
  border-top-color: var(--brand-blue);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

/* ---------- Filters ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--line); background: var(--panel-2);
  border-radius: 999px; padding: 5px 11px; font-size: 12px; font-weight: 500;
  transition: all .12s;
}
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.chip .n { color: var(--muted); font-size: 11px; }
.chip.active { background: color-mix(in srgb, var(--c) 16%, transparent); border-color: var(--c); color: var(--text); font-weight: 600; }
.chip:hover { border-color: var(--c); }

.segmented { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; background: var(--panel-2); border-radius: 10px; padding: 4px; }
.segmented button { grid-column: span 2; border: 0; background: none; padding: 7px 6px; border-radius: 7px; font-size: 12px; color: var(--muted); font-weight: 500; white-space: nowrap; }
.segmented button.active { background: var(--panel); color: var(--text); box-shadow: 0 1px 3px rgba(15,23,42,.08), 0 1px 2px rgba(15,23,42,.04); }

/* ---------- Content ---------- */
.content-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 12px; flex-wrap: wrap; }
.content-head h2 { font-size: 26px; }
.active-filters { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.active-filters:empty { display: none; }
.active-filters .pill { background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 4px 6px 4px 12px; font-size: 12px; display: inline-flex; align-items: center; gap: 6px; }
.active-filters .pill button { background: var(--panel-2); border: 0; width: 18px; height: 18px; border-radius: 50%; font-size: 11px; line-height: 1; color: var(--muted); }

/* ---------- Lista / Mapa toggle ---------- */
.view-toggle { display: inline-flex; gap: 4px; background: var(--panel-2); border-radius: 10px; padding: 4px; }
.view-toggle button { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; padding: 6px 12px; border-radius: 7px; font-size: 12.5px; font-weight: 500; color: var(--muted); }
.view-toggle button svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.view-toggle button.active { background: var(--panel); color: var(--text); box-shadow: 0 1px 3px rgba(15,23,42,.08), 0 1px 2px rgba(15,23,42,.04); }

/* The agenda renders ~1400 cards (~38k nodes). Without this, every frame of the expand animation re-walks the
   whole tree in pre-paint because everything below the card shifts. Off-screen groups/cards are now skipped;
   `auto` in contain-intrinsic-size remembers each element's real height once it has been rendered. */
.day-group { margin-bottom: 28px; content-visibility: auto; contain-intrinsic-size: auto 1200px; }
.day-head {
  position: sticky; top: var(--topbar-height); z-index: 2;
  display: flex; align-items: baseline; gap: 12px;
  padding: 10px 0; margin-bottom: 6px;
  background: linear-gradient(var(--bg) 70%, transparent);
}
.day-head .dnum { font-family: var(--display); font-size: 30px; font-weight: 700; line-height: 1; }
.day-head .dname { font-weight: 600; }
.day-head .dmonth { color: var(--muted); }
.day-head .count { margin-left: auto; font-size: 12px; color: var(--muted); }
.day-head .badge-today { background: var(--accent); color: #ffffff; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; text-transform: uppercase; letter-spacing: .05em; }

.cards { display: grid; gap: 8px; }
.card {
  --c: var(--accent);
  display: flex; flex-direction: column;
  background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--c);
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
  text-decoration: none; color: inherit; cursor: pointer;
  transition: transform .12s, border-color .12s, background .12s, box-shadow .12s;
  overflow: hidden; position: relative;
  content-visibility: auto; contain-intrinsic-size: auto 80px; /* busy days hold 100+ cards */
}
.card:hover { transform: translateY(-1px); background: #ffffff; border-color: color-mix(in srgb, var(--c) 50%, var(--line)); border-left-color: var(--c); box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06); }
.card.expanded { background: #ffffff; border-color: var(--c); transform: none; box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08); }
.card-main { display: grid; grid-template-columns: 86px 1fr auto; gap: 18px; align-items: center; padding: 14px 18px; border-bottom: 1px solid transparent; transition: border-color .12s; }
.card.expanded .card-main { border-bottom: 1px solid var(--line); }
.card-extra {
  display: grid;
  grid-template-rows: 0fr;
  visibility: hidden; /* collapsed content isn't focusable/clickable */
  transition: grid-template-rows .25s ease, visibility 0s linear .25s;
}
.card.expanded .card-extra {
  grid-template-rows: 1fr;
  visibility: visible;
  transition: grid-template-rows .25s ease, visibility 0s;
}
/* No padding here: a padded grid item can't shrink below its padding, which made the text peek through. */
.card-extra-inner { min-height: 0; overflow: hidden; }
.card-extra-body { padding: 14px 18px; }
.card-desc { margin-bottom: 12px; white-space: pre-wrap; color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.card-actions { display: flex; justify-content: flex-end; }
.btn-collapse { display: inline-block; background: var(--panel); border: 1px solid var(--line); padding: 5px 12px; border-radius: 6px; font-size: 11px; font-weight: 600; color: var(--muted); transition: all .12s; }
.btn-collapse:hover { border-color: var(--accent); color: var(--text); background: var(--panel-2); }
.card .time { font-variant-numeric: tabular-nums; }
.card .time .start { font-family: var(--display); font-size: 20px; font-weight: 700; display: block; line-height: 1.1; }
.card .time .start.long { font-size: 13px; font-family: var(--sans); font-weight: 700; text-transform: uppercase; line-height: 1.2; word-wrap: break-word; }
.card .time .end { font-size: 12px; color: var(--muted); }
.card .time sup { color: var(--accent-2); font-size: 9px; font-weight: 700; margin-left: 2px; }
.card .title { font-size: 15px; font-weight: 600; margin: 0 0 6px; }
.card .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; color: var(--muted); font-size: 12.5px; }
.card .meta svg { width: 13px; height: 13px; vertical-align: -2px; margin-right: 4px; fill: none; stroke: currentColor; stroke-width: 2; }
.cat-pill { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); }
.kids-pill { padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; color: var(--kids); background: color-mix(in srgb, var(--kids) 14%, transparent); }
.dist-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: rgba(56, 189, 248, 0.14);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.35);
  font-size: 11px;
  font-weight: 700;
  padding: 1.5px 7px;
  border-radius: 6px;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.card .right { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.price { font-weight: 700; font-size: 14px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.price.free { color: #4ade80; }
.price.tbc { font-weight: 500; font-style: italic; opacity: .7; }
.src { font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 6px; border: 1px solid var(--line); display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.src i { width: 7px; height: 7px; border-radius: 2px; background: var(--sc); }

.empty { text-align: center; padding: 80px 20px; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); }
.empty strong { display: block; color: var(--text); font-size: 16px; margin-bottom: 6px; }

.content { min-width: 0; }

/* ---------- Map ---------- */
#map { height: calc(100vh - 230px); min-height: 420px; border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; background: #0e1118; }
/* Google Maps InfoWindow Customization */
.map-note { font-size: 12px; margin-top: 8px; }
.gm-style-iw.gm-style-iw-c { background: var(--panel); border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(0,0,0,.5); padding: 0 !important; border-radius: 12px; }
.gm-style-iw-tc::after { background: var(--panel); }
.gm-style .gm-style-iw-d { overflow: auto !important; max-height: 320px; padding: 0 !important; }
.gm-ui-hover-effect { filter: invert(0.8); top: 8px !important; right: 8px !important; }
.farol-popup { margin: 16px; color: var(--text); width: 300px; }
.mp-venue { font-family: var(--display); font-weight: 700; font-size: 15px; padding-right: 14px; }
.mp-addr, .mp-count { color: var(--muted); font-size: 12px; }
.mp-count { margin: 2px 0 8px; }
.mp-row { display: block; text-decoration: none; color: inherit; border-left: 3px solid var(--c); padding: 5px 0 5px 9px; margin-top: 6px; border-radius: 2px; }
.mp-row:hover { background: var(--panel-2); }
.mp-when { display: block; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.mp-title { display: block; font-weight: 600; color: var(--text); }
.mp-meta { display: block; font-size: 11.5px; color: var(--c); }
.mp-more { margin-top: 8px; font-size: 12px; color: var(--muted); }
.user-loc-popup { width: auto !important; min-width: 140px; margin: 12px 14px !important; }
.map-locate-btn {
  background: var(--panel, #161b26);
  color: var(--text, #f1f5f9);
  border: 1px solid var(--line, #283044);
  border-radius: 8px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 14px;
  margin-bottom: 24px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  transition: all 0.15s ease;
}
.map-locate-btn:hover {
  background: var(--panel-2, #1f2637);
  color: var(--accent, #ffb547);
  border-color: var(--accent, #ffb547);
}
.map-locate-btn:focus-visible {
  outline: 2px solid var(--accent, #ffb547);
  outline-offset: 2px;
}

.sample-banner { background: rgba(255,181,71,.08); border: 1px solid rgba(255,181,71,.25); color: var(--accent); border-radius: 10px; padding: 8px 14px; font-size: 12.5px; margin-bottom: 18px; }

@media (min-width: 769px) and (max-width: 960px) {
  .layout { grid-template-columns: 280px 1fr; gap: 20px; padding: calc(var(--topbar-height) + 16px) 20px 40px; }
  .cinema-layout { padding: calc(var(--topbar-height) + 16px) 20px 40px; }
  #map { height: 60vh; }
}
.segmented button:nth-child(n+4) { grid-column: span 3; }

.cat-pill.secondary { color: var(--muted); background: var(--bg-hover); font-weight: 500; }

/* ============================================================
   TOP NAVIGATION TABS (EVENTOS / CINEMA)
   ============================================================ */
.nav-tabs {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
}
.nav-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: none;
  padding: 7px 18px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
  transition: all .15s ease;
  user-select: none;
}
.nav-tab svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.nav-tab:hover {
  color: var(--text);
}
.nav-tab.active {
  background: var(--panel-2);
  color: var(--accent);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(217, 119, 6, 0.28);
}

/* ============================================================
   CINEMA SECTION
   ============================================================ */
.cinema-layout {
  padding: calc(var(--topbar-height) + 18px) 28px 60px;
  max-width: 1400px;
  margin: 0 auto;
}

.cinema-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.cinema-dates-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  padding: 4px 2px 6px;
}
.cinema-dates-wrap::-webkit-scrollbar {
  height: 5px;
}
.cinema-dates-wrap::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 3px;
}

.cinema-sublabel {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: .08em;
  white-space: nowrap;
}

.cinema-dates {
  display: flex;
  gap: 8px;
}

.cinema-date-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  min-width: 72px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--muted);
  transition: all .15s ease;
  user-select: none;
}
.cinema-date-btn .d-day {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  opacity: .85;
}
.cinema-date-btn .d-num {
  font-size: 13.5px;
  font-weight: 600;
  margin-top: 2px;
  color: var(--text);
}
.cinema-date-btn:hover {
  border-color: var(--accent);
  color: var(--text);
  transform: translateY(-1px);
}
.cinema-date-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(217, 119, 6, .25);
  transform: translateY(-1px);
}
.cinema-date-btn.active .d-num {
  color: #ffffff;
  font-weight: 700;
}

.cinema-view-toggle button {
  white-space: nowrap;
}

.cinema-filters-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 18px;
  margin-bottom: 24px;
}
.cfilter-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.cfilter-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: .06em;
}
.chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.chips-row .chip {
  cursor: pointer;
}

.segmented-compact {
  display: inline-flex;
  grid-template-columns: none;
}
.segmented-compact button {
  grid-column: auto;
  padding: 5px 12px;
  font-size: 12px;
}

.cinema-status-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 16px;
}
.cinema-status-head h2 {
  font-size: 24px;
}

/* Movies List / Grid */
.cinema-movies-grid {
  display: grid;
  gap: 12px;
}

.movie-card {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 18px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease, transform .12s ease;
  user-select: none;
}
.movie-card:hover {
  border-color: var(--line-strong);
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}
.movie-card.expanded {
  border-color: var(--accent);
  background: #ffffff;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.08);
}

/* Compact Header (Always visible) */
.movie-card-header {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 16px;
  align-items: center;
  width: 100%;
  cursor: pointer;
}

.movie-poster-box {
  position: relative;
  width: 60px;
  aspect-ratio: 2/3;
  border-radius: 8px;
  overflow: hidden;
  background: #171b26;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,.45);
}
.movie-poster-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.movie-poster-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 10px;
  text-align: center;
  padding: 4px;
  background: var(--panel-2);
}

.rating-badge {
  position: absolute;
  top: 4px;
  left: 4px;
  min-width: 20px;
  height: 20px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  color: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,.65);
}

.duration-badge {
  position: absolute;
  bottom: 4px;
  right: 4px;
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(4px);
  padding: 1px 4px;
  border-radius: 4px;
  font-size: 9.5px;
  font-weight: 600;
  color: #ffffff;
  border: 1px solid rgba(255,255,255,.15);
}

.movie-headline {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.movie-title-wrap h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 0;
  color: var(--text);
  line-height: 1.25;
}
.movie-orig-title {
  font-size: 12px;
  color: var(--muted);
  font-style: italic;
  margin-top: 1px;
}

.movie-meta-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.movie-theaters-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--accent);
  background: rgba(255, 181, 71, 0.1);
  border: 1px solid rgba(255, 181, 71, 0.25);
  padding: 2px 8px;
  border-radius: 6px;
}

.tag-pill {
  font-size: 11px;
  font-weight: 500;
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  color: var(--muted);
}

.movie-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.movie-expand-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  transition: all .15s ease;
  cursor: pointer;
  white-space: nowrap;
}
.movie-expand-btn:hover,
.movie-card.expanded .movie-expand-btn {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(255, 181, 71, 0.12);
}
.chevron-icon {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .2s ease;
}
.chevron-icon.open {
  transform: rotate(180deg);
}

.trailer-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 600;
  padding: 6px 11px;
  border-radius: 8px;
  background: rgba(239,68,68,.12);
  color: #f87171;
  border: 1px solid rgba(239,68,68,.3);
  text-decoration: none;
  transition: all .15s ease;
  white-space: nowrap;
}
.trailer-btn:hover {
  background: rgba(239,68,68,.25);
  border-color: #f87171;
  color: #fff;
  transform: translateY(-1px);
}
.trailer-btn svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
}

/* Collapsible Accordion Body */
.movie-card-body {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 12px;
  cursor: default;
  user-select: text;
  animation: cinemaAccordionFadeIn .2s ease;
}
@keyframes cinemaAccordionFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.movie-synopsis-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.movie-synopsis {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
.movie-synopsis.expanded {
  display: block;
}
.movie-synopsis-toggle {
  background: none;
  border: 0;
  color: var(--accent);
  font-size: 11.5px;
  font-weight: 600;
  padding: 0;
  cursor: pointer;
  align-self: flex-start;
}
.movie-synopsis-toggle:hover {
  text-decoration: underline;
}

.movie-credits {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.movie-credits strong {
  color: var(--text);
  font-weight: 600;
}

/* Theaters & Sessions Block */
.theaters-sessions-block {
  margin-top: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 12px;
}
.theaters-sessions-block-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  color: var(--muted);
}
.theaters-sessions-block-head strong {
  color: var(--text);
  font-size: 13px;
}

.theater-schedule-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: rgba(255,255,255,.018);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
}
.theater-schedule-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.theater-schedule-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.theater-schedule-meta {
  font-size: 12px;
  color: var(--muted);
}
.theater-cultural-tag {
  font-size: 11px;
  font-weight: 600;
  color: #38bdf8;
  background: rgba(56,189,248,.12);
  padding: 1px 7px;
  border-radius: 6px;
  border: 1px solid rgba(56,189,248,.25);
}

.sessions-chips-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.session-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 10px;
  text-decoration: none;
  color: var(--text);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  transition: all .14s ease;
}
.session-chip:hover {
  background: rgba(255,181,71,.12);
  border-color: var(--accent);
  transform: translateY(-1px);
  color: var(--text);
}
.session-chip .s-time {
  font-weight: 700;
  font-size: 13.5px;
  color: var(--accent);
  letter-spacing: .02em;
}
.session-chip .s-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(255,255,255,.07);
  color: var(--muted);
  text-transform: uppercase;
}
.session-chip .s-badge.leg {
  color: #60a5fa;
  background: rgba(96,165,250,.14);
}
.session-chip .s-badge.dub {
  color: #fb923c;
  background: rgba(251,146,60,.14);
}
.session-chip .s-badge.nac {
  color: #4ade80;
  background: rgba(74,222,128,.14);
}
.session-chip .s-tech {
  font-size: 10.5px;
  color: var(--muted);
}
.session-chip .s-price {
  font-size: 11px;
  font-weight: 600;
  color: #a3e635;
  margin-left: 2px;
}

/* Theaters Grid (Por Cinema view) */
.cinema-theaters-grid {
  display: grid;
  gap: 20px;
}
.theater-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  display: grid;
  gap: 16px;
}
.theater-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
}
.theater-card-title h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.theater-card-addr {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.theater-card-addr svg {
  width: 14px;
  height: 14px;
  stroke: var(--muted);
  fill: none;
  stroke-width: 2;
}

.theater-movies-list {
  display: grid;
  gap: 12px;
}
.theater-movie-row {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 14px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--panel-2);
  border: 1px solid rgba(255,255,255,.03);
}
.theater-movie-thumb {
  width: 50px;
  aspect-ratio: 2/3;
  border-radius: 6px;
  object-fit: cover;
  background: #171b26;
}
.theater-movie-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.theater-movie-title {
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* ============================================================
   DESKTOP VIEWPORTS (>= 769px) - HIDE MOBILE-ONLY ELEMENTS
   ============================================================ */
@media (min-width: 769px) {
  .mobile-topbar,
  .mobile-bottom-nav,
  .m-drawer-backdrop,
  .m-filter-drawer {
    display: none !important;
  }
}

/* ============================================================
   MOBILE NATIVE APP EXPERIENCE (VIEWPORTS <= 768px)
   Replicates the Android Jetpack Compose App layout & feel
   ============================================================ */
@media (max-width: 768px) {
  :root {
    --topbar-height: 0px;
  }

  /* 1. HIDE DESKTOP HEADER, DESKTOP SIDEBAR & ADS ON MOBILE */
  .topbar {
    display: none !important;
  }
  .sidebar {
    display: none !important;
  }
  .ad-card-strip,
  .ad-sidebar-panel,
  #sidebar-ad-panel {
    display: none !important;
  }

  body {
    padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)) !important;
    background: #f8fafc;
  }

  .layout:not([hidden]),
  .cinema-layout:not([hidden]),
  .search-layout:not([hidden]),
  .add-event-layout:not([hidden]),
  .profile-layout:not([hidden]) {
    display: block !important;
    padding-top: 6px !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
    padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px)) !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    overflow-x: hidden;
  }

  .content-head .view-toggle {
    display: none !important;
  }
  .content-head {
    margin-bottom: 8px !important;
  }
  .content-head h2 {
    font-size: 16px !important;
  }

  /* 2. COMPACT STICKY MOBILE TOPBAR */
  .mobile-topbar {
    display: block;
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    margin: 0;
    padding: 0;
  }

  .mobile-topbar-row {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px 5px;
  }

  .m-topbar-btn {
    height: 38px;
    border-radius: 10px;
    background: #ffffff;
    border: 1px solid var(--line);
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-2);
    cursor: pointer;
    touch-action: manipulation;
    white-space: nowrap;
    transition: all .15s ease;
  }

  .m-topbar-btn:active {
    transform: scale(0.97);
  }

  .m-topbar-btn.active,
  #m-filter-btn.active {
    background: rgba(217, 119, 6, 0.16);
    border-color: rgba(217, 119, 6, 0.7);
    color: var(--accent);
  }

  #m-proximity-btn.active {
    background: rgba(22, 163, 74, 0.16);
    border-color: rgba(22, 163, 74, 0.7);
    color: #16a34a;
  }

  .m-radius-badge {
    height: 38px;
    border-radius: 10px;
    background: rgba(22, 163, 74, 0.12);
    border: 1px solid rgba(22, 163, 74, 0.55);
    color: #16a34a;
    padding: 0 9px;
    font-size: 11.5px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    cursor: pointer;
    touch-action: manipulation;
    white-space: nowrap;
  }
  .m-radius-badge .m-caret {
    font-size: 10px;
    opacity: 0.8;
  }

  .m-topbar-spacer {
    flex: 1;
  }

  #m-view-toggle-btn.active {
    background: rgba(37, 99, 235, 0.16);
    border-color: rgba(37, 99, 235, 0.7);
    color: #2563eb;
  }

  /* 3. 7-DAY QUICK DATE STRIP (SCROLLABLE ROW) */
  .m-date-strip {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
    padding: 3px 10px 7px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .m-date-strip::-webkit-scrollbar {
    display: none;
  }

  .m-date-pill {
    height: 29px;
    border-radius: 8px;
    padding: 0 10px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-2);
    background: #ffffff;
    border: 1px solid var(--line);
    white-space: nowrap;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    touch-action: manipulation;
    transition: all .15s ease;
  }
  .m-date-pill.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #ffffff;
    font-weight: 700;
  }

  /* 4. ACTIVE FILTER CHIPS STRIP */
  .m-active-chips-strip {
    padding: 2px 10px 6px;
    border-top: 1px solid #f1f5f9;
  }
  .m-active-chips-inner {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .m-active-chips-inner::-webkit-scrollbar {
    display: none;
  }
  .m-active-chip {
    height: 28px;
    border-radius: 14px;
    background: rgba(217, 119, 6, 0.15);
    border: 1px solid rgba(217, 119, 6, 0.45);
    color: var(--accent);
    padding: 0 9px;
    font-size: 11.5px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    cursor: pointer;
  }
  .m-active-chip:active {
    opacity: 0.7;
  }
  .m-chip-close {
    font-size: 13px;
    line-height: 1;
    margin-left: 2px;
  }

  /* 5. SLIDING FILTER DRAWER & BACKDROP */
  .m-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    z-index: 2000;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    transition: opacity .22s ease;
  }
  .m-drawer-backdrop[hidden] {
    display: none !important;
  }

  .m-filter-drawer {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: min(340px, 86vw);
    background: #ffffff;
    z-index: 2001;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform .25s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .m-filter-drawer.open {
    transform: translateX(0);
  }

  .m-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    border-bottom: 1px solid var(--line);
  }
  .m-drawer-title-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .m-drawer-title-wrap h3 {
    font-size: 16.5px;
    font-weight: 700;
    color: var(--text);
  }
  .m-drawer-close {
    background: none;
    border: none;
    font-size: 18px;
    color: var(--muted);
    padding: 6px 10px;
    cursor: pointer;
    border-radius: 8px;
  }

  .m-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    -webkit-overflow-scrolling: touch;
  }

  .m-drawer-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .m-drawer-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .m-drawer-subtitle {
    font-size: 11px;
    font-weight: 700;
    color: var(--muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .m-feed-modes {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }
  .m-feed-pill {
    height: 38px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid var(--line);
    padding: 0 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--text-2);
    cursor: pointer;
    text-align: left;
    transition: all .15s;
  }
  .m-feed-pill.active {
    background: rgba(217, 119, 6, 0.16);
    border-color: var(--accent);
    color: var(--accent);
    font-weight: 700;
  }

  .m-drawer-prox-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .m-switch-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
  }
  .m-switch-track {
    display: inline-block;
    width: 38px;
    height: 22px;
    background: var(--line);
    border-radius: 999px;
    position: relative;
    transition: background .2s ease;
  }
  .m-switch-track i {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    background: #ffffff;
    border-radius: 50%;
    transition: transform .2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  }
  .m-switch-btn[aria-checked="true"] .m-switch-track {
    background: #16a34a;
  }
  .m-switch-btn[aria-checked="true"] .m-switch-track i {
    transform: translateX(16px);
  }

  .m-drawer-slider-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2px;
  }
  .m-slider-value {
    color: #16a34a;
    font-weight: 700;
    font-size: 13px;
  }
  .m-slider {
    width: 100%;
    accent-color: #16a34a;
    margin: 6px 0;
  }
  .m-radius-presets {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
  }
  .m-chip {
    height: 30px;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid var(--line);
    padding: 0 10px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-2);
    cursor: pointer;
  }
  .m-chip.active {
    background: rgba(22, 163, 74, 0.16);
    border-color: #16a34a;
    color: #16a34a;
    font-weight: 700;
  }

  .m-date-presets-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }
  .m-date-preset-btn {
    height: 36px;
    border-radius: 9px;
    background: #f8fafc;
    border: 1px solid var(--line);
    font-size: 12px;
    font-weight: 500;
    color: var(--text-2);
    cursor: pointer;
    transition: all .15s;
  }
  .m-date-preset-btn.active {
    background: rgba(217, 119, 6, 0.18);
    border-color: var(--accent);
    color: var(--accent);
    font-weight: 700;
  }
  .m-calendar-picker-row {
    margin-top: 4px;
  }
  .m-custom-date-label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 11.5px;
    color: var(--muted);
  }
  .m-date-input {
    height: 36px;
    border-radius: 8px;
    border: 1px solid var(--line);
    padding: 0 10px;
    font-family: inherit;
    font-size: 13px;
    background: #ffffff;
  }

  .m-toggles-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .m-toggle-card {
    height: 38px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid var(--line);
    padding: 0 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--text);
    cursor: pointer;
  }
  .m-toggle-card.active {
    background: rgba(22, 163, 74, 0.14);
    border-color: #16a34a;
    color: #16a34a;
    font-weight: 700;
  }
  .m-toggle-check {
    display: none;
    font-weight: 700;
    color: #16a34a;
  }
  .m-toggle-card.active .m-toggle-check {
    display: inline;
  }

  .m-categories-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }
  .m-cat-pill {
    height: 32px;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid var(--line);
    padding: 0 10px;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    color: var(--text-2);
  }
  .m-cat-pill.active {
    background: rgba(217, 119, 6, 0.16);
    border-color: var(--accent);
    color: var(--accent);
    font-weight: 700;
  }
  .m-cat-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
  }

  .m-link-btn {
    background: none;
    border: none;
    color: var(--accent);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    padding: 2px 6px;
  }
  .m-sources-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-height: 200px;
    overflow-y: auto;
  }
  .m-source-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 12.5px;
    cursor: pointer;
    background: #f8fafc;
    border: 1px solid var(--line);
    color: var(--text-2);
  }
  .m-source-row.active {
    background: rgba(217, 119, 6, 0.12);
    border-color: rgba(217, 119, 6, 0.5);
    color: var(--accent);
    font-weight: 600;
  }
  .m-source-count {
    font-size: 11px;
    color: var(--muted);
    font-weight: 600;
  }

  .m-drawer-footer {
    padding: 12px 18px;
    border-top: 1px solid var(--line);
    display: flex;
    gap: 10px;
    background: #ffffff;
  }
  .m-drawer-reset-btn {
    flex: 1;
    height: 42px;
    border-radius: 10px;
    background: #f1f5f9;
    border: 1px solid var(--line);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-2);
    cursor: pointer;
  }
  .m-drawer-apply-btn {
    flex: 1.4;
    height: 44px;
    border-radius: 10px;
    background: var(--accent);
    color: #ffffff;
    border: none;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(217, 119, 6, 0.3);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 0 12px;
  }

  /* 6. FIXED MOBILE BOTTOM NAVIGATION BAR */
  .mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: #ffffff;
    border-top: 1px solid var(--line);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.04);
  }
  .m-nav-tab {
    flex: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    background: none;
    border: none;
    color: var(--muted);
    font-size: 10.5px;
    font-weight: 500;
    cursor: pointer;
    padding: 4px 0;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: color .15s ease;
  }
  .m-nav-tab svg {
    width: 22px;
    height: 22px;
  }
  .m-nav-tab.active {
    color: var(--accent);
    font-weight: 700;
  }
  .m-nav-tab.active svg {
    color: var(--accent);
  }
  .m-nav-add-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--accent);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -8px;
    box-shadow: 0 3px 10px rgba(217, 119, 6, 0.38);
  }
  .m-nav-add-label {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-2);
    margin-top: 2px;
  }
  .m-nav-tab.m-nav-add.active .m-nav-add-label {
    color: var(--accent);
  }
  .m-nav-avatar-icon {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* 7. DEDICATED SEARCH SCREEN (#section-busca) */
  .search-layout {
    padding: 12px 14px 80px;
    max-width: 640px;
    margin: 0 auto;
  }
  .search-page-input-wrap {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1.5px solid var(--line);
    border-radius: 12px;
    padding: 4px 12px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  }
  .search-page-input-wrap:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.15);
  }
  .search-page-input-icon {
    stroke: var(--muted);
    flex-shrink: 0;
  }
  .search-page-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 14px;
    padding: 8px;
    color: var(--text);
    background: transparent;
  }
  .search-page-clear-btn {
    background: none;
    border: none;
    color: var(--muted);
    font-size: 14px;
    padding: 4px 8px;
    cursor: pointer;
  }
  .search-scope-row {
    display: flex;
    gap: 6px;
    margin-top: 10px;
  }
  .search-scope-btn {
    padding: 6px 14px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid var(--line);
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
    cursor: pointer;
  }
  .search-scope-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #ffffff;
  }
  .search-suggestions-wrap {
    margin-top: 18px;
  }
  .search-suggestions-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 8px;
  }
  .search-suggestions-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  .search-sug-chip {
    padding: 6px 12px;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid var(--line);
    font-size: 12.5px;
    color: var(--text-2);
    cursor: pointer;
  }
  .search-sec-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    margin: 16px 0 10px;
  }
  .search-cards-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .search-empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--muted);
  }
  .search-empty-icon {
    font-size: 36px;
    margin-bottom: 10px;
  }

  /* 8. ADD EVENT SCREEN (#section-add-event) */
  .add-event-layout {
    padding: 14px 14px 80px;
    max-width: 560px;
    margin: 0 auto;
  }
  .add-event-card {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 22px 18px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  }
  .add-event-head {
    text-align: center;
    margin-bottom: 18px;
  }
  .add-event-head h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin-top: 8px;
  }
  .add-event-head p {
    font-size: 13px;
    color: var(--muted);
    margin-top: 4px;
  }
  .add-event-icon-circle {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: rgba(217, 119, 6, 0.12);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
  }
  .add-event-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .add-event-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
  }
  .add-event-form label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-2);
  }
  .add-event-form input,
  .add-event-form select,
  .add-event-form textarea {
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    font-family: inherit;
    font-size: 13.5px;
    background: #ffffff;
    color: var(--text);
    outline: none;
    transition: border-color .15s;
  }
  .add-event-form input:focus,
  .add-event-form select:focus,
  .add-event-form textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.12);
  }
  .form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .add-event-submit-btn {
    width: 100%;
    height: 46px;
    border-radius: 10px;
    background: var(--accent);
    color: #ffffff;
    border: none;
    font-size: 14.5px;
    font-weight: 700;
    margin-top: 10px;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(217, 119, 6, 0.35);
  }
  .add-event-success {
    text-align: center;
    padding: 24px 10px;
  }
  .add-event-success-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(22, 163, 74, 0.15);
    color: #16a34a;
    font-size: 26px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
  }
  .add-event-success h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
  }
  .add-event-success p {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 20px;
  }
  .add-event-success button {
    margin: 4px auto;
    display: block;
    width: 100%;
    max-width: 280px;
    height: 42px;
    border-radius: 10px;
  }

  /* 9. PROFILE SCREEN (#section-perfil) */
  .profile-layout {
    padding: 14px 14px 80px;
    max-width: 560px;
    margin: 0 auto;
  }
  .profile-card {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 20px 18px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  }
  .profile-user-head {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
  }
  .profile-avatar-large {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: var(--accent);
    color: #ffffff;
    font-size: 22px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }
  .profile-user-info h2 {
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
  }
  .profile-user-email {
    font-size: 12.5px;
    color: var(--muted);
  }
  .profile-stats-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 16px 0;
  }
  .profile-stat-box {
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 2px;
    cursor: pointer;
  }
  .profile-stat-box strong {
    font-size: 20px;
    font-weight: 700;
    color: var(--accent);
  }
  .profile-stat-box span {
    font-size: 11.5px;
    color: var(--muted);
  }
  .profile-menu-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    border-top: 1px solid var(--line);
    padding-top: 14px;
  }
  .profile-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 10px;
    border-radius: 10px;
    background: transparent;
    border: none;
    text-align: left;
    cursor: pointer;
    width: 100%;
    transition: background .15s;
  }
  .profile-menu-item:hover,
  .profile-menu-item:active {
    background: #f1f5f9;
  }
  .pmenu-icon {
    font-size: 18px;
    width: 24px;
    text-align: center;
  }
  .pmenu-text {
    flex: 1;
    display: flex;
    flex-direction: column;
  }
  .pmenu-text strong {
    font-size: 13.5px;
    color: var(--text);
    font-weight: 600;
  }
  .pmenu-text span {
    font-size: 11.5px;
    color: var(--muted);
  }
  .pmenu-arrow {
    color: var(--muted);
    font-size: 16px;
  }
  .profile-guest-card {
    text-align: center;
    padding: 28px 18px;
  }
  .profile-guest-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(217, 119, 6, 0.12);
    color: var(--accent);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
  }
  .profile-guest-head h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
  }
  .profile-guest-head p {
    font-size: 13px;
    color: var(--muted);
    max-width: 380px;
    margin: 8px auto 20px;
  }
  .profile-auth-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 320px;
    margin: 0 auto;
  }
  .profile-btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    border-radius: 10px;
    background: #ffffff;
    border: 1px solid var(--line-strong);
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  }
  .profile-btn-email {
    height: 42px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid var(--line);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-2);
    cursor: pointer;
  }
  .profile-auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--muted);
    font-size: 11px;
    margin: 4px 0;
  }
  .profile-auth-divider::before,
  .profile-auth-divider::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid var(--line);
  }
  .profile-auth-divider span {
    padding: 0 8px;
  }
  .profile-guest-perks {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
    max-width: 340px;
    margin-left: auto;
    margin-right: auto;
  }
  .perk-item {
    font-size: 12.5px;
    color: var(--text-2);
    display: flex;
    align-items: center;
    gap: 8px;
  }

  /* Painel de Categorias com quebra natural, SEM scroll horizontal */
  .chips {
    display: flex;
    flex-wrap: wrap;
    overflow-x: hidden;
    gap: 6px;
    padding: 2px 0 4px;
    max-width: 100%;
  }
  .chips::-webkit-scrollbar {
    display: none;
  }
  .chip {
    flex-shrink: 0;
    min-height: 44px;
    padding: 8px 12px;
    font-size: 12.5px;
    touch-action: manipulation;
  }

  /* Presets de data em grid responsivo de 2 colunas, SEM scroll horizontal */
  .presets {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    padding: 0;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }
  .presets::-webkit-scrollbar {
    display: none;
  }
  .presets button {
    width: 100%;
    min-height: 44px;
    padding: 8px 10px;
    font-size: 12.5px;
    touch-action: manipulation;
    text-align: center;
    justify-content: center;
    box-sizing: border-box;
  }

  /* Botao expansor do calendario no mobile ocupando a linha toda */
  .cal-toggle-btn {
    grid-column: 1 / -1;
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: var(--panel-2);
    border: 1px solid var(--accent);
    color: var(--accent);
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 12.5px;
    font-weight: 600;
    min-height: 44px;
    cursor: pointer;
    touch-action: manipulation;
    transition: all 0.15s ease;
    box-sizing: border-box;
  }
  .cal-toggle-btn .caret {
    transition: transform 0.2s ease;
    font-size: 10px;
  }
  .cal-month-wrap {
    display: none;
    margin-top: 10px;
    padding-top: 12px;
    border-top: 1px dashed var(--line);
    animation: calFadeIn 0.2s ease-out;
  }
  .calendar-panel.cal-open .cal-month-wrap {
    display: block;
  }
  .calendar-panel.cal-open .cal-toggle-btn {
    background: var(--accent);
    color: #1a1205;
  }
  .calendar-panel.cal-open .cal-toggle-btn .caret {
    transform: rotate(180deg);
  }

  @keyframes calFadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
  }

  /* Calendario Compacto */
  .cal-head {
    margin-bottom: 8px;
  }
  .cal-head h2 {
    font-size: 15px;
  }
  .cal-head .icon-btn {
    width: 44px;
    height: 44px;
    border-radius: 9px;
    touch-action: manipulation;
  }
  .cal-day {
    min-height: 40px;
    font-size: 14px;
    touch-action: manipulation;
  }

  /* Sticky Day Head no scroll dos eventos */
  .day-head {
    top: var(--topbar-height);
    background: rgba(248, 250, 252, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 8px 0;
    margin-bottom: 4px;
  }
  .day-head .dnum {
    font-size: 26px;
  }

  /* Seletor de Modo do Feed com quebra natural, SEM scroll horizontal */
  .farol-feed-switcher {
    display: flex;
    flex-wrap: wrap;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 4px;
    gap: 6px;
    border-radius: 12px;
  }
  .feed-tab {
    flex: 1 1 calc(50% - 6px);
    min-height: 44px;
    padding: 8px 10px;
    font-size: 12.5px;
    justify-content: center;
    touch-action: manipulation;
    box-sizing: border-box;
  }
  .feed-tab:first-child:nth-last-child(odd),
  .feed-tab:last-child:nth-child(odd) {
    flex: 1 1 100%;
  }

  /* Content Head */
  .content-head {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-bottom: 12px;
  }
  .content-head > div:first-child {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
  }
  .content-head h2 {
    font-size: 22px;
  }
  .view-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    box-sizing: border-box;
  }
  .view-toggle button {
    justify-content: center;
    min-height: 44px;
    font-size: 13px;
    touch-action: manipulation;
  }

  /* 3. EVENT CARDS (TOUCH TARGETS >= 44px & NO HORIZONTAL OVERFLOW) */
  .card-main {
    grid-template-columns: 58px 1fr;
    gap: 10px;
    padding: 12px 14px;
  }
  .card .time .start {
    font-size: 17px;
  }
  .card .time .start.long {
    font-size: 11px;
  }
  .card .title {
    font-size: 15px;
    line-height: 1.3;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  .card .meta {
    gap: 6px 10px;
    font-size: 12px;
  }
  .card .right {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding-top: 8px;
    margin-top: 4px;
    border-top: 1px dashed var(--line);
  }
  .price-row {
    display: inline-flex;
    align-items: center;
    gap: 10px;
  }
  .card-btn-group {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 4px;
  }
  .card-action-btn {
    width: 40px;
    height: 40px;
    border-radius: 9px;
    touch-action: manipulation;
    position: relative;
  }
  .card-action-btn::after {
    content: "";
    position: absolute;
    inset: -3px;
    border-radius: 12px;
  }
  .card-action-btn svg {
    width: 16px;
    height: 16px;
  }
  .card-extra-body {
    padding: 12px 14px;
  }
  .card-desc {
    font-size: 13px;
    overflow-wrap: anywhere;
    word-break: break-word;
    line-height: 1.5;
  }
  .card-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 8px;
  }
  .btn-collapse {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 22px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    border-radius: 8px;
    background: var(--panel-2);
    border: 1px solid var(--line);
    color: var(--text);
    touch-action: manipulation;
  }
  .day-expand-btn {
    min-height: 44px;
    touch-action: manipulation;
  }

  /* 4. CINEMA SECTION ON MOBILE - ZERO SCROLL HORIZONTAL */
  .cinema-topbar {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-bottom: 14px;
    padding-bottom: 12px;
  }
  .cinema-dates-wrap {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
    padding: 0;
  }
  .cinema-sublabel {
    margin-bottom: 6px;
    display: block;
  }
  .cinema-dates {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    width: 100%;
    box-sizing: border-box;
  }
  .cinema-date-btn {
    min-width: 0;
    width: 100%;
    min-height: 46px;
    padding: 6px 4px;
    box-sizing: border-box;
    touch-action: manipulation;
  }
  .cinema-view-toggle {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    box-sizing: border-box;
  }
  .cinema-view-toggle button {
    justify-content: center;
    min-height: 44px;
    font-size: 13px;
    touch-action: manipulation;
  }

  .cinema-filters-bar {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 12px;
    margin-bottom: 16px;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }
  .cfilter-group {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  /* Regioes com quebra natural, SEM scroll horizontal */
  .chips-row {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    overflow-x: hidden;
    gap: 6px;
    padding: 0;
  }
  .chips-row .chip {
    min-height: 44px;
    padding: 8px 12px;
    font-size: 12.5px;
    touch-action: manipulation;
  }
  /* Audio e Circuito com quebra natural, SEM scroll horizontal */
  .segmented {
    display: flex;
    flex-wrap: wrap;
    overflow-x: hidden;
    gap: 4px;
    width: 100%;
    box-sizing: border-box;
    padding: 3px;
  }
  .segmented button {
    flex: 1 1 calc(50% - 4px);
    grid-column: auto;
    min-height: 44px;
    padding: 8px 10px;
    font-size: 12.5px;
    justify-content: center;
    touch-action: manipulation;
    box-sizing: border-box;
  }

  /* Cards de Cinema */
  .movie-card {
    padding: 12px 14px;
  }
  .movie-card-header {
    grid-template-columns: 52px 1fr;
    gap: 12px;
  }
  .movie-title-wrap h3 {
    font-size: 16px;
    overflow-wrap: anywhere;
  }
  .movie-header-actions {
    grid-column: 1 / -1;
    display: flex;
    gap: 8px;
    width: 100%;
    margin-top: 8px;
  }
  .movie-expand-btn {
    flex: 1;
    min-height: 44px;
    justify-content: center;
    font-size: 13px;
    touch-action: manipulation;
  }
  .trailer-btn {
    min-height: 44px;
    padding: 8px 14px;
    justify-content: center;
    touch-action: manipulation;
  }
  .movie-synopsis-toggle {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    font-size: 13px;
    touch-action: manipulation;
  }

  .theaters-sessions-block {
    margin-top: 14px;
  }
  .theater-schedule-row {
    padding: 10px 12px;
  }
  .session-chip {
    min-height: 44px;
    padding: 8px 12px;
    font-size: 13px;
    box-sizing: border-box;
    touch-action: manipulation;
  }

  /* Card Por Cinema */
  .theater-card {
    padding: 14px;
  }
  .theater-movie-row {
    grid-template-columns: 46px 1fr;
    gap: 10px;
    padding: 8px 10px;
  }

  /* 5. MAP VIEW & TOUCH GEOLOCATION */
  #map {
    height: 65vh;
    min-height: 380px;
    border-radius: var(--radius);
  }
  .map-locate-btn {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    margin-right: 12px;
    margin-bottom: 20px;
    touch-action: manipulation;
  }
  .map-locate-btn svg {
    width: 20px;
    height: 20px;
  }
  .farol-popup {
    margin: 10px;
    width: auto;
    max-width: calc(100vw - 52px);
    box-sizing: border-box;
  }
  .mp-row {
    padding: 10px 10px;
    min-height: 44px;
    box-sizing: border-box;
    display: block;
    touch-action: manipulation;
  }

  /* 6. MODALS & OVERLAYS RESPONSIVENESS */
  .farol-modal-backdrop {
    padding: 12px;
    box-sizing: border-box;
  }
  .farol-modal {
    padding: 22px 16px;
    border-radius: 16px;
    max-height: 92vh;
    box-sizing: border-box;
    overflow-y: auto;
  }
  .modal-close-btn {
    width: 44px;
    height: 44px;
    top: 10px;
    right: 10px;
    font-size: 16px;
    touch-action: manipulation;
  }
  .auth-modal-box {
    min-height: auto;
    max-height: 90vh;
  }
  .auth-tab {
    min-height: 44px;
    touch-action: manipulation;
  }
  .btn-primary-farol,
  .btn-secondary-farol {
    min-height: 44px;
    touch-action: manipulation;
  }
  .onb-box,
  .onboarding-box {
    max-height: 92vh;
    padding: 20px 16px;
  }
  .onb-chips-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 8px;
  }
  .onb-chip {
    min-height: 44px;
    padding: 8px 10px;
  }
}

/* 4. REMOCAO DE DEPENDENCIAS DE HOVER EM DISPOSITIVOS TOUCH */
@media (hover: hover) and (pointer: fine) {
  .card:hover {
    transform: translateY(-1px);
    background: var(--panel-2);
    border-color: color-mix(in srgb, var(--c) 50%, var(--line));
    border-left-color: var(--c);
  }
  .btn-collapse:hover {
    border-color: var(--accent);
    color: var(--text);
    background: var(--panel-2);
  }
  .movie-card:hover {
    border-color: rgba(255, 181, 71, 0.4);
    background: var(--panel-2);
  }
  .movie-expand-btn:hover,
  .movie-card.expanded .movie-expand-btn {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(255, 181, 71, 0.12);
  }
  .session-chip:hover {
    background: rgba(255, 181, 71, 0.12);
    border-color: var(--accent);
    transform: translateY(-1px);
    color: var(--text);
  }
  .cinema-date-btn:hover {
    border-color: var(--accent);
    color: var(--text);
    transform: translateY(-1px);
  }
  .trailer-btn:hover {
    background: rgba(239, 68, 68, 0.25);
    border-color: #f87171;
    color: #fff;
    transform: translateY(-1px);
  }
  .presets button:hover {
    border-color: var(--accent);
    color: var(--accent);
  }
  .chip:hover {
    border-color: var(--c);
  }
  .free-toggle:hover,
  .kids-toggle:hover,
  .toggle-btn:hover {
    border-color: var(--kids);
  }
}

/* Feedback ativo para telas de toque */
@media (hover: none) {
  .card:active,
  .movie-card:active,
  .session-chip:active,
  .cinema-date-btn:active,
  .nav-tab:active,
  .chip:active,
  .free-toggle:active,
  .kids-toggle:active,
  .toggle-btn:active,
  .presets button:active,
  .btn-collapse:active,
  .movie-expand-btn:active,
  .trailer-btn:active {
    opacity: 0.85;
    transform: scale(0.99);
  }
}


/* ============================================================ */
/* USER ACCOUNTS, GATEWAY, ONBOARDING & PERSONALIZED FEED       */
/* ============================================================ */

/* ---------- Topbar City Selector & Auth Controls ---------- */
.topbar-city-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.topbar-city-btn:hover {
  border-color: var(--accent);
  background: var(--panel-2);
}
.topbar-city-btn .caret {
  font-size: 10px;
  color: var(--muted);
}

.topbar-auth-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.header-login-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.15s ease;
}
.header-login-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 12px rgba(255, 181, 71, 0.18);
}

.header-user-menu {
  position: relative;
}

.header-user-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 4px 10px 4px 4px;
  border-radius: 999px;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  transition: all 0.15s ease;
}
.header-user-btn:hover,
.header-user-btn[aria-expanded="true"] {
  border-color: var(--accent);
  background: var(--panel-2);
}

.user-avatar-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #ffffff;
  font-weight: 700;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.user-avatar-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-dropdown-popover {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 230px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
  padding: 8px;
  z-index: 1001;
  display: flex;
  flex-direction: column;
  animation: popoverFade 0.15s ease-out;
}

@keyframes popoverFade {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.user-popover-info {
  padding: 8px 10px 6px;
  display: flex;
  flex-direction: column;
}
.user-popover-info strong {
  font-size: 14px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.user-popover-divider {
  height: 1px;
  background: var(--line);
  margin: 6px 0;
}
.user-popover-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: 0;
  border-radius: 8px;
  padding: 8px 10px;
  color: var(--text);
  font-size: 13px;
  text-align: left;
  transition: background 0.12s ease;
  width: 100%;
}
.user-popover-item:hover {
  background: var(--panel-2);
}
.user-popover-item .badge-count {
  margin-left: auto;
  background: rgba(255, 181, 71, 0.18);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 999px;
}
.user-popover-item.logout {
  color: #f87171;
}
.user-popover-item.logout:hover {
  background: rgba(239, 68, 68, 0.12);
}

/* ---------- Feed Mode Switcher (Todos / Para Você / Salvos) ---------- */
.farol-feed-switcher {
  display: inline-flex;
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}

.feed-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  transition: all 0.15s ease;
}
.feed-tab:hover {
  color: var(--text);
}
.feed-tab.active {
  background: var(--panel-2);
  color: var(--accent);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}
.feed-tab.active svg {
  stroke: var(--accent);
}

.feed-saved-badge {
  background: rgba(255, 181, 71, 0.2);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 999px;
  margin-left: 2px;
}

/* ---------- Modal Backdrops & Generic Styles ---------- */
.farol-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}
.farol-modal-backdrop[hidden] {
  display: none !important;
}

.farol-modal {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.16);
  width: 100%;
  max-width: 480px;
  padding: 28px;
  animation: modalScale 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes modalScale {
  from { opacity: 0; transform: scale(0.96) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--panel-2);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}
.modal-close-btn:hover {
  background: var(--line);
  color: var(--text);
}

.btn-primary-farol {
  background: var(--accent);
  color: #ffffff;
  font-weight: 700;
  font-size: 14px;
  border: 0;
  border-radius: 999px;
  padding: 11px 22px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-primary-farol:hover {
  background: #b45309;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.28);
  transform: translateY(-1px);
}

.btn-secondary-farol {
  background: var(--panel-2);
  border: 1px solid var(--line);
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
  border-radius: 999px;
  padding: 10px 20px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-secondary-farol:hover {
  border-color: var(--line-strong);
  background: var(--panel-hover);
}

/* ---------- Contact Modal Styles ---------- */
.farol-modal-header {
  margin-bottom: 20px;
  padding-right: 36px;
}
.modal-title-wrap {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.modal-icon-badge {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  border: 1px solid var(--line);
}
.farol-modal-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 4px;
}
.farol-modal-subtitle {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  line-height: 1.4;
}
.farol-modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.contact-modal-content {
  max-width: 520px;
  width: 100%;
}
.contact-field-group {
  margin-bottom: 15px;
  text-align: left;
}
.contact-label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 6px;
}
.contact-input,
.contact-select,
.contact-textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13.5px;
  font-family: inherit;
  background: #ffffff;
  color: var(--text);
  outline: none;
  box-sizing: border-box;
  transition: border-color .15s, box-shadow .15s;
}
.contact-input:focus,
.contact-select:focus,
.contact-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.12);
}
.contact-textarea {
  resize: vertical;
  min-height: 90px;
}
.contact-char-count {
  font-size: 11px;
  color: var(--muted);
  text-align: right;
  margin-top: 4px;
}
.contact-feedback-box {
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.4;
  margin-bottom: 14px;
}
.contact-feedback-box.success {
  background: rgba(22, 163, 74, 0.12);
  border: 1px solid rgba(22, 163, 74, 0.35);
  color: #16a34a;
}
.contact-feedback-box.error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #ef4444;
}

/* ---------- Agenda Load More Pagination ---------- */
.load-more-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 36px 16px 56px;
  width: 100%;
}
.btn-load-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--text);
  font-family: var(--font);
  font-weight: 600;
  font-size: 14px;
  padding: 13px 32px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}
.btn-load-more:hover {
  background: #ffffff;
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(217, 119, 6, 0.15);
}
.btn-load-more:active {
  transform: translateY(0);
}
.btn-load-more svg {
  transition: transform 0.2s ease;
}
.btn-load-more:hover svg {
  transform: translateY(3px);
}
.load-more-hint {
  font-size: 12px;
  color: var(--muted);
}

/* ---------- Welcome / City Gateway Modal ---------- */
.gateway-backdrop {
  z-index: 3000;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.gateway-modal {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.16);
  width: 100%;
  max-width: 820px;
  padding: 40px;
  max-height: 90vh;
  overflow-y: auto;
}

.gw-brand {
  text-align: center;
  margin-bottom: 28px;
}
.gw-brand .brand-mark {
  width: 48px;
  height: 48px;
  color: var(--accent);
  margin-bottom: 8px;
}
.gw-brand h1 {
  font-size: 28px;
  letter-spacing: -0.02em;
}
.gw-subtitle {
  color: var(--muted);
  font-size: 15px;
  margin-top: 4px;
}

.gw-section-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  margin-bottom: 10px;
}

.gw-cities-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin-bottom: 30px;
}
.gw-city-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.15s ease;
}
.gw-city-card.active {
  cursor: pointer;
}
.gw-city-card.selected {
  border-color: var(--accent);
  background: rgba(255, 181, 71, 0.07);
}
.gw-city-card.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.gw-city-info strong {
  display: block;
  font-size: 14px;
  color: var(--text);
}
.gw-city-tag {
  font-size: 11px;
  color: var(--muted);
}
.gw-city-check {
  font-size: 11px;
  font-weight: 700;
  color: var(--kids);
  background: rgba(74, 222, 128, 0.15);
  padding: 2px 8px;
  border-radius: 999px;
}
.gw-city-soon {
  font-size: 11px;
  color: var(--muted);
  background: var(--panel-2);
  padding: 2px 8px;
  border-radius: 999px;
}

.gw-paths-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}
@media (max-width: 680px) {
  .gw-paths-grid {
    grid-template-columns: 1fr;
  }
  .gateway-modal {
    padding: 24px;
  }
}

.gw-path-card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
}
.gw-path-card.account-path {
  border-color: rgba(255, 181, 71, 0.35);
  background: linear-gradient(180deg, rgba(255, 181, 71, 0.04), var(--panel));
}
.gw-path-badge {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--panel-2);
  color: var(--muted);
  margin-bottom: 12px;
}
.gw-path-badge.highlighted {
  background: rgba(255, 181, 71, 0.2);
  color: var(--accent);
}
.gw-path-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}
.gw-path-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  margin-bottom: 16px;
}
.gw-path-features {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  color: var(--text);
}
.gw-btn {
  width: 100%;
  margin-top: auto;
}
.gw-account-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
}
.gw-footer {
  text-align: center;
  font-size: 12px;
}

/* ---------- Google Sign-In Button ---------- */
.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #ffffff;
  color: #1f2937;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 10px 18px;
  cursor: pointer;
  transition: all 0.15s ease;
  width: 100%;
}
.btn-google:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}
.google-icon {
  width: 18px;
  height: 18px;
}

/* ---------- Auth Modal Box & Tabs ---------- */
.auth-modal-box {
  max-width: 420px;
  min-height: 625px;
  display: flex;
  flex-direction: column;
}
.auth-modal-head {
  text-align: center;
  margin-bottom: 20px;
}
.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 18px 0;
  color: var(--muted);
  font-size: 12px;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid var(--line);
}
.auth-divider span {
  padding: 0 12px;
}

.auth-tabs {
  display: flex;
  background: var(--panel-2);
  border-radius: 999px;
  padding: 3px;
  margin-bottom: 20px;
}
.auth-tab {
  flex: 1;
  background: transparent;
  border: 0;
  color: var(--muted);
  font-weight: 600;
  font-size: 13px;
  padding: 7px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.auth-tab:hover:not(.active) {
  color: var(--text);
}
.auth-tab.active {
  background: var(--panel);
  color: var(--text);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-group label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}
.form-group input {
  background: var(--panel-2);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 14px;
  padding: 10px 14px;
  border-radius: 8px;
  outline: none;
  transition: border-color 0.15s ease;
}
.form-group input:focus {
  border-color: var(--accent);
}
.label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.btn-text {
  background: transparent;
  border: 0;
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}
.btn-text:hover {
  text-decoration: underline;
}

.auth-error-box {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
  font-size: 13px;
  padding: 10px 12px;
  border-radius: 8px;
  line-height: 1.4;
}
.auth-success-box {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #16a34a;
  font-size: 13px;
  padding: 10px 12px;
  border-radius: 8px;
}
.auth-submit-btn {
  width: 100%;
  margin-top: auto;
  padding: 12px 24px;
}

/* ---------- Onboarding Questionnaire Modal ---------- */
.onboarding-box {
  max-width: 580px;
  max-height: 90vh;
  overflow-y: auto;
}
.onb-head {
  margin-bottom: 20px;
}
.onb-badge {
  display: inline-block;
  background: rgba(255, 181, 71, 0.18);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  margin-bottom: 8px;
}
.onb-section {
  margin-bottom: 22px;
}
.onb-section-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.onb-city-picker {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.onb-city-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: var(--panel-2);
  border: 1px solid var(--accent);
  border-radius: 10px;
}
.onb-city-details strong {
  display: block;
  font-size: 14px;
  color: var(--text);
}
.onb-city-status {
  font-size: 11px;
  font-weight: 700;
  color: #86efac;
  background: rgba(34, 197, 94, 0.15);
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(34, 197, 94, 0.3);
}
.onb-chips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}
.onb-chip {
  background: var(--panel-2);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}
.onb-chip:hover {
  border-color: var(--c);
  transform: translateY(-1px);
}
.onb-chip.selected {
  border-color: var(--c);
  background: color-mix(in srgb, var(--c) 18%, var(--panel-2));
}
.onb-chip-icon {
  font-size: 16px;
}
.onb-chip-name {
  font-size: 13px;
  font-weight: 600;
  flex: 1;
  text-align: left;
}
.onb-chip-check {
  font-size: 12px;
  color: var(--c);
  opacity: 0;
  font-weight: 700;
  transition: opacity 0.15s ease;
}
.onb-chip.selected .onb-chip-check {
  opacity: 1;
}

.onb-count-hint {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 20px;
  transition: color 0.15s ease;
}
.onb-count-hint.ready {
  color: var(--kids);
  font-weight: 600;
}

.onb-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

/* ---------- Card Action Buttons (Hide & Bookmark) ---------- */
.price-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
}

.card-btn-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 6px;
}

.card-action-btn {
  position: static;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  color: #cbd5e1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: all 0.15s ease;
  flex-shrink: 0;
}
.card-action-btn svg {
  display: block;
  width: 14px;
  height: 14px;
  pointer-events: none;
}
.card-action-btn:hover {
  background: var(--panel);
  transform: translateY(-1px);
}

.card-hide-btn {
  color: #94a3b8;
}
.card-hide-btn:hover {
  border-color: #38bdf8;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.15);
}
.card-hide-btn.hidden-active {
  background: rgba(56, 189, 248, 0.22);
  border-color: #38bdf8;
  color: #38bdf8;
}

.card-remove-btn {
  color: #94a3b8;
}
.card-remove-btn:hover {
  border-color: #f87171;
  color: #f87171;
  background: rgba(248, 113, 113, 0.15);
}
.card-remove-btn.removed-active {
  background: rgba(248, 113, 113, 0.22);
  border-color: #f87171;
  color: #f87171;
}

.feed-hidden-badge {
  background: rgba(56, 189, 248, 0.2) !important;
  color: #38bdf8 !important;
}

.feed-removed-badge {
  background: rgba(248, 113, 113, 0.2) !important;
  color: #f87171 !important;
}

.removed-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(248, 113, 113, 0.16);
  border: 1px solid rgba(248, 113, 113, 0.35);
  color: #f87171;
  font-size: 11px;
  font-weight: 700;
  padding: 1px 8px;
  border-radius: 999px;
}

.card-restore-direct-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(248, 113, 113, 0.14);
  border: 1px solid #f87171;
  color: #f87171;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
  line-height: 1.3;
}
.card-restore-direct-btn:hover {
  background: #f87171;
  color: #ffffff;
  transform: translateY(-1px);
}

.removed-view-banner {
  background: rgba(248, 113, 113, 0.08);
  border: 1px solid rgba(248, 113, 113, 0.3);
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.removed-view-banner strong {
  color: #f87171;
  font-size: 14px;
}
.removed-view-banner p {
  margin-top: 3px;
  font-size: 12.5px;
}

.card-bookmark-btn {
  color: #94a3b8;
}
.card-bookmark-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(255, 181, 71, 0.15);
}
.card-bookmark-btn.saved {
  background: rgba(255, 181, 71, 0.2);
  border-color: var(--accent);
  color: var(--accent);
}
.card-bookmark-btn.saved svg {
  fill: var(--accent);
}

/* ---------- Hide Toast Notification ---------- */
.farol-hide-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #181c24;
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  border-radius: 999px;
  padding: 8px 16px;
  z-index: 9999;
  opacity: 0;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}
.farol-hide-toast.visible,
.farol-hide-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.farol-hide-toast .toast-body,
.farol-hide-toast-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text);
}
.farol-hide-toast .toast-body svg {
  color: #f87171;
  flex-shrink: 0;
}
.farol-hide-toast .toast-undo-btn,
.farol-toast-undo-btn {
  background: transparent;
  border: 0;
  color: var(--accent);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  padding: 2px 6px;
  margin-left: 12px;
  border-radius: 4px;
  transition: all 0.15s ease;
  text-decoration: underline;
}
.farol-hide-toast .toast-undo-btn:hover,
.farol-toast-undo-btn:hover {
  color: #ffc266;
}

/* ---------- Hidden Events Modal ---------- */
.hidden-events-box {
  max-width: 520px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
}
.hidden-events-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 16px 0;
  max-height: 48vh;
  overflow-y: auto;
  padding-right: 4px;
}
.hidden-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.hidden-item-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.hidden-item-title {
  font-size: 13px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hidden-item-venue {
  font-size: 11px;
}
.unhide-item-btn {
  padding: 6px 12px !important;
  font-size: 12px !important;
  flex-shrink: 0;
}
.hidden-modal-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.hidden-empty-state {
  text-align: center;
  padding: 32px 16px;
  color: var(--text);
}

/* Tag de recomendação no card */
.rec-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 181, 71, 0.16);
  border: 1px solid rgba(255, 181, 71, 0.35);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  padding: 1px 8px;
  border-radius: 999px;
}

/* ---------- Prioritized Feed: Seção Favoritos & 'Ver o Resto' ---------- */
.day-fav-section {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.02em;
}

.day-expand-bar {
  margin: 12px 0 8px;
  width: 100%;
}
.day-expand-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--panel-2);
  border: 1px dashed var(--line);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 10px;
  transition: all 0.15s ease;
  cursor: pointer;
}
.day-expand-btn:hover {
  background: var(--panel);
  border-color: var(--accent);
  color: var(--text);
}
.day-expand-btn .caret {
  transition: transform 0.2s ease;
}
.day-expand-btn.expanded .caret {
  transform: rotate(180deg);
}

/* ---------- City Modal Box ---------- */
.city-modal-box {
  max-width: 440px;
}
.city-modal-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 20px 0;
}
.city-item {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.city-item.active {
  border-color: var(--accent);
  background: rgba(255, 181, 71, 0.08);
}
.city-item.disabled {
  opacity: 0.5;
}
.badge-active {
  font-size: 11px;
  font-weight: 700;
  color: var(--kids);
  background: rgba(74, 222, 128, 0.15);
  padding: 2px 8px;
  border-radius: 999px;
}
.badge-soon {
  font-size: 11px;
  color: var(--muted);
  background: var(--panel);
  padding: 2px 8px;
  border-radius: 999px;
}

/* ---------- Global Footer ---------- */
.app-global-footer {
  margin-top: 56px;
  border-top: 1px solid var(--line);
  background: var(--panel);
  padding: 28px 24px;
}
.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}
.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 13px;
  flex-wrap: wrap;
}
.footer-links a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s ease;
}
.footer-links a:hover {
  color: var(--accent);
  text-decoration: underline;
}
.footer-links .sep {
  color: var(--line);
}
.footer-meta {
  width: 100%;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

/* ====================================================================
   HOMEPAGE (index.html) STYLES
   ==================================================================== */
.home-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: radial-gradient(circle at 50% 140px, rgba(217, 119, 6, 0.06) 0%, rgba(248, 250, 252, 0) 70%),
              linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  color: var(--text);
}

.home-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.home-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}
.home-brand-mark {
  width: 36px;
  height: 36px;
  color: var(--accent);
}
.home-brand h1 {
  font-size: 19px;
  margin: 0;
  font-weight: 700;
}
.home-brand p {
  margin: 0;
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.home-nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}
.home-nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s ease;
}
.home-nav-links a:hover {
  color: var(--accent);
}

.home-nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.home-hero {
  flex: 1;
  max-width: 1140px;
  margin: 0 auto;
  padding: 72px 24px 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
}

.home-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(217, 119, 6, 0.08);
  border: 1px solid rgba(217, 119, 6, 0.25);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 22px;
}

.home-hero-logo {
  width: 76px;
  height: 76px;
  color: var(--accent);
  margin-bottom: 18px;
}
.home-hero-logo-img {
  width: 88px;
  height: 88px;
  object-fit: contain;
  margin-bottom: 18px;
}
.home-hero-logo-full {
  max-width: 440px;
  width: 90%;
  height: auto;
  object-fit: contain;
  margin: 12px auto 36px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.home-title {
  font-size: 3.2rem;
  line-height: 1.1;
  font-weight: 700;
  margin: 0 0 10px;
  letter-spacing: -0.02em;
  color: var(--text);
}

.home-tagline {
  font-size: 1.45rem;
  color: var(--accent);
  font-weight: 500;
  margin: 0 0 20px;
  letter-spacing: -0.01em;
}

.home-lead {
  font-size: 1.35rem;
  color: var(--text-2);
  font-weight: 600;
  max-width: 640px;
  line-height: 1.45;
  margin: 0 auto 40px;
  letter-spacing: -0.01em;
}

/* Logged in state (when user is identified) */
.home-logged-card,
.home-logged-banner {
  width: 100%;
  max-width: 680px;
  background: #ffffff;
  border: 1px solid rgba(217, 119, 6, 0.35);
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.08), 0 0 24px rgba(217, 119, 6, 0.06);
  border-radius: 20px;
  padding: 36px 32px;
  margin-bottom: 60px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  text-align: left;
}
.home-logged-head {
  display: flex;
  align-items: center;
  gap: 18px;
}
.home-logged-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #ffffff;
  font-weight: 700;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.home-logged-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.home-logged-info h3 {
  margin: 0 0 4px;
  font-size: 1.5rem;
  color: var(--text);
}
.home-logged-info p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
}
.home-logged-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.home-logged-quicklinks {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.quicklink-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12.5px;
  color: var(--text-2);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
}
.quicklink-pill:hover {
  background: rgba(217, 119, 6, 0.1);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

/* Choices Grid */
.home-choices-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  width: 100%;
  max-width: 960px;
  margin-bottom: 48px;
  text-align: left;
}

.home-choice-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04);
}
.home-choice-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.home-choice-card.featured {
  border-color: rgba(217, 119, 6, 0.4);
  background: radial-gradient(circle at 100% 0%, rgba(217, 119, 6, 0.05) 0%, #ffffff 70%);
  box-shadow: 0 8px 32px rgba(217, 119, 6, 0.08);
}
.home-choice-card.featured:hover {
  border-color: rgba(217, 119, 6, 0.65);
  box-shadow: 0 14px 40px rgba(217, 119, 6, 0.14);
}

.home-card-badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 18px;
  background: var(--panel-2);
  color: var(--muted);
  border: 1px solid var(--line);
}
.home-choice-card.featured .home-card-badge {
  background: rgba(217, 119, 6, 0.12);
  color: var(--accent);
  border-color: rgba(217, 119, 6, 0.3);
}

.home-choice-header {
  margin-bottom: 16px;
}
.home-choice-header h3 {
  font-size: 1.45rem;
  margin: 0 0 8px;
  font-weight: 700;
  color: var(--text);
}
.home-choice-header p {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.5;
  margin: 0;
}

.home-choice-features {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.home-choice-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.45;
}
.home-choice-features .check {
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
}

.home-choice-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
}
.home-btn-action {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: all 0.18s ease;
  box-sizing: border-box;
}

/* Android banner card */
.home-android-banner {
  margin: 12px auto 0;
  max-width: 960px;
  width: 100%;
  padding: 0 16px;
  box-sizing: border-box;
}
.home-page .app-global-footer {
  margin-top: 20px;
  padding: 20px 24px;
}
.home-android-banner-card {
  background: #ffffff;
  border: 1px solid rgba(217, 119, 6, 0.35);
  box-shadow: 0 6px 24px rgba(15, 23, 42, 0.05);
  border-radius: 16px;
  padding: 22px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.home-android-banner-card h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
}
.home-android-banner-card p {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.4;
}
.home-android-badge {
  background: rgba(217, 119, 6, 0.12);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  text-transform: uppercase;
  border: 1px solid rgba(217, 119, 6, 0.25);
}

/* Feature Showcase Pillars */
.home-features-section {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto 40px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}
.home-features-head {
  text-align: center;
  margin-bottom: 40px;
}
.home-features-head h2 {
  font-size: 2rem;
  margin-bottom: 8px;
  color: var(--text);
}
.home-features-head p {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}

.home-features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: left;
}
.home-feature-box {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
  border-radius: 16px;
  padding: 24px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.home-feature-box:hover {
  border-color: rgba(217, 119, 6, 0.4);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}
.home-feature-icon {
  font-size: 28px;
  margin-bottom: 14px;
  display: block;
}
.home-feature-box h4 {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}
.home-feature-box p {
  margin: 0;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.5;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .home-choices-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
  }
  .home-features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .home-nav-links {
    display: none;
  }
  .home-title {
    font-size: 2.5rem;
  }
  .home-hero {
    padding: 40px 18px 60px;
  }
}
@media (max-width: 600px) {
  .home-nav {
    padding: 12px 16px;
  }
  .home-hero-logo-full {
    max-width: 310px;
    width: 88%;
    margin-bottom: 24px;
  }
  .home-lead {
    font-size: 1.15rem;
    margin-bottom: 30px;
    padding: 0 4px;
  }
  .home-features-grid {
    grid-template-columns: 1fr;
  }
  .home-choice-card {
    padding: 26px 20px;
  }
  .home-title {
    font-size: 2.1rem;
  }
  .home-tagline {
    font-size: 1.2rem;
  }
  .home-logged-banner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ==========================================================================
   FEEDBACK SYSTEM (Android App & Web)
   ========================================================================== */

.feedback-modal-content {
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-badge-feedback {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 4px;
}

.feedback-context-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(217, 119, 6, 0.08);
  border: 1px solid rgba(217, 119, 6, 0.25);
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 18px;
}
.feedback-context-box .context-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
}
.feedback-context-box .context-label {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.feedback-context-box .context-title {
  font-size: 13px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.feedback-context-box .context-clear {
  background: transparent;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 4px;
  font-size: 14px;
  line-height: 1;
  transition: color 0.15s;
}
.feedback-context-box .context-clear:hover {
  color: var(--text);
}

.feedback-type-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}
.type-pill {
  background: var(--panel-2);
  border: 1px solid var(--line);
  color: var(--text-2);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}
.type-pill:hover {
  border-color: var(--muted);
  color: var(--text);
}
.type-pill.active {
  background: rgba(217, 119, 6, 0.12);
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 600;
}

.feedback-textarea {
  min-height: 95px;
  resize: vertical;
  line-height: 1.45;
  font-family: inherit;
}

.feedback-device-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 14px 0 18px;
  font-size: 11.5px;
  color: var(--muted);
}
.feedback-device-info .device-tag {
  background: var(--panel-2);
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid var(--line);
}
.feedback-device-info .sync-tag {
  color: #16a34a;
}

.feedback-success-state {
  text-align: center;
  padding: 24px 12px 12px;
}
.feedback-success-state .success-icon-wrap {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: rgba(22, 163, 74, 0.12);
  border: 1px solid rgba(22, 163, 74, 0.35);
  color: #16a34a;
  font-size: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.feedback-success-state h3 {
  font-size: 18px;
  margin: 0 0 8px;
  color: var(--text);
}
.feedback-success-state p {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.5;
  margin: 0 0 16px;
}

/* Header Trigger Button (Exclusivo para Admins) */
.header-feedback-btn {
  display: none !important;
}
body.is-admin .header-feedback-btn {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  padding: 7px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
}
body.is-admin .header-feedback-btn:hover {
  background: rgba(217, 119, 6, 0.08);
  border-color: rgba(217, 119, 6, 0.4);
  color: var(--accent);
}

/* Card Action Button */
.btn-card-feedback {
  background: transparent;
  border: 1px dashed var(--line);
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 500;
  padding: 5px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
}
.btn-card-feedback:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(255, 181, 71, 0.08);
}

/* ============================================================================
   Google AdSense Display Units (Sidebar & In-Feed Event Strip)
   Collapsed (0px height, no visual gap) by default; expands ONLY when an ad
   actually loads and fills (data-ad-status="filled" / .ad-filled).
   ============================================================================ */
.ad-sidebar-panel {
  width: 100%;
  height: 0;
  min-height: 0;
  max-height: 0;
  padding: 0;
  margin-top: -14px; /* cancels .sidebar gap when collapsed */
  border: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: opacity 0.2s ease;
}

.ad-sidebar-panel.ad-filled,
.ad-sidebar-panel:has(ins.adsbygoogle[data-ad-status="filled"]) {
  height: auto;
  min-height: 260px;
  max-height: 600px;
  padding: 12px;
  margin-top: 0;
  background: linear-gradient(180deg, #fef8ec 0%, #f9eed8 100%);
  border: 1.5px dashed #e0b467;
  border-radius: var(--radius);
  opacity: 1;
  pointer-events: auto;
}

.ad-sidebar-panel.ad-unfilled,
.ad-sidebar-panel:has(ins.adsbygoogle[data-ad-status="unfilled"]) {
  display: none !important;
}

.ad-badge-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
}

.ad-label-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #d97706;
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 2.5px 7px;
  border-radius: 5px;
}

.ad-sidebar-slot {
  width: 100%;
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.55);
  border-radius: 10px;
  overflow: hidden;
}

/* In-Feed Strip Ad (every 10 events, same height/shape as .card event strip) */
.ad-card-strip {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 16px;
  align-items: center;
  width: 100%;
  height: 0;
  min-height: 0;
  max-height: 0;
  padding: 0;
  margin-top: -8px; /* cancels .cards 8px grid gap when collapsed */
  border: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  position: relative;
  transition: opacity 0.2s ease;
}

.ad-card-strip.ad-filled,
.ad-card-strip:has(ins.adsbygoogle[data-ad-status="filled"]) {
  height: auto;
  min-height: 82px;
  max-height: 98px;
  padding: 10px 18px;
  margin-top: 0;
  background: linear-gradient(90deg, #fef8ec 0%, #f9eed8 100%);
  border: 1.5px dashed #e0b467;
  border-left: 4px solid #d97706;
  border-radius: 12px;
  opacity: 1;
  pointer-events: auto;
}

.ad-card-strip.ad-unfilled,
.ad-card-strip:has(ins.adsbygoogle[data-ad-status="unfilled"]) {
  display: none !important;
}

.ad-strip-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
}

.ad-strip-slot {
  width: 100%;
  height: 66px;
  max-height: 74px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.55);
  border-radius: 8px;
  overflow: hidden;
}

@media (max-width: 860px) {
  .ad-sidebar-panel {
    display: none !important;
  }
  .ad-card-strip.ad-filled,
  .ad-card-strip:has(ins.adsbygoogle[data-ad-status="filled"]) {
    grid-template-columns: 1fr;
    gap: 6px;
    max-height: 118px;
    padding: 8px 12px;
  }
  .ad-strip-meta {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
  }
}
