/* sky78.tech — theme: midnight sky (กรมท่าดำ + ฟ้า + ทอง) */
:root {
  --primary: #0284c7;
  --secondary: #22d3ee;
  --accent: #fbbf24;
  --bg: #050a18;
  --bg-card: #0b1428;
  --bg-card2: #102040;
  --text-main: #e3ecff;
  --text-muted: #8ba3cc;
  --line: rgba(34,211,238,0.20);
  --neu-shadow-out: 4px 4px 10px rgba(0,0,0,0.6), -2px -2px 8px rgba(255,255,255,0.04);
  --neu-shadow-in: inset 3px 3px 8px rgba(0,0,0,0.7), inset -2px -2px 6px rgba(255,255,255,0.03);
}

* { box-sizing: border-box; }
html, body { overflow-x: clip; width: 100%; }

body {
  font-family: 'Sarabun', sans-serif;
  background-color: var(--bg);
  color: var(--text-main);
  font-size: 1rem;
  line-height: 1.7;
}

a { color: var(--secondary); }

/* ── NAVBAR ── */
.navbar {
  background: rgba(5, 10, 24, 0.97);
  border-bottom: 1px solid var(--line);
  padding: 0.6rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
}
.navbar-brand img { height: 44px; width: auto; }
.navbar-toggler { border-color: rgba(34,211,238,0.5); }
.navbar-toggler-icon { filter: invert(1); }
.navbar-nav .nav-link {
  color: var(--text-main) !important;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 0.85rem;
  transition: color 0.2s;
  letter-spacing: 0.01em;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active { color: var(--accent) !important; }

/* ── BREADCRUMB / PAGE H1 ── */
.breadcrumb-wrap {
  background: linear-gradient(135deg, #050a18 0%, #0a1738 45%, #082033 100%);
  border-bottom: 1px solid var(--line);
  padding: 3.2rem 0 2.4rem;
  position: relative;
  overflow: hidden;
}
.breadcrumb-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 15% 30%, rgba(2,132,199,0.30) 0%, transparent 60%),
    radial-gradient(ellipse at 85% 20%, rgba(34,211,238,0.18) 0%, transparent 55%);
  pointer-events: none;
}
.breadcrumb-wrap .container { position: relative; z-index: 1; }
.breadcrumb-home { padding: 3.6rem 0 2.6rem; }
.page-h1 {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.3;
  margin: 0;
  max-width: 1000px;
}
.breadcrumb {
  margin: 0.9rem 0 0;
  padding: 0;
  background: none;
  font-size: 0.9rem;
}
.breadcrumb-item a { color: var(--secondary); text-decoration: none; }
.breadcrumb-item a:hover { color: var(--accent); }
.breadcrumb-item.active { color: var(--text-muted); }
.breadcrumb-item + .breadcrumb-item::before { content: '/'; color: var(--text-muted); }

/* ── HERO ── */
.hero-section {
  position: relative;
  min-height: 74vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #050a18 0%, #0a1738 42%, #082233 100%);
}
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(2,132,199,0.28) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 30%, rgba(34,211,238,0.20) 0%, transparent 55%),
    radial-gradient(ellipse at 60% 82%, rgba(251,191,36,0.08) 0%, transparent 50%);
  pointer-events: none;
}
.hero-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 60px, rgba(34,211,238,0.045) 60px, rgba(34,211,238,0.045) 61px),
    repeating-linear-gradient(90deg, transparent, transparent 60px, rgba(2,132,199,0.045) 60px, rgba(2,132,199,0.045) 61px);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 2; }
.hero-badge {
  display: inline-block;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  color: #04121f;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.3rem 1rem;
  border-radius: 50px;
  letter-spacing: 0.05em;
  margin-bottom: 1.2rem;
}
.hero-title {
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.3;
  color: #fff;
  margin-bottom: 1.2rem;
}
.hero-title .highlight {
  background: linear-gradient(90deg, var(--secondary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub { font-size: 1.12rem; color: var(--text-muted); max-width: 620px; margin-bottom: 2rem; }
.hero-points { list-style: none; padding: 0; margin: 0 0 1.6rem; }
.hero-points li { color: var(--text-main); font-size: 0.95rem; margin-bottom: 0.45rem; }
.hero-points i { color: var(--accent); margin-right: 0.5rem; }
.hero-img-wrap { position: relative; z-index: 2; }
.hero-img-wrap img {
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6), 0 0 40px rgba(34,211,238,0.25);
  width: 100%;
  max-height: 480px;
  object-fit: cover;
}

/* ── BUTTONS ── */
.btn-neu-primary {
  background: linear-gradient(135deg, var(--primary), #0369a1);
  color: #fff;
  font-weight: 700;
  font-size: 1.02rem;
  padding: 0.8rem 2.1rem;
  border: none;
  border-radius: 12px;
  box-shadow: var(--neu-shadow-out), 0 0 20px rgba(2,132,199,0.4);
  transition: all 0.2s;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
.btn-neu-primary:hover { box-shadow: var(--neu-shadow-in), 0 0 30px rgba(2,132,199,0.6); transform: translateY(1px); color: #fff; }
.btn-neu-gold {
  background: linear-gradient(135deg, var(--accent), #f59e0b);
  color: #23180a;
  font-weight: 700;
  font-size: 1.02rem;
  padding: 0.8rem 2.1rem;
  border: none;
  border-radius: 12px;
  box-shadow: var(--neu-shadow-out), 0 0 20px rgba(251,191,36,0.35);
  transition: all 0.2s;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
.btn-neu-gold:hover { box-shadow: var(--neu-shadow-in), 0 0 30px rgba(251,191,36,0.55); transform: translateY(1px); color: #23180a; }

/* ── SECTIONS ── */
section { padding: 3.4rem 0; }
.section-block { background: var(--bg); }
.section-title { font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 800; color: #fff; margin-bottom: 0.5rem; }
.section-sub { color: var(--text-muted); font-size: 1rem; margin-bottom: 2rem; }
.divider-gold {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--secondary), var(--accent));
  border-radius: 2px;
  margin: 0.6rem auto 1.5rem;
}
main p { color: var(--text-main); }

/* ── STATS ── */
.stats-section { background: linear-gradient(135deg, #082033 0%, #0a1738 100%); position: relative; overflow: hidden; }
.stats-section::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(251,191,36,0.08) 0%, transparent 70%); }
.stat-card { text-align: center; padding: 1.6rem 1rem; position: relative; z-index: 1; }
.stat-number {
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  font-weight: 800;
  background: linear-gradient(90deg, var(--secondary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}
.stat-label { font-size: 0.95rem; color: var(--text-muted); margin-top: 0.4rem; }

/* ── CARDS ── */
.card-neu {
  background: var(--bg-card);
  border-radius: 16px;
  box-shadow: var(--neu-shadow-out);
  border: 1px solid var(--line);
  padding: 1.7rem 1.4rem;
  transition: transform 0.2s, box-shadow 0.2s;
  height: 100%;
}
.card-neu:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(34,211,238,0.20), var(--neu-shadow-out); }
.card-neu h3 { font-size: 1.05rem; font-weight: 700; color: #fff; margin-bottom: 0.5rem; }
.card-neu p { font-size: 0.92rem; color: var(--text-muted); margin: 0; }

.game-type-card {
  background: var(--bg-card2);
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: var(--neu-shadow-out);
  text-align: center;
  padding: 1.6rem 1rem 1.3rem;
  transition: transform 0.2s, box-shadow 0.2s;
  height: 100%;
}
.game-type-card:hover { transform: translateY(-5px); box-shadow: 0 16px 40px rgba(34,211,238,0.25); }
.game-type-card i { font-size: 2.1rem; color: var(--accent); display: block; margin-bottom: 0.7rem; }
.game-type-card .game-name { font-size: 1.02rem; font-weight: 700; color: #fff; margin-bottom: 0.3rem; }
.game-type-card .game-desc { font-size: 0.85rem; color: var(--text-muted); }

.provider-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.9rem 1.2rem;
  text-align: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-main);
  box-shadow: var(--neu-shadow-out);
  transition: all 0.2s;
}
.provider-card:hover { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 20px rgba(251,191,36,0.2); }

/* ── STEP CARDS ── */
.step-card {
  background: var(--bg-card);
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: var(--neu-shadow-out);
  padding: 1.5rem 1.3rem;
  height: 100%;
}
.step-num {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #04121f;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 0.8rem;
}
.step-title { font-size: 1.02rem; font-weight: 700; color: #fff; margin-bottom: 0.35rem; }
.step-desc { font-size: 0.9rem; color: var(--text-muted); margin: 0; }

/* ── INSET BOXES ── */
.highlight-box {
  background: rgba(2,132,199,0.10);
  border: 1px solid rgba(34,211,238,0.35);
  border-left: 4px solid var(--secondary);
  border-radius: 12px;
  padding: 1.1rem 1.4rem;
  margin: 1.4rem 0;
}
.highlight-box p { margin: 0; font-size: 0.95rem; color: var(--text-main); }
.warning-box {
  background: rgba(251,191,36,0.08);
  border: 1px solid rgba(251,191,36,0.35);
  border-left: 4px solid var(--accent);
  border-radius: 12px;
  padding: 1.1rem 1.4rem;
  margin: 1.4rem 0;
}
.warning-box p { margin: 0; font-size: 0.95rem; color: var(--text-main); }
.check-list { list-style: none; padding: 0; margin: 1rem 0; }
.check-list li { font-size: 0.95rem; color: var(--text-main); margin-bottom: 0.5rem; padding-left: 0.2rem; }
.check-list i { color: var(--secondary); margin-right: 0.5rem; }

/* ── TOC ── */
.toc-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--neu-shadow-out);
  padding: 1.5rem 1.6rem;
}
.toc-list { list-style: none; padding: 0; margin: 0; counter-reset: toc; }
.toc-list li { margin-bottom: 0.55rem; counter-increment: toc; }
.toc-list li a {
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.96rem;
  transition: color 0.2s;
}
.toc-list li a::before { content: counter(toc) ". "; color: var(--accent); font-weight: 700; }
.toc-list li a:hover { color: var(--secondary); }

/* ── TABLE ── */
.table-wrap { overflow-x: auto; margin: 1.5rem 0; border-radius: 14px; border: 1px solid var(--line); }
.table-wrap table { width: 100%; margin: 0; border-collapse: collapse; }
.table-wrap thead th {
  background: linear-gradient(135deg, #0a1738, #082033);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}
.table-wrap tbody td {
  padding: 0.8rem 1rem;
  font-size: 0.92rem;
  color: var(--text-main);
  border-bottom: 1px solid rgba(34,211,238,0.10);
}
.table-wrap tbody tr:nth-child(even) { background: rgba(16,32,64,0.45); }
.table-wrap tbody tr:last-child td { border-bottom: none; }
.rtp-table td:first-child { font-weight: 600; color: #fff; }

/* ── CONTENT IMAGE ── */
.content-img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  display: block;
  margin: 1.4rem auto;
}

/* ── FAQ ── */
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.2rem 1.4rem;
  margin-bottom: 1rem;
  box-shadow: var(--neu-shadow-out);
}
.faq-question { font-size: 1.02rem; font-weight: 700; color: #fff; margin-bottom: 0.55rem; }
.faq-icon { color: var(--accent); margin-right: 0.5rem; }
.faq-answer p { margin: 0; font-size: 0.94rem; color: var(--text-muted); }

/* ── INLINE LINK ── */
.inline-link { color: var(--secondary); text-decoration: underline; text-underline-offset: 3px; }
.inline-link:hover { color: var(--accent); }

/* ── CTA STRIP ── */
.cta-strip {
  background: linear-gradient(90deg, #0369a1 0%, #0284c7 45%, #0891b2 100%);
  padding: 3.4rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-strip::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(251,191,36,0.14) 0%, transparent 70%); }
.cta-strip-title { font-size: clamp(1.5rem, 3.6vw, 2.2rem); font-weight: 800; color: #fff; margin-bottom: 0.5rem; position: relative; z-index: 1; }
.cta-strip-sub { color: rgba(255,255,255,0.82); margin-bottom: 1.7rem; position: relative; z-index: 1; }
.cta-strip .btn-neu-gold { position: relative; z-index: 1; }

/* ── PAGE NOTE ── */
.page-note { background: #04070f; border-top: 1px solid rgba(34,211,238,0.10); padding: 1.6rem 0; }
.page-note .note-line-1 { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.3rem; }
.page-note .note-line-2 { font-size: 0.8rem; color: #6b82a8; margin: 0; }

/* ── FOOTER ── */
footer { background: #03060d; border-top: 1px solid var(--line); padding: 3.4rem 0 2rem; }
.footer-brand img { height: 44px; width: auto; }
.footer-text { font-size: 0.9rem; color: var(--text-muted); line-height: 1.7; margin-top: 1rem; }
.footer-heading { font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 2px solid rgba(34,211,238,0.25); }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a { color: var(--text-muted); text-decoration: none; font-size: 0.9rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(34,211,238,0.12); margin-top: 2.5rem; padding-top: 1.5rem; font-size: 0.84rem; color: var(--text-muted); }
.footer-email { color: var(--text-muted); font-size: 0.9rem; text-decoration: none; cursor: default; user-select: text; }
.age-notice { background: rgba(2,132,199,0.12); border-top: 1px solid var(--line); padding: 0.55rem 0.9rem; border-radius: 8px; text-align: center; font-size: 0.82rem; color: var(--text-muted); margin-top: 1rem; }
.payment-chip {
  background: var(--bg-card2);
  border: 1px solid rgba(2,132,199,0.35);
  border-radius: 10px;
  padding: 0.5rem 0.9rem;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-main);
  box-shadow: var(--neu-shadow-out);
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

@media (max-width: 768px) {
  section { padding: 2.4rem 0; }
  .hero-section { min-height: auto; padding: 3rem 0; }
  .breadcrumb-wrap { padding: 2.4rem 0 1.8rem; }
}
