/* ============================================================================
   سیستم طراحی کیمدی — «Cyber-Sport»
   ----------------------------------------------------------------------------
   چرا این تغییر: مخاطب اصلی سامانه نوجوان و کلکسیونر است. پژوهش رفتاریِ پیوست
   نشان می‌داد ظاهر قبلی (روشن، اداری، متن‌محور) با انتظار این گروه هم‌خوان نیست.
   این فایل «لایه‌ی توکن‌ها و کامپوننت‌های مشترک» است و قبل از بقیه‌ی CSSها لود می‌شود.
   نام کلاس‌های قبلی عمداً حفظ شده تا هیچ قالبی نشکند.
   ============================================================================ */

/* ---------- توکن‌های رنگ: حالت تیره (پیش‌فرض برای این مخاطب) ---------- */
:root,
:root[data-theme='dark'] {
  --bg:            #0B0E14;   /* Deep Space */
  --bg-soft:       #11151F;
  --panel:         #161B26;   /* Surface */
  --card:          #161B26;
  --border:        #232A3A;
  --border-strong: #313B52;

  --text:          #E8ECF5;
  --text-dim:      #97A1B8;

  --primary:       #7C3AED;   /* بنفش نئونی — اکشن اصلی */
  --primary-soft:  rgba(124, 58, 237, .16);
  --primary-glow:  rgba(124, 58, 237, .45);

  --accent:        #FACC15;   /* زرد کیمدی — تأکید و کارت‌های ویژه */
  --accent-soft:   rgba(250, 204, 21, .14);

  /* رنگ آماری کارت‌ها */
  --stat-attack:   #F43F5E;   /* زرشکی نئونی */
  --stat-defence:  #22D3EE;   /* فیروزه‌ای نئونی */
  --stat-control:  #A78BFA;
  --stat-overall:  #FACC15;

  --ok:            #22C55E;
  --warn:          #F59E0B;
  --danger:        #EF4444;
  --info:          #38BDF8;

  /* سازگاری با نام‌های قدیمی که در قالب‌ها استفاده شده‌اند */
  --orange:        var(--primary);
  --orange-dark:   #A78BFA;
  --orange-soft:   var(--primary-soft);
  --green:         var(--ok);
  --green-dark:    #16A34A;
  --gold:          var(--accent);
  --gold-soft:     var(--accent-soft);
  --blue:          var(--info);
  --pink:          #F472B6;

  --radius:        16px;
  --radius-sm:     10px;
  --radius-lg:     24px;
  --shadow-card:   0 10px 30px rgba(0, 0, 0, .45);
  --shadow-btn:    0 6px 18px rgba(124, 58, 237, .35);
  --shadow-glow:   0 0 0 1px rgba(124, 58, 237, .35), 0 0 28px rgba(124, 58, 237, .22);

  --font: 'Vazirmatn', 'Yekan Bakh', 'Pinar', Tahoma, system-ui, sans-serif;
}

/* ---------- حالت روشن (برای کسانی که ترجیح می‌دهند) ---------- */
:root[data-theme='light'] {
  --bg:            #F6F7FB;
  --bg-soft:       #FFFFFF;
  --panel:         #FFFFFF;
  --card:          #FFFFFF;
  --border:        #E3E7F0;
  --border-strong: #C9D0E0;

  --text:          #131824;
  --text-dim:      #5A6480;

  --primary:       #6D28D9;
  --primary-soft:  rgba(109, 40, 217, .10);
  --primary-glow:  rgba(109, 40, 217, .28);

  --accent:        #CA8A04;
  --accent-soft:   rgba(202, 138, 4, .12);

  --orange-dark:   #6D28D9;
  --shadow-card:   0 8px 24px rgba(19, 24, 36, .08);
  --shadow-btn:    0 5px 14px rgba(109, 40, 217, .25);
  --shadow-glow:   0 0 0 1px rgba(109, 40, 217, .18), 0 0 20px rgba(109, 40, 217, .12);
}

/* ---------- پایه ---------- */
* { box-sizing: border-box; }

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

/* پس‌زمینه‌ی «کهکشانی» ملایم — بدون تصویر، فقط گرادیان، پس هزینه‌ی بارگذاری ندارد */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(124, 58, 237, .18), transparent 60%),
    radial-gradient(700px 420px at 5% 5%, rgba(34, 211, 238, .10), transparent 60%),
    radial-gradient(600px 600px at 50% 110%, rgba(250, 204, 21, .07), transparent 60%);
}

a { color: var(--orange-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { line-height: 1.5; letter-spacing: -.01em; }

::selection { background: var(--primary-soft); color: var(--text); }

/* ---------- دکمه‌ها ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--primary), #9333EA);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 12px 22px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: var(--shadow-btn);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.08); text-decoration: none; }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn.block { width: 100%; }
.btn.big { padding: 16px 34px; font-size: 16px; border-radius: 14px; }
.btn.ghost {
  background: transparent;
  border: 1.5px solid var(--border-strong);
  color: var(--text);
  box-shadow: none;
}
.btn.ghost:hover { border-color: var(--primary); background: var(--primary-soft); }
.btn.accent { background: linear-gradient(135deg, var(--accent), #EAB308); color: #1A1300; }
.btn.danger { background: linear-gradient(135deg, var(--danger), #DC2626); box-shadow: 0 6px 18px rgba(239, 68, 68, .3); }
.btn.sm { padding: 8px 14px; font-size: 12px; border-radius: 8px; }

/* ---------- کارت‌ها و جعبه‌ها ---------- */
.card-box, .login-box, .result-box, .progress-box {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-card);
}

.container { max-width: 1180px; margin: 0 auto; padding: 20px; }

.subtitle { color: var(--text-dim); font-size: 13px; margin: 4px 0 0; }
.hint { color: var(--text-dim); font-size: 12px; }

.empty {
  text-align: center;
  padding: 48px 20px;
  color: var(--text-dim);
  background: var(--panel);
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--radius);
}

/* ---------- پیام‌ها ---------- */
.alert {
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 14px;
  border: 1px solid transparent;
}
.alert.error   { background: rgba(239, 68, 68, .12);  border-color: rgba(239, 68, 68, .35);  color: #FCA5A5; }
.alert.warn    { background: rgba(245, 158, 11, .12); border-color: rgba(245, 158, 11, .35); color: #FCD34D; }
.alert.success,
.alert.ok      { background: rgba(34, 197, 94, .12);  border-color: rgba(34, 197, 94, .35);  color: #86EFAC; }
.alert.info    { background: rgba(56, 189, 248, .12); border-color: rgba(56, 189, 248, .35); color: #7DD3FC; }
:root[data-theme='light'] .alert.error   { color: #B91C1C; }
:root[data-theme='light'] .alert.warn    { color: #B45309; }
:root[data-theme='light'] .alert.success,
:root[data-theme='light'] .alert.ok      { color: #15803D; }
:root[data-theme='light'] .alert.info    { color: #0369A1; }

/* ---------- فرم‌ها ---------- */
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dim);
  margin-bottom: 7px;
}
.form-group input, .form-group select, .form-group textarea,
input[type='text'], input[type='password'], input[type='number'], input[type='tel'], select, textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  color: var(--text);
  border: 1.5px solid var(--border);
  font-family: inherit;
  font-size: 14px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}
input[type='file'] { padding: 10px; }
/* رادیو و چک‌باکس: اندازه‌ی طبیعی، نه عرض ۱۰۰٪ و کادر فیلدهای متنی */
.form-group input[type='radio'],
.form-group input[type='checkbox'],
.option-card input[type='radio'],
.option-card input[type='checkbox'] {
  width: auto;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  accent-color: var(--primary);
}
.option-card input:focus { box-shadow: none; }
.option-card:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }

/* پر‌کردن خودکار مرورگر (autofill) نباید فیلد را سفید/آبی روشن کند */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
select:-webkit-autofill,
textarea:-webkit-autofill {
  -webkit-text-fill-color: var(--text);
  caret-color: var(--text);
  box-shadow: 0 0 0 1000px var(--bg-soft) inset;
  transition: background-color 9999s ease-out 0s;
}

/* فیلد مبلغ: بدون فلش‌های ریز number؛ زیرش مبلغ با جداکننده‌ی هزارگان نشان داده می‌شود (money-input.js) */
input[data-money] { -moz-appearance: textfield; appearance: textfield; font-variant-numeric: tabular-nums; }
input[data-money]::-webkit-outer-spin-button,
input[data-money]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.money-hint { color: var(--accent); font-size: 12px; font-weight: 700; min-height: 18px; margin-top: 4px; }

/* ورودی فایل: دکمه و متن هم‌رنگ تم (متن پیش‌فرض مرورگر با file-input.js فارسی/انگلیسی می‌شود) */
input[type='file']::file-selector-button {
  font-family: inherit;
  background: var(--primary-soft);
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 6px 12px;
  cursor: pointer;
}
.file-pick { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.file-pick input[type='file'] { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.file-pick .file-name { color: var(--text-dim); font-size: 13px; word-break: break-all; }

/* ---------- مودال تأیید (جایگزین window.confirm) ---------- */
.kt-confirm-backdrop {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(5, 7, 11, .62);
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.kt-confirm {
  background: var(--panel); color: var(--text);
  border: 1px solid var(--border-strong); border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  width: 100%; max-width: 380px; padding: 22px;
}
.kt-confirm p { margin: 0 0 18px; font-size: 15px; font-weight: 700; line-height: 1.9; }
.kt-confirm-actions { display: flex; gap: 10px; justify-content: flex-end; }
.kt-confirm-actions .btn { min-width: 96px; text-align: center; }

.form-check input { width: auto; }

/* ---------- لوگو ---------- */
/* لوگوی «Kimdi Trade» — نه حرفِ جدا از هم با فاصله‌ی یکسان.
   حروف با inline-block از هم جدا می‌مانند (به هم نمی‌چسبند) و gap فاصله‌ی
   یکنواخت بین همه‌ی آن‌ها را می‌سازد؛ هیچ حرفی فاصله‌ی ویژه ندارد. */
.kimdi-logo {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  font-size: 34px;
  font-weight: 900;
  letter-spacing: 0;
  direction: ltr;
  unicode-bidi: isolate;
  white-space: nowrap;
}
.kimdi-logo span { display: inline-block; }
.kimdi-logo .k6 { margin-inline-start: 7px; }
.kimdi-logo .k1 { color: #F43F5E; }
.kimdi-logo .k2 { color: #FB923C; }
.kimdi-logo .k3 { color: var(--accent); }
.kimdi-logo .k4 { color: #22D3EE; }
.kimdi-logo .k5 { color: var(--primary); }
.kimdi-logo .k6 { color: #A78BFA; }
.kimdi-logo .k7 { color: #22C55E; }
.kimdi-logo .k8 { color: #38BDF8; }
.kimdi-logo .k9 { color: #F472B6; }
.kimdi-logo .k10 { color: var(--orange); }

/* روی نمایشگرهای باریک، لوگوی ۹ حرفی نباید از عرض صفحه بزند */
@media (max-width: 480px) {
  .kimdi-logo { font-size: 26px; gap: 4px; }
}
@media (max-width: 360px) {
  .kimdi-logo { font-size: 22px; gap: 3px; }
}

/* ============================================================================
   کارت بازیکن — افکت سه‌بعدی و هولوگرافیک
   با حرکت موس یا چرخش گوشی، براقیت متالیک روی کارت حرکت می‌کند.
   کل افکت با CSS و چند خط جاوااسکریپت انجام می‌شود (بدون کتابخانه‌ی خارجی).
   ============================================================================ */
.ticket-wrap { position: relative; perspective: 1000px; }

.ticket {
  display: block;
  position: relative;
  background: linear-gradient(160deg, var(--panel), var(--bg-soft));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  transform-style: preserve-3d;
  color: inherit;
}
.ticket:hover { border-color: var(--primary); box-shadow: var(--shadow-glow); text-decoration: none; }

/* براقیت هولوگرافیک: موقعیتش را جاوااسکریپت با متغیرهای --mx/--my تنظیم می‌کند */
.ticket::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity .2s ease;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%),
    rgba(255, 255, 255, .22), rgba(124, 58, 237, .12) 35%, transparent 65%);
}
.ticket.is-tilting::after { opacity: 1; }

/* کارت‌های کمیاب یک نوار رنگین‌کمانیِ متحرک می‌گیرند */
.ticket[data-rarity='legendary']::before,
.ticket[data-rarity='epic']::before {
  content: '';
  position: absolute;
  inset: -2px;
  z-index: 0;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(115deg, #FACC15, #F43F5E, #7C3AED, #22D3EE, #FACC15);
  background-size: 300% 300%;
  animation: holo-shift 6s linear infinite;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
}
@keyframes holo-shift {
  0%   { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}
@media (prefers-reduced-motion: reduce) {
  .ticket[data-rarity]::before { animation: none; }
  .ticket { transition: none; }
}

.ticket-image {
  height: 190px;
  background: var(--bg-soft) center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 52px;
  position: relative;
}
.ticket-body { padding: 14px 16px 10px; position: relative; }
.ticket-title { font-weight: 800; font-size: 15px; margin-bottom: 6px; }
.ticket-desc { font-size: 12px; color: var(--text-dim); margin-bottom: 10px; }

.ticket-perf { height: 1px; background: var(--border); margin: 0 16px; }

.ticket-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px 16px;
  position: relative;
}
.price { font-weight: 900; font-size: 15px; color: var(--accent); }
.stock { font-size: 12px; color: var(--text-dim); }

/* نوار امتیازها روی کارت */
.stat-strip { display: flex; gap: 6px; margin-top: 8px; }
.stat-chip {
  flex: 1;
  text-align: center;
  border-radius: 8px;
  padding: 5px 2px;
  font-size: 10px;
  font-weight: 800;
  background: var(--bg-soft);
  border: 1px solid var(--border);
}
.stat-chip b { display: block; font-size: 14px; line-height: 1.3; }
.stat-chip.atk b { color: var(--stat-attack); }
.stat-chip.def b { color: var(--stat-defence); }
.stat-chip.ctr b { color: var(--stat-control); }
.stat-chip.ovr b { color: var(--stat-overall); }

/* امتیاز کل، بزرگ و درشت روی گوشه‌ی تصویر */
.overall-badge {
  position: absolute;
  top: 10px;
  inset-inline-start: 10px;
  background: rgba(11, 14, 20, .82);
  backdrop-filter: blur(6px);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 4px 10px;
  font-size: 20px;
  font-weight: 900;
  color: var(--accent);
  line-height: 1.2;
}
.overall-badge small { display: block; font-size: 9px; color: var(--text-dim); font-weight: 700; }

/* ---------- نشان‌ها ---------- */
.badge, .badge-card-model, .mode-tag, .rarity-badge, .condition-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 20px;
  line-height: 1.9;
}
.badge-card-model { color: #101010; }
.mode-tag { background: rgba(34, 197, 94, .16); color: #4ADE80; margin-inline-start: 6px; }
.mode-tag.barter { background: var(--primary-soft); color: #C4B5FD; }

.rarity-badge {
  position: absolute;
  top: 10px;
  inset-inline-end: 10px;
  background: rgba(11, 14, 20, .82);
  backdrop-filter: blur(6px);
  border: 1px solid currentColor;
}
.condition-badge { border: 1px solid currentColor; background: transparent; }

/* ---------- شبکه‌ی کارت‌ها ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 18px;
}

/* ---------- تب‌های فیلتر بازار (اسکرول افقی روی موبایل) ---------- */
.market-tabs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 2px 12px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.market-tabs::-webkit-scrollbar { display: none; }
.market-tab {
  flex: 0 0 auto;
  background: var(--panel);
  border: 1.5px solid var(--border);
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dim);
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: all .15s ease;
}
.market-tab:hover { border-color: var(--border-strong); color: var(--text); text-decoration: none; }
.market-tab.active {
  background: linear-gradient(135deg, var(--primary), #9333EA);
  border-color: transparent;
  color: #fff;
  box-shadow: var(--shadow-btn);
}

/* ---------- جستجوی لحظه‌ای ---------- */
.search-bar { position: relative; margin-bottom: 8px; }
.search-bar input {
  padding-inline-start: 44px;
  border-radius: 999px;
  height: 48px;
}
.search-bar .search-icon {
  position: absolute;
  inset-inline-start: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  font-size: 16px;
  pointer-events: none;
}
.search-status { font-size: 12px; color: var(--text-dim); min-height: 20px; }

/* ---------- نوار پیشرفت تکمیل آلبوم ---------- */
.progress-bar-track {
  height: 12px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--info), var(--accent));
  background-size: 200% 100%;
  animation: progress-shine 3s linear infinite;
  transition: width .5s ease;
}
@keyframes progress-shine { to { background-position: 200% 0; } }
@media (prefers-reduced-motion: reduce) { .progress-bar-fill { animation: none; } }

.completion-hero {
  background: linear-gradient(135deg, var(--primary-soft), transparent 70%), var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 20px;
}
.completion-hero .pct { font-size: 34px; font-weight: 900; color: var(--accent); line-height: 1.2; }

.team-progress-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.team-progress {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}
.team-progress .row { display: flex; justify-content: space-between; font-size: 12px; font-weight: 700; margin-bottom: 8px; }

/* ---------- آلبوم دیجیتال (Binder) ---------- */
.binder-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
}
.binder-slot {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-sm);
  border: 1.5px dashed var(--border-strong);
  background: var(--bg-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  padding: 10px;
  overflow: hidden;
}
.binder-slot.owned {
  border-style: solid;
  border-color: var(--border);
  background: var(--panel) center / cover no-repeat;
}
/* کارت‌های نداشته: سایه‌ی خاکستری با قفل — همان حس دفترچه‌ی کلکسیون فیزیکی */
.binder-slot.missing .silhouette {
  filter: grayscale(1) brightness(.35) contrast(.8);
  position: absolute;
  inset: 0;
  background: center / cover no-repeat;
  opacity: .55;
}
.binder-slot.missing .lock { position: relative; font-size: 24px; opacity: .8; }
.binder-slot .slot-name {
  position: relative;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-dim);
  line-height: 1.5;
}
.binder-slot .slot-actions {
  position: absolute;
  inset: auto 0 0 0;
  padding: 8px;
  background: linear-gradient(transparent, rgba(11, 14, 20, .92));
  opacity: 0;
  transition: opacity .18s ease;
}
.binder-slot:hover .slot-actions, .binder-slot:focus-within .slot-actions { opacity: 1; }

/* ---------- میز معاوضه (Barter Desk) ---------- */
.barter-desk {
  display: grid;
  grid-template-columns: 1fr 190px 1fr;
  gap: 16px;
  align-items: start;
}
@media (max-width: 860px) {
  .barter-desk { grid-template-columns: 1fr; }
}
.desk-column {
  background: var(--panel);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  min-height: 220px;
}
.desk-column.dropzone.drag-over { border-color: var(--primary); background: var(--primary-soft); }
.desk-column h4 { margin: 0 0 12px; font-size: 13px; color: var(--text-dim); }

.desk-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  margin-bottom: 8px;
  cursor: grab;
  transition: border-color .15s ease, transform .15s ease;
}
.desk-card:hover { border-color: var(--primary); transform: translateX(-2px); }
.desk-card.dragging { opacity: .45; }
.desk-card .thumb-sm {
  width: 38px;
  height: 50px;
  border-radius: 6px;
  background: var(--panel) center / cover no-repeat;
  flex: 0 0 auto;
}
.desk-card .meta { flex: 1; min-width: 0; }
.desk-card .meta .nm { font-size: 12px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.desk-card .meta .sub { font-size: 10px; color: var(--text-dim); }
.desk-card input[type='number'] { width: 58px; padding: 5px; font-size: 12px; }

/* نشانگر تعادل ارزش */
.fair-meter { text-align: center; padding: 16px 10px; }
.fair-gauge {
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--danger), var(--warn), var(--ok), var(--warn), var(--danger));
  position: relative;
  margin: 14px 0 10px;
}
.fair-needle {
  position: absolute;
  top: -6px;
  width: 4px;
  height: 22px;
  border-radius: 2px;
  background: var(--text);
  box-shadow: 0 0 8px var(--primary-glow);
  transition: inset-inline-start .35s ease;
}
.fair-label { font-size: 13px; font-weight: 800; }
.fair-label.fair          { color: var(--ok); }
.fair-label.slightly-low,
.fair-label.slightly-high { color: var(--warn); }
.fair-label.low,
.fair-label.high          { color: var(--danger); }
.fair-values { font-size: 11px; color: var(--text-dim); margin-top: 6px; }

/* ---------- چت: عبارت‌های آماده ---------- */
.quick-phrases { display: flex; gap: 6px; flex-wrap: wrap; padding: 8px 10px 0; }
.quick-phrase {
  background: var(--primary-soft);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 11px;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
}
.quick-phrase:hover { border-color: var(--primary); }

.escrow-note {
  background: rgba(245, 158, 11, .1);
  border: 1px solid rgba(245, 158, 11, .3);
  color: var(--warn);
  font-size: 14px;
  padding: 8px 12px;
  line-height: 1.7;
}
:root[data-theme='light'] .escrow-note {
  color: #92400E;
  background: rgba(180, 83, 9, .08);
  border-color: rgba(180, 83, 9, .32);
}
:root[data-theme='light'] .escrow-note a { color: #78350F; text-decoration: underline; }
.purchase-submit { min-height: 48px; }

/* ---------- صفحه‌ی ساده (خطاها، محدودیت نرخ) ---------- */
.page-plain { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 20px; }
.plain-box {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  text-align: center;
  max-width: 460px;
  box-shadow: var(--shadow-card);
}

/* ---------- ابزارهای کمکی ---------- */
.stack { display: flex; flex-direction: column; gap: 12px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.muted { color: var(--text-dim); }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ============================================================================
   خوانایی متن روی تصویر پس‌زمینه‌ی دلخواه ادمین
   ----------------------------------------------------------------------------
   مسئله: وقتی ادمین یک عکس دلخواه به‌عنوان پس‌زمینه می‌گذارد، متن‌ها و نام گزینه‌ها
   ممکن است روی آن گم شوند — متن تیره روی عکس تیره، یا متن روشن روی عکس روشن.
   نمی‌شود فرض کرد عکس بعدی چه رنگی است، پس نمی‌توان رنگ‌ها را دستی تنظیم کرد.

   راه‌حل سه‌لایه:
     ۱) «پرده» (scrim): یک لایه از رنگِ پس‌زمینه‌ی خودِ تم روی عکس کشیده می‌شود.
        چون رنگِ پرده همان رنگی است که همه‌ی متن‌های سایت برای آن طراحی شده‌اند،
        کنتراست به‌صورت خودکار در همه‌ی صفحات تضمین می‌شود. غلظت پرده را ادمین
        تنظیم می‌کند و مقدار پیشنهادی از روی شلوغیِ خودِ عکس محاسبه می‌شود.
     ۲) «هاله» (halo): متن‌هایی که مستقیماً روی پس‌زمینه می‌نشینند (تیترها، لینک‌های
        سربرگ) یک سایه‌ی هم‌رنگِ پس‌زمینه می‌گیرند. حتی اگر پرده را خیلی رقیق کنند،
        این هاله لبه‌ی حروف را از عکس جدا نگه می‌دارد.
     ۳) «پررنگ‌سازی»: متن‌های کم‌رنگِ کمکی نزدیک‌تر به رنگ متن اصلی می‌شوند، مرزها
        ضخیم‌تر و کارت‌ها کاملاً کدر می‌شوند تا هیچ متنی کم‌رنگ نماند.
   ============================================================================ */

/* ---------- لایه‌ی ۱: پرده روی تصویر ---------- */
/* body::before از قبل برای گرادیان کهکشانی استفاده می‌شود؛ اینجا وقتی تصویر
   پس‌زمینه فعال است، همان لایه به پرده‌ی کدرکننده تبدیل می‌شود. */
body[data-bg-image='1']::before {
  background:
    linear-gradient(var(--bg-scrim-color), var(--bg-scrim-color)),
    radial-gradient(900px 500px at 85% -10%, rgba(124, 58, 237, .10), transparent 60%);
}

body[data-bg-image='1'] {
  /* رنگ پرده = رنگ پس‌زمینه‌ی تم، با غلظتی که ادمین تعیین کرده */
  --bg-scrim-color: rgba(11, 14, 20, var(--bg-scrim, .75));
  /* لایه‌ی ۳: متن کمکی پررنگ‌تر و مرزها واضح‌تر */
  --text-dim: #C2CBDC;
  --border: #37415A;
  --border-strong: #4A5670;
}
:root[data-theme='light'] body[data-bg-image='1'],
body[data-bg-image='1']:where(:root[data-theme='light'] *) {
  --bg-scrim-color: rgba(246, 247, 251, var(--bg-scrim, .75));
}
:root[data-theme='light'] body[data-bg-image='1'] {
  --bg-scrim-color: rgba(246, 247, 251, var(--bg-scrim, .75));
  --text-dim: #3F4A63;
  --border: #C3CAD8;
  --border-strong: #9AA4B8;
}

/* ---------- لایه‌ی ۲: هاله دور متن‌هایی که روی خودِ پس‌زمینه‌اند ---------- */
/* فقط متن‌های «آزاد» هاله می‌گیرند؛ متنِ داخل کارت‌ها پس‌زمینه‌ی کدر خودش را دارد. */
body[data-bg-image='1'] .header,
body[data-bg-image='1'] .hero,
body[data-bg-image='1'] > .container > h1,
body[data-bg-image='1'] > .container > h2,
body[data-bg-image='1'] > .container > h3,
body[data-bg-image='1'] .main > h1,
body[data-bg-image='1'] .main > h2,
body[data-bg-image='1'] .main > h3,
body[data-bg-image='1'] .main > p,
body[data-bg-image='1'] .container > .section-title {
  text-shadow:
    0 1px 2px var(--bg-halo),
    0 0 10px var(--bg-halo),
    0 0 22px var(--bg-halo);
}
body[data-bg-image='1'] { --bg-halo: rgba(6, 8, 13, .92); }
:root[data-theme='light'] body[data-bg-image='1'] { --bg-halo: rgba(255, 255, 255, .95); }

/* لوگو هم روی عکس شلوغ باید لبه‌ی مشخص داشته باشد */
body[data-bg-image='1'] .kimdi-logo span {
  text-shadow: 0 1px 3px var(--bg-halo), 0 0 12px var(--bg-halo);
}

/* ---------- لایه‌ی ۳: کدر و پررنگ‌کردن سطح‌ها ---------- */
/* هیچ کارت/جعبه‌ای نباید نیمه‌شفاف بماند، وگرنه عکس از پشتش می‌زند بیرون. */
body[data-bg-image='1'] .card-box,
body[data-bg-image='1'] .login-box,
body[data-bg-image='1'] .result-box,
body[data-bg-image='1'] .progress-box,
body[data-bg-image='1'] .ticket,
body[data-bg-image='1'] .sidebar,
body[data-bg-image='1'] .empty,
body[data-bg-image='1'] .completion-hero,
body[data-bg-image='1'] .team-progress,
body[data-bg-image='1'] .desk-column,
body[data-bg-image='1'] .binder-slot,
body[data-bg-image='1'] table {
  background-color: var(--panel);
  border-color: var(--border-strong);
  backdrop-filter: blur(2px);
}

/* نام گزینه‌ها (تب‌ها، دکمه‌ها، لینک‌های منو) باید کاملاً کدر و خوانا باشند */
body[data-bg-image='1'] .market-tab,
body[data-bg-image='1'] .quick-phrase,
body[data-bg-image='1'] .sidebar a {
  background-color: var(--panel);
  border-color: var(--border-strong);
  color: var(--text);
  font-weight: 700;
}
body[data-bg-image='1'] .market-tab.active,
body[data-bg-image='1'] .sidebar a.active {
  color: #fff;
}
body[data-bg-image='1'] .btn.ghost {
  background-color: var(--panel);
  border-color: var(--border-strong);
}

/* فیلدهای فرم روی عکس باید مرز واضح داشته باشند */
body[data-bg-image='1'] input,
body[data-bg-image='1'] select,
body[data-bg-image='1'] textarea {
  background-color: var(--bg-soft);
  border-color: var(--border-strong);
}

/* پیام‌ها روی عکس کم‌رنگ به‌نظر می‌رسند؛ اینجا کدرشان می‌کنیم */
body[data-bg-image='1'] .alert {
  background-color: var(--panel);
  border-width: 1.5px;
  font-weight: 700;
}

/* اگر ادمین پرده را خیلی رقیق کند (زیر ۴۵٪)، عکس غالب می‌شود؛
   در این حالت هاله را پررنگ‌تر می‌کنیم تا متن باز هم خوانا بماند. */
body[data-bg-image='1'][data-bg-contrast='high'] {
  --bg-halo: rgba(0, 0, 0, .98);
}
:root[data-theme='light'] body[data-bg-image='1'][data-bg-contrast='high'] {
  --bg-halo: rgba(255, 255, 255, 1);
}
body[data-bg-image='1'][data-bg-contrast='high'] .header,
body[data-bg-image='1'][data-bg-contrast='high'] .hero,
body[data-bg-image='1'][data-bg-contrast='high'] .main > h1 {
  text-shadow:
    0 1px 2px var(--bg-halo),
    0 0 8px var(--bg-halo),
    0 0 18px var(--bg-halo),
    0 0 30px var(--bg-halo);
}

/* ---------- صفحه‌ی فرآیند معامله ---------- */
.process-list { counter-reset: step; list-style: none; padding: 0; margin: 0 0 24px; }
.process-list li {
  counter-increment: step;
  position: relative;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 58px 14px 16px;
  margin-bottom: 10px;
  font-size: 14px;
}
.process-list li::before {
  content: counter(step);
  position: absolute;
  inset-inline-start: 14px;
  top: 14px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #9333EA);
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================================================================
   وضعیت «انتخاب‌شده» — یکدست برای همه‌ی گزینه‌های سایت
   ----------------------------------------------------------------------------
   قبلاً هر نوع گزینه ظاهر انتخابِ متفاوتی داشت: لینک منو فقط رنگش عوض می‌شد،
   تب بازار یک دکمه‌ی پر رنگ می‌شد، و رادیوباتن‌ها اصلاً نشانه‌ی بصری نداشتند.
   حالا هر گزینه‌ای که انتخاب می‌شود دقیقاً یک شکل می‌گیرد:

     ۱) قرصِ گِرد با پس‌زمینه‌ی تیره‌ی متمایز
     ۲) نوار تأکید رنگی روی لبه‌ی سمت شروع (راست در چیدمان فارسی)
     ۳) نامِ گزینه پررنگ و کاملاً خوانا (نه کم‌رنگ‌تر از حالت عادی)

   نکته‌ی مهم درباره‌ی نام: در حالت انتخاب، متن از var(--text) می‌گیرد نه از رنگ
   کم‌رنگِ حالت عادی — یعنی نام همیشه پررنگ‌تر از گزینه‌های انتخاب‌نشده است.
   ============================================================================ */

/* رنگ حالت انتخاب: سبز. تغییر رنگ در آینده فقط با ویرایش همین سه متغیر انجام می‌شود. */
:root {
  --select-bg:     rgba(34, 197, 94, .18);
  --select-edge:   #22C55E;
  --select-accent: #4ADE80;
}
:root[data-theme='light'] {
  --select-bg:     rgba(22, 163, 74, .12);
  --select-edge:   #16A34A;
  --select-accent: #22C55E;
}

/* شکل مشترک همه‌ی گزینه‌های انتخاب‌شده */
.sidebar a.active,
.market-tab.active,
.option-card:has(input:checked),
.is-selected {
  position: relative;
  background: var(--select-bg) !important;
  background-image: none !important;
  border: 1.5px solid var(--select-edge) !important;
  border-radius: 12px;
  color: var(--text) !important;
  font-weight: 800;
  box-shadow: none !important;
  overflow: hidden;
}

/* نوار تأکید روی لبه‌ی شروع (راست در فارسی) — با گوشه‌های گرد، نه بردر یک‌طرفه */
.sidebar a.active::before,
.market-tab.active::before,
.option-card:has(input:checked)::before,
.is-selected::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 62%;
  border-radius: 0 4px 4px 0;
  background: var(--select-accent);
}
[dir='rtl'] .sidebar a.active::before,
[dir='rtl'] .market-tab.active::before,
[dir='rtl'] .option-card:has(input:checked)::before,
[dir='rtl'] .is-selected::before {
  border-radius: 4px 0 0 4px;
}

/* لینک منوی کناری: جا برای نوار تأکید */
.sidebar a.active { padding-inline-start: 20px; }
.market-tab.active { padding-inline-start: 24px; }

/* گزینه‌های رادیویی/چک‌باکسی به‌شکل کارت انتخاب‌شدنی */
.option-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  position: relative;
  background: var(--bg-soft);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.option-card:hover { border-color: var(--border-strong); }
.option-card input { margin-top: 4px; flex: 0 0 auto; }
.option-card .option-name { font-weight: 700; display: block; }
.option-card:has(input:checked) { padding-inline-start: 22px; }
.option-card:has(input:checked) .option-name { color: var(--text); }

/* برای مرورگرهای قدیمی که :has را نمی‌شناسند، کلاس is-selected را جاوااسکریپت می‌گذارد */
.option-card.is-selected { padding-inline-start: 22px; }


/* ============================================================================
   نوار کناری (منو)
   ----------------------------------------------------------------------------
   رنگ‌ها از توکن‌های --sidebar-* می‌آیند و برای هر تم جدا تعریف شده‌اند: در تم تیره
   منو سیاه و در تم روشن روشن است. نوار سبزِ گزینه‌ی انتخاب‌شده (--select-*) در هر دو
   تم کنتراست کافی دارد. متغیرهای --text/--text-dim داخل منو بازتعریف می‌شوند تا
   همه‌ی کامپوننت‌های داخل آن (دکمه‌ی خروج و ...) خودکار هماهنگ بمانند.
   ============================================================================ */
:root {
  --sidebar-bg:     #05070B;
  --sidebar-border: #1A1F2B;
  --sidebar-edge:   #2C3444;
  --sidebar-text:   #F2F5FA;
  --sidebar-dim:    #98A2B6;
  --sidebar-hover:  rgba(255, 255, 255, .06);
}
:root[data-theme='light'] {
  --sidebar-bg:     #FFFFFF;
  --sidebar-border: #E3E7F0;
  --sidebar-edge:   #C9D0E0;
  --sidebar-text:   #131824;
  --sidebar-dim:    #5A6480;
  --sidebar-hover:  rgba(19, 24, 36, .05);
}
.sidebar {
  background: var(--sidebar-bg) !important;
  border-color: var(--sidebar-border) !important;
  --text: var(--sidebar-text);
  --text-dim: var(--sidebar-dim);
  --border: var(--sidebar-border);
  --border-strong: var(--sidebar-edge);
}
.sidebar h2 { color: var(--sidebar-text); }
.sidebar a { color: var(--sidebar-dim); }
.sidebar a:hover { background: var(--sidebar-hover); color: var(--sidebar-text); }
.sidebar a.active { color: var(--sidebar-text) !important; }
.sidebar .logout-btn { color: var(--sidebar-dim); border-color: var(--sidebar-edge); }
.sidebar .logout-btn:hover { color: var(--sidebar-text); border-color: var(--sidebar-dim); }

/* روی تصویر پس‌زمینه‌ی دلخواه هم منو باید کاملاً کدر بماند */
body[data-bg-image='1'] .sidebar {
  background-color: var(--sidebar-bg) !important;
  border-color: var(--sidebar-border) !important;
}
body[data-bg-image='1'] .sidebar a { background-color: transparent; border-color: transparent; }
body[data-bg-image='1'] .sidebar a.active {
  background: var(--select-bg) !important;
  border-color: var(--select-edge) !important;
}

/* ---------- دکمه‌های اصلی صفحه‌ی اول ----------
   هر دو دکمه (ثبت‌نام و ورود) باید دقیقاً هم‌اندازه باشند. چون متن‌ها طول متفاوتی
   دارند، عرض را با flex-basis برابر می‌کنیم نه با محتوا؛ وگرنه دکمه‌ی ثبت‌نام
   به‌خاطر متن بلندترش خیلی پهن‌تر می‌شد. */
.hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-cta .btn {
  flex: 0 1 280px;
  min-width: 220px;
  text-align: center;
}
@media (max-width: 560px) {
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { flex: 1 1 auto; min-width: 0; }
}

/* ---------- گزینه‌های صفحه‌ی ورود ---------- */
.login-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 4px 0 18px;
}
.login-options .form-check {
  gap: 8px;
  font-size: 13px;
  color: var(--text-dim);
  cursor: pointer;
}
.login-options .form-check input { width: auto; margin: 0; flex: 0 0 auto; }
.login-options .form-check:hover { color: var(--text); }

/* نشان شمارشی گزینه‌های منو حذف شد. قاعده‌ی چیدمانِ مخصوصش (flex + space-between)
   هم برداشته شد تا لینک‌های منو به چیدمان ساده‌ی خودشان برگردند. */

/* ---------- کارتابل و گردش‌کارها ---------- */
.task-group { margin-bottom: 22px; }
.task-group__head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.task-group__head h3 { margin: 0; font-size: 15px; }
.task-group__count {
  background: var(--select-bg);
  border: 1px solid var(--select-edge);
  color: var(--text);
  border-radius: 999px;
  padding: 1px 9px;
  font-size: 11px;
  font-weight: 800;
}
.task-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  margin-bottom: 7px;
  flex-wrap: wrap;
}
.task-row .age { font-size: 11px; color: var(--text-dim); }
.task-row .age.old { color: var(--warn); font-weight: 800; }

.wf-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-bottom: 10px;
}
.wf-card.is-stalled { border-color: var(--warn); }
.wf-steps { display: flex; gap: 4px; margin: 10px 0 8px; }
.wf-step { flex: 1; height: 6px; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--border); }
.wf-step.done { background: var(--select-accent); border-color: var(--select-accent); }

.notif-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  margin-bottom: 7px;
}
.notif-row.is-unread { border-color: var(--select-edge); background: var(--select-bg); }
.notif-row .ic { font-size: 18px; flex: 0 0 auto; }
.notif-row .meta { flex: 1; min-width: 0; }
.notif-row .meta b { font-size: 13px; }
.notif-row .meta small { display: block; color: var(--text-dim); font-size: 11px; margin-top: 2px; }
.notif-row .when { font-size: 11px; color: var(--text-dim); white-space: nowrap; }

/* ---------- کارت هشدار در صفحه‌ی «هشدارهای من» ---------- */
.alert-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-inline-start-width: 4px;
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 12px;
}
.alert-card.critical { border-inline-start-color: #F43F5E; }
.alert-card.warning  { border-inline-start-color: var(--warn); }

.alert-card__head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.alert-card__head h3 { margin: 0; font-size: 15px; }
.alert-card__level {
  font-size: 10px;
  font-weight: 900;
  padding: 2px 9px;
  border-radius: 999px;
  border: 1px solid currentColor;
}
.alert-card.critical .alert-card__level { color: #F43F5E; }
.alert-card.warning  .alert-card__level { color: var(--warn); }
.alert-card__count {
  font-size: 11px;
  font-weight: 800;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2px 9px;
}
.alert-card__detail { color: var(--text-dim); font-size: 13px; margin: 0 0 10px; line-height: 1.9; }
.alert-card__items { list-style: none; padding: 0; margin: 0 0 12px; }
.alert-card__items li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  background: var(--bg-soft);
  border-radius: 8px;
  padding: 7px 11px;
  margin-bottom: 5px;
  font-size: 12px;
}

/* ---------- کارت‌های راهنمای پیکربندی ---------- */
.setup-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 14px;
  scroll-margin-top: 20px;   /* تا با لینک #anchor زیر نوار بالا پنهان نشود */
}
.setup-card:target { border-color: var(--select-edge); box-shadow: var(--shadow-glow); }
.setup-card__head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.setup-card__head code { font-size: 14px; font-weight: 800; }
.setup-card__state { font-size: 11px; font-weight: 800; padding: 2px 10px; border-radius: 999px; border: 1px solid currentColor; }
.setup-card__state.ok  { color: var(--ok); }
.setup-card__state.bad { color: var(--danger); }
.setup-card p { font-size: 13px; line-height: 1.9; margin: 0 0 10px; }
.setup-card__value {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.setup-card code, .card-box code {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2px 7px;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 12px;
  direction: ltr;
  display: inline-block;
}
.setup-card code.copyable { user-select: all; cursor: text; font-weight: 700; }
.setup-steps { font-size: 13px; line-height: 2; padding-inline-start: 20px; margin: 0 0 10px; }
