/* ============================================================
   debet mx - Common Stylesheet (g0dc- prefix)
   All custom classes use g0dc- prefix.
   Palette: #6F4E37 | #273746 | #CD853F | #FFEBCD | #E5E5E5 | #E8F5E8
   Mobile-first, max-width 430px. Comments in English.
   ============================================================ */

:root {
  --g0dc-primary: #CD853F;
  --g0dc-bg: #273746;
  --g0dc-bg-deep: #1c2933;
  --g0dc-coffee: #6F4E37;
  --g0dc-cream: #FFEBCD;
  --g0dc-mute: #E5E5E5;
  --g0dc-mint: #E8F5E8;
  --g0dc-text: #FFEBCD;
  --g0dc-text-soft: #E5E5E5;
  --g0dc-radius: 14px;
  --g0dc-shadow: 0 4px 16px rgba(0,0,0,.35);
}

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

html { font-size: 62.5%; -webkit-text-size-adjust: 100%; }

html, body {
  background: var(--g0dc-bg);
  color: var(--g0dc-text);
  font-family: "Segoe UI", "Be Vietnam Pro", Roboto, system-ui, sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

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

a { color: var(--g0dc-primary); text-decoration: none; }

.g0dc-wrapper { width: 100%; max-width: 430px; margin: 0 auto; position: relative; }

/* ---------- Header ---------- */
.g0dc-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, #1c2933 0%, #273746 100%);
  border-bottom: 2px solid var(--g0dc-primary);
  box-shadow: var(--g0dc-shadow);
}
.g0dc-header-inner {
  max-width: 430px;
  margin: 0 auto;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.g0dc-logo {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  min-width: 0;
}
.g0dc-logo img {
  width: 28px; height: 28px;
  border-radius: 6px;
}
.g0dc-logo-text {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--g0dc-cream);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.g0dc-logo-text span { color: var(--g0dc-primary); }

.g0dc-header-actions { display: flex; align-items: center; gap: 6px; }
.g0dc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 36px;
  padding: 6px 12px;
  border: none;
  border-radius: 10px;
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform .15s ease, opacity .15s ease;
}
.g0dc-btn:active { transform: scale(0.96); }
.g0dc-btn-register {
  background: linear-gradient(135deg, #CD853F, #6F4E37);
  color: #fff;
}
.g0dc-btn-login {
  background: transparent;
  color: var(--g0dc-cream);
  border: 1.5px solid var(--g0dc-primary);
}
.g0dc-menu-trigger {
  background: transparent;
  border: none;
  color: var(--g0dc-cream);
  font-size: 2rem;
  cursor: pointer;
  min-width: 36px;
  min-height: 36px;
}

/* ---------- Mobile dropdown menu ---------- */
.g0dc-mobile-menu {
  position: fixed;
  top: 56px; right: 0;
  width: 78%;
  max-width: 320px;
  background: var(--g0dc-bg-deep);
  border-left: 2px solid var(--g0dc-primary);
  padding: 12px;
  transform: translateX(110%);
  transition: transform .25s ease;
  z-index: 9999;
  box-shadow: var(--g0dc-shadow);
}
.g0dc-mobile-menu.g0dc-active { transform: translateX(0); }
.g0dc-mobile-menu a {
  display: block;
  padding: 12px 10px;
  color: var(--g0dc-cream);
  font-size: 1.35rem;
  border-bottom: 1px solid rgba(205,133,63,.18);
}
.g0dc-mobile-menu a:active { background: rgba(205,133,63,.12); }

/* ---------- Layout shell ---------- */
.g0dc-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 64px 12px 0;
}
main.g0dc-main { padding-bottom: 90px; }

.g0dc-section { margin: 18px 0; }
.g0dc-section-title {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--g0dc-cream);
  margin: 6px 0 10px;
  padding-left: 8px;
  border-left: 4px solid var(--g0dc-primary);
}

/* ---------- Carousel ---------- */
.g0dc-carousel {
  position: relative;
  border-radius: var(--g0dc-radius);
  overflow: hidden;
  box-shadow: var(--g0dc-shadow);
  margin: 10px 0;
}
.g0dc-carousel-slide {
  display: none;
  width: 100%;
  cursor: pointer;
}
.g0dc-carousel-slide.g0dc-active { display: block; }
.g0dc-carousel-slide img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.g0dc-carousel-dots {
  position: absolute;
  bottom: 8px; left: 0; right: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
}
.g0dc-carousel-dot {
  width: 8px; height: 8px;
  background: rgba(255,235,205,.5);
  border-radius: 50%;
  cursor: pointer;
}
.g0dc-carousel-dot.g0dc-active { background: var(--g0dc-primary); }

/* ---------- Category chips ---------- */
.g0dc-cat-bar {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 6px 0;
  margin-bottom: 8px;
}
.g0dc-cat-chip {
  flex: 0 0 auto;
  padding: 6px 12px;
  border-radius: 20px;
  background: var(--g0dc-bg-deep);
  color: var(--g0dc-text-soft);
  font-size: 1.2rem;
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
}
.g0dc-cat-chip.g0dc-active {
  background: var(--g0dc-primary);
  color: #fff;
}

/* ---------- Game grid ---------- */
.g0dc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.g0dc-game-card {
  background: var(--g0dc-bg-deep);
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
  border: 1px solid rgba(205,133,63,.12);
}
.g0dc-game-card:active {
  transform: scale(0.97);
  box-shadow: var(--g0dc-shadow);
}
.g0dc-game-card img {
  width: 100%;
  height: 86px;
  object-fit: cover;
}
.g0dc-game-name {
  font-size: 1.1rem;
  color: var(--g0dc-cream);
  padding: 4px 4px 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- Content blocks ---------- */
.g0dc-card {
  background: var(--g0dc-bg-deep);
  border-radius: var(--g0dc-radius);
  padding: 14px;
  margin: 10px 0;
  box-shadow: var(--g0dc-shadow);
}
.g0dc-card h2 { font-size: 1.5rem; color: var(--g0dc-primary); margin-bottom: 8px; }
.g0dc-card h3 { font-size: 1.3rem; color: var(--g0dc-cream); margin: 10px 0 6px; }
.g0dc-card p { font-size: 1.25rem; color: var(--g0dc-text-soft); margin-bottom: 8px; }

.g0dc-text-link {
  color: var(--g0dc-primary);
  font-weight: 700;
  text-decoration: underline;
}
.g0dc-text-link:active { opacity: .75; }

.g0dc-cta {
  display: block;
  text-align: center;
  background: linear-gradient(135deg, #CD853F, #6F4E37);
  color: #fff;
  font-weight: 800;
  font-size: 1.5rem;
  padding: 14px;
  border-radius: 12px;
  margin: 14px 0;
  box-shadow: var(--g0dc-shadow);
}
.g0dc-cta:active { transform: scale(0.98); }

.g0dc-list { list-style: none; padding: 0; }
.g0dc-list li {
  padding: 8px 0 8px 22px;
  position: relative;
  font-size: 1.25rem;
  color: var(--g0dc-text-soft);
}
.g0dc-list li:before {
  content: "\f005";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: var(--g0dc-primary);
  position: absolute;
  left: 0;
  font-size: 1rem;
  top: 10px;
}

/* Compact feature pillars */
.g0dc-pillars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.g0dc-pillar {
  background: rgba(232,245,232,.06);
  border-radius: 10px;
  padding: 10px;
  text-align: center;
}
.g0dc-pillar i { font-size: 2.2rem; color: var(--g0dc-primary); }
.g0dc-pillar strong { display: block; color: var(--g0dc-cream); font-size: 1.2rem; margin-top: 4px; }
.g0dc-pillar span { font-size: 1.1rem; color: var(--g0dc-text-soft); }

/* Testimonials */
.g0dc-testi {
  background: rgba(255,235,205,.06);
  border-left: 3px solid var(--g0dc-primary);
  padding: 10px 12px;
  border-radius: 8px;
  margin-bottom: 8px;
}
.g0dc-testi p { font-size: 1.2rem; color: var(--g0dc-text-soft); }
.g0dc-testi small { color: var(--g0dc-primary); font-weight: 700; }

/* Payment row */
.g0dc-pay-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}
.g0dc-pay-chip {
  background: var(--g0dc-bg);
  border: 1px solid var(--g0dc-primary);
  color: var(--g0dc-cream);
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 1.15rem;
}

/* ---------- Footer ---------- */
.g0dc-footer {
  background: var(--g0dc-bg-deep);
  border-top: 2px solid var(--g0dc-primary);
  padding: 16px 12px 80px;
  margin-top: 18px;
}
.g0dc-footer-brand {
  font-size: 1.2rem;
  color: var(--g0dc-text-soft);
  margin-bottom: 10px;
}
.g0dc-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin-bottom: 12px;
}
.g0dc-footer-links a {
  font-size: 1.15rem;
  color: var(--g0dc-cream);
}
.g0dc-footer-links a:hover { color: var(--g0dc-primary); }
.g0dc-footer-cta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}
.g0dc-copy {
  font-size: 1.1rem;
  color: var(--g0dc-text-soft);
  text-align: center;
}

/* ---------- Bottom nav (mobile only) ---------- */
.g0dc-bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 62px;
  background: linear-gradient(180deg, #273746, #1c2933);
  border-top: 2px solid var(--g0dc-primary);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -4px 14px rgba(0,0,0,.4);
}
.g0dc-bottom-nav-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--g0dc-text-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 60px;
  min-height: 60px;
  font-size: 1rem;
  cursor: pointer;
  position: relative;
  transition: color .15s ease, transform .15s ease;
}
.g0dc-bottom-nav-btn i,
.g0dc-bottom-nav-btn .material-icons-outlined,
.g0dc-bottom-nav-btn ion-icon {
  font-size: 22px;
}
.g0dc-bottom-nav-btn:active { transform: scale(0.92); }
.g0dc-bottom-nav-btn.g0dc-current,
.g0dc-bottom-nav-btn:active { color: var(--g0dc-primary); }
.g0dc-bottom-nav-btn.g0dc-current:after {
  content: "";
  position: absolute;
  top: 0;
  width: 28px;
  height: 3px;
  background: var(--g0dc-primary);
  border-radius: 0 0 4px 4px;
}

/* ---------- Desktop ---------- */
@media (min-width: 769px) {
  .g0dc-bottom-nav { display: none; }
  .g0dc-wrapper, .g0dc-header-inner, .g0dc-container, .g0dc-footer {
    max-width: 430px;
  }
  main.g0dc-main { padding-bottom: 30px; }
}
