/* =====================================================
   GaKing88 Affiliate — Responsive Frontend Styles
   Breakpoints: mobile <640  tablet 640-1023  desktop 1024+
   ===================================================== */

/* =====================================================
   [gk88_lang] SHORTCODE — VI / EN URL toggle
   ===================================================== */
.gk88-lang-wrap {
  display: inline-flex;
  gap: 4px;
  background: #150706;
  border: 1px solid #594017;
  ;
  border-radius: 999px;
  padding: 3px;
}

.gk88-lang-pill {
  padding: 5px 14px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  background: transparent;
  color: #8A9BB0;
  transition: .2s;

}

.gk88-lang-pill:hover {
  color: #fff;
}

.gk88-lang-pill.gk88-lang-active {
  background: linear-gradient(135deg, #f99407, #fe6229);
  color: #fff;
  box-shadow: 0 2px 8px #f37d014d;
}

/* =====================================================
   [gk88_header] SHORTCODE — Logo + TranslatePress
   ===================================================== */
.gk88-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  background: rgba(15, 24, 38, .96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid #1A2A40;
  z-index: 9999;
  width: 100%;
  box-sizing: border-box;
}

.gk88-hdr--sticky {
  position: sticky;
  top: 0;
}

.gk88-hdr__logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
}

.gk88-hdr__logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #3DCC2A, #1AA010);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 18px;
  color: #fff;
  box-shadow: 0 0 14px rgba(61, 204, 42, .35);
  flex-shrink: 0;
}

.gk88-hdr__logo-text {
  font-weight: 800;
  font-size: 16px;
  letter-spacing: .05em;
  background: linear-gradient(180deg, #6EFF3A, #3DCC2A);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* TranslatePress switcher overrides inside header */
.gk88-hdr__lang .trp-language-switcher-container,
.gk88-hdr__lang .trp-ls-shortcode-container {
  margin: 0 !important;
}

.gk88-hdr__lang .trp-ls-shortcode-language,
.gk88-hdr__lang .trp-language-switcher {
  background: rgba(61, 204, 42, .1) !important;
  border: 1px solid rgba(61, 204, 42, .3) !important;
  border-radius: 999px !important;
  color: #6EFF3A !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  padding: 5px 14px !important;
}

.gk88-hdr__lang .trp-ls-shortcode-language:hover,
.gk88-hdr__lang .trp-language-switcher:hover {
  background: rgba(61, 204, 42, .2) !important;
}

/* Dropdown */
.gk88-hdr__lang .trp-ls-shortcode-language-list,
.gk88-hdr__lang .trp-language-switcher-container ul {
  background: #0F1826 !important;
  border: 1px solid #1A2A40 !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  min-width: 140px !important;
}

.gk88-hdr__lang .trp-ls-shortcode-language-list li a,
.gk88-hdr__lang .trp-language-switcher-container ul li a {
  color: #8A9BB0 !important;
  font-size: 12px !important;
  padding: 8px 14px !important;
}

.gk88-hdr__lang .trp-ls-shortcode-language-list li a:hover,
.gk88-hdr__lang .trp-language-switcher-container ul li a:hover {
  background: rgba(61, 204, 42, .1) !important;
  color: #6EFF3A !important;
}

/* ---- RESET & TOKENS ---- */
/* =====================================================
   THEME COLOR VARIABLES
   Override these in your theme's CSS to match your brand:

   :root {
     --gk88-brand:       #YOUR_COLOR;
     --gk88-brand-dark:  #YOUR_DARKER;
     --gk88-brand-neon:  #YOUR_LIGHTER;
   }
   ===================================================== */
:root {
  --gk88-brand: #f37d01;
  --gk88-brand-dark: #fe4d00;
  --gk88-brand-neon: #ffb823;
}

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

.gk88-page {
  --brand: var(--gk88-brand);
  --brand-light: var(--gk88-brand-neon);
  --brand-neon: var(--gk88-brand-neon);
  --bg-base: #150706;
  --bg-nav: #211813;
  --bg-card: #382815;
  --bg-banner: #211813;
  --text-primary: #FFFFFF;
  --text-secondary: #8A9BB0;
  --text-muted: #4A5A70;
  --warning: #F0A500;
  --border: #594017;
  --grad-brand: linear-gradient(135deg, var(--gk88-brand), var(--gk88-brand-dark));
  --grad-neon: linear-gradient(180deg, var(--gk88-brand-neon), var(--gk88-brand));
  --shadow-brand: 0 4px 24px #f37d0147;
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ---- LAYOUT WRAPPER ---- */
.gk88-wrap {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 0 20px;
}

/* =====================================================
   HERO + QR  — stacked on mobile, side-by-side on desktop
   ===================================================== */
.gk88-hero-qr-wrap {
  background: linear-gradient(180deg, #211813 0%, #0d0d0d 100%);
}

/* HERO */
.gk88-hero {
  padding: 36px 0 28px;
  text-align: center;
}

.gk88-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.gk88-logo-icon {
  width: 44px;
  height: 44px;
  background: var(--grad-brand);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 22px;
  color: #fff;
  box-shadow: 0 0 18px #f37d0166;
  flex-shrink: 0;
}

.gk88-logo-text {
  font-weight: 800;
  font-size: 20px;
  letter-spacing: .04em;
  background: var(--grad-neon);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gk88-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #ffb8231a;
  border: 1px solid #f37d014d;
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--brand-neon);
  margin-bottom: 18px;
}

.gk88-pulse {
  width: 7px;
  height: 7px;
  background: var(--brand);
  border-radius: 50%;
  animation: gk88pulse 1.5s infinite;
}

@keyframes gk88pulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(61, 204, 42, .5);
  }

  50% {
    box-shadow: 0 0 0 6px rgba(61, 204, 42, 0);
  }
}

.gk88-h1 {
  font-size: clamp(1.85rem, 7vw, 2.6rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 14px;
}

.gk88-h1 .neon {
  display: block;
  background: var(--grad-neon);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gk88-sub {
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 22px;
}

/* ---- QR ASIDE (below hero on mobile) ---- */
.gk88-qr-aside {
  padding: 0 0 8px;
}

.gk88-qr-label {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.gk88-qr-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  text-align: center;
  position: relative;
}

.gk88-corners span {
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: var(--brand);
  border-style: solid;
  opacity: .7;
}

.gk88-corners span:nth-child(1) {
  top: 10px;
  left: 10px;
  border-width: 2px 0 0 2px;
}

.gk88-corners span:nth-child(2) {
  top: 10px;
  right: 10px;
  border-width: 2px 2px 0 0;
}

.gk88-corners span:nth-child(3) {
  bottom: 10px;
  left: 10px;
  border-width: 0 0 2px 2px;
}

.gk88-corners span:nth-child(4) {
  bottom: 10px;
  right: 10px;
  border-width: 0 2px 2px 0;
}

.gk88-qrcode {
  display: flex;
  justify-content: center;
  margin: 14px auto;
  filter: drop-shadow(0 0 14px #f37d0188);
}

.gk88-qrcode canvas,
.gk88-qrcode img {
  border-radius: 6px;
}

.gk88-platforms {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 14px;
}

.gk88-plat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--text-secondary);
}

.gk88-plat-ico {
  font-size: 22px;
}

/* =====================================================
   SHARED BTN
   ===================================================== */
.gk88-btn {
  display: block;
  width: 100%;
  padding: 15px;
  background: var(--grad-brand);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  letter-spacing: .04em;
  text-align: center;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: transform .12s, box-shadow .2s;
  box-shadow: var(--shadow-brand);
}

.gk88-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px #f37d0188;
}

.gk88-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .18), transparent);
  animation: gk88shimmer 2.5s infinite;
}

@keyframes gk88shimmer {
  100% {
    left: 160%;
  }
}

.gk88-btn.loading {
  pointer-events: none;
  opacity: .7;
}

.gk88-btn.loading::before {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, .35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: gk88spin .65s linear infinite;
  margin-right: 8px;
  vertical-align: middle;
}

@keyframes gk88spin {
  to {
    transform: rotate(360deg);
  }
}

/* =====================================================
   SECTIONS
   ===================================================== */
.gk88-section {
  padding: 20px 0;
}

.gk88-sec-title {
  font-size: 1.4rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.gk88-sec-sub {
  color: var(--text-secondary);
  font-size: 13px;
  text-align: center;
  margin-bottom: 20px;
}

/* ---- BENEFITS ---- */
.gk88-ben-featured {
  background: var(--bg-card);
  border: 1px solid #f37d014d;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  margin-bottom: 12px;
  box-shadow: 0 0 24px rgba(61, 204, 42, .08);
}

.gk88-ben-pct {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1;
  background: var(--grad-neon);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gk88-ben-feat-lbl {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.gk88-ben-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.gk88-ben-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  transition: border-color .2s, transform .15s;
}

.gk88-ben-card:hover {
  border-color: #f37d014d;
  transform: translateY(-2px);
}

.gk88-ben-ico {
  font-size: 26px;
  margin-bottom: 6px;
}

.gk88-ben-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
}

.gk88-ben-desc {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 3px;
}

/* ---- FORM ---- */
.gk88-register {
  background: var(--bg-banner);
  padding: 28px 0;
}

.gk88-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
}

.gk88-form-row {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.gk88-field {
  margin-bottom: 14px;
}

.gk88-field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
  letter-spacing: .04em;
}

.gk88-field input[type=text],
.gk88-field input[type=tel] {
  width: 100%;
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--text-primary);
  font-size: 14px;
  outline: none;
  transition: border .2s;
}

.gk88-field input:focus {
  border-color: var(--brand);
}

.gk88-tab-row {
  display: flex;
  gap: 4px;
  background: var(--bg-base);
  border-radius: 8px;
  padding: 3px;
  margin-bottom: 8px;
}

.gk88-tab-opt {
  flex: 1;
  padding: 8px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: .2s;
}

.gk88-tab-opt.active {
  background: var(--grad-brand);
  color: #fff;
}

.gk88-check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
}

.gk88-check-row input {
  margin-top: 3px;
  accent-color: var(--brand);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.gk88-check-row label {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.gk88-success-msg {
  display: none;
  background: rgba(61, 204, 42, .08);
  border: 1px solid rgba(61, 204, 42, .3);
  border-radius: 10px;
  padding: 14px;
  text-align: center;
  font-size: 13px;
  color: var(--brand-neon);
  margin-top: 12px;
}

.gk88-success-msg.show {
  display: block;
}

.gk88-error-msg {
  color: #FF6B6B;
  font-size: 12px;
  margin-top: 6px;
  display: none;
}

.gk88-error-msg.show {
  display: block;
}

/* ---- STATS ---- */
.gk88-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
}

.gk88-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
}

.gk88-stat-num {
  font-size: 1.6rem;
  font-weight: 900;
  background: var(--grad-neon);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gk88-stat-lbl {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 3px;
}

/* ---- TESTIMONIALS ---- */
.gk88-testimonials {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
}

.gk88-testimonials::-webkit-scrollbar {
  height: 3px;
}

.gk88-testimonials::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 2px;
}

.gk88-testi {
  flex: 0 0 85%;
  scroll-snap-align: start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
}

.gk88-testi-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.gk88-ava {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--grad-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
  font-size: 13px;
  flex-shrink: 0;
}

.gk88-testi-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.gk88-testi-role {
  font-size: 11px;
  color: var(--text-secondary);
}

.gk88-testi-txt {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.gk88-stars {
  color: var(--brand-neon);
  font-size: 12px;
  margin-top: 6px;
}

/* ---- CONTACT ---- */
.gk88-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.gk88-contact-card {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  text-decoration: none;
  display: block;
  transition: transform .15s, border-color .2s;
  border: 1px solid var(--border);
}

.gk88-contact-card:hover {
  transform: translateY(-2px);
  border-color: #f37d014d;
}

.gk88-contact-ico {
  font-size: 26px;
  margin-bottom: 6px;
}

.gk88-contact-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
}

.gk88-contact-handle {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.gk88-c-tg {
  border-color: #594017;
}

.gk88-c-za {
  border-color: #594017;
}

.gk88-c-em {
  border-color: #594017;
}

.gk88-c-hl {
  border-color: #594017;
}

/* ---- FOOTER ---- */
.gk88-footer {
  background: var(--bg-nav);
  border-top: 1px solid var(--border);
  padding: 24px 20px;
  text-align: center;
}

.gk88-age-badge {
  display: inline-block;
  background: var(--warning);
  color: #000;
  font-weight: 900;
  font-size: 13px;
  border-radius: 6px;
  padding: 3px 10px;
  margin-bottom: 10px;
}

.gk88-footer p {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.8;
}

body.gk88-float-active .gk88-footer {
  padding-bottom: 80px;
}

/* ---- FLOATING CTA ---- */
.gk88-floatcta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  padding: 10px 20px 14px;
  background: rgba(10, 16, 24, .97);
  border-top: 1px solid #1A2A40;
  pointer-events: none;
  transform: translateY(100%);
  transition: transform .35s cubic-bezier(.4, 0, .2, 1), opacity .35s ease;
  opacity: 0;
}

.gk88-floatcta.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}

.gk88-floatcta .gk88-btn {
  max-width: 480px;
  margin: 0 auto;
}

/* ---- REVEAL ANIMATION ---- */
.gk88-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .5s, transform .5s;
}

.gk88-reveal.visible {
  opacity: 1;
  transform: none;
}

/* =====================================================
   TABLET  640px+
   ===================================================== */
@media (min-width:640px) {

  .gk88-wrap {
    max-width: 680px;
  }

  /* Benefits: 3 columns */
  .gk88-ben-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Stats: 4 columns */
  .gk88-stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  /* Contact: 4 columns */
  .gk88-contact-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  /* Testimonials: show more */
  .gk88-testi {
    flex: 0 0 60%;
  }

  /* Form: 2-col name + phone row */
  .gk88-form-row {
    flex-direction: row;
    gap: 14px;
  }

  .gk88-form-row .gk88-field {
    flex: 1;
  }

  /* Float CTA wider */
  .gk88-floatcta .gk88-btn {
    max-width: 680px;
  }
}

/* =====================================================
   DESKTOP  1024px+
   ===================================================== */
@media (min-width:1024px) {

  .gk88-wrap {
    max-width: 1100px;
    padding: 0 40px;
  }

  /* Hero + QR side by side */
  .gk88-hero-qr-wrap {
    display: grid;
    grid-template-columns: 1fr 420px;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 40px;
    gap: 40px;
  }

  /* Hero left */
  .gk88-hero {
    padding: 60px 0;
    text-align: left;
  }

  .gk88-hero .gk88-wrap {
    padding: 0;
  }

  .gk88-hero .gk88-logo {
    margin-bottom: 24px;
  }

  .gk88-hero .gk88-btn {
    max-width: 340px;
  }

  .gk88-h1 {
    font-size: 3rem;
  }

  /* QR right — sticky feel */
  .gk88-qr-aside {
    padding: 60px 0;
    align-self: center;
  }

  .gk88-qr-aside .gk88-wrap {
    padding: 0;
  }

  .gk88-qr-card {
    padding: 28px;
  }

  /* Benefits: 3-col stays */
  .gk88-ben-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }

  .gk88-ben-card {
    padding: 20px;
  }

  .gk88-ben-ico {
    font-size: 30px;
  }

  /* Section headers larger */
  .gk88-sec-title {
    font-size: 1.7rem;
  }

  /* Form centered, max 700px */
  .gk88-register .gk88-wrap {
    max-width: 700px;
  }

  .gk88-form-card {
    padding: 32px;
  }

  /* Stats: 4 col with bigger numbers */
  .gk88-stats-grid {
    gap: 14px;
  }

  .gk88-stat-num {
    font-size: 2rem;
  }

  .gk88-stat-card {
    padding: 20px;
  }

  /* Testimonials: 3 inline, no scroll */
  .gk88-testimonials {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    overflow: visible;
  }

  .gk88-testi {
    flex: unset;
  }

  /* Contact: 4 col */
  .gk88-contact-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
  }

  .gk88-contact-card {
    padding: 20px;
  }

  .gk88-contact-ico {
    font-size: 32px;
  }

  /* Float CTA */
  .gk88-floatcta .gk88-btn {
    max-width: 600px;
  }

  /* Footer */
  .gk88-footer {
    padding: 32px;
  }
}

/* =====================================================
   LARGE DESKTOP  1440px+
   ===================================================== */
@media (min-width:1440px) {
  .gk88-wrap {
    max-width: 1280px;
  }

  .gk88-hero-qr-wrap {
    max-width: 1280px;
    grid-template-columns: 1fr 460px;
  }

  .gk88-h1 {
    font-size: 3.4rem;
  }
}