/* ========================================================================
   GOODDAY999 — "Electric Blue Arcade" theme
   Deep navy / electric blue / cyan / gold, lightning-bolt energy, glow frames
   ======================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }

:root {
  --bg: #060c1c;
  --bg-alt: #0a1530;
  --panel: #0d1c3c;
  --blue: #1e6fe0;
  --blue-bright: #4fb3ff;
  --cyan: #22d3ee;
  --gold: #ffc93c;
  --gold-bright: #ffdd77;
  --gold-deep: #d99b1f;
  --cream: #eef4ff;
  --text: #d9e6fb;
  --muted: #90a5cf;
  --line: rgba(79, 179, 255, 0.24);
  --shadow: 0 18px 46px rgba(2, 8, 24, 0.6);
  --radius: 18px;
  --font-head: 'Bai Jamjuree', 'IBM Plex Sans Thai', sans-serif;
  --font-body: 'IBM Plex Sans Thai', sans-serif;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: var(--font-head); font-weight: 700; color: var(--cream); line-height: 1.38; margin: 0 0 0.6rem; }
h1 { font-size: clamp(1.8rem, 4.3vw, 2.9rem); }
h2 { font-size: clamp(1.4rem, 2.7vw, 2rem); }
h3 { font-size: 1.08rem; }
p { margin: 0 0 1rem; color: var(--text); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }

.grad-text {
  background: linear-gradient(120deg, var(--gold-bright), var(--gold) 55%, var(--gold-deep));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.kw { color: var(--cyan); font-weight: 700; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-size: 0.8rem; letter-spacing: 0.1em; color: var(--cyan);
  font-weight: 700; margin-bottom: 0.7rem; text-transform: uppercase;
}
.eyebrow .bolt { color: var(--gold); font-size: 0.95rem; }

/* ---- glow-frame (signature motif: rounded blue-glow card, echoes provider art) ---- */
.glow-frame { border-radius: 22px; border: 1px solid var(--line); box-shadow: 0 0 0 1px rgba(79,179,255,0.08), var(--shadow); background: var(--panel); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  padding: 0.78rem 1.8rem; border-radius: 999px; font-weight: 700; font-size: 0.98rem;
  border: 1px solid transparent; cursor: pointer; transition: transform 0.18s ease, box-shadow 0.18s ease;
  white-space: nowrap; font-family: var(--font-head);
}
.btn:hover { transform: translateY(-2px); }
.btn-gold {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold) 60%, var(--gold-deep));
  color: #251500; box-shadow: 0 10px 26px rgba(255, 201, 60, 0.28);
}
.btn-blue {
  background: linear-gradient(135deg, var(--blue-bright), var(--blue) 70%);
  color: #04122b; box-shadow: 0 10px 26px rgba(30, 111, 224, 0.35);
}
.btn-outline { background: rgba(79, 179, 255, 0.08); color: var(--blue-bright); border-color: var(--blue); }
.btn-outline:hover { background: rgba(79, 179, 255, 0.16); }

/* ===== HEADER ===== */
.header { position: sticky; top: 0; z-index: 50; background: rgba(6, 12, 28, 0.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { max-width: 1280px; margin: 0 auto; padding: 0.7rem 1.5rem; }
.header-row1 { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; }
.logo-img { height: 40px; width: auto; }
.nav-menu { display: flex; align-items: center; gap: 1.5rem; }
.nav-link { font-size: 0.94rem; color: var(--muted); font-weight: 600; transition: color 0.15s ease; }
.nav-link:hover { color: var(--cyan); }
.nav-link .ico-line { background: #06c755; color: #fff; font-size: 0.6rem; font-weight: 800; padding: 0.1rem 0.32rem; border-radius: 4px; margin-right: 0.35rem; }
.header-btns { display: flex; align-items: center; gap: 0.7rem; }
.header-row2 { display: none; }

/* ===== HERO — full-bleed banner on top, centered text below (distinct from grid-hero brands) ===== */
.hero { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%); padding-bottom: 3rem; }
.hero-banner { width: 100%; max-height: 420px; overflow: hidden; }
.hero-banner img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.hero-wrap { max-width: 880px; margin: 0 auto; padding: 2.4rem 1.5rem 0; text-align: center; }
.hero-wrap .eyebrow { justify-content: center; }
.hero h1 .bolt-ico { color: var(--gold); }
.hero-wrap p { color: var(--muted); font-size: 1.02rem; max-width: 640px; margin-inline: auto; }
.hero-actions { display: flex; justify-content: center; gap: 0.9rem; margin-top: 1.4rem; flex-wrap: wrap; }

/* ===== SECTIONS ===== */
.section { padding: 3.4rem 1.5rem; }
.section.alt { background: var(--bg-alt); }
.section-inner { max-width: 1280px; margin: 0 auto; }
.section-head { max-width: 760px; margin: 0 auto 2.2rem; text-align: center; }
.section-head p { color: var(--muted); }

/* ===== GAME SHOWCASE (right after hero) ===== */
.provider-cat { margin-bottom: 2.2rem; }
.provider-cat:last-child { margin-bottom: 0; }
.provider-cat-head { display: flex; align-items: baseline; gap: 0.8rem; margin-bottom: 1.1rem; }
.provider-cat-head h3 { color: var(--cyan); margin: 0; }
.provider-cat-head span { color: var(--muted); font-size: 0.85rem; }
.provider-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; }
.provider-card { display: block; border-radius: 16px; overflow: hidden; transition: transform 0.18s ease; }
.provider-card:hover { transform: translateY(-4px); }
.provider-card img { width: 100%; }

/* ===== 3 ICON FEATURE STRIP ===== */
.icon-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; max-width: 980px; margin: 0 auto; }
.icon-card { text-align: center; padding: 1.6rem 1rem; }
.icon-badge {
  width: 70px; height: 70px; margin: 0 auto 0.9rem; border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, var(--blue-bright), var(--blue));
  box-shadow: 0 10px 24px rgba(30, 111, 224, 0.35);
}
.icon-badge svg { width: 32px; height: 32px; fill: #04122b; }
.icon-card h3 { margin-bottom: 0.3rem; }
.icon-card p { color: var(--muted); font-size: 0.9rem; margin: 0; }

/* ===== FEATURE TEXT SECTIONS ===== */
.feature-block { max-width: 900px; margin: 0 auto; text-align: center; }
.feature-block p { color: var(--muted); }

/* ===== STEP CARDS (deposit-withdraw 3 steps) ===== */
.step-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.step-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; position: relative; }
.step-card .step-num {
  width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, var(--gold-bright), var(--gold-deep)); color: #251500; font-weight: 800;
  font-family: var(--font-head); margin-bottom: 0.9rem;
}
.step-card h3 { color: var(--cyan); margin-bottom: 0.6rem; }
.step-card p { color: var(--muted); font-size: 0.92rem; margin-bottom: 0; }

/* ===== TEASER SPLIT (promotion / play-free cross-links) ===== */
.teaser-split { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.teaser-card {
  position: relative; border-radius: var(--radius); overflow: hidden; min-height: 200px;
  display: flex; flex-direction: column; justify-content: flex-end; padding: 1.6rem;
  border: 1px solid var(--line); background: var(--panel);
}
.teaser-card h3 { margin-bottom: 0.35rem; }
.teaser-card p { color: var(--muted); font-size: 0.9rem; margin-bottom: 0.9rem; }

/* ===== ARTICLE PREVIEW ===== */
.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.article-card { display: block; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.article-card img { height: 170px; object-fit: cover; width: 100%; }
.article-card-body { padding: 1.1rem 1.2rem 1.3rem; }
.article-card-body h3 { font-size: 1rem; margin-bottom: 0.4rem; }
.article-card-body p { color: var(--muted); font-size: 0.86rem; margin: 0; }

/* ===== FAQ ===== */
.faq-list { max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; gap: 0.9rem; }
.faq-item { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 1.2rem 1.4rem; }
.faq-q { color: var(--cyan); margin-bottom: 0.4rem; font-size: 1rem; font-family: var(--font-head); }
.faq-a { color: var(--muted); margin: 0; font-size: 0.92rem; }

/* ===== CTA ===== */
.cta-section { padding: 0 1.5rem 4rem; }
.cta-panel {
  max-width: 1000px; margin: 0 auto; text-align: center; padding: 3rem 1.6rem; border-radius: 24px;
  background: linear-gradient(135deg, var(--blue) 0%, var(--panel) 65%);
  border: 1px solid var(--blue-bright);
}
.cta-btns { display: flex; justify-content: center; gap: 0.9rem; margin-top: 1.4rem; flex-wrap: wrap; }

/* ===== FOOTER ===== */
.footer { padding: 3rem 1.5rem 7rem; text-align: center; background: var(--bg-alt); border-top: 1px solid var(--line); }
.footer-logo { height: 44px; margin: 0 auto 1rem; }
.footer-tagline { max-width: 640px; margin: 0 auto 1.6rem; color: var(--muted); font-size: 0.9rem; }
.footer-partner { display: block; max-width: 900px; margin: 0 auto 1.6rem; background: var(--bg); border-radius: 12px; padding: 1rem; border: 1px solid var(--line); }
.footer-copy { color: var(--muted); font-size: 0.8rem; margin: 0; }

/* ===== STICKY BAR — docked full-width, mobile-only ===== */
.sticky-bar {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  align-items: center; justify-content: space-between;
  background: rgba(6, 12, 28, 0.97); border-top: 1px solid var(--blue-bright);
  padding: 0.5rem 0.5rem; box-shadow: 0 -8px 24px rgba(0,0,0,0.4);
}
.mnav-item { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 0.15rem; font-size: 0.66rem; color: var(--muted); font-weight: 700; padding: 0.3rem 0.1rem; }
.mnav-emoji { font-size: 1.15rem; }
.mnav-center {
  width: 56px; height: 56px; border-radius: 16px; margin-top: -24px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, var(--gold-bright), var(--gold-deep));
  border: 3px solid var(--bg); box-shadow: 0 8px 20px rgba(255, 201, 60, 0.4);
}
.mnav-center span { font-size: 1.6rem; }

/* ===== PAGE (inner pages: promotion / play-free / article hub) ===== */
.page-hero { padding: 2.6rem 1.5rem 1rem; text-align: center; background: linear-gradient(180deg, var(--bg-alt), var(--bg)); }
.page-hero .eyebrow { justify-content: center; display: flex; }
.page-hero h1 { max-width: 780px; margin: 0 auto 0.6rem; }
.page-hero p { max-width: 640px; margin: 0 auto; color: var(--muted); }
.page-main { max-width: 980px; margin: 0 auto; padding: 2.6rem 1.5rem 4rem; }
.page-content h2 { color: var(--cyan); margin-top: 2.2rem; }
.page-content h2:first-child { margin-top: 0; }
.page-content p { color: var(--text); }
.page-content ul { margin: 1rem 0; display: flex; flex-direction: column; gap: 0.55rem; }
.page-content ul li { padding-left: 1.5rem; position: relative; color: var(--muted); }
.page-content ul li::before { content: "⚡"; position: absolute; left: 0; color: var(--gold); font-size: 0.7rem; top: 0.3rem; }

.promo-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.3rem; margin: 1.6rem 0 2rem; }
.promo-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; }
.promo-card .promo-tag { display: inline-block; background: rgba(34, 211, 238, 0.16); color: var(--cyan); font-size: 0.72rem; font-weight: 700; padding: 0.22rem 0.7rem; border-radius: 999px; margin-bottom: 0.7rem; }
.promo-card h3 { margin-bottom: 0.5rem; }
.promo-card p { color: var(--muted); font-size: 0.9rem; margin: 0; }

.trial-note { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem 1.7rem; margin: 1.6rem 0; }
.trial-note p { margin: 0; color: var(--muted); font-size: 0.92rem; }

/* ===== ARTICLE DETAIL PAGE ===== */
.article-main { max-width: 780px; margin: 0 auto; padding: 2.6rem 1.5rem 4rem; }
.article-main .eyebrow { justify-content: center; display: flex; }
.article-main h1 { text-align: center; margin-bottom: 0.6rem; }
.article-meta { text-align: center; color: var(--muted); font-size: 0.85rem; margin-bottom: 1.8rem; }
.article-cover { border-radius: var(--radius); overflow: hidden; margin-bottom: 2rem; border: 1px solid var(--line); }
.article-cover img { width: 100%; }
.article-tldr { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.6rem; margin-bottom: 2rem; }
.article-tldr h2 { color: var(--cyan); font-size: 1.05rem; margin-bottom: 0.7rem; }
.article-tldr ul { display: flex; flex-direction: column; gap: 0.5rem; }
.article-tldr ul li { padding-left: 1.4rem; position: relative; color: var(--muted); font-size: 0.92rem; }
.article-tldr ul li::before { content: "⚡"; position: absolute; left: 0; color: var(--gold); font-size: 0.65rem; top: 0.3rem; }
.article-main h2 { margin-top: 2rem; }
.article-faq { margin-top: 2.4rem; }
.article-faq h2 { color: var(--cyan); }
.action-btns { display: flex; justify-content: center; gap: 0.8rem; flex-wrap: wrap; }

/* ===== reveal-on-scroll ===== */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 980px) {
  .step-grid { grid-template-columns: 1fr; }
  .article-grid { grid-template-columns: 1fr; }
  .teaser-split { grid-template-columns: 1fr; }
  .promo-grid { grid-template-columns: 1fr; }
  .provider-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-banner { max-height: 300px; }
}
@media (max-width: 760px) {
  .nav-menu { display: none; }
  .icon-strip { grid-template-columns: 1fr; gap: 1rem; }
  .provider-grid { grid-template-columns: repeat(2, 1fr); }
  .header-row2 { display: flex; gap: 1.1rem; overflow-x: auto; padding: 0.6rem 1.5rem 0.8rem; border-top: 1px solid var(--line); scrollbar-width: none; }
  .header-row2::-webkit-scrollbar { display: none; }
  .mob-nav-link { flex-shrink: 0; font-size: 0.85rem; color: var(--muted); font-weight: 600; }
  body { padding-bottom: 5.4rem; }
  .sticky-bar { display: flex; }
  .hero-banner { max-height: 220px; }
}
