:root {
  color-scheme: dark;
  --bg: #070817;
  --panel: rgba(18, 22, 42, 0.66);
  --panel-soft: rgba(255, 255, 255, 0.075);
  --line: rgba(255, 255, 255, 0.14);
  --text: #f6f7fb;
  --muted: #aab0c4;
  --cyan: #67e8f9;
  --violet: #7c3aed;
  --violet-2: #a78bfa;
  --green: #22c55e;
  --amber: #fbbf24;
  --pink: #fb7185;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: Vazirmatn, IRANSans, "Segoe UI", Tahoma, system-ui, sans-serif;
  background:
    radial-gradient(circle at 18% 8%, rgba(103, 232, 249, 0.22), transparent 28rem),
    radial-gradient(circle at 88% 12%, rgba(124, 58, 237, 0.28), transparent 30rem),
    linear-gradient(180deg, #090a18 0%, #0b1020 48%, #070817 100%);
  color: var(--text);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.8), transparent 72%);
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }

.container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(22px);
  background: rgba(7, 8, 23, 0.72);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--violet), #4c1d95 60%, #10162e);
  box-shadow: 0 14px 38px rgba(124, 58, 237, .34), inset 0 0 0 1px rgba(255,255,255,.16);
  color: var(--cyan);
  font-size: 28px;
  font-weight: 900;
}
.brand-title { font-size: 30px; font-weight: 950; line-height: 1; letter-spacing: 0; }
.brand-sub { color: var(--cyan); font-size: 12px; margin-top: 4px; }
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links a {
  padding: 10px 13px;
  color: var(--muted);
  border-radius: 999px;
  transition: .2s ease;
}
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,.08); }
.nav-actions { display: flex; align-items: center; gap: 10px; position: relative; }

.btn {
  border: 0;
  border-radius: 16px;
  padding: 12px 18px;
  color: #07111f;
  background: var(--cyan);
  font-weight: 850;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(103,232,249,.22); }
.btn:active { transform: translateY(0) scale(.98); }
.btn.secondary { background: rgba(255,255,255,.09); color: var(--text); border: 1px solid var(--line); }
.btn.green { background: linear-gradient(135deg, #4ade80, #16a34a); color: #06220e; }
.btn.violet { background: linear-gradient(135deg, var(--violet-2), var(--violet)); color: white; }
.btn.full { width: 100%; }

.user-pill {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.08);
  color: var(--text);
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px 8px 14px;
}
.user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(103,232,249,.25), rgba(124,58,237,.35));
}
.profile-menu {
  position: absolute;
  left: 0;
  top: 56px;
  width: 250px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(15, 18, 36, .92);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: .18s ease;
}
.profile-menu.open { opacity: 1; visibility: visible; transform: translateY(0); }
.profile-menu a, .profile-menu button {
  width: 100%;
  border: 0;
  color: var(--text);
  background: transparent;
  text-align: right;
  padding: 11px 12px;
  border-radius: 12px;
}
.profile-menu a:hover, .profile-menu button:hover { background: rgba(255,255,255,.08); }

.hero {
  min-height: calc(100vh - 76px);
  display: grid;
  align-items: center;
  padding: 58px 0 34px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 42px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  color: var(--cyan);
  border: 1px solid rgba(103,232,249,.25);
  background: rgba(103,232,249,.08);
  border-radius: 999px;
  font-weight: 800;
  margin-bottom: 18px;
}
h1 {
  margin: 0;
  font-size: clamp(44px, 8vw, 86px);
  line-height: 1.03;
  letter-spacing: 0;
  font-weight: 950;
}
.gradient-text {
  background: linear-gradient(90deg, var(--cyan), var(--violet-2), var(--pink));
  -webkit-background-clip: text;
  color: transparent;
}
.hero-copy {
  color: #c7cbe0;
  font-size: 18px;
  line-height: 2;
  max-width: 650px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 30px;
}
.stat-mini {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.07);
}
.stat-mini strong { display: block; font-size: 22px; }
.stat-mini span { color: var(--muted); font-size: 13px; }

.hero-card {
  position: relative;
  min-height: 470px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 34px;
  padding: 22px;
  background: linear-gradient(145deg, rgba(255,255,255,.13), rgba(255,255,255,.035));
  box-shadow: var(--shadow);
  overflow: hidden;
  backdrop-filter: blur(24px);
}
.hero-card::before {
  content: "";
  position: absolute;
  inset: -80px -40px auto auto;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: rgba(103,232,249,.18);
}
.showcase-box {
  position: relative;
  height: 100%;
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
}
.box-visual {
  width: min(340px, 80%);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 38px;
  background:
    linear-gradient(135deg, rgba(103,232,249,.18), transparent 46%),
    linear-gradient(225deg, rgba(124,58,237,.34), rgba(255,255,255,.05));
  border: 1px solid rgba(255,255,255,.18);
  font-size: 118px;
  animation: floaty 5s ease-in-out infinite;
}
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.quick-pay {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  margin-top: 22px;
}
.pay-chip {
  padding: 13px 12px;
  border-radius: 16px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  color: var(--text);
  font-weight: 800;
}
.pay-chip.online { background: linear-gradient(135deg, rgba(34,197,94,.9), rgba(21,128,61,.9)); color: #06220e; }

.section { padding: 76px 0; }
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}
.section-title { margin: 0; font-size: clamp(28px, 4.4vw, 48px); font-weight: 950; }
.section-copy { color: var(--muted); line-height: 1.9; margin: 8px 0 0; max-width: 650px; }
.center { text-align: center; margin-inline: auto; }

.category-rail {
  position: sticky;
  top: 88px;
  z-index: 20;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 10px;
  margin-bottom: 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(10, 12, 28, .58);
  backdrop-filter: blur(22px);
}
.category-rail::-webkit-scrollbar { display: none; }
.cat-btn {
  white-space: nowrap;
  border: 1px solid transparent;
  border-radius: 16px;
  background: rgba(255,255,255,.08);
  color: var(--text);
  padding: 12px 16px;
  font-weight: 850;
  transition: .18s ease;
}
.cat-btn.active[data-filter="all"] { background: white; color: #0c1020; }
.cat-btn.active[data-filter="vape"] { background: linear-gradient(135deg, var(--cyan), var(--violet-2)); color: #080b19; }
.cat-btn.active[data-filter="accessory"] { background: linear-gradient(135deg, #86efac, #22c55e); color: #06220e; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.product-card {
  position: relative;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 24px;
  background: linear-gradient(160deg, rgba(255,255,255,.13), rgba(255,255,255,.045));
  padding: 18px;
  min-height: 310px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(0,0,0,.18);
  backdrop-filter: blur(18px);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.product-card:hover { transform: translateY(-7px); box-shadow: 0 26px 70px rgba(0,0,0,.32); }
.product-card.vape:hover { border-color: rgba(103,232,249,.48); }
.product-card.accessory:hover { border-color: rgba(34,197,94,.44); }
.product-top { display: flex; justify-content: space-between; align-items: start; gap: 10px; }
.product-icon {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  font-size: 36px;
  background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.14);
}
.product-card.vape .product-icon { box-shadow: inset 0 0 36px rgba(103,232,249,.13); }
.product-card.accessory .product-icon { box-shadow: inset 0 0 36px rgba(34,197,94,.13); }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}
.product-title { font-size: 18px; line-height: 1.5; margin: 18px 0 8px; font-weight: 950; }
.product-desc { color: var(--muted); line-height: 1.8; min-height: 74px; margin: 0; }
.product-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.meta {
  padding: 7px 9px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  color: #dbe1f3;
  background: rgba(255,255,255,.055);
  font-size: 12px;
}
.product-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; }
.price { font-weight: 950; font-size: 20px; }
.price small { color: var(--muted); font-size: 11px; font-weight: 600; }

.split-band {
  border: 1px solid var(--line);
  border-radius: 34px;
  background: linear-gradient(135deg, rgba(103,232,249,.12), rgba(124,58,237,.12));
  padding: 26px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.feature-card {
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 22px;
  padding: 22px;
  background: rgba(255,255,255,.075);
}
.feature-card h3 { margin: 0 0 8px; font-size: 22px; }
.feature-card p { margin: 0; color: var(--muted); line-height: 1.9; }

.reviews-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgba(255,255,255,.065);
  padding: 18px;
}
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(230px, 1fr));
  gap: 14px;
  max-height: 620px;
  overflow: auto;
  padding: 4px;
}
.review-card {
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 20px;
  padding: 16px;
  background: rgba(10,12,28,.52);
}
.review-person { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.avatar {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.14);
}
.stars { color: var(--amber); letter-spacing: 2px; }
.review-card p { color: #d6d9e8; line-height: 1.8; margin: 10px 0; }
.review-date { color: var(--muted); font-size: 12px; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.contact-card {
  border-radius: 26px;
  padding: 24px;
  background: linear-gradient(135deg, rgba(103,232,249,.13), rgba(255,255,255,.06));
  border: 1px solid var(--line);
}
.contact-card.vape-contact { background: linear-gradient(135deg, rgba(103,232,249,.17), rgba(124,58,237,.12)); }
.contact-card.support-contact { background: linear-gradient(135deg, rgba(34,197,94,.15), rgba(255,255,255,.06)); }
.contact-card h3 { margin: 0 0 10px; font-size: 24px; }
.contact-card p { color: var(--muted); line-height: 1.8; }

.footer {
  padding: 34px 0 50px;
  border-top: 1px solid var(--line);
  background: rgba(7,8,23,.58);
}
.footer-grid { display: flex; justify-content: space-between; gap: 20px; align-items: center; color: var(--muted); }

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0,0,0,.58);
  backdrop-filter: blur(12px);
}
.modal.open { display: flex; }
.modal-card {
  width: min(560px, 100%);
  border-radius: 28px;
  border: 1px solid var(--line);
  background: rgba(16,19,38,.94);
  box-shadow: var(--shadow);
  padding: 22px;
  animation: modalIn .22s ease both;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.modal-head h3 { margin: 0; font-size: 24px; }
.close {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.08);
  color: var(--text);
  width: 38px;
  height: 38px;
  border-radius: 12px;
}
.form-grid { display: grid; gap: 12px; }
.input, textarea, select {
  width: 100%;
  border: 1px solid rgba(255,255,255,.14);
  color: var(--text);
  background: rgba(255,255,255,.075);
  border-radius: 16px;
  padding: 13px 14px;
  outline: none;
}
textarea { min-height: 110px; resize: vertical; }
.avatar-picker { display: flex; flex-wrap: wrap; gap: 8px; }
.avatar-option {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.07);
}
.avatar-option.active { border-color: var(--cyan); background: rgba(103,232,249,.14); }
.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 120;
  max-width: 360px;
  padding: 14px 16px;
  border-radius: 18px;
  color: var(--text);
  background: rgba(16,19,38,.94);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transform: translateY(16px);
  opacity: 0;
  pointer-events: none;
  transition: .2s ease;
}
.toast.show { opacity: 1; transform: translateY(0); }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .5s ease, transform .5s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

.admin-layout { display: grid; grid-template-columns: 290px 1fr; min-height: 100vh; }
.admin-side {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 22px;
  border-left: 1px solid var(--line);
  background: rgba(8,10,25,.78);
  backdrop-filter: blur(18px);
}
.admin-main { padding: 26px; }
.admin-nav { display: grid; gap: 8px; margin-top: 24px; }
.admin-nav button {
  border: 1px solid transparent;
  color: var(--muted);
  background: transparent;
  border-radius: 16px;
  text-align: right;
  padding: 13px 14px;
}
.admin-nav button.active, .admin-nav button:hover { color: var(--text); background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.1); }
.admin-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 22px; }
.dash-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.dash-card {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.07);
  border-radius: 22px;
  padding: 18px;
}
.dash-card strong { display: block; font-size: 28px; margin-top: 8px; }
.panel {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255,255,255,.065);
  padding: 18px;
  margin-top: 16px;
}
.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; min-width: 760px; }
th, td { padding: 13px 10px; border-bottom: 1px solid rgba(255,255,255,.09); text-align: right; }
th { color: var(--muted); font-size: 12px; }
.status { padding: 6px 10px; border-radius: 999px; background: rgba(255,255,255,.08); font-size: 12px; }
.status.pending { background: rgba(251,191,36,.14); color: #fde68a; }
.status.delivered { background: rgba(34,197,94,.14); color: #86efac; }

@media (max-width: 980px) {
  .hero-grid, .split-band, .contact-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reviews-grid { grid-template-columns: repeat(2, minmax(220px, 1fr)); }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-side { position: relative; height: auto; border-left: 0; border-bottom: 1px solid var(--line); }
  .admin-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .nav-inner { height: auto; padding: 12px 0; flex-wrap: wrap; }
  .nav-links { order: 3; width: 100%; overflow-x: auto; }
  .hero { padding-top: 34px; }
  .hero-stats, .quick-pay, .product-grid, .reviews-grid, .dash-grid { grid-template-columns: 1fr; }
  .section-head { align-items: start; flex-direction: column; }
  .footer-grid { flex-direction: column; align-items: start; }
}
