/* ============================================================
   Mohammad Khan — Premium Black & Gold
   #0f0f10 · #D4AF37 · #FFFFFF · #A1A1A1
   ============================================================ */

:root {
  --bg: #0f0f10;
  --bg-elevated: #161618;
  --bg-card: #1a1a1d;
  --gold: #d4af37;
  --gold-light: #e8c96a;
  --gold-dark: #a8872a;
  --gold-glow: rgba(212, 175, 55, 0.35);
  --text: #ffffff;
  --muted: #a1a1a1;
  --border: rgba(212, 175, 55, 0.14);
  --border-strong: rgba(212, 175, 55, 0.28);
  --success: #4ade80;
  --danger: #f87171;
  --glass: rgba(22, 22, 24, 0.72);
  --font: "Vazirmatn", system-ui, sans-serif;
  --font-display: "Vazirmatn", system-ui, sans-serif;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow-gold: 0 8px 40px rgba(212, 175, 55, 0.18);
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.55);
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --navbar-h: 84px;
  --ticker-h: 60px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  max-width: 100%;
  overflow-x: clip;
}

body {
  font-family: var(--font);
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
  overflow-x: clip;
  max-width: 100%;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  min-height: 100vh;
}

img, canvas, svg, video {
  max-width: 100%;
  height: auto;
}

#main-content {
  min-width: 0;
  width: 100%;
  overflow-x: clip;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  background:
    radial-gradient(ellipse 70% 50% at 50% -10%, rgba(212, 175, 55, 0.16) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 100% 50%, rgba(212, 175, 55, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse 40% 35% at 0% 80%, rgba(168, 135, 42, 0.07) 0%, transparent 45%),
    linear-gradient(180deg, #121214 0%, #0f0f10 40%, #0c0c0e 100%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: 0.35;
  background-image:
    linear-gradient(115deg, transparent 0%, rgba(212, 175, 55, 0.03) 40%, transparent 70%),
    repeating-linear-gradient(
      -18deg,
      transparent 0,
      transparent 11px,
      rgba(212, 175, 55, 0.025) 11px,
      rgba(212, 175, 55, 0.025) 12px
    );
}

.brand-mark {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
  flex-shrink: 0;
  box-shadow:
    0 0 14px rgba(212, 175, 55, 0.4),
    0 0 28px rgba(232, 201, 106, 0.22),
    0 0 0 1px rgba(255, 236, 170, 0.3);
  animation: brandGlow 2.8s ease-in-out infinite;
}
.brand-mark::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: rgba(255, 236, 170, 0.85);
  border-right-color: rgba(212, 175, 55, 0.35);
  pointer-events: none;
  animation: brandSparkle 2.4s ease-in-out infinite;
}
.brand-mark__img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: #0f0f10;
}

.gold-foil {
  position: absolute;
  border-radius: 40% 60% 55% 45%;
  filter: blur(40px);
  opacity: 0.22;
  background: radial-gradient(circle, rgba(232, 201, 106, 0.55) 0%, rgba(212, 175, 55, 0.15) 45%, transparent 70%);
  animation: foilDrift 14s ease-in-out infinite alternate;
}
.gold-foil--1 { width: 280px; height: 220px; top: 8%; right: -4%; }
.gold-foil--2 { width: 200px; height: 180px; bottom: 12%; left: -6%; animation-delay: -4s; opacity: 0.15; }
.gold-foil--3 { width: 160px; height: 140px; top: 42%; left: 40%; animation-delay: -8s; opacity: 0.1; }
@keyframes foilDrift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-18px, 12px, 0) scale(1.06); }
}

.hero__brand {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 900;
  margin-bottom: 0.75rem;
  background: linear-gradient(135deg, #f0d878 0%, #d4af37 45%, #a8872a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.03em;
}

.analyses__cta--two {
  grid-template-columns: 1fr 1fr;
  max-width: 720px;
}

.about__inner--simple {
  grid-template-columns: 1fr;
  max-width: 720px;
  margin-inline: auto;
}

.hero__visual {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(212, 175, 55, 0.08) 0%, rgba(15, 15, 16, 0.9) 45%);
  backdrop-filter: blur(12px);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
main { position: relative; }

.container { width: min(1180px, calc(100% - 2rem)); margin-inline: auto; }

h1, h2, h3, .hero__title, .section-head__title, .navbar__title {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -0.02em;
}

.text-gold {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 50%, var(--gold-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── Glass ─── */
.glass-card {
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

.gold-glow {
  position: relative;
}

.gold-glow::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(212, 175, 55, 0.12) 0%, transparent 65%);
  opacity: 0.9;
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  transition: var(--transition);
  white-space: nowrap;
  border: 1px solid transparent;
}

.btn--lg { padding: 1rem 2rem; font-size: 1rem; }

.btn--gold, .btn--primary {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 45%, var(--gold-dark) 100%);
  color: #0f0f10;
  box-shadow: var(--shadow-gold);
}

.btn--gold:hover, .btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 48px rgba(212, 175, 55, 0.35);
  filter: brightness(1.06);
}

.btn--outline-gold {
  background: transparent;
  color: var(--gold);
  border: 2px solid var(--gold);
}

.btn--outline-gold:hover {
  background: rgba(212, 175, 55, 0.1);
  transform: translateY(-3px);
  box-shadow: var(--shadow-gold);
}

.btn--vip-nav {
  padding: 0.55rem 1.25rem !important;
  background: var(--gold) !important;
  color: #0f0f10 !important;
  border-radius: 8px;
  font-weight: 800;
  font-size: 0.88rem;
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.35);
}

.btn--vip-nav:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(212, 175, 55, 0.45);
}

.btn--glass {
  background: rgba(212, 175, 55, 0.08);
  color: var(--gold-light);
  border: 1px solid var(--border-strong);
}

.btn--glass:hover { background: rgba(212, 175, 55, 0.15); transform: translateY(-2px); }

.btn--outline {
  border: 1.5px solid var(--border-strong);
  color: var(--gold-light);
  background: transparent;
}

.btn--whatsapp {
  background: #25d366;
  color: #fff;
  box-shadow: 0 4px 24px rgba(37, 211, 102, 0.3);
}

.btn--sm { padding: 0.5rem 1rem; font-size: 0.82rem; }
.btn--block { width: 100%; }

/* ─── Navbar Premium ─── */
.navbar {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1000;
  height: var(--navbar-h);
  transition: var(--transition);
  background: transparent;
  overflow: visible;
}

.navbar--solid {
  background: rgba(15, 15, 16, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1.5rem;
  overflow: visible;
}

.navbar__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  max-width: 70%;
}

/* ─── Liquid Gold 3D ─── */
.liquid-gold {
  position: relative;
  perspective: 900px;
  transform-style: preserve-3d;
}

.liquid-gold__orbit {
  animation: liquidOrbit 14s linear infinite;
  transform-style: preserve-3d;
  will-change: transform;
}

.liquid-gold__sphere {
  animation: liquidTilt 7s ease-in-out infinite alternate;
  transform-style: preserve-3d;
  border-radius: 50%;
  overflow: hidden;
  box-shadow:
    0 0 32px rgba(212, 175, 55, 0.45),
    inset 0 -8px 24px rgba(168, 135, 42, 0.35),
    inset 0 8px 20px rgba(255, 230, 150, 0.15);
}

.liquid-gold__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  filter: drop-shadow(0 6px 20px rgba(212, 175, 55, 0.55));
}

.liquid-gold__halo {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: rgba(232, 201, 106, 0.85);
  border-right-color: rgba(212, 175, 55, 0.25);
  border-bottom-color: rgba(168, 135, 42, 0.15);
  animation: haloSpin 5s linear infinite;
  pointer-events: none;
}

.liquid-gold__halo--md { inset: -12px; }
.liquid-gold__halo--lg { inset: -18px; border-width: 3px; }

.liquid-gold--nav { width: 58px; height: 58px; flex-shrink: 0; }
.liquid-gold--nav .liquid-gold__sphere { width: 52px; height: 52px; }
.liquid-gold--hero { width: 96px; height: 96px; margin-bottom: 1.25rem; }
.liquid-gold--hero .liquid-gold__sphere { width: 88px; height: 88px; }
.liquid-gold--portal { width: 150px; height: 150px; }
.liquid-gold--portal .liquid-gold__sphere { width: 140px; height: 140px; }
.liquid-gold--about { width: 200px; height: 200px; margin-inline: auto; }
.liquid-gold--about .liquid-gold__sphere { width: 180px; height: 180px; }

@keyframes liquidOrbit {
  0%   { transform: rotateY(0deg) rotateX(12deg); }
  50%  { transform: rotateY(180deg) rotateX(8deg); }
  100% { transform: rotateY(360deg) rotateX(12deg); }
}

@keyframes liquidTilt {
  0%   { transform: rotateX(6deg) rotateZ(-3deg) scale(1); }
  100% { transform: rotateX(-8deg) rotateZ(4deg) scale(1.04); }
}

@keyframes haloSpin {
  to { transform: rotate(360deg); }
}

/* قطره‌های طلای آب‌شده */
.gold-drop {
  position: absolute;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: radial-gradient(circle at 35% 30%, #f5e6a8 0%, #d4af37 45%, #8a6d1f 100%);
  opacity: 0.35;
  filter: blur(0.5px);
  animation: goldDropFloat 9s ease-in-out infinite;
  box-shadow: 0 0 40px rgba(212, 175, 55, 0.35);
}

.gold-drop--1 { width: 18px; height: 22px; top: 12%; right: 8%; animation-delay: 0s; }
.gold-drop--2 { width: 12px; height: 16px; top: 55%; right: 18%; animation-delay: -2s; opacity: 0.25; }
.gold-drop--3 { width: 22px; height: 28px; bottom: 20%; left: 6%; animation-delay: -4s; }
.gold-drop--4 { width: 10px; height: 14px; top: 28%; left: 22%; animation-delay: -6s; opacity: 0.2; }

@keyframes goldDropFloat {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.3; }
  50%      { transform: translateY(-14px) scale(1.08); opacity: 0.5; }
}

.navbar__logo-ring {
  position: relative;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.navbar__logo-ring::before {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: var(--gold);
  border-right-color: rgba(212, 175, 55, 0.3);
  animation: logoSpin 6s linear infinite;
}

.navbar__logo {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  filter: drop-shadow(0 4px 16px var(--gold-glow));
}

.navbar__logo--spin { animation: logoSpin 20s linear infinite; }

@keyframes logoSpin { to { transform: rotate(360deg); } }
@keyframes brandGlow {
  0%, 100% {
    box-shadow:
      0 0 14px rgba(212, 175, 55, 0.35),
      0 0 32px rgba(232, 201, 106, 0.2),
      0 0 0 1px rgba(255, 236, 170, 0.28);
  }
  50% {
    box-shadow:
      0 0 26px rgba(255, 236, 170, 0.65),
      0 0 54px rgba(212, 175, 55, 0.4),
      0 0 0 1px rgba(255, 248, 210, 0.55);
  }
}
@keyframes brandSparkle {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.06); }
}

.navbar__brand-text { display: flex; flex-direction: column; gap: 0.1rem; }

.navbar__title {
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--text);
  line-height: 1.2;
}

.navbar__tagline {
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 500;
}

.navbar__menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.navbar__link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  transition: var(--transition);
  position: relative;
}

.navbar__link:hover { color: var(--gold); }

.navbar__link--user { color: var(--text); font-weight: 600; }

.navbar__link--muted { font-size: 0.85rem; }

.navbar__link--outline {
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 0.45rem 1rem;
  color: var(--gold-light);
}
.navbar__register {
  margin-inline-start: 0.35rem;
  white-space: nowrap;
}

.navbar__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}

.navbar__toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--gold);
  transition: var(--transition);
}

/* ─── Ticker Premium (مارquee متحرک) ─── */
.ticker {
  position: fixed;
  top: var(--navbar-h);
  right: 0;
  left: 0;
  z-index: 900;
  height: var(--ticker-h);
  display: flex;
  align-items: center;
  background: linear-gradient(90deg, #080809 0%, #121214 35%, #161618 50%, #121214 65%, #080809 100%);
  border-bottom: 1px solid var(--border-strong);
  overflow: hidden;
}

.site-chrome-spacer {
  height: var(--navbar-h);
  width: 100%;
  flex-shrink: 0;
}
body.has-ticker .site-chrome-spacer {
  height: calc(var(--navbar-h) + var(--ticker-h));
}

.ticker__glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.06) 50%, transparent);
  animation: tickerShine 6s ease-in-out infinite;
}

@keyframes tickerShine {
  0%, 100% { opacity: 0.4; transform: translateX(-30%); }
  50%      { opacity: 1; transform: translateX(30%); }
}

.ticker__viewport {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  height: 100%;
  direction: ltr;
  touch-action: pan-y;
  cursor: grab;
  mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
  user-select: none;
  -webkit-user-select: none;
}
.ticker__viewport.is-swiping {
  cursor: grabbing;
}

.ticker__track {
  display: flex;
  align-items: center;
  height: 100%;
  width: max-content;
  will-change: transform;
  /* حرکت فقط با JS — تا لمس موبایل auto-scroll را متوقف نکند */
  animation: none;
}

.ticker__group {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  padding: 0 1.5rem;
  height: 100%;
  flex-shrink: 0;
}

.ticker__item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  white-space: nowrap;
  font-size: 0.92rem;
  padding: 0.35rem 0.65rem;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: border-color 0.4s, background 0.4s;
  direction: rtl;
}

.ticker__item:hover {
  border-color: rgba(212, 175, 55, 0.2);
  background: rgba(212, 175, 55, 0.04);
}

.ticker__label {
  color: var(--gold-light);
  font-weight: 600;
  font-size: 0.82rem;
}

.ticker__price {
  font-weight: 800;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  transition: color 0.55s cubic-bezier(0.4, 0, 0.2, 1),
              background 0.55s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

.ticker__price--up {
  color: var(--success);
  background: rgba(74, 222, 128, 0.12);
  box-shadow: 0 0 16px rgba(74, 222, 128, 0.15);
}

.ticker__price--down {
  color: var(--danger);
  background: rgba(248, 113, 113, 0.12);
  box-shadow: 0 0 16px rgba(248, 113, 113, 0.15);
}

.ticker__price--flash {
  animation: priceFlash 0.85s ease-out;
}

@keyframes priceFlash {
  0%   { transform: scale(1); }
  35%  { transform: scale(1.04); }
  100% { transform: scale(1); }
}

.ticker__status {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  font-size: 0.72rem;
  color: var(--gold);
  font-weight: 700;
  margin: 0 0.75rem;
  padding: 0.25rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 50px;
  letter-spacing: 0.04em;
  background: rgba(15, 15, 16, 0.9);
}

.ticker__status--err { color: var(--danger); border-color: rgba(248, 113, 113, 0.35); }

.ticker__unit {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--gold-light);
  margin-inline-end: 0.75rem;
  padding: 0.25rem 0.55rem;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  background: rgba(212, 175, 55, 0.08);
}

@media (prefers-reduced-motion: reduce) {
  .ticker__track { animation: none !important; }
}

/* ─── Portal ─── */
.gold-portal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  transition: opacity 0.9s, visibility 0.9s;
}

.gold-portal--hide { opacity: 0; visibility: hidden; pointer-events: none; }

.gold-portal__liquid {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 55% at 50% 45%, rgba(212, 175, 55, 0.25) 0%, transparent 65%);
  animation: liquidPulse 5s ease-in-out infinite alternate;
}

@keyframes liquidPulse { from { opacity: 0.6; } to { opacity: 1; } }

.gold-portal__glow {
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.35) 0%, transparent 70%);
  animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.15); } }

.gold-portal__logo-wrap {
  position: relative;
  z-index: 2;
}

.gold-portal__logo {
  position: relative;
  z-index: 2;
  border-radius: 50%;
  animation: logoSpin 4s linear infinite;
  filter: drop-shadow(0 0 48px var(--gold-glow));
}

.welcome-popup {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background:
    radial-gradient(ellipse 70% 50% at 50% 40%, rgba(212, 175, 55, 0.12) 0%, transparent 55%),
    rgba(8, 8, 10, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s ease, visibility 0.45s ease;
  pointer-events: none;
}

.welcome-popup--show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

body.welcome-open {
  overflow: hidden;
}

.welcome-popup__card {
  width: min(100%, 420px);
  padding: 2rem 1.75rem 1.75rem;
  text-align: center;
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: 18px;
  background: linear-gradient(165deg, rgba(28, 26, 22, 0.96) 0%, rgba(14, 14, 16, 0.98) 100%);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(212, 175, 55, 0.08) inset;
  transform: translateY(12px) scale(0.98);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.welcome-popup--show .welcome-popup__card {
  transform: translateY(0) scale(1);
}

.welcome-popup__mark {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  display: block;
  filter: drop-shadow(0 6px 18px var(--gold-glow));
}

.welcome-popup__eyebrow {
  font-size: 0.75rem;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.12em;
  margin-bottom: 0.45rem;
}

.welcome-popup__title {
  font-size: clamp(1.35rem, 4vw, 1.7rem);
  font-weight: 900;
  color: var(--gold-light);
  margin-bottom: 0.55rem;
  line-height: 1.25;
}

.welcome-popup__text {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0 auto 1.25rem;
  max-width: 28ch;
}

.welcome-popup__close {
  appearance: none;
  border: 1px solid rgba(212, 175, 55, 0.35);
  background: rgba(212, 175, 55, 0.12);
  color: var(--gold-light);
  font: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.55rem 1.35rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.welcome-popup__close:hover,
.welcome-popup__close:focus-visible {
  background: rgba(212, 175, 55, 0.22);
  border-color: var(--gold);
  color: #fff;
  outline: none;
}

@media (prefers-reduced-motion: reduce) {
  .welcome-popup,
  .welcome-popup__card {
    transition: none;
  }
  .welcome-popup--show .welcome-popup__card {
    transform: none;
  }
}

/* ─── Hero Premium ─── */
.hero {
  padding: 2.5rem 0 5rem;
  position: relative;
  min-height: auto;
  display: flex;
  align-items: center;
}

.hero__logo-row { margin-bottom: 0.5rem; }

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(212, 175, 55, 0.08) 0%, transparent 55%),
    linear-gradient(180deg, #121214 0%, var(--bg) 70%);
  pointer-events: none;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3.5rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero__eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
  padding: 0.35rem 0.9rem;
  border: 1px solid var(--border-strong);
  border-radius: 50px;
  background: rgba(212, 175, 55, 0.06);
}

.hero__title {
  font-size: clamp(1.85rem, 4.5vw, 2.85rem);
  font-weight: 900;
  line-height: 1.35;
  margin-bottom: 1rem;
  color: var(--gold);
}

.hero__subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.hero__desc {
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 2.25rem;
  max-width: 480px;
  line-height: 1.8;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.hero__unit-note {
  position: relative;
  z-index: 1;
  margin: 0 auto;
  padding: 0.85rem 1.25rem 0;
  max-width: var(--container, 1200px);
  text-align: center;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--gold-light);
  opacity: 0.88;
}

.home-quicklinks {
  padding: 0.35rem 0 1.75rem;
  border-bottom: 1px solid rgba(212, 175, 55, 0.12);
}

.home-quicklinks__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem 1.35rem;
}

.home-quicklinks a {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.2s ease;
}

.home-quicklinks a:hover,
.home-quicklinks a:focus-visible {
  color: var(--gold);
  outline: none;
}

.hero__visual {
  position: relative;
  padding: 1.5rem;
  min-height: 380px;
  overflow: hidden;
  transform: perspective(1200px) rotateY(-4deg) rotateX(2deg);
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero__visual:hover {
  transform: perspective(1200px) rotateY(0deg) rotateX(0deg);
}

.hero__visual-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.hero__visual-label { font-weight: 800; color: var(--gold); font-size: 0.95rem; }

.hero__visual-live {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: var(--success);
  font-weight: 600;
}

.hero__visual-live i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  animation: liveDot 1.5s ease infinite;
}

@keyframes liveDot { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

.hero__canvas {
  width: 100%;
  min-height: 260px;
  height: 300px;
  display: block;
  position: relative;
  z-index: 2;
}

.hero__visual-glow {
  position: absolute;
  bottom: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 50%;
  background: radial-gradient(ellipse, rgba(212, 175, 55, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

/* ─── Markets strip ─── */
.markets-strip {
  padding: 2rem 0 3.5rem;
}

.markets-strip__inner {
  padding: 1.75rem 2rem;
  text-align: center;
}

.markets-strip__title {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}

.markets-strip__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem 1rem;
  margin-bottom: 1rem;
}

.markets-strip__list li {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 50px;
  background: rgba(212, 175, 55, 0.05);
}

.markets-strip__source {
  font-size: 0.78rem;
  color: var(--muted);
}

.chart-card__empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  color: var(--muted);
  font-size: 0.95rem;
}

.chart-card__canvas {
  width: 100%;
  min-height: 280px;
  height: 320px;
  display: none;
  padding: 1rem;
  box-sizing: border-box;
}

/* ─── Stats (legacy — unused on home) ─── */
.stats-bar {
  padding: 4rem 0;
  border-block: 1px solid var(--border);
  background: var(--bg-elevated);
}

.stats-bar__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stats-bar__num {
  display: block;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 900;
  color: var(--gold);
  margin-bottom: 0.35rem;
  font-variant-numeric: tabular-nums;
}

.stats-bar__label { font-size: 0.88rem; color: var(--muted); }

/* ─── Sections ─── */
.section-head { margin-bottom: 2.5rem; }
.section-head--center { text-align: center; }

.section-head__eyebrow {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 0.5rem;
  letter-spacing: 0.06em;
}

.section-head__title {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 900;
  margin-bottom: 0.5rem;
}

.section-head__desc { color: var(--muted); font-size: 0.95rem; }

.chart-section { padding: 5rem 0; }
.chart-card { overflow: hidden; }

.chart-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
}

.chart-card__symbol { font-weight: 800; color: var(--gold); }

.chart-card__live {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--success);
  font-weight: 600;
}

.chart-card__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  animation: liveDot 1.5s ease infinite;
}

/* ─── Why ─── */
.why { padding: 5rem 0; }

.why__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.why-card {
  padding: 2rem 1.5rem;
  text-align: center;
  transition: var(--transition);
}

.why-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-gold);
}

.why-card__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.1);
  color: var(--gold);
  font-size: 1.2rem;
  border: 1px solid var(--border);
}

.why-card h3 { font-size: 1rem; font-weight: 800; margin-bottom: 0.5rem; }
.why-card p { font-size: 0.88rem; color: var(--muted); line-height: 1.65; }

/* ─── About ─── */
.about { padding: 5rem 0; background: var(--bg-elevated); }

.about__inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem;
  align-items: center;
}

.about__logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  max-width: 340px;
  margin-inline: auto;
  padding: 2.5rem;
}

.about__logo {
  width: 100%;
  border-radius: 50%;
  filter: drop-shadow(0 8px 32px var(--gold-glow));
}

.about__logo--spin { animation: logoSpin 22s linear infinite; }

.about__text { color: var(--muted); margin-bottom: 1rem; font-size: 0.95rem; }

.about__stats { display: flex; gap: 2rem; margin-top: 1.5rem; }

.about__stats li { text-align: center; }

.about__stats strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--gold);
}

.about__stats span { font-size: 0.8rem; color: var(--muted); }

/* ─── Analyses CTA ─── */
.analyses { padding: 5rem 0; }

.analyses__cta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  max-width: 980px;
  margin: 0 auto;
}

.analyses__cta-card {
  padding: 2.25rem;
  text-align: center;
  transition: var(--transition);
}

.analyses__cta-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-gold); }

.analyses__cta-card--soon {
  border-color: var(--border-strong);
  opacity: 0.95;
}

.analyses__cta-card h3 { font-weight: 800; margin-bottom: 0.5rem; }
.analyses__cta-card p { color: var(--muted); font-size: 0.9rem; margin-bottom: 1.25rem; }

.analyses__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.analyses__grid--public { align-items: stretch; }

/* ─── WhatsApp CTA ─── */
.whatsapp-cta { padding: 4rem 0; }

.whatsapp-cta__card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 2.5rem 3rem;
  border-color: rgba(37, 211, 102, 0.2);
  background: linear-gradient(135deg, rgba(37, 211, 102, 0.05) 0%, rgba(212, 175, 55, 0.05) 100%);
}

.whatsapp-cta__title { font-size: 1.35rem; font-weight: 900; margin-bottom: 0.35rem; }
.whatsapp-cta__text { color: var(--muted); font-size: 0.92rem; }

/* ─── Analyze page ─── */
.analyze-page { padding: 2rem 0 4rem; }

.analyze-flash {
  max-width: 600px;
  margin: 0 auto 1.5rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius);
  font-size: 0.88rem;
  text-align: center;
}

.analyze-flash--success { background: rgba(74, 222, 128, 0.08); color: var(--success); border: 1px solid rgba(74, 222, 128, 0.2); }
.analyze-flash--error { background: rgba(248, 113, 113, 0.08); color: var(--danger); border: 1px solid rgba(248, 113, 113, 0.2); }

.analyze-wallet-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.analyze-wallet-bar strong { color: var(--gold); }

.analyze-tabs {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.analyze-tabs__btn {
  padding: 0.7rem 1.35rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: var(--transition);
}

.analyze-tabs__btn:hover,
.analyze-tabs__btn--active {
  background: var(--gold);
  color: #0f0f10;
  border-color: var(--gold);
}

.analyze-tabs__soon {
  display: inline-block;
  margin-inline-start: 0.35rem;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.12rem 0.4rem;
  border-radius: 4px;
  background: rgba(212, 175, 55, 0.18);
  color: var(--gold-light);
  vertical-align: middle;
}

.analyze-tabs__btn--active .analyze-tabs__soon {
  background: rgba(15, 15, 16, 0.2);
  color: #0f0f10;
}

.analyze-soon {
  max-width: 560px;
  margin: 0 auto;
  padding: 2.5rem 2rem;
  text-align: center;
}

.analyze-soon__badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--gold);
  margin-bottom: 0.75rem;
  letter-spacing: 0.04em;
}

.analyze-soon__title {
  font-size: 1.5rem;
  font-weight: 900;
  margin-bottom: 0.75rem;
}

.analyze-soon__text {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.analyze-empty { text-align: center; padding: 3rem; color: var(--muted); grid-column: 1 / -1; }

.analysis-card {
  position: relative;
  padding: 1.5rem;
  transition: var(--transition);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.analysis-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-gold); }

.analysis-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.analysis-card__tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
  background: rgba(212, 175, 55, 0.1);
  color: var(--gold-light);
  margin-bottom: 0;
}

.analysis-card__signal {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--success);
}

.analysis-card__title { font-size: 1.05rem; font-weight: 800; margin-bottom: 0.5rem; }
.analysis-card__title a:hover { color: var(--gold); }
.analysis-card__desc {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
  line-height: 1.7;
  flex: 1;
}
.analysis-card__meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.analysis-card--vip-locked .analysis-card__blur,
.analysis-card--locked .analysis-card__blur {
  filter: blur(10px);
  opacity: 0.4;
  max-height: 100px;
  overflow: hidden;
  pointer-events: none;
}

.vip-hover-tip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  padding: 0.55rem 1rem;
  background: var(--bg-card);
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  white-space: nowrap;
  z-index: 5;
}

.analysis-card--vip-locked:hover .vip-hover-tip { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }

.analysis-card__badge--owned { display: inline-block; font-size: 0.7rem; padding: 0.2rem 0.5rem; background: rgba(74, 222, 128, 0.12); color: var(--success); border-radius: 4px; margin-bottom: 0.5rem; }

.analyze-card__cta { margin-top: 0.75rem; width: 100%; }

/* ─── Single analysis, wallet, dashboard, auth, footer ─── */
.single-analysis { padding: 2rem 0 4rem; }
.single-analysis__inner { max-width: 760px; }
.single-analysis__head { margin-bottom: 1.75rem; }
.single-analysis__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.single-analysis__tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.7rem;
  border-radius: 4px;
  background: rgba(212, 175, 55, 0.12);
  color: var(--gold);
}
.single-analysis__quality {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.3rem 0.65rem;
  border-radius: 4px;
}
.single-analysis__quality--real {
  background: rgba(74, 222, 128, 0.12);
  color: var(--success);
}
.single-analysis__quality--mixed {
  background: rgba(212, 175, 55, 0.14);
  color: var(--gold-light);
}
.single-analysis__quality--synth {
  background: rgba(248, 113, 113, 0.12);
  color: var(--danger);
}
.single-analysis__disclaimer {
  margin: 0 0 1.5rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  border-right: 3px solid var(--gold);
  background: rgba(212, 175, 55, 0.05);
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.7;
}
.single-analysis__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 900;
  margin-bottom: 0.5rem;
}
.single-analysis__meta { color: var(--muted); font-size: 0.88rem; }
.single-analysis__body {
  padding: 0;
  margin-bottom: 2rem;
}
.single-analysis__content.analysis-prose,
.analysis-prose {
  line-height: 1.9;
  font-size: 1rem;
  color: var(--text);
}
.analysis-prose__h {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--gold);
  margin: 1.75rem 0 0.65rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--border);
}
.analysis-prose__h:first-child { margin-top: 0; }
.analysis-prose__p {
  margin: 0 0 0.85rem;
  color: var(--text);
  opacity: 0.92;
}
.single-analysis__foot {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.single-analysis__vip-note {
  font-size: 0.82rem;
  color: var(--muted);
}
.breadcrumb { display: flex; gap: 0.5rem; font-size: 0.85rem; color: var(--muted); margin-bottom: 1.5rem; flex-wrap: wrap; }
.flash { padding: 0.9rem; border-radius: var(--radius); margin-bottom: 1rem; font-size: 0.88rem; }
.flash--success { background: rgba(74, 222, 128, 0.08); color: var(--success); }
.flash--error { background: rgba(248, 113, 113, 0.08); color: var(--danger); }

.wallet-page, .checkout-page { padding: 2rem 0 4rem; min-height: 70vh; }
.wallet-card, .checkout-card { max-width: 480px; margin-inline: auto; padding: 2rem; }

.dashboard { padding: 2rem 0 4rem; }
.dashboard__title { font-size: clamp(1.4rem, 3vw, 1.85rem); font-weight: 900; }
.dashboard__subtitle { color: var(--muted); }
.dashboard-wallet-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.75rem 2rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
  border-color: var(--border-strong);
}

.dashboard-wallet-hero__amount { font-size: 1.75rem; font-weight: 900; color: var(--gold); }
.dashboard__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.dashboard-card { padding: 1.75rem; }
.dashboard-card--vip { border-color: var(--border-strong); }

.auth-page {
  min-height: calc(100vh - var(--navbar-h));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
  background: var(--bg);
}

.auth-card {
  width: min(440px, 100%);
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.auth-card__header { text-align: center; margin-bottom: 1.75rem; }
.auth-card__logo-wrap {
  display: inline-flex;
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
}
.auth-card__title {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.35rem;
}
.auth-card__subtitle { font-size: 0.92rem; color: var(--muted); }

.auth-form__group { margin-bottom: 1.15rem; }
.auth-form__label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gold-light);
  margin-bottom: 0.45rem;
}
.auth-form__input {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg-elevated);
  transition: var(--transition);
}
.auth-form__input::placeholder { color: rgba(161, 161, 161, 0.7); }
.auth-form__input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.18);
}
.auth-form__input--error { border-color: var(--danger); }
.auth-form__error {
  display: block;
  font-size: 0.8rem;
  color: var(--danger);
  margin-top: 0.35rem;
}
.auth-form__submit { width: 100%; margin-top: 0.35rem; }

.auth-card__footer {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.92rem;
  color: var(--muted);
}
.auth-card__link {
  color: var(--gold);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.auth-card__link:hover { color: var(--gold-light); }

.auth-card__signup {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
}
.auth-card__signup-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.85rem;
}

.auth-alert {
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  font-size: 0.88rem;
  margin-bottom: 1.25rem;
}
.auth-alert--error {
  background: rgba(248, 113, 113, 0.1);
  color: var(--danger);
  border: 1px solid rgba(248, 113, 113, 0.25);
}
.auth-alert--success {
  background: rgba(74, 222, 128, 0.1);
  color: var(--success);
  border: 1px solid rgba(74, 222, 128, 0.25);
}

.analyze-group { margin-bottom: 2.5rem; }
.analyze-group__title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--gold);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.footer {
  background: #0a0a0b;
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
  color: var(--muted);
}

.footer::before {
  content: "";
  display: block;
  width: 80px;
  height: 2px;
  background: var(--gold);
  margin: 0 auto 2rem;
  border-radius: 2px;
}

.footer__inner { display: flex; flex-direction: column; align-items: center; gap: 1.25rem; text-align: center; }
.footer__logo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  filter: drop-shadow(0 4px 18px var(--gold-glow));
  transform-origin: center center;
  cursor: pointer;
  display: inline-block;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
@keyframes footer-logo-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.footer__logo.is-spinning {
  animation: footer-logo-spin 0.95s cubic-bezier(0.33, 1.05, 0.48, 1) 1;
}
@media (hover: hover) and (pointer: fine) {
  .footer__brand:hover .footer__logo:not(.is-spinning),
  .footer__logo:hover:not(.is-spinning),
  .footer__logo:focus-visible:not(.is-spinning) {
    animation: footer-logo-spin 0.95s cubic-bezier(0.33, 1.05, 0.48, 1) 1;
  }
}
.footer__tagline { font-size: 0.9rem; }
.footer__hours { font-size: 0.82rem; color: var(--gold-light); }
.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  justify-content: center;
  font-size: 0.88rem;
}
.footer__links a { color: var(--muted); }
.footer__links a:hover { color: var(--gold); }
.footer__disclaimer {
  max-width: 640px;
  font-size: 0.78rem;
  line-height: 1.7;
  color: var(--muted);
  opacity: 0.9;
}
.footer__copy { font-size: 0.8rem; opacity: 0.7; }

/* لوگوی شناور حذف شده — کلاس‌ها برای سازگاری خنثی */
.spin-logo-float { display: none !important; }

.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  z-index: 800;
  width: 56px;
  height: 56px;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 24px rgba(37, 211, 102, 0.4);
  transition: var(--transition);
}

.whatsapp-float svg { width: 28px; height: 28px; }
.whatsapp-float:hover { transform: scale(1.08); }

.page-home.portal-active { overflow: hidden; }
body:not(.has-portal) .gold-portal { display: none; }

.error-page__code {
  font-size: 6rem;
  font-weight: 900;
  color: var(--gold);
  opacity: 0.35;
}

/* ─── Responsive ─── */
@media (max-width: 1024px) {
  .why__grid, .stats-bar__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .hero__inner, .about__inner { grid-template-columns: 1fr; }
  .hero__visual { order: -1; min-height: 220px; }
  .analyses__grid { grid-template-columns: 1fr 1fr; }
  .analyses__cta { grid-template-columns: 1fr; }
  .whatsapp-cta__card { flex-direction: column; text-align: center; }
  .dashboard__grid { grid-template-columns: 1fr; }
  .tools-grid { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding: 1.5rem 0 3rem; }
}

@media (max-width: 640px) {
  :root {
    --navbar-h: 64px;
    --ticker-h: 48px;
  }

  .container {
    width: min(100% - 1.5rem, 1120px);
  }

  .navbar__toggle { display: flex; }
  .navbar__menu {
    position: fixed;
    top: var(--navbar-h);
    right: 0;
    left: 0;
    max-height: calc(100dvh - var(--navbar-h));
    overflow-y: auto;
    flex-direction: column;
    align-items: stretch;
    background: rgba(15, 15, 16, 0.98);
    backdrop-filter: blur(20px);
    padding: 1.25rem 1.25rem calc(1.25rem + env(safe-area-inset-bottom));
    gap: 0.85rem;
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    z-index: 1001;
  }
  .has-ticker .navbar__menu {
    top: calc(var(--navbar-h) + var(--ticker-h));
    max-height: calc(100dvh - var(--navbar-h) - var(--ticker-h));
  }
  .navbar__menu--open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .navbar__brand-text { display: none; }
  .navbar__register { width: 100%; text-align: center; }

  .ticker {
    height: var(--ticker-h);
  }
  /* همه نمادها روی موبایل هم دیده شوند — مارquee رد می‌شود */
  .ticker__item--hide-sm { display: flex; }
  .ticker__group { gap: 1rem; padding: 0 0.85rem; }
  .ticker__item { gap: 0.35rem; padding: 0.25rem 0.4rem; }
  .ticker__status { font-size: 0.65rem; padding: 0.15rem 0.4rem; }
  .ticker__unit { font-size: 0.65rem; }
  .ticker__price { font-size: 0.78rem; }
  .ticker__label { font-size: 0.7rem; }
  .brand-mark { width: 42px; height: 42px; }
  .brand-mark::before { inset: -3px; }

  .hero {
    min-height: auto;
    padding: 1.25rem 0 2.5rem;
  }
  .hero__title { font-size: 1.55rem; }
  .hero__brand { font-size: 1.45rem; }
  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero__actions .btn { width: 100%; }

  .analyses__grid,
  .analyses__grid--public { grid-template-columns: 1fr; }
  .analyses__cta { grid-template-columns: 1fr; }

  .analyze-page,
  .tools-page,
  .method-page,
  .single-analysis,
  .dashboard,
  .faq-page,
  .wallet-page,
  .checkout-page {
    padding-top: 1.25rem !important;
    padding-inline: 0;
  }

  .page-auth .auth-page {
    padding: 1.5rem 0.85rem 2rem;
    align-items: flex-start;
  }

  .analyze-filters__field {
    flex: 1 1 calc(50% - 0.75rem);
    min-width: 0;
  }
  .analyze-filters__field select {
    min-width: 0;
    width: 100%;
  }

  .analysis-card,
  .glass-card,
  .tools-panel,
  .auth-card {
    max-width: 100%;
  }

  .section-head__title { font-size: 1.35rem; }
  .whatsapp-float {
    width: 48px;
    height: 48px;
    bottom: calc(1rem + env(safe-area-inset-bottom));
    left: calc(0.85rem + env(safe-area-inset-left));
  }
  .whatsapp-float svg { width: 24px; height: 24px; }

  .data-stale-banner--fixed {
    top: var(--navbar-h);
    font-size: 0.78rem;
    padding: 0.55rem 0.75rem;
  }
  body.has-ticker .data-stale-banner--fixed {
    top: calc(var(--navbar-h) + var(--ticker-h));
  }

  .footer__links { gap: 0.5rem 0.85rem; }
  .analyze-group__title { font-size: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}

.home-today { padding: 3rem 0 2rem; }
.home-today__more { text-align: center; margin-top: 1.5rem; }

.analysis-card__updated {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  margin: 0.65rem 0 0.85rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(212, 175, 55, 0.14);
  font-size: 0.78rem;
  line-height: 1.45;
}

.analysis-card__updated span {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
}

.analysis-card__updated time {
  color: var(--gold-light);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  direction: ltr;
  unicode-bidi: plaintext;
}

.faq-page { padding: 2rem 0 4rem; }
.faq-page__inner { max-width: 760px; margin: 0 auto; }
.faq-list { display: flex; flex-direction: column; gap: 0.85rem; margin-top: 1.5rem; }
.faq-item { padding: 0; overflow: hidden; }
.faq-item__q {
  list-style: none;
  cursor: pointer;
  padding: 1rem 1.15rem;
  font-weight: 700;
  color: var(--gold-light);
}
.faq-item__q::-webkit-details-marker { display: none; }
.faq-item__a {
  padding: 0 1.15rem 1.15rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.8;
}
.faq-page__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 2rem;
}

.dashboard-quick {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.single-analysis__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ??? Tools / filters / chart / stale ??? */
.data-stale-banner {
  max-width: 920px;
  margin: 0 auto 1.25rem;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(248, 113, 113, 0.35);
  background: rgba(248, 113, 113, 0.08);
  color: #fecaca;
  font-size: 0.88rem;
  text-align: center;
  border-radius: var(--radius);
}
.data-stale-banner--fixed {
  position: sticky;
  top: var(--navbar-h);
  z-index: 700;
  margin: 0;
  border-radius: 0;
  border-left: 0;
  border-right: 0;
}
body.has-ticker .data-stale-banner--fixed {
  top: calc(var(--navbar-h) + var(--ticker-h));
}
.data-stale-banner[hidden] { display: none !important; }

.page-auth .navbar,
.page-wallet .navbar,
.page-checkout .navbar {
  background: rgba(15, 15, 16, 0.92);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
}

.analyze-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: flex-end;
  justify-content: center;
  margin-bottom: 1.75rem;
}
.analyze-filters__field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.78rem;
  color: var(--muted);
}
.analyze-filters__field select {
  min-width: 140px;
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font-family: inherit;
}

.analysis-card__top-end { display: flex; gap: 0.4rem; align-items: center; flex-wrap: wrap; }
.analysis-card__changed {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  background: rgba(248, 113, 113, 0.14);
  color: var(--danger);
}
.analysis-card__archive-badge {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--muted);
}
.analysis-card__horizon {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0.15rem 0 0.55rem;
}
.analysis-card__advice,
.analysis-card__why,
.analysis-card__price {
  font-size: 0.9rem;
  line-height: 1.65;
  margin: 0.35rem 0;
  color: var(--text);
}
.analysis-card__advice span,
.analysis-card__why span,
.analysis-card__price span {
  display: inline-block;
  min-width: 3.2rem;
  color: var(--gold);
  font-weight: 800;
  font-size: 0.78rem;
  margin-inline-end: 0.35rem;
}
.analysis-card__advice { font-weight: 700; }
.analysis-card__price {
  color: var(--gold-light);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}
.analysis-card__hot-badge {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  background: rgba(212, 175, 55, 0.16);
  color: var(--gold-light);
}
.analysis-card--compact .analysis-card__desc { display: none; }
.analysis-card--hot {
  border-color: var(--border-strong);
}
.analyses__grid--today {
  max-width: 960px;
  margin-inline: auto;
}
.analysis-card__signal-line {
  font-size: 0.82rem;
  color: var(--gold-light);
  margin-bottom: 0.5rem;
}

.analysis-chart {
  margin-bottom: 1.75rem;
  padding: 1rem 1rem 0.5rem;
  overflow: hidden;
}
.analysis-chart__head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.analysis-chart__legend {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 600;
}
.analysis-chart__leg {
  display: inline-block;
  width: 14px;
  height: 3px;
  border-radius: 2px;
  margin-inline-end: 0.15rem;
}
.analysis-chart__leg--price { background: #d4af37; }
.analysis-chart__leg--sup { background: #4ade80; }
.analysis-chart__leg--res { background: #f87171; }
.analysis-chart__note {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0 0 0.75rem;
  line-height: 1.6;
}

.tools-page, .method-page {
  padding: 2rem 0 4rem;
}
.tools-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.25rem;
}
.tools-panel { padding: 1.75rem; }
.tools-panel__title {
  font-size: 1.15rem;
  font-weight: 900;
  margin-bottom: 0.5rem;
}
.tools-panel__hint {
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 1.25rem;
}
.tools-panel__hint strong { color: var(--gold); }
.calc-form { display: grid; gap: 0.85rem; }
.calc-form__row {
  display: grid;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: var(--muted);
}
.calc-form__row input,
.calc-form__row select {
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #0c0c0d;
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
}
.calc-form__result {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  color: var(--gold-light);
  font-weight: 700;
  font-size: 0.95rem;
}
.calc-form__note {
  margin-top: 0.75rem;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.6;
}
.market-compare {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}
.market-compare li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
}
.market-compare strong {
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}
.market-compare__ratio {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1rem;
}
.market-compare__ratio strong { color: var(--text); }

.method-page__inner { max-width: 720px; }
.method-steps {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}
.method-steps__item {
  padding: 1.25rem 1.35rem;
}
.method-steps__item strong {
  display: block;
  color: var(--gold);
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}
.method-steps__item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.75;
}
.method-page__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

@media (max-width: 900px) {
  .tools-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .analyze-filters { flex-direction: column; align-items: stretch; }
  .analyze-filters__field select { width: 100%; }
  #analysisSrChart { height: 220px; }
}
