/* NazrMan — Liquid Glass, blue/purple bright theme */
@import url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/Vazirmatn-font-face.css');

:root {
  --b1: #4f8cff;
  --b2: #8b5cf6;
  --p1: #a78bfa;
  --ink: #243044;
  --ink-2: #6b7893;
  --white: #ffffff;
  --glass: rgba(255, 255, 255, .55);
  --glass-brd: rgba(255, 255, 255, .65);
  --shadow: 0 8px 32px rgba(79, 140, 255, .16);
  --r: 22px;
  --r-sm: 14px;
}
/* ۱. حذف هایلایت آبی/خاکستری موقع لمس دکمه‌ها و لینک‌ها */
* {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

/* ۲. جلوگیری از انتخاب شدن متون با نگه داشتن دست روی صفحه (شبیه اپلیکیشن) */
body {
    user-select: none;
    -webkit-user-select: none;
    overscroll-behavior-y: contain; /* جلوگیری از پرش اسکرول صفحه */
}

/* ورودی‌ها مجاز به انتخاب متن باشند */
input, textarea {
    user-select: text;
    -webkit-user-select: text;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
    font-family: "Vazirmatn";

}

html {
  scroll-behavior: smooth
}

body {
  color: var(--ink);
  min-height: 100vh;
  background: linear-gradient(135deg, #eaf2ff 0%, #f3edff 50%, #e8f7ff 100%);
  padding-bottom: 96px;
  overflow-x: hidden;
}

/* animated liquid background blobs */
.bg-blobs {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden
}

.bg-blobs span {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .5;
  animation: float 16s ease-in-out infinite
}

.bg-blobs span:nth-child(1) {
  width: 420px;
  height: 420px;
  background: #9db9ff;
  top: -80px;
  right: -80px
}

.bg-blobs span:nth-child(2) {
  width: 360px;
  height: 360px;
  background: #c9b4ff;
  bottom: -60px;
  left: -60px;
  animation-delay: -6s
}

.bg-blobs span:nth-child(3) {
  width: 260px;
  height: 260px;
  background: #a5dcff;
  top: 40%;
  left: 45%;
  animation-delay: -11s
}

@keyframes float {

  0%,
  100% {
    transform: translate(0, 0) scale(1)
  }

  50% {
    transform: translate(-30px, 40px) scale(1.12)
  }
}

/* glass */
.glass {
  background: var(--glass);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid var(--glass-brd);
  box-shadow: var(--shadow);
  border-radius: var(--r)
}

.card {
  padding: 22px;
  margin: 14px 0;
  transition: transform .35s ease, box-shadow .35s ease
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(139, 92, 246, .2)
}

/* topbar */
.topbar {
  position: sticky;
  top: 10px;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 12px auto;
  max-width: 860px;
  width: calc(100% - 24px);
  padding: 10px 18px
}

.brand {
  font-weight: 800;
  font-size: 1.15rem;
  display: flex;
  gap: 8px;
  align-items: center
}

.logo {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--b1), var(--b2));
  box-shadow: 0 4px 14px rgba(79, 140, 255, .4)
}

/* layout */
.container {
  max-width: 860px;
  margin: 0 auto;
  padding: 8px 14px
}

.hero-title {
  font-size: 1.9rem;
  font-weight: 800;
  text-align: center;
  margin: 26px 0 8px;
  line-height: 1.5
}

.grad {
  background: linear-gradient(90deg, var(--b1), var(--b2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent
}

.hero-sub {
  text-align: center;
  color: var(--ink-2);
  margin-bottom: 18px
}

.sec-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 14px
}

.muted {
  color: var(--ink-2);
  font-size: .88rem
}

.center {
  text-align: center
}

.foot {
  text-align: center;
  color: var(--ink-2);
  font-size: .8rem;
  padding: 22px 0 10px
}

/* steps */
.step {
  display: none
}

.step.active {
  display: block;
  animation: stepIn .5s cubic-bezier(.2, .8, .2, 1)
}

@keyframes stepIn {
  from {
    opacity: 0;
    transform: translateY(22px) scale(.98)
  }

  to {
    opacity: 1;
    transform: none
  }
}

.animate-up {
  animation: up .6s cubic-bezier(.2, .8, .2, 1) both
}

.d1 {
  animation-delay: .1s
}

.d2 {
  animation-delay: .2s
}

@keyframes up {
  from {
    opacity: 0;
    transform: translateY(18px)
  }

  to {
    opacity: 1;
    transform: none
  }
}

/* chips & items */
.grid {
  display: grid;
  gap: 10px
}

.chips {
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr))
}

.chip {
  padding: 14px;
  border-radius: var(--r-sm);
  border: 1px solid var(--glass-brd);
  background: rgba(255, 255, 255, .5);
  cursor: pointer;
  text-align: center;
  font-weight: 600;
  transition: all .25s ease;
  position: relative;
  overflow: hidden
}

.chip::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, .7) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .6s
}

.chip:hover::after {
  transform: translateX(120%)
}

.chip:hover,
.chip.sel {
  background: linear-gradient(135deg, var(--b1), var(--b2));
  color: #fff;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(99, 102, 241, .35)
}

.items {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr))
}

.item {
  padding: 16px;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, .55);
  border: 1px solid var(--glass-brd);
  cursor: pointer;
  transition: all .25s ease
}

.item b {
  display: block;
  margin-bottom: 6px
}

.item p {
  font-size: .8rem;
  color: var(--ink-2)
}

.item:hover,
.item.sel {
  background: linear-gradient(135deg, rgba(79, 140, 255, .15), rgba(139, 92, 246, .18));
  border-color: var(--b1);
  transform: translateY(-3px);
  box-shadow: 0 10px 26px rgba(79, 140, 255, .22)
}

.custom-box {
  margin-top: 14px;
  text-align: center
}

/* forms */
.field {
  margin: 12px 0;
  text-align: right
}

.field label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--ink-2)
}

.field input,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--r-sm);
  border: 1px solid rgba(139, 92, 246, .25);
  background: rgba(255, 255, 255, .7);
  font: inherit;
  color: var(--ink);
  transition: all .25s;
  outline: none
}

.field input:focus,
.field textarea:focus {
  border-color: var(--b1);
  box-shadow: 0 0 0 4px rgba(79, 140, 255, .15);
  background: #fff
}

.check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0;
  font-size: .9rem;
  cursor: pointer
}

.check input {
  width: 18px;
  height: 18px;
  accent-color: var(--b2)
}

/* buttons */
.btn {
  font: inherit;
  font-weight: 700;
  padding: 12px 22px;
  border-radius: var(--r-sm);
  border: 1px solid var(--glass-brd);
  background: rgba(255, 255, 255, .6);
  cursor: pointer;
  transition: all .25s ease;
  color: var(--ink);
  text-decoration: none;
  display: inline-block;
  text-align: center
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(79, 140, 255, .25)
}

.btn:active {
  transform: scale(.97)
}

.btn.primary {
  background: linear-gradient(135deg, var(--b1), var(--b2));
  color: #fff;
  border: none;
  box-shadow: 0 8px 24px rgba(99, 102, 241, .4)
}

.btn.small {
  padding: 8px 14px;
  font-size: .85rem
}

.btn.full {
  width: 100%;
  margin-top: 10px
}

.link {
  background: none;
  border: none;
  color: var(--b1);
  font-weight: 700;
  cursor: pointer;
  margin-bottom: 8px
}

.back {
  display: block
}

/* bottom nav (mobile) */
.bottom-nav {
  position: fixed;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 60;
  display: flex;
  gap: 6px;
  padding: 8px;
  width: min(440px, calc(100% - 24px));
  justify-content: space-around
}

.nav-btn {
  flex: 1;
  border: none;
  background: none;
  font: inherit;
  font-size: .78rem;
  font-weight: 600;
  color: var(--ink-2);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 8px 4px;
  border-radius: 14px;
  cursor: pointer;
  text-decoration: none;
  transition: all .25s
}

.nav-btn span {
  font-size: 1.25rem;
  transition: transform .25s
}

.nav-btn.active,
.nav-btn:hover {
  color: var(--b1);
  background: rgba(255, 255, 255, .7)
}

.nav-btn:hover span {
  transform: translateY(-3px)
}

/* skeleton */
.skeleton {
  position: relative;
  overflow: hidden;
  background: rgba(139, 92, 246, .12);
  border-radius: var(--r-sm)
}

.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .7), transparent);
  animation: sh 1.3s infinite
}

@keyframes sh {
  to {
    transform: translateX(100%)
  }
}

.skeleton.chip {
  height: 48px
}

.skeleton.row {
  height: 64px;
  margin-bottom: 10px
}

/* spinner */
.spinner {
  width: 52px;
  height: 52px;
  margin: 14px auto;
  border-radius: 50%;
  border: 5px solid rgba(139, 92, 246, .2);
  border-top-color: var(--b2);
  animation: spin .8s linear infinite
}

@keyframes spin {
  to {
    transform: rotate(360deg)
  }
}

/* modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 16px
}

.modal[hidden] {
  display: none
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(60, 70, 120, .35);
  backdrop-filter: blur(6px);
  animation: fade .3s
}

@keyframes fade {
  from {
    opacity: 0
  }
}

.modal-card {
  position: relative;
  width: min(480px, 100%);
  padding: 24px;
  z-index: 1
}

.modal-card .close {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, .7);
  cursor: pointer;
  font-size: 1rem
}

.modal-card .close:hover {
  background: var(--b2);
  color: #fff
}

/* list / stats (panel) */
.list .row-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, .55);
  border: 1px solid var(--glass-brd);
  margin-bottom: 10px
}

.badge {
  font-size: .72rem;
  padding: 4px 10px;
  border-radius: 99px;
  font-weight: 700
}

.badge.success {
  background: #dcfce7;
  color: #15803d
}

.badge.pending {
  background: #fef9c3;
  color: #a16207
}

.badge.failed {
  background: #fee2e2;
  color: #b91c1c
}

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 14px
}

.stat {
  padding: 16px;
  text-align: center
}

.stat b {
  display: block;
  font-size: 1.3rem;
  color: var(--b2)
}

.stat span {
  font-size: .78rem;
  color: var(--ink-2)
}

.receipt {
  margin: 14px 0;
  padding: 14px;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, .6);
  border: 1px dashed var(--b2)
}

.receipt div {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  font-size: .9rem
}

@media(max-width:600px) {
  .hero-title {
    font-size: 1.45rem
  }

  .card {
    padding: 16px
  }

  .chips {
    grid-template-columns: 1fr 1fr
  }

  .items {
    grid-template-columns: 1fr
  }
}

@media(prefers-reduced-motion:reduce) {
  * {
    animation: none !important;
    transition: none !important
  }
}