/* =====================================================================
   Biameno — POS system page (pos-system/pos.css)
   روی home.css سوار است (توکن‌ها، دکمه‌ها، hm-head، hm-acc، hm-final)؛
   این فایل فقط بخش‌های اختصاصی صفحه صندوق ویندوز را می‌سازد.
   ===================================================================== */

.ps-i { width: 1.15em; height: 1.15em; flex: none; display: inline-block; vertical-align: middle; }
.ps-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ps-eyebrow { display: inline-block; color: var(--hm-blue-ink); font-weight: 700; font-size: .92rem; margin-bottom: 10px !important; }
.ps-dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; flex: none; box-shadow: 0 0 0 0 rgba(34, 197, 94, .6); animation: ps-ping 2s ease-out infinite; }
.ps-dot--blue { background: #3b82f6; box-shadow: none; animation: none; }
.ps-dot--amber { background: #f59e0b; box-shadow: none; animation: none; }
.ps-dot--green { background: #10b981; box-shadow: none; animation: none; }

/* نمایش نرم بخش‌ها هنگام اسکرول؛ بدون JS همه چیز دیده می‌شود */
.ps-js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1); }
.ps-js [data-reveal].is-in { opacity: 1; transform: none; }

/* =====================================================================
   HERO
   ===================================================================== */
.ps-hero { position: relative; isolation: isolate; overflow: hidden; padding: clamp(20px, 4vw, 40px) 0 clamp(48px, 7vw, 88px); }
.ps-hero__grid-bg {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--hm-line) 1px, transparent 1px), linear-gradient(90deg, var(--hm-line) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(60% 55% at 30% 45%, #000, transparent 75%);
  mask-image: radial-gradient(60% 55% at 30% 45%, #000, transparent 75%);
}

.ps-crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .84rem; color: var(--hm-muted); }
.ps-crumbs li + li::before { content: "/"; margin-inline-end: 6px; opacity: .55; }
.ps-crumbs a { color: var(--hm-text-2); transition: color .2s; }
.ps-crumbs a:hover { color: var(--hm-blue-ink); }

.ps-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 44px; align-items: center; text-align: center; margin-top: clamp(24px, 4vw, 40px); }
.ps-hero__grid > * { min-width: 0; }
.ps-hero__copy .hm-pill { white-space: normal; text-align: start; }
.ps-hero__title { margin-top: 20px; color: var(--hm-text); font-size: clamp(1.9rem, 1.15rem + 3.6vw, 3.3rem); line-height: 1.35; font-weight: 700; letter-spacing: -.02em; text-wrap: balance; }
.ps-hero__title .hm-grad { display: block; font-size: .62em; line-height: 1.6; margin-top: 10px; letter-spacing: 0; }
.ps-hero__lead { margin: 18px auto 0; max-width: 560px; color: var(--hm-muted); font-size: clamp(1rem, .96rem + .3vw, 1.13rem); line-height: 2; text-wrap: pretty; }
.ps-hero__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }
.ps-hero__cta .ps-i { font-size: 1.15rem; }
.ps-hero__meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 0; margin-top: 14px; font-size: .84rem; color: var(--hm-muted); }
.ps-hero__meta span + span::before { content: "·"; margin-inline: 10px; opacity: .6; }
.ps-mobile-note { display: none; align-items: center; justify-content: center; gap: 8px; margin: 14px auto 0; max-width: 420px; padding: 10px 14px; border-radius: 12px; font-size: .84rem; line-height: 1.8; color: var(--hm-text-2); background: color-mix(in srgb, var(--hm-blue) 8%, transparent); border: 1px dashed var(--hm-line-2); }
.ps-mobile-note .ps-i { color: var(--hm-blue-ink); font-size: 1.1rem; }
@media (hover: none) and (pointer: coarse) { .ps-mobile-note { display: flex; } }

/* ---------- پنجره برنامه ویندوز (نمای زنده) ---------- */
.ps-hero__visual { position: relative; width: min(100%, 600px); margin-inline: auto; padding: 18px 0 34px; }
.ps-app {
  position: relative; margin: 0; font-size: clamp(8.5px, 2.15vw, 12.5px);
  border-radius: 1.2em; background: var(--hm-surface); border: 1px solid var(--hm-line-2);
  box-shadow: var(--hm-shadow), 0 0 0 1px rgba(255, 255, 255, .02) inset, 0 40px 120px -50px rgba(59, 130, 246, .55);
  text-align: start;
}
.ps-app__bar { direction: ltr; display: flex; align-items: center; gap: 1em; padding: .75em 1em; border-bottom: 1px solid var(--hm-line); font-size: .95em; color: var(--hm-text-2); }
.ps-app__brand { display: inline-flex; align-items: center; gap: .55em; font-weight: 700; color: var(--hm-text); white-space: nowrap; }
.ps-app__brand img { width: 1.5em; height: 1.5em; object-fit: contain; }
.ps-app__net { margin-inline: auto; display: inline-flex; align-items: center; gap: .5em; padding: .25em .8em; border-radius: 999px; background: rgba(34, 197, 94, .12); color: #16a34a; font-size: .88em; direction: rtl; transition: background-color .35s, color .35s; }
[data-theme="dark"] .ps-app__net { color: #4ade80; }
.ps-app__net b { font-weight: 700; }
.ps-app__net.is-off { background: rgba(245, 158, 11, .14); color: #d97706; }
.ps-app__net.is-off .ps-dot { background: #f59e0b; animation: none; }
.ps-app__ctrl { display: inline-flex; gap: 1.3em; align-items: center; }
.ps-app__ctrl i { position: relative; width: .9em; height: .9em; }
.ps-app__ctrl i:nth-child(1)::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; background: currentColor; }
.ps-app__ctrl i:nth-child(2) { border: 1.5px solid currentColor; border-radius: 2px; }
.ps-app__ctrl .is-x::before, .ps-app__ctrl .is-x::after { content: ""; position: absolute; left: -10%; right: -10%; top: 50%; height: 1.5px; background: currentColor; transform: rotate(45deg); }
.ps-app__ctrl .is-x::after { transform: rotate(-45deg); }

.ps-app__body { display: grid; grid-template-columns: 3.4em minmax(0, 1fr) minmax(0, 38%); gap: .9em; padding: .9em; min-height: 26em; }
.ps-app__side { display: grid; align-content: start; gap: .6em; padding-inline-end: .9em; border-inline-end: 1px solid var(--hm-line); }
.ps-app__side span { display: grid; place-items: center; height: 2.8em; border-radius: .8em; color: var(--hm-muted); font-size: 1.05em; }
.ps-app__side span.is-on { background: var(--hm-grad); color: #fff; box-shadow: var(--hm-glow); }

.ps-app__cats { display: flex; gap: .45em; overflow: hidden; margin-bottom: .9em; }
.ps-app__cats b { flex: none; padding: .45em .9em; border-radius: 999px; font-size: .9em; font-weight: 700; color: var(--hm-text-2); background: var(--hm-surface-2); border: 1px solid var(--hm-line); white-space: nowrap; }
.ps-app__cats b.is-on { color: #fff; background: var(--hm-blue); border-color: transparent; }
.ps-app__tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .65em; }
.ps-tile {
  position: relative; display: grid; gap: .25em; padding: .75em; border-radius: 1em;
  background: linear-gradient(160deg, color-mix(in srgb, var(--tone) 16%, var(--hm-surface)), var(--hm-surface-2));
  border: 1px solid color-mix(in srgb, var(--tone) 22%, transparent);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s;
}
.ps-tile em { display: grid; place-items: center; width: 2.6em; height: 2.6em; border-radius: .8em; color: #fff; font-size: 1.05em; background: linear-gradient(150deg, color-mix(in srgb, var(--tone) 70%, #fff), var(--tone)); box-shadow: 0 .6em 1.2em -.6em var(--tone); }
.ps-tile b { margin-top: .35em; font-size: .95em; color: var(--hm-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ps-tile small { font-size: .85em; color: var(--hm-muted); font-variant-numeric: tabular-nums; }
.ps-tile.is-press { transform: scale(.93); border-color: var(--tone); box-shadow: 0 0 0 .3em color-mix(in srgb, var(--tone) 25%, transparent); }

.ps-app__bill { display: flex; flex-direction: column; gap: .6em; padding: .8em; border-radius: 1em; background: var(--hm-surface-2); border: 1px solid var(--hm-line); }
.ps-app__seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: .25em; padding: .25em; border-radius: .8em; background: var(--hm-bg-soft); }
.ps-app__seg b { text-align: center; padding: .4em 0; border-radius: .6em; font-size: .85em; color: var(--hm-muted); }
.ps-app__seg b.is-on { background: var(--hm-surface); color: var(--hm-text); box-shadow: var(--hm-shadow-sm); }
.ps-app__billhead { display: flex; justify-content: space-between; align-items: baseline; font-weight: 700; color: var(--hm-text); }
.ps-app__billhead small { color: var(--hm-muted); font-weight: 400; }
.ps-app__lines { display: grid; gap: .45em; align-content: start; min-height: 7.6em; }
.ps-app__lines li { display: flex; justify-content: space-between; gap: .5em; font-size: .92em; color: var(--hm-text-2); padding-bottom: .45em; border-bottom: 1px dashed var(--hm-line-2); }
.ps-app__lines li b { color: var(--hm-text); font-variant-numeric: tabular-nums; }
.ps-app__lines li.is-new { animation: ps-line-in .45s cubic-bezier(.2, .8, .2, 1.2) both; }
.ps-app__club { display: flex; align-items: center; gap: .4em; padding: .4em .6em; border-radius: .6em; font-size: .85em; color: #b45309; background: rgba(245, 158, 11, .14); opacity: 0; transform: scale(.9); transition: opacity .3s, transform .3s; }
[data-theme="dark"] .ps-app__club { color: #fbbf24; }
.ps-app__club b { margin-inline-start: auto; }
.ps-app__club.is-on { opacity: 1; transform: none; }
.ps-app__sum { display: flex; justify-content: space-between; align-items: baseline; margin-top: auto; font-size: .88em; color: var(--hm-muted); }
.ps-app__sum b { font-size: 1.6em; color: var(--hm-text); font-variant-numeric: tabular-nums; }
.ps-app__pay { display: grid; grid-template-columns: 1fr 1fr; gap: .4em; }
.ps-app__pay span { display: inline-flex; align-items: center; justify-content: center; gap: .35em; padding: .45em 0; border-radius: .6em; font-size: .85em; color: var(--hm-text-2); border: 1px solid var(--hm-line-2); }
.ps-app__pay span.is-on { border-color: var(--hm-blue); color: var(--hm-blue-ink); background: color-mix(in srgb, var(--hm-blue) 10%, transparent); }
.ps-app__go { display: inline-flex; align-items: center; justify-content: center; gap: .45em; padding: .75em 0; border-radius: .8em; color: #fff; font-weight: 700; background: var(--hm-grad); box-shadow: var(--hm-glow); transition: transform .15s; }
.ps-app__go.is-press { transform: scale(.95); }

/* فیش چاپی */
.ps-receipt {
  position: absolute; left: 4%; bottom: -26px; z-index: 3; width: 9.6rem; padding: 12px 12px 18px;
  display: grid; gap: 5px; font-size: .74rem; color: #0b1530; background: #fff;
  border-radius: 8px 8px 0 0; box-shadow: 0 22px 40px rgba(5, 15, 50, .35);
  transform: rotate(-4deg); transform-origin: top center;
  transition: opacity .35s ease, transform .6s cubic-bezier(.2, .8, .2, 1);
}
.ps-receipt b { font-size: .78rem; border-bottom: 1px dashed #cbd5e1; padding-bottom: 6px; }
.ps-receipt > i { position: absolute; left: 0; right: 0; bottom: -8px; height: 8px; background: radial-gradient(circle at 6px 0, #fff 6px, transparent 6.5px) 0 0 / 12px 8px repeat-x; }
.ps-app.is-anim .ps-receipt { opacity: 0; transform: translateY(-30px) rotate(-4deg) scaleY(.6); }
.ps-app.is-anim .ps-receipt.is-show { opacity: 1; transform: rotate(-4deg); }

/* اعلان‌های شناور */
.ps-float {
  position: absolute; z-index: 4; display: flex; align-items: center; gap: 10px; max-width: 15.5rem;
  padding: 9px 14px 9px 10px; border-radius: 16px; text-align: start;
  background: var(--hm-glass); border: 1px solid var(--hm-line-2); box-shadow: var(--hm-shadow);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  transition: opacity .4s ease, transform .5s cubic-bezier(.2, .8, .2, 1.15);
}
.ps-float b { display: block; font-size: .82rem; color: var(--hm-text); line-height: 1.5; }
.ps-float small { display: block; font-size: .74rem; color: var(--hm-muted); }
.ps-float__ico { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 11px; color: var(--tone); background: color-mix(in srgb, var(--tone) 16%, transparent); font-size: 1.05rem; }
.ps-float--qr { top: -6px; right: 3%; }
.ps-float--sync { bottom: 6px; right: 6%; }
.ps-app.is-anim .ps-float { opacity: 0; transform: translateY(10px) scale(.94); }
.ps-app.is-anim .ps-float.is-show { opacity: 1; transform: none; }

/* ---------- تعهدها ---------- */
.ps-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: clamp(40px, 6vw, 64px); }
.ps-facts li { display: grid; justify-items: center; gap: 4px; padding: 18px 12px; border-radius: 18px; background: var(--hm-glass); border: 1px solid var(--hm-line); text-align: center; }
.ps-facts .ps-i { font-size: 1.4rem; color: var(--hm-blue-ink); margin-bottom: 4px; }
.ps-facts b { font-size: 1.15rem; color: var(--hm-text); }
.ps-facts small { font-size: .82rem; color: var(--hm-muted); }

/* =====================================================================
   PAINS (قبل / بعد)
   ===================================================================== */
.ps-pains__list { display: grid; gap: 14px; max-width: 960px; margin-inline: auto; }
.ps-pains__list li { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; align-items: center; padding: 14px; border-radius: 20px; background: var(--hm-surface); border: 1px solid var(--hm-line); box-shadow: var(--hm-shadow-sm); }
.ps-pain, .ps-fix { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; font-size: .97rem; line-height: 1.8; }
.ps-pain { color: var(--hm-muted); background: color-mix(in srgb, #ef4444 6%, transparent); }
.ps-fix { color: var(--hm-text); font-weight: 700; background: color-mix(in srgb, #10b981 9%, transparent); }
.ps-badge { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%; color: #fff; font-size: .95rem; }
.ps-badge--bad { background: #ef4444; }
.ps-badge--good { background: #10b981; }
.ps-pains__arrow { justify-self: center; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: var(--hm-blue-ink); background: color-mix(in srgb, var(--hm-blue) 12%, transparent); }
.ps-pains__arrow .ps-i { transform: rotate(-90deg); }

/* =====================================================================
   FLOW (مسیر سفارش)
   ===================================================================== */
.ps-flow { display: grid; gap: 0; max-width: 560px; margin-inline: auto; }
.ps-flow__node { position: relative; display: grid; grid-template-columns: 60px minmax(0, 1fr); column-gap: 16px; padding-bottom: 30px; text-align: start; }
.ps-flow__node:last-child { padding-bottom: 0; }
.ps-flow__ico { grid-row: span 2; position: relative; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 20px; color: #fff; font-size: 1.5rem; background: linear-gradient(150deg, color-mix(in srgb, var(--tone) 65%, #fff), var(--tone)); box-shadow: 0 16px 30px -14px var(--tone); z-index: 1; }
.ps-flow__ico::after { content: ""; position: absolute; inset: -6px; border-radius: 24px; border: 2px solid var(--tone); opacity: 0; animation: ps-ring 5s ease-out infinite; animation-delay: calc(var(--i) * 1s); }
.ps-flow__ico em { position: absolute; top: -6px; inset-inline-end: -6px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font-style: normal; font-size: .72rem; font-weight: 700; color: var(--tone); background: var(--hm-surface); border: 2px solid var(--tone); }
.ps-flow__node h3 { align-self: end; font-size: 1.05rem; color: var(--hm-text); line-height: 1.6; }
.ps-flow__node p { margin-top: 4px; font-size: .92rem; color: var(--hm-muted); line-height: 1.9; }
.ps-flow__node:not(:last-child)::before {
  content: ""; position: absolute; inset-inline-start: 29px; top: 66px; bottom: 6px; width: 2px; border-radius: 2px;
  background:
    linear-gradient(to bottom, transparent, var(--tone), transparent) 0 0 / 100% 40% no-repeat,
    repeating-linear-gradient(to bottom, var(--hm-line-2) 0 6px, transparent 6px 12px);
  animation: ps-flow-y 2.6s linear infinite; animation-delay: calc(var(--i) * .5s);
}

.ps-status { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 14px; margin-top: 44px; }
.ps-status__label { font-size: .9rem; color: var(--hm-muted); font-weight: 700; }
.ps-status ol { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.ps-status li { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; font-size: .86rem; font-weight: 700; color: var(--hm-text-2); background: var(--hm-surface); border: 1px solid var(--hm-line-2); animation: ps-step 6s ease-in-out infinite; animation-delay: calc(var(--i) * 1.2s); }
.ps-status li + li::before { content: ""; width: 6px; height: 6px; margin-inline-end: 2px; border-top: 2px solid var(--hm-muted); border-left: 2px solid var(--hm-muted); transform: rotate(-45deg); opacity: .6; }

/* =====================================================================
   OFFLINE
   ===================================================================== */
.ps-offline { position: relative; isolation: isolate; overflow: hidden; color: #fff; padding: var(--hm-sec-y) 0; }
.ps-offline__bg { position: absolute; inset: 0; z-index: -1; background: radial-gradient(55% 75% at 12% 15%, rgba(125, 211, 252, .38), transparent 60%), radial-gradient(50% 70% at 90% 90%, rgba(129, 140, 248, .5), transparent 60%), linear-gradient(135deg, #0a1f5c 0%, #1745b8 50%, #2563eb 100%); }
.ps-offline__bg::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .14) 1.2px, transparent 1.2px); background-size: 24px 24px; -webkit-mask-image: radial-gradient(60% 70% at 70% 50%, #000, transparent 75%); mask-image: radial-gradient(60% 70% at 70% 50%, #000, transparent 75%); }
.ps-offline__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; align-items: center; }
.ps-offline__grid > * { min-width: 0; }
.ps-offline__copy { text-align: center; }
.ps-chip-light { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .25); font-weight: 700; font-size: .86rem; }
.ps-offline__copy h2 { margin-top: 18px; font-size: clamp(1.6rem, 1.1rem + 2.4vw, 2.6rem); line-height: 1.45; text-wrap: balance; }
.ps-offline__copy > p { margin: 14px auto 0; max-width: 520px; opacity: .9; font-size: 1.02rem; line-height: 2; }
.ps-offline__list { display: grid; gap: 12px; margin: 28px auto 0; max-width: 520px; text-align: start; }
.ps-offline__list li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border-radius: 16px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); font-size: .9rem; line-height: 1.8; color: rgba(255, 255, 255, .82); }
.ps-offline__list .ps-i { margin-top: 2px; width: 36px; height: 36px; padding: 8px; border-radius: 11px; background: rgba(255, 255, 255, .14); color: #fff; }
.ps-offline__list b { display: block; color: #fff; font-size: .98rem; }

.ps-offline__visual { display: grid; place-items: center; }
.ps-net {
  position: relative; width: min(440px, 100%); padding: 22px; border-radius: 26px;
  background: rgba(8, 18, 52, .55); border: 1px solid rgba(255, 255, 255, .18);
  box-shadow: 0 40px 80px -30px rgba(2, 8, 30, .7); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
.ps-net__head { display: flex; align-items: center; gap: 14px; }
.ps-net__sig { position: relative; display: grid; place-items: center; flex: none; width: 52px; height: 52px; border-radius: 16px; font-size: 1.5rem; background: rgba(34, 197, 94, .2); color: #4ade80; transition: background-color .4s, color .4s; }
.ps-net__sig .ps-i { grid-area: 1 / 1; transition: opacity .3s, transform .3s; }
.ps-net__off { opacity: 0; transform: scale(.6); }
.ps-net__txt b { display: block; font-size: 1rem; line-height: 1.6; }
.ps-net__txt small { font-size: .82rem; opacity: .7; }
.ps-net__queue { display: grid; gap: 8px; margin-top: 20px; min-height: 148px; align-content: start; }
.ps-net__queue li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 13px; font-size: .88rem; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); animation: ps-line-in .45s cubic-bezier(.2, .8, .2, 1.2) both; }
.ps-net__queue em { font-style: normal; font-size: .76rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: rgba(245, 158, 11, .2); color: #fcd34d; transition: background-color .3s, color .3s; }
.ps-net__queue li.is-synced em { background: rgba(34, 197, 94, .2); color: #86efac; }
.ps-net__bar { height: 6px; margin-top: 16px; border-radius: 999px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.ps-net__bar span { display: block; width: 100%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #22c55e, #4ade80); transform-origin: right; transition: transform .6s ease; }
.ps-net__head { padding-inline-end: 64px; }
.ps-net__cloud { position: absolute; top: 22px; left: 22px; width: 52px; height: 52px; padding: 10px 8px; border-radius: 16px; color: #86efac; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); transition: color .4s, background-color .4s; }
.ps-net__cloud-check { stroke-dasharray: 40; stroke-dashoffset: 0; transition: stroke-dashoffset .6s ease .2s; }

.ps-net[data-state="offline"] .ps-net__sig { background: rgba(245, 158, 11, .2); color: #fbbf24; }
.ps-net[data-state="offline"] .ps-net__on { opacity: 0; transform: scale(.6); }
.ps-net[data-state="offline"] .ps-net__off { opacity: 1; transform: none; }
.ps-net[data-state="offline"] .ps-net__cloud { color: rgba(255, 255, 255, .35); }
.ps-net[data-state="offline"] .ps-net__cloud-check,
.ps-net[data-state="syncing"] .ps-net__cloud-check { stroke-dashoffset: 40; }
.ps-net[data-state="syncing"] .ps-net__sig { background: rgba(56, 189, 248, .2); color: #7dd3fc; }
.ps-net[data-state="syncing"] .ps-net__cloud { color: #7dd3fc; }

/* =====================================================================
   LIVE DEMO
   ===================================================================== */
.ps-demo__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; align-items: start; }
.ps-demo__grid > * { min-width: 0; }

.ps-phone { position: relative; width: min(310px, 100%); margin-inline: auto; padding: 12px; border-radius: 44px; background: var(--hm-phone); box-shadow: var(--hm-shadow), 0 0 0 2px rgba(255, 255, 255, .06) inset; }
.ps-phone__notch { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); width: 34%; height: 24px; border-radius: 0 0 16px 16px; background: var(--hm-phone); z-index: 2; }
.ps-phone__screen { display: grid; gap: 12px; padding: 34px 14px 16px; border-radius: 34px; background: var(--hm-surface); }
.ps-phone__head b { display: block; font-size: 1rem; color: var(--hm-text); }
.ps-phone__head small { font-size: .78rem; color: var(--hm-muted); }
.ps-phone__img { width: 100%; height: 132px; object-fit: cover; border-radius: 18px; background: var(--hm-surface-2); }
.ps-phone__items { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.ps-phone__items label { position: relative; display: block; cursor: pointer; color: inherit; font-size: inherit; }
.ps-phone__items input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.ps-phone__items label > span { display: flex; justify-content: space-between; align-items: center; min-height: 48px; padding: 10px 14px; border-radius: 14px; border: 1.5px solid var(--hm-line-2); background: var(--hm-surface-2); transition: border-color .2s, background-color .2s; }
.ps-phone__items b { font-size: .92rem; color: var(--hm-text); }
.ps-phone__items small { font-size: .8rem; color: var(--hm-muted); }
.ps-phone__items input:checked + span { border-color: var(--hm-blue); background: color-mix(in srgb, var(--hm-blue) 10%, transparent); }
.ps-phone__items input:focus-visible + span { outline: 2px solid var(--hm-blue); outline-offset: 2px; }
.ps-phone .hm-btn .ps-i { font-size: 1.15rem; }

.ps-board { border-radius: 24px; background: var(--hm-surface); border: 1px solid var(--hm-line-2); box-shadow: var(--hm-shadow); overflow: hidden; }
.ps-board__bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; padding: 14px 18px; border-bottom: 1px solid var(--hm-line); background: var(--hm-surface-2); }
.ps-board__sum { font-size: .86rem; color: var(--hm-muted); }
.ps-board__sum b { color: var(--hm-text); font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.ps-board__sum b.is-bump { animation: ps-bump .5s ease; }
.ps-board__cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 14px; }
.ps-board__col { min-width: 0; padding: 12px; border-radius: 18px; background: var(--hm-bg-soft); border: 1px solid var(--hm-line); }
.ps-board__col h3 { display: flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--hm-text); margin-bottom: 10px; }
.ps-board__col h3 em { margin-inline-start: auto; font-style: normal; font-size: .76rem; min-width: 24px; text-align: center; padding: 1px 8px; border-radius: 999px; background: var(--hm-surface); color: var(--hm-muted); }
.ps-board__list { display: grid; gap: 10px; min-height: 64px; align-content: start; }
.ps-board__empty { font-size: .84rem; color: var(--hm-muted); line-height: 1.8; padding: 8px 4px; }
.ps-ticket { display: grid; gap: 8px; padding: 12px; border-radius: 14px; background: var(--hm-surface); border: 1px solid var(--hm-line-2); box-shadow: var(--hm-shadow-sm); animation: ps-line-in .45s cubic-bezier(.2, .8, .2, 1.2) both; }
.ps-ticket__meta { display: flex; justify-content: space-between; gap: 8px; font-size: .76rem; color: var(--hm-muted); }
.ps-ticket__meta b { color: var(--hm-blue-ink); }
.ps-ticket__title { font-size: .92rem; font-weight: 700; color: var(--hm-text); }
.ps-ticket button { min-height: 44px; border: 0; border-radius: 12px; cursor: pointer; font-weight: 700; font-size: .84rem; color: #fff; background: var(--hm-grad); transition: transform .15s, filter .2s; }
.ps-ticket button:hover { filter: brightness(1.08); }
.ps-ticket button:active { transform: scale(.97); }
.ps-ticket--prep button { background: linear-gradient(135deg, #d97706, #f59e0b); }
.ps-ticket--ready button { background: linear-gradient(135deg, #059669, #10b981); }
.ps-ticket.is-new { box-shadow: 0 0 0 3px color-mix(in srgb, var(--hm-blue) 35%, transparent); }

/* =====================================================================
   FEATURES (bento)
   ===================================================================== */
.ps-bento { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.ps-card {
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 10px; padding: 24px;
  border-radius: 22px; background: var(--hm-surface); border: 1px solid var(--hm-line); box-shadow: var(--hm-shadow-sm);
  transition: border-color .25s, transform .25s, box-shadow .25s;
}
.ps-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, transparent, var(--tone), transparent); opacity: .7; }
.ps-card:hover { border-color: color-mix(in srgb, var(--tone) 45%, transparent); transform: translateY(-3px); box-shadow: 0 24px 40px -26px color-mix(in srgb, var(--tone) 70%, transparent); }
.ps-card__ico { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 15px; font-size: 1.35rem; color: var(--tone); background: color-mix(in srgb, var(--tone) 14%, transparent); }
.ps-card h3 { margin-top: 4px !important; font-size: 1.06rem; color: var(--hm-text); line-height: 1.6; }
.ps-card p { color: var(--hm-muted); font-size: .93rem; line-height: 1.95; }
.ps-card__art { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 10px; }
.ps-art-types span { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 12px; font-size: .84rem; font-weight: 700; color: var(--hm-text-2); background: var(--hm-surface-2); border: 1px solid var(--hm-line-2); }
.ps-art-types span.is-on { color: #fff; background: var(--hm-grad); border-color: transparent; }
.ps-art-feed { display: grid; gap: 8px; }
.ps-art-feed span { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 12px; font-size: .82rem; color: var(--hm-muted); background: var(--hm-surface-2); border: 1px solid var(--hm-line); animation: ps-feed 6s ease-in-out infinite; }
.ps-art-feed span:nth-child(2) { animation-delay: 2s; }
.ps-art-feed span:nth-child(3) { animation-delay: 4s; }
.ps-art-feed .ps-i { color: var(--tone); }
.ps-art-feed b { color: var(--hm-text); }

/* =====================================================================
   ROLES
   ===================================================================== */
.ps-roles { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; max-width: 1000px; margin-inline: auto; }
.ps-role { position: relative; overflow: hidden; padding: clamp(22px, 3vw, 32px); border-radius: 26px; background: var(--hm-surface); border: 1px solid var(--hm-line); box-shadow: var(--hm-shadow-sm); }
.ps-role::after { content: ""; position: absolute; width: 260px; height: 260px; top: -130px; inset-inline-end: -90px; border-radius: 50%; background: radial-gradient(closest-side, var(--role), transparent); opacity: .22; pointer-events: none; }
.ps-role--cashier { --role: #3b82f6; }
.ps-role--owner { --role: #8b5cf6; }
.ps-role__top { display: flex; align-items: center; gap: 14px; }
.ps-role__ico { display: grid; place-items: center; flex: none; width: 56px; height: 56px; border-radius: 18px; color: #fff; font-size: 1.5rem; background: linear-gradient(150deg, color-mix(in srgb, var(--role) 60%, #fff), var(--role)); box-shadow: 0 16px 30px -14px var(--role); }
.ps-role h3 { font-size: 1.2rem; color: var(--hm-text); }
.ps-role__top p { font-size: .9rem; color: var(--hm-muted); margin-top: 2px; }
.ps-role .hm-checks { margin: 22px 0 0; width: auto; }

/* =====================================================================
   SETUP + RELEASE
   ===================================================================== */
.ps-steps { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.ps-steps li { position: relative; padding: 26px 24px; border-radius: 22px; background: var(--hm-surface); border: 1px solid var(--hm-line); }
.ps-steps__n { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 15px; color: #fff; font-size: 1.25rem; font-weight: 700; background: var(--hm-grad); box-shadow: var(--hm-glow); margin-bottom: 14px; }
.ps-steps h3 { font-size: 1.06rem; color: var(--hm-text); }
.ps-steps p { margin: 6px 0 12px !important; color: var(--hm-muted); font-size: .93rem; line-height: 1.9; }

.ps-release { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; margin-top: 28px; scroll-margin-top: 110px; }
.ps-sys, .ps-notes { padding: clamp(22px, 3vw, 30px); border-radius: 24px; background: var(--hm-surface); border: 1px solid var(--hm-line-2); }
.ps-sys h3, .ps-notes h3 { display: flex; align-items: center; gap: 10px; font-size: 1.08rem; color: var(--hm-text); }
.ps-sys h3 .ps-i, .ps-notes h3 .ps-i { color: var(--hm-blue-ink); font-size: 1.3rem; }
.ps-sys dl { display: grid; gap: 0; margin: 16px 0 20px; }
.ps-sys dl div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px dashed var(--hm-line-2); font-size: .93rem; }
.ps-sys dt { color: var(--hm-muted); }
.ps-sys dd { margin: 0; color: var(--hm-text); font-weight: 700; }
.ps-sys .hm-btn .ps-i { font-size: 1.2rem; }
.ps-sys__web { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; margin-top: 14px !important; font-size: .86rem; color: var(--hm-muted); }
.ps-notes ul { display: grid; gap: 10px; margin-top: 16px; }
.ps-notes li { position: relative; padding-inline-start: 26px; color: var(--hm-text-2); font-size: .94rem; line-height: 1.9; }
.ps-notes li::before { content: ""; position: absolute; inset-inline-start: 0; top: .55em; width: 12px; height: 12px; border-radius: 4px; background: var(--hm-grad); transform: rotate(45deg) scale(.8); }
.ps-notes__foot { margin-top: 18px !important; padding-top: 14px; border-top: 1px solid var(--hm-line); font-size: .84rem; color: var(--hm-muted); }

/* =====================================================================
   COMPARE
   ===================================================================== */
.ps-cmp { max-width: 1000px; margin-inline: auto; }
.ps-cmp table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .93rem; }
.ps-cmp thead { display: none; }
.ps-cmp tbody tr { display: grid; gap: 6px; margin-bottom: 12px; padding: 16px; border-radius: 18px; background: var(--hm-surface); border: 1px solid var(--hm-line); }
.ps-cmp tbody th { text-align: start; font-size: 1rem; color: var(--hm-text); padding-bottom: 6px; }
.ps-cmp td { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; color: var(--hm-muted); }
.ps-cmp td::before { content: attr(data-label); color: var(--hm-text-2); font-size: .84rem; }
.ps-cmp td.is-us { margin-top: 4px; padding: 10px 12px; border-radius: 12px; color: var(--hm-text); font-weight: 700; background: color-mix(in srgb, var(--hm-blue) 10%, transparent); align-items: center; }
.ps-cmp td.is-us .ps-i { order: 2; color: #10b981; margin-inline-start: auto; }
.ps-cmp td.is-us::before { color: var(--hm-blue-ink); font-weight: 700; white-space: nowrap; }

/* =====================================================================
   BUSINESSES
   ===================================================================== */
.ps-biz { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.ps-biz li { display: flex; gap: 16px; align-items: flex-start; padding: 20px; border-radius: 20px; background: var(--hm-surface); border: 1px solid var(--hm-line); transition: border-color .25s, transform .25s; }
.ps-biz li:hover { border-color: color-mix(in srgb, var(--tone) 45%, transparent); transform: translateY(-2px); }
.ps-biz h3 { font-size: 1rem; color: var(--hm-text); line-height: 1.6; }
.ps-biz p { margin-top: 4px; color: var(--hm-muted); font-size: .9rem; line-height: 1.9; }

/* =====================================================================
   FAQ + RELATED
   ===================================================================== */
.ps-related { display: grid; gap: 8px; margin-top: 26px; padding: 18px; border-radius: 20px; background: var(--hm-surface); border: 1px solid var(--hm-line); text-align: start; }
.ps-related b { font-size: .9rem; color: var(--hm-text); margin-bottom: 4px; }
.ps-related a { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 12px; border-radius: 12px; font-size: .9rem; color: var(--hm-text-2); transition: background-color .2s, color .2s; }
.ps-related a .ps-i { color: var(--hm-blue-ink); font-size: 1.1rem; }
.ps-related a:hover { background: var(--hm-surface-2); color: var(--hm-blue-ink); }
.ps-final__tel { margin-top: 18px !important; font-size: .9rem; opacity: .85; }
.ps-final__tel a { font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.hm-final .hm-btn .ps-i { font-size: 1.15rem; }

/* =====================================================================
   KEYFRAMES
   ===================================================================== */
@keyframes ps-ping { 0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .55); } 80%, 100% { box-shadow: 0 0 0 7px rgba(34, 197, 94, 0); } }
@keyframes ps-line-in { from { opacity: 0; transform: translateY(-8px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes ps-ring { 0% { opacity: .7; transform: scale(.9); } 22%, 100% { opacity: 0; transform: scale(1.25); } }
@keyframes ps-flow-y { from { background-position: 0 -60%, 0 0; } to { background-position: 0 160%, 0 0; } }
@keyframes ps-flow-x { from { background-position: 160% 0, 0 0; } to { background-position: -60% 0, 0 0; } }
@keyframes ps-step { 0%, 14%, 100% { border-color: var(--hm-line-2); color: var(--hm-text-2); box-shadow: none; } 4%, 10% { border-color: var(--hm-blue); color: var(--hm-blue-ink); box-shadow: 0 0 0 4px color-mix(in srgb, var(--hm-blue) 18%, transparent); } }
@keyframes ps-feed { 0%, 30%, 100% { border-color: var(--hm-line); transform: none; } 6%, 22% { border-color: color-mix(in srgb, var(--tone) 50%, transparent); transform: translateX(-4px); } }
@keyframes ps-bump { 40% { transform: scale(1.18); color: #10b981; } }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 479px) {
  .ps-app__body { grid-template-columns: minmax(0, 1fr) minmax(0, 42%); min-height: 24em; }
  .ps-app__side { display: none; }
  .ps-app__tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ps-tile:nth-child(n + 5) { display: none; }
  .ps-float { max-width: 13rem; padding: 7px 10px 7px 8px; }
  .ps-float b { font-size: .74rem; }
  .ps-float small { font-size: .68rem; }
  .ps-float__ico { width: 28px; height: 28px; }
  .ps-receipt { width: 7.6rem; font-size: .66rem; }
}
@media (min-width: 560px) {
  .ps-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ps-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ps-card--wide, .ps-bento > .ps-card:last-child { grid-column: span 2; }
  .ps-biz { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 760px) {
  .ps-pains__list li { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
  .ps-pains__arrow .ps-i { transform: none; }
  .ps-board__cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ps-roles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ps-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ps-steps li:not(:last-child)::after { content: ""; position: absolute; top: 49px; inset-inline-start: calc(100% + 1px); width: 14px; height: 2px; background: var(--hm-line-2); }
  .ps-release { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }

  /* جدول واقعی در تبلت و دسکتاپ */
  .ps-cmp { overflow-x: auto; border-radius: 22px; border: 1px solid var(--hm-line); background: var(--hm-surface); }
  .ps-cmp thead { display: table-header-group; }
  .ps-cmp tbody tr { display: table-row; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; }
  .ps-cmp th, .ps-cmp td { display: table-cell; padding: 16px 18px; text-align: start; vertical-align: middle; border-bottom: 1px solid var(--hm-line); }
  .ps-cmp tbody tr:last-child > * { border-bottom: 0; }
  .ps-cmp td::before { content: none; }
  .ps-cmp thead th { font-size: .86rem; color: var(--hm-muted); font-weight: 700; background: var(--hm-surface-2); }
  .ps-cmp thead th.is-us { color: var(--hm-blue-ink); }
  .ps-cmp thead th.is-us img { width: 22px; height: 22px; vertical-align: middle; margin-inline-end: 6px; }
  .ps-cmp tbody th { font-size: .95rem; padding-bottom: 16px; }
  .ps-cmp td.is-us { margin: 0; border-radius: 0; }
  .ps-cmp td.is-us .ps-i { order: 0; margin-inline: 0 8px; }
  .ps-cmp .is-us { background: color-mix(in srgb, var(--hm-blue) 8%, transparent); }
}
@media (min-width: 1000px) {
  .ps-hero__grid { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 48px; text-align: start; }
  .ps-hero__lead { margin-inline: 0; }
  .ps-hero__cta, .ps-hero__meta { justify-content: flex-start; }
  .ps-mobile-note { margin-inline: 0; }
  .ps-hero__visual { width: 100%; max-width: 640px; }
  .ps-float--qr { right: auto; left: -5%; top: 4%; }
  .ps-float--sync { right: -4%; bottom: 14%; }

  .ps-flow { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; max-width: none; }
  .ps-flow__node { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; padding-bottom: 0; }
  .ps-flow__ico { grid-row: auto; margin-bottom: 16px; }
  .ps-flow__node h3 { align-self: auto; }
  .ps-flow__node:not(:last-child)::before {
    top: 29px; bottom: auto; inset-inline-start: calc(50% + 40px); width: calc(100% - 80px + 20px); height: 2px;
    background:
      linear-gradient(to left, transparent, var(--tone), transparent) 0 0 / 40% 100% no-repeat,
      repeating-linear-gradient(to left, var(--hm-line-2) 0 6px, transparent 6px 12px);
    animation-name: ps-flow-x;
  }

  .ps-offline__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 64px; }
  .ps-offline__copy { text-align: start; }
  .ps-offline__copy > p, .ps-offline__list { margin-inline: 0; }

  .ps-demo__grid { grid-template-columns: 310px minmax(0, 1fr); gap: 40px; align-items: center; }

  .ps-bento { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-flow: dense; }
  .ps-bento > .ps-card:last-child { grid-column: auto; }
  .ps-biz { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ps-faq__head .ps-related { max-width: 360px; }
}

@media (prefers-reduced-motion: reduce) {
  .ps-js [data-reveal] { opacity: 1; transform: none; }
}
