/* RE:VERSE CHRONO · TR∀C — โทน "ย้อนเวลา": คืนม่วงลึก + นีออนม่วง/ชมพู/ฟ้า, หน้าปัดนาฬิกาหมุนทวนเข็ม */
:root {
  --bg: #06040f;
  --bg2: #0c0820;
  --surface: rgb(20 13 44 / 0.72);
  --surface-2: rgb(32 20 66 / 0.7);
  --line: rgb(185 160 255 / 0.16);
  --line-2: rgb(185 160 255 / 0.3);
  --ink: #f4efff;
  --muted: #b9add8;
  --faint: #7d71a3;
  --violet: #8b5cf6;
  --violet-2: #b98cff;
  --pink: #ff4fa3;
  --cyan: #5ef0ff;
  --gold: #ffd36b;
  --ok: #3fe0a0;
  --warn: #ffc857;
  --bad: #ff5d73;
  --grad: linear-gradient(115deg, var(--cyan), var(--violet) 45%, var(--pink));
  --radius: 22px;
  --display: "Orbitron", "Kanit", sans-serif;
  --thai-display: "Kanit", "IBM Plex Sans Thai", sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: var(--bg); color: var(--ink); font: 16px/1.65 "IBM Plex Sans Thai", system-ui, sans-serif; overflow-x: hidden; }
a { color: inherit; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: rgb(255 79 163 / 0.45); }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ───────── พื้นหลัง: หน้าปัดนาฬิกาหมุนทวนเข็ม ───────── */
.bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; background: radial-gradient(1200px 700px at 70% -10%, #1d0f45 0%, transparent 60%), radial-gradient(900px 600px at -10% 110%, #2a0b3a 0%, transparent 55%), var(--bg); }
.glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.5; }
.g1 { width: 520px; height: 520px; top: -160px; right: -120px; background: #5b2bd8; animation: drift 18s ease-in-out infinite alternate; }
.g2 { width: 420px; height: 420px; bottom: -160px; left: -120px; background: #b5179e; animation: drift 22s ease-in-out infinite alternate-reverse; }
.g3 { width: 300px; height: 300px; top: 40%; left: 55%; background: #0e7490; opacity: 0.3; animation: drift 26s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translate(-60px, 40px) scale(1.12); } }
.dial { position: absolute; width: min(1100px, 140vw); aspect-ratio: 1; top: 50%; left: 62%; transform: translate(-50%, -50%); opacity: 0.22; }
.dial circle { fill: none; stroke: #b98cff; stroke-width: 1; stroke-dasharray: 2 10; }
.dial-rot { transform-origin: 400px 400px; animation: rev 120s linear infinite; }
.ticks { transform-origin: 400px 400px; animation: rev 240s linear infinite; }
.ticks line { stroke: #d4c4ff; stroke-width: 2; }
.ticks text { fill: #d4c4ff; font: 700 26px var(--display); text-anchor: middle; dominant-baseline: middle; }
@keyframes rev { to { transform: rotate(-360deg); } }
.scan { position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgb(255 255 255 / 0.018) 0 1px, transparent 1px 3px); }

/* ───────── แถบบน ───────── */
.top { position: sticky; top: 0; z-index: 40; border-bottom: 1px solid transparent; transition: background 0.25s, border-color 0.25s; }
.top.scrolled { background: rgb(6 4 15 / 0.82); backdrop-filter: blur(14px); border-color: var(--line); }
.top-in { display: flex; align-items: center; gap: 18px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 38px; height: 38px; }
.brand-txt { display: flex; flex-direction: column; line-height: 1.05; }
.brand-txt b { font: 800 15px var(--display); letter-spacing: 0.08em; }
.brand-txt small { font: 600 10px var(--display); letter-spacing: 0.32em; color: var(--muted); }
.nav { display: flex; gap: 4px; margin-left: 12px; }
.nav a { padding: 8px 14px; border-radius: 999px; text-decoration: none; color: var(--muted); font-weight: 600; font-size: 14px; }
.nav a:hover, .nav a.on { color: var(--ink); background: rgb(255 255 255 / 0.06); }
.top-act { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.menu-btn { display: none; }

/* ───────── ปุ่ม / ฟอร์ม ───────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line-2); background: rgb(255 255 255 / 0.04); color: var(--ink); font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer; transition: transform 0.15s, background 0.15s, box-shadow 0.2s, border-color 0.15s; white-space: nowrap; }
.btn:hover { background: rgb(255 255 255 / 0.09); border-color: rgb(212 196 255 / 0.5); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary { border: 0; background: var(--grad); color: #0a0414; box-shadow: 0 10px 30px -10px rgb(255 79 163 / 0.65), inset 0 1px 0 rgb(255 255 255 / 0.4); }
.btn-primary:hover { background: var(--grad); box-shadow: 0 14px 36px -10px rgb(255 79 163 / 0.85), inset 0 1px 0 rgb(255 255 255 / 0.5); }
.btn-danger { border-color: rgb(255 93 115 / 0.5); color: #ffb3bf; }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 13px; }
.btn-xs { min-height: 30px; padding: 0 11px; font-size: 12px; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; display: inline-grid; place-items: center; border: 1px solid var(--line-2); background: rgb(255 255 255 / 0.04); cursor: pointer; }
.icon-btn.menu-btn { display: none; }
.input, .select, .textarea { width: 100%; min-height: 46px; padding: 11px 14px; border-radius: 14px; border: 1px solid var(--line-2); background: rgb(8 5 22 / 0.65); outline: none; transition: border-color 0.15s, box-shadow 0.15s; }
.textarea { min-height: 120px; resize: vertical; line-height: 1.6; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--violet-2); box-shadow: 0 0 0 3px rgb(139 92 246 / 0.25); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: 14px; font-weight: 600; color: var(--muted); }
.field small { color: var(--faint); font-size: 12px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.check input { margin-top: 4px; accent-color: var(--pink); width: 18px; height: 18px; }

/* ───────── การ์ด ───────── */
.card { position: relative; background: linear-gradient(160deg, var(--surface-2), var(--surface)); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; backdrop-filter: blur(16px); box-shadow: 0 30px 60px -40px rgb(0 0 0 / 0.8); }
.card h2, .card h3 { margin-top: 0; }
.card-glow::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: var(--grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0.7; pointer-events: none; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 13px; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; border: 1px solid var(--line-2); background: rgb(255 255 255 / 0.05); white-space: nowrap; }
.tag.ok { color: var(--ok); border-color: rgb(63 224 160 / 0.4); background: rgb(63 224 160 / 0.08); }
.tag.warn { color: var(--warn); border-color: rgb(255 200 87 / 0.4); background: rgb(255 200 87 / 0.08); }
.tag.bad { color: var(--bad); border-color: rgb(255 93 115 / 0.4); background: rgb(255 93 115 / 0.08); }
.tag.vio { color: var(--violet-2); border-color: rgb(185 140 255 / 0.45); background: rgb(139 92 246 / 0.12); }
.tag.pink { color: #ff9ccc; border-color: rgb(255 79 163 / 0.45); background: rgb(255 79 163 / 0.1); }
.tag.cyan { color: var(--cyan); border-color: rgb(94 240 255 / 0.4); background: rgb(94 240 255 / 0.08); }
.empty { padding: 34px 20px; text-align: center; border: 1px dashed var(--line-2); border-radius: 18px; color: var(--muted); }
.alert { padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line-2); background: rgb(255 255 255 / 0.04); font-size: 14px; }
.alert.info { border-color: rgb(94 240 255 / 0.35); background: rgb(94 240 255 / 0.06); }
.alert.warn { border-color: rgb(255 200 87 / 0.35); background: rgb(255 200 87 / 0.07); }

/* ───────── ตัวหนังสือ ───────── */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 12px; font: 700 12px var(--display); letter-spacing: 0.32em; text-transform: uppercase; color: var(--cyan); }
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--grad); }
.h1 { margin: 0; font: 900 clamp(40px, 7vw, 92px) / 0.95 var(--display); letter-spacing: 0.02em; }
.h2 { margin: 0 0 10px; font: 700 clamp(26px, 3.4vw, 40px) / 1.2 var(--thai-display); }
.h3 { margin: 0 0 8px; font: 700 20px / 1.3 var(--thai-display); }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(16px, 1.6vw, 19px); color: var(--muted); max-width: 640px; }
.trac { display: inline-flex; align-items: center; padding: 3px 12px; border-radius: 10px; font: 900 0.62em var(--display); letter-spacing: 0.14em; color: #0a0414; background: var(--grad); box-shadow: 0 8px 24px -8px rgb(255 79 163 / 0.8); vertical-align: middle; }
.trac .a { display: inline-block; width: 0.82em; height: 0.92em; margin: 0 0.06em; vertical-align: -0.08em; }
.mono { font-family: var(--display); letter-spacing: 0.08em; }

/* ───────── หน้าแรก ───────── */
.section { padding: 70px 0; }
.section-head { margin-bottom: 30px; }
.hero { padding: 54px 0 40px; }
.hero-in { display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: center; min-height: calc(100dvh - 160px); }
.hero h1 .l2 { display: block; margin-top: 6px; }
.hero .lead { margin: 22px 0 28px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.timecode { margin-top: 30px; display: inline-flex; gap: 14px; align-items: center; padding: 10px 16px; border-radius: 14px; border: 1px solid var(--line); background: rgb(8 5 22 / 0.6); font: 700 18px var(--display); letter-spacing: 0.12em; color: var(--cyan); }
.timecode .rec { width: 10px; height: 10px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 12px var(--pink); animation: blink 1s steps(2) infinite; }
.timecode small { font: 600 10px var(--display); letter-spacing: 0.3em; color: var(--faint); }
@keyframes blink { 50% { opacity: 0.2; } }
.clock { position: relative; width: min(460px, 100%); aspect-ratio: 1; margin-inline: auto; }
.clock svg { width: 100%; height: 100%; overflow: visible; }
.clock .ring1 { transform-origin: 200px 200px; animation: rev 40s linear infinite; }
.clock .ring2 { transform-origin: 200px 200px; animation: rev 70s linear infinite reverse; }
/* เข็มหมุนด้วย attribute rotate(deg 200 200) เท่านั้น — ห้ามตั้ง transform-origin ซ้ำ (จะหมุนสองชั้นจนเข็มหลุดออกนอกหน้าปัด) */
.clock .hands { filter: drop-shadow(0 0 6px rgb(255 79 163 / 0.45)); }
.clock-badge { position: absolute; left: 50%; bottom: 8%; transform: translateX(-50%); }
.clock-badge .trac { font-size: 22px; padding: 6px 16px; }
.eq-mini { position: absolute; left: 50%; top: 66%; transform: translateX(-50%); display: flex; gap: 3px; align-items: flex-end; height: 26px; }
.eq-mini i { width: 4px; height: 100%; border-radius: 2px; background: var(--grad); transform-origin: bottom; animation: eq 0.9s ease-in-out infinite alternate; }
@keyframes eq { 0% { transform: scaleY(0.15); } 50% { transform: scaleY(0.9); } 100% { transform: scaleY(0.4); } }

.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.svc { padding: 22px; border-radius: 20px; border: 1px solid var(--line); background: linear-gradient(160deg, rgb(32 20 66 / 0.55), rgb(14 9 32 / 0.55)); transition: transform 0.2s, border-color 0.2s; }
.svc:hover { transform: translateY(-3px); border-color: rgb(255 79 163 / 0.45); }
.svc .ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: rgb(139 92 246 / 0.18); color: var(--violet-2); margin-bottom: 14px; }
.svc .ic svg { width: 24px; height: 24px; }
.svc h3 { margin: 0 0 6px; font: 700 18px var(--thai-display); }
.svc p { margin: 0; color: var(--muted); font-size: 14px; }

.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: st; }
.step { position: relative; padding: 22px 20px 20px; border-radius: 20px; border: 1px solid var(--line); background: rgb(12 8 30 / 0.6); }
.step::before { counter-increment: st; content: "0" counter(st); display: block; font: 900 30px var(--display); margin-bottom: 10px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.step h3 { margin: 0 0 4px; font: 700 17px var(--thai-display); }
.step p { margin: 0; font-size: 14px; color: var(--muted); }

.pricing { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; align-items: stretch; }
.price-card { padding: 30px; }
.price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 14px 0 4px; }
.price b { font: 900 clamp(44px, 6vw, 64px) var(--display); letter-spacing: 0.01em; }
.price span { color: var(--muted); font-weight: 600; }
.ticks-list { list-style: none; padding: 0; margin: 20px 0 26px; display: grid; gap: 10px; }
.ticks-list li { display: flex; gap: 10px; align-items: flex-start; }
.ticks-list li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 3px; border-radius: 50%; background: var(--grad); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 100 20 10 10 0 000-20zm-1.4 14.2L6.2 11.8l1.4-1.4 3 3 6-6 1.4 1.4z'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 100 20 10 10 0 000-20zm-1.4 14.2L6.2 11.8l1.4-1.4 3 3 6-6 1.4 1.4z'/%3E%3C/svg%3E") center/contain no-repeat; }
.agency-card { display: flex; flex-direction: column; justify-content: center; }

.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.member { padding: 22px 18px; border-radius: 20px; border: 1px solid var(--line); background: rgb(14 9 32 / 0.6); text-align: center; }
.member .av { width: 96px; height: 96px; margin: 0 auto 12px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--grad); box-shadow: 0 0 0 3px rgb(6 4 15), 0 0 0 5px rgb(185 140 255 / 0.5), 0 0 30px -6px rgb(255 79 163 / 0.8); }
.member .av img { width: 100%; height: 100%; object-fit: cover; }
.member .av i { font: 900 38px var(--display); font-style: normal; color: #0a0414; }
.member b { display: block; font: 700 17px var(--thai-display); overflow-wrap: anywhere; }
.member small { color: var(--muted); }

.faq details { border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; background: rgb(12 8 30 / 0.55); }
.faq details + details { margin-top: 10px; }
.faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.faq summary::after { content: "+"; font: 700 20px var(--display); color: var(--pink); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 10px 0 0; color: var(--muted); }

/* ───────── หน้าในระบบ ───────── */
.page { padding: 36px 0 70px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.page-head h1 { margin: 0; font: 700 clamp(26px, 3.4vw, 36px) var(--thai-display); }
.auth { max-width: 460px; margin: 30px auto; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.tabs a, .tabs button { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--muted); font-weight: 600; font-size: 14px; text-decoration: none; cursor: pointer; }
.tabs .on { color: #0a0414; border-color: transparent; background: var(--grad); }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 22px; }
.stat { padding: 18px; border-radius: 18px; border: 1px solid var(--line); background: rgb(14 9 32 / 0.6); }
.stat b { display: block; font: 800 28px var(--display); }
.stat span { color: var(--muted); font-size: 13px; }
.list { display: flex; flex-direction: column; gap: 10px; }
.item { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line); background: rgb(14 9 32 / 0.55); text-decoration: none; transition: border-color 0.15s, background 0.15s; }
a.item:hover { border-color: rgb(255 79 163 / 0.45); background: rgb(30 18 60 / 0.6); }
.item .grow { flex: 1; min-width: 0; }
.item .t { font-weight: 700; overflow-wrap: anywhere; }
.code { font: 700 12px var(--display); letter-spacing: 0.1em; color: var(--cyan); }
.plan-card { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; margin-bottom: 22px; }
.credit-ring { width: 112px; height: 112px; border-radius: 50%; display: grid; place-items: center; text-align: center; background: conic-gradient(var(--pink), var(--violet), var(--cyan), var(--pink)); padding: 4px; }
.credit-ring > div { width: 100%; height: 100%; border-radius: 50%; background: var(--bg2); display: grid; place-content: center; }
.credit-ring b { font: 800 38px var(--thai-display); line-height: 1; }
.credit-ring span { font-size: 11px; color: var(--muted); }

.order-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 20px; align-items: start; }
.kv { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 8px 14px; margin: 0; font-size: 14px; }
.kv dt { color: var(--faint); }
.kv dd { margin: 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.progress { display: flex; gap: 6px; margin: 14px 0 4px; }
.progress i { flex: 1; height: 6px; border-radius: 3px; background: rgb(255 255 255 / 0.08); }
.progress i.on { background: var(--grad); }
.timeline { display: flex; flex-direction: column; gap: 12px; max-height: 560px; overflow-y: auto; padding-right: 4px; }
.ev { display: flex; gap: 10px; }
.ev .who { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font: 800 14px var(--display); background: rgb(255 255 255 / 0.08); }
.ev.studio .who { background: var(--grad); color: #0a0414; }
.ev .bubble { flex: 1; min-width: 0; padding: 10px 14px; border-radius: 4px 16px 16px 16px; background: rgb(255 255 255 / 0.05); border: 1px solid var(--line); }
.ev.mine { flex-direction: row-reverse; }
.ev.mine .bubble { border-radius: 16px 4px 16px 16px; background: rgb(139 92 246 / 0.16); border-color: rgb(185 140 255 / 0.35); }
.ev .meta { font-size: 12px; color: var(--faint); margin-bottom: 2px; }
.ev .body { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; }
.ev.sys { justify-content: center; }
.ev.sys .pill { padding: 4px 12px; border-radius: 999px; font-size: 12px; color: var(--muted); border: 1px solid var(--line); background: rgb(8 5 22 / 0.6); }
.files { display: flex; flex-direction: column; gap: 10px; }
.file { padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: rgb(8 5 22 / 0.55); }
.file .name { font-weight: 600; overflow-wrap: anywhere; font-size: 14px; }
.file audio { width: 100%; margin-top: 8px; height: 36px; }
.upbar { height: 6px; border-radius: 3px; background: rgb(255 255 255 / 0.08); overflow: hidden; margin-top: 8px; }
.upbar i { display: block; height: 100%; width: 0; background: var(--grad); transition: width 0.2s; }
.qr { width: 220px; height: 220px; padding: 10px; border-radius: 16px; background: #fff; margin: 0 auto; }
.qr svg { width: 100%; height: 100%; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--faint); font-weight: 600; font-size: 12px; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
.slip-thumb { width: 64px; height: 84px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); cursor: zoom-in; }

/* ───────── ท้ายเว็บ / toast / โหลด ───────── */
.foot { margin-top: auto; border-top: 1px solid var(--line); padding: 26px 0; color: var(--faint); font-size: 13px; }
.foot-in { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
.toasts { position: fixed; right: 16px; bottom: 16px; z-index: 100; display: flex; flex-direction: column; gap: 8px; max-width: calc(100% - 32px); }
.toast { padding: 12px 16px; border-radius: 14px; background: #1b1238; border: 1px solid var(--line-2); box-shadow: 0 20px 40px -20px #000; font-size: 14px; animation: tin 0.25s ease; }
.toast.err { border-color: rgb(255 93 115 / 0.6); }
.toast.ok { border-color: rgb(63 224 160 / 0.6); }
@keyframes tin { from { opacity: 0; transform: translateY(8px); } }
.loading { display: grid; place-items: center; min-height: 50vh; }
.loading i { width: 46px; height: 46px; border-radius: 50%; border: 3px solid rgb(255 255 255 / 0.1); border-top-color: var(--pink); animation: rev 0.8s linear infinite reverse; }
.modal { position: fixed; inset: 0; z-index: 90; background: rgb(3 2 8 / 0.8); display: grid; place-items: center; padding: 16px; }
.modal img { max-height: 90vh; width: auto; border-radius: 12px; }
.reveal { animation: up 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
@keyframes up { from { opacity: 0; transform: translateY(16px); } }

/* ───────── จอเล็ก ───────── */
@media (max-width: 980px) {
  .hero-in, .pricing, .order-grid { grid-template-columns: 1fr; }
  .hero-in { min-height: 0; }
  .clock { width: min(340px, 90%); order: -1; }
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps, .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; margin: 0; padding: 10px 16px 16px; background: rgb(6 4 15 / 0.96); border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .icon-btn.menu-btn { display: inline-grid; }
  .top-act .hide-sm { display: none; }
  .grid2, .grid3 { grid-template-columns: 1fr; }
  .services, .steps { grid-template-columns: 1fr; }
  .plan-card { grid-template-columns: 1fr; }
  .kv { grid-template-columns: 1fr; gap: 2px; }
  .kv dt { margin-top: 8px; }
  .card { padding: 18px; }
  .section { padding: 48px 0; }
  .brand-txt small { display: none; }
  .clock-badge { bottom: 6%; }
  .clock-badge .trac { font-size: 15px; padding: 4px 11px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
