/* =========================
   GLOBAL RESET
========================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background: black;
  color: white;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

/* =========================
   GLOBAL BUTTON
========================= */

.btn {
  margin-top: 30px;
  padding: 14px 28px;
  background: white;
  color: black;
  border: none;
  border-radius: 12px;
  font-weight: 800;
  letter-spacing: 2px;
  cursor: pointer;
  transition: 0.3s;
}

.btn:hover {
  transform: scale(1.05);
}

/* =========================================================
   INDEX PAGE (STRAFEX LANDING - ORIGINAL STYLE RESTORED)
========================================================= */

.index {
  text-align: center;
}

/* TOP TEXT */
.top-text {
  position: absolute;
  top: 30px;
  width: 100%;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.3em;
  color: #666;
}

/* MAIN LAYOUT */
.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 80px 20px;
  text-align: center;
}

/* TITLE */
.title {
  font-size: 90px;
  letter-spacing: 18px;
  font-weight: 900;
}

/* SUBTITLE */
.subtitle {
  color: #aaa;
  letter-spacing: 6px;
  margin-top: 10px;
}

/* TAG */
.tag {
  margin: 20px 0 40px;
  padding: 10px 20px;
  border: 1px solid #222;
  border-radius: 999px;
  color: #bbb;
}

/* PRODUCT PREVIEW */
.product-wrap {
  text-decoration: none;
}

.mousepad-preview {
  width: 420px;
  height: 420px;
  background: linear-gradient(145deg, #111, #000);
  border: 1px solid #222;
  border-radius: 24px;
  position: relative;
  box-shadow: 0 30px 80px rgba(255, 255, 255, 0.05);
  transition: 0.3s;
}

.mousepad-preview:hover {
  transform: scale(1.03);
}

/* STRAFEX CORNER */
.corner-text {
  position: absolute;
  bottom: 20px;
  right: 20px;
  font-size: 18px;
  letter-spacing: 6px;
  font-weight: 700;
}

/* COUNTDOWN (2x2 GRID FIXED) */
.countdown {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  width: 280px;
}

.box {
  border: 1px solid #222;
  padding: 20px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
}

.box div {
  font-size: 40px;
  font-weight: bold;
}

.box span {
  font-size: 10px;
  color: #777;
  letter-spacing: 0.2em;
}

/* BOTTOM TEXT */
.bottom-text {
  position: absolute;
  bottom: 30px;
  width: 100%;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.3em;
  color: #666;
}

/* =========================================================
   MOUSEPAD PAGE (FULL FIXED + RESPONSIVE)
========================================================= */

.product-page {
  text-align: center;
  padding: 20px;
}

/* HEADER */
.topbar {
  display: flex;
  justify-content: center;
  padding: 20px;
}

.logo {
  height: 70px;
}

/* CONTENT */
.content {
  padding: 20px;
}

.title {
  font-size: clamp(22px, 5vw, 40px);
  letter-spacing: 4px;
  font-weight: 900;
}

.info {
  color: #aaa;
  margin: 5px 0;
  font-size: 14px;
}

/* MAIN GALLERY */
.gallery {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;

  width: 95%;
  max-width: 500px;
  margin: 30px auto;

  border: 1px solid #222;
  border-radius: 18px;

  -webkit-overflow-scrolling: touch;
}

.gallery::-webkit-scrollbar {
  display: none;
}

.gallery img {
  flex: 0 0 100%;
  width: 100%;
  scroll-snap-align: center;
}

/* THUMBS */
.thumbs {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 15px;
}

.thumbs img {
  width: 60px;
  height: 60px;
  border-radius: 10px;
  border: 1px solid #222;
  object-fit: cover;
  cursor: pointer;
  transition: 0.2s;
}

.thumbs img:hover {
  transform: scale(1.1);
}

/* DETAILS */
.details {
  margin-top: 40px;
  color: #aaa;
}

.details h2 {
  color: white;
  margin-bottom: 10px;
}

.details ul {
  list-style: none;
}

.details li {
  margin: 6px 0;
  font-size: 14px;
}

/* =========================
   RESPONSIVE FIXES
========================= */

@media (max-width: 768px) {

  .title {
    font-size: 42px;
    letter-spacing: 8px;
  }

  .mousepad-preview {
    width: 280px;
    height: 280px;
  }

  .countdown {
    width: 220px;
  }

  /* =========================
   MAIN GALLERY (FIXED CENTER ALIGNMENT)
========================= */

.gallery {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;

  width: 95%;
  max-width: 500px;
  margin: 30px auto;

  border: 1px solid #222;
  border-radius: 18px;

  -webkit-overflow-scrolling: touch;

  /* IMPORTANT FIX */
  align-items: center;
}

/* hide scrollbar */
.gallery::-webkit-scrollbar {
  display: none;
}

/* EACH SLIDE FIX */
.gallery img {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;

  scroll-snap-align: center;

  /* 🔥 THIS FIXES THE OFF-CENTER ISSUE */
  object-fit: contain;
  display: block;
  margin: auto;
}

  .thumbs img {
    width: 50px;
    height: 50px;
  }
}

.email-input{
  margin-top:20px;
  padding:12px 16px;
  width:240px;
  border-radius:10px;
  border:1px solid #222;
  background:#0a0a0a;
  color:white;
  outline:none;
  text-align:center;
}

.email-input:focus{
  border-color:#555;
}


/* =========================
   LOGIN BOX
========================= */

#loginBox {
  max-width: 320px;
  margin: 0 auto;
  padding: 25px;

  border-radius: 16px;
  border: 1px solid #222;

  background: rgba(255,255,255,0.02);
  backdrop-filter: blur(10px);

  text-align: center;
}

#loginBox input {
  width: 100%;
  padding: 12px;
  margin-bottom: 12px;

  border-radius: 10px;
  border: 1px solid #222;

  background: #0a0a0a;
  color: white;
  text-align: center;
  outline: none;
}

#loginBox button {
  width: 100%;
  padding: 12px;

  border-radius: 10px;
  border: none;

  background: white;
  color: black;
  font-weight: bold;
  letter-spacing: 0.2em;

  cursor: pointer;
  transition: 0.2s;
}

#loginBox button:hover {
  transform: scale(1.05);
}


/* =========================
   ADMIN PANEL WRAPPER
========================= */

#adminPanel {
  max-width: 800px;
  margin: 30px auto;
}


/* =========================
   SUBSCRIBER COUNT (ADMIN)
========================= */

.admin-stats {
  text-align: center;
  font-size: 18px;
  letter-spacing: 0.2em;
  margin-bottom: 20px;
}

#totalSubs {
  color: #00ffcc;
  font-weight: 900;
}


/* =========================
   EMAIL LIST
========================= */

#emailList {
  list-style: none;
  padding: 0;
}

#emailList li {
  padding: 14px 16px;
  margin-bottom: 10px;

  border-radius: 12px;
  border: 1px solid #222;

  background: rgba(255,255,255,0.03);

  color: #ccc;
  font-size: 14px;

  word-break: break-word;
  transition: 0.2s;
}

#emailList li:hover {
  transform: translateX(5px);
  background: rgba(255,255,255,0.06);
  color: white;
}

/* =========================
   LIVE COUNTER (MATCH COUNTDOWN STYLE)
========================= */

.counter-wrap {
  margin-top: 18px;
  display: flex;
  justify-content: center;
}

.counter-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid #222;
  border-radius: 14px;

  padding: 12px 18px;

  color: #777;
  font-size: 12px;
  letter-spacing: 0.2em;
  font-weight: 600;

  display: inline-flex;
  align-items: center;
  gap: 6px;

  backdrop-filter: blur(10px);
}

/* number highlight */
#subCount {
  color: white;
  font-weight: 900;
  letter-spacing: 0.1em;
}