/* GridScan Styles & Preview Controller HUD */

#grid-scan-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
  pointer-events: auto;
}

#grid-scan-background canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

/* Ensure hero content sits above the canvas while allowing clicks to pass through empty space */
.hero-section-gridscan {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #0c0d11;
}

.hero-section-gridscan .container {
  position: relative;
  z-index: 5;
  pointer-events: none;
}

.hero-section-gridscan a,
.hero-section-gridscan button,
.hero-section-gridscan .hero-availability-badge,
.hero-section-gridscan .stat-item,
.hero-section-gridscan .cta-buttons,
.hero-section-gridscan input {
  pointer-events: auto;
}

/* Floating Live Customizer HUD (Preview only) */
.gridscan-hud {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99999;
  background: rgba(14, 16, 22, 0.88);
  border: 1px solid rgba(227, 255, 4, 0.35);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 24px rgba(227, 255, 4, 0.15);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 18px;
  padding: 18px 20px;
  width: 320px;
  color: #ffffff;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.gridscan-hud.minimized {
  width: auto;
  padding: 10px 16px;
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.gridscan-hud-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.gridscan-hud-title {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #E3FF04;
  display: flex;
  align-items: center;
  gap: 8px;
}

.gridscan-hud-title .badge-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #E3FF04;
  box-shadow: 0 0 8px #E3FF04;
  display: inline-block;
}

.gridscan-hud-toggle {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

.gridscan-hud-toggle:hover {
  color: #ffffff;
}

.gridscan-hud-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gridscan-hud.minimized .gridscan-hud-body,
.gridscan-hud.minimized .gridscan-hud-header {
  display: none;
}

.gridscan-hud-min-btn {
  display: none;
  background: none;
  border: none;
  color: #E3FF04;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  align-items: center;
  gap: 6px;
}

.gridscan-hud.minimized .gridscan-hud-min-btn {
  display: flex;
}

.hud-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hud-label {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: flex;
  justify-content: space-between;
}

.hud-label span.val {
  color: #E3FF04;
  font-family: monospace;
}

.hud-preset-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.hud-preset-btn {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 6px 4px;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  transition: all 0.2s ease;
  text-align: center;
  white-space: nowrap;
}

.hud-preset-btn:hover {
  border-color: rgba(227, 255, 4, 0.5);
  background: rgba(227, 255, 4, 0.1);
}

.hud-preset-btn.active {
  border-color: #E3FF04;
  background: rgba(227, 255, 4, 0.2);
  color: #E3FF04;
}

.hud-slider {
  width: 100%;
  accent-color: #E3FF04;
  height: 4px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  outline: none;
  cursor: pointer;
}

.hud-button-row {
  display: flex;
  gap: 6px;
  margin-top: 4px;
}

.hud-action-btn {
  flex: 1;
  background: #E3FF04;
  color: #000;
  border: none;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hud-action-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(227, 255, 4, 0.4);
}

@media (max-width: 991px) {
  .gridscan-hud {
    bottom: 16px;
    right: 16px;
    max-width: 90vw;
  }
}

