/* ===== BUG0068-0075 (series444 user): mobile search, Lobby carousel, Change Password popup ===== */

/* BUG0073: mobile magnifier (sports bar) -> upar search box + natije (desktop header search jaisa) */
.s444-ms-back { position: fixed; inset: 0; z-index: 10040; background: rgba(0,0,0,.35); }
.s444-ms { white-space: normal; position: fixed; left: 0; right: 0; top: 0; z-index: 10050; background: linear-gradient(-180deg, #2e4b5e 0%, #243a48 82%); padding: 8px 10px; box-shadow: 0 4px 12px rgba(0,0,0,.35); }
.s444-ms-box { display: flex; align-items: center; background: #fff; border-radius: 4px; height: 40px; padding: 0 4px 0 10px; }
.s444-ms-ico { color: #555; font-size: 15px; margin-right: 8px; }
.s444-ms-box input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; color: #000; font-size: 16px; padding: 0; -webkit-appearance: none; appearance: none; }
.s444-ms-box input::-webkit-search-cancel-button { display: none; }
.s444-ms-x { width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; color: #444 !important; font-size: 16px; cursor: pointer; }
.s444-ms-list { list-style: none; margin: 6px 0 0; padding: 0; background: #fff; border-radius: 4px; max-height: 62vh; overflow-y: auto; overflow-x: hidden; }
.s444-ms-list li { border-bottom: 1px solid #eee; }
.s444-ms-list a { display: block; overflow-wrap: anywhere; padding: 11px 12px; color: #2789ce !important; font-size: 14px; font-weight: 600; cursor: pointer; text-align: left; }
.s444-ms-list a b { color: #555; font-size: 11px; margin-right: 4px; font-weight: 700; }
.s444-ms-none { padding: 12px; color: #666; font-size: 14px; }
@media (min-width: 993px) { .s444-ms, .s444-ms-back { display: none; } }

/* BUG0069 + 2026-10-13: bottom-nav Casino "Lobby" sheet = aura444 ka minicasino iframe (220px) — ref ke app-dashboard /
   app-home CSS (Tailwind) ke px naap, images /assets/minilobby (ref se). */
.s444-lb-back { position: fixed; left: 0; right: 0; top: 0; bottom: 13.33333vw; z-index: 9997; background: transparent; }
.s444-lb { position: fixed; left: 0; right: 0; bottom: calc(13.33333vw - 1px); z-index: 9998; height: 220px; overflow: hidden; background: #000; color: #fff;
  border-radius: 8px 8px 0 0; font-family: Montserrat, sans-serif; text-align: left; animation: s444-lb-up 1s cubic-bezier(.4, 0, .2, 1) forwards; }
@keyframes s444-lb-up { from { max-height: 0; } to { max-height: 220px; } }
.s444-lb *, .s444-lb *::before, .s444-lb *::after { box-sizing: border-box; }
.s444-mc-head { position: relative; display: flex; flex-direction: row; justify-content: space-between; width: 100%; height: 1.25rem; margin-bottom: 3px;
  padding-left: .625rem; padding-top: 8.75px; font-size: .75rem; line-height: 1rem; color: #fff; background: none; }
.s444-mc-lobby { position: relative; display: flex; flex-direction: row; align-items: center; justify-content: space-between; width: 125px; height: 20px;
  padding: 0 6% 1px 3%; background: url(/assets/minilobby/lobby.webp) 50% / cover no-repeat; }
.s444-mc-lobby[role="button"] { cursor: pointer; }
.s444-mc-size { position: absolute; right: 40px; font-weight: 700; }
.s444-mc-ctl { position: absolute; right: 0; }
.s444-mc-x { position: absolute; right: 11px; z-index: 9999; color: #ed1500; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.s444-mc-x svg { display: block; width: 24px; height: 24px; }
.s444-mc-dash { position: relative; display: flex; align-items: center; justify-content: center; height: 180px; width: 100%; margin-top: 20px;
  border: 0 double #422006; border-width: 0 1px 1px; background: url(/assets/minilobby/bg-home.webp) center / cover no-repeat; }
.s444-mc-live, .s444-mc-virtual { width: 120px; height: 42px; padding: 0; border: 0 double #422006; border-width: 0 1px 1px; border-radius: 6px; cursor: pointer;
  background: transparent center / cover no-repeat; -webkit-tap-highlight-color: transparent; }
.s444-mc-live { margin-right: 6px; background-image: url(/assets/minilobby/live.webp); }
.s444-mc-virtual { background-image: url(/assets/minilobby/virtual.webp); }
.s444-mc-cards { height: 220px; width: 100%; border: 0 double #422006; border-bottom-width: 1px; background: url(/assets/minilobby/bg-cards.webp) center / cover no-repeat; }
.s444-mc-slider { position: relative; margin: 0 auto; overflow: hidden; }
.s444-mc-track { display: flex; gap: .5rem; margin: 0; overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; -webkit-overflow-scrolling: touch; }
.s444-mc-track::-webkit-scrollbar { display: none; }
@media (max-width: 720px) { .s444-mc-track { margin: 0 50.75px; } }
@media (max-width: 601px) { .s444-mc-track { margin: 0 .625rem; } }
.s444-mc-card { flex-shrink: 0; margin-top: 16.5px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.s444-mc-cardbg { position: relative; height: 170.71px; }
.s444-mc-img { display: block; height: 100%; width: 153px; margin-right: 10px; }
.s444-mc-badge { position: absolute; top: 10px; left: 103px; display: flex; align-items: center; justify-content: space-around; width: 40.5px; height: 21px;
  padding-right: 4px; border: .5px solid #fff; border-radius: 3px; background: #65228d; color: #fff; }
.s444-mc-badge p { margin: 0; font-size: 12px; font-weight: 700; line-height: 1; font-family: Montserrat, sans-serif; }
@media (min-width: 993px) { .s444-lb, .s444-lb-back { display: none; } }

/* BUG0075: pehli login / upline ke password reset ke baad "Change Password" popup (aura444 jaisa) */
.s444-cp-back { position: fixed; inset: 0; z-index: 10070; background: rgba(0,0,0,.5); display: flex; align-items: flex-start; justify-content: center; padding: 9px 10px; overflow-y: auto; }
.s444-cp { width: 100%; max-width: 500px; background: #fff; border-radius: 4px; overflow: hidden; box-shadow: 0 6px 26px rgba(0,0,0,.4); color: #212529; text-align: left; }
@media (min-width: 576px) { .s444-cp-back { padding-top: 40px; } }
.s444-cp-head { background: linear-gradient(-180deg, #2e4b5e 0%, #243a48 82%); color: #fff; font-size: 17px; font-weight: 700; line-height: 36px; padding: 0 12px; }
.s444-cp-body { padding: 14px 13px 2px; }
.s444-cp-field { margin-bottom: 14px; }
.s444-cp-field label { display: block; font-size: 15px; margin: 0 0 6px; color: #212529; }
.s444-cp-field label i { color: #dc3545; font-style: normal; margin-left: 3px; }
.s444-cp-inp { position: relative; }
.s444-cp-inp input { width: 100%; height: 35px; border: 1px solid #dcdcdc; border-radius: 3px; padding: 0 38px 0 12px; font-size: 15px; color: #212529; background: #fff; box-sizing: border-box; }
.s444-cp-inp input::placeholder { color: #8a8a8a; }
.s444-cp-inp input:focus { outline: 0; border-color: #86b7fe; box-shadow: 0 0 0 .2rem rgba(13,110,253,.15); }
.s444-cp-eye { position: absolute; right: 0; top: 0; width: 38px; height: 35px; border: 0; background: transparent; color: #6c757d; padding: 0; }
.s444-cp-msg { font-size: 14px; margin: -4px 0 12px; }
.s444-cp-msg.bad { color: #dc3545; }
.s444-cp-msg.ok { color: #198754; }
.s444-cp-foot { border-top: 1px solid #dee2e6; padding: 10px 13px; display: flex; justify-content: flex-end; }
.s444-cp-ok { background: linear-gradient(-180deg, #2e4b5e 0%, #243a48 82%); color: #fff; border: 0; border-radius: 3px; height: 33px; padding: 0 16px; font-size: 15px; }
.s444-cp-ok:disabled { opacity: .7; }
/* Lobby card badge (.s444-mc-badge, upar) = asli player count (pichhle 10 min, distinct) — 0 par render hi nahi hota */

/* ===== BUG0076-0082 (series444 user, 2026-10-13) ===== */

/* BUG0076: search natije drill-down — Sport (heading) -> Competition -> Match + tareekh / In-Play */
.s444-sr li.s444-sr-sport { background: #243a48; color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .3px; text-transform: uppercase; padding: 4px 10px; border-bottom: 0; }
.s444-sr li.s444-sr-ev a { display: block; text-align: left; }
.s444-sr-comp { display: block; color: #777; font-size: 10.5px; font-weight: 400; line-height: 1.3; margin-bottom: 1px; }
.s444-sr-line { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 1px 8px; }
.s444-sr-name { color: #2789ce; font-weight: 700; font-size: 13px; line-height: 1.3; }
.s444-sr-date { color: #555; font-size: 11px; font-weight: 400; white-space: nowrap; }
.s444-sr-ip { color: #1b8a1b; font-size: 11px; font-weight: 700; }
.s444-hs-list.s444-sr { left: auto; right: 0; width: 340px; max-width: 92vw; max-height: 420px; }
.s444-ms-list.s444-sr { max-height: 64vh; }
.s444-ms-list.s444-sr li.s444-sr-sport { padding: 6px 12px; font-size: 12px; }
.s444-ms-list.s444-sr .s444-sr-name { font-size: 14px; }
.s444-ms-list.s444-sr .s444-sr-comp { font-size: 11.5px; }
.s444-ms-list.s444-sr .s444-sr-date, .s444-ms-list.s444-sr .s444-sr-ip { font-size: 12px; }

/* header par sort teer (ref DataTables jaisa: dono halke, chuna hua gehra) */
th.m-sortable { position: relative; cursor: pointer; user-select: none; padding-right: 26px !important; }
th.m-sortable::before, th.m-sortable::after { position: absolute; right: 9px; font-size: 9px; line-height: 1; color: #b9bcbf; }
th.m-sortable::before { content: '\25B2'; top: calc(50% - 10px); }
th.m-sortable::after { content: '\25BC'; top: calc(50% + 1px); }
th.m-sortable.m-asc::before, th.m-sortable.m-desc::after { color: #333; }

@media (max-width: 992px) {
  /* BUG0078: Account Details — ref jaisa grid lines (har label / value ka apna bordered khaana) */
  .m-body.m-flush { padding: 0; }
  .m-kvg .m-kv { margin: 0; }
  .m-kvg .m-kv label, .m-kvg .m-kv > div { display: block; margin: 0; padding: 5px 16px; border-top: 1px solid #ccc; font-size: 15px; line-height: 22px; }
  .m-kvg .m-kv label { font-weight: 700; }
  .m-kvg::after { content: ''; display: block; height: 27px; border-top: 1px solid #ccc; }
  .m-kvg .m-edit { color: #000; font-weight: 400; text-decoration: none; margin-left: 16px; }

  /* BUG0079: Bet History filter (ref): halka grey panel, dates ek ke neeche ek, ek hi calendar icon, chhota dark Get History button */
  .m-filter-hist { background: #e9ecef; border-top: 2px solid #243a48; border-radius: 0 0 4px 4px; }
  .m-filter-hist .m-body { padding: 10px 12px 12px; }
  .m-filter-hist .m-frow { gap: 8px; margin-bottom: 10px; }
  .m-filter-hist .m-frow-dates { flex-direction: column; gap: 10px; }
  .m-filter-hist .m-sel, .m-filter-hist .m-date input { height: 36px; font-size: 15px; color: #495057; }
  .m-filter-hist .m-date input { position: relative; background: #e9ecef; border-color: #d5dadf; }
  .m-filter-hist .m-date input::-webkit-calendar-picker-indicator { position: absolute; left: 0; top: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
  .m-filter-hist .m-cal { width: 46px; flex: 0 0 46px; background: #ced4da; border-color: #ced4da; color: #222; font-size: 16px; cursor: pointer; }
  .m-filter-hist .m-go { width: 47%; height: 36px; margin: 0; font-size: 17px; background: linear-gradient(180deg, #2e4b5e, #243a48); }

  /* BUG0079 + BUG0080: ref ke Bet History / Password History table — Show/Showing/pager beech me, header grey, grid lines, text beech me aur wrap */
  .m-dt-c .m-dt-top { justify-content: center; margin-bottom: 10px; }
  .m-dt-c .m-dt-top label { font-size: 16px; }
  .m-dt-c .m-dt-top select { height: 32px; font-size: 16px; padding: 0 6px; }
  .m-dt-c .m-tbl { min-width: 0; border: 2px solid #ddd; }
  .m-dt-c .m-tbl th { background: #e4e9ec; font-size: 15px; font-weight: 700; text-align: center; padding: 10px 8px; border: 2px solid #ddd; white-space: nowrap; }
  .m-dt-c .m-tbl td { font-size: 15px; line-height: 21px; text-align: center; padding: 8px 6px; border: 2px solid #ddd; white-space: normal; }
  .m-dt-c .m-tbl td.r { text-align: center; }
  .m-dt-c .m-dt-info { text-align: center; font-size: 16px; margin: 12px 0 6px; }
  .m-dt-c .m-pager { justify-content: center; gap: 2px; }
  .m-dt-c .m-pager button { border: 0; background: transparent; color: #6c757d; font-size: 16px; padding: 6px 12px; }
  .m-dt-c .m-pager button.on { border: 1px solid #6c757d; background: #fff; color: #212529; border-radius: 2px; padding: 6px 14px; }

  /* BUG0081: Activity Log — ref ki tarah lambi rows (zyada padding, text wrap, status bold), table side-scroll */
  .m-dt-tall .m-tbl { min-width: 0; border: 1px solid #d0d4d7; }
  .m-dt-tall .m-tbl th { background: #e4e9ec; font-size: 15px; font-weight: 700; padding: 11px 12px; border: 1px solid #d0d4d7; white-space: nowrap; text-align: left; }
  .m-dt-tall .m-tbl td { font-size: 15px; line-height: 21px; padding: 14px 12px; border: 1px solid #e0e3e5; white-space: normal; vertical-align: top; text-align: left; }
  .m-dt-tall .m-tbl td.m-nw { white-space: nowrap; }
  .m-dt-tall .m-st { font-weight: 700; }
}

/* client Spark 10-13 — Bet History (ref Aura): Bet Type Back neela / Lay laal (bold), Stack bold */
.m-tbl .m-bt-back { color: #1f4f96; font-weight: 700; }
.m-tbl .m-bt-lay { color: #c0272d; font-weight: 700; }
.m-tbl .m-stack { font-weight: 700; }

/* client Spark 10-13 — Exposure Detail: ref (Bootstrap .modal.fade + .modal-dialog.modal-md) jaisa UPAR beech me (1.75rem; <576px .5rem),
   upar se slide-down + fade .3s, band par wapas upar. Ref me peeche page dhundhla nahi hota (backdrop dikhta nahi). */
.s444-book.s444-exp { align-items: flex-start; padding: 0; background: transparent; }
.s444-exp .s444-exp-box { width: 500px; max-width: calc(100% - 1rem); margin: 1.75rem auto 0; max-height: calc(100vh - 3.5rem);
  border-radius: .3rem; overflow: hidden; animation: s444-exp-in .3s ease-out both; }
.s444-exp .s444-book-head { padding: 6px 15px; font-size: 14px; }
/* ref ki table ghani hai (rows ~24px, 'Market Name' ek line) */
.s444-exp .s444-exp-tbl th, .s444-exp .s444-exp-tbl td { padding: 1px 4px; line-height: 1.5; }
@media (min-width: 993px) { .s444-exp .s444-exp-tbl th { white-space: nowrap; } }
.s444-exp.s444-exp-out .s444-exp-box { animation: s444-exp-out .3s ease-out both; }
@keyframes s444-exp-in { from { transform: translateY(-50px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes s444-exp-out { from { transform: none; opacity: 1; } to { transform: translateY(-50px); opacity: 0; } }
@media (max-width: 575.98px) { .s444-exp .s444-exp-box { margin-top: .5rem; max-height: calc(100vh - 1rem); } }
@media (prefers-reduced-motion: reduce) { .s444-exp .s444-exp-box, .s444-exp.s444-exp-out .s444-exp-box { animation: none; } }
