html {
  width: 100vw;
  overflow-x: hidden;
}
body {
  margin: 0;
  font-family: "DynaPuff", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  min-height: calc(var(--vh, 1vh) * 100);
  overflow: hidden;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1000px;
}

/* ✅ Background Video */
#bg-video {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100vw;
  height: calc(var(--vh, 1vh) * 100);
  object-fit: cover;
  z-index: -2;
}

/* ✅ Dark + Blur Overlay */
.bg-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100vw;
  height: calc(var(--vh, 1vh) * 100);
  background: linear-gradient(180deg, rgba(0,0,0,0.6), rgba(0,0,0,0.6));
  backdrop-filter: blur(8px);
  z-index: -1;
}

/* Loader Overlay */
#loader {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
  z-index: 1000;
}
.loader-content {
  text-align: center;
  animation: loader-pop 600ms cubic-bezier(.2, .8, .2, 1) both;
}
.loader-text {
  margin-top: 8px;
  font-size: 16px;
  letter-spacing: 0.15em;
  color: #0a1a22;
}
@keyframes loader-pop {
  0% { transform: scale(.9); opacity: 0; }
  60% { transform: scale(1.05); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

/* Particles Canvas */
#particles {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100vw;
  height: calc(var(--vh, 1vh) * 100);
  z-index: 0; /* behind card */
  pointer-events: none;
}

/* Music Toggle */
.music-control {
  position: absolute;
  top: 15px;
  left: 15px;
  z-index: 99;
  display: inline-flex;
  align-items: center;
}
.music-toggle {
  background: transparent;
  border: none;
  color: #00e5ff;
  cursor: pointer;
  transition: color 0.25s ease, transform 0.25s ease;
}
.music-toggle:hover {
  color: #00ffaa;
  transform: scale(1.2);
}
.music-toggle lord-icon { filter: brightness(0) invert(1) drop-shadow(0 0 8px #00f0ff); display: block; }
.volume-ui {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-left: 10px;
  background: rgba(11, 20, 34, 0.6);
  border: 1px solid rgba(0,240,255,0.35);
  border-radius: 999px;
  padding: 6px 10px;
  box-shadow: 0 0 18px rgba(0,240,255,0.2) inset, 0 0 20px rgba(0,255,170,0.1);
}
.volume-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 180px;
  height: 8px;
  background: linear-gradient(90deg, #00f0ff 0%, #00ffaa 50%, rgba(255,255,255,0.15) 50%, rgba(255,255,255,0.15) 100%);
  outline: none;
  border-radius: 999px;
  box-shadow: 0 0 12px rgba(0,240,255,0.35), 0 0 16px rgba(0,255,170,0.25), 0 2px 12px rgba(0,0,0,0.35) inset;
}
.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ffffff 0%, #eafcff 40%, #bdfcff 100%);
  box-shadow: 0 0 10px #00f0ff, 0 0 14px #00ffaa, 0 0 24px rgba(0,255,170,0.25);
  transition: transform 0.2s ease;
}
.volume-slider::-webkit-slider-thumb:hover { transform: scale(1.1); }
.volume-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ffffff 0%, #eafcff 40%, #bdfcff 100%);
  box-shadow: 0 0 10px #00f0ff, 0 0 14px #00ffaa, 0 0 24px rgba(0,255,170,0.25);
}
.volume-value { font-weight: 800; color: #e8ffff; text-shadow: 0 0 10px #00f0ff; min-width: 48px; text-align: right; letter-spacing: 0.06em; }

/* Card */
.card {
  position: relative;
  background: rgba(10,12,18,0.86);
  padding: 30px;
  border-radius: 20px;
  text-align: center;
  width: min(92vw, 480px);
  box-shadow: 0 0 40px rgba(0, 240, 255, 0.2), 0 0 20px rgba(0, 255, 170, 0.08) inset;
  z-index: 2;
  transform-style: preserve-3d;
  transition: transform 0.2s ease;
  will-change: transform;
  backface-visibility: hidden;
}
.views-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(11,20,34,0.7);
  border: 1px solid rgba(0,240,255,0.35);
  box-shadow: 0 0 18px rgba(0,240,255,0.18), 0 0 10px rgba(0,255,170,0.1) inset;
  color: #e8ffff;
  z-index: 30;
}
.views-badge lord-icon { filter: brightness(0) invert(1) drop-shadow(0 0 8px #00f0ff); }
.views-count {
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-shadow: 0 0 10px #00f0ff, 0 0 16px rgba(0,255,170,0.25);
}
.enter-seq { opacity: 0; transform: translateY(24px) scale(0.98); }
.enter-seq.enter-active {
  /* Ensure visible even if animations are disabled (reduced motion) */
  opacity: 1;
  transform: translateY(0) scale(1);
  animation: enter-seq 800ms cubic-bezier(.2,.8,.2,1) 80ms both;
}
@keyframes enter-seq {
  0% { opacity: 0; transform: translateY(24px) scale(0.98); }
  60% { opacity: 1; transform: translateY(-6px) scale(1.01); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* Banner Video */
.banner {
  width: 100%;
  height: clamp(120px, 22vw, 180px);
  overflow: hidden;
  border-radius: 16px;
  margin-bottom: -60px;
  pointer-events: none;
  box-shadow: 0 0 22px rgba(0,240,255,0.45), 0 0 44px rgba(255,255,255,0.18);
}
.banner-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

/* Views badge animations */
.views-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(11,20,34,0.7);
  border: 1px solid rgba(0,240,255,0.35);
  box-shadow: 0 0 18px rgba(0,240,255,0.18), 0 0 10px rgba(0,255,170,0.1) inset;
  color: #e8ffff;
  z-index: 30;
  transform: translateZ(24px);
}
.views-badge.bump { animation: badge-bump 380ms cubic-bezier(.2,.8,.2,1); }
@keyframes badge-bump {
  0% { transform: translateZ(24px) scale(1); }
  40% { transform: translateZ(24px) scale(1.12); }
  100% { transform: translateZ(24px) scale(1); }
}
.views-badge::after { /* subtle pulse */
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: 0 0 0 0 rgba(0,240,255,0.35);
  animation: pulse 2.6s ease-out infinite;
}
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(0,240,255,0.35); } 100% { box-shadow: 0 0 0 16px rgba(0,240,255,0); } }
.views-badge lord-icon { filter: brightness(0) invert(1) drop-shadow(0 0 8px #00f0ff); }
.views-count {
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-shadow: 0 0 10px #00f0ff, 0 0 16px rgba(0,255,170,0.25);
}

/* Ripple for link buttons */
.link-btn { overflow: hidden; position: relative; }
.ripple {
  position: absolute;
  width: 12px; height: 12px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(0,240,255,0.55) 0%, rgba(0,255,170,0.45) 60%, rgba(0,255,170,0) 70%);
  transform: translate(-50%, -50%) scale(0.2);
  animation: ripple 700ms ease-out forwards;
  pointer-events: none;
}
@keyframes ripple {
  to { transform: translate(-50%, -50%) scale(5); opacity: 0; }
}

/* Profile */
.profile-pic-wrap {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  border: 3px solid #00f0ff;
  box-shadow: 0 0 25px #00f0ff, 0 0 30px rgba(0,255,170,0.25);
  position: relative;
  z-index: 10;
  overflow: hidden;
  margin: 0 auto;
}
.profile-pic {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.username {
  margin: 20px 0 5px;
  font-size: 26px;
  color: #fff;
  text-shadow: 0 0 10px #00f0ff, 0 0 14px rgba(0,255,170,0.5);
}

/* Tags (GIFs) */
.tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-left: 6px;
  cursor: pointer;
  padding: 0;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
  transition: transform 0.25s ease;
  will-change: transform, box-shadow;
  transform-origin: center;
  z-index: 20;
  min-width: 28px;
  min-height: 28px;
  line-height: 1;
}
.tag:hover { transform: scale(1.1); z-index: 25; }
/* ✅ Force GIF icons to be white */
.tag-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  pointer-events: none;
  filter: brightness(0) invert(1);
}
.tag:hover .tag-icon {
  filter: invert(72%) sepia(96%) saturate(466%) hue-rotate(92deg) brightness(106%) contrast(102%) drop-shadow(0 0 8px #00ffaa) drop-shadow(0 0 16px #00ffaa);
}

/* Admin and Owner specific glows */
.tag[aria-label="Admin"] .tag-icon {
  filter: brightness(0) invert(1) drop-shadow(0 0 8px rgba(0,255,170,0.95)) drop-shadow(0 0 16px rgba(0,255,170,0.6));
}
.tag[aria-label="Admin"]:hover .tag-icon {
  filter: brightness(0) invert(1) drop-shadow(0 0 10px #00ffaa) drop-shadow(0 0 22px #00ffaa);
}
.tag[aria-label="Owner"] .tag-icon {
  filter: brightness(0) invert(1) drop-shadow(0 0 8px rgba(255,230,108,0.95)) drop-shadow(0 0 16px rgba(255,230,108,0.6));
}
.tag[aria-label="Owner"]:hover .tag-icon {
  filter: brightness(0) invert(1) drop-shadow(0 0 10px #ffe66c) drop-shadow(0 0 22px #ffe66c);
}
.tag .tooltip {
  position: absolute;
  bottom: -38px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: #07141c;
  border: 1px solid rgba(0,240,255,0.4);
  color: #c7fff9;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: bold;
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  text-shadow: 0 0 8px rgba(0,240,255,0.6);
  box-shadow: 0 0 18px rgba(0,240,255,0.15);
  transition: transform 0.15s ease;
  z-index: 3;
}
.tag:hover .tooltip {
  opacity: 1; /* instant */
  transform: translateX(-50%) translateY(0);
}

/* Bio */
.bio {
  font-size: 14px;
  color: #aaa;
  margin-bottom: 15px;
}

/* About */
.about {
  background: rgba(0, 240, 255, 0.05);
  border: 1px solid rgba(0, 240, 255, 0.33);
  border-radius: 12px;
  padding: 12px;
  font-size: 13px;
  color: #d8fff9;
  margin-bottom: 20px;
  line-height: 1.6;
  text-align: left;
  box-shadow: 0 0 20px rgba(0,240,255,0.12) inset, 0 0 24px rgba(0,255,170,0.06) inset;
}
.about-link {
  color: #00e5ff;
  text-decoration: none;
  font-weight: 700;
  text-shadow: 0 0 8px rgba(0,240,255,0.6);
}
.about-link:hover {
  color: #00ffaa;
  text-shadow: 0 0 10px #00f0ff, 0 0 20px #00ffaa;
}
.hl-white { color: #ffffff; text-decoration: none; text-shadow: 0 0 10px #ffffff, 0 0 20px rgba(255,255,255,0.7); font-weight: 800; }
.hl-white:hover { text-shadow: 0 0 14px #ffffff, 0 0 28px rgba(255,255,255,0.9); }
.hl-yellow { color: #ffe66c; font-weight: 800; text-shadow: 0 0 10px rgba(255,230,108,0.8); }
.hl-blue { color: #a6ecff; font-weight: 800; text-shadow: 0 0 12px rgba(0,240,255,0.8); text-decoration: none; }
.hl-blue:hover { color: #cfffff; text-shadow: 0 0 16px rgba(0,240,255,1); }
.work-status { color: #6cff83; cursor: pointer; font-weight: 800; text-shadow: 0 0 10px rgba(108,255,131,0.8); }

/* Status Popup */
.status-popup {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.96);
  background: rgba(11,20,34,0.92);
  border: 1px solid rgba(0,240,255,0.35);
  color: #e8ffff;
  padding: 16px 20px;
  border-radius: 16px;
  box-shadow: 0 0 24px rgba(0,240,255,0.35), 0 0 30px rgba(0,255,170,0.25);
  z-index: 1001;
  opacity: 0;
  pointer-events: none;
}
.status-popup.show {
  animation: popup-in 350ms cubic-bezier(.2,.8,.2,1) forwards;
}
.status-popup.hide {
  animation: popup-out 350ms cubic-bezier(.2,.8,.2,1) forwards;
}
@keyframes popup-in { 0% { opacity: 0; transform: translate(-50%, -50%) scale(0.96); } 60% { opacity: 1; transform: translate(-50%, -50%) scale(1.02); } 100% { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
@keyframes popup-out { 0% { opacity: 1; transform: translate(-50%, -50%) scale(1); } 100% { opacity: 0; transform: translate(-50%, -50%) scale(0.98); } }

/* Hour Flash */
.hour-flash {
  position: fixed;
  left: 50%;
  top: 44%;
  transform: translate(-50%, -50%);
  color: #ffe66c;
  font-weight: 900;
  font-size: 22px;
  padding: 6px 12px;
  border-radius: 12px;
  text-shadow: 0 0 16px #ffd84a, 0 0 28px rgba(255,216,74,0.7);
  background: rgba(0,0,0,0.25);
  backdrop-filter: blur(4px);
  z-index: 1002;
  opacity: 0;
}
.hour-flash.show { animation: hour-flash-in 600ms ease-out forwards, hour-flash-out 5s 600ms ease-in forwards; }
@keyframes hour-flash-in { 0% { opacity: 0; transform: translate(-50%, -50%) scale(0.9); } 60% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); } 100% { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
@keyframes hour-flash-out { to { opacity: 0; transform: translate(-50%, -50%) scale(0.98); } }

/* Links */
.links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
}
.links-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  width: 100%;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #e8ffff;
  text-shadow: 0 0 10px #00f0ff, 0 0 20px rgba(255,255,255,0.3);
  margin: 18px 0 10px;
}
.links-title lord-icon {
  filter: brightness(0) invert(1) drop-shadow(0 0 8px #00f0ff) drop-shadow(0 0 16px rgba(255,255,255,0.85));
}
.link-btn {
  position: relative;
  background: #0b1422;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 0 20px rgba(0,240,255,0.18), 0 0 10px rgba(0,255,170,0.08) inset;
  will-change: transform, box-shadow;
  transform-origin: center;
  cursor: pointer;
  z-index: 20;
  min-width: 56px;
  min-height: 56px;
  line-height: 1;
}
.link-btn img, .link-btn lord-icon {
  width: 28px;
  height: 28px;
  filter: brightness(0) invert(1);
  pointer-events: none; /* ensure parent gets hover/click */
}
.link-btn:hover {
  background: linear-gradient(135deg, #00f0ff 0%, #ffffff 100%);
  transform: scale(1.1);
  box-shadow: 0 0 28px #00f0ff, 0 0 28px #00ffaa;
  z-index: 25;
}
.link-btn:hover img, .link-btn:hover lord-icon { filter: brightness(0); }
.link-btn .tooltip {
  position: absolute;
  bottom: -30px;
  background: #07141c;
  border: 1px solid rgba(0,240,255,0.4);
  color: #c7fff9;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  text-shadow: 0 0 8px rgba(0,240,255,0.6);
  box-shadow: 0 0 18px rgba(0,240,255,0.15);
  transition: transform 0.15s ease;
  white-space: nowrap;
  z-index: 3;
}
.link-btn:hover .tooltip {
  opacity: 1; /* instant */
  transform: translateY(0);
}

/* Responsiveness */
@media (max-width: 520px) {
  .profile-pic-wrap { width: 116px; height: 116px; }
  .username { font-size: 22px; }
  .bio { font-size: 13px; }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ===== Cinematic Popup ===== */
.popup {
  position: fixed;
  inset: 0;
  background: radial-gradient(1200px 600px at 50% 30%, rgba(255,255,255,0.06), rgba(0,0,0,0.62));
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1003;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
  --popup-glow: #00e5ff; /* default */
}
.popup.popup--admin { --popup-glow: #00e5ff; }
.popup.popup--owner { --popup-glow: #FFD700; }
.popup.show { opacity: 1; pointer-events: auto; }
.popup.hidden { display: block; }
.popup-inner {
  text-align: center;
  transform: scale(0.92);
  animation: popIn 500ms cubic-bezier(.2,.8,.2,1) both;
  position: relative;
}
.popup-inner::before { /* aura halo */
  content: '';
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 360px; height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--popup-glow) 40%, transparent) 0%, rgba(0,0,0,0) 65%);
  filter: blur(22px);
  opacity: 0.8;
  animation: auraPulse 2.4s ease-in-out infinite;
  pointer-events: none;
}
.popup-inner::after { /* rotating ring */
  content: '';
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 420px; height: 420px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--popup-glow), transparent 20%, transparent 60%, var(--popup-glow));
  filter: blur(18px) saturate(130%);
  opacity: 0.18;
  animation: ringSpin 6s linear infinite;
  pointer-events: none;
}
.popup-icon {
  width: 110px; height: 110px;
  margin: 0 auto 14px;
  filter: drop-shadow(0 0 10px var(--popup-glow)) drop-shadow(0 0 22px color-mix(in srgb, var(--popup-glow) 65%, transparent));
  animation: bounce 1200ms ease-in-out infinite, iconGlow 1600ms ease-in-out infinite;
}
.popup-icon img, .popup-icon lord-icon {
  width: 110px; height: 110px; display: block;
  /* subtle black outline around neon for readability */
  filter: drop-shadow(0 0 0 #000) drop-shadow(0 0 1px #000) drop-shadow(0 1px 0 #000) drop-shadow(0 -1px 0 #000) drop-shadow(1px 0 0 #000) drop-shadow(-1px 0 0 #000) drop-shadow(0 0 8px var(--popup-glow));
}
.popup-title {
  font-size: 38px;
  font-weight: 900;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #e8ffff;
  text-shadow: 0 0 18px color-mix(in srgb, var(--popup-glow) 70%, transparent);
  animation: glow 1800ms ease-in-out infinite;
  position: relative;
}
/* swipe effect removed per request */

@keyframes popIn {
  0% { transform: scale(0.6); opacity: 0; }
  60% { transform: scale(1.12); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes glow {
  0%, 100% { text-shadow: 0 0 14px var(--popup-glow, rgba(0,240,255,0.7)), 0 0 24px var(--popup-glow, rgba(0,240,255,0.35)); }
  50% { text-shadow: 0 0 26px var(--popup-glow, rgba(0,240,255,1)), 0 0 42px var(--popup-glow, rgba(0,240,255,0.6)); }
}
@keyframes auraPulse { 0%,100% { transform: translate(-50%, -50%) scale(0.96); opacity: 0.75; } 50% { transform: translate(-50%, -50%) scale(1.08); opacity: 1; } }
@keyframes ringSpin { to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes iconGlow {
  0%, 100% { filter: drop-shadow(0 0 10px var(--popup-glow)) drop-shadow(0 0 22px color-mix(in srgb, var(--popup-glow) 65%, transparent)); }
  50% { filter: drop-shadow(0 0 16px var(--popup-glow)) drop-shadow(0 0 34px color-mix(in srgb, var(--popup-glow) 80%, transparent)); }
}
/* sweep keyframes removed */
