/* ==========================================================================
   kogame.online — main stylesheet
   Dark neumorphic design system (Bootstrap 5 companion)
   ========================================================================== */

:root {
  --primary: #1d4ed8;
  --primary-soft: #3b82f6;
  --secondary: #7c3aed;
  --accent: #eab308;
  --accent-soft: #facc15;
  --bg: #0b0a1c;
  --bg-alt: #100e26;
  --bg-card: #14122f;
  --bg-card2: #1b1842;
  --border-soft: rgba(124, 58, 237, 0.28);
  --text-main: #e9e6ff;
  --text-muted: #9c96c6;
  --text-dim: #7c77a3;
  --neu-out: 4px 4px 10px rgba(0, 0, 0, 0.6), -2px -2px 8px rgba(255, 255, 255, 0.04);
  --neu-in: inset 3px 3px 8px rgba(0, 0, 0, 0.7), inset -2px -2px 6px rgba(255, 255, 255, 0.03);
  --radius: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Sarabun', 'Noto Sans Thai', system-ui, sans-serif;
  background-color: var(--bg);
  color: var(--text-main);
  font-size: 1rem;
  line-height: 1.75;
  overflow-x: hidden;
}

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

a { color: var(--accent-soft); text-decoration: none; }
a:hover { color: var(--accent); text-decoration: underline; }

/* ── NAVBAR ───────────────────────────────────────────────────────────── */
.navbar {
  background: rgba(11, 10, 28, 0.97);
  border-bottom: 1px solid var(--border-soft);
  padding: 0.6rem 0;
  position: sticky;
  top: 0;
  z-index: 1030;
  backdrop-filter: blur(10px);
}
.navbar-brand img { height: 42px; width: auto; }
.navbar-toggler { border-color: rgba(124, 58, 237, 0.5); }
.navbar-toggler:focus { box-shadow: 0 0 0 0.15rem rgba(124, 58, 237, 0.4); }
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(233,230,255,0.85)' stroke-width='2' stroke-linecap='round' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}
.navbar-nav .nav-link {
  color: var(--text-main) !important;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 0.8rem;
  transition: color 0.2s;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active { color: var(--accent) !important; }

.btn-nav-cta {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff !important;
  font-weight: 700;
  border-radius: 10px;
  padding: 0.45rem 1.15rem !important;
  box-shadow: 0 0 16px rgba(124, 58, 237, 0.45);
}
.btn-nav-cta:hover { color: #fff !important; text-decoration: none; filter: brightness(1.12); }

/* ── BUTTONS ──────────────────────────────────────────────────────────── */
.btn-neu-primary,
.btn-neu-gold {
  display: inline-block;
  font-weight: 700;
  font-size: 1.02rem;
  padding: 0.78rem 2.1rem;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}
.btn-neu-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  box-shadow: var(--neu-out), 0 0 20px rgba(124, 58, 237, 0.42);
}
.btn-neu-primary:hover { color: #fff; box-shadow: var(--neu-in), 0 0 28px rgba(124, 58, 237, 0.6); transform: translateY(1px); text-decoration: none; }
.btn-neu-gold {
  background: linear-gradient(135deg, var(--accent), #f59e0b);
  color: #201c00;
  box-shadow: var(--neu-out), 0 0 20px rgba(234, 179, 8, 0.35);
}
.btn-neu-gold:hover { color: #201c00; box-shadow: var(--neu-in), 0 0 28px rgba(234, 179, 8, 0.55); transform: translateY(1px); text-decoration: none; }
.btn-neu-ghost {
  display: inline-block;
  font-weight: 600;
  padding: 0.75rem 1.9rem;
  border-radius: 12px;
  border: 1px solid var(--border-soft);
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.03);
}
.btn-neu-ghost:hover { color: var(--accent); text-decoration: none; border-color: var(--accent); }

/* ── SECTION SHELL ────────────────────────────────────────────────────── */
section { padding: 4.2rem 0; position: relative; }
section.alt { background: var(--bg-alt); }
.section-title {
  font-size: clamp(1.5rem, 3.2vw, 2.1rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.6rem;
  line-height: 1.35;
}
.section-sub { color: var(--text-muted); max-width: 720px; margin: 0 auto 0.4rem; }
.divider-gold {
  width: 88px; height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  margin: 0 auto 1.6rem;
  border-radius: 3px;
}
.divider-gold.text-start { margin-left: 0; margin-right: auto; }

/* ── HERO (home) ──────────────────────────────────────────────────────── */
.hero-section {
  min-height: 86vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #0b0a1c 0%, #1a0a3e 42%, #0c1c4d 100%);
  padding: 5rem 0;
}
.hero-section::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 18% 45%, rgba(124, 58, 237, 0.28) 0%, transparent 60%),
    radial-gradient(ellipse at 82% 28%, rgba(29, 78, 216, 0.32) 0%, transparent 55%),
    radial-gradient(ellipse at 62% 85%, rgba(234, 179, 8, 0.09) 0%, transparent 52%);
  pointer-events: none;
}
.hero-section::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 62px, rgba(124, 58, 237, 0.045) 62px, rgba(124, 58, 237, 0.045) 63px),
    repeating-linear-gradient(90deg, transparent, transparent 62px, rgba(29, 78, 216, 0.045) 62px, rgba(29, 78, 216, 0.045) 63px);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 2; }
.hero-badge {
  display: inline-block;
  background: linear-gradient(90deg, var(--secondary), var(--primary));
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.32rem 1rem;
  border-radius: 50px;
  letter-spacing: 0.05em;
  margin-bottom: 1.1rem;
  text-transform: uppercase;
}
.hero-title {
  font-size: clamp(1.85rem, 4.6vw, 3.15rem);
  font-weight: 800;
  line-height: 1.28;
  color: #fff;
  margin-bottom: 1.1rem;
}
.hero-title .highlight {
  background: linear-gradient(90deg, var(--accent), #f59e0b);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-sub { font-size: 1.1rem; color: var(--text-muted); max-width: 580px; margin-bottom: 1.8rem; }
.hero-img-wrap { position: relative; }
.hero-img-wrap img {
  border-radius: 20px;
  border: 1px solid var(--border-soft);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(124, 58, 237, 0.22);
}
.hero-strip { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-top: 1.6rem; }
.hero-strip span {
  font-size: 0.82rem; color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 50px; padding: 0.28rem 0.85rem;
}

/* ── PAGE HERO (inner pages) ──────────────────────────────────────────── */
.page-hero {
  padding: 3.6rem 0 3rem;
  background: linear-gradient(135deg, #0b0a1c 0%, #17103a 50%, #0c1c4d 100%);
  border-bottom: 1px solid var(--border-soft);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 75% 20%, rgba(124, 58, 237, 0.22) 0%, transparent 60%);
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 {
  font-size: clamp(1.5rem, 3.4vw, 2.2rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.35;
  margin-bottom: 0.8rem;
}
.page-hero .lead-sub { color: var(--text-muted); max-width: 760px; }
.breadcrumb-neu { font-size: 0.85rem; color: var(--text-dim); margin-bottom: 0.9rem; }
.breadcrumb-neu a { color: var(--text-muted); }

/* ── CARDS ────────────────────────────────────────────────────────────── */
.card-neu {
  background: var(--bg-card);
  border: 1px solid rgba(124, 58, 237, 0.16);
  border-radius: var(--radius);
  padding: 1.6rem 1.4rem;
  height: 100%;
  box-shadow: var(--neu-out);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.card-neu:hover { transform: translateY(-4px); border-color: var(--border-soft); box-shadow: var(--neu-out), 0 0 26px rgba(124, 58, 237, 0.28); }
.why-icon { font-size: 1.9rem; color: var(--accent); margin-bottom: 0.7rem; }
.why-title { font-size: 1.08rem; font-weight: 700; color: #fff; margin-bottom: 0.45rem; }
.why-desc { color: var(--text-muted); font-size: 0.93rem; margin: 0; }

/* ── STATS ────────────────────────────────────────────────────────────── */
.stats-section { background: var(--bg-alt); border-top: 1px solid rgba(255,255,255,0.04); border-bottom: 1px solid rgba(255,255,255,0.04); }
.stat-card { background: var(--bg-card); border-radius: var(--radius); padding: 1.5rem 0.8rem; box-shadow: var(--neu-in); height: 100%; }
.stat-number { font-size: clamp(1.5rem, 3.4vw, 2.15rem); font-weight: 800; color: var(--accent); line-height: 1.2; }
.stat-label { color: var(--text-muted); font-size: 0.9rem; margin-top: 0.25rem; }

/* ── GAME TILES ───────────────────────────────────────────────────────── */
.game-card {
  background: var(--bg-card2);
  border: 1px solid rgba(124, 58, 237, 0.18);
  border-radius: var(--radius);
  padding: 1.1rem 0.6rem;
  text-align: center;
  height: 100%;
  transition: transform 0.18s, border-color 0.18s;
}
.game-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.game-icon { font-size: 1.7rem; color: var(--accent-soft); margin-bottom: 0.45rem; }
.game-name { font-weight: 700; color: #fff; font-size: 0.95rem; }
.game-desc { font-size: 0.78rem; color: var(--text-dim); }

/* ── CHIPS ────────────────────────────────────────────────────────────── */
.provider-chip, .payment-chip {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 0.85rem 0.6rem;
  text-align: center;
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.9rem;
  height: 100%;
  transition: border-color 0.18s, color 0.18s;
}
.provider-chip:hover, .payment-chip:hover { border-color: var(--accent); color: var(--accent); }
.payment-icon { font-size: 1.3rem; color: var(--primary-soft); display: block; margin-bottom: 0.3rem; }

/* ── TABLES ───────────────────────────────────────────────────────────── */
.table-neu { width: 100%; border-collapse: separate; border-spacing: 0; margin: 1.4rem 0; font-size: 0.94rem; }
.table-neu thead th {
  background: linear-gradient(135deg, rgba(29, 78, 216, 0.35), rgba(124, 58, 237, 0.35));
  color: #fff; font-weight: 700; padding: 0.8rem 0.9rem; text-align: left;
  border-bottom: 1px solid var(--border-soft);
}
.table-neu tbody td { padding: 0.75rem 0.9rem; border-bottom: 1px solid rgba(255, 255, 255, 0.06); color: var(--text-main); vertical-align: top; }
.table-neu tbody tr:nth-child(even) { background: rgba(255, 255, 255, 0.022); }
.table-neu tbody tr:hover { background: rgba(124, 58, 237, 0.1); }
.table-scroll { overflow-x: auto; }

/* ── ARTICLE BODY ─────────────────────────────────────────────────────── */
.article-body h2 {
  font-size: clamp(1.25rem, 2.6vw, 1.6rem);
  font-weight: 800; color: #fff;
  margin: 2.4rem 0 0.9rem;
  line-height: 1.42;
  padding-left: 0.9rem;
  border-left: 4px solid var(--accent);
}
.article-body h3 {
  font-size: 1.14rem; font-weight: 700; color: var(--accent-soft);
  margin: 1.8rem 0 0.6rem; line-height: 1.5;
}
.article-body p { color: #d5d1f0; margin-bottom: 1.05rem; }
.article-body ul, .article-body ol { color: #d5d1f0; margin-bottom: 1.1rem; padding-left: 1.3rem; }
.article-body li { margin-bottom: 0.4rem; }
.article-body strong { color: #fff; }

.toc {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 1.35rem 1.5rem;
  margin: 1.8rem 0;
}
.toc h2 { font-size: 1.05rem !important; border: none !important; padding: 0 !important; margin: 0 0 0.7rem !important; color: var(--accent) !important; }
.toc ol { margin: 0; padding-left: 1.25rem; }
.toc a { color: var(--text-main); }
.toc a:hover { color: var(--accent); }

.content-img {
  width: 100%;
  max-width: 900px;
  margin: 1.4rem auto;
  border-radius: var(--radius);
  border: 1px solid var(--border-soft);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}
.img-caption { text-align: center; font-size: 0.83rem; color: var(--text-dim); margin: -0.6rem auto 1.6rem; max-width: 900px; }

/* ── FAQ ACCORDION ────────────────────────────────────────────────────── */
.faq-accordion .accordion-item {
  background: var(--bg-card);
  border: 1px solid rgba(124, 58, 237, 0.16);
  border-radius: var(--radius) !important;
  margin-bottom: 0.85rem;
  overflow: hidden;
}
.faq-accordion .accordion-button {
  background: transparent;
  color: #fff;
  font-weight: 700;
  font-size: 1.02rem;
  padding: 1.05rem 1.25rem;
  box-shadow: none;
}
.faq-accordion .accordion-button:not(.collapsed) { background: rgba(124, 58, 237, 0.16); color: var(--accent); }
.faq-accordion .accordion-button:focus { box-shadow: none; border-color: var(--border-soft); }
.faq-accordion .accordion-button::after { filter: invert(1); }
.faq-accordion .accordion-body { color: #d5d1f0; padding: 1rem 1.25rem 1.3rem; font-size: 0.97rem; }

/* ── CTA STRIP ────────────────────────────────────────────────────────── */
.cta-strip {
  background: linear-gradient(135deg, #1d1246 0%, #2a1160 55%, #12295e 100%);
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  padding: 2.3rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin: 2.4rem 0;
}
.cta-strip::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(234, 179, 8, 0.16) 0%, transparent 65%);
  pointer-events: none;
}
.cta-strip-title { position: relative; font-size: clamp(1.2rem, 2.6vw, 1.65rem); font-weight: 800; color: #fff; margin-bottom: 0.5rem; }
.cta-strip-sub { position: relative; color: var(--text-muted); margin-bottom: 1.3rem; }
.cta-strip .btn-neu-gold, .cta-strip .btn-neu-primary { position: relative; }

/* ── NOTICES ──────────────────────────────────────────────────────────── */
.privacy-notice {
  background: rgba(29, 78, 216, 0.09);
  border: 1px solid rgba(29, 78, 216, 0.3);
  border-radius: var(--radius);
  padding: 1.15rem 1.35rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}
.privacy-notice i { color: var(--primary-soft); }
.age-notice {
  text-align: center; margin-top: 2rem; padding: 1rem 1.2rem;
  background: rgba(234, 179, 8, 0.07);
  border: 1px dashed rgba(234, 179, 8, 0.4);
  border-radius: var(--radius);
  color: var(--text-muted); font-size: 0.9rem;
}
.age-badge {
  display: inline-block; background: var(--accent); color: #201c00;
  font-weight: 800; border-radius: 8px; padding: 0.1rem 0.55rem; margin-right: 0.35rem;
}

/* ── TESTIMONIAL / TIER / EVENT ───────────────────────────────────────── */
.testi-card { background: var(--bg-card); border: 1px solid rgba(124,58,237,0.16); border-radius: var(--radius); padding: 1.35rem 1.3rem; height: 100%; }
.testi-stars { color: var(--accent); margin-bottom: 0.5rem; letter-spacing: 0.1em; }
.testi-text { color: #d5d1f0; font-size: 0.94rem; }
.testi-name { font-weight: 700; color: #fff; font-size: 0.92rem; margin-top: 0.6rem; }
.testi-city { font-size: 0.8rem; color: var(--text-dim); }

.tier-card { background: var(--bg-card); border: 1px solid rgba(124,58,237,0.16); border-radius: var(--radius); padding: 1.6rem 1.4rem; height: 100%; text-align: center; }
.tier-card:hover { border-color: var(--accent); }
.tier-icon { font-size: 1.9rem; margin-bottom: 0.4rem; }
.tier-name { font-weight: 800; font-size: 1.1rem; color: #fff; margin-bottom: 0.7rem; }
.tier-benefit { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 0.35rem; text-align: left; }
.tier-gold { border-color: rgba(234,179,8,0.45); }
.tier-gold .tier-name { color: var(--accent); }

.event-card { background: var(--bg-card); border: 1px solid rgba(124,58,237,0.16); border-radius: var(--radius); padding: 1.25rem 1.3rem; height: 100%; display: flex; gap: 1rem; align-items: flex-start; }
.event-date-badge { background: linear-gradient(135deg, var(--primary), var(--secondary)); border-radius: 10px; padding: 0.5rem 0.75rem; text-align: center; min-width: 62px; }
.event-date-day { font-weight: 800; font-size: 1.25rem; color: #fff; line-height: 1.1; }
.event-date-month { font-size: 0.72rem; color: rgba(255,255,255,0.85); }
.event-title { font-weight: 700; color: #fff; margin-bottom: 0.25rem; font-size: 1rem; }
.event-desc { color: var(--text-muted); font-size: 0.9rem; margin: 0; }

/* ── JACKPOT / PROVIDERS ──────────────────────────────────────────────── */
.jackpot-card { background: var(--bg-card2); border: 1px solid rgba(234,179,8,0.25); border-radius: var(--radius); padding: 1.2rem 1.3rem; height: 100%; }
.jackpot-game { font-size: 0.86rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.jackpot-amount { font-size: clamp(1.3rem, 3vw, 1.75rem); font-weight: 800; color: var(--accent); }
.jackpot-winner { font-size: 0.85rem; color: var(--text-dim); }

/* ── CONTACT ──────────────────────────────────────────────────────────── */
.contact-card { background: var(--bg-card); border: 1px solid rgba(124,58,237,0.16); border-radius: var(--radius); padding: 1.5rem 1rem; text-align: center; height: 100%; }
.contact-card:hover { border-color: var(--accent); }
.contact-icon { font-size: 1.6rem; color: var(--accent); margin-bottom: 0.5rem; display: block; }

/* ── FOOTER ───────────────────────────────────────────────────────────── */
footer { background: #08071a; border-top: 1px solid var(--border-soft); padding: 3.4rem 0 1.6rem; color: var(--text-muted); font-size: 0.92rem; }
.footer-brand p { margin-bottom: 0.7rem; }
.footer-heading { color: #fff; font-weight: 700; margin-bottom: 0.9rem; font-size: 1rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a { color: var(--text-muted); }
.footer-links a:hover { color: var(--accent); }
.footer-bottom { margin-top: 2.4rem; padding-top: 1.3rem; border-top: 1px solid rgba(255,255,255,0.07); font-size: 0.85rem; }
.footer-email a { color: var(--text-muted); }

/* ── UTIL ─────────────────────────────────────────────────────────────── */
.badge-soft {
  display: inline-block; font-size: 0.78rem; font-weight: 600;
  background: rgba(29,78,216,0.18); border: 1px solid rgba(29,78,216,0.4);
  color: #cfe0ff; border-radius: 50px; padding: 0.12rem 0.7rem; margin: 0 0.25rem 0.35rem 0;
}
.note-eat { font-size: 0.83rem; color: var(--text-dim); border-top: 1px solid rgba(255,255,255,0.07); margin-top: 2rem; padding-top: 0.9rem; }
.back-top { position: fixed; right: 18px; bottom: 18px; z-index: 1040; display: none; }
.back-top a { display: block; width: 44px; height: 44px; line-height: 44px; text-align: center; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--secondary)); color: #fff; font-size: 1.2rem; box-shadow: var(--neu-out); }
.back-top a:hover { color: #fff; text-decoration: none; }

@media (max-width: 991.98px) {
  .navbar-nav { background: var(--bg-card); border-radius: 12px; padding: 0.6rem; margin-top: 0.6rem; }
  .btn-nav-cta { display: inline-block; margin: 0.5rem 0 0.2rem 0.8rem; }
  .hero-section { min-height: auto; padding: 3.4rem 0; }
  section { padding: 3rem 0; }
}
