/* ================================================================
   MARKETPLACE.CSS — Premium dark-themed marketplace & business detail
   ARAY — AI Business Marketplace for Yerevan

   Self-contained design tokens (independent of main.css).
   Fonts: Outfit (headings), Plus Jakarta Sans (body), JetBrains Mono (mono)
   ================================================================ */

html {
  scroll-behavior: smooth;
}

:root {
  --bg: #06080d;
  --bg2: #0d1117;
  --bg3: #161b22;
  --surface: #1c2333;
  --border: #2a3142;
  --text: #e6edf3;
  --text2: #8b949e;
  --muted: #484f58;
  --accent: #00d4c8;
  --accent-hover: #00ebe0;
  --rose: #f43f5e;
  --gold: #f59e0b;
  --green: #10b981;
  --purple: #a78bfa;
  --blue: #3b82f6;
  --radius: 16px;
  --radius-sm: 8px;
  --radius-xs: 6px;
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --glass-bg: rgba(22, 27, 34, 0.72);
  --glass-border: rgba(42, 49, 66, 0.6);
  --glass-blur: blur(24px) saturate(1.4);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 16px 64px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 40px rgba(0, 212, 200, 0.12);
  --ease-out-expo: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ================================================================
   LIGHT THEME — marketplace overrides
   ================================================================ */
[data-theme="light"] {
  --bg: #f5f7fa;
  --bg2: #edf0f5;
  --bg3: #ffffff;
  --surface: #f0f2f5;
  --border: #d0d5dd;
  --text: #1a1d23;
  --text2: #57606a;
  --muted: #8b949e;
  --accent: #00a89e;
  --accent-hover: #00918a;
  --glass-bg: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(0, 0, 0, 0.08);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 16px 64px rgba(0, 0, 0, 0.10);
  --shadow-glow: 0 0 40px rgba(0, 168, 158, 0.06);
}

[data-theme="light"] .mp-hero-orb { opacity: 0.3; }
[data-theme="light"] .mp-hero-search {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(0, 0, 0, 0.1);
}
[data-theme="light"] .mp-hero-search:focus {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 0 4px rgba(0, 168, 158, 0.08), 0 8px 32px rgba(0, 0, 0, 0.06);
}
[data-theme="light"] .mp-search-kbd {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.08);
  color: var(--muted);
}
[data-theme="light"] .mp-hero-badge {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(0, 168, 158, 0.15);
}
[data-theme="light"] .mp-hero-badge::after {
  background: linear-gradient(90deg, transparent, rgba(0, 168, 158, 0.06), transparent);
}
[data-theme="light"] .mp-hero-stats {
  background: rgba(255, 255, 255, 0.75);
  border-color: rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
}
[data-theme="light"] .mp-hero-sub strong {
  background: linear-gradient(135deg, #00a89e, #00c4b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
[data-theme="light"] .mp-toolbar {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(0, 0, 0, 0.06);
}
[data-theme="light"] .mp-cat-btn {
  background: rgba(255, 255, 255, 0.6);
  border-color: rgba(0, 0, 0, 0.06);
}

/* ================================================================
   1. KEYFRAMES
   ================================================================ */

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

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

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.6;
  }
  50% {
    transform: scale(1.9);
    opacity: 0;
  }
}

@keyframes dotBounce {
  0%, 60%, 100% {
    transform: translateY(0);
    opacity: 0.35;
  }
  30% {
    transform: translateY(-7px);
    opacity: 1;
  }
}

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

@keyframes badgeDotPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(0, 212, 200, 0.5);
    opacity: 1;
  }
  50% {
    box-shadow: 0 0 0 5px rgba(0, 212, 200, 0);
    opacity: 0.7;
  }
}

@keyframes badgeShimmer {
  0% {
    left: -100%;
  }
  100% {
    left: 200%;
  }
}

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

/* ================================================================
   2. UTILITY
   ================================================================ */

.grad-text {
  background: linear-gradient(135deg, var(--accent) 0%, #00e8db 40%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.container {
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ================================================================
   3. MARKETPLACE HERO
   ================================================================ */

@keyframes orbFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 15px) scale(0.95); }
}
@keyframes orbFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-25px, 20px) scale(0.96); }
  66% { transform: translate(15px, -25px) scale(1.04); }
}
@keyframes orbFloat3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(20px, 20px) scale(1.06); }
}

.mp-hero {
  position: relative;
  padding: 72px 0 40px;
  text-align: center;
  background:
    radial-gradient(ellipse 70% 55% at 50% -5%, rgba(0, 212, 200, 0.09), transparent 70%),
    radial-gradient(ellipse 50% 40% at 80% 20%, rgba(167, 139, 250, 0.04), transparent),
    radial-gradient(ellipse 50% 40% at 20% 20%, rgba(59, 130, 246, 0.04), transparent),
    linear-gradient(180deg, var(--bg2) 0%, var(--bg) 100%);
  overflow: hidden;
}

.mp-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='1' cy='1' r='.5' fill='%232a3142' fill-opacity='.3'/%3E%3C/svg%3E");
  background-size: 40px 40px;
  opacity: 0.5;
  pointer-events: none;
}

.mp-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

/* ── Animated gradient orbs ── */
.mp-hero-orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.mp-hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  will-change: transform;
}

.mp-hero-orb-1 {
  width: 400px;
  height: 400px;
  top: -120px;
  left: 10%;
  background: radial-gradient(circle, rgba(0, 212, 200, 0.15), transparent 70%);
  animation: orbFloat1 18s ease-in-out infinite;
}

.mp-hero-orb-2 {
  width: 350px;
  height: 350px;
  top: -60px;
  right: 5%;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.12), transparent 70%);
  animation: orbFloat2 22s ease-in-out infinite;
}

.mp-hero-orb-3 {
  width: 300px;
  height: 300px;
  bottom: -80px;
  left: 40%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.1), transparent 70%);
  animation: orbFloat3 20s ease-in-out infinite;
}

/* ── Hero badge pill ── */
.mp-hero-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  color: var(--accent);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-bottom: 20px;
  overflow: hidden;
  animation: fadeUp 0.5s var(--ease-out-expo) both;
}

.mp-hero-badge svg {
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  color: var(--accent);
  opacity: 0.8;
}

/* Animated pulsing dot */
.mp-hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  animation: badgeDotPulse 2s ease-in-out infinite;
}

/* Shimmer sweep on badge */
.mp-hero-badge::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 212, 200, 0.08),
    transparent
  );
  border-radius: inherit;
  animation: badgeShimmer 4s ease-in-out infinite;
  pointer-events: none;
}

.mp-hero .container {
  position: relative;
  z-index: 1;
}

.mp-hero-title {
  position: relative;
  font-family: var(--font-heading);
  font-size: clamp(30px, 4.5vw, 48px);
  font-weight: 900;
  color: var(--text);
  line-height: 1.12;
  margin-bottom: 16px;
  letter-spacing: -0.03em;
  animation: fadeUp 0.6s var(--ease-out-expo) 0.05s both;
}

/* ── Gradient text span ── */
.mp-hero-gradient {
  background: linear-gradient(135deg, var(--accent) 0%, #00e8db 40%, var(--purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.mp-hero-sub {
  position: relative;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text2);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.5;
  animation: fadeUp 0.6s var(--ease-out-expo) 0.1s both;
}

.mp-hero-sub strong {
  color: var(--text);
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent), #00e8db);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Premium hero search bar ── */
.mp-hero-search-wrap {
  position: relative;
  max-width: 540px;
  margin: 28px auto 0;
  animation: fadeUp 0.6s var(--ease-out-expo) 0.15s both;
}

.mp-hero-search-inner {
  position: relative;
  display: flex;
  align-items: center;
}

.mp-hero-search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--muted);
  pointer-events: none;
  transition: color 0.3s;
  z-index: 1;
}

.mp-hero-search-inner:focus-within .mp-hero-search-icon {
  color: var(--accent);
}

.mp-hero-search {
  width: 100%;
  padding: 14px 90px 14px 48px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}

.mp-hero-search:hover {
  border-color: rgba(0, 212, 200, 0.2);
  background: rgba(22, 27, 34, 0.85);
}

.mp-hero-search:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(0, 212, 200, 0.1), 0 8px 32px rgba(0, 0, 0, 0.2);
  background: rgba(22, 27, 34, 0.92);
}

.mp-hero-search::placeholder {
  color: var(--muted);
  font-family: var(--font-body);
}

.mp-ai-badge {
  position: absolute;
  right: 56px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  background: linear-gradient(135deg, rgba(0, 212, 200, 0.15), rgba(167, 139, 250, 0.08));
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  border-radius: 100px;
  border: 1px solid rgba(0, 212, 200, 0.2);
  pointer-events: none;
  backdrop-filter: blur(8px);
  animation: scaleIn 0.3s var(--ease-out-expo);
  z-index: 1;
}

.mp-search-kbd {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  pointer-events: none;
  transition: opacity 0.3s;
  z-index: 1;
}

.mp-hero-search:focus ~ .mp-search-kbd {
  opacity: 0;
}

/* ── Hero stats counters ── */
.mp-hero-stats {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 28px;
  padding: 10px 24px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(1.3);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  animation: fadeUp 0.6s var(--ease-out-expo) 0.25s both;
}

.mp-hero-stat {
  display: flex;
  align-items: center;
  gap: 6px;
}

.mp-hero-stat svg {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  opacity: 0.75;
}

.mp-hero-stat-value {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
  line-height: 1;
}

.mp-hero-stat-label {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 500;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1;
}

.mp-hero-stat-divider {
  width: 1px;
  height: 20px;
  background: linear-gradient(180deg, transparent, var(--border), transparent);
  flex-shrink: 0;
}

/* ================================================================
   4. MARKETPLACE TOOLBAR
   ================================================================ */

.mp-section {
  padding: 40px 0 80px;
  background: var(--bg);
  min-height: 60vh;
}

/* ── Search bar (content zone) ── */
.mp-search-bar {
  position: relative;
  max-width: 100%;
  margin-bottom: 20px;
  animation: fadeUp 0.5s var(--ease-out-expo) both;
}

.mp-toolbar {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 24px;
  padding: 12px 18px;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
}

.mp-toolbar-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.mp-results-info {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text2);
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
  letter-spacing: 0.01em;
}

.mp-results-ai-hint {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: 8px;
  padding: 3px 10px;
  background: linear-gradient(135deg, rgba(0, 212, 200, 0.1), rgba(167, 139, 250, 0.06));
  border: 1px solid rgba(0, 212, 200, 0.15);
  border-radius: 100px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.mp-sort {
  padding: 13px 40px 13px 18px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  cursor: pointer;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238b949e' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}

.mp-sort:hover {
  border-color: rgba(42, 49, 66, 0.9);
  background: var(--bg3);
}

.mp-sort:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 212, 200, 0.12);
}

/* ================================================================
   5. CATEGORY FILTERS
   ================================================================ */

.mp-cats {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin-bottom: 26px;
  padding-bottom: 8px;
  mask-image: linear-gradient(90deg, #000 0%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 92%, transparent 100%);
}

.mp-cats::-webkit-scrollbar {
  display: none;
}

.mp-cat-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  color: var(--text2);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.3s var(--ease-out-expo), color 0.3s var(--ease-out-expo), background 0.3s var(--ease-out-expo), box-shadow 0.3s var(--ease-out-expo);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.mp-cat-btn svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}

.mp-cat-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(0, 212, 200, 0.08), rgba(167, 139, 250, 0.04));
  opacity: 0;
  transition: opacity 0.3s;
}

.mp-cat-btn:hover::before {
  opacity: 1;
}

.mp-cat-btn:hover {
  border-color: rgba(0, 212, 200, 0.4);
  color: var(--text);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.mp-cat-btn.active {
  background: linear-gradient(135deg, var(--accent), #00b8ae);
  color: var(--bg);
  border-color: var(--accent);
  box-shadow: 0 4px 20px rgba(0, 212, 200, 0.3);
  font-weight: 700;
}

.mp-cat-btn.active::before {
  display: none;
}

.mp-cat-btn.active svg {
  color: var(--bg);
}

.mp-cat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  color: currentColor;
}

.mp-cat-icon svg {
  width: 16px;
  height: 16px;
}

.mp-cat-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 22px;
  padding: 0 7px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 1;
}

.mp-cat-btn.active .mp-cat-count {
  background: rgba(0, 0, 0, 0.22);
  color: var(--bg);
}

/* ================================================================
   6. RESULTS INFO
   ================================================================ */

.mp-results-info span {
  font-weight: 700;
  color: var(--text);
}

/* ================================================================
   7. BUSINESS CARDS
   ================================================================ */

.mp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 22px;
}

.mp-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition:
    transform 0.4s var(--ease-out-expo),
    border-color 0.4s,
    box-shadow 0.4s;
}

/* Staggered card animation on homepage (reveal grid) */
.mp-grid.reveal .mp-card {
  opacity: 0;
  transform: translateY(40px) scale(0.96);
}
.mp-grid.reveal.active .mp-card {
  animation: cardSlideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.mp-grid.reveal.active .mp-card:nth-child(1) { animation-delay: 0.0s; }
.mp-grid.reveal.active .mp-card:nth-child(2) { animation-delay: 0.1s; }
.mp-grid.reveal.active .mp-card:nth-child(3) { animation-delay: 0.12s; }
.mp-grid.reveal.active .mp-card:nth-child(4) { animation-delay: 0.24s; }
.mp-grid.reveal.active .mp-card:nth-child(5) { animation-delay: 0.32s; }
.mp-grid.reveal.active .mp-card:nth-child(6) { animation-delay: 0.40s; }
@keyframes cardSlideUp {
  from { opacity: 0; transform: translateY(40px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.mp-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    135deg,
    transparent 30%,
    rgba(0, 212, 200, 0.2) 50%,
    transparent 70%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
  z-index: 1;
}

/* [FIX #2] Card hover: translateY(-4px), specific shadow + accent border */
.mp-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 212, 200, 0.15);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.mp-card:hover::before {
  opacity: 1;
}

/* card header / gradient area */
.mp-card-head {
  position: relative;
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(
    135deg,
    rgba(0, 212, 200, 0.06) 0%,
    rgba(167, 139, 250, 0.04) 50%,
    rgba(59, 130, 246, 0.06) 100%
  );
}

.mp-card-head::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 20%, rgba(0, 212, 200, 0.08), transparent 70%);
  pointer-events: none;
  z-index: 1;
}

.mp-card-head::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(6,8,13,0.7) 100%);
  pointer-events: none;
  z-index: 1;
}

/* Lazy-loaded photo <img> inside card head */
.mp-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: transform 0.4s var(--ease-out-expo, ease);
}
.mp-card:hover .mp-card-img {
  transform: scale(1.04);
}

/* When card has a photo */
.mp-card-head.has-photo {
  height: 240px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.mp-card-head.has-photo::before {
  background: none;
}

.mp-card-head.has-photo::after {
  background: linear-gradient(180deg, rgba(6,8,13,0.1) 0%, rgba(6,8,13,0.85) 100%);
}

.mp-card-head.has-photo .mp-card-icon {
  text-shadow: 0 2px 12px rgba(0,0,0,0.9);
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.6));
}

.mp-card-icon {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.5));
  animation: float 5s ease-in-out infinite;
  transition: transform 0.4s var(--ease-out-expo), color 0.3s;
}

.mp-card-icon svg {
  width: 44px;
  height: 44px;
}

.mp-card:hover .mp-card-icon {
  transform: scale(1.12);
  color: var(--accent-hover);
  filter: drop-shadow(0 8px 24px rgba(0, 212, 200, 0.3));
}

.mp-card-head.has-photo .mp-card-icon {
  color: #fff;
}

.mp-card-head.has-photo .mp-card-icon svg {
  width: 36px;
  height: 36px;
}

/* badges */
.mp-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.mp-badge-top {
  background: rgba(245, 158, 11, 0.14);
  color: var(--gold);
  border: 1px solid rgba(245, 158, 11, 0.25);
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  box-shadow: 0 2px 12px rgba(245, 158, 11, 0.15);
}

.mp-badge-new {
  background: rgba(59, 130, 246, 0.14);
  color: var(--blue);
  border: 1px solid rgba(59, 130, 246, 0.25);
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  box-shadow: 0 2px 12px rgba(59, 130, 246, 0.15);
}

.mp-badge-ai {
  background: rgba(167, 139, 250, 0.14);
  color: var(--purple);
  border: 1px solid rgba(167, 139, 250, 0.25);
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  box-shadow: 0 2px 12px rgba(167, 139, 250, 0.15);
}

.mp-badge-cat {
  background: rgba(0, 212, 200, 0.1);
  color: var(--accent);
  border: 1px solid rgba(0, 212, 200, 0.2);
}

.mp-badge-verified {
  background: rgba(16, 185, 129, 0.1);
  color: var(--green);
  border: 1px solid rgba(16, 185, 129, 0.2);
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.1);
}

/* card body */
.mp-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 20px 22px 22px;
}

.mp-card-name {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.25s;
}

.mp-card:hover .mp-card-name {
  color: var(--accent-hover);
}

/* [FIX #1] Card SVG icon alignment — inline-flex + align-items: center + gap */
.mp-card-addr {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text2);
  margin-bottom: 14px;
  line-height: 1.4;
}

.mp-card-addr svg,
.mp-card-addr i {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  color: var(--muted);
}

.mp-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

/* [FIX #1] Rating — inline-flex alignment, NO ::before pseudo star */
.mp-card-rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  color: var(--gold);
}

/* Remove the old ::before star pseudo-element completely */
.mp-card-rating::before {
  content: none;
  display: none;
}

.mp-card-rating svg {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  color: var(--gold);
}

.mp-card-reviews {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--muted);
}

/* [FIX #1] Hours — inline-flex alignment */
.mp-card-hours {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-xs);
  transition: all 0.2s;
}

.mp-card-hours svg {
  flex-shrink: 0;
  width: 12px;
  height: 12px;
}

.mp-card-hours.open {
  background: rgba(16, 185, 129, 0.1);
  color: var(--green);
  border: 1px solid rgba(16, 185, 129, 0.15);
}

.mp-card-hours.closed {
  background: rgba(244, 63, 94, 0.1);
  color: var(--rose);
  border: 1px solid rgba(244, 63, 94, 0.15);
}

.mp-card-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 6px;
}

.mp-tag {
  padding: 4px 12px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  color: var(--text2);
  transition: border-color 0.25s, color 0.25s, background 0.25s;
}

.mp-tag:hover {
  border-color: rgba(0, 212, 200, 0.3);
  color: var(--accent);
  background: rgba(0, 212, 200, 0.05);
}

/* ================================================================
   8. EMPTY STATE + PAGINATION
   ================================================================ */

/* [FIX #10] Empty state — centered with muted icon and text */
.mp-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px;
  color: var(--text2);
  animation: fadeUp 0.5s var(--ease-out-expo) both;
}

.mp-empty-icon {
  font-size: 64px;
  margin-bottom: 20px;
  opacity: 0.4;
  color: var(--muted);
  animation: float 4s ease-in-out infinite;
}

.mp-empty-icon svg {
  width: 64px;
  height: 64px;
  color: var(--muted);
  opacity: 0.5;
}

.mp-empty h3 {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}

.mp-empty p {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text2);
  max-width: 380px;
  margin: 0 auto;
  line-height: 1.6;
}

/* [FIX #8] Pagination — proper flex center layout with styled page buttons */
.mp-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
  flex-wrap: wrap;
}

.mp-page-btn,
.mp-pagination button,
.mp-pagination a {
  min-width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text2);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.25s var(--ease-out-expo), color 0.25s var(--ease-out-expo), border-color 0.25s var(--ease-out-expo);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.mp-page-btn:hover,
.mp-pagination button:hover,
.mp-pagination a:hover {
  border-color: var(--accent);
  color: var(--text);
  background: rgba(0, 212, 200, 0.05);
}

.mp-page-btn.active,
.mp-pagination button.active,
.mp-pagination a.active,
.mp-pagination .current {
  background: linear-gradient(135deg, var(--accent), #00b8ae);
  color: var(--bg);
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(0, 212, 200, 0.25);
  font-weight: 700;
  pointer-events: none;
}

.mp-page-btn.disabled,
.mp-pagination button:disabled,
.mp-pagination a.disabled {
  opacity: 0.4;
  pointer-events: none;
  cursor: default;
}

.mp-page-ellipsis {
  min-width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 2px;
}

/* prev/next buttons with SVG alignment */
.mp-page-btn svg,
.mp-pagination button svg,
.mp-pagination a svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ================================================================
   8b. QUICK FILTERS (hero pills)
   ================================================================ */

.mp-quick-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 24px;
  animation: fadeUp 0.6s var(--ease-out-expo) 0.2s both;
}

.mp-quick-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  color: var(--text2);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  transition: all 0.3s var(--ease-out-expo);
  white-space: nowrap;
  text-decoration: none;
  touch-action: manipulation;
}

.mp-quick-btn:hover {
  border-color: rgba(0, 212, 200, 0.3);
  color: var(--text);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.mp-quick-btn.active {
  background: linear-gradient(135deg, rgba(0, 212, 200, 0.15), rgba(0, 212, 200, 0.06));
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 4px 20px rgba(0, 212, 200, 0.15);
}

.mp-quick-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.mp-quick-dot-green {
  background: var(--green);
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.5);
}

.mp-quick-map {
  border-color: rgba(59, 130, 246, 0.2);
}

.mp-quick-map:hover {
  border-color: rgba(59, 130, 246, 0.4);
  color: var(--blue);
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.1);
}

/* ── Quick filter individual color accents ── */
.mp-qf-open:hover,
.mp-qf-open.active {
  border-color: rgba(16, 185, 129, 0.4);
  color: var(--green);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(16, 185, 129, 0.04));
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.1);
}

.mp-qf-top:hover,
.mp-qf-top.active {
  border-color: rgba(245, 158, 11, 0.4);
  color: var(--gold);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(245, 158, 11, 0.04));
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.1);
}

.mp-qf-new:hover,
.mp-qf-new.active {
  border-color: rgba(167, 139, 250, 0.4);
  color: var(--purple, #a78bfa);
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.12), rgba(167, 139, 250, 0.04));
  box-shadow: 0 4px 16px rgba(167, 139, 250, 0.1);
}

.mp-qf-verified:hover,
.mp-qf-verified.active {
  border-color: rgba(59, 130, 246, 0.4);
  color: var(--blue, #3b82f6);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(59, 130, 246, 0.04));
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.1);
}

/* ================================================================
   8c. VIEW TOGGLE (grid / list)
   ================================================================ */

.mp-view-toggle {
  display: flex;
  gap: 2px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 3px;
}

.mp-view-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: none;
  border: none;
  border-radius: 6px;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.25s var(--ease-out-expo);
}

.mp-view-btn:hover {
  color: var(--text2);
  background: rgba(255, 255, 255, 0.04);
}

.mp-view-btn.active {
  background: var(--bg3);
  color: var(--accent);
  box-shadow: var(--shadow-sm);
}

/* List view layout */
.mp-grid.mp-list-view {
  grid-template-columns: 1fr;
  gap: 12px;
}

.mp-list-view .mp-card {
  flex-direction: row;
  height: auto;
}

.mp-list-view .mp-card-head {
  width: 140px;
  min-height: 120px;
  height: auto;
  flex-shrink: 0;
  border-radius: var(--radius) 0 0 var(--radius);
}

.mp-list-view .mp-card-head.has-photo {
  height: auto;
}

.mp-list-view .mp-card-body {
  padding: 16px 20px;
}

/* ================================================================
   8d. VERIFIED BADGE (on card photo)
   ================================================================ */

.mp-verified-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  z-index: 2;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #00b8ae);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 212, 200, 0.35);
  border: 2px solid rgba(6, 8, 13, 0.6);
}

.mp-card-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.mp-card-name-row .mp-card-name {
  margin-bottom: 0;
  flex: 1;
  min-width: 0;
}

.mp-card-verified-inline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #00b8ae);
  color: var(--bg);
  font-size: 10px;
  font-weight: 800;
  flex-shrink: 0;
  box-shadow: 0 1px 4px rgba(0, 212, 200, 0.3);
}

/* ================================================================
   8e. IMPROVED FAVORITE BUTTON
   ================================================================ */

.mp-fav-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.25s var(--ease-spring);
  touch-action: manipulation;
}

.mp-fav-btn:hover {
  color: #f87171;
  transform: scale(1.15);
  background: rgba(248, 113, 113, 0.15);
  border-color: rgba(248, 113, 113, 0.2);
}

.mp-fav-btn.active {
  color: #f87171;
  background: rgba(248, 113, 113, 0.15);
  border-color: rgba(248, 113, 113, 0.25);
}

.mp-fav-btn.active svg {
  fill: #f87171;
}

@keyframes favPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.35); }
  100% { transform: scale(1); }
}

.mp-fav-btn.fav-pop {
  animation: favPop 0.35s var(--ease-spring);
}

/* ================================================================
   8f. PHOTO HOVER ZOOM
   ================================================================ */

.mp-card-head.has-photo {
  overflow: hidden;
}

.mp-card-head.has-photo::before {
  transition: transform 0.5s var(--ease-out-expo);
}

.mp-card:hover .mp-card-head.has-photo {
  background-size: 110%;
}

/* ================================================================
   8g. AI SEARCH INDICATORS
   ================================================================ */

.mp-ai-badge svg {
  flex-shrink: 0;
}

.mp-results-ai-hint {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 12px;
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  animation: fadeUp 0.4s var(--ease-out-expo);
}

.mp-results-ai-hint svg {
  flex-shrink: 0;
}

/* ================================================================
   8h. SKELETON CARDS (improved shimmer)
   ================================================================ */

.mp-card--skeleton {
  pointer-events: none;
}

.mp-skeleton-block {
  background: linear-gradient(90deg, var(--bg3) 25%, var(--surface) 50%, var(--bg3) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
}

.mp-skeleton-line {
  border-radius: 6px;
  background: linear-gradient(90deg, var(--bg3) 25%, var(--surface) 50%, var(--bg3) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
}

.mp-skeleton-line--title {
  width: 70%;
  height: 16px;
  margin-bottom: 8px;
}

.mp-skeleton-line--addr {
  width: 50%;
  height: 12px;
  margin-bottom: 14px;
}

.mp-skeleton-line--meta {
  width: 35%;
  height: 12px;
}

/* ================================================================
   9. BUSINESS DETAIL PAGE
   ================================================================ */

.biz-page {
  background: var(--bg);
  min-height: 100vh;
  font-family: var(--font-body);
}

/* ── biz hero ── */
.biz-hero {
  position: relative;
  padding: 100px 0 0;
  overflow: hidden;
}

.biz-hero > .container {
  position: relative;
  z-index: 2;
}

/* Card panel */
.biz-hero-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px 32px;
  animation: fadeUp 0.5s var(--ease-out-expo) both;
}

/* Top row: icon + title + actions */
.biz-hero-top {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}

.biz-hero-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: rgba(0, 212, 200, 0.08);
  border: 1px solid rgba(0, 212, 200, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

.biz-hero-icon svg {
  width: 32px;
  height: 32px;
}

.biz-hero-title {
  flex: 1;
  min-width: 0;
}

.biz-hero-name {
  font-family: var(--font-heading);
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
  margin: 0 0 2px;
  letter-spacing: -0.02em;
}

.biz-hero-addr {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  line-height: 1.4;
}

.biz-hero-addr svg {
  flex-shrink: 0;
  width: 13px;
  height: 13px;
  color: var(--muted);
  opacity: 0.7;
}

/* Actions — right side */
.biz-hero-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
}

.biz-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9px;
  color: #7d8590;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  outline: none;
}

.biz-action-btn svg {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  opacity: 0.55;
  transition: opacity 0.2s;
}

.biz-action-btn:hover {
  border-color: rgba(0, 212, 200, 0.25);
  color: #c9d1d9;
  background: rgba(0, 212, 200, 0.05);
}

.biz-action-btn:hover svg {
  opacity: 0.9;
}

.biz-fav-btn.active {
  border-color: rgba(244, 63, 94, 0.3);
  color: #f43f5e;
  background: rgba(244, 63, 94, 0.08);
}

.biz-fav-btn.active svg {
  opacity: 1;
  fill: #f43f5e;
}

/* Bottom row: badges + meta inline */
.biz-hero-bottom {
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

.biz-hero-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.biz-hero-badges .mp-badge {
  position: static;
  font-size: 11px;
  padding: 4px 10px;
}

.biz-hero-sep {
  width: 1px;
  height: 16px;
  background: var(--border);
  flex-shrink: 0;
}

.biz-hero-rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  color: var(--gold);
}

.biz-hero-rating svg {
  flex-shrink: 0;
}

.biz-hero-hours {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  color: var(--text2);
  padding: 3px 10px;
  border-radius: 6px;
}

.biz-hero-hours.open {
  color: var(--green);
  background: rgba(16, 185, 129, 0.08);
}

.biz-hero-hours.closed {
  color: var(--rose);
  background: rgba(244, 63, 94, 0.08);
}

.biz-hero-phone {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.2s;
}

.biz-hero-phone:hover {
  opacity: 0.8;
}

/* [FIX #3] biz tabs — scrollable on mobile with overflow-x: auto */
.biz-tabs-wrap {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(6, 8, 13, 0.85);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.biz-tabs {
  display: flex;
  gap: 2px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.biz-tabs::-webkit-scrollbar {
  display: none;
}

.biz-tab {
  padding: 16px 24px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--text2);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: color 0.3s, border-color 0.3s, background 0.3s;
  white-space: nowrap;
  position: relative;
  flex-shrink: 0;
}

.biz-tab::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s var(--ease-out-expo), left 0.3s var(--ease-out-expo);
  border-radius: 2px 2px 0 0;
}

.biz-tab:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
}

.biz-tab:hover::after {
  width: 40%;
  left: 30%;
}

/* [FIX #3] Active tab — accent bottom border indicator */
.biz-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.biz-tab.active::after {
  width: 100%;
  left: 0;
}

/* ---------- biz content area ---------- */
.biz-content {
  padding-top: 44px;
  padding-bottom: 80px;
}

.biz-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 36px;
  align-items: start;
}

.biz-main {
  min-width: 0;
}

.biz-tab-content {
  display: none;
}

.biz-tab-content.active {
  display: block;
  animation: fadeUp 0.4s var(--ease-out-expo);
}

/* ---------- sections ---------- */
.biz-section {
  margin-bottom: 36px;
}

.biz-section-title {
  font-family: var(--font-heading);
  font-size: 21px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 16px;
  letter-spacing: -0.01em;
  position: relative;
  padding-left: 16px;
}

.biz-section-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--accent), rgba(0, 212, 200, 0.3));
}

.biz-desc {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.85;
  color: var(--text2);
}

/* features */
.biz-features {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 28px;
}

.biz-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--text2);
  transition: background 0.3s var(--ease-out-expo), color 0.3s var(--ease-out-expo), border-color 0.3s var(--ease-out-expo), box-shadow 0.3s var(--ease-out-expo);
}

.biz-feature:hover {
  border-color: rgba(0, 212, 200, 0.3);
  background: rgba(0, 212, 200, 0.03);
  color: var(--text);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.biz-feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
}

.biz-feature-icon svg {
  width: 20px;
  height: 20px;
}

/* tags inside biz */
.biz-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

/* ---------- biz empty ---------- */
.biz-empty {
  text-align: center;
  padding: 56px 24px;
  color: var(--text2);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
}

.biz-empty svg,
.biz-empty i {
  font-size: 40px;
  width: 40px;
  height: 40px;
  margin-bottom: 12px;
  opacity: 0.4;
  display: block;
  margin-left: auto;
  margin-right: auto;
  color: var(--muted);
}

/* ================================================================
   10. MENU — Filter Pills + Card Grid
   ================================================================ */

/* ── Category filter pills (horizontal scroll) ── */
.menu-filters {
  display: flex;
  gap: 8px;
  padding-bottom: 18px;
  margin-bottom: 18px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  border-bottom: 1px solid var(--border);
}

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

.menu-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg2);
  color: var(--text2);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}

.menu-filter-pill:hover {
  border-color: rgba(0, 212, 200, 0.3);
  color: var(--text);
  background: rgba(0, 212, 200, 0.04);
}

.menu-filter-pill.active {
  background: rgba(0, 212, 200, 0.1);
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 12px rgba(0, 212, 200, 0.1);
}

.menu-filter-icon {
  font-size: 15px;
  line-height: 1;
}

.menu-filter-count {
  font-size: 10.5px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 7px;
  border-radius: 100px;
  min-width: 18px;
  text-align: center;
}

.menu-filter-pill.active .menu-filter-count {
  background: rgba(0, 212, 200, 0.15);
}

.menu-filter-pill.disabled {
  opacity: 0.3;
  cursor: default;
  border-style: dashed;
}

.menu-filter-pill.disabled:hover {
  border-color: var(--border);
  color: var(--text2);
  background: var(--bg2);
}

/* ── Menu items grid ── */
.menu-items-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

/* ── Single menu card ── */
.menu-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s, opacity 0.2s;
}

.menu-card:hover {
  border-color: rgba(0, 212, 200, 0.25);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.menu-card-img {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--bg3);
}

.menu-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease-out-expo);
}

.menu-card:hover .menu-card-img img {
  transform: scale(1.05);
}

.menu-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(0,212,200,0.04), rgba(0,212,200,0.015));
  color: var(--muted);
}

.menu-card-placeholder svg {
  opacity: 0.35;
}

.menu-card-body {
  padding: 10px 12px 12px;
}

.menu-card-name {
  font-family: var(--font-heading);
  font-size: 13.5px;
  font-weight: 650;
  color: var(--text);
  margin-bottom: 2px;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.menu-card-desc {
  font-family: var(--font-body);
  font-size: 11.5px;
  color: var(--text2);
  line-height: 1.35;
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.menu-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.menu-card-price {
  font-family: var(--font-mono);
  font-size: 14.5px;
  font-weight: 800;
  color: var(--accent);
  white-space: nowrap;
  letter-spacing: -0.02em;
}

/* ── Add to cart button ── */
.menu-add-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  background: transparent;
  color: var(--accent);
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.25s var(--ease-out-expo), border-color 0.25s var(--ease-out-expo), box-shadow 0.25s var(--ease-out-expo);
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.menu-add-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--accent);
  transform: scale(0);
  transition: transform 0.3s var(--ease-out-expo);
}

.menu-add-btn:hover {
  color: var(--bg);
  border-color: var(--accent-hover);
  box-shadow: 0 0 14px rgba(0, 212, 200, 0.25);
}

.menu-add-btn:hover::before {
  transform: scale(1);
}

.menu-add-btn span,
.menu-add-btn svg {
  position: relative;
  z-index: 1;
}

.menu-add-btn.added {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.25);
}

.menu-add-btn.added::before {
  background: var(--green);
  transform: scale(1);
}

/* ================================================================
   10b. MENU — TOOLBAR (search + price filter)
   ================================================================ */
.menu-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.menu-search-wrap {
  position: relative;
  flex: 1;
  min-width: 180px;
}

.menu-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text3);
  pointer-events: none;
}

.menu-search-input {
  width: 100%;
  padding: 9px 12px 9px 36px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg2);
  color: var(--text1);
  font-size: 13.5px;
  font-family: var(--font-body);
  outline: none;
  transition: all 0.25s;
}

.menu-search-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 212, 200, 0.08);
}

.menu-search-input::placeholder {
  color: var(--text3);
}

.menu-price-filter {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.menu-price-btn {
  padding: 7px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg2);
  color: var(--text2);
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.menu-price-btn:hover {
  border-color: rgba(0, 212, 200, 0.3);
  color: var(--text1);
}

.menu-price-btn.active {
  border-color: var(--accent);
  background: rgba(0, 212, 200, 0.08);
  color: var(--accent);
}

.menu-no-results {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 48px 20px;
  color: var(--text3);
  text-align: center;
}

.menu-no-results svg { opacity: 0.4; }
.menu-no-results p { font-size: 14px; font-weight: 500; }

/* Card entrance animation (staggered) */
@keyframes menuCardIn {
  from { opacity: 0; transform: translateY(12px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.menu-food-card,
.menu-grid-card,
.menu-list-item {
  animation: menuCardIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.menu-food-card:nth-child(1), .menu-grid-card:nth-child(1), .menu-list-item:nth-child(1) { animation-delay: 0s; }
.menu-food-card:nth-child(2), .menu-grid-card:nth-child(2), .menu-list-item:nth-child(2) { animation-delay: 0.04s; }
.menu-food-card:nth-child(3), .menu-grid-card:nth-child(3), .menu-list-item:nth-child(3) { animation-delay: 0.08s; }
.menu-food-card:nth-child(4), .menu-grid-card:nth-child(4), .menu-list-item:nth-child(4) { animation-delay: 0.12s; }
.menu-food-card:nth-child(5), .menu-grid-card:nth-child(5), .menu-list-item:nth-child(5) { animation-delay: 0.16s; }
.menu-food-card:nth-child(6), .menu-grid-card:nth-child(6), .menu-list-item:nth-child(6) { animation-delay: 0.20s; }
.menu-food-card:nth-child(n+7), .menu-grid-card:nth-child(n+7), .menu-list-item:nth-child(n+7) { animation-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  .menu-food-card, .menu-grid-card, .menu-list-item { animation: none; }
}

/* ================================================================
   10c. MENU — FOOD LAYOUT (restaurant, cafe, bakery)
   Cards with big photo on top, content below
   ================================================================ */
.menu-food-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.menu-food-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.3s var(--ease-out-expo), box-shadow 0.3s var(--ease-out-expo);
}

.menu-food-card:hover {
  border-color: rgba(0, 212, 200, 0.25);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15);
}

.menu-food-img {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg3);
}

.menu-food-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.menu-food-card:hover .menu-food-img img {
  transform: scale(1.06);
}

.menu-food-body {
  padding: 12px 14px 14px;
}

.menu-food-name {
  font-family: var(--font-heading);
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text1);
  margin-bottom: 4px;
  line-height: 1.3;
}

.menu-food-desc {
  font-size: 12px;
  color: var(--text2);
  line-height: 1.5;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.menu-food-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.menu-food-price {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.02em;
}

/* ================================================================
   10d. MENU — GRID LAYOUT (fashion, fitness)
   Square photos with overlay name + price
   ================================================================ */
.menu-visual-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.menu-grid-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: border-color 0.3s var(--ease-out-expo), box-shadow 0.3s var(--ease-out-expo);
  cursor: pointer;
}

.menu-grid-card:hover {
  border-color: rgba(0, 212, 200, 0.3);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
}

.menu-grid-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--bg3);
}

.menu-grid-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.menu-grid-card:hover .menu-grid-img img {
  transform: scale(1.08);
}

.menu-grid-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 28px 12px 12px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.menu-grid-name {
  font-family: var(--font-heading);
  font-size: 13.5px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.menu-grid-price {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 800;
  color: var(--accent);
}

.menu-grid-add {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  opacity: 0;
  transform: scale(0.85);
  transition: all 0.25s;
}

.menu-grid-card:hover .menu-grid-add {
  opacity: 1;
  transform: scale(1);
}

.menu-grid-add:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #000;
}

/* ================================================================
   10e. MENU — LIST LAYOUT (auto, beauty, barber, services, etc.)
   Compact rows with thumbnail on the left
   ================================================================ */
.menu-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.menu-list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: all 0.25s;
}

.menu-list-item:hover {
  border-color: rgba(0, 212, 200, 0.2);
  background: rgba(0, 212, 200, 0.02);
}

.menu-list-thumb {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg3);
}

.menu-list-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.menu-list-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text3);
  opacity: 0.4;
}

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

.menu-list-name {
  font-family: var(--font-heading);
  font-size: 13.5px;
  font-weight: 650;
  color: var(--text1);
  line-height: 1.3;
  margin-bottom: 2px;
}

.menu-list-desc {
  font-size: 11.5px;
  color: var(--text2);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.menu-list-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.menu-list-price {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 800;
  color: var(--accent);
  white-space: nowrap;
}

/* ================================================================
   11. REVIEWS
   ================================================================ */

.review-summary {
  display: flex;
  gap: 32px;
  align-items: center;
  padding: 28px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
}

.review-summary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 212, 200, 0.2), transparent);
}

.review-summary-avg {
  text-align: center;
  min-width: 110px;
}

.review-avg-num {
  display: block;
  font-family: var(--font-heading);
  font-size: 56px;
  font-weight: 900;
  color: var(--text);
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -0.03em;
}

.review-avg-stars {
  display: flex;
  justify-content: center;
  gap: 3px;
  margin-bottom: 8px;
}

/* [FIX #5] Star colors — filled = gold, empty = border */
.review-avg-stars .star {
  color: var(--border);
  font-size: 18px;
  transition: color 0.2s;
}

.review-avg-stars .star.filled {
  color: var(--gold);
  text-shadow: 0 0 8px rgba(245, 158, 11, 0.3);
}

.review-avg-count {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text2);
}

/* [FIX #5] write review — match auth page style */
.review-write {
  padding: 28px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
}

.review-write::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(0, 212, 200, 0.1), transparent 60%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.review-write h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 18px;
  letter-spacing: -0.01em;
}

.review-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.star-input {
  display: flex;
  align-items: center;
  gap: 12px;
}

.star-input-label {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.star-input-stars {
  display: flex;
  gap: 4px;
}

.star-btn {
  background: none;
  border: none;
  font-size: 28px;
  color: var(--border);
  cursor: pointer;
  transition: color 0.2s, transform 0.2s var(--ease-spring);
  padding: 2px;
  line-height: 1;
}

.star-btn:hover {
  transform: scale(1.2);
  color: var(--gold);
}

.star-btn.active {
  color: var(--gold);
  text-shadow: 0 0 10px rgba(245, 158, 11, 0.35);
}

/* Review textarea — matching auth page form inputs */
.review-textarea {
  width: 100%;
  min-height: 110px;
  padding: 12px 16px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.65;
  resize: vertical;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.review-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 212, 200, 0.08);
}

.review-textarea::placeholder {
  color: var(--muted);
}

/* reviews list */
.reviews-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* [FIX #5] Review cards — avatar circle, star colors, date styling */
.review-card {
  padding: 24px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.3s, box-shadow 0.3s;
  position: relative;
}

.review-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 212, 200, 0.05), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.review-card:hover {
  border-color: rgba(0, 212, 200, 0.15);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.review-card:hover::before {
  opacity: 1;
}

.review-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.review-card-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* [FIX #5] Proper avatar circle */
.review-card-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #009e95);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--bg);
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 212, 200, 0.2);
  overflow: hidden;
}

.review-card-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.review-card-name {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

/* [FIX #5] Date styling */
.review-card-date {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
  letter-spacing: 0.01em;
}

.review-card-stars {
  display: flex;
  gap: 2px;
}

/* [FIX #5] Star colors — filled = gold */
.review-card-stars .star {
  font-size: 16px;
  color: var(--border);
}

.review-card-stars .star.filled {
  color: var(--gold);
  text-shadow: 0 0 6px rgba(245, 158, 11, 0.2);
}

.review-card-text {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.75;
  color: var(--text2);
}

/* ================================================================
   12. BOOKING
   ================================================================ */

.booking-section {
  padding: 8px 0;
}

.booking-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* [FIX #6] Booking grid — 2 columns on desktop, 1 on mobile */
.booking-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

/* [FIX #6] Form groups — matching auth page style */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.form-group label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text2);
  letter-spacing: 0.02em;
}

.form-group label svg {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  opacity: 0.6;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  line-height: 1.5;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
  border-color: rgba(42, 49, 66, 0.9);
  background: var(--bg3);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 212, 200, 0.08);
  background: var(--bg2);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--muted);
  font-family: var(--font-body);
}

.form-group select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238b949e' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
  cursor: pointer;
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

/* Full-width form field spans both columns */
.form-group.full-width {
  grid-column: 1 / -1;
}

.btn-g {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 30px;
  background: var(--accent);
  border: none;
  border-radius: var(--radius-sm);
  color: var(--bg);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: box-shadow 0.25s ease;
}

.btn-g:hover {
  box-shadow: 0 0 18px rgba(0, 212, 200, 0.5), 0 0 40px rgba(0, 212, 200, 0.2);
}

.btn-lg {
  padding: 15px 36px;
  font-size: 15px;
}

.booking-submit {
  align-self: flex-start;
}

/* ================================================================
   13. SIDEBAR
   ================================================================ */

.biz-sidebar {
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: sticky;
  top: 80px;
}

/* [FIX #3] Sidebar card — glass card treatment */
.biz-sidebar-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 26px;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.biz-sidebar-card:hover {
  border-color: rgba(0, 212, 200, 0.15);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 0 20px rgba(0, 212, 200, 0.04);
}

.biz-sidebar-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(0, 212, 200, 0.12) 0%,
    transparent 40%,
    transparent 60%,
    rgba(167, 139, 250, 0.08) 100%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.biz-sidebar-card h3 {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 18px;
  letter-spacing: -0.01em;
}

.biz-info-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* [FIX #3] biz-info-item — flex layout with SVG icon alignment */
.biz-info-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(42, 49, 66, 0.5);
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text2);
  line-height: 1.5;
  transition: color 0.2s;
}

.biz-info-item:last-child {
  border-bottom: none;
}

.biz-info-item:hover {
  color: var(--text);
}

.biz-info-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  opacity: 0.7;
  margin-top: 1px;
}

.biz-info-icon svg {
  display: block;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.biz-info-text {
  flex: 1;
  min-width: 0;
}

.biz-info-item a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}

.biz-info-item a:hover {
  color: var(--accent-hover);
}

.biz-map {
  width: 100%;
  min-height: 190px;
  border-radius: 12px;
  background: var(--bg3);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.biz-map::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, transparent 70%, rgba(6, 8, 13, 0.4) 100%);
  pointer-events: none;
  z-index: 1;
}

.biz-map iframe {
  width: 100%;
  height: 210px;
  border: none;
  border-radius: 12px;
}

.biz-map-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.25s, gap 0.25s;
  margin-top: 10px;
}

.biz-map-link:hover {
  color: var(--accent-hover);
  gap: 10px;
}

/* ================================================================
   14. CHAT WIDGET
   ================================================================ */

/* --- floating action button --- */
.chat-float {
  position: fixed;
  bottom: 24px;
  right: 96px;
  z-index: 900;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #009e95);
  border: none;
  box-shadow:
    0 6px 28px rgba(0, 212, 200, 0.35),
    0 0 0 0 rgba(0, 212, 200, 0.2);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.35s var(--ease-spring), box-shadow 0.35s;
}

.chat-float:hover {
  transform: scale(1.1);
  box-shadow:
    0 10px 36px rgba(0, 212, 200, 0.45),
    0 0 0 4px rgba(0, 212, 200, 0.1);
}

.chat-float:active {
  transform: scale(0.95);
}

.chat-float-icon {
  font-size: 26px;
  line-height: 1;
  filter: brightness(1.15);
  transition: transform 0.3s;
}

.chat-float:hover .chat-float-icon {
  transform: rotate(-10deg) scale(1.05);
}

/* pulse ring */
.chat-float-pulse {
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  animation: pulse 2.5s ease-out infinite;
  pointer-events: none;
}

/* --- chat window --- */
.chat-window {
  position: fixed;
  bottom: 100px;
  right: 24px;
  z-index: 901;
  width: 410px;
  max-width: calc(100vw - 48px);
  height: 550px;
  max-height: calc(100vh - 140px);
  display: none;
  flex-direction: column;
  border-radius: 22px;
  overflow: hidden;

  /* glassmorphism */
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.55),
    0 0 1px rgba(0, 212, 200, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);

  transform: scale(0) translateY(24px);
  transform-origin: bottom right;
  transition: transform 0.4s var(--ease-out-expo), opacity 0.35s;
  opacity: 0;
}

.chat-window.open,
.chat-window.active {
  display: flex;
  transform: scale(1) translateY(0);
  opacity: 1;
}

/* header */
.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  background: linear-gradient(135deg, rgba(0, 212, 200, 0.1), rgba(0, 212, 200, 0.02));
  border-bottom: 1px solid rgba(42, 49, 66, 0.5);
  position: relative;
}

.chat-header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 212, 200, 0.15), transparent);
}

.chat-header-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-header-icon {
  font-size: 30px;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.chat-header-title {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: 0.02em;
}

.chat-header-sub {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 6px;
}

.chat-header-sub::before {
  content: '';
  width: 7px;
  height: 7px;
  background: var(--green);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.5);
  animation: pulse 3s ease-out infinite;
}

.chat-close {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(42, 49, 66, 0.5);
  color: var(--text2);
  font-size: 18px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.25s;
}

.chat-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  border-color: var(--border);
  transform: rotate(90deg);
}

/* messages area */
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.chat-messages::-webkit-scrollbar {
  width: 5px;
}

.chat-messages::-webkit-scrollbar-track {
  background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 10px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
  background: var(--muted);
}

.chat-msg {
  max-width: 85%;
  padding: 13px 18px;
  border-radius: 18px;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
  animation: scaleIn 0.25s var(--ease-out-expo);
  word-break: break-word;
  position: relative;
}

.chat-msg-user {
  background: linear-gradient(135deg, var(--accent), #00b8ae);
  color: var(--bg);
  font-weight: 500;
  border-bottom-right-radius: 6px;
  align-self: flex-end;
  box-shadow: 0 4px 16px rgba(0, 212, 200, 0.2);
}

.chat-msg-bot {
  background: var(--surface);
  color: var(--text2);
  border-bottom-left-radius: 6px;
  align-self: flex-start;
  border: 1px solid rgba(42, 49, 66, 0.6);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.chat-msg-bot strong {
  color: var(--text);
  font-weight: 700;
}

.chat-msg-bot a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.chat-msg-bot a:hover {
  color: var(--accent-hover);
}

/* typing indicator */
.chat-typing {
  display: flex;
  gap: 5px;
  padding: 13px 18px;
  background: var(--surface);
  border: 1px solid rgba(42, 49, 66, 0.6);
  border-radius: 18px;
  border-bottom-left-radius: 6px;
  align-self: flex-start;
  width: fit-content;
}

.chat-typing .dot {
  width: 7px;
  height: 7px;
  background: var(--text2);
  border-radius: 50%;
  animation: dotBounce 1.4s infinite;
}

.chat-typing .dot:nth-child(2) {
  animation-delay: 0.2s;
}

.chat-typing .dot:nth-child(3) {
  animation-delay: 0.4s;
}

/* quick buttons */
.chat-quick-btns {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  padding: 10px 20px 6px;
}

.chat-quick-btn {
  padding: 8px 16px;
  background: rgba(0, 212, 200, 0.07);
  border: 1px solid rgba(0, 212, 200, 0.18);
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  cursor: pointer;
  transition: all 0.25s var(--ease-out-expo);
  white-space: nowrap;
}

.chat-quick-btn:hover {
  background: rgba(0, 212, 200, 0.15);
  border-color: var(--accent);
  box-shadow: 0 2px 8px rgba(0, 212, 200, 0.15);
}

/* input bar */
.chat-input-bar {
  display: flex;
  gap: 10px;
  padding: 14px 18px;
  border-top: 1px solid rgba(42, 49, 66, 0.5);
  background: rgba(0, 0, 0, 0.18);
}

.chat-input {
  flex: 1;
  padding: 11px 16px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  resize: none;
  min-height: 42px;
  max-height: 100px;
  line-height: 1.5;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.chat-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 212, 200, 0.08);
}

.chat-input::placeholder {
  color: var(--muted);
  font-family: var(--font-body);
}

.chat-send {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--accent);
  border: none;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: box-shadow 0.25s ease;
  flex-shrink: 0;
  color: var(--bg);
  font-size: 16px;
}

.chat-send:hover {
  box-shadow: 0 0 14px rgba(0, 212, 200, 0.5), 0 0 30px rgba(0, 212, 200, 0.2);
}

.chat-send:active {
  box-shadow: 0 0 6px rgba(0, 212, 200, 0.3);
}

.chat-send:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.chat-send svg {
  width: 18px;
  height: 18px;
  fill: var(--bg);
  position: relative;
  z-index: 1;
}

/* ================================================================
   TELEGRAM FLOAT
   ================================================================ */

.tg-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 900;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2AABEE, #229ED9);
  box-shadow: 0 6px 24px rgba(42, 171, 238, 0.35);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: box-shadow 0.35s var(--ease-spring), border-color 0.35s var(--ease-spring);
  text-decoration: none;
}

.tg-float:hover {
  transform: scale(1.1);
  box-shadow:
    0 10px 36px rgba(42, 171, 238, 0.45),
    0 0 0 4px rgba(42, 171, 238, 0.1);
}

.tg-float:active {
  transform: scale(0.95);
}

.tg-float svg {
  width: 26px;
  height: 26px;
  fill: #fff;
  transition: transform 0.3s;
}

.tg-float:hover svg {
  transform: rotate(-8deg) scale(1.05);
}

/* ================================================================
   15. RESPONSIVE
   ================================================================ */

@media (max-width: 1024px) {
  .biz-grid {
    grid-template-columns: 1fr 300px;
    gap: 24px;
  }

  .biz-features {
    grid-template-columns: repeat(auto-fill, minmax(125px, 1fr));
  }

  .mp-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
  }
}

/* [FIX #7] Mobile responsive — 768px breakpoint */
@media (max-width: 768px) {
  /* hero */
  .mp-hero {
    padding: 80px 0 28px;
  }

  .mp-hero-badge {
    font-size: 11px;
    padding: 4px 12px;
    margin-bottom: 12px;
  }

  .mp-hero-title {
    font-size: 26px;
    margin-bottom: 8px;
  }

  .mp-hero-sub {
    font-size: 13px;
    margin-bottom: 0;
  }

  .mp-hero-search-wrap {
    margin-top: 16px;
  }

  .mp-hero-search {
    padding: 12px 16px 12px 42px;
    font-size: 14px;
    border-radius: 12px;
  }

  .mp-hero-search-icon {
    left: 14px;
    width: 16px;
    height: 16px;
  }

  .mp-search-kbd {
    display: none;
  }

  .mp-quick-filters {
    margin-top: 14px;
    gap: 6px;
  }

  .mp-quick-btn {
    padding: 6px 12px;
    font-size: 11px;
  }

  .mp-hero-stats {
    gap: 12px;
    margin-top: 14px;
    padding: 6px 16px;
  }

  .mp-hero-stat svg {
    width: 12px;
    height: 12px;
  }

  .mp-hero-stat {
    gap: 5px;
  }

  .mp-hero-stat-value {
    font-size: 15px;
  }

  .mp-hero-stat-label {
    font-size: 9px;
  }

  .mp-hero-stat-divider {
    height: 16px;
  }

  .mp-hero-orb-1 {
    width: 250px;
    height: 250px;
  }

  .mp-hero-orb-2 {
    width: 200px;
    height: 200px;
  }

  .mp-hero-orb-3 {
    display: none;
  }

  /* quick filters — scroll on mobile */
  .mp-quick-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    scrollbar-width: none;
    padding-bottom: 4px;
    margin-top: 20px;
    gap: 8px;
  }
  .mp-quick-filters::-webkit-scrollbar { display: none; }
  .mp-quick-btn { flex-shrink: 0; padding: 8px 16px; font-size: 12px; }

  /* toolbar */
  .mp-toolbar {
    gap: 10px;
    padding: 10px 14px;
    border-radius: 12px;
  }

  .mp-toolbar-left {
    flex: 1;
    min-width: 0;
  }

  .mp-sort {
    flex: 1;
    min-width: 0;
  }

  /* list view — stack on mobile */
  .mp-list-view .mp-card {
    flex-direction: column;
  }
  .mp-list-view .mp-card-head {
    width: 100%;
    min-height: auto;
    height: 130px;
    border-radius: var(--radius) var(--radius) 0 0;
  }

  /* [FIX #9] categories — horizontal scroll on mobile */
  .mp-cat-btn {
    padding: 8px 14px;
    font-size: 12px;
  }

  /* [FIX #7] grid — 1 column */
  .mp-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .biz-hero {
    padding: 80px 0 0;
  }

  .biz-hero-card {
    padding: 20px 18px;
    border-radius: 14px;
  }

  .biz-hero-top {
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 16px;
  }

  .biz-hero-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
  }

  .biz-hero-icon svg {
    width: 26px;
    height: 26px;
  }

  .biz-hero-name {
    font-size: clamp(20px, 5vw, 28px);
  }

  .biz-hero-actions {
    width: 100%;
    order: 3;
  }

  .biz-hero-actions .biz-action-btn {
    flex: 1;
    justify-content: center;
  }

  /* [FIX #7] biz grid — 1 column (sidebar below main) */
  .biz-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .biz-sidebar {
    position: static;
  }

  /* [FIX #7] biz tabs — horizontal scroll */
  .biz-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .biz-tabs::-webkit-scrollbar {
    display: none;
  }

  .biz-tab {
    flex-shrink: 0;
  }

  /* biz features */
  .biz-features {
    grid-template-columns: repeat(2, 1fr);
  }

  /* [FIX #7] booking — 1 column */
  .booking-grid {
    grid-template-columns: 1fr;
  }

  .booking-submit {
    align-self: stretch;
  }

  .booking-submit .btn-g {
    width: 100%;
  }

  /* review summary */
  .review-summary {
    flex-direction: column;
    text-align: center;
    gap: 18px;
    padding: 24px;
  }

  /* section titles */
  .biz-section-title {
    font-size: 18px;
  }

  /* chat */
  .chat-window {
    right: 8px;
    left: 8px;
    bottom: 100px;
    width: auto;
    max-width: none;
    height: calc(100vh - 140px);
    transform-origin: bottom center;
    border-radius: 18px;
  }

  .chat-float {
    bottom: 20px;
    right: 84px;
    width: 56px;
    height: 56px;
  }

  .tg-float {
    bottom: 20px;
    right: 20px;
    width: 54px;
    height: 54px;
  }

  /* sidebar cards */
  .biz-sidebar-card {
    padding: 22px;
  }

  /* Menu grid: 2 columns on tablet */
  .menu-items-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .menu-visual-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .menu-toolbar { flex-wrap: wrap; }
  .menu-price-filter { width: 100%; overflow-x: auto; }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .mp-hero {
    padding: 74px 0 20px;
  }

  .mp-hero-badge {
    font-size: 10px;
    padding: 3px 10px;
    gap: 5px;
    margin-bottom: 10px;
  }

  .mp-hero-badge svg {
    width: 10px;
    height: 10px;
  }

  .mp-hero-badge-dot {
    width: 4px;
    height: 4px;
  }

  .mp-hero-title {
    font-size: 22px;
    letter-spacing: -0.02em;
    margin-bottom: 6px;
  }

  .mp-hero-sub {
    font-size: 12px;
    margin-bottom: 0;
  }

  /* Hide orbs on mobile — save GPU/battery */
  .mp-hero-orbs { display: none; }

  .mp-hero-search-wrap {
    margin-top: 12px;
  }

  .mp-hero-search {
    padding: 10px 14px 10px 38px;
    font-size: 13px;
    border-radius: 10px;
  }

  .mp-hero-search-icon {
    left: 12px;
    width: 14px;
    height: 14px;
  }

  .mp-quick-filters {
    margin-top: 10px;
    gap: 5px;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
  }
  .mp-quick-filters::-webkit-scrollbar { display: none; }

  .mp-quick-btn {
    padding: 5px 10px;
    font-size: 10px;
    gap: 4px;
    flex-shrink: 0;
  }

  .mp-hero-stats {
    gap: 10px;
    margin-top: 10px;
    padding: 5px 12px;
    border-radius: 14px;
  }

  /* Toolbar — single row on mobile */
  .mp-toolbar {
    gap: 8px;
    padding: 8px 10px;
    border-radius: 10px;
    flex-wrap: nowrap;
  }
  .mp-toolbar-left {
    flex-wrap: nowrap;
    gap: 8px;
    overflow: hidden;
  }
  .mp-sort {
    font-size: 12px;
    padding: 8px 30px 8px 10px;
    flex-shrink: 0;
  }
  .mp-results-info {
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .mp-view-toggle { padding: 2px; flex-shrink: 0; }
  .mp-view-btn { width: 34px; height: 34px; border-radius: 6px; }
  .mp-view-btn svg { width: 14px; height: 14px; }

  /* Category chips — smaller on 480px */
  .mp-cats { gap: 6px; }
  .mp-cat-btn {
    padding: 6px 12px;
    font-size: 11px;
    border-radius: 10px;
  }
  .mp-cat-count { font-size: 9px; padding: 1px 5px; min-width: 18px; }

  .mp-hero-stat svg {
    width: 11px;
    height: 11px;
  }

  .mp-hero-stat {
    gap: 4px;
  }

  .mp-hero-stat-value {
    font-size: 14px;
  }

  .mp-hero-stat-label {
    font-size: 8px;
  }

  .mp-hero-stat-divider {
    height: 14px;
  }

  .mp-section {
    padding: 16px 0 48px;
  }

  .mp-search-bar {
    margin-bottom: 14px;
  }

  .mp-toolbar {
    margin-bottom: 16px;
  }

  .mp-card-head {
    height: 100px;
  }

  .mp-card-head.has-photo {
    height: 200px;
  }

  .mp-card-icon svg {
    width: 36px;
    height: 36px;
  }

  .mp-card-body {
    padding: 16px 18px 18px;
  }

  .mp-card-name {
    font-size: 15px;
  }

  .biz-hero {
    padding: 70px 0 0;
  }

  .biz-hero-card {
    padding: 16px 14px;
    border-radius: 12px;
  }

  .biz-hero-name {
    font-size: 20px;
  }

  .biz-hero-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }

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

  .biz-tabs {
    gap: 0;
  }

  .biz-tab {
    padding: 13px 16px;
    font-size: 13px;
  }

  .biz-content {
    padding-top: 28px;
    padding-bottom: 56px;
  }

  .biz-sidebar-card {
    padding: 18px;
  }

  .biz-section-title {
    font-size: 17px;
    padding-left: 14px;
  }

  .biz-features {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .biz-feature {
    padding: 12px 14px;
    font-size: 12px;
    gap: 8px;
  }

  .review-avg-num {
    font-size: 42px;
  }

  .review-card {
    padding: 18px;
  }

  .review-write {
    padding: 20px;
  }

  .star-btn {
    font-size: 24px;
  }

  /* Menu grid: 2 columns on mobile */
  .menu-items-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .menu-card-body {
    padding: 8px 10px 10px;
  }

  .menu-card-name {
    font-size: 13px;
  }

  .menu-card-desc {
    font-size: 11.5px;
    margin-bottom: 5px;
  }

  .menu-card-price {
    font-size: 13px;
  }

  /* Food layout: 1 column on mobile */
  .menu-food-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .menu-food-name { font-size: 13.5px; }
  .menu-food-price { font-size: 13.5px; }

  /* Grid layout: 2 columns on mobile */
  .menu-visual-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .menu-grid-name { font-size: 12px; }
  .menu-grid-price { font-size: 12.5px; }
  .menu-grid-add { opacity: 1; transform: scale(1); }

  /* List layout: compact on mobile */
  .menu-list-thumb { width: 44px; height: 44px; }
  .menu-list-name { font-size: 12.5px; }
  .menu-list-price { font-size: 12.5px; }

  /* Toolbar: stack on mobile */
  .menu-toolbar { flex-direction: column; gap: 8px; }
  .menu-price-filter { overflow-x: auto; padding-bottom: 2px; }
  .menu-price-btn { padding: 6px 10px; font-size: 11px; }

  .menu-add-btn {
    width: 34px;
    height: 34px;
    font-size: 16px;
  }

  .menu-filter-pill {
    padding: 6px 12px;
    font-size: 12px;
  }

  .chat-float {
    width: 52px;
    height: 52px;
    right: 74px;
    bottom: 16px;
  }

  .chat-float-icon {
    font-size: 22px;
  }

  .tg-float {
    width: 50px;
    height: 50px;
    bottom: 16px;
    right: 16px;
  }

  .tg-float svg {
    width: 22px;
    height: 22px;
  }

  .chat-window {
    bottom: 80px;
    border-radius: 16px;
    height: calc(100vh - 110px);
  }

  .chat-header {
    padding: 14px 16px;
  }

  .chat-messages {
    padding: 14px;
    gap: 10px;
  }

  .chat-input-bar {
    padding: 10px 12px;
  }

  .chat-quick-btns {
    padding: 8px 14px 4px;
  }

  .chat-quick-btn {
    padding: 6px 12px;
    font-size: 11px;
  }

  .mp-pagination {
    gap: 6px;
    margin-top: 32px;
  }

  .mp-page-btn,
  .mp-pagination button,
  .mp-pagination a {
    min-width: 40px;
    height: 40px;
    font-size: 13px;
    padding: 0 10px;
  }
}


/* ================================================================
   PHOTO SLIDER — Business detail page gallery
   ================================================================ */
.biz-gallery {
  margin-bottom: 8px;
}

/* Slider container */
.biz-slider {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #0d1117;
}

/* Track (horizontal scroll) */
.biz-slider-track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
  -webkit-user-select: none;
  user-select: none;
}

/* Each slide */
.biz-slide {
  min-width: 100%;
  aspect-ratio: 16 / 9;
  position: relative;
  overflow: hidden;
  background: #0d1117;
}
.biz-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  -webkit-user-drag: none;
}

/* Photo attribution overlay */
.photo-attribution {
  position: absolute;
  bottom: 6px;
  left: 8px;
  z-index: 4;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(6, 8, 13, 0.6);
  backdrop-filter: blur(6px);
  color: rgba(230, 237, 243, 0.7);
  font-family: var(--font-body, 'Plus Jakarta Sans', sans-serif);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.01em;
  pointer-events: none;
  max-width: 70%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.photo-attribution a {
  color: rgba(0, 212, 200, 0.8);
  text-decoration: none;
  pointer-events: auto;
}
[data-theme="light"] .photo-attribution {
  background: rgba(255, 255, 255, 0.7);
  color: rgba(26, 29, 35, 0.7);
}

/* Navigation arrows */
.biz-slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(6, 8, 13, 0.55);
  backdrop-filter: blur(8px);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s;
  opacity: 0.7;
  pointer-events: auto;
}
.biz-slider:hover .biz-slider-btn {
  opacity: 1;
}
.biz-slider-btn:hover {
  background: rgba(0, 212, 200, 0.8);
  transform: translateY(-50%) scale(1.08);
}
.biz-slider-btn:active {
  transform: translateY(-50%) scale(0.95);
}
.biz-slider-prev { left: 12px; }
.biz-slider-next { right: 12px; }

/* Counter badge */
.biz-slider-counter {
  position: absolute;
  bottom: 14px;
  right: 14px;
  z-index: 3;
  padding: 5px 14px;
  border-radius: 100px;
  background: rgba(6, 8, 13, 0.6);
  backdrop-filter: blur(8px);
  color: #e6edf3;
  font-family: var(--font-body, 'Plus Jakarta Sans', sans-serif);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  pointer-events: none;
}

/* Thumbnails row */
.biz-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.08) transparent;
}
.biz-thumbs::-webkit-scrollbar { height: 4px; }
.biz-thumbs::-webkit-scrollbar-track { background: transparent; }
.biz-thumbs::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 4px; }

.biz-thumb {
  flex-shrink: 0;
  width: 72px;
  height: 50px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  background: #161b22;
  cursor: pointer;
  transition: all 0.25s;
  padding: 0;
  opacity: 0.5;
}
.biz-thumb:hover {
  opacity: 0.85;
  border-color: rgba(255,255,255,0.15);
}
.biz-thumb.active {
  opacity: 1;
  border-color: #00d4c8;
  box-shadow: 0 0 0 2px rgba(0, 212, 200, 0.25);
}
.biz-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  -webkit-user-drag: none;
}

/* Mobile */
@media (max-width: 768px) {
  .biz-slide {
    aspect-ratio: 4 / 3;
  }
  .biz-slider-btn {
    width: 40px;
    height: 40px;
    opacity: 1;
  }
  .biz-slider-prev { left: 8px; }
  .biz-slider-next { right: 8px; }
  .biz-slider-btn svg { width: 18px; height: 18px; }
  .biz-thumb {
    width: 56px;
    height: 40px;
  }
}


/* ================================================================
   LIGHT THEME — marketplace element overrides
   ================================================================ */

/* Card gradient overlays */
[data-theme="light"] .mp-card-head::after {
  background: linear-gradient(180deg, transparent 40%, rgba(255,255,255,0.7) 100%);
}
[data-theme="light"] .mp-card-head.has-photo::after {
  background: linear-gradient(180deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.75) 100%);
}
[data-theme="light"] .mp-card-icon {
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.15));
}

/* Business detail page */
[data-theme="light"] .biz-tabs-wrap {
  background: rgba(245, 247, 250, 0.9);
}
[data-theme="light"] .biz-tab:hover {
  background: rgba(0, 0, 0, 0.03);
}

/* Hardcoded border overrides */
[data-theme="light"] .biz-detail-card,
[data-theme="light"] .biz-sidebar-card {
  border-color: var(--border);
}

/* Slider buttons */
[data-theme="light"] .biz-slider-btn {
  background: rgba(255, 255, 255, 0.9);
  border-color: var(--border);
  color: var(--text);
}
[data-theme="light"] .biz-slider-btn:hover {
  background: #fff;
}

/* Thumb gallery */
[data-theme="light"] .biz-thumb {
  background: #f0f2f5;
}
[data-theme="light"] .biz-thumb:hover {
  border-color: rgba(0, 0, 0, 0.15);
}

/* ─── Recommendations ─────────────────────────────────── */
.biz-recommendations {
  padding: 48px 0;
}
.biz-recommendations .biz-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.recs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 24px;
}
.rec-card {
  display: flex;
  flex-direction: column;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.25s ease;
}
.rec-card:hover {
  box-shadow: 0 0 18px rgba(0, 212, 200, 0.2), 0 0 40px rgba(0, 212, 200, 0.08);
}
.rec-card-img {
  height: 140px;
  background: var(--bg3);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.rec-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.rec-card-icon {
  font-size: 40px;
}
.rec-card-body {
  padding: 14px;
}
.rec-card-name {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 6px;
  color: var(--text);
}
.rec-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 4px;
}
.rec-card-rating {
  color: var(--accent);
  font-weight: 600;
}
.rec-card-tags {
  font-size: 11px;
  color: var(--muted);
  margin: 4px 0 0;
}

@media (max-width: 768px) {
  .recs-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .rec-card-img {
    height: 100px;
  }
}
@media (max-width: 480px) {
  .recs-grid {
    grid-template-columns: 1fr;
  }
  .biz-recommendations .biz-container {
    padding: 0 16px;
  }
}

/* ── QR Modal ── */
.qr-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  animation: fadeIn 0.2s ease;
}
.qr-modal {
  background: var(--bg2, #0d1117);
  border: 1px solid var(--bd, #2a3142);
  border-radius: 16px;
  padding: 32px;
  text-align: center;
  max-width: 360px;
  width: 90%;
  position: relative;
}
.qr-modal h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}
.qr-modal-close {
  position: absolute;
  top: 12px; right: 16px;
  background: none; border: none;
  color: var(--t3, #8b949e);
  font-size: 24px; cursor: pointer;
  line-height: 1;
}
.qr-modal-close:hover { color: var(--t1, #e6edf3); }
.qr-modal-img {
  margin: 0 auto 20px;
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  display: inline-block;
}
.qr-modal-img img {
  width: 220px; height: 220px;
  display: block;
}
.qr-modal-actions {
  display: flex; gap: 10px;
  justify-content: center;
}
[data-theme="light"] .qr-modal {
  background: #fff;
  border-color: #d0d5dd;
}
[data-theme="light"] .qr-modal-img {
  background: #f0f2f5;
}

/* ─── Business Branches ─── */
.biz-branches {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.biz-branch-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg3, #161b22);
  border: 1px solid var(--border, #2a3142);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.biz-branch-item:hover {
  border-color: rgba(0, 212, 200, 0.3);
  background: var(--bg4, #1c2333);
}
.biz-branch-active {
  border-color: var(--accent, #00d4c8) !important;
  background: rgba(0, 212, 200, 0.06);
}
.biz-branch-marker {
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 2px;
}
.biz-branch-info {
  flex: 1;
  min-width: 0;
}
.biz-branch-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary, #e6edf3);
  margin-bottom: 2px;
}
.biz-branch-addr {
  font-size: 12px;
  color: var(--text-secondary, #8b949e);
}
.biz-branch-phone, .biz-branch-hours {
  font-size: 11px;
  color: var(--text-tertiary, #64748b);
  margin-top: 2px;
}
[data-theme="light"] .biz-branch-item {
  background: #f8f9fc;
  border-color: #e2e6ed;
}
[data-theme="light"] .biz-branch-item:hover {
  background: #eef0f5;
  border-color: rgba(0, 180, 170, 0.3);
}
[data-theme="light"] .biz-branch-active {
  background: rgba(0, 180, 170, 0.05);
}
@media (max-width: 480px) {
  .biz-branch-item { padding: 10px 12px; gap: 8px; }
  .biz-branch-name { font-size: 12px; }
}

/* ═══════ Autocomplete Dropdown ═══════ */
.mp-autocomplete {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 6px;
  background: var(--card-bg, rgba(22, 27, 34, 0.95));
  backdrop-filter: blur(20px) saturate(1.3);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35), 0 4px 16px rgba(0, 0, 0, 0.2);
  max-height: 360px;
  overflow-y: auto;
  z-index: 100;
  padding: 6px;
  animation: fadeUp 0.2s var(--ease-out-expo);
}
.mp-ac-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}
.mp-ac-item:hover,
.mp-ac-item.active {
  background: rgba(0, 212, 200, 0.08);
}
.mp-ac-item.active {
  outline: 1px solid rgba(0, 212, 200, 0.2);
}
.mp-ac-icon {
  font-size: 16px;
  flex-shrink: 0;
  width: 24px;
  text-align: center;
}
.mp-ac-text {
  flex: 1;
  font-size: 13px;
  color: var(--text);
  line-height: 1.4;
}
.mp-ac-text b {
  color: var(--accent);
  font-weight: 600;
}
.mp-ac-meta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}

/* "Did you mean?" */
.mp-did-you-mean {
  padding: 10px 16px;
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--muted);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  animation: fadeUp 0.3s var(--ease-out-expo);
}
.mp-dym-link {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.2s;
}
.mp-dym-link:hover {
  opacity: 0.8;
  text-decoration: underline;
}

/* Light theme */
[data-theme="light"] .mp-autocomplete {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1), 0 4px 16px rgba(0, 0, 0, 0.06);
}
[data-theme="light"] .mp-ac-item:hover,
[data-theme="light"] .mp-ac-item.active {
  background: rgba(0, 180, 170, 0.06);
}
[data-theme="light"] .mp-did-you-mean {
  background: rgba(0, 180, 170, 0.04);
  border-color: rgba(0, 180, 170, 0.15);
}

/* Autocomplete scrollbar */
.mp-autocomplete::-webkit-scrollbar { width: 6px; }
.mp-autocomplete::-webkit-scrollbar-track { background: transparent; }
.mp-autocomplete::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}
.mp-autocomplete::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
  .mp-autocomplete { max-height: 280px; }
  .mp-ac-item { padding: 8px 12px; gap: 8px; }
  .mp-ac-text { font-size: 12px; }
}
