/* ==========================================================================
   NAPVNX5.NET — NÚT NỔI GÓC DƯỚI BÊN PHẢI, POPUP CHỌN GAME 6 Ô & STUDIO ARENA V6
   ========================================================================== */

@font-face {
  font-family: 'FlappyPixelVN';
  src: url('/games/flappy/VT323-VN.ttf') format('woff'),
       url('/games/flappy/VT323-VN.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: 'Jersey10';
  src: url('/games/flappy/Jersey10-Regular.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* 1. FLOATING BOTTOM-RIGHT WIDGET (ĐỘC QUYỀN FLAPPY BIRD SĂN KIM CƯƠNG) */
.mg-floating-launcher {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9985;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px 9px 10px;
  border-radius: 24px;
  background: linear-gradient(135deg, #090E1A 0%, #132347 52%, #1D3566 100%);
  border: 1.5px solid rgba(250, 204, 21, 0.55);
  box-shadow:
    0 14px 34px rgba(6, 10, 20, 0.72),
    0 0 24px rgba(245, 158, 11, 0.24),
    inset 0 1px 0 rgba(254, 240, 138, 0.28);
  cursor: pointer;
  user-select: none;
  overflow: hidden;
  animation: mgLauncherBob 3.2s ease-in-out infinite;
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.22s ease, border-color 0.22s ease;
}

@keyframes mgLauncherBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.mg-floating-launcher:hover {
  animation-play-state: paused;
  transform: translateY(-5px) scale(1.025);
  border-color: #FDE047;
  box-shadow:
    0 18px 40px rgba(6, 10, 20, 0.82),
    0 0 30px rgba(250, 204, 21, 0.42);
}

.mg-floating-launcher:active {
  transform: translateY(-1px) scale(0.98);
}

.mg-launcher-shimmer {
  position: absolute;
  top: 0;
  left: -120%;
  width: 65%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.14), transparent);
  transform: skewX(-22deg);
  pointer-events: none;
  animation: mgLauncherShimmer 3.8s infinite;
}

@keyframes mgLauncherShimmer {
  0% { left: -120%; }
  38%, 100% { left: 160%; }
}

.mg-launcher-pixel-box {
  position: relative;
  width: 58px;
  height: 58px;
  border-radius: 17px;
  padding: 2px;
  background: linear-gradient(135deg, #FDE047 0%, #F59E0B 50%, #38BDF8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.55);
}

.mg-launcher-app-img {
  width: 100%;
  height: 100%;
  border-radius: 15px;
  object-fit: cover;
  display: block;
}

.mg-launcher-hot-tag {
  position: absolute;
  top: -5px;
  left: -4px;
  padding: 1px 6px;
  border-radius: 6px;
  background: linear-gradient(135deg, #EF4444, #DC2626);
  border: 1px solid #FEF08A;
  color: #FFFFFF;
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.4px;
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.55);
}

.mg-launcher-live-dot {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #22C55E;
  border: 2px solid #090E1A;
  box-shadow: 0 0 8px #22C55E;
}

.mg-launcher-text-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-right: 2px;
  position: relative;
  z-index: 1;
}

.mg-launcher-kicker {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.64rem;
  font-weight: 800;
  color: #FDE047;
  letter-spacing: 0.35px;
  margin-bottom: 1px;
}

.mg-launcher-title {
  display: flex;
  align-items: center;
  line-height: 1.15;
  margin: 1px 0 2px;
}

.mg-launcher-3d-wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 0.8px;
  font-family: 'Plus Jakarta Sans', 'Arial Black', sans-serif;
  font-size: 1.08rem;
  font-weight: 900;
  letter-spacing: 0.4px;
  line-height: 1.08;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
}

.mg-launcher-3d-wordmark .c-space {
  display: inline-block;
  width: 6px;
}

.mg-launcher-3d-wordmark > span {
  display: inline-block;
  font-weight: 900;
}

.mg-launcher-3d-wordmark > span:nth-child(odd) {
  transform: translateY(-0.6px);
}

.mg-launcher-sub {
  color: #BAE6FD;
  font-size: 0.77rem;
  font-weight: 700;
  line-height: 1.28;
  margin-top: 2px;
}

.mg-launcher-right-badge {
  position: relative;
  z-index: 1;
  height: 44px;
  padding: 0 13px;
  border-radius: 14px;
  background: linear-gradient(180deg, #F59E0B 0%, #EA580C 60%, #C2410C 100%);
  border: 1px solid #FEF08A;
  color: #FFFFFF;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.4px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  flex-shrink: 0;
  box-shadow: 0 4px 0 #7C2D12, 0 8px 18px rgba(234, 88, 12, 0.45);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
}

/* 2. POPUP CHỌN GAME TỐI GIẢN (6 Ô 3x2 CÂN ĐỐI HOÀN HẢO) */
.mg-hub-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 99950;
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.mg-hub-modal-dialog {
  width: 100%;
  max-width: 390px;
  background: #1C1D21;
  border: 1px solid #2A2C32;
  border-radius: 26px;
  padding: 24px 22px 26px 22px;
  color: #FFFFFF;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.75);
  position: relative;
  animation: mgModalPopIn 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes mgModalPopIn {
  0% { opacity: 0; transform: translateY(14px) scale(0.96); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.mg-select-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.mg-select-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.42rem;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.3px;
  user-select: none;
}

/* Chấm báo hiệu bí mật cho chủ kênh khi bật Stealth Creator Mode */
.mg-stealth-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: transparent;
  display: inline-block;
  transition: all 0.2s ease;
}

.mg-stealth-dot.active {
  background: #10B981;
  box-shadow: 0 0 8px #10B981;
}

.mg-hub-close-x {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: #2B2D31;
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: #E5E7EB;
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, color 0.15s ease;
}

.mg-hub-close-x:hover {
  background: #383A40;
  color: #FFFFFF;
}

/* SINGLE FEATURED GAME CARD (FLAPPY BIRD) */
.mg-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  max-width: 310px;
  margin: 0 auto;
  gap: 16px;
}

.mg-game-card {
  background: linear-gradient(165deg, #2B303C 0%, #1F232D 100%);
  border: 1.5px solid rgba(250, 204, 21, 0.32);
  border-radius: 22px;
  padding: 22px 18px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1), background 0.18s ease, border-color 0.18s ease;
}

.mg-game-card:hover {
  transform: translateY(-4px);
  border-color: rgba(250, 204, 21, 0.65);
}

.mg-game-card:active {
  transform: scale(0.97);
}

.mg-app-icon-box {
  width: 108px;
  height: 108px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.55);
  border: 2px solid rgba(254, 240, 138, 0.45);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.mg-app-icon-box svg,
.mg-app-icon-box img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.mg-app-name {
  margin: 2px 0 0;
  font-size: 1.12rem;
  font-weight: 800;
  color: #FFFFFF;
  text-align: center;
  line-height: 1.25;
}

.mg-app-sub {
  font-size: 0.78rem;
  color: #CBD5E1;
  text-align: center;
  line-height: 1.35;
}

.mg-app-play-pill {
  margin-top: 4px;
  padding: 8px 20px;
  border-radius: 999px;
  background: linear-gradient(180deg, #F59E0B 0%, #EA580C 100%);
  border: 1px solid #FEF08A;
  color: #FFFFFF;
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.4px;
  box-shadow: 0 3px 0 #7C2D12, 0 6px 14px rgba(234, 88, 12, 0.4);
}

/* ==========================================================================
   3. STUDIO GAME ARENA MODAL (FULL-BLEED HIGH-GRAPHICS VIEWPORT)
   ========================================================================== */
.mg-arena-backdrop {
  position: fixed;
  inset: 0;
  z-index: 99990;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

.mg-arena-modal {
  width: 100%;
  max-width: 446px;
  background: #16171B;
  border: 1px solid #2C2E35;
  border-radius: 24px;
  overflow: hidden;
  color: #FFFFFF;
  box-shadow: 0 28px 75px rgba(0, 0, 0, 0.85);
  display: flex;
  flex-direction: column;
  max-height: 96vh;
  animation: mgModalPopIn 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.mg-arena-topbar {
  background: linear-gradient(180deg, #1E212B 0%, #161820 100%);
  padding: 9px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px solid rgba(250, 204, 21, 0.16);
}

.mg-arena-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  user-select: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.mg-brand-icon-3d {
  width: 29px;
  height: 29px;
  border-radius: 8px;
  padding: 1.5px;
  background: linear-gradient(135deg, #FEF08A, #F97316, #38BDF8);
  box-shadow: 0 3px 10px rgba(249, 115, 22, 0.38);
  flex-shrink: 0;
  display: inline-flex;
}

.mg-brand-icon-3d img {
  width: 100%;
  height: 100%;
  border-radius: 6.5px;
  object-fit: cover;
  display: block;
}

.mg-brand-wordmark-3d {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5px;
  font-family: 'Plus Jakarta Sans', 'Arial Black', sans-serif;
  font-size: 0.98rem;
  font-weight: 900;
  line-height: 1;
  transform: translateY(-1px);
}

.mg-brand-wordmark-3d .c-space,
.mg-event-3d-wordmark .c-space {
  display: inline-block;
  width: 6px;
}

.mg-brand-wordmark-3d > span,
.mg-event-3d-wordmark > span {
  display: inline-block;
  font-weight: 900;
}

.mg-brand-wordmark-3d > span:nth-child(odd),
.mg-event-3d-wordmark > span:nth-child(odd) {
  transform: translateY(-0.5px);
}

.c-gold {
  color: #FEF08A;
  text-shadow: 0 1px 0 #F59E0B, 0 2px 0 #B45309, 0 3px 0 #451A03, 0 4px 6px rgba(0, 0, 0, 0.78);
}

.c-orange {
  color: #FDBA74;
  text-shadow: 0 1px 0 #EA580C, 0 2px 0 #9A3412, 0 3px 0 #431407, 0 4px 6px rgba(0, 0, 0, 0.78);
}

.c-cyan {
  color: #7DD3FC;
  text-shadow: 0 1px 0 #0284C7, 0 2px 0 #075985, 0 3px 0 #082F49, 0 4px 6px rgba(0, 0, 0, 0.78);
}

.c-purple {
  color: #D8B4FE;
  text-shadow: 0 1px 0 #9333EA, 0 2px 0 #6B21A8, 0 3px 0 #3B0764, 0 4px 6px rgba(0, 0, 0, 0.78);
}

.c-pink {
  color: #F9A8D4;
  text-shadow: 0 1px 0 #DB2777, 0 2px 0 #9D174D, 0 3px 0 #500724, 0 4px 6px rgba(0, 0, 0, 0.78);
}

.c-rose {
  color: #FDA4AF;
  text-shadow: 0 1px 0 #E11D48, 0 2px 0 #9F1239, 0 3px 0 #4C0519, 0 4px 6px rgba(0, 0, 0, 0.78);
}

.c-green {
  color: #86EFAC;
  text-shadow: 0 1px 0 #16A34A, 0 2px 0 #166534, 0 3px 0 #052E16, 0 4px 6px rgba(0, 0, 0, 0.78);
}

.mg-arena-topbar-actions {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

.mg-player-badge-mini {
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.28);
  color: #BAE6FD;
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 0.71rem;
  font-weight: 700;
  max-width: 122px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mg-arena-close {
  background: #2B2D31;
  color: #E5E7EB;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  font-size: 1.2rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.mg-arena-close:hover {
  background: #EF4444;
  color: #FFFFFF;
}

.mg-sound-btn {
  background: #2B2D31;
  color: #E5E7EB;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  font-size: 0.88rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   KHUNG VINH DANH & DANH SÁCH UID TRÚNG GIẢI LỚN (500 KC - 50.000 KC)
   ========================================================================== */
.mg-winner-showcase-wrap {
  background: #111319;
  padding: 7px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
  z-index: 25;
}

.mg-winner-frame {
  position: relative;
  overflow: hidden;
  border-radius: 13px;
  padding: 7px 10px;
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  user-select: none;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.98) 100%);
  border: 1px solid rgba(56, 189, 248, 0.42);
  box-shadow: 0 4px 16px rgba(2, 132, 199, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: border-color 0.35s ease, box-shadow 0.35s ease, background 0.35s ease, transform 0.15s ease;
}

.mg-winner-frame:hover {
  transform: translateY(-1px);
}

/* 3 Hạng Khung Giải Thưởng: Diamond (500-4.999) | Epic (5.000-19.999) | Jackpot (20.000-50.000) */
.mg-winner-frame.tier-diamond {
  background: linear-gradient(135deg, rgba(12, 34, 59, 0.95) 0%, rgba(15, 23, 42, 0.98) 100%);
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 4px 16px rgba(14, 165, 233, 0.22), inset 0 1px 0 rgba(186, 230, 253, 0.16);
}

.mg-winner-frame.tier-epic {
  background: linear-gradient(135deg, rgba(46, 16, 101, 0.9) 0%, rgba(23, 21, 58, 0.96) 55%, rgba(45, 24, 16, 0.92) 100%);
  border-color: rgba(192, 132, 252, 0.6);
  box-shadow: 0 5px 18px rgba(168, 85, 247, 0.28), inset 0 1px 0 rgba(233, 213, 255, 0.2);
}

.mg-winner-frame.tier-jackpot {
  background: linear-gradient(135deg, rgba(69, 26, 3, 0.95) 0%, rgba(38, 16, 8, 0.98) 50%, rgba(69, 10, 10, 0.95) 100%);
  border-color: rgba(250, 204, 21, 0.78);
  box-shadow: 0 5px 22px rgba(245, 158, 11, 0.38), 0 0 12px rgba(250, 204, 21, 0.22), inset 0 1px 0 rgba(254, 240, 138, 0.32);
}

/* Tia sáng quét ngang khung (Luxury Shimmer Sweep) */
.mg-winner-shimmer {
  position: absolute;
  top: 0;
  left: -120%;
  width: 65%;
  height: 100%;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(255, 255, 255, 0.04) 30%,
    rgba(255, 255, 255, 0.22) 50%,
    rgba(255, 255, 255, 0.04) 70%,
    transparent 100%
  );
  transform: skewX(-22deg);
  pointer-events: none;
  animation: mgWinnerShimmerSweep 3.4s infinite;
}

@keyframes mgWinnerShimmerSweep {
  0% { left: -120%; }
  42%, 100% { left: 160%; }
}

.mg-winner-rank-badge {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(56, 189, 248, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

.mg-winner-ff-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8.5px;
  display: block;
}

.mg-winner-frame.tier-epic .mg-winner-rank-badge {
  border-color: rgba(192, 132, 252, 0.65);
}

.mg-winner-frame.tier-jackpot .mg-winner-rank-badge {
  background: linear-gradient(135deg, rgba(250, 204, 21, 0.26), rgba(234, 88, 12, 0.28));
  border-color: rgba(250, 204, 21, 0.78);
}

.mg-winner-live-dot {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
  border: 1.5px solid #0F172A;
  box-shadow: 0 0 8px #10B981;
  animation: mgLivePulse 1.4s infinite;
}

.mg-winner-info-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mg-winner-info-col.mg-winner-pop {
  animation: mgWinnerSlideIn 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes mgWinnerSlideIn {
  0% {
    opacity: 0;
    transform: translateY(9px) scale(0.97);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.mg-winner-top-line {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.mg-winner-player-name {
  font-size: 0.8rem;
  font-weight: 800;
  color: #FFFFFF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 128px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.65);
}

.mg-winner-frame.tier-jackpot .mg-winner-player-name {
  color: #FEF08A;
}

.mg-winner-uid-pill {
  font-size: 0.67rem;
  font-weight: 700;
  color: #7DD3FC;
  background: rgba(14, 165, 233, 0.16);
  border: 1px solid rgba(56, 189, 248, 0.32);
  padding: 1px 6px;
  border-radius: 5px;
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: 0.1px;
}

.mg-winner-frame.tier-jackpot .mg-winner-uid-pill {
  color: #FDE68A;
  background: rgba(245, 158, 11, 0.2);
  border-color: rgba(251, 191, 36, 0.45);
}

.mg-winner-sub-line {
  font-size: 0.69rem;
  color: #CBD5E1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mg-winner-right-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  flex-shrink: 0;
}

.mg-winner-kc-badge {
  font-size: 0.77rem;
  font-weight: 900;
  padding: 2.5px 8px;
  border-radius: 7px;
  white-space: nowrap;
  color: #FFFFFF;
  background: linear-gradient(135deg, #0284C7 0%, #2563EB 100%);
  border: 1px solid rgba(125, 211, 252, 0.5);
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.4);
  letter-spacing: -0.2px;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.mg-winner-frame.tier-epic .mg-winner-kc-badge {
  background: linear-gradient(135deg, #9333EA 0%, #D97706 100%);
  border-color: rgba(253, 224, 71, 0.6);
  box-shadow: 0 2px 10px rgba(168, 85, 247, 0.45);
}

.mg-winner-frame.tier-jackpot .mg-winner-kc-badge {
  background: linear-gradient(135deg, #F59E0B 0%, #DC2626 100%);
  border-color: #FEF08A;
  color: #FFFBEB;
  box-shadow: 0 0 12px rgba(250, 204, 21, 0.6);
}

.mg-winner-kc-badge.mg-kc-pulse {
  animation: mgKcPopAnim 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes mgKcPopAnim {
  0% { transform: scale(0.84); }
  55% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.mg-winner-list-toggle {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #E2E8F0;
  font-size: 0.63rem;
  font-weight: 700;
  padding: 1.5px 6px;
  border-radius: 5px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  transition: background 0.15s, color 0.15s;
}

.mg-winner-list-toggle:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #FFFFFF;
}

.mg-winner-chevron {
  display: inline-block;
  transition: transform 0.2s ease;
}

.mg-winner-showcase-wrap.open .mg-winner-chevron {
  transform: rotate(180deg);
}

/* BẢNG XỔ XUỐNG DANH SÁCH 10.000 UID TRÚNG GIẢI LỚN */
.mg-winner-drawer {
  margin-top: 7px;
  background: #161922;
  border: 1px solid rgba(250, 204, 21, 0.32);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.65);
  animation: mgDrawerSlideDown 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes mgDrawerSlideDown {
  0% { opacity: 0; transform: translateY(-6px); }
  100% { opacity: 1; transform: translateY(0); }
}

.mg-winner-drawer-head {
  padding: 7px 10px;
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.16) 0%, rgba(30, 41, 59, 0.9) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.mg-winner-drawer-title {
  font-size: 0.69rem;
  font-weight: 800;
  color: #FDE68A;
  letter-spacing: 0.2px;
}

.mg-winner-drawer-count {
  font-size: 0.65rem;
  font-weight: 700;
  color: #6EE7B7;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.28);
  padding: 2px 7px;
  border-radius: 99px;
}

.mg-winner-drawer-list {
  max-height: 195px;
  overflow-y: auto;
  divide-y: 1px solid rgba(255, 255, 255, 0.04);
}

.mg-winner-drawer-list::-webkit-scrollbar {
  width: 5px;
}
.mg-winner-drawer-list::-webkit-scrollbar-track {
  background: #111319;
}
.mg-winner-drawer-list::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 4px;
}

.mg-winner-row {
  padding: 6.5px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.045);
  font-size: 0.72rem;
  transition: background 0.2s;
}

.mg-winner-row:hover {
  background: rgba(255, 255, 255, 0.04);
}

.mg-winner-row.is-fresh {
  animation: mgFreshRowFlash 1.2s ease-out;
}

@keyframes mgFreshRowFlash {
  0% {
    background: rgba(250, 204, 21, 0.28);
    transform: translateX(-4px);
  }
  100% {
    background: transparent;
    transform: translateX(0);
  }
}

.mg-winner-row-left {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  flex: 1;
}

.mg-winner-row-ff-avatar {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.22);
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.mg-winner-row-meta {
  min-width: 0;
  flex: 1;
}

.mg-winner-row-name-line {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

.mg-winner-row-name {
  font-weight: 800;
  color: #F8FAFC;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 118px;
}

.mg-winner-row-uid {
  font-size: 0.65rem;
  font-weight: 700;
  color: #38BDF8;
  background: rgba(56, 189, 248, 0.12);
  padding: 0.5px 5px;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}

.mg-winner-row-sub {
  font-size: 0.64rem;
  color: #94A3B8;
  margin-top: 1px;
}

.mg-winner-row-right {
  text-align: right;
  flex-shrink: 0;
}

.mg-winner-row-kc {
  font-size: 0.74rem;
  font-weight: 900;
  color: #38BDF8;
  white-space: nowrap;
}

.mg-winner-row-kc.tier-epic {
  color: #C084FC;
}

.mg-winner-row-kc.tier-jackpot {
  color: #FACC15;
  text-shadow: 0 0 8px rgba(250, 204, 21, 0.45);
}

.mg-winner-row-time {
  font-size: 0.61rem;
  color: #64748B;
}

.mg-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 8px #10B981;
  flex-shrink: 0;
  animation: mgLivePulse 1.4s infinite;
}

@keyframes mgLivePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.82); }
}

/* ==========================================================================
   THANH HUD 2 CỤM CÂN ĐỐI SANG TRỌNG: (1) VƯỢT ỐNG & KC VÁN NÀY | (2) RƯƠNG KIM CƯƠNG + NÚT RÚT 3D
   ========================================================================== */
.mg-arena-hud {
  background: linear-gradient(180deg, #171A23 0%, #11131A 100%);
  padding: 9px 12px;
  display: grid;
  grid-template-columns: 0.92fr 1.28fr;
  align-items: stretch;
  gap: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* CỤM 1: SỐ ỐNG VƯỢT & KIM CƯƠNG VÁN NÀY */
.mg-hud-stat-card {
  height: 50px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.98) 0%, rgba(23, 37, 84, 0.78) 100%);
  border: 1px solid rgba(56, 189, 248, 0.42);
  border-radius: 13px;
  padding: 0 11px;
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  box-shadow: inset 0 1px 0 rgba(186, 230, 253, 0.18), 0 4px 12px rgba(0, 0, 0, 0.4);
}

.mg-hud-stat-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(14, 165, 233, 0.24), rgba(2, 132, 199, 0.12));
  border: 1px solid rgba(56, 189, 248, 0.42);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(14, 165, 233, 0.22);
}

.mg-hud-stat-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  line-height: 1.15;
  gap: 2px;
}

.mg-hud-stat-top {
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.mg-hud-stat-label {
  font-size: 0.64rem;
  font-weight: 800;
  color: #94A3B8;
  letter-spacing: 0.3px;
}

.mg-hud-stat-pipes {
  font-size: 0.74rem;
  font-weight: 800;
  color: #F8FAFC;
  background: rgba(56, 189, 248, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.28);
  padding: 0px 6px;
  border-radius: 99px;
}

.mg-hud-stat-kc {
  font-size: 0.88rem;
  font-weight: 900;
  color: #38BDF8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.2px;
  text-shadow: 0 0 10px rgba(56, 189, 248, 0.38);
}

.mg-hud-stat-kc.is-gold {
  color: #FDE047;
  text-shadow: 0 0 10px rgba(250, 204, 21, 0.45);
}

/* CỤM 2: RƯƠNG KIM CƯƠNG TÍCH LŨY + NÚT RÚT 3D SANG TRỌNG */
.mg-hud-wallet-box {
  height: 50px;
  min-width: 0;
  background: linear-gradient(135deg, rgba(28, 25, 23, 0.98) 0%, rgba(69, 26, 3, 0.82) 100%);
  padding: 0 9px 0 10px;
  border-radius: 13px;
  border: 1px solid rgba(250, 204, 21, 0.46);
  box-shadow: inset 0 1px 0 rgba(254, 240, 138, 0.2), 0 4px 12px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.mg-hud-wallet-box:hover {
  border-color: rgba(254, 240, 138, 0.75);
  box-shadow: inset 0 1px 0 rgba(254, 240, 138, 0.3), 0 5px 15px rgba(245, 158, 11, 0.25);
}

.mg-hud-wallet-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(245, 158, 11, 0.26), rgba(180, 83, 9, 0.16));
  border: 1px solid rgba(250, 204, 21, 0.42);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.24);
}

.mg-hud-wallet-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
}

.mg-hud-wallet-label {
  font-size: 0.58rem;
  font-weight: 800;
  color: #FDE68A;
  letter-spacing: 0.35px;
  white-space: nowrap;
  line-height: 1;
}

.mg-hud-wallet-balance {
  display: flex;
  align-items: center;
  min-width: 0;
  line-height: 1.1;
}

.mg-hud-wallet-balance strong {
  font-size: 0.9rem;
  font-weight: 900;
  color: #FDE047;
  letter-spacing: -0.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 0 10px rgba(250, 204, 21, 0.42), 0 1px 3px rgba(0, 0, 0, 0.75);
}

.mg-chest-progress-track {
  width: 100%;
  height: 4px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 99px;
  overflow: hidden;
  position: relative;
}

.mg-chest-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #38BDF8 0%, #FACC15 55%, #10B981 100%);
  border-radius: 99px;
  transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 0 8px rgba(250, 204, 21, 0.55);
}

/* NÚT RÚT 3D TÍCH HỢP TRỰC TIẾP TRONG Ô RƯƠNG KIM CƯƠNG */
.mg-wallet-withdraw-pill {
  position: relative;
  overflow: hidden;
  height: 32px;
  padding: 0 11px;
  border-radius: 9px;
  border: 1px solid #FEF08A;
  background: linear-gradient(180deg, #F59E0B 0%, #EA580C 55%, #C2410C 100%);
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.3px;
  cursor: pointer;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 0 #7C2D12, 0 4px 10px rgba(234, 88, 12, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.65);
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}

.mg-wallet-withdraw-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 0 #7C2D12, 0 6px 14px rgba(234, 88, 12, 0.6);
}

.mg-wallet-withdraw-pill:active {
  transform: translateY(1px);
}

.mg-btn-withdraw-shimmer {
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(105deg, transparent 0%, rgba(255, 255, 255, 0.32) 50%, transparent 100%);
  transform: skewX(-20deg);
  pointer-events: none;
  animation: mgWinnerShimmerSweep 2.8s infinite;
}

.mg-btn-withdraw-icon {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mg-btn-withdraw-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
}

.mg-btn-withdraw-main {
  font-size: 0.72rem;
  font-weight: 900;
  color: #FFFFFF;
  letter-spacing: 0.2px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.mg-btn-withdraw-sub {
  font-size: 0.62rem;
  font-weight: 800;
  color: #FEF08A;
}

/* MODE TABS BAR FOR CHESS & XIANGQI (THẾ CỜ 15S VS CẢ VÁN) */
.mg-mode-tabs-bar {
  width: 100%;
  background: #191B22;
  padding: 7px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mg-mode-tab-pill {
  flex: 1;
  background: #262932;
  color: #9CA3AF;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s;
}

.mg-mode-tab-pill.active {
  background: linear-gradient(135deg, #2563EB, #1D4ED8);
  color: #FFFFFF;
  border-color: rgba(147, 197, 253, 0.4);
  box-shadow: 0 3px 10px rgba(37, 99, 235, 0.35);
}

.mg-arena-stage {
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: #0F1322;
  user-select: none;
  -webkit-user-select: none;
}

.mg-studio-canvas {
  display: block;
  width: 100%;
  height: auto;
  max-height: 72vh;
  cursor: pointer;
  touch-action: none;
}

.mg-stage-footer-bar {
  width: 100%;
  background: #18191E;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 9px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.77rem;
  color: #9CA3AF;
}

.mg-stage-btn {
  background: #2B2D33;
  color: #F3F4F6;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 6px 11px;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
}

.mg-stage-btn:hover {
  background: #383B44;
}

.mg-stage-btn.primary {
  background: linear-gradient(135deg, #10B981, #059669);
  border-color: transparent;
  color: #FFFFFF;
}

/* POPUP NHẬN THƯỞNG KIM CƯƠNG */
.mg-reward-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 12, 20, 0.9);
  backdrop-filter: blur(6px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
  z-index: 30;
  animation: mgModalPopIn 0.22s ease;
}

.mg-reward-card {
  width: 100%;
  max-width: 345px;
  background: #1F2128;
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  padding: 22px 18px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.75);
}

.mg-reward-kc-big {
  font-size: 2.15rem;
  font-weight: 900;
  color: #38BDF8;
  margin: 8px 0 6px;
  text-shadow: 0 0 20px rgba(56, 189, 248, 0.45);
}

.mg-reward-kc-big.jackpot {
  color: #FBBF24;
  text-shadow: 0 0 24px rgba(251, 191, 36, 0.65);
}

.mg-btn-play {
  background: linear-gradient(135deg, #3B82F6, #2563EB);
  color: #FFFFFF;
  border: none;
  border-radius: 11px;
  padding: 11px 16px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
}

.mg-btn-play.vip-btn {
  background: linear-gradient(135deg, #F59E0B, #D97706);
  color: #111827;
  font-weight: 800;
}

/* ==========================================================================
   4. THẺ VOUCHER ĐẶC QUYỀN CỘNG GỘP KIM CƯƠNG TRÊN TRANG CHÍNH + NHÃN GÓI ĐANG CHỌN
   ========================================================================== */
.mg-attached-topup-banner {
  margin-bottom: 16px;
  border-radius: 14px;
  background: #FFFFFF;
  border: 1.5px solid rgba(211, 47, 47, 0.26);
  box-shadow: 0 8px 24px rgba(211, 47, 47, 0.08);
  overflow: hidden;
  animation: mgModalPopIn 0.22s ease;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

.mg-attached-topup-banner.is-warning {
  border-color: rgba(245, 158, 11, 0.45);
  box-shadow: 0 8px 22px rgba(245, 158, 11, 0.12);
}

.mg-voucher-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 14px;
  background: linear-gradient(90deg, #FFF1F2 0%, #FFF7ED 100%);
  border-bottom: 1px solid rgba(211, 47, 47, 0.12);
}

.mg-voucher-topbar.is-warn {
  background: linear-gradient(90deg, #FFFBEB 0%, #FEF3C7 100%);
  border-bottom-color: rgba(245, 158, 11, 0.22);
}

.mg-voucher-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.mg-voucher-icon-box {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, #D32F2F 0%, #EA580C 100%);
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 3px 8px rgba(211, 47, 47, 0.28);
}

.mg-voucher-icon-box.warn {
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
}

.mg-voucher-heading {
  font-size: 0.79rem;
  font-weight: 800;
  color: #991B1B;
  letter-spacing: 0.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mg-voucher-status-pill {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  background: #DCFCE7;
  border: 1px solid #86EFAC;
  color: #15803D;
  font-size: 0.7rem;
  font-weight: 800;
}

.mg-voucher-status-pill.warn {
  background: #FEF3C7;
  border-color: #FCD34D;
  color: #B45309;
}

.mg-voucher-calc-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1.15fr;
  align-items: center;
  gap: 6px;
  padding: 12px 13px;
  background: #FFFFFF;
}

.mg-voucher-stat-box {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 8px 9px;
  text-align: center;
}

.mg-voucher-stat-box.is-bonus {
  background: linear-gradient(180deg, #FFFBEB 0%, #FEF3C7 100%);
  border-color: #FCD34D;
}

.mg-voucher-stat-box.is-total {
  background: linear-gradient(135deg, #FEF2F2 0%, #FFE4E6 100%);
  border: 1.5px solid #EF4444;
  box-shadow: 0 3px 10px rgba(239, 68, 68, 0.12);
}

.mg-voucher-stat-label {
  display: block;
  font-size: 0.67rem;
  font-weight: 700;
  color: #64748B;
  margin-bottom: 3px;
  white-space: nowrap;
}

.mg-voucher-stat-box.is-bonus .mg-voucher-stat-label {
  color: #92400E;
}

.mg-voucher-stat-box.is-total .mg-voucher-stat-label {
  color: #B91C1C;
  font-weight: 800;
}

.mg-voucher-stat-val {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.mg-v-gem {
  width: 15px;
  height: 15px;
  object-fit: contain;
  flex-shrink: 0;
}

.mg-voucher-stat-val strong {
  font-size: 0.88rem;
  font-weight: 800;
  color: #1E293B;
}

.mg-voucher-stat-box.is-bonus .mg-voucher-stat-val strong {
  color: #B45309;
  font-weight: 900;
}

.mg-voucher-stat-box.is-total .mg-voucher-stat-val strong {
  font-size: 0.94rem;
  font-weight: 900;
  color: #D32F2F;
}

.mg-voucher-op {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #F1F5F9;
  color: #64748B;
  font-size: 0.78rem;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mg-voucher-footbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 14px;
  background: #F8FAFC;
  border-top: 1px dashed #E2E8F0;
  font-size: 0.74rem;
  color: #475569;
}

.mg-voucher-user {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.mg-voucher-user strong {
  color: #0F172A;
  font-weight: 800;
}

.mg-voucher-uid {
  padding: 1px 6px;
  border-radius: 5px;
  background: #E2E8F0;
  color: #334155;
  font-size: 0.68rem;
  font-weight: 700;
}

.mg-voucher-note {
  color: #059669;
  font-weight: 700;
  font-size: 0.72rem;
}

.mg-voucher-warn-body {
  padding: 11px 14px;
  font-size: 0.78rem;
  color: #92400E;
  line-height: 1.45;
}

/* DẢI RUY-BĂNG THƯỞNG KIM CƯƠNG CHỈ HIỂN THỊ TRÊN THẺ MỆNH GIÁ ĐANG CHỌN */
.pkg-card.has-mg-bonus {
  overflow: hidden;
  padding-bottom: 0 !important;
}

.mg-pkg-bonus-badge {
  width: 100%;
  margin: 0;
  padding: 5px 6px;
  background: linear-gradient(90deg, #D32F2F 0%, #EF4444 50%, #DC2626 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  color: #FFFFFF;
  font-size: 0.71rem;
  font-weight: 800;
  line-height: 1.2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  letter-spacing: 0.1px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.28);
  animation: mgModalPopIn 0.18s ease;
}

.mg-pkg-bonus-gem {
  width: 13px;
  height: 13px;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
  flex-shrink: 0;
}

@media (max-width: 520px) {
  .mg-voucher-calc-grid {
    grid-template-columns: 1fr auto 1fr;
    gap: 5px;
  }
  .mg-voucher-calc-grid .mg-voucher-op:nth-of-type(4) {
    display: none;
  }
  .mg-voucher-stat-box.is-total {
    grid-column: 1 / -1;
    margin-top: 2px;
  }
  .mg-pkg-bonus-badge {
    font-size: 0.65rem;
    padding: 4px 4px;
  }
}

/* MODAL XÁC NHẬN ĐIỀU KIỆN NẠP 50.000Đ ĐỂ RÚT KIM CƯƠNG (HIỂN THỊ TRÊN CÙNG TRÊN CẢ BÀN GAME) */
.mg-withdraw-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: rgba(8, 11, 20, 0.86);
  backdrop-filter: blur(7px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: mgModalPopIn 0.18s ease;
}

.mg-withdraw-modal-card {
  width: 100%;
  max-width: 392px;
  background: linear-gradient(165deg, #1E2436 0%, #121624 100%);
  border: 1.5px solid rgba(250, 204, 21, 0.45);
  border-radius: 22px;
  padding: 20px 18px 18px;
  color: #F8FAFC;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(254, 240, 138, 0.22);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  animation: mgModalPopIn 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.mg-withdraw-header {
  text-align: center;
  margin-bottom: 12px;
}

.mg-withdraw-badge-top {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(250, 204, 21, 0.14);
  border: 1px solid rgba(250, 204, 21, 0.4);
  color: #FDE047;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 7px;
}

.mg-withdraw-title {
  font-size: 1.08rem;
  font-weight: 900;
  color: #FFFFFF;
  margin: 0;
  letter-spacing: -0.2px;
}

.mg-withdraw-uid-bar {
  margin: 10px 0;
  padding: 8px 11px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(56, 189, 248, 0.28);
  font-size: 0.77rem;
  color: #E2E8F0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.mg-withdraw-calc-box {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(30, 41, 59, 0.85));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 13px;
  padding: 11px 13px;
  margin-bottom: 11px;
}

.mg-withdraw-calc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #CBD5E1;
  padding: 4px 0;
}

.mg-withdraw-calc-row strong {
  font-weight: 800;
}

.mg-withdraw-calc-row.total {
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px dashed rgba(255, 255, 255, 0.16);
  font-size: 0.88rem;
  font-weight: 800;
  color: #FFFFFF;
}

.mg-withdraw-calc-row.total strong {
  font-size: 1.06rem;
  font-weight: 900;
  color: #FDE047;
  text-shadow: 0 0 10px rgba(250, 204, 21, 0.45);
}

.mg-withdraw-rule-box {
  background: rgba(245, 158, 11, 0.11);
  border: 1px solid rgba(251, 191, 36, 0.35);
  border-radius: 11px;
  padding: 10px 12px;
  font-size: 0.76rem;
  color: #FEF3C7;
  line-height: 1.45;
  margin-bottom: 14px;
}

.mg-withdraw-rule-box strong {
  color: #FDE047;
}

.mg-withdraw-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mg-withdraw-btn-primary {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #FEF08A;
  background: linear-gradient(180deg, #F59E0B 0%, #EA580C 55%, #C2410C 100%);
  color: #FFFFFF;
  font-size: 0.86rem;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 4px 0 #7C2D12, 0 8px 20px rgba(234, 88, 12, 0.45);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
  transition: transform 0.12s ease;
}

.mg-withdraw-btn-primary:hover {
  transform: translateY(-1px);
}

.mg-withdraw-btn-secondary {
  width: 100%;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #CBD5E1;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.mg-uid-highlight-pulse {
  animation: mgUidPulseGlow 1.1s ease-in-out 3;
}

@keyframes mgUidPulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); border-color: #CBD5E1; }
  50% { box-shadow: 0 0 0 5px rgba(245, 158, 11, 0.38); border-color: #F59E0B; }
}

.mg-player-badge-mini.is-logged {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.22), rgba(5, 150, 105, 0.14));
  border-color: rgba(52, 211, 153, 0.55);
  color: #ECFDF5;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.22);
}

/* ==========================================================================
   CỔNG ĐĂNG NHẬP UID FREE FIRE TRỰC TIẾP TRONG POPUP GAME
   ========================================================================== */
.mg-uid-gate-wrap {
  padding: 20px 14px 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 410px;
  background:
    radial-gradient(circle at 50% 0%, rgba(245, 158, 11, 0.18), transparent 68%),
    linear-gradient(180deg, #0D1322 0%, #090D16 100%);
}

.mg-uid-gate-card {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 392px;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(30, 58, 138, 0.42) 0%, rgba(15, 23, 42, 0.96) 60%, #0A101E 100%);
  border: 1.5px solid rgba(250, 204, 21, 0.48);
  border-radius: 22px;
  padding: 22px 18px 20px;
  box-shadow:
    0 24px 55px rgba(0, 0, 0, 0.78),
    inset 0 1px 0 rgba(254, 240, 138, 0.22),
    0 0 32px rgba(245, 158, 11, 0.16);
  color: #F8FAFC;
  text-align: center;
  animation: mgModalPopIn 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.mg-uid-gate-glow {
  position: absolute;
  top: -36px;
  left: 50%;
  transform: translateX(-50%);
  width: 220px;
  height: 110px;
  background: radial-gradient(circle, rgba(250, 204, 21, 0.34), transparent 72%);
  pointer-events: none;
}

.mg-uid-gate-header {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mg-uid-gate-pill-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(250, 204, 21, 0.45);
  color: #FDE047;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.4px;
  margin-bottom: 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.32);
}

.mg-uid-gate-avatar-showcase {
  margin-bottom: 12px;
}

.mg-uid-gate-avatar-ring {
  position: relative;
  width: 68px;
  height: 68px;
  border-radius: 19px;
  padding: 2.5px;
  background: linear-gradient(135deg, #FEF08A 0%, #F97316 55%, #38BDF8 100%);
  box-shadow:
    0 10px 24px rgba(245, 158, 11, 0.4),
    0 0 18px rgba(250, 204, 21, 0.32);
  margin: 0 auto;
}

.mg-uid-gate-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 16px;
  object-fit: cover;
  display: block;
}

.mg-uid-gate-online-dot {
  position: absolute;
  right: -3px;
  bottom: -3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #22C55E;
  border: 2.5px solid #0F172A;
  box-shadow: 0 0 8px #22C55E;
}

.mg-uid-gate-title {
  margin: 0 0 5px;
  font-size: 1.12rem;
  font-weight: 900;
  color: #FFFFFF;
  line-height: 1.25;
  letter-spacing: -0.2px;
}

.mg-uid-gate-sub {
  margin: 0;
  font-size: 0.78rem;
  color: #CBD5E1;
  line-height: 1.42;
}

.mg-uid-gate-sub strong {
  color: #FDE047;
  font-weight: 800;
}

.mg-uid-gate-divider {
  height: 1px;
  margin: 15px 0 14px;
  background: linear-gradient(90deg, transparent, rgba(250, 204, 21, 0.35), transparent);
}

.mg-uid-gate-form {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}

.mg-uid-gate-label {
  font-size: 0.84rem;
  font-weight: 800;
  color: #FDE047;
  letter-spacing: 0.2px;
  text-align: center;
}

.mg-uid-gate-input-box {
  display: flex;
  align-items: center;
  background: rgba(8, 12, 22, 0.95);
  border: 1.5px solid rgba(250, 204, 21, 0.42);
  border-radius: 13px;
  overflow: hidden;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.55);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.mg-uid-gate-input-box:focus-within {
  border-color: #FACC15;
  box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.25), inset 0 2px 6px rgba(0, 0, 0, 0.55);
}

.mg-uid-gate-input-box.shake {
  border-color: #EF4444;
  animation: mgGateShake 0.32s ease;
}

@keyframes mgGateShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  50% { transform: translateX(5px); }
  75% { transform: translateX(-4px); }
}

.mg-uid-gate-input-prefix {
  padding: 0 14px;
  font-size: 0.8rem;
  font-weight: 900;
  color: #FEF08A;
  background: linear-gradient(180deg, rgba(250, 204, 21, 0.2), rgba(234, 88, 12, 0.18));
  border-right: 1px solid rgba(250, 204, 21, 0.32);
  height: 46px;
  display: inline-flex;
  align-items: center;
  letter-spacing: 0.5px;
}

.mg-uid-gate-input {
  flex: 1;
  height: 46px;
  padding: 0 14px;
  border: none;
  outline: none;
  background: transparent;
  color: #FFFFFF;
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: 0.6px;
}

.mg-uid-gate-msg {
  font-size: 0.75rem;
  padding: 8px 10px;
  border-radius: 9px;
  line-height: 1.4;
  text-align: center;
}

.mg-uid-gate-msg.error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(248, 113, 113, 0.45);
  color: #FECACA;
}

.mg-uid-gate-msg.info {
  background: rgba(56, 189, 248, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #BAE6FD;
}

.mg-uid-gate-msg.success {
  background: rgba(34, 197, 94, 0.16);
  border: 1px solid rgba(74, 222, 128, 0.45);
  color: #BBF7D0;
}

.mg-uid-gate-submit {
  position: relative;
  overflow: hidden;
  width: 100%;
  margin-top: 2px;
  padding: 13px 14px;
  border-radius: 13px;
  border: 1.5px solid #FEF08A;
  background: linear-gradient(180deg, #FACC15 0%, #F97316 50%, #DC2626 100%);
  color: #FFFFFF;
  font-size: 0.88rem;
  font-weight: 900;
  letter-spacing: 0.25px;
  cursor: pointer;
  box-shadow: 0 4px 0 #7C2D12, 0 10px 22px rgba(234, 88, 12, 0.45);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
  transition: transform 0.12s ease, opacity 0.15s ease;
}

.mg-uid-gate-submit:hover:not(:disabled) {
  transform: translateY(-1px);
}

.mg-uid-gate-submit:disabled {
  opacity: 0.75;
  cursor: wait;
}

.mg-uid-gate-cancel {
  width: 100%;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #CBD5E1;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 540px) {
  .mg-floating-launcher {
    right: 12px;
    bottom: 14px;
    padding: 8px 11px 8px 9px;
    gap: 10px;
    border-radius: 22px;
  }
  .mg-launcher-pixel-box {
    width: 46px;
    height: 46px;
    border-radius: 14px;
  }
  .mg-launcher-title {
    font-size: 0.98rem;
  }
  .mg-launcher-3d-wordmark {
    font-size: 1.0rem;
  }
  .mg-launcher-sub {
    font-size: 0.76rem;
  }
  .mg-launcher-right-badge {
    height: 38px;
    padding: 0 10px;
    border-radius: 12px;
    font-size: 0.7rem;
  }
  .mg-hub-modal-dialog {
    padding: 18px 14px 20px 14px;
    border-radius: 22px;
  }
  .mg-cards-grid {
    gap: 12px;
  }
  .mg-app-icon-box {
    width: 84px;
    height: 84px;
    border-radius: 20px;
  }
  .mg-app-name {
    font-size: 0.94rem;
  }
}

/* ==========================================================================
   BẢNG THÔNG BÁO SỰ KIỆN FLAPPY BIRD SĂN KIM CƯƠNG (POSTER 3D & 3 Ô VẬT PHẨM)
   ========================================================================== */
.mg-event-info-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(250, 204, 21, 0.22), rgba(249, 115, 22, 0.25));
  border: 1px solid rgba(250, 204, 21, 0.55);
  color: #FEF08A;
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.25);
  transition: transform 0.14s ease, background 0.14s ease;
}

.mg-event-info-btn:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, rgba(250, 204, 21, 0.34), rgba(249, 115, 22, 0.38));
}

.mg-event-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: rgba(5, 9, 18, 0.85);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: mgModalPopIn 0.22s ease;
}

.mg-event-modal-card {
  position: relative;
  width: 100%;
  max-width: 408px;
  border-radius: 26px;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(30, 58, 138, 0.48) 0%, rgba(15, 23, 42, 0.96) 58%, #090E1A 100%);
  border: 1.5px solid rgba(250, 204, 21, 0.55);
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.88),
    0 0 0 1px rgba(254, 240, 138, 0.16) inset,
    0 0 42px rgba(245, 158, 11, 0.24);
  overflow: hidden;
  color: #F8FAFC;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  animation: mgModalPopIn 0.26s cubic-bezier(0.22, 1, 0.36, 1);
}

.mg-event-close-x {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 6;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(15, 23, 42, 0.72);
  color: #E2E8F0;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.mg-event-close-x:hover {
  background: rgba(239, 68, 68, 0.9);
  color: #FFFFFF;
  transform: scale(1.06);
}

.mg-event-hero {
  position: relative;
  padding: 22px 18px 16px;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 25%, rgba(250, 204, 21, 0.26) 0%, rgba(56, 189, 248, 0.14) 48%, transparent 76%);
}

.mg-event-hero-rays {
  position: absolute;
  top: -70px;
  left: 50%;
  width: 340px;
  height: 340px;
  margin-left: -170px;
  background: repeating-conic-gradient(
    from 0deg,
    rgba(250, 204, 21, 0.11) 0deg 12deg,
    transparent 12deg 24deg
  );
  border-radius: 50%;
  mask-image: radial-gradient(circle, rgba(0,0,0,1) 10%, transparent 68%);
  -webkit-mask-image: radial-gradient(circle, rgba(0,0,0,1) 10%, transparent 68%);
  animation: mgEventRaysSpin 26s linear infinite;
  pointer-events: none;
}

@keyframes mgEventRaysSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.mg-event-hero-glow {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: 240px;
  height: 120px;
  background: radial-gradient(circle, rgba(250, 204, 21, 0.4), transparent 72%);
  pointer-events: none;
}

.mg-event-pill-badge {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 13px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(250, 204, 21, 0.5);
  color: #FEF08A;
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.mg-ev-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ADE80;
  box-shadow: 0 0 8px #4ADE80;
  flex-shrink: 0;
  animation: mgLauncherLiveBlink 1.4s infinite ease-in-out;
}

.mg-event-stage-emblem {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 2px auto 14px;
  width: 170px;
  height: 92px;
}

.mg-ev-float-gem {
  position: absolute;
  width: 30px;
  height: 30px;
  filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.85));
  animation: mgEvGemFloat 2.6s ease-in-out infinite;
}

.mg-ev-float-gem svg {
  width: 100%;
  height: 100%;
  display: block;
}

.mg-ev-float-gem.gem-left {
  left: 4px;
  top: 16px;
  transform: rotate(-16deg);
}

.mg-ev-float-gem.gem-right {
  right: 4px;
  top: 12px;
  transform: rotate(16deg);
  animation-delay: 1.1s;
}

@keyframes mgEvGemFloat {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -6px; }
}

.mg-event-main-icon {
  position: relative;
  width: 86px;
  height: 86px;
  border-radius: 22px;
  padding: 2.5px;
  background: linear-gradient(135deg, #FEF08A 0%, #F97316 50%, #38BDF8 100%);
  box-shadow:
    0 12px 28px rgba(249, 115, 22, 0.45),
    0 0 22px rgba(250, 204, 21, 0.38);
}

.mg-event-main-icon > img {
  width: 100%;
  height: 100%;
  border-radius: 19px;
  object-fit: cover;
  display: block;
}

.mg-event-icon-tag {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  padding: 2px 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, #EF4444, #DC2626);
  border: 1.5px solid #FEF08A;
  color: #FFFFFF;
  font-size: 0.54rem;
  font-weight: 900;
  letter-spacing: 0.4px;
  white-space: nowrap;
  box-shadow: 0 4px 10px rgba(220, 38, 38, 0.55);
}

.mg-event-ff-corner {
  position: absolute;
  right: -8px;
  bottom: -6px;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  padding: 1.5px;
  background: linear-gradient(135deg, #FACC15, #EA580C);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.65);
}

.mg-event-ff-corner img {
  width: 100%;
  height: 100%;
  border-radius: 7px;
  object-fit: cover;
  display: block;
}

.mg-event-title-wrap {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}

.mg-event-3d-wordmark {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 1.5px;
  font-family: 'Plus Jakarta Sans', 'Arial Black', sans-serif;
  font-size: 1.52rem;
  font-weight: 900;
  letter-spacing: 0.6px;
  line-height: 1.1;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.55));
}

.mg-event-3d-wordmark .c-space {
  width: 9px;
}

.mg-event-jackpot-sub {
  font-size: 1.14rem;
  font-weight: 900;
  letter-spacing: -0.1px;
  background: linear-gradient(90deg, #FEF9C3 0%, #FACC15 48%, #FB923C 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 10px rgba(250, 204, 21, 0.38));
}

.mg-event-body {
  padding: 4px 16px 18px;
}

/* 3 Ô VẬT PHẨM THƯỞNG SỰ KIỆN (THAY THẾ HOÀN TOÀN 3 DÒNG CHỮ CŨ) */
.mg-event-loot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin-bottom: 13px;
}

.mg-event-loot-card {
  position: relative;
  border-radius: 16px;
  padding: 14px 6px 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  transition: transform 0.16s ease;
}

.mg-event-loot-card:hover {
  transform: translateY(-2px);
}

.mg-event-loot-card.tier-cyan {
  background: linear-gradient(180deg, rgba(14, 116, 144, 0.34) 0%, rgba(15, 23, 42, 0.92) 100%);
  border: 1px solid rgba(56, 189, 248, 0.45);
  box-shadow: inset 0 1px 0 rgba(186, 230, 253, 0.2);
}

.mg-event-loot-card.tier-purple {
  background: linear-gradient(180deg, rgba(126, 34, 206, 0.38) 0%, rgba(15, 23, 42, 0.92) 100%);
  border: 1px solid rgba(192, 132, 252, 0.5);
  box-shadow: inset 0 1px 0 rgba(233, 213, 255, 0.22);
}

.mg-event-loot-card.tier-gold {
  background: linear-gradient(180deg, rgba(217, 119, 6, 0.42) 0%, rgba(15, 23, 42, 0.94) 100%);
  border: 1.5px solid rgba(250, 204, 21, 0.68);
  box-shadow:
    0 6px 18px rgba(245, 158, 11, 0.22),
    inset 0 1px 0 rgba(254, 240, 138, 0.35);
}

.mg-loot-chip {
  font-size: 0.55rem;
  font-weight: 900;
  letter-spacing: 0.4px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #E2E8F0;
  margin-bottom: 7px;
}

.mg-loot-chip.is-hot {
  background: linear-gradient(90deg, #F59E0B, #EF4444);
  border-color: #FEF08A;
  color: #FFFFFF;
}

.mg-loot-icon-wrap {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
}

.mg-loot-gem-img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(56, 189, 248, 0.65));
}

.mg-loot-svg {
  width: 42px;
  height: 42px;
  filter: drop-shadow(0 4px 10px rgba(250, 204, 21, 0.45));
}

.mg-loot-svg.is-cyan {
  filter: drop-shadow(0 4px 10px rgba(56, 189, 248, 0.65));
}

.mg-loot-amount {
  font-size: 0.86rem;
  font-weight: 900;
  line-height: 1.15;
  color: #FFFFFF;
  margin-bottom: 2px;
}

.tier-cyan .mg-loot-amount {
  color: #7DD3FC;
}

.tier-purple .mg-loot-amount {
  color: #E9D5FF;
}

.tier-gold .mg-loot-amount {
  color: #FDE047;
  text-shadow: 0 0 10px rgba(250, 204, 21, 0.45);
}

.mg-loot-label {
  font-size: 0.66rem;
  font-weight: 700;
  color: #94A3B8;
}

.mg-event-live-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(16, 185, 129, 0.11);
  border: 1px solid rgba(52, 211, 153, 0.3);
  font-size: 0.72rem;
  color: #D1FAE5;
  margin-bottom: 13px;
  text-align: center;
}

.mg-event-live-bar strong {
  color: #4ADE80;
  font-weight: 800;
}

.mg-event-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mg-event-btn-primary {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding: 13px 14px;
  border-radius: 14px;
  border: 1.5px solid #FEF08A;
  background: linear-gradient(180deg, #FACC15 0%, #F97316 50%, #DC2626 100%);
  color: #FFFFFF;
  font-size: 0.88rem;
  font-weight: 900;
  letter-spacing: 0.25px;
  cursor: pointer;
  box-shadow: 0 4px 0 #7C2D12, 0 10px 24px rgba(234, 88, 12, 0.5);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.65);
  transition: transform 0.12s ease, filter 0.12s ease;
}

.mg-ev-btn-shine {
  position: absolute;
  top: 0;
  left: -120%;
  width: 65%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.38),
    transparent
  );
  transform: skewX(-22deg);
  animation: mgEvBtnSweep 3.2s ease-in-out infinite;
  pointer-events: none;
}

@keyframes mgEvBtnSweep {
  0% { left: -120%; }
  45%, 100% { left: 160%; }
}

.mg-event-btn-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
}

.mg-event-btn-primary:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #7C2D12, 0 5px 12px rgba(234, 88, 12, 0.4);
}

.mg-event-btn-secondary {
  width: 100%;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: #94A3B8;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}

.mg-event-btn-secondary:hover {
  color: #E2E8F0;
  background: rgba(255, 255, 255, 0.09);
}

/* ============================================================================
   HIỆU ỨNG CHÚ CHIM FLAPPY BIRD BAY GIAO KIM CƯƠNG & BIÊN LAI HOÀNG GIA (FONT PIXEL VIỆT HÓA 3D)
   ============================================================================ */
@font-face {
  font-family: 'FlappyPixelVN';
  src: url('/games/flappy/VT323-VN.ttf') format('woff'),
       url('/games/flappy/VT323-VN.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

.mg-fb-withdraw-card {
  position: relative;
  max-width: 396px;
  overflow: hidden;
  border: 1.5px solid rgba(250, 204, 21, 0.55);
}

.mg-fb-withdraw-card .mg-event-pill-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 5px 15px;
  white-space: nowrap;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.94) 0%, rgba(30, 58, 138, 0.58) 50%, rgba(15, 23, 42, 0.94) 100%);
  border: 1.5px solid rgba(250, 204, 21, 0.72);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.48), inset 0 1px 0 rgba(254, 240, 138, 0.3);
  margin: 0 auto 12px;
}

.mg-fb-withdraw-card .mg-event-pill-badge.is-success-pill {
  background: linear-gradient(90deg, rgba(6, 78, 59, 0.92) 0%, rgba(16, 185, 129, 0.42) 50%, rgba(6, 78, 59, 0.92) 100%);
  border-color: rgba(74, 222, 128, 0.78);
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.28), inset 0 1px 0 rgba(187, 247, 208, 0.35);
}

.mg-fb-withdraw-card .mg-event-pill-badge,
.mg-fb-withdraw-card .mg-event-pill-badge span {
  font-family: 'FlappyPixelVN', 'Jersey10', monospace !important;
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 0.45px;
  color: #FEF08A;
  text-shadow:
    -1.3px -1.3px 0 #000000,
     1.3px -1.3px 0 #000000,
    -1.3px  1.3px 0 #000000,
     1.3px  1.3px 0 #000000,
     0px  2px 0 #7C2D12;
}

.mg-fb-withdraw-card .mg-event-pill-badge.is-success-pill,
.mg-fb-withdraw-card .mg-event-pill-badge.is-success-pill span {
  color: #FEF08A;
  text-shadow:
    -1.3px -1.3px 0 #000000,
     1.3px -1.3px 0 #000000,
    -1.3px  1.3px 0 #000000,
     1.3px  1.3px 0 #000000,
     0px  2px 0 #064E3B;
}

.mg-fb-withdraw-card .mg-event-icon-tag {
  font-family: 'FlappyPixelVN', 'Jersey10', monospace !important;
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.5px;
  padding: 2px 9px;
  text-shadow:
    -1px -1px 0 #000000,
     1px -1px 0 #000000,
    -1px  1px 0 #000000,
     1px  1px 0 #000000;
}

.mg-fb-withdraw-card .mg-event-3d-wordmark,
.mg-fb-withdraw-card .mg-event-3d-wordmark > span {
  font-family: 'FlappyPixelVN', 'Jersey10', monospace !important;
  font-size: 2.35rem;
  font-weight: 400;
  letter-spacing: 1.2px;
}

.mg-fb-withdraw-card .mg-event-jackpot-sub {
  font-family: 'FlappyPixelVN', 'Jersey10', monospace;
  font-size: 1.38rem !important;
  font-weight: 400;
  letter-spacing: 0.6px;
  color: #FDE047;
  background: none;
  -webkit-text-fill-color: #FDE047;
  text-shadow:
    -1.5px -1.5px 0 #000,
     1.5px -1.5px 0 #000,
    -1.5px  1.5px 0 #000,
     1.5px  1.5px 0 #000,
     0px  3px 0 #7C2D12,
     0px  5px 10px rgba(0, 0, 0, 0.65);
  filter: none;
}

.mg-fb-wd-hero {
  padding: 18px 16px 12px;
}

.mg-fb-wd-hero.is-success {
  background: radial-gradient(circle at 50% 25%, rgba(34, 197, 94, 0.28) 0%, rgba(56, 189, 248, 0.14) 52%, transparent 78%);
}

.mg-event-main-icon.is-success-ring {
  background: linear-gradient(135deg, #86EFAC 0%, #22C55E 50%, #FACC15 100%);
  box-shadow: 0 10px 26px rgba(34, 197, 94, 0.45), 0 0 22px rgba(250, 204, 21, 0.4);
}

.mg-event-icon-tag.is-green {
  background: linear-gradient(135deg, #22C55E, #15803D);
  border-color: #FEF08A;
  box-shadow: 0 4px 10px rgba(22, 163, 74, 0.55);
}

.mg-fb-wd-player-pill {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border-radius: 15px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.88) 100%);
  border: 1.5px solid rgba(56, 189, 248, 0.42);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  margin-bottom: 11px;
}

.mg-fb-wd-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.mg-fb-wd-avatar {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  object-fit: cover;
  border: 2px solid #FACC15;
  box-shadow: 0 0 12px rgba(250, 204, 21, 0.35);
  display: block;
}

.mg-fb-wd-avatar-dot {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #22C55E;
  border: 2px solid #0F172A;
  box-shadow: 0 0 8px #22C55E;
}

.mg-fb-wd-player-meta {
  flex: 1;
  min-width: 0;
}

.mg-fb-wd-player-lbl {
  font-family: 'FlappyPixelVN', 'Jersey10', monospace;
  font-size: 0.92rem;
  font-weight: 400;
  color: #BAE6FD;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
  text-shadow: 1px 1px 0 #000;
}

.mg-fb-wd-player-val {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  flex-wrap: wrap;
}

.mg-fb-wd-player-val strong {
  font-size: 0.94rem;
  font-weight: 900;
  color: #FEF08A;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.65);
}

.mg-fb-wd-uid-tag {
  font-family: 'FlappyPixelVN', 'Jersey10', monospace;
  padding: 2px 9px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.22), rgba(5, 150, 105, 0.32));
  border: 1px solid rgba(74, 222, 128, 0.55);
  color: #86EFAC;
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.4px;
  text-shadow: 1px 1px 0 #000;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
}

/* THẺ TRUNG TÂM 3D KHO BÁU KIM CƯƠNG (FONT PIXEL VIỆT HÓA 3D) */
.mg-fb-vault-card {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  padding: 13px 14px 13px;
  margin-bottom: 11px;
  background: linear-gradient(165deg, rgba(30, 41, 59, 0.95) 0%, rgba(9, 14, 26, 0.98) 100%);
  border: 1.5px solid rgba(250, 204, 21, 0.62);
  box-shadow:
    0 10px 26px rgba(0, 0, 0, 0.5),
    0 0 22px rgba(245, 158, 11, 0.16),
    inset 0 1px 0 rgba(254, 249, 195, 0.32);
}

.mg-fb-vault-card.is-success-vault {
  padding: 15px 16px 13px;
  margin-bottom: 12px;
  border: 1.5px solid rgba(250, 204, 21, 0.72);
  background:
    radial-gradient(circle at 50% 35%, rgba(250, 204, 21, 0.22) 0%, rgba(16, 185, 129, 0.26) 48%, transparent 78%),
    linear-gradient(165deg, rgba(6, 78, 59, 0.78) 0%, rgba(9, 14, 26, 0.98) 100%);
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.58),
    0 0 26px rgba(34, 197, 94, 0.25),
    inset 0 1px 0 rgba(254, 240, 138, 0.42),
    inset 0 -1px 0 rgba(52, 211, 153, 0.32);
}

.mg-fb-vault-main-amount.is-showcase {
  gap: 12px;
  padding: 2px 0 6px;
}

.mg-fb-vault-gem-3d.is-right {
  animation-delay: 1.1s;
}

.mg-fb-vault-pedestal-line {
  width: 68%;
  height: 3px;
  margin: 4px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent 0%, rgba(56, 189, 248, 0.65) 20%, #FDE047 50%, rgba(56, 189, 248, 0.65) 80%, transparent 100%);
  box-shadow: 0 0 12px rgba(250, 204, 21, 0.65);
}

.mg-fb-vault-glow {
  position: absolute;
  top: -35px;
  left: 50%;
  transform: translateX(-50%);
  width: 240px;
  height: 110px;
  background: radial-gradient(circle, rgba(250, 204, 21, 0.28) 0%, rgba(56, 189, 248, 0.12) 55%, transparent 75%);
  pointer-events: none;
}

.mg-fb-vault-top-row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 8px;
}

.mg-fb-vault-chip {
  font-family: 'FlappyPixelVN', 'Jersey10', monospace;
  font-size: 0.92rem;
  font-weight: 400;
  letter-spacing: 0.5px;
  color: #BAE6FD;
  background: rgba(14, 116, 144, 0.32);
  border: 1px solid rgba(56, 189, 248, 0.4);
  padding: 2px 10px;
  border-radius: 999px;
  text-shadow: 1px 1px 0 #000;
}

.mg-fb-vault-free-tag {
  font-family: 'FlappyPixelVN', 'Jersey10', monospace;
  font-size: 0.92rem;
  font-weight: 400;
  letter-spacing: 0.4px;
  color: #FEF08A;
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.28), rgba(234, 88, 12, 0.32));
  border: 1px solid rgba(250, 204, 21, 0.55);
  padding: 2px 10px;
  border-radius: 999px;
  text-shadow: 1px 1px 0 #000;
}

.mg-fb-vault-main-amount {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 4px 0 2px;
}

.mg-fb-vault-gem-3d {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  filter: drop-shadow(0 0 12px rgba(56, 189, 248, 0.85));
  animation: mgEvGemFloat 2.4s ease-in-out infinite;
}

.mg-fb-vault-number {
  font-family: 'FlappyPixelVN', 'Jersey10', monospace;
  font-size: 2.55rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 1px;
  color: #FDE047;
  background: none;
  -webkit-text-fill-color: #FDE047;
  text-shadow:
    -2px -2px 0 #000000,
     2px -2px 0 #000000,
    -2px  2px 0 #000000,
     2px  2px 0 #000000,
     0px  4px 0 #7C2D12,
     0px  6px 14px rgba(250, 204, 21, 0.55);
  filter: none;
}

.mg-fb-vault-number small {
  font-family: 'FlappyPixelVN', 'Jersey10', monospace;
  font-size: 1.85rem;
  font-weight: 400;
  margin-left: 2px;
}

/* THANH THÔNG BÁO: KIM CƯƠNG SẼ CỘNG TRỰC TIẾP VÀO NICK GAME (FONT PIXEL VIỆT HÓA) */
.mg-fb-direct-notice-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 13px;
  background: linear-gradient(90deg, rgba(6, 78, 59, 0.65) 0%, rgba(16, 185, 129, 0.25) 50%, rgba(6, 78, 59, 0.65) 100%);
  border: 1.5px solid rgba(52, 211, 153, 0.55);
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.18), inset 0 1px 0 rgba(167, 243, 208, 0.25);
  margin-bottom: 13px;
  text-align: center;
}

.mg-fb-direct-notice-text {
  font-family: 'FlappyPixelVN', 'Jersey10', monospace;
  font-size: 1.06rem;
  font-weight: 400;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #FEF08A;
  text-shadow:
    -1.2px -1.2px 0 #000000,
     1.2px -1.2px 0 #000000,
    -1.2px  1.2px 0 #000000,
     1.2px  1.2px 0 #000000,
     0px  2px 0 #064E3B;
}

/* NÚT BẤM 3D RÚT KIM CƯƠNG (FONT PIXEL VIỆT HÓA 3D NỔI KHỐI CHUẨN FLAPPY BIRD) */
.mg-btn-3d-withdraw {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding: 12px 16px 13px;
  border-radius: 16px;
  border: 2px solid #FEF08A;
  background: linear-gradient(180deg, #FDE047 0%, #F59E0B 38%, #EA580C 78%, #C2410C 100%);
  cursor: pointer;
  box-shadow:
    0 5px 0 #7C2D12,
    0 12px 26px rgba(234, 88, 12, 0.58),
    inset 0 2px 1px rgba(255, 255, 255, 0.65);
  transition: transform 0.12s ease, filter 0.12s ease, box-shadow 0.12s ease;
}

.mg-btn-3d-withdraw::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 6%;
  right: 6%;
  height: 38%;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.42) 0%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
}

.mg-btn-3d-withdraw.is-emerald {
  border-color: #BBF7D0;
  background: linear-gradient(180deg, #4ADE80 0%, #16A34A 45%, #15803D 100%);
  box-shadow:
    0 5px 0 #14532D,
    0 12px 26px rgba(22, 163, 74, 0.5),
    inset 0 2px 1px rgba(255, 255, 255, 0.55);
}

.mg-btn-3d-withdraw:hover {
  transform: translateY(-1.5px);
  filter: brightness(1.06);
}

.mg-btn-3d-withdraw:active {
  transform: translateY(3px);
  box-shadow:
    0 2px 0 #7C2D12,
    0 6px 14px rgba(234, 88, 12, 0.45),
    inset 0 1px 1px rgba(255, 255, 255, 0.5);
}

.mg-btn-3d-inner {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.mg-btn-3d-gem {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.85));
}

.mg-btn-3d-label {
  font-family: 'FlappyPixelVN', 'Jersey10', monospace;
  font-size: 1.68rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #FFFFFF;
  text-shadow:
    -2px -2px 0 #000000,
     2px -2px 0 #000000,
    -2px  2px 0 #000000,
     2px  2px 0 #000000,
    -2px  0px 0 #000000,
     2px  0px 0 #000000,
     0px -2px 0 #000000,
     0px  2px 0 #000000,
     0px  4px 0 #090D16,
    -2px  4px 0 #090D16,
     2px  4px 0 #090D16;
}

.mg-btn-3d-withdraw.is-emerald .mg-btn-3d-label {
  text-shadow:
    -2px -2px 0 #000000,
     2px -2px 0 #000000,
    -2px  2px 0 #000000,
     2px  2px 0 #000000,
     0px  4px 0 #052E16,
    -2px  4px 0 #052E16,
     2px  4px 0 #052E16;
}

/* Sân khấu Canvas chú chim Flappy Bird bay giao Kim Cương */
.mg-fb-flight-stage-wrap {
  padding: 2px 0 4px;
  animation: mgModalPopIn 0.2s ease;
}

.mg-fb-flight-canvas-box {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid #FACC15;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.65), 0 0 18px rgba(250, 204, 21, 0.28);
  margin-bottom: 11px;
  background: #38BDF8;
}

.mg-fb-flight-canvas-box canvas {
  display: block;
  width: 100%;
}

.mg-fb-flight-badge-top {
  position: absolute;
  top: 7px;
  left: 50%;
  transform: translateX(-50%);
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(9, 14, 26, 0.85);
  border: 1px solid rgba(250, 204, 21, 0.65);
  color: #FEF08A;
  font-family: 'FlappyPixelVN', 'Jersey10', monospace;
  font-size: 0.84rem;
  font-weight: 400;
  white-space: nowrap;
  letter-spacing: 0.5px;
  text-shadow: 1px 1px 0 #000000;
}

.mg-fb-live-transfer-grid {
  display: grid;
  grid-template-columns: 1fr auto 1.15fr;
  align-items: center;
  gap: 6px;
  margin-bottom: 11px;
}

.mg-fb-transfer-box {
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 11px;
  padding: 8px 9px;
  text-align: center;
}

.mg-fb-transfer-box.is-uid {
  background: linear-gradient(135deg, rgba(6, 78, 59, 0.65), rgba(15, 23, 42, 0.92));
  border-color: rgba(52, 211, 153, 0.55);
}

.mg-fb-tr-lbl {
  display: block;
  font-family: 'FlappyPixelVN', 'Jersey10', monospace;
  font-size: 0.84rem;
  font-weight: 400;
  letter-spacing: 0.4px;
  color: #94A3B8;
  margin-bottom: 2px;
}

.mg-fb-tr-val {
  font-family: 'FlappyPixelVN', 'Jersey10', monospace;
  font-size: 1.18rem;
  font-weight: 400;
  letter-spacing: 0.5px;
  color: #CBD5E1;
  text-shadow: 1px 1px 0 #000000;
}

.mg-fb-tr-val.is-plus {
  color: #FDE047;
  font-size: 1.25rem;
  text-shadow:
    -1.2px -1.2px 0 #000000,
     1.2px -1.2px 0 #000000,
    -1.2px  1.2px 0 #000000,
     1.2px  1.2px 0 #000000,
     0 0 10px rgba(250, 204, 21, 0.45);
}

.mg-fb-transfer-arrow {
  color: #FACC15;
  font-size: 0.9rem;
  font-weight: 900;
  animation: mgLauncherLiveBlink 0.7s infinite;
}

.mg-fb-progress-wrap {
  background: rgba(9, 13, 22, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 9px 11px;
}

.mg-fb-progress-bar {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(30, 41, 59, 0.95);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 7px;
}

.mg-fb-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #38BDF8 0%, #22C55E 50%, #FACC15 100%);
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.65);
  transition: width 0.06s linear;
}

.mg-fb-progress-status,
.mg-fb-progress-status strong {
  font-family: 'FlappyPixelVN', 'Jersey10', monospace !important;
  font-size: 0.94rem;
  font-weight: 400;
  letter-spacing: 0.4px;
  color: #E2E8F0;
  text-align: center;
  line-height: 1.3;
  text-shadow: 1px 1px 0 #000000;
}

.mg-fb-progress-status strong {
  color: #FDE047;
}

/* Hiệu ứng pháo hoa Kim Cương nổ tung khi rút thành công */
.mg-fb-confetti-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 20;
  overflow: hidden;
}

.mg-fb-confetti-piece {
  position: absolute;
  left: 50%;
  top: 38%;
  font-size: 1.2rem;
  opacity: 0;
  animation: mgFbConfettiBurst 1.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes mgFbConfettiBurst {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(0.3) rotate(0deg);
  }
  70% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty))) scale(1.15) rotate(var(--rot));
  }
}

.mg-receipt-success-wrap {
  text-align: center;
  padding: 4px 2px 2px;
  animation: mgModalPopIn 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}

.mg-receipt-check-circle {
  width: 58px;
  height: 58px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  border: 2.5px solid #A7F3D0;
  box-shadow: 0 0 24px rgba(16, 185, 129, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mg-receipt-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(52, 211, 153, 0.45);
  color: #6EE7B7;
  font-family: 'FlappyPixelVN', 'Jersey10', monospace;
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.5px;
  text-shadow: 1px 1px 0 #000000;
  margin-bottom: 6px;
}

.mg-receipt-title {
  font-family: 'FlappyPixelVN', 'Jersey10', monospace;
  font-size: 1.52rem;
  font-weight: 400;
  color: #FFFFFF;
  margin: 0 0 10px;
  letter-spacing: 0.8px;
  text-shadow:
    -1.5px -1.5px 0 #000000,
     1.5px -1.5px 0 #000000,
    -1.5px  1.5px 0 #000000,
     1.5px  1.5px 0 #000000,
     0px  3px 0 #090D16;
}

.mg-receipt-amount-box {
  background: linear-gradient(135deg, rgba(6, 78, 59, 0.72) 0%, rgba(15, 23, 42, 0.92) 100%);
  border: 1.5px solid rgba(52, 211, 153, 0.5);
  border-radius: 14px;
  padding: 11px 12px;
  margin-bottom: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.mg-receipt-amount-val {
  font-family: 'FlappyPixelVN', 'Jersey10', monospace;
  font-size: 1.95rem;
  font-weight: 400;
  letter-spacing: 1px;
  color: #FEF08A;
  text-shadow:
    -1.8px -1.8px 0 #000000,
     1.8px -1.8px 0 #000000,
    -1.8px  1.8px 0 #000000,
     1.8px  1.8px 0 #000000,
     0px  3px 0 #7C2D12,
     0 0 14px rgba(250, 204, 21, 0.45);
  line-height: 1.15;
}

.mg-receipt-amount-sub {
  font-size: 0.72rem;
  font-weight: 700;
  color: #A7F3D0;
  margin-top: 3px;
}

.mg-fb-withdraw-card .mg-event-btn-secondary {
  font-family: 'FlappyPixelVN', 'Jersey10', monospace !important;
  font-size: 0.98rem;
  font-weight: 400;
  letter-spacing: 0.5px;
  color: #CBD5E1;
  text-shadow: 1px 1px 0 #000000;
}

.mg-receipt-table {
  background: linear-gradient(165deg, rgba(15, 23, 42, 0.92) 0%, rgba(9, 13, 22, 0.96) 100%);
  border: 1.5px solid rgba(56, 189, 248, 0.38);
  border-radius: 15px;
  padding: 10px 14px;
  text-align: left;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.mg-receipt-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 5.5px 0;
  border-bottom: 1px dashed rgba(148, 163, 184, 0.16);
}

.mg-receipt-row:last-child {
  border-bottom: none;
}

.mg-receipt-row,
.mg-receipt-row > span,
.mg-receipt-row > strong {
  font-family: 'FlappyPixelVN', 'Jersey10', monospace !important;
  font-size: 0.98rem;
  font-weight: 400;
  letter-spacing: 0.45px;
  line-height: 1.2;
  text-shadow:
    -1px -1px 0 #000000,
     1px -1px 0 #000000,
    -1px  1px 0 #000000,
     1px  1px 0 #000000;
}

.mg-receipt-row > span {
  color: #BAE6FD;
}

.mg-receipt-row > strong {
  color: #F8FAFC;
  text-align: right;
}

.mg-receipt-row > strong.is-status-ok {
  color: #4ADE80;
  text-shadow:
    -1px -1px 0 #000000,
     1px -1px 0 #000000,
    -1px  1px 0 #000000,
     1px  1px 0 #000000,
     0 0 8px rgba(74, 222, 128, 0.35);
}

.mg-receipt-row > strong.is-player-name {
  font-family: 'FlappyPixelVN', 'Jersey10', 'Plus Jakarta Sans', 'Segoe UI Symbol', sans-serif !important;
  color: #FEF08A;
  font-size: 0.96rem;
}

.mg-receipt-row > strong.is-uid {
  color: #38BDF8;
}

.mg-receipt-row > strong.is-kc-gold {
  color: #FDE047;
  font-size: 1.06rem;
  text-shadow:
    -1.2px -1.2px 0 #000000,
     1.2px -1.2px 0 #000000,
    -1.2px  1.2px 0 #000000,
     1.2px  1.2px 0 #000000,
     0px  2px 0 #7C2D12;
}

.mg-receipt-row > strong.is-tx-code {
  color: #7DD3FC;
}

.mg-receipt-row > strong.is-muted {
  color: #94A3B8;
}

/* NÚT NỔI 🎬 ĐẠO DIỄN & BẢNG CÀI ĐẶT QUAY VIDEO */
.mg-creator-floating-pill {
  position: fixed;
  left: 14px;
  bottom: 18px;
  z-index: 999990;
  display: inline-flex;
  align-items: center;
  background: rgba(15, 23, 42, 0.94);
  border: 1.5px solid rgba(250, 204, 21, 0.65);
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.65);
  overflow: hidden;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

.mg-creator-pill-main {
  background: transparent;
  border: none;
  color: #FDE047;
  font-size: 0.76rem;
  font-weight: 800;
  padding: 7px 11px 7px 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.mg-creator-pill-hide {
  background: rgba(239, 68, 68, 0.22);
  border: none;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
  color: #FCA5A5;
  font-size: 0.72rem;
  font-weight: 900;
  padding: 7px 10px;
  cursor: pointer;
}

.mg-creator-modal-card {
  max-width: 420px;
  max-height: 92vh;
  overflow-y: auto;
}

.mg-creator-form-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mg-creator-section {
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 12px;
  padding: 10px 11px;
}

.mg-creator-sec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.76rem;
  font-weight: 800;
  color: #E2E8F0;
  margin-bottom: 7px;
}

.mg-creator-mini-lbl {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  color: #94A3B8;
  margin-bottom: 3px;
}

.mg-creator-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  align-items: end;
}

.mg-creator-input {
  width: 100%;
  padding: 8px 10px;
  border-radius: 9px;
  border: 1px solid rgba(56, 189, 248, 0.35);
  background: rgba(9, 13, 22, 0.9);
  color: #FFFFFF;
  font-size: 0.85rem;
  font-weight: 800;
  outline: none;
}

.mg-creator-quick-btn {
  width: 100%;
  padding: 8px 10px;
  border-radius: 9px;
  border: 1px solid rgba(52, 211, 153, 0.45);
  background: rgba(16, 185, 129, 0.18);
  color: #6EE7B7;
  font-size: 0.74rem;
  font-weight: 800;
  cursor: pointer;
}

.mg-creator-quick-btn.is-gold {
  border-color: rgba(250, 204, 21, 0.5);
  background: rgba(245, 158, 11, 0.2);
  color: #FDE047;
}

.mg-creator-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 7px;
}

.mg-cr-chip {
  padding: 4px 8px;
  border-radius: 7px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(30, 41, 59, 0.85);
  color: #BAE6FD;
  font-size: 0.69rem;
  font-weight: 700;
  cursor: pointer;
}

.mg-cr-chip:hover {
  background: rgba(56, 189, 248, 0.22);
  border-color: #38BDF8;
  color: #FFFFFF;
}

.mg-creator-toggles {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 11px;
  padding: 9px 11px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.mg-creator-check-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.73rem;
  color: #CBD5E1;
  line-height: 1.4;
  cursor: pointer;
}

.mg-creator-check-row input {
  margin-top: 2px;
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}



