/* ============================================================
   راباکس (Rawbox) — طراحی مشترک لندینگ و پنل
   تم تیره + شیشه‌ای (glass) + گرادیان غروب؛ فارسی RTL
   ============================================================ */

:root {
  --bg: #070b14;
  --bg-2: #0b1120;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.09);
  --border-2: rgba(255, 255, 255, 0.16);
  --text: #e8ecf4;
  --muted: #97a3b8;
  --muted-2: #6b7793;
  --accent-1: #ff7a45;
  --accent-2: #ffb25a;
  --accent-soft: rgba(255, 122, 69, 0.14);
  --aqua: #43e0d0;
  --aqua-soft: rgba(67, 224, 208, 0.12);
  --violet: #8b7bff;
  --danger: #ff5d73;
  --success: #3ddc97;
  --grad: linear-gradient(120deg, var(--accent-1), var(--accent-2));
  --grad-text: linear-gradient(120deg, #ff9a6b, #ffc98a);
  --radius: 18px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --font: "Vazirmatn", "Segoe UI", Tahoma, sans-serif;
  --mono: "SF Mono", "Fira Code", Consolas, monospace;
}

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

html { scroll-behavior: smooth; }

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

/* ---------- پس‌زمینهaurora ---------- */
.aurora {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}
.aurora::before,
.aurora::after {
  content: "";
  position: absolute;
  width: 55vw;
  height: 55vw;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.16;
  animation: drift 22s ease-in-out infinite alternate;
}
.aurora::before { background: #ff7a45; top: -22vw; inset-inline-start: -14vw; }
.aurora::after { background: #43e0d0; bottom: -26vw; inset-inline-end: -12vw; animation-delay: -8s; }
.aurora .blob-3 {
  position: absolute;
  width: 38vw; height: 38vw;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.12;
  background: #8b7bff;
  top: 28vh; inset-inline-end: 6vw;
  animation: drift 28s ease-in-out infinite alternate-reverse;
}
@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(4vw, 6vh) scale(1.15); }
}

.grid-lines {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 55%, transparent 100%);
}

/* ---------- عناصر پایه ---------- */
.container { width: min(1140px, 92vw); margin-inline: auto; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--grad);
  color: #241005;
  box-shadow: 0 10px 30px rgba(255, 122, 69, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(255, 122, 69, 0.45); }
.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border-2);
}
.btn-ghost:hover { background: var(--surface-2); transform: translateY(-2px); }
.btn-sm { padding: 8px 16px; font-size: 13px; border-radius: 10px; }
.btn-danger { background: rgba(255, 93, 115, 0.12); color: var(--danger); border: 1px solid rgba(255, 93, 115, 0.35); }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
}
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 10px var(--success); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.grad-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.code {
  direction: ltr;
  text-align: left;
  font-family: var(--mono);
  font-size: 12.5px;
  background: #0a0f1d;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
  color: #c7d3e8;
  overflow-x: auto;
  line-height: 1.9;
}
.code .cm { color: #5a6a88; }
.code .k { color: var(--aqua); }
.code .s { color: #ffb25a; }

/* ---------- لندینگ ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(7, 11, 20, 0.72);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.logo { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--text); }
.logo-mark {
  width: 38px; height: 38px;
  border-radius: 11px;
  background: var(--grad);
  display: grid;
  place-items: center;
  color: #241005;
  font-weight: 900;
  font-size: 17px;
  box-shadow: 0 6px 20px rgba(255, 122, 69, 0.4);
}
.logo b { font-size: 19px; font-weight: 800; }
.logo small { color: var(--muted-2); font-size: 11px; display: block; margin-top: -4px; }
.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 14px; transition: color 0.15s; }
.nav-links a:hover { color: var(--text); }
@media (max-width: 720px) { .nav-links a.hide-sm { display: none; } }

.hero { padding: 96px 0 40px; text-align: center; position: relative; }
.hero h1 {
  font-size: clamp(34px, 5.6vw, 62px);
  font-weight: 900;
  line-height: 1.45;
  margin: 22px 0 14px;
}
.hero p.lead {
  color: var(--muted);
  font-size: clamp(15px, 2vw, 18px);
  max-width: 640px;
  margin: 0 auto 34px;
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  max-width: 820px;
  margin: 52px auto 0;
}
.stat {
  padding: 18px 12px;
  text-align: center;
}
.stat b { font-size: 26px; font-weight: 800; display: block; }
.stat span { color: var(--muted-2); font-size: 12.5px; }

/* ترمینال نمایشی */
.hero-terminal {
  max-width: 760px;
  margin: 60px auto 0;
  border-radius: 20px;
  overflow: hidden;
  text-align: start;
  box-shadow: var(--shadow), 0 0 0 1px var(--border);
  background: rgba(10, 15, 29, 0.92);
}
.term-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}
.term-bar i { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.term-bar i:nth-child(1) { background: #ff5f57; }
.term-bar i:nth-child(2) { background: #febc2e; }
.term-bar i:nth-child(3) { background: #28c840; }
.term-bar span { margin-inline-start: auto; color: var(--muted-2); font-size: 11.5px; font-family: var(--mono); direction: ltr; }
.term-body { padding: 20px 22px 26px; font-family: var(--mono); font-size: 13px; direction: ltr; text-align: left; line-height: 2.05; overflow-x: auto; }
.term-body .ln { opacity: 0; animation: term-in 0.5s ease forwards; }
.term-body .ln:nth-child(1) { animation-delay: 0.2s; }
.term-body .ln:nth-child(2) { animation-delay: 0.7s; }
.term-body .ln:nth-child(3) { animation-delay: 1.2s; }
.term-body .ln:nth-child(4) { animation-delay: 1.9s; }
.term-body .ln:nth-child(5) { animation-delay: 2.6s; }
.term-body .ln:nth-child(6) { animation-delay: 3.3s; }
.term-body .p { color: var(--aqua); }
.term-body .ok { color: var(--success); }
.term-body .warn { color: var(--accent-2); }
.term-body .caret {
  display: inline-block;
  width: 8px; height: 15px;
  background: var(--aqua);
  vertical-align: -2px;
  animation: blink 1s steps(1) infinite;
}
@keyframes term-in { to { opacity: 1; } }
@keyframes blink { 50% { opacity: 0; } }

section { padding: 72px 0; }
.sec-head { text-align: center; margin-bottom: 44px; }
.sec-head h2 { font-size: clamp(24px, 3.4vw, 36px); font-weight: 800; margin-bottom: 10px; }
.sec-head p { color: var(--muted); max-width: 560px; margin-inline: auto; font-size: 15px; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}
.feature { padding: 26px 24px; transition: transform 0.2s, border-color 0.2s; }
.feature:hover { transform: translateY(-4px); border-color: var(--border-2); }
.feature .icon {
  width: 46px; height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  background: var(--accent-soft);
  color: var(--accent-2);
}
.feature .icon.aqua { background: var(--aqua-soft); color: var(--aqua); }
.feature h3 { font-size: 16.5px; font-weight: 700; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 13.5px; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.step { padding: 26px 24px; position: relative; }
.step .num {
  font-size: 44px;
  font-weight: 900;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0.9;
  line-height: 1.2;
}
.step h3 { font-size: 16px; margin: 6px 0 8px; }
.step p { color: var(--muted); font-size: 13.5px; }

.compare-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.compare-table th, .compare-table td { padding: 14px 16px; text-align: right; border-bottom: 1px solid var(--border); }
.compare-table th { color: var(--muted-2); font-weight: 600; font-size: 12.5px; }
.compare-table .good { color: var(--success); font-weight: 700; }
.compare-table .bad { color: var(--danger); }
.bar-wrap { background: rgba(255,255,255,0.06); border-radius: 8px; height: 9px; overflow: hidden; }
.bar { height: 100%; border-radius: 8px; background: var(--grad); }

.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 22px;
  margin-bottom: 12px;
}
.faq summary { cursor: pointer; font-weight: 700; font-size: 15px; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq summary::after { content: "+"; color: var(--accent-2); font-size: 20px; transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin-top: 10px; font-size: 14px; }

.cta-band {
  text-align: center;
  padding: 64px 28px;
  background:
    radial-gradient(ellipse 60% 120% at 50% -20%, rgba(255, 122, 69, 0.18), transparent),
    var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
}
.cta-band h2 { font-size: clamp(22px, 3vw, 32px); font-weight: 800; margin-bottom: 12px; }

footer { border-top: 1px solid var(--border); padding: 34px 0; margin-top: 40px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; color: var(--muted-2); font-size: 13px; }
.footer-inner a { color: var(--muted); text-decoration: none; }

/* ---------- پنل ---------- */
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-card { width: min(420px, 94vw); padding: 40px 36px; text-align: center; }
.login-card .logo { justify-content: center; margin-bottom: 18px; }
.login-card h1 { font-size: 22px; font-weight: 800; margin-bottom: 6px; }
.login-card p.sub { color: var(--muted); font-size: 13.5px; margin-bottom: 26px; }
.field { text-align: start; margin-bottom: 16px; }
.field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 7px; }
.field input {
  width: 100%;
  padding: 13px 15px;
  border-radius: 12px;
  border: 1px solid var(--border-2);
  background: rgba(7, 11, 20, 0.7);
  color: var(--text);
  font-family: var(--mono);
  font-size: 13.5px;
  direction: ltr;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field input:focus { border-color: var(--accent-1); box-shadow: 0 0 0 3px rgba(255, 122, 69, 0.15); }
.login-error { color: var(--danger); font-size: 13px; min-height: 20px; margin-bottom: 8px; }
.login-note { color: var(--muted-2); font-size: 12px; margin-top: 18px; }

.app { display: none; min-height: 100vh; }
.app.visible { display: grid; grid-template-columns: 248px 1fr; }
@media (max-width: 860px) {
  .app.visible { grid-template-columns: 1fr; }
  .sidebar { position: fixed; inset-inline-end: 0; top: 0; bottom: 0; width: 248px; transform: translateX(100%); transition: transform 0.25s; z-index: 100; }
  .app.in-rtl .sidebar.open { transform: translateX(0); }
  .menu-fab { display: grid !important; }
}
.sidebar {
  border-inline-end: 1px solid var(--border);
  background: rgba(9, 13, 24, 0.86);
  backdrop-filter: blur(16px);
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sidebar .logo { padding: 0 10px 18px; }
.side-nav { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.side-link {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 14px;
  border-radius: 12px;
  color: var(--muted);
  cursor: pointer;
  font-size: 14px;
  border: none;
  background: none;
  font-family: var(--font);
  text-align: start;
  transition: background 0.15s, color 0.15s;
}
.side-link:hover { background: var(--surface); color: var(--text); }
.side-link.active { background: var(--accent-soft); color: var(--accent-2); font-weight: 700; }
.side-link svg { flex-shrink: 0; }
.side-foot { border-top: 1px solid var(--border); padding-top: 14px; }
.side-user { display: flex; align-items: center; gap: 10px; padding: 0 10px 12px; }
.avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--grad);
  color: #241005;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 15px;
  flex-shrink: 0;
}
.side-user b { font-size: 13.5px; display: block; }
.side-user span { font-size: 11.5px; color: var(--muted-2); }

.main { padding: 26px 30px 60px; min-width: 0; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 26px; flex-wrap: wrap; }
.topbar h2 { font-size: 21px; font-weight: 800; }
.topbar .sub { color: var(--muted-2); font-size: 13px; }
.menu-fab { display: none; width: 40px; height: 40px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border-2); color: var(--text); cursor: pointer; place-items: center; }

.view { display: none; }
.view.active { display: block; animation: view-in 0.25s ease; }
@keyframes view-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); gap: 16px; margin-bottom: 24px; }
.metric { padding: 22px; }
.metric .label { color: var(--muted); font-size: 13px; display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.metric .value { font-size: 28px; font-weight: 800; }
.metric .value small { font-size: 14px; color: var(--muted); font-weight: 600; }
.metric.tint { background: linear-gradient(140deg, rgba(255,122,69,0.12), rgba(255,178,90,0.05)); border-color: rgba(255, 122, 69, 0.3); }
.metric.tint-aqua { background: linear-gradient(140deg, rgba(67,224,208,0.1), transparent); border-color: rgba(67, 224, 208, 0.28); }

.panel-card { padding: 24px; margin-bottom: 22px; }
.panel-card h3 { font-size: 15.5px; font-weight: 700; margin-bottom: 16px; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }

.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.data th {
  text-align: right;
  color: var(--muted-2);
  font-size: 11.5px;
  font-weight: 600;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-2);
  white-space: nowrap;
}
table.data td { padding: 12px; border-bottom: 1px solid var(--border); white-space: nowrap; }
table.data tr:last-child td { border-bottom: none; }
table.data tr:hover td { background: rgba(255, 255, 255, 0.02); }
.mono { font-family: var(--mono); font-size: 12px; direction: ltr; display: inline-block; }
.badge { display: inline-flex; align-items: center; padding: 3px 11px; border-radius: 999px; font-size: 11.5px; font-weight: 600; }
.badge.ok { background: rgba(61, 220, 151, 0.12); color: var(--success); }
.badge.off { background: rgba(255, 93, 115, 0.12); color: var(--danger); }
.badge.lose { background: rgba(255, 178, 90, 0.12); color: var(--accent-2); }

.copy-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #0a0f1d;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 12px;
}
.copy-row code { font-family: var(--mono); font-size: 12px; direction: ltr; flex: 1; overflow-x: auto; white-space: nowrap; color: #c7d3e8; }
.copy-btn {
  flex-shrink: 0;
  border: 1px solid var(--border-2);
  background: var(--surface);
  color: var(--muted);
  border-radius: 9px;
  padding: 6px 12px;
  font-family: var(--font);
  font-size: 12px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}
.copy-btn:hover { color: var(--aqua); border-color: var(--aqua); }
.copy-btn.done { color: var(--success); border-color: var(--success); }

/* دیالوگ */
.dialog-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 7, 13, 0.72);
  backdrop-filter: blur(6px);
  display: none;
  place-items: center;
  z-index: 200;
  padding: 20px;
}
.dialog-backdrop.open { display: grid; }
.dialog { width: min(480px, 96vw); padding: 30px 28px; }
.dialog h3 { font-size: 17px; font-weight: 800; margin-bottom: 18px; }
.dialog .actions { display: flex; gap: 10px; justify-content: flex-start; margin-top: 22px; }
.token-reveal {
  font-family: var(--mono);
  direction: ltr;
  text-align: center;
  font-size: 15px;
  background: var(--accent-soft);
  border: 1px dashed rgba(255, 122, 69, 0.5);
  color: var(--accent-2);
  border-radius: 12px;
  padding: 16px;
  margin: 14px 0 6px;
  word-break: break-all;
  user-select: all;
}

.toast {
  position: fixed;
  bottom: 26px;
  inset-inline-start: 50%;
  transform: translateX(50%);
  background: #101828;
  border: 1px solid var(--border-2);
  color: var(--text);
  padding: 12px 22px;
  border-radius: 12px;
  font-size: 13.5px;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
  z-index: 300;
}
.toast.show { opacity: 1; transform: translateX(50%) translateY(-6px); }
.toast.err { border-color: rgba(255, 93, 115, 0.5); }

.empty { text-align: center; color: var(--muted-2); font-size: 13.5px; padding: 26px 0; }

/* ---------- فیکس جدول‌ها ---------- */
/* ریشه باگ شکستن ستون‌ها: .mono دارای display:inline-block بود و روی <td>
   اعمال می‌شد؛ td دیگر table-cell نبود و ساختار ستونی می‌شکست. */
table.data td.mono {
    display: table-cell;
    direction: ltr;
    text-align: left;
}
table.data td.num {
    direction: ltr;
    text-align: right;
    font-family: var(--mono);
    font-size: 12px;
}
table.data.fixed { table-layout: fixed; min-width: 640px; }
table.data.fixed.bymodel { min-width: 560px; }
table.data.fixed td { overflow: hidden; text-overflow: ellipsis; }
table.data thead th { background: rgba(255,255,255,0.03); }
table.data tbody tr:nth-child(even) td { background: rgba(255,255,255,0.015); }

table.data td.t-date { color: var(--muted); font-size: 12px; white-space: nowrap; }
table.data td.t-prov { color: var(--aqua); }
table.data tfoot td { border-top: 1px solid rgba(255,255,255,0.1); font-weight: 600; }
.bar-cell { direction: ltr; }
.bar { height: 8px; background: rgba(255,255,255,0.06); border-radius: 99px; overflow: hidden; }
.bar span { display: block; height: 100%; border-radius: 99px;
  background: var(--grad); min-width: 2px; }

::-webkit-scrollbar { height: 8px; width: 8px; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 8px; }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- کارت مدل‌ها ---------- */
.models-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.model-card { padding: 16px 16px 14px; display: flex; flex-direction: column; gap: 8px; transition: transform 0.15s, border-color 0.15s; }
.model-card:hover { transform: translateY(-3px); border-color: var(--border-2); }
.model-card .mtitle { font-weight: 700; font-size: 13.5px; display: flex; align-items: center; gap: 6px; }
.model-card .mid { font-family: var(--mono); direction: ltr; font-size: 11px; color: var(--aqua); text-align: left; word-break: break-all; cursor: pointer; }
.model-card .mid:hover { text-decoration: underline; }
.model-card .mdesc { color: var(--muted-2); font-size: 11.5px; line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 38px; }
.model-card .mtags { display: flex; gap: 5px; flex-wrap: wrap; }
.mtag { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.mtag svg { width: 11.5px; height: 11.5px; flex: none; opacity: 0.95; }
.mtag.ctx { background: rgba(67,224,208,0.08); color: var(--aqua); font-weight: 600; }
.mtag.rec { background: rgba(67,224,208,0.14); color: var(--aqua); font-weight: 600; }
.mtag.rec svg { width: 10.5px; height: 10.5px; }

/* ردیف قیمت کارت مدل — خوانا و جدا از برچسب‌ها */
.mprice {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin-top: 11px; padding-top: 11px; border-top: 1px dashed var(--border);
  font-size: 11.5px; color: var(--muted); direction: rtl;
}
.mprice .mp b {
  color: var(--text); font-family: var(--mono); font-size: 12.5px; font-weight: 700;
  direction: ltr; display: inline-block; margin-inline-start: 3px;
}
.mprice .mp:first-child b { color: var(--accent-2); }
.mprice .mp-unit { margin-inline-start: auto; font-size: 10px; color: var(--muted-2); }
.mprice.free { justify-content: center; color: var(--aqua); font-weight: 700; font-size: 12.5px; }
.model-card .muse { margin-top: auto; align-self: flex-start; }
.chip.mfilter { cursor: pointer; background: var(--surface); border: 1px solid var(--border); font-family: var(--font); }
.chip.mfilter.active { border-color: var(--accent-1); color: var(--accent-2); background: var(--accent-soft); }

/* دکمه کپی دستور در ترمینال لندینگ */
.term-bar { position: relative; }
.term-copy {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.08); color: var(--muted); border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px; font: inherit; font-size: 11.5px; padding: 3px 10px; cursor: pointer;
  transition: all .18s;
}
.term-copy:hover { color: #fff; background: rgba(255,255,255,0.16); }

/* ---------- راهنمای اتصال و حافظه ---------- */
.guide ul, .guide ol { padding-inline-start: 22px; margin: 10px 0; display: grid; gap: 8px; }
.guide li { color: var(--text); font-size: 13.5px; line-height: 2; }
.guide p { font-size: 13.5px; line-height: 2.1; color: var(--text); }
.guide-field { display: grid; gap: 6px; margin-bottom: 14px; }
.glabel { color: var(--muted); font-size: 12.5px; }
.ghint { color: var(--muted); font-size: 13px; margin-bottom: 10px; line-height: 2; }
details { border: 1px solid var(--border); border-radius: 12px; padding: 0; margin-bottom: 10px; background: rgba(255,255,255,0.015); }
details summary { cursor: pointer; padding: 12px 16px; font-size: 13.5px; font-weight: 600; list-style: none; position: relative; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; position: absolute; inset-inline-start: auto; inset-inline-end: 14px; color: var(--accent-1); font-weight: 700; }
details[open] summary::after { content: "−"; }
details p { padding: 0 16px 14px; margin: 0; color: var(--muted); font-size: 13px; line-height: 2.1; }
table.data td.mem-content { white-space: normal; word-break: break-word; line-height: 1.9; }
