/* =============================================================
   FAH 2026 — RE-SKIN OVERRIDE LAYER  (v2 · luxury/glossy)
   -------------------------------------------------------------
   จาก fah (ทอง/ดำ) → FAH (ฟ้า) · LIGHT THEME · พรีเมียม มันวาว
   - แก้สีด้วย CSS เท่านั้น · ไฟล์เดียว · โหลดท้าย <head> ทุกหน้า
   - chrome ที่มีไอคอน SVG baked + ข้อความ inline !important → คง navy
   - accent ทอง → Azure (#1A62FF/#0E4FE6) · แดง → Ruby (#E0353A)
   - อ้างอิง Design System: glossy(--shine-*) · ลายเพชร ◆ · เส้นทอง(--gradient-premium-soft)
   โครงสร้าง: 0)TOKENS 1)GLOBAL FOUNDATION 2)CHROME 3)HOME
   ============================================================= */

/* โหลดฟอนต์แบรนด์ตาม Design System (CSS-only · @import ต้องอยู่บนสุดก่อน rule ใด ๆ) */
@import url('https://fonts.googleapis.com/css2?family=Anuphan:wght@400;500;600;700&family=Bai+Jamjuree:wght@500;600;700&family=JetBrains+Mono:wght@400;600&display=swap');

/* =============================================================
   0) FAH TOKENS
   ============================================================= */
:root {
  /* brand / accent / premium */
  --fah-primary:        #1A62FF;
  --fah-primary-hover:  #0E4FE6;
  --fah-primary-active: #0B3FBC;
  --fah-primary-bright: #4480FF;
  --fah-primary-subtle: #EAF2FF;
  --fah-accent:         #E0353A;
  --fah-success:        #15A34A;
  --fah-warning:        #EE9D0B;
  --fah-gold:           #C7901C;
  --fah-gold-bright:    #DEAE2C;

  /* light surfaces */
  --fah-page:           #E7F0FF;
  --fah-surface:        #F6FAFF;
  --fah-surface-muted:  #E3ECFA;
  --fah-surface-raised: #FBFDFF;

  /* dark navy chrome */
  --fah-navy:           #0C1A3C;
  --fah-navy-raised:    #122451;
  --fah-navy-pill:      #18306A;

  /* text */
  --fah-text:           #131A28;
  --fah-text-2:         #333D54;
  --fah-text-3:         #495571;
  --fah-text-muted:     #647391;
  --fah-on-navy:        #EAF1FF;
  --fah-on-navy-muted:  #B9C8E8;

  /* borders */
  --fah-border:         #D7E1EF;
  --fah-border-subtle:  #EAF0F8;
  --fah-border-strong:  #BAC8DE;
  --fah-border-onnavy:  rgba(255, 255, 255, 0.10);

  /* gradients */
  --fah-grad-brand:     linear-gradient(180deg, #3D7BFF 0%, #1A62FF 46%, #0E4FE6 100%);
  --fah-grad-brand-h:   linear-gradient(180deg, #4480FF 0%, #1A62FF 46%, #0B3FBC 100%);
  --fah-grad-accent:    linear-gradient(0deg, #C61329 0%, #E81E36 100%);
  --fah-grad-text:      linear-gradient(180deg, #4480FF 0%, #0E4FE6 100%);
  --fah-grad-gold:      linear-gradient(95deg, #DEAE2C 0%, #F6D87A 50%, #C7901C 100%);
  --fah-grad-navy:      linear-gradient(160deg, #17306B 0%, #0C1A3C 58%, #07112A 100%);

  /* glossy (จาก DS --shine-*) — sheen ซ้อนบน bg ให้ตัวอักษรอ่านชัด */
  --fah-sheen:          linear-gradient(180deg, rgba(255,255,255,0.30) 0%, rgba(255,255,255,0.05) 42%, rgba(255,255,255,0) 60%);
  --fah-sheen-strong:   linear-gradient(180deg, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0.10) 45%, rgba(255,255,255,0) 65%);
  --fah-shine-brand:    inset 0 1px 0 rgba(255,255,255,0.55), inset 0 -3px 8px rgba(8,24,74,0.22), 0 6px 16px rgba(26,98,255,0.35);
  --fah-shine-navy:     inset 0 1px 0 rgba(255,255,255,0.22), 0 10px 26px rgba(8,24,74,0.32);
}

/* =============================================================
   1) GLOBAL FOUNDATION (page-home — ใช้ร่วมทุกหน้าสมาชิก)
   ============================================================= */

/* ---------------- PAGE CANVAS — พื้นหลังฟ้ากลางวัน (ทุกหน้า) ----------------
   sky gradient ที่ body (fixed) + เมฆ blob ที่ body::before (ดู section ท้ายไฟล์)
   รวม body (ไม่มี class) เพื่อครอบหน้า public: login/register/landing/forgot */
body,
body.theme-default,
body.page-home {
  background-color: #C9DEFF !important;
  background-image:
    linear-gradient(180deg, #9DC2F2 0%, #BAD7FF 30%, #DCEAFF 64%, #F1F7FF 100%) !important;
  background-attachment: fixed !important;
  color: var(--fah-text);
}

/* ---------------- TYPOGRAPHY — บังคับ Anuphan ทั้งโปรเจค (Font เดียว) ----------------
   ทุก element ใช้ Anuphan ยกเว้น Font Awesome icon (.fa*, [class*="fa-"]) ที่คง glyph ไว้
   @import โหลด Anuphan ด้านบนสุดของไฟล์ */
body,
body *:not(.fa):not(.fas):not(.far):not(.fab):not(.fal):not(.fad):not(.fass):not(.fasr):not(.fa-solid):not(.fa-regular):not(.fa-brands):not(.fa-light):not(.fa-duotone):not(.fa-thin):not([class*="fa-"]) {
  font-family: 'Anuphan', sans-serif !important;
}

/* ---------------- LINKS & TEXT ACCENTS ---------------- */
a { color: var(--fah-primary); }
a:hover, a:active { color: var(--fah-primary-hover); }
a.link-danger { color: var(--fah-accent); }

.text-primary   { color: var(--fah-primary) !important; }
.text-secondary { color: var(--fah-primary-hover) !important; }
.text-danger    { color: var(--fah-accent) !important; }
.text-success   { color: var(--fah-success) !important; }
.text-info      { color: var(--fah-primary) !important; }
.text-dark      { color: var(--fah-text) !important; }

/* ---------------- SECTION HEADING — ลายเพชร ◆ + เส้นคั่น (โทนเดียวกับตัวหนังสือ = azure) ----
   ใช้กับทั้ง .section-title (เห็นทุกขนาดจอ) และ .section-header (desktop-only, d-none d-lg-block) */
.section-title,
.section-header {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  color: var(--fah-primary-active) !important;   /* deep azure — ไม่จม */
  font-weight: 700;
  letter-spacing: 0.3px;
  padding-bottom: 0 !important;
}
/* คง responsive ของ section-header (ซ่อนในจอเล็ก) ไม่ให้ flex บังคับโชว์ */
@media (max-width: 991.98px) {
  .section-header { display: none !important; }
}
.section-title::before,
.section-title::after,
.section-header::before,
.section-header::after {
  content: "◆";
  position: static !important;
  inset: auto !important;
  margin: 0 !important;
  flex: 1 1 auto;
  max-width: 96px;
  width: auto !important;
  height: 1em;
  font-size: 0.6em;
  line-height: 1em;
  color: var(--fah-primary);                 /* bullet โทนเดียวกับตัวหนังสือ */
  text-shadow: 0 0 8px rgba(26,98,255,0.45);
  background-color: transparent !important;  /* เคลียร์พื้นทองเดิม (.section-title:after) */
  background-repeat: no-repeat;
  background-size: calc(100% - 16px) 2px;
}
.section-title::before,
.section-header::before {
  text-align: right;
  background-image: linear-gradient(90deg, rgba(26,98,255,0) 0%, var(--fah-primary) 92%);
  background-position: left center;
}
.section-title::after,
.section-header::after {
  text-align: left;
  background-image: linear-gradient(270deg, rgba(26,98,255,0) 0%, var(--fah-primary) 92%);
  background-position: right center;
}
.section-subtitle { color: var(--fah-text-3); }
.divider { background: var(--fah-border); }

/* ---------------- BUTTONS — glossy (sheen + shine shadow) ---------------- */
.btn-primary,
.btn-deposit,
a.btn-deposit,
body.theme-default.page-home a.btn-deposit {
  border-color: var(--fah-primary-hover) !important;
  background-image: var(--fah-sheen), var(--fah-grad-brand) !important;
  background-color: var(--fah-primary) !important;
  color: #fff !important;
  box-shadow: var(--fah-shine-brand) !important;
}
.btn-primary:hover, .btn-primary:active, .btn-primary:focus,
.btn-deposit:hover, .btn-deposit:active, .btn-deposit:focus {
  color: #fff !important;
  border-color: var(--fah-primary-active) !important;
  background-image: var(--fah-sheen), var(--fah-grad-brand-h) !important;
}

/* secondary = azure-tint glossy (ชัดเจนว่าเป็นปุ่ม — เดิมพื้นเกือบขาวกลืนพื้น) */
.btn-secondary {
  border: 1px solid var(--fah-primary) !important;
  background-image:
    linear-gradient(180deg, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0) 55%),
    linear-gradient(180deg, #EAF2FF 0%, #D2E2FF 100%) !important;
  background-color: var(--fah-primary-subtle) !important;
  color: var(--fah-primary-active) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.75), 0 3px 10px rgba(26,98,255,0.18) !important;
}
.btn-secondary:hover, .btn-secondary:active, .btn-secondary:focus {
  color: var(--fah-primary-active) !important;
  border-color: var(--fah-primary-active) !important;
  background-color: #C7DBFF !important;
}

/* withdraw = azure-tinted glossy (เข้าคู่กับ deposit, ไม่ใช่ขาวล้วน) */
.btn-withdraw,
a.btn-withdraw,
body.theme-default.page-home a.btn-withdraw {
  border: 1px solid var(--fah-primary) !important;
  background-image:
    linear-gradient(180deg, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0) 55%),
    linear-gradient(180deg, #DCE8FF 0%, #C7DBFF 100%) !important;   /* azure tint */
  background-color: var(--fah-primary-subtle) !important;
  color: var(--fah-primary-active) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.7),
    0 6px 16px rgba(26,98,255,0.20) !important;
}
.btn-withdraw:hover, .btn-withdraw:active, .btn-withdraw:focus {
  border-color: var(--fah-primary-active) !important;
  background-image:
    linear-gradient(180deg, rgba(255,255,255,0.6) 0%, rgba(255,255,255,0) 55%),
    linear-gradient(180deg, #CFE0FF 0%, #B5CEFF 100%) !important;
  color: var(--fah-primary-active) !important;
}

.btn-danger {
  border-color: var(--fah-accent);
  background-image: var(--fah-sheen), var(--fah-grad-accent);
  background-color: #E81E36;
  box-shadow: var(--fah-shine-brand);
}
/* default = neutral อ่อน glossy (ใช้เป็นปุ่ม back/close/ถอน หลายหน้า) */
.btn-default {
  border-color: var(--fah-border-strong) !important;
  background-image: linear-gradient(180deg, rgba(255,255,255,0.7), rgba(255,255,255,0.2)) !important;
  background-color: var(--fah-surface) !important;
  color: var(--fah-text) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8), 0 3px 10px rgba(8,24,74,0.10) !important;
}
.btn-default:hover, .btn-default:active, .btn-default:focus {
  color: var(--fah-text) !important;
  border-color: var(--fah-primary) !important;
  background-color: var(--fah-surface-muted) !important;
}

/* ghost = azure outline (เดิม color:#FFF + พื้นโปร่งใส → ตัวอักษรหายบนพื้นสว่าง) */
.btn-ghost {
  border: 1px solid var(--fah-primary) !important;
  background-color: transparent !important;
  color: var(--fah-primary-active) !important;
  box-shadow: none !important;
}
.btn-ghost:hover, .btn-ghost:active, .btn-ghost:focus {
  color: var(--fah-primary-active) !important;
  background-color: var(--fah-primary-subtle) !important;
}

/* dark = navy solid (เป็นปุ่มเข้มเด่น อ่านชัดบนพื้นสว่าง) */
.btn-dark {
  border-color: var(--fah-navy) !important;
  background-color: var(--fah-navy) !important;
  color: #fff !important;
}
.btn-dark:hover, .btn-dark:active, .btn-dark:focus {
  color: #fff !important;
  border-color: var(--fah-navy-raised) !important;
  background-color: var(--fah-navy-raised) !important;
}

/* outline-secondary = neutral outline ชัด */
.btn-outline-secondary {
  border-color: var(--fah-border-strong) !important;
  background-color: transparent !important;
  color: var(--fah-text-2) !important;
}
.btn-outline-secondary:hover, .btn-outline-secondary:active, .btn-outline-secondary:focus {
  color: var(--fah-text) !important;
  border-color: var(--fah-primary) !important;
  background-color: var(--fah-surface-muted) !important;
}

/* ปุ่ม submit ที่ต่อท้าย input (input-group-append) = azure solid (เป็น action ชัดเจน)
   เช่น ปุ่ม "ถอน" ในหน้า fgf-withdraw */
.input-group-append button[type="submit"],
.input-group-append .btn[type="submit"] {
  border-color: var(--fah-primary-hover) !important;
  background-image: var(--fah-sheen), var(--fah-grad-brand) !important;
  background-color: var(--fah-primary) !important;
  color: #fff !important;
  box-shadow: var(--fah-shine-brand) !important;
}

/* ---------------- FORMS ---------------- */
.form-control,
.input-group-text {
  background-color: var(--fah-surface-raised) !important;
  border-color: var(--fah-border-strong) !important;
  color: var(--fah-text) !important;
}
.form-control::placeholder { color: var(--fah-text-muted); }
input.form-control::placeholder { color: var(--fah-text-muted); }
.form-control:active, .form-control:focus,
.input-group-text:active, .input-group-text:focus {
  color: var(--fah-text);
  border-color: var(--fah-primary);
}
.custom-select {
  background-color: var(--fah-primary-subtle) !important;
  border: 1.5px solid #78A4FF !important;
  color: var(--fah-text) !important;
  border-radius: 6px !important;
}
.custom-select:focus {
  border-color: var(--fah-primary) !important;
  box-shadow: 0 0 0 3px rgba(26, 98, 255, 0.45) !important;
  outline: none !important;
}

.btn.btn-amount-clear {
  background-color: var(--fah-gold-bright) !important;
  border-color: var(--fah-border-strong) !important;
  color: var(--fah-surface) !important;
}

.md-stepper-horizontal.yellow .md-step.active .md-step-circle {
  background-color: var(--fah-primary-active) !important;
}

.bank-name {
  color: var(--fah-navy) !important;
}

/* ---------------- CARDS / TABLES ---------------- */
.card { background-color: var(--fah-surface); color: var(--fah-text); }
/* ตัวหนังสือ .text-white ในการ์ดสว่าง (เช่น คำอธิบายโปรโมชั่น) → เข้มอ่านชัด
   (chrome navy ไม่ใช่ .card จึงไม่โดน) */
.card .text-white,
.card-body .text-white { color: var(--fah-text-2) !important; }
/* term-condition: เนื้อหา <p color:#848E9C> เทาจาง คอนทราสต์ต่ำ → เข้มอ่านสบาย
   (.terms unique เฉพาะหน้านี้ · inline ไม่มี !important) */
body:has(.terms) [style*="#848E9C"] { color: var(--fah-text-2) !important; }
.table { color: var(--fah-text); }
/* เส้นแบ่ง row ชัดขึ้น (เดิม #D7E1EF จมพื้น) + เน้นเส้นใต้หัวตารางด้วย azure */
.table thead th { border-bottom: 2px solid var(--fah-primary) !important; }
.table td, .table th { border-top-color: var(--fah-border-strong) !important; }
.table.table-striped tbody tr:nth-of-type(odd) { background-color: #EFF5FF; }

/* ---------------- NAV TABS ---------------- */
.nav-tabs { border-bottom-color: var(--fah-border-strong); }
.nav-tabs .nav-link { color: var(--fah-text-muted); }
.nav-tabs .nav-link.active {
  color: var(--fah-primary-active);
  border-bottom: 4px solid var(--fah-primary) !important;
}
.nav-tabs .nav-link.active .fas { color: var(--fah-primary); }

/* ---------------- RESULT TAB (#resultTab pills) ---------------- */
#resultTab > li { border-radius: 10px; transition: all .2s ease; }
#resultTab > li:not(.list_current) { background-color: var(--fah-surface-muted); }
#resultTab > li > a { color: var(--fah-text-muted) !important; font-weight: 600; }
#resultTab > li.list_current {
  background-image: var(--fah-sheen), var(--fah-grad-brand) !important;
  background-color: var(--fah-primary) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.45), 0 4px 12px rgba(26,98,255,0.30);
}
#resultTab > li.list_current > a { color: #fff !important; }

/* ---------------- DIALOG MODALS (ไม่รวม fullscreen) ---------------- */
.modal .modal-content { background-color: var(--fah-surface-raised); color: var(--fah-text); }
.modal .modal-content .modal-header,
.modal .modal-content .modal-header .modal-title { color: var(--fah-text); }

/* ---------------- CARD-TABLE (ตารางผลหวย) ---------------- */
.card-table {
  border-color: var(--fah-border);
  background: var(--fah-surface);
  box-shadow: 0 4px 14px rgba(8,24,74,0.10), 0 1px 3px rgba(8,24,74,0.08);
}
.card-table .card-table-header {
  background-image: var(--fah-sheen-strong), var(--fah-grad-brand) !important;
  background-color: var(--fah-primary) !important;
  color: #fff !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.45), 0 6px 16px rgba(26,98,255,0.30);
}
.card-table .card-table-header .title,
.card-table .card-table-header .date { color: #fff !important; }
.card-table .card-table-title { color: var(--fah-text-muted); }
.card-table .lotto-prize-number.first-prize { color: var(--fah-accent); }
.card-table .lotto-prize-number.prize-tba { color: var(--fah-text-muted); }
.card-table hr { background-color: var(--fah-border); }

/* ---------------- PAGINATION ---------------- */
.pagination .page-item .page-link { color: var(--fah-text-muted); }
.pagination .page-item.active .page-link { color: var(--fah-primary); }

/* =============================================================
   2) CHROME — คง navy (ไอคอน SVG baked + ข้อความ inline !important)
   ============================================================= */
.navbar {
  background-color: var(--fah-navy) !important;
  border-bottom: 1px solid var(--fah-border-onnavy) !important;
}
.navbar .navbar-toggler-icon { color: var(--fah-primary-bright); }

#user-bar { background-color: var(--fah-navy) !important; border-bottom: 0 !important; }
.user-bar .username { background-color: var(--fah-navy-pill); }
#user-bar .text-primary { color: var(--fah-primary-bright) !important; }

#navbar-header { background-color: var(--fah-navy) !important; color: var(--fah-primary-bright) !important; }
#navbar-header marquee, #navbar-header a { color: var(--fah-on-navy) !important; }
.news-bar { color: var(--fah-on-navy-muted); }
.news-bar a { color: var(--fah-on-navy); }

.tabbar { background: var(--fah-navy) !important; border-top: 1px solid var(--fah-border-onnavy) !important; }
.tabbar ul li a { color: var(--fah-on-navy-muted); }
.tabbar ul li.active a { color: var(--fah-on-navy); }

.modal.modal-fullscreen { background-color: var(--fah-navy) !important; }
.modal.modal-fullscreen .modal-content {
  background-color: var(--fah-navy) !important;
  color: var(--fah-on-navy) !important;
}
.main-nav .nav-item .nav-link span { color: var(--fah-on-navy-muted); }
.main-nav .nav-item .nav-link:hover span,
.main-nav .nav-item .nav-link:focus span,
.main-nav .nav-item .nav-link:active span { color: var(--fah-on-navy); }
.main-nav .nav-item .nav-link .circle {
  border-color: var(--fah-border-onnavy);
  background-color: var(--fah-navy-raised);
}

footer { background-color: var(--fah-navy); color: var(--fah-on-navy); }
footer strong { color: var(--fah-primary-bright); }

/* =============================================================
   3) HOME — เฉพาะหน้า home.html
   ============================================================= */

/* ---------------- MAIN MENU (.main-services-container) — เข้ม พรีเมียม glossy ---------------- */
.main-services-container {
  background-image:
    linear-gradient(180deg, rgba(255,255,255,0.10) 0%, rgba(255,255,255,0) 38%),
    var(--fah-grad-navy) !important;
  background-color: var(--fah-navy) !important;
  border: 1px solid rgba(120,164,255,0.55) !important;
  box-shadow: var(--fah-shine-navy) !important;
}
.main-services-container:hover {
  border-color: var(--fah-primary-bright) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.28),
    0 0 0 1px rgba(26,98,255,0.30),
    0 14px 32px rgba(26,98,255,0.34) !important;
  transform: translateY(-5px);
}
/* หัวข้อเมนูหลัก → gold gradient text (พรีเมียมบน navy) */
.header-gold,
.header-services,
.header-sub-services {
  background: var(--fah-grad-gold) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

/* ---------------- SECONDARY MENU (.custom-service-btn) — เด่นกว่าเมนูหลัก (azure glossy) ---------------- */
.custom-service-btn .menu-service-container {
  background-image: var(--fah-sheen-strong), var(--fah-grad-brand) !important;
  background-color: var(--fah-primary) !important;
  border: 1px solid #9DBBFF !important;
  border-radius: 14px !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.55),
    0 8px 22px rgba(26,98,255,0.34) !important;
}
.custom-service-btn .menu-service-container:hover {
  border-color: #fff !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.65),
    0 12px 28px rgba(26,98,255,0.42) !important;
  transform: translateY(-3px);
}
.custom-service-btn .menu-service-header { color: #fff !important; }
.custom-service-btn .menu-service-container .circle {
  border-color: rgba(255,255,255,0.6) !important;
  background-color: rgba(255,255,255,0.14) !important;
}
/* แก้ปัญหา (mobile): การ์ดเมนูรองสูงไม่เท่ากัน + ข้อความยาวล้นกล่อง
   วิธี: col เป็น flex ให้การ์ดยืดเต็มความสูงแถว + min-height baseline
   + clamp ป้าย 2 บรรทัด โดยจองพื้นที่ 2 บรรทัดไว้ → ทุกใบเรียงตรงกัน */
@media (max-width: 991.98px) {
  .custom-service-btn { display: flex !important; }
  .custom-service-btn .menu-service-container {
    width: 100% !important;
    min-height: 84px !important;
    justify-content: center !important;
  }
  .custom-service-btn .menu-service-header {
    display: -webkit-box !important;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.2 !important;
    min-height: 2.4em;            /* จอง 2 บรรทัด */
    text-align: center;
    word-break: break-word;
  }
}

/* ---------------- MOBILE LAYOUT 2 (.mobile-main-content) ----------------
   เอาพื้นหลังออก → โชว์ gradient หรูของ page ด้านล่าง (กลมกลืนธีม light) */
.mobile-main-content {
  background-color: transparent !important;
  background-image: none !important;
}
/* บังคับฟอนต์ mmc ให้ตรงกับเว็บ (เดิม Noto Sans Thai/Prompt ไม่โหลด → หลุด)
   ใช้ [class*="mmc-"] เพื่อเลี่ยงไอคอน Font Awesome */
.mobile-main-content [class*="mmc-"] {
  font-family: 'Anuphan', 'Sarabun', sans-serif !important;
}
/* กันป้ายเมนูในแถบข้างตัวอักษรตก (รองรับ metric ฟอนต์ใหม่) */
.mobile-main-content .mmc-menu-item .mmc-menu-label {
  font-size: 12px !important;
  line-height: 1.25 !important;
  max-height: none !important;
}
.mmc-menu-item,
.mmc-featured-card,
.mmc-grid-card {
  background-image:
    linear-gradient(180deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0) 40%),
    var(--fah-grad-navy) !important;
  background-color: var(--fah-navy-raised) !important;
  border: 1px solid rgba(120,164,255,0.40) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.16), 0 8px 20px rgba(8,24,74,0.30) !important;
}
.mmc-menu-item.active,
.mmc-menu-item:hover {
  border-color: var(--fah-primary-bright) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.22),
    0 0 0 1px rgba(26,98,255,0.30),
    0 10px 24px rgba(26,98,255,0.32) !important;
}
.mmc-menu-label { color: var(--fah-on-navy-muted) !important; }
.mmc-menu-item.active .mmc-menu-label,
.mmc-card-title, .mmc-card-subtitle,
.mmc-grid-card-name {
  background: var(--fah-grad-gold) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

/* ---------------- USER CREDIT BOX ---------------- */
#user-credit-box { color: var(--fah-on-navy) !important; }

/* =============================================================
   4) PUBLIC PAGES — login / register / landing / forgot
   (body ไม่มี class — base canvas/typography ครอบผ่าน selector `body` แล้ว)
   ============================================================= */

/* ---------------- REGISTER — การ์ดฟอร์มดำ → light + stepper ทอง → azure ----
   (override inline <style> ใน register.html ที่โหลดก่อน fah2026.css) */
div.form-outer-container {
  background-color: var(--fah-surface) !important;
  border: 1px solid var(--fah-border) !important;
  box-shadow: 0 10px 30px rgba(8,24,74,0.12) !important;
}
#progress { background-color: var(--fah-primary) !important; }
.step-button {
  background: var(--fah-surface-muted) !important;
  border-color: var(--fah-border-strong) !important;
  color: var(--fah-text) !important;
}
.step-active {
  background: var(--fah-grad-brand) !important;
  border-color: var(--fah-primary-hover) !important;
  box-shadow: 0 0 14px rgba(26,98,255,0.45) !important;
  color: #fff !important;
}
.step-title { color: var(--fah-text) !important; }
/* ปุ่ม/ป้ายทอง-เงิน ในฟอร์ม register → azure / neutral */
a.btn-register, .btn-gold {
  background: var(--fah-grad-brand) !important;
  border-color: var(--fah-primary-hover) !important;
  color: #fff !important;
}
a.btn-login {
  background: linear-gradient(180deg, #FFFFFF 0%, #E3ECFA 100%) !important;
  border-color: var(--fah-border-strong) !important;
  color: var(--fah-text) !important;
}
h2.register-title {
  background: var(--fah-grad-text) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  border-image: linear-gradient(90deg, transparent, var(--fah-primary) 30%, var(--fah-primary) 70%, transparent) 100% 0 !important;
}

/* ---------------- AUTH CTA รอง (login/landing) → GOLD premium ----------------
   ปุ่ม auth "ลำดับรอง" บนหน้า public (register บน login, login บน landing) เดิม
   เป็น btn-secondary อ่อน → คนมองข้าม → ทำเป็นทองพรีเมียม เด่นคู่กับ primary azure */
body:not(.page-home) a.btn-secondary[href*="/register"],
body:not(.page-home) a.btn-secondary[href*="/login"] {
  border: 1px solid #B07F14 !important;
  background-image:
    linear-gradient(180deg, rgba(255,255,255,0.45) 0%, rgba(255,255,255,0) 55%),
    linear-gradient(180deg, #F6D87A 0%, #DEAE2C 48%, #B07F14 100%) !important;
  background-color: #DEAE2C !important;
  color: #3F2B0B !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6), 0 6px 16px rgba(199,144,28,0.38) !important;
}
body:not(.page-home) a.btn-secondary[href*="/register"]:hover,
body:not(.page-home) a.btn-secondary[href*="/register"]:focus,
body:not(.page-home) a.btn-secondary[href*="/login"]:hover,
body:not(.page-home) a.btn-secondary[href*="/login"]:focus {
  border-color: #A2710F !important;
  background-image:
    linear-gradient(180deg, rgba(255,255,255,0.5) 0%, rgba(255,255,255,0) 55%),
    linear-gradient(180deg, #FBE59A 0%, #DEAE2C 48%, #A2710F 100%) !important;
  color: #3F2B0B !important;
}

/* ---------------- LOGIN — ลิงก์ icon-prepend (ลืมรหัส/กฎ) ----------------
   ตัวอักษรล็อกสีอ่อน inline `color:#d9e0ea !important` → ใช้ -webkit-text-fill-color
   (override สีที่แสดงผลเหนือ color และ inline ไม่ได้ตั้งค่านี้) ให้เป็นสีเข้มเลย */
body:not(.page-home) a.icon-prepend[href*="/forgot"],
body:not(.page-home) a.icon-prepend[href*="/rules"],
body:not(.page-home) a.icon-prepend[href*="/forgot"] *,
body:not(.page-home) a.icon-prepend[href*="/rules"] * {
  color: var(--fah-text) !important;
  -webkit-text-fill-color: var(--fah-text) !important;
}

/* ---------------- LANDING — เก็บรายละเอียด ---------------- */
/* section.bg-dark.pb-0 เอาพื้นหลังออก (สีเข้มไม่เข้าธีม) */
section.bg-dark.pb-0 { background-color: transparent !important; }
/* .main-service-item (สไลด์ "หวยออนไลน์" ใน section.bg-dark) พื้น #1f2630 ของตัวเอง
   → โปร่งใส + ข้อความเข้ม + ไอคอน azure */
.main-service-group .main-service-item {
  background-color: transparent !important;
  color: var(--fah-text) !important;
}
.main-service-group .main-service-item h4 { color: var(--fah-text) !important; }
.main-service-group .main-service-item .icon { color: var(--fah-primary) !important; }
/* #navbar-header (marquee เนื้อหาในหน้านี้) พื้นจางแทบมองไม่เห็น + ตัวอักษรเข้มอ่านง่าย */
body:not(.page-home) #navbar-header {
  background-color: rgba(26,98,255,0.05) !important;
  color: var(--fah-text) !important;
  border-bottom: 1px solid rgba(26,98,255,0.10) !important;
}
body:not(.page-home) #navbar-header marquee,
body:not(.page-home) #navbar-header a {
  color: var(--fah-text-2) !important;
}

/* =============================================================
   5) LOTTO BETTING UI — style-lotto-set.min.css (teal/gold/เทา → azure)
   ============================================================= */

/* ปุ่ม/เซลล์ active: teal linear-gradient(#338aa7,#256378) → azure */
.activation,
.btn-panghuay.activation2,
.btn-panghuay.active,
.btn-type2 .input-group .form-control.activation2 {
  background-image: var(--fah-grad-brand) !important;
  border-color: var(--fah-primary-hover) !important;
  color: #fff !important;
}

/* เซลล์ตัวเลขปกติ (.btn-panghuay) ขาว → light themed */
.btn-panghuay {
  border-color: var(--fah-border) !important;
  background: var(--fah-surface) !important;
  color: var(--fah-text) !important;
}
.btn-panghuay:hover,
.row-btn-tanghuay .input-group:hover {
  background-color: var(--fah-surface-muted) !important;
  color: var(--fah-text) !important;
}
.btn-type2 .input-group .form-control {
  background: var(--fah-primary-subtle) !important;
  color: var(--fah-text) !important;
}
#goBottom {
  background: var(--fah-primary-active) !important;
}
.btn-type2 .input-group-append,
.btn-type2 .input-group-append .input-group-text {
  background-color: var(--fah-surface-muted) !important;
  color: var(--fah-text) !important;
}
/* ช่องกรอกเลข (.number-input) — เดิมโปร่งใส/ขอบจาง กลืนพื้น → กล่องชัด มีมิติ */
.number-input {
  background: var(--fah-surface-raised) !important;
  border: 1.5px solid #9DBBFF !important;
  color: var(--fah-text) !important;
  border-radius: 8px !important;
  box-shadow: inset 0 2px 5px rgba(8,24,74,0.10) !important;
}
.mock-cursor, .number-input .caret { background-color: var(--fah-primary) !important; }

/* ปุ่มกดเลข (numpad: .btn-number) — azure solid glossy ฟ้าสดเร้าใจ น่ากด */
.btn-number {
  background-image: var(--fah-sheen), var(--fah-grad-brand) !important;
  background-color: var(--fah-primary) !important;
  border: 1px solid var(--fah-primary-hover) !important;
  color: #fff !important;
  border-radius: 12px !important;
  font-weight: 700 !important;
  box-shadow: var(--fah-shine-brand) !important;
}
.btn-number:hover, .btn-number:active, .btn-number:focus {
  color: #fff !important;
  border-color: var(--fah-primary-active) !important;
  background-image: var(--fah-sheen), var(--fah-grad-brand-h) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.55),
    0 0 0 1px rgba(26,98,255,0.30),
    0 8px 20px rgba(26,98,255,0.45) !important;
}

/* แท็บประเภท: underline ทอง #F0B90B → azure */
.tab-pang .nav-link { color: var(--fah-text-muted) !important; }
.tab-pang .nav-link.active {
  border-bottom: 4px solid var(--fah-primary) !important;
  color: var(--fah-primary-active) !important;
}

/* nav-pills active เทา #545b62 → azure */
.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
  background-color: var(--fah-primary) !important;
  border-color: var(--fah-primary-hover) !important;
  color: #fff !important;
}

/* การ์ดเนื้อหาหวย เทา #f5f5f5 → light */
.lotto_content_page .card {
  background-color: var(--fah-surface) !important;
  color: var(--fah-text) !important;
}

/* stake cells (เทา) → themed */
.stake-number,
.row-stake .stake-number {
  background-color: var(--fah-surface-muted) !important;
  color: var(--fah-text) !important;
}
.row-stake .input-group-text {
  background-color: var(--fah-surface-raised) !important;
  color: var(--fah-text) !important;
}
.row-stake .input-group-prepend .stake-number {
  border-color: var(--fah-border) !important;
  color: var(--fah-text) !important;
}

/* btn-red (ล้าง/ยกเลิก) ดำ+แดง → outline ruby บนพื้นสว่าง */
.btn-red {
  background: var(--fah-surface) !important;
  color: var(--fah-accent) !important;
  border: 2px solid var(--fah-accent) !important;
}
/* ปุ่มสถานะหวยในการ์ด: เปิดรับแทง (ทอง #FCD535 หลุดธีม) → azure glossy · ปิด → neutral */
.btn-lotto-open {
  border-color: var(--fah-primary-hover) !important;
  background-image: var(--fah-sheen), var(--fah-grad-brand) !important;
  background-color: var(--fah-primary) !important;
  color: #fff !important;
  box-shadow: var(--fah-shine-brand) !important;
}
.btn-lotto-closed {
  background-color: var(--fah-surface-muted) !important;
  color: var(--fah-text-muted) !important;
  border-color: var(--fah-border-strong) !important;
}

/* หมายเหตุ: .exceed_limit / .number-exist / .number-duplicate / .stake-number-limit
   เป็นสีสถานะ (เกินลิมิต/ซ้ำ/มีอยู่) — คงโทนส้ม/เหลือง/แดงไว้เพื่อสื่อความหมาย */

/* overlay gating (เดิม rgba(0,0,0,0.7) ดำทึบ) → navy frost เข้าธีม ยังสื่อ "ล็อก" */
.overlay { background: rgba(8, 24, 74, 0.50) !important; }

/* แถบนับเวลา (.alert inline bg #161A26 ดำ) → navy premium banner เข้าธีม
   (ข้อความ "ระยะเวลา" ทอง locked !important + timer ขาว → อ่านชัดบน navy) */
.alert:has(.running-time) {
  background: var(--fah-grad-navy) !important;
  border: 1px solid rgba(120, 164, 255, 0.28) !important;
  border-radius: 12px !important;
}

/* =============================================================
   6) ACCOUNT / SETTINGS — account-setting ฯลฯ
   ============================================================= */

/* <span> ตัวอักษรขาว inline บนพื้นสว่าง → เข้ม
   - color:#fff;  → ค่าโปรไฟล์ account-setting (ลิงก์การ์ดเกมเป็น <a> ทับรูป คงขาว)
   - color:#ffffff → span.number เช่น "(0.6%)" ใน fgf ; ยกเว้น .running-time (timer บน navy)
   - ไม่โดน credit chrome (#ebeef7) */
span[style*="color:#fff;"],
span.number[style*="#ffffff"]:not(.running-time) {
  color: var(--fah-text) !important;
  -webkit-text-fill-color: var(--fah-text) !important;
}

/* กล่องลิงก์แนะนำเพื่อน (textarea readonly พื้น #1f2630 ขาว) → light input เข้าธีม */
textarea[readonly][style*="#1f2630"] {
  background-color: var(--fah-surface-raised) !important;
  color: var(--fah-text) !important;
  -webkit-text-fill-color: var(--fah-text) !important;
  border: 1px solid var(--fah-border-strong) !important;
}

/* ปุ่ม "เปลี่ยนรหัสผ่าน" (btn-withdraw azure-tint จาง → ดูไม่เป็นปุ่ม)
   → azure solid glossy ชัดเจน (เจาะ href ไม่กระทบปุ่มถอนเครดิตหน้า home) */
body.theme-default.page-home a.btn-withdraw[href*="/change-password"],
a.btn-withdraw[href*="/change-password"] {
  border: 1px solid var(--fah-primary-hover) !important;
  background-image: var(--fah-sheen), var(--fah-grad-brand) !important;
  background-color: var(--fah-primary) !important;
  color: #fff !important;
  box-shadow: var(--fah-shine-brand) !important;
}
body.theme-default.page-home a.btn-withdraw[href*="/change-password"]:hover,
a.btn-withdraw[href*="/change-password"]:hover,
a.btn-withdraw[href*="/change-password"]:active,
a.btn-withdraw[href*="/change-password"]:focus {
  background-image: var(--fah-sheen), var(--fah-grad-brand-h) !important;
  color: #fff !important;
}

/* =============================================================
   7) GAME LANDINGS — list-game-control pill tabs
   ใช้ 4 หน้า: crash-game / shooting-fish / slot-game-list / slot-landing
   ============================================================= */
/* inactive เทา #313844 + ไอคอนขาว → navy glossy (ไอคอนขาวอ่านได้บน navy)
   active gold flat #E6B12F + ไอคอนดำ → premium-gold glossy (ไอคอนดำอ่านได้บน gold)
   = เข้าธีม FAH (navy + premium gold) · glossy · เหมือนกันทุกหน้า */
section.container > ul.list-game-control-container > li {
  background-color: var(--fah-navy-raised) !important;
  background-image:
    linear-gradient(180deg, rgba(255,255,255,0.10) 0%, rgba(255,255,255,0) 45%),
    var(--fah-grad-navy) !important;
  border: 1px solid rgba(120,164,255,0.30) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.16), 0 4px 12px rgba(8,24,74,0.25) !important;
}
section.container > ul.list-game-control-container > li > a {
  color: var(--fah-on-navy) !important;
}
section.container > ul.list-game-control-container > li.active {
  background-color: #DEAE2C !important;
  background-image:
    linear-gradient(180deg, rgba(255,255,255,0.45) 0%, rgba(255,255,255,0) 55%),
    linear-gradient(180deg, #F6D87A 0%, #DEAE2C 48%, #B07F14 100%) !important;
  border-color: #C7901C !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.55), 0 6px 16px rgba(199,144,28,0.38) !important;
}
section.container > ul.list-game-control-container > li.active > a {
  color: #3F2B0B !important;
}

/* ---------------- GAME CARDS (styles.css) — REDESIGN เป็นการ์ด light เดียว
   ใช้ร่วม 4 หน้า: crash/shooting-fish/slot-game-list/slot-landing ----
   เดิม: แถบ navy ทึบทับบนรูป (absolute bottom:10-15px) → แยกส่วน เหลี่ยม
        ชื่อขาวจมรูป ดูแปลก ไม่กลมกลืนกับพื้นสว่าง
   ใหม่: รูปด้านบน + caption พื้นสว่างตัวหนังสือเข้มไหลใต้รูป = การ์ดเดียวโค้งมน
        กลมกลืนธีม light สบายตา (App Store style) */

/* การ์ดเซลล์: ปล่อยความสูง auto ให้พอดีรูป+caption */
.list-game-item { height: auto !important; }

/* wrapper = การ์ด light โค้งมนทั้งใบ + clip รูปให้เข้ารูป + เงานุ่ม */
.list-game-item-wrapper {
  display: flex !important;
  flex-direction: column !important;
  background: var(--fah-surface-raised) !important;
  border: 1px solid rgba(26,98,255,0.16) !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  box-shadow: 0 4px 14px rgba(8,24,74,0.10) !important;
  transition: box-shadow .18s ease, border-color .18s ease, transform .18s ease !important;
}

/* รูป: เต็มด้านบน เอา gradient/padding/มุมโค้งของตัวเองออก (ให้ wrapper clip)
   .list-game-image เป็น flex column เพื่อรองรับทั้ง 2 โครงสร้าง:
   - shooting-fish: .list-game-image > a > img  (caption เป็น sibling ใน wrapper)
   - slot/landing : .list-game-image > .game-image-bg + .list-game-bottom (caption ซ้อนใน image) */
.list-game-image {
  display: flex !important;
  flex-direction: column !important;
  background: transparent !important;
  padding: 0 !important;
  border-radius: 0 !important;
  height: auto !important;
}
.list-game-image > a { border-radius: 0 !important; }
.list-game-image > a > img { border-radius: 0 !important; display: block !important; width: 100% !important; }
/* การ์ดแบบ background-image (slot/landing): ให้ภาพมีสัดส่วนคงที่ ไม่บีบ caption
   slider มี <a.slide-slick-container-image> สูง 170px คงที่ → ปลดเป็น auto
   ไม่งั้นรูป square (aspect 1/1) จะล้นกรอบไปทับ/ดัน caption หาย */
a.slide-slick-container-image,
.list-game-image > a:has(> .game-image-bg) {
  height: auto !important;
  display: block !important;
}
.game-image-bg {
  position: static !important;
  width: 100% !important;
  aspect-ratio: 1 / 1 !important;
  height: auto !important;
  min-height: 0 !important;
  flex: 0 0 auto !important;
  border-radius: 0 !important;
}

/* caption: เดิม overlay navy ทับรูป → พื้น glossy azure-tint ไหลใต้รูป
   (sheen ไฮไลต์บน + ไล่ขาว→ฟ้าอ่อน + inset highlight = มันวาว ไม่จืดเหมือนขาวล้วน) */
.list-game-bottom,
.list-game-bottom-favourite,
.list-game-bottom-popular,
.list-game-bottom-lasted {
  position: static !important;
  bottom: auto !important;
  width: 100% !important;
  background-image:
    linear-gradient(180deg, rgba(255,255,255,0.65) 0%, rgba(255,255,255,0) 55%),
    linear-gradient(180deg, #FBFDFF 0%, #E6EFFF 100%) !important;
  border-top: 1px solid rgba(26,98,255,0.16) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.85) !important;
  padding: 9px 6px !important;
}
.game-title {
  color: var(--fah-text) !important;
  font-weight: 600 !important;
  text-shadow: none !important;
}

/* HOVER: ยกการ์ด + ขอบ azure แบรนด์ (เดิมกรอบทอง muddy) */
.list-game-item-wrapper:hover {
  border-color: var(--fah-primary) !important;
  box-shadow: 0 10px 24px rgba(26,98,255,0.26) !important;
  transform: translateY(-2px) !important;
  filter: none !important;
}
.list-game-border-gold:hover { background: transparent !important; padding: 0 !important; }

/* slider เกมล่าสุด (slick) ความสูงคงที่ 210/420px → auto ไม่ให้ clip caption ใต้รูป */
.list-game-slide-container ul { height: auto !important; }
.list-game-item.slick-slide { height: auto !important; }

/* ปุ่มค้นหาเกม #search-submit (ไอคอนแว่นขยาย) — เดิมพื้นขาว ดูไม่ออกว่ากดได้ → azure ชัดเจน */
#search-submit {
  background: var(--fah-grad-brand) !important;
  border: 1px solid var(--fah-primary-active) !important;
  border-left: 0 !important;
  cursor: pointer !important;
  padding: 0 14px !important;
}
#search-submit:hover { background: var(--fah-grad-brand-h) !important; }
#search-submit img { filter: brightness(0) invert(1) !important; }   /* ไอคอน svg → ขาว เห็นชัดบน azure */

/* =============================================================
   8) FOOTBALL — live-match view (football.css)
   ส่วนนี้ dark by design (hero รูป + การ์ดแมตช์ตัวอักษรขาว + team logo สีแบรนด์)
   → ทำเป็น FAH navy section + accent azure + ทองพรีเมียม (league)
   คงแดงไว้ที่ LIVE/watch (semantic) · team logo คงสีแบรนด์ทีม
   ============================================================= */

/* container ดำ #000 → navy (แถบบน) · league list → ไม่มีพื้นหลัง (โชว์พื้น page) */
.football-list { background: var(--fah-grad-navy) !important; }
.football-list-container { background: transparent !important; }

/* live-game-text "รายการดูบอลสด" (.action-section) บนพื้นสว่าง → gradient azure แบรนด์ เห็นชัด
   (.live-game-text มีเฉพาะ football.html → scope อยู่แล้ว) */
.action-section .live-game-text {
  background: linear-gradient(180deg, #3D7BFF 0%, #1A62FF 45%, #0B3FBC 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: var(--fah-primary-active) !important;   /* fallback */
  text-shadow: none !important;
}
/* โลโก้แบรนด์ "RB7" (header พื้นสว่าง) → gradient azure→navy เข้ม (เข้าธีม คอนทราสต์สูง) */
.justify-content-lg-start .live-game-text {
  background: linear-gradient(180deg, #1A62FF 0%, #0B3FBC 50%, #0C1A3C 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  filter: drop-shadow(0 1px 1px rgba(8,24,74,0.30)) !important;
  letter-spacing: 0.5px;
}

/* เวลาเตะในการ์ดแมตช์ (.match-item .time-info) inherit สีเข้ม จมการ์ด navy → ขาวชัด */
.match-item .time-info,
.match-item .time-info span {
  color: var(--fah-on-navy) !important;
  -webkit-text-fill-color: var(--fah-on-navy) !important;
}

/* =============================================================
   9) LOTTO-LANDING ONLY — scope ด้วย :has() (เฉพาะหน้านี้)
   marker: มี .section-subtitle + .btn-lotto-open แต่ไม่มี .main-services-container
   (ตรวจแล้ว match เฉพาะ lotto-landing.html หน้าเดียว)
   ============================================================= */

/* 1) section-subtitle → ชิดซ้าย + เส้นใต้คู่ (DS double-line-header) azure/ruby */
body:has(.section-subtitle):has(.btn-lotto-open):not(:has(.main-services-container)) .section-subtitle {
  display: block !important;
  width: auto !important;
  text-align: left !important;
  margin: 0 0 18px 0 !important;
  padding: 0 !important;
  background: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  color: var(--fah-primary-active) !important;
  font-weight: 700 !important;
  letter-spacing: 0.3px !important;
}
body:has(.section-subtitle):has(.btn-lotto-open):not(:has(.main-services-container)) .section-subtitle::before {
  content: none !important;
}
body:has(.section-subtitle):has(.btn-lotto-open):not(:has(.main-services-container)) .section-subtitle::after {
  content: "" !important;
  position: static !important;
  display: block !important;
  transform: none !important;
  margin: 0.45rem 0 0 0 !important;
  width: 54px !important;
  height: 3px !important;
  border-radius: 3px !important;
  background: var(--fah-primary) !important;
  box-shadow: 0 6px 0 -3px var(--fah-accent) !important;   /* เส้นที่สอง (ruby) ใต้ลงไป */
}

/* 2) casino-item → box-shadow จาง ๆ + hairline azure บาง */
body:has(.section-subtitle):has(.btn-lotto-open):not(:has(.main-services-container)) .casino-item {
  border-radius: 16px !important;
  box-shadow:
    0 0 0 1px rgba(26,98,255,0.28),
    0 4px 14px rgba(8,24,74,0.10) !important;
}

/* ---- LEAGUE SECTION — navy glossy สะอาด สบายตา (ลดทอง, accent azure) ---- */
/* หัวลีก: glossy navy-raised bar + ขอบล่าง azure */
.league-header {
  background-image:
    linear-gradient(180deg, rgba(255,255,255,0.10) 0%, rgba(255,255,255,0) 50%),
    linear-gradient(180deg, #16306A 0%, #0E2050 100%) !important;
  border: 1px solid rgba(120, 164, 255, 0.28) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.16), 0 4px 12px rgba(8,24,74,0.28) !important;
}
.league-name { color: var(--fah-on-navy) !important; }          /* ขาว สะอาด */
.league-date { color: var(--fah-primary-bright) !important; }   /* azure อ่อน */

/* การ์ดแมตช์: เอา overlay มืดออก → การ์ด navy glossy สะอาด ขอบ azure */
.match-item {
  background-image:
    linear-gradient(180deg, rgba(255,255,255,0.07) 0%, rgba(255,255,255,0) 42%),
    linear-gradient(160deg, #18336F 0%, #0F2350 100%) !important;
  border: 1px solid rgba(120, 164, 255, 0.30) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.14), 0 6px 16px rgba(8,24,74,0.30) !important;
}
.match-item::after { display: none !important; }   /* เอา overlay ดำที่ทำให้ลายตา/มัวออก */
.match-item:hover {
  border-color: var(--fah-primary-bright) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.18), 0 10px 24px rgba(26,98,255,0.28) !important;
}
.team-name { color: var(--fah-on-navy) !important; }    /* ชื่อทีม ขาวชัด */

/* search (#search-match) → navy-raised themed + focus azure */
#search-match.search-input,
.search-input {
  background: var(--fah-navy-raised) !important;
  color: var(--fah-on-navy) !important;
  -webkit-text-fill-color: var(--fah-on-navy) !important;
  border: 1px solid rgba(120, 164, 255, 0.30) !important;
}
#search-match.search-input::placeholder,
.search-input::placeholder { color: var(--fah-on-navy-muted) !important; }

/* ปุ่ม bet (ส้ม #ff8c00 / ทอง #EDAB0F) → azure glossy */
.football-list .bet-btn,
.bet-btn {
  background-color: var(--fah-primary) !important;
  background-image: var(--fah-sheen), var(--fah-grad-brand) !important;
  color: #fff !important;
}
.football-list .bet-btn:hover,
.bet-btn:hover {
  background-image: var(--fah-sheen), var(--fah-grad-brand-h) !important;
}

/* ปุ่ม action (น้ำตาล) / new-tab (ทอง) → azure */
.action-btn {
  background-image: var(--fah-sheen), var(--fah-grad-brand) !important;
  background-color: var(--fah-primary) !important;
  color: #fff !important;
}
.action-btn:hover {
  background-image: var(--fah-sheen), var(--fah-grad-brand-h) !important;
}
.new-tab-btn { background-color: var(--fah-primary) !important; color: #fff !important; }
.new-tab-btn.active { background-color: var(--fah-primary-active) !important; }

/* toggle เปิด: ส้ม → azure · search focus: ทอง → azure */
.toggle-switch input[type="checkbox"]:checked + .toggle-slider {
  background: var(--fah-grad-brand) !important;
  border-color: var(--fah-primary-bright) !important;
  box-shadow: 0 0 10px rgba(26, 98, 255, 0.35) !important;
}
.search-input:focus { box-shadow: 0 0 0 2px var(--fah-primary) !important; }

/* =============================================================
   10) LOTTO-RULE ONLY — แก้สีตัวอักษรที่อ่านยากบนพื้นการ์ดสว่าง
   marker: มี inline color:greenyellow + color:yellow (unique เฉพาะ lotto-rule.html)
   inline style ไม่มี !important → external !important ชนะ
   ============================================================= */

/* หัวข้อ section ทองอ่อน #E8BD70 → ทองเข้มอ่านชัด (คงลำดับชั้น premium) */
body:has([style*="color:greenyellow"]) [style*="color:#E8BD70"] {
  color: #9A6B0F !important;
}

/* เลขตัวอย่าง/สถานะ "เปิดรอบ" สีเขียวอ่อน (greenyellow / #b9efb7) → เขียวเข้มอ่านชัด */
body:has([style*="color:greenyellow"]) [style*="color:greenyellow"],
body:has([style*="color:greenyellow"]) [style*="color:#b9efb7"] {
  color: #1B8E3C !important;
}

/* เลขตัวอย่าง/สถานะ "รอผล" สีเหลือง/ครีม (yellow / #ffdea2) → อำพันเข้มอ่านชัด */
body:has([style*="color:greenyellow"]) [style*="color:yellow"],
body:has([style*="color:greenyellow"]) [style*="color:#ffdea2"] {
  color: #B5790A !important;
}

/* หัวข้อ/สถานะ "คืนโพย" สีชมพูแดงอ่อน (#FF5C78 / #FF5160) → ruby แบรนด์อ่านชัด */
body:has([style*="color:greenyellow"]) [style*="color:#FF5C78"],
body:has([style*="color:greenyellow"]) [style*="color:#FF5160"] {
  color: var(--fah-accent) !important;
}

/* ตารางอัตราจ่าย: ข้อความสีขาว #ffffff (ไม่มี !important) จมพื้นตารางสว่าง → เข้มอ่านชัด
   (chrome navy ใช้ #FFF !important ตัวพิมพ์ใหญ่ → ไม่โดน rule นี้) */
body:has([style*="color:greenyellow"]) [style*="color:#ffffff"],
body:has([style*="color:greenyellow"]) [style*="color: #ffffff"] {
  color: var(--fah-text) !important;
}

/* หัวตาราง "ประเภทเดิมพัน / ราคาจ่าย" สีจาง → azure เข้มอ่านชัด */
body:has([style*="color:greenyellow"]) .card-table-title {
  color: var(--fah-primary-active) !important;
}

/* =============================================================
   11) MAKE-LOTTO-NUMBER-LIST — modal "ดูเลขชุด" (#showNumberSetModal)
   panel ตารางเป็น navy #29313e + ตัวหนังสือจมพื้น → light surface DS อ่านชัด
   (modal ID นี้ unique เฉพาะหน้านี้ — scope ปลอดภัย)
   ============================================================= */

/* modal-content: การ์ดสว่าง โค้งมน เงานุ่ม + ขอบ azure จาง */
#showNumberSetModal .modal-content {
  border-radius: 18px !important;
  border: 1px solid rgba(26,98,255,0.16) !important;
  box-shadow: 0 18px 50px rgba(8,24,74,0.22) !important;
}

/* label "ชื่อเลขชุด" สีขาว #FFFFFF → เข้มอ่านชัด */
#showNumberSetModal strong[style*="#FFFFFF"] {
  color: var(--fah-text) !important;
}
/* รายละเอียด (90 ตัวเลข, วันที่) #8493C1 → muted แต่ยังอ่านได้ */
#showNumberSetModal [style*="#8493C1"] {
  color: var(--fah-text-muted) !important;
}

/* panel ตารางด้านใน: navy #29313e → light surface การ์ด DS */
#showNumberSetModal [style*="background-color: #29313e"] {
  background-color: var(--fah-primary-subtle) !important;   /* #EAF2FF */
  border: 1px solid rgba(26,98,255,0.18) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.65) !important;
}

/* หัวตาราง ประเภท/ตัวเลข สีขาว → azure เข้ม + เส้นใต้ azure */
#showNumberSetModal .table th[style*="#FFFFFF"] {
  color: var(--fah-primary-active) !important;
  border-bottom: 2px solid var(--fah-primary) !important;
}
/* แถวตาราง: ตัวหนังสือเข้มอ่านชัด + เส้นคั่นบาง + zebra */
#showNumberSetModal .table td {
  color: var(--fah-text) !important;
  border-color: rgba(26,98,255,0.12) !important;
}
#showNumberSetModal .table td.number {
  color: var(--fah-primary-active) !important;
  font-weight: 700 !important;
}
#showNumberSetModal .table tbody tr:nth-child(even) td {
  background-color: rgba(255,255,255,0.55) !important;
}

/* pagination chevron จาง → azure ชัดเจน เป็นปุ่มกลม */
#showNumberSetModal .pagination .page-link {
  color: var(--fah-primary) !important;
  background-color: #fff !important;
  border: 1px solid rgba(26,98,255,0.30) !important;
  border-radius: 8px !important;
  margin: 0 3px !important;
}
#showNumberSetModal .pagination .page-link:hover {
  background-color: var(--fah-primary-subtle) !important;
}
#showNumberSetModal .pagination .page-item.disabled .page-link {
  color: var(--fah-text-muted) !important;
  opacity: 0.45 !important;
}

/* ปุ่ม "ปิด" (.btn-default) → azure solid glossy เต็มใบ อ่านชัด เห็นเป็นปุ่มกดทันที */
#showNumberSetModal .btn-default {
  border: 1px solid var(--fah-primary-active) !important;
  background-image: var(--fah-sheen), var(--fah-grad-brand) !important;
  background-color: var(--fah-primary) !important;
  color: #fff !important;
  font-weight: 700 !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.35),
    0 6px 16px rgba(26,98,255,0.30) !important;
}
#showNumberSetModal .btn-default:hover,
#showNumberSetModal .btn-default:active,
#showNumberSetModal .btn-default:focus {
  background-image: var(--fah-sheen), var(--fah-grad-brand-h) !important;
  background-color: var(--fah-primary-hover) !important;
  border-color: var(--fah-primary-active) !important;
  color: #fff !important;
}

/* ---- ระดับหน้า (นอก modal) — scope: body:has(#showNumberSetModal) เฉพาะหน้านี้ ---- */

/* หัวตารางหลัก <th color:white> → azure เข้ม + เส้นใต้ azure (ขาวจมพื้นสว่าง) */
body:has(#showNumberSetModal) .table th[style*="color:white"] {
  color: var(--fah-primary-active) !important;
  border-bottom: 2px solid var(--fah-primary) !important;
}

/* หัวข้อย่อย .section-subtitle #848E9C (จาง) → muted เข้มขึ้นอ่านได้ */
body:has(#showNumberSetModal) .section-subtitle[style*="#848E9C"] {
  color: var(--fah-text-muted) !important;
}

/* badge นับจำนวน "x ตัวเลข" พื้นเทา #636d7c (ตัวหนังสือคอนทราสต์ต่ำ) → ป้าย azure-subtle อ่านชัด */
body:has(#showNumberSetModal) .badge-light[style*="#636d7c"] {
  background-color: var(--fah-surface-muted) !important;
  color: var(--fah-primary-active) !important;
  border: 1px solid rgba(26,98,255,0.22) !important;
  font-weight: 600 !important;
}

/* ปุ่ม "ดู" (.badge-view ไอคอนตา) เดิมกล่อง+ไอคอนขาวจมพื้น → azure solid เห็นชัดเป็นปุ่ม */
body:has(#showNumberSetModal) .badge-view {
  background-image: var(--fah-sheen), var(--fah-grad-brand) !important;
  background-color: var(--fah-primary) !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 8px !important;
  box-shadow: 0 2px 6px rgba(26,98,255,0.30) !important;
}
body:has(#showNumberSetModal) .badge-view i { color: #fff !important; }

/* legend สถานะ (JS สร้าง) — สีอ่อนจมพื้นสว่าง → เข้มอ่านชัด (เหมือน lotto-rule) */
body:has(#showNumberSetModal) [style*="color:#b9efb7"] { color: #1B8E3C !important; }   /* เปิดรอบ */
body:has(#showNumberSetModal) [style*="color:#ffdea2"] { color: #B5790A !important; }   /* รอผล */
body:has(#showNumberSetModal) [style*="color:#FF5160"] { color: var(--fah-accent) !important; }  /* คืนโพย */

/* =============================================================
   12) PARTNER / AFFILIATE — re-skin จาก custom-affiliate.css (navy+ทอง → FAH light)
   container IDs: #summary(overall) #member #member-daily #revenue #withdraw
   (#withdraw ใช้ร่วม fgf-withdraw — re-skin ช่วยทั้งคู่)
   PANE = :is(#summary,#member,#member-daily,#revenue,#withdraw) (เนื้อหาในแท็บ)
   PAGE = body:has(#summary,#member,#member-daily,#revenue,#withdraw) (chrome รอบนอก)
   ============================================================= */

/* การ์ดสถิติ: navy gradient #041828→#607D8B → การ์ด azure สว่าง premium */
:is(#summary,#member,#member-daily,#revenue,#withdraw) .card {
  background: linear-gradient(160deg, #FFFFFF 0%, #EAF2FF 100%) !important;
  border: 1px solid rgba(26,98,255,0.20) !important;
  box-shadow: 0 6px 18px rgba(8,24,74,0.10) !important;
  color: var(--fah-text) !important;
}
/* label การ์ด (.card-header.text-primary) → azure เข้ม, ค่าตัวเลข h4 → azure ตัวหนา */
:is(#summary,#member,#member-daily,#revenue,#withdraw) .card .card-header {
  color: var(--fah-primary-active) !important;
  font-weight: 700 !important;
}
:is(#summary,#member,#member-daily,#revenue,#withdraw) .card .card-footer h4,
:is(#summary,#member,#member-daily,#revenue,#withdraw) .card .card-body h4 {
  color: var(--fah-primary-active) !important;
  font-weight: 700 !important;
}
/* วงไอคอน ::after ขอบส้ม #F76D00 → ทองแบรนด์ (พื้นทองคงไว้ = premium) */
:is(#summary,#member,#member-daily,#revenue,#withdraw) .card .card-header::after {
  border-color: var(--fah-gold) !important;
}

/* หัวตาราง thead ทอง #FFDA7E→#B58614 → azure brand, th ขาวอ่านชัด */
:is(#summary,#member,#member-daily,#revenue,#withdraw) table thead {
  background: var(--fah-grad-brand) !important;
}
:is(#summary,#member,#member-daily,#revenue,#withdraw) table thead tr th {
  color: #fff !important;
}

/* input/select/date เข้ม #000d1f + ขอบทอง → surface สว่าง ขอบ azure ตัวหนังสือเข้ม */
:is(#summary,#member,#member-daily,#revenue,#withdraw) form.input-group.my-3 > input[type="text"],
:is(#summary,#member,#member-daily,#revenue,#withdraw) form.input-group.my-3 > input[type="number"],
:is(#summary,#member,#member-daily,#revenue,#withdraw) div.form-group > select,
:is(#summary,#member,#member-daily,#revenue,#withdraw) div.dp__input_wrap > input {
  background-color: var(--fah-surface) !important;
  border-color: var(--fah-primary) !important;
  color: var(--fah-text) !important;
}
/* เมนู datepicker (teleport ไป body) เข้ม → สว่าง */
body:has(#summary,#member,#member-daily,#revenue,#withdraw) div.dp__outer_menu_wrap .dp--menu-wrapper {
  background-color: var(--fah-surface-raised) !important;
  border-color: var(--fah-primary) !important;
  color: var(--fah-text) !important;
}

/* ปุ่มทอง (ค้นหา/คัดลอกลิงก์/btn-primary.btn-sm) → azure glossy */
:is(#summary,#member,#member-daily,#revenue,#withdraw) form.input-group.my-3 > button,
:is(#summary,#member,#member-daily,#revenue,#withdraw) .card-footer button.btn-primary {
  background: var(--fah-grad-brand) !important;
  border-color: var(--fah-primary-active) !important;
  color: #fff !important;
}

/* input ถอน #withdraw (ต้นฉบับ div#withdraw ... specificity สูงกว่า) → match ตรง */
div#withdraw form.input-group.my-3 > input[type="number"],
div#withdraw form.input-group.my-3 > input[type="text"] {
  background-color: var(--fah-surface) !important;
  border-color: var(--fah-primary) !important;
  color: var(--fah-text) !important;
}

/* การ์ดถอน #withdraw (พื้น #000d1f + footer zebra เข้ม) → สว่าง zebra azure
   (ใช้ selector ยาวตรงตามต้นฉบับเพื่อชนะ specificity ของ !important) */
div#revenue > div.w-100.mt-4 > div.card > div.card-footer > div:nth-child(odd),
div#withdraw > div.w-100.mt-4 > div.card > div.card-footer > div:nth-child(odd) {
  background-color: var(--fah-primary-subtle) !important;
}
div#revenue > div.w-100.mt-4 > div.card > div.card-footer > div:nth-child(even),
div#withdraw > div.w-100.mt-4 > div.card > div.card-footer > div:nth-child(even) {
  background-color: #ffffff !important;
}

/* pagination ทอง/เข้ม → azure */
body:has(#summary,#member,#member-daily,#revenue,#withdraw) .tab-pane.active > nav > ul.pagination > li.page-item > a {
  background-color: #fff !important;
  border: 1px solid rgba(26,98,255,0.30) !important;
  color: var(--fah-primary) !important;
}
body:has(#summary,#member,#member-daily,#revenue,#withdraw) .tab-pane.active > nav > ul.pagination > li.page-item.active > a,
body:has(#summary,#member,#member-daily,#revenue,#withdraw) .tab-pane.active > nav > ul.pagination > li.page-item > a:hover {
  background: var(--fah-grad-brand) !important;
  color: #fff !important;
}

/* แถวสรุปรายได้รายวัน (#revenue) พื้น inline rgb(21,30,37) เข้ม → surface สว่าง
   (แยก rule ละเอียด: หลีกเลี่ยง class ขึ้นต้น .-- ที่อาจทำให้ทั้ง list ถูกทิ้ง) */
/* ตัวหนังสือวันที่/ค่าในแถว (.--text-date / .--text-value) — ใช้ [class~] เลี่ยง parse .-- */
body:has(#revenue) [class~="--text-date"],
body:has(#revenue) [class~="--text-value"] {
  color: var(--fah-text) !important;
}

/* กล่อง "ไม่มีข้อมูล" (.loading) พื้น navy เข้ม → surface สว่าง ตัวหนังสือเข้ม */
:is(#summary,#member,#member-daily,#revenue,#withdraw) .loading {
  background: var(--fah-surface-muted) !important;
  color: var(--fah-text) !important;
  border: 1px solid var(--fah-border) !important;
}

/* แท็บ (.nav-tabs) — inactive muted, active azure + เส้นใต้ azure */
body:has(#summary,#member,#member-daily,#revenue,#withdraw) .nav-tabs .nav-link {
  color: var(--fah-text-muted) !important;
  border: 0 !important;
}
body:has(#summary,#member,#member-daily,#revenue,#withdraw) .nav-tabs .nav-link.active {
  color: var(--fah-primary-active) !important;
  background: transparent !important;
  border-bottom: 3px solid var(--fah-primary) !important;
}

/* badge "NEW" ส้ม-ชมพู → ruby แบรนด์ · เส้นคั่น affiliate · กล่อง remark เข้าธีม */
body:has(#summary,#member,#member-daily,#revenue,#withdraw) .badge-new {
  background: var(--fah-grad-accent) !important;
}
body:has(#summary,#member,#member-daily,#revenue,#withdraw) .choose-affiliate-wrapper {
  border-bottom-color: rgba(26,98,255,0.20) !important;
}
body:has(#summary,#member,#member-daily,#revenue,#withdraw) .alert.alert-primary {
  background: var(--fah-grad-brand) !important;
  color: #fff !important;
  border: 0 !important;
}

/* =============================================================
   13) VIP — vip-point / vip-privillage (ตาราง tier dark+ทองหม่น → navy+gold แบรนด์)
   marker: #DAA520 = vip-point เท่านั้น · #f5b936 = vip-privillage เท่านั้น
   (#161A26 มีในหน้า lotto ด้วย จึงต้อง scope ใต้ marker vip)
   แนวคิด: VIP = พรีเมียม → คงพื้นเข้มแต่เปลี่ยนเป็น brand navy + brand gold
   ============================================================= */

/* แผง/ตาราง VIP พื้น #161A26 (ดำหม่น) → brand navy + ขอบทองบาง + เงานุ่ม */
body:has([style*="#DAA520"]) [style*="#161A26"],
body:has([style*="#f5b936"]) [style*="#161A26"] {
  background-color: var(--fah-surface) !important;
  border: 1px solid rgba(199,144,28,0.32) !important;
  box-shadow: 0 8px 22px rgba(8,24,74,0.18) !important;
}

/* vip-point: badge ระดับ VIP (น้ำตาล/ทองหม่น 4 เฉด) → ทองแบรนด์ glossy ตัวหนังสือเข้ม */
body:has([style*="#DAA520"]) [style*="#DAA520"],
body:has([style*="#DAA520"]) [style*="#D2691E"],
body:has([style*="#DAA520"]) [style*="#CD853F"],
body:has([style*="#DAA520"]) [style*="#A52A2A"] {
  background-image: var(--fah-grad-gold) !important;
  background-color: var(--fah-gold) !important;
  color: #3F2B0B !important;
  border: 0 !important;
}

/* vip-privillage: badge ป้ายประเภท #f5b936 (ส้ม-ทอง) → ทองแบรนด์ glossy */
body:has([style*="#f5b936"]) [style*="#f5b936"] {
  background-image: var(--fah-grad-gold) !important;
  background-color: var(--fah-gold) !important;
  color: #3F2B0B !important;
  border: 0 !important;
}
/* vip-privillage: หัวคอลัมน์/ตัวหนังสือทอง #E8BD70 บน navy → gold-bright อ่านชัด */
body:has([style*="#f5b936"]) [style*="#E8BD70"] {
  color: var(--fah-navy) !important;
}

/* vip-point: progress bar สีเขียว (.progress-bar ใน <style> หลัง fah2026, !important)
   → azure แบรนด์ (ใช้ :has เพิ่ม specificity เอาชนะ) */
body:has([style*="#DAA520"]) .progress-bar {
  background-color: var(--fah-primary) !important;
  background-image: var(--fah-grad-brand) !important;
}

/* vip-privillage: หัวข้อ section h4.number.mb-4 → decorative double-line-header
   (DS 1.3 ชิดซ้าย + เส้นใต้ azure + เส้น ruby ใต้ลงมา)
   ใช้ gradient ใน ::after แทน box-shadow เพราะ .text-truncate มี overflow:hidden จะ clip เงา */
body:has([style*="#f5b936"]) h4.number.mb-4 {
  text-align: left !important;
  color: var(--fah-primary-active) !important;
  font-weight: 700 !important;
  letter-spacing: 0.2px !important;
}
body:has([style*="#f5b936"]) h4.number.mb-4::after {
  content: "" !important;
  display: block !important;
  margin-top: 8px !important;
  width: 64px !important;
  height: 9px !important;
  border-radius: 2px !important;
  background: linear-gradient(180deg,
    var(--fah-primary) 0, var(--fah-primary) 3px,
    transparent 3px, transparent 6px,
    var(--fah-accent) 6px, var(--fah-accent) 9px) !important;
}

/* =============================================================
   พื้นหลังท้องฟ้า — เมฆ blob ลอยนุ่ม (ทุกหน้า)
   clouds = body::before (position:fixed) → blob กลม 3 วงตามขอบ นิ่งตอน scroll
   = ฟีล parallax โดยไม่ใช้ JS · float นุ่ม (translate+scale สลับ)
   โซนเนื้อหา/chrome ที่ทึบจะบัง blob (ตั้งใจ) · ท้องฟ้าโผล่ตามขอบ/ช่องว่าง
   ============================================================= */
body::before {
  content: "" !important;
  position: fixed !important;
  inset: -6% !important;                 /* ขยายขอบกัน blob ขาดตอน float */
  z-index: -1 !important;
  pointer-events: none !important;
  background-image:
    radial-gradient(circle 260px at 6% 16%,  rgba(255,255,255,0.85), rgba(255,255,255,0) 70%),
    radial-gradient(circle 320px at 98% 40%, rgba(255,255,255,0.70), rgba(255,255,255,0) 72%),
    radial-gradient(circle 280px at 16% 92%, rgba(255,255,255,0.62), rgba(255,255,255,0) 72%);
  background-repeat: no-repeat !important;
  will-change: transform !important;
  animation: fah-cloud-float 26s ease-in-out infinite alternate !important;
}
@keyframes fah-cloud-float {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(2%, 1.4%, 0) scale(1.05); }
}
