/* =========================================================================
   Senova application stylesheet
   The authenticated product surface: auth screens, billing, and the app
   shell (sidebar + content). Dark, minimal — layered on the tokens defined
   in senova.css.
   ========================================================================= */

:root {
  --sidebar:       #faf9f7;
  --sidebar-2:     #f5f3f0;
  --sidebar-line:  #e7e5e4;
  --sidebar-text:  #78716c;
  --sidebar-text-strong: #4D6E7C;
  --topbar-h:      48px;
  --sidebar-w:     248px;
}

body.app-body,
body.auth-body {
  background-image: none;
}

/* =====================================================================
   AUTH + BILLING SCREENS
   ===================================================================== */
.auth-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: var(--space-8) var(--space-4);
  background-color: #faf9f7;
  background-image:
    radial-gradient(800px 500px at 30% 20%, rgba(230,126,128,0.04), transparent 70%),
    radial-gradient(600px 400px at 70% 80%, rgba(92,139,125,0.04), transparent 70%);
  background-repeat: no-repeat;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: #ffffff;
  border: 1px solid rgba(28,25,23,0.06);
  border-radius: var(--radius-xl);
  box-shadow: 0 4px 12px rgba(28,25,23,0.04), 0 16px 48px rgba(28,25,23,0.08);
  padding: var(--space-10) var(--space-8) var(--space-8);
}

.auth-card.wide { max-width: 960px; }

.auth-brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--ink);
  margin-bottom: var(--space-6);
}
.auth-brand .brand-mark { width: 26px; height: 26px; }

.auth-card h1 { font-size: 1.5rem; font-weight: 700; margin-bottom: var(--space-2); letter-spacing: -0.02em; color: #0a0a0a; }
.auth-lede { color: var(--ink-soft); font-size: 0.94rem; margin-bottom: var(--space-6); }

.field { margin-bottom: var(--space-4); }
.field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink-soft);
  margin-bottom: var(--space-2);
}
.field input[type="text"],
.field input[type="email"],
.field input[type="password"] {
  width: 100%;
  padding: 0.7rem 0.9rem;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  color: var(--ink);
  background: #fafafa;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1);
}
.field input::placeholder { color: var(--ink-faint); }
.field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,164,166,0.08);
  background: #fff;
}
.field .hint { font-size: 0.78rem; color: var(--ink-faint); margin-top: var(--space-1); }
.field .field-error { font-size: 0.78rem; color: var(--danger); margin-top: var(--space-1); display: none; }
.field.invalid input { border-color: var(--danger); }
.field.invalid .field-error { display: block; }

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: 0.86rem;
  color: var(--ink-soft);
  margin-bottom: var(--space-5);
}
.checkbox-row input { margin-top: 3px; width: 15px; height: 15px; accent-color: var(--accent); }
.checkbox-row a { color: var(--accent); font-weight: 500; }

.btn-block { width: 100%; }

.auth-alert {
  display: none;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.86rem;
  margin-bottom: var(--space-5);
  background: var(--danger-soft);
  border: 1px solid var(--danger);
  color: var(--danger);
}
.auth-alert.show { display: block; }
.auth-alert.ok { background: var(--ok-soft); border-color: var(--ok); color: var(--ok); }

.auth-foot {
  margin-top: var(--space-6);
  text-align: center;
  font-size: 0.88rem;
  color: var(--ink-soft);
}
.auth-foot a { color: var(--accent); font-weight: 500; }

/* ---------- Google sign-in button ---------- */
.google-btn-wrap { margin-bottom: var(--space-2); }

.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.935rem;
  font-weight: 500;
  color: #1f1f1f;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: var(--radius-lg);
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  transition: background 200ms, border-color 200ms, box-shadow 200ms, transform 200ms;
}
.btn-google:hover {
  background: #fafafa;
  border-color: #d0d0d0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}
.btn-google:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.3); }
.btn-google:active { background: #f1f3f4; }
.btn-google:disabled { opacity: 0.6; cursor: default; }
.btn-google svg { flex-shrink: 0; }

.auth-divider {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin: var(--space-5) 0;
  color: var(--ink-faint);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line-soft);
}

/* =====================================================================
   PREMIUM SPLIT AUTH  (login.html + register.html use body.auth-body.split)
   A living dark brand panel beside a polished form panel. billing-setup
   keeps the plain centered .auth-card, so this is fully scoped to .split.
   ===================================================================== */
.auth-body.split {
  display: block;
  place-items: initial;
  padding: 0;
  background: #ffffff;
  background-image: none;
}

.auth-split {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  min-height: 100vh;
  width: 100%;
}

/* ---------- Left: living brand panel ---------- */
.auth-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: #17120f;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(2.5rem, 4vw, 4rem);
}
/* drifting color orbs -- transform-only motion, GPU friendly */
.auth-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  z-index: -2;
  will-change: transform;
}
.auth-orb.o1 { width: 460px; height: 460px; top: -120px; left: -80px;
  background: radial-gradient(circle, var(--coral), transparent 70%);
  animation: authDrift1 18s ease-in-out infinite; }
.auth-orb.o2 { width: 400px; height: 400px; bottom: -140px; right: -60px;
  background: radial-gradient(circle, var(--rose), transparent 70%);
  animation: authDrift2 22s ease-in-out infinite; }
.auth-orb.o3 { width: 320px; height: 320px; top: 40%; left: 45%;
  background: radial-gradient(circle, var(--sage), transparent 70%);
  opacity: 0.4; animation: authDrift3 26s ease-in-out infinite; }
@keyframes authDrift1 { 50% { transform: translate(60px, 50px) scale(1.1); } }
@keyframes authDrift2 { 50% { transform: translate(-50px, -40px) scale(1.08); } }
@keyframes authDrift3 { 50% { transform: translate(-40px, 30px) scale(0.92); } }
/* fine grain + soft vignette so the gradients never look flat */
.auth-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E"),
    radial-gradient(120% 90% at 50% 0%, transparent 55%, rgba(0,0,0,0.45) 100%);
  mix-blend-mode: soft-light;
  opacity: 0.9;
  pointer-events: none;
}

.auth-hero-brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  color: #fff;
  position: relative;
}
.auth-hero-brand .brand-mark {
  width: 28px; height: 28px;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.35));
}

.auth-hero-mid { max-width: 30rem; }
.auth-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin-bottom: var(--space-5);
}
.auth-hero-eyebrow::before {
  content: "";
  width: 24px; height: 1.5px;
  background: var(--coral);
}
.auth-hero-title {
  font-size: clamp(2rem, 3.4vw, 3rem);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-5);
  color: #fff;
}
.auth-hero-title em {
  font-style: normal;
  background: linear-gradient(120deg, var(--coral), var(--pink) 55%, var(--sage));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.auth-hero-sub {
  font-size: 1.02rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.72);
  max-width: 26rem;
}

/* floating glass "build" mockup */
.auth-demo {
  margin-top: clamp(2rem, 4vw, 3rem);
  max-width: 24rem;
  border-radius: var(--radius-xl);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 24px 60px rgba(0,0,0,0.45);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  overflow: hidden;
  animation: authFloat 7s ease-in-out infinite;
  will-change: transform;
}
@keyframes authFloat { 50% { transform: translateY(-8px); } }
.auth-demo-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 11px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.auth-demo-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,0.22); }
.auth-demo-bar span {
  margin-left: auto;
  font-size: 11px;
  font-family: var(--font-mono);
  color: rgba(255,255,255,0.4);
}
.auth-demo-body { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.auth-demo-msg {
  font-size: 12.5px;
  line-height: 1.5;
  padding: 9px 12px;
  border-radius: 12px;
  max-width: 85%;
}
.auth-demo-msg.user {
  align-self: flex-end;
  background: linear-gradient(135deg, var(--coral), var(--coral-hover));
  color: #fff;
  border-bottom-right-radius: 4px;
}
.auth-demo-msg.ai {
  align-self: flex-start;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.82);
  border-bottom-left-radius: 4px;
}
.auth-demo-files { display: flex; flex-direction: column; gap: 6px; margin-top: 2px; }
.auth-demo-file {
  display: flex; align-items: center; gap: 8px;
  font-size: 11.5px; font-family: var(--font-mono);
  color: rgba(255,255,255,0.55);
}
.auth-demo-file::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--sage); box-shadow: 0 0 8px var(--sage);
}
.auth-demo-file.building::before {
  background: var(--warn); box-shadow: 0 0 8px var(--warn);
  animation: authPulse 1.1s ease-in-out infinite;
}
@keyframes authPulse { 50% { opacity: 0.35; } }

.auth-hero-feats {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  position: relative;
}
.auth-hero-feat {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
}
.auth-hero-feat svg { width: 18px; height: 18px; color: var(--sage); flex-shrink: 0; }

/* ---------- Right: form panel ---------- */
.auth-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(2rem, 4vw, 3.5rem) clamp(1.5rem, 4vw, 3rem);
  background: #faf9f7;
  background-image:
    radial-gradient(600px 400px at 100% 0%, rgba(230,126,128,0.05), transparent 70%);
}
.auth-form-wrap {
  width: 100%;
  max-width: 384px;
  animation: authFormIn 0.7s var(--ease-out) both;
}
@keyframes authFormIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
.auth-form-wrap .auth-brand-sm {
  display: none;
  align-items: center;
  gap: var(--space-2);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: var(--space-6);
}
.auth-form-wrap h1 {
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #0a0a0a;
  margin-bottom: var(--space-2);
}
.auth-form-wrap .auth-lede {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin-bottom: var(--space-6);
  line-height: 1.55;
}

/* Larger, more tactile inputs on the split form */
.auth-form-wrap .field label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.auth-form-wrap .field input[type="text"],
.auth-form-wrap .field input[type="email"],
.auth-form-wrap .field input[type="password"] {
  padding: 0.8rem 0.95rem;
  font-size: 0.95rem;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(28,25,23,0.03);
}
.auth-form-wrap .field input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(230,126,128,0.12);
  background: #fff;
}
.auth-form-wrap .btn-primary.btn-lg {
  border-radius: var(--radius-lg);
  height: 48px;
  margin-top: var(--space-2);
  background: #17120f;
  box-shadow: 0 4px 14px rgba(23,18,15,0.22);
}
.auth-form-wrap .btn-primary.btn-lg:hover {
  background: #2a221d;
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(23,18,15,0.28);
}

/* ---------- Responsive: collapse to single column ---------- */
@media (max-width: 900px) {
  .auth-split { grid-template-columns: 1fr; }
  .auth-hero { display: none; }
  .auth-panel { min-height: 100vh; }
  .auth-form-wrap .auth-brand-sm { display: inline-flex; }
}
@media (prefers-reduced-motion: reduce) {
  .auth-orb, .auth-demo, .auth-form-wrap { animation: none !important; }
}

/* ---------- Plan picker (billing-setup) ---------- */
.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  margin: var(--space-8) 0 var(--space-6);
}
.plan {
  position: relative;
  text-align: left;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-6);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.plan:hover { border-color: var(--line); }
.plan.selected { border-color: var(--accent); background: #fdf5f5; }
.plan input { position: absolute; opacity: 0; pointer-events: none; }
.plan .plan-name { font-size: 1.05rem; font-weight: 500; color: var(--ink); }
.plan .plan-price { font-size: 1.8rem; font-weight: 600; color: var(--ink); margin: var(--space-2) 0; letter-spacing: -0.02em; }
.plan .plan-price span { font-size: 0.88rem; font-weight: 400; color: var(--ink-faint); }
.plan .plan-blurb { font-size: 0.86rem; color: var(--ink-soft); margin-bottom: var(--space-4); }
.plan ul { display: grid; gap: var(--space-2); }
.plan li { font-size: 0.85rem; color: var(--ink-soft); padding-left: 1.4rem; position: relative; }
.plan li::before {
  content: ""; position: absolute; left: 0; top: 7px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
}
.plan .check {
  position: absolute; top: var(--space-4); right: var(--space-4);
  width: 20px; height: 20px; border-radius: 50%;
  border: 1px solid var(--line); display: grid; place-items: center;
}
.plan.selected .check { background: var(--accent); border-color: var(--accent); }
.plan .check svg { width: 12px; height: 12px; color: #fff; opacity: 0; }
.plan.selected .check svg { opacity: 1; }

.trial-note {
  display: flex; align-items: center; gap: var(--space-2);
  font-size: 0.85rem; color: var(--ink-faint); margin-top: var(--space-4);
  justify-content: center;
}
.trial-note svg { width: 15px; height: 15px; color: var(--accent); }

/* =====================================================================
   APP SHELL
   ===================================================================== */
.app-body {
  background: var(--bg);
  min-height: 100vh;
}
.shell { display: grid; grid-template-columns: var(--sidebar-w) 1fr; min-height: 100vh; }

/* ---------- Sidebar ---------- */
.sidebar {
  background: var(--sidebar);
  border-right: 1px solid var(--sidebar-line);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}
.sidebar-brand {
  display: flex; align-items: center; gap: var(--space-3);
  padding: 0 var(--space-5);
  height: var(--topbar-h);
  color: var(--sidebar-text-strong);
  font-weight: 600; font-size: 1.05rem;
  border-bottom: 1px solid var(--sidebar-line);
  flex-shrink: 0;
}
.sidebar-brand .brand-mark { width: 24px; height: 24px; }

.sidebar-nav { padding: var(--space-4) var(--space-3); flex: 1; overflow-y: auto; }
.nav-group-label {
  font-size: 0.65rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-faint);
  padding: var(--space-4) var(--space-3) var(--space-2);
}
.nav-item {
  display: flex; align-items: center; gap: var(--space-3);
  padding: 0.5rem var(--space-3);
  border-radius: var(--radius-sm);
  color: var(--sidebar-text);
  font-size: 0.86rem; font-weight: 400;
  transition: background 0.14s, color 0.14s;
  margin-bottom: 1px;
}
.nav-item svg { width: 17px; height: 17px; flex-shrink: 0; opacity: 0.75; }
.nav-item:hover { background: var(--surface-2); color: var(--sidebar-text-strong); }
.nav-item.active {
  background: var(--surface-active); color: var(--sidebar-text-strong);
  font-weight: 500;
}
.nav-item.active svg { opacity: 1; color: var(--sidebar-text-strong); }
.nav-item .badge {
  margin-left: auto; font-size: 0.62rem; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; padding: 2px 7px; border-radius: 100px;
  background: var(--surface-2); color: var(--ink-soft);
}
.nav-item.active .badge { background: var(--surface-active); color: var(--ink-soft); }

.sidebar-foot {
  padding: var(--space-4);
  border-top: 1px solid var(--sidebar-line);
  flex-shrink: 0;
}
.tenant-chip {
  display: flex; align-items: center; gap: var(--space-3);
  font-size: 0.84rem; color: var(--sidebar-text);
}
.tenant-chip .avatar {
  width: 30px; height: 30px; border-radius: 8px; flex-shrink: 0;
  background: var(--accent); color: #fff;
  display: grid; place-items: center; font-weight: 600; font-size: 0.82rem;
}
.tenant-chip .meta { overflow: hidden; }
.tenant-chip .meta strong { display: block; color: var(--sidebar-text-strong); font-weight: 500; font-size: 0.86rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tenant-chip .meta span { font-size: 0.74rem; color: var(--ink-faint); }

/* ---------- Main column ---------- */
.main { display: flex; flex-direction: column; min-width: 0; }

.topbar {
  height: var(--topbar-h);
  display: flex; align-items: center; gap: var(--space-4);
  padding: 0 var(--space-8);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 20;
}
.topbar h1 { font-size: 0.98rem; font-weight: 500; }
.topbar .spacer { flex: 1; }
.topbar .icon-btn {
  width: 34px; height: 34px; border-radius: var(--radius-sm);
  display: grid; place-items: center; color: var(--ink-soft);
  border: 1px solid var(--line); background: transparent; cursor: pointer;
  position: relative; transition: border-color 0.14s, color 0.14s;
}
.topbar .icon-btn:hover { border-color: var(--line); color: var(--ink); }
.topbar .icon-btn svg { width: 17px; height: 17px; }
.topbar .icon-btn .dot { position: absolute; top: 7px; right: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.user-menu { display: flex; align-items: center; gap: var(--space-3); }
.user-menu .avatar {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--accent); color: #fff; display: grid; place-items: center;
  font-weight: 600; font-size: 0.84rem;
}
.user-menu .uname { font-size: 0.84rem; font-weight: 500; color: var(--ink); line-height: 1.2; }
.user-menu .urole { font-size: 0.72rem; color: var(--ink-faint); text-transform: capitalize; }
.logout-link { font-size: 0.82rem; color: var(--ink-faint); cursor: pointer; font-weight: 400; }
.logout-link:hover { color: var(--ink); }

.content {
  padding: var(--space-8); flex: 1; max-width: 1240px; width: 100%;
}

.page-head { margin-bottom: var(--space-8); }
.page-head .eyebrow { margin-bottom: var(--space-2); }
.page-head h2 { font-size: 1.5rem; font-weight: 500; }
.page-head p { color: var(--ink-soft); margin-top: var(--space-2); max-width: 640px; }

/* ---------- Cards / stats / empty states ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4); margin-bottom: var(--space-8); }
.stat-card {
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg); padding: var(--space-5);
  transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1);
}
.stat-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.04); }
.stat-card .stat-label { font-size: 0.76rem; font-weight: 500; letter-spacing: 0.02em; text-transform: uppercase; color: var(--ink-faint); }
.stat-card .stat-value { font-size: 1.9rem; font-weight: 600; color: var(--ink); letter-spacing: -0.02em; margin-top: var(--space-2); }
.stat-card .stat-sub { font-size: 0.82rem; color: var(--ink-soft); margin-top: var(--space-1); }

.panel {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: var(--space-6); margin-bottom: var(--space-6);
}
.panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-5); }
.panel-head h3 { font-size: 1.05rem; font-weight: 500; }
.panel-head .eyebrow { margin: 0; }

.empty-state {
  text-align: center;
  padding: var(--space-12) var(--space-6);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: transparent;
}
.empty-state .es-icon {
  width: 48px; height: 48px; margin: 0 auto var(--space-4);
  border-radius: var(--radius); display: grid; place-items: center;
  background: #fbf2f2; color: var(--accent);
}
.empty-state .es-icon svg { width: 24px; height: 24px; }
.empty-state h4 { font-size: 1.05rem; font-weight: 500; margin-bottom: var(--space-2); }
.empty-state p { color: var(--ink-soft); font-size: 0.9rem; max-width: 420px; margin: 0 auto; }

/* ---------- Coming soon (module placeholders) ---------- */
.coming-soon {
  display: grid; gap: var(--space-6);
}
.cs-hero {
  display: flex; align-items: flex-start; gap: var(--space-5);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: var(--space-8);
}
.cs-hero .cs-icon {
  width: 56px; height: 56px; flex-shrink: 0;
  border-radius: var(--radius); display: grid; place-items: center;
  background: #fbf2f2; color: var(--accent);
}
.cs-hero .cs-icon svg { width: 28px; height: 28px; }
.cs-hero h2 { font-size: 1.4rem; font-weight: 500; margin-bottom: var(--space-2); }
.cs-hero .status-tag {
  display: inline-block; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--warn);
  background: #fff9e9; border: 1px solid #feedc2;
  padding: 3px 10px; border-radius: 100px; margin-bottom: var(--space-3);
}
.cs-hero p { color: var(--ink-soft); max-width: 620px; }

.feature-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-4); }
.feature-item {
  display: flex; gap: var(--space-3); align-items: flex-start;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: var(--space-5);
}
.feature-item .fi-icon { width: 34px; height: 34px; flex-shrink: 0; border-radius: 8px; display: grid; place-items: center; background: #fbf2f2; color: var(--accent); }
.feature-item .fi-icon svg { width: 17px; height: 17px; }
.feature-item h4 { font-size: 0.96rem; font-weight: 500; margin-bottom: var(--space-1); }
.feature-item p { font-size: 0.85rem; color: var(--ink-soft); }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed; left: 0; top: 0; bottom: 0; z-index: 60;
    transform: translateX(-100%); transition: transform 0.2s ease;
    width: var(--sidebar-w);
  }
  .sidebar.open { transform: translateX(0); }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-list { grid-template-columns: 1fr; }
  .plan-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .stat-grid { grid-template-columns: 1fr; }
  .content { padding: var(--space-5); }
  .topbar { padding: 0 var(--space-5); }
  .user-menu .uname, .user-menu .urole { display: none; }
}
.menu-toggle { display: none; }
@media (max-width: 920px) {
  .menu-toggle { display: grid; }
}
