/* ============================================================
   myBusiness.ai — Global Design System
   ============================================================ */

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

/* ─── CSS VARIABLES ──────────────────────────────────────── */
:root {
  /* Colors */
  --bg-primary:     #080810;
  --bg-secondary:   #0d0d1a;
  --bg-card:        rgba(255,255,255,0.04);
  --bg-card-hover:  rgba(255,255,255,0.07);
  --bg-glass:       rgba(255,255,255,0.05);
  --bg-glass-dark:  rgba(8,8,16,0.8);
  --border:         rgba(255,255,255,0.08);
  --border-hover:   rgba(124,58,237,0.4);

  /* Brand */
  --purple:         #7C3AED;
  --purple-light:   #9D6EF5;
  --purple-dark:    #5B21B6;
  --purple-glow:    rgba(124,58,237,0.3);
  --teal:           #06D6A0;
  --teal-light:     #34EAB9;
  --teal-glow:      rgba(6,214,160,0.25);
  --pink:           #EC4899;
  --orange:         #F59E0B;
  --red:            #EF4444;
  --blue:           #3B82F6;

  /* Text */
  --text-primary:   #F0F0FF;
  --text-secondary: #9090B0;
  --text-muted:     #5A5A7A;
  --text-accent:    #7C3AED;

  /* Gradients */
  --gradient-brand:  linear-gradient(135deg, #7C3AED 0%, #06D6A0 100%);
  --gradient-purple: linear-gradient(135deg, #7C3AED 0%, #9D6EF5 100%);
  --gradient-card:   linear-gradient(145deg, rgba(124,58,237,0.12) 0%, rgba(6,214,160,0.05) 100%);
  --gradient-hero:   linear-gradient(135deg, #080810 0%, #0d0d1a 50%, #12102a 100%);

  /* Spacing */
  --space-xs:  4px;
  --space-sm:  8px;
  --space-md:  16px;
  --space-lg:  24px;
  --space-xl:  32px;
  --space-2xl: 48px;
  --space-3xl: 64px;

  /* Border radius */
  --radius-sm:  8px;
  --radius-md:  12px;
  --radius-lg:  16px;
  --radius-xl:  24px;
  --radius-full: 9999px;

  /* Sidebar */
  --sidebar-width: 260px;

  /* Transitions */
  --transition: all 0.2s ease;
  --transition-slow: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);

  /* Shadows */
  --shadow-sm:     0 2px 8px rgba(0,0,0,0.3);
  --shadow-md:     0 8px 32px rgba(0,0,0,0.4);
  --shadow-lg:     0 16px 64px rgba(0,0,0,0.5);
  --shadow-purple: 0 8px 32px rgba(124,58,237,0.3);
  --shadow-teal:   0 8px 32px rgba(6,214,160,0.2);

  /* Font */
  --font-ui:      'Inter', sans-serif;
  --font-display: 'Outfit', sans-serif;
}

/* ─── RESET ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-ui);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
input, textarea, select, button { font-family: inherit; }
ul, ol { list-style: none; }

/* ─── SCROLLBAR ──────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--purple-dark); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--purple); }

/* ─── TYPOGRAPHY ─────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }
p  { color: var(--text-secondary); }

.text-gradient {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-purple { color: var(--purple-light); }
.text-teal   { color: var(--teal); }
.text-muted  { color: var(--text-muted); }
.text-sm     { font-size: 0.85rem; }
.text-xs     { font-size: 0.75rem; }
.text-lg     { font-size: 1.125rem; }
.font-bold   { font-weight: 700; }
.font-semibold { font-weight: 600; }

/* ─── LAYOUT ─────────────────────────────────────────────── */
.container   { max-width: 1280px; margin: 0 auto; padding: 0 var(--space-lg); }
.container-sm { max-width: 960px; margin: 0 auto; padding: 0 var(--space-lg); }
.container-xs { max-width: 640px; margin: 0 auto; padding: 0 var(--space-lg); }

.flex        { display: flex; }
.flex-col    { flex-direction: column; }
.items-center { align-items: center; }
.items-start  { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.flex-wrap   { flex-wrap: wrap; }
.gap-sm      { gap: var(--space-sm); }
.gap-md      { gap: var(--space-md); }
.gap-lg      { gap: var(--space-lg); }
.gap-xl      { gap: var(--space-xl); }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-lg); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-lg); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-lg); }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--space-lg); }

/* ─── BUTTONS ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.1);
  opacity: 0;
  transition: var(--transition);
}
.btn:hover::before { opacity: 1; }

.btn-primary {
  background: var(--gradient-purple);
  color: #fff;
  box-shadow: var(--shadow-purple);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 40px rgba(124,58,237,0.4); }

.btn-teal {
  background: var(--teal);
  color: #080810;
  font-weight: 700;
  box-shadow: var(--shadow-teal);
}
.btn-teal:hover { transform: translateY(-1px); background: var(--teal-light); }

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--purple); color: var(--purple-light); }

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}
.btn-ghost:hover { background: var(--bg-card); color: var(--text-primary); }

.btn-danger {
  background: rgba(239,68,68,0.15);
  color: var(--red);
  border: 1px solid rgba(239,68,68,0.3);
}
.btn-danger:hover { background: rgba(239,68,68,0.25); }

.btn-sm { padding: 6px 14px; font-size: 0.8rem; border-radius: var(--radius-sm); }
.btn-lg { padding: 14px 28px; font-size: 1rem; border-radius: var(--radius-lg); }
.btn-xl { padding: 18px 36px; font-size: 1.1rem; border-radius: var(--radius-lg); }
.btn-icon { padding: 8px; border-radius: var(--radius-md); }
.btn-full { width: 100%; justify-content: center; }

/* ─── CARDS ──────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-card);
  opacity: 0;
  transition: var(--transition);
  pointer-events: none;
}
.card:hover { border-color: var(--border-hover); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.card:hover::before { opacity: 1; }

.card-glass {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
}

/* ─── BADGE ──────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.badge-purple  { background: rgba(124,58,237,0.2); color: var(--purple-light); border: 1px solid rgba(124,58,237,0.3); }
.badge-teal    { background: rgba(6,214,160,0.15); color: var(--teal); border: 1px solid rgba(6,214,160,0.3); }
.badge-orange  { background: rgba(245,158,11,0.15); color: var(--orange); border: 1px solid rgba(245,158,11,0.3); }
.badge-red     { background: rgba(239,68,68,0.15); color: var(--red); border: 1px solid rgba(239,68,68,0.3); }
.badge-blue    { background: rgba(59,130,246,0.15); color: var(--blue); border: 1px solid rgba(59,130,246,0.3); }
.badge-success { background: rgba(6,214,160,0.15); color: var(--teal); border: 1px solid rgba(6,214,160,0.3); }

/* ─── FORMS ──────────────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-size: 0.85rem; font-weight: 600; color: var(--text-secondary); }
.form-input, .form-select, .form-textarea {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: var(--transition);
  width: 100%;
  outline: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--purple);
  background: rgba(124,58,237,0.05);
  box-shadow: 0 0 0 3px var(--purple-glow);
}
.form-input::placeholder { color: var(--text-muted); }
.form-textarea { resize: vertical; min-height: 100px; }
.form-select option { background: var(--bg-secondary); }
.form-error { font-size: 0.8rem; color: var(--red); }
.form-hint  { font-size: 0.8rem; color: var(--text-muted); }

/* ─── AVATAR ─────────────────────────────────────────────── */
.avatar {
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--border);
}
.avatar-xs { width: 28px; height: 28px; }
.avatar-sm { width: 36px; height: 36px; }
.avatar-md { width: 48px; height: 48px; }
.avatar-lg { width: 64px; height: 64px; }
.avatar-xl { width: 96px; height: 96px; }

/* ─── STAR RATING ────────────────────────────────────────── */
.stars { display: flex; gap: 2px; align-items: center; }
.star  { color: var(--orange); font-size: 0.9rem; }
.star.empty { color: var(--text-muted); }

/* ─── PROGRESS BAR ───────────────────────────────────────── */
.progress {
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-full);
  height: 8px;
  overflow: hidden;
  width: 100%;
}
.progress-bar {
  height: 100%;
  border-radius: var(--radius-full);
  background: var(--gradient-brand);
  transition: width 0.6s ease;
  position: relative;
  overflow: hidden;
}
.progress-bar::after {
  content: '';
  position: absolute;
  top: 0; left: -100%; right: 0; bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: shimmer 2s infinite;
}
@keyframes shimmer { to { left: 100%; } }
.progress-sm { height: 4px; }
.progress-lg { height: 12px; }

/* ─── SEPARATOR ──────────────────────────────────────────── */
.divider { border: none; border-top: 1px solid var(--border); margin: var(--space-lg) 0; }

/* ─── MODAL ──────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  max-width: 560px;
  width: 100%;
  position: relative;
  transform: translateY(20px);
  transition: var(--transition);
  box-shadow: var(--shadow-lg);
}
.modal-overlay.active .modal { transform: translateY(0); }
.modal-close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  width: 32px; height: 32px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  font-size: 1.2rem;
}
.modal-close:hover { color: var(--text-primary); background: var(--bg-card-hover); }
.modal-title { font-size: 1.3rem; font-weight: 700; margin-bottom: var(--space-md); }

/* ─── TOAST NOTIFICATIONS ────────────────────────────────── */
.toast-container {
  position: fixed;
  bottom: var(--space-lg);
  right: var(--space-lg);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.toast {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-md);
  min-width: 300px;
  max-width: 420px;
  animation: slideInRight 0.3s ease;
  box-shadow: var(--shadow-md);
}
.toast.success { border-left: 3px solid var(--teal); }
.toast.error   { border-left: 3px solid var(--red); }
.toast.warning { border-left: 3px solid var(--orange); }
.toast.info    { border-left: 3px solid var(--purple); }
.toast-icon { font-size: 1.2rem; flex-shrink: 0; }
.toast-text { flex: 1; font-size: 0.9rem; }
.toast-title { font-weight: 600; color: var(--text-primary); }
.toast-msg   { color: var(--text-secondary); font-size: 0.8rem; }

/* ─── TOOLTIP ────────────────────────────────────────────── */
[data-tooltip] { position: relative; }
[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-size: 0.75rem;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: var(--transition);
  z-index: 100;
}
[data-tooltip]:hover::after { opacity: 1; }

/* ─── STAT CARD ──────────────────────────────────────────── */
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.stat-card::after {
  content: '';
  position: absolute;
  top: -30px; right: -30px;
  width: 80px; height: 80px;
  border-radius: 50%;
  opacity: 0.1;
}
.stat-card.purple::after { background: var(--purple); }
.stat-card.teal::after   { background: var(--teal); }
.stat-card.orange::after { background: var(--orange); }
.stat-card.pink::after   { background: var(--pink); }
.stat-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: var(--space-sm);
}
.stat-icon.purple { background: rgba(124,58,237,0.2); }
.stat-icon.teal   { background: rgba(6,214,160,0.15); }
.stat-icon.orange { background: rgba(245,158,11,0.15); }
.stat-icon.pink   { background: rgba(236,72,153,0.15); }
.stat-value { font-size: 1.8rem; font-weight: 800; font-family: var(--font-display); }
.stat-label { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.stat-change { font-size: 0.8rem; display: flex; align-items: center; gap: 3px; }
.stat-change.up   { color: var(--teal); }
.stat-change.down { color: var(--red); }

/* ─── TABLE ──────────────────────────────────────────────── */
.table-wrapper { overflow-x: auto; border-radius: var(--radius-lg); }
table { width: 100%; border-collapse: collapse; }
thead th {
  text-align: left;
  padding: var(--space-md) var(--space-lg);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
}
tbody td {
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  vertical-align: middle;
}
tbody tr:hover { background: var(--bg-card-hover); }
tbody tr:last-child td { border-bottom: none; }

/* ─── SIDEBAR NAV ────────────────────────────────────────── */
.app-shell { display: flex; min-height: 100vh; }
.sidebar {
  width: var(--sidebar-width);
  background: var(--bg-secondary);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 100;
  overflow-y: auto;
  transition: var(--transition-slow);
}
.sidebar-logo {
  padding: var(--space-lg);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}
.sidebar-logo-icon {
  width: 36px; height: 36px;
  background: var(--gradient-purple);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: var(--shadow-purple);
  flex-shrink: 0;
}
.sidebar-logo-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.sidebar-nav { padding: var(--space-md); flex: 1; }
.nav-section-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  padding: var(--space-sm) var(--space-sm) var(--space-xs);
  margin-top: var(--space-md);
}
.nav-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 10px var(--space-sm);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}
.nav-item .nav-icon { font-size: 1.1rem; width: 20px; text-align: center; flex-shrink: 0; }
.nav-item:hover { color: var(--text-primary); background: var(--bg-card); }
.nav-item.active {
  color: var(--purple-light);
  background: rgba(124,58,237,0.15);
  font-weight: 600;
}
.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0; top: 4px; bottom: 4px;
  width: 3px;
  background: var(--gradient-purple);
  border-radius: 0 2px 2px 0;
}
.nav-badge {
  margin-left: auto;
  background: var(--purple);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: var(--radius-full);
  min-width: 18px;
  text-align: center;
}
.sidebar-footer {
  padding: var(--space-md);
  border-top: 1px solid var(--border);
}
.sidebar-user {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
}
.sidebar-user:hover { background: var(--bg-card); }
.sidebar-user-info { flex: 1; min-width: 0; }
.sidebar-user-name { font-size: 0.9rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user-role { font-size: 0.75rem; color: var(--text-muted); }

/* ─── MAIN CONTENT ───────────────────────────────────────── */
.main-content {
  margin-left: var(--sidebar-width);
  flex: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.topbar {
  height: 64px;
  background: rgba(8,8,16,0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-xl);
  position: sticky;
  top: 0;
  z-index: 99;
}
.topbar-left { display: flex; align-items: center; gap: var(--space-md); }
.topbar-right { display: flex; align-items: center; gap: var(--space-sm); }
.topbar-title { font-size: 1rem; font-weight: 600; }
.breadcrumb { display: flex; align-items: center; gap: var(--space-xs); font-size: 0.85rem; color: var(--text-muted); }
.breadcrumb a { color: var(--text-muted); transition: var(--transition); }
.breadcrumb a:hover { color: var(--text-primary); }
.breadcrumb span { color: var(--text-primary); font-weight: 500; }

/* Notification bell */
.notif-btn {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  width: 40px; height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--text-secondary);
  transition: var(--transition);
}
.notif-btn:hover { color: var(--text-primary); border-color: var(--purple); }
.notif-dot {
  position: absolute;
  top: 6px; right: 6px;
  width: 8px; height: 8px;
  background: var(--purple);
  border-radius: 50%;
  border: 2px solid var(--bg-primary);
}

/* Credits badge */
.credits-badge {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  background: rgba(124,58,237,0.15);
  border: 1px solid rgba(124,58,237,0.3);
  border-radius: var(--radius-full);
  padding: 5px 12px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--purple-light);
  cursor: pointer;
  transition: var(--transition);
}
.credits-badge:hover { background: rgba(124,58,237,0.25); }

/* ─── PAGE HEADER ────────────────────────────────────────── */
.page-header {
  padding: var(--space-xl) var(--space-xl) 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-lg);
  flex-wrap: wrap;
}
.page-header-text h1 { font-size: 1.8rem; margin-bottom: var(--space-xs); }
.page-header-text p  { font-size: 0.9rem; color: var(--text-muted); }

/* ─── PAGE CONTENT ───────────────────────────────────────── */
.page-content { padding: var(--space-xl); flex: 1; }

/* ─── BUSINESS CARD ──────────────────────────────────────── */
.business-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: var(--transition-slow);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}
.business-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 0 1px var(--border-hover);
}
.business-card-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  position: relative;
}
.business-card-img-wrap {
  position: relative;
  overflow: hidden;
}
.business-card-img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(8,8,16,0.8));
}
.business-card-body { padding: var(--space-lg); flex: 1; display: flex; flex-direction: column; gap: var(--space-sm); }
.business-card-meta { display: flex; align-items: center; gap: var(--space-sm); flex-wrap: wrap; }
.business-card-title { font-size: 1.1rem; font-weight: 700; }
.business-card-desc  { font-size: 0.85rem; color: var(--text-muted); flex: 1; }
.business-card-stats { display: flex; gap: var(--space-md); margin-top: auto; padding-top: var(--space-sm); border-top: 1px solid var(--border); }
.business-card-stat  { display: flex; flex-direction: column; gap: 2px; }
.business-card-stat-val  { font-size: 0.9rem; font-weight: 700; }
.business-card-stat-label { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; }
.business-card-footer { padding: 0 var(--space-lg) var(--space-lg); }

/* Difficulty bar */
.difficulty { display: flex; align-items: center; gap: var(--space-sm); }
.difficulty-dots { display: flex; gap: 3px; }
.difficulty-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--border);
}
.difficulty-dot.filled { background: var(--orange); }

/* ─── TABS ───────────────────────────────────────────────── */
.tabs {
  display: flex;
  gap: 2px;
  background: rgba(255,255,255,0.03);
  border-radius: var(--radius-md);
  padding: 3px;
  border: 1px solid var(--border);
  width: fit-content;
}
.tab-btn {
  padding: 8px 18px;
  border-radius: calc(var(--radius-md) - 2px);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  border: none;
  background: transparent;
}
.tab-btn:hover { color: var(--text-primary); }
.tab-btn.active {
  background: var(--bg-card);
  color: var(--text-primary);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

/* ─── STEP TRACKER ───────────────────────────────────────── */
.steps-tracker { display: flex; flex-direction: column; gap: var(--space-sm); }
.step-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: var(--transition);
}
.step-item.completed { border-color: rgba(6,214,160,0.3); background: rgba(6,214,160,0.05); }
.step-item.active    { border-color: var(--border-hover); background: rgba(124,58,237,0.05); }
.step-number {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--bg-glass);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
  transition: var(--transition);
}
.step-item.completed .step-number { background: var(--teal); border-color: var(--teal); color: #080810; }
.step-item.active    .step-number { background: var(--purple); border-color: var(--purple); color: #fff; }
.step-content { flex: 1; }
.step-title { font-weight: 600; font-size: 0.9rem; }
.step-desc  { font-size: 0.8rem; color: var(--text-muted); margin-top: 2px; }

/* ─── CALENDAR ───────────────────────────────────────────── */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.calendar-day {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 6px 4px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-size: 0.8rem;
  cursor: pointer;
  transition: var(--transition);
  background: rgba(255,255,255,0.02);
}
.calendar-day:hover { background: var(--bg-card-hover); border-color: var(--border); }
.calendar-day.today { border-color: var(--purple); background: rgba(124,58,237,0.1); }
.calendar-day.has-post::after {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--teal);
  margin-top: 4px;
}
.calendar-day.missed::after { background: var(--red); }

/* ─── AI STUDIO ──────────────────────────────────────────── */
.ai-studio-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
}
.ai-studio-header {
  padding: var(--space-lg);
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(124,58,237,0.1), rgba(6,214,160,0.05));
  display: flex;
  align-items: center;
  gap: var(--space-md);
}
.ai-studio-icon {
  width: 48px; height: 48px;
  background: var(--gradient-brand);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: var(--shadow-purple);
}
.ai-result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--space-md);
}
.ai-result-img {
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  position: relative;
}
.ai-result-img img { width: 100%; height: 100%; object-fit: cover; }
.ai-result-img-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  opacity: 0;
  transition: var(--transition);
}
.ai-result-img:hover .ai-result-img-overlay { opacity: 1; }

/* ─── LOADING ────────────────────────────────────────────── */
.spinner {
  display: inline-block;
  width: 20px; height: 20px;
  border: 2px solid rgba(255,255,255,0.1);
  border-top-color: var(--purple);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.spinner-lg { width: 40px; height: 40px; border-width: 3px; }
@keyframes spin { to { transform: rotate(360deg); } }

.skeleton {
  background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.04) 75%);
  background-size: 200% 100%;
  animation: skeleton 1.5s infinite;
  border-radius: var(--radius-sm);
}
@keyframes skeleton { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ─── ANIMATIONS ─────────────────────────────────────────── */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideInRight { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.5; } }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes glow {
  0%,100% { box-shadow: 0 0 20px rgba(124,58,237,0.3); }
  50%      { box-shadow: 0 0 40px rgba(124,58,237,0.6); }
}

.animate-fade-in      { animation: fadeIn 0.4s ease both; }
.animate-fade-in-up   { animation: fadeInUp 0.4s ease both; }
.animate-slide-right  { animation: slideInRight 0.3s ease both; }
.animate-pulse        { animation: pulse 2s infinite; }
.animate-float        { animation: float 3s ease-in-out infinite; }
.animate-glow         { animation: glow 3s ease-in-out infinite; }

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }

/* ─── UTILITY ────────────────────────────────────────────── */
.hidden     { display: none !important; }
.relative   { position: relative; }
.absolute   { position: absolute; }
.w-full     { width: 100%; }
.h-full     { height: 100%; }
.overflow-hidden { overflow: hidden; }
.text-center { text-align: center; }
.text-right  { text-align: right; }
.ml-auto     { margin-left: auto; }
.mr-auto     { margin-right: auto; }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.p-md  { padding: var(--space-md); }
.p-lg  { padding: var(--space-lg); }

/* ─── EMPTY STATE ────────────────────────────────────────── */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-3xl) var(--space-xl);
  text-align: center;
  gap: var(--space-md);
}
.empty-state-icon { font-size: 3rem; opacity: 0.5; }
.empty-state-title { font-size: 1.1rem; font-weight: 600; }
.empty-state-desc  { font-size: 0.85rem; color: var(--text-muted); max-width: 320px; }

/* ─── GLOW ORBS (decorative) ─────────────────────────────── */
.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  opacity: 0.15;
}
.glow-orb-purple { background: var(--purple); }
.glow-orb-teal   { background: var(--teal); }

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .page-header { padding: var(--space-lg); }
  .page-content { padding: var(--space-lg); }
  .topbar { padding: 0 var(--space-lg); }
}
