/* =====================================================
   TinyNetwork — Design System v2
   Dark, minimal, RTL-first, animated
   ===================================================== */

/* ---------- Fonts (self-hosted, no external CDN) ---------- */
@font-face {
  font-family: 'Cinema';
  src: url('../fonts/Cinema.woff2') format('woff2'),
       url('../fonts/Cinema.woff') format('woff'),
       url('../fonts/Cinema.ttf') format('truetype');
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn-Regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn-Medium.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn-Bold.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn-Black.woff2') format('woff2');
  font-weight: 900; font-style: normal; font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  color-scheme: dark;   /* native controls (inputs, scrollbar, autofill) follow the dark theme */
  --bg:        #05080f;
  --bg-soft:   #0a111e;
  --card:      rgba(255, 255, 255, .035);
  --card-hi:   rgba(255, 255, 255, .06);
  --line:      rgba(255, 255, 255, .08);
  --line-hi:   rgba(56, 189, 248, .35);
  --txt:       #eaf1fb;
  --muted:     #8fa1b8;
  --acc:       #38bdf8;
  --acc-2:     #2563eb;
  --ok:        #34d399;
  --warn:      #fbbf24;
  --bad:       #fb7185;
  --grad:      linear-gradient(120deg, #38bdf8, #2563eb);
  --r-lg:      22px;
  --r-md:      16px;
  --r-sm:      10px;
  --shadow:    0 20px 60px -20px rgba(2, 12, 27, .9);
  --ease:      cubic-bezier(.22, .8, .26, .99);
}

/* ---------- Base ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--txt);
  font-family: 'Vazirmatn', 'Segoe UI', Tahoma, sans-serif;
  line-height: 1.75;
  overflow-x: hidden;
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea, option { font-family: inherit; }
select {
  background-color: #0c1425;
  color: var(--txt);
}
select option {
  background-color: #0c1425;
  color: #eaf1fb;
}
::selection { background: rgba(56, 189, 248, .3); }

/* ---------- Typography: Headings Hierarchy ---------- */
/* Large display headings and main section topics use Cinema font */
h1, h2,
.hero h1,
.sec-head h2,
.contact-card h2,
.cta-banner h2,
.large-title,
.font-cinema,
.font-title {
  font-family: 'Cinema', 'Vazirmatn', 'Segoe UI', Tahoma, sans-serif;
}

/* Products, customer reviews, cards, modals, and content remain on Vazirmatn */
h3, h4, h5, h6,
.product-name,
.product-card,
.products-grid,
.prod-card,
.reviews,
.rev-card,
.rev-text,
.rev-who,
.modal-title,
.fw-main-title,
.step-card,
.feat-card,
.faq-q,
.faq-a,
.btn {
  font-family: 'Vazirmatn', 'Segoe UI', Tahoma, sans-serif;
}

/* focus ring for keyboard users */
:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; border-radius: 6px; }

/* slim dark scrollbar (webkit) */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #1c2a44; border-radius: 8px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #27395c; }

/* scroll progress bar */
.scroll-progress {
  position: fixed; top: 0; inset-inline-start: 0; height: 3px; width: 0%;
  z-index: 210; background: var(--grad); border-radius: 0 3px 3px 0;
  box-shadow: 0 0 14px rgba(56, 189, 248, .65);
  transition: width .12s linear;
}

.container { width: min(1140px, 92%); margin-inline: auto; }
.mono { font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.txt-acc { color: var(--acc); }
.ok-text { color: var(--ok); }

/* ---------- Accessibility: skip link ---------- */
.skip-link {
  position: fixed; top: -64px; inset-inline-start: 16px; z-index: 400;
  background: #0b1322; color: var(--txt);
  border: 1px solid var(--acc); border-radius: 0 0 12px 12px;
  padding: 10px 20px; font-size: 13.5px; font-weight: 700;
  transition: top .2s var(--ease);
}
.skip-link:focus-visible { top: 0; }

/* anchor targets stop below the fixed header (+announcement bar) */
main section[id] { scroll-margin-top: 118px; }
@media (max-width: 760px) {
  main section[id] { scroll-margin-top: 128px; } /* wrapped announcement text = taller fixed header */
}

/* ---------- Ambient background orbs ---------- */
.bg-orbs { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bg-orbs span {
  position: absolute; border-radius: 50%;
  filter: blur(110px); opacity: .5;
  animation: orbDrift 26s var(--ease) infinite alternate;
}
.bg-orbs span:nth-child(1) {
  width: 520px; height: 520px; top: -180px; inset-inline-start: -120px;
  background: radial-gradient(circle, rgba(37, 99, 235, .34), transparent 65%);
}
.bg-orbs span:nth-child(2) {
  width: 420px; height: 420px; top: 30%; inset-inline-end: -160px;
  background: radial-gradient(circle, rgba(56, 189, 248, .22), transparent 65%);
  animation-delay: -8s;
}
.bg-orbs span:nth-child(3) {
  width: 460px; height: 460px; bottom: -200px; inset-inline-start: 30%;
  background: radial-gradient(circle, rgba(14, 116, 233, .18), transparent 65%);
  animation-delay: -16s;
}
@keyframes orbDrift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-60px, 50px) scale(1.15); }
}
/* ultra-subtle film grain for a premium feel */
.bg-orbs::after {
  content: ''; position: absolute; inset: 0; opacity: .035; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0; transform: translateY(26px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: var(--d, 0s);
}
.reveal.in { opacity: 1; transform: none; }

/* =====================================================
   Site Header & Navbar
   ===================================================== */
.site-header {
  position: fixed; top: 0; inset-inline: 0; z-index: 100;
  transition: transform .35s var(--ease);
}

/* ---------- Top Announcement Banner ---------- */
.top-announcement {
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.16) 0%, rgba(56, 189, 248, 0.16) 50%, rgba(37, 99, 235, 0.16) 100%);
  background-color: #060b16;
  border-bottom: 1px solid rgba(56, 189, 248, 0.2);
  font-size: 13px;
  color: #e2e8f0;
  position: relative;
  transition: all .3s var(--ease);
}
.top-announcement.closed {
  display: none;
}
.top-announcement-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 8px 38px 8px 12px;
  min-height: 36px;
}
.top-announcement-msg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  text-align: center;
  line-height: 1.6;
}
.live-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: liveDotPulse 2s infinite;
  flex-shrink: 0;
  display: inline-block;
}
@keyframes liveDotPulse {
  0%   { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); transform: scale(1); }
  70%  { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); transform: scale(1.15); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); transform: scale(1); }
}
.top-announcement-text {
  color: #cbd5e1;
}
.top-announcement-link {
  color: var(--acc);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 700;
  transition: color .2s;
}
.top-announcement-link:hover {
  color: #fff;
}
.top-announcement-close {
  position: absolute;
  inset-inline-start: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  cursor: pointer;
  transition: all .2s;
  padding: 0;
}
.top-announcement-close:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.nav {
  position: relative;
  padding-block: 16px;
  transition: padding .35s var(--ease), background .35s var(--ease),
              border-color .35s var(--ease), backdrop-filter .35s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  padding-block: 10px;
  background: rgba(5, 8, 15, .84);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-color: var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 19px; }
.brand img { width: 36px; height: 36px; filter: drop-shadow(0 0 14px rgba(56, 189, 248, .45)); }
.nav-links { display: flex; gap: 6px; margin-inline-start: auto; }
.nav-links a { padding: 8px 14px; border-radius: 999px; font-size: 14.5px; color: var(--muted); transition: color .25s, background .25s; }
.nav-links a:hover { color: var(--txt); background: var(--card); }
.nav-links a.active { color: var(--txt); background: var(--card-hi); box-shadow: inset 0 0 0 1px var(--line); }

/* center the menu group exactly on the page: brand (right) ↔ spacer (left)
   balance each other, so the links sit dead-center like the cards below */
@media (min-width: 1024px) {
  .nav-inner .brand { flex: 1; }
  .nav-inner::after { content: ''; flex: 1; }
  .nav-inner .nav-links { margin-inline-start: 0; flex-shrink: 0; }
}
.nav-cta {
  margin-inline-start: 8px;
  background: rgba(56, 189, 248, .12);
  color: var(--acc);
  border: 1px solid var(--line-hi);
  border-radius: 999px;
  transition: transform .25s var(--ease), background .25s, border-color .25s, color .25s, box-shadow .25s;
}
.nav-cta svg { flex: 0 0 auto; }
.nav-cta:hover {
  background: rgba(56, 189, 248, .22);
  border-color: var(--acc);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -8px rgba(56, 189, 248, .55);
}
.nav-burger {
  display: none; margin-inline-start: auto;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  width: 42px; height: 42px; color: var(--txt);
  align-items: center; justify-content: center;
}

/* =====================================================
   Buttons
   ===================================================== */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; border: none; border-radius: 14px;
  padding: 13px 26px; font-size: 15px; font-weight: 700;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
  will-change: transform;
  white-space: nowrap;
  flex-shrink: 0;
}
.btn:active { transform: scale(.97); }
.btn-primary {
  background: var(--grad); color: #fff; overflow: hidden;
  box-shadow: 0 10px 30px -8px rgba(37, 99, 235, .55);
}
.btn-primary::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
  transform: translateX(150%);
  transition: transform .7s var(--ease);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 38px -8px rgba(37, 99, 235, .7); }
.btn-primary:hover::after { transform: translateX(-150%); }
.btn-ghost {
  background: var(--card); color: var(--txt);
  border: 1px solid var(--line);
}
.btn-ghost:hover { background: var(--card-hi); border-color: var(--line-hi); transform: translateY(-2px); }
.btn-sm { padding: 9px 15px; font-size: 13px; border-radius: 11px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; pointer-events: none; }

/* VMess Copy Button on Invoice */
.btn-vmess-copy {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  font-size: 13.5px !important;
  padding: 12px 16px !important;
  border-radius: 10px !important;
  border: none !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.35) !important;
  transition: all .2s ease !important;
}
.btn-vmess-copy:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45) !important;
}
.btn-vmess-copy:active {
  transform: scale(.98);
}
.btn-vmess-copy.copied {
  background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
  box-shadow: 0 4px 18px rgba(5, 150, 105, 0.45) !important;
}

/* =====================================================
   Hero
   ===================================================== */
.hero { padding: 158px 0 60px; position: relative; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: 40px; align-items: center; min-height: 480px;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--card); border: 1px solid var(--line);
  padding: 7px 16px; border-radius: 999px;
  font-size: 13px; color: var(--muted); margin-bottom: 22px;
}
.hero-badge i {
  width: 8px; height: 8px; border-radius: 50%; background: var(--ok);
  box-shadow: 0 0 0 0 rgba(52, 211, 153, .6);
  animation: pulseDot 2.2s infinite;
}
@keyframes pulseDot {
  0%   { box-shadow: 0 0 0 0 rgba(52, 211, 153, .55); }
  70%  { box-shadow: 0 0 0 9px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}
.hero h1 {
  font-size: clamp(30px, 4.6vw, 54px);
  font-weight: 900; line-height: 1.35; letter-spacing: -.01em;
}
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero-sub {
  margin-top: 18px; font-size: clamp(15px, 1.6vw, 17.5px);
  color: var(--muted); max-width: 46ch;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-trust {
  display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 34px;
  font-size: 13px; color: var(--muted);
}
.hero-trust span { display: inline-flex; align-items: center; gap: 7px; }
.hero-trust svg { width: 17px; height: 17px; stroke: var(--acc); flex-shrink: 0; }

.hero-visual { position: relative; display: grid; place-items: center; }
/* glowing podium stage under the device */
.hero-visual::after {
  content: ''; position: absolute; bottom: 2%; left: 50%; transform: translateX(-50%);
  width: min(350px, 74%); height: 52px; border-radius: 50%;
  background: radial-gradient(ellipse at center,
    rgba(56, 189, 248, .38), rgba(37, 99, 235, .14) 52%, transparent 76%);
  filter: blur(15px);
  animation: ringPulse 6s ease-in-out infinite;
  z-index: 0;
}
/* thin light ring on the podium */
.hero-visual::before {
  content: ''; position: absolute; bottom: 6%; left: 50%; transform: translateX(-50%);
  width: min(300px, 62%); height: 34px; border-radius: 50%;
  border: 1.5px solid rgba(56, 189, 248, .28);
  border-bottom-color: transparent; border-top-color: rgba(56, 189, 248, .45);
  filter: blur(.4px);
  animation: ringPulse 6s ease-in-out infinite reverse;
  z-index: 0;
}
.hero-glowring {
  position: absolute; width: min(430px, 88%); aspect-ratio: 1; border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, rgba(56, 189, 248, .28), transparent 55%),
    radial-gradient(circle at 70% 65%, rgba(37, 99, 235, .3), transparent 55%);
  filter: blur(48px);
  animation: ringPulse 6s ease-in-out infinite;
}
@keyframes ringPulse {
  0%, 100% { opacity: .65; transform: scale(.96); }
  50%      { opacity: 1;   transform: scale(1.05); }
}
/* ---------- Hero Device Showcase Slider ---------- */
.hero-device-slider {
  position: relative;
  z-index: 1;
  width: min(420px, 86%);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}
.hero-device-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(22px) scale(0.92);
  transition: opacity .7s cubic-bezier(0.16, 1, 0.3, 1),
              transform .7s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}
.hero-device-slide.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.hero-img {
  position: relative; z-index: 1; width: 100%; height: 100%;
  object-fit: contain;
  animation: heroFloat 6.5s ease-in-out infinite;
  filter: drop-shadow(0 36px 56px rgba(2, 8, 20, .92))
          drop-shadow(0 0 48px rgba(56, 189, 248, .24));
}
@keyframes heroFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-14px) rotate(.5deg); }
}

/* Device pill badge */
.hero-device-badge {
  position: absolute;
  bottom: -6px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(10, 17, 30, 0.88);
  border: 1px solid rgba(56, 189, 248, 0.28);
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  color: #f8fafc;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), inset 0 0 12px rgba(56, 189, 248, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all .3s var(--ease);
}
.hero-device-badge .badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--acc);
  box-shadow: 0 0 8px var(--acc);
  animation: pulseDot 2s infinite;
}

/* Pagination indicators */
.hero-indicators {
  position: absolute;
  bottom: -36px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-indicators .indicator {
  width: 20px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  border: none;
  cursor: pointer;
  padding: 0;
  position: relative;
  transition: all .35s var(--ease);
}
/* invisible hit-area expansion so the dot meets the 24×24px touch-target minimum */
.hero-indicators .indicator::after {
  content: '';
  position: absolute;
  inset: -13px -8px;
  border-radius: 999px;
}
.hero-indicators .indicator:hover {
  background: rgba(255, 255, 255, 0.45);
}
.hero-indicators .indicator.active {
  width: 36px;
  background: var(--grad);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.65);
}

.hero-chip {
  position: absolute; z-index: 2;
  background: rgba(10, 17, 30, .82); border: 1px solid var(--line);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-radius: 14px; padding: 9px 15px; font-size: 12.5px; font-weight: 500;
  display: flex; align-items: center; gap: 8px;
  box-shadow: var(--shadow);
  animation: chipFloat 7s ease-in-out infinite;
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.hero-chip svg { width: 16px; height: 16px; stroke: var(--acc); flex-shrink: 0; }
.hero-chip.c1 { top: 12%; inset-inline-start: 2%; animation-delay: -2s; }
.hero-chip.c2 { bottom: 16%; inset-inline-end: 0%; animation-delay: -4.5s; }
@keyframes chipFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-11px); }
}

/* =====================================================
   Customer reviews
   ===================================================== */
.rev-summary {
  display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center;
  margin-top: 18px; padding: 9px 20px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line); font-size: 13.5px; color: var(--muted);
}
.rev-summary b { font-weight: 800; color: var(--txt); }
.rev-stars { color: #fbbf24; letter-spacing: 2px; font-size: 14px; }

.rev-viewport {
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; -ms-overflow-style: none;
}
.rev-viewport::-webkit-scrollbar { display: none; height: 0; }
.rev-track { display: flex; gap: 20px; }
.rev-track .rev-card { flex: 0 0 calc((100% - 40px) / 3); scroll-snap-align: start; }
.rev-nav {
  display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 26px;
}
.rev-arrow {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: var(--card); border: 1px solid var(--line); color: var(--muted); cursor: pointer;
  transition: color .25s, border-color .25s, transform .25s var(--ease);
}
.rev-arrow:hover { color: var(--acc); border-color: var(--line-hi); transform: scale(1.06); }
.rev-arrow svg { width: 18px; height: 18px; stroke: currentColor; }
.rev-dots { display: flex; gap: 8px; align-items: center; }
.rev-dot {
  width: 8px; height: 8px; border-radius: 50%; padding: 0; border: 0; cursor: pointer;
  background: var(--line-hi); opacity: .6; transition: background .25s, transform .25s, opacity .25s;
}
.rev-dot.on { background: var(--acc); opacity: 1; transform: scale(1.25); }
@media (max-width: 1024px) { .rev-track .rev-card { flex-basis: calc((100% - 20px) / 2); } }
@media (max-width: 640px)  { .rev-track .rev-card { flex-basis: 100%; } .rev-dots { gap: 7px; } }
.rev-card {
  display: flex; flex-direction: column; gap: 14px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 24px 22px;
  transition: transform .35s var(--ease), border-color .3s, box-shadow .35s var(--ease);
}
.rev-card:hover { transform: translateY(-4px); border-color: var(--line-hi); box-shadow: var(--shadow); }
.rev-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.rev-verified {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11.5px; font-weight: 700; color: var(--ok);
}
.rev-verified svg { width: 13px; height: 13px; stroke: currentColor; }
.rev-text { color: var(--txt); opacity: .85; font-size: 14px; line-height: 2; }
.rev-foot {
  display: flex; align-items: center; gap: 12px;
  margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line);
}
.rev-avatar {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center; font-weight: 800; font-size: 15px;
  background: linear-gradient(135deg, rgba(56, 189, 248, .18), rgba(37, 99, 235, .28));
  border: 1px solid var(--line-hi); color: var(--acc);
}
.rev-who b { display: block; font-size: 14px; }
.rev-who small { color: var(--muted); font-size: 12px; }

/* ---------- Waitlist modal + out-of-stock product state ---------- */
.modal-panel.slim { max-width: 430px; width: calc(100% - 40px); }
.wl-sub { color: var(--muted); font-size: 13.5px; line-height: 2; margin: -8px 0 18px; }
.wl-sub b { color: var(--txt); }
.wl-error { color: var(--bad, #fb7185); font-size: 13px; font-weight: 600; margin: 2px 0 12px; }
.wl-submit { width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.wl-submit[disabled] { opacity: .55; cursor: not-allowed; }
.product-card.out .product-media img { opacity: .45; filter: grayscale(.35); }
.product-flags {
  position: absolute; top: 14px; inset-inline-start: 14px; z-index: 2;
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
  max-width: calc(100% - 28px);
}
.stock-out-chip {
  position: relative;
  background: rgba(251, 113, 133, .16); border: 1px solid rgba(251, 113, 133, .45);
  color: var(--bad, #fb7185); font-size: 11.5px; font-weight: 800;
  padding: 4px 11px; border-radius: 999px;
  white-space: nowrap;
}
.btn-ghost {
  background: transparent; border: 1px solid var(--line-hi, var(--line, rgba(255,255,255,.14)));
  color: var(--txt);
}
.btn-ghost:hover { border-color: var(--acc); color: var(--acc); }

/* ---------- Order tracking (پیگیری سفارش) ---------- */
.trk-steps { list-style: none; margin: 16px 0 4px; padding: 0; display: flex; flex-direction: column; }
.trk-step {
  display: flex; align-items: center; gap: 10px;
  position: relative; padding: 6px 0;
  color: var(--muted); font-size: 13.5px; font-weight: 600;
}
.trk-step i {
  width: 14px; height: 14px; border-radius: 50%; flex: 0 0 auto;
  border: 2px solid var(--line); background: transparent;
  position: relative; z-index: 1;
}
.trk-step:not(:last-child)::before {
  content: ''; position: absolute; top: 26px; inset-inline-start: 6px;
  width: 2px; height: calc(100% - 20px); background: var(--line);
}
.trk-step.done { color: var(--txt); }
.trk-step.done i { background: var(--ok); border-color: var(--ok); }
.trk-step.done:not(:last-child)::before { background: var(--ok); opacity: .55; }
.trk-step.current { color: var(--acc); }
.trk-step.current i {
  border-color: var(--acc); background: rgba(56,189,248,.15);
  animation: trkPulse 1.6s var(--ease) infinite;
}
@keyframes trkPulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(56,189,248,.18); }
  50%      { box-shadow: 0 0 0 7px rgba(56,189,248,.06); }
}
.trk-banner {
  font-size: 13px; font-weight: 700; border-radius: 12px;
  padding: 10px 14px; margin: 12px 0 2px; line-height: 1.9;
}
.trk-banner.bad  { background: rgba(251,113,133,.12); border: 1px solid rgba(251,113,133,.4);  color: var(--bad); }
.trk-banner.warn { background: rgba(251,191,36,.1);  border: 1px solid rgba(251,191,36,.35);  color: var(--warn); }
.trk-banner.ok   { background: rgba(52,211,153,.1);  border: 1px solid rgba(52,211,153,.35);  color: var(--ok); }
.trk-invoice {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 14px 16px; margin-top: 14px;
}
.trk-inv-head { font-size: 12.5px; font-weight: 800; letter-spacing: .04em; color: var(--acc); margin-bottom: 8px; }
.trk-row {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 6px 10px; padding: 7px 0;
  border-bottom: 1px dashed var(--line); font-size: 13.5px;
}
.trk-row:last-child { border-bottom: 0; }
.trk-row span { color: var(--muted); }
.trk-row.sum { border-top: 1px solid var(--line); border-bottom: 0; margin-top: 4px; padding-top: 12px; font-size: 14.5px; }
.trk-post { font-size: 12.5px; color: var(--acc); font-weight: 700; white-space: nowrap; }
.trk-post:hover { text-decoration: underline; }
.trk-history { margin-top: 14px; font-size: 13px; }
.trk-history > b { display: block; color: var(--muted); font-size: 12px; margin-bottom: 4px; }
.trk-hrow {
  display: flex; justify-content: space-between; gap: 10px;
  padding: 5px 0; border-bottom: 1px dashed var(--line);
}
.trk-hrow:last-child { border-bottom: 0; }
.trk-hrow small { color: var(--muted); }

/* =====================================================
   Sections
   ===================================================== */
.section { padding: 84px 0; }
.sec-head { text-align: center; max-width: 620px; margin: 0 auto 52px; }
.kicker {
  display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: .06em;
  color: var(--acc); background: rgba(56, 189, 248, .09);
  border: 1px solid rgba(56, 189, 248, .22);
  padding: 6px 16px; border-radius: 999px; margin-bottom: 16px;
}
.sec-head h2 { font-size: clamp(24px, 3.2vw, 36px); font-weight: 900; line-height: 1.4; }
.sec-head p { color: var(--muted); margin-top: 12px; font-size: 15px; }

/* =====================================================
   Product cards
   ===================================================== */
.products-grid { display: grid; grid-template-columns: 1fr; gap: 26px; }
/* deterministic layout for the 4-product catalog: never leaves an orphan card
   (auto-fit produced 3+1 on desktop — ugly). 4-col ≥1160px, 2×2 tablet, 1-col mobile */
@media (min-width: 641px) {
  .products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1160px) {
  .products-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
}
/* single product → centered featured card */
.products-grid.single { grid-template-columns: minmax(0, 700px); justify-content: center; }
@media (min-width: 761px) {
  .products-grid.single .product-card { flex-direction: row; align-items: stretch; }
  .products-grid.single .product-media { flex: 0 0 46%; aspect-ratio: auto; min-height: 330px; }
  .products-grid.single .product-body { flex: 1; padding: 30px 28px 26px; }
  .products-grid.single .product-name { font-size: 22px; }
  .products-grid.single .product-tag { font-size: 14px; }
  .products-grid.single .product-price b { font-size: 25px; }
  .products-grid.single .btn { padding: 12px 30px; }
}
.product-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden;
  height: 100%;
  opacity: 1 !important;
  transform: none;
  transition: transform .45s var(--ease), border-color .35s, box-shadow .45s var(--ease), background .35s;
}
.product-card.reveal {
  opacity: 1 !important;
  transform: none;
}
.product-card:hover {
  transform: translateY(-8px);
  border-color: transparent;
  background: var(--card-hi);
  box-shadow: 0 30px 60px -22px rgba(3, 15, 35, .95);
}
/* animated gradient border on hover */
.product-card::after {
  content: ''; position: absolute; inset: 0; border-radius: var(--r-lg);
  padding: 1.5px; pointer-events: none;
  background: linear-gradient(140deg, rgba(56,189,248,.55), rgba(56,189,248,.06) 38%, rgba(37,99,235,.06) 62%, rgba(37,99,235,.5));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .45s var(--ease);
}
.product-card:hover::after { opacity: 1; }
/* fast-follow transition while JS tilt is driving the transform */
.product-card.tilting { transition: transform .1s linear, border-color .35s, box-shadow .45s var(--ease), background .35s; }
.product-media {
  position: relative;
  background:
    radial-gradient(circle at 50% 118%, rgba(56, 189, 248, .17), transparent 62%),
    radial-gradient(rgba(255, 255, 255, .05) 1px, transparent 1.6px) 0 0 / 22px 22px,
    #0a101b;
  aspect-ratio: 4 / 3; display: grid; place-items: center; overflow: hidden;
}
.product-media img {
  width: auto; height: auto;
  max-width: 72%; max-height: 86%;
  object-fit: contain;
  filter: drop-shadow(0 26px 30px rgba(2, 8, 20, .6));
  transition: transform .6s var(--ease);
}
.product-card:hover .product-media img { transform: scale(1.07) rotate(-1deg); }
.product-flag {
  position: relative; top: auto; inset-inline-start: auto;
  background: var(--grad); color: #fff;
  font-size: 11.5px; font-weight: 700; letter-spacing: .03em;
  padding: 5px 13px; border-radius: 999px;
  box-shadow: 0 6px 18px -4px rgba(37, 99, 235, .6);
  white-space: nowrap;
}
.ship-chip {
  position: absolute; bottom: 12px; inset-inline-start: 12px; z-index: 2;
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11.5px; font-weight: 700; color: var(--ok);
  background: rgba(5, 12, 22, .72); border: 1px solid rgba(52, 211, 153, .35);
  padding: 4px 10px; border-radius: 999px;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.ship-chip svg { width: 12px; height: 12px; stroke: currentColor; }
.product-body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.product-name { font-size: 19px; font-weight: 900; }
.product-tag { color: var(--muted); font-size: 13.5px; margin-top: -8px; }
.product-gift {
  display: inline-flex; align-items: center; gap: 7px; align-self: start;
  font-size: 12px; font-weight: 700; color: var(--ok);
  background: rgba(52, 211, 153, .08); border: 1px solid rgba(52, 211, 153, .25);
  padding: 5px 12px; border-radius: 999px;
}
.product-gift svg { width: 14px; height: 14px; stroke: currentColor; }
.product-foot {
  margin-top: auto; display: flex; align-items: center; justify-content: space-between;
  /* stack price above a full-width button — both «خرید» and «ثبت‌نام در نوبت»
     get the same big, tap-friendly size and never overlap the price */
  flex-direction: column; align-items: stretch; gap: 12px;
  padding-top: 10px; border-top: 1px dashed var(--line);
  min-height: 48px;
}
.product-price { line-height: 1.3; min-width: 0; white-space: nowrap; }
.product-foot .btn { width: 100%; justify-content: center; flex: 0 0 auto; white-space: nowrap; }
.product-price small { display: block; color: var(--muted); font-size: 12px; margin-bottom: 2px; }
.product-price b { font-size: 21px; font-weight: 900; }
.product-price .cur { font-size: 12px; color: var(--muted); font-weight: 600; margin-inline-start: 4px; }

/* =====================================================
   Feature cards
   ===================================================== */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.feature-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 28px 24px;
  transition: transform .45s var(--ease), border-color .3s, background .3s;
}
.feature-card:hover { transform: translateY(-6px); border-color: var(--line-hi); background: var(--card-hi); }
.feature-icon {
  width: 52px; height: 52px; border-radius: 15px;
  display: grid; place-items: center; margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(56, 189, 248, .16), rgba(37, 99, 235, .16));
  border: 1px solid rgba(56, 189, 248, .3);
}
.feature-icon svg { width: 26px; height: 26px; stroke: var(--acc); }
.feature-card h3 { font-size: 16.5px; font-weight: 800; margin-bottom: 9px; }
.feature-card p { color: var(--muted); font-size: 13.8px; }

/* =====================================================
   Specs strip
   ===================================================== */
.specs-wrap {
  display: grid; grid-template-columns: 1fr 1fr; gap: 44px;
  align-items: center;
  background: var(--card); border: 1px solid var(--line);
  border-radius: calc(var(--r-lg) + 6px); padding: 46px;
  position: relative; overflow: hidden;
}
.specs-wrap::before {
  content: ''; position: absolute; inset-inline-start: -80px; top: -80px;
  width: 280px; height: 280px; border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, .16), transparent 70%);
  filter: blur(40px);
}
/* framed light "device card" so white-bg product photos look intentional */
.specs-img {
  position: relative; z-index: 1;
  background: linear-gradient(160deg, #f9fbfe, #e7edf5);
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: var(--r-lg);
  padding: clamp(22px, 3.4vw, 40px);
  box-shadow:
    0 34px 64px -28px rgba(2, 8, 20, .95),
    0 0 0 1px rgba(56, 189, 248, .08),
    inset 0 1px 0 #fff;
}
.specs-img::after {
  content: ''; position: absolute; inset: 10px; border-radius: calc(var(--r-lg) - 8px);
  border: 1px dashed rgba(15, 40, 80, .1); pointer-events: none;
}
.specs-img img {
  width: 100%; max-width: 380px; margin-inline: auto;
  border-radius: 12px;
}
.spec-list { position: relative; z-index: 1; display: flex; flex-direction: column; }
.spec-row {
  display: flex; justify-content: space-between; align-items: center; gap: 18px;
  padding: 13px 4px; border-bottom: 1px solid var(--line); font-size: 14px;
}
.spec-row:last-child { border-bottom: none; }
.spec-row span { color: var(--muted); }
.spec-row b { font-weight: 700; }

/* =====================================================
   Steps
   ===================================================== */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step-card {
  position: relative; text-align: center; padding: 34px 24px 30px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  transition: transform .4s var(--ease), border-color .3s;
}
.step-card:hover { transform: translateY(-5px); border-color: var(--line-hi); }
.step-num {
  counter-increment: step;
  width: 46px; height: 46px; margin: 0 auto 16px;
  display: grid; place-items: center;
  border-radius: 50%; font-weight: 900; font-size: 18px; color: #fff;
  background: var(--grad);
  box-shadow: 0 8px 22px -6px rgba(37, 99, 235, .65);
}
.step-num::before { content: counter(step); }
.step-card h3 { font-size: 16px; font-weight: 800; margin-bottom: 8px; }
.step-card p { color: var(--muted); font-size: 13.5px; }

/* =====================================================
   FAQ
   ===================================================== */
.faq-list { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.faq-item {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-md); overflow: hidden;
  transition: border-color .3s;
}
.faq-item.open { border-color: var(--line-hi); }
.faq-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 14px;
  background: none; border: none; color: var(--txt);
  padding: 19px 22px; font-size: 15px; font-weight: 700; text-align: start;
}
.faq-q svg {
  width: 20px; height: 20px; stroke: var(--acc); flex-shrink: 0;
  transition: transform .35s var(--ease);
}
.faq-item.open .faq-q svg { transform: rotate(45deg); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ease); }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a-inner { overflow: hidden; }
.faq-a-inner p { padding: 0 22px 20px; color: var(--muted); font-size: 14px; }

/* =====================================================
   Contact card
   ===================================================== */
.contact-card {
  position: relative; overflow: hidden; text-align: center;
  border-radius: calc(var(--r-lg) + 6px); padding: 56px 30px;
  background:
    radial-gradient(circle at 50% -40%, rgba(56, 189, 248, .25), transparent 58%),
    linear-gradient(180deg, #0c1526, #0a1120);
  border: 1px solid var(--line);
}
.contact-card h2 { font-size: clamp(22px, 3vw, 32px); font-weight: 900; margin: 14px 0 10px; }
.contact-card > p { color: var(--muted); margin-bottom: 30px; max-width: 520px; margin-inline: auto; }
.contact-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.contact-btn {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 16px; padding: 13px 22px; text-align: start;
  transition: transform .3s var(--ease), border-color .3s, background .3s;
}
.contact-btn:hover { transform: translateY(-3px); background: var(--card-hi); }
.contact-btn svg { width: 26px; height: 26px; min-width: 26px; min-height: 26px; flex-shrink: 0; }
.contact-btn small { display: block; font-size: 12px; color: var(--muted); margin-bottom: 1px; }
.contact-btn b { font-size: 15px; font-weight: 800; }
.contact-btn.wa svg { fill: #34d399; }
.contact-btn.wa:hover { border-color: rgba(52, 211, 153, .55); }
.contact-btn.tg svg { fill: #38bdf8; }
.contact-btn.tg:hover { border-color: rgba(56, 189, 248, .55); }
.contact-btn.ig svg { fill: #f472b6; }
.contact-btn.ig:hover { border-color: rgba(244, 114, 182, .55); }

/* =====================================================
   CTA banner
   ===================================================== */
.cta-banner {
  position: relative; overflow: hidden; text-align: center;
  border-radius: calc(var(--r-lg) + 6px); padding: 64px 30px;
  background:
    radial-gradient(circle at 50% -40%, rgba(56, 189, 248, .28), transparent 58%),
    linear-gradient(180deg, #0c1526, #0a1120);
  border: 1px solid var(--line);
}
.cta-banner h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 900; margin-bottom: 10px; }
.cta-banner p { color: var(--muted); margin-bottom: 28px; }

/* =====================================================
   Footer
   ===================================================== */
.footer { border-top: 1px solid var(--line); padding: 44px 0 34px; margin-top: 40px; }
.footer-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 20px;
}
.footer-note { color: var(--muted); font-size: 13px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--card); border: 1px solid var(--line);
  transition: transform .3s var(--ease), border-color .3s, background .3s;
}
.footer-social a:hover { transform: translateY(-3px); border-color: var(--line-hi); background: var(--card-hi); }
.footer-social svg { width: 18px; height: 18px; fill: var(--muted); transition: fill .25s; }
.footer-social a:hover svg { fill: var(--acc); }

/* =====================================================
   Modal
   ===================================================== */
.modal {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center; padding: 20px;
  background: rgba(3, 6, 12, .72);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  opacity: 0; visibility: hidden;
  transition: opacity .35s var(--ease), visibility .35s;
}
.modal.open { opacity: 1; visibility: visible; }
.modal-panel {
  width: min(560px, 100%); max-height: min(88vh, 720px); overflow-y: auto;
  background: #0b1322; border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 30px 28px;
  box-shadow: var(--shadow);
  transform: translateY(26px) scale(.97);
  transition: transform .4s var(--ease);
  scrollbar-width: thin; scrollbar-color: #223252 transparent;
}
.modal.open .modal-panel { transform: none; }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 22px; }
.modal-title { font-size: 18px; font-weight: 900; }
.modal-x {
  width: 38px; height: 38px; border-radius: 11px; flex-shrink: 0;
  background: var(--card); border: 1px solid var(--line); color: var(--muted);
  display: grid; place-items: center; font-size: 18px;
  transition: color .25s, border-color .25s, transform .25s;
}
.modal-x:hover { color: var(--txt); border-color: var(--line-hi); transform: rotate(90deg); }

/* ---------- Order modal internals ---------- */
.order-product-line {
  display: flex; align-items: center; gap: 14px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 14px 16px; margin-bottom: 20px;
}
.order-product-line img { width: 58px; height: 58px; object-fit: contain; }
.order-product-line b { font-size: 14.5px; display: block; }
.order-product-line small { color: var(--ok); font-size: 12.5px; }
.order-product-line small svg { width: 15px; height: 15px; stroke: currentColor; vertical-align: -2.5px; margin-inline-end: 4px; }

/* multi-product order items */
.order-items { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.order-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 14px;
  background: var(--card);
}
.order-item img { width: 46px; height: 46px; object-fit: contain; border-radius: 10px; background: rgba(255,255,255,.05); }
.oi-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.oi-info b { font-size: 13.5px; line-height: 1.4; }
.oi-info small { color: var(--muted); font-size: 11.5px; }
.stepper-sm button, .stepper-sm output { min-width: 28px; height: 28px; font-size: 13px; }
.oi-remove {
  background: none; border: none; color: var(--muted);
  font-size: 18px; line-height: 1; cursor: pointer;
  padding: 4px 7px; border-radius: 8px; transition: color .2s, background .2s;
}
.oi-remove:hover { color: #fb7185; background: rgba(251, 113, 133, .1); }
.add-item-row { display: flex; gap: 8px; margin-bottom: 16px; }
.add-item-row select {
  flex: 1; min-width: 0;
  background-color: #0c1425;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238fa1b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 12px center;
  border: 1px solid var(--line);
  color: var(--txt); border-radius: 12px; padding: 10px 36px 10px 14px;
  font: inherit; font-size: 13.5px;
  outline: none; cursor: pointer;
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  transition: border-color .2s, box-shadow .2s;
}
.add-item-row select:focus {
  border-color: var(--acc);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, .15);
}
.add-item-row select:disabled { opacity: .55; cursor: not-allowed; }
.add-item-row select option {
  background-color: #0c1425;
  color: #eaf1fb;
  font-family: 'Vazirmatn', 'Segoe UI', Tahoma, sans-serif;
  font-size: 13.5px;
  padding: 10px 14px;
}

.qty-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.qty-label { font-size: 14px; font-weight: 700; }
.stepper {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 4px;
}
.stepper button {
  width: 34px; height: 34px; border-radius: 9px; border: none;
  background: transparent; color: var(--txt); font-size: 18px; font-weight: 900;
  transition: background .2s;
}
.stepper button:hover { background: var(--card-hi); }
.stepper output { min-width: 34px; text-align: center; font-weight: 900; font-size: 15px; }

.summary { display: flex; flex-direction: column; gap: 9px; margin-bottom: 22px; }
.sum-row { display: flex; justify-content: space-between; font-size: 13.8px; color: var(--muted); }
.sum-row b { color: var(--txt); font-weight: 700; }
.sum-total {
  border-top: 1px dashed var(--line); padding-top: 13px; margin-top: 5px;
  font-size: 15.5px; color: var(--txt) !important;
}
.sum-total b { color: var(--acc) !important; font-size: 19px !important; font-weight: 900 !important; }

.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 7px; color: var(--muted); }
.field input, .field textarea, .field select {
  width: 100%; background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line); border-radius: 12px;
  color: var(--txt); font-size: 14.5px; padding: 12px 15px;
  outline: none; transition: border-color .25s, box-shadow .25s, background .25s;
}
.field input:focus, .field textarea:focus {
  border-color: var(--acc);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, .15);
  background: rgba(255, 255, 255, .055);
}
.field input.invalid { border-color: var(--bad); box-shadow: 0 0 0 3px rgba(251, 113, 133, .12); }
.field small { display: block; color: var(--muted); font-size: 12px; margin-top: 5px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field-row.cols-3 { grid-template-columns: repeat(3, 1fr); }
.form-error {
  display: none; background: rgba(251, 113, 133, .09);
  border: 1px solid rgba(251, 113, 133, .35); color: var(--bad);
  border-radius: 12px; padding: 11px 15px; font-size: 13px; margin-bottom: 14px;
}
.form-error.show { display: block; }

.gateway-note {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  color: var(--muted); font-size: 12.5px; margin-top: 14px;
}
.gateway-note svg { width: 15px; height: 15px; stroke: var(--ok); }

.spinner {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, .3); border-top-color: #fff;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* =====================================================
   Toast
   ===================================================== */
.toast {
  position: fixed; bottom: 26px; left: 50%; z-index: 300;
  transform: translateX(-50%) translateY(80px);
  background: #0d1728; border: 1px solid var(--line);
  border-radius: 14px; padding: 13px 22px;
  font-size: 14px; box-shadow: var(--shadow);
  opacity: 0; transition: transform .45s var(--ease), opacity .45s;
  max-width: min(92vw, 480px); text-align: center;
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }
.toast.err { border-color: rgba(251, 113, 133, .5); }
.toast.ok  { border-color: rgba(52, 211, 153, .5); }

/* =====================================================
   Invoice page (verify.php)
   ===================================================== */
.invoice-page { display: flex; flex-direction: column; }
.invoice-wrap { flex: 1; display: grid; place-items: center; padding: 48px 18px; }
.invoice-card {
  width: min(480px, 100%);
  background: rgba(13, 21, 38, .88); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 34px 30px; text-align: center;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.invoice-brand { display: flex; align-items: center; justify-content: center; gap: 10px; font-weight: 900; font-size: 17px; margin-bottom: 26px; }
.invoice-brand img { width: 42px; height: 42px; object-fit: contain; }
.invoice-state {
  width: 66px; height: 66px; border-radius: 20px; margin: 0 auto 16px;
  display: grid; place-items: center; font-size: 30px; font-weight: 900;
}
.invoice-state.ok {
  color: var(--ok); background: rgba(52, 211, 153, .1);
  border: 1px solid rgba(52, 211, 153, .4);
  box-shadow: 0 0 40px -6px rgba(52, 211, 153, .35);
}
.invoice-state.fail {
  color: var(--bad); background: rgba(251, 113, 133, .1);
  border: 1px solid rgba(251, 113, 133, .4);
  box-shadow: 0 0 40px -6px rgba(251, 113, 133, .35);
}
.invoice-title { font-size: 21px; font-weight: 900; margin-bottom: 8px; }
.invoice-title.ok { color: var(--ok); } .invoice-title.fail { color: var(--bad); }
.invoice-sub { color: var(--muted); font-size: 13px; margin-bottom: 26px; }
.invoice-box {
  background: rgba(5, 8, 15, .55); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 6px 18px; text-align: start;
  display: flex; flex-direction: column; margin-bottom: 26px;
}
.inv-row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 18px;
  padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 13px;
}
.inv-row:last-child { border-bottom: none; }
.inv-row span { color: var(--muted); flex-shrink: 0; }
.inv-row b { font-weight: 700; text-align: end; }
.inv-addr { max-width: 230px; font-size: 12px; line-height: 1.7; }
.invoice-actions { display: flex; flex-direction: column; gap: 10px; }

/* =====================================================
   Back to top
   ===================================================== */
.back-top {
  position: fixed; bottom: 26px; inset-inline-end: 26px; z-index: 150;
  width: 46px; height: 46px; border-radius: 14px;
  background: #0b1322; border: 1px solid var(--line); color: var(--txt);
  display: grid; place-items: center;
  opacity: 0; visibility: hidden; transform: translateY(14px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s, border-color .25s;
  box-shadow: var(--shadow);
}
@media (max-width: 640px) {
  .back-top { width: 40px; height: 40px; bottom: 18px; inset-inline-end: 14px; border-radius: 12px; }
}
.back-top.show { opacity: 1; visibility: visible; transform: none; }
.back-top:hover { border-color: var(--line-hi); }
.back-top svg { stroke: var(--acc); }

/* =====================================================
   Footer (extended)
   ===================================================== */
.footer-inner { align-items: flex-start; }
.footer-brand { display: flex; flex-direction: column; gap: 10px; max-width: 300px; }
.footer-tag { color: var(--muted); font-size: 13px; line-height: 1.8; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 22px; padding-top: 8px; }
.footer-nav a {
  color: var(--muted); font-size: 13.5px; font-weight: 600;
  transition: color .25s;
}
.footer-nav a:hover { color: var(--acc); }
.footer-col { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.footer-bottom {
  border-top: 1px solid var(--line); margin-top: 30px; padding-top: 22px;
}
.footer-bottom .footer-note { text-align: center; }
@media (max-width: 760px) {
  .footer-inner { flex-direction: column; align-items: center; text-align: center; }
  .footer-brand { align-items: center; }
  .footer-col { align-items: center; }
}

/* =====================================================
   Responsive
   ===================================================== */
@media (max-width: 920px) {
  .hero { padding-top: 128px; }
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-sub { margin-inline: auto; }
  .hero-actions, .hero-trust { justify-content: center; }
  /* H1 + CTA stay on top; device showcase follows below for better mobile funnel */
  .hero-visual { margin-top: 44px; }
  .hero-img { width: min(300px, 68%); }
  .hero-chip.c1 { inset-inline-start: 0; }
  .hero-chip.c2 { inset-inline-end: 0; }
  .specs-wrap { grid-template-columns: 1fr; padding: 30px; }
  .steps-grid { grid-template-columns: 1fr; max-width: 420px; margin: auto; }
}
@media (max-width: 760px) {
  .nav-links {
    position: absolute; top: calc(100% + 6px); inset-inline: 14px;
    flex-direction: column; padding: 12px;
    background: rgba(8, 13, 24, .97); border: 1px solid var(--line);
    border-radius: var(--r-md);
    opacity: 0; visibility: hidden; transform: translateY(-12px);
    transition: all .35s var(--ease);
  }
  .nav-links.open { opacity: 1; visibility: visible; transform: none; }
  .top-announcement-inner { padding: 6px 30px 6px 8px; }
  .top-announcement-msg { font-size: 12px; gap: 4px 6px; }
  .top-announcement-close { inset-inline-start: 6px; }
  .nav-links a { padding: 12px 16px; }
  .nav-burger { display: inline-flex; }
  /* keep the tracking button visible inside the mobile dropdown, full-width */
  .nav-cta {
    display: flex; justify-content: center; align-items: center;
    margin: 8px 6px 2px; width: calc(100% - 12px);
  }
  .section { padding: 60px 0; }
  .contact-card { padding: 38px 18px; }
  .contact-btns { flex-direction: column; align-items: stretch; max-width: 320px; margin-inline: auto; }
  .contact-btn { justify-content: flex-start; }
  .field-row, .field-row.cols-3 { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
}

/* =====================================================
   Reduced motion & print
   ===================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  html { scroll-behavior: auto; }
}
@media print {
  body.invoice-page { background: #fff; color: #111; }
  .bg-orbs, .no-print { display: none !important; }
  .invoice-card { background: #fff; border: 1px solid #ddd; box-shadow: none; color: #111; }
  .invoice-box { background: #fafafa; border-color: #e5e5e5; }
  .inv-row { border-color: #eee; } .inv-row span { color: #555; }
  .invoice-brand, .invoice-title, .inv-row b { color: #111 !important; }
}
/* =======================================================
   Firmware download section
   ======================================================= */
#firmware .sec-head { margin-bottom: 42px; }
#firmware .sec-head h2 .grad {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.fw-panel {
  position: relative; max-width: 780px; margin: 0 auto;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 22px 24px 10px;
  overflow: hidden;
}
.fw-panel::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--grad);
}
.fw-panel-head { display: flex; gap: 15px; align-items: flex-start; padding-bottom: 18px; }
.fw-icon {
  flex: 0 0 46px; width: 46px; height: 46px; border-radius: 13px;
  display: grid; place-items: center; color: #fff;
  background: var(--grad);
  box-shadow: 0 8px 22px -8px rgba(37, 99, 235, .7);
}
.fw-icon svg { width: 22px; height: 22px; stroke: currentColor; }
.fw-panel-title { font-size: 17px; font-weight: 800; color: var(--txt); margin: 2px 0 4px; line-height: 1.6; }
.fw-panel-desc { font-size: 13px; line-height: 1.9; color: var(--muted); margin: 0; }
.fw-empty { text-align: center; padding: 30px 0 26px; color: var(--muted); font-size: 14px; }
.fw-row {
  display: flex; gap: 16px; align-items: center;
  padding: 18px 0; border-top: 1px dashed var(--line);
}
.fw-row-icon {
  flex: 0 0 42px; width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center; color: #fff;
  background: var(--grad);
  box-shadow: 0 8px 22px -8px rgba(37, 99, 235, .7);
}
.fw-row-icon svg { width: 20px; height: 20px; stroke: currentColor; }
.fw-row-body { flex: 1; min-width: 0; }
.fw-row-title {
  font-size: 15px; font-weight: 800; color: var(--txt); margin: 0; line-height: 1.6;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.fw-latest-badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 800; padding: 3px 10px; border-radius: 999px;
  color: var(--ok);
  background: rgba(52, 211, 153, .1); border: 1px solid rgba(52, 211, 153, .35);
}
.fw-latest-badge svg { width: 11px; height: 11px; stroke: currentColor; }
.fw-meta { display: flex; flex-wrap: wrap; gap: 7px; margin: 8px 0 0; }
.fw-chip {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px;
  background: rgba(255,255,255,.05); border: 1px solid var(--line); color: var(--muted);
  white-space: nowrap;
}
.fw-chip svg { width: 12px; height: 12px; stroke: currentColor; opacity: .8; flex-shrink: 0; }
.fw-chip.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .3px; direction: ltr; }
.fw-notes {
  font-size: 12.5px; line-height: 2; color: var(--muted); margin: 8px 0 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.fw-row-side {
  flex-shrink: 0; display: flex; flex-direction: column;
  align-items: center; gap: 7px;
}
.fw-dl-count { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--muted); }
.fw-dl-count svg { width: 13px; height: 13px; stroke: currentColor; opacity: .75; }
.fw-help { margin-top: 36px; font-size: 13.5px; color: var(--muted); text-align: center; }
.fw-help a { color: var(--acc); font-weight: 700; }
.fw-help a:hover { text-decoration: underline; }

/* Connection info — inside the unified panel */
.fw-panel-info { margin-top: 2px; }
.fw-panel-subhead {
  display: flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 800; color: var(--acc);
  margin: 0; padding: 16px 0 2px;
}
.fw-panel-subhead svg { width: 15px; height: 15px; stroke: currentColor; flex-shrink: 0; }
.fw-info-row {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 2px;
  border-top: 1px dashed var(--line);
}
.fw-info-row .fw-info-label { flex: 1; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.fw-info-val {
  font-size: 13.5px; font-weight: 800; color: var(--txt);
  background: rgba(255,255,255,.06); border: 1px solid var(--line);
  padding: 7px 16px; border-radius: 10px; white-space: nowrap;
  max-width: 55%; overflow: hidden; text-overflow: ellipsis;
}
.fw-copy {
  font-size: 11.5px; font-weight: 700; cursor: pointer; flex-shrink: 0;
  padding: 5px 14px; border-radius: 999px; border: 1px solid var(--line-hi);
  background: transparent; color: var(--acc);
  transition: background .15s var(--ease), color .15s var(--ease), transform .15s var(--ease);
}
.fw-copy:hover { background: var(--acc); border-color: var(--acc); color: #fff; transform: translateY(-1px); }
.fw-copy:disabled { opacity: .7; cursor: default; transform: none; }

@media (max-width: 480px) {
  .fw-info-row { flex-wrap: wrap; }
  .fw-info-row .fw-info-label { flex: 1 0 100%; }
  .fw-info-val { max-width: none; flex: 1; }
}

@media (max-width: 560px) {
  .fw-panel { padding: 18px 16px 8px; }
  .fw-row { flex-wrap: wrap; }
  .fw-row-body { flex: 1 0 calc(100% - 58px); }
  .fw-row-side {
    width: 100%; flex-direction: row-reverse;
    justify-content: space-between; align-items: center;
    padding-top: 2px;
  }
}


/* =======================================================
   Live VPN network status widget (index page)
   ======================================================= */
.vpn-panel {
  position: relative; max-width: 880px; margin: 0 auto;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 20px 24px 24px;
  overflow: hidden;
}
.vpn-panel::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--grad);
}
.vpn-loading { text-align: center; padding: 26px 0 8px; color: var(--muted); font-size: 14px; }
.vpn-panel-head { display: flex; align-items: center; gap: 13px; margin-bottom: 18px; }
.vpn-dot {
  flex: 0 0 12px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--muted);
}
.vpn-dot.on {
  background: var(--ok, #34d399);
  box-shadow: 0 0 0 0 rgba(52, 211, 153, .5);
  animation: vpnPulse 2s infinite;
}
.vpn-dot.off { background: #f87171; }
@keyframes vpnPulse {
  0%   { box-shadow: 0 0 0 0 rgba(52, 211, 153, .45); }
  70%  { box-shadow: 0 0 0 11px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}
.vpn-panel-titles { flex: 1; min-width: 0; }
.vpn-panel-titles h3 { font-size: 15.5px; font-weight: 800; color: var(--txt); margin: 0 0 3px; }
.vpn-panel-titles p { font-size: 12.5px; color: var(--muted); margin: 0; }
.vpn-live-badge {
  display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0;
  font-size: 11.5px; font-weight: 800; padding: 5px 13px; border-radius: 999px;
  color: var(--acc);
  background: rgba(56, 189, 248, .09); border: 1px solid rgba(56, 189, 248, .3);
}
.vpn-live-badge svg { width: 12px; height: 12px; stroke: currentColor; }
.vpn-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
}
.vpn-stat {
  text-align: center; padding: 18px 10px 15px;
  background: rgba(255,255,255,.03); border: 1px solid var(--line);
  border-radius: 14px;
  transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.vpn-stat:hover { border-color: var(--line-hi); transform: translateY(-2px); }
.vpn-stat-ico {
  display: grid; place-items: center; width: 34px; height: 34px;
  margin: 0 auto 9px; border-radius: 10px; color: #fff;
  background: var(--grad);
  box-shadow: 0 6px 16px -7px rgba(37, 99, 235, .7);
}
.vpn-stat-ico svg { width: 16px; height: 16px; stroke: currentColor; }
.vpn-stat-num { font-size: 21px; font-weight: 800; color: var(--txt); line-height: 1.3; }
.vpn-stat-label { font-size: 12px; color: var(--muted); margin-top: 2px; }

@media (max-width: 640px) {
  .vpn-panel { padding: 18px 16px 18px; }
  .vpn-stats { grid-template-columns: repeat(2, 1fr); }
  .vpn-live-badge { display: none; }
}

/* ---------- Buy server CTA (firmware page) ---------- */
.buy-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 22px;
  border: 1px solid rgba(56, 189, 248, .28);
  border-radius: var(--r-md, 16px);
  background: linear-gradient(160deg, rgba(56, 189, 248, .08), rgba(37, 99, 235, .05));
  padding: 18px 22px;
  animation: rise .5s var(--ease, ease) both;
}
.buy-cta-txt b { display: block; font-size: 15.5px; margin-bottom: 2px; }
.buy-cta-txt p { color: var(--muted, #8fa1b8); font-size: 13px; margin: 0; }
.buy-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  padding: 11px 22px;
  border-radius: 999px;
  background: linear-gradient(120deg, #38bdf8, #2563eb);
  background-size: 180% auto;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
  transition: background-position .4s, transform .2s, box-shadow .3s;
  box-shadow: 0 10px 26px -12px rgba(37, 99, 235, .8);
}
.buy-cta-btn:hover {
  background-position: 100% 50%;
  transform: translateY(-2px);
  box-shadow: 0 16px 34px -12px rgba(37, 99, 235, .9);
}
.buy-cta-btn:active { transform: translateY(0) scale(.97); }
@media (max-width: 560px) {
  .buy-cta { flex-direction: column; align-items: stretch; text-align: center; }
  .buy-cta-btn { justify-content: center; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

/* =======================================================
   Firmware Showcase Design (Modern Glassmorphic v2)
   ======================================================= */
.fw-showcase-card {
  position: relative;
  max-width: 820px;
  margin: 0 auto 30px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 28px;
  box-shadow: 0 25px 60px -15px rgba(2, 6, 23, 0.9), 0 0 50px -15px rgba(14, 165, 233, 0.18);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 32px 28px;
  overflow: hidden;
  animation: rise .6s var(--ease) both;
}
.fw-showcase-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #38bdf8, #818cf8, #3b82f6);
}

/* Top Badge Bar */
.fw-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.fw-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(14, 165, 233, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #38bdf8;
  font-size: 12px;
  font-weight: 800;
  padding: 5px 14px;
  border-radius: 999px;
  box-shadow: 0 0 16px -4px rgba(14, 165, 233, 0.4);
}
.fw-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 10px #38bdf8;
  animation: pulse 1.8s infinite;
}
.fw-date-pill {
  font-size: 12px;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 5px 12px;
  border-radius: 999px;
}

/* Header Content */
.fw-hero-row {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 24px;
}
.fw-hero-icon {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.25) 0%, rgba(37, 99, 235, 0.15) 100%);
  border: 1px solid rgba(56, 189, 248, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #38bdf8;
  flex-shrink: 0;
  box-shadow: 0 10px 24px -8px rgba(14, 165, 233, 0.5);
}
.fw-hero-icon svg { width: 30px; height: 30px; stroke: currentColor; }
.fw-hero-body { flex: 1; min-width: 0; }
.fw-main-title {
  font-size: 20px;
  font-weight: 900;
  color: #fff;
  margin: 0 0 6px;
  line-height: 1.5;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.fw-title-badge {
  font-size: 12px;
  font-weight: 700;
  color: #34d399;
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.35);
  padding: 2px 10px;
  border-radius: 999px;
}
.fw-main-desc {
  font-size: 13.5px;
  line-height: 1.9;
  color: #cbd5e1;
  margin: 0;
}

/* Specs Row */
.fw-specs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 24px;
}
.fw-spec-card {
  background: rgba(2, 6, 23, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  padding: 10px 12px;
  text-align: center;
}
.fw-spec-card .lbl { display: block; font-size: 11px; color: #94a3b8; margin-bottom: 4px; }
.fw-spec-card .val { display: block; font-size: 13px; font-weight: 800; color: #f8fafc; }

/* Features / Changelog Grid */
.fw-feats-container {
  background: rgba(2, 6, 23, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  padding: 18px;
  margin-bottom: 24px;
}
.fw-feats-title {
  font-size: 13px;
  font-weight: 800;
  color: #38bdf8;
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.fw-feats-2col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.fw-feat-box {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.fw-feat-box .f-icon { font-size: 18px; line-height: 1; flex-shrink: 0; margin-top: 2px; }
.fw-feat-box b { display: block; font-size: 12.5px; font-weight: 700; color: #fff; margin-bottom: 3px; }
.fw-feat-box p { font-size: 11.5px; line-height: 1.7; color: #94a3b8; margin: 0; }

/* Main Download Button */
.fw-download-wrapper {
  text-align: center;
  margin-bottom: 24px;
}
.fw-primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  padding: 16px 24px;
  border-radius: 16px;
  background: linear-gradient(135deg, #38bdf8 0%, #2563eb 100%);
  background-size: 200% auto;
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 12px 32px -8px rgba(37, 99, 235, 0.8), 0 0 20px rgba(56, 189, 248, 0.4);
  transition: all .25s var(--ease);
  position: relative;
  overflow: hidden;
}
.fw-primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -8px rgba(37, 99, 235, 0.95), 0 0 28px rgba(56, 189, 248, 0.6);
}
.fw-primary-btn:active { transform: translateY(0) scale(.98); }
.fw-primary-btn svg { width: 22px; height: 22px; stroke: currentColor; flex-shrink: 0; }
.fw-dl-meta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 11.5px;
  color: #94a3b8;
  margin-top: 10px;
  flex-wrap: wrap;
}
.fw-dl-meta-row .dot { color: rgba(255, 255, 255, 0.2); }

/* Connection Info Box */
.fw-conn-container {
  background: rgba(2, 6, 23, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  padding: 16px 18px;
  margin-bottom: 20px;
}
.fw-conn-head {
  font-size: 12.5px;
  font-weight: 800;
  color: #38bdf8;
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.fw-conn-head svg { width: 15px; height: 15px; stroke: currentColor; }
.fw-conn-items {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.fw-conn-card {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.fw-conn-card .c-lbl { font-size: 12px; color: #94a3b8; }
.fw-conn-card .c-val { font-size: 13px; font-weight: 800; color: #fff; direction: ltr; font-family: monospace; }
.fw-copy-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.4);
  background: rgba(14, 165, 233, 0.1);
  color: #38bdf8;
  cursor: pointer;
  transition: all .2s;
}
.fw-copy-pill:hover { background: #38bdf8; color: #fff; }

/* Guide Section inside card */
.fw-guide-container {
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
  padding-top: 20px;
}
.fw-guide-toggle {
  width: 100%;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  color: #fff;
  font-size: 13.5px;
  font-weight: 800;
  font-family: inherit;
  padding: 4px 0;
}
.fw-guide-toggle .arrow {
  font-size: 11px;
  color: #38bdf8;
  transition: transform .25s ease;
}
.fw-guide-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 16px;
}
.fw-guide-step {
  background: rgba(2, 6, 23, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 12px;
  position: relative;
}
.fw-guide-step .s-num {
  display: inline-block;
  font-size: 11px;
  font-weight: 900;
  color: #38bdf8;
  background: rgba(14, 165, 233, 0.15);
  border-radius: 6px;
  padding: 2px 7px;
  margin-bottom: 6px;
}
.fw-guide-step b { display: block; font-size: 12px; color: #fff; margin-bottom: 3px; }
.fw-guide-step p { font-size: 11px; color: #94a3b8; line-height: 1.6; margin: 0; }

@media (max-width: 768px) {
  .fw-specs-grid { grid-template-columns: repeat(2, 1fr); }
  .fw-feats-2col { grid-template-columns: 1fr; }
  .fw-conn-items { grid-template-columns: 1fr; }
  .fw-guide-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .fw-showcase-card { padding: 22px 18px; }
  .fw-hero-row { flex-direction: column; align-items: center; text-align: center; }
  .fw-main-title { justify-content: center; }
  .fw-guide-grid { grid-template-columns: 1fr; }
}

