/* ============================================================
   VARIANT H — Kinetic Cards / Immersive Swipe Discovery
   סביבי · Hebrew RTL · Heebo font
   ============================================================ */

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --font: 'Heebo', sans-serif;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bot: env(safe-area-inset-bottom, 0px);

  /* Grays */
  --gray-50:  #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;

  /* Category gradients */
  --grad-event:    linear-gradient(135deg, #312e81 0%, #4f46e5 100%);
  --grad-help:     linear-gradient(135deg, #881337 0%, #e11d48 100%);
  --grad-offer:    linear-gradient(135deg, #064e3b 0%, #10b981 100%);
  --grad-request:  linear-gradient(135deg, #7c2d12 0%, #ea580c 100%);
  --grad-giveaway: linear-gradient(135deg, #4c1d95 0%, #8b5cf6 100%);
  --grad-sale:     linear-gradient(135deg, #78350f 0%, #f59e0b 100%);

  /* BG muted versions */
  --bg-event:    #1a1840;
  --bg-help:     #3d0718;
  --bg-offer:    #012a1e;
  --bg-request:  #3d1506;
  --bg-giveaway: #230b48;
  --bg-sale:     #3d1a04;

  /* Transitions */
  --t-fast: 0.15s ease;
  --t-med: 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  --t-slow: 0.5s cubic-bezier(0.22, 1, 0.36, 1);

  /* Card */
  --card-radius: 24px;
  --card-shadow: 0 24px 60px rgba(0,0,0,0.5), 0 4px 16px rgba(0,0,0,0.3);
}

html { font-size: 16px; }

body {
  font-family: var(--font);
  background: #0a0a0f;
  color: var(--gray-900);
  direction: rtl;
  overflow: hidden;
  height: 100dvh;
  width: 100vw;
}

button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea { font-family: inherit; outline: none; border: none; }

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 2px; }

/* ============================================================
   APP SHELL & PHONE FRAME
   ============================================================ */

#app-shell {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100vw;
  height: 100dvh;
  gap: 0;
}

#phone-frame {
  position: relative;
  width: 100%;
  max-width: 390px;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  flex-shrink: 0;
}

/* Desktop: phone frame + right panel */
@media (min-width: 769px) {
  body { background: #09090f; }
  #app-shell { gap: 32px; justify-content: center; }
  #phone-frame {
    width: 390px;
    height: 844px;
    border-radius: 48px;
    box-shadow: 0 0 0 12px #1a1a2e, 0 0 0 14px #2a2a4e, 0 40px 80px rgba(0,0,0,0.8);
    overflow: hidden;
  }
  #desktop-panel { display: flex; }
}

@media (max-width: 768px) {
  #desktop-panel { display: none; }
}

/* ============================================================
   DESKTOP PANEL
   ============================================================ */

#desktop-panel {
  display: none;
  flex-direction: column;
  width: 300px;
  height: 844px;
  overflow-y: auto;
}

.desktop-panel-inner {
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.dp-logo {
  font-size: 22px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.5px;
}

.dp-title {
  font-size: 28px;
  font-weight: 900;
  color: #fff;
  line-height: 1.2;
}

.dp-title span { color: #818cf8; }

.dp-desc {
  font-size: 14px;
  color: var(--gray-400);
  line-height: 1.6;
}

.dp-feature {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.dp-feat-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: #a5b4fc;
  flex-shrink: 0;
}

.dp-feature strong { display: block; color: #fff; font-size: 14px; margin-bottom: 2px; }
.dp-feature p { color: var(--gray-400); font-size: 12px; }

.dp-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dp-cat {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
}

.dp-nav-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.dp-link {
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-400);
  text-align: right;
  transition: all var(--t-fast);
}

.dp-link:hover, .dp-link.active {
  background: rgba(255,255,255,0.08);
  color: #fff;
}

/* ============================================================
   STATUS BAR
   ============================================================ */

#status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 20px 4px;
  background: transparent;
  position: relative;
  z-index: 100;
  flex-shrink: 0;
  height: 36px;
}

.status-time { font-size: 14px; font-weight: 700; color: #fff; }
.status-icons { display: flex; gap: 6px; font-size: 12px; color: #fff; }

/* ============================================================
   HEADER
   ============================================================ */

#app-header {
  flex-shrink: 0;
  position: relative;
  z-index: 90;
  background: transparent;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 16px 8px;
  gap: 12px;
}

#header-title {
  font-size: 20px;
  font-weight: 900;
  color: #fff;
  flex: 1;
  text-align: center;
  letter-spacing: -0.5px;
}

.header-btn {
  min-width: 44px;
  min-height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
  padding: 4px;
  transition: background var(--t-fast);
  position: relative;
  flex-shrink: 0;
}

.header-btn:hover { background: rgba(255,255,255,0.25); }
.header-btn.hidden { visibility: hidden; pointer-events: none; }

.header-btn .badge {
  position: absolute;
  top: -4px;
  left: -4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #e11d48;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================================================
   MAIN CONTENT
   ============================================================ */

#main-content {
  flex: 1;
  position: relative;
  overflow: hidden;
  min-height: 0;
}

.screen {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  overflow-x: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-20px);
  transition: opacity var(--t-slow), transform var(--t-slow);
}

.screen.active {
  opacity: 1;
  pointer-events: all;
  transform: translateX(0);
}

/* ============================================================
   BOTTOM NAV
   ============================================================ */

#bottom-nav {
  display: flex;
  align-items: center;
  background: rgba(15,15,30,0.95);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 6px 0 calc(6px + var(--safe-bot));
  flex-shrink: 0;
  position: relative;
  z-index: 80;
}

.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 6px 2px;
  color: var(--gray-500);
  font-size: 10px;
  font-weight: 600;
  transition: color var(--t-fast);
}

.nav-item i { font-size: 18px; }
.nav-item.active { color: #818cf8; }

/* ============================================================
   FAB
   ============================================================ */

#fab-create {
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 22px;
  z-index: 85;
  transition: transform var(--t-med), box-shadow var(--t-fast);
}

#fab-create:hover { transform: translateX(-50%) scale(1.1); box-shadow: 0 12px 32px rgba(99,102,241,0.6); }

/* ============================================================
   LANDING SCREEN
   ============================================================ */

#screen-landing {
  background: #07071a;
  overflow: hidden;
}

.landing-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.landing-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
}

.orb1 {
  width: 300px; height: 300px;
  background: #4f46e5;
  top: -100px; right: -100px;
  animation: orb-float 8s ease-in-out infinite;
}

.orb2 {
  width: 250px; height: 250px;
  background: #e11d48;
  bottom: 100px; left: -80px;
  animation: orb-float 10s ease-in-out infinite reverse;
}

.orb3 {
  width: 200px; height: 200px;
  background: #10b981;
  top: 50%; left: 50%; transform: translate(-50%,-50%);
  animation: orb-float 6s ease-in-out infinite 2s;
}

@keyframes orb-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(20px, -20px) scale(1.1); }
}

.orb3 { animation-name: orb-float3; }
@keyframes orb-float3 {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(calc(-50% + 15px), calc(-50% + 15px)) scale(1.15); }
}

.landing-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 30px 24px 40px;
  gap: 16px;
}

.landing-logo {
  text-align: center;
  margin-top: 10px;
}

.logo-icon { font-size: 48px; margin-bottom: 8px; }

.landing-title {
  font-size: 48px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -2px;
  line-height: 1;
}

.landing-sub {
  font-size: 18px;
  color: rgba(255,255,255,0.7);
  font-weight: 400;
  margin-top: 6px;
}

/* Swipe demo animation */
.swipe-demo {
  position: relative;
  width: 200px;
  height: 130px;
  flex-shrink: 0;
}

.demo-card {
  position: absolute;
  border-radius: 16px;
  left: 50%;
}

.demo-card-bg {
  width: 160px;
  height: 110px;
  background: #8b5cf6;
  top: 10px;
  transform: translateX(-50%) scale(0.88) translateY(12px);
  opacity: 0.5;
}

.demo-card-mid {
  width: 170px;
  height: 115px;
  background: #6366f1;
  top: 5px;
  transform: translateX(-50%) scale(0.94) translateY(6px);
  opacity: 0.7;
}

.demo-card-front {
  width: 180px;
  height: 120px;
  background: linear-gradient(135deg, #312e81, #4f46e5);
  top: 0;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  animation: demo-swipe 3s ease-in-out infinite;
}

@keyframes demo-swipe {
  0%, 20%   { transform: translateX(-50%) rotate(0deg); }
  40%        { transform: translateX(calc(-50% + 40px)) rotate(5deg); }
  60%        { transform: translateX(calc(-50% - 40px)) rotate(-5deg); }
  80%, 100% { transform: translateX(-50%) rotate(0deg); }
}

.demo-card-inner { text-align: center; }
.demo-emoji { font-size: 28px; display: block; }
.demo-label { font-size: 11px; color: rgba(255,255,255,0.9); font-weight: 700; }

.swipe-hint {
  position: absolute;
  bottom: -22px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  white-space: nowrap;
}

.swipe-arrow { font-size: 16px; }

.landing-cats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.cat-pill {
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}

.cta-btn {
  width: 100%;
  padding: 16px 24px;
  border-radius: 16px;
  background: linear-gradient(135deg, #4f46e5, #818cf8);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 8px 24px rgba(79,70,229,0.4);
  transition: transform var(--t-fast), box-shadow var(--t-fast);
}

.cta-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(79,70,229,0.5); }
.cta-btn:active { transform: translateY(0); }

.landing-disclaimer {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  text-align: center;
}

/* ============================================================
   LOGIN SCREEN
   ============================================================ */

#screen-login { background: var(--gray-50); }

.login-content {
  display: flex;
  flex-direction: column;
  padding: 40px 24px;
  gap: 32px;
  height: 100%;
}

.login-header { text-align: center; }
.login-logo { font-size: 48px; margin-bottom: 12px; }
.login-header h2 { font-size: 28px; font-weight: 900; color: var(--gray-900); }
.login-header p { font-size: 14px; color: var(--gray-500); margin-top: 6px; }

.login-form { display: flex; flex-direction: column; gap: 16px; }

.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label { font-size: 13px; font-weight: 700; color: var(--gray-700); }

.input-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--gray-100);
  border: 1.5px solid var(--gray-200);
  border-radius: 14px;
  padding: 12px 16px;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}

.input-wrap:focus-within {
  border-color: #818cf8;
  box-shadow: 0 0 0 3px rgba(129,140,248,0.2);
  background: #fff;
}

.input-wrap i { color: var(--gray-400); font-size: 14px; }
.input-wrap input { flex: 1; background: none; font-size: 15px; color: var(--gray-900); }

textarea {
  width: 100%;
  background: var(--gray-100);
  border: 1.5px solid var(--gray-200);
  border-radius: 14px;
  padding: 12px 16px;
  font-size: 15px;
  color: var(--gray-900);
  resize: none;
  transition: border-color var(--t-fast);
}

textarea:focus { border-color: #818cf8; outline: none; }

.login-divider {
  text-align: center;
  position: relative;
  color: var(--gray-400);
  font-size: 13px;
}

.login-divider::before, .login-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 38%;
  height: 1px;
  background: var(--gray-200);
}

.login-divider::before { right: 0; }
.login-divider::after { left: 0; }

.social-btn {
  width: 100%;
  padding: 14px;
  border-radius: 14px;
  background: var(--gray-100);
  border: 1.5px solid var(--gray-200);
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-800);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all var(--t-fast);
}

.social-btn:hover { background: var(--gray-200); }

/* ============================================================
   ONBOARDING SCREEN
   ============================================================ */

#screen-onboarding { background: #07071a; }

.onboarding-wrap {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 24px 24px 32px;
  gap: 24px;
}

.onboarding-progress {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.ob-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  transition: all var(--t-med);
}

.ob-dot.active {
  width: 24px;
  border-radius: 4px;
  background: #818cf8;
}

.ob-cards-container {
  flex: 1;
  position: relative;
}

.ob-card {
  position: absolute;
  inset: 0;
  border-radius: var(--card-radius);
  overflow: hidden;
  opacity: 0;
  transform: translateX(40px);
  transition: opacity var(--t-slow), transform var(--t-slow);
  background: #fff;
  box-shadow: var(--card-shadow);
}

.ob-card.active {
  opacity: 1;
  transform: translateX(0);
}

.ob-card-hero {
  height: 55%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ob-emoji { font-size: 72px; }

.ob-card-body {
  padding: 24px;
}

.ob-card-body h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 12px;
}

.ob-card-body p { font-size: 15px; color: var(--gray-600); line-height: 1.6; }

.ob-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.ob-skip-btn {
  flex: 1;
  padding: 14px;
  border-radius: 14px;
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.7);
  font-size: 15px;
  font-weight: 600;
  text-align: center;
}

.ob-actions .cta-btn { flex: 2; }

/* ============================================================
   HOME / DECK SCREEN
   ============================================================ */

#screen-home {
  background: var(--bg-event);
  transition: background 0.6s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

#screen-home.active { overflow: hidden; }

#deck-bg {
  position: absolute;
  inset: 0;
  background: var(--bg-event);
  transition: background 0.6s ease;
  z-index: 0;
}

/* Top bar */
.deck-topbar {
  position: relative;
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 12px 8px;
  flex-shrink: 0;
}

.deck-filters {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.deck-filters::-webkit-scrollbar { display: none; }

.filter-chip {
  flex-shrink: 0;
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(255,255,255,0.1);
  border: 1.5px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.7);
  font-size: 12px;
  font-weight: 600;
  transition: all var(--t-fast);
  white-space: nowrap;
}

.filter-chip.active {
  background: rgba(255,255,255,0.25);
  border-color: rgba(255,255,255,0.4);
  color: #fff;
}

.deck-counter {
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,0.5);
  padding: 0 4px;
  direction: rtl;
}

/* ---- Card Stack ---- */
.card-stack {
  position: relative;
  flex: 1;
  margin: 0 16px 8px;
  z-index: 10;
  perspective: 1000px;
  min-height: 0;
}

/* Back cards (peeking) */
.swipe-card.stack-2 {
  position: absolute;
  inset: 0;
  border-radius: var(--card-radius);
  background: rgba(255,255,255,0.15);
  transform: scale(0.92) translateY(18px);
  transform-origin: bottom center;
  z-index: 1;
  pointer-events: none;
}

.swipe-card.stack-1 {
  position: absolute;
  inset: 0;
  border-radius: var(--card-radius);
  background: rgba(255,255,255,0.25);
  transform: scale(0.96) translateY(9px);
  transform-origin: bottom center;
  z-index: 2;
  pointer-events: none;
}

/* ---- Main Swipe Card ---- */
.swipe-card.current {
  position: absolute;
  inset: 0;
  border-radius: var(--card-radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  z-index: 10;
  user-select: none;
  transform-origin: bottom center;
  transition: none; /* JS controls transform */
  display: flex;
  flex-direction: column;
  background: #fff;
}

.swipe-card.current.snap-back {
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.swipe-card.current.animate-out-left {
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
  transform: translateX(-130%) rotate(-20deg) !important;
  opacity: 0;
}

.swipe-card.current.animate-out-right {
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
  transform: translateX(130%) rotate(20deg) scale(1.05) !important;
  opacity: 0;
}

.swipe-card.current.animate-in {
  animation: card-enter 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes card-enter {
  from { transform: translateX(110%) rotate(10deg); opacity: 0.6; }
  to   { transform: translateX(0) rotate(0deg); opacity: 1; }
}

/* -- Card Hero (top 40%) -- */
.card-hero {
  height: 40%;
  min-height: 150px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.card-hero-bg {
  position: absolute;
  inset: 0;
}

.card-hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.card-big-emoji { font-size: 72px; filter: drop-shadow(0 4px 12px rgba(0,0,0,0.4)); line-height: 1; }

.card-cat-badge {
  padding: 4px 14px;
  border-radius: 20px;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.3);
  font-size: 12px;
  font-weight: 700;
  color: #fff;
}

/* Source badge on hero */
.card-source-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 3px 10px;
  border-radius: 10px;
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(6px);
  font-size: 10px;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  letter-spacing: 0.3px;
}

/* Sponsored shimmer */
.card-sponsored .card-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg,
    transparent 40%,
    rgba(255,215,0,0.25) 50%,
    transparent 60%
  );
  background-size: 200% 100%;
  animation: gold-shimmer 2.5s ease-in-out infinite;
  z-index: 3;
  pointer-events: none;
}

@keyframes gold-shimmer {
  0% { background-position: -100% 0; }
  100% { background-position: 200% 0; }
}

.card-sponsored .swipe-card { outline: 2px solid rgba(255,215,0,0.6); }

/* Sponsored tag */
.sponsored-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 3px 10px;
  border-radius: 10px;
  background: rgba(251,191,36,0.9);
  font-size: 10px;
  font-weight: 800;
  color: #78350f;
  letter-spacing: 0.3px;
  z-index: 4;
}

/* Swipe indicators that appear during drag */
.swipe-indicator {
  position: absolute;
  top: 20px;
  padding: 8px 20px;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 900;
  border: 3px solid;
  opacity: 0;
  transition: opacity 0.1s;
  z-index: 20;
  pointer-events: none;
}

.indicator-like {
  right: 20px;
  color: #10b981;
  border-color: #10b981;
  background: rgba(16,185,129,0.1);
  transform: rotate(-15deg);
}

.indicator-skip {
  left: 20px;
  color: #e11d48;
  border-color: #e11d48;
  background: rgba(225,29,72,0.1);
  transform: rotate(15deg);
}

/* -- Card Body (middle 40%) -- */
.card-body {
  flex: 1;
  padding: 16px 18px 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #fff;
}

.card-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1.25;
  letter-spacing: -0.5px;
}

.card-desc {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
}

.card-meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-500);
}

.card-meta-item i { font-size: 11px; }

.card-author-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-author-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.card-author-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-700);
  flex: 1;
}

.verified-badge { color: #3b82f6; font-size: 11px; }

/* Mini-map on card body */
.card-mini-map-wrap {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid var(--gray-200);
  flex-shrink: 0;
  position: relative;
}

.card-mini-map {
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Price badge */
.card-price {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 8px;
  background: rgba(245,158,11,0.12);
  color: #d97706;
  font-size: 14px;
  font-weight: 800;
}

/* -- Card Actions (bottom 20%) -- */
.card-actions {
  padding: 12px 16px calc(12px + var(--safe-bot));
  background: #fff;
  border-top: 1px solid var(--gray-100);
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}

.card-cta-btn {
  width: 100%;
  padding: 14px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform var(--t-fast), opacity var(--t-fast);
}

.card-cta-btn:active { transform: scale(0.98); opacity: 0.9; }

.card-secondary-btns {
  display: flex;
  gap: 8px;
}

.card-sec-btn {
  flex: 1;
  padding: 10px;
  border-radius: 12px;
  background: var(--gray-100);
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-700);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background var(--t-fast);
}

.card-sec-btn:hover { background: var(--gray-200); }

/* -- Card Flip (confirmation) -- */
.card-flip-container {
  position: absolute;
  inset: 0;
  perspective: 1200px;
  z-index: 50;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
}

.card-flip-container.flipped {
  pointer-events: all;
  opacity: 1;
}

.card-flip-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-flip-container.flipped .card-flip-inner {
  transform: rotateY(180deg);
}

.card-face, .card-back {
  position: absolute;
  inset: 0;
  border-radius: var(--card-radius);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.card-back {
  transform: rotateY(180deg);
  background: linear-gradient(135deg, #064e3b, #10b981);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: #fff;
}

.card-back .confirm-icon { font-size: 72px; }
.card-back .confirm-title { font-size: 24px; font-weight: 800; }
.card-back .confirm-sub { font-size: 15px; opacity: 0.8; }

/* ---- Swipe Buttons ---- */
.swipe-btns {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 8px 16px 12px;
  position: relative;
  z-index: 20;
  flex-shrink: 0;
}

.swipe-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: transform var(--t-med), box-shadow var(--t-fast);
  backdrop-filter: blur(12px);
}

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

.btn-back {
  width: 42px; height: 42px;
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.7);
  font-size: 16px;
}

.btn-skip {
  background: rgba(225,29,72,0.2);
  border: 2px solid rgba(225,29,72,0.5);
  color: #fb7185;
  box-shadow: 0 4px 16px rgba(225,29,72,0.3);
}

.btn-skip:hover { background: rgba(225,29,72,0.3); box-shadow: 0 6px 20px rgba(225,29,72,0.4); }

.btn-save {
  width: 64px;
  height: 64px;
  background: rgba(16,185,129,0.2);
  border: 2px solid rgba(16,185,129,0.5);
  color: #34d399;
  box-shadow: 0 4px 20px rgba(16,185,129,0.35);
  font-size: 24px;
}

.btn-save:hover { background: rgba(16,185,129,0.3); box-shadow: 0 8px 28px rgba(16,185,129,0.5); }

.btn-map-it {
  background: rgba(99,102,241,0.2);
  border: 2px solid rgba(99,102,241,0.5);
  color: #a5b4fc;
  box-shadow: 0 4px 16px rgba(99,102,241,0.3);
}

/* Saved FAB on deck */
.saved-fab {
  position: absolute;
  bottom: 160px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(12px);
  border: 1.5px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  z-index: 25;
  transition: transform var(--t-fast);
}

.saved-fab:hover { transform: scale(1.1); }

.saved-count {
  position: absolute;
  top: -6px;
  left: -6px;
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  background: #e11d48;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

/* Deck empty state (all cards swiped) */
.deck-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 16px;
  color: rgba(255,255,255,0.8);
  padding: 40px;
  text-align: center;
}

.deck-empty h3 { font-size: 22px; font-weight: 800; color: rgba(255,255,255,0.95); }
.deck-empty p { font-size: 14px; opacity: 0.7; }
.deck-empty .btn-primary {
  margin-top: 12px;
  padding: 14px 28px;
  border-radius: 16px;
  background: linear-gradient(135deg, #4f46e5, #818cf8);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(79,70,229,0.4);
}

/* End of deck state */
.deck-end {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 16px;
  color: rgba(255,255,255,0.6);
  padding: 40px;
  text-align: center;
}

.deck-end-icon { font-size: 64px; }
.deck-end h3 { font-size: 22px; font-weight: 800; color: rgba(255,255,255,0.9); }
.deck-end p { font-size: 14px; }
.deck-end .cta-btn { margin-top: 12px; }

/* ============================================================
   SAVED SCREEN
   ============================================================ */

#screen-saved { background: var(--gray-50); }

.saved-screen { padding: 16px; }

.screen-hd { margin-bottom: 16px; }
.screen-hd h2 { font-size: 24px; font-weight: 900; color: var(--gray-900); }
.screen-hd p { font-size: 13px; color: var(--gray-500); margin-top: 4px; }

.saved-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.saved-card {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  cursor: pointer;
  transition: transform var(--t-fast), box-shadow var(--t-fast);
  background: #fff;
}

.saved-card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.12); }

.saved-card-hero {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
}

.saved-card-info {
  padding: 10px 12px;
}

.saved-card-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.saved-card-meta { font-size: 11px; color: var(--gray-500); margin-top: 4px; }

.saved-empty {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  gap: 12px;
  text-align: center;
  color: var(--gray-500);
}

.saved-empty-icon { font-size: 48px; }

/* ============================================================
   HOT / LIST SCREENS
   ============================================================ */

#screen-hot { background: var(--gray-50); }
#screen-list { background: var(--gray-50); }

.list-screen { padding: 16px; }

.hot-list, #all-list { display: flex; flex-direction: column; gap: 10px; }

.list-card {
  background: #fff;
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: transform var(--t-fast), box-shadow var(--t-fast);
}

.list-card:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,0.1); }

.list-card-emoji {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  flex-shrink: 0;
}

.list-card-body { flex: 1; min-width: 0; }
.list-card-title { font-size: 15px; font-weight: 700; color: var(--gray-900); }
.list-card-meta { font-size: 12px; color: var(--gray-500); margin-top: 3px; }
.list-card-author { font-size: 12px; color: var(--gray-400); margin-top: 2px; }

.urgency-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.urgency-urgent { background: #e11d48; }
.urgency-high { background: #f59e0b; }
.urgency-normal { background: #10b981; }
.urgency-low { background: var(--gray-300); }

/* ============================================================
   MAP SCREEN
   ============================================================ */

#screen-map { padding: 0; background: #0a0a0f; }
#main-map-container { height: 100%; width: 100%; }
#main-map { width: 100%; height: 100%; }

/* ============================================================
   ITEM DETAIL SCREEN
   ============================================================ */

#screen-item { background: var(--gray-50); }

.item-detail { padding-bottom: 40px; }

.item-hero {
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
}

.item-hero-emoji { font-size: 80px; }
.item-hero-cat {
  padding: 5px 16px;
  border-radius: 20px;
  background: rgba(255,255,255,0.2);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.item-body { padding: 24px 20px; }
.item-title { font-size: 26px; font-weight: 900; color: var(--gray-900); margin-bottom: 12px; }
.item-desc { font-size: 15px; color: var(--gray-600); line-height: 1.7; margin-bottom: 20px; }
.item-meta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }

.item-meta-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 10px;
  background: var(--gray-100);
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-700);
}

.item-map {
  width: 100%;
  height: 180px;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 20px;
  border: 1px solid var(--gray-200);
}

.item-cta { width: 100%; padding: 16px; border-radius: 16px; font-size: 17px; font-weight: 700; color: #fff; display: flex; align-items: center; justify-content: center; gap: 10px; }

/* ============================================================
   CREATE SCREEN
   ============================================================ */

#screen-create { background: var(--gray-50); }

.create-screen { padding: 16px; }
.create-form { display: flex; flex-direction: column; gap: 20px; }

.cat-select-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.cat-select-btn {
  padding: 12px;
  border-radius: 14px;
  background: var(--gray-100);
  border: 2px solid var(--gray-200);
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-700);
  transition: all var(--t-fast);
}

.cat-select-btn.active {
  background: rgba(79,70,229,0.1);
  border-color: #4f46e5;
  color: #4f46e5;
}

/* ============================================================
   NOTIFICATIONS SCREEN
   ============================================================ */

#screen-notifications { background: var(--gray-50); }

.notif-list { padding: 0 16px; display: flex; flex-direction: column; gap: 0; }

.notif-item {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--gray-100);
  position: relative;
}

.notif-item.unread::before {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4f46e5;
}

.notif-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.notif-body { flex: 1; }
.notif-body strong { font-size: 14px; font-weight: 700; color: var(--gray-900); }
.notif-body p { font-size: 13px; color: var(--gray-600); margin-top: 2px; }
.notif-time { font-size: 11px; color: var(--gray-400); margin-top: 4px; display: block; }

/* ============================================================
   PROFILE SCREEN
   ============================================================ */

#screen-profile { background: var(--gray-50); }

.profile-screen { padding-bottom: 40px; }

.profile-hero {
  background: linear-gradient(135deg, #312e81, #4f46e5);
  padding: 40px 24px 32px;
  text-align: center;
  color: #fff;
}

.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  border: 3px solid rgba(255,255,255,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 800;
  margin: 0 auto 16px;
}

.profile-hero h2 { font-size: 22px; font-weight: 800; }
.profile-hero p { font-size: 14px; opacity: 0.8; margin-top: 4px; }

.profile-stats {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-top: 20px;
}

.pstat { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.pstat strong { font-size: 20px; font-weight: 800; }
.pstat span { font-size: 12px; opacity: 0.75; }

.profile-menu { padding: 16px; display: flex; flex-direction: column; gap: 4px; }

.profile-menu-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 16px;
  border-radius: 14px;
  background: #fff;
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-800);
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  transition: background var(--t-fast);
}

.profile-menu-item:hover { background: var(--gray-100); }
.profile-menu-item i:first-child { color: var(--gray-500); font-size: 16px; }
.profile-menu-item span { flex: 1; text-align: right; }
.profile-menu-item i:last-child { color: var(--gray-300); font-size: 12px; }
.profile-menu-item.danger { color: #e11d48; }
.profile-menu-item.danger i:first-child { color: #e11d48; }

/* ============================================================
   SETTINGS SCREEN
   ============================================================ */

#screen-settings { background: var(--gray-50); }

.settings-list { padding: 0 16px; }

.settings-group { margin-bottom: 24px; }

.settings-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0 4px;
  margin-bottom: 8px;
}

.settings-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: #fff;
  border-radius: 12px;
  margin-bottom: 2px;
  font-size: 15px;
  color: var(--gray-800);
}

.settings-val { font-size: 14px; color: var(--gray-400); }

/* Toggle */
.toggle { position: relative; display: inline-block; width: 44px; height: 24px; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--gray-300);
  border-radius: 24px;
  transition: background 0.3s;
  cursor: pointer;
}
.toggle-slider::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  right: 3px;
  top: 3px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.3s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.toggle input:checked + .toggle-slider { background: #4f46e5; }
.toggle input:checked + .toggle-slider::before { transform: translateX(-20px); }

/* ============================================================
   COMMON UTILITIES
   ============================================================ */

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 24px;
  gap: 12px;
  text-align: center;
  color: var(--gray-500);
}

.empty-icon { font-size: 48px; }

/* Leaflet overrides */
.leaflet-container { background: #e8e8e8; }
.leaflet-control-zoom { display: none !important; }
.leaflet-control-attribution { display: none !important; }

/* Ripple animation */
@keyframes ripple {
  0% { transform: scale(0.8); opacity: 1; }
  100% { transform: scale(2); opacity: 0; }
}

/* Pulse for urgent items */
@keyframes pulse-urgent {
  0%, 100% { box-shadow: 0 0 0 0 rgba(225,29,72,0.4); }
  50% { box-shadow: 0 0 0 8px rgba(225,29,72,0); }
}

.urgent-pulse { animation: pulse-urgent 2s ease-in-out infinite; }

/* Bounce in */
@keyframes bounce-in {
  0% { transform: scale(0.3); opacity: 0; }
  60% { transform: scale(1.1); }
  80% { transform: scale(0.95); }
  100% { transform: scale(1); opacity: 1; }
}

.bounce-in { animation: bounce-in 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards; }

/* ============================================================
   CARD HERO ENHANCEMENTS
   ============================================================ */

/* Author avatar on hero (top-right) */
.card-hero-author {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  backdrop-filter: blur(8px);
  border: 2px solid rgba(255,255,255,0.5);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  cursor: default;
}

.hero-author-verified {
  position: absolute;
  bottom: -3px;
  right: -3px;
  width: 14px;
  height: 14px;
  background: #3b82f6;
  border-radius: 50%;
  color: #fff;
  font-size: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

/* Urgency badge on hero */
.urgency-badge-hero {
  position: absolute;
  bottom: 44px;
  right: 12px;
  padding: 4px 10px;
  border-radius: 10px;
  background: rgba(225,29,72,0.9);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.3px;
  z-index: 5;
  animation: pulse-urgent 1.5s ease-in-out infinite;
}

/* Prominent dist + time at bottom of hero */
.card-hero-meta {
  position: absolute;
  bottom: 10px;
  left: 12px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  z-index: 5;
}

.card-hero-meta-chip {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 10px;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

/* Urgent card border glow */
.card-urgent .card-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--card-radius) var(--card-radius) 0 0;
  box-shadow: inset 0 0 0 2px rgba(225,29,72,0.8);
  pointer-events: none;
  z-index: 6;
}

/* ============================================================
   SWIPE HINTS OVERLAY
   ============================================================ */

.swipe-hints-overlay {
  position: absolute;
  inset: 0;
  z-index: 30;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  border-radius: var(--card-radius);
  background: rgba(0,0,0,0.08);
}

.swipe-hint-left,
.swipe-hint-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.swipe-hint-left .swipe-hint-icon {
  font-size: 32px;
  color: #fb7185;
  font-weight: 900;
}

.swipe-hint-right .swipe-hint-icon {
  font-size: 32px;
  color: #34d399;
  font-weight: 900;
}

.swipe-hint-label {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

/* ============================================================
   SAVED CARD — REMOVE BUTTON
   ============================================================ */

.saved-card { position: relative; }

.saved-card-remove {
  position: absolute;
  top: 6px;
  left: 6px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  transition: background var(--t-fast);
  z-index: 5;
  line-height: 1;
}

.saved-card-remove:hover { background: rgba(225,29,72,0.7); }

/* ============================================================
   MAP SCREEN — BACK BUTTON
   ============================================================ */

#map-back-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 500;
  display: none;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 20px;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(10px);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font);
  border: 1px solid rgba(255,255,255,0.2);
  cursor: pointer;
  transition: background var(--t-fast);
}

#map-back-btn:hover { background: rgba(0,0,0,0.85); }

/* Marker pulse animation */
@keyframes marker-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.3); }
}

/* ─── Haptic Visual Flash ─── */
body.flash-red {
  background: rgba(239, 68, 68, 0.15) !important;
  transition: background 0.3s;
}
body.flash-green {
  background: rgba(34, 197, 94, 0.15) !important;
  transition: background 0.3s;
}

/* ─── Card Share Hero Button ─── */
.card-share-hero-btn {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  transition: background 0.2s;
}
.card-share-hero-btn:hover {
  background: rgba(255,255,255,0.32);
}
