/* ===========================================================
   RagonsAI — by Hostragons®
   Authentic Hostragons purple palette + premium dark UI
   =========================================================== */
:root {
  /* Surface (purple-tinted dark) */
  --bg-0: #08040f;
  --bg-1: #0d0719;
  --bg-2: #150b27;
  --bg-3: #1f1138;
  --bg-elev: #281748;
  --bg-glass: rgba(21, 11, 39, .7);

  /* Borders */
  --border: #2a1b48;
  --border-strong: #3d2767;
  --border-glow: rgba(130, 36, 227, .35);

  /* Text */
  --text-0: #f5efff;
  --text-1: #d6c8f0;
  --text-2: #998dba;
  --text-3: #6b5e8a;

  /* Hostragons brand purples (from real CSS) */
  --brand-1: #4a0a6e;   /* deep */
  --brand-2: #761098;   /* main */
  --brand-3: #8224e3;   /* vibrant */
  --brand-4: #a466e2;   /* light */
  --brand-magenta: #b60c91;
  --brand-indigo: #6a62fe;

  --accent: var(--brand-3);
  --accent-2: var(--brand-4);
  --accent-3: #c084fc;

  /* Status */
  --success: #22c55e;
  --warn: #f59e0b;
  --danger: #ef4444;

  /* CLI signatures */
  --claude: #d97757;
  --codex: #10a37f;
  --gemini: #4285f4;

  --shadow-sm: 0 1px 2px rgba(0,0,0,.5);
  --shadow-md: 0 4px 16px rgba(0,0,0,.45);
  --shadow-lg: 0 20px 60px rgba(0,0,0,.6);
  --shadow-glow: 0 0 40px rgba(130, 36, 227, .35);
  --shadow-magenta: 0 0 32px rgba(182, 12, 145, .35);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; background: var(--bg-0); color: var(--text-0); font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
body {
  background:
    radial-gradient(ellipse 90% 60% at 50% -10%, rgba(130, 36, 227, .22), transparent 60%),
    radial-gradient(ellipse 70% 50% at 90% 100%, rgba(182, 12, 145, .14), transparent 60%),
    radial-gradient(ellipse 60% 40% at 10% 80%, rgba(106, 98, 254, .08), transparent 60%),
    var(--bg-0);
  overflow: hidden;
}
body.auth-page { overflow-y: auto; }
body.auth-page #app { min-height: 100vh; display: flex; flex-direction: column; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font: inherit; color: inherit; background: none; border: none; outline: none; }
a { color: var(--accent-3); text-decoration: none; transition: color .15s; }
a:hover { color: var(--brand-4); }
code { font-family: ui-monospace, 'JetBrains Mono', 'SF Mono', Menlo, monospace; font-size: .92em; background: var(--bg-2); padding: 1px 5px; border-radius: 4px; border: 1px solid var(--border); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 8px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: var(--border-strong); background-clip: padding-box; border: 2px solid transparent; }

/* ===== Brand assets ===== */
.brand-logo-img { display: block; height: 28px; width: auto; filter: drop-shadow(0 2px 4px rgba(0,0,0,.4)); }
.brand-logo-img.lg { height: 40px; }
.brand-logo-img.xl { height: 56px; }

.logo-mark {
  position: relative; display: inline-grid; place-items: center;
  background: linear-gradient(135deg, var(--brand-1) 0%, var(--brand-2) 45%, var(--brand-3) 100%);
  color: #fff; font-weight: 800;
  box-shadow: 0 6px 20px rgba(130, 36, 227, .45), inset 0 1px 0 rgba(255,255,255,.18);
}
.logo-mark::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(circle at 30% 25%, rgba(255,255,255,.35), transparent 50%);
}

/* ===== Auth ===== */
.auth-shell {
  width: 100%; min-height: 100vh; display: grid; grid-template-columns: 1.05fr .95fr;
}
.auth-side {
  position: relative; padding: 48px 56px; overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 20% 30%, rgba(130, 36, 227, .35), transparent 60%),
    radial-gradient(ellipse 60% 50% at 90% 90%, rgba(182, 12, 145, .25), transparent 60%),
    linear-gradient(135deg, #1a0b32 0%, #08040f 100%);
  display: flex; flex-direction: column; justify-content: space-between;
}
.auth-side::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(circle at 30% 70%, rgba(255,255,255,.04), transparent 12%),
    radial-gradient(circle at 70% 20%, rgba(255,255,255,.03), transparent 8%);
  background-size: 8px 8px, 11px 11px;
}
.auth-side-inner { position: relative; max-width: 480px; }
.auth-side .brand-logo-img { height: 36px; }
.auth-hero { margin-top: 56px; }
.auth-hero h1 { font-size: 44px; font-weight: 800; letter-spacing: -.028em; line-height: 1.06; background: linear-gradient(135deg, #fff 0%, #d6c8f0 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.auth-hero p { color: var(--text-1); font-size: 16px; margin-top: 14px; line-height: 1.6; max-width: 460px; }
.auth-features { margin-top: 36px; display: flex; flex-direction: column; gap: 14px; }
.auth-feature { display: flex; align-items: center; gap: 12px; color: var(--text-1); font-size: 14px; }
.auth-feature .check {
  width: 24px; height: 24px; border-radius: 999px;
  background: linear-gradient(135deg, var(--brand-3), var(--brand-magenta));
  display: grid; place-items: center; color: #fff; flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(130, 36, 227, .4);
}
.auth-feature .check svg { width: 13px; height: 13px; stroke-width: 3; }

.ai-strip { margin-top: 40px; }
.ai-strip-label { font-size: 11px; font-weight: 700; color: var(--text-3); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 12px; }
.ai-strip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.ai-chip-static {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px;
  border-radius: 999px; background: rgba(255,255,255,.04); border: 1px solid var(--border);
  font-size: 12.5px; font-weight: 600; color: var(--text-1);
  backdrop-filter: blur(8px);
}
.ai-chip-static .av {
  width: 18px; height: 18px; border-radius: 5px; display: grid; place-items: center;
  font-weight: 800; font-size: 10px; color: #fff;
}

.auth-side-foot { position: relative; font-size: 12px; color: var(--text-3); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.auth-side-foot a { color: var(--text-1); }

.auth-main { display: grid; place-items: center; padding: 28px; background: var(--bg-0); position: relative; }
.auth-card {
  width: 100%; max-width: 440px;
  background: linear-gradient(180deg, rgba(40, 23, 72, .5) 0%, rgba(13, 7, 25, .85) 100%);
  border: 1px solid var(--border); border-radius: 22px;
  padding: 40px 36px; box-shadow: var(--shadow-lg), var(--shadow-glow);
  backdrop-filter: blur(24px);
  position: relative; overflow: hidden;
}
.auth-card::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(circle at 100% 0%, rgba(130, 36, 227, .18), transparent 50%),
    radial-gradient(circle at 0% 100%, rgba(182, 12, 145, .10), transparent 50%);
}
.auth-card > * { position: relative; }

.auth-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.auth-logo .logo-mark { width: 44px; height: 44px; border-radius: 13px; font-size: 18px; letter-spacing: -.02em; }
.auth-logo-text { font-weight: 800; font-size: 18px; letter-spacing: -.02em; }
.auth-logo-text .accent { color: var(--accent-3); }

.auth-title { font-size: 28px; font-weight: 800; margin-top: 22px; letter-spacing: -.025em; line-height: 1.15; }
.auth-subtitle { color: var(--text-2); margin-top: 8px; font-size: 14px; line-height: 1.55; }

.auth-form { margin-top: 26px; display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 11.5px; font-weight: 600; color: var(--text-2); text-transform: uppercase; letter-spacing: .07em; }
.field input, .field textarea {
  background: rgba(13, 7, 25, .6); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px;
  font-size: 14.5px; color: var(--text-0); transition: border-color .15s, background .15s, box-shadow .15s;
}
.field input:focus, .field textarea:focus { border-color: var(--brand-3); background: var(--bg-2); box-shadow: 0 0 0 3px rgba(130, 36, 227, .25); }

.btn-primary {
  background: linear-gradient(135deg, var(--brand-2) 0%, var(--brand-3) 60%, var(--brand-magenta) 130%); color: #fff;
  padding: 12px 18px; border-radius: 10px; font-weight: 600; font-size: 14.5px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: transform .1s, box-shadow .15s, filter .15s;
  box-shadow: 0 6px 22px rgba(130, 36, 227, .45), inset 0 1px 0 rgba(255,255,255,.18);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 32px rgba(130, 36, 227, .6), inset 0 1px 0 rgba(255,255,255,.22); filter: brightness(1.07); }
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.btn-secondary {
  background: var(--bg-2); border: 1px solid var(--border); padding: 10px 16px; border-radius: 10px;
  font-weight: 500; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  color: var(--text-0); transition: background .15s, border-color .15s, transform .1s;
}
.btn-secondary:hover { background: var(--bg-3); border-color: var(--border-strong); transform: translateY(-1px); }
.btn-ghost { color: var(--text-2); padding: 8px 12px; border-radius: 8px; font-size: 14px; transition: background .15s, color .15s; }
.btn-ghost:hover { background: var(--bg-2); color: var(--text-0); }

.alert {
  padding: 12px 14px; border-radius: 10px; font-size: 13px; margin-top: 4px;
  background: rgba(239,68,68,.1); border: 1px solid rgba(239,68,68,.3); color: #fca5a5;
}
.alert.success { background: rgba(34,197,94,.1); border-color: rgba(34,197,94,.3); color: #86efac; }
.alert.info { background: rgba(130, 36, 227, .12); border-color: rgba(130, 36, 227, .3); color: var(--accent-3); }
.help { font-size: 12px; color: var(--text-3); margin-top: 4px; }

.auth-footer {
  margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border);
  font-size: 12px; color: var(--text-3); display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.auth-footer a { color: var(--text-1); font-weight: 600; }

/* ===== Main app ===== */
.app-shell { display: grid; grid-template-columns: 272px 1fr; height: 100vh; overflow: hidden; }
.sidebar {
  background: linear-gradient(180deg, var(--bg-1) 0%, var(--bg-0) 100%);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column; overflow: hidden;
  position: relative;
}
.sidebar::after {
  content: ''; position: absolute; top: 0; right: 0; width: 1px; height: 100%;
  background: linear-gradient(180deg, transparent, var(--border-glow) 20%, var(--border-glow) 80%, transparent);
  opacity: .55;
}
.sidebar-header { padding: 16px 14px 12px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; }
.brand-icon {
  width: 30px; height: 30px; border-radius: 9px;
  background: linear-gradient(135deg, var(--brand-2), var(--brand-3) 60%, var(--brand-magenta));
  padding: 4px; box-shadow: 0 4px 12px rgba(130, 36, 227, .4), inset 0 1px 0 rgba(255,255,255,.18);
  flex-shrink: 0;
}
.brand-text {
  font-weight: 800; font-size: 16px; letter-spacing: -.018em;
  display: flex; flex-direction: column; gap: 0; min-width: 0;
}
.brand-text .name { line-height: 1.1; white-space: nowrap; }
.brand-text .name .accent {
  background: linear-gradient(135deg, var(--brand-4), var(--brand-magenta));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.brand-text .sub { font-size: 9.5px; font-weight: 700; color: var(--text-3); letter-spacing: .1em; text-transform: uppercase; margin-top: 1px; }

.icon-btn { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; color: var(--text-2); transition: background .15s, color .15s, transform .1s; }
.icon-btn:hover { background: var(--bg-2); color: var(--text-0); }
.icon-btn:active { transform: scale(.95); }
.icon-btn.active { color: var(--accent-3); }

.new-chat-btn {
  margin: 6px 12px 10px; padding: 11px 14px; border-radius: 11px;
  background: linear-gradient(135deg, rgba(130, 36, 227, .25), rgba(182, 12, 145, .12));
  border: 1px solid var(--border-strong);
  display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 13.5px;
  color: var(--text-0); transition: background .15s, border-color .15s, transform .1s, box-shadow .15s;
}
.new-chat-btn:hover { border-color: var(--brand-3); background: linear-gradient(135deg, rgba(130, 36, 227, .35), rgba(182, 12, 145, .2)); box-shadow: 0 4px 14px rgba(130, 36, 227, .3); }
.new-chat-btn .plus { font-size: 18px; color: var(--accent-3); width: 18px; display: grid; place-items: center; }
.new-chat-btn .shortcut { margin-left: auto; font-size: 10.5px; color: var(--text-3); border: 1px solid var(--border); padding: 1px 6px; border-radius: 5px; font-family: ui-monospace, monospace; }

.cli-picker { padding: 0 12px 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.cli-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px;
  border-radius: 999px; background: var(--bg-2); border: 1px solid var(--border);
  font-size: 11.5px; color: var(--text-1); font-weight: 500;
  transition: background .15s, border-color .15s, transform .1s;
}
.cli-chip:hover { background: var(--bg-3); transform: translateY(-1px); border-color: var(--border-strong); }
.cli-chip .dot { width: 7px; height: 7px; border-radius: 50%; }

.search-box {
  margin: 0 12px 8px; padding: 7px 11px; border-radius: 9px;
  background: var(--bg-2); border: 1px solid var(--border);
  display: flex; align-items: center; gap: 8px;
  transition: border-color .15s, background .15s;
}
.search-box:focus-within { border-color: var(--brand-3); background: var(--bg-3); }
.search-box input { flex: 1; font-size: 13px; color: var(--text-0); }
.search-box .icon { color: var(--text-3); }
.search-box .clear { color: var(--text-3); display: none; cursor: pointer; }
.search-box.has-value .clear { display: block; }

.conv-list { flex: 1; overflow-y: auto; padding: 4px 8px 12px; }
.conv-section-label { font-size: 10.5px; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: .1em; padding: 14px 10px 6px; display: flex; align-items: center; gap: 6px; }
.conv-section-label .count { background: var(--bg-3); color: var(--text-2); border: 1px solid var(--border); border-radius: 999px; padding: 0 6px; font-size: 9.5px; }
.conv-item {
  display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 9px;
  font-size: 13.5px; color: var(--text-1); cursor: pointer; transition: background .15s, color .15s;
  margin-bottom: 1px; position: relative; overflow: hidden;
}
.conv-item:hover { background: var(--bg-2); color: var(--text-0); }
.conv-item.active { background: linear-gradient(90deg, rgba(130, 36, 227, .22), transparent); color: var(--text-0); }
.conv-item.active::before { content: ''; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: linear-gradient(180deg, var(--brand-3), var(--brand-magenta)); }
.conv-item .avatar { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; font-weight: 700; font-size: 11px; color: white; flex-shrink: 0; box-shadow: 0 2px 6px rgba(0,0,0,.4); }
.conv-item .title { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conv-item .pin-mark { color: var(--brand-4); display: none; }
.conv-item.pinned .pin-mark { display: inline-block; }
.conv-item .menu-btn { width: 24px; height: 24px; border-radius: 6px; opacity: 0; transition: opacity .15s, background .15s; display: grid; place-items: center; color: var(--text-2); }
.conv-item:hover .menu-btn { opacity: 1; }
.conv-item .menu-btn:hover { background: var(--border); color: var(--text-0); }

.sidebar-footer { padding: 12px; border-top: 1px solid var(--border); display: flex; align-items: center; gap: 10px; }
.user-chip { flex: 1; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; transition: background .15s; cursor: pointer; }
.user-chip:hover { background: var(--bg-2); }
.user-avatar { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, var(--brand-2), var(--brand-3) 70%, var(--brand-magenta)); display: grid; place-items: center; font-weight: 700; color: white; font-size: 12.5px; flex-shrink: 0; box-shadow: 0 2px 8px rgba(130, 36, 227, .45); }
.user-name { font-size: 13.5px; font-weight: 600; color: var(--text-0); }
.user-role { font-size: 11px; color: var(--text-3); }

.sidebar-attribution {
  padding: 10px 14px 12px; text-align: center; font-size: 11px; color: var(--text-3);
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.3));
}
.sidebar-attribution .row { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; }
.sidebar-attribution a { color: var(--text-1); font-weight: 600; }
.sidebar-attribution a:hover { color: var(--brand-4); }

/* ===== Main column ===== */
.main { display: flex; flex-direction: column; min-width: 0; overflow: hidden; }
.topbar {
  height: 60px; padding: 0 18px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 10px;
  background: rgba(8, 4, 15, .65); backdrop-filter: blur(16px);
  flex-shrink: 0; position: relative;
}
.topbar .icon-btn { width: 34px; height: 34px; }
.topbar .icon-btn:hover { background: var(--bg-2); }
.topbar::after {
  content: ''; position: absolute; bottom: -1px; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-glow), transparent);
}
.topbar-title { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.topbar-avatar { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; font-weight: 700; font-size: 13.5px; color: white; flex-shrink: 0; box-shadow: 0 4px 12px rgba(0,0,0,.5); }
.topbar-name { font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: -.01em; }
.topbar-sub { font-size: 11.5px; color: var(--text-3); display: flex; align-items: center; gap: 6px; margin-top: 1px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--text-3); transition: background .15s, box-shadow .15s; }
.status-dot.running { background: var(--success); box-shadow: 0 0 10px var(--success); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 14px var(--success); } }

.mode-toggle {
  display: inline-flex; align-items: center; background: var(--bg-2); border: 1px solid var(--border);
  border-radius: 999px; padding: 3px; gap: 2px;
}
.mode-toggle button {
  padding: 6px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
  color: var(--text-2); display: inline-flex; align-items: center; gap: 6px;
  transition: color .15s, background .15s, box-shadow .15s;
}
.mode-toggle button:hover { color: var(--text-0); }
.mode-toggle button.active {
  background: linear-gradient(135deg, var(--brand-2), var(--brand-3));
  color: #fff; box-shadow: 0 2px 12px rgba(130, 36, 227, .5);
}
.mode-toggle button .icon { width: 14px; height: 14px; }

/* ===== Empty state ===== */
.empty {
  flex: 1; display: grid; place-items: center; padding: 40px 24px; text-align: center; overflow-y: auto;
  background: radial-gradient(circle at 50% 30%, rgba(130, 36, 227, .08), transparent 50%);
}
.empty-inner { max-width: 720px; }
.empty-mark {
  width: 88px; height: 88px; border-radius: 26px; margin: 18px auto 20px;
  background: linear-gradient(135deg, var(--brand-1), var(--brand-2) 50%, var(--brand-magenta) 130%);
  display: grid; place-items: center; padding: 14px;
  box-shadow: 0 16px 48px rgba(130, 36, 227, .55), inset 0 1px 0 rgba(255,255,255,.22);
  position: relative;
}
.empty-mark::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(circle at 30% 25%, rgba(255,255,255,.30), transparent 55%); pointer-events: none; }
.empty-mark img { position: relative; z-index: 1; }

.status-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: var(--bg-2); border: 1px solid var(--border);
  font-size: 12px; color: var(--text-2); font-weight: 500;
}
.status-pill .status-dot { width: 7px; height: 7px; }

.cli-card-cta {
  margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--border);
  font-size: 12px; color: var(--brand-4); font-weight: 600;
  display: flex; align-items: center; justify-content: space-between; opacity: .85;
}

.section-title {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px; font-weight: 700; color: var(--text-2); text-transform: uppercase; letter-spacing: .08em;
  margin-bottom: 12px;
}
.recent-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.recent-card {
  display: flex; align-items: center; gap: 10px; padding: 11px 12px;
  background: var(--bg-2); border: 1px solid var(--border); border-radius: 11px;
  cursor: pointer; transition: border-color .15s, background .15s, transform .1s;
}
.recent-card:hover { border-color: var(--brand-3); background: var(--bg-3); transform: translateY(-1px); }
.recent-title { font-size: 13.5px; font-weight: 600; color: var(--text-0); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.recent-meta { font-size: 11px; color: var(--text-3); margin-top: 1px; }
.empty h1 { font-size: 34px; font-weight: 800; letter-spacing: -.025em; }
.empty h1 .accent { color: var(--accent-3); }
.empty p { color: var(--text-2); margin-top: 12px; font-size: 15px; line-height: 1.65; }
.cli-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-top: 30px; text-align: left; }
.cli-card {
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  border: 1px solid var(--border); border-radius: 14px; padding: 16px;
  display: flex; flex-direction: column; gap: 8px; cursor: pointer;
  transition: transform .15s, border-color .15s, background .15s, box-shadow .15s;
  position: relative; overflow: hidden;
}
.cli-card::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(135deg, transparent 60%, rgba(130, 36, 227, .08));
  opacity: 0; transition: opacity .25s;
}
.cli-card:hover { transform: translateY(-3px); border-color: var(--brand-3); background: linear-gradient(180deg, var(--bg-3), var(--bg-2)); box-shadow: 0 10px 30px rgba(0,0,0,.5); }
.cli-card:hover::before { opacity: 1; }
.cli-card-head { display: flex; align-items: center; gap: 10px; }
.cli-card-avatar { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font-weight: 700; font-size: 15px; color: white; box-shadow: 0 4px 12px rgba(0,0,0,.4); }
.cli-card-name { font-weight: 700; font-size: 14.5px; letter-spacing: -.01em; }
.cli-card-desc { font-size: 12.5px; color: var(--text-2); line-height: 1.5; }

.empty-foot { margin-top: 32px; font-size: 12px; color: var(--text-3); display: flex; align-items: center; justify-content: center; gap: 8px; }
.empty-foot .brand-logo-img { height: 14px; opacity: .8; }
.empty-foot a { color: var(--text-1); font-weight: 600; }

/* Quick tips strip on empty */
.shortcut-strip {
  margin-top: 24px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
}
.shortcut-strip .item {
  display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-2);
  background: var(--bg-2); border: 1px solid var(--border); border-radius: 999px; padding: 6px 11px;
}
.shortcut-strip .kbd { display: inline-block; padding: 1px 6px; border-radius: 5px; background: var(--bg-3); border: 1px solid var(--border); font-family: ui-monospace, monospace; font-size: 10.5px; color: var(--text-1); }

/* ===== Chat / terminal area ===== */
.chat-area { flex: 1; display: flex; flex-direction: column; min-height: 0; overflow: hidden; position: relative; }
.terminal-wrap {
  flex: 1; min-height: 0; padding: 16px 20px 4px;
  display: flex; flex-direction: column;
  transition: padding .2s;
}
.chat-area.terminal-mode .terminal-wrap { padding: 0; }
.terminal-container {
  flex: 1; min-height: 0; background: #08040f; border: 1px solid var(--border); border-radius: 14px;
  padding: 14px; overflow: hidden;
  box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255,255,255,.02);
  transition: border-radius .2s, border-color .2s, padding .2s;
}
.chat-area.terminal-mode .terminal-container { border-radius: 0; border-left: 0; border-right: 0; border-bottom: 0; padding: 16px 20px; }
.terminal-container .xterm { height: 100%; }
.terminal-container .xterm-viewport { background: transparent !important; }

/* Drag-drop overlay */
.drop-overlay {
  position: absolute; inset: 0; z-index: 25;
  background: rgba(8, 4, 15, .85); backdrop-filter: blur(8px);
  display: none; align-items: center; justify-content: center;
  border: 2px dashed var(--brand-3); border-radius: 14px; margin: 12px;
  pointer-events: none;
}
.chat-area.dragover .drop-overlay { display: flex; }
.drop-overlay .drop-inner { text-align: center; }
.drop-overlay .icon-box {
  width: 64px; height: 64px; border-radius: 18px; margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--brand-2), var(--brand-magenta));
  display: grid; place-items: center; box-shadow: 0 10px 30px rgba(130, 36, 227, .5);
}
.drop-overlay .icon-box svg { width: 28px; height: 28px; stroke: white; }
.drop-overlay h3 { font-size: 20px; font-weight: 800; letter-spacing: -.015em; }
.drop-overlay p { color: var(--text-2); margin-top: 6px; font-size: 13.5px; }

/* Workdir files chip-rail above composer */
.files-rail { padding: 0 20px 8px; display: none; flex-wrap: wrap; gap: 6px; }
.files-rail.has-files { display: flex; }
.file-chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px 5px 8px;
  background: var(--bg-2); border: 1px solid var(--border); border-radius: 999px;
  font-size: 12px; color: var(--text-1);
  transition: background .15s, border-color .15s;
}
.file-chip:hover { background: var(--bg-3); border-color: var(--border-strong); }
.file-chip .file-icon { color: var(--accent-3); display: grid; place-items: center; }
.file-chip .name { max-width: 200px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-chip .size { color: var(--text-3); font-size: 10.5px; }
.file-chip .x { color: var(--text-3); padding: 0 2px; cursor: pointer; border-radius: 4px; }
.file-chip .x:hover { background: rgba(239,68,68,.15); color: var(--danger); }

/* ===== Composer ===== */
.composer-wrap { padding: 8px 20px 18px; flex-shrink: 0; transition: max-height .25s, opacity .15s, padding .2s; max-height: 280px; overflow: hidden; }
.chat-area.terminal-mode .composer-wrap { max-height: 0; opacity: 0; padding-top: 0; padding-bottom: 0; pointer-events: none; }

.composer {
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  border: 1px solid var(--border); border-radius: 16px;
  padding: 10px 12px 10px 14px; display: flex; align-items: flex-end; gap: 8px;
  transition: border-color .15s, box-shadow .15s;
  box-shadow: 0 6px 22px rgba(0,0,0,.25);
}
.composer:focus-within { border-color: var(--brand-3); box-shadow: 0 0 0 3px rgba(130, 36, 227, .22), 0 8px 26px rgba(130, 36, 227, .15); }
.composer textarea {
  flex: 1; resize: none; background: transparent; color: var(--text-0); font-size: 14.5px;
  line-height: 1.5; max-height: 220px; min-height: 24px; padding: 6px 0;
  font-family: inherit;
}
.composer textarea::placeholder { color: var(--text-3); }
.composer-actions { display: flex; align-items: center; gap: 4px; }
.composer-actions .icon-btn { width: 32px; height: 32px; }
.send-btn {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, var(--brand-2), var(--brand-3) 60%, var(--brand-magenta)); color: white;
  display: grid; place-items: center; transition: transform .1s, box-shadow .15s, filter .15s;
  box-shadow: 0 4px 14px rgba(130, 36, 227, .45);
}
.send-btn:hover { transform: scale(1.06); filter: brightness(1.1); }
.send-btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

.composer-hint { font-size: 11.5px; color: var(--text-3); padding: 6px 16px 0; display: flex; align-items: center; gap: 10px; justify-content: space-between; }
.kbd { display: inline-block; padding: 1px 6px; border-radius: 5px; background: var(--bg-3); border: 1px solid var(--border); font-family: ui-monospace, monospace; font-size: 10.5px; color: var(--text-2); }

/* ===== Modal ===== */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(4, 2, 8, .75); backdrop-filter: blur(10px);
  z-index: 100; display: grid; place-items: center; padding: 20px; animation: fadeIn .15s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  width: 100%; max-width: 680px; max-height: 90vh; overflow: hidden;
  background: linear-gradient(180deg, var(--bg-1), var(--bg-0));
  border: 1px solid var(--border); border-radius: 20px;
  box-shadow: var(--shadow-lg), 0 0 80px rgba(130, 36, 227, .22);
  display: flex; flex-direction: column;
  animation: modalIn .2s ease;
}
.modal.wide { max-width: 880px; }
@keyframes modalIn { from { transform: translateY(10px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-header { padding: 18px 22px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.modal-title { font-weight: 800; font-size: 17px; letter-spacing: -.01em; }
.modal-body { padding: 22px; overflow-y: auto; flex: 1; }
.modal-footer { padding: 14px 22px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 10px; }

/* Tabs */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 22px; overflow-x: auto; }
.tab {
  padding: 10px 16px; font-size: 14px; font-weight: 600; color: var(--text-2); border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s; cursor: pointer; margin-bottom: -1px; white-space: nowrap;
}
.tab:hover { color: var(--text-0); }
.tab.active { color: var(--accent-3); border-bottom-color: var(--brand-3); }

/* CLI list rows */
.cli-row {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  border: 1px solid var(--border); border-radius: 12px; margin-bottom: 8px;
  transition: border-color .15s, transform .1s;
}
.cli-row:hover { border-color: var(--border-strong); }
.cli-row-avatar { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font-weight: 700; color: white; flex-shrink: 0; box-shadow: 0 3px 10px rgba(0,0,0,.4); }
.cli-row-info { flex: 1; min-width: 0; }
.cli-row-name { font-weight: 700; font-size: 14px; display: flex; align-items: center; gap: 8px; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; background: var(--bg-3); color: var(--text-2); font-size: 10.5px; font-weight: 600; letter-spacing: .02em; border: 1px solid var(--border); }
.badge.on { background: rgba(34,197,94,.12); color: #86efac; border-color: rgba(34,197,94,.3); }
.badge.brand { background: rgba(130, 36, 227, .15); color: var(--accent-3); border-color: rgba(130, 36, 227, .35); }
.cli-row-meta { font-size: 12px; color: var(--text-2); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-family: ui-monospace, monospace; }

.env-editor { display: flex; flex-direction: column; gap: 8px; }
.env-row { display: grid; grid-template-columns: 1fr 1.5fr auto; gap: 8px; align-items: center; }
.env-row input {
  background: var(--bg-1); border: 1px solid var(--border); border-radius: 8px; padding: 9px 11px;
  font-family: ui-monospace, "SF Mono", monospace; font-size: 13px;
}
.env-row input:focus { border-color: var(--brand-3); }
.env-row .remove { color: var(--text-3); padding: 6px; border-radius: 6px; }
.env-row .remove:hover { background: rgba(239,68,68,.15); color: var(--danger); }

/* Command palette */
.cmdk-backdrop {
  position: fixed; inset: 0; background: rgba(4, 2, 8, .65); backdrop-filter: blur(8px);
  z-index: 200; display: flex; justify-content: center; align-items: flex-start; padding-top: 16vh; padding-left: 20px; padding-right: 20px;
  animation: fadeIn .12s ease;
}
.cmdk {
  width: 100%; max-width: 600px;
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  border: 1px solid var(--border-strong); border-radius: 16px;
  box-shadow: var(--shadow-lg), 0 0 60px rgba(130, 36, 227, .25);
  overflow: hidden; animation: modalIn .15s ease;
}
.cmdk-input {
  padding: 14px 18px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 12px;
}
.cmdk-input input { flex: 1; font-size: 15.5px; color: var(--text-0); }
.cmdk-input .icon { color: var(--text-3); }
.cmdk-input .esc { font-size: 11px; color: var(--text-3); border: 1px solid var(--border); padding: 1px 6px; border-radius: 5px; }
.cmdk-list { max-height: 50vh; overflow-y: auto; padding: 6px; }
.cmdk-group-label { font-size: 10.5px; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: .1em; padding: 10px 12px 6px; }
.cmdk-item {
  display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 8px;
  font-size: 13.5px; color: var(--text-1); cursor: pointer; transition: background .12s, color .12s;
}
.cmdk-item.highlight, .cmdk-item:hover { background: var(--bg-3); color: var(--text-0); }
.cmdk-item .av { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; font-weight: 700; font-size: 11px; color: white; flex-shrink: 0; }
.cmdk-item .label { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmdk-item .hint { color: var(--text-3); font-size: 11.5px; }
.cmdk-empty { padding: 26px 18px; text-align: center; color: var(--text-3); font-size: 13px; }

/* Context menu */
.context-menu {
  position: fixed; z-index: 250; background: var(--bg-2); border: 1px solid var(--border-strong);
  border-radius: 11px; box-shadow: var(--shadow-lg); padding: 6px; min-width: 200px;
  animation: fadeIn .12s ease;
}
.context-menu button {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 11px; border-radius: 7px;
  font-size: 13.5px; color: var(--text-0); text-align: left;
}
.context-menu button:hover { background: var(--bg-3); }
.context-menu button.danger { color: #fca5a5; }
.context-menu button.danger:hover { background: rgba(239,68,68,.15); color: #fff; }
.context-menu hr { border: none; border-top: 1px solid var(--border); margin: 4px 0; }

/* Toast */
.toast-host { position: fixed; bottom: 24px; right: 24px; z-index: 400; display: flex; flex-direction: column; gap: 8px; }
.toast {
  background: var(--bg-2); border: 1px solid var(--border); border-radius: 11px;
  padding: 12px 16px; font-size: 13.5px; box-shadow: var(--shadow-lg);
  animation: slideUp .2s ease; max-width: 380px;
}
.toast.success { border-color: rgba(34,197,94,.4); }
.toast.error { border-color: rgba(239,68,68,.4); }
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* Mobile */
.menu-toggle { display: none; }
@media (max-width: 960px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-side { display: none; }
}
@media (max-width: 880px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: 288px; z-index: 50; transform: translateX(-100%); transition: transform .25s ease; box-shadow: var(--shadow-lg); }
  .sidebar.open { transform: translateX(0); }
  .menu-toggle { display: grid; }
  .sidebar-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 40; opacity: 0; pointer-events: none; transition: opacity .2s; }
  .sidebar-backdrop.show { opacity: 1; pointer-events: auto; }
  .mode-toggle button span:not(.icon-text) { display: none; }
  .topbar { padding: 0 14px; gap: 8px; }
}

/* Icons */
.icon { width: 18px; height: 18px; stroke-width: 2; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; }
.icon-sm { width: 14px; height: 14px; }
.icon-lg { width: 22px; height: 22px; }

/* Spinner */
.spinner { width: 16px; height: 16px; border: 2px solid var(--border); border-top-color: var(--brand-4); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.loading-screen { display: grid; place-items: center; height: 100vh; gap: 16px; background: radial-gradient(ellipse 60% 40% at 50% 50%, rgba(130, 36, 227, .14), transparent); }
.loading-screen .spinner { width: 34px; height: 34px; border-width: 3px; }
.loading-screen .label { color: var(--text-2); font-size: 14px; letter-spacing: -.005em; }
.loading-screen .brand-logo-img { height: 36px; }

/* Color swatches */
.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.swatch { width: 28px; height: 28px; border-radius: 8px; cursor: pointer; border: 2px solid transparent; transition: transform .1s, border-color .15s; box-shadow: 0 2px 6px rgba(0,0,0,.3); }
.swatch:hover { transform: scale(1.1); }
.swatch.active { border-color: var(--text-0); transform: scale(1.1); }

/* About */
.about-hero {
  padding: 22px; border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(130, 36, 227, .25), rgba(182, 12, 145, .15)),
    var(--bg-2);
  border: 1px solid var(--border-strong);
  display: flex; align-items: center; gap: 18px;
  position: relative; overflow: hidden;
}
.about-hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 90% 10%, rgba(255,255,255,.06), transparent 40%);
}
.about-hero .brand-logo-img { height: 36px; }
.about-hero .text { flex: 1; }
.about-hero .title { font-weight: 800; font-size: 18px; }
.about-hero .sub { color: var(--text-2); font-size: 13.5px; margin-top: 4px; }

.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.about-card {
  padding: 14px; border-radius: 12px;
  background: var(--bg-2); border: 1px solid var(--border);
}
.about-card .label { font-size: 11px; color: var(--text-3); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.about-card .value { margin-top: 4px; font-size: 14.5px; font-weight: 600; color: var(--text-0); }
.about-card .value a { color: var(--text-0); }
.about-card .meta { color: var(--text-2); font-size: 12px; margin-top: 2px; }

.about-services { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin-top: 14px; }
.about-service {
  padding: 10px 12px; border-radius: 10px;
  background: var(--bg-2); border: 1px solid var(--border);
  font-size: 13px; font-weight: 600; color: var(--text-1);
  display: flex; align-items: center; gap: 8px;
  transition: border-color .15s, background .15s;
}
.about-service:hover { border-color: var(--brand-3); background: var(--bg-3); }
.about-service .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand-3); }

.about-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.about-link {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px;
  border-radius: 999px; background: var(--bg-2); border: 1px solid var(--border);
  font-size: 12.5px; color: var(--text-1); font-weight: 600;
  transition: background .15s, border-color .15s, color .15s, transform .1s;
}
.about-link:hover { background: var(--bg-3); border-color: var(--brand-3); color: var(--brand-4); transform: translateY(-1px); }

/* Stats grid */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-top: 14px; }
.stat-card { padding: 12px; border-radius: 11px; background: var(--bg-2); border: 1px solid var(--border); }
.stat-card .label { font-size: 10.5px; color: var(--text-3); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.stat-card .value { margin-top: 4px; font-size: 18px; font-weight: 800; letter-spacing: -.01em; }
.stat-card .bar { height: 4px; border-radius: 4px; background: var(--bg-3); margin-top: 8px; overflow: hidden; }
.stat-card .bar > div { height: 100%; background: linear-gradient(90deg, var(--brand-3), var(--brand-magenta)); transition: width .25s; }

/* Files modal */
.files-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.file-card {
  padding: 12px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 6px;
}
.file-card .top { display: flex; align-items: center; gap: 10px; }
.file-card .ext {
  width: 36px; height: 36px; border-radius: 9px;
  background: linear-gradient(135deg, var(--brand-2), var(--brand-3));
  color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 11px;
  text-transform: uppercase; flex-shrink: 0;
}
.file-card .name { flex: 1; min-width: 0; font-weight: 600; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-card .size { font-size: 11px; color: var(--text-3); }
.file-card .actions { display: flex; gap: 6px; margin-top: 4px; }
.file-card .actions button { font-size: 11.5px; padding: 5px 10px; border-radius: 7px; border: 1px solid var(--border); color: var(--text-1); background: var(--bg-1); transition: all .12s; }
.file-card .actions button:hover { border-color: var(--brand-3); color: var(--brand-4); }
.file-card .actions button.danger:hover { border-color: var(--danger); color: var(--danger); }

/* Helpers */
.mt-2 { margin-top: 8px; } .mt-4 { margin-top: 16px; } .mt-6 { margin-top: 24px; }
.row { display: flex; align-items: center; gap: 8px; }
.spacer { flex: 1; }

/* ===== Pricing section (login) ===== */
.pricing-section {
  width: 100%; padding: 80px 24px 60px;
  background:
    radial-gradient(ellipse 80% 40% at 50% 0%, rgba(130, 36, 227, .14), transparent 60%),
    linear-gradient(180deg, var(--bg-0), var(--bg-1));
  border-top: 1px solid var(--border);
  display: flex; flex-direction: column; align-items: center;
}
.pricing-head { max-width: 760px; text-align: center; margin-bottom: 40px; }
.pricing-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 14px; border-radius: 999px;
  background: var(--bg-2); border: 1px solid var(--border);
  font-size: 11.5px; font-weight: 700; color: var(--text-1); letter-spacing: .04em;
  margin-bottom: 14px;
}
.pricing-eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand-3); box-shadow: 0 0 10px var(--brand-3); }
.pricing-head h2 {
  font-size: 40px; font-weight: 800; letter-spacing: -.025em; line-height: 1.05;
  background: linear-gradient(135deg, #fff 0%, #d6c8f0 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.pricing-head p { color: var(--text-2); font-size: 15px; margin-top: 12px; line-height: 1.6; }

.pricing-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px; width: 100%; max-width: 1240px;
}
.price-card {
  position: relative;
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  border: 1px solid var(--border); border-radius: 18px;
  padding: 24px 22px; display: flex; flex-direction: column;
  transition: transform .15s, border-color .15s, box-shadow .15s;
}
.price-card:hover { transform: translateY(-3px); border-color: var(--border-strong); }
.price-card.popular {
  border-color: var(--brand-3);
  box-shadow: 0 16px 50px rgba(130, 36, 227, .25), inset 0 1px 0 rgba(255,255,255,.05);
  background: linear-gradient(180deg, rgba(130, 36, 227, .12), var(--bg-1));
}
.popular-badge {
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--brand-3), var(--brand-magenta));
  color: #fff; font-size: 11px; font-weight: 700; padding: 4px 12px; border-radius: 999px;
  box-shadow: 0 4px 12px rgba(130, 36, 227, .5); letter-spacing: .04em;
}
.plan-name { font-size: 18px; font-weight: 800; letter-spacing: -.01em; }
.plan-desc { font-size: 12.5px; color: var(--text-2); margin-top: 4px; line-height: 1.5; }
.plan-price { margin-top: 16px; display: flex; align-items: baseline; gap: 4px; }
.plan-price .amount { font-size: 36px; font-weight: 800; letter-spacing: -.02em; background: linear-gradient(135deg, #fff, #c9b6ec); -webkit-background-clip: text; background-clip: text; color: transparent; }
.plan-price .period { font-size: 12.5px; color: var(--text-3); font-weight: 500; }
.plan-feats { list-style: none; padding: 0; margin: 18px 0 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.plan-feats li { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-1); }
.plan-feats .check {
  width: 16px; height: 16px; border-radius: 999px;
  background: linear-gradient(135deg, var(--brand-3), var(--brand-magenta));
  display: grid; place-items: center; color: #fff; flex-shrink: 0;
}
.plan-feats .check svg { width: 10px; height: 10px; stroke-width: 3; }
.plan-cta {
  margin-top: auto; padding: 11px 16px; border-radius: 11px;
  background: var(--bg-3); border: 1px solid var(--border-strong);
  color: var(--text-1); font-weight: 600; font-size: 13.5px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  cursor: not-allowed; transition: background .15s, color .15s;
}
.plan-cta:hover { background: var(--bg-elev); color: var(--text-0); }
.price-card.popular .plan-cta { background: linear-gradient(135deg, var(--brand-2), var(--brand-3)); color: #fff; border-color: transparent; box-shadow: 0 4px 14px rgba(130, 36, 227, .35); }
.plan-cta .soon-pill { font-size: 10px; padding: 2px 8px; border-radius: 999px; background: rgba(255,255,255,.14); color: #fff; font-weight: 700; letter-spacing: .04em; }
.price-card:not(.popular) .plan-cta .soon-pill { background: rgba(130, 36, 227, .25); color: var(--brand-4); }

.pricing-foot { margin-top: 50px; font-size: 12px; color: var(--text-3); text-align: center; }
.pricing-foot a { color: var(--text-1); }

@media (max-width: 720px) {
  .pricing-section { padding: 50px 18px 40px; }
  .pricing-head h2 { font-size: 32px; }
}
