/* Laundery — หน้าเข้าสู่ระบบ / หน้าสมาชิก */
.auth-wrap { background: radial-gradient(1200px 500px at 85% -10%, #f3e3ff 0%, rgba(243,227,255,0) 60%), #fcf8ff; }
.auth-card { border: none; border-radius: 24px; }
.auth-side { background: linear-gradient(150deg, #7B2FBE 0%, #9D4EDD 55%, #C026D3 100%); border-radius: 24px; color: #fff; position: relative; overflow: hidden; }
.auth-side::after { content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%; background: rgba(255,255,255,.08); right: -80px; bottom: -80px; }
.auth-side .perk { display: flex; gap: .85rem; align-items: flex-start; margin-bottom: 1.1rem; }
.auth-side .perk i { width: 2.4rem; height: 2.4rem; flex-shrink: 0; border-radius: .8rem; background: rgba(255,255,255,.16); display: flex; align-items: center; justify-content: center; font-size: 1.15rem; }
.btn-social { display: flex; align-items: center; justify-content: center; gap: .65rem; width: 100%; border-radius: 9999px; padding: .72rem 1rem; font-weight: 600; font-size: .95rem; transition: transform .2s ease, box-shadow .2s ease; }
.btn-social:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.12); }
.btn-social i, .btn-social svg { font-size: 1.25rem; width: 20px; height: 20px; }
.btn-line { background: #06C755; color: #fff; border: none; } .btn-line:hover { background: #05b34c; color: #fff; }
.btn-google { background: #fff; color: #3c4043; border: 1px solid #dadce0; } .btn-google:hover { background: #f8f9fa; color: #3c4043; }
.btn-facebook { background: #1877F2; color: #fff; border: none; } .btn-facebook:hover { background: #166fe0; color: #fff; }
.btn-social.not-ready { opacity: .55; }
.badge-reco { font-size: .7rem; background: #fff; color: #06a547; border-radius: 9999px; padding: .15rem .55rem; font-weight: 700; }
.or-line { display: flex; align-items: center; gap: .8rem; color: #9ca3af; font-size: .85rem; margin: 1.5rem 0; }
.or-line::before, .or-line::after { content: ""; flex: 1; height: 1px; background: #ece6f3; }
.auth-card .form-control { border-radius: 14px; padding: .75rem 1rem; border-color: #e9e1f2; }
.auth-card .form-control:focus, .m-card .form-control:focus { border-color: #b98ae6; box-shadow: 0 0 0 .2rem rgba(157,78,221,.15); }
.auth-card .input-group-text { border-radius: 14px 0 0 14px; background: #faf5ff; border-color: #e9e1f2; color: #9D4EDD; }
.auth-card .input-group .form-control { border-radius: 0 14px 14px 0; }
.consent { font-size: .78rem; color: #6b7280; }
.guest-box { background: #faf5ff; border: 1px dashed #d8b4fe; border-radius: 16px; }
.tab-switch { background: #f6eaff; border-radius: 9999px; padding: 4px; display: inline-flex; }
.tab-switch a { border-radius: 9999px; padding: .4rem 1.2rem; font-size: .9rem; font-weight: 600; color: #7e22ce; text-decoration: none; }
.tab-switch a.active { background: #fff; box-shadow: 0 2px 8px rgba(126,34,206,.15); }
.mt-alert { border-radius: 14px; font-size: .9rem; }

/* หน้าสมาชิก */
.mb-wrap { background: #fcf8ff; }
.m-card { background: #fff; border: none; border-radius: 20px; box-shadow: 0 10px 30px rgba(126, 34, 206, .07); }
.m-card .form-control, .m-card .form-select { border-radius: 12px; border-color: #e9e1f2; }
.m-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 0; }
.m-hero { background: linear-gradient(135deg, #7B2FBE 0%, #9D4EDD 55%, #C026D3 100%); border-radius: 24px; color: #fff; position: relative; overflow: hidden; }
.m-hero::after { content: ""; position: absolute; width: 300px; height: 300px; border-radius: 50%; background: rgba(255,255,255,.07); right: -90px; top: -120px; }
.avatar { width: 64px; height: 64px; border-radius: 50%; background: #fff; color: #7e22ce; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; font-weight: 800; position: relative; flex-shrink: 0; }
.avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.avatar .via { position: absolute; right: -4px; bottom: -4px; width: 24px; height: 24px; border-radius: 50%; color: #fff; display: flex; align-items: center; justify-content: center; font-size: .8rem; border: 2px solid #fff; }
.chip { display: inline-flex; align-items: center; gap: .35rem; border-radius: 9999px; padding: .25rem .7rem; font-size: .78rem; font-weight: 600; }
.chip-glass { background: rgba(255,255,255,.18); color: #fff; }
.btn-white { background: #fff; color: #7e22ce; font-weight: 600; } .btn-white:hover { background: #faf5ff; color: #7e22ce; }
.btn-ghost { background: rgba(255,255,255,.15); color: #fff; font-weight: 600; border: 1px solid rgba(255,255,255,.35); } .btn-ghost:hover { background: rgba(255,255,255,.25); color: #fff; }
.btn-mini { border-radius: 9999px; padding: .38rem .95rem !important; font-size: .82rem !important; font-weight: 600; line-height: 1.4; display: inline-flex; align-items: center; justify-content: center; gap: .3rem; }
.btn-mini-outline { background: #fff; border: 1px solid #e9d5ff; color: #7e22ce; } .btn-mini-outline:hover { background: #faf5ff; color: #7e22ce; border-color: #d8b4fe; }
.btn-mini-danger { background: #fff; border: 1px solid #fecaca; color: #b91c1c; } .btn-mini-danger:hover { background: #fef2f2; color: #b91c1c; }
.stat { padding: 1.25rem 1.4rem; height: 100%; }
.stat .ic { width: 2.6rem; height: 2.6rem; border-radius: .9rem; background: #f6eaff; color: #7e22ce; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; }
.stat .val { font-size: 1.55rem; font-weight: 800; line-height: 1.1; }
.stat .val small { font-size: 1rem; font-weight: 600; }
.stat .lbl { font-size: .85rem; color: #6b7280; }
.order { border: 1px solid #f0e6fa; border-radius: 16px; padding: 1rem 1.1rem; transition: box-shadow .2s ease, transform .2s ease; }
.order:hover { box-shadow: 0 8px 22px rgba(126,34,206,.12); transform: translateY(-1px); }
.order + .order { margin-top: .8rem; }
.order .oid { font-weight: 700; }
.pill { display: inline-block; border-radius: 9999px; padding: .2rem .65rem; font-size: .75rem; font-weight: 700; }
.pill-paid { background: #dcfce7; color: #15803d; } .pill-due { background: #fef3c7; color: #b45309; }
.pill-cancel { background: #fee2e2; color: #b91c1c; } .pill-soft { background: #f6eaff; color: #7e22ce; }
.track { display: flex; align-items: flex-start; margin-top: .9rem; }
.track .st { flex: 1; text-align: center; position: relative; font-size: .72rem; color: #9ca3af; }
.track .st::before { content: ""; position: absolute; top: 7px; left: -50%; width: 100%; height: 3px; background: #ede9f3; z-index: 0; }
.track .st:first-child::before { display: none; }
.track .dot { width: 17px; height: 17px; border-radius: 50%; background: #ede9f3; margin: 0 auto .3rem; position: relative; z-index: 1; border: 3px solid #fff; box-shadow: 0 0 0 1px #ede9f3; }
.track .st.done { color: #6b21a8; } .track .st.done .dot { background: #9D4EDD; box-shadow: 0 0 0 1px #9D4EDD; } .track .st.done::before { background: #c084fc; }
.track .st.now { color: #7e22ce; font-weight: 700; } .track .st.now::before { background: #c084fc; }
.track .st.now .dot { background: linear-gradient(135deg, #9D4EDD, #FF00FF); box-shadow: 0 0 0 4px rgba(157,78,221,.2); }
.m-progress { height: 12px; border-radius: 9999px; background: #f1eaf8; }
.m-progress .bar { height: 100%; border-radius: 9999px; background: linear-gradient(90deg, #9D4EDD, #FF00FF); }
.m-progress .bar.warn { background: #f59e0b; }
.tx { display: flex; justify-content: space-between; align-items: center; padding: .6rem 0; border-bottom: 1px solid #f3eef8; font-size: .88rem; gap: .8rem; }
.tx:last-child { border-bottom: none; }
.amt-in { color: #15803d; font-weight: 700; } .amt-out { color: #b91c1c; font-weight: 700; } .amt-wait { color: #b45309; font-weight: 700; }
.bank { background: #faf5ff; border-radius: 14px; }
.linked { display: flex; justify-content: space-between; align-items: center; padding: .65rem 0; border-bottom: 1px solid #f3eef8; gap: .5rem; }
.linked:last-of-type { border-bottom: none; }
.linked .logo { width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.05rem; flex-shrink: 0; }
.addr { border: 1px solid #f0e6fa; border-radius: 14px; padding: .75rem .9rem; font-size: .88rem; }
.addr + .addr { margin-top: .6rem; }
.phone-alert { background: #fffbeb; border: 1px solid #fde68a; border-radius: 16px; }
.empty { text-align: center; color: #9ca3af; padding: 1.5rem .5rem; font-size: .9rem; }
.m-link { color: #7e22ce; text-decoration: none; }

/* เว้นที่ด้านบนให้พ้นแถบเมนู (navbar แบบ fixed-top สูงประมาณ 66px) */
.auth-wrap { padding-top: calc(72px + 2rem) !important; }
.mb-wrap   { padding-top: calc(72px + 1.25rem) !important; }
@media (min-width: 992px) {
    .auth-wrap { padding-top: calc(72px + 3rem) !important; }
    .mb-wrap   { padding-top: calc(72px + 2rem) !important; }
}

/* ปุ่มเปลี่ยนภาษา */
.lang-sw { display: inline-flex; background: #f6eaff; border-radius: 9999px; padding: 3px; }
.lang-sw a { padding: .2rem .7rem; border-radius: 9999px; font-size: .78rem; font-weight: 700; color: #7e22ce; text-decoration: none; }
.lang-sw a.on { background: #fff; box-shadow: 0 2px 6px rgba(126,34,206,.15); }

/* หน้าจอง */
.bk-num { display: inline-flex; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: linear-gradient(135deg, #9D4EDD, #C026D3); color: #fff; font-size: .85rem; align-items: center; justify-content: center; margin-right: .35rem; vertical-align: 2px; }
.bk-opt, .bk-svc, .bk-chip, .bk-addr { cursor: pointer; border: 2px solid #ece3f6; background: #fff; transition: all .15s ease; }
.bk-opt { border-radius: 16px; padding: .9rem; font-weight: 700; color: #4b5563; }
.bk-svc { border-radius: 18px; padding: 1rem 1.1rem; }
.bk-svc i { color: #9D4EDD; }
.bk-chip { border-radius: 9999px; padding: .45rem .95rem; font-size: .88rem; font-weight: 600; color: #4b5563; white-space: nowrap; user-select: none; }
.bk-addr { border-radius: 14px; padding: .75rem 1rem; }
.btn-check:checked + .bk-opt, .btn-check:checked + .bk-svc, .btn-check:checked + .bk-chip, .btn-check:checked + .bk-addr { border-color: #9D4EDD; background: #faf5ff; color: #6b21a8; box-shadow: 0 4px 14px rgba(157,78,221,.15); }
.btn-check:disabled + .bk-chip { opacity: .4; text-decoration: line-through; cursor: not-allowed; }
.btn-check:focus-visible + label { outline: 2px solid #9D4EDD; outline-offset: 2px; }
.bk-scroll { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .35rem; scroll-snap-type: x proximity; }
.bk-scroll > span { scroll-snap-align: start; }
.bk-day { border-radius: 14px; }
.bk-note { background: #faf5ff; border: 1px dashed #d8b4fe; border-radius: 14px; padding: .8rem 1rem; font-size: .92rem; }
.bk-bar { position: sticky; bottom: 12px; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 1rem; background: #fff; border-radius: 9999px; padding: .6rem .6rem .6rem 1.4rem; box-shadow: 0 10px 30px rgba(126,34,206,.18); }
@media (max-width: 575px) { .bk-bar { border-radius: 20px; flex-direction: column; align-items: stretch; padding: .8rem; } .bk-bar .btn { width: 100%; } }

/* แถบสมาชิกบนหน้าจองเดิม */
.member-order-bar { background: #faf5ff; border: 1px solid #ecdcfb; border-radius: 16px; padding: .7rem .4rem; margin: 0 0 1rem; color: #4b5563; }
.member-order-bar .container { padding-left: .6rem; padding-right: .6rem; }
.member-order-bar .m-link { color: #7e22ce; text-decoration: none; font-weight: 600; }
