/* ══════════════════════════════════════════════════
   VÒNG QUAY MAY MẮN (VQMM) STYLES
══════════════════════════════════════════════════ */
#page-vqmm {
  padding-bottom: 96px;
}

.vqmm-hero {
  background: linear-gradient(135deg, rgba(76, 29, 149, 0.85), rgba(30, 27, 75, 0.8)) !important;
  border-color: rgba(167, 139, 250, 0.3) !important;
  box-shadow: 0 12px 36px rgba(124, 58, 237, 0.2) !important;
  margin-bottom: 14px;
}
.vqmm-hero-icon {
  background: linear-gradient(135deg, #ec4899, #8b5cf6) !important;
  box-shadow: 0 0 24px rgba(236, 72, 153, 0.5) !important;
}
.vqmm-hero-title {
  background: linear-gradient(135deg, #f472b6, #c084fc, #38bdf8) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  font-weight: 800 !important;
}

/* Status & Spin bar */
.vqmm-status-card {
  background: rgba(18, 16, 38, 0.78);
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: var(--r-md);
  padding: 12px 14px;
  margin-bottom: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(12px);
}
.vqmm-status-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  text-align: center;
  margin-bottom: 10px;
}
.vqmm-stat-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--r-sm);
  padding: 8px 4px;
}
.vqmm-stat-lbl {
  font-size: 11px;
  color: var(--t-4);
  font-weight: 600;
  margin-bottom: 3px;
}
.vqmm-stat-val {
  font-size: 13px;
  font-weight: 700;
}
.badge-free-spin {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
}
.badge-free-spin.active {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
  animation: pulseGreen 2s infinite;
}
.badge-free-spin.used {
  background: rgba(148, 163, 184, 0.1);
  color: var(--t-4);
  border: 1px solid rgba(148, 163, 184, 0.2);
}
@keyframes pulseGreen {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(1.03); }
}

.vqmm-buy-row {
  display: flex;
  justify-content: center;
}
.btn-vqmm-buy {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(139, 92, 246, 0.25));
  border: 1px solid rgba(6, 182, 212, 0.4);
  color: #38bdf8;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: all 0.2s;
}
.btn-vqmm-buy:active {
  transform: scale(0.98);
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.3), rgba(139, 92, 246, 0.35));
}

/* 2 Ô Vật phẩm chính nổi bật */
.vqmm-featured-container {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08), rgba(239, 68, 68, 0.06));
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--r-md);
  padding: 12px;
  margin-bottom: 16px;
  box-shadow: 0 0 25px rgba(245, 158, 11, 0.12);
}
.vqmm-featured-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  color: #fbbf24;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}
.vqmm-featured-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.vqmm-feat-card {
  position: relative;
  border-radius: var(--r-sm);
  padding: 10px 8px;
  text-align: center;
  overflow: hidden;
}
.vqmm-feat-card.feat-1 {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.16), rgba(217, 119, 6, 0.25));
  border: 1.5px solid rgba(251, 191, 36, 0.5);
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.2);
}
.vqmm-feat-card.feat-2 {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.16), rgba(220, 38, 38, 0.25));
  border: 1.5px solid rgba(248, 113, 113, 0.5);
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.2);
}
.vqmm-feat-badge {
  font-size: 9.5px;
  font-weight: 800;
  color: #fef08a;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.vqmm-feat-icon {
  font-size: 26px;
  margin-bottom: 2px;
  filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.6));
}
.vqmm-feat-name {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Vòng quay Canvas Container */
.vqmm-wheel-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  padding: 10px 0 20px;
  user-select: none;
}
.vqmm-wheel-outer {
  position: relative;
  width: 340px;
  height: 340px;
  max-width: 90vw;
  max-height: 90vw;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 45px rgba(124, 58, 237, 0.35), inset 0 0 25px rgba(0, 0, 0, 0.6);
  border: 6px solid #1e1b4b;
  background: #09071a;
}
@media (max-width: 375px) {
  .vqmm-wheel-outer {
    width: 300px;
    height: 300px;
  }
}

.vqmm-canvas-box {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
#vqmmCanvas {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: block;
}

/* Đèn LED viền tròn */
.vqmm-bulbs-ring {
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 2;
}
.vqmm-bulbs-ring .bulb {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  border-radius: 50%;
  background: #fbbf24;
  box-shadow: 0 0 8px #fbbf24;
  transform: rotate(var(--a)) translateY(-164px);
  animation: bulbBlink 1.2s infinite alternate;
}
@media (max-width: 375px) {
  .vqmm-bulbs-ring .bulb {
    transform: rotate(var(--a)) translateY(-145px);
  }
}
.vqmm-bulbs-ring .bulb:nth-child(even) {
  background: #38bdf8;
  box-shadow: 0 0 8px #38bdf8;
  animation-delay: 0.6s;
}
@keyframes bulbBlink {
  0% { opacity: 0.3; transform: rotate(var(--a)) translateY(-164px) scale(0.8); }
  100% { opacity: 1; transform: rotate(var(--a)) translateY(-164px) scale(1.15); }
}

/* Kim chỉ (Pointer) — Thiết kế 3D Kim Vàng Đỏ Sang Trọng */
.vqmm-pointer {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 12;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.85));
}
.vqmm-pointer-arrow {
  width: 0;
  height: 0;
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
  border-top: 32px solid #dc2626;
  position: relative;
  filter: drop-shadow(0 0 6px rgba(220, 38, 38, 0.7));
}
.vqmm-pointer-arrow::before {
  content: '';
  position: absolute;
  top: -32px;
  left: -9px;
  width: 0;
  height: 0;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-top: 20px solid #fde047;
}
.vqmm-pointer-arrow::after {
  content: '';
  position: absolute;
  top: -34px;
  left: -8px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff, #f59e0b 60%, #b45309 100%);
  border: 2px solid #fff;
  box-shadow: 0 0 10px #fde047;
}

/* Nút quay trung tâm */
.vqmm-spin-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: radial-gradient(circle, #ec4899, #8b5cf6 70%, #6d28d9 100%);
  border: 4px solid #fff;
  box-shadow: 0 0 20px rgba(236, 72, 153, 0.7), inset 0 0 10px rgba(255, 255, 255, 0.5);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 8;
  outline: none;
  transition: transform 0.15s, box-shadow 0.15s;
}
.vqmm-spin-btn:hover {
  box-shadow: 0 0 28px rgba(236, 72, 153, 0.9), inset 0 0 15px rgba(255, 255, 255, 0.7);
}
.vqmm-spin-btn:active {
  transform: translate(-50%, -50%) scale(0.93);
}
.vqmm-spin-btn.spinning {
  pointer-events: none;
  opacity: 0.85;
}
.spin-btn-text {
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.05em;
  line-height: 1.1;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}
.spin-btn-sub {
  font-size: 8.5px;
  font-weight: 700;
  color: #fef08a;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-top: 1px;
}

/* Bảng tin người trúng thưởng gần đây */
.vqmm-ticker-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: var(--r-sm);
  padding: 8px 12px;
  font-size: 12px;
  margin-bottom: 12px;
}
.vqmm-ticker-tag {
  background: linear-gradient(135deg, #ef4444, #f59e0b);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
}
.vqmm-ticker-content {
  color: var(--t-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

/* Voucher Cards in Kho Voucher */
.vqmm-voucher-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(22, 19, 44, 0.75);
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: var(--r-md);
  padding: 12px 14px;
  margin-bottom: 8px;
  position: relative;
  overflow: hidden;
}
.vqmm-voucher-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: #38bdf8;
}
.vqmm-voucher-card.used {
  opacity: 0.55;
}
.vqmm-voucher-card.used::before {
  background: var(--t-4);
}
.v-val {
  font-size: 14px;
  font-weight: 800;
  color: #38bdf8;
}
.v-code code {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: #fef08a;
}
.v-exp {
  font-size: 11px;
  color: var(--t-4);
  margin-top: 2px;
}
.btn-copy-v {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #38bdf8;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: all 0.15s;
}
.btn-copy-v:active {
  transform: scale(0.95);
}
.badge-v-used {
  font-size: 11.5px;
  color: var(--t-4);
  background: rgba(255, 255, 255, 0.05);
  padding: 4px 10px;
  border-radius: 6px;
}

/* Lịch sử quay cá nhân */
.vqmm-hist-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--r-sm);
  padding: 10px 12px;
  margin-bottom: 6px;
}
.vqmm-hi-icon {
  font-size: 22px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--r-xs);
}
.vqmm-hi-body {
  flex: 1;
}
.vqmm-hi-title {
  font-size: 13px;
  font-weight: 700;
  color: #f1f5f9;
}
.vqmm-hi-sub {
  font-size: 11px;
  color: var(--t-4);
}
.vqmm-hi-cost {
  font-size: 12px;
  font-weight: 700;
}

/* Thể lệ card */
.vqmm-rules-card {
  background: rgba(20, 17, 40, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--r-md);
  padding: 16px;
  font-size: 13px;
  line-height: 1.6;
}
.vqmm-rules-card h4 {
  font-size: 15px;
  font-weight: 700;
  color: #c084fc;
  margin-bottom: 12px;
}
.vqmm-rules-card ul {
  padding-left: 18px;
}
.vqmm-rules-card li {
  margin-bottom: 8px;
  color: var(--t-2);
}

/* Modal mua lượt quay */
.buy-spins-body {
  padding: 8px 0;
}
.buy-spins-info {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--r-sm);
  padding: 10px 14px;
  margin-bottom: 14px;
}
.bs-info-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 4px;
}
.bs-info-row:last-child {
  margin-bottom: 0;
}
.bs-label {
  font-size: 12px;
  color: var(--t-3);
  font-weight: 600;
  margin-bottom: 8px;
}
.bs-options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
}
.bs-opt-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--r-sm);
  padding: 12px 10px;
  text-align: center;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 3px;
  transition: all 0.15s;
}
.bs-opt-btn.active {
  background: rgba(139, 92, 246, 0.2);
  border-color: #a78bfa;
  box-shadow: 0 0 16px rgba(139, 92, 246, 0.35);
}
.bs-opt-qty {
  font-size: 14px;
  font-weight: 800;
  color: #fff;
}
.bs-opt-price {
  font-size: 11.5px;
  color: #38bdf8;
}
.bs-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--r-sm);
  font-size: 14px;
}
.bs-summary strong {
  font-size: 16px;
  color: #fbbf24;
}

/* Modal kết quả trúng thưởng */
.vqmm-win-card {
  max-width: 320px !important;
  text-align: center;
}
.vqmm-win-icon-wrap {
  width: 72px;
  height: 72px;
  margin: 0 auto 12px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.vqmm-win-emoji {
  font-size: 42px;
  z-index: 2;
  filter: drop-shadow(0 0 16px rgba(251, 191, 36, 0.8));
  animation: bounceEmoji 1s infinite alternate;
}
@keyframes bounceEmoji {
  0% { transform: translateY(0) scale(1); }
  100% { transform: translateY(-8px) scale(1.1); }
}
.vqmm-win-item-name {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  margin: 6px 0;
}
.vqmm-win-item-detail {
  font-size: 12.5px;
  color: var(--t-3);
  margin-bottom: 14px;
}
.vqmm-voucher-box {
  background: rgba(15, 23, 42, 0.8);
  border: 1px dashed rgba(56, 189, 248, 0.5);
  border-radius: var(--r-sm);
  padding: 10px 12px;
  margin-bottom: 12px;
}
.vqmm-vb-lbl {
  font-size: 10.5px;
  color: var(--t-4);
  font-weight: 700;
  margin-bottom: 4px;
}
.vqmm-vb-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.vqmm-vb-row code {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 800;
  color: #38bdf8;
}
.empty-vqmm {
  text-align: center;
  padding: 24px 16px;
  color: var(--t-4);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.empty-vqmm svg {
  margin: 0 auto 8px auto;
  display: block;
}
.vqmm-win-emoji svg {
  display: block;
  margin: auto;
  filter: drop-shadow(0 0 16px rgba(251, 191, 36, 0.8));
}
.vqmm-pz-icon-box svg, .vqmm-tile-icon svg, .vqmm-rw-icon svg, .vqmm-hi-icon svg, .vqmm-feat-icon svg {
  display: block;
  margin: auto;
}

/* ─── Ô CÁC PHẦN THƯỞNG TRÊN VÒNG QUAY ─── */
/* ─── Ô CÁC PHẦN THƯỞNG TRÊN VÒNG QUAY (GAMING SHOWCASE 4 CỘT) ─── */
.vqmm-items-card {
  background: rgba(18, 14, 38, 0.72);
  border: 1px solid rgba(139, 92, 246, 0.22);
  border-radius: 14px;
  padding: 12px 10px 10px;
  margin-top: 14px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.vqmm-sec-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  padding: 0 2px;
}
.vqmm-sec-title {
  font-size: 12px;
  font-weight: 800;
  color: #f1f5f9;
  display: flex;
  align-items: center;
  gap: 5px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}
.vqmm-sec-pill {
  font-size: 9.5px;
  font-weight: 800;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 20px;
  padding: 2px 7px;
  letter-spacing: 0.2px;
}
.vqmm-all-items-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.vqmm-tile {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 6px 3px 6px;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  transition: transform 0.15s, border-color 0.15s;
  overflow: hidden;
  box-sizing: border-box;
}
.vqmm-tile:active {
  transform: scale(0.96);
}
.vqmm-tile.featured {
  background: linear-gradient(150deg, rgba(245, 158, 11, 0.22), rgba(180, 83, 9, 0.1));
  border: 1px solid rgba(245, 158, 11, 0.6);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.2);
}
.vqmm-tile.featured::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2.5px;
  background: linear-gradient(90deg, #fef08a, #f59e0b);
}
.vqmm-tile-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 0 2px;
}
.vqmm-tile-idx {
  font-size: 8.5px;
  font-weight: 700;
  color: var(--t-4);
  font-family: var(--font-mono);
  opacity: 0.8;
}
.vqmm-tile-badge {
  font-size: 8px;
  font-weight: 800;
  padding: 1px 3px;
  border-radius: 3px;
  line-height: 1.2;
  white-space: nowrap;
}
.vqmm-tile-icon {
  font-size: 24px;
  line-height: 1;
  margin: 3px 0 2px;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.6));
}
.vqmm-tile-name {
  font-size: 9.5px;
  font-weight: 700;
  color: #f8fafc;
  line-height: 1.2;
  text-align: center;
  width: 100%;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  text-overflow: ellipsis;
  word-break: break-word;
}

/* Badges phân loại */
.badge-rw-gold {
  color: #78350f;
  background: #fde047;
}
.badge-rw-voucher {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.18);
}
.badge-rw-balance {
  color: #34d399;
  background: rgba(16, 185, 129, 0.18);
}
.badge-rw-spin {
  color: #c084fc;
  background: rgba(168, 85, 247, 0.18);
}
.badge-rw-none {
  color: #94a3b8;
  background: rgba(148, 163, 184, 0.15);
}
.badge-rw-normal {
  color: #a78bfa;
  background: rgba(167, 139, 250, 0.15);
  padding: 1px 5px;
  border-radius: 4px;
}
.badge-rw-done {
  font-size: 10.5px;
  font-weight: 700;
  color: #34d399;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 3px 8px;
  border-radius: 6px;
}

/* ─── PHẦN THƯỞNG ĐÃ TRÚNG ─── */
.vqmm-rw-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(22, 19, 44, 0.75);
  border: 1px solid rgba(139, 92, 246, 0.22);
  border-radius: var(--r-sm);
  padding: 10px 12px;
  margin-bottom: 8px;
}
.vqmm-rw-icon {
  font-size: 24px;
  width: 40px;
  height: 40px;
  border-radius: var(--r-xs);
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.vqmm-rw-body {
  flex: 1;
  min-width: 0;
}
.vqmm-rw-name {
  font-size: 13px;
  font-weight: 700;
  color: #f1f5f9;
  white-space: normal;
  word-break: break-word;
  line-height: 1.35;
}
.vqmm-rw-sub {
  font-size: 11px;
  color: var(--t-4);
  margin-top: 2px;
}
.btn-rw-use {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg, #0284c7, #0369a1);
  border: none;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.12s;
}
.btn-rw-use:active {
  transform: scale(0.95);
}

/* Sub-tabs điều hướng VQMM chống tràn chữ trên mọi dòng máy */
.vqmm-tab-pills {
  display: flex;
  gap: 4px;
  margin: 14px 0 10px;
  padding: 4px;
  background: rgba(18, 14, 38, 0.75);
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: 12px;
  box-sizing: border-box;
  width: 100%;
  overflow: hidden;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.vqmm-tab-pill {
  flex: 1 1 0;
  min-width: 0;
  padding: 8px 2px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  box-sizing: border-box;
}
.vqmm-tab-pill i {
  flex-shrink: 0;
  width: 12px;
  height: 12px;
}
.vqmm-tab-pill span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.vqmm-tab-pill.active {
  background: linear-gradient(135deg, #7c3aed, #9333ea);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(124, 58, 237, 0.45);
}
.vqmm-tab-pill.active span {
  color: #ffffff;
}
.vqmm-tab-pill:active {
  transform: scale(0.96);
}
.vqmm-subpane {
  animation: fadeInPane 0.2s ease;
}
@keyframes fadeInPane {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Fix cuộn trang VQMM không bị thanh bottom bar che khuất */
#page-vqmm {
  padding-bottom: 120px !important;
}

/* ─── VÒNG QUAY MAY MẮN: HEADER & NÚT [?] XEM PHẦN THƯỞNG ─── */
.vqmm-wheel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 6px 0 12px;
  padding: 0 4px;
}
.vqmm-wheel-header-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 800;
  color: #f1f5f9;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.btn-vqmm-help {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.3), rgba(245, 158, 11, 0.2));
  border: 1px solid rgba(245, 158, 11, 0.55);
  padding: 5px 10px 5px 8px;
  border-radius: 20px;
  color: #fef08a;
  font-size: 11.5px;
  font-weight: 750;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.15);
  touch-action: manipulation;
}
.btn-vqmm-help:hover {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.45), rgba(245, 158, 11, 0.32));
  border-color: #fef08a;
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.35);
}
.btn-vqmm-help:active {
  transform: scale(0.95);
}
.vqmm-help-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #1e1b4b;
  font-size: 11px;
  font-weight: 900;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.6);
  line-height: 1;
}

/* ─── MODAL DANH SÁCH PHẦN THƯỞNG VÒNG QUAY (KHI BẤM DẤU ?) ─── */
.vqmm-prize-modal-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 56vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-right: 2px;
  margin-bottom: 12px;
}
.vqmm-pz-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 10px 12px;
  transition: transform 0.15s, border-color 0.15s;
  position: relative;
  overflow: hidden;
}
.vqmm-pz-card.featured {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(124, 58, 237, 0.12));
  border: 1.5px solid rgba(245, 158, 11, 0.6);
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.16);
}
.vqmm-pz-card.featured::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #fef08a, #f59e0b);
}
.vqmm-pz-icon-box {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}
.vqmm-pz-card.featured .vqmm-pz-icon-box {
  background: rgba(245, 158, 11, 0.22);
  border: 1px solid rgba(245, 158, 11, 0.4);
}
.vqmm-pz-info {
  flex: 1;
  min-width: 0;
}
.vqmm-pz-top {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 2px;
}
.vqmm-pz-idx {
  font-size: 9px;
  font-weight: 700;
  color: var(--t-4);
  font-family: var(--font-mono);
}
.vqmm-pz-name {
  font-size: 13.5px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.35;
  white-space: normal !important;
  word-break: break-word !important;
  overflow: visible !important;
}
.vqmm-pz-desc {
  font-size: 11px;
  color: var(--t-3);
  line-height: 1.35;
  margin-top: 2px;
  white-space: normal !important;
  word-break: break-word !important;
}
.vqmm-pz-rate {
  font-size: 9.5px;
  font-weight: 800;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 2px 6px;
  border-radius: 6px;
  flex-shrink: 0;
  white-space: nowrap;
}
.vqmm-pz-card.featured .vqmm-pz-rate {
  color: #fef08a;
  background: rgba(245, 158, 11, 0.18);
  border-color: rgba(245, 158, 11, 0.45);
}

/* Đảm bảo toàn bộ chữ hiển thị full 100%, không bao giờ bị cắt '...' */
.vqmm-hi-title, .vqmm-hi-name {
  font-size: 12.5px;
  font-weight: 700;
  color: #f1f5f9;
  white-space: normal !important;
  word-break: break-word !important;
  line-height: 1.35;
}
.vqmm-win-item-name {
  white-space: normal !important;
  word-break: break-word !important;
  line-height: 1.35;
  text-align: center;
}

/* Nút X đóng modal bo tròn phong cách hiện đại */
.btn-close-modal-round {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  touch-action: manipulation;
  flex-shrink: 0;
  padding: 0;
}
.btn-close-modal-round:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.45);
  color: #fca5a5;
}
.btn-close-modal-round:active {
  transform: scale(0.92);
}
.modal-handle-wrap {
  cursor: pointer;
}

/* ============================================================ */
/*  CHECKOUT & VOUCHER MODAL STYLES                             */
/* ============================================================ */
.checkout-modal-body {
  padding: 4px 0 16px;
}
.checkout-prod-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.checkout-prod-info {
  flex: 1;
  min-width: 0;
}
.checkout-prod-title {
  font-size: 14.5px;
  font-weight: 700;
  color: #f8fafc;
  line-height: 1.35;
  margin-bottom: 4px;
  word-break: break-word;
}
.checkout-prod-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}
.checkout-price-badge {
  font-size: 13.5px;
  font-weight: 700;
  color: #38bdf8;
}
.checkout-stock-badge {
  font-size: 11.5px;
  color: #94a3b8;
  background: rgba(148, 163, 184, 0.12);
  padding: 2px 7px;
  border-radius: 6px;
}
.checkout-qty-control {
  display: flex;
  align-items: center;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 3px;
  gap: 2px;
}
.btn-cqty {
  width: 28px;
  height: 28px;
  border: none;
  background: rgba(255, 255, 255, 0.06);
  color: #f8fafc;
  font-size: 16px;
  font-weight: 700;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s;
}
.btn-cqty:active {
  transform: scale(0.92);
  background: rgba(59, 130, 246, 0.3);
}
.cqty-num {
  min-width: 26px;
  text-align: center;
  font-weight: 700;
  font-size: 14px;
  color: #f8fafc;
}
.checkout-voucher-section {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 14px;
}
.checkout-sec-lbl {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  color: #cbd5e1;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}
.checkout-voucher-input-row {
  display: flex;
  gap: 8px;
}
.checkout-v-input {
  flex: 1;
  height: 40px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 10px;
  padding: 0 12px;
  color: #f8fafc;
  font-size: 13.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  outline: none;
  transition: border-color 0.2s;
}
.checkout-v-input:focus {
  border-color: #6366f1;
}
.btn-checkout-v-apply {
  height: 40px;
  padding: 0 16px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border: none;
  border-radius: 10px;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}
.btn-checkout-v-apply:active {
  transform: scale(0.96);
}
.checkout-voucher-hint {
  font-size: 11.5px;
  color: #94a3b8;
  margin-top: 6px;
  line-height: 1.4;
}
.checkout-voucher-res {
  margin-top: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.4;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.checkout-voucher-res.ok {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
}
.checkout-voucher-res.err {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #f87171;
}
.btn-cancel-vcode {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #f87171;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 5px;
  cursor: pointer;
}
.checkout-bal-alert {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
  font-size: 12.5px;
  padding: 10px 12px;
  border-radius: 10px;
  margin-bottom: 12px;
}
.checkout-receipt {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 14px;
}
.checkout-rec-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  color: #94a3b8;
  padding: 5px 0;
}
.checkout-rec-row.total {
  font-size: 15px;
  font-weight: 700;
  color: #f8fafc;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
  margin-top: 5px;
  padding-top: 8px;
}
.checkout-rec-row.bal {
  font-size: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  margin-top: 4px;
  padding-top: 6px;
}
.btn-checkout-buy {
  width: 100%;
  height: 48px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
  transition: all 0.2s;
}
.btn-checkout-buy:active {
  transform: scale(0.98);
}
.btn-checkout-buy.btn-dep-redirect {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
}
