/* RE:VERIA Official — Celestial Glass (โทนเดียวกับ Portal) */
:root {
  --bg: #06051a;
  --surface: #100d2b;
  --surface-2: #17133a;
  --line: rgb(255 255 255 / 0.09);
  --line-strong: rgb(255 255 255 / 0.16);
  --ink: #f3f1ff;
  --muted: #aaa6d6;
  --faint: #77739f;
  --sky: #7dd3fc;
  --azure: #4f8bff;
  --violet: #8b5cf6;
  --orchid: #c084fc;
  --lavender: #c9b8ff;
  --pink: #f472b6;
  --ok: #4ade80;
  --warn: #fbbf24;
  --bad: #f87171;
  --grad: linear-gradient(120deg, var(--sky), var(--azure) 35%, var(--violet) 70%, var(--orchid));
  --grad-text: linear-gradient(110deg, #fff 0%, var(--sky) 35%, var(--lavender) 70%, var(--orchid) 100%);
  --radius: 22px;
  --shadow: 0 30px 80px -40px rgb(79 139 255 / 0.55);
  --display: "Kanit", "IBM Plex Sans Thai", system-ui, sans-serif;
  --body: "IBM Plex Sans Thai", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: transparent;
  color: var(--ink);
  font: 16px/1.65 var(--body);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; border-radius: 8px; }
main { flex: 1; outline: none; }
[hidden] { display: none !important; }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.grad-text { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ───────── ท้องฟ้า ───────── */
.sky { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.sky .neb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.55; }
.sky .n1 { width: 900px; height: 600px; left: -280px; top: -260px; background: radial-gradient(circle, rgb(79 139 255 / 0.45), transparent 65%); }
.sky .n2 { width: 900px; height: 640px; right: -300px; top: 10%; background: radial-gradient(circle, rgb(139 92 246 / 0.45), transparent 65%); animation: drift 26s ease-in-out infinite alternate; }
.sky .stars { position: absolute; inset: -50%; }
.sky .s1 {
  background-image:
    radial-gradient(1.2px 1.2px at 20px 30px, #fff, transparent 70%),
    radial-gradient(1px 1px at 140px 90px, #cfe9ff, transparent 70%),
    radial-gradient(1.4px 1.4px at 260px 40px, #fff, transparent 70%),
    radial-gradient(1px 1px at 330px 190px, var(--lavender), transparent 70%),
    radial-gradient(1.2px 1.2px at 80px 240px, #fff, transparent 70%),
    radial-gradient(1px 1px at 200px 300px, #cfe9ff, transparent 70%),
    radial-gradient(1.6px 1.6px at 380px 330px, #fff, transparent 70%);
  background-size: 420px 380px;
  opacity: 0.5;
}
.sky .s2 {
  background-image:
    radial-gradient(1.8px 1.8px at 60px 120px, #fff, transparent 70%),
    radial-gradient(1.4px 1.4px at 420px 60px, #d8ecff, transparent 70%),
    radial-gradient(2px 2px at 300px 420px, #f0e6ff, transparent 70%),
    radial-gradient(1.4px 1.4px at 520px 300px, #fff, transparent 70%);
  background-size: 640px 560px;
  animation: twinkle 5s ease-in-out infinite alternate;
}
@keyframes twinkle { from { opacity: 0.35; } to { opacity: 0.95; } }
@keyframes drift { to { transform: translate(-80px, 60px) scale(1.08); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ───────── แถบบน ───────── */
.preview-bar { position: sticky; top: 0; z-index: 60; height: 38px; padding: 0 16px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; line-height: 38px; text-align: center; font-size: 14px; color: #1a1300; background: var(--warn); }
.pv-short { display: none; }
@media (max-width: 820px) { .pv-more { display: none; } .pv-short { display: inline; } }
.topbar { position: sticky; top: 0; z-index: 50; transition: background 0.25s, box-shadow 0.25s; }
.preview-bar:not([hidden]) + .topbar { top: 38px; }
.topbar.scrolled { background: rgb(6 5 26 / 0.78); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); box-shadow: 0 1px 0 var(--line); }
.topbar-in { display: flex; align-items: center; gap: 20px; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo img:first-child { width: 40px; height: 40px; filter: drop-shadow(0 0 12px rgb(125 211 252 / 0.5)); }
.logo-word { height: 26px; width: auto; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { padding: 8px 16px; border-radius: 999px; color: var(--muted); font-weight: 500; transition: color 0.2s, background 0.2s; }
.nav a:hover { color: var(--ink); background: rgb(255 255 255 / 0.05); }
.nav a.active { color: var(--ink); background: rgb(255 255 255 / 0.08); box-shadow: inset 0 0 0 1px var(--line-strong); }
.topbar-act { display: flex; gap: 8px; align-items: center; }
.icon-btn { position: relative; display: grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 999px; background: rgb(255 255 255 / 0.06); box-shadow: inset 0 0 0 1px var(--line); transition: background 0.2s, transform 0.2s; }
.icon-btn:hover { background: rgb(255 255 255 / 0.12); }
.cart-count { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--pink); color: #fff; font-size: 12px; font-weight: 700; line-height: 20px; text-align: center; }
.cart-count.bump { animation: rise 0.35s; }
.menu-btn { display: none; }

/* ───────── ปุ่ม ───────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border: 0; border-radius: 999px; font-weight: 600; transition: transform 0.2s, box-shadow 0.2s, background 0.2s; white-space: nowrap; }
.btn svg { flex-shrink: 0; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 12px 30px -12px rgb(79 139 255 / 0.85), inset 0 1px 0 rgb(255 255 255 / 0.3); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -12px rgb(139 92 246 / 0.9), inset 0 1px 0 rgb(255 255 255 / 0.3); }
.btn-ghost { background: rgb(255 255 255 / 0.06); box-shadow: inset 0 0 0 1px var(--line-strong); }
.btn-ghost:hover { background: rgb(255 255 255 / 0.12); }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 14px; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; transform: none; }

/* ───────── การ์ด/หัวข้อ ───────── */
.glass { position: relative; border-radius: var(--radius); background: linear-gradient(180deg, rgb(28 23 72 / 0.72), rgb(16 13 43 / 0.72)); box-shadow: inset 0 0 0 1px var(--line), var(--shadow); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.section { padding: 72px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 8px; color: var(--sky); font: 600 13px/1 var(--body); letter-spacing: 0.28em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--grad); }
h1, h2, h3 { font-family: var(--display); margin: 0; line-height: 1.15; }
.h2 { font-size: clamp(30px, 4.4vw, 48px); font-weight: 700; }
.lead { margin: 10px 0 0; color: var(--muted); max-width: 640px; }
.more { display: inline-flex; align-items: center; gap: 6px; color: var(--sky); font-weight: 600; }
.more:hover { gap: 10px; }
.reveal { animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }

/* ───────── Hero ───────── */
.hero { position: relative; padding: 48px 0 32px; }
.hero-in { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 40px; min-height: calc(100dvh - 180px); }
.hero h1 { margin: 6px 0 0; }
.hero h1 img { width: min(560px, 100%); height: auto; filter: drop-shadow(0 10px 40px rgb(79 139 255 / 0.45)); }
.hero .tagline { margin: 20px 0 0; font: 600 clamp(20px, 2.4vw, 28px)/1.35 var(--display); }
.hero .about { margin: 14px 0 0; color: var(--muted); max-width: 560px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-stats { display: flex; gap: 28px; margin-top: 36px; flex-wrap: wrap; }
.hero-stats b { display: block; font: 700 32px/1 var(--display); }
.hero-stats span { color: var(--muted); font-size: 14px; }
.orbit { position: relative; aspect-ratio: 1; width: min(520px, 100%); margin-inline: auto; }
.orbit .glow { position: absolute; inset: 8%; border-radius: 50%; background: radial-gradient(circle, rgb(79 139 255 / 0.4), rgb(139 92 246 / 0.18) 45%, transparent 70%); filter: blur(20px); }
.orbit .ring { position: absolute; border-radius: 50%; border: 1px solid rgb(201 184 255 / 0.18); }
.orbit .r1 { inset: 4%; }
.orbit .r2 { inset: 17%; border-style: dashed; border-color: rgb(125 211 252 / 0.2); animation: spin 80s linear infinite; }
.orbit .emblem { position: absolute; inset: 22%; width: 56%; height: auto; animation: float 7s ease-in-out infinite; filter: drop-shadow(0 20px 50px rgb(79 139 255 / 0.55)); }
.orbit .spinner { position: absolute; inset: 4%; animation: spin 60s linear infinite; }
.orbit .sat { position: absolute; left: 50%; top: 50%; width: 19%; aspect-ratio: 1; margin: -9.5% 0 0 -9.5%; }
.orbit .sat > span { display: block; width: 100%; height: 100%; animation: spin 60s linear infinite reverse; }
.orbit .sat img, .orbit .sat i { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; object-position: 50% 15%; box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--sat, var(--sky)), 0 10px 30px -6px var(--sat, var(--sky)); }
.orbit .sat i { display: grid; place-items: center; font: 700 26px var(--display); font-style: normal; background: var(--grad); }

.marquee { overflow: hidden; border-block: 1px solid var(--line); background: rgb(255 255 255 / 0.02); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee span { padding: 18px 28px; font: 600 22px var(--display); white-space: nowrap; color: rgb(243 241 255 / 0.75); }
.marquee span::after { content: "✦"; margin-left: 56px; color: var(--sky); }

/* ───────── ทาเลนต์ ───────── */
.talent-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.talent-card { --c1: var(--azure); --c2: var(--violet); position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.35s; }
.talent-card:hover { transform: translateY(-6px); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c1) 60%, transparent), 0 30px 60px -24px color-mix(in srgb, var(--c1) 70%, transparent); }
.talent-art { position: relative; aspect-ratio: 1 / 1.08; display: grid; place-items: center; overflow: hidden; background: radial-gradient(circle at 50% 38%, color-mix(in srgb, var(--c1) 55%, transparent), transparent 62%), linear-gradient(160deg, color-mix(in srgb, var(--c1) 45%, var(--surface)), color-mix(in srgb, var(--c2) 40%, var(--surface))); }
.talent-art::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(1.4px 1.4px at 30px 40px, #fff, transparent 70%), radial-gradient(1px 1px at 120px 90px, #fff, transparent 70%), radial-gradient(1.2px 1.2px at 200px 30px, #fff, transparent 70%); background-size: 240px 140px; opacity: 0.5; }
.talent-art img, .talent-art .initial { position: relative; width: 72%; aspect-ratio: 1; border-radius: 50%; object-fit: cover; object-position: 50% 15%; box-shadow: 0 0 0 4px rgb(255 255 255 / 0.85), 0 24px 50px -18px rgb(0 0 0 / 0.7); transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1); }
.talent-card:hover .talent-art img, .talent-card:hover .talent-art .initial { transform: scale(1.05); }
.initial { display: grid; place-items: center; font: 700 72px var(--display); background: linear-gradient(140deg, var(--c1), var(--c2)); color: #fff; }
.talent-info { padding: 18px 20px 20px; }
.talent-info h3 { font-size: 22px; font-weight: 700; overflow-wrap: anywhere; }
.talent-info .en { margin: 2px 0 0; color: var(--muted); font-size: 14px; letter-spacing: 0.04em; }
.talent-info .icons { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; min-height: 30px; }

.pf { display: inline-grid; place-items: center; flex-shrink: 0; width: var(--s, 30px); height: var(--s, 30px); border-radius: 50%; background: var(--pc); transition: transform 0.2s; }
.pf svg { width: 58%; height: 58%; }
a.pf:hover { transform: scale(1.12); }

/* โปรไฟล์ทาเลนต์ */
.profile-hero { position: relative; overflow: hidden; border-radius: 0 0 36px 36px; padding: 56px 0 48px; background: radial-gradient(800px 400px at 25% 30%, color-mix(in srgb, var(--c1) 45%, transparent), transparent 70%), radial-gradient(700px 420px at 85% 70%, color-mix(in srgb, var(--c2) 40%, transparent), transparent 70%); }
.profile-in { display: grid; grid-template-columns: auto 1fr; gap: 44px; align-items: center; }
.profile-avatar { position: relative; width: clamp(200px, 26vw, 320px); aspect-ratio: 1; }
.profile-avatar::before { content: ""; position: absolute; inset: -14px; border-radius: 50%; background: conic-gradient(from 0deg, var(--c1), var(--c2), var(--c1)); filter: blur(2px); opacity: 0.9; animation: spin 18s linear infinite; }
.profile-avatar img, .profile-avatar .initial { position: relative; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; object-position: 50% 15%; box-shadow: 0 0 0 6px var(--bg); font-size: 110px; }
.profile-name { font-size: clamp(40px, 6vw, 72px); font-weight: 800; overflow-wrap: anywhere; }
.profile-en { margin: 6px 0 0; color: var(--muted); font: 500 20px var(--display); letter-spacing: 0.08em; }
.profile-bio { margin: 20px 0 0; max-width: 640px; white-space: pre-line; color: rgb(243 241 255 / 0.88); }
.follow { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.follow a { display: inline-flex; align-items: center; gap: 10px; padding: 6px 16px 6px 6px; border-radius: 999px; background: rgb(255 255 255 / 0.06); box-shadow: inset 0 0 0 1px var(--line-strong); transition: background 0.2s, transform 0.2s; }
.follow a:hover { background: rgb(255 255 255 / 0.12); transform: translateY(-2px); }
.follow small { display: block; color: var(--muted); font-size: 12px; line-height: 1.2; }
.follow b { display: block; font-size: 14px; line-height: 1.3; }
.pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 36px; }
.pager a { display: flex; align-items: center; gap: 12px; padding: 10px 18px 10px 10px; border-radius: 999px; background: rgb(255 255 255 / 0.04); box-shadow: inset 0 0 0 1px var(--line); max-width: 48%; }
.pager a:last-child { flex-direction: row-reverse; padding: 10px 10px 10px 18px; margin-left: auto; }
.pager img, .pager .initial { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; object-position: 50% 15%; font-size: 20px; flex-shrink: 0; }
.pager span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pager small { display: block; color: var(--faint); font-size: 12px; }
.back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 26px; color: var(--muted); }
.back:hover { color: var(--ink); }

/* ───────── Event ───────── */
.event-list { display: grid; gap: 20px; }
.event { display: grid; grid-template-columns: 120px 1fr minmax(260px, 380px); gap: 24px; padding: 22px; align-items: stretch; }
.date-chip { display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 18px; padding: 16px 8px; background: linear-gradient(160deg, rgb(79 139 255 / 0.3), rgb(139 92 246 / 0.3)); box-shadow: inset 0 0 0 1px var(--line-strong); text-align: center; }
.date-chip .m { color: var(--sky); font: 600 14px var(--display); letter-spacing: 0.12em; }
.date-chip .d { font: 800 40px/1.05 var(--display); }
.date-chip .y { color: var(--muted); font-size: 13px; }
.event-body { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.event-body h3 { font-size: 26px; overflow-wrap: anywhere; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; background: rgb(255 255 255 / 0.06); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; color: var(--muted); }
.chip.hot { color: #1a1300; background: var(--warn); box-shadow: none; font-weight: 600; }
.event-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.map { position: relative; min-height: 220px; border-radius: 16px; overflow: hidden; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: invert(0.9) hue-rotate(200deg) saturate(0.7) brightness(0.95); }
.map-load { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 10px; border: 0; background: radial-gradient(circle at 50% 40%, rgb(79 139 255 / 0.25), transparent 65%); color: var(--muted); }
.map-load svg { color: var(--sky); }
.next-event { display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; overflow: hidden; }
.next-event .event-body { padding: 32px; gap: 14px; }
.next-event .map { border-radius: 0; min-height: 320px; box-shadow: none; }
.countdown { display: flex; gap: 10px; }
.countdown div { min-width: 70px; padding: 10px 6px; border-radius: 14px; background: rgb(255 255 255 / 0.05); box-shadow: inset 0 0 0 1px var(--line); text-align: center; }
.countdown b { display: block; font: 700 28px/1.1 var(--display); }
.countdown span { color: var(--muted); font-size: 12px; }

/* ───────── ร้านค้า ───────── */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.filters button { padding: 8px 18px; border: 0; border-radius: 999px; background: rgb(255 255 255 / 0.05); box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); font-weight: 500; }
.filters button.on { background: var(--grad); color: #fff; box-shadow: none; }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; }
.product { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); transition: transform 0.3s, box-shadow 0.3s; }
.product:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px var(--line-strong), var(--shadow); }
.product-img { position: relative; aspect-ratio: 1; display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, rgb(79 139 255 / 0.22), transparent 70%), var(--surface-2); overflow: hidden; }
.product-img img { width: 100%; height: 100%; object-fit: cover; }
.product-img img.ph { width: 46%; height: auto; object-fit: contain; opacity: 0.5; }
.product-img .badge { position: absolute; top: 12px; left: 12px; }
.badge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.badge.low { background: var(--warn); color: #1a1300; }
.badge.out { background: rgb(0 0 0 / 0.7); color: #fff; box-shadow: inset 0 0 0 1px var(--line-strong); }
.product.sold .product-img img { filter: grayscale(0.85) brightness(0.6); }
.product-info { display: flex; flex-direction: column; gap: 4px; flex: 1; padding: 16px 18px 18px; }
.product-info .cat { color: var(--sky); font-size: 12px; font-weight: 600; letter-spacing: 0.08em; }
.product-info h3 { font-size: 18px; font-weight: 600; overflow-wrap: anywhere; }
.product-info .variant { color: var(--muted); font-size: 14px; }
.product-info .desc { color: var(--faint); font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 12px; }
.price { font: 700 22px var(--display); }
.add-btn { width: 42px; height: 42px; border: 0; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 24px -10px rgb(79 139 255 / 0.9); transition: transform 0.2s; }
.add-btn:hover { transform: scale(1.1) rotate(90deg); }
.add-btn[disabled] { background: rgb(255 255 255 / 0.08); box-shadow: none; transform: none; cursor: not-allowed; }
.in-cart { font-size: 12px; color: var(--ok); font-weight: 600; }

/* ───────── ตะกร้า ───────── */
.drawer-backdrop { position: fixed; inset: 0; z-index: 80; background: rgb(2 2 12 / 0.6); backdrop-filter: blur(4px); }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 90; width: min(440px, 100%); display: flex; flex-direction: column; background: linear-gradient(180deg, #17133a, #0d0b25); box-shadow: -1px 0 0 var(--line), -30px 0 80px -30px rgb(0 0 0 / 0.8); transform: translateX(105%); transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1); }
.drawer.open { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 22px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 18px 20px 28px; }
.line { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.line img { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; background: var(--surface-2); }
.line b { display: block; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.line small { color: var(--muted); }
.qty { display: inline-flex; align-items: center; gap: 4px; border-radius: 999px; background: rgb(255 255 255 / 0.06); box-shadow: inset 0 0 0 1px var(--line); }
.qty button { width: 32px; height: 32px; border: 0; background: none; border-radius: 50%; }
.qty button:hover { background: rgb(255 255 255 / 0.1); }
.qty span { min-width: 22px; text-align: center; font-weight: 600; }
.total { display: flex; justify-content: space-between; align-items: baseline; margin: 18px 0; font-size: 18px; }
.total b { font: 700 28px var(--display); }
.form { display: grid; gap: 12px; }
.field span { display: block; margin-bottom: 4px; color: var(--muted); font-size: 14px; }
.input { width: 100%; min-height: 46px; padding: 10px 14px; border: 0; border-radius: 14px; background: rgb(255 255 255 / 0.05); box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--ink); font: inherit; }
.input:focus { outline: none; box-shadow: inset 0 0 0 1px var(--sky), 0 0 0 4px rgb(125 211 252 / 0.12); }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
select.input option { background: #17133a; }
.row2 { display: grid; grid-template-columns: 150px 1fr; gap: 10px; }
.note { padding: 12px 14px; border-radius: 14px; font-size: 14px; background: rgb(251 191 36 / 0.12); color: #fde68a; box-shadow: inset 0 0 0 1px rgb(251 191 36 / 0.3); }
.err { color: var(--bad); font-size: 14px; }
.done { text-align: center; padding: 24px 0; }
.done .code { margin: 12px auto; display: inline-block; padding: 10px 22px; border-radius: 16px; background: rgb(255 255 255 / 0.06); box-shadow: inset 0 0 0 1px var(--line-strong); font: 700 30px var(--display); letter-spacing: 0.08em; user-select: all; }

/* ───────── เกี่ยวกับ ───────── */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; }
.about-text { white-space: pre-line; font-size: 18px; color: rgb(243 241 255 / 0.9); }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.value { padding: 24px; }
.value .ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--grad); margin-bottom: 14px; font-size: 22px; }
.value h3 { font-size: 20px; }
.value p { margin: 6px 0 0; color: var(--muted); font-size: 15px; }
.link-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

/* ───────── สถานะ ───────── */
.loading, .soon, .empty { display: grid; place-items: center; align-content: center; gap: 14px; min-height: 60vh; padding: 40px 16px; text-align: center; }
.loading img { animation: float 3s ease-in-out infinite; opacity: 0.85; }
.loading p { color: var(--muted); margin: 0; }
.soon { min-height: calc(100dvh - 160px); }
.soon img { width: min(300px, 70vw); height: auto; animation: float 7s ease-in-out infinite; filter: drop-shadow(0 20px 60px rgb(79 139 255 / 0.6)); }
.soon h1 { font-size: clamp(40px, 8vw, 80px); font-weight: 800; }
.soon p { margin: 0; color: var(--muted); font-size: 18px; }
.empty { min-height: 200px; border-radius: var(--radius); background: rgb(255 255 255 / 0.02); box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); }
.page-head { padding: 56px 0 8px; }
.page-head h1 { font-size: clamp(38px, 6vw, 64px); font-weight: 800; }

/* ───────── ท้ายเว็บ ───────── */
.footer { margin-top: 40px; border-top: 1px solid var(--line); background: rgb(6 5 26 / 0.6); }
.footer-in { display: grid; grid-template-columns: 1.1fr 1fr 0.8fr 0.8fr; gap: 24px; padding: 40px 0 24px; align-items: start; }
.footer-in img { height: 28px; width: auto; }
.footer-in .muted { margin: 8px 0 0; font-size: 14px; }
.footer-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
.footer-nav a { color: var(--muted); }
.footer-nav a:hover { color: var(--ink); }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.copy { margin: 0; padding: 16px; border-top: 1px solid var(--line); text-align: center; color: var(--faint); font-size: 13px; }

.toast { position: fixed; left: 50%; bottom: 24px; z-index: 100; transform: translateX(-50%); padding: 12px 20px; border-radius: 999px; background: #1f1a4d; box-shadow: inset 0 0 0 1px var(--line-strong), 0 20px 40px -10px rgb(0 0 0 / 0.6); font-weight: 600; animation: rise 0.3s; max-width: calc(100% - 32px); text-align: center; }
.toast.ok { box-shadow: inset 0 0 0 1px rgb(74 222 128 / 0.5), 0 20px 40px -10px rgb(0 0 0 / 0.6); }
.toast.bad { box-shadow: inset 0 0 0 1px rgb(248 113 113 / 0.6), 0 20px 40px -10px rgb(0 0 0 / 0.6); color: #fecaca; }

/* ───────── ชุดที่ 2: บัญชี / ชุมชน / ข่าว / ตารางไลฟ์ ───────── */
.skip { position: absolute; left: -999px; top: 8px; z-index: 200; padding: 8px 14px; border-radius: 10px; background: var(--sky); color: #04121e; font-weight: 700; }
.skip:focus { left: 8px; }
.small { font-size: 13px; }
.center { text-align: center; }
.pad { padding: 22px; }
.h3 { font-size: 22px; font-weight: 700; margin: 0 0 14px; }
.h4 { font-size: 17px; margin: 0; }
.danger { color: var(--bad); }
.link { color: var(--sky); text-decoration: underline; text-underline-offset: 3px; }
.narrow { width: min(560px, 100%); margin-inline: auto; }
.row-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-going { background: rgb(74 222 128 / 0.14); color: #bbf7d0; box-shadow: inset 0 0 0 1px rgb(74 222 128 / 0.45); }
.btn-danger { background: rgb(248 113 113 / 0.15); color: #fecaca; box-shadow: inset 0 0 0 1px rgb(248 113 113 / 0.5); }
.icon-btn.sm { width: 36px; height: 36px; }
.nav-donate { color: #fbcfe8 !important; background: rgb(244 114 182 / 0.12); box-shadow: inset 0 0 0 1px rgb(244 114 182 / 0.35); }
.nav-donate:hover { background: rgb(244 114 182 / 0.22) !important; }
.nav { gap: 2px; }
.nav a { padding: 8px 12px; white-space: nowrap; }
.account { display: flex; align-items: center; gap: 8px; }
.acc-btn { display: flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 999px; background: rgb(255 255 255 / 0.06); box-shadow: inset 0 0 0 1px var(--line); max-width: 180px; }
.acc-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 600; }
.bell { font-size: 17px; }
.fan-dot { display: inline-grid; place-items: center; flex-shrink: 0; width: var(--s); height: var(--s); border-radius: 50%; background: linear-gradient(140deg, var(--fc), color-mix(in srgb, var(--fc) 45%, #1b1440)); color: #fff; font: 700 calc(var(--s) * 0.45) / 1 var(--display); box-shadow: 0 0 0 2px rgb(255 255 255 / 0.15); }

.greeting { position: relative; z-index: 55; display: flex; justify-content: center; align-items: center; gap: 12px; padding: 8px 44px; text-align: center; font-weight: 600; background: linear-gradient(90deg, color-mix(in srgb, var(--a1, #7dd3fc) 30%, transparent), color-mix(in srgb, var(--a2, #8b5cf6) 30%, transparent)); border-bottom: 1px solid var(--line); }
.greeting button { position: absolute; right: 12px; border: 0; background: none; color: var(--muted); font-size: 16px; }
.floats { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.floats i { position: absolute; top: -40px; font-style: normal; opacity: 0.7; animation: fall linear infinite; filter: drop-shadow(0 4px 10px rgb(0 0 0 / 0.4)); }
@keyframes fall { 0% { transform: translateY(-40px) rotate(0); } 100% { transform: translateY(110vh) rotate(260deg); } }
main, .footer { position: relative; z-index: 1; }

.fab { position: fixed; right: 18px; bottom: 18px; z-index: 70; display: grid; gap: 10px; justify-items: end; }
.fab-discord { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: #5865f2; color: #fff; box-shadow: 0 14px 30px -10px rgb(88 101 242 / 0.9); transition: transform 0.2s; }
.fab-discord:hover { transform: translateY(-3px) scale(1.05); }
.to-top { width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgb(255 255 255 / 0.1); box-shadow: inset 0 0 0 1px var(--line-strong); font-size: 18px; opacity: 0; pointer-events: none; transition: opacity 0.2s; }
.to-top.show { opacity: 1; pointer-events: auto; }
.discord-mini { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 8px 14px; border-radius: 999px; background: #5865f2; color: #fff; font-weight: 600; font-size: 14px; }
kbd { padding: 1px 6px; border-radius: 6px; background: rgb(255 255 255 / 0.08); box-shadow: inset 0 0 0 1px var(--line-strong); font: 12px var(--body); }

/* ค้นหา */
.search { position: fixed; inset: 0; z-index: 120; display: grid; justify-items: center; align-items: start; padding: 10vh 16px 16px; background: rgb(2 2 12 / 0.65); backdrop-filter: blur(6px); }
.search-box { width: min(620px, 100%); border-radius: 22px; background: #15113a; box-shadow: inset 0 0 0 1px var(--line-strong), 0 40px 80px -20px #000; overflow: hidden; animation: rise 0.2s; }
.search-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); color: var(--sky); }
.search-head input { flex: 1; min-width: 0; border: 0; background: none; color: var(--ink); font: 500 17px var(--body); outline: none; }
.search-res { list-style: none; margin: 0; padding: 8px; max-height: 50vh; overflow-y: auto; }
.search-res a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; }
.search-res a.on, .search-res a:hover { background: rgb(255 255 255 / 0.07); }
.sk { flex-shrink: 0; padding: 2px 8px; border-radius: 999px; font-size: 12px; background: rgb(125 211 252 / 0.14); color: var(--sky); }
.search-foot { margin: 0; padding: 8px 16px; border-top: 1px solid var(--line); font-size: 12px; }

/* การ์ดเพิ่มเติม */
.following-tag { position: absolute; top: 12px; left: 12px; padding: 3px 10px; border-radius: 999px; background: rgb(244 114 182 / 0.85); color: #fff; font-size: 12px; font-weight: 700; }
.fcount { margin: 8px 0 0; color: var(--faint); font-size: 13px; }
.fcount.big { margin-top: 10px; font-size: 15px; color: var(--muted); }
.badge.new { background: var(--grad); color: #fff; }
.badge.ok { background: rgb(74 222 128 / 0.16); color: #bbf7d0; }
.product { position: relative; }
.product h3 a:hover { color: var(--sky); }
.fav-btn { position: absolute; top: 10px; right: 10px; z-index: 2; display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 50%; background: rgb(6 5 26 / 0.6); color: #fff; backdrop-filter: blur(6px); transition: transform 0.2s; }
.fav-btn:hover { transform: scale(1.1); }
.fav-btn.on { color: var(--pink); }
.shop-tools { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.shop-tools .search-in { flex: 1 1 260px; }
.shop-tools select.input { width: auto; }
.filters .search-in { max-width: 360px; }

/* หน้าสินค้า */
.product-page { padding: 40px 0 20px; }
.pd-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: start; }
.pd-main { aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, rgb(79 139 255 / 0.22), transparent 70%), var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.pd-main img { width: 100%; height: 100%; object-fit: contain; }
.pd-main img.ph { width: 50%; opacity: 0.5; }
.pd-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.pd-thumbs button { width: 72px; height: 72px; padding: 0; border: 0; border-radius: 14px; overflow: hidden; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); opacity: 0.6; }
.pd-thumbs button.on { opacity: 1; box-shadow: 0 0 0 2px var(--sky); }
.pd-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pd-info .cat { color: var(--sky); font-weight: 600; letter-spacing: 0.08em; }
.pd-name { font-size: clamp(30px, 4vw, 44px); margin: 6px 0 8px; overflow-wrap: anywhere; }
.pd-price { font: 800 38px var(--display); margin: 16px 0 10px; }
.pd-desc { white-space: pre-line; color: rgb(243 241 255 / 0.85); }

/* ข่าว */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.post-card { display: flex; flex-direction: column; overflow: hidden; transition: transform 0.3s; }
.post-card:hover { transform: translateY(-4px); }
.post-card.big { grid-column: span 2; }
.post-img { aspect-ratio: 16 / 8; overflow: hidden; background: var(--surface-2); }
.post-img img { width: 100%; height: 100%; object-fit: cover; }
.post-body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 20px; }
.post-body h3 { font-size: 20px; overflow-wrap: anywhere; }
.post-card.big h3 { font-size: 26px; }
.excerpt { margin: 0; color: var(--muted); font-size: 15px; white-space: pre-line; }
.article { padding: 40px 0 20px; max-width: 820px; }
.article-title { font-size: clamp(30px, 5vw, 48px); margin: 14px 0 20px; overflow-wrap: anywhere; }
.article-img { width: 100%; border-radius: var(--radius); margin-bottom: 22px; }
.article-body { white-space: pre-line; font-size: 18px; line-height: 1.85; margin-bottom: 24px; }
.mini-posts { display: grid; gap: 8px; }
.mini-posts a { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 12px; background: rgb(255 255 255 / 0.03); }
.mini-posts a:hover { background: rgb(255 255 255 / 0.07); }

/* ตารางไลฟ์ */
.day-group + .day-group { margin-top: 18px; }
.day-head { display: flex; align-items: baseline; gap: 10px; font-size: 18px; margin: 0 0 8px; }
.day-head small { color: var(--muted); font: 500 14px var(--body); }
.stream-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.stream { --c1: var(--azure); display: grid; grid-template-columns: 64px auto 1fr auto; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 16px; background: rgb(255 255 255 / 0.03); box-shadow: inset 3px 0 0 var(--c1); }
.stream.live { background: rgb(248 113 113 / 0.1); box-shadow: inset 3px 0 0 var(--bad), 0 0 0 1px rgb(248 113 113 / 0.3); }
.stream-time { display: flex; align-items: baseline; gap: 2px; }
.stream-time b { font: 700 20px var(--display); }
.stream-time small { color: var(--faint); }
.stream-av img, .stream-av .initial { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; object-position: 50% 15%; font-size: 18px; }
.stream-main { min-width: 0; }
.stream-title { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.stream-main .small { margin: 0; }
.stream-act { display: flex; gap: 6px; align-items: center; }
.live-dot, .soon-dot { display: inline-block; margin-right: 8px; padding: 1px 8px; border-radius: 999px; font-size: 11px; font-weight: 800; vertical-align: 2px; }
.live-dot { background: var(--bad); color: #fff; animation: pulse 1.4s infinite; }
.soon-dot { background: var(--warn); color: #1a1300; }
@keyframes pulse { 50% { opacity: 0.55; } }
.live-now { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 12px 16px; margin-bottom: 16px; color: #fecaca; box-shadow: inset 0 0 0 1px rgb(248 113 113 / 0.4); }

/* หน้าโปรไฟล์ */
.profile-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; align-items: start; }
.profile-col { display: grid; gap: 20px; }
.letters { display: grid; gap: 12px; margin-top: 18px; }
.letter { display: flex; gap: 12px; padding: 12px; border-radius: 16px; background: rgb(255 255 255 / 0.03); }
.letter-by { margin: 0; }
.letter-body { margin: 4px 0 0; white-space: pre-line; overflow-wrap: anywhere; }
.form-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.login-cta { display: grid; gap: 12px; padding: 18px; text-align: center; justify-items: center; }
.login-cta p { margin: 0; color: var(--muted); }
.art-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.art-card { display: grid; gap: 4px; padding: 14px; border-radius: 16px; background: rgb(255 255 255 / 0.04); box-shadow: inset 0 0 0 1px var(--line); transition: transform 0.2s; overflow-wrap: anywhere; }
.art-card:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px var(--sky); }
.art-ic { font-size: 22px; }

/* ชุมชน */
.community-grid, .donate-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 24px; align-items: start; }
.col { display: grid; gap: 18px; min-width: 0; }
.col > .h3 { margin: 10px 0 -4px; }
.poll { padding: 20px; }
.poll h3 { font-size: 20px; margin: 10px 0 14px; }
.poll-opts { display: grid; gap: 8px; }
.poll-opt { min-height: 46px; padding: 10px 14px; border: 0; border-radius: 14px; text-align: left; background: rgb(255 255 255 / 0.05); box-shadow: inset 0 0 0 1px var(--line-strong); font-weight: 500; transition: background 0.2s; }
.poll-opt:hover { background: rgb(125 211 252 / 0.12); box-shadow: inset 0 0 0 1px var(--sky); }
.poll-bar { position: relative; display: flex; justify-content: space-between; padding: 10px 14px; border-radius: 14px; background: rgb(255 255 255 / 0.04); overflow: hidden; }
.poll-bar .fill { position: absolute; inset: 0 auto 0 0; background: var(--grad); opacity: 0.3; transition: width 0.6s; }
.poll-bar.mine { box-shadow: inset 0 0 0 1px var(--sky); }
.poll-bar .lbl, .poll-bar .pct { position: relative; font-weight: 600; }
.leaders { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.leaders li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 14px; }
.leaders li.me { background: rgb(125 211 252 / 0.1); box-shadow: inset 0 0 0 1px rgb(125 211 252 / 0.4); }
.rank { width: 28px; text-align: center; font: 800 16px var(--display); color: var(--faint); }
.rank.r1 { color: #fde047; } .rank.r2 { color: #e5e7eb; } .rank.r3 { color: #fdba74; }
.lname { flex: 1; min-width: 0; display: grid; }
.lname b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lname small { color: var(--faint); font-size: 12px; }
.lpts { font: 700 17px var(--display); }
.howto { margin: 0; padding-left: 18px; display: grid; gap: 6px; color: var(--muted); }
.howto b { color: var(--ink); }
.donors { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 10px; }
.donors li { display: flex; gap: 10px; align-items: flex-start; }
.donors li > div { flex: 1; min-width: 0; }
.donors p { margin: 0; overflow-wrap: anywhere; }
.d-amt { color: var(--pink); font-weight: 700; }
.checkin { display: grid; gap: 10px; padding: 20px; }
.ck-top { display: flex; align-items: center; gap: 12px; }
.ck-top p { margin: 2px 0 0; }
.lv-bar, .goal-bar { height: 10px; border-radius: 999px; background: rgb(255 255 255 / 0.08); overflow: hidden; }
.lv-bar span, .goal-bar span { display: block; height: 100%; border-radius: inherit; background: var(--grad); transition: width 0.6s; }
.checkin p { margin: 0; }
.cta-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cta-card { display: flex; flex-direction: column; gap: 10px; padding: 24px; transition: transform 0.3s; }
a.cta-card:hover { transform: translateY(-4px); }
.cta-card h3 { font-size: 22px; }
.cta-card p { margin: 0; }
.cta-card .more { margin-top: auto; }
.cta-ic { font-size: 32px; }
.donate-cta { background: linear-gradient(160deg, rgb(244 114 182 / 0.2), rgb(139 92 246 / 0.16)); }
.goal { display: grid; gap: 6px; }
.goal-top { display: flex; justify-content: space-between; font-weight: 600; }
.goal p { margin: 0; }

/* สนับสนุน */
.bank-card { position: relative; overflow: hidden; display: grid; gap: 8px; padding: 26px; border-radius: 24px; background: linear-gradient(135deg, #1e1b4b, #4c1d95 55%, #be185d); box-shadow: 0 30px 60px -24px rgb(190 24 93 / 0.7), inset 0 1px 0 rgb(255 255 255 / 0.2); }
.bank-card .btn { justify-self: start; position: relative; z-index: 1; }
.bank-name { margin: 0; font-weight: 600; color: rgb(255 255 255 / 0.85); position: relative; z-index: 1; }
.bank-no { margin: 4px 0; font: 800 clamp(28px, 4vw, 38px) var(--display); letter-spacing: 0.06em; user-select: all; position: relative; z-index: 1; }
.bank-holder { margin: 0; color: rgb(255 255 255 / 0.8); position: relative; z-index: 1; }
.bank-emblem { position: absolute; right: -30px; bottom: -40px; width: 200px; opacity: 0.25; }
.steps-list { margin: 0; padding-left: 20px; display: grid; gap: 8px; color: var(--muted); }
.amount-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.amount-chips .chip { cursor: pointer; border: 0; color: var(--ink); }
.amount-chips .chip:hover { background: rgb(244 114 182 / 0.2); }
.check { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); font-size: 14px; }
.check input { margin-top: 3px; accent-color: var(--violet); }
.done-box { margin-top: 14px; padding: 14px 16px; border-radius: 16px; background: rgb(74 222 128 / 0.1); box-shadow: inset 0 0 0 1px rgb(74 222 128 / 0.4); color: #dcfce7; }
.discord-card { display: flex; align-items: center; gap: 14px; padding: 22px; border-radius: 22px; background: linear-gradient(135deg, #5865f2, #7c3aed); color: #fff; box-shadow: 0 24px 50px -20px rgb(88 101 242 / 0.9); transition: transform 0.2s; }
.discord-card:hover { transform: translateY(-3px); }
.discord-card svg:first-child { width: 42px; height: 42px; flex-shrink: 0; }
.discord-card div { flex: 1; }
.discord-card p { margin: 2px 0 0; opacity: 0.9; font-size: 14px; }

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq-item { padding: 0; }
.faq-item summary { cursor: pointer; padding: 18px 20px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq-item summary::after { content: "+"; color: var(--sky); font-size: 20px; line-height: 1; }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { margin: 0; padding: 0 20px 18px; color: var(--muted); white-space: pre-line; }
.stat-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 24px; margin-top: 28px; text-align: center; }
.stat-band b { display: block; font: 800 34px var(--display); }
.stat-band span { color: var(--muted); font-size: 14px; }

/* บัญชี */
.pw { position: relative; display: block; }
.pw .input { padding-right: 46px; }
.pw-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border: 0; border-radius: 10px; background: none; color: var(--muted); display: grid; place-items: center; }
.meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 8px; }
.meter i { height: 5px; border-radius: 4px; background: rgb(255 255 255 / 0.1); }
.meter i.on.s1 { background: var(--bad); } .meter i.on.s2 { background: var(--warn); } .meter i.on.s3 { background: #a3e635; } .meter i.on.s4 { background: var(--ok); }
.hint { display: block; margin-top: 4px; color: var(--faint); font-size: 12px; }
.hint.bad { color: var(--bad); }
.notifs { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; max-height: 420px; overflow-y: auto; }
.notifs a { display: grid; gap: 2px; padding: 10px 12px; border-radius: 12px; background: rgb(255 255 255 / 0.03); }
.notifs li.unread a { background: rgb(125 211 252 / 0.08); box-shadow: inset 3px 0 0 var(--sky); }
.notifs span { color: var(--muted); font-size: 14px; }
.order-card { padding: 14px; border-radius: 16px; background: rgb(255 255 255 / 0.03); box-shadow: inset 0 0 0 1px var(--line); margin-top: 12px; }
.order-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.code-sm { font: 700 18px var(--display); letter-spacing: 0.06em; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin: 12px 0; padding: 0; }
.steps li { padding-top: 10px; border-top: 4px solid rgb(255 255 255 / 0.1); font-size: 12px; color: var(--faint); text-align: center; }
.steps li.done { border-color: var(--sky); color: var(--ink); }
.order-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 14px; }
.order-items li { display: flex; justify-content: space-between; gap: 10px; }
.order-total { display: flex; justify-content: space-between; margin: 8px 0 2px; }
.mini-talents, .mini-products { display: grid; gap: 8px; }
.mini-talents a, .mini-products a { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 14px; background: rgb(255 255 255 / 0.03); }
.mini-talents a:hover, .mini-products a:hover { background: rgb(255 255 255 / 0.07); }
.mini-talents img, .mini-talents .initial { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; object-position: 50% 15%; font-size: 18px; }
.mini-products img { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; }
.mini-products small { display: block; color: var(--muted); }
.plog { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.plog li { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 8px 10px; border-radius: 12px; background: rgb(255 255 255 / 0.03); }
.plog b { color: var(--ok); }
.plog small { grid-column: 1 / -1; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.sw input { position: absolute; opacity: 0; }
.sw i { display: block; width: 32px; height: 32px; border-radius: 50%; background: var(--fc); cursor: pointer; box-shadow: 0 0 0 2px rgb(255 255 255 / 0.1); }
.sw input:checked + i { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--ink); }
.sw input:focus-visible + i { outline: 2px solid var(--sky); outline-offset: 4px; }
.sep { border: 0; border-top: 1px solid var(--line); margin: 18px 0; }
details > summary { cursor: pointer; }

/* ธีมเทศกาล — สีตาม Portal (html[data-season]) */
html[data-season="halloween"] { --bg: #0d0612; --surface: #1c0c20; --surface-2: #26112a; --sky: #ffb84d; --azure: #ff7319; --violet: #9d4edd; --orchid: #d682ff; --lavender: #f2c9a0; --a1: #ffb84d; --a2: #9d4edd; }
html[data-season="christmas"] { --bg: #04100e; --surface: #0a1e1a; --surface-2: #0e2822; --sky: #9af5cf; --azure: #2fbf71; --violet: #e5484d; --orchid: #ff9aa2; --lavender: #c6f6dd; --a1: #9af5cf; --a2: #e5484d; }
html[data-season="loykrathong"] { --bg: #04081c; --surface: #0a1230; --surface-2: #0f1a40; --sky: #ffd67a; --azure: #f5a623; --violet: #5b6cff; --orchid: #9fb4ff; --lavender: #ffe7b0; --a1: #ffd67a; --a2: #5b6cff; }
html[data-season="newyear"] { --bg: #080614; --surface: #140f28; --surface-2: #1c1636; --sky: #ffe08a; --azure: #f6c552; --violet: #c084fc; --orchid: #ff9ad5; --lavender: #fff0c4; --a1: #ffe08a; --a2: #c084fc; }
html[data-season="chinesenewyear"] { --bg: #160406; --surface: #280a0c; --surface-2: #360e10; --sky: #ffcf6b; --azure: #ff6b4a; --violet: #e5484d; --orchid: #ffb199; --lavender: #ffe2b8; --a1: #ffcf6b; --a2: #e5484d; }
html[data-season="valentine"] { --bg: #140612; --surface: #260c22; --surface-2: #32112e; --sky: #ffb3d1; --azure: #ff5c9a; --violet: #c084fc; --orchid: #ff8fc8; --lavender: #ffd6e8; --a1: #ffb3d1; --a2: #ff5c9a; }
html[data-season="songkran"] { --bg: #02101a; --surface: #061e2e; --surface-2: #09283c; --sky: #8ff3ff; --azure: #22c3e6; --violet: #4f8bff; --orchid: #7dd3fc; --lavender: #c7f6ff; --a1: #8ff3ff; --a2: #4f8bff; }
html[data-season] { --grad: linear-gradient(120deg, var(--sky), var(--azure) 35%, var(--violet) 70%, var(--orchid)); --grad-text: linear-gradient(110deg, #fff 0%, var(--sky) 35%, var(--lavender) 70%, var(--orchid) 100%); }
html[data-season] .sky .n1 { background: radial-gradient(circle, color-mix(in srgb, var(--azure) 45%, transparent), transparent 65%); }
html[data-season] .sky .n2 { background: radial-gradient(circle, color-mix(in srgb, var(--violet) 45%, transparent), transparent 65%); }
html[data-season] .topbar.scrolled { background: color-mix(in srgb, var(--bg) 80%, transparent); }

@media (max-width: 1100px) {
  .cta-grid { grid-template-columns: 1fr; }
  .community-grid, .donate-grid, .profile-grid, .pd-grid { grid-template-columns: 1fr; }
  .post-card.big { grid-column: auto; }
  .stat-band { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .acc-name { display: none; }
  .acc-btn { padding: 4px; }
  .login-btn { padding: 0 12px; }
  .stream { grid-template-columns: 52px auto 1fr; }
  .stream-act { grid-column: 1 / -1; justify-content: flex-end; }
  .bank-card { padding: 20px; }
  .steps li { font-size: 10px; }
  .fab { right: 12px; bottom: 12px; }
  .fab-discord { width: 48px; height: 48px; }
  .pd-price { font-size: 30px; }
  .topbar-act { gap: 6px; }
  .topbar-act .icon-btn { width: 38px; height: 38px; }
}

/* ───────── จอเล็ก ───────── */
@media (max-width: 960px) {
  .hero-in { grid-template-columns: 1fr; min-height: 0; text-align: center; }
  .hero h1 img { margin-inline: auto; }
  .hero .about { margin-inline: auto; }
  .hero-cta, .hero-stats { justify-content: center; }
  .orbit { width: min(400px, 88%); order: -1; }
  .event { grid-template-columns: 96px 1fr; }
  .event .map { grid-column: 1 / -1; }
  .next-event { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .values { grid-template-columns: 1fr; }
  .footer-in { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
}
@media (max-width: 1240px) {
  .menu-btn { display: grid; }
  .nav { position: fixed; top: 72px; left: 16px; right: 16px; flex-direction: column; gap: 2px; padding: 10px; border-radius: 20px; background: rgb(16 13 43 / 0.97); box-shadow: inset 0 0 0 1px var(--line-strong), 0 30px 60px -20px #000; opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity 0.2s, transform 0.2s; max-height: calc(100dvh - 100px); overflow-y: auto; }
  .preview-bar:not([hidden]) ~ .topbar .nav { top: 110px; }
  .nav.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav a { padding: 12px 16px; }
  .topbar-act { margin-left: auto; }
}
@media (max-width: 820px) {
  .profile-in { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .profile-bio { margin-inline: auto; }
  .follow { justify-content: center; }
}
@media (max-width: 560px) {
  .section { padding: 48px 0; }
  .logo-word { display: none; }
  .talent-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .talent-info { padding: 12px 14px 14px; }
  .talent-info h3 { font-size: 17px; }
  .talent-info .icons .pf { --s: 26px !important; }
  .shop-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .product-info { padding: 12px; }
  .product-info h3 { font-size: 15px; }
  .price { font-size: 18px; }
  .add-btn { width: 36px; height: 36px; }
  .event { grid-template-columns: 1fr; padding: 16px; }
  .date-chip { flex-direction: row; gap: 10px; justify-content: flex-start; padding: 10px 16px; }
  .date-chip .d { font-size: 28px; }
  .next-event .event-body { padding: 20px; }
  .countdown div { min-width: 0; flex: 1; }
  .row2 { grid-template-columns: 1fr; }
  .pager a { flex: 1; min-width: 0; max-width: none; padding-right: 12px; }
  .pager a:last-child { padding: 10px 10px 10px 12px; text-align: right; }
  .pager img, .pager .initial { width: 36px; height: 36px; }
  .hero-stats { gap: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ───────── ชุดที่ 3: กรอบรูป / Badges / GALAXY PROJECT / ร้านของทาเลนต์ ───────── */
.fr { position: relative; display: inline-grid; place-items: center; flex-shrink: 0; width: var(--s); height: var(--s); }
.fr > .fan-dot { position: relative; z-index: 1; }
.fr::before { content: ""; position: absolute; inset: calc(var(--s) * -0.11); border-radius: 50%; z-index: 0; }
.fr::after { position: absolute; z-index: 2; right: calc(var(--s) * -0.16); top: calc(var(--s) * -0.18); font-size: calc(var(--s) * 0.38); line-height: 1; filter: drop-shadow(0 2px 4px rgb(0 0 0 / 0.5)); }
/* รูปจริงของสมาชิกค่าย + กรอบจากร้านของแต่งหลังบ้าน (ไฟล์ SVG เดียวกับหลังบ้าน: ผืน 200 รูปรัศมี 62 → ขยาย 200/124) */
.fan-dot.has-img { overflow: hidden; background: #1b1440; }
.fan-dot.has-img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; display: block; }
.fr-shop::before { content: none; }
.fr-shop > .fr-deco { position: absolute; z-index: 2; inset: -30.65%; width: 161.3%; height: 161.3%; max-width: none; pointer-events: none; }
.portal-look { display: flex; align-items: center; gap: 16px; padding: 14px 16px; margin-bottom: 14px; border-radius: 16px; background: rgb(255 255 255 / 0.04); box-shadow: inset 0 0 0 1px var(--line); }
.portal-look > .fr, .portal-look > .fan-dot { margin: 12px; }
.embed-wrap { border-radius: 24px; padding: 20px; background: rgb(255 255 255 / 0.03); box-shadow: inset 0 0 0 1px var(--line); }
.embed-head { margin-bottom: 14px; }
.profile-embed { display: block; width: 100%; max-width: 760px; height: 640px; border: 0; background: transparent; color-scheme: dark; }
/* จ่ายเงิน: QR พร้อมเพย์ + บัญชี */
.pay-box { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 22px; padding: 16px; border-radius: 18px; background: linear-gradient(140deg, rgb(255 255 255 / 0.06), rgb(255 255 255 / 0.02)); box-shadow: inset 0 0 0 1px var(--line); }
.pay-qr { display: grid; justify-items: center; gap: 4px; text-align: center; }
.pay-qr img { width: 190px; height: 190px; border-radius: 14px; background: #fff; padding: 8px; box-shadow: 0 10px 30px -10px rgb(0 0 0 / 0.6); }
.pay-qr p { margin: 0; }
.pay-pp { font-size: 14px; }
.pay-bank { flex: 1 1 180px; min-width: 0; }
.bank-no.sm { font-size: 20px; letter-spacing: 0.04em; margin: 2px 0; }
.pay-details { border-radius: 14px; padding: 10px 12px; background: rgb(255 255 255 / 0.03); box-shadow: inset 0 0 0 1px var(--line); }
.pay-details > summary { cursor: pointer; font-weight: 600; }
.pay-details[open] > summary { margin-bottom: 10px; }
.req { color: #fb7185; }
.fr-starlight::before { background: conic-gradient(#fff, #7dd3fc, #fff, #c9b8ff, #fff); opacity: 0.9; }
.fr-starlight::after { content: "✦"; color: #fff; }
.fr-moon::before { background: linear-gradient(140deg, #e0f2fe, #64748b 60%, #e2e8f0); }
.fr-moon::after { content: "🌙"; }
.fr-sakura::before { background: conic-gradient(#fbcfe8, #f472b6, #fff1f7, #f9a8d4, #fbcfe8); }
.fr-sakura::after { content: "🌸"; }
.fr-nebula::before { background: conic-gradient(#4f8bff, #8b5cf6, #c084fc, #22d3ee, #4f8bff); animation: spin 6s linear infinite; }
.fr-pumpkin::before { background: repeating-conic-gradient(#f97316 0 18deg, #1c0c20 18deg 24deg); }
.fr-pumpkin::after { content: "🎃"; }
.fr-aurora::before { background: conic-gradient(#34d399, #22d3ee, #818cf8, #e879f9, #fb7185, #34d399); animation: spin 3s linear infinite; box-shadow: 0 0 calc(var(--s) * 0.25) rgb(129 140 248 / 0.7); }
.fr-heart::before { background: conic-gradient(#fb7185, #f472b6, #fda4af, #fb7185); }
.fr-heart::after { content: "💖"; }
.fr-gold::before { background: conic-gradient(#fde68a, #b45309, #fef3c7, #d97706, #fde68a); box-shadow: 0 0 calc(var(--s) * 0.2) rgb(251 191 36 / 0.6); }
.fr-gold::after { content: "👑"; top: calc(var(--s) * -0.3); right: calc(var(--s) * 0.3); }
.fr-celestial::before { background: conic-gradient(#fde68a, #c084fc, #7dd3fc, #fde68a, #f0abfc, #fde68a); animation: spin 5s linear infinite; box-shadow: 0 0 calc(var(--s) * 0.35) rgb(192 132 252 / 0.8), 0 0 calc(var(--s) * 0.15) rgb(253 230 138 / 0.8); }
.fr-celestial::after { content: "✨"; }
.fr-galaxy::before { background: conic-gradient(#67e8f9, #818cf8, #c084fc, #f472b6, #818cf8, #67e8f9); animation: spin 4s linear infinite; box-shadow: 0 0 calc(var(--s) * 0.3) rgb(129 140 248 / 0.85), 0 0 calc(var(--s) * 0.12) rgb(244 114 182 / 0.7); }
.fr-galaxy::after { content: ""; width: calc(var(--s) * 0.5); height: calc(var(--s) * 0.5); background: url("brand/galaxy-project.svg") center / contain no-repeat; top: calc(var(--s) * -0.22); right: calc(var(--s) * -0.2); }
.fr-veteran::before { background: conic-gradient(#10b981, #fde68a, #047857, #fde68a, #10b981); }
.fr-veteran::after { content: "🎖️"; }
.fr-artist::before { background: repeating-conic-gradient(#f472b6 0 30deg, #7dd3fc 30deg 60deg, #fde047 60deg 90deg, #a78bfa 90deg 120deg); }
.fr-artist::after { content: "🎨"; }

.bdg { --bc: #8b5cf6; position: relative; display: inline-grid; place-items: center; flex-shrink: 0; width: var(--bs); height: var(--bs); clip-path: polygon(50% 0, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%); background: linear-gradient(150deg, color-mix(in srgb, var(--bc) 100%, #fff 35%), var(--bc) 45%, color-mix(in srgb, var(--bc) 55%, #000)); }
.bdg i { display: grid; place-items: center; width: 74%; height: 74%; clip-path: inherit; background: radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--bc) 35%, #1b1440), #120e2e); font-style: normal; font-size: calc(var(--bs) * 0.42); line-height: 1; }
.bdg.r-common { --bc: #64748b; } .bdg.r-rare { --bc: #3b82f6; } .bdg.r-epic { --bc: #a855f7; } .bdg.r-legend { --bc: #f59e0b; }
.bdg[style*="--bc"] { }
.bdg.locked { filter: grayscale(1) brightness(0.55); opacity: 0.55; }
.rar { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: 0.04em; }
.rar.r-common { background: rgb(100 116 139 / 0.3); color: #cbd5e1; }
.rar.r-rare { background: rgb(59 130 246 / 0.25); color: #bfdbfe; }
.rar.r-epic { background: rgb(168 85 247 / 0.25); color: #e9d5ff; box-shadow: inset 0 0 0 1px rgb(168 85 247 / 0.6); }
.rar.r-legendary, .rar.r-legend { background: rgb(245 158 11 / 0.22); color: #fde68a; box-shadow: inset 0 0 0 1px rgb(245 158 11 / 0.6); }
.sc-chips { display: inline-flex; gap: 2px; margin-left: 6px; vertical-align: 1px; }
.sc { font-size: 14px; filter: drop-shadow(0 1px 2px rgb(0 0 0 / 0.5)); }
.px-name { background: linear-gradient(90deg, #fde047, #fb923c, #f43f5e, #fb923c, #fde047); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 3s linear infinite; }
@keyframes shine { to { background-position: -200% 0; } }
.px-tag { display: inline-block; padding: 1px 8px; border-radius: 999px; font: 800 11px var(--body); color: #1c0700; background: linear-gradient(90deg, #fde047, #fb923c); vertical-align: 2px; }
.lrow { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; }
.lrow:hover .lname b { text-decoration: underline; }
.leaders li { gap: 12px; }
.letter.px { box-shadow: inset 0 0 0 1px rgb(251 146 60 / 0.35); }

.badge-box { display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; }
.bb-left { padding: 22px; }
.bb-left .h3 small { font: 500 14px var(--body); }
.bb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 8px; }
.bb-item { display: grid; place-items: center; height: 56px; border: 0; border-radius: 14px; background: rgb(255 255 255 / 0.04); box-shadow: inset 0 0 0 1px var(--line); transition: background 0.2s; }
.bb-item:hover { background: rgb(255 255 255 / 0.08); }
.bb-item.on { box-shadow: inset 0 0 0 2px var(--sky); background: rgb(125 211 252 / 0.08); }
.bb-detail { display: grid; gap: 8px; align-content: start; justify-items: center; text-align: center; padding: 22px; background: radial-gradient(circle at 50% 18%, rgb(168 85 247 / 0.22), transparent 60%), rgb(255 255 255 / 0.02); border-left: 1px solid var(--line); }
.bb-hero { filter: drop-shadow(0 10px 30px rgb(168 85 247 / 0.5)); animation: float 5s ease-in-out infinite; }
.bb-name { font: 800 24px var(--display); margin: 4px 0 0; }
.bb-meta { margin: 0; color: var(--muted); font-size: 14px; }
.bb-detail .muted { margin: 0; }
.bb-prog { width: 100%; display: grid; gap: 6px; text-align: left; padding: 12px; border-radius: 14px; background: rgb(255 255 255 / 0.04); }
.bb-prog p { margin: 0; }
.bb-tiers { display: grid; grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); gap: 8px; width: 100%; }
.bt { display: grid; justify-items: center; gap: 2px; padding: 6px 2px; border-radius: 12px; font-size: 11px; opacity: 0.55; }
.bt.on { opacity: 1; background: rgb(255 255 255 / 0.04); }
.bt small { font-size: 10.5px; line-height: 1.2; }
.ok-text { color: var(--ok); margin: 0; }

.frames { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.frame-card { display: grid; justify-items: center; gap: 6px; padding: 22px 10px 14px; border-radius: 18px; background: rgb(255 255 255 / 0.03); box-shadow: inset 0 0 0 1px var(--line); text-align: center; }
.frame-card .fr, .frame-card > .fan-dot { margin-bottom: 8px; }
.frame-card.on { box-shadow: inset 0 0 0 2px var(--ok); background: rgb(74 222 128 / 0.06); }
.frame-card.locked > .fr, .frame-card.locked > .fan-dot { filter: grayscale(0.8); opacity: 0.6; }
.frame-card .small { min-height: 34px; }

.px-card { display: grid; gap: 8px; padding: 20px; border-radius: var(--radius); background: linear-gradient(135deg, rgb(251 146 60 / 0.18), rgb(220 38 38 / 0.14) 60%, rgb(139 92 246 / 0.14)); box-shadow: inset 0 0 0 1px rgb(251 146 60 / 0.35); }
.px-card.active { box-shadow: inset 0 0 0 1px rgb(253 224 71 / 0.6), 0 20px 50px -24px rgb(249 115 22 / 0.8); }
.px-card p { margin: 0; }
.px-card .btn { justify-self: start; }
.px-top { display: flex; align-items: center; gap: 12px; }
.px-top b { font: 800 18px var(--display); letter-spacing: 0.06em; }
.px-logo { font-size: 30px; filter: drop-shadow(0 0 12px rgb(249 115 22 / 0.8)); }
.px-note { display: block; margin-bottom: 16px; padding: 10px 14px; border-radius: 14px; background: linear-gradient(90deg, rgb(251 146 60 / 0.16), rgb(220 38 38 / 0.1)); box-shadow: inset 0 0 0 1px rgb(251 146 60 / 0.35); color: #fed7aa; font-size: 14px; font-weight: 600; }
.px-note.sm { margin: 8px 0 14px; font-size: 13px; }
.px-cta { background: linear-gradient(160deg, rgb(251 146 60 / 0.2), rgb(220 38 38 / 0.14)); }
.cta-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.nav-px { color: #fed7aa !important; }
.nav-px.active, .nav-px:hover { background: rgb(251 146 60 / 0.16) !important; }
.total.sub { margin: 6px 0; font-size: 15px; color: var(--muted); }
.total.px-disc { color: #fdba74; }

.px-hero { position: relative; overflow: hidden; padding: 64px 0 24px; background: radial-gradient(700px 420px at 75% 40%, rgb(249 115 22 / 0.3), transparent 70%), radial-gradient(600px 360px at 20% 80%, rgb(220 38 38 / 0.18), transparent 70%); }
.px-hero-in { display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 30px; }
.px-title { font: 900 clamp(48px, 8vw, 96px) / 0.95 var(--display); letter-spacing: 0.02em; background: linear-gradient(180deg, #fff7d6, #fbbf24 45%, #f97316 70%, #dc2626); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 10px 40px rgb(249 115 22 / 0.5)); margin: 6px 0 14px; }
.px-price { font: 800 44px var(--display); margin: 18px 0 4px; }
.px-price small { font: 500 18px var(--body); color: var(--muted); }
.px-bird { display: grid; place-items: center; }
.px-bird span { font-size: clamp(120px, 18vw, 220px); filter: drop-shadow(0 0 60px rgb(249 115 22 / 0.9)); animation: float 5s ease-in-out infinite; }
.px-perks { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.px-perk { display: flex; gap: 12px; align-items: center; padding: 18px; }
.px-perk p { margin: 0; font-weight: 600; }
.px-ic { display: grid; place-items: center; flex-shrink: 0; width: 46px; height: 46px; border-radius: 14px; background: linear-gradient(140deg, #fb923c, #dc2626); font-size: 22px; }
.px-plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.px-plan input { position: absolute; opacity: 0; }
.px-plan span { display: grid; gap: 2px; padding: 12px 6px; border-radius: 14px; text-align: center; background: rgb(255 255 255 / 0.04); box-shadow: inset 0 0 0 1px var(--line-strong); cursor: pointer; }
.px-plan small { color: var(--muted); }
.px-plan input:checked + span { background: rgb(251 146 60 / 0.16); box-shadow: inset 0 0 0 2px #fb923c; }
.px-plan input:focus-visible + span { outline: 2px solid var(--sky); outline-offset: 2px; }
.draw h3 { font-size: 22px; margin: 10px 0 4px; }
.countdown.sm div { min-width: 56px; padding: 6px; }
.countdown.sm b { font-size: 20px; }
.link-btn { border: 0; background: none; padding: 0; color: var(--sky); text-decoration: underline; font-size: 13px; }

.fan-hero { --c1: #8b5cf6; --c2: #f472b6; }
.fan-big { display: grid; place-items: center; width: 220px; height: 220px; }
.sc-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.sc-big { display: flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px; background: rgb(255 255 255 / 0.06); box-shadow: inset 0 0 0 1px var(--line); }
.sc-big span { display: grid; text-align: left; }
.sc-big small { color: var(--faint); font-size: 12px; }
.pub-badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 12px; }
.pb { display: grid; justify-items: center; gap: 4px; text-align: center; font-size: 13px; }

.stores { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 18px; }
.store { display: flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 999px; background: rgb(255 255 255 / 0.05); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; }
.store img, .store .initial { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; object-position: 50% 15%; font-size: 14px; }
.store small { padding: 0 6px; border-radius: 999px; background: rgb(255 255 255 / 0.1); font-size: 11px; }
.store.on, .store:hover { box-shadow: inset 0 0 0 2px var(--c1, var(--sky)); }
.shop-owner { padding-top: 40px; background: radial-gradient(600px 300px at 15% 60%, color-mix(in srgb, var(--c1) 35%, transparent), transparent 70%); }
.so-in { display: flex; align-items: center; gap: 22px; }
.so-av img, .so-av .initial { width: 110px; height: 110px; border-radius: 50%; object-fit: cover; object-position: 50% 15%; box-shadow: 0 0 0 4px var(--c1); font-size: 44px; }
.by-talent { color: var(--lavender); }
.by-talent:hover { text-decoration: underline; }
.pd-owner { display: inline-flex; align-items: center; gap: 10px; margin-top: 10px; padding: 4px 14px 4px 4px; border-radius: 999px; background: rgb(255 255 255 / 0.05); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; }
.pd-owner img, .pd-owner .initial { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; object-position: 50% 15%; font-size: 15px; }

@media (max-width: 1400px) and (min-width: 1241px) {
  .nav a { padding: 8px 9px; font-size: 15px; }
}
@media (max-width: 640px) {
  .reg-btn { display: none; }
}
@media (max-width: 1100px) {
  .badge-box { grid-template-columns: 1fr; }
  .bb-detail { border-left: 0; border-top: 1px solid var(--line); }
  .px-hero-in { grid-template-columns: 1fr; text-align: center; }
  .px-bird { order: -1; }
}
@media (max-width: 560px) {
  .px-plans { grid-template-columns: repeat(2, 1fr); }
  .so-in { flex-direction: column; text-align: center; }
  .frames { grid-template-columns: repeat(2, 1fr); }
  .fan-big { width: 170px; height: 170px; }
  .fan-big .fr, .fan-big .fan-dot { --s: 140px !important; }
}
/* ───────── GALAXY PROJECT (Premium — เปลี่ยนจาก PROJECT PHOENIX 26 ต.ค.) ───────── */
.px-name { background: linear-gradient(90deg, #67e8f9, #a5b4fc, #f0abfc, #f472b6, #a5b4fc, #67e8f9); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; }
.px-tag { color: #0b0a2a; background: linear-gradient(90deg, #67e8f9, #c4b5fd, #f9a8d4); }
.letter.px { box-shadow: inset 0 0 0 1px rgb(129 140 248 / 0.45); }
.px-card { background: linear-gradient(135deg, rgb(103 232 249 / 0.14), rgb(129 140 248 / 0.18) 50%, rgb(244 114 182 / 0.14)); box-shadow: inset 0 0 0 1px rgb(165 180 252 / 0.4); }
.px-card.active { box-shadow: inset 0 0 0 1px rgb(196 181 253 / 0.75), 0 20px 50px -24px rgb(129 140 248 / 0.9); }
.px-logo { font-size: 0; filter: drop-shadow(0 0 12px rgb(129 140 248 / 0.8)); }
.px-ic-img { width: 44px; height: 44px; display: block; }
.px-note { background: linear-gradient(90deg, rgb(129 140 248 / 0.16), rgb(244 114 182 / 0.1)); box-shadow: inset 0 0 0 1px rgb(165 180 252 / 0.4); color: #e0e7ff; }
.px-cta { background: linear-gradient(160deg, rgb(103 232 249 / 0.14), rgb(129 140 248 / 0.18) 55%, rgb(244 114 182 / 0.14)); }
.cta-gx { width: 46px; height: 46px; display: block; filter: drop-shadow(0 0 14px rgb(129 140 248 / 0.7)); }
.nav-px { display: inline-flex !important; align-items: center; gap: 6px; color: #e0e7ff !important; }
.nav-px.active, .nav-px:hover { background: rgb(129 140 248 / 0.18) !important; }
.nav-ic { width: 20px; height: 20px; }
.total.px-disc { color: #c4b5fd; }
.px-hero { background: radial-gradient(700px 420px at 75% 40%, rgb(129 140 248 / 0.32), transparent 70%), radial-gradient(600px 360px at 20% 80%, rgb(244 114 182 / 0.16), transparent 70%), radial-gradient(500px 300px at 90% 90%, rgb(103 232 249 / 0.14), transparent 70%); }
.px-title { background: linear-gradient(180deg, #ffffff, #c7d2fe 35%, #a78bfa 62%, #f472b6 92%); -webkit-background-clip: text; background-clip: text; filter: drop-shadow(0 10px 40px rgb(129 140 248 / 0.55)); }
.px-emblem { width: clamp(200px, 26vw, 320px); height: auto; filter: drop-shadow(0 0 50px rgb(129 140 248 / 0.75)); animation: float 6s ease-in-out infinite; }
.px-ic { background: linear-gradient(140deg, #818cf8, #c084fc 55%, #f472b6); }
.px-plan input:checked + span { background: rgb(129 140 248 / 0.18); box-shadow: inset 0 0 0 2px #a5b4fc; }
/* บัญชีสมาชิกค่ายบนเว็บ Official */
.rv-tag { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; font: 800 10.5px var(--body); letter-spacing: 0.03em; vertical-align: 2px; white-space: nowrap; }
.rv-tag.talent { color: #0b0a2a; background: linear-gradient(90deg, #7dd3fc, #c4b5fd); }
.rv-tag.staff { color: #fff; background: linear-gradient(90deg, #4f8bff, #8b5cf6); }
.portal-note { margin: 16px 0 0; padding: 12px 14px; border-radius: 14px; font-size: 14px; color: #dbeafe; background: rgb(79 139 255 / 0.12); box-shadow: inset 0 0 0 1px rgb(125 211 252 / 0.35); }
/* พรีวิวสินค้า 3D */
.view-tabs { display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 10px; border-radius: 999px; background: rgb(255 255 255 / 0.05); box-shadow: inset 0 0 0 1px var(--line); }
.view-tabs button { padding: 7px 14px; border: 0; border-radius: 999px; background: none; color: var(--muted); font-weight: 600; font-size: 14px; }
.view-tabs button.on { background: var(--grad); color: #fff; }
.pd-main.is3d { position: relative; cursor: grab; background: radial-gradient(circle at 50% 35%, rgb(129 140 248 / 0.28), transparent 65%), radial-gradient(circle at 50% 100%, rgb(244 114 182 / 0.12), transparent 60%), var(--surface-2); }
.pd-main.is3d:active { cursor: grabbing; }
.pd-main.is3d canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; touch-action: none; }
.v3d-load { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-weight: 600; }
.v3d-hint { position: absolute; left: 50%; bottom: 12px; z-index: 2; margin: 0; transform: translateX(-50%); padding: 4px 12px; border-radius: 999px; background: rgb(6 5 26 / 0.6); color: var(--muted); font-size: 12px; pointer-events: none; white-space: nowrap; }
.badge.b3d { margin-left: 6px; background: linear-gradient(90deg, #67e8f9, #a78bfa); color: #0b0a2a; }
.product-img .badge.b3d { position: absolute; top: auto; bottom: 12px; left: 12px; margin: 0; }
/* ราคารายปี GALAXY PROJECT */
.px-year { margin: 0 0 6px; font-size: 18px; color: var(--muted); }
.px-year b { color: var(--ink); }
.px-save, .px-plan em { display: inline-block; padding: 1px 8px; border-radius: 999px; font: 800 11px var(--body); font-style: normal; color: #0b0a2a; background: linear-gradient(90deg, #67e8f9, #c4b5fd); }
.px-plan em { margin-top: 4px; justify-self: center; }
.px-plan.best span { box-shadow: inset 0 0 0 1px rgb(196 181 253 / 0.6); }
.booth-line { margin: 0; display: inline-flex; align-self: flex-start; padding: 6px 14px; border-radius: 14px; font-weight: 700; color: #fde68a; background: rgb(251 191 36 / 0.12); box-shadow: inset 0 0 0 1px rgb(251 191 36 / 0.4); }
