/* Landing neon — Sizzling Hot Deluxe 777 */
:root {
  --bg-deep: #030712;
  --bg-mid: #0a0f1e;
  --bg-elev: rgba(15, 23, 42, 0.72);
  --cyan: #22d3ee;
  --cyan-dim: rgba(34, 211, 238, 0.35);
  --fuchsia: #e879f9;
  --fuchsia-dim: rgba(232, 121, 249, 0.35);
  --lime: #bef264;
  --text: #e8edf7;
  --muted: #94a3b8;
  --line: rgba(148, 163, 184, 0.14);
  --glass: rgba(30, 41, 59, 0.55);
  --shadow-glow: 0 0 60px rgba(34, 211, 238, 0.12), 0 24px 64px rgba(0, 0, 0, 0.55);
  --radius: 12px;
  --radius-lg: 20px;
  --font: "IBM Plex Sans Thai", system-ui, -apple-system, sans-serif;
  --font-display: "Unbounded", var(--font);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.layout-neon {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.72;
  color: var(--text);
  background: var(--bg-deep);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

#main {
  position: relative;
  z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* พื้นหลัง: mesh + กริด + เปลวไฟนิดๆ */
body.layout-neon::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 900px 520px at 12% -8%, rgba(232, 121, 249, 0.18), transparent 55%),
    radial-gradient(ellipse 700px 480px at 92% 8%, rgba(34, 211, 238, 0.14), transparent 50%),
    radial-gradient(ellipse 600px 360px at 50% 100%, rgba(190, 242, 100, 0.06), transparent 45%),
    linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-mid) 45%, #040814 100%);
}

body.layout-neon::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(34, 211, 238, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232, 121, 249, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 85% 75% at 50% 30%, black 12%, transparent 70%);
}

a {
  color: var(--cyan);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.15s ease, text-shadow 0.15s ease;
}

a:hover {
  color: #fff;
  text-shadow: 0 0 20px var(--cyan-dim);
}

img {
  max-width: 100%;
  display: block;
}

.wrap {
  width: min(1140px, 92vw);
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

/* —— Topbar —— */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--line);
  background: rgba(3, 7, 18, 0.78);
  backdrop-filter: blur(16px) saturate(1.3);
}

.topbar-accent {
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--fuchsia), var(--lime), var(--cyan));
  background-size: 200% 100%;
  animation: bar-scan 8s linear infinite;
}

@keyframes bar-scan {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 200% 50%;
  }
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0 14px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  transform: rotate(-8deg);
  background: linear-gradient(135deg, var(--cyan) 0%, #0891b2 40%, var(--fuchsia) 100%);
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.08),
    0 12px 32px rgba(34, 211, 238, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.brand-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  line-height: 1.12;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.brand-text .brand-row {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px;
}

.brand-a {
  color: var(--text);
}

.brand-b {
  margin-left: 0;
  color: transparent;
  background: linear-gradient(90deg, var(--cyan), var(--fuchsia));
  -webkit-background-clip: text;
  background-clip: text;
}

.brand-host {
  font-family: var(--font);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-transform: none;
  opacity: 0.92;
}

.nav {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid transparent;
  transition:
    color 0.15s ease,
    background 0.15s ease,
    border-color 0.15s ease;
}

.nav a:hover {
  color: var(--text);
  background: rgba(34, 211, 238, 0.08);
  border-color: rgba(34, 211, 238, 0.22);
  text-shadow: none;
}

/* —— Buttons —— */
.btn {
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  border-radius: 999px;
  padding: 12px 22px;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition:
    transform 0.12s ease,
    box-shadow 0.18s ease,
    filter 0.18s ease;
}

.btn:active {
  transform: translateY(1px) scale(0.99);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.btn-ghost:hover {
  border-color: var(--cyan);
  box-shadow: 0 0 24px var(--cyan-dim);
  color: #fff;
}

.btn-primary {
  color: #031018;
  background: linear-gradient(115deg, var(--lime) 0%, var(--cyan) 48%, var(--fuchsia) 100%);
  background-size: 160% 100%;
  box-shadow: 0 8px 28px rgba(34, 211, 238, 0.28);
}

.btn-primary:hover {
  filter: brightness(1.06);
  box-shadow: 0 12px 36px rgba(232, 121, 249, 0.22);
}

/* —— Hero —— */
.hero {
  padding: 48px 0 36px;
  position: relative;
}

.hero-deco {
  position: absolute;
  inset: -6% -4% auto auto;
  width: min(420px, 55vw);
  height: min(380px, 50vh);
  pointer-events: none;
  z-index: 0;
  opacity: 0.9;
}

.hero-orbit {
  position: absolute;
  inset: 10% 8%;
  border: 1px dashed rgba(34, 211, 238, 0.35);
  border-radius: 50%;
  animation: spin-slow 24s linear infinite;
}

@keyframes spin-slow {
  to {
    transform: rotate(360deg);
  }
}

.hero-chip {
  position: absolute;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  color: rgba(232, 121, 249, 0.15);
  text-shadow: 0 0 40px rgba(34, 211, 238, 0.25);
  letter-spacing: 0.04em;
}

.hero-chip-a {
  top: 6%;
  right: 12%;
  transform: rotate(-12deg);
}

.hero-chip-b {
  top: 38%;
  right: 28%;
  color: rgba(34, 211, 238, 0.12);
  transform: rotate(8deg);
}

.hero-chip-c {
  bottom: 12%;
  right: 6%;
  color: rgba(190, 242, 100, 0.12);
  transform: rotate(-6deg);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 36px;
  align-items: center;
  position: relative;
  z-index: 1;
}

@media (max-width: 920px) {
  .hero-deco {
    inset: -4% -10% auto auto;
    opacity: 0.45;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4.2vw, 3rem);
  line-height: 1.12;
  margin: 0 0 18px;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: #fff;
  text-wrap: balance;
}

.lead {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0 0 22px;
  max-width: 56ch;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.pill {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
  background: var(--glass);
  border: 1px solid rgba(34, 211, 238, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.hero-card {
  background: linear-gradient(155deg, rgba(34, 211, 238, 0.1), rgba(232, 121, 249, 0.08) 55%, var(--glass));
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-glow);
  transform: rotate(-1.2deg);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-card:hover {
  transform: rotate(0deg) translateY(-4px);
  box-shadow:
    0 0 0 1px rgba(34, 211, 238, 0.2),
    0 28px 64px rgba(0, 0, 0, 0.5);
}

@media (max-width: 920px) {
  .hero-card {
    transform: none;
  }

  .hero-card:hover {
    transform: translateY(-2px);
  }
}

.hero-card h3 {
  margin: 0 0 14px;
  font-size: 1.1rem;
  font-family: var(--font-display);
  font-weight: 600;
  color: #fff;
}

.daily-box {
  background: rgba(3, 7, 18, 0.55);
  border-radius: var(--radius);
  padding: 18px 20px;
  border: 1px solid rgba(190, 242, 100, 0.25);
  box-shadow: inset 0 0 24px rgba(34, 211, 238, 0.06);
}

.daily-date {
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--lime);
  margin-bottom: 10px;
}

.daily-text {
  margin: 0;
  color: var(--text);
  font-size: 1.03rem;
  line-height: 1.65;
}

/* —— Sections —— */
.section {
  padding: 56px 0;
  position: relative;
  border-top: 1px solid transparent;
  border-image: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.35), transparent) 1;
}

.section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3vw, 2.05rem);
  margin: 0 0 18px;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: #fff;
  max-width: 28ch;
  text-wrap: balance;
  position: relative;
  padding-left: 18px;
}

.section h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15em;
  bottom: 0.15em;
  width: 4px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--cyan), var(--fuchsia));
}

.section-kicker {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--fuchsia);
  margin: 0 0 12px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

@media (max-width: 860px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--bg-elev);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px 24px 22px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  transition:
    border-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.card:hover {
  border-color: rgba(34, 211, 238, 0.32);
  transform: translateY(-3px);
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.42);
}

.card h3 {
  margin: 0 0 12px;
  font-size: 1.15rem;
  font-family: var(--font-display);
  font-weight: 600;
  color: #fff;
}

.card p {
  margin: 0 0 12px;
  color: var(--muted);
}

.card p:last-child {
  margin-bottom: 0;
}

.kw {
  color: var(--cyan);
  font-weight: 700;
  text-shadow: 0 0 20px rgba(34, 211, 238, 0.15);
}

.split-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 26px;
}

@media (max-width: 640px) {
  .split-stats {
    grid-template-columns: 1fr;
  }
}

.stat {
  text-align: center;
  padding: 18px 14px;
  border-radius: var(--radius);
  background: rgba(34, 211, 238, 0.06);
  border: 1px solid rgba(232, 121, 249, 0.15);
}

.stat strong {
  display: block;
  font-size: 1.4rem;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--lime);
}

.stat span {
  font-size: 0.86rem;
  color: var(--muted);
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

@media (max-width: 920px) {
  .review-grid {
    grid-template-columns: 1fr;
  }
}

.review {
  background: var(--bg-elev);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  padding: 22px;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease;
}

.review:hover {
  transform: translateY(-2px);
  border-color: rgba(232, 121, 249, 0.28);
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 12px;
}

.stars {
  color: var(--lime);
  letter-spacing: 1px;
  font-size: 0.95rem;
  filter: drop-shadow(0 0 6px rgba(190, 242, 100, 0.35));
}

.reviewer {
  font-weight: 700;
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.95rem;
}

.review p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.footer {
  padding: 44px 0 56px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  justify-content: space-between;
  align-items: flex-start;
}

.footer strong {
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
}

.footer-domain {
  display: inline-block;
  font-weight: 500;
  color: var(--muted);
  margin-left: 0.25rem;
  font-size: 0.88em;
}

.footer-recommend {
  flex: 1 1 200px;
  max-width: 320px;
}

.footer-recommend strong {
  display: inline-block;
  margin-bottom: 0.35rem;
}

/* —— Modal —— */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 7, 18, 0.82);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
}

.modal-backdrop.open {
  display: flex;
}

.modal {
  width: min(440px, 100%);
  background: linear-gradient(165deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.98));
  border-radius: var(--radius-lg);
  border: 1px solid rgba(34, 211, 238, 0.28);
  box-shadow:
    0 0 0 1px rgba(232, 121, 249, 0.12),
    var(--shadow-glow);
  max-height: 90vh;
  overflow: auto;
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 22px 0;
}

.modal-head h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
}

.modal-close {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  transition:
    color 0.15s ease,
    border-color 0.15s ease,
    background 0.15s ease;
}

.modal-close:hover {
  color: #fff;
  border-color: var(--fuchsia);
  background: rgba(232, 121, 249, 0.1);
}

.modal-tabs {
  display: flex;
  gap: 10px;
  padding: 16px 22px 0;
}

.tab-btn {
  flex: 1;
  padding: 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(3, 7, 18, 0.4);
  color: var(--muted);
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition:
    color 0.15s ease,
    border-color 0.15s ease,
    background 0.15s ease;
}

.tab-btn.active {
  background: rgba(34, 211, 238, 0.14);
  color: #fff;
  border-color: var(--cyan);
  box-shadow: 0 0 20px var(--cyan-dim);
}

.modal-panel {
  display: none;
  padding: 18px 22px 24px;
}

.modal-panel.active {
  display: block;
}

.field {
  margin-bottom: 15px;
}

.field label {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 7px;
}

.field input {
  width: 100%;
  padding: 13px 14px;
  border-radius: var(--radius);
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(3, 7, 18, 0.75);
  color: var(--text);
  font-family: inherit;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.field input:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.15);
}

.form-hint {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 12px;
  line-height: 1.55;
}

.cta-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* พื้นหลังแถบรีวิว / article ให้ลึกขึ้น */
#รีวิวสล็อต.section {
  background: radial-gradient(ellipse 80% 120% at 50% 0%, rgba(232, 121, 249, 0.08), transparent 55%);
}
