/* =========================================================
   VIRGIN — ครบเครื่อง เรื่อง'ความมันส์'
   Theme stylesheet (Cinematic Concert / Orange Neon)
   ใช้ layer เดียวกับ Tailwind v4 เพื่อให้ utility class override ได้ตามปกติ
   ========================================================= */

@import url("https://cdn.jsdelivr.net/npm/swiper@11/swiper-bundle.min.css");



:root {
  --ink: #060608;
  --coal: #0e0e11;
  --coal-2: #151519;
  --coal-3: #1d1d22;
  --line: rgba(255, 255, 255, 0.08);
  --line-hot: rgba(255, 106, 31, 0.45);

  --fire: #ff5a1f;
  --neon: #ff7a1a;
  --ember: #ff2d2d;
  --amber: #ffb547;
  --gold: #ffd28a;

  --text: #f6f1ea;
  --muted: #a39d97;
  --dim: #6f6a66;

  --ok: #22c55e;
  --warn: #facc15;

  --grad-fire: linear-gradient(100deg, #ff2d2d 0%, #ff5a1f 45%, #ff9a3c 100%);
  --grad-text: linear-gradient(95deg, #ff3b1f 0%, #ff7a1a 50%, #ffc06b 100%);
  --glow-sm: 0 0 12px rgba(255, 90, 31, 0.45);
  --glow: 0 0 24px rgba(255, 90, 31, 0.55), 0 0 60px rgba(255, 45, 45, 0.25);
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.8);

  --radius: 18px;
  --radius-sm: 12px;
  --header-h: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Base ---------- */
html { background: var(--ink); color-scheme: dark; overflow-x: clip; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(255, 70, 20, 0.12), transparent 60%),
    radial-gradient(900px 500px at -10% 40%, rgba(255, 45, 45, 0.07), transparent 60%),
    var(--ink);
  color: var(--text);
  font-family: "Kanit", system-ui, sans-serif;
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
body.is-loading { overflow: hidden; }
::selection { background: var(--fire); color: #fff; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, h4 { font-weight: 600; line-height: 1.2; margin: 0; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--ember), var(--fire)); border-radius: 10px; border: 2px solid var(--ink); }

.font-tech { font-family: "Chakra Petch", "Kanit", sans-serif; }
.container-x { width: 100%; max-width: 1320px; margin-inline: auto; padding-inline: 16px; }
@media (min-width: 768px) { .container-x { padding-inline: 28px; } }

.text-fire {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.text-muted { color: var(--muted); }
.text-glow { text-shadow: 0 0 18px rgba(255, 90, 31, 0.6); }

/* ---------- Film grain ----------
   เกรนแบบนิ่ง ขนาดเท่าจอ (เดิมขยับตลอดและใหญ่ 4 เท่าของจอ ทำให้หน่วง) */
.grain {
  position: fixed; inset: 0;
  z-index: 90; pointer-events: none;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  transform: translateZ(0);
}
@media (max-width: 767px) { .grain { display: none; } }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center;
  background: radial-gradient(circle at 50% 55%, #2a0d05 0%, var(--ink) 60%);
}
.preloader__inner { width: min(420px, 78vw); text-align: center; }
.preloader__logo { width: 100%; filter: drop-shadow(0 0 30px rgba(255, 90, 31, 0.5)); }
.preloader__bar { margin-top: 26px; height: 2px; background: rgba(255, 255, 255, 0.08); overflow: hidden; border-radius: 2px; }
.preloader__bar span { display: block; height: 100%; width: 0; background: var(--grad-fire); box-shadow: var(--glow-sm); }
.preloader__count { margin-top: 12px; font-size: 12px; letter-spacing: 0.5em; color: var(--muted); }

/* ---------- Page transition ---------- */
.pt { position: fixed; inset: 0; z-index: 150; pointer-events: none; }
.pt__layer { position: absolute; inset: 0; transform: translateY(101%); }
.pt__layer--1 { background: var(--grad-fire); }
.pt__layer--2 { background: var(--ink); display: grid; place-items: center; }
.pt__layer--2 img { width: 180px; opacity: 0; }

/* ---------- Custom cursor ---------- */
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0; z-index: 300;
  pointer-events: none; border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0; transition: opacity 0.3s;
}
.cursor-dot { width: 6px; height: 6px; background: var(--neon); box-shadow: var(--glow-sm); }
.cursor-ring {
  width: 38px; height: 38px;
  border: 1.5px solid rgba(255, 122, 26, 0.7);
  display: grid; place-items: center;
  font-size: 11px; font-weight: 500; letter-spacing: 0.05em; color: #fff;
  transition: width 0.35s var(--ease), height 0.35s var(--ease), background 0.35s, border-color 0.35s, opacity 0.3s;
}
body.has-cursor .cursor-dot, body.has-cursor .cursor-ring { opacity: 1; }
.cursor-ring.is-hover { width: 64px; height: 64px; background: rgba(255, 90, 31, 0.12); border-color: var(--fire); }
.cursor-ring.is-text { width: 84px; height: 84px; background: var(--fire); border-color: var(--fire); mix-blend-mode: normal; }
.cursor-ring.is-down { width: 28px; height: 28px; }
@media (hover: none), (pointer: coarse) { .cursor-dot, .cursor-ring { display: none; } }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 80;
  height: var(--header-h);
  transition: background 0.4s, transform 0.5s var(--ease), border-color 0.4s, height 0.4s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(8, 8, 10, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-color: var(--line);
  --header-h: 64px;
}
.site-header.is-hidden { transform: translateY(-100%); }
.site-header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.site-logo img { height: 46px; width: auto; transition: height 0.4s, filter 0.4s; }
.site-header.is-scrolled .site-logo img { height: 38px; }
.site-logo:hover img { filter: drop-shadow(0 0 12px rgba(255, 90, 31, 0.6)); }

.nav { display: none; gap: 34px; }
@media (min-width: 1024px) { .nav { display: flex; } }
.nav-link { position: relative; font-weight: 400; font-size: 15px; color: #e9e3dc; padding: 6px 0; transition: color 0.3s; }
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--grad-fire); box-shadow: var(--glow-sm);
  transform: scaleX(0); transform-origin: right; transition: transform 0.45s var(--ease);
}
.nav-link:hover, .nav-link.is-active { color: var(--neon); }
.nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); transform-origin: left; }

.icon-btn {
  width: 44px; height: 44px; border-radius: 50%;
  display: inline-grid; place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.03);
  color: #fff; cursor: pointer;
  transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
}
.icon-btn:hover { border-color: var(--fire); background: rgba(255, 90, 31, 0.12); box-shadow: var(--glow-sm); }
.icon-btn svg { width: 19px; height: 19px; }

/* Mobile drawer */
.drawer { position: fixed; inset: 0; z-index: 120; visibility: hidden; }
.drawer.is-open { visibility: visible; }
.drawer__bg { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(6px); opacity: 0; transition: opacity 0.4s; }
.drawer.is-open .drawer__bg { opacity: 1; }
.drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 100%);
  background: linear-gradient(160deg, #1a0a05 0%, var(--coal) 50%);
  border-left: 1px solid var(--line-hot);
  padding: 24px; display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform 0.6s var(--ease);
}
.drawer.is-open .drawer__panel { transform: none; }
.drawer__link {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 28px; font-weight: 600; padding: 12px 0;
  border-bottom: 1px solid var(--line);
  opacity: 0; transform: translateX(30px);
  transition: color 0.3s, opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.drawer.is-open .drawer__link { opacity: 1; transform: none; }
.drawer__link:hover { color: var(--neon); }
.drawer__link span { font-size: 12px; color: var(--dim); font-family: "Chakra Petch", sans-serif; }

/* ---------- Buttons ---------- */
.btn {
  --h: 48px;
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 26px; border-radius: 999px;
  font-family: inherit; font-weight: 500; font-size: 15px; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer; color: #fff;
  transition: transform 0.3s var(--ease), box-shadow 0.3s, border-color 0.3s, background 0.3s;
}
.btn svg { width: 18px; height: 18px; transition: transform 0.35s var(--ease); }
.btn:hover svg:last-child { transform: translateX(4px); }
.btn-sm { --h: 38px; padding: 0 16px; font-size: 14px; }
.btn-lg { --h: 58px; padding: 0 34px; font-size: 17px; }

.btn-fire { background: var(--grad-fire); box-shadow: 0 8px 30px -8px rgba(255, 70, 20, 0.7); }
.btn-fire:hover { box-shadow: var(--glow); }
.btn-fire::before { /* shine */
  content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; width: 45%; left: 0;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: translateX(-130%) skewX(-20deg);
  animation: shine 3.6s var(--ease) infinite;
}
.btn-fire:hover::before { animation-duration: 1.1s; }
/* ใช้ transform แทน left เพื่อไม่ให้ต้องวาดปุ่มใหม่ทุกเฟรม */
@keyframes shine { 0% { transform: translateX(-130%) skewX(-20deg); } 40%, 100% { transform: translateX(260%) skewX(-20deg); } }

.btn-outline { border-color: var(--fire); background: rgba(255, 90, 31, 0.06); }
.btn-outline:hover { background: rgba(255, 90, 31, 0.16); box-shadow: var(--glow-sm); }
.btn-ghost { border-color: rgba(255, 255, 255, 0.16); background: rgba(255, 255, 255, 0.04); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.35); background: rgba(255, 255, 255, 0.08); }
.btn-block { width: 100%; }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; color: var(--neon); font-weight: 400; font-size: 15px; }
.link-arrow svg { width: 16px; height: 16px; transition: transform 0.35s var(--ease); }
.link-arrow:hover svg { transform: translateX(5px); }

/* ---------- Surfaces ---------- */
/* กระจกแบบไม่ใช้ backdrop-filter (เบลอใหม่ทุกเฟรมตอนเลื่อน = หน่วง) ใช้พื้นทึบกึ่งโปร่งแทน */
.glass {
  background: linear-gradient(160deg, rgba(38, 32, 32, 0.9), rgba(14, 14, 17, 0.92));
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.panel {
  position: relative;
  background: linear-gradient(170deg, rgba(28, 26, 28, 0.9), rgba(12, 12, 14, 0.95));
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.panel-hot { border-color: var(--line-hot); box-shadow: inset 0 0 40px rgba(255, 60, 20, 0.06), var(--shadow); }

/* Card glow that follows the pointer (uses --mx / --my set by JS) */
.card-glow { --mx: 50%; --my: 50%; }
.card-glow::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(360px circle at var(--mx) var(--my), rgba(255, 110, 40, 0.18), transparent 45%);
  opacity: 0; transition: opacity 0.4s;
}
.card-glow::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; padding: 1px;
  background: radial-gradient(260px circle at var(--mx) var(--my), rgba(255, 122, 26, 0.9), transparent 55%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity 0.4s;
}
.card-glow:hover::after, .card-glow:hover::before { opacity: 1; }
[data-tilt] { transform-style: preserve-3d; }

/* ---------- Section heading ---------- */
.section { padding-block: 56px; position: relative; }
@media (min-width: 768px) { .section { padding-block: 80px; } }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; }
.section-title { display: flex; align-items: center; gap: 14px; }
.section-title h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 600; }
.section-title p { color: var(--muted); font-size: 15px; margin: 2px 0 0; }
.section-icon {
  width: 46px; height: 46px; flex: none; display: grid; place-items: center;
  color: var(--fire); filter: drop-shadow(0 0 10px rgba(255, 90, 31, 0.7));
}
.section-icon svg { width: 36px; height: 36px; }
.eyebrow { font-family: "Chakra Petch", sans-serif; font-size: 13px; letter-spacing: 0.4em; text-transform: uppercase; color: var(--neon); }

/* ---------- Chips / filters ---------- */
.chips { display: flex; gap: 10px; flex-wrap: wrap; }
.chip {
  height: 40px; padding: 0 20px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14); background: rgba(255, 255, 255, 0.03);
  color: #ddd6cf; font: inherit; font-size: 14px; font-weight: 400; cursor: pointer;
  transition: all 0.3s var(--ease);
}
.chip:hover { border-color: var(--fire); color: #fff; }
.chip.is-active { background: var(--grad-fire); border-color: transparent; color: #fff; box-shadow: var(--glow-sm); }
.tag { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 6px; background: rgba(255, 255, 255, 0.06); color: #cfc8c1; font-size: 12px; }
.badge-hot {
  display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 10px; border-radius: 6px;
  background: var(--grad-fire); color: #fff; font-size: 12px; font-weight: 500; box-shadow: var(--glow-sm);
}

/* ---------- Hero ---------- */
.hero { position: relative; height: 100svh; min-height: 640px; max-height: 980px; overflow: hidden; }
.hero .swiper { height: 100%; }
.hero-slide { position: relative; height: 100%; overflow: hidden; }
.hero-slide__bg { position: absolute; inset: -4%; }
.hero-slide__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 70% center; transform-origin: 70% 40%; }
.swiper-slide-active .hero-slide__bg img { animation: kenburns 14s ease-out forwards; will-change: transform; }
@keyframes kenburns { from { transform: scale(1.18) translate3d(2%, 1%, 0); } to { transform: scale(1) translate3d(0, 0, 0); } }
.hero-slide__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 6, 8, 0.95) 0%, rgba(6, 6, 8, 0.75) 32%, rgba(6, 6, 8, 0.1) 65%, rgba(6, 6, 8, 0.35) 100%),
    linear-gradient(0deg, var(--ink) 0%, transparent 35%),
    linear-gradient(180deg, rgba(6, 6, 8, 0.7) 0%, transparent 22%);
}
.hero-content { position: absolute; inset: 0; display: flex; align-items: center; z-index: 5; padding-top: var(--header-h); }
.hero-logo { width: min(620px, 86vw); filter: drop-shadow(0 0 40px rgba(255, 70, 20, 0.35)); }
.hero-kicker {
  display: flex; align-items: center; gap: 16px; margin: 18px 0 20px;
  font-family: "Chakra Petch", sans-serif; letter-spacing: 0.55em; font-size: clamp(11px, 1.3vw, 16px); color: #eee;
}
.hero-kicker::before, .hero-kicker::after { content: ""; height: 1px; width: 60px; background: linear-gradient(90deg, transparent, var(--fire)); }
.hero-kicker::after { transform: scaleX(-1); }
.hero-title { font-size: clamp(38px, 6vw, 84px); font-weight: 700; font-style: italic; letter-spacing: -0.01em; line-height: 1.05; }
.hero-desc { max-width: 520px; font-size: clamp(15px, 1.4vw, 18px); color: #e4ddd5; margin: 18px 0 30px; }
.hero-side {
  position: absolute; left: 22px; top: 50%; z-index: 6; transform: translateY(-50%) rotate(180deg);
  writing-mode: vertical-rl; display: none; gap: 18px; align-items: center;
  font-family: "Chakra Petch", sans-serif; letter-spacing: 0.5em; font-size: 11px; color: rgba(255, 255, 255, 0.5);
}
.hero-side b { font-size: 22px; letter-spacing: 0.3em; color: rgba(255, 255, 255, 0.75); font-weight: 600; }
@media (min-width: 1280px) { .hero-side { display: flex; } }
.hero-nav {
  position: absolute; top: 50%; z-index: 8; transform: translateY(-50%);
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(0, 0, 0, 0.35); border: 1px solid rgba(255, 255, 255, 0.18); color: #fff; cursor: pointer;
  transition: all 0.3s;
}
.hero-nav:hover { border-color: var(--fire); background: rgba(255, 90, 31, 0.2); box-shadow: var(--glow-sm); }
.hero-nav--prev { left: 20px; } .hero-nav--next { right: 20px; }
@media (max-width: 767px) { .hero-nav { display: none; } }
.hero-pagination { position: absolute; z-index: 8; bottom: 150px !important; left: 0; right: 0; display: flex; justify-content: center; gap: 10px; }
.hero-pagination .swiper-pagination-bullet { width: 26px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, 0.45); opacity: 1; margin: 0 !important; transition: all 0.4s var(--ease); }
.hero-pagination .swiper-pagination-bullet-active { width: 46px; background: var(--grad-fire); box-shadow: var(--glow-sm); }
.hero-scroll {
  position: absolute; right: 28px; bottom: 150px; z-index: 8; display: none; align-items: center; gap: 10px;
  writing-mode: vertical-rl; font-size: 11px; letter-spacing: 0.4em; color: rgba(255, 255, 255, 0.6); font-family: "Chakra Petch";
}
.hero-scroll::after { content: ""; width: 1px; height: 60px; background: linear-gradient(var(--fire), transparent); animation: scrollLine 2s var(--ease) infinite; }
@keyframes scrollLine { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
@media (min-width: 1024px) { .hero-scroll { display: flex; } }

/* Light beams — ลำแสงรูปกรวยจาก conic-gradient ขอบนุ่มในตัว
   (ไม่ใช้ filter: blur / mix-blend-mode ที่ต้องคำนวณใหม่ทุกเฟรม) */
.beams { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }
.beam {
  position: absolute; top: -10%; width: 520px; height: 130%; margin-left: -260px;
  background: conic-gradient(from 168deg at 50% 0, transparent 0deg, rgba(255, 176, 96, 0.34) 12deg, transparent 24deg, transparent 360deg);
  -webkit-mask-image: linear-gradient(#000 10%, transparent 85%);
  mask-image: linear-gradient(#000 10%, transparent 85%);
  transform-origin: 50% 0;
  animation: sweep 7s ease-in-out infinite alternate;
  will-change: transform;
}
.beam:nth-child(1) { left: 50%; animation-delay: -1s; }
.beam:nth-child(2) { left: 62%; animation-delay: -3s; animation-duration: 8s; }
.beam:nth-child(3) { left: 74%; animation-delay: -5s; animation-duration: 6s; }
.beam:nth-child(4) { left: 86%; animation-delay: -2s; animation-duration: 9s; }
@media (max-width: 767px) { .beam:nth-child(n + 3) { display: none; } }
@keyframes sweep { 0% { transform: rotate(18deg); } 100% { transform: rotate(-18deg); } }

.embers { position: absolute; inset: 0; z-index: 3; pointer-events: none; width: 100%; height: 100%; }

/* Page hero (inner pages) */
.page-hero { position: relative; isolation: isolate; padding: calc(var(--header-h) + 60px) 0 50px; overflow: hidden; }
.page-hero__bg { position: absolute; inset: 0; z-index: -1; }
.page-hero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.35; }
.page-hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--ink) 5%, rgba(6, 6, 8, 0.6) 60%, rgba(6, 6, 8, 0.85)); }
.page-hero h1 { font-size: clamp(34px, 5vw, 60px); font-weight: 700; font-style: italic; }
.breadcrumb { display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.breadcrumb a:hover { color: var(--neon); }
.breadcrumb svg { width: 14px; height: 14px; }

/* ---------- Search bar ---------- */
.search-bar { position: relative; z-index: 20; margin-top: -110px; padding: 14px; border-radius: 22px; }
.search-grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .search-grid { grid-template-columns: 1.6fr 1fr 1fr auto; } }
.field {
  position: relative; display: flex; align-items: center; gap: 12px;
  height: 54px; padding: 0 16px; border-radius: 12px;
  background: rgba(8, 8, 10, 0.65); border: 1px solid rgba(255, 255, 255, 0.1);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.field:focus-within { border-color: var(--fire); box-shadow: 0 0 0 3px rgba(255, 90, 31, 0.15); }
.field svg { width: 20px; height: 20px; color: #ddd; flex: none; }
.field input, .field select, .field textarea {
  flex: 1; min-width: 0; height: 100%; background: transparent; border: 0; outline: 0;
  color: var(--text); font: inherit; font-size: 15px;
}
.field select { appearance: none; cursor: pointer; }
.field select option { background: var(--coal-2); }
.field input::placeholder, .field textarea::placeholder { color: #8d8781; }
.field--area { height: auto; align-items: flex-start; padding: 14px 16px; }
.field--area textarea { min-height: 120px; resize: vertical; }
.label { display: block; font-size: 14px; color: #d8d1ca; margin-bottom: 8px; }

/* ---------- Event card ---------- */
.event-card {
  position: relative; display: flex; flex-direction: column; height: 100%;
  border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(180deg, #17151a, #0d0d10);
  border: 1px solid var(--line);
  transition: border-color 0.4s, box-shadow 0.4s;
}
.event-card:hover { border-color: var(--line-hot); box-shadow: 0 30px 60px -25px rgba(255, 60, 20, 0.45); }
.event-card__media { position: relative; aspect-ratio: 16 / 11; overflow: hidden; }
.event-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.event-card:hover .event-card__media img { transform: scale(1.1); }
.event-card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, #121115 2%, transparent 55%); }
.event-date {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  min-width: 62px; padding: 6px 10px; border-radius: 10px; text-align: center;
  background: rgba(6, 6, 8, 0.82); border: 1px solid rgba(255, 255, 255, 0.14);
}
.event-date b { display: block; font-family: "Chakra Petch"; font-size: 24px; font-weight: 700; line-height: 1; }
.event-date small { font-size: 11px; color: #cfc8c1; }
.event-card__fav { position: absolute; top: 14px; right: 14px; z-index: 2; width: 38px; height: 38px; }
.event-card__fav.is-on { color: var(--fire); border-color: var(--fire); }
.event-card__fav.is-on svg { fill: currentColor; }
.event-card__body { position: relative; z-index: 2; margin-top: -34px; padding: 0 18px 18px; display: flex; flex-direction: column; flex: 1; }
.event-card__title { font-size: 21px; font-weight: 600; letter-spacing: 0.01em; }
.event-card__venue { display: flex; align-items: center; gap: 6px; color: #d8d1ca; font-size: 14px; margin: 6px 0 12px; }
.event-card__venue svg { width: 16px; height: 16px; color: var(--fire); flex: none; }
.event-card__foot { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.price small { display: block; font-size: 12px; color: var(--muted); }
.price b { font-family: "Chakra Petch"; font-size: 24px; font-weight: 700; color: var(--neon); text-shadow: 0 0 14px rgba(255, 90, 31, 0.5); }
.event-card__tags { display: flex; gap: 6px; flex-wrap: wrap; padding-top: 14px; margin-top: 14px; border-top: 1px solid var(--line); }

/* Image tints — reuse one photo with different stage colors */
.tint-magenta { filter: hue-rotate(-70deg) saturate(1.35) brightness(1.05); }
.tint-blue { filter: hue-rotate(195deg) saturate(1.2); }
.tint-red { filter: hue-rotate(-14deg) saturate(1.5) contrast(1.05); }
.tint-violet { filter: hue-rotate(-105deg) saturate(1.3); }
.tint-gold { filter: hue-rotate(14deg) saturate(1.1) brightness(1.05); }

/* ---------- Swiper nav buttons (carousels) ---------- */
.carousel { position: relative; }
.carousel .swiper { overflow: visible; }
.carousel-wrap { overflow: hidden; padding: 10px 4px 30px; margin: -10px -4px -30px; }
.carousel-btn {
  position: absolute; top: 42%; z-index: 10; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%; display: none; place-items: center;
  background: rgba(10, 10, 12, 0.85); border: 1px solid rgba(255, 255, 255, 0.18); color: #fff; cursor: pointer;
  transition: all 0.3s;
}
.carousel-btn:hover { border-color: var(--fire); box-shadow: var(--glow-sm); }
.carousel-btn.swiper-button-disabled { opacity: 0.3; pointer-events: none; }
.carousel-btn--prev { left: -22px; } .carousel-btn--next { right: -22px; }
@media (min-width: 1024px) { .carousel-btn { display: grid; } }

/* ---------- Booking steps ---------- */
.steps { display: grid; gap: 18px; grid-template-columns: 1fr; counter-reset: s; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { position: relative; padding: 30px 22px 24px; border-radius: var(--radius); display: flex; gap: 18px; align-items: flex-start; }
.step__num {
  position: absolute; top: -16px; left: 18px; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; background: var(--grad-fire); font-family: "Chakra Petch"; font-weight: 700; font-size: 18px;
  box-shadow: var(--glow);
}
.step__icon { width: 54px; height: 54px; flex: none; display: grid; place-items: center; border-radius: 14px; background: rgba(255, 90, 31, 0.08); border: 1px solid var(--line-hot); }
.step__icon svg { width: 28px; height: 28px; color: #fff; }
.step h3 { font-size: 18px; margin-bottom: 4px; }
.step p { font-size: 14px; color: var(--muted); margin: 0; }
@media (min-width: 1024px) {
  .step:not(:last-child)::after {
    content: ""; position: absolute; right: -16px; top: 50%; width: 14px; height: 14px; z-index: 2;
    border-top: 3px solid var(--fire); border-right: 3px solid var(--fire); transform: translateY(-50%) rotate(45deg);
    filter: drop-shadow(0 0 6px var(--fire));
  }
}

/* ---------- Artist card ---------- */
.artist-card { position: relative; display: block; aspect-ratio: 3 / 4; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.artist-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), filter 0.6s; }
.artist-card:hover img { transform: scale(1.1); }
.artist-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(6, 6, 8, 0.95) 5%, transparent 60%); }
.artist-card__info { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 18px; text-align: center; }
.artist-card__info h3 { font-size: 17px; letter-spacing: 0.04em; }
.artist-card__info p { font-size: 13px; color: var(--muted); margin: 2px 0 0; }
.artist-card__play {
  position: absolute; top: 50%; left: 50%; z-index: 3; width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center; background: var(--grad-fire); box-shadow: var(--glow);
  transform: translate(-50%, -50%) scale(0.4); opacity: 0; transition: all 0.5s var(--ease);
}
.artist-card:hover .artist-card__play { transform: translate(-50%, -50%) scale(1); opacity: 1; }
.artist-card:hover { border-color: var(--line-hot); }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: linear-gradient(90deg, rgba(255, 45, 45, 0.08), rgba(255, 122, 26, 0.08)); padding: 18px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; width: max-content; gap: 48px; animation: marquee 30s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item { display: flex; align-items: center; gap: 48px; font-size: clamp(22px, 3vw, 38px); font-weight: 700; font-style: italic; white-space: nowrap; }
.marquee__item i { width: 14px; height: 14px; background: var(--fire); transform: rotate(45deg); box-shadow: var(--glow-sm); }
.marquee__item .outline { color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, 0.55); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Festival banner ---------- */
.festival { position: relative; overflow: hidden; border-radius: 24px; border: 1px solid var(--line-hot); min-height: 380px; display: flex; align-items: center; }
.festival__bg { position: absolute; inset: -10% 0; }
.festival__bg img { width: 100%; height: 100%; object-fit: cover; }
.festival::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(6, 6, 8, 0.96) 0%, rgba(6, 6, 8, 0.7) 45%, rgba(6, 6, 8, 0.1)); }
.festival__content { position: relative; z-index: 2; padding: 40px 28px; max-width: 620px; }
@media (min-width: 768px) { .festival__content { padding: 56px; } }
.festival__title { font-size: clamp(44px, 7vw, 92px); font-weight: 800; font-style: italic; line-height: 0.9; transform: rotate(-4deg); transform-origin: left; }
.festival__title small { display: block; font-size: 0.42em; color: #fff; -webkit-text-fill-color: #fff; margin-top: 8px; letter-spacing: 0.02em; }

/* ---------- Promo card ---------- */
.promo-card { position: relative; overflow: hidden; min-height: 230px; padding: 26px; border-radius: var(--radius); display: flex; flex-direction: column; justify-content: space-between; border: 1px solid var(--line-hot); }
.promo-card__bg { position: absolute; inset: 0; z-index: 0; }
.promo-card__bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.55; transition: transform 1s var(--ease); }
.promo-card:hover .promo-card__bg img { transform: scale(1.08); }
.promo-card__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 8, 8, 0.96) 25%, rgba(10, 8, 8, 0.35)); }
.promo-card > *:not(.promo-card__bg) { position: relative; z-index: 2; }
.promo-card h3 { font-size: 26px; font-weight: 700; font-style: italic; }
.promo-card .big { font-family: "Chakra Petch"; font-size: 48px; font-weight: 700; line-height: 1; }

/* ---------- News card ---------- */
.news-card { position: relative; display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; }
.news-card__media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.news-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.news-card:hover .news-card__media img { transform: scale(1.08); }
.news-card__date { position: absolute; left: 14px; bottom: 14px; z-index: 2; font-size: 12px; padding: 4px 10px; border-radius: 6px; background: rgba(0, 0, 0, 0.65); border: 1px solid var(--line); }
.news-card__body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.news-card__body h3 { font-size: 18px; transition: color 0.3s; }
.news-card:hover h3 { color: var(--neon); }
.news-card__body p { margin: 0; font-size: 14px; color: var(--muted); }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; grid-auto-flow: dense; }
@media (min-width: 768px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; } }
.gallery-item { position: relative; overflow: hidden; border-radius: 14px; cursor: zoom-in; border: 1px solid var(--line); }
.gallery-item.is-wide { grid-column: span 2; }
.gallery-item.is-tall { grid-row: span 2; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), filter 0.5s; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(255, 60, 20, 0.35), transparent 50%); opacity: 0; transition: opacity 0.4s; }
.gallery-item:hover::after { opacity: 1; }
.gallery-item__zoom { position: absolute; right: 12px; bottom: 12px; z-index: 2; width: 40px; height: 40px; opacity: 0; transform: translateY(8px); transition: all 0.4s var(--ease); }
.gallery-item:hover .gallery-item__zoom { opacity: 1; transform: none; }
.play-badge { position: absolute; inset: 0; margin: auto; z-index: 2; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: rgba(0, 0, 0, 0.5); border: 2px solid #fff; }
.play-badge::before { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 2px solid var(--fire); animation: ping 1.8s var(--ease) infinite; }
@keyframes ping { from { transform: scale(0.9); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }

/* ---------- Newsletter ---------- */
.newsletter { position: relative; overflow: hidden; border-radius: 22px; padding: 26px; border: 1px solid var(--line-hot); background: linear-gradient(100deg, #1a0904, #0f0d0e 60%); }
.newsletter::before { content: ""; position: absolute; width: 420px; height: 420px; right: -120px; top: -200px; background: radial-gradient(circle, rgba(255, 90, 31, 0.35), transparent 65%); }

/* ---------- Footer ---------- */
.site-footer { position: relative; margin-top: 40px; border-top: 1px solid var(--line); background: linear-gradient(180deg, #0b0a0c, #060608); overflow: hidden; }
.site-footer::before { content: ""; position: absolute; left: 50%; top: 0; width: 70%; height: 1px; transform: translateX(-50%); background: linear-gradient(90deg, transparent, var(--fire), transparent); box-shadow: 0 0 20px var(--fire); }
.footer-big { font-size: clamp(64px, 17vw, 260px); font-weight: 800; font-style: italic; line-height: 0.8; letter-spacing: -0.03em; text-align: center; color: transparent; -webkit-text-stroke: 1px rgba(255, 122, 26, 0.18); user-select: none; margin-bottom: -0.12em; }
.footer-title { font-size: 16px; font-weight: 500; margin-bottom: 14px; }
.footer-links a { display: block; padding: 4px 0; font-size: 14px; color: var(--muted); transition: color 0.3s, transform 0.3s var(--ease); }
.footer-links a:hover { color: var(--neon); transform: translateX(4px); }
.social { width: 40px; height: 40px; }
.pay-badge { height: 30px; padding: 0 10px; border-radius: 6px; background: #fff; color: #1a1f71; font-weight: 800; font-style: italic; font-size: 13px; display: inline-grid; place-items: center; font-family: Arial, sans-serif; }

/* ---------- Modal & Lightbox ---------- */
.modal { position: fixed; inset: 0; z-index: 160; display: grid; place-items: center; padding: 16px; visibility: hidden; }
.modal.is-open { visibility: visible; }
.modal__bg { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.8); backdrop-filter: blur(10px); opacity: 0; transition: opacity 0.4s; }
.modal.is-open .modal__bg { opacity: 1; }
.modal__box { position: relative; width: min(520px, 100%); max-height: 90vh; overflow: auto; opacity: 0; transform: translateY(30px) scale(0.96); transition: all 0.5s var(--ease); }
.modal.is-open .modal__box { opacity: 1; transform: none; }
.modal__close { position: absolute; top: 14px; right: 14px; z-index: 3; }
.lightbox__img { max-width: min(1200px, 92vw); max-height: 80vh; border-radius: 14px; box-shadow: 0 0 80px rgba(255, 70, 20, 0.35); }
.lightbox__caption { text-align: center; margin-top: 14px; color: var(--muted); font-size: 14px; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; }
.lightbox__nav--prev { left: 16px; } .lightbox__nav--next { right: 16px; }

/* ---------- Toast ---------- */
.toast-wrap { position: fixed; z-index: 170; left: 50%; bottom: 24px; transform: translateX(-50%); display: flex; flex-direction: column; gap: 10px; align-items: center; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 12px; font-size: 14px; border: 1px solid var(--line-hot); background: rgba(16, 14, 15, 0.9); backdrop-filter: blur(12px); box-shadow: var(--shadow); }
.toast svg { width: 18px; height: 18px; color: var(--fire); }

/* ---------- Event detail ---------- */
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.countdown div { text-align: center; padding: 12px 6px; border-radius: 12px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); }
.countdown b { display: block; font-family: "Chakra Petch"; font-size: 30px; font-weight: 700; line-height: 1.1; }
.countdown small { font-size: 12px; color: var(--muted); }
.info-row { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px dashed var(--line); font-size: 15px; }
.info-row svg { width: 20px; height: 20px; color: var(--fire); flex: none; margin-top: 2px; }
.lineup-item { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 14px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); transition: all 0.3s; }
.lineup-item:hover { border-color: var(--line-hot); background: rgba(255, 90, 31, 0.06); }
.lineup-item img { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; }
.timeline-row { display: grid; grid-template-columns: 70px 1fr; gap: 16px; position: relative; padding-bottom: 18px; }
.timeline-row::before { content: ""; position: absolute; left: 82px; top: 8px; bottom: 0; width: 1px; background: var(--line); }
.timeline-row b { font-family: "Chakra Petch"; color: var(--neon); }
.timeline-row div { position: relative; padding-left: 16px; }
.timeline-row div::before { content: ""; position: absolute; left: -7px; top: 8px; width: 9px; height: 9px; border-radius: 50%; background: var(--fire); box-shadow: var(--glow-sm); }

/* ---------- Seat map / Table map ---------- */
.stage-shape {
  margin: 0 auto 26px; width: min(560px, 90%); height: 56px; display: grid; place-items: center;
  border-radius: 0 0 50% 50% / 0 0 100% 100%;
  background: var(--grad-fire); box-shadow: var(--glow), 0 10px 60px rgba(255, 60, 20, 0.5);
  font-family: "Chakra Petch"; font-weight: 700; letter-spacing: 0.6em; font-size: 18px;
}
.zone-map { width: 100%; max-width: 620px; margin-inline: auto; display: block; }
.zone-map .zone { cursor: pointer; transition: filter 0.3s, opacity 0.3s; stroke: rgba(0, 0, 0, 0.6); stroke-width: 2; }
.zone-map .zone:hover { filter: brightness(1.25) drop-shadow(0 0 10px currentColor); }
.zone-map .zone.is-dim { opacity: 0.3; }
.zone-map .zone.is-active { filter: brightness(1.3) drop-shadow(0 0 14px #fff); stroke: #fff; stroke-width: 3; }
.zone-map text { pointer-events: none; font-family: "Chakra Petch"; font-weight: 700; fill: #fff; }

.table-grid { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 640px) { .table-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 10px; } }
.seat {
  aspect-ratio: 1; border-radius: 10px; display: grid; place-items: center;
  font-family: "Chakra Petch"; font-size: 11px; font-weight: 600; cursor: pointer; user-select: none;
  background: rgba(34, 197, 94, 0.1); border: 1.5px solid rgba(34, 197, 94, 0.7); color: #b9f5cf;
  transition: transform 0.25s var(--ease), background 0.25s, box-shadow 0.25s;
}
.seat:hover { transform: translateY(-3px) scale(1.06); box-shadow: 0 0 14px rgba(34, 197, 94, 0.5); }
.seat.is-taken { background: rgba(255, 45, 45, 0.18); border-color: rgba(255, 45, 45, 0.6); color: rgba(255, 180, 180, 0.6); cursor: not-allowed; }
.seat.is-taken:hover { transform: none; box-shadow: none; }
.seat.is-selected { background: var(--grad-fire); border-color: #ffd0a8; color: #fff; box-shadow: var(--glow); animation: pop 0.4s var(--ease); }
.seat.is-vip { border-style: dashed; }
@keyframes pop { 50% { transform: scale(1.18); } }
.legend { display: flex; flex-wrap: wrap; gap: 18px; font-size: 13px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend i { width: 14px; height: 14px; border-radius: 4px; border: 1.5px solid; }

.stepper { display: flex; align-items: center; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.stepper__item { display: flex; align-items: center; gap: 10px; white-space: nowrap; font-size: 14px; color: var(--dim); }
.stepper__item b { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); font-family: "Chakra Petch"; }
.stepper__item.is-done, .stepper__item.is-current { color: #fff; }
.stepper__item.is-done b { background: rgba(255, 90, 31, 0.15); border-color: var(--fire); color: var(--neon); }
.stepper__item.is-current b { background: var(--grad-fire); border-color: transparent; box-shadow: var(--glow-sm); }
.stepper__line { flex: 1; min-width: 24px; height: 1px; background: var(--line); }
.stepper__line.is-done { background: var(--fire); }

.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.qty button { width: 34px; height: 34px; background: transparent; border: 0; color: #fff; cursor: pointer; font-size: 18px; }
.qty button:hover { background: rgba(255, 90, 31, 0.2); }
.qty span { min-width: 30px; text-align: center; font-family: "Chakra Petch"; }

.summary-row { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; font-size: 15px; }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 14px; margin-top: 8px; border-top: 1px dashed var(--line); }
.summary-total b { font-family: "Chakra Petch"; font-size: 30px; color: var(--neon); text-shadow: 0 0 16px rgba(255, 90, 31, 0.5); }

/* Payment */
.pay-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 6px; border-radius: 14px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); }
.pay-tab { height: 46px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font: inherit; font-size: 14px; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; transition: all 0.3s; }
.pay-tab svg { width: 18px; height: 18px; }
.pay-tab.is-active { background: var(--grad-fire); color: #fff; box-shadow: var(--glow-sm); }
.qr-box { position: relative; width: 220px; height: 220px; margin: 0 auto; padding: 14px; background: #fff; border-radius: 16px; }
.qr-box canvas, .qr-box img { width: 100% !important; height: 100% !important; }
.qr-box::after { /* scanning line — เลื่อนด้วย transform */
  content: ""; position: absolute; left: 8px; right: 8px; top: 8px; bottom: 8px; pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 90, 31, 0) 0, rgba(255, 90, 31, 0.35) 6px, #ff5a1f 9px, rgba(255, 90, 31, 0) 12px) no-repeat;
  background-size: 100% 12px;
  animation: scan 2.4s ease-in-out infinite alternate;
}
@keyframes scan { from { transform: translateY(-4px); } to { transform: translateY(calc(100% - 8px)); } }
.qr-frame { position: absolute; inset: -10px; pointer-events: none; }
.qr-frame i { position: absolute; width: 26px; height: 26px; border: 3px solid var(--fire); filter: drop-shadow(0 0 6px var(--fire)); }
.qr-frame i:nth-child(1) { top: 0; left: 0; border-right: 0; border-bottom: 0; border-radius: 8px 0 0 0; }
.qr-frame i:nth-child(2) { top: 0; right: 0; border-left: 0; border-bottom: 0; border-radius: 0 8px 0 0; }
.qr-frame i:nth-child(3) { bottom: 0; left: 0; border-right: 0; border-top: 0; border-radius: 0 0 0 8px; }
.qr-frame i:nth-child(4) { bottom: 0; right: 0; border-left: 0; border-top: 0; border-radius: 0 0 8px 0; }
.timer { font-family: "Chakra Petch"; font-size: 28px; font-weight: 700; color: var(--neon); }
.radio-card { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); cursor: pointer; transition: all 0.3s; }
.radio-card:hover { border-color: rgba(255, 255, 255, 0.25); }
.radio-card:has(input:checked) { border-color: var(--fire); background: rgba(255, 90, 31, 0.08); box-shadow: inset 0 0 0 1px var(--fire); }
.radio-card input { accent-color: var(--fire); width: 18px; height: 18px; }

.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.35); border-top-color: #fff; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* 3D credit card preview */
.cc-scene { perspective: 1200px; width: min(360px, 100%); aspect-ratio: 1.586; margin-inline: auto; }
.cc-card { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform 0.8s var(--ease); }
.cc-card.is-flipped { transform: rotateY(180deg); }
.cc-face {
  position: absolute; inset: 0; border-radius: 18px; padding: 22px; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  background: radial-gradient(circle at 85% 10%, rgba(255, 140, 60, 0.55), transparent 45%), linear-gradient(135deg, #2a0e06, #120c0c 55%, #3a1004);
  border: 1px solid var(--line-hot); box-shadow: 0 30px 60px -20px rgba(255, 60, 20, 0.45); overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between; font-family: "Chakra Petch";
}
.cc-face::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 60%; background: linear-gradient(115deg, transparent, rgba(255, 255, 255, 0.12), transparent); animation: holo 5s ease-in-out infinite; pointer-events: none; }
@keyframes holo { 0%, 100% { transform: translateX(-100%); } 50% { transform: translateX(170%); } }
.cc-back { transform: rotateY(180deg); padding: 0; justify-content: flex-start; }
.cc-back .strip { height: 44px; background: #000; margin-top: 26px; }
.cc-back .cvv { margin: 18px 22px 0; height: 38px; border-radius: 6px; background: #eee; color: #111; display: flex; align-items: center; justify-content: flex-end; padding: 0 14px; font-weight: 700; letter-spacing: 0.2em; }
.cc-chip { width: 44px; height: 34px; border-radius: 7px; background: linear-gradient(135deg, #ffd28a, #b8862b); }
.cc-num { font-size: clamp(17px, 4.6vw, 22px); letter-spacing: 0.14em; }

/* Success */
.success-check { width: 110px; height: 110px; margin: 0 auto; }
.success-check circle { stroke: var(--fire); stroke-width: 4; fill: rgba(255, 90, 31, 0.08); stroke-dasharray: 330; stroke-dashoffset: 330; filter: drop-shadow(0 0 10px var(--fire)); }
.success-check path { stroke: #fff; stroke-width: 6; fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 80; stroke-dashoffset: 80; }
.ticket { position: relative; display: grid; grid-template-columns: 1fr; border-radius: 22px; overflow: hidden; }
@media (min-width: 768px) { .ticket { grid-template-columns: 1fr 260px; } }
.ticket__stub { position: relative; padding: 26px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.03); border-top: 2px dashed rgba(255, 255, 255, 0.15); }
@media (min-width: 768px) { .ticket__stub { border-top: 0; border-left: 2px dashed rgba(255, 255, 255, 0.15); } }
.ticket__stub::before, .ticket__stub::after { content: ""; position: absolute; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); }
.ticket__stub::before { top: -14px; left: -14px; } .ticket__stub::after { top: -14px; right: -14px; }
@media (min-width: 768px) { .ticket__stub::before { top: -14px; left: -14px; } .ticket__stub::after { top: auto; bottom: -14px; left: -14px; right: auto; } }
.confetti { position: fixed; inset: 0; z-index: 95; pointer-events: none; }

/* Account */
.side-menu a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; color: #d8d1ca; font-size: 15px; transition: all 0.3s; }
.side-menu a svg { width: 19px; height: 19px; }
.side-menu a:hover { background: rgba(255, 255, 255, 0.04); color: #fff; }
.side-menu a.is-active { background: var(--grad-fire); color: #fff; box-shadow: var(--glow-sm); }
.stat { padding: 18px; border-radius: 16px; }
.stat b { font-family: "Chakra Petch"; font-size: 32px; font-weight: 700; display: block; line-height: 1.1; }
.status { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 500; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status--ok { color: #4ade80; background: rgba(34, 197, 94, 0.12); }
.status--wait { color: var(--warn); background: rgba(250, 204, 21, 0.12); }
.status--done { color: var(--muted); background: rgba(255, 255, 255, 0.06); }
.avatar { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 22px; background: var(--grad-fire); box-shadow: var(--glow); }

/* Auth */
.auth-wrap { min-height: 100svh; display: grid; grid-template-columns: 1fr; }
@media (min-width: 1024px) { .auth-wrap { grid-template-columns: 1.1fr 1fr; } }
.auth-visual { position: relative; overflow: hidden; display: none; }
@media (min-width: 1024px) { .auth-visual { display: block; } }
.auth-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.auth-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 40%, var(--ink)), linear-gradient(0deg, rgba(6, 6, 8, 0.9), transparent 50%); }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; padding: 5px; border-radius: 999px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); position: relative; }
.auth-tabs button { position: relative; z-index: 2; height: 44px; border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 15px; cursor: pointer; transition: color 0.3s; }
.auth-tabs button.is-active { color: #fff; }
.auth-tabs__pill { position: absolute; z-index: 1; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 5px); border-radius: 999px; background: var(--grad-fire); box-shadow: var(--glow-sm); transition: transform 0.5s var(--ease); }
.auth-tabs[data-tab="register"] .auth-tabs__pill { transform: translateX(100%); }
.divider { display: flex; align-items: center; gap: 14px; color: var(--dim); font-size: 13px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* Pagination */
.pager { display: flex; justify-content: center; gap: 8px; }
.pager a { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; border: 1px solid var(--line); font-family: "Chakra Petch"; transition: all 0.3s; }
.pager a:hover { border-color: var(--fire); }
.pager a.is-active { background: var(--grad-fire); border-color: transparent; box-shadow: var(--glow-sm); }

/* Accordion */
.acc-item { border-bottom: 1px solid var(--line); }
.acc-head { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; background: none; border: 0; color: #fff; font: inherit; font-size: 16px; text-align: left; cursor: pointer; }
.acc-head svg { width: 20px; height: 20px; color: var(--fire); transition: transform 0.4s var(--ease); flex: none; }
.acc-item.is-open .acc-head svg { transform: rotate(45deg); }
.acc-body { height: 0; overflow: hidden; transition: height 0.45s var(--ease); }
.acc-body p { margin: 0 0 18px; color: var(--muted); font-size: 15px; }

/* ---------- JS-driven initial states ---------- */
.js [data-reveal], .js [data-intro], .js .hero [data-hero-anim] { opacity: 0; }
.split-w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0.14em 0.02em 0.06em; margin: -0.14em 0 -0.06em; }
.split-i { display: inline-block; }
.carousel .swiper-slide { height: auto; }

/* ปิดหน้าจอไว้ก่อน JS จะเล่น preloader / page transition (มี fallback หายเองใน 4 วินาที) */
html.first body::before, html.pt-in body::before {
  content: ""; position: fixed; inset: 0; z-index: 199; background: var(--ink);
  animation: coverFail 0.3s 4s forwards;
}
@keyframes coverFail { to { opacity: 0; visibility: hidden; } }

/* Neon flicker */
.flicker { animation: flicker 5s linear infinite; }
@keyframes flicker { 0%, 18%, 22%, 25%, 53%, 57%, 100% { opacity: 1; } 20%, 24%, 55% { opacity: 0.55; } }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .grain, .beams, .embers { display: none; }
  .js [data-reveal], .js [data-intro], .js .hero [data-hero-anim] { opacity: 1; }
}

 
