/* ==========================================================================
   دیتابیس مارکت — سیستم طراحی
   تم تیره · درخشش فیروزه‌ای · راست‌به‌چپ · کاملاً واکنش‌گرا
   ========================================================================== */

/* ---------------------------------------------------------- توکن‌ها */
:root {
  /* زمینه */
  --bg:        #070b14;
  --bg-2:      #0b1120;
  --surface:   #101828;
  --surface-2: #16203a;
  --surface-3: #1e2b4c;
  --line:      #243454;
  --line-soft: #18223c;

  /* متن */
  --fg:       #eef3fc;
  --fg-dim:   #9fadc9;
  --fg-mute:  #66748f;

  /* هویت */
  --brand:    #26e8a0;
  --brand-2:  #14c48a;
  --brand-3:  #7cf5c8;
  --brand-4:  #0fb5cc;
  --glow:     rgba(38,232,160,.20);
  --glow-2:   rgba(38,232,160,.09);

  --warn:   #f7b648;
  --danger: #fb6272;
  --info:   #6fb0ff;

  /* هندسه */
  --xs: 7px; --sm: 11px; --r: 16px; --lg: 22px; --xl: 30px; --pill: 999px;
  --w: 1240px;

  /* سایه */
  --sh:   0 3px 12px rgba(0,0,0,.30);
  --sh-2: 0 26px 64px rgba(0,0,0,.55);
  --ring: 0 0 0 4px var(--glow);

  /* حرکت */
  --fast: .16s cubic-bezier(.4,0,.2,1);
  --ease: .34s cubic-bezier(.22,1,.36,1);

  --grad: linear-gradient(122deg, var(--brand), var(--brand-4));
}

/* ---------------------------------------------------------- پایه */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: Vazirmatn, "Segoe UI", Tahoma, system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  font-feature-settings: "ss01";
}

/* هاله‌های پس‌زمینه */
body::before {
  content: ''; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(1000px 520px at 78% -12%, rgba(38,232,160,.13), transparent 62%),
    radial-gradient(760px 460px at 4% 6%,  rgba(15,181,204,.09), transparent 60%),
    radial-gradient(680px 420px at 50% 108%, rgba(124,245,200,.05), transparent 60%);
}
/* بافت ریز نقطه‌ای */
body::after {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .35;
  background-image: radial-gradient(rgba(255,255,255,.055) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: radial-gradient(ellipse 85% 60% at 50% 0%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 85% 60% at 50% 0%, #000 30%, transparent 78%);
}

.num { direction: ltr; unicode-bidi: embed; font-variant-numeric: tabular-nums; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }

::selection { background: var(--brand); color: #04291b; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 5px; }

/* اعداد انیمیشنی */
.count { display: inline-block; }

/* ---------------------------------------------------------- اسکلت */
.wrap { width: min(100% - 36px, var(--w)); margin-inline: auto; }
main { flex: 1 0 auto; }

.skip { position: absolute; right: -9999px; top: 0; z-index: 999;
  background: var(--brand); color: #04291b; padding: 13px 24px; font-weight: 800; }
.skip:focus { right: 12px; border-radius: 0 0 var(--sm) var(--sm); }

/* ---------------------------------------------------------- نوار بالا */
.header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(7,11,20,.76);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid transparent;
  transition: border-color var(--fast), background var(--fast), box-shadow var(--fast);
}
.header.stuck {
  border-bottom-color: var(--line-soft);
  background: rgba(7,11,20,.93);
  box-shadow: 0 10px 34px rgba(0,0,0,.30);
}
.header-in { display: flex; align-items: center; gap: 22px; height: 70px; }

.logo { display: flex; align-items: center; gap: 11px; font-weight: 900; font-size: 16px; letter-spacing: -.3px; flex-shrink: 0; }
.logo-mark {
  width: 38px; height: 38px; border-radius: 12px; flex-shrink: 0;
  background: var(--grad);
  display: grid; place-items: center; color: #04291b;
  box-shadow: 0 8px 22px -6px var(--glow);
  transition: transform .4s var(--ease), box-shadow var(--fast);
}
.logo:hover .logo-mark { transform: rotate(-10deg) scale(1.08); box-shadow: 0 12px 30px -6px var(--glow); }
.logo-mark svg { width: 21px; height: 21px; }

.nav { display: flex; gap: 2px; margin-inline-start: auto; }
.nav a {
  position: relative; padding: 9px 15px; border-radius: var(--pill);
  color: var(--fg-dim); font-size: 14px; font-weight: 700;
  transition: color var(--fast), background var(--fast);
}
.nav a::after {
  content: ''; position: absolute; left: 50%; bottom: 4px;
  width: 0; height: 2px; border-radius: 2px; background: var(--brand);
  transform: translateX(-50%); transition: width var(--ease);
}
.nav a:hover { color: var(--fg); background: rgba(255,255,255,.045); }
.nav a:hover::after { width: 22px; }
.nav a.on { color: var(--brand); background: var(--glow-2); }
.nav a.on::after { width: 22px; }

.actions { display: flex; align-items: center; gap: 9px; flex-shrink: 0; }

.ibtn {
  position: relative; width: 42px; height: 42px; border-radius: var(--sm);
  display: grid; place-items: center; color: var(--fg-dim);
  border: 1px solid var(--line); background: rgba(255,255,255,.025);
  transition: all var(--fast);
}
.ibtn:hover { color: var(--brand); border-color: var(--brand); background: var(--glow-2); transform: translateY(-2px); }
.ibtn svg { width: 20px; height: 20px; }
.ibtn .dot {
  position: absolute; top: -6px; inset-inline-end: -6px;
  min-width: 20px; height: 20px; padding: 0 5px;
  background: var(--brand); color: #04291b; border-radius: var(--pill);
  font-size: 11px; font-weight: 900; display: grid; place-items: center;
  border: 2px solid var(--bg);
  animation: pop .4s var(--ease);
}
.ibtn .dot[data-n="0"] { display: none; }
@keyframes pop { from { transform: scale(0); } }

.burger { display: none; }

/* ---------------------------------------------------------- منوی موبایل */
.mmenu {
  position: fixed; inset: 0; z-index: 95;
  background: rgba(4,7,14,.76); backdrop-filter: blur(10px);
  opacity: 0; pointer-events: none; transition: opacity var(--ease);
}
.mmenu.open { opacity: 1; pointer-events: auto; }
.mmenu-panel {
  position: absolute; inset-block: 0; inset-inline-end: 0;
  width: min(84vw, 330px); background: var(--bg-2);
  border-inline-start: 1px solid var(--line);
  padding: 22px; display: flex; flex-direction: column; gap: 3px;
  transform: translateX(-100%); transition: transform var(--ease);
  overflow-y: auto;
  box-shadow: var(--sh-2);
}
html[dir="rtl"] .mmenu-panel { transform: translateX(100%); }
.mmenu.open .mmenu-panel { transform: none; }
.mmenu-panel a {
  padding: 14px 18px; border-radius: var(--sm);
  color: var(--fg-dim); font-weight: 700; transition: all var(--fast);
}
.mmenu-panel a:hover, .mmenu-panel a.on { background: var(--glow-2); color: var(--brand); }
.mmenu-panel .sep { height: 1px; background: var(--line-soft); margin: 12px 0; }
.mmenu-panel .head { padding: 0 18px 16px; border-bottom: 1px solid var(--line-soft); margin-bottom: 12px; }

/* ---------------------------------------------------------- دکمه */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 12px 24px; border-radius: var(--sm);
  font-weight: 800; font-size: 14px; letter-spacing: -.1px;
  border: 1px solid transparent; transition: all var(--fast);
  white-space: nowrap; position: relative; overflow: hidden;
}
.btn svg { width: 18px; height: 18px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-primary { background: var(--grad); color: #04291b; box-shadow: 0 8px 22px -10px var(--glow); }
.btn-primary::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.32), transparent 70%);
  transform: translateX(-120%); transition: transform .65s var(--ease);
}
.btn-primary:hover:not(:disabled)::before { transform: translateX(120%); }
.btn-primary:hover:not(:disabled) { transform: translateY(-3px); box-shadow: 0 16px 38px -12px var(--glow); }
.btn-ghost { border-color: var(--line); color: var(--fg); background: rgba(255,255,255,.025); }
.btn-ghost:hover:not(:disabled) { border-color: var(--brand); color: var(--brand); background: var(--glow-2); transform: translateY(-2px); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover:not(:disabled) { filter: brightness(1.1); transform: translateY(-2px); }
.btn-lg { padding: 15px 32px; font-size: 15px; border-radius: var(--r); }
.btn-sm { padding: 8px 15px; font-size: 12.5px; border-radius: var(--xs); }
.btn-block { width: 100%; }

/* ---------------------------------------------------------- کارت */
.card {
  position: relative;
  background: linear-gradient(168deg, rgba(255,255,255,.035), rgba(255,255,255,.012));
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  transition: all var(--ease);
  overflow: hidden;
}
a.card::before {
  content: ''; position: absolute; inset-block-start: 0; inset-inline: 0; height: 2px;
  background: var(--grad); opacity: 0; transition: opacity var(--ease);
}
a.card:hover {
  border-color: rgba(38,232,160,.42);
  transform: translateY(-6px);
  box-shadow: var(--sh-2);
}
a.card:hover::before { opacity: 1; }

/* ---------------------------------------------------------- بخش */
.section { padding: 84px 0; }
.shead { margin-bottom: 42px; }
.shead h2 {
  font-size: clamp(23px, 3.6vw, 32px); font-weight: 900;
  letter-spacing: -.9px; line-height: 1.45;
  background: linear-gradient(180deg, #fff 30%, rgba(238,243,252,.72));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.shead p { color: var(--fg-dim); margin-top: 11px; font-size: 16px; }
.shead.row { display: flex; align-items: flex-end; justify-content: space-between; gap: 22px; flex-wrap: wrap; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--brand); font-size: 12.5px; font-weight: 800; letter-spacing: .2px;
  padding: 6px 15px; border-radius: var(--pill);
  background: var(--glow-2); border: 1px solid rgba(38,232,160,.26);
  margin-bottom: 18px;
}
.eyebrow i { width: 6px; height: 6px; border-radius: 50%; background: var(--brand);
  box-shadow: 0 0 0 0 var(--brand); animation: pulse 2.2s infinite; }
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 var(--glow); }
  70%  { box-shadow: 0 0 0 10px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

/* ---------------------------------------------------------- شبکه */
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(285px, 1fr)); }

/* ---------------------------------------------------------- کارت محصول */
.pcard { padding: 22px; display: flex; flex-direction: column; height: 100%; }
.pcard::after {
  content: ''; position: absolute; top: -50%; inset-inline-end: -30%;
  width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(closest-side, var(--glow-2), transparent);
  opacity: 0; transition: opacity var(--ease); pointer-events: none;
}
.pcard:hover::after { opacity: 1; }

.pcard-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.pcard-icon {
  width: 48px; height: 48px; border-radius: 14px; flex-shrink: 0;
  display: grid; place-items: center;
  background: var(--glow-2); color: var(--brand);
  border: 1px solid rgba(38,232,160,.22);
  transition: all var(--ease);
}
.pcard-icon svg { width: 23px; height: 23px; }
.pcard:hover .pcard-icon { transform: scale(1.08) rotate(-6deg); background: rgba(38,232,160,.16); }

.badge {
  padding: 4px 12px; border-radius: var(--pill); font-size: 11.5px; font-weight: 800;
  border: 1px solid var(--line); color: var(--fg-dim); background: rgba(255,255,255,.03);
  white-space: nowrap;
}
.badge-brand  { color: var(--brand);  border-color: rgba(38,232,160,.32);  background: var(--glow-2); }
.badge-warn   { color: var(--warn);   border-color: rgba(247,182,72,.32);  background: rgba(247,182,72,.08); }
.badge-danger { color: var(--danger); border-color: rgba(251,98,114,.32);  background: rgba(251,98,114,.08); }
.badge-info   { color: var(--info);   border-color: rgba(111,176,255,.3);  background: rgba(111,176,255,.08); }

.pcard h3 { font-size: 16px; font-weight: 800; line-height: 1.65; letter-spacing: -.2px; }
.pcard h3 a { transition: color var(--fast); }
.pcard h3 a:hover { color: var(--brand); }
.pcard-desc {
  color: var(--fg-dim); font-size: 13.5px; margin-top: 8px; line-height: 1.85;
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.pcard-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.chip {
  padding: 3px 11px; border-radius: var(--xs); font-size: 11.5px; font-weight: 700;
  background: rgba(255,255,255,.045); color: var(--fg-dim);
  border: 1px solid transparent; transition: all var(--fast);
}
a.card:hover .chip { border-color: var(--line); }

.pcard-foot {
  margin-top: auto; padding-top: 17px; display: flex; align-items: flex-end;
  justify-content: space-between; gap: 12px;
  border-top: 1px solid var(--line-soft);
}
.price {
  font-size: 22px; font-weight: 900; letter-spacing: -.7px; line-height: 1.3;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.price small { font-size: 12px; font-weight: 700; color: var(--fg-dim); margin-inline-start: 5px;
  -webkit-text-fill-color: var(--fg-dim); }
.price-old { font-size: 12.5px; color: var(--fg-mute); text-decoration: line-through; margin-top: 2px; }

/* ---------------------------------------------------------- نوار ابزار */
.toolbar {
  display: flex; gap: 11px; flex-wrap: wrap; align-items: center;
  padding: 16px; border-radius: var(--r); margin-bottom: 24px;
  background: linear-gradient(168deg, rgba(255,255,255,.04), rgba(255,255,255,.012));
  border: 1px solid var(--line-soft);
  backdrop-filter: blur(8px);
}
.toolbar input[type="search"], .toolbar input[type="number"], .toolbar select {
  background: rgba(7,11,20,.7); border: 1px solid var(--line);
  border-radius: var(--sm); padding: 11px 15px; outline: none;
  transition: all var(--fast); font-size: 14px;
}
.toolbar input[type="search"] { flex: 1; min-width: 200px; }
.toolbar input::placeholder { color: var(--fg-mute); }
.toolbar input:focus, .toolbar select:focus { border-color: var(--brand); box-shadow: var(--ring); }
.toolbar .meta { margin-inline-start: auto; color: var(--fg-dim); font-size: 13.5px; white-space: nowrap; }

/* ---------------------------------------------------------- هیرو */
.hero { padding: 96px 0 76px; position: relative; }
.hero-in { max-width: 820px; margin-inline: auto; text-align: center; }
.hero h1 {
  font-size: clamp(31px, 6vw, 56px); font-weight: 900; line-height: 1.28; letter-spacing: -1.6px;
  margin-bottom: 6px;
}
.hero h1 em {
  font-style: normal; position: relative;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero h1 em::after {
  content: ''; position: absolute; inset-inline: 0; bottom: .06em; height: .12em;
  background: var(--grad); opacity: .32; border-radius: 2px; filter: blur(6px);
}
.hero p {
  color: var(--fg-dim); font-size: clamp(15px, 2.1vw, 18.5px);
  margin-top: 24px; line-height: 2.05; max-width: 640px; margin-inline: auto;
}
.hero-cta { display: flex; gap: 13px; justify-content: center; margin-top: 38px; flex-wrap: wrap; }

.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  margin-top: 66px; border-radius: var(--r); overflow: hidden;
  background: var(--line-soft); border: 1px solid var(--line-soft);
}
.stat { background: rgba(16,24,40,.7); padding: 28px 16px; text-align: center; transition: background var(--fast); }
.stat:hover { background: rgba(22,32,58,.9); }
.stat b {
  display: block; font-size: 28px; font-weight: 900; letter-spacing: -1px;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat span { font-size: 12.5px; color: var(--fg-dim); }

/* ---------------------------------------------------------- پاورقی */
.footer { border-top: 1px solid var(--line-soft); background: rgba(7,11,20,.6);
  padding: 64px 0 28px; margin-top: 80px; backdrop-filter: blur(10px); }
.fgrid { display: grid; grid-template-columns: 1.8fr repeat(3, 1fr); gap: 44px; }
.footer h4 { font-size: 13.5px; margin-bottom: 16px; font-weight: 800; }
.footer ul { display: grid; gap: 10px; }
.footer a { color: var(--fg-dim); font-size: 13.5px; transition: all var(--fast); display: inline-block; }
.footer a:hover { color: var(--brand); transform: translateX(-3px); }
.footer p { color: var(--fg-dim); font-size: 13.5px; line-height: 2; margin-top: 15px; }
.fbot {
  margin-top: 46px; padding-top: 24px; border-top: 1px solid var(--line-soft);
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  flex-wrap: wrap; color: var(--fg-mute); font-size: 12.5px;
}

/* ---------------------------------------------------------- فرم */
.field { margin-bottom: 18px; }
.field > label { display: block; font-size: 13px; color: var(--fg-dim); margin-bottom: 8px; font-weight: 700; }
.field > label small { color: var(--fg-mute); font-weight: 500; }
.field input, .field textarea, .field select {
  width: 100%; background: rgba(7,11,20,.7); border: 1px solid var(--line);
  border-radius: var(--sm); padding: 12px 15px; outline: none; transition: all var(--fast);
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--brand); box-shadow: var(--ring); background: rgba(7,11,20,.9);
}
.field input::placeholder, .field textarea::placeholder { color: var(--fg-mute); }
.field textarea { resize: vertical; min-height: 112px; line-height: 1.95; }
.field .hint { font-size: 12px; color: var(--fg-mute); margin-top: 7px; }

/* ---------------------------------------------------------- هشدار */
.alert { padding: 14px 18px; border-radius: var(--sm); font-size: 14px; margin-bottom: 18px; border: 1px solid; }
.alert-ok    { color: var(--brand-3); border-color: rgba(38,232,160,.3);  background: var(--glow-2); }
.alert-error { color: #ffa8b0;          border-color: rgba(251,98,114,.3);  background: rgba(251,98,114,.08); }
.alert-info  { color: var(--info);       border-color: rgba(111,176,255,.28); background: rgba(111,176,255,.07); }
.alert-warn  { color: var(--warn);       border-color: rgba(247,182,72,.28);  background: rgba(247,182,72,.07); }

/* ---------------------------------------------------------- پیام */
.toast {
  position: fixed; bottom: 24px; inset-inline-start: 24px; z-index: 200;
  background: rgba(22,32,58,.96); border: 1px solid var(--line);
  border-radius: var(--r); padding: 14px 21px; font-size: 14px; font-weight: 700;
  box-shadow: var(--sh-2); backdrop-filter: blur(14px);
  opacity: 0; transform: translateY(18px) scale(.96);
  pointer-events: none; transition: all .3s var(--ease); max-width: min(90vw, 420px);
}
.toast.show { opacity: 1; transform: none; }
.toast.ok  { border-color: var(--brand); }
.toast.bad { border-color: var(--danger); }

/* ---------------------------------------------------------- خالی / اسکلت */
.empty { padding: 90px 24px; text-align: center; color: var(--fg-dim); }
.empty svg { width: 56px; height: 56px; color: var(--fg-mute); margin: 0 auto 18px; opacity: .7; }

.skel {
  border-radius: var(--r); height: 290px;
  background: linear-gradient(90deg, var(--surface) 25%, var(--surface-2) 50%, var(--surface) 75%);
  background-size: 240% 100%; animation: sh 1.5s infinite;
}
@keyframes sh { to { background-position: -240% 0; } }

/* ---------------------------------------------------------- متن */
.prose { max-width: 820px; color: var(--fg-dim); font-size: 15.5px; line-height: 2.15; }
.prose h2 {
  color: var(--fg); font-size: 23px; margin: 42px 0 14px;
  font-weight: 900; letter-spacing: -.5px;
  padding-inline-start: 14px; position: relative;
}
.prose h2::before {
  content: ''; position: absolute; inset-inline-start: 0; top: .18em; bottom: .18em;
  width: 4px; border-radius: 3px; background: var(--grad);
}
.prose h3 { color: var(--fg); font-size: 18px; margin: 30px 0 11px; font-weight: 800; }
.prose p { margin-bottom: 17px; }
.prose ul { margin: 0 4px 18px; display: grid; gap: 10px; }
.prose li { padding-inline-start: 24px; position: relative; }
.prose li::before {
  content: ''; position: absolute; inset-inline-start: 4px; top: 11px;
  width: 7px; height: 7px; border-radius: 2px; background: var(--brand);
  transform: rotate(45deg);
}
.prose a { color: var(--brand); border-bottom: 1px solid rgba(38,232,160,.3); }
.prose a:hover { border-bottom-color: var(--brand); }
.prose strong { color: var(--fg); }
.prose code {
  background: var(--surface-2); padding: 2px 8px; border-radius: 5px;
  font-family: ui-monospace, monospace; font-size: .9em; color: var(--brand-3);
  direction: ltr; display: inline-block;
}

/* ---------------------------------------------------------- صفحهٔ محصول */
.pdp { display: grid; grid-template-columns: 1fr 392px; gap: 48px; align-items: start; }
.pdp-side {
  position: sticky; top: 92px; padding: 28px; border-radius: var(--lg);
  background: linear-gradient(168deg, rgba(255,255,255,.05), rgba(255,255,255,.015));
  border: 1px solid var(--line-soft);
  box-shadow: var(--sh-2);
}
.pdp-side h1 { font-size: 26px; font-weight: 900; line-height: 1.5; letter-spacing: -.6px; }
.pdp-price {
  font-size: 40px; font-weight: 900; letter-spacing: -1.8px; line-height: 1.15;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.pdp-price span { font-size: 14px; font-weight: 700; color: var(--fg-dim);
  -webkit-text-fill-color: var(--fg-dim); letter-spacing: 0; }

.spec { display: grid; grid-template-columns: auto 1fr; gap: 11px 20px; font-size: 14px; }
.spec dt { color: var(--fg-dim); }
.spec dd { color: var(--fg); font-weight: 700; }

.qty { display: inline-flex; align-items: center; border: 1px solid var(--line);
  border-radius: var(--sm); overflow: hidden; background: rgba(7,11,20,.6); }
.qty button { width: 40px; height: 44px; display: grid; place-items: center;
  color: var(--fg-dim); font-size: 20px; transition: all var(--fast); }
.qty button:hover { background: var(--glow-2); color: var(--brand); }
.qty input { width: 54px; height: 44px; text-align: center; background: none;
  border: none; outline: none; font-weight: 800; }

/* ---------------------------------------------------------- جدول */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 480px; }
.table th { text-align: start; padding: 14px 16px; color: var(--fg-dim);
  font-weight: 700; font-size: 12.5px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 15px 16px; border-bottom: 1px solid var(--line-soft); }
.table tbody tr { transition: background var(--fast); }
.table tbody tr:hover { background: rgba(255,255,255,.022); }
.table tbody tr:last-child td { border-bottom: none; }

/* ---------------------------------------------------------- تب */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 26px; overflow-x: auto; }
.tabs button {
  padding: 12px 20px; color: var(--fg-dim); font-weight: 700; font-size: 14px;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: all var(--fast); white-space: nowrap;
}
.tabs button:hover { color: var(--fg); }
.tabs button.on { color: var(--brand); border-bottom-color: var(--brand); }

/* ---------------------------------------------------------- نوار اطلاعیه */
.banner {
  background: var(--grad); color: #04291b; text-align: center;
  padding: 11px 18px; font-size: 13.5px; font-weight: 900;
  letter-spacing: .2px;
}

/* ---------------------------------------------------------- اسکلت‌های صفحه */
.hero-card {
  padding: 30px; border-radius: var(--lg);
  background: linear-gradient(168deg, rgba(255,255,255,.04), rgba(255,255,255,.012));
  border: 1px solid var(--line-soft); transition: all var(--ease);
}
.hero-card:hover { border-color: rgba(38,232,160,.35); transform: translateY(-4px); box-shadow: var(--sh-2); }
.hero-card h3 { font-size: 17px; font-weight: 800; margin: 16px 0 9px; }
.hero-card p { color: var(--fg-dim); font-size: 14px; line-height: 1.9; }
.hero-card .pcard-icon { margin-bottom: 2px; }

/* پلن تعرفه */
.plan {
  padding: 28px; border-radius: var(--r); height: 100%;
  display: flex; flex-direction: column;
  background: linear-gradient(168deg, rgba(255,255,255,.04), rgba(255,255,255,.012));
  border: 1px solid var(--line-soft); transition: all var(--ease); position: relative; overflow: hidden;
}
.plan:hover { transform: translateY(-5px); box-shadow: var(--sh-2); }
.plan.best { border-color: rgba(38,232,160,.42); background: linear-gradient(168deg, rgba(38,232,160,.07), rgba(38,232,160,.015)); }
.plan.best::before {
  content: ''; position: absolute; inset-block-start: 0; inset-inline: 0; height: 3px; background: var(--grad);
}
.plan .tag-best {
  position: absolute; top: 18px; inset-inline-end: 18px;
}
.plan ul { display: grid; gap: 10px; font-size: 13.5px; color: var(--fg-dim); margin-bottom: 24px; }
.plan li { padding-inline-start: 21px; position: relative; }
.plan li::before {
  content: ''; position: absolute; inset-inline-start: 4px; top: 10px;
  width: 6px; height: 6px; border-radius: 2px; background: var(--brand); transform: rotate(45deg);
}
.plan .btn { margin-top: auto; }

/* ---------------------------------------------------------- واکنش‌گرا */
@media (max-width: 1020px) {
  .pdp { grid-template-columns: 1fr; }
  .pdp-side { position: static; }
  .fgrid { grid-template-columns: 1fr 1fr; gap: 34px; }
}

@media (max-width: 860px) {
  .nav { display: none; }
  .burger { display: grid; }
  .section { padding: 58px 0; }
  .hero { padding: 60px 0 48px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .footer { margin-top: 56px; }
  .shead h2 { font-size: 24px; }
}

@media (max-width: 600px) {
  body { font-size: 14.5px; }
  .wrap { width: min(100% - 28px, var(--w)); }
  .grid { grid-template-columns: 1fr; gap: 15px; }
  .fgrid { grid-template-columns: 1fr; gap: 30px; }
  .hero { padding: 44px 0 38px; }
  .hero-cta .btn { flex: 1; }
  .toolbar { padding: 14px; }
  .toolbar input[type="search"] { min-width: 100%; }
  .toolbar select { flex: 1; min-width: 0; }
  .toast { inset-inline: 14px; bottom: 14px; max-width: none; }
  .btn { padding: 12px 19px; }
  .btn-lg { padding: 14px 24px; font-size: 14.5px; }
  .stat { padding: 20px 12px; }
  .stat b { font-size: 23px; }
  .pdp-side, .pcard { padding: 20px; }
  .pdp-price { font-size: 34px; }
  .modal-box { max-height: 94vh; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
