/* =====================================================================
   LIMITRACK · site layer (cl-design 2026-10-23) — โหลดทุกหน้าขายบริการ คู่กับ js/lt-site.js
   ปุ่มหัวเว็บ (ติดตามเพจ / ทักแชท) · ปุ่มลอย Messenger · toast · ป้ายสถานะเครื่อง · แถบติดตามเพจ
   ===================================================================== */

/* ---------- หัวเว็บ: [ f ติดตามเพจ ] [ 💬 ทักแชท ] ---------- */
.lt-hd-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.lt-hd-page, .lt-hd-chat {
  display: inline-flex; align-items: center; gap: 7px;
  height: 40px; padding: 0 16px; border-radius: 999px;
  font-size: 14px; font-weight: 600; white-space: nowrap;
  text-decoration: none !important;
  transition: background .15s ease, border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.lt-hd-page { background: #fff; color: #1877f2 !important; border: 1px solid #cddcf6; }
.lt-hd-page:hover { background: #f0f5ff; border-color: #1877f2; transform: translateY(-1px); }
.lt-hd-chat {
  color: #fff !important; border: 0;
  background: linear-gradient(135deg, #00b2ff, #006aff);
  box-shadow: 0 4px 14px rgba(0, 106, 255, .28);
}
.lt-hd-chat:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0, 106, 255, .38); }
.lt-hd-page svg, .lt-hd-chat svg { width: 17px; height: 17px; flex: none; }
@media (max-width: 1100px) {   /* iPad: เมนูยังโชว์ — ปุ่มเพจเหลือไอคอน กันหัวเว็บล้น */
  .lt-hd-page { width: 40px; padding: 0; justify-content: center; }
  .lt-hd-page .t { display: none; }
  .lt-hd-chat { padding: 0 14px; font-size: 13px; }
}
@media (min-width: 768px) and (max-width: 900px) {   /* iPad แนวตั้ง: เมนูเต็มแถว — ปุ่มแชทเหลือไอคอน */
  .lt-hd-chat { width: 40px; padding: 0; justify-content: center; }
  .lt-hd-chat .t { display: none; }
  .lxn-menu > li > a { padding-left: 6px; padding-right: 6px; }   /* เว้นที่ให้ปุ่มไม่ชิดขอบจอ */
}
@media (max-width: 767px) {    /* มือถือ: เหลือปุ่มแชทไอคอน ข้างปุ่มเมนู ☰ */
  .lt-hd-actions { margin-left: auto; }
  .lt-hd-page { display: none; }
  .lt-hd-chat { width: 42px; height: 42px; padding: 0; justify-content: center; border-radius: 10px; }
  .lt-hd-chat .t { display: none; }
  .lt-hd-chat svg { width: 21px; height: 21px; }
}

/* เมนูมือถือ: ปุ่มทักแชทบนสุด */
a.lt-mm-chat {
  display: flex !important; align-items: center; gap: 10px;
  margin: 2px 0 10px; padding: 12px 16px !important; border-radius: 12px; border: 0 !important;
  background: linear-gradient(135deg, #00b2ff, #006aff); color: #fff !important; font-weight: 700;
}
a.lt-mm-chat svg { width: 20px; height: 20px; flex: none; }

/* ---------- ปุ่มลอย Messenger ---------- */
.lt-fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 1450;
  display: inline-flex; align-items: center; gap: 8px;
  height: 52px; padding: 0 20px 0 15px; border-radius: 999px;
  background: linear-gradient(135deg, #00b2ff, #006aff); color: #fff !important;
  font-family: inherit; font-size: 15px; font-weight: 700; line-height: 1;
  text-decoration: none !important;
  box-shadow: 0 8px 24px rgba(0, 106, 255, .35), 0 2px 6px rgba(0, 0, 0, .18);
  transition: transform .15s ease, box-shadow .15s ease;
}
.lt-fab:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0, 106, 255, .42), 0 2px 6px rgba(0, 0, 0, .18); }
.lt-fab svg { width: 25px; height: 25px; flex: none; }
@media (max-width: 767px) {
  .lt-fab { right: 14px; bottom: 14px; height: 50px; padding: 0 17px 0 13px; font-size: 14.5px; }
  .lt-fab .t2 { display: none; }
}
body.lt-has-fab .back-to-top { bottom: 84px !important; right: 22px !important; }
@media print { .lt-fab, .lt-toast { display: none !important; } }

/* ---------- toast ---------- */
.lt-toast {
  position: fixed; left: 50%; bottom: 84px; z-index: 10000;
  max-width: min(92vw, 520px); padding: 11px 18px; border-radius: 14px;
  background: #0e1a2c; color: #fff; font-size: 14px; line-height: 1.45; text-align: center;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .3);
  opacity: 0; pointer-events: none; transform: translate(-50%, 10px); transition: all .2s ease;
}
.lt-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- ป้ายสถานะเครื่อง ---------- */
.lt-st {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  padding: 4px 11px; border-radius: 999px; border: 1px solid transparent;
  font-size: 12.5px; font-weight: 700; line-height: 1.3; white-space: nowrap;
}
.lt-st-avail { background: #e3f6e9; color: #1e7d3c; border-color: #9ed8b0; }
.lt-st-avail::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #22a052; box-shadow: 0 0 0 3px rgba(34, 160, 82, .18); }
.lt-st-pre   { background: #eef0ff; color: #4338ca; border-color: #c7cdfb; }
.lt-st-order { background: #fff3df; color: #9a4d00; border-color: #f1c98a; }
.lt-st-full  { background: #eef0ee; color: #5f6a62; border-color: #cfd6d0; }
.lt-st-disc  { background: #f6eded; color: #8a3b3b; border-color: #e5c4c4; }
.lt-st-other { background: #f1f3f7; color: #3d4659; border-color: #d9dee8; white-space: normal; }

/* ช่องสถานะในตาราง */
.lt-stcell { display: flex; flex-direction: column; align-items: center; gap: 7px; min-width: 150px; text-align: center; }
.lt-st-note { display: block; max-width: 230px; font-size: 13px; line-height: 1.45; color: #4f5868; }

/* ปุ่มแชทรายรุ่น */
.lt-chat {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 10px; border: 0;
  background: linear-gradient(135deg, #00b2ff, #006aff); color: #fff !important;
  font-size: 13px; font-weight: 700; line-height: 1.2; white-space: nowrap;
  text-decoration: none !important; box-shadow: 0 3px 10px rgba(0, 106, 255, .25);
  transition: transform .12s ease, filter .12s ease;
}
.lt-chat:hover { transform: translateY(-1px); filter: brightness(1.06); }
.lt-chat svg { width: 16px; height: 16px; flex: none; }
.lt-chat-full, .lt-chat-other {
  background: #fff; color: #0866ff !important; border: 1px solid #b9d3ff; box-shadow: none;
  padding: 6px 11px; font-size: 12.5px; font-weight: 600;
}

/* การ์ดค้นหา (#wc_search / #year_promo) ใช้ป้ายเดียวกัน */
.wcs-card.order { border-top-color: #e08a00; }
.wcs-card.pre   { border-top-color: #5b5bd6; }
.wcs-card .wcs-status { line-height: 1.4; }

/* ---------- แถบติดตามเพจ (ใต้หัวข้อโปรประจำเดือน) ---------- */
.lt-follow {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 10px;
  max-width: 640px; margin: -12px auto 26px; padding: 10px 16px; border-radius: 12px;
  background: #f0f5ff; border: 1px solid #d6e2fb; color: #33415c; font-size: 15px; line-height: 1.5; text-align: center;
}
.lt-follow svg { width: 18px; height: 18px; color: #1877f2; flex: none; }
.lt-follow a { font-weight: 700; color: #1877f2 !important; white-space: nowrap; }

/* ---------- หน้าจอแรก dedicatedserver: ปุ่มหลัก + ตัวเลขสด (2026-10-23) ----------
   สีปุ่มใช้ selector html body a.lt-btn.xxx เพราะหน้าเดิมมี .section-title a และ body.wc-night .section-title a { color: ... !important } */
.lt-hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 2px 0 22px; }
.lt-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px; border-radius: 12px;
  font-size: 15.5px; font-weight: 700; white-space: nowrap; text-decoration: none !important;
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease, background .15s ease;
}
.lt-btn svg { width: 19px; height: 19px; flex: none; }
.lt-btn:hover { transform: translateY(-1px); }
html body a.lt-btn.lt-btn-main { background: #2f55d4; color: #fff !important; box-shadow: 0 6px 18px rgba(47, 85, 212, .28); }
html body a.lt-btn.lt-btn-main:hover { filter: brightness(1.08); box-shadow: 0 8px 22px rgba(47, 85, 212, .36); }
html body a.lt-btn.lt-btn-chat { background: #fff; color: #0866ff !important; border: 1.5px solid #b9d3ff; }
html body a.lt-btn.lt-btn-chat:hover { background: #f3f8ff; border-color: #0866ff; }
.lt-hero-count { flex-basis: 100%; display: flex; align-items: center; gap: 8px; min-height: 22px; font-size: 13.5px; color: #4f5868; }
.lt-hero-count:empty { display: none; }
.lt-hero-count i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: #22a052; box-shadow: 0 0 0 3px rgba(34, 160, 82, .18); }
.lt-hero-count b { color: #1e7d3c; font-size: 15px; }
body.wc-night .lt-hero-count { color: #cfe2f8; }
body.wc-night .lt-hero-count b { color: #74d99a; }
#wc_search { scroll-margin-top: 84px; }   /* กดปุ่มแล้วหัวเว็บไม่บังช่องค้นหา */
@media (max-width: 767px) {
  .lt-hero-art { display: none !important; }            /* ภาพประกอบ: แสดงเฉพาะจอคอม/iPad */
  section.lt-ds-home { padding-top: 92px !important; }  /* เดิม 150px */
  .lt-hero-cta .lt-btn { flex: 1 1 100%; }
}

/* ---------- หน้าบริการ: ปุ่มหลักจอแรก (2026-10-23) ---------- */
.lt-hero-cta--center { justify-content: center; margin: 22px 0 8px; }
html body a.lt-btn.lt-btn-msgr { background: linear-gradient(135deg, #00b2ff, #006aff); color: #fff !important; box-shadow: 0 6px 18px rgba(0, 106, 255, .28); }
html body a.lt-btn.lt-btn-msgr:hover { box-shadow: 0 8px 22px rgba(0, 106, 255, .38); filter: brightness(1.05); }
html body a.lt-btn.lt-btn-ghost { background: #fff; color: #2f55d4 !important; border: 1.5px solid #c9d4f5; }
html body a.lt-btn.lt-btn-ghost:hover { border-color: #2f55d4; background: #f4f7ff; }
#lt-pricing { scroll-margin-top: 84px; }
a.lt-plan-btn { display: inline-flex; align-items: center; gap: 7px; }
a.lt-plan-btn svg { width: 17px; height: 17px; flex: none; }
@media (max-width: 767px) { .lt-hero-cta--center .lt-btn { flex: 1 1 100%; } }

/* ---------- SEO: เปลี่ยนแท็กหัวข้อ (h1 เดียวต่อหน้า) แต่หน้าตาเหมือนเดิม ----------
   ขนาดมาจาก class เดิม (.h1/.h4/.display-4) · บรรทัดล่างคืนค่าที่เคยมาจากแท็กเดิม */
h1.lt-was-p { margin-bottom: 1rem; }

/* ---------- ตัวอักษร: IBM Plex Sans Thai ทั้งเว็บ (cl-design 2026-10-23) ----------
   เดิมปน 3 แบบ: Nunito (ไม่มีอักษรไทย → ภาษาไทยไปใช้ฟอนต์ในเครื่องลูกค้า เช่น Tahoma), Prompt (vps_table), Plex Thai (บางหน้า)
   aiserver มีชุดตัวอักษรของตัวเอง (Inter / Space Grotesk) → ไม่แตะ (มี html[data-style])
   รหัสรุ่น/โค้ดที่ตั้ง monospace ไว้ยังเป็นแบบเดิม · เขียน selector ทีละตัว (ไม่ใช้ :is) ให้เบราว์เซอร์เก่าอ่านได้ */
:root { --lt-font: "IBM Plex Sans Thai", "IBM Plex Sans", "Noto Sans Thai", "Leelawadee UI", Tahoma, sans-serif; }
html:not([data-style]) body, html:not([data-style]) body .lt-page,
html:not([data-style]) body h1, html:not([data-style]) body h2, html:not([data-style]) body h3,
html:not([data-style]) body h4, html:not([data-style]) body h5, html:not([data-style]) body h6,
html:not([data-style]) body .h1, html:not([data-style]) body .h2, html:not([data-style]) body .h3,
html:not([data-style]) body .h4, html:not([data-style]) body .h5, html:not([data-style]) body .h6 { font-family: var(--lt-font); }
