/* =========================
   GLOBAL SETTINGS
========================= */

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

:root {

  --background: #080811;

  --card: #131322;

  --purple: #8b5cf6;

  --blue: #00c8ff;

  --text: #ffffff;

  --muted: #a5a5bb;

  --border: #292941;

}

body {

  background: var(--background);

  color: var(--text);

  font-family: Arial, sans-serif;

  padding-bottom: 90px;

}

a {

  color: inherit;

  text-decoration: none;

}


/* =========================
   HEADER
========================= */

.header {

  display: flex;

  justify-content: space-between;

  align-items: center;

  padding: 20px;

  border-bottom: 1px solid #25253b;

}

.logo {

  font-size: 23px;

  font-weight: bold;

  letter-spacing: -0.5px;

}

.logo span {

  color: var(--blue);

}

.lang-btn {

  background: #202033;

  color: white;

  border: 1px solid #393952;

  padding: 9px 12px;

  border-radius: 9px;

  cursor: pointer;

}


/* =========================
   HERO SECTION
========================= */

.hero {

  margin: 20px;

  padding: 45px 22px;

  border-radius: 20px;

  background:

    radial-gradient(
      circle at top right,
      #5530a5,
      transparent 55%
    ),

    linear-gradient(
      135deg,
      #17132d,
      #10101c
    );

  border: 1px solid #39305b;

}

.hero-tag {

  color: var(--blue);

  font-size: 11px;

  letter-spacing: 2px;

  margin-bottom: 18px;

}

.hero h1 {

  font-size: 34px;

  line-height: 1.3;

  margin-bottom: 15px;

}

.hero h1 span {

  color: #a78bfa;

}

.hero-description {

  color: var(--muted);

  line-height: 1.7;

  font-size: 14px;

  margin-bottom: 25px;

}

.main-btn {

  display: inline-block;

  background: linear-gradient(
    90deg,
    #7c3aed,
    #2563eb
  );

  padding: 13px 22px;

  border-radius: 10px;

  font-weight: bold;

  transition: 0.3s;

}

.main-btn:hover {

  opacity: 0.85;

  transform: translateY(-2px);

}


/* =========================
   SECTIONS
========================= */

.section {

  padding: 20px;

  margin-bottom: 15px;

}

.section-heading {

  display: flex;

  justify-content: space-between;

  align-items: center;

  margin-bottom: 18px;

}

.section-heading h2 {

  font-size: 20px;

}

.section-heading a {

  color: var(--blue);

  font-size: 13px;

}


/* =========================
   PRODUCT GRID
========================= */

.product-grid {

  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 13px;

}

.product-card {

  background: var(--card);

  border: 1px solid var(--border);

  padding: 12px;

  border-radius: 14px;

  position: relative;

  overflow: hidden;

  transition: 0.3s;

}

.product-card:hover {

  border-color: var(--purple);

  transform: translateY(-3px);

}

.product-image {

  height: 125px;

  display: flex;

  align-items: center;

  justify-content: center;

  background: linear-gradient(
    135deg,
    #28204c,
    #111d38
  );

  border-radius: 10px;

  font-size: 45px;

  margin-bottom: 13px;

}

.featured-badge {

  color: #d8c5ff;

  font-size: 9px;

  background: #44247d;

  padding: 5px 7px;

  border-radius: 5px;

}

.product-card h3 {

  font-size: 14px;

  margin: 12px 0 8px;

}

.product-card p {

  color: var(--muted);

  font-size: 12px;

  margin-bottom: 13px;

}

.product-btn {

  display: block;

  text-align: center;

  padding: 10px 5px;

  border-radius: 8px;

  background: #29204b;

  color: #cbb8ff;

  font-size: 12px;

  border: 1px solid #59418c;

  transition: 0.3s;

}

.product-btn:hover {

  background: #49317a;

}


/* =========================
   CATEGORY SLIDER
========================= */

.category-slider {

  display: flex;

  gap: 12px;

  overflow-x: auto;

  overflow-y: hidden;

  white-space: nowrap;

  padding: 5px 2px 12px;

  scrollbar-width: none;

  -webkit-overflow-scrolling: touch;

  scroll-snap-type: x mandatory;

}

.category-slider::-webkit-scrollbar {

  display: none;

}

.category-card {

  flex: 0 0 auto;

  min-width: 125px;

  padding: 15px 16px;

  background: var(--card);

  border: 1px solid var(--border);

  border-radius: 12px;

  text-align: center;

  font-size: 13px;

  scroll-snap-align: start;

  transition: 0.3s;

}

.category-card:hover {

  border-color: var(--purple);

  background: #20183b;

}


/* =========================
   FOOTER
========================= */

footer {

  text-align: center;

  padding: 35px 15px;

  background: #10101c;

  color: var(--muted);

  line-height: 2;

  font-size: 13px;

}

footer h3 {

  color: white;

}

footer a {

  color: var(--blue);

}

.copyright {

  margin-top: 15px;

  font-size: 11px;

}


/* =========================
   BOTTOM NAVIGATION
========================= */

.bottom-nav {

  position: fixed;

  bottom: 0;

  left: 0;

  width: 100%;

  height: 72px;

  background: rgba(16, 16, 28, 0.97);

  border-top: 1px solid var(--border);

  display: flex;

  justify-content: space-around;

  align-items: center;

  z-index: 1000;

  backdrop-filter: blur(15px);

  padding-bottom: env(safe-area-inset-bottom);

}

.nav-item {

  display: flex;

  flex-direction: column;

  align-items: center;

  justify-content: center;

  gap: 5px;

  color: #9999b2;

  font-size: 12px;

  min-width: 55px;

}

.nav-item span {

  font-size: 23px;

  line-height: 1;

}

.nav-item small {

  font-size: 11px;

}

.nav-item.active {

  color: #a78bfa;

}

.nav-item.active span {

  color: var(--blue);

}


/* =========================
   DESKTOP RESPONSIVE
========================= */

@media (min-width: 700px) {

  .hero {

    padding: 80px;

    margin: 30px;

  }

  .hero h1 {

    font-size: 55px;

  }

  .product-grid {

    grid-template-columns:
      repeat(4, minmax(0, 1fr));

  }

  .section {

    padding: 30px;

  }

  .product-image {

    height: 180px;

  }

}


/* =========================
   SMALL MOBILE
========================= */

@media (max-width: 360px) {

  .hero h1 {

    font-size: 29px;

  }

  .product-card {

    padding: 9px;

  }

  .product-image {

    height: 105px;

  }

  .category-card {

    min-width: 115px;

  }

}

/* =========================
   FIRST-VISIT WELCOME MODAL
========================= */
.welcome-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.welcome-modal.is-visible { display: flex; }
.welcome-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 3, 12, .82);
  backdrop-filter: blur(9px);
}
.welcome-modal-card {
  position: relative;
  z-index: 1;
  width: min(100%, 510px);
  max-height: min(88vh, 720px);
  overflow-y: auto;
  padding: 30px 25px 26px;
  border: 1px solid rgba(167, 139, 250, .42);
  border-radius: 22px;
  background:
    radial-gradient(circle at 100% 0, rgba(80, 55, 150, .35), transparent 42%),
    linear-gradient(145deg, #19152b, #0e0e1b 72%);
  box-shadow: 0 24px 90px rgba(0, 0, 0, .58);
  text-align: center;
}
.welcome-modal-close {
  position: absolute;
  top: 10px;
  right: 13px;
  width: 36px;
  height: 36px;
  border: 1px solid #3b3452;
  border-radius: 50%;
  background: #211c32;
  color: #fff;
  font-size: 25px;
  cursor: pointer;
}
.welcome-modal-brand {
  margin: 0 35px 13px;
  color: #55d9ff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2.2px;
}
.welcome-modal-card h2 {
  margin: 0 0 15px;
  color: #fff;
  font-size: clamp(22px, 5vw, 29px);
  line-height: 1.35;
}
.welcome-copy-bn, .welcome-copy-en {
  color: #c7c2d7;
  font-size: 14px;
  line-height: 1.75;
  margin: 0 0 10px;
}
.welcome-copy-en { color: #a9a3bc; }
.welcome-discord-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin: 21px 0 19px;
  padding: 14px 18px;
  border: 1px solid #728bff;
  border-radius: 12px;
  background: linear-gradient(110deg, #5865f2, #6540c8);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 9px 25px rgba(88, 101, 242, .24);
  transition: transform .2s, filter .2s;
}
.welcome-discord-button:hover { transform: translateY(-2px); filter: brightness(1.1); }
.discord-mark {
  display: inline-grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 8px;
  background: rgba(255,255,255,.18);
  font-size: 18px;
}
.welcome-terms-note {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0 0 8px;
  color: #b9b3ca;
  font-size: 12px;
  line-height: 1.6;
}
.welcome-terms-link {
  display: inline-block;
  color: #7ddfff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
body.welcome-modal-open { overflow: hidden; }
.footer-legal-link { margin-top: 8px; }

/* Improve focus visibility for keyboard users */
.welcome-modal a:focus-visible,
.welcome-modal button:focus-visible {
  outline: 2px solid #7ddfff;
  outline-offset: 3px;
}

.brand-with-slot{display:inline-flex;align-items:center;gap:9px;text-decoration:none;min-width:0}.brand-logo-slot{width:34px;height:34px;object-fit:contain;flex:0 0 34px}.brand-wordmark{white-space:nowrap;color:inherit}.brand-wordmark span{color:var(--blue,#00d9ff)}
.logo .brand-wordmark{color:inherit}.logo .brand-wordmark span{color:var(--blue,#00d9ff)}
.product-delivery-type{font-size:11px;color:#a78bfa;margin-top:4px}
