/* ─────────────────────────────────────────────────────────────
   BridgeMarket Design System v2 — Premium Visual Overhaul
   Stripe/Linear-quality. Clean. Professional. Trustworthy.
   ───────────────────────────────────────────────────────────── */

/* ─── RESET ─── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

/* ─── DESIGN TOKENS ─── */
:root {
  /* Brand Warm */
  --warm-50:  #fdf8f4;
  --warm-100: #f5ebe0;
  --warm-200: #ecd5bd;
  --warm-300: #d9b897;
  --warm-400: #d4a373;
  --warm-500: #c47a4a;
  --warm-600: #ab6637;
  --warm-700: #8b4f27;

  /* Neutral */
  --gray-50:  #fafaf9;
  --gray-100: #f5f4f2;
  --gray-200: #e8e6e3;
  --gray-300: #d4d1cc;
  --gray-400: #a8a29e;
  --gray-500: #78716c;
  --gray-600: #57534e;
  --gray-700: #44403c;
  --gray-800: #292524;
  --gray-900: #1c1917;
  --gray-950: #0c0a09;

  /* Match Colors */
  --emerald-50:  #ecfdf5;
  --emerald-100: #d1fae5;
  --emerald-500: #10b981;
  --emerald-600: #059669;
  --emerald-700: #047857;

  --violet-50:  #f5f3ff;
  --violet-100: #ede9fe;
  --violet-500: #8b5cf6;
  --violet-600: #7c3aed;

  --rose-50:  #fff1f2;
  --rose-500: #f43f5e;

  /* Semantic */
  --bg:           #ffffff;
  --bg-page:      var(--gray-50);
  --bg-subtle:    var(--gray-100);
  --bg-muted:     var(--warm-50);
  --bg-dark:      var(--gray-950);

  --text:         var(--gray-900);
  --text-secondary: var(--gray-600);
  --text-muted:   var(--gray-400);
  --text-on-dark: #ffffff;
  --text-on-dark-muted: rgba(255,255,255,0.5);

  --border:       var(--gray-200);
  --border-subtle: var(--gray-100);
  --border-hover: var(--gray-300);

  --accent:       var(--warm-500);
  --accent-hover: var(--warm-600);
  --accent-light: var(--warm-50);
  --accent-border: var(--warm-200);

  --success:      var(--emerald-600);
  --success-light: var(--emerald-50);
  --error:        var(--rose-500);
  --error-light:  var(--rose-50);

  /* Shadows */
  --shadow-xs:   0 1px 2px rgba(0,0,0,0.04);
  --shadow-sm:   0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:   0 4px 6px -1px rgba(0,0,0,0.06), 0 2px 4px -2px rgba(0,0,0,0.04);
  --shadow-lg:   0 10px 15px -3px rgba(0,0,0,0.06), 0 4px 6px -4px rgba(0,0,0,0.04);
  --shadow-xl:   0 20px 25px -5px rgba(0,0,0,0.06), 0 8px 10px -6px rgba(0,0,0,0.04);
  --shadow-glow: 0 0 0 3px rgba(196, 122, 74, 0.12);
  --shadow-card-hover: 0 12px 24px -4px rgba(0,0,0,0.08);

  /* Radius */
  --radius-sm: 8px;
  --radius:    12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* Transitions */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --transition-fast: 150ms var(--ease);
  --transition: 200ms var(--ease);
  --transition-slow: 300ms var(--ease);
}

/* ─── BASE ─── */
body {
  font-family: 'Inter', 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  font-size: 15px;
}

/* ─── TYPOGRAPHY ─── */
h1, h2, h3, h4 {
  font-family: 'Space Grotesk', -apple-system, sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

/* ─── NAVIGATION ─── */
.app-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  padding: 0 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--border-subtle);
}

.app-nav .logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: var(--text);
  letter-spacing: -0.03em;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 2px;
}

.app-nav .logo span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 4px;
  align-items: center;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.nav-links a:hover {
  color: var(--text);
  background: var(--bg-subtle);
}

.nav-links a.active {
  color: var(--text);
  background: var(--bg-subtle);
  font-weight: 600;
}

.nav-links .btn-nav {
  background: var(--text);
  color: var(--text-on-dark) !important;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.nav-links .btn-nav:hover {
  background: var(--gray-800);
  color: var(--text-on-dark) !important;
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

/* ─── PAGE CONTAINER ─── */
.page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 96px 32px 80px;
}

.page-header {
  margin-bottom: 48px;
}

.page-header h1 {
  font-size: clamp(32px, 5vw, 48px);
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.page-header h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--warm-500), var(--warm-600));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-header p {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.6;
}

/* ─── STATS BAR ─── */
.stats-bar {
  display: flex;
  gap: 1px;
  margin-bottom: 32px;
  background: var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
}

.stat-item {
  flex: 1;
  background: var(--bg);
  padding: 20px 24px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.stat-item:first-child {
  border-radius: var(--radius) 0 0 var(--radius);
}

.stat-item:last-child {
  border-radius: 0 var(--radius) 0 var(--radius);
}

.stat-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.4;
}

.btn-primary {
  background: var(--text);
  color: var(--text-on-dark);
  box-shadow: var(--shadow-xs);
}

.btn-primary:hover {
  background: var(--gray-800);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.btn-warm {
  background: var(--accent);
  color: white;
  box-shadow: 0 1px 3px rgba(196, 122, 74, 0.3);
}

.btn-warm:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(196, 122, 74, 0.25);
}

.btn-outline {
  background: var(--bg);
  color: var(--text);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-xs);
}

.btn-outline:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  padding: 8px 12px;
}

.btn-ghost:hover {
  background: var(--bg-subtle);
  color: var(--text);
}

.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-lg { padding: 14px 28px; font-size: 15px; }

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* ─── FORMS ─── */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.form-group .hint {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 3px;
  font-weight: 400;
}

.form-input {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 15px;
  color: var(--text);
  background: var(--bg);
  transition: all var(--transition-fast);
  line-height: 1.5;
}

.form-input:hover {
  border-color: var(--border-hover);
}

.form-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: var(--shadow-glow);
}

.form-input::placeholder {
  color: var(--text-muted);
}

select.form-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
}

textarea.form-input {
  min-height: 100px;
  resize: vertical;
}

/* ─── CARDS ─── */
.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-xs);
  transition: all var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-md);
}

.card-clickable {
  cursor: pointer;
  display: block;
}

.card-clickable:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--border-hover);
}

/* ─── BUSINESS CARD ─── */
.biz-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0;
  box-shadow: var(--shadow-xs);
  transition: all var(--transition);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.biz-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--border-hover);
}

.biz-card-header {
  padding: 20px 20px 0;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.biz-avatar {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: white;
  flex-shrink: 0;
  text-transform: uppercase;
}

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

.biz-card-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 4px;
  line-height: 1.3;
}

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

.biz-card-body {
  padding: 12px 20px 0;
}

.biz-card-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 14px;
}

.biz-card-tags {
  padding: 0 20px;
  margin-top: auto;
}

.biz-card-tag-section {
  margin-bottom: 10px;
}

.biz-card-tag-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.biz-card-tag-label.sells { color: var(--warm-600); }
.biz-card-tag-label.buys { color: var(--emerald-600); }

.biz-card-footer {
  padding: 14px 20px;
  margin-top: auto;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
}

.biz-card-footer svg {
  width: 14px;
  height: 14px;
  stroke: var(--text-muted);
  flex-shrink: 0;
}

/* ─── TAGS ─── */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  background: var(--bg-subtle);
  color: var(--text-secondary);
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
}

.tag-sell {
  background: var(--warm-50);
  color: var(--warm-600);
}

.tag-buy {
  background: var(--emerald-50);
  color: var(--emerald-600);
}

.tag-match {
  background: var(--warm-100);
  color: var(--warm-700);
  font-weight: 600;
}

.tag-count {
  background: var(--bg-subtle);
  color: var(--text-muted);
  font-size: 11px;
  padding: 3px 8px;
}

/* ─── BADGES ─── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1.5;
}

.badge-industry {
  background: var(--warm-50);
  color: var(--warm-600);
}

.badge-location {
  background: var(--bg-subtle);
  color: var(--text-muted);
}

/* ─── MATCH INDICATORS ─── */
.match-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.match-badge svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.match-badge-twoway {
  background: var(--violet-50);
  color: var(--violet-600);
}

.match-badge-supply {
  background: var(--emerald-50);
  color: var(--emerald-600);
}

.match-badge-demand {
  background: var(--warm-50);
  color: var(--warm-600);
}

/* Match Strength */
.match-strength {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.match-dots {
  display: flex;
  gap: 3px;
}

.match-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gray-200);
}

.match-dot.filled { background: var(--emerald-500); }
.match-dot.filled.strong { background: var(--violet-500); }
.match-dot.filled.demand { background: var(--warm-500); }

.match-strength-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ─── MATCH CARD ─── */
.match-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0;
  transition: all var(--transition);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow-xs);
}

.match-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--border-hover);
}

.match-card-top {
  padding: 18px 18px 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.match-card-left {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.match-card-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 4px;
}

.match-card-industry {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.match-card-body {
  padding: 12px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.match-card-overlap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.match-overlap-section {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.match-overlap-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: 4px;
}

.match-overlap-label.supply { color: var(--emerald-600); }
.match-overlap-label.demand { color: var(--warm-600); }

.match-card-footer {
  padding: 12px 18px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.match-card-location {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ─── SEARCH BAR ─── */
.search-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.search-wrapper {
  flex: 1;
  position: relative;
}

.search-wrapper svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  stroke: var(--text-muted);
  pointer-events: none;
}

.search-wrapper .form-input {
  padding-left: 42px;
  font-size: 15px;
}

.search-bar .form-input {
  background: var(--bg);
  border: 1.5px solid var(--border);
}

.search-bar select.form-input {
  max-width: 200px;
}

/* ─── FILTER CHIPS ─── */
.search-filters {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.filter-chip {
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border: 1.5px solid var(--border);
  background: var(--bg);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  font-family: inherit;
}

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

.filter-chip.active {
  background: var(--text);
  color: var(--text-on-dark);
  border-color: var(--text);
}

/* ─── GRID ─── */
.biz-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

/* ─── ALERTS ─── */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  margin-bottom: 20px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
}

.alert-success {
  background: var(--success-light);
  color: var(--emerald-700);
  border: 1px solid var(--emerald-100);
}

.alert-error {
  background: var(--error-light);
  color: #be123c;
  border: 1px solid #fecdd3;
}

/* ─── EMPTY STATE ─── */
.empty-state {
  text-align: center;
  padding: 64px 40px;
}

.empty-state .empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.empty-state h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}

.empty-state p {
  color: var(--text-muted);
  font-size: 15px;
  max-width: 360px;
  margin: 0 auto 20px;
  line-height: 1.55;
}

/* ─── SECTION DIVIDER ─── */
.divider {
  height: 1px;
  background: var(--border);
  margin: 32px 0;
}

/* ─── DETAIL PAGE ─── */
.biz-detail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}

.biz-detail-header h1 {
  font-size: clamp(28px, 4vw, 38px);
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}

.biz-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 8px;
}

.biz-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--text-muted);
}

.biz-meta-item svg {
  width: 16px;
  height: 16px;
  stroke: var(--text-muted);
}

.biz-description {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 680px;
  margin-bottom: 32px;
}

.buy-sell-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 32px;
}

.buy-sell-box {
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg);
}

.buy-sell-box h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.buy-sell-box.selling {
  background: var(--warm-50);
  border-color: var(--warm-200);
}

.buy-sell-box.selling h3 {
  color: var(--warm-600);
}

.buy-sell-box.buying {
  background: var(--emerald-50);
  border-color: var(--emerald-100);
}

.buy-sell-box.buying h3 {
  color: var(--emerald-600);
}

/* ─── MATCH SECTION ─── */
.match-section {
  margin-top: 48px;
}

.match-section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}

.match-section h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.match-section p {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 24px;
}

.match-count {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

/* ─── CTA BANNER ─── */
.cta-banner {
  margin-top: 48px;
  padding: 48px 40px;
  background: var(--bg-dark);
  border-radius: var(--radius-lg);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 140%;
  height: 200%;
  background: radial-gradient(ellipse at center, rgba(196, 122, 74, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.cta-banner h3 {
  color: var(--text-on-dark);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  position: relative;
}

.cta-banner p {
  color: var(--text-on-dark-muted);
  font-size: 15px;
  margin-bottom: 24px;
  position: relative;
}

/* ─── LOADING ─── */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px;
  color: var(--text-muted);
  font-size: 14px;
  gap: 12px;
}

.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--gray-200);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ─── RESULTS COUNT ─── */
.results-count {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
  font-weight: 500;
}

/* ─── FORM SECTIONS ─── */
.form-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-xs);
}

.form-card-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-card-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ─── BACK LINK ─── */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 24px;
  font-weight: 500;
  transition: color var(--transition-fast);
}

.back-link:hover {
  color: var(--text);
}

.back-link svg {
  width: 16px;
  height: 16px;
}

/* ─── CONTACT DETAILS ─── */
.contact-item {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.contact-item strong {
  color: var(--text);
  font-weight: 600;
}

.contact-item a {
  color: var(--accent);
  text-decoration: none;
}

.contact-item a:hover {
  text-decoration: underline;
}

/* ─── ANIMATION: FADE IN ─── */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeInUp 0.4s var(--ease) forwards;
}

.fade-in-delay-1 { animation-delay: 0.05s; opacity: 0; }
.fade-in-delay-2 { animation-delay: 0.1s; opacity: 0; }
.fade-in-delay-3 { animation-delay: 0.15s; opacity: 0; }

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  .app-nav {
    padding: 0 16px;
    height: 56px;
  }

  .app-nav .logo {
    font-size: 18px;
  }

  .nav-links a {
    padding: 6px 10px;
    font-size: 13px;
  }

  .nav-links .btn-nav {
    padding: 6px 14px;
  }

  .page {
    padding: 76px 16px 40px;
  }

  .stats-bar {
    flex-direction: column;
    gap: 0;
    border-radius: var(--radius);
  }

  .stat-item {
    border-radius: 0;
    padding: 14px 20px;
  }

  .stat-item:first-child {
    border-radius: var(--radius) var(--radius) 0 0;
  }

  .stat-item:last-child {
    border-radius: 0 0 var(--radius) var(--radius);
  }

  .search-bar {
    flex-direction: column;
  }

  .search-bar select.form-input {
    max-width: 100%;
  }

  .biz-grid {
    grid-template-columns: 1fr;
  }

  .buy-sell-section {
    grid-template-columns: 1fr;
  }

  .biz-detail-header {
    flex-direction: column;
    gap: 16px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .cta-banner {
    padding: 36px 24px;
  }

  .match-card-top {
    flex-direction: column;
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .page-header h1 {
    font-size: 28px;
  }

  .stat-num {
    font-size: 22px;
  }
}
