: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;
}
.navrow { min-height: 46px; gap: .25rem; overflow: auto; }
.navrow a { color: var(--muted); padding: .45rem .7rem; white-space: nowrap; border-bottom: 2px solid transparent; }
.navrow a:hover, .navrow a.active { color: white; border-color: var(--blue); }
.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; }
}
@media (max-width: 1020px) {
  .hero-grid, .products, .filters, .two, .foot-grid, .admin-shell { grid-template-columns: 1fr; }
  .hero { min-height: 0; background-position: center top; }
  .stage { min-height: 0; }
  .console { display: block; }
  .row, .trust, .stats { grid-template-columns: repeat(2, 1fr); }
  .navrow { display: none; }
  .navrow.open { display: flex; flex-direction: column; align-items: stretch; }
  .menu-btn { display: grid; }
  .search { display: none; }
  .search.open { display: block; position: absolute; inset-inline: 1rem; top: 74px; }
}
