/* ==========================================================================
   EE19 — ee19.world
   ธีม: Midnight Violet (อ้างอิงโครงสีจากเว็บตัวอย่าง tkslot.wine)
   ฟอนต์/ไอคอน/Bootstrap โฮสต์เองทั้งหมดใน /assets/vendor
   ========================================================================== */

:root {
  --bg: #020617;
  --bg-2: #050b22;
  --surface: #040c2e;
  --text: #eaedf3;
  --heading: #f8fafc;
  --muted: #a3adbe;
  --primary: #8b5cf6;
  --primary-dark: #6d28d9;
  --accent: #6366f1;
  --border: rgba(255, 255, 255, 0.12);
  --border-soft: rgba(139, 92, 246, 0.22);
  --glow: rgba(139, 92, 246, 0.45);
  --radius: 16px;
  --radius-lg: 22px;
  --maxw: 1180px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

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

h1, h2, h3, h4, h5, h6 { color: var(--heading); font-weight: 700; line-height: 1.35; }
h1 { font-size: clamp(1.85rem, 4.2vw, 3rem); font-weight: 800; margin-bottom: 18px; }
h2 { font-size: clamp(1.45rem, 2.9vw, 2rem); font-weight: 800; margin: 52px 0 18px; }
h3 { font-size: 1.22rem; margin: 30px 0 12px; }
h5 { font-size: 1.06rem; margin-bottom: 10px; }
h6 { font-size: 1rem; margin-bottom: 8px; }
p { margin-bottom: 18px; }
a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: #c4b5fd; }
strong { color: var(--heading); font-weight: 700; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { padding-left: 22px; }
li { margin-bottom: 8px; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---------------------------------------------------------------- NAVBAR */
.navbar {
  position: sticky; top: 0; z-index: 200;
  background: rgba(4, 12, 46, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.navbar-inner { display: flex; align-items: center; gap: 18px; min-height: 68px; }
.navbar-brand { display: flex; align-items: center; gap: 10px; color: var(--heading); font-weight: 800; font-size: 1.3rem; letter-spacing: .5px; }
.navbar-brand img { height: 40px; width: 40px; }
.navbar-brand .brand-sub { display: block; font-size: .66rem; font-weight: 600; color: var(--muted); letter-spacing: 1.6px; }
.nav-links { list-style: none; display: flex; flex-wrap: wrap; gap: 2px; margin-left: auto; padding: 0; }
.nav-link { display: block; color: var(--muted); font-weight: 600; font-size: .95rem; padding: 8px 13px; border-radius: 9px; transition: all .2s; }
.nav-link:hover { color: var(--heading); background: rgba(139, 92, 246, 0.14); }
.nav-link.active { color: var(--heading); background: rgba(139, 92, 246, 0.2); }
.navbar-toggle { display: none; margin-left: auto; background: transparent; border: 1px solid var(--border); color: var(--text); font-size: 1.4rem; line-height: 1; padding: 6px 10px; border-radius: 10px; cursor: pointer; }

/* --------------------------------------------------------------- MARQUEE */
.marquee-wrap { overflow: hidden; background: linear-gradient(90deg, rgba(139,92,246,.16), rgba(99,102,241,.16)); border-bottom: 1px solid var(--border); }
.marquee-inner { display: flex; gap: 44px; white-space: nowrap; width: max-content; padding: 9px 0; animation: marquee 42s linear infinite; }
.marquee-inner span { font-size: .9rem; color: var(--muted); font-weight: 600; }
.marquee-inner span em { font-style: normal; color: #c4b5fd; font-weight: 800; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ------------------------------------------------------------ BREADCRUMB */
.breadcrumb-bar { padding: 14px 0; border-bottom: 1px solid var(--border); background: var(--bg-2); }
.breadcrumb-bar ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; font-size: .88rem; color: var(--muted); }
.breadcrumb-bar li + li::before { content: '›'; margin-right: 8px; color: var(--primary); }
.breadcrumb-bar a { color: var(--muted); }
.breadcrumb-bar a:hover { color: var(--primary); }

/* ------------------------------------------------------------------ HERO */
.hero { position: relative; overflow: hidden; padding: 62px 0 66px; background: var(--bg); }
.hero.tall { padding: 78px 0 84px; }
.hero-bg { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% -10%, rgba(139,92,246,.18), transparent 62%); }
.hero-orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .4; animation: orbFloat 9s ease-in-out infinite; pointer-events: none; }
.o1 { width: 520px; height: 520px; background: var(--primary); top: -180px; left: -140px; }
.o2 { width: 440px; height: 440px; background: var(--accent); bottom: -190px; right: -110px; animation-delay: 3s; }
.o3 { width: 260px; height: 260px; background: var(--primary-dark); top: 38%; right: 26%; animation-delay: 5.5s; opacity: .28; }
@keyframes orbFloat { 0%,100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-28px) scale(1.06); } }
.hero-content { position: relative; z-index: 2; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 46px; align-items: center; }
.hero-badge { display: inline-block; background: rgba(139,92,246,.16); border: 1px solid var(--primary); color: #c4b5fd; border-radius: 50px; padding: 6px 18px; font-size: .86rem; font-weight: 700; margin-bottom: 20px; }
.hero h1 { margin-bottom: 16px; }
.hero .lead { font-size: 1.12rem; color: var(--muted); margin-bottom: 26px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 26px; padding-top: 22px; border-top: 1px solid var(--border); }
.hero-stat b { display: block; font-size: 1.5rem; font-weight: 800; color: #c4b5fd; line-height: 1.2; }
.hero-stat span { font-size: .84rem; color: var(--muted); }
.hero-media { position: relative; }
.hero-media img { width: 100%; border-radius: var(--radius-lg); border: 1px solid var(--border-soft); box-shadow: 0 26px 60px rgba(2,6,23,.75); }

/* --------------------------------------------------------------- BUTTONS */
.btn-glow, .btn-outline-glow {
  display: inline-flex; align-items: center; gap: 9px;
  border-radius: 50px; padding: 14px 32px; font-size: 1rem; font-weight: 700;
  cursor: pointer; transition: all .28s; font-family: inherit; text-align: center;
}
.btn-glow { background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; border: none; box-shadow: 0 0 28px var(--glow); }
.btn-glow:hover { color: #fff; transform: translateY(-3px); box-shadow: 0 0 46px rgba(139,92,246,.8); }
.btn-outline-glow { background: transparent; color: #c4b5fd; border: 2px solid var(--primary); }
.btn-outline-glow:hover { background: rgba(139,92,246,.14); color: #fff; transform: translateY(-3px); }

/* -------------------------------------------------------------- ARTICLE */
.article-section { padding: 52px 0 20px; }
.article { max-width: 880px; }
.article > p:first-of-type { font-size: 1.08rem; color: #dbe2ee; }
.article h2 { padding-top: 12px; border-top: 1px solid var(--border); }
.article h2:first-of-type { border-top: none; padding-top: 0; }
h2 + p { margin-top: 0; }

.toc-box { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 24px 26px; margin: 28px 0 36px; }
.toc-box h2 { font-size: 1.15rem; margin: 0 0 14px; border: none; padding: 0; }
.toc-box ol { margin: 0; padding-left: 22px; }
.toc-box li { margin-bottom: 6px; }
.toc-box a { color: var(--muted); font-weight: 600; }
.toc-box a:hover { color: #c4b5fd; }

.img-figure { margin: 26px 0 30px; }
.content-img { width: 100%; border-radius: var(--radius); border: 1px solid var(--border); box-shadow: 0 16px 40px rgba(2,6,23,.6); background: var(--surface); }
.img-figure figcaption { font-size: .85rem; color: var(--muted); margin-top: 10px; text-align: center; font-style: italic; }

/* ---------------------------------------------------------------- TABLE */
.table-wrap { overflow-x: auto; margin: 26px 0 32px; border-radius: var(--radius); border: 1px solid var(--border); }
table.compare-table { width: 100%; border-collapse: collapse; min-width: 560px; font-size: .95rem; }
table.compare-table caption { caption-side: top; text-align: left; padding: 14px 18px; font-size: .88rem; color: var(--muted); font-weight: 600; background: rgba(139,92,246,.1); }
table.compare-table th, table.compare-table td { padding: 13px 18px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
table.compare-table thead th { background: rgba(139,92,246,.16); color: var(--heading); font-weight: 700; white-space: nowrap; }
table.compare-table tbody tr:nth-child(even) { background: rgba(255,255,255,.022); }
table.compare-table tbody tr:hover { background: rgba(139,92,246,.07); }
table.compare-table td:first-child { font-weight: 600; color: var(--heading); }
.check-yes { color: #34d399; margin-right: 7px; }
.check-no { color: #f87171; margin-right: 7px; }

/* ------------------------------------------------------------- LINK LIST */
.link-list { list-style: none; padding: 0; margin: 22px 0 26px; display: flex; flex-wrap: wrap; gap: 10px; }
.link-list li { margin: 0; }
.link-list a { display: block; background: var(--surface); border: 1px solid var(--border-soft); border-radius: 50px; padding: 9px 20px; font-weight: 600; font-size: .93rem; }
.link-list a:hover { background: rgba(139,92,246,.16); border-color: var(--primary); }
.center-list { justify-content: center; }

/* ------------------------------------------------------------------ FAQ */
.faq-list { margin: 22px 0 12px; display: grid; gap: 12px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.faq-item[open] { border-color: var(--border-soft); box-shadow: 0 0 22px rgba(139,92,246,.14); }
.faq-item summary { cursor: pointer; padding: 18px 22px; font-weight: 700; color: var(--heading); list-style: none; position: relative; padding-right: 52px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); color: var(--primary); font-size: 1.4rem; font-weight: 700; line-height: 1; }
.faq-item[open] summary::after { content: '−'; }
.faq-item p { padding: 0 22px 20px; margin: 0; color: var(--muted); }

/* ---------------------------------------------------------------- BLOCKS */
section { padding: 54px 0; }
section.tight { padding: 34px 0 46px; }
.bg-surface { background: var(--bg-2); }
.bg-dark { background: #01040f; }
.section-label { text-transform: uppercase; letter-spacing: 2.4px; font-size: .74rem; font-weight: 800; color: var(--primary); margin-bottom: 10px; }
.section-title { font-size: clamp(1.4rem, 2.7vw, 1.95rem); margin: 0 0 12px; }
.section-sub { color: var(--muted); max-width: 760px; margin-bottom: 22px; }
.divider { height: 3px; width: 78px; background: linear-gradient(90deg, var(--primary), var(--accent)); border-radius: 3px; margin-bottom: 32px; }
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.feature-card, .promo-card, .pricing-card, .payment-card, .support-card, .testi-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.feature-card:hover, .promo-card:hover, .pricing-card:hover, .payment-card:hover, .support-card:hover, .testi-card:hover {
  transform: translateY(-5px); border-color: var(--border-soft); box-shadow: 0 20px 46px rgba(2,6,23,.65);
}
.feature-card p, .promo-card p, .support-card p { color: var(--muted); margin: 0; font-size: .95rem; }
.feature-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 1.5rem; color: #c4b5fd; background: rgba(139,92,246,.16); border: 1px solid var(--border-soft); margin-bottom: 16px; }

.steps-section { background: var(--bg-2); }
.step-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 22px; position: relative; }
.step-num { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 1.1rem; color: #fff; background: linear-gradient(135deg, var(--primary), var(--accent)); margin-bottom: 14px; box-shadow: 0 0 20px var(--glow); }
.step-item p { color: var(--muted); margin: 0; font-size: .94rem; }

.promo-card { position: relative; overflow: hidden; }
.badge-promo { display: inline-block; background: rgba(139,92,246,.2); border: 1px solid var(--primary); color: #c4b5fd; border-radius: 50px; font-size: .76rem; font-weight: 800; padding: 4px 14px; margin-bottom: 12px; letter-spacing: .6px; }
.promo-card h3 { margin: 0 0 8px; font-size: 1.12rem; }
.promo-icon { position: absolute; right: 18px; bottom: 14px; font-size: 3.2rem; color: rgba(139,92,246,.14); }

.pricing-card.featured { border-color: var(--primary); box-shadow: 0 0 34px rgba(139,92,246,.28); }
.price { font-size: 1.85rem; font-weight: 800; color: #c4b5fd; margin-bottom: 16px; }
.price span { font-size: .82rem; font-weight: 600; color: var(--muted); }
.pricing-card ul { list-style: none; padding: 0; margin: 0 0 20px; }
.pricing-card li { font-size: .92rem; color: var(--muted); display: flex; gap: 8px; align-items: flex-start; }
.pricing-card li i { color: #34d399; margin-top: 5px; }
.pricing-card .btn-glow { width: 100%; justify-content: center; padding: 11px 18px; font-size: .93rem; }

.payment-card { text-align: center; padding: 22px 16px; }
.payment-card i { font-size: 1.9rem; color: #c4b5fd; }
.pay-name { font-weight: 700; margin: 10px 0 6px; }
.pay-tag { font-size: .78rem; color: var(--muted); display: block; }

.support-card i { font-size: 1.7rem; color: #c4b5fd; display: block; margin-bottom: 12px; }
.support-card p { font-size: .92rem; }

.testi-stars { color: #fbbf24; font-size: .95rem; letter-spacing: 2px; margin-bottom: 12px; }
.testi-text { font-size: .95rem; color: #dbe2ee; }
.testi-author { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); }
.testi-avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--primary), var(--accent)); }
.testi-name { font-weight: 700; font-size: .94rem; }
.testi-city { font-size: .8rem; color: var(--muted); }

.privacy-notice { background: rgba(139,92,246,.09); border: 1px solid var(--border-soft); border-left: 4px solid var(--primary); border-radius: var(--radius); padding: 20px 24px; margin: 26px 0; }
.privacy-notice p { margin: 0; color: #dbe2ee; font-size: .95rem; }
.privacy-notice i { color: #c4b5fd; margin-right: 10px; }

/* --------------------------------------------------------------- GALLERY */
.gallery-section { background: var(--bg-2); }
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.gallery-item { margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.gallery-item img { width: 100%; border-radius: 0; border: none; box-shadow: none; }
.gallery-item figcaption { padding: 14px 18px 18px; font-size: .88rem; color: var(--muted); }

/* ------------------------------------------------------------------- CTA */
.cta-band { background: linear-gradient(135deg, rgba(139,92,246,.2), rgba(99,102,241,.14)); border: 1px solid var(--border-soft); border-radius: var(--radius-lg); padding: 46px 32px; text-align: center; }
.cta-band h2 { margin: 0 0 12px; border: none; padding: 0; }
.cta-band p { color: #dbe2ee; max-width: 700px; margin: 0 auto 24px; }
.disclaimer-bar { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--border); font-size: .84rem; color: var(--muted); text-align: left; }
.disclaimer-bar i { color: var(--primary); margin-right: 6px; }

/* ---------------------------------------------------------------- FOOTER */
footer { background: #01040f; border-top: 1px solid var(--border); padding: 52px 0 26px; margin-top: 30px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 34px; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.25rem; color: var(--heading); margin-bottom: 14px; }
.footer-brand img { height: 36px; width: 36px; }
footer p { color: var(--muted); font-size: .9rem; }
.page-signature { font-size: .78rem; color: rgba(163,173,190,.72); margin-top: 10px; }
.footer-title { font-weight: 800; color: var(--heading); margin-bottom: 14px; font-size: .96rem; }
footer ul { list-style: none; padding: 0; }
footer li { margin-bottom: 8px; }
footer li a { color: var(--muted); font-size: .91rem; }
footer li a:hover { color: #c4b5fd; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--border); font-size: .84rem; color: var(--muted); }
.footer-bottom a { color: var(--muted); }
.footer-bottom a:hover { color: #c4b5fd; }

/* ----------------------------------------------------------- RESPONSIVE */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .navbar-toggle { display: block; }
  .nav-links { display: none; position: absolute; top: 68px; left: 0; right: 0; background: var(--surface); border-bottom: 1px solid var(--border); flex-direction: column; padding: 12px 20px; margin: 0; }
  .nav-links.open { display: flex; }
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero-media { order: -1; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  h2 { margin-top: 40px; }
}
@media (max-width: 520px) {
  .hero { padding: 42px 0 48px; }
  .btn-glow, .btn-outline-glow { width: 100%; justify-content: center; padding: 13px 18px; }
  .cta-band { padding: 34px 20px; }
  .footer-grid { grid-template-columns: 1fr; }
  .toc-box, .feature-card, .promo-card, .pricing-card { padding: 20px; }
}

@media print {
  .navbar, .marquee-wrap, .cta-band, footer, .breadcrumb-bar { display: none; }
  body { background: #fff; color: #000; }
}
