/* ═══════════════════════════════════════════════════════════════════════════
   VeriTracID™ — Global Stylesheet
   Dark navy / indigo palette matching veritracid.com/landing
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Reset & base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* ── Deep-space background ramp (futuristic dark) ──────────────────────── */
  --navy-900: #03050d;
  --navy-800: #050816;   /* primary background */
  --navy-700: #0b1026;   /* surface base */
  --navy-600: #111a33;
  --navy-500: #16213f;
  --navy-400: #1f2c4f;

  /* ── Accent ramp — re-mapped to violet/indigo (names kept for compat) ──── */
  --purple-600: #5b51e0;
  --purple-500: #6c63ff;  /* secondary accent — violet */
  --purple-400: #8f86ff;
  --purple-300: #c2c8ff;

  /* ── Cyan ramp (names kept for compat) ─────────────────────────────────── */
  --teal-400: #00e5ff;    /* primary accent — cyan */
  --teal-300: #5cf0ff;

  /* ── Named futuristic tokens ───────────────────────────────────────────── */
  --accent-cyan:   #00e5ff;
  --accent-violet: #6c63ff;
  --accent-purple: #7c3aed;
  --c-success: #00ff9d;
  --c-warning: #ffd166;
  --c-danger:  #ff4d6d;

  --chrome-light: #eaf0ff;
  --chrome-mid:   #aeb8dd;
  --chrome-dark:  #828dbb;

  --text-primary:   #f3f6ff;
  --text-secondary: #b6c2e0;
  --text-muted:     #8896b8;

  --border-color:  rgba(160,190,255,0.12);
  --card-bg:       rgba(13,20,40,0.66);
  --card-hover-bg: rgba(20,30,58,0.85);

  /* ── Glassmorphism ─────────────────────────────────────────────────────── */
  --glass-bg:        rgba(255,255,255,0.045);
  --glass-bg-strong: rgba(255,255,255,0.07);
  --glass-border:    rgba(255,255,255,0.10);
  --glass-blur:      18px;

  /* ── Gradients / glow / depth ──────────────────────────────────────────── */
  --grad-primary: linear-gradient(135deg, #6c63ff 0%, #00e5ff 100%);
  --grad-accent:  linear-gradient(120deg, #7c3aed 0%, #6c63ff 45%, #00e5ff 100%);
  --grad-text:    linear-gradient(115deg, #c2c8ff 0%, #00e5ff 55%, #6c63ff 100%);
  --glow-cyan:    0 0 26px rgba(0,229,255,0.35);
  --glow-violet:  0 0 26px rgba(108,99,255,0.42);
  --shadow-1: 0 4px 20px rgba(0,0,0,0.30);
  --shadow-2: 0 14px 44px rgba(0,0,0,0.46);
  --shadow-3: 0 24px 70px rgba(0,0,0,0.55);
  --ring: 0 0 0 3px rgba(0,229,255,0.32);

  /* ── Motion ────────────────────────────────────────────────────────────── */
  --ease-out:    cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;

  --font: 'Inter', system-ui, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background:
    radial-gradient(ellipse 110% 55% at 50% -5%, rgba(37,99,235,0.12) 0%, transparent 65%),
    radial-gradient(ellipse 65% 40% at 5% 90%, rgba(34,211,238,0.06) 0%, transparent 55%),
    var(--navy-800);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ── Global select styling (dark-mode safe) ───────────────────────────────── */
select {
  background: var(--navy-700);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 6px 28px 6px 10px;
  font-family: var(--font);
  font-size: .88rem;
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2393c5fd' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 9px center;
  transition: border-color .15s;
}
select:hover  { border-color: var(--purple-400); }
select:focus  { border-color: var(--purple-500); box-shadow: 0 0 0 2px rgba(59,130,246,.25); }
select option { background: var(--navy-700); color: var(--text-primary); }

/* ── Typography ───────────────────────────────────────────────────────────── */
h1 { font-family: var(--font-display); font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; }
h2 { font-family: var(--font-display); font-size: clamp(1.6rem, 3.5vw, 2.6rem); font-weight: 700; line-height: 1.2; letter-spacing: -0.015em; }
h3 { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; letter-spacing: -0.01em; }
h4 { font-family: var(--font-display); font-size: 1rem; font-weight: 600; }

.gradient-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.accent { color: var(--purple-400); }

/* ── Layout helpers ───────────────────────────────────────────────────────── */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header p {
  color: var(--text-secondary);
  margin-top: 12px;
  font-size: 1.1rem;
}

section { padding: 96px 0; }

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(135deg, #1a56db, #3b82f6);
  color: #fff;
  box-shadow: 0 4px 24px rgba(37,99,235,0.4);
}
.btn-primary:hover { box-shadow: 0 8px 32px rgba(37,99,235,0.55); }

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid rgba(255,255,255,0.25);
}
.btn-ghost:hover { border-color: var(--purple-400); color: var(--purple-300); background: rgba(59,130,246,0.08); }

.btn-nav {
  background: linear-gradient(135deg, var(--purple-600), var(--purple-400));
  color: #fff;
  padding: 10px 22px;
  font-size: 0.9rem;
}

.btn-full { width: 100%; justify-content: center; }

/* ── Badges ───────────────────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 20px;
}

.badge-warn { background: rgba(220,100,60,0.2); border: 1px solid rgba(220,100,60,0.4); color: #f4a261; }
.badge-info  { background: rgba(37,99,235,0.2);  border: 1px solid rgba(37,99,235,0.4);  color: var(--purple-300); }

/* ── Cards ────────────────────────────────────────────────────────────────── */
.card-grid { display: grid; gap: 24px; }
.card-grid.three { grid-template-columns: repeat(3, 1fr); }
.card-grid.six   { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 900px) {
  .card-grid.three, .card-grid.six { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .card-grid.three, .card-grid.six { grid-template-columns: 1fr; }
}

.card {
  background: rgba(11,18,32,0.68);
  border: 1px solid rgba(147,197,253,0.09);
  border-radius: var(--radius-md);
  padding: 28px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  background: var(--card-hover-bg);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.card-icon { font-size: 2rem; margin-bottom: 16px; }

/* ── Navigation ───────────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(4,7,15,0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(147,197,253,0.08);
}

.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
}

.nav-logo-img { height: 40px; width: auto; }

.nav-logo-fallback {
  display: none;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--chrome-light);
}

.nav-actions { display: flex; align-items: center; gap: 20px; }

.nav-link {
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: color 0.2s;
}
.nav-link:hover { color: var(--text-primary); }

/* ── Hero section ─────────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 24px 60px;
  gap: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% -10%, rgba(37,99,235,0.22) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 80% 60%, rgba(34,211,238,0.08) 0%, transparent 60%),
    var(--navy-800);
}

.hero-logo-wrap { margin-bottom: 8px; }

.hero-logo {
  height: clamp(200px, 25vw, 320px);
  width: auto;
  margin: 0 auto;
  filter: drop-shadow(0 0 60px rgba(37,99,235,0.3));
}

/* SVG fallback */
.hero-logo-svg { text-align: center; }

.qr-svg {
  width: clamp(160px, 22vw, 280px);
  height: auto;
  margin: 0 auto 20px;
  filter: drop-shadow(0 0 40px rgba(37,99,235,0.4));
}

.hero-logo-text {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  background: linear-gradient(120deg, var(--chrome-light) 0%, var(--chrome-mid) 50%, var(--chrome-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-tagline {
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  color: var(--chrome-dark);
  margin-top: 8px;
  font-weight: 500;
}

.hero-content { max-width: 780px; margin-top: 16px; }

.hero-content h1 { margin-top: 0; }

.hero-sub {
  color: var(--text-secondary);
  font-size: 1.15rem;
  margin: 20px auto 36px;
  max-width: 600px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Compliance section ───────────────────────────────────────────────────── */
.compliance {
  background: rgba(0,0,0,0.15);
  text-align: center;
}

.section-sub {
  color: var(--text-secondary);
  max-width: 780px;
  margin: 20px auto 48px;
  font-size: 1rem;
  line-height: 1.8;
}

.card-compliance h3 { margin-bottom: 12px; }
.card-compliance p  { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.7; }

.card-highlight {
  border-color: rgba(37,99,235,0.4);
  background: rgba(37,99,235,0.1);
}

.compliance-quote {
  margin-top: 48px;
  padding: 32px;
  border-left: 3px solid var(--purple-500);
  background: var(--card-bg);
  border-radius: var(--radius-md);
  text-align: left;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}

.compliance-quote p { font-style: italic; color: var(--text-secondary); font-size: 1.05rem; }
.compliance-quote cite { display: block; margin-top: 16px; font-size: 0.85rem; color: var(--text-muted); font-style: normal; }

/* ── How it works ─────────────────────────────────────────────────────────── */
.how-it-works { background: var(--navy-800); }

.card-feature { text-align: center; }
.feature-icon { font-size: 2.2rem; margin-bottom: 14px; }
.card-feature h4 { margin-bottom: 10px; }
.card-feature p  { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.6; }

/* ── Demo section ─────────────────────────────────────────────────────────── */
.demo-section { background: rgba(0,0,0,0.15); }

.demo-steps {
  display: flex;
  gap: 0;
  margin-bottom: 32px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.demo-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 24px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  flex-shrink: 0;
  border: 1px solid transparent;
  transition: all 0.2s;
}

.demo-step:hover { background: var(--card-bg); }

.demo-step.active {
  background: rgba(37,99,235,0.15);
  border-color: rgba(37,99,235,0.35);
}

.step-num {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--purple-400);
  min-width: 28px;
  margin-top: 2px;
}

.step-title { font-weight: 600; font-size: 0.9rem; }
.step-desc  { font-size: 0.78rem; color: var(--text-muted); margin-top: 2px; }

.demo-panel {
  background: var(--navy-900);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  min-height: 300px;
}

.demo-browser-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
}

.demo-url {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: monospace;
}

.demo-screen h3 { margin-bottom: 20px; }

.plan-cards { display: flex; gap: 16px; flex-wrap: wrap; }

.plan-card {
  flex: 1;
  min-width: 160px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  cursor: pointer;
  transition: all 0.2s;
}

.plan-card-selected {
  border-color: var(--purple-500);
  background: rgba(37,99,235,0.12);
}

.plan-name { font-weight: 700; margin-bottom: 4px; }
.plan-desc { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 12px; }
.plan-card ul li { font-size: 0.83rem; color: var(--text-secondary); margin-bottom: 4px; }

.demo-form { display: flex; flex-direction: column; gap: 16px; }

.demo-field label { display: block; font-size: 0.78rem; color: var(--text-muted); margin-bottom: 4px; }
.demo-input {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.demo-upload {
  background: rgba(37,99,235,0.08);
  border: 1px dashed rgba(37,99,235,0.4);
  border-radius: var(--radius-sm);
  padding: 14px;
  font-size: 0.85rem;
  color: var(--purple-300);
  text-align: center;
}

.demo-qr-preview { text-align: center; padding: 20px; }
.qr-placeholder { font-size: 6rem; line-height: 1; filter: grayscale(0.3); }
.demo-qr-preview p { margin-top: 12px; color: var(--text-secondary); font-size: 0.9rem; }

.demo-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.demo-stat  { text-align: center; }
.stat-num   { display: block; font-size: 2rem; font-weight: 800; color: var(--purple-300); }
.stat-label { font-size: 0.8rem; color: var(--text-muted); margin-top: 4px; }

/* ── Ecosystem ────────────────────────────────────────────────────────────── */
.ecosystem { background: var(--navy-800); }

.ecosystem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 900px) { .ecosystem-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .ecosystem-grid { grid-template-columns: 1fr; } }

.eco-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: all 0.2s;
}
.eco-card:hover { transform: translateY(-4px); border-color: rgba(37,99,235,0.3); }
.eco-icon { font-size: 2rem; margin-bottom: 12px; }
.eco-card h4 { margin-bottom: 8px; color: var(--purple-300); }
.eco-card p  { color: var(--text-secondary); font-size: 0.88rem; line-height: 1.6; }

/* ── Pricing ──────────────────────────────────────────────────────────────── */
.pricing { background: rgba(0,0,0,0.15); text-align: center; }

.price-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: left;
  position: relative;
  transition: all 0.2s;
}

.price-card:hover { transform: translateY(-4px); box-shadow: 0 16px 48px rgba(0,0,0,0.3); }

.price-card-featured {
  border-color: rgba(37,99,235,0.5);
  background: linear-gradient(135deg, rgba(37,99,235,0.12), rgba(78,205,196,0.06));
  box-shadow: 0 8px 40px rgba(37,99,235,0.2);
}

.price-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--purple-600), var(--purple-400));
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 50px;
  white-space: nowrap;
}

.price-card h3 { font-size: 1.3rem; margin-bottom: 4px; }
.price-target  { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 20px; }

.price-amount {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--chrome-light);
  margin-bottom: 24px;
}
.price-amount span { font-size: 1rem; color: var(--text-muted); font-weight: 400; }

.price-features { margin-bottom: 28px; }
.price-features li {
  font-size: 0.88rem;
  color: var(--text-secondary);
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

/* ── Footer ───────────────────────────────────────────────────────────────── */
.footer {
  background: var(--navy-900);
  border-top: 1px solid var(--border-color);
  padding: 48px 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.footer-logo {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--chrome-light);
}

.footer-brand p {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  margin-top: 4px;
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.88rem;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--purple-300); }

.footer-copy { color: var(--text-muted); font-size: 0.78rem; }

/* ═══════════════════════════════════════════════════════════════════════════
   APP STYLES (SPA Dashboard)
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Auth modal / overlay ─────────────────────────────────────────────────── */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(6px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal {
  background: rgba(8,13,26,0.92);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(147,197,253,0.13);
  border-radius: var(--radius-lg);
  padding: 40px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.06);
}

.modal h2 { margin-bottom: 8px; }
.modal p.modal-sub { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 28px; }

/* ── Form elements ────────────────────────────────────────────────────────── */
.form-group { margin-bottom: 18px; }

.form-group label {
  display: block;
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: var(--font);
  transition: border-color 0.2s;
  outline: none;
}

.form-group select {
  padding-right: 32px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--purple-500);
}

.form-group textarea { resize: vertical; min-height: 90px; }

/* ── Checkbox grid (doc types, codes, processes) ──────────────────────────── */
.checkbox-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.82rem;
  color: var(--text-muted);
  background: rgba(255,255,255,0.03);
  transition: border-color 0.15s, background 0.15s, color 0.15s;
  user-select: none;
}

.checkbox-item:hover {
  border-color: var(--purple-500);
  color: var(--text-primary);
}

.checkbox-item input[type="checkbox"] {
  width: 14px;
  height: 14px;
  accent-color: var(--purple-500);
  cursor: pointer;
}

.checkbox-item:has(input:checked) {
  border-color: var(--purple-500);
  background: rgba(37,99,235,0.18);
  color: var(--text-primary);
}

.form-error {
  color: #f87171;
  font-size: 0.8rem;
  margin-top: 4px;
}

/* ── App layout ───────────────────────────────────────────────────────────── */
.app-layout {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: max-content;
  min-width: 220px;
  max-width: 300px;
  flex-shrink: 0;
  background: rgba(4,7,15,0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-right: 1px solid rgba(147,197,253,0.1);
  display: flex;
  flex-direction: column;
  padding: 0;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 50;
}

.sidebar-header {
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: center;
}

.sidebar-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  line-height: 1;
}

.sidebar-logo-img {
  display: block;
  width: auto;
  height: auto;
  max-height: 38px;
  max-width: 180px;
  object-fit: contain;
  object-position: center;
  margin-bottom: 4px;
  flex-shrink: 0;
}

.nav-brand-name {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: .02em;
  color: var(--text-primary);
}

.nav-brand-tag {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  font-size: .6rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--teal-400);
  margin-top: 3px;
}

.nav-brand-tag-top,
.nav-brand-tag-bottom {
  display: block;
  line-height: 1.1;
}

.nav-brand-tag-bottom {
  margin-top: 2px;
}

.sidebar-nav {
  flex: 1;
  padding: 16px 12px;
  overflow-y: auto;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s;
  margin-bottom: 2px;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}

.nav-item:hover { background: var(--card-bg); color: var(--text-primary); }
.nav-item.active { background: rgba(37,99,235,0.15); color: var(--purple-300); }

.nav-item-icon { font-size: 1.1rem; width: 20px; text-align: center; }

.sidebar-section-label {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 16px 16px 4px;
  opacity: .6;
}

.sidebar-footer {
  padding: 16px 12px;
  border-top: 1px solid var(--border-color);
}

.user-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--card-bg);
  cursor: pointer;
  transition: background 0.15s;
}
.user-pill:hover {
  background: rgba(37,99,235,0.15);
}

.user-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple-600), var(--teal-400));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.user-info { flex: 1; min-width: 0; }
.user-name  { font-size: 0.85rem; font-weight: 600; truncate: ellipsis; white-space: nowrap; overflow: hidden; }
.user-role  { font-size: 0.7rem; color: var(--text-muted); }

.main-content {
  margin-left: var(--sidebar-offset, 240px);
  flex: 1;
  padding: 32px;
  min-height: 100vh;
}

/* ── Page header ──────────────────────────────────────────────────────────── */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.page-header h1 { font-size: 1.6rem; font-weight: 700; }

.toolbar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.toolbar-meta {
  margin-left: auto;
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* ── Stats row ────────────────────────────────────────────────────────────── */
.stats-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; margin-bottom: 32px; }
@media (max-width: 900px) { .stats-row { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 540px) { .stats-row { grid-template-columns: 1fr; } }

.stat-card {
  background: rgba(11,18,32,0.72);
  border: 1px solid rgba(147,197,253,0.1);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 4px 20px rgba(0,0,0,0.25);
  transition: transform 0.15s, border-color 0.15s;
}

.stat-card .stat-content { flex: 1; }
.stat-card .stat-num  { font-size: 2.1rem; font-weight: 800; letter-spacing: -1px; color: var(--text-primary); }
.stat-card .stat-label{ font-size: 0.78rem; color: var(--text-muted); margin-top: 5px; text-transform: uppercase; letter-spacing: 0.5px; font-weight: 500; }

.stat-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.stat-icon-purple { background: rgba(37,99,235,0.18); }
.stat-icon-green  { background: rgba(52,211,153,0.15); }
.stat-icon-red    { background: rgba(248,113,113,0.15); }
.stat-icon-teal   { background: rgba(78,205,196,0.15); }

/* ── Page subtitle ─────────────────────────────────────────────────────────── */
.page-subtitle { color: var(--text-muted); font-size: 0.85rem; margin-top: 4px; }
.section-header { margin: 8px 0 16px; }
.section-header h2 { font-size: 1.1rem; font-weight: 600; }

/* ── Profile row cards ─────────────────────────────────────────────────────── */
.profile-list { display: flex; flex-direction: column; gap: 12px; }

.profile-row {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.profile-row:hover { border-color: rgba(59,130,246,0.4); background: rgba(37,99,235,0.06); }

.profile-row-icon {
  width: 44px; height: 44px;
  background: rgba(37,99,235,0.18);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.profile-row-info { flex: 1; min-width: 0; }
.profile-row-name { font-weight: 600; font-size: 0.95rem; margin: 0 0 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.profile-row-addr { font-size: 0.78rem; color: var(--text-muted); margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.profile-row-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  flex-shrink: 0;
}
.profile-emp { font-size: 0.8rem; color: var(--text-muted); white-space: nowrap; }

.industry-tag {
  font-size: 0.72rem;
  padding: 3px 10px;
  background: rgba(78,205,196,0.12);
  color: var(--teal-400);
  border: 1px solid rgba(78,205,196,0.25);
  border-radius: 20px;
  white-space: nowrap;
}
.industry-more {
  font-size: 0.72rem;
  padding: 3px 10px;
  background: rgba(255,255,255,0.06);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  white-space: nowrap;
}

.profile-row-actions { display: flex; gap: 8px; flex-shrink: 0; }

.icon-btn {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 0.95rem;
  transition: background 0.15s, border-color 0.15s;
  color: var(--text-primary);
}
.icon-btn:hover { background: rgba(37,99,235,0.18); border-color: var(--purple-500); }
.icon-btn-danger:hover { background: rgba(248,113,113,0.18); border-color: rgba(248,113,113,0.5); }


/* ── Profile Detail — Info Card ───────────────────────────────────────────── */
/* -- Profile Detail two-column layout ------------------------------------- */
.pd-layout,
.pd-top {
  display: grid;
  grid-template-columns: minmax(300px, 360px) 1fr;
  gap: 22px;
  align-items: start;
}
/* when there is no Credentials-by-Type data, keep the info card left-anchored */
.pd-top.pd-top-solo { grid-template-columns: minmax(300px, 420px); }

.pd-main { display: flex; flex-direction: column; gap: 16px; }
.pd-sidebar { display: flex; flex-direction: column; gap: 16px; }

/* Worker search box in the Workers section header */
.pd-search-input {
  width: 220px;
  max-width: 48vw;
  padding: 8px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out), background 0.2s var(--ease-out);
}
.pd-search-input::placeholder { color: var(--text-muted); }
.pd-search-input:focus {
  border-color: var(--accent-cyan);
  background: rgba(0,229,255,0.05);
  box-shadow: 0 0 0 3px rgba(0,229,255,0.18);
}

/* ── Consolidated company-info card (left rail) ─────────────────────────────*/
.pd-info-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 22px;
  margin-bottom: 0;
}

/* quick-stats strip at the top of the consolidated card */
.pd-quickstats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.pd-qs {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 12px 6px;
  border-radius: 12px;
  background: rgba(255,255,255,0.035);
  border: 1px solid var(--glass-border);
}
.pd-qs-num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--accent-cyan);
}
.pd-qs-label {
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  font-weight: 600;
}

.pd-alert-strip {
  margin-top: 12px;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--c-warning);
  background: rgba(255,209,102,0.10);
  border: 1px solid rgba(255,209,102,0.22);
}

/* stacked sections divided by hairlines inside the one card */
.pd-section {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.07);
}
.pd-section-head {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 14px;
}

.pd-content { min-width: 0; }

.pd-contact-list { display: flex; flex-direction: column; gap: 14px; }
.pd-contact-row  { display: flex; align-items: flex-start; gap: 12px; }
.pd-contact-icon { font-size: .95rem; width: 22px; flex-shrink: 0; margin-top: 2px; }

.pd-logo-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.07);
}

@media (max-width: 860px) {
  .pd-layout,
  .pd-top,
  .pd-top.pd-top-solo { grid-template-columns: 1fr; }
}

.info-card {
  background: rgba(11,18,32,0.68);
  border: 1px solid rgba(147,197,253,0.09);
  border-radius: var(--radius-md);
  padding: 28px;
  margin-bottom: 8px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}
.info-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 20px;
}
.info-card-icon {
  width: 36px; height: 36px;
  background: rgba(37,99,235,0.18);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}
.info-card-logo-row {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 16px 0 20px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 20px;
}
.profile-logo-preview {
  width: 120px;
  height: 72px;
  background: rgba(255,255,255,0.06);
  border: 1px dashed rgba(255,255,255,0.15);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.profile-logo-preview img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 6px;
}
.logo-placeholder {
  font-size: .75rem;
  color: var(--text-muted);
  text-align: center;
}
.info-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}
.info-field { display: flex; flex-direction: column; gap: 3px; }
.info-field-full { margin-top: 12px; }
.info-label { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; }
.info-value { font-size: 0.95rem; color: var(--text-primary); font-weight: 500; }

/* ── Profile Detail — Credential list items ───────────────────────────────── */
.cred-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 4px;
}
.cred-grid-card {
  background: rgba(10,15,28,0.96);
  border: 1.5px solid rgba(51,65,85,0.55);
  border-radius: var(--radius-lg);
  padding: 16px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.cred-grid-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--cr-accent, linear-gradient(to right, #3b82f6, #0891b2));
}
.cred-grid-card:hover {
  border-color: rgba(59,130,246,0.5);
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.4);
}
.cred-grid-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding-top: 6px;
}
.cred-grid-card-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
  flex: 1;
  min-width: 0;
  word-break: break-word;
}
.cred-grid-card-types {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.cred-grid-card-types .industry-tag {
  white-space: normal;
  word-break: break-word;
  flex: 0 1 auto;
  min-width: 0;
}
.cred-grid-card-footer {
  display: flex;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.cred-grid-card-meta { font-size: 0.75rem; color: var(--text-muted); }
.cred-grid-card-actions {
  position: absolute;
  top: 10px;
  right: 10px;
  opacity: 0;
  transition: opacity 0.15s;
}
.cred-grid-card:hover .cred-grid-card-actions { opacity: 1; }
.cred-item-actions { display: flex; gap: 8px; flex-shrink: 0; }

/* ── Credential Detail layout ─────────────────────────────────────────────── */
.cred-detail-layout {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.doc-list-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  margin-bottom: 6px;
  transition: border-color 0.15s;
}
.doc-list-item:hover { border-color: rgba(59,130,246,0.35); }

.qr-panel {
  width: 280px;
  flex-shrink: 0;
  background: rgba(11,18,32,0.72);
  border: 1px solid rgba(147,197,253,0.1);
  border-radius: var(--radius-md);
  padding: 24px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}

/* QR Studio */
.qrs-label {
  font-size: .78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
  margin: 0 0 12px;
}

/* ── Subscription card ────────────────────────────────────────────────────── */
.sub-card { margin-top: 20px; }
.sub-plan-badge {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 3px 9px;
  border-radius: 20px;
  color: var(--text-primary);
}
.sub-status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.sub-usage-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
}
.sub-usage-bar-track {
  height: 6px;
  background: rgba(255,255,255,0.08);
  border-radius: 3px;
  overflow: hidden;
}
.sub-usage-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width .4s ease;
}

/* ── Upgrade modal plans grid ─────────────────────────────────────────────── */
.upgrade-plans-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
@media (max-width: 600px) { .upgrade-plans-grid { grid-template-columns: 1fr; } }
.upgrade-plan-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  padding: 18px;
  position: relative;
  transition: border-color .2s;
}
.upgrade-plan-card:hover { border-color: var(--purple-600); }
.upgrade-plan-popular {
  border-color: var(--teal-400);
  background: rgba(78,205,196,0.06);
}
.upgrade-popular-badge {
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--teal-400);
  margin-bottom: 8px;
}
.upgrade-plan-name {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 4px;
}
.upgrade-plan-price {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--teal-400);
  margin: 0 0 12px;
}
.upgrade-plan-features {
  list-style: none;
  padding: 0; margin: 0;
  font-size: .82rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.upgrade-plan-features li::before { content: '✓  '; color: var(--teal-400); }

.qr-img-wrap {
  background: #fff;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 12px;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Document fields grid ─────────────────────────────────────────────────── */
.doc-fields-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.doc-field {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.doc-field-icon {
  width: 32px; height: 32px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.doc-field-label { font-size: 0.72rem; color: var(--text-muted); margin: 0 0 3px; }
.doc-field-value { font-size: 0.9rem; font-weight: 600; color: var(--text-primary); margin: 0; }

@media (max-width: 860px) {
  .cred-detail-layout { flex-direction: column; }
  .qr-panel { width: 100%; }
  .doc-fields-grid { grid-template-columns: 1fr; }
}


/* ── Table ────────────────────────────────────────────────────────────────── */
.table-wrap {
  background: rgba(11,18,32,0.72);
  border: 1px solid rgba(147,197,253,0.1);
  border-radius: var(--radius-md);
  overflow: hidden;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.data-table th {
  background: rgba(255,255,255,0.04);
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border-color);
}

.data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  color: var(--text-secondary);
  vertical-align: middle;
}

.table-dense .data-table th,
.table-dense .data-table td {
  padding: 10px 14px;
}

.table-dense .data-table th {
  position: sticky;
  top: 0;
  z-index: 2;
}

.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: rgba(255,255,255,0.02); }

.linkish {
  border: none;
  background: none;
  color: var(--purple-300);
  cursor: pointer;
  font: inherit;
  padding: 0;
  text-align: left;
}

.linkish:hover {
  color: var(--text-primary);
  text-decoration: underline;
}

.btn-compact {
  padding: 5px 10px;
  font-size: 0.75rem;
}

.text-muted { color: var(--text-muted); }
.text-warn { color: #fca5a5; font-weight: 600; }

.dashboard-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 22px;
}

.panel-card {
  background: rgba(11,18,32,0.72);
  border: 1px solid rgba(147,197,253,0.1);
  border-radius: var(--radius-md);
  padding: 16px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.panel-head h3 {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.panel-kicker {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.attention-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.attention-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 2px 10px;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  background: rgba(255,255,255,0.02);
  color: inherit;
  padding: 10px 12px;
  cursor: pointer;
  text-align: left;
}

.attention-item:hover {
  border-color: rgba(59,130,246,0.35);
  background: rgba(37,99,235,0.08);
}

.attention-title {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.attention-meta {
  grid-column: 1;
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pill-count {
  font-size: 0.72rem;
  color: var(--teal-400);
  border: 1px solid rgba(78,205,196,0.25);
  background: rgba(78,205,196,0.08);
  border-radius: 999px;
  padding: 3px 9px;
}

.empty-note {
  color: var(--text-muted);
  font-size: 0.84rem;
  padding: 4px 0;
}

/* ── Status pills ─────────────────────────────────────────────────────────── */
.status {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 600;
}
.status-active   { background: rgba(52,199,89,0.15);  color: #4ade80; }
.status-expired  { background: rgba(248,113,113,0.15);color: #f87171; }
.status-pending  { background: rgba(250,189,47,0.15); color: #fbbf24; }
.status-draft    { background: rgba(160,168,192,0.12);color: var(--text-muted); }

/* ── Upload zone ──────────────────────────────────────────────────────────── */
.upload-zone {
  border: 2px dashed rgba(37,99,235,0.35);
  border-radius: var(--radius-md);
  padding: 40px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}

.upload-zone:hover,
.upload-zone.dragover {
  border-color: var(--purple-400);
  background: rgba(37,99,235,0.06);
}

.upload-zone p { color: var(--text-muted); font-size: 0.9rem; margin-top: 12px; }
.upload-icon   { font-size: 2.5rem; }

/* ── Toast notifications ──────────────────────────────────────────────────── */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 500;
  max-width: 340px;
  animation: slideIn 0.25s ease;
}

.toast-success { background: rgba(52,199,89,0.15); border: 1px solid rgba(52,199,89,0.3); color: #4ade80; }
.toast-error   { background: rgba(248,113,113,0.15);border: 1px solid rgba(248,113,113,0.3);color: #f87171; }
.toast-info    { background: rgba(37,99,235,0.15); border: 1px solid rgba(37,99,235,0.3); color: var(--purple-300); }

@keyframes slideIn {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); transition: transform 0.25s; }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; padding: 20px; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .demo-stats { grid-template-columns: 1fr 1fr; }
  .dashboard-split { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .stats-row { grid-template-columns: 1fr; }
  .demo-steps { flex-direction: column; }
  .plan-cards { flex-direction: column; }
  .toolbar-meta { margin-left: 0; width: 100%; }

  .table-dense {
    background: transparent;
    border: none;
    border-radius: 0;
    overflow: visible;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .table-dense .data-table,
  .table-dense .data-table tbody,
  .table-dense .data-table tr,
  .table-dense .data-table td {
    display: block;
    width: 100%;
  }

  .table-dense .data-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .table-dense .data-table tr {
    margin-bottom: 10px;
    border: 1px solid rgba(147,197,253,0.12);
    border-radius: 10px;
    background: rgba(11,18,32,0.72);
    padding: 8px 10px;
  }

  .table-dense .data-table td {
    border: none;
    padding: 8px 2px;
    text-align: right;
    position: relative;
    min-height: 28px;
  }

  .table-dense .data-table td::before {
    content: attr(data-label);
    position: absolute;
    left: 2px;
    top: 8px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--text-muted);
  }

  .table-dense .data-table td[data-label="Actions"] {
    text-align: left;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 6px;
    padding-top: 18px;
  }

  .table-dense .data-table td[data-label="Actions"]::before {
    top: 2px;
  }
}

/* ── Utility ──────────────────────────────────────────────────────────────── */
.hidden { display: none !important; }
.text-center { text-align: center; }
.mt-4  { margin-top: 16px; }
.mt-8  { margin-top: 32px; }
.mb-4  { margin-bottom: 16px; }
.flex  { display: flex; }
.items-center { align-items: center; }
.gap-2 { gap: 8px; }
.gap-4 { gap: 16px; }
.w-full { width: 100%; }

/* ═══════════════════════════════════════════════════════════════════════════
   VeriTracID™ — UI Polish (added redesign)
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Nav active left-bar indicator ───────────────────────────────────────── */
.nav-item { position: relative; }

.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 3px; height: 18px;
  background: var(--purple-400);
  border-radius: 0 3px 3px 0;
}

/* SVG icon in nav item inherits stroke from color */
.nav-item svg { display: block; }

/* ── Sidebar sign-out button ──────────────────────────────────────────────── */
.sidebar-sign-out {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  margin-top: 10px;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.sidebar-sign-out:hover {
  background: rgba(239,68,68,0.10);
  color: #f87171;
  border-color: rgba(239,68,68,0.3);
}

/* ── Company card: letter avatar ─────────────────────────────────────────── */
.profile-row-letter {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  /* background + color set inline per-letter; border-radius from .profile-row-icon */
}

/* ── Company search input ─────────────────────────────────────────────────── */
.profile-search-wrap {
  margin-bottom: 16px;
}
.profile-search {
  width: 100%;
  max-width: 360px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 9px 14px;
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.15s;
}
.profile-search:focus { border-color: var(--purple-400); }
.profile-search::placeholder { color: var(--text-muted); }

/* ── Stat card icon color variants (SVG inherits stroke from color) ───────── */
.stat-icon-purple { color: var(--purple-400); }
.stat-icon-green  { color: var(--teal-400); }
.stat-icon-red    { color: #f87171; }
.stat-icon-teal   { color: #38bdf8; }

/* Stat card hover lift */
.stat-card:hover {
  transform: translateY(-2px);
  border-color: rgba(59,130,246,0.25);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.07), 0 8px 32px rgba(0,0,0,0.3);
}

/* ── Modal header (redesigned) ────────────────────────────────────────────── */
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}

.modal-title {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--text-primary);
  margin: 0;
}

.modal-close {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: none;
  background: rgba(255,255,255,0.06);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
  flex-shrink: 0;
}
.modal-close:hover { background: rgba(239,68,68,0.15); color: #f87171; }

/* ── Improved toast (solid, readable) ────────────────────────────────────── */
.toast {
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 500;
  max-width: 360px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.35);
  transition: opacity 0.2s, transform 0.2s;
}

/* Override transparent backgrounds with solid ones for readability */
.toast-success {
  background: #064e3b;
  border: 1px solid rgba(52,211,153,0.4);
  color: #6ee7b7;
}
.toast-error {
  background: #450a0a;
  border: 1px solid rgba(248,113,113,0.4);
  color: #fca5a5;
}
.toast-info {
  background: var(--navy-600);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
}

/* ── Stat number accent color ─────────────────────────────────────────────── */
/* (stat-num color set above in .stat-card .stat-num) */

/* ── Profile row: tighter employee count ─────────────────────────────────── */
.profile-emp {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
  padding-right: 8px;
  border-right: 1px solid var(--border-color);
}

/* ── Credential detail page header back-button ───────────────────────────── */
.page-header .icon-btn {
  width: 34px; height: 34px;
  border-radius: 9px;
  border: 1px solid var(--border-color);
  background: rgba(255,255,255,0.04);
  color: var(--text-muted);
  font-size: 1rem;
}
.page-header .icon-btn:hover { background: rgba(255,255,255,0.08); color: var(--text-primary); }

/* ── Cards in grid ────────────────────────────────────────────────────────── */
.card { cursor: pointer; }
.card:hover { border-color: rgba(59,130,246,0.3); background: rgba(37,99,235,0.05); box-shadow: inset 0 1px 0 rgba(255,255,255,0.07), 0 8px 28px rgba(0,0,0,0.3); }

/* ── Admin tab active style ───────────────────────────────────────────────── */
button[onclick*="setAdminTab"]:hover { background: rgba(37,99,235,0.1); }

/* ── Employee grid & cards (client workforce view) ────────────────────────── */
.employee-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 12px;
  margin-top: 8px;
}

.employee-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  background: rgba(11,18,32,0.68);
  border: 1px solid rgba(147,197,253,0.09);
  border-radius: var(--radius-md);
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
  transition: border-color 0.15s, background 0.15s;
}
.employee-card:hover {
  border-color: rgba(59, 130, 246, 0.45);
  background: var(--card-hover-bg);
}

.emp-avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  font-weight: 800;
  flex-shrink: 0;
  letter-spacing: -0.5px;
}

.emp-info { flex: 1; min-width: 0; }
.emp-name {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0 0 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.emp-id { font-size: 0.75rem; color: var(--text-muted); margin: 0 0 4px; }
.emp-meta {
  display: flex;
  gap: 10px;
  margin-top: 6px;
  flex-wrap: wrap;
  align-items: center;
}
.emp-type {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
}
.emp-exp { font-size: 0.72rem; color: var(--text-muted); white-space: nowrap; }

.emp-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
  align-self: center;
}

@media (max-width: 480px) {
  .employee-grid { grid-template-columns: 1fr; }
  .emp-actions { flex-direction: row; }
}

/* -- Company stats list (dashboard cards + detail page) ------------------- */
.co-stat-list {
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(59,130,246,0.18);
  background: rgba(37,99,235,0.06);
  width: fit-content;
}
.co-stat-line {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 0.85rem;
  line-height: 1.4;
}
.co-stat-key {
  color: var(--text-muted);
  font-weight: 400;
  min-width: 100px;
}
.co-stat-val {
  color: var(--text-primary);
  font-weight: 600;
}
.pd-alert-detail {
  font-size: .8rem;
  color: var(--text-muted);
  font-weight: 400;
  margin-left: 4px;
}

/* -- Credentials by Type breakdown panel ------------------------------------ */
.cat-grid {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.cat-row {
  display: grid;
  grid-template-columns: 90px 1fr 52px 40px;
  align-items: center;
  gap: 0 10px;
}

.cat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cat-bar-wrap {
  background: rgba(255,255,255,0.06);
  border-radius: 99px;
  height: 8px;
  overflow: hidden;
}

.cat-bar {
  height: 100%;
  border-radius: 99px;
  transition: width 0.4s ease;
}

.cat-count {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-primary);
  text-align: right;
}

.cat-pct {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: right;
}

@media (max-width: 520px) {
  .cat-row { grid-template-columns: 72px 1fr 42px; }
  .cat-pct { display: none; }
}

/* -- Company card grid (admin dashboard) ------------------------------------ */
.company-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 8px;
}

.company-card {
  background: rgba(10,15,28,0.96);
  border: 1.5px solid rgba(51,65,85,0.55);
  border-radius: var(--radius-lg);
  padding: 20px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.company-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--co-accent, linear-gradient(to right, #3b82f6, #0891b2));
}
.company-card:hover {
  border-color: rgba(59,130,246,0.5);
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.45);
}

.company-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 4px;
}

.company-card-avatar {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  font-weight: 800;
  flex-shrink: 0;
  letter-spacing: -0.5px;
}

.company-card-title {
  flex: 1;
  min-width: 0;
}
.company-card-name {
  font-size: 0.95rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-primary);
}
.company-card-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.company-card-addr {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.company-card-stats {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.company-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.company-stat-num {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-primary);
  line-height: 1;
}
.company-stat-label {
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 500;
}

.company-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

@media (max-width: 600px) {
  .company-card-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   FUTURISTIC UI LAYER  (premium-but-lean)
   Glassmorphism · ambient aurora · gradient borders · motion · a11y.
   Appended last so it overrides earlier rules by source order — no !important
   except where guarding accessibility (reduced-motion).
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Display font weight tuning ─────────────────────────────────────────────*/
.nav-brand-name,
.stat-card .stat-num,
.company-stat-num,
.hero-logo-text { font-family: var(--font-display); }

/* ── Ambient aurora backdrop ────────────────────────────────────────────────*/
body::before {
  content: "";
  position: fixed;
  inset: -25% -15% auto -15%;
  height: 90vh;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(42% 52% at 18% 16%, rgba(108,99,255,0.20), transparent 70%),
    radial-gradient(38% 48% at 84% 10%, rgba(0,229,255,0.15),  transparent 70%),
    radial-gradient(48% 58% at 62% 86%, rgba(124,58,237,0.13), transparent 72%);
  filter: blur(48px) saturate(120%);
  animation: fx-aurora 26s var(--ease-out) infinite alternate;
  will-change: transform, opacity;
}

@keyframes fx-aurora {
  0%   { transform: translate3d(-3%, -2%, 0) scale(1);    opacity: 0.85; }
  50%  { transform: translate3d(4%, 2%, 0)  scale(1.08);  opacity: 1;    }
  100% { transform: translate3d(-2%, 4%, 0) scale(1.04);  opacity: 0.9;  }
}

/* ── Custom scrollbars ──────────────────────────────────────────────────────*/
* { scrollbar-width: thin; scrollbar-color: rgba(108,99,255,0.45) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(108,99,255,0.55), rgba(0,229,255,0.45));
  border-radius: 99px;
  border: 2px solid transparent;
  background-clip: content-box;
}
::-webkit-scrollbar-thumb:hover { background-clip: padding-box; }

/* ── Accessible focus ring ──────────────────────────────────────────────────*/
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 8px; }
.nav-item:focus-visible,
.btn:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible { box-shadow: var(--ring); }

/* ── Buttons — gradient, glow, sheen, press ─────────────────────────────────*/
.btn {
  position: relative;
  overflow: hidden;
  transition: transform 0.25s var(--ease-spring), box-shadow 0.25s var(--ease-out),
              background 0.25s var(--ease-out), filter 0.25s var(--ease-out);
}
.btn:active { transform: translateY(0) scale(0.97); }

.btn-primary {
  background: var(--grad-primary);
  background-size: 180% 180%;
  box-shadow: 0 6px 22px rgba(108,99,255,0.40), inset 0 1px 0 rgba(255,255,255,0.25);
}
.btn-primary:hover {
  transform: translateY(-2px);
  background-position: 100% 0;
  box-shadow: 0 10px 34px rgba(0,229,255,0.40), var(--glow-violet),
              inset 0 1px 0 rgba(255,255,255,0.35);
}
/* moving sheen */
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,0.35) 50%, transparent 65%);
  transform: translateX(-120%);
  transition: transform 0.6s var(--ease-out);
}
.btn-primary:hover::after { transform: translateX(120%); }

.btn-nav { background: var(--grad-primary); background-size: 160% 160%; }
.btn-nav:hover { background-position: 100% 0; box-shadow: var(--glow-violet); }

.btn-ghost { backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn-ghost:hover { border-color: var(--accent-cyan); color: var(--accent-cyan); box-shadow: 0 0 18px rgba(0,229,255,0.18); }

/* ── Glass surfaces + gradient hairline + hover glow ────────────────────────*/
.card,
.stat-card,
.panel-card,
.table-wrap,
.employee-card,
.subscription-card,
.info-card,
.co-stat-list {
  position: relative;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(var(--glass-blur)) saturate(130%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(130%);
  box-shadow: var(--shadow-1), inset 0 1px 0 rgba(255,255,255,0.06);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out),
              border-color 0.3s var(--ease-out), background 0.3s var(--ease-out);
}

/* the consolidated company-info card stays calm (no hover-lift) but gets a
   subtle gradient top accent so it reads as the page's primary panel */
.pd-info-card::after,
.pd-info-top::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  background: var(--grad-primary);
  opacity: 0.85;
}
.info-card-icon {
  background: rgba(108,99,255,0.16);
  box-shadow: inset 0 0 0 1px rgba(108,99,255,0.28);
}

/* ── Full-width packed company-info header (top of detail page) ─────────────
   Flex-wrap with content-sized blocks: data packs to the left and wraps onto
   new lines as the viewport narrows. No flex-grow / space-between, so large
   screens never stretch the fields apart with empty gaps between them. ──────*/
.pd-info-top {
  padding: 20px 24px;
  margin-bottom: 20px;
}
.pd-info-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 20px 38px;
}
.pd-info-block { min-width: 0; }
.pd-info-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.pd-info-logo  { display: flex; flex-direction: column; align-items: flex-start; }
.pd-info-about { flex: 0 1 300px; max-width: 340px; }
.pd-info-sub   { min-width: 240px; max-width: 290px; }

/* keep the quick-stat tiles compact so they don't spread across the row */
.pd-info-top .pd-quickstats { gap: 8px; }
.pd-info-top .pd-qs { min-width: 62px; padding: 10px 8px; }

@media (max-width: 640px) {
  .pd-info-flow { gap: 18px 24px; }
  .pd-info-about,
  .pd-info-sub { flex-basis: 100%; max-width: 100%; }
}

.card:hover,
.stat-card:hover,
.panel-card:hover,
.employee-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0,229,255,0.45);
  background: var(--glass-bg-strong);
  box-shadow: var(--shadow-2), 0 0 30px rgba(0,229,255,0.12),
              inset 0 1px 0 rgba(255,255,255,0.10);
}

/* animated gradient hairline that lights up on hover */
.card::before,
.stat-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--grad-accent);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s var(--ease-out);
  pointer-events: none;
}
.card:hover::before,
.stat-card:hover::before { opacity: 0.6; }

/* ── Stat icons — gradient glow tiles ───────────────────────────────────────*/
.stat-card .stat-num { color: var(--accent-cyan); }
.stat-icon-purple { background: rgba(108,99,255,0.16); box-shadow: inset 0 0 0 1px rgba(108,99,255,0.3); color: var(--accent-violet); }
.stat-icon-green  { background: rgba(0,255,157,0.12);  box-shadow: inset 0 0 0 1px rgba(0,255,157,0.28); color: var(--c-success); }
.stat-icon-red    { background: rgba(255,77,109,0.12); box-shadow: inset 0 0 0 1px rgba(255,77,109,0.28); color: var(--c-danger); }
.stat-icon-teal   { background: rgba(0,229,255,0.12);  box-shadow: inset 0 0 0 1px rgba(0,229,255,0.28); color: var(--accent-cyan); }

/* ── Sidebar / navigation ───────────────────────────────────────────────────*/
.sidebar { background: rgba(5,8,22,0.82); backdrop-filter: blur(26px) saturate(130%); -webkit-backdrop-filter: blur(26px) saturate(130%); }

.nav-item { transition: background 0.2s var(--ease-out), color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out); }
.nav-item:hover { background: rgba(108,99,255,0.10); color: var(--text-primary); }
.nav-item.active {
  background: linear-gradient(90deg, rgba(108,99,255,0.20), rgba(0,229,255,0.06));
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(0,229,255,0.18);
}
.nav-item.active .nav-item-icon { color: var(--accent-cyan); }

/* ── Forms — glow focus ─────────────────────────────────────────────────────*/
.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(255,255,255,0.04);
  transition: border-color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out), background 0.2s var(--ease-out);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent-cyan);
  background: rgba(0,229,255,0.05);
  box-shadow: 0 0 0 3px rgba(0,229,255,0.18);
}
.checkbox-item:has(input:checked) {
  border-color: var(--accent-cyan);
  background: rgba(0,229,255,0.14);
  box-shadow: 0 0 14px rgba(0,229,255,0.15);
}

/* ── Tables ─────────────────────────────────────────────────────────────────*/
.data-table th { background: rgba(108,99,255,0.06); color: var(--text-secondary); }
.data-table tr { transition: background 0.15s var(--ease-out); }
.data-table tbody tr:hover td {
  background: rgba(0,229,255,0.05);
  box-shadow: inset 3px 0 0 var(--accent-cyan);
}

/* ── Status pills & toasts — subtle glow ────────────────────────────────────*/
.status-active  { background: rgba(0,255,157,0.14);  color: #5cffc0; box-shadow: 0 0 12px rgba(0,255,157,0.12); }
.status-expired { background: rgba(255,77,109,0.14); color: #ff8aa0; }
.status-pending { background: rgba(255,209,102,0.14);color: #ffdd8c; }

/* ── Modals — deep glass + entrance ─────────────────────────────────────────*/
.modal-overlay, .overlay { backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }

/* ── Gradient-border utility ────────────────────────────────────────────────*/
.fx-grad-border { position: relative; }
.fx-grad-border::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: var(--grad-accent);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}

/* ── Skeleton shimmer (loading) ─────────────────────────────────────────────*/
.skeleton {
  background: linear-gradient(100deg, rgba(255,255,255,0.04) 30%, rgba(255,255,255,0.12) 50%, rgba(255,255,255,0.04) 70%);
  background-size: 200% 100%;
  animation: fx-shimmer 1.4s linear infinite;
  border-radius: 8px;
}
@keyframes fx-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ── Entrance / page-transition reveals (CSS-only, always end visible) ──────*/
@keyframes fx-rise { from { opacity: 0; transform: translate3d(0, 14px, 0); } to { opacity: 1; transform: none; } }
@keyframes fx-fade { from { opacity: 0; } to { opacity: 1; } }

.page-header,
.toolbar-row,
.dashboard-split,
.table-wrap { animation: fx-rise 0.5s var(--ease-out) both; }

.stats-row .stat-card { animation: fx-rise 0.5s var(--ease-out) both; }
.stats-row .stat-card:nth-child(1) { animation-delay: 0.04s; }
.stats-row .stat-card:nth-child(2) { animation-delay: 0.10s; }
.stats-row .stat-card:nth-child(3) { animation-delay: 0.16s; }
.stats-row .stat-card:nth-child(4) { animation-delay: 0.22s; }

.card-grid > *,
.employee-grid > *,
.company-card-grid > * { animation: fx-rise 0.5s var(--ease-out) both; }
.card-grid > *:nth-child(2),
.employee-grid > *:nth-child(2),
.company-card-grid > *:nth-child(2) { animation-delay: 0.05s; }
.card-grid > *:nth-child(3),
.employee-grid > *:nth-child(3),
.company-card-grid > *:nth-child(3) { animation-delay: 0.10s; }
.card-grid > *:nth-child(n+4),
.employee-grid > *:nth-child(n+4),
.company-card-grid > *:nth-child(n+4) { animation-delay: 0.15s; }

/* ── Magnetic hook (fx.js drives the transform var; safe no-op without JS) ──*/
.fx-magnetic { transition: transform 0.2s var(--ease-spring); }

/* ═══ Reduced-motion: disable all decorative motion, keep everything visible ═*/
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  body::before { animation: none; }
  .btn-primary::after { display: none; }
}

