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

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

@media (prefers-reduced-motion: reduce) {
  .business-card,
  .autocomplete-list.is-open,
  dialog.detail-modal,
  dialog.detail-modal::backdrop {
    animation: none !important;
    transition: none !important;
  }
}

:root {
  /* 2026 dark: deep space black */
  --bg: #05060a;
  --bg-elevated: #0d0f18;
  --surface: #12141f;
  --border: #23273a;
  --text: #f2f4fa;
  --text-muted: #9aa4b8;
  --primary: #6366f1;
  --primary-hover: #818cf8;
  --accent: #2dd4bf;
  --gradient: linear-gradient(135deg, #6366f1 0%, #2dd4bf 100%);
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-hover: 0 12px 32px rgba(99, 102, 241, 0.3);
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --container: 1100px;
  --header-bg: rgba(5, 6, 10, 0.75);
  --glass-bg: rgba(18, 20, 31, 0.55);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glow-primary: 0 0 0 1px rgba(99, 102, 241, 0.35), 0 0 24px rgba(99, 102, 241, 0.35), 0 0 48px rgba(45, 212, 191, 0.15);
  --glow-soft: 0 0 20px rgba(99, 102, 241, 0.18);
}

:root[data-theme="light"] {
  /* 2026 light: pure ceramic white */
  --bg: #fbfbfd;
  --bg-elevated: #f2f3f8;
  --surface: #ffffff;
  --border: #e2e5ee;
  --text: #14161f;
  --text-muted: #565f75;
  --primary: #4f46e5;
  --primary-hover: #6366f1;
  --accent: #0d9488;
  --gradient: linear-gradient(135deg, #4f46e5 0%, #0d9488 100%);
  --shadow: 0 8px 24px rgba(20, 24, 40, 0.07);
  --shadow-hover: 0 12px 32px rgba(79, 70, 229, 0.16);
  --header-bg: rgba(251, 251, 253, 0.75);
  --glass-bg: rgba(255, 255, 255, 0.55);
  --glass-border: rgba(20, 22, 31, 0.07);
  --glow-primary: 0 0 0 1px rgba(79, 70, 229, 0.25), 0 0 24px rgba(79, 70, 229, 0.2), 0 0 48px rgba(13, 148, 136, 0.12);
  --glow-soft: 0 0 20px rgba(79, 70, 229, 0.12);
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    --bg: #fbfbfd;
    --bg-elevated: #f2f3f8;
    --surface: #ffffff;
    --border: #e2e5ee;
    --text: #14161f;
    --text-muted: #565f75;
    --primary: #4f46e5;
    --primary-hover: #6366f1;
    --accent: #0d9488;
    --gradient: linear-gradient(135deg, #4f46e5 0%, #0d9488 100%);
    --shadow: 0 8px 24px rgba(20, 24, 40, 0.07);
    --shadow-hover: 0 12px 32px rgba(79, 70, 229, 0.16);
    --header-bg: rgba(251, 251, 253, 0.75);
    --glass-bg: rgba(255, 255, 255, 0.55);
    --glass-border: rgba(20, 22, 31, 0.07);
    --glow-primary: 0 0 0 1px rgba(79, 70, 229, 0.25), 0 0 24px rgba(79, 70, 229, 0.2), 0 0 48px rgba(13, 148, 136, 0.12);
    --glow-soft: 0 0 20px rgba(79, 70, 229, 0.12);
  }
}

body {
  transition: background-color 0.25s ease, color 0.25s ease;
}

* { box-sizing: border-box; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--primary);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 8px 0;
}

.skip-link:focus {
  left: 0;
}

.form-status {
  min-height: 1.5em;
  font-weight: 500;
}

.form-status.is-success {
  color: var(--accent, #2dd4bf);
}

.form-status.is-error {
  color: #f87171;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

h1, h2, h3, .logo {
  font-family: var(--font-heading);
  line-height: 1.15;
  margin: 0 0 0.5em;
}

p { color: var(--text-muted); margin: 0 0 1em; }

a { color: var(--accent); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header / nav */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
}

nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

nav.main-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

nav.main-nav a:hover,
nav.main-nav a:focus-visible {
  color: var(--text);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  padding: 0.5rem;
  cursor: pointer;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
  margin-left: 1rem;
}

.theme-toggle:hover {
  border-color: var(--primary);
  transform: rotate(15deg);
}

.theme-toggle svg {
  width: 1.1rem;
  height: 1.1rem;
  fill: currentColor;
}

.header-actions {
  display: flex;
  align-items: center;
}

/* Hero */
.hero {
  padding: 6rem 0 5rem;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .subtitle {
  font-size: 1.25rem;
  max-width: 640px;
  margin: 0 auto 2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Sections */
section {
  padding: 5rem 0;
}

section .section-heading {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 2.5rem;
  text-align: center;
}

/* About */
.about-content {
  display: flex;
  gap: 3rem;
  align-items: center;
  flex-wrap: wrap;
}

.about-content > * { flex: 1 1 320px; }

/* Projects grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: var(--shadow-hover), var(--glow-soft);
  border-color: var(--primary);
}

.card:focus-within {
  box-shadow: var(--shadow-hover), var(--glow-primary);
}

/* Bento grid */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(160px, auto);
  gap: 1.25rem;
}

.bento-grid > .card:nth-child(4n+1) { grid-column: span 2; grid-row: span 2; }
.bento-grid > .card:nth-child(4n+2) { grid-column: span 2; }
.bento-grid > .card:nth-child(4n+3) { grid-column: span 1; }
.bento-grid > .card:nth-child(4n+4) { grid-column: span 1; }

.card h3 { color: var(--text); }

.card a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  text-decoration: none;
}

/* Buttons */
.btn {
  background: var(--gradient);
  color: #fff;
  padding: 0.85rem 1.75rem;
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
  align-self: flex-start;
  display: inline-block;
  text-decoration: none;
}

.btn:hover {
  filter: brightness(1.1);
  box-shadow: var(--shadow-hover), var(--glow-primary);
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: none;
}

.btn.btn-secondary:hover {
  border-color: var(--primary);
  box-shadow: none;
  filter: none;
}

/* Focus visibility everywhere */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Contact form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 520px;
  margin: 0 auto;
}

.contact-form label {
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--primary);
}

/* Directory: search + filters */
.directory-controls {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.search-bar {
  position: relative;
  max-width: 480px;
  margin: 0 auto;
  width: 100%;
}

.search-bar input[type="search"] {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  padding: 0.85rem 1rem 0.85rem 2.75rem;
  font-family: var(--font-body);
  font-size: 1rem;
  box-shadow: var(--shadow);
}

.search-bar input[type="search"]:focus {
  border-color: var(--primary);
}

.search-bar svg {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.1rem;
  height: 1.1rem;
  fill: var(--text-muted);
  pointer-events: none;
}

/* Autocomplete dropdown — Instant Results mini-cards */
.autocomplete-list {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  right: 0;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-hover);
  list-style: none;
  margin: 0;
  padding: 0.5rem;
  max-height: 360px;
  overflow-y: auto;
  z-index: 60;
  display: none;
}

.autocomplete-list.is-open {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  animation: fadeInUp 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.autocomplete-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.8rem;
  border-radius: 10px;
  cursor: pointer;
  color: var(--text);
  border: 1px solid transparent;
  transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.autocomplete-item .item-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  background: var(--bg-elevated);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.autocomplete-item .item-icon svg {
  width: 1.05rem;
  height: 1.05rem;
  fill: var(--accent);
}

.autocomplete-item .item-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.autocomplete-item .item-name {
  font-size: 0.92rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.autocomplete-item .item-name mark {
  background: none;
  color: var(--primary);
  font-weight: 700;
}

.autocomplete-item .item-category {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.autocomplete-item .item-rating {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #f5b942;
  white-space: nowrap;
}

.autocomplete-item .item-rating svg {
  width: 0.85rem;
  height: 0.85rem;
  fill: #f5b942;
}

.autocomplete-item:hover,
.autocomplete-item.is-active,
.autocomplete-item:focus-visible {
  background: var(--bg-elevated);
  border-color: var(--glass-border);
  box-shadow: var(--glow-soft);
  outline: none;
}

/* Advanced filter panel */
.filter-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem;
}

.filter-panel .filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.filter-panel label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
}

.filter-panel select,
.filter-panel input[type="range"] {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  padding: 0.55rem 0.7rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
}

.filter-panel .rating-filter {
  display: flex;
  gap: 0.3rem;
}

.filter-panel .rating-filter button {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-muted);
  padding: 0.4rem 0.6rem;
  cursor: pointer;
  font-size: 0.85rem;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.filter-panel .rating-filter button.is-active {
  color: #f5b942;
  border-color: #f5b942;
}

.category-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
}

.filter-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.filter-btn:hover {
  color: var(--text);
  border-color: var(--primary);
}

.filter-btn.is-active {
  background: var(--gradient);
  border-color: transparent;
  color: #fff;
}

/* Business cards */
.business-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.business-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  animation: fadeInUp 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.business-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: var(--shadow-hover), var(--glow-soft);
  border-color: var(--primary);
}

.business-card:has(:focus-visible) {
  box-shadow: var(--shadow-hover), var(--glow-primary);
}

.business-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.business-card h3 {
  font-size: 1.15rem;
  margin: 0;
}

.business-category {
  display: inline-block;
  background: var(--bg-elevated);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  white-space: nowrap;
}

.business-rating {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  color: #f5b942;
  font-size: 0.9rem;
  font-weight: 600;
}

.business-rating svg {
  width: 1rem;
  height: 1rem;
  fill: #f5b942;
}

.business-desc {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin: 0;
}

.business-meta {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.business-meta li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.business-meta svg {
  width: 0.95rem;
  height: 0.95rem;
  fill: var(--text-muted);
  flex-shrink: 0;
}

.business-card .btn-secondary {
  margin-top: 0.5rem;
  align-self: flex-start;
  padding: 0.5rem 1.1rem;
  font-size: 0.88rem;
}

.no-results {
  text-align: center;
  color: var(--text-muted);
  padding: 3rem 1rem;
  display: none;
}

.no-results.is-visible {
  display: block;
}

.loading-state {
  text-align: center;
  color: var(--text-muted);
  padding: 3rem 1rem;
  grid-column: 1 / -1;
}

/* Category icons */
.filter-btn,
.business-category {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.filter-btn svg,
.business-category svg {
  width: 0.95rem;
  height: 0.95rem;
  fill: currentColor;
  flex-shrink: 0;
}

.business-card-header .business-category svg {
  fill: var(--accent);
}

/* Detail modal */
dialog.detail-modal {
  border: none;
  border-radius: var(--radius-lg);
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  color: var(--text);
  padding: 0;
  width: min(600px, calc(100vw - 2rem));
  max-height: min(85vh, 720px);
  box-shadow: var(--shadow-hover);
  opacity: 0;
  transform: scale(0.92) translateY(12px);
  transition: opacity 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), overlay 0.28s ease allow-discrete, display 0.28s ease allow-discrete;
}

dialog.detail-modal[open] {
  opacity: 1;
  transform: scale(1) translateY(0);
}

@starting-style {
  dialog.detail-modal[open] {
    opacity: 0;
    transform: scale(0.92) translateY(12px);
  }
}

dialog.detail-modal::backdrop {
  background: rgba(3, 4, 8, 0.65);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.28s ease allow-discrete;
}

dialog.detail-modal[open]::backdrop {
  opacity: 1;
}

@starting-style {
  dialog.detail-modal[open]::backdrop {
    opacity: 0;
  }
}

.modal-inner {
  padding: 1.75rem;
  overflow-y: auto;
  max-height: min(85vh, 720px);
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.modal-close {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text);
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.modal-close:hover {
  border-color: var(--primary);
  transform: rotate(90deg);
}

.modal-close svg {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
}

/* Reviews */
.reviews-list {
  list-style: none;
  margin: 1rem 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.review-item {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
}

.review-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

.review-author {
  font-weight: 600;
  font-size: 0.9rem;
}

.review-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

/* Star rating input */
.star-rating {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 0.15rem;
}

.star-rating input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.star-rating label {
  cursor: pointer;
  color: var(--border);
  font-size: 1.6rem;
  line-height: 1;
  transition: color 0.15s ease, transform 0.15s ease;
}

.star-rating label svg {
  width: 1.6rem;
  height: 1.6rem;
  fill: currentColor;
}

.star-rating input:checked ~ label,
.star-rating label:hover,
.star-rating label:hover ~ label {
  color: #f5b942;
}

.star-rating input:focus-visible + label {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}

.review-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
  margin-top: 0.5rem;
}

/* Review reply (admin response) */
.review-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: var(--bg-elevated);
  color: var(--text-muted);
}

.review-status-badge.is-replied {
  color: var(--accent);
}

.review-status-badge svg {
  width: 0.8rem;
  height: 0.8rem;
  fill: currentColor;
}

.review-reply {
  margin-top: 0.6rem;
  margin-left: 1rem;
  padding: 0.75rem 1rem;
  border-left: 3px solid var(--primary);
  background: var(--bg);
  border-radius: 0 8px 8px 0;
}

.review-reply .reply-author {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.2rem;
}

.review-reply p {
  margin: 0;
  font-size: 0.88rem;
}

.review-reply-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.6rem;
}

.review-reply-form textarea {
  min-height: 4.5rem;
}

/* Admin dashboard */
.admin-shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}

.admin-sidebar {
  background: var(--bg-elevated);
  border-right: 1px solid var(--border);
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.admin-sidebar .logo {
  padding: 0 0.5rem 1.25rem;
}

.admin-nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.92rem;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.admin-nav-link svg {
  width: 1.1rem;
  height: 1.1rem;
  fill: currentColor;
  flex-shrink: 0;
}

.admin-nav-link:hover,
.admin-nav-link:focus-visible {
  background: var(--surface);
  color: var(--text);
}

.admin-nav-link.is-active {
  background: var(--gradient);
  color: #fff;
}

.admin-main {
  padding: 2rem 2.5rem;
}

.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow);
}

.stat-card .stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.stat-card .stat-value {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
}

/* Admin data table */
.admin-table-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  box-shadow: var(--shadow);
}

table.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

.admin-table th,
.admin-table td {
  text-align: left;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

.admin-table th {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.admin-table tr:last-child td { border-bottom: none; }

.admin-table tr:hover td { background: var(--bg-elevated); }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.status-pill.is-pending { background: rgba(245, 185, 66, 0.15); color: #f5b942; }
.status-pill.is-approved { background: rgba(45, 212, 191, 0.15); color: var(--accent); }
.status-pill.is-rejected { background: rgba(248, 113, 113, 0.15); color: #f87171; }

.table-actions {
  display: flex;
  gap: 0.5rem;
}

.table-actions button {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  padding: 0.35rem 0.6rem;
  font-size: 0.8rem;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.table-actions button.approve:hover { border-color: var(--accent); color: var(--accent); }
.table-actions button.reject:hover { border-color: #f87171; color: #f87171; }

/* Footer */
footer.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
  text-align: center;
  color: var(--text-muted);
}

.social-links {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  margin-top: 1rem;
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 0.75rem;
  list-style: none;
  padding: 0;
}

.legal-links a {
  color: var(--text-muted);
  font-size: 0.875rem;
  text-decoration: none;
}

.legal-links a:hover,
.legal-links a:focus-visible {
  color: var(--text);
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  nav.main-nav { display: none; }
  .nav-toggle { display: inline-flex; }
  nav.main-nav.open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.5rem;
  }
  nav.main-nav.open ul {
    flex-direction: column;
    gap: 1rem;
  }
  .about-content { flex-direction: column; }
  .hero { padding: 4rem 0 3rem; }
  section { padding: 3rem 0; }
  .business-grid { grid-template-columns: 1fr; }
  .bento-grid { grid-template-columns: repeat(2, 1fr); }
  .bento-grid > .card:nth-child(4n+1) { grid-column: span 2; grid-row: span 1; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-sidebar {
    position: sticky;
    top: 0;
    z-index: 40;
    flex-direction: row;
    overflow-x: auto;
    padding: 0.75rem;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .admin-sidebar .logo { display: none; }
  .admin-main { padding: 1.5rem 1.25rem; }
  .filter-panel { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .btn { width: 100%; text-align: center; }
  .hero-actions { flex-direction: column; }
  .business-card-header { flex-direction: column; }
  .filter-btn { flex: 1 1 auto; text-align: center; }
  .modal-inner { padding: 1.25rem; }
  .star-rating label { font-size: 1.4rem; }
  .star-rating label svg { width: 1.4rem; height: 1.4rem; }
  .filter-panel { grid-template-columns: 1fr; padding: 1rem; }
  .admin-table-wrap { border-radius: var(--radius); }
  .review-reply { margin-left: 0.4rem; }
  .bento-grid { grid-template-columns: 1fr; }
  .bento-grid > .card:nth-child(4n+1) { grid-column: span 1; }
}
