/* =========================================
   VARIANT B — WARM COMMUNITY UTILITY
   סביבי — Warm Sand + Terracotta + Olive
   ========================================= */

:root {
  --sand: #faf6f0;
  --sand-mid: #f3ece0;
  --cream: #fff8f0;
  --terracotta: #c4693e;
  --terracotta-light: #f0ddd3;
  --terracotta-dark: #a0522d;
  --olive: #4a7c59;
  --olive-light: #d8eade;
  --olive-bg: #e8f3eb;
  --text-dark: #2d1f0e;
  --text-mid: #5a3e2b;
  --text-muted: #9a7a5e;
  --border: #e6d9cc;
  --shadow-warm: 0 2px 16px rgba(196,105,62,0.10);
  --shadow-card: 0 2px 12px rgba(45,31,14,0.08);
  --radius-card: 14px;
  --radius-btn: 10px;
  --font: 'Heebo', sans-serif;
  --urgent-color: #d63b2f;
  --high-color: #c4693e;
  --wa-green: #25D366;
  --fb-blue: #1877F2;
  --auto-purple: #7B5EA7;
  --spon-amber: #c48a00;
  --bottomnav-h: 64px;
}

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

html, body {
  font-family: var(--font);
  background: var(--sand);
  color: var(--text-dark);
  min-height: 100vh;
  -webkit-tap-highlight-color: transparent;
}

/* ======= DESKTOP WRAPPER ======= */
.desktop-wrapper {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  min-height: 100vh;
  padding: 0;
}

/* Mobile: just show phone full screen */
@media (max-width: 768px) {
  .desktop-wrapper { display: block; }
  .side-panel { display: none; }
  .phone-frame {
    width: 100vw !important;
    max-height: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    border: none !important;
  }
  .phone-screen {
    height: 100vh !important;
    border-radius: 0 !important;
    max-height: none !important;
  }
}

@media (min-width: 769px) {
  .desktop-wrapper {
    flex-direction: row;
    gap: 40px;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    background: linear-gradient(135deg, #f5ede0 0%, #faf6f0 60%, #e8f0e9 100%);
    min-height: 100vh;
  }
  .side-panel {
    display: flex;
    flex-direction: column;
    width: 340px;
    flex-shrink: 0;
    align-self: flex-start;
    position: sticky;
    top: 40px;
  }
  .phone-frame {
    width: 390px !important;
    border-radius: 40px !important;
    box-shadow: 0 24px 80px rgba(45,31,14,0.22), 0 8px 24px rgba(196,105,62,0.12) !important;
    border: 2.5px solid var(--border) !important;
    overflow: hidden;
    flex-shrink: 0;
  }
  .phone-screen {
    height: 844px !important;
    max-height: 844px !important;
    border-radius: 38px !important;
    overflow: hidden !important;
  }
}

/* ======= SIDE PANEL ======= */
.side-panel-inner {
  background: var(--cream);
  border-radius: 20px;
  padding: 28px 24px;
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-warm);
}

.sp-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.sp-logo-icon { font-size: 2.2rem; }
.sp-title { font-size: 1.7rem; font-weight: 800; color: var(--terracotta); line-height: 1; }
.sp-subtitle { font-size: 0.78rem; color: var(--text-muted); }

.sp-variant-badge {
  display: inline-block;
  background: var(--terracotta-light);
  color: var(--terracotta-dark);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 14px;
}

.sp-desc { font-size: 0.88rem; color: var(--text-mid); line-height: 1.6; margin-bottom: 20px; }

.sp-section { margin-bottom: 20px; }
.sp-section-title { font-size: 0.82rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 10px; }

.sp-cats { display: flex; flex-wrap: wrap; gap: 7px; }
.sp-cat {
  display: flex; align-items: center; gap: 5px;
  background: var(--sand);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 4px 10px;
  font-size: 0.8rem;
  color: var(--text-mid);
  font-weight: 500;
}

.sp-sources { display: flex; flex-direction: column; gap: 7px; }
.sp-source { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; color: var(--text-mid); }
.src-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.src-dot.green { background: var(--olive); }
.src-dot.wa { background: var(--wa-green); }
.src-dot.fb { background: var(--fb-blue); }
.src-dot.auto { background: var(--auto-purple); }
.src-dot.spon { background: var(--spon-amber); }

.sp-small { font-size: 0.8rem; color: var(--text-mid); line-height: 1.6; }
.sp-muted { color: var(--text-muted); }

.verified-inline {
  display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px; border-radius: 50%;
  background: #14b8a6; color: white; font-size: 0.6rem; font-weight: 700;
  vertical-align: middle;
}

.sp-flow { display: flex; gap: 12px; margin-bottom: 14px; align-items: flex-start; }
.sp-flow-num {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--terracotta); color: white;
  font-size: 0.82rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 1px;
}
.sp-flow strong { font-size: 0.85rem; color: var(--text-dark); }

.sp-footer { border-top: 1.5px solid var(--border); padding-top: 14px; margin-top: 4px; text-align: center; }

/* ======= PHONE FRAME ======= */
.phone-frame { position: relative; }
.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  background: var(--sand);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* ======= SCREEN BASE ======= */
.screen {
  display: none;
  flex-direction: column;
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  position: absolute;
  inset: 0;
  background: var(--sand);
}
.screen.active { display: flex; }
.screen.has-bottomnav { padding-bottom: var(--bottomnav-h); }

/* ======= BOTTOM NAV ======= */
.bottom-nav {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: var(--bottomnav-h);
  background: var(--cream);
  border-top: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 100;
  box-shadow: 0 -2px 12px rgba(45,31,14,0.07);
  display: none;
}
.bottom-nav.visible { display: flex; }

.nav-btn {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  background: none; border: none; cursor: pointer;
  color: var(--text-muted); font-family: var(--font); font-size: 0.68rem;
  padding: 8px 14px; border-radius: 10px;
  transition: color 0.2s;
}
.nav-btn i { font-size: 1.2rem; }
.nav-btn.active { color: var(--terracotta); }
.nav-btn.active i { color: var(--terracotta); }

/* ======= FAB ======= */
.fab {
  position: absolute;
  bottom: calc(var(--bottomnav-h) + 16px);
  left: 50%;
  transform: translateX(-50%);
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--terracotta);
  color: white;
  border: none; cursor: pointer;
  font-size: 1.4rem;
  box-shadow: 0 4px 16px rgba(196,105,62,0.40);
  display: none;
  align-items: center; justify-content: center;
  z-index: 101;
  transition: transform 0.15s, box-shadow 0.15s;
}
.fab:active { transform: translateX(-50%) scale(0.93); }
.fab.visible { display: flex; }

/* ======= TOPBAR ======= */
.screen-topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px 10px;
  background: var(--cream);
  border-bottom: 1.5px solid var(--border);
  flex-shrink: 0;
}
.topbar-title { font-size: 1.05rem; font-weight: 700; color: var(--text-dark); flex: 1; }
.back-btn {
  background: var(--sand); border: 1.5px solid var(--border); color: var(--text-mid);
  width: 36px; height: 36px; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.95rem;
}

/* ======= LANDING ======= */
.landing-hero {
  background: linear-gradient(160deg, #fff0e6 0%, #faf6f0 100%);
  padding: 48px 24px 36px;
  text-align: center;
  border-bottom: 1.5px solid var(--border);
}
.landing-emoji { font-size: 3.5rem; margin-bottom: 10px; }
.landing-title { font-size: 2.4rem; font-weight: 900; color: var(--terracotta); }
.landing-tagline { font-size: 1.05rem; font-weight: 600; color: var(--text-mid); margin: 6px 0; }
.landing-desc { font-size: 0.88rem; color: var(--text-muted); line-height: 1.6; margin: 10px 0 20px; max-width: 320px; margin-inline: auto; }
.landing-cta { margin-top: 4px; }

.landing-cats { padding: 24px 16px; }
.landing-section-title { font-size: 1rem; font-weight: 700; color: var(--text-dark); margin-bottom: 14px; }
.landing-cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.landing-cat-card {
  background: var(--cream); border: 1.5px solid var(--border);
  border-radius: var(--radius-card); padding: 16px 8px;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  font-size: 0.8rem; font-weight: 600; color: var(--text-mid);
  cursor: default;
  transition: background 0.15s;
}
.lc-icon { font-size: 1.6rem; }

.landing-how { padding: 0 16px 24px; }
.how-step { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.how-num {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--terracotta); color: white;
  font-weight: 700; font-size: 0.9rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.how-text { font-size: 0.9rem; color: var(--text-mid); line-height: 1.5; }

.landing-sources { padding: 0 16px 24px; }
.landing-src-desc { font-size: 0.88rem; color: var(--text-muted); line-height: 1.6; }

.landing-cta-bottom { padding: 16px; text-align: center; }

/* ======= BUTTONS ======= */
.btn-primary {
  background: var(--terracotta);
  color: white;
  border: none; cursor: pointer;
  font-family: var(--font); font-size: 0.95rem; font-weight: 700;
  padding: 13px 28px; border-radius: var(--radius-btn);
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px;
  box-shadow: 0 4px 14px rgba(196,105,62,0.30);
  transition: background 0.15s, transform 0.1s;
}
.btn-primary:active { background: var(--terracotta-dark); transform: scale(0.98); }

.btn-outline {
  background: none;
  border: 2px solid var(--terracotta); color: var(--terracotta);
  font-family: var(--font); font-size: 0.92rem; font-weight: 700;
  padding: 12px 24px; border-radius: var(--radius-btn);
  width: 100%; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: background 0.15s;
}
.btn-outline:active { background: var(--terracotta-light); }

.btn-ghost {
  background: none; border: none; cursor: pointer;
  font-family: var(--font); font-size: 0.88rem; color: var(--text-muted);
  padding: 10px; width: 100%; text-align: center;
}

.btn-action {
  background: var(--olive-bg); color: var(--olive);
  border: 1.5px solid #b5d4be; border-radius: 8px;
  font-family: var(--font); font-size: 0.82rem; font-weight: 700;
  padding: 9px 14px; cursor: pointer; display: flex; align-items: center; gap: 6px;
  transition: background 0.15s;
}
.btn-action:active { background: #c8e6d0; }

.btn-action-secondary {
  background: var(--sand); color: var(--text-mid);
  border: 1.5px solid var(--border); border-radius: 8px;
  font-family: var(--font); font-size: 0.82rem; font-weight: 600;
  padding: 9px 14px; cursor: pointer; display: flex; align-items: center; gap: 6px;
  transition: background 0.15s;
}

.btn-wa {
  background: #e7fbe9; color: #128C7E;
  border: 1.5px solid #b2dfdb; border-radius: 8px;
  font-family: var(--font); font-size: 0.82rem; font-weight: 700;
  padding: 9px 14px; cursor: pointer; display: flex; align-items: center; gap: 6px;
}

/* ======= LOGIN ======= */
.login-wrap {
  display: flex; flex-direction: column; align-items: center;
  padding: 48px 24px; gap: 16px; min-height: 100%;
  background: linear-gradient(160deg, #fff0e6 0%, #faf6f0 100%);
}
.login-logo { font-size: 3rem; }
.login-title { font-size: 1.4rem; font-weight: 800; color: var(--text-dark); text-align: center; }
.login-sub { font-size: 0.88rem; color: var(--text-muted); text-align: center; }
.login-card {
  background: var(--cream); border: 1.5px solid var(--border);
  border-radius: 18px; padding: 24px; width: 100%;
  box-shadow: var(--shadow-card);
  display: flex; flex-direction: column; gap: 14px;
}
.btn-google {
  background: white; border: 1.5px solid var(--border);
  border-radius: var(--radius-btn); padding: 13px 20px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font); font-size: 0.95rem; font-weight: 700; color: var(--text-dark);
  cursor: pointer; width: 100%;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  transition: background 0.15s;
}
.btn-google:active { background: var(--sand); }
.google-icon { width: 20px; height: 20px; object-fit: contain; }
.login-divider { display: flex; align-items: center; gap: 12px; }
.login-divider::before, .login-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.login-divider span { font-size: 0.8rem; color: var(--text-muted); }
.login-terms { font-size: 0.75rem; color: var(--text-muted); text-align: center; line-height: 1.6; }
.login-terms a { color: var(--terracotta); }

/* ======= ONBOARDING ======= */
.onboard-wrap {
  display: flex; flex-direction: column; align-items: center;
  padding: 32px 24px; gap: 20px; min-height: 100%;
  background: linear-gradient(160deg, #fff0e6 0%, #faf6f0 100%);
}
.onboard-steps { display: flex; gap: 8px; }
.onboard-step {
  width: 28px; height: 6px; border-radius: 3px;
  background: var(--border); transition: background 0.3s, width 0.3s;
}
.onboard-step.active { background: var(--terracotta); width: 48px; }
.onboard-page { display: flex; flex-direction: column; align-items: center; gap: 16px; width: 100%; text-align: center; }
.onboard-illo { font-size: 4rem; }
.onboard-title { font-size: 1.4rem; font-weight: 800; color: var(--text-dark); }
.onboard-desc { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; max-width: 280px; }

.onboard-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.chip {
  background: var(--sand); border: 2px solid var(--border);
  border-radius: 20px; padding: 8px 14px; font-size: 0.85rem; font-weight: 600;
  color: var(--text-mid); cursor: pointer; transition: all 0.15s;
}
.chip.selected { background: var(--terracotta); border-color: var(--terracotta); color: white; }

.onboard-radius { width: 100%; }
.radius-label { display: block; font-size: 0.9rem; font-weight: 600; color: var(--text-mid); margin-bottom: 10px; }
.radius-slider {
  width: 100%; -webkit-appearance: none; appearance: none;
  height: 5px; border-radius: 3px;
  background: linear-gradient(to left, var(--border) 0%, var(--terracotta) 0%);
  outline: none;
}
.radius-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--terracotta); border: 3px solid white;
  box-shadow: 0 2px 8px rgba(196,105,62,0.4);
  cursor: pointer;
}
.radius-ticks { display: flex; justify-content: space-between; font-size: 0.72rem; color: var(--text-muted); margin-top: 6px; }

/* ======= HOME ======= */
.home-header {
  background: var(--cream); border-bottom: 1.5px solid var(--border);
  padding: 16px 16px 12px; flex-shrink: 0;
}
.home-greeting { display: flex; align-items: center; justify-content: space-between; }
.home-hello { font-size: 1.2rem; font-weight: 800; color: var(--text-dark); }
.home-area-pill {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--olive-bg); color: var(--olive);
  border-radius: 20px; padding: 4px 10px; font-size: 0.78rem; font-weight: 600;
  margin-top: 4px;
}
.home-notif-btn {
  position: relative; background: none; border: none; cursor: pointer;
  font-size: 1.3rem; color: var(--text-muted); padding: 4px;
}
.notif-dot {
  position: absolute; top: 2px; right: 2px;
  width: 9px; height: 9px; background: var(--terracotta); border-radius: 50%;
  border: 2px solid var(--cream);
}

.home-body { padding: 0 0 8px; }

/* Category grid */
.cat-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--border);
  border-bottom: 1.5px solid var(--border); margin-bottom: 0;
}
.cat-btn {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  padding: 14px 8px; background: var(--cream);
  border: none; cursor: pointer; font-family: var(--font); font-size: 0.75rem;
  font-weight: 600; color: var(--text-mid);
  transition: background 0.15s;
}
.cat-btn:active { background: var(--sand-mid); }
.cat-btn span:first-child { font-size: 1.4rem; }

/* Home sections */
.home-section { margin-top: 0; }
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px 8px;
}
.section-title { font-size: 0.92rem; font-weight: 700; color: var(--text-dark); }
.section-more { background: none; border: none; font-family: var(--font); font-size: 0.78rem; color: var(--terracotta); font-weight: 600; cursor: pointer; }

/* ======= CARDS ======= */
.item-card {
  background: var(--cream);
  border-radius: var(--radius-card);
  border: 1.5px solid var(--border);
  margin: 0 12px 10px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  cursor: pointer;
  transition: transform 0.12s, box-shadow 0.12s;
}
.item-card:active { transform: scale(0.98); box-shadow: none; }

.item-card.urgency-urgent { border-right: 4px solid var(--urgent-color); }
.item-card.urgency-high { border-right: 4px solid var(--terracotta); }

.card-inner { padding: 14px 14px 12px; }
.card-top-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.card-cat-chip {
  font-size: 0.7rem; font-weight: 700; padding: 3px 8px; border-radius: 20px;
  display: inline-flex; align-items: center; gap: 4px; flex-shrink: 0;
}
.cat-chip-event { background: #fde8d0; color: #c4693e; }
.cat-chip-help { background: #fde0e0; color: #c0392b; }
.cat-chip-service-offer { background: #e0f0e8; color: #4a7c59; }
.cat-chip-service-request { background: #e8e0f0; color: #6a4a9c; }
.cat-chip-giveaway { background: #fdf0e0; color: #b8860b; }
.cat-chip-sale { background: #e0ecf0; color: #2e6b8a; }

.card-title { font-size: 0.92rem; font-weight: 700; color: var(--text-dark); line-height: 1.4; }
.card-desc { font-size: 0.8rem; color: var(--text-muted); line-height: 1.5; margin-top: 5px; margin-bottom: 8px; }
.card-meta {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  font-size: 0.74rem; color: var(--text-muted);
}
.card-meta-item { display: flex; align-items: center; gap: 3px; }
.card-meta-item i { font-size: 0.7rem; }

.card-author-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--border);
}
.card-author { display: flex; align-items: center; gap: 6px; }
.author-avatar {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--terracotta-light); color: var(--terracotta);
  font-size: 0.65rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.author-name { font-size: 0.76rem; color: var(--text-mid); font-weight: 600; }
.verified-badge {
  width: 15px; height: 15px; border-radius: 50%;
  background: #14b8a6; color: white;
  font-size: 0.55rem; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* Source badges */
.source-badge {
  font-size: 0.65rem; font-weight: 700; padding: 2px 6px; border-radius: 10px;
  display: inline-flex; align-items: center; gap: 3px; flex-shrink: 0;
}
.src-native { background: #d4edda; color: #155724; }
.src-wa { background: #d4f5dc; color: #075e54; }
.src-fb { background: #d0e4ff; color: #1877F2; }
.src-auto { background: #ede0ff; color: #6b21a8; }
.src-sponsored { background: #fff3cd; color: #856404; }

/* Price badge */
.price-badge {
  font-size: 0.8rem; font-weight: 700; color: var(--olive);
  background: var(--olive-bg); padding: 3px 8px; border-radius: 8px;
}

/* Attendee badge */
.attendee-badge { font-size: 0.72rem; color: var(--text-muted); display: flex; align-items: center; gap: 3px; }

/* ======= LIST ROW (WhatsApp style) ======= */
.list-row {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 16px; background: var(--cream);
  border-bottom: 1px solid var(--border); cursor: pointer;
  transition: background 0.12s;
}
.list-row:active { background: var(--sand-mid); }
.list-row.urgency-urgent { border-right: 4px solid var(--urgent-color); }
.list-row.urgency-high { border-right: 4px solid var(--terracotta); }

.list-icon {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 1.3rem;
  background: var(--sand);
}
.list-content { flex: 1; min-width: 0; }
.list-title { font-size: 0.88rem; font-weight: 700; color: var(--text-dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-sub { font-size: 0.76rem; color: var(--text-muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-right { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex-shrink: 0; }
.list-dist { font-size: 0.7rem; color: var(--text-muted); }
.list-time { font-size: 0.7rem; color: var(--terracotta); font-weight: 600; }
.list-quick-action {
  background: var(--olive); color: white; border: none; border-radius: 6px;
  padding: 5px 9px; font-size: 0.7rem; font-weight: 700; cursor: pointer; font-family: var(--font);
  white-space: nowrap;
}

/* ======= HOT LIST ======= */
.hot-explain {
  background: var(--terracotta-light); color: var(--terracotta-dark);
  font-size: 0.8rem; font-weight: 600;
  padding: 10px 16px; display: flex; align-items: center; gap: 8px;
  border-bottom: 1.5px solid var(--border); flex-shrink: 0;
}
.hot-filter-row {
  display: flex; gap: 8px; overflow-x: auto; padding: 10px 14px;
  border-bottom: 1.5px solid var(--border); flex-shrink: 0;
}
.hot-filter-row::-webkit-scrollbar { display: none; }
.hot-list { overflow-y: auto; flex: 1; }
.hot-row {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 16px; background: var(--cream);
  border-bottom: 1px solid var(--border); cursor: pointer;
  transition: background 0.12s;
}
.hot-row:active { background: var(--sand-mid); }
.hot-rank {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--terracotta); color: white;
  font-size: 0.78rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.hot-rank.rank-1 { background: #d4af37; }
.hot-rank.rank-2 { background: #9e9e9e; }
.hot-rank.rank-3 { background: #a0856b; }
.hot-score {
  font-size: 0.65rem; font-weight: 700; color: var(--text-muted);
  text-align: center; margin-top: 2px;
}
.hot-content { flex: 1; min-width: 0; }
.hot-title { font-size: 0.88rem; font-weight: 700; color: var(--text-dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hot-meta { font-size: 0.74rem; color: var(--text-muted); margin-top: 2px; display: flex; gap: 8px; }
.hot-urgency {
  font-size: 0.68rem; font-weight: 700; padding: 2px 6px; border-radius: 8px;
  flex-shrink: 0; align-self: center;
}
.urgency-urgent-badge { background: #fde0e0; color: #c0392b; }
.urgency-high-badge { background: #fde8d0; color: #c4693e; }
.urgency-normal-badge { background: var(--olive-bg); color: var(--olive); }

/* ======= MAP ======= */
.map-filter-row {
  display: flex; gap: 8px; overflow-x: auto; padding: 10px 12px;
  background: var(--cream); border-bottom: 1.5px solid var(--border); flex-shrink: 0;
}
.map-filter-row::-webkit-scrollbar { display: none; }
#map { z-index: 1; }

.map-sheet {
  position: absolute; bottom: 60px; left: 0; right: 0;
  background: var(--cream); border-radius: 18px 18px 0 0;
  border-top: 1.5px solid var(--border);
  padding: 8px 16px 16px;
  box-shadow: 0 -4px 24px rgba(45,31,14,0.12);
  transform: translateY(100%); transition: transform 0.3s ease;
  z-index: 10;
  max-height: 260px; overflow-y: auto;
}
.map-sheet.open { transform: translateY(0); }
.sheet-drag {
  width: 36px; height: 4px; border-radius: 2px;
  background: var(--border); margin: 0 auto 12px;
}

/* ======= LIST VIEW CONTROLS ======= */
.list-controls {
  background: var(--cream); border-bottom: 1.5px solid var(--border);
  flex-shrink: 0;
}
.filter-row {
  display: flex; gap: 8px; overflow-x: auto; padding: 10px 14px 6px;
}
.filter-row::-webkit-scrollbar { display: none; }
.sort-row {
  display: flex; align-items: center; gap: 6px; padding: 6px 14px 10px;
  font-size: 0.78rem;
}
.sort-label { color: var(--text-muted); }
.sort-btn {
  background: var(--sand); border: 1.5px solid var(--border);
  border-radius: 6px; padding: 4px 10px; font-size: 0.75rem; font-weight: 600;
  color: var(--text-mid); cursor: pointer; font-family: var(--font);
  transition: all 0.15s;
}
.sort-btn.active { background: var(--terracotta); border-color: var(--terracotta); color: white; }

.filter-chip {
  display: flex; align-items: center; gap: 4px; white-space: nowrap;
  background: var(--sand); border: 1.5px solid var(--border);
  border-radius: 20px; padding: 5px 12px; font-size: 0.78rem; font-weight: 600;
  color: var(--text-mid); cursor: pointer; font-family: var(--font);
  transition: all 0.15s;
}
.filter-chip.active { background: var(--terracotta); border-color: var(--terracotta); color: white; }

.list-items { overflow-y: auto; flex: 1; }

/* ======= ITEM DETAIL ======= */
.item-body { overflow-y: auto; padding: 16px; flex: 1; }

.item-detail-cat { margin-bottom: 12px; }
.item-detail-title { font-size: 1.2rem; font-weight: 800; color: var(--text-dark); line-height: 1.4; margin-bottom: 10px; }
.item-detail-desc { font-size: 0.9rem; color: var(--text-mid); line-height: 1.6; margin-bottom: 16px; }

.item-detail-meta {
  background: var(--sand); border-radius: 10px;
  padding: 12px 14px; margin-bottom: 16px;
  display: flex; flex-direction: column; gap: 8px;
}
.item-detail-meta-row { display: flex; align-items: center; gap: 8px; font-size: 0.83rem; color: var(--text-mid); }
.item-detail-meta-row i { width: 16px; color: var(--terracotta); }

.item-detail-author {
  display: flex; align-items: center; gap: 10px;
  background: var(--cream); border: 1.5px solid var(--border);
  border-radius: 12px; padding: 12px 14px; margin-bottom: 16px;
}
.author-avatar-lg {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--terracotta-light); color: var(--terracotta);
  font-size: 1rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.author-info-name { font-size: 0.9rem; font-weight: 700; color: var(--text-dark); }
.author-info-sub { font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; }

.item-detail-actions { display: flex; flex-direction: column; gap: 10px; }
.item-action-row { display: flex; gap: 8px; }
.item-action-row .btn-action,
.item-action-row .btn-action-secondary,
.item-action-row .btn-wa { flex: 1; justify-content: center; }

.action-feedback {
  background: var(--olive-bg); color: var(--olive);
  border-radius: 10px; padding: 10px 14px;
  font-size: 0.85rem; font-weight: 600; text-align: center;
  display: none;
}
.action-feedback.visible { display: block; }

/* ======= CREATE ======= */
.create-body { overflow-y: auto; flex: 1; padding: 20px 16px; }
.create-step-label { font-size: 0.78rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 16px; }
.create-cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.create-cat-card {
  background: var(--cream); border: 2px solid var(--border);
  border-radius: 14px; padding: 24px 16px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 0.88rem; font-weight: 700; color: var(--text-mid);
  cursor: pointer; transition: all 0.15s;
}
.create-cat-card:active { background: var(--terracotta-light); border-color: var(--terracotta); color: var(--terracotta); }
.create-cat-card span:first-child { font-size: 2rem; }

.create-form { display: flex; flex-direction: column; gap: 14px; margin-bottom: 16px; }
.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-label { font-size: 0.82rem; font-weight: 700; color: var(--text-mid); }
.form-input, .form-textarea, .form-select {
  background: var(--cream); border: 1.5px solid var(--border);
  border-radius: 10px; padding: 11px 14px;
  font-family: var(--font); font-size: 0.9rem; color: var(--text-dark);
  outline: none; transition: border-color 0.15s;
  width: 100%; direction: rtl;
}
.form-input:focus, .form-textarea:focus, .form-select:focus { border-color: var(--terracotta); }
.form-textarea { min-height: 80px; resize: vertical; }

.create-submit { margin-bottom: 8px; }
.create-success-wrap { text-align: center; padding: 40px 20px; }
.success-illo { font-size: 4rem; margin-bottom: 16px; }
.success-title { font-size: 1.4rem; font-weight: 800; color: var(--text-dark); margin-bottom: 8px; }
.success-desc { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 24px; }

/* ======= RESPONDERS ======= */
.responders-post-summary {
  background: var(--terracotta-light);
  padding: 14px 16px; flex-shrink: 0;
}
.resp-post-title { font-size: 0.95rem; font-weight: 700; color: var(--text-dark); }
.resp-post-meta { font-size: 0.78rem; color: var(--text-muted); margin-top: 3px; }

.responders-list { overflow-y: auto; flex: 1; }
.responder-row {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; background: var(--cream);
  border-bottom: 1.5px solid var(--border);
}
.resp-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--sand-mid); color: var(--terracotta);
  font-size: 1.1rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.resp-info { flex: 1; min-width: 0; }
.resp-name { font-size: 0.9rem; font-weight: 700; color: var(--text-dark); display: flex; align-items: center; gap: 5px; }
.resp-bio { font-size: 0.77rem; color: var(--text-muted); margin-top: 2px; }
.resp-dist { font-size: 0.72rem; color: var(--olive); font-weight: 600; margin-top: 2px; }
.resp-msg-btn {
  background: var(--olive); color: white; border: none; border-radius: 8px;
  padding: 8px 12px; font-size: 0.78rem; font-weight: 700; cursor: pointer; font-family: var(--font);
  white-space: nowrap; flex-shrink: 0;
}

/* ======= NOTIFICATIONS / SETTINGS ======= */
.settings-body { overflow-y: auto; flex: 1; padding: 16px; }
.settings-section { background: var(--cream); border: 1.5px solid var(--border); border-radius: 14px; padding: 16px; margin-bottom: 14px; }
.settings-section-title { font-size: 0.82rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 12px; }
.settings-desc { font-size: 0.83rem; color: var(--text-mid); margin-bottom: 10px; }
.settings-toggle-row { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 0.88rem; color: var(--text-mid); }
.settings-toggle-row:last-child { border-bottom: none; }

.toggle { position: relative; display: inline-block; width: 44px; height: 24px; flex-shrink: 0; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute; inset: 0; cursor: pointer;
  background: var(--border); border-radius: 12px; transition: background 0.2s;
}
.toggle-slider::before {
  content: ''; position: absolute;
  width: 18px; height: 18px; bottom: 3px; right: 3px;
  border-radius: 50%; background: white; transition: transform 0.2s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}
.toggle input:checked + .toggle-slider { background: var(--olive); }
.toggle input:checked + .toggle-slider::before { transform: translateX(-20px); }

.radio-group { display: flex; flex-direction: column; gap: 10px; }
.radio-row { display: flex; align-items: center; gap: 10px; font-size: 0.88rem; color: var(--text-mid); cursor: pointer; }
.radio-row input[type="radio"] { accent-color: var(--terracotta); width: 16px; height: 16px; }

/* ======= MY POSTS ======= */
.my-posts-body { overflow-y: auto; flex: 1; padding: 16px; }
.mp-section-title { font-size: 0.82rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; margin: 16px 0 10px; }
.mp-section-title:first-child { margin-top: 0; }
.my-post-card {
  background: var(--cream); border: 1.5px solid var(--border);
  border-radius: 12px; padding: 14px; margin-bottom: 10px;
}
.my-post-card.expired { opacity: 0.65; }
.mp-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.mp-cat-badge {
  font-size: 0.72rem; font-weight: 700; padding: 3px 8px; border-radius: 20px;
}
.mp-cat-badge.event { background: #fde8d0; color: #c4693e; }
.mp-cat-badge.help { background: #fde0e0; color: #c0392b; }
.mp-cat-badge.giveaway { background: #fdf0e0; color: #b8860b; }
.mp-actions { display: flex; gap: 8px; }
.mp-btn {
  background: var(--sand); border: 1.5px solid var(--border);
  border-radius: 7px; width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; cursor: pointer; color: var(--text-muted);
}
.mp-btn.delete { color: #c0392b; }
.mp-title { font-size: 0.88rem; font-weight: 700; color: var(--text-dark); margin-bottom: 8px; }
.mp-stats { display: flex; gap: 12px; font-size: 0.76rem; color: var(--text-muted); flex-wrap: wrap; }
.mp-stats i { margin-left: 3px; }
.mp-stats.muted { color: var(--text-muted); }
.expired-badge {
  background: #f5e0e0; color: #c0392b;
  font-size: 0.68rem; font-weight: 700; padding: 3px 8px; border-radius: 20px;
}

/* ======= PROFILE ======= */
.profile-hero {
  background: linear-gradient(160deg, #fff0e6 0%, #faf6f0 100%);
  padding: 32px 16px 24px; text-align: center;
  border-bottom: 1.5px solid var(--border);
  flex-shrink: 0;
}
.profile-avatar {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--terracotta); color: white;
  font-size: 1.8rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 10px; box-shadow: 0 4px 14px rgba(196,105,62,0.30);
}
.profile-name { font-size: 1.2rem; font-weight: 800; color: var(--text-dark); }
.profile-hood { font-size: 0.82rem; color: var(--text-muted); margin-top: 4px; }
.profile-verified-badge {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--olive-bg); color: var(--olive);
  border-radius: 20px; padding: 4px 12px; font-size: 0.75rem; font-weight: 700;
  margin-top: 8px;
}
.profile-stats {
  display: flex; justify-content: space-around; align-items: center;
  padding: 16px; background: var(--cream); border-bottom: 1.5px solid var(--border);
  flex-shrink: 0;
}
.stat-box { text-align: center; }
.stat-num { font-size: 1.4rem; font-weight: 800; color: var(--terracotta); }
.stat-label { font-size: 0.72rem; color: var(--text-muted); font-weight: 600; margin-top: 2px; }
.profile-menu { padding: 16px; overflow-y: auto; flex: 1; }
.profile-menu-item {
  display: flex; align-items: center; gap: 12px; width: 100%;
  background: var(--cream); border: 1.5px solid var(--border);
  border-radius: 12px; padding: 14px 16px; margin-bottom: 10px;
  font-family: var(--font); font-size: 0.92rem; font-weight: 600; color: var(--text-mid);
  cursor: pointer; text-align: right;
  transition: background 0.15s;
}
.profile-menu-item:active { background: var(--sand-mid); }
.profile-menu-item.danger { color: #c0392b; }
.profile-menu-item i { width: 18px; text-align: center; flex-shrink: 0; }

/* ======= MAP SHEET ITEM ======= */
.sheet-item-cat { margin-bottom: 6px; }
.sheet-item-title { font-size: 0.95rem; font-weight: 700; color: var(--text-dark); margin-bottom: 6px; }
.sheet-item-desc { font-size: 0.82rem; color: var(--text-muted); line-height: 1.5; margin-bottom: 12px; }
.sheet-item-actions { display: flex; gap: 8px; }

/* ======= FEATURED CAROUSEL (עכשיו) ======= */
.now-carousel {
  display: flex;
  flex-direction: row-reverse;
  gap: 10px;
  overflow-x: auto;
  padding: 0 12px 10px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.now-carousel::-webkit-scrollbar { display: none; }

.featured-card {
  flex-shrink: 0;
  width: 200px;
  background: var(--cream);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-card);
  padding: 13px 13px 11px;
  box-shadow: var(--shadow-card);
  cursor: pointer;
  transition: transform 0.12s;
  position: relative;
}
.featured-card:active { transform: scale(0.97); }
.featured-card.urgency-urgent { border-right: 4px solid var(--urgent-color); }
.featured-card.urgency-high { border-right: 4px solid var(--terracotta); }
.featured-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.featured-card-title { font-size: 0.88rem; font-weight: 700; color: var(--text-dark); line-height: 1.35; margin-bottom: 5px; }
.featured-card-desc { font-size: 0.75rem; color: var(--text-muted); line-height: 1.4; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.featured-card-footer { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.now-urgency-badge { font-size: 0.65rem; font-weight: 700; background: #fde0e0; color: #c0392b; padding: 2px 6px; border-radius: 8px; }

/* ======= SECTION COUNT BADGE ======= */
.section-count {
  font-size: 0.72rem; font-weight: 700;
  color: var(--text-muted);
  background: var(--sand-mid);
  padding: 2px 7px; border-radius: 10px;
  margin-right: 4px;
}

/* ======= NOTIFICATIONS (B) ======= */
.notif-list-b { overflow-y: auto; flex: 1; }
.b-notif-row {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 16px; background: var(--cream);
  border-bottom: 1.5px solid var(--border);
  cursor: pointer; transition: background 0.12s;
}
.b-notif-row:active { background: var(--sand-mid); }
.b-notif-row.b-notif-unread { background: #fff5f0; }
.b-notif-emoji { font-size: 1.6rem; flex-shrink: 0; width: 36px; text-align: center; }
.b-notif-body { flex: 1; }
.b-notif-text { font-size: 0.86rem; font-weight: 600; color: var(--text-dark); line-height: 1.4; margin-bottom: 3px; }
.b-notif-time { font-size: 0.72rem; color: var(--text-muted); }
.b-notif-dot { width: 9px; height: 9px; background: var(--terracotta); border-radius: 50%; flex-shrink: 0; margin-top: 6px; }

/* ======= PROFILE ACTIVITY ======= */
.profile-activity-section {
  background: var(--cream); border-bottom: 1.5px solid var(--border);
  flex-shrink: 0;
}
.profile-activity-title {
  font-size: 0.78rem; font-weight: 700; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.05em;
  padding: 12px 16px 6px;
}
.profile-activity-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; border-top: 1px solid var(--border);
  cursor: pointer; transition: background 0.12s;
}
.profile-activity-row:active { background: var(--sand-mid); }
.profile-activity-icon { font-size: 1.2rem; width: 28px; text-align: center; flex-shrink: 0; }
.profile-activity-info { flex: 1; }
.profile-activity-name { font-size: 0.85rem; font-weight: 700; color: var(--text-dark); }
.profile-activity-meta { font-size: 0.72rem; color: var(--text-muted); margin-top: 2px; }

/* ======= SHARE BUTTON ======= */
.btn-share {
  background: var(--sand); color: var(--text-mid);
  border: 1.5px solid var(--border); border-radius: 8px;
  font-family: var(--font); font-size: 0.82rem; font-weight: 600;
  padding: 9px 14px; cursor: pointer; display: flex; align-items: center; gap: 6px;
  flex: 1; justify-content: center;
  transition: background 0.15s;
}
.btn-share:active { background: var(--sand-mid); }

/* ======= UTILITY ======= */
.hidden { display: none !important; }

/* ======= SCROLLBAR ======= */
.screen::-webkit-scrollbar,
.list-items::-webkit-scrollbar,
.hot-list::-webkit-scrollbar,
.settings-body::-webkit-scrollbar,
.my-posts-body::-webkit-scrollbar,
.item-body::-webkit-scrollbar,
.profile-menu::-webkit-scrollbar,
.home-body::-webkit-scrollbar,
.create-body::-webkit-scrollbar,
.responders-list::-webkit-scrollbar {
  width: 4px;
}
.screen::-webkit-scrollbar-thumb,
.list-items::-webkit-scrollbar-thumb,
.hot-list::-webkit-scrollbar-thumb,
.settings-body::-webkit-scrollbar-thumb,
.my-posts-body::-webkit-scrollbar-thumb,
.item-body::-webkit-scrollbar-thumb,
.profile-menu::-webkit-scrollbar-thumb,
.home-body::-webkit-scrollbar-thumb,
.create-body::-webkit-scrollbar-thumb,
.responders-list::-webkit-scrollbar-thumb {
  background: var(--border); border-radius: 2px;
}
