:root {
  --bg: #F6F8F7;
  --surface: #FFFFFF;
  --text: #14201D;
  --muted: #66756F;
  --accent: #00614A;
  --on-accent: #FFFFFF;
  --border: #E1E1E1;
  --shadow: rgba(20, 32, 29, 0.07);
  --rating: #F5A623;
  /* Fixed top search header's total rendered height (safe-area clearance +
     its own vertical padding + the search field + its hairline border).
     Content below uses this single source of truth to clear it exactly —
     see .home-header's padding-top. */
  --app-header-height: calc(env(safe-area-inset-top) + 81px);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0A1512;
    --surface: #101E1A;
    --text: #F3F6F4;
    --muted: #8FA39D;
    --accent: #1FBA8F;
    --on-accent: #04231C;
    --border: #1E2E29;
    --shadow: rgba(0, 0, 0, 0.3);
  }
}

:root[data-theme="dark"] {
  --bg: #0A1512;
  --surface: #101E1A;
  --text: #F3F6F4;
  --muted: #8FA39D;
  --accent: #1FBA8F;
  --on-accent: #04231C;
  --border: #1E2E29;
  --shadow: rgba(0, 0, 0, 0.3);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  overflow-x: hidden;
  overscroll-behavior-y: none;
  -webkit-tap-highlight-color: transparent;
}

body {
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  touch-action: manipulation;
  overscroll-behavior-y: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

/* Standalone/PWA mode needs this exemption explicitly — the app-wide
   user-select: none above is for tap-friendly chrome (buttons, cards,
   nav), not for text the user actually needs to type into or copy. */
input,
textarea {
  -webkit-user-select: text;
  user-select: text;
  -webkit-touch-callout: default;
}

img,
svg {
  -webkit-user-drag: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- ambient signal (very subtle, whole-page) ---------- */
.ambient-signal {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 100% 40% at 50% 0%, color-mix(in srgb, var(--accent) 5%, transparent), transparent 70%);
}

/* ---------- fixed top search header (permanent app chrome) ---------- */
/* Always fixed — no scroll detection, no state switching, no JS. It's part
   of the app frame exactly like .bottom-nav is, just at the other edge. */
.search-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  padding: calc(env(safe-area-inset-top) + 12px) max(16px, env(safe-area-inset-right)) 12px max(16px, env(safe-area-inset-left));
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

/* Now a launcher into Explore, not a live input — per "search must always
   open Explore" this bar never accepts typed text itself, so it's an <a>
   styled to look exactly like the approved search field, not a <form>. */
.search-bar {
  display: flex;
  align-items: center;
  gap: 11px;
  height: 56px;
  padding: 0 18px;
  border-radius: 17px;
  border: 1px solid var(--border);
  background: var(--surface);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 100ms ease;
}

.search-bar:active {
  transform: scale(0.99);
  border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
}

.search-icon-btn {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  color: inherit;
}

.search-icon {
  flex: none;
  width: 20px;
  height: 20px;
  color: var(--muted);
}

.search-input {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-family: inherit;
  font-size: 15.5px;
}

/* ---------- header ---------- */
.home-header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: calc(var(--app-header-height) + 16px) max(20px, env(safe-area-inset-right)) 12px max(20px, env(safe-area-inset-left));
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-mark {
  flex: none;
  display: flex;
  color: var(--accent);
}

.brand-mark .mark-hub {
  fill: var(--accent);
  transform-box: fill-box;
  transform-origin: center;
  animation: dvr-mark-breathe 4s ease-in-out infinite;
}

.brand-mark .mark-ring {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.6;
  opacity: 0;
  transform-origin: 15px 15px;
  animation: dvr-mark-pulse 4s ease-out infinite;
}

@keyframes dvr-mark-breathe {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.1); }
}

@keyframes dvr-mark-pulse {
  0%   { transform: scale(0.5); opacity: 0.4; }
  100% { transform: scale(1.6); opacity: 0; }
}

.greeting {
  min-width: 0;
}

.greeting-eyebrow {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.3;
}

.greeting-name {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}

.icon-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: transform 100ms ease;
}

.icon-btn:active {
  transform: scale(0.92);
}

.icon-btn svg {
  width: 19px;
  height: 19px;
}

.notif-dot {
  position: absolute;
  top: 8px;
  right: 9px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  border: 1.5px solid var(--surface);
}

.avatar-btn {
  font-size: 15px;
  font-weight: 700;
  background: var(--accent);
  color: var(--on-accent);
  border: 0;
}

/* ---------- main content ---------- */
.home-content {
  position: relative;
  z-index: 1;
  max-width: 480px;
  margin: 0 auto;
  padding: 4px max(20px, env(safe-area-inset-right)) calc(104px + env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
}

/* Section rhythm: one gap size for the major section breaks, named once
   here so the whole page shares a consistent scale. */
.home-content {
  --space-lg: 32px;
}

section + section {
  margin-top: var(--space-lg);
}

/* ---------- hero ---------- */
/* Text sits on a photo here, so it stays a fixed light-on-dark-scrim
   treatment in both themes on purpose — the photo itself has no light/
   dark variant, and the gradient exists solely to guarantee the heading
   stays readable over it, per "use appropriate overlays" for image text. */
.hero {
  position: relative;
  padding: 22px 18px 20px;
  border-radius: 20px;
  overflow: hidden;
  background-color: var(--accent);
  background-image: linear-gradient(180deg, rgba(10, 20, 16, 0.25) 0%, rgba(6, 14, 11, 0.72) 100%), url("https://commons.wikimedia.org/wiki/Special:FilePath/Sri_Lanka_-_088_-_Moving_up_through_tea_estates_%281684694983%29.jpg?width=960");
  background-size: cover;
  background-position: center 65%;
}

.hero h1 {
  font-size: clamp(24px, 7vw, 29px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.18;
  margin-bottom: 7px;
  color: #fff;
}

.hero-sub {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.86);
  max-width: 34ch;
}

/* ---------- section heading ---------- */
.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 14px;
}

.section-heading h2 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.see-all {
  flex: none;
  border: 0;
  background: none;
  padding: 14px 4px 14px 12px;
  margin: -14px -4px -14px 8px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  cursor: pointer;
  transition: opacity 120ms ease;
}

.see-all:active {
  opacity: 0.55;
}

/* ---------- categories ---------- */
.categories-section {
  margin-top: var(--space-lg);
}

/* ---------- horizontal scroll containers ---------- */
.categories-scroll,
.featured-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  margin: 0 max(-20px, calc(-1 * env(safe-area-inset-right))) 0 max(-20px, calc(-1 * env(safe-area-inset-left)));
  padding: 3px max(20px, env(safe-area-inset-right)) 8px max(20px, env(safe-area-inset-left));
}

.categories-scroll::-webkit-scrollbar,
.featured-scroll::-webkit-scrollbar {
  display: none;
}

.category-chip {
  flex: none;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 66px;
  border: 0;
  background: none;
  padding: 2px 0;
  font-family: inherit;
  cursor: pointer;
  transition: transform 200ms ease;
}

.category-chip:active {
  transform: scale(0.95);
}

.category-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--accent);
  transition: background-color 200ms ease, border-color 200ms ease, box-shadow 200ms ease, transform 200ms ease;
}

/* Premium selected state: solid accent fill for maximum clarity (icon
   emphasis), a restrained glow rather than a hard shadow, and a barely-
   there scale lift — the same "precise, not loud" language as the rest
   of the app's active states. */
.category-chip[aria-pressed="true"] .category-icon {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 6px 16px color-mix(in srgb, var(--accent) 32%, transparent);
  transform: scale(1.035);
}

.category-chip[aria-pressed="true"] .category-label {
  color: var(--accent);
  font-weight: 700;
}

.category-icon svg {
  width: 22px;
  height: 22px;
}

.category-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  transition: color 200ms ease;
}

/* ---------- featured cards ---------- */
.featured-card {
  flex: none;
  scroll-snap-align: start;
  width: 218px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 6px 16px var(--shadow);
  overflow: hidden;
  cursor: pointer;
  transition: transform 150ms ease;
}

.featured-card:active {
  transform: scale(0.98);
}

.featured-image {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  height: 130px;
  color: var(--accent);
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 18%, var(--surface)), color-mix(in srgb, var(--accent) 5%, var(--surface)));
}

.featured-image svg {
  width: 34px;
  height: 34px;
  opacity: 0.4;
}

/* A real photo layers on top of the icon+gradient placeholder rather than
   replacing it — if the remote image fails, its onerror hides just the
   <img> and the existing placeholder shows through automatically, so the
   fallback needs no extra markup or CSS state of its own. */
.card-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-body {
  padding: 12px 14px 14px;
}

.featured-body h3 {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-category {
  margin-top: 2px;
  font-size: 12.5px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
}

.card-meta .rating {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--text);
}

.card-meta .rating svg {
  width: 12px;
  height: 12px;
  color: var(--rating);
}

.card-meta .dot {
  color: var(--border);
}

/* ---------- nearby list ---------- */
.nearby-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.nearby-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  transition: transform 150ms ease;
}

.nearby-card:active {
  transform: scale(0.98);
}

.nearby-thumb {
  position: relative;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  color: var(--accent);
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 18%, var(--surface)), color-mix(in srgb, var(--accent) 5%, var(--surface)));
}

.nearby-thumb svg {
  width: 22px;
  height: 22px;
  opacity: 0.45;
}

.nearby-body {
  flex: 1;
  min-width: 0;
}

.nearby-body h3 {
  font-size: 14.5px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nearby-chevron {
  flex: none;
  width: 18px;
  height: 18px;
  color: var(--muted);
}

/* ---------- push notifications ---------- */
.test-notification-section {
  margin-top: var(--space-lg);
}

.push-status-text {
  margin: 0 0 10px;
  font-size: 12.5px;
  color: var(--muted);
  text-align: center;
}

.test-notification-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 50px;
  border: 0;
  border-radius: 14px;
  background: var(--accent);
  color: var(--on-accent);
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 120ms ease, opacity 150ms ease;
}

.test-notification-btn:active:not(:disabled) {
  transform: scale(0.98);
}

.test-notification-btn:disabled {
  opacity: 0.5;
  cursor: default;
}

.test-notification-btn[hidden] {
  display: none;
}

.test-notification-btn-secondary {
  margin-top: 10px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.test-notification-btn-secondary[hidden] {
  display: none;
}

.push-diagnostics {
  margin-top: 14px;
}

.push-diagnostics summary {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  list-style: none;
}

.push-diagnostics summary::-webkit-details-marker {
  display: none;
}

.push-diagnostics summary::before {
  content: "▸ ";
}

.push-diagnostics[open] summary::before {
  content: "▾ ";
}

.push-diagnostics[hidden] {
  display: none;
}

.push-diagnostics-list {
  list-style: none;
  margin: 10px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.push-diagnostic-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12.5px;
}

.push-diagnostic-label {
  color: var(--muted);
}

.push-diagnostic-value {
  font-weight: 600;
  color: var(--muted);
  text-align: right;
  overflow-wrap: anywhere;
}

.push-diagnostic-row.is-ok .push-diagnostic-value {
  color: var(--accent);
}

.push-sender-config {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.push-sender-label {
  display: block;
  margin-bottom: 6px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
}

.push-sender-row {
  display: flex;
  gap: 8px;
}

.push-sender-input {
  flex: 1;
  min-width: 0;
  height: 38px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  font-size: 12.5px;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.push-sender-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 14%, transparent);
}

.push-sender-save-btn {
  flex: none;
  height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 10px;
  background: var(--accent);
  color: var(--on-accent);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 120ms ease;
}

.push-sender-save-btn:active {
  transform: scale(0.96);
}

.push-sender-check-btn {
  width: 100%;
  height: 36px;
  margin-top: 8px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 120ms ease, opacity 150ms ease;
}

.push-sender-check-btn:active:not(:disabled) {
  transform: scale(0.98);
}

.push-sender-check-btn:disabled {
  opacity: 0.6;
  cursor: default;
}

.toast {
  position: fixed;
  left: 50%;
  top: calc(var(--app-header-height) + 10px);
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: calc(100% - 40px);
  padding: 11px 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 10px 26px var(--shadow);
  color: var(--text);
  font-size: 13.5px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transform: translate3d(-50%, -10px, 0);
  transition: opacity 220ms ease, transform 220ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate3d(-50%, 0, 0);
}

.toast svg {
  flex: none;
  width: 18px;
  height: 18px;
  color: var(--accent);
}

/* ---------- top pull-to-refresh ---------- */
/* Both the indicator and the scrollable content move purely via
   transform/opacity (never margin/height/scroll position), driven
   frame-by-frame from touch deltas via requestAnimationFrame — no
   transition while a gesture is actively tracking the finger (it has to
   feel attached 1:1), only .is-resetting turns transitions on for the
   snap-back/settle after release. */
.page-scroll {
  will-change: transform;
}

.page-scroll.is-resetting {
  transition: transform 220ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.pull-refresh {
  position: fixed;
  top: var(--app-header-height);
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 14px 0;
  color: var(--muted);
  opacity: 0;
  transform: translate3d(0, -8px, 0);
  pointer-events: none;
  will-change: transform, opacity;
}

.pull-refresh.is-resetting {
  transition: opacity 220ms cubic-bezier(0.22, 0.61, 0.36, 1), transform 220ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.pull-refresh-icon {
  flex: none;
  width: 20px;
  height: 20px;
}

.pull-refresh.is-ready .pull-refresh-icon,
.pull-refresh.is-refreshing .pull-refresh-icon {
  color: var(--accent);
}

.pull-refresh.is-refreshing .pull-refresh-icon {
  animation: dvr-spin 0.7s linear infinite;
}

.pull-refresh-label {
  font-size: 11.5px;
  font-weight: 600;
}

.pull-refresh.is-ready .pull-refresh-label,
.pull-refresh.is-refreshing .pull-refresh-label {
  color: var(--accent);
}

/* ---------- sheet (shared shell, same pattern as Profile's sheets) ---------- */
.sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  transition: opacity 220ms ease;
}

.sheet-backdrop.is-open {
  opacity: 1;
}

.action-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 41;
  max-width: 480px;
  margin: 0 auto;
  max-height: 78vh;
  max-height: 78dvh;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -10px 30px var(--shadow);
  transform: translate3d(0, 100%, 0);
  transition: transform 280ms cubic-bezier(0.22, 0.61, 0.36, 1), background-color 200ms ease;
}

.action-sheet.is-open {
  transform: translate3d(0, 0, 0);
}

.sheet-handle {
  flex: none;
  width: 36px;
  height: 4px;
  margin: 12px auto 0;
  border-radius: 2px;
  background: var(--border);
}

.sheet-title {
  font-size: 16.5px;
  font-weight: 700;
}

.sheet-cancel {
  flex: none;
  margin: 10px 20px calc(16px + env(safe-area-inset-bottom));
  height: 46px;
  border-radius: 14px;
  border: 0;
  background: var(--bg);
  color: var(--muted);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 120ms ease;
}

.sheet-cancel:active {
  opacity: 0.6;
}

/* ---------- notifications ---------- */
.notif-sheet-header {
  flex: none;
  padding: 14px 20px 6px;
  text-align: center;
}

.notif-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 4px 20px;
}

.notif-row {
  position: relative;
  display: flex;
  gap: 12px;
  padding: 12px 4px;
  border-bottom: 1px solid var(--border);
  transition: background-color 200ms ease, border-color 200ms ease;
}

.notif-row:last-child {
  border-bottom: 0;
}

.notif-icon {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}

.notif-icon svg {
  width: 18px;
  height: 18px;
}

.notif-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.notif-title {
  font-size: 14px;
  font-weight: 700;
}

.notif-row.is-unread .notif-title {
  color: var(--accent);
}

.notif-text {
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--muted);
}

.notif-time {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}

.notif-unread-dot {
  flex: none;
  align-self: flex-start;
  margin-top: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.notif-empty {
  padding: 36px 12px;
  text-align: center;
}

.notif-empty-title {
  font-size: 14.5px;
  font-weight: 700;
  margin-bottom: 6px;
}

.notif-empty-text {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
}

/* ---------- bottom navigation ---------- */
.bottom-nav {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(14px + env(safe-area-inset-bottom));
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: calc(100% - 32px);
  max-width: 420px;
  padding: 8px 10px;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 10px 28px var(--shadow);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  flex: 1;
  min-width: 0;
  height: 48px;
  border: 0;
  border-radius: 14px;
  background: none;
  color: var(--muted);
  font-family: inherit;
  font-size: 10.5px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: color 120ms ease, background-color 120ms ease, transform 120ms ease;
}

.nav-item svg {
  width: 21px;
  height: 21px;
}

.nav-item.is-active {
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}

/* Momentary tap feedback, distinct from .is-active (the persistent
   selected state) — every item, selected or not, must respond
   immediately to a touch, or standalone iOS/Android PWA taps feel dead. */
.nav-item:active {
  transform: scale(0.94);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
}

.nav-add {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  margin-top: -18px;
  border-radius: 50%;
  border: 0;
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 8px 18px color-mix(in srgb, var(--accent) 45%, transparent);
  cursor: pointer;
  transition: transform 100ms ease;
}

.nav-add:active {
  transform: scale(0.92);
}

.nav-add svg {
  width: 24px;
  height: 24px;
}

/* ---------- spinner (ready for real async use; not shown on load) ---------- */
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2.5px solid color-mix(in srgb, var(--accent) 25%, transparent);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: dvr-spin 0.7s linear infinite;
}

@keyframes dvr-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .brand-mark .mark-hub,
  .brand-mark .mark-ring,
  .spinner,
  .pull-refresh.is-refreshing .pull-refresh-icon {
    animation: none;
  }
  .category-chip,
  .category-icon,
  .category-label,
  .icon-btn,
  .featured-card,
  .nearby-card,
  .nav-add,
  .nav-item,
  .search-bar,
  .see-all,
  .page-scroll.is-resetting,
  .pull-refresh.is-resetting,
  .sheet-backdrop,
  .action-sheet,
  .sheet-cancel,
  .notif-row,
  .test-notification-btn,
  .push-sender-input,
  .push-sender-save-btn,
  .push-sender-check-btn,
  .toast {
    transition: none;
  }
}

@media (min-width: 560px) {
  .bottom-nav {
    bottom: calc(24px + env(safe-area-inset-bottom));
  }
}
