/* =========================================================
   Algo Scripts - FiveM Source Store
   Dark neon theme · custom palette · 3D motion
   ========================================================= */

/* ---------------- Palette ---------------- */
:root {
  /* backgrounds */
  --bg: #06030c;
  --bg-deep: #020106;
  --bg-mid: #0b0614;
  --bg-darker: #05030b;

  /* panels / cards */
  --panel: #130d20;
  --panel-soft: #1c1230;
  --panel-light: #271842;

  /* text */
  --text: #E6E6FA;
  --muted: #BDB5D5;
  --badge: #E6E6FA;
  --box-text: #E6E6FA;

  /* brand accents */
  --purple: #5D3FD3;
  --purple-deep: #5D3FD3;
  --purple-mid: #7F00FF;
  --purple-soft: #BDB5D5;
  --violet: #7F00FF;
  --grape: #BF40BF;

  --pink: #BF40BF;
  --pink-deep: #BF40BF;
  --pink-light: #BF40BF;

  --blue: #7F00FF;
  --blue-light: #BDB5D5;
  --blue-deep: #5D3FD3;

  --green: #3ce8ae;
  --green-deep: #16ab83;
  --green-light: #65ffd0;

  --gold: #ffc64d;
  --gold-light: #ffe18a;
  --gold-deep: #ec991f;

  --red: #ff6478;
  --red-deep: #ed2b65;

  /* layers & borders */
  --border: rgba(189, 181, 213, .16);
  --border-soft: rgba(189, 181, 213, .10);
  --glass: rgba(230, 230, 250, .07);
  --highlight: rgba(230, 230, 250, .13);
  --glow-purple: rgba(127, 0, 255, .35);
  --glow-pink: rgba(191, 64, 191, .25);
  --glow-blue: rgba(93, 63, 211, .30);
  --border-special: rgba(191, 64, 191, .30);
  --border-hero: rgba(127, 0, 255, .32);

  /* official gradients */
  --grad-btn: linear-gradient(145deg, #7F00FF 0%, #5D3FD3 48%, #BF40BF 100%);
  --grad-card: linear-gradient(155deg, rgba(28, 20, 50, .58), rgba(16, 10, 32, .62) 55%, rgba(9, 5, 20, .66));
  --grad-panel: linear-gradient(155deg, rgba(38, 26, 66, .46), rgba(22, 14, 42, .52) 55%, rgba(10, 6, 24, .58));
  --grad-bg: linear-gradient(145deg, #0b0614 0%, #05030b 45%, #020106 100%);
  --grad-gold: linear-gradient(145deg, #ffc64d, #ec991f);
  --grad-green: linear-gradient(145deg, #3ce8ae, #16ab83);
  --grad-blue: linear-gradient(145deg, #7F00FF, #5D3FD3);

  /* modern glass tokens */
  --glass-blur: 22px;
  --glass-rim: rgba(230, 230, 250, .14);
  --glass-rim-soft: rgba(230, 230, 250, .08);
  --glass-hi: inset 0 1px 0 rgba(255, 255, 255, .09);
  --glass-glow: 0 18px 46px -22px rgba(0, 0, 0, .78), 0 0 70px -34px var(--glow-purple);

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 24px 55px -20px rgba(0, 0, 0, .7);
  --shadow-glow: 0 14px 40px -14px rgba(127, 0, 255, .55), 0 14px 40px -18px rgba(191, 64, 191, .45);

  --font: "Vazirmatn", "Segoe UI", Tahoma, sans-serif;
  --font-en: "Inter", "Segoe UI", Tahoma, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
  background-image: var(--grad-bg);
  background-attachment: fixed;
}

html[dir="rtl"] body { font-family: var(--font); }
html[dir="ltr"] body { font-family: var(--font-en); }

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

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 0; }

/* ---------------- Ambient background ---------------- */
.bg-orbs { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; will-change: transform; }
.orb-a { width: 560px; height: 560px; top: -180px; inset-inline-end: -140px;
  background: radial-gradient(circle, rgba(127, 0, 255, .5), transparent 62%);
  animation: drift 18s ease-in-out infinite, pulseGlow 7s ease-in-out infinite; }
.orb-b { width: 520px; height: 520px; bottom: -200px; inset-inline-start: -160px;
  background: radial-gradient(circle, rgba(191, 64, 191, .32), transparent 62%);
  animation: drift 22s ease-in-out infinite reverse, pulseGlow 9s ease-in-out infinite; }
.orb-c { width: 420px; height: 420px; top: 40%; inset-inline-start: 55%;
  background: radial-gradient(circle, rgba(127,0,255, .22), transparent 62%);
  animation: drift 26s ease-in-out infinite, pulseGlow 11s ease-in-out infinite; }
@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-28px, 34px) scale(1.06); }
  66% { transform: translate(24px, -22px) scale(.96); }
}
@keyframes pulseGlow { 0%, 100% { opacity: .42; } 50% { opacity: .7; } }
.bg-grain {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .028;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
}

/* ---------------- Section head ---------------- */
.section-head { text-align: center; margin-bottom: 44px; }
.section-head h2 {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 900;
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}
.section-head p { color: var(--muted); font-size: 15px; }
.section-head .accent {
  background: linear-gradient(120deg, var(--purple-soft) 0%, var(--pink) 60%, var(--gold) 120%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 26px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 15px;
  border: 1px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s, filter .18s;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.28) 50%, transparent 70%);
  transform: translateX(-130%);
  transition: transform .55s ease;
  pointer-events: none;
}
html[dir="rtl"] .btn::after { transform: translateX(130%); }
.btn:hover::after { transform: translateX(130%); }
html[dir="rtl"] .btn:hover::after { transform: translateX(-130%); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }

.btn-primary { background: var(--grad-btn); color: #fff; box-shadow: 0 12px 30px -12px rgba(93,63,211,.8); }
.btn-primary:hover { box-shadow: 0 18px 44px -12px rgba(191,64,191,.55), 0 12px 30px -12px rgba(93,63,211,.8); }

.btn-gold { background: var(--grad-gold); color: #1a1200; box-shadow: 0 12px 30px -12px rgba(236,153,31,.55); }
.btn-gold:hover { box-shadow: 0 18px 40px -12px rgba(255,198,77,.5); }

.btn-outline { background: transparent; border-color: var(--border); color: var(--muted); }
.btn-outline:hover { border-color: var(--purple); color: #fff; background: rgba(127,0,255,.12); }

.btn-sm { padding: 8px 16px; font-size: 13.5px; border-radius: 10px; }
.btn-lg { padding: 15px 34px; font-size: 16px; }

.btn-abandon { background: rgba(255,100,120,.12); color: var(--red); border-color: rgba(255,100,120,.3); }
.btn-abandon:hover { background: rgba(255,100,120,.2); }

/* ---------------- Header / Nav ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: var(--grad-panel);
  border-bottom: 1px solid var(--border-soft);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand-logo {
  width: 42px; height: 42px;
  border-radius: 13px;
  background: var(--grad-btn);
  display: grid; place-items: center;
  box-shadow: 0 10px 24px -8px rgba(127,0,255,.7);
  transition: transform .25s ease, box-shadow .25s ease;
}
.brand:hover .brand-logo { transform: rotate(-6deg) scale(1.06); box-shadow: 0 14px 30px -8px rgba(191,64,191,.6); }
.brand-logo img { width: 24px; height: 24px; }
.brand-name {
  font-weight: 900; font-size: 19px; letter-spacing: -0.3px;
  background: linear-gradient(120deg, #7F00FF, #E6E6FA 55%, #BF40BF);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.brand-tag { display: block; font-size: 11px; font-weight: 700; color: var(--muted); letter-spacing: .5px; }

.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-link {
  padding: 9px 16px; border-radius: 10px;
  color: var(--muted); font-weight: 700; font-size: 14.5px;
  border: 1px solid transparent;
  position: relative;
  transition: color .15s, background .15s, border-color .15s;
}
.nav-link:hover { color: #fff; background: rgba(255,255,255,.06); }
.nav-link.active {
  background: linear-gradient(145deg, rgba(127,0,255,.22), rgba(191,64,191,.14));
  color: #fff; border-color: var(--border-special);
}

.nav-right { display: flex; align-items: center; gap: 10px; }
.lang-toggle {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--glass);
  color: var(--muted);
  font-size: 13px; font-weight: 800;
  transition: all .15s;
}
.lang-toggle:hover { border-color: var(--purple); color: #fff; box-shadow: 0 0 18px var(--glow-purple); }

.cart-link {
  position: relative;
  width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(145deg, rgba(127,0,255,.20), rgba(191,64,191,.12));
  border: 1px solid var(--border);
  color: #fff;
  transition: all .15s;
}
.cart-link:hover { border-color: var(--purple); box-shadow: 0 8px 22px -6px var(--glow-purple); transform: translateY(-2px); }
.cart-count {
  position: absolute; top: -7px; inset-inline-end: -7px;
  min-width: 20px; height: 20px; border-radius: 999px;
  background: var(--grad-gold); color: #17120a;
  font-size: 11px; font-weight: 900;
  display: grid; place-items: center; padding: 0 5px;
  box-shadow: 0 4px 12px -2px rgba(255,198,77,.7);
}

.menu-toggle {
  display: none;
  width: 42px; height: 42px; border-radius: 12px;
  border: 1px solid var(--border);
  background: transparent; color: var(--text);
  place-items: center;
}

/* ---------------- Hero ---------------- */
.hero { position: relative; padding: 84px 0 110px; overflow: hidden; }
.hero h1 {
  font-size: clamp(30px, 5vw, 54px);
  font-weight: 900; line-height: 1.25; letter-spacing: -1px;
  margin-bottom: 18px;
}
.hero h1 .grad {
  background: linear-gradient(115deg, var(--purple-soft), var(--pink) 55%, var(--gold) 120%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  background-size: 200% 200%;
  animation: gradShift 6s ease infinite;
}
@keyframes gradShift { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.hero h1 .gold { color: var(--gold); }
.hero p.lead { color: var(--text-2, var(--muted)); font-size: 17px; max-width: 560px; margin-bottom: 28px; color: var(--muted); }

.hero-badge {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 16px; border-radius: 999px;
  background: linear-gradient(145deg, rgba(127,0,255,.16), rgba(191,64,191,.12));
  border: 1px solid var(--border-special);
  color: var(--badge);
  font-size: 13px; font-weight: 800;
  margin-bottom: 22px;
  backdrop-filter: blur(8px);
}
.hero-badge .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(60,232,174,.6); animation: pulse 2s infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(60,232,174,.55); }
  70% { box-shadow: 0 0 0 11px rgba(60,232,174,0); }
  100% { box-shadow: 0 0 0 0 rgba(60,232,174,0); }
}

.hero-grid { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 50px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 34px; }

.hero-ticks { display: flex; flex-wrap: wrap; gap: 18px; }
.hero-tick { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; font-weight: 700; }
.hero-tick .ic {
  width: 22px; height: 22px; border-radius: 50%;
  background: linear-gradient(145deg, rgba(60,232,174,.22), rgba(22,171,131,.16));
  color: var(--green); display: grid; place-items: center; font-size: 11px;
  border: 1px solid rgba(60,232,174,.35);
}

.hero-visual { display: flex; justify-content: center; perspective: 1200px; }
.hero-card {
  position: relative;
  width: 100%; max-width: 430px; aspect-ratio: 1/1;
  border-radius: 26px;
  background: var(--grad-panel);
  border: 1px solid var(--border-hero);
  box-shadow: var(--shadow), 0 0 80px -30px var(--glow-purple);
  overflow: hidden;
  display: grid; place-items: center;
  transform-style: preserve-3d;
  perspective: 1100px;
}
.hero-card img {
  transform: translate3d(var(--hopx, 0), var(--hopy, 0), 0) rotateX(var(--hrx, 0deg)) rotateY(var(--hry, 0deg));
  transform-style: preserve-3d;
  transition: transform .35s cubic-bezier(.16, 1, .3, 1), filter .3s ease;
  will-change: transform;
}
.hero-card::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(320px 230px at 28% 18%, rgba(127,0,255,.45), transparent 62%),
    radial-gradient(320px 230px at 76% 72%, rgba(191,64,191,.3), transparent 62%),
    radial-gradient(280px 200px at 65% 30%, rgba(127,0,255,.18), transparent 62%);
}
.hero-card::after {
  content: ""; position: absolute;
  width: 600px; height: 600px; inset: auto;
  top: -60%; inset-inline-start: -20%;
  background: conic-gradient(from 0deg, transparent 0 40deg, rgba(127,0,255,.6) 90deg, transparent 150deg, rgba(191,64,191,.5) 230deg, transparent 300deg);
  animation: ringSpin 9s linear infinite;
  opacity: .5;
  pointer-events: none;
}
@keyframes ringSpin { to { transform: rotate(360deg); } }
.hero-card img { width: 70%; height: 70%; position: relative; z-index: 2; filter: drop-shadow(0 18px 30px rgba(0,0,0,.5)); }

/* ---------------- Stats strip ---------------- */
.stats-strip { position: relative; margin-top: -52px; z-index: 5; }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  background: var(--grad-panel);
  border: 1px solid var(--border-hero);
  border-radius: 20px; padding: 26px 20px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}
.stat { display: flex; align-items: center; justify-content: center; gap: 14px; text-align: start; }
.stat-icon {
  width: 48px; height: 48px; flex-shrink: 0;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(127,0,255,.22), rgba(127,0,255,.12));
  border: 1px solid var(--border-special);
  display: grid; place-items: center;
  color: var(--purple-soft);
  box-shadow: 0 8px 20px -8px var(--glow-purple);
}
.stat-icon svg { width: 24px; height: 24px; }
.stat-num { font-size: 22px; font-weight: 900; letter-spacing: -0.5px; color: var(--text); }
.stat-num .unit { font-size: 13px; font-weight: 800; color: var(--purple-soft); margin-inline-start: 3px; }
.stat-label { color: var(--muted); font-size: 13px; font-weight: 700; }

/* ---------------- Category cards ---------------- */
.cats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cat-card {
  position: relative;
  padding: 28px 22px;
  border-radius: var(--radius);
  background: var(--grad-card);
  border: 1px solid var(--border);
  overflow: hidden;
  transform-style: preserve-3d;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.cat-card::before {
  content: ""; position: absolute; inset: 0 auto auto 0; width: 100%; height: 3px;
  background: var(--grad-btn); opacity: 0; transition: opacity .25s;
}
.cat-card:hover::before { opacity: 1; }
.cat-card:hover { border-color: var(--border-special); box-shadow: var(--shadow), 0 0 44px -14px var(--glow-purple); }
.cat-icon {
  width: 56px; height: 56px; border-radius: 16px;
  background: var(--grad-btn);
  display: grid; place-items: center;
  margin-bottom: 18px;
  box-shadow: 0 12px 26px -8px rgba(127,0,255,.7);
  transition: transform .3s ease;
}
.cat-card:hover .cat-icon { transform: translateZ(24px) rotate(-8deg) scale(1.08); }
.cat-icon svg { width: 28px; height: 28px; }
.cat-card h3 { font-size: 18px; font-weight: 900; margin-bottom: 6px; }
.cat-card p { color: var(--muted); font-size: 13.5px; margin-bottom: 16px; min-height: 40px; }
.cat-count { color: var(--gold); font-size: 13px; font-weight: 800; }

/* ---------------- Product grid & cards ---------------- */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.product-card {
  position: relative;
  border-radius: var(--radius);
  background: var(--grad-card);
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex; flex-direction: column;
  transform-style: preserve-3d;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .25s ease, border-color .25s, box-shadow .25s;
}
.product-card:hover { border-color: var(--border-special); box-shadow: var(--shadow), 0 0 46px -16px var(--glow-purple); }
.pc-thumb {
  position: relative;
  aspect-ratio: 4/3;
  background:
    radial-gradient(circle at 50% 34%, rgba(127, 0, 255, .32), transparent 38%),
    radial-gradient(circle at 62% 72%, rgba(93, 63, 211, .15), transparent 44%),
    linear-gradient(160deg, #1a1129, #0d0716);
  display: grid; place-items: center;
  overflow: hidden;
}
.pc-thumb::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(240px 140px at 50% 35%, rgba(191,64,191,.4), transparent 70%);
  opacity: 0; transition: opacity .3s;
}
.product-card:hover .pc-thumb::before { opacity: 1; }
.pc-thumb img, .pc-thumb svg { width: 62%; height: 62%; object-fit: contain; transition: transform .35s ease; filter: drop-shadow(0 14px 26px rgba(0,0,0,.5)); }
.product-card:hover .pc-thumb svg { transform: translateZ(30px) scale(1.08) rotate(-3deg); }
.pc-badge {
  position: absolute; top: 12px; inset-inline-start: 12px;
  padding: 4px 12px; border-radius: 999px;
  font-size: 11px; font-weight: 900; letter-spacing: .5px;
  z-index: 3;
}
.pc-badge.new { background: var(--grad-btn); color: #fff; box-shadow: 0 6px 16px -4px rgba(191,64,191,.6); }
.pc-badge.mlo { background: var(--grad-blue); color: #fff; }
.pc-category {
  position: absolute; bottom: 12px; inset-inline-start: 12px;
  padding: 4px 12px; border-radius: 999px;
  background: rgba(6, 3, 12, .72);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-special);
  font-size: 11.5px; font-weight: 800; color: var(--badge);
  z-index: 3;
}
.pc-body { padding: 18px 18px 20px; display: flex; flex-direction: column; flex: 1; gap: 10px; position: relative; z-index: 2; }
.pc-title { font-size: 16px; font-weight: 800; line-height: 1.4; transition: color .15s; }
.pc-title:hover { color: var(--purple-soft); }
.pc-desc {
  color: var(--muted); font-size: 13px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  flex: 1;
}
.pc-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; }
.price { font-weight: 900; font-size: 17px; color: var(--gold); letter-spacing: -0.4px; }
.price small { font-size: 12px; font-weight: 700; color: var(--muted); margin-inline-start: 3px; }
.pc-foot .btn { padding: 9px 18px; font-size: 13px; }

/* ---------------- Why / features ---------------- */
.why-wrap {
  display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center;
  background: var(--grad-panel);
  border: 1px solid var(--border-hero);
  border-radius: 24px; padding: 46px;
  box-shadow: var(--shadow);
}
.why-visual {
  border-radius: 18px; overflow: hidden;
  background:
    radial-gradient(circle at 50% 20%, rgba(127,0,255,.4), transparent 55%),
    radial-gradient(circle at 70% 80%, rgba(191,64,191,.18), transparent 50%),
    linear-gradient(160deg, #241638, #0d0716);
  border: 1px solid var(--border-special);
  padding: 40px;
  display: grid; place-items: center;
}
.why-visual svg { width: 78%; height: auto; filter: drop-shadow(0 18px 30px rgba(0,0,0,.45)); }
.why-list { list-style: none; display: grid; gap: 13px; margin-top: 22px; }
.why-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--muted); font-size: 14.5px; font-weight: 700; }
.why-list .check {
  width: 24px; height: 24px; flex-shrink: 0; margin-top: 2px;
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(60,232,174,.2), rgba(22,171,131,.16));
  border: 1px solid rgba(60,232,174,.4);
  color: var(--green); display: grid; place-items: center; font-size: 13px;
}
.why-features-title { font-size: 15px; font-weight: 900; color: var(--text); margin-top: 26px; margin-bottom: 14px; }

/* ---------------- Benefits ---------------- */
.benefits { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.benefit {
  text-align: center; padding: 26px 14px;
  border-radius: var(--radius);
  background: var(--grad-card);
  border: 1px solid var(--border);
  transform-style: preserve-3d;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .25s ease, border-color .25s, box-shadow .25s;
}
.benefit:hover { border-color: var(--border-special); box-shadow: var(--shadow), 0 0 40px -14px var(--glow-purple); }
.benefit .bic {
  width: 56px; height: 56px; margin: 0 auto 14px;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(127,0,255,.22), rgba(191,64,191,.14));
  border: 1px solid var(--border-special);
  display: grid; place-items: center;
  color: var(--purple-soft);
  box-shadow: 0 10px 22px -10px var(--glow-purple);
  transition: transform .3s ease;
}
.benefit:hover .bic { transform: translateZ(22px) scale(1.1); }
.benefit .bic svg { width: 26px; height: 26px; }
.benefit h4 { font-size: 14.5px; font-weight: 800; }

/* ---------------- Tabs ---------------- */
.tabs { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 36px; }
.tab-btn {
  padding: 11px 24px; border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--glass);
  color: var(--muted);
  font-size: 14.5px; font-weight: 800;
  transition: all .18s;
}
.tab-btn:hover { border-color: var(--purple); color: #fff; box-shadow: 0 0 18px -4px var(--glow-purple); }
.tab-btn.active {
  background: var(--grad-btn);
  color: #fff; border-color: transparent;
  box-shadow: 0 12px 28px -10px rgba(191,64,191,.5);
}
.tab-btn .badge {
  display: inline-grid; place-items: center;
  min-width: 20px; height: 20px; padding: 0 6px;
  margin-inline-start: 7px; border-radius: 999px;
  font-size: 11px; font-weight: 900;
  background: rgba(255,255,255,.18);
}

/* ---------------- Toolbar / search ---------------- */
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.search-box { display: flex; gap: 8px; flex: 1; min-width: 240px; max-width: 420px; }
.search-box input {
  flex: 1; padding: 12px 18px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--glass);
  color: var(--text); font-size: 14.5px;
  outline: none; transition: border-color .15s, box-shadow .15s;
}
.search-box input:focus { border-color: var(--purple); box-shadow: 0 0 0 3px var(--glow-purple); }
.search-box input::placeholder { color: var(--muted); }
.result-count { color: var(--muted); font-size: 14px; font-weight: 700; }
.result-count b { color: var(--gold); }

/* ---------------- Product detail ---------------- */
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
.detail-media {
  position: sticky; top: 90px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 50% 30%, rgba(191,64,191,.26), transparent 42%),
    linear-gradient(160deg, #231639, #0d0716);
  border: 1px solid var(--border-special);
  padding: 44px; display: grid; place-items: center;
  aspect-ratio: 1/1;
  box-shadow: var(--shadow), inset 0 0 60px -30px var(--glow-purple);
}
.detail-media img, .detail-media svg { width: 78%; height: 78%; object-fit: contain; filter: drop-shadow(0 20px 34px rgba(0,0,0,.5)); }
.detail-badges { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.pill {
  padding: 5px 14px; border-radius: 999px;
  font-size: 12px; font-weight: 800;
  background: linear-gradient(145deg, rgba(127,0,255,.2), rgba(191,64,191,.14));
  border: 1px solid var(--border-special);
  color: var(--badge);
}
.detail-title { font-size: clamp(24px, 3vw, 32px); font-weight: 900; letter-spacing: -0.5px; margin-bottom: 6px; }
.detail-cat { color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.detail-price-box {
  display: flex; align-items: center; gap: 18px;
  background: var(--grad-card);
  border: 1px solid var(--border-special);
  border-radius: var(--radius); padding: 18px 22px;
  margin: 20px 0;
  box-shadow: inset 0 0 40px -24px var(--glow-pink);
}
.detail-price { font-size: 30px; font-weight: 900; color: var(--gold); letter-spacing: -0.5px; }
.detail-price small { font-size: 14px; color: var(--muted); font-weight: 700; margin-inline-start: 5px; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.detail-desc h3, .detail-feat h3 { font-size: 18px; font-weight: 900; margin-bottom: 12px; }
.detail-desc p { color: var(--muted); font-size: 15px; }
.features-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; list-style: none; }
.features-list li {
  display: flex; align-items: center; gap: 9px;
  padding: 10px 14px; border-radius: var(--radius-sm);
  background: var(--glass);
  border: 1px solid var(--border-soft);
  color: var(--muted); font-size: 13.5px; font-weight: 700;
}
.features-list .check { color: var(--green); }

/* ---------------- Cart ---------------- */
.cart-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 28px; align-items: start; }
.cart-items { list-style: none; display: grid; gap: 14px; }
.cart-item {
  display: flex; align-items: center; gap: 16px;
  background: var(--grad-card);
  border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px 18px;
  transition: border-color .2s;
}
.cart-item:hover { border-color: var(--border-special); }
.ci-thumb {
  width: 78px; height: 78px; flex-shrink: 0;
  border-radius: 12px;
  background:
    radial-gradient(circle at 50% 30%, rgba(127,0,255,.3), transparent 60%),
    linear-gradient(160deg, #241638, #0d0716);
  display: grid; place-items: center;
  border: 1px solid var(--border-special);
}
.ci-thumb svg { width: 50%; height: 50%; }
.ci-info { flex: 1; min-width: 0; }
.ci-title { font-weight: 800; font-size: 15px; margin-bottom: 2px; }
.ci-cat { color: var(--muted); font-size: 12px; }
.ci-price { color: var(--gold); font-weight: 900; font-size: 15px; white-space: nowrap; }
.qty-control { display: flex; align-items: center; gap: 8px; }
.qty-input {
  width: 58px; text-align: center; padding: 7px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--glass);
  color: var(--text); font-weight: 700;
  outline: none; transition: border-color .15s;
}
.qty-input:focus { border-color: var(--purple); }
.ci-remove {
  width: 34px; height: 34px; border-radius: 10px;
  background: rgba(255,100,120,.12);
  border: 1px solid rgba(255,100,120,.3);
  color: var(--red); display: grid; place-items: center;
  transition: background .15s;
}
.ci-remove:hover { background: rgba(255,100,120,.22); }

.summary-card {
  background: var(--grad-card);
  border: 1px solid var(--border-special);
  border-radius: var(--radius); padding: 24px;
  position: sticky; top: 90px;
  box-shadow: var(--shadow);
}
.summary-card h3 { font-size: 18px; font-weight: 900; margin-bottom: 18px; }
.sum-row { display: flex; justify-content: space-between; padding: 9px 0; color: var(--muted); font-size: 14.5px; }
.sum-row.total {
  border-top: 1px solid var(--border);
  margin-top: 10px; padding-top: 16px;
  color: var(--text); font-weight: 900; font-size: 17px;
}
.sum-row.total .sum-val { color: var(--gold); font-size: 20px; font-weight: 900; }
.summary-card .btn { width: 100%; margin-top: 14px; }
.secure-note { text-align: center; color: var(--muted); font-size: 12.5px; margin-top: 12px; display: flex; align-items: center; justify-content: center; gap: 6px; }

/* ---------------- Checkout ---------------- */
.checkout-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; align-items: start; }
.form-card {
  background: var(--grad-card);
  border: 1px solid var(--border-special);
  border-radius: var(--radius); padding: 26px;
}
.form-card h3 { font-size: 18px; font-weight: 900; margin-bottom: 20px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13.5px; font-weight: 800; color: var(--muted); margin-bottom: 7px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 13px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--glass);
  color: var(--text); font-size: 14.5px;
  outline: none; transition: border-color .15s, box-shadow .15s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--purple); box-shadow: 0 0 0 3px var(--glow-purple);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.input-hint { color: var(--muted); font-size: 12px; margin-top: 5px; }

/* ---------------- Status pages ---------------- */
.status-box {
  max-width: 560px; margin: 0 auto; text-align: center;
  background: var(--grad-panel);
  border: 1px solid var(--border-hero);
  border-radius: 22px; padding: 46px 30px;
  box-shadow: var(--shadow);
  position: relative; overflow: hidden;
}
.status-box::before {
  content: ""; position: absolute; inset: 0 auto auto 0; width: 100%; height: 3px;
  background: var(--grad-btn);
}
.status-icon {
  width: 84px; height: 84px; margin: 0 auto 20px;
  border-radius: 50%;
  display: grid; place-items: center;
  backdrop-filter: blur(6px);
}
.status-icon.ok { background: linear-gradient(145deg, rgba(60,232,174,.18), rgba(22,171,131,.12)); color: var(--green); border: 2px solid rgba(60,232,174,.4); box-shadow: 0 0 34px -8px rgba(60,232,174,.5); }
.status-icon.fail { background: linear-gradient(145deg, rgba(255,100,120,.18), rgba(237,43,101,.12)); color: var(--red); border: 2px solid rgba(255,100,120,.4); box-shadow: 0 0 34px -8px rgba(255,100,120,.5); }
.status-box h1 { font-size: 25px; font-weight: 900; margin-bottom: 12px; }
.status-box p { color: var(--muted); font-size: 15px; margin-bottom: 24px; }
.status-meta { display: grid; gap: 10px; margin-bottom: 26px; }
.meta-row {
  display: flex; justify-content: space-between;
  background: var(--glass);
  border: 1px solid var(--border-soft);
  border-radius: 12px; padding: 12px 16px; font-size: 14px;
}
.meta-row .k { color: var(--muted); }
.meta-row .v { font-weight: 800; }
.download-btn { display: inline-flex; align-items: center; gap: 10px; }

/* ---------------- Footer ---------------- */
.site-footer { margin-top: 40px; border-top: 1px solid var(--border-soft); background: linear-gradient(180deg, var(--bg-mid), var(--bg-deep)); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr; gap: 34px; padding: 54px 0 40px; }
.footer-brand { display: flex; align-items: center; gap: 11px; margin-bottom: 14px; }
.footer-about { color: var(--muted); font-size: 13.5px; max-width: 300px; margin-bottom: 18px; }
.footer-col h4 { font-size: 15px; font-weight: 900; margin-bottom: 16px; }
.footer-col ul { list-style: none; display: grid; gap: 9px; }
.footer-col a { color: var(--muted); font-size: 13.5px; transition: color .15s; }
.footer-col a:hover { color: var(--purple-soft); }
.footer-contact li { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 13.5px; }
.footer-contact svg { color: var(--purple-soft); flex-shrink: 0; width: 17px; height: 17px; }
.socials { display: flex; gap: 10px; margin-top: 16px; }
.social-btn {
  width: 40px; height: 40px; border-radius: 12px;
  background: linear-gradient(145deg, rgba(127,0,255,.2), rgba(191,64,191,.12));
  border: 1px solid var(--border);
  color: #fff; display: grid; place-items: center;
  transition: transform .15s, border-color .15s, box-shadow .15s;
}
.social-btn:hover { transform: translateY(-3px) scale(1.06); border-color: var(--purple); box-shadow: 0 10px 22px -8px var(--glow-purple); }
.social-btn svg { width: 19px; height: 19px; }
.footer-bottom {
  border-top: 1px solid var(--border-soft);
  padding: 20px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  color: var(--muted); font-size: 13px;
}
.footer-bottom .ir { display: inline-flex; align-items: center; gap: 6px; }
.footer-bottom .ir svg { color: var(--pink); }

/* ---------------- Toast ---------------- */
.toast {
  position: fixed; bottom: 24px; inset-inline-start: 50%;
  transform: translateX(-50%) translateY(140%);
  background: var(--grad-card);
  border: 1px solid var(--border-special);
  color: var(--text);
  padding: 13px 22px; border-radius: 12px;
  font-weight: 800; font-size: 14px;
  box-shadow: var(--shadow), 0 0 30px -8px var(--glow-purple);
  z-index: 300;
  transition: transform .3s ease;
  display: flex; align-items: center; gap: 10px;
}
.toast.show { transform: translateX(-50%) translateY(0); }
.toast .tic { color: var(--green); display: grid; place-items: center; }
html[dir="ltr"] .toast { transform: translateX(-50%) translateY(140%); }
html[dir="ltr"] .toast.show { transform: translateX(-50%) translateY(0); }

/* ---------------- Admin ---------------- */
.admin-body { padding-top: 0; }
.admin-header { background: var(--bg-mid); border-bottom: 1px solid var(--border); }
.admin-header .nav-inner { min-height: 64px; }
.admin-card {
  background: var(--grad-card);
  border: 1px solid var(--border-special);
  border-radius: var(--radius); padding: 26px;
}
.admin-table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; min-width: 720px; }
.admin-table th {
  text-align: start; padding: 12px 14px;
  color: var(--muted); font-size: 12.5px; font-weight: 900;
  text-transform: uppercase; letter-spacing: .5px;
  border-bottom: 1px solid var(--border);
}
.admin-table td { padding: 13px 14px; border-bottom: 1px solid var(--border-soft); font-size: 14px; color: var(--muted); vertical-align: middle; }
.admin-table tr:hover td { background: rgba(255,255,255,.03); }
.admin-table td strong { color: var(--text); }
.status-chip { padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 900; }
.status-chip.paid { background: linear-gradient(145deg, rgba(60,232,174,.18), rgba(22,171,131,.12)); color: var(--green); }
.status-chip.pending { background: linear-gradient(145deg, rgba(255,198,77,.16), rgba(236,153,31,.12)); color: var(--gold); }
.status-chip.failed { background: linear-gradient(145deg, rgba(255,100,120,.16), rgba(237,43,101,.12)); color: var(--red); }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.inline-form { display: flex; flex-direction: column; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.checkbox-row { display: flex; align-items: center; gap: 10px; }
.checkbox-row input { width: auto; }
.login-wrap { max-width: 420px; margin: 60px auto 0; }

.alert { padding: 14px 18px; border-radius: 12px; font-size: 14px; font-weight: 800; margin-bottom: 18px; transition: opacity .4s ease, transform .4s ease; }
.alert.alert-fade { opacity: 0; transform: translateY(-6px); }
.alert.success { background: linear-gradient(145deg, rgba(60,232,174,.14), rgba(22,171,131,.1)); border: 1px solid rgba(60,232,174,.35); color: var(--green); }
.alert.error { background: linear-gradient(145deg, rgba(255,100,120,.14), rgba(237,43,101,.1)); border: 1px solid rgba(255,100,120,.35); color: var(--red); }
.alert.info { background: linear-gradient(145deg, rgba(127,0,255,.14), rgba(93,63,211,.1)); border: 1px solid rgba(127,0,255,.35); color: var(--blue); }

/* ---------------- Empty state ---------------- */
.empty-state { text-align: center; padding: 70px 0; color: var(--muted); }
.empty-state svg { width: 90px; height: 90px; margin: 0 auto 18px; opacity: .4; }
.empty-state h3 { color: var(--muted); font-size: 19px; margin-bottom: 6px; }

/* ---------------- Marquee ---------------- */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--border-soft);
  background: linear-gradient(90deg, rgba(127,0,255,.1), rgba(191,64,191,.08) 50%, rgba(127,0,255,.08));
  padding: 13px 0; white-space: nowrap;
}
.marquee-track {
  display: inline-flex;
  animation: scroll 26s linear infinite;
  color: var(--muted); font-weight: 800; font-size: 13.5px;
}
.marquee-track span { display: inline-flex; gap: 8px; align-items: center; margin-inline-end: 44px; }
.marquee-track .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--grad-btn); display: inline-block;
  box-shadow: 0 0 8px var(--pink);
}
@keyframes scroll { to { transform: translateX(-50%); } }
html[dir="rtl"] .marquee-track { animation-name: scroll-rtl; }
@keyframes scroll-rtl { to { transform: translateX(50%); } }

/* ---------------- 3D motion ---------------- */
.tilt {
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateZ(var(--sz, 0px));
  transition: transform .28s cubic-bezier(.16,1,.3,1), border-color .25s, box-shadow .25s;
  will-change: transform;
}
.tilt::after {
  content: "";
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(340px circle at var(--gx, 50%) var(--gy, 50%), rgba(230, 230, 250, .10), transparent 55%);
  opacity: 0; transition: opacity .25s ease;
  z-index: 1;
}
.tilt:hover::after { opacity: 1; }

.hero-visual { transform: translate(var(--px, 0), var(--py, 0)); transition: transform .4s ease-out; }
.hero-card { transition: transform .4s ease-out, box-shadow .3s ease; animation: floaty 7s ease-in-out infinite; }
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

/* scroll reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .65s ease, transform .65s cubic-bezier(.16,1,.3,1); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .orb, .hero-card, .marquee-track, .btn::after, .tilt { animation: none; }
  .tilt { transform: none; }
}

/* ---------------- Responsive ---------------- */
@media (max-width: 1180px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .benefits { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .cats-grid { grid-template-columns: repeat(2, 1fr); }
  .benefits { grid-template-columns: repeat(3, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 24px; }
  .hero-grid { grid-template-columns: 1fr; gap: 46px; text-align: center; }
  .hero p.lead { margin-inline: auto; }
  .hero-cta { justify-content: center; }
  .hero-ticks { justify-content: center; }
  .why-wrap { grid-template-columns: 1fr; padding: 34px 26px; }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-media { position: relative; top: 0; }
  .cart-layout, .checkout-grid { grid-template-columns: 1fr; }
  .summary-card { position: relative; top: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-card { max-width: 400px; }
}

@media (max-width: 768px) {
  html, body { overflow-x: hidden; }
  .section { padding: 46px 0; }
  .container { padding: 0 16px; }
  .hero { padding: 60px 0 92px; }
  .hero h1 { font-size: clamp(26px, 7.2vw, 36px); }
  .hero p.lead { font-size: 15px; }
  .section-head { margin-bottom: 32px; }
  .section-head h2 { font-size: clamp(21px, 5.5vw, 27px); }

  /* off-canvas nav */
  .nav-links {
    position: fixed; inset-inline: 0; top: 0; bottom: 0;
    flex-direction: column; justify-content: flex-start;
    gap: 6px;
    padding: 96px 24px 40px;
    overflow-y: auto; overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    background: rgba(8, 4, 14, .97);
    backdrop-filter: blur(20px);
    z-index: 110;
    transform: translateX(110%);
    transition: transform .32s cubic-bezier(.16,1,.3,1), opacity .25s;
    opacity: 0; visibility: hidden;
  }
  html[dir="rtl"] .nav-links { transform: translateX(-110%); }
  .nav-links.open { transform: translateX(0); opacity: 1; visibility: visible; }
  html[dir="rtl"] .nav-links.open { transform: translateX(0); }
  .nav-link { font-size: 17px; padding: 13px 24px; border-radius: 12px; width: 100%; text-align: center; }
  .nav-links .nav-link.active { border-color: var(--border-special); }
  .nav-inner { position: relative; }
  .nav-right { position: relative; z-index: 130; }
  .menu-toggle { display: grid; }
  .menu-toggle.active { background: rgba(255,100,120,.12); border-color: rgba(255,100,120,.35); color: var(--red); }

  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .cats-grid { grid-template-columns: 1fr; gap: 14px; }
  .benefits { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .form-row, .form-row-3 { grid-template-columns: 1fr; gap: 12px; }
  .features-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .footer-bottom { justify-content: center; text-align: center; }
  .cart-item { flex-wrap: wrap; }
  .stats-strip { margin-top: -34px; }
  .toolbar { gap: 12px; }
  .search-box { min-width: 0; flex: 1 1 100%; max-width: 100%; }
  .summary-card, .form-card { padding: 20px; }
  .detail-actions .btn { flex: 1 1 40%; justify-content: center; }
  .pc-body { padding: 14px; }
  .pc-title { font-size: 14.5px; }
  .pc-foot .btn { padding: 9px 12px; font-size: 12px; }
  .btn-lg { padding: 13px 24px; font-size: 15px; }
  .why-wrap { padding: 26px 18px; gap: 26px; border-radius: 18px; }
  .hero-card { max-width: 300px; }
  .tabs { gap: 8px; }
  .tab-btn { padding: 9px 16px; font-size: 13px; }
  .login-wrap { margin: 40px auto 0; }
  .admin-card { padding: 18px; }
  body.menu-open { overflow: hidden; }
}

@media (max-width: 520px) {
  .product-grid { grid-template-columns: 1fr; gap: 16px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 18px 12px; }
  .stat { gap: 10px; }
  .stat-icon { width: 40px; height: 40px; border-radius: 11px; }
  .stat-icon svg { width: 20px; height: 20px; }
  .stat-num { font-size: 18px; }
  .stat-label { font-size: 11.5px; }
  .benefits { grid-template-columns: 1fr; }
  .hero { padding: 48px 0 80px; }
  .hero-card { max-width: 264px; }
  .hero-grid { gap: 36px; }
  .hero-cta .btn { width: 100%; }
  .cats-grid { gap: 12px; }
  .cat-card { padding: 22px 18px; }
  .detail-price-box { padding: 14px 16px; }
  .detail-price { font-size: 25px; }
  .detail-actions .btn { flex: 1 1 100%; }
  .cart-item { padding: 12px; gap: 10px; }
  .ci-thumb { width: 60px; height: 60px; }
  .qty-control { width: 100%; justify-content: flex-end; }
  .section-head p { font-size: 13.5px; }
  .toast { inset-inline: 16px; width: auto; justify-content: center; }
  html[dir="rtl"] .toast, html[dir="ltr"] .toast { transform: translateY(140%); }
  html[dir="rtl"] .toast.show, html[dir="ltr"] .toast.show { transform: translateY(0); }
  .stats-strip { margin-top: -24px; }
  .status-box { padding: 34px 18px; }
}

@media (max-width: 380px) {
  .nav-inner { gap: 10px; }
  .brand-name { font-size: 16px; }
  .brand-tag { display: none; }
  .brand-logo { width: 38px; height: 38px; }
  .lang-toggle { padding: 7px 10px; font-size: 12px; }
  .cart-link, .menu-toggle { width: 38px; height: 38px; }
  .hero-badge { font-size: 12px; padding: 6px 12px; }
}

/* =========================================================
   Premium polish layer · v2
   ========================================================= */

/* ---------------- Base refinements ---------------- */
html { scroll-padding-top: 92px; }
body { text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

::selection { background: rgba(191, 64, 191, .45); color: #fff; }
::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #5D3FD3, #BF40BF);
  border-radius: 8px; border: 2px solid var(--bg-deep);
}
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #7F00FF, #BF40BF); }
* { scrollbar-width: thin; scrollbar-color: #7F00FF var(--bg-deep); }

a, button, input, select, textarea, [tabindex] { -webkit-tap-highlight-color: transparent; }
:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 3px; border-radius: 6px;
}

/* ---------------- Cursor glow + scroll progress + to-top ---------------- */
.cursor-glow {
  position: fixed; top: 0; left: 0; z-index: 1;
  width: 420px; height: 420px; border-radius: 50%;
  pointer-events: none; mix-blend-mode: screen;
  background: radial-gradient(circle, rgba(127, 0, 255, .16) 0%, rgba(127, 0, 255, .07) 30%, transparent 62%);
  transform: translate(-50%, -50%) scale(1);
  opacity: 0; transition: opacity .4s ease, transform .35s ease-out;
  will-change: transform;
}
body.cursor-on .cursor-glow { opacity: 1; }
@media (hover: none), (pointer: coarse) { .cursor-glow { display: none; } }

.scroll-progress {
  position: fixed; top: 0; inset-inline: 0; z-index: 200;
  height: 3px; pointer-events: none;
  background: linear-gradient(90deg, #7F00FF, #BF40BF, #5D3FD3);
  background-size: 200% 100%;
  transform-origin: 0 50%;
  transform: scaleX(0);
  box-shadow: 0 0 12px rgba(191, 64, 191, .6);
}
html[dir="rtl"] .scroll-progress { transform-origin: 100% 50%; }

.to-top {
  position: fixed; bottom: 26px; inset-inline-end: 26px; z-index: 150;
  width: 48px; height: 48px; border-radius: 14px;
  background: var(--grad-btn); color: #fff;
  border: 1px solid var(--border-special);
  display: grid; place-items: center;
  box-shadow: 0 14px 34px -10px rgba(127, 0, 255, .7);
  transform: translateY(16px) scale(.9);
  opacity: 0; pointer-events: none;
  transition: transform .3s cubic-bezier(.16,1,.3,1), opacity .3s ease, box-shadow .3s;
}
.to-top.show { transform: translateY(0) scale(1); opacity: 1; pointer-events: auto; }
.to-top:hover { box-shadow: 0 18px 42px -10px rgba(191,64,191,.8); transform: translateY(-3px) scale(1.05); }
.to-top:active { transform: scale(.95); }
.to-top svg { width: 20px; height: 20px; }

/* ---------------- Header: scrolled state + magnetic links ---------------- */
.site-header { transition: min-height .3s ease, box-shadow .3s ease, background .3s ease; }
.site-header.scrolled {
  box-shadow: 0 14px 40px -20px rgba(0,0,0,.85), 0 1px 0 rgba(127,0,255,.25) inset;
}
.site-header.scrolled .nav-inner { min-height: 58px; }
.site-header::after {
  content: ""; position: absolute; inset-inline: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(127,0,255,.65) 30%, rgba(191,64,191,.65) 70%, transparent);
  opacity: .7; pointer-events: none;
}
.nav-link { overflow: hidden; }
.nav-link::before {
  content: ""; position: absolute; inset-inline: 16px; bottom: 4px; height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, #7F00FF, #BF40BF);
  transform: scaleX(0); transform-origin: 0 50%;
  transition: transform .3s cubic-bezier(.16,1,.3,1);
}
html[dir="rtl"] .nav-link::before { transform-origin: 100% 50%; }
.nav-link:hover::before, .nav-link.active::before { transform: scaleX(1); }

/* ---------------- Hero: aurora floor + particles ---------------- */
.hero { isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: -140px -8% -240px;
  z-index: -1; pointer-events: none;
  background:
    radial-gradient(560px 300px at 78% 8%, rgba(127, 0, 255, .30), transparent 65%),
    radial-gradient(480px 260px at 12% 30%, rgba(191, 64, 191, .18), transparent 65%),
    radial-gradient(700px 380px at 50% 112%, rgba(93, 63, 211, .30), transparent 60%);
  animation: aurora 11s ease-in-out infinite alternate;
}
@keyframes aurora {
  0% { filter: hue-rotate(0deg); opacity: .85; }
  100% { filter: hue-rotate(28deg); opacity: 1; }
}
.hero::after {
  content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 220px;
  z-index: -1; pointer-events: none;
  background:
    linear-gradient(180deg, transparent 10%, transparent 96%, rgba(230,230,250,.05) 100%) 0 0 / 100% 24px round,
    linear-gradient(90deg, transparent 0%, transparent 96%, rgba(230,230,250,.035) 100%) 0 0 / 38px 100% round;
  -webkit-mask-image: radial-gradient(70% 100% at 50% 100%, #000 30%, transparent 75%);
          mask-image: radial-gradient(70% 100% at 50% 100%, #000 30%, transparent 75%);
  animation: floorMove 6s linear infinite;
}
@keyframes floorMove { to { background-position: 0 24px, 0 0; } }
.hero h1 { text-shadow: 0 0 34px rgba(127, 0, 255, .5), 0 0 90px rgba(191, 64, 191, .28); }
.hero-badge {
  box-shadow: 0 0 22px -6px var(--glow-purple);
  animation: badgeIn .6s cubic-bezier(.16,1,.3,1) both;
}
@keyframes badgeIn { from { opacity: 0; transform: translateY(14px) scale(.92); } to { opacity: 1; transform: none; } }
.hero-content > *:nth-child(2) { animation: heroIn .7s cubic-bezier(.16,1,.3,1) .08s both; }
.hero-content > *:nth-child(3) { animation: heroIn .7s cubic-bezier(.16,1,.3,1) .16s both; }
.hero-content > *:nth-child(4) { animation: heroIn .7s cubic-bezier(.16,1,.3,1) .24s both; }
.hero-content > *:nth-child(5) { animation: heroIn .7s cubic-bezier(.16,1,.3,1) .32s both; }
@keyframes heroIn { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.hero-card { box-shadow: var(--shadow), 0 0 110px -24px rgba(127, 0, 255, .75), inset 0 0 60px -30px rgba(191, 64, 191, .5); }
.hero-card:hover { box-shadow: var(--shadow), 0 0 140px -20px rgba(191, 64, 191, .8), inset 0 0 70px -28px rgba(127, 0, 255, .6); }

/* ---------------- Section heads: eyebrow underline ---------------- */
.section-head h2 { position: relative; display: inline-block; }
.section-head h2::after {
  content: ""; position: absolute; inset-inline: 50%; bottom: -12px; height: 3px;
  width: 64px; border-radius: 4px; margin-inline: -32px;
  background: var(--grad-btn);
  box-shadow: 0 4px 16px -2px rgba(191, 64, 191, .7);
}
.why-wrap .section-head h2::after, .detail-desc h3::after, .detail-feat h3::after, .form-card h3::after, .summary-card h3::after { inset-inline: 0; margin-inline: 0; width: 46px; }

/* ---------------- Buttons: sheen + glow + magnetic ---------------- */
.btn { isolation: isolate; }
.btn-primary { position: relative; }
.btn-primary::before {
  content: ""; position: absolute; inset: -3px; z-index: -1; border-radius: 16px;
  background: linear-gradient(120deg, #7F00FF, #BF40BF);
  filter: blur(18px); opacity: .55; transition: opacity .3s;
}
.btn-primary:hover::before { opacity: .9; filter: blur(22px); }
.btn-primary:hover { box-shadow: 0 18px 44px -12px rgba(191,64,191,.55), 0 12px 30px -12px rgba(93,63,211,.8); }
.btn svg { transition: transform .25s cubic-bezier(.16,1,.3,1); }
.btn:hover svg { transform: translateX(3px); }
html[dir="rtl"] .btn:hover svg { transform: translateX(-3px); }

/* ---------------- Cards: cursor-tracked glow border + depth ---------------- */
.tilt { transition: transform .28s cubic-bezier(.16,1,.3,1), border-color .25s, box-shadow .25s; }
.product-card, .benefit { position: relative; }
.product-card::before, .benefit::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 1;
  padding: 1px;
  background: radial-gradient(200px circle at var(--gx, 50%) var(--gy, 50%), rgba(127,0,255,.9), rgba(191,64,191,.45) 45%, transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask-composite: exclude;
  opacity: 0; transition: opacity .3s ease;
}
.product-card:hover::before, .benefit:hover::before { opacity: 1; }
.product-card {
  box-shadow: 0 12px 34px -18px rgba(0,0,0,.6);
  transition: transform .28s cubic-bezier(.16,1,.3,1), border-color .25s, box-shadow .28s, opacity .3s;
}
.product-card:hover { transform: perspective(900px) rotateX(var(--rx, 0)) rotateY(var(--ry, 0)) translateY(-6px); box-shadow: var(--shadow), 0 0 52px -16px rgba(127,0,255,.75); }
.product-card .pc-thumb img { transform-origin: center; }
.product-card:hover .pc-thumb img { transform: translateZ(24px) scale(1.08) rotate(-2deg); }
.pc-thumb::after {
  content: ""; position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(120deg, transparent 30%, rgba(230,230,250,.14) 45%, transparent 60%);
  transform: translateX(-120%); transition: transform .8s ease;
  pointer-events: none;
}
html[dir="rtl"] .pc-thumb::after { transform: translateX(120%); }
.product-card:hover .pc-thumb::after { transform: translateX(120%); }
html[dir="rtl"] .product-card:hover .pc-thumb::after { transform: translateX(-120%); }
.pc-thumb img { animation: imgIn .55s cubic-bezier(.16,1,.3,1) both; }
@keyframes imgIn { from { opacity: 0; transform: scale(1.04); } to { opacity: 1; transform: scale(1); } }
.cat-card:hover { transform: perspective(900px) rotateX(var(--rx, 0)) rotateY(var(--ry, 0)) translateY(-6px); }
.benefit:hover { transform: perspective(900px) rotateX(var(--rx, 0)) rotateY(var(--ry, 0)) translateY(-6px); }
.stat { transition: transform .3s cubic-bezier(.16,1,.3,1); }
.stat:hover { transform: translateY(-4px); }
.stat-num span[data-count] { background: linear-gradient(120deg, #E6E6FA, #BDB5D5); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* ---------------- Featured hover preview ---------------- */
.price { transition: color .2s; }
.product-card:hover .price { color: var(--gold-light); }

/* ---------------- Tabs + pills ---------------- */
.tab-btn { overflow: hidden; position: relative; }
.tab-btn.active { animation: tabPop .35s cubic-bezier(.16,1,.3,1); }
@keyframes tabPop { 0% { transform: scale(.9); } 55% { transform: scale(1.06); } 100% { transform: scale(1); } }
.pill, .pc-badge, .pc-category { backdrop-filter: blur(8px); }
.pc-badge.new { animation: floaty 3.4s ease-in-out infinite; }

/* ---------------- Search + forms ---------------- */
.search-box input, .form-group input, .form-group select, .form-group textarea, .qty-input {
  transition: border-color .15s, box-shadow .15s, background .2s;
}
.search-box input:focus, .form-group input:focus, .form-group select:focus, .form-group textarea:focus, .qty-input:focus {
  border-color: transparent;
  box-shadow: 0 0 0 2px rgba(127,0,255,.5), 0 0 0 5px rgba(127,0,255,.12);
  background: rgba(127,0,255,.06);
}
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input[type="number"] { -moz-appearance: textfield; }
input:-webkit-autofill, select:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 100px var(--bg-mid) inset;
  -webkit-text-fill-color: var(--text);
}
.form-group label { display: inline-flex; }
.form-group label::after {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: var(--pink); margin-inline-start: 6px; align-self: center;
  box-shadow: 0 0 8px var(--pink);
}

/* ---------------- Cart ---------------- */
.cart-count { transition: transform .25s cubic-bezier(.16,1,.3,1); }
.cart-count.pop { animation: countPop .4s cubic-bezier(.16,1,.3,1); }
@keyframes countPop { 0% { transform: scale(1); } 45% { transform: scale(1.5); } 100% { transform: scale(1); } }
.cart-item { transition: transform .25s ease, border-color .2s, box-shadow .25s; }
.cart-item:hover { transform: translateX(-3px); box-shadow: var(--shadow); }
html[dir="rtl"] .cart-item:hover { transform: translateX(3px); }

/* ---------------- Summary / checkout / status ---------------- */
.summary-card, .form-card {
  box-shadow: var(--shadow), 0 0 60px -34px var(--glow-purple);
  transition: transform .3s cubic-bezier(.16,1,.3,1), border-color .25s, box-shadow .3s;
}
.summary-card:hover, .form-card:hover { border-color: var(--border-special); box-shadow: var(--shadow), 0 0 80px -30px var(--glow-purple); }
.detail-media { transition: transform .3s cubic-bezier(.16,1,.3,1), box-shadow .3s; }
.detail-media:hover { box-shadow: var(--shadow), 0 0 90px -26px rgba(191,64,191,.7), inset 0 0 60px -30px var(--glow-purple); }
.status-icon.ok { animation: okPulse 2.6s ease-out infinite; }
@keyframes okPulse { 0% { box-shadow: 0 0 0 0 rgba(60,232,174,.45); } 70% { box-shadow: 0 0 0 18px rgba(60,232,174,0); } 100% { box-shadow: 0 0 0 0 rgba(60,232,174,0); } }
.status-icon.fail { animation: failPulse 2.6s ease-out infinite; }
@keyframes failPulse { 0% { box-shadow: 0 0 0 0 rgba(255,100,120,.45); } 70% { box-shadow: 0 0 0 18px rgba(255,100,120,0); } 100% { box-shadow: 0 0 0 0 rgba(255,100,120,0); } }
.meta-row { transition: background .2s, border-color .2s, transform .2s; }
.meta-row:hover { background: rgba(127,0,255,.07); border-color: var(--border-special); transform: translateX(-3px); }
html[dir="rtl"] .meta-row:hover { transform: translateX(3px); }

/* ---------------- Footer ---------------- */
.site-footer { position: relative; }
.site-footer::before {
  content: ""; position: absolute; top: -1px; inset-inline: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(191,64,191,.6) 30%, rgba(127,0,255,.6) 70%, transparent);
}
.site-footer::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(600px 300px at 50% 120%, rgba(93, 63, 211, .18), transparent 60%);
}
.footer-col h4 { position: relative; padding-bottom: 8px; }
.footer-col h4::after {
  content: ""; position: absolute; inset-inline-start: 0; bottom: 0; width: 30px; height: 2px;
  border-radius: 2px; background: linear-gradient(90deg, #7F00FF, #BF40BF);
}
.footer-col a { position: relative; }
.footer-col ul a:hover { padding-inline-start: 5px; color: var(--purple-soft); text-shadow: 0 0 18px rgba(127,0,255,.65); }
.footer-col ul a { transition: all .2s ease; }

/* ---------------- Admin ---------------- */
.admin-card { box-shadow: var(--shadow), 0 0 50px -30px var(--glow-purple); transition: transform .3s ease, border-color .25s; }
.admin-card:hover { border-color: var(--border-special); }
.admin-table th { position: sticky; top: 0; background: var(--bg-mid); z-index: 1; }
.admin-table tr { transition: background .15s; }
.admin-table th { border-bottom: 1px solid var(--border); }
.alert { border-inline-start: 4px solid; }
.alert.success { border-color: rgba(60,232,174,.4); }
.alert.error { border-color: rgba(255,100,120,.4); }
.alert.info { border-color: rgba(127,0,255,.4); }

/* ---------------- Toast ---------------- */
.toast { border-radius: 14px; }
.toast .tic {
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(60,232,174,.18); border: 1px solid rgba(60,232,174,.4);
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* ---------------- Marquee polish ---------------- */
.marquee { position: relative; }
.marquee::before, .marquee::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 90px; z-index: 2; pointer-events: none;
  background: linear-gradient(90deg, var(--bg) 8%, transparent);
}
.marquee::after { inset-inline-end: 0; transform: scaleX(-1); }
.marquee-track { align-items: center; }
.marquee-track .dot {
  width: 7px; height: 7px; margin-inline-end: 8px;
  background: linear-gradient(90deg, #7F00FF, #BF40BF);
  box-shadow: 0 0 10px rgba(191,64,191,.8);
  animation: dotPulse 1.6s ease-in-out infinite;
}
@keyframes dotPulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* ---------------- Empty state ---------------- */
.empty-state svg { animation: floaty 5s ease-in-out infinite; }

/* ---------------- Reveal upgrade ---------------- */
.reveal { will-change: transform, opacity; }
.reveal.in { transition-delay: var(--d, 0s); }

/* =========================================================
   v3 · Full 3D motion + prominence layer
   ========================================================= */

/* ---------------- Hero floating 3D chips ---------------- */
.hero-card .float-chip {
  position: absolute; z-index: 3;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 13px; border-radius: 999px;
  background: rgba(10, 6, 22, .82);
  border: 1px solid var(--border-special);
  color: #fff; font-size: 12.5px; font-weight: 800;
  backdrop-filter: blur(10px);
  box-shadow: 0 14px 30px -12px rgba(127, 0, 255, .7), 0 0 24px -8px rgba(191, 64, 191, .6);
  transform-style: preserve-3d;
  animation: chipFloat 6s ease-in-out infinite;
  white-space: nowrap;
}
.hero-card .float-chip svg { width: 15px; height: 15px; }
.hero-card .float-chip.fc-1 { top: 12%; inset-inline-start: -7%; color: var(--gold-light, #ffe18a); border-color: rgba(255, 198, 77, .45); animation-delay: 0s; }
.hero-card .float-chip.fc-2 { bottom: 16%; inset-inline-end: -6%; color: var(--green-light, #65ffd0); border-color: rgba(60, 232, 174, .45); animation-delay: 1.4s; }
.hero-card .float-chip.fc-3 { bottom: -4%; inset-inline-start: 14%; color: var(--purple-soft); animation-delay: .7s; }
@keyframes chipFloat {
  0%, 100% { transform: translate3d(0, 0, 40px); }
  50% { transform: translate3d(0, -12px, 90px); }
}

/* ---------------- Stronger prominence on every card ---------------- */
.product-card, .cat-card, .benefit {
  border-color: rgba(127, 0, 255, .28);
  box-shadow: 0 16px 40px -22px rgba(0, 0, 0, .75), inset 0 1px 0 rgba(230, 230, 250, .05);
}
.product-card:hover, .cat-card:hover, .benefit:hover {
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateZ(var(--sz, 0px)) translateY(-8px) scale(1.02);
  box-shadow: var(--shadow), 0 0 70px -16px rgba(127, 0, 255, .8), 0 0 40px -22px rgba(191, 64, 191, .7);
}
.product-card:hover .pc-title, .cat-card:hover h3 { color: #fff; text-shadow: 0 0 22px rgba(191, 64, 191, .8); }

/* ---------------- Section accents: living underline + pulse ---------------- */
.section-head .accent { animation: accentPulse 4.5s ease-in-out infinite; }
@keyframes accentPulse {
  0%, 100% { filter: drop-shadow(0 0 0 rgba(191, 64, 191, 0)); }
  50% { filter: drop-shadow(0 0 16px rgba(191, 64, 191, .55)); }
}
.section-head h2::after { animation: underGrow 3.6s ease-in-out infinite; }
@keyframes underGrow {
  0%, 100% { width: 64px; margin-inline: -32px; }
  50% { width: 104px; margin-inline: -52px; }
}

/* ---------------- Buttons: pressed depth ---------------- */
.btn-primary, .btn-gold { box-shadow: 0 16px 36px -14px rgba(127, 0, 255, .75); }
.btn-primary:hover, .btn-gold:hover { transform: translateY(-3px) scale(1.03); }
.btn-gold:hover { box-shadow: 0 20px 44px -14px rgba(255, 198, 77, .6); }

/* ---------------- Detail page: 3D image stage ---------------- */
.detail-media img { transform: perspective(900px) rotateY(0deg) translateZ(0); transition: transform .4s cubic-bezier(.16,1,.3,1), filter .3s; }
.detail-media:hover img { transform: perspective(900px) rotateY(-6deg) rotateX(3deg) translateZ(30px) scale(1.05); }

/* ---------------- Stats: depth pop ---------------- */
.stats-grid { transform-style: preserve-3d; }
.stat-num { text-shadow: 0 0 24px rgba(127, 0, 255, .45); }

/* ---------------- Why / form / summary: raised panel ---------------- */
.why-wrap, .summary-card, .form-card, .status-box {
  box-shadow: var(--shadow), 0 0 70px -34px var(--glow-purple);
}
.why-visual { transform-style: preserve-3d; }

/* ---------------- Tabs / search: kinetic ---------------- */
.tab-btn.active { box-shadow: 0 16px 34px -12px rgba(191, 64, 191, .6); transform: translateY(-2px); }
.search-box input:focus { background: rgba(127, 0, 255, .09); }

/* ---------------- Iranian (fa) number styling ---------------- */
html[dir="rtl"] .price, html[dir="rtl"] .detail-price, html[dir="rtl"] .sum-val, html[dir="rtl"] .stat-num {
  font-feature-settings: "tnum" 1;
  letter-spacing: .2px;
}
html[dir="rtl"] .stat-num span[data-count] {
  background: linear-gradient(120deg, #E6E6FA, #BDB5D5);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

/* ---------------- Footer contact / brand depth ---------------- */
.footer-brand .brand-logo { box-shadow: 0 10px 24px -8px rgba(127, 0, 255, .7); }
.footer-about { color: var(--muted); }
.footer-bottom .ir { color: var(--pink); font-weight: 800; }

/* ---------------- Reduced motion: kill new effects too ---------------- */
@media (prefers-reduced-motion: reduce) {
  .scroll-progress, .to-top, .cursor-glow { display: none; }
  .hero::before, .hero::after { animation: none; }
  .hero-content > * { animation: none !important; }
  .pc-thumb img { animation: none; }
  .tab-btn.active { animation: none; }
  .pc-badge.new, .status-icon.ok, .status-icon.fail, .empty-state svg, .marquee-track .dot { animation: none; }
  .hero h1, .brand-name, .stat-num span[data-count] { text-shadow: none; -webkit-text-fill-color: currentColor; color: var(--text); }
  .hero-card .float-chip { animation: none; transform: none; }
  .section-head .accent, .section-head h2::after { animation: none; }
  .detail-media:hover img, .btn-primary:hover, .btn-gold:hover { transform: none; }
}

/* =========================================================
   Admin Panel v2 — control room
   ========================================================= */

/* ---------------- Admin bar (top navigation) ---------------- */
.admin-bar {
  position: sticky; top: 58px; z-index: 95;
  background: rgba(8, 4, 14, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.admin-bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 58px; flex-wrap: wrap; padding-top: 6px; padding-bottom: 6px; }
.admin-bar-brand { display: flex; align-items: center; gap: 10px; }
.admin-bar-logo {
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--grad-btn); color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 8px 20px -8px rgba(127,0,255,.8);
}
.admin-bar-logo svg { width: 17px; height: 17px; }
.admin-bar-title { display: flex; flex-direction: column; line-height: 1.25; }
.admin-bar-title strong { font-size: 14px; font-weight: 900; color: var(--text); }
.admin-bar-title span { font-size: 11px; font-weight: 700; color: var(--muted); }

.admin-bar-links { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.admin-bar-link {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 14px; border-radius: 10px;
  color: var(--muted); font-size: 13.5px; font-weight: 800;
  border: 1px solid transparent;
  transition: all .15s;
  position: relative;
}
.admin-bar-link:hover { color: #fff; background: rgba(255,255,255,.06); }
.admin-bar-link.active {
  background: linear-gradient(145deg, rgba(127,0,255,.24), rgba(191,64,191,.14));
  color: #fff; border-color: var(--border-special);
}
.admin-bar-badge {
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  background: var(--grad-gold); color: #17120a;
  font-size: 10.5px; font-weight: 900;
  display: grid; place-items: center;
}
.admin-bar-actions { display: flex; align-items: center; gap: 8px; }
.admin-bar-toggle {
  display: none; width: 38px; height: 38px; border-radius: 10px;
  border: 1px solid var(--border); background: transparent; color: var(--text);
  place-items: center;
}

/* ---------------- Section wrapper + page head ---------------- */
.admin-sec { padding-top: 22px; }
.admin-page-head {
  display: flex; justify-content: space-between; align-items: center;
  gap: 14px; flex-wrap: wrap; margin-bottom: 20px;
}

/* ---------------- Stat cards ---------------- */
.admin-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  margin-bottom: 18px;
}
.admin-stat {
  display: flex; align-items: center; gap: 14px;
  background: var(--grad-card); border: 1px solid var(--border-special);
  border-radius: var(--radius); padding: 18px 20px;
  box-shadow: var(--shadow), inset 0 1px 0 rgba(230,230,250,.05);
  transition: transform .2s ease, border-color .2s, box-shadow .2s;
}
.admin-stat:hover { transform: translateY(-3px); border-color: rgba(127,0,255,.55); box-shadow: var(--shadow), 0 0 36px -16px var(--glow-purple); }
.ast-ic {
  width: 46px; height: 46px; flex-shrink: 0; border-radius: 13px;
  display: grid; place-items: center;
  border: 1px solid var(--border-special);
}
.ast-ic svg { width: 22px; height: 22px; }
.ast-gold { background: linear-gradient(145deg, rgba(255,198,77,.2), rgba(236,153,31,.1)); color: var(--gold); }
.ast-purple { background: linear-gradient(145deg, rgba(127,0,255,.24), rgba(93,63,211,.12)); color: var(--purple-soft); }
.ast-green { background: linear-gradient(145deg, rgba(60,232,174,.2), rgba(22,171,131,.1)); color: var(--green); }
.ast-pink { background: linear-gradient(145deg, rgba(191,64,191,.2), rgba(127,0,255,.1)); color: var(--pink); }
.ast-num { font-size: 21px; font-weight: 900; letter-spacing: -0.4px; line-height: 1.1; }
.ast-sub { font-size: 11px; color: var(--muted); margin-inline-start: 5px; font-weight: 800; }
.ast-label { color: var(--muted); font-size: 12px; font-weight: 700; margin-top: 2px; }

/* ---------------- Two column panel layout ---------------- */
.admin-cols { display: grid; grid-template-columns: 1.7fr 1fr; gap: 16px; align-items: start; }
.admin-cols > div { display: grid; gap: 16px; align-content: start; }
.admin-card-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; margin-bottom: 14px;
}
.admin-card-head h3 { font-size: 15.5px; font-weight: 900; margin: 0; }
.card-more { font-size: 12.5px; font-weight: 800; color: var(--purple-soft); }
.card-more:hover { color: #fff; }

/* ---------------- Activity feed ---------------- */
.activity-feed { list-style: none; display: grid; gap: 2px; }
.activity-feed li {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 11px 0; border-bottom: 1px solid var(--border-soft);
}
.activity-feed li:last-child { border-bottom: 0; }
.af-dot {
  width: 9px; height: 9px; border-radius: 50%; margin-top: 6px; flex-shrink: 0;
  background: var(--purple-soft); box-shadow: 0 0 8px var(--purple);
}
.af-dot.af-login, .af-dot.af-logout { background: var(--green); box-shadow: 0 0 8px var(--green); }
.af-dot.af-order { background: var(--gold); box-shadow: 0 0 8px var(--gold); }
.af-dot.af-product { background: var(--pink); box-shadow: 0 0 8px var(--pink); }
.af-dot.af-user { background: var(--blue); box-shadow: 0 0 8px var(--blue); }
.af-dot.af-admin, .af-dot.af-chat { background: var(--red); box-shadow: 0 0 8px var(--red); }
.af-body { flex: 1; min-width: 0; font-size: 13px; }
.af-body strong { color: var(--text); }
.af-body span { color: var(--purple-soft); font-weight: 800; }
.af-body p { color: var(--muted); font-size: 12.5px; margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.activity-feed time { color: var(--muted); font-size: 11.5px; flex-shrink: 0; }

/* ---------------- Quick actions ---------------- */
.quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.quick-btn {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; border-radius: 12px;
  background: var(--glass); border: 1px solid var(--border-soft);
  color: var(--text); font-size: 13px; font-weight: 800;
  transition: all .15s;
}
.quick-btn:hover { border-color: var(--border-special); background: rgba(127,0,255,.1); transform: translateY(-2px); }
.qic {
  width: 30px; height: 30px; border-radius: 9px; flex-shrink: 0;
  background: var(--grad-btn); color: #fff; display: grid; place-items: center;
  font-size: 15px; font-weight: 900;
}

/* ---------------- Category tabs ---------------- */
.admin-cat-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.acat {
  padding: 8px 16px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--glass);
  color: var(--muted); font-size: 13px; font-weight: 800;
  transition: all .15s;
}
.acat b { font-weight: 900; color: var(--gold); }
.acat:hover { border-color: var(--purple); color: #fff; }
.acat.active { background: var(--grad-btn); color: #fff !important; border-color: transparent; box-shadow: 0 10px 24px -10px rgba(191,64,191,.5); }
.acat.active b { color: #fff; }
.admin-cat-tabs-inline { display: flex; margin: 0; }

/* ---------------- Product thumb / icon buttons ---------------- */
.prod-thumb {
  width: 46px; height: 46px; flex-shrink: 0; border-radius: 10px;
  background:
    radial-gradient(circle at 50% 30%, rgba(127,0,255,.3), transparent 60%),
    linear-gradient(160deg, #241638, #0d0716);
  border: 1px solid var(--border-special);
  display: grid; place-items: center; overflow: hidden;
}
.prod-thumb img { width: 70%; height: 70%; object-fit: contain; }
.prod-thumb.sm { width: 34px; height: 34px; border-radius: 8px; }
.icon-btn {
  width: 32px; height: 32px; border-radius: 9px;
  border: 1px solid var(--border); background: transparent;
  color: var(--muted); display: grid; place-items: center;
  transition: all .15s;
}
.icon-btn:hover { color: var(--gold); border-color: rgba(255,198,77,.5); background: rgba(255,198,77,.08); }
.row-banned td { opacity: .55; }

/* ---------------- Order view ---------------- */
.admin-ov-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px; align-items: start; }
.admin-ov-grid > div { display: grid; gap: 16px; align-content: start; }
.meta-list .meta-row { padding: 11px 14px; }
.meta-list .meta-row .k { min-width: 92px; }
.danger-zone { border-color: rgba(255,100,120,.35); }
.danger-zone .admin-card-head h3 { color: var(--red); }
.danger-zone:hover { border-color: rgba(255,100,120,.55); }

/* ---------------- Chat ---------------- */
.chat-card {
  background: var(--grad-card); border: 1px solid var(--border-special);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow), 0 0 50px -30px var(--glow-purple);
  display: flex; flex-direction: column; height: calc(100vh - 250px); min-height: 380px;
}
.chat-head {
  display: flex; align-items: center; gap: 9px;
  padding: 14px 18px; border-bottom: 1px solid var(--border);
  font-size: 14.5px; font-weight: 900;
  justify-content: space-between;
}
.chat-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); animation: pulse 2s infinite; }
.chat-body { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.chat-empty {
  margin: auto; color: var(--muted); font-size: 14px; text-align: center;
}
.chat-msg {
  align-self: flex-start; max-width: 78%;
  background: rgba(230,230,250,.07); border: 1px solid var(--border-soft);
  border-radius: 14px 14px 14px 4px; padding: 10px 14px;
}
html[dir="rtl"] .chat-msg { border-radius: 14px 14px 4px 14px; }
.chat-msg.mine {
  align-self: flex-end; text-align: start;
  background: linear-gradient(145deg, rgba(127,0,255,.2), rgba(191,64,191,.12));
  border-color: var(--border-special);
  border-radius: 14px 14px 4px 14px;
}
html[dir="rtl"] .chat-msg.mine { border-radius: 14px 14px 14px 4px; }
.cm-head { display: flex; align-items: center; gap: 10px; margin-bottom: 3px; }
.cm-sender { font-size: 12px; font-weight: 900; color: var(--purple-soft); }
.chat-msg.mine .cm-sender { color: var(--gold); }
.cm-head time { font-size: 10.5px; color: var(--muted); }
.cm-text { font-size: 14px; line-height: 1.6; word-break: break-word; white-space: pre-wrap; }
.chat-input { padding: 12px; border-top: 1px solid var(--border); }
.chat-input form { display: flex; gap: 10px; }
.chat-input input {
  flex: 1; padding: 12px 16px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--glass);
  color: var(--text); font-size: 14px; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.chat-input input:focus { border-color: var(--purple); box-shadow: 0 0 0 3px var(--glow-purple); }

/* ---------------- Product edit live preview ---------------- */
.admin-edit-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; align-items: start; }
.admin-edit-preview { display: grid; gap: 16px; }
.pe-thumb {
  aspect-ratio: 4/3; border-radius: 14px;
  background:
    radial-gradient(circle at 50% 32%, rgba(127,0,255,.32), transparent 40%),
    linear-gradient(160deg, #241638, #0d0716);
  border: 1px solid var(--border-special);
  display: grid; place-items: center; overflow: hidden;
}
.pe-thumb img { width: 70%; height: 70%; object-fit: contain; filter: drop-shadow(0 14px 24px rgba(0,0,0,.5)); }
.pe-name { font-size: 17px; font-weight: 900; margin-top: 10px; }
.pe-price { font-size: 20px; font-weight: 900; color: var(--gold); margin-top: 2px; }
.pe-price small { font-size: 12px; color: var(--muted); font-weight: 700; margin-inline-start: 4px; }
.pe-pill { margin-top: 10px; }

/* ---------------- Admin inline forms ---------------- */
.admin-inline-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.admin-inline-form input {
  padding: 9px 12px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--glass);
  color: var(--text); font-size: 13.5px; outline: none;
}
.admin-inline-form input:focus { border-color: var(--purple); box-shadow: 0 0 0 3px var(--glow-purple); }

/* ---------------- Activity chip ---------------- */
.af-chip { text-transform: none; letter-spacing: 0; }

/* ---------------- Responsive admin ---------------- */
@media (max-width: 1024px) {
  .admin-stats { grid-template-columns: repeat(2, 1fr); }
  .admin-cols, .admin-ov-grid { grid-template-columns: 1fr; }
  .admin-edit-layout { grid-template-columns: 1fr; }
  .admin-edit-preview .admin-card { position: static !important; }
}
@media (max-width: 768px) {
  .admin-bar { top: 0; position: relative; }
  .admin-bar-inner { padding-top: 10px; padding-bottom: 10px; }
  .admin-bar-links {
    display: none; width: 100%; flex-direction: column; align-items: stretch;
    gap: 4px; padding-top: 8px;
  }
  .admin-bar-links.open { display: flex; }
  .admin-bar-link { justify-content: center; }
  .admin-bar-toggle { display: grid; }
}
@media (max-width: 480px) {
  .admin-stats { grid-template-columns: 1fr; }
  .quick-grid { grid-template-columns: 1fr; }
  .admin-cat-tabs-inline { width: 100%; }
  .chat-msg { max-width: 92%; }
}

/* =========================================================
   v4 · Modern Glass — the whole site is frosted glass
   ========================================================= */

/* ---------- Ambient frosted base ---------- */
body {
  background-image:
    radial-gradient(900px 480px at 12% -6%, rgba(93, 63, 211, .20), transparent 60%),
    radial-gradient(760px 420px at 88% 4%, rgba(191, 64, 191, .16), transparent 58%),
    var(--grad-bg);
}

/* ---------- Floating glass top / header redesign ---------- */
.site-header {
  top: 10px;
  width: calc(100% - 28px);
  max-width: 1236px;
  margin: 8px auto 0;
  border-radius: 18px;
  background: rgba(13, 8, 26, .60);
  backdrop-filter: blur(24px) saturate(1.35);
  -webkit-backdrop-filter: blur(24px) saturate(1.35);
  border: 1px solid var(--glass-rim);
  box-shadow: var(--glass-hi), 0 18px 46px -22px rgba(0, 0, 0, .85), 0 0 70px -40px var(--glow-purple);
}
.site-header::after {
  inset-inline: 16px; bottom: -1px;
  height: 2px; border-radius: 0 0 18px 18px;
  background: linear-gradient(90deg, transparent, rgba(127,0,255,.65) 30%, rgba(191,64,191,.65) 70%, transparent);
  opacity: .8;
}
.site-header.scrolled {
  box-shadow: var(--glass-hi), 0 22px 54px -22px rgba(0, 0, 0, .9), 0 0 90px -38px var(--glow-pink);
  background: rgba(13, 8, 26, .72);
}
.nav-inner { min-height: 62px; }

/* glass chips in the top bar */
.lang-toggle, .cart-link, .menu-toggle {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(230, 230, 250, .07);
}
.nav-link {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.nav-link.active {
  background: linear-gradient(145deg, rgba(127,0,255,.35), rgba(191,64,191,.22));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--glass-hi), 0 8px 24px -12px var(--glow-purple);
}
.brand-logo {
  background: var(--grad-btn);
  box-shadow: 0 10px 26px -8px rgba(127,0,255,.75), inset 0 1px 0 rgba(255,255,255,.35);
  border: 1px solid rgba(255,255,255,.16);
}

/* header responsive */
@media (max-width: 768px) {
  .site-header { top: 6px; width: calc(100% - 20px); margin: 6px auto 0; border-radius: 16px; }
  .site-header::after { inset-inline: 12px; }
  .nav-links { top: 66px; inset-inline: 8px; bottom: 8px; border-radius: 22px; border: 1px solid var(--border-special); background: rgba(8, 4, 14, .88); }
}

/* ---------- Hero: glass composition ---------- */
@media (min-width: 769px) {
  .hero { padding-top: 96px; }
}
.hero-badge {
  background: linear-gradient(145deg, rgba(127,0,255,.28), rgba(191,64,191,.20));
  border: 1px solid var(--glass-rim);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--glass-hi), 0 0 26px -8px var(--glow-purple);
}
.hero-ticks .hero-tick { color: var(--badge); }
.hero-card {
  background:
    linear-gradient(160deg, rgba(38, 26, 70, .55), rgba(16, 10, 34, .55) 58%, rgba(8, 5, 20, .62));
  border: 1px solid var(--glass-rim);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  box-shadow: var(--glass-hi), var(--shadow), 0 0 110px -24px rgba(127, 0, 255, .75), inset 0 0 60px -30px rgba(191, 64, 191, .5);
}
.stats-grid {
  background: rgba(16, 10, 34, .58);
  border: 1px solid var(--glass-rim);
  backdrop-filter: blur(22px) saturate(1.3);
  -webkit-backdrop-filter: blur(22px) saturate(1.3);
  box-shadow: var(--glass-hi), var(--shadow), 0 0 80px -36px var(--glow-purple);
}
.stat-icon { backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }

/* ---------- Cards: frosted glass everywhere ---------- */
.product-card, .cat-card, .benefit {
  background: var(--grad-card);
  backdrop-filter: blur(20px) saturate(1.25);
  -webkit-backdrop-filter: blur(20px) saturate(1.25);
  border: 1px solid var(--glass-rim-soft);
  box-shadow: var(--glass-hi), 0 16px 40px -22px rgba(0, 0, 0, .78);
}
.product-card::before, .benefit::before {
  padding: 1px;
  background: radial-gradient(220px circle at var(--gx, 50%) var(--gy, 50%), rgba(191,64,191,.7), rgba(127,0,255,.45) 45%, transparent 72%);
}
.product-card:hover, .cat-card:hover, .benefit:hover {
  border-color: var(--glass-rim);
  box-shadow: var(--glass-hi), var(--shadow), 0 0 70px -16px rgba(127, 0, 255, .8), 0 0 40px -22px rgba(191, 64, 191, .7);
}

/* category + product thumbnails: glowing glass stages */
.cat-icon {
  border: 1px solid rgba(255,255,255,.22);
  box-shadow: 0 12px 26px -8px rgba(127,0,255,.7), inset 0 1px 0 rgba(255,255,255,.4);
}
.pc-thumb {
  background:
    radial-gradient(circle at 50% 34%, rgba(127, 0, 255, .38), transparent 40%),
    radial-gradient(circle at 62% 72%, rgba(93, 63, 211, .22), transparent 46%),
    linear-gradient(160deg, rgba(36, 22, 58, .72), rgba(13, 7, 22, .78));
  border-bottom: 1px solid var(--glass-rim-soft);
}
.pc-badge.new, .pc-badge.mlo, .pc-badge {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 20px -6px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.25);
}
.pc-category {
  background: rgba(10, 6, 22, .68);
  backdrop-filter: blur(12px) saturate(1.3);
  -webkit-backdrop-filter: blur(12px) saturate(1.3);
}

/* ---------- Tabs & pills: glass chips ---------- */
.tab-btn, .acat {
  background: rgba(230, 230, 250, .06);
  border: 1px solid var(--glass-rim-soft);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.tab-btn.active {
  background: linear-gradient(145deg, rgba(127,0,255,.55), rgba(191,64,191,.45));
  border: 1px solid rgba(255,255,255,.22);
  box-shadow: var(--glass-hi), 0 12px 28px -10px rgba(191,64,191,.55);
}
.acat.active {
  background: linear-gradient(145deg, rgba(127,0,255,.55), rgba(191,64,191,.45));
  border: 1px solid rgba(255,255,255,.22);
  box-shadow: var(--glass-hi), 0 10px 24px -10px rgba(191,64,191,.55);
}

/* ---------- Forms & inputs: frosted wells ---------- */
.search-box input, .form-group input, .form-group select, .form-group textarea, .qty-input, .admin-inline-form input, .chat-input input {
  background: rgba(230, 230, 250, .06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-rim-soft);
}
.search-box input:focus, .form-group input:focus, .form-group select:focus, .form-group textarea:focus, .qty-input:focus, .chat-input input:focus {
  border-color: rgba(191, 64, 191, .55);
  box-shadow: 0 0 0 2px rgba(127,0,255,.5), 0 0 0 5px rgba(127,0,255,.12);
  background: rgba(127,0,255,.07);
}

/* ---------- Detail / cart / summary / status: glass panels ---------- */
.detail-media {
  background:
    radial-gradient(circle at 50% 30%, rgba(191,64,191,.30), transparent 44%),
    linear-gradient(160deg, rgba(38, 24, 62, .66), rgba(13, 7, 22, .72));
  border: 1px solid var(--glass-rim);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  box-shadow: var(--glass-hi), var(--shadow), inset 0 0 60px -30px var(--glow-purple);
}
.detail-price-box {
  background: var(--grad-card);
  border: 1px solid var(--glass-rim-soft);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--glass-hi), inset 0 0 40px -24px var(--glow-pink);
}
.cart-item {
  background: var(--grad-card);
  border: 1px solid var(--glass-rim-soft);
  backdrop-filter: blur(18px) saturate(1.25);
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
  box-shadow: var(--glass-hi);
}
.cart-item:hover { box-shadow: var(--glass-hi), var(--shadow); border-color: var(--glass-rim); }
.summary-card, .form-card, .status-box, .why-wrap {
  background: var(--grad-panel);
  border: 1px solid var(--glass-rim);
  backdrop-filter: blur(22px) saturate(1.3);
  -webkit-backdrop-filter: blur(22px) saturate(1.3);
  box-shadow: var(--glass-hi), var(--shadow), 0 0 70px -34px var(--glow-purple);
}
.why-visual {
  background:
    radial-gradient(circle at 50% 20%, rgba(127,0,255,.42), transparent 56%),
    radial-gradient(circle at 70% 80%, rgba(191,64,191,.22), transparent 50%),
    linear-gradient(160deg, rgba(38,24,62,.7), rgba(13,7,22,.76));
  border: 1px solid var(--glass-rim-soft);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.meta-row {
  background: rgba(230, 230, 250, .05);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.status-icon { background: rgba(13, 8, 26, .5); }

/* ---------- Toast + marquee: glass ---------- */
.toast {
  background: linear-gradient(155deg, rgba(24, 16, 44, .82), rgba(12, 7, 26, .86));
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  border: 1px solid var(--glass-rim);
  box-shadow: var(--glass-hi), var(--shadow), 0 0 30px -8px var(--glow-purple);
}
.marquee {
  background: linear-gradient(90deg, rgba(127,0,255,.12), rgba(191,64,191,.10) 50%, rgba(127,0,255,.10));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* ---------- Footer: frosted ---------- */
.site-footer {
  background:
    radial-gradient(700px 320px at 50% 130%, rgba(93, 63, 211, .22), transparent 60%),
    linear-gradient(180deg, rgba(11, 6, 20, .82), rgba(2, 1, 6, .94));
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
}
.social-btn {
  background: linear-gradient(145deg, rgba(127,0,255,.28), rgba(191,64,191,.18));
  border: 1px solid var(--glass-rim-soft);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--glass-hi);
}
.social-btn:hover { box-shadow: var(--glass-hi), 0 10px 22px -8px var(--glow-purple); }

/* ---------- Admin panel: glass control room ---------- */
.admin-bar {
  top: 88px;
  background: rgba(13, 8, 26, .62);
  backdrop-filter: blur(22px) saturate(1.3);
  -webkit-backdrop-filter: blur(22px) saturate(1.3);
  border: 1px solid var(--glass-rim-soft);
  border-radius: 14px;
  margin-inline: 10px;
  box-shadow: var(--glass-hi), 0 16px 40px -20px rgba(0, 0, 0, .8);
}
.admin-bar-link.active {
  background: linear-gradient(145deg, rgba(127,0,255,.45), rgba(191,64,191,.30));
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: var(--glass-hi), 0 8px 22px -12px var(--glow-purple);
}
.admin-bar-toggle { backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); background: rgba(230,230,250,.06); }
.admin-card {
  background: var(--grad-card);
  border: 1px solid var(--glass-rim-soft);
  backdrop-filter: blur(20px) saturate(1.25);
  -webkit-backdrop-filter: blur(20px) saturate(1.25);
  box-shadow: var(--glass-hi), var(--shadow), 0 0 50px -30px var(--glow-purple);
}
.admin-stat {
  backdrop-filter: blur(18px) saturate(1.25);
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
  border: 1px solid var(--glass-rim-soft);
  box-shadow: var(--glass-hi), var(--shadow);
}
.admin-table th {
  background: rgba(16, 10, 32, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.chat-card {
  backdrop-filter: blur(22px) saturate(1.25);
  -webkit-backdrop-filter: blur(22px) saturate(1.25);
  border: 1px solid var(--glass-rim);
  box-shadow: var(--glass-hi), var(--shadow), 0 0 50px -30px var(--glow-purple);
}
.chat-msg {
  background: rgba(230, 230, 250, .07);
  border: 1px solid var(--glass-rim-soft);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.chat-msg.mine {
  background: linear-gradient(145deg, rgba(127,0,255,.32), rgba(191,64,191,.20));
  border-color: rgba(255,255,255,.16);
}
.prod-thumb, .pe-thumb {
  background:
    radial-gradient(circle at 50% 30%, rgba(127,0,255,.38), transparent 60%),
    linear-gradient(160deg, rgba(38,24,62,.72), rgba(13,7,22,.76));
  border: 1px solid var(--glass-rim-soft);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.quick-btn, .icon-btn {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.danger-zone { background: linear-gradient(155deg, rgba(255,100,120,.10), rgba(16,10,32,.62)); }

@media (max-width: 768px) {
  .admin-bar { position: relative; top: auto; margin-inline: 0; border-radius: 0; }
}

/* =========================================================
   v5 · iOS Glass — full frosted material in the site palette
   Apple-style layered glass: stronger blur, hairline rims,
   glossy top-lights, pill controls. Colours stay the same.
   ========================================================= */
:root {
  --glass-blur: 32px;

  /* iOS "ultra-thin" materials tinted with the site's violet/grape */
  --ios-mat:
    linear-gradient(160deg, rgba(48, 33, 92, .58), rgba(22, 13, 44, .64) 52%, rgba(12, 7, 28, .72));
  --ios-mat-soft:
    linear-gradient(160deg, rgba(44, 30, 84, .52), rgba(20, 12, 42, .60) 55%, rgba(12, 7, 27, .68));
  --ios-mat-chip:
    linear-gradient(150deg, rgba(56, 38, 104, .70), rgba(26, 15, 52, .74));
  --ios-rim: rgba(224, 214, 255, .24);
  --ios-rim-soft: rgba(224, 214, 255, .13);
  --ios-hi:
    inset 0 1px 0 rgba(255, 255, 255, .16),
    inset 0 -1px 0 rgba(255, 255, 255, .03);
  --ios-shadow:
    0 24px 54px -20px rgba(2, 1, 6, .85),
    0 3px 10px rgba(2, 1, 6, .22),
    0 0 90px -34px var(--glow-purple);
  --ios-radius-lg: 24px;
  --ios-radius-md: 18px;
  --ios-radius-pill: 999px;
}

body {
  background-image:
    radial-gradient(1000px 520px at 10% -8%, rgba(93, 63, 211, .28), transparent 60%),
    radial-gradient(860px 460px at 90% 2%, rgba(191, 64, 191, .22), transparent 58%),
    radial-gradient(700px 420px at 55% 108%, rgba(127, 0, 255, .20), transparent 62%),
    var(--grad-bg);
}

/* ---------- Floating header: raised iOS panel ---------- */
.site-header {
  border-radius: 20px;
  background: rgba(16, 10, 34, .55);
  backdrop-filter: blur(34px) saturate(1.9);
  -webkit-backdrop-filter: blur(34px) saturate(1.9);
  border: 1px solid var(--ios-rim);
  box-shadow: var(--ios-hi), 0 20px 50px -20px rgba(2, 1, 6, .85), 0 0 80px -38px var(--glow-purple);
}
.site-header.scrolled {
  background: rgba(18, 12, 38, .68);
  box-shadow: var(--ios-hi), 0 24px 58px -20px rgba(2, 1, 6, .9), 0 0 96px -34px var(--glow-pink);
}
.nav-link { position: relative; }
.nav-link.active {
  background: linear-gradient(145deg, rgba(127, 0, 255, .85), rgba(191, 64, 191, .65));
  border: 1px solid rgba(255, 255, 255, .28);
  box-shadow: var(--ios-hi), 0 10px 26px -10px rgba(127, 0, 255, .85);
  backdrop-filter: blur(14px) saturate(1.6);
  -webkit-backdrop-filter: blur(14px) saturate(1.6);
}
.lang-toggle, .cart-link, .menu-toggle {
  background: rgba(230, 230, 250, .08);
  border: 1px solid var(--ios-rim-soft);
  backdrop-filter: blur(16px) saturate(1.6);
  -webkit-backdrop-filter: blur(16px) saturate(1.6);
  box-shadow: var(--ios-hi);
}

/* ---------- Segmented-control tabs ---------- */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px;
  background: rgba(230, 230, 250, .06);
  border: 1px solid var(--ios-rim-soft);
  border-radius: var(--ios-radius-pill);
  backdrop-filter: blur(18px) saturate(1.6);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 10px 26px -14px rgba(2, 1, 6, .6);
}
.tab-btn {
  border-radius: var(--ios-radius-pill);
  border: 1px solid transparent;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
}
.tab-btn:hover {
  background: rgba(230, 230, 250, .09);
  border-color: var(--ios-rim-soft);
  box-shadow: var(--ios-hi);
}
.tab-btn.active {
  background: linear-gradient(145deg, rgba(127, 0, 255, .92), rgba(191, 64, 191, .78));
  border: 1px solid rgba(255, 255, 255, .30);
  box-shadow: var(--ios-hi), 0 10px 26px -10px rgba(191, 64, 191, .7);
  transform: translateY(0);
}
.admin-cat-tabs {
  background: rgba(230, 230, 250, .055);
  border: 1px solid var(--ios-rim-soft);
  border-radius: var(--ios-radius-pill);
  padding: 4px;
  backdrop-filter: blur(16px) saturate(1.5);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
}
.acat {
  border-radius: var(--ios-radius-pill);
  border: 1px solid transparent;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.acat:hover { background: rgba(230, 230, 250, .08); border-color: var(--ios-rim-soft); }
.acat.active {
  background: linear-gradient(145deg, rgba(127, 0, 255, .92), rgba(191, 64, 191, .78));
  box-shadow: var(--ios-hi), 0 8px 22px -8px rgba(191, 64, 191, .65);
}
.acat.active b { color: #fff; }

/* ---------- Cards: iOS material ---------- */
.product-card, .cat-card, .benefit, .admin-card, .chat-card {
  background: var(--ios-mat);
  border: 1px solid var(--ios-rim-soft);
  border-radius: 22px;
  backdrop-filter: blur(30px) saturate(1.8);
  -webkit-backdrop-filter: blur(30px) saturate(1.8);
  box-shadow: var(--ios-hi), 0 18px 44px -20px rgba(2, 1, 6, .82);
}
.product-card:hover, .cat-card:hover, .benefit:hover {
  border-color: var(--ios-rim);
  box-shadow: var(--ios-hi), var(--ios-shadow), 0 0 70px -18px rgba(127, 0, 255, .85);
}
.hero-card, .stats-grid {
  background: var(--ios-mat-soft);
  border: 1px solid var(--ios-rim);
  border-radius: var(--ios-radius-lg);
  backdrop-filter: blur(32px) saturate(1.9);
  -webkit-backdrop-filter: blur(32px) saturate(1.9);
  box-shadow: var(--ios-hi), var(--ios-shadow);
}
.hero-badge {
  border-radius: var(--ios-radius-pill);
  border: 1px solid var(--ios-rim);
  backdrop-filter: blur(18px) saturate(1.7);
  -webkit-backdrop-filter: blur(18px) saturate(1.7);
  box-shadow: var(--ios-hi), 0 0 28px -6px var(--glow-purple);
}
.summary-card, .form-card, .status-box, .why-wrap {
  background: var(--ios-mat-soft);
  border-radius: var(--ios-radius-lg);
  border: 1px solid var(--ios-rim);
  backdrop-filter: blur(32px) saturate(1.9);
  -webkit-backdrop-filter: blur(32px) saturate(1.9);
  box-shadow: var(--ios-hi), var(--ios-shadow);
}
.detail-media { border-radius: var(--ios-radius-lg); }
.detail-price-box {
  border-radius: var(--ios-radius-md);
  border: 1px solid var(--ios-rim);
  box-shadow: var(--ios-hi), inset 0 0 50px -28px var(--glow-pink);
}
.cart-item {
  background: var(--ios-mat);
  border: 1px solid var(--ios-rim-soft);
  border-radius: var(--ios-radius-md);
  backdrop-filter: blur(26px) saturate(1.8);
  -webkit-backdrop-filter: blur(26px) saturate(1.8);
  box-shadow: var(--ios-hi);
}
.cart-item:hover { border-color: var(--ios-rim); box-shadow: var(--ios-hi), var(--ios-shadow); }
.empty-state {
  background: var(--ios-mat-soft);
  border: 1px dashed var(--ios-rim);
  border-radius: var(--ios-radius-lg);
  backdrop-filter: blur(22px) saturate(1.7);
  -webkit-backdrop-filter: blur(22px) saturate(1.7);
  box-shadow: var(--ios-hi);
}
.status-icon, .stat-icon, .cat-icon {
  border: 1px solid rgba(255, 255, 255, .22);
  box-shadow: var(--ios-hi), 0 12px 26px -8px rgba(127, 0, 255, .7);
}
.pc-thumb {
  background:
    radial-gradient(circle at 50% 30%, rgba(127, 0, 255, .46), transparent 40%),
    radial-gradient(circle at 68% 76%, rgba(191, 64, 191, .28), transparent 48%),
    linear-gradient(160deg, rgba(44, 28, 74, .78), rgba(14, 8, 26, .82));
}
.pc-category, .pc-badge, .pc-badge.new, .pc-badge.mlo {
  border-radius: var(--ios-radius-pill);
  border: 1px solid var(--ios-rim-soft);
  box-shadow: var(--ios-hi), 0 8px 20px -6px rgba(2, 1, 6, .6);
}

/* ---------- Buttons: iOS pills ---------- */
.btn { border-radius: var(--ios-radius-pill); }
.btn-primary, .btn-gold, .btn-abandon, .btn-outline { position: relative; }
.btn-primary {
  background: linear-gradient(145deg, #8a1ffc, #5D3FD3 55%, #BF40BF);
  border: 1px solid rgba(255, 255, 255, .28);
  box-shadow: var(--ios-hi), 0 14px 32px -10px rgba(127, 0, 255, .8);
}
.btn-gold {
  background: linear-gradient(145deg, #ffd47a, #ffc64d 45%, #ec991f);
  border: 1px solid rgba(255, 255, 255, .35);
  box-shadow: var(--ios-hi), 0 14px 32px -10px rgba(236, 153, 31, .55);
}
.btn-outline {
  background: rgba(230, 230, 250, .07);
  border: 1px solid var(--ios-rim);
  backdrop-filter: blur(14px) saturate(1.6);
  -webkit-backdrop-filter: blur(14px) saturate(1.6);
  box-shadow: var(--ios-hi);
}
.btn-abandon {
  background: rgba(255, 100, 120, .14);
  border: 1px solid rgba(255, 100, 120, .35);
  box-shadow: var(--ios-hi);
}

/* ---------- Inputs: frosted iOS wells ---------- */
.search-box input, .form-group input, .form-group select, .form-group textarea, .qty-input, .admin-inline-form input, .chat-input input {
  background: rgba(230, 230, 250, .07);
  border: 1px solid var(--ios-rim-soft);
  border-radius: 12px;
  box-shadow: var(--ios-hi);
  backdrop-filter: blur(14px) saturate(1.5);
  -webkit-backdrop-filter: blur(14px) saturate(1.5);
}
.search-box input:focus, .form-group input:focus, .form-group select:focus, .form-group textarea:focus, .qty-input:focus, .chat-input input:focus {
  border-color: rgba(191, 64, 191, .65);
  box-shadow: 0 0 0 3px rgba(127, 0, 255, .45), 0 0 0 7px rgba(127, 0, 255, .10), var(--ios-hi);
  background: rgba(127, 0, 255, .08);
}

/* ---------- Admin: iOS control room ---------- */
.admin-bar {
  border-radius: 20px;
  background: rgba(16, 10, 34, .58);
  border: 1px solid var(--ios-rim);
  backdrop-filter: blur(32px) saturate(1.9);
  -webkit-backdrop-filter: blur(32px) saturate(1.9);
  box-shadow: var(--ios-hi), 0 18px 44px -18px rgba(2, 1, 6, .85);
}
.admin-bar-logo, .admin-bar-badge {
  box-shadow: var(--ios-hi), 0 8px 20px -6px rgba(127, 0, 255, .7);
}
.admin-bar-link { border-radius: var(--ios-radius-pill); }
.admin-bar-link.active {
  background: linear-gradient(145deg, rgba(127, 0, 255, .85), rgba(191, 64, 191, .62));
  border: 1px solid rgba(255, 255, 255, .24);
  box-shadow: var(--ios-hi), 0 8px 22px -8px rgba(127, 0, 255, .7);
}
.admin-bar-toggle {
  background: rgba(230, 230, 250, .08);
  border: 1px solid var(--ios-rim-soft);
  box-shadow: var(--ios-hi);
}
.admin-stat {
  background: var(--ios-mat);
  border-radius: var(--ios-radius-md);
  border: 1px solid var(--ios-rim-soft);
  box-shadow: var(--ios-hi), var(--ios-shadow);
}
.admin-card { border-radius: var(--ios-radius-lg); }
.admin-table th {
  background: rgba(24, 16, 48, .80);
  backdrop-filter: blur(18px) saturate(1.5);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  border-bottom: 1px solid var(--ios-rim-soft);
}
.admin-table td { border-bottom: 1px solid rgba(224, 214, 255, .07); }
.chat-msg {
  background: rgba(230, 230, 250, .07);
  border: 1px solid var(--ios-rim-soft);
  border-radius: 16px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.chat-msg.mine {
  background: linear-gradient(145deg, rgba(127, 0, 255, .78), rgba(191, 64, 191, .55));
  border-color: rgba(255, 255, 255, .28);
}
.prod-thumb, .pe-thumb { border-radius: var(--ios-radius-md); }
.danger-zone { background: linear-gradient(155deg, rgba(255, 100, 120, .14), rgba(16, 10, 32, .66)); }

/* ---------- Toast ---------- */
.toast {
  border-radius: var(--ios-radius-md);
  background: linear-gradient(155deg, rgba(30, 20, 58, .86), rgba(14, 8, 30, .90));
  border: 1px solid var(--ios-rim);
  backdrop-filter: blur(26px) saturate(1.8);
  -webkit-backdrop-filter: blur(26px) saturate(1.8);
  box-shadow: var(--ios-hi), var(--ios-shadow);
}

/* ---------- Footer: frosted iOS + Enamad ---------- */
.site-footer {
  background:
    radial-gradient(760px 340px at 50% 128%, rgba(93, 63, 211, .28), transparent 62%),
    linear-gradient(180deg, rgba(16, 10, 34, .72), rgba(4, 2, 10, .94));
  backdrop-filter: blur(24px) saturate(1.5);
  -webkit-backdrop-filter: blur(24px) saturate(1.5);
}
.social-btn {
  border-radius: var(--ios-radius-pill);
  background: linear-gradient(145deg, rgba(127, 0, 255, .55), rgba(191, 64, 191, .40));
  border: 1px solid rgba(255, 255, 255, .22);
  box-shadow: var(--ios-hi), 0 8px 20px -6px rgba(127, 0, 255, .7);
}
.enamad {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 96px;
  min-height: 104px;
  padding: 10px;
  border-radius: 18px;
  border: 1px dashed var(--ios-rim);
  background: var(--ios-mat-chip);
  backdrop-filter: blur(18px) saturate(1.6);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
  box-shadow: var(--ios-hi);
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 800;
  text-align: center;
  line-height: 1.5;
  cursor: pointer;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.enamad:hover { border-color: var(--ios-rim); box-shadow: var(--ios-hi), 0 0 26px -6px var(--glow-purple); }
.enamad svg { color: var(--gold); }
.footer-seals { display: flex; gap: 12px; justify-content: flex-start; }

@media (max-width: 768px) {
  .tabs { border-radius: 20px; justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; }
  .admin-cat-tabs { border-radius: 18px; }
  .admin-bar { border-radius: 0; }
}

/* ---------- Admin roles UI ---------- */
.role-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-bottom: 18px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid var(--ios-rim-soft);
  background: var(--ios-mat-chip);
  backdrop-filter: blur(16px) saturate(1.5);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  font-size: 13px;
  color: var(--muted);
}
.role-legend b { font-weight: 900; }
.role-select {
  padding: 7px 10px;
  border-radius: 11px;
  background: rgba(230, 230, 250, .07);
  border: 1px solid var(--ios-rim-soft);
  color: var(--text);
  font-weight: 700;
  font-size: 12.5px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--ios-hi);
}
.role-select:focus {
  border-color: rgba(191, 64, 191, .60);
  box-shadow: 0 0 0 3px rgba(127, 0, 255, .40), var(--ios-hi);
  outline: none;
}
.role-select:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- Cheats / AntiCheats (red section) ---------- */
.nav-red { color: #ff6b81; }
.nav-red:hover { color: #ff8fa3; text-shadow: 0 0 14px rgba(255, 45, 85, .55); }

.cat-card.cat-red {
  background: linear-gradient(160deg, rgba(30, 6, 12, .9), rgba(12, 4, 22, .95));
  border-color: rgba(255, 45, 85, .38);
}
.cat-card.cat-red::before { background: linear-gradient(90deg, #ff2d55, #ff6478); }
.cat-card.cat-red .cat-icon {
  background: linear-gradient(135deg, #ff2d55, #ff6478);
  box-shadow: 0 12px 26px -8px rgba(255, 45, 85, .75);
}
.cat-card.cat-red:hover {
  border-color: #ff2d55;
  box-shadow: var(--shadow), 0 0 46px -12px rgba(255, 45, 85, .62);
}
.cat-card.cat-red:hover h3 { text-shadow: 0 0 22px rgba(255, 45, 85, .85); }
.cat-card.cat-red .cat-count { color: #ff6478; }

.tab-btn.tab-red { border-color: rgba(255, 45, 85, .38); }
.tab-btn.tab-red:hover {
  border-color: #ff2d55;
  color: #fff;
  box-shadow: 0 0 20px -4px rgba(255, 45, 85, .65);
}
.tab-btn.tab-red.active {
  background: linear-gradient(135deg, #ff2d55, #ff6478);
  border-color: transparent;
  box-shadow: 0 12px 28px -10px rgba(255, 45, 85, .6);
}