/* ═══════════════════════════════════════════════════════════
   AVTARIUM - Unified Theme v3.0
   ═══════════════════════════════════════════════════════════ */

:root {
  /* ══════ COLORS ══════ */
  --bg-deep: #060a10;
  --bg-main: #0a0f18;
  --bg-card: #0f1520;
  --bg-card-hover: #141c2a;
  --border: #1a2535;
  --mint: #00D9A5;
  --mint-glow: rgba(0, 217, 165, 0.2);
  --mint-soft: rgba(0, 217, 165, 0.1);
  --text: #cbd5e1;
  --text-secondary: #8b9cb3;
  --text-muted: #5a6a7f;
  --ozon-blue: #005bff;
  --wb-purple: #cb11ab;

  /* ══════ ALIASES ══════ */
  --bg: var(--bg-main);
  --bg-elevated: var(--bg-card);
  --card: var(--bg-card);
  --card-hover: var(--bg-card-hover);
  --line: var(--border);
  --line-strong: #243045;
  --muted: var(--text-muted);
  --muted-dark: #475569;
  --mint-hover: #00f5c4;
  --mint-subtle: var(--mint-soft);

  /* ══════ SECONDARY ══════ */
  --blue: #3b82f6;
  --blue-glow: rgba(59, 130, 246, 0.3);
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #0ea5e9;

  /* ══════ SPACING ══════ */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;

  /* ══════ RADIUS ══════ */
  --r-sm: 6px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-xl: 16px;
  --r-full: 9999px;

  /* ══════ SHADOWS ══════ */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.15);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.25);
  --shadow-glow: 0 0 20px var(--mint-glow);

  /* ══════ TYPOGRAPHY ══════ */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'SF Mono', Consolas, monospace;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 2rem;
  --text-4xl: 2.5rem;
}

/* ══════ LIGHT THEME ══════ */
[data-theme="light"] {
  --bg-deep: #f1f5f9;
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-hover: #f1f5f9;
  --border: rgba(15, 23, 42, 0.1);
  --line-strong: rgba(15, 23, 42, 0.15);
  --text: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --muted-dark: #94a3b8;
  --mint: #059669;
  --mint-hover: #047857;
  --mint-glow: rgba(5, 150, 105, 0.2);
  --mint-soft: rgba(5, 150, 105, 0.08);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.1);
  --bg: var(--bg-main);
  --bg-elevated: var(--bg-card);
  --card: var(--bg-card);
  --card-hover: var(--bg-card-hover);
  --line: var(--border);
  --muted: var(--text-muted);
  --mint-subtle: var(--mint-soft);
}

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

/* ══════ LAYOUT ══════ */
.container { width: 100%; max-width: 1400px; margin: 0 auto; padding: 0 var(--space-5); }
.container-sm { max-width: 640px; }
.container-md { max-width: 900px; }
.container-lg { max-width: 1200px; }

/* ══════ TYPOGRAPHY ══════ */
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.25; color: var(--text); }
h1 { font-size: var(--text-3xl); }
h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-xl); }
h4 { font-size: var(--text-lg); }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.text-mint { color: var(--mint); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-danger { color: var(--danger); }

/* ══════ SCROLLBAR ══════ */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-main); }
::-webkit-scrollbar-thumb { background: var(--text-muted); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-secondary); }

/* ══════ ANIMATIONS ══════ */
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.6; } }
@keyframes spin { to { transform: rotate(360deg); } }
.animate-fadeIn { animation: fadeIn 0.3s ease-out; }
.animate-pulse { animation: pulse 2s infinite; }
.animate-spin { animation: spin 0.8s linear infinite; }
.fade-in { animation: fadeIn 0.4s ease-out; }

/* ═══════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  padding: 0.625rem 1.25rem;
  font-size: var(--text-sm); font-weight: 600; line-height: 1;
  border: 1px solid transparent;
  border-radius: var(--r-md);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-primary { background: var(--mint); color: var(--bg-deep); border-color: var(--mint); }
.btn-primary:hover:not(:disabled) { background: var(--mint-hover); border-color: var(--mint-hover); box-shadow: 0 8px 30px var(--mint-glow); transform: translateY(-2px); }

.btn-secondary { background: var(--bg-card); color: var(--text); border-color: var(--border); }
.btn-secondary:hover:not(:disabled) { background: var(--bg-card-hover); border-color: var(--text-muted); }

.btn-ghost { background: transparent; color: var(--text-secondary); border-color: transparent; }
.btn-ghost:hover:not(:disabled) { color: var(--text); background: rgba(255,255,255,0.05); }

.btn-outline { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-outline:hover:not(:disabled) { border-color: var(--mint); color: var(--mint); }

.btn-danger { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn-danger:hover:not(:disabled) { background: #dc2626; border-color: #dc2626; }

.btn-sm { padding: 0.4rem 0.875rem; font-size: var(--text-xs); }
.btn-lg { padding: 0.875rem 1.75rem; font-size: var(--text-base); }
.btn-block { width: 100%; }
.btn-icon { width: 36px; height: 36px; padding: 0; }
.btn-icon.btn-sm { width: 32px; height: 32px; }

.btn-row { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.btn-group { display: flex; }
.btn-group .btn { border-radius: 0; }
.btn-group .btn:first-child { border-radius: var(--r-md) 0 0 var(--r-md); }
.btn-group .btn:last-child { border-radius: 0 var(--r-md) var(--r-md) 0; }

/* ═══════════════════════════════════════════════════════════
   CARDS
   ═══════════════════════════════════════════════════════════ */
.card {
  margin-bottom: var(--space-4);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--space-5);
  transition: all 0.2s;
}
.card:hover { border-color: var(--line-strong); }
.card-hover:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.card-header {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: var(--space-4);
  margin-bottom: var(--space-4);
  border-bottom: 1px solid var(--border);
}
.card-title { font-size: var(--text-lg); font-weight: 600; }

.module-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--space-5);
  min-height: 180px;
  position: relative;
  transition: all 0.2s;
}
.module-card:hover { border-color: var(--line-strong); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.module-card.locked { opacity: 0.6; }
.module-card.locked::after { content: '🔒'; position: absolute; top: var(--space-3); right: var(--space-3); font-size: 1.25rem; }

.kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--space-5);
}
.kpi-card .metric-value { font-size: var(--text-3xl); font-weight: 800; color: var(--text); line-height: 1; }
.kpi-card .metric-label { font-size: var(--text-sm); color: var(--text-muted); margin-top: var(--space-2); }

.metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--space-5);
  position: relative;
}
.metric-card::after {
  content: '';
  position: absolute; bottom: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--mint) 0%, transparent 100%);
  border-radius: 0 0 var(--r-lg) var(--r-lg);
}
.metric-value { font-size: var(--text-2xl); font-weight: 700; color: var(--text); }
.metric-label { font-size: var(--text-sm); color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.metric-sub { font-size: var(--text-sm); color: var(--text-muted); }
.metric-change { font-size: 0.75rem; color: var(--mint); margin-top: 0.25rem; }
.metric-change.negative { color: var(--danger); }

.shop-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--space-5);
  transition: all 0.2s;
}
.shop-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.shop-card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: var(--space-4); }
.shop-name { font-size: var(--text-xl); font-weight: 600; color: var(--text); }
.shop-meta { font-size: var(--text-sm); color: var(--text-muted); }
.shop-stats { display: flex; gap: var(--space-4); margin-top: var(--space-4); }
.shop-actions { display: flex; gap: var(--space-2); margin-top: var(--space-5); flex-wrap: wrap; }

/* ═══════════════════════════════════════════════════════════
   FORMS
   ═══════════════════════════════════════════════════════════ */
.form-group { margin-bottom: var(--space-5); }
.form-label { display: block; margin-bottom: var(--space-2); font-size: var(--text-sm); font-weight: 500; color: var(--text-secondary); }
.form-input, .form-select, .form-textarea, .form-control {
  width: 100%;
  padding: 0.875rem 1rem;
  font-size: var(--text-sm);
  background: var(--bg-main);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  color: var(--text);
  transition: all 0.2s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus, .form-control:focus {
  outline: none;
  border-color: var(--mint);
  box-shadow: 0 0 0 3px var(--mint-soft);
}
.form-input::placeholder { color: var(--text-muted); }
.form-textarea { min-height: 100px; resize: vertical; }
.form-hint { margin-top: var(--space-1); font-size: var(--text-xs); color: var(--text-muted); }
.form-error { color: var(--danger); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); }
.form-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--space-6);
  margin-bottom: var(--space-6);
}
.form-section h3 { margin: 0 0 var(--space-5); padding-bottom: var(--space-3); border-bottom: 1px solid var(--border); }
.form-actions { display: flex; gap: var(--space-3); margin-top: var(--space-5); }

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 3rem;
}
.contact-form h2 { font-size: 1.5rem; margin-bottom: 2rem; }

/* ═══════════════════════════════════════════════════════════
   BADGES
   ═══════════════════════════════════════════════════════════ */
.badge {
  display: inline-flex; align-items: center; gap: var(--space-1);
  padding: 0.25rem 0.5rem;
  font-size: var(--text-xs); font-weight: 600;
  border-radius: var(--r-full);
  border: 1px solid transparent;
}
.badge-success { background: rgba(34,197,94,0.15); color: var(--success); border-color: rgba(34,197,94,0.3); }
.badge-warning { background: rgba(245,158,11,0.15); color: var(--warning); border-color: rgba(245,158,11,0.3); }
.badge-danger { background: rgba(239,68,68,0.15); color: var(--danger); border-color: rgba(239,68,68,0.3); }
.badge-info { background: rgba(14,165,233,0.15); color: var(--info); border-color: rgba(14,165,233,0.3); }
.badge-mint { background: var(--mint-soft); color: var(--mint); border-color: rgba(0,217,165,0.3); }

.platform-badge { display: inline-block; padding: 2px 8px; border-radius: var(--r-sm); font-size: var(--text-xs); font-weight: 600; }
.platform-badge.ozon { background: rgba(0,91,255,0.15); color: var(--ozon-blue); }
.platform-badge.wb { background: rgba(203,17,171,0.15); color: var(--wb-purple); }

.chip {
  display: inline-flex; align-items: center; gap: var(--space-1);
  padding: 6px 10px;
  border-radius: var(--r-full);
  background: var(--bg-card);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  font-size: var(--text-sm);
  cursor: pointer;
  transition: all 0.15s;
}
.chip:hover { border-color: var(--text-muted); }
.chip.active { background: var(--mint-soft); border-color: var(--mint); color: var(--mint); }

.feature-tag {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: var(--mint-soft);
  color: var(--mint);
  padding: 0.35rem 0.75rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 1rem;
  width: fit-content;
}

/* ═══════════════════════════════════════════════════════════
   TABLES
   ═══════════════════════════════════════════════════════════ */
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 0.75rem 1rem; text-align: left; border-bottom: 1px solid var(--border); }
.table th { font-size: var(--text-xs); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); background: var(--bg-card); }
.table tbody tr:hover { background: rgba(255,255,255,0.02); }
.table-modern { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--border); }
.table-zebra tbody tr:nth-child(odd) { background: rgba(255,255,255,0.02); }

/* ═══════════════════════════════════════════════════════════
   ALERTS
   ═══════════════════════════════════════════════════════════ */
.alert { padding: var(--space-4); border-radius: var(--r-md); border: 1px solid; font-size: var(--text-sm); margin-bottom: var(--space-4); }
.alert-success { background: rgba(34,197,94,0.1); border-color: rgba(34,197,94,0.3); color: var(--success); }
.alert-warning { background: rgba(245,158,11,0.1); border-color: rgba(245,158,11,0.3); color: var(--warning); }
.alert-danger, .alert-error { background: rgba(239,68,68,0.1); border-color: rgba(239,68,68,0.3); color: var(--danger); }
.alert-info { background: rgba(14,165,233,0.1); border-color: rgba(14,165,233,0.3); color: var(--info); }

/* ═══════════════════════════════════════════════════════════
   FILTERS
   ═══════════════════════════════════════════════════════════ */
.filters-container { display: flex; gap: var(--space-2); flex-wrap: wrap; margin-bottom: var(--space-5); }
.filter-tab {
  padding: 0.5rem 1rem;
  font-size: var(--text-sm); font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: all 0.15s;
}
.filter-tab:hover { color: var(--text); border-color: var(--text-muted); }
.filter-tab.active { color: var(--mint); background: var(--mint-soft); border-color: var(--mint); }
.pill-filter { border-radius: var(--r-full); }

  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  margin-bottom: var(--space-5);
}
.profile-section-header {
  padding: var(--space-5);
  border-bottom: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
}
.profile-section-title { font-size: var(--text-lg); font-weight: 600; }
.profile-section-body { padding: var(--space-5); }

/* ═══════════════════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════════════════ */
.topnav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(15, 21, 32, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  padding: 0 var(--space-5);
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
}
.nav-brand { display: flex; align-items: center; gap: var(--space-2); text-decoration: none; }
.nav-brand .wordmark { font-size: var(--text-xl); font-weight: 700; color: var(--text); letter-spacing: -0.02em; }
.nav-left { display: flex; align-items: center; gap: var(--space-4); }
.nav-back {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  transition: all 0.15s;
}
.nav-back:hover { color: var(--text); border-color: var(--text-muted); background: rgba(255,255,255,0.04); }

/* Nav Links - Desktop */
.nav-links { display: flex; gap: var(--space-1); }
.nav-link {
  display: flex; align-items: center; gap: var(--space-2);
  padding: 0.5rem 0.875rem;
  font-size: var(--text-sm); font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--r-md);
  transition: all 0.15s;
}
.nav-link:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.nav-link.active { color: var(--mint); background: var(--mint-soft); }
.nav-link svg { width: 18px; height: 18px; flex-shrink: 0; }

.nav-aux { display: flex; align-items: center; gap: var(--space-2); }

/* Theme Toggle */
.nav-theme {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; padding: 0;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s;
}
.nav-theme:hover { border-color: var(--mint); color: var(--mint); }
.theme-icon--dark { display: none; }
[data-theme="light"] .theme-icon--light { display: none; }
[data-theme="light"] .theme-icon--dark { display: block; }

/* Profile Dropdown */
.nav-profile { position: relative; }
.nav-profile__trigger {
  display: flex; align-items: center; gap: var(--space-2);
  padding: 4px; padding-right: var(--space-2);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s;
}
.nav-profile__trigger:hover { border-color: var(--text-muted); }
.nav-profile__avatar {
  display: flex; align-items: center; justify-content: center;
  width: 26px; height: 26px;
  background: linear-gradient(135deg, var(--mint), var(--blue));
  color: #000;
  font-size: var(--text-xs); font-weight: 600;
  border-radius: var(--r-sm);
}
.nav-profile__dropdown {
  display: none;
  position: absolute; top: calc(100% + 8px); right: 0;
  min-width: 200px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--space-2);
  box-shadow: var(--shadow-lg);
  z-index: 1001;
}
.nav-profile__dropdown.open { display: block; }
.nav-profile__info { padding: var(--space-2) var(--space-3); }
.nav-profile__email { font-size: var(--text-xs); color: var(--text-muted); }
.nav-profile__divider { height: 1px; background: var(--border); margin: var(--space-2) 0; }
.nav-profile__item {
  display: flex; align-items: center; gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  border-radius: var(--r-md);
  transition: all 0.15s;
}
.nav-profile__item:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.nav-profile__item--danger:hover { color: var(--danger); background: rgba(239,68,68,0.1); }
.nav-profile__item svg { width: 16px; height: 16px; }

/* Burger Menu */
.nav-burger {
  display: none;
  flex-direction: column; justify-content: center; gap: 5px;
  width: 32px; height: 32px; padding: 6px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  cursor: pointer;
}
.nav-burger span { display: block; width: 100%; height: 2px; background: var(--text-muted); border-radius: 1px; transition: all 0.15s; }
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ═══════════════════════════════════════════════════════════
   UTILITIES
   ═══════════════════════════════════════════════════════════ */
.back-link {
  display: inline-flex; align-items: center; gap: var(--space-2);
  color: var(--text-muted);
  font-size: var(--text-sm);
  transition: color 0.15s;
}
.back-link:hover { color: var(--text); }

.empty-state {
  text-align: center;
  padding: var(--space-7);
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px dashed var(--border);
  border-radius: var(--r-lg);
}

.trend-up { color: var(--success); }
.trend-down { color: var(--danger); }

.show { display: block; }
.hidden { display: none; }

/* Grid */
.grid { display: grid; gap: var(--space-5); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-4); align-items: stretch; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }

/* Flex */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: var(--space-1); }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-5 { gap: var(--space-5); }

/* Spacing */
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-5 { margin-top: var(--space-5); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-5 { margin-bottom: var(--space-5); }
.p-4 { padding: var(--space-4); }
.p-5 { padding: var(--space-5); }

/* Text */
.text-center { text-align: center; }
.text-right { text-align: right; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE (mobile-first, от большого к малому)
   ═══════════════════════════════════════════════════════════ */

/* Tablet */
@media (max-width: 1200px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

/* Mobile */
@media (max-width: 768px) {
  .container { padding: 0 var(--space-4); }
  
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  
  /* Nav: скрываем ссылки, показываем бургер */
  .nav-links {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    flex-direction: column;
    padding: var(--space-4);
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    z-index: 999;
  }
  .nav-links.open { display: flex; }
  .nav-link { padding: 0.75rem var(--space-4); width: 100%; }
  .nav-burger { display: flex; }
  
  .profile-header { flex-direction: column; text-align: center; }
}

/* ═══════════════════════════════════════════════════════════
   PROFILE
   ═══════════════════════════════════════════════════════════ */
.profile-container {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--space-8) var(--space-4);
}

.profile-header {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  padding: var(--space-6);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  margin-bottom: var(--space-6);
  min-height: 120px;
}

.profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--mint), var(--blue));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-2xl);
  font-weight: 700;
  color: white;
  text-transform: uppercase;
  flex-shrink: 0;
}

.profile-info { flex: 1; }
.profile-info h1 {
  margin: 0 0 var(--space-1);
  font-size: var(--text-xl);
  font-weight: 600;
}
.profile-info .email {
  color: var(--text-muted);
  font-size: var(--text-sm);
}



.profile-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  margin-bottom: var(--space-6);
  overflow: hidden;
}

.profile-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-5) var(--space-6);
  border-bottom: 1px solid var(--border);
}

.profile-section-title {
  font-size: var(--text-base);
  font-weight: 600;
  margin: 0;
  color: var(--text);
}

.profile-section-body {
  padding: var(--space-6);
}

.profile-section-danger {
  border-color: rgba(239, 68, 68, 0.3);
}

.profile-section-danger .profile-section-header {
  background: rgba(239, 68, 68, 0.05);
}

/* Profile Items */
.security-item,
.notification-item,
.danger-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--border);
}

.security-item:last-child,
.notification-item:last-child,
.danger-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.security-item:first-child,
.notification-item:first-child,
.danger-item:first-child {
  padding-top: 0;
}

.security-info h3,
.notification-info h3,
.danger-info h3 {
  margin: 0 0 var(--space-1);
  font-size: var(--text-sm);
  font-weight: 600;
}

.security-info p,
.notification-info p,
.danger-info p {
  margin: 0;
  font-size: var(--text-xs);
  color: var(--text-muted);
}

/* Sessions Table */
.sessions-table {
  width: 100%;
  border-collapse: collapse;
}

.sessions-table th,
.sessions-table td {
  padding: var(--space-4);
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: var(--text-sm);
}

.sessions-table th {
  font-weight: 600;
  color: var(--text-muted);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

.session-current {
  background: var(--mint-soft);
}

.session-current td:first-child {
  border-left: 3px solid var(--mint);
}

/* Status Badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--r-full);
  font-size: var(--text-xs);
  font-weight: 500;
}

.status-enabled {
  background: var(--mint-soft);
  color: var(--mint);
}

.status-disabled {
  background: rgba(255,255,255,0.05);
  color: var(--text-muted);
}

/* Toggle Switch */
.toggle-switch {
  position: relative;
  width: 44px;
  height: 24px;
  background: var(--bg-main);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  cursor: pointer;
  transition: all 0.2s;
}

.toggle-switch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  background: var(--text-muted);
  border-radius: 50%;
  transition: all 0.2s;
}

.toggle-switch.active {
  background: var(--mint);
  border-color: var(--mint);
}

.toggle-switch.active::after {
  left: 22px;
  background: white;
}

@media (max-width: 640px) {
  .profile-header {
    flex-direction: column;
    text-align: center;
    gap: var(--space-4);
  }
  
  .profile-nav {
    gap: 0;
  }
  
  .profile-nav a {
    padding: var(--space-2) var(--space-3);
    font-size: var(--text-xs);
  }
  
  .sessions-table {
    font-size: var(--text-xs);
  }
  
  .sessions-table th,
  .sessions-table td {
    padding: var(--space-2);
  }
}


/* ═══════════════════════════════════════════════════════════
   FORMS
   ═══════════════════════════════════════════════════════════ */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); margin-bottom: var(--space-4); }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }

.form-group { display: flex; flex-direction: column; gap: var(--space-2); }
.form-label { font-size: var(--text-sm); font-weight: 600; color: var(--text); }
.form-hint { font-size: var(--text-xs); color: var(--text-muted); margin-top: -var(--space-1); }
.form-input {
  padding: var(--space-3) var(--space-4);
  background: var(--bg-main);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  color: var(--text);
  transition: all 0.2s;
}
.form-input:focus { outline: none; border-color: var(--mint); background: var(--bg-deep); }
.form-input:disabled { opacity: 0.6; cursor: not-allowed; }

/* ═══════════════════════════════════════════════════════════
   TABLES
   ═══════════════════════════════════════════════════════════ */
.table-wrapper { overflow-x: auto; }
.sessions-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}
.sessions-table thead { background: var(--bg-main); }
.sessions-table th {
  padding: var(--space-3) var(--space-4);
  text-align: left;
  font-weight: 600;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}
.sessions-table td {
  padding: var(--space-4);
  border-bottom: 1px solid var(--border);
}
.sessions-table tbody tr { transition: background 0.2s; }
.sessions-table tbody tr:hover { background: var(--bg-card-hover); }
.sessions-table tbody tr.session-current { background: rgba(0, 217, 165, 0.08); }
.sessions-table tbody tr.session-current td { border-bottom-color: var(--mint-glow); }

.device-icon { margin-right: var(--space-2); font-size: var(--text-lg); }
.ip-cell, .date-cell { color: var(--text-muted); font-family: var(--font-mono); font-size: var(--text-xs); }
.action-cell { text-align: right; }

.btn-icon-delete {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: var(--space-2);
  font-size: var(--text-lg);
  transition: color 0.2s;
  border-radius: var(--r-md);
}
.btn-icon-delete:hover { color: var(--danger); background: rgba(239, 68, 68, 0.1); }

/* ═══════════════════════════════════════════════════════════
   BADGES & STATUS
   ═══════════════════════════════════════════════════════════ */
.badge {
  display: inline-flex;
  padding: 0.25rem 0.75rem;
  font-size: var(--text-xs);
  font-weight: 600;
  border-radius: var(--r-full);
  white-space: nowrap;
}
.badge-primary { background: var(--mint-subtle); color: var(--mint); }

.status-badge {
  display: inline-block;
  padding: 0.375rem 0.875rem;
  font-size: var(--text-xs);
  font-weight: 600;
  border-radius: var(--r-md);
  white-space: nowrap;
}
.status-enabled { background: rgba(34, 197, 94, 0.15); color: var(--success); }
.status-disabled { background: rgba(107, 114, 128, 0.15); color: var(--text-muted); }

/* ═══════════════════════════════════════════════════════════
   SECURITY & DANGER ITEMS
   ═══════════════════════════════════════════════════════════ */
.security-item, .danger-item, .notification-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  margin-bottom: var(--space-4);
}
.security-item:last-child, .danger-item:last-child, .notification-item:last-child { margin-bottom: 0; }

.security-info h3, .danger-info h3, .notification-info h3 {
  margin: 0 0 var(--space-1) 0;
  font-size: var(--text-base);
}
.security-info p, .danger-info p, .notification-info p {
  margin: 0;
  color: var(--text-secondary);
  font-size: var(--text-sm);
}

.security-status, .danger-status, .notification-status {
  display: flex;
  gap: var(--space-3);
  align-items: center;
  flex-shrink: 0;
}

.danger-item { border-color: rgba(239, 68, 68, 0.3); background: rgba(239, 68, 68, 0.02); }

.empty-state {
  padding: var(--space-6) var(--space-4);
  text-align: center;
  color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════════════
   TOGGLE SWITCH
   ═══════════════════════════════════════════════════════════ */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 28px;
}
.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: var(--bg-main);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  transition: 0.3s;
}
.toggle-slider:before {
  content: "";
  position: absolute;
  height: 20px;
  width: 20px;
  left: 4px;
  bottom: 3px;
  background-color: var(--text-muted);
  border-radius: var(--r-full);
  transition: 0.3s;
}
input:checked + .toggle-slider {
  background-color: var(--mint);
  border-color: var(--mint);
}
input:checked + .toggle-slider:before {
  transform: translateX(22px);
  background-color: var(--bg-deep);
}


/* ═══════════════════════════════════════════════════════════
   PROFILE PAGE - REDESIGN
   ═══════════════════════════════════════════════════════════ */
.profile-page {
  min-height: 100vh;
  background: 
    radial-gradient(ellipse at 20% 20%, rgba(0, 217, 165, 0.03) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(99, 102, 241, 0.03) 0%, transparent 50%),
    var(--bg-main);
  padding: var(--space-8) var(--space-4);
}

.profile-container {
  max-width: 960px;
  margin: 0 auto;
}

.profile-header {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  padding: var(--space-8);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  margin-bottom: var(--space-6);
}

.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--mint), var(--blue));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-3xl);
  font-weight: 700;
  color: white;
  text-transform: uppercase;
  flex-shrink: 0;
}

.profile-info h1 {
  margin: 0 0 var(--space-1);
  font-size: var(--text-2xl);
  font-weight: 600;
}

.profile-info .email {
  color: var(--text-muted);
  margin-bottom: var(--space-3);
}

.profile-meta {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--r-full);
  font-size: var(--text-xs);
  font-weight: 500;
}

.badge-role {
  background: var(--mint-soft);
  color: var(--mint);
}

.badge-org {
  background: rgba(99, 102, 241, 0.1);
  color: #818cf8;
}

.badge-plan {
  background: rgba(251, 191, 36, 0.1);
  color: #fbbf24;
}

/* Nav с иконками */
.profile-nav {
  display: flex;
  gap: var(--space-2);
  padding: var(--space-3);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  margin-bottom: var(--space-6);
  overflow-x: auto;
}

.profile-nav a {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  color: var(--text-secondary);
  font-size: var(--text-sm);
  font-weight: 500;
  border-radius: var(--r-lg);
  transition: all 0.15s;
  white-space: nowrap;
}

.profile-nav a:hover {
  color: var(--text);
  background: rgba(255,255,255,0.05);
}

.profile-nav a.active {
  color: var(--mint);
  background: var(--mint-soft);
}

.profile-nav a svg {
  opacity: 0.7;
}

.profile-nav a.active svg {
  opacity: 1;
}

/* Grid layout */
.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  margin-bottom: var(--space-6);
}

@media (max-width: 768px) {
  .profile-grid {
    grid-template-columns: 1fr;
  }
}

/* Sections */
.profile-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
}

.profile-section:not(:last-child) {
  margin-bottom: var(--space-6);
}

.profile-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-5) var(--space-6);
  border-bottom: 1px solid var(--border);
}

.profile-section-title {
  font-size: var(--text-base);
  font-weight: 600;
  margin: 0;
}

.profile-section-body {
  padding: var(--space-6);
}

.profile-section-danger {
  border-color: rgba(239, 68, 68, 0.2);
}

.profile-section-danger .profile-section-header {
  background: rgba(239, 68, 68, 0.03);
}

/* Info Grid */
.info-grid {
  display: grid;
  gap: var(--space-4);
}

.info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--border);
}

.info-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.info-label {
  color: var(--text-muted);
  font-size: var(--text-sm);
}

.info-value {
  font-weight: 500;
}

/* Security/Notification Items */
.security-item,
.notification-item,
.danger-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--border);
  gap: var(--space-4);
}

.security-item:last-child,
.notification-item:last-child,
.danger-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.security-item:first-child,
.notification-item:first-child,
.danger-item:first-child {
  padding-top: 0;
}

.security-info h3,
.notification-info h3,
.danger-info h3 {
  margin: 0 0 var(--space-1);
  font-size: var(--text-sm);
  font-weight: 600;
}

.security-info p,
.notification-info p,
.danger-info p {
  margin: 0;
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.security-status,
.notification-actions {
  display: flex;
  align-items: center;
}

/* Sessions */
.sessions-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.session-item {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4);
  background: var(--bg-main);
  border-radius: var(--r-lg);
  border: 1px solid transparent;
}

.session-item.session-current {
  background: var(--mint-soft);
  border-color: rgba(0, 217, 165, 0.2);
}

.session-icon {
  color: var(--text-muted);
}

.session-info {
  flex: 1;
}

.session-device {
  font-size: var(--text-sm);
  margin-bottom: var(--space-1);
}

.session-meta {
  display: flex;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--text-muted);
}

/* Toggle Switch */
.toggle-switch-label {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
  cursor: pointer;
}

.toggle-switch-label input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-switch-slider {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-main);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  transition: all 0.2s;
}

.toggle-switch-slider::before {
  content: '';
  position: absolute;
  height: 20px;
  width: 20px;
  left: 2px;
  bottom: 2px;
  background: var(--text-muted);
  border-radius: 50%;
  transition: all 0.2s;
}

.toggle-switch-label input:checked + .toggle-switch-slider {
  background: var(--mint);
  border-color: var(--mint);
}

.toggle-switch-label input:checked + .toggle-switch-slider::before {
  transform: translateX(22px);
  background: white;
}

/* Billing Card */
.billing-card {
  background: linear-gradient(135deg, rgba(0, 217, 165, 0.05), rgba(99, 102, 241, 0.05));
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--space-6);
}

.billing-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--space-4);
}

.billing-card-header h3 {
  font-size: var(--text-xl);
  font-weight: 700;
  margin: 0;
}

.billing-price {
  text-align: right;
}

.price-amount {
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--mint);
}

.price-currency {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.billing-desc {
  color: var(--text-muted);
  margin-bottom: var(--space-4);
}

.billing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-5);
}

.billing-features li {
  padding: var(--space-2) 0;
  padding-left: var(--space-6);
  position: relative;
  color: var(--text-secondary);
}

.billing-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--mint);
  font-weight: 600;
}

/* Modal */
.modal {
  padding: 0;
  border: none;
  border-radius: var(--r-xl);
  background: var(--bg-card);
  box-shadow: var(--shadow-xl);
  max-width: 400px;
  width: 90%;
}

.modal::backdrop {
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}

.modal-content {
  padding: var(--space-6);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-5);
}

.modal-header h3 {
  margin: 0;
  font-size: var(--text-lg);
}

.modal-close {
  background: none;
  border: none;
  font-size: var(--text-2xl);
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
}

.modal-close:hover {
  color: var(--text);
}

@media (max-width: 640px) {
  .profile-header {
    flex-direction: column;
    text-align: center;
    padding: var(--space-6);
  }
  
  .profile-meta {
    justify-content: center;
  }
  
  .profile-nav {
    padding: var(--space-2);
  }
  
  .profile-nav a {
    padding: var(--space-2) var(--space-3);
    font-size: var(--text-xs);
  }
  
  .profile-nav a svg {
    display: none;
  }
}

/* ══════ PAGE HEADERS ══════ */
.page-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: var(--space-6); }
.page-title { font-size: var(--text-2xl); font-weight: 700; margin: 0; }
.page-sub { font-size: var(--text-sm); color: var(--text-muted); margin-top: var(--space-2); }

/* ══════ PLANS & PRICING ══════ */
.plans-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--space-5); }
.plan-card { padding: var(--space-6); border: 2px solid var(--border); border-radius: var(--r-lg); transition: all 0.2s; }
.plan-card:hover { border-color: var(--mint); transform: translateY(-2px); }

/* ══════ STATS ══════ */
.stat-item { display: flex; flex-direction: column; }
.stat-value { font-size: var(--text-2xl); font-weight: 700; color: var(--text); }
.stat-label { font-size: var(--text-xs); color: var(--text-muted); text-transform: uppercase; margin-top: var(--space-1); }

/* ══════ ADDITIONAL UTILITIES ══════ */
.mb-6 { margin-bottom: var(--space-6); }
.mt-6 { margin-top: var(--space-6); }
.p-6 { padding: var(--space-6); }
.p-0 { padding: 0; }

.text-2xl { font-size: var(--text-2xl); }
.text-xl { font-size: var(--text-xl); }
.text-lg { font-size: var(--text-lg); }
.text-sm { font-size: var(--text-sm); }
.text-xs { font-size: var(--text-xs); }

.flex-1 { flex: 1; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-5 { gap: var(--space-5); }

.w-full { width: 100%; }
.block { display: block; }
.inline-block { display: inline-block; }

/* ══════ COMMON PATTERNS ══════ */
.empty-state { text-align: center; padding: 60px; }
.empty-state-icon { font-size: 48px; margin-bottom: 16px; opacity: 0.3; }
.page-title { font-size: var(--text-2xl); margin-bottom: var(--space-2); }
.form-label { display: block; margin-bottom: 6px; font-weight: 500; font-size: 0.9rem; }
.input-standard { width: 100%; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--text); }
.table-header-cell { padding: 15px; text-align: left; font-weight: 600; color: #495057; }
.stat-label { font-size: 12px; color: var(--muted); }
.stat-value { font-size: 18px; margin-bottom: 8px; }

/* ══════ MORE UTILITIES ══════ */
.mb-1 { margin-bottom: var(--space-1, 4px); }
.mb-2 { margin-bottom: var(--space-2); }
.mt-2 { margin-top: var(--space-2); }
.mt-0 { margin-top: 0; }
.mr-2 { margin-right: 8px; }

.text-truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.overflow-x-auto { overflow-x: auto; }

.text-3xl { font-size: 3rem; }
.text-tiny { font-size: 9px; }
.text-mini { font-size: 0.75rem; }
.opacity-30 { opacity: 0.3; }

.flex-gap-2 { display: flex; gap: var(--space-2); }
.bg-card { padding: 16px; background: var(--bg); border-radius: 8px; }
.empty-icon-mint { font-size: 48px; margin-bottom: 16px; color: var(--mint); }
.section-subtitle { font-size: 13px; color: #6c757d; margin-bottom: 5px; }
.pt-8 { padding-top: 32px; }

/* ══════ LAYOUT UTILITIES ══════ */
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-col-gap-3 { display: flex; flex-direction: column; gap: var(--space-3); }
.container-wide { max-width: 1400px; margin: 0 auto; }
.m-0 { margin: 0; }
.mb-3 { margin-bottom: var(--space-3); }
.mt-2-fixed { margin-top: 8px; }

.text-gray { color: #95a5a6; }
.text-10 { font-size: 10px; }
.text-11 { font-size: 11px; }
.text-13 { font-size: 13px; }
.text-15 { font-size: 15px; }

.empty-state-lg { text-align: center; padding: var(--space-8); }
.page-main-title { margin: 0; font-size: 1.8rem; font-weight: 700; }
.nav-item-title { font-size: 15px; font-weight: 500; color: #2c3e50; }
.field-hint { font-size: 12px; color: var(--muted); display: block; margin-bottom: var(--space-1); }

/* ══════ MORE COMPONENTS ══════ */
.section-header-mb4 { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--space-4); }
.section-header-lg { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 32px; }
.flex-col-gap-2 { display: flex; flex-direction: column; gap: var(--space-2); }
.text-secondary { color: var(--text-secondary); }
.hint-mt { color: var(--muted); margin-top: 6px; font-size: 0.9rem; }
.subtitle-gray { color: #7f8c8d; margin-bottom: 15px; }
.empty-card-white { background: white; padding: 60px; text-align: center; border-radius: 12px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.badge-warning-light { background: rgba(245, 158, 11, 0.2); color: var(--warning); }
.card-shadow { padding: 16px; border-radius: 16px; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.cell-center { padding: 12px 16px; text-align: center; }
.page-title-lg { margin-bottom: 30px; font-size: 28px; color: #2c3e50; }
.card-title-base { font-size: var(--text-base); font-weight: 600; margin: 0 0 var(--space-4) 0; }
.text-14 { font-size: 14px; }
.back-link { display: inline-block; margin-bottom: 20px; color: #3498db; text-decoration: none; font-size: 14px; }
.surface-card { background: var(--surface); border-radius: var(--r-sm); padding: var(--space-3); }
.mb-5-alt { margin-bottom: 20px; }
.mb-6-alt { margin-bottom: 24px; }

/* ══════ GRID & FLEX ══════ */
.col-span-2 { grid-column: span 2; }
.flex-gap-3-start { display: flex; gap: var(--space-3); align-items: start; }
.flex-gap-2-stretch { display: flex; gap: var(--space-2); align-items: stretch; }
.flex-gap-3-center { display: flex; align-items: center; gap: var(--space-3); }
.flex-clickable { display: flex; align-items: center; gap: 10px; cursor: pointer; }

/* ══════ TEXT VARIANTS ══════ */
.text-xs-muted { font-size: var(--text-xs); color: var(--muted); }
.text-2xl-m0 { font-size: var(--text-2xl); margin: 0; }
.text-hint { font-weight: 400; font-size: 12px; color: var(--muted); }
.text-32-bold { font-size: 32px; font-weight: 600; color: #2c3e50; }
.text-18-bold { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.text-subtitle { font-size: 13px; color: #95a5a6; margin-bottom: 5px; }
.list-reset { margin: 0; padding-left: 18px; }

/* ══════ COLORS ══════ */
.text-ozon { color: #005bff; }
.text-wb { color: #cb11ab; }
.text-amber { color: #f59e0b; }
.badge-danger-light { background: rgba(239, 68, 68, 0.2); color: var(--danger); }

/* ══════ SIZES ══════ */
.max-w-200 { max-width: 200px; }
.mb-4-fixed { margin-bottom: 16px; }
.empty-icon { font-size: 48px; margin-bottom: 16px; }

/* ══════ TABLE CELLS ══════ */
.cell-right-bold { text-align: right; font-weight: 600; }
.cell-mono-right { padding: var(--space-3); text-align: right; font-family: monospace; }
.empty-cell { text-align: center; padding: 40px; color: var(--muted); }
.empty-cell-sm { text-align: center; padding: 1.5rem; }

/* ══════ MORE UTILITIES ══════ */
.p-3-primary { padding: var(--space-3); color: var(--text-primary); }
.cell-right-pad { padding: 12px 16px; text-align: right; }
.text-truncate-250 { max-width: 250px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mt-5 { margin-top: var(--space-5); }
.mb-2-fixed { margin-bottom: 8px; }
.mb-1rem { margin-bottom: 1rem; }
.mb-075rem { margin-bottom: 0.75rem; }
.gap-5 { gap: 20px; }

.font-semibold-mint { font-weight: 600; color: var(--mint); }
.text-sm-muted { font-size: var(--text-sm); color: var(--text-muted); }
.text-20-bold { font-size: 20px; font-weight: 600; }
.text-11rem { font-size: 1.1rem; margin-bottom: 0.5rem; }
.text-11-muted-mb { font-size: 11px; color: var(--muted); margin-bottom: 4px; }
.text-label-upper { font-size: 10px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--muted); margin-bottom: var(--space-2); }
.text-10-muted { font-size: 10px; color: var(--text-muted); }
.text-08rem-muted { font-size: 0.8rem; color: var(--text-muted); }
.text-085rem-muted { font-size: 0.85rem; color: var(--muted); margin-bottom: 8px; }
.text-secondary-09 { color: var(--text-secondary); font-size: 0.9rem; }
.link-accent { color: var(--accent); text-decoration: none; }

.icon-badge-blue { flex-shrink: 0; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; background: rgba(59, 130, 246, 0.1); border-radius: 50%; color: var(--primary); font-weight: 600; font-size: var(--text-sm); }
.flex-shrink-mt2 { flex-shrink: 0; margin-top: 2px; }
.flex-1-center { flex: 1; text-align: center; }

.section-header-mb6 { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--space-6); }
.section-header-wrap { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--space-3); }
.filter-row { margin-bottom: var(--space-4); font-size: var(--text-base); display: flex; align-items: center; gap: var(--space-2); }

/* ══════ CARDS & CONTAINERS ══════ */
.card-bordered { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 1.5rem; }
.container-wide-pad { max-width: 1400px; margin: 0 auto; padding: 20px; }

/* ══════ INPUTS ══════ */
.input-card { width: 100%; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--text); }
.input-mono { width: 100%; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--text); font-family: monospace; font-size: 0.85rem; }

/* ══════ TABLE ══════ */
.table-full { width: 100%; border-collapse: collapse; }
.th-left { text-align: left; padding: 12px 16px; font-weight: 600; color: var(--muted); font-size: 0.85rem; }
.th-left-sm { padding: 12px; text-align: left; font-weight: 600; color: #495057; font-size: 13px; }
.cell-right-semibold { padding: var(--space-3); text-align: right; font-weight: 600; }

/* ══════ SIZES ══════ */
.w-auto { width: auto; }
.max-w-250 { max-width: 250px; }
.text-truncate-200 { max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ══════ SPACING ══════ */
.p-4 { padding: var(--space-4); }
.mt-3 { margin-top: var(--space-3); }
.flex-filter { margin-bottom: var(--space-4); display: flex; align-items: center; gap: var(--space-2); }

/* ══════ TEXT ══════ */
.text-center-muted { text-align: center; color: var(--muted); }
.text-26-bold { font-size: 26px; font-weight: 600; }
.text-18 { font-size: 18px; }
.text-125rem { font-size: 1.25rem; }
.text-12-muted-mb { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.text-11-upper { font-size: 11px; color: var(--muted); text-transform: uppercase; margin-bottom: var(--space-2); }
.text-11-muted-mt { font-size: 11px; color: var(--muted); margin-top: 4px; }
.text-11 { font-size: 11px; }
.text-08rem-muted { font-size: 0.8rem; color: var(--muted); }
.text-08rem { font-size: 0.8rem; }

/* ══════ MISC ══════ */
.progress-bar-danger { position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: #ef4444; }

/* ══════ CARDS & CONTAINERS ══════ */
.card-bordered { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 1.5rem; }
.container-wide-pad { max-width: 1400px; margin: 0 auto; padding: 20px; }

/* ══════ INPUTS ══════ */
.input-card { width: 100%; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--text); }
.input-mono { width: 100%; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--text); font-family: monospace; font-size: 0.85rem; }

/* ══════ TABLE ══════ */
.table-full { width: 100%; border-collapse: collapse; }
.th-left { text-align: left; padding: 12px 16px; font-weight: 600; color: var(--muted); font-size: 0.85rem; }
.th-left-sm { padding: 12px; text-align: left; font-weight: 600; color: #495057; font-size: 13px; }
.cell-right-semibold { padding: var(--space-3); text-align: right; font-weight: 600; }

/* ══════ SIZES ══════ */
.w-auto { width: auto; }
.max-w-250 { max-width: 250px; }
.text-truncate-200 { max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ══════ SPACING ══════ */
.p-4 { padding: var(--space-4); }
.mt-3 { margin-top: var(--space-3); }
.flex-filter { margin-bottom: var(--space-4); display: flex; align-items: center; gap: var(--space-2); }

/* ══════ TEXT ══════ */
.text-center-muted { text-align: center; color: var(--muted); }
.text-26-bold { font-size: 26px; font-weight: 600; }
.text-18 { font-size: 18px; }
.text-125rem { font-size: 1.25rem; }
.text-12-muted-mb { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.text-11-upper { font-size: 11px; color: var(--muted); text-transform: uppercase; margin-bottom: var(--space-2); }
.text-11-muted-mt { font-size: 11px; color: var(--muted); margin-top: 4px; }
.text-11 { font-size: 11px; }
.text-08rem-muted { font-size: 0.8rem; color: var(--muted); }
.text-08rem { font-size: 0.8rem; }

/* ══════ MISC ══════ */
.progress-bar-danger { position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: #ef4444; }

/* ══════ TEXT VARIANTS ══════ */
.text-0875rem-secondary { font-size: 0.875rem; color: var(--text-secondary); }
.text-upper-muted { font-size: 0.75rem; text-transform: uppercase; color: var(--muted); }
.text-secondary-mb2 { color: var(--text-secondary); margin-bottom: var(--space-2); }

/* ══════ FLEX VARIANTS ══════ */
.flex-1-min0 { flex: 1; min-width: 0; }
.flex-between-start { display: flex; justify-content: space-between; align-items: flex-start; }
.flex-between-simple { display: flex; justify-content: space-between; }
.flex-gap-8 { display: flex; gap: 8px; }
.flex-start-gap2 { display: flex; align-items: start; gap: var(--space-2); }
.grid-gap-3 { display: grid; gap: var(--space-3); }

/* ══════ BORDERS ══════ */
.border-bottom { border-bottom: 1px solid var(--border-color); }
.accent-mint { accent-color: var(--mint); }

/* ══════ WIDTHS ══════ */
.w-12p { width: 12%; }
.max-w-300 { max-width: 300px; }
.text-truncate-300 { max-width: 300px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ══════ INPUTS ══════ */
.input-basic { width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 6px; font-size: 14px; }
.progress-track { width: 100%; height: 8px; background: var(--line); border-radius: 4px; overflow: hidden; }

/* ══════ EMPTY STATES ══════ */
.empty-surface { text-align: center; padding: var(--space-4); background: var(--surface); border-radius: var(--r-md); }
.empty-danger { text-align: center; padding: 40px; color: #ef4444; }
.empty-pad-20 { text-align: center; padding: 20px; }
.text-center-mb6 { text-align: center; margin-bottom: var(--space-6); }
.cell-center-p3 { padding: var(--space-3); text-align: center; }

/* ══════ POSITIONING ══════ */
.chart-container { position: relative; height: 300px; }
.progress-bar-mint { position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: var(--mint); }

/* ══════ MISC ══════ */
.p-5-mb4 { padding: var(--space-5); margin-bottom: var(--space-4); }
.mono-muted { padding: 15px; font-family: monospace; color: #6c757d; }
.opacity-50 { opacity: 0.5; }

/* ══════ FONT SIZES ══════ */
.text-3xl-bold { font-size: var(--text-3xl); margin: 0 0 var(--space-2) 0; font-weight: 700; }
.text-2rem-bold { font-size: 2rem; font-weight: 700; color: var(--mint); }
.text-2rem-bold-plain { font-size: 2rem; font-weight: 700; }
.text-24-bold-mint { font-size: 24px; font-weight: 700; color: var(--mint); }
.text-24-semibold { font-size: 24px; font-weight: 600; }
.text-15rem-mb { font-size: 1.5rem; margin-bottom: 8px; }
.text-15rem-bold { font-size: 1.5rem; font-weight: 700; }
.text-15rem { font-size: 1.5rem; }
.text-12rem-bold { font-size: 1.2rem; font-weight: 700; }
.text-11rem-semibold { font-weight: 600; font-size: 1.1rem; margin-bottom: 8px; }
.text-3rem-mb4 { font-size: 3rem; margin-bottom: var(--space-4); }
.text-xs { font-size: var(--text-xs); }

/* ══════ SMALL TEXT ══════ */
.text-9-muted-mt { font-size: 9px; color: var(--muted); margin-top: 2px; }
.text-10-upper-mb { font-size: 10px; color: var(--muted); text-transform: uppercase; margin-bottom: 4px; }
.text-13-semibold-amber { font-size: 13px; font-weight: 600; color: #f59e0b; }
.text-13-gray { font-size: 13px; color: #6c757d; }
.text-14-gray-mt { font-size: 14px; color: #6b7280; margin-top: 24px; }

/* ══════ MARGINS ══════ */
.mt-16-text12 { margin-top: 16px; font-size: 12px; }
.mt-15-center { margin-top: 15px; color: #6c757d; text-align: center; font-size: 14px; }
.mb-4-text-sm { margin-bottom: var(--space-4); font-size: var(--text-sm); }
.mb-4-hidden { margin-bottom: var(--space-4); display: none; }
.mb-2-upper { margin-bottom: var(--space-2); font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; }
.gap-16-mb32 { gap: 16px; margin-bottom: 32px; }

/* ══════ FLEX ══════ */
.justify-start { justify-content: flex-start; }

/* ══════ TEXT SMALL ══════ */
.text-10 { font-size: 10px; }
.text-09rem-mb12 { font-size: 0.9rem; margin-bottom: 12px; }
.text-08rem-mb4 { font-size: 0.8rem; margin-bottom: 4px; }
.text-085rem-mb4 { font-size: 0.85rem; margin-bottom: 4px; }
.text-075rem-upper-muted { font-size: 0.75rem; text-transform: uppercase; color: var(--text-muted); }
.text-075rem-muted { font-size: 0.75rem; color: var(--text-muted); }
.text-muted-sm { color: var(--muted); font-size: var(--text-sm); }
.text-muted-085 { color: var(--muted); font-size: 0.85rem; }
.text-mint-14 { color: var(--mint); font-size: 14px; }
.text-green { color: #51cf66; }

/* ══════ FLEX ROWS ══════ */
.row-between-border { display: flex; justify-content: space-between; padding: var(--space-2) 0; border-bottom: 1px solid var(--border); }
.row-between-085 { display: flex; justify-content: space-between; font-size: 0.85rem; }
.row-between-p3 { display: flex; justify-content: space-between; align-items: center; padding: var(--space-3) 0; }
.row-between-mb8 { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.row-between-mb20 { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.flex-center-wrap { display: flex; gap: var(--space-3); justify-content: center; flex-wrap: wrap; }
.flex-gap-3-center { display: flex; gap: var(--space-3); align-items: center; }
.flex-gap-16-wrap { display: flex; gap: 16px; flex-wrap: wrap; }
.flex-gap-3-pointer { display: flex; align-items: center; gap: var(--space-3); cursor: pointer; }
.flex-gap-2-center { display: flex; align-items: center; gap: var(--space-2); }
.flex-gap-8-mb8 { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }

/* ══════ CARDS & BACKGROUNDS ══════ */
.card-border-pad { border: 1px solid var(--border); padding: 16px; background: var(--bg-card); }
.card-white-shadow { background: white; padding: 20px; border-radius: 12px; margin-bottom: 20px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.btn-icon-muted { background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--muted); }
.table-header-bg { background: #f8f9fa; border-bottom: 2px solid #dee2e6; }

/* ══════ PROGRESS BARS ══════ */
.progress-fill { width: 0%; height: 100%; background: var(--accent); transition: width 0.3s; }
.progress-bar-amber { position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: #f59e0b; }
.progress-bar-blue { position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: #3b82f6; }

/* ══════ TEXT ALIGNMENT ══════ */
.text-left { text-align: left; }
.link-block { text-decoration: none; display: block; }
.empty-p4 { text-align: center; padding: var(--space-4); }
.empty-p3 { text-align: center; padding: var(--space-3); }
.empty-p40-muted { text-align: center; padding: 40px; color: var(--muted); }
.empty-p32 { text-align: center; padding: 32px; }

/* ══════ POSITIONING ══════ */
.relative { position: relative; }

/* ══════ CARDS ══════ */
.card-bg-mb { padding: 20px; background: var(--bg); border-radius: 8px; margin-bottom: 16px; }
.card-bg-border { padding: 16px; background: var(--bg); border-radius: 8px; border: 1px solid var(--line); }
.card-warning-light { padding: 16px; background: color-mix(in oklab, var(--warning) 10%, var(--card)); border-radius: 8px; }
.card-mint-light { padding: 16px; background: color-mix(in oklab, var(--mint) 10%, var(--card)); border-radius: 8px; }
.list-item-pad { padding: 16px 20px; }
.p-16 { padding: 16px; }
.th-right-bold { padding: 15px; text-align: right; font-weight: 600; color: #495057; }
.cell-muted-09 { padding: 14px 16px; font-size: 0.9rem; color: var(--muted); }

/* ══════ SIZING ══════ */
.min-w-80 { min-width: 80px; }
.min-w-100 { min-width: 100px; }
.container-narrow { max-width: 700px; margin: 0 auto; padding: var(--space-6) var(--space-4); }
.scroll-y-400 { max-height: 400px; overflow-y: auto; }
.scroll-y-500 { max-height: 500px; overflow-y: auto; padding: 0; }
.max-h-400 { max-height: 400px; }

/* ══════ MARGINS ══════ */
.mt-3-px3 { margin-top: var(--space-3); padding: 0 var(--space-3); }
.mt-0-flex-gap2 { margin-top: 0; display: flex; align-items: center; gap: var(--space-2); }
.mt-05rem { margin-top: 0.5rem; }
.mb-4-danger { margin-bottom: var(--space-4); border-color: var(--danger); }

/* ══════ MARGINS ══════ */
.mb-5px { margin-bottom: 5px; }
.mb-0 { margin-bottom: 0; }
.mt-8-m0 { margin: 8px 0 0 0; }
.m0-text-base { margin: 0; font-size: var(--text-base); }
.m0-mb4 { margin: 0 0 var(--space-4) 0; }

/* ══════ TEXT VARIANTS ══════ */
.text-32-semibold-mb2 { font-weight: 600; font-size: 32px; margin-bottom: var(--space-2); }
.font-semibold-text { font-weight: 600; color: var(--text); }
.text-sm-muted-alt { font-size: var(--text-sm); color: var(--muted); }
.text-lg-muted-m0 { font-size: var(--text-lg); color: var(--text-muted); margin: 0; }
.text-2rem-800 { font-size: 2rem; font-weight: 800; color: var(--text); }
.text-24-700 { font-size: 24px; font-weight: 700; }
.text-18-600 { font-size: 18px; font-weight: 600; }
.text-18-dark-mb { font-size: 18px; color: #2c3e50; margin-bottom: 15px; }
.text-14-500 { font-size: 14px; font-weight: 500; }
.text-12-muted-mb4 { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.text-12-gray-mb3 { font-size: 12px; color: #6c757d; margin-bottom: 3px; }
.text-11-muted-mb2 { font-size: 11px; color: var(--muted); margin-bottom: var(--space-2); }
.text-10-upper-mb4 { font-size: 10px; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; letter-spacing: 0.5px; }
.text-09rem-mb4 { font-size: 0.9rem; margin-bottom: var(--space-4); }
.text-08rem-mint { font-size: 0.8rem; color: var(--mint); }
.text-075rem-upper-mb2 { font-size: 0.75rem; text-transform: uppercase; color: var(--text-muted); margin-bottom: var(--space-2); }
.text-065rem { font-size: 0.65rem; }

/* ══════ FLEX ══════ */
.flex-1-min200 { flex: 1; min-width: 200px; }
.inline-flex-gap8 { display: inline-flex; align-items: center; gap: 8px; }
.inline-flex-gap6 { display: inline-flex; align-items: center; gap: 6px; }
.inline-flex-gap4 { display: inline-flex; align-items: center; gap: 4px; }
.inline-flex-gap4-ml { display: inline-flex; align-items: center; gap: 4px; margin-left: 12px; }
.back-link-flex { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: var(--text-sm); margin-bottom: var(--space-3); text-decoration: none; }

/* ══════ MODAL ══════ */
.modal-backdrop { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.6); align-items: center; justify-content: center; z-index: 9999; }

/* ══════ GRID LAYOUTS ══════ */
.grid-auto-200 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.grid-auto-200-mb { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 15px; margin-bottom: 20px; }
.grid-3col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-2col { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.grid-2col-12 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid-gap-15 { display: grid; gap: 15px; }

/* ══════ FLEX VARIANTS ══════ */
.row-between-p2 { display: flex; justify-content: space-between; padding: var(--space-2) 0; }
.row-between-start-mb3 { display: flex; justify-content: space-between; align-items: start; margin-bottom: var(--space-3); }
.flex-center-gap24 { display: flex; justify-content: center; gap: 24px; }
.flex-gap-2-wrap { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.flex-gap-2-center-alt { display: flex; gap: var(--space-2); align-items: center; }
.flex-gap-8-wrap { display: flex; gap: 8px; flex-wrap: wrap; }
.flex-gap-4 { display: flex; gap: 4px; }
.flex-gap-10-end { display: flex; gap: 10px; justify-content: flex-end; }
.flex-col-gap-8 { display: flex; flex-direction: column; gap: 8px; }
.flex-gap-12 { display: flex; align-items: center; gap: 12px; }
.flex-baseline-gap2-mb2 { display: flex; align-items: baseline; gap: var(--space-2); margin-bottom: var(--space-2); }

/* ══════ DISPLAY ══════ */
.inline { display: inline; }
.cursor-pointer { cursor: pointer; }

/* ══════ TEXT COLORS ══════ */
.text-mb2-semibold { color: var(--text); margin-bottom: var(--space-2); font-weight: 600; }
.text-muted-07 { color: var(--muted); opacity: 0.7; }
.text-muted-08-mt6 { color: var(--muted); font-size: 0.8rem; margin-top: 6px; }
.text-muted-085-mb8 { color: var(--muted); font-size: 0.85rem; margin-bottom: 8px; }
.text-mint-semibold { color: var(--mint); font-weight: 600; }
.text-mint-12rem { color: var(--mint); font-size: 1.2rem; }
.text-danger-semibold { color: var(--danger); font-weight: 600; }

/* ══════ BORDERS ══════ */
.border-top-semibold { border-top: 2px solid rgba(28, 41, 66, 0.5); font-weight: 600; }
.border-bottom-gray { border-bottom: 1px solid #dee2e6; }

/* ══════ CARDS ══════ */
.card-border-center { border: 1px solid var(--border); padding: 16px; background: var(--bg-card); text-align: center; }
.card-white-shadow-overflow { background: white; border-radius: 12px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); overflow: hidden; }

/* ══════ BACKGROUNDS ══════ */
.bg-warning-10 { background: rgba(245, 158, 11, 0.1); }
.bg-danger-10 { background: rgba(239, 68, 68, 0.1); }
.badge-mint-light { background: rgba(0, 209, 178, 0.2); color: var(--mint); }

/* ══════ DOTS ══════ */
.dot-warning { width: 8px; height: 8px; border-radius: 50%; background: var(--warning); }
.dot-muted { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.dot-danger { width: 8px; height: 8px; border-radius: 50%; background: var(--danger); }

/* ══════ WIDTHS ══════ */
.w-auto-min140 { width: auto; min-width: 140px; }
.w-40 { width: 40px; }
.w-140 { width: 140px; }
.w-130 { width: 130px; }
.w-16 { width: 16px; height: 16px; }
.input-200 { width: 200px; padding: 8px 12px; }
.input-search-sm { width: 120px; padding: 4px 8px 4px 30px; font-size: 12px; height: 30px; border-radius: var(--r-sm); }

/* ══════ INPUTS ══════ */
.textarea-card { width: 100%; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--text); resize: vertical; }
.textarea-full { width: 100%; min-height: 100px; padding: 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); color: var(--text); font-family: inherit; resize: vertical; margin-bottom: 12px; }
.w-full-start { width: 100%; justify-content: flex-start; }

/* ══════ TEXT DECORATION ══════ */
.nowrap { white-space: nowrap; }
.icon-mr { vertical-align: -3px; margin-right: 8px; }
.link-secondary { text-decoration: none; background: var(--bg-secondary); border: 1px solid var(--border); }
.no-underline { text-decoration: none; }
.line-through { text-decoration: line-through; opacity: 0.5; }

/* ══════ TABLE CELLS ══════ */
.text-right-500 { text-align: right; font-weight: 500; }
.text-right-muted { text-align: right; color: var(--text-muted); }
.text-right-mint-600 { text-align: right; color: var(--mint); font-weight: 600; }
.text-right-red-600 { text-align: right; color: #f87171; font-weight: 600; }
.text-right-danger { text-align: right; color: #ef4444; }

/* ══════ EMPTY STATES ══════ */
.empty-p6-muted { text-align: center; padding: var(--space-6); color: var(--muted); }
.empty-p6-danger { text-align: center; padding: var(--space-6); color: #ef4444; }
.empty-p4-muted { text-align: center; padding: var(--space-4); color: var(--muted); }
.empty-p60-40 { text-align: center; padding: 60px 40px; }
.empty-p40 { text-align: center; padding: 40px; }
.footer-border { text-align: center; margin-top: var(--space-6); padding-top: var(--space-5); border-top: 1px solid var(--border); }
.text-center-mono { text-align: center; font-family: monospace; font-size: 0.9rem; }
.text-center-mono-muted { text-align: center; font-family: monospace; color: var(--muted); font-size: 0.9rem; }

/* ══════ POSITIONING ══════ */
.sticky-top { position: sticky; top: 0; background: var(--bg-card); z-index: 1; }
.chart-220 { position: relative; height: 220px; }
.toggle-container { position: relative; display: inline-block; width: 44px; height: 24px; cursor: pointer; }
.input-icon-left { position: absolute; left: 9px; top: 50%; transform: translateY(-50%); pointer-events: none; opacity: 0.4; }
.progress-bar-yellow { position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: #fbbf24; }
.progress-bar-purple { position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: #a855f7; }

/* ══════ TABLE CELLS ══════ */
.cell-right-secondary { padding: var(--space-3); text-align: right; font-size: 0.875rem; color: var(--text-secondary); font-weight: 600; }
.th-center { padding: 15px; text-align: center; font-weight: 600; color: #495057; }
.th-center-plain { padding: 15px; text-align: center; }

/* ══════ PADDING ══════ */
.pb-6rem { padding-bottom: 6rem; }
.p-20 { padding: 20px; }
.p-24 { padding: 24px; }
.scroll-600 { padding: 24px; max-height: 600px; overflow-y: auto; }
.modal-header { padding: 24px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }

/* ══════ BADGES ══════ */
.badge-gray { padding: 8px 20px; background: #e8e8e8; color: #6c757d; border-radius: 20px; font-size: 14px; font-weight: 500; }
.badge-green { padding: 8px 20px; background: #d5f4e6; color: #27ae60; border-radius: 20px; font-size: 14px; font-weight: 500; }
.badge-green-sm { padding: 6px 16px; background: #d5f4e6; color: #27ae60; border-radius: 20px; font-size: 13px; font-weight: 500; }
.badge-glass { padding: 6px 12px; border-radius: 6px; background: rgba(255,255,255,0.04); }
.btn-link-blue { padding: 6px 12px; background: #3498db; color: white; text-decoration: none; border-radius: 4px; font-size: 13px; display: inline-block; }
.badge-warning-pill { padding: 5px 12px; background: #e9ecef; color: #856404; border-radius: 12px; font-size: 13px; }
.badge-pill-glass { padding: 4px 12px; border-radius: 100px; font-size: 12px; font-weight: 500; background: rgba(255,255,255,0.06); color: var(--text); }
.card-danger-light { padding: 16px; background: color-mix(in oklab, var(--danger) 10%, var(--card)); border-radius: 8px; }

/* ══════ PADDING VARIANTS ══════ */
.p-15 { padding: 15px; }
.p-15-gray { padding: 15px; color: #6c757d; }
.p-15-dark { padding: 15px; color: #2c3e50; font-weight: 500; }
.p-12 { padding: 12px; }
.p-12-13 { padding: 12px; font-size: 13px; }
.p-12-mono { padding: 12px; font-family: monospace; color: #6c757d; font-size: 13px; }
.cell-left { padding: 12px 16px; text-align: left; }
.cell-12-16 { padding: 12px 16px; }
.p-0-scroll { padding: 0; overflow-x: auto; }

/* ══════ HIDDEN INPUT ══════ */
.sr-only { opacity: 0; width: 0; height: 0; }

/* ══════ WIDTHS ══════ */
.min-w-130 { min-width: 130px; }
.max-w-800 { max-width: 800px; }
.max-w-700 { max-width: 700px; }
.max-w-500 { max-width: 500px; }
.max-h-300 { max-height: 300px; }
.max-h-200 { max-height: 200px; }
.modal-box { max-width: 800px; margin: 40px auto; background: var(--bg); border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,0.3); }
.container-1200 { max-width: 1200px; margin: 0 auto; padding: 20px; }
.container-1200-np { max-width: 1200px; margin: 0 auto; }

/* ══════ MARGINS ══════ */
.mt-4-pt3-border { margin-top: var(--space-4); padding-top: var(--space-3); border-top: 1px solid var(--line); }
.mt-3-warning-box { margin-top: var(--space-3); padding: var(--space-2); background: rgba(245, 158, 11, 0.1); border-radius: var(--r-sm); font-size: 11px; }
.mt-3-075-08 { margin-top: var(--space-3); font-size: 0.75rem; opacity: 0.8; }
.mt-3-flex-col { margin-top: var(--space-3); display: flex; flex-direction: column; gap: var(--space-2); }
.mt-2-icon { margin-top: 2px; width: 18px; height: 18px; cursor: pointer; }
.mt-24-flex-end { margin-top: 24px; display: flex; gap: 12px; justify-content: flex-end; }
.mt-16 { margin-top: 16px; }
.ml-8-mint-link { margin-left: 8px; color: var(--mint); font-size: 0.85rem; text-decoration: none; }
.ml-8 { margin-left: 8px; }
.mb-6-flex-wrap { margin-bottom: var(--space-6); display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: var(--space-4); }
.mb-5-success-border { margin-bottom: var(--space-5); border: 2px solid #10b981; }
.mb-5-gradient { margin-bottom: var(--space-5); background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(16, 185, 129, 0.05) 100%); border: 1px solid rgba(59, 130, 246, 0.2); }
.mb-4-text-base { margin-bottom: var(--space-4); font-size: var(--text-base); }
.mb-4-accent { margin-bottom: var(--space-4); border-color: var(--accent); background: rgba(99, 102, 241, 0.05); }
.mb-3-pb2-border { margin-bottom: var(--space-3); padding-bottom: var(--space-2); border-bottom: 1px solid var(--border); }
.mb-2-danger { margin-bottom: var(--space-2); color: #ef4444; }
.mb-1 { margin-bottom: var(--space-1); }
.mb-20-pb15-border { margin-bottom: 20px; padding-bottom: 15px; border-bottom: 1px solid #dee2e6; }
.mb-20 { margin-bottom: 20px; }

/* ══════ MARGINS ══════ */
.mb-16-muted { margin-bottom: 16px; color: var(--muted); }
.mb-16 { margin-bottom: 16px; }
.m0-20 { margin: 0; font-size: 20px; }
.m0-14-dark { margin: 0; color: #2c3e50; font-size: 14px; }
.m0-mb3-sm { margin: 0 0 var(--space-3) 0; font-size: var(--text-sm); }
.gap-16-mb20 { gap: 16px; margin-bottom: 20px; }

/* ══════ LINE HEIGHT ══════ */
.lh-16 { line-height: 1.6; }

/* ══════ HEIGHT ══════ */
.progress-thin { height: 4px; background: rgba(255,255,255,0.1); border-radius: 2px; margin-top: 2px; }
.h-400-rel { height: 400px; position: relative; }
.h-100 { height: 100px; }

/* ══════ FONT VARIANTS ══════ */
.font-600-14-mb8 { font-weight: 600; font-size: 14px; margin-bottom: 8px; }
.font-600-text-mb2 { font-weight: 600; color: var(--text); margin-bottom: 2px; }
.font-500-truncate { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.font-500-text { font-weight: 500; color: var(--text); }
.font-400-muted { font-weight: 400; color: var(--muted); }

/* ══════ TEXT SIZE VARIANTS ══════ */
.text-xs-mb2-truncate { font-size: var(--text-xs); margin-bottom: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.text-sm-mb3 { font-size: var(--text-sm); margin-bottom: var(--space-3); }
.text-sm-lh15 { font-size: var(--text-sm); line-height: 1.5; }
.text-sm-600-mint { font-size: var(--text-sm); font-weight: 600; color: var(--mint); }
.text-sm-muted-m0 { font-size: var(--text-sm); color: var(--text-muted); margin: 0; }
.text-sm-muted-mb3 { font-size: var(--text-sm); color: var(--muted); margin-bottom: var(--space-3); }
.text-2xl-mb6 { font-size: var(--text-2xl); margin-bottom: var(--space-6); }
.text-2xl-flex-gap12 { font-size: var(--text-2xl); display: flex; align-items: center; gap: 12px; }
.text-44-700 { font-size: 44px; font-weight: 700; line-height: 1; margin-bottom: var(--space-2); }
.text-3rem-mb16 { font-size: 3rem; margin-bottom: 16px; }
.text-2rem-700 { font-size: 2rem; font-weight: 700; }
.text-2rem { font-size: 2rem; }
.text-28-700-amber { font-size: 28px; font-weight: 700; color: #f59e0b; }
.text-26-600-muted { font-size: 26px; font-weight: 600; color: var(--text-muted); }
.text-24-700-warning { font-size: 24px; font-weight: 700; color: var(--warning); }
.text-24-700-danger { font-size: 24px; font-weight: 700; color: var(--danger); }
.text-24-700-blue { font-size: 24px; font-weight: 700; color: #4dabf7; }
.text-22-600-mb4 { font-size: 22px; font-weight: 600; margin-bottom: 4px; }
.text-22-600 { font-size: 22px; font-weight: 600; }
.text-20-600-mint { font-size: 20px; font-weight: 600; color: var(--mint); }

/* ══════ TEXT SIZES ══════ */
.text-20-muted { font-size: 20px; color: var(--muted); }
.text-20-dark-mb20 { font-size: 20px; color: #2c3e50; margin-bottom: 20px; }
.text-1rem-lh13 { font-size: 1rem; line-height: 1.3; }
.text-18-600-danger { font-size: 18px; font-weight: 600; color: #ef4444; }
.text-18-600-blue { font-size: 18px; font-weight: 600; color: #3b82f6; }
.text-16-600-amber { font-size: 16px; font-weight: 600; color: #f59e0b; }
.text-16-600-danger { font-size: 16px; font-weight: 600; color: #ef4444; }
.text-16-gray-mb10 { font-size: 16px; color: #7f8c8d; margin-bottom: 10px; }
.text-15rem-700-mb4 { font-size: 1.5rem; font-weight: 700; margin-bottom: 4px; }
.text-15-mt4 { font-size: 15px; margin-top: 4px; }
.text-15-mono { font-size: 15px; font-weight: 500; color: #2c3e50; font-family: monospace; }
.text-14-mb4 { font-size: 14px; margin-bottom: 4px; }
.text-14-gray { font-size: 14px; color: #6b7280; }
.text-13-600-danger { font-size: 13px; font-weight: 600; color: #ef4444; }
.text-13-600-blue { font-size: 13px; font-weight: 600; color: #3b82f6; }
.text-12-truncate { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.text-12-500-right { font-size: 12px; font-weight: 500; min-width: 35px; text-align: right; }
.text-12-muted-mt4 { font-size: 12px; color: var(--muted); margin-top: 4px; }
.text-12-muted-mb2 { font-size: 12px; color: var(--muted); margin-bottom: 2px; }
.text-125rem-700 { font-size: 1.25rem; font-weight: 700; }
.text-11rem-mt05 { font-size: 1.1rem; margin-top: 0.5rem; }
.text-11rem-mb8 { font-size: 1.1rem; margin-bottom: 8px; }
.text-11rem-mb8-alt { font-size: 1.1rem; color: var(--text); margin-bottom: 8px; }
.text-11-upper-mb2 { font-size: 11px; text-transform: uppercase; color: var(--muted); margin-bottom: var(--space-2); letter-spacing: 0.5px; }
.text-09rem { font-size: 0.9rem; }
.text-08rem-secondary-mb2 { font-size: 0.8rem; color: var(--text-secondary); margin-bottom: var(--space-2); }
.text-0875rem-lh16 { font-size: 0.875rem; line-height: 1.6; color: var(--text-secondary); }
.text-0875rem-muted { font-size: 0.875rem; color: var(--muted); }
.mono-0875-muted { font-family: monospace; font-size: 0.875rem; color: var(--text-muted); }

/* ══════ FLEX ══════ */
.flex-2 { flex: 2; }
.flex-1-min150 { flex: 1; min-width: 150px; }

/* ══════ MODALS ══════ */
.modal-overlay { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.7); z-index: 1000; align-items: center; justify-content: center; }
.modal-overlay-scroll { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.6); z-index: 9999; padding: 20px; overflow-y: auto; }
.modal-overlay-inset { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.7); z-index: 1000; align-items: center; justify-content: center; }
.collapse-mt15 { display: none; margin-top: 15px; padding: 12px; border-radius: 6px; }
.hidden-alt { display: none; }
.inline-alt { display: inline; }

/* ══════ BADGES ══════ */
.icon-circle-success { display: inline-flex; align-items: center; justify-content: center; width: 80px; height: 80px; background: linear-gradient(135deg, #10b981 0%, #059669 100%); border-radius: 50%; margin-bottom: var(--space-4); box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3); }
.badge-success-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; background: rgba(16, 185, 129, 0.1); color: #10b981; border-radius: var(--radius-full); font-weight: 600; font-size: var(--text-sm); }

/* ══════ GRIDS ══════ */
.grid-auto-400-mb24 { display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 24px; margin-bottom: 24px; }
.grid-auto-250 { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.grid-auto-200-20 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.grid-4col-mb6 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4); margin-bottom: var(--space-6); }
.grid-3col-center { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; text-align: center; }
.grid-2col-gap6 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); }
.grid-2col-gap3 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
.grid-3col-12 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.grid-auto-320 { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid-gap-16 { display: grid; gap: 16px; }

/* ══════ FLEX VARIANTS ══════ */
.flex-mt3-11-muted-between { display: flex; margin-top: var(--space-3); font-size: 11px; color: var(--muted); justify-content: space-between; }
.flex-mt3-11-muted-start { display: flex; margin-top: var(--space-3); font-size: 11px; color: var(--muted); justify-content: flex-start; }
.row-p8-glass { display: flex; justify-content: space-between; padding: 8px; background: rgba(255,255,255,0.02); border-radius: 6px; font-size: 0.85rem; }
.row-p2 { display: flex; justify-content: space-between; padding: 2px 0; }
.row-mb2 { display: flex; justify-content: space-between; margin-bottom: var(--space-2); }
.row-mb8 { display: flex; justify-content: space-between; margin-bottom: 8px; }
.row-start-mb2 { display: flex; justify-content: space-between; align-items: start; margin-bottom: var(--space-2); }
.row-start-mb15 { display: flex; justify-content: space-between; align-items: start; margin-bottom: 15px; }
.row-p3-border { display: flex; justify-content: space-between; align-items: center; padding: var(--space-3) 0; border-bottom: 1px solid var(--line); }
.row-p2-border { display: flex; justify-content: space-between; align-items: center; padding: var(--space-2) 0; border-bottom: 1px solid var(--line); }
.row-mb5 { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--space-5); }
.row-mb24 { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.flex-gap-4-center { display: flex; gap: var(--space-4); align-items: center; }
.flex-gap-3-scroll { display: flex; gap: var(--space-3); overflow-x: auto; padding-bottom: var(--space-2); }
.flex-gap-3-wrap-center { display: flex; gap: var(--space-3); align-items: center; flex-wrap: wrap; }
.flex-gap-3-plain { display: flex; gap: var(--space-3); }
.flex-gap-2-end { display: flex; gap: var(--space-2); justify-content: flex-end; }
.flex-gap-4px { display: flex; gap: 4px; }
.flex-gap-2px { display: flex; gap: 2px; }
.flex-gap-12-mb-border { display: flex; gap: 12px; margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.flex-gap-10-center { display: flex; gap: 10px; align-items: center; }

/* ══════ SIDEBAR ══════ */
.sidebar-card { flex: 0 0 200px; background: var(--surface); border-radius: var(--r-md); padding: var(--space-3); border: 1px solid var(--line); }

/* ══════ FLEX ══════ */
.flex-gap-10 { display: flex; gap: 10px; }
.flex-col-gap4 { display: flex; flex-direction: column; gap: var(--space-4); }
.flex-col-gap8-mb3 { display: flex; flex-direction: column; gap: 8px; margin-bottom: var(--space-3); }
.flex-col-list { display: flex; flex-direction: column; gap: 1px; background: var(--line); border-radius: var(--r-sm); overflow: hidden; }
.flex-start-gap2-pointer { display: flex; align-items: start; gap: var(--space-2); cursor: pointer; }
.flex-gap-4-center-alt { display: flex; align-items: center; gap: var(--space-4); }
.flex-gap-8-pointer { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.flex-gap-6-pointer { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.flex-gap-16 { display: flex; align-items: center; gap: 16px; }
.flex-gap-12-mb12 { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.block-mb4 { display: block; margin-bottom: 4px; }

/* ══════ TEXT ══════ */
.text-primary-600 { color: var(--primary); font-weight: 600; }
.text-muted-09rem { color: var(--muted); font-size: 0.9rem; }
.text-danger-sm { color: #ef4444; font-size: var(--text-sm); }
.text-gray-18-mb12 { color: #6c757d; font-size: 18px; margin-bottom: 12px; }
.text-green-alt { color: #22c55e; }

/* ══════ BORDERS ══════ */
.border-top-600 { border-top: 2px solid var(--line); font-weight: 600; }
.card-pad-mb { border: 1px solid var(--line); border-radius: 8px; padding: 20px; margin-bottom: 16px; }
.card-border-center-alt { border: 1px solid var(--border); padding: 16px; text-align: center; }

/* ══════ CARDS ══════ */
.card-white-orange { background: white; padding: 20px; border-radius: 12px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); border-left: 4px solid #f39c12; }
.card-white-blue { background: white; padding: 20px; border-radius: 12px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); border-left: 4px solid #3498db; }
.card-white-pad-mb { background: white; border-radius: 12px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); padding: 25px; margin-bottom: 20px; }
.surface-p3 { background: var(--surface); padding: var(--space-3); border-radius: var(--r-sm); }
.surface-p16-mb { background: var(--surface); padding: 16px; border-radius: 6px; margin-bottom: 12px; }
.surface-center { background: var(--surface); border-radius: var(--r-sm); padding: var(--space-3); text-align: center; }
.surface-p2-3 { background: var(--surface); border-radius: var(--r-sm); padding: var(--space-2) var(--space-3); }
.btn-mint { background: var(--mint); color: white; border: none; padding: 10px 24px; border-radius: 6px; font-weight: 600; cursor: pointer; }
.modal-card { background: var(--card); border-radius: var(--r-lg); padding: var(--space-6); width: 100%; max-width: 400px; margin: var(--space-4); }
.modal-card-lg { background: var(--card); border-radius: 16px; padding: 32px; width: 90%; max-width: 600px; max-height: 90vh; overflow-y: auto; }
.card-bg-border-alt { background: var(--bg); padding: var(--space-4); border-radius: var(--r-md); border: 1px solid var(--line); }
.alert-warning-border { background: rgba(255, 193, 7, 0.1); border: 1px solid rgba(255, 193, 7, 0.3); }
.badge-muted-bg { background: rgba(134, 142, 150, 0.2); color: var(--muted); }
.btn-close { background: none; border: none; font-size: 24px; color: var(--muted); cursor: pointer; padding: 0; width: 32px; height: 32px; }
.btn-close-15 { background: none; border: none; font-size: 1.5rem; color: var(--muted); cursor: pointer; }
.card-gradient-mint { background: linear-gradient(135deg, rgba(0, 209, 178, 0.1), var(--card)); }
.alert-amber { background: #fef3c7; border: 1px solid #fbbf24; padding: var(--space-4); border-radius: var(--radius-md); margin-bottom: var(--space-5); }

/* ══════ SECTION SPACING ══════ */
.section { margin-bottom: var(--space-6); }
.section-sm { margin-bottom: var(--space-4); }
.section-lg { margin-bottom: var(--space-7); }

/* Fix card stacking */
.card + .card { margin-top: var(--space-4); }
.kpi-card + .kpi-card { margin-top: 0; } /* в гридах не нужно */

/* Grid gaps */
.grid { gap: var(--space-4); }
.grid-4 { gap: var(--space-4); }
.grid-auto { gap: var(--space-4); }
