/* ============================================================
   AlifOffice — style.css
   Dark-first, CLI/developer aesthetic, Inter font
   ============================================================ */

:root {
  --cyan:       #06b6d4;
  --cyan-dim:   #0891b2;
  --cyan-glow:  rgba(6,182,212,.15);
  --green:      #10b981;
  --amber:      #f59e0b;
  --red:        #ef4444;
  --purple:     #8b5cf6;

  --bg:         #0a0e17;
  --bg-2:       #0f1521;
  --bg-card:    #131c2e;
  --bg-hover:   #1a2540;
  --border:     rgba(255,255,255,.08);
  --border-hi:  rgba(6,182,212,.35);

  --text:       #e2e8f0;
  --text-muted: #64748b;
  --text-dim:   #94a3b8;

  --radius:     10px;
  --radius-lg:  16px;
  --shadow:     0 4px 24px rgba(0,0,0,.45);
  --shadow-lg:  0 8px 48px rgba(0,0,0,.6);

  --font:       'Inter', system-ui, sans-serif;
  --mono:       'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;
}

[data-theme="light"] {
  --bg:         #f8fafc;
  --bg-2:       #f1f5f9;
  --bg-card:    #ffffff;
  --bg-hover:   #f1f5f9;
  --border:     rgba(0,0,0,.09);
  --border-hi:  rgba(6,182,212,.4);
  --text:       #0f172a;
  --text-muted: #64748b;
  --text-dim:   #475569;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ── Scrollbar ────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: var(--border-hi); border-radius: 3px; }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: var(--radius);
  font-size: .875rem; font-weight: 600; cursor: pointer;
  border: 1px solid transparent; transition: all .18s ease;
  white-space: nowrap; text-decoration: none;
}
.btn:hover { text-decoration: none; }

.btn-primary {
  background: var(--cyan); color: #000; border-color: var(--cyan);
}
.btn-primary:hover { background: var(--cyan-dim); border-color: var(--cyan-dim); }

.btn-outline {
  background: transparent; color: var(--cyan); border-color: var(--cyan);
}
.btn-outline:hover { background: var(--cyan-glow); }

.btn-ghost {
  background: transparent; color: var(--text-dim); border-color: var(--border);
}
.btn-ghost:hover { background: var(--bg-hover); color: var(--text); }

.btn-danger {
  background: transparent; color: var(--red); border-color: var(--red);
}
.btn-danger:hover { background: rgba(239,68,68,.1); }

.btn-lg { padding: 13px 28px; font-size: 1rem; }
.btn-sm { padding: 7px 14px; font-size: .8rem; }
.btn-full { width: 100%; justify-content: center; }

/* ── Navbar ───────────────────────────────────────────────── */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,14,23,.85); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; gap: 32px;
  height: 64px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 1.1rem; color: var(--text); flex-shrink: 0;
}
.logo:hover { text-decoration: none; color: var(--text); }
.logo-tagline { font-size: .7rem; font-weight: 400; color: var(--text-muted); letter-spacing: .05em; }
.nav-links { display: flex; gap: 4px; margin: 0 auto; }
.nav-links a {
  padding: 6px 14px; color: var(--text-dim); font-size: .875rem;
  font-weight: 500; border-radius: 8px; transition: all .15s;
}
.nav-links a:hover { color: var(--text); background: var(--bg-hover); text-decoration: none; }
.nav-actions { display: flex; align-items: center; gap: 10px; }

.theme-toggle {
  background: none; border: 1px solid var(--border); border-radius: 8px;
  width: 36px; height: 36px; cursor: pointer; color: var(--text-dim);
  display: flex; align-items: center; justify-content: center;
  transition: all .15s;
}
.theme-toggle:hover { border-color: var(--cyan); color: var(--cyan); }
.theme-toggle .icon-sun { display: none; }
[data-theme="light"] .theme-toggle .icon-sun  { display: block; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }

.mobile-menu-btn {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px;
}
.mobile-menu-btn span {
  display: block; width: 22px; height: 2px;
  background: var(--text-dim); border-radius: 2px; transition: all .2s;
}
.mobile-nav {
  display: none; flex-direction: column; gap: 4px;
  padding: 12px 24px 16px; border-top: 1px solid var(--border);
  background: var(--bg-2);
}
.mobile-nav.open { display: flex; }
.mobile-nav a { color: var(--text-dim); font-weight: 500; padding: 8px 0; }

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  padding: 96px 0 64px;
  background: radial-gradient(ellipse 80% 50% at 50% -10%, rgba(6,182,212,.12) 0%, transparent 70%);
  text-align: center;
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2306b6d4' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.hero-inner { position: relative; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px; border-radius: 100px;
  background: rgba(6,182,212,.1); border: 1px solid rgba(6,182,212,.25);
  color: var(--cyan); font-size: .8rem; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase;
  margin-bottom: 28px;
}
.hero-badge::before { content: '●'; font-size: .5rem; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.4} }

.hero-title {
  font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 800; line-height: 1.1;
  letter-spacing: -.03em; margin-bottom: 20px;
}
.gradient-text {
  background: linear-gradient(135deg, var(--cyan) 0%, #60a5fa 50%, var(--purple) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  max-width: 560px; margin: 0 auto 32px; color: var(--text-dim);
  font-size: 1.125rem; line-height: 1.7;
}
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 12px; }
.hero-note { color: var(--text-muted); font-size: .85rem; }

/* Terminal window */
.terminal-wrap { margin: 56px auto 0; max-width: 780px; text-align: left; }
.terminal {
  background: #0d1117; border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 60px rgba(6,182,212,.08);
}
.terminal-bar {
  background: #161b22; padding: 12px 16px;
  display: flex; align-items: center; gap: 8px;
  border-bottom: 1px solid var(--border);
}
.terminal-dot { width: 12px; height: 12px; border-radius: 50%; }
.terminal-dot.red   { background: #ef4444; }
.terminal-dot.amber { background: #f59e0b; }
.terminal-dot.green { background: #10b981; }
.terminal-title {
  margin: 0 auto; color: var(--text-muted);
  font-family: var(--mono); font-size: .8rem;
}
.terminal-body {
  padding: 20px 24px; font-family: var(--mono); font-size: .85rem; line-height: 1.9;
}
.t-prompt { color: var(--green); }
.t-cmd    { color: var(--text); }
.t-flag   { color: var(--cyan); }
.t-str    { color: #f9a8d4; }
.t-comment{ color: var(--text-muted); }
.t-output { color: var(--text-dim); padding-left: 18px; }
.t-table-head { color: var(--cyan); font-weight: 700; }
.t-success{ color: var(--green); }
.t-line { display: block; }
.t-cursor { display: inline-block; width: 8px; height: 14px; background: var(--cyan); vertical-align: middle; animation: blink 1s step-end infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

/* ── Logos strip ──────────────────────────────────────────── */
.logos-section { padding: 40px 0; border-top: 1px solid var(--border); }
.logos-label { text-align: center; color: var(--text-muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 20px; }
.logos-row { display: flex; justify-content: center; align-items: center; gap: 40px; flex-wrap: wrap; }
.logo-item { color: var(--text-muted); font-weight: 700; font-size: .9rem; letter-spacing: .05em; }

/* ── Section headers ──────────────────────────────────────── */
.section-header { text-align: center; margin-bottom: 56px; }
.section-header h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 800; letter-spacing: -.02em; margin-bottom: 12px; }
.section-header p { color: var(--text-dim); font-size: 1.1rem; }
.section-label {
  display: inline-block; padding: 4px 14px; border-radius: 100px;
  background: rgba(6,182,212,.08); border: 1px solid rgba(6,182,212,.2);
  color: var(--cyan); font-size: .75rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; margin-bottom: 16px;
}

/* ── Modules grid ─────────────────────────────────────────── */
.modules-section { padding: 96px 0; }
.modules-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.module-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px;
  transition: all .2s; cursor: default;
}
.module-card:hover {
  border-color: var(--border-hi); transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(6,182,212,.08);
}
.module-icon { font-size: 1.6rem; margin-bottom: 12px; }
.module-cmd { font-family: var(--mono); font-size: .75rem; color: var(--cyan); margin-bottom: 6px; }
.module-name { font-weight: 700; font-size: .95rem; margin-bottom: 6px; }
.module-desc { color: var(--text-muted); font-size: .8rem; line-height: 1.5; }

/* ── How it works ─────────────────────────────────────────── */
.how-section { padding: 96px 0; background: var(--bg-2); }
.steps-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 32px; }
.step-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; position: relative; }
.step-num { font-size: 3rem; font-weight: 900; color: rgba(6,182,212,.15); line-height: 1; margin-bottom: 16px; font-family: var(--mono); }
.step-card h3 { font-weight: 700; margin-bottom: 10px; }
.step-card p { color: var(--text-dim); font-size: .9rem; }
.step-code { margin-top: 16px; background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 12px 16px; font-family: var(--mono); font-size: .8rem; color: var(--cyan); }

/* ── Flags showcase ───────────────────────────────────────── */
.flags-section { padding: 96px 0; }
.flags-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px,1fr)); gap: 20px; }
.flag-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px 28px; }
.flag-name { font-family: var(--mono); font-size: 1rem; color: var(--cyan); font-weight: 700; margin-bottom: 8px; }
.flag-desc { color: var(--text-dim); font-size: .875rem; line-height: 1.5; }
.flag-example { margin-top: 12px; font-family: var(--mono); font-size: .75rem; color: var(--text-muted); background: var(--bg); border-radius: 6px; padding: 8px 12px; }

/* ── Pricing ──────────────────────────────────────────────── */
.pricing-section { padding: 96px 0; background: var(--bg-2); }
.pricing-toggle { display: flex; justify-content: center; gap: 0; margin-bottom: 48px; }
.pricing-toggle button {
  padding: 8px 24px; border: 1px solid var(--border); background: var(--bg-card);
  color: var(--text-dim); font-size: .875rem; font-weight: 600; cursor: pointer;
  transition: all .15s;
}
.pricing-toggle button:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.pricing-toggle button:last-child  { border-radius: 0 var(--radius) var(--radius) 0; }
.pricing-toggle button.active { background: var(--cyan); color: #000; border-color: var(--cyan); }
.pricing-save { font-size: .7rem; background: rgba(16,185,129,.15); color: var(--green); padding: 2px 8px; border-radius: 100px; margin-left: 6px; }

.pricing-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; align-items: start; }
.pricing-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px; position: relative;
}
.pricing-card--featured {
  border-color: var(--cyan); background: linear-gradient(135deg, rgba(6,182,212,.06) 0%, var(--bg-card) 50%);
  box-shadow: 0 0 0 1px rgba(6,182,212,.25), var(--shadow);
}
.pricing-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--cyan); color: #000; font-size: .7rem; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase; padding: 4px 16px; border-radius: 100px;
}
.pricing-tier { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 8px; }
.pricing-price { font-size: 2.5rem; font-weight: 800; letter-spacing: -.03em; line-height: 1; margin-bottom: 4px; }
.pricing-price .currency { font-size: 1.25rem; vertical-align: super; }
.pricing-period { color: var(--text-muted); font-size: .85rem; font-weight: 400; }
.pricing-calls { color: var(--cyan); font-size: .85rem; font-weight: 600; margin: 12px 0 20px; }
.pricing-divider { border: none; border-top: 1px solid var(--border); margin: 20px 0; }
.pricing-features { list-style: none; margin-bottom: 28px; }
.pricing-features li { display: flex; align-items: flex-start; gap: 10px; font-size: .875rem; color: var(--text-dim); padding: 5px 0; }
.pricing-features .check { color: var(--green); font-size: .9rem; flex-shrink: 0; margin-top: 1px; }
.pricing-features .cross { color: var(--text-muted); }
.pricing-cta { margin-top: auto; }

/* ── CTA banner ───────────────────────────────────────────── */
.cta-section {
  padding: 80px 0;
  background: linear-gradient(135deg, rgba(6,182,212,.08) 0%, rgba(139,92,246,.08) 100%);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  text-align: center;
}
.cta-section h2 { font-size: clamp(1.6rem,3vw,2.2rem); font-weight: 800; margin-bottom: 12px; }
.cta-section p { color: var(--text-dim); margin-bottom: 28px; font-size: 1rem; }
.cta-cli-hint { font-family: var(--mono); font-size: .85rem; color: var(--text-muted); margin-top: 16px; }
.cta-cli-hint span { color: var(--cyan); }

/* ── Footer ───────────────────────────────────────────────── */
.footer { padding: 64px 0 0; border-top: 1px solid var(--border); }
.footer-inner { display: grid; grid-template-columns: 280px 1fr; gap: 48px; }
.footer-brand p { color: var(--text-muted); font-size: .85rem; margin-top: 12px; line-height: 1.6; max-width: 240px; }
.footer-links { display: grid; grid-template-columns: repeat(3,1fr); gap: 32px; }
.footer-col h4 { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 14px; }
.footer-col a { display: block; color: var(--text-dim); font-size: .875rem; margin-bottom: 8px; transition: color .15s; }
.footer-col a:hover { color: var(--text); text-decoration: none; }
.footer-bottom { border-top: 1px solid var(--border); margin-top: 48px; padding: 20px 0; }
.footer-bottom-inner { display: flex; align-items: center; justify-content: space-between; }
.footer-bottom p { color: var(--text-muted); font-size: .8rem; }

/* ── Auth pages ───────────────────────────────────────────── */
.auth-page {
  min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 32px 24px; background: var(--bg);
}
.auth-logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 1.1rem; color: var(--text);
  margin-bottom: 32px; text-decoration: none;
}
.auth-logo:hover { text-decoration: none; color: var(--text); }

.auth-card {
  width: 100%; max-width: 420px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 40px 36px;
  box-shadow: var(--shadow);
}
.auth-card h1 { font-size: 1.5rem; font-weight: 800; margin-bottom: 6px; }
.auth-subtitle { color: var(--text-muted); font-size: .9rem; margin-bottom: 28px; }

.auth-alert {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 16px; border-radius: 8px;
  font-size: .875rem; margin-bottom: 20px;
}
.auth-alert.error   { background: rgba(239,68,68,.1);  border: 1px solid rgba(239,68,68,.25);  color: #fca5a5; }
.auth-alert.success { background: rgba(16,185,129,.1); border: 1px solid rgba(16,185,129,.25); color: #6ee7b7; }
.auth-alert.info    { background: rgba(6,182,212,.1);  border: 1px solid rgba(6,182,212,.25);  color: #67e8f9; }

.auth-form { display: flex; flex-direction: column; gap: 18px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: .85rem; font-weight: 600; color: var(--text-dim); }
.form-row-space { display: flex; justify-content: space-between; align-items: center; }

.form-input {
  width: 100%; padding: 10px 14px; border-radius: 8px;
  background: var(--bg); border: 1px solid var(--border);
  color: var(--text); font-size: .9rem; font-family: var(--font);
  transition: border-color .15s, box-shadow .15s; outline: none;
}
.form-input:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(6,182,212,.15); }
.form-input.error { border-color: var(--red); }
.form-hint { font-size: .78rem; color: var(--text-muted); }

.input-password-wrap { position: relative; }
.input-password-wrap .form-input { padding-right: 44px; }
.btn-show-pass {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; color: var(--text-muted);
  padding: 4px; display: flex;
}
.btn-show-pass:hover { color: var(--text); }

.btn-auth {
  width: 100%; padding: 12px; border-radius: var(--radius);
  background: var(--cyan); color: #000; font-size: .95rem; font-weight: 700;
  border: none; cursor: pointer; transition: background .15s, transform .1s;
  margin-top: 4px;
}
.btn-auth:hover  { background: var(--cyan-dim); }
.btn-auth:active { transform: scale(.99); }
.btn-auth:disabled { opacity: .6; cursor: not-allowed; }

.auth-footer { margin-top: 20px; color: var(--text-muted); font-size: .875rem; text-align: center; }
.auth-link { color: var(--cyan); font-weight: 600; }

/* ── Workspace picker ─────────────────────────────────────── */
.auth-page-heading { text-align: center; margin-bottom: 28px; max-width: 700px; }
.auth-page-heading h1 { font-size: 1.7rem; font-weight: 800; margin-bottom: 6px; }
.auth-page-heading p { color: var(--text-muted); font-size: .9rem; }

.workspace-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px; width: 100%; max-width: 860px;
}
.workspace-card {
  display: flex; align-items: center; gap: 16px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px 24px;
  color: var(--text); transition: all .2s;
}
.workspace-card:hover {
  border-color: var(--border-hi); background: var(--bg-hover);
  transform: translateY(-2px); text-decoration: none;
}
.workspace-avatar {
  width: 48px; height: 48px; border-radius: 12px;
  background: linear-gradient(135deg, var(--cyan) 0%, var(--purple) 100%);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.1rem; color: #fff; flex-shrink: 0;
}
.workspace-info h3 { font-weight: 700; font-size: 1rem; margin-bottom: 4px; }
.workspace-meta { display: flex; gap: 8px; align-items: center; }
.role-badge {
  font-size: .7rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; padding: 2px 8px; border-radius: 100px;
}
.role-badge.role-owner   { background: rgba(6,182,212,.15);  color: var(--cyan); }
.role-badge.role-admin   { background: rgba(139,92,246,.15); color: var(--purple); }
.role-badge.role-member  { background: rgba(100,116,139,.15); color: var(--text-muted); }
.role-badge.role-viewer  { background: rgba(100,116,139,.1);  color: var(--text-muted); }

.workspace-card--new {
  border-style: dashed; color: var(--text-muted);
  justify-content: center; font-weight: 600;
}
.workspace-card--new:hover { color: var(--cyan); border-color: var(--cyan); background: var(--cyan-glow); }

.plan-badge {
  font-size: .68rem; font-weight: 700; padding: 2px 7px;
  border-radius: 100px; text-transform: uppercase; letter-spacing: .05em;
}
.plan-badge.free     { background: rgba(100,116,139,.15); color: var(--text-muted); }
.plan-badge.pro      { background: rgba(6,182,212,.15);   color: var(--cyan); }
.plan-badge.advance  { background: rgba(139,92,246,.15);  color: var(--purple); }
.plan-badge.enterprise { background: rgba(245,158,11,.15); color: var(--amber); }

/* ── Dashboard ────────────────────────────────────────────── */
.dash-layout { display: flex; min-height: 100vh; }
.dash-sidebar {
  width: 240px; flex-shrink: 0; background: var(--bg-2);
  border-right: 1px solid var(--border); padding: 0;
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.dash-sidebar-header {
  padding: 20px 20px 16px; border-bottom: 1px solid var(--border);
}
.ws-switcher {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: var(--radius); cursor: pointer;
  border: 1px solid var(--border); background: var(--bg-card);
  transition: all .15s; width: 100%;
}
.ws-switcher:hover { border-color: var(--border-hi); }
.ws-switcher-avatar {
  width: 32px; height: 32px; border-radius: 8px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--cyan) 0%, var(--purple) 100%);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: .75rem; color: #fff;
}
.ws-switcher-name { font-weight: 700; font-size: .875rem; flex: 1; text-align: left; color: var(--text); }
.ws-switcher-icon { color: var(--text-muted); font-size: .75rem; }

.dash-nav { padding: 12px 12px; flex: 1; }
.dash-nav-section { margin-bottom: 20px; }
.dash-nav-label { font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); padding: 0 8px; margin-bottom: 4px; }
.dash-nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: 8px; color: var(--text-dim);
  font-size: .85rem; font-weight: 500; transition: all .15s;
}
.dash-nav a:hover { background: var(--bg-hover); color: var(--text); text-decoration: none; }
.dash-nav a.active { background: var(--cyan-glow); color: var(--cyan); }
.dash-nav a .nav-icon { font-size: 1rem; width: 18px; text-align: center; flex-shrink: 0; }

.dash-sidebar-footer {
  padding: 16px; border-top: 1px solid var(--border);
}
.user-pill {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: var(--radius);
}
.user-pill-avatar {
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, #0891b2, #7c3aed);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: .75rem; color: #fff;
}
.user-pill-name { font-size: .85rem; font-weight: 600; }
.user-pill-email { font-size: .72rem; color: var(--text-muted); }

.dash-main { flex: 1; overflow-y: auto; }
.dash-topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 32px; border-bottom: 1px solid var(--border);
  background: var(--bg); position: sticky; top: 0; z-index: 10;
}
.dash-topbar-title { font-weight: 800; font-size: 1.1rem; }
.dash-content { padding: 32px; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px,1fr)); gap: 16px; margin-bottom: 32px; }
.stat-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px 24px;
}
.stat-label { font-size: .78rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px; }
.stat-value { font-size: 2rem; font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.stat-sub { font-size: .8rem; color: var(--text-muted); margin-top: 4px; }
.stat-bar { height: 4px; background: var(--border); border-radius: 2px; margin-top: 12px; overflow: hidden; }
.stat-bar-fill { height: 100%; border-radius: 2px; background: var(--cyan); transition: width .5s ease; }
.stat-bar-fill.warn  { background: var(--amber); }
.stat-bar-fill.danger{ background: var(--red); }

.dash-section { margin-bottom: 32px; }
.dash-section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.dash-section-header h2 { font-size: 1rem; font-weight: 700; }

.module-quick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px,1fr)); gap: 12px; }
.module-quick {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px; text-align: center;
  color: var(--text-dim); font-size: .8rem; font-weight: 600; cursor: pointer;
  transition: all .15s; text-decoration: none; display: block;
}
.module-quick:hover {
  border-color: var(--border-hi); color: var(--cyan);
  background: var(--cyan-glow); text-decoration: none;
}
.module-quick .mq-icon { font-size: 1.5rem; margin-bottom: 8px; display: block; }

.install-box {
  background: #0d1117; border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px 24px;
}
.install-box pre {
  font-family: var(--mono); font-size: .85rem; color: var(--text-dim);
  overflow-x: auto; white-space: pre-wrap; word-break: break-all;
}
.install-box .t-prompt { color: var(--green); }
.install-box .t-cmd    { color: var(--text); }
.install-box .t-flag   { color: var(--cyan); }

/* ── Create workspace form ────────────────────────────────── */
.create-ws-card { max-width: 480px; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 960px) {
  .pricing-grid { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; }
  .steps-grid   { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: repeat(2,1fr); }
  .dash-sidebar { display: none; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-menu-btn { display: flex; }
  .hero { padding: 64px 0 40px; }
  .modules-grid { grid-template-columns: repeat(2,1fr); }
  .pricing-grid { grid-template-columns: 1fr; }
  .flags-grid   { grid-template-columns: 1fr; }
  .workspace-grid { grid-template-columns: 1fr; }
  .auth-card { padding: 28px 24px; }
  .dash-content { padding: 20px; }
}
@media (max-width: 480px) {
  .modules-grid { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: 1fr; }
}
