/* =========================================================
   PersianSteam — Design System
   تم تیره گیمینگ، نئونی و پرانرژی؛ با رعایت کنتراست و دسترس‌پذیری
   ========================================================= */

:root {
  --bg: #06070d;
  --bg-2: #0a0c16;
  --surface: #0f1220;
  --surface-2: #151a2b;
  --surface-3: #1c2238;
  --border: rgba(148, 163, 255, .10);
  --border-2: rgba(148, 163, 255, .18);
  --text: #eef0fa;
  --text-2: #b8bdd6;
  --muted: #7f86a8;

  --cyan: #22e1ff;
  --violet: #8b5cf6;
  --pink: #ff3d8b;
  --green: #2ff5a0;
  --amber: #ffb547;
  --red: #ff5470;
  --steam: #66c0f4;

  --grad: linear-gradient(135deg, #8b5cf6 0%, #22e1ff 100%);
  --grad-hot: linear-gradient(135deg, #ff3d8b 0%, #8b5cf6 100%);
  --grad-gold: linear-gradient(135deg, #ffb547 0%, #ff3d8b 100%);
  --grad-text: linear-gradient(90deg, #22e1ff, #8b5cf6 45%, #ff3d8b);

  --r-sm: 10px;
  --r: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --shadow: 0 18px 50px -18px rgba(0, 0, 0, .75);
  --glow-cyan: 0 0 0 1px rgba(34, 225, 255, .35), 0 10px 40px -8px rgba(34, 225, 255, .45);
  --glow-violet: 0 0 0 1px rgba(139, 92, 246, .4), 0 10px 40px -8px rgba(139, 92, 246, .5);
  --font: 'Vazirmatn', 'Vazir', Tahoma, system-ui, sans-serif;
  --nav-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  font-size: 15px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(139, 92, 246, .22), transparent 60%),
    radial-gradient(700px 450px at 0% 10%, rgba(34, 225, 255, .14), transparent 60%),
    radial-gradient(600px 400px at 50% 110%, rgba(255, 61, 139, .10), transparent 60%),
    var(--bg);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(148, 163, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 255, .035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 75%);
}
main { flex: 1; }
img { max-width: 100%; display: block; }
a { color: var(--cyan); text-decoration: none; transition: color .15s; }
a:hover { color: #7deeff; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.35; font-weight: 800; letter-spacing: -.01em; }
h1 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
h2 { font-size: clamp(1.3rem, 2.4vw, 1.8rem); }
h3 { font-size: 1.12rem; }
p { margin: 0 0 1em; }
hr { border: 0; border-top: 1px solid var(--border); margin: 24px 0; }
::selection { background: rgba(139, 92, 246, .45); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; border-radius: 6px; }
.icon { flex-shrink: 0; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }

/* ---------- layout ---------- */
.container { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: 16px; }
.container-sm { max-width: 760px; }
.container-md { max-width: 980px; }
.section { padding-block: 56px; }
.section-sm { padding-block: 32px; }
.stack > * + * { margin-top: 16px; }
.flex { display: flex; align-items: center; gap: 12px; }
.flex-wrap { flex-wrap: wrap; }
.between { justify-content: space-between; }
.center { justify-content: center; text-align: center; }
.col { display: flex; flex-direction: column; gap: 12px; }
.grow { flex: 1; min-width: 0; }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-cards { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.sticky { position: sticky; top: calc(var(--nav-h) + 16px); }
.muted { color: var(--muted); }
.text-2 { color: var(--text-2); }
.small { font-size: .85rem; }
.tiny { font-size: .75rem; }
.bold { font-weight: 700; }
.ltr { direction: ltr; unicode-bidi: plaintext; text-align: left; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; direction: ltr; }
.mt-0 { margin-top: 0 !important; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 40px; }
.mb-0 { margin-bottom: 0 !important; } .mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.w-full { width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
.gradient-text { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; background-size: 200% auto; animation: shine 6s linear infinite; }
.hide { display: none !important; }

/* ---------- announcement + nav ---------- */
.announce { background: var(--grad-hot); color: #fff; text-align: center; font-size: .85rem; padding: 6px 16px; font-weight: 600; }
.nav {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-h);
  background: rgba(8, 10, 18, .72);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--border);
}
.nav .container { height: 100%; display: flex; align-items: center; gap: 20px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 900; font-size: 1.15rem; white-space: nowrap; }
.logo:hover { color: var(--text); }
.logo-mark {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  background: var(--grad); box-shadow: var(--glow-violet); position: relative; overflow: hidden;
}
.logo-mark::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%); transform: translateX(-120%); animation: sweep 4s ease-in-out infinite; }
.logo-mark svg { color: #fff; position: relative; z-index: 1; }
.logo small { display: block; font-size: .62rem; color: var(--muted); font-weight: 500; letter-spacing: .14em; margin-top: -4px; }
.nav-links { display: flex; gap: 4px; margin-inline-start: 8px; }
.nav-links a { color: var(--text-2); padding: 8px 14px; border-radius: 10px; font-weight: 600; font-size: .93rem; display: flex; align-items: center; gap: 6px; }
.nav-links a:hover, .nav-links a.is-active { color: var(--text); background: rgba(148, 163, 255, .08); }
.nav-actions { margin-inline-start: auto; display: flex; align-items: center; gap: 8px; }
.icon-btn {
  position: relative; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  color: var(--text-2); background: transparent; border: 1px solid var(--border); cursor: pointer; transition: all .15s;
}
.icon-btn:hover { color: var(--text); border-color: var(--border-2); background: var(--surface-2); }
.dot-badge {
  position: absolute; top: -5px; inset-inline-end: -5px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 99px;
  background: var(--pink); color: #fff; font-size: .68rem; font-weight: 800; display: grid; place-items: center;
  box-shadow: 0 0 0 3px var(--bg), 0 0 14px rgba(255, 61, 139, .7);
}
.wallet-chip { display: flex; align-items: center; gap: 8px; padding: 0 12px; height: 42px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text); font-weight: 700; font-size: .88rem; }
.wallet-chip:hover { color: var(--text); border-color: rgba(47, 245, 160, .4); }
.wallet-chip .icon { color: var(--green); }
.avatar {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-weight: 900; color: #fff; font-size: 1rem;
  background: linear-gradient(135deg, hsl(var(--h, 260) 80% 55%), hsl(calc(var(--h, 260) + 60) 85% 50%));
  text-transform: uppercase; flex-shrink: 0;
}
.avatar-lg { width: 72px; height: 72px; border-radius: 20px; font-size: 1.7rem; }
.avatar-sm { width: 32px; height: 32px; border-radius: 9px; font-size: .8rem; }
.dropdown { position: relative; }
.dropdown-menu {
  position: absolute; top: calc(100% + 10px); inset-inline-end: 0; min-width: 230px; padding: 8px;
  background: var(--surface); border: 1px solid var(--border-2); border-radius: var(--r); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: all .16s ease; z-index: 60;
}
.dropdown.open .dropdown-menu { opacity: 1; visibility: visible; transform: none; }
.dropdown-menu a, .dropdown-menu button {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; border-radius: 9px;
  color: var(--text-2); font: inherit; font-size: .92rem; background: none; border: 0; cursor: pointer; text-align: start;
}
.dropdown-menu a:hover, .dropdown-menu button:hover { background: var(--surface-2); color: var(--text); }
.dropdown-head { padding: 8px 12px 12px; border-bottom: 1px solid var(--border); margin-bottom: 6px; }
.menu-toggle { display: none; }
.mobile-drawer { display: none; }

/* ---------- buttons ---------- */
.btn {
  --btn-bg: var(--surface-2);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: 12px; border: 1px solid var(--border-2);
  background: var(--btn-bg); color: var(--text); font: inherit; font-weight: 700; font-size: .95rem;
  cursor: pointer; transition: transform .12s, box-shadow .2s, background .2s, border-color .2s; white-space: nowrap;
  position: relative; overflow: hidden; text-decoration: none;
}
.btn:hover { color: var(--text); border-color: rgba(148, 163, 255, .35); background: var(--surface-3); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--grad); border: 0; color: #fff; box-shadow: 0 8px 28px -8px rgba(139, 92, 246, .7); }
.btn-primary:hover { background: var(--grad); color: #fff; box-shadow: var(--glow-cyan); filter: brightness(1.08); }
.btn-primary::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%); transform: translateX(-120%); transition: transform .6s; }
.btn-primary:hover::after { transform: translateX(120%); }
.btn-hot { background: var(--grad-hot); border: 0; color: #fff; box-shadow: 0 8px 28px -8px rgba(255, 61, 139, .7); }
.btn-hot:hover { background: var(--grad-hot); color: #fff; filter: brightness(1.1); }
.btn-success { background: linear-gradient(135deg, #10b981, #2ff5a0); color: #04120c; border: 0; }
.btn-success:hover { background: linear-gradient(135deg, #10b981, #2ff5a0); color: #04120c; filter: brightness(1.08); }
.btn-danger { background: rgba(255, 84, 112, .12); color: #ff8ea1; border-color: rgba(255, 84, 112, .35); }
.btn-danger:hover { background: rgba(255, 84, 112, .2); color: #ffb3c0; border-color: rgba(255, 84, 112, .6); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.btn-ghost:hover { background: rgba(148, 163, 255, .08); border-color: transparent; }
.btn-outline { background: transparent; }
.btn-sm { height: 36px; padding: 0 14px; font-size: .85rem; border-radius: 10px; }
.btn-lg { height: 54px; padding: 0 28px; font-size: 1.05rem; border-radius: 14px; }
.btn-block { width: 100%; }
.btn.is-loading { color: transparent !important; pointer-events: none; }
.btn.is-loading::before { content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; animation: spin .7s linear infinite; }

/* ---------- cards ---------- */
.card { background: linear-gradient(180deg, rgba(21, 26, 43, .85), rgba(15, 18, 32, .9)); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 24px; position: relative; }
.card-sm { padding: 16px; border-radius: var(--r); }
.card-flat { background: var(--surface); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.card-head h2, .card-head h3 { margin: 0; }
.card-glow { transition: border-color .2s, box-shadow .25s, transform .2s; }
.card-glow:hover { border-color: rgba(34, 225, 255, .35); box-shadow: var(--glow-cyan); }
.card-accent::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: var(--grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.card-title { display: flex; align-items: center; gap: 10px; font-size: 1.05rem; font-weight: 800; margin-bottom: 14px; }
.card-title .icon { color: var(--cyan); }

/* ---------- badges / chips ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 99px; font-size: .76rem; font-weight: 700; background: rgba(148, 163, 255, .1); color: var(--text-2); border: 1px solid transparent; white-space: nowrap; }
.badge .icon { width: 13px; height: 13px; }
.badge-cyan { background: rgba(34, 225, 255, .1); color: var(--cyan); border-color: rgba(34, 225, 255, .25); }
.badge-violet { background: rgba(139, 92, 246, .14); color: #b9a0ff; border-color: rgba(139, 92, 246, .3); }
.badge-green { background: rgba(47, 245, 160, .1); color: var(--green); border-color: rgba(47, 245, 160, .25); }
.badge-amber { background: rgba(255, 181, 71, .1); color: var(--amber); border-color: rgba(255, 181, 71, .28); }
.badge-red { background: rgba(255, 84, 112, .12); color: #ff8ea1; border-color: rgba(255, 84, 112, .3); }
.badge-pink { background: rgba(255, 61, 139, .12); color: #ff7fb0; border-color: rgba(255, 61, 139, .3); }
.badge-steam { background: rgba(102, 192, 244, .12); color: var(--steam); border-color: rgba(102, 192, 244, .3); }
.chip { display: inline-flex; align-items: center; padding: 4px 11px; border-radius: 8px; font-size: .78rem; background: var(--surface-3); color: var(--text-2); border: 1px solid var(--border); white-space: nowrap; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }

/* status → badge colour */
.st-published, .st-completed, .st-paid { background: rgba(47, 245, 160, .1); color: var(--green); border-color: rgba(47, 245, 160, .25); }
.st-pending, .st-awaiting_seller, .st-securing, .st-pending_payment { background: rgba(255, 181, 71, .1); color: var(--amber); border-color: rgba(255, 181, 71, .28); }
.st-awaiting_fee, .st-needs_changes, .st-delivered { background: rgba(34, 225, 255, .1); color: var(--cyan); border-color: rgba(34, 225, 255, .25); }
.st-reserved, .st-sold { background: rgba(139, 92, 246, .14); color: #b9a0ff; border-color: rgba(139, 92, 246, .3); }
.st-rejected, .st-disputed, .st-cancelled, .st-refunded, .st-failed { background: rgba(255, 84, 112, .12); color: #ff8ea1; border-color: rgba(255, 84, 112, .3); }
.st-archived { background: rgba(148, 163, 255, .08); color: var(--muted); }

.risk { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: .82rem; padding: 3px 10px; border-radius: 8px; }
.risk-low { color: var(--green); background: rgba(47, 245, 160, .1); }
.risk-medium { color: var(--amber); background: rgba(255, 181, 71, .12); }
.risk-high { color: #ff8ea1; background: rgba(255, 84, 112, .14); animation: pulse-red 2s infinite; }
.risk-bar { height: 6px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.risk-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--green), var(--amber), var(--red)); background-size: 300px 100%; }

/* Steam-like level badges */
.lvl { --c: #9ca3af; display: inline-grid; place-items: center; min-width: 38px; height: 38px; padding: 0 6px; border-radius: 50%; border: 2.5px solid var(--c); color: var(--text); font-weight: 900; font-size: .85rem; background: rgba(6, 7, 13, .75); box-shadow: 0 0 14px -2px var(--c); backdrop-filter: blur(6px); }
.lvl.tier-1 { --c: #ef4444; } .lvl.tier-2 { --c: #f97316; } .lvl.tier-3 { --c: #facc15; } .lvl.tier-4 { --c: #4ade80; }
.lvl.tier-5 { --c: #38bdf8; } .lvl.tier-6 { --c: #a855f7; } .lvl.tier-7 { --c: #ec4899; } .lvl.tier-8 { --c: #b45309; } .lvl.tier-9 { --c: #e7d3a4; border-radius: 10px; }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.field > label, .label { font-weight: 700; font-size: .9rem; color: var(--text); }
.field .req { color: var(--pink); }
.input, .field input:not([type=checkbox]):not([type=radio]):not([type=file]), .field select, .field textarea, select.input, textarea.input {
  width: 100%; min-height: 46px; padding: 10px 14px; border-radius: 12px; font: inherit; font-size: .95rem;
  background: rgba(6, 8, 15, .7); color: var(--text); border: 1px solid var(--border-2); transition: border-color .15s, box-shadow .15s, background .15s;
}
.field textarea, textarea.input { min-height: 110px; resize: vertical; line-height: 1.8; }
.input:hover, .field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(148, 163, 255, .32); }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(34, 225, 255, .14); background: rgba(6, 8, 15, .95); }
.field input::placeholder, .field textarea::placeholder, .input::placeholder { color: #565d80; }
.field select, select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%237f86a8' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: left 14px center; padding-left: 36px; }
.field .help { font-size: .8rem; color: var(--muted); line-height: 1.6; }
.errors, .form-errors { color: #ff8ea1; font-size: .83rem; font-weight: 600; margin: 0; padding: 0; list-style: none; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: rgba(255, 84, 112, .6); }
.form-errors { background: rgba(255, 84, 112, .08); border: 1px solid rgba(255, 84, 112, .3); border-radius: 12px; padding: 12px 16px; margin-bottom: 18px; }
.form-errors li + li { margin-top: 4px; }
.check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: .9rem; color: var(--text-2); line-height: 1.7; }
.check input { appearance: none; width: 20px; height: 20px; margin-top: 3px; border-radius: 6px; border: 1.5px solid var(--border-2); background: rgba(6, 8, 15, .7); flex-shrink: 0; display: grid; place-items: center; cursor: pointer; transition: all .15s; }
.check input:checked { background: var(--grad); border-color: transparent; }
.check input:checked::after { content: ""; width: 10px; height: 6px; border: 2px solid #fff; border-top: 0; border-inline-end: 0; transform: rotate(-45deg) translate(1px, -1px); }
.check input:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.toggles { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.toggles.compact { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.toggle-card { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border); background: rgba(6, 8, 15, .5); cursor: pointer; font-size: .9rem; transition: border-color .15s, background .15s; }
.toggle-card:hover { border-color: var(--border-2); }
.toggle-card:has(input:checked) { border-color: rgba(34, 225, 255, .45); background: rgba(34, 225, 255, .06); }
.form-section { padding: 24px; border-radius: var(--r-lg); border: 1px solid var(--border); background: rgba(15, 18, 32, .6); margin-bottom: 20px; }
.form-section-head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.form-section-head .num { width: 34px; height: 34px; border-radius: 10px; background: var(--grad); display: grid; place-items: center; font-weight: 900; color: #fff; flex-shrink: 0; }
.form-section-head h2 { font-size: 1.1rem; margin: 0; }
.form-section-head p { margin: 0; font-size: .85rem; color: var(--muted); }
.input-addon { position: relative; }
.input-addon .addon { position: absolute; inset-inline-end: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: .85rem; pointer-events: none; }
.input-addon input { padding-inline-end: 64px !important; }
.dropzone { border: 2px dashed var(--border-2); border-radius: var(--r); padding: 28px; text-align: center; cursor: pointer; transition: all .2s; background: rgba(6, 8, 15, .4); }
.dropzone:hover, .dropzone.drag { border-color: var(--cyan); background: rgba(34, 225, 255, .05); }
.dropzone .icon { color: var(--cyan); margin-bottom: 8px; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; margin-top: 14px; }
.thumb { position: relative; aspect-ratio: 16/10; border-radius: 10px; overflow: hidden; border: 1px solid var(--border); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb label { position: absolute; inset: auto 6px 6px auto; background: rgba(6, 7, 13, .85); border-radius: 7px; padding: 2px 8px; font-size: .72rem; display: flex; gap: 4px; align-items: center; cursor: pointer; }
.thumb:has(input:checked) img { opacity: .25; filter: grayscale(1); }

/* ---------- alerts ---------- */
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--border-2); background: var(--surface-2); font-size: .9rem; line-height: 1.8; }
.alert .icon { margin-top: 3px; }
.alert-info { border-color: rgba(34, 225, 255, .3); background: rgba(34, 225, 255, .06); } .alert-info > .icon { color: var(--cyan); }
.alert-warning { border-color: rgba(255, 181, 71, .35); background: rgba(255, 181, 71, .07); } .alert-warning > .icon { color: var(--amber); }
.alert-danger { border-color: rgba(255, 84, 112, .35); background: rgba(255, 84, 112, .07); } .alert-danger > .icon { color: var(--red); }
.alert-success { border-color: rgba(47, 245, 160, .3); background: rgba(47, 245, 160, .06); } .alert-success > .icon { color: var(--green); }
.alert strong { color: var(--text); }

/* ---------- toasts ---------- */
.toasts { position: fixed; bottom: 20px; left: 20px; z-index: 100; display: flex; flex-direction: column; gap: 10px; max-width: min(380px, calc(100vw - 40px)); }
.toast { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: rgba(21, 26, 43, .96); border: 1px solid var(--border-2); box-shadow: var(--shadow); font-size: .9rem; animation: toast-in .35s cubic-bezier(.2, .9, .3, 1.2); backdrop-filter: blur(10px); }
.toast::before { content: ""; width: 4px; align-self: stretch; border-radius: 4px; background: var(--cyan); flex-shrink: 0; }
.toast.success::before { background: var(--green); } .toast.warning::before { background: var(--amber); } .toast.danger::before, .toast.error::before { background: var(--red); }
.toast .toast-body { flex: 1; }
.toast .toast-title { font-weight: 800; }
.toast button { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 0; }
.toast.out { animation: toast-out .25s forwards; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 72px 0 90px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2rem, 4.6vw, 3.6rem); line-height: 1.25; margin-bottom: 20px; font-weight: 900; }
.hero .lead { font-size: clamp(1rem, 1.6vw, 1.18rem); color: var(--text-2); max-width: 560px; margin-bottom: 30px; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 99px; background: rgba(139, 92, 246, .12); border: 1px solid rgba(139, 92, 246, .3); font-size: .85rem; font-weight: 700; color: #cbb8ff; margin-bottom: 22px; }
.hero-eyebrow .pill { background: var(--grad); color: #fff; padding: 2px 10px; border-radius: 99px; font-size: .75rem; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 32px; margin-top: 40px; flex-wrap: wrap; }
.hero-stats .num { font-size: 1.8rem; font-weight: 900; line-height: 1.2; }
.hero-stats .lbl { color: var(--muted); font-size: .85rem; }
.hero-floor { position: absolute; inset: auto -20% -10% -20%; height: 55%; z-index: -1; background-image: linear-gradient(rgba(34, 225, 255, .22) 1px, transparent 1px), linear-gradient(90deg, rgba(139, 92, 246, .22) 1px, transparent 1px); background-size: 60px 60px; transform: perspective(500px) rotateX(62deg); transform-origin: bottom; mask-image: linear-gradient(to top, #000 10%, transparent 85%); animation: grid-move 3s linear infinite; }
.orb { position: absolute; border-radius: 50%; filter: blur(70px); z-index: -1; opacity: .55; animation: float 9s ease-in-out infinite; }
.orb-1 { width: 380px; height: 380px; background: #8b5cf6; top: -80px; right: -60px; }
.orb-2 { width: 300px; height: 300px; background: #22e1ff; bottom: 0; left: 8%; animation-delay: -3s; opacity: .35; }
.showcase { position: relative; perspective: 1200px; }
.showcase-card { transform: rotateY(-14deg) rotateX(6deg); transition: transform .5s; animation: float 7s ease-in-out infinite; }
.showcase:hover .showcase-card { transform: rotateY(-4deg) rotateX(2deg); }
.showcase-float { position: absolute; padding: 10px 14px; border-radius: 14px; background: rgba(15, 18, 32, .92); border: 1px solid var(--border-2); box-shadow: var(--shadow); font-size: .82rem; display: flex; gap: 10px; align-items: center; backdrop-filter: blur(8px); z-index: 2; animation: float 6s ease-in-out infinite; }
.showcase-float .icon { color: var(--green); }
.sf-1 { top: -4%; left: 2%; animation-delay: -2s; }
.sf-2 { bottom: -6%; right: 4%; animation-delay: -4s; }
.sf-2 .icon { color: var(--amber); }

/* ---------- section headings ---------- */
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.sec-head h2 { margin: 0; display: flex; align-items: center; gap: 10px; }
.sec-head p { margin: 4px 0 0; color: var(--muted); }
.kicker { font-size: .8rem; font-weight: 800; letter-spacing: .12em; color: var(--cyan); text-transform: uppercase; }

/* ---------- platforms strip ---------- */
.platforms { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.platform { --pc: var(--cyan); display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: var(--r); border: 1px solid var(--border); background: rgba(15, 18, 32, .7); color: var(--text); transition: all .2s; }
.platform:hover { color: var(--text); border-color: var(--pc); box-shadow: 0 8px 30px -10px var(--pc); transform: translateY(-2px); }
.platform .p-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--pc) 16%, transparent); color: var(--pc); font-weight: 900; }
.platform .p-name { font-weight: 800; }
.platform .p-count { font-size: .78rem; color: var(--muted); }

/* ---------- listing card ---------- */
.l-card { display: flex; flex-direction: column; border-radius: var(--r-lg); overflow: hidden; background: var(--surface); border: 1px solid var(--border); color: var(--text); transition: transform .25s cubic-bezier(.2, .8, .3, 1), border-color .2s, box-shadow .25s; position: relative; }
.l-card:hover { color: var(--text); transform: translateY(-5px); border-color: rgba(139, 92, 246, .5); box-shadow: 0 20px 50px -18px rgba(139, 92, 246, .55); }
.l-cover { position: relative; aspect-ratio: 16/9; overflow: hidden; background: linear-gradient(135deg, #1b1240, #0b2a3a); }
.l-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.l-card:hover .l-cover img { transform: scale(1.06); }
.l-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(15, 18, 32, .95)); }
.l-cover .placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255, 255, 255, .25); }
.l-tags { position: absolute; top: 10px; inset-inline: 10px; display: flex; justify-content: space-between; align-items: flex-start; z-index: 2; }
.l-tags .badge { backdrop-filter: blur(8px); background: rgba(6, 7, 13, .7); }
.l-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; margin-top: -28px; position: relative; z-index: 2; }
.l-title { font-weight: 800; font-size: 1rem; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 3.2em; margin: 0; }
.l-specs { display: flex; gap: 14px; color: var(--muted); font-size: .8rem; flex-wrap: wrap; }
.l-specs span { display: flex; align-items: center; gap: 5px; }
.l-specs .icon { width: 15px; height: 15px; color: var(--violet); }
.l-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--border-2); }
.price { font-weight: 900; font-size: 1.15rem; }
.price small { font-size: .72rem; color: var(--muted); font-weight: 600; margin-inline-start: 3px; }
.verified { color: var(--green); display: flex; align-items: center; gap: 4px; font-size: .75rem; font-weight: 700; }

/* ---------- steps (how it works) ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: step; }
.step { position: relative; padding: 24px 20px; border-radius: var(--r-lg); background: rgba(15, 18, 32, .75); border: 1px solid var(--border); }
.step .s-icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 14px; background: rgba(139, 92, 246, .14); color: #c4b1ff; }
.step:nth-child(2) .s-icon { background: rgba(34, 225, 255, .12); color: var(--cyan); }
.step:nth-child(3) .s-icon { background: rgba(255, 181, 71, .12); color: var(--amber); }
.step:nth-child(4) .s-icon { background: rgba(47, 245, 160, .12); color: var(--green); }
.step::after { counter-increment: step; content: counter(step, persian); position: absolute; top: 16px; left: 20px; font-size: 2.6rem; font-weight: 900; color: rgba(148, 163, 255, .08); line-height: 1; }
.step h3 { margin-bottom: 6px; }
.step p { color: var(--muted); font-size: .9rem; margin: 0; }

.trust { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.trust-list { display: grid; gap: 12px; }
.trust-item { display: flex; gap: 14px; padding: 16px; border-radius: var(--r); background: rgba(15, 18, 32, .6); border: 1px solid var(--border); }
.trust-item .icon { color: var(--cyan); margin-top: 2px; }
.trust-item h4 { margin: 0 0 2px; font-size: .98rem; }
.trust-item p { margin: 0; font-size: .85rem; color: var(--muted); }
.cta-band { position: relative; overflow: hidden; border-radius: var(--r-xl); padding: 48px; background: linear-gradient(120deg, rgba(139, 92, 246, .35), rgba(34, 225, 255, .18)), var(--surface); border: 1px solid rgba(139, 92, 246, .35); text-align: center; }
.cta-band h2 { font-size: clamp(1.4rem, 3vw, 2.2rem); }

/* ---------- explore ---------- */
.explore { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 24px; align-items: start; }
.filters { position: sticky; top: calc(var(--nav-h) + 16px); }
.filters .field { margin-bottom: 14px; }
.filters .row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.sort-tabs { display: flex; gap: 4px; background: var(--surface); padding: 4px; border-radius: 12px; border: 1px solid var(--border); overflow-x: auto; max-width: 100%; }
.sort-tabs a { padding: 6px 12px; border-radius: 9px; color: var(--text-2); font-size: .85rem; font-weight: 600; white-space: nowrap; }
.sort-tabs a.is-active { background: var(--surface-3); color: var(--text); box-shadow: inset 0 0 0 1px var(--border-2); }
.filter-toggle { display: none; }
.search-big { position: relative; }
.search-big input { padding-inline-start: 44px !important; height: 50px; }
.search-big .icon { position: absolute; inset-inline-start: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }

/* ---------- listing detail ---------- */
.gallery-main { aspect-ratio: 16/9; border-radius: var(--r-lg); overflow: hidden; background: linear-gradient(135deg, #1b1240, #0b2a3a); border: 1px solid var(--border); position: relative; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; }
.gallery-thumbs button { width: 92px; aspect-ratio: 16/10; border-radius: 10px; overflow: hidden; border: 2px solid transparent; padding: 0; cursor: pointer; flex-shrink: 0; background: none; opacity: .6; transition: all .15s; }
.gallery-thumbs button.is-active, .gallery-thumbs button:hover { border-color: var(--cyan); opacity: 1; }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.specs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.spec { padding: 14px; border-radius: 14px; background: rgba(6, 8, 15, .5); border: 1px solid var(--border); }
.spec .k { font-size: .78rem; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.spec .k .icon { width: 15px; height: 15px; }
.spec .v { font-weight: 900; font-size: 1.15rem; margin-top: 2px; }
.spec.good .v { color: var(--green); } .spec.bad .v { color: #ff8ea1; }
.buy-box .price-big { font-size: 2rem; font-weight: 900; line-height: 1.2; }
.escrow-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.escrow-steps li { display: flex; gap: 10px; font-size: .86rem; color: var(--text-2); align-items: flex-start; }
.escrow-steps .icon { color: var(--green); margin-top: 3px; }
.seller-card { display: flex; gap: 14px; align-items: center; }
.stars { color: var(--amber); letter-spacing: 1px; }
.prose { color: var(--text-2); white-space: pre-line; line-height: 2; }

/* ---------- dashboard ---------- */
.dash { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 24px; align-items: start; padding-block: 28px 56px; }
.side-nav { position: sticky; top: calc(var(--nav-h) + 16px); background: rgba(15, 18, 32, .7); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 12px; }
.side-nav .who { display: flex; gap: 12px; align-items: center; padding: 8px 8px 16px; border-bottom: 1px solid var(--border); margin-bottom: 8px; }
.side-nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 11px; color: var(--text-2); font-weight: 600; font-size: .92rem; }
.side-nav a:hover { background: var(--surface-2); color: var(--text); }
.side-nav a.is-active { background: linear-gradient(90deg, rgba(139, 92, 246, .0), rgba(139, 92, 246, .22)); color: var(--text); box-shadow: inset -3px 0 0 var(--violet); }
.side-nav a .count { margin-inline-start: auto; font-size: .72rem; background: var(--pink); color: #fff; padding: 0 7px; border-radius: 99px; font-weight: 800; }
.side-nav .sep { height: 1px; background: var(--border); margin: 8px 0; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.kpi { padding: 18px; border-radius: var(--r-lg); background: rgba(15, 18, 32, .75); border: 1px solid var(--border); position: relative; overflow: hidden; color: var(--text); display: block; }
a.kpi:hover { color: var(--text); border-color: var(--border-2); }
.kpi .k { color: var(--muted); font-size: .82rem; display: flex; align-items: center; gap: 8px; padding-inline-end: 50px; }
.kpi .v { font-size: 1.7rem; font-weight: 900; margin-top: 4px; line-height: 1.3; }
.kpi .ico { position: absolute; inset-inline-end: 14px; top: 14px; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(139, 92, 246, .14); color: #c4b1ff; }
.kpi.cyan .ico { background: rgba(34, 225, 255, .12); color: var(--cyan); }
.kpi.green .ico { background: rgba(47, 245, 160, .12); color: var(--green); }
.kpi.amber .ico { background: rgba(255, 181, 71, .12); color: var(--amber); }
.kpi.red .ico { background: rgba(255, 84, 112, .12); color: var(--red); }
.kpi.alert-on { border-color: rgba(255, 84, 112, .45); box-shadow: 0 0 30px -12px rgba(255, 84, 112, .6); }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head h1 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); margin: 0; }
.page-head p { margin: 4px 0 0; color: var(--muted); font-size: .9rem; }

/* list rows */
.rows { display: flex; flex-direction: column; gap: 10px; }
.row-item { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: var(--r); background: rgba(15, 18, 32, .75); border: 1px solid var(--border); color: var(--text); transition: border-color .15s, background .15s; }
a.row-item:hover { color: var(--text); border-color: var(--border-2); background: var(--surface-2); }
.row-thumb { width: 92px; aspect-ratio: 16/10; border-radius: 10px; overflow: hidden; flex-shrink: 0; background: linear-gradient(135deg, #1b1240, #0b2a3a); }
.row-thumb img { width: 100%; height: 100%; object-fit: cover; }
.row-main { flex: 1; min-width: 0; }
.row-main .t { font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-main .m { color: var(--muted); font-size: .8rem; display: flex; gap: 10px; flex-wrap: wrap; margin-top: 2px; }
.row-actions { display: flex; gap: 6px; align-items: center; flex-shrink: 0; }

/* tables */
.table-wrap { overflow-x: auto; border-radius: var(--r-lg); border: 1px solid var(--border); background: rgba(15, 18, 32, .75); }
.table { width: 100%; border-collapse: collapse; font-size: .88rem; min-width: 640px; }
.table th { text-align: start; font-weight: 700; color: var(--muted); font-size: .78rem; padding: 12px 14px; border-bottom: 1px solid var(--border); background: rgba(6, 8, 15, .35); white-space: nowrap; }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: rgba(148, 163, 255, .03); }
.amount-pos { color: var(--green); font-weight: 800; }
.amount-neg { color: #ff8ea1; font-weight: 800; }

/* tabs */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 18px; overflow-x: auto; }
.tabs a, .tabs button { padding: 10px 16px; color: var(--text-2); font: inherit; font-weight: 700; font-size: .9rem; background: none; border: 0; border-bottom: 2px solid transparent; cursor: pointer; white-space: nowrap; display: flex; gap: 8px; align-items: center; margin-bottom: -1px; }
.tabs a:hover, .tabs button:hover { color: var(--text); }
.tabs .is-active { color: var(--text); border-bottom-color: var(--cyan); }
.tabs .count { font-size: .7rem; background: var(--pink); color: #fff; padding: 0 7px; border-radius: 99px; }
.pill-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.pill-tabs a { padding: 6px 14px; border-radius: 99px; font-size: .84rem; font-weight: 600; color: var(--text-2); background: var(--surface); border: 1px solid var(--border); }
.pill-tabs a.is-active { color: var(--text); border-color: rgba(34, 225, 255, .45); background: rgba(34, 225, 255, .08); }

/* ---------- order stepper ---------- */
.stepper { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; position: relative; margin: 8px 0 4px; }
.stepper .st { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; position: relative; font-size: .8rem; color: var(--muted); font-weight: 600; }
.stepper .st::before { content: ""; position: absolute; top: 19px; left: 50%; width: 100%; height: 3px; background: var(--surface-3); z-index: 0; }
.stepper .st:first-child::before { display: none; }
.stepper .st .dot { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); border: 2px solid var(--border-2); z-index: 1; position: relative; color: var(--muted); }
.stepper .st.done { color: var(--text-2); }
.stepper .st.done .dot { background: var(--grad); border-color: transparent; color: #fff; }
.stepper .st.done::before, .stepper .st.current::before { background: var(--grad); }
.stepper .st.current { color: var(--text); }
.stepper .st.current .dot { border-color: var(--cyan); color: var(--cyan); box-shadow: 0 0 0 6px rgba(34, 225, 255, .12), 0 0 24px rgba(34, 225, 255, .5); animation: pulse-ring 2s infinite; }

.countdown { display: inline-flex; align-items: center; gap: 8px; font-weight: 900; font-size: 1.4rem; font-variant-numeric: tabular-nums; direction: ltr; }
.countdown-box { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 18px; border-radius: var(--r); background: linear-gradient(120deg, rgba(255, 181, 71, .12), rgba(255, 61, 139, .08)); border: 1px solid rgba(255, 181, 71, .35); }
.countdown-box.calm { background: rgba(34, 225, 255, .06); border-color: rgba(34, 225, 255, .3); }
.countdown-box.urgent .countdown { color: var(--red); animation: blink 1s steps(2) infinite; }

/* ---------- secure credential card ---------- */
.secure { border-radius: var(--r-lg); border: 1px solid rgba(47, 245, 160, .3); background: linear-gradient(160deg, rgba(47, 245, 160, .07), rgba(15, 18, 32, .9) 60%); padding: 18px; }
.secure-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.secure-head .icon { color: var(--green); }
.secure-head h3 { margin: 0; font-size: 1rem; }
.cred-list { display: grid; gap: 8px; }
.cred { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 11px; background: rgba(6, 8, 15, .65); border: 1px solid var(--border); }
.cred .k { font-size: .78rem; color: var(--muted); width: 140px; flex-shrink: 0; }
.cred .v { flex: 1; min-width: 0; font-family: ui-monospace, Menlo, monospace, var(--font); unicode-bidi: plaintext; text-align: start; overflow-wrap: anywhere; font-size: .9rem; }
.cred .v.blur { filter: blur(6px); user-select: none; }
.copy-btn { background: none; border: 1px solid var(--border); color: var(--text-2); border-radius: 8px; padding: 4px 8px; cursor: pointer; font: inherit; font-size: .75rem; display: flex; gap: 4px; align-items: center; }
.copy-btn:hover { color: var(--text); border-color: var(--border-2); }

/* ---------- chat ---------- */
.chat { display: flex; flex-direction: column; height: 620px; max-height: calc(100vh - 160px); border-radius: var(--r-lg); border: 1px solid var(--border); background: rgba(10, 12, 22, .9); overflow: hidden; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border); background: rgba(21, 26, 43, .75); }
.chat-head .title { font-weight: 800; font-size: .95rem; }
.chat-head .sub { font-size: .75rem; color: var(--muted); }
.conn { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); margin-inline-start: auto; flex-shrink: 0; }
.conn.on { background: var(--green); box-shadow: 0 0 10px var(--green); }
.conn.poll { background: var(--amber); }
.chat-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; scroll-behavior: smooth; }
.chat-body::-webkit-scrollbar { width: 6px; } .chat-body::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 6px; }
.msg { max-width: 78%; display: flex; flex-direction: column; gap: 3px; animation: msg-in .25s ease-out; }
.msg .meta { font-size: .7rem; color: var(--muted); display: flex; gap: 6px; align-items: center; padding-inline: 4px; }
.msg .bubble { padding: 9px 13px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--border); white-space: pre-wrap; word-wrap: break-word; font-size: .92rem; line-height: 1.75; }
.msg.mine { align-self: flex-start; }
.msg.mine .bubble { background: linear-gradient(135deg, rgba(139, 92, 246, .55), rgba(34, 225, 255, .3)); border-color: rgba(139, 92, 246, .45); border-start-start-radius: 4px; }
.msg.theirs { align-self: flex-end; }
.msg.theirs .bubble { border-start-end-radius: 4px; }
.msg.role-admin .bubble { border-color: rgba(255, 181, 71, .45); background: rgba(255, 181, 71, .09); }
.msg.mine.role-admin .bubble { background: linear-gradient(135deg, rgba(255, 181, 71, .3), rgba(255, 61, 139, .2)); }
.msg.system { align-self: center; max-width: 92%; }
.msg.system .bubble { background: rgba(34, 225, 255, .06); border: 1px dashed rgba(34, 225, 255, .3); color: var(--text-2); font-size: .85rem; text-align: center; border-radius: 14px; }
.msg.system.secure .bubble { background: rgba(47, 245, 160, .07); border-color: rgba(47, 245, 160, .35); }
.msg.pending { opacity: .55; }
.role-tag { font-size: .66rem; font-weight: 800; padding: 0 7px; border-radius: 6px; }
.role-tag.buyer { background: rgba(34, 225, 255, .15); color: var(--cyan); }
.role-tag.seller { background: rgba(139, 92, 246, .2); color: #c4b1ff; }
.role-tag.admin { background: rgba(255, 181, 71, .16); color: var(--amber); }
.chat-day { align-self: center; font-size: .72rem; color: var(--muted); background: var(--surface); padding: 2px 12px; border-radius: 99px; border: 1px solid var(--border); }
.typing { font-size: .75rem; color: var(--muted); padding: 0 16px 6px; height: 20px; }
.chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--border); background: rgba(21, 26, 43, .6); align-items: flex-end; }
.chat-form textarea { flex: 1; resize: none; min-height: 46px; max-height: 140px; padding: 11px 14px; border-radius: 14px; border: 1px solid var(--border-2); background: rgba(6, 8, 15, .8); color: var(--text); font: inherit; font-size: .92rem; line-height: 1.6; }
.chat-form textarea:focus { outline: none; border-color: var(--cyan); }
.chat-form .btn { height: 46px; width: 46px; padding: 0; flex-shrink: 0; }
.chat-warning { margin: 0 12px 12px; padding: 10px 12px; border-radius: 12px; background: rgba(255, 84, 112, .1); border: 1px solid rgba(255, 84, 112, .4); color: #ffb3c0; font-size: .82rem; display: none; animation: shake .4s; }
.chat-warning.show { display: block; }
.chat-closed { padding: 14px; text-align: center; color: var(--muted); font-size: .85rem; border-top: 1px solid var(--border); }
.chat-notice { padding: 8px 14px; font-size: .75rem; color: var(--muted); display: flex; gap: 6px; align-items: center; border-bottom: 1px solid var(--border); background: rgba(255, 181, 71, .04); }
.chat-notice .icon { color: var(--amber); width: 14px; height: 14px; }
.chat-tabs { display: flex; gap: 6px; margin-bottom: 12px; flex-wrap: wrap; }
.chat-tabs button { display: flex; gap: 8px; align-items: center; padding: 9px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); color: var(--text-2); font: inherit; font-weight: 700; font-size: .86rem; cursor: pointer; }
.chat-tabs button.is-active { color: var(--text); border-color: rgba(34, 225, 255, .45); background: rgba(34, 225, 255, .08); }
.chat-tabs .unread { background: var(--pink); color: #fff; font-size: .68rem; border-radius: 99px; padding: 0 6px; }

/* checklist */
.checklist { display: grid; gap: 8px; }
.task { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: rgba(6, 8, 15, .55); border: 1px solid var(--border); cursor: pointer; transition: all .15s; }
.task:hover { border-color: var(--border-2); }
.task.done { border-color: rgba(47, 245, 160, .35); background: rgba(47, 245, 160, .05); }
.task.done .t-title { text-decoration: line-through; text-decoration-color: rgba(47, 245, 160, .6); color: var(--text-2); }
.task .t-title { font-weight: 700; font-size: .9rem; }
.task .t-help { font-size: .78rem; color: var(--muted); margin-top: 2px; }
.task .t-meta { font-size: .7rem; color: var(--green); margin-top: 4px; }
.progress { height: 8px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--grad); border-radius: inherit; transition: width .4s; }

/* staff */
.staff-body { --nav-h: 0px; }
.staff { display: grid; grid-template-columns: 250px minmax(0, 1fr); min-height: 100vh; }
.staff-side { background: rgba(8, 10, 18, .9); border-inline-start: 1px solid var(--border); padding: 18px 12px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.staff-side .logo { padding: 4px 8px 18px; }
.staff-side nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 11px; color: var(--text-2); font-weight: 600; font-size: .9rem; margin-bottom: 2px; }
.staff-side nav a:hover { background: var(--surface-2); color: var(--text); }
.staff-side nav a.is-active { background: rgba(139, 92, 246, .16); color: var(--text); }
.staff-side nav .count { margin-inline-start: auto; font-size: .7rem; background: var(--pink); color: #fff; padding: 0 7px; border-radius: 99px; font-weight: 800; }
.staff-side nav .count:empty, .side-nav .count:empty { display: none; }
.staff-side .group { font-size: .7rem; letter-spacing: .1em; color: var(--muted); padding: 14px 12px 6px; font-weight: 800; }
.staff-main { padding: 24px; min-width: 0; }
.staff-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 20px; }
.flag-list { display: grid; gap: 6px; }
.flag { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; border-radius: 10px; background: rgba(6, 8, 15, .5); border: 1px solid var(--border); font-size: .85rem; }
.flag .w { font-weight: 800; font-size: .78rem; }
.flag.pos .w { color: #ff8ea1; } .flag.neg .w { color: var(--green); }
.compare { display: grid; grid-template-columns: 1fr auto auto; gap: 8px 16px; font-size: .88rem; align-items: center; }
.compare .h { color: var(--muted); font-size: .75rem; }
.compare .ok { color: var(--green); } .compare .bad { color: #ff8ea1; font-weight: 800; }
.kv { display: grid; grid-template-columns: 140px 1fr; gap: 8px 12px; font-size: .88rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; word-break: break-word; }

/* empty state + pagination */
.empty { text-align: center; padding: 48px 20px; border-radius: var(--r-lg); border: 1px dashed var(--border-2); color: var(--muted); }
.empty .icon { color: var(--violet); margin-bottom: 10px; }
.empty h3 { color: var(--text); }
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 28px; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 40px; height: 40px; display: grid; place-items: center; padding: 0 12px; border-radius: 11px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); font-weight: 700; font-size: .88rem; }
.pagination .current { background: var(--grad); color: #fff; border-color: transparent; }

/* auth */
.auth { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - var(--nav-h)); }
.auth-side { position: relative; overflow: hidden; padding: 56px; display: flex; flex-direction: column; justify-content: center; background: linear-gradient(160deg, rgba(139, 92, 246, .22), rgba(34, 225, 255, .08)); border-inline-start: 1px solid var(--border); }
.auth-main { padding: 48px 24px; display: flex; align-items: center; justify-content: center; }
.auth-card { width: 100%; max-width: 560px; }
.auth-card.narrow { max-width: 420px; }
.notice-box { display: flex; gap: 12px; padding: 14px 16px; border-radius: 14px; background: rgba(255, 181, 71, .07); border: 1px solid rgba(255, 181, 71, .35); font-size: .86rem; line-height: 1.85; color: var(--text-2); margin-bottom: 20px; }
.notice-box .icon { color: var(--amber); margin-top: 4px; }
.notice-box strong { color: var(--amber); }
.date-row { display: grid; grid-template-columns: 1fr 1.4fr 1.2fr; gap: 8px; }
.pw-meter { height: 5px; border-radius: 99px; background: var(--surface-3); overflow: hidden; margin-top: 4px; }
.pw-meter span { display: block; height: 100%; width: 0; transition: all .3s; border-radius: inherit; }

/* phone verification */
.otp-card { text-align: center; max-width: 480px; margin-inline: auto; }
.otp-card .field, .otp-card details { text-align: start; }
.otp-card h1 { font-size: 1.5rem; }
.otp-icon { width: 68px; height: 68px; margin: 0 auto 14px; border-radius: 20px; display: grid; place-items: center; background: rgba(47, 245, 160, .1); color: var(--green); box-shadow: 0 0 40px -10px rgba(47, 245, 160, .6); }
.field input.otp-input { text-align: center; font-size: 2rem; font-weight: 900; letter-spacing: .6em; padding-inline-start: .6em; height: 64px; font-family: ui-monospace, Menlo, monospace; }
.verify-bar { background: linear-gradient(90deg, rgba(255, 181, 71, .14), rgba(255, 61, 139, .1)); border-bottom: 1px solid rgba(255, 181, 71, .3); font-size: .86rem; color: var(--text-2); }
.verify-bar .container { display: flex; align-items: center; gap: 10px; padding-block: 8px; flex-wrap: wrap; }
.verify-bar .icon { color: var(--amber); }
.verify-bar a { margin-inline-start: auto; }

/* footer */
.footer { border-top: 1px solid var(--border); background: rgba(6, 7, 13, .8); padding: 40px 0 24px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.footer h4 { font-size: .9rem; margin-bottom: 12px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer a { color: var(--muted); font-size: .88rem; }
.footer a:hover { color: var(--text); }
.footer-bottom { margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; color: var(--muted); font-size: .8rem; flex-wrap: wrap; gap: 8px; }

/* mock gateway */
.gateway { max-width: 440px; margin: 60px auto; }

/* ---------- animations ---------- */
@keyframes shine { to { background-position: 200% center; } }
@keyframes sweep { 0%, 60% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
@keyframes grid-move { to { background-position: 0 60px; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes toast-in { from { opacity: 0; transform: translateY(20px) scale(.96); } }
@keyframes toast-out { to { opacity: 0; transform: translateX(-30px); } }
@keyframes msg-in { from { opacity: 0; transform: translateY(6px); } }
@keyframes pulse-ring { 0%, 100% { box-shadow: 0 0 0 6px rgba(34, 225, 255, .12), 0 0 24px rgba(34, 225, 255, .45); } 50% { box-shadow: 0 0 0 10px rgba(34, 225, 255, .06), 0 0 34px rgba(34, 225, 255, .6); } }
@keyframes pulse-red { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 84, 112, .0); } 50% { box-shadow: 0 0 0 4px rgba(255, 84, 112, .18); } }
@keyframes blink { 50% { opacity: .55; } }
@keyframes shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: minmax(0, 1fr) 320px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  .hero-grid, .trust, .auth { grid-template-columns: 1fr; }
  .showcase { max-width: 420px; margin-inline: auto; }
  .auth-side { display: none; }
  .explore, .dash, .split, .staff { grid-template-columns: 1fr; }
  .filters, .sticky, .side-nav { position: static; }
  .filters { display: none; }
  .filter-toggle { display: inline-flex; }
  .filters.open { display: block; }
  .side-nav { display: flex; overflow-x: auto; gap: 4px; padding: 6px; scrollbar-width: none; }
  .side-nav .who, .side-nav .sep { display: none; }
  .side-nav a { white-space: nowrap; }
  .side-nav a.is-active { box-shadow: inset 0 -3px 0 var(--violet); }
  .staff-side { position: static; height: auto; border-inline-start: 0; border-bottom: 1px solid var(--border); }
  .staff-side nav { display: flex; overflow-x: auto; gap: 4px; }
  .staff-side nav a { white-space: nowrap; }
  .staff-side .group { display: none; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  body { font-size: 14.5px; }
  .nav-links, .nav-actions .hide-mobile { display: none; }
  .menu-toggle { display: grid; }
  .mobile-drawer.open { display: block; position: fixed; inset: var(--nav-h) 0 0 0; z-index: 49; background: rgba(6, 7, 13, .97); backdrop-filter: blur(12px); padding: 20px 16px; overflow-y: auto; }
  .mobile-drawer a { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 12px; color: var(--text); font-weight: 700; border-bottom: 1px solid var(--border); }
  .grid-2, .grid-3, .grid-4, .steps { grid-template-columns: 1fr; }
  .hero { padding: 44px 0 60px; }
  .hero-stats { gap: 22px; }
  .sf-1, .sf-2 { display: none; }
  .card, .form-section { padding: 18px; }
  .cta-band { padding: 32px 20px; }
  .stepper .st { font-size: .66rem; }
  .stepper .st .dot { width: 32px; height: 32px; }
  .stepper .st::before { top: 15px; }
  .chat { height: 70vh; }
  .msg { max-width: 90%; }
  .row-item { flex-wrap: wrap; }
  .row-thumb { width: 72px; }
  .row-actions { width: 100%; justify-content: flex-end; }
  .cred { flex-wrap: wrap; }
  .cred .k { width: 100%; }
  .kv { grid-template-columns: 1fr; gap: 2px; }
  .kv dd { margin-bottom: 8px; }
  .footer-grid { grid-template-columns: 1fr; }
  .toasts { left: 12px; right: 12px; bottom: 12px; max-width: none; }
  .staff-main { padding: 16px; }
  .date-row { grid-template-columns: 1fr 1fr 1fr; }
}
