/* D2C 3D Cyber Matrix Stylesheet */
:root {
  --neon-cyan: #00f0ff;
  --neon-cyan-glow: rgba(0, 240, 255, 0.45);
  --neon-blue: #0088ff;
  --neon-accent: #00ffcc;
  --bg-deep: #030813;
  --bg-panel: rgba(6, 17, 34, 0.75);
  --border-cyan: rgba(0, 240, 255, 0.35);
  --font-cyber: 'Orbitron', -apple-system, sans-serif;
  --font-mono: 'Share Tech Mono', monospace;
  --font-sans: 'Inter', -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
}

body, html {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--bg-deep);
  color: #fff;
  font-family: var(--font-sans);
}

#webgl-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* Subtle CRT Scanline & Cyber Vignette */
.cyber-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
  background: radial-gradient(circle at center, transparent 60%, rgba(1, 6, 18, 0.75) 100%),
              linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.15) 50%);
  background-size: 100% 100%, 100% 4px;
}

/* Splash Intro Screen */
.splash-screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 50;
  display: flex;
  justify-content: center;
  align-items: center;
  background: radial-gradient(circle at center, rgba(3, 15, 34, 0.9) 0%, rgba(1, 4, 10, 0.98) 100%);
  backdrop-filter: blur(12px);
  transition: opacity 0.8s ease, visibility 0.8s;
}

.splash-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.splash-card {
  text-align: center;
  padding: 36px 44px;
  background: var(--bg-panel);
  border: 1px solid var(--border-cyan);
  border-radius: 16px;
  box-shadow: 0 0 50px rgba(0, 240, 255, 0.2), inset 0 0 30px rgba(0, 240, 255, 0.05);
  max-width: 640px;
  width: 92%;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.cyber-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--neon-accent);
  background: rgba(0, 255, 204, 0.1);
  border: 1px solid rgba(0, 255, 204, 0.3);
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.glitch-title {
  font-family: var(--font-cyber);
  font-size: 36px;
  font-weight: 900;
  letter-spacing: 4px;
  color: #fff;
  text-shadow: 0 0 20px var(--neon-cyan);
  margin-bottom: 6px;
}

.splash-subtitle {
  font-size: 14px;
  color: #a0c4df;
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.splash-details {
  display: flex;
  justify-content: space-around;
  margin-bottom: 22px;
  padding: 10px 14px;
  background: rgba(0, 240, 255, 0.04);
  border: 1px dashed var(--border-cyan);
  border-radius: 8px;
}

.detail-item .label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  color: #6187a4;
  letter-spacing: 1px;
}

.detail-item .val {
  font-family: var(--font-cyber);
  font-size: 12px;
  font-weight: 700;
  color: var(--neon-cyan);
}

/* Interactive Big QR Code Launcher Box */
.qr-launcher-box {
  display: flex;
  align-items: center;
  gap: 20px;
  background: rgba(0, 240, 255, 0.03);
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: 14px;
  padding: 16px 20px;
  margin-bottom: 22px;
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.08);
}

.qr-frame {
  position: relative;
  background: #ffffff;
  padding: 10px;
  border-radius: 12px;
  box-shadow: 0 0 25px rgba(0, 255, 204, 0.45);
  flex-shrink: 0;
}

.corner-acc {
  position: absolute;
  width: 12px;
  height: 12px;
  border: 2.5px solid #00ffcc;
  pointer-events: none;
}
.corner-acc.c-tl { top: -4px; left: -4px; border-right: none; border-bottom: none; }
.corner-acc.c-tr { top: -4px; right: -4px; border-left: none; border-bottom: none; }
.corner-acc.c-bl { bottom: -4px; left: -4px; border-right: none; border-top: none; }
.corner-acc.c-br { bottom: -4px; right: -4px; border-left: none; border-top: none; }

.qrcode-canvas-wrapper {
  width: 145px;
  height: 145px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qrcode-canvas-wrapper canvas,
.qrcode-canvas-wrapper img {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

.qr-instructions {
  text-align: left;
  flex: 1;
}

.qr-tag-label {
  font-family: var(--font-cyber);
  font-size: 13px;
  font-weight: 700;
  color: #00ffcc;
  letter-spacing: 1px;
  text-shadow: 0 0 10px rgba(0, 255, 204, 0.5);
}

.qr-status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0;
  font-family: var(--font-mono);
  font-size: 12px;
  color: #7ee7ff;
  background: rgba(0, 240, 255, 0.08);
  padding: 3px 10px;
  border-radius: 12px;
  border: 1px solid rgba(0, 240, 255, 0.25);
}

.status-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00ffcc;
  box-shadow: 0 0 10px #00ffcc;
  animation: dot-pulse 1.5s infinite ease-in-out;
}

@keyframes dot-pulse {
  0% { transform: scale(0.85); opacity: 0.6; }
  50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 15px #00ffcc; }
  100% { transform: scale(0.85); opacity: 0.6; }
}

.qr-subtext {
  font-size: 12px;
  color: #8bb5d6;
  line-height: 1.45;
  margin-top: 4px;
}

.cyber-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 36px;
  font-family: var(--font-cyber);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #010c1c;
  background: var(--neon-cyan);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 0 30px var(--neon-cyan-glow);
  transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.cyber-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 0 45px rgba(0, 240, 255, 0.7);
  background: #33f3ff;
}

.splash-tip {
  margin-top: 18px;
  font-size: 12px;
  color: #6e8fa9;
  line-height: 1.4;
}

/* Top Cyber HUD Bar */
.hud-top {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 16px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(3, 8, 19, 0.85) 0%, transparent 100%);
}

.hud-top > * {
  pointer-events: auto;
}

.hud-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pulse-dot {
  width: 10px;
  height: 10px;
  background: var(--neon-cyan);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--neon-cyan);
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 18px var(--neon-cyan); }
  100% { transform: scale(0.9); opacity: 0.7; }
}

.brand-title {
  display: block;
  font-family: var(--font-cyber);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 2px;
  color: #fff;
}

.brand-sub {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--neon-accent);
  letter-spacing: 1px;
}

.node-indicator-box {
  background: var(--bg-panel);
  border: 1px solid var(--border-cyan);
  padding: 6px 18px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.15);
}

.node-indicator-box .node-label {
  font-family: var(--font-mono);
  font-size: 9px;
  color: #6187a4;
  letter-spacing: 2px;
  display: block;
}

.node-numbers {
  font-family: var(--font-cyber);
  font-size: 16px;
  font-weight: 800;
}

.node-numbers .highlight {
  color: var(--neon-cyan);
}

.node-numbers .divider {
  color: #4a6c88;
  margin: 0 4px;
}

.node-numbers .total {
  color: #8faec9;
}

.hud-actions {
  display: flex;
  gap: 10px;
}

.hud-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-panel);
  border: 1px solid var(--border-cyan);
  color: #a0c4df;
  padding: 8px 14px;
  border-radius: 6px;
  font-family: var(--font-cyber);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: all 0.2s;
}

.hud-btn:hover {
  color: #fff;
  border-color: var(--neon-cyan);
  background: rgba(0, 240, 255, 0.15);
  box-shadow: 0 0 15px var(--neon-cyan-glow);
}

.hidden {
  display: none !important;
}

/* Active Video Floating Card */
.active-video-card {
  position: absolute;
  top: 80px;
  left: 28px;
  max-width: 380px;
  width: calc(100% - 56px);
  background: var(--bg-panel);
  border: 1px solid var(--border-cyan);
  padding: 18px 22px;
  border-radius: 10px;
  z-index: 10;
  backdrop-filter: blur(12px);
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.1);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.active-video-card.compact {
  opacity: 0.4;
  transform: scale(0.95);
}

.card-corner {
  position: absolute;
  width: 6px;
  height: 6px;
  border-color: var(--neon-cyan);
}
.card-corner.tl { top: -1px; left: -1px; border-top: 2px solid var(--neon-cyan); border-left: 2px solid var(--neon-cyan); }
.card-corner.tr { top: -1px; right: -1px; border-top: 2px solid var(--neon-cyan); border-right: 2px solid var(--neon-cyan); }
.card-corner.bl { bottom: -1px; left: -1px; border-bottom: 2px solid var(--neon-cyan); border-left: 2px solid var(--neon-cyan); }
.card-corner.br { bottom: -1px; right: -1px; border-bottom: 2px solid var(--neon-cyan); border-right: 2px solid var(--neon-cyan); }

.status-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--neon-accent);
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.live-beacon {
  width: 6px;
  height: 6px;
  background: var(--neon-accent);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--neon-accent);
}

.video-title {
  font-family: var(--font-cyber);
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}

.video-desc {
  font-size: 12px;
  color: #a0c4df;
  line-height: 1.5;
  margin-bottom: 12px;
}

.progress-container {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 8px;
}

.progress-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-accent));
  box-shadow: 0 0 8px var(--neon-cyan);
  transition: width 0.1s linear;
}

.time-display {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #6e8fa9;
  text-align: right;
}

/* Bottom HUD Timeline & Toolbar */
.hud-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 16px 28px 24px;
  z-index: 10;
  pointer-events: none;
  background: linear-gradient(to top, rgba(3, 8, 19, 0.9) 0%, transparent 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.hud-bottom > * {
  pointer-events: auto;
}

.timeline-carousel {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 900px;
  width: 100%;
  justify-content: center;
}

.nav-arrow-btn {
  background: var(--bg-panel);
  border: 1px solid var(--border-cyan);
  color: var(--neon-cyan);
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 14px;
}

.nav-arrow-btn:hover {
  background: rgba(0, 240, 255, 0.25);
  box-shadow: 0 0 15px var(--neon-cyan-glow);
  color: #fff;
}

.node-tracks-wrapper {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 6px 4px;
  scrollbar-width: none;
}

.node-tracks-wrapper::-webkit-scrollbar {
  display: none;
}

.node-chip {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 38px;
  background: var(--bg-panel);
  border: 1px solid var(--border-cyan);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.node-chip .chip-num {
  font-family: var(--font-cyber);
  font-size: 12px;
  font-weight: 700;
  color: #a0c4df;
}

.node-chip .chip-dot {
  width: 4px;
  height: 4px;
  background: #4a6c88;
  border-radius: 50%;
  margin-top: 3px;
}

.node-chip:hover {
  border-color: var(--neon-cyan);
  background: rgba(0, 240, 255, 0.15);
  transform: translateY(-2px);
}

.node-chip.active {
  border-color: var(--neon-cyan);
  background: rgba(0, 240, 255, 0.3);
  box-shadow: 0 0 15px var(--neon-cyan-glow);
}

.node-chip.active .chip-num {
  color: #fff;
}

.node-chip.active .chip-dot {
  background: var(--neon-cyan);
  box-shadow: 0 0 6px var(--neon-cyan);
}

.playback-toolbar {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-panel);
  border: 1px solid var(--border-cyan);
  padding: 8px 20px;
  border-radius: 30px;
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.12);
  backdrop-filter: blur(10px);
}

.control-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px solid rgba(0, 240, 255, 0.3);
  color: #fff;
  padding: 6px 16px;
  border-radius: 20px;
  font-family: var(--font-cyber);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.2s;
}

.control-btn:hover {
  border-color: var(--neon-cyan);
  background: rgba(0, 240, 255, 0.18);
  box-shadow: 0 0 12px var(--neon-cyan-glow);
}

.control-btn.primary {
  background: var(--neon-cyan);
  color: #010c1c;
  border: none;
  box-shadow: 0 0 15px var(--neon-cyan-glow);
}

.control-btn.primary:hover {
  background: #33f3ff;
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.6);
}

.auto-tour-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 8px;
  border-left: 1px solid rgba(255, 255, 255, 0.15);
  padding-left: 16px;
}

.switch {
  position: relative;
  display: inline-block;
  width: 34px;
  height: 18px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #273b52;
  transition: .3s;
  border-radius: 18px;
  border: 1px solid var(--border-cyan);
}

.slider:before {
  position: absolute;
  content: "";
  height: 12px;
  width: 12px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--neon-cyan);
  box-shadow: 0 0 10px var(--neon-cyan-glow);
}

input:checked + .slider:before {
  transform: translateX(16px);
  background-color: #010c1c;
}

.switch-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: #a0c4df;
  letter-spacing: 1px;
}

/* CSS3D Container for Live Iframe */
#css3d-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

.portal-iframe-wrapper {
  width: 1920px;
  height: 1080px;
  background: #030813;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 60px rgba(0, 255, 204, 0.45), 0 0 20px rgba(0, 240, 255, 0.3);
  pointer-events: auto;
  transform: translateZ(0);
  border: 4px solid rgba(0, 255, 204, 0.6);
}

.portal-iframe {
  width: 100%;
  height: 100%;
  border: none;
  background: #ffffff;
  pointer-events: auto;
}

/* Dedicated Live Portal HUD Button */
.portal-glow-btn {
  border-color: var(--neon-accent) !important;
  background: rgba(0, 255, 204, 0.15) !important;
  color: #fff !important;
  box-shadow: 0 0 15px rgba(0, 255, 204, 0.3) !important;
}

.portal-glow-btn:hover {
  background: rgba(0, 255, 204, 0.3) !important;
  box-shadow: 0 0 25px rgba(0, 255, 204, 0.6) !important;
}

.portal-badge {
  background: #ff0055;
  color: #fff;
  font-family: var(--font-cyber);
  font-size: 9px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 1px;
  box-shadow: 0 0 8px #ff0055;
  animation: pulse-live 1.5s infinite;
}

@keyframes pulse-live {
  0% { opacity: 0.7; transform: scale(0.95); }
  50% { opacity: 1; transform: scale(1.05); }
  100% { opacity: 0.7; transform: scale(0.95); }
}

.node-chip.portal-chip {
  border-color: rgba(0, 255, 204, 0.5);
  background: rgba(0, 255, 204, 0.1);
}

.node-chip.portal-chip .chip-num {
  color: var(--neon-accent);
}

.node-chip.portal-chip.active {
  border-color: var(--neon-accent);
  background: rgba(0, 255, 204, 0.3);
  box-shadow: 0 0 15px rgba(0, 255, 204, 0.4);
}

/* Audio Controls Styling */
#bgm-btn.bgm-active {
  border-color: #00ffcc;
  background: rgba(0, 255, 204, 0.18);
  color: #00ffcc;
  box-shadow: 0 0 12px rgba(0, 255, 204, 0.35);
}

#bgm-btn.bgm-muted {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(10, 25, 45, 0.6);
  color: #88a0b8;
}

#video-sound-btn.video-active {
  border-color: #00f0ff;
  background: rgba(0, 240, 255, 0.2);
  color: #00f0ff;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.35);
}

#video-sound-btn.video-muted {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(10, 25, 45, 0.6);
  color: #88a0b8;
}

/* Dramatic 5..4..3..2..1 Stage Launch Countdown Modal */
.countdown-modal {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 85;
  display: flex;
  justify-content: center;
  align-items: center;
  background: radial-gradient(circle at center, rgba(3, 18, 38, 0.94) 0%, rgba(1, 4, 10, 0.98) 100%);
  backdrop-filter: blur(16px);
  transition: opacity 0.4s ease, visibility 0.4s ease;
  opacity: 1;
  visibility: visible;
}

.countdown-modal.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.countdown-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cd-badge {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 3.5px;
  color: #00ffcc;
  background: rgba(0, 255, 204, 0.12);
  border: 1px solid rgba(0, 255, 204, 0.4);
  padding: 6px 22px;
  border-radius: 20px;
  margin-bottom: 12px;
  box-shadow: 0 0 15px rgba(0, 255, 204, 0.25);
}

.cd-title {
  font-family: var(--font-cyber);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 3px;
  color: #ffffff;
  text-shadow: 0 0 15px #00f0ff, 0 0 30px rgba(0, 240, 255, 0.5);
  margin-bottom: 24px;
}

.cd-dial-wrapper {
  position: relative;
  width: 220px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 26px;
}

.cd-circle-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 2.5px dashed rgba(0, 240, 255, 0.6);
  border-radius: 50%;
  animation: spin-cd-ring 12s linear infinite;
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.3);
}

@keyframes spin-cd-ring {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.cd-circle-pulse {
  position: absolute;
  width: 82%;
  height: 82%;
  border: 2px solid rgba(0, 255, 204, 0.7);
  border-radius: 50%;
  box-shadow: 0 0 35px rgba(0, 255, 204, 0.5), inset 0 0 25px rgba(0, 240, 255, 0.25);
}

.countdown-number {
  font-family: var(--font-cyber);
  font-size: 105px;
  font-weight: 900;
  color: #ffffff;
  text-shadow: 0 0 30px #00f0ff, 0 0 60px #00ffcc, 0 0 90px rgba(0, 255, 204, 0.85);
  line-height: 1;
  user-select: none;
}

.countdown-number.animate-pop {
  animation: cd-pop 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes cd-pop {
  0% { transform: scale(0.35); opacity: 0; filter: blur(6px); }
  35% { transform: scale(1.18); opacity: 1; filter: blur(0); }
  75% { transform: scale(1); opacity: 1; }
  100% { transform: scale(0.92); opacity: 0.85; }
}

.cd-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: #7ee7ff;
  background: rgba(0, 240, 255, 0.08);
  padding: 6px 18px;
  border-radius: 20px;
  border: 1px solid rgba(0, 240, 255, 0.3);
  letter-spacing: 1px;
}

/* VIP Launch Activation Green Cyber Popup Modal */
.activation-modal {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 80;
  display: flex;
  justify-content: center;
  align-items: center;
  background: radial-gradient(circle at center, rgba(1, 24, 12, 0.88) 0%, rgba(0, 8, 4, 0.97) 100%);
  backdrop-filter: blur(14px);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.5s ease;
  opacity: 1;
  visibility: visible;
}

.activation-modal.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.activation-card {
  text-align: center;
  padding: 44px 40px;
  background: linear-gradient(135deg, rgba(2, 30, 15, 0.95) 0%, rgba(0, 15, 8, 0.98) 100%);
  border: 2px solid #00e676;
  border-radius: 22px;
  box-shadow: 0 0 65px rgba(0, 230, 118, 0.6), inset 0 0 40px rgba(0, 230, 118, 0.18);
  max-width: 580px;
  width: 90%;
  position: relative;
  transform: scale(1);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  animation: act-card-glow 2.5s infinite alternate ease-in-out;
}

.activation-modal.hidden .activation-card {
  transform: scale(0.9);
}

@keyframes act-card-glow {
  0% { box-shadow: 0 0 50px rgba(0, 230, 118, 0.45), inset 0 0 30px rgba(0, 230, 118, 0.12); }
  100% { box-shadow: 0 0 85px rgba(0, 230, 118, 0.8), inset 0 0 50px rgba(0, 230, 118, 0.25); }
}

.act-corner {
  position: absolute;
  width: 18px;
  height: 18px;
  border: 3px solid #00e676;
  pointer-events: none;
}
.act-corner.act-tl { top: -3px; left: -3px; border-right: none; border-bottom: none; }
.act-corner.act-tr { top: -3px; right: -3px; border-left: none; border-bottom: none; }
.act-corner.act-bl { bottom: -3px; left: -3px; border-right: none; border-top: none; }
.act-corner.act-br { bottom: -3px; right: -3px; border-left: none; border-top: none; }

.act-icon-wrapper {
  position: relative;
  width: 82px;
  height: 82px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 230, 118, 0.14);
  border: 2px solid #00e676;
  border-radius: 50%;
  box-shadow: 0 0 30px rgba(0, 230, 118, 0.5);
}

.act-icon {
  font-size: 40px;
  line-height: 1;
  filter: drop-shadow(0 0 12px #00e676);
}

.act-pulse-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid rgba(0, 230, 118, 0.7);
  animation: act-ring-pulse 1.6s infinite ease-out;
}

@keyframes act-ring-pulse {
  0% { transform: scale(1); opacity: 0.9; }
  100% { transform: scale(1.65); opacity: 0; }
}

.activation-title {
  font-family: var(--font-cyber);
  font-size: 34px;
  font-weight: 900;
  letter-spacing: 4px;
  color: #ffffff;
  text-shadow: 0 0 20px #00e676, 0 0 40px rgba(0, 230, 118, 0.7);
  margin-bottom: 8px;
}

.activation-subtitle {
  font-size: 14px;
  color: #b9f6ca;
  margin-bottom: 24px;
  letter-spacing: 1px;
  line-height: 1.5;
}

.activation-countdown-box {
  background: rgba(0, 230, 118, 0.08);
  border: 1px solid rgba(0, 230, 118, 0.35);
  border-radius: 12px;
  padding: 14px 18px;
}

.act-progress-track {
  width: 100%;
  height: 8px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 8px;
}

.act-progress-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #00e676, #00b0ff);
  box-shadow: 0 0 12px #00e676;
}

.act-countdown-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #69f0ae;
  letter-spacing: 2px;
  font-weight: 600;
}

/* Thank You "TERIMA KASIH" Popup Modal */
.thankyou-modal {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 60;
  display: flex;
  justify-content: center;
  align-items: center;
  background: radial-gradient(circle at center, rgba(3, 15, 34, 0.75) 0%, rgba(1, 4, 10, 0.88) 100%);
  backdrop-filter: blur(8px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.6s ease;
  opacity: 1;
  visibility: visible;
}

.thankyou-modal.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.thankyou-card {
  text-align: center;
  padding: 42px 48px;
  background: rgba(6, 18, 38, 0.88);
  border: 1.5px solid var(--neon-accent);
  border-radius: 18px;
  box-shadow: 0 0 60px rgba(0, 255, 204, 0.35), inset 0 0 35px rgba(0, 240, 255, 0.1);
  max-width: 580px;
  width: 90%;
  position: relative;
  transform: scale(1);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  animation: modal-glow 3s infinite alternate ease-in-out;
}

.thankyou-modal.hidden .thankyou-card {
  transform: scale(0.92);
}

@keyframes modal-glow {
  0% { box-shadow: 0 0 50px rgba(0, 255, 204, 0.3), inset 0 0 30px rgba(0, 240, 255, 0.08); }
  100% { box-shadow: 0 0 80px rgba(0, 255, 204, 0.55), inset 0 0 45px rgba(0, 240, 255, 0.18); }
}

.modal-close-btn {
  position: absolute;
  top: 14px;
  right: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #a0c4df;
  font-size: 22px;
  line-height: 1;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}

.modal-close-btn:hover {
  background: rgba(255, 0, 85, 0.25);
  border-color: #ff0055;
  color: #fff;
  transform: rotate(90deg);
}

.cyber-badge-gold {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 3px;
  color: #ffd700;
  background: rgba(255, 215, 0, 0.12);
  border: 1px solid rgba(255, 215, 0, 0.4);
  padding: 5px 16px;
  border-radius: 20px;
  margin-bottom: 16px;
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.2);
}

.thankyou-title {
  font-family: var(--font-cyber);
  font-size: 42px;
  font-weight: 900;
  letter-spacing: 6px;
  color: #ffffff;
  text-shadow: 0 0 25px #00ffcc, 0 0 50px rgba(0, 255, 204, 0.5);
  margin-bottom: 12px;
}

.thankyou-subtitle {
  font-size: 15px;
  color: #b8daf2;
  line-height: 1.6;
  margin-bottom: 22px;
}

.thankyou-quote {
  padding: 14px 18px;
  background: rgba(0, 240, 255, 0.06);
  border-left: 3px solid #00ffcc;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: #a0c4df;
  font-style: italic;
  margin-bottom: 28px;
}

.thankyou-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.cyber-btn.secondary-btn {
  background: rgba(6, 25, 50, 0.85);
  border: 1px solid rgba(0, 240, 255, 0.4);
  color: #a0c4df;
}

.cyber-btn.secondary-btn:hover {
  background: rgba(0, 240, 255, 0.18);
  border-color: #00f0ff;
  color: #fff;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
}

.thankyou-footer {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #5d819e;
  letter-spacing: 1px;
}

/* ============================================================
   MOBILE REMOTE CONTROLLER INTERFACE
   ============================================================ */
.mobile-controller {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 99999;
  background: radial-gradient(circle at 50% 20%, #061933 0%, #020712 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px;
  overflow-y: auto;
  box-sizing: border-box;
}

.mobile-controller.hidden {
  display: none !important;
}

.mc-card {
  max-width: 440px;
  width: 100%;
  background: rgba(6, 18, 38, 0.96);
  border: 1.5px solid #00f0ff;
  border-radius: 20px;
  padding: 28px 20px;
  box-shadow: 0 0 50px rgba(0, 240, 255, 0.25), inset 0 0 30px rgba(0, 240, 255, 0.08);
  text-align: center;
  margin: auto;
}

.mc-title {
  font-family: var(--font-cyber);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 3px;
  color: #ffffff;
  text-shadow: 0 0 15px #00f0ff;
  margin: 6px 0 4px;
}

.mc-subtitle {
  font-size: 12px;
  color: #8bb5d6;
  margin-bottom: 16px;
}

.mc-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(0, 255, 204, 0.1);
  border: 1px solid rgba(0, 255, 204, 0.4);
  border-radius: 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: #00ffcc;
  margin-bottom: 22px;
  box-shadow: 0 0 15px rgba(0, 255, 204, 0.15);
}

.mc-launch-section {
  margin: 10px 0 20px;
}

.mc-big-btn {
  width: 100%;
  padding: 26px 16px;
  background: linear-gradient(135deg, #00f0ff 0%, #00ffcc 100%);
  border: none;
  border-radius: 16px;
  cursor: pointer;
  box-shadow: 0 0 35px rgba(0, 255, 204, 0.6), 0 0 60px rgba(0, 240, 255, 0.35);
  transition: transform 0.15s, box-shadow 0.15s;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.mc-big-btn:active {
  transform: scale(0.95);
  box-shadow: 0 0 20px rgba(0, 255, 204, 0.8);
}

.mc-big-btn.activated {
  background: linear-gradient(135deg, #00e676 0%, #00b0ff 100%);
  box-shadow: 0 0 40px rgba(0, 230, 118, 0.8);
}

.mc-btn-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.mc-btn-icon {
  font-size: 34px;
}

.mc-btn-title {
  font-family: var(--font-cyber);
  font-size: 19px;
  font-weight: 900;
  letter-spacing: 2.5px;
  color: #020e1e;
}

.mc-btn-sub {
  font-size: 12px;
  color: #032c3a;
  font-weight: 600;
  font-family: var(--font-sans);
}

.pulse-anim {
  animation: mc-pulse 2s infinite alternate ease-in-out;
}

@keyframes mc-pulse {
  0% { box-shadow: 0 0 25px rgba(0, 255, 204, 0.4), 0 0 50px rgba(0, 240, 255, 0.2); }
  100% { box-shadow: 0 0 55px rgba(0, 255, 204, 0.85), 0 0 85px rgba(0, 240, 255, 0.5); }
}

.mc-controls-section {
  border-top: 1px dashed rgba(0, 240, 255, 0.3);
  padding-top: 18px;
  margin-top: 12px;
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.mc-section-title {
  font-family: var(--font-cyber);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #7ee7ff;
  margin-bottom: 12px;
}

.mc-grid-nav {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}

.mc-nav-btn {
  padding: 14px 6px;
  background: rgba(6, 25, 50, 0.9);
  border: 1px solid rgba(0, 240, 255, 0.4);
  border-radius: 10px;
  color: #a0c4df;
  font-family: var(--font-cyber);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}

.mc-nav-btn:active {
  transform: scale(0.95);
  background: rgba(0, 240, 255, 0.25);
  color: #fff;
}

.mc-nav-btn.primary {
  background: rgba(0, 240, 255, 0.2);
  border-color: #00f0ff;
  color: #ffffff;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.25);
}

.mc-portal-btn {
  width: 100%;
  padding: 13px;
  background: linear-gradient(90deg, rgba(255, 0, 85, 0.15), rgba(0, 240, 255, 0.15));
  border: 1px solid #ff0055;
  border-radius: 10px;
  color: #ff80aa;
  font-family: var(--font-cyber);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 12px;
  cursor: pointer;
  box-shadow: 0 0 15px rgba(255, 0, 85, 0.2);
  transition: all 0.2s;
}

.mc-portal-btn:active {
  transform: scale(0.97);
  background: rgba(255, 0, 85, 0.3);
  color: #fff;
}

.mc-sound-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
}

.mc-toggle-btn {
  padding: 10px;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: 8px;
  color: #7ee7ff;
  font-family: var(--font-mono);
  font-size: 11px;
  cursor: pointer;
}

.mc-toggle-btn:active {
  background: rgba(0, 240, 255, 0.2);
  color: #fff;
}

.mc-node-selector {
  margin-top: 10px;
  text-align: left;
}

.mc-node-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: #6187a4;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.mc-chips-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.mc-chip-btn {
  padding: 8px 4px;
  background: rgba(0, 240, 255, 0.05);
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: 6px;
  color: #a0c4df;
  font-family: var(--font-mono);
  font-size: 11px;
  text-align: center;
  cursor: pointer;
}

.mc-chip-btn.active {
  background: #00f0ff;
  color: #010c1c;
  font-weight: 700;
  box-shadow: 0 0 10px #00f0ff;
}

.mc-footer {
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: #5d819e;
  letter-spacing: 1px;
}

/* Floating Audio Unlock Banner Toast */
.audio-unlock-toast {
  position: fixed;
  bottom: 110px;
  right: 28px;
  z-index: 9999;
  background: rgba(6, 25, 50, 0.95);
  border: 1.5px solid #00f0ff;
  border-radius: 14px;
  padding: 14px 20px;
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.5), inset 0 0 15px rgba(0, 240, 255, 0.2);
  cursor: pointer;
  animation: toast-bounce 2s infinite ease-in-out;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.audio-unlock-toast.hidden {
  display: none !important;
}

@keyframes toast-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.toast-content {
  display: flex;
  align-items: center;
  gap: 14px;
}

.toast-icon {
  font-size: 28px;
}

.toast-text {
  text-align: left;
}

.toast-title {
  display: block;
  font-family: var(--font-cyber);
  font-size: 13px;
  font-weight: 700;
  color: #00ffcc;
  letter-spacing: 1.5px;
}

.toast-sub {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  color: #a0c4df;
  margin-top: 2px;
}



