/* ============================================================
   فروشیار — Midnight Jade Design System
   warm neutral dark · restrained jade accent · zero neon
   ============================================================ */
:root {
  --bg: #0c0e11;
  --bg-2: #10131a;
  --surface: rgba(255, 255, 255, .033);
  --surface-2: rgba(255, 255, 255, .058);
  --line: rgba(216, 222, 236, .09);
  --line-bright: rgba(216, 222, 236, .2);
  --ink: #eceef2;
  --muted: #9aa1ad;
  --faint: #666d7a;
  --jade: #35b586;
  --jade-soft: #6cc9a5;
  --brass: #c8a464;
  --teal: #58a8b8;
  --green: #35b586;
  --amber: #d9a04a;
  --red: #e06a56;
  --info: #6f9fc0;
  --grad: linear-gradient(135deg, #2c9c74, #3cb88a);
  --r: 18px;
  --r-sm: 12px;
  --glass-shadow: 0 18px 50px rgba(0, 0, 0, .45);
  --font: "Vazirmatn", Tahoma, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scrollbar-color: #262b33 transparent; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  overflow-x: hidden;
}
::selection { background: rgba(53, 181, 134, .3); }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
a { color: var(--jade-soft); }
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-thumb { background: #23262d; border-radius: 9px; }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- background: calm vignette, no neon ---------- */
.aurora { position: fixed; inset: 0; z-index: -2; overflow: hidden; background: var(--bg); }
.aurora::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(1000px 520px at 88% -12%, rgba(53, 181, 134, .055), transparent 62%),
    radial-gradient(820px 500px at -8% 108%, rgba(200, 164, 100, .04), transparent 60%);
}
.aurora::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(1200px 800px at 50% 40%, transparent 55%, rgba(0, 0, 0, .38));
}
.orb { display: none; }

/* ---------- shared bits ---------- */
.icon { width: 18px; height: 18px; flex: none; }
.icon.sm { width: 15px; height: 15px; }
.grad-text { background: linear-gradient(120deg, #6cc9a5, #3cb88a 60%, #c8a464); -webkit-background-clip: text; background-clip: text; color: transparent; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: scale(1); } }
@keyframes pulse-dot { 0% { box-shadow: 0 0 0 0 rgba(53, 181, 134, .4); } 70% { box-shadow: 0 0 0 7px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@keyframes pulse-amber { 0% { box-shadow: 0 0 0 0 rgba(217, 160, 74, .38); } 70% { box-shadow: 0 0 0 7px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

.enter > * { animation: fadeUp .5s cubic-bezier(.2, .7, .2, 1) both; }
.enter > *:nth-child(1) { animation-delay: .02s; } .enter > *:nth-child(2) { animation-delay: .07s; }
.enter > *:nth-child(3) { animation-delay: .12s; } .enter > *:nth-child(4) { animation-delay: .17s; }
.enter > *:nth-child(5) { animation-delay: .22s; } .enter > *:nth-child(6) { animation-delay: .27s; }

.glass {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.skeleton {
  border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); height: 120px; position: relative; overflow: hidden;
}
.skeleton::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(216,222,236,.07), transparent);
  background-size: 200% 100%; animation: shimmer 1.4s infinite;
}

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--grad); color: #06130d; border: 0; border-radius: var(--r-sm);
  padding: 11px 20px; cursor: pointer; font-weight: 800; font-size: 13.5px;
  transition: transform .15s, filter .2s;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 8px 22px rgba(0, 0, 0, .35);
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.07); }
.btn:active { transform: translateY(0); }
.btn.ghost { background: var(--surface-2); border: 1px solid var(--line); box-shadow: none; color: var(--ink); }
.btn.ghost:hover { border-color: var(--line-bright); filter: none; }
.btn.danger { background: rgba(224, 106, 86, .1); color: var(--red); border: 1px solid rgba(224,106,86,.3); box-shadow: none; }
.btn.sm { width: auto; padding: 8px 14px; font-size: 12.5px; border-radius: 10px; }
.btn.icon-only { width: 40px; height: 40px; padding: 0; border-radius: 12px; }
.btn:disabled { opacity: .55; cursor: default; transform: none; }

/* fields */
label { display: block; font-size: 12.5px; color: var(--muted); margin: 16px 0 7px; font-weight: 600; }
input, textarea, select {
  width: 100%; border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 11px 13px; background: rgba(5, 6, 9, .55); outline: none;
  transition: border-color .15s, box-shadow .15s; color: var(--ink);
}
input::placeholder, textarea::placeholder { color: var(--faint); }
input:focus, textarea:focus, select:focus { border-color: rgba(53, 181, 134, .55); box-shadow: 0 0 0 3.5px rgba(53, 181, 134, .13); background: rgba(8, 10, 14, .8); }
select option { background: #14171d; }
textarea { resize: vertical; }

.hint { font-size: 12px; color: var(--faint); margin-top: 8px; line-height: 2; }
.hint b { color: var(--muted); }
.kbd { background: rgba(216,222,236,.09); border: 1px solid var(--line); border-radius: 6px; padding: 1px 7px; font-size: 11.5px; color: var(--muted); }

/* tags */
.tag { padding: 3.5px 11px; border-radius: 99px; font-size: 11.5px; font-weight: 700; display: inline-flex; align-items: center; gap: 5px; }
.tag.ok { background: rgba(53, 181, 134, .11); color: var(--jade-soft); }
.tag.warn { background: rgba(217, 160, 74, .12); color: var(--amber); }
.tag.err { background: rgba(224, 106, 86, .12); color: #eb9182; }
.tag.info { background: rgba(111, 159, 192, .13); color: #9dc0d8; }
.tag.muted { background: rgba(216, 222, 236, .08); color: var(--muted); }

/* toast */
.toast {
  position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%);
  background: rgba(18, 21, 26, .94); border: 1px solid var(--line-bright); color: var(--ink);
  padding: 12px 22px; border-radius: 14px; z-index: 999; font-size: 13.5px; font-weight: 600;
  box-shadow: var(--glass-shadow); backdrop-filter: blur(14px); animation: pop .25s;
  display: flex; align-items: center; gap: 9px; max-width: 90vw;
}
.toast::before { content: "✓"; color: var(--jade); font-weight: 900; }

/* ============================================================
   AUTH
   ============================================================ */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 20px; position: relative; }
.auth-wrap { width: min(920px, 100%); display: grid; grid-template-columns: 1.05fr 1fr; gap: 0; align-items: stretch; position: relative; }
.auth-hero { padding: 44px 8px 44px 44px; display: flex; flex-direction: column; justify-content: center; }
.auth-hero .brandline { display: flex; align-items: center; gap: 13px; margin-bottom: 26px; }
.auth-hero h1 { font-size: 38px; font-weight: 900; line-height: 1.55; margin-bottom: 14px; }
.auth-hero p.sub { color: var(--muted); font-size: 15px; line-height: 2.1; margin-bottom: 26px; }
.feat-row { display: flex; flex-wrap: wrap; gap: 9px; }
.feat {
  display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600;
  color: var(--muted); background: var(--surface); border: 1px solid var(--line);
  padding: 8px 14px; border-radius: 99px; backdrop-filter: blur(10px);
}
.feat .icon { width: 14px; height: 14px; color: var(--jade); }
.auth-card {
  background: linear-gradient(160deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .022));
  border: 1px solid var(--line-bright); border-radius: 24px; padding: 38px 34px;
  backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
  box-shadow: var(--glass-shadow); position: relative; overflow: hidden;
}
.auth-card::before {
  content: ""; position: absolute; top: 0; right: 0; left: 40%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .45), transparent);
}
.logo-mark {
  width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center;
  background: var(--grad); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 10px 26px rgba(0, 0, 0, .4);
  flex: none;
}
.logo-mark svg { width: 27px; height: 27px; color: #06130d; }
.auth-card h2 { font-size: 21px; margin: 22px 0 4px; font-weight: 800; }
.auth-card .sub { color: var(--muted); font-size: 13px; margin-bottom: 8px; }
.err { background: rgba(224, 106, 86, .1); border: 1px solid rgba(224,106,86,.3); color: #eb9182; border-radius: var(--r-sm); padding: 11px 14px; margin-top: 16px; font-size: 12.5px; display: none; }
.auth-foot { text-align: center; color: var(--faint); font-size: 11.5px; margin-top: 22px; }

/* ============================================================
   SHELL
   ============================================================ */
.shell { display: grid; grid-template-columns: 252px 1fr; min-height: 100vh; }
.sidebar {
  border-left: 1px solid var(--line); background: rgba(9, 10, 13, .78);
  backdrop-filter: blur(20px); padding: 26px 18px; display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh; gap: 5px;
}
.brand { display: flex; align-items: center; gap: 12px; padding: 0 8px 24px; }
.brand .logo-mark { width: 42px; height: 42px; border-radius: 13px; }
.brand .logo-mark svg { width: 22px; height: 22px; }
.brand b { font-size: 17.5px; font-weight: 900; letter-spacing: -.3px; }
.brand small { display: block; color: var(--faint); font-size: 10.5px; font-weight: 500; margin-top: 2px; }

.nav-item {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 13px;
  cursor: pointer; font-size: 13.5px; font-weight: 600; color: var(--muted);
  transition: color .15s, background .15s; position: relative;
}
.nav-item .icon { color: var(--faint); transition: color .15s; }
.nav-item:hover { color: var(--ink); background: var(--surface); }
.nav-item.active { color: #eafff5; background: rgba(53, 181, 134, .1); border: 1px solid rgba(53, 181, 134, .28); }
.nav-item.active .icon { color: var(--jade-soft); }
.nav-item .badge {
  margin-right: auto; background: var(--jade); color: #06130d; border-radius: 99px;
  font-size: 10.5px; padding: 2px 8px; font-weight: 800;
}
.side-foot { margin-top: auto; }
.side-user {
  display: flex; align-items: center; gap: 11px; padding: 12px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line);
}
.avatar {
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex: none;
  font-weight: 800; font-size: 15px; color: #f4f1ea;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18);
}
.side-user .n { font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 120px; }
.side-user .p { font-size: 11px; color: var(--faint); margin-top: 2px; }

.main { padding: 28px 34px 46px; max-width: 1240px; width: 100%; min-width: 0; }
.topbar { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 26px; gap: 14px; flex-wrap: wrap; }
.topbar h2 { font-size: 22px; font-weight: 800; letter-spacing: -.3px; }
.topbar .date { color: var(--faint); font-size: 12px; margin-top: 5px; }
.topbar .actions { display: flex; align-items: center; gap: 10px; }

.bot-pill {
  display: inline-flex; align-items: center; gap: 9px; padding: 9px 16px; border-radius: 99px;
  font-size: 12.5px; font-weight: 700; background: var(--surface); border: 1px solid var(--line); color: var(--muted);
}
.bot-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); flex: none; }
.bot-pill.on .dot { background: var(--jade); animation: pulse-dot 2s infinite; }
.bot-pill.on { color: var(--jade-soft); border-color: rgba(53,181,134,.3); }
.bot-pill.off .dot { background: var(--amber); animation: pulse-amber 2s infinite; }
.bot-pill.off { color: var(--amber); }

/* ============================================================
   OVERVIEW — bento
   ============================================================ */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.bento .card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; backdrop-filter: blur(16px); position: relative; overflow: hidden; transition: border-color .2s; }
.bento .card:hover { border-color: var(--line-bright); }
.card .t { color: var(--muted); font-size: 12px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.card .t .icon { width: 15px; height: 15px; color: var(--jade); }
.card .v { font-size: 27px; font-weight: 900; margin-top: 10px; letter-spacing: -.5px; }
.card .v small { font-size: 12px; color: var(--faint); font-weight: 600; margin-right: 5px; }
.delta { font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; gap: 3px; }
.delta.up { color: var(--jade); } .delta.down { color: var(--red); }

.span-8 { grid-column: span 8; } .span-4 { grid-column: span 4; }
.span-6 { grid-column: span 6; } .span-3 { grid-column: span 3; } .span-12 { grid-column: span 12; }

.alert-banner {
  grid-column: span 12; display: flex; align-items: center; gap: 14px;
  background: rgba(217, 160, 74, .07);
  border: 1px solid rgba(217, 160, 74, .3); border-radius: var(--r); padding: 16px 20px;
}
.alert-banner .icon { width: 22px; height: 22px; color: var(--amber); flex: none; }
.alert-banner b { font-size: 13.5px; }
.alert-banner .s { color: var(--muted); font-size: 12px; margin-top: 3px; }

.chart-card { min-height: 300px; display: flex; flex-direction: column; }
.chart-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.chart-head h3 { font-size: 14.5px; font-weight: 800; }
.chart-head .range { display: inline-flex; background: rgba(5, 6, 9, .6); border: 1px solid var(--line); border-radius: 10px; padding: 3px; gap: 2px; }
.chart-head .range button {
  border: 0; background: transparent; color: var(--faint); font-size: 11.5px; font-weight: 700;
  padding: 6px 13px; border-radius: 8px; cursor: pointer;
}
.chart-head .range button.on { background: var(--surface-2); color: var(--ink); }
.chart-wrap { flex: 1; position: relative; margin-top: 14px; min-height: 210px; }
.chart-tip {
  position: absolute; pointer-events: none; opacity: 0; transition: opacity .12s; z-index: 5;
  background: rgba(15, 18, 23, .97); border: 1px solid var(--line-bright); border-radius: 11px;
  padding: 9px 13px; font-size: 11.5px; box-shadow: var(--glass-shadow); white-space: nowrap;
}
.chart-tip b { display: block; margin-bottom: 4px; font-size: 12px; }
.chart-tip .row { display: flex; align-items: center; gap: 6px; color: var(--muted); padding: 1.5px 0; }
.chart-tip .sw { width: 8px; height: 8px; border-radius: 3px; flex: none; }

.ring-wrap { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 4px; }
.ring-wrap svg { width: 150px; height: 150px; }
.ring-val { font-size: 24px; font-weight: 900; margin-top: -104px; margin-bottom: 62px; }
.ring-cap { color: var(--muted); font-size: 12px; line-height: 1.9; }

.qa-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; margin-top: 16px; }
.qa {
  display: flex; align-items: center; gap: 11px; padding: 13px 14px; border-radius: 13px;
  background: rgba(5, 6, 9, .45); border: 1px solid var(--line); cursor: pointer;
  font-size: 12.5px; font-weight: 700; transition: border-color .15s, background .15s; text-align: right; width: 100%; color: var(--ink);
}
.qa:hover { border-color: rgba(53, 181, 134, .42); background: rgba(53, 181, 134, .06); }
.qa .icon { color: var(--jade); width: 17px; height: 17px; }
.qa small { display: block; color: var(--faint); font-size: 10.5px; font-weight: 500; margin-top: 2px; }

.leg { display: flex; gap: 16px; font-size: 11.5px; color: var(--muted); }
.leg .sw { width: 9px; height: 9px; border-radius: 3px; display: inline-block; margin-left: 6px; }

/* ============================================================
   CONVERSATIONS
   ============================================================ */
.chat-grid { display: grid; grid-template-columns: 330px 1fr; gap: 16px; min-height: 600px; }
.threads { max-height: 660px; overflow-y: auto; padding: 8px; }
.thread {
  display: flex; gap: 12px; padding: 13px 12px; border-radius: 14px; cursor: pointer;
  transition: background .15s; align-items: center;
}
.thread:hover { background: var(--surface-2); }
.thread.active { background: rgba(53, 181, 134, .08); border: 1px solid rgba(53, 181, 134, .3); }
.avatar.sm { width: 40px; height: 40px; font-size: 14px; }
.thread .meta { min-width: 0; flex: 1; }
.thread .n { font-weight: 700; font-size: 13px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.thread .m { color: var(--faint); font-size: 12px; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thread .time { color: var(--faint); font-size: 10px; flex: none; }

.chat-pane { display: flex; flex-direction: column; max-height: 660px; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.messages { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 4px; }
.msg { max-width: 76%; padding: 11px 15px; border-radius: 16px; font-size: 13.5px; line-height: 2; white-space: pre-wrap; animation: pop .25s; }
.msg.user { align-self: flex-start; background: var(--surface-2); border: 1px solid var(--line); border-top-right-radius: 5px; }
.msg.agent { align-self: flex-end; background: rgba(53, 181, 134, .1); border: 1px solid rgba(53, 181, 134, .26); border-top-left-radius: 5px; }
.msg .when { display: flex; gap: 7px; align-items: center; font-size: 10px; color: var(--faint); margin-top: 5px; }
.reply-row { display: flex; gap: 10px; padding: 14px 16px; border-top: 1px solid var(--line); align-items: flex-end; }
.reply-row textarea { flex: 1; min-height: 46px; max-height: 120px; }

/* ============================================================
   TABLES (orders)
   ============================================================ */
.tbl { width: 100%; border-collapse: collapse; }
th { text-align: right; color: var(--faint); font-size: 11px; font-weight: 700; padding: 10px 12px; border-bottom: 1px solid var(--line); letter-spacing: .3px; }
td { padding: 14px 12px; border-bottom: 1px solid var(--line); font-size: 13px; vertical-align: top; }
tr:last-child td { border-bottom: 0; }
tbody tr { transition: background .15s; }
tbody tr:hover { background: rgba(216, 222, 236, .03); }
.cell-sub { color: var(--faint); font-size: 11.5px; margin-top: 3px; }
select.mini, input.mini { width: auto; padding: 7px 10px; font-size: 12px; border-radius: 9px; }

/* ============================================================
   PRODUCTS grid
   ============================================================ */
.prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 15px; }
.prod {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 18px; transition: transform .18s, border-color .18s, box-shadow .18s; position: relative;
}
.prod:hover { transform: translateY(-3px); border-color: rgba(53, 181, 134, .38); box-shadow: 0 14px 36px rgba(0, 0, 0, .4); }
.prod .thumb {
  height: 110px; border-radius: 13px; display: grid; place-items: center; font-size: 30px; font-weight: 900; color: #dfe7df;
  background: linear-gradient(150deg, rgba(53, 181, 134, .2), rgba(200, 164, 100, .12)); border: 1px solid rgba(53, 181, 134, .2);
  margin-bottom: 14px; position: relative; overflow: hidden;
}
.prod .thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255, 255, 255, .06), transparent 40%); }
.prod h4 { font-size: 14px; font-weight: 800; margin-bottom: 6px; }
.prod .desc { color: var(--faint); font-size: 11.5px; line-height: 1.9; height: 40px; overflow: hidden; }
.prod .foot { display: flex; align-items: center; justify-content: space-between; margin-top: 13px; }
.prod .price { font-size: 15px; font-weight: 900; color: var(--jade-soft); }
.prod .price small { font-size: 10.5px; color: var(--faint); font-weight: 600; }
.prod .ops { display: flex; gap: 6px; }
.icon-btn {
  width: 32px; height: 32px; border-radius: 9px; border: 1px solid var(--line); background: rgba(5, 6, 9, .5);
  display: grid; place-items: center; cursor: pointer; color: var(--muted); transition: all .15s;
}
.icon-btn:hover { color: var(--ink); border-color: var(--line-bright); }
.icon-btn.del:hover { color: var(--red); border-color: rgba(224,106,86,.4); }
.icon-btn .icon { width: 14.5px; height: 14.5px; }

/* ============================================================
   SETTINGS
   ============================================================ */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; margin-bottom: 16px; backdrop-filter: blur(16px); }
.panel-h { display: flex; align-items: center; gap: 11px; margin-bottom: 6px; }
.panel-h .ic { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: rgba(53, 181, 134, .1); border: 1px solid rgba(53, 181, 134, .25); color: var(--jade-soft); flex: none; }
.panel-h .ic .icon { width: 17px; height: 17px; }
.panel-h h3 { font-size: 14.5px; font-weight: 800; }
.panel-h .s { color: var(--faint); font-size: 11.5px; margin-top: 2px; }
.panel .btn.save { margin-top: 18px; }

.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; margin-top: 16px; }
.plan-card {
  border-radius: 16px; padding: 20px 17px; cursor: pointer; position: relative;
  background: rgba(5, 6, 9, .45); border: 1px solid var(--line); transition: all .18s;
}
.plan-card:hover { border-color: var(--line-bright); }
.plan-card.sel { border-color: rgba(53, 181, 134, .6); background: rgba(53, 181, 134, .07); box-shadow: 0 0 0 3px rgba(53, 181, 134, .12); }
.plan-card .pn { font-weight: 800; font-size: 14.5px; display: flex; align-items: center; gap: 8px; }
.plan-card .pp { font-size: 21px; font-weight: 900; margin: 10px 0 3px; }
.plan-card .pp small { font-size: 11px; color: var(--faint); font-weight: 600; }
.plan-card ul { list-style: none; margin-top: 13px; display: grid; gap: 8px; }
.plan-card li { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--muted); }
.plan-card li .icon { width: 13px; height: 13px; color: var(--jade); flex: none; }
.plan-card .rec { position: absolute; top: -9px; right: 14px; font-size: 10px; font-weight: 800; background: var(--brass); color: #17130a; padding: 3px 11px; border-radius: 99px; }

/* modal */
.modal-bg { position: fixed; inset: 0; background: rgba(3, 4, 7, .68); backdrop-filter: blur(8px); display: grid; place-items: center; z-index: 60; padding: 16px; animation: pop .2s; }
.modal {
  background: linear-gradient(165deg, #15181f, #101319); border: 1px solid var(--line-bright);
  border-radius: 22px; padding: 28px; width: 100%; max-width: 540px; max-height: 90vh; overflow-y: auto;
  box-shadow: var(--glass-shadow);
}
.modal h3 { font-size: 16.5px; margin-bottom: 6px; }
.modal .row-end { display: flex; gap: 9px; align-items: center; margin-top: 22px; }

.empty { text-align: center; padding: 56px 0; color: var(--muted); }
.empty .eico {
  width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 20px; display: grid; place-items: center;
  background: rgba(53, 181, 134, .09); border: 1px solid rgba(53, 181, 134, .22); color: var(--jade-soft);
}
.empty .eico .icon { width: 26px; height: 26px; }
.empty b { display: block; color: var(--ink); font-size: 14.5px; margin-bottom: 6px; }
.empty p { font-size: 12.5px; color: var(--faint); max-width: 340px; margin: 0 auto; line-height: 2; }

.section-note { color: var(--faint); font-size: 12px; line-height: 2.2; }
.step-chip { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 8px; background: rgba(53, 181, 134, .12); color: var(--jade-soft); font-size: 11px; font-weight: 800; margin-left: 8px; }

/* responsive */
@media (max-width: 1080px) {
  .span-8, .span-4, .span-6 { grid-column: span 12; }
  .span-3 { grid-column: span 6; }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-hero { padding: 10px 8px 26px; }
  .auth-hero h1 { font-size: 28px; }
  .plan-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; padding: 14px; gap: 6px; }
  .brand { padding: 0 8px 0 0; }
  .side-foot { display: none; }
  .main { padding: 20px 16px 40px; }
  .chat-grid { grid-template-columns: 1fr; }
  .threads { max-height: 240px; }
  .chat-pane { max-height: 520px; }
}
