/* member.ufajump.online — หน้า login / register : UX แบบ member.ufamv.click (css2/u2.css ส่วน login/register) สีธีม ufajump.online ดำ-ส้ม-เหลือง ; prefix u2- */
:root {
  --u2-bg: #0E0E0E;
  --u2-card: #161616;
  --u2-ink: #F5F5F5;
  --u2-ink2: #A3A3A3;
  --u2-yel: #FFC51E;
  --u2-org: #F59E0B;
  --u2-app-w: 440px;
  --u2-yel-bg: linear-gradient(180deg, #FFDA4A 0%, #FFC51E 45%, #F5A00B 100%);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: #070707; }
body.u2 {
  margin: 0; font-family: 'Kanit', sans-serif; font-size: 15px; line-height: 1.5; color: var(--u2-ink);
  background: transparent;
}
/* พื้นหลังรูปเดิมของ ufajump (img/ufajump-2.webp) เต็มจอ — ใช้ ::before fixed แทน background-attachment (iOS ไม่รองรับ fixed) */
body.u2::before { content: ''; position: fixed; inset: 0; z-index: -1; background: #070707 url(/img/ufajump-2.webp) center / cover no-repeat; }
:where(.u2-app) img { display: block; max-width: 100%; height: auto; }
:where(.u2-app) a { color: inherit; text-decoration: none; }
:where(.u2-app) button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:where(.u2-app) :is(h1, h2, h3, p, ol, ul) { margin: 0; }
.ic { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
body.is-locked { overflow: hidden; }

/* โครงหลัก: คอลัมน์ 440 กลางจอ */
.u2-app {
  position: relative; display: flex; flex-direction: column;
  max-width: var(--u2-app-w); min-height: 100vh; margin: 0 auto;
  background: rgba(8, 8, 8, .35);
  box-shadow: 0 0 60px rgba(245, 158, 11, .18);
}
.u2-app > main { flex: 1 0 auto; display: flex; flex-direction: column; }

/* header ดำ + แถบเหลือง-ส้ม (แบบเมนูของ ufajump.online) */
.u2-top {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  height: 60px; padding: 0 12px; background: linear-gradient(180deg, #1C1C1C 0%, #0D0D0D 100%);
}
.u2-top::after { content: ''; position: absolute; left: 0; right: 0; bottom: -3px; height: 3px; background: var(--u2-yel-bg); }
.u2-top-logo img { height: auto; max-height: 38px; width: auto; filter: drop-shadow(0 2px 3px rgba(0,0,0,.5)); }
.u2-top-btn {
  display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(255, 197, 30, .75); color: var(--u2-yel); background: #141414;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 2px 6px rgba(0, 0, 0, .5);
}
.u2-top-btn .ic { width: 20px; height: 20px; }

/* หน้าเข้าสู่ระบบ / สมัคร */
.u2-au-banner { margin-top: 3px; }
.u2-au-banner img { width: 100%; aspect-ratio: 1024 / 373; object-fit: cover; }
.u2-au-card { position: relative; flex: 1 0 auto; display: flex; flex-direction: column; margin-top: -14px; }
.u2-au-card.is-top { margin-top: 3px; }
.u2-lg-hd {
  position: relative; overflow: hidden; padding: 18px 20px 34px; text-align: center; color: #fff;
  background: radial-gradient(90% 120% at 50% -30%, rgba(245, 158, 11, .35), rgba(245, 158, 11, 0) 60%), linear-gradient(180deg, rgba(30,30,30,.78) 0%, rgba(17,17,17,.78) 100%);
  border-radius: 20px 20px 0 0;
}
.u2-au-card.is-top .u2-lg-hd { border-radius: 0; }
.u2-lg-hd::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, rgba(255,197,30,0), rgba(255,218,74,.95) 50%, rgba(255,197,30,0)); }
.u2-lg-hd > * { position: relative; z-index: 1; }
.u2-lg-ttl {
  font-size: 30px; font-weight: 600; line-height: 1.2;
  background: linear-gradient(180deg, #FFF3B0 0%, #FFC51E 50%, #F58A0B 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.u2-lg-sub { margin-top: 4px; font-size: 14px; color: #BDBDBD; }

.u2-lg-form {
  position: relative; z-index: 1; flex: 1 0 auto; display: grid; align-content: start; gap: 12px; margin-top: -16px; padding: 22px 16px 20px;
  background: linear-gradient(180deg, rgba(24,24,24,.8) 0%, rgba(15,15,15,.8) 100%); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); border-radius: 18px 18px 0 0;
  border-top: 1px solid rgba(255, 197, 30, .25);
}
/* ช่องกรอก label ลอย */
.u2-fl {
  position: relative; display: flex; align-items: center; height: 58px;
  background: #1F1F1F; border: 1.5px solid #333; border-radius: 14px; transition: border-color .15s, box-shadow .15s;
}
.u2-fl > .ic { position: absolute; left: 14px; color: #8A8A8A; 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-yel);
}
.u2-fl.has-eye input { padding-right: 52px; }
.u2-fl input:-webkit-autofill { -webkit-box-shadow: 0 0 0 40px #1F1F1F 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: #8F8F8F; 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: var(--u2-yel); }
.u2-fl:focus-within { border-color: var(--u2-yel); box-shadow: 0 0 0 4px rgba(255, 197, 30, .22); }
.u2-fl:focus-within > .ic { color: var(--u2-yel); }
.u2-fl.is-invalid { border-color: #EF4444; box-shadow: 0 0 0 4px rgba(239, 68, 68, .18); }
.u2-fl-eye {
  position: absolute; right: 6px; width: 44px; height: 44px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; color: #8A8A8A;
}
.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: #22C55E; 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: rgba(239, 68, 68, .12); border: 1px solid rgba(239, 68, 68, .55); color: #FCA5A5; font-size: 14px; line-height: 1.45;
}
.u2-lg-err.is-show { display: flex; }
.u2-lg-err .ic { width: 20px; height: 20px; }

/* ปุ่ม (เหลือง-ส้ม / ดำขอบขาว แบบปุ่ม header ของ ufajump.online) */
.u2-sbtn {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; cursor: pointer;
  font-weight: 600; text-decoration: none; transition: transform .15s, filter .15s;
}
.u2-sbtn:active { transform: scale(.97); }
.u2-sbtn:hover { filter: brightness(1.06); }
.u2-sbtn-gold, button.u2-sbtn-gold {
  border: 1px solid #FFE27A; color: #111;
  background: var(--u2-yel-bg);
  box-shadow: 0 4px 14px rgba(245, 158, 11, .35), inset 0 1px 0 rgba(255,255,255,.6), inset 0 -2px 4px rgba(180,90,0,.35);
}
.u2-sbtn-ghost, button.u2-sbtn-ghost {
  border: 1.5px solid rgba(255, 255, 255, .85); color: #fff;
  background: linear-gradient(180deg, #262626 0%, #121212 100%);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .4), inset 0 1px 0 rgba(255,255,255,.1);
}
.u2-sbtn-ghost:hover { color: #fff; }
.u2-sbtn-ghost .ic { color: var(--u2-yel); }
.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(17,17,17,.3); border-top-color: #111; 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; font-size: 14px; color: var(--u2-ink2); }
.u2-lg-link b { font-weight: 600; color: var(--u2-yel); }
.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(255, 197, 30, .25); }

/* สมัคร: ขั้นตอน + ยืนยันอายุ + ธนาคาร */
.u2-rg-steps { display: flex; gap: 10px; margin-top: 14px; padding: 0; list-style: none; text-align: left; }
.u2-rg-steps li { position: relative; flex: 1; padding-top: 8px; font-size: 12.5px; color: rgba(255,255,255,.55); }
.u2-rg-steps li::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; border-radius: 3px; background: rgba(255,255,255,.15); transition: background .2s; }
.u2-rg-steps li.is-on { color: var(--u2-yel); font-weight: 600; }
.u2-rg-steps li.is-on::before { background: linear-gradient(90deg, #F58A0B, #FFDA4A 50%, #F58A0B); box-shadow: 0 0 6px rgba(255,197,30,.5); }
#register .u2-rg-panel { display: none; gap: 12px; }
#register[data-step="1"] [data-panel="1"], #register[data-step="age"] [data-panel="age"], #register[data-step="2"] [data-panel="2"] { display: grid; }
#register [data-show] { display: none; }
#register[data-step="1"] [data-show~="1"], #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: #0A0A0A; border: 3px solid var(--u2-yel); box-shadow: 0 0 14px rgba(255,197,30,.4);
  font-size: 20px; font-weight: 700; font-style: italic; color: var(--u2-yel);
}
.u2-rg-age-ttl { font-size: 18px; font-weight: 600; color: var(--u2-ink); }
.u2-rg-age-txt { margin-top: -6px; font-size: 14px; color: var(--u2-ink2); }
.u2-rg-label { font-size: 14px; font-weight: 600; color: var(--u2-ink); }
.u2-rg-note { margin-top: -4px; 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: #1F1F1F; border: 1.5px solid #333; 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(255,197,30,.7); }
.u2-rg-bank.is-on { border-color: var(--u2-yel); background: rgba(255,197,30,.12); box-shadow: 0 0 0 3px rgba(255,197,30,.22); }
.u2-rg-banks.is-invalid { border-radius: 12px; box-shadow: 0 0 0 2px rgba(239,68,68,.7); }

/* footer */
.u2-foot { padding: 14px 12px calc(16px + env(safe-area-inset-bottom)); text-align: center; font-size: 12.5px; color: var(--u2-ink2); border-top: 1px solid rgba(255, 197, 30, .25); background: rgba(10,10,10,.75); }
.u2-foot-age { display: flex; align-items: center; justify-content: center; gap: 8px; }
.u2-foot-18 {
  display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; flex: none;
  border: 2px solid var(--u2-org); border-radius: 50%; font-size: 11px; font-weight: 600; color: var(--u2-org);
}
.u2-foot-copy { margin-top: 6px; font-size: 12px; }

/* bottom sheet (ติดต่อเรา) — z-index เหนือ LIVECHAT (9999) */
.u2-sh { position: fixed; inset: 0; z-index: 10000; visibility: hidden; }
.u2-sh.is-open { visibility: visible; }
.u2-sh-bg { position: absolute; inset: 0; background: rgba(0, 0, 0, .7); opacity: 0; transition: opacity .2s; }
.u2-sh.is-open .u2-sh-bg { opacity: 1; }
.u2-sh-box {
  position: absolute; bottom: 0; left: 50%; width: 100%; max-width: var(--u2-app-w); max-height: 90vh; overflow-y: auto;
  padding-bottom: calc(20px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, #181818 0%, #0F0F0F 100%); border-radius: 20px 20px 0 0;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, .6);
  transform: translate(-50%, 100%); transition: transform .3s cubic-bezier(.22, 1, .36, 1);
}
.u2-sh.is-open .u2-sh-box { transform: translate(-50%, 0); }
.u2-sh .u2-lg-hd { padding-top: 10px; }
.u2-sh-grip { display: block; width: 40px; height: 4px; margin: 0 auto 12px; border-radius: 4px; background: rgba(255, 197, 30, .5); }
.u2-sh-x {
  position: absolute; top: 14px; right: 14px; z-index: 2; width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 197, 30, .5); color: var(--u2-yel);
}
.u2-sh-x .ic { width: 16px; height: 16px; }
.u2-sh .u2-lg-ttl { font-size: 26px; }
.u2-ct {
  position: relative; z-index: 1; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: -16px; padding: 22px 16px 4px;
  background: linear-gradient(180deg, #181818 0%, #0F0F0F 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-size: 17px; font-weight: 600; color: #fff !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 4px 10px rgba(0,0,0,.4);
}
.u2-ct-item img { width: 28px; height: 28px; flex: none; }
.u2-ct-item.is-line { background: #06C755; }
.u2-ct-item.is-tg { background: #2AABEE; }
.u2-ct-item:only-child { grid-column: 1 / -1; } /* มีช่องทางเดียว → เต็มแถว */
.u2-ct-none { grid-column: 1 / -1; text-align: center; color: var(--u2-ink2); font-size: 14px; padding: 8px 0; }

@keyframes u2-spin { to { transform: rotate(360deg); } }
@keyframes u2-shake { 0%, 100% { transform: none; } 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
