/* Hoàng Yang Monochrome Dark + Glassmorphism Design System */

:root {
  --bg-main: #09090b;
  --bg-card: #18181b;
  --border-thin: #27272a;
}

* {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}

::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.16);
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.32);
}

/* Landing Dot Grid & Ambient Glow (transparent base so Three.js WebGL horizon shines through) */
.bg-dot-grid {
  background-color: transparent;
  background-image: radial-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px);
  background-size: 24px 24px;
}

#hero-bg-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
  transform: translate3d(0, 0, 0);
  will-change: transform, opacity;
  opacity: 0;
  transition: opacity 0.35s ease;
}

#hero-bg-vignette,
.hero-video-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.45s ease;
  background: radial-gradient(circle at 50% 45%, rgba(9, 9, 11, 0.08) 0%, rgba(9, 9, 11, 0.55) 100%);
}

#app h1,
#app h2 {
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.85);
}

#three-sparks-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.45s ease;
}

#hero-video-toggle {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 45;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 9999px;
  align-items: center;
  justify-content: center;
  background: rgba(24, 24, 27, 0.62);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(244, 244, 245, 0.88);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.85);
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

#hero-video-toggle:hover {
  background: rgba(39, 39, 42, 0.82);
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
  transform: scale(1.06);
}

#three-horizon-bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.45s ease;
}

#gojo-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.55s ease;
}

.ambient-hero-glow {
  background:
    radial-gradient(ellipse 65% 45% at 50% 0%, rgba(167, 139, 250, 0.14), transparent 70%),
    radial-gradient(ellipse 50% 40% at 75% 25%, rgba(255, 255, 255, 0.08), transparent 70%);
}

/* Built-in Anime / Dark Monochrome Cyber Backdrop */
#bg-video,
.bg-video-layer {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  pointer-events: none;
}

.bg-video-overlay {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.anime-backdrop-default {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 68vw;
  background-image: url('/assets/anime-lobby.png');
  background-size: cover;
  background-position: right center;
  opacity: 0.32;
  mix-blend-mode: lighten;
  pointer-events: none;
}

.anime-lobby-gradient {
  background: linear-gradient(
    90deg,
    rgba(4, 4, 6, 0.90) 0%,
    rgba(4, 4, 6, 0.72) 38%,
    rgba(4, 4, 6, 0.44) 72%,
    rgba(4, 4, 6, 0.20) 100%
  );
}

.login-anime-art {
  background-color: #09090b;
  background-image:
    url('/assets/anime-login.png'),
    linear-gradient(160deg, #18181b 0%, #09090b 100%);
  background-size: cover;
  background-position: center top;
  filter: grayscale(100%) contrast(1.1);
}

.hero-gradient-text {
  background: linear-gradient(180deg, #d4d4d8 0%, #71717a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Crisp 2-Row Opposite Marquee for Activity Showcase */
@keyframes hy-marquee-rev {
  0% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(0);
  }
}

.rpc-marquee-row {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 10%, #000 90%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, #000 10%, #000 90%, transparent 100%);
}

.rpc-marquee-track {
  display: flex;
  gap: 0.875rem;
  width: max-content;
  animation: hy-marquee 34s linear infinite;
}

.rpc-marquee-track-rev {
  display: flex;
  gap: 0.875rem;
  width: max-content;
  animation: hy-marquee-rev 38s linear infinite;
}

.rpc-marquee-row:hover .rpc-marquee-track,
.rpc-marquee-row:hover .rpc-marquee-track-rev {
  animation-play-state: paused;
}

/* Top 2px Scroll Progress Bar */
#scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  z-index: 80;
  pointer-events: none;
  transform-origin: left center;
  transform: scaleX(0);
  background: linear-gradient(90deg, rgba(161, 161, 170, 0.7), #ffffff 60%, #c4b5fd);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.45);
}

/* Lightweight Ambient 3D Particles Canvas */
#ambient-particles {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

/* Hero 3D Real Profile Showcase (perspective 1000px, max 8deg tilt, elastic return) */
.hero-3d-stage {
  perspective: 1000px;
}

@keyframes hy-hero-float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
}

.hero-3d-wrap-left {
  position: relative;
  z-index: 10;
  animation: hy-hero-float 5.2s ease-in-out infinite;
}

.hero-3d-wrap-right {
  position: relative;
  z-index: 10;
  animation: hy-hero-float 5.8s ease-in-out infinite;
  animation-delay: -2.4s;
}

.hero-3d-wrap-left:hover,
.hero-3d-wrap-right:hover {
  animation-play-state: paused;
  z-index: 30;
}

.hero-3d-card {
  position: relative;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  transform: perspective(1000px) rotateX(0deg) rotateY(0deg) scale3d(1, 1, 1);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.28s ease, box-shadow 0.32s ease;
}

.hero-3d-card img {
  image-rendering: -webkit-optimize-contrast;
  backface-visibility: hidden;
  transform: translateZ(0);
}

.hero-3d-yang:hover {
  border-color: rgba(251, 146, 60, 0.65);
  box-shadow:
    0 32px 70px -15px rgba(0, 0, 0, 0.95),
    0 0 32px rgba(249, 115, 22, 0.32),
    0 0 12px rgba(239, 68, 68, 0.25);
}

.hero-3d-nana:hover {
  border-color: rgba(196, 181, 253, 0.7);
  box-shadow:
    0 32px 70px -15px rgba(0, 0, 0, 0.95),
    0 0 32px rgba(192, 132, 252, 0.34),
    0 0 12px rgba(244, 114, 182, 0.22);
}

.hero-3d-glare {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, 0.24), transparent 58%);
}

.hero-3d-card:hover .hero-3d-glare {
  opacity: 1;
}

/* Linear-Style Spotlight Glass Cards */
.spotlight-card {
  position: relative;
  overflow: hidden;
}

.spotlight-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
  background: radial-gradient(
    320px circle at var(--mouse-x, -999px) var(--mouse-y, -999px),
    rgba(255, 255, 255, 0.12),
    transparent 70%
  );
}

.spotlight-card:hover::before {
  opacity: 1;
}

/* Scroll Reveal 3D Rise (perspective + rotateX + 28px slide-up + blur(6px) -> blur(0) + stagger) */
[data-reveal] {
  opacity: 0;
  transform: perspective(1000px) translateY(28px) rotateX(9deg);
  transform-origin: center top;
  filter: blur(6px);
  transition:
    opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0ms),
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0ms),
    filter 0.6s cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0ms);
}

[data-reveal].is-revealed {
  opacity: 1;
  transform: perspective(1000px) translateY(0) rotateX(0deg);
  filter: blur(0);
}

.feature-3d-card {
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  will-change: transform;
}

.feature-3d-card:hover .hero-3d-glare {
  opacity: 0.72;
}

/* ===== Luxury Limertla 1:1 Visual & 3D System (Hoàng Yang) ===== */
#intro-fog-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
  display: block;
  opacity: 0;
  transition: opacity 0.45s ease;
}

.hy-intro-wrapper {
  background: transparent !important;
  background-color: transparent !important;
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
}

.hy-intro-content {
  position: relative;
  z-index: 2;
}

.hy-navbar {
  max-width: 1060px;
  height: 58px;
  border-radius: 9999px;
  background: rgba(12, 13, 18, 0.78);
  backdrop-filter: blur(32px) saturate(200%);
  -webkit-backdrop-filter: blur(32px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.22),
    0 20px 50px -15px rgba(0, 0, 0, 0.85);
}

.hy-nav-track {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 9999px;
  padding: 4px 6px;
}

.hy-hero-section {
  max-width: 1180px;
  margin: 48px auto 36px;
  display: grid;
  grid-template-columns: 1.05fr 1.15fr;
  align-items: center;
  gap: 36px;
  padding: 0 20px;
}

@media (max-width: 1024px) {
  .hy-hero-section {
    grid-template-columns: 1fr;
    margin-top: 28px;
  }
}

.hy-hero-heading {
  font-size: clamp(44px, 5.4vw, 72px);
  font-weight: 800;
  line-height: 1.03;
  letter-spacing: -0.04em;
}

.hy-heading-sky {
  background: linear-gradient(180deg, #f0f9ff 0%, #bae6fd 55%, #7dd3fc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Hero Right 3D Profile Cards Stage (1:1 Limertla Clean Original) */
.hy-cards-stage {
  position: relative;
  height: 510px;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1200px;
  user-select: none;
}

.hy-showcase-card {
  width: 265px;
  border-radius: 18px;
  overflow: hidden;
  position: absolute;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  cursor: pointer;
}

.hy-showcase-card.hy-card-left {
  left: 18px;
  top: 8px;
  width: 258px;
  transform: rotate(-6deg) scale(0.96);
  z-index: 18;
  background: #2b2123;
  border: 1.5px solid rgba(251, 191, 36, 0.45);
  box-shadow:
    0 26px 65px rgba(0, 0, 0, 0.9),
    0 0 28px rgba(244, 114, 182, 0.25);
}

.hy-showcase-card.hy-card-right {
  left: 265px;
  top: 14px;
  width: 266px;
  transform: rotate(4.5deg) scale(1);
  z-index: 22;
  background: #141418;
  border: 1.5px solid rgba(250, 204, 21, 0.42);
  box-shadow:
    0 30px 75px rgba(0, 0, 0, 0.95),
    0 0 32px rgba(250, 204, 21, 0.2);
}

.hy-showcase-card:hover {
  z-index: 30 !important;
  transform: translateY(-12px) scale(1.03) rotate(0deg) !important;
  box-shadow:
    0 30px 70px rgba(0, 0, 0, 0.95),
    0 0 35px rgba(125, 211, 252, 0.3);
}

@media (max-width: 640px) {
  .hy-cards-stage {
    height: auto;
    flex-direction: column;
    gap: 20px;
    padding: 12px 0;
  }
  .hy-showcase-card,
  .hy-showcase-card.hy-card-left,
  .hy-showcase-card.hy-card-right {
    position: relative;
    left: auto;
    top: auto;
    width: 250px;
    transform: none !important;
  }
}

/* Custom Presence Studio: Tilted 3-Column Vertical Marquee (1:1 Limertla) */
.hy-vision-container {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 36px;
  align-items: center;
}

@media (max-width: 1024px) {
  .hy-vision-container {
    grid-template-columns: 1fr;
  }
}

.hy-vision-right {
  position: relative;
  width: 100%;
  height: 520px;
  overflow: hidden;
  border-radius: 16px;
}

.hy-vision-fade-left {
  position: absolute;
  inset: 0 auto 0 0;
  width: 110px;
  z-index: 6;
  pointer-events: none;
  background: linear-gradient(90deg, #000000 0%, transparent 100%);
}

.hy-vision-fade-right {
  position: absolute;
  inset: 0 0 0 auto;
  width: 80px;
  z-index: 6;
  pointer-events: none;
  background: linear-gradient(270deg, #000000 0%, transparent 100%);
}

.hy-vision-fade-top {
  position: absolute;
  inset: 0 0 auto 0;
  height: 70px;
  z-index: 6;
  pointer-events: none;
  background: linear-gradient(180deg, #000000 0%, transparent 100%);
}

.hy-vision-fade-bottom {
  position: absolute;
  inset: auto 0 0 0;
  height: 80px;
  z-index: 6;
  pointer-events: none;
  background: linear-gradient(0deg, #000000 0%, transparent 100%);
}

.hy-vision-grid-stage {
  position: absolute;
  top: -45px;
  left: 20px;
  width: 124%;
  transform: rotate(-9deg) skewX(-2deg);
  transform-origin: center center;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.hy-vision-grid {
  display: flex;
  gap: 16px;
}

.hy-vision-col {
  flex: 1;
  min-width: 230px;
  height: 600px;
  overflow: hidden;
}

.hy-vision-col-track {
  display: flex;
  flex-direction: column;
  gap: 16px;
  will-change: transform;
}

@keyframes hy-col-scroll-up {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-50%);
  }
}

@keyframes hy-col-scroll-down {
  0% {
    transform: translateY(-50%);
  }
  100% {
    transform: translateY(0);
  }
}

.hy-col-up .hy-vision-col-track {
  animation: hy-col-scroll-up 25s linear infinite;
}

.hy-col-down .hy-vision-col-track {
  animation: hy-col-scroll-down 25s linear infinite;
}

.hy-vision-col:hover .hy-vision-col-track {
  animation-play-state: paused;
}

.hy-vision-rpc-card {
  background: rgba(22, 22, 28, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 15px 16px;
  box-shadow:
    0 16px 36px rgba(0, 0, 0, 0.65),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition:
    transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.hy-vision-rpc-card:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow:
    0 22px 48px rgba(0, 0, 0, 0.85),
    0 0 20px rgba(255, 255, 255, 0.08);
}

/* Orbiting Meteor-Border Pill Button (1:1 Limertla) */
@keyframes hy-meteor-spin {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.hy-meteor-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 48px;
  padding: 0 24px;
  border-radius: 9999px !important;
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  overflow: hidden;
  isolation: isolate;
  background: rgba(255, 255, 255, 0.16);
  mask-image: radial-gradient(white, black);
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease;
}

.hy-meteor-btn-secondary {
  background: rgba(255, 255, 255, 0.12);
  color: #e4e4e7;
}

.hy-meteor-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 280px;
  height: 280px;
  background: conic-gradient(
    from 0deg,
    transparent 0deg 315deg,
    rgba(255, 255, 255, 0.2) 335deg,
    rgba(255, 255, 255, 0.65) 352deg,
    #ffffff 360deg
  );
  transform: translate(-50%, -50%) rotate(0deg);
  animation: hy-meteor-spin 3.2s linear infinite;
  z-index: -2;
}

.hy-meteor-btn-secondary::before {
  background: conic-gradient(
    from 140deg,
    transparent 0deg 315deg,
    rgba(255, 255, 255, 0.15) 335deg,
    rgba(255, 255, 255, 0.55) 352deg,
    #ffffff 360deg
  );
  animation-duration: 3.6s;
}

.hy-meteor-btn::after {
  content: '';
  position: absolute;
  inset: 1.5px;
  border-radius: 9999px;
  background: linear-gradient(180deg, #181820 0%, #08080c 100%);
  z-index: -1;
  transition: background 0.3s ease;
}

.hy-meteor-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px -10px rgba(255, 255, 255, 0.24);
}

.hy-meteor-btn:hover::after {
  background: linear-gradient(180deg, #22222d 0%, #0d0d13 100%);
}

/* Numbered Feature Cards (/ 01, / 02, / 03) with Exact Diagonal Sky Sheen */
.hy-feature-card {
  position: relative;
  overflow: hidden;
  background: rgba(18, 19, 24, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  padding: 24px;
  transition: all 0.25s ease;
}

.hy-feature-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 20%, rgba(125, 211, 252, 0.055) 50%, transparent 78%);
  opacity: 0;
  transform: translateX(-12%);
  transition: opacity 0.35s ease, transform 0.55s ease;
}

.hy-feature-card:hover {
  border-color: rgba(125, 211, 252, 0.35);
  transform: translateY(-3px);
}

.hy-feature-card:hover::after {
  opacity: 1;
  transform: translateX(12%);
}

/* Minimal Hairline Accordion FAQ (<details>) */
.hy-faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.hy-faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  transition: color 0.2s ease;
}

.hy-faq-item summary::-webkit-details-marker {
  display: none;
}

.hy-faq-item summary:hover {
  color: #bae6fd;
}

.hy-faq-item .hy-faq-chevron {
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  color: #71717a;
}

.hy-faq-item[open] .hy-faq-chevron {
  transform: rotate(180deg);
  color: #ffffff;
}

.hy-faq-answer {
  padding: 0 0 20px 0;
  font-size: 13.5px;
  line-height: 1.85;
  color: #a1a1aa;
}

/* Smooth Route View Transitions (Gentle Fade, Zero Layout Shift) */
@keyframes hy-view-in {
  from {
    opacity: 0.88;
  }
  to {
    opacity: 1;
  }
}

.view-enter {
  animation: hy-view-in 120ms ease-out both;
}

/* Subtle Lobby Radial Ambient Glow */
.lobby-ambient-glow {
  background:
    radial-gradient(ellipse 55% 40% at 20% 0%, rgba(255, 255, 255, 0.06), transparent 65%),
    radial-gradient(ellipse 45% 35% at 80% 15%, rgba(167, 139, 250, 0.08), transparent 65%);
}

/* Custom Clean Select (no browser blue focus outline) */
.hy-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  outline: none;
}

.hy-select:focus {
  outline: none;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.28);
}

/* Glassmorphism Surfaces */
.glass-panel {
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  background: rgba(9, 9, 11, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-card {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(24, 24, 27, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.glass-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 14px 36px -16px rgba(0, 0, 0, 0.85);
}

/* CTA Shimmer */
.cta-shimmer {
  position: relative;
  overflow: hidden;
}

.cta-shimmer::after {
  content: '';
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: transform 0.65s ease;
}

.cta-shimmer:hover::after {
  transform: translateX(100%);
}

/* Special Status Badges */
.stream-live-badge {
  border-color: rgba(145, 70, 255, 0.65);
  box-shadow: 0 0 18px rgba(145, 70, 255, 0.32);
}

.vip-gradient-text {
  background: linear-gradient(110deg, #fde68a 0%, #f59e0b 35%, #f4f4f5 68%, #fbbf24 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Partner Carousel Infinite Marquee */
@keyframes hy-marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.marquee-wrapper {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.marquee-track {
  display: flex;
  gap: 1.25rem;
  width: max-content;
  animation: hy-marquee 34s linear infinite;
}

.marquee-wrapper:hover .marquee-track {
  animation-play-state: paused;
}

/* Spotify Equalizer Animation */
@keyframes hy-eq {
  0%, 100% { height: 25%; }
  50% { height: 95%; }
}

.eq-bar {
  width: 3px;
  border-radius: 9999px;
  background: #10b981;
  animation: hy-eq 0.9s ease-in-out infinite;
}

.eq-bar:nth-child(2) { animation-delay: 0.2s; }
.eq-bar:nth-child(3) { animation-delay: 0.4s; }
.eq-bar:nth-child(4) { animation-delay: 0.15s; }

/* Modal & View Animations */
@keyframes hy-modal-in {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(6px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-enter {
  animation: hy-modal-in 0.18s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes hy-fade-up {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-up {
  animation: hy-fade-up 0.24s ease-out forwards;
}

/* ===== Trang Đăng nhập — bố cục chia đôi kiểu limertla (Hoàng Yang) ===== */
.hy-login-wrap {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 22px;
  background: #030305;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.hy-login-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.12;
  pointer-events: none;
  z-index: -1;
  background: radial-gradient(circle, #ffffff 0%, rgba(160, 175, 200, 0.6) 40%, transparent 70%);
}

.hy-login-orb-1 {
  width: 520px;
  height: 520px;
  top: -120px;
  left: 12%;
  animation: hyOrbFloat1 18s ease-in-out infinite alternate;
}

.hy-login-orb-2 {
  width: 480px;
  height: 480px;
  bottom: -100px;
  right: 12%;
  animation: hyOrbFloat2 22s ease-in-out infinite alternate;
}

@keyframes hyOrbFloat1 {
  to { transform: translate3d(60px, 40px, 0) scale(1.08); }
}

@keyframes hyOrbFloat2 {
  to { transform: translate3d(-50px, -36px, 0) scale(1.1); }
}

.hy-login-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  -webkit-mask-image: radial-gradient(circle at center, #000 40%, transparent 82%);
  mask-image: radial-gradient(circle at center, #000 40%, transparent 82%);
  animation: hyGridBreathe 8s ease-in-out infinite;
}

@keyframes hyGridBreathe {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 0.95; }
}

@keyframes hyShellIn {
  from { opacity: 0; transform: translateY(18px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.hy-login-shell {
  width: min(100%, 960px);
  min-height: 670px;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  background: #09090d;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  overflow: hidden;
  padding: 8px;
  gap: 8px;
  box-shadow:
    0 35px 100px -15px rgba(0, 0, 0, 0.95),
    0 0 50px -10px rgba(255, 255, 255, 0.04);
  animation: hyShellIn 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  transition: border-color 0.3s ease;
}

.hy-login-shell:hover {
  border-color: rgba(255, 255, 255, 0.18);
}

@media (max-width: 790px) {
  .hy-login-shell {
    grid-template-columns: 1fr;
    max-width: 480px;
    padding: 0;
  }
  .hy-login-story {
    display: none !important;
  }
}

.hy-login-story {
  position: relative;
  background: #030306;
  padding: 34px 36px 26px;
  border-radius: 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow: hidden;
}

.hy-login-story::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background:
    radial-gradient(ellipse 65% 40% at 20% 8%, rgba(56, 189, 248, 0.08), transparent 70%),
    radial-gradient(ellipse 60% 45% at 75% 88%, rgba(168, 85, 247, 0.08), transparent 72%);
}

.hy-login-video-bg {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 68%;
  object-fit: cover;
  object-position: 73% 14%;
  opacity: 0.92;
  mix-blend-mode: lighten;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.72) 18%, #000 38%, #000 84%, rgba(0, 0, 0, 0.35) 100%);
  mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.72) 18%, #000 38%, #000 84%, rgba(0, 0, 0, 0.35) 100%);
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.45s ease, transform 0.6s ease;
}

.hy-login-story:hover .hy-login-video-bg {
  opacity: 1;
  transform: scale(1.02);
}

.hy-login-video-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background:
    linear-gradient(180deg, rgba(3, 3, 6, 0.92) 0%, rgba(3, 3, 6, 0.45) 38%, rgba(3, 3, 6, 0.08) 65%, rgba(3, 3, 6, 0.72) 100%),
    linear-gradient(90deg, rgba(3, 3, 6, 0.45) 0%, transparent 25%, transparent 82%, rgba(3, 3, 6, 0.45) 100%);
}

@keyframes hyMascotLevitate {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes hyMarkPulse {
  0%, 100% { filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.5)); }
  50% { filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.95)); }
}

.hy-login-mark {
  animation: hyMarkPulse 3.5s ease-in-out infinite;
}

.hy-login-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 10.5px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  color: #a1a1aa;
}

.hy-login-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #a1a1aa;
}

.hy-login-kicker::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.9);
}

.hy-login-h {
  font-weight: 750;
  line-height: 1.08;
  letter-spacing: -0.055em;
}

.hy-login-h em {
  font-style: normal;
  background: linear-gradient(180deg, #ffffff 30%, #71717a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hy-login-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  color: #e4e4e7;
}

.hy-login-badge::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.9);
}

.hy-login-card {
  background: #0e0e14;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 22px;
  padding: 30px 38px 24px;
  min-height: 650px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

@media (max-width: 520px) {
  .hy-login-card {
    padding: 28px 20px;
    border: none;
    border-radius: 0;
  }
}

.hy-login-chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  font-size: 11.5px;
  font-weight: 500;
  color: #d4d4d8;
}

@keyframes hyTrialSheen {
  0% { transform: translateX(-120%); }
  60%, 100% { transform: translateX(220%); }
}

.hy-login-trial {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  padding: 14px 16px;
  font-size: 12.5px;
  color: #d4d4d8;
  line-height: 1.55;
}

.hy-login-trial::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 40%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.06), transparent);
  animation: hyTrialSheen 5s ease-in-out infinite;
  pointer-events: none;
}

.hy-login-consent {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  padding: 14px 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  transition: border-color 0.2s ease;
}

.hy-login-consent:hover {
  border-color: rgba(255, 255, 255, 0.16);
}

.hy-login-discord {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 54px;
  padding: 0 24px;
  border-radius: 9999px;
  background: #ffffff !important;
  color: #09090b !important;
  font-weight: 750;
  font-size: 14.5px;
  border: none;
  box-shadow: 0 10px 30px -10px rgba(255, 255, 255, 0.35);
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.2s ease, box-shadow 0.2s ease;
}

.hy-login-discord:hover {
  background: #ececef !important;
  transform: translateY(-1.5px);
  box-shadow: 0 16px 38px -10px rgba(255, 255, 255, 0.45);
}

.hy-login-discord:disabled {
  opacity: 0.72;
  cursor: wait;
}

.hy-login-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding-top: 16px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  color: #71717a;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* ===== Sảnh quản lý — thẻ kính bo 22px + ánh quét chéo (Hoàng Yang) ===== */
.hy-slot-card,
.hy-panel {
  position: relative;
  overflow: hidden;
  background: rgba(18, 19, 24, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  box-shadow: 0 18px 44px -22px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.3s ease, opacity 0.25s ease;
}

.hy-panel {
  border-radius: 26px;
}

.hy-slot-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 20%, rgba(125, 211, 252, 0.055) 50%, transparent 78%);
  opacity: 0;
  transform: translateX(-12%);
  transition: opacity 0.35s ease, transform 0.55s ease;
}

.hy-slot-card:hover {
  border-color: rgba(125, 211, 252, 0.35);
  transform: translateY(-3px);
}

.hy-slot-card:hover::after {
  opacity: 1;
  transform: translateX(12%);
}

/* ===== Dashboard — đồng bộ thẻ kính 22px với trang chủ (Hoàng Yang) ===== */
.hy-dash .glass-card {
  background: rgba(18, 19, 24, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  box-shadow: 0 18px 44px -22px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.3s ease;
}

.hy-dash .glass-card:hover {
  border-color: rgba(125, 211, 252, 0.3);
}

.hy-dash h2,
.hy-dash h3 {
  letter-spacing: -0.02em;
}

/* Video Gojo nền trang chủ: viền mờ của băng chuyền hòa vào nền tối, không đè lên video */
#intro-fog-canvas {
  display: none !important;
}

.hy-vision-fade-left,
.hy-vision-fade-right,
.hy-vision-fade-top,
.hy-vision-fade-bottom {
  display: none;
}

.hy-vision-right {
  -webkit-mask-image: radial-gradient(ellipse 85% 80% at 55% 50%, #000 55%, transparent 100%);
  mask-image: radial-gradient(ellipse 85% 80% at 55% 50%, #000 55%, transparent 100%);
}

/* Inner pages uniform Glassmorphism cards */
.glass-card,
.hy-panel,
.hy-slot-card {
  background: rgba(18, 18, 22, 0.78) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.hy-slot-card:hover {
  border-color: rgba(255, 255, 255, 0.18) !important;
}

/* =========================================================================
   LUXURY INTERACTIVE MOUSE CURSOR SYSTEM (SPOTLIGHT + SPARK TRAIL + RING)
   ========================================================================= */
#hy-cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 520px;
  height: 520px;
  margin-left: -260px;
  margin-top: -260px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.5s ease;
  background: radial-gradient(
    circle,
    rgba(56, 189, 248, 0.16) 0%,
    rgba(168, 85, 247, 0.08) 35%,
    transparent 70%
  );
  mix-blend-mode: screen;
  will-change: transform;
}

#hy-cursor-trail-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 60;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

#hy-cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 6px;
  height: 6px;
  margin-left: -3px;
  margin-top: -3px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.95), 0 0 20px rgba(255, 255, 255, 0.8);
  pointer-events: none;
  z-index: 70;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.15s ease, background-color 0.2s ease;
  will-change: transform;
}

#hy-cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 34px;
  height: 34px;
  margin-left: -17px;
  margin-top: -17px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.42);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.25);
  pointer-events: none;
  z-index: 69;
  opacity: 0;
  transition: opacity 0.3s ease, width 0.25s cubic-bezier(0.22, 1, 0.36, 1), height 0.25s cubic-bezier(0.22, 1, 0.36, 1), margin 0.25s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.25s ease, box-shadow 0.25s ease;
  will-change: transform;
}

/* Hover state on interactive clickable elements */
body.hy-cursor-hover #hy-cursor-ring {
  width: 52px;
  height: 52px;
  margin-left: -26px;
  margin-top: -26px;
  border-color: rgba(56, 189, 248, 0.85);
  background: rgba(56, 189, 248, 0.06);
  box-shadow: 0 0 22px rgba(56, 189, 248, 0.45);
}

body.hy-cursor-hover #hy-cursor-dot {
  transform: scale(0.6);
  background: #38bdf8;
}

/* Hide on touchscreen / mobile devices */
@media (pointer: coarse), (max-width: 768px) {
  #hy-cursor-glow,
  #hy-cursor-trail-canvas,
  #hy-cursor-dot,
  #hy-cursor-ring {
    display: none !important;
  }
}

/* =========================================================================
   LIQUID GLASS MONOCHROME DESIGN SYSTEM (INNER PAGES 1:1 LIMERTLA CLONE)
   ========================================================================= */
.lgm-root {
  min-height: 100vh;
  position: relative;
  background: transparent;
  color: #f4f4f5;
  overflow-x: hidden;
}

.lgm-root::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image:
    radial-gradient(640px circle at 18% 12%, rgba(56, 189, 248, 0.11), transparent 65%),
    radial-gradient(560px circle at 84% 78%, rgba(168, 85, 247, 0.10), transparent 68%),
    linear-gradient(to right, rgba(255, 255, 255, 0.036) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.036) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 32px 32px, 32px 32px;
}

.lgm-topbar {
  height: 64px;
  background: rgba(10, 10, 14, 0.62);
  backdrop-filter: blur(36px) saturate(190%);
  -webkit-backdrop-filter: blur(36px) saturate(190%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 32px -16px rgba(0, 0, 0, 0.85);
}

.lgm-card {
  position: relative;
  overflow: hidden;
  background: rgba(18, 18, 24, 0.56) !important;
  backdrop-filter: blur(34px) saturate(190%) !important;
  -webkit-backdrop-filter: blur(34px) saturate(190%) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  box-shadow:
    inset 0 1px 0 0 rgba(255, 255, 255, 0.28),
    inset 0 -1px 0 0 rgba(255, 255, 255, 0.05),
    0 22px 50px -24px rgba(0, 0, 0, 0.9) !important;
  transition: border-color 0.25s ease, transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease;
}

.lgm-card:hover {
  border-color: rgba(255, 255, 255, 0.28) !important;
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 0 rgba(255, 255, 255, 0.38),
    0 26px 58px -22px rgba(0, 0, 0, 0.95),
    0 0 28px rgba(56, 189, 248, 0.12) !important;
}

.lgm-sidebar {
  background: rgba(12, 12, 16, 0.68);
  backdrop-filter: blur(40px) saturate(190%);
  -webkit-backdrop-filter: blur(40px) saturate(190%);
  border: 1px solid rgba(255, 255, 255, 0.13);
  box-shadow:
    inset 0 1px 0 0 rgba(255, 255, 255, 0.22),
    0 24px 60px -24px rgba(0, 0, 0, 0.92);
}

.lgm-btn-white {
  background: #ffffff;
  color: #050507;
  font-weight: 700;
  border-radius: 9999px;
  transition: transform 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
  box-shadow: 0 6px 20px -6px rgba(255, 255, 255, 0.35);
}

.lgm-btn-white:hover {
  background: #e4e4e7;
  transform: translateY(-1px);
}

.lgm-gold-pill {
  background: rgba(255, 214, 10, 0.11);
  border: 1px solid rgba(255, 214, 10, 0.42);
  color: #fde047;
}

.lgm-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 9999px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 10px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.11);
  color: #e4e4e7;
}

.lgm-drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* Light mode accent override for inner pages */
[data-hy-theme="light"] .lgm-root {
  background-color: #f4f4f8;
  color: #09090b;
}
[data-hy-theme="light"] .lgm-topbar {
  background: rgba(255, 255, 255, 0.85);
  border-bottom-color: rgba(0, 0, 0, 0.08);
  color: #09090b;
}
[data-hy-theme="light"] .lgm-card,
[data-hy-theme="light"] .lgm-sidebar {
  background: rgba(255, 255, 255, 0.78) !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
  color: #09090b;
}
[data-hy-theme="light"] .lgm-root .text-white {
  color: #09090b !important;
}
[data-hy-theme="light"] .lgm-root .text-zinc-300,
[data-hy-theme="light"] .lgm-root .text-zinc-400 {
  color: #52525b !important;
}
[data-hy-theme="light"] .lgm-root .lgm-btn-white {
  background: #09090b;
  color: #ffffff !important;
}


/* =========================================================================
   HOÀNG YANG — CYBER-LIQUID NEON SYSTEM (HARMONIZED ACROSS EVERY DETAIL)
   Cyan #38bdf8 · Violet #a855f7 · Magenta #e879f9 · Emerald #32d74b · Gold #fde047
   ========================================================================= */

:root {
  --hy-neon-cyan: #38bdf8;
  --hy-neon-violet: #a855f7;
  --hy-neon-pink: #e879f9;
  --hy-neon-emerald: #32d74b;
  --hy-neon-gold: #fde047;
  --hy-neon-rose: #ff453a;
}

@keyframes hyNeonPulse {
  0%, 100% {
    box-shadow: 0 0 8px rgba(56, 189, 248, 0.45), 0 0 18px rgba(168, 85, 247, 0.25);
  }
  50% {
    box-shadow: 0 0 14px rgba(56, 189, 248, 0.8), 0 0 30px rgba(168, 85, 247, 0.45);
  }
}

@keyframes hyNeonBarShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* 1. Neon Laser Scroll Progress Bar & Custom Neon Scrollbar */
#scroll-progress-bar {
  background: linear-gradient(90deg, #38bdf8, #a855f7, #e879f9, #38bdf8) !important;
  background-size: 220% 100% !important;
  animation: hyNeonBarShift 4s linear infinite !important;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.9), 0 0 24px rgba(168, 85, 247, 0.65) !important;
}

::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: rgba(9, 9, 13, 0.85);
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.55), rgba(168, 85, 247, 0.65));
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #38bdf8, #c084fc);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.7);
}

/* 2. Tasteful Neon Rim Polish on Landing Interactive Cards & CTAs (Zero Layout Change) */
.hero-3d-card:hover {
  border-color: rgba(56, 189, 248, 0.48) !important;
  box-shadow:
    0 24px 60px -18px rgba(0, 0, 0, 0.92),
    0 0 28px rgba(56, 189, 248, 0.24),
    0 0 56px rgba(168, 85, 247, 0.16) !important;
}

.feature-3d-card:hover {
  border-color: rgba(168, 85, 247, 0.46) !important;
  box-shadow:
    0 22px 54px -18px rgba(0, 0, 0, 0.9),
    0 0 26px rgba(56, 189, 248, 0.2),
    0 0 48px rgba(168, 85, 247, 0.18) !important;
}

.cta-shimmer {
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.22), 0 0 34px rgba(168, 85, 247, 0.16);
}
.cta-shimmer:hover {
  box-shadow: 0 0 26px rgba(56, 189, 248, 0.5), 0 0 52px rgba(168, 85, 247, 0.34) !important;
}

/* 3. Login Page (#/login) — Balanced Cyan / Violet Neon Highlights */
.hy-login-orb-1 {
  background: radial-gradient(circle, rgba(56, 189, 248, 0.75) 0%, rgba(56, 189, 248, 0.2) 45%, transparent 72%) !important;
  opacity: 0.19 !important;
}
.hy-login-orb-2 {
  background: radial-gradient(circle, rgba(168, 85, 247, 0.75) 0%, rgba(232, 121, 249, 0.22) 45%, transparent 72%) !important;
  opacity: 0.19 !important;
}

.hy-login-shell {
  border-color: rgba(56, 189, 248, 0.22) !important;
  box-shadow:
    0 35px 100px -15px rgba(0, 0, 0, 0.96),
    0 0 42px -8px rgba(56, 189, 248, 0.16),
    0 0 72px -12px rgba(168, 85, 247, 0.14),
    inset 0 1px 0 rgba(56, 189, 248, 0.28) !important;
}
.hy-login-shell:hover {
  border-color: rgba(168, 85, 247, 0.36) !important;
  box-shadow:
    0 35px 100px -15px rgba(0, 0, 0, 0.96),
    0 0 52px -6px rgba(56, 189, 248, 0.24),
    0 0 90px -12px rgba(168, 85, 247, 0.22),
    inset 0 1px 0 rgba(56, 189, 248, 0.4) !important;
}

.hy-login-story,
.hy-login-card {
  position: relative;
}
.hy-login-card {
  border-color: rgba(168, 85, 247, 0.18) !important;
  box-shadow: inset 0 1px 0 rgba(56, 189, 248, 0.2), inset 0 0 40px rgba(168, 85, 247, 0.04);
}
.hy-login-card::before,
.hy-login-story::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  background: radial-gradient(
    340px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(56, 189, 248, 0.11),
    rgba(168, 85, 247, 0.05) 45%,
    transparent 72%
  );
  z-index: 1;
}
.hy-login-card:hover::before,
.hy-login-story:hover::after {
  opacity: 1;
}

.hy-login-mark {
  color: #38bdf8 !important;
  filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.9)) drop-shadow(0 0 16px rgba(168, 85, 247, 0.65)) !important;
}
.hy-login-kicker::before {
  background: #38bdf8 !important;
  box-shadow: 0 0 10px #38bdf8, 0 0 20px rgba(56, 189, 248, 0.85) !important;
}
.hy-login-badge::before {
  background: #c084fc !important;
  box-shadow: 0 0 9px #a855f7, 0 0 18px rgba(168, 85, 247, 0.85) !important;
}
.hy-login-badge:hover,
.hy-login-chip:hover,
.hy-login-pill:hover {
  border-color: rgba(56, 189, 248, 0.48) !important;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.24), inset 0 0 10px rgba(56, 189, 248, 0.08);
  color: #f8fafc;
}
.hy-login-h em {
  display: inline-block;
  font-style: normal;
  background: linear-gradient(90deg, #f0f9ff 0%, #7dd3fc 48%, #c084fc 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: transparent !important;
  filter: none !important;
}
.hy-login-trial {
  border-color: rgba(168, 85, 247, 0.28) !important;
  box-shadow: inset 0 1px 0 rgba(56, 189, 248, 0.2), 0 0 20px -6px rgba(168, 85, 247, 0.2);
}
.hy-login-consent {
  border-color: rgba(56, 189, 248, 0.25) !important;
  box-shadow: inset 0 1px 0 rgba(56, 189, 248, 0.18), 0 0 22px -8px rgba(56, 189, 248, 0.25);
}
.hy-login-consent svg {
  filter: drop-shadow(0 0 9px rgba(56, 189, 248, 0.85));
}
.hy-login-discord {
  box-shadow:
    0 0 22px rgba(56, 189, 248, 0.35),
    0 0 42px rgba(168, 85, 247, 0.24) !important;
}
.hy-login-discord:hover {
  box-shadow:
    0 0 28px rgba(56, 189, 248, 0.65),
    0 0 56px rgba(168, 85, 247, 0.42) !important;
}

/* 4. Topbar Neon Beam & Sidebar Active Neon Accent */
.lgm-topbar {
  border-bottom-color: rgba(56, 189, 248, 0.2) !important;
  box-shadow:
    0 12px 34px -16px rgba(0, 0, 0, 0.9),
    0 1px 18px -4px rgba(56, 189, 248, 0.22) !important;
}
.lgm-topbar::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1.5px;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(56, 189, 248, 0.7) 25%,
    rgba(168, 85, 247, 0.8) 50%,
    rgba(232, 121, 249, 0.65) 75%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: hyNeonBarShift 7s ease infinite;
}

.lgm-sidebar {
  border-color: rgba(56, 189, 248, 0.18) !important;
  box-shadow:
    inset 0 1px 0 0 rgba(56, 189, 248, 0.32),
    0 24px 60px -24px rgba(0, 0, 0, 0.94),
    0 0 34px -14px rgba(168, 85, 247, 0.22) !important;
}

.dash-nav-btn {
  position: relative;
  transition: all 0.22s ease !important;
}
.dash-nav-btn:hover {
  border-color: rgba(56, 189, 248, 0.32) !important;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.16), inset 0 0 14px rgba(56, 189, 248, 0.06);
}
.dash-nav-btn[class*="bg-white/15"],
.dash-nav-btn[class*="bg-white/12"],
.dash-nav-btn[class*="bg-white/10"].text-white,
.dash-nav-btn.is-active {
  border-color: rgba(56, 189, 248, 0.45) !important;
  box-shadow:
    inset 3px 0 0 #38bdf8,
    0 0 20px rgba(56, 189, 248, 0.22),
    inset 0 0 18px rgba(168, 85, 247, 0.12) !important;
  text-shadow: 0 0 12px rgba(56, 189, 248, 0.45);
}

/* 5. All Glass Cards (.lgm-card, .quest-card-row) — Top Neon Rim + Mouse Spotlight */
.lgm-card {
  border-color: rgba(148, 163, 184, 0.18) !important;
  box-shadow:
    inset 0 1px 0 0 rgba(56, 189, 248, 0.26),
    inset 0 -1px 0 0 rgba(168, 85, 247, 0.12),
    0 22px 50px -24px rgba(0, 0, 0, 0.92),
    0 0 28px -14px rgba(56, 189, 248, 0.16) !important;
}
.lgm-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.72), rgba(168, 85, 247, 0.72), transparent);
  opacity: 0.75;
  z-index: 2;
}
.lgm-card::after,
.quest-card-row::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.28s ease;
  background: radial-gradient(
    360px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(56, 189, 248, 0.11),
    rgba(168, 85, 247, 0.06) 45%,
    transparent 74%
  );
  z-index: 1;
}
.lgm-card:hover::after,
.quest-card-row:hover::after {
  opacity: 1;
}
.lgm-card:hover {
  border-color: rgba(56, 189, 248, 0.42) !important;
  box-shadow:
    inset 0 1px 0 0 rgba(56, 189, 248, 0.45),
    0 26px 58px -22px rgba(0, 0, 0, 0.96),
    0 0 30px rgba(56, 189, 248, 0.2),
    0 0 54px -10px rgba(168, 85, 247, 0.18) !important;
}

.quest-card-row:hover {
  border-color: rgba(56, 189, 248, 0.45) !important;
  box-shadow: 0 0 26px rgba(56, 189, 248, 0.18), 0 0 42px -12px rgba(168, 85, 247, 0.18);
}

/* Empty & Locked Slot Cards on Lobby */
.empty-slot-trigger:hover {
  border-color: rgba(56, 189, 248, 0.6) !important;
  box-shadow: 0 0 26px rgba(56, 189, 248, 0.2), inset 0 0 20px rgba(56, 189, 248, 0.06);
}
.locked-slot-trigger:hover {
  border-color: rgba(253, 224, 71, 0.55) !important;
  box-shadow: 0 0 26px rgba(253, 224, 71, 0.2), inset 0 0 18px rgba(253, 224, 71, 0.06);
}

/* 6. Buttons, Action Pills, Gold Badges & Chips — Harmonized Neon Glow */
.lgm-btn-white {
  box-shadow:
    0 0 16px rgba(56, 189, 248, 0.24),
    0 6px 20px -6px rgba(255, 255, 255, 0.35) !important;
}
.lgm-btn-white:hover {
  box-shadow:
    0 0 24px rgba(56, 189, 248, 0.55),
    0 0 44px rgba(168, 85, 247, 0.32) !important;
}

.lgm-gold-pill {
  box-shadow: 0 0 16px rgba(253, 224, 71, 0.28), inset 0 0 10px rgba(253, 224, 71, 0.12);
  text-shadow: 0 0 10px rgba(253, 224, 71, 0.55);
}
.lgm-gold-pill:hover {
  box-shadow: 0 0 24px rgba(253, 224, 71, 0.5), inset 0 0 14px rgba(253, 224, 71, 0.2);
}

.lgm-chip {
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.lgm-chip:hover {
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.22);
}

/* Vibrant Gradient & Semantic Action Buttons */
button[class*="from-violet-"]:not(:disabled),
button[class*="from-indigo-"]:not(:disabled),
button[class*="from-fuchsia-"]:not(:disabled) {
  box-shadow: 0 0 18px rgba(168, 85, 247, 0.36), 0 0 32px -6px rgba(232, 121, 249, 0.28);
  transition: transform 0.18s ease, box-shadow 0.22s ease, filter 0.2s ease;
}
button[class*="from-violet-"]:hover:not(:disabled),
button[class*="from-indigo-"]:hover:not(:disabled),
button[class*="from-fuchsia-"]:hover:not(:disabled) {
  box-shadow: 0 0 26px rgba(168, 85, 247, 0.65), 0 0 48px rgba(232, 121, 249, 0.42);
  transform: translateY(-1px);
}

button[class*="bg-emerald-"]:not(:disabled),
button[class*="from-emerald-"]:not(:disabled) {
  box-shadow: 0 0 18px rgba(50, 215, 75, 0.32);
  transition: transform 0.18s ease, box-shadow 0.22s ease;
}
button[class*="bg-emerald-"]:hover:not(:disabled),
button[class*="from-emerald-"]:hover:not(:disabled) {
  box-shadow: 0 0 26px rgba(50, 215, 75, 0.6), 0 0 44px rgba(16, 185, 129, 0.32);
  transform: translateY(-1px);
}

button[class*="bg-rose-"]:hover:not(:disabled),
button[class*="bg-[#ff453a]"]:hover:not(:disabled) {
  box-shadow: 0 0 22px rgba(255, 69, 58, 0.52);
}

/* 7. Live Status Dots, Text Accents, Progress Bars & Terminal Console */
[class*="bg-[#32d74b]"] {
  box-shadow: 0 0 10px rgba(50, 215, 75, 0.85), 0 0 20px rgba(50, 215, 75, 0.42);
}
[class*="text-[#32d74b]"] {
  text-shadow: 0 0 10px rgba(50, 215, 75, 0.48);
}

#quest-live-bar,
#badge-batch-progress-bar {
  background: linear-gradient(90deg, #38bdf8, #a855f7, #32d74b) !important;
  background-size: 200% 100% !important;
  animation: hyNeonBarShift 3.5s linear infinite !important;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.75), 0 0 24px rgba(168, 85, 247, 0.45) !important;
}

#badge-batch-console {
  border-color: rgba(50, 215, 75, 0.35) !important;
  box-shadow:
    inset 0 0 24px rgba(50, 215, 75, 0.08),
    0 0 20px -6px rgba(50, 215, 75, 0.22);
  text-shadow: 0 0 8px rgba(52, 211, 153, 0.42);
}

/* 8. Form Inputs, Selects, Textareas & Voice Toggle Switches */
input[type="text"]:focus,
input[type="url"]:focus,
input[type="number"]:focus,
input[type="password"]:focus,
select:focus,
textarea:focus {
  border-color: rgba(56, 189, 248, 0.78) !important;
  box-shadow:
    0 0 0 3px rgba(56, 189, 248, 0.16),
    0 0 20px rgba(168, 85, 247, 0.24) !important;
  outline: none !important;
}

input[type="checkbox"]:checked {
  filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.8));
}

/* 9. Modals & Floating Toast Notifications */
#modal-root > div > div {
  border-color: rgba(56, 189, 248, 0.32) !important;
  box-shadow:
    0 30px 90px -15px rgba(0, 0, 0, 0.96),
    0 0 42px -8px rgba(56, 189, 248, 0.25),
    0 0 70px -12px rgba(168, 85, 247, 0.2),
    inset 0 1px 0 rgba(56, 189, 248, 0.35) !important;
}

#toast-root > div {
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  box-shadow:
    0 14px 36px -10px rgba(0, 0, 0, 0.85),
    0 0 22px -4px rgba(56, 189, 248, 0.35) !important;
}

/* Keep Light Mode clean and balanced */
[data-hy-theme="light"] .lgm-card::before {
  opacity: 0.45;
}
[data-hy-theme="light"] .lgm-card:hover {
  box-shadow: 0 14px 36px -12px rgba(56, 189, 248, 0.22), 0 0 20px rgba(168, 85, 247, 0.12) !important;
}
[data-hy-theme="light"] [class*="text-[#32d74b]"] {
  text-shadow: none;
}

/* ==========================================================================
   MOBILE & TOUCH RESPONSIVE OPTIMIZATION (iOS Safari / Android Chrome)
   ========================================================================== */
html,
body {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

@media (max-width: 768px) {
  body {
    padding-bottom: env(safe-area-inset-bottom, 16px);
  }

  .lgm-topbar {
    min-height: 58px;
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  .lgm-card {
    border-radius: 20px;
  }

  /* Ensure all modals scroll smoothly on small mobile viewports + on-screen keyboard */
  #modal-root > div {
    align-items: flex-end;
    padding: 10px !important;
  }

  #modal-root > div > div {
    max-height: 88dvh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
  }

  /* Prevent iOS Safari auto-zoom on form inputs */
  input[type="text"],
  input[type="number"],
  input[type="password"],
  input[type="url"],
  input[type="search"],
  select,
  textarea {
    font-size: 16px !important;
  }

  /* Smooth horizontal scrolling for tabs and tables */
  nav,
  .overflow-x-auto {
    -webkit-overflow-scrolling: touch;
  }

  #toast-root {
    bottom: calc(16px + env(safe-area-inset-bottom, 0px)) !important;
    right: 0 !important;
    left: 0 !important;
    max-width: 100% !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
}
