:root{
  --orange:#ff6a00;
  --orange2:#ff8a00;
  --text:#222;
  --muted:#777;
  --card:#ffffff;
  --border:#ececec;
  --shadow: 0 10px 28px rgba(0,0,0,.14);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*{
  box-sizing: border-box;
  font-family: var(--font);
}

html, body{
  margin:0;
  padding:0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: geometricPrecision;
  color: var(--text);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: -0.1px;
}

/* =========================
   Background (ĐÚNG PATH)
   ========================= */
.bg{
  position: fixed;
  inset: 0;
  background: url("../images/bg.jpg") center / cover no-repeat; /* ✅ FIX */
  filter: blur(2px);
  transform: scale(1.03);
  z-index: -2;
}
.bg::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.15),
    rgba(0,0,0,0.25)
  );
}

/* =========================
   Top bar
   ========================= */
.topbar{
  height:56px;
  background:#fff;
  display:flex;
  align-items:center;
  gap:16px;
  padding:0 18px;
  border-bottom:1px solid rgba(0,0,0,.06);
}

.brand{
  font-weight: 800;
  font-size:22px;
  display:flex;
  align-items:baseline;
  gap:2px;
  letter-spacing: -0.3px;
}
.brand-vng{ color:var(--orange); }
.brand-games{ color:#222; }
.brand-shop{
  color:#777;
  font-weight:700;
  margin-left:6px;
  font-size:18px;
}

.searchWrap{
  flex:1;
  max-width:520px;
  height:34px;
  display:flex;
  align-items:center;
  gap:8px;
  background:#f3f3f3;
  border-radius:8px;
  padding:0 10px;
  border:1px solid #eee;
}
.searchIcon{ color:#666; }
.search{
  border:0;
  outline:0;
  background:transparent;
  width:100%;
  font-size:14px;
  font-weight:500;
}

.topbarRight{ display:flex; align-items:center; gap:14px; }
.iconBtn{
  border:0; background:transparent; cursor:pointer;
  font-size:18px; color:#666;
}
.lang{
  color:#666;
  font-weight:700;
  font-size:13px;
  display:flex;
  align-items:center;
  gap:6px;
}

/* =========================
   Hero strip
   ========================= */
.hero{
  height:120px;
  display:flex;
  align-items:center;
}
.heroInner{
  width:min(1180px, calc(100% - 36px));
  margin:0 auto;
  display:flex;
  align-items:center;
  gap:14px;
}
.game{
  display:flex;
  align-items:center;
  gap:14px;
}

.gameIconImg{
  width:72px;
  height:72px;
  border-radius:14px;
  object-fit:cover;
  box-shadow: 0 10px 25px rgba(0,0,0,.25);
}

.gameTitle{
  font-size:28px;
  font-weight:900;
  color:#111;
}

/* =========================
   Layout
   ========================= */
.layout{
  width:min(1180px, calc(100% - 36px));
  margin: 0 auto 28px;
  display:grid;
  grid-template-columns: 1fr 360px;
  gap:18px;
}
.leftMid{ display:flex; flex-direction:column; gap:18px; }

/* =========================
   Cards
   ========================= */
.card{
  background: rgba(255,255,255,0.97);
  border-radius:12px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,.45);
}

.cardHeader{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:14px 16px;
  border-bottom:1px solid var(--border);
}

.cardTitle,
.payTitle{
  font-weight: 700;
  font-size: 16px;
  color: #222;
  letter-spacing: -0.2px;
}

.link{
  color:#1a73e8;
  text-decoration:none;
  font-weight:600;
  font-size:13px;
}
.link:hover{ text-decoration:underline; }

/* =========================
   Login
   ========================= */
.loginCard{ padding-bottom:16px; }

.loginField{
  display:flex;
  flex-direction:column;
  gap:6px;
}

.loginRow{
  padding:14px 16px 0;
  display:grid;
  grid-template-columns: 1fr 220px;
  gap:12px;
  align-items:center;
}

.input{
  width:100%;
  padding:12px 12px;
  border-radius:8px;
  border:1px solid #ddd;
  outline:none;
  background:#fff;
  font-weight:500;
  letter-spacing:-0.1px;
}

.input.is-error{
  border-color: #ff3b30 !important;
  background: #fff5f5 !important;
}

.inputError{
  font-size: 12px;
  color: #ff3b30;
  line-height: 1.35;
}

.btnPrimary{
  padding:12px 14px;
  border-radius:8px;
  border:0;
  cursor:pointer;
  font-weight:600;
  color:#fff;
  background: linear-gradient(#ff8a00, #ff5a00);
  box-shadow: 0 8px 18px rgba(255,106,0,.25);
}

/* =========================
   Account info (after login)
   ========================= */
.accountBox{
  padding: 14px 16px 16px;
}

.accountRow{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 14px 16px;
}

.accountLeft{
  display:flex;
  align-items:center;
  gap: 12px;
  min-width: 0;
}

.avatarWrap{
  position: relative;
  width: 56px;
  height: 56px;
  flex: 0 0 auto;
}

.accountAvatar{
  width: 56px;
  height: 56px;
  border-radius: 999px;
  object-fit: cover;
  background: #fff;
  border: 1px solid #e7e7e7;
}

.avatarOnline{
  position: absolute;
  right: 2px;
  bottom: 2px;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #16c172;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,.18);
}

.accountMeta{ min-width: 0; }

.accountName{
  font-weight: 800;
  font-size: 16px;
  color: #222;
}

.accountHandle{
  margin-top: 4px;
  font-weight: 600;
  font-size: 13px;
  color: #888;
}

.btnLogout{
  border: 0;
  background: linear-gradient(#ff8a00, #ff5a00);
  color: #fff;
  font-weight: 700;
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 10px 18px rgba(255,106,0,.20);
}

/* =========================
   Packages
   ========================= */
.packCard{ overflow:hidden; }

.sectionBadge{
  display:flex;
  align-items:center;
  gap:8px;
  padding:12px 16px 6px;
  color: var(--orange);
  font-weight:600;
}

.products{
  padding: 10px 16px 16px;
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:14px;
}

.product{
  background:#fff;
  border:1px solid #eee;
  border-radius:12px;
  overflow:hidden;
  box-shadow: 0 8px 18px rgba(0,0,0,.06);
}

.productTop{ position:relative; }

.product img{
  width:100%;
  height:110px;
  object-fit:cover;
  display:block;
}

.productChip{
  position:absolute;
  left:10px; top:10px;
  background: rgba(255,255,255,.9);
  border:1px solid rgba(0,0,0,.08);
  border-radius:999px;
  padding:4px 8px;
  font-weight:600;
  font-size:12px;
  display:flex;
  align-items:center;
  gap:6px;
}
.chipDot{
  width:16px; height:16px;
  border-radius:999px;
  background:#111;
  display:inline-block;
}

.productBody{
  padding:10px;
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:10px;
}

.productName{
  font-weight:600;
  font-size:14px;
  color:#222;
}

.productPrice{
  margin-top:6px;
  color:var(--orange);
  font-weight:600;
  font-size:13px;
}

.btnAdd{
  width:34px; height:34px;
  border-radius:8px;
  border:0;
  cursor:pointer;
  font-weight:600;
  color:#fff;
  background: var(--orange);
  box-shadow: 0 8px 16px rgba(255,106,0,.25);
}

/* =========================
   Pay card
   ========================= */
.payCard{ padding-bottom:14px; }

.orderEmpty{
  text-align:center;
  color:#888;
  font-style:italic;
  padding:10px 16px 0;
}

.payHeader{
  padding: 12px 16px 6px;
  display:flex;
  align-items:center;
  justify-content:space-between;
}

.payList{
  padding: 0 16px 10px;
  display:flex;
  flex-direction:column;
  gap:10px;
}

.payItem{
  display:flex;
  align-items:center;
  gap:10px;
  border:1px solid #eee;
  background:#fff;
  border-radius:10px;
  padding:10px 10px;
}

.payItem input{ margin-left:auto; }

.payLogo{
  width:28px; height:28px;
  border-radius:8px;
  background:#f3f3f3;
  display:grid; place-items:center;
  font-weight:800;
  color:#333;
}

.payName{
  font-weight:600;
  color:#444;
}

/* Text logo for VietQR + ZaloPay */
.payLogo.logo-vietqr,
.payLogo.logo-zalopay{
  background: transparent !important;
  border: 0 !important;
  width: auto !important;
  height: auto !important;
  padding: 0 !important;
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  font-weight: 900;
  font-size: 16px;
  letter-spacing: -0.2px;
  line-height: 1;
}

.logo-vietqr .viet{ color: #e53935; }
.logo-vietqr .qr{ color: #1a73e8; margin-left: 1px; }
.logo-vietqr .tm{
  font-size: 10px;
  color: #9a9a9a;
  margin-left: 2px;
  transform: translateY(-4px);
}

.logo-zalopay{ color: #0068ff; }
.logo-zalopay .zalo{ font-weight: 800; }
.logo-zalopay .pay{ font-weight: 900; margin-left: 1px; }

.payDetail{
  padding: 8px 16px 0;
}

.payDetailTitle{
  font-weight:600;
  margin: 6px 0 10px;
}

.lineBox{
  background:#fafafa;
  border:1px solid #eee;
  border-radius:10px;
  padding:10px 12px;
}

.lineRow{
  display:flex;
  align-items:center;
  justify-content:space-between;
  font-size:13px;
  font-weight:500;
}

.muted{ color:var(--muted); }

.grand{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  margin: 12px 0 8px;
}

.grandMoney{
  color:var(--orange);
  font-weight:700;
  font-size:18px;
}

.terms{
  font-size:12px;
  color:#777;
  line-height:1.35;
  margin: 8px 0 10px;
}

.btnPay{
  width:100%;
  padding:12px;
  border-radius:10px;
  border:0;
  cursor:not-allowed;
  font-weight:600;
  color:#fff;
  background: #cfcfcf;
}

.btnPay.enabled{
  cursor:pointer;
  background: linear-gradient(#ff8a00, #ff5a00);
  box-shadow: 0 10px 20px rgba(255,106,0,.22);
}

.btnGhost{
  width:100%;
  margin-top:8px;
  padding:10px 12px;
  border-radius:10px;
  border:1px solid #eee;
  background:#fff;
  cursor:pointer;
  font-weight:600;
  color:#666;
}

/* Cart list */
.cart{
  padding: 10px 16px 0;
}

.cartItem{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  background:#fff;
  border:1px solid #eee;
  border-radius:10px;
  padding:10px;
  margin-bottom:8px;
}

.cartLeft{ display:flex; flex-direction:column; }

.cartName{
  font-weight:600;
  font-size:13px;
}

.cartSub{
  color:#777;
  font-size:12px;
  margin-top:2px;
}

.cartBtn{
  width:30px; height:30px;
  border-radius:8px;
  border:1px solid #eee;
  background:#fff;
  cursor:pointer;
  font-weight:600;
}

/* =========================
   Modal thanh toán
   ========================= */
.modalOverlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
.modalOverlay.show{
  display:flex;
}
.modalBox{
  width: min(560px, 100%);
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 20px 55px rgba(0,0,0,.35);
  overflow: hidden;
  max-height: calc(100vh - 36px);
  display:flex;
  flex-direction: column;
}
.modalHead{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 14px 16px;
  border-bottom: 1px solid #eee;
  flex: 0 0 auto;
}
.modalTitle{ font-weight: 700; font-size: 16px; }
.modalClose{
  width: 32px; height: 32px;
  border: 0;
  border-radius: 8px;
  background: #f2f2f2;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  color: #444;
}
.modalBody{
  padding: 14px 16px 16px;
  overflow:auto;
  flex: 1 1 auto;
}

.modalItems{ display:flex; flex-direction:column; gap:10px; }
.modalItem{
  display:flex;
  align-items:center;
  gap:12px;
}
.modalItemImg{
  width: 56px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid #eee;
}
.modalItemInfo{ flex:1; }
.modalItemName{ font-weight: 700; color:#222; }
.modalItemPrice{ margin-top:4px; color: var(--orange); font-weight: 700; }
.modalItemQty{
  background:#f2f2f2;
  border-radius: 8px;
  padding: 4px 8px;
  font-weight: 700;
  color:#666;
  font-size: 12px;
}

.modalDivider{
  height: 1px;
  background: #eee;
  margin: 14px 0;
}
.modalRowTitle{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom: 10px;
}
.modalSectionTitle{ font-weight: 700; }

/* Telco grid + logo image via ::before (ĐÚNG PATH) */
.telcoGrid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.telcoBtn{
  position: relative;
  height: 56px;
  border-radius: 12px;
  border: 1px solid #e8e8e8;
  background: #fff;
  cursor: pointer;
  display:flex;
  align-items:center;
  justify-content:center;

  /* ẩn text trong button */
  color: transparent;
  font-size: 0;
}

.telcoBtn::before{
  content: "";
  width: 82%;
  height: 28px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  display:block;
}

.telcoBtn[data-telco="Viettel"]::before{
  background-image: url("../images/VIETTEL.png"); /* ✅ FIX */
}
.telcoBtn[data-telco="Mobifone"]::before{
  background-image: url("../images/MOBIFONE.png"); /* ✅ FIX */
}
.telcoBtn[data-telco="Vinaphone"]::before{
  background-image: url("../images/VINAPHONE.png"); /* ✅ FIX */
}
.telcoBtn[data-telco="Zing"]::before{
  background-image: url("../images/ZING.png"); /* ✅ FIX */
}

.telcoBtn.active{
  border-color: #ff7a00;
  box-shadow: 0 0 0 2px rgba(255,122,0,0.15);
}

.modalInput{ margin-top: 10px; }

body.modalOpen{ overflow:hidden; }

/* =========================
   Loading overlay
   ========================= */
.loadingOverlay{
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 999999;
  display: grid;
  place-items: center;
}
.loadingOverlay[hidden]{
  display:none !important;
}

.loadingBall{
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: #e58d10;
  position: relative;
  display: grid;
  place-items: center;
  animation: spinSlow 2.2s linear infinite;
}

.loadingBall::after{
  content:"";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(229,141,16,.45);
  transform: translate(-14px, 14px);
  z-index: -1;
}

@keyframes spinSlow{
  from{ transform: rotate(0deg); }
  to{ transform: rotate(360deg); }
}

.loadingText{
  position: absolute;
  text-align: center;
  color: #fff;
}

.loadingBrand{
  font-weight: 900;
  font-size: 34px;
  letter-spacing: -0.6px;
  line-height: .95;
}
.loadingBrand span{
  font-size: 22px;
  font-weight: 900;
}
.loadingSub{
  margin-top: 6px;
  font-size: 14px;
  font-weight: 700;
  opacity: .95;
}

/* =========================
   Footer
   ========================= */
.footer{
  margin-top: 26px;
  background: #0b0b0b;
  color: #fff;
}

.footerInner{
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 28px 0;
}

.footerTop{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 28px;
}

.footerBrand{
  font-weight:900;
  font-size:22px;
  letter-spacing:.2px;
  white-space: nowrap;
}
.footerBrand .brandVNG{ color:#ff6a00; }
.footerBrand .brandGAMES{ color:#fff; }
.footerBrand .brandShop{
  color:#9a9a9a;
  font-weight:700;
  margin-left:6px;
  font-size:18px;
}

.footerCols{
  display:flex;
  gap: 60px;
}

.footerTitle{
  color:#bdbdbd;
  font-size:13px;
  margin-bottom:10px;
}

.footerLink{
  display:block;
  color:#fff;
  text-decoration:none;
  font-size:13px;
  font-weight:700;
  line-height:1.9;
}
.footerLink:hover{ text-decoration: underline; }

.footerDivider{
  height:1px;
  background: rgba(255,255,255,.12);
  margin: 22px 0 18px;
}

.footerBottom{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
}

.footerCopy{
  color:#d7d7d7;
  font-size:13px;
}

.footerBottomLinks{
  display:flex;
  gap: 36px;
}

.footerLink2{
  color:#fff;
  text-decoration:none;
  font-size:13px;
  font-weight:700;
}
.footerLink2:hover{ text-decoration: underline; }

/* =========================
   Responsive
   ========================= */
@media (max-width: 1100px){
  .layout{ grid-template-columns: 1fr; }
}

@media (max-width: 760px){
  .products{ grid-template-columns: repeat(2, 1fr); }
  .loginRow{ grid-template-columns: 1fr; }
}

@media (max-width: 480px){
  .products{ grid-template-columns: 1fr; }
}

@media (max-width: 820px){
  .footerTop{ flex-direction: column; }
  .footerCols{ gap: 30px; flex-wrap: wrap; }
  .footerBottom{ flex-direction: column; align-items:flex-start; }
  .footerBottomLinks{ gap: 18px; }
}

/* =========================
   Toast + Error (UI polish)
   ========================= */
.toast{
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 1000000;
  display: none;
}
.toast.show{ display:block; }
.toastInner{
  background: rgba(255,255,255,.98);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(0,0,0,.22);
  padding: 12px 14px;
  min-width: 260px;
  max-width: min(420px, calc(100vw - 32px));
  font-weight: 650;
  color:#222;
}
.toastInner.is-ok{ border-color: rgba(22,193,114,.35); }
.toastInner.is-err{ border-color: rgba(255,59,48,.35); }

.payError{
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff5f5;
  border: 1px solid rgba(255,59,48,.35);
  color: #d93025;
  font-weight: 650;
  font-size: 13px;
  line-height: 1.35;
}

/* Nút loading đẹp */
.btnPrimary.is-loading{
  opacity: .92;
  cursor: wait !important;
}
.btnPrimary.is-loading::after{
  content:"";
  display:inline-block;
  width: 14px;
  height: 14px;
  margin-left: 10px;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,.55);
  border-top-color: rgba(255,255,255,1);
  animation: spin .8s linear infinite;
  vertical-align: -2px;
}
@keyframes spin{ from{ transform: rotate(0deg);} to{ transform: rotate(360deg);} }


/* =========================
   Modal UI nâng cao
   ========================= */
.orderBadge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  margin-left:10px;
  padding:4px 8px;
  border-radius:999px;
  background:#f2f2f2;
  border:1px solid #e6e6e6;
  font-weight:800;
  font-size:12px;
  color:#444;
}
.modalHint{
  margin-top:8px;
  font-size:12px;
  color:#777;
}
.inputCounter{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-top:6px;
  font-size:12px;
  color:#777;
}
.inputCounter b{ color:#444; }
/* =========================
   Login Splash (after login)
   ========================= */
to{ transform: scale(1); opacity: 1; }
}
to{ transform: scale(1); opacity: 1; }
}
/* FORCE FIX: luôn biến #loginLoading thành splash full màn hình */
/* ===== Splash Logo Center (giống video) ===== */

#loginLoading{
  position: fixed;
  inset: 0;
  background: #ffffff;
  z-index: 1000000;

  display: grid;
  place-items: center;

  opacity: 0;
  transition: opacity .25s ease;
}

#loginLoading.show{
  opacity: 1;
}

/* LOGO */
#loginLoading /* animation giống game loading */
@keyframes splashZoom{
  0%{
    transform: scale(.92);
    opacity: 0;
  }
  100%{
    transform: scale(1);
    opacity: 1;
  }
}

to{ transform: scale(1); opacity: 1; }
}

/* =========================
   LOGIN SPLASH MOTION (like video)
   - Use #loginLoading as the only overlay
   ========================= */
#loginLoading{
  position: fixed !important;
  inset: 0 !important;
  background: #fff !important;
  z-index: 1000000 !important;
  display: none !important;
  place-items: center !important;
  opacity: 0;
}

#loginLoading.show{
  display: grid !important;
  animation: loginSplashIn .18s ease forwards;
}

#loginLoading.hide{
  display: grid !important;
  animation: loginSplashOut .22s ease forwards;
}

#loginLoading @keyframes loginSplashIn{
  from{ opacity: 0; }
  to{ opacity: 1; }
}
@keyframes loginSplashOut{
  from{ opacity: 1; }
  to{ opacity: 0; }
}
@keyframes logoPop{
  from{ transform: scale(.94); opacity: 0; }
  to{ transform: scale(1); opacity: 1; }
}

/* Skeleton placeholders (products) */
.skeletonCard{
  background: #fff;
  border:1px solid #eee;
  border-radius:12px;
  overflow:hidden;
  box-shadow: 0 8px 18px rgba(0,0,0,.06);
}
.skeletonImg{
  height:110px;
  background: #eee;
  position: relative;
  overflow:hidden;
}
.skeletonLine{
  height:12px;
  background:#eee;
  border-radius:6px;
  margin: 8px 10px;
  position: relative;
  overflow:hidden;
}
.skeletonLine.w60{ width:60%; }
.skeletonLine.w40{ width:40%; }
.skeletonLine.w80{ width:80%; }
.skeletonShimmer::after{
  content:"";
  position:absolute; inset:0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent);
  transform: translateX(-100%);
  animation: shimmer 1.1s infinite;
}
@keyframes shimmer{
  to{ transform: translateX(100%); }
}
/* FORCE: không cho bất kỳ overlay/loginLoading tạo “ô trắng góc trái” */
#loginLoading, #loginSplash, .loadingOverlay{
  left: 0 !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: auto !important;
  height: auto !important;
}

/* Nếu có phần tử fixed lạ ở bottom-left nhỏ xíu, ẩn luôn */
body > div[style*="position: fixed"][style*="bottom"][style*="left"]{
  display: none !important;
}


/* =========================
   SPLASH (FIX CLEAN 100%)
   - Chỉ dùng #loginLoading
   - Không còn "ô trắng" góc trái
   ========================= */
#loginLoading[hidden]{
  display: none !important;
}

#loginLoading{
  position: fixed !important;
  inset: 0 !important;
  background: #fff !important;
  z-index: 1000000 !important;

  display: none !important;
  place-items: center !important;

  opacity: 0;
  transition: opacity .22s ease;
}

#loginLoading.show{
  display: grid !important;
  opacity: 1;
}

#loginLoading.hide{
  display: grid !important;
  opacity: 0;
}

#loginLoading .loginSplashLogo{
  width: 160px;
  max-width: 40vw;
  height: auto;
  display: block;
  animation: splashZoom .6s ease both;
  user-select: none;
  -webkit-user-drag: none;
}

@keyframes splashZoom{
  0%{ transform: scale(.92); opacity: 0; }
  100%{ transform: scale(1); opacity: 1; }
}

/* Toast: bật hiển thị (trước đó .toast bị display:none) */
.toast{ display: block; }


/* ===== VietQR in Modal ===== */
.vietqrSection[hidden]{ display:none !important; }

.qrBox{
  margin-top: 12px;
  padding: 12px;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 14px;
  background: #fff;
  text-align: center;
}
.qrTitle{
  font-weight: 800;
  margin-bottom: 10px;
}
.qrImg{
  width: 220px;
  height: 220px;
  object-fit: contain;
  display: block;
  margin: 0 auto 10px;
}
.qrInfo{
  font-size: 14px;
  line-height: 1.55;
}
.qrNote{
  margin-top: 8px;
  font-size: 13px;
}
.qrAccLine{
  font-size:16px;
  margin-bottom:10px;
}

.qrAmount,
.qrMemo{
  margin-top:6px;
  font-size:15px;
}

.qrAmount span,
.qrMemo span{
  color:#777;
  margin-right:6px;
}

.qrAmount b{
  color:#ff6a00;
  font-size:18px;
}
/* ===== Fix mobile input zoom (iOS Safari) ===== */
html{
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* Trên mobile: input/select/textarea phải >= 16px để không bị Safari auto-zoom */
@media (max-width: 768px){
  input, select, textarea, button{
    font-size: 16px !important;
    line-height: 1.2 !important;
  }

  /* Nếu bạn có input trong modal/payment */
  .modal input, .modal select, .modal textarea{
    font-size: 16px !important;
  }

  /* Nếu có ô username/login */
  #username{
    font-size: 16px !important;
  }
}
/* =========================
   VNG LOADER (TEXT FIXED)
   ========================= */

.pageLoader{
  position:fixed;
  inset:0;
  background:#ffffff;
  z-index:999999;
  display:grid;
  place-items:center;
  transition:.25s;
}

.pageLoader.hide{
  opacity:0;
  pointer-events:none;
}

.loaderWrap{
  position:relative;
  width:120px;
  height:120px;
  display:grid;
  place-items:center;
}

/* vòng tròn xoay */
.loaderRing{
  position:absolute;
  inset:0;
  border-radius:50%;
  border:3px solid rgba(255,106,0,.25);
  border-top-color:#ff6a00;
  animation:spin 1.1s linear infinite;
}

/* chữ KHÔNG xoay */
.loaderText{
  text-align:center;
  line-height:1;
}

.vng{
  display:block;
  font-size:28px;
  font-weight:800;
  color:#ff6a00;
  letter-spacing:1px;
}

.games{
  display:block;
  font-size:13px;
  font-weight:600;
  color:#444;
}

@keyframes spin{
  to{ transform:rotate(360deg); }
}
