/* ==== GENERAL === */
body {
  margin: 0;
  font-family: 'Arial', sans-serif;
  background: url('pepe_background.png') no-repeat center center fixed;
  background-size: cover;
  color: white;
  overflow-x: hidden;
}

.container {
  max-width: 500px;
  margin: auto;
  padding: 20px;
  text-align: center;
}

.title {
  font-size: 2.2em;
  margin-top: 10px;
  color: white;
  text-shadow: 0 0 8px #8000ff;
}

/* ==== PROGRESS BARS ==== */
.progress-bar,
.secondary-bar {
  border-radius: 20px;
  overflow: hidden;
  margin: 10px 0 5px;
  height: 20px;
}

.progress-bar {
  background: rgba(255, 255, 255, 0.3);
}

.secondary-bar {
  background: rgba(255, 255, 255, 0.15);
  height: 16px;
}

.progress-fill {
  background: linear-gradient(90deg, #8000ff, #d633ff, #ff66ff);
  height: 100%;
  width: 0%;
  transition: width 0.5s;
}

.secondary-fill {
  background: linear-gradient(90deg, #ffd700, #ff9900, #ffcc00);
  height: 100%;
  width: 0%;
  opacity: 0.2;
  transition: width 0.5s;
}

.secondary-fill.active {
  opacity: 1;
}

/* ==== INFO BAR ==== */
.info-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
}

.glow-box {
  padding: 14px;
  border: 2px solid white;
  border-radius: 30px;
  background: #5e00c8;
  color: white;
  box-shadow: 0 0 8px #8000ff;
  font-size: 1em;
  text-align: center;
  flex-grow: 1;
  white-space: nowrap;
}

.gold-text {
  color: #ffd700;
  font-weight: bold;
}

/* ==== BUTTONS ==== */
.button-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin: 20px 0;
}

/* ==== QR & WALLET ==== */
.qr-section {
  margin: 10px 0;
}

.wallet-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

#wallet-address {
  padding: 10px;
  font-size: 0.8em;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid white;
  border-radius: 12px;
  box-shadow: 0 0 8px #8000ff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  word-break: break-all;
  text-align: center;
  margin-bottom: 8px;
}

.copy-button-wrapper {
  text-align: center;
  margin-top: 4px;
}

#copy-button {
  background: #5e00c8;
  color: white;
  padding: 10px 14px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 0 6px #8000ff;
  font-size: 1em;
}

/* ==== RADIO ==== */
.radio-title {
  font-size: 1.5em;
  margin: 20px 0 10px;
  color: #fff;
  text-shadow: 0 0 4px #8000ff, 0 0 10px #a833ff;
}

.pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.radio-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  justify-items: center;
  margin-bottom: 20px;
}

.radio-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 2px solid white;
  box-shadow: 0 0 8px #8000ff;
  transition: transform 0.2s ease-in-out;
}

.radio-icon.active {
  animation: rotateIcon 1s linear infinite;
  box-shadow: 0 0 12px #a833ff;
}

@keyframes rotateIcon {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

#radio-player {
  display: none;
}

/* ==== SOCIAL MEDIA ==== */
.social-share {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 30px;
}

.social-share img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid white;
  filter: drop-shadow(0 0 6px #a833ff);
  transition: transform 0.3s ease, filter 0.3s ease;
}

.social-share img:hover {
  transform: scale(1.1);
  filter: drop-shadow(0 0 14px #ff33ff);
}

/* ==== NEON GLOW EFFECTS ==== */
.fade-in {
  animation: fadeInBody 1.2s ease-in;
}

@keyframes fadeInBody {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.neon {
  animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
  from { text-shadow: 0 0 10px #8000ff, 0 0 20px #8000ff; }
  to   { text-shadow: 0 0 20px #a833ff, 0 0 40px #a833ff; }
}

.neon-gas {
  color: #ffffff;
  text-shadow:
    0 0 2px #fff,
    0 0 4px #bb00ff,
    0 0 6px #bb00ff,
    0 0 12px #8000ff,
    0 0 20px #8000ff;
  font-weight: bold;
  letter-spacing: 1px;
  animation: neonSoftPulse 2.5s ease-in-out infinite;
}

@keyframes neonSoftPulse {
  0%, 100% {
    text-shadow:
      0 0 2px #fff,
      0 0 4px #bb00ff,
      0 0 6px #bb00ff,
      0 0 12px #8000ff,
      0 0 20px #8000ff;
  }
  50% {
    text-shadow:
      0 0 1px #fff,
      0 0 3px #a000ff,
      0 0 5px #8000ff,
      0 0 10px #5e00c8,
      0 0 15px #5e00c8;
  }
}

/* ==== AR & CAROUSEL ==== */
.carousel {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.carousel-track {
  display: flex;
  gap: 20px;
  padding: 20px 10px;
}

.carousel-item {
  width: 180px;
  flex-shrink: 0;
  background: rgba(0,0,0,0.3);
  border-radius: 12px;
  text-align: center;
  padding: 10px;
  box-shadow: 0 0 6px #8000ff;
}

.carousel-item img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 10px;
}

.ar-button {
  display: inline-block;
  margin: 6px 4px;
  background: #8000ff;
  color: white;
  padding: 10px;
  border-radius: 10px;
  text-decoration: none;
  box-shadow: 0 0 6px #a833ff;
}

.ar-button:hover {
  background: #a833ff;
}

.ar-highlight {
  font-size: 1.1em;
  font-weight: bold;
  color: #ffd700;
  text-shadow: 0 0 6px #ff00ff, 0 0 12px #a833ff;
}

.ar-heading-box {
  background: rgba(0, 0, 0, 0.65);
  padding: 20px 16px;
  border-radius: 16px;
  box-shadow: 0 0 14px #a833ff;
  max-width: 90%;
  margin: auto;
  margin-bottom: 20px;
  animation: fadeInBody 1s ease-in;
}

/* ==== RADAR ==== */
.radar-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

.radar {
  position: relative;
  width: 400px;
  height: 400px;
  background: url('radar-background.png') no-repeat center center;
  background-size: cover;
  border-radius: 50%;
  overflow: hidden;
}

.sweep {
  position: absolute;
  width: 100%;
  height: 100%;
  background: conic-gradient(
    from 90deg,
    rgba(0, 255, 0, 0.5) -20deg 20deg,
    transparent 20deg 340deg
  );
  border-radius: 50%;
  animation: rotateSweep 6s linear infinite;
  z-index: 0;
}

@keyframes rotateSweep {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.radar-logo {
  position: absolute;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: contain;
  border: 2px solid white;
  box-shadow: 0 0 6px #a833ff;
  background: white;
  z-index: 1;
  cursor: pointer;
}

.radar-logo.highlighted {
  box-shadow: 0 0 20px #ffd700;
}

/* ==== MODAL ==== */
#radar-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.radar-modal-content {
  background: rgba(20, 0, 40, 0.95);
  border: 2px solid #a833ff;
  border-radius: 16px;
  padding: 30px 20px;
  max-width: 90%;
  max-height: 90%;
  overflow-y: auto;
  box-shadow: 0 0 20px #a833ff;
  text-align: center;
  position: relative;
}

#radar-modal-close {
  position: absolute;
  top: 10px;
  right: 16px;
  background: #8000ff;
  border: none;
  color: white;
  font-size: 1.2em;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 0 8px #a833ff;
}

#radar-modal-close:hover {
  background: #a833ff;
}

/* ==== WELCOME POPUP ==== */
#radar-welcome-popup {
  position: absolute;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(30, 0, 60, 0.95);
  border: 2px solid #a833ff;
  border-radius: 16px;
  padding: 20px;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 0 20px #ff00ff;
  z-index: 99999;
  animation: fadeInPopup 0.6s ease-in-out;
}

.popup-content {
  position: relative;
  color: white;
  font-size: 0.95em;
  line-height: 1.4;
  text-align: left;
}

.popup-content strong {
  color: #ffd700;
}

.popup-close {
  position: absolute;
  top: -10px;
  right: -10px;
  background: #8000ff;
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  font-size: 1em;
  color: white;
  cursor: pointer;
  box-shadow: 0 0 8px #ff00ff;
}

.popup-close:hover {
  background: #a833ff;
}

@keyframes fadeInPopup {
  from {
    opacity: 0;
    transform: translate(-50%, -10px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

/* ==== CONSENT OVERLAY ==== */
.consent-overlay {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 500px;
  margin: auto;
  background: rgba(0, 0, 0, 0.85);
  color: white;
  border: 2px solid #8000ff;
  border-radius: 12px;
  padding: 20px;
  z-index: 9999;
  box-shadow: 0 0 20px #a833ff;
  text-align: center;
  font-size: 0.95em;
  animation: fadeInConsent 0.6s ease-in-out;
}

.consent-overlay button {
  margin-top: 15px;
  padding: 10px 18px;
  background: #8000ff;
  border: none;
  border-radius: 8px;
  color: white;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 0 10px #a833ff;
  transition: background 0.2s ease;
}

.consent-overlay button:hover {
  background: #a833ff;
}

@keyframes fadeInConsent {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
