* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  background: linear-gradient(180deg, #020617, #000);
  color: #fff;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: url("https://grainy-gradients.vercel.app/noise.svg");
  opacity: 0.03;
  pointer-events: none;
}


/* HEADER */
.header {
  background: linear-gradient(180deg, #020617, #000);
  padding: 30px;
  box-shadow: 0 0 40px rgba(59,130,246,0.5);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 18px;
}

.logo {
  width: 52px;
  height: 52px;

  object-fit: cover;       /* keeps logo clean */
  border-radius: 14px;     /* rounded square */

  background: #020617;     /* dark base */
  padding: 6px;            /* space for glow */

  box-shadow:
    0 0 12px rgba(59,130,246,0.6),
    0 0 30px rgba(59,130,246,0.4);

  transition: 0.3s ease;
}
.logo:hover {
  box-shadow:
    0 0 18px rgba(59,130,246,0.8),
    0 0 40px rgba(59,130,246,0.6);
}

.header h1 {
  color: #3b82f6;
  letter-spacing: 2px;
}

.header p {
  color: #9ca3af;
  margin-top: 4px;
}

/* MAIN */
@media (max-width: 768px) {
  .container {
    margin: 20px auto; /* reduce vertical spacing */
  }
}

/* HOW TO */
.howto {
  background: var(--panel);
  border-radius: 22px;
  padding: 40px;
  border: 1px solid var(--border);
  backdrop-filter: blur(20px);
}

.howto h2 {
  text-align: center;
  margin-bottom: 30px;
}

.howto ul {
  list-style: none;
  display: grid;
  gap: 16px;
}

.howto li {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
}

/* bullet / icon */
.howto li span {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: grid;
  place-items: center;
  color: white;
  font-size: 13px;
  font-weight: 600;
}

/* premium line */
.premium-line {
  margin-top: 12px;
}

.premium-line a {
  color: var(--accent-2);
  font-weight: 600;
  text-decoration: none;
}

.premium-line a:hover {
  text-decoration: underline;
}

/* CARDS */
.cards {
  display: flex;
  gap: 30px;
  margin-top: 40px;
}

.card {
  flex: 1;
  background: #020617;
  border-radius: 18px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 0 30px rgba(59,130,246,0.3);
}

.card h3 {
  color: #3b82f6;
  margin-bottom: 8px;
}

.card p {
  color: #9ca3af;
  margin-bottom: 25px;
}

.card button {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 12px;
  background: #1e3a8a;
  color: #fff;
  font-size: 16px;
  cursor: not-allowed;
}

.card button.active {
  background: #3b82f6;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(59,130,246,0.8);
}
/* HEADER RIGHT */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* DISCORD BUTTON (MATCH HEADER BG) */
.discord-header-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;

  padding: 10px 20px;
  border-radius: 999px;

  background: #020617; /* SAME AS HEADER */
  color: #e5e7eb;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;

  border: 1px solid rgba(59,130,246,0.35);
  box-shadow: 0 0 15px rgba(59,130,246,0.25);

  transition: 0.3s ease;
}

.discord-header-btn img {
  width: 18px;
  filter: invert(1);
}

/* HOVER */
.discord-header-btn:hover {
  background: #020617;
  box-shadow: 0 0 25px rgba(59,130,246,0.6);
  transform: translateY(-1px);
}

/* VIDEO SECTION */
.video-section {
  padding: 80px 20px 40px;
  text-align: center;
}

.video-title {
  color: #3b82f6;
  margin-bottom: 30px;
}

/* GRID */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 26px;
  max-width: 1200px;
  margin: 0 auto;
}

/* CARD */
.video-card {
  background: #020617;
  border-radius: 18px;
  padding: 12px;
  box-shadow: 0 0 35px rgba(59,130,246,0.35);
}

/* VIDEO */
.video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
}

.video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* =========================
   MOBILE / ANDROID HEADER
========================= */
@media (max-width: 768px) {

  .header {
    padding: 12px 16px;
    gap: 10px;
  }

  .header-left {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .logo {
    width: 34px;
    height: 34px;
  }

  .header-left h1 {
    font-size: 16px;
    line-height: 1.1;
  }

  .header-left p {
    font-size: 11px;
    opacity: 0.8;
    display: none; /* HIDE subtitle on mobile */
  }

  .discord-btn {
    padding: 8px 12px;
    font-size: 12px;
    border-radius: 10px;
    white-space: nowrap;
  }
}

/* LOADING SCREEN */
#loader {
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, #020617, #000);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
body.loading {
  overflow: hidden;
}

.loader-content {
  text-align: center;
}

/* LOADING GIF */
.loader-gif {
  width: 120px;
  height: auto;
  margin-bottom: 20px;
}

.loading-text {
  margin-top: 10px;
  font-size: 13px;
  color: #9ca3af;
  letter-spacing: 1px;
  animation: fadeText 1.6s infinite alternate;
}

@keyframes fadeText {
  from { opacity: 0.4; }
  to { opacity: 1; }
}

@media (max-width: 768px) {
  .loader-gif {
    width: 90px;
  }
}


/* SPINNER */
.spinner {
  width: 42px;
  height: 42px;
  border: 4px solid rgba(59,130,246,0.2);
  border-top-color: #3b82f6;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 14px;
}

#loader p {
  font-size: 13px;
  color: #9ca3af;
}

/* ANIMATION */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@media (max-width: 768px) {
  .video-section {
    padding: 30px 16px 20px; /* FIX giant gap */
  }
}

/* your existing CSS above */
/* your existing CSS above */
/* your existing CSS above */


/* ===========================
   ANDROID FORCE LAYOUT FIX
   =========================== */
@media (max-width: 768px) {

  html, body {
    height: auto !important;
    min-height: auto !important;
    overflow-x: hidden;
  }

  section,
  .container,
  .video-section,
  .cards,
  .howto,
  .feature-showcase {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 24px !important;
    padding-bottom: 24px !important;
    min-height: auto !important;
    height: auto !important;
  }

  .video-section {
    padding-top: 20px !important;
    padding-bottom: 20px !important;
  }

  .video-grid {
    grid-template-columns: 1fr !important;
  }

  .video-card {
    margin-bottom: 16px;
  }
}

/* FOOTER */
.site-footer {
  text-align: center;
  padding: 20px 10px;
  margin-top: 40px;

  color: #9ca3af;
  font-size: 12px;

  background: transparent;
  border-top: 1px solid rgba(59,130,246,0.2);
}

@media (max-width: 768px) {
  .site-footer {
    font-size: 11px;
    padding: 16px 8px;
  }
}

@keyframes pulseGlow {
  0% {
    transform: scale(1);
    box-shadow:
      0 0 15px rgba(59,130,246,0.4),
      0 0 30px rgba(59,130,246,0.2);
  }
  50% {
    transform: scale(1.05);
    box-shadow:
      0 0 30px rgba(59,130,246,0.8),
      0 0 60px rgba(59,130,246,0.6);
  }
  100% {
    transform: scale(1);
    box-shadow:
      0 0 15px rgba(59,130,246,0.4),
      0 0 30px rgba(59,130,246,0.2);
  }
}

.loader-gif {
  animation: pulseGlow 2.2s ease-in-out infinite;
  border-radius: 22px;
}

.loader-gif {
  animation: glowSpin 4s ease-in-out infinite;
  border-radius: 24px;
}

.card button.active {
  transition: 0.2s ease;
}

.card button.active:hover {
  transform: translateY(-2px);
}

.card button.active:active {
  transform: scale(0.97);
}

/* MOBILE */
@media (max-width: 800px) {
  .cards {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .card {
    box-shadow: 0 0 18px rgba(59,130,246,0.25);
  }
}

.access-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.online-count {
  font-size: 13px;
  color: #9ca3af;
  white-space: nowrap;
}

#users {
  transition: opacity 0.3s ease;
}

@media (max-width: 768px) {
  .howto h2 {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}

.online-count #users {
  color: #3b82f6;
  font-weight: 600;
}