@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700;800&family=Outfit:wght@400;500;600;700;800;900&display=swap');

:root {
  /* Ultra-Luxury Cyber HUD Theme */
  --hud-bg: rgba(6, 10, 20, 0.94);
  --hud-panel-bg: rgba(10, 16, 32, 0.85);
  --hud-card-bg: rgba(15, 23, 44, 0.8);
  --hud-glass-blur: blur(18px);

  /* Radiant Neon Colors */
  --neon-cyan: #00f2fe;
  --neon-cyan-glow: rgba(0, 242, 254, 0.4);
  --neon-gold: #fbbf24;
  --neon-gold-glow: rgba(251, 191, 36, 0.4);
  --neon-green: #00ff88;
  --neon-green-glow: rgba(0, 255, 136, 0.4);
  --neon-pink: #ff007f;
  --neon-pink-glow: rgba(255, 0, 127, 0.4);
  --neon-purple: #a855f7;
  --neon-blue: #38bdf8;
  --neon-red: #ef4444;

  /* Glowing Borders */
  --border-cyan: 1.5px solid rgba(0, 242, 254, 0.45);
  --border-gold: 1.5px solid rgba(251, 191, 36, 0.45);
  --border-green: 1.5px solid rgba(0, 255, 136, 0.45);
  --border-pink: 1.5px solid rgba(255, 0, 127, 0.45);
  --border-glass: 1px solid rgba(255, 255, 255, 0.08);

  --font-hud: 'JetBrains Mono', monospace;
  --font-main: 'Outfit', sans-serif;
}

/* Container Giả Lập Giao Diện Bot ATF Farm (Nâng Cấp Cao Cấp Siêu Đẹp) */
.atf-hud-container {
  width: 100%;
  max-width: 520px;
  background: var(--hud-bg);
  backdrop-filter: var(--hud-glass-blur);
  -webkit-backdrop-filter: var(--hud-glass-blur);
  border: 1.5px solid rgba(0, 242, 254, 0.35);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 35px rgba(0, 242, 254, 0.18);
  border-radius: 20px;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
}

.atf-hud-container::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-gold), var(--neon-pink));
}

/* TOP HEADER */
.atf-header-bar {
  text-align: center;
  padding: 4px 0 10px 0;
  border-bottom: 1px dashed rgba(251, 191, 36, 0.3);
}

.atf-header-title {
  color: var(--neon-gold);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 1px;
  text-shadow: 0 0 12px var(--neon-gold-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-hud);
}

/* HUD PANEL CHUNG (KHUNG THẺ PHÁT SÁNG CAO CẤP) */
.hud-panel {
  background: var(--hud-panel-bg);
  backdrop-filter: var(--hud-glass-blur);
  -webkit-backdrop-filter: var(--hud-glass-blur);
  border-radius: 12px;
  padding: 12px 14px;
  position: relative;
  box-sizing: border-box;
  transition: all 0.25s;
}

.hud-panel:hover {
  transform: translateY(-1px);
}

.border-cyan { 
  border: var(--border-cyan); 
  box-shadow: 0 4px 20px rgba(0, 242, 254, 0.12), inset 0 0 15px rgba(0, 242, 254, 0.05); 
}
.border-gold { 
  border: var(--border-gold); 
  box-shadow: 0 4px 20px rgba(251, 191, 36, 0.12), inset 0 0 15px rgba(251, 191, 36, 0.05); 
}
.border-green { 
  border: var(--border-green); 
  box-shadow: 0 4px 20px rgba(0, 255, 136, 0.12), inset 0 0 15px rgba(0, 255, 136, 0.05); 
}
.border-pink { 
  border: var(--border-pink); 
  box-shadow: 0 4px 20px rgba(255, 0, 127, 0.12), inset 0 0 15px rgba(255, 0, 127, 0.05); 
}
.border-dim { 
  border: var(--border-glass); 
}

.hud-panel-header {
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-hud);
}

.text-cyan { color: var(--neon-cyan) !important; text-shadow: 0 0 8px var(--neon-cyan-glow); }
.text-gold { color: var(--neon-gold) !important; text-shadow: 0 0 8px var(--neon-gold-glow); }
.text-green { color: var(--neon-green) !important; text-shadow: 0 0 8px var(--neon-green-glow); }
.text-pink { color: var(--neon-pink) !important; text-shadow: 0 0 8px var(--neon-pink-glow); }
.text-white { color: #ffffff !important; }
.text-dim { color: #8899a6 !important; }

/* 1. BẢNG BẢN QUYỀN VIP & ACC */
.hud-grid-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  margin-bottom: 5px;
  line-height: 1.4;
  font-family: var(--font-hud);
}

.hud-status-badge {
  color: var(--neon-green);
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  animation: pulseGreen 1.8s infinite;
}

@keyframes pulseGreen {
  0%, 100% { opacity: 1; filter: drop-shadow(0 0 6px rgba(0, 255, 136, 0.8)); }
  50% { opacity: 0.5; filter: drop-shadow(0 0 1px rgba(0, 255, 136, 0.3)); }
}

/* 2. 5 ACC FARM LIST */
.acc-farm-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 8px;
  border-radius: 6px;
  font-size: 12.5px;
  font-family: var(--font-hud);
  margin-bottom: 2px;
}

.acc-farm-item.active-acc {
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid rgba(0, 242, 254, 0.25);
  color: var(--neon-cyan);
  font-weight: 700;
}

.acc-farm-item.empty-acc {
  color: #64748b;
  opacity: 0.7;
}

/* 3. NÚT CLICK BANNER ATF VÀNG PHÁT SÁNG */
.atf-click-banner {
  text-align: center;
  padding: 10px 14px;
  cursor: pointer;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.12), rgba(245, 158, 11, 0.04));
  user-select: none;
  touch-action: manipulation;
  border-radius: 12px;
  transition: all 0.2s;
}

.atf-click-banner:hover {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.18), rgba(245, 158, 11, 0.08));
  box-shadow: 0 0 25px rgba(251, 191, 36, 0.25);
}

.atf-click-banner:active {
  transform: scale(0.98);
}

.atf-click-title {
  color: var(--neon-gold);
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 3px;
  font-family: var(--font-hud);
}

.atf-click-action {
  color: var(--neon-green);
  font-size: 12.5px;
  font-weight: 800;
  text-shadow: 0 0 8px var(--neon-green-glow);
  font-family: var(--font-hud);
}

/* 4. TÀI SẢN & VÍ CLOUD MINIAPP */
.wallet-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  padding: 4px 0;
  font-family: var(--font-hud);
}

.btn-claim-hud {
  width: 100%;
  background: linear-gradient(135deg, #fcd34d 0%, #fbbf24 40%, #f59e0b 80%, #d97706 100%);
  color: #000;
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 900;
  font-size: 12.5px;
  cursor: pointer;
  margin-top: 8px;
  text-align: center;
  transition: all 0.2s;
  text-transform: uppercase;
  font-family: var(--font-hud);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
  touch-action: manipulation;
}

.btn-claim-hud:hover {
  filter: brightness(1.1);
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.6);
}

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

/* 5. NHIỆM VỤ THƯỞNG */
.mission-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  padding: 4px 0;
  color: var(--text-dim);
  font-family: var(--font-hud);
}

.mission-tag { font-weight: 800; }
.mission-tag.yt { color: #ef4444; }
.mission-tag.x { color: #38bdf8; }
.mission-tag.web { color: #00f2fe; }
.mission-tag.tg { color: #38bdf8; }

.mission-timer {
  color: #ff3344;
  font-weight: 800;
  font-family: var(--font-hud);
}

/* 6. LOGS MÁY CHỦ THỰC TẾ (SẮC NÉT, MÀU SẮC TRỰC QUAN) */
.hud-logs-box {
  height: 160px;
  overflow-y: auto;
  font-size: 11px;
  line-height: 1.55;
  color: #cbd5e1;
  padding-right: 4px;
  font-family: var(--font-hud);
  -webkit-overflow-scrolling: touch;
}

.hud-log-line {
  margin-bottom: 4px;
  word-break: break-all;
  animation: logLineIn 0.3s ease-out;
}

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

.hud-log-time { color: #64748b; }
.hud-log-tag { color: var(--neon-gold); font-weight: 800; }
.hud-log-val { color: var(--neon-green); font-weight: 700; }

/* FOOTER */
.hud-footer {
  font-size: 11.5px;
  color: #94a3b8;
  padding: 8px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-family: var(--font-hud);
}

.hud-footer a {
  color: var(--neon-cyan);
  text-decoration: none;
  font-weight: 700;
}

.hud-footer a:hover {
  text-decoration: underline;
}

/* Custom Scrollbar */
.hud-logs-box::-webkit-scrollbar { width: 4px; }
.hud-logs-box::-webkit-scrollbar-track { background: rgba(0,0,0,0.5); }
.hud-logs-box::-webkit-scrollbar-thumb { background: var(--neon-green); border-radius: 2px; }
