/* ================================================================
   BITGOLI / TCM — MINING DARK DESIGN SYSTEM v3.0
   Primary colour: #0558ff  (was cyan #00e4ff, now brand blue)
   Gold accent:    #ffb400
   ALL text forced to white — no legibility issues
   ================================================================ */

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

/* ─── CSS TOKENS ─────────────────────────────────────────────── */
:root {
  /* Brand blue (was cyan) */
  --cyan:        #0558ff;
  --cyan-dim:    rgba(5, 88, 255, 0.15);
  --cyan-glow:   rgba(5, 88, 255, 0.40);
  --cyan-border: rgba(5, 88, 255, 0.25);

  /* Gold accent — unchanged */
  --gold:        #ffb400;
  --gold-dim:    rgba(255, 180, 0, 0.15);
  --gold-glow:   rgba(255, 180, 0, 0.40);

  /* Backgrounds */
  --bg-void:     #03070f;
  --bg-deep:     #060c1a;
  --bg-surface:  #0a1224;
  --bg-raised:   #0e1b32;
  --bg-hover:    #132040;
  --bg-glass:    rgba(10, 18, 36, 0.75);

  /* Borders */
  --border:        rgba(5, 88, 255, 0.18);
  --border-gold:   rgba(255, 180, 0, 0.20);
  --border-subtle: rgba(255, 255, 255, 0.06);

  /* TEXT — all white spectrum */
  --text-primary:   #ffffff;
  --text-secondary: #c8d8f0;
  --text-muted:     #6888aa;

  /* Semantic */
  --success: #00d4a0;
  --danger:  #ff4466;
  --warning: #ffb400;
  --info:    #0558ff;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;

  /* Shadows */
  --shadow-cyan: 0 0 24px rgba(5,88,255,0.20), 0 4px 20px rgba(0,0,0,0.55);
  --shadow-gold: 0 0 20px rgba(255,180,0,0.15), 0 4px 20px rgba(0,0,0,0.55);
  --shadow-card: 0 8px 32px rgba(0,0,0,0.65);

  --font-display: 'Rajdhani', sans-serif;
  --font-body:    'Barlow', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;
}

/* ─── RESET ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background-color: var(--bg-void);
  background-image:
    radial-gradient(ellipse 80% 55% at 50% -15%, rgba(5,88,255,0.10) 0%, transparent 60%),
    radial-gradient(ellipse 55% 40% at 90% 85%, rgba(255,180,0,0.05) 0%, transparent 55%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cpath d='M0 0h60v60H0z' fill='none'/%3E%3Cpath d='M30 0v60M0 30h60' stroke='rgba(5,88,255,0.03)' stroke-width='1'/%3E%3C/svg%3E");
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;

  /* ── FORCE ALL TEXT WHITE ── */
  color: var(--text-primary) !important;
}

/* ── GLOBAL WHITE TEXT OVERRIDE ─────────────────────────────── */
*, *::before, *::after {
  color: inherit;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  color: #ffffff !important;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

p, li, span, td, th, div, label, small, a {
  color: inherit;
}

/* Any element that would otherwise be dark-text-on-dark-bg */
.text-dark, .text-black, .text-body    { color: #ffffff !important; }
.text-secondary, .text-muted           { color: var(--text-muted) !important; }

/* ─── SCROLLBAR ──────────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-void); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* ─── TYPOGRAPHY HELPERS ─────────────────────────────────────── */
.mono    { font-family: var(--font-mono); }
.display { font-family: var(--font-display); }

.text-cyan    { color: var(--cyan) !important; }
.text-gold    { color: var(--gold) !important; }
.text-success { color: var(--success) !important; }
.text-danger  { color: var(--danger) !important; }
.text-white   { color: #ffffff !important; }

/* ─── HEADER ─────────────────────────────────────────────────── */
.site-header {
  background: rgba(3, 7, 15, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 30px rgba(0,0,0,0.4);
}
.site-header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0.4;
}
.navbar-brand img { height: 38px; }

.navbar-nav .nav-link {
  font-family: var(--font-display) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  color: var(--text-secondary) !important;
  padding: 0.5rem 1rem !important;
  transition: color 0.2s;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active { color: var(--cyan) !important; }

.dropdown-menu {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-cyan);
  padding: 0.4rem;
}
.dropdown-item {
  color: var(--text-secondary) !important;
  font-size: 13px;
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.75rem;
  transition: all 0.2s;
}
.dropdown-item:hover { background: var(--cyan-dim); color: var(--cyan) !important; }

/* ─── PAGE TITLE BAR ─────────────────────────────────────────── */
.page-title-bar {
  background: linear-gradient(135deg, var(--bg-surface), var(--bg-deep));
  border-bottom: 1px solid var(--border);
  padding: 28px 0 20px;
}
.page-title-bar h2 { color: #ffffff !important; font-size: 26px; margin: 0; }
.page-title-bar h2 span { color: var(--cyan); }

/* ─── BREADCRUMB ─────────────────────────────────────────────── */
.breadcrumb { margin: 0; background: none; padding: 0; }
.breadcrumb-item { font-family: var(--font-display); font-size: 13px; font-weight: 600; letter-spacing: 0.06em; }
.breadcrumb-item + .breadcrumb-item::before { color: var(--text-muted) !important; }
.breadcrumb-item a { color: var(--text-secondary) !important; text-decoration: none; }
.breadcrumb-item a:hover { color: var(--cyan) !important; }
.breadcrumb-item.active { color: var(--cyan) !important; }

/* ─── STAT CARDS ─────────────────────────────────────────────── */
.stat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.stat-card:hover {
  transform: translateY(-3px);
  border-color: rgba(5,88,255,0.4);
  box-shadow: var(--shadow-cyan);
}
.stat-label {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted) !important;
  margin-bottom: 8px;
}
.stat-value {
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 700;
  color: #ffffff !important;
  line-height: 1;
  letter-spacing: -0.02em;
}
.stat-sub { font-size: 12px; color: var(--text-muted) !important; margin-top: 6px; }
.stat-icon { width: 48px; height: 48px; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; }
.stat-icon-cyan    { background: var(--cyan-dim); color: var(--cyan); }
.stat-icon-gold    { background: var(--gold-dim); color: var(--gold); }
.stat-icon-success { background: rgba(0,212,160,0.12); color: var(--success); }
.stat-icon-danger  { background: rgba(255,68,102,0.12); color: var(--danger); }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

/* ─── WALLET HERO CARDS ──────────────────────────────────────── */
.wallet-hero-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
@media(max-width:991px){ .wallet-hero-row { grid-template-columns: repeat(2,1fr); } }
@media(max-width:575px){ .wallet-hero-row { grid-template-columns: 1fr; } }

.wallet-hero-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
}
.wallet-hero-card:hover { transform: translateY(-3px); }
.wallet-hero-cyan    { border-top: 2px solid var(--cyan); }
.wallet-hero-cyan:hover  { box-shadow: var(--shadow-cyan); }
.wallet-hero-gold    { border-top: 2px solid var(--gold); }
.wallet-hero-gold:hover  { box-shadow: var(--shadow-gold); }
.wallet-hero-success { border-top: 2px solid var(--success); }
.wallet-hero-success:hover { box-shadow: 0 8px 32px rgba(0,212,160,0.15); }

.wh-label {
  font-family: var(--font-display);
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-muted) !important;
  display: flex; align-items: center; gap: 6px;
  margin-bottom: 10px;
}
.wh-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 6px var(--cyan-glow);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%,100%{ opacity:1; box-shadow: 0 0 0 0 var(--cyan-glow); }
  50%    { opacity:.6; box-shadow: 0 0 0 4px transparent; }
}
.wh-value {
  font-family: var(--font-mono);
  font-size: 28px; font-weight: 700;
  color: #ffffff !important;
  letter-spacing: -0.02em; line-height: 1; margin-bottom: 6px;
}
.wh-sub { font-size: 12px; color: var(--text-muted) !important; margin-bottom: 16px; }
.wh-action {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-display); font-size: 11px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--cyan) !important;
  text-decoration: none;
  border: 1px solid var(--cyan-border);
  border-radius: 4px; padding: 5px 10px;
  transition: all 0.2s;
}
.wh-action:hover { background: var(--cyan-dim); color: var(--cyan) !important; }
.wh-bg-icon {
  position: absolute; right: -10px; bottom: -14px;
  font-size: 80px;
  color: rgba(255,255,255,0.025);
  pointer-events: none;
}

/* ─── GLASS CARD ─────────────────────────────────────────────── */
.glass-card {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.glass-card .card-header {
  background: rgba(5,88,255,0.05);
  border-bottom: 1px solid var(--border);
  padding: 14px 22px;
  display: flex; align-items: center; justify-content: space-between;
}
.glass-card .card-header h5,
.glass-card .card-header h6 {
  font-family: var(--font-display);
  font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--cyan) !important;
  margin: 0; display: flex; align-items: center; gap: 8px;
}
.glass-card .card-body { padding: 22px; }
.glass-card .card-body.p-0 { padding: 0; }

/* ─── DASHBOARD GRID ─────────────────────────────────────────── */
.dashboard-main-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 20px;
  align-items: start;
}
@media(max-width:1199px){ .dashboard-main-grid { grid-template-columns: 1fr; } }

/* Analytics rows */
.analytics-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 9px 0; border-bottom: 1px solid var(--border-subtle);
}
.analytics-row:last-of-type { border-bottom: none; }
.analytics-label { font-size: 12px; color: var(--text-muted) !important; }
.analytics-value { font-family: var(--font-mono); font-size: 13px; color: #ffffff !important; font-weight: 700; }

/* Progress bars */
.mining-progress { height: 4px; background: var(--bg-raised); border-radius: 2px; overflow: hidden; margin-top: 6px; }
.mining-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), #0033cc);
  border-radius: 2px;
  transition: width 1s ease;
  box-shadow: 0 0 8px var(--cyan-glow);
}
.progress-bar-label { display: flex; justify-content: space-between; }
.progress-bar-label span          { font-size: 11px; color: var(--text-muted) !important; }
.progress-bar-label span:last-child { color: var(--cyan) !important; font-family: var(--font-mono); font-size: 12px; }

/* Hash legend */
.hash-legend { display: flex; flex-direction: column; gap: 8px; }
.hash-legend-item { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.hash-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.hash-legend-label { color: var(--text-muted) !important; flex: 1; }
.hash-legend-val   { font-family: var(--font-mono); color: #ffffff !important; font-size: 12px; }

/* Quick actions */
.quick-actions-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.quick-action-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; padding: 14px 8px; border-radius: var(--radius-md);
  text-decoration: none;
  font-family: var(--font-display); font-size: 11px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  transition: all 0.2s;
  border: 1px solid var(--border); background: var(--bg-raised);
  color: var(--text-secondary) !important;
}
.quick-action-btn i { font-size: 20px; }
.quick-action-btn:hover { transform: translateY(-2px); }
.quick-action-btn span { color: inherit !important; }

.qa-cyan   { border-color: var(--cyan-border); color: var(--cyan) !important; background: var(--cyan-dim); }
.qa-cyan:hover  { box-shadow: 0 4px 16px rgba(5,88,255,0.25); }
.qa-gold   { border-color: rgba(255,180,0,0.25); color: var(--gold) !important; background: var(--gold-dim); }
.qa-gold:hover  { box-shadow: var(--shadow-gold); }
.qa-teal   { border-color: rgba(0,212,160,0.25); color: var(--success) !important; background: rgba(0,212,160,0.08); }
.qa-teal:hover  { box-shadow: 0 4px 16px rgba(0,212,160,0.2); }
.qa-purple { border-color: rgba(136,136,255,0.25); color: #8888ff !important; background: rgba(136,136,255,0.08); }
.qa-purple:hover{ box-shadow: 0 4px 16px rgba(136,136,255,0.2); }
.qa-ghost:hover { border-color: var(--cyan-border); color: #ffffff !important; background: var(--bg-hover); }

/* Activity items */
.activity-items { display: flex; flex-direction: column; gap: 4px; }
.activity-item { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: var(--radius-sm); transition: background 0.15s; }
.activity-item:hover { background: var(--bg-raised); }
.activity-icon { width: 36px; height: 36px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.activity-title { font-size: 11px; color: var(--text-muted) !important; font-family: var(--font-display); letter-spacing: 0.06em; text-transform: uppercase; }
.activity-value { font-family: var(--font-mono); font-size: 14px; font-weight: 700; color: #ffffff !important; }

/* ─── MINING TABLE ───────────────────────────────────────────── */
.mining-table-wrap { overflow-x: auto; border-radius: var(--radius-md); }
.mining-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.mining-table thead th {
  background: rgba(5,88,255,0.07);
  color: var(--cyan) !important;
  font-family: var(--font-display); font-size: 11px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 14px 18px; border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.mining-table tbody tr { border-bottom: 1px solid var(--border-subtle); transition: background 0.15s; }
.mining-table tbody tr:hover { background: var(--bg-hover); }
.mining-table tbody td { padding: 14px 18px; color: #ffffff !important; vertical-align: middle; }
.mining-table tbody td small { color: var(--text-muted) !important; }

/* Mobile responsive table */
@media(max-width:767px){
  .mining-table thead { display: none; }
  .mining-table tbody tr { display: block; margin-bottom: 12px; background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 4px 0; }
  .mining-table tbody td { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; border-bottom: 1px solid var(--border-subtle); }
  .mining-table tbody td:last-child { border-bottom: none; }
  .mining-table tbody td[data-label]::before { content: attr(data-label) ': '; font-weight: 700; color: var(--cyan) !important; }
}

/* ─── BADGES ─────────────────────────────────────────────────── */
.badge-mining {
  font-family: var(--font-mono); font-size: 10px; font-weight: 700;
  letter-spacing: 0.08em; padding: 3px 8px; border-radius: 4px;
  text-transform: uppercase;
}
.badge-success { background: rgba(0,212,160,0.15); color: var(--success) !important; border: 1px solid rgba(0,212,160,0.3); }
.badge-danger  { background: rgba(255,68,102,0.15); color: var(--danger) !important;  border: 1px solid rgba(255,68,102,0.3); }
.badge-warning { background: rgba(255,180,0,0.15);  color: var(--warning) !important; border: 1px solid rgba(255,180,0,0.3); }
.badge-info    { background: var(--cyan-dim);        color: var(--cyan) !important;   border: 1px solid var(--cyan-border); }
.badge-primary { background: rgba(5,88,255,0.12);   color: var(--cyan) !important;   border: 1px solid var(--cyan-border); }

/* ─── BUTTONS ────────────────────────────────────────────────── */
.btn-mining {
  font-family: var(--font-display); font-size: 13px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 10px 24px; border-radius: var(--radius-sm);
  border: none; cursor: pointer;
  transition: all 0.25s;
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none; position: relative; overflow: hidden;
}
.btn-mining::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(rgba(255,255,255,0.1), transparent);
  opacity: 0; transition: opacity 0.2s;
}
.btn-mining:hover::after { opacity: 1; }

.btn-cyan {
  background: linear-gradient(135deg, var(--cyan), #0033cc);
  color: #ffffff !important;
  box-shadow: 0 4px 15px rgba(5,88,255,0.35);
}
.btn-cyan:hover { box-shadow: 0 6px 25px rgba(5,88,255,0.5); transform: translateY(-1px); }

.btn-gold {
  background: linear-gradient(135deg, var(--gold), #cc8800);
  color: var(--bg-void) !important;
  box-shadow: var(--shadow-gold);
}
.btn-gold:hover { box-shadow: 0 6px 25px rgba(255,180,0,0.5); transform: translateY(-1px); }

.btn-outline-cyan {
  background: transparent;
  border: 1px solid var(--cyan);
  color: var(--cyan) !important;
}
.btn-outline-cyan:hover { background: var(--cyan-dim); }

.btn-ghost {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  color: var(--text-secondary) !important;
}
.btn-ghost:hover { background: var(--bg-hover); color: #ffffff !important; border-color: var(--cyan-border); }

.btn-sm  { padding: 6px 14px; font-size: 11px; }
.btn-lg  { padding: 14px 32px; font-size: 15px; }
.btn-full{ width: 100%; justify-content: center; }
.btn-icon{ width: 36px; height: 36px; padding: 0; justify-content: center; border-radius: var(--radius-sm); }

/* ─── FORMS ──────────────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-label {
  font-family: var(--font-display); font-size: 12px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-muted) !important; margin-bottom: 8px; display: block;
}
.form-label.required::after { content: ' *'; color: var(--danger); }

.form-control, .form-select {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: #ffffff !important;
  font-family: var(--font-body); font-size: 14px;
  padding: 10px 14px; width: 100%;
  transition: all 0.2s; outline: none; -webkit-appearance: none;
}
.form-control:focus, .form-select:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(5,88,255,0.15);
  background: var(--bg-surface); color: #ffffff !important;
}
.form-control::placeholder { color: var(--text-muted); }
.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M0 0l6 8 6-8z' fill='%230558ff'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
  padding-right: 36px; cursor: pointer;
}
.form-control:disabled, .form-control[readonly] {
  background: var(--bg-deep); color: var(--text-muted) !important; border-color: var(--border-subtle);
}
.form-check-input {
  width: 18px; height: 18px; background: var(--bg-raised);
  border: 1px solid var(--border); border-radius: 4px;
  cursor: pointer; transition: all 0.2s;
  appearance: none; -webkit-appearance: none; flex-shrink: 0; position: relative;
}
.form-check-input:checked { background: var(--cyan); border-color: var(--cyan); }
.form-check-input:checked::after {
  content: '✓'; position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%); color: #fff; font-size: 11px; font-weight: 900;
}
.form-check-label { font-size: 13px; color: var(--text-secondary) !important; cursor: pointer; margin-left: 8px; }

.input-icon-wrap { position: relative; }
.input-icon-wrap .form-control { padding-left: 42px; }
.input-icon-wrap .icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--text-muted); font-size: 16px; pointer-events: none; transition: color 0.2s;
}
.input-icon-wrap:focus-within .icon { color: var(--cyan); }

.input-group .form-control { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.input-group-text {
  background: var(--bg-raised); border: 1px solid var(--border); border-left: none;
  color: var(--cyan) !important; padding: 10px 14px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0; cursor: pointer;
}
.input-group-text:hover { background: var(--cyan-dim); }

/* ─── ALERTS ─────────────────────────────────────────────────── */
.alert-mining {
  border-radius: var(--radius-md); padding: 14px 18px;
  display: flex; align-items: flex-start; gap: 14px;
  border: 1px solid; margin-bottom: 16px;
  animation: slideIn 0.3s ease;
}
@keyframes slideIn { from{ opacity:0; transform:translateY(-8px); } to{ opacity:1; transform:translateY(0); } }

.alert-mining .alert-icon {
  width: 36px; height: 36px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0;
}
.alert-mining .alert-body { flex: 1; }
.alert-mining .alert-title {
  font-family: var(--font-display); font-size: 13px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: #ffffff !important; margin-bottom: 4px;
}
.alert-mining .alert-text { font-size: 13px; line-height: 1.5; color: rgba(255,255,255,0.80) !important; }
.alert-mining a { font-weight: 600; text-decoration: underline; }
.alert-mining a:hover { opacity: 0.8; }

.alert-danger  { background: rgba(255,68,102,0.08);  border-color: rgba(255,68,102,0.25); }
.alert-danger  .alert-icon { background: rgba(255,68,102,0.15); color: var(--danger); }
.alert-danger  a { color: var(--danger) !important; }
.alert-success { background: rgba(0,212,160,0.08);  border-color: rgba(0,212,160,0.25); }
.alert-success .alert-icon { background: rgba(0,212,160,0.15); color: var(--success); }
.alert-success a { color: var(--success) !important; }
.alert-warning { background: rgba(255,180,0,0.08);  border-color: rgba(255,180,0,0.25); }
.alert-warning .alert-icon { background: rgba(255,180,0,0.15); color: var(--warning); }
.alert-warning a { color: var(--warning) !important; }
.alert-info    { background: rgba(5,88,255,0.07);   border-color: rgba(5,88,255,0.25); }
.alert-info    .alert-icon { background: rgba(5,88,255,0.15); color: var(--cyan); }
.alert-info    a { color: var(--cyan) !important; }
.alert-primary { background: rgba(5,88,255,0.07);   border-color: rgba(5,88,255,0.25); }
.alert-primary .alert-icon { background: rgba(5,88,255,0.15); color: var(--cyan); }
.alert-primary a { color: var(--cyan) !important; }

/* ─── MODALS ─────────────────────────────────────────────────── */
.modal-content {
  background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-cyan);
}
.modal-header { border-bottom: 1px solid var(--border); padding: 18px 24px; }
.modal-title  { font-family: var(--font-display); font-size: 16px; font-weight: 700; letter-spacing: 0.06em; color: #ffffff !important; }
.modal-body   { padding: 24px; color: #ffffff; }
.modal-footer { border-top: 1px solid var(--border); padding: 16px 24px; }
.btn-close    { background: none; border: none; color: var(--text-secondary); font-size: 20px; cursor: pointer; transition: color 0.2s; opacity: 1; filter: none; }
.btn-close:hover { color: var(--danger); }

/* ─── PAGINATION ─────────────────────────────────────────────── */
.pagination { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; list-style: none; padding: 0; margin: 0; }
.page-item .page-link {
  background: var(--bg-raised); border: 1px solid var(--border);
  color: var(--text-secondary) !important; border-radius: var(--radius-sm);
  padding: 7px 14px; font-family: var(--font-mono); font-size: 13px; text-decoration: none; transition: all 0.2s;
}
.page-item.active .page-link,
.page-item .page-link:hover {
  background: var(--cyan-dim); border-color: var(--cyan);
  color: var(--cyan) !important;
}

/* ─── PROFILE CARD ───────────────────────────────────────────── */
.profile-card { background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.profile-card .profile-header { background: linear-gradient(135deg, var(--bg-raised), var(--bg-deep)); border-bottom: 1px solid var(--border); padding: 28px 24px; text-align: center; }
.profile-avatar { width: 80px; height: 80px; border-radius: 50%; border: 2px solid var(--cyan); box-shadow: 0 0 20px rgba(5,88,255,0.3); margin: 0 auto 12px; background: var(--bg-raised); display: flex; align-items: center; justify-content: center; font-size: 32px; color: var(--cyan); overflow: hidden; }
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-name { font-family: var(--font-display); font-size: 20px; font-weight: 700; color: #ffffff !important; margin-bottom: 4px; }
.profile-username { font-family: var(--font-mono); font-size: 12px; color: var(--cyan) !important; }
.profile-info-list { list-style: none; padding: 0; margin: 0; }
.profile-info-list li { display: flex; justify-content: space-between; align-items: center; padding: 12px 20px; border-bottom: 1px solid var(--border-subtle); font-size: 13px; }
.profile-info-list li:last-child { border-bottom: none; }
.profile-info-list .info-label { color: var(--text-muted) !important; display: flex; align-items: center; gap: 8px; }
.profile-info-list .info-label i { color: var(--cyan); width: 16px; }
.profile-info-list .info-value { color: #ffffff !important; font-family: var(--font-mono); font-size: 12px; }

/* ─── DETAIL LIST (invest details) ──────────────────────────── */
.detail-list { list-style: none; padding: 0; margin: 0; }
.detail-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 20px; border-bottom: 1px solid var(--border-subtle); font-size: 13.5px; }
.detail-list li:last-child { border-bottom: none; }
.dl-label { color: var(--text-muted) !important; flex-shrink: 0; }
.dl-value { font-weight: 700; color: #ffffff !important; text-align: right; font-family: var(--font-mono); font-size: 13px; }

/* ─── AMOUNTS ────────────────────────────────────────────────── */
.amount-positive { color: var(--success) !important; font-family: var(--font-mono); font-weight: 700; }
.amount-negative { color: var(--danger) !important;  font-family: var(--font-mono); font-weight: 700; }
.amount-neutral  { color: #ffffff !important;        font-family: var(--font-mono); }
.trx-id {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--cyan) !important;
  background: var(--cyan-dim); border: 1px solid var(--cyan-border);
  border-radius: 4px; padding: 2px 6px; display: inline-block;
  cursor: copy; transition: all 0.2s;
}
.trx-id:hover { background: rgba(5,88,255,0.2); }

/* ─── COUNTDOWN ──────────────────────────────────────────────── */
.countdown-wrap { display: inline-flex; gap: 6px; font-family: var(--font-mono); }
.countdown-unit {
  background: var(--bg-raised); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 2px 8px;
  color: var(--gold) !important; font-size: 13px; font-weight: 700;
}

/* ─── FILTER BAR ─────────────────────────────────────────────── */
.filter-bar { background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 18px 20px; margin-bottom: 20px; }

/* ─── FOOTER ─────────────────────────────────────────────────── */
.site-footer {
  background: var(--bg-deep); border-top: 1px solid var(--border);
  padding: 40px 0 20px; margin-top: auto;
}
.site-footer::before {
  content: ''; display: block; height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0.3; margin-bottom: 40px;
}
.footer-copy { font-size: 12px; color: var(--text-muted) !important; }
.footer-copy a { color: var(--cyan) !important; text-decoration: none; }
.footer-policy-menu { display: flex; flex-wrap: wrap; gap: 6px 20px; list-style: none; padding: 0; margin: 16px 0 0; justify-content: center; }
.footer-policy-menu a { font-family: var(--font-display); font-size: 12px; font-weight: 600; letter-spacing: 0.06em; color: var(--text-muted) !important; text-decoration: none; text-transform: uppercase; transition: color 0.2s; }
.footer-policy-menu a:hover { color: var(--cyan) !important; }
.social-links { display: flex; gap: 10px; list-style: none; padding: 0; margin: 0; }
.social-links a { width: 36px; height: 36px; border-radius: var(--radius-sm); background: var(--bg-raised); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; color: var(--text-secondary) !important; text-decoration: none; font-size: 15px; transition: all 0.2s; }
.social-links a:hover { background: var(--cyan-dim); border-color: var(--cyan); color: var(--cyan) !important; }

/* ─── AUTH PAGES ─────────────────────────────────────────────── */
.auth-section { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 40px 16px; background: radial-gradient(ellipse 70% 60% at 30% 40%, rgba(5,88,255,0.08) 0%, transparent 60%), var(--bg-void); }
.auth-card { background: var(--bg-glass); backdrop-filter: blur(24px); border: 1px solid var(--border); border-radius: var(--radius-xl); box-shadow: 0 20px 60px rgba(0,0,0,0.65), 0 0 40px rgba(5,88,255,0.08); width: 100%; max-width: 480px; overflow: hidden; }
.auth-card-wide { max-width: 660px; }
.auth-card-header { background: linear-gradient(135deg, rgba(5,88,255,0.08), rgba(255,180,0,0.04)); border-bottom: 1px solid var(--border); padding: 36px 36px 28px; text-align: center; }
.auth-card-header h2 { font-size: 28px; margin: 0 0 8px; color: #ffffff !important; }
.auth-card-header p { font-size: 14px; color: var(--text-secondary) !important; margin: 0; }
.auth-card-body { padding: 32px 36px; }
@media(max-width:480px){ .auth-card-header, .auth-card-body { padding: 24px; } }

/* ─── SECTION WRAPPER ────────────────────────────────────────── */
.section-wrapper { padding: 40px 0; flex: 1; }
.page-wrapper { display: flex; flex-direction: column; min-height: 100vh; }

/* ─── SCROLL TO TOP ──────────────────────────────────────────── */
.scroll-to-top { position: fixed; bottom: 24px; right: 24px; width: 42px; height: 42px; background: var(--cyan-dim); border: 1px solid var(--border); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; color: var(--cyan); font-size: 18px; cursor: pointer; z-index: 999; transition: all 0.2s; opacity: 0; visibility: hidden; }
.scroll-to-top.active { opacity: 1; visibility: visible; }
.scroll-to-top:hover { background: var(--cyan); color: var(--bg-void); box-shadow: 0 0 20px var(--cyan-glow); }

/* ─── DIVIDER ────────────────────────────────────────────────── */
.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--border), transparent); margin: 24px 0; }

/* ─── LIVE DOT ───────────────────────────────────────────────── */
.live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--success); animation: pulse-dot 2s ease-in-out infinite; }

/* ─── CONTAINER ──────────────────────────────────────────────── */
.container { max-width: 1300px; }

/* ─── ANIMATIONS ─────────────────────────────────────────────── */
@keyframes fadeUp { from{ opacity:0; transform:translateY(16px); } to{ opacity:1; transform:translateY(0); } }
.animate-fade-up { animation: fadeUp 0.4s ease both; }
.stagger > *:nth-child(1){ animation-delay:.05s; }
.stagger > *:nth-child(2){ animation-delay:.10s; }
.stagger > *:nth-child(3){ animation-delay:.15s; }
.stagger > *:nth-child(4){ animation-delay:.20s; }
.stagger > *:nth-child(5){ animation-delay:.25s; }
.stagger > *:nth-child(6){ animation-delay:.30s; }

/* ─── RESPONSIVE ─────────────────────────────────────────────── */
@media(max-width:991px){ .stats-grid { grid-template-columns: repeat(2,1fr); } .navbar-collapse { background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 16px; margin-top: 12px; } }
@media(max-width:575px){ .stats-grid { grid-template-columns: 1fr 1fr; } .stat-value { font-size: 20px; } }
@media(max-width:400px){ .stats-grid { grid-template-columns: 1fr; } }

/* ── Dashboard-specific inline styles also forced white ── */
[style*="color:var(--text-primary"],
[style*="color: var(--text-primary"] { color: #ffffff !important; }





/* ================================================================
   TCM DARK TEXT FIX — forces all remaining light-theme text to white
   Deploy: append to public/assets/templates/bit_gold/css/mining-dark.css
   OR add as a separate <style> in layouts/app.blade.php
   ================================================================ */

/* Global — any color that could still be dark */
body, .container, .container-fluid,
main, section, article, aside, div, span, p,
h1, h2, h3, h4, h5, h6,
td, th, li, label, input, textarea, select,
.card-body, .modal-body, .modal-header,
.tab-content, .tab-pane,
.table, .table td, .table th {
    color: inherit;
}

/* Force white everywhere inside our dark containers */
.glass-card, .glass-card *,
.mining-table td, .mining-table th,
[style*="background:#03070f"] *, [style*="background:#0a1224"] *,
[style*="background:#0e1b32"] * {
    color: var(--text-primary, #ffffff);
}

/* Muted text that should stay muted but visible */
.text-muted, [style*="color:var(--text-muted)"],
[style*="color:rgba(255,255,255,.4"],
[style*="color:rgba(255,255,255,.5"],
[style*="color:rgba(255,255,255,.6"],
[style*="color:rgba(255,255,255,.7"] {
    color: rgba(255,255,255,.58) !important;
}

/* Explicitly white */
.modal-title, .modal-header h5, .modal-header h4,
.card-header h5, .card-header h6,
.form-label, label,
.table thead th, .table td,
.nav-link, .breadcrumb-item,
.input-group-text,
.pagination .page-link {
    color: #ffffff !important;
}

/* Input fields */
input[type="text"], input[type="email"], input[type="password"],
input[type="number"], input[type="tel"], textarea, select,
.form-control, .form-select {
    color: #ffffff !important;
    background-color: rgba(255,255,255,.05) !important;
    border-color: rgba(5,88,255,.2) !important;
}

input::placeholder, textarea::placeholder {
    color: rgba(255,255,255,.35) !important;
}

/* Dropdown/select options */
select option {
    background: #0a1224;
    color: #ffffff;
}

/* Bootstrap badge text */
.badge { color: #ffffff !important; }

/* Alert text */
.alert, .alert p, .alert span, .alert strong { color: #ffffff !important; }

/* Modal background */
.modal-content {
    background: #0a1224 !important;
    border: 1px solid rgba(5,88,255,.2) !important;
    color: #ffffff !important;
}

.modal-header { border-bottom-color: rgba(5,88,255,.15) !important; }
.modal-footer { border-top-color: rgba(5,88,255,.15) !important; }

/* Table rows */
.table-striped > tbody > tr:nth-of-type(odd) > * {
    color: #ffffff;
    background-color: rgba(5,88,255,.03);
}

/* Links inside dark areas */
a:not(.btn):not(.nav-link):not([class*="btn-"]) {
    color: #4d88ff;
}

/* Bootstrap toggle labels */
.toggle.btn { color: #ffffff !important; }

/* Select2 */
.select2-container--default .select2-selection--single {
    background: rgba(255,255,255,.05) !important;
    border-color: rgba(5,88,255,.2) !important;
    color: #ffffff !important;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #ffffff !important;
}
.select2-dropdown {
    background: #0a1224 !important;
    border-color: rgba(5,88,255,.2) !important;
}
.select2-container--default .select2-results__option {
    color: #ffffff !important;
    background: transparent;
}
.select2-container--default .select2-results__option--highlighted {
    background: rgba(5,88,255,.15) !important;
}

