/* ==========================================================================
   STYLE.CSS - Giao diện Game Nuôi Kiến Nông Trại & Chinh Chiến (Pocket Ants Style)
   Thiết kế giao diện hiện đại: Bio-Terrarium Glassmorphism & Sci-Fi Glow
   ========================================================================== */

:root {
  --bg-primary: #0a0c10;
  --bg-panel: rgba(16, 20, 28, 0.90);
  --bg-panel-hover: rgba(24, 30, 42, 0.95);
  --bg-panel-light: rgba(28, 35, 50, 0.85);
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-card-hover: rgba(255, 255, 255, 0.08);
  --border-color: rgba(255, 255, 255, 0.12);
  --border-highlight: rgba(255, 255, 255, 0.22);
  
  --accent-gold: #ffb703;
  --accent-gold-glow: rgba(255, 183, 3, 0.35);
  --accent-blue: #4cc9f0;
  --accent-blue-glow: rgba(76, 201, 240, 0.35);
  --accent-cyan: #00f5d4;
  --accent-cyan-glow: rgba(0, 245, 212, 0.35);
  --accent-red: #ef233c;
  --accent-red-glow: rgba(239, 35, 60, 0.35);
  --accent-green: #06d6a0;
  --accent-green-glow: rgba(6, 214, 160, 0.35);
  --accent-purple: #9d4edd;
  --accent-purple-glow: rgba(157, 78, 221, 0.35);
  
  --text-main: #f8f9fa;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

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

body, html {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--bg-primary);
  font-family: var(--font-family);
  color: var(--text-main);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

#gameCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 1;
  cursor: grab;
}

#gameCanvas:active {
  cursor: grabbing;
}

/* ==========================================================================
   TOP HUD BAR - THANH TÀI NGUYÊN & TRẠNG THÁI HIỆN ĐẠI
   ========================================================================== */

#topHud {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-panel);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 8px 18px;
  border-radius: 40px;
  border: 1px solid var(--border-highlight);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transition: all 0.3s ease;
}

.hud-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.2s ease;
  letter-spacing: 0.3px;
}

.hud-item:hover {
  background: rgba(255, 255, 255, 0.09);
  transform: translateY(-1px);
}

.hud-item.res-meat { 
  color: #ff6b81; 
  border-color: rgba(255, 107, 129, 0.25);
  text-shadow: 0 0 10px rgba(255, 107, 129, 0.35);
}
.hud-item.res-sugar { 
  color: #70d6ff; 
  border-color: rgba(112, 214, 255, 0.25);
  text-shadow: 0 0 10px rgba(112, 214, 255, 0.35);
}
.hud-item.res-seeds { 
  color: #ffd166; 
  border-color: rgba(255, 209, 102, 0.25);
  text-shadow: 0 0 10px rgba(255, 209, 102, 0.35);
}
.hud-item.res-coins { 
  color: #ffe66d; 
  background: linear-gradient(135deg, rgba(255, 214, 10, 0.15), rgba(255, 183, 3, 0.08));
  border: 1px solid rgba(255, 214, 10, 0.4); 
  box-shadow: 0 0 12px rgba(255, 214, 10, 0.2);
}
.hud-item.hud-pop { 
  color: #06d6a0; 
  border-color: rgba(6, 214, 160, 0.25);
}
.hud-item.hud-time { 
  color: #e2e8f0; 
  background: rgba(0, 0, 0, 0.35);
}

.species-pill {
  font-size: 12px;
  font-weight: 800;
  padding: 5px 14px;
  border-radius: 20px;
  border: 1.5px solid #fff;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* ==========================================================================
   THANH CÔNG CỤ DỌC CẠNH PHẢI (RIGHT EDGE TOOLBAR - FLOATING DOCK)
   ========================================================================== */
#rightEdgeToolbar {
  position: absolute;
  top: 72px;
  right: 16px;
  z-index: 25;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-right-tool {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 140px;
  background: rgba(18, 22, 32, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #fff;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  text-align: left;
  position: relative;
  overflow: hidden;
}

.btn-right-tool::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: currentColor;
  opacity: 0.8;
  border-radius: 4px 0 0 4px;
  transition: width 0.2s ease;
}

.btn-right-tool:hover {
  transform: translateX(-6px);
  background: rgba(28, 34, 48, 0.98);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.7);
}

.btn-right-tool:hover::before {
  width: 6px;
}

.btn-shop-tool {
  border-color: rgba(255, 209, 102, 0.4);
  color: #ffd166;
}
.btn-shop-tool:hover {
  border-color: #ffd166;
  box-shadow: 0 0 20px rgba(255, 209, 102, 0.35);
}

.btn-inv-tool {
  border-color: rgba(247, 37, 133, 0.4);
  color: #ff758f;
}
.btn-inv-tool:hover {
  border-color: #f72585;
  box-shadow: 0 0 20px rgba(247, 37, 133, 0.35);
}

.btn-upgrade-tool {
  border-color: rgba(0, 245, 212, 0.4) !important;
  color: #00f5d4 !important;
}
.btn-upgrade-tool:hover {
  border-color: #00f5d4 !important;
  box-shadow: 0 0 20px rgba(0, 245, 212, 0.35) !important;
}

.btn-guide-tool {
  border-color: rgba(255, 183, 3, 0.4);
  color: #ffb703;
}
.btn-guide-tool:hover {
  border-color: #ffb703;
  box-shadow: 0 0 20px rgba(255, 183, 3, 0.35);
}

.btn-settings-tool {
  border-color: rgba(76, 201, 240, 0.4);
  color: #4cc9f0;
}
.btn-settings-tool:hover {
  border-color: #4cc9f0;
  box-shadow: 0 0 20px rgba(76, 201, 240, 0.35);
}

.btn-dev-tool {
  border-color: rgba(181, 23, 158, 0.45);
  background: linear-gradient(135deg, rgba(114, 9, 183, 0.35), rgba(247, 37, 133, 0.25));
  color: #f72585;
}
.btn-dev-tool:hover {
  border-color: #f72585;
  box-shadow: 0 0 20px rgba(247, 37, 133, 0.45);
}

.tool-icon {
  font-size: 19px;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
}

.tool-label {
  flex-grow: 1;
  letter-spacing: 0.4px;
}

.btn-ctrl {
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 8px 14px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-ctrl:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

.btn-dev {
  background: linear-gradient(135deg, #7209b7, #3a0ca3);
  border-color: #b5179e;
  box-shadow: 0 0 12px rgba(114, 9, 183, 0.4);
}

.btn-dev:hover {
  background: linear-gradient(135deg, #b5179e, #4361ee);
}

/* ==========================================================================
   BẢNG ĐIỀU KHIỂN BẦY ĐÀN (BOTTOM-LEFT NEST PANEL - TỔ KIẾN TRUNG TÂM)
   ========================================================================== */

#nestPanel {
  position: absolute;
  bottom: 18px;
  left: 18px;
  z-index: 10;
  width: 330px;
  background: var(--bg-panel);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 18px;
  border: 1px solid var(--border-color);
  padding: 18px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 10px;
}

.panel-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--accent-gold);
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
  text-shadow: 0 0 12px rgba(255, 183, 3, 0.3);
}

.queen-hp-box {
  margin-bottom: 14px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 10px 12px;
}

.hp-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  margin-bottom: 6px;
  font-weight: 600;
}

.hp-meta strong {
  color: #ffb703;
}

.progress-bar {
  width: 100%;
  height: 9px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 5px;
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.7);
}

.progress-bar .fill {
  height: 100%;
  background: linear-gradient(90deg, #ffb703, #fb8500);
  width: 100%;
  border-radius: 5px;
  box-shadow: 0 0 8px rgba(255, 183, 3, 0.5);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#queenStatusBadge {
  font-size: 11px;
  font-weight: 700;
  margin-top: 8px;
  padding: 4px 10px;
  border-radius: 6px;
  display: inline-block;
  line-height: 1.4;
  letter-spacing: 0.2px;
}

/* Hàng đợi trứng */
.egg-queue-section {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 14px;
  font-size: 12px;
}

.egg-queue-section h4 {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  display: flex;
  justify-content: space-between;
}

.egg-item.active {
  background: rgba(255, 255, 255, 0.06);
  padding: 8px 10px;
  border-radius: 8px;
  border-left: 3px solid var(--accent-blue);
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.queue-extra {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-gold);
  margin-top: 6px;
  text-align: right;
}

/* Các nút sinh sản */
.breed-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.btn-breed {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-main);
  padding: 12px 10px;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.btn-breed:hover {
  background: rgba(255, 255, 255, 0.09);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.btn-breed:active {
  transform: translateY(0);
}

.btn-breed-worker:hover {
  border-color: #ffd166;
  box-shadow: 0 0 16px rgba(255, 209, 102, 0.25);
}

.btn-breed-soldier:hover {
  border-color: #ef233c;
  box-shadow: 0 0 16px rgba(239, 35, 60, 0.25);
}

.btn-breed .role-name {
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.3px;
}

.btn-breed .cost-desc {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
}

/* ==========================================================================
   BẢNG CHI TIẾT KIẾN ĐƯỢC CHỌN (INSPECTOR PANEL)
   ========================================================================== */

#inspectorPanel {
  position: absolute;
  bottom: 116px;
  right: 18px;
  z-index: 15;
  width: 280px;
  background: var(--bg-panel);
  backdrop-filter: blur(12px);
  border-radius: 16px;
  border: 1px solid var(--border-color);
  padding: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  font-size: 13px;
}

/* ==========================================================================
   Active Orders Bar (Góc dưới cùng bên phải: 5 ô vuông 1-5)
   ========================================================================== */
#activeOrdersBar {
  position: fixed;
  bottom: 18px;
  right: 18px;
  z-index: 90;
  width: 320px;
  background: rgba(14, 18, 26, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  padding: 10px 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 8px;
  user-select: none;
}

.orders-bar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 5px;
}

.orders-bar-title {
  font-weight: 800;
  color: #ffd166;
  letter-spacing: 0.5px;
}

.orders-bar-hint {
  font-size: 10px;
  color: #a0aec0;
  font-style: italic;
}

.orders-grid-slots {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.order-slot-box {
  position: relative;
  width: 52px;
  height: 58px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.order-slot-box.empty {
  border: 1.5px dashed rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.02);
  opacity: 0.6;
}

.order-slot-box.empty .slot-num-badge {
  position: absolute;
  top: 3px;
  left: 5px;
  font-size: 9px;
  font-weight: 800;
  color: #718096;
}

.order-slot-box.empty .slot-empty-icon {
  font-size: 13px;
  opacity: 0.35;
}

.order-slot-box.empty .slot-empty-text {
  font-size: 9px;
  color: #718096;
  margin-top: 1px;
}

.order-slot-box.occupied {
  border: 1.5px solid #ffd166;
  background: linear-gradient(135deg, rgba(255, 183, 3, 0.16), rgba(18, 22, 32, 0.95));
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4), inset 0 0 10px rgba(255, 209, 102, 0.1);
  cursor: pointer;
}

.order-slot-box.occupied:hover {
  border-color: #ef233c;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(239, 35, 60, 0.4);
}

.order-slot-box.occupied .slot-num-badge {
  position: absolute;
  top: 2px;
  left: 4px;
  font-size: 9px;
  font-weight: 900;
  color: #ffd166;
  background: rgba(0, 0, 0, 0.6);
  padding: 1px 4px;
  border-radius: 4px;
  line-height: 1;
}

.order-slot-box.occupied .slot-main-icon {
  font-size: 20px;
  line-height: 1;
  margin-top: 3px;
}

.order-slot-box.occupied .slot-count-badge {
  font-size: 10px;
  font-weight: 800;
  color: #ffd166;
  margin-top: 2px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.order-slot-box.occupied .slot-count-badge.warning {
  color: #ff9e00;
}

.order-slot-box.occupied .slot-cancel-overlay {
  position: absolute;
  inset: 0;
  background: rgba(239, 35, 60, 0.92);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

.order-slot-box.occupied:hover .slot-cancel-overlay {
  opacity: 1;
}

.ins-row {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.ins-label {
  color: var(--text-muted);
}

.ins-val {
  font-weight: 600;
}

/* ==========================================================================
   HƯỚNG DẪN ĐIỀU KHIỂN NHANH (QUICK GUIDE)
   ========================================================================== */

#quickControlsGuide {
  position: absolute;
  top: 76px;
  left: 18px;
  z-index: 10;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 12px;
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

#quickControlsGuide strong {
  color: #fff;
}

/* ==========================================================================
   DRAWER / MODAL NHÀ PHÁT TRIỂN (DEV TOOLS MODAL)
   ========================================================================== */

#devToolsDrawer {
  position: absolute;
  top: 75px;
  right: 160px;
  width: 360px;
  max-height: calc(100vh - 95px);
  overflow-y: auto;
  z-index: 22;
  background: rgba(18, 14, 28, 0.96);
  backdrop-filter: blur(16px);
  border: 1.5px solid #7209b7;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 12px 40px rgba(114, 9, 183, 0.4);
}

.dev-section {
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 12px;
}

.dev-section h4 {
  font-size: 13px;
  font-weight: 700;
  color: #c77dff;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.speed-preset-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 10px;
}

.btn-speed {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  padding: 6px 0;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-speed:hover {
  background: #7209b7;
  border-color: #b5179e;
}

.btn-speed.super {
  background: linear-gradient(135deg, #f72585, #7209b7);
  border-color: #ff758f;
}

.speed-slider-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.speed-slider-wrap input[type=range] {
  flex: 1;
  cursor: pointer;
}

.dev-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.btn-cheat {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  padding: 8px 6px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-cheat:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: #4cc9f0;
}

.btn-cheat.gold {
  grid-column: span 2;
  background: linear-gradient(135deg, #e09f3e, #9e2a2b);
  border: none;
  font-weight: 700;
}

.custom-res-row {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}

.custom-res-row input {
  flex: 1;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 12px;
}

.custom-res-row select {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 12px;
}

/* ==========================================================================
   MODAL CHỌN LOÀI KIẾN BAN ĐẦU (SPECIES SELECTION)
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(4, 6, 10, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.modal-box {
  background: rgba(18, 22, 32, 0.95);
  border: 1px solid var(--border-highlight);
  border-radius: 22px;
  max-width: 860px;
  width: 100%;
  padding: 32px 30px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  text-align: center;
}

.modal-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--accent-gold);
  margin-bottom: 8px;
  text-shadow: 0 0 15px rgba(255, 183, 3, 0.35);
  letter-spacing: 0.5px;
}

.modal-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.species-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 24px;
}

.species-card {
  background: rgba(255, 255, 255, 0.03);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 20px 16px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.species-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-gold);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.species-card.red-ant { border-top: 4px solid #e63946; }
.species-card.black-ant { border-top: 4px solid #8d99ae; }
.species-card.seed-ant { border-top: 4px solid #d4a373; }

.species-card .icon {
  font-size: 38px;
  margin-bottom: 10px;
}

.species-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}

.species-card .subtitle {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 12px;
  font-style: italic;
}

.species-stats-list {
  font-size: 12px;
  width: 100%;
  text-align: left;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 8px;
  padding: 8px 10px;
  margin-bottom: 12px;
}

.species-stats-list div {
  padding: 2px 0;
}

.btn-select-species {
  width: 100%;
  background: var(--accent-gold);
  color: #111;
  border: none;
  padding: 8px 0;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-select-species:hover {
  background: #ffc300;
}

/* ==========================================================================
   GAME OVER MODAL
   ========================================================================== */

.game-over-box {
  max-width: 460px;
  text-align: center;
}

.game-over-icon {
  font-size: 54px;
  margin-bottom: 10px;
}

.btn-restart {
  background: linear-gradient(135deg, #ef233c, #d90429);
  color: #fff;
  border: none;
  font-size: 16px;
  font-weight: 700;
  padding: 12px 32px;
  border-radius: 12px;
  cursor: pointer;
  margin-top: 20px;
  box-shadow: 0 8px 24px rgba(239, 35, 60, 0.4);
}

/* ==========================================================================
   TOAST NOTIFICATION AREA (GÓC TRÁI MÀN HÌNH - GỌN GÀNG, SANG TRỌNG)
   ========================================================================== */

#notificationArea {
  position: absolute;
  top: 72px;
  left: 18px;
  width: 320px;
  max-width: calc(100vw - 36px);
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.game-notif {
  background: rgba(18, 20, 28, 0.94);
  backdrop-filter: blur(12px);
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 12px;
  line-height: 1.45;
  font-weight: 600;
  color: #f8f9fa;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-left: 4px solid var(--accent-blue);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
  animation: slideInFromLeft 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.game-notif.notif-warning { border-left-color: #fb8500; }
.game-notif.notif-danger { border-left-color: #e63946; }
.game-notif.notif-success { border-left-color: #52b788; }
.game-notif.notif-info { border-left-color: #4cc9f0; }

.game-notif.fade-out {
  opacity: 0;
  transform: translateX(-15px);
}

@keyframes slideInFromLeft {
  from { opacity: 0; transform: translateX(-24px); }
  to { opacity: 1; transform: translateX(0); }
}

.hidden {
  display: none !important;
}

.d-flex { display: flex; }
.justify-between { justify-content: space-between; }
.text-muted { color: var(--text-muted); }

/* ==========================================================================
   BẢNG GIAO NHIỆM VỤ (DISPATCH MODALS: THU HOẠCH & CHIẾN ĐẤU)
   ========================================================================== */

.dispatch-modal-box {
  max-width: 460px;
  background: rgba(18, 22, 32, 0.96);
  border: 1.5px solid var(--border-highlight);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.btn-close-modal {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.btn-close-modal:hover {
  background: rgba(239, 35, 60, 0.6);
  border-color: #ef233c;
  transform: rotate(90deg);
}

.dispatch-control-group {
  text-align: left;
  margin-bottom: 12px;
}

.dispatch-control-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}

.slider-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.slider-row input[type=range] {
  flex: 1;
  cursor: pointer;
}

.slider-row input[type=number] {
  width: 55px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  padding: 5px 6px;
  border-radius: 6px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
}

.max-badge {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
}

.dispatch-quick-btns {
  display: flex;
  gap: 8px;
  margin: 14px 0 18px 0;
}

.btn-quick {
  flex: 1;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  padding: 6px 0;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-quick:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: var(--accent-blue);
}

.dispatch-actions {
  display: flex;
  gap: 10px;
}

.btn-confirm-action {
  flex: 1;
  color: #fff;
  border: none;
  font-size: 15px;
  font-weight: 700;
  padding: 12px;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s, filter 0.2s;
}

.btn-confirm-action:hover {
  transform: translateY(-2px);
  filter: brightness(1.15);
}

/* ==========================================================================
   KHO ĐỒ CHIẾN LỢI PHẨM LƯỚI 6x6 (INVENTORY DRAWER)
   ========================================================================== */

#inventoryDrawer {
  position: absolute;
  top: 75px;
  right: 160px;
  width: 380px;
  max-height: calc(100vh - 95px);
  overflow-y: auto;
  background: rgba(20, 22, 30, 0.96);
  backdrop-filter: blur(16px);
  border: 1.5px solid #ffd166;
  border-radius: 16px;
  padding: 18px;
  z-index: 22;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
}

.inv-header-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.inventory-grid-6x6 {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  margin-bottom: 14px;
}

.inv-slot {
  aspect-ratio: 1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  cursor: pointer;
  transition: all 0.2s ease;
}

.inv-slot.empty:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
}

.slot-empty-dot {
  width: 4px;
  height: 4px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
}

.inv-slot.occupied {
  background: linear-gradient(135deg, rgba(114, 9, 183, 0.35), rgba(247, 37, 133, 0.35));
  border-color: #ffd166;
  box-shadow: 0 0 8px rgba(255, 209, 102, 0.25);
}

.inv-slot.occupied:hover {
  transform: scale(1.06);
  border-color: #ffb703;
}

.slot-icon {
  font-size: 18px;
}

.slot-badge {
  position: absolute;
  bottom: 2px;
  right: 3px;
  font-size: 9px;
  font-weight: 800;
  color: #ffd166;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.inv-slot.locked {
  background: rgba(0, 0, 0, 0.45);
  border-color: rgba(255, 255, 255, 0.06);
  opacity: 0.65;
}

.inv-slot.locked:hover {
  opacity: 1;
  border-color: #ffd166;
  background: rgba(255, 209, 102, 0.12);
}

.slot-lock-icon {
  font-size: 12px;
  color: var(--text-muted);
}

.slot-cost-tag {
  font-size: 8px;
  color: #ffd166;
  margin-top: 1px;
  font-weight: 700;
}

.btn-buy-slot {
  width: 100%;
  background: rgba(255, 209, 102, 0.12);
  border: 1px solid #ffd166;
  color: #ffd166;
  padding: 8px 0;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-buy-slot:hover {
  background: #ffd166;
  color: #111;
}

.inv-active-preview {
  margin-top: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 10px;
  text-align: left;
}

.inv-qty {
  background: #ffb703;
  color: #111;
  padding: 2px 8px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 11px;
}

.btn-use-card {
  width: 100%;
  background: linear-gradient(135deg, #7209b7, #f72585);
  border: none;
  color: #fff;
  font-weight: 700;
  padding: 8px 0;
  border-radius: 8px;
  font-size: 12px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(247, 37, 133, 0.4);
  transition: all 0.2s;
}

.btn-use-card:hover {
  transform: translateY(-2px);
  filter: brightness(1.15);
}

.dev-input {
  width: 100%;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 5px 8px;
  border-radius: 6px;
  font-size: 11px;
  margin-top: 2px;
}

/* ==========================================================================
   4 TABS BẢNG NHÀ PHÁT TRIỂN (DEV TOOLS 4 TABS)
   ========================================================================== */
.dev-tabs {
  display: flex;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 3px;
  gap: 3px;
  margin-bottom: 12px;
  position: sticky;
  top: 0;
  z-index: 10;
}

.dev-tab {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  padding: 8px 4px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  white-space: nowrap;
}

.dev-tab:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.dev-tab.active {
  background: linear-gradient(135deg, #7209b7, #f72585);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(247, 37, 133, 0.45);
}

.dev-tab-content {
  display: none;
}

.dev-tab-content.active {
  display: block;
}

/* ==========================================================================
   CỬA HÀNG VẬT PHẨM (SHOP MODAL)
   ========================================================================== */
.shop-modal-box {
  max-width: 650px;
  width: 95%;
  background: rgba(22, 24, 32, 0.98);
  border: 1.5px solid rgba(255, 209, 102, 0.35);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7), 0 0 25px rgba(255, 209, 102, 0.15);
  padding: 24px;
}

.shop-wallet-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 209, 102, 0.08);
  border: 1px solid rgba(255, 209, 102, 0.2);
  border-radius: 10px;
  padding: 10px 16px;
  margin-bottom: 16px;
  font-size: 13px;
}

.shop-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-height: 60vh;
  overflow-y: auto;
  padding-right: 4px;
}

@media (max-width: 600px) {
  .shop-grid {
    grid-template-columns: 1fr;
  }
}

.shop-item-card {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px;
  transition: all 0.2s ease;
  position: relative;
}

.shop-item-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 209, 102, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.shop-item-icon {
  font-size: 28px;
  margin-bottom: 8px;
}

.shop-item-info h4 {
  font-size: 14px;
  color: #fff;
  margin: 0 0 6px 0;
  font-weight: 700;
}

.shop-item-info p {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
  margin: 0 0 12px 0;
  flex-grow: 1;
}

.shop-item-action {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.shop-item-price {
  font-size: 14px;
  font-weight: 800;
  color: #ffd166;
}

.btn-buy-shop {
  background: linear-gradient(135deg, #ffd166, #ffb703);
  color: #111;
  border: none;
  font-weight: 700;
  font-size: 12px;
  padding: 6px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(255, 183, 3, 0.3);
}

.btn-buy-shop:hover {
  filter: brightness(1.15);
  transform: scale(1.05);
}

/* ==========================================================================
   MODAL CÀI ĐẶT TRÒ CHƠI (SETTINGS MODAL)
   ========================================================================== */
.settings-modal-box {
  max-width: 480px;
  width: 92%;
  background: rgba(20, 22, 32, 0.98);
  border: 1.5px solid rgba(76, 201, 240, 0.4);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.75), 0 0 25px rgba(76, 201, 240, 0.15);
  padding: 24px;
}

/* ==========================================================================
   THANH PHÉP THUẬT CHIẾN ĐẤU DƯỚI CÙNG CHÍNH GIỮA (BOTTOM CENTER SPELL BAR)
   ========================================================================== */
#bottomSpellBar {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(14, 18, 26, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid rgba(255, 255, 255, 0.16);
  border-radius: 40px;
  padding: 8px 20px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.75), 0 0 25px rgba(0, 245, 212, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  z-index: 95;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.spell-slot-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  border-radius: 28px;
  padding: 7px 16px;
  color: #fff;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  user-select: none;
  overflow: hidden;
}

.spell-slot-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
  border-color: rgba(255, 255, 255, 0.35);
}

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

.spell-slot-btn.active {
  border-color: #00f5d4 !important;
  background: rgba(0, 245, 212, 0.18) !important;
  animation: spellActiveGlow 1.5s infinite ease-in-out;
}

@keyframes spellActiveGlow {
  0% { box-shadow: 0 0 12px rgba(0, 245, 212, 0.5), inset 0 0 8px rgba(0, 245, 212, 0.2); }
  50% { box-shadow: 0 0 26px rgba(0, 245, 212, 0.85), inset 0 0 18px rgba(0, 245, 212, 0.4); }
  100% { box-shadow: 0 0 12px rgba(0, 245, 212, 0.5), inset 0 0 8px rgba(0, 245, 212, 0.2); }
}

.spell-slot-btn:disabled, .spell-slot-btn.empty {
  opacity: 0.4;
  cursor: not-allowed;
  filter: grayscale(0.6);
  pointer-events: none;
}

.spell-icon {
  font-size: 24px;
  line-height: 1;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.5));
}

.spell-info {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.spell-name {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #e2e8f0;
}

.spell-count {
  font-size: 13px;
  font-weight: 800;
  color: #ffd166;
  text-shadow: 0 0 8px rgba(255, 209, 102, 0.4);
}

.spell-hotkey {
  font-size: 11px;
  font-weight: 800;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 6px;
  padding: 2px 7px;
  margin-left: 6px;
  color: #fff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.35);
}

/* Nút Nâng Cấp trên Right Toolbar */
.btn-upgrade-tool {
  border-color: rgba(0, 245, 212, 0.4) !important;
}
.btn-upgrade-tool:hover {
  background: rgba(0, 245, 212, 0.15) !important;
  box-shadow: 0 4px 15px rgba(0, 245, 212, 0.35) !important;
}

/* ==========================================================================
   MODAL NÂNG CẤP CHỈ SỐ VĨNH VIỄN (ANT UPGRADE MODAL)
   ========================================================================== */
.ant-upgrade-modal-box {
  max-width: 620px;
  width: 95%;
  background: rgba(18, 20, 28, 0.98);
  border: 1.5px solid rgba(0, 245, 212, 0.45);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.85), 0 0 30px rgba(0, 245, 212, 0.2);
  border-radius: 18px;
  padding: 22px 26px;
}

.upgrade-points-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 245, 212, 0.08);
  border: 1px solid rgba(0, 245, 212, 0.3);
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 16px;
  font-size: 13px;
  font-weight: 700;
}

.btn-quick-use-cards {
  background: linear-gradient(135deg, #00b4d8, #0077b6);
  border: none;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-quick-use-cards:hover {
  filter: brightness(1.2);
  transform: scale(1.04);
}

.upgrade-grid-two-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.upgrade-col {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.upgrade-col-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  font-weight: 800;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.badge-role {
  font-size: 10px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--text-muted);
}

.upgrade-stat-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 8px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-meta {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
}

.stat-val {
  color: #00f5d4;
  font-weight: 800;
}

.btn-up-stat {
  background: linear-gradient(135deg, #00f5d4, #00b4d8);
  border: none;
  color: #0b132b;
  font-weight: 800;
  font-size: 11px;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 6px rgba(0, 245, 212, 0.25);
}

.btn-up-stat:hover {
  filter: brightness(1.15);
  transform: translateY(-1px);
}

/* ==========================================================================
   MODAL HƯỚNG DẪN CHI TIẾT (GAMEPLAY GUIDE MODAL)
   ========================================================================== */
.guide-modal-box {
  max-width: 660px;
  width: 95%;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  background: rgba(18, 20, 28, 0.98);
  border: 1.5px solid rgba(255, 209, 102, 0.45);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.85), 0 0 30px rgba(255, 209, 102, 0.15);
  border-radius: 18px;
  padding: 22px 26px;
}

.guide-scrollable-content {
  overflow-y: auto;
  padding-right: 6px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.guide-card {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  padding: 14px 16px;
}

.guide-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  padding-bottom: 8px;
}

.guide-card-header h4 {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.guide-badge {
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.4px;
}

.guide-card-body {
  font-size: 12px;
  line-height: 1.65;
  color: #d1d5db;
}

.guide-card-body ul {
  padding-left: 18px;
  margin: 0;
}

.guide-card-body li {
  margin-bottom: 6px;
}

.guide-card-body li strong {
  color: #fff;
}

/* ==========================================================================
   THIẾT KẾ BẢNG HIỂN THỊ ĐẦY ĐỦ CHỈ SỐ THÚ & CÂY (DISPATCH MODAL STATS)
   ========================================================================== */
.dispatch-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.stat-pill {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat-pill .label {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.stat-pill .val {
  font-size: 13px;
  font-weight: 800;
  color: #fff;
}

.dispatch-hp-box {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 12px;
}

.dispatch-hp-header {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 6px;
}

.dispatch-hp-bar {
  width: 100%;
  height: 9px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 5px;
  overflow: hidden;
}

.dispatch-hp-fill {
  height: 100%;
  background: linear-gradient(90deg, #ef233c, #ff4d6d);
  transition: width 0.3s ease;
}

.dispatch-rewards-box {
  background: rgba(255, 209, 102, 0.06);
  border: 1px solid rgba(255, 209, 102, 0.25);
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 14px;
}

.dispatch-rewards-header {
  font-size: 11px;
  font-weight: 800;
  color: #ffd166;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.dispatch-rewards-content {
  font-size: 12px;
  line-height: 1.5;
  color: #f1faee;
}

/* ==========================================================================
   TÙY CHỈNH THANH CUỘN & RANGE SLIDER CAO CẤP
   ========================================================================== */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.25);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 4px;
  transition: background 0.2s;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 245, 212, 0.5);
}

input[type=range] {
  accent-color: #00f5d4;
  cursor: pointer;
}
