/* ==========================================
   THIẾT KẾ PHONG CÁCH CYBERPUNK NEON GLOW
   ========================================== */

/* Biến màu chủ đạo */
:root {
  --bg-color: #050608;
  --panel-bg: rgba(13, 17, 23, 0.85);
  --panel-border: #1f2937;
  
  --neon-green: #00ff66;
  --neon-green-glow: rgba(0, 255, 102, 0.4);
  
  --neon-blue: #00f0ff;
  --neon-blue-glow: rgba(0, 240, 255, 0.4);
  
  --neon-red: #ff0055;
  --neon-red-glow: rgba(255, 0, 85, 0.4);
  
  --neon-yellow: #fefe00;
  --neon-yellow-glow: rgba(254, 254, 0, 0.4);

  --text-primary: #e2e8f0;
  --text-muted: #64748b;
  --font-display: 'Orbitron', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

body.cyber-theme {
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.5;
  overflow-x: hidden;
  height: 100vh;
  position: relative;
}

/* Hiệu ứng hình nền lưới grid chuyển động chậm */
.cyber-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(0, 255, 102, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 102, 0.03) 1px, transparent 1px);
  background-size: 30px 30px;
  background-position: center;
  pointer-events: none;
  z-index: 1;
}

/* Hiệu ứng nhiễu màn hình (Scanlines) CRT kiểu cổ điển */
.scanlines {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    rgba(18, 16, 16, 0) 50%, 
    rgba(0, 0, 0, 0.25) 50%
  );
  background-size: 100% 4px;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.4;
}

/* Container chính */
.container {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding: 15px;
}

/* Header styling */
.cyber-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  background: var(--panel-bg);
  border: 1px solid rgba(0, 255, 102, 0.2);
  box-shadow: 0 0 15px rgba(0, 255, 102, 0.05);
  margin-bottom: 15px;
  border-radius: 4px;
  clip-path: polygon(0 0, 98% 0, 100% 30%, 100% 100%, 2% 100%, 0 70%);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo h1 {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 2px;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo .version {
  font-size: 9px;
  color: var(--text-muted);
  border: 1px solid var(--text-muted);
  padding: 1px 4px;
  border-radius: 2px;
  font-family: var(--font-mono);
}

/* Glow effects cho chữ */
.neon-text-green {
  color: var(--neon-green);
  text-shadow: 0 0 8px var(--neon-green-glow);
}
.neon-text-blue {
  color: var(--neon-blue);
  text-shadow: 0 0 8px var(--neon-blue-glow);
}
.neon-text-red {
  color: var(--neon-red);
  text-shadow: 0 0 8px var(--neon-red-glow);
}
.neon-text-yellow {
  color: var(--neon-yellow);
  text-shadow: 0 0 8px var(--neon-yellow-glow);
}

.glow-icon {
  filter: drop-shadow(0 0 5px var(--neon-green));
}

/* Điều khiển (Nút bấm) */
.controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: bold;
  padding: 8px 18px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  border-radius: 3px;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 1px;
}

.btn-start {
  background: rgba(0, 255, 102, 0.1);
  color: var(--neon-green);
  border: 1px solid var(--neon-green);
  box-shadow: 0 0 8px rgba(0, 255, 102, 0.2);
}

.btn-start:hover:not(:disabled) {
  background: var(--neon-green);
  color: #000;
  box-shadow: 0 0 15px var(--neon-green);
}

.btn-stop {
  background: rgba(255, 0, 85, 0.1);
  color: var(--neon-red);
  border: 1px solid var(--neon-red);
  box-shadow: 0 0 8px rgba(255, 0, 85, 0.2);
}

.btn-stop:hover:not(:disabled) {
  background: var(--neon-red);
  color: #fff;
  box-shadow: 0 0 15px var(--neon-red);
}

.btn-admin {
  background: rgba(0, 240, 255, 0.1);
  color: var(--neon-blue);
  border: 1px solid var(--neon-blue);
  box-shadow: 0 0 8px rgba(0, 240, 255, 0.2);
}

.btn-admin:hover:not(:disabled) {
  background: var(--neon-blue);
  color: #000;
  box-shadow: 0 0 15px var(--neon-blue);
}

.btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  box-shadow: none;
}

/* User Header Info */
.user-header-info {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.4);
  padding: 6px 14px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 11px;
}

.user-header-info.logged-in {
  border-color: rgba(0, 255, 102, 0.2);
  box-shadow: 0 0 8px rgba(0, 255, 102, 0.05);
}

.user-header-info.logged-in i {
  color: var(--neon-green);
}

.btn-logout {
  background: none;
  border: none;
  color: var(--neon-red);
  cursor: pointer;
  font-size: 12px;
  padding: 2px 4px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
}

.btn-logout:hover {
  color: #ff3377;
  transform: scale(1.1);
}

/* Connection Status */
.connection-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  background: rgba(0, 0, 0, 0.4);
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.connection-status.online .dot {
  background-color: var(--neon-green);
  box-shadow: 0 0 8px var(--neon-green);
}

.connection-status.offline .dot {
  background-color: var(--neon-red);
  box-shadow: 0 0 8px var(--neon-red);
}

.connection-status.online {
  border-color: rgba(0, 255, 102, 0.3);
}

/* Grid layout Dashboard */
.dashboard-grid {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 15px;
  flex: 1;
  min-height: 0;
}

/* Panel chung */
.panel {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  position: relative;
}

/* Header cho Panel */
.panel-header {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 8px 15px;
  background: rgba(31, 41, 55, 0.4);
  border-bottom: 1px solid var(--panel-border);
  color: var(--text-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.terminal-badge, .red-badge {
  font-size: 9px;
  font-family: var(--font-mono);
  padding: 1px 6px;
  border-radius: 2px;
}

.terminal-badge {
  background: rgba(0, 240, 255, 0.1);
  color: var(--neon-blue);
  border: 1px solid rgba(0, 240, 255, 0.3);
}

.red-badge {
  background: rgba(255, 0, 85, 0.1);
  color: var(--neon-red);
  border: 1px solid rgba(255, 0, 85, 0.3);
}

/* --- PHẦN 2: THỐNG KÊ TỔNG QUAN --- */
.stats-panel {
  border-color: rgba(0, 240, 255, 0.2);
}

.stats-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  padding: 15px;
}

.stat-card {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  padding: 12px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.stat-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 2px;
  height: 100%;
  background: var(--neon-blue);
}

.stat-card.hit-card::after {
  background: var(--neon-red);
}

.stat-label {
  font-size: 9px;
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 900;
  margin: 5px 0;
  line-height: 1;
}

.stat-subtext {
  font-size: 9px;
  color: var(--text-muted);
}

/* --- PHẦN 1: BẢNG QUÉT THỜI GIAN THỰC --- */
.monitor-panel {
  flex: 1;
  min-height: 250px;
  border-color: rgba(0, 255, 102, 0.2);
}

.table-container {
  flex: 1;
  overflow-y: auto;
  position: relative;
}


/* Tùy chỉnh thanh cuộn Scrollbar */
.table-container::-webkit-scrollbar,
.jackpot-container::-webkit-scrollbar,
.cyber-textarea::-webkit-scrollbar {
  width: 6px;
}
.table-container::-webkit-scrollbar-track,
.jackpot-container::-webkit-scrollbar-track,
.cyber-textarea::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.3);
}
.table-container::-webkit-scrollbar-thumb,
.jackpot-container::-webkit-scrollbar-thumb,
.cyber-textarea::-webkit-scrollbar-thumb {
  background: rgba(0, 255, 102, 0.2);
  border-radius: 3px;
}
.table-container::-webkit-scrollbar-thumb:hover,
.jackpot-container::-webkit-scrollbar-thumb:hover,
.cyber-textarea::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 255, 102, 0.5);
}

.cyber-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.cyber-table th {
  position: sticky;
  top: 0;
  background: #0d1117;
  color: var(--text-muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 8px 12px;
  border-bottom: 2px solid var(--panel-border);
  z-index: 5;
}

.cyber-table td {
  padding: 7px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.02);
  vertical-align: middle;
  font-size: 11px;
}

/* Style cho các hàng */
.cyber-table tbody tr {
  transition: background 0.1s ease;
}

.cyber-table tbody tr:hover {
  background: rgba(0, 255, 102, 0.03);
}

/* Các lớp trạng thái trong bảng */
.row-status-checking {
  color: var(--neon-yellow);
}

.row-status-zero {
  color: var(--text-muted);
}

.row-status-hit {
  color: var(--neon-red);
  background: rgba(255, 0, 85, 0.1) !important;
  font-weight: bold;
}

.row-status-error {
  color: #ff6b6b;
}

/* Cell hiển thị */
.cell-index {
  color: var(--text-muted);
  font-weight: 700;
}

.cell-mnemonic {
  color: var(--text-primary);
  word-break: break-all;
}

.cell-address {
  color: var(--neon-blue);
  word-break: break-all;
}

.cell-balance {
  font-weight: 700;
}

.cell-status {
  text-transform: uppercase;
  font-size: 9px;
  font-weight: 700;
}

/* Badge nhấp nháy cho Checking */
.checking-pulse::after {
  content: '...';
  display: inline-block;
  animation: dots 1.5s infinite steps(4);
  width: 15px;
}

@keyframes dots {
  0%, 20% { content: ''; }
  40% { content: '.'; }
  60% { content: '..'; }
  80%, 100% { content: '...'; }
}

/* --- PHẦN 3: DANH SÁCH VÍ CÓ TIỀN (JACKPOT HITS) --- */
.jackpot-panel {
  border-color: rgba(255, 0, 85, 0.3);
  max-height: 250px;
}

.neon-border-red {
  border-bottom-color: rgba(255, 0, 85, 0.3) !important;
  background: rgba(255, 0, 85, 0.05) !important;
}

.jackpot-container {
  padding: 15px;
  overflow-y: auto;
  flex: 1;
  min-height: 100px;
}

/* Trạng thái trống */
.jackpot-empty {
  color: var(--text-muted);
  text-align: center;
  padding: 20px;
  font-size: 11px;
  letter-spacing: 1px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.jackpot-empty i {
  font-size: 20px;
}

/* Hiệu ứng chớp nháy (Blink) cho Cyberpunk */
.blink {
  animation: cyberpunk-blink 2s infinite;
}

@keyframes cyberpunk-blink {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.8; }
}

/* Danh sách Jackpot */
.jackpot-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}



.jackpot-item {
  background: rgba(255, 0, 85, 0.05);
  border: 1px solid rgba(255, 0, 85, 0.3);
  border-radius: 4px;
  padding: 12px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 15px;
  align-items: center;
  animation: slide-in 0.3s ease-out;
  box-shadow: 0 0 10px rgba(255, 0, 85, 0.05);
}

@keyframes slide-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.jackpot-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.jackpot-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.jackpot-tag {
  font-size: 8px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 2px;
  font-family: var(--font-display);
  min-width: 80px;
  text-align: center;
}

.tag-mnemonic {
  background: rgba(254, 254, 0, 0.15);
  color: var(--neon-yellow);
  border: 1px solid rgba(254, 254, 0, 0.3);
}

.tag-address {
  background: rgba(0, 240, 255, 0.15);
  color: var(--neon-blue);
  border: 1px solid rgba(0, 240, 255, 0.3);
}

.jackpot-text {
  font-size: 11px;
  color: var(--text-primary);
  word-break: break-all;
  user-select: all;
}

.jackpot-item-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.jackpot-balance-badge {
  background: rgba(0, 255, 102, 0.1);
  border: 1px solid var(--neon-green);
  color: var(--neon-green);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 900;
  padding: 6px 12px;
  border-radius: 4px;
  text-shadow: 0 0 5px rgba(0,255,102,0.3);
  display: flex;
  align-items: center;
  gap: 8px;
}

.jackpot-copy-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-primary);
  padding: 4px 10px;
  font-size: 9px;
  font-family: var(--font-display);
  cursor: pointer;
  border-radius: 3px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 5px;
}

.jackpot-copy-btn:hover {
  background: rgba(0, 240, 255, 0.1);
  color: var(--neon-blue);
  border-color: var(--neon-blue);
}

.copied {
  background: rgba(0, 255, 102, 0.15) !important;
  color: var(--neon-green) !important;
  border-color: var(--neon-green) !important;
}

/* --- FOOTER --- */
.cyber-footer {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  color: var(--text-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 8px;
  margin-top: 5px;
}

/* ==========================================
   ADMIN & AUTH PANEL MODAL STYLING
   ========================================== */

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
}

.modal-content {
  background: #090c10;
  border: 1px solid rgba(0, 240, 255, 0.3);
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.15);
  width: 90%;
  max-width: 500px;
  border-radius: 4px;
  overflow: hidden;
  animation: modal-open 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

@keyframes modal-open {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.modal-header {
  padding: 15px 20px;
  background: rgba(0, 240, 255, 0.05);
  border-bottom: 1px solid rgba(0, 240, 255, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h2 {
  font-family: var(--font-display);
  font-size: 14px;
  margin: 0;
  letter-spacing: 1px;
}

.modal-close-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}

.modal-close-btn:hover {
  color: var(--neon-red);
}

.modal-body {
  padding: 20px;
}

.form-group {
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 9px;
  font-weight: 700;
  color: var(--neon-blue);
  letter-spacing: 0.5px;
}

.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cyber-input {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--panel-border);
  color: var(--text-primary);
  padding: 8px 12px;
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 12px;
  transition: all 0.2s;
  width: 100%;
}

.cyber-input:focus, .cyber-textarea:focus {
  outline: none;
  border-color: var(--neon-blue);
  box-shadow: 0 0 8px rgba(0, 240, 255, 0.2);
}

.cyber-textarea {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--panel-border);
  color: var(--text-primary);
  padding: 8px 12px;
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 11px;
  transition: all 0.2s;
  width: 100%;
  resize: none;
}

.cyber-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: #1f2937;
  outline: none;
  margin: 10px 0;
}

.cyber-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--neon-green);
  cursor: pointer;
  box-shadow: 0 0 10px var(--neon-green);
  transition: all 0.1s;
}

.cyber-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.error-msg {
  color: var(--neon-red);
  font-size: 10px;
  margin: 8px 0;
  text-align: center;
  font-weight: bold;
}

.success-msg {
  color: var(--neon-green);
  font-size: 10px;
  margin: 8px 0;
  text-align: center;
  font-weight: bold;
}

.btn-login-submit {
  width: 100%;
  justify-content: center;
  padding: 10px;
  background: rgba(0, 240, 255, 0.1);
  color: var(--neon-blue);
  border: 1px solid var(--neon-blue);
  margin-top: 10px;
}

.btn-login-submit:hover {
  background: var(--neon-blue);
  color: #000;
  box-shadow: 0 0 15px var(--neon-blue);
}

.btn-register-submit {
  width: 100%;
  justify-content: center;
  padding: 10px;
  background: rgba(0, 255, 102, 0.1);
  color: var(--neon-green);
  border: 1px solid var(--neon-green);
  margin-top: 10px;
}

.btn-register-submit:hover {
  background: var(--neon-green);
  color: #000;
  box-shadow: 0 0 15px var(--neon-green);
}

.btn-save-config {
  background: rgba(0, 255, 102, 0.1);
  color: var(--neon-green);
  border: 1px solid var(--neon-green);
  padding: 10px;
  width: 100%;
  justify-content: center;
}

.btn-save-config:hover {
  background: var(--neon-green);
  color: #000;
  box-shadow: 0 0 15px var(--neon-green);
}

.cyber-divider {
  border: none;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
  margin: 20px 0;
}

.config-section-title {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.preset-status-box {
  padding: 8px 12px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 15px;
  border: 1px solid;
  transition: all 0.2s;
}

.preset-status-box.none-active {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  border-color: rgba(255, 255, 255, 0.1);
}

.preset-status-box.active {
  background: rgba(254, 254, 0, 0.1);
  color: var(--neon-yellow);
  border-color: var(--neon-yellow);
  box-shadow: 0 0 10px rgba(254, 254, 0, 0.1);
}

.preset-controls-row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 10px;
}

.btn-preset-active {
  background: rgba(254, 254, 0, 0.1);
  color: var(--neon-yellow);
  border: 1px solid var(--neon-yellow);
  justify-content: center;
}

.btn-preset-active:hover:not(:disabled) {
  background: var(--neon-yellow);
  color: #000;
  box-shadow: 0 0 15px var(--neon-yellow);
}

.btn-preset-cancel {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.1);
  justify-content: center;
}

.btn-preset-cancel:hover:not(:disabled) {
  background: rgba(255, 0, 85, 0.1);
  color: var(--neon-red);
  border-color: var(--neon-red);
}

.speed-input-container {
  display: flex;
  align-items: center;
  gap: 15px;
}

.speed-number-input {
  width: 95px !important;
  text-align: center;
}

.speed-number-input::-webkit-outer-spin-button,
.speed-number-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.speed-number-input[type=number] {
  -moz-appearance: textfield;
}

/* ==========================================
   AUTH MODAL STYLING
   ========================================== */

.auth-modal-content {
  border-color: rgba(0, 255, 102, 0.3) !important;
  box-shadow: 0 0 25px rgba(0, 255, 102, 0.15) !important;
}

/* Cấu trúc Header Tab cho Auth */
.auth-tabs {
  display: flex;
  background: rgba(31, 41, 55, 0.4);
  border-bottom: 1px solid var(--panel-border);
  position: relative;
}

.auth-tab-btn {
  flex: 1;
  background: none;
  border: none;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 15px 10px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
  border-bottom: 2px solid transparent;
}

.auth-tab-btn:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.02);
}

.auth-tab-btn.active {
  color: var(--neon-green);
  border-bottom-color: var(--neon-green);
  background: rgba(0, 255, 102, 0.03);
  text-shadow: 0 0 5px var(--neon-green-glow);
}

.auth-close-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 24px;
  cursor: pointer;
  padding: 0 15px;
  line-height: 1;
  transition: color 0.2s;
}

.btn-header-auth {
  background: rgba(0, 255, 102, 0.05);
  border: 1px solid rgba(0, 255, 102, 0.3);
  color: var(--neon-green);
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: bold;
  padding: 6px 12px;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 5px;
  letter-spacing: 0.5px;
}

.btn-header-auth:hover {
  background: var(--neon-green);
  color: #000;
  box-shadow: 0 0 10px var(--neon-green);
}

/* Captcha Styling */
.captcha-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.3);
  padding: 4px;
  border-radius: 4px;
  border: 1px solid var(--panel-border);
}

.captcha-text-box {
  background: #111;
  color: var(--neon-yellow);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 16px;
  letter-spacing: 4px;
  padding: 6px 12px;
  border-radius: 3px;
  border: 1px dashed rgba(254, 254, 0, 0.4);
  text-shadow: 0 0 6px var(--neon-yellow-glow);
  user-select: none;
  font-style: italic;
  transform: skewX(-5deg);
  min-width: 75px;
  text-align: center;
}

.btn-refresh-captcha {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 14px;
  cursor: pointer;
  padding: 8px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-refresh-captcha:hover {
  color: var(--neon-blue);
  transform: rotate(180deg);
}

.captcha-input-field {
  flex: 1;
  text-align: center;
  font-weight: bold;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* ==========================================
   OFFLINE OVERLAY STYLING
   ========================================== */

.offline-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(5, 6, 8, 0.95);
  backdrop-filter: blur(10px);
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.3s ease;
}

.offline-box {
  background: #090c10;
  border: 2px solid var(--neon-red);
  box-shadow: 0 0 30px rgba(255, 0, 85, 0.25);
  padding: 40px 30px;
  max-width: 450px;
  width: 90%;
  border-radius: 6px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
  0%, 100% {
    box-shadow: 0 0 20px rgba(255, 0, 85, 0.2);
    border-color: var(--neon-red);
  }
  50% {
    box-shadow: 0 0 35px rgba(255, 0, 85, 0.45);
    border-color: #ff3377;
  }
}

.offline-icon {
  font-size: 50px;
  color: var(--neon-red);
  filter: drop-shadow(0 0 8px rgba(255, 0, 85, 0.6));
  margin-bottom: 10px;
  animation: icon-bounce 1s infinite alternate;
}

@keyframes icon-bounce {
  from { transform: translateY(0); }
  to { transform: translateY(-8px); }
}

.offline-box h2 {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 2px;
  margin: 0;
}

.offline-box p {
  color: var(--text-primary);
  font-size: 12px;
  line-height: 1.6;
}

.offline-badge {
  background: rgba(255, 0, 85, 0.1);
  border: 1px solid var(--neon-red);
  color: var(--neon-red);
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 2px;
  font-weight: bold;
  letter-spacing: 1px;
}

.offline-subtext {
  color: var(--text-muted) !important;
  font-size: 10px !important;
  margin-top: 10px;
}

.hidden {
  display: none !important;
}

@media (max-width: 900px) {
  .stats-container {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .cyber-header {
    flex-direction: column;
    gap: 15px;
    align-items: stretch;
    clip-path: none;
  }
  .controls {
    justify-content: space-between;
  }
}

.blur-text {
  filter: blur(5px);
  user-select: none;
  pointer-events: none;
  opacity: 0.6;
}

.blur-container {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(254, 254, 0, 0.05);
  border: 1px dashed rgba(254, 254, 0, 0.3);
  padding: 2px 8px;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
}

.blur-container:hover {
  background: rgba(254, 254, 0, 0.15);
  border-color: var(--neon-yellow);
  box-shadow: 0 0 8px rgba(254, 254, 0, 0.2);
}

.blur-lock-icon {
  color: var(--neon-yellow);
  font-size: 10px;
  animation: pulse-lock 1.5s infinite;
}

@keyframes pulse-lock {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.btn-buy-key-banner:hover {
  background: rgba(254, 254, 0, 0.3) !important;
  box-shadow: 0 0 15px var(--neon-yellow) !important;
  color: #000 !important;
}

/* Các khối làm mờ rỗng giả lập từ khóa bị mờ (không có text trong DOM) */
.blur-word-block {
  display: inline-block;
  height: 12px;
  background: rgba(254, 254, 0, 0.45);
  filter: blur(4px);
  border-radius: 2px;
  margin: 2px 4px;
  vertical-align: middle;
  pointer-events: none;
  user-select: none;
  box-shadow: 0 0 5px rgba(254, 254, 0, 0.2);
  /* static block: no animation to keep layout stable */
  animation: none;
}

@keyframes pulse-block {
  0% { opacity: 0.5; }
  100% { opacity: 0.9; }
}

