/* =========================================================================
   GIAO DIỆN BUFF TOKEN META MUSE TỰ ĐỘNG (PREMIUM DARK MODE)
   ========================================================================= */

.buff-container {
  padding: 24px;
  max-width: 1400px;
  margin: 0 auto;
  color: #f1f5f9;
  font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, sans-serif;
  height: 100%;
  overflow-y: auto;
  box-sizing: border-box;
}

/* Header */
.buff-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.buff-header-left h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.buff-header-left p {
  margin: 0;
  font-size: 13px;
  color: #94a3b8;
}
.buff-header-actions {
  display: flex;
  gap: 10px;
}

/* Metric Cards - Gọn gàng thanh lịch */
.buff-stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}
@media (max-width: 1024px) {
  .buff-stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }
}
.buff-stat-card {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(12px);
  transition: transform 0.2s, border-color 0.2s;
  min-width: 0;
}
.buff-stat-card:hover {
  transform: translateY(-1px);
  border-color: rgba(245, 158, 11, 0.4);
}
.buff-stat-icon {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}
.buff-stat-icon.green { background: rgba(34, 197, 94, 0.15); color: #22c55e; border: 1px solid rgba(34, 197, 94, 0.3); }
.buff-stat-icon.amber { background: rgba(245, 158, 11, 0.15); color: #f59e0b; border: 1px solid rgba(245, 158, 11, 0.3); }
.buff-stat-icon.blue { background: rgba(59, 130, 246, 0.15); color: #3b82f6; border: 1px solid rgba(59, 130, 246, 0.3); }
.buff-stat-icon.purple { background: rgba(168, 85, 247, 0.15); color: #a855f7; border: 1px solid rgba(168, 85, 247, 0.3); }
.buff-stat-icon.red { background: rgba(239, 68, 68, 0.15); color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.3); }

.buff-stat-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}
.buff-stat-num {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
}
.buff-stat-label {
  font-size: 11px;
  color: #94a3b8;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Sub-nav Tabs */
.buff-subnav {
  display: flex;
  gap: 6px;
  background: rgba(15, 23, 42, 0.8);
  padding: 4px 6px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 12px;
}
.buff-subtab-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}
.buff-subtab-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}
.buff-subtab-btn.active {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #000;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

/* Sub-panels */
.buff-panel {
  display: none;
}
.buff-panel.active {
  display: block;
  animation: fadeInBuff 0.25s ease-out;
}
@keyframes fadeInBuff {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Layout 2 cột cho Quick Buff */
.buff-quick-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 14px;
  align-items: start;
}
@media (max-width: 1024px) {
  .buff-quick-grid {
    grid-template-columns: 1fr;
  }
}

.buff-card {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 24px;
  backdrop-filter: blur(12px);
}
.buff-card-title {
  margin: 0 0 18px 0;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.buff-form-group {
  margin-bottom: 18px;
}
.buff-form-group label {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
  color: #cbd5e1;
  margin-bottom: 8px;
}
.buff-code-input-wrap {
  position: relative;
}
.buff-input {
  width: 100%;
  box-sizing: border-box;
  background: rgba(30, 41, 59, 0.7);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 12px 16px;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  outline: none;
  transition: border-color 0.2s;
}
.buff-input:focus {
  border-color: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}
.buff-code-badge {
  margin-top: 6px;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.buff-code-badge.valid { color: #22c55e; }
.buff-code-badge.invalid { color: #f43f5e; }

.buff-quick-counts {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
.buff-count-btn {
  flex: 1;
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  padding: 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}
.buff-count-btn:hover {
  background: rgba(245, 158, 11, 0.2);
  border-color: #f59e0b;
  color: #fff;
}

.buff-submit-btn {
  width: 100%;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  border: none;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  padding: 14px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.35);
  transition: opacity 0.2s, transform 0.1s;
}
.buff-submit-btn:hover {
  opacity: 0.95;
  transform: translateY(-1px);
}
.buff-submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Console Log Box */
.buff-console-card {
  display: flex;
  flex-direction: column;
  min-height: 640px;
  height: auto;
}
.buff-console-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.buff-progress-wrap {
  margin-bottom: 12px;
}
.buff-progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 6px;
}
.buff-progress-bar-bg {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
}
.buff-progress-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #f59e0b, #22c55e);
  border-radius: 4px;
  transition: width 0.3s;
}
.buff-terminal {
  flex: 1;
  background: #0a0f1d;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 12px 14px;
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 12.5px;
  line-height: 1.5;
  color: #38bdf8;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-all;
}

/* Table controls */
.buff-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}
.buff-toolbar-left, .buff-toolbar-right {
  display: flex;
  gap: 8px;
  align-items: center;
}
.buff-select-filter, .buff-search-input {
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 13px;
  outline: none;
}
.buff-search-input {
  width: 220px;
}

/* Table */
.buff-table-wrap {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
}
.buff-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}
.buff-table th {
  background: rgba(30, 41, 59, 0.7);
  padding: 12px 14px;
  color: #94a3b8;
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.buff-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: #cbd5e1;
}
.buff-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* Status Badges */
.buff-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
}
.buff-badge.available { background: rgba(34, 197, 94, 0.15); color: #22c55e; border: 1px solid rgba(34, 197, 94, 0.3); }
.buff-badge.near47h { background: rgba(245, 158, 11, 0.2); color: #f59e0b; border: 1px solid rgba(245, 158, 11, 0.4); animation: pulse47h 1.5s infinite; }
.buff-badge.redeemed { background: rgba(59, 130, 246, 0.15); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.3); }
.buff-badge.expired { background: rgba(148, 163, 184, 0.15); color: #94a3b8; border: 1px solid rgba(148, 163, 184, 0.3); }
.buff-badge.error { background: rgba(239, 68, 68, 0.15); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.3); }

@keyframes pulse47h {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* Tier Badges */
.buff-badge-tier {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  font-family: monospace;
  letter-spacing: 0.5px;
}
.buff-badge-tier.tier-0b, .buff-badge-tier.tier-free { background: rgba(148, 163, 184, 0.14); color: #94a3b8; border: 1px solid rgba(148, 163, 184, 0.25); }
.buff-badge-tier.tier-1b { background: rgba(56, 189, 248, 0.16); color: #38bdf8; border: 1px solid rgba(56, 189, 248, 0.35); }
.buff-badge-tier.tier-2b { background: rgba(16, 185, 129, 0.16); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.35); }
.buff-badge-tier.tier-3b { background: rgba(168, 85, 247, 0.16); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.35); }
.buff-badge-tier.tier-med { background: rgba(14, 165, 233, 0.16); color: #38bdf8; border: 1px solid rgba(14, 165, 233, 0.35); }
.buff-badge-tier.tier-high { background: rgba(245, 158, 11, 0.18); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.4); text-shadow: 0 0 8px rgba(245, 158, 11, 0.3); }

/* Pagination */
.buff-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  font-size: 12px;
  color: #94a3b8;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.buff-page-btns {
  display: flex;
  gap: 6px;
}
.buff-page-btn {
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
}
.buff-page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Modals */
.buff-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  backdrop-filter: blur(4px);
}
.buff-modal-box {
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  width: 520px;
  max-width: 90vw;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}
.buff-modal-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 16px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
}
.buff-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}


/* === MULTI-TASK PARALLEL BAR & CHIPS === */
.buff-active-tasks-bar {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 12px;
}
.buff-task-chips-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  max-height: 140px;
  overflow-y: auto;
  padding: 2px;
}
.buff-task-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  background: rgba(30, 41, 59, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  color: #cbd5e1;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}
.buff-task-chip:hover {
  border-color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  color: #fff;
}
.buff-task-chip.selected {
  border-color: #38bdf8;
  background: rgba(14, 165, 233, 0.25);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.35);
  color: #38bdf8;
  font-weight: 600;
}
.buff-task-chip .chip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.buff-task-chip .chip-dot.processing {
  background: #f59e0b;
  box-shadow: 0 0 6px #f59e0b;
  animation: buff-pulse 1.2s infinite;
}
.buff-task-chip .chip-dot.completed {
  background: #22c55e;
}
.buff-task-chip .chip-dot.failed {
  background: #ef4444;
}
.buff-task-chip .chip-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 4px;
  color: #94a3b8;
  font-size: 14px;
  border-radius: 50%;
  width: 14px;
  height: 14px;
  line-height: 1;
  background: transparent;
  border: none;
  cursor: pointer;
}
.buff-task-chip .chip-close:hover {
  color: #ef4444;
}


/* === TIẾN TRÌNH TỪNG TASK SONG SONG (DẠNG LƯỚI RỘNG RÃI) === */
.buff-tasks-grid-list, #buff-tasks-list-container {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)) !important;
  gap: 8px !important;
  min-height: 160px;
  max-height: 330px;
  overflow-y: auto;
  margin-bottom: 12px;
  padding-right: 4px;
  align-content: start;
}
#buff-tasks-list-container > #buff-tasks-empty,
#buff-tasks-list-container > div:only-child {
  grid-column: 1 / -1;
  width: 100%;
}

.buff-task-item {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 8px 10px;
  transition: all 0.2s ease;
  position: relative;
}
.buff-task-item:hover {
  border-color: rgba(56, 189, 248, 0.4);
  background: rgba(30, 41, 59, 0.7);
}
.buff-task-item.active {
  border-color: #38bdf8;
  background: rgba(14, 165, 233, 0.12);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.2);
}
.buff-task-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.buff-task-item-left {
  display: flex;
  align-items: center;
  gap: 6px;
}
.buff-task-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
}
.buff-task-dot.processing, .buff-task-dot.pending {
  background: #f59e0b;
  box-shadow: 0 0 6px #f59e0b;
  animation: buff-pulse 1.2s infinite;
}
.buff-task-dot.completed {
  background: #22c55e;
  box-shadow: 0 0 4px #22c55e;
}
.buff-task-dot.failed, .buff-task-dot.partial_failed {
  background: #ef4444;
}
.buff-task-code {
  font-size: 14px;
  color: #f8fafc;
  letter-spacing: 1px;
}
.buff-task-id {
  font-size: 11px;
  color: #64748b;
  font-family: monospace;
}
.buff-task-item-right {
  display: flex;
  align-items: center;
  gap: 6px;
}
.btn-xs {
  padding: 3px 8px;
  font-size: 11px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  cursor: pointer;
  transition: all 0.15s ease;
}
.btn-xs:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}
.btn-view-log.btn-active {
  background: #0284c7;
  border-color: #38bdf8;
  color: #fff;
  font-weight: 600;
}
.btn-remove-task {
  padding: 3px 6px;
  background: transparent;
  border: none;
  color: #64748b;
  cursor: pointer;
}
.btn-remove-task:hover {
  color: #ef4444;
}
.buff-task-progress-labels {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: #94a3b8;
  margin-bottom: 5px;
}
.buff-task-counter {
  color: #cbd5e1;
}
.buff-task-counter b {
  color: #38bdf8;
}
.buff-task-bar-bg {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
}
.buff-task-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.3s ease;
  background: linear-gradient(90deg, #38bdf8, #f59e0b);
}
.buff-task-bar-fill.completed {
  background: #22c55e;
}
.buff-task-bar-fill.failed, .buff-task-bar-fill.partial_failed {
  background: #ef4444;
}

/* === BATCH BUFF INPUT & QUEUE STYLES === */
.buff-mode-toggle {
  display: flex;
  background: rgba(15, 23, 42, 0.7);
  padding: 3px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 12px;
  gap: 4px;
}
.buff-mode-btn {
  flex: 1;
  padding: 6px 12px;
  border: none;
  background: transparent;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.buff-mode-btn.active {
  background: #0284c7;
  color: #fff;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.35);
}
.buff-batch-textarea {
  width: 100%;
  height: 120px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 10px 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  color: #e2e8f0;
  resize: vertical;
  line-height: 1.5;
  box-sizing: border-box;
}
.buff-batch-textarea:focus {
  outline: none;
  border-color: #38bdf8;
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2);
}
.buff-batch-counter-badge {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: #94a3b8;
  margin-top: 4px;
  margin-bottom: 10px;
}
.buff-queue-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(2, 132, 199, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 8px;
  padding: 8px 12px;
  margin-bottom: 12px;
  font-size: 12px;
  color: #e2e8f0;
}

/* === CHECK TOKEN PANEL STYLES === */
.buff-check-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 16px;
}
@media (max-width: 1024px) {
  .buff-check-grid {
    grid-template-columns: 1fr;
  }
}
.buff-token-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  background: rgba(0, 0, 0, 0.25);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.buff-badge-tier {
  display: inline-block;
  font-weight: 700;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 6px;
  letter-spacing: 0.5px;
}
.buff-badge-tier.tier-high {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.25), rgba(236, 72, 153, 0.25));
  color: #f472b6;
  border: 1px solid rgba(236, 72, 153, 0.4);
}
.buff-badge-tier.tier-med {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}
.buff-badge-tier.tier-low {
  background: rgba(56, 189, 248, 0.18);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.35);
}
.buff-badge-tier.tier-free {
  background: rgba(148, 163, 184, 0.15);
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.3);
}
.buff-copy-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
  transition: color 0.15s;
}
.buff-copy-btn:hover {
  color: #38bdf8;
}



/* BẢNG KẺ Ô RÕ RÀNG (GRID TABLE) CHO CHECK TOKEN & DATA TABLES */
.buff-grid-table {
  width: 100%;
  border-collapse: collapse !important;
  font-size: 12.5px;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
}
.buff-grid-table th {
  background: #1e293b !important;
  padding: 8px 10px !important;
  color: #f1f5f9 !important;
  font-weight: 700 !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  position: sticky;
  top: 0;
  z-index: 10;
  white-space: nowrap;
}
.buff-grid-table td {
  padding: 6px 10px !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #cbd5e1;
  vertical-align: middle;
}
.buff-grid-table tr:nth-child(even) td {
  background: rgba(30, 41, 59, 0.35);
}
.buff-grid-table tr:hover td {
  background: rgba(56, 189, 248, 0.09) !important;
}
.buff-grid-table tr.row-selected td {
  background: rgba(2, 132, 199, 0.22) !important;
}
.buff-token-copyable {
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 11.5px;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  padding: 3px 6px;
  user-select: all !important;
  cursor: text;
  display: block;
  max-width: 320px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.buff-token-copyable:focus, .buff-token-copyable:active {
  border-color: #38bdf8;
  color: #fff;
}
.buff-code-copyable {
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 13px;
  font-weight: 700;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 4px;
  padding: 2px 7px;
  user-select: all !important;
  cursor: pointer;
  letter-spacing: 1px;
  display: inline-block;
  transition: all 0.15s ease;
}
.buff-code-copyable:hover {
  background: rgba(56, 189, 248, 0.3);
  color: #fff;
  transform: scale(1.05);
}
