/**
 * Stylesheet: Bầu Cua Tôm Cá Online (Điểm Ảo Giải Trí)
 * Thiết kế Compact & Mobile-First — Tối ưu hiển thị trọn vẹn trong 1 khung nhìn
 * Tác giả: Huỳnh Nguyễn Thành Đạt (thanhdat1204.io.vn)
 */

.bc-page-shell {
  max-width: 960px;
  margin: 0 auto;
  padding: 0.5rem 0.75rem 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-family: 'Be Vietnam Pro', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Ẩn mũi tên mặc định của input[type=number] để tiết kiệm diện tích trên mobile */
.bc-page-shell input[type="number"]::-webkit-outer-spin-button,
.bc-page-shell input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.bc-page-shell input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

/* =========================================================================
   1. KHU VỰC THÔNG TIN NGƯỜI CHƠI (COMPACT HUD TOPBAR)
   ========================================================================= */
.bc-player-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.65rem;
  background: var(--bg-card, rgba(15, 23, 42, 0.82));
  border: 1px solid var(--border-glass, rgba(255, 255, 255, 0.08));
  border-radius: 14px;
  padding: 0.55rem 0.85rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(12px);
}

.bc-player-identity {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.bc-avatar-wrap {
  position: relative;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}

.bc-avatar-img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #3b82f6;
}

.bc-online-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 10px;
  height: 10px;
  background: #10b981;
  border: 2px solid var(--bg-primary, #0f172a);
  border-radius: 50%;
}

.bc-player-meta {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.bc-player-name-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.bc-player-name {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--text-primary, #f8fafc);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 165px;
}

.bc-role-pill {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
}

.bc-role-pill.member {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.bc-role-pill.guest {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.35);
}

.bc-player-substats {
  font-size: 0.72rem;
  color: var(--text-muted, #94a3b8);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.bc-player-substats strong {
  color: var(--text-primary, #f8fafc);
  font-weight: 700;
}

/* Hộp hiển thị Điểm ảo gọn gàng */
.bc-points-Showcase {
  position: relative;
  display: flex;
  align-items: center;
}

.bc-points-card {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.16), rgba(217, 119, 6, 0.08));
  border: 1.5px solid rgba(245, 158, 11, 0.42);
  border-radius: 11px;
  padding: 0.32rem 0.75rem;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.bc-points-card.pulse-win {
  transform: scale(1.04);
  border-color: #10b981;
  box-shadow: 0 0 18px rgba(16, 185, 129, 0.38);
}

.bc-points-icon {
  font-size: 1.25rem;
  line-height: 1;
}

.bc-points-info {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.bc-points-label {
  font-size: 0.6rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #fbbf24;
}

.bc-points-value-wrap {
  display: flex;
  align-items: baseline;
  gap: 0.2rem;
}

.bc-points-value {
  font-size: 1.08rem;
  font-weight: 900;
  color: var(--text-primary, #ffffff);
  font-variant-numeric: tabular-nums;
  transition: transform 0.16s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.16s ease;
  display: inline-block;
}

.bc-points-value.jumping {
  color: #10b981;
  text-shadow: 0 0 14px rgba(16, 185, 129, 0.75);
  transform: scale(1.15);
}

.bc-points-unit {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted, #94a3b8);
}

.bc-points-delta {
  position: absolute;
  top: -10px;
  right: -8px;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  animation: bcFloatDelta 2s ease forwards;
  z-index: 5;
}

.bc-points-delta.plus {
  background: #10b981;
  color: #ffffff;
}

.bc-points-delta.minus {
  background: #ef4444;
  color: #ffffff;
}

@keyframes bcFloatDelta {
  0% { opacity: 0; transform: translateY(6px) scale(0.85); }
  20% { opacity: 1; transform: translateY(0) scale(1); }
  80% { opacity: 1; transform: translateY(-3px) scale(1); }
  100% { opacity: 0; transform: translateY(-10px) scale(0.9); }
}

/* Cụm nút công cụ Topbar */
.bc-topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.38rem;
  flex-wrap: wrap;
}

.bc-action-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: 0.38rem 0.65rem;
  border-radius: 9px;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-primary, #f8fafc);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-glass, rgba(255, 255, 255, 0.1));
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
}

[data-theme="light"] .bc-action-pill {
  background: rgba(15, 23, 42, 0.05);
  border-color: rgba(15, 23, 42, 0.12);
}

.bc-action-pill:hover {
  border-color: #3b82f6;
  background: rgba(59, 130, 246, 0.12);
}

.bc-action-pill.bonus {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.18), rgba(6, 182, 212, 0.18));
  border-color: rgba(16, 185, 129, 0.45);
  color: #34d399;
}

[data-theme="light"] .bc-action-pill.bonus {
  color: #059669;
}

.bc-action-pill.bonus.claimed {
  opacity: 0.6;
  filter: grayscale(0.35);
}

.bc-action-pill.relief {
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  border-color: transparent;
  color: #ffffff;
}

.bc-action-pill.icon-only {
  padding: 0.38rem 0.55rem;
}

/* =========================================================================
   2. BÀN CHƠI CHÍNH (COMPACT GAME BOARD CONTAINER)
   ========================================================================= */
.bc-board-container {
  background: var(--bg-card, rgba(15, 23, 42, 0.84));
  border: 1px solid var(--border-glass, rgba(255, 255, 255, 0.09));
  border-radius: 16px;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

/* Thanh trạng thái + kết quả 5 ván gần nhất */
.bc-status-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding: 0.35rem 0.65rem;
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
}

[data-theme="light"] .bc-status-strip {
  background: #f8fafc;
  border-color: rgba(15, 23, 42, 0.08);
}

.bc-stage-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-primary, #f8fafc);
  min-width: 0;
}

.bc-stage-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  flex-shrink: 0;
}

.bc-recent-strip {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  overflow-x: auto;
  scrollbar-width: none;
}
.bc-recent-strip::-webkit-scrollbar {
  display: none;
}

.bc-recent-empty {
  font-size: 0.7rem;
  color: var(--text-muted, #94a3b8);
}

.bc-recent-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.1rem;
  padding: 0.14rem 0.38rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.72rem;
  white-space: nowrap;
}

[data-theme="light"] .bc-recent-pill {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.1);
}

/* 2.1. Khu vực Đĩa Sứ Hoàng Gia 3D, 3 Viên Xúc Xắc 3D & Thông Báo Kết Quả */
.bc-center-stage {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: stretch;
  gap: 0.9rem;
  background:
    radial-gradient(circle at 22% 50%, rgba(245, 158, 11, 0.12), transparent 55%),
    linear-gradient(145deg, rgba(15, 23, 42, 0.92), rgba(30, 41, 59, 0.78));
  border: 1.5px solid rgba(251, 191, 36, 0.22);
  border-radius: 15px;
  padding: 0.7rem 0.95rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 8px 24px rgba(0, 0, 0, 0.22);
}

[data-theme="light"] .bc-center-stage {
  background:
    radial-gradient(circle at 22% 50%, rgba(251, 191, 36, 0.16), transparent 55%),
    linear-gradient(145deg, #fffbeb 0%, #f8fafc 55%, #eff6ff 100%);
  border-color: rgba(217, 119, 6, 0.28);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

.bc-bowl-arena {
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1100px;
}

.bc-plate-stage-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.48rem;
}

/* Đĩa sứ Bầu Cua 3D viền vàng kim chạm nổi, lòng đĩa nhung đỏ son hoàng gia */
.bc-plate-outer {
  position: relative;
  width: 304px;
  height: 138px;
  border-radius: 999px;
  background:
    linear-gradient(165deg, #fef9c3 0%, #fde047 22%, #f59e0b 58%, #b45309 88%, #78350f 100%);
  border: 2.5px solid #fef08a;
  box-shadow:
    0 14px 28px rgba(0, 0, 0, 0.42),
    0 5px 0 #78350f,
    0 7px 14px rgba(120, 53, 15, 0.45),
    inset 0 2px 5px rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  transform-style: preserve-3d;
}

[data-theme="light"] .bc-plate-outer {
  box-shadow:
    0 12px 24px rgba(120, 53, 15, 0.22),
    0 5px 0 #92400e,
    inset 0 2px 5px rgba(255, 255, 255, 0.95);
}

/* Hiệu ứng Xóc Đĩa 3D mạnh mẽ chân thực */
.bc-plate-outer.shaking {
  animation: bcXocDiaShake 0.11s infinite cubic-bezier(0.36, 0.07, 0.19, 0.97);
}

@keyframes bcXocDiaShake {
  0%   { transform: translate3d(0, 0, 0) rotateZ(0deg) rotateX(0deg); }
  20%  { transform: translate3d(-10px, -6px, 8px) rotateZ(-4.5deg) rotateX(6deg); }
  40%  { transform: translate3d(10px, 4px, -4px) rotateZ(4.5deg) rotateX(-5deg); }
  60%  { transform: translate3d(-8px, 5px, 6px) rotateZ(-3.5deg) rotateX(4deg); }
  80%  { transform: translate3d(8px, -5px, -3px) rotateZ(3.5deg) rotateX(-4deg); }
  100% { transform: translate3d(0, 0, 0) rotateZ(0deg) rotateX(0deg); }
}

.bc-plate-inner {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 999px;
  background:
    radial-gradient(ellipse at 50% 42%, #b91c1c 0%, #7f1d1d 58%, #450a0a 100%);
  box-shadow:
    inset 0 9px 20px rgba(0, 0, 0, 0.72),
    inset 0 -4px 10px rgba(251, 191, 36, 0.22),
    inset 0 0 0 2px rgba(253, 224, 71, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.85rem;
}

.bc-plate-ring {
  position: absolute;
  inset: 6px;
  border-radius: 999px;
  border: 1.5px dashed rgba(253, 224, 71, 0.48);
  pointer-events: none;
}

.bc-plate-center-emblem {
  position: absolute;
  width: 96px;
  height: 64px;
  border-radius: 999px;
  border: 1px solid rgba(253, 224, 71, 0.16);
  background: radial-gradient(circle, rgba(251, 191, 36, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.bc-dice-trio {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.4rem;
  z-index: 2;
}

/* Hộp 3D độc lập cho từng viên xúc xắc Bầu Cua */
.bc-die-slot {
  --cube-size: 52px;
  --cube-half: 26px;
  position: relative;
  width: var(--cube-size);
  height: var(--cube-size);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Bóng đổ thực tế của viên xúc xắc xuống lòng đĩa nhung đỏ */
.bc-die-floor-shadow {
  position: absolute;
  bottom: -9px;
  width: 48px;
  height: 15px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.25) 60%, transparent 100%);
  filter: blur(2px);
  z-index: 1;
  pointer-events: none;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.bc-cube-scene {
  position: relative;
  width: var(--cube-size);
  height: var(--cube-size);
  perspective: 600px;
  z-index: 2;
  filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.5));
}

/* Khung Gimbal giữ góc nhìn 3D Isometric ổn định để thấy rõ 3 mặt lập phương */
.bc-cube-gimbal {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transform: rotateX(-19deg) rotateY(20deg);
  transition: transform 0.45s ease;
}

.bc-cube-3d {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transform: rotateX(0deg) rotateY(0deg);
  transition: transform 0.68s cubic-bezier(0.22, 1, 0.36, 1);
}

.bc-cube-3d.spinning {
  animation: bcCubeTumble3D 0.24s infinite linear;
}

@keyframes bcCubeTumble3D {
  0%   { transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg); }
  50%  { transform: rotateX(180deg) rotateY(270deg) rotateZ(90deg); }
  100% { transform: rotateX(360deg) rotateY(540deg) rotateZ(180deg); }
}

/* Lõi đặc 3 trục bên trong khối xúc xắc giúp khối 3D đặc khít 100% không bao giờ hở cạnh */
.bc-cube-core {
  position: absolute;
  inset: 1px;
  background: #d97706;
  border-radius: 2px;
  pointer-events: none;
}
.bc-cube-core.core-x { transform: rotateY(90deg); }
.bc-cube-core.core-y { transform: rotateX(90deg); }
.bc-cube-core.core-z { transform: translateZ(0); }

.bc-cube-face {
  position: absolute;
  top: 0;
  left: 0;
  width: var(--cube-size);
  height: var(--cube-size);
  border-radius: 4px;
  background: linear-gradient(145deg, #ffffff 0%, #fffbeb 68%, #fef3c7 100%);
  border: 1.5px solid #d97706;
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.95),
    inset 0 0 6px rgba(217, 119, 6, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  user-select: none;
}

/* Đổ bóng ánh sáng 3D tự nhiên cho từng mặt khối lập phương ngà voi */
.bc-cube-face.face-top {
  background: linear-gradient(145deg, #ffffff 0%, #fefce8 100%);
  border-color: #f59e0b;
}
.bc-cube-face.face-left,
.bc-cube-face.face-right {
  background: linear-gradient(145deg, #fef3c7 0%, #fde68a 100%);
  border-color: #b45309;
}
.bc-cube-face.face-bottom,
.bc-cube-face.face-back {
  background: linear-gradient(145deg, #fde68a 0%, #fcd34d 100%);
  border-color: #92400e;
}

/* 6 mặt của khối lập phương 3D */
.bc-cube-face.face-front  { transform: rotateY(0deg) translateZ(var(--cube-half)); }
.bc-cube-face.face-back   { transform: rotateY(180deg) translateZ(var(--cube-half)); }
.bc-cube-face.face-right  { transform: rotateY(90deg) translateZ(var(--cube-half)); }
.bc-cube-face.face-left   { transform: rotateY(-90deg) translateZ(var(--cube-half)); }
.bc-cube-face.face-top    { transform: rotateX(90deg) translateZ(var(--cube-half)); }
.bc-cube-face.face-bottom { transform: rotateX(-90deg) translateZ(var(--cube-half)); }

/* 4 chấm son cổ truyền ở 4 góc mặt xúc xắc 3D */
.bc-face-pip {
  position: absolute;
  width: 3.5px;
  height: 3.5px;
  border-radius: 50%;
  background: #dc2626;
  opacity: 0.75;
  pointer-events: none;
}
.bc-face-pip.pip-tl { top: 3.5px; left: 3.5px; }
.bc-face-pip.pip-tr { top: 3.5px; right: 3.5px; }
.bc-face-pip.pip-bl { bottom: 3.5px; left: 3.5px; }
.bc-face-pip.pip-br { bottom: 3.5px; right: 3.5px; }

/* Lòng khắc chìm chứa SVG linh vật bên trong mỗi mặt xúc xắc 3D */
.bc-cube-face-inner {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffffff 0%, #fffbeb 75%, #fef3c7 100%);
  border: 1px solid rgba(217, 119, 6, 0.28);
  box-shadow: inset 0 1px 3px rgba(180, 83, 9, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
}

.bc-cube-face-inner svg {
  width: 100%;
  height: 100%;
  display: block;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.18));
}

/* Dải 3 nhãn kết quả tách rời ngay dưới đĩa sứ (rõ ràng, không đè lên xúc xắc 3D) */
.bc-dice-labels-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.bc-die-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.22rem;
  font-size: 0.7rem;
  font-weight: 800;
  color: #fef9c3;
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.94), rgba(30, 41, 59, 0.92));
  border: 1.5px solid var(--lbl-accent, #f59e0b);
  border-radius: 999px;
  padding: 3px 10px;
  line-height: 1.2;
  letter-spacing: 0.2px;
  white-space: nowrap;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.28);
  transition: all 0.25s ease;
}

[data-theme="light"] .bc-die-label {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.1);
}

.bc-die-slot.pop-3d .bc-cube-scene {
  animation: bcDiePop3D 0.52s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes bcDiePop3D {
  0%   { transform: translateY(-14px) scale(0.82); }
  55%  { transform: translateY(2px) scale(1.09); }
  100% { transform: translateY(0) scale(1); }
}

/* Bát sứ đỏ viền vàng 3D úp xóc đĩa */
.bc-bowl-cover {
  position: absolute;
  inset: -4px;
  border-radius: 999px;
  background:
    radial-gradient(ellipse at 35% 25%, #fca5a5 0%, #ef4444 26%, #b91c1c 68%, #450a0a 100%);
  border: 3px solid #fde047;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transform: translate3d(0, -54px, 45px) scale(0.88) rotateX(20deg);
  transition:
    opacity 0.26s ease,
    transform 0.36s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 10;
  overflow: hidden;
  box-shadow:
    0 16px 32px rgba(0, 0, 0, 0.65),
    inset 0 6px 16px rgba(255, 255, 255, 0.32),
    inset 0 -10px 20px rgba(0, 0, 0, 0.52);
}

.bc-bowl-shine {
  position: absolute;
  top: 8px;
  left: 18%;
  width: 45%;
  height: 26px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0));
  transform: rotate(-6deg);
  pointer-events: none;
}

.bc-bowl-cover.closed {
  opacity: 1;
  pointer-events: auto;
  transform: translate3d(0, 0, 24px) scale(1) rotateX(0deg);
}

.bc-bowl-cover.opening {
  opacity: 0;
  transform: translate3d(32px, -68px, 55px) scale(0.95) rotateZ(15deg) rotateX(24deg);
  transition:
    opacity 0.32s ease,
    transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.bc-bowl-rim-ring {
  position: absolute;
  inset: 6px;
  border-radius: 999px;
  border: 1.5px dashed rgba(253, 224, 71, 0.6);
  pointer-events: none;
}

.bc-bowl-dome {
  text-align: center;
  color: #fef08a;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.22rem;
  z-index: 2;
}

.bc-bowl-knob {
  width: 54px;
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #fef08a 0%, #f59e0b 55%, #92400e 100%);
  border: 1.5px solid #fef9c3;
  box-shadow:
    0 5px 12px rgba(0, 0, 0, 0.5),
    inset 0 2px 4px rgba(255, 255, 255, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
}

.bc-bowl-knob-inner {
  width: 24px;
  height: 5px;
  border-radius: 999px;
  background: rgba(120, 53, 15, 0.5);
}

.bc-bowl-motif {
  font-size: 0.74rem;
  font-weight: 800;
  color: #fde047;
  letter-spacing: 1.5px;
  line-height: 1;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.bc-bowl-pattern {
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.8px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

/* Khung thông báo kết quả bên phải xúc xắc */
.bc-stage-right-result {
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  padding: 0.7rem 0.95rem;
  min-height: 82px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

[data-theme="light"] .bc-stage-right-result {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(15, 23, 42, 0.1);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.bc-result-title {
  font-size: 0.88rem;
  font-weight: 900;
  color: var(--text-primary, #f8fafc);
  margin-bottom: 0.22rem;
}

.bc-result-desc {
  font-size: 0.76rem;
  color: var(--text-muted, #94a3b8);
  line-height: 1.45;
}

.bc-result-win { color: #10b981; }
.bc-result-lose { color: #f43f5e; }
.bc-result-even { color: #fbbf24; }

/* =========================================================================
   2.2. BÀN ĐẶT CƯỢC 6 Ô LINH VẬT 3D (CHUẨN BÀN 3x2 TRÊN MỌI MÀN HÌNH)
   ========================================================================= */
.bc-mascot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}

.bc-mascot-card {
  position: relative;
  background:
    radial-gradient(circle at 50% 42%, color-mix(in srgb, var(--mascot-accent, #3b82f6) 14%, transparent), transparent 68%),
    linear-gradient(165deg, rgba(30, 41, 59, 0.82), rgba(15, 23, 42, 0.95));
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 0.6rem 0.7rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.42rem;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
  overflow: hidden;
}

[data-theme="light"] .bc-mascot-card {
  background:
    radial-gradient(circle at 50% 42%, color-mix(in srgb, var(--mascot-accent, #3b82f6) 10%, transparent), transparent 68%),
    linear-gradient(165deg, #ffffff, #f8fafc);
  border-color: rgba(15, 23, 42, 0.12);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}

.bc-mascot-card:hover {
  border-color: var(--mascot-accent, #3b82f6);
  transform: translateY(-1px);
}

.bc-mascot-card.has-bet {
  border-color: var(--mascot-accent, #3b82f6);
  background:
    radial-gradient(circle at 50% 42%, color-mix(in srgb, var(--mascot-accent, #3b82f6) 24%, transparent), transparent 72%),
    linear-gradient(165deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.96));
  box-shadow: 0 0 0 1.5px var(--mascot-accent, #3b82f6), 0 8px 20px rgba(0, 0, 0, 0.25);
}

[data-theme="light"] .bc-mascot-card.has-bet {
  background:
    radial-gradient(circle at 50% 42%, color-mix(in srgb, var(--mascot-accent, #3b82f6) 16%, transparent), transparent 72%),
    linear-gradient(165deg, #ffffff, #f0f9ff);
}

.bc-mascot-card.winner-glow {
  border-color: #fbbf24 !important;
  box-shadow: 0 0 0 2px #fbbf24, 0 0 24px rgba(251, 191, 36, 0.45) !important;
  animation: bcWinnerPulse 0.75s ease infinite alternate;
}

@keyframes bcWinnerPulse {
  0% { transform: scale(1); }
  100% { transform: scale(1.018); }
}

/* Hàng trên của thẻ linh vật: Chấm màu + Tên + Số điểm đang đặt */
.bc-mascot-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem;
}

.bc-mascot-title-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.bc-mascot-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mascot-accent, #3b82f6);
  box-shadow: 0 0 8px var(--mascot-accent, #3b82f6);
  flex-shrink: 0;
}

.bc-mascot-name {
  margin: 0;
  font-size: 0.96rem;
  font-weight: 900;
  letter-spacing: 0.4px;
  color: var(--text-primary, #f8fafc);
}

.bc-mascot-badges {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.bc-hit-badge {
  font-size: 0.65rem;
  font-weight: 900;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
}

.bc-bet-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.18rem;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.12rem 0.48rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted, #94a3b8);
  font-variant-numeric: tabular-nums;
}

.bc-bet-coin-ic {
  font-size: 0.68rem;
  line-height: 1;
}

[data-theme="light"] .bc-bet-pill {
  background: rgba(15, 23, 42, 0.05);
  border-color: rgba(15, 23, 42, 0.08);
}

.bc-mascot-card.has-bet .bc-bet-pill {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.24), rgba(217, 119, 6, 0.16));
  border: 1px solid rgba(245, 158, 11, 0.55);
  color: #fbbf24;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.2);
}

[data-theme="light"] .bc-mascot-card.has-bet .bc-bet-pill {
  color: #b45309;
  background: #fef3c7;
}

/* Vùng chạm đặt nhanh trên hình linh vật 3D Medallion */
.bc-mascot-visual-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  cursor: pointer;
  padding: 0.2rem 0;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.bc-mascot-medallion {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.14), rgba(15, 23, 42, 0.55));
  border: 2px solid color-mix(in srgb, var(--mascot-accent, #3b82f6) 42%, rgba(255, 255, 255, 0.12));
  box-shadow:
    0 6px 14px rgba(0, 0, 0, 0.24),
    inset 0 2px 4px rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.38rem;
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.18s ease, box-shadow 0.18s ease;
}

[data-theme="light"] .bc-mascot-medallion {
  background: radial-gradient(circle at 32% 28%, #ffffff, #f1f5f9);
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08), inset 0 2px 4px #ffffff;
}

.bc-mascot-card.has-bet .bc-mascot-medallion {
  border-color: var(--mascot-accent, #3b82f6);
  box-shadow: 0 0 16px color-mix(in srgb, var(--mascot-accent, #3b82f6) 38%, transparent);
}

.bc-mascot-visual-zone:hover .bc-mascot-medallion {
  transform: scale(1.08) translateY(-2px);
}

.bc-mascot-visual-zone:active .bc-mascot-medallion {
  transform: scale(0.95);
}

.bc-mascot-art {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bc-mascot-art svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.22));
}

.bc-tap-hint {
  font-size: 0.64rem;
  font-weight: 700;
  color: var(--text-muted, #64748b);
}

/* Hiệu ứng phỉnh bay lên khi chạm đặt cược */
.bc-tap-float-chip {
  position: absolute;
  top: 38%;
  left: 50%;
  transform: translate(-50%, 0);
  padding: 2px 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 900;
  pointer-events: none;
  z-index: 15;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
  animation: bcTapChipPop 0.72s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes bcTapChipPop {
  0%   { opacity: 0; transform: translate(-50%, 8px) scale(0.8); }
  25%  { opacity: 1; transform: translate(-50%, -6px) scale(1.05); }
  100% { opacity: 0; transform: translate(-50%, -26px) scale(0.92); }
}

/* Bộ nút tăng giảm & nhập điểm từng ô */
.bc-mascot-controls {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 30px;
  gap: 0.3rem;
  align-items: center;
}

.bc-step-btn {
  height: 28px;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-primary, #f8fafc);
  font-size: 0.98rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: all 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

[data-theme="light"] .bc-step-btn {
  background: #e2e8f0;
  border-color: #cbd5e1;
  color: #0f172a;
}

.bc-step-btn:hover,
.bc-step-btn:active {
  background: var(--mascot-accent, #3b82f6);
  border-color: transparent;
  color: #ffffff;
}

.bc-mascot-input {
  width: 100%;
  height: 28px;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(15, 23, 42, 0.72);
  color: var(--text-primary, #ffffff);
  text-align: center;
  font-size: 0.78rem;
  font-weight: 800;
  font-family: inherit;
  padding: 0 2px;
  outline: none;
}

[data-theme="light"] .bc-mascot-input {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #0f172a;
}

.bc-mascot-input:focus {
  border-color: var(--mascot-accent, #3b82f6);
}

/* =========================================================================
   2.3. THANH ĐIỀU KHIỂN CƯỢC & NÚT XÁC NHẬN / BẮT ĐẦU LẮC
   ========================================================================= */
.bc-control-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.65rem;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 13px;
  padding: 0.6rem 0.8rem;
}

[data-theme="light"] .bc-control-bar {
  background: #f8fafc;
  border-color: rgba(15, 23, 42, 0.1);
}

.bc-chip-selector-group {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.bc-chip-group-label {
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--text-muted, #94a3b8);
  white-space: nowrap;
}

.bc-chips-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}
.bc-chips-row::-webkit-scrollbar {
  display: none;
}

.bc-chip-btn {
  position: relative;
  padding: 0.36rem 0.68rem;
  border-radius: 999px;
  border: 1.5px dashed rgba(255, 255, 255, 0.25);
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.95));
  color: var(--text-primary, #f8fafc);
  font-size: 0.75rem;
  font-weight: 900;
  cursor: pointer;
  transition: all 0.16s cubic-bezier(0.34, 1.56, 0.64, 1);
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.25), inset 0 1px 1px rgba(255, 255, 255, 0.15);
}

[data-theme="light"] .bc-chip-btn {
  background: linear-gradient(145deg, #ffffff, #f1f5f9);
  border-color: #94a3b8;
  color: #0f172a;
  box-shadow: 0 2px 5px rgba(15, 23, 42, 0.08);
}

.bc-chip-btn:hover {
  transform: translateY(-2px);
}

.bc-chip-btn.active {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  border: 1.5px solid #fef08a;
  color: #ffffff;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 5px 14px rgba(245, 158, 11, 0.42), inset 0 1px 2px rgba(255, 255, 255, 0.5);
}

.bc-custom-chip-box {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.6);
  flex-shrink: 0;
}

[data-theme="light"] .bc-custom-chip-box {
  background: #ffffff;
  border-color: #cbd5e1;
}

.bc-chip-step {
  width: 24px;
  height: 26px;
  border: none;
  background: transparent;
  color: var(--text-primary, #f8fafc);
  font-weight: 800;
  cursor: pointer;
  padding: 0;
}

.bc-custom-chip-input {
  width: 54px;
  height: 26px;
  border: none;
  background: transparent;
  color: #fbbf24;
  text-align: center;
  font-size: 0.74rem;
  font-weight: 800;
  outline: none;
  padding: 0;
}

[data-theme="light"] .bc-custom-chip-input {
  color: #d97706;
}

/* Cụm tổng cược & nút bấm */
.bc-action-summary-group {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.bc-total-bet-box {
  display: flex;
  flex-direction: column;
  padding-right: 0.65rem;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  line-height: 1.15;
}

[data-theme="light"] .bc-total-bet-box {
  border-right-color: rgba(15, 23, 42, 0.12);
}

.bc-total-bet-meta {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.bc-total-bet-label {
  font-size: 0.62rem;
  font-weight: 800;
  color: var(--text-muted, #94a3b8);
}

.bc-confirm-status {
  font-size: 0.6rem;
  font-weight: 700;
  padding: 0.08rem 0.38rem;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.16);
  color: #94a3b8;
}

.bc-confirm-status.confirmed {
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
}

.bc-total-bet-val-wrap {
  display: flex;
  align-items: baseline;
  gap: 0.2rem;
}

.bc-total-bet-val {
  font-size: 1.08rem;
  font-weight: 900;
  color: #fbbf24;
  font-variant-numeric: tabular-nums;
}

[data-theme="light"] .bc-total-bet-val {
  color: #d97706;
}

.bc-total-bet-unit {
  font-size: 0.68rem;
  color: var(--text-muted, #94a3b8);
  font-weight: 700;
}

.bc-main-buttons {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.bc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.32rem;
  padding: 0.5rem 0.8rem;
  border-radius: 10px;
  font-size: 0.78rem;
  font-weight: 800;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.18s ease;
  font-family: inherit;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}

.bc-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

.bc-btn-secondary {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--text-primary, #f8fafc);
}

[data-theme="light"] .bc-btn-secondary {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #0f172a;
}

.bc-btn-confirm {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  box-shadow: 0 3px 10px rgba(16, 185, 129, 0.25);
}

.bc-btn-confirm.is-confirmed {
  background: linear-gradient(135deg, #059669, #047857);
  box-shadow: 0 0 0 2px #34d399;
}

.bc-btn-roll {
  background: linear-gradient(135deg, #f59e0b 0%, #ea580c 55%, #dc2626 100%);
  border: 1px solid rgba(254, 240, 138, 0.55);
  color: #ffffff;
  padding: 0.56rem 1.15rem;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.3px;
  box-shadow:
    0 5px 16px rgba(234, 88, 12, 0.42),
    0 2px 0 #9a3412,
    inset 0 1px 1px rgba(255, 255, 255, 0.45);
}

.bc-btn-roll:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow:
    0 7px 20px rgba(234, 88, 12, 0.55),
    0 2px 0 #9a3412,
    inset 0 1px 1px rgba(255, 255, 255, 0.55);
}

.bc-btn-roll:active:not(:disabled) {
  transform: translateY(1px);
}

/* =========================================================================
   3. KHU VỰC LỊCH SỬ VÁN CHƠI & LỊCH SỬ ĐIỂM (GỌN GÀNG)
   ========================================================================= */
.bc-history-section {
  background: var(--bg-card, rgba(15, 23, 42, 0.78));
  border: 1px solid var(--border-glass, rgba(255, 255, 255, 0.08));
  border-radius: 15px;
  padding: 0.75rem 0.9rem;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.14);
}

.bc-history-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--border-glass, rgba(255, 255, 255, 0.08));
}

.bc-history-tabs {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.bc-hist-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.38rem 0.75rem;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted, #94a3b8);
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
}

[data-theme="light"] .bc-hist-tab {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.bc-hist-tab.active {
  background: rgba(59, 130, 246, 0.16);
  border-color: #3b82f6;
  color: var(--text-primary, #ffffff);
}

[data-theme="light"] .bc-hist-tab.active {
  color: #1d4ed8;
}

.bc-history-note {
  font-size: 0.7rem;
  color: var(--text-muted, #94a3b8);
}

.bc-table-responsive {
  width: 100%;
  overflow-x: auto;
}

.bc-history-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.76rem;
}

.bc-history-table th {
  text-align: left;
  padding: 0.48rem 0.55rem;
  font-size: 0.68rem;
  text-transform: uppercase;
  color: var(--text-muted, #94a3b8);
  border-bottom: 1px solid var(--border-glass, rgba(255, 255, 255, 0.08));
  white-space: nowrap;
}

.bc-history-table td {
  padding: 0.5rem 0.55rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-primary, #f8fafc);
  vertical-align: middle;
}

[data-theme="light"] .bc-history-table td {
  border-bottom-color: rgba(15, 23, 42, 0.06);
}

.bc-history-table .text-right {
  text-align: right;
}

.bc-empty-row {
  text-align: center;
  padding: 1.25rem !important;
  color: var(--text-muted, #94a3b8) !important;
}

.bc-hist-dice-group {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.bc-hist-die-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  padding: 0.12rem 0.38rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.07);
  font-size: 0.7rem;
  font-weight: 700;
  white-space: nowrap;
}

[data-theme="light"] .bc-hist-die-chip {
  background: #f1f5f9;
}

.bc-profit-pos { color: #10b981; font-weight: 800; }
.bc-profit-neg { color: #f43f5e; font-weight: 800; }
.bc-profit-zero { color: #fbbf24; font-weight: 700; }

/* =========================================================================
   4. MODAL HƯỚNG DẪN CHƠI
   ========================================================================= */
.bc-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.75);
  backdrop-filter: blur(5px);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
}

.bc-modal-card {
  width: 100%;
  max-width: 520px;
  max-height: 86vh;
  overflow-y: auto;
  background: var(--bg-card, #0f172a);
  border: 1px solid var(--border-glass, rgba(255, 255, 255, 0.14));
  border-radius: 16px;
  padding: 1rem 1.15rem;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5);
}

.bc-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--border-glass, rgba(255, 255, 255, 0.1));
}

.bc-modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.bc-modal-icon { font-size: 1.2rem; }

.bc-modal-title {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--text-primary, #ffffff);
}

.bc-modal-close {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  border: none;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted, #94a3b8);
  cursor: pointer;
}

.bc-modal-body {
  padding: 0.75rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--text-secondary, #cbd5e1);
}

.bc-guide-block h4 {
  margin: 0 0 0.25rem;
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--text-primary, #ffffff);
}

.bc-guide-block p { margin: 0 0 0.35rem; }
.bc-guide-block ul { margin: 0; padding-left: 1.1rem; }

.bc-payout-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.45rem;
  margin-top: 0.3rem;
}

.bc-payout-item {
  padding: 0.5rem 0.65rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.bc-payout-item strong {
  font-size: 0.76rem;
  color: var(--text-primary, #ffffff);
}

.bc-payout-item span { font-size: 0.72rem; }

.bc-modal-footer {
  display: flex;
  justify-content: flex-end;
  padding-top: 0.65rem;
  border-top: 1px solid var(--border-glass, rgba(255, 255, 255, 0.1));
}

/* =========================================================================
   5. TỐI ƯU MOBILE & TABLET (SIÊU GỌN, THAO TÁC 1 CHẠM)
   ========================================================================= */
@media (max-width: 768px) {
  .bc-page-shell {
    padding: 0.35rem 0.45rem 1.5rem;
    gap: 0.55rem;
  }

  /* Topbar gọn 2 hàng trên điện thoại */
  .bc-player-topbar {
    padding: 0.45rem 0.6rem;
    gap: 0.45rem;
    border-radius: 12px;
  }

  .bc-player-identity {
    flex: 1 1 auto;
    gap: 0.5rem;
  }

  .bc-avatar-wrap,
  .bc-avatar-img {
    width: 34px;
    height: 34px;
  }

  .bc-player-name {
    font-size: 0.82rem;
    max-width: 120px;
  }

  .bc-player-substats {
    font-size: 0.66rem;
  }

  .bc-points-card {
    padding: 0.25rem 0.55rem;
    gap: 0.35rem;
    border-radius: 9px;
  }

  .bc-points-icon {
    font-size: 1.05rem;
  }

  .bc-points-value {
    font-size: 0.95rem;
  }

  .bc-topbar-actions {
    width: 100%;
    display: flex;
    justify-content: space-between;
    gap: 0.3rem;
    padding-top: 0.3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
  }

  .bc-action-pill {
    flex: 1;
    padding: 0.32rem 0.4rem;
    font-size: 0.7rem;
    border-radius: 8px;
  }

  .bc-action-pill.icon-only {
    flex: 0 0 34px;
    padding: 0.32rem;
  }

  /* Bàn chơi gọn sát viền */
  .bc-board-container {
    padding: 0.5rem;
    gap: 0.5rem;
    border-radius: 14px;
  }

  .bc-status-strip {
    padding: 0.28rem 0.5rem;
    gap: 0.35rem;
  }

  .bc-stage-badge {
    font-size: 0.7rem;
  }

  /* Khu vực Xúc xắc & Kết quả trên Mobile */
  .bc-center-stage {
    grid-template-columns: 1fr;
    gap: 0.45rem;
    padding: 0.5rem 0.6rem;
    text-align: center;
  }

  .bc-plate-outer {
    width: 266px;
    height: 118px;
    padding: 7px;
  }

  .bc-dice-trio {
    gap: 1.05rem;
  }

  .bc-die-slot {
    --cube-size: 46px;
    --cube-half: 23px;
  }

  .bc-die-floor-shadow {
    width: 44px;
    height: 14px;
  }

  .bc-cube-face-inner {
    width: 34px;
    height: 34px;
  }

  .bc-dice-labels-bar {
    gap: 0.45rem;
  }

  .bc-die-label {
    min-width: 56px;
    font-size: 0.62rem;
    padding: 2px 8px;
  }

  .bc-stage-right-result {
    min-height: auto;
    padding: 0.45rem 0.6rem;
  }

  .bc-result-title {
    font-size: 0.78rem;
  }

  .bc-result-desc {
    font-size: 0.7rem;
  }

  /* Bàn 6 linh vật giữ chuẩn 3 cột x 2 hàng trên điện thoại */
  .bc-mascot-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.4rem;
  }

  .bc-mascot-card {
    padding: 0.4rem 0.4rem;
    gap: 0.28rem;
    border-radius: 12px;
  }

  .bc-mascot-name {
    font-size: 0.76rem;
  }

  .bc-mascot-dot {
    width: 6px;
    height: 6px;
  }

  .bc-bet-pill {
    font-size: 0.62rem;
    padding: 0.08rem 0.34rem;
  }

  .bc-bet-coin-ic {
    display: none;
  }

  .bc-hit-badge {
    font-size: 0.58rem;
    padding: 0.06rem 0.28rem;
  }

  .bc-mascot-medallion {
    width: 52px;
    height: 52px;
    padding: 3px;
  }

  .bc-mascot-art {
    padding: 0.22rem;
  }

  .bc-tap-hint {
    display: none;
  }

  .bc-mascot-controls {
    grid-template-columns: 22px minmax(0, 1fr) 22px;
    gap: 2px;
  }

  .bc-step-btn {
    height: 24px;
    border-radius: 6px;
    font-size: 0.85rem;
  }

  .bc-mascot-input {
    height: 24px;
    border-radius: 6px;
    font-size: 0.7rem;
  }

  /* Thanh điều khiển sticky dưới đáy màn hình điện thoại để bấm bằng 1 tay */
  .bc-control-bar {
    position: sticky;
    bottom: 0.35rem;
    z-index: 25;
    padding: 0.48rem 0.55rem;
    gap: 0.45rem;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(14px);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(59, 130, 246, 0.28);
  }

  [data-theme="light"] .bc-control-bar {
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 -4px 18px rgba(15, 23, 42, 0.12);
  }

  .bc-chip-selector-group {
    width: 100%;
    flex-wrap: nowrap;
    gap: 0.3rem;
  }

  .bc-chip-group-label {
    font-size: 0.68rem;
  }

  .bc-chips-row {
    flex: 1;
    gap: 0.28rem;
  }

  .bc-chip-btn {
    padding: 0.26rem 0.5rem;
    font-size: 0.68rem;
  }

  .bc-action-summary-group {
    width: 100%;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
  }

  .bc-total-bet-box {
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: none;
    padding-right: 0.55rem;
    padding-bottom: 0;
    flex-direction: column;
    align-items: flex-start;
  }

  .bc-total-bet-val {
    font-size: 0.9rem;
  }

  .bc-main-buttons {
    flex: 1;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.38rem;
  }

  .bc-btn {
    padding: 0.52rem 0.65rem;
    font-size: 0.78rem;
    border-radius: 9px;
  }

  .bc-btn-icon-sm .bc-btn-subtext {
    display: none;
  }

  .bc-btn-icon-sm {
    padding: 0.52rem 0.65rem;
  }

  /* Ẩn cột phụ trong bảng lịch sử trên màn hình nhỏ */
  .col-hide-xs {
    display: none;
  }

  .bc-history-section {
    padding: 0.6rem;
  }

  .bc-history-table th,
  .bc-history-table td {
    padding: 0.4rem 0.35rem;
    font-size: 0.68rem;
  }
}

/* Màn hình siêu nhỏ (<= 360px) */
@media (max-width: 360px) {
  .bc-pill-label {
    display: none;
  }

  .bc-mascot-medallion {
    width: 44px;
    height: 44px;
  }

  .bc-mascot-name {
    font-size: 0.72rem;
  }
}

/* =========================================================================
   NÚT & MODAL ĐỔI ĐIỂM SANG SỐ DƯ VÍ WEB + QUẢN TRỊ ADMIN
   ========================================================================= */
.bc-action-pill.exchange {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.22), rgba(37, 99, 235, 0.32));
  border-color: rgba(59, 130, 246, 0.55);
  color: #60a5fa;
  font-weight: 800;
}

[data-theme="light"] .bc-action-pill.exchange {
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  border-color: #60a5fa;
  color: #1d4ed8;
}

.bc-action-pill.exchange:hover {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  border-color: #3b82f6;
}

.bc-action-pill.admin-cfg {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(217, 119, 6, 0.28));
  border-color: rgba(245, 158, 11, 0.55);
  color: #fbbf24;
  font-weight: 800;
}

[data-theme="light"] .bc-action-pill.admin-cfg {
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
  border-color: #f59e0b;
  color: #b45309;
}

.bc-role-pill.exchange {
  background: rgba(59, 130, 246, 0.16);
  color: #60a5fa;
}

.bc-role-pill.admin {
  background: rgba(245, 158, 11, 0.18);
  color: #fbbf24;
}

.bc-exchange-card {
  max-width: 560px;
}

.bc-admin-modal-card {
  max-width: 780px;
}

.bc-exchange-rate-sub {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: #10b981;
  margin-top: 2px;
}

.bc-exchange-guest-notice {
  text-align: center;
  padding: 1.5rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed var(--bc-border);
  border-radius: 12px;
}

.bc-exchange-wallets-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}

.bc-ex-wallet-box {
  padding: 0.65rem 0.8rem;
  border-radius: 11px;
  border: 1px solid var(--bc-border);
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

[data-theme="light"] .bc-ex-wallet-box {
  background: #f8fafc;
}

.bc-ex-wallet-box.points {
  border-color: rgba(245, 158, 11, 0.38);
}

.bc-ex-wallet-box.vnd {
  border-color: rgba(16, 185, 129, 0.38);
}

.bc-ex-wallet-lbl {
  font-size: 0.7rem;
  color: var(--bc-text-muted);
  font-weight: 600;
}

.bc-ex-wallet-val {
  font-size: 1.05rem;
  font-weight: 900;
  color: #fbbf24;
}

[data-theme="light"] .bc-ex-wallet-val {
  color: #d97706;
}

.bc-ex-wallet-val.vnd {
  color: #10b981;
}

.bc-ex-section-label {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--bc-text-main);
  margin-bottom: 0.45rem;
}

.bc-ex-presets-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
  margin-bottom: 0.8rem;
}

.bc-ex-preset-btn {
  padding: 0.48rem 0.5rem;
  border-radius: 9px;
  border: 1.5px solid var(--bc-border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--bc-text-main);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  transition: all 0.16s ease;
}

[data-theme="light"] .bc-ex-preset-btn {
  background: #f8fafc;
}

.bc-ex-preset-btn strong {
  font-size: 0.76rem;
  font-weight: 800;
}

.bc-ex-preset-btn span {
  font-size: 0.68rem;
  font-weight: 700;
  color: #10b981;
}

.bc-ex-preset-btn:hover,
.bc-ex-preset-btn.active {
  border-color: #3b82f6;
  background: rgba(59, 130, 246, 0.14);
  transform: translateY(-1px);
}

.bc-ex-preset-btn.max {
  grid-column: span 2;
  border-color: rgba(245, 158, 11, 0.45);
}

.bc-ex-custom-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0.8rem;
  border-radius: 11px;
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.25);
  margin-bottom: 0.55rem;
  flex-wrap: wrap;
}

.bc-ex-stepper-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.bc-ex-stepper-wrap label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--bc-text-muted);
}

.bc-ex-stepper {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.bc-ex-input {
  width: 110px;
  height: 30px;
  border-radius: 7px;
  border: 1px solid var(--bc-border);
  background: var(--bc-bg-card);
  color: var(--bc-text-main);
  font-weight: 800;
  font-size: 0.82rem;
  text-align: center;
}

.bc-ex-receive-preview {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.bc-ex-receive-preview span {
  font-size: 0.7rem;
  color: var(--bc-text-muted);
}

.bc-ex-receive-preview strong {
  font-size: 1.18rem;
  font-weight: 900;
  color: #10b981;
}

.bc-ex-limit-note {
  font-size: 0.72rem;
  color: var(--bc-text-muted);
  margin-bottom: 0.65rem;
}

/* =========================================================================
   THANH TRẠNG THÁI LỊCH SỬ TRONG NGÀY & HIỆU ỨNG CẬP NHẬT TRỰC TIẾP
   ========================================================================= */
.bc-hist-count-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.25);
  color: #60a5fa;
  font-size: 0.66rem;
  font-weight: 900;
}

.bc-hist-tab.active .bc-hist-count-pill {
  background: #3b82f6;
  color: #ffffff;
}

.bc-history-live-meta {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.bc-daily-reset-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.28);
  color: #34d399;
  font-size: 0.69rem;
  font-weight: 700;
}

[data-theme="light"] .bc-daily-reset-badge {
  background: #ecfdf5;
  border-color: #6ee7b7;
  color: #047857;
}

.bc-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: bcPulseDot 1.6s ease-in-out infinite;
}

@keyframes bcPulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.55; }
}

.bc-hist-refresh-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  padding: 0.3rem 0.68rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary, #f8fafc);
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.16s ease;
}

[data-theme="light"] .bc-hist-refresh-btn {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #0f172a;
}

.bc-hist-refresh-btn:hover {
  border-color: #3b82f6;
  background: rgba(59, 130, 246, 0.14);
}

.bc-refresh-ic.spinning {
  display: inline-block;
  animation: bcSpin360 0.65s linear infinite;
}

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

.bc-row-flash-new {
  animation: bcRowHighlight 1.6s ease-out;
}

@keyframes bcRowHighlight {
  0% { background: rgba(16, 185, 129, 0.24); }
  100% { background: transparent; }
}

/* =========================================================================
   GIAO DIỆN TRUNG TÂM QUẢN TRỊ ĐỔI ĐIỂM & VÍ BẦU CUA (ADMIN) - REDESIGN
   ========================================================================= */
.bc-admin-modal-card {
  max-width: 980px;
  max-height: 90vh;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: linear-gradient(165deg, rgba(15, 23, 42, 0.98), rgba(9, 14, 28, 0.99));
  border: 1px solid rgba(245, 158, 11, 0.32);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.06);
}

[data-theme="light"] .bc-admin-modal-card {
  background: #f8fafc;
  border-color: rgba(245, 158, 11, 0.45);
  box-shadow: 0 25px 55px rgba(15, 23, 42, 0.22);
}

.bc-adm-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.95rem 1.25rem;
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.14) 0%, rgba(59, 130, 246, 0.1) 60%, transparent 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

[data-theme="light"] .bc-adm-modal-header {
  background: linear-gradient(90deg, #fffbeb 0%, #eff6ff 70%, #ffffff 100%);
  border-bottom-color: #e2e8f0;
}

.bc-adm-header-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.bc-adm-crown-badge {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  box-shadow: 0 6px 16px rgba(245, 158, 11, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.bc-adm-title-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.bc-adm-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.16rem 0.58rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
}

.bc-adm-live-pill.open {
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
}

[data-theme="light"] .bc-adm-live-pill.open {
  background: #d1fae5;
  color: #047857;
}

.bc-adm-live-pill.closed {
  background: rgba(244, 63, 94, 0.18);
  border: 1px solid rgba(244, 63, 94, 0.4);
  color: #fb7185;
}

.bc-adm-subtitle-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  font-size: 0.74rem;
  color: var(--text-muted, #94a3b8);
  margin-top: 2px;
}

.bc-adm-subtitle-row strong {
  color: #fbbf24;
  font-weight: 800;
}

[data-theme="light"] .bc-adm-subtitle-row strong {
  color: #b45309;
}

.bc-adm-header-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}

.bc-adm-icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.38rem 0.72rem;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary, #f8fafc);
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

[data-theme="light"] .bc-adm-icon-btn {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #0f172a;
}

.bc-adm-icon-btn:hover {
  border-color: #3b82f6;
  background: rgba(59, 130, 246, 0.15);
}

.bc-adm-modal-body {
  padding: 1rem 1.25rem 1.25rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

/* 4 Thẻ KPI Thống Kê */
.bc-adm-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
}

.bc-adm-kpi-card {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.75rem 0.85rem;
  border-radius: 13px;
  background: rgba(30, 41, 59, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .bc-adm-kpi-card {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.bc-adm-kpi-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
  background: rgba(59, 130, 246, 0.15);
}

.bc-adm-kpi-card.kpi-approved .bc-adm-kpi-icon { background: rgba(16, 185, 129, 0.16); }
.bc-adm-kpi-card.kpi-pending .bc-adm-kpi-icon  { background: rgba(245, 158, 11, 0.18); }
.bc-adm-kpi-card.kpi-points .bc-adm-kpi-icon   { background: rgba(59, 130, 246, 0.18); }
.bc-adm-kpi-card.kpi-vnd .bc-adm-kpi-icon      { background: rgba(16, 185, 129, 0.2); }

.bc-adm-kpi-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.bc-adm-kpi-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-muted, #94a3b8);
}

.bc-adm-kpi-value {
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--text-primary, #f8fafc);
  line-height: 1.25;
  font-variant-numeric: tabular-nums;
}

.bc-adm-kpi-card.kpi-pending .bc-adm-kpi-value { color: #fbbf24; }
.bc-adm-kpi-card.kpi-vnd .bc-adm-kpi-value     { color: #10b981; }

[data-theme="light"] .bc-adm-kpi-card.kpi-pending .bc-adm-kpi-value { color: #d97706; }

.bc-adm-kpi-sub {
  font-size: 0.65rem;
  color: var(--text-muted, #64748b);
}

/* Lưới 2 cột: Cấu hình & Điều chỉnh điểm */
.bc-adm-workspace-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.bc-adm-panel {
  background: rgba(30, 41, 59, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  padding: 0.9rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

[data-theme="light"] .bc-adm-panel {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

.bc-adm-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

[data-theme="light"] .bc-adm-panel-head {
  border-bottom-color: #f1f5f9;
}

.bc-adm-panel-title {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.bc-adm-panel-ic {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: rgba(59, 130, 246, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.98rem;
  flex-shrink: 0;
}

.bc-adm-panel-title h4 {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--text-primary, #f8fafc);
}

.bc-adm-panel-title p {
  margin: 1px 0 0;
  font-size: 0.69rem;
  color: var(--text-muted, #94a3b8);
}

/* Hộp công thức quy đổi trực quan */
.bc-adm-formula-card {
  padding: 0.6rem 0.75rem;
  border-radius: 11px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(16, 185, 129, 0.1));
  border: 1px solid rgba(59, 130, 246, 0.28);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

[data-theme="light"] .bc-adm-formula-card {
  background: linear-gradient(135deg, #eff6ff, #ecfdf5);
  border-color: #93c5fd;
}

.bc-adm-formula-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.bc-adm-formula-lbl {
  font-size: 0.63rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--text-muted, #94a3b8);
}

.bc-adm-preset-pills {
  display: flex;
  align-items: center;
  gap: 0.28rem;
}

.bc-adm-preset-chip {
  padding: 0.15rem 0.48rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(15, 23, 42, 0.55);
  color: var(--text-primary, #f8fafc);
  font-size: 0.65rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s ease;
}

[data-theme="light"] .bc-adm-preset-chip {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #1e293b;
}

.bc-adm-preset-chip:hover {
  background: #3b82f6;
  border-color: #3b82f6;
  color: #ffffff;
}

.bc-adm-formula-Equation {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  font-size: 0.94rem;
  font-weight: 900;
  padding: 0.15rem 0;
}

.bc-adm-formula-Equation .pts-part { color: #fbbf24; }
.bc-adm-formula-Equation .arrow-part { color: var(--text-muted, #94a3b8); }
.bc-adm-formula-Equation .vnd-part { color: #10b981; }

[data-theme="light"] .bc-adm-formula-Equation .pts-part { color: #d97706; }
[data-theme="light"] .bc-adm-formula-Equation .vnd-part { color: #059669; }

.bc-adm-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.bc-adm-field {
  display: flex;
  flex-direction: column;
  gap: 0.24rem;
}

.bc-adm-field label {
  font-size: 0.69rem;
  font-weight: 700;
  color: var(--text-muted, #94a3b8);
}

.bc-adm-input-group {
  position: relative;
  display: flex;
  align-items: center;
}

.bc-adm-input {
  width: 100%;
  height: 35px;
  padding: 0 0.65rem;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(15, 23, 42, 0.72);
  color: var(--text-primary, #f8fafc);
  font-size: 0.78rem;
  font-weight: 700;
  outline: none;
  transition: border-color 0.15s ease;
}

[data-theme="light"] .bc-adm-input {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #0f172a;
}

.bc-adm-input:focus {
  border-color: #3b82f6;
}

.bc-adm-input-group .bc-adm-input {
  padding-right: 3.2rem;
}

.bc-adm-unit {
  position: absolute;
  right: 0.55rem;
  font-size: 0.66rem;
  font-weight: 800;
  color: #fbbf24;
  pointer-events: none;
}

.bc-adm-unit.vnd {
  color: #10b981;
}

/* Chọn & Xem trước ví thành viên */
.bc-adm-member-selector-box {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.bc-adm-search-mini {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  height: 33px;
  padding: 0 0.6rem;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(15, 23, 42, 0.55);
}

[data-theme="light"] .bc-adm-search-mini {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.bc-adm-search-mini input {
  width: 100%;
  border: none;
  background: transparent;
  color: var(--text-primary, #f8fafc);
  font-size: 0.75rem;
  outline: none;
}

[data-theme="light"] .bc-adm-search-mini input {
  color: #0f172a;
}

.bc-adm-member-wallet-card {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.55);
  border: 1px dashed rgba(245, 158, 11, 0.35);
}

[data-theme="light"] .bc-adm-member-wallet-card {
  background: #fffbeb;
  border-color: #fcd34d;
}

.bc-adm-mw-item {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.bc-adm-mw-item span {
  font-size: 0.63rem;
  color: var(--text-muted, #94a3b8);
}

.bc-adm-mw-item strong {
  font-size: 0.82rem;
  font-weight: 900;
  color: var(--text-primary, #f8fafc);
}

.bc-adm-mw-item strong.pts { color: #fbbf24; }
.bc-adm-mw-item strong.vnd { color: #10b981; }

[data-theme="light"] .bc-adm-mw-item strong.pts { color: #d97706; }

.bc-adm-quick-pts-row {
  display: flex;
  align-items: center;
  gap: 0.32rem;
  flex-wrap: wrap;
  font-size: 0.68rem;
  color: var(--text-muted, #94a3b8);
}

.bc-adm-qchip {
  padding: 0.2rem 0.52rem;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary, #f8fafc);
  font-size: 0.69rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.14s ease;
}

[data-theme="light"] .bc-adm-qchip {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #0f172a;
}

.bc-adm-qchip:hover {
  border-color: #f59e0b;
  background: rgba(245, 158, 11, 0.18);
  color: #fbbf24;
}

.bc-adm-panel-foot {
  margin-top: auto;
  padding-top: 0.35rem;
}

.bc-adm-submit-btn {
  width: 100%;
  height: 38px;
  border-radius: 10px;
  border: none;
  font-size: 0.8rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  cursor: pointer;
  transition: all 0.18s ease;
  color: #ffffff;
}

.bc-adm-submit-btn.primary {
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.35);
}

.bc-adm-submit-btn.accent {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.bc-adm-submit-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: brightness(1.06);
}

/* Khối bảng giao dịch đổi điểm Admin */
.bc-adm-table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  flex-wrap: wrap;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

[data-theme="light"] .bc-adm-table-toolbar {
  border-bottom-color: #e2e8f0;
}

.bc-adm-filter-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.bc-adm-status-pills {
  display: flex;
  align-items: center;
  gap: 0.28rem;
  flex-wrap: wrap;
}

.bc-adm-filter-pill {
  padding: 0.28rem 0.62rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted, #94a3b8);
  font-size: 0.7rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

[data-theme="light"] .bc-adm-filter-pill {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #475569;
}

.bc-adm-filter-pill.active {
  background: rgba(59, 130, 246, 0.2);
  border-color: #3b82f6;
  color: var(--text-primary, #ffffff);
}

[data-theme="light"] .bc-adm-filter-pill.active {
  background: #dbeafe;
  color: #1d4ed8;
}

.bc-adm-search-mini.table-search {
  min-width: 195px;
}

.bc-adm-table-scroll {
  max-height: 250px;
  overflow-y: auto;
}

@media (max-width: 860px) {
  .bc-adm-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .bc-adm-workspace-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .bc-exchange-wallets-grid,
  .bc-adm-form-grid {
    grid-template-columns: 1fr;
  }
  .bc-adm-member-wallet-card {
    grid-template-columns: 1fr;
  }
  .bc-ex-presets-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* =========================================================================
   BẦU CUA ONLINE REAL-TIME & ĐỒNG BỘ MỌI ACCOUNT
   ========================================================================= */
.bc-live-room-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  font-size: 0.74rem;
  font-weight: 800;
  color: #34d399;
  white-space: nowrap;
}

[data-theme="light"] .bc-live-room-pill {
  background: #ecfdf5;
  border-color: rgba(16, 185, 129, 0.3);
  color: #059669;
}

.bc-live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  font-weight: 900;
  letter-spacing: 0.6px;
}

.bc-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: bcLivePulse 1.2s ease-in-out infinite;
}

@keyframes bcLivePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(1.35); }
}

.bc-online-count {
  color: var(--text-muted, #94a3b8);
  font-weight: 700;
}

/* Hộp đồng hồ đếm ngược ván online chính giữa */
.bc-live-round-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.18rem;
  min-width: 200px;
}

.bc-round-meta-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.7rem;
}

.bc-round-code {
  font-weight: 800;
  color: var(--text-muted, #94a3b8);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.5px;
}

.bc-round-status-pill {
  padding: 0.1rem 0.45rem;
  border-radius: 6px;
  font-size: 0.65rem;
  font-weight: 900;
  text-transform: uppercase;
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
  transition: all 0.2s ease;
}

.bc-round-status-pill.rolling {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.45);
}

.bc-round-status-pill.payout {
  background: rgba(139, 92, 246, 0.2);
  color: #c084fc;
  border-color: rgba(139, 92, 246, 0.45);
}

.bc-live-timer-wrap {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-primary, #ffffff);
}

.bc-timer-digits {
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: 1px;
  color: #fbbf24;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 12px rgba(251, 191, 36, 0.45);
  transition: color 0.15s ease;
}

.bc-live-timer-wrap.urgent .bc-timer-digits {
  color: #ef4444 !important;
  text-shadow: 0 0 16px rgba(239, 68, 68, 0.7) !important;
  animation: bcUrgentPulse 0.4s ease infinite alternate;
}

@keyframes bcUrgentPulse {
  0% { transform: scale(1); }
  100% { transform: scale(1.1); }
}

.bc-timer-progress-track {
  width: 100%;
  max-width: 220px;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

[data-theme="light"] .bc-timer-progress-track {
  background: rgba(15, 23, 42, 0.1);
}

.bc-timer-progress-bar {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #10b981, #f59e0b);
  transition: width 0.1s linear, background 0.2s ease;
}

.bc-timer-progress-bar.urgent {
  background: linear-gradient(90deg, #f59e0b, #ef4444);
}

/* Dải hoạt động cược trực tiếp trong phòng (Live Bet Stream Marquee) */
.bc-live-stream-bar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.35rem 0.65rem;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
  font-size: 0.75rem;
}

[data-theme="light"] .bc-live-stream-bar {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.1);
}

.bc-stream-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-weight: 900;
  font-size: 0.68rem;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 6px;
  padding: 0.15rem 0.45rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.bc-stream-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 6px #38bdf8;
  animation: bcLivePulse 1s infinite;
}

.bc-stream-track {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  overflow-x: auto;
  scrollbar-width: none;
  flex: 1;
}

.bc-stream-track::-webkit-scrollbar {
  display: none;
}

.bc-stream-empty {
  color: var(--text-muted, #94a3b8);
  font-size: 0.72rem;
  font-style: italic;
}

.bc-stream-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.16rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.72rem;
  white-space: nowrap;
  animation: bcStreamSlideIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

[data-theme="light"] .bc-stream-chip {
  background: #f1f5f9;
  border-color: rgba(15, 23, 42, 0.1);
}

.bc-stream-chip.mine {
  background: rgba(245, 158, 11, 0.18);
  border-color: rgba(245, 158, 11, 0.5);
  color: #fbbf24;
  font-weight: 800;
}

[data-theme="light"] .bc-stream-chip.mine {
  background: #fef3c7;
  color: #b45309;
}

.bc-stream-chip-name {
  font-weight: 700;
  max-width: 95px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bc-stream-chip-amt {
  font-weight: 900;
  color: #34d399;
}

.bc-stream-chip.mine .bc-stream-chip-amt {
  color: #fbbf24;
}

@keyframes bcStreamSlideIn {
  0% { opacity: 0; transform: translateX(-15px) scale(0.85); }
  100% { opacity: 1; transform: translateX(0) scale(1); }
}

/* Huy hiệu tổng cược cả phòng trên từng thẻ linh vật */
.bc-room-bet-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.18rem;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.14);
  border: 1px solid rgba(139, 92, 246, 0.32);
  color: #c084fc;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

[data-theme="light"] .bc-room-bet-pill {
  background: #f5f3ff;
  border-color: rgba(139, 92, 246, 0.3);
  color: #7c3aed;
}

.bc-room-ic {
  font-size: 0.65rem;
}

/* Hiệu ứng phỉnh bay khi có người cược trên ô linh vật */
.bc-mascot-visual-zone {
  position: relative;
}

.bc-mascot-live-chips {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 4;
}

.bc-floating-chip {
  position: absolute;
  bottom: 25%;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 900;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.55);
  animation: bcFloatChip 1.1s cubic-bezier(0.25, 1, 0.5, 1) forwards;
  white-space: nowrap;
}

.bc-floating-chip.room-bet {
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.55);
}

@keyframes bcFloatChip {
  0% { opacity: 0; transform: translate(-50%, 10px) scale(0.65); }
  25% { opacity: 1; transform: translate(-50%, 0) scale(1.08); }
  75% { opacity: 1; transform: translate(-50%, -20px) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -36px) scale(0.85); }
}

/* Nút trạng thái chính ở thanh điều khiển */
.bc-btn-roll.live-mode {
  transition: all 0.25s ease;
  font-variant-numeric: tabular-nums;
}

.bc-btn-roll.live-mode.betting {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border-color: #34d399;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.45);
}

.bc-btn-roll.live-mode.rolling {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  border-color: #fbbf24;
  opacity: 0.9;
  cursor: wait;
}

.bc-btn-roll.live-mode.payout {
  background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
  border-color: #c084fc;
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.45);
}
