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

:root {
  --sidebar-width: 240px;
  --sidebar-collapsed: 56px;
  --sidebar-bg: #1e293b;
  --sidebar-hover: #334155;
  --sidebar-active: #3b82f6;
  --header-height: 56px;
  --accent: #3b82f6;
  --accent-dark: #2563eb;
  --accent-light: #eff6ff;
  --danger: #ef4444;
  --success: #22c55e;
  --warning: #f59e0b;
  --text-primary: #0f172a;
  /* Bumped from #64748b (~4.2:1) to #475569 (~7:1) — AAA-level contrast
     for metadata, placeholders, and secondary labels. */
  --text-secondary: #475569;
  --border: #e2e8f0;
  --bg: #f8fafc;
  --white: #ffffff;
  --row-alt: #f1f5f9;
  --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.1), 0 4px 6px rgba(0,0,0,0.05);
  --radius: 6px;
  --radius-lg: 10px;
  /* Spacing scale used by newer components; legacy hardcoded values kept
     for now, but new / refactored code should use var(--sp-*). */
  --sp-xs: 4px;
  --sp-sm: 8px;
  --sp-md: 12px;
  --sp-lg: 16px;
  --sp-xl: 24px;
  --sp-2xl: 32px;
  /* Mirror of --white kept around for callers that want to opt out of
     the dark-mode override (rare; only modals printing labels on
     light paper backgrounds use this). */
  --surface-fixed-light: #ffffff;
}

/* Sprint UX backlog 4D: dark mode. Activated by [data-theme="dark"] on
   <html>; the theme-toggle in Settings flips the attribute and
   persists the choice in localStorage. Initial value is set by an
   inline script in <head> before paint to avoid flash-of-light-theme.

   Strategy: redefine the semantic tokens so any component reading
   var(--bg) / var(--text-primary) / var(--white) / var(--border)
   automatically adapts. Hardcoded `#fff` / `#0f172a` in inline styles
   stay light — acceptable known limitation; touched piecemeal as each
   page is refactored. */
html[data-theme="dark"] {
  color-scheme: dark;
  --sidebar-bg: #0b1220;
  --sidebar-hover: #1e293b;
  --sidebar-active: #3b82f6;
  --accent: #60a5fa;
  --accent-dark: #3b82f6;
  --accent-light: #1e3a8a;
  --danger: #f87171;
  --success: #34d399;
  --warning: #fbbf24;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --border: #1e293b;
  --bg: #0a0f1a;
  /* --white is conceptually "card background" in this codebase; in
     dark mode that becomes a near-black surface so cards still pop
     against the page background. */
  --white: #111827;
  --row-alt: #1f2937;
  --shadow: 0 1px 3px rgba(0,0,0,0.5), 0 1px 2px rgba(0,0,0,0.4);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.45), 0 2px 4px rgba(0,0,0,0.35);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.55), 0 4px 6px rgba(0,0,0,0.35);
}
html[data-theme="dark"] body { background: var(--bg); color: var(--text-primary); }
html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea {
  background: var(--white);
  color: var(--text-primary);
  border-color: var(--border);
}
html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder { color: var(--text-secondary); opacity: .8; }

/* Sprint UX backlog 4D follow-up: components with hardcoded light
   gradients / pill backgrounds get explicit dark-mode replacements.
   Tokens alone don't reach inline-style gradients on .trial-card,
   .plans-card-featured, .plans-badge-*, .trial-badge.*, etc. */
html[data-theme="dark"] .trial-card {
  background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
  border-color: #b45309;
}
html[data-theme="dark"] .trial-card.warning {
  background: linear-gradient(135deg, #2d1f0a 0%, #111827 100%);
  border-color: #d97706;
}
html[data-theme="dark"] .trial-card.critical {
  background: linear-gradient(135deg, #2d0f0f 0%, #111827 100%);
  border-color: #ef4444;
}
html[data-theme="dark"] .trial-meta-pill {
  background: rgba(255,255,255,.06);
  border-color: var(--border);
  color: var(--text-primary);
}
html[data-theme="dark"] .trial-badge {
  background: #2d1f0a; border-color: #d97706; color: #fbbf24;
}
html[data-theme="dark"] .trial-badge.warning { background: #2d1f0a; border-color: #d97706; color: #fbbf24; }
html[data-theme="dark"] .trial-badge.critical { background: #2d0f0f; border-color: #ef4444; color: #fca5a5; }

/* Onboarding card surfaces */
html[data-theme="dark"] .onboarding-card { background: var(--white); }

/* Plans modal (Abonamente) — every card has a hardcoded light
   background, the badges use light pills with dark text, and the
   active-plan ribbon shows a green check on light. Map all to dark. */
html[data-theme="dark"] .plans-card {
  background: var(--white);
  border-color: var(--border);
  color: var(--text-primary);
}
html[data-theme="dark"] .plans-card-featured {
  background: linear-gradient(160deg, #0c1d33 0%, #111827 60%);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(96,165,250,.18);
}
html[data-theme="dark"] .plans-badge-starter { background: #1e293b; color: #cbd5e1; }
html[data-theme="dark"] .plans-badge-growth  { background: #0c1d33; color: #93c5fd; }
html[data-theme="dark"] .plans-badge-pro     { background: #2a1450; color: #c4b5fd; }
html[data-theme="dark"] .plans-features li { color: var(--text-primary); }
html[data-theme="dark"] .plans-features li.plans-locked { color: var(--text-secondary); opacity: .55; }
html[data-theme="dark"] .plans-hint { border-top-color: var(--border); color: var(--text-secondary); }
html[data-theme="dark"] .plans-card-current {
  border-color: #10b981 !important;
  box-shadow: 0 0 0 3px rgba(16,185,129,.22) !important;
}

/* Subscription pricing footer rows inside the plans modal */
html[data-theme="dark"] .subscription-chip,
html[data-theme="dark"] .subscription-feature-grid,
html[data-theme="dark"] .subscription-plan-meta,
html[data-theme="dark"] .subscription-upgrade-note {
  background: var(--white);
  color: var(--text-primary);
  border-color: var(--border);
}

/* Filter selects (Etichete, Inventory chips area, etc.) */
html[data-theme="dark"] select.fsel {
  background: var(--white);
  color: var(--text-primary);
  border-color: var(--border);
}

/* Modal generic — background was --white token (now dark) but the
   inline-style hint cards inside many modals had ad-hoc light pills;
   keep modal surface coherent. */
html[data-theme="dark"] .modal { background: var(--white); color: var(--text-primary); }
html[data-theme="dark"] .modal-header { border-color: var(--border); }
html[data-theme="dark"] .modal-close { color: var(--text-secondary); }
html[data-theme="dark"] .modal-close:hover { background: rgba(255,255,255,.05); }

/* Confirm dialog ("Premium Confirm Modal" in index.html uses inline
   white background) */
html[data-theme="dark"] #premium-confirm-overlay > div {
  background: var(--white) !important;
  color: var(--text-primary);
}
html[data-theme="dark"] #premium-confirm-overlay h3 { color: var(--text-primary) !important; }
html[data-theme="dark"] #premium-confirm-overlay p { color: var(--text-secondary) !important; }

/* Cards / pills sprinkled across Settings that use raw white background */
html[data-theme="dark"] .settings-card {
  background: var(--white);
  border-color: var(--border);
}

/* Tables / table rows */
html[data-theme="dark"] tbody tr:nth-child(even) td { background: var(--row-alt); }
html[data-theme="dark"] tbody tr:hover td { background: rgba(96,165,250,.06); }
html[data-theme="dark"] thead th { background: var(--bg); color: var(--text-primary); border-bottom-color: var(--border); }

/* Sidebar nav active marker (already token-driven but the gradient
   highlight needs a touch more luminosity on dark) */
html[data-theme="dark"] .nav-item.active { background: rgba(96,165,250,.18); color: var(--accent); }

/* Sticky labels / page headers — sometimes use explicit background */
html[data-theme="dark"] .page-header,
html[data-theme="dark"] .filters-bar,
html[data-theme="dark"] .chip-bar { background: transparent; }

/* Etichete page: the toolbar pills + filter inputs render as empty
   light squares because the wrapping divs had no background token
   and the inline placeholder text matched the surface. Force a
   readable dark surface. */
html[data-theme="dark"] .form-input,
html[data-theme="dark"] .pagination button {
  background: var(--white);
  color: var(--text-primary);
  border-color: var(--border);
}
html[data-theme="dark"] .pagination button.active { background: var(--accent); color: #fff; border-color: var(--accent); }
html[data-theme="dark"] .pagination .pg-info { color: var(--text-secondary); }

/* ── Aggressive dark-mode overrides for hardcoded inline styles ──
   Many components (filter selects, picker cards, premium confirm
   dialog, payment cards, KPI tiles) bake `background:#fff` and
   `color:#0f172a` straight into the style="" attribute. Without
   these overrides those nodes render as bright-white islands inside
   the dark UI. Substring-match attribute selectors + !important
   are the only way to defeat inline-style specificity without
   editing every call site. */
html[data-theme="dark"] [style*="background:#fff"],
html[data-theme="dark"] [style*="background: #fff"],
html[data-theme="dark"] [style*="background:#ffffff"],
html[data-theme="dark"] [style*="background:white"],
html[data-theme="dark"] [style*="background-color:#fff"] {
  background: var(--white) !important;
  color: var(--text-primary);
}
/* Yellow backup-codes pane on MFA enrollment — keep its yellow tint
   but tone down luminosity so the warning still reads as warning. */
html[data-theme="dark"] [style*="background:#fffbeb"],
html[data-theme="dark"] [style*="background: #fffbeb"] {
  background: #1f1a08 !important;
  color: #fde68a !important;
}
/* Dark text on white → light text on dark for the explicit cases */
html[data-theme="dark"] [style*="color:#0f172a"],
html[data-theme="dark"] [style*="color: #0f172a"],
html[data-theme="dark"] [style*="color:#1a1a2e"],
html[data-theme="dark"] [style*="color:#1e293b"],
html[data-theme="dark"] [style*="color:#334155"] {
  color: var(--text-primary) !important;
}
html[data-theme="dark"] [style*="color:#475569"],
html[data-theme="dark"] [style*="color:#64748b"],
html[data-theme="dark"] [style*="color:#6b7280"] {
  color: var(--text-secondary) !important;
}
/* Light-coloured borders typically used to outline cards on a light
   page. Re-map to the dark border token so they don't disappear. */
html[data-theme="dark"] [style*="border:1px solid #e2e8f0"],
html[data-theme="dark"] [style*="border: 1px solid #e2e8f0"],
html[data-theme="dark"] [style*="border:2px solid #e2e8f0"],
html[data-theme="dark"] [style*="border: 2px solid #e2e8f0"],
html[data-theme="dark"] [style*="border:1px solid #cbd5e1"],
html[data-theme="dark"] [style*="border: 1px solid #cbd5e1"] {
  border-color: var(--border) !important;
}
/* Select elements: many in inline-style have hardcoded backgrounds
   AND no color, so they render as white-on-dark or invisible. Force
   both. */
html[data-theme="dark"] select,
html[data-theme="dark"] input[type="text"],
html[data-theme="dark"] input[type="search"],
html[data-theme="dark"] input[type="email"],
html[data-theme="dark"] input[type="number"],
html[data-theme="dark"] input[type="date"],
html[data-theme="dark"] input[type="tel"],
html[data-theme="dark"] input[type="url"],
html[data-theme="dark"] input[type="password"] {
  background: var(--white) !important;
  color: var(--text-primary) !important;
  border-color: var(--border);
}
/* Header user dropdown row (Plan badge etc.) sometimes uses cream
   backgrounds via inline styles */
html[data-theme="dark"] [style*="background:#fef3c7"],
html[data-theme="dark"] [style*="background: #fef3c7"],
html[data-theme="dark"] [style*="background:#fffbeb"],
html[data-theme="dark"] [style*="background: #fffbeb"] {
  background: #1f1a08 !important;
}
/* Numbers / pricing inside the plans modal — explicit colours kept
   for accent semantics; ensure surrounding card text is readable */
html[data-theme="dark"] [style*="background:#f1f5f9"],
html[data-theme="dark"] [style*="background: #f1f5f9"],
html[data-theme="dark"] [style*="background:#f8fafc"],
html[data-theme="dark"] [style*="background: #f8fafc"] {
  background: var(--row-alt) !important;
}

/* ── subscription-ui.css component overrides ── */
html[data-theme="dark"] .subscription-feature-list {
  background: var(--white);
  border-color: var(--border);
  color: var(--text-primary);
}
html[data-theme="dark"] .subscription-feature-list.included {
  background: #0c1d33;
  border-color: #1e3a8a;
}
html[data-theme="dark"] .subscription-feature-list.blocked {
  background: #2d1f0a;
  border-color: #b45309;
}
html[data-theme="dark"] .subscription-feature-list-title { color: var(--text-secondary); }
html[data-theme="dark"] .subscription-feature-pill {
  background: #0c1d33;
  color: #93c5fd;
}
html[data-theme="dark"] .subscription-feature-pill.blocked {
  background: #2d1f0a;
  color: #fbbf24;
}
html[data-theme="dark"] .sa-plan-badge,
html[data-theme="dark"] .subscription-chip {
  background: var(--white);
  color: var(--text-primary);
  border-color: var(--border);
}

/* User dropdown / avatar area in the top header sometimes has cream
   background pills */
html[data-theme="dark"] .user-avatar {
  background: var(--accent);
  color: #fff;
}

/* Toasts (admin) — ensure dark surface + readable text on dark mode */
html[data-theme="dark"] .toast {
  background: var(--white);
  color: var(--text-primary);
  border-color: var(--border);
}

/* Settings card sections often nest white sub-cards */
html[data-theme="dark"] .settings-card-header {
  background: var(--white);
  color: var(--text-primary);
  border-color: var(--border);
}
html[data-theme="dark"] .settings-card-body {
  background: var(--white);
  color: var(--text-primary);
}

/* Pricing cards inside the Abonamente modal — the "Recomandat" /
   featured middle column had a hardcoded #eff6ff (very light blue)
   background that made "Implementare" + "Abonament anual" labels
   invisible on dark theme. */
html[data-theme="dark"] .plans-price-card {
  background: var(--bg);
  border-color: var(--border);
  color: var(--text-primary);
}
html[data-theme="dark"] .plans-price-card-featured {
  background: #0c1d33;
  border-color: var(--accent);
}
html[data-theme="dark"] .plans-price-divider { background: var(--border); }
html[data-theme="dark"] .plans-price-custom { color: #c4b5fd; }

/* Sprint UX-1: visible focus on every interactive element (WCAG 2.4.7) */
*:focus-visible {
  outline: 3px solid var(--accent, #3b82f6);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px rgba(59, 130, 246, 0.35);
  border-radius: inherit;
}
/* Honor reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 14px; color: var(--text-primary); background: var(--bg); overflow-x: hidden;
}

/* LOGIN */
#login-screen {
  display: flex; align-items: center; justify-content: center;
  min-height: 100vh; background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
}
.login-card {
  background: var(--white); border-radius: var(--radius-lg); padding: 40px 36px;
  width: 400px; box-shadow: var(--shadow-lg);
}
.login-card h1 { font-size: 22px; font-weight: 700; margin-bottom: 4px; }
.login-card .subtitle { color: var(--text-secondary); margin-bottom: 28px; font-size: 13px; }
.login-card .form-group { margin-bottom: 16px; }
.login-card label { display: block; font-size: 12px; font-weight: 600; color: var(--text-secondary); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.04em; }
.login-card input { width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius); font-size: 14px; transition: border-color .15s; outline: none; }
.login-card input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(59,130,246,.15); }
#login-error { color: var(--danger); font-size: 13px; margin-top: 12px; display: none; background: #fef2f2; padding: 8px 12px; border-radius: var(--radius); border: 1px solid #fecaca; }

/* APP SHELL */
#app { display: none; min-height: 100vh; }

/* SIDEBAR */
#sidebar {
  position: fixed; top: 0; left: 0; bottom: 0;
  width: var(--sidebar-width); background: var(--sidebar-bg);
  display: flex; flex-direction: column; z-index: 100;
  transition: width .2s ease; overflow: hidden;
}
#sidebar.collapsed { width: var(--sidebar-collapsed); }

.sidebar-logo {
  height: var(--header-height); display: flex; align-items: center;
  padding: 0 14px; border-bottom: 1px solid rgba(255,255,255,.07);
  gap: 10px; flex-shrink: 0;
}
.logo-icon {
  width: 28px; height: 28px; background: var(--accent); border-radius: 6px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  font-size: 13px; font-weight: 800; color: white; letter-spacing: -.5px;
}
.logo-text { font-weight: 700; font-size: 15px; color: white; white-space: nowrap; }
#sidebar.collapsed .logo-text { display: none; }

.sidebar-nav { flex: 1; padding: 10px 0; overflow-y: auto; overflow-x: hidden; scrollbar-width: none; -ms-overflow-style: none; }
.sidebar-nav::-webkit-scrollbar { display: none; }
.nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px; cursor: pointer; color: #94a3b8;
  transition: background .15s, color .15s; white-space: nowrap;
  position: relative; user-select: none;
}
/* Sprint UX-1: <button class="nav-item"> reset — keeps visual identical
   to legacy <div class="nav-item"> while restoring native button a11y. */
button.nav-item {
  background: none; border: none; width: 100%; text-align: left;
  font: inherit;
}

/* Sprint UX backlog 4D: theme switch buttons */
.theme-opt {
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text-primary);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
}
.theme-opt:hover { background: var(--row-alt); }
.theme-opt.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

/* Sprint UX-2 Batch 2C: inventory chip filters */
.inv-chip {
  padding: 6px 14px; border: 1px solid var(--border);
  background: var(--white); color: var(--text-primary);
  border-radius: 999px; cursor: pointer; font-size: 13px; font-weight: 500;
  transition: background .12s, border-color .12s, color .12s;
  min-height: auto;
}
.inv-chip:hover { background: var(--bg); }
.inv-chip.active {
  background: var(--accent); color: #fff; border-color: var(--accent);
}

/* Sprint UX-2: sortable column headers */
th[data-sort-key] { transition: background .12s; }
th[data-sort-key]:hover { background: rgba(59,130,246,0.08); }
th[aria-sort] { color: var(--accent); }

/* Sprint UX-1: skip-to-main-content link (WCAG 2.4.1) */
.skip-link {
  position: absolute; top: -40px; left: 0;
  background: var(--accent); color: #fff;
  padding: 8px 16px; z-index: 9999;
  text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 0; }
.nav-item:hover { background: var(--sidebar-hover); color: #e2e8f0; }
.nav-item.active { background: rgba(59,130,246,.18); color: var(--accent); }
.nav-item.active::before {
  content: ''; position: absolute; left: 0; top: 4px; bottom: 4px;
  width: 3px; background: var(--accent); border-radius: 0 2px 2px 0;
}
.nav-icon { width: 20px; height: 20px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 16px; }
.nav-label { font-size: 13.5px; font-weight: 500; }
#sidebar.collapsed .nav-label { display: none; }

.sidebar-footer { padding: 12px; border-top: 1px solid rgba(255,255,255,.07); flex-shrink: 0; }
#collapse-btn {
  width: 100%; padding: 8px; background: rgba(255,255,255,.06);
  border: none; border-radius: var(--radius); cursor: pointer;
  color: #94a3b8; display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 12px; transition: background .15s;
}
#collapse-btn:hover { background: rgba(255,255,255,.1); color: #e2e8f0; }
#sidebar.collapsed #collapse-btn-label { display: none; }

/* HEADER */
#header {
  position: fixed; top: 0; left: var(--sidebar-width); right: 0;
  height: var(--header-height); background: var(--white);
  border-bottom: 1px solid var(--border); display: flex; align-items: center;
  padding: 0 24px; gap: 16px; z-index: 90; transition: left .2s ease;
  box-shadow: var(--shadow);
}
.header-title { font-size: 16px; font-weight: 600; flex: 1; }
.header-user { display: flex; align-items: center; gap: 10px; }
/* Breadcrumb trail on detail pages — gives context about where in the
   hierarchy the user is without relying on the browser back button. */
.breadcrumb {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 6px; margin: 0 0 12px;
  font-size: 12px; color: var(--text-secondary);
}
.breadcrumb a {
  color: var(--text-secondary); text-decoration: none;
  padding: 2px 4px; border-radius: 4px;
}
.breadcrumb a:hover { color: var(--accent); background: rgba(59,130,246,.08); text-decoration: none; }
.breadcrumb-sep { opacity: .55; font-weight: 700; }
.breadcrumb-current {
  color: var(--text-primary); font-weight: 600;
}

/* Critical trial banner — shown at the top of main when days_left ≤ 3
   so the admin cannot miss expiry while focused on a detail view. */
.trial-banner {
  margin: 16px 24px 0;
  padding: 14px 18px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fef2f2;
  border: 2px solid #fca5a5;
  color: #991b1b;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(220,38,38,.08);
  position: relative;
}
.trial-banner.warning { background: #fff7ed; border-color: #fdba74; color: #9a3412; }
.trial-banner-icon { font-size: 22px; flex-shrink: 0; }
.trial-banner-text { flex: 1; font-size: 14px; line-height: 1.4; }
.trial-banner-cta {
  background: #dc2626; color: #fff; border: none;
  font-weight: 700; padding: 8px 16px; border-radius: 6px;
  cursor: pointer; flex-shrink: 0;
}
.trial-banner-cta:hover { background: #b91c1c; }
.trial-banner.warning .trial-banner-cta { background: #ea580c; }
.trial-banner.warning .trial-banner-cta:hover { background: #c2410c; }
.trial-banner-close {
  background: transparent; border: none; color: inherit;
  font-size: 22px; line-height: 1; cursor: pointer; opacity: .6;
  padding: 0 4px; flex-shrink: 0;
}
.trial-banner-close:hover { opacity: 1; }
@media (max-width: 720px) {
  .trial-banner { margin: 12px 16px 0; flex-wrap: wrap; }
  .trial-banner-text { flex-basis: 100%; order: 3; }
}

.trial-badge {
  display: none; align-items: center; gap: 8px; padding: 7px 12px;
  border-radius: 999px; border: 1px solid #fde68a; background: #fffbeb;
  color: #92400e; font-size: 12px; font-weight: 700;
}
.trial-badge.warning { border-color: #fdba74; background: #fff7ed; color: #c2410c; }
.trial-badge.critical { border-color: #fca5a5; background: #fef2f2; color: #b91c1c; }
.trial-badge-meta { font-size: 11px; font-weight: 600; color: inherit; opacity: .82; }
.user-avatar {
  width: 32px; height: 32px; background: var(--accent); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: white; flex-shrink: 0;
}
#user-name { font-size: 13px; font-weight: 500; color: var(--text-secondary); }

/* MAIN */
#main {
  margin-left: var(--sidebar-width); margin-top: var(--header-height);
  padding: 28px; min-height: calc(100vh - var(--header-height));
  transition: margin-left .2s ease;
}

.page { display: none; }
.page.active { display: block; }
.row-low      { background-color: #fff8e1; }
.row-warning  { background-color: #fff3cd; }
.row-critical { background-color: #f8d7da; font-weight: bold; }

.page-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 24px; gap: 12px; }
.page-header-left h2 { font-size: 20px; font-weight: 700; }
.page-header-left p { font-size: 13px; color: var(--text-secondary); margin-top: 2px; }

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px;
  border-radius: var(--radius); font-size: 13px; font-weight: 500; cursor: pointer;
  border: none; transition: background .15s, box-shadow .15s; white-space: nowrap; line-height: 1.4;
}
.btn:active { opacity: .85; }
.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-secondary { background: var(--white); color: var(--text-primary); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--bg); }
.btn-danger { background: var(--danger); color: white; }
.btn-danger:hover { background: #dc2626; }
.btn-success { background: var(--success); color: white; }
.btn-success:hover { background: #16a34a; }
.btn-sm { padding: 5px 11px; font-size: 12px; }
.btn-full { width: 100%; justify-content: center; }

/* CARDS */
.card { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow); border: 1px solid var(--border); }
.card-header { padding: 14px 18px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.card-header h3 { font-size: 14px; font-weight: 600; }
.trial-card {
  display: none; margin-bottom: 16px; padding: 16px 18px;
  border-radius: var(--radius-lg); border: 1px solid #fde68a;
  background: linear-gradient(135deg, #fffdf5 0%, #ffffff 100%);
  box-shadow: var(--shadow);
}
.trial-card.warning { border-color: #fdba74; background: linear-gradient(135deg, #fff7ed 0%, #ffffff 100%); }
.trial-card.critical { border-color: #fca5a5; background: linear-gradient(135deg, #fef2f2 0%, #ffffff 100%); }
.trial-card-title { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.trial-card-text { font-size: 13px; color: var(--text-secondary); line-height: 1.5; }
.trial-card-meta { margin-top: 10px; display: flex; gap: 10px; flex-wrap: wrap; }
.trial-meta-pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px;
  border-radius: 999px; background: rgba(255,255,255,.8); border: 1px solid var(--border);
  font-size: 12px; font-weight: 700; color: var(--text-primary);
}

/* STATS GRID */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card {
  background: var(--white); border-radius: var(--radius-lg); padding: 18px 20px;
  box-shadow: var(--shadow); border: 1px solid var(--border);
  display: flex; align-items: center; gap: 14px;
}
.stat-icon { width: 46px; height: 46px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.stat-icon.blue { background: #eff6ff; }
.stat-icon.green { background: #f0fdf4; }
.stat-icon.amber { background: #fffbeb; }
.stat-icon.red { background: #fef2f2; }
.stat-label { font-size: 11px; color: var(--text-secondary); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.stat-value { font-size: 26px; font-weight: 700; margin-top: 3px; line-height: 1; }
.ops-card { margin-bottom: 24px; }
.ops-card-body { padding: 16px 18px 0; }
.ops-card .stats-grid { margin-bottom: 16px; }
.ops-list-meta { font-size: 12px; color: var(--text-secondary); }
.ops-empty { padding: 24px 14px; text-align: center; color: var(--text-secondary); font-size: 13px; }
.ops-recent { background: #f0fdf4 !important; }

/* TABLE */
.table-wrapper { overflow-x: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow); border: 1px solid var(--border); background: var(--white); }
table { width: 100%; border-collapse: collapse; }
thead th {
  background: var(--bg); padding: 10px 14px; text-align: left;
  font-size: 11.5px; font-weight: 600; color: var(--text-secondary);
  text-transform: uppercase; letter-spacing: .05em; border-bottom: 1px solid var(--border); white-space: nowrap;
}
tbody tr { transition: background .1s; }
tbody tr:hover { background: var(--accent-light) !important; }
tbody tr:nth-child(even) { background: var(--row-alt); }
tbody td { padding: 10px 14px; border-bottom: 1px solid var(--border); font-size: 13px; vertical-align: middle; }
tbody tr:last-child td { border-bottom: none; }
.loading-row { text-align: center; padding: 40px !important; color: var(--text-secondary); }

/* BADGES */
.badge { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 99px; font-size: 11px; font-weight: 600; }
.badge-blue { background: #dbeafe; color: #1d4ed8; }
.badge-green { background: #dcfce7; color: #15803d; }
.badge-amber { background: #fef3c7; color: #92400e; }
.badge-red { background: #fee2e2; color: #991b1b; }
.badge-gray { background: #f1f5f9; color: #475569; }

/* TOOLBAR */
.toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.search-wrap { position: relative; }
.search-wrap svg { position: absolute; left: 9px; top: 50%; transform: translateY(-50%); color: var(--text-secondary); pointer-events: none; }
.search-wrap input { padding: 7px 10px 7px 32px; border: 1px solid var(--border); border-radius: var(--radius); font-size: 13px; outline: none; width: 220px; transition: border-color .15s; background: var(--white); }
.search-wrap input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(59,130,246,.1); }
select.fsel { padding: 7px 10px; border: 1px solid var(--border); border-radius: var(--radius); font-size: 13px; background: var(--white); outline: none; cursor: pointer; }
select.fsel:focus { border-color: var(--accent); }

/* PAGINATION */
.pagination { display: flex; align-items: center; gap: 3px; justify-content: flex-end; margin-top: 14px; flex-wrap: wrap; }
.pagination button {
  min-width: 30px; height: 30px; padding: 0 6px;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--white); cursor: pointer; font-size: 12px;
  display: flex; align-items: center; justify-content: center; transition: background .1s;
}
.pagination button:hover:not(:disabled) { background: var(--bg); }
.pagination button.active { background: var(--accent); color: white; border-color: var(--accent); font-weight: 600; }
.pagination button:disabled { opacity: .4; cursor: default; }
.pg-info { font-size: 12px; color: var(--text-secondary); margin: 0 8px; }
.pg-dots { font-size: 13px; color: var(--text-secondary); padding: 0 2px; line-height: 30px; }

/* MODAL */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(15,23,42,.5); z-index: 200;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  opacity: 0; visibility: hidden; transition: opacity .2s;
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal {
  background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  width: 100%; max-width: 520px; max-height: calc(100vh - 40px); display: flex; flex-direction: column;
  transform: translateY(-12px) scale(.98); transition: transform .2s;
}
.modal-overlay.open .modal { transform: translateY(0) scale(1); }
.modal-header { padding: 18px 22px 14px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; }
.modal-header h3 { font-size: 15px; font-weight: 600; }
.modal-close {
  background: none; border: none; cursor: pointer; color: var(--text-secondary);
  width: 36px; height: 36px; border-radius: 6px; font-size: 20px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
.modal-close:hover { background: var(--bg); color: var(--text-primary); }
.modal-body { padding: 18px 22px; overflow-y: auto; flex: 1; }
.modal-footer { padding: 14px 22px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 8px; flex-shrink: 0; }
/* Narrow viewports (phones, half-width browser windows): widen the modal
   to almost the full width, shrink padding so inputs stay comfortable to
   tap, and stack footer buttons so no full-width primary action is cut
   off. The form-row grid also collapses to a single column. */
@media (max-width: 640px) {
  .modal-overlay { padding: 12px; }
  .modal { max-width: 98vw; max-height: calc(100vh - 24px); border-radius: 10px; }
  .modal-header { padding: 14px 16px 10px; }
  .modal-body { padding: 14px 16px; }
  .modal-footer {
    padding: 12px 16px;
    flex-direction: column-reverse; align-items: stretch;
  }
  .modal-footer .btn { width: 100%; justify-content: center; }
  .form-row { grid-template-columns: 1fr; gap: 10px; }
}
.confirm-modal {
  max-width: 460px;
  overflow: hidden;
  border: 1px solid rgba(148,163,184,.18);
  box-shadow: 0 24px 60px rgba(15,23,42,.28);
}
.confirm-hero {
  padding: 18px 22px 14px;
  background:
    radial-gradient(circle at top left, rgba(59,130,246,.16), transparent 42%),
    linear-gradient(135deg, #f8fbff 0%, #ffffff 58%, #f8fafc 100%);
  border-bottom: 1px solid var(--border);
}
.confirm-badge {
  width: 42px; height: 42px; border-radius: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #fff; font-size: 18px; font-weight: 700;
  box-shadow: 0 10px 24px rgba(220,38,38,.28);
  margin-bottom: 14px;
}
.confirm-title { font-size: 20px; font-weight: 700; letter-spacing: -.02em; margin-bottom: 6px; }
.confirm-subtitle { font-size: 13px; color: var(--text-secondary); line-height: 1.55; }
.confirm-body { padding: 18px 22px 8px; }
.confirm-card {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 15px; border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid rgba(226,232,240,.95);
}
.confirm-card-icon {
  width: 34px; height: 34px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(239,68,68,.12); color: #dc2626; font-size: 16px; flex-shrink: 0;
}
.confirm-card-label { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-secondary); margin-bottom: 5px; font-weight: 700; }
.confirm-card-value { font-size: 14px; font-weight: 700; color: var(--text-primary); word-break: break-word; }
.confirm-note { margin-top: 14px; font-size: 12.5px; color: var(--text-secondary); line-height: 1.5; }
.confirm-footer { padding: 16px 22px 22px; border-top: none; }
.confirm-badge.password {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  box-shadow: 0 10px 24px rgba(37,99,235,.28);
}
.confirm-badge.toggle {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  box-shadow: 0 10px 24px rgba(245,158,11,.28);
}
.password-strength {
  margin-top: 12px; display: grid; grid-template-columns: 88px 1fr; gap: 10px; align-items: center;
}
.password-strength-label { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-secondary); font-weight: 700; }
.password-strength-bar {
  height: 8px; border-radius: 999px; background: #e2e8f0; overflow: hidden;
}
.password-strength-fill {
  height: 100%; width: 0; border-radius: inherit; transition: width .18s ease, background .18s ease;
  background: #cbd5e1;
}
.password-hint { margin-top: 12px; font-size: 12.5px; color: var(--text-secondary); line-height: 1.5; }
.sa-inline-edit-modal {
  max-width: 560px;
  overflow: hidden;
  border: 1px solid rgba(148,163,184,.18);
  box-shadow: 0 28px 70px rgba(15,23,42,.26);
}
.sa-inline-edit-hero {
  padding: 20px 22px 16px;
  background:
    radial-gradient(circle at top left, rgba(37,99,235,.14), transparent 42%),
    linear-gradient(135deg, #f8fbff 0%, #ffffff 56%, #f8fafc 100%);
  border-bottom: 1px solid #e2e8f0;
}
.sa-inline-edit-badge {
  width: 44px; height: 44px; border-radius: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #fff; font-size: 18px; font-weight: 700;
  box-shadow: 0 12px 26px rgba(37,99,235,.28);
  margin-bottom: 14px;
}
.sa-inline-edit-badge.plan {
  background: linear-gradient(135deg, #0f766e 0%, #0f9b8e 100%);
  box-shadow: 0 12px 26px rgba(15,118,110,.24);
}
.sa-inline-edit-title { font-size: 21px; font-weight: 700; letter-spacing: -.02em; color: #0f172a; margin-bottom: 6px; }
.sa-inline-edit-subtitle { font-size: 13px; line-height: 1.55; color: #64748b; }
.sa-inline-edit-card {
  padding: 14px 15px; border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid rgba(226,232,240,.95); margin-bottom: 16px;
}
.sa-inline-edit-label {
  font-size: 11px; text-transform: uppercase; letter-spacing: .08em;
  color: #64748b; font-weight: 700; margin-bottom: 6px;
}
.sa-inline-edit-company { font-size: 15px; font-weight: 700; color: #0f172a; }
.sa-inline-edit-help { margin-top: 12px; font-size: 12.5px; line-height: 1.5; color: #64748b; }
.sa-plan-picker {
  display: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.sa-plan-option {
  border: 1px solid #dbe4ef; border-radius: 16px; padding: 12px 12px 11px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  cursor: pointer; transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.sa-plan-option:hover { border-color: #93c5fd; box-shadow: 0 10px 20px rgba(37,99,235,.08); transform: translateY(-1px); }
.sa-plan-option.active { border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.sa-plan-option-name { font-size: 13px; font-weight: 700; color: #0f172a; }
.sa-plan-option-meta { font-size: 11.5px; line-height: 1.45; color: #64748b; margin-top: 4px; }
.sa-inline-edit-error {
  display: none; margin-top: 14px; padding: 10px 12px; border-radius: 12px;
  background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; font-size: 12.5px;
}

/* FORMS */
.form-group { margin-bottom: 14px; }
.form-group:last-child { margin-bottom: 0; }
.form-group label { display: block; font-size: 11.5px; font-weight: 600; color: var(--text-secondary); margin-bottom: 5px; text-transform: uppercase; letter-spacing: .04em; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 8px 11px; border: 1px solid var(--border); border-radius: var(--radius);
  font-size: 13px; outline: none; transition: border-color .15s; background: var(--white); font-family: inherit; color: var(--text-primary);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(59,130,246,.1); }
.form-group textarea { resize: vertical; min-height: 72px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* Required field marker + inline field-level error.
   Applied via setFieldError / clearFieldError helpers in admin-shell-ui.js. */
.req-mark { color: var(--danger, #dc2626); margin-left: 2px; }
.field-error {
  display: none;
  margin-top: 4px;
  font-size: 12px;
  color: var(--danger, #dc2626);
  font-weight: 500;
  line-height: 1.3;
}
.field-error.visible { display: block; }
.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea {
  border-color: var(--danger, #dc2626);
  box-shadow: 0 0 0 3px rgba(220,38,38,.1);
}

/* TOAST */
#toast-container { position: fixed; top: 20px; right: 20px; z-index: 999; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast {
  background: var(--white); border-radius: var(--radius); padding: 11px 14px;
  box-shadow: var(--shadow-lg); border-left: 4px solid var(--accent);
  display: flex; align-items: center; gap: 10px; min-width: 260px; max-width: 360px;
  animation: toastIn .25s ease; font-size: 13px; pointer-events: all;
}
.toast.success { border-color: var(--success); }
.toast.error { border-color: var(--danger); }
.toast.warning { border-color: var(--warning); }
.toast-msg { flex: 1; font-weight: 500; }
.toast-x { background: none; border: none; cursor: pointer; color: var(--text-secondary); font-size: 16px; padding: 0; line-height: 1; }
@keyframes toastIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes toastOut { from { opacity: 1; } to { opacity: 0; transform: translateX(30px); } }
/* Sprint UX-4 polish follow-up: onboarding success card fades out */
@keyframes fadeOut { from { opacity: 1; transform: scale(1); } to { opacity: 0; transform: scale(.95); } }

/* EMPTY STATE */
.empty-state { text-align: center; padding: 48px 20px; color: var(--text-secondary); }
.empty-state .ei { font-size: 40px; margin-bottom: 10px; }
.empty-state p { font-size: 13px; }

/* SPINNER */
.spinner { display: inline-block; width: 18px; height: 18px; border: 2px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: spin .6s linear infinite; vertical-align: middle; }
@keyframes spin { to { transform: rotate(360deg); } }

/* DASHBOARD GRID */
.dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* DETAIL */
.detail-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.back-btn { background: none; border: 1px solid var(--border); cursor: pointer; color: var(--text-secondary); padding: 6px 10px; border-radius: var(--radius); font-size: 13px; display: flex; align-items: center; gap: 4px; transition: background .15s; }
.back-btn:hover { background: var(--bg); color: var(--text-primary); }
.detail-info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 22px; }
.di-item { background: var(--bg); border-radius: var(--radius); padding: 11px 14px; border: 1px solid var(--border); }
.di-item .dl { font-size: 10.5px; font-weight: 600; color: var(--text-secondary); text-transform: uppercase; letter-spacing: .04em; }
.di-item .dv { font-size: 14px; font-weight: 600; margin-top: 3px; }

/* SETTINGS */
.settings-card { background: var(--white); border-radius: var(--radius-lg); border: 1px solid var(--border); margin-bottom: 18px; box-shadow: var(--shadow); }
.settings-card-header { padding: 14px 18px; border-bottom: 1px solid var(--border); font-weight: 600; font-size: 14px; }
.settings-card-body { padding: 18px; }

/* code */
code { background: var(--bg); padding: 1px 5px; border-radius: 3px; font-size: 12px; font-family: 'Courier New', monospace; }

/* RESPONSIVE */
@media (max-width: 900px) {
  .dash-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  #sidebar { transform: translateX(-100%); transition: transform .2s; }
  #sidebar.mobile-open { transform: translateX(0); }
  #header { left: 0 !important; }
  #main { margin-left: 0 !important; }
  #main { padding: 16px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}

/* ─── PLANS MODAL ────────────────────────────────────────────── */
#m-plans .modal-body { padding: 12px 16px; }
#m-plans .modal-header { padding: 12px 16px 10px; }
#m-plans .modal-footer { padding: 10px 16px; }
.plans-card {
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 14px 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  background: var(--surface);
  transition: box-shadow .2s, border-color .2s;
}
.plans-card:hover { box-shadow: 0 4px 24px rgba(0,0,0,.08); }
.plans-card-featured {
  border-color: var(--accent, #3b82f6);
  box-shadow: 0 0 0 3px rgba(59,130,246,.12);
  background: linear-gradient(160deg, #f0f7ff 0%, #fff 60%);
}
.plans-popular-badge {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent, #3b82f6);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 12px;
  border-radius: 20px;
  white-space: nowrap;
  letter-spacing: .04em;
}
.plans-card-header { display: flex; flex-direction: column; gap: 4px; }
.plans-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  width: fit-content;
}
.plans-badge-starter { background: #f1f5f9; color: #475569; }
.plans-badge-growth  { background: #eff6ff; color: #2563eb; }
.plans-badge-pro     { background: #faf5ff; color: #7c3aed; }
.plans-headline { font-size: 11px; color: var(--text-secondary); line-height: 1.3; }
.plans-features {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
}
.plans-features li { font-size: 11.5px; color: var(--text-primary); line-height: 1.35; }
.plans-features li.plans-locked { color: var(--text-secondary); opacity: .65; }
.plans-hint {
  font-size: 10.5px;
  color: var(--text-secondary);
  font-style: italic;
  border-top: 1px solid var(--border-light, #f0f0f0);
  padding-top: 6px;
  margin-top: 2px;
}
/* highlight cardul planului curent */
.plans-card-current {
  border-color: #10b981 !important;
  box-shadow: 0 0 0 3px rgba(16,185,129,.12) !important;
}
.plans-card-current::before {
  content: '✓ Planul tău actual';
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: #10b981;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 14px;
  border-radius: 20px;
  white-space: nowrap;
}

/* ─── PRICING CARDS ──────────────────────────────────────────── */
.plans-price-card {
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.plans-price-card-featured {
  border-color: #2563eb;
  background: #eff6ff;
}
.plans-price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}
.plans-price-label {
  font-size: 12px;
  color: var(--text-secondary);
}
.plans-price-value {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
}
.plans-price-mo {
  font-size: 11px;
  font-weight: 400;
  color: var(--text-secondary);
}
.plans-price-custom {
  font-size: 13px;
  color: #7c3aed;
}
.plans-price-divider {
  height: 1px;
  background: var(--border);
  margin: 4px 0;
}
.plans-price-mo-note {
  font-size: 11px;
  color: var(--text-secondary);
  text-align: right;
}
