/* ufamv ui2 — หน้าแรก (mobile first 440px) prefix u2- */
:root {
  --u2-card: #F7F4EF;
  --u2-ink: #3B2A1E;
  --u2-ink2: #7A6656;
  --u2-head: rgb(115 97 83);
  --u2-nav: #5C4D42;
  --u2-gold: #D9A93F;
  --u2-gold-hi: #FFF0B8;
  --u2-gold-lo: #9A6E22;
  --u2-goldgrad: linear-gradient(180deg, #FBE7A6 0%, #E2B451 48%, #B9862C 100%);
  --u2-line: rgba(217, 169, 63, .75);
  --u2-shadow: 0 4px 14px rgba(59, 42, 30, .10);
}
html:has(body.u2) { background: #CFC7BC; }
body.u2 {
  background: linear-gradient(180deg, #f5f1e8 0%, #fdfcf9 100%) fixed;
  color: var(--u2-ink);
  font-family: 'Kanit', sans-serif;
  line-height: 1.4;
  padding-bottom: 84px;
  box-shadow: 0 0 60px rgba(59, 42, 30, .25);
}
/* ใช้ Kanit ทั้งหน้า — ทับ 'Noto Sans Thai' ที่ base.css ตั้งไว้ตรงที่ h1-h6/li/td/input */
body.u2 :is(ol, ul, dl, li, dt, dd, table, th, td, input, textarea, select, button, h1, h2, h3, h4, h5, h6) { font-family: 'Kanit', sans-serif; }
.u2-app h1, .u2-app h2, .u2-app h3, .u2-app p, .u2-app small, .u2-app b, .u2-app span, .u2-app li {
  color: inherit; margin: 0; padding: 0; line-height: 1.2;
}
.u2-app button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.u2-app a { text-decoration: none; cursor: pointer; }
.u2-app img { display: block; max-width: 100%; }

/* ปุ่ม */
.u2-btn-gold, .u2-btn-ghost {
  font-family: 'Kanit', sans-serif !important; font-weight: 600; font-size: 14px;
  border-radius: 10px !important; padding: 7px 14px !important; white-space: nowrap;
}
.u2-btn-gold {
  background: var(--u2-goldgrad) !important; color: var(--u2-ink) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 2px 6px rgba(120, 80, 20, .35);
}
.u2-btn-ghost { border: 1.5px solid #E8D3A0 !important; color: #FFF5E0 !important; }
.u2-btn-sm { font-size: 13px; padding: 6px 14px !important; border-radius: 999px !important; }
.u2-btn-sm i { font-size: 11px; margin-left: 4px; }

/* โลโก้ */
.u2-logo { display: block; height: auto; max-height: 44px; width: auto; filter: drop-shadow(0 2px 3px rgba(0,0,0,.35)); }

/* header */
.u2-top {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 10px 12px; background: var(--u2-head);
  border-bottom: 1px solid rgba(232, 211, 160, .35);
}
.u2-brand { display: flex; align-items: center; gap: 8px; }
.u2-auth .u2-out, .u2-auth .u2-in { display: flex; align-items: center; gap: 6px; }
.u2-auth .u2-in, .u2-auth.logged .u2-out { display: none; }
.u2-auth.logged .u2-in { display: flex; }
.u2-user { color: #FFF5E0 !important; font-size: 13px; max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* hero slider */
.u2-hero { margin: 10px 12px 0; border-radius: 16px; overflow: hidden; border: 1px solid var(--u2-line); box-shadow: var(--u2-shadow); }
.u2-slide { aspect-ratio: 960 / 500; }
.u2-slide img { display: block; width: 100%; height: 100%; object-fit: cover; }
.u2-slide-brand { display: flex; align-items: center; gap: 6px; }
.u2-slide-brand .u2-logo { height: 40px; filter: drop-shadow(0 0 9px rgba(255, 206, 120, .65)) drop-shadow(0 0 2px rgba(255, 190, 90, 0.3)) drop-shadow(0 0px 1px rgba(20, 12, 6, .5)); }
/* จุดสไลด์: แคปซูลน้ำตาลเข้มขอบทอง + จุดกลมเงิน / ทอง (ตามรูปตัวอย่าง file#5974) */
.u2-dots.swiper-pagination {
  left: 50% !important; bottom: 0px !important; width: auto !important; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 9px; padding: 6px 22px; border-radius: 999px;
  background: linear-gradient(180deg, #6e5946d9 0%, #4a3828e0 55%, #3a2a1de0 100%);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid #C9A04E;
  box-shadow: inset 0 1px 0 rgba(255,236,190,.35), inset 0 -2px 4px rgba(0,0,0,.35), 0 2px 6px rgba(30,20,12,.45);
}
.u2-dots .swiper-pagination-bullet {
  margin: 0 !important; padding: 0; border: 0; width: 13px; height: 13px; opacity: 1; border-radius: 50%;
  background: radial-gradient(circle at 40% 30%, #FFFFFF 0%, #ECE9E6 45%, #C9C4C0 100%);
  box-shadow: inset 0 -1px 1px rgba(0,0,0,.18), 0 1px 1.5px rgba(0,0,0,.55);
  transition: background .2s;
}
.u2-dots .swiper-pagination-bullet-active {
  background: radial-gradient(circle at 40% 30%, #FFF2B8 0%, #F7D36A 40%, #E0A92E 100%);
  box-shadow: inset 0 -1px 1px rgba(120,80,10,.35), 0 0 4px rgba(255,210,110,.6), 0 1px 1.5px rgba(0,0,0,.55);
}

/* หมวด */
.u2-cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 12px 12px 0; }
.u2-cat {
  display: flex !important; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px 8px !important;
  border-radius: 14px; background: linear-gradient(180deg, #7F6149 0%, #7F6149 55%, #5E4A3C 100%) !important;
  border: 1.5px solid #C9A25A !important; box-shadow: inset 0 1px 0 rgba(255,255,255,.18), var(--u2-shadow);
  transition: transform .15s;
}
.u2-cat:active { transform: scale(.96); }
/* ไอคอนหมวด: outer glow ทอง + เงาใต้ไอคอน, ขอบล่างมืด/ขอบบนสว่าง — ตามรูปตัวอย่าง file#5979 */
.u2-cat { position: relative; isolation: isolate; overflow: hidden; }
.u2-cat::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; border-radius: inherit;
  box-shadow: inset 0 -22px 26px -6px rgba(22,13,6,.45), inset 0 10px 18px -8px rgba(255,236,200,.18);
}
.u2-cat img {
  width: 78%; height: auto; aspect-ratio: 1; object-fit: contain;
  filter: drop-shadow(0 0 5px rgba(255,206,120,.65)) drop-shadow(0 0 12px rgba(255,190,90,.3)) drop-shadow(0 5px 4px rgba(20,12,6,.5));
}
.u2-cat span { font-family: 'Kanit', sans-serif; font-weight: 600; font-size: 17px; color: #FFF3DC !important; }

/* แบนเนอร์กีฬา */
.u2-sportbn {
  position: relative; margin: 12px 12px 0; height: 172px; border-radius: 16px; overflow: hidden;
  background-size: cover; background-position: 75% 30%; padding: 22px 16px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
  border: 1px solid var(--u2-line);
}
.u2-sportbn::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(251,244,230,.85), rgba(251,244,230,.35) 50%, rgba(251,244,230,0) 70%); }
.u2-sportbn h2, .u2-sportbn button { position: relative; }
.u2-sportbn h2 { font-family: 'Kanit', sans-serif; font-style: italic; font-weight: 800; font-size: 25px; line-height: 1.1 !important; color: var(--u2-ink) !important; }
.u2-sportbn h2 span { font-size: 20px; }

/* section */
.u2-sec { margin: 22px 12px 0; }
.u2-sec-hd { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.u2-sec-hd h2 { font-family: 'Kanit', sans-serif; font-weight: 600; font-size: 21px; color: var(--u2-ink) !important; display: flex; align-items: center; gap: 8px; }
.u2-sec-hd h2 i { background: var(--u2-goldgrad); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 1px 0 #8C6420); }
.u2-sec-hd h2 .fa-fire-flame-curved { background: linear-gradient(180deg, #FFC24A, #E2621B); -webkit-background-clip: text; background-clip: text; }
.u2-sec-hd a { font-size: 13px; color: var(--u2-ink2) !important; }
.u2-sec-hd a i { font-size: 10px; margin-left: 2px; }
.u2-card { background: var(--u2-card); border: 1px solid var(--u2-line); border-radius: 14px; box-shadow: var(--u2-shadow); }

/* ผลหวยล่าสุด — UX/UI แบบ superlsm99.link (.rs-*) ; mood & tone ครีมไล่สีอ่อน ตามรูปตัวอย่าง file#5989 */
.u2-sec-hd h2 .u2-sec-ic { width: 30px; height: 30px; flex: none; filter: drop-shadow(0 2px 3px rgba(59, 42, 30, .3)); }
.u2-rs-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; align-items: stretch; }
.u2-rs-main, .u2-rs-card {
  position: relative; overflow: hidden; display: flex; flex-direction: column; color: var(--u2-ink);
  background: linear-gradient(170deg, #FFFCF6 0%, #FAF3E8 55%, #F3E8D7 100%);
  border: 1px solid #EAD9BF; box-shadow: inset 0 1px 0 #fff, 0 4px 14px rgba(120, 84, 40, .12);
}
.u2-rs-main { padding: 10px 8px; border-radius: 14px; container-type: inline-size; }
.u2-rs-main::before {
  content: ""; position: absolute; right: -40px; top: -40px; width: 120px; height: 120px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 214, 140, .35), rgba(255, 214, 140, 0) 70%);
}
.u2-rs-hd { position: relative; display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.u2-rs-hd > div { min-width: 0; }
.u2-rs-flag { flex: none; width: 24px; height: 24px; border-radius: 50%; box-shadow: 0 0 0 1.5px #fff, 0 1px 3px rgba(80, 50, 20, .3); }
.u2-rs-flag-glo { width: 30px; height: 30px; border-radius: 0; box-shadow: none; filter: drop-shadow(0 2px 3px rgba(80, 50, 20, .3)); }
.u2-rs-hd h3 { font-size: 13px; font-weight: 600; line-height: 1.25 !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #36251D !important; }
.u2-rs-hd p { font-size: 11px; line-height: 1.3 !important; color: #6E5446 !important; }
.u2-rs-first {
  position: relative; margin: auto 0 6px; padding: 10px 4px 8px; text-align: center;
  background: linear-gradient(180deg, #FFF9EF 0%, #FBEFDB 60%, #F6E4C6 100%);
  border: 1px solid #E8CA9C; border-radius: 12px;
  box-shadow: inset 0 1px 0 #fff, 0 3px 8px rgba(160, 110, 40, .15);
}
.u2-rs-first span { display: block; font-size: clamp(12px, 7cqw, 15px); font-weight: 500; color: #36251D !important; }
.u2-rs-first strong {
  display: block; font-size: clamp(20px, 14cqw, 30px); font-weight: 700; line-height: 1.15; letter-spacing: .04em;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #3E2210 0%, #6E3410 45%, #A4561A 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, .8));
}
.u2-rs-row { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.u2-rs-box {
  padding: 5px 2px; text-align: center; border-radius: 10px;
  background: linear-gradient(180deg, #FFFDF8 0%, #F4EDE0 100%); border: 1px solid #EFE3D1;
  box-shadow: inset 0 1px 0 #fff, 0 2px 5px rgba(120, 84, 40, .08);
}
.u2-rs-box span { display: block; font-size: 10.5px; line-height: 1.3 !important; color: #8A7466 !important; }
.u2-rs-box strong { display: block; font-size: clamp(15px, 10cqw, 22px); font-weight: 700; line-height: 1.2; font-variant-numeric: tabular-nums; color: #5B3E36; }
.u2-rs-side { display: grid; gap: 8px; align-content: start; }
.u2-rs-card { padding: 8px 6px; border-radius: 12px; }
.u2-rs-card .u2-rs-hd { margin-bottom: 6px; }
.u2-rs-card .u2-rs-hd h3 { font-size: 12px; font-weight: 500; }
.u2-rs-card .u2-rs-hd p { font-size: 10px; }
.u2-rs-card .u2-rs-row { gap: 4px; }
.u2-rs-card .u2-rs-box { padding: 4px 2px; }
.u2-rs-card .u2-rs-box span { font-size: 9.5px; }
.u2-rs-card .u2-rs-box strong { font-size: 14px; letter-spacing: .05em; }

/* คาสิโน / สล็อต — รูปค่าย 3 column */
.u2-cv { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.u2-cv button {
  display: block; padding: 0; border: 1px solid var(--u2-line); border-radius: 12px; overflow: hidden; background: #2A1E16;
  box-shadow: 0 4px 12px rgba(80, 50, 20, .2);
}
.u2-cv img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }

/* โปร (.u2-app นำหน้า เพื่อชนะ .u2-app button / span) — ข้อมูลจริง db_pro (หลังบ้าน __edit/promotions) : รูปซ้าย ชื่อ+คำอธิบายขวา ; กดแล้วเปิด sheet รายละเอียด (.u2-pro) */
.u2-pm-list { display: grid; gap: 10px; }
.u2-app .u2-pm {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px; text-align: left; font-family: 'Kanit', sans-serif;
  background: linear-gradient(180deg, #FCFAF4 0%, #FAF5EC 50%, #F7EEE0 100%);
  border: 1px solid #E2D3BE; border-radius: 14px; box-shadow: inset 0 1px 0 #fff, inset 0 0 0 1px rgba(255, 255, 255, .6), 0 3px 10px rgba(120, 90, 50, .10);
}
.u2-pm img { flex: none; display: block; width: 42%; height: auto; aspect-ratio: 1040 / 624; object-fit: cover; border-radius: 10px; }
.u2-pm-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.u2-pm-ttl, .u2-pm-desc { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
.u2-app .u2-pm-ttl { -webkit-line-clamp: 2; font-size: 15px; font-weight: 500; line-height: 1.3; color: #2B1E17; }
.u2-app .u2-pm-desc { -webkit-line-clamp: 3; font-size: 12.5px; font-weight: 500; line-height: 1.4; color: #9A4F1C; }

/* กิจกรรมพิเศษ — UX แบบ superlsm99.link (.perk) 2 column ; การ์ดสีงาช้าง/ขอบน้ำตาลอ่อน ตามรูปตัวอย่าง file#6012 (.u2-app นำหน้า เพื่อชนะ .u2-app button/span/b) */
.u2-pk-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.u2-app .u2-pk {
  display: flex; flex-direction: column; align-items: center; text-align: center; width: 100%; padding: 12px 10px 14px;
  font-family: 'Kanit', sans-serif;
  background: linear-gradient(180deg, #FAF5EC 0%, #F5EDE1 55%, #EEE4D5 100%);
  border: 1px solid #D8CCBC; border-radius: 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .85), 0 3px 10px rgba(120, 90, 50, .10);
}
.u2-pk-ic {
  width: 76px; height: 76px; margin-bottom: 6px; display: flex; align-items: center; justify-content: center; border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, rgba(255, 226, 150, .55) 0, rgba(255, 226, 150, 0) 68%);
}
.u2-app .u2-pk-ic img { width: 70px; height: 70px; object-fit: contain; filter: drop-shadow(0 4px 4px rgba(80, 50, 20, .28)); }
.u2-app .u2-pk-en { font-size: 10.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; line-height: 1.2; color: #A4561A; }
.u2-app .u2-pk-th { margin-top: 1px; font-size: 16px; font-weight: 600; line-height: 1.3; color: #2B1E17; }
.u2-app .u2-pk-desc {
  margin-top: 3px; font-size: 12px; line-height: 1.4; color: #7A6656;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

/* แบนเนอร์แบรนด์ */
.u2-brandbn {
  margin: 14px 12px 0; height: 132px; border-radius: 16px; overflow: hidden; position: relative;
  background-size: cover; background-position: center; border: 1px solid var(--u2-line);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center;
}
.u2-brandbn::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(251,244,230,.85) 0%, rgba(251,244,230,.45) 55%, rgba(251,244,230,0) 80%); }
.u2-brandbn > * { position: relative; }
.u2-brandbn p { font-family: 'Kanit', sans-serif; font-style: italic; font-weight: 600; font-size: 15px; line-height: 1.25 !important; color: var(--u2-ink) !important; }

/* หน้า /login (modal.php) — ฉากหลังของ sheet เข้าสู่ระบบ */
.u2-lgp { margin: 14px 12px 0; }
.u2-lgp-card { border-radius: 16px; overflow: hidden; border: 1px solid var(--u2-line); box-shadow: var(--u2-shadow); aspect-ratio: 960 / 500; }
.u2-lgp-card img { display: block; width: 100%; height: 100%; object-fit: cover; }
.u2-lgp-act { display: grid; gap: 10px; margin-top: 16px; }
.u2-lgp-btn { height: 54px; font-size: 18px; }
.u2-lgp-btn i { font-size: 17px; }
.u2-app .u2-lgp-help { display: block; padding: 6px 0; text-align: center; font-size: 14px; color: #7A6656; }
.u2-app .u2-lgp-help b { font-weight: 600; color: #A4561A; text-decoration: underline; }

/* ปุ่มท้าย sheet โปร (ติดล่างตอนเลื่อน) */
.u2-pro-cta {
  position: sticky; bottom: 0; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  margin: 12px -16px 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: #ECE6DD; border-top: 1px solid var(--u2-line); box-shadow: 0 -6px 14px rgba(80, 50, 20, .08);
}
.u2-pro-cta .u2-sbtn { height: 48px; font-size: 16px; }

/* หน้าโปรโมชั่น /promotion.html (.u2-app นำหน้า เพื่อชนะ .u2-app button / span / h1 / p) */
.u2-pp { margin: 14px 12px 0; }
.u2-pp-hd { margin-bottom: 12px; }
.u2-app .u2-pp-hd :is(h1, h2) { display: flex; align-items: center; gap: 8px; font-family: 'Kanit', sans-serif; font-weight: 600; font-size: 24px; line-height: 1.2; color: var(--u2-ink); }
.u2-pp-hd :is(h1, h2) i { background: var(--u2-goldgrad); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 1px 0 #8C6420); }
.u2-app .u2-pp-hd p { margin-top: 2px; font-size: 13px; font-weight: 500; color: var(--u2-ink2); }
.u2-pp-list { display: grid; gap: 14px; }
.u2-app .u2-pc {
  display: block; width: 100%; padding: 0; overflow: hidden; text-align: left; font-family: 'Kanit', sans-serif; scroll-margin-top: 76px;
  background: linear-gradient(180deg, #FCFAF4 0%, #FAF5EC 50%, #F7EEE0 100%);
  border: 1px solid #E2D3BE; border-radius: 16px; box-shadow: inset 0 1px 0 #fff, 0 4px 12px rgba(120, 90, 50, .12); transition: transform .15s;
}
.u2-app .u2-pc:active { transform: scale(.98); }
.u2-pc img { display: block; width: 100%; height: auto; aspect-ratio: 1040 / 624; object-fit: cover; }
.u2-app .u2-pc-tx { display: flex; flex-direction: column; gap: 4px; padding: 10px 14px 12px; }
.u2-app .u2-pc-ttl { font-size: 17px; font-weight: 600; line-height: 1.3; color: #2B1E17; }
.u2-app .u2-pc-desc { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-size: 13px; font-weight: 500; line-height: 1.4; color: #9A4F1C; }
.u2-app .u2-pc-more {
  align-self: flex-end; display: inline-flex; align-items: center; gap: 6px; height: 32px; margin-top: 4px; padding: 0 14px; border-radius: 16px;
  font-size: 13px; font-weight: 600; color: #F7DE8E; background: linear-gradient(180deg, #7A6555 0%, #5C4D42 50%, #46392F 100%); border: 1px solid rgba(217, 169, 63, .7);
}
.u2-pc-more i { font-size: 10px; }
.u2-pp-cta { margin-top: 18px; padding: 16px 14px; text-align: center; border-radius: 16px; border: 1px solid var(--u2-line); background: var(--u2-card); box-shadow: var(--u2-shadow); }
.u2-app .u2-pp-cta b { display: block; font-family: 'Kanit', sans-serif; font-size: 18px; font-weight: 600; color: var(--u2-ink); }
.u2-app .u2-pp-cta p { margin-top: 2px; font-size: 13px; font-weight: 500; color: var(--u2-ink2); }
.u2-pp-cta-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.u2-pp-cta-btns .u2-sbtn { height: 48px; font-size: 16px; }

/* หน้าแก้ไขปัญหาเข้าเว็บ /webfix.html (ใช้หัว .u2-pp-hd ร่วมหน้าโปร) */
.u2-wf { margin: 14px 12px 0; }
.u2-wf-intro { padding: 14px; border-radius: 14px; border: 1px solid var(--u2-line); background: var(--u2-card); box-shadow: var(--u2-shadow); }
.u2-app .u2-wf-intro p { font-size: 14px; font-weight: 500; line-height: 1.6; color: #4A3628; }
.u2-app .u2-wf-intro b { font-weight: 600; color: #9A4F1C; }
.u2-app .u2-wf-intro .u2-wf-warn { display: flex; gap: 8px; align-items: flex-start; margin-top: 10px; padding: 8px 10px; border-radius: 10px; background: #FBEBD5; color: #A4401A; font-weight: 600; font-size: 13.5px; }
.u2-wf-warn i { margin-top: 3px; }
.u2-wf-r { position: absolute; opacity: 0; pointer-events: none; }
.u2-wf-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 16px 0 12px; padding: 5px; border-radius: 14px; background: var(--u2-nav); box-shadow: inset 0 2px 6px rgba(0,0,0,.25); }
.u2-wf-tabs label {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-height: 52px; margin: 0; border-radius: 10px; cursor: pointer;
  font-family: 'Kanit', sans-serif; font-size: 15px; font-weight: 600; color: #E9DCC8; transition: background .2s, color .2s;
}
.u2-wf-tabs small { font-size: 11.5px; font-weight: 500; opacity: .8; }
#u2-wf-m:checked ~ .u2-wf-tabs .u2-wf-tab-m, #u2-wf-pc:checked ~ .u2-wf-tabs .u2-wf-tab-pc {
  color: #2B1F17; background: linear-gradient(180deg, #F4CF6C 0%, #ECBE5A 45%, #D59B33 100%); box-shadow: 0 2px 6px rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,.7);
}
.u2-wf-panel { display: none; }
#u2-wf-m:checked ~ .u2-wf-m, #u2-wf-pc:checked ~ .u2-wf-pc { display: block; }
.u2-wf-steps { margin: 0; padding: 0; list-style: none; counter-reset: wf; display: grid; gap: 12px; }
.u2-wf-steps li {
  position: relative; counter-increment: wf; padding: 14px 14px 14px 56px; border-radius: 14px; border: 1px solid #E2D3BE;
  background: linear-gradient(180deg, #FCFAF4 0%, #F7EEE0 100%); box-shadow: inset 0 1px 0 #fff, 0 3px 10px rgba(120, 90, 50, .10);
}
.u2-app .u2-wf-steps li { list-style: none; }
.u2-wf-steps li::marker { content: none; }
.u2-wf-steps li::before {
  content: counter(wf); position: absolute; left: 14px; top: 12px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  font-family: 'Kanit', sans-serif; font-weight: 700; font-size: 16px; color: #2B1F17; background: var(--u2-goldgrad); box-shadow: 0 2px 4px rgba(90,60,20,.3), inset 0 1px 0 rgba(255,255,255,.6);
}
.u2-app .u2-wf-steps b { display: block; font-size: 15px; font-weight: 500; line-height: 1.5; color: var(--u2-ink); }
.u2-app .u2-wf-steps b span { font-weight: 700; color: #9A4F1C; }
.u2-wf-dl { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.u2-wf-dl a { flex: 1 1 0; max-width: 150px; }
.u2-wf-dl img { display: block; width: 100%; height: auto; }
.u2-wf-shot { display: block; max-width: 100%; max-height: 340px; width: auto; height: auto; margin: 12px auto 0; border-radius: 10px; background: #fff; border: 1px solid #E8DCCB; }
.u2-wf-done { display: flex; gap: 12px; align-items: flex-start; margin-top: 16px; padding: 14px; border-radius: 14px; background: linear-gradient(180deg, #7A6555 0%, #5C4D42 100%); border: 1px solid var(--u2-line); box-shadow: var(--u2-shadow); }
.u2-wf-done i { font-size: 26px; color: #F2C94C; }
.u2-app .u2-wf-done p { font-size: 14px; font-weight: 500; line-height: 1.55; color: #F3E8D6; }
.u2-app .u2-wf-done b { color: #F7DE8E; font-weight: 600; }
.u2-wf .u2-lgp-help { margin-top: 10px; }

/* หน้าทางเข้า /links.html */
.u2-lk { margin: 14px 12px 0; }
.u2-lk-main { padding: 14px; border-radius: 16px; border: 1px solid var(--u2-line); background: var(--u2-card); box-shadow: var(--u2-shadow); }
.u2-app .u2-lk-on { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: #2E7D32; }
.u2-lk-on i { width: 8px; height: 8px; border-radius: 50%; background: #2EB34A; box-shadow: 0 0 0 3px rgba(46,179,74,.2); }
.u2-lk-url { display: flex; align-items: center; gap: 8px; margin-top: 8px; padding: 6px 6px 6px 14px; border-radius: 12px; background: #fff; border: 1px solid #E2D3BE; }
.u2-app .u2-lk-url b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: 'Kanit', sans-serif; font-size: 18px; font-weight: 600; color: var(--u2-ink); }
.u2-app .u2-lk-copy {
  flex: none; display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border-radius: 10px; cursor: pointer;
  font-size: 14px; font-weight: 600; color: #F7DE8E !important; background: linear-gradient(180deg, #7A6555 0%, #5C4D42 50%, #46392F 100%); border: 1px solid rgba(217, 169, 63, .7);
}
.u2-app .u2-lk-copy.is-ok { color: #fff !important; background: #2EB34A; border-color: #2EB34A; }
.u2-lk-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.u2-lk-btns .u2-sbtn { height: 48px; font-size: 16px; }
.u2-lk-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.u2-app .u2-lk-tile {
  display: flex; flex-direction: column; gap: 2px; padding: 12px; border-radius: 14px; cursor: pointer; text-decoration: none;
  background: linear-gradient(180deg, #FCFAF4 0%, #F7EEE0 100%); border: 1px solid #E2D3BE; box-shadow: inset 0 1px 0 #fff, 0 3px 10px rgba(120, 90, 50, .10);
}
.u2-lk-tile i { font-size: 22px; margin-bottom: 4px; background: var(--u2-goldgrad); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 1px 0 #8C6420); }
.u2-app .u2-lk-tile b { font-size: 15px; font-weight: 600; color: var(--u2-ink); }
.u2-app .u2-lk-tile span { font-size: 12.5px; font-weight: 500; line-height: 1.4; color: var(--u2-ink2); }
.u2-lk-seo { margin-top: 16px; padding: 14px; border: 1px solid #E2D3BE !important; border-radius: 14px; background: #FBF8F2; }
.u2-lk-seo img { display: block; width: 100%; margin: 0 0 10px !important; }
.u2-lk-seo h1 { font-size: 17px !important; }

/* หน้าเกม SEO 9 หน้า (page.php : Sport, Esport, Baccarat, Casino, Slot, Sbobet, Lotto, Lotto-Lao, Lotto-Hanoi) */
.u2-gp { margin: 12px 12px 0; }
.u2-gp-nav { position: relative; display: flex; gap: 8px; margin: 0 -12px; padding: 2px 12px 4px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.u2-gp-nav::-webkit-scrollbar { display: none; }
.u2-app .u2-gp-nav a {
  flex: none; display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px 0 8px; border-radius: 19px; text-decoration: none; white-space: nowrap;
  font-family: 'Kanit', sans-serif; font-size: 14px; font-weight: 600; color: var(--u2-ink);
  background: linear-gradient(180deg, #FCFAF4 0%, #F7EEE0 100%); border: 1px solid #E2D3BE; box-shadow: inset 0 1px 0 #fff, 0 2px 6px rgba(120, 90, 50, .10);
}
.u2-app .u2-gp-nav a.is-on { color: #2B1F17; border-color: #F2D58A; background: linear-gradient(180deg, #F4CF6C 0%, #ECBE5A 45%, #D59B33 100%); box-shadow: 0 2px 6px rgba(90, 60, 20, .3), inset 0 1px 0 rgba(255,255,255,.7); }
.u2-gp-nav img { width: 24px; height: 24px; object-fit: contain; }
.u2-gp-hero {
  position: relative; margin-top: 10px; padding: 16px 14px 14px; border-radius: 16px; border: 1px solid var(--u2-line); box-shadow: var(--u2-shadow);
  background: radial-gradient(circle at 88% 30%, rgba(242, 201, 76, .28) 0%, rgba(242, 201, 76, 0) 45%), var(--u2-card);
}
.u2-gp-ic { position: absolute; top: 10px; right: 12px; width: 84px; height: 84px; object-fit: contain; filter: drop-shadow(0 4px 6px rgba(90, 60, 20, .25)); }
.u2-app .u2-gp-hero > b { display: block; padding-right: 96px; font-family: 'Kanit', sans-serif; font-size: 24px; font-weight: 600; line-height: 1.25; color: var(--u2-ink); }
.u2-app .u2-gp-hero > p { min-height: 40px; margin-top: 4px; padding-right: 96px; font-size: 13.5px; font-weight: 500; line-height: 1.45; color: var(--u2-ink2); }
.u2-app .u2-gp-seo { margin-top: 16px; padding: 14px 14px 6px; border: 1px solid #E2D3BE !important; border-radius: 14px; background: #FBF8F2; font-size: 15px !important; line-height: 1.7; }
.u2-app .u2-gp-seo img { display: block; width: 100%; margin: 0 0 12px !important; border-radius: 10px; }
.u2-app .u2-gp-seo h1 { margin-bottom: 8px; font-size: 20px !important; line-height: 1.35 !important; color: var(--u2-ink) !important; }
.u2-app .u2-gp-seo h2 { margin-top: 18px; padding-left: 10px; border-left: 4px solid var(--u2-gold); font-size: 17px !important; line-height: 1.4 !important; }
.u2-app .u2-gp-seo h3, .u2-app .u2-gp-seo h4 { margin-top: 12px; font-size: 15.5px !important; }
.u2-app .u2-gp-seo p { margin-bottom: 10px; }

/* ข่าว/บทความ content-list + content-view (/ข่าวฟุตบอล/) */
.u2-nw { margin: 12px 12px 0; }
.u2-app .u2-nw-bc { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; font-size: 12.5px; font-weight: 500; color: var(--u2-ink2); white-space: nowrap; overflow: hidden; }
.u2-app .u2-nw-bc a { color: var(--u2-ink2); text-decoration: none; overflow: hidden; text-overflow: ellipsis; }
.u2-app .u2-nw-bc span { overflow: hidden; text-overflow: ellipsis; color: var(--u2-ink); }
.u2-nw-bc i { font-size: 9px; opacity: .6; }
.u2-app .u2-nw-empty { padding: 30px 0; text-align: center; color: var(--u2-ink2); }
.u2-nw-list { display: grid; gap: 10px; }
.u2-app .u2-nw-item {
  display: flex; gap: 12px; padding: 8px; border-radius: 14px; text-decoration: none; overflow: hidden;
  background: linear-gradient(180deg, #FCFAF4 0%, #F7EEE0 100%); border: 1px solid #E2D3BE; box-shadow: inset 0 1px 0 #fff, 0 3px 10px rgba(120, 90, 50, .10); transition: transform .15s;
}
.u2-app .u2-nw-item:active { transform: scale(.98); }
.u2-nw-item img { flex: none; width: 116px; height: 87px; border-radius: 10px; object-fit: cover; object-position: center 30%; background: #E8DCCB; }
.u2-app .u2-nw-tx { display: flex; flex-direction: column; justify-content: space-between; gap: 4px; min-width: 0; padding: 2px 2px 0 0; }
.u2-app .u2-nw-tx b { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; font-family: 'Kanit', sans-serif; font-size: 15px; font-weight: 500; line-height: 1.4; color: var(--u2-ink); }
.u2-app .u2-nw-tx small { font-size: 12px; font-weight: 500; color: var(--u2-ink2); }
.u2-app .u2-nw-item.is-big { flex-direction: column; gap: 0; padding: 0; }
.u2-nw-item.is-big img { width: 100%; height: auto; aspect-ratio: 16 / 10; border-radius: 0; }
.u2-app .u2-nw-item.is-big .u2-nw-tx { padding: 10px 14px 12px; }
.u2-app .u2-nw-item.is-big .u2-nw-tx b { font-size: 18px; font-weight: 600; -webkit-line-clamp: 2; }
.u2-nw-pg { display: flex; justify-content: center; gap: 6px; margin-top: 16px; }
.u2-app .u2-nw-pg :is(a, span) {
  display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 6px; border-radius: 12px; text-decoration: none;
  font-family: 'Kanit', sans-serif; font-size: 15px; font-weight: 600; color: var(--u2-ink); background: #FCFAF4; border: 1px solid #E2D3BE;
}
.u2-app .u2-nw-pg .is-on { color: #2B1F17; border-color: #F2D58A; background: linear-gradient(180deg, #F4CF6C 0%, #ECBE5A 45%, #D59B33 100%); box-shadow: 0 2px 6px rgba(90, 60, 20, .3); }
.u2-app .u2-nw-pg .is-off { opacity: .4; }
.u2-app .u2-nw-pg .is-gap { min-width: 20px; padding: 0; background: none; border: 0; }
.u2-nw-art { padding: 14px; border-radius: 16px; border: 1px solid #E2D3BE; background: #FBF8F2; box-shadow: var(--u2-shadow); }
.u2-app .u2-nw-art h1 { font-family: 'Kanit', sans-serif; font-size: 21px; font-weight: 600; line-height: 1.4; color: var(--u2-ink); }
.u2-app .u2-nw-date { margin-top: 4px; font-size: 12.5px; font-weight: 500; color: var(--u2-ink2); }
.u2-nw-cover { display: block; width: 100%; height: auto; margin-top: 12px; border-radius: 12px; }
.u2-app .u2-nw-body { margin-top: 12px; padding-top: 0; border-top: 0; font-size: 16px !important; line-height: 1.75; }
.u2-app .u2-nw-body p { margin-bottom: 12px; }
.u2-app .u2-nw-body img { display: block; width: 100%; margin: 0 0 12px !important; }
.u2-nw-pn { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.u2-app .u2-nw-pn a { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 10px 12px; border-radius: 14px; text-decoration: none; background: #FCFAF4; border: 1px solid #E2D3BE; }
.u2-app .u2-nw-pn .is-next { grid-column: 2; text-align: right; }
.u2-app .u2-nw-pn small { font-size: 12px; font-weight: 600; color: #9A4F1C; }
.u2-nw-pn small i { font-size: 10px; }
.u2-app .u2-nw-pn b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 500; color: var(--u2-ink); }
.u2-nw-rel { margin-top: 20px; }
.u2-app .u2-nw-all { display: flex; align-items: center; justify-content: center; gap: 6px; height: 44px; margin-top: 10px; border-radius: 12px; text-decoration: none; font-family: 'Kanit', sans-serif; font-size: 15px; font-weight: 600; color: #9A4F1C; border: 1px dashed #D9B98A; }
.u2-nw-all i { font-size: 11px; }

/* รีวิว /review-list.html (ใช้ช่องกรอก .u2-fl และตัวเปลี่ยนหน้า .u2-nw-pg ร่วม) */
.u2-rv { margin: 14px 12px 0; }
.u2-app .u2-rv-write { height: 46px; margin-bottom: 14px; font-size: 16px; }
.u2-rv-empty { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 22px 14px; text-align: center; border-radius: 16px; border: 1px dashed #D9B98A; background: #FBF8F2; }
.u2-rv-empty i { font-size: 34px; margin-bottom: 6px; background: var(--u2-goldgrad); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 1px 0 #8C6420); }
.u2-app .u2-rv-empty b { font-family: 'Kanit', sans-serif; font-size: 17px; font-weight: 600; color: var(--u2-ink); }
.u2-app .u2-rv-empty p { font-size: 13.5px; color: var(--u2-ink2); }
.u2-rv-list { display: grid; gap: 10px; }
.u2-rv-item { padding: 12px 14px; border-radius: 14px; background: linear-gradient(180deg, #FCFAF4 0%, #F7EEE0 100%); border: 1px solid #E2D3BE; box-shadow: inset 0 1px 0 #fff, 0 3px 10px rgba(120, 90, 50, .10); }
.u2-rv-hd { display: flex; align-items: center; gap: 10px; }
.u2-app .u2-rv-av { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; font-family: 'Kanit', sans-serif; font-size: 17px; font-weight: 600; color: #2B1F17; background: var(--u2-goldgrad); box-shadow: inset 0 1px 0 rgba(255,255,255,.6); }
.u2-app .u2-rv-who { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.u2-app .u2-rv-who b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; font-weight: 600; color: var(--u2-ink); }
.u2-app .u2-rv-who small { font-size: 12px; color: var(--u2-ink2); }
.u2-app .u2-rv-stars { flex: none; display: flex; gap: 2px; font-size: 13px; color: #E2A93B; }
.u2-rv-stars .is-off { color: #DCCFBF; }
.u2-app .u2-rv-item > p { margin-top: 8px; font-size: 14.5px; line-height: 1.6; color: #4A3628; overflow-wrap: anywhere; }
.u2-rv-form { margin-top: 18px; padding: 16px 14px; border-radius: 16px; border: 1px solid var(--u2-line); background: var(--u2-card); box-shadow: var(--u2-shadow); scroll-margin-top: 76px; }
#review.u2-rv-form { padding: 16px 14px; } /* styles.css เดิมมี #review { padding: 50px 0 } */
.u2-rv-form form { display: grid; gap: 12px; margin-top: 12px; }
.u2-app .u2-rv-form h2 { display: flex; align-items: center; gap: 8px; font-family: 'Kanit', sans-serif; font-size: 20px; font-weight: 600; color: var(--u2-ink); }
.u2-rv-form h2 i { font-size: 16px; color: #B9862C; }
.u2-app .u2-rv-note { margin-top: 2px; font-size: 13px; line-height: 1.5; color: var(--u2-ink2); }
.u2-app .u2-rv-ok { display: flex; gap: 8px; align-items: flex-start; margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: #E7F6EA; border: 1px solid #A9DDB4; color: #1E6B32; font-size: 14px; font-weight: 500; }
.u2-rv-ok i { margin-top: 3px; }
.u2-rv-form .u2-lg-err { margin-top: 12px; }
.u2-rv-form .u2-lg-err i { margin-top: 3px; }
.u2-rv-rate { margin: 0; padding: 0; border: 0; }
.u2-app .u2-rv-rate legend { float: none; width: auto; margin: 0 0 4px; padding: 0; font-size: 13px; font-weight: 600; color: #9A6E22; }
.u2-rv-pick { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.u2-rv-pick input { position: absolute; opacity: 0; pointer-events: none; }
.u2-app .u2-rv-pick label { margin: 0; padding: 2px 3px; font-size: 32px; line-height: 1; color: #DCCFBF; cursor: pointer; transition: color .12s, transform .12s; }
.u2-rv-pick input:checked ~ label, .u2-rv-pick label:hover, .u2-rv-pick label:hover ~ label { color: #E2A93B; }
.u2-rv-pick input:focus-visible + label { outline: 2px solid var(--u2-gold); border-radius: 6px; }
.u2-rv-pick label:active { transform: scale(.9); }
.u2-fl.u2-fl-area { height: auto; }
.u2-fl-area textarea { width: 100%; min-height: 110px; margin: 0; padding: 24px 14px 10px; border: 0; outline: 0; border-radius: 14px; resize: vertical; background: none; box-shadow: none; font: inherit; font-size: 16px; line-height: 1.5; color: var(--u2-ink); }
.u2-app .u2-fl-area label { left: 14px; top: 26px; }
.u2-fl-area textarea:focus + label, .u2-fl-area textarea:not(:placeholder-shown) + label { top: 13px; font-size: 12px; font-weight: 600; color: #9A6E22; }
.u2-rv-cap { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; }
.u2-rv-cap img { height: 58px; width: auto; border-radius: 12px; border: 1.5px solid #DDD2C4; background: #fff; cursor: pointer; }
.u2-app .u2-rv-form .u2-lg-submit { margin-top: 4px; font-size: 18px; font-weight: 600; }

/* footer */
.u2-foot { margin: 18px 12px 0; padding-bottom: calc(30px + env(safe-area-inset-bottom)); text-align: center; font-size: 12px; color: var(--u2-ink2); }

/* เมนูล่าง */
.u2-tab {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; max-width: 440px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(5, 1fr); align-items: end;
  height: 68px; padding: 0 4px calc(6px + env(safe-area-inset-bottom)); background: var(--u2-nav);
  box-shadow: 0 -4px 14px rgba(59,42,30,.25);
}
/* เส้นขอบบนทอง 3px ไล่สีตามรูปตัวอย่าง (file#6037): บนครีมสว่าง / กลางทอง / ล่างทองเข้ม + จุดสว่างช่วงซ้าย-กลาง */
.u2-tab::before {
  content: ''; position: absolute; left: 0; right: 0; top: -3px; height: 3px; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 246, 220, .75) 0, rgba(255, 246, 220, .75) 1px, rgba(255, 255, 255, 0) 1px, rgba(255, 255, 255, 0) 2px, rgba(110, 70, 25, .3) 2px),
    linear-gradient(90deg, #E0A84E 0%, #F1CB80 12%, #F8E3B4 30%, #F3D29A 40%, #E2AE5C 50%, #F4D07C 64%, #F2C068 78%, #E6AA52 100%);
}
.u2-tab a { display: flex; flex-direction: column; align-items: center; gap: 3px; color: #EADFCF !important; font-family: 'Kanit', sans-serif; font-size: 12.5px; }
/* เมนูอื่น: ชิดล่างเหมือนปุ่มกลาง ให้ข้อความระดับเดียวกับ "สมัครสมาชิก" แล้วเว้น icon ห่างขึ้น */
.u2-tab a:not(.u2-tab-mid) { gap: 10px; }
.u2-tab a i { font-size: 21px; }
.u2-tab a.is-on { color: #F2C94C !important; }
/* ปุ่มกลาง: รูปวงกลมทอง (วง ~87% ของรูป + glow รอบนอก) — 72px ≈ วง 63px เท่าของเดิม */
.u2-tab-orb {
  width: 72px; height: 72px; border-radius: 50%; display: grid !important; place-items: center;
  background: url(img/tab-orb.webp?v2) center / 100% 100% no-repeat; filter: drop-shadow(0 4px 6px rgba(0,0,0,.3));
}
.u2-tab .u2-tab-orb { margin: -35px 0 -3px; }
.u2-tab-orb i { color: #fff; font-size: 24px !important; text-shadow: 0 0 4px rgba(255, 226, 140, .95), 0 0 10px rgba(255, 196, 80, .85), 0 0 18px rgba(245, 170, 50, .6), 0 1px 2px rgba(80, 45, 10, .5); }

/* เมนูล่าง โปรโมชั่น → เลื่อนไป #u2-promo (เว้นหัว sticky) */
html:has(body.u2) { scroll-behavior: smooth; }
#u2-promo { scroll-margin-top: 76px; }

@media (prefers-reduced-motion: reduce) { .u2-cat { transition: none; } }

/* ===== sheet เข้าสู่ระบบ / สมัครสมาชิก — UX/UI แบบ supervip2541 (sv-sheet) สีธีม ufamv ; ตัวเปิดปิด = bootstrap modal ===== */
.modal-backdrop { --bs-backdrop-bg: #1E140C; --bs-backdrop-opacity: .62; }
.u2-sheet { font-family: 'Kanit', sans-serif; line-height: 1.4; }
.u2-sheet .modal-dialog { max-width: 440px; width: 100%; min-height: 100%; margin: 0 auto; display: flex; align-items: flex-end; }
.u2-sheet.fade .modal-dialog { transform: translateY(100%); transition: transform .36s cubic-bezier(.22, 1, .36, 1); }
.u2-sheet.show .modal-dialog { transform: none; }
.u2-sheet .modal-dialog.is-dragging { transition: none; }
.u2-sheet .modal-content {
  max-height: 92vh; overflow-y: auto; overscroll-behavior: contain;
  padding: 0 0 calc(18px + env(safe-area-inset-bottom)); border: 0; border-radius: 20px 20px 0 0;
  background: linear-gradient(180deg, #F7F4EF 0%, #ECE6DD 100%); color: var(--u2-ink);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, .45);
}
.u2-sheet .ic { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* หัว: น้ำตาล + แสงทองนวลด้านบน */
.u2-lg-hd {
  position: relative; overflow: hidden; padding: 10px 20px 34px; text-align: center; color: #fff;
  background: radial-gradient(90% 120% at 50% -30%, rgba(245, 197, 66, .28), rgba(245, 197, 66, 0) 60%), linear-gradient(180deg, #84705F 0%, #5C4D42 100%);
  border-radius: 20px 20px 0 0; touch-action: none;
}
.u2-lg-hd::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, rgba(245,197,66,0), rgba(255,226,138,.9) 50%, rgba(245,197,66,0)); }
.u2-lg-hd > * { position: relative; z-index: 1; }
.u2-lg-grip { display: block; width: 40px; height: 4px; margin: 0 auto 12px; border-radius: 4px; background: rgba(245, 214, 140, .5); }
.u2-lg-x {
  position: absolute; top: 14px; right: 14px; z-index: 2; width: 32px; height: 32px; padding: 0; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(245, 197, 66, .5); color: #F5D68C;
}
.u2-lg-x .ic { width: 16px; height: 16px; }
.u2-lg-logo { display: block; height: auto; max-height: 40px; width: auto; margin: 0 auto; filter: drop-shadow(0 2px 3px rgba(0,0,0,.35)); }
.u2-lg-ttl {
  margin: 8px 0 0; font-family: 'Kanit', sans-serif; font-size: 28px; font-weight: 500; line-height: 1.2;
  background: linear-gradient(180deg, #FFF4CC 0%, #F5C542 55%, #D99A1E 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.u2-lg-sub { margin: 4px 0 0; font-size: 13.5px; color: #EADBC4; }

/* ฟอร์ม: พื้นครีมซ้อนขึ้นบนหัว */
.u2-lg-form {
  position: relative; z-index: 1; display: grid; gap: 12px; margin: -16px 0 0; padding: 22px 16px 0;
  background: linear-gradient(180deg, #F7F4EF 0%, #ECE6DD 100%); border-radius: 18px 18px 0 0;
}
.u2-fl {
  position: relative; display: flex; align-items: center; height: 58px; margin: 0;
  background: #fff; border: 1.5px solid #DDD2C4; border-radius: 14px; transition: border-color .15s, box-shadow .15s;
}
.u2-fl > .ic { position: absolute; left: 14px; color: #9C8B7B; transition: color .15s; }
.u2-fl input {
  width: 100%; height: 100%; margin: 0; padding: 20px 14px 4px 46px; border: 0; outline: 0; border-radius: 14px;
  background: none; box-shadow: none; font: inherit; font-size: 16px; color: var(--u2-ink); caret-color: var(--u2-ink);
}
.u2-fl.has-eye input { padding-right: 52px; }
.u2-fl input:-webkit-autofill { -webkit-box-shadow: 0 0 0 40px #fff inset; -webkit-text-fill-color: var(--u2-ink); }
.u2-fl label {
  position: absolute; left: 46px; top: 50%; margin: 0; transform: translateY(-50%); pointer-events: none;
  font-size: 16px; font-weight: 400; color: #8A7868; transition: top .15s, font-size .15s, color .15s;
}
.u2-fl input:focus + label, .u2-fl input:not(:placeholder-shown) + label, .u2-fl input:-webkit-autofill + label { top: 15px; font-size: 12px; font-weight: 600; color: #9A6E22; }
.u2-fl:focus-within { border-color: var(--u2-gold); box-shadow: 0 0 0 4px rgba(217, 169, 63, .28); }
.u2-fl:focus-within > .ic { color: #9A6E22; }
.u2-fl.is-invalid { border-color: #E5484D; box-shadow: 0 0 0 4px rgba(229, 72, 77, .14); }
.u2-fl-eye {
  position: absolute; right: 6px; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 10px; background: none;
  display: flex; align-items: center; justify-content: center; color: #9C8B7B;
}
.u2-fl-eye .ic-hide, .u2-fl-eye[aria-pressed="true"] .ic-show { display: none; }
.u2-fl-eye[aria-pressed="true"] .ic-hide { display: block; }
.u2-fl-ok { position: absolute; right: 16px; color: #16A34A; opacity: 0; transform: scale(.6); transition: opacity .15s, transform .15s; }
.u2-fl.is-match .u2-fl-ok { opacity: 1; transform: none; }

.u2-lg-err {
  display: none; align-items: flex-start; gap: 8px; padding: 10px 12px; border-radius: 12px;
  background: #FDECEA; border: 1px solid #F3B9B2; color: #A1271B; font-size: 14px; line-height: 1.45;
}
.u2-lg-err.is-show { display: flex; }
.u2-lg-err .ic { width: 20px; height: 20px; }

/* ปุ่ม */
.u2-sbtn {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; border-radius: 12px; cursor: pointer;
  font-family: 'Kanit', sans-serif; font-weight: 600; text-decoration: none; transition: transform .15s, filter .15s;
}
.u2-sbtn:active { transform: scale(.97); }
.u2-sbtn-gold, .u2-app button.u2-sbtn-gold { /* button ใน .u2-app โดน reset background/border */
  border: 1px solid #F2D58A; color: #2B1F17 !important;
  background: radial-gradient(ellipse 55% 90% at 50% 0%, rgba(255,251,225,.95) 0%, rgba(255,241,185,.55) 45%, rgba(255,230,150,0) 100%), linear-gradient(180deg, #F4CF6C 0%, #ECBE5A 45%, #D59B33 100%);
  box-shadow: 0 4px 12px rgba(90, 60, 20, .3), inset 0 1px 0 rgba(255,255,255,.7), inset 0 -2px 4px rgba(140,90,10,.35);
}
.u2-sbtn-ghost {
  border: 1px solid rgba(217, 169, 63, .7); color: #F7DE8E !important; text-shadow: 0 1px 2px rgba(0,0,0,.4);
  background: radial-gradient(ellipse 55% 90% at 50% 0%, rgba(255,230,180,.22) 0%, rgba(255,230,180,0) 100%), linear-gradient(180deg, #7A6555 0%, #5C4D42 50%, #46392F 100%);
  box-shadow: 0 4px 12px rgba(59, 42, 30, .3), inset 0 1px 0 rgba(255,255,255,.18), inset 0 -2px 4px rgba(0,0,0,.3);
}
.u2-lg-submit { height: 54px; margin-top: 2px; font-size: 18px; }
.u2-lg-alt { height: 50px; font-size: 17px; font-weight: 500; }
.u2-lg-alt .ic { width: 20px; height: 20px; }
.u2-lg-spin { display: none; width: 20px; height: 20px; border: 2.5px solid rgba(43,31,23,.3); border-top-color: #2B1F17; border-radius: 50%; animation: u2-spin .7s linear infinite; }
.u2-lg-form.is-loading .u2-lg-spin { display: inline-block; }
.u2-lg-form.is-loading .u2-lg-submit { pointer-events: none; filter: saturate(.8); }
.u2-lg-form.is-shake { animation: u2-shake .4s; }
.u2-lg-link {
  justify-self: center; display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px; border: 0; background: none;
  font: inherit; font-size: 14px; color: var(--u2-ink2) !important; text-decoration: none;
}
.u2-lg-link b { font-weight: 600; color: #9A6E22; }
.u2-lg-link .ic { width: 18px; height: 18px; }
.u2-lg-or { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--u2-ink2); }
.u2-lg-or::before, .u2-lg-or::after { content: ''; flex: 1; height: 1px; background: rgba(154, 110, 34, .3); }

/* สมัคร: ขั้นตอน + ยืนยันอายุ + ธนาคาร */
.u2-rg-steps { display: flex; gap: 10px; margin: 14px 0 0; padding: 0; list-style: none; }
.u2-rg-steps li { position: relative; flex: 1; list-style-position: inside; padding-top: 8px; font-size: 12.5px; color: rgba(255,255,255,.6); }
.u2-rg-steps li::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; border-radius: 2px; background: rgba(255,255,255,.2); transition: background .2s; }
.u2-rg-steps li.is-on { color: #F5D68C; font-weight: 600; }
.u2-rg-steps li.is-on::before { background: linear-gradient(90deg, #D99A1E, #FFE28A 50%, #D99A1E); box-shadow: 0 0 6px rgba(245,197,66,.45); }
#u2-register .u2-rg-panel { display: none; gap: 12px; }
#u2-register[data-step="1"] [data-panel="1"], #u2-register[data-step="age"] [data-panel="age"], #u2-register[data-step="2"] [data-panel="2"] { display: grid; }
#u2-register [data-show] { display: none; }
#u2-register[data-step="1"] [data-show~="1"], #u2-register[data-step="2"] [data-show~="2"] { display: flex; }
.u2-rg-age { justify-items: center; text-align: center; padding: 4px 0; }
.u2-rg-age-badge {
  display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 50%;
  background: #2B1F17; border: 3px solid var(--u2-gold); box-shadow: 0 0 14px rgba(217,169,63,.35);
  font-family: 'Kanit', sans-serif; font-size: 20px; font-weight: 700; font-style: italic; color: #F5C542;
}
.u2-rg-age-ttl { margin: 0; font-family: 'Kanit', sans-serif; font-size: 18px; font-weight: 600; color: var(--u2-ink); }
.u2-rg-age-txt { margin: -6px 0 0; font-size: 14px; color: var(--u2-ink2); }
.u2-rg-label { margin: 0; font-size: 14px; font-weight: 600; color: var(--u2-ink); }
.u2-rg-note { margin: -4px 0 0; font-size: 12.5px; color: var(--u2-ink2); }
.u2-rg-banks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; max-height: 200px; overflow-y: auto; padding: 2px; }
.u2-rg-bank {
  position: relative; margin: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 2px;
  background: #fff; border: 1.5px solid #E3DACE; border-radius: 12px; text-align: center; cursor: pointer;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.u2-rg-bank input { position: absolute; opacity: 0; pointer-events: none; }
.u2-rg-bank-logo { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; }
.u2-rg-bank-logo img { width: 24px; height: 24px; object-fit: contain; }
.u2-rg-bank-name { font-size: 11px; line-height: 1.25; color: var(--u2-ink); overflow-wrap: anywhere; }
.u2-rg-bank:focus-within { border-color: rgba(217,169,63,.7); }
.u2-rg-bank.is-on { border-color: var(--u2-gold); background: rgba(217,169,63,.12); box-shadow: 0 0 0 3px rgba(217,169,63,.2); }
.u2-rg-banks.is-invalid { border-radius: 12px; box-shadow: 0 0 0 2px rgba(229,72,77,.6); }
@keyframes u2-spin { to { transform: rotate(360deg); } }
@keyframes u2-shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
@media (prefers-reduced-motion: reduce) { .u2-sheet.fade .modal-dialog { transition: none; } .u2-lg-form.is-shake { animation: none; } }

/* ===== sheet รายละเอียดโปร — UX แบบ superlsm99.link (.sheet-pro) สีธีม ufamv ===== */
.u2-pro .modal-content { padding: 0 16px; }
.u2-pro-hd {
  position: sticky; top: 0; z-index: 2; height: 32px; margin: 0 -16px; touch-action: none;
  background: #F7F4EF; border-radius: 20px 20px 0 0;
}
.u2-pro-grip { position: absolute; left: 50%; top: 10px; width: 40px; height: 4px; margin-left: -20px; border-radius: 4px; background: #D6C6AE; }
.u2-pro-x {
  position: absolute; top: 8px; right: 12px; width: 30px; height: 30px; padding: 0; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid var(--u2-line); color: var(--u2-ink); box-shadow: 0 2px 6px rgba(80, 50, 20, .15);
}
.u2-pro-x .ic { width: 16px; height: 16px; }
.u2-pro-img { display: block; width: 100%; height: auto; aspect-ratio: 1040 / 624; object-fit: cover; margin-top: 10px; border-radius: 12px; box-shadow: 0 4px 14px rgba(80, 50, 20, .2); }
.u2-pro-ttl { margin: 14px 0 8px; font-size: 19px; font-weight: 600; line-height: 1.35 !important; color: var(--u2-ink) !important; }
.u2-pro-detail { padding-top: 10px; border-top: 1px solid var(--u2-line); font-size: 14px; line-height: 1.65; color: #4A3628; overflow-wrap: anywhere; }
.u2-pro-detail * { font-family: inherit !important; font-size: inherit !important; line-height: inherit !important; max-width: 100%; }
/* คุมสีจาก editor หลังบ้าน: สี/ไฮไลต์ที่ใส่มาเอง (style="color/background", <font color>) ถูกแทนด้วยโทนธีม — ตัวหนา/ข้อความที่ใส่สี = น้ำตาลส้ม */
.u2-pro-detail * { color: inherit !important; background-color: transparent !important; }
.u2-pro-detail h1, .u2-pro-detail h2, .u2-pro-detail h3, .u2-pro-detail h4 { margin: 0 0 6px; font-size: 15px !important; font-weight: 600; color: #6E3410 !important; }
.u2-pro-detail p { margin: 0 0 6px; }
.u2-pro-detail ul, .u2-pro-detail ol { margin: 0 0 8px; padding-left: 20px; }
.u2-pro-detail ul { list-style: disc; }
.u2-pro-detail ol { list-style: decimal; }
.u2-pro-detail li { margin-bottom: 2px; }
.u2-pro-detail :is(p, ul, ol, li, div, td) { color: #4A3628 !important; } /* common.css ทำ li สีจาง */
.u2-pro-detail strong, .u2-pro-detail b { font-weight: 600; }
.u2-pro-detail :is(strong, b, font[color], [style*="color"]) { color: #9A4F1C !important; }
.u2-pro-detail a { color: #A4561A !important; text-decoration: underline !important; }
.u2-pro-detail img { height: auto; border-radius: 8px; }

/* ===== sheet ติดต่อเรา (#u2-contact) — แบบ superlsm99.link #sheet-contact ===== */
.u2-ct {
  position: relative; z-index: 1; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: -16px 0 0; padding: 22px 16px 4px;
  background: linear-gradient(180deg, #F7F4EF 0%, #ECE6DD 100%); border-radius: 18px 18px 0 0;
}
.u2-ct-item {
  display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 10px 16px; border-radius: 14px;
  font-family: 'Kanit', sans-serif; font-size: 17px; font-weight: 600; color: #fff !important; text-decoration: none !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 4px 10px rgba(60,40,20,.18);
}
.u2-ct-item img { width: 28px; height: 28px; flex: none; }
.u2-ct-item.is-line { background: #06C755; }
.u2-ct-item.is-tg { background: #2AABEE; }

/* ---------- แถบติดตั้งแอป (PWA) บนสุดเหนือ header — u2_top.php #u2-pwa (ชุดเดียวกับ member css2/u2.css) ---------- */
.u2-pwa {
  position: relative; z-index: 51;
  display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 6px 8px 6px 12px;
  background: linear-gradient(90deg, #5C4D42 0%, #3B2A1E 100%); border-bottom: 1px solid rgba(245, 197, 66, .3);
  color: #fff; line-height: 1.3;
}
.u2-pwa[hidden] { display: none; }
.u2-pwa > img { flex: none; width: 34px; height: 34px; border-radius: 8px; box-shadow: 0 0 0 1px rgba(245, 197, 66, .5); }
.u2-pwa-tx { flex: 1; min-width: 0; display: grid; }
.u2-pwa-tx b { font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.u2-pwa-tx small { font-size: 12px; font-weight: 400; color: rgba(255, 255, 255, .7); }
.u2-pwa-btn {
  flex: none; display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border: 1px solid #F2D58A; border-radius: 16px;
  background: linear-gradient(180deg, #F4CF6C 0%, #ECBE5A 45%, #D59B33 100%); color: #2B1F17 !important;
  font-size: 13px; font-weight: 600; text-decoration: none !important;
}
.u2-pwa-x { flex: none; display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0; border: 0; background: none; color: rgba(255, 255, 255, .7); cursor: pointer; }
.u2-pwa-x svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

/* สไลด์ .u2-hero จากหลังบ้าน (เมนู Slides) ใส่ลิงก์ได้ → <a> ครอบรูป ให้เต็มกรอบเหมือนเดิม */
.u2-slide > a { display: block; height: 100%; }
