/* =============================================================================
   Tài khoản trên MỌI trang web chính: popup đăng nhập (Google / Discord), menu
   tài khoản ở header, số món trên icon giỏ, nút "Thêm vào giỏ".
   Dùng token màu của store.css (--navy, --cyan…), cùng khung .buy-card.
   ============================================================================= */

/* ── Popup đăng nhập (2 cột: navy EVO | nút đăng nhập) ─────────────────── */
.acc-ov { z-index: 70; padding: 16px; align-items: center; background: rgba(2, 20, 36, .62); backdrop-filter: blur(6px); animation: acc-fade .2s both; }
@keyframes acc-fade { from { opacity: 0; } }
.acc-pop {
  position: relative; display: grid; grid-template-columns: 320px minmax(0, 1fr); width: min(780px, 100%);
  max-height: calc(100vh - 32px); overflow: auto; border-radius: 24px; background: #fff;
  box-shadow: 0 30px 80px rgba(2, 20, 36, .45); animation: acc-in .35s cubic-bezier(.34, 1.56, .64, 1) both;
}
@keyframes acc-in { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }
.acc-x {
  position: absolute; top: 14px; right: 14px; z-index: 3; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  border: 0; background: #f0f3f5; color: #4a5a62; cursor: pointer; transition: background .2s, transform .25s;
}
.acc-x:hover { background: #e2e8ec; color: #021d36; transform: rotate(90deg); }

/* Cột trái: navy + ánh cyan + logo lơ lửng */
.acc-l { position: relative; overflow: hidden; isolation: isolate; padding: 34px 28px 30px; color: #fff;
  background: radial-gradient(130% 110% at 0% 0%, #0a4f86 0%, #04294a 48%, #021d36 100%); display: flex; flex-direction: column; }
.acc-l::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .16;
  background-image: radial-gradient(rgba(255,255,255,.8) 1px, transparent 1px); background-size: 20px 20px;
  mask-image: linear-gradient(180deg, #000, transparent 75%); -webkit-mask-image: linear-gradient(180deg, #000, transparent 75%); }
.acc-glow { position: absolute; z-index: -1; width: 240px; height: 240px; border-radius: 50%; background: #00c2f7; filter: blur(60px); opacity: .45;
  left: -60px; top: -40px; animation: acc-drift 9s ease-in-out infinite alternate; }
.acc-glow.g2 { background: #0b7fa3; left: auto; right: -90px; top: auto; bottom: -70px; opacity: .5; animation-duration: 12s; }
@keyframes acc-drift { to { transform: translate(40px, 30px); } }
.acc-mark { width: 132px; height: auto; margin: 6px auto 14px; display: block; filter: drop-shadow(0 14px 26px rgba(0, 194, 247, .45));
  animation: acc-bob 3.6s ease-in-out infinite; }
@keyframes acc-bob { 50% { transform: translateY(-8px); } }
.acc-hi { margin: 0 0 18px; text-align: center; font-size: 19px; font-weight: 600; letter-spacing: .01em; }
.acc-l ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.acc-l li { display: flex; gap: 12px; align-items: center; }
.acc-li-ic { width: 36px; height: 36px; border-radius: 11px; flex-shrink: 0; display: grid; place-items: center;
  background: rgba(0, 194, 247, .16); color: #7ee8ff; box-shadow: inset 0 0 0 1px rgba(126, 232, 255, .22); }
.acc-l li b { display: block; font-size: 14.5px; font-weight: 600; }
.acc-l li div span { display: block; font-size: 12.5px; color: rgba(255, 255, 255, .66); margin-top: 1px; }

/* Cột phải */
.acc-r { padding: 40px 34px 30px; display: flex; flex-direction: column; justify-content: center; }
.acc-r h2 { margin: 0; font-size: 28px; font-weight: 600; color: #021d36; }
.acc-lead { margin: 6px 0 24px; font-size: 14.5px; color: #5b6b73; line-height: 1.5; }
.acc-ssos { display: flex; flex-direction: column; gap: 12px; }
.acc-sso {
  position: relative; display: flex; align-items: center; gap: 14px; height: 56px; padding: 0 18px 0 8px; border-radius: 14px;
  border: 1.5px solid #dfe5e9; background: #fff; color: #021d36; font-size: 15.5px; font-weight: 600; text-decoration: none;
  transition: border-color .2s, box-shadow .2s, transform .2s cubic-bezier(.2, .7, .3, 1), background .2s;
}
.acc-sso > span:nth-child(2) { flex: 1; }
.acc-sso > svg { color: #9aa8af; transition: transform .2s, color .2s; }
.acc-sso:hover { border-color: #00c2f7; color: #021d36; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0, 194, 247, .18); }
.acc-sso:hover > svg { transform: translateX(4px); color: #0b7fa3; }
.acc-sso-ic { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: #f4f7f9; flex-shrink: 0; }
.acc-sso-ic.big { width: 54px; height: 54px; border-radius: 14px; }
.acc-sso-discord { background: #5865f2; border-color: #5865f2; color: #fff; }
.acc-sso-discord:hover { background: #4f5bea; border-color: #4f5bea; color: #fff; box-shadow: 0 10px 24px rgba(88, 101, 242, .35); }
.acc-sso-discord .acc-sso-ic { background: rgba(255, 255, 255, .16); }
.acc-sso-discord .acc-sso-ic svg path, .acc-go-discord svg path { fill: #fff; }
.acc-sso-discord > svg, .acc-sso-discord:hover > svg { color: #fff; }
.acc-sso.busy { opacity: .7; pointer-events: none; }
.acc-fine { margin: 20px 0 0; font-size: 12px; color: #8a9ba3; line-height: 1.55; }
.acc-fine a { color: #0b7fa3; }

/* Form giả lập (bản demo) */
.acc-sim { display: flex; flex-direction: column; gap: 12px; animation: acc-in .3s both; }
.acc-back { align-self: flex-start; display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; padding: 0; color: #0b7fa3;
  font: inherit; font-size: 13.5px; cursor: pointer; }
.acc-sim-h { display: flex; gap: 14px; align-items: center; margin: 4px 0 6px; }
.acc-sim-h h2 { font-size: 21px; }
.acc-sim-h p { margin: 2px 0 0; font-size: 12.5px; color: #8a9ba3; line-height: 1.45; }
.acc-f { display: flex; flex-direction: column; gap: 6px; }
.acc-f span { font-size: 13px; font-weight: 600; color: #0b7fa3; }
.acc-f input { height: 48px; border: 0; border-radius: 12px; background: #f2f5f7; padding: 0 16px; font: inherit; font-size: 15px; color: #021d36;
  transition: box-shadow .2s, background .2s; }
.acc-f input:focus { outline: 0; background: #fff; box-shadow: inset 0 0 0 2px #00c2f7; }
.acc-err { margin: 0; padding: 9px 12px; border-radius: 10px; background: #fdecee; color: #c41e30; font-size: 13px; }
.acc-go { display: flex; align-items: center; justify-content: center; gap: 10px; height: 52px; border: 0; border-radius: 14px; margin-top: 4px;
  background: #0b7fa3; color: #fff; font: inherit; font-size: 15.5px; font-weight: 600; cursor: pointer; transition: background .2s, transform .2s; }
.acc-go:hover:not(:disabled) { background: #045f7d; transform: translateY(-1px); }
.acc-go-discord { background: #5865f2; }
.acc-go-discord:hover:not(:disabled) { background: #4752c4; }
.acc-go-google { background: #021d36; }
.acc-go-google:hover:not(:disabled) { background: #04294a; }
.acc-go-google svg { background: #fff; border-radius: 6px; padding: 2px; }
.acc-go:disabled { opacity: .6; cursor: default; }

@media (max-width: 720px) {
  .acc-pop { grid-template-columns: 1fr; width: min(440px, 100%); }
  .acc-l { padding: 22px 22px 18px; flex-direction: row; align-items: center; gap: 14px; }
  .acc-l ul, .acc-glow.g2 { display: none; }
  .acc-mark { width: 64px; margin: 0; }
  .acc-hi { margin: 0; text-align: left; font-size: 17px; padding-right: 40px; }
  .acc-x { background: rgba(255, 255, 255, .14); color: #fff; }
  .acc-r { padding: 24px 22px 22px; }
  .acc-r h2 { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .acc-pop, .acc-mark, .acc-glow, .acc-sim { animation: none; }
}

/* ── Icon giỏ hàng: số món ─────────────────────────────────────────────── */
.masthead .actions .icon-btn { position: relative; }
.cart-n {
  position: absolute; top: -4px; right: -6px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px;
  background: #eb464a; color: #fff; font-size: 11px; font-weight: 700; line-height: 19px; text-align: center;
  box-shadow: 0 0 0 2px var(--navy, #04294a);
}

/* ── Nút "Thêm vào giỏ" trong cửa sổ game ──────────────────────────────── */
/* .buybox là flex cột: đẩy nút xuống DƯỚI "Mua ngay" dù được chèn phía trên */
.buybox .acc-addcart { order: 99; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: #fff; color: var(--navy, #04294a); border: 1.5px solid var(--line, #ececec); font-weight: 600; cursor: pointer; }
.buybox .acc-addcart:hover { border-color: var(--cyan, #00c2f7); color: var(--cyan-700, #045f7d); }

/* ── Menu tài khoản trên header ────────────────────────────────────────── */
.acc-menu-wrap { position: relative; }
.acc-btn {
  display: flex; align-items: center; gap: 9px; height: 46px; padding: 0 16px 0 5px; cursor: pointer;
  border-radius: 999px; border: 1px solid rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .06);
  color: #fff; font: inherit; font-size: 14.5px; font-weight: 600;
}
.acc-btn:hover { background: rgba(255, 255, 255, .12); }
.acc-ava {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; overflow: hidden;
  background: #00c2f7; color: #001319; font-weight: 700; font-size: 15px;
}
.acc-ava img { width: 100%; height: 100%; object-fit: cover; }
.acc-name { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-drop {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 240px; z-index: 60; padding: 8px;
  background: #fff; color: #001319; border: 1px solid #dce5ea; border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 19, 25, .2);
}
.acc-drop[hidden] { display: none; }
.acc-who { padding: 8px 12px 10px; margin-bottom: 6px; border-bottom: 1px solid #edf2f5; }
.acc-who b { display: block; font-size: 15px; }
.acc-who span { font-size: 12.5px; color: #8a9ba3; word-break: break-all; }
.acc-drop a, .acc-drop button {
  display: flex; width: 100%; align-items: center; gap: 10px; padding: 10px 12px; border: 0; border-radius: 8px;
  background: none; text-align: left; font: inherit; font-size: 14.5px; color: inherit; cursor: pointer; text-decoration: none;
}
.acc-drop a svg { color: #00a6d6; }
.acc-drop a:hover, .acc-drop button:hover { background: #f1f7fa; color: #001319; }
.acc-drop .acc-out { color: #eb464a; }

/* Thông báo nhỏ */
.acc-toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 90; pointer-events: none; max-width: calc(100vw - 32px); text-align: center;
  transform: translateX(-50%) translateY(20px); opacity: 0; transition: opacity .2s, transform .2s;
  padding: 12px 20px; border-radius: 999px; background: #001319; color: #fff; font-weight: 600; font-size: 14px;
  box-shadow: 0 10px 30px rgba(0, 19, 25, .3);
}
.acc-toast.on { opacity: 1; transform: translateX(-50%) translateY(0); }
.acc-toast.err { background: #eb464a; }

@media (max-width: 820px) {
  /* store.css cho .buy-card kéo cao hết màn hình trên điện thoại - popup này giữ nhỏ gọn */
  .acc-ov { padding: 16px; align-items: center; }
}
@media (max-width: 560px) {
  .acc-name { display: none; }
  .acc-btn { padding: 0; width: 38px; height: 38px; justify-content: center; border: 0; background: none; }
  .acc-ava { width: 34px; height: 34px; }
}

/* Ảnh bay vào giỏ */
.fly-cv { position: fixed; z-index: 100; width: 56px; height: 56px; border-radius: 12px; object-fit: cover; pointer-events: none;
  box-shadow: 0 10px 24px rgba(2, 20, 36, .35); }
.cart-n { animation: cart-n-in .35s cubic-bezier(.34,1.56,.64,1); }
@keyframes cart-n-in { from { transform: scale(0); } }

/* Viên số dư trên header */
.acc-bal { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 6px 0 6px; border-radius: 999px; margin-right: 4px;
  background: linear-gradient(90deg, #ffe7a3, #f4c24a); color: #3d2a00; font-weight: 700; font-size: 13.5px; text-decoration: none; }
.acc-bal-ic { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.55); }
.acc-bal-plus { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: #021d36; color: #ffe7a3; }
.acc-bal:hover { color: #3d2a00; filter: brightness(1.05); }


/* Nút trợ giúp nổi + bảng FAQ */
.evo-help { position: fixed; right: 18px; bottom: 22px; z-index: 55; display: flex; flex-direction: column; gap: 6px; padding: 6px;
  border-radius: 999px; background: rgba(255,255,255,.92); backdrop-filter: blur(8px);
  box-shadow: 0 12px 32px rgba(2,20,36,.18), inset 0 0 0 1px rgba(2,29,54,.06); }
.evo-help-b { position: relative; width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer;
  color: #fff; text-decoration: none; box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 4px 10px rgba(2,20,36,.16);
  transition: transform .2s ease, filter .2s ease; }
.evo-help-b svg { width: 22px; height: 22px; }
.evo-help-b:hover { transform: scale(1.07); filter: brightness(1.06); color: #fff; }
.evo-help-b.fb { background: linear-gradient(145deg, #4b95ff, #1564e6); }
.evo-help-b.dc { background: linear-gradient(145deg, #8790ff, #4a54e1); }
.evo-help-b.dc svg path { fill: #fff; }
.evo-help-b.faq { background: linear-gradient(140deg, #5adcfb, #00a9dc 55%, #0b7fa3); }
.evo-help-b::after { content: attr(data-tip); position: absolute; right: 58px; top: 50%; transform: translateY(-50%); white-space: nowrap;
  background: #021d36; color: #fff; font-size: 12.5px; padding: 6px 10px; border-radius: 8px; opacity: 0; pointer-events: none; transition: opacity .2s; }
.evo-help-b:hover::after { opacity: 1; }
.evo-faq-ov { position: fixed; inset: 0; z-index: 80; background: rgba(2,20,36,.45); animation: acc-fade .2s both; }
.evo-faq { position: fixed; top: 0; right: 0; bottom: 0; z-index: 81; width: min(440px, 100vw); background: #fff; display: flex; flex-direction: column;
  box-shadow: -20px 0 50px rgba(2,20,36,.25); animation: faq-in .3s cubic-bezier(.2,.7,.3,1) both; }
@keyframes faq-in { from { transform: translateX(100%); } }
.evo-faq.out { transform: translateX(100%); transition: transform .25s; }
.evo-faq-ov.out { opacity: 0; transition: opacity .25s; }
.evo-faq-h { display: flex; align-items: flex-start; gap: 12px; padding: 22px 20px 14px; background: linear-gradient(120deg, #04294a, #0b7fa3); color: #fff; }
.evo-faq-h b { display: block; font-size: 19px; }
.evo-faq-h span { font-size: 12.5px; opacity: .8; }
.evo-faq-x { margin-left: auto; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(255,255,255,.15); color: #fff; display: grid; place-items: center; cursor: pointer; }
.evo-faq-s { display: flex; align-items: center; gap: 8px; margin: 14px 18px 6px; padding: 0 14px; height: 42px; border-radius: 999px; background: #f2f5f7; color: #6b7a82; }
.evo-faq-s input { flex: 1; border: 0; background: none; font: inherit; font-size: 14.5px; outline: 0; }
.evo-faq-ds { flex: 1; overflow: auto; padding: 6px 18px 16px; }
.evo-faq-i { border-bottom: 1px solid #edf0f2; }
.evo-faq-i summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 14px 2px; cursor: pointer; font-weight: 600; color: #021d36; }
.evo-faq-i summary::-webkit-details-marker { display: none; }
.evo-faq-i summary span { flex: 1; }
.evo-faq-i summary svg { color: #0b7fa3; transition: transform .25s; flex-shrink: 0; }
.evo-faq-i[open] summary svg { transform: rotate(45deg); }
.evo-faq-i p { margin: 0 2px 14px; white-space: pre-line; color: #4c5a62; font-size: 14px; line-height: 1.6; }
.evo-faq-e { color: #8a9ba3; text-align: center; padding: 30px 0; }
.evo-faq-f { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 14px 18px 18px; border-top: 1px solid #edf0f2; }
.evo-faq-f a { display: flex; align-items: center; justify-content: center; gap: 8px; height: 44px; border-radius: 12px; color: #fff; font-weight: 600; text-decoration: none; }
.evo-faq-f .fb { background: #1877f2; }
.evo-faq-f .dc { background: #5865f2; }
.evo-faq-f .dc svg path { fill: #fff; }

/* ── Tài khoản trên header: avatar tròn (vòng màu hạng + huy hiệu) + số dư ── */
.acc-chip { height: 46px; padding: 0 16px 0 4px; gap: 10px; border-radius: 999px; border: 1px solid rgba(126, 232, 255, .18);
  background: rgba(2, 29, 54, .5); }
.acc-chip:hover { background: rgba(11, 127, 163, .25); border-color: rgba(126, 232, 255, .32); }
.acc-ring { --rk: #5f7d90; position: relative; width: 38px; height: 38px; flex-shrink: 0; border-radius: 50%; padding: 2px;
  background: var(--rk); display: flex; box-sizing: border-box; }
.acc-ring .acc-ava { flex: 1; width: auto; height: auto; min-width: 0; box-sizing: border-box; border-radius: 50%; border: 2px solid #021d36;
  background: #00c2f7; color: #001319; font-size: 15px; line-height: 1; padding-top: .14em; }
.acc-ring .acc-ava:has(img) { padding-top: 0; }
/* Huy hiệu hạng (khiên) nằm dưới avatar; màu vòng lấy đúng màu giữa của huy hiệu */
.acc-badge { position: absolute; left: 50%; bottom: -7px; transform: translateX(-50%); width: 20px; height: 20px; display: grid; place-items: center; }
.acc-badge .medal { width: 20px; height: 20px; overflow: visible; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .35)); }
.acc-ring { --rk: #8fd6ef; }
.acc-ring.rk-bronze   { --rk: #cf7b3c; }
.acc-ring.rk-silver   { --rk: #b9c5cd; }
.acc-ring.rk-gold     { --rk: #f4b41a; }
.acc-ring.rk-diamond  { --rk: #00c2f7; }
.acc-ring.rk-platinum { --rk: #a85cff; }
.acc-money { display: inline-flex; align-items: center; font-size: 15px; font-weight: 600; color: #fff; font-variant-numeric: tabular-nums;
  white-space: nowrap; line-height: 1; padding-top: .18em; }

/* Menu thả xuống */
.acc-drop { min-width: 280px; padding: 10px; border-radius: 16px; }
.acc-who { display: flex; align-items: center; gap: 12px; padding: 6px 6px 12px; margin-bottom: 0; border-bottom: 0; }
.acc-ring.lg { width: 52px; height: 52px; padding: 3px; }
.acc-ring.lg .acc-ava { border-color: #fff; font-size: 20px; }
.acc-ring.lg .acc-badge { width: 24px; height: 24px; bottom: -9px; }
.acc-ring.lg .acc-badge .medal { width: 24px; height: 24px; filter: none; }
.acc-who-t { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; }
.acc-who-t b { font-size: 15px; max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-who-t span { font-size: 12px; color: #8a9ba3; max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-rk { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; padding: 4px 10px 3px; line-height: 1; border-radius: 999px; font-style: normal; font-size: 11.5px; font-weight: 600;
  background: #e3f4fa; color: #0b7fa3; }
.acc-rk .medal { width: 14px; height: 14px; margin: -2px 0 -1px -3px; overflow: visible; }
.acc-rk.rk-bronze { background: #fbefe5; color: #6e3a14; }
.acc-rk.rk-silver { background: #eef2f4; color: #4f5d66; }
.acc-rk.rk-gold { background: #fff4d0; color: #8a5600; }
.acc-rk.rk-diamond { background: #dcf7ff; color: #04294a; }
.acc-rk.rk-platinum { background: #f1e4ff; color: #2f1466; }
.acc-wal { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 12px;
  background: linear-gradient(180deg, var(--navy, #04294a) 0%, var(--navy-2, #063b6a) 100%); color: #fff; margin-bottom: 6px;
  border: 1px solid rgba(255, 255, 255, .08); }
.acc-wal span { display: block; font-size: 11.5px; opacity: .75; }
.acc-wal b { font-size: 17px; font-variant-numeric: tabular-nums; }
.acc-drop a.acc-wal-btn { width: auto; display: inline-flex; align-items: center; gap: 5px; padding: 7px 12px; border-radius: 999px;
  background: #00c2f7; color: #001319; font-size: 13px; font-weight: 600; }
.acc-drop a.acc-wal-btn:hover { background: #7ee8ff; color: #001319; }
.acc-drop a.acc-wal-btn svg { color: #001319; }
.acc-links { padding: 2px 0 6px; border-bottom: 1px solid #edf2f5; margin-bottom: 6px; }

@media (max-width: 560px) {
  .acc-chip { width: auto; height: 40px; padding: 0 10px 0 3px; gap: 7px; border: 1px solid rgba(126, 232, 255, .18); background: rgba(2, 29, 54, .5); }
  .acc-ring { width: 33px; height: 33px; }
  .acc-ring .acc-ava { font-size: 13px; }
  .acc-money { font-size: 13px; }
}

/* "Mua ngay" + "Thêm vào giỏ" trên cùng một hàng */
.buybox .acc-buyrow { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.buybox .acc-buyrow > .btn { width: 100%; margin: 0; min-width: 0; }
.buybox .acc-buyrow .acc-addcart { order: 0; white-space: nowrap; }
.acc-badge svg.medal .rk-spark, .acc-badge svg.medal .rk-sweep, .acc-rk svg.medal .rk-spark, .acc-rk svg.medal .rk-sweep { display: none; }

/* Đánh giá của khách (cửa sổ game) */
.rvw { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-bottom: 14px; border-radius: 14px;
  background: #eef9fd; box-shadow: inset 0 0 0 1px #cdeef9; }
.rvw-ic { width: 36px; height: 36px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; background: #fff; color: #0b7fa3;
  box-shadow: inset 0 0 0 1px #cdeef9; }
.rvw-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rvw-tx b { font-size: 13.5px; font-weight: 600; color: #13202b; }
.rvw-tx > span { font-size: 12px; color: #5d6b76; }
.rvw-s { color: #f5a623; letter-spacing: 1px; font-weight: 400; }
.rvw-go { flex-shrink: 0; border: 0; border-radius: 999px; padding: 9px 16px; background: #0b7fa3; color: #fff; font: inherit; font-size: 13px;
  font-weight: 600; cursor: pointer; transition: background .2s; }
.rvw-go:hover { background: #08698a; }
.rvw-go:disabled { opacity: .6; cursor: default; }
.rvw.cho { background: #fff8e8; box-shadow: inset 0 0 0 1px #f6e2b0; }
.rvw.cho .rvw-ic { color: #b7791f; box-shadow: inset 0 0 0 1px #f6e2b0; }
.rvw.form { display: block; background: #fff; box-shadow: inset 0 0 0 1px #cdeef9, 0 6px 18px rgba(2, 29, 54, .06); }
.rvw-f { display: flex; flex-direction: column; gap: 10px; }
.rvw-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.rvw-h b { font-size: 14px; font-weight: 600; color: #13202b; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rvw-x { width: 28px; height: 28px; flex-shrink: 0; border: 0; border-radius: 50%; background: #f2f5f7; color: #5d6b76; display: grid; place-items: center; cursor: pointer; }
.rvw-x:hover { color: #0b7fa3; }
.rvw-stars { display: flex; align-items: center; gap: 2px; }
.rvw-star { border: 0; background: none; padding: 0 2px; font-size: 26px; line-height: 1; color: #dfe6ea; cursor: pointer; transition: color .15s; }
.rvw-star.on { color: #f5a623; }
.rvw-nhan { margin-left: 8px; font-size: 13px; color: #5d6b76; }
.rvw-f textarea { width: 100%; box-sizing: border-box; resize: vertical; min-height: 78px; border: 0; border-radius: 12px; padding: 10px 12px;
  background: #f2f5f7; font: inherit; font-size: 13.5px; line-height: 1.55; color: #13202b; outline: none; }
.rvw-f textarea:focus { box-shadow: inset 0 0 0 1.5px #0b7fa3; background: #fff; }
.rvw-ft { display: flex; justify-content: space-between; gap: 10px; font-size: 11.5px; color: #8a96a0; }
.rvw-loi { margin: 0; font-size: 12.5px; color: #d93a3a; }
.rvw-f .rvw-go { align-self: flex-end; }
.rvw-login { margin: 0 0 12px; font-size: 13px; color: #5d6b76; }
.rvw-login button { border: 0; background: none; padding: 0; font: inherit; color: #0b7fa3; font-weight: 600; cursor: pointer; }
.rvw-login button:hover { text-decoration: underline; }
.rvw-who { display: flex; align-items: center; gap: 7px; min-width: 0; }
.rvw-who b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rvw-da { flex-shrink: 0; display: inline-flex; align-items: center; gap: 3px; padding: 2px 7px; border-radius: 999px; background: #e6f8f0; color: #067a54;
  font-size: 10.5px; font-weight: 600; }
.rv-body p { white-space: pre-line; overflow-wrap: anywhere; }
.evo-help-b.faq svg { width: 24px; height: 24px; stroke-width: 2.6; }

/* ═══ Điện thoại ═══════════════════════════════════════════════════════════ */
.evo-help-b.mo { display: none; background: linear-gradient(140deg, #5adcfb, #00a9dc 55%, #0b7fa3); }
/* Đang mở cửa sổ game / popup: ẩn cụm nút nổi cho khỏi đè */
body:has(#modal-overlay:not([hidden])) .evo-help, body:has(.acc-pop) .evo-help, body:has(.evo-faq) .evo-help { display: none; }
@keyframes help-in { from { opacity: 0; transform: translateY(8px) scale(.9); } }
@media (max-width: 640px) {
  .evo-help { right: 12px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); padding: 5px; gap: 6px; }
  .evo-help-b { width: 44px; height: 44px; }
  .evo-help-b::after { display: none; }
  .evo-help .evo-help-b:not(.mo) { display: none; }
  .evo-help.mo .evo-help-b:not(.mo) { display: grid; animation: help-in .22s cubic-bezier(.2, .8, .3, 1) both; }
  .evo-help.mo .evo-help-b:nth-child(2) { animation-delay: .03s; }
  .evo-help.mo .evo-help-b:nth-child(1) { animation-delay: .06s; }
  .evo-help-b.mo { display: grid; }
  .evo-help-b:hover { transform: none; }

  /* Đánh giá trong cửa sổ game: nút xuống dòng riêng, rộng hết */
  .rvw:not(.form) { flex-wrap: wrap; }
  .rvw:not(.form) .rvw-tx { flex-basis: calc(100% - 48px); }
  .rvw:not(.form) .rvw-go { flex-basis: 100%; padding: 11px 16px; }
  .rvw-star { font-size: 30px; padding: 0 3px; }
  .rvw-ft { flex-direction: column; gap: 2px; }
  .rvw-f .rvw-go { align-self: stretch; padding: 12px 16px; }

  /* Popup đăng nhập */
  .acc-r { padding: 30px 22px 24px; }
}

/* ── Kho "Có sẵn" theo từng phiên bản (cửa sổ game) ───────────────────── */
.buybox .ver-wrap .opt .acc-vkho { display: block; margin-top: 2px; font-size: 11px; font-weight: 600; line-height: 1.2; color: #0f8a5f; }
.buybox .ver-wrap .opt .acc-vkho.het { color: #b42318; }
.buybox .acc-addcart:disabled { opacity: .5; cursor: not-allowed; border-color: var(--line, #ececec); color: inherit; }
