/* NAJIZ public pages (Hall QR, Wallet, Pending) — extends customer.css, same identity. */
html[dir=ltr] body { text-align: left; }
.topline { display: flex; justify-content: space-between; align-items: center; gap: 8px; max-width: 480px; margin: 0 auto 6px; font-size: .85rem; }
.topline a { color: #fff; opacity: .9; text-decoration: none; font-weight: 700; }
.hero .brand-row { display: flex; align-items: center; justify-content: center; gap: 10px; }
.hero .brand-row img { width: auto; height: auto; max-width: 64px; max-height: 56px; border-radius: 12px; object-fit: contain; background: #fff; padding: 3px; }
.hero h1 { font-size: 1.35rem; margin: 10px 0 2px; }
.hero .sub { opacity: .92; font-size: .95rem; }

.search { width: 100%; border: 1.5px solid var(--line); border-radius: 14px; padding: 12px; font: inherit; background: #fff; }
.search:focus { outline: none; border-color: var(--brand); }

.r-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
@media (min-width: 720px) { .wrap.wide { max-width: 900px; } .r-list { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 340px) { .r-list { grid-template-columns: 1fr; } }
.r-item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; min-height: 112px;
    border: 2px solid var(--line); border-radius: 18px; background: #fff; padding: 12px 8px; cursor: pointer; transition: border-color .15s, transform .1s; font: inherit; color: var(--text); }
.r-item:active { transform: scale(.98); }
.r-item.on { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent); }
.r-item img { max-width: 72px; max-height: 56px; object-fit: contain; }
.r-item .n { font-weight: 800; line-height: 1.3; overflow-wrap: anywhere; }
.r-item .c { font-size: .8rem; color: var(--muted); }

.num-input { width: 100%; font-size: 2.4rem; font-weight: 900; text-align: center; letter-spacing: 2px; border: 2px solid var(--line); border-radius: 18px; padding: 12px; font-family: inherit; }
.num-input:focus { outline: none; border-color: var(--brand); }
.err-box { background: #fef2f2; color: #991b1b; border-radius: 14px; padding: 12px; margin-top: 12px; text-align: center; font-size: .95rem; }
.ok-box { background: #ecfdf3; color: #14532d; border-radius: 14px; padding: 12px; margin-top: 12px; text-align: center; font-size: .95rem; }
.info-box { background: #eff6ff; color: #1e3a8a; border-radius: 14px; padding: 12px; margin-top: 12px; font-size: .9rem; }
.selected-r { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--bg); border-radius: 14px; padding: 10px 12px; margin-bottom: 12px; }
.selected-r .who { display: flex; align-items: center; gap: 8px; font-weight: 800; }
.selected-r img { max-width: 42px; max-height: 36px; object-fit: contain; }
.linkbtn { background: none; border: 0; color: var(--brand); font-weight: 700; cursor: pointer; font: inherit; }

.mo-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; }
.mo-item:last-child { border-bottom: 0; }
.mo-item .l { display: flex; align-items: center; gap: 10px; }
.mo-item img { max-width: 38px; max-height: 34px; object-fit: contain; }
.mo-item .num { font-weight: 900; font-size: 1.2rem; }
.pill { display: inline-block; border-radius: 99px; padding: 3px 10px; font-size: .8rem; font-weight: 800; background: #f1f2f6; color: var(--muted); white-space: nowrap; }
.pill.preparing { background: #fff7e6; color: #92400e; }
.pill.ready { background: #dcfce7; color: #166534; animation: beat 1.4s infinite; }
.pill.collected { background: #dbeafe; color: #1e40af; }
.pill.cancelled { background: #fee2e2; color: #991b1b; }

/* wallet */
.member-card { background: linear-gradient(135deg, #111827, #1f2937 55%, var(--brand)); color: #fff; border-radius: 22px; padding: 18px; margin-top: -52px; position: relative; z-index: 2; box-shadow: 0 10px 30px rgba(0,0,0,.15); }
.member-card .lbl { font-size: .78rem; opacity: .75; }
.member-card .mno { font-size: 1.35rem; font-weight: 900; letter-spacing: 1px; direction: ltr; text-align: start; }
.member-card .row { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; margin-top: 10px; }
.member-card img { width: 34px; height: 34px; border-radius: 9px; background: #fff; object-fit: contain; }
.loy-card { display: block; text-decoration: none; color: #fff; border-radius: 20px; padding: 16px; margin-top: 12px; position: relative; overflow: hidden;
    background: linear-gradient(135deg, var(--c, #13B8B4), color-mix(in srgb, var(--c, #13B8B4) 55%, #111827)); box-shadow: 0 6px 22px rgba(20,20,40,.12); }
.loy-card .top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.loy-card .who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.loy-card .who img { width: 46px; height: 46px; object-fit: contain; background: #fff; border-radius: 12px; padding: 3px; flex: 0 0 auto; }
.loy-card .who b { font-size: 1.1rem; overflow-wrap: anywhere; }
.loy-card .tier { background: rgba(255,255,255,.2); border-radius: 99px; padding: 3px 10px; font-size: .78rem; font-weight: 800; white-space: nowrap; }
.loy-card .stats { display: flex; gap: 18px; margin-top: 14px; }
.loy-card .stats div b { display: block; font-size: 1.4rem; font-weight: 900; line-height: 1.1; }
.loy-card .stats div span { font-size: .78rem; opacity: .85; }
.loy-card .prog { margin-top: 12px; font-size: .85rem; }
.loy-card .bar { height: 8px; border-radius: 99px; background: rgba(255,255,255,.25); overflow: hidden; margin-top: 5px; }
.loy-card .bar span { display: block; height: 100%; background: #fff; border-radius: 99px; }
.loy-card .badge-r { position: absolute; top: 12px; inset-inline-end: 12px; }
.loy-card .cno { font-size: .75rem; opacity: .7; direction: ltr; margin-top: 8px; }
.stamps { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.stamps i { width: 30px; height: 30px; border-radius: 50%; border: 2px dashed var(--line); display: grid; place-items: center; font-style: normal; font-size: .9rem; }
.stamps i.on { background: var(--brand); border: 2px solid var(--brand); color: #fff; }
.offer { border: 1px solid var(--line); border-radius: 16px; padding: 12px; margin-top: 10px; display: flex; gap: 12px; }
.offer img { width: 64px; height: 64px; object-fit: cover; border-radius: 12px; flex: 0 0 auto; }
.offer b { display: block; }
.offer .d { font-size: .88rem; color: var(--muted); }
.coupon { border: 2px dashed var(--brand); border-radius: 18px; padding: 14px; margin-top: 10px; text-align: center; }
.coupon.used { border-color: var(--line); opacity: .6; }
.coupon .qr { width: 210px; height: 210px; margin: 8px auto; display: block; background: #fff; }
.coupon .code { direction: ltr; font-weight: 900; letter-spacing: 1px; }
.hist li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.hist { list-style: none; margin: 0; padding: 0; }
.hist li:last-child { border-bottom: 0; }
.toggle-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.toggle-row:last-child { border-bottom: 0; }
.toggle-row small { display: block; color: var(--muted); }
.switch { position: relative; width: 50px; height: 28px; flex: 0 0 auto; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: #d1d5db; border-radius: 99px; transition: .2s; cursor: pointer; }
.switch span::before { content: ""; position: absolute; width: 22px; height: 22px; top: 3px; inset-inline-start: 3px; background: #fff; border-radius: 50%; transition: .2s; }
.switch input:checked + span { background: var(--brand); }
.switch input:checked + span::before { transform: translateX(22px); }
html[dir=rtl] .switch input:checked + span::before { transform: translateX(-22px); }
.welcome-pop { position: fixed; inset: 0; background: rgba(15,23,42,.55); display: none; align-items: flex-end; justify-content: center; z-index: 80; padding: 16px; }
.welcome-pop.show { display: flex; }
.welcome-pop .box { background: #fff; border-radius: 24px; max-width: 440px; width: 100%; padding: 20px; text-align: center; animation: up .3s ease; }
.welcome-pop img.logo { max-width: 72px; max-height: 60px; object-fit: contain; }
.welcome-pop img.pic { max-width: 100%; border-radius: 16px; margin-top: 10px; }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
.wallet-strip { display: flex; align-items: center; justify-content: space-between; gap: 10px; text-decoration: none; color: inherit; border: 1.5px solid var(--line); border-radius: 18px; padding: 12px 14px; margin-top: 14px; background: #fff; }
.wallet-strip b { display: block; }
.wallet-strip small { color: var(--muted); }
.flash { padding: 12px; border-radius: 14px; margin-top: 12px; text-align: center; font-weight: 700; }
.flash.ok { background: #ecfdf3; color: #14532d; }
.flash.bad { background: #fef2f2; color: #991b1b; }
[hidden] { display: none !important; }
a.btn { text-decoration: none; }
