:root {
  --ink: #050914;
  --navy: #07111f;
  --panel: #0b1730;
  --line: rgba(120, 170, 255, .22);
  --blue: #2f7bff;
  --neon: #49d7ff;
  --violet: #7c5cff;
  --text: #eef4ff;
  --muted: #93a4c7;
  --danger: #ff5d73;
  --ok: #3ee0a2;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: Vazirmatn, sans-serif;
  background:
    radial-gradient(900px 420px at 80% -10%, rgba(47, 123, 255, .28), transparent 60%),
    radial-gradient(700px 380px at 0% 20%, rgba(124, 92, 255, .18), transparent 55%),
    var(--ink);
  color: var(--text);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
.skip {
  position: absolute; right: 1rem; top: -4rem; background: var(--blue); padding: .5rem 1rem; border-radius: 999px; z-index: 80;
}
.skip:focus { top: 1rem; }
.wrap { width: min(1180px, calc(100% - 2rem)); margin-inline: auto; }
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(5, 9, 20, .78);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.topbar, .navrow { display: flex; align-items: center; gap: 1rem; }
.topbar { min-height: 74px; }
.brand { display: flex; align-items: center; gap: .7rem; min-width: 190px; }
.brand strong { display: block; font-size: 1.05rem; letter-spacing: -.02em; }
.brand span { display: block; color: var(--muted); font-size: .72rem; }
.logo-mark {
  width: 42px; height: 42px; border-radius: 12px; object-fit: cover;
  border: 1px solid var(--line);
  box-shadow: 0 0 24px rgba(47,123,255,.35);
}
.search {
  flex: 1; position: relative;
}
.search input, .field input, .field select, .field textarea {
  width: 100%;
  background: rgba(8, 16, 34, .85);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 999px;
  padding: .85rem 1.1rem;
  outline: none;
}
.field textarea, .field select, .admin-main input, .admin-main select, .admin-main textarea { border-radius: 14px; }
.search input:focus, .field input:focus, .field textarea:focus, .admin-main input:focus, .admin-main select:focus, .admin-main textarea:focus {
  border-color: rgba(73,215,255,.7);
  box-shadow: 0 0 0 4px rgba(47,123,255,.15);
}
.suggest {
  position: absolute; inset-inline: 0; top: calc(100% + .4rem);
  background: #0c1730; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; display: none; z-index: 30;
}
.suggest a { display: flex; gap: .7rem; align-items: center; padding: .7rem .9rem; }
.suggest a:hover { background: rgba(47,123,255,.12); }
.actions { display: flex; align-items: center; gap: .6rem; }
.icon-btn, .btn, .btn-ghost {
  border: 0; cursor: pointer; border-radius: 999px;
}
.icon-btn {
  width: 42px; height: 42px; display: grid; place-items: center; position: relative;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
}
.badge {
  position: absolute; top: -4px; left: -4px; min-width: 18px; height: 18px; border-radius: 99px;
  background: var(--blue); font-size: .68rem; display: grid; place-items: center; padding: 0 .25rem;
}
.meganav { display: flex; align-items: stretch; gap: .15rem; min-height: 48px; position: relative; }
.nav-link { color: var(--muted); background: none; border: 0; padding: .7rem .75rem; white-space: nowrap; border-bottom: 2px solid transparent; cursor: pointer; }
.nav-link:hover, .nav-link.active, .mega:hover .mega-btn, .mega.open .mega-btn { color: white; border-color: var(--blue); }
.mega { position: static; }
.mega-panel {
  display: none; position: absolute; top: 100%; right: 0; left: 0; z-index: 30;
  grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem;
  padding: 1rem; border-radius: 0 0 18px 18px;
  background: rgba(7, 14, 30, .96); border: 1px solid var(--line); border-top: 0;
  box-shadow: 0 24px 50px rgba(0,0,0,.35);
}
.mega:hover .mega-panel, .mega:focus-within .mega-panel, .mega.open .mega-panel { display: grid; }
.mega-col { display: grid; align-content: start; gap: .25rem; }
.mega-head { color: white; font-weight: 800; padding: .35rem .2rem .55rem; border-bottom: 1px solid rgba(255,255,255,.08); margin-bottom: .25rem; }
.mega-col a:not(.mega-head) { display: flex; align-items: center; gap: .55rem; padding: .35rem .2rem; color: var(--muted); border-radius: 10px; }
.mega-col a:not(.mega-head):hover { background: rgba(47,123,255,.12); color: white; }
.mega-col img { width: 36px; height: 36px; object-fit: cover; border-radius: 8px; }
.mega-all { grid-column: 1 / -1; text-align: center; color: var(--neon); padding: .4rem; }
.menu-btn { display: none; }
.hero {
  position: relative; padding: 2.6rem 0 1.4rem; overflow: hidden; min-height: 620px;
  background:
    linear-gradient(to left, rgba(5,9,20,.9) 0%, rgba(5,9,20,.35) 28%, rgba(5,9,20,.15) 52%, rgba(5,9,20,.82) 100%),
    url('/images/hero-bg.png') center 42% / cover no-repeat;
}
.hero-grid { display: grid; grid-template-columns: minmax(280px, 1fr) minmax(240px, .9fr) minmax(260px, 320px); gap: 1.2rem; align-items: center; }
.kicker { color: #b9cff8; margin-bottom: .6rem; }
h1, h2, h3 { margin: 0 0 .6rem; line-height: 1.35; }
.hero h1 { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 800; }
.grad { background: linear-gradient(90deg, #fff, #8ec5ff 40%, #b9a6ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { color: var(--muted); max-width: 38rem; }
.cta { display: flex; gap: .7rem; flex-wrap: wrap; margin-top: 1.2rem; }
.btn { background: linear-gradient(90deg, #2f7bff, #49a6ff); color: white; padding: .8rem 1.2rem; box-shadow: 0 10px 30px rgba(47,123,255,.35); }
.btn-ghost { background: transparent; border: 1px solid var(--line); padding: .8rem 1.2rem; }
.btn:hover, .product-card:hover, .cat-card:hover { transform: translateY(-3px); }
.btn, .product-card, .cat-card, .glass { transition: .25s ease; }
.stage { position: relative; min-height: 480px; }
.console { display: none; width: 100%; height: 420px; object-fit: contain; filter: drop-shadow(0 24px 40px rgba(47,123,255,.35)); }
.glow {
  position: absolute; inset: 15% 10%; border-radius: 50%;
  background: radial-gradient(circle, rgba(47,123,255,.45), transparent 68%);
  filter: blur(8px); z-index: 0;
}
.console { position: relative; z-index: 1; animation: float 6s ease-in-out infinite; }
.dns-card, .glass, .product-card, .cat-card, .trust div, .admin-card {
  background: linear-gradient(180deg, rgba(16, 28, 56, .86), rgba(8, 14, 30, .88));
  border: 1px solid var(--line);
  box-shadow: 0 20px 50px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.04);
  backdrop-filter: blur(10px);
}
.dns-card { border-radius: 22px; padding: 1.1rem; }
.dns-card h2 { font-size: 1.25rem; }
.dns-card ul { margin: .8rem 0; padding: 0; list-style: none; color: #d5e4ff; }
.dns-card li { padding: .38rem 0 .38rem 0; border-bottom: 1px solid rgba(255,255,255,.05); }
.section { padding: 1.4rem 0; }
.section h2 { font-size: 1.35rem; }
.row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .8rem; }
.products { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .9rem; }
.cat-card, .product-card { border-radius: 18px; overflow: hidden; }
.cat-card { min-height: 150px; padding: 1rem; display: flex; flex-direction: column; justify-content: flex-end; position: relative; }
.cat-card img { width: 100%; height: 120px; object-fit: cover; border-radius: 12px; }
.product-card .thumb img { width: 100%; height: 190px; object-fit: cover; }
.product-card .thumb { position: relative; overflow: hidden; background: #07111f; }
.product-card .thumb img { transition: transform .45s ease; }
.product-card:hover .thumb img { transform: scale(1.06); }
.product-card:hover { box-shadow: 0 0 0 1px rgba(73,215,255,.45), 0 16px 40px rgba(47,123,255,.18); }
.pad { padding: .9rem; }
.muted { color: var(--muted); }
.price { font-weight: 800; }
.old { color: #8ea0c4; text-decoration: line-through; font-size: .85rem; margin-inline-start: .4rem; }
.off { position: absolute; top: .6rem; right: .6rem; background: #12306a; border: 1px solid var(--line); border-radius: 999px; padding: .15rem .5rem; font-size: .75rem; }
.card-actions { display: flex; justify-content: space-between; align-items: center; margin-top: .7rem; }
.filters { display: grid; grid-template-columns: 250px 1fr; gap: 1rem; }
.filter-box, .panel { border-radius: 18px; padding: 1rem; }
.field { display: grid; gap: .35rem; margin-bottom: .8rem; }
.stars { color: #ffd56a; letter-spacing: .08em; }
.gallery { display: grid; gap: .6rem; }
.gallery img { width: 100%; max-height: 460px; object-fit: contain; border-radius: 18px; background: #07111f; }
.trust { display: grid; grid-template-columns: repeat(5, 1fr); gap: .7rem; margin: 1rem 0 0; }
.trust div { border-radius: 16px; padding: .9rem; text-align: center; color: var(--muted); font-size: .85rem; }
.site-footer { margin-top: 2rem; border-top: 1px solid rgba(255,255,255,.06); padding: 2rem 0; color: var(--muted); }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 1rem; }
.site-footer a { display: block; padding: .2rem 0; }
.alert { border-radius: 14px; padding: .8rem 1rem; margin: .8rem 0; background: rgba(47,123,255,.12); border: 1px solid var(--line); }
.alert.err { background: rgba(255,93,115,.12); }
.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: .7rem; border-bottom: 1px solid rgba(255,255,255,.06); text-align: right; white-space: nowrap; }
.admin-shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.side { background: #070e1c; border-left: 1px solid rgba(255,255,255,.06); padding: 1rem; }
.side a { display: block; padding: .55rem .7rem; border-radius: 10px; color: var(--muted); }
.side a:hover, .side a.active { background: rgba(47,123,255,.15); color: white; }
.admin-main { padding: 1.2rem; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; }
.admin-card { border-radius: 16px; padding: 1rem; }
.pager { display: flex; gap: .4rem; margin-top: 1rem; }
.pager a, .pager span { padding: .35rem .7rem; border-radius: 10px; border: 1px solid var(--line); }
.two { display: grid; grid-template-columns: 1.1fr .9fr; gap: 1rem; }
.mobile-nav { display: none; }
@keyframes float { 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
.hero-slider { position: relative; }
.slide {
  display: none; min-height: 540px; align-items: center; padding: 3.2rem 0 4rem;
  background-position: center; background-size: cover;
}
.slide.on { display: flex; }
.slide-copy { max-width: 640px; }
.slide-copy h1 { font-size: clamp(1.8rem, 4vw, 3.1rem); }
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line);
  background: rgba(5,9,20,.55); color: white; cursor: pointer; font-size: 1.4rem;
}
.hero-arrow.prev { right: 1rem; }
.hero-arrow.next { left: 1rem; }
.hero-dots { position: absolute; bottom: 1rem; left: 0; right: 0; display: flex; justify-content: center; gap: .4rem; }
.hero-dots button { width: 9px; height: 9px; border-radius: 99px; border: 0; background: rgba(255,255,255,.35); cursor: pointer; }
.hero-dots button.on { width: 26px; background: var(--neon); }
.ticks { list-style: none; padding: 0; margin: .8rem 0 1rem; display: grid; gap: .45rem; }
.ticks li { display: flex; gap: .55rem; align-items: flex-start; line-height: 1.7; }
.ticks li::before {
  content: "✓"; flex: none; width: 1.2rem; height: 1.2rem; margin-top: .2rem;
  border-radius: 50%; background: var(--ok); color: #04210f; font-size: .72rem;
  display: grid; place-items: center; font-weight: 800;
}
.ticks.light li { color: #e7f0ff; }
.desc { color: #d5e2f8; line-height: 1.9; }
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: .8rem; margin-bottom: .7rem; }
.sec-head h2, .center-title { margin: 0; }
.center-title { text-align: center; margin-bottom: .8rem; }
.more { color: var(--neon); font-size: .9rem; }
.rail-nav { display: none; gap: .35rem; }
.rail-nav button {
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line);
  background: rgba(255,255,255,.04); color: white; cursor: pointer;
}
.cats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .8rem; }
.cat-card strong { display: block; text-align: center; margin-top: .55rem; }
.why { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; }
.why-card { border-radius: 16px; text-align: center; }
.closer {
  text-align: center; border-radius: 24px; padding: 2rem 1.2rem;
  background:
    radial-gradient(500px 180px at 50% 0%, rgba(47,123,255,.35), transparent 70%),
    linear-gradient(180deg, rgba(16,28,56,.9), rgba(8,14,30,.92));
  border: 1px solid var(--line);
}
.closer p { color: var(--muted); }
.foot { text-align: center; padding-bottom: 1rem; }
.foot-brand { display: grid; justify-items: center; gap: .35rem; margin: 1.5rem auto .4rem; max-width: 34rem; }
.foot-brand strong { font-size: 1.25rem; color: white; }
.foot-brand p { margin: 0; line-height: 1.9; }
.foot-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 1.2rem; }
.foot-links b { display: block; color: white; margin-bottom: .35rem; }
.foot-links a { padding: .28rem 0; }
.copy { margin: 1.3rem 0 0; font-size: .85rem; }
@media (max-width: 1020px) {
  .filters, .two, .admin-shell { grid-template-columns: 1fr; }
  .why { grid-template-columns: 1fr 1fr; }
  .products:not(.rail) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-card .thumb img { height: 140px; }
  .rail-nav { display: flex; }
  .rail, .cats {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: .75rem;
    padding-bottom: .35rem; scrollbar-width: none;
  }
  .rail::-webkit-scrollbar, .cats::-webkit-scrollbar { display: none; }
  .rail > * { flex: 0 0 78%; scroll-snap-align: center; }
  .cats > * { flex: 0 0 46%; scroll-snap-align: start; }
  .slide { min-height: 0; padding: 1.6rem 0 3.2rem; background-position: center top; }
  .slide-copy h1 { font-size: 1.7rem; }
  .hero-arrow { display: none; }
  .meganav { display: none; }
  .meganav.open { display: flex; flex-direction: column; align-items: stretch; padding-bottom: .6rem; }
  .mega-panel { position: static; display: none; grid-template-columns: 1fr; border-radius: 14px; margin-bottom: .4rem; }
  .mega.open .mega-panel { display: grid; }
  .menu-btn { display: grid; }
  .search { display: none; }
  .search.open { display: block; position: absolute; inset-inline: 1rem; top: 74px; z-index: 50; }
  .trust { grid-template-columns: repeat(2, 1fr); }
  .foot-links { grid-template-columns: 1fr; gap: .8rem; }
  .section { padding: .9rem 0; }
}
