/* RICHA TRADER — Modern Luxury Minimal (แก้ไขครั้งที่ 1 ตามแบบ mockup-03 ของลูกค้า)
   สี: ครีม เทา น้ำตาล ดำ (ไม่ใช้กรมท่า-ทอง) / หัวข้อ Serif ไทย + ตัวเลข Playfair / เนื้อหา Sarabun อ่านง่าย
   ไฟล์นี้โหลดทุกหน้า: ธีมกลางของเว็บ + หน้าแรก + แถบท้ายเว็บ (LINE / QR / Exness) + หน้าต่าง popup
   จัดหน้าแบบยืดหยุ่นตามจอ (ไม่ย่อขยายทั้งหน้า) เดสก์ท็อป ≥1024 / แท็บเล็ต 700-1023 / มือถือ <700 */

/* ฟอนต์ทั้งหมดโหลดจากเว็บเราเอง ใบอนุญาต SIL Open Font License อยู่ใน /assets/fonts */
@font-face { font-family: 'Noto Serif Thai'; src: url('/assets/fonts/noto-serif-thai-thai-600.woff2') format('woff2'); font-weight: 600; font-display: swap; unicode-range: U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: 'Noto Serif Thai'; src: url('/assets/fonts/noto-serif-thai-thai-700.woff2') format('woff2'); font-weight: 700; font-display: swap; unicode-range: U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: 'Noto Serif Thai'; src: url('/assets/fonts/noto-serif-thai-latin-600.woff2') format('woff2'); font-weight: 600; font-display: swap; unicode-range: U+0000-00FF, U+2013-2014, U+2018-201E, U+2026; }
@font-face { font-family: 'Noto Serif Thai'; src: url('/assets/fonts/noto-serif-thai-latin-700.woff2') format('woff2'); font-weight: 700; font-display: swap; unicode-range: U+0000-00FF, U+2013-2014, U+2018-201E, U+2026; }
@font-face { font-family: 'Playfair Display'; src: url('/assets/fonts/playfair-display-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Playfair Display'; src: url('/assets/fonts/playfair-display-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: Sarabun; src: url('/assets/fonts/sarabun-regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: Sarabun; src: url('/assets/fonts/sarabun-semibold.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: Sarabun; src: url('/assets/fonts/sarabun-bold.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: Allura; src: url('/assets/fonts/allura-regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }

/* ---------- ธีมกลางของเว็บ (ทับค่าใน site.css ทุกหน้า) ---------- */
:root {
  --paper: #f6f1ea; --paper-2: #eee6db; --card: #fbf8f3; --line: #e3d8ca;
  --ink: #231d18; --muted: #6c635a; --brown: #4a3222;
  --gold: #8a5a3c; --gold-2: #d5b48e; --gold-ink: #6b4429; --gold-soft: #f1e6d8;
  --dark: #1c1714; --dark-2: #2a231e; --on-dark: #f3ece3; --on-dark-2: #c8bdb1;
  --lx-cream: #f6f1ea; --lx-card: #fbf8f3; --lx-line: #e3d8ca; --lx-grey: #7d756d;
  --lx-brown: #6e4a32; --lx-brown-2: #8a5a3c; --lx-deep: #3b281b; --lx-black: #1c1714;
  --lx-serif: 'Noto Serif Thai', 'Playfair Display', Georgia, serif;
  --lx-num: 'Playfair Display', Georgia, serif;
  --lx-gutter: clamp(16px, 4vw, 40px);
}
body { font-family: Sarabun, 'Noto Sans Thai', system-ui, sans-serif; background: var(--lx-cream); color: var(--ink); }
h1, h2, h3, .footer-name { font-family: var(--lx-serif); font-weight: 700; letter-spacing: 0; }
.btn { font-family: Sarabun, sans-serif; }

/* หัวเว็บสีครีม ตัวอักษรเข้ม */
.site-header { background: rgba(246, 241, 234, .96); border-bottom: 1px solid var(--lx-line); }
.brand-text strong { color: var(--lx-black); font-family: var(--lx-serif); letter-spacing: .12em; }
.brand-text small { color: var(--lx-grey); }
.nav-link { color: var(--ink); font-weight: 600; }
.nav-link:hover { background: #6e4a3214; }
.nav-link[aria-current="page"] { color: var(--lx-brown); background: #6e4a321a; }
.nav-toggle { border-color: var(--lx-line); color: var(--lx-brown); }
.soc { color: var(--lx-brown); min-width: 44px; min-height: 44px; display: inline-grid; place-items: center; }
.btn-gold, .nav-cta { background: var(--lx-brown); color: #fff; border-color: transparent; }
.btn-gold:hover, .nav-cta:hover { background: var(--lx-deep); color: #fff; }
.btn-primary { background: var(--lx-brown); border-color: var(--lx-brown); color: #fff; }
@media (max-width: 1000px) { .nav { background: var(--lx-cream); border-bottom-color: var(--lx-line); } }

/* หน้าอื่น: หัวหน้าเรียบ สีครีม */
.page-hero { background: linear-gradient(180deg, var(--paper-2), var(--paper)); color: var(--ink); border-bottom: 1px solid var(--lx-line); }
.page-hero h1 { color: var(--lx-black); }
.page-hero .page-lead, .page-hero .crumbs, .page-hero .crumbs a { color: var(--muted); }
.kicker { color: var(--lx-brown-2); letter-spacing: .14em; }
.course-price, .is-price dd { color: var(--lx-brown); font-family: var(--lx-num); }
.sec-dark { background: var(--lx-black); }
.mb-line { background: #06c755; }

/* ---------- ส่วนช่วย ---------- */
.lx-wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--lx-gutter); }
.lx-sec { padding: clamp(48px, 7vw, 88px) 0; }
.lx-sec-head { text-align: center; margin-bottom: clamp(24px, 4vw, 40px); }
.lx-kicker { font: 600 13px/1.4 Sarabun, sans-serif; letter-spacing: .2em; color: var(--lx-brown-2); text-transform: uppercase; margin: 0 0 6px; }
.lx-h2 { font: 700 clamp(28px, 4.2vw, 44px)/1.35 var(--lx-serif); color: var(--lx-black); margin: 0; text-wrap: balance; }
.lx-muted { color: var(--muted); }
.lx-note { font-size: 14px; line-height: 1.6; color: var(--lx-grey); margin: 12px 0 0; }
.lx-script { font: 400 clamp(34px, 4.5vw, 52px)/1 Allura, cursive; color: var(--lx-brown-2); margin: 0; }
.rt-arrow { display: inline-block; width: 1.05em; height: 1.05em; vertical-align: -.18em; flex: none; }
.rt-ic { width: 28px; height: 28px; flex: none; }

.rt-ticks { list-style: none; padding: 0; margin: 0; }
.rt-ticks li { position: relative; padding-left: 28px; margin-bottom: 8px; line-height: 1.6; }
.rt-ticks li::before { content: ''; position: absolute; left: 0; top: .35em; width: 18px; height: 18px; border-radius: 50%; background: var(--lx-brown) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 6.2 5 8l4-4.2' fill='none' stroke='%23fff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat; }

.lx-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 12px 26px; border-radius: 999px; background: var(--lx-brown); color: #fff; font: 600 17px/1.3 Sarabun, sans-serif; text-decoration: none; text-align: center; transition: background .2s, transform .2s, box-shadow .2s; }
.lx-btn:hover { background: var(--lx-deep); color: #fff; transform: translateY(-2px); box-shadow: 0 8px 20px #3b281b26; }
.lx-btn .i-brand { width: 24px; height: 24px; }
.lx-btn-line { background: #06c755; }
.lx-btn-line:hover { background: #05a948; }
.lx-btn-light, .lx-btn.is-light { background: var(--lx-cream); color: var(--lx-black); }
.lx-btn-light:hover, .lx-btn.is-light:hover { background: #fff; color: var(--lx-black); }
.lx-btn-light .i-brand { color: #06c755; }

/* ---------- ส่วนบน ---------- */
.lx-hero { background: var(--lx-cream); padding-bottom: clamp(40px, 6vw, 72px); }
.lx-hero-media { position: relative; background: #14100d; }
.lx-hero-photo { display: block; width: 100%; height: clamp(320px, 52vw, 640px); object-fit: cover; object-position: var(--focus, 50% 40%); }
.lx-hero-media::after { content: ''; position: absolute; inset: auto 0 0 0; height: 35%; background: linear-gradient(180deg, transparent, #f6f1ea); pointer-events: none; }
.lx-sign { position: absolute; right: clamp(16px, 5vw, 64px); top: clamp(16px, 4vw, 48px); margin: 0; text-align: center; color: #fff; text-shadow: 0 2px 12px #0009; }
.lx-sign span { display: block; font: 400 clamp(40px, 5vw, 66px)/1 Allura, cursive; transform: rotate(-6deg); }
.lx-sign small { display: block; margin-top: 8px; font: 600 12px/1.6 Sarabun, sans-serif; letter-spacing: .28em; }

.lx-head { position: relative; z-index: 1; margin-top: clamp(-120px, -9vw, -48px); background: #fbf8f3f5; border: 1px solid var(--lx-line); border-radius: 28px; padding: clamp(24px, 4vw, 48px) clamp(18px, 4vw, 56px); text-align: center; box-shadow: 0 20px 50px #3b281b14; }
.lx-head .lx-script { position: absolute; left: clamp(16px, 4vw, 48px); top: clamp(14px, 3vw, 36px); transform: rotate(-12deg); font-size: clamp(26px, 3.4vw, 44px); }
.lx-title { display: flex; align-items: center; justify-content: center; gap: clamp(10px, 2vw, 24px); margin: 0; color: var(--lx-black); }
.lx-num { font: 700 clamp(96px, 14vw, 180px)/.8 var(--lx-num); color: var(--lx-brown); }
.lx-tl { display: flex; flex-direction: column; align-items: flex-start; text-align: left; }
.lx-t1 { font: 700 clamp(40px, 6.6vw, 84px)/1.2 var(--lx-serif); color: var(--lx-black); }
.lx-t2 { font: 700 clamp(30px, 5vw, 64px)/1.25 var(--lx-serif); color: var(--lx-brown); }
.lx-techs { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px 14px; margin: clamp(18px, 3vw, 28px) 0 0; }
.lx-pill { display: inline-flex; align-items: center; gap: 10px; padding: 12px 24px; border-radius: 999px; background: var(--lx-brown); color: #fff; font: 600 clamp(17px, 2vw, 22px)/1.35 Sarabun, sans-serif; }
.lx-pill .i { width: 26px; height: 26px; }
.lx-plus { font: 600 30px/1 var(--lx-num); color: var(--lx-brown); }
.lx-stats { list-style: none; padding: 0; margin: clamp(20px, 3vw, 32px) 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lx-stats li { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 6px 12px; text-align: left; }
.lx-stats li + li { border-left: 1px solid var(--lx-line); }
.lx-stats .i { width: clamp(34px, 4vw, 48px); height: clamp(34px, 4vw, 48px); color: var(--lx-brown); stroke-width: 1.4; flex: none; }
.lx-stats small { display: block; font: 600 clamp(16px, 1.8vw, 22px)/1.2 var(--lx-num); color: var(--lx-black); }
.lx-stats strong { display: block; font: 700 clamp(28px, 3.8vw, 48px)/1.1 var(--lx-num); color: var(--lx-brown); white-space: nowrap; }
.lx-stats strong.is-text { font: 700 clamp(18px, 2vw, 24px)/1.4 Sarabun, sans-serif; color: var(--lx-black); white-space: normal; }
.lx-bar { display: flex; flex-wrap: wrap; justify-content: center; margin: clamp(18px, 3vw, 28px) auto 0; padding: 10px 24px; max-width: 760px; border-radius: 999px; background: var(--lx-brown); color: #f6ece0; font: 600 clamp(15px, 1.7vw, 19px)/1.5 Sarabun, sans-serif; }
.lx-bar span + span::before { content: '|'; margin: 0 14px; opacity: .55; }
.lx-lead { margin: 14px 0 0; font-size: clamp(16px, 1.6vw, 18px); color: var(--muted); }
.lx-cta { display: flex; flex-wrap: wrap; justify-content: center; align-items: stretch; gap: 12px; margin-top: 24px; }
.lx-cta .lx-btn { min-width: 260px; }
.lx-head .lx-note { max-width: 640px; margin-left: auto; margin-right: auto; }

.lx-feats { list-style: none; padding: 0; margin: clamp(20px, 3vw, 32px) 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.lx-feats li { background: var(--lx-card); border: 1px solid var(--lx-line); border-radius: 20px; padding: 24px 18px; text-align: center; transition: transform .2s, box-shadow .2s; }
.lx-fi { width: 44px; height: 44px; color: var(--lx-brown); stroke-width: 1.3; margin: 0 auto 12px; }
.lx-feats h2 { font: 700 19px/1.45 var(--lx-serif); margin: 0 0 6px; color: var(--lx-black); }
.lx-feats p { font-size: 15.5px; line-height: 1.6; color: var(--muted); margin: 0; }

/* Exness (ทุกหน้า) */
.rt-exness { display: flex; align-items: center; gap: 12px; color: #fff; background: #111; border: 1px solid #3b3530; border-radius: 999px; text-align: left; padding: 8px 10px 8px 22px; text-decoration: none; transition: background .2s, transform .2s; }
.rt-exness:hover { background: #000; color: #fff; transform: translateY(-2px); }
.rt-exness strong { font: 600 30px/1 Arial, sans-serif; letter-spacing: -1.4px; color: #ffe128; padding-right: 12px; border-right: 1px solid #555; }
.rt-exness > span { font: 15px/1.3 Sarabun, sans-serif; flex: 1; }
.rt-exness i { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 50%; background: #fff; color: #111; }
.lx-exness { min-height: 52px; min-width: 260px; }

/* ---------- ครูผู้สอน ---------- */
.lx-teachers { background: var(--lx-card); border-top: 1px solid var(--lx-line); border-bottom: 1px solid var(--lx-line); }
.lx-teach-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
.lx-teach-img { margin: 0; border-radius: 24px; overflow: hidden; }
.lx-teach-img img { width: 100%; height: auto; display: block; }
.lx-bio { list-style: none; padding: 0; margin: 16px 0 0; }
.lx-bio li { font-size: clamp(18px, 1.8vw, 21px); line-height: 1.6; padding: 8px 0; border-bottom: 1px solid var(--lx-line); }
.lx-bio li:first-child { font: 700 clamp(20px, 2vw, 24px)/1.5 var(--lx-num); color: var(--lx-brown); }
.lx-quote { margin: 20px 0 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--lx-brown); font: 600 clamp(19px, 1.9vw, 23px)/1.6 var(--lx-serif); color: var(--lx-black); }
.lx-partner { margin-top: 28px; padding: 22px 24px; border-radius: 20px; background: var(--lx-cream); border: 1px solid var(--lx-line); }
.lx-partner-img { margin: -22px -24px 18px; overflow: hidden; border-radius: 20px 20px 0 0; }
.lx-partner-img img { width: 100%; height: auto; display: block; }
.lx-partner h3 { font: 700 22px/1.4 var(--lx-serif); color: var(--lx-brown); margin: 0 0 6px; }
.lx-partner p { margin: 0; font-size: 17px; line-height: 1.7; }

/* ---------- คอร์ส ---------- */
.lx-group { margin-top: clamp(28px, 4vw, 44px); }
.lx-sec-head + .lx-group { margin-top: 0; }
.lx-group-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.lx-gi { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--lx-brown); color: #fff; flex: none; }
.lx-gi .i { width: 26px; height: 26px; }
.lx-group-head h3 { font: 700 clamp(22px, 2.6vw, 28px)/1.4 var(--lx-serif); margin: 0; color: var(--lx-black); }
.lx-group-head p { margin: 2px 0 0; color: var(--muted); font-size: 16px; }
.lx-course-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); }
.lx-course { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--lx-line); border-radius: 24px; overflow: hidden; transition: transform .2s, box-shadow .2s; }
.lx-course.is-hot { background: var(--lx-deep); border-color: var(--lx-deep); color: #f6ece0; }
/* ป้ายอยู่ในเนื้อการ์ด ไม่ทับรูป (รูปโปสเตอร์มีตัวหนังสือ) */
.lx-badge { align-self: flex-start; margin: 0 0 10px; padding: 6px 16px; border-radius: 999px; background: var(--lx-cream); color: var(--lx-deep); font: 700 14px/1.4 Sarabun, sans-serif; letter-spacing: .04em; }
.lx-c-img { position: relative; display: block; width: 100%; aspect-ratio: 16 / 7; overflow: hidden; border: 0; padding: 0; background: #2a231e; cursor: pointer; }
.lx-c-img:disabled { cursor: default; }
.lx-c-img img, .lx-c-img .course-art { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.lx-c-img:not(:disabled):hover img { transform: scale(1.04); }
.lx-c-img.is-clip img { filter: brightness(.45) saturate(.8); }
.lx-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: grid; place-items: center; width: 62px; height: 62px; border-radius: 50%; background: #fbf8f3; color: var(--lx-deep); box-shadow: 0 6px 18px #0005; transition: transform .2s; }
.lx-play svg { width: 28px; height: 28px; margin-left: 4px; }
.lx-c-img.is-clip:hover .lx-play { transform: translate(-50%, -50%) scale(1.08); }
.lx-c-body { display: flex; flex-direction: column; flex: 1; padding: 22px clamp(18px, 2.4vw, 28px) 24px; }
.lx-course h4 { font: 700 clamp(21px, 2.2vw, 25px)/1.4 var(--lx-serif); margin: 0; color: inherit; }
.lx-price { font: 700 clamp(40px, 4.4vw, 52px)/1.15 var(--lx-num); color: var(--lx-brown); margin: 6px 0 0; }
.is-hot .lx-price { color: #f1d8bb; }
.lx-save { display: inline-block; align-self: flex-start; margin: 8px 0 0; padding: 4px 14px; border-radius: 999px; background: #f1d8bb; color: var(--lx-deep); font-weight: 700; font-size: 15px; }
.lx-ticks { margin: 16px 0 20px; font-size: 16.5px; }
.is-hot .rt-ticks li::before { background-color: #f1d8bb; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 6.2 5 8l4-4.2' fill='none' stroke='%233b281b' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.lx-c-body .lx-btn { margin-top: auto; width: 100%; }
.lx-bonus { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 28px 0 0; padding: 16px 20px; border-radius: 20px; background: var(--lx-card); border: 1px solid var(--lx-line); color: var(--lx-brown); font: 700 clamp(18px, 2vw, 22px)/1.5 var(--lx-serif); text-align: center; }
.lx-bonus .rt-ic { color: var(--lx-brown); }
.lx-perks { list-style: none; padding: 0; margin: 12px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.lx-perks li { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 16px; background: var(--lx-card); border: 1px solid var(--lx-line); font-size: 16px; line-height: 1.5; }
.lx-perks .i { width: 26px; height: 26px; color: var(--lx-brown); flex: none; }

/* ---------- ตัวอย่างกราฟ ---------- */
.lx-chart { background: var(--lx-card); border-top: 1px solid var(--lx-line); border-bottom: 1px solid var(--lx-line); }
.lx-chart-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 5vw, 56px); align-items: center; }
.lx-chart-fig { margin: 0; background: #fff; border: 1px solid var(--lx-line); border-radius: 24px; padding: clamp(12px, 2vw, 22px); }
.lx-chart-fig .rt-entry { aspect-ratio: 210 / 94; height: auto; }
.lx-chart-fig .rt-entry > span { font-size: clamp(12px, 1.6vw, 18px); padding: 4px 8px; border-radius: 6px; }
.lx-chart-fig figcaption { margin-top: 10px; font-size: 14px; color: var(--lx-grey); text-align: center; }
.lx-steps { margin: 18px 0 0; padding: 0; list-style: none; counter-reset: s; }
.lx-steps li { counter-increment: s; position: relative; padding: 10px 0 10px 50px; font-size: 17px; line-height: 1.6; border-bottom: 1px solid var(--lx-line); }
.lx-steps li::before { content: counter(s); position: absolute; left: 0; top: 9px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--lx-brown); color: #fff; font: 700 16px/1 var(--lx-num); }
.lx-legend { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; }
.lx-legend span { padding: 4px 12px; border-radius: 999px; font-size: 14px; font-weight: 600; color: #fff; }
.lx-legend .e { background: #306bd1; }
.lx-legend .tp { background: #0f8a78; }
.lx-legend .sl { background: #c92a35; }

/* ---------- เทคนิค 4 ข้อ ---------- */
.lx-tech-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.lx-tech-card { background: #fff; border: 1px solid var(--lx-line); border-radius: 22px; padding: 16px 16px 6px; transition: transform .2s, box-shadow .2s; }
.lx-tech-card .rt-diagram { aspect-ratio: 220 / 100; margin: 0 0 12px; border-radius: 12px; overflow: hidden; background: #fff; }
.lx-tech-card h3 { display: flex; align-items: center; gap: 10px; font: 700 18px/1.45 var(--lx-serif); margin: 0 0 10px; color: var(--lx-black); }
.lx-no { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--gold-soft); color: var(--lx-brown); font: 700 15px/1 var(--lx-num); flex: none; }
.lx-tech-card .lx-ticks { margin: 0 0 8px; font-size: 15.5px; }

/* ภาพประกอบเทคนิค (SVG) */
.rt-diagram svg { display: block; width: 100%; height: 100%; }
.rt-tech-photo { width: 100%; height: 100%; object-fit: contain; }
.rt-zones { position: relative; height: 100%; background: #fff; }
.rt-zones > span { position: absolute; font: 600 13px/1.3 Sarabun, sans-serif; padding: 5px 12px; }
.rt-supply { top: 4%; right: 0; color: #b91c2d; background: #ffc3ce9c; min-width: 62%; text-align: right; }
.rt-demand { bottom: 0; left: 10%; color: #076e6f; background: #8be8d693; min-width: 80%; }
.rt-zones svg { position: relative; z-index: 1; }
.rt-patterns { height: 100%; display: grid; grid-template: 1fr 1fr / 1fr 1fr; gap: 4px 8px; background: #fff; padding: 4px; }
.rt-patterns > div { min-height: 0; display: flex; flex-direction: column; align-items: center; }
.rt-patterns span { font: 700 12px/1.25 Sarabun, sans-serif; color: var(--lx-deep); white-space: nowrap; }
.rt-patterns svg { flex: 1; min-height: 0; margin-top: 2px; }
.rt-entry { position: relative; height: 100%; }
.rt-entry > span { position: absolute; color: #fff; border-radius: 3px; padding: 2px 5px; font: 700 12px/1 Arial, sans-serif; }
.rt-e.a { top: 26%; left: 42%; background: #306bd1; }
.rt-e.b { top: 37%; right: 13%; background: #0f8a78; }
.rt-tp { right: 0; top: 2%; background: #0f8a78; }
.rt-sl { right: 0; bottom: 0; background: #c92a35; }
.rt-risk { background: linear-gradient(90deg, #3b281b 0%, #2a1d14 47%, #f6f1ea 49%, #fbf8f3 100%); padding: 6px 12px; display: grid; height: 100%; }
.rt-risk > div { display: flex; align-items: center; justify-content: space-between; font: 600 13px/1 Sarabun, sans-serif; color: var(--lx-deep); gap: 6px; }
.rt-risk svg { width: 13px !important; height: 13px !important; flex: none; }
.rt-risk b { color: #fff; font-weight: 600; min-width: 64px; }
.rt-risk i { display: block; width: 30px; height: 12px; }

/* ---------- สไตล์การเทรด (พื้นเข้ม) ---------- */
.lx-style { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: var(--lx-black); color: var(--on-dark); }
.lx-style-img { min-height: 360px; }
.lx-style-img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; display: block; }
.lx-style-text { padding: clamp(36px, 6vw, 80px) clamp(20px, 6vw, 80px); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.lx-style .lx-script { color: #d5b48e; }
.lx-style .lx-h2 { color: #fff; margin: 6px 0 18px; }
.lx-style .lx-ticks { font-size: 18px; margin: 0 0 26px; }
.lx-style .rt-ticks li::before { background-color: #d5b48e; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 6.2 5 8l4-4.2' fill='none' stroke='%231c1714' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }

/* ---------- สินทรัพย์ ---------- */
.lx-market-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.lx-market { background: #fff; border: 1px solid var(--lx-line); border-radius: 20px; overflow: hidden; text-align: center; padding-bottom: 14px; transition: transform .2s, box-shadow .2s; }
.lx-market-img { aspect-ratio: 2.7 / 1; overflow: hidden; background: #2a231e; }
.lx-market-img img, .lx-market-img .asset-art { width: 100%; height: 100%; object-fit: cover; display: block; }
.rt-flags { width: 100%; height: 100%; display: block; }
.lx-market h3 { font: 700 21px/1.3 var(--lx-num); margin: 12px 0 2px; color: var(--lx-black); }
.lx-market p { margin: 0; color: var(--muted); font-size: 15.5px; }
.lx-method { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 4px 24px; margin: 24px auto 0; max-width: 960px; font-size: 16.5px; }

/* ---------- ใบรับรอง ---------- */
.lx-proof { background: var(--lx-card); border-top: 1px solid var(--lx-line); }
.lx-proof-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(24px, 5vw, 56px); align-items: center; }
.lx-cert { display: block; width: 100%; border: 1px solid var(--lx-line); border-radius: 20px; overflow: hidden; padding: 0; background: #fff; cursor: zoom-in; transition: transform .2s, box-shadow .2s; }
.lx-cert:hover { transform: translateY(-3px); box-shadow: 0 14px 30px #3b281b1f; }
.lx-cert img { width: 100%; height: auto; display: block; }
.lx-proof .lx-ticks { margin-top: 16px; font-size: 17px; }

/* ---------- รีวิว ---------- */
.rt-rv-grid { list-style: none; padding: 0; margin: 0 0 18px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 14px; align-items: start; }
.rt-rv { display: block; width: 100%; padding: 0; border: 1px solid var(--lx-line); border-radius: 16px; overflow: hidden; background: #fff; cursor: zoom-in; transition: transform .2s, box-shadow .2s; }
.rt-rv:hover { transform: translateY(-2px); box-shadow: 0 10px 22px #3b281b1a; }
.rt-rv img { width: 100%; height: auto; display: block; }
.rt-rv-grid p { font-size: 15px; line-height: 1.5; color: var(--muted); padding: 8px 4px 0; margin: 0; }
.rt-rv-foot { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.rt-rv-foot p { font-size: 14.5px; line-height: 1.6; color: var(--lx-grey); max-width: 680px; margin: 0; }
.rt-rv-foot .lx-btn { flex: none; min-width: 220px; }

.lx-motto { background: var(--lx-cream); text-align: center; padding: 8px var(--lx-gutter) clamp(48px, 6vw, 72px); }
.lx-motto p { font: 600 clamp(24px, 3vw, 34px)/1.5 var(--lx-serif); color: var(--lx-black); margin: 0; }
.lx-motto span { display: block; margin-top: 6px; color: var(--lx-grey); }

/* ---------- แถบท้ายเว็บ: คำชวน + LINE + QR + Exness (ทุกหน้า) ---------- */
.lx-band { background: var(--lx-card); border-top: 1px solid var(--lx-line); padding: 26px 0; }
.rt-footer { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; gap: 14px 18px; align-items: center; }
.rt-footer-message > p { font: 700 clamp(20px, 2.2vw, 26px)/1.5 var(--lx-serif); color: var(--lx-black); margin: 0; }
.rt-footer-message > small { display: block; margin-top: 6px; font-size: 13.5px; line-height: 1.6; color: var(--lx-grey); }
.rt-line-contact { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 8px 20px 8px 8px; border-radius: 999px; background: #06c755; color: #fff; text-decoration: none; white-space: nowrap; transition: transform .2s, background .2s; }
.rt-line-contact:hover { background: #05a948; color: #fff; transform: translateY(-2px); }
.rt-line-contact > i { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #fff; color: #06c755; flex: none; }
.rt-line-contact > i svg { width: 26px; height: 26px; }
.rt-line-contact small { display: block; font-size: 12.5px; line-height: 1.3; opacity: .95; }
.rt-line-contact strong { font: 700 18px/1.4 Sarabun, sans-serif; }
.rt-qr-contact { display: block; background: #fff; border: 1px solid var(--lx-line); border-radius: 12px; padding: 4px; }
.rt-qr-contact .rt-qr { width: 70px; height: 70px; display: block; }
.rt-footer-exness { min-height: 56px; }
.rt-footer-exness strong { font-size: 24px; }
.rt-footer-exness > span { font-size: 13px; }

/* ---------- หน้าต่าง popup ---------- */
#rt-modal { max-width: min(600px, calc(100vw - 32px)); width: 560px; max-height: calc(100dvh - 32px); padding: 32px; border: 1px solid var(--lx-line); border-radius: 24px; color: var(--ink); box-shadow: 0 20px 70px #1c171466; font: 17px/1.65 Sarabun, sans-serif; background: var(--lx-card); }
#rt-modal::backdrop { background: #1c1714b3; backdrop-filter: blur(5px); }
#rt-modal.is-wide { width: 900px; max-width: calc(100vw - 32px); }
.rt-modal-close { position: absolute; right: 12px; top: 10px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--lx-cream); color: var(--lx-deep); font: 28px/1 Arial, sans-serif; cursor: pointer; }
#rt-modal h2 { font: 700 26px/1.45 var(--lx-serif); margin: 0 0 6px; padding-right: 40px; color: var(--lx-black); }
#rt-modal p { margin: 0 0 10px; }
.rt-m-eyebrow { font-size: 14px; color: var(--lx-grey); margin-bottom: 2px !important; letter-spacing: .04em; }
.rt-m-price { font: 700 38px/1.2 var(--lx-num); color: var(--lx-brown); }
.rt-m-meta { color: var(--muted); }
#rt-modal .rt-ticks { font-size: 16.5px; margin-bottom: 12px; }
.rt-m-bonus { display: flex; gap: 8px; align-items: center; color: var(--lx-brown); font-weight: 700; }
.rt-m-bonus .rt-ic { width: 24px; height: 24px; }
.rt-contact-panel { padding: 18px; margin-top: 16px; border-radius: 18px; background: var(--lx-cream); border: 1px solid var(--lx-line); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.rt-contact-panel strong { font: 700 21px/1.3 var(--lx-num); }
.rt-apply { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; min-width: min(320px, 100%); padding: 10px 24px; border-radius: 999px; background: var(--lx-brown); color: #fff; font: 600 17px/1.3 Sarabun, sans-serif; text-decoration: none; }
.rt-apply:hover { background: var(--lx-deep); color: #fff; }
.rt-line-btn { background: #06c755; }
.rt-line-btn:hover { background: #05a948; }
.rt-line-btn svg { width: 24px; height: 24px; }
.rt-ghost { background: #fff; color: var(--lx-brown); border: 1.5px solid var(--lx-brown); }
.rt-ghost:hover { background: var(--lx-brown); color: #fff; }
.rt-more { color: var(--lx-brown); font-weight: 600; }
.rt-m-note { font-size: 13.5px; color: var(--lx-grey); margin-top: 12px !important; }
.rt-zoom-img { width: 100%; height: auto; border-radius: 12px; }
.rt-qr-big { display: grid; place-items: center; margin: 8px 0 4px; }
.rt-qr-big .rt-qr { width: 240px; height: 240px; }
.rt-videos { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.rt-videos video { width: 100%; height: auto; border-radius: 12px; background: #000; max-height: 70dvh; }
.rt-videos p { margin-top: 8px !important; font-size: 15px; line-height: 1.5; }

@media (hover: hover) {
  .lx-feats li:hover, .lx-course:hover, .lx-tech-card:hover, .lx-market:hover { transform: translateY(-3px); box-shadow: 0 14px 30px #3b281b17; }
}

/* ---------- แท็บเล็ต ---------- */
@media (max-width: 1023px) {
  .lx-feats, .lx-market-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lx-tech-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rt-rv-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lx-chart-grid, .lx-proof-grid { grid-template-columns: 1fr; }
  .lx-proof-grid .lx-cert { max-width: 560px; margin: 0 auto; }
  .rt-footer { grid-template-columns: minmax(0, 1fr) auto; }
  .rt-footer-message { grid-column: 1 / -1; }
  .rt-footer-exness { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 859px) {
  .lx-teach-grid { grid-template-columns: 1fr; }
  .lx-teach-img { max-width: 560px; }
  .lx-style { grid-template-columns: 1fr; }
  .lx-style-img { min-height: 0; aspect-ratio: 4 / 3; }
  .lx-perks { grid-template-columns: 1fr; }
}

/* ---------- มือถือ ---------- */
@media (max-width: 699px) {
  .lx-hero-photo { height: auto; aspect-ratio: 4 / 3; }
  .lx-hero-media::after { height: 30%; }
  .lx-sign { display: none; }
  .lx-head { margin-top: -40px; border-radius: 22px; padding: 26px 16px 22px; }
  .lx-head .lx-script { position: static; transform: rotate(-6deg); font-size: 34px; margin-bottom: 4px; }
  .lx-title { gap: 10px; }
  .lx-num { font-size: 104px; }
  .lx-t1 { font-size: clamp(34px, 10vw, 44px); }
  .lx-t2 { font-size: clamp(26px, 7.6vw, 34px); }
  .lx-techs { flex-direction: column; gap: 8px; }
  .lx-pill { width: 100%; justify-content: center; font-size: 18px; padding: 12px 16px; }
  .lx-plus { font-size: 26px; }
  .lx-stats { grid-template-columns: 1fr 1fr; gap: 0; }
  .lx-stats li { padding: 12px 6px; flex-direction: column; text-align: center; gap: 6px; }
  .lx-stats li + li { border-left: 0; }
  .lx-stats li:nth-child(2) { border-left: 1px solid var(--lx-line); }
  .lx-stats li:nth-child(3) { grid-column: 1 / -1; flex-direction: row; justify-content: center; border-top: 1px solid var(--lx-line); }
  .lx-stats strong { font-size: 34px; }
  .lx-stats strong.is-text { font-size: 19px; }
  .lx-bar { flex-direction: column; border-radius: 20px; padding: 12px 16px; font-size: 17px; }
  .lx-bar span + span::before { display: none; }
  .lx-cta { flex-direction: column; }
  .lx-cta .lx-btn, .lx-exness { min-width: 0; width: 100%; }
  .rt-exness { padding-left: 16px; gap: 10px; }
  .rt-exness strong { font-size: 24px; padding-right: 10px; }
  .rt-exness > span { font-size: 14px; }
  .rt-exness > span br { display: none; }
  .lx-feats { gap: 10px; }
  .lx-feats li { padding: 18px 12px; border-radius: 18px; }
  .lx-fi { width: 38px; height: 38px; }
  .lx-feats h2 { font-size: 17px; }
  .lx-feats p { font-size: 15px; }
  .lx-course-grid { grid-template-columns: 1fr; }
  .lx-course { border-radius: 22px; }
  .lx-price { font-size: 44px; }
  .lx-group-head { align-items: flex-start; }
  .lx-gi { width: 44px; height: 44px; }
  .lx-tech-grid { grid-template-columns: 1fr; }
  .lx-market-grid { gap: 10px; }
  .lx-market h3 { font-size: 19px; }
  .rt-rv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 10px; }
  .rt-rv-foot { flex-direction: column; align-items: stretch; }
  .rt-rv-foot .lx-btn { min-width: 0; }
  .lx-steps li { font-size: 16.5px; }
  .lx-style .lx-ticks { font-size: 17px; }
  .lx-style-text .lx-btn { width: 100%; }
  .lx-band { padding: 22px 0 26px; }
  .rt-footer { grid-template-columns: minmax(0, 1fr) auto; }
  .rt-line-contact { white-space: normal; }
  .rt-qr-contact .rt-qr { width: 64px; height: 64px; }
  .rt-footer-exness { justify-self: stretch; }
  #rt-modal { padding: 28px 18px 20px; border-radius: 20px; }
  #rt-modal h2 { font-size: 23px; }
}
@media (max-width: 370px) {
  .lx-num { font-size: 88px; }
  .lx-t1 { font-size: 32px; }
  .lx-t2 { font-size: 24px; }
  .lx-feats { grid-template-columns: 1fr; }
  .rt-exness strong { font-size: 22px; padding-right: 8px; }
  .rt-exness > span { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .lx *, .lx-band * { transition: none !important; }
}
