:root {
  --bg-main: #0f0c08;
  --bg-card: rgba(23, 18, 13, 0.88);
  --bg-card-hover: rgba(36, 28, 20, 0.94);
  --bg-input: rgba(15, 11, 8, 0.92);
  --border-gold: #4a3720;
  --border-bright: #eab308;
  --accent-orange: #f97316;
  --accent-gold: #fbbf24;
  --accent-red: #ef4444;
  --accent-green: #10b981;
  --text-primary: #fdf8f0;
  --text-secondary: #cbbba2;
  --text-muted: #8e7f68;
  --radius: 12px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background-color: #0e130c;
  background-image:
    linear-gradient(90deg,
      rgba(10, 14, 9, 0.22) 0%,
      rgba(14, 11, 8, 0.76) 18%,
      rgba(14, 11, 8, 0.82) 82%,
      rgba(10, 14, 9, 0.22) 100%),
    radial-gradient(circle at 50% 0%, rgba(245, 158, 11, 0.18), rgba(10, 8, 6, 0.65) 75%),
    url("/images/konoha_bg.png");
  background-size: cover;
  background-attachment: fixed;
  background-position: center center;
  background-repeat: no-repeat;
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.5;
  position: relative;
  overflow-x: hidden;
}

/* Hiệu ứng Canvas Lá Làng Lá & Ánh Lửa Hỏa Chí */
.konoha-particles-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* Header & Navigation (Compact 1-Row Game Navbar: 56px Mobile / 60px PC) */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 60px;
  background: linear-gradient(180deg, rgba(20, 14, 9, 0.98) 0%, rgba(14, 10, 7, 0.96) 100%);
  backdrop-filter: blur(10px);
  border-bottom: 1.5px solid rgba(234, 179, 8, 0.55);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.72);
}

.topbar-inner {
  max-width: 1260px;
  height: 100%;
  margin: 0 auto;
  padding: 0 0.9rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  flex-wrap: nowrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  cursor: pointer;
  text-decoration: none;
  color: var(--text-primary);
  flex-shrink: 0;
}

.brand-emblem {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: radial-gradient(circle at 30% 30%, #fbbf24, #ea580c 55%, #991b1b 100%);
  border: 1.5px solid #fde047;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1rem;
  color: #fff;
  box-shadow: 0 0 12px rgba(249, 115, 22, 0.45);
  overflow: hidden;
  flex-shrink: 0;
}

.brand-emblem img,
.brand-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.brand-title {
  font-weight: 900;
  font-size: 1.05rem;
  letter-spacing: 0.6px;
  color: #fde047;
  white-space: nowrap;
  text-transform: uppercase;
  text-shadow:
    0 2px 6px rgba(0, 0, 0, 0.9),
    0 0 14px rgba(234, 88, 12, 0.5);
}

.svg-icon,
.svg-chevron {
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: nowrap;
}

.nav-btn {
  background: transparent;
  color: #e5d5be;
  border: 1px solid transparent;
  padding: 0.4rem 0.65rem;
  border-radius: 6px;
  font-size: 0.79rem;
  font-weight: 800;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.32rem;
  transition: all 0.14s ease;
}

.nav-btn:hover {
  color: #fef08a;
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(251, 191, 36, 0.4);
}

.nav-btn.active {
  color: #1c0d04;
  background: linear-gradient(135deg, #fef08a 0%, #fbbf24 50%, #ea580c 100%);
  border: 1px solid #fef08a;
  box-shadow: 0 2px 10px rgba(249, 115, 22, 0.45);
}

/* Khu vực Tài khoản & Dropdown trên PC */
.header-auth-area {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.header-guest-actions {
  display: flex;
  align-items: center;
  gap: 0.38rem;
  flex-wrap: nowrap;
}

.btn-header-auth {
  padding: 0.38rem 0.68rem;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.3px;
  border-radius: 6px;
  white-space: nowrap;
}

.user-dropdown-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.user-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  background: rgba(28, 20, 14, 0.92);
  color: #f8f1e5;
  border: 1px solid rgba(234, 179, 8, 0.45);
  padding: 0.38rem 0.68rem;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.user-dropdown-trigger:hover,
.user-dropdown-trigger.active {
  border-color: #fde047;
  background: rgba(45, 32, 20, 0.96);
  color: #fde047;
}

.user-trigger-name {
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 215px;
  background: #16100b;
  border: 1.5px solid #eab308;
  border-radius: 8px;
  padding: 0.4rem;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.85);
  z-index: 220;
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
}

.dropdown-user-summary {
  padding: 0.45rem 0.65rem 0.5rem;
  border-bottom: 1px solid rgba(212, 162, 76, 0.22);
  margin-bottom: 0.2rem;
}

.dropdown-user-title {
  font-size: 0.84rem;
  font-weight: 800;
  color: #fde047;
}

.dropdown-user-bal {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 0.1rem;
}

.dropdown-item {
  width: 100%;
  text-align: left;
  background: transparent;
  color: #e7d8c3;
  border: 1px solid transparent;
  padding: 0.48rem 0.68rem;
  border-radius: 5px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.12s ease;
}

.dropdown-item:hover,
.dropdown-item.active {
  background: rgba(245, 158, 11, 0.16);
  color: #fde047;
  border-color: rgba(251, 191, 36, 0.35);
}

.dropdown-item-admin {
  color: #6ee7b7;
}

.dropdown-item-danger {
  color: #fca5a5;
}

.dropdown-item-danger:hover {
  background: rgba(220, 38, 38, 0.18);
  color: #fecaca;
  border-color: rgba(220, 38, 38, 0.4);
}

.dropdown-divider {
  height: 1px;
  background: rgba(212, 162, 76, 0.2);
  margin: 0.22rem 0;
}

.user-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(31, 23, 16, 0.92);
  border: 1px solid rgba(234, 179, 8, 0.48);
  padding: 0.34rem 0.75rem;
  border-radius: 6px;
  font-size: 0.82rem;
}

.coin-badge {
  color: #fde047;
  font-weight: 800;
}

/* Mobile Header Actions & Drawer (Mặc định ẩn trên PC >= 992px) */
.mobile-header-actions,
.mobile-nav-drawer {
  display: none;
}

@media (max-width: 991px) {
  .topbar {
    height: 56px;
  }

  .topbar-inner {
    padding: 0 0.75rem;
  }

  .brand-emblem {
    width: 34px;
    height: 34px;
  }

  .brand-title {
    font-size: 0.96rem;
    letter-spacing: 0.4px;
  }

  #main-nav,
  #header-auth-area {
    display: none !important;
  }

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

  .btn-mobile-play {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    height: 36px;
    padding: 0 0.72rem;
    border-radius: 6px;
    background: linear-gradient(135deg, #ea580c 0%, #dc2626 100%);
    border: 1px solid #fde047;
    color: #fefce8;
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(220, 38, 38, 0.4);
  }

  .btn-mobile-hamburger {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    background: rgba(28, 20, 14, 0.95);
    border: 1px solid rgba(234, 179, 8, 0.55);
    color: #fde047;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
  }

  .mobile-nav-drawer {
    display: block;
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 150;
  }

  .mobile-nav-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(3px);
  }

  .mobile-nav-drawer-panel {
    position: relative;
    z-index: 2;
    background: #140e09;
    border-bottom: 2px solid #eab308;
    padding: 0.85rem 0.9rem 1rem;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.88);
    max-height: calc(100dvh - 56px);
    overflow-y: auto;
  }

  .mobile-auth-area {
    padding-bottom: 0.75rem;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid rgba(212, 162, 76, 0.22);
  }

  .mobile-guest-btns {
    display: flex;
    gap: 0.5rem;
  }

  .mobile-user-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    flex-wrap: wrap;
    background: rgba(26, 19, 13, 0.95);
    border: 1px solid rgba(234, 179, 8, 0.38);
    padding: 0.5rem 0.7rem;
    border-radius: 6px;
  }

  .mobile-user-info {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.84rem;
  }

  .mobile-nav-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.45rem;
  }

  .mobile-nav-item {
    width: 100%;
    justify-content: center;
    padding: 0.62rem 0.5rem;
    font-size: 0.78rem;
    background: rgba(28, 20, 14, 0.9);
    border: 1px solid rgba(212, 162, 76, 0.28);
    border-radius: 6px;
  }

  .mobile-nav-play {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, #ea580c 0%, #dc2626 100%);
    color: #fff;
    border-color: #fde047;
  }

  .mobile-nav-topup {
    border-color: rgba(251, 191, 36, 0.55);
    color: #fde68a;
  }
}

/* Main Container */
.container {
  position: relative;
  z-index: 2;
  max-width: 1260px;
  margin: 1.4rem auto;
  padding: 0 1rem 3.2rem;
}

.hero-banner {
  background:
    linear-gradient(125deg, rgba(17, 12, 8, 0.84) 0%, rgba(153, 27, 27, 0.58) 55%, rgba(234, 88, 12, 0.48) 100%),
    url("/images/konoha_village.jpg") center/cover no-repeat;
  border: 1px solid rgba(250, 204, 21, 0.6);
  border-radius: var(--radius);
  padding: 1.35rem 1.6rem;
  margin-bottom: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  backdrop-filter: blur(6px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55);
}

.hero-banner h1 {
  font-size: 1.42rem;
  color: #fde047;
  margin-bottom: 0.28rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.85);
}

.hero-banner p {
  font-size: 0.92rem;
  color: #f3e8d6;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.85);
}

/* Grid & Cards */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.2rem;
}

.grid-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.9rem;
  margin-bottom: 1.2rem;
}

.stat-box {
  background: linear-gradient(145deg, rgba(30, 23, 16, 0.92), rgba(18, 14, 10, 0.92));
  border: 1px solid rgba(212, 162, 76, 0.42);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  backdrop-filter: blur(6px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.38);
}

.stat-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
}

.stat-value {
  font-size: 1.32rem;
  font-weight: 800;
  margin-top: 0.25rem;
  color: var(--text-primary);
}

.stat-value.gold {
  color: #fde047;
  text-shadow: 0 0 10px rgba(250, 204, 21, 0.3);
}

.card {
  background: var(--bg-card);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(212, 162, 76, 0.42);
  border-radius: var(--radius);
  padding: 1.35rem;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5);
}

.card-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fde047;
  margin-bottom: 1rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgba(234, 179, 8, 0.26);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* Status Badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.status-online {
  background: rgba(16, 185, 129, 0.16);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.status-offline {
  background: rgba(148, 163, 184, 0.14);
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.dot.green {
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

.dot.gray {
  background: #94a3b8;
}

/* Forms & Buttons */
.form-group {
  margin-bottom: 0.95rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0.35rem;
  font-weight: 600;
}

.input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-gold);
  color: var(--text-primary);
  padding: 0.62rem 0.85rem;
  border-radius: 8px;
  font-size: 0.94rem;
  outline: none;
  transition: border-color 0.15s;
}

.input:focus {
  border-color: var(--accent-gold);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.62rem 1.1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.1s, opacity 0.15s;
}

.btn:active {
  transform: scale(0.98);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn-primary {
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  color: #140e08;
  border-color: var(--border-bright);
}

.btn-danger {
  background: rgba(220, 38, 38, 0.18);
  color: #fca5a5;
  border-color: rgba(220, 38, 38, 0.45);
}

.btn-outline {
  background: #211a13;
  color: var(--text-primary);
  border-color: var(--border-gold);
}

.btn-outline:hover {
  border-color: var(--border-bright);
}

.btn-sm {
  padding: 0.38rem 0.7rem;
  font-size: 0.8rem;
}

/* Quick Preset Buttons */
.preset-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

/* Shop Grid & 5-Tier Ninja Rarity System */
.shop-hero-banner {
  background:
    linear-gradient(125deg, rgba(20, 12, 8, 0.86) 0%, rgba(185, 28, 28, 0.62) 55%, rgba(234, 88, 12, 0.52) 100%),
    url("/images/konoha_town.jpg") center/cover no-repeat;
  border-color: #fbbf24;
}

.category-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.9rem;
}

.shop-rarity-legend {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding: 0.65rem 0.95rem;
  margin-bottom: 1.2rem;
  border-radius: 10px;
  background: rgba(16, 12, 8, 0.85);
  border: 1px solid rgba(212, 162, 76, 0.35);
}

.rarity-legend-pill {
  font-size: 0.74rem;
  font-weight: 800;
  padding: 0.2rem 0.62rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.rarity-legend-pill.t1 {
  background: rgba(34, 197, 94, 0.16);
  color: #4ade80;
  border: 1px solid #22c55e;
}

.rarity-legend-pill.t2 {
  background: rgba(59, 130, 246, 0.16);
  color: #60a5fa;
  border: 1px solid #3b82f6;
}

.rarity-legend-pill.t3 {
  background: rgba(168, 85, 247, 0.16);
  color: #c084fc;
  border: 1px solid #a855f7;
}

.rarity-legend-pill.t4 {
  background: rgba(234, 179, 8, 0.18);
  color: #fde047;
  border: 1px solid #eab308;
  box-shadow: 0 0 8px rgba(234, 179, 8, 0.3);
}

.rarity-legend-pill.t5 {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.26), rgba(245, 158, 11, 0.26));
  color: #fef08a;
  border: 1px solid #ef4444;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.45);
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.15rem;
}

.shop-card {
  background: rgba(22, 16, 11, 0.92);
  backdrop-filter: blur(6px);
  border: 1.5px solid var(--border-gold);
  border-radius: 13px;
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  position: relative;
  overflow: hidden;
}

.shop-card:hover {
  transform: translateY(-4px);
}

/* Bậc 1 (Phổ Thông): Viền Xanh lá ngọc (#22c55e) */
.shop-card.rarity-tier-1 {
  border-color: rgba(34, 197, 94, 0.65);
  background:
    radial-gradient(circle at top right, rgba(34, 197, 94, 0.14), transparent 55%),
    rgba(20, 16, 12, 0.92);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45), inset 0 0 14px rgba(34, 197, 94, 0.06);
}

.shop-card.rarity-tier-1:hover {
  border-color: #22c55e;
  box-shadow: 0 10px 26px rgba(34, 197, 94, 0.22);
}

/* Bậc 2 (Cao Cấp): Viền Xanh lam Lôi Độn (#3b82f6) */
.shop-card.rarity-tier-2 {
  border-color: rgba(59, 130, 246, 0.72);
  background:
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.16), transparent 55%),
    rgba(19, 16, 14, 0.92);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45), inset 0 0 15px rgba(59, 130, 246, 0.08);
}

.shop-card.rarity-tier-2:hover {
  border-color: #3b82f6;
  box-shadow: 0 10px 28px rgba(59, 130, 246, 0.28);
}

/* Bậc 3 (Quý Hiếm - Hokage): Viền Tím Huyền Vũ (#a855f7) */
.shop-card.rarity-tier-3 {
  border-color: rgba(168, 85, 247, 0.78);
  background:
    radial-gradient(circle at top right, rgba(168, 85, 247, 0.2), transparent 58%),
    rgba(22, 15, 20, 0.93);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.5), 0 0 14px rgba(168, 85, 247, 0.16);
}

.shop-card.rarity-tier-3:hover {
  border-color: #a855f7;
  box-shadow: 0 12px 30px rgba(168, 85, 247, 0.34);
}

/* Bậc 4 (Sử Thi / Truyền Thuyết): Viền Vàng Hoàng Kim phát sáng (#eab308) */
.shop-card.rarity-tier-4 {
  border-color: #eab308;
  background:
    radial-gradient(circle at top right, rgba(234, 179, 8, 0.24), transparent 60%),
    linear-gradient(160deg, rgba(40, 28, 12, 0.95), rgba(20, 14, 9, 0.95));
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55), 0 0 18px rgba(234, 179, 8, 0.25);
}

.shop-card.rarity-tier-4:hover {
  border-color: #fde047;
  box-shadow: 0 12px 32px rgba(234, 179, 8, 0.42);
}

/* Bậc 5 (Thần Thoại - Kurama / Lục Đạo): Viền Đỏ Chu Sa & Vàng Kim rực lửa (#ef4444 -> #f59e0b) */
.shop-card.rarity-tier-5 {
  border: 2px solid #ef4444;
  background:
    radial-gradient(circle at 85% 15%, rgba(239, 68, 68, 0.3), rgba(245, 158, 11, 0.15) 45%, transparent 70%),
    linear-gradient(145deg, rgba(48, 16, 12, 0.96), rgba(24, 14, 9, 0.96));
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.65),
    0 0 22px rgba(239, 68, 68, 0.38),
    inset 0 0 18px rgba(245, 158, 11, 0.15);
}

.shop-card.rarity-tier-5:hover {
  border-color: #f59e0b;
  box-shadow:
    0 14px 36px rgba(239, 68, 68, 0.52),
    0 0 26px rgba(245, 158, 11, 0.45);
}

.shop-rarity-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  margin-bottom: 0.65rem;
}

.shop-rarity-pill {
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.16rem 0.55rem;
  border-radius: 999px;
  letter-spacing: 0.2px;
}

.rarity-badge-t1 {
  background: rgba(34, 197, 94, 0.16);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.5);
}

.rarity-badge-t2 {
  background: rgba(59, 130, 246, 0.18);
  color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, 0.55);
}

.rarity-badge-t3 {
  background: rgba(168, 85, 247, 0.2);
  color: #d8b4fe;
  border: 1px solid rgba(168, 85, 247, 0.6);
}

.rarity-badge-t4 {
  background: rgba(234, 179, 8, 0.22);
  color: #fde047;
  border: 1px solid #eab308;
}

.rarity-badge-t5 {
  background: linear-gradient(135deg, #dc2626, #ea580c);
  color: #fef08a;
  border: 1px solid #fde047;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
}

.shop-id-chip {
  font-size: 0.7rem;
  font-family: Consolas, monospace;
  color: var(--text-muted);
}

.shop-head {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

/* Khung chứa ảnh Icon vật phẩm 64x64 cổ điển kiểu ô trang bị trong game Làng Lá */
.item-icon-box,
.item-icon-box.eq-slot-64 {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  border-radius: 11px;
  background:
    radial-gradient(circle at center, #2d2013 0%, #120c07 78%);
  border: 2px solid #d4a24c;
  box-shadow:
    inset 0 0 10px rgba(0, 0, 0, 0.85),
    inset 0 0 0 1px rgba(254, 240, 138, 0.22),
    0 4px 12px rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  position: relative;
}

.shop-card.rarity-tier-1 .item-icon-box {
  border-color: #22c55e;
}

.shop-card.rarity-tier-2 .item-icon-box {
  border-color: #3b82f6;
}

.shop-card.rarity-tier-3 .item-icon-box {
  border-color: #a855f7;
}

.shop-card.rarity-tier-4 .item-icon-box {
  border-color: #eab308;
  box-shadow: inset 0 0 10px rgba(234, 179, 8, 0.25), 0 0 12px rgba(234, 179, 8, 0.35);
}

.shop-card.rarity-tier-5 .item-icon-box {
  border-color: #f59e0b;
  background: radial-gradient(circle at center, #451a0f 0%, #140906 80%);
  box-shadow: inset 0 0 12px rgba(239, 68, 68, 0.4), 0 0 15px rgba(239, 68, 68, 0.5);
}

.item-icon-box img {
  width: 46px;
  height: 46px;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  image-rendering: pixelated;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.75));
}

.eq-qty-corner {
  position: absolute;
  bottom: 2px;
  right: 3px;
  background: rgba(12, 9, 6, 0.9);
  color: #fde047;
  font-size: 0.66rem;
  font-weight: 900;
  padding: 0 4px;
  border-radius: 4px;
  border: 1px solid rgba(234, 179, 8, 0.45);
  line-height: 1.25;
}

.shop-name {
  font-weight: 800;
  font-size: 1rem;
  color: #fde047;
  line-height: 1.3;
}

.shop-card.rarity-tier-5 .shop-name {
  color: #fef08a;
  text-shadow: 0 0 8px rgba(239, 68, 68, 0.65);
}

.shop-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.35rem;
}

.tag {
  font-size: 0.7rem;
  padding: 0.12rem 0.45rem;
  border-radius: 4px;
  background: #261e16;
  color: var(--text-secondary);
  border: 1px solid var(--border-gold);
}

.tag.lock {
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.35);
}

.tag.unlock {
  color: #6ee7b7;
  border-color: rgba(16, 185, 129, 0.35);
}

.shop-desc {
  font-size: 0.83rem;
  color: var(--text-secondary);
  margin: 0.75rem 0;
  min-height: 2.5rem;
}

.shop-foot {
  border-top: 1px solid rgba(212, 162, 76, 0.22);
  padding-top: 0.75rem;
  margin-top: 0.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.price-text {
  font-weight: 900;
  color: #fde047;
  font-size: 1.04rem;
}

.qty-control {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.qty-input {
  width: 54px;
  text-align: center;
  padding: 0.35rem;
  border-radius: 6px;
  border: 1px solid var(--border-gold);
  background: var(--bg-input);
  color: var(--text-primary);
  font-weight: 700;
}

/* Tables */
.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
}

th,
td {
  padding: 0.68rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid rgba(212, 162, 76, 0.14);
}

th {
  color: var(--accent-gold);
  font-weight: 700;
  background: rgba(0, 0, 0, 0.22);
}

/* Toast Notifications */
#toast-container {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  max-width: 380px;
}

.toast {
  background: #1c1610;
  border-left: 4px solid var(--accent-gold);
  border-top: 1px solid var(--border-gold);
  border-right: 1px solid var(--border-gold);
  border-bottom: 1px solid var(--border-gold);
  color: var(--text-primary);
  padding: 0.8rem 1rem;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.65);
  font-size: 0.88rem;
  animation: slideIn 0.2s ease;
}

.toast.success {
  border-left-color: var(--accent-green);
}

.toast.error {
  border-left-color: var(--accent-red);
}

@keyframes slideIn {
  from {
    transform: translateY(12px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.auth-box {
  max-width: 440px;
  margin: 2.2rem auto;
}

.hidden {
  display: none !important;
}

/* =====================================================================
   HOMEPAGE HERO BANNER & 6-FUNCTION QUICK ACTION COMMAND CENTER (/)
   ===================================================================== */
.home-command-center {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 1.15rem;
  margin-bottom: 1.4rem;
  align-items: stretch;
}

.home-hero {
  background:
    linear-gradient(135deg,
      rgba(15, 11, 7, 0.86) 0%,
      rgba(32, 18, 10, 0.78) 55%,
      rgba(127, 29, 29, 0.58) 100%),
    url("/images/banner_client.png?v=20261107190000") center/cover no-repeat;
  border: 1.5px solid #eab308;
  border-radius: 12px;
  padding: 1.45rem 1.55rem;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.65);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.home-hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 20%, rgba(251, 191, 36, 0.14), transparent 55%);
  pointer-events: none;
}

.home-hero-content {
  position: relative;
  z-index: 2;
}

.home-title {
  font-size: 1.85rem;
  font-weight: 900;
  color: #fde047;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
  line-height: 1.2;
  text-shadow:
    0 2px 10px rgba(0, 0, 0, 0.9),
    0 0 18px rgba(234, 88, 12, 0.55);
}

.home-slogan-sub {
  font-size: 0.8rem;
  font-weight: 800;
  color: #fdba74;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.home-desc {
  font-size: 0.9rem;
  color: #f3e8d6;
  margin-bottom: 1.15rem;
  line-height: 1.58;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.85);
}

.home-hero-cta-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.home-hero-cta-row .btn-hero-play-web {
  grid-column: 1 / -1;
}

.btn-hero-download {
  background: linear-gradient(135deg, #fde047 0%, #f59e0b 55%, #ea580c 100%);
  color: #1c0a02;
  border: 1px solid #fef9c3;
  font-weight: 900;
  font-size: 0.82rem;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  padding: 0.65rem 0.75rem;
  border-radius: 7px;
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.4);
}

.btn-hero-download:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.btn-hero-topup {
  background: linear-gradient(135deg, rgba(217, 119, 6, 0.95), rgba(180, 83, 9, 0.98));
  color: #fef9c3;
  border: 1px solid #fde047;
  font-weight: 900;
  font-size: 0.82rem;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  padding: 0.65rem 0.75rem;
  border-radius: 7px;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.35);
}

.btn-hero-topup:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.btn-hero-giftcode {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.92), rgba(5, 150, 105, 0.95));
  color: #ecfdf5;
  border: 1px solid #6ee7b7;
  font-weight: 900;
  font-size: 0.82rem;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  padding: 0.65rem 0.75rem;
  border-radius: 7px;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}

.btn-hero-giftcode:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.download-panel {
  margin-top: 1.1rem;
  padding: 0.95rem 1rem;
  border-radius: 10px;
  background: rgba(14, 10, 7, 0.94);
  border: 1px solid rgba(250, 204, 21, 0.45);
}

.giftcode-mini-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
  gap: 0.55rem;
}

.giftcode-mini-item {
  background: rgba(28, 20, 14, 0.95);
  border: 1px dashed #fbbf24;
  border-radius: 8px;
  padding: 0.5rem 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.giftcode-mini-item:hover {
  background: rgba(245, 158, 11, 0.18);
  border-style: solid;
}

.giftcode-mini-item code {
  font-family: Consolas, monospace;
  font-weight: 900;
  font-size: 0.92rem;
  color: #fde047;
}

.giftcode-mini-item span {
  font-size: 0.74rem;
  color: var(--text-secondary);
}

/* Lưới 6 Nút Lối Tắt Chức Năng Lớn (Quick Action Cards) */
.quick-actions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.quick-action-card {
  position: relative;
  border-radius: 10px;
  padding: 0.88rem 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.78rem;
  cursor: pointer;
  border: 1px solid rgba(212, 162, 76, 0.45);
  background: rgba(22, 16, 12, 0.92);
  backdrop-filter: blur(6px);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  overflow: hidden;
}

.quick-action-card:hover {
  transform: translateY(-2px);
}

.qa-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5), 0 4px 10px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.qa-icon-wrap img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  image-rendering: pixelated;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.75));
}

.qa-body {
  flex: 1;
  min-width: 0;
}

.qa-title {
  font-size: 0.88rem;
  font-weight: 900;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.25;
}

.qa-sub {
  font-size: 0.75rem;
  color: #d6c7b2;
  margin-top: 0.18rem;
  line-height: 1.35;
}

/* 1. Tông Vàng Kim / Xanh Ngọc (Nạp Coin VietQR) */
.quick-action-card.theme-jade-gold {
  border-color: rgba(16, 185, 129, 0.7);
  background:
    radial-gradient(circle at top right, rgba(251, 191, 36, 0.22), rgba(16, 185, 129, 0.18) 55%, rgba(18, 24, 19, 0.94) 100%);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45), 0 0 15px rgba(16, 185, 129, 0.2);
}

.quick-action-card.theme-jade-gold:hover {
  border-color: #fde047;
  box-shadow: 0 10px 26px rgba(16, 185, 129, 0.38), 0 0 18px rgba(251, 191, 36, 0.35);
}

.quick-action-card.theme-jade-gold .qa-icon-wrap {
  background: linear-gradient(135deg, #10b981, #d97706);
  border-color: #fde047;
}

.quick-action-card.theme-jade-gold .qa-badge {
  background: rgba(16, 185, 129, 0.25);
  color: #6ee7b7;
  border: 1px solid #34d399;
}

.quick-action-card.theme-jade-gold .qa-title {
  color: #fef08a;
}

/* 2. Tông Đỏ Cam Rực Lửa (Cửa Hàng Web Shop) */
.quick-action-card.theme-fire-orange {
  border-color: rgba(249, 115, 22, 0.75);
  background:
    radial-gradient(circle at top right, rgba(239, 68, 68, 0.28), rgba(249, 115, 22, 0.18) 55%, rgba(28, 15, 11, 0.94) 100%);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45), 0 0 15px rgba(249, 115, 22, 0.22);
}

.quick-action-card.theme-fire-orange:hover {
  border-color: #fb923c;
  box-shadow: 0 10px 26px rgba(239, 68, 68, 0.42);
}

.quick-action-card.theme-fire-orange .qa-icon-wrap {
  background: linear-gradient(135deg, #ef4444, #ea580c);
  border-color: #fdba74;
}

.quick-action-card.theme-fire-orange .qa-badge {
  background: rgba(239, 68, 68, 0.28);
  color: #fca5a5;
  border: 1px solid #f87171;
}

.quick-action-card.theme-fire-orange .qa-title {
  color: #fed7aa;
}

/* 3. Tông Vàng Hoàng Kim (Đổi Vàng Vào Game) */
.quick-action-card.theme-royal-gold {
  border-color: rgba(234, 179, 8, 0.8);
  background:
    radial-gradient(circle at top right, rgba(250, 204, 21, 0.28), rgba(217, 119, 6, 0.16) 55%, rgba(27, 20, 10, 0.94) 100%);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45), 0 0 15px rgba(234, 179, 8, 0.22);
}

.quick-action-card.theme-royal-gold:hover {
  border-color: #fef08a;
  box-shadow: 0 10px 26px rgba(234, 179, 8, 0.42);
}

.quick-action-card.theme-royal-gold .qa-icon-wrap {
  background: linear-gradient(135deg, #fde047, #ca8a04);
  border-color: #fef9c3;
}

.quick-action-card.theme-royal-gold .qa-badge {
  background: rgba(234, 179, 8, 0.25);
  color: #fde047;
  border: 1px solid #facc15;
}

.quick-action-card.theme-royal-gold .qa-title {
  color: #fef08a;
}

/* 4. Tông Xanh Dương (Diễn Đàn Nhẫn Giả) */
.quick-action-card.theme-chakra-blue {
  border-color: rgba(59, 130, 246, 0.75);
  background:
    radial-gradient(circle at top right, rgba(56, 189, 248, 0.25), rgba(37, 99, 235, 0.16) 55%, rgba(13, 20, 30, 0.94) 100%);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45), 0 0 15px rgba(59, 130, 246, 0.2);
}

.quick-action-card.theme-chakra-blue:hover {
  border-color: #60a5fa;
  box-shadow: 0 10px 26px rgba(59, 130, 246, 0.4);
}

.quick-action-card.theme-chakra-blue .qa-icon-wrap {
  background: linear-gradient(135deg, #38bdf8, #2563eb);
  border-color: #bae6fd;
}

.quick-action-card.theme-chakra-blue .qa-badge {
  background: rgba(56, 189, 248, 0.22);
  color: #7dd3fc;
  border: 1px solid #38bdf8;
}

.quick-action-card.theme-chakra-blue .qa-title {
  color: #bae6fd;
}

/* 5. Tông Xanh Lá Mộc Độn (Cẩm Nang Tra Cứu) */
.quick-action-card.theme-mokuton-green {
  border-color: rgba(34, 197, 94, 0.72);
  background:
    radial-gradient(circle at top right, rgba(74, 222, 128, 0.24), rgba(22, 163, 74, 0.16) 55%, rgba(13, 24, 16, 0.94) 100%);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45), 0 0 15px rgba(34, 197, 94, 0.2);
}

.quick-action-card.theme-mokuton-green:hover {
  border-color: #4ade80;
  box-shadow: 0 10px 26px rgba(34, 197, 94, 0.38);
}

.quick-action-card.theme-mokuton-green .qa-icon-wrap {
  background: linear-gradient(135deg, #22c55e, #15803d);
  border-color: #bbf7d0;
}

.quick-action-card.theme-mokuton-green .qa-badge {
  background: rgba(34, 197, 94, 0.22);
  color: #86efac;
  border: 1px solid #4ade80;
}

.quick-action-card.theme-mokuton-green .qa-title {
  color: #bbf7d0;
}

/* 6. Tông Tím Huyền Bí (Quản Lý & Giải Kẹt) */
.quick-action-card.theme-mystic-purple {
  border-color: rgba(168, 85, 247, 0.75);
  background:
    radial-gradient(circle at top right, rgba(192, 132, 252, 0.25), rgba(126, 34, 206, 0.16) 55%, rgba(22, 14, 28, 0.94) 100%);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45), 0 0 15px rgba(168, 85, 247, 0.2);
}

.quick-action-card.theme-mystic-purple:hover {
  border-color: #c084fc;
  box-shadow: 0 10px 26px rgba(168, 85, 247, 0.4);
}

.quick-action-card.theme-mystic-purple .qa-icon-wrap {
  background: linear-gradient(135deg, #a855f7, #6b21a8);
  border-color: #e9d5ff;
}

.quick-action-card.theme-mystic-purple .qa-badge {
  background: rgba(168, 85, 247, 0.24);
  color: #e9d5ff;
  border: 1px solid #c084fc;
}

.quick-action-card.theme-mystic-purple .qa-title {
  color: #f3e8ff;
}

.wiki-section {
  border-color: var(--border-gold);
}

.wiki-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(212, 162, 76, 0.2);
}

.wiki-title {
  font-size: 1.22rem;
  color: var(--accent-gold);
  margin-bottom: 0.2rem;
}

.wiki-sub {
  font-size: 0.86rem;
  color: var(--text-secondary);
}

.wiki-search-bar {
  margin-bottom: 1rem;
}

.wiki-search-input-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-input);
  border: 1px solid var(--border-bright);
  border-radius: 10px;
  padding: 0.25rem 0.65rem;
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.12);
}

.wiki-search-icon {
  font-size: 1.05rem;
  user-select: none;
}

.wiki-search-input {
  border: none !important;
  background: transparent !important;
  padding: 0.5rem 0.3rem !important;
  font-size: 0.95rem;
}

.wiki-quick-keywords {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.6rem;
}

.wiki-kw-chip {
  background: #221a12;
  color: #fcd34d;
  border: 1px solid var(--border-gold);
  border-radius: 999px;
  padding: 0.18rem 0.6rem;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.wiki-kw-chip:hover {
  background: rgba(245, 158, 11, 0.2);
  border-color: var(--border-bright);
}

.wiki-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1rem;
}

.wiki-card {
  background: #130f0c;
  border: 1px solid var(--border-gold);
  border-radius: 10px;
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 0.15s, transform 0.12s;
}

.wiki-card:hover {
  border-color: var(--border-bright);
}

.wiki-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.55rem;
}

.wiki-card-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--accent-gold);
  line-height: 1.35;
}

.wiki-meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.28rem;
  font-size: 0.82rem;
  color: var(--text-secondary);
  background: #1b1510;
  border: 1px solid rgba(212, 162, 76, 0.18);
  border-radius: 8px;
  padding: 0.55rem 0.7rem;
  margin-bottom: 0.7rem;
}

.wiki-steps {
  padding-left: 1.15rem;
  font-size: 0.84rem;
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}

.wiki-tip {
  font-size: 0.8rem;
  color: #fde68a;
  background: rgba(245, 158, 11, 0.1);
  border-left: 3px solid var(--accent-gold);
  padding: 0.45rem 0.65rem;
  border-radius: 4px;
}

/* =====================================================================
   GMAIL 2-FACTOR OTP SECURITY & WIZARD STYLES
   ===================================================================== */
.auth-mode-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.15rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(212, 162, 76, 0.2);
}

.gmail-security-card {
  border-color: var(--border-bright);
  background:
    radial-gradient(circle at top right, rgba(249, 115, 22, 0.12), transparent 50%),
    var(--bg-card);
}

.security-alert-banner {
  border-radius: 9px;
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--border-gold);
}

.security-alert-banner.warning {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.4);
  color: #fde68a;
}

.security-alert-banner.protected {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.4);
}

.otp-step-panel {
  background: #120e0b;
  border: 1px solid rgba(212, 162, 76, 0.28);
  border-radius: 9px;
  padding: 1rem 1.1rem;
}

.otp-code-input {
  font-family: Consolas, "Courier New", monospace;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 5px;
  text-align: center;
  color: var(--accent-gold);
}

.wizard-steps-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.6rem;
  margin-bottom: 0.9rem;
}

.wizard-step-pill {
  padding: 0.55rem 0.85rem;
  border-radius: 8px;
  background: #1b1510;
  border: 1px solid var(--border-gold);
  color: var(--text-secondary);
  font-size: 0.84rem;
  font-weight: 700;
  text-align: center;
}

.wizard-step-pill.active {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.22), rgba(234, 88, 12, 0.22));
  border-color: var(--border-bright);
  color: var(--accent-gold);
}

.wizard-step-pill.done {
  background: rgba(16, 185, 129, 0.16);
  border-color: rgba(16, 185, 129, 0.45);
  color: #6ee7b7;
}

/* =====================================================================
   VIETQR TOPUP / DONATE & CELEBRATION STYLES
   ===================================================================== */
.nav-btn-topup {
  color: #fde68a;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.22), rgba(234, 88, 12, 0.28));
  border: 1px solid rgba(251, 191, 36, 0.55);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 800;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.22);
}

.nav-btn-topup:hover {
  color: #140f0a;
  background: linear-gradient(135deg, #fbbf24, #ea580c);
  border-color: #fde68a;
}

.nav-btn-topup.active {
  color: #140f0a;
  background: linear-gradient(135deg, #fde047, #f97316);
  border-color: #fef08a;
  box-shadow: 0 0 16px rgba(249, 115, 22, 0.55);
}

.topup-km-badge {
  background: #dc2626;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.08rem 0.38rem;
  border-radius: 999px;
  border: 1px solid #fca5a5;
  box-shadow: 0 0 8px rgba(220, 38, 38, 0.6);
  animation: pulseBadge 1.6s infinite ease-in-out;
}

.topup-km-pill {
  background: linear-gradient(135deg, #dc2626, #ea580c);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.22rem 0.68rem;
  border-radius: 999px;
  border: 1px solid #fdba74;
  box-shadow: 0 0 12px rgba(234, 88, 12, 0.5);
}

@keyframes pulseBadge {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.08);
  }
}

.btn-topup-cta {
  background: linear-gradient(135deg, #fbbf24, #ea580c, #dc2626);
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
  border-color: #fcd34d;
  box-shadow: 0 4px 16px rgba(234, 88, 12, 0.35);
}

.btn-topup-cta:hover {
  filter: brightness(1.08);
}

.btn-approve-green {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #052e16;
  border-color: #6ee7b7;
  font-weight: 800;
}

.topup-hero-banner {
  border-color: var(--border-bright);
  background:
    radial-gradient(circle at 90% 20%, rgba(245, 158, 11, 0.25), transparent 50%),
    linear-gradient(125deg, rgba(234, 88, 12, 0.22), rgba(185, 28, 28, 0.18)),
    var(--bg-card);
}

.topup-preset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(138px, 1fr));
  gap: 0.65rem;
  margin-top: 0.45rem;
}

.topup-preset-btn {
  background: linear-gradient(155deg, #211810 0%, #120d08 100%);
  border: 1.5px solid rgba(212, 162, 76, 0.45);
  border-radius: 11px;
  padding: 0.72rem 0.55rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.16s ease;
  color: var(--text-primary);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.topup-preset-btn:hover {
  border-color: #fde047;
  background: linear-gradient(155deg, #2d2013 0%, #18110a 100%);
  transform: translateY(-2px);
}

.topup-preset-btn.active {
  border: 2px solid #fef08a;
  background:
    radial-gradient(circle at top, rgba(254, 240, 138, 0.28), transparent 65%),
    linear-gradient(145deg, rgba(234, 179, 8, 0.34), rgba(234, 88, 12, 0.25));
  box-shadow:
    0 0 18px rgba(250, 204, 21, 0.55),
    inset 0 0 10px rgba(254, 240, 138, 0.22);
  transform: translateY(-2px);
}

.topup-preset-icon {
  font-size: 1.35rem;
  line-height: 1;
  margin-bottom: 0.22rem;
  filter: drop-shadow(0 0 6px rgba(251, 191, 36, 0.5));
}

.topup-preset-vnd {
  font-weight: 900;
  font-size: 0.98rem;
  color: #fff;
}

.topup-preset-coin {
  font-size: 0.8rem;
  font-weight: 800;
  color: #fde047;
  margin-top: 0.16rem;
}

.topup-preset-bonus {
  font-size: 0.7rem;
  font-weight: 800;
  color: #4ade80;
  margin-top: 0.12rem;
}

.topup-preset-sub {
  font-size: 0.67rem;
  font-weight: 700;
  color: #d6c7b2;
  margin-top: 0.12rem;
}

/* Thẻ Bài Thỏi Vàng Trang Đổi Vàng (/exchange) */
.exchange-hero-banner {
  background:
    linear-gradient(125deg, rgba(20, 14, 7, 0.86) 0%, rgba(180, 83, 9, 0.62) 55%, rgba(234, 179, 8, 0.45) 100%),
    url("/images/konoha_valley.jpg") center/cover no-repeat;
  border-color: #fde047;
}

.exchange-preset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.65rem;
  margin-bottom: 1.05rem;
}

.exchange-ingot-card {
  background: linear-gradient(155deg, #24190e 0%, #130d08 100%);
  border: 1.5px solid rgba(234, 179, 8, 0.45);
  border-radius: 11px;
  padding: 0.72rem 0.55rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.16s ease;
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.16rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.exchange-ingot-card:hover {
  border-color: #fde047;
  background: linear-gradient(155deg, #322312 0%, #1b120a 100%);
  transform: translateY(-2px);
}

.exchange-ingot-card.active {
  border: 2px solid #fef08a;
  background:
    radial-gradient(circle at top, rgba(254, 240, 138, 0.3), transparent 65%),
    linear-gradient(145deg, rgba(234, 179, 8, 0.36), rgba(217, 119, 6, 0.25));
  box-shadow:
    0 0 20px rgba(250, 204, 21, 0.6),
    inset 0 0 12px rgba(254, 240, 138, 0.25);
  transform: translateY(-2px);
}

.ingot-icon {
  font-size: 1.4rem;
  line-height: 1.1;
  filter: drop-shadow(0 0 8px rgba(250, 204, 21, 0.55));
}

.ingot-coin {
  font-size: 0.92rem;
  font-weight: 900;
  color: #fff;
}

.ingot-gold {
  font-size: 0.8rem;
  font-weight: 800;
  color: #fde047;
}

.topup-preview-box {
  background: #110d09;
  border: 1px solid rgba(212, 162, 76, 0.35);
  border-radius: 10px;
  padding: 0.9rem 1.05rem;
  margin-bottom: 1rem;
}

.topup-preview-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.86rem;
  color: var(--text-secondary);
  padding: 0.22rem 0;
}

.topup-preview-total {
  margin-top: 0.55rem;
  padding-top: 0.6rem;
  border-top: 1px dashed rgba(212, 162, 76, 0.3);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.topup-total-value {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--accent-gold);
}

.topup-qr-card {
  border-color: var(--border-bright);
}

.topup-qr-empty {
  text-align: center;
  padding: 2.6rem 1.2rem;
  border: 1px dashed rgba(212, 162, 76, 0.35);
  border-radius: 10px;
  background: #120e0a;
}

.topup-qr-empty-icon {
  font-size: 2.6rem;
  margin-bottom: 0.5rem;
}

.topup-qr-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1rem;
  align-items: center;
}

.topup-qr-img-wrap {
  background: #ffffff;
  border-radius: 12px;
  padding: 0.6rem;
  border: 2px solid var(--border-bright);
  text-align: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

.topup-qr-img-wrap img {
  width: 100%;
  max-width: 205px;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 6px;
}

.topup-polling-indicator {
  margin-top: 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: #065f46;
  background: #d1fae5;
  padding: 0.25rem 0.4rem;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.topup-bank-details {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.bank-info-row {
  background: #110d09;
  border: 1px solid var(--border-gold);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.bank-info-label {
  display: block;
  font-size: 0.74rem;
  color: var(--text-secondary);
}

.bank-info-val {
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--text-primary);
}

.bank-info-val.mono {
  font-family: Consolas, monospace;
  font-size: 1.02rem;
  letter-spacing: 0.5px;
}

.bank-info-val.gold {
  color: var(--accent-gold);
  font-size: 1.05rem;
  font-weight: 800;
}

.bank-info-row.mandatory-memo {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.16), rgba(234, 88, 12, 0.18));
  border: 1px solid var(--border-bright);
}

.bank-memo-code {
  font-family: Consolas, "Courier New", monospace;
  font-size: 1.28rem;
  font-weight: 900;
  color: #fb923c;
  letter-spacing: 1.2px;
}

.topup-success-panel {
  text-align: center;
  padding: 2rem 1.2rem;
  background: radial-gradient(circle at center, rgba(16, 185, 129, 0.2), #110d09 75%);
  border: 1px solid rgba(16, 185, 129, 0.5);
  border-radius: 10px;
}

.celebration-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  overflow: hidden;
}

.confetti-piece {
  position: absolute;
  width: 10px;
  height: 16px;
  border-radius: 2px;
  opacity: 0.95;
  animation: confettiFall 2.6s ease-out forwards;
}

@keyframes confettiFall {
  0% {
    transform: translateY(-20px) rotate(0deg) scale(1);
    opacity: 1;
  }

  100% {
    transform: translateY(95vh) rotate(720deg) scale(0.7);
    opacity: 0;
  }
}

/* =====================================================================
   NEWS, EVENTS & ANNOUNCEMENTS SYSTEM (/news & Homepage Featured)
   ===================================================================== */
.news-hero-banner {
  border-color: var(--border-bright);
  background:
    radial-gradient(circle at 88% 25%, rgba(249, 115, 22, 0.24), transparent 52%),
    linear-gradient(125deg, rgba(185, 28, 28, 0.24), rgba(245, 158, 11, 0.14)),
    var(--bg-card);
}

.home-news-section {
  border-color: var(--border-bright);
  background:
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.1), transparent 55%),
    var(--bg-card);
}

.home-news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(265px, 1fr));
  gap: 0.95rem;
}

.home-news-card {
  background: #130f0b;
  border: 1px solid var(--border-gold);
  border-radius: 10px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.65rem;
  cursor: pointer;
  transition: transform 0.14s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  position: relative;
  overflow: hidden;
}

.home-news-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-bright);
  background: #1b1510;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.48);
}

.home-news-card.cat-EVENT {
  border-top: 3px solid #f97316;
}

.home-news-card.cat-NEWS {
  border-top: 3px solid #38bdf8;
}

.home-news-card.cat-UPDATE {
  border-top: 3px solid #fbbf24;
}

.home-news-card.cat-GUIDE {
  border-top: 3px solid #34d399;
}

.news-cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.16rem 0.55rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* Đỏ cam cho SỰ KIỆN */
.news-cat-pill.cat-EVENT {
  background: rgba(249, 115, 22, 0.18);
  color: #fdba74;
  border: 1px solid rgba(249, 115, 22, 0.5);
}

/* Xanh dương cho TIN TỨC */
.news-cat-pill.cat-NEWS {
  background: rgba(56, 189, 248, 0.16);
  color: #7dd3fc;
  border: 1px solid rgba(56, 189, 248, 0.48);
}

/* Vàng cho BẢO TRÌ / CẬP NHẬT */
.news-cat-pill.cat-UPDATE {
  background: rgba(251, 191, 36, 0.18);
  color: #fde68a;
  border: 1px solid rgba(251, 191, 36, 0.5);
}

/* Xanh lá cho HƯỚNG DẪN */
.news-cat-pill.cat-GUIDE {
  background: rgba(52, 211, 153, 0.16);
  color: #6ee7b7;
  border: 1px solid rgba(52, 211, 153, 0.48);
}

.news-pin-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.22rem;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.14rem 0.48rem;
  border-radius: 6px;
  background: linear-gradient(135deg, #dc2626, #ea580c);
  color: #fff;
  border: 1px solid #fca5a5;
}

.news-hot-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.14rem 0.48rem;
  border-radius: 6px;
  background: rgba(245, 158, 11, 0.18);
  color: #fcd34d;
  border: 1px solid rgba(245, 158, 11, 0.45);
}

.home-news-title {
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.38;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-news-card:hover .home-news-title {
  color: var(--accent-gold);
}

.home-news-summary {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.48;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-news-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  padding-top: 0.5rem;
  border-top: 1px solid rgba(212, 162, 76, 0.14);
}

.news-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-bottom: 1.15rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(212, 162, 76, 0.2);
}

.news-search-wrap {
  min-width: 260px;
  flex: 1;
  max-width: 360px;
}

.news-cards-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.news-card-item {
  background: #120e0a;
  border: 1px solid var(--border-gold);
  border-radius: 11px;
  padding: 1.05rem 1.2rem;
  display: grid;
  grid-template-columns: 74px 1fr auto;
  gap: 1.05rem;
  align-items: center;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.12s ease;
}

.news-card-item:hover {
  border-color: var(--border-bright);
  background: #1b1510;
  transform: translateX(2px);
}

.news-card-item.pinned {
  border-color: rgba(245, 158, 11, 0.55);
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.08), #120e0a 45%);
}

.news-thumb-box {
  width: 74px;
  height: 74px;
  border-radius: 12px;
  background: radial-gradient(circle at center, #261b11, #0f0b08);
  border: 1px solid var(--border-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  flex-shrink: 0;
  overflow: hidden;
}

.news-thumb-box img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  image-rendering: pixelated;
}

.news-card-title {
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--accent-gold);
  margin: 0.3rem 0 0.35rem;
  line-height: 1.35;
}

.news-card-summary {
  font-size: 0.87rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 0.45rem;
}

.news-card-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.85rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.news-detail-card {
  border-color: var(--border-bright);
  background: #130f0b;
}

.news-detail-top-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(212, 162, 76, 0.2);
}

.news-detail-header {
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px dashed rgba(212, 162, 76, 0.3);
}

.news-detail-title {
  font-size: 1.48rem;
  font-weight: 800;
  color: var(--accent-gold);
  line-height: 1.35;
  margin: 0.55rem 0;
}

/* Rich Typography for Article Content */
.news-article-content {
  font-size: 0.96rem;
  color: var(--text-primary);
  line-height: 1.72;
}

.news-article-content h2,
.news-article-content h3,
.news-article-content h4 {
  color: var(--accent-gold);
  margin: 1.25rem 0 0.55rem;
  font-weight: 800;
}

.news-article-content p {
  margin-bottom: 0.85rem;
}

.news-article-content ul,
.news-article-content ol {
  padding-left: 1.35rem;
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
}

.news-article-content code {
  background: #231a12;
  color: #fde68a;
  padding: 0.12rem 0.42rem;
  border-radius: 5px;
  border: 1px solid rgba(212, 162, 76, 0.3);
  font-family: Consolas, monospace;
  font-size: 0.88em;
}

.news-article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.9rem 0 1.15rem;
  background: #0f0c09;
  border: 1px solid var(--border-gold);
  border-radius: 8px;
  overflow: hidden;
}

.news-article-content th {
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-gold);
  font-weight: 800;
}

.news-article-content td,
.news-article-content th {
  padding: 0.65rem 0.85rem;
  border: 1px solid rgba(212, 162, 76, 0.2);
}

.news-callout {
  padding: 0.85rem 1.05rem;
  border-radius: 9px;
  margin: 0.85rem 0 1.05rem;
  font-size: 0.91rem;
  line-height: 1.55;
}

.news-callout.hot {
  background: linear-gradient(135deg, rgba(234, 88, 12, 0.16), rgba(220, 38, 38, 0.14));
  border-left: 4px solid #f97316;
  border-top: 1px solid rgba(249, 115, 22, 0.35);
  border-right: 1px solid rgba(249, 115, 22, 0.35);
  border-bottom: 1px solid rgba(249, 115, 22, 0.35);
  color: #fed7aa;
}

.news-callout.info {
  background: rgba(56, 189, 248, 0.11);
  border-left: 4px solid #38bdf8;
  border-top: 1px solid rgba(56, 189, 248, 0.32);
  border-right: 1px solid rgba(56, 189, 248, 0.32);
  border-bottom: 1px solid rgba(56, 189, 248, 0.32);
  color: #bae6fd;
}

.news-callout.tip {
  background: rgba(16, 185, 129, 0.11);
  border-left: 4px solid #10b981;
  border-top: 1px solid rgba(16, 185, 129, 0.32);
  border-right: 1px solid rgba(16, 185, 129, 0.32);
  border-bottom: 1px solid rgba(16, 185, 129, 0.32);
  color: #a7f3d0;
}

.news-detail-footer-cta {
  margin-top: 1.4rem;
  padding: 1rem 1.15rem;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(185, 28, 28, 0.12));
  border: 1px solid var(--border-bright);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.news-live-preview-box {
  background: #0e0b08;
  border: 1px solid var(--border-gold);
  border-radius: 10px;
  padding: 1rem 1.1rem;
  max-height: 560px;
  overflow-y: auto;
}

/* =====================================================================
   COMMUNITY FORUM (/forum) — DARK & ORANGE-GOLD NINJA THEME
   ===================================================================== */
.forum-header-card {
  background: linear-gradient(125deg, rgba(185, 28, 28, 0.24), rgba(245, 158, 11, 0.14)), var(--bg-card);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius);
  padding: 1.25rem 1.45rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.38);
}

.forum-header-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-bottom: 0.95rem;
  border-bottom: 1px solid rgba(212, 162, 76, 0.22);
  margin-bottom: 0.95rem;
}

.forum-main-title {
  font-size: 1.42rem;
  font-weight: 800;
  color: var(--accent-gold);
  letter-spacing: 0.3px;
}

.forum-main-sub {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-top: 0.2rem;
  font-weight: 600;
}

.forum-header-stats-pills {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.forum-stat-pill {
  background: rgba(16, 13, 10, 0.85);
  border: 1px solid var(--border-gold);
  color: var(--text-secondary);
  padding: 0.3rem 0.72rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
}

.forum-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.forum-cat-pills {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.forum-cat-btn {
  background: #120e0b;
  color: var(--text-secondary);
  border: 1px solid var(--border-gold);
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.forum-cat-btn:hover {
  border-color: var(--border-bright);
  color: var(--text-primary);
  background: #1e1711;
}

.forum-cat-btn.active {
  background: linear-gradient(135deg, #fbbf24, #ea580c);
  color: #140f0a;
  border-color: var(--border-bright);
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.3);
}

/* 2. Category Summary Cards Grid (2 Columns - Bright & Lively with Left Gradient Accent) */
.forum-category-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.95rem;
  margin-bottom: 1.3rem;
}

.forum-cat-summary-card {
  background: linear-gradient(135deg, rgba(30, 23, 17, 0.94), rgba(19, 14, 10, 0.94));
  border: 1px solid rgba(212, 162, 76, 0.42);
  border-left: 5px solid #fbbf24;
  border-radius: 12px;
  padding: 1.05rem 1.2rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  cursor: pointer;
  transition: all 0.16s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.42);
}

.forum-cat-summary-card.cat-gop-y {
  border-left-color: #fbbf24;
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.16) 0%, rgba(24, 18, 13, 0.94) 55%);
}

.forum-cat-summary-card.cat-bao-loi {
  border-left-color: #f87171;
  background: linear-gradient(90deg, rgba(239, 68, 68, 0.16) 0%, rgba(24, 18, 13, 0.94) 55%);
}

.forum-cat-summary-card.cat-ho-tro {
  border-left-color: #38bdf8;
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.16) 0%, rgba(24, 18, 13, 0.94) 55%);
}

.forum-cat-summary-card.cat-thao-luan {
  border-left-color: #34d399;
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.16) 0%, rgba(24, 18, 13, 0.94) 55%);
}

.forum-cat-summary-card.cat-giao-dich {
  border-left-color: #c084fc;
  background: linear-gradient(90deg, rgba(168, 85, 247, 0.16) 0%, rgba(24, 18, 13, 0.94) 55%);
}

.forum-cat-summary-card:hover {
  border-color: #fde047;
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.55);
}

.forum-cat-summary-card.active {
  border-color: #fde047;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.3);
}

.forum-cat-icon-box {
  width: 54px;
  height: 54px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.65rem;
  flex-shrink: 0;
  border: 1.5px solid transparent;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.forum-cat-icon-box.cat-gop-y {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.28), rgba(217, 119, 6, 0.16));
  border-color: #fbbf24;
  color: #fde047;
}

.forum-cat-icon-box.cat-bao-loi {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.28), rgba(185, 28, 28, 0.16));
  border-color: #f87171;
  color: #fca5a5;
}

.forum-cat-icon-box.cat-ho-tro {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.28), rgba(2, 132, 199, 0.16));
  border-color: #38bdf8;
  color: #7dd3fc;
}

.forum-cat-icon-box.cat-thao-luan {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.28), rgba(5, 150, 105, 0.16));
  border-color: #34d399;
  color: #6ee7b7;
}

.forum-cat-icon-box.cat-giao-dich {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.28), rgba(126, 34, 206, 0.16));
  border-color: #c084fc;
  color: #e9d5ff;
}

.forum-cat-card-body {
  flex: 1;
  min-width: 0;
}

.forum-cat-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.forum-cat-card-title {
  font-size: 1.05rem;
  font-weight: 900;
  color: #fff;
}

.forum-cat-card-stats {
  font-size: 0.78rem;
  font-weight: 800;
  color: #fde047;
  background: rgba(245, 158, 11, 0.16);
  border: 1px solid rgba(245, 158, 11, 0.42);
  padding: 0.16rem 0.58rem;
  border-radius: 999px;
}

.forum-cat-card-desc {
  font-size: 0.83rem;
  color: #e2d5c1;
  margin: 0.25rem 0 0.5rem;
}

.forum-cat-card-latest {
  font-size: 0.78rem;
  color: #f3e8d6;
  background: rgba(12, 9, 7, 0.75);
  border: 1px solid rgba(212, 162, 76, 0.26);
  padding: 0.34rem 0.62rem;
  border-radius: 7px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 3. Top 5 Active Members of the Week — Bục Vinh Danh (Honor Podium) */
.forum-top-members-card {
  margin-bottom: 1.25rem;
  padding: 1.2rem 1.35rem;
  background:
    radial-gradient(circle at 50% 0%, rgba(250, 204, 21, 0.14), transparent 65%),
    var(--bg-card);
  border-color: rgba(250, 204, 21, 0.55);
}

.forum-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.95rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgba(212, 162, 76, 0.24);
}

.forum-section-title {
  font-size: 1.12rem;
  font-weight: 900;
  color: #fde047;
}

.forum-top-users-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: 0.85rem;
  align-items: stretch;
}

.forum-top-user-item {
  background: rgba(20, 15, 10, 0.92);
  border: 1.5px solid var(--border-gold);
  border-radius: 12px;
  padding: 0.8rem 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
  position: relative;
  overflow: hidden;
}

.forum-top-user-item:hover {
  transform: translateY(-3px);
  border-color: #fde047;
}

/* Top 1: Vương Miện Vàng Hoàng Kim */
.forum-top-user-item.rank-1 {
  border: 2px solid #facc15;
  background:
    radial-gradient(circle at top right, rgba(250, 204, 21, 0.28), transparent 60%),
    linear-gradient(135deg, rgba(66, 38, 8, 0.95), rgba(22, 15, 9, 0.95));
  box-shadow: 0 8px 22px rgba(234, 179, 8, 0.28), inset 0 0 12px rgba(250, 204, 21, 0.15);
}

/* Top 2: Huy Chương Bạc Bạch Kim */
.forum-top-user-item.rank-2 {
  border: 1.5px solid #cbd5e1;
  background:
    radial-gradient(circle at top right, rgba(226, 232, 240, 0.2), transparent 60%),
    linear-gradient(135deg, rgba(30, 41, 59, 0.92), rgba(18, 15, 12, 0.95));
  box-shadow: 0 6px 18px rgba(148, 163, 184, 0.22);
}

/* Top 3: Huy Chương Đồng Đỏ Lửa */
.forum-top-user-item.rank-3 {
  border: 1.5px solid #f97316;
  background:
    radial-gradient(circle at top right, rgba(249, 115, 22, 0.22), transparent 60%),
    linear-gradient(135deg, rgba(58, 26, 10, 0.92), rgba(18, 14, 10, 0.95));
  box-shadow: 0 6px 18px rgba(234, 88, 12, 0.22);
}

.podium-rank-label {
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #fde047;
  margin-bottom: 0.12rem;
}

.forum-top-user-item.rank-2 .podium-rank-label {
  color: #e2e8f0;
}

.forum-top-user-item.rank-3 .podium-rank-label {
  color: #fdba74;
}

.forum-rank-badge {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 900;
  flex-shrink: 0;
  background: #231b13;
  color: var(--text-secondary);
  border: 1px solid var(--border-gold);
}

.forum-rank-badge.r1 {
  background: linear-gradient(135deg, #fef08a, #eab308, #ca8a04);
  color: #1c0d04;
  border: 1.5px solid #fef9c3;
  box-shadow: 0 0 14px rgba(250, 204, 21, 0.6);
  font-size: 1.2rem;
}

.forum-rank-badge.r2 {
  background: linear-gradient(135deg, #f8fafc, #94a3b8);
  color: #0f172a;
  border: 1.5px solid #ffffff;
  box-shadow: 0 0 12px rgba(203, 213, 225, 0.45);
  font-size: 1.15rem;
}

.forum-rank-badge.r3 {
  background: linear-gradient(135deg, #fed7aa, #ea580c);
  color: #1c0d04;
  border: 1.5px solid #ffedd5;
  box-shadow: 0 0 12px rgba(249, 115, 22, 0.45);
  font-size: 1.15rem;
}

/* 4. Forum Posts List & Toolbar */
.forum-posts-card {
  padding: 1.2rem 1.3rem;
}

.forum-posts-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  flex-wrap: wrap;
  padding-bottom: 0.85rem;
  margin-bottom: 0.85rem;
  border-bottom: 1px solid rgba(212, 162, 76, 0.22);
}

.forum-toolbar-controls {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.forum-search-wrap {
  min-width: 240px;
}

.forum-sort-select {
  width: auto;
  min-width: 165px;
  font-weight: 600;
}

.forum-posts-list {
  display: flex;
  flex-direction: column;
  gap: 0.62rem;
}

.forum-post-row {
  background: #120e0a;
  border: 1px solid var(--border-gold);
  border-radius: 10px;
  padding: 0.88rem 1.05rem;
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 0.9rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.forum-post-row:hover {
  border-color: var(--border-bright);
  background: #1a140e;
  transform: translateX(2px);
}

.forum-post-row.pinned {
  border-color: rgba(245, 158, 11, 0.52);
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.09), #120e0a 48%);
}

.forum-avatar-circle {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: radial-gradient(circle at center, #2b1f14, #0f0b08);
  border: 2px solid var(--border-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  padding: 4px;
}

.forum-avatar-circle.admin-avatar {
  border-color: #ef4444;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.35);
}

.forum-avatar-circle img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: pixelated;
}

.forum-post-main {
  min-width: 0;
}

.forum-post-row-line1 {
  display: flex;
  align-items: center;
  gap: 0.42rem;
  flex-wrap: wrap;
  margin-bottom: 0.36rem;
}

.forum-pin-icon {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  background: rgba(245, 158, 11, 0.18);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.45);
  padding: 0.1rem 0.42rem;
  border-radius: 5px;
  font-size: 0.72rem;
  font-weight: 800;
}

.forum-cat-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.12rem 0.48rem;
  border-radius: 5px;
  font-size: 0.73rem;
  font-weight: 800;
  border: 1px solid transparent;
}

.forum-cat-tag.cat-gop-y {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.4);
}

.forum-cat-tag.cat-bao-loi {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.4);
}

.forum-cat-tag.cat-ho-tro {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.4);
}

.forum-cat-tag.cat-thao-luan {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.4);
}

.forum-cat-tag.cat-giao-dich {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  border-color: rgba(168, 85, 247, 0.4);
}

.forum-post-title-text {
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.35;
}

.forum-post-row:hover .forum-post-title-text {
  color: var(--accent-gold);
}

.forum-status-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.1rem 0.46rem;
  border-radius: 5px;
  font-size: 0.71rem;
  font-weight: 800;
}

.forum-status-badge.st-cho-xu-ly {
  background: rgba(148, 163, 184, 0.15);
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, 0.38);
}

.forum-status-badge.st-dang-xu-ly {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.42);
}

.forum-status-badge.st-da-xu-ly {
  background: rgba(16, 185, 129, 0.16);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.45);
}

.forum-status-badge.st-dang-ban {
  background: rgba(249, 115, 22, 0.16);
  color: #fdba74;
  border: 1px solid rgba(249, 115, 22, 0.45);
}

.forum-status-badge.st-da-ban {
  background: rgba(148, 163, 184, 0.14);
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.32);
}

.forum-admin-replied-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.22rem;
  background: rgba(220, 38, 38, 0.18);
  color: #fca5a5;
  border: 1px solid #ef4444;
  padding: 0.1rem 0.5rem;
  border-radius: 5px;
  font-size: 0.71rem;
  font-weight: 800;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.25);
}

.forum-post-row-line2 {
  display: flex;
  align-items: center;
  gap: 0.42rem;
  flex-wrap: wrap;
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.forum-author-name {
  font-weight: 700;
  color: #f3e8d6;
}

.forum-server-badge {
  background: rgba(245, 158, 11, 0.14);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
  padding: 0.05rem 0.36rem;
  border-radius: 4px;
  font-size: 0.69rem;
  font-weight: 800;
}

.forum-level-badge {
  background: rgba(168, 85, 247, 0.18);
  color: #d8b4fe;
  border: 1px solid rgba(168, 85, 247, 0.45);
  padding: 0.05rem 0.4rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 800;
}

.forum-admin-role-badge {
  background: linear-gradient(135deg, #dc2626, #991b1b);
  color: #fff;
  border: 1px solid #f87171;
  padding: 0.05rem 0.42rem;
  border-radius: 4px;
  font-size: 0.69rem;
  font-weight: 800;
}

.forum-time-text {
  color: var(--text-muted);
  border-bottom: 1px dotted rgba(181, 166, 143, 0.35);
  cursor: help;
}

.forum-last-reply-info {
  color: #d4a24c;
  font-weight: 600;
}

.forum-post-metrics {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.forum-metric-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  padding: 0.26rem 0.56rem;
  border-radius: 7px;
  font-size: 0.8rem;
  font-weight: 800;
  background: #19130e;
  border: 1px solid rgba(212, 162, 76, 0.22);
}

.forum-metric-pill.likes {
  color: #fb7185;
  border-color: rgba(251, 113, 133, 0.32);
}

.forum-metric-pill.comments {
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.32);
}

.forum-metric-pill.views {
  color: #cbd5e1;
  border-color: rgba(148, 163, 184, 0.25);
}

/* 5. Forum Post Detail, Likes, Admin Moderation & Comments */
.forum-detail-card {
  border-color: var(--border-bright);
  background: #130f0b;
}

.forum-detail-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding-bottom: 0.85rem;
  margin-bottom: 0.9rem;
  border-bottom: 1px solid rgba(212, 162, 76, 0.22);
}

.forum-like-action-btn.liked {
  background: rgba(244, 63, 94, 0.2);
  border-color: #fb7185;
  color: #fda4af;
  box-shadow: 0 0 12px rgba(244, 63, 94, 0.28);
}

.forum-admin-mod-bar {
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.14), rgba(245, 158, 11, 0.1));
  border: 1px solid rgba(239, 68, 68, 0.5);
  border-radius: 9px;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.forum-detail-post-box {
  background: #18130e;
  border: 1px solid var(--border-gold);
  border-radius: 10px;
  padding: 1.2rem 1.35rem;
  margin-bottom: 1.3rem;
}

.forum-detail-title {
  font-size: 1.32rem;
  font-weight: 800;
  color: var(--accent-gold);
  line-height: 1.38;
  margin: 0.5rem 0 0.85rem;
}

.forum-detail-author-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
  padding-bottom: 0.85rem;
  margin-bottom: 1rem;
  border-bottom: 1px dashed rgba(212, 162, 76, 0.26);
}

.forum-detail-content {
  font-size: 0.96rem;
  color: var(--text-primary);
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
}

.forum-comments-section {
  margin-top: 0.5rem;
}

.forum-comments-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.85rem;
}

.forum-comments-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.15rem;
}

.forum-comment-item {
  background: #120e0a;
  border: 1px solid var(--border-gold);
  border-radius: 10px;
  padding: 0.9rem 1.1rem;
}

.forum-comment-item.admin-reply {
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.12), rgba(245, 158, 11, 0.08)), #15100c;
  border: 1px solid #ef4444;
  box-shadow: 0 0 14px rgba(220, 38, 38, 0.18);
}

.forum-comment-admin-banner {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.16rem 0.6rem;
  border-radius: 5px;
  margin-bottom: 0.5rem;
  letter-spacing: 0.3px;
}

.forum-comment-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.45rem;
}

.forum-comment-body {
  font-size: 0.92rem;
  color: var(--text-primary);
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}

/* Modal Tạo Bài Viết */
.forum-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 250;
  background: rgba(8, 6, 4, 0.82);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.forum-modal-dialog {
  width: 100%;
  max-width: 680px;
  background: var(--bg-card);
  border: 1px solid var(--border-bright);
  border-radius: 12px;
  padding: 1.35rem 1.5rem;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.65);
  max-height: 92vh;
  overflow-y: auto;
}

.forum-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding-bottom: 0.85rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(212, 162, 76, 0.25);
}

.forum-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(212, 162, 76, 0.2);
}

@media (max-width: 1024px) {
  .home-command-center {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .forum-category-cards-grid {
    grid-template-columns: 1fr;
  }

  .quick-actions-grid {
    grid-template-columns: 1fr;
  }

  .forum-post-row {
    grid-template-columns: 42px 1fr;
  }

  .forum-post-metrics {
    grid-column: 1 / -1;
    justify-content: flex-end;
    padding-top: 0.35rem;
    border-top: 1px dashed rgba(212, 162, 76, 0.16);
  }
}

@media (max-width: 640px) {
  .home-hero {
    padding: 1.15rem 1.1rem;
  }

  .home-title {
    font-size: 1.48rem;
  }

  .home-hero-cta-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.42rem;
  }

  .btn-hero-download,
  .btn-hero-topup,
  .btn-hero-giftcode {
    font-size: 0.75rem;
    padding: 0.6rem 0.35rem;
  }

  .wiki-grid {
    grid-template-columns: 1fr;
  }

  .topup-qr-layout {
    grid-template-columns: 1fr;
  }

  .news-card-item {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   6. GIFTCODE WEB, QUÀ MỐC NẠP TÍCH LUỸ & BẢNG XẾP HẠNG NHẪN GIẢ
   ============================================================ */

.giftcode-redeem-bar {
  display: flex;
  gap: 0.75rem;
  align-items: stretch;
  flex-wrap: wrap;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.14), rgba(220, 38, 38, 0.1));
  border: 1px solid rgba(250, 204, 21, 0.45);
  border-radius: 12px;
  padding: 0.85rem;
}

.giftcode-input-wrap {
  position: relative;
  flex: 1;
  min-width: 240px;
  display: flex;
  align-items: center;
}

.giftcode-input-icon {
  position: absolute;
  left: 0.9rem;
  font-size: 1.25rem;
  pointer-events: none;
}

.giftcode-main-input {
  padding-left: 2.75rem !important;
  font-size: 1.05rem !important;
  font-weight: 900 !important;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #fde047 !important;
  border-color: rgba(250, 204, 21, 0.55) !important;
  background: rgba(15, 11, 7, 0.92) !important;
}

.giftcode-submit-btn {
  padding: 0.75rem 1.4rem !important;
  font-size: 0.96rem !important;
  font-weight: 900 !important;
  white-space: nowrap;
}

.public-giftcodes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 0.9rem;
}

.public-gc-card {
  background: linear-gradient(145deg, #1b140d 0%, #120d09 100%);
  border: 1px solid rgba(212, 162, 76, 0.38);
  border-radius: 12px;
  padding: 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.75rem;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.public-gc-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent-gold);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
}

.public-gc-card.claimed {
  border-color: rgba(16, 185, 129, 0.5);
  background: linear-gradient(145deg, rgba(6, 78, 59, 0.18), #120d09);
}

.public-gc-code-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #1c1008;
  font-weight: 900;
  font-size: 0.88rem;
  letter-spacing: 0.8px;
  padding: 0.22rem 0.68rem;
  border-radius: 6px;
}

.gc-reward-items-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
}

.gc-reward-item-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  background: #0e0a07;
  border: 1px solid rgba(212, 162, 76, 0.32);
  border-radius: 8px;
  padding: 0.26rem 0.55rem;
  font-size: 0.78rem;
  color: #f8fafc;
}

.gc-reward-item-pill img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

/* Thanh tiến trình Tổng Nạp Tích Luỹ & 6 Mốc Quà */
.milestone-progress-panel {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(245, 158, 11, 0.1)), #140f0a;
  border: 1px solid rgba(16, 185, 129, 0.45);
  border-radius: 12px;
  padding: 1rem 1.2rem;
  margin-bottom: 1.25rem;
}

.milestone-bar-track {
  width: 100%;
  height: 14px;
  background: #0b0805;
  border: 1px solid rgba(212, 162, 76, 0.35);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}

.milestone-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #f59e0b, #ef4444);
  border-radius: 999px;
  transition: width 0.45s ease;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.55);
}

.milestone-steps-row {
  display: flex;
  justify-content: space-between;
  margin-top: 0.4rem;
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--text-secondary);
}

.milestones-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 1rem;
}

.milestone-card {
  background: linear-gradient(155deg, #1c150e 0%, #110c08 100%);
  border: 1px solid rgba(212, 162, 76, 0.35);
  border-radius: 12px;
  padding: 1.1rem 1.15rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.85rem;
  position: relative;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.milestone-card.ready-claim {
  border-color: #10b981;
  box-shadow: 0 0 22px rgba(16, 185, 129, 0.28);
}

.milestone-card.claimed {
  border-color: rgba(16, 185, 129, 0.42);
  opacity: 0.92;
}

/* BẢNG XẾP HẠNG NHẪN GIẢ (/ranking) */
.ranking-tabs-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.65rem;
  margin-bottom: 1.2rem;
}

.ranking-tab-btn {
  padding: 0.8rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--border-gold);
  background: #17110c;
  color: var(--text-primary);
  font-weight: 800;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.18s ease;
}

.ranking-tab-btn:hover {
  border-color: var(--accent-gold);
  color: #fde047;
}

.ranking-tab-btn.active {
  background: linear-gradient(135deg, #d97706, #b91c1c);
  border-color: #fde047;
  color: #fff;
  box-shadow: 0 6px 18px rgba(217, 119, 6, 0.35);
}

.ranking-podium-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.podium-card {
  background: linear-gradient(155deg, #1d150e 0%, #120d09 100%);
  border: 1px solid var(--border-gold);
  border-radius: 12px;
  padding: 1.1rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.95rem;
  position: relative;
  overflow: hidden;
}

.podium-card.rank-1 {
  border-color: #facc15;
  background: linear-gradient(145deg, rgba(250, 204, 21, 0.16), #16100b);
  box-shadow: 0 8px 26px rgba(250, 204, 21, 0.22);
}

.podium-card.rank-2 {
  border-color: #94a3b8;
  background: linear-gradient(145deg, rgba(148, 163, 184, 0.14), #15100c);
}

.podium-card.rank-3 {
  border-color: #fb923c;
  background: linear-gradient(145deg, rgba(251, 146, 60, 0.14), #15100c);
}

.podium-avatar-box {
  width: 58px;
  height: 58px;
  border-radius: 12px;
  background: #0d0906;
  border: 2px solid var(--border-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
}

.podium-avatar-box img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.rank-medal-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  padding: 0.18rem 0.5rem;
  border-radius: 6px;
  font-weight: 900;
  font-size: 0.82rem;
}

.rank-medal-pill.r1 {
  background: linear-gradient(135deg, #facc15, #ca8a04);
  color: #1c1008;
}

.rank-medal-pill.r2 {
  background: linear-gradient(135deg, #e2e8f0, #64748b);
  color: #0f172a;
}

.rank-medal-pill.r3 {
  background: linear-gradient(135deg, #fdba74, #c2410c);
  color: #fff;
}

.rank-medal-pill.rn {
  background: #1e1610;
  color: var(--text-secondary);
  border: 1px solid rgba(212, 162, 76, 0.28);
}

.vip-honor-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.76rem;
}

.vip-honor-badge.vip-tier-6 {
  background: linear-gradient(135deg, #dc2626, #f59e0b);
  color: #fff;
  border: 1px solid #fde047;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.35);
}

.vip-honor-badge.vip-tier-5 {
  background: linear-gradient(135deg, #7c3aed, #db2777);
  color: #fff;
  border: 1px solid #f472b6;
}

.vip-honor-badge.vip-tier-4 {
  background: rgba(245, 158, 11, 0.2);
  color: #fde047;
  border: 1px solid rgba(250, 204, 21, 0.5);
}

.vip-honor-badge.vip-tier-3,
.vip-honor-badge.vip-tier-2,
.vip-honor-badge.vip-tier-1,
.vip-honor-badge.vip-tier-0 {
  background: rgba(16, 185, 129, 0.16);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.45);
}

/* ============================================================
   7. HỆ THỐNG MỐC NẠP XOAY TUA THEO THÁNG (5 BỘ QUÀ LUÂN PHIÊN)
   ============================================================ */

.milestone-season-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.18) 0%, rgba(245, 158, 11, 0.18) 55%, rgba(16, 185, 129, 0.16) 100%), #150e09;
  border: 1px solid rgba(250, 204, 21, 0.55);
  border-radius: 12px;
  padding: 0.95rem 1.2rem;
  margin-bottom: 1rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.milestone-season-left {
  flex: 1;
  min-width: 260px;
}

.milestone-season-badge {
  font-size: 0.98rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.3px;
  line-height: 1.4;
}

.milestone-season-sub {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
  line-height: 1.45;
}

.milestone-season-countdown {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(12, 9, 6, 0.88);
  border: 1px solid rgba(16, 185, 129, 0.55);
  border-radius: 999px;
  padding: 0.48rem 0.95rem;
  font-size: 0.84rem;
  color: #6ee7b7;
  white-space: nowrap;
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.2);
}

.milestone-season-countdown strong {
  color: #fde047;
  font-weight: 900;
}

.milestone-rotation-tabs-wrap {
  margin-bottom: 1rem;
}

.milestone-rotation-tabs-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.55rem;
}

.milestone-rotation-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(175px, 1fr));
  gap: 0.55rem;
}

@media (max-width: 1024px) {
  .milestone-rotation-tabs {
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  }
}

.milestone-rot-tab {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.32rem;
  text-align: left;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  background: linear-gradient(145deg, #19120c, #110c08);
  border: 1px solid rgba(212, 162, 76, 0.32);
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.18s ease;
}

.milestone-rot-tab:hover {
  transform: translateY(-2px);
  border-color: var(--accent-gold);
}

.milestone-rot-tab.live-month-set {
  border-color: rgba(16, 185, 129, 0.65);
  background: linear-gradient(145deg, rgba(6, 78, 59, 0.25), #130e09);
}

.milestone-rot-tab.active {
  border-color: #fde047;
  background: linear-gradient(145deg, rgba(245, 158, 11, 0.24), rgba(185, 28, 28, 0.22), #17100a);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.28);
}

.rot-tab-title {
  font-size: 0.88rem;
  font-weight: 900;
  color: #fde047;
}

.rot-tab-theme {
  font-size: 0.73rem;
  color: #cbd5e1;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rot-tab-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.16rem 0.5rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.35);
  color: #cbd5e1;
  margin-top: 0.15rem;
}

.rot-tab-badge.is-live {
  background: linear-gradient(135deg, #10b981, #ea580c);
  border-color: #fde047;
  color: #fff;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.45);
}

.milestone-preview-notice {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.16), rgba(30, 41, 59, 0.6));
  border: 1px dashed #fbbf24;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  color: #fde68a;
  font-size: 0.85rem;
}

/* =====================================================================
   🖥️ TRUNG TÂM GIÁM SÁT VPS & ĐIỀU KHIỂN BẢO TRÌ (/admin)
   ===================================================================== */
.vps-command-center {
  margin-bottom: 1.35rem;
  border: 1.5px solid rgba(250, 204, 21, 0.55);
  background: linear-gradient(155deg, rgba(20, 25, 36, 0.97), rgba(16, 13, 10, 0.99));
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55), inset 0 0 24px rgba(245, 158, 11, 0.06);
}

.vps-monitor-block,
.vps-maint-block {
  background: rgba(12, 14, 20, 0.78);
  border: 1px solid rgba(212, 162, 76, 0.28);
  border-radius: 12px;
  padding: 1.05rem 1.15rem;
  margin-bottom: 1.1rem;
}

.vps-maint-block {
  margin-bottom: 0;
  border-color: rgba(245, 158, 11, 0.35);
  background: linear-gradient(145deg, rgba(28, 20, 14, 0.88), rgba(14, 11, 9, 0.94));
}

.vps-block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding-bottom: 0.75rem;
  margin-bottom: 0.9rem;
  border-bottom: 1px solid rgba(212, 162, 76, 0.22);
}

.vps-gauges-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
  gap: 0.85rem;
  margin-bottom: 0.95rem;
}

.vps-gauge-card {
  background: linear-gradient(145deg, rgba(24, 30, 42, 0.95), rgba(15, 18, 26, 0.95));
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: 11px;
  padding: 0.88rem 0.95rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  transition: border-color 0.2s ease, transform 0.15s ease;
}

.vps-gauge-card:hover {
  border-color: rgba(250, 204, 21, 0.55);
  transform: translateY(-2px);
}

.vps-gauge-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.vps-gauge-title {
  font-size: 0.84rem;
  font-weight: 800;
  color: #e2e8f0;
}

.vps-gauge-pct {
  font-size: 0.82rem;
  font-weight: 900;
  padding: 0.12rem 0.48rem;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.18);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.vps-gauge-pct.pct-yellow {
  background: rgba(245, 158, 11, 0.2);
  color: #fde047;
  border-color: rgba(245, 158, 11, 0.5);
}

.vps-gauge-pct.pct-red {
  background: rgba(239, 68, 68, 0.24);
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.6);
  animation: pulse-danger 1.4s infinite;
}

.vps-gauge-main {
  font-size: 0.96rem;
  font-weight: 800;
  color: #fde047;
}

.vps-progress-track {
  width: 100%;
  height: 11px;
  background: rgba(10, 12, 16, 0.92);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.24);
}

.vps-progress-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1), background 0.3s ease;
}

.vps-progress-fill.bar-green {
  background: linear-gradient(90deg, #10b981, #34d399);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.45);
}

.vps-progress-fill.bar-yellow {
  background: linear-gradient(90deg, #f59e0b, #fde047);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}

.vps-progress-fill.bar-red {
  background: linear-gradient(90deg, #dc2626, #f87171);
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.65);
}

.vps-gauge-sub {
  font-size: 0.77rem;
  color: #cbd5e1;
  line-height: 1.4;
}

.vps-actions-bar {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 0.75rem;
}

.vps-action-btn {
  padding: 0.76rem 1.05rem;
  font-weight: 800;
  font-size: 0.9rem;
}

.vps-maint-status-banner {
  border-radius: 10px;
  padding: 0.85rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  border: 1.5px solid rgba(16, 185, 129, 0.5);
  background: linear-gradient(135deg, rgba(6, 78, 59, 0.32), rgba(15, 23, 42, 0.65));
}

.vps-maint-status-banner.mode-countdown {
  border-color: #fbbf24;
  background: linear-gradient(135deg, rgba(180, 83, 9, 0.42), rgba(124, 45, 18, 0.38));
  box-shadow: 0 0 18px rgba(245, 158, 11, 0.3);
}

.vps-maint-status-banner.mode-maint {
  border-color: #f87171;
  background: linear-gradient(135deg, rgba(153, 27, 27, 0.48), rgba(69, 10, 10, 0.55));
  box-shadow: 0 0 18px rgba(239, 68, 68, 0.32);
}

.vps-maint-status-title {
  font-size: 1.02rem;
  font-weight: 900;
  color: #6ee7b7;
}

.vps-maint-status-banner.mode-countdown .vps-maint-status-title {
  color: #fde047;
}

.vps-maint-status-banner.mode-maint .vps-maint-status-title {
  color: #fca5a5;
}

.vps-maint-status-desc {
  font-size: 0.84rem;
  color: #e2e8f0;
  line-height: 1.45;
}

.vps-maint-btn-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
}

.vps-maint-btn {
  padding: 0.68rem 0.8rem;
  font-weight: 800;
  font-size: 0.84rem;
  text-align: center;
}

.vps-maint-btn.warn {
  border-color: rgba(245, 158, 11, 0.65);
  color: #fde047;
  background: rgba(245, 158, 11, 0.14);
}

.vps-maint-btn.warn:hover {
  background: rgba(245, 158, 11, 0.28);
  border-color: #fde047;
}

.vps-maint-btn.open {
  background: linear-gradient(135deg, #059669, #10b981);
  color: #ffffff;
  border-color: #34d399;
}

.maint-lock-banner {
  margin-bottom: 1.15rem;
  padding: 0.95rem 1.2rem;
  border-radius: 12px;
  border: 1.5px solid #f59e0b;
  background: linear-gradient(135deg, rgba(180, 83, 9, 0.35), rgba(127, 29, 29, 0.38));
  color: #fef3c7;
  font-size: 0.92rem;
  line-height: 1.55;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.42);
}

@keyframes pulse-danger {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.68;
  }
}

@media (max-width: 768px) {

  .vps-actions-bar,
  .vps-maint-btn-grid {
    grid-template-columns: 1fr;
  }
}

/* =====================================================================
   8. BỐ CỤC 2 CỘT TRANG QUẢN TRỊ (/admin) - LEFT SIDEBAR TABS
   ===================================================================== */
.admin-dashboard-layout {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  width: 100%;
}

.admin-sidebar {
  width: 260px;
  flex-shrink: 0;
  position: sticky;
  top: 20px;
  background: linear-gradient(160deg, rgba(24, 18, 12, 0.98) 0%, rgba(15, 11, 8, 0.99) 100%);
  border: 1.5px solid var(--border-gold);
  border-radius: 14px;
  padding: 0.95rem 0.78rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.52), inset 0 1px 0 rgba(250, 204, 21, 0.14);
  z-index: 25;
}

.admin-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
  padding: 0 0.35rem 0.72rem;
  margin-bottom: 0.65rem;
  border-bottom: 1px solid rgba(212, 162, 76, 0.25);
}

.admin-sidebar-kicker {
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.6px;
  color: var(--accent-gold);
  text-transform: uppercase;
}

.admin-sidebar-menu {
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
}

.admin-tab-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.62rem;
  padding: 0.72rem 0.78rem;
  border-radius: 10px;
  border: 1.5px solid rgba(212, 162, 76, 0.2);
  background: rgba(18, 14, 10, 0.85);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.14s ease, background 0.14s ease, color 0.14s ease, box-shadow 0.14s ease, transform 0.14s ease;
}

.admin-tab-btn:hover {
  border-color: rgba(250, 204, 21, 0.6);
  background: rgba(42, 30, 18, 0.75);
  color: #fde68a;
  transform: translateX(2px);
}

.admin-tab-btn.active {
  background: linear-gradient(135deg, rgba(234, 88, 12, 0.28) 0%, rgba(217, 119, 6, 0.22) 60%, rgba(28, 19, 11, 0.96) 100%);
  border-color: #facc15;
  color: #fde047;
  font-weight: 900;
  box-shadow: 0 0 18px rgba(245, 158, 11, 0.32), inset 0 0 12px rgba(250, 204, 21, 0.14);
}

.admin-tab-icon {
  font-size: 1.12rem;
  line-height: 1;
  flex-shrink: 0;
  width: 24px;
  text-align: center;
}

.admin-tab-label {
  flex: 1;
  min-width: 0;
  line-height: 1.28;
}

.admin-tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 20px;
  padding: 0 0.42rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 900;
  background: rgba(15, 23, 42, 0.82);
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, 0.35);
  flex-shrink: 0;
}

.admin-tab-badge.live {
  background: rgba(16, 185, 129, 0.2);
  color: #6ee7b7;
  border-color: rgba(16, 185, 129, 0.55);
}

.admin-tab-badge.warn {
  background: rgba(245, 158, 11, 0.22);
  color: #fde047;
  border-color: rgba(250, 204, 21, 0.58);
}

.admin-tab-badge.has-pending {
  background: linear-gradient(135deg, #ef4444, #d97706);
  color: #ffffff;
  border-color: #fde047;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.55);
  animation: pulse-danger 1.4s infinite;
}

.admin-main-content {
  flex: 1;
  min-width: 0;
}

.admin-tab-pane {
  display: none;
}

.admin-tab-pane.active {
  display: block;
}

@media (max-width: 900px) {
  .admin-dashboard-layout {
    flex-direction: column;
    gap: 1rem;
  }

  .admin-sidebar {
    width: 100%;
    position: static;
    padding: 0.7rem 0.75rem;
  }

  .admin-sidebar-header {
    padding-bottom: 0.5rem;
    margin-bottom: 0.5rem;
  }

  .admin-sidebar-menu {
    flex-direction: row;
    overflow-x: auto;
    gap: 0.48rem;
    padding-bottom: 0.25rem;
    scrollbar-width: thin;
  }

  .admin-tab-btn {
    width: auto;
    white-space: nowrap;
    flex-shrink: 0;
    padding: 0.58rem 0.85rem;
  }

  .admin-tab-btn:hover {
    transform: none;
  }

  .admin-main-content {
    width: 100%;
  }
}



/* =====================================================================
   UNITY WEBGL PLAY-ON-WEB ARENA (/play) & HERO CTA STYLES
   ===================================================================== */
.nav-btn-play-web {
  color: #fefce8;
  background: linear-gradient(135deg, #ea580c 0%, #dc2626 55%, #b91c1c 100%);
  border: 1px solid #fde047;
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  font-weight: 900;
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.45);
  animation: pulsePlayWebGlow 2.4s infinite ease-in-out;
}

.nav-btn-play-web:hover,
.nav-btn-play-web.active {
  color: #140a02;
  background: linear-gradient(135deg, #fef08a 0%, #fbbf24 55%, #f97316 100%);
  border-color: #fffbeb;
  box-shadow: 0 0 18px rgba(251, 191, 36, 0.75);
}

.play-web-hot-badge {
  background: #fde047;
  color: #7c2d12;
  font-size: 0.64rem;
  font-weight: 900;
  padding: 0.06rem 0.34rem;
  border-radius: 999px;
  letter-spacing: 0.04em;
}

.btn-hero-play-web {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 50%, #059669 100%);
  color: #f0fdf4;
  border: 1.5px solid #bbf7d0;
  border-radius: 7px;
  font-weight: 900;
  font-size: 0.92rem;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  padding: 0.72rem 1.15rem;
  box-shadow: 0 6px 20px rgba(22, 163, 74, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  position: relative;
  overflow: hidden;
}

.btn-hero-play-web:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(34, 197, 94, 0.68);
}

@keyframes pulsePlayWebGlow {

  0%,
  100% {
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.42);
  }

  50% {
    box-shadow: 0 0 20px rgba(250, 204, 21, 0.72);
  }
}

.play-theater-root {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  z-index: 950;
  background: #050403;
  display: flex;
  flex-direction: column;
  transition: opacity 0.22s ease;
}

/* Giữ kích thước khung 100vw x 100vh khi ẩn để WebGL không bị resize về 0x0 hay văng kết nối */
.play-theater-root.play-docked-hidden {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  z-index: -10;
}

.play-toolbar {
  height: 42px;
  min-height: 42px;
  background: linear-gradient(90deg, rgba(20, 14, 10, 0.97) 0%, rgba(30, 20, 13, 0.96) 50%, rgba(18, 13, 9, 0.97) 100%);
  border-bottom: 1px solid rgba(251, 191, 36, 0.35);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0.75rem;
  gap: 0.6rem;
  z-index: 20;
  overflow-x: auto;
  scrollbar-width: none;
}

.play-toolbar::-webkit-scrollbar {
  display: none;
}

.play-toolbar.collapsed {
  display: none;
}

.play-toolbar-left,
.play-toolbar-right {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}

.play-brand-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.4);
  color: #fde047;
  font-weight: 800;
  font-size: 0.8rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  cursor: pointer;
}

.play-brand-chip img {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
}

.play-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.76rem;
  color: #bbf7d0;
  background: rgba(22, 163, 74, 0.16);
  border: 1px solid rgba(74, 222, 128, 0.35);
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  white-space: nowrap;
}

.play-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
  display: inline-block;
}

.play-coin-badge {
  font-size: 0.78rem;
  font-weight: 700;
  color: #fde68a;
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(251, 191, 36, 0.38);
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
}

.play-tool-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: rgba(30, 41, 59, 0.78);
  color: #f1f5f9;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 8px;
  padding: 0.3rem 0.62rem;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.play-tool-btn:hover {
  border-color: #fbbf24;
  color: #fde047;
  background: rgba(51, 65, 85, 0.92);
}

.play-tool-gift {
  background: rgba(16, 185, 129, 0.2);
  border-color: rgba(110, 231, 183, 0.5);
  color: #a7f3d0;
}

.play-tool-topup {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.26), rgba(234, 88, 12, 0.32));
  border-color: rgba(251, 191, 36, 0.65);
  color: #fef08a;
}

.play-tool-portal {
  background: rgba(59, 130, 246, 0.18);
  border-color: rgba(96, 165, 250, 0.45);
  color: #bfdbfe;
}

.play-floating-restore-toolbar {
  position: fixed;
  top: 10px;
  right: 12px;
  z-index: 35;
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(8px);
  color: #fde047;
  border: 1px solid rgba(251, 191, 36, 0.55);
  border-radius: 999px;
  padding: 0.32rem 0.75rem;
  font-size: 0.76rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.55);
}

.play-stage-wrap {
  flex: 1;
  position: relative;
  width: 100%;
  height: calc(100vh - 42px);
  height: calc(100dvh - 42px);
  max-height: calc(100vh - 42px);
  max-height: calc(100dvh - 42px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #000;
}

.play-toolbar.collapsed~.play-stage-wrap {
  height: 100vh;
  height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
}

.play-iframe-mount,
.play-webgl-iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #000;
}

.play-quick-drawer {
  position: absolute;
  top: 42px;
  right: 0;
  bottom: 0;
  width: min(410px, 94vw);
  background: rgba(17, 13, 10, 0.97);
  backdrop-filter: blur(14px);
  border-left: 1px solid rgba(251, 191, 36, 0.45);
  box-shadow: -12px 0 36px rgba(0, 0, 0, 0.75);
  z-index: 30;
  display: flex;
  flex-direction: column;
}

.play-toolbar.collapsed~.play-quick-drawer {
  top: 0;
}

.play-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(251, 191, 36, 0.22);
}

.play-drawer-title {
  font-size: 0.95rem;
  font-weight: 900;
  color: #fde047;
}

.play-drawer-sub {
  font-size: 0.75rem;
  color: #94a3b8;
  margin-top: 0.12rem;
}

.play-drawer-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.35rem;
  padding: 0.6rem 0.9rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}

.play-drawer-tab {
  background: rgba(30, 41, 59, 0.65);
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 8px;
  padding: 0.42rem 0.35rem;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
}

.play-drawer-tab.active {
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  color: #140a02;
  border-color: #fde68a;
}

.play-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 0.9rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.play-drawer-auth-box {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.35);
  border-radius: 10px;
  padding: 0.75rem;
}

.play-preset-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
}

.play-quick-code-list {
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
}

.play-code-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  background: rgba(30, 41, 59, 0.65);
  border: 1px solid rgba(110, 231, 183, 0.28);
  border-radius: 8px;
  padding: 0.48rem 0.65rem;
}

.play-quick-qr-box {
  margin-top: 0.65rem;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(251, 191, 36, 0.4);
  border-radius: 10px;
  padding: 0.75rem;
  text-align: center;
}

.play-quick-qr-box img {
  max-width: 210px;
  width: 100%;
  border-radius: 8px;
  background: #fff;
  padding: 6px;
  margin: 0.45rem auto;
}

.play-drawer-footer {
  margin-top: auto;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.play-running-pill {
  position: fixed;
  left: 18px;
  right: auto;
  bottom: 20px;
  z-index: 900;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, rgba(20, 83, 45, 0.96), rgba(6, 78, 59, 0.98));
  color: #ecfdf5;
  border: 1.5px solid #4ade80;
  border-radius: 999px;
  padding: 0.62rem 1.05rem;
  font-size: 0.84rem;
  cursor: pointer;
  box-shadow: 0 8px 26px rgba(16, 185, 129, 0.45);
}

.play-running-pill:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

body.play-mode-locked {
  overflow: hidden !important;
}

@media (max-width: 680px) {
  .play-status-pill {
    display: none;
  }

  .play-tool-btn span {
    font-size: 0.73rem;
  }

  .play-running-pill {
    left: 12px;
    right: 76px;
    bottom: 16px;
    justify-content: center;
    font-size: 0.76rem;
    padding: 0.52rem 0.75rem;
  }
}

/* =====================================================================
   LỚP PHỦ YÊU CẦU XOAY NGANG ĐIỆN THOẠI (#rotate-device-overlay)
   & TỐI ƯU KHÔNG GIAN XOAY NGANG TRÊN MOBILE (/play)
   ===================================================================== */
#rotate-device-overlay,
.rotate-device-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(10, 10, 12, 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  text-align: center;
  user-select: none;
  -webkit-user-select: none;
}

#rotate-device-overlay.hidden,
.rotate-device-overlay.hidden,
.play-theater-root.play-docked-hidden #rotate-device-overlay {
  display: none !important;
}

/* Tự động ẩn ngay lập tức bằng cả CSS khi thiết bị đã ở chế độ xoay ngang */
@media (orientation: landscape) {

  #rotate-device-overlay,
  .rotate-device-overlay {
    display: none !important;
  }
}

.rotate-device-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 380px;
  width: 100%;
}

.rotate-phone-icon-wrap {
  width: 112px;
  height: 112px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
  filter: drop-shadow(0 0 18px rgba(245, 166, 35, 0.35));
}

.rotate-phone-svg {
  width: 108px;
  height: 108px;
  overflow: visible;
}

.rotate-phone-body {
  transform-origin: 60px 60px;
  animation: rotatePhonePortraitToLandscape 2.6s ease-in-out infinite;
}

.rotate-phone-icon-wrap.remind-shake {
  animation: rotateRemindBounce 0.65s ease-in-out 2;
}

@keyframes rotatePhonePortraitToLandscape {

  0%,
  15% {
    transform: rotate(0deg);
  }

  45%,
  78% {
    transform: rotate(-90deg);
  }

  96%,
  100% {
    transform: rotate(0deg);
  }
}

@keyframes rotateRemindBounce {

  0%,
  100% {
    transform: scale(1);
  }

  30% {
    transform: scale(1.14) rotate(-12deg);
  }

  65% {
    transform: scale(1.08) rotate(8deg);
  }
}

.rotate-device-title {
  color: #f5a623;
  font-size: 1.28rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.35;
  margin-bottom: 0.45rem;
  text-shadow: 0 2px 12px rgba(245, 166, 35, 0.32);
}

.rotate-device-subtitle {
  color: #a0a5b1;
  font-size: 0.94rem;
  font-weight: 500;
  line-height: 1.45;
  margin-bottom: 1.45rem;
}

.btn-rotate-fullscreen {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #f5a623;
  color: #0a0a0c;
  font-size: 0.98rem;
  font-weight: 800;
  padding: 0.78rem 1.55rem;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 0 22px rgba(245, 166, 35, 0.45), 0 4px 12px rgba(0, 0, 0, 0.5);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.btn-rotate-fullscreen:hover,
.btn-rotate-fullscreen:active {
  transform: translateY(-1px) scale(1.02);
  filter: brightness(1.06);
  box-shadow: 0 0 28px rgba(245, 166, 35, 0.68), 0 6px 16px rgba(0, 0, 0, 0.6);
}

.rotate-device-ios-hint {
  margin-top: 1.15rem;
  padding: 0.65rem 0.9rem;
  border-radius: 10px;
  background: rgba(245, 166, 35, 0.12);
  border: 1px solid rgba(245, 166, 35, 0.42);
  color: #fde68a;
  font-size: 0.82rem;
  line-height: 1.45;
  max-width: 340px;
}

/* Tối ưu không gian khi xoay ngang trên Mobile:
   Ẩn/thu gọn thanh Top Bar và cho phép khung #unity-canvas tràn 100% chiều cao màn hình */
@media (max-width: 950px) and (orientation: landscape),
(max-height: 540px) and (orientation: landscape) {
  .play-toolbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 36px;
    min-height: 36px;
    padding: 0 0.5rem;
    z-index: 45;
    background: rgba(14, 10, 7, 0.94);
    backdrop-filter: blur(8px);
  }

  .play-stage-wrap,
  .play-toolbar.collapsed~.play-stage-wrap {
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-height: 100vh !important;
    max-height: 100dvh !important;
  }

  .play-floating-restore-toolbar {
    top: 6px;
    right: 8px;
    padding: 0.22rem 0.58rem;
    font-size: 0.7rem;
    background: rgba(10, 10, 12, 0.72);
    border-color: rgba(245, 166, 35, 0.5);
    color: #f5a623;
    opacity: 0.85;
  }

  .play-floating-restore-toolbar:hover,
  .play-floating-restore-toolbar:active {
    opacity: 1;
  }

  .play-quick-drawer {
    top: 0;
    width: min(360px, 88vw);
    z-index: 50;
  }
}

/* =====================================================================
   CỤM NÚT CỘNG ĐỒNG (FANPAGE FACEBOOK & BOX ZALO), FOOTER & FLOATING SOCIAL BUTTONS
   ===================================================================== */
.home-hero-social-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.55rem;
  margin-top: 0.55rem;
}

.mobile-nav-social-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.48rem;
  margin-top: 0.65rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(212, 162, 76, 0.22);
}

.btn-community-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.58rem 0.9rem;
  border-radius: 7px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.25px;
  text-decoration: none;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: transform 0.14s ease, filter 0.14s ease, box-shadow 0.14s ease;
  white-space: nowrap;
}

.btn-community-social.btn-sm {
  padding: 0.4rem 0.75rem;
  font-size: 0.78rem;
  border-radius: 6px;
}

.btn-community-social:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.btn-community-fb {
  background: linear-gradient(135deg, #1877f2 0%, #1259b8 100%);
  border-color: rgba(147, 197, 253, 0.55);
  box-shadow: 0 4px 14px rgba(24, 119, 242, 0.35);
}

.btn-community-fb:hover {
  box-shadow: 0 6px 18px rgba(24, 119, 242, 0.52);
}

.btn-community-zalo {
  background: linear-gradient(135deg, #0068ff 0%, #0050c8 100%);
  border-color: rgba(125, 211, 252, 0.55);
  box-shadow: 0 4px 14px rgba(0, 104, 255, 0.35);
}

.btn-community-zalo:hover {
  box-shadow: 0 6px 18px rgba(0, 104, 255, 0.52);
}

/* Footer chính thức */
.site-footer {
  position: relative;
  z-index: 2;
  background: linear-gradient(180deg, rgba(18, 13, 9, 0.96) 0%, rgba(10, 7, 5, 0.99) 100%);
  border-top: 1.5px solid rgba(234, 179, 8, 0.45);
  box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.65);
  margin-top: 2rem;
}

.site-footer-inner {
  max-width: 1260px;
  margin: 0 auto;
  padding: 1.65rem 1rem 1.35rem;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.15fr;
  gap: 1.4rem;
  align-items: center;
}

.site-footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.site-footer-kicker {
  font-size: 0.7rem;
  font-weight: 800;
  color: #fdba74;
  letter-spacing: 0.4px;
  margin-top: 0.08rem;
}

.site-footer-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
  max-width: 440px;
}

.site-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.65rem;
  justify-content: center;
}

.footer-nav-link {
  background: rgba(30, 22, 15, 0.75);
  border: 1px solid rgba(212, 162, 76, 0.28);
  color: #e5d5be;
  font-size: 0.77rem;
  font-weight: 700;
  padding: 0.34rem 0.68rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.14s ease;
}

.footer-nav-link:hover {
  color: #fde047;
  border-color: rgba(250, 204, 21, 0.55);
  background: rgba(245, 158, 11, 0.14);
}

.site-footer-community {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.55rem;
}

.site-footer-community-label {
  font-size: 0.74rem;
  font-weight: 800;
  color: #fde047;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.site-footer-social-btns {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.site-footer-bottom {
  max-width: 1260px;
  margin: 0 auto;
  padding: 0.75rem 1rem 0.9rem;
  border-top: 1px solid rgba(212, 162, 76, 0.16);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  flex-wrap: wrap;
  font-size: 0.77rem;
  color: var(--text-muted);
}

/* Cụm nút hỗ trợ nổi (Floating Social Buttons) ở góc dưới bên phải trang chủ */
.floating-social-cluster {
  position: fixed;
  bottom: 20px;
  right: 16px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 11px;
}

.floating-social-btn {
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-decoration: none;
  border: 2px solid rgba(255, 255, 255, 0.78);
  cursor: pointer;
  transition: transform 0.18s ease, filter 0.18s ease;
}

.floating-social-btn:hover {
  transform: scale(1.1);
  filter: brightness(1.08);
}

.floating-btn-zalo {
  background: #0068ff;
  box-shadow: 0 4px 16px rgba(0, 104, 255, 0.55);
  animation: floatingPulseZalo 2.2s infinite ease-in-out;
}

.floating-btn-fb {
  background: #1877f2;
  box-shadow: 0 4px 16px rgba(24, 119, 242, 0.55);
  animation: floatingPulseFb 2.2s infinite ease-in-out 1.1s;
}

@keyframes floatingPulseZalo {

  0%,
  100% {
    box-shadow: 0 4px 14px rgba(0, 104, 255, 0.5), 0 0 0 0 rgba(0, 104, 255, 0.55);
  }

  55% {
    box-shadow: 0 6px 18px rgba(0, 104, 255, 0.7), 0 0 0 9px rgba(0, 104, 255, 0);
  }
}

@keyframes floatingPulseFb {

  0%,
  100% {
    box-shadow: 0 4px 14px rgba(24, 119, 242, 0.5), 0 0 0 0 rgba(24, 119, 242, 0.55);
  }

  55% {
    box-shadow: 0 6px 18px rgba(24, 119, 242, 0.7), 0 0 0 9px rgba(24, 119, 242, 0);
  }
}

.floating-social-tooltip {
  position: absolute;
  right: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%) translateX(6px);
  background: rgba(15, 11, 8, 0.95);
  color: #fde047;
  border: 1px solid rgba(234, 179, 8, 0.55);
  padding: 0.26rem 0.62rem;
  border-radius: 6px;
  font-size: 0.74rem;
  font-weight: 800;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.16s ease, transform 0.16s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.65);
}

.floating-social-btn:hover .floating-social-tooltip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* TUYỆT ĐỐI KHÔNG hiển thị cụm nút nổi hoặc Footer đè lên màn hình chơi game /play */
body.play-mode-locked #floating-social-buttons,
body.play-mode-locked .floating-social-cluster,
body.play-mode-locked #site-footer,
body.play-mode-locked .site-footer,
#floating-social-buttons.hidden {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

@media (max-width: 900px) {
  .site-footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1.1rem;
  }

  .site-footer-brand {
    align-items: center;
  }

  .site-footer-community {
    align-items: center;
  }

  .site-footer-social-btns {
    justify-content: center;
  }

  .site-footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 600px) {
  .home-hero-social-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.42rem;
  }

  .home-hero-social-row .btn-community-social {
    font-size: 0.76rem;
    padding: 0.52rem 0.5rem;
  }

  .floating-social-btn {
    width: 42px;
    height: 42px;
  }

  .floating-social-tooltip {
    display: none;
  }
}