/* TrustJai: shared landing language.
   Modern Trust Blue & Ocean Fintech Style (แรงบันดาลใจจาก Billbau.com & Stripe):
   Clean natural canvas (#f4f8fd / #f8fafc), pure white elevated surfaces (#ffffff),
   ocean trust blue accents (#0284c7 / #0369a1), and soft gentle borders (#e2e8f0 / #e0f2fe).
   Spacious, comfortable typography with generous breathing room (สบายตา ใช้งานง่าย ไม่รก ไม่ลายตา). */

body.home.tj-system {
  background: #f4f8fd;
  background-image:
    radial-gradient(circle at 14% 10%, rgba(2, 132, 199, 0.05) 0%, transparent 45%),
    radial-gradient(circle at 86% 80%, rgba(37, 99, 235, 0.04) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(240, 249, 255, 0.5) 0%, transparent 100%);
  background-attachment: fixed;
  color: #334155;
}
body.home.tj-system:has(#secIntro.hide) { background: #f4f8fd; }
body.home.tj-system main { max-width: 1200px; padding: 0 24px 64px; }
body.home.tj-system #secIntro { padding-top: 24px; }
body.home.tj-system #offline, body.home.tj-system #closedNote { margin-top: 24px; }
body.home.tj-system #introBack { margin-top: 0; }
/* 🌟 Top Header & Navbar: เรียบหรู สะอาดตา บรรทัดเดียวกัน ไม่ตัดคำตกบรรทัด (บอสสั่ง 19 ก.ย. 2569 — ใบงาน 030) */
body.home.tj-system header.top {
  padding-inline: max(24px, calc((100vw - 1240px)/2));
  white-space: nowrap;
  gap: 12px;
}

body.home.tj-system .topnav {
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  flex-wrap: nowrap;
}

body.home.tj-system .topnav a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap !important;
  word-break: keep-all !important;
  color: #334155;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 999px;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

body.home.tj-system .topnav a:hover {
  color: #0284c7;
  background: #f0f9ff;
}

body.home.tj-system .topnav #navMyDeals {
  color: #0284c7 !important;
  font-weight: 600 !important;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  padding: 6px 14px;
}

body.home.tj-system .topnav #navMyDeals:hover {
  background: #0284c7;
  color: #ffffff !important;
  border-color: #0284c7;
}

body.home.tj-system .topnav .nav-start {
  min-height: 40px;
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 8px 20px;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.22);
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap !important;
  flex-shrink: 0;
  cursor: pointer;
  transition: all 0.16s ease;
}

body.home.tj-system .topnav .nav-start:hover {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.32);
  transform: translateY(-1px);
}

body.home.tj-system header.top .who {
  white-space: nowrap;
  font-size: 13px;
  font-weight: 500;
  color: #475569;
  flex-shrink: 0;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.home.tj-system header.top #btnOut {
  flex-shrink: 0;
  white-space: nowrap;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 500;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #475569;
  transition: all 0.15s ease;
}

body.home.tj-system header.top #btnOut:hover {
  background: #fee2e2;
  color: #b91c1c;
  border-color: #fca5a5;
}

/* Page Hero: Spacious, Floating, High-Clarity Canvas (Unboxed for Breathing Room) */
body.home.tj-system .pagehero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 840px;
  margin: 36px auto 60px;
  padding: 16px 20px 0;
  background: transparent;
  color: #0f172a;
  border: none;
  border-radius: 0;
  box-shadow: none;
}
body.home.tj-system .pagehero::before { content: none; }
body.home.tj-system .hero-copy, body.home.tj-system .hero-intent {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
body.home.tj-system .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: 999px;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  color: #0369a1;
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 24px;
  box-shadow: 0 1px 3px rgba(2, 132, 199, 0.06);
}
body.home.tj-system .eyebrow svg { width: 16px; height: 16px; color: #0284c7; }
body.home.tj-system .pagehero h1 {
  color: #0f172a;
  max-width: 720px;
  margin: 0 auto 20px;
  font-size: clamp(34px, 4.2vw, 50px);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.8px;
}
body.home.tj-system .pagehero h1 .hero-highlight {
  color: #0284c7;
  background: linear-gradient(135deg, #0284c7 0%, #2563eb 60%, #0369a1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}
body.home.tj-system .pagehero .lead {
  max-width: 580px;
  color: #475569;
  font-size: 17.5px;
  line-height: 1.85;
  font-weight: 400;
  margin: 0 auto 32px;
}
body.home.tj-system .hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin: 0 auto;
}
body.home.tj-system .hero-actions .btn {
  width: auto;
  min-height: 54px;
  margin: 0;
  padding: 14px 34px;
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
  color: #fff;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.26);
  border: 0;
  cursor: pointer;
  transition: all 0.18s ease;
}
body.home.tj-system .hero-actions .btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  box-shadow: 0 8px 26px rgba(2, 132, 199, 0.36);
  transform: translateY(-2px);
}
body.home.tj-system .hero-actions .start-deal {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 16px 48px;
  min-height: 68px;
  border-radius: 999px;
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
  box-shadow: 0 8px 24px rgba(2, 132, 199, 0.32);
}
body.home.tj-system .hero-actions .start-deal:hover:not(:disabled) {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  box-shadow: 0 12px 30px rgba(2, 132, 199, 0.42);
  transform: translateY(-2px);
}
body.home.tj-system .hero-actions .start-deal:active:not(:disabled) {
  transform: scale(0.98);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.22);
}
body.home.tj-system .start-deal-main { font-size: 19px; font-weight: 700; letter-spacing: 0.2px; }
body.home.tj-system .start-deal-help { font-size: 12.5px; font-weight: 400; opacity: .92; }
body.home.tj-system .hero-secondary {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  color: #475569;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 999px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  transition: all 0.16s ease;
}
body.home.tj-system .hero-secondary:hover { color: #0284c7; border-color: #bae6fd; background: #f0f9ff; transform: translateY(-1px); }
body.home.tj-system .hero-caption { color: #64748b; font-size: 13.5px; line-height: 1.75; margin: 20px auto 0; max-width: 500px; }
body.home.tj-system .hero-trust-badges { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin: 34px auto 0; }
body.home.tj-system .trust-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 20px; background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(226, 232, 240, 0.9); border-radius: 999px;
  font-size: 13.5px; color: #1e293b; font-weight: 500;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
  transition: all 0.2s ease;
}
body.home.tj-system .trust-badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}
body.home.tj-system .trust-badge svg { width: 16px; height: 16px; color: #0ea5e9; }
body.home.tj-system .trust-badge.promo-badge {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border: 1.5px solid #7dd3fc;
}
body.home.tj-system .pagehero #authMsg:not(:empty) { margin: 14px auto 0; max-width: 460px; background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; padding: 12px 16px; border-radius: 12px; font-size: 13px; }

/* Flowmap inside hero: Floating Pure White Island */
body.home.tj-system .flowmap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 36px auto 0;
  padding: 20px 32px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  max-width: 520px;
  width: 100%;
  box-shadow: 0 4px 18px -4px rgba(15, 23, 42, 0.03);
}
body.home.tj-system .flowmap .node { text-align: center; font-size: 12.5px; color: #64748b; }
body.home.tj-system .flowmap .node b { display: block; font-size: 14px; color: #0f172a; margin-top: 5px; font-weight: 600; }
body.home.tj-system .flowmap .ic {
  width: 42px; height: 42px; border-radius: 50%;
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  display: grid; place-items: center; margin: 0 auto 4px;
  color: #334155;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}
body.home.tj-system .flowmap .ic svg { width: 20px; height: 20px; }
body.home.tj-system .flowmap .node.mid .ic {
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.22);
}
body.home.tj-system .flowmap .node.mid b { color: #0284c7; }
body.home.tj-system .flowmap .arrow { color: #94a3b8; display: grid; place-items: center; padding-bottom: 14px; }
body.home.tj-system .flowmap .arrow svg { width: 18px; height: 18px; }

/* Stat Bar: Clean, Spacious Elevation Card */
body.home.tj-system .statbar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  max-width: 860px;
  margin: 0 auto 72px;
  padding: 26px 20px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  box-shadow: 0 4px 20px -4px rgba(15, 23, 42, 0.04);
}
body.home.tj-system .statbar div { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 4px; padding: 0 20px; border: 0; border-radius: 0; text-align: center; }
body.home.tj-system .statbar div+div { border-left: 1px solid #f1f5f9; }
body.home.tj-system .statbar b { color: #0284c7; font-size: 26px; font-weight: 700; line-height: 1.3; letter-spacing: -.3px; }
body.home.tj-system .statbar span { max-width: none; text-align: center; color: #64748b; font-size: 13.5px; line-height: 1.6; font-weight: 500; }

/* Journey (How it works): Clean 3-Card Grid with Ample Breathing Room */
body.home.tj-system .journey-section { max-width: 980px; margin: 0 auto 84px; padding: 0; }
body.home.tj-system .sect { text-align: center; margin: 0 auto 38px; padding: 0; border: 0; }
body.home.tj-system .sect .kicker {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: #0284c7;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin: 0 0 10px;
}
body.home.tj-system .sect h2 { color: #0f172a; font-size: 30px; font-weight: 700; line-height: 1.35; letter-spacing: -.5px; margin: 0; }
body.home.tj-system .sect p { color: #64748b; font-size: 15.5px; line-height: 1.8; max-width: 520px; margin: 10px auto 0; }
body.home.tj-system #how { padding: 0; border: 0; }
body.home.tj-system .howlist {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: how;
}
body.home.tj-system .howlist li {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  padding: 40px 28px;
  text-align: center;
  box-shadow: 0 4px 18px -4px rgba(15, 23, 42, 0.03);
  position: relative;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  margin: 0;
}
body.home.tj-system .howlist li:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px -4px rgba(2, 132, 199, 0.1);
  border-color: #cbd5e1;
}
body.home.tj-system .howlist li.key {
  border-color: #bae6fd;
  background: linear-gradient(180deg, #ffffff 0%, #f0f9ff 100%);
  box-shadow: 0 6px 24px -4px rgba(2, 132, 199, 0.08);
}
body.home.tj-system .howlist li::before {
  counter-increment: how;
  content: counter(how);
  width: 44px;
  height: 44px;
  margin: 0 auto 20px;
  background: #f0f9ff;
  color: #0284c7;
  border-radius: 50%;
  border: 1.5px solid #bae6fd;
  font-size: 17px;
  font-weight: 700;
  display: grid;
  place-items: center;
  position: static;
}
body.home.tj-system .howlist li.key::before {
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
}
body.home.tj-system .howlist li b { color: #0f172a; font-weight: 600; font-size: 17.5px; line-height: 1.5; margin: 0 0 10px; display: block; }
body.home.tj-system .howlist li span { font-size: 14px; line-height: 1.75; color: #64748b; display: block; }

/* Services Section (4 ตัวอย่างมินิมอล สบายตา เรียงกันพอดี) */
body.home.tj-system .services-section {
  max-width: 980px;
  margin: 0 auto 72px;
  padding: 0;
}
body.home.tj-system .services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 28px;
}
body.home.tj-system .service-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 24px 16px;
  text-decoration: none;
  color: #0f172a;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  box-shadow: 0 4px 16px -4px rgba(15, 23, 42, 0.04);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  position: relative;
}
body.home.tj-system .service-card:hover {
  transform: translateY(-3px);
  border-color: #bae6fd;
  box-shadow: 0 10px 24px -4px rgba(2, 132, 199, 0.1);
}
body.home.tj-system .service-card-icon {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}
body.home.tj-system .service-card-icon img {
  width: 42px;
  height: 42px;
}
body.home.tj-system .service-card-title {
  font-size: 15.5px;
  font-weight: 600;
  color: #0f172a;
  margin: 0;
  line-height: 1.4;
}
body.home.tj-system .service-card-desc {
  font-size: 13px;
  line-height: 1.6;
  color: #64748b;
  margin: 0;
}
body.home.tj-system .services-cta {
  text-align: center;
  margin-top: 24px;
}
body.home.tj-system .services-cta .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-height: 44px;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 999px;
  color: #0369a1;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  text-decoration: none;
  transition: all 0.16s ease;
}
body.home.tj-system .services-cta .btn:hover {
  background: #e0f2fe;
  border-color: #7dd3fc;
  color: #075985;
  transform: translateY(-1px);
}

/* Pricing Section: Spacious, Uncluttered Cards */
body.home.tj-system .pricing-section, body.home.tj-system #price {
  max-width: 960px;
  margin: 0 auto 80px;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}
body.home.tj-system .pricing-table { min-width: 0; width: 100%; }
body.home.tj-system .pricegrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 28px;
}
body.home.tj-system .pricecard {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 22px;
  padding: 32px 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 18px -4px rgba(15, 23, 42, 0.03);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  min-height: 115px;
}
body.home.tj-system .pricecard:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 26px -4px rgba(15, 23, 42, 0.06);
}
body.home.tj-system .pricecard .rng { font-size: 14.5px; font-weight: 500; color: #475569; max-width: none; line-height: 1.6; }
body.home.tj-system .pricecard .amt { font-size: 32px; font-weight: 700; letter-spacing: -.5px; color: #0284c7; margin: 0; line-height: 1.3; white-space: nowrap; text-shadow: none; }
body.home.tj-system .pricecard .amt small { font-size: 14px; font-weight: 400; color: #64748b; margin-left: 6px; }
body.home.tj-system #publicLimit { color: #64748b; font-size: 13.5px; margin: 24px 0 0; text-align: center; }
body.home.tj-system .fee-recalculate { display: inline-flex; align-items: center; min-height: 44px; margin: 14px auto 0; color: #0284c7; font-size: 13.5px; font-weight: 600; text-decoration: underline; text-underline-offset: 5px; text-decoration-color: #0284c7; }
body.home.tj-system .fee-recalculate:hover { color: #0369a1; }

/* กล่องตัวอย่างเรทค่าบริการตามยอดจริง */
body.home.tj-system .rate-examples-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 24px 26px;
  margin-top: 24px;
  box-shadow: 0 4px 18px -4px rgba(15, 23, 42, 0.03);
}
body.home.tj-system .rate-examples-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 18px;
  text-align: left;
}
body.home.tj-system .rate-examples-head b {
  font-size: 16px;
  font-weight: 700;
  color: #1e293b;
}
body.home.tj-system .rate-examples-head span {
  font-size: 13px;
  color: #64748b;
}
body.home.tj-system .rate-grid {
  display: block;
  width: 100%;
}

/* กล่องสรุปกติกา 3 สเต็ป */
body.home.tj-system .fee-formula-steps,
.fee-formula-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}
body.home.tj-system .fee-step-item,
.fee-step-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}
body.home.tj-system .fee-step-item.highlight-step,
.fee-step-item.highlight-step {
  background: #f0fdf4;
  border-color: #bbf7d0;
}
body.home.tj-system .fee-step-item .step-badge,
.fee-step-item .step-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  color: #0284c7;
  background: #e0f2fe;
  padding: 2px 8px;
  border-radius: 6px;
}
body.home.tj-system .fee-step-item .cap-badge,
.fee-step-item .cap-badge {
  color: #16a34a;
  background: #dcfce7;
}
body.home.tj-system .fee-step-item b,
.fee-step-item b {
  font-size: 15px;
  color: #0f172a;
}
body.home.tj-system .fee-step-item p,
.fee-step-item p {
  margin: 0;
  font-size: 12.5px;
  color: #64748b;
  line-height: 1.5;
}

/* ตาราง Table เรทค่าบริการ */
body.home.tj-system .table-responsive,
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}
body.home.tj-system .fee-summary-table,
.fee-summary-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13.5px;
}
body.home.tj-system .fee-summary-table thead th,
.fee-summary-table thead th {
  background: #f8fafc;
  color: #475569;
  font-weight: 600;
  padding: 12px 16px;
  border-bottom: 1px solid #e2e8f0;
  white-space: nowrap;
}
body.home.tj-system .fee-summary-table tbody td,
.fee-summary-table tbody td {
  padding: 13px 16px;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
  vertical-align: middle;
}
body.home.tj-system .fee-summary-table tbody tr:last-child td,
.fee-summary-table tbody tr:last-child td {
  border-bottom: none;
}
body.home.tj-system .fee-summary-table tbody tr:hover,
.fee-summary-table tbody tr:hover {
  background: #f8fafc;
}
body.home.tj-system .fee-summary-table tr.tr-cap,
.fee-summary-table tr.tr-cap {
  background: #f0fdf4;
}
body.home.tj-system .fee-summary-table tr.tr-cap:hover,
.fee-summary-table tr.tr-cap:hover {
  background: #dcfce7;
}
body.home.tj-system .fee-summary-table .td-deal b,
.fee-summary-table .td-deal b {
  color: #0f172a;
}
body.home.tj-system .fee-summary-table .td-fee,
.fee-summary-table .td-fee {
  white-space: nowrap;
}
body.home.tj-system .fee-summary-table .fee-badge,
.fee-summary-table .fee-badge {
  display: inline-block;
  font-weight: 700;
  color: #0f172a;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 14px;
}
body.home.tj-system .fee-summary-table tr.tr-cap .fee-badge,
.fee-summary-table tr.tr-cap .fee-badge {
  color: #0f172a;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  font-weight: 800;
}
body.home.tj-system .fee-summary-table .td-half,
.fee-summary-table .td-half {
  color: #475569;
  white-space: nowrap;
}
body.home.tj-system .fee-summary-table .td-half b,
.fee-summary-table .td-half b {
  color: #0284c7;
}
body.home.tj-system .fee-summary-table .td-note,
.fee-summary-table .td-note {
  font-size: 12.5px;
  color: #64748b;
}

/* แถบสิทธิประโยชน์ */
body.home.tj-system .fee-perks-band,
.fee-perks-band {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
  padding: 14px 18px;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  align-items: center;
  justify-content: space-around;
}
body.home.tj-system .f-perk-item,
.f-perk-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #334155;
}
body.home.tj-system .f-perk-item b,
.f-perk-item b {
  color: #0f172a;
}
body.home.tj-system .f-icon,
.f-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  flex-shrink: 0;
  line-height: 1;
}
body.home.tj-system .f-icon svg,
.f-icon svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 1.8;
  display: block;
}
body.home.tj-system .rate-item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 14px 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
body.home.tj-system .rate-item:hover {
  border-color: #cbd5e1;
  background: #f1f5f9;
}
body.home.tj-system .rate-item.is-cap {
  background: #f0fdf4;
  border-color: #bbf7d0;
}
body.home.tj-system .rate-deal {
  font-size: 13px;
  font-weight: 500;
  color: #475569;
}
body.home.tj-system .rate-fee {
  font-size: 14px;
  color: #334155;
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}
body.home.tj-system .rate-fee b {
  font-size: 19px;
  font-weight: 700;
  color: #0284c7;
}
body.home.tj-system .rate-item.is-cap .rate-fee b {
  color: #16a34a;
}
body.home.tj-system .cap-tag {
  font-size: 11px;
  font-weight: 600;
  color: #15803d;
  background: #dcfce7;
  padding: 2px 7px;
  border-radius: 8px;
}
body.home.tj-system .rate-cap-notice,
.rate-cap-notice {
  margin-top: 18px;
  padding: 14px 18px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  font-size: 13.5px;
  line-height: 1.6;
  color: #334155;
  text-align: left;
}
body.home.tj-system .rate-cap-notice b,
.rate-cap-notice b {
  color: #0f172a;
}

/* การ์ดแบบราคาในแดชบอร์ดล่าง (#homeFeeRefCard) */
.fee-reference-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 4px 20px -4px rgba(15, 23, 42, 0.04);
}
.fee-ref-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.fee-ref-title {
  display: flex;
  align-items: center;
  gap: 8px;
}
.fee-ref-icon {
  font-size: 18px;
}
.fee-ref-text b {
  font-size: 16px;
  color: #0f172a;
}
.fee-ref-badge {
  font-size: 11px;
  font-weight: 700;
  color: #0284c7;
  background: #e0f2fe;
  padding: 3px 8px;
  border-radius: 6px;
  white-space: nowrap;
}
.fee-wiz-lookup summary,
.fee-calc-lookup summary {
  user-select: none;
  transition: color 0.15s ease;
}
.fee-wiz-lookup summary:hover,
.fee-calc-lookup summary:hover {
  color: #0369a1;
}

/* การ์ดโปรโมชันลูกค้าใหม่ */
body.home.tj-system .promo-highlight-card {
  background: linear-gradient(180deg, #f0f9ff 0%, #ffffff 100%);
  border: 1.5px solid #bae6fd;
  box-shadow: 0 6px 22px -4px rgba(2, 132, 199, 0.08);
}
body.home.tj-system .promo-highlight-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px -4px rgba(2, 132, 199, 0.12);
}
body.home.tj-system .promo-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #0369a1;
  background: #e0f2fe;
  border: 1px solid #bae6fd;
  border-radius: 999px;
  padding: 4px 14px;
}
body.home.tj-system .promo-cond {
  font-size: 13.5px;
  color: #64748b;
  line-height: 1.55;
  max-width: 520px;
}
body.home.tj-system .quote-promo-hint {
  margin-top: 10px;
  padding: 8px 14px;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 12px;
  color: #0369a1;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}

/* The amount moves through a central custody point (Calculator) */
body.home.tj-system .calc {
  max-width: 840px;
  margin: 0 auto 80px;
  padding: 44px 40px;
  background: #ffffff;
  color: #0f172a;
  border: 1px solid #e2e8f0;
  border-radius: 28px !important;
  box-shadow: 0 10px 30px -8px rgba(15, 23, 42, 0.04);
}
body.home.tj-system .deal-preview {
  max-width: 980px;
  margin: 0 auto 80px;
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  column-gap: 52px;
  padding: 48px 48px 40px;
  background: #ffffff;
  color: #0f172a;
  border: 1px solid #e2e8f0;
  border-radius: 28px !important;
  position: relative;
  box-shadow: 0 14px 40px -10px rgba(15, 23, 42, 0.05);
  overflow: hidden;
}
body.home.tj-system .deal-preview .calc { padding: 0 0 20px; margin: 0; border: 0 !important; border-radius: 24px !important; background: none !important; box-shadow: none !important; min-width: 0; }
body.home.tj-system .calc-heading h2 { font-size: 24px; font-weight: 700; line-height: 1.4; color: #0f172a; margin: 0 0 6px; letter-spacing: -.4px; }
body.home.tj-system .calc-heading p { color: #64748b; font-size: 14.5px; margin: 0 0 18px; line-height: 1.7; }
body.home.tj-system .calc label, body.home.tj-system .deal-preview label, body.home.tj-system .deal-preview .payer-label { color: #334155; font-size: 13.5px; font-weight: 600; margin: 18px 0 8px; display: block; }
body.home.tj-system .amount-shell { position: relative; }
body.home.tj-system .amount-shell .bigin, body.home.tj-system .calc .bigin {
  min-height: 64px;
  padding: 8px 68px 8px 20px;
  background: #f8fafc;
  color: #0284c7;
  border: 1.5px solid #cbd5e1;
  border-radius: 16px;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -.5px;
  text-align: left;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.03);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
body.home.tj-system .amount-shell .bigin::placeholder, body.home.tj-system .calc .bigin::placeholder { color: #94a3b8; font-weight: 400; }
body.home.tj-system .amount-shell .bigin:focus, body.home.tj-system .calc .bigin:focus {
  border-color: #0284c7;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.18);
  outline: none;
}
body.home.tj-system .amount-shell>span { position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 15px; font-weight: 600; color: #64748b; pointer-events: none; }
body.home.tj-system .calc .choice, body.home.tj-system .deal-preview .choice { padding: 5px; margin: 0; gap: 6px; background: #f1f5f9; border: 1px solid #e2e8f0; border-radius: 999px; }
body.home.tj-system .calc .choice label, body.home.tj-system .deal-preview .choice label { min-height: 44px; padding: 10px 8px; margin: 0; display: grid; place-items: center; background: transparent; border: 1px solid transparent; border-radius: 999px; box-shadow: none; font-size: 13.5px; color: #475569; line-height: 1.5; font-weight: 600; cursor: pointer; transition: all 0.16s ease; }
body.home.tj-system .calc .choice label:hover, body.home.tj-system .deal-preview .choice label:hover { color: #0f172a; }
body.home.tj-system .calc .choice input:checked+label, body.home.tj-system .deal-preview .choice input:checked+label { background: #0284c7; color: #ffffff; border-color: #0284c7; font-weight: 700; box-shadow: 0 4px 14px rgba(2, 132, 199, 0.25); }
body.home.tj-system .split-preview { padding-top: 14px; margin-top: 16px; border-top: 1px solid #f1f5f9; }
body.home.tj-system .split-preview .payer-label { margin-top: 0; }
body.home.tj-system .split-side { max-width: 260px; }
body.home.tj-system .split-side label { width: 50%; }
body.home.tj-system .split-amount-shell { max-width: 260px; }
body.home.tj-system .split-amount-shell .split-amount, body.home.tj-system .calc .split-amount { width: 100%; min-height: 48px; padding: 8px 56px 8px 16px; background: #f8fafc; color: #0f172a; border: 1.5px solid #cbd5e1; border-radius: 12px; font: inherit; font-size: 20px; font-weight: 700; box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.03); }
body.home.tj-system .split-amount-shell .split-amount::placeholder, body.home.tj-system .calc .split-amount::placeholder { color: #94a3b8; }
body.home.tj-system .split-amount-shell .split-amount:focus, body.home.tj-system .calc .split-amount:focus { border-color: #0284c7; background: #ffffff; box-shadow: 0 0 0 3.5px rgba(2, 132, 199, 0.18); outline: none; }
body.home.tj-system .split-hint { min-height: 20px; margin: 7px 0 0; color: #64748b; font-size: 12.5px; line-height: 1.6; }
body.home.tj-system .preview-result { min-width: 0; display: flex; flex-direction: column; justify-content: center; padding: 0 0 16px 44px; border-left: 1px solid #f1f5f9; }
body.home.tj-system .money-route { display: flex; align-items: center; gap: 14px; max-width: 440px; width: 100%; margin: 0 auto 24px; }
body.home.tj-system .route-party { display: flex; flex-direction: column; align-items: center; flex-shrink: 0; gap: 8px; color: #334155; font-size: 12.5px; font-weight: 600; padding-top: 15px; }
body.home.tj-system .route-icon { width: 44px; height: 44px; border: 1.5px solid #cbd5e1; border-radius: 50%; display: grid; place-items: center; background: #f8fafc; box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03); }
body.home.tj-system .route-icon svg { width: 22px; height: 22px; color: #64748b; }
body.home.tj-system .route-keeper { width: 92px; flex-shrink: 0; display: flex; flex-direction: column; align-items: center; gap: 0; }
body.home.tj-system .keeper-mark { display: grid; place-items: center; width: 66px; height: 68px; border-radius: 20px; background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%); box-shadow: 0 4px 14px rgba(2, 132, 199, 0.25); color: #fff; margin-bottom: 8px; }
body.home.tj-system .keeper-mark svg { width: 40px; height: 40px; }
body.home.tj-system .route-keeper strong { font-size: 16px; line-height: 1.4; font-weight: 700; color: #0f172a; }
body.home.tj-system .route-keeper small { font-size: 11.5px; line-height: 1.5; color: #64748b; margin-top: 1px; }
body.home.tj-system .route-line { height: 2px; position: relative; flex: 1; min-width: 10px; background: #cbd5e1; margin-bottom: 27px; }
body.home.tj-system .route-line::before { content: ''; position: absolute; left: 0; top: -2px; width: 6px; height: 6px; border-radius: 50%; background: #0284c7; }
body.home.tj-system .route-line::after { content: ''; position: absolute; right: 0; top: -3px; width: 7px; height: 7px; border: solid #0284c7; border-width: 2px 2px 0 0; transform: rotate(45deg); }
body.home.tj-system #calcOut { min-height: 110px; color: #0f172a; }
body.home.tj-system .calc-empty { min-height: 110px; display: grid; align-content: center; gap: 6px; padding: 14px 0; border-top: 1px solid #f1f5f9; }
body.home.tj-system .calc-empty b { font-size: 16px; font-weight: 600; color: #0f172a; }
body.home.tj-system .calc-empty span { max-width: 28em; color: #64748b; font-size: 13.5px; line-height: 1.7; }
body.home.tj-system .quote-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
body.home.tj-system .quote-amount { min-width: 0; padding: 14px 0 4px; border-top: 1px solid #f1f5f9; }
body.home.tj-system .quote-amount>span { display: block; color: #64748b; font-size: 13px; font-weight: 500; margin-bottom: 4px; }
body.home.tj-system .quote-amount strong { color: #0284c7; font-size: clamp(26px, 2.6vw, 36px); font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.3; letter-spacing: -.5px; white-space: nowrap; text-shadow: none; }
body.home.tj-system .quote-amount strong small { font-size: 13px; color: #64748b; font-weight: 400; margin-left: 6px; letter-spacing: 0; }
body.home.tj-system .quote-fee { color: #64748b; font-size: 13px; line-height: 1.7; margin: 10px 0 0; }
body.home.tj-system .quote-share { color: #0f172a; font-weight: 600; }
body.home.tj-system .calc-use {
  width: 100%;
  min-height: 52px;
  margin: 18px 0 0;
  padding: 13px 20px;
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
  color: #fff;
  border: 0;
  border-radius: 999px;
  font-size: 15.5px;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.22);
  cursor: pointer;
  transition: all 0.16s ease;
}
body.home.tj-system .calc-use:hover:not(:disabled) {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.32);
  transform: translateY(-1px);
}
body.home.tj-system #calcOut .hint { color: #64748b; font-size: 13px; }
body.home.tj-system .calc-details { display: inline-flex; justify-content: flex-start; align-items: center; align-self: flex-start; min-height: 44px; border: 0; padding: 8px 0; margin-top: 0; color: #0284c7; font-size: 13.5px; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: #0284c7; }
body.home.tj-system .calc-details:hover { color: #0369a1; }
body.home.tj-system .preview-caption { grid-column: 1/-1; display: flex; align-items: center; justify-content: center; gap: 7px; margin: 0; padding: 16px 0 0; border-top: 1px solid #f1f5f9; color: #64748b; font-size: 12.5px; }
body.home.tj-system .preview-caption svg { width: 14px; height: 14px; flex-shrink: 0; color: #0284c7; }
body.home.tj-system .deal-preview :focus-visible, body.home.tj-system .deal-preview .choice input:focus-visible+label { outline: 2px solid #0284c7; outline-offset: 3px; }

/* Learn more & FAQ */
body.home.tj-system .learn-more { max-width: 980px; margin: 64px auto 0; background: #ffffff; border: 1px solid #e2e8f0; border-radius: 24px; box-shadow: 0 4px 18px -4px rgba(15, 23, 42, 0.03); }
body.home.tj-system .learn-more>summary { display: flex; align-items: center; min-height: 70px; padding: 22px 30px; gap: 16px; color: #0f172a; font-size: 17px; font-weight: 600; cursor: pointer; }
body.home.tj-system .learn-more>summary:hover { background: #fbfdfc; }
body.home.tj-system .learn-more[open]>summary { background: #fbfdfc; border-bottom: 1px solid #e2e8f0; }
body.home.tj-system .learn-more>summary::after { color: #0284c7; }
body.home.tj-system .learn-more .compact-sect { margin-top: 24px; margin-bottom: 16px; }
body.home.tj-system .learn-more .sect h2 { font-size: 24px; font-weight: 700; color: #0f172a; }
body.home.tj-system .learn-more .feat { padding: 20px 0; border: 0; border-bottom: 1px solid #f1f5f9; border-radius: 0; box-shadow: none; }
body.home.tj-system .learn-more .fic { background: #f0f9ff; color: #0284c7; border: 1px solid #bae6fd; border-radius: 14px; width: 44px; height: 44px; display: grid; place-items: center; }
body.home.tj-system .learn-more .feat b { font-weight: 600; font-size: 15.5px; color: #0f172a; margin-bottom: 5px; }
body.home.tj-system .learn-more .feat p { font-size: 13.5px; color: #475569; line-height: 1.7; }
body.home.tj-system .faq { max-width: none; }
body.home.tj-system .faq summary { color: #0f172a; font-size: 15px; font-weight: 600; padding: 18px 4px; cursor: pointer; }
body.home.tj-system .faq details>p { color: #475569; font-size: 14px; line-height: 1.8; }

/* Bottom CTA: Clean Ocean Trust Card */
body.home.tj-system .ctaband {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 36px;
  row-gap: 4px;
  max-width: 980px;
  margin: 72px auto 0;
  background: linear-gradient(145deg, #ffffff 0%, #f0f9ff 100%);
  border: 1.5px solid #bae6fd;
  border-radius: 28px;
  padding: 44px 44px;
  color: #0f172a;
  box-shadow: 0 10px 28px -6px rgba(2, 132, 199, 0.1);
  align-items: center;
}
body.home.tj-system .ctaband h2 { color: #0c4a6e; font-size: 28px; font-weight: 700; letter-spacing: -.5px; margin: 0; }
body.home.tj-system .ctaband p { color: #0284c7; font-size: 15.5px; margin: 4px 0 0; }
body.home.tj-system .ctaband .btn {
  grid-column: 2;
  grid-row: 1/3;
  min-width: 190px;
  min-height: 52px;
  margin: 0;
  padding: 13px 28px;
  border-radius: 999px;
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
  color: #fff;
  font-size: 15.5px;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(2, 132, 199, 0.25);
  cursor: pointer;
  transition: all 0.16s ease;
}
body.home.tj-system .ctaband .btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  box-shadow: 0 6px 22px rgba(2, 132, 199, 0.35);
  transform: translateY(-1.5px);
}
body.home.tj-system #secIntro>.center { text-align: center; margin-top: 28px !important; }
body.home.tj-system #secIntro>.center a { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; color: #64748b; }
body.home.tj-system #secIntro>.center a:hover { color: #0284c7; }

/* ═══════════════════════════════════════════════════════════════
   WORKSPACE / DASHBOARD (#secHome) — จัดระเบียบสายตา + พระเอกเด่นชัด
   ═══════════════════════════════════════════════════════════════ */
body.home.tj-system #secHome,
body.tj-system #secHome {
  display: flex !important;
  flex-direction: column !important;
  max-width: 760px !important;
  margin: 28px auto 48px !important;
  padding: 0 16px !important;
  gap: 20px !important;
}

@media(min-width: 820px) {
  body.home.tj-system #secHome,
  body.tj-system #secHome {
    display: flex !important;
    flex-direction: column !important;
    max-width: 780px !important;
    margin: 32px auto 56px !important;
    gap: 22px !important;
  }
  body.home.tj-system #secHome > .card,
  body.tj-system #secHome > .card {
    grid-column: auto !important;
    grid-row: auto !important;
    width: 100% !important;
    margin: 0 !important;
  }
  body.home.tj-system #secHome > .center,
  body.tj-system #secHome > .center {
    grid-column: auto !important;
  }
}

/* เรียงลำดับ Visual Hierarchy ตามความสำคัญจริง (บอสสั่ง: เอาแต้มสะสมไว้ด้านบน) */
body.tj-system #secHome > .backrow { order: 1; margin: 0 0 -4px; }
body.tj-system #secHome > #myPoints { order: 2; }
body.tj-system #secHome > .welcome { order: 3; }
body.tj-system #secHome > .my-deals-card,
body.tj-system #secHome > .card:not(.welcome):not(#myPoints):not(#adminCard) { order: 4; }
body.tj-system #secHome > #adminCard { order: 5; }
body.tj-system #secHome > .center { order: 6; }

/* แถบย้อนกลับด้านบน + แต้มสะสมมุมขวาบน (บอสสั่ง: เก็บแต้มไว้ที่มุมให้กดเลือกดูได้ ไม่ขวางตา) */
body.tj-system #secHome > .sec-home-topbar {
  order: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 10px;
}
body.tj-system .btn-points-corner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 6px 14px;
  font-size: 13.5px;
  font-weight: 600;
  color: #0369a1;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border: 1px solid #bae6fd;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.08);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
body.tj-system .btn-points-corner:hover {
  background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
  border-color: #7dd3fc;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.16);
  transform: translateY(-1px);
}
body.tj-system .btn-points-corner .pts-corner-caret {
  font-size: 11px;
  color: #0284c7;
  transition: transform 0.2s ease;
}

body.tj-system #secHome .backrow a.back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 500;
  color: #475569;
  padding: 6px 14px;
  border-radius: 999px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  text-decoration: none;
  transition: all 0.15s ease;
}
body.tj-system #secHome .backrow a.back:hover {
  background: #e2e8f0;
  color: #0f172a;
}

/* 🌟 พระเอกของหน้า: กล่องเปิดดีลใหม่ (.welcome) เด่นที่สุด สะดุดตา สไตล์ Billbau Bento Card */
body.home.tj-system .pagehero.welcome,
body.tj-system .pagehero.welcome,
body.home.tj-system #secHome .welcome,
body.tj-system #secHome .welcome {
  position: relative;
  background: linear-gradient(145deg, #ffffff 0%, #f0f9ff 45%, #e0f2fe 100%);
  border: 2px solid #bae6fd;
  color: #0f172a;
  padding: 38px 32px 32px;
  border-radius: 28px;
  box-shadow: 0 16px 40px -10px rgba(2, 132, 199, 0.16), 0 4px 16px -2px rgba(15, 23, 42, 0.04);
  text-align: center;
  overflow: hidden;
  max-width: 860px;
  margin: 28px auto 48px;
}

body.home.tj-system .pagehero.welcome::before,
body.home.tj-system #secHome .welcome::before,
body.tj-system #secHome .welcome::before {
  content: "";
  position: absolute;
  top: -90px;
  right: -90px;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.28) 0%, rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
}

body.home.tj-system .pagehero.welcome::after,
body.home.tj-system #secHome .welcome::after,
body.tj-system #secHome .welcome::after {
  content: "";
  position: absolute;
  bottom: -60px;
  left: -60px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
}

body.home.tj-system .welcome-badge,
body.tj-system .welcome-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #e0f2fe;
  border: 1px solid #bae6fd;
  color: #0369a1;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 16px;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.08);
}

body.home.tj-system .welcome-badge-dot,
body.tj-system .welcome-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #0284c7;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.25);
}

body.home.tj-system .pagehero.welcome h1,
body.home.tj-system #secHome .welcome h2,
body.tj-system #secHome .welcome h2 {
  color: #0c4a6e;
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin: 0 0 10px;
  line-height: 1.25;
}

body.home.tj-system .welcome .welcome-desc {
  color: #475569;
  font-size: 15.5px;
  line-height: 1.65;
  max-width: 600px;
  margin: 0 auto 24px;
}

/* ปุ่มเริ่มเปิดดีลในการ์ดฮีโร่ (#btnSignIn) และปุ่มเปิดดีลเดิม (#btnNew) — ตัวเอก ทรงพลัง สะดุดตาที่สุด */
body.home.tj-system .pagehero.welcome .start-deal,
body.home.tj-system #secHome .welcome .btn,
body.tj-system #secHome .welcome .btn,
body.home.tj-system #secHome .welcome #btnNew,
body.tj-system #secHome .welcome #btnNew {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  max-width: 440px;
  min-height: 60px;
  padding: 0 36px;
  font-size: 19px;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
  border: 0;
  border-radius: 999px;
  box-shadow: 0 10px 28px -4px rgba(2, 132, 199, 0.46), 0 4px 10px -2px rgba(2, 132, 199, 0.25);
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  margin: 0;
}

body.home.tj-system .pagehero.welcome .start-deal .btn-icon,
body.home.tj-system #secHome .welcome #btnNew .btn-icon {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

body.home.tj-system .pagehero.welcome .start-deal:hover:not(:disabled),
body.home.tj-system #secHome .welcome #btnNew:hover:not(:disabled) {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  transform: translateY(-2px);
  box-shadow: 0 14px 32px -4px rgba(2, 132, 199, 0.58), 0 6px 14px -2px rgba(2, 132, 199, 0.35);
}

body.home.tj-system .pagehero.welcome .start-deal:hover:not(:disabled) .btn-icon,
body.home.tj-system #secHome .welcome #btnNew:hover:not(:disabled) .btn-icon {
  transform: rotate(90deg) scale(1.1);
}

body.home.tj-system .pagehero.welcome .start-deal:active:not(:disabled),
body.home.tj-system #secHome .welcome #btnNew:active:not(:disabled) {
  transform: translateY(1px);
}

/* จุดเด่นความปลอดภัย 4 ข้อ */
body.home.tj-system .welcome-perks,
body.tj-system .welcome-perks {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px dashed rgba(2, 132, 199, 0.25);
  width: 100%;
}

body.home.tj-system .perk-item,
body.tj-system .perk-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 500;
  color: #0369a1;
}
body.home.tj-system .perk-icon,
body.tj-system .perk-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  flex-shrink: 0;
  line-height: 1;
  transition: color 0.2s ease;
}
body.home.tj-system .perk-icon svg,
body.tj-system .perk-icon svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 1.8;
  display: block;
}
body.home.tj-system .perk-item:hover .perk-icon,
body.tj-system .perk-item:hover .perk-icon {
  color: #0284c7;
}
body.home.tj-system .perk-item.promo-perk,
body.tj-system .perk-item.promo-perk {
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  padding: 4px 12px;
  border-radius: 999px;
  color: #0284c7;
  font-weight: 600;
}
body.home.tj-system .perk-item.promo-perk .perk-icon,
body.tj-system .perk-item.promo-perk .perk-icon {
  color: #0284c7;
}

/* 📦 ส่วนหัวการ์ดดีลของฉัน พร้อมปุ่มเปิดดีลใหม่กะทัดรัด คลีนตา */
body.home.tj-system .my-deals-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 8px;
}
body.home.tj-system .my-deals-header h2 {
  margin: 0;
  font-size: 22px;
  color: #0f172a;
}
body.home.tj-system .btn-compact-new {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 22px;
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
  border: 0;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.32);
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}
body.home.tj-system .btn-compact-new:hover:not(:disabled) {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.42);
}
body.home.tj-system .btn-compact-new:hover:not(:disabled) .btn-icon {
  transform: rotate(90deg) scale(1.1);
}
body.home.tj-system .btn-compact-new:active:not(:disabled) {
  transform: translateY(1px) scale(0.98);
}

/* 🚀 ปุ่มเปิดดีลหลัก (Hero Action Button) — เด่น สง่างาม สะดุดตา เป็นพระเอกของหน้าดีลของฉัน (บอสสั่ง 19 ก.ย. 2569) */
body.home.tj-system .my-deals-hero-action {
  margin: 14px 0 20px;
  width: 100%;
}
body.home.tj-system .btn-hero-deal {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 64px;
  padding: 14px 28px;
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 60%, #0369a1 100%);
  border: 0;
  border-radius: 20px;
  color: #ffffff;
  box-shadow: 0 8px 24px -4px rgba(2, 132, 199, 0.42), 0 2px 8px rgba(2, 132, 199, 0.2);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}
body.home.tj-system .btn-hero-deal::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 100%);
  border-radius: 20px 20px 0 0;
  pointer-events: none;
}
body.home.tj-system .btn-hero-deal:hover:not(:disabled) {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px -4px rgba(2, 132, 199, 0.52), 0 4px 12px rgba(2, 132, 199, 0.28);
}
body.home.tj-system .btn-hero-deal:hover:not(:disabled) .btn-icon {
  transform: translateY(-50%) rotate(90deg) scale(1.15);
}
body.home.tj-system .btn-hero-deal:active:not(:disabled) {
  transform: translateY(1px) scale(0.99);
}
body.home.tj-system .btn-hero-deal .btn-icon {
  position: absolute;
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
body.home.tj-system .btn-hero-deal .btn-deal-main {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: #ffffff;
  line-height: 1.3;
}
body.home.tj-system .btn-hero-deal .btn-deal-help {
  font-size: 12.5px;
  font-weight: 500;
  color: #e0f2fe;
  margin-top: 3px;
  line-height: 1.3;
}

/* 📦 การ์ดดีลของฉัน — สะอาด คลีน ตรวจสอบสถานะง่าย */
body.home.tj-system #secHome .my-deals-card,
body.tj-system #secHome .card:not(.welcome):not(#myPoints):not(#adminCard) {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  padding: 28px 26px;
  box-shadow: 0 6px 20px -4px rgba(15, 23, 42, 0.04);
}

body.home.tj-system #secHome .my-deals-card h2,
body.tj-system #secHome .card:not(.welcome):not(#myPoints):not(#adminCard) h2 {
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 4px;
}

body.home.tj-system #secHome #myChips,
body.tj-system #secHome #myChips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid #f1f5f9;
}

body.home.tj-system #secHome #myChips .chip,
body.tj-system #secHome #myChips .chip {
  min-height: 38px;
  padding: 0 16px;
  font-size: 13.5px;
  font-weight: 500;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s ease;
}

body.home.tj-system #secHome #myChips .chip:hover,
body.tj-system #secHome #myChips .chip:hover {
  background: #f1f5f9;
  color: #1e293b;
}

body.home.tj-system #secHome #myChips .chip.on,
body.tj-system #secHome #myChips .chip.on {
  background: #0284c7;
  border-color: #0284c7;
  color: #ffffff;
  font-weight: 600;
}

/* 📊 ตารางสรุปสถานะดีล (Deal Summary Matrix) — บอสสั่ง 19 ก.ย. 2569 (ใบงาน 029) */
.deal-summary-wrap {
  margin: 18px 0 12px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.04);
}

.deal-summary-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}

.deal-summary-table thead th {
  background: #f8fafc;
  color: #475569;
  font-size: 12.5px;
  font-weight: 600;
  padding: 12px 16px;
  border-bottom: 1px solid #e2e8f0;
  letter-spacing: 0.2px;
}

.deal-summary-table tbody tr {
  border-bottom: 1px solid #f1f5f9;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: all 0.16s ease;
}

@media (hover: hover) {
  .deal-summary-table tbody tr:hover {
    background: #f8fafc;
  }
}

.deal-summary-table tbody tr:last-child {
  border-bottom: none;
}

.deal-summary-table td {
  padding: 14px 16px;
  vertical-align: middle;
}

.deal-summary-table .status-name-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.deal-summary-table .status-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-block;
}

.deal-summary-table .dot-unpaid {
  background: #f97316;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.18);
}
.deal-summary-table .dot-pending {
  background: #0284c7;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.18);
}
.deal-summary-table .dot-completed {
  background: #16a34a;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.18);
}
.deal-summary-table .dot-bad {
  background: #64748b;
  box-shadow: 0 0 0 3px rgba(100, 116, 139, 0.18);
}

.deal-summary-table .status-title {
  display: block;
  font-size: 14.5px;
  font-weight: 600;
  color: #0f172a;
}

.deal-summary-table .status-desc {
  display: block;
  font-size: 12px;
  color: #64748b;
  margin-top: 1px;
}

.deal-summary-table .badge-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  min-width: 60px;
}

.badge-unpaid { background: #fff7ed; color: #c2410c; border: 1px solid #ffedd5; }
.badge-pending { background: #f0f9ff; color: #0369a1; border: 1px solid #e0f2fe; }
.badge-completed { background: #f0fdf4; color: #15803d; border: 1px solid #dcfce7; }
.badge-bad { background: #f8fafc; color: #475569; border: 1px solid #e2e8f0; }

.deal-summary-table .font-num {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: #1e293b;
}

.deal-summary-table .btn-view-deal-group {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  color: #0284c7;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: all 0.15s ease;
}

@media (hover: hover) {
  .deal-summary-table .btn-view-deal-group:hover {
    background: #0284c7;
    color: #ffffff;
    border-color: #0284c7;
  }
}

.deal-summary-table tfoot tr {
  background: #f8fafc;
  border-top: 1.5px solid #e2e8f0;
  font-weight: 600;
  color: #0f172a;
}

.deal-summary-table tfoot td {
  padding: 13px 16px;
}

.deal-summary-table .btn-all-deals {
  background: #ffffff;
  color: #334155;
  border: 1px solid #cbd5e1;
}

@media (hover: hover) {
  .deal-summary-table .btn-all-deals:hover {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
  }
}

/* แถบปุ่มดูประวัติดีลด้านล่างตาราง */
.summary-bottom-action {
  padding: 14px 16px;
  background: #f8fafc;
  border-top: 1px solid #f1f5f9;
  text-align: center;
}

.btn-toggle-history {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  max-width: 420px;
  min-height: 44px;
  padding: 10px 22px;
  border-radius: 12px;
  font-size: 14.5px;
  font-weight: 600;
  color: #0284c7;
  background: #ffffff;
  border: 1.5px solid #bae6fd;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.08);
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: all 0.18s ease;
}

.btn-toggle-history:hover {
  background: #f0f9ff;
  border-color: #0284c7;
  color: #0369a1;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.14);
}

.btn-toggle-history.is-open {
  background: #f1f5f9;
  color: #475569;
  border-color: #cbd5e1;
  box-shadow: none;
}

.btn-toggle-history .toggle-arrow {
  font-size: 12px;
  transition: transform 0.2s ease;
}

.btn-toggle-history.is-open .toggle-arrow {
  transform: rotate(180deg);
}

/* 📜 Drawer ประวัติดีล — ค่อยกดเข้าดูตามสั่งบอส */
.deal-history-drawer {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 2px dashed #e2e8f0;
  animation: fadeInDrawer 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeInDrawer {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.deal-history-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding: 10px 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}

.deal-history-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 700;
  color: #0f172a;
}

.btn-fold-deals {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  font-size: 12.5px;
  font-weight: 600;
  color: #64748b;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: all 0.15s ease;
}

@media (hover: hover) {
  .btn-fold-deals:hover {
    color: #0f172a;
    background: #f1f5f9;
    border-color: #94a3b8;
  }
}

/* จัดให้บนมือถืออ่านง่าย ไม่ล้นจอ */
@media (max-width: 640px) {
  .deal-summary-table thead th,
  .deal-summary-table td,
  .deal-summary-table tfoot td {
    padding: 10px 10px;
  }
  .deal-summary-table .status-desc {
    display: none; /* ซ่อนคำอธิบายยาวบนจอมือถือ */
  }
  .deal-summary-table .status-title {
    font-size: 13px;
  }
  .deal-summary-table .badge-count {
    padding: 3px 8px;
    font-size: 12px;
    min-width: auto;
  }
  .deal-summary-table .btn-view-deal-group {
    padding: 4px 8px;
    font-size: 11.5px;
    min-height: 36px;
  }
  .btn-toggle-history {
    font-size: 13.5px;
    padding: 8px 14px;
  }
}

/* 🪙 การ์ดสะสมแต้มสไตล์ Modern Fintech / XP Gauge (17 ก.ย. 2569 — ใบงาน 027) */
body.home.tj-system #secHome #myPoints,
body.tj-system #secHome #myPoints,
body.tj-system #dPoints,
body.tj-system .compact-points {
  background: linear-gradient(145deg, #ffffff 0%, #f0f9ff 100%);
  border: 1.5px solid #bae6fd;
  border-radius: 20px;
  padding: 22px 24px;
  box-shadow: 0 10px 25px -5px rgba(2, 132, 199, 0.08), 0 4px 10px -2px rgba(2, 132, 199, 0.04);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

body.home.tj-system #secHome #myPoints:hover,
body.tj-system #secHome #myPoints:hover,
body.tj-system #dPoints:hover {
  box-shadow: 0 14px 30px -5px rgba(2, 132, 199, 0.12), 0 6px 14px -2px rgba(2, 132, 199, 0.06);
}

.pts-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.pts-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pts-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: #e0f2fe;
  border-radius: 10px;
  border: 1px solid #bae6fd;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.12);
  flex-shrink: 0;
}

body.home.tj-system #secHome #myPoints h2,
body.tj-system #secHome #myPoints h2,
body.tj-system #dPoints h2 {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
  display: inline-flex;
  align-items: center;
}

body.home.tj-system #secHome #myPoints .hint,
body.tj-system #secHome #myPoints .hint,
body.tj-system #dPoints .hint {
  font-size: 13px;
  color: #64748b;
  margin: 4px 0 14px;
}

/* ป้ายสถานะแต้ม (Pills) */
.pts-pill {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.pts-pill-idle {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
}

.pts-pill-info {
  background: #e0f2fe;
  color: #0284c7;
  border: 1px solid #bae6fd;
}

.pts-pill-fire {
  background: #fff7ed;
  color: #ea580c;
  border: 1px solid #fed7aa;
  animation: ptsPulse 2s infinite ease-in-out;
}

.pts-pill-ready {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
  animation: ptsPulse 2s infinite ease-in-out;
}

.pts-pill-max {
  background: #fefce8;
  color: #ca8a04;
  border: 1px solid #fef08a;
  font-weight: 700;
}

@keyframes ptsPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}

/* แถวแสดงคะแนนและเปอร์เซ็นต์ */
.pts-stat-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 8px;
}

.pts-score-box {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.pts-score-num {
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
  color: #0284c7;
  letter-spacing: -0.02em;
}

.pts-score-label {
  font-size: 14px;
  font-weight: 600;
  color: #475569;
}

.pts-target-box {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pts-target-tag {
  font-size: 13px;
  font-weight: 600;
  color: #0369a1;
  background: #e0f2fe;
  padding: 3px 10px;
  border-radius: 6px;
}

.pts-pct-num {
  font-size: 16px;
  font-weight: 700;
  color: #0284c7;
}

/* 🧪 หลอดเกจสะสมแต้ม (Tube Progress Bar) */
.pts-tube-wrap {
  width: 100%;
  margin: 10px 0 16px;
}

.pts-tube-track {
  width: 100%;
  height: 16px;
  background: #e2e8f0;
  border-radius: 9999px;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.08);
  border: 1px solid #cbd5e1;
}

.pts-tube-fill {
  height: 100%;
  min-width: 12px;
  background: linear-gradient(90deg, #38bdf8 0%, #0284c7 55%, #0369a1 100%);
  border-radius: 9999px;
  position: relative;
  transition: width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 0 12px rgba(2, 132, 199, 0.4);
}

.pts-tube-shine {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.45) 50%, transparent 100%);
  background-size: 200% 100%;
  animation: ptsShimmer 2.5s infinite linear;
}

@keyframes ptsShimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* 🚩 หมุดเป้าหมายใต้หลอด (Milestones) */
.pts-milestones {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}

.pts-mile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.pts-mile.done {
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.pts-mile.active {
  background: #f0f9ff;
  border-color: #7dd3fc;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.08);
}

.pts-mile-dot {
  width: 26px;
  height: 26px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  background: #e2e8f0;
  color: #64748b;
  flex-shrink: 0;
}

.pts-mile.done .pts-mile-dot {
  background: #10b981;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.3);
}

.pts-mile.active:not(.done) .pts-mile-dot {
  background: #0284c7;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.3);
}

.pts-mile-info {
  display: flex;
  flex-direction: column;
}

.pts-mile-info b {
  font-size: 12px;
  color: #0f172a;
}

.pts-mile-info span {
  font-size: 11px;
  color: #64748b;
}

.pts-mile.done .pts-mile-info b {
  color: #166534;
}

.pts-mile.active .pts-mile-info b {
  color: #0369a1;
}

/* 💬 กล่องแจ้งเตือนสถานะด้านล่าง */
.pts-callout {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.4;
}

.pts-callout-icon {
  font-size: 18px;
  flex-shrink: 0;
}

.pts-callout-body {
  flex: 1;
}

.pts-callout.is-normal {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #334155;
}

.pts-callout.is-near {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #9a3412;
  font-weight: 500;
}

.pts-callout.is-ready {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
}

.pts-callout.is-max {
  background: #fefce8;
  border: 1px solid #fef08a;
  color: #854d0e;
}

.pts-callout-sub {
  font-size: 12px;
  color: #0369a1;
  margin-top: 2px;
}

@media (max-width: 600px) {
  body.home.tj-system #secHome #myPoints,
  body.tj-system #secHome #myPoints,
  body.tj-system #dPoints,
  body.tj-system .compact-points {
    padding: 16px 18px;
  }
  .pts-milestones {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

/* 🛡️ แถบสำหรับเจ้าของระบบ — เรียบร้อย สไตล์ Admin Utility Strip ล่างสุด */
body.home.tj-system #secHome #adminCard,
body.tj-system #secHome #adminCard {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 20px;
  padding: 16px 24px;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

body.home.tj-system #secHome #adminCard h2,
body.tj-system #secHome #adminCard h2 {
  font-size: 15px;
  font-weight: 700;
  color: #334155;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

body.home.tj-system #secHome #adminCard .btn,
body.tj-system #secHome #adminCard .btn {
  min-height: 38px;
  padding: 0 18px;
  font-size: 13.5px;
  font-weight: 600;
  border-radius: 999px;
  margin: 0;
}

@media(max-width: 600px) {
  body.home.tj-system .pagehero.welcome,
  body.tj-system .pagehero.welcome,
  body.home.tj-system #secHome .welcome,
  body.tj-system #secHome .welcome {
    padding: 24px 16px 20px;
    border-radius: 22px;
    margin: 16px auto 28px;
  }
  body.home.tj-system .pagehero.welcome h1,
  body.home.tj-system #secHome .welcome h2,
  body.tj-system #secHome .welcome h2 {
    font-size: 24px;
    line-height: 1.3;
  }
  body.home.tj-system .welcome .welcome-desc {
    font-size: 13.5px;
    line-height: 1.6;
    margin-bottom: 18px;
  }
  body.home.tj-system .pagehero.welcome .start-deal,
  body.home.tj-system #secHome .welcome #btnNew,
  body.tj-system #secHome .welcome #btnNew {
    font-size: 17px;
    min-height: 54px;
    padding: 0 20px;
    width: 100%;
  }
  body.home.tj-system .welcome-perks,
  body.tj-system .welcome-perks {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px 12px;
    padding: 16px 4px 0;
    text-align: left;
  }
  body.home.tj-system .perk-item,
  body.tj-system .perk-item {
    font-size: 12px;
  }
  body.home.tj-system .my-deals-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  body.home.tj-system .btn-compact-new {
    width: 100%;
  }
  body.home.tj-system .btn-hero-deal {
    padding: 14px 18px;
    min-height: 58px;
  }
  body.home.tj-system .btn-hero-deal .btn-icon {
    left: 16px;
  }
  body.home.tj-system .btn-hero-deal .btn-deal-main {
    font-size: 17px;
  }
  body.home.tj-system .btn-hero-deal .btn-deal-help {
    font-size: 12px;
  }
  body.home.tj-system #secHome #adminCard,
  body.tj-system #secHome #adminCard {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 18px;
  }
  body.home.tj-system #secHome #adminCard .admin-bar-actions,
  body.tj-system #secHome #adminCard .admin-bar-actions {
    width: 100%;
    display: flex;
    gap: 8px;
  }
  body.home.tj-system #secHome #adminCard .admin-bar-actions .btn,
  body.tj-system #secHome #adminCard .admin-bar-actions .btn {
    flex: 1;
    text-align: center;
    justify-content: center;
  }
}
body.home.tj-system #secNew { max-width: 760px; margin: 0 auto; }
body.home.tj-system #secNew>.card { padding: 36px; border-radius: 24px; background: #ffffff; border: 1px solid #e2e8f0; }
body.home.tj-system #secNew .wizhead { padding-bottom: 20px; border-bottom: 1px solid #e2e8f0; }
body.home.tj-system #secNew .wizstep h2 { margin-top: 24px; margin-bottom: 18px; font-size: 23px; font-weight: 700; color: #0f172a; }
body.home.tj-system #secNew .wizback { min-width: 44px; min-height: 44px; background: #f8fafc; border-color: #cbd5e1; color: #334155; border-radius: 999px; }
body.home.tj-system.cta-nearby .stickycta { display: none !important; }

/* Responsive Adjustments (Billbau clean standards) */
@media(max-width:960px) {
  body.home.tj-system .pagehero { padding: 24px 20px 0; margin-bottom: 48px; }
  body.home.tj-system .pagehero h1 { font-size: 36px; }
  body.home.tj-system .howlist { grid-template-columns: 1fr; gap: 16px; }
  body.home.tj-system .services-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  body.home.tj-system .deal-preview { grid-template-columns: 1fr; padding: 36px 26px; }
  body.home.tj-system .preview-result { padding-left: 0; border-left: 0; border-top: 1px solid #f1f5f9; padding-top: 32px; }
}
/* 📱 แถบหัวเว็บและเมนูบนมือถือ: เลื่อนนิ้วปัดซ้าย-ขวาได้ ไม่ตกขอบและไม่ดันหน้าเว็บขยาย (บอสสั่ง 15 ต.ค. 2569 — ใบงาน 039) */
@media (max-width: 768px) {
  body.home.tj-system header.top {
    padding-inline: 12px;
    gap: 8px;
    min-height: 60px;
    overflow-x: hidden;
    max-width: 100vw;
    box-sizing: border-box;
  }
  body.home.tj-system header.top .logo {
    font-size: 20px;
    gap: 6px;
    flex-shrink: 0;
  }
  body.home.tj-system header.top .logo .mark {
    width: 28px;
    height: 28px;
  }
  body.home.tj-system header.top .logo .mark svg {
    width: 28px;
    height: 28px;
  }
  body.home.tj-system header.top .spacer {
    display: none;
  }
  body.home.tj-system .topnav {
    display: flex !important;
    flex: 1 1 auto;
    min-width: 0;
    overflow-x: auto !important;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    gap: 6px;
    padding-block: 4px;
    padding-inline: 4px 10px;
  }
  body.home.tj-system .topnav::-webkit-scrollbar {
    display: none;
  }
  body.home.tj-system .topnav a {
    font-size: 13px !important;
    padding: 6px 12px !important;
    min-height: 36px;
    flex-shrink: 0;
    border-radius: 999px;
  }
  body.home.tj-system .topnav .nav-start {
    font-size: 13px !important;
    padding: 6px 14px !important;
    min-height: 36px;
    flex-shrink: 0;
  }
  body.home.tj-system .mobile-menu {
    display: none !important;
  }
  body.home.tj-system header.top .who {
    display: none;
  }
  body.home.tj-system header.top #btnOut {
    flex-shrink: 0;
    font-size: 12px;
    padding: 5px 10px;
    margin: 0;
  }
}

@media(max-width:700px) {
  body.home.tj-system main { padding: 0 16px 48px; }
  body.home.tj-system #secIntro { padding-top: 12px; }
  body.home.tj-system .pagehero { padding: 16px 12px 0; margin-bottom: 32px; }
  body.home.tj-system .pagehero h1 { font-size: 26px; letter-spacing: -.5px; line-height: 1.35; }
  body.home.tj-system .pagehero .lead { font-size: 14.5px; margin-bottom: 20px; line-height: 1.7; }
  body.home.tj-system .hero-actions .start-deal { width: 100%; min-height: 56px; }
  body.home.tj-system .flowmap { padding: 14px 16px; }
  body.home.tj-system .statbar { grid-template-columns: 1fr; gap: 14px; padding: 18px; border-radius: 18px; margin-bottom: 40px; }
  body.home.tj-system .statbar div { border-left: 0 !important; }
  body.home.tj-system .services-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  body.home.tj-system .service-card { padding: 16px 10px; border-radius: 16px; }
  body.home.tj-system .service-card-icon { width: 46px; height: 46px; border-radius: 12px; margin-bottom: 2px; }
  body.home.tj-system .service-card-icon img { width: 30px; height: 30px; }
  body.home.tj-system .service-card-title { font-size: 14px; }
  body.home.tj-system .service-card-desc { font-size: 11.5px; }
  body.home.tj-system .pricegrid { grid-template-columns: 1fr; gap: 16px; }
  body.home.tj-system .ctaband { grid-template-columns: 1fr; padding: 28px 18px; border-radius: 20px; text-align: center; }
  body.home.tj-system .ctaband .btn { grid-column: 1; grid-row: auto; width: 100%; margin-top: 16px; }
}

/* 💬 ช่องทางติดต่อทางการ (LINE & Facebook) — ชัดเจน โดดเด่น เห็นทันทีตามคำสั่งบอส */
body.home.tj-system .topnav .nav-contact {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  min-height: 38px;
  font-size: 13.5px;
  font-weight: 600;
  border-radius: 999px;
  border: 1.5px solid #e2e8f0;
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  text-decoration: none;
  transition: all 0.16s ease;
}
body.home.tj-system .topnav .nav-contact.nav-line {
  border-color: #bae6fd;
  color: #0284c7;
}
body.home.tj-system .topnav .nav-contact.nav-line:hover {
  background: #f0f9ff;
  border-color: #0ea5e9;
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(2, 132, 199, 0.18);
}
body.home.tj-system .topnav .nav-contact.nav-fb {
  border-color: #bfdbfe;
  color: #1d4ed8;
}
body.home.tj-system .topnav .nav-contact.nav-fb:hover {
  background: #eff6ff;
  border-color: #3b82f6;
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(24, 119, 242, 0.18);
}

/* 💬 กล่องติดต่อคนกลางด่วนในการ์ดฮีโร่ */
body.home.tj-system .hero-contacts-box {
  margin: 18px 0 20px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.96);
  border: 1.5px solid #bae6fd;
  border-radius: 18px;
  box-shadow: 0 4px 16px rgba(2, 132, 199, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  max-width: 580px;
  width: 100%;
}
body.home.tj-system .hero-contacts-head {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: #0369a1;
}
body.home.tj-system .hero-contacts-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #0284c7;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.25);
  animation: tjStepPulse 2s infinite ease-in-out;
}
body.home.tj-system .hero-contacts-btns {
  display: flex;
  gap: 12px;
  width: 100%;
  justify-content: center;
  flex-wrap: wrap;
}
body.home.tj-system .hero-contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  min-height: 48px;
  border-radius: 14px;
  text-decoration: none;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  flex: 1 1 200px;
  max-width: 260px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
body.home.tj-system .hero-contact-btn.btn-contact-line {
  background: #ffffff;
  border: 1.5px solid #06C755;
  color: #065f46;
}
body.home.tj-system .hero-contact-btn.btn-contact-line:hover {
  background: #f0fdf4;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(6, 199, 85, 0.24);
}
body.home.tj-system .hero-contact-btn.btn-contact-fb {
  background: #ffffff;
  border: 1.5px solid #1877F2;
  color: #1e3a8a;
}
body.home.tj-system .hero-contact-btn.btn-contact-fb:hover {
  background: #eff6ff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(24, 119, 242, 0.24);
}
body.home.tj-system .contact-btn-text {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.25;
}
body.home.tj-system .contact-btn-main {
  font-size: 14px;
  font-weight: 700;
}
body.home.tj-system .contact-btn-sub {
  font-size: 12px;
  color: #64748b;
  font-weight: 500;
}

/* 💬 Floating Quick Contacts (ปุ่มลอยมุมขวาล่างจอ) */
body.home.tj-system .floating-contacts {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
body.home.tj-system .float-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
  text-decoration: none;
  border: 1.5px solid #e2e8f0;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  font-weight: 700;
  font-size: 13.5px;
}
body.home.tj-system .float-btn:hover {
  transform: translateY(-2px) scale(1.03);
}
body.home.tj-system .float-btn.float-line {
  border-color: #86efac;
  color: #065f46;
}
body.home.tj-system .float-btn.float-line:hover {
  background: #f0fdf4;
  box-shadow: 0 6px 22px rgba(6, 199, 85, 0.32);
}
body.home.tj-system .float-btn.float-fb {
  border-color: #93c5fd;
  color: #1e3a8a;
}
body.home.tj-system .float-btn.float-fb:hover {
  background: #eff6ff;
  box-shadow: 0 6px 22px rgba(24, 119, 242, 0.32);
}

/* 📱 ปรับ UI ในโทรศัพท์มือถือให้สะอาดตา ใช้งานง่าย ไม่รก ไม่ซ้อนทับกัน (Billbau & iOS clean mobile experience) */
@media (max-width: 600px) {
  body.home.tj-system .floating-contacts {
    bottom: 84px;
    right: 12px;
    gap: 8px;
  }
  body.home.tj-system .float-btn {
    padding: 7px 12px;
    font-size: 12px;
    border-radius: 999px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.15);
  }
  body.home.tj-system .float-icon {
    width: 18px;
    height: 18px;
  }
  body.home.tj-system .hero-contacts-box {
    padding: 12px 14px;
    margin: 14px 0 16px;
  }
  body.home.tj-system .hero-contacts-btns {
    gap: 8px;
  }
  body.home.tj-system .hero-contact-btn {
    padding: 8px 12px;
    min-height: 44px;
    flex: 1 1 130px;
  }
  body.home.tj-system .contact-btn-main {
    font-size: 13px;
  }
  body.home.tj-system .contact-btn-sub {
    font-size: 11px;
  }
  /* Billbau Style Mobile Stepper Bento Grid */
  body.home.tj-system .howlist li {
    padding: 24px 18px;
    border-radius: 20px;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
  body.home.tj-system .howlist li::before {
    margin: 0 0 12px;
    width: 36px;
    height: 36px;
    font-size: 15px;
  }
  body.home.tj-system .howlist li b {
    font-size: 16px;
    margin-bottom: 4px;
  }
  body.home.tj-system .howlist li span {
    font-size: 13px;
    line-height: 1.6;
  }
}

/* 📱 แก้ปัญหาตัวหนังสือเบียดกันในโทรศัพท์มือถือ (Thai typography & spacing fix) */
@media (max-width: 700px) {
  body.home.tj-system .pagehero h1,
  body.home.tj-system .sect h2,
  body.home.tj-system .welcome h1,
  body.home.tj-system .card h2,
  body.home.tj-system .card h3 {
    letter-spacing: 0 !important;
    line-height: 1.4 !important;
  }
  body.home.tj-system p,
  body.home.tj-system span,
  body.home.tj-system b,
  body.home.tj-system strong,
  body.home.tj-system label,
  body.home.tj-system .welcome-desc {
    letter-spacing: 0 !important;
    line-height: 1.65 !important;
  }
  body.home.tj-system .welcome-perks {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
  body.home.tj-system .perk-item {
    font-size: 13px !important;
    line-height: 1.5 !important;
  }
  body.home.tj-system .hero-contacts-btns {
    flex-direction: column !important;
    width: 100% !important;
  }
  body.home.tj-system .hero-contact-btn {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 16px !important;
  }
  body.home.tj-system .services-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  body.home.tj-system .service-card {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    text-align: left !important;
    padding: 14px 16px !important;
    gap: 14px !important;
  }
  body.home.tj-system .service-card-icon {
    width: 50px !important;
    height: 50px !important;
    flex-shrink: 0 !important;
    margin-bottom: 0 !important;
  }
  body.home.tj-system .service-card-title {
    font-size: 15.5px !important;
    margin: 0 0 4px !important;
  }
  body.home.tj-system .service-card-desc {
    font-size: 12.5px !important;
    line-height: 1.5 !important;
    margin: 0 !important;
  }
  body.home.tj-system .deal-preview {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: 1fr !important;
    padding: 24px 20px !important;
    gap: 20px !important;
    border-radius: 26px !important;
    margin-bottom: 32px !important;
    overflow: hidden !important;
  }
  body.home.tj-system .deal-preview .calc {
    width: 100% !important;
    padding-bottom: 0 !important;
    border: 0 !important;
    background: transparent !important;
    border-radius: 22px !important;
  }
  body.home.tj-system .calc-heading h2 {
    font-size: 20px !important;
    line-height: 1.4 !important;
    white-space: normal !important;
  }
  body.home.tj-system .deal-preview .preview-result {
    width: 100% !important;
    padding-left: 0 !important;
    border-left: 0 !important;
    border-top: 1.5px solid #f1f5f9 !important;
    padding-top: 20px !important;
  }
  body.home.tj-system .money-route {
    width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 16px !important;
  }
}

/* =========================================================
   ใบงาน 045 — ต่อยอด UI ให้ใช้งานง่ายขึ้นครบ 4 จุดหลัก
   1. ปุ่มกดยอดฮิตด่วน (Quick Amount Chips) ในเครื่องคิดเลข & ฟอร์มเปิดดีล
   2. การ์ดวิธีใช้ (#how) แยกบทบาท ผู้ซื้อ/ผู้ขาย + ไอคอน + แถบ CTA
   3. ปุ่มกาง/พับคำถามทั้งหมดใน #faq
   4. แถบป้ายบอกชื่อขั้นตอน 1-2-3 (#wizStepsPills) ในฟอร์มเปิดดีล
   ========================================================= */

/* 1. ปุ่มกดยอดฮิตด่วน (Quick Amount Chips) */
.calc-quick-amounts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 10px 0 14px;
}

.calc-quick-label {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  margin-right: 2px;
}

.calc-quick-btn {
  appearance: none;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #1e293b;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.16s ease;
  line-height: 1.2;
}

.calc-quick-btn:hover {
  border-color: #2563eb;
  background: #eff6ff;
  color: #1d4ed8;
  transform: translateY(-1px);
}

.calc-quick-btn.is-active {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.24);
}

.wiz-quick-amounts {
  margin-top: 8px;
  margin-bottom: 16px;
}

/* 2. ยกเครื่องการ์ด 3 ขั้นตอนใน #how แยกฝั่งผู้ซื้อ/ผู้ขายชัดเจน + แถบ CTA */
body.home.tj-system .howlist li::before {
  display: none !important;
}

body.home.tj-system .howlist li {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  padding: 22px 20px 20px !important;
  border-radius: 22px !important;
  background: #ffffff !important;
  border: 1.5px solid #e2e8f0 !important;
  box-shadow: 0 8px 24px -10px rgba(15, 23, 42, 0.06) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease !important;
}

body.home.tj-system .howlist li:hover {
  transform: translateY(-3px) !important;
  border-color: #bfdbfe !important;
  box-shadow: 0 14px 30px -12px rgba(37, 99, 235, 0.14) !important;
}

.how-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.how-step-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
  letter-spacing: 0.01em;
}

.how-step-highlight {
  background: #ecfdf5;
  color: #047857;
  border-color: #a7f3d0;
}

.how-icon-wrap {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #f1f5f9;
  color: #2563eb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.how-icon-shield {
  background: #ecfdf5;
  color: #059669;
}

.how-icon-check {
  background: #eff6ff;
  color: #1d4ed8;
}

.how-roles {
  margin-top: auto;
  padding-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.how-role {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 9px 11px;
  border-radius: 12px;
  font-size: 12.5px;
  line-height: 1.45;
  color: #334155;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.how-role.buyer-role {
  background: #ffffff;
  border-color: #e2e8f0;
}

.how-role.seller-role {
  background: #ffffff;
  border-color: #e2e8f0;
}

.role-tag {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 8px;
  line-height: 1.35;
  background: #f8fafc;
  color: #475569;
  border: 1px solid #cbd5e1;
}

.buyer-role .role-tag {
  background: #f8fafc;
  color: #334155;
  border-color: #cbd5e1;
}

.seller-role .role-tag {
  background: #f8fafc;
  color: #334155;
  border-color: #cbd5e1;
}

.how-cta-bar {
  margin-top: 22px;
  padding: 16px 20px;
  border-radius: 18px;
  background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
  border: 1px solid #dbeafe;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.how-cta-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.how-cta-text b {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
}

.how-cta-text span {
  font-size: 13px;
  color: #475569;
}

.how-cta-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.how-start-btn {
  padding: 10px 20px !important;
  border-radius: 999px !important;
  font-size: 14px !important;
  font-weight: 800 !important;
}

.how-calc-link {
  font-size: 13px;
  font-weight: 700;
  color: #2563eb;
  text-decoration: none;
  padding: 6px 8px;
}

.how-calc-link:hover {
  text-decoration: underline;
}

/* 3. ปุ่มกาง/พับคำถามทั้งหมดใน #faq */
.faq-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.faq-head-row .subhead {
  margin: 0 !important;
}

.btn-faq-toggle-all {
  appearance: none;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #1e293b;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.16s ease;
}

.btn-faq-toggle-all:hover {
  border-color: #2563eb;
  background: #eff6ff;
  color: #1d4ed8;
}

/* 4. ป้ายบอกชื่อขั้นตอน 1-2-3 (#wizStepsPills) ในฟอร์มเปิดดีล #secNew */
.wiz-steps-pills {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 12px;
  margin-bottom: 4px;
}

.wiz-step-pill {
  appearance: none;
  border: 1.5px solid #e2e8f0;
  background: #f8fafc;
  color: #64748b;
  font-family: inherit;
  padding: 8px 10px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  text-align: left;
  transition: all 0.18s ease;
}

.wiz-step-pill:hover {
  border-color: #cbd5e1;
  background: #f1f5f9;
}

.wiz-pill-num {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #e2e8f0;
  color: #475569;
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wiz-pill-text {
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wiz-step-pill.is-active {
  border-color: #2563eb;
  background: #eff6ff;
  color: #1e3a8a;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.12);
}

.wiz-step-pill.is-active .wiz-pill-num {
  background: #2563eb;
  color: #ffffff;
}

.wiz-step-pill.is-done {
  border-color: #a7f3d0;
  background: #ecfdf5;
  color: #065f46;
}

.wiz-step-pill.is-done .wiz-pill-num {
  background: #059669;
  color: #ffffff;
}

@media (max-width: 640px) {
  .how-cta-bar {
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
  }
  .how-cta-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .how-start-btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
  .how-calc-link {
    text-align: center;
  }
  .wiz-steps-pills {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}


/* 🛑 ส่วนที่ถูกสั่งซ่อนต้องหายจริงเสมอ (18 ต.ค. 2569)
   กฎ #secHome ข้างบนใช้ display:flex !important ไปทับ .hide → กด "+ เปิดดีลใหม่" แล้วส่วนดีลของฉันไม่หาย
   ฟอร์มไปต่อท้ายใต้จอ บนคอมเห็นเพราะช่องกรอกแรกถูก focus แล้วจอเลื่อนตาม แต่มือถือ/iPad ไม่ focus = จอไม่ขยับ
   ห้ามลบกฎนี้ และถ้าจะใส่ display !important ให้ section ไหนอีก ต้องให้ .hide ชนะเสมอ */
html body.tj-system #secHome.hide,
html body.tj-system #secNew.hide,
html body.tj-system #secIntro.hide,
html body.tj-system #topnav.hide { display: none !important; }
/* ระหว่างกรอกฟอร์มเปิดดีล ซ่อนปุ่มลอย LINE/Facebook — บนมือถือมันทับปุ่ม "ผู้ซื้อ" แตะแล้วเด้งไป LINE แทน (18 ต.ค. 2569) */
body.home.tj-system:has(#secNew:not(.hide)) .floating-contacts { display: none !important; }

/* iPad แนวตั้ง (769–1180px): เมนูบนหัวเว็บยาวเกินจนดันปุ่ม "ออก" หลุดขอบขวา กดไม่ได้ (18 ต.ค. 2569)
   ให้เมนูหดแล้วเลื่อนข้างได้แบบเดียวกับมือถือ ส่วนชื่อกับปุ่มออกต้องอยู่ในจอเสมอ */
@media (min-width: 769px) and (max-width: 1180px) {
  body.home.tj-system .topnav:not(.hide) {
    flex: 1 1 auto;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  body.home.tj-system .topnav::-webkit-scrollbar { display: none; }
  body.home.tj-system header.top #btnOut,
  body.home.tj-system header.top .who { flex-shrink: 0; }
}

/* เผื่อที่ท้ายหน้าให้ปุ่มลอย LINE/Facebook — ไม่งั้นลิงก์ล่างสุดของหน้าโดนปุ่มลอยทับ แตะไม่ได้ (18 ต.ค. 2569) */
body.home.tj-system footer { padding-bottom: max(150px, calc(130px + env(safe-area-inset-bottom))) !important; }

/* จอแคบมาก (iPhone SE รุ่นแรก 320px): แถบตัวเลขใต้ฮีโร่ล้นขอบขวา 17px — ให้เรียงลงเป็นแถวเดียว (18 ต.ค. 2569) */
@media (max-width: 360px) {
  body.home.tj-system .statbar { grid-template-columns: 1fr !important; display: grid !important; }
  body.home.tj-system .statbar > div { min-width: 0; }
}
