/* ============================================
   CIRCLEONE — NEO-BRUTALIST DESIGN SYSTEM
   Palette: Deep Teal (#0d3b66) + Alabaster (#f4f1de)
   ============================================ */

/* ========== 1. RESET & BASE ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; font-size: inherit; }
ul, ol { list-style: none; }
*, *::before, *::after { border: 0 solid var(--line); }

/* ========== 2. CSS VARIABLES ========== */
:root {
  /* Brand Anchors */
  --primary: #0d3b66;
  --primary-hover: #0a2e52;
  --bg: #f4f1de;
  --surface: #ffffff;
  --surface-2: #e8e4cc;

  /* Text */
  --fg: #1a1a2e;
  --ink: #0a0a18;
  --ink-soft: #5c5c6e;

  /* Borders */
  --line: #c8c4ac;
  --line-strong: #1a1a2e;

  /* Accents */
  --accent: #f4a261;
  --accent-hover: #e8934b;
  --danger: #c5283d;
  --success: #2a9d8f;

  /* Radius */
  --radius: 4px;
  --radius-sm: 0;
  --radius-md: 2px;
  --radius-lg: 4px;
  --radius-xl: 8px;

  /* Shadows — hard offset, zero blur */
  --shadow-hard: 6px 6px 0 0 var(--primary);
  --shadow-hard-hover: 10px 10px 0 0 var(--primary);
  --shadow-btn: 4px 4px 0 0 var(--ink);
  --shadow-btn-hover: 6px 6px 0 0 var(--ink);
  --shadow-cta: 6px 6px 0 0 rgba(0,0,0,0.4);

  /* Layout */
  --max-w: 1280px;
  --nav-h: 64px;
}

[data-theme="dark"] {
  --primary: #4cb9e0;
  --primary-hover: #3aa5cc;
  --bg: #0a0a18;
  --surface: #16162a;
  --surface-2: #20203a;
  --fg: #e8e4cc;
  --ink: #f4f1de;
  --ink-soft: #a0a0b8;
  --line: #2a2a44;
  --line-strong: #e8e4cc;
  --shadow-hard: 6px 6px 0 0 var(--primary);
  --shadow-hard-hover: 10px 10px 0 0 var(--primary);
  --shadow-btn: 4px 4px 0 0 #000;
  --shadow-btn-hover: 6px 6px 0 0 #000;
}

/* ========== 3. TYPOGRAPHY ========== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.92;
  color: var(--ink);
}
h1 { font-size: clamp(2.75rem, 8vw, 7rem); }
h2 { font-size: clamp(2rem, 5vw, 3.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
p { color: var(--ink-soft); }
.mono { font-family: 'JetBrains Mono', 'SF Mono', Menlo, monospace; }

/* ========== 4. UTILITIES ========== */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; width: 100%; }
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-accent { color: var(--accent); }
.text-ink { color: var(--ink); }
.text-muted { color: var(--ink-soft); }
.hidden { display: none !important; }
.mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 0.5rem; }

/* Grid backgrounds */
.bg-grid {
  background-image:
    linear-gradient(to right, color-mix(in oklab, var(--primary) 9%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in oklab, var(--primary) 9%, transparent) 1px, transparent 1px);
  background-size: 40px 40px;
}
.bg-grid-strong {
  background-image:
    linear-gradient(to right, color-mix(in oklab, var(--primary) 18%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in oklab, var(--primary) 18%, transparent) 1px, transparent 1px);
  background-size: 40px 40px;
}
.bg-grid-dark {
  background-image:
    linear-gradient(to right, color-mix(in oklab, var(--bg) 6%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in oklab, var(--bg) 6%, transparent) 1px, transparent 1px);
  background-size: 40px 40px;
}
.bg-radial-fade {
  -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
}

/* Section label */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--primary);
}
.section-label::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--primary);
  margin-right: 0.75rem;
}

/* Pill */
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  background: var(--surface);
  color: var(--ink);
}

/* ========== 5. BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid var(--line-strong);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary);
  color: var(--bg);
  border-color: var(--primary);
  box-shadow: var(--shadow-btn);
}
.btn-primary:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-btn-hover);
}
.btn-secondary, .btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-secondary:hover, .btn-ghost:hover {
  background: var(--surface-2);
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-btn);
}
.btn-danger {
  background: var(--danger);
  color: #fff;
  border-color: var(--danger);
  box-shadow: 4px 4px 0 0 var(--ink);
}
.btn-danger:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 0 var(--ink);
}
.btn-large { padding: 1.1rem 2rem; font-size: 1.1rem; }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.85rem; }
.btn-block { width: 100%; }
.btn-oauth {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.85rem 1.4rem;
  background: var(--surface);
  color: var(--ink);
  border: 2px solid var(--line-strong);
  font-weight: 600;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn-oauth:hover {
  background: var(--surface-2);
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 0 var(--ink);
}

/* ========== 6. NAVBAR ========== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  background: color-mix(in oklab, var(--bg) 85%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-strong);
  display: flex;
  align-items: center;
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand a {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.04em;
  color: var(--ink);
}
.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-menu > a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color .2s ease;
}
.nav-menu > a:hover { color: var(--ink); }
.theme-toggle-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink);
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}
.theme-toggle-btn:hover {
  background: var(--surface-2);
  transform: translate(-2px, -2px);
  box-shadow: 3px 3px 0 0 var(--primary);
}
.nav-mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-mobile-toggle span {
  width: 24px;
  height: 2px;
  background: var(--ink);
  transition: transform .3s ease;
}

/* ========== 7. FOOTER ========== */
.footer {
  border-top: 1px solid var(--line-strong);
  padding: 2.5rem 0;
  background: var(--bg);
}
.footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.footer p {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
}
.footer strong { color: var(--ink); }

/* ========== 8. FLASH MESSAGES ========== */
.flash-messages {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.flash-message {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  font-weight: 500;
  font-size: 0.9rem;
  box-shadow: 4px 4px 0 0 var(--primary);
  animation: reveal-up .4s ease both;
}
.flash-success { border-left: 4px solid var(--success); }
.flash-error, .flash-danger { border-left: 4px solid var(--danger); }
.flash-info, .flash-warning { border-left: 4px solid var(--accent); }
.flash-close {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink-soft);
  cursor: pointer;
  background: none;
  border: none;
  padding: 0 0.25rem;
}
.flash-close:hover { color: var(--ink); }

/* ========== 9. FORMS ========== */
.form-group {
  margin-bottom: 1.5rem;
}
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.5rem;
  font-family: 'JetBrains Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.form-control, .search-input, .filter-select, .location-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  color: var(--ink);
  font-size: 0.95rem;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.form-control:focus, .search-input:focus, .filter-select:focus, .location-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px color-mix(in oklab, var(--accent) 30%, transparent);
}
.form-control::placeholder { color: var(--ink-soft); opacity: 0.6; }
textarea.form-control { resize: vertical; min-height: 100px; }
.form-text {
  display: block;
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin-top: 0.35rem;
}
.form-section {
  border: 1px solid var(--line-strong);
  padding: 2rem;
  margin-bottom: 1.5rem;
  background: var(--surface);
}
.form-section h2 {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}
.form-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}
.checkbox-group { display: flex; flex-direction: column; gap: 0.5rem; }
.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
  cursor: pointer;
  color: var(--ink);
}
.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--primary);
}
.file-upload-section {
  border: 2px dashed var(--line-strong);
  padding: 1.5rem;
  background: var(--surface-2);
}
.file-input {
  padding: 0.5rem;
  border: 1px solid var(--line-strong);
  background: var(--surface);
}
.current-logo, .image-preview {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid var(--line);
  background: var(--surface);
}
.logo-preview-small {
  max-width: 120px;
  max-height: 120px;
  border: 1px solid var(--line-strong);
  margin-top: 0.5rem;
}

/* ========== 10. BOX (Brutalist Card) ========== */
.box {
  border: 1px solid var(--line-strong);
  background: var(--surface);
  transition: transform .25s ease, box-shadow .25s ease;
}
.box-shadow-hard {
  box-shadow: var(--shadow-hard);
}
.box-shadow-hard:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-hard-hover);
}

/* ========== 11. HERO ========== */
.hero-modern {
  position: relative;
  padding: 5rem 0 6rem;
  border-bottom: 1px solid var(--line-strong);
  overflow: hidden;
}
.hero-modern .bg-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}
.hero-title {
  font-size: clamp(2.75rem, 8vw, 7rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.92;
  color: var(--ink);
  margin-bottom: 1.5rem;
}
.hero-description {
  font-size: 1.125rem;
  color: var(--ink-soft);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
}
.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}
.hero-stats {
  display: flex;
  gap: 3rem;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-stats .stat {
  text-align: center;
}
.hero-stats .stat-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.04em;
}
.hero-stats .stat-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--ink-soft);
  margin-top: 0.25rem;
}

/* Hero visual / floating cards */
.hero-visual {
  position: relative;
  margin: 4rem auto 0;
  width: min(860px, 100%);
  min-height: 280px;
  z-index: 1;
}
.floating-card {
  position: absolute;
  padding: 1.5rem;
  width: 170px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-hard);
  transition: transform .25s ease, box-shadow .25s ease;
  animation: float-soft 5s ease-in-out infinite;
}
.floating-card:hover {
  transform: translate(-2px, -2px) !important;
  box-shadow: var(--shadow-hard-hover);
}
.floating-card .card-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}
.floating-card .card-text {
  font-weight: 600;
  color: var(--ink);
  font-size: 0.9rem;
}
.card-1 { top: 0; left: 0; animation-delay: 0s; }
.card-2 { top: 0; right: 0; animation-delay: 1.5s; }
.card-3 { bottom: 0; left: 50%; margin-left: -85px; animation-delay: 3s; }

/* ========== 12. FEATURES ========== */
.features-section {
  padding: 6rem 0;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line-strong);
}
.section-heading {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 3rem;
  text-align: center;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
}
.feature-card {
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-hard);
  transition: transform .25s ease, box-shadow .25s ease;
}
.feature-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-hard-hover);
}
.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: var(--bg);
  font-size: 1.5rem;
  margin-bottom: 1rem;
  border: 1px solid var(--line-strong);
}
.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}
.feature-card p {
  font-size: 0.9rem;
  color: var(--ink-soft);
}

/* ========== 13. CTA SECTION ========== */
.cta-section {
  padding: 7rem 0;
  background: var(--primary);
  border-bottom: 1px solid var(--line-strong);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section .bg-grid-dark {
  position: absolute;
  inset: 0;
  opacity: 0.7;
}
.cta-section > * { position: relative; z-index: 1; }
.cta-section h2 {
  color: var(--bg);
  font-size: clamp(3rem, 9vw, 8rem);
  line-height: 0.9;
  margin-bottom: 1.5rem;
}
.cta-section p {
  color: color-mix(in oklab, var(--bg) 80%, transparent);
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
}
.cta-section .btn-primary {
  background: var(--accent);
  color: var(--ink);
  border-color: var(--accent);
  box-shadow: var(--shadow-cta);
}
.cta-section .btn-primary:hover {
  box-shadow: 6px 6px 0 0 rgba(0,0,0,0.5);
}

/* ========== 14. AUTH PAGES ========== */
.login-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - var(--nav-h) - 200px);
  padding: 3rem 0;
}
.login-card {
  width: 100%;
  max-width: 480px;
  padding: 2.5rem;
  background: var(--surface);
  border: 2px solid var(--line-strong);
  box-shadow: var(--shadow-hard);
}
.login-card h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}
.login-subtitle {
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin-bottom: 2rem;
}
.login-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.login-form .form-group { margin-bottom: 0; }
.login-footer {
  font-size: 0.75rem;
  color: var(--ink-soft);
  text-align: center;
  margin-top: 1.5rem;
  font-family: 'JetBrains Mono', monospace;
}
.oauth-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* ========== 15. DASHBOARD ========== */
.dashboard { padding: 2rem 0 4rem; }
.dashboard-header-enhanced {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding: 2rem;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  box-shadow: var(--shadow-hard);
  margin-bottom: 2rem;
}
.welcome-section {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.welcome-section h1 {
  font-size: 1.75rem;
  line-height: 1.1;
}
.dashboard-subtitle {
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.dashboard-avatar, .dashboard-avatar-placeholder {
  width: 56px;
  height: 56px;
  border: 2px solid var(--line-strong);
  object-fit: cover;
}
.dashboard-avatar-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: var(--bg);
  font-size: 1.5rem;
  font-weight: 700;
}
.quick-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Stats grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
.stat-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-hard);
  transition: transform .25s ease, box-shadow .25s ease;
}
.stat-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-hard-hover);
}
.stat-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--primary);
  border: 1px solid var(--line-strong);
  font-size: 1.5rem;
}
.stat-info h3 {
  font-size: 1.75rem;
  color: var(--ink);
}
.stat-info p {
  font-size: 0.8rem;
  font-family: 'JetBrains Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Dashboard info */
.dashboard-info-section { margin-bottom: 2rem; }
.section-title {
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}
.info-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}
.info-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line-strong);
}
.info-icon { font-size: 1.5rem; }
.info-content label {
  display: block;
  font-size: 0.7rem;
  font-family: 'JetBrains Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  margin-bottom: 0.25rem;
}
.info-content p { color: var(--ink); font-weight: 500; }

/* Dashboard businesses */
.dashboard-businesses, .dashboard-professionals {
  margin-bottom: 2rem;
}
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.section-header h2 { font-size: 1.5rem; }
.businesses-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.business-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  box-shadow: 4px 4px 0 0 var(--primary);
  transition: transform .25s ease, box-shadow .25s ease;
  flex-wrap: wrap;
  gap: 1rem;
}
.business-item:hover {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 0 var(--primary);
}
.business-item-info h3 { font-size: 1.1rem; }
.business-item-info h3 a { color: var(--ink); }
.business-item-info h3 a:hover { color: var(--primary); }
.business-category {
  display: inline-block;
  font-size: 0.7rem;
  font-family: 'JetBrains Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin: 0.25rem 0;
}
.business-stats, .profile-stats {
  font-size: 0.8rem;
  color: var(--ink-soft);
  font-family: 'JetBrains Mono', monospace;
}
.business-item-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.no-businesses, .no-profile, .no-results {
  padding: 2.5rem;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line-strong);
}
.no-businesses p, .no-profile p, .no-results p {
  margin-bottom: 1rem;
  color: var(--ink-soft);
}

/* Professional profile card */
.professional-profile-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  box-shadow: 4px 4px 0 0 var(--primary);
  flex-wrap: wrap;
  gap: 1rem;
  transition: transform .25s ease, box-shadow .25s ease;
}
.professional-profile-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 0 var(--primary);
}
.profile-card-info h3 { font-size: 1.25rem; }
.status-badge {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  font-size: 0.7rem;
  font-family: 'JetBrains Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  border: 1px solid var(--line-strong);
  margin: 0.5rem 0;
}
.status-public { background: var(--success); color: #fff; border-color: var(--success); }
.status-private { background: var(--surface-2); color: var(--ink-soft); }
.skills-preview-small {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}
.skill-tag-small, .skill-tag {
  padding: 0.2rem 0.6rem;
  font-size: 0.75rem;
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  color: var(--ink);
  font-weight: 500;
}
.skill-tag.more { background: var(--primary); color: var(--bg); border-color: var(--primary); }
.profile-card-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* Profile photo */
.profile-photo-container {
  margin-bottom: 2rem;
}
.profile-photo-container h3 { margin-bottom: 1rem; }
.profile-photo {
  max-width: 200px;
  border: 2px solid var(--line-strong);
  box-shadow: var(--shadow-hard);
}

/* ========== 16. PROFILE PAGE ========== */
.profile-container {
  max-width: 700px;
  margin: 0 auto;
  padding: 2rem 0 4rem;
}
.profile-header {
  text-align: center;
  padding: 2.5rem;
  background: var(--surface);
  border: 2px solid var(--line-strong);
  box-shadow: var(--shadow-hard);
  margin-bottom: 2rem;
}
.profile-photo-large, .profile-photo-placeholder {
  width: 96px;
  height: 96px;
  margin: 0 auto 1.25rem;
  border: 2px solid var(--line-strong);
  object-fit: cover;
}
.profile-photo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: var(--bg);
  font-size: 2.5rem;
  font-weight: 700;
}
.profile-header h1 { font-size: 2rem; margin-bottom: 0.5rem; }
.profile-email { font-size: 0.9rem; color: var(--ink-soft); }
.profile-details {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  padding: 2rem;
  margin-bottom: 1.5rem;
}
.profile-details h2 { font-size: 1.25rem; margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.profile-detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
}
.profile-detail-item:last-child { border-bottom: none; }
.profile-detail-item label {
  font-size: 0.75rem;
  font-family: 'JetBrains Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}
.profile-detail-item span { font-weight: 500; color: var(--ink); }
.profile-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Provider badge */
.provider-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  color: var(--ink);
}

/* ========== 17. BUSINESS DIRECTORY ========== */
.businesses-page, .professionals-page { padding: 2rem 0 4rem; }
.page-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line-strong);
}
.page-header h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 0.5rem; }
.page-header .subtitle { font-size: 1rem; color: var(--ink-soft); margin-bottom: 1rem; }

/* Search filter */
.search-filter-section {
  margin-bottom: 1.5rem;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line-strong);
}
.search-form { width: 100%; }
.search-inputs {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}
.search-input { flex: 1 1 200px; }
.filter-select { flex: 0 1 180px; }
.location-input { flex: 0 1 180px; }

.results-info {
  margin-bottom: 1.5rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}

/* Business grid */
.businesses-grid, .professionals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1rem;
}
.business-card {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-hard);
  transition: transform .25s ease, box-shadow .25s ease;
}
.business-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-hard-hover);
}
.business-card-link { display: block; padding: 1.5rem; }
.business-logo, .business-logo-placeholder {
  width: 100%;
  height: 140px;
  margin-bottom: 1rem;
  border: 1px solid var(--line-strong);
  object-fit: cover;
  background: var(--surface-2);
}
.business-logo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--surface-2);
}
.business-info h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.business-location { font-size: 0.85rem; color: var(--ink-soft); margin: 0.25rem 0; }
.business-description {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin: 0.5rem 0;
  line-height: 1.5;
}
.business-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
  font-size: 0.75rem;
  font-family: 'JetBrains Mono', monospace;
  color: var(--ink-soft);
}

/* ========== 18. PROFESSIONAL DIRECTORY ========== */
.professional-card {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-hard);
  transition: transform .25s ease, box-shadow .25s ease;
}
.professional-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-hard-hover);
}
.professional-card-link { display: block; padding: 1.5rem; }
.professional-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.profile-photo-medium, .profile-photo-placeholder-medium {
  width: 56px;
  height: 56px;
  border: 1px solid var(--line-strong);
  object-fit: cover;
  flex-shrink: 0;
}
.profile-photo-placeholder-medium {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: var(--bg);
  font-size: 1.5rem;
  font-weight: 700;
}
.professional-info h3 { font-size: 1.1rem; }
.professional-info .job-title { font-size: 0.85rem; color: var(--ink-soft); }
.professional-summary {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-bottom: 0.75rem;
  line-height: 1.5;
}
.skills-preview {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}
.professional-meta {
  font-size: 0.75rem;
  font-family: 'JetBrains Mono', monospace;
  color: var(--ink-soft);
}

/* ========== 19. DETAIL PAGES ========== */
.business-detail-page, .professional-detail-page { padding: 2rem 0 4rem; }
.business-header, .professional-header-section {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 2rem;
  background: var(--surface);
  border: 2px solid var(--line-strong);
  box-shadow: var(--shadow-hard);
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.business-header-content, .professional-header-content {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.business-logo-large, .business-logo-placeholder-large {
  width: 96px;
  height: 96px;
  border: 2px solid var(--line-strong);
  object-fit: cover;
  flex-shrink: 0;
}
.business-logo-placeholder-large {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: var(--bg);
  font-size: 2.5rem;
  font-weight: 700;
}
.business-title-section h1, .professional-title-section h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}
.business-category-badge {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  font-size: 0.75rem;
  font-family: 'JetBrains Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  background: var(--primary);
  color: var(--bg);
  border: 1px solid var(--line-strong);
  margin-bottom: 0.5rem;
}
.business-stats, .professional-stats {
  display: flex;
  gap: 1.5rem;
  font-size: 0.8rem;
  font-family: 'JetBrains Mono', monospace;
  color: var(--ink-soft);
  flex-wrap: wrap;
}
.business-actions, .professional-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Detail content layout */
.business-detail-content, .professional-detail-content {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
  align-items: start;
}
.business-main-info, .professional-main-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.info-section {
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line-strong);
}
.info-section h2 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
}
.info-section p { color: var(--ink); line-height: 1.6; }

/* Contact grid */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}
.contact-item {
  padding: 1rem;
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.contact-item strong {
  display: block;
  font-size: 0.75rem;
  font-family: 'JetBrains Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
  margin-bottom: 0.25rem;
}
.contact-item a { color: var(--primary); font-weight: 500; }
.contact-item a:hover { text-decoration: underline; }

/* Social links */
.social-links {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.social-link {
  padding: 0.5rem 1rem;
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  transition: transform .2s ease, box-shadow .2s ease;
}
.social-link:hover {
  transform: translate(-2px, -2px);
  box-shadow: 3px 3px 0 0 var(--primary);
}

/* Skills list */
.skills-list {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.skill-tag-large {
  padding: 0.4rem 1rem;
  font-size: 0.9rem;
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  color: var(--ink);
  font-weight: 500;
}

/* Sidebar */
.business-sidebar, .professional-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: sticky;
  top: calc(var(--nav-h) + 1rem);
}
.sidebar-card {
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line-strong);
}
.sidebar-card h3 { font-size: 1rem; margin-bottom: 0.75rem; }
.sidebar-card p { color: var(--ink); }
.contact-note { margin-top: 0.75rem; }
.job-title-large {
  font-size: 1.1rem;
  color: var(--ink-soft);
  margin-bottom: 0.5rem;
}

/* Profile photo xlarge */
.profile-photo-xlarge, .profile-photo-placeholder-xlarge {
  width: 96px;
  height: 96px;
  border: 2px solid var(--line-strong);
  object-fit: cover;
  flex-shrink: 0;
}
.profile-photo-placeholder-xlarge {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: var(--bg);
  font-size: 2.5rem;
  font-weight: 700;
}

/* ========== 20. FORM PAGES ========== */
.business-form-page, .professional-form-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 0 4rem;
}
.form-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line-strong);
}
.form-header h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin-bottom: 0.5rem; }
.form-header .subtitle { font-size: 1rem; color: var(--ink-soft); }
.business-form, .professional-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Consent section */
.consent-section { border-color: var(--accent); }
.consent-box { padding-top: 0.5rem; }
.consent-text {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: 0.75rem;
  line-height: 1.5;
}
.warning-box {
  margin-top: 1rem;
  padding: 1rem;
  background: color-mix(in oklab, var(--accent) 15%, transparent);
  border-left: 4px solid var(--accent);
}
.warning-box p { color: var(--ink); font-size: 0.85rem; }
.warning-box p strong { color: var(--danger); }

/* ========== 21. ANIMATIONS ========== */
@keyframes float-soft {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@keyframes reveal-up {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes mask-reveal {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0 0 0 0); }
}
@keyframes pulse-dot {
  0%, 100% { opacity: 0.35; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.4); }
}
@keyframes blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Reveal classes */
.reveal {
  opacity: 0;
  animation: reveal-up .9s cubic-bezier(.2,.7,.2,1) both;
}
.reveal.active {
  opacity: 1;
  animation: reveal-up .9s cubic-bezier(.2,.7,.2,1) both;
}

/* Echo text effect */
.echo-text {
  position: relative;
  display: inline-block;
}
.echo-text::before, .echo-text::after {
  content: attr(data-text);
  position: absolute;
  top: 0; left: 0;
  z-index: -1;
  pointer-events: none;
  color: transparent;
  -webkit-text-stroke: 1px var(--primary);
}
.echo-text::before { transform: translate(8px, 8px); opacity: 0.28; }
.echo-text::after { transform: translate(16px, 16px); opacity: 0.16; }

/* ========== 22. RESPONSIVE ========== */

/* Tablet */
@media (max-width: 1024px) {
  .business-detail-content, .professional-detail-content {
    grid-template-columns: 1fr;
  }
  .business-sidebar, .professional-sidebar {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
  }
  .sidebar-card { flex: 1 1 280px; }
}

/* Mobile */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--surface);
    border-bottom: 1px solid var(--line-strong);
    padding: 1.5rem;
    gap: 1rem;
    z-index: 49;
  }
  .nav-menu.open {
    display: flex;
  }
  .nav-mobile-toggle {
    display: flex;
  }
  .hero-modern { padding: 3rem 0 4rem; }
  .hero-stats { gap: 1.5rem; }
  .hero-stats .stat-number { font-size: 1.75rem; }
  .features-section { padding: 3rem 0; }
  .features-grid { grid-template-columns: 1fr; }
  .cta-section { padding: 4rem 0; }
  .cta-section h2 { font-size: clamp(2rem, 10vw, 4rem); }
  .dashboard-header-enhanced {
    flex-direction: column;
    align-items: flex-start;
  }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-card { padding: 1rem; gap: 0.75rem; }
  .stat-icon { width: 40px; height: 40px; font-size: 1.25rem; }
  .stat-info h3 { font-size: 1.25rem; }
  .info-cards-grid { grid-template-columns: 1fr; }
  .businesses-grid, .professionals-grid { grid-template-columns: 1fr; }
  .business-header, .professional-header-section {
    flex-direction: column;
  }
  .business-header-content, .professional-header-content {
    flex-direction: column;
    text-align: center;
  }
  .business-actions, .professional-actions { width: 100%; justify-content: center; }
  .search-inputs { flex-direction: column; }
  .search-input, .filter-select, .location-input { flex: 1 1 100%; }
  .form-section { padding: 1.25rem; }
  .form-actions { flex-direction: column; }
  .form-actions .btn { width: 100%; }
  .business-sidebar, .professional-sidebar { flex-direction: column; }
  .floating-card { display: none; }
  .hero-visual { display: none; }
  .login-card { padding: 1.5rem; }
  .footer .container { flex-direction: column; text-align: center; }
}

/* Small mobile */
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .hero-buttons { flex-direction: column; width: 100%; }
  .hero-buttons .btn { width: 100%; }
  .container { padding: 0 16px; }
  .feature-card { padding: 1.25rem; }
  .business-item {
    flex-direction: column;
    align-items: flex-start;
  }
  .business-item-actions { width: 100%; }
}

/* ========== 23. ACCESSIBILITY ========== */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .floating-card { animation: none !important; }
}

/* ========== 24. SCROLLBAR ========== */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--primary); border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--primary-hover); }

::selection { background: var(--primary); color: var(--bg); }

/* ========== 25. MAIN CONTENT ========== */
.main-content {
  min-height: calc(100vh - var(--nav-h) - 120px);
}
