       @import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Poppins:wght@400;500;600;700;800&family=Pacifico&family=Kalam:wght@700&display=swap');

/* ===== CUSTOM NOTIF PERMISSION MODAL ===== */
#notif-permission-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 20, 10, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: notifBgFadeIn 0.3s ease;
}
@keyframes notifBgFadeIn { from { opacity: 0; } to { opacity: 1; } }
#notif-permission-modal.hiding { animation: notifBgFadeOut 0.3s ease forwards; }
@keyframes notifBgFadeOut { to { opacity: 0; } }
.notif-modal-card {
  background: #ffffff; border-radius: 28px; padding: 28px 24px 24px;
  max-width: 420px; width: 100%;
  box-shadow: 0 24px 60px rgba(30,77,59,0.2), 0 8px 24px rgba(0,0,0,0.12);
  animation: notifCardSlideUp 0.4s cubic-bezier(0.34,1.56,0.64,1);
  position: relative; overflow: hidden;
}
@keyframes notifCardSlideUp { from { transform: translateY(80px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.notif-modal-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, #1e4d3b, #2d7a5f, #1e4d3b);
  border-radius: 28px 28px 0 0;
}
.notif-modal-icon-wrap { display: flex; justify-content: center; margin-bottom: 18px; }
.notif-modal-icon-bg {
  width: 72px; height: 72px; border-radius: 50%;
  background: rgba(30,77,59,0.08);
  border: 2px solid rgba(30,77,59,0.15);
  display: flex; align-items: center; justify-content: center;
  animation: notifIconPulse 2s ease-in-out infinite;
}
@keyframes notifIconPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(30,77,59,0.25); }
  50% { box-shadow: 0 0 0 12px rgba(30,77,59,0); }
}
.notif-modal-title { text-align: center; font-family: 'Poppins', sans-serif; font-size: 1.2rem; font-weight: 700; color: #1e293b; margin-bottom: 8px; }
.notif-modal-desc { text-align: center; font-family: 'Inter', sans-serif; font-size: 0.88rem; color: #64748b; line-height: 1.6; margin-bottom: 20px; }
.notif-modal-perks { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.notif-perk-row { display: flex; align-items: center; gap: 12px; background: rgba(30,77,59,0.05); border: 1px solid rgba(30,77,59,0.1); border-radius: 14px; padding: 10px 14px; }
.notif-perk-icon { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.notif-perk-text { font-family: 'Inter', sans-serif; font-size: 0.83rem; font-weight: 500; color: #334155; line-height: 1.4; }
.notif-modal-btns { display: flex; flex-direction: column; gap: 10px; }
.notif-allow-btn {
  width: 100%; padding: 14px;
  background: #1e4d3b;
  color: #fff; border: none; border-radius: 16px;
  font-family: 'Poppins', sans-serif; font-size: 0.95rem; font-weight: 600;
  cursor: pointer; box-shadow: 0 6px 20px rgba(30,77,59,0.35);
  transition: transform 0.15s, box-shadow 0.15s;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.notif-allow-btn:active { transform: scale(0.97); box-shadow: 0 3px 10px rgba(30,77,59,0.2); }
.notif-dismiss-btn {
  width: 100%; padding: 12px; background: transparent; color: #94a3b8;
  border: 1px solid #e2e8f0; border-radius: 16px;
  font-family: 'Inter', sans-serif; font-size: 0.85rem; font-weight: 500; cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.notif-dismiss-btn:active { background: #f1f5f9; color: #64748b; }
.notif-privacy-note { text-align: center; font-size: 0.75rem; color: #cbd5e1; margin-top: 14px; font-family: 'Inter', sans-serif; }

html[data-theme="dark"] .notif-modal-card { background: #1a201d; box-shadow: 0 24px 60px rgba(0,0,0,0.5), 0 8px 24px rgba(0,0,0,0.3); }
html[data-theme="dark"] .notif-modal-title { color: var(--text-strong); }
html[data-theme="dark"] .notif-modal-desc { color: var(--text-soft); }
html[data-theme="dark"] .notif-perk-row { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.1); }
html[data-theme="dark"] .notif-perk-text { color: var(--text-strong); }
html[data-theme="dark"] .notif-dismiss-btn { color: var(--text-faint); border-color: rgba(255,255,255,0.14); }
html[data-theme="dark"] .notif-dismiss-btn:active { background: rgba(255,255,255,0.06); color: var(--text-soft); }
html[data-theme="dark"] .notif-privacy-note { color: var(--text-faint); }

  
        :root {
    --font-display: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-special: 'Pacifico', cursive;
    --primary: #667eea;
    --secondary: #764ba2;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --premium-light: #d4af37;
    --premium: #c9a961;
    --premium-dark: #8b7355;
    --premium-rose: #b8860b;
    --dark: #1e293b;
    --gray: #64748b;
    --light-gray: #94a3b8;
    --bg: rgba(255, 255, 255, 0.55);
    --bg-light: rgba(255, 255, 255, 0.35);
    --border: rgba(255, 255, 255, 0.6);
    --shadow: 0 8px 32px rgba(100, 80, 200, 0.15);
    --radius: 20px;
    --glass: rgba(255, 255, 255, 0.5);
    --glass-border: rgba(255, 255, 255, 0.7);
    --glass-shadow: 0 8px 32px rgba(100, 80, 200, 0.18);
    --story-gradient: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);

    /* ---- new semantic tokens (light values = current look, unchanged) ---- */
    --body-bg: #f5f0e8;
    --surface: rgba(255,255,255,0.7);
    --surface-solid: #ffffff;
    --surface-2: #f1f5f9;
    --surface-3: #f8fafc;
    --text-strong: #1a1a1a;
    --text-soft: #64748b;
    --text-faint: #94a3b8;
    --text-mute: #999999;
    --card-border: rgba(255,255,255,0.9);
    --divider: #f1f5f9;
    --divider-2: #e2e8f0;
    --input-bg: rgba(255,255,255,0.6);
    --input-border: rgba(255,255,255,0.8);
    --nav-bg: #f5f0e8;
    --nav-border: rgba(200,190,175,0.6);
    --nav-inactive: #9c8a72;
    --overlay: rgba(0,0,0,0.6);
    --skeleton-1: #e2e8f0;
    --skeleton-2: #f1f5f9;
    color-scheme: light;
}

/* =====================================================
   DARK MODE — variable overrides
   Everything visual keys off these; components below
   use var(...) where possible, plus a targeted safety
   net for the many spots that still use hard-coded hex.
===================================================== */
html[data-theme="dark"] {
    color-scheme: dark;
    --dark: #ffffff;
    --gray: #d4d4d4;
    --light-gray: #a3a3a3;
    --bg: rgba(20, 20, 20, 0.65);
    --bg-light: rgba(255, 255, 255, 0.06);
    --border: rgba(255, 255, 255, 0.12);
    --glass: rgba(20, 20, 20, 0.55);
    --glass-border: rgba(255, 255, 255, 0.14);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.55);

    --body-bg: #000000;
    --surface: rgba(255,255,255,0.05);
    --surface-solid: #111111;
    --surface-2: #171717;
    --surface-3: #1d1d1d;
    --text-strong: #ffffff;
    --text-soft: #d4d4d4;
    --text-faint: #a3a3a3;
    --text-mute: #b5b5b5;
    --text-placeholder: #7a7a7a;
    --card-border: rgba(255,255,255,0.08);
    --divider: rgba(255,255,255,0.08);
    --divider-2: rgba(255,255,255,0.10);
    --input-bg: rgba(255,255,255,0.06);
    --input-border: rgba(255,255,255,0.14);
    --nav-bg: #000000;
    --nav-border: rgba(255,255,255,0.10);
    --nav-inactive: #a3a3a3;
    --overlay: rgba(0,0,0,0.8);
    --skeleton-1: #161616;
    --skeleton-2: #1c1c1c;
    --premium-light: #e8c766;
    --premium: #d9bc7a;
    --premium-dark: #b39a6d;
}

html[data-theme="dark"] body {
    background: var(--body-bg);
    color: var(--text-strong);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}
html[data-theme="dark"] body::before { display: none; }

/* smooth cross-fade whenever the theme flips */
html[data-theme="dark"] , html:not([data-theme="dark"]) {
    transition: background-color 0.35s ease, color 0.35s ease;
}
body, header, .bottom-nav, .product-card, .search-bar input, .filter-btn,
.form-input, .btn, .action-btn, input, textarea, select {
    transition: background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

/* Header / logo / search */
html[data-theme="dark"] header { border-bottom-color: var(--divider); box-shadow: 0 4px 24px rgba(0,0,0,0.35); }
html[data-theme="dark"] .logo,
html[data-theme="dark"] .header-subtitle { color: var(--text-strong); }
html[data-theme="dark"] .search-section { background: rgba(255,255,255,0.03); border-bottom-color: var(--divider); }
html[data-theme="dark"] .search-bar input,
html[data-theme="dark"] .filter-btn { background: var(--input-bg) !important; border-color: var(--input-border) !important; color: var(--text-strong); }
html[data-theme="dark"] .search-bar input::placeholder { color: var(--text-faint); }
html[data-theme="dark"] .search-bar input:focus { background: var(--surface-2) !important; }
html[data-theme="dark"] .filter-btn { color: #b7c2ff; }

/* Bottom nav */
html[data-theme="dark"] .bottom-nav { background: var(--nav-bg); border-color: var(--nav-border); box-shadow: 0 10px 40px rgba(0,0,0,0.5), 0 2px 0px rgba(255,255,255,0.04) inset; }
html[data-theme="dark"] .nav-item { color: var(--nav-inactive); }
html[data-theme="dark"] .nav-item.active { color: var(--text-strong); }
html[data-theme="dark"] .nav-item.active svg { stroke: var(--text-strong); fill: var(--text-strong); }

/* Product cards & skeletons */
html[data-theme="dark"] .product-card { background: var(--surface); border-color: var(--card-border); }
html[data-theme="dark"] .product-card-img { background: var(--surface-3); }
html[data-theme="dark"] .product-card-name { color: var(--text-strong); }
html[data-theme="dark"] .product-card-seller { color: var(--text-faint); }
html[data-theme="dark"] .skeleton-qs-image,
html[data-theme="dark"] .skeleton-qs-line,
html[data-theme="dark"] .product-card-skeleton {
    background: linear-gradient(90deg, var(--skeleton-1) 25%, var(--skeleton-2) 50%, var(--skeleton-1) 75%) !important;
    background-size: 200% 100% !important;
}

/* Generic form controls anywhere in the app */
html[data-theme="dark"] input,
html[data-theme="dark"] textarea,
html[data-theme="dark"] select {
    background: var(--input-bg);
    border-color: var(--input-border);
    color: var(--text-strong);
}
html[data-theme="dark"] .form-input { background: var(--input-bg); border-color: var(--input-border); color: var(--text-strong); }
html[data-theme="dark"] .action-btn { background: var(--input-bg); border-color: var(--input-border); color: var(--text-strong); }

/* Generic overlays / modal sheets that use bright hard-coded whites */
html[data-theme="dark"] [style*="background:#fff"],
html[data-theme="dark"] [style*="background: #fff"],
html[data-theme="dark"] [style*="background:#ffffff"],
html[data-theme="dark"] [style*="background: #ffffff"],
html[data-theme="dark"] [style*="background:white"],
html[data-theme="dark"] [style*="background: white"] {
    background: var(--surface-solid) !important;
}
html[data-theme="dark"] [style*="background:#f1f5f9"],
html[data-theme="dark"] [style*="background: #f1f5f9"] { background: var(--surface-2) !important; }
html[data-theme="dark"] [style*="background:#f8fafc"],
html[data-theme="dark"] [style*="background: #f8fafc"] { background: var(--surface-3) !important; }
html[data-theme="dark"] [style*="background:#f5f0e8"],
html[data-theme="dark"] [style*="background: #f5f0e8"] { background: var(--body-bg) !important; }
html[data-theme="dark"] [style*="background:#eee"],
html[data-theme="dark"] [style*="background: #eee"],
html[data-theme="dark"] [style*="background:#e2e8f0"],
html[data-theme="dark"] [style*="background: #e2e8f0"] { background: var(--surface-2) !important; }
html[data-theme="dark"] [style*="background:rgba(255,255,255,0.6)"],
html[data-theme="dark"] [style*="background:rgba(255,255,255,0.7)"],
html[data-theme="dark"] [style*="background:rgba(255,255,255,0.85)"],
html[data-theme="dark"] [style*="background: rgba(255,255,255,0.6)"],
html[data-theme="dark"] [style*="background: rgba(255, 255, 255, 0.55)"],
html[data-theme="dark"] [style*="background: rgba(255, 255, 255, 0.5)"] { background: rgba(255,255,255,0.06) !important; }
html[data-theme="dark"] [style*="background: rgba(0,0,0,0.6)"],
html[data-theme="dark"] [style*="background:rgba(0,0,0,0.6)"],
html[data-theme="dark"] [style*="background: rgba(0,0,0,0.7)"],
html[data-theme="dark"] [style*="background:rgba(0,0,0,0.7)"],
html[data-theme="dark"] [style*="background: rgba(0,0,0,0.8)"],
html[data-theme="dark"] [style*="background:rgba(0,20,10,0.55)"] { background: rgba(0,0,0,0.72) !important; }

/* Dark-on-light hardcoded text colors → light-on-dark equivalents */
html[data-theme="dark"] [style*="color:#1a1a1a"],
html[data-theme="dark"] [style*="color: #1a1a1a"],
html[data-theme="dark"] [style*="color:#1a1a1a !important"],
html[data-theme="dark"] [style*="color: #1a1a1a !important"] { color: var(--text-strong) !important; }
html[data-theme="dark"] [style*="color:#333"],
html[data-theme="dark"] [style*="color: #333"] { color: var(--text-strong) !important; }
html[data-theme="dark"] [style*="color:#64748b"],
html[data-theme="dark"] [style*="color: #64748b"] { color: var(--text-soft) !important; }
html[data-theme="dark"] [style*="color:#94a3b8"],
html[data-theme="dark"] [style*="color: #94a3b8"] { color: var(--text-faint) !important; }
html[data-theme="dark"] [style*="color:#999"],
html[data-theme="dark"] [style*="color: #999"] { color: var(--text-mute) !important; }
html[data-theme="dark"] [style*="color:#666"],
html[data-theme="dark"] [style*="color: #666"] { color: var(--text-soft) !important; }
html[data-theme="dark"] [style*="color:#555"],
html[data-theme="dark"] [style*="color: #555"] { color: var(--text-soft) !important; }
html[data-theme="dark"] [style*="color:#888"] { color: var(--text-faint) !important; }
html[data-theme="dark"] [style*="color:#bbb"] { color: var(--text-mute) !important; }
html[data-theme="dark"] [style*="color:#cbd5e1"] { color: var(--text-soft) !important; }

/* Soft tinted status backgrounds (badges/pills) — deepen instead of flattening to keep the tint legible */
html[data-theme="dark"] [style*="background:#fee2e2"] { background: rgba(239,68,68,0.18) !important; }
html[data-theme="dark"] [style*="background:#fef3c7"] { background: rgba(245,158,11,0.18) !important; }
html[data-theme="dark"] [style*="background:#f0fdf4"] { background: rgba(16,185,129,0.16) !important; }
html[data-theme="dark"] [style*="background:#dcfce7"] { background: rgba(16,185,129,0.18) !important; }
html[data-theme="dark"] [style*="background:#eff6ff"] { background: rgba(59,130,246,0.16) !important; }
html[data-theme="dark"] [style*="background:#fff1f2"] { background: rgba(244,63,94,0.16) !important; }
html[data-theme="dark"] [style*="background:#fff5f5"] { background: rgba(239,68,68,0.14) !important; }

/* Borders that assumed a light card underneath */
html[data-theme="dark"] [style*="border:1.5px solid #e2e8f0"],
html[data-theme="dark"] [style*="border-bottom:1px solid #e2e8f0"],
html[data-theme="dark"] [style*="border-top:1px solid #e2e8f0"],
html[data-theme="dark"] [style*="border-bottom:1px solid #f1f5f9"] { border-color: var(--divider-2) !important; }

/* =====================================================
   DARK MODE — "Bento Black" pass
   Darkens the brand green + turns green text/icons white
   so everything reads clearly on the near-black surfaces.
===================================================== */
html[data-theme="dark"] [style*="background:#1e4d3b"] { background:#163a2c !important; }
html[data-theme="dark"] [style*="background: #1e4d3b"] { background:#163a2c !important; }
html[data-theme="dark"] [style*="background:linear-gradient(135deg, #1e4d3b 0%, #133629 100%)"] { background:linear-gradient(135deg, #163a2c 0%, #102e23 100%) !important; }
html[data-theme="dark"] [style*="background:linear-gradient(135deg, #1e4d3b, #2d7a5f)"] { background:linear-gradient(135deg, #163a2c, #225c47) !important; }
html[data-theme="dark"] [style*="background:linear-gradient(135deg, #1e4d3b, #2d7a5f, #1e4d3b)"] { background:linear-gradient(135deg, #163a2c, #225c47, #163a2c) !important; }
html[data-theme="dark"] [style*="background:linear-gradient(135deg,#1e4d3b,#2d7a5f)"] { background:linear-gradient(135deg,#163a2c,#225c47) !important; }
html[data-theme="dark"] [style*="background:linear-gradient(90deg, #1e4d3b, #2d7a5f, #1e4d3b)"] { background:linear-gradient(90deg, #163a2c, #225c47, #163a2c) !important; }
html[data-theme="dark"] [style*="background:linear-gradient(90deg,#1e4d3b,#2d7a5f,#1e4d3b)"] { background:linear-gradient(90deg,#163a2c,#225c47,#163a2c) !important; }
html[data-theme="dark"] [style*="color:#1e4d3b"] { color: var(--text-strong) !important; }
html[data-theme="dark"] [style*="color: #1e4d3b"] { color: var(--text-strong) !important; }
html[data-theme="dark"] svg[stroke="#1e4d3b"] { stroke: var(--text-strong) !important; }
html[data-theme="dark"] path[fill="#1e4d3b"] { fill: var(--text-strong) !important; }
html[data-theme="dark"] [style*="outline:3px solid #1e4d3b"] { outline-color:#163a2c !important; }
html[data-theme="dark"] [style*="accent-color:#1e4d3b"] { accent-color:#163a2c !important; }
html[data-theme="dark"] [style*="background:rgba(30, 77, 59, 0.08)"] { background:rgba(22, 58, 44, 0.08) !important; }
html[data-theme="dark"] [style*="background:rgba(30, 77, 59, 0.12)"] { background:rgba(22, 58, 44, 0.12) !important; }
html[data-theme="dark"] [style*="background:rgba(30,77,59,0.05)"] { background:rgba(22,58,44,0.05) !important; }
html[data-theme="dark"] [style*="background:rgba(30,77,59,0.06)"] { background:rgba(22,58,44,0.06) !important; }
html[data-theme="dark"] [style*="background:rgba(30,77,59,0.07)"] { background:rgba(22,58,44,0.07) !important; }
html[data-theme="dark"] [style*="background:rgba(30,77,59,0.08)"] { background:rgba(22,58,44,0.08) !important; }
html[data-theme="dark"] [style*="background:rgba(30,77,59,0.1)"] { background:rgba(22,58,44,0.1) !important; }
html[data-theme="dark"] [style*="box-shadow:0 -8px 40px rgba(30,77,59,0.18)"] { box-shadow:0 -8px 40px rgba(22,58,44,0.18) !important; }
html[data-theme="dark"] [style*="box-shadow: 0 -8px 40px rgba(30,77,59,0.18)"] { box-shadow:0 -8px 40px rgba(22,58,44,0.18) !important; }
html[data-theme="dark"] [style*="box-shadow:0 -8px 40px rgba(30,77,59,0.2)"] { box-shadow:0 -8px 40px rgba(22,58,44,0.2) !important; }
html[data-theme="dark"] [style*="box-shadow: 0 -8px 40px rgba(30,77,59,0.2)"] { box-shadow:0 -8px 40px rgba(22,58,44,0.2) !important; }
html[data-theme="dark"] [style*="box-shadow:0 0 0 0 rgba(30,77,59,0.25)"] { box-shadow:0 0 0 0 rgba(22,58,44,0.25) !important; }
html[data-theme="dark"] [style*="box-shadow: 0 0 0 0 rgba(30,77,59,0.25)"] { box-shadow:0 0 0 0 rgba(22,58,44,0.25) !important; }
html[data-theme="dark"] [style*="box-shadow:0 0 0 12px rgba(30,77,59,0)"] { box-shadow:0 0 0 12px rgba(22,58,44,0) !important; }
html[data-theme="dark"] [style*="box-shadow: 0 0 0 12px rgba(30,77,59,0)"] { box-shadow:0 0 0 12px rgba(22,58,44,0) !important; }
html[data-theme="dark"] [style*="box-shadow:0 0 0 3px rgba(30, 77, 59, 0.18), 0 4px 16px rgba(30, 77, 59, 0.25)"] { box-shadow:0 0 0 3px rgba(22, 58, 44, 0.18), 0 4px 16px rgba(22, 58, 44, 0.25) !important; }
html[data-theme="dark"] [style*="box-shadow: 0 0 0 3px rgba(30, 77, 59, 0.18), 0 4px 16px rgba(30, 77, 59, 0.25)"] { box-shadow:0 0 0 3px rgba(22, 58, 44, 0.18), 0 4px 16px rgba(22, 58, 44, 0.25) !important; }
html[data-theme="dark"] [style*="box-shadow:0 12px 30px rgba(30, 77, 59, 0.25)"] { box-shadow:0 12px 30px rgba(22, 58, 44, 0.25) !important; }
html[data-theme="dark"] [style*="box-shadow: 0 12px 30px rgba(30, 77, 59, 0.25)"] { box-shadow:0 12px 30px rgba(22, 58, 44, 0.25) !important; }
html[data-theme="dark"] [style*="box-shadow:0 24px 60px rgba(30,77,59,0.2), 0 8px 24px rgba(0,0,0,0.12)"] { box-shadow:0 24px 60px rgba(22,58,44,0.2), 0 8px 24px rgba(0,0,0,0.12) !important; }
html[data-theme="dark"] [style*="box-shadow: 0 24px 60px rgba(30,77,59,0.2), 0 8px 24px rgba(0,0,0,0.12)"] { box-shadow:0 24px 60px rgba(22,58,44,0.2), 0 8px 24px rgba(0,0,0,0.12) !important; }
html[data-theme="dark"] [style*="box-shadow:0 2px 8px rgba(30, 77, 59, 0.35)"] { box-shadow:0 2px 8px rgba(22, 58, 44, 0.35) !important; }
html[data-theme="dark"] [style*="box-shadow: 0 2px 8px rgba(30, 77, 59, 0.35)"] { box-shadow:0 2px 8px rgba(22, 58, 44, 0.35) !important; }
html[data-theme="dark"] [style*="box-shadow:0 3px 10px rgba(30,77,59,0.2)"] { box-shadow:0 3px 10px rgba(22,58,44,0.2) !important; }
html[data-theme="dark"] [style*="box-shadow: 0 3px 10px rgba(30,77,59,0.2)"] { box-shadow:0 3px 10px rgba(22,58,44,0.2) !important; }
html[data-theme="dark"] [style*="box-shadow:0 4px 12px rgba(30, 77, 59, 0.3)"] { box-shadow:0 4px 12px rgba(22, 58, 44, 0.3) !important; }
html[data-theme="dark"] [style*="box-shadow: 0 4px 12px rgba(30, 77, 59, 0.3)"] { box-shadow:0 4px 12px rgba(22, 58, 44, 0.3) !important; }
html[data-theme="dark"] [style*="box-shadow:0 4px 15px rgba(30, 77, 59, 0.35)"] { box-shadow:0 4px 15px rgba(22, 58, 44, 0.35) !important; }
html[data-theme="dark"] [style*="box-shadow: 0 4px 15px rgba(30, 77, 59, 0.35)"] { box-shadow:0 4px 15px rgba(22, 58, 44, 0.35) !important; }
html[data-theme="dark"] [style*="box-shadow:0 4px 18px rgba(30, 77, 59, 0.45)"] { box-shadow:0 4px 18px rgba(22, 58, 44, 0.45) !important; }
html[data-theme="dark"] [style*="box-shadow: 0 4px 18px rgba(30, 77, 59, 0.45)"] { box-shadow:0 4px 18px rgba(22, 58, 44, 0.45) !important; }
html[data-theme="dark"] [style*="box-shadow:0 6px 16px rgba(30, 77, 59, 0.3)"] { box-shadow:0 6px 16px rgba(22, 58, 44, 0.3) !important; }
html[data-theme="dark"] [style*="box-shadow: 0 6px 16px rgba(30, 77, 59, 0.3)"] { box-shadow:0 6px 16px rgba(22, 58, 44, 0.3) !important; }
html[data-theme="dark"] [style*="box-shadow:0 6px 20px rgba(30,77,59,0.3)"] { box-shadow:0 6px 20px rgba(22,58,44,0.3) !important; }
html[data-theme="dark"] [style*="box-shadow: 0 6px 20px rgba(30,77,59,0.3)"] { box-shadow:0 6px 20px rgba(22,58,44,0.3) !important; }
html[data-theme="dark"] [style*="box-shadow:0 6px 20px rgba(30,77,59,0.35)"] { box-shadow:0 6px 20px rgba(22,58,44,0.35) !important; }
html[data-theme="dark"] [style*="box-shadow: 0 6px 20px rgba(30,77,59,0.35)"] { box-shadow:0 6px 20px rgba(22,58,44,0.35) !important; }
html[data-theme="dark"] [style*="box-shadow:0 8px 20px rgba(30, 77, 59, 0.35)"] { box-shadow:0 8px 20px rgba(22, 58, 44, 0.35) !important; }
html[data-theme="dark"] [style*="box-shadow: 0 8px 20px rgba(30, 77, 59, 0.35)"] { box-shadow:0 8px 20px rgba(22, 58, 44, 0.35) !important; }
html[data-theme="dark"] [style*="box-shadow:0 8px 32px rgba(30,77,59,0.12)"] { box-shadow:0 8px 32px rgba(22,58,44,0.12) !important; }
html[data-theme="dark"] [style*="box-shadow: 0 8px 32px rgba(30,77,59,0.12)"] { box-shadow:0 8px 32px rgba(22,58,44,0.12) !important; }
html[data-theme="dark"] [style*="color:#334155"] { color: var(--text-strong) !important; }
html[data-theme="dark"] [style*="color:#1e293b"] { color: var(--text-strong) !important; }
html[data-theme="dark"] [style*="color:#777"] { color: var(--text-strong) !important; }
html[data-theme="dark"] [style*="color:#718096"] { color: var(--text-strong) !important; }
html[data-theme="dark"] .form-input::placeholder,
html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder { color: var(--text-placeholder) !important; opacity: 1 !important; }

/* =====================================================
   DARK MODE — pass 2
   Fixes CSS-class-based rules (not inline styles) that the
   first pass missed: header logo, section titles, quick-sell
   / product cards, the Add-Product-choice + Quick-Sell sheets,
   and the glassmorphism form-inputs that were beating the
   dark-mode input styling on specificity.
===================================================== */
html[data-theme="dark"] .logo { color: var(--text-strong) !important; }
html[data-theme="dark"] .header-subtitle { color: var(--text-strong) !important; }
html[data-theme="dark"] .search-section { background: rgba(255,255,255,0.08) !important; }
html[data-theme="dark"] .search-bar input { color: var(--text-strong) !important; background: var(--surface-solid) !important; border-color: var(--card-border) !important; }
html[data-theme="dark"] .search-bar input:focus { background: var(--surface-solid) !important; }
html[data-theme="dark"] .filter-btn { background: var(--surface-solid) !important; border-color: var(--card-border) !important; color: var(--text-strong) !important; }
html[data-theme="dark"] .search-results-label { color: var(--text-soft) !important; }
html[data-theme="dark"] .business-card { background: var(--surface-solid) !important; }
html[data-theme="dark"] #detail-screen { background: var(--surface-solid) !important; }
html[data-theme="dark"] .detail-header { background: var(--surface-solid) !important; }
html[data-theme="dark"] .gallery-slide { background: var(--surface-2) !important; }
html[data-theme="dark"] .auth-toggle span { color: var(--text-strong) !important; }
html[data-theme="dark"] .nav-item.active { color: var(--text-strong) !important; }
html[data-theme="dark"] .filter-content { background: var(--surface-solid) !important; border-color: var(--card-border) !important; }
html[data-theme="dark"] .verification-price { color: var(--text-strong) !important; }
html[data-theme="dark"] .promo-ad-btn { border-color: var(--card-border) !important; }
html[data-theme="dark"] .placeholder { color: var(--text-faint) !important; background: var(--surface-2) !important; }
html[data-theme="dark"] .copyright-footer a { color: var(--text-strong) !important; }
html[data-theme="dark"] .notification-panel { background: var(--surface-solid) !important; }
html[data-theme="dark"] .notification-item:hover { background: var(--surface-solid) !important; }
html[data-theme="dark"] .business-name { color: var(--text-strong) !important; }
html[data-theme="dark"] h2 { color: var(--text-strong) !important; }
html[data-theme="dark"] h4 { color: var(--text-soft) !important; }
html[data-theme="dark"] .flip-close-btn:active { background: rgba(255,255,255,0.08) !important; }
html[data-theme="dark"] .notification-item { background: var(--surface-solid) !important; border-color: var(--card-border) !important; }
html[data-theme="dark"] .form-input:focus, html[data-theme="dark"] select.form-input:focus, html[data-theme="dark"] textarea.form-input:focus { background: var(--surface-solid) !important; }
html[data-theme="dark"] .featured-title { color: var(--text-strong) !important; }
html[data-theme="dark"] .featured-view-all { color: var(--text-strong) !important; }
html[data-theme="dark"] .quick-sell-card { background: var(--surface-solid) !important; border-color: var(--card-border) !important; }
html[data-theme="dark"] .quick-sell-image { background: var(--surface-2) !important; }
html[data-theme="dark"] .quick-sell-name { color: var(--text-strong) !important; }
html[data-theme="dark"] .quick-sell-price { color: var(--text-strong) !important; }
html[data-theme="dark"] .quick-sell-time { color: var(--text-mute) !important; }
html[data-theme="dark"] .quick-sell-detail-content { background: var(--body-bg) !important; }
html[data-theme="dark"] .quick-sell-detail-name { color: var(--text-strong) !important; }
html[data-theme="dark"] .quick-sell-detail-price { color: var(--text-strong) !important; }
html[data-theme="dark"] .quick-sell-detail-desc { color: var(--text-soft) !important; }
html[data-theme="dark"] .product-card-img { background: var(--surface-2) !important; }
html[data-theme="dark"] .product-card-name { color: var(--text-strong) !important; }
html[data-theme="dark"] .product-card-price { color: var(--text-strong) !important; }
html[data-theme="dark"] .product-card-seller { color: var(--text-faint) !important; }
html[data-theme="dark"] .payment-safety-content { background: var(--body-bg) !important; }
html[data-theme="dark"] .safety-title { color: var(--text-strong) !important; }
html[data-theme="dark"] .safety-subtitle { color: var(--text-soft) !important; }
html[data-theme="dark"] .safety-step-text strong { color: var(--text-strong) !important; }
html[data-theme="dark"] .safety-step-text span { color: var(--text-soft) !important; }
html[data-theme="dark"] .safety-fee-label { color: var(--text-soft) !important; }
html[data-theme="dark"] .safety-fee-amount { color: var(--text-strong) !important; }
html[data-theme="dark"] .safety-cancel-btn { color: var(--text-mute) !important; }
html[data-theme="dark"] .product-detail-modal { background: var(--body-bg) !important; }
html[data-theme="dark"] .product-detail-header { background: var(--surface-solid) !important; }
html[data-theme="dark"] .product-detail-img { background: var(--surface-2) !important; }
html[data-theme="dark"] .product-detail-name { color: var(--text-strong) !important; }
html[data-theme="dark"] .product-detail-price { color: var(--text-strong) !important; }
html[data-theme="dark"] .product-detail-desc { color: var(--text-soft) !important; }
html[data-theme="dark"] .product-seller-card { background: var(--surface-solid) !important; border-color: var(--card-border) !important; }
html[data-theme="dark"] .profile-header-card { background: var(--surface-solid) !important; }
html[data-theme="dark"] .profile-email-text { color: var(--text-soft) !important; }
html[data-theme="dark"] .profile-phone-text { color: var(--text-strong) !important; }
html[data-theme="dark"] .profile-phone-icon { stroke: var(--text-soft) !important; }
html[data-theme="dark"] .profile-uni-label { color: var(--text-soft) !important; }
html[data-theme="dark"] .add-choice-content { background: var(--body-bg) !important; }
html[data-theme="dark"] .add-choice-title { color: var(--text-strong) !important; }
html[data-theme="dark"] .add-choice-option { background: var(--surface-solid) !important; border-color: var(--card-border) !important; }
html[data-theme="dark"] .add-choice-option:active { background: var(--surface-solid) !important; }
html[data-theme="dark"] .add-choice-text h4 { color: var(--text-strong) !important; }
html[data-theme="dark"] .add-choice-text p { color: var(--text-strong) !important; }
html[data-theme="dark"] .add-choice-cancel { color: var(--text-mute) !important; }
html[data-theme="dark"] .quick-sell-form-content { background: var(--body-bg) !important; }
html[data-theme="dark"] .categories-title { color: var(--text-strong) !important; }
html[data-theme="dark"] .category-label { color: var(--text-soft) !important; }
html[data-theme="dark"] .category-btn.active-cat .category-label { color: var(--text-strong) !important; }

html[data-theme="dark"] [style*="background:white"],
html[data-theme="dark"] [style*="background: white"] { background: var(--surface-solid) !important; }

/* Kill the light "glassmorphism" form-input rule that was beating the dark-mode
   version on specificity -- inputs were rendering grey-on-grey. */
html[data-theme="dark"] .form-input,
html[data-theme="dark"] select.form-input,
html[data-theme="dark"] textarea.form-input {
    background: var(--surface-solid) !important;
    border: 1px solid var(--input-border) !important;
    color: var(--text-strong) !important;
    box-shadow: none !important;
}
html[data-theme="dark"] .form-input:focus,
html[data-theme="dark"] select.form-input:focus,
html[data-theme="dark"] textarea.form-input:focus {
    background: var(--surface-solid) !important;
    border-color: var(--premium) !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4) !important;
}


html[data-theme="dark"] [style*="border:1.5px solid rgba(0,0,0,0.1)"] { border-color: rgba(255,255,255,0.14) !important; }
html[data-theme="dark"] [style*="border:1.5px solid rgba(255,255,255,0.95)"] { border-color: rgba(255,255,255,0.1) !important; }

/* Scrollbars + native form dark-mode weirdness */
html[data-theme="dark"] ::selection { background: rgba(102,126,234,0.45); color: #fff; }
html[data-theme="dark"] ::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.18); }
html[data-theme="dark"] ::-webkit-scrollbar-track { background: transparent; }

        * { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; -webkit-touch-callout: none; }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
/* WATER WAVE AT TOP */
.top-wave-container {
    position: relative;
    width: 100%;
    height: 60px;
    overflow: hidden;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(102, 126, 234, 0.08) 0%, transparent 100%);
}

.top-wave-container svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.wave-path-1 {
    animation: wave-float-1 3s ease-in-out infinite;
    transform-origin: center;
}

.wave-path-2 {
    animation: wave-float-2 4s ease-in-out infinite;
    transform-origin: center;
}

.wave-path-3 {
    animation: wave-float-3 5s ease-in-out infinite;
    transform-origin: center;
}

@keyframes wave-float-1 {
    0%, 100% { 
        transform: translateY(0) scaleY(1); 
    }
    50% { 
        transform: translateY(-8px) scaleY(1.3); 
    }
}

@keyframes wave-float-2 {
    0%, 100% { 
        transform: translateY(0) scaleY(1); 
    }
    50% { 
        transform: translateY(-6px) scaleY(1.2); 
    }
}

@keyframes wave-float-3 {
    0%, 100% { 
        transform: translateY(0) scaleY(1); 
    }
    50% { 
        transform: translateY(-10px) scaleY(1.4); 
    }
}
        body {
    font-family: 'Inter', sans-serif;
    background: var(--body-bg);
    color: var(--dark);
    line-height: 1.6;
    padding-bottom: 80px;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-weight: 500;
}

/* Animated background blobs - GPU Optimized */
body::before {
    display: none;
}

@keyframes blobShiftTransform {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-3%, -3%) scale(1.05); }
}

/* QUICK SELL SKELETON */
.skeleton-qs-image {
    width: 100%;
    height: 140px;
    background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.skeleton-qs-info {
    padding: 10px 10px 12px 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.skeleton-qs-line {
    background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
}

.skeleton-qs-line.title {
    height: 14px;
    width: 80%;
}

.skeleton-qs-line.price {
    height: 14px;
    width: 50%;
}

.skeleton-qs-line.time {
    height: 10px;
    width: 35%;
}

header {
    position: relative;
    top: 0;
    z-index: 150;
    background: transparent;
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    padding: 18px 20px 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 24px rgba(100, 80, 200, 0.08);
}

.header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.logo { 
    font-size: clamp(1.6rem, 6vw, 2.7rem); 
    font-weight: 500; 
    font-family: 'Pacifico', cursive; 
    letter-spacing: clamp(1px, 1vw, 2px); 
    font-style: normal; 
    line-height: 1.1;
    color: #1a1a1a;
}

.header-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: clamp(0.45rem, 1.5vw, 0.6rem);
    letter-spacing: clamp(1px, 1vw, 4px);
    text-transform: uppercase;
    color: #1a1a1a;
    opacity: 0.6;
    font-weight: 700;
    margin-top: 6px;
    white-space: nowrap;
}


   .search-section {
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.45);
    display: flex;
    justify-content: center;
    gap: 10px;
    position: relative;
    z-index: 40;
}
.search-section > .search-bar, 
.search-section > .filter-btn {
    max-width: 600px;
}

.search-bar input {
    background: rgba(255, 255, 255, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 14px !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    color: #1a1a1a;
    font-weight: 500;
}

.search-bar input::placeholder {
    color: rgba(80, 80, 80, 0.5);
}

.search-bar input:focus {
    background: rgba(255, 255, 255, 0.8) !important;
    border-color: rgba(102, 126, 234, 0.6) !important;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.2) !important;
    outline: none;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 14px !important;
    color: #5b4fd4;
    font-weight: 600;
    box-shadow: 0 2px 12px rgba(100, 80, 200, 0.1);
}
.search-bar { 
    flex: 1; 
}

.search-bar input { 
    width: 100%; 
    padding: 12px 16px; 
    border-radius: var(--radius); 
    border: 1px solid var(--border); 
    background: var(--bg-light); 
    font-size: 0.95rem;
    transition: all 0.2s;
}

.search-bar input:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
}

.filter-btn { 
    padding: 12px 20px; 
    background: var(--bg-light); 
    border: 1px solid var(--border); 
    border-radius: var(--radius); 
    cursor: pointer; 
    font-weight: 600;
    font-size: 0.9rem;
    color: #1a1a1a;
    transition: all 0.2s;
}

.filter-btn:active {
    transform: scale(0.95);
    background: var(--primary);
    color: white;
}
        .screen { display: none; padding: 15px; max-width: 1200px; margin: 0 auto; padding-bottom: 100px; padding-top: 10px; }

/* SEARCH ACTIVE STATE */
.search-active-overlay {
    transition: all 0.3s ease;
}

.search-active-overlay.blurred {
    filter: blur(6px);
    opacity: 0.4;
    pointer-events: none;
    user-select: none;
}

#businesses-list {
    transition: all 0.3s ease;
}

.search-results-label {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    color: #666;
    margin-bottom: 12px;
    display: none;
}

/* FLOATING SEARCH RESULTS PANEL */
#search-results-panel {
    position: fixed;
    top: 130px;
    left: 0;
    right: 0;
    bottom: 80px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 120;
    overflow-y: auto;
    padding: 16px;
    display: none;
    animation: panelSlideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#search-results-panel.active {
    display: block;
}

@keyframes panelSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#search-results-panel .business-card-wrapper {
    animation: cardFadeIn 0.25s ease forwards;
}

@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#search-panel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
    gap: 10px;
}


        
        /* THE MASTER GRID: Adapts to any phone, tablet, or desktop */
        #businesses-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
    gap: 10px;
    align-items: stretch;
}

        /* Make cards fill the grid height evenly */
        .business-card-wrapper { margin-bottom: 0 !important; height: 100%; display: flex; flex-direction: column; }
        .business-card-inner { flex: 1; }
        .business-card { height: 100%; display: flex; flex-direction: column; margin-bottom: 0 !important; }
        .business-info { flex-grow: 1; display: flex; flex-direction: column; }
        .business-info > div:last-child { margin-top: auto; } /* Pushes stats to bottom */
        .screen.active { display: block; animation: fadeIn 0.3s ease; }
        @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* HERO GREETING ANIMATIONS */
@keyframes heroSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.hero-greeting-icon {
    animation: heroSlideUp 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.2s both;
}

.hero-greeting-label {
    animation: heroSlideUp 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.35s both;
}

.hero-greeting-name {
    animation: heroSlideUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.5s both;
}

.hero-greeting-sub {
    animation: heroSlideUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.65s both;
}

.hero-illustration {
    animation: heroFadeIn 0.8s ease 0.4s both;
}

        /* SKELETON LOADING */
        .skeleton-card {
            background: var(--bg);
            border-radius: var(--radius);
            box-shadow: var(--shadow);
            margin-bottom: 0;
            overflow: hidden;
            height: 100%;
            display: flex;
            flex-direction: column;
        }
        .skeleton-content { flex: 1; }
        .skeleton-image {
            height: 130px;
            background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
            background-size: 200% 100%;
            animation: shimmer 1.5s infinite;
        }
        .skeleton-content {
            padding: 10px 12px;
        }
        .skeleton-line {
            height: 16px;
            background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
            background-size: 200% 100%;
            animation: shimmer 1.5s infinite;
            border-radius: 4px;
            margin-bottom: 10px;
        }
        .skeleton-line.title {
            width: 70%;
            height: 20px;
        }
        .skeleton-line.subtitle {
            width: 50%;
            height: 14px;
        }
        .skeleton-line.text {
            width: 90%;
        }
        .skeleton-line.price {
            width: 40%;
            height: 18px;
            margin-top: 8px;
        }
        @keyframes shimmer {
            0% { background-position: 200% 0; }
            100% { background-position: -200% 0; }
        }
/* PREMIUM & VERIFIED SVG ICONS */
.premium-crown {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    filter: drop-shadow(0 2px 4px rgba(212, 175, 55, 0.3));
}
       .business-card {
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.business-card:active {
    transform: scale(0.97);
    box-shadow: 0 4px 16px rgba(100, 80, 200, 0.15);
}

.business-card.has-story {
    border: 3px solid transparent;
    background-image: linear-gradient(rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0.45)), 
                      linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    animation: neonGlow 4s ease-in-out infinite;
}

@keyframes neonGlow {
    0%, 100% { 
        box-shadow: 0 0 10px rgba(240, 148, 51, 0.4),
                    0 0 20px rgba(230, 104, 60, 0.3),
                    0 0 30px rgba(220, 39, 67, 0.2),
                    0 4px 6px rgba(0, 0, 0, 0.1);
    }
    50% { 
        box-shadow: 0 0 20px rgba(240, 148, 51, 0.8),
                    0 0 30px rgba(230, 104, 60, 0.6),
                    0 0 50px rgba(220, 39, 67, 0.4),
                    0 4px 6px rgba(0, 0, 0, 0.1);
    }
}

        .business-card:active { transform: scale(0.98); }
  /* BUSINESS CARD OPEN ANIMATION (Removed as requested) */
        .business-image { height: 115px; background: #eee; position: relative; }
        .business-image img { width: 100%; height: 100%; object-fit: cover; }
        .image-counter { position: absolute; bottom: 10px; right: 10px; background: rgba(0,0,0,0.7); color: white; padding: 4px 10px; border-radius: 12px; font-size: 0.8rem; }
        .business-info { padding: 8px 12px; }
        .business-name { font-weight: 700; font-size: 1rem; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
/* VERIFIED SEAL SVG */
.verified-seal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    filter: drop-shadow(0 2px 4px rgba(30, 77, 59, 0.2));
}

/* UI SVGs & SOFT BOXES */
.ui-icon {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.icon-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 6px;
    background: #eff6ff; /* Light blue theme */
    color: #3b82f6; /* Blue for the icon stroke */
    flex-shrink: 0;
}
        .business-price { color: var(--primary); font-weight: 600; font-size: 0.9rem; margin-top: 4px; }
        
#detail-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    z-index: 200;
    overflow-y: auto;
    padding: 0;
    will-change: transform;
    transform: translateX(100%);
}
        .detail-header {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.6);
    padding: 15px;
    display: flex;
    gap: 10px;
    align-items: center;
    z-index: 10;
    box-shadow: 0 4px 20px rgba(100, 80, 200, 0.08);
}
        .back-btn { 
    background: rgba(219, 234, 254, 0.8); 
    border: none; 
    font-size: 1.2rem; 
    cursor: pointer; 
    padding: 0; 
    width: 40px; 
    height: 40px; 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    flex-shrink: 0;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1.5px solid rgba(147, 197, 253, 0.6);
    color: #1d4ed8;
    font-weight: 700;
    transition: all 0.15s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}
.back-btn:active { 
    background: rgba(147, 197, 253, 0.9); 
    transform: scale(0.92); 
}
        .detail-content { 
            padding: clamp(15px, 4vw, 30px); /* Scales padding based on screen size */
            padding-bottom: 100px; 
            max-width: 800px; 
            margin: 0 auto; 
        }
        
        .image-gallery { 
            position: relative; 
            width: 100%; 
            height: 40vh; /* 40% of the screen height */
            min-height: 250px; /* Don't get too small on short phones */
            max-height: 500px; /* Don't get too massive on tablets */
            overflow: hidden; 
            background: #000; /* Black background makes photos pop */
        }
.gallery-container { display: flex; height: 100%; transition: transform 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94); will-change: transform; -webkit-transform: translateZ(0); transform: translateZ(0); }
    .gallery-slide { min-width: 100%; height: 100%; background: #eee; position: relative; }
        .gallery-slide img { width: 100%; height: 100%; object-fit: cover; cursor: pointer; }
  .gallery-slide img { width: 100%; height: 100%; object-fit: cover; cursor: pointer; }

.gallery-slide img {
    animation: imageFadeIn 0.5s ease;
}

@keyframes imageFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}
        .gallery-dots { position: absolute; bottom: 15px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; z-index: 5; }
        .gallery-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.5); cursor: pointer; transition: all 0.3s; }
        .gallery-dot.active { background: white; width: 24px; border-radius: 4px; }
        .gallery-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,0.5); color: white; border: none; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; font-size: 1.2rem; z-index: 5; }
        .gallery-nav.prev { left: 10px; }
        .gallery-nav.next { right: 10px; }

        .fullscreen-viewer { position: fixed; inset: 0; background: rgba(0,0,0,0.95); z-index: 500; display: none; align-items: center; justify-content: center; }
        .fullscreen-viewer.active { display: flex; }
        .fullscreen-container { position: relative; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
        .fullscreen-image { max-width: 90%; max-height: 90%; object-fit: contain; }
        .fullscreen-close { position: absolute; top: 20px; right: 20px; background: rgba(255,255,255,0.2); color: white; border: none; width: 40px; height: 40px; border-radius: 50%; font-size: 1.5rem; cursor: pointer; }
        .fullscreen-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.2); color: white; border: none; width: 50px; height: 50px; border-radius: 50%; cursor: pointer; font-size: 1.5rem; }
        .fullscreen-nav.prev { left: 20px; }
        .fullscreen-nav.next { right: 20px; }
        .fullscreen-counter { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); color: white; background: rgba(0,0,0,0.5); padding: 8px 16px; border-radius: 20px; }

        .upload-preview-grid { 
            display: grid; 
            grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); 
            gap: 10px; 
            margin-top: 15px; 
        }
        .upload-preview-item { position: relative; aspect-ratio: 1; border-radius: 8px; overflow: hidden; border: 2px solid var(--border); }
        .upload-preview-item img { width: 100%; height: 100%; object-fit: cover; }
        .upload-preview-remove { position: absolute; top: 5px; right: 5px; background: var(--danger); color: white; border: none; width: 24px; height: 24px; border-radius: 50%; cursor: pointer; font-size: 0.9rem; }

        .action-bar { display: flex; gap: 10px; margin-top: 20px; }
        .action-btn { flex: 1; padding: 12px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-light); cursor: pointer; text-align: center; font-weight: 600; }

        .form-group { margin-bottom: 16px; }
        .form-label { display: block; margin-bottom: 6px; font-weight: 500; font-size: 0.9rem; }
        .form-input { width: 100%; padding: 12px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-light); font-size: 16px; }
        .btn { width: 100%; padding: 14px; background: #1e4d3b; color: white; border: none; border-radius: var(--radius); font-weight: 600; cursor: pointer; font-size: 16px; }
        
        .auth-container { max-width: 400px; margin: 40px auto; padding: 20px; text-align: center; }
        .auth-toggle { margin-top: 15px; color: var(--gray); font-size: 0.9rem; }
        .auth-toggle span { color: #1e4d3b; cursor: pointer; font-weight: 600; text-decoration: underline; }

        .bottom-nav {
    position: fixed;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    max-width: 480px;
    background: var(--nav-bg);
    border: 1.5px solid var(--nav-border);
    border-radius: 32px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 10px 12px 14px 12px;
    z-index: 100;
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.13),
        0 2px 0px rgba(255, 255, 255, 0.9) inset;
}

.nav-item {
    text-align: center;
    color: var(--nav-inactive);
    background: transparent;
    border: none;
    font-size: clamp(0.55rem, 1.8vw, 0.68rem);
    font-weight: 600;
    cursor: pointer;
    padding: 4px clamp(6px, 2vw, 10px);
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.02em;
    min-width: clamp(44px, 12vw, 52px);
}

.nav-item svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-item:active {
    transform: scale(0.90);
}

.nav-item.active {
    color: #1a1a1a;
    font-weight: 700;
}

.nav-item.active svg {
    stroke: #1a1a1a;
    fill: #1a1a1a;
    stroke-width: 1.5;
    transform: translateY(-1px);
}

/* FAB CENTER BUTTON */
.nav-center-item {
    position: relative;
    margin-top: -30px;
    padding: 0 8px !important;
    background: transparent !important;
    box-shadow: none !important;
    min-width: 64px !important;
}

.nav-fab {
    width: 58px;
    height: 58px;
    background: #1e4d3b;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 8px 24px rgba(30, 77, 59, 0.45),
        0 2px 0px rgba(255, 255, 255, 0.3) inset;
    transition: all 0.3s ease;
    border: 3px solid #f5f0e8;
    margin-bottom: 2px;
}

.nav-center-item:active .nav-fab {
    transform: scale(0.91);
    box-shadow: 0 4px 12px rgba(30, 77, 59, 0.3);
}

.nav-center-item.active .nav-fab {
    background: #133629;
}

.nav-center-item span {
    color: #9c8a72;
    font-size: 0.68rem;
    font-weight: 600;
    margin-top: 2px;
    display: block;
    font-family: 'Inter', sans-serif;
}

        .likes-section { display: flex; align-items: center; gap: 15px; padding: 15px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-top: 20px; }
        .like-btn { background: none; border: 1px solid var(--border); padding: 10px 20px; border-radius: 20px; cursor: pointer; display: flex; align-items: center; gap: 8px; font-size: 0.95rem; transition: all 0.2s; }
        .like-btn.liked { background: #fee2e2; border-color: #ef4444; color: #ef4444; }
        .like-btn:active { transform: scale(0.95); }
  .like-btn:active { transform: scale(0.95); }

/* LIKE ANIMATION */
.like-burst {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    animation: likeBurst 0.6s ease-out forwards;
}

@keyframes likeBurst {
    0% {
        transform: scale(0) rotate(0deg);
        opacity: 1;
    }
    50% {
        transform: scale(1.5) rotate(180deg);
        opacity: 0.8;
    }
    100% {
        transform: scale(0.5) rotate(360deg);
        opacity: 0;
    }
}

.like-particle {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #ef4444;
    border-radius: 50%;
    animation: particle 0.8s ease-out forwards;
}

@keyframes particle {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(var(--tx), var(--ty)) scale(0);
        opacity: 0;
    }
}

.like-number-bounce {
    animation: numberBounce 0.4s ease;
}

@keyframes numberBounce {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.3); }
    50% { transform: scale(0.9); }
    75% { transform: scale(1.1); }
}
        
        .comments-section { margin-top: 30px; }
        .comment-box { background: var(--bg-light); padding: 12px; border-radius: var(--radius); margin-bottom: 15px; }
        .comment-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
        .comment-author { font-weight: 600; font-size: 0.9rem; display: flex; align-items: center; gap: 6px; }
        .owner-badge { background: var(--primary); color: white; font-size: 0.7rem; padding: 2px 8px; border-radius: 4px; }
        .comment-time { font-size: 0.75rem; color: var(--light-gray); }
        .comment-text { font-size: 0.9rem; line-height: 1.5; color: var(--dark); margin-bottom: 8px; }
        .comment-reply-btn { background: none; border: none; color: var(--primary); font-size: 0.8rem; cursor: pointer; font-weight: 500; }
        .comment-reply-box { margin-top: 10px; padding-left: 15px; border-left: 3px solid var(--border); }
        .comment-input-area { display: flex; gap: 10px; margin-top: 15px; }
        .comment-input-area input { flex: 1; padding: 10px; border: 1px solid var(--border); border-radius: 20px; }
        .comment-input-area button { padding: 10px 20px; background: var(--primary); color: white; border: none; border-radius: 20px; cursor: pointer; font-weight: 600; }

        .filter-modal { position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 300; display: none; align-items: flex-end; }
        .filter-modal.active { display: flex; animation: fadeIn 0.3s ease; }
        .filter-content {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    border: 1.5px solid rgba(255, 255, 255, 0.85);
    border-bottom: none;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    border-radius: 28px 28px 0 0;
    padding: 20px;
    animation: slideUp 0.3s ease;
    box-shadow: 0 -8px 40px rgba(100, 80, 200, 0.15);
}
        @keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
        .filter-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; padding-bottom: 15px; border-bottom: 2px solid var(--border); }
        .filter-section { margin-bottom: 25px; }
        .filter-section h4 { font-size: 0.9rem; font-weight: 600; margin-bottom: 10px; color: var(--gray); }
        .filter-chips { display: flex; flex-wrap: wrap; gap: 8px; }
        .filter-chip { padding: 8px 16px; border: 1px solid var(--border); border-radius: 20px; background: var(--bg-light); cursor: pointer; font-size: 0.9rem; transition: all 0.2s; }
        .filter-chip.active { background: var(--primary); color: white; border-color: var(--primary); }
        .filter-chip:active { transform: scale(0.95); }
    

@keyframes glow {
    0%, 100% { 
        opacity: 1;
        box-shadow: 0 0 20px rgba(240, 148, 51, 0.6),
                    0 0 30px rgba(230, 104, 60, 0.4),
                    0 0 40px rgba(220, 39, 67, 0.3);
    }
    50% { 
        opacity: 0.8;
        box-shadow: 0 0 30px rgba(240, 148, 51, 0.8),
                    0 0 50px rgba(230, 104, 60, 0.6),
                    0 0 60px rgba(220, 39, 67, 0.5);
    }
}
.story-indicator {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--story-gradient);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 5;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.story-viewer {
    position: fixed;
    inset: 0;
    background: black;
    z-index: 600;
    display: none;
}

.story-viewer.active {
    display: flex;
    flex-direction: column;
}

.story-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.7), transparent);
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 12px;
}

.story-progress-bars {
    position: absolute;
    top: 8px;
    left: 15px;
    right: 15px;
    display: flex;
    gap: 4px;
    z-index: 11;
}

.story-progress-bar {
    flex: 1;
    height: 2px;
    background: rgba(255,255,255,0.3);
    border-radius: 2px;
    overflow: hidden;
}

.story-progress-fill {
    height: 100%;
    background: white;
    width: 0%;
    transition: width 0.1s linear;
}

.story-business-info {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    margin-top: 20px;
}

.story-business-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.story-business-name {
    flex: 1;
    font-weight: 600;
}

.story-close-btn {
    background: rgba(255,255,255,0.2);
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
}

.story-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.story-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.story-caption-box {
    position: absolute;
    bottom: 80px;
    left: 15px;
    right: 15px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 12px;
    border-radius: 8px;
}

.story-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
}

.story-contact-btn {
    width: 100%;
    padding: 14px;
    background: white;
    color: black;
    border: none;
    border-radius: 25px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
}

.story-nav-area {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 40%;
    z-index: 5;
    cursor: pointer;
}

.story-nav-area.prev { left: 0; }
.story-nav-area.next { right: 0; }

.add-story-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.8);
    z-index: 500;
    display: none;
    align-items: center;
    justify-content: center;
}

.add-story-modal.active {
    display: flex;
}

.add-story-content {
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 20px;
}

.story-preview-image {
    width: 100%;
    max-height: 400px;
    object-fit: contain;
    border-radius: 8px;
    margin-bottom: 15px;
}

.business-select-card {
    border: 2px solid var(--border);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.business-select-card:hover {
    border-color: var(--primary);
    background: var(--bg-light);
}

.business-select-card.selected {
    border-color: var(--primary);
    background: var(--bg-light);
}

.business-select-card.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
    /* ADMIN DASHBOARD STYLES */
.admin-business-item {
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.admin-business-info {
    flex: 1;
    min-width: 0;
}

.admin-business-name {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 4px;
    color: var(--dark);
    word-wrap: break-word;
}

.admin-business-meta {
    font-size: 0.8rem;
    color: var(--gray);
    line-height: 1.4;
}

.admin-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: nowrap; /* Prevents awkward stacking */
    margin-top: 8px;
}

/* Small square boxes for actions */
.admin-btn {
    width: 40px;
    height: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
    flex: none; /* Stops the giant stretching */
}

.admin-btn.verify {
    background: #dcfce7; /* Light green */
    color: var(--success);
}

.admin-btn.unverify {
    background: #f1f5f9; /* Light gray */
    color: var(--gray);
}

.admin-btn.delete {
    background: #fee2e2; /* Light red */
    color: var(--danger);
}

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

/* Notification button size fix */
.admin-notify-btn {
    height: 40px;
    padding: 0 16px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
    flex: none; /* Stops it from stretching */
}
/* ADMIN TABS */
.admin-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    background: rgba(255,255,255,0.4);
    padding: 6px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.7);
}

.admin-tab-btn {
    flex: 1;
    padding: 10px 8px;
    border: none;
    border-radius: 12px;
    background: transparent;
    color: var(--gray);
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    white-space: nowrap;
}

.admin-tab-btn.active {
    background: white;
    color: var(--primary);
    box-shadow: 0 2px 8px rgba(100, 80, 200, 0.15);
}

.admin-tab-btn:active {
    transform: scale(0.96);
}
.admin-search {
    position: sticky;
    top: 55px;
    background: white;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border);
    z-index: 30;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.admin-stat-card {
    background: var(--bg-light);
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid var(--border);
}

.admin-stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
}

.admin-stat-label {
    font-size: 0.8rem;
    color: var(--gray);
}
 /* VERIFICATION PROMO STYLES */
.verification-promo-box {
    background: linear-gradient(135deg, #1e4d3b, #2d7a5f, #1e4d3b);
    color: white;
    padding: 20px;
    border-radius: 16px;
    margin: 20px 0;
    text-align: center;
    box-shadow: 0 8px 20px rgba(30, 77, 59, 0.35);
    cursor: pointer;
    transition: transform 0.2s;
    border: 2px solid rgba(255, 255, 255, 0.15);
}

.verification-promo-box:active {
    transform: scale(0.98);
}

.verification-promo-icon {
    font-size: 2.6rem;
    margin-bottom: 8px;
}

.verification-promo-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.verification-promo-subtitle {
    font-size: 0.9rem;
    opacity: 0.95;
}

.verification-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: 500;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.verification-modal.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.verification-modal-content {
    background: white;
    border-radius: 20px;
    width: 100%;
    max-width: 450px;
    padding: 30px;
    text-align: center;
    animation: slideUp 0.3s ease;
}

.verification-modal-icon {
    font-size: 4rem;
    margin-bottom: 15px;
}

.verification-modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 15px;
}

.verification-benefits {
    text-align: left;
    margin: 20px 0;
    background: var(--bg-light);
    padding: 20px;
    border-radius: 12px;
}

.verification-benefit {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.verification-benefit:last-child {
    margin-bottom: 0;
}

.verification-benefit-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
}

.verification-price {
    font-size: 2rem;
    font-weight: 700;
    color: #1e4d3b;
    margin: 20px 0;
}

.verification-price-label {
    font-size: 0.9rem;
    color: var(--gray);
    margin-bottom: 5px;
}

.verification-modal-buttons {
    display: flex;
    gap: 10px;
    margin-top: 25px;
}

.verification-btn {
    flex: 1;
    padding: 14px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
}

.verification-btn.secondary {
    background: var(--bg-light);
    color: var(--gray);
}

.verification-btn.primary {
    background: linear-gradient(135deg, #1e4d3b, #2d7a5f);
    color: white;
    box-shadow: 0 4px 15px rgba(30, 77, 59, 0.35);
}

.verification-btn:active {
    transform: scale(0.97);
}
    
    /* PREMIUM PROMO STYLES */
.premium-promo-box {
    background: linear-gradient(135deg, #d4af37, #c9a961, #8b7355);
    color: white;
    padding: 25px;
    border-radius: 16px;
    margin: 25px 0;
    text-align: center;
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.4);
    cursor: pointer;
    transition: transform 0.2s;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.premium-promo-box:active {
    transform: scale(0.98);
}

.premium-promo-icon {
    font-size: 3rem;
    margin-bottom: 10px;
}

.premium-promo-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.premium-promo-subtitle {
    font-size: 0.95rem;
    opacity: 0.95;
}

/* COMPACT SIDE-BY-SIDE PROMO AD BUTTONS */
.promo-ads-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 16px 0;
}

.promo-ad-btn {
    padding: 14px 10px;
    border-radius: 14px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.15s;
    color: white;
    border: 1.5px solid rgba(255, 255, 255, 0.25);
}

.promo-ad-btn:active {
    transform: scale(0.96);
}

.promo-ad-btn--premium {
    background: linear-gradient(135deg, #d4af37, #c9a961, #8b7355);
    box-shadow: 0 6px 16px rgba(212, 175, 55, 0.35);
}

.promo-ad-btn--verify {
    background: linear-gradient(135deg, #1e4d3b, #2d7a5f, #1e4d3b);
    box-shadow: 0 6px 16px rgba(30, 77, 59, 0.3);
}

.promo-ad-btn-icon {
    font-size: 1.6rem;
    margin-bottom: 4px;
}

.promo-ad-btn-title {
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1.2;
}

.promo-ad-btn-sub {
    font-size: 0.72rem;
    opacity: 0.9;
    margin-top: 2px;
}

.premium-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    z-index: 500;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.premium-modal.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.premium-modal-content {
    background: #fdf6e3;
    border: 1.5px solid #f0e0b8;
    border-radius: 20px;
    width: 100%;
    max-width: 420px;
    max-height: 75vh;
    overflow-y: auto;
    padding: 20px 18px;
    text-align: center;
    animation: slideUp 0.3s ease;
}

.premium-modal-icon {
    font-size: 2.8rem;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #d4af37, #c9a961, #b8860b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.premium-modal-title {
    font-size: 1.3rem;
    font-weight: 700;
    background: linear-gradient(135deg, #d4af37, #c9a961, #b8860b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
}

.premium-benefits {
    text-align: left;
    margin: 14px 0;
    background: #fbeed3;
    padding: 14px 14px;
    border-radius: 14px;
    border: 2px solid #f0e0b8;
}

.premium-benefit {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 0.82rem;
    line-height: 1.5;
}

.premium-benefit:last-child {
    margin-bottom: 0;
}

.premium-benefit-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.premium-benefit strong {
    color: var(--premium-dark);
}

.premium-price {
    font-size: 1.7rem;
    font-weight: 700;
    background: linear-gradient(135deg, #d4af37, #c9a961, #b8860b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 12px 0 6px 0;
}

.premium-price-label {
    font-size: 0.9rem;
    color: var(--gray);
    margin-bottom: 8px;
}

.premium-price-note {
    font-size: 0.85rem;
    color: var(--light-gray);
    margin-top: 8px;
}

.premium-modal-buttons {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.premium-btn {
    flex: 1;
    padding: 16px;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
}

.premium-btn.secondary {
    background: #f5e6c3;
    color: var(--premium-dark);
}

.premium-btn.primary {
    background: linear-gradient(135deg, #d4af37, #c9a961, #8b7355);
    color: white;
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.premium-btn:active {
    transform: scale(0.97);
}
       .price-inputs { display: flex; gap: 10px; align-items: center; }
    /* LOCATION AUTOCOMPLETE */
    /* LOCATION TAGS/CHIPS */
.location-tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
    min-height: 40px;
    padding: 8px;
    background: var(--bg-light);
    border-radius: 8px;
}

.location-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--primary);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    animation: tagSlideIn 0.3s ease;
}

@keyframes tagSlideIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.location-tag-remove {
    background: rgba(255,255,255,0.3);
    border: none;
    color: white;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.7rem;
    line-height: 1;
    transition: all 0.2s;
}

.location-tag-remove:hover {
    background: rgba(255,255,255,0.5);
    transform: scale(1.1);
}
.location-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 250px;
    overflow-y: auto;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.location-suggestion-item {
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 1px solid var(--bg-light);
    display: flex;
    align-items: center;
    gap: 10px;
}

.location-suggestion-item:hover {
    background: var(--bg-light);
    color: var(--primary);
}

.location-suggestion-item.new-location {
    background: #eff6ff;
    color: var(--primary);
    font-weight: 600;
    border-top: 2px solid var(--primary);
}

.location-suggestion-item.new-location:hover {
    background: #dbeafe;
}

.location-match-score {
    margin-left: auto;
    font-size: 0.75rem;
    color: var(--light-gray);
    background: var(--bg-light);
    padding: 2px 8px;
    border-radius: 12px;
}

.location-suggestion-icon {
    font-size: 1.1rem;
}
        .price-inputs input { flex: 1; padding: 10px; border: 1px solid var(--border); border-radius: 8px; }

        .share-modal { position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 500; display: none; align-items: flex-end; }
        .share-modal.active { display: flex; animation: fadeIn 0.3s ease; }
        .share-content {
    background: var(--surface-solid);
    border: 1.5px solid var(--card-border);
    border-bottom: none;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 28px 28px 0 0;
    padding: 20px;
    padding-bottom: 40px;
    animation: slideUp 0.3s ease;
    box-shadow: 0 -8px 40px rgba(0,0,0,0.25);
    color: var(--text-strong);
}
        .share-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; padding-bottom: 15px; border-bottom: 2px solid var(--border); }
        .share-header h3 { font-size: 1.2rem; font-weight: 700; }
        .share-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin-bottom: 20px; }
        .share-option { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 15px; border-radius: 12px; background: var(--bg-light); cursor: pointer; transition: all 0.2s; border: 1px solid var(--border); }
        .share-option:active { transform: scale(0.95); background: var(--primary); color: white; }
        .share-option-icon { font-size: 2rem; }
        .share-option-label { font-size: 0.85rem; font-weight: 500; text-align: center; }
        .share-link-box { background: var(--bg-light); padding: 12px; border-radius: 8px; border: 1px solid var(--border); display: flex; align-items: center; gap: 10px; }
        .share-link-text { flex: 1; font-size: 0.85rem; color: var(--gray); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
        #share-business-preview img, #share-business-preview .placeholder { width: 100%; height: 100%; object-fit: cover; display: block; }
        .copy-feedback { position: fixed; bottom: 100px; left: 50%; transform: translateX(-50%); background: var(--dark); color: white; padding: 12px 24px; border-radius: 20px; font-size: 0.9rem; z-index: 500; animation: slideUpFade 2s ease; pointer-events: none; }
        @keyframes slideUpFade { 0% { opacity: 0; transform: translateX(-50%) translateY(20px); } 20% { opacity: 1; transform: translateX(-50%) translateY(0); } 80% { opacity: 1; } 100% { opacity: 0; } }

        .loading { 
    position: fixed; 
    inset: 0; 
    background: #000000; 
    z-index: 999; 
    display: flex; 
    justify-content: center; 
    align-items: center;
}

.loading-container {
    position: relative;
    width: 400px;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loading { 
    position: fixed; 
    inset: 0; 
    background: #000000; 
    z-index: 999; 
    display: flex; 
    justify-content: center; 
    align-items: center;
    overflow: hidden;
}

.loading-text {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1.3rem;
    font-weight: 800;
    color: white;
    letter-spacing: 3px;
    position: fixed;
    z-index: 2;
}

.screen-edge-rocket {
    position: fixed;
    width: 70px;
    height: 70px;
    animation: screenEdgeOrbit 8s linear infinite;  /* FASTER */
    z-index: 1;
}

.loading { 
    position: fixed; 
    inset: 0; 
    background: #000000; 
    z-index: 999; 
    display: flex; 
    justify-content: center; 
    align-items: center;
    overflow: hidden;
}

.loading-text {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    letter-spacing: 3px;
    position: relative;
    z-index: 2;
}

.screen-edge-rocket {
    position: fixed;
    width: 80px;
    height: 110px;
    animation: straightFlight 2s linear infinite;
    z-index: 1;
}

@keyframes straightFlight {
    0% {
        left: -100px;
        top: 50%;
        transform: translateY(-50%) rotate(90deg);
    }
    100% {
        left: calc(100% + 100px);
        top: 50%;
        transform: translateY(-50%) rotate(90deg);
    }
}
        .hidden { display: none !important; }
        .placeholder { display: flex; align-items: center; justify-content: center; height: 100%; background: #e2e8f0; color: #94a3b8; font-size: 2rem; }
        .image-upload { border: 2px dashed var(--border); padding: 20px; text-align: center; border-radius: var(--radius); cursor: pointer; }
    /* ONBOARDING TUTORIAL STYLES */
.tutorial-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.tutorial-spotlight {
    position: absolute;
    border: 3px solid var(--primary);
    border-radius: 12px;
    pointer-events: none;
    transition: all 0.4s ease;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.85),
                0 0 30px var(--primary);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.85), 0 0 30px var(--primary); }
    50% { box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.85), 0 0 50px var(--primary); }
}

.tutorial-content {
    position: relative;
    background: var(--surface-solid);
    padding: 20px;
    border-radius: 16px;
    max-width: 85%;
    width: 320px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    margin: 20px;
}

.tutorial-icon {
    font-size: 3rem;
    margin-bottom: 10px;
}

.tutorial-content h2 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
}

.tutorial-content p {
    color: var(--gray);
    line-height: 1.5;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.tutorial-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.tutorial-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.tutorial-btn.primary {
    background: var(--primary);
    color: white;
}

.tutorial-btn.secondary {
    background: var(--bg-light);
    color: var(--gray);
}

.tutorial-btn:active {
    transform: scale(0.95);
}

.tutorial-arrow {
    position: absolute;
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-bottom: 30px solid var(--primary);
    z-index: 10001;
    display: none;
    animation: bounce 1s infinite;
}

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

.tutorial-progress {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10000;
}

.progress-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transition: all 0.3s;
}

.progress-dot.active {
    background: var(--primary);
    width: 24px;
    border-radius: 4px;
}
    /* UNIVERSITY MODAL */
.university-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.university-modal.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.university-modal-content {
    background: white;
    border-radius: 16px;
    width: 100%;
    max-width: 380px;
    max-height: 85vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    animation: slideUp 0.3s ease;
}

.university-modal-header {
    padding: 25px 20px 15px;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.university-modal-icon {
    font-size: 3rem;
    margin-bottom: 10px;
}

.university-modal-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 6px;
}

.university-modal-subtitle {
    font-size: 0.9rem;
    color: var(--gray);
}

.university-search-box {
    padding: 15px;
    border-bottom: 1px solid var(--border);
}

.university-search-box input {
    width: 100%;
    padding: 10px 15px;
    border: 2px solid var(--border);
    border-radius: 25px;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s;
}

.university-search-box input:focus {
    border-color: var(--primary);
}

.university-list {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
}

.university-item {
    padding: 12px 15px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
    border: 2px solid transparent;
    margin-bottom: 5px;
}

.university-item:hover {
    background: var(--bg-light);
}

.university-item.selected {
    background: #eff6ff;
    border-color: var(--primary);
    color: var(--primary);
    font-weight: 600;
}

.university-modal-footer {
    padding: 15px;
    border-top: 1px solid var(--border);
}

.university-confirm-btn {
    width: 100%;
    padding: 14px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    opacity: 0.5;
    pointer-events: none;
}

.university-confirm-btn.ready {
    opacity: 1;
    pointer-events: auto;
}

.university-confirm-btn.ready:active {
    transform: scale(0.97);
}

.university-back-btn {
    width: 100%;
    padding: 12px;
    background: var(--bg-light);
    color: var(--gray);
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.2s;
}

.university-back-btn:active {
    transform: scale(0.97);
}
    /* COPYRIGHT FOOTER */
.copyright-footer {
    text-align: center;
    padding: 20px;
    padding-bottom: 100px;
    background: var(--bg-light);
    border-top: 1px solid var(--border);
    font-size: 0.75rem;
    color: var(--gray);
    margin-top: 40px;
}

.copyright-footer a {
    color: #1e4d3b;
    text-decoration: none;
    font-weight: 500;
    margin: 0 8px;
}

.copyright-footer a:hover {
    text-decoration: underline;
}

/* TERMS & PRIVACY MODALS */
.legal-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: 600;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.legal-modal.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.legal-modal-content {
    background: white;
    border-radius: 16px;
    width: 100%;
    max-width: 600px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 30px;
    animation: slideUp 0.3s ease;
}

.legal-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border);
}

.legal-modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
}

.legal-modal-close {
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--gray);
    padding: 0;
    width: 32px;
    height: 32px;
}

.legal-section {
    margin-bottom: 25px;
}

.legal-section h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 10px;
}

.legal-section p {
    line-height: 1.7;
    color: var(--gray);
    margin-bottom: 10px;
}

.legal-section ul {
    margin-left: 20px;
    line-height: 1.8;
    color: var(--gray);
}
    /* THEME TOGGLE (replaces the old notification bell) */
.theme-toggle {
    position: relative;
    background: var(--bg-light);
    border: 1px solid var(--border);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-strong);
    transition: background 0.3s, border-color 0.3s, transform 0.15s;
    margin-left: auto;
    overflow: hidden;
}

.theme-toggle:active { transform: scale(0.88); }

.theme-toggle svg {
    width: 22px;
    height: 22px;
    display: block;
}

/* sun <-> moon swap animation */
.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
    position: absolute;
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s ease;
}

.theme-toggle .icon-sun {
    color: #f59e0b;
    opacity: 1;
    transform: rotate(0deg) scale(1);
}
.theme-toggle .icon-moon {
    color: #a5b4fc;
    opacity: 0;
    transform: rotate(90deg) scale(0.4);
}

html[data-theme="dark"] .theme-toggle .icon-sun {
    opacity: 0;
    transform: rotate(-90deg) scale(0.4);
}
html[data-theme="dark"] .theme-toggle .icon-moon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.theme-toggle.is-switching svg { animation: theme-toggle-spin 0.5s ease; }

@keyframes theme-toggle-spin {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(0.7); }
    100% { transform: rotate(360deg) scale(1); }
}

/* brief page-wide flash so the switch feels intentional, not abrupt */
.theme-flash {
    position: fixed;
    inset: 0;
    background: var(--body-bg);
    z-index: 99999;
    pointer-events: none;
    opacity: 0;
}
.theme-flash.active {
    animation: theme-flash-fade 0.4s ease;
}
@keyframes theme-flash-fade {
    0% { opacity: 0; }
    40% { opacity: 0.55; }
    100% { opacity: 0; }
}

.notification-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: var(--danger);
    color: white;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    font-size: 0.65rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse-badge 2s infinite;
    box-shadow: 0 0 0 2px white;
}

@keyframes pulse-badge {
    0%, 100% { 
        transform: scale(1); 
        box-shadow: 0 0 0 2px white, 0 0 0 4px rgba(239, 68, 68, 0.3);
    }
    50% { 
        transform: scale(1.15); 
        box-shadow: 0 0 0 2px white, 0 0 0 6px rgba(239, 68, 68, 0.5);
    }
}

.notification-panel {
    position: fixed;
    top: 60px;
    right: 0;
    width: 100%;
    max-width: 400px;
    max-height: 70vh;
    background: white;
    border-radius: 16px 0 0 16px;
    box-shadow: -4px 4px 20px rgba(0,0,0,0.15);
    z-index: 500;
    display: none;
    flex-direction: column;
    animation: slideInFromRight 0.3s ease;
}

.notification-panel.active {
    display: flex;
}

.notification-panel-header {
    padding: 20px;
    border-bottom: 2px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notification-panel-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark);
}

.notification-panel-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--gray);
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
}

.notification-panel-body {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
}

.notification-item {
    background: var(--bg-light);
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 8px;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.notification-item:hover {
    background: white;
    border-color: var(--primary);
    transform: translateX(-4px);
}

.notification-item.unread {
    background: #eff6ff;
    border-color: var(--primary);
}

.notification-icon {
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.notification-title {
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 2px;
    color: var(--dark);
}

.notification-business {
    font-size: 0.75rem;
    color: var(--primary);
    margin-bottom: 4px;
}

.notification-message {
    font-size: 0.8rem;
    color: var(--gray);
    line-height: 1.4;
    margin-bottom: 6px;
}

.notification-actions {
    display: flex;
    gap: 6px;
    margin-top: 8px;
}

.notification-action {
    background: var(--primary);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.75rem;
    cursor: pointer;
    flex: 1;
}

.notification-mark-read {
    background: var(--bg-light);
    color: var(--gray);
    border: 1px solid var(--border);
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.75rem;
    cursor: pointer;
}

.notification-mark-read:active,
.notification-action:active {
    transform: scale(0.95);
}

.notification-time {
    font-size: 0.7rem;
    color: var(--light-gray);
    margin-top: 4px;
}

/* ADMIN NOTIFY BUTTON */
.admin-notify-btn {
    padding: 8px 16px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
}

.admin-notify-btn:active {
    transform: scale(0.95);
}

.admin-notify-dropdown {
    position: fixed;
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    z-index: 9999;
    width: 200px;
    max-width: calc(100vw - 20px);
    display: none;
    overflow: hidden;
}

.admin-notify-dropdown.active {
    display: block;
    animation: slideUp 0.2s ease;
}

.admin-notify-option {
    padding: 12px 14px;
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-notify-option:last-child {
    border-bottom: none;
}

.admin-notify-option:hover {
    background: var(--bg-light);
    color: var(--primary);
}

.admin-notify-option:active {
    transform: scale(0.98);
}
    /* ADD TO HOME SCREEN PROMPT */
.install-prompt {
    position: fixed;
    bottom: 80px;
    left: 10px;
    right: 10px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 16px 20px;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    z-index: 400;
    display: none;
    animation: slideUpBounce 0.5s ease;
}

.install-prompt.show {
    display: block;
}

@keyframes slideUpBounce {
    0% {
        transform: translateY(100px);
        opacity: 0;
    }
    60% {
        transform: translateY(-10px);
        opacity: 1;
    }
    100% {
        transform: translateY(0);
    }
}

.install-prompt-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.install-prompt-icon {
    font-size: 2rem;
}

.install-prompt-title {
    flex: 1;
    font-weight: 700;
    font-size: 1.05rem;
}

.install-prompt-close {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
}

.install-prompt-text {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 15px;
    opacity: 0.95;
}

.install-prompt-buttons {
    display: flex;
    gap: 10px;
}

.install-prompt-btn {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.install-prompt-btn.primary {
    background: white;
    color: var(--primary);
}

.install-prompt-btn.secondary {
    background: rgba(255,255,255,0.2);
    color: white;
}

.install-prompt-btn:active {
    transform: scale(0.97);
}

/* Install Instructions Modal */
.install-instructions-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.8);
    z-index: 500;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.install-instructions-modal.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.install-instructions-content {
    background: white;
    border-radius: 20px;
    width: 100%;
    max-width: 400px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 25px;
    animation: slideUp 0.3s ease;
}

.install-step {
    background: var(--bg-light);
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 15px;
    border-left: 4px solid var(--primary);
}

.install-step-number {
    display: inline-block;
    background: var(--primary);
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    text-align: center;
    line-height: 28px;
    font-weight: 700;
    margin-right: 10px;
}

.install-step-text {
    display: inline-block;
    vertical-align: middle;
    width: calc(100% - 45px);
    line-height: 1.5;
}
    /* ENHANCED INSTALL INSTRUCTIONS */
.install-visual-guide {
    background: var(--bg-light);
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
    border: 2px solid var(--primary);
}

.install-device-type {
    text-align: center;
    margin-bottom: 20px;
    padding: 15px;
    background: white;
    border-radius: 10px;
    border: 2px solid var(--primary);
}

.install-device-icon {
    font-size: 3rem;
    margin-bottom: 10px;
}

.install-step-visual {
    background: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    border-left: 5px solid var(--primary);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.install-step-visual:last-child {
    margin-bottom: 0;
    border-left-color: var(--success);
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
}

.install-step-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.install-step-number-large {
    background: var(--primary);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    flex-shrink: 0;
}

.install-step-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark);
}

.install-step-description {
    color: var(--gray);
    line-height: 1.7;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.install-visual-hint {
    background: #eff6ff;
    border: 2px dashed var(--primary);
    padding: 15px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 15px;
}

.install-visual-hint-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.install-visual-hint-text {
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: 600;
}

.install-icon-visual {
    font-size: 2.5rem;
    padding: 15px;
    background: var(--bg-light);
    border-radius: 10px;
    display: inline-block;
    margin: 10px 0;
    border: 2px solid var(--border);
}

.install-success-banner {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    margin-top: 20px;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.install-button-example {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    margin: 5px 0;
}
    
/* ========== TYPOGRAPHY UPGRADE ========== */

body {
    font-family: var(--font-body);
    color: #333;
    line-height: 1.6;
    font-size: 15px;
}

.business-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1 rem;
    letter-spacing: -0.02em;
    line-height: 1.3;
    color: #1a1a1a;
}

.logo {
    font-family: var(--font-special);
    font-size: 1.6rem;
    letter-spacing: 3px;
}

h2 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.5rem;
    color: #1a1a1a !important;
}

h3 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.2rem;
}

h4 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    color: #666;
}

.business-price {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--primary);
}
/* RATING STARS */
.rating-section button:hover {
    transform: scale(1.2);
}

.rating-section button:active {
    transform: scale(1.1);
}
    .logout-door-btn { cursor: pointer; }

.logout-door-panel {
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    background: #1e293b;
    transform: scaleX(0);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.logout-door-left {
    left: 0;
    transform-origin: left center;
}

.logout-door-right {
    right: 0;
    transform-origin: right center;
}

.logout-door-btn.closing .logout-door-left,
.logout-door-btn.closing .logout-door-right {
    transform: scaleX(1);
}

.logout-door-btn.closing .logout-door-text {
    opacity: 0;
    transition: opacity 0.2s ease;
}
    /* ===== CARD FLIP SYSTEM - SAFARI FIX ===== */
.business-card-wrapper {
    perspective: 1000px;
    margin-bottom: 12px;
    position: relative;
}

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

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

/* FRONT FACE - Hide when flipped */
.business-card-front {
    position: relative;
    width: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(1px); /* Force layer */
    -webkit-transform: translateZ(1px);
    z-index: 2;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    touch-action: pan-y;
}

/* CRITICAL: Hide front when flipped */
.business-card-inner.flipped .business-card-front {
    visibility: hidden;
    pointer-events: none;
}

/* BACK FACE - Hidden by default, show when flipped */
.business-card-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: rotateY(180deg) translateZ(0);
    -webkit-transform: rotateY(180deg) translateZ(0);
    background: #1e293b;
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    z-index: 1;
    
    /* Hide by default */
    visibility: hidden;
    pointer-events: none;
    
    /* Safari overflow fixes */
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    mask-image: radial-gradient(white, black);
    isolation: isolate;
}

/* CRITICAL: Show back when flipped */
.business-card-inner.flipped .business-card-back {
    visibility: visible;
    pointer-events: auto;
}

.flip-gallery-container {
    position: relative;
    flex: 1;
    overflow: hidden;
}

.flip-gallery-track {
    display: flex;
    height: 100%;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.flip-gallery-slide {
    min-width: 100%;
    height: 100%;
    flex-shrink: 0;
}

.flip-gallery-slide {
    min-width: 100%;
    height: 100%;
    flex-shrink: 0;
    overflow: hidden;
}

.flip-gallery-slide img {
    width: 100%;
    height: 100%;
    max-height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
    /* Prevent image snapping/bleeding during the flip on iOS */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.flip-gallery-slide .placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #2d3748;
    color: #718096;
    font-size: 3rem;
}

.flip-gallery-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
}

.flip-gallery-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    transition: all 0.3s ease;
    cursor: pointer;
}

.flip-gallery-dot.active {
    background: white;
    width: 20px;
    border-radius: 4px;
}

.flip-gallery-counter {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0,0,0,0.6);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 10;
}

.flip-close-btn {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0,0,0,0.6);
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.flip-close-btn:active {
    background: rgba(255,255,255,0.3);
}

.flip-gallery-hint {
    background: rgba(0,0,0,0.8);
    color: rgba(255,255,255,0.7);
    text-align: center;
    padding: 8px;
    font-size: 0.78rem;
    letter-spacing: 0.3px;
}

.flip-gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.1rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.flip-gallery-nav.prev { left: 10px; }
.flip-gallery-nav.next { right: 10px; }

@keyframes flip-hint-pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.flip-hint-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(0,0,0,0.65);
    color: white;
    padding: 3px 9px;
    border-radius: 10px;
    font-size: 0.72rem;
    font-weight: 600;
    z-index: 5;
    animation: flip-hint-pulse 2s ease-in-out infinite;
    pointer-events: none;
}
    /* CRITICAL: Hide hint badge when flipped */
.business-card-inner.flipped .flip-hint-badge {
    display: none !important;
    visibility: hidden !important;
}
/* ============================================
   GLASSMORPHISM EXTRAS
   ============================================ */

/* Screen backgrounds */
#home-screen, #add-screen, #profile-screen, #admin-screen {
    background: transparent !important;
}

/* Notification panel glass */
.notification-panel {
    background: rgba(255, 255, 255, 0.65) !important;
    backdrop-filter: blur(28px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(28px) saturate(180%) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.8) !important;
    border-radius: 24px 0 0 24px !important;
    box-shadow: -8px 0 40px rgba(100, 80, 200, 0.15) !important;
}

.notification-panel-header {
    background: transparent !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5) !important;
}

.notification-item {
    background: rgba(255, 255, 255, 0.5) !important;
    border: 1px solid rgba(255, 255, 255, 0.7) !important;
    border-radius: 14px !important;
    backdrop-filter: blur(10px) !important;
}

.notification-item.unread {
    background: rgba(102, 126, 234, 0.12) !important;
    border-color: rgba(102, 126, 234, 0.3) !important;
}

/* Modal glass effects */
.verification-modal-content,
.premium-modal-content,
.add-story-content,
.university-modal-content,
.legal-modal-content,
.install-instructions-content {
    background: rgba(255, 255, 255, 0.72) !important;
    backdrop-filter: blur(30px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(30px) saturate(180%) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.85) !important;
    box-shadow: 0 20px 60px rgba(100, 80, 200, 0.2) !important;
}

/* Card info section */
.business-info {
    background: transparent !important;
    padding: 10px 12px !important;
}

/* Business name color */
.business-name {
    color: #1a1a1a !important;
    font-weight: 800 !important;
    -webkit-font-smoothing: antialiased !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.08) !important;
}

/* Price */
.business-price {
    color: #1e4d3b !important;
    font-weight: 700 !important;
}

/* Form inputs glass */
.form-input, select.form-input, textarea.form-input {
    background: rgba(255, 255, 255, 0.55) !important;
    border: 1px solid rgba(255, 255, 255, 0.75) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border-radius: 14px !important;
    color: #1a1060 !important;
    box-shadow: 0 2px 10px rgba(100, 80, 200, 0.06) !important;
}

.form-input:focus, select.form-input:focus, textarea.form-input:focus {
    background: rgba(255, 255, 255, 0.8) !important;
    border-color: rgba(102, 126, 234, 0.6) !important;
    outline: none !important;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.18) !important;
}

/* Buttons */
.btn {
    border-radius: 16px !important;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3) !important;
}

/* Profile card glass */
#profile-content > div > div:first-child {
    background: rgba(255, 255, 255, 0.55) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.75) !important;
    border-radius: 24px !important;
    box-shadow: 0 8px 32px rgba(100, 80, 200, 0.12) !important;
}
html[data-theme="dark"] #profile-content > div > div:first-child {
    background: var(--surface-solid) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: 1px solid var(--card-border) !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4) !important;
}

/* Comment boxes */
.comment-box {
    background: rgba(255, 255, 255, 0.55) !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.7) !important;
    border-radius: 16px !important;
}

/* Action bar buttons */
.action-btn {
    background: var(--surface-solid);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    color: var(--text-strong);
    font-weight: 600;
}

/* Like button */
.like-btn {
    background: rgba(255, 255, 255, 0.55) !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.7) !important;
    border-radius: 20px !important;
}

.like-btn.liked {
    background: rgba(254, 226, 226, 0.7) !important;
    border-color: rgba(239, 68, 68, 0.4) !important;
}

/* Admin stat cards */
.admin-stat-card {
    background: rgba(255, 255, 255, 0.5) !important;
    backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.7) !important;
    border-radius: 16px !important;
}

/* Admin business items */
.admin-business-item {
    background: rgba(255, 255, 255, 0.5) !important;
    backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.7) !important;
    border-radius: 16px !important;
}

/* Loading screen - keep dark */
.loading {
    background: #0f0a2e !important;
}

/* Skeleton cards glass */
.skeleton-card {
    background: rgba(255, 255, 255, 0.45) !important;
    backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.65) !important;
    border-radius: 24px !important;
}

/* Image gallery rounded corners */
.business-image {
    border-radius: 20px 20px 0 0 !important;
    overflow: hidden !important;
}

/* Tutorial overlay */
.tutorial-content {
    background: rgba(255, 255, 255, 0.75) !important;
    backdrop-filter: blur(24px) !important;
    -webkit-backdrop-filter: blur(24px) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.85) !important;
    border-radius: 24px !important;
}
html[data-theme="dark"] .tutorial-content {
    background: rgba(26, 32, 29, 0.85) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

/* Install prompt */
.install-prompt {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.85), rgba(118, 75, 162, 0.85)) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.4) !important;
    border-radius: 24px !important;
}

/* Logo */
.logo {
    color: #1a1a1a !important;
    background: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
}

/* Clock */
.header-clock {
    color: #5b4fd4 !important;
    opacity: 0.85 !important;
}

/* Verified badge */
.verified-badge {
    background: rgba(220, 252, 231, 0.8) !important;
    backdrop-filter: blur(6px) !important;
    border: 1px solid rgba(34, 197, 94, 0.3) !important;
}

/* Bottom nav padding */
body {
    padding-bottom: 100px !important;
}

    /* ============================================
   DEVICE-SPECIFIC RESPONSIVE TWEAKS
   ============================================ */

/* Extra Small Phones (e.g., iPhone SE, Galaxy Fold outer screen - under 360px) */
@media (max-width: 359px) {
    .logo { font-size: 1.3rem !important; }
    .bottom-nav { width: 95%; padding: 8px 4px 10px 4px; }
    .nav-item { padding: 6px 10px; font-size: 0.65rem; }
    .business-info { padding: 10px !important; }
    .action-bar { flex-direction: column; } /* Stack action buttons vertically */
}

/* Tablets & Desktop (Over 768px) */
/* Product skeleton loading */
.product-card-skeleton {
    background: rgba(255,255,255,0.7);
    border: 1.5px solid rgba(255,255,255,0.9);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.product-skel-img {
    width: 100%;
    height: 160px;
    background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}
.product-skel-body {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.product-skel-line {
    height: 14px;
    background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 6px;
}
.product-skel-line.name { width: 75%; height: 16px; }
.product-skel-line.price { width: 45%; height: 18px; }
.product-skel-line.seller { width: 55%; height: 12px; }
.product-skel-btn {
    height: 36px;
    background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 12px;
    margin-top: 4px;
}

@media (min-width: 768px) {
    /* Make the detail view gallery look like a modern web app, not edge-to-edge */
    .image-gallery {
        max-width: 800px;
        margin: 20px auto 0 auto;
        border-radius: 24px;
        box-shadow: var(--shadow);
    }
    
    /* Center header elements nicely */
    .header-content {
        position: static;
        transform: none;
        flex-direction: row;
        gap: 15px;
        align-items: baseline;
    }
    
    /* Make the bottom nav float nicely in the center instead of spanning */
    .bottom-nav {
        max-width: 400px;
        bottom: 20px;
    }

    /* Smaller product cards on desktop — 3 or 4 columns, compact image */
    #products-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)) !important;
        gap: 12px !important;
    }
    .product-card-img {
        height: 130px !important;
    }
    .product-skel-img {
        height: 130px !important;
    }
    .product-card-name {
        font-size: 0.85rem !important;
    }
    .product-card-price {
        font-size: 0.9rem !important;
    }
    .product-buy-btn {
        padding: 8px !important;
        font-size: 0.8rem !important;
    }
}
/* ===== QUICK SELL / FEATURED ITEMS SECTION ===== */
.featured-section {
    padding: 0 15px;
    margin-bottom: 20px;
}

.featured-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.featured-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a1a;
}

.featured-view-all {
    font-size: 0.8rem;
    font-weight: 600;
    color: #1e4d3b;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 2px;
    background: none;
    border: none;
    padding: 0;
}

.featured-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

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

.quick-sell-card {
    min-width: 155px;
    width: 155px;
    background: var(--surface-solid);
    border: 1.5px solid var(--card-border);
    border-radius: 20px;
    overflow: hidden;
    scroll-snap-align: start;
    flex-shrink: 0;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
    display: flex;
    flex-direction: column;
}

.quick-sell-card:active {
    transform: scale(0.96);
}

.quick-sell-image {
    width: 100%;
    height: 140px;
    background: #e2e8f0;
    position: relative;
    overflow: hidden;
}

.quick-sell-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.quick-sell-card:active .quick-sell-image img {
    transform: scale(1.05);
}

.quick-sell-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #1e4d3b;
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 20px;
    letter-spacing: 0.3px;
}

.quick-sell-info {
    padding: 10px 10px 12px 10px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.quick-sell-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.88rem;
    color: #1a1a1a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.quick-sell-price {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 0.92rem;
    color: #1e4d3b;
    margin-top: 2px;
}

.quick-sell-time {
    font-size: 0.7rem;
    color: #999;
    margin-top: 2px;
}

/* QUICK SELL DETAIL MODAL */
.quick-sell-detail {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 400;
    display: none;
    align-items: flex-end;
    justify-content: center;
}

.quick-sell-detail.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

/* Seller's product list must stay BELOW the product detail modal (z-index:300)
   so tapping a product opens its detail screen in FRONT, not behind it */
#seller-products-modal {
    z-index: 250;
}

.quick-sell-detail-content {
    background: #f5f0e8;
    border-radius: 28px 28px 0 0;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    padding-bottom: 40px;
    animation: slideUp 0.3s ease;
}

.quick-sell-detail-image {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 28px 28px 0 0;
}

.quick-sell-detail-body {
    padding: 20px;
}

.quick-sell-detail-name {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 6px;
}

.quick-sell-detail-price {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 800;
    color: #1e4d3b;
    margin-bottom: 14px;
}

.quick-sell-detail-desc {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
}

.quick-sell-contact-btns {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.quick-sell-contact-btn {
    flex: 1;
    padding: 14px;
    border: none;
    border-radius: 16px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
}

.quick-sell-contact-btn.whatsapp {
    background: #25D366;
    color: white;
}

.quick-sell-contact-btn.call {
    background: #1e4d3b;
    color: white;
}

.quick-sell-contact-btn:active {
    transform: scale(0.96);
}

/* ===== MARKETPLACE PRODUCT CARDS ===== */
.product-card {
    background: rgba(255,255,255,0.7);
    border: 1.5px solid rgba(255,255,255,0.9);
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
}
.product-card:active { transform: scale(0.97); }
.product-card-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    background: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}
.product-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.product-card-body {
    padding: 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.product-card-name {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    color: #1a1a1a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.product-card-price {
    font-size: 1rem;
    font-weight: 800;
    color: #1e4d3b;
}
.product-card-seller {
    font-size: 0.75rem;
    color: #888;
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 4px;
}
.product-buy-btn {
    width: 100%;
    padding: 10px;
    background: #1e4d3b;
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    margin-top: 8px;
    transition: all 0.2s;
}
.product-buy-btn:active { transform: scale(0.97); background: #133629; }

/* ===== PAYMENT SAFETY MODAL ===== */
.payment-safety-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.65);
    z-index: 500;
    display: none;
    align-items: flex-end;
    justify-content: center;
}
.payment-safety-modal.active {
    display: flex;
    animation: fadeIn 0.2s ease;
}
.payment-safety-content {
    background: #f5f0e8;
    border-radius: 28px 28px 0 0;
    width: 100%;
    max-width: 520px;
    padding: 28px 24px 44px;
    animation: slideUp 0.3s ease;
    max-height: 92vh;
    overflow-y: auto;
}
.safety-shield {
    width: 72px;
    height: 72px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.safety-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 800;
    color: #1a1a1a;
    text-align: center;
    margin-bottom: 6px;
}
.safety-subtitle {
    font-size: 0.88rem;
    color: #666;
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.5;
}
.safety-step {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}
.safety-step:last-of-type { border-bottom: none; }
.safety-step-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(30,77,59,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.safety-step-text strong {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 2px;
}
.safety-step-text span {
    font-size: 0.82rem;
    color: #666;
    line-height: 1.5;
}
.safety-fee-box {
    background: rgba(30,77,59,0.08);
    border: 1.5px solid rgba(30,77,59,0.15);
    border-radius: 16px;
    padding: 14px 16px;
    margin: 18px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.safety-fee-label { font-size: 0.85rem; color: #555; }
.safety-fee-amount {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 800;
    color: #1e4d3b;
}
.safety-pay-btn {
    width: 100%;
    padding: 16px;
    background: #1e4d3b;
    color: white;
    border: none;
    border-radius: 18px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 8px;
}
.safety-pay-btn:active { transform: scale(0.97); }
.safety-cancel-btn {
    width: 100%;
    padding: 13px;
    background: transparent;
    border: none;
    color: #999;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 8px;
}

/* ===== PRODUCT DETAIL MODAL ===== */
.product-detail-modal {
    position: fixed;
    inset: 0;
    background: #fff;
    z-index: 300;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}
.product-detail-modal.active {
    transform: translateX(0);
}
.product-detail-header {
    position: sticky;
    top: 0;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    padding: 15px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10;
}
.product-detail-body {
    padding: 20px;
    padding-bottom: 100px;
    max-width: 680px;
    margin: 0 auto;
}
.product-detail-img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 20px;
    margin-bottom: 18px;
    background: #eee;
}
.product-detail-name {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 6px;
}
.product-detail-price {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 800;
    color: #1e4d3b;
    margin-bottom: 14px;
}
.product-detail-desc {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.7;
    margin-bottom: 20px;
}
.product-seller-card {
    background: rgba(255,255,255,0.7);
    border: 1.5px solid rgba(255,255,255,0.9);
    border-radius: 18px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}
.product-seller-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #1e4d3b;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.whatsapp-revealed-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px;
    background: #25D366;
    color: white;
    border: none;
    border-radius: 16px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    margin-top: 10px;
    animation: fadeIn 0.4s ease;
}

/* ===== ORDER STATUS BADGE ===== */
.order-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
}
.order-status-badge.held { background: #fef3c7; color: #92400e; }
.order-status-badge.delivered { background: #d1fae5; color: #065f46; }
.order-status-badge.disputed { background: #fee2e2; color: #991b1b; }
.order-status-badge.released { background: #dbeafe; color: #1e40af; }
/* ===== END NEW STYLES ===== */

/* CHOICE MODAL when + is tapped */
.add-choice-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 400;
    display: none;
    align-items: flex-end;
}

.add-choice-modal.active {
    display: flex;
    animation: fadeIn 0.2s ease;
}

.add-choice-content {
    background: #f5f0e8;
    border-radius: 28px 28px 0 0;
    width: 100%;
    padding: 24px 20px 40px 20px;
    animation: slideUp 0.3s ease;
}

.add-choice-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
    text-align: center;
}

.add-choice-option {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 16px;
    background: rgba(255,255,255,0.7);
    border: 1.5px solid rgba(255,255,255,0.9);
    border-radius: 20px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.2s;
    backdrop-filter: blur(10px);
}

.add-choice-option:active {
    transform: scale(0.97);
    background: rgba(255,255,255,0.9);
}

.add-choice-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    flex-shrink: 0;
}

.add-choice-icon.business {
    background: rgba(30, 77, 59, 0.12);
}

.add-choice-icon.quick {
    background: rgba(245, 158, 11, 0.12);
}

.add-choice-text h4 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 3px;
}

.add-choice-text p {
    font-size: 0.82rem;
    color: #777;
    line-height: 1.4;
}

.add-choice-cancel {
    width: 100%;
    padding: 14px;
    background: transparent;
    border: none;
    color: #999;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    margin-top: 8px;
    border-radius: 16px;
    transition: all 0.2s;
}

.add-choice-cancel:active {
    background: rgba(0,0,0,0.05);
}

/* QUICK SELL FORM MODAL */
.quick-sell-form-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 400;
    display: none;
    align-items: flex-end;
}

.quick-sell-form-modal.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.quick-sell-form-content {
    background: #f5f0e8;
    border-radius: 28px 28px 0 0;
    width: 100%;
    max-height: 92vh;
    overflow-y: auto;
    padding: 24px 20px 50px 20px;
    animation: slideUp 0.3s ease;
}
/* ===== END QUICK SELL ===== */
/* ===== TOP CATEGORIES ===== */
.categories-section {
    padding: 0 15px;
    margin-bottom: 20px;
}

.categories-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 14px;
}

.categories-row {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    width: 100%;
    gap: 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 2px;
}

.categories-row::-webkit-scrollbar {
    display: none;
}

.category-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.2s;
    -webkit-tap-highlight-color: transparent;
    flex-shrink: 0;
}

.category-btn:active {
    transform: scale(0.93);
}

.category-icon-circle {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    transition: transform 0.2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.category-btn:active .category-icon-circle {
    transform: scale(1.08);
}

.category-btn.active-cat .category-icon-circle {
    box-shadow: 0 4px 18px rgba(30, 77, 59, 0.45);
    transform: scale(1.1);
    outline: 3px solid #1e4d3b;
    outline-offset: 2px;
}

.category-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: #666;
    font-family: var(--font-body);
    letter-spacing: 0.02em;
    text-align: center;
}

.category-btn.active-cat .category-label {
    color: #1e4d3b;
    font-weight: 800;
    background: rgba(30,77,59,0.1);
    border-radius: 6px;
    padding: 1px 5px;
}

/* Active category highlight pill */
.category-btn.active-cat {
    position: relative;
}
.category-btn.active-cat::before {
    content: '';
    position: absolute;
    inset: -6px -8px;
    background: rgba(30, 77, 59, 0.08);
    border: 1.5px solid rgba(30, 77, 59, 0.2);
    border-radius: 18px;
    z-index: -1;
    animation: catHighlight 0.25s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes catHighlight {
    from { transform: scale(0.85); opacity: 0; }
    to   { transform: scale(1);    opacity: 1; }
}
.category-btn.active-cat .category-icon-circle {
    box-shadow: 0 0 0 3px rgba(30, 77, 59, 0.18), 0 4px 16px rgba(30, 77, 59, 0.25);
}
/* ===== END TOP CATEGORIES ===== */
