/* ============================================================
   تاتامی پلاس — Design System
   ============================================================ */

:root {
  --bg: #07111f;
  --bg-2: #0d1b2a;
  --surface: #0f2133;
  --emerald: #16a085;
  --emerald-soft: rgba(22, 160, 133, 0.12);
  --gold: #d4a84f;
  --gold-soft: rgba(212, 168, 79, 0.12);
  --cyan: #36c5f0;
  --cyan-soft: rgba(54, 197, 240, 0.12);
  --text: #f5f7fa;
  --muted: #9ba8b7;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.9);
  --shadow-lift: 0 26px 60px -28px rgba(0, 0, 0, 1);
  --container: 1240px;
  --header-h: 74px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Vazirmatn, "Segoe UI", Tahoma, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.9;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.6em;
  line-height: 1.45;
  font-weight: 700;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1em;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

.section {
  padding: 96px 0;
  position: relative;
}

.section--tight {
  padding: 64px 0;
}

.muted {
  color: var(--muted);
}

.gold {
  color: var(--gold);
}

.emerald {
  color: var(--emerald);
}

.cyan {
  color: var(--cyan);
}

.skip-link {
  position: absolute;
  right: 16px;
  top: -80px;
  z-index: 200;
  background: var(--emerald);
  color: #04121a;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  transition: top 0.2s var(--ease);
}

.skip-link:focus {
  top: 16px;
}

/* ---------- typography blocks ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--gold);
  background: var(--gold-soft);
  border: 1px solid rgba(212, 168, 79, 0.28);
  border-radius: 999px;
  padding: 6px 16px;
  margin-bottom: 20px;
}

.eyebrow--cyan {
  color: var(--cyan);
  background: var(--cyan-soft);
  border-color: rgba(54, 197, 240, 0.28);
}

.section-head {
  max-width: 720px;
  margin-bottom: 44px;
}

.section-head h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.3rem);
}

.section-head p {
  color: var(--muted);
  font-size: 1.02rem;
  margin: 0;
}

.section-head--row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  max-width: none;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
  transition:
    transform 0.25s var(--ease),
    background 0.25s var(--ease),
    border-color 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
  background: transparent;
  color: var(--text);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  background: var(--emerald);
  color: #03130f;
  box-shadow: 0 16px 34px -18px rgba(22, 160, 133, 0.9);
}

.btn--primary:hover {
  background: #17b393;
}

.btn--gold {
  background: var(--gold);
  color: #1a1204;
}

.btn--ghost {
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.03);
}

.btn--ghost:hover {
  border-color: var(--emerald);
  color: var(--text);
}

.btn--cyan {
  background: var(--cyan);
  color: #04131c;
}

.btn--sm {
  padding: 9px 18px;
  font-size: 0.85rem;
}

.btn--block {
  width: 100%;
}

.btn[disabled] {
  opacity: 0.5;
  pointer-events: none;
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 17, 31, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(7, 17, 31, 0.94);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.12rem;
  white-space: nowrap;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, var(--emerald), #0d6b5b);
  color: #03130f;
  font-size: 0.95rem;
  font-weight: 700;
}

.brand span b {
  color: var(--gold);
  font-weight: 700;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-inline-start: auto;
}

.main-nav a {
  padding: 8px 13px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
  transition:
    color 0.2s var(--ease),
    background 0.2s var(--ease);
  white-space: nowrap;
}

.main-nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.main-nav a.is-active {
  color: var(--text);
  background: var(--emerald-soft);
  font-weight: 600;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  position: relative;
  transition:
    border-color 0.2s var(--ease),
    background 0.2s var(--ease);
}

.icon-btn:hover {
  border-color: var(--emerald);
}

.cart-count {
  position: absolute;
  top: -6px;
  inset-inline-start: -6px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--gold);
  color: #1a1204;
  font-size: 0.7rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.nav-toggle {
  display: none;
}

.search-bar {
  display: none;
  border-top: 1px solid var(--border);
  background: rgba(13, 27, 42, 0.96);
  padding: 14px 0;
}

.search-bar.is-open {
  display: block;
}

.search-bar form {
  display: flex;
  gap: 10px;
}

.input,
.select,
textarea.input {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-family: inherit;
  font-size: 0.93rem;
}

.input::placeholder {
  color: #6f7e8e;
}

.input:focus,
.select:focus {
  border-color: var(--emerald);
  outline: none;
}

.select option {
  background: var(--bg-2);
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: 96px 0 88px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 520px at 78% 12%, rgba(22, 160, 133, 0.18), transparent 70%),
    radial-gradient(700px 480px at 12% 88%, rgba(54, 197, 240, 0.1), transparent 72%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2rem, 4.6vw, 3.3rem);
  line-height: 1.4;
  margin-bottom: 22px;
}

.hero p.lead {
  color: var(--muted);
  font-size: 1.06rem;
  max-width: 52ch;
  margin-bottom: 30px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lift);
}

.hero-visual img {
  width: 100%;
  height: 520px;
  object-fit: cover;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7, 17, 31, 0.85), transparent 55%);
}

.hero-badge {
  position: absolute;
  z-index: 2;
  inset-inline-start: 20px;
  bottom: 20px;
  display: flex;
  gap: 18px;
  padding: 14px 18px;
  border-radius: var(--radius);
  background: rgba(7, 17, 31, 0.8);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

.hero-badge div span {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
}

.hero-badge div b {
  font-size: 1.05rem;
  color: var(--cyan);
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
}

.hero-trust div b {
  display: block;
  font-size: 1.35rem;
  color: var(--gold);
}

.hero-trust div span {
  font-size: 0.85rem;
  color: var(--muted);
}

/* ---------- cards / grids ---------- */
.grid {
  display: grid;
  gap: 22px;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  background: linear-gradient(180deg, rgba(13, 27, 42, 0.95), rgba(9, 20, 33, 0.95));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition:
    transform 0.3s var(--ease),
    border-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--muted);
  font-size: 0.95rem;
  min-height: 72px;
}

.feature-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  background: var(--emerald-soft);
  color: var(--emerald);
  border: 1px solid rgba(22, 160, 133, 0.25);
}

.feature-icon.is-gold {
  background: var(--gold-soft);
  color: var(--gold);
  border-color: rgba(212, 168, 79, 0.25);
}

.feature-icon.is-cyan {
  background: var(--cyan-soft);
  color: var(--cyan);
  border-color: rgba(54, 197, 240, 0.25);
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--emerald);
  font-weight: 600;
  font-size: 0.9rem;
}

.card-link:hover {
  color: #2ad0b0;
}

/* ---------- cinematic techniques ---------- */
.cinema {
  position: relative;
  background: var(--bg-2);
  border-block: 1px solid var(--border);
}

.scene {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 70px 0;
  border-bottom: 1px solid var(--border);
}

.scene:last-child {
  border-bottom: none;
}

.scene:nth-child(even) .scene-media {
  order: -1;
}

.scene-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.scene-media img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  transform: scale(1.06);
  transition: transform 1.4s var(--ease);
}

.scene.is-visible .scene-media img {
  transform: scale(1);
}

.scene-copy {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.9s var(--ease),
    transform 0.9s var(--ease);
}

.scene.is-visible .scene-copy {
  opacity: 1;
  transform: none;
}

.scene-index {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  font-weight: 600;
}

.scene-copy h3 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  margin: 6px 0 4px;
}

.scene-latin {
  color: var(--muted);
  letter-spacing: 0.24em;
  font-size: 0.8rem;
  margin-bottom: 16px;
}

/* AI overlay on scenes */
.ai-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.joint {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(54, 197, 240, 0.9);
  box-shadow: 0 0 0 4px rgba(54, 197, 240, 0.18);
  animation: pulseJoint 2.4s infinite var(--ease);
}

.joint:nth-child(2) {
  animation-delay: 0.3s;
}
.joint:nth-child(3) {
  animation-delay: 0.6s;
}
.joint:nth-child(4) {
  animation-delay: 0.9s;
}
.joint:nth-child(5) {
  animation-delay: 1.2s;
}

@keyframes pulseJoint {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.85;
  }
  50% {
    transform: scale(1.35);
    opacity: 1;
  }
}

.ai-chip {
  position: absolute;
  padding: 7px 12px;
  border-radius: 10px;
  background: rgba(7, 17, 31, 0.82);
  border: 1px solid rgba(54, 197, 240, 0.35);
  font-size: 0.76rem;
  color: var(--text);
  backdrop-filter: blur(6px);
}

.ai-chip b {
  color: var(--cyan);
}

.metric-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 20px;
}

.metric {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  min-width: 130px;
}

.metric span {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
}

.metric b {
  font-size: 1.15rem;
  color: var(--cyan);
}

.demo-note {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 14px;
}

/* ---------- live ---------- */
.live-dot {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #ff6b6b;
  background: rgba(255, 107, 107, 0.12);
  border: 1px solid rgba(255, 107, 107, 0.3);
  padding: 4px 11px;
  border-radius: 999px;
}

.live-dot::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff6b6b;
  animation: livePulse 1.6s infinite;
}

@keyframes livePulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.35;
    transform: scale(1.35);
  }
}

.media-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition:
    transform 0.3s var(--ease),
    border-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}

.media-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}

.media-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--surface);
}

.media-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.media-card:hover .media-thumb img {
  transform: scale(1.05);
}

.thumb-tag {
  position: absolute;
  top: 12px;
  inset-inline-start: 12px;
}

.thumb-time {
  position: absolute;
  bottom: 12px;
  inset-inline-end: 12px;
  background: rgba(7, 17, 31, 0.85);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 3px 9px;
  font-size: 0.76rem;
}

.play-btn {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(7, 17, 31, 0.6);
  color: var(--text);
  display: grid;
  place-items: center;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  backdrop-filter: blur(4px);
}

.media-card:hover .play-btn,
.play-btn:focus-visible {
  opacity: 1;
}

.media-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.media-body h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.7;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: auto;
}

.chip {
  font-size: 0.76rem;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
}

.chip--gold {
  color: var(--gold);
  border-color: rgba(212, 168, 79, 0.3);
  background: var(--gold-soft);
}

.chip--cyan {
  color: var(--cyan);
  border-color: rgba(54, 197, 240, 0.3);
  background: var(--cyan-soft);
}

.chip--emerald {
  color: var(--emerald);
  border-color: rgba(22, 160, 133, 0.3);
  background: var(--emerald-soft);
}

/* filter pills */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.pill {
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 500;
  transition: all 0.25s var(--ease);
}

.pill:hover {
  color: var(--text);
  border-color: var(--border-strong);
}

.pill.is-active {
  background: var(--emerald);
  border-color: var(--emerald);
  color: #03130f;
  font-weight: 600;
}

/* featured live player */
.player {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lift);
}

.player img {
  width: 100%;
  height: 460px;
  object-fit: cover;
}

.player-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7, 17, 31, 0.94) 8%, rgba(7, 17, 31, 0.15) 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px;
  gap: 12px;
}

.player-overlay h3 {
  font-size: clamp(1.2rem, 2.4vw, 1.7rem);
  margin: 0;
}

/* ---------- store ---------- */
.store-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  align-items: start;
}

.sidebar {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}

.filter-group {
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.filter-group:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.filter-group h4 {
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.88rem;
  color: var(--muted);
  padding: 4px 0;
  cursor: pointer;
}

.check-row input {
  accent-color: var(--emerald);
  width: 16px;
  height: 16px;
}

.check-row:hover {
  color: var(--text);
}

.product-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition:
    transform 0.3s var(--ease),
    border-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}

.product-media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #0a1726;
  overflow: hidden;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.product-card:hover .product-media img {
  transform: scale(1.05);
}

.fav-btn {
  position: absolute;
  top: 10px;
  inset-inline-end: 10px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(7, 17, 31, 0.75);
  color: var(--muted);
  display: grid;
  place-items: center;
  transition: all 0.25s var(--ease);
}

.fav-btn.is-active,
.fav-btn:hover {
  color: var(--gold);
  border-color: rgba(212, 168, 79, 0.45);
  transform: scale(1.08);
}

.product-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.product-body h3 {
  font-size: 0.98rem;
  font-weight: 600;
  margin: 0;
}

.rating {
  font-size: 0.82rem;
  color: var(--gold);
}

.price {
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--text);
}

.price small {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 400;
}

.stock {
  font-size: 0.78rem;
}

.stock.in {
  color: var(--emerald);
}

.stock.out {
  color: #ff8b6b;
}

.product-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
  padding-top: 6px;
}

.product-actions .btn {
  flex: 1;
  padding: 10px 12px;
  font-size: 0.85rem;
}

/* belts */
.belt-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.belt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 500;
  transition: all 0.25s var(--ease);
}

.belt i {
  width: 26px;
  height: 10px;
  border-radius: 3px;
  display: block;
}

.belt:hover {
  color: var(--text);
  border-color: var(--border-strong);
}

.belt.is-active {
  color: var(--text);
  border-color: var(--gold);
  background: var(--gold-soft);
}

/* ---------- product detail ---------- */
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 42px;
  align-items: start;
}

.gallery-main {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #0a1726;
}

.gallery-main img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 12px;
}

.gallery-thumbs button {
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #0a1726;
  padding: 0;
}

.gallery-thumbs button.is-active {
  border-color: var(--emerald);
}

.gallery-thumbs img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  width: 100%;
}

.option-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.option {
  min-width: 52px;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 0.88rem;
  transition: all 0.25s var(--ease);
}

.option.is-active {
  border-color: var(--emerald);
  color: var(--text);
  background: var(--emerald-soft);
}

.swatch {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  padding: 0;
  border: 2px solid var(--border);
}

.swatch.is-active {
  border-color: var(--gold);
  transform: scale(1.06);
}

.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.qty button {
  width: 40px;
  height: 42px;
  background: rgba(255, 255, 255, 0.04);
  border: none;
  color: var(--text);
  font-size: 1.1rem;
}

.qty button:hover {
  background: var(--emerald-soft);
}

.qty span {
  width: 52px;
  text-align: center;
  font-weight: 600;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.spec-table th,
.spec-table td {
  text-align: start;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}

.spec-table th {
  color: var(--muted);
  font-weight: 500;
  width: 40%;
}

.tabs {
  display: flex;
  gap: 6px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.tab {
  padding: 12px 20px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.92rem;
}

.tab.is-active {
  color: var(--text);
  border-bottom-color: var(--emerald);
  font-weight: 600;
}

.tab-panel[hidden] {
  display: none;
}

/* ---------- cart ---------- */
.cart-grid {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 28px;
  align-items: start;
}

.cart-item {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-2);
  margin-bottom: 14px;
}

.cart-item img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.summary {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-2);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.summary-row.total {
  border-top: 1px solid var(--border);
  margin-top: 8px;
  padding-top: 16px;
  color: var(--text);
  font-weight: 700;
  font-size: 1.05rem;
}

.empty-state {
  text-align: center;
  padding: 70px 20px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  color: var(--muted);
}

/* ---------- progress ---------- */
.progress {
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.progress i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--emerald), var(--cyan));
}

/* ---------- stats ---------- */
.stats {
  background: linear-gradient(180deg, rgba(13, 27, 42, 0.9), rgba(7, 17, 31, 0.9));
  border-block: 1px solid var(--border);
}

.stat {
  text-align: center;
  padding: 22px 12px;
}

.stat b {
  display: block;
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
  color: var(--gold);
  line-height: 1.4;
}

.stat span {
  color: var(--muted);
  font-size: 0.92rem;
}

/* ---------- AI page ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.step {
  padding: 26px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-2);
  position: relative;
}

.step.is-active {
  border-color: rgba(54, 197, 240, 0.45);
  box-shadow: 0 0 0 1px rgba(54, 197, 240, 0.12);
}

.step b {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--cyan-soft);
  color: var(--cyan);
  margin-bottom: 14px;
  border: 1px solid rgba(54, 197, 240, 0.3);
}

.ai-stage {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(54, 197, 240, 0.22);
  background: #061321;
}

.ai-stage img {
  width: 100%;
  height: 470px;
  object-fit: cover;
  opacity: 0.92;
}

.scan-line {
  position: absolute;
  inset-inline: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  top: 0;
  opacity: 0;
}

.is-analyzing .scan-line {
  opacity: 1;
  animation: scan 2.2s linear infinite;
}

@keyframes scan {
  0% {
    top: 0%;
  }
  100% {
    top: 100%;
  }
}

.gauge {
  display: grid;
  gap: 8px;
}

.gauge-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.gauge-bar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan), var(--emerald));
  transition: width 1s var(--ease);
}

.drop-zone {
  border: 1px dashed rgba(54, 197, 240, 0.4);
  border-radius: var(--radius);
  padding: 40px 24px;
  text-align: center;
  background: rgba(54, 197, 240, 0.04);
}

/* ---------- footer ---------- */
.site-footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 64px 0 26px;
  margin-top: 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.4fr;
  gap: 36px;
}

.footer-grid h4 {
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.footer-grid li {
  margin-bottom: 9px;
}

.footer-grid a {
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-grid a:hover {
  color: var(--emerald);
}

.socials {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.newsletter {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.footer-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.84rem;
}

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 64px 40px;
  text-align: center;
  background:
    radial-gradient(700px 320px at 50% 0%, rgba(22, 160, 133, 0.22), transparent 70%),
    linear-gradient(180deg, #0e2032, #091727);
}

.cta-band h2 {
  font-size: clamp(1.5rem, 3.4vw, 2.3rem);
}

.cta-band .hero-cta {
  justify-content: center;
}

/* ---------- breadcrumbs / page hero ---------- */
.page-hero {
  padding: 56px 0 30px;
  position: relative;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(760px 340px at 82% 0%, rgba(22, 160, 133, 0.14), transparent 70%);
  pointer-events: none;
}

.page-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  position: relative;
}

.crumbs {
  display: flex;
  gap: 8px;
  font-size: 0.84rem;
  color: var(--muted);
  margin-bottom: 16px;
}

.crumbs a:hover {
  color: var(--emerald);
}

/* ---------- toast ---------- */
.toast-wrap {
  position: fixed;
  bottom: 24px;
  inset-inline-start: 24px;
  z-index: 300;
  display: grid;
  gap: 10px;
}

.toast {
  background: rgba(13, 27, 42, 0.97);
  border: 1px solid rgba(22, 160, 133, 0.4);
  border-radius: var(--radius-sm);
  padding: 13px 20px;
  font-size: 0.9rem;
  box-shadow: var(--shadow);
  animation: toastIn 0.3s var(--ease);
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}

/* ---------- reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.8s var(--ease),
    transform 0.8s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.schedule-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding: 18px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-2);
  margin-bottom: 12px;
}

.avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
}

.coach-card {
  text-align: center;
}

.coach-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.prose p {
  color: var(--muted);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal,
  .scene-copy {
    opacity: 1;
    transform: none;
  }
}

/* ===== انتخاب نقش و داشبورد ===== */
.role-screen{min-height:100vh;display:flex;align-items:center;padding:48px 0;background:radial-gradient(ellipse at top,rgba(22,160,133,.12),transparent 60%),var(--bg,#07111F)}
.role-head{text-align:center;max-width:640px;margin:0 auto 40px}
.role-head h1{font-size:clamp(1.6rem,4vw,2.5rem);margin:14px 0 10px}
.role-brand{display:inline-flex;align-items:center;gap:10px;color:#F5F7FA;text-decoration:none;font-weight:800}
.role-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.role-card{display:flex;flex-direction:column;gap:14px;padding:32px 28px;border-radius:20px;background:#0D1B2A;border:1px solid rgba(255,255,255,.08);color:#F5F7FA;text-align:right;font:inherit;cursor:pointer;transition:transform .25s ease,border-color .25s ease,box-shadow .25s ease;min-height:240px;width:100%}
.role-card:hover,.role-card:focus-visible{transform:translateY(-4px);border-color:rgba(22,160,133,.6);box-shadow:0 18px 40px rgba(0,0,0,.35)}
.role-card:focus-visible{outline:2px solid #36C5F0;outline-offset:3px}
.role-card h2{font-size:1.5rem;margin:0}
.role-card p{color:#9BA8B7;margin:0;line-height:1.9}
.role-card .role-go{margin-top:auto;color:#16A085;font-weight:700}
.role-icon{width:56px;height:56px;border-radius:16px;display:grid;place-items:center;font-size:1.5rem;background:rgba(22,160,133,.14);color:#16A085}
.role-card.is-gold .role-icon{background:rgba(212,168,79,.14);color:#D4A84F}
.role-card.is-cyan .role-icon{background:rgba(54,197,240,.14);color:#36C5F0}
.role-note{text-align:center;color:#9BA8B7;font-size:.88rem;margin-top:28px}
.dash-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.dash-card{padding:24px;border-radius:18px;background:#0D1B2A;border:1px solid rgba(255,255,255,.08)}
.dash-card h3{margin:0 0 8px}.dash-card p{color:#9BA8B7;margin:0 0 14px}
@media (max-width:860px){.role-grid,.dash-grid{grid-template-columns:1fr}.role-card{min-height:0;padding:24px 20px}}
@media (prefers-reduced-motion:reduce){.role-card{transition:none}.role-card:hover{transform:none}}
