/* ==========================================
   BLUESPARK EVENTS — Design System
   Aesthetic: "Midnight Spark"
   Dark editorial + warm amber spark accents
   Premium B2B for corporate events industry
   ========================================== */

/* --- Reset / Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body { font-family: 'Bricolage Grotesque', sans-serif; line-height: 1.6; overflow-x: hidden; background-color: var(--bg-primary); color: var(--text-primary); }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; transition: color 0.25s ease; }
ul, ol { list-style: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; border: none; outline: none; background: none; }
button { cursor: pointer; }

/* --- Custom Properties: Dark Theme (default) --- */
:root {
  --bg-deep: #08090C;
  --bg-primary: #0F1115;
  --bg-elevated: #181B22;
  --bg-surface: #1F232C;
  --bg-hover: #262B36;
  --bg-glass: rgba(15, 17, 21, 0.7);

  --text-primary: #EDE9E0;
  --text-secondary: #968F82;
  --text-tertiary: #5E584F;
  --text-inverse: #0F1115;

  --accent-spark: #E8A832;
  --accent-spark-glow: #F0C050;
  --accent-spark-dim: #A07020;
  --accent-blue: #3B7DD8;
  --accent-blue-muted: #2A5A9E;

  --border-primary: #262A33;
  --border-subtle: #1A1E26;
  --border-spark: rgba(232, 168, 50, 0.25);

  --success: #4A9E6B;
  --success-bg: rgba(74, 158, 107, 0.12);
  --warning: #D89A3A;
  --warning-bg: rgba(216, 154, 58, 0.12);
  --error: #C44A3D;
  --error-bg: rgba(196, 74, 61, 0.12);

  --gradient-spark: linear-gradient(135deg, #E8A832 0%, #F0C050 100%);
  --gradient-hero: linear-gradient(160deg, #0F1115 0%, #141820 40%, #0F1115 100%);
  --gradient-card: linear-gradient(180deg, rgba(232, 168, 50, 0.04) 0%, transparent 60%);
  --gradient-glow: radial-gradient(ellipse at center, rgba(232, 168, 50, 0.15), transparent 70%);

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3), 0 1px 2px rgba(0,0,0,0.2);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.35), 0 2px 4px rgba(0,0,0,0.2);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.45), 0 4px 12px rgba(0,0,0,0.25);
  --shadow-spark: 0 0 20px rgba(232, 168, 50, 0.15), 0 0 60px rgba(232, 168, 50, 0.05);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --nav-height: 72px;
  --sidebar-width: 280px;
  --content-max: 1280px;
  --content-wide: 1440px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);

  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body: 'Bricolage Grotesque', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

/* --- Light Theme --- */
.theme-light {
  --bg-deep: #F2EFE8;
  --bg-primary: #FAF8F4;
  --bg-elevated: #FFFFFF;
  --bg-surface: #F0ECE4;
  --bg-hover: #E8E4DB;
  --bg-glass: rgba(250, 248, 244, 0.85);

  --text-primary: #1A1D23;
  --text-secondary: #5C5750;
  --text-tertiary: #8A847A;
  --text-inverse: #EDE9E0;

  --accent-spark: #C48A20;
  --accent-spark-glow: #DAA030;
  --accent-spark-dim: #8A6018;
  --accent-blue: #2B6CB0;
  --accent-blue-muted: #1E5090;

  --border-primary: #DDD8CE;
  --border-subtle: #EAE6DE;
  --border-spark: rgba(196, 138, 32, 0.3);

  --gradient-hero: linear-gradient(160deg, #FAF8F4 0%, #F2EFE8 40%, #FAF8F4 100%);
  --gradient-card: linear-gradient(180deg, rgba(196, 138, 32, 0.06) 0%, transparent 60%);

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.1), 0 4px 12px rgba(0,0,0,0.06);
  --shadow-spark: 0 0 20px rgba(196, 138, 32, 0.1), 0 0 60px rgba(196, 138, 32, 0.04);
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 { line-height: 1.15; font-weight: 600; color: var(--text-primary); }
h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 800; letter-spacing: -0.02em; }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); font-weight: 700; }
h4 { font-size: 1.1rem; font-weight: 700; }
p { color: var(--text-secondary); font-size: 1.05rem; max-width: 65ch; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.78rem; }
.text-lg { font-size: 1.2rem; }
.text-xl { font-size: 1.4rem; }
.text-display { font-family: var(--font-display); }
.text-spark { color: var(--accent-spark); }
.text-muted { color: var(--text-tertiary); }
.text-center { text-align: center; }
.serif-italic { font-family: var(--font-display); font-style: italic; }

/* --- Layout --- */
.container { max-width: var(--content-max); margin: 0 auto; padding: 0 2rem; }
.container-wide { max-width: var(--content-wide); margin: 0 auto; padding: 0 2rem; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-xs { gap: 0.5rem; }
.gap-sm { gap: 0.75rem; }
.gap-md { gap: 1.25rem; }
.gap-lg { gap: 2rem; }
.gap-xl { gap: 3rem; }
.grid { display: grid; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.section { padding: 6rem 0; }
.section-lg { padding: 8rem 0; }

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: var(--border-primary); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-tertiary); }

/* --- Navigation --- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-height);
  background: var(--bg-glass);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--border-subtle);
  transition: background 0.4s ease, border-color 0.4s ease;
}
.nav.scrolled { background: var(--bg-primary); border-color: var(--border-primary); }
.nav-inner {
  max-width: var(--content-wide); margin: 0 auto; padding: 0 2rem;
  height: 100%; display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  display: flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-display); font-size: 1.35rem;
  color: var(--text-primary); letter-spacing: -0.02em;
}
.nav-logo .spark-icon {
  width: 32px; height: 32px;
  background: var(--gradient-spark);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; color: var(--text-inverse);
  box-shadow: var(--shadow-spark);
  position: relative;
}
.nav-logo .spark-icon::after {
  content: ''; position: absolute; inset: -2px;
  border-radius: 10px;
  background: var(--gradient-spark);
  opacity: 0.3; filter: blur(8px);
  z-index: -1;
}
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a {
  font-size: 0.92rem; font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.25s ease;
  position: relative;
}
.nav-links a:hover, .nav-links a.active { color: var(--text-primary); }
.nav-links a.active::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 2px; background: var(--accent-spark);
  border-radius: 1px;
}
.nav-actions { display: flex; align-items: center; gap: 1rem; }
.nav-mobile-toggle {
  display: none; width: 40px; height: 40px;
  align-items: center; justify-content: center;
  color: var(--text-primary); font-size: 1.4rem;
}

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.7rem 1.6rem; border-radius: var(--radius-full);
  font-weight: 600; font-size: 0.92rem;
  transition: all 0.3s var(--ease-smooth);
  position: relative; overflow: hidden;
  white-space: nowrap;
}
.btn-spark {
  background: var(--gradient-spark); color: var(--text-inverse);
  box-shadow: 0 2px 12px rgba(232, 168, 50, 0.25);
}
.btn-spark:hover {
  box-shadow: 0 4px 24px rgba(232, 168, 50, 0.35);
  transform: translateY(-1px);
}
.btn-spark::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 60%);
  opacity: 0; transition: opacity 0.3s ease;
}
.btn-spark:hover::before { opacity: 1; }

.btn-outline {
  border: 1.5px solid var(--border-primary); color: var(--text-primary);
  background: transparent;
}
.btn-outline:hover {
  border-color: var(--accent-spark); color: var(--accent-spark);
  background: rgba(232, 168, 50, 0.06);
}

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

.btn-blue {
  background: var(--accent-blue); color: #fff;
  box-shadow: 0 2px 12px rgba(59, 125, 216, 0.2);
}
.btn-blue:hover {
  background: #4A8BE8;
  box-shadow: 0 4px 20px rgba(59, 125, 216, 0.3);
  transform: translateY(-1px);
}

.btn-sm { padding: 0.45rem 1rem; font-size: 0.82rem; }
.btn-lg { padding: 0.9rem 2.2rem; font-size: 1rem; }
.btn-icon { padding: 0.55rem; border-radius: var(--radius-md); }

/* --- Cards --- */
.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: all 0.35s var(--ease-smooth);
  position: relative;
}
.card::before {
  content: ''; position: absolute; inset: 0;
  border-radius: var(--radius-lg);
  background: var(--gradient-card);
  opacity: 0; transition: opacity 0.35s ease;
  pointer-events: none;
}
.card:hover { border-color: var(--border-spark); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card:hover::before { opacity: 1; }

.card-glass {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
}

/* --- Vendor Card (Directory) --- */
.vendor-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: all 0.35s var(--ease-smooth);
  position: relative;
  display: flex; flex-direction: column; gap: 1rem;
}
.vendor-card::before {
  content: ''; position: absolute; top: 0; left: 1.5rem; right: 1.5rem; height: 3px;
  background: var(--gradient-spark);
  border-radius: 0 0 2px 2px;
  opacity: 0; transition: opacity 0.35s ease;
}
.vendor-card:hover { border-color: var(--border-spark); box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.vendor-card:hover::before { opacity: 1; }

.vendor-card-header { display: flex; align-items: flex-start; gap: 1rem; }
.vendor-logo {
  width: 56px; height: 56px; min-width: 56px;
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 1.4rem;
  color: var(--accent-spark);
  border: 1px solid var(--border-primary);
  overflow: hidden;
}
.vendor-logo img { width: 100%; height: 100%; object-fit: cover; }
.vendor-info { flex: 1; min-width: 0; }
.vendor-name { font-size: 1.15rem; font-weight: 700; color: var(--text-primary); margin-bottom: 0.15rem; }
.vendor-tagline { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vendor-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; font-size: 0.82rem; color: var(--text-tertiary); }
.vendor-meta-item { display: flex; align-items: center; gap: 0.35rem; }
.vendor-rating { display: flex; align-items: center; gap: 0.3rem; color: var(--accent-spark); font-weight: 600; }
.vendor-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }

/* --- Tags / Badges --- */
.tag {
  display: inline-flex; align-items: center;
  padding: 0.3rem 0.7rem; border-radius: var(--radius-full);
  font-size: 0.76rem; font-weight: 600;
  background: var(--bg-surface); color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  transition: all 0.2s ease;
}
.tag-spark { background: rgba(232, 168, 50, 0.12); color: var(--accent-spark); border-color: var(--border-spark); }
.tag-blue { background: rgba(59, 125, 216, 0.12); color: var(--accent-blue); border-color: rgba(59, 125, 216, 0.2); }
.tag-success { background: var(--success-bg); color: var(--success); border-color: rgba(74, 158, 107, 0.2); }
.tag-clickable:hover { background: var(--bg-hover); border-color: var(--accent-spark); cursor: pointer; }

.badge {
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.2rem 0.55rem; border-radius: var(--radius-full);
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
}
.badge-spark { background: var(--gradient-spark); color: var(--text-inverse); }
.badge-outline { border: 1px solid var(--border-primary); color: var(--text-secondary); }

/* --- Forms --- */
.form-group { display: flex; flex-direction: column; gap: 0.5rem; }
.form-label { font-size: 0.85rem; font-weight: 600; color: var(--text-primary); }
.form-input, .form-select, .form-textarea {
  padding: 0.7rem 1rem;
  background: var(--bg-surface);
  border: 1.5px solid var(--border-primary);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  transition: all 0.25s ease;
  font-size: 0.95rem;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--accent-spark);
  box-shadow: 0 0 0 3px rgba(232, 168, 50, 0.12);
}
.form-input::placeholder { color: var(--text-tertiary); }
.form-textarea { min-height: 120px; resize: vertical; line-height: 1.6; }

.search-bar {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.85rem 1.25rem;
  background: var(--bg-elevated);
  border: 1.5px solid var(--border-primary);
  border-radius: var(--radius-xl);
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}
.search-bar:focus-within {
  border-color: var(--accent-spark);
  box-shadow: var(--shadow-spark);
}
.search-bar input {
  flex: 1; background: none; color: var(--text-primary);
  font-size: 1rem;
}
.search-bar input::placeholder { color: var(--text-tertiary); }
.search-bar .search-icon { color: var(--text-tertiary); font-size: 1.1rem; }
.search-bar .search-btn {
  background: var(--gradient-spark); color: var(--text-inverse);
  padding: 0.5rem 1.2rem; border-radius: var(--radius-full);
  font-weight: 600; font-size: 0.88rem;
  transition: all 0.25s ease;
}
.search-bar .search-btn:hover { box-shadow: 0 2px 12px rgba(232, 168, 50, 0.3); }

/* --- Filters Sidebar --- */
.filters-sidebar {
  width: var(--sidebar-width); min-width: var(--sidebar-width);
  display: flex; flex-direction: column; gap: 0.5rem;
}
.filter-section {
  background: var(--bg-elevated);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.filter-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.9rem 1rem;
  font-weight: 600; font-size: 0.88rem; color: var(--text-primary);
  cursor: pointer; transition: background 0.2s ease;
}
.filter-header:hover { background: var(--bg-hover); }
.filter-header .chevron { transition: transform 0.25s ease; color: var(--text-tertiary); font-size: 0.8rem; }
.filter-section.open .filter-header .chevron { transform: rotate(180deg); }
.filter-body { padding: 0 1rem 1rem; display: flex; flex-direction: column; gap: 0.5rem; }
.filter-section:not(.open) .filter-body { display: none; }

.filter-option {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.35rem 0; font-size: 0.88rem; color: var(--text-secondary);
  cursor: pointer; transition: color 0.2s ease;
}
.filter-option:hover { color: var(--text-primary); }
.filter-checkbox {
  width: 18px; height: 18px; min-width: 18px;
  border: 1.5px solid var(--border-primary);
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s ease;
}
.filter-option.active .filter-checkbox {
  background: var(--accent-spark);
  border-color: var(--accent-spark);
}
.filter-option.active .filter-checkbox::after {
  content: '✓'; font-size: 0.7rem; color: var(--text-inverse); font-weight: 700;
}
.filter-count { margin-left: auto; font-size: 0.78rem; color: var(--text-tertiary); }

/* --- Star Rating --- */
.stars { display: inline-flex; gap: 2px; }
.star { color: var(--border-primary); font-size: 0.9rem; }
.star.filled { color: var(--accent-spark); }

/* --- Stat Cards --- */
.stat-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}
.stat-value { font-size: 2rem; font-weight: 800; color: var(--text-primary); line-height: 1.1; }
.stat-label { font-size: 0.85rem; color: var(--text-secondary); margin-top: 0.3rem; }
.stat-change { font-size: 0.8rem; font-weight: 600; margin-top: 0.5rem; }
.stat-change.up { color: var(--success); }
.stat-change.down { color: var(--error); }

/* --- Progress Bar --- */
.progress-bar {
  height: 6px; background: var(--bg-surface); border-radius: 3px;
  overflow: hidden;
}
.progress-fill {
  height: 100%; border-radius: 3px;
  background: var(--gradient-spark);
  transition: width 0.6s var(--ease-out);
}

/* --- Avatar --- */
.avatar {
  width: 40px; height: 40px; border-radius: var(--radius-full);
  background: var(--bg-surface); border: 2px solid var(--border-primary);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.82rem; color: var(--accent-spark);
  overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-lg { width: 56px; height: 56px; font-size: 1rem; }
.avatar-xl { width: 80px; height: 80px; font-size: 1.3rem; }
.avatar-stack { display: flex; }
.avatar-stack .avatar { margin-left: -10px; border-color: var(--bg-elevated); }
.avatar-stack .avatar:first-child { margin-left: 0; }

/* --- Tabs --- */
.tabs {
  display: flex; gap: 0; border-bottom: 1px solid var(--border-primary);
  overflow-x: auto; scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  padding: 0.85rem 1.25rem; font-size: 0.9rem; font-weight: 600;
  color: var(--text-tertiary); white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: all 0.25s ease;
  cursor: pointer;
}
.tab:hover { color: var(--text-secondary); }
.tab.active { color: var(--accent-spark); border-bottom-color: var(--accent-spark); }

/* --- Modal --- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 2rem;
  opacity: 0; visibility: hidden;
  transition: all 0.3s ease;
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal {
  background: var(--bg-elevated);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-xl);
  padding: 2rem;
  max-width: 520px; width: 100%;
  box-shadow: var(--shadow-lg);
  transform: scale(0.95) translateY(10px);
  transition: transform 0.35s var(--ease-spring);
}
.modal-overlay.open .modal { transform: scale(1) translateY(0); }
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; }
.modal-close { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-full); color: var(--text-tertiary); transition: all 0.2s ease; font-size: 1.2rem; }
.modal-close:hover { background: var(--bg-hover); color: var(--text-primary); }
.modal-footer { display: flex; gap: 0.75rem; justify-content: flex-end; margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border-subtle); }

/* --- Gated Content Overlay --- */
.gated-section {
  position: relative;
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.gated-content {
  filter: blur(8px); opacity: 0.5;
  padding: 1.5rem;
  user-select: none; pointer-events: none;
}
.gated-overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 1rem;
  background: rgba(15, 17, 21, 0.4);
  backdrop-filter: blur(2px);
  text-align: center; padding: 2rem;
}
.gated-icon {
  width: 52px; height: 52px; border-radius: var(--radius-full);
  background: var(--bg-surface);
  border: 1.5px solid var(--border-spark);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; color: var(--accent-spark);
}
.gated-text { font-size: 0.95rem; font-weight: 600; color: var(--text-primary); }
.gated-subtext { font-size: 0.82rem; color: var(--text-secondary); max-width: 280px; }

/* --- Table --- */
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
  text-align: left; padding: 0.75rem 1rem;
  font-size: 0.78rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--text-tertiary);
  border-bottom: 1px solid var(--border-primary);
}
.data-table td {
  padding: 0.9rem 1rem; font-size: 0.9rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-subtle);
}
.data-table tr:hover td { background: var(--bg-hover); color: var(--text-primary); }

/* --- Tooltip --- */
.tooltip-wrapper { position: relative; }
.tooltip {
  position: absolute; bottom: calc(100% + 8px); left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--bg-surface);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.7rem;
  font-size: 0.78rem; color: var(--text-primary);
  white-space: nowrap;
  box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: all 0.2s ease;
}
.tooltip-wrapper:hover .tooltip { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }

/* --- Empty State --- */
.empty-state {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 4rem 2rem; text-align: center;
}
.empty-icon { font-size: 3rem; margin-bottom: 1rem; opacity: 0.3; }

/* --- Divider --- */
.divider { height: 1px; background: var(--border-primary); margin: 1.5rem 0; }

/* ==========================================
   LANDING PAGE
   ========================================== */

.hero {
  min-height: 100vh; display: flex; align-items: center;
  background: var(--gradient-hero);
  position: relative; overflow: hidden;
  padding-top: var(--nav-height);
}
.hero-canvas {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
}
.hero-glow {
  position: absolute;
  width: 600px; height: 600px;
  background: var(--gradient-glow);
  border-radius: 50%;
  top: 20%; left: 50%; transform: translate(-50%, -50%);
  pointer-events: none; z-index: 0;
  animation: glow-pulse 6s ease-in-out infinite alternate;
}
@keyframes glow-pulse {
  0% { opacity: 0.4; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0.7; transform: translate(-50%, -50%) scale(1.15); }
}
.hero-content {
  position: relative; z-index: 1;
  text-align: center; max-width: 800px; margin: 0 auto;
  padding: 2rem;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.4rem 1rem; border-radius: var(--radius-full);
  background: rgba(232, 168, 50, 0.1);
  border: 1px solid var(--border-spark);
  font-size: 0.82rem; font-weight: 600; color: var(--accent-spark);
  margin-bottom: 2rem;
}
.hero-badge .pulse-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent-spark);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.4); }
}
.hero h1 { margin-bottom: 1.5rem; }
.hero h1 em {
  font-family: var(--font-display); font-style: italic;
  color: var(--accent-spark);
  position: relative;
}
.hero h1 em::after {
  content: ''; position: absolute; bottom: 2px; left: 0; right: 0;
  height: 2px; background: var(--accent-spark); opacity: 0.4;
}
.hero-sub {
  font-size: 1.15rem; color: var(--text-secondary);
  max-width: 550px; margin: 0 auto 2.5rem;
  line-height: 1.7;
}
.hero-actions { display: flex; align-items: center; justify-content: center; gap: 1rem; flex-wrap: wrap; }

.hero-stats {
  display: flex; align-items: center; justify-content: center; gap: 3rem;
  margin-top: 4rem; padding-top: 3rem;
  border-top: 1px solid var(--border-subtle);
}
.hero-stat { text-align: center; }
.hero-stat-value {
  font-family: var(--font-display); font-size: 2.2rem;
  color: var(--text-primary);
}
.hero-stat-label { font-size: 0.82rem; color: var(--text-tertiary); margin-top: 0.2rem; }

/* --- Logos Strip --- */
.logos-strip {
  padding: 4rem 0;
  border-bottom: 1px solid var(--border-subtle);
}
.logos-strip p { text-align: center; font-size: 0.82rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-tertiary); margin-bottom: 2rem; }
.logos-row {
  display: flex; align-items: center; justify-content: center;
  gap: 3rem; flex-wrap: wrap;
  opacity: 0.4;
}
.logos-row span {
  font-family: var(--font-display); font-size: 1.3rem;
  color: var(--text-secondary); white-space: nowrap;
}

/* --- Feature Pillars --- */
.pillars {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2rem;
}
.pillar {
  background: var(--bg-elevated);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  position: relative; overflow: hidden;
  transition: all 0.4s var(--ease-smooth);
}
.pillar:hover { border-color: var(--border-spark); box-shadow: var(--shadow-lg); }
.pillar-icon {
  width: 48px; height: 48px; border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 1.25rem;
}
.pillar-collective .pillar-icon { background: rgba(232, 168, 50, 0.12); color: var(--accent-spark); }
.pillar-engine .pillar-icon { background: rgba(59, 125, 216, 0.12); color: var(--accent-blue); }
.pillar h3 { margin-bottom: 0.75rem; }
.pillar p { font-size: 0.95rem; line-height: 1.65; margin-bottom: 1.5rem; }
.pillar-features { display: flex; flex-direction: column; gap: 0.6rem; }
.pillar-feature {
  display: flex; align-items: flex-start; gap: 0.6rem;
  font-size: 0.88rem; color: var(--text-secondary);
}
.pillar-feature .check {
  width: 18px; height: 18px; min-width: 18px;
  border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.65rem; margin-top: 2px;
}
.pillar-collective .check { background: rgba(232, 168, 50, 0.15); color: var(--accent-spark); }
.pillar-engine .check { background: rgba(59, 125, 216, 0.15); color: var(--accent-blue); }

/* --- How It Works --- */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; counter-reset: step; }
.step {
  text-align: center; padding: 2rem 1.5rem;
  position: relative; counter-increment: step;
}
.step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display); font-size: 3.5rem;
  color: var(--border-primary); line-height: 1;
  display: block; margin-bottom: 1.25rem;
}
.step h4 { margin-bottom: 0.6rem; }
.step p { font-size: 0.9rem; margin: 0 auto; }
.step-connector {
  position: absolute; top: 3.5rem; right: -1rem; width: 2rem;
  border-top: 1px dashed var(--border-primary);
}
.step:last-child .step-connector { display: none; }

/* --- Pricing Section --- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.pricing-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2rem;
  display: flex; flex-direction: column;
  transition: all 0.35s ease;
}
.pricing-card.featured {
  border-color: var(--accent-spark);
  box-shadow: var(--shadow-spark);
  position: relative;
}
.pricing-card.featured::before {
  content: 'Most Popular';
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--gradient-spark); color: var(--text-inverse);
  padding: 0.25rem 1rem; border-radius: var(--radius-full);
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.05em;
}
.pricing-tier { font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-tertiary); margin-bottom: 0.5rem; }
.pricing-name { font-size: 1.3rem; font-weight: 800; color: var(--text-primary); margin-bottom: 0.5rem; }
.pricing-price { margin-bottom: 1.5rem; }
.pricing-amount { font-family: var(--font-display); font-size: 2.5rem; color: var(--text-primary); }
.pricing-period { font-size: 0.88rem; color: var(--text-tertiary); }
.pricing-features { display: flex; flex-direction: column; gap: 0.65rem; margin-bottom: 2rem; flex: 1; }
.pricing-feature { display: flex; align-items: flex-start; gap: 0.5rem; font-size: 0.88rem; color: var(--text-secondary); }
.pricing-feature .check-icon { color: var(--accent-spark); margin-top: 2px; min-width: 16px; }

/* --- CTA Banner --- */
.cta-banner {
  background: var(--bg-elevated);
  border: 1px solid var(--border-spark);
  border-radius: var(--radius-xl);
  padding: 4rem 3rem;
  text-align: center;
  position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(232, 168, 50, 0.06), transparent 70%);
  pointer-events: none;
}

/* --- Footer --- */
.footer {
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--border-subtle);
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem; margin-bottom: 3rem;
}
.footer-brand p { font-size: 0.88rem; color: var(--text-tertiary); margin-top: 0.75rem; max-width: 280px; }
.footer-col h5 { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-tertiary); margin-bottom: 1rem; }
.footer-col a { display: block; font-size: 0.88rem; color: var(--text-secondary); padding: 0.3rem 0; transition: color 0.2s ease; }
.footer-col a:hover { color: var(--accent-spark); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 2rem; border-top: 1px solid var(--border-subtle);
  font-size: 0.82rem; color: var(--text-tertiary);
}

/* ==========================================
   DIRECTORY PAGE
   ========================================== */
.directory-layout {
  display: flex; gap: 2rem;
  padding-top: calc(var(--nav-height) + 2rem);
  min-height: 100vh;
}
.directory-main { flex: 1; min-width: 0; }
.directory-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.5rem; flex-wrap: wrap; gap: 1rem;
}
.results-count { font-size: 0.9rem; color: var(--text-secondary); }
.results-count strong { color: var(--text-primary); }
.sort-select {
  padding: 0.45rem 0.9rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 0.85rem;
  cursor: pointer;
}
.vendor-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 1.25rem; }

.active-filters {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  margin-bottom: 1.25rem;
}
.active-filter {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.3rem 0.7rem;
  background: rgba(232, 168, 50, 0.1);
  border: 1px solid var(--border-spark);
  border-radius: var(--radius-full);
  font-size: 0.78rem; font-weight: 600; color: var(--accent-spark);
}
.active-filter .remove { cursor: pointer; opacity: 0.6; transition: opacity 0.2s; }
.active-filter .remove:hover { opacity: 1; }

.pagination {
  display: flex; align-items: center; justify-content: center;
  gap: 0.5rem; margin-top: 2.5rem;
}
.page-btn {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-md);
  font-size: 0.88rem; font-weight: 600;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}
.page-btn:hover { background: var(--bg-hover); color: var(--text-primary); }
.page-btn.active { background: var(--accent-spark); color: var(--text-inverse); }

/* ==========================================
   VENDOR PROFILE PAGE
   ========================================== */
.profile-hero {
  padding-top: calc(var(--nav-height) + 3rem);
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border-primary);
}
.profile-hero-inner {
  display: flex; align-items: flex-start; gap: 2rem;
}
.profile-logo {
  width: 100px; height: 100px; min-width: 100px;
  background: var(--bg-surface);
  border: 1.5px solid var(--border-primary);
  border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 2rem;
  color: var(--accent-spark);
}
.profile-identity { flex: 1; }
.profile-name { font-size: 1.8rem; font-weight: 800; margin-bottom: 0.3rem; }
.profile-tagline { font-size: 1.05rem; color: var(--text-secondary); margin-bottom: 1rem; }
.profile-quick-facts { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.profile-fact { display: flex; align-items: center; gap: 0.4rem; font-size: 0.88rem; color: var(--text-tertiary); }
.profile-fact strong { color: var(--text-secondary); }
.profile-actions { display: flex; flex-direction: column; gap: 0.75rem; min-width: 200px; }

.profile-body {
  display: grid; grid-template-columns: 2fr 1fr;
  gap: 2.5rem; padding: 3rem 0;
}
.profile-main { display: flex; flex-direction: column; gap: 2.5rem; }
.profile-sidebar { display: flex; flex-direction: column; gap: 1.5rem; }

.profile-section { }
.profile-section-title {
  font-size: 0.78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-tertiary);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.capabilities-text {
  font-size: 1rem; line-height: 1.8;
  color: var(--text-secondary);
}
.capabilities-text p { margin-bottom: 1rem; max-width: 100%; }

.structured-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.field-group { }
.field-label { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-tertiary); margin-bottom: 0.5rem; }
.field-value { font-size: 0.92rem; color: var(--text-primary); }
.field-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; }

.case-study {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  transition: border-color 0.25s ease;
}
.case-study:hover { border-color: var(--border-primary); }
.case-study-title { font-weight: 700; font-size: 0.95rem; color: var(--text-primary); margin-bottom: 0.3rem; }
.case-study-meta { font-size: 0.82rem; color: var(--text-tertiary); margin-bottom: 0.5rem; }
.case-study-desc { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.55; }

/* ==========================================
   DASHBOARD
   ========================================== */
.dash-layout {
  display: flex;
  padding-top: var(--nav-height);
  min-height: 100vh;
}
.dash-sidebar {
  width: 260px; min-width: 260px;
  background: var(--bg-elevated);
  border-right: 1px solid var(--border-primary);
  padding: 1.5rem 0;
  display: flex; flex-direction: column;
}
.dash-nav { display: flex; flex-direction: column; gap: 2px; padding: 0 0.75rem; flex: 1; }
.dash-nav-item {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.65rem 0.9rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem; font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.2s ease;
  cursor: pointer;
}
.dash-nav-item:hover { background: var(--bg-hover); color: var(--text-primary); }
.dash-nav-item.active { background: rgba(232, 168, 50, 0.1); color: var(--accent-spark); }
.dash-nav-item .nav-icon { width: 20px; text-align: center; font-size: 1rem; }
.dash-nav-item .nav-badge {
  margin-left: auto;
  background: var(--accent-spark); color: var(--text-inverse);
  font-size: 0.68rem; font-weight: 700;
  padding: 0.1rem 0.45rem; border-radius: var(--radius-full);
}
.dash-nav-section {
  font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-tertiary);
  padding: 1.5rem 0.9rem 0.5rem;
}
.dash-user-card {
  padding: 1rem 1.25rem;
  margin: 0 0.75rem;
  border-top: 1px solid var(--border-subtle);
  display: flex; align-items: center; gap: 0.75rem;
}
.dash-user-name { font-size: 0.88rem; font-weight: 600; color: var(--text-primary); }
.dash-user-role { font-size: 0.78rem; color: var(--text-tertiary); }

.dash-main {
  flex: 1; padding: 2rem 2.5rem;
  overflow-y: auto; max-height: calc(100vh - var(--nav-height));
}
.dash-page-title {
  font-size: 1.5rem; font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
}
.dash-page-sub {
  font-size: 0.92rem; color: var(--text-secondary);
  margin-bottom: 2rem;
}

.dash-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 2rem; }

.dash-section { margin-bottom: 2rem; }
.dash-section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1rem;
}
.dash-section-title { font-size: 1rem; font-weight: 700; color: var(--text-primary); }

/* --- Connection Request Card (Dashboard) --- */
.request-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex; align-items: flex-start; gap: 1rem;
  transition: border-color 0.25s ease;
}
.request-card:hover { border-color: var(--border-spark); }
.request-info { flex: 1; }
.request-from { font-weight: 700; font-size: 0.95rem; color: var(--text-primary); }
.request-event { font-size: 0.82rem; color: var(--text-tertiary); margin-top: 0.15rem; }
.request-message { font-size: 0.88rem; color: var(--text-secondary); margin-top: 0.5rem; line-height: 1.5; }
.request-time { font-size: 0.78rem; color: var(--text-tertiary); margin-top: 0.5rem; }
.request-actions { display: flex; gap: 0.5rem; margin-top: 0.75rem; }

/* --- Activity Feed --- */
.activity-item {
  display: flex; gap: 0.75rem; padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-subtle);
}
.activity-item:last-child { border-bottom: none; }
.activity-dot {
  width: 8px; height: 8px; min-width: 8px;
  border-radius: 50%; margin-top: 6px;
}
.activity-dot.spark { background: var(--accent-spark); }
.activity-dot.blue { background: var(--accent-blue); }
.activity-dot.green { background: var(--success); }
.activity-text { font-size: 0.88rem; color: var(--text-secondary); }
.activity-text strong { color: var(--text-primary); }
.activity-time { font-size: 0.78rem; color: var(--text-tertiary); margin-top: 0.2rem; }

/* --- Profile Completeness Widget --- */
.completeness-widget {
  background: var(--bg-elevated);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}
.completeness-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.completeness-score { font-family: var(--font-display); font-size: 2rem; color: var(--accent-spark); }
.completeness-items { display: flex; flex-direction: column; gap: 0.6rem; margin-top: 1rem; }
.completeness-item {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 0.85rem; color: var(--text-secondary);
}
.completeness-item .check-circle {
  width: 20px; height: 20px; min-width: 20px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 0.65rem;
}
.completeness-item.done .check-circle { background: var(--success-bg); color: var(--success); }
.completeness-item.pending .check-circle { background: var(--bg-surface); color: var(--text-tertiary); border: 1.5px solid var(--border-primary); }

/* ==========================================
   THEME TOGGLE
   ========================================== */
.theme-toggle {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  transition: all 0.25s ease;
  cursor: pointer;
  font-size: 1.1rem;
}
.theme-toggle:hover { background: var(--bg-hover); color: var(--accent-spark); }

/* ==========================================
   ANIMATIONS
   ========================================== */
@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes slide-in-right {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes spark-burst {
  0% { transform: scale(0); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.8; }
  100% { transform: scale(1); opacity: 0; }
}
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.animate-on-scroll {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.animate-on-scroll.visible { opacity: 1; transform: translateY(0); }
.animate-on-scroll:nth-child(2) { transition-delay: 0.1s; }
.animate-on-scroll:nth-child(3) { transition-delay: 0.2s; }
.animate-on-scroll:nth-child(4) { transition-delay: 0.3s; }
.animate-on-scroll:nth-child(5) { transition-delay: 0.4s; }

.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 1024px) {
  .pillars { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .steps-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .step-connector { display: none; }
  .profile-body { grid-template-columns: 1fr; }
  .structured-fields { grid-template-columns: 1fr; }
  .dash-stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .directory-layout { flex-direction: column; }
  .filters-sidebar { width: 100%; min-width: unset; flex-direction: row; flex-wrap: wrap; gap: 0.75rem; }
  .filter-section { flex: 1; min-width: 200px; }
}

@media (max-width: 768px) {
  .container, .container-wide { padding: 0 1.25rem; }
  .section { padding: 4rem 0; }
  .nav-links { display: none; }
  .nav-mobile-toggle { display: flex; }
  .hero-stats { flex-direction: column; gap: 1.5rem; }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .vendor-grid { grid-template-columns: 1fr; }
  .profile-hero-inner { flex-direction: column; }
  .profile-actions { width: 100%; flex-direction: row; }
  .dash-sidebar { display: none; }
  .dash-main { padding: 1.5rem; }
  .dash-stats { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
}

@media (max-width: 480px) {
  .vendor-card { padding: 1.25rem; }
  .pricing-card { padding: 1.5rem; }
  .dash-stats { grid-template-columns: 1fr; }
  .profile-actions { flex-direction: column; }
}

/* --- Noise / Grain Texture Overlay --- */
.grain-overlay {
  position: fixed; inset: 0; z-index: 9999;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px;
}
.theme-light .grain-overlay { opacity: 0.025; }
