/* ==========================================================================
   VYRO — Welcome screen (post-login intro)
   طبقة عرض فقط: ما تلمس لا المنطق لا بنية الداشبورد.
   ========================================================================== */

#vyroWelcome {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: none;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  color: #f7f2f4;
  background-color: #08070a;
  background-image:
    radial-gradient(ellipse at 88% -6%, rgba(253, 191, 47, 0.26), transparent 42%),
    radial-gradient(ellipse at 6% 62%, rgba(179, 130, 15, 0.2), transparent 46%),
    linear-gradient(150deg, #0a080c 0%, #100b11 46%, #08070a 100%);
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  line-height: 1.6;
}

#vyroWelcome.is-open { display: block; }
html.vyro-welcome-lock, html.vyro-welcome-lock body { overflow: hidden; }

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

#vyroWelcome .vw-wrap {
  width: min(760px, 100% - 32px);
  margin-inline: auto;
  padding: 0 0 96px;
}

#vyroWelcome .vw-top {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  margin-bottom: 8px;
  background: rgba(8, 7, 10, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(253, 191, 47, 0.16);
}

#vyroWelcome .vw-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .12em;
}

#vyroWelcome .vw-brand img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(253, 191, 47, 0.22), 0 8px 20px rgba(253, 191, 47, 0.22);
}

#vyroWelcome .vw-brand b { color: #fdbf2f; }

#vyroWelcome .vw-skip {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.03);
  color: #cfc4c9;
  border-radius: 10px;
  padding: 7px 14px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

#vyroWelcome .vw-skip:hover { color: #fff; border-color: rgba(253, 191, 47, 0.45); }

#vyroWelcome .vw-hero { padding: 18px 0 6px; display: grid; gap: 14px; }
@media (min-width: 780px) { #vyroWelcome .vw-hero { grid-template-columns: 1.1fr .9fr; align-items: center; } }

#vyroWelcome .vw-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  color: #fdbf2f;
  font-size: 12.5px;
  font-weight: 600;
}

#vyroWelcome .vw-eyebrow i {
  width: 22px; height: 2px; border-radius: 2px; background: #fdbf2f; display: inline-block;
}

#vyroWelcome h1 {
  margin: 0;
  font-size: clamp(26px, 6.4vw, 40px);
  line-height: 1.22;
  font-weight: 700;
  letter-spacing: -.02em;
}

#vyroWelcome h1 em { font-style: normal; color: #fdbf2f; }

#vyroWelcome .vw-sub { margin: 12px 0 0; color: #a89ba2; font-size: 14.5px; }

#vyroWelcome .vw-art { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; }
#vyroWelcome .vw-art .vw-halo {
  position: absolute; top: -6px; left: 50%; transform: translateX(-50%);
  width: 240px; height: 240px; border-radius: 50%;
  background: radial-gradient(circle, rgba(253, 191, 47, 0.3), transparent 68%);
  filter: blur(18px);
}
#vyroWelcome .vw-art img {
  position: relative; width: min(58%, 190px);
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.6));
  animation: vw-float 7s ease-in-out infinite;
}
@keyframes vw-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

#vyroWelcome .vw-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px;
}
#vyroWelcome .vw-stat {
  padding: 10px 12px; text-align: center;
  border: 1px solid rgba(253, 191, 47, 0.18);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.03);
}
#vyroWelcome .vw-stat b { display: block; font-size: 15.5px; }
#vyroWelcome .vw-stat span { font-size: 10.5px; color: #a89ba2; }

#vyroWelcome .vw-sec { padding: 26px 0 0; }

#vyroWelcome h2 {
  margin: 0 0 4px;
  font-size: 19px;
  letter-spacing: -.01em;
}

#vyroWelcome .vw-cap { margin: 0 0 14px; color: #a89ba2; font-size: 12.5px; }

#vyroWelcome .vw-steps { display: grid; gap: 8px; }
@media (min-width: 620px) { #vyroWelcome .vw-steps { grid-template-columns: 1fr 1fr; } }

#vyroWelcome .vw-step {
  display: flex; gap: 10px; padding: 12px 13px;
  border: 1px solid rgba(253, 191, 47, 0.16);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
}

#vyroWelcome .vw-step span.n {
  flex: 0 0 auto; height: fit-content;
  padding: 1px 8px; border-radius: 8px;
  border: 1px solid rgba(253, 191, 47, 0.3);
  background: rgba(253, 191, 47, 0.1);
  color: #fdbf2f; font-size: 11.5px; font-weight: 700;
}

#vyroWelcome .vw-step h3 { margin: 0 0 2px; font-size: 13.5px; }
#vyroWelcome .vw-step p { margin: 0; font-size: 12px; color: #a89ba2; }

#vyroWelcome .vw-cards { display: grid; gap: 8px; }
@media (min-width: 620px) { #vyroWelcome .vw-cards { grid-template-columns: 1fr 1fr; } }

#vyroWelcome .vw-card {
  padding: 14px; border: 1px solid rgba(253, 191, 47, 0.16);
  border-radius: 14px; background: rgba(255, 255, 255, 0.02);
}
#vyroWelcome .vw-card h3 { margin: 0 0 6px; font-size: 13.5px; }
#vyroWelcome .vw-card p { margin: 0 0 6px; font-size: 12px; color: #a89ba2; }
#vyroWelcome .vw-card p:last-child { margin-bottom: 0; }
#vyroWelcome .vw-card b { color: #f7f2f4; }

#vyroWelcome .vw-note {
  margin: 18px 0 0; padding: 11px 13px;
  border: 1px dashed rgba(253, 191, 47, 0.28);
  border-radius: 12px;
  color: #a89ba2; font-size: 11.5px; line-height: 1.8;
}

#vyroWelcome .vw-cta {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 4;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(8, 7, 10, 0), rgba(8, 7, 10, 0.96) 42%);
  display: flex;
  justify-content: center;
}

#vyroWelcome .vw-go {
  width: min(760px, 100%);
  min-height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: linear-gradient(100deg, #b3820f, #fdbf2f 55%, #d69c15);
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(253, 191, 47, 0.3);
}

#vyroWelcome .vw-go:hover { filter: brightness(1.07); }

@media (prefers-reduced-motion: reduce) {
  #vyroWelcome .vw-art img { animation: none !important; }
}

/* ===== مدار سماوي حول العملة ===== */
#vyroWelcome .vw-orb {
  position: relative; display: grid; place-items: center;
  width: min(78%, 260px); aspect-ratio: 1; z-index: 0;
}
#vyroWelcome .vw-orb img {
  position: relative; z-index: 2; width: 88%;
  filter: drop-shadow(0 0 18px rgba(253, 191, 47, 0.40)) drop-shadow(0 18px 30px rgba(0, 0, 0, 0.6));
}
#vyroWelcome .vw-ring {
  position: absolute; top: 50%; left: 50%; border: 1px solid rgba(253, 191, 47, 0.28);
  border-radius: 50%; transform: translate(-50%, -50%) rotate(-16deg);
  box-shadow: 0 0 22px rgba(253, 191, 47, 0.10); pointer-events: none;
}
#vyroWelcome .vw-ring--a { width: 100%; height: 38%; animation: vw-ring-breathe 12s ease-in-out infinite; }
#vyroWelcome .vw-ring--b {
  width: 74%; height: 26%; transform: translate(-50%, -50%) rotate(14deg);
  border-color: rgba(253, 191, 47, 0.18); animation: vw-ring-breathe 16s ease-in-out infinite reverse;
}
#vyroWelcome .vw-lane {
  position: absolute; top: 50%; left: 50%; width: 100%; height: 38%;
  transform: translate(-50%, -50%) rotate(-16deg); pointer-events: none;
}
#vyroWelcome .vw-lane--b { width: 74%; height: 26%; transform: translate(-50%, -50%) rotate(14deg); }
#vyroWelcome .vw-track { position: relative; display: block; width: 100%; height: 100%; animation: vw-orbit-spin 24s linear infinite; }
#vyroWelcome .vw-lane--b .vw-track { animation-duration: 32s; animation-direction: reverse; }
#vyroWelcome .vw-dot {
  position: absolute; top: 50%; left: 100%; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px;
  border-radius: 50%; background: #ffd97a; box-shadow: 0 0 10px 3px rgba(253, 191, 47, 0.55);
}
#vyroWelcome .vw-dot--s { width: 5px; height: 5px; background: #fff3cd; box-shadow: 0 0 8px 2px rgba(253, 191, 47, 0.45); }
@keyframes vw-orbit-spin { to { transform: rotate(360deg); } }
@keyframes vw-ring-breathe { 0%, 100% { opacity: .7; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  #vyroWelcome .vw-track, #vyroWelcome .vw-ring { animation: none !important; }
}

/* ==========================================================================
   VYRO — طبقة الجمال (خلفية متحركة + عملة متوهجة + أجهزة + زر premium)
   ========================================================================== */
#vyroWelcome .vw-wrap { position: relative; z-index: 1; padding-bottom: 122px; }

/* ---- الخلفية المتحركة ---- */
#vyroWelcome .vw-bg {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
}
#vyroWelcome .vw-bg::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 40%, transparent 30%, rgba(6, 5, 8, 0.72) 100%);
}
#vyroWelcome .vw-aura {
  position: absolute; border-radius: 50%; opacity: .6;
  will-change: transform; transform: translateZ(0); backface-visibility: hidden;
}
#vyroWelcome .vw-aura--a {
  width: 420px; height: 420px; top: -140px; right: -120px;
  background: radial-gradient(circle, rgba(253, 191, 47, 0.34), transparent 66%);
  animation: vw-drift-a 26s ease-in-out infinite;
}
#vyroWelcome .vw-aura--b {
  width: 340px; height: 340px; bottom: 4%; left: -130px;
  background: radial-gradient(circle, rgba(179, 130, 15, 0.32), transparent 68%);
  animation: vw-drift-b 32s ease-in-out infinite;
}
#vyroWelcome .vw-aura--c {
  width: 300px; height: 300px; top: 46%; left: 46%;
  background: radial-gradient(circle, rgba(253, 191, 47, 0.14), transparent 70%);
  animation: vw-drift-c 40s ease-in-out infinite;
}
@keyframes vw-drift-a { 0%, 100% { transform: translate3d(0, 0, 0) scale(1); } 50% { transform: translate3d(-26px, 34px, 0) scale(1.08); } }
@keyframes vw-drift-b { 0%, 100% { transform: translate3d(0, 0, 0) scale(1.04); } 50% { transform: translate3d(30px, -22px, 0) scale(0.96); } }
@keyframes vw-drift-c { 0%, 100% { transform: translate3d(-50%, -50%, 0) scale(1); } 50% { transform: translate3d(-50%, -50%, 0) scale(1.14); } }

#vyroWelcome .vw-beam {
  position: absolute; top: 50%; left: 50%; width: 150vmax; height: 150vmax;
  will-change: transform; backface-visibility: hidden;
  transform: translate(-50%, -50%);
  background: conic-gradient(from 210deg,
    transparent 0 64%,
    rgba(253, 191, 47, 0.07) 70%,
    rgba(253, 191, 47, 0.13) 73%,
    transparent 79%,
    rgba(253, 191, 47, 0.05) 86%,
    transparent 92%);
  animation: vw-beam-turn 46s linear infinite;
  opacity: .9;
}
@keyframes vw-beam-turn { to { transform: translate(-50%, -50%) rotate(360deg); } }

#vyroWelcome .vw-embers { position: absolute; inset: 0; }
#vyroWelcome .vw-embers i {
  position: absolute; bottom: -12px; width: 3px; height: 3px; border-radius: 50%;
  background: #fdbf2f; box-shadow: 0 0 7px 1px rgba(253, 191, 47, 0.5); opacity: 0;
  animation: vw-rise 18s linear infinite;
}
#vyroWelcome .vw-embers i:nth-child(1) { left: 8%;  animation-duration: 19s; animation-delay: 0s; }
#vyroWelcome .vw-embers i:nth-child(2) { left: 17%; animation-duration: 24s; animation-delay: 3s;  width: 2px; height: 2px; }
#vyroWelcome .vw-embers i:nth-child(3) { left: 26%; animation-duration: 16s; animation-delay: 6s; }
#vyroWelcome .vw-embers i:nth-child(4) { left: 35%; animation-duration: 22s; animation-delay: 1.5s; width: 4px; height: 4px; }
#vyroWelcome .vw-embers i:nth-child(5) { left: 44%; animation-duration: 20s; animation-delay: 8s; }
#vyroWelcome .vw-embers i:nth-child(6) { left: 53%; animation-duration: 26s; animation-delay: 4.5s; width: 2px; height: 2px; }
#vyroWelcome .vw-embers i:nth-child(7) { left: 62%; animation-duration: 17s; animation-delay: 10s; }
#vyroWelcome .vw-embers i:nth-child(8) { left: 71%; animation-duration: 23s; animation-delay: 2s; width: 4px; height: 4px; }
#vyroWelcome .vw-embers i:nth-child(9) { left: 80%; animation-duration: 21s; animation-delay: 7s; }
#vyroWelcome .vw-embers i:nth-child(10){ left: 88%; animation-duration: 18s; animation-delay: 5s;  width: 2px; height: 2px; }
#vyroWelcome .vw-embers i:nth-child(11){ left: 93%; animation-duration: 25s; animation-delay: 11s; }
#vyroWelcome .vw-embers i:nth-child(12){ left: 12%; animation-duration: 27s; animation-delay: 13s; width: 2px; height: 2px; }
@keyframes vw-rise {
  0% { transform: translateY(0) scale(.6); opacity: 0; }
  12% { opacity: .75; }
  70% { opacity: .45; }
  100% { transform: translateY(-92vh) scale(1.1); opacity: 0; }
}

/* ---- الشريط العلوي ---- */
#vyroWelcome .vw-top { background: rgba(8, 7, 10, 0.72); }

/* ---- الهيرو ---- */
#vyroWelcome .vw-hero { position: relative; padding: 10px 0 2px; }
#vyroWelcome .vw-copy { min-width: 0; }
#vyroWelcome h1 {
  margin: 10px 0 0; font-size: clamp(27px, 7.4vw, 42px); line-height: 1.1;
  letter-spacing: -.032em; font-weight: 800;
}
#vyroWelcome h1 em, #vyroWelcome .vw-gold {
  font-style: normal;
  background: linear-gradient(100deg, #fff0bd, #fdbf2f 46%, #c9971f 92%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: #fdbf2f;
}
#vyroWelcome .vw-stat {
  backdrop-filter: blur(8px);
  background: linear-gradient(180deg, rgba(253, 191, 47, 0.07), rgba(255, 255, 255, 0.015));
}
#vyroWelcome .vw-stat b { font-size: 16px; color: #ffe9a8; letter-spacing: -.01em; }

/* ---- صور الأجهزة ---- */
#vyroWelcome .vw-devices {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px;
}
#vyroWelcome .vw-device {
  margin: 0; padding: 8px 4px 7px; border-radius: 14px; display: grid; justify-items: center; gap: 3px;
  border: 1px solid rgba(253, 191, 47, 0.16);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(253, 191, 47, 0.16), transparent 60%),
    rgba(255, 255, 255, 0.02);
  overflow: hidden;
}
#vyroWelcome .vw-device img {
  width: 100%; max-width: 92px; height: auto; display: block;
  filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.55));
  transition: transform .45s ease;
}
#vyroWelcome .vw-device:hover img { transform: translateY(-4px) scale(1.04); }
#vyroWelcome .vw-device figcaption {
  font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: #cbbb95;
}
#vyroWelcome .vw-devices__cap {
  grid-column: 1 / -1; margin: 2px 0 0; text-align: center; font-size: 11px; color: #8f838a;
}

/* ---- الأقسام ---- */
#vyroWelcome h2 {
  display: flex; align-items: center; gap: 9px; font-size: 17px; letter-spacing: -.01em;
}
#vyroWelcome h2::before {
  content: ""; width: 3px; height: 16px; border-radius: 2px;
  background: linear-gradient(180deg, #ffe08a, #c9971f);
}
#vyroWelcome .vw-step, #vyroWelcome .vw-card {
  backdrop-filter: blur(6px);
  transition: border-color .3s ease, transform .3s ease;
}
#vyroWelcome .vw-step:hover, #vyroWelcome .vw-card:hover {
  border-color: rgba(253, 191, 47, 0.4); transform: translateY(-2px);
}

/* ---- زر الدخول ---- */
#vyroWelcome .vw-cta { padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); }
#vyroWelcome .vw-cta__in { width: min(760px, 100%); display: grid; gap: 8px; justify-items: center; }
#vyroWelcome .vw-cta__in p {
  margin: 0; font-size: 10.5px; letter-spacing: .07em; text-transform: uppercase; color: #8f838a;
}
#vyroWelcome .vw-go {
  position: relative; overflow: hidden; color: #1b1405;
  background: linear-gradient(100deg, #c9971f, #ffe08a 46%, #fdbf2f 70%, #b3820f);
  border-color: rgba(255, 240, 200, 0.5);
  box-shadow: 0 14px 34px rgba(253, 191, 47, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
#vyroWelcome .vw-go::after {
  content: ""; position: absolute; top: 0; left: -60%; width: 45%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  transform: skewX(-18deg); animation: vw-sheen 5.5s ease-in-out infinite;
}
@keyframes vw-sheen { 0%, 62% { left: -60%; } 88%, 100% { left: 130%; } }

@media (prefers-reduced-motion: reduce) {
  #vyroWelcome .vw-aura, #vyroWelcome .vw-beam, #vyroWelcome .vw-embers i, #vyroWelcome .vw-go::after,
  #vyroWelcome .vw-track, #vyroWelcome .vw-ring { animation: none !important; }
  #vyroWelcome .vw-embers { display: none; }
}
