/* ============================================================
   PakBiz Design System — Premium UI v2.0
   ============================================================ */

/* ── Google Fonts ──────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ── CSS Custom Properties ─────────────────────────────────── */
:root {
  /* Brand */
  --brand:          #6366f1;
  --brand-dark:     #4f46e5;
  --brand-light:    #818cf8;
  --brand-50:       #eef2ff;
  --brand-100:      #e0e7ff;

  /* Semantic */
  --success:        #10b981;
  --warning:        #f59e0b;
  --danger:         #ef4444;
  --info:           #06b6d4;

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

  /* Background */
  --bg-primary:     #f8fafc;
  --bg-card:        #ffffff;
  --bg-elevated:    #ffffff;

  /* Text */
  --text-primary:   #0f172a;
  --text-secondary: #475569;
  --text-muted:     #94a3b8;
  --text-inverse:   #ffffff;

  /* Borders */
  --border:         #e2e8f0;
  --border-focus:   #6366f1;

  /* Shadows */
  --shadow-xs:   0 1px 2px rgba(0,0,0,.04);
  --shadow-sm:   0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md:   0 4px 6px -1px rgba(0,0,0,.07), 0 2px 4px -1px rgba(0,0,0,.04);
  --shadow-lg:   0 10px 15px -3px rgba(0,0,0,.07), 0 4px 6px -2px rgba(0,0,0,.04);
  --shadow-xl:   0 20px 25px -5px rgba(0,0,0,.10), 0 10px 10px -5px rgba(0,0,0,.04);
  --shadow-2xl:  0 25px 50px -12px rgba(0,0,0,.18);
  --shadow-brand: 0 4px 14px rgba(99,102,241,.35);
  --shadow-brand-lg: 0 8px 25px rgba(99,102,241,.40);

  /* Radius */
  --radius-sm:   6px;
  --radius-md:   10px;
  --radius-lg:   14px;
  --radius-xl:   18px;
  --radius-2xl:  24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast:   150ms cubic-bezier(.4,0,.2,1);
  --transition-base:   200ms cubic-bezier(.4,0,.2,1);
  --transition-slow:   300ms cubic-bezier(.4,0,.2,1);
  --transition-spring: 400ms cubic-bezier(.34,1.56,.64,1);

  /* Spacing */
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px;
  --space-5: 20px; --space-6: 24px; --space-8: 32px; --space-10: 40px;
  --space-12: 48px; --space-16: 64px;
}

/* ── Base Reset ────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Typography ────────────────────────────────────────────── */
h1,h2,h3,h4,h5,h6 { font-weight: 700; line-height: 1.25; color: var(--text-primary); }
.display-1 { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 800; letter-spacing: -.03em; }
.display-2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; letter-spacing: -.025em; }
.section-title { font-size: 1.5rem; font-weight: 700; letter-spacing: -.02em; }
.label-sm { font-size: .75rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }

/* ── Scrollbar ─────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: var(--radius-full); }
::-webkit-scrollbar-thumb:hover { background: var(--gray-400); }

/* ============================================================
   ANIMATIONS
   ============================================================ */

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(.94); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-20px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position:  200% 0; }
}
@keyframes pulse-ring {
  0%   { box-shadow: 0 0 0 0 rgba(99,102,241,.35); }
  70%  { box-shadow: 0 0 0 10px rgba(99,102,241,0); }
  100% { box-shadow: 0 0 0 0  rgba(99,102,241,0); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}
@keyframes gradient-x {
  0%, 100% { background-position: 0% 50%; }
  50%       { background-position: 100% 50%; }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Animation Utilities */
.animate-fadeInUp  { animation: fadeInUp  .5s var(--transition-slow) both; }
.animate-fadeIn    { animation: fadeIn    .4s var(--transition-base) both; }
.animate-scaleIn   { animation: scaleIn   .3s var(--transition-spring) both; }
.animate-slideLeft { animation: slideInLeft .4s var(--transition-slow) both; }

/* Stagger children */
.stagger > *:nth-child(1) { animation-delay: .0s; }
.stagger > *:nth-child(2) { animation-delay: .06s; }
.stagger > *:nth-child(3) { animation-delay: .12s; }
.stagger > *:nth-child(4) { animation-delay: .18s; }
.stagger > *:nth-child(5) { animation-delay: .24s; }
.stagger > *:nth-child(6) { animation-delay: .30s; }
.stagger > *:nth-child(7) { animation-delay: .36s; }
.stagger > *:nth-child(8) { animation-delay: .42s; }

/* ============================================================
   SKELETON LOADERS
   ============================================================ */

.skeleton {
  background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-200) 50%, var(--gray-100) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-md);
}
.skeleton-text   { height: 14px; border-radius: var(--radius-full); }
.skeleton-title  { height: 20px; border-radius: var(--radius-full); width: 60%; }
.skeleton-img    { height: 180px; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.skeleton-avatar { width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; }

/* ============================================================
   NAVBAR
   ============================================================ */

.pb-navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid rgba(226,232,240,.7);
  transition: box-shadow var(--transition-base);
}
.pb-navbar.scrolled { box-shadow: var(--shadow-md); }

.pb-brand {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -.03em;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none !important;
}
.pb-brand span { -webkit-text-fill-color: var(--warning); }

.pb-nav-link {
  color: var(--text-secondary) !important;
  font-weight: 500;
  font-size: .9rem;
  padding: .5rem .75rem !important;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  text-decoration: none;
}
.pb-nav-link:hover { color: var(--brand) !important; background: var(--brand-50); }

/* ============================================================
   BUTTONS
   ============================================================ */

.btn-brand {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #fff !important;
  border: none;
  font-weight: 600;
  padding: .6rem 1.4rem;
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
  box-shadow: var(--shadow-brand);
  letter-spacing: .01em;
}
.btn-brand:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-brand-lg);
  filter: brightness(1.08);
}
.btn-brand:active { transform: translateY(0); }

.btn-brand-outline {
  color: var(--brand) !important;
  border: 2px solid var(--brand);
  background: transparent;
  font-weight: 600;
  padding: .55rem 1.35rem;
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
}
.btn-brand-outline:hover {
  background: var(--brand-50);
  box-shadow: var(--shadow-brand);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  font-weight: 500;
  border-radius: var(--radius-full);
  padding: .55rem 1.2rem;
  transition: all var(--transition-fast);
}
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-50); }

.btn-icon {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: .9rem;
  transition: all var(--transition-fast);
}
.btn-icon:hover { border-color: var(--brand); color: var(--brand); box-shadow: var(--shadow-sm); }

/* ============================================================
   CARDS
   ============================================================ */

.pb-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all var(--transition-slow);
}
.pb-card:hover {
  box-shadow: var(--shadow-xl);
  border-color: transparent;
  transform: translateY(-4px);
}

/* Business Card */
.business-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all var(--transition-slow);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}
.business-card:hover {
  box-shadow: var(--shadow-xl);
  border-color: transparent;
  transform: translateY(-5px);
}

.business-card__media {
  position: relative;
  height: 180px;
  overflow: hidden;
  flex-shrink: 0;
}
.business-card__img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s cubic-bezier(.25,.46,.45,.94);
}
.business-card:hover .business-card__img { transform: scale(1.06); }

.business-card__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(15,23,42,.6) 0%, transparent 55%);
  opacity: 0;
  transition: opacity var(--transition-slow);
}
.business-card:hover .business-card__overlay { opacity: 1; }

.business-card__media-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--gray-100), var(--gray-200));
  display: flex; align-items: center; justify-content: center;
}

.business-card__badge {
  position: absolute; top: 12px;
  font-size: .7rem; font-weight: 700; letter-spacing: .04em;
  padding: .25rem .6rem;
  border-radius: var(--radius-full);
}
.business-card__badge--featured {
  left: 12px;
  background: rgba(245,158,11,.95);
  color: #fff;
  backdrop-filter: blur(4px);
}
.business-card__badge--verified {
  right: 12px;
  background: rgba(16,185,129,.95);
  color: #fff;
  backdrop-filter: blur(4px);
}

.business-card__rating {
  position: absolute; bottom: 12px; right: 12px;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-full);
  padding: .2rem .6rem;
  font-size: .8rem; font-weight: 700;
  color: var(--text-primary);
  display: flex; align-items: center; gap: 4px;
  opacity: 0;
  transform: translateY(4px);
  transition: all var(--transition-base);
}
.business-card:hover .business-card__rating { opacity: 1; transform: translateY(0); }
.business-card__rating .star { color: var(--warning); }

.business-card__body { padding: 1rem 1.1rem 1.2rem; flex: 1; }

.business-card__logo {
  width: 38px; height: 38px;
  border-radius: var(--radius-md);
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--border);
}

.business-card__name {
  font-size: .95rem; font-weight: 700;
  color: var(--text-primary);
  text-decoration: none !important;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.business-card__name:hover { color: var(--brand); }

.business-card__category {
  font-size: .75rem; color: var(--text-muted); font-weight: 500;
}

.business-card__stars { color: var(--warning); font-size: .8rem; }
.business-card__stars .empty { color: var(--gray-300); }

.business-card__location {
  font-size: .8rem; color: var(--text-muted);
  display: flex; align-items: center; gap: 4px;
  margin-top: .4rem;
}

/* ============================================================
   HERO SECTION
   ============================================================ */

.pb-hero {
  position: relative;
  background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
  overflow: hidden;
  padding: 6rem 0 5rem;
}
.pb-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% -20%, rgba(99,102,241,.4) 0%, transparent 70%);
}
.pb-hero::after {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%236366f1' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.pb-hero__content { position: relative; z-index: 1; }

.pb-hero__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(99,102,241,.2);
  border: 1px solid rgba(99,102,241,.3);
  color: var(--brand-light);
  padding: .35rem 1rem;
  border-radius: var(--radius-full);
  font-size: .8rem; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.pb-hero__title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -.03em;
  color: #fff;
  margin-bottom: 1rem;
}
.pb-hero__title .gradient-text {
  background: linear-gradient(135deg, #a5b4fc 0%, #f0abfc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pb-hero__subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,.65);
  font-weight: 400;
  max-width: 520px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
}

/* Search Bar */
.pb-search-bar {
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius-2xl);
  padding: .5rem .5rem .5rem 1.5rem;
  display: flex;
  align-items: center;
  gap: .75rem;
  max-width: 680px;
  margin: 0 auto;
  transition: all var(--transition-base);
}
.pb-search-bar:focus-within {
  background: rgba(255,255,255,.12);
  border-color: rgba(99,102,241,.6);
  box-shadow: 0 0 0 4px rgba(99,102,241,.2);
}

.pb-search-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: #fff;
  font-size: 1rem;
  font-family: inherit;
  font-weight: 500;
}
.pb-search-input::placeholder { color: rgba(255,255,255,.4); }

.pb-search-divider {
  width: 1px; height: 24px;
  background: rgba(255,255,255,.2);
  flex-shrink: 0;
}

.pb-search-city {
  background: none;
  border: none;
  outline: none;
  color: rgba(255,255,255,.8);
  font-family: inherit;
  font-size: .9rem;
  font-weight: 500;
  cursor: pointer;
  min-width: 120px;
}
.pb-search-city option { color: var(--text-primary); background: #fff; }

.pb-search-btn {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
  border: none;
  border-radius: var(--radius-xl);
  padding: .7rem 1.5rem;
  font-weight: 700;
  font-family: inherit;
  font-size: .9rem;
  cursor: pointer;
  display: flex; align-items: center; gap: 8px;
  flex-shrink: 0;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-brand);
}
.pb-search-btn:hover { filter: brightness(1.1); transform: translateY(-1px); box-shadow: var(--shadow-brand-lg); }

/* Suggestions dropdown */
.pb-suggestions {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0;
  background: #fff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-2xl);
  border: 1px solid var(--border);
  overflow: hidden;
  z-index: 100;
  animation: scaleIn .15s var(--transition-spring) both;
}
.pb-suggestion-item {
  display: flex; align-items: center; gap: 12px;
  padding: .75rem 1rem;
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  font-size: .9rem;
  transition: background var(--transition-fast);
  cursor: pointer;
}
.pb-suggestion-item:hover { background: var(--brand-50); color: var(--brand); }
.pb-suggestion-icon {
  width: 32px; height: 32px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
  background: var(--gray-100);
}

/* Trending pills */
.pb-hero__trends {
  display: flex; flex-wrap: wrap; gap: 8px;
  justify-content: center;
  margin-top: 2rem;
}
.pb-trend-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: .35rem .85rem;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius-full);
  color: rgba(255,255,255,.8);
  font-size: .8rem; font-weight: 500;
  text-decoration: none;
  transition: all var(--transition-fast);
  cursor: pointer;
}
.pb-trend-pill:hover {
  background: rgba(99,102,241,.3);
  border-color: var(--brand);
  color: #fff;
  transform: translateY(-1px);
}

/* ============================================================
   SECTION HEADERS
   ============================================================ */

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}
.section-header__title {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -.025em;
  color: var(--text-primary);
}
.section-header__badge {
  background: var(--brand-50);
  color: var(--brand);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: .25rem .7rem;
  border-radius: var(--radius-full);
  margin-left: .75rem;
}
.section-header__link {
  font-size: .85rem;
  font-weight: 600;
  color: var(--brand);
  text-decoration: none;
  display: flex; align-items: center; gap: 4px;
  transition: gap var(--transition-fast);
}
.section-header__link:hover { gap: 8px; }

/* ============================================================
   CATEGORY CARDS
   ============================================================ */

.category-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.25rem .75rem;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-slow);
  text-decoration: none;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.category-card:hover {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-100), var(--shadow-lg);
  transform: translateY(-4px);
  background: var(--brand-50);
}
.category-card__icon {
  font-size: 2rem;
  width: 56px; height: 56px;
  background: var(--gray-100);
  border-radius: var(--radius-xl);
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition-slow);
}
.category-card:hover .category-card__icon { background: white; transform: scale(1.1); }
.category-card__name {
  font-size: .82rem; font-weight: 700;
  color: var(--text-primary); line-height: 1.2;
}
.category-card__count {
  font-size: .72rem; color: var(--text-muted); font-weight: 500;
}

/* ============================================================
   CITY CARDS
   ============================================================ */

.city-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--transition-slow);
}
.city-card:hover { transform: scale(1.02); }
.city-card::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(15,23,42,.75) 0%, rgba(15,23,42,.1) 60%);
  z-index: 1;
  transition: background var(--transition-slow);
}
.city-card:hover::before { background: linear-gradient(to top, rgba(99,102,241,.7) 0%, rgba(15,23,42,.15) 60%); }
.city-card__bg {
  position: absolute; inset: 0;
  object-fit: cover; width: 100%; height: 100%;
  transition: transform .5s ease;
}
.city-card:hover .city-card__bg { transform: scale(1.05); }
.city-card__body {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 1rem;
  z-index: 2;
}
.city-card__name { font-size: 1rem; font-weight: 800; color: #fff; }
.city-card__count { font-size: .75rem; color: rgba(255,255,255,.7); font-weight: 500; }

/* ============================================================
   SEARCH PAGE
   ============================================================ */

.search-header {
  background: linear-gradient(135deg, var(--gray-800) 0%, var(--gray-900) 100%);
  padding: 1.5rem 0;
}
.search-filter-bar {
  display: flex; gap: .75rem; align-items: center; flex-wrap: wrap;
}
.search-input-group {
  flex: 1; min-width: 200px;
  position: relative;
}
.search-input-icon {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  color: var(--text-muted); pointer-events: none; font-size: .9rem;
}
.search-input {
  width: 100%;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius-lg);
  color: #fff;
  padding: .65rem .75rem .65rem 2.25rem;
  font-family: inherit;
  font-size: .9rem;
  outline: none;
  transition: all var(--transition-base);
}
.search-input::placeholder { color: rgba(255,255,255,.4); }
.search-input:focus { border-color: var(--brand); background: rgba(255,255,255,.15); }

.search-select {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius-lg);
  color: rgba(255,255,255,.8);
  padding: .65rem 1rem;
  font-family: inherit;
  font-size: .9rem;
  outline: none;
  cursor: pointer;
  transition: border-color var(--transition-base);
  min-width: 140px;
}
.search-select:focus { border-color: var(--brand); }
.search-select option { background: white; color: var(--text-primary); }

/* Filter sidebar */
.filter-sidebar { position: sticky; top: 80px; }
.filter-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}
.filter-title {
  font-size: .8rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--text-muted);
  margin-bottom: .75rem;
}
.filter-option {
  display: flex; align-items: center; gap: 8px;
  padding: .4rem .5rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background var(--transition-fast);
}
.filter-option:hover { background: var(--gray-50); }
.filter-option input { accent-color: var(--brand); }
.filter-star { color: var(--warning); font-size: .85rem; }

/* Business list item */
.biz-list-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.25rem;
  display: flex; gap: 1.1rem; align-items: flex-start;
  transition: all var(--transition-slow);
  cursor: pointer;
  text-decoration: none;
  position: relative;
}
.biz-list-item:hover {
  box-shadow: var(--shadow-xl);
  border-color: transparent;
  transform: translateX(3px);
}
.biz-list-item__img {
  width: 88px; height: 88px;
  border-radius: var(--radius-lg);
  object-fit: cover; flex-shrink: 0;
}
.biz-list-item__img-placeholder {
  width: 88px; height: 88px;
  border-radius: var(--radius-lg);
  background: var(--gray-100);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* ============================================================
   BUSINESS DETAIL
   ============================================================ */

.biz-hero {
  position: relative;
  height: 340px; overflow: hidden;
}
.biz-hero__img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.biz-hero:hover .biz-hero__img { transform: scale(1.03); }
.biz-hero__gradient {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(15,23,42,.7) 100%);
}
.biz-hero__content {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 1.5rem 2rem;
  color: #fff;
}

.biz-info-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.biz-info-card.sticky { position: sticky; top: 80px; }

.biz-tab {
  display: flex; border-bottom: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  overflow: hidden;
}
.biz-tab__item {
  flex: 1; padding: .85rem;
  text-align: center; cursor: pointer;
  font-size: .85rem; font-weight: 600;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  transition: all var(--transition-fast);
}
.biz-tab__item.active {
  color: var(--brand);
  border-color: var(--brand);
  background: var(--brand-50);
}
.biz-tab__item:hover { color: var(--brand); background: var(--gray-50); }

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 4px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  height: 300px;
}
.gallery-grid__main {
  grid-row: 1 / 3;
  overflow: hidden;
  position: relative;
}
.gallery-grid__main img, .gallery-grid__thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
  cursor: pointer;
}
.gallery-grid__main:hover img, .gallery-grid__thumb:hover img { transform: scale(1.04); }
.gallery-grid__thumb { overflow: hidden; position: relative; }
.gallery-grid__more {
  position: absolute; inset: 0;
  background: rgba(15,23,42,.65);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 1rem;
  cursor: pointer;
}

/* ============================================================
   REVIEW COMPONENTS
   ============================================================ */

.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.25rem;
  transition: box-shadow var(--transition-base);
}
.review-card:hover { box-shadow: var(--shadow-md); }

.review-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--border);
}

.star-rating { display: inline-flex; gap: 2px; }
.star-rating .filled  { color: var(--warning); }
.star-rating .empty   { color: var(--gray-300); }

.review-owner-reply {
  margin-top: .75rem;
  background: var(--brand-50);
  border-left: 3px solid var(--brand);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  padding: .75rem 1rem;
}

.rating-breakdown { display: flex; flex-direction: column; gap: 6px; }
.rating-bar {
  display: flex; align-items: center; gap: 10px;
  font-size: .8rem;
}
.rating-bar__track {
  flex: 1; height: 6px;
  background: var(--gray-200);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.rating-bar__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--warning), #fb923c);
  border-radius: var(--radius-full);
  transition: width .8s cubic-bezier(.25,.46,.45,.94);
}

/* ============================================================
   BADGES
   ============================================================ */

.badge-verified {
  display: inline-flex; align-items: center; gap: 4px;
  background: linear-gradient(135deg, #059669, #10b981);
  color: #fff;
  padding: .2rem .6rem;
  border-radius: var(--radius-full);
  font-size: .7rem; font-weight: 700;
  letter-spacing: .04em;
}
.badge-featured {
  display: inline-flex; align-items: center; gap: 4px;
  background: linear-gradient(135deg, #d97706, #f59e0b);
  color: #fff;
  padding: .2rem .6rem;
  border-radius: var(--radius-full);
  font-size: .7rem; font-weight: 700;
}
.badge-open {
  background: rgba(16,185,129,.12);
  color: var(--success);
  border: 1px solid rgba(16,185,129,.3);
  padding: .2rem .65rem;
  border-radius: var(--radius-full);
  font-size: .75rem; font-weight: 700;
}
.badge-closed {
  background: rgba(239,68,68,.1);
  color: var(--danger);
  border: 1px solid rgba(239,68,68,.25);
  padding: .2rem .65rem;
  border-radius: var(--radius-full);
  font-size: .75rem; font-weight: 700;
}
.badge-pill {
  background: var(--gray-100);
  color: var(--text-secondary);
  border-radius: var(--radius-full);
  padding: .25rem .75rem;
  font-size: .78rem; font-weight: 600;
  border: 1px solid var(--border);
  transition: all var(--transition-fast);
  text-decoration: none;
}
.badge-pill:hover { background: var(--brand-50); color: var(--brand); border-color: var(--brand-light); }

/* ============================================================
   ADMIN / DASHBOARD SIDEBAR
   ============================================================ */

.pb-sidebar {
  width: 260px; flex-shrink: 0;
  background: var(--gray-900);
  min-height: 100vh;
  position: sticky; top: 0;
  height: 100vh; overflow-y: auto;
  display: flex; flex-direction: column;
  transition: width var(--transition-slow);
}

.pb-sidebar__brand {
  padding: 1.5rem 1.25rem 1rem;
  display: flex; align-items: center; gap: 10px;
}
.pb-sidebar__logo {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
  border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1rem; flex-shrink: 0;
}
.pb-sidebar__brand-name {
  font-size: 1.1rem; font-weight: 800;
  letter-spacing: -.03em; color: #fff;
}
.pb-sidebar__brand-sub {
  font-size: .7rem; color: var(--gray-500); font-weight: 500;
}

.pb-sidebar__section {
  padding: .75rem 1.25rem .25rem;
  font-size: .68rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--gray-600);
}

.pb-sidebar__nav { padding: .5rem .75rem; flex: 1; }

.pb-nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: .65rem .75rem;
  border-radius: var(--radius-lg);
  color: var(--gray-400);
  font-size: .875rem; font-weight: 500;
  text-decoration: none;
  transition: all var(--transition-fast);
  margin-bottom: 2px;
  position: relative;
}
.pb-nav-item:hover { background: rgba(255,255,255,.06); color: #fff; }
.pb-nav-item.active {
  background: linear-gradient(135deg, rgba(99,102,241,.25), rgba(129,140,248,.1));
  color: var(--brand-light);
  border: 1px solid rgba(99,102,241,.2);
}
.pb-nav-item.active::before {
  content: '';
  position: absolute; left: 0; top: 20%; bottom: 20%;
  width: 3px; background: var(--brand-light);
  border-radius: 0 3px 3px 0;
}
.pb-nav-item__icon {
  width: 32px; height: 32px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem;
  background: rgba(255,255,255,.06);
  flex-shrink: 0;
  transition: background var(--transition-fast);
}
.pb-nav-item:hover .pb-nav-item__icon { background: rgba(99,102,241,.2); color: var(--brand-light); }
.pb-nav-item.active .pb-nav-item__icon { background: rgba(99,102,241,.25); color: var(--brand-light); }

.pb-nav-item__badge {
  margin-left: auto;
  background: var(--danger);
  color: #fff;
  font-size: .65rem; font-weight: 800;
  padding: .1rem .45rem;
  border-radius: var(--radius-full);
  min-width: 18px; text-align: center;
}

.pb-sidebar__footer {
  padding: .75rem;
  border-top: 1px solid rgba(255,255,255,.06);
}

/* Dashboard content */
.pb-content {
  flex: 1; overflow-y: auto;
  min-height: 100vh;
}

.pb-topbar {
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 100;
}
.pb-page-title {
  font-size: 1.25rem; font-weight: 800;
  letter-spacing: -.025em; color: var(--text-primary);
}

/* Stat cards */
.stat-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 1.25rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: all var(--transition-slow);
}
.stat-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }

.stat-card--gradient-blue {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  border-color: transparent;
  color: #fff;
}
.stat-card--gradient-green {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border-color: transparent; color: #fff;
}
.stat-card--gradient-amber {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  border-color: transparent; color: #fff;
}
.stat-card--gradient-rose {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  border-color: transparent; color: #fff;
}

.stat-card__icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-xl);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  margin-bottom: .75rem;
}
.stat-card--gradient-blue .stat-card__icon,
.stat-card--gradient-green .stat-card__icon,
.stat-card--gradient-amber .stat-card__icon,
.stat-card--gradient-rose .stat-card__icon {
  background: rgba(255,255,255,.2);
  color: #fff;
}

.stat-card__value {
  font-size: 2rem; font-weight: 900;
  letter-spacing: -.04em; line-height: 1;
  margin-bottom: .25rem;
}
.stat-card__label { font-size: .8rem; font-weight: 600; opacity: .8; }
.stat-card__delta {
  position: absolute; top: 1rem; right: 1rem;
  font-size: .75rem; font-weight: 700;
  padding: .2rem .5rem;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,.2);
}

/* Table */
.pb-table {
  width: 100%; border-collapse: collapse;
}
.pb-table th {
  padding: .75rem 1rem;
  font-size: .75rem; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  background: var(--gray-50);
  white-space: nowrap;
}
.pb-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--gray-100);
  font-size: .875rem;
  vertical-align: middle;
}
.pb-table tr:last-child td { border-bottom: none; }
.pb-table tr:hover td { background: var(--gray-50); }

/* ============================================================
   FORMS
   ============================================================ */

.pb-input {
  width: 100%;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: .65rem 1rem;
  font-family: inherit;
  font-size: .9rem;
  color: var(--text-primary);
  outline: none;
  transition: all var(--transition-fast);
}
.pb-input:hover { border-color: var(--gray-400); }
.pb-input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(99,102,241,.12); }
.pb-input::placeholder { color: var(--text-muted); }
.pb-input.is-invalid { border-color: var(--danger); }

.pb-label {
  display: block;
  font-size: .8rem; font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: .4rem;
}

.pb-select {
  width: 100%;
  background: var(--bg-card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 12px center / 12px no-repeat;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: .65rem 2.25rem .65rem 1rem;
  font-family: inherit;
  font-size: .9rem;
  color: var(--text-primary);
  outline: none;
  appearance: none;
  transition: all var(--transition-fast);
  cursor: pointer;
}
.pb-select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(99,102,241,.12); }

/* Star picker */
.star-picker { display: flex; gap: 4px; }
.star-picker__star {
  font-size: 1.6rem;
  cursor: pointer;
  transition: transform var(--transition-fast), color var(--transition-fast);
  color: var(--gray-300);
  user-select: none;
  line-height: 1;
}
.star-picker__star.active { color: var(--warning); }
.star-picker__star:hover { transform: scale(1.2); }

/* ============================================================
   TAGS / CHIPS
   ============================================================ */

.tag-cloud { display: flex; flex-wrap: wrap; gap: 6px; }

/* ============================================================
   LOADING / SPINNER
   ============================================================ */

.pb-spinner {
  width: 20px; height: 20px;
  border: 2px solid rgba(99,102,241,.2);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin .6s linear infinite;
  display: inline-block;
}

/* Livewire loading overlay */
[wire\:loading] { display: none; }
[wire\:loading][wire\:loading] { display: inline-block; }

.livewire-loading {
  position: fixed; top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--brand-light));
  z-index: 9999;
  animation: progress-bar 1.5s ease-in-out infinite;
  transform-origin: left;
}
@keyframes progress-bar {
  0%   { transform: scaleX(0); opacity: 1; }
  80%  { transform: scaleX(.9); opacity: 1; }
  100% { transform: scaleX(1); opacity: 0; }
}

/* ============================================================
   MOBILE SIDEBAR
   ============================================================ */

.pb-sidebar-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 999;
  display: none;
}
.pb-sidebar-overlay.open { display: block; }

@media (max-width: 768px) {
  .pb-sidebar {
    position: fixed; left: -260px; top: 0; bottom: 0;
    z-index: 1000;
    transition: left var(--transition-slow);
  }
  .pb-sidebar.open { left: 0; }
  .pb-content { width: 100%; }
}

/* ============================================================
   ALERT / TOAST
   ============================================================ */

.pb-toast {
  position: fixed; bottom: 24px; right: 24px;
  background: var(--gray-900);
  color: #fff;
  padding: .85rem 1.25rem;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-2xl);
  font-size: .875rem; font-weight: 500;
  display: flex; align-items: center; gap: 10px;
  z-index: 9999;
  max-width: 360px;
  animation: fadeInUp .3s var(--transition-spring) both;
}
.pb-toast__icon { color: var(--success); flex-shrink: 0; }
.pb-toast--error .pb-toast__icon { color: var(--danger); }

/* ============================================================
   UTILITY OVERRIDES
   ============================================================ */

.text-brand    { color: var(--brand) !important; }
.text-muted-pb { color: var(--text-muted) !important; }
.bg-brand-soft { background: var(--brand-50) !important; }
.border-brand  { border-color: var(--brand) !important; }
.rounded-pb    { border-radius: var(--radius-xl) !important; }
.shadow-pb     { box-shadow: var(--shadow-md) !important; }

.divider {
  height: 1px; background: var(--border);
  margin: 1.25rem 0;
}

.page-container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

.truncate-2 {
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.truncate-1 {
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Opening hours highlight */
.hours-today { color: var(--brand); font-weight: 700; }

/* Pagination */
.pagination .page-link {
  border-radius: var(--radius-md) !important;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: .85rem;
  transition: all var(--transition-fast);
}
.pagination .page-link:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-50); }
.pagination .page-item.active .page-link {
  background: var(--brand); border-color: var(--brand);
  box-shadow: var(--shadow-brand);
}

/* Focus ring fix */
*:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
button:focus:not(:focus-visible), a:focus:not(:focus-visible) { outline: none; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: all .55s cubic-bezier(.25,.46,.45,.94); }
.reveal.visible { opacity: 1; transform: none; }
