:root {
  --bg: #070d16;
  --bg-2: #0c1522;
  --surface: #121c2b;
  --surface-2: #182536;
  --ink: #e8eef7;
  --text: #e8eef7;
  --muted: #8fa3bb;
  --line: rgba(232, 238, 247, 0.1);
  --accent: #2ec4b6;
  --accent-deep: #1fa89c;
  --accent-soft: rgba(46, 196, 182, 0.14);
  --warn: #f0b429;
  --danger: #f07178;
  --white: #ffffff;
  --radius: 14px;
  --font-display: "Markazi Text", "Vazirmatn", Tahoma, serif;
  --font: "Vazirmatn", Tahoma, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 4.6rem;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(900px 480px at 100% -10%, rgba(46, 196, 182, 0.12), transparent 55%),
    radial-gradient(700px 380px at 0% 10%, rgba(56, 120, 200, 0.1), transparent 50%),
    linear-gradient(180deg, var(--bg), var(--bg-2));
  min-height: 100vh;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }
.container { width: min(1160px, calc(100% - 2rem)); margin-inline: auto; }
.skip-link {
  position: absolute; inset-inline-start: 1rem; top: -3rem;
  background: var(--accent); color: #042f2e; padding: 0.5rem 0.9rem; z-index: 80;
}
.skip-link:focus { top: 1rem; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  min-height: var(--header-h);
  height: auto;
  background: rgba(7, 13, 22, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.header-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto auto;
  grid-template-areas: "brand search clock nav actions";
  align-items: center;
  column-gap: 0.75rem;
  row-gap: 0.45rem;
  min-height: var(--header-h);
  height: auto;
  padding: 0.35rem 0;
}
.brand {
  grid-area: brand;
  display: flex; align-items: center; gap: 0.75rem; min-width: 0; flex-shrink: 0;
}
.brand img { width: 2.35rem; height: 2.35rem; object-fit: cover; border-radius: 8px; }
.brand-text { display: grid; line-height: 1.15; }
.brand-text strong {
  font-family: var(--font-display); font-size: 1.55rem; font-weight: 700; letter-spacing: -0.02em;
}
.brand-text small { color: var(--muted); font-size: 0.72rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 11rem; }
.header-search {
  grid-area: search;
  max-width: 320px;
  width: 100%;
  justify-self: stretch;
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
  min-width: 0;
}
.header-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  padding: 0.55rem 0.95rem;
  outline: none;
}
.header-search input::placeholder { color: var(--muted); }
.header-search button {
  border: 0;
  background: transparent;
  color: var(--accent);
  width: 2.6rem;
  height: 2.4rem;
  cursor: pointer;
  font-size: 1.1rem;
}
.header-search:focus-within { border-color: rgba(46, 196, 182, 0.45); box-shadow: 0 0 0 3px rgba(46, 196, 182, 0.12); }
.header-actions {
  grid-area: actions;
  display: flex; gap: 0.55rem; align-items: center; flex-shrink: 0;
}
.nav-toggle {
  display: none; border: 1px solid var(--line); background: var(--surface);
  color: var(--text); width: 2.5rem; height: 2.5rem; border-radius: 8px; cursor: pointer;
  flex-shrink: 0;
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.sf-site-clock {
  grid-area: clock;
  justify-self: center;
  align-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .1rem;
  width: fit-content;
  max-width: 7.2rem;
  padding: .2rem .38rem .22rem;
  border-radius: 12px;
  text-align: center;
  background:
    linear-gradient(145deg, rgba(28,45,69,.88), rgba(8,14,24,.94)),
    radial-gradient(80px 36px at 50% 0%, rgba(46,196,182,.18), transparent 70%);
  border: 1px solid rgba(148,163,184,.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}
.sf-iran-clock-face {
  width: 30px; height: 30px; display: block;
  filter: drop-shadow(0 2px 5px rgba(0,0,0,.3));
  overflow: visible;
}
.sf-iran-clock-meta {
  display: grid; gap: .02rem; min-width: 0; line-height: 1.1;
  justify-items: center; text-align: center;
}
.sf-iran-digital {
  font-variant-numeric: tabular-nums;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .68rem; color: #e8eef7; font-weight: 700;
}
.sf-iran-date {
  font-size: .52rem; color: #9eb0c6;
  max-width: 6.6rem; line-height: 1.2;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.nav-main {
  grid-area: nav;
  display: flex; gap: 1.05rem; align-items: center; flex-shrink: 0;
}
.nav-main a { color: var(--muted); font-weight: 500; font-size: 0.94rem; }
.nav-main a:hover { color: var(--text); }

.telegram-auth {
  padding: 1rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(46, 196, 182, 0.06);
  margin-top: 1rem;
}
.telegram-login-host { min-height: 44px; display: flex; justify-content: center; }
.sync-banner {
  border-bottom: 1px solid rgba(240, 180, 41, 0.35);
  background: rgba(240, 180, 41, 0.1);
}
.sync-banner-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 0.85rem;
  padding: 0.7rem 0; font-size: 0.92rem;
}
.btn-sm { padding: 0.45rem 0.85rem; font-size: 0.86rem; }
.help { color: var(--muted); font-size: 0.88rem; line-height: 1.7; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  border: 0; border-radius: 10px; padding: 0.72rem 1.2rem; cursor: pointer;
  font-weight: 600; transition: transform 0.2s var(--ease), background 0.2s ease, border-color 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #042f2e; }
.btn-primary:hover { background: #45d6c8; }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.04); }
.btn-lg { padding: 0.95rem 1.45rem; font-size: 1rem; }
.btn.is-busy, .btn:disabled { opacity: 0.72; cursor: wait; pointer-events: none; }

.hero {
  position: relative; min-height: calc(100svh - var(--header-h));
  display: grid; align-items: end; overflow: hidden; color: var(--white);
}
.hero-compact {
  min-height: 0;
  align-items: center;
}
.hero-visual { position: absolute; inset: 0; background: #061018; }
.hero-visual img {
  width: 100%; height: 100%; object-fit: cover; opacity: 0.45;
  transform: scale(1.04); animation: hero-drift 18s var(--ease) infinite alternate;
}
.hero-logo-bg {
  background:
    radial-gradient(720px 360px at 70% 35%, rgba(46, 196, 182, 0.16), transparent 62%),
    linear-gradient(135deg, #07111d, #0a1828 55%, #07101a);
}
.hero-logo-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  object-position: center;
  opacity: 0.2;
  transform: none;
  animation: none;
  filter: saturate(1.05) contrast(1.05);
}
.hero-logo-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(105deg, rgba(5, 10, 18, 0.78) 0%, rgba(5, 10, 18, 0.42) 48%, rgba(5, 10, 18, 0.55) 100%),
    linear-gradient(0deg, rgba(5, 10, 18, 0.62), transparent 58%);
}
.hero-content {
  position: relative; z-index: 1; padding: 4.5rem 0 4rem; max-width: 40rem;
  width: min(1160px, calc(100% - 2rem));
  margin-right: max(1rem, calc((100% - 1160px) / 2));
  animation: rise 0.9s var(--ease) both;
}
.hero-compact .hero-content {
  padding: 2.6rem 0 2.4rem;
  max-width: 38rem;
}
.brand-mark {
  margin: 0 0 0.85rem; font-family: var(--font-display);
  font-size: clamp(3.4rem, 10vw, 6.5rem); line-height: 0.92; font-weight: 700;
}
.hero-compact .brand-mark {
  font-size: clamp(1.95rem, 5.2vw, 3.1rem);
  margin-bottom: 0.45rem;
}
.hero h1 {
  margin: 0; font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.4vw, 2.35rem); font-weight: 600; line-height: 1.35;
  color: rgba(255, 255, 255, 0.94);
}
.hero-compact h1 {
  font-size: clamp(1.25rem, 2.6vw, 1.75rem);
}
.hero .lead { margin: 1rem 0 0; color: rgba(232, 240, 247, 0.8); font-size: 1.05rem; max-width: 32rem; line-height: 1.85; }
.hero-compact .lead { margin-top: 0.7rem; font-size: 0.98rem; }
.hero-search, .shop-search {
  display: flex; gap: 0.55rem; align-items: stretch; margin-top: 1.25rem; max-width: 34rem;
}
.hero-search input, .shop-search input {
  flex: 1; min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(5, 10, 18, 0.55);
  color: #fff;
  border-radius: 12px;
  padding: 0.85rem 1rem;
  outline: none;
}
.shop-search input {
  border-color: var(--line);
  background: var(--surface);
  color: var(--text);
}
.hero-search input:focus, .shop-search input:focus {
  border-color: rgba(46, 196, 182, 0.55);
  box-shadow: 0 0 0 3px rgba(46, 196, 182, 0.14);
}
.hero-search input::placeholder { color: rgba(232, 240, 247, 0.55); }
.shop-search { margin-top: 1.1rem; max-width: 420px; }
.search-result-meta { margin: 0.45rem 0 0; color: var(--muted); font-size: 0.92rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.35rem; }
.hero-compact .hero-cta { margin-top: 1.05rem; }
.hero .btn-ghost { color: var(--white); border-color: rgba(255, 255, 255, 0.28); }

@keyframes hero-drift {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to { transform: scale(1.1) translate3d(-1.5%, 1%, 0); }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.section { padding: 3.6rem 0; }
.section-quiet { background: rgba(255, 255, 255, 0.02); border-block: 1px solid var(--line); }
.section-head {
  display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1.5rem;
}
.section-head h2, .page-hero h1, .account-main h1, .auth-card h1 {
  margin: 0; font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.2vw, 2.45rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.2;
}
.section-kicker { margin: 0 0 0.35rem; color: var(--accent); font-size: 0.82rem; font-weight: 700; }
.section-head a { color: var(--accent); font-weight: 600; }
.page-hero { padding: 2rem 0 0; }
.crumbs { display: flex; gap: 0.45rem; flex-wrap: wrap; color: var(--muted); margin-bottom: 0.85rem; font-size: 0.88rem; }

/* Category showcase (home) */
.cat-showcase-section { padding: 2.4rem 0 0.4rem; }
.cat-bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(150px, auto);
  gap: 0.95rem;
}
.cat-tile {
  position: relative;
  grid-column: span 3;
  min-height: 170px;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: #0a1420;
  isolation: isolate;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
  transition: transform 0.35s var(--ease), border-color 0.25s ease;
}
.cat-tile:hover { transform: translateY(-3px); border-color: rgba(46, 196, 182, 0.35); }
.cat-tile-lg { grid-column: span 6; grid-row: span 2; min-height: 360px; }
.cat-tile-md { grid-column: span 3; grid-row: span 2; min-height: 360px; }
.cat-tile::before { display: none; }
.cat-tile img {
  width: 100%; height: 100%; object-fit: fill; object-position: center;
  position: absolute; inset: 0; z-index: 1;
  display: block; max-width: none; max-height: none;
  background: #0a1420;
  transition: transform 0.8s var(--ease);
  filter: none;
  padding: 0; margin: 0;
}
.cat-tile:hover img { transform: scale(1.05); }
.cat-tile-shade {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    linear-gradient(0deg, rgba(4, 9, 16, 0.9) 0%, rgba(4, 9, 16, 0.18) 45%, rgba(4, 9, 16, 0.12) 100%);
}
.cat-tile-meta {
  position: relative; z-index: 3;
  display: grid; gap: 0.25rem; align-content: end;
  height: 100%; padding: 1.15rem 1.2rem;
}
.cat-tile-meta em {
  font-style: normal; color: var(--accent); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em;
}
.cat-tile-meta strong {
  font-family: var(--font-display); font-size: clamp(1.35rem, 2.4vw, 2rem); font-weight: 700; line-height: 1.15;
}
.cat-tile-v2 {
  background:
    radial-gradient(320px 180px at 18% 12%, rgba(46, 196, 182, 0.38), transparent 58%),
    radial-gradient(240px 160px at 92% 88%, rgba(80, 140, 255, 0.22), transparent 55%),
    linear-gradient(145deg, #12344a, #0b1624 55%, #10283a);
}
.cat-tile-v2 .cat-tile-meta strong { color: #e8fff9; }
.media-frame-v2 {
  background:
    radial-gradient(180px 120px at 50% 40%, rgba(46, 196, 182, 0.18), transparent 70%),
    #0c1c2a;
}
.v2-media-mark { font-size: 3.2rem; line-height: 1; }
.badge-v2 {
  display: inline-flex; width: fit-content; padding: 0.15rem 0.5rem; border-radius: 6px;
  background: rgba(46, 196, 182, 0.16); color: var(--accent); font-style: normal; font-size: 0.75rem; font-weight: 700;
}
.cat-tile-all {
  background:
    radial-gradient(280px 160px at 80% 20%, rgba(46, 196, 182, 0.22), transparent 60%),
    linear-gradient(145deg, #102033, #0b1624 55%, #0e1c2e);
  display: grid; place-items: center; text-align: center;
}
.cat-tile-all .cat-tile-meta {
  align-content: center; justify-items: center; padding: 1.4rem;
}
.cat-tile-all .cat-tile-meta span { color: var(--muted); font-size: 0.88rem; }

/* Category slider (legacy) */
.cat-slider-section { padding: 1.8rem 0 0.6rem; }
.cat-slider-shell { position: relative; }
.cat-slider-shell::before,
.cat-slider-shell::after {
  content: "";
  position: absolute; top: 0; bottom: 1rem; width: 2.2rem; z-index: 2; pointer-events: none;
}
.cat-slider-shell::before {
  inset-inline-start: 0;
  background: linear-gradient(to left, transparent, var(--bg));
}
.cat-slider-shell::after {
  inset-inline-end: 0;
  background: linear-gradient(to right, transparent, var(--bg));
}
.cat-slider {
  display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; padding: 0.35rem 1.4rem 1.15rem; scroll-behavior: smooth;
}
.cat-slider::-webkit-scrollbar { display: none; }
.cat-slide {
  flex: 0 0 min(72%, 280px); scroll-snap-align: start;
  position: relative; overflow: hidden; border-radius: 20px;
  border: 1px solid var(--line); min-height: 190px; background: var(--surface);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28);
  isolation: isolate;
}
.cat-slide img {
  width: 100%; height: 190px; object-fit: fill; object-position: center;
  background: #0a1420;
  position: relative; z-index: 1;
  padding: 0;
  transition: transform 0.7s var(--ease);
  filter: none;
}
.cat-slide:hover img { transform: scale(1.05); }
.cat-slide::before { display: none; }
.cat-slide-label {
  position: absolute; inset-inline: 0; bottom: 0;
  padding: 2.2rem 1.05rem 1rem;
  background: linear-gradient(0deg, rgba(3, 8, 14, 0.95) 10%, rgba(3, 8, 14, 0.35) 70%, transparent);
  font-family: var(--font-display); font-size: 1.45rem; font-weight: 700;
  letter-spacing: -0.01em;
}
.cat-slider-nav {
  position: absolute; top: 44%; transform: translateY(-50%);
  width: 2.55rem; height: 2.55rem; border-radius: 999px; border: 1px solid var(--line);
  background: rgba(10, 18, 30, 0.92); color: var(--text); cursor: pointer; z-index: 3;
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.cat-slider-nav.prev { inset-inline-start: 0.2rem; }
.cat-slider-nav.next { inset-inline-end: 0.2rem; }
.cat-slider-nav:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-50%) scale(1.05); }
.cat-slider-dots {
  display: flex; justify-content: center; gap: 0.4rem; margin-top: -0.2rem; padding-bottom: 0.4rem;
}
.cat-slider-dots button {
  width: 0.45rem; height: 0.45rem; border-radius: 999px; border: 0; padding: 0;
  background: rgba(232, 238, 247, 0.25); cursor: pointer; transition: width 0.25s ease, background 0.25s ease;
}
.cat-slider-dots button.is-active {
  width: 1.15rem; background: var(--accent);
}

.product-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.15rem;
}
.product-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  overflow: hidden; transition: transform 0.25s var(--ease), border-color 0.25s ease;
}
.product-card:hover { transform: translateY(-3px); border-color: rgba(46, 196, 182, 0.4); }
.media-frame {
  position: relative;
  height: 190px;
  overflow: hidden;
  background: #0a1420;
}
.media-frame::before { display: none; }
.media-frame img {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: fill;
  object-position: center;
  padding: 0;
  margin: 0;
  background: #0a1420;
  transition: transform 0.35s var(--ease);
}
.product-card:hover .media-frame img { transform: scale(1.05); }
.product-body { padding: 1rem 1.05rem 1.15rem; display: grid; gap: 0.4rem; }
.product-body h3 { margin: 0; font-size: 1.02rem; font-weight: 700; line-height: 1.45; }
.product-body p { margin: 0; color: var(--muted); font-size: 0.86rem; line-height: 1.65; }
.product-body strong { color: var(--accent); font-size: 1.02rem; }
.badge-sale {
  display: inline-flex; width: fit-content; padding: 0.15rem 0.5rem; border-radius: 6px;
  background: rgba(240, 180, 41, 0.14); color: var(--warn); font-style: normal; font-size: 0.75rem; font-weight: 700;
}

.side-cat-card {
  display: grid; grid-template-columns: 52px 1fr; gap: 0.7rem; align-items: center;
  padding: 0.55rem; border-radius: 12px; border: 1px solid transparent;
}
.side-cat-card img { width: 52px; height: 52px; object-fit: cover; object-position: center; border-radius: 10px; background: #0a1420; }
.side-cat-card:hover, .side-cat-card.is-active {
  background: rgba(46, 196, 182, 0.08); border-color: rgba(46, 196, 182, 0.2);
}
.side-cat-card span { font-weight: 600; font-size: 0.92rem; }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

.trust-band { display: grid; grid-template-columns: 1fr auto; gap: 1.5rem; align-items: center; }
.trust-band p { margin: 0.4rem 0 0; color: var(--muted); max-width: 36rem; font-size: 1.02rem; }

.shop-layout { display: grid; grid-template-columns: 240px 1fr; gap: 2rem; }
.shop-side h2 { margin: 0 0 0.9rem; font-size: 0.95rem; color: var(--muted); font-weight: 700; }
.side-list { display: grid; gap: 0.35rem; }

.product-detail { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 2.5rem; align-items: start; }
.product-media {
  position: relative;
  border-radius: 18px; overflow: hidden; background: #061018; min-height: 360px;
  border: 1px solid var(--line);
  aspect-ratio: 4 / 3;
}
.product-media::before { display: none; }
.product-media img {
  position: absolute; inset: 0; z-index: 1;
  display: block;
  width: 100%; height: 100%;
  max-width: none; max-height: none;
  object-fit: fill; object-position: center;
  padding: 0; margin: 0; background: #061018;
}
.product-info h1 {
  margin: 0 0 0.7rem; font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.8rem); line-height: 1.15;
}
.meta { color: var(--muted); margin: 0.2rem 0; }
.price-row { display: flex; align-items: center; gap: 0.7rem; margin: 1.1rem 0; }
.price-row strong { font-size: 1.55rem; color: var(--accent); }
.product-desc { color: var(--muted); line-height: 1.95; margin-bottom: 1.35rem; white-space: pre-wrap; }

.auth-section { padding: 3.5rem 0 4.5rem; }
.auth-wrap { max-width: 440px; margin-inline: auto; }
.auth-card > p { color: var(--muted); margin-top: 0.5rem; }
.tabs { display: flex; gap: 0.35rem; margin: 1.4rem 0 1.1rem; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.tab {
  border: 0; background: transparent; color: var(--muted); border-radius: 0;
  padding: 0.7rem 0.85rem; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tab.active { color: var(--text); border-bottom-color: var(--accent); font-weight: 700; }
.auth-form { display: grid; gap: 0.5rem; }
.auth-form label, .account-root label { color: var(--muted); font-size: 0.86rem; }
.auth-form input, .auth-form select,
.account-root input, .account-root textarea, .account-root select,
.product-info input {
  width: 100%; border-radius: 10px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text); padding: 0.8rem 0.9rem;
}
.product-info label { display: block; color: var(--muted); font-size: 0.86rem; margin-bottom: 0.35rem; }
.v2-media-custom {
  display: grid; place-items: center; min-height: 320px;
  border-radius: 18px; border: 1px solid var(--line);
  background:
    radial-gradient(280px 180px at 50% 28%, rgba(46, 196, 182, 0.22), transparent 62%),
    #061018;
  font-size: 4.2rem;
}
.v2-stepper-block { margin: 0.85rem 0; }
.v2-stepper {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.45rem;
  align-items: center;
}
.v2-stepper-btns { display: flex; gap: 0.35rem; }
.v2-stepper button {
  min-width: 2.45rem; height: 2.45rem; border-radius: 10px;
  border: 1px solid var(--line); background: var(--surface-2); color: var(--text); cursor: pointer;
}
.v2-stepper button:hover { border-color: var(--accent); color: var(--accent); }
.v2-price-box {
  display: grid; gap: 0.25rem;
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 14px; padding: 0.95rem 1.05rem; margin: 0.9rem 0 1.15rem;
}
.v2-price-box span { color: var(--muted); font-size: 0.86rem; }
.v2-price-box strong { color: var(--accent); font-size: 1.35rem; }
.form-msg { margin-top: 1rem; color: var(--accent); }
.form-msg.error { color: var(--danger); }

.account-layout { display: grid; grid-template-columns: 210px 1fr; gap: 1.5rem; }
.account-nav { display: grid; gap: 0.15rem; align-content: start; }
.account-nav a { padding: 0.7rem 0; color: var(--muted); border-bottom: 1px solid transparent; }
.account-nav a.active, .account-nav a:hover { color: var(--text); border-bottom-color: var(--accent); }
.account-main {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 1.35rem;
}
.account-root .card {
  border: 1px solid var(--line); border-radius: 12px; padding: 1rem; margin-top: 0.8rem;
  background: rgba(255, 255, 255, 0.02);
}
.skeleton, .empty { color: var(--muted); }

.contact-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0.9rem; margin: 1.4rem 0;
}
.contact-card {
  display: grid; gap: 0.35rem; padding: 1.1rem 1.15rem; border-radius: 14px;
  border: 1px solid var(--line); background: var(--surface); transition: border-color 0.2s ease, transform 0.2s ease;
}
.contact-card:hover { border-color: rgba(46, 196, 182, 0.4); transform: translateY(-2px); }
.contact-card b { font-size: 1.05rem; }
.contact-card span { color: var(--muted); font-size: 0.88rem; direction: ltr; text-align: right; }

.site-footer {
  margin-top: 2rem; border-top: 1px solid var(--line);
  padding: 3rem 0 1.4rem; background: #050a12; color: rgba(232, 238, 247, 0.88);
}
.footer-brand { font-family: var(--font-display); font-size: 2rem; font-weight: 700; display: block; margin-bottom: 0.4rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 1.75rem; }
.footer-grid h3 { margin: 0 0 0.75rem; font-size: 0.9rem; color: rgba(232, 238, 247, 0.5); font-weight: 600; }
.footer-grid a, .footer-grid p { display: block; color: rgba(232, 238, 247, 0.7); margin: 0.35rem 0; line-height: 1.7; }
.footer-grid a:hover { color: #fff; }
.footer-bottom {
  margin-top: 2rem; padding-top: 1rem; border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(232, 238, 247, 0.45); font-size: 0.84rem;
}
.prose { line-height: 1.95; color: var(--muted); max-width: 720px; }
.prose a { color: var(--accent); }

.bridge-body { min-height: 100vh; display: grid; place-items: center; padding: 1rem; background: var(--bg); color: var(--text); }
.bridge-card { text-align: center; max-width: 360px; }
.bridge-card img { margin: 0 auto 1rem; border-radius: 14px; }
.bridge-card h1 { font-family: var(--font-display); font-size: 2.4rem; margin: 0 0 0.5rem; }

@media (max-width: 960px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .shop-layout, .product-detail, .account-layout, .footer-grid, .trust-band { grid-template-columns: 1fr; }
  .site-header { height: auto; }
  .header-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    grid-template-areas:
      "brand clock actions toggle"
      "search search search search";
    align-items: center;
    height: auto;
    padding: 0.55rem 0;
    gap: 0.5rem 0.55rem;
  }
  .brand { grid-area: brand; }
  .sf-site-clock {
    grid-area: clock;
    justify-self: center;
    max-width: none;
  }
  .header-actions {
    grid-area: actions;
    justify-self: end;
  }
  .nav-toggle {
    grid-area: toggle;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: end;
  }
  .header-search {
    grid-area: search;
    max-width: none;
    width: 100%;
    justify-self: stretch;
  }
  .nav-main { display: none; }
  .nav-main.is-open {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    position: absolute; inset-inline: 0; top: 100%;
    background: rgba(7, 13, 22, 0.98); border-bottom: 1px solid var(--line); padding: 0.6rem 1rem 1rem;
    z-index: 60;
  }
  .nav-main.is-open a { padding: 0.75rem 0; border-bottom: 1px solid var(--line); }
  .hero { min-height: 70svh; }
  .hero-compact { min-height: 0; }
  .hero-content { margin-right: 1rem; padding-bottom: 3rem; }
  .hero-compact .hero-content { padding-bottom: 2rem; }
  .brand-text small { display: none; }
  .cat-bento { grid-template-columns: repeat(6, 1fr); }
  .cat-tile, .cat-tile-lg, .cat-tile-md, .cat-tile-all { grid-column: span 3; grid-row: auto; min-height: 180px; }
  .cat-tile-lg { grid-column: span 6; min-height: 220px; }
  .cat-slider-nav { display: none; }
  .cat-slider-shell::before, .cat-slider-shell::after { width: 1rem; }
  .cat-slide { flex-basis: min(82%, 240px); min-height: 170px; }
  .cat-slide img { height: 170px; }
}

@media (max-width: 640px) {
  .product-grid { grid-template-columns: 1fr; }
  .media-frame, .product-media { height: 220px; min-height: 220px; }
  .product-media { aspect-ratio: auto; }
  .header-row { gap: 0.45rem; }
  .cat-tile, .cat-tile-lg, .cat-tile-md, .cat-tile-all { grid-column: span 6; min-height: 170px; }
  .hero-search, .shop-search { flex-direction: column; }
}

/* Fortune wheel (account) */
.sf-wheel-head {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1rem;
}
.sf-spin-balance {
  padding: 0.45rem 0.8rem; border-radius: 12px;
  background: rgba(245, 158, 11, 0.14); color: #f0b429; font-size: 0.86rem; white-space: nowrap;
}
.sf-wheel-stage {
  height: 340px; display: grid; place-items: center; position: relative; margin: 0.4rem 0 0.8rem;
}
.sf-fortune-wheel {
  position: relative; width: min(280px, 78vw); height: min(280px, 78vw); border-radius: 50%;
  border: 10px solid #1a2740; box-shadow: 0 0 0 5px #3d5278, 0 20px 60px rgba(0,0,0,0.45), inset 0 0 40px rgba(0,0,0,0.35);
  overflow: hidden; transition: transform 7s cubic-bezier(.08,.7,.08,1);
  background: #102033;
}
.sf-fortune-wheel.spinning { pointer-events: none; }
.sf-wheel-hub {
  position: absolute; inset: 50% auto auto 50%; transform: translate(-50%, -50%); z-index: 3;
  width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%;
  font-size: 1.7rem; background: #0b1422; border: 5px solid #dce7ff;
}
.sf-wheel-label {
  position: absolute; left: 50%; top: 50%; width: 48%;
  transform-origin: 0 0;
  transform: rotate(calc(var(--i) * 360deg / var(--n) + 180deg / var(--n) - 90deg)) translate(14%, -50%);
  pointer-events: none; z-index: 2;
}
.sf-wheel-label em {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.08rem;
  font-style: normal; font-size: 0.78rem; font-weight: 800; line-height: 1.15;
  color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,0.8); text-align: center;
  max-width: 100%; direction: rtl;
}
.sf-wheel-label em span {
  display: block; white-space: nowrap;
}
@media (max-width: 420px) {
  .sf-wheel-label em { font-size: 0.7rem; }
}
.sf-wheel-pointer {
  position: absolute; z-index: 4; top: 8px; color: #fff; font-size: 2rem;
  filter: drop-shadow(0 4px 3px rgba(0,0,0,0.55));
}

/* Wheel / referral modal */
.sf-modal.hidden { display: none; }
.sf-modal {
  position: fixed; inset: 0; z-index: 1200; display: grid; place-items: center; padding: 1rem;
}
.sf-modal-backdrop {
  position: absolute; inset: 0; background: rgba(6, 12, 24, 0.72); backdrop-filter: blur(4px);
}
.sf-modal-card {
  position: relative; z-index: 1; width: min(420px, 100%);
  background: linear-gradient(165deg, #132033, #0c1524 55%, #101a2c);
  border: 1px solid rgba(148, 163, 184, 0.22); border-radius: 18px;
  padding: 1.25rem 1.15rem 1.15rem; box-shadow: 0 24px 60px rgba(0,0,0,0.45);
  color: #e8eef8;
}
.sf-modal-card h2 { margin: 0 0 .65rem; font-size: 1.25rem; }
.sf-modal-card p { margin: 0 0 .7rem; line-height: 1.7; color: #c9d4e5; }
.sf-modal-close {
  position: absolute; top: .55rem; left: .65rem; border: 0; background: transparent;
  color: #94a3b8; font-size: 1.4rem; cursor: pointer; line-height: 1;
}
.sf-provider-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: .65rem; margin-top: .85rem;
}
.sf-prize-code {
  direction: ltr; text-align: center; font-size: 1.15rem; letter-spacing: .04em;
  background: rgba(15, 23, 42, 0.75); border: 1px dashed rgba(148,163,184,.35);
  border-radius: 12px; padding: .85rem; margin: .7rem 0; overflow-x: auto;
}

.sf-order-card {
  display: block; width: 100%; text-align: right; cursor: pointer;
  border: 1px solid rgba(148,163,184,.18); background: rgba(15,23,42,.35);
  transition: border-color .15s ease, transform .15s ease;
}
.sf-order-card:hover { border-color: rgba(56,189,248,.45); transform: translateY(-1px); }
.sf-order-code { color: #7dd3fc; text-decoration: underline; text-underline-offset: 3px; }
.sf-order-detail { display: grid; gap: .55rem; margin-top: .35rem; }
.sf-detail-row {
  display: grid; gap: .2rem; padding: .55rem .65rem;
  background: rgba(15, 23, 42, 0.45); border-radius: 12px;
  border: 1px solid rgba(148,163,184,.12);
}
.sf-detail-label { font-size: .78rem; color: #94a3b8; }
.sf-detail-value {
  display: flex; align-items: flex-start; justify-content: space-between; gap: .55rem;
  color: #e8eef8; line-height: 1.6; word-break: break-word;
}
.sf-detail-value code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .92rem; background: rgba(2,6,23,.35); padding: .15rem .35rem; border-radius: 6px;
}
.sf-mini-btn {
  flex: 0 0 auto; padding: .25rem .55rem; font-size: .75rem; line-height: 1.2;
}
.sf-info-box {
  padding: .7rem .75rem; border-radius: 12px; line-height: 1.7;
  background: rgba(245, 158, 11, 0.1); border: 1px solid rgba(245, 158, 11, 0.25);
  color: #fde68a; font-size: .9rem;
}
.sf-modal-card { max-height: min(86vh, 720px); overflow: auto; }

.sf-pay-mode-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.sf-pay-mode.active { background: rgba(14,165,164,.2); border-color: rgba(45,212,191,.55); color: #99f6e4; }
.sf-pay-actions { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .55rem; }
.sf-receipt-box {
  margin-top: .85rem; padding: .75rem; border-radius: 12px;
  border: 1px dashed rgba(148,163,184,.35); background: rgba(15,23,42,.35);
  display: grid; gap: .45rem;
}
.sf-receipt-box input[type=file] { color: #cbd5e1; font-size: .85rem; }

/* Account top bar leftovers cleaned — clock lives in global header */
.account-topbar {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem;
  margin-bottom: .35rem;
}
.account-topbar h1 { margin: 0; flex: 1; min-width: 0; }

/* Premium orders gallery */
.sf-orders-hero {
  margin: 0 0 1rem;
  padding: 1rem 1.1rem;
  border-radius: 18px;
  background:
    radial-gradient(420px 140px at 100% 0%, rgba(46,196,182,.16), transparent 55%),
    linear-gradient(135deg, rgba(18,28,43,.95), rgba(10,16,26,.92));
  border: 1px solid rgba(148,163,184,.16);
}
.sf-orders-hero p { margin: .35rem 0 0; color: var(--muted); font-size: .9rem; }
.sf-orders-grid { display: grid; gap: .85rem; }
.sf-order-tile {
  position: relative; display: grid; gap: .55rem; width: 100%; text-align: right;
  padding: 1rem 1.05rem; cursor: pointer; overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(148,163,184,.14);
  background:
    linear-gradient(155deg, rgba(20,31,48,.92), rgba(11,18,30,.96));
  box-shadow: 0 14px 34px rgba(0,0,0,.22);
  transition: transform .2s var(--ease), border-color .2s ease, box-shadow .2s ease;
}
.sf-order-tile::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 3px;
  background: linear-gradient(180deg, #2ec4b6, #3b82f6);
  opacity: .85;
}
.sf-order-tile:hover {
  transform: translateY(-2px);
  border-color: rgba(46,196,182,.35);
  box-shadow: 0 18px 40px rgba(0,0,0,.3);
}
.sf-order-tile-top {
  display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem;
}
.sf-order-tile-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1.05rem; font-weight: 800; color: #7dd3fc; letter-spacing: .02em;
}
.sf-order-tile-name {
  font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; line-height: 1.35;
  color: #f3f7fc;
}
.sf-order-tile-meta {
  display: flex; flex-wrap: wrap; gap: .45rem .7rem; align-items: center;
  color: #93a7bf; font-size: .84rem;
}
.sf-status-pill {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .22rem .58rem; border-radius: 999px; font-size: .75rem; font-weight: 700;
  border: 1px solid transparent;
}
.sf-status-pill.is-good {
  color: #99f6e4; background: rgba(46,196,182,.12); border-color: rgba(46,196,182,.28);
}
.sf-status-pill.is-bad {
  color: #fecaca; background: rgba(240,113,120,.12); border-color: rgba(240,113,120,.28);
}
.sf-status-pill.is-wait {
  color: #fde68a; background: rgba(240,180,41,.12); border-color: rgba(240,180,41,.28);
}
.sf-order-tile-cta {
  margin-top: .15rem; color: #2ec4b6; font-size: .82rem; font-weight: 700;
}
@media (max-width: 640px) {
  .sf-iran-clock-face { width: 30px; height: 30px; }
  .sf-iran-date { max-width: 9rem; font-size: .55rem; }
  .sf-iran-digital { font-size: .68rem; }
  .sf-site-clock { padding: .22rem .5rem .26rem; gap: .14rem; }
}
