/* Body & Background */
body {
  margin: 0;
  font-family: 'Courier New', monospace;
  background: #000;
  color: rgb(255, 0, 242);
  overflow-x: hidden;
  background-image: radial-gradient(rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 20px 20px;
}

/* Discord Username Input */
#discord-username {
  width: 100%;
  padding: 1px;
  margin-top: 10px;
  align-self: center;
  border: 2px solid rgb(99, 0, 119);
  background: rgba(0,0,0,0.8);
  color: rgb(99, 0, 119);
  font-family: 'Courier New', monospace;
  font-size: 0.95em;
  border-radius: 3px;
  outline: none;
  box-shadow: 0 0 5px rgb(99, 0, 119) inset, 0 0 10px rgb(99, 0, 119);
  transition: all 0.25s ease-in-out;
}

/* Category Buttons */
.category-btn {
  display: inline-block;
  margin: 5px;
  padding: 10px 20px;
  background: rgba(0,0,0,0.8);
  border: 2px solid rgb(99, 0, 119);
  color: rgb(217 217 217);
  font-weight: bold;
  font-size: 1em;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  cursor: pointer;
  border-radius: 5px;
  box-shadow: 0 0 5px rgb(99, 0, 119) inset, 0 0 10px rgb(99, 0, 119);
  transition: all 0.25s ease-in-out;
}

.category-btn:hover {
  background: rgb(255 255 255);
  color: #000;
  box-shadow: 0 0 15px rgb(99, 0, 119) inset, 0 0 30px rgb(99, 0, 119);
  transform: scale(1.05);
}

.category-btn.active {
  background: rgb(255 255 255);
  color: #000;
  box-shadow: 0 0 20px rgb(99, 0, 119) inset, 0 0 40px rgb(99, 0, 119);
}

/* Placeholder color */
#discord-username::placeholder {
  color: rgba(99, 0, 119, 0.6);
  text-shadow: 0 0 5px rgba(99, 0, 119, 0.4);
}

/* Focus effect */
#discord-username:focus {
  background: rgba(0, 0, 0, 0.9);
  border-color: rgb(99, 0, 119);
  box-shadow:
    0 0 15px rgb(99, 0, 119) inset,
    0 0 25px rgb(99, 0, 119),
    0 0 40px rgb(99, 0, 119);
  transform: scale(1.03);
}

header {
  position: relative;
  padding: 20px;
  text-align: center;
  font-size: 2em;
  letter-spacing: 2px;
  color: rgb(99, 0, 119);
  text-shadow: 0 0 10px rgb(99, 0, 119);
}

header::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 80%;
  background: rgba(0,255,0,0.05);
  filter: blur(40px);
  z-index: -1;
  border-radius: 10px;
}

/* Modal Base */
.modal {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.95);
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

/* WebKit Scrollbars */
.modal-text::-webkit-scrollbar {
  width: 12px;
}
.modal-text::-webkit-scrollbar-track {
  background: rgba(0,0,0,0.3);
  border-radius: 6px;
}
.modal-text::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #ff69b4, #ffff00);
  border-radius: 6px;
  border: 2px solid rgba(0,0,0,0.5);
  box-shadow: 0 0 5px #ff69b4 inset;
}
.modal-text::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #ff69b4, #ffff00);
  box-shadow: 0 0 10px #ff69b4 inset;
}

/* Firefox Scrollbar */
.modal-text {
  scrollbar-width: thin;
  scrollbar-color: #69e1ff #000;
}

/* Modal Content */
.modal-content {
  background: rgba(0,0,0,0.85);
  border: 2px solid #ff69b4;
  padding: 30px;
  max-width: 600px;
  width: 90%;
  text-align: left;
  color: #ff69b4;
  box-shadow: 0 0 20px #ff69b4, 0 0 40px #ff69b4 inset;
  border-radius: 8px;
  font-family: 'Courier New', monospace;
  animation: neonFadeIn 0.3s ease;
}
@keyframes neonFadeIn {
  0% { opacity: 0; transform: scale(0.9); }
  100% { opacity: 1; transform: scale(1); }
}
.modal-content h2 {
  text-align:center;
  margin-top:0;
  font-size: 1.8em;
  text-shadow: 0 0 5px #ff69b4, 0 0 20px #ffff00;
}
.modal-text {
  max-height: 400px;
  overflow-y: auto;
  margin-top: 15px;
  line-height: 1.4em;
}
.modal-text ul {
  padding-left: 20px;
}
.modal-text li {
  margin-bottom: 10px;
  list-style: square;
}
.close-btn {
  display: block;
  margin: 20px auto 0;
  padding: 10px 20px;
  border: 2px solid #ff69b4;
  background: transparent;
  color: #ff69b4;
  cursor: pointer;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.25s ease;
}
.close-btn:hover {
  background: #ff69b4;
  color: #000;
  box-shadow: 0 0 15px #ff69b4 inset, 0 0 30px #ffff00;
  transform: scale(1.05);
}

/* Start Modal */
#start-modal {
  position: fixed;
  top:0; left:0; right:0; bottom:0;
  background: rgba(0,0,0,0.95);
  display:flex;
  justify-content:center;
  align-items:center;
  flex-direction:column;
  z-index: 1000;
  color:rgb(99, 0, 119);
  text-align:center;
}
#start-btn {
  padding: 15px 40px;
  margin-top: 20px;
  border: 2px solid rgb(99, 0, 119);
  background: transparent;
  color: rgb(99, 0, 119);
  cursor: pointer;
  font-size: 1.2em;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}
#start-btn:hover {
  background: rgb(99, 0, 119);
  color: #000;
  box-shadow: 0 0 10px rgb(99, 0, 119), 0 0 20px rgb(99, 0, 119) inset;
}

/* Loading Overlay */
#loading-overlay {
  position: fixed;
  top:0; left:0; right:0; bottom:0;
  background: rgba(0,0,0,0.95);
  display:flex;
  justify-content:center;
  align-items:center;
  color:rgb(99, 0, 119);
  font-size:1.5em;
  letter-spacing: 1px;
  z-index: 2000;
}

#audio-visualizer {
  position: fixed;
  top: 0;
  left: 0%;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -10;
  align-self: center;
}

/* Cart Feedback Toast */
#cart-feedback {
  position: fixed;
  bottom: 100px;
  right: 20px;
  background: rgba(0,0,0,0.9);
  color: rgb(99, 0, 119);
  padding: 10px 20px;
  border: 2px solid rgb(99, 0, 119);
  border-radius: 5px;
  box-shadow: 0 0 10px rgb(99, 0, 119) inset, 0 0 20px rgb(99, 0, 119);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

/* ===== VERTICAL LAYOUT CHANGES ===== */
.product-grid {
  display: block;
  padding: 20px;
}

.product {
  display: block;
  width: 100%;
  margin-bottom: 10px;
  background: rgba(0,0,0,0.8);
  border: 2px solid rgb(99, 0, 119);
  padding: 15px;
  flex-direction: column;
  align-items: flex-start;
}

.category-header {
  display: block;
  width: 100%;
  font-weight: bold;
  text-align: center;
  font-size: 1.3em;
  margin: 20px 0;
  color: rgb(29 255 0);
  letter-spacing: 2px;
  cursor: pointer;
  text-shadow: 0 0 5px rgb(99, 0, 119), 0 0 10px rgb(99, 0, 119);
}
.category-header::before,
.category-header::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid rgb(99, 0, 119);
  margin: 0 10px;
  display: inline-block;
  vertical-align: middle;
}

/* Product Buttons */
.product button,
#checkout-btn,
#toggle-music {
  padding: 10px 20px;
  border: 2px solid rgb(99, 0, 119);
  background: transparent;
  color: rgb(99, 0, 119);
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s ease;
  margin-top: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.product button:hover,
#checkout-btn:hover,
#toggle-music:hover {
  background: rgb(99, 0, 119);
  color: #000;
  box-shadow: 0 0 10px rgb(99, 0, 119), 0 0 20px rgb(99, 0, 119) inset;
}

/* Disabled buttons */
button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  border-color: #555;
  color: #555;
}

/* Cart */
.cart {
  position: fixed;
  top: 20px;
  right: 20px;
  background: rgba(0,0,0,0.9);
  border: 2px solid rgb(99, 0, 119);
  padding: 15px;
  max-width: 250px;
  font-size: 0.9em;
}
.cart h3 {
  margin-top: 0;
  text-align:center;
  letter-spacing: 1px;
  text-shadow: 0 0 5px rgb(99, 0, 119);
}
.cart ul {
  list-style:none;
  padding:0;
  margin:10px 0;
}
.cart ul li {
  margin-bottom:5px;
}

/* Music Button */
#toggle-music {
  position: fixed;
  bottom: 20px;
  left: 20px;
}

/* General Buttons */
button {
  padding: 12px 30px;
  border: 2px solid rgb(99, 0, 119);
  background: linear-gradient(145deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.6) 100%);
  color: rgb(99, 0, 119);
  cursor: pointer;
  font-weight: bold;
  font-size: 1em;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  transition: all 0.25s ease-in-out;
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  box-shadow: 0 0 5px rgb(99, 0, 119) inset, 0 0 10px rgb(99, 0, 119);
}
@keyframes neonPulse {
  0% { box-shadow: 0 0 5px rgb(99, 0, 119) inset, 0 0 10px rgb(99, 0, 119); }
  50% { box-shadow: 0 0 15px rgb(99, 0, 119) inset, 0 0 30px rgb(99, 0, 119); transform: scale(1.05); }
  100% { box-shadow: 0 0 5px rgb(99, 0, 119) inset, 0 0 10px rgb(99, 0, 119); transform: scale(1); }
}
.remove-btn {
  background: #000;
  border: 1px solid #ff69b4;
  color: #ff69b4;
  margin-left: 8px;
  cursor: pointer;
  font-weight: bold;
  border-radius: 3px;
  padding: 2px 6px;
  transition: all 0.25s;
}
.remove-btn:hover {
  background: #ff69b4;
  color: #000;
  box-shadow: 0 0 10px #ff69b4, 0 0 20px #ff69b4 inset;
  transform: scale(1.1);
}
.cart.flash {
  animation: neonPulse 0.4s ease-in-out;
}
button:hover {
  background: rgb(99, 0, 119);
  color: #000;
  box-shadow:
    0 0 10px rgb(99, 0, 119) inset,
    0 0 20px rgb(99, 0, 119),
    0 0 30px rgb(99, 0, 119);
  transform: scale(1.05);
}
#checkout-btn {
  width: 100%;
  font-size: 1.1em;
  padding: 15px 0;
  margin-top: 10px;
  border: 2px dashed rgb(99, 0, 119);
  background: linear-gradient(135deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.65) 100%);
  box-shadow: 0 0 10px rgb(99, 0, 119), 0 0 20px rgb(99, 0, 119) inset;
}
#checkout-btn:hover {
  background: rgb(99, 0, 119);
  color: #000;
  box-shadow: 0 0 15px rgb(99, 0, 119) inset, 0 0 30px rgb(99, 0, 119);
  transform: scale(1.05);
}
#toggle-music {
  padding: 12px 20px;
  border: 2px solid rgb(99, 0, 119);
  background: linear-gradient(145deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.5) 100%);
  color: rgb(99, 0, 119);
  font-weight: bold;
  font-size: 1em;
  text-transform: uppercase;
  box-shadow: 0 0 5px rgb(99, 0, 119) inset, 0 0 15px rgb(99, 0, 119);
  transition: all 0.25s ease;
  border-radius: 3px;
}
#toggle-music:hover {
  background: rgb(99, 0, 119);
  color: #000;
  box-shadow: 0 0 20px rgb(99, 0, 119), 0 0 40px rgb(99, 0, 119) inset;
  transform: scale(1.05);
}
