/* ============================================================================
   Vua AOV — Glassmorphic UI (duongmods.com style)
   Fonts: Quicksand + Be Vietnam Pro
   ============================================================================ */

:root {
  --vi-bg:            #ffffff;
  --vi-surface:       rgba(255, 255, 255, 0.72);
  --vi-surface-solid: #ffffff;
  --vi-surface2:      rgba(74, 108, 247, 0.06);
  --vi-border:        rgba(0, 0, 0, 0.07);
  --vi-accent:        #4a6cf7;
  --vi-accent2:       #b983ff;
  --vi-accent-glow:   rgba(74, 108, 247, 0.28);
  --vi-text:          #1a1a2e;
  --vi-text-muted:    #7c8ca8;
  --vi-radius:        22px;
  --vi-shadow-sm:     0 4px 16px rgba(60, 80, 140, 0.08), 0 1px 3px rgba(0, 0, 0, 0.04);
  --vi-shadow-card:   0 16px 44px rgba(60, 80, 140, 0.16), 0 2px 8px rgba(0, 0, 0, 0.04), inset 0 1px 1px rgba(255, 255, 255, 0.95), inset 0 -2px 10px rgba(255, 255, 255, 0.25);
  --vi-nav-bg:        rgba(255, 255, 255, 0.65);
  --vi-modal-bg:      rgba(255, 255, 255, 0.96);
  --vi-danger:        #ef4444;
  --vi-success:       #22c55e;
}

html[data-theme="dark"] {
  --vi-bg:            #030c18;
  --vi-surface:       rgba(10, 20, 40, 0.72);
  --vi-surface-solid: #071120;
  --vi-surface2:      rgba(255, 255, 255, 0.06);
  --vi-border:        rgba(255, 255, 255, 0.09);
  --vi-text:          #eef0f7;
  --vi-text-muted:    #8892aa;
  --vi-shadow-sm:     0 6px 20px rgba(0, 0, 0, 0.45);
  --vi-shadow-card:   0 12px 40px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  --vi-nav-bg:        rgba(3, 12, 24, 0.72);
  --vi-modal-bg:      rgba(7, 17, 32, 0.96);
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Quicksand', 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--vi-bg);
  color: var(--vi-text);
  overflow-x: hidden;
  min-height: 100vh;
  transition: background-color 0.35s ease, color 0.35s ease;
}

html:not([data-theme="dark"]) body {
  background-image:
    radial-gradient(ellipse 70% 55% at 15% 8%, rgba(74, 108, 247, 0.10) 0, transparent 60%),
    radial-gradient(ellipse 55% 45% at 85% 15%, rgba(185, 131, 255, 0.08) 0, transparent 55%),
    radial-gradient(ellipse 60% 40% at 50% 95%, rgba(74, 108, 247, 0.06) 0, transparent 55%),
    radial-gradient(ellipse 40% 35% at 90% 75%, rgba(255, 107, 157, 0.05) 0, transparent 50%);
  background-attachment: fixed;
}

html[data-theme="dark"] body {
  background-image:
    radial-gradient(ellipse 100% 45% at 40% 0, rgba(50, 80, 220, 0.18) 0, transparent 65%),
    radial-gradient(ellipse 70% 35% at 78% 12%, rgba(90, 30, 170, 0.14) 0, transparent 58%),
    radial-gradient(ellipse 50% 30% at 10% 60%, rgba(30, 90, 180, 0.10) 0, transparent 52%),
    radial-gradient(ellipse 40% 25% at 85% 75%, rgba(60, 20, 140, 0.09) 0, transparent 50%);
  background-attachment: fixed;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(74, 108, 247, 0.35); border-radius: 99px; }

/* ===== AMBIENT SNOW & NIGHT SKY ===== */
#snowLayer {
  position: fixed; inset: 0; z-index: 4500; overflow: hidden;
  pointer-events: none; user-select: none;
}
html[data-theme="dark"] #snowLayer { display: none !important; }
.snowflake {
  position: absolute; top: -24px; left: var(--left);
  width: var(--size); height: var(--size); border-radius: 50%;
  opacity: var(--opacity);
  background: radial-gradient(circle at 35% 35%, #ffffff 0%, #93c5fd 54%, rgba(74, 108, 247, 0.78) 100%);
  box-shadow: 0 0 8px rgba(74, 108, 247, 0.35), 0 0 2px rgba(255, 255, 255, 0.95);
  animation: snowFall var(--duration) linear var(--delay) infinite;
}
@keyframes snowFall {
  0%   { transform: translate3d(0, -5vh, 0) rotate(0deg); }
  50%  { transform: translate3d(var(--drift), 52vh, 0) rotate(180deg); }
  100% { transform: translate3d(0, 108vh, 0) rotate(360deg); }
}

#nightSky { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; display: none; }
html[data-theme="dark"] #nightSky { display: block; }
#nightSky .sky-star {
  position: absolute; width: var(--size); height: var(--size); border-radius: 50%;
  background: var(--color); opacity: var(--opacity);
  box-shadow: 0 0 calc(var(--size) * 2.2) var(--color);
  animation: skyTwinkle var(--duration) ease-in-out var(--delay) infinite;
}
#nightSky .sky-meteor {
  position: absolute; height: 2px; width: var(--tail); border-radius: 999px;
  background: linear-gradient(to right, #fff 0, rgba(180, 210, 255, 0.58) 55%, transparent 100%);
  filter: drop-shadow(0 0 4px rgba(160, 200, 255, 0.92));
  transform: rotate(var(--angle)); transform-origin: right center;
  animation: skyMeteor var(--meteor-duration) ease-out forwards;
}
#nightSky .sky-dust {
  position: absolute; width: 3px; height: 3px; border-radius: 50%;
  background: #a8d8ff; box-shadow: 0 0 10px #a8d8ff; opacity: 0.35;
  animation: skyFloat var(--float-duration) ease-in-out var(--float-delay) infinite alternate;
}
@keyframes skyTwinkle { 0%, 100% { opacity: var(--opacity); transform: scale(1); } 40% { opacity: 0.14; transform: scale(0.45); } }
@keyframes skyMeteor { 0% { transform: rotate(var(--angle)) translateX(0); opacity: 0; } 7% { opacity: 1; } 80% { opacity: 0.8; } 100% { transform: rotate(var(--angle)) translateX(-1150px); opacity: 0; } }
@keyframes skyFloat { from { transform: translate3d(0, 0, 0) scale(0.7); } to { transform: translate3d(35px, -45px, 0) scale(1.35); } }

/* ============================================================================
   TOP GLASS NAVBAR (60px fixed)
   ============================================================================ */
.dm-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 60px;
  padding: 0 20px;
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--vi-nav-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--vi-border);
  box-shadow: var(--vi-shadow-sm);
}

.dm-nav-left,
.dm-nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dm-nav-icon {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  transition: transform 0.18s ease, background 0.18s ease;
}
.dm-nav-icon:hover {
  background: var(--vi-surface2);
  transform: translateY(-1px);
}

.bell-btn { color: var(--vi-accent); }
.dm-bell-dot {
  position: absolute;
  top: 7px; right: 7px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff8a8a, #ef4444);
  box-shadow: 0 0 0 2px var(--vi-surface-solid);
  animation: bellPulse 1.8s infinite;
}
@keyframes bellPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.25); opacity: 0.78; }
}

.music-nav-btn {
  color: var(--vi-accent);
  font-size: 18px;
}
.music-nav-btn.playing {
  background: rgba(74, 108, 247, 0.14);
  color: var(--vi-accent2);
  animation: navMusicPulse 1.4s ease-in-out infinite;
}
@keyframes navMusicPulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.1); }
}

.theme-nav-btn {
  color: #ff9f0a;
  filter: drop-shadow(0 0 6px rgba(255, 159, 10, 0.38));
}
html[data-theme="dark"] .music-nav-btn {
  color: var(--vi-accent);
  font-size: 18px;
}
.music-nav-btn.playing {
  background: rgba(74, 108, 247, 0.14);
  color: var(--vi-accent2);
  animation: navMusicPulse 1.4s ease-in-out infinite;
}
@keyframes navMusicPulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.1); }
}

.theme-nav-btn {
  color: #a5b4fc;
  filter: drop-shadow(0 0 6px rgba(165, 180, 252, 0.38));
}

.menu-nav-btn {
  color: var(--vi-text);
  font-size: 22px;
}

/* ============================================================================
   SLIDE-IN DRAWER
   ============================================================================ */
#menuOverlay {
  position: fixed; inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
  z-index: 6900;
  opacity: 0; visibility: hidden;
  transition: 0.25s ease;
}
#menuOverlay.open { opacity: 1; visibility: visible; }

#sideNav {
  position: fixed;
  top: 0; right: -300px;
  width: 280px; height: 100vh;
  background: var(--vi-modal-bg);
  backdrop-filter: blur(24px) saturate(180%);
  border-left: 1px solid var(--vi-border);
  box-shadow: -12px 0 36px rgba(15, 23, 42, 0.16);
  z-index: 7000;
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: right 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
#sideNav.open { right: 0; }

.nav-header {
  display: flex; align-items: center; gap: 12px;
  padding-right: 34px;
}
.nav-avatar {
  width: 46px; height: 46px; border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(74, 108, 247, 0.45);
}
.nav-name { font-size: 16px; font-weight: 800; color: var(--vi-text); }
.nav-role { font-size: 12px; font-weight: 600; color: var(--vi-text-muted); line-height: 1.3; }

.nav-close {
  position: absolute; top: 20px; right: 16px;
  width: 32px; height: 32px; border-radius: 10px;
  background: var(--vi-surface2);
  display: flex; align-items: center; justify-content: center;
  color: var(--vi-text-muted); font-size: 15px;
  transition: 0.2s;
}
.nav-close:hover { background: rgba(239, 68, 68, 0.15); color: var(--vi-danger); }

.clock-widget {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px;
  border-radius: 14px;
  background: var(--vi-surface2);
  border: 1px solid var(--vi-border);
}
.clock-period-icon { font-size: 15px; color: var(--vi-accent); }
.clock-time { font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; }
.clock-greeting { font-size: 12px; font-weight: 600; color: var(--vi-text-muted); margin-left: auto; }

.nav-links {
  list-style: none;
  display: flex; flex-direction: column; gap: 6px;
  flex: 1; overflow-y: auto;
}
.menu-link {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 12px;
  border-radius: 14px;
  font-size: 14px; font-weight: 700;
  color: var(--vi-text);
  transition: 0.2s;
}
.menu-link i { font-size: 16px; color: var(--vi-accent); }
.menu-link:hover {
  background: rgba(74, 108, 247, 0.12);
  color: var(--vi-accent);
}

.nav-footer { padding-top: 8px; border-top: 1px solid var(--vi-border); }
.theme-btn {
  width: 100%;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(74, 108, 247, 0.12), rgba(185, 131, 255, 0.14));
  border: 1px solid rgba(74, 108, 247, 0.28);
  font-size: 13.5px; font-weight: 700; color: var(--vi-accent);
  transition: 0.2s;
}
.theme-btn:hover { background: linear-gradient(135deg, var(--vi-accent), var(--vi-accent2)); color: #fff; }

/* ============================================================================
   MAIN WRAPPER & HERO BIO
   ============================================================================ */
.dm-main {
  position: relative;
  z-index: 1;
  padding-top: 60px;
}

.hero {
  position: relative;
  padding: 42px 20px 22px;
  text-align: center;
}
.hero-bg { display: none; }

.hero-content {
  max-width: 560px;
  margin: 0 auto;
}

.avatar-wrap {
  position: relative;
  width: 120px; height: 120px;
  margin: 0 auto 18px;
  border-radius: 50%;
  overflow: visible;
}
.avatar-wrap.animated-ring:not(.has-frame) {
  width: 132px; height: 132px;
}
.avatar-wrap.animated-ring:not(.has-frame)::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--vi-accent), var(--vi-accent2), #38bdf8, #ff6b9d, var(--vi-accent));
  animation: avatarRingSpin 3.2s linear infinite;
  box-shadow: 0 0 26px rgba(74, 108, 247, 0.35), 0 0 42px rgba(185, 131, 255, 0.22);
  z-index: 0;
}
.avatar-wrap.animated-ring:not(.has-frame)::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--vi-bg);
  z-index: 1;
}
@keyframes avatarRingSpin {
  to { transform: rotate(360deg); }
}

.hero-avatar {
  position: absolute; top: 50%; left: 50%;
  width: 120px; height: 120px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 32px rgba(74, 108, 247, 0.22);
  z-index: 2;
}
.avatar-wrap.animated-ring:not(.has-frame) .hero-avatar {
  width: 118px; height: 118px;
  border: 0;
  box-shadow: none;
}
html[data-theme="dark"] .hero-avatar {
  border-color: rgba(165, 180, 252, 0.35);
}
.avatar-wrap.has-frame .hero-avatar {
  width: 102px; height: 102px;
  border: 0;
}
.avatar-frame {
  position: absolute; top: 50%; left: 50%;
  width: 144px; height: 144px;
  transform: translate(-50%, -50%);
  object-fit: contain; pointer-events: none; z-index: 4;
}
.avatar-wrap.has-frame.animated-ring .avatar-frame {
  animation: avatarFramePulse 3s ease-in-out infinite;
}
@keyframes avatarFramePulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); filter: drop-shadow(0 0 8px rgba(74, 108, 247, 0.28)); }
  50%      { transform: translate(-50%, -50%) scale(1.035); filter: drop-shadow(0 0 18px rgba(185, 131, 255, 0.45)); }
}

.hero-badge {
  display: inline-flex; align-items: center;
  font-size: 11px; font-weight: 700; letter-spacing: 0.6px;
  color: var(--vi-accent);
  background: rgba(74, 108, 247, 0.10);
  border: 1px solid rgba(74, 108, 247, 0.24);
  padding: 3px 12px; border-radius: 999px;
  margin-bottom: 10px;
}

.hero-sub {
  font-size: 15px; font-weight: 600;
  color: var(--vi-text-muted);
  margin-bottom: 4px;
}

.hero-name {
  font-size: 27px; font-weight: 800;
  letter-spacing: -0.4px;
  line-height: 1.2;
  color: var(--vi-text);
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  flex-wrap: wrap;
}
.verify-badge {
  width: 26px; height: 26px;
  object-fit: contain;
  flex-shrink: 0;
}

.hero-typed {
  margin-top: 8px;
  font-size: 18px; font-weight: 600;
  color: var(--vi-text);
  min-height: 28px;
}
.hero-typed-prefix {
  color: var(--vi-text);
  margin-right: 4px;
}
.hero-typed-accent {
  font-weight: 800;
  background: linear-gradient(135deg, var(--vi-accent), var(--vi-accent2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.typed-cursor {
  color: var(--vi-accent);
  font-weight: 700;
  animation: typedBlink 0.75s infinite;
}
@keyframes typedBlink { 50% { opacity: 0; } }

/* ============================================================================
   SOCIAL SQUIRCLE TILES + LINKBOX STACK
   ============================================================================ */
.quick-section {
  padding: 0 16px 26px;
  max-width: 672px;
  margin: 0 auto;
}

.socials {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.social-tile {
  position: relative;
  width: 64px; height: 64px;
  padding: 11px;
  border-radius: 20px;
  overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.78) 0, rgba(255, 255, 255, 0.36) 55%, rgba(255, 255, 255, 0.18) 100%);
  backdrop-filter: blur(18px) saturate(200%) brightness(1.06);
  -webkit-backdrop-filter: blur(18px) saturate(200%) brightness(1.06);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 6px 20px rgba(60, 80, 140, 0.14), 0 1px 3px rgba(0, 0, 0, 0.05), inset 0 1px 1px rgba(255, 255, 255, 0.95), inset 0 -2px 6px rgba(255, 255, 255, 0.18);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.social-tile::before {
  content: "";
  position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.52) 0, rgba(255, 255, 255, 0.04) 45%, transparent 100%);
  pointer-events: none; z-index: 1;
}
.social-tile::after {
  content: "";
  position: absolute; top: -20%; left: -120%;
  width: 65%; height: 140%;
  background: linear-gradient(110deg, transparent 15%, rgba(255, 255, 255, 0.72) 50%, transparent 85%);
  transform: skewX(-18deg);
  pointer-events: none; z-index: 4;
  animation: socialShimmer 3.2s ease-in-out var(--tile-delay, 0s) infinite;
}
@keyframes socialShimmer {
  0%, 55% { left: -120%; opacity: 0; }
  62%     { opacity: 0.9; }
  88%     { left: 145%; opacity: 0; }
  100%    { left: 145%; opacity: 0; }
}

.social-badge-inner {
  position: relative;
  width: 40px; height: 40px;
  border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 21px; color: #fff;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.18), inset 0 1px 1px rgba(255, 255, 255, 0.45);
  animation: badgeGlowPulse 2.8s ease-in-out var(--tile-delay, 0s) infinite;
}
@keyframes badgeGlowPulse {
  0%, 100% { transform: scale(1); filter: brightness(1); }
  50%      { transform: scale(1.04); filter: brightness(1.1); }
}

.tile-sparkle {
  position: absolute;
  width: 12px; height: 12px;
  pointer-events: none;
  z-index: 5;
  background: linear-gradient(135deg, #fde68a 0%, #60a5fa 55%, #b983ff 100%);
  clip-path: polygon(50% 0%, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0% 50%, 38% 38%);
  filter: drop-shadow(0 0 4px rgba(74, 108, 247, 0.72));
  animation: sparkleTwinkle 2.1s ease-in-out var(--tile-delay, 0s) infinite;
}
html[data-theme="dark"] .tile-sparkle {
  background: #ffffff;
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.95));
}
.tile-sparkle.s1 { top: 5px; right: 6px; }
.tile-sparkle.s2 { bottom: 5px; left: 6px; width: 9px; height: 9px; animation-delay: calc(var(--tile-delay, 0s) + 1.05s); }
@keyframes sparkleTwinkle {
  0%, 100% { transform: scale(0.25) rotate(0deg); opacity: 0.25; }
  50%      { transform: scale(1.15) rotate(45deg); opacity: 1; }
}

.social-tile:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 14px 30px rgba(74, 108, 247, 0.24), inset 0 1px 1px rgba(255, 255, 255, 0.95);
}
html[data-theme="dark"] .social-tile {
  background: linear-gradient(155deg, rgba(20, 32, 60, 0.85) 0, rgba(10, 18, 36, 0.78) 100%);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
html[data-theme="dark"] .social-tile::before { opacity: 0.18; }

.social-tile.tiktok .social-badge-inner {
  background: linear-gradient(145deg, #171923, #07080d);
  box-shadow: 0 4px 14px rgba(37, 244, 238, 0.28), 0 2px 8px rgba(254, 44, 85, 0.24);
}
.social-tile.tele .social-badge-inner {
  background: linear-gradient(145deg, #38bdf8, #0284c7);
  box-shadow: 0 4px 14px rgba(29, 155, 240, 0.42);
}
.social-tile.yt .social-badge-inner {
  background: linear-gradient(145deg, #ff4b4b, #dc2626);
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.42);
}
.social-tile.discord .social-badge-inner {
  background: linear-gradient(145deg, #7289da, #5865f2);
}
.social-tile.fb .social-badge-inner {
  background: linear-gradient(145deg, #3b82f6, #1877f2);
}
.social-tile.zalo .social-badge-inner {
  background: linear-gradient(145deg, #38bdf8, #0068ff);
}

/* LinkBox Stack */
.quick-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 640px;
  margin: 0 auto;
}

.quick-card {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px;
  min-height: 74px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 18px;
  box-shadow: 0 6px 18px rgba(60, 80, 140, 0.09), 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}
.quick-card:hover {
  transform: translateY(-3px);
  background: #ffffff;
  box-shadow: 0 14px 32px rgba(74, 108, 247, 0.16), 0 2px 6px rgba(0, 0, 0, 0.05);
}
html[data-theme="dark"] .quick-card {
  background: rgba(7, 16, 34, 0.86);
  border-color: rgba(255, 255, 255, 0.10);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}
html[data-theme="dark"] .quick-card:hover {
  background: rgba(12, 24, 48, 0.96);
  border-color: rgba(129, 140, 248, 0.35);
}

.qc-icon {
  width: 46px; height: 46px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: #ffffff;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.14);
}
.qc-icon.shop { background: linear-gradient(135deg, #16a34a, #15803d); }
.qc-icon.tg   { background: linear-gradient(135deg, #38bdf8, #1d9bf0); }
.qc-icon.vid  { background: linear-gradient(135deg, #ef4444, #b91c1c); }

.qc-text { flex: 1; min-width: 0; }
.qc-text strong {
  display: block;
  font-size: 16px; font-weight: 800;
  color: var(--vi-text);
  line-height: 1.25;
}
.qc-text span {
  display: block;
  font-size: 12.5px; font-weight: 600;
  color: var(--vi-text-muted);
  margin-top: 2px;
}
.qc-arrow {
  color: var(--vi-text-muted);
  font-size: 17px;
  transition: transform 0.2s ease, color 0.2s ease;
}
.quick-card:hover .qc-arrow {
  transform: translateX(3px);
  color: var(--vi-accent);
}

/* ============================================================================
   CONTENT SECTIONS & HEADERS
   ============================================================================ */
.content-section {
  padding: 12px 16px 28px;
  max-width: 1052px;
  margin: 0 auto;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
#games .section-head { display: none; }

.section-label {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  color: var(--vi-accent);
  background: rgba(74, 108, 247, 0.10);
  border: 1px solid rgba(74, 108, 247, 0.22);
  padding: 5px 13px; border-radius: 999px;
}

.section-title {
  font-size: 20px; font-weight: 800;
  color: var(--vi-text);
}

/* ============================================================================
   GAME MODS GRID — DUONGMODS 3-COLUMN GLASSMORPHIC CARDS
   ============================================================================ */
.game-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 640px) {
  .game-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
}
@media (min-width: 900px) {
  .game-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}

.game-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--vi-radius);
  overflow: hidden;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.88) 0, rgba(255, 255, 255, 0.74) 55%, rgba(255, 255, 255, 0.80) 100%);
  backdrop-filter: blur(28px) saturate(190%) brightness(1.04);
  -webkit-backdrop-filter: blur(28px) saturate(190%) brightness(1.04);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: var(--vi-shadow-card);
  transition: transform 0.26s ease, box-shadow 0.26s ease;
}
.game-card::before {
  content: "";
  position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.4) 0, rgba(255, 255, 255, 0.06) 26%, rgba(255, 255, 255, 0) 48%);
  pointer-events: none; z-index: 3;
}
.game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 52px rgba(74, 108, 247, 0.20), 0 4px 12px rgba(0, 0, 0, 0.05), inset 0 1px 1px rgba(255, 255, 255, 0.95);
}
html[data-theme="dark"] .game-card {
  background: rgba(3, 10, 22, 0.88);
  border-color: rgba(255, 255, 255, 0.10);
  box-shadow: var(--vi-shadow-card);
}
html[data-theme="dark"] .game-card::before {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0, transparent 35%);
}

/* 16:9 Top Banner */
.game-banner {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  cursor: pointer;
  background: #0f172a;
}
.game-banner-img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.game-card:hover .game-banner-img { transform: scale(1.03); }

.game-banner-fallback {
  position: relative;
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 8px; padding: 16px;
  overflow: hidden;
}
.game-banner-fallback.ios {
  background: radial-gradient(circle at 20% 20%, rgba(185, 131, 255, 0.42), transparent 55%),
              linear-gradient(135deg, #161b33 0%, #242e61 55%, #372963 100%);
}
.game-banner-fallback.android {
  background: radial-gradient(circle at 20% 20%, rgba(74, 222, 128, 0.32), transparent 55%),
              linear-gradient(135deg, #0d211b 0%, #143d2c 55%, #194d3b 100%);
}
.banner-orb {
  position: absolute;
  width: 180px; height: 180px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.18), transparent 68%);
  top: -60px; right: -40px;
}
.banner-wm-icon {
  font-size: 36px;
  color: rgba(255, 255, 255, 0.9);
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.35));
}
.banner-wm-text {
  font-size: 12px; font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
  padding: 4px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
}

.game-banner-badges {
  position: absolute;
  top: 10px; right: 10px;
  display: flex; align-items: center; gap: 6px;
  z-index: 2;
}

.platform-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px; font-weight: 700;
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
}
.platform-badge.ios {
  background: rgba(25, 20, 42, 0.56);
  color: #ffffff;
  border: 1px solid rgba(220, 170, 255, 0.38);
}
.platform-badge.android {
  background: rgba(16, 56, 30, 0.62);
  color: #4ade80;
  border: 1px solid rgba(120, 255, 170, 0.35);
}

.game-preview-pill {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 9px; border-radius: 999px;
  font-size: 11px; font-weight: 700;
  background: rgba(15, 23, 42, 0.55);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(12px);
  transition: 0.2s;
}
.game-preview-pill:hover { background: rgba(74, 108, 247, 0.85); color: #fff; }

/* Overlapping 78x78 Icon + Title */
.game-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 0 18px;
  position: relative;
  z-index: 2;
}

.game-icon-box {
  position: relative;
  width: 78px; height: 78px;
  margin-top: -34px;
  flex-shrink: 0;
  border-radius: 18px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.22);
  background: var(--vi-surface-solid);
}
.game-icon-box::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.32) 0, transparent 48%);
  pointer-events: none;
}
html[data-theme="dark"] .game-icon-box {
  border-color: rgba(255, 255, 255, 0.18);
}

.game-thumb {
  width: 100%; height: 100%;
  object-fit: cover;
}
.game-thumb-fallback {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; color: #fff;
}
.game-thumb-fallback.ios {
  background: linear-gradient(135deg, var(--vi-accent), var(--vi-accent2));
}
.game-thumb-fallback.android {
  background: linear-gradient(135deg, #16a34a, #059669);
}

.game-info {
  flex: 1;
  min-width: 0;
  padding-top: 10px;
}
.game-name {
  font-size: 15.5px; font-weight: 700;
  line-height: 1.3;
  color: var(--vi-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.game-meta {
  font-size: 13px;
  font-style: italic;
  font-weight: 600;
  color: var(--vi-text-muted);
  margin-top: 3px;
  line-height: 1.35;
}

/* Action Row: Tải Xuống + Get Key */
.game-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px 18px;
  margin-top: auto;
  position: relative;
  z-index: 2;
}

.game-btn-dl {
  flex: 1;
  height: 45px;
  padding: 0 18px;
  border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: linear-gradient(135deg, var(--vi-accent), var(--vi-accent2));
  color: #ffffff;
  font-size: 14px; font-weight: 700;
  box-shadow: 0 8px 20px rgba(74, 108, 247, 0.30);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.game-btn-dl:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(74, 108, 247, 0.42);
}

.game-btn-key {
  height: 45px;
  padding: 0 16px;
  border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: rgba(74, 108, 247, 0.12);
  border: 1px solid rgba(150, 175, 255, 0.4);
  backdrop-filter: blur(14px) saturate(180%);
  color: var(--vi-accent);
  font-size: 14px; font-weight: 700;
  white-space: nowrap;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.game-btn-key:hover {
  transform: translateY(-2px);
  background: rgba(74, 108, 247, 0.22);
}
html[data-theme="dark"] .game-btn-key {
  color: #a5b4fc;
  background: rgba(74, 108, 247, 0.16);
  border-color: rgba(129, 140, 248, 0.35);
}

/* Optional Extra Links inside Card */
.game-extras {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0 18px 16px;
  position: relative;
  z-index: 2;
}
.game-extra-link {
  display: block;
  width: 100%;
  text-align: left;
  padding: 8px 12px;
  border-radius: 12px;
  background: var(--vi-surface2);
  border: 1px solid var(--vi-border);
  font-size: 12px; font-weight: 700;
  color: var(--vi-accent);
  line-height: 1.35;
  transition: 0.2s;
}
.game-extra-link:hover {
  background: rgba(74, 108, 247, 0.14);
}
.game-extra-link.muted {
  color: var(--vi-text-muted);
}

/* ============================================================================
   MUSIC PLAYER CARD (FIXED BOTTOM-LEFT WIDGET)
   ============================================================================ */
.music-section {
  padding: 0;
  margin: 0;
}

.music-card {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 6400;
  pointer-events: auto;
  width: 348px;
  max-width: calc(100vw - 102px);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 20px;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.90) 0, rgba(255, 255, 255, 0.78) 55%, rgba(255, 255, 255, 0.84) 100%);
  backdrop-filter: blur(28px) saturate(190%) brightness(1.04);
  -webkit-backdrop-filter: blur(28px) saturate(190%) brightness(1.04);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: var(--vi-shadow-card);
  overflow: hidden;
}
.music-card.pulse-focus {
  animation: musicCardFocus 0.7s ease;
}
@keyframes musicCardFocus {
  0%   { box-shadow: var(--vi-shadow-card); transform: scale(1); }
  45%  { box-shadow: 0 0 0 4px rgba(74, 108, 247, 0.35), 0 18px 44px rgba(74, 108, 247, 0.32); transform: scale(1.02); }
  100% { box-shadow: var(--vi-shadow-card); transform: scale(1); }
}

.music-card::before {
  content: "";
  position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.4) 0, rgba(255, 255, 255, 0.06) 26%, rgba(255, 255, 255, 0) 48%);
  pointer-events: none;
}
html[data-theme="dark"] .music-card {
  background: rgba(3, 10, 22, 0.90);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: var(--vi-shadow-card);
}
html[data-theme="dark"] .music-card.pulse-focus {
  animation: musicCardFocus 0.7s ease;
}
@keyframes musicCardFocus {
  0%   { box-shadow: var(--vi-shadow-card); transform: scale(1); }
  45%  { box-shadow: 0 0 0 4px rgba(74, 108, 247, 0.35), 0 18px 44px rgba(74, 108, 247, 0.32); transform: scale(1.02); }
  100% { box-shadow: var(--vi-shadow-card); transform: scale(1); }
}

.music-card::before {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0, transparent 35%);
}

.music-art-wrap {
  position: relative;
  width: 58px; height: 58px;
  border-radius: 999px;
  flex-shrink: 0;
}
.music-art-wrap::before {
  content: "";
  position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, #ff8800, #ff3300, #b983ff, #4a6cf7, #ff8800);
  animation: musicRingSpin 4s linear infinite;
}
.music-art-wrap::after {
  content: "";
  position: absolute; inset: 3px; border-radius: 50%;
  background: var(--vi-surface-solid);
}
@keyframes musicRingSpin { to { transform: rotate(360deg); } }

.music-art {
  position: absolute; inset: 4px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff8800, #ff3300);
  background-size: cover;
  background-position: center;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 22px;
  z-index: 2;
  animation: musicDiscSpin 8s linear infinite;
  animation-play-state: paused;
}
.music-card.playing .music-art {
  animation-play-state: running;
}
@keyframes musicDiscSpin { to { transform: rotate(360deg); } }

.music-info {
  flex: 1;
  min-width: 0;
  position: relative;
  z-index: 2;
}
.music-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.music-text { flex: 1; min-width: 0; }
.music-title {
  font-size: 13.5px; font-weight: 800;
  color: var(--vi-text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.music-artist {
  font-size: 11.5px; font-weight: 600;
  color: var(--vi-text-muted);
  margin-top: 1px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.music-controls {
  display: flex; align-items: center; gap: 5px;
  flex-shrink: 0;
}
.music-btn {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: var(--vi-text-muted);
  background: rgba(74, 108, 247, 0.10);
  border: 1px solid rgba(150, 175, 255, 0.35);
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.music-btn:hover {
  transform: scale(1.06);
  background: rgba(74, 108, 247, 0.20);
  color: var(--vi-accent);
}
.music-toggle {
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; color: #fff;
  background: linear-gradient(135deg, var(--vi-accent), var(--vi-accent2));
  box-shadow: 0 6px 16px rgba(74, 108, 247, 0.36);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.music-toggle:hover {
  transform: scale(1.07);
  box-shadow: 0 8px 20px rgba(74, 108, 247, 0.48);
}

.music-progress-row {
  display: flex; align-items: center; gap: 8px;
  margin-top: 7px;
}
.music-time {
  font-size: 10.5px; font-weight: 700;
  color: var(--vi-text-muted);
  font-variant-numeric: tabular-nums;
  min-width: 28px;
}
.music-time:last-child { text-align: right; }

.music-progress {
  position: relative;
  flex: 1;
  height: 12px;
  display: flex; align-items: center;
  cursor: pointer;
}
.music-progress::before {
  content: "";
  position: absolute; left: 0; right: 0; height: 3.5px;
  border-radius: 999px;
  background: var(--vi-border);
}
.music-progress-fill {
  position: relative;
  width: 0%; height: 3.5px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--vi-accent), var(--vi-accent2));
  transition: width 0.15s linear;
}
.music-progress-fill::after {
  content: "";
  position: absolute; right: -3px; top: 50%;
  transform: translateY(-50%);
  width: 7px; height: 7px; border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 8px rgba(74, 108, 247, 0.65);
}

.music-frame-holder {
  position: fixed;
  bottom: 0; left: 0;
  width: 1px; height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 640px) {
  .music-card {
    left: 14px;
    bottom: 18px;
    padding: 10px 12px;
    gap: 10px;
    max-width: calc(100vw - 98px);
  }
  .music-art-wrap { width: 48px; height: 48px; }
  .music-art { font-size: 19px; }
  .music-title { font-size: 12.5px; }
  .music-artist { font-size: 11px; }
  .music-btn { width: 25px; height: 25px; font-size: 11px; }
  .music-toggle { width: 31px; height: 31px; font-size: 14px; }
}

/* ============================================================================
   GET KEY, MOD FILES, VIDEOS & HELP CARDS
   ============================================================================ */
.key-grid,
.mod-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 720px) {
  .key-grid,
  .mod-grid { grid-template-columns: repeat(2, 1fr); }
}

.key-card,
.mod-card-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 20px;
  background: var(--vi-surface);
  backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid var(--vi-border);
  box-shadow: var(--vi-shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.key-card:hover,
.mod-card-wrap:hover {
  transform: translateY(-3px);
  box-shadow: var(--vi-shadow-card);
}
.mod-card-wrap { flex-direction: column; align-items: stretch; padding: 0; overflow: hidden; }
.mod-card {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px;
}

.key-icon-wrap,
.mod-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: #fff;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--vi-accent), var(--vi-accent2));
}
.key-icon-wrap.ios     { background: linear-gradient(135deg, #2563eb, #4a6cf7); }
.key-icon-wrap.android { background: linear-gradient(135deg, #16a34a, #22c55e); }
.key-icon-wrap.shop    { background: linear-gradient(135deg, var(--vi-accent), var(--vi-accent2)); }
.key-icon-wrap.gold    { background: linear-gradient(135deg, #d97706, #fbbf24); }

.key-info,
.mod-info { flex: 1; min-width: 0; }
.key-name,
.mod-name { font-size: 15px; font-weight: 800; color: var(--vi-text); }
.key-desc,
.mod-meta,
.mod-desc { font-size: 12.5px; font-weight: 600; color: var(--vi-text-muted); margin-top: 2px; }

.key-action,
.mod-dl-btn {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: rgba(74, 108, 247, 0.12);
  color: var(--vi-accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; flex-shrink: 0;
  transition: 0.2s;
}
.key-card:hover .key-action,
.mod-card:hover .mod-dl-btn {
  background: linear-gradient(135deg, var(--vi-accent), var(--vi-accent2));
  color: #fff;
}

.mod-guide-btn {
  padding: 10px 16px;
  border-top: 1px solid var(--vi-border);
  background: var(--vi-surface2);
  font-size: 12.5px; font-weight: 700; color: var(--vi-accent);
  text-align: left;
  display: flex; align-items: center; gap: 6px;
}

.spin { animation: keySpin 2.5s linear infinite; display: inline-block; }
@keyframes keySpin { to { transform: rotate(360deg); } }

/* Videos Grid */
.vid-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 640px) { .vid-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .vid-grid { grid-template-columns: repeat(3, 1fr); } }

.vid-card-wrap {
  border-radius: var(--vi-radius);
  overflow: hidden;
  background: var(--vi-surface);
  backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--vi-border);
  box-shadow: var(--vi-shadow-card);
  transition: transform 0.24s ease;
}
.vid-card-wrap:hover { transform: translateY(-4px); }
.vid-card { cursor: pointer; }
.vid-thumb-wrap { position: relative; aspect-ratio: 16 / 9; background: #0f172a; overflow: hidden; }
.vid-poster { width: 100%; height: 100%; object-fit: cover; }
.vid-poster-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 40px; color: #fff;
  background: linear-gradient(135deg, #1e293b, #312e81);
}
.vid-overlay {
  position: absolute; inset: 0;
  background: rgba(15, 23, 42, 0.28);
  display: flex; align-items: center; justify-content: center;
}
.vid-play-big {
  width: 52px; height: 52px; border-radius: 50%;
  background: linear-gradient(135deg, var(--vi-accent), var(--vi-accent2));
  color: #fff; font-size: 24px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(74, 108, 247, 0.45);
}
.vid-info { padding: 14px 16px; }
.vid-name { font-size: 15px; font-weight: 700; color: var(--vi-text); }
.vid-meta { font-size: 12.5px; font-weight: 600; color: var(--vi-accent); margin-top: 4px; display: flex; align-items: center; gap: 5px; }
.vid-note {
  padding: 10px 16px;
  border-top: 1px solid var(--vi-border);
  font-size: 12px; color: var(--vi-text-muted);
  display: flex; align-items: center; gap: 6px;
}

/* Help Cards */
.help-section {
  display: flex;
  justify-content: center;
  gap: 14px;
  padding: 12px 16px 34px;
  max-width: 1052px;
  margin: 0 auto;
  flex-wrap: wrap;
}
.help-card {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 22px;
  border-radius: 18px;
  background: var(--vi-surface);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--vi-border);
  box-shadow: var(--vi-shadow-sm);
  font-size: 14px; font-weight: 700;
  color: var(--vi-text);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.help-card:hover { transform: translateY(-3px); box-shadow: var(--vi-shadow-card); }
.help-img { width: 32px; height: 32px; object-fit: contain; }
html[data-theme="dark"] .help-img { filter: invert(1) brightness(1.3); }

/* ============================================================================
   FOOTER
   ============================================================================ */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--vi-border);
  padding: 18px 20px 104px;
  text-align: center;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.footer-avatar {
  width: 22px; height: 22px; border-radius: 50%; object-fit: cover;
}
.footer p,
.footer-sep {
  font-size: 13px;
  font-weight: 600;
  color: var(--vi-text-muted);
}

/* ============================================================================
   MODALS
   ============================================================================ */
.modal-overlay,
#imgPreviewModal {
  position: fixed; inset: 0;
  background: rgba(10, 15, 30, 0.62);
  backdrop-filter: blur(10px);
  display: none; align-items: center; justify-content: center;
  z-index: 8000;
  padding: 18px;
}
.modal-overlay.show,
#imgPreviewModal.show { display: flex; }

.modal-box {
  background: var(--vi-modal-bg);
  border: 1px solid var(--vi-border);
  border-radius: 24px;
  padding: 24px 22px;
  max-width: 400px; width: 100%;
  text-align: center;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.35);
  animation: popIn 0.24s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes popIn { from { transform: scale(0.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.modal-icon {
  width: 56px; height: 56px; border-radius: 18px;
  margin: 0 auto 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; color: #fff;
  background: linear-gradient(135deg, #16a34a, #22c55e);
}
.modal-box h3 { font-size: 19px; font-weight: 800; margin-bottom: 6px; }
.modal-box > p { font-size: 13.5px; color: var(--vi-text-muted); line-height: 1.5; margin-bottom: 18px; }

.modal-actions.vertical { display: flex; flex-direction: column; gap: 10px; }
.modal-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; border-radius: 999px;
  font-size: 14px; font-weight: 700;
  transition: 0.2s;
}
.modal-btn.primary {
  background: linear-gradient(135deg, var(--vi-accent), var(--vi-accent2));
  color: #fff;
  box-shadow: 0 8px 20px rgba(74, 108, 247, 0.32);
}
.modal-btn.secondary {
  background: rgba(74, 108, 247, 0.12);
  border: 1px solid rgba(74, 108, 247, 0.35);
  color: var(--vi-accent);
}
.modal-getkey-wrap { margin-top: 10px; }
.modal-getkey-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; border-radius: 999px;
  background: rgba(251, 191, 36, 0.14);
  border: 1px solid rgba(251, 191, 36, 0.42);
  color: #d97706;
  font-size: 14px; font-weight: 700;
}
.modal-cancel {
  margin-top: 12px;
  padding: 8px 16px;
  font-size: 13.5px; font-weight: 700;
  color: var(--vi-text-muted);
}

/* Preview / Guide / Video / Notif Modals */
.img-preview-box,
.guide-modal-box,
.video-modal-box,
.notif-modal-box {
  max-width: 440px; width: 100%;
  background: var(--vi-modal-bg);
  border: 1px solid var(--vi-border);
  border-radius: 24px;
  overflow: hidden;
  padding: 0;
  text-align: left;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
  animation: popIn 0.24s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.video-modal-box { max-width: 680px; }

.img-preview-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--vi-border);
}
.img-preview-title {
  font-size: 15px; font-weight: 800; color: var(--vi-text);
  display: inline-flex; align-items: center; gap: 7px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.img-preview-title i { color: var(--vi-accent); }
.img-preview-close {
  width: 32px; height: 32px; border-radius: 10px;
  background: var(--vi-surface2);
  color: var(--vi-text-muted);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.img-preview-close:hover { background: rgba(239, 68, 68, 0.14); color: var(--vi-danger); }

.img-preview-slider { background: #000; overflow: hidden; }
.img-preview-track { display: flex; transition: transform 0.3s ease; }
.img-preview-track img { width: 100%; flex-shrink: 0; max-height: 60vh; object-fit: contain; }
.img-preview-dots { display: flex; justify-content: center; gap: 6px; padding: 10px; }
.img-dot {
  width: 7px; height: 7px; border-radius: 99px;
  background: rgba(124, 140, 168, 0.35); cursor: pointer; transition: 0.2s;
}
.img-dot.active { width: 20px; background: var(--vi-accent); }
.img-preview-desc,
.guide-modal-body {
  padding: 14px 18px;
  font-size: 13.5px; line-height: 1.6;
  color: var(--vi-text-muted);
  border-top: 1px solid var(--vi-border);
}
.guide-modal-body { border-top: 0; color: var(--vi-text); max-height: 65vh; overflow-y: auto; }
.guide-modal-body a { color: var(--vi-accent); text-decoration: underline; }

.video-container { aspect-ratio: 16 / 9; background: #000; }

.notif-modal-body {
  padding: 14px 18px 18px;
  display: flex; flex-direction: column; gap: 10px;
  max-height: 65vh; overflow-y: auto;
}
.notif-item {
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--vi-surface2);
  border: 1px solid var(--vi-border);
}
.notif-item-top {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin-bottom: 4px;
}
.notif-item-top strong { font-size: 13.5px; font-weight: 800; color: var(--vi-text); }
.notif-tag {
  font-size: 10px; font-weight: 800; letter-spacing: 0.5px;
  padding: 2px 8px; border-radius: 999px;
  background: rgba(74, 108, 247, 0.14); color: var(--vi-accent);
}
.notif-item p { font-size: 12.5px; color: var(--vi-text-muted); line-height: 1.45; }

/* ============================================================================
   CHATBOT FAB & WIDGET (INDIGO-VIOLET GLASS THEME)
   ============================================================================ */
.chat-fab {
  position: fixed; bottom: 20px; right: 20px;
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, var(--vi-accent), var(--vi-accent2));
  z-index: 6500;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; color: #fff;
  box-shadow: 0 10px 28px rgba(74, 108, 247, 0.42);
  transition: transform 0.2s ease;
}
.chat-fab:hover { transform: scale(1.07); }
.chat-fab-badge {
  position: absolute; top: -2px; right: -2px;
  min-width: 20px; height: 20px; padding: 0 5px;
  background: var(--vi-danger); color: #fff;
  border-radius: 99px; font-size: 11px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--vi-bg);
}

.chat-widget {
  position: fixed; bottom: 20px; right: 20px;
  width: 375px; max-width: calc(100vw - 28px);
  height: 540px; max-height: calc(100vh - 90px);
  background: var(--vi-modal-bg);
  backdrop-filter: blur(24px);
  border: 1px solid var(--vi-border);
  border-radius: 22px;
  z-index: 6600;
  display: flex; flex-direction: column; overflow: hidden;
  box-shadow: 0 18px 54px rgba(15, 23, 42, 0.28);
  opacity: 0; visibility: hidden; transform: translateY(18px) scale(0.96);
  transition: opacity 0.24s, transform 0.24s, visibility 0.24s;
}
.chat-widget.open { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }

.cw-header {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 14px;
  background: linear-gradient(135deg, var(--vi-accent), var(--vi-accent2));
  color: #fff;
}
.cw-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  display: flex; align-items: center; justify-content: center;
  font-size: 19px; position: relative; flex-shrink: 0;
}
.cw-avatar::after {
  content: ""; position: absolute; bottom: 0; right: 0;
  width: 9px; height: 9px; border-radius: 50%;
  background: #4ade80; border: 2px solid var(--vi-accent);
}
.cw-meta { flex: 1; min-width: 0; }
.cw-name { font-size: 14.5px; font-weight: 800; }
.cw-status { font-size: 11px; opacity: 0.9; font-weight: 600; }
.cw-close {
  width: 32px; height: 32px; border-radius: 10px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff; display: flex; align-items: center; justify-content: center;
}

.cw-body {
  flex: 1; overflow-y: auto; padding: 14px 12px;
  display: flex; flex-direction: column; gap: 10px;
}
.cw-msg { display: flex; gap: 8px; max-width: 88%; }
.cw-msg.bot { align-self: flex-start; }
.cw-msg.user { align-self: flex-end; flex-direction: row-reverse; }
.cw-msg-av {
  width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 13px;
}
.cw-msg.bot .cw-msg-av { background: linear-gradient(135deg, var(--vi-accent), var(--vi-accent2)); color: #fff; }
.cw-msg.user .cw-msg-av { background: var(--vi-surface2); color: var(--vi-text-muted); }

.cw-bubble {
  padding: 10px 13px; border-radius: 16px;
  font-size: 13px; line-height: 1.5; word-break: break-word;
}
.cw-msg.bot .cw-bubble {
  background: var(--vi-surface2);
  border: 1px solid var(--vi-border);
  border-bottom-left-radius: 4px;
  color: var(--vi-text);
}
.cw-msg.user .cw-bubble {
  background: linear-gradient(135deg, var(--vi-accent), var(--vi-accent2));
  border-bottom-right-radius: 4px;
  color: #fff;
}
.cw-bubble a { color: var(--vi-accent); font-weight: 700; text-decoration: underline; word-break: break-all; }
.cw-msg.user .cw-bubble a { color: #fff; }
.cw-time { font-size: 10px; color: var(--vi-text-muted); margin-top: 3px; display: block; }

.cw-typing { display: flex; gap: 8px; align-self: flex-start; }
.cw-typing-bubble {
  padding: 12px 14px; border-radius: 16px;
  background: var(--vi-surface2);
  display: flex; gap: 4px; align-items: center;
}
.cw-typing-bubble span {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--vi-text-muted);
  animation: cwBounce 1.2s infinite;
}
.cw-typing-bubble span:nth-child(2) { animation-delay: 0.2s; }
.cw-typing-bubble span:nth-child(3) { animation-delay: 0.4s; }
@keyframes cwBounce { 0%, 60%, 100% { transform: translateY(0); opacity: 0.45; } 30% { transform: translateY(-4px); opacity: 1; } }

.cw-quick {
  display: flex; gap: 7px; padding: 9px 12px;
  overflow-x: auto; border-top: 1px solid var(--vi-border);
}
.cw-quick::-webkit-scrollbar { height: 0; }
.cw-chip {
  flex-shrink: 0;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(74, 108, 247, 0.10);
  border: 1px solid rgba(74, 108, 247, 0.30);
  color: var(--vi-accent);
  font-size: 12px; font-weight: 700; white-space: nowrap;
  transition: 0.2s;
}
.cw-chip:hover { background: var(--vi-accent); color: #fff; }

.cw-input-row {
  display: flex; gap: 8px; padding: 10px 12px;
  border-top: 1px solid var(--vi-border); align-items: flex-end;
}
.cw-input {
  flex: 1; background: var(--vi-surface2);
  border: 1px solid var(--vi-border);
  border-radius: 18px; padding: 9px 13px;
  color: var(--vi-text); font-size: 13px; font-family: inherit;
  outline: none; resize: none; max-height: 86px;
}
.cw-input:focus { border-color: var(--vi-accent); }
.cw-send {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--vi-accent), var(--vi-accent2));
  color: #fff; font-size: 16px;
  display: flex; align-items: center; justify-content: center;
}

/* ============================================================================
   TOAST & REVEAL
   ============================================================================ */
.dm-toast {
  position: fixed;
  bottom: 24px; left: 50%;
  transform: translate(-50%, 16px);
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(26, 26, 46, 0.92);
  color: #fff;
  font-size: 13px; font-weight: 700;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
  z-index: 9999;
  opacity: 0; pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
}
.dm-toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.45s ease, transform 0.45s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 640px) {
  .footer { padding-bottom: 118px; }
}

@media (max-width: 480px) {
  .chat-widget {
    bottom: 0; right: 0; width: 100%; max-width: 100%;
    height: 100%; max-height: 100%; border-radius: 0;
  }
  .qc-text strong { font-size: 15px; }
  .qc-text span { font-size: 12px; }
}
