/* PRK StemWeb — ธีมโทนเดียวกับ moises.ai: ดำล้วน ตัวหนังสือขาวบางใหญ่ ปุ่มแคปซูลสีฟ้าอมเขียว แสงเรืองเขียวน้ำทะเล
   ฟอนต์: Anuphan + IBM Plex Sans Thai ฝังมากับเว็บ (SIL OFL 1.1 ใช้เชิงพาณิชย์ได้ฟรี) */
/* ---- ฟอนต์ (ฝังมากับเว็บ ใช้เชิงพาณิชย์ได้ฟรี สัญญาอนุญาต SIL OFL 1.1 ดูไฟล์ fonts/OFL-*.txt) ----
   หัวข้อ/ราคา/ปุ่ม: Anuphan (Cadson Demak) · เนื้อหา: IBM Plex Sans Thai (IBM) */
@font-face { font-family: "Anuphan"; font-style: normal; font-weight: 300; font-display: swap; src: url("fonts/anuphan-thai-300-normal.woff2") format("woff2"); unicode-range: U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: "Anuphan"; font-style: normal; font-weight: 300; font-display: swap; src: url("fonts/anuphan-latin-300-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Anuphan"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/anuphan-thai-400-normal.woff2") format("woff2"); unicode-range: U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: "Anuphan"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/anuphan-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Anuphan"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/anuphan-thai-500-normal.woff2") format("woff2"); unicode-range: U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: "Anuphan"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/anuphan-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Anuphan"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/anuphan-thai-600-normal.woff2") format("woff2"); unicode-range: U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: "Anuphan"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/anuphan-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans Thai"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/ibm-plex-sans-thai-thai-400-normal.woff2") format("woff2"); unicode-range: U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: "IBM Plex Sans Thai"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/ibm-plex-sans-thai-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans Thai"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/ibm-plex-sans-thai-thai-500-normal.woff2") format("woff2"); unicode-range: U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: "IBM Plex Sans Thai"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/ibm-plex-sans-thai-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans Thai"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/ibm-plex-sans-thai-thai-600-normal.woff2") format("woff2"); unicode-range: U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: "IBM Plex Sans Thai"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/ibm-plex-sans-thai-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #000000;
  --bg2: #070707;
  --panel: #0e0e0f;
  --panel2: #151516;
  --line: rgba(255, 255, 255, .09);
  --line2: rgba(255, 255, 255, .18);
  --text: #ffffff;
  --soft: rgba(255, 255, 255, .78);
  --muted: rgba(255, 255, 255, .55);
  --cyan: #00dae8;          /* สีหลัก (ฟ้าอมเขียว) */
  --cyan2: #5ff0f8;         /* สว่าง */
  --cyan3: #00a9b5;         /* เข้ม */
  --cyan-bg: rgba(0, 218, 232, .08);
  --teal-glow: rgba(0, 120, 135, .35);
  --green: #4ade80;
  --danger: #ff6b6b;
  --warn: #ffc857;
  --r: 22px;
  --font-head: "Anuphan", "IBM Plex Sans Thai", "Leelawadee UI", Tahoma, system-ui, sans-serif;
  --font-body: "IBM Plex Sans Thai", "Anuphan", "Leelawadee UI", Tahoma, system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px; line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--cyan); text-decoration: none; }
a:hover { color: var(--cyan2); }
h1, h2, h3, h4, .brand, .btn, .pack-price, .pack-name, .mode-n, .eyebrow, .badge, .pack-badge, .drop-title, .stats b, .amount, .seg span, .opt-label, .master-title, .stem-name, .faq summary, .top nav a { font-family: var(--font-head); }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5rem; }
h1 { font-size: 1.8rem; font-weight: 500; letter-spacing: -.02em; }
h2 { font-size: clamp(1.8rem, 4vw, 2.9rem); font-weight: 400; letter-spacing: -.025em; }
h3 { font-size: 1.1rem; font-weight: 600; }
.small { font-size: .88rem; }
.muted { color: var(--muted); }
.center { text-align: center; }
.violet { color: var(--cyan); }
.inline { display: inline; }
.ic { width: 1.15em; height: 1.15em; vertical-align: -.2em; flex: none; }

/* ---- แถบบน ---- */
.top {
  display: flex; align-items: center; gap: 1rem; justify-content: space-between; flex-wrap: wrap;
  padding: .9rem 2.4rem; position: sticky; top: 0; z-index: 20;
  background: rgba(12, 12, 12, .92); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--text); font-weight: 600; font-size: 1.1rem; }
.brand:hover { color: var(--text); }
.logo-mark { width: 32px; height: 32px; }
.top nav { display: flex; align-items: center; gap: 2.2rem; flex-wrap: wrap; }
.top nav a { color: var(--soft); font-size: .96rem; }
.top nav a:hover { color: #fff; }
.top nav.right { gap: 1.2rem; }
.link-violet { color: #fff !important; }
.pill-credit { border: 1px solid var(--line2); border-radius: 999px; padding: .28rem .85rem; color: #fff !important; }
.linkish { background: none; border: 0; color: var(--muted); cursor: pointer; font: inherit; padding: 0; }
.linkish:hover { color: #fff; }

/* ---- ปุ่มทรงแคปซูล: มีกรอบชัด กดได้ชัด ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem; cursor: pointer;
  font: inherit; font-weight: 500; color: #fff; background: transparent; border: 1px solid var(--line2);
  border-radius: 999px; padding: .68rem 1.4rem; transition: background .2s, border-color .2s, transform .05s, color .2s;
}
.btn:hover { border-color: rgba(255,255,255,.45); background: rgba(255,255,255,.06); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-main { background: var(--cyan); border-color: var(--cyan2); color: #001214 !important; }
.btn-main:hover { background: var(--cyan2); border-color: #b3fbff; color: #001214; }
.btn-white { background: #fff; border-color: #fff; color: #000 !important; }
.btn-white:hover { background: #e9e9e9; }
.btn-ghost { border-color: var(--line2); color: #fff !important; }
.btn-ghost:hover { border-color: var(--cyan); background: var(--cyan-bg); }
.btn-danger { background: #1a0909; border-color: var(--danger); color: #ffc9c9; }
.btn-danger:hover { background: #2a0e0e; }
.btn-sm { padding: .45rem 1.05rem; font-size: .93rem; }
.btn-big { padding: .9rem 1.8rem; font-size: 1.06rem; }
.btn-block { width: 100%; }

/* ---- ข้อความแจ้ง ---- */
.flashes { max-width: 820px; margin: 1rem auto 0; padding: 0 1rem; }
.flash { border-radius: 16px; padding: .8rem 1.1rem; margin: .6rem 0; border: 1px solid; }
.flash-ok { background: #031311; border-color: rgba(0,218,232,.35); color: #c9fbff; }
.flash-error { background: #160707; border-color: rgba(255,107,107,.45); color: #ffc9c9; }
.flash-warn { background: #161105; border-color: rgba(255,200,87,.4); color: #ffe4a8; }

/* ---- หน้าแรก: ส่วนหัว ---- */
.hero {
  text-align: center; padding: 4.5rem 1rem 3.5rem;
  background:
    radial-gradient(ellipse 55% 40% at 50% 0%, var(--teal-glow), transparent 70%),
    radial-gradient(ellipse 35% 35% at 0% 60%, rgba(0, 120, 135, .14), transparent 70%),
    radial-gradient(ellipse 35% 35% at 100% 60%, rgba(0, 120, 135, .14), transparent 70%);
}
.hero-sm { padding: 3rem 1rem 1.8rem; }
.hero h1 { font-size: clamp(2.3rem, 6vw, 4.2rem); font-weight: 400; max-width: 960px; margin: 1.1rem auto 1rem; letter-spacing: -.035em; line-height: 1.15; }
.grad { color: #fff; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .45rem; padding: .32rem 1rem; border-radius: 999px;
  border: 1px solid var(--line2); background: rgba(255,255,255,.04); color: var(--soft); font-size: .88rem;
}
.eyebrow .ic { color: var(--cyan); }
.small-eyebrow { font-size: .85rem; margin-bottom: 1rem; }
.lead { color: var(--muted); font-size: 1.15rem; max-width: 740px; margin: 0 auto 1.4rem; }
.trust { display: flex; flex-wrap: wrap; gap: .5rem 2rem; justify-content: center; color: var(--soft); font-size: .95rem; margin-bottom: 1.4rem; }
.trust .ic { color: var(--cyan); }
.pill-green { display: inline-flex; align-items: center; gap: .4rem; background: var(--cyan-bg); border: 1px solid rgba(0,218,232,.35); color: var(--cyan2); border-radius: 999px; padding: .28rem .9rem; font-size: .86rem; }
.under-upload { color: var(--muted); font-size: .95rem; margin-top: 1.4rem; }
.under-upload .ic { color: var(--cyan); }

/* ---- กล่องอัปโหลด ---- */
.upload-wrap { max-width: 700px; margin: 2rem auto 0; text-align: left; }
.uploader {
  background: rgba(14, 14, 15, .92); border: 1px solid var(--line); border-radius: 28px; padding: .7rem;
  box-shadow: 0 0 120px rgba(0, 150, 165, .18), 0 30px 80px rgba(0,0,0,.6);
}
.drop {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: .35rem; text-align: center; cursor: pointer;
  border: 1.5px dashed rgba(255,255,255,.2); border-radius: 22px; padding: 2.4rem 1rem 1.8rem; transition: border-color .2s, background .2s;
}
.drop input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.drop:hover, .drop.over { border-color: var(--cyan); background: var(--cyan-bg); }
.drop.has-file { border-style: solid; border-color: var(--cyan); background: var(--cyan-bg); padding: 1.3rem 1rem 1rem; }
.drop-tile { display: grid; place-items: center; width: 68px; height: 68px; border-radius: 999px; background: #fff; color: #000; margin-bottom: .5rem; }
.drop-tile .ic { width: 28px; height: 28px; }
.drop-title { font-weight: 600; font-size: 1.15rem; }
.drop-sub { color: var(--muted); font-size: .95rem; }
.drop-sub u { color: var(--cyan); text-decoration: none; margin-left: .25rem; }
.drop-chips { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; margin: .8rem 0 .45rem; }
.drop-meta { display: flex; align-items: center; gap: .35rem; color: rgba(255,255,255,.4); font-size: .8rem; }
.drop.has-file .drop-chips, .drop.has-file .drop-meta { display: none; }

.chip { display: inline-flex; align-items: center; gap: .3rem; padding: .22rem .7rem; border-radius: 999px; font-size: .8rem; background: rgba(255,255,255,.04); border: 1px solid var(--line); color: var(--soft); }
.chip .ic { color: var(--cyan); }
.c-pink, .c-blue, .c-orange, .c-violet, .c-amber, .c-green { color: var(--soft); }
.c-lime { color: var(--cyan2); border-color: rgba(0,218,232,.3); }

.opts { padding: 1.1rem .8rem .7rem; display: flex; flex-direction: column; gap: .95rem; }
.js .uploader.empty .opts { display: none; }
.opt-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; }
.file-info { font-weight: 600; word-break: break-all; }
.cost-info { color: var(--cyan2); font-weight: 600; }
.cost-info.short { color: #ff9b9b; }
.opt-label { font-weight: 600; display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap; }
.mode-pick { display: grid; grid-template-columns: repeat(4, 1fr); gap: .55rem; }
.mode-card { position: relative; display: flex; flex-direction: column; gap: .1rem; cursor: pointer; padding: .8rem .75rem; border: 1px solid var(--line2); border-radius: 16px; background: var(--panel); transition: border-color .2s, background .2s; }
.mode-card input { position: absolute; opacity: 0; pointer-events: none; }
.mode-card:hover { border-color: rgba(255,255,255,.4); }
.mode-card:has(input:checked) { border-color: var(--cyan); background: #04191b; box-shadow: 0 0 0 3px rgba(0,218,232,.15); }
.mode-n { font-weight: 700; }
.mode-card:has(input:checked) .mode-n { color: var(--cyan2); }
.mode-d { font-size: .76rem; color: var(--muted); line-height: 1.4; }
.badge { position: absolute; top: -.62rem; right: .6rem; background: var(--cyan); color: #001214; font-size: .66rem; font-weight: 700; border-radius: 999px; padding: .05rem .55rem; white-space: nowrap; }
.seg { display: inline-flex; border: 1px solid var(--line2); border-radius: 999px; overflow: hidden; align-self: flex-start; padding: 3px; gap: 3px; }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; padding: .38rem 1.15rem; font-weight: 600; color: var(--muted); border-radius: 999px; }
.seg label:hover span { color: #fff; }
.seg input:checked + span { background: #fff; color: #000; }
.master-box, .signup-box { border: 1px solid var(--line); background: var(--panel); border-radius: 18px; padding: 1rem; }
.master-title { font-weight: 600; display: flex; align-items: center; gap: .45rem; }
.master-title .ic { color: var(--cyan); }
.free-tag { background: var(--cyan-bg); border: 1px solid rgba(0,218,232,.35); color: var(--cyan2); border-radius: 999px; font-size: .74rem; padding: 0 .6rem; }
.master-box p { margin: .2rem 0 .6rem; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.two label, .adv label { display: flex; flex-direction: column; gap: .25rem; font-size: .88rem; color: var(--soft); }
.adv { margin-top: .6rem; }
.adv summary { cursor: pointer; color: var(--muted); font-size: .88rem; }
.adv label { margin-top: .5rem; }
label.check { display: flex; align-items: flex-start; gap: .55rem; font-size: .9rem; color: var(--soft); cursor: pointer; }
input, select {
  font: inherit; font-family: var(--font-body); color: #fff; background: #000; border: 1px solid var(--line2);
  border-radius: 12px; padding: .55rem .8rem; width: 100%;
}
input:focus, select:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(0,218,232,.15); }
input[type=checkbox] { width: 1.12rem; height: 1.12rem; accent-color: var(--cyan); margin-top: .22rem; flex: none; }

/* ---- ส่วนเนื้อหา ---- */
.sec { max-width: 1180px; margin: 0 auto; padding: 5.5rem 1.4rem; text-align: center; }
.sec-tight { padding: 2rem 1.4rem; text-align: left; }
.band { max-width: none; background: radial-gradient(ellipse 60% 70% at 50% 50%, rgba(0,110,125,.16), transparent 70%), var(--bg); }
.band > * { max-width: 1180px; margin-left: auto; margin-right: auto; }
.sec-lead { color: var(--muted); max-width: 680px; margin: 0 auto 2.6rem; font-size: 1.08rem; }
.sec-lead.left { margin-left: 0; }
.feat-grid, .grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; text-align: left; }
.feat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 1.6rem; transition: border-color .25s, transform .25s; }
.feat:hover { border-color: rgba(255,255,255,.22); transform: translateY(-2px); }
.feat h3 { margin: 1rem 0 .35rem; }
.feat p { color: var(--muted); margin: 0; font-size: .94rem; }
.tile { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; flex: none; background: rgba(255,255,255,.06); color: #fff; border: 1px solid var(--line); }
.tile .ic { width: 22px; height: 22px; }
.tile.big { width: 58px; height: 58px; }
.t-cyan { background: var(--cyan-bg); color: var(--cyan); border-color: rgba(0,218,232,.3); }
.modes-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; text-align: left; }
.mode-info { position: relative; display: block; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 1.5rem; color: #fff; transition: border-color .25s; }
.mode-info:hover { border-color: var(--cyan); color: #fff; }
.mode-info.hot { border-color: rgba(0,218,232,.45); background: linear-gradient(180deg, #03181a, var(--panel)); }
.mode-info.hot h3 { color: var(--cyan2); }
.mode-info p { color: var(--soft); margin: .3rem 0 .5rem; font-size: .94rem; }
.split { display: grid; grid-template-columns: 1.15fr 1fr; gap: 3rem; align-items: center; text-align: left; }
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { display: flex; gap: .55rem; align-items: center; margin: .55rem 0; color: var(--soft); }
.ticks .ic { color: var(--cyan); }
.meter-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 1.7rem; box-shadow: 0 0 100px rgba(0,150,165,.12); }
.meter-row { display: grid; grid-template-columns: 7.5rem 1fr 5.5rem; gap: .8rem; align-items: center; margin: 1.1rem 0; font-size: .92rem; }
.meter { height: 6px; border-radius: 999px; background: rgba(255,255,255,.1); position: relative; }
.meter i { display: block; height: 100%; background: rgba(255,255,255,.35); border-radius: 999px; position: relative; }
.meter.on i { background: var(--cyan); }
.meter i::after { content: ""; position: absolute; right: -7px; top: 50%; transform: translateY(-50%); width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(0,0,0,.6); }

/* ---- ราคา ---- */
.packs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; text-align: left; }
.pack { position: relative; display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: 24px; padding: 1.6rem 1.35rem; }
.pack.popular { border-color: var(--cyan); background: linear-gradient(180deg, #031a1c, #0b0b0c 60%); box-shadow: 0 0 80px rgba(0,180,195,.12); }
.pack-badge { position: absolute; top: -.75rem; left: 1.35rem; background: var(--cyan); color: #001214; font-size: .78rem; font-weight: 700; padding: .12rem .8rem; border-radius: 999px; }
.pack-badge.alt { background: #fff; color: #000; }
.pack-name { color: var(--soft); font-weight: 500; }
.pack-price { font-size: 2.6rem; font-weight: 500; line-height: 1.2; margin: .35rem 0 .15rem; letter-spacing: -.03em; }
.pack-per { color: var(--muted); font-size: .9rem; }
.pack-per b { color: var(--cyan2); font-weight: 600; }
.pack-list { list-style: none; padding: 0; margin: 1.1rem 0 1.3rem; flex: 1; font-size: .9rem; color: var(--soft); }
.pack-list li { display: flex; align-items: center; gap: .45rem; margin: .4rem 0; }
.pack-list .ic { color: var(--cyan); }

/* ---- คำถามที่พบบ่อย ---- */
.faq { max-width: 860px; margin: 0 auto; text-align: left; display: flex; flex-direction: column; gap: .7rem; }
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 1.1rem 1.4rem; transition: border-color .2s; }
.faq details[open] { border-color: rgba(255,255,255,.2); }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--cyan); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq p { color: var(--muted); margin: .6rem 0 0; font-size: .95rem; }

.cta-band { text-align: center; padding: 5.5rem 1.2rem; background: radial-gradient(ellipse 50% 70% at 50% 100%, var(--teal-glow), transparent 70%), var(--bg); }
.cta { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; }

/* ---- กล่องทั่วไป (หน้าบัญชี คำสั่งซื้อ แอดมิน ฯลฯ) ---- */
.card, main > section.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 1.6rem; }
main > section.card { max-width: 1000px; margin: 1.8rem auto; }
main > section.card.narrow, .narrow { max-width: 560px; margin-left: auto; margin-right: auto; }
.form { display: flex; flex-direction: column; gap: .9rem; }
.form label { display: flex; flex-direction: column; gap: .3rem; font-weight: 500; }
.form label.check { flex-direction: row; font-weight: 400; }
.form-row { flex-direction: row; flex-wrap: wrap; }
.form-row > * { flex: 1 1 160px; width: auto; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.big { font-size: 1.1rem; }
.pos { color: var(--cyan2); }
.neg { color: #ff9b9b; }
.r { text-align: right; }

/* ---- หน้างาน ---- */
.job-head { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1rem; }
.job-head h1 { word-break: break-word; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.progress { height: 6px; background: rgba(255,255,255,.1); border-radius: 999px; overflow: hidden; margin: 1.8rem 0 .7rem; }
.bar { height: 100%; background: var(--cyan); transition: width .6s; box-shadow: 0 0 12px rgba(0,218,232,.6); }
.done-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .8rem; background: var(--cyan-bg); border: 1px solid rgba(0,218,232,.3); color: #c9fbff; border-radius: 18px; padding: .8rem 1rem; margin: .5rem 0 1rem; }
.done-bar .ic { color: var(--cyan); }
.btn .ic, .done-bar .btn .ic { color: inherit; }
.stems { list-style: none; margin: 0 0 1.5rem; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.stems li { display: flex; flex-wrap: wrap; align-items: center; gap: .85rem; padding: .7rem .8rem; background: var(--panel2); border: 1px solid var(--line); border-radius: 16px; }
.stems li.is-master { border-color: rgba(0,218,232,.35); background: linear-gradient(90deg, rgba(0,218,232,.08), var(--panel2)); }
.stems li.is-master .stem-name { color: var(--cyan2); }
.stems li.is-reserved { opacity: .45; }
.stem-name { flex: 1 1 200px; font-weight: 600; }
.stems audio { flex: 1 1 260px; height: 38px; }
pre.err { white-space: pre-wrap; background: #000; padding: .7rem; border-radius: 12px; font-size: .8rem; max-height: 260px; overflow: auto; }

/* ---- ตาราง ---- */
.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; }
.tbl th, .tbl td { padding: .7rem .55rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.tbl th { color: var(--muted); font-weight: 500; font-size: .88rem; }
.compare td.us, .compare th.us { color: var(--cyan2); font-weight: 600; }
.st { border-radius: 999px; padding: .1rem .65rem; font-size: .82rem; border: 1px solid var(--line2); white-space: nowrap; }
.st-done, .st-paid { color: #c9fbff; border-color: rgba(0,218,232,.4); }
.st-running, .st-pending, .st-queued { color: #ffe4a8; border-color: rgba(255,200,87,.4); }
.st-error, .st-rejected { color: #ffc9c9; border-color: rgba(255,107,107,.45); }

/* ---- ชำระเงิน ---- */
.pay { text-align: center; }
.amount { font-size: 1.3rem; }
.amount b { color: var(--cyan2); font-size: 2rem; font-weight: 600; }
.qr { display: inline-block; background: #fff; padding: .6rem; border-radius: 18px; }
.qr svg { display: block; max-width: 260px; height: auto; }

/* ---- แอดมิน ---- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .8rem; margin: .8rem 0; }
.stats div { background: var(--panel2); border: 1px solid var(--line); border-radius: 16px; padding: .9rem; }
.stats b { display: block; font-size: 1.5rem; font-weight: 500; }
.stats span { color: var(--muted); font-size: .85rem; }
.slip-row { display: flex; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.slip-row img { width: 140px; border-radius: 12px; border: 1px solid var(--line); }
.row-actions { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .6rem; align-items: center; }
.small-input { width: 10rem; padding: .4rem .6rem; }

/* ---- ท้ายเว็บ ---- */
.foot { border-top: 1px solid var(--line); padding: 3.5rem 2.4rem 1.8rem; background: #000; }
.foot-grid { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
.foot h4 { margin: 0 0 .7rem; font-size: .95rem; font-weight: 600; }
.foot-grid a:not(.brand) { display: block; color: var(--muted); font-size: .92rem; margin: .35rem 0; }
.foot-grid a:not(.brand):hover { color: #fff; }
.foot-bottom { max-width: 1180px; margin: 2.4rem auto 0; padding-top: 1.3rem; border-top: 1px solid var(--line); text-align: center; }

/* ---- จอเล็ก / มือถือ ---- */
@media (max-width: 900px) {
  .top { padding: .8rem 1.2rem; }
  .top nav.mid { display: none; }
  .feat-grid, .grid3, .packs, .modes-row { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .top { padding: .6rem .9rem; }
  .top nav.right { gap: .6rem; font-size: .9rem; }
  .feat-grid, .grid3, .packs, .modes-row, .two, .foot-grid { grid-template-columns: 1fr; }
  .mode-pick { grid-template-columns: 1fr 1fr; }
  .sec { padding: 3.4rem 1rem; }
  .hero { padding: 2.6rem .8rem 2rem; }
  .meter-row { grid-template-columns: 6rem 1fr 4.5rem; }
  .foot { padding: 2.5rem 1.2rem 1.5rem; }
}

/* ---- มิกเซอร์หลายแทร็ก ---- */
.mixer { margin-top: .5rem; }
.transport { position: sticky; top: 72px; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; padding: .9rem 1rem; margin-bottom: .8rem; background: rgba(21,21,22,.96); backdrop-filter: blur(10px); border: 1px solid var(--line2); border-radius: 18px; }
.play-btn { width: 56px; height: 56px; border-radius: 50%; border: 2px solid #fff; background: #fff; color: #000; display: grid; place-items: center; cursor: pointer; flex: none; transition: transform .1s, background .2s; }
.play-btn:hover { transform: scale(1.05); }
.play-btn svg { width: 26px; height: 26px; }
.play-btn .i-pause, .play-btn.on .i-play { display: none; }
.play-btn.on .i-pause { display: block; }
.play-btn.on { background: var(--cyan); border-color: var(--cyan2); }
.tl { flex: 1 1 260px; min-width: 200px; }
.tl-row { display: flex; justify-content: space-between; gap: .6rem; font-size: .88rem; margin-top: .2rem; font-variant-numeric: tabular-nums; }
.mixer input[type=range] { -webkit-appearance: none; appearance: none; height: 6px; padding: 0; border: 0; border-radius: 999px; background: rgba(255,255,255,.14); cursor: pointer; }
.mixer input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 0 0 4px rgba(0,218,232,.25); }
.mixer input[type=range]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 0; }
#mx-seek { width: 100%; accent-color: var(--cyan); }
.mx-mode span { padding: .36rem .95rem; font-size: .9rem; }
.stems .ms { display: inline-flex; gap: .35rem; }
.ms-btn { width: 38px; height: 34px; border-radius: 9px; border: 1.5px solid var(--line2); background: transparent; color: var(--soft); font-family: var(--font-head); font-weight: 700; cursor: pointer; transition: background .15s, border-color .15s, color .15s, box-shadow .15s; }
.ms-btn:hover { border-color: rgba(255,255,255,.5); color: #fff; }
.ms-m[aria-pressed="true"] { background: #ff4d4f; border-color: #ff8a8b; color: #fff; box-shadow: 0 0 12px rgba(255,77,79,.55); }
.ms-s[aria-pressed="true"] { background: #22e06b; border-color: #8bf5b3; color: #022010; box-shadow: 0 0 14px rgba(34,224,107,.65); }
.stems .vol { flex: 0 1 160px; width: 160px; }
.stems li.track.is-off .stem-name, .stems li.track.is-off .tile { opacity: .38; }
.stems .hint { flex: 1 1 200px; }
.mixer.mode-master .stems li.track { opacity: .5; }
.mixer.mode-master .stems li.is-master { box-shadow: 0 0 0 1px var(--cyan); }
@media (max-width: 700px) {
  .transport { top: 60px; gap: .7rem; }
  .stems .vol { flex: 1 1 120px; width: auto; }
  .stems .hint { display: none; }
}

/* ป้ายตัวเลขสลิปรอตรวจบนเมนูแอดมิน */
.badge-dot { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 4px; border-radius: 999px; background: #ff4d4f; color: #fff; font-size: .75rem; font-weight: 700; line-height: 1; box-shadow: 0 0 10px rgba(255,77,79,.6); }

/* ---- เอกสารกฎหมาย / คู่มือ ---- */
.legal h2 { font-size: 1.15rem; margin: 1.8rem 0 .5rem; }
.legal ul { padding-left: 1.2rem; }
.legal li { margin: .35rem 0; }
.legal a { color: var(--cyan); }
.legal-tabs { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.2rem; }
.legal-tabs a { padding: .4rem .95rem; border: 1px solid var(--line2); border-radius: 999px; color: var(--soft); font-size: .9rem; text-decoration: none; }
.legal-tabs a:hover { border-color: rgba(255,255,255,.5); color: #fff; }
.legal-tabs a.on { background: #fff; color: #000; border-color: #fff; }
.table-wrap { overflow-x: auto; }
.legal-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.legal-table th, .legal-table td { text-align: left; vertical-align: top; padding: .6rem .7rem; border-bottom: 1px solid var(--line2); }
.legal-table th { color: var(--muted); font-weight: 600; }
.g-toc { display: flex; flex-wrap: wrap; gap: .4rem; margin: 1rem 0 .5rem; }
.g-toc a { padding: .4rem .95rem; border: 1px solid var(--line2); border-radius: 999px; color: var(--soft) !important; text-decoration: none; font-size: .92rem; }
.g-toc a:hover { border-color: var(--cyan); color: #fff !important; }
.g-item { border: 1px solid var(--line2); border-radius: 14px; padding: .9rem 1.1rem; margin: .7rem 0; background: rgba(255,255,255,.02); scroll-margin-top: 90px; }
.g-item h3 { margin: 0 0 .5rem; font-size: 1.05rem; color: #fff; }
.g-item dl { display: grid; grid-template-columns: 7.5rem 1fr; gap: .35rem .9rem; margin: 0; }
.g-item dt { color: var(--cyan); font-weight: 600; font-size: .9rem; }
.g-item dd { margin: 0; color: var(--soft); }
.guide h2 { scroll-margin-top: 90px; }
@media (max-width: 600px) { .g-item dl { grid-template-columns: 1fr; } .g-item dd { margin-bottom: .4rem; } }
.pack-note { text-align: center; color: var(--muted); font-size: .9rem; margin: 1rem auto 0; max-width: 720px; }
.pack-note a { color: var(--cyan); }

/* ---- มาสเตอร์อย่างเดียว ---- */
.kind-tag { display: inline-block; padding: .1rem .55rem; border-radius: 999px; background: rgba(0,218,232,.14); color: var(--cyan); font-size: .82rem; font-weight: 600; }
.mixer.ab.mode-master .stems li.track { opacity: 1; }
nav.mid a.on { color: #fff; }
/* เมนูด้านบนยาวขึ้น (มีมาสเตอร์เพลงอย่างเดียว): บีบระยะห่างบนจอขนาดกลาง ไม่ให้ตกเป็น 2 แถว */
@media (max-width: 1500px) and (min-width: 901px) {
  .top { padding: .9rem 1.4rem; }
  .top nav { gap: 1.25rem; }
  .top nav.right { gap: .9rem; }
  .top nav a, .top nav .linkish { font-size: .9rem; }
}
@media (max-width: 1240px) and (min-width: 901px) {
  .top nav.mid a[href*="#faq"] { display: none; }
}
@media (max-width: 1120px) and (min-width: 901px) {
  .top nav.mid a[href$="/remove-vocals"], .top nav.mid a[href$="/guide"] { display: none; }
  .top nav { gap: 1rem; }
}

/* ---- หน้าเนื้อหา (ลบเสียงร้อง / มาสเตอร์เพลง AI) ---- */
.tips-list { max-width: 860px; margin: 1rem auto 0; padding-left: 1.2rem; color: var(--soft); text-align: left; }
.tips-list li { margin: .7rem 0; line-height: 1.75; }
.tips-list b { color: #fff; }
.tips-list a, .sec-lead a { color: var(--cyan); }
