body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background: black;
  color: white;
  font-family: 'Poppins', sans-serif;
}

#starfield {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: -1;
  background: black;
}

/* Main site styles (keep as in your last valid version) */
header {
  text-align: center;
  padding: 80px 20px;
  animation: fadeIn 2s ease-in-out;
}
header h1 {
  font-size: 3em;
  font-family: "Michroma", sans-serif;
  font-weight: 400;
  background: linear-gradient(90deg, #ffffffff, #17acfcff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: glow 2s infinite alternate;
}
header p {
  font-size: 1.2em;
  max-width: 600px;
  margin: auto;
}

@keyframes glow {
  from { text-shadow: 0 0 10px #7c7c7cff; }
  to { text-shadow: 0 0 20px #414141ff; }
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-30px);}
  to { opacity: 1; transform: translateY(0);}
}

/* Product categories, stats, reviews, etc. — style as before */
.section { 
    padding: 50px 20px; text-align: center;
}
.howto{
    font-family: "Press Start 2P", system-ui;
}
.cat{
    font-family: "Bungee", sans-serif;
}
.teext{
  font-family: "Source Code Pro", monospace;
  font-optical-sizing: auto;
  font-weight: <weight>;
  font-style: normal;
  font-size: 12px;
}
.Payy {
  font-family: "Bungee", sans-serif;
  font-weight: 400;
  font-style: normal;
}
.details{
  font-family: "Josefin Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 600;
  font-style: normal;
}
.categories {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}
.category {
  position: relative;
  background: rgba(255,255,255,0.08);
  padding: 20px;
  width: 300px;
  border-radius: 15px;
  backdrop-filter: blur(10px);
  overflow: hidden;
  transition: transform 0.3s;
}

.category::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    130deg,
    transparent 0%,
    rgba(255, 255, 255, 0.77) 50%,
    transparent 100%
  );
  transform: translate(-100%, 100%) rotate(25deg);
  pointer-events: none; /* so it doesn't block hover */
}

/* Trigger one-time shine on hover */
.category:hover::before {
  animation: shine-move 0.9s ease forwards;
}

@keyframes shine-move {
  0% {
    transform: translate(-100%, 100%) rotate(25deg);
  }
  100% {
    transform: translate(100%, -100%) rotate(25deg);
  }
}

/* Slight zoom on hover */
.category:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(231, 231, 231, 0.95);
}


/* Default text styles */
.category h2 {
  margin-bottom: 10px;
  color: #ffa7f2ff;
  transition: transform 0.3s ease, text-shadow 0.3s ease;
}

.category p {
  color: #ccc;
  font-size: 0.95em;
  opacity: 0.8;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* When hovered */
.category:hover h2 {
  transform: translateY(-5px);
  text-shadow: 0 0 10px #ff63e0, 0 0 20px #ff63e0;
}

.category:hover p {
  transform: translateY(-3px);
  opacity: 1;
}

.steps {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}
.step {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    width: 220px;
    transition: transform 0.3s;
    backdrop-filter: blur(10px);
}
.step:hover { transform: translateY(-5px); }
.step h3 { color: #00ffea; }

/* Stats */
.stats { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; }
.stat { 
    font-size: 2em; color: #00ff88; 
    font-family: "Bitcount Grid Single", system-ui;
    font-optical-sizing: auto;
    font-weight: 300;
    font-style: normal;
    font-variation-settings:
        "slnt" 0,
        "CRSV" 0.5,
        "ELSH" 0,
        "ELXP" 0;
}

/* Reviews */
.reviews { max-width: 600px; margin: auto; background: rgba(0,0,0,0.3); padding: 20px; border-radius: 10px;}
.review { display: none; animation: fadeIn 1s;}
.review.active { display: block; }

footer { 
  text-align: center; 
  padding: 20px; 
  font-size: 0.9em; 
  opacity: 0.2; 
  font-family: "Rowdies", sans-serif;
  font-weight: 700;
  font-style: normal;
}

.category h2 {
  background: linear-gradient(90deg, #ff00ddff, #ffffff, #ff00ddff);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientSideways 4s linear infinite;
}

@keyframes gradientSideways {
  0% { background-position: 0% 0%; }
  100% { background-position: 200% 0%; }
}
/* Make site invisible at start to allow fade-in */
body { opacity: 0; transition: opacity 1s; }
#svg-loader {
  background: black;
  position: fixed;
  z-index: 9999;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s;
}
#svg-loader svg { color: white; display: block; }
/* Overlay background */
#overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.7);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
  z-index: 900;
}
#overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* Expanded category */
.category {
  position: relative;
  background: rgba(255,255,255,0.08);
  padding: 20px;
  width: 300px;
  border-radius: 15px;
  backdrop-filter: blur(10px);
  overflow: hidden;
  transition: all 0.5s ease;
  cursor: pointer;
  z-index: 1;
}

.category.expanded {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1);
  width: 80vw;
  height: 70vh;
  z-index: 1001;
  padding: 40px;
  box-shadow: 0 0 30px rgba(255,255,255,0.9);
  animation: expandBox 0.4s ease forwards;
}

@keyframes expandBox {
  0%   {transform: translate(-50%, -50%) scale(0.5); opacity: 0;}
  100% {transform: translate(-50%, -50%) scale(1); opacity: 1;}
}

.category.expanded h2 {
  font-size: 2em;
  margin-bottom: 20px;
}

.category .items {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: all 0.5s ease;
}
.category.expanded .items {
  opacity: 1;
  max-height: 100%;
  margin-top: 20px;
}
/* Smooth closing (collapse) */
@keyframes collapseBox {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(0.5); opacity: 0; }
}
.category.collapsing {
  animation: collapseBox 0.3s ease forwards;
}

.items ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.items ul li {
  padding: 10px;
  margin: 5px 0;
  background: rgba(255,255,255,0.15);
  border-radius: 8px;
  transition: transform 0.3s;
}
.items ul li:hover {
  transform: translateX(5px);
}
/* Expanded product grid inside box */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 15px;
  margin-top: 15px;
  text-align: left;
}
.section-heading {
  grid-column: 1 / -1;
  margin: 20px 0 10px;
  font-size: 1.2em;
  color: #17acfc;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  padding-bottom: 5px;
}
.product-card {
  background: rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 12px 15px;
  transition: transform 0.3s, background 0.3s;
  opacity: 0;
}
.product-card:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,0.2);
}
.product-name { font-weight: 600; color: #fff; margin-bottom: 4px; }
.old-price { text-decoration: line-through; color: #ff6b6b; margin-right: 8px; font-size: 0.85em; }
.new-price { color: #00ff88; font-weight: bold; }

@keyframes fadeInCard {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in {
  animation: fadeInCard 0.5s ease forwards;
}
.pixel-socket-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 60px 0 60px 0;
}

.pixel-btn-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  position: relative;
  outline: none;
}

/* The SOKET: bigger and less prominent (no glow) */
.pixel-btn-wrap::before {
  content: "";
  display: block;
  position: absolute;
  left: 50%;
  top: 50%;
  width: 230px;
  height: 58px;
  background: linear-gradient(180deg, #e0e6e0 0%, #bcc2bc 40%, #8e958a 70%, #505050 100%);
  border-radius: 10px;
  transform: translate(-50%, 10px);
  box-shadow:
    0 4px 12px 2px #46494265;
  z-index: 0;
  transition: box-shadow 0.25s, background 0.22s;
}

.pixel-btn-label {
  display: block;
  min-width: 206px;
  text-align: center;
  font-family: 'Press Start 2P', monospace, 'Poppins', monospace, sans-serif;
  font-size: 1.17em;
  letter-spacing: 2px;
  padding: 20px 0 15px 0;
  background: linear-gradient(180deg, #98ff91 3%, #58ca48 100%);
  color: #244b14;
  border: 3.2px solid #284030;
  border-bottom: 7px solid #44803a;
  border-radius: 7px;
  position: relative;
  box-shadow:
    0 3px 0 #e1f9cc,
    0 6px 0 #59b548,
    0 10px 0 #346e38,
    0 0 0 4px #344a38,
    0 0 0 12px #152215;
  image-rendering: pixelated;
  cursor: pointer;
  text-shadow: 1px 1px 0 #07612bff, 0 0 8px #dafeff77;
  transition:
    box-shadow 0.13s cubic-bezier(.64,2.2,.31,1),
    background 0.14s cubic-bezier(.67,2.2,.29,1),
    color 0.13s,
    border-bottom 0.13s,
    filter 0.16s,
    transform 0.14s cubic-bezier(.51,1.8,.42,1.7);
  z-index: 2;
  overflow: hidden; /* Ensures shine doesn't overflow */
}

/* SHINE - angled highlight sweep (always animating) */
.pixel-btn-shine {
  pointer-events: none;
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  border-radius: 7px;
  /* More visible: stronger white, slightly wider streak */
  background: linear-gradient(
    110deg,
    transparent 62%,
    rgba(255,255,255,0.83) 68%,
    rgba(255,255,255,0.67) 72%,
    transparent 77%
  );
  opacity: 0.65;
  mix-blend-mode: lighten;
  z-index: 3;
  animation: pixel-shine-move 1.9s infinite linear;
}
@keyframes pixel-shine-move {
  0%   { transform: translateX(-74%) translateY(19%) skewX(-14deg);}
  55%  { opacity: 0.8; }
  73%  { opacity: 0.44; }
  100% { transform: translateX(105%) translateY(-30%) skewX(-14deg);}
}

/* Slight pixel-arty gloss highlight for realism */
.pixel-btn-label::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 12px;
  top: 7px;
  height: 14px;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, #fff 80%, transparent 100%);
  opacity: 0.22;
  pointer-events: none;
}

/* HOVER: slightly pressed, slightly darker green */
.pixel-btn-wrap:hover .pixel-btn-label,
.pixel-btn-label:hover, 
.pixel-btn-label:focus {
  background: linear-gradient(180deg, #7edd73 6%, #379e29 98%);
  color: #142b0c;
  box-shadow:
    0 1.8px 0 #b7d5aa,
    0 5px 0 #377130,
    0 7px 0 #214a22,
    0 0 0 4px #344a38,
    0 0 0 12px #152215;
  border-bottom: 5.2px solid #377132;
  filter: brightness(0.98) saturate(1.03);
  transform: translateY(5px) scale(0.98);
}

/* PRESSED: deeply pressed, strong dark green glow ON the button */
.pixel-btn-wrap:active .pixel-btn-label,
.pixel-btn-label:active {
  background: linear-gradient(180deg, #387927 8%, #185611 99%);
  color: #101f0b;
  border-bottom: 2px solid #193e12;
  box-shadow:
    0 0 0 #e1f9cc,
    0 2px 0 #173a16,
    0 3px 0 #1a4416,
    0 0 0 6px #193e14,
    0 0 38px 1px #082112bb,
    0 0 12px 4px #004a1e,
    0 0 29px 5px #03ff2faa; /* ON-TOP GLOW ONLY */
  filter: brightness(0.97) saturate(0.98) drop-shadow(0 0 13px #0d3b0e);
  transform: translateY(13px) scale(0.95);
}

/* Make sure the socket looks stable even on press */
.pixel-btn-wrap:active::before {
  box-shadow: 0 1px 5px 2px #474d4265;
  background: linear-gradient(180deg, #d1d6cc 0%, #9ea59b 55%, #323338 100%);
}
