/* ============================================================
   Gempak99 — Main Stylesheet
   ============================================================ */


/* ============================================================
   COMMON CSS
   ============================================================ */


/* ----- Reset & Base ----- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --teal:       #7ec8c8;
  --teal-dark:  #4da8a8;
  --gold:       #e8c840;
  --gold-dark:  #c8a415;
  --navy:       #1a2235;
  --navy-light: #243050;
  --white:      #ffffff;
  --off-white:  #f5f7f9;
  --text:       #2c3347;
  --text-muted: #2c3347;
  --radius:     10px;
  --radius-lg:  18px;
  --shadow:     0 4px 24px rgba(0,0,0,.10);
  --shadow-sm:  0 2px 8px rgba(0,0,0,.08);
  --shadow-md:  0 8px 32px rgba(0,0,0,.15);
  --transition: .25s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--off-white);
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { display: block; max-width: 100%; }

.container {
  width: min(1200px, 100% - 2rem);
  margin-inline: auto;
}


/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .65rem 1.4rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: .875rem;
  letter-spacing: .03em;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.btn-primary:hover { background: var(--gold-dark); border-color: var(--gold-dark); }

.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,.5); }
.btn-outline:hover { background: rgba(255,255,255,.1); border-color: var(--white); }

.btn-ghost { background: rgba(255,255,255,.15); color: var(--white); border-color: rgba(255,255,255,.3); }
.btn-ghost:hover { background: rgba(255,255,255,.25); }

.btn-sm { padding: .45rem 1rem; font-size: .8rem; }


/* ----- Header / Nav / Hamburger ----- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  box-shadow: 0 2px 16px rgba(0,0,0,.25);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: .7rem 1.5rem;
  max-width: 1300px;
  margin-inline: auto;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.logo-img {
  height: 42px;
  width: auto;
  display: block;
  object-fit: contain;
}

.primary-nav { margin-left: auto; }

/* Icons only visible in mobile menu */
.nav-icon { display: none; }

.primary-nav > ul {
  display: flex;
  align-items: center;
  gap: .2rem;
}

.primary-nav a {
  display: block;
  padding: .5rem .95rem;
  border-radius: 7px;
  font-size: .875rem;
  font-weight: 600;
  color: rgba(255,255,255,.78);
  transition: background var(--transition), color var(--transition);
}
.primary-nav a:hover,
.primary-nav a.active {
  background: rgba(255,255,255,.08);
  color: var(--gold);
}

.nav-login a {
  background: var(--gold);
  color: var(--navy) !important;
  font-weight: 700;
  padding: .48rem 1.15rem;
  border-radius: 50px;
  margin-left: .35rem;
}
.nav-login a:hover { background: var(--gold-dark) !important; }

.nav-play-now a {
  background: #22c55e;
  color: #fff !important;
  font-weight: 700;
  padding: .48rem 1.15rem;
  border-radius: 50px;
  margin-left: .35rem;
  transition: background var(--transition);
}
.nav-play-now a:hover { background: #16a34a !important; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,.08);
  border: 1.5px solid rgba(255,255,255,.18);
  border-radius: 10px;
  cursor: pointer;
  padding: 10px;
  flex-shrink: 0;
  margin-left: auto;
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.nav-toggle:hover {
  background: rgba(255,255,255,.14);
  border-color: rgba(255,255,255,.3);
  box-shadow: 0 0 0 3px rgba(232,200,64,.12);
}
.nav-toggle span {
  display: block;
  height: 2.5px;
  background: var(--white);
  border-radius: 3px;
  transition: transform var(--transition), opacity var(--transition), width var(--transition), background var(--transition);
  transform-origin: center;
}
.nav-toggle span:nth-child(1) { width: 22px; }
.nav-toggle span:nth-child(2) { width: 16px; }
.nav-toggle span:nth-child(3) { width: 22px; }
.nav-toggle.is-open {
  background: rgba(232,200,64,.15);
  border-color: rgba(232,200,64,.5);
  box-shadow: 0 0 0 3px rgba(232,200,64,.15);
}
.nav-toggle.is-open span { background: var(--gold); width: 22px; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; width: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }


/* ----- Hero Slider ----- */
.hero-slider {
  position: relative;
  overflow: hidden;
  background: var(--navy);
}

.slides-track {
  display: flex;
  transition: transform .55s cubic-bezier(.4,0,.2,1);
  will-change: transform;
}

.slide {
  min-width: 100%;
  position: relative;
  overflow: hidden;
  background: var(--navy);
  line-height: 0;
}

.slide a { display: block; width: 100%; }

.slide-img {
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.15);
  color: var(--white);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
  backdrop-filter: blur(4px);
}
.slider-btn:hover { background: rgba(255,255,255,.28); }
.slider-btn--prev { left: 1rem; }
.slider-btn--next { right: 1rem; }

.slider-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: .5rem;
  z-index: 10;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.35);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  padding: 0;
}
.dot.active { background: var(--gold); transform: scale(1.3); }


/* ----- Hero CTA Bar ----- */
.hero-cta-bar {
  padding: 1.25rem 1rem;
  text-align: center;
  background: var(--off-white);
}
.btn-hero-play {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  font-family: 'Nunito', sans-serif;
  font-size: 1.25rem;
  font-weight: 900;
  padding: 1rem 3.5rem;
  border-radius: 50px;
  text-decoration: none;
  letter-spacing: .05em;
  text-transform: uppercase;
  box-shadow: 0 6px 24px rgba(232,200,64,.5);
  transition: transform .15s, box-shadow .15s;
}
.btn-hero-play:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(232,200,64,.65);
}

/* ----- Feature Strip ----- */
.feature-strip {
  background: var(--gold);
  padding: .85rem 1rem;
  border-radius: 8px;
  margin-bottom: 2rem;
}
.feature-strip-inner {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem 3rem;
}
.feature-item {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-weight: 700;
  font-size: .875rem;
  color: var(--navy);
}
.feature-item svg { width: 20px; height: 20px; flex-shrink: 0; }


/* ----- Main Content ----- */
.site-main { padding: 1.5rem 0 4rem; }

.content-section { margin-bottom: 3.5rem; }

.content-section a:not(.btn):not(.section-link):not(.support-btn) {
  color: var(--teal-dark);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  transition: color var(--transition), text-decoration-color var(--transition);
}
.content-section a:not(.btn):not(.section-link):not(.support-btn):hover {
  color: var(--gold-dark);
  text-decoration-color: var(--gold-dark);
}

.content-section h2 {
  font-size: clamp(1.25rem, 2.4vw, 1.65rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.25;
  margin-bottom: .85rem;
}

.content-section h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.3;
  margin-top: 1.75rem;
  margin-bottom: .6rem;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}
.section-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--navy);
}

.section-link {
  font-size: .85rem;
  font-weight: 700;
  color: var(--teal-dark);
  transition: color var(--transition);
}
.section-link:hover { color: var(--gold-dark); }


/* ----- Game Cards ----- */

/* Homepage: 6-col thumbnail cards */
.game-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.1rem;
}

.game-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}
.game-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.game-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.game-info {
  padding: .65rem .75rem .3rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.game-name {
  font-weight: 700;
  font-size: .85rem;
  color: var(--navy);
  line-height: 1.2;
}
.game-provider {
  font-size: .72rem;
  color: var(--text-muted);
  margin-top: .15rem;
}
.game-card .btn {
  margin: .6rem .75rem .75rem;
  justify-content: center;
}

/* Inner pages: feature cards with 16:9 gradient thumb */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.1rem;
  margin: 1.25rem 0;
}
.games-grid--3 {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.game-feature-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}
.game-feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.game-feature-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
}

.game-feature-info {
  padding: .9rem 1rem;
  display: flex;
  flex-direction: column;
  gap: .3rem;
}
.game-feature-info h4 {
  font-size: .95rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.2;
}
.game-feature-info p {
  font-size: .78rem;
  color: var(--text-muted);
}

.game-provider-tag {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--teal-dark);
  background: rgba(126,200,200,.15);
  padding: .15rem .55rem;
  border-radius: 50px;
  width: fit-content;
}


/* ----- Promo Grid & Cards ----- */
.promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem;
}

.promo-card {
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .65rem;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition);
}
.promo-card:hover { transform: translateY(-4px); }

.promo-card--teal { background: linear-gradient(135deg, #4da8a8, #7ec8c8); color: var(--navy); }
.promo-card--gold { background: linear-gradient(135deg, #c8a415, #e8c840); color: var(--navy); }
.promo-card--dark { background: linear-gradient(135deg, var(--navy), var(--navy-light)); color: var(--white); }

.promo-badge {
  display: inline-block;
  background: rgba(0,0,0,.15);
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .12em;
  padding: .2rem .6rem;
  border-radius: 50px;
  width: fit-content;
}
.promo-card--dark .promo-badge { background: rgba(255,255,255,.15); }

.promo-card h3 { font-size: 1.15rem; font-weight: 800; }
.promo-card p  { font-size: .875rem; opacity: .85; }

/* Image banner variant */
.promo-card--img {
  padding: 0;
  background: none;
  box-shadow: var(--shadow-sm);
  flex-direction: column;
  border: 1.5px solid rgba(0,0,0,.12);
}
.promo-banner {
  width: 100%;
  display: block;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  object-fit: cover;
}
.promo-card--img .btn {
  margin: .75rem 1rem 1rem;
  align-self: stretch;
  justify-content: center;
}


/* ----- Trust Grid & Cards ----- */
.trust-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin: 1.5rem 0;
}

.trust-card {
  background: var(--white);
  border-radius: var(--radius);
  border-left: 3px solid var(--teal-dark);
  padding: 1.5rem 1.5rem 1.4rem;
  box-shadow: var(--shadow);
}
.trust-card h3 {
  font-size: .95rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: .6rem;
  line-height: 1.35;
}
.trust-card p {
  font-size: .875rem;
  color: var(--text-muted);
  line-height: 1.65;
}


/* ----- Provider Row & Chips ----- */
.providers-row {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}
.provider-chip {
  background: var(--white);
  border: 2px solid var(--teal);
  color: var(--navy);
  font-weight: 700;
  font-size: .875rem;
  padding: .5rem 1.25rem;
  border-radius: 50px;
  cursor: default;
  transition: background var(--transition), color var(--transition);
}
.provider-chip:hover { background: var(--teal); color: var(--white); }


/* ----- Support Grid & Cards ----- */
.support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.support-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem 1.4rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.support-card h3 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: .5rem;
  line-height: 1.3;
}
.support-card p {
  font-size: .875rem;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
}


/* ----- Support Buttons ----- */
.support-btn {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin-top: 1.1rem;
  padding: .6rem 1.3rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: .875rem;
  text-decoration: none;
  transition: opacity .2s, transform .2s;
  white-space: nowrap;
}
.support-btn:hover { opacity: .88; transform: translateY(-2px); }
.support-btn:active { transform: translateY(0); }

.support-btn--contact  { background: var(--gold);    color: var(--navy); }
.support-btn--whatsapp { background: #25D366;         color: #fff; }
.support-btn--telegram { background: #229ED9;         color: #fff; }
.support-btn--livechat { background: var(--teal);     color: var(--navy); }


/* ----- Steps List ----- */
.steps-list {
  list-style: decimal;
  padding-left: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: .85rem;
  margin: .75rem 0;
}
.steps-list li {
  color: var(--text);
  line-height: 1.6;
  padding-left: .25rem;
}
.steps-list--compact { gap: .45rem; }
.steps-list--compact li { font-size: .9rem; }


/* ----- FAQ Items ----- */
.faq-item {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid rgba(0,0,0,.08);
  margin-bottom: .75rem;
  overflow: hidden;
  transition: box-shadow var(--transition);
}
.faq-item:hover { box-shadow: var(--shadow); }

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  font-size: .95rem;
  color: var(--navy);
  padding: 1.1rem 1.25rem;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--teal-dark);
  flex-shrink: 0;
  transition: transform var(--transition);
}
.faq-item[open] summary::after { transform: rotate(45deg); }

.faq-item p,
.faq-item > *:not(summary) {
  padding: 0 1.25rem 1.1rem;
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.7;
}
.faq-item a { color: var(--teal-dark); text-decoration: underline; }


/* ----- Bullet List & Games Dot List ----- */
.bullet-list {
  list-style: disc;
  padding-left: 1.4rem;
  margin: .75rem 0;
  display: flex;
  flex-direction: column;
  gap: .35rem;
}
.bullet-list li {
  color: var(--text);
  line-height: 1.5;
}

.games-dot-list {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  padding-left: 0;
  margin: 1rem 0;
}
.games-dot-list li {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  font-size: .95rem;
  color: var(--text);
  line-height: 1.5;
}
.games-dot-list li::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
  margin-top: .4rem;
}


/* ----- SEO Table ----- */
.seo-table {
  display: grid;
  grid-template-columns: repeat(var(--cols, 4), 1fr);
  border: 1px solid rgba(0,0,0,.10);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 1.5rem 0;
  font-size: .9rem;
}
.seo-table > div {
  padding: .7rem 1rem;
  border-bottom: 1px solid rgba(0,0,0,.07);
  border-right: 1px solid rgba(0,0,0,.07);
  line-height: 1.4;
}
.seo-table > div:nth-child(var(--cols) n) { border-right: none; }

.seo-table__head {
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .03em;
  text-transform: uppercase;
  border-right: 1px solid rgba(255,255,255,.1);
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.seo-table > div:not(.seo-table__head) { background: var(--white); }

.seo-table[style*="--cols:4"] > div:not(.seo-table__head):nth-child(8n+5),
.seo-table[style*="--cols:4"] > div:not(.seo-table__head):nth-child(8n+6),
.seo-table[style*="--cols:4"] > div:not(.seo-table__head):nth-child(8n+7),
.seo-table[style*="--cols:4"] > div:not(.seo-table__head):nth-child(8n+8) {
  background: var(--off-white);
}
.seo-table[style*="--cols:3"] > div:not(.seo-table__head):nth-child(6n+4),
.seo-table[style*="--cols:3"] > div:not(.seo-table__head):nth-child(6n+5),
.seo-table[style*="--cols:3"] > div:not(.seo-table__head):nth-child(6n+6) {
  background: var(--off-white);
}
.seo-table > div:not(.seo-table__head):nth-child(var(--cols) n+1) {
  font-weight: 600;
  color: var(--navy);
}


/* ----- Page Hero (inner pages shared) ----- */
.page-hero {
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  border-radius: var(--radius-lg);
  color: var(--white);
  padding: 3rem 2.5rem;
  margin-bottom: 3rem;
  text-align: center;
}
.page-hero h1 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: .9rem;
}
.page-hero p {
  font-size: 1rem;
  color: rgba(255,255,255,.75);
  max-width: 640px;
  margin: 0 auto 1.6rem;
  line-height: 1.7;
}
.hero-cta-row {
  display: flex;
  justify-content: center;
  gap: .85rem;
  flex-wrap: wrap;
}


/* ----- Hero Banner (inner pages static image) ----- */
.hero-banner {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  line-height: 0;
}
.hero-banner__img {
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: cover;
  object-position: center;
  display: block;
}


/* ----- Claim Steps Visual ----- */
.claim-steps-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: .75rem;
  margin: 2rem 0 1rem;
}
.claim-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .6rem;
  text-align: center;
  max-width: 140px;
}
.claim-step__num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  font-size: 1.25rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.claim-step p {
  font-size: .82rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.4;
}
.claim-step__arrow {
  font-size: 1.4rem;
  color: var(--teal-dark);
  flex-shrink: 0;
}


/* ----- Footer ----- */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,.8);
  padding: 3.5rem 0 2rem;
  text-align: center;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4rem;
}
.logo--footer .logo-img { height: 36px; }

.footer-about {
  font-size: .875rem;
  color: rgba(255,255,255,.45);
  max-width: 560px;
  line-height: 1.75;
}
.footer-divider {
  width: 40px;
  height: 2px;
  background: rgba(255,255,255,.1);
  border-radius: 2px;
}
.footer-copy {
  font-size: .75rem;
  color: rgba(255,255,255,.28);
  letter-spacing: .03em;
}


/* ============================================================
   MOBILE COMMON CSS
   ============================================================ */

@media (max-width: 768px) {

  /* Nav */
  .nav-toggle { display: flex; }

  .header-inner { position: relative; }

  .primary-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, #1e2c46 0%, #162035 100%);
    padding: .6rem .85rem 1rem;
    box-shadow: 0 16px 40px rgba(0,0,0,.55);
    border-top: 2px solid rgba(232,200,64,.25);
    z-index: 99;
    transform-origin: top center;
    animation: none;
  }
  .primary-nav.is-open {
    display: block;
    animation: navSlideDown .22s ease both;
  }
  @keyframes navSlideDown {
    from { opacity: 0; transform: translateY(-8px) scaleY(.96); }
    to   { opacity: 1; transform: translateY(0)   scaleY(1); }
  }

  .primary-nav > ul {
    flex-direction: column;
    align-items: stretch;
    gap: .3rem;
  }

  /* Nav icon — hidden on mobile */
  .nav-icon { display: none; }

  .primary-nav > ul > li:not(.nav-login) a {
    display: flex;
    align-items: center;
    padding: .75rem 1rem;
    border-radius: 10px;
    font-size: .95rem;
    font-weight: 600;
    color: rgba(255,255,255,.82);
    border-left: 3px solid transparent;
    transition: background var(--transition), color var(--transition), border-color var(--transition);
  }
  .primary-nav > ul > li:not(.nav-login) a:hover,
  .primary-nav > ul > li:not(.nav-login) a.active {
    background: rgba(255,255,255,.06);
    color: var(--gold);
    border-left-color: var(--gold);
  }
  .primary-nav > ul > li:not(.nav-login) a:hover .nav-icon,
  .primary-nav > ul > li:not(.nav-login) a.active .nav-icon {
    background: rgba(232,200,64,.18);
  }

  /* Login CTA row — separated, full gold button */
  .nav-login {
    margin-top: .55rem;
    padding-top: .55rem;
    border-top: 1px solid rgba(255,255,255,.08);
  }
  .nav-login a {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 0;
    padding: .85rem 1rem;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--navy) !important;
    font-weight: 800;
    font-size: .95rem;
    letter-spacing: .03em;
    box-shadow: 0 4px 14px rgba(232,200,64,.35);
    transition: opacity var(--transition), transform var(--transition), box-shadow var(--transition);
  }
  .nav-login a .nav-icon {
    background: rgba(0,0,0,.12);
    color: var(--navy);
  }
  .nav-login a:hover {
    background: linear-gradient(135deg, var(--gold-dark), #a88510) !important;
    box-shadow: 0 6px 20px rgba(232,200,64,.45) !important;
    transform: translateY(-1px);
  }

  /* Play Now CTA row — mobile */
  .nav-play-now {
    margin-top: .4rem;
  }
  .nav-play-now a {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 0;
    padding: .85rem 1rem;
    border-radius: 10px;
    background: #22c55e;
    color: #fff !important;
    font-weight: 800;
    font-size: .95rem;
    letter-spacing: .03em;
    box-shadow: 0 4px 14px rgba(34,197,94,.3);
    transition: opacity var(--transition), transform var(--transition), box-shadow var(--transition);
  }
  .nav-play-now a:hover {
    background: #16a34a !important;
    box-shadow: 0 6px 20px rgba(34,197,94,.45) !important;
    transform: translateY(-1px);
  }

  /* Slider */
  .slide-img { max-height: 260px; }
  .hero-banner__img { max-height: 260px; }

  /* Game grid */
  .game-grid { grid-template-columns: repeat(3, 1fr); }

  /* Trust grid */
  .trust-grid { grid-template-columns: 1fr; }

  /* SEO Table — stack to single column */
  .seo-table { grid-template-columns: 1fr; }
  .seo-table > div { border-right: none; padding: .55rem .85rem; }
  .seo-table__head { display: none; }
  .seo-table > div[data-label]::before {
    content: attr(data-label) ": ";
    font-weight: 700;
    color: var(--navy);
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .03em;
    display: block;
    margin-bottom: .15rem;
  }
  .seo-table > div:not(.seo-table__head):nth-child(odd)  { background: var(--white); }
  .seo-table > div:not(.seo-table__head):nth-child(even) { background: var(--off-white); }
  .seo-table[style*="--cols:4"] > div:not(.seo-table__head):nth-child(4n+5) {
    border-top: 2px solid var(--teal-dark);
    padding-top: .75rem;
  }
  .seo-table[style*="--cols:3"] > div:not(.seo-table__head):nth-child(3n+4) {
    border-top: 2px solid var(--teal-dark);
    padding-top: .75rem;
  }

  /* Footer */
  .footer-about { font-size: .82rem; }
}

@media (max-width: 480px) {

  /* Header */
  .header-inner { padding: .65rem 1rem; }
  .logo-img { height: 32px; }

  /* Feature strip — 2×2 grid */
  .feature-strip-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .75rem 1rem;
    justify-items: center;
  }
  .feature-item { font-size: .8rem; gap: .4rem; }

  /* Slider */
  .slide-img { max-height: 200px; }
  .hero-banner__img { max-height: 200px; }
  .slider-btn { width: 36px; height: 36px; font-size: 1.3rem; }

  /* Promo */
  .promo-grid { grid-template-columns: 1fr; }

  /* Claim steps — go vertical */
  .claim-steps-visual { flex-direction: column; }
  .claim-step__arrow { transform: rotate(90deg); }

  /* Footer */
  .footer-about { font-size: .8rem; }
  .footer-copy  { font-size: .7rem; }
}


/* ============================================================
   Special CSS
   for: Homepage
   ============================================================ */

/* Hero intro — homepage H1 section */
.hero-intro { margin-bottom: 2.5rem; }
.hero-intro h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 900;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: .85rem;
}
.hero-intro p {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 700px;
  line-height: 1.75;
}

/* About / Stats */
.about-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}
.stat-card {
  background: var(--off-white);
  border-radius: var(--radius);
  padding: 1.25rem 1rem;
  text-align: center;
  border: 1px solid rgba(0,0,0,.05);
}
.stat-number {
  display: block;
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--teal-dark);
  line-height: 1;
  margin-bottom: .3rem;
}
.stat-label {
  font-size: .75rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* Provider Detail Cards */
.providers-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.1rem;
  margin: 1.5rem 0;
}
.provider-detail-card {
  background: var(--white);
  border-radius: var(--radius);
  border-top: 3px solid var(--gold);
  padding: 1.4rem 1.4rem 1.35rem;
  box-shadow: var(--shadow);
}
.provider-detail-card h3 {
  font-size: .9rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: .55rem;
  line-height: 1.35;
}
.provider-detail-card p {
  font-size: .875rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* App vs Browser table — homepage special mobile layout */
@media (max-width: 600px) {
  .seo-table.app-vs-browser { grid-template-columns: 1fr 1fr; }

  .seo-table.app-vs-browser > div:not(.seo-table__head):nth-child(3n+4) {
    grid-column: 1 / -1;
    background: var(--navy) !important;
    color: var(--white);
    font-weight: 700;
    font-size: .9rem;
    padding: .65rem 1rem;
    border-top: none !important;
  }
  .seo-table.app-vs-browser > div:not(.seo-table__head):nth-child(3n+4)::before {
    display: none !important;
  }
  .seo-table.app-vs-browser > div[data-label="Gempak99 App"],
  .seo-table.app-vs-browser > div[data-label="Browser"] {
    text-align: center;
    padding: .75rem .5rem;
  }
  .seo-table.app-vs-browser > div:not(.seo-table__head):nth-child(odd),
  .seo-table.app-vs-browser > div:not(.seo-table__head):nth-child(even) {
    background: var(--white);
  }
  .seo-table.app-vs-browser > div:not(.seo-table__head):nth-child(6n+5),
  .seo-table.app-vs-browser > div:not(.seo-table__head):nth-child(6n+6) {
    background: var(--off-white);
  }
  .seo-table.app-vs-browser > div[data-label="Gempak99 App"]::before {
    content: "App";
    display: block;
    font-size: .7rem;
    font-weight: 700;
    color: var(--teal-dark);
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: .3rem;
  }
  .seo-table.app-vs-browser > div[data-label="Browser"]::before {
    content: "Browser";
    display: block;
    font-size: .7rem;
    font-weight: 700;
    color: var(--navy);
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: .3rem;
  }
}

/* Homepage mobile */
@media (max-width: 768px) {
  .about-stats { grid-template-columns: 1fr 1fr; }

  /* Hero intro — clamp to 3 lines, show Read More */
  .hero-intro p {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .hero-intro p.is-expanded {
    display: block;
    overflow: visible;
  }
}

/* Read More button — hidden on desktop, shown via JS on mobile */
.hero-readmore {
  display: none;
}
@media (max-width: 768px) {
  .hero-readmore {
    display: inline-block;
    margin-top: .5rem;
    background: none;
    border: none;
    color: var(--teal-dark);
    font-weight: 700;
    font-size: .9rem;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color var(--transition);
  }
  .hero-readmore:hover { color: var(--gold-dark); }
}

@media (max-width: 480px) {
  .about-stats { grid-template-columns: 1fr 1fr; }
}



/* ============================================================
   Special CSS
   for: Games
   ============================================================ */

/* 3-column game grid — fishing & arcade sections (3 titles each) */
.game-grid--half {
  grid-template-columns: repeat(3, 1fr);
}

/* Games page responsive */
@media (max-width: 480px) {
  .game-grid,
  .game-grid--half { grid-template-columns: repeat(2, 1fr); }
}


/* ============================================================
   Special CSS
   for: Free Credit
   ============================================================ */

/* 6-banner promo grid — lock to 3 cols so layout is always 3×2 */
.fc-promo-grid {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 768px) {
  .fc-promo-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .fc-promo-grid {
    grid-template-columns: 1fr;
  }
}


/* ============================================================
   Special CSS
   for: Login
   ============================================================ */

.auth-section {
  max-width: 800px;
  margin: 3rem auto;
}

.auth-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.auth-tabs {
  display: flex;
  background: var(--off-white);
  border-bottom: 1px solid #e0e6ed;
}

.auth-tab {
  flex: 1;
  padding: 1.25rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
}

.auth-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  background: var(--white);
}

.auth-content {
  padding: 2.5rem 2rem;
}

/* Form Layout */
.gempak-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.form-label {
  flex: 0 0 160px;
  font-weight: 700;
  color: var(--text);
  font-size: 0.95rem;
  display: flex;
  justify-content: space-between;
  padding-top: 0.6rem;
}

.form-input-box {
  flex: 1;
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  font-size: 0.95rem;
  color: var(--text);
  font-family: inherit;
  transition: border var(--transition);
}

.form-input:focus {
  border-color: var(--primary);
  outline: none;
}

.form-input--disabled {
  background-color: #e2e8f0;
  color: #64748b;
  cursor: not-allowed;
  border-color: #cbd5e1;
}

.form-help {
  font-size: 0.8rem;
  color: #f59e0b;
  margin-top: 0.4rem;
  font-weight: 600;
}

/* Verification Box */
.verify-box {
  background: #2c3347;
  border-radius: 4px;
  padding: 1.25rem;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.verify-title {
  color: #f8fafc;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.verify-input-row {
  display: flex;
  gap: 0.75rem;
}

.btn-verify {
  background: #facc15;
  color: #000;
  border: none;
  font-weight: 800;
  padding: 0 1.5rem;
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
}

/* Submit & Alternates */
.btn-submit {
  width: 100%;
  background: #fde047;
  color: #000;
  border: none;
  padding: 1rem;
  font-size: 1.1rem;
  font-weight: 800;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 0.5rem;
  text-transform: uppercase;
  transition: opacity var(--transition);
}

.btn-submit:hover {
  opacity: 0.9;
}

.auth-alternatives {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 2rem;
  gap: 1rem;
}

.btn-whatsapp {
  background: #d97706;
  color: #fff;
  padding: 0.6rem 2.5rem;
  border-radius: 2rem;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.95rem;
  box-shadow: 0 4px 10px rgba(217, 119, 6, 0.3);
  transition: background var(--transition);
}

.btn-whatsapp:hover {
  background: #b45309;
  color: #fff;
}

.auth-switch-text {
  font-weight: 700;
  color: var(--text);
  margin-bottom: -0.5rem;
  font-size: 0.95rem;
}

.auth-switch-link {
  font-weight: 700;
  color: var(--text);
  text-decoration: underline;
  font-size: 0.95rem;
}

.form-hidden {
  display: none !important;
}

/* Responsive */
@media (max-width: 640px) {
  .auth-section {
    margin: 1rem auto 2rem;
  }
  .auth-content {
    padding: 1.5rem;
  }
  .form-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0.4rem;
  }
  
  .form-label {
    flex: none;
    width: 100%;
    justify-content: flex-start;
    padding-top: 0;
  }
  
  .form-label span {
    display: none;
  }

  .form-input-box {
    width: 100%;
  }
  
  .verify-input-row {
    flex-direction: column;
    align-items: stretch;
  }
  
  .btn-verify {
    padding: 0.8rem;
  }
}
