/* ============================================================
   ZexPay Mining Script - Main Stylesheet
   Dark Crypto Theme | HaseebScripts.com
   ============================================================ */

:root {
  --bg-primary:    #060b18;
  --bg-secondary:  #0d1526;
  --bg-card:       #111c35;
  --bg-card2:      #16233f;
  --accent:        #1a8cff;
  --accent2:       #00d4ff;
  --accent-gold:   #f5a623;
  --accent-green:  #00e676;
  --accent-red:    #ff3d57;
  --text-primary:  #e8eaf6;
  --text-muted:    #7b8ab0;
  --text-light:    #a0aec0;
  --border:        #1e2d4f;
  --border2:       #263354;
  --glow:          0 0 20px rgba(26,140,255,.25);
  --glow2:         0 0 30px rgba(0,212,255,.15);
  --radius:        12px;
  --radius-sm:     8px;
  --trans:         all .25s ease;
  --font-main:     'Inter', 'Segoe UI', sans-serif;
}

/* ── Reset ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-main);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}
a { color: var(--accent); text-decoration: none; transition: var(--trans); }
a:hover { color: var(--accent2); }
img { max-width: 100%; }
ul { list-style: none; }

/* ── Scrollbar ──────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }

/* ── Typography ─────────────────────────────────────── */
h1,h2,h3,h4,h5,h6 { font-weight: 700; line-height: 1.2; }
.text-accent  { color: var(--accent); }
.text-accent2 { color: var(--accent2); }
.text-gold    { color: var(--accent-gold); }
.text-green   { color: var(--accent-green); }
.text-red     { color: var(--accent-red); }
.text-muted   { color: var(--text-muted); }
.text-center  { text-align: center; }

/* ── NAVBAR ─────────────────────────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(6,11,24,.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  height: 64px;
  display: flex; align-items: center; justify-content: space-between;
}
.navbar-brand {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.3rem; font-weight: 800;
  color: var(--text-primary);
}
.navbar-brand span { color: var(--accent); }
.navbar-logo {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 1rem; color: #fff;
}
.navbar-nav {
  display: flex; align-items: center; gap: 8px;
}
.nav-link {
  color: var(--text-light);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  transition: var(--trans);
}
.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
  background: var(--bg-card);
}
.navbar-right { display: flex; align-items: center; gap: 10px; }
.mobile-menu-btn {
  display: none;
  background: none; border: none;
  color: var(--text-primary); font-size: 1.5rem; cursor: pointer;
}

/* Mobile nav menu */
.mobile-nav {
  display: none;
  position: fixed; top: 64px; right: 0;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 12px;
  min-width: 200px;
  z-index: 999;
  flex-direction: column; gap: 4px;
}
.mobile-nav.open { display: flex; }
.mobile-nav .nav-link { display: block; padding: 10px 14px; }

/* ── Layout ─────────────────────────────────────────── */
.page-wrapper {
  padding-top: 64px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.container-sm { max-width: 800px; margin: 0 auto; padding: 0 20px; }
.main-content { flex: 1; padding: 32px 0; }

/* ── Dashboard Layout ───────────────────────────────── */
.dashboard-wrapper {
  padding-top: 64px;
  display: flex;
  min-height: 100vh;
}
.sidebar {
  width: 240px; min-width: 240px;
  background: var(--bg-secondary);
  border-right: 1px solid var(--border);
  padding: 24px 0;
  position: fixed; top: 64px; left: 0;
  height: calc(100vh - 64px);
  overflow-y: auto;
  z-index: 100;
}
.sidebar-logo {
  padding: 0 20px 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}
.sidebar-logo .logo-text {
  font-weight: 800; font-size: 1.1rem;
  color: var(--text-primary);
}
.sidebar-logo .logo-text span { color: var(--accent); }
.sidebar-menu { padding: 0 12px; }
.sidebar-menu a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-light);
  font-size: .9rem;
  margin-bottom: 4px;
  transition: var(--trans);
}
.sidebar-menu a:hover, .sidebar-menu a.active {
  background: var(--bg-card);
  color: var(--text-primary);
}
.sidebar-menu a.active { color: var(--accent); }
.sidebar-menu .menu-icon { width: 18px; font-size: 1rem; }
.sidebar-label {
  font-size: .72rem; font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase; letter-spacing: .08em;
  padding: 12px 12px 6px;
}
.dashboard-main {
  margin-left: 240px;
  flex: 1;
  padding: 28px 28px;
}

/* ── Cards ──────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.card-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.card-title { font-size: 1rem; font-weight: 700; }

/* Stat cards */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex; align-items: center; gap: 14px;
  transition: var(--trans);
}
.stat-card:hover { border-color: var(--accent); box-shadow: var(--glow); transform: translateY(-2px); }
.stat-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.stat-icon.blue  { background: rgba(26,140,255,.15); color: var(--accent); }
.stat-icon.green { background: rgba(0,230,118,.12); color: var(--accent-green); }
.stat-icon.gold  { background: rgba(245,166,35,.12); color: var(--accent-gold); }
.stat-icon.red   { background: rgba(255,61,87,.12); color: var(--accent-red); }
.stat-icon.cyan  { background: rgba(0,212,255,.12); color: var(--accent2); }
.stat-value { font-size: 1.4rem; font-weight: 800; line-height: 1; }
.stat-label { font-size: .78rem; color: var(--text-muted); margin-top: 3px; }

/* ── Buttons ────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-size: .9rem; font-weight: 600;
  border: none; cursor: pointer;
  transition: var(--trans);
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), #0070e0);
  color: #fff;
}
.btn-primary:hover { background: linear-gradient(135deg, #0070e0, var(--accent)); transform: translateY(-1px); box-shadow: var(--glow); color: #fff; }
.btn-success { background: var(--accent-green); color: #000; }
.btn-success:hover { background: #00c853; color: #000; }
.btn-danger { background: var(--accent-red); color: #fff; }
.btn-danger:hover { opacity: .85; }
.btn-outline {
  background: transparent;
  border: 1px solid var(--border2);
  color: var(--text-light);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-gold { background: linear-gradient(135deg, var(--accent-gold), #e67e22); color: #000; }
.btn-sm { padding: 6px 14px; font-size: .8rem; }
.btn-lg { padding: 14px 30px; font-size: 1rem; }
.btn-block { width: 100%; }

/* ── Forms ──────────────────────────────────────────── */
.form-group { margin-bottom: 18px; }
.form-label {
  display: block;
  font-size: .85rem; font-weight: 600;
  color: var(--text-light);
  margin-bottom: 7px;
}
.form-control {
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  padding: 11px 14px;
  font-size: .9rem;
  transition: var(--trans);
  outline: none;
}
.form-control:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(26,140,255,.12); }
.form-control::placeholder { color: var(--text-muted); }
select.form-control { cursor: pointer; }

/* ── Tables ─────────────────────────────────────────── */
.table-wrapper { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th {
  background: var(--bg-secondary);
  color: var(--text-muted);
  font-size: .78rem;
  text-transform: uppercase; letter-spacing: .06em;
  padding: 10px 14px;
  text-align: left;
}
td { padding: 11px 14px; font-size: .875rem; border-bottom: 1px solid var(--border); }
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(26,140,255,.04); }

/* ── Badges ─────────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: .72rem; font-weight: 600;
  text-transform: uppercase;
}
.badge-success { background: rgba(0,230,118,.15); color: var(--accent-green); border: 1px solid rgba(0,230,118,.3); }
.badge-danger  { background: rgba(255,61,87,.15);  color: var(--accent-red);   border: 1px solid rgba(255,61,87,.3); }
.badge-warning { background: rgba(245,166,35,.15); color: var(--accent-gold);  border: 1px solid rgba(245,166,35,.3); }
.badge-primary { background: rgba(26,140,255,.15); color: var(--accent);       border: 1px solid rgba(26,140,255,.3); }
.badge-muted   { background: var(--bg-secondary);  color: var(--text-muted);   border: 1px solid var(--border); }

/* ── Alerts ─────────────────────────────────────────── */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: .88rem;
  margin-bottom: 16px;
  display: flex; align-items: center; gap: 10px;
}
.alert-success { background: rgba(0,230,118,.1); border: 1px solid rgba(0,230,118,.3); color: var(--accent-green); }
.alert-danger  { background: rgba(255,61,87,.1);  border: 1px solid rgba(255,61,87,.3);  color: var(--accent-red); }
.alert-info    { background: rgba(26,140,255,.1);  border: 1px solid rgba(26,140,255,.3);  color: var(--accent); }
.alert-warning { background: rgba(245,166,35,.1); border: 1px solid rgba(245,166,35,.3); color: var(--accent-gold); }

/* ── Modal ──────────────────────────────────────────── */
.modal-overlay {
  display: none; position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,.7);
  backdrop-filter: blur(6px);
  z-index: 2000;
  align-items: center; justify-content: center;
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: var(--bg-card);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  padding: 28px;
  width: 90%; max-width: 480px;
  animation: slideIn .25s ease;
}
.modal-title {
  font-size: 1.2rem; font-weight: 800;
  margin-bottom: 20px;
  display: flex; align-items: center; gap: 10px;
}
.modal-close {
  margin-left: auto;
  background: none; border: none;
  color: var(--text-muted); font-size: 1.3rem; cursor: pointer;
}
@keyframes slideIn {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Hero Section (Index) ───────────────────────────── */
.hero {
  padding: 100px 0 60px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at 70% 30%, rgba(26,140,255,.12) 0%, transparent 60%),
              radial-gradient(ellipse at 20% 80%, rgba(0,212,255,.07) 0%, transparent 50%);
  pointer-events: none;
}
.hero-inner { display: flex; align-items: center; gap: 48px; flex-wrap: wrap; }
.hero-text { flex: 1; min-width: 280px; }
.hero-eyebrow {
  font-size: .8rem; font-weight: 700;
  color: var(--accent2);
  text-transform: uppercase; letter-spacing: .12em;
  margin-bottom: 14px;
  display: flex; align-items: center; gap: 8px;
}
.hero-eyebrow::before {
  content: ''; display: block;
  width: 24px; height: 2px;
  background: var(--accent2);
}
.hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  margin-bottom: 16px;
  line-height: 1.1;
}
.hero h1 span { color: var(--accent); }
.hero p {
  color: var(--text-light);
  font-size: 1rem;
  margin-bottom: 28px;
  max-width: 480px;
}
.hero-visual {
  flex: 1; min-width: 260px;
  display: flex; justify-content: center;
}
.mining-graphic {
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(26,140,255,.1) 0%, transparent 70%);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  animation: rotate 20s linear infinite;
}
.mining-cube {
  width: 140px; height: 140px;
  background: linear-gradient(135deg, var(--bg-card2), var(--bg-card));
  border: 1px solid var(--border2);
  border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
  box-shadow: 0 0 40px rgba(26,140,255,.2);
  animation: float 3s ease-in-out infinite;
}
@keyframes float {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}
@keyframes rotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ── Plans Section ──────────────────────────────────── */
.plans-section { padding: 60px 0; }
.section-title {
  text-align: center;
  margin-bottom: 36px;
}
.section-title h2 { font-size: 1.8rem; font-weight: 800; margin-bottom: 8px; }
.section-title p { color: var(--text-muted); }
.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}
.plan-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  transition: var(--trans);
  position: relative;
  overflow: hidden;
}
.plan-card:hover { transform: translateY(-4px); box-shadow: var(--glow); border-color: var(--accent); }
.plan-card.featured { border-color: var(--accent); }
.plan-badge {
  position: absolute; top: 0; right: 0;
  background: var(--accent);
  color: #fff;
  font-size: .7rem; font-weight: 700;
  padding: 4px 12px;
  border-radius: 0 0 0 12px;
  text-transform: uppercase;
}
.plan-name { font-size: 1.2rem; font-weight: 800; margin-bottom: 4px; }
.plan-price { font-size: 2rem; font-weight: 900; color: var(--accent); }
.plan-price span { font-size: .9rem; color: var(--text-muted); font-weight: 400; }
.plan-details { margin: 16px 0; }
.plan-detail-row {
  display: flex; justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  font-size: .85rem;
}
.plan-detail-row:last-child { border-bottom: none; }
.plan-detail-row .label { color: var(--text-muted); }
.plan-detail-row .val { font-weight: 600; color: var(--accent-green); }

/* ── Stats Bar ──────────────────────────────────────── */
.stats-bar {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 28px 0;
}
.stats-bar-inner {
  display: flex; justify-content: space-around; flex-wrap: wrap; gap: 20px;
}
.stat-item { text-align: center; }
.stat-item .num { font-size: 2rem; font-weight: 900; color: var(--accent); }
.stat-item .lbl { font-size: .8rem; color: var(--text-muted); margin-top: 3px; }

/* ── Features ───────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin: 40px 0;
}
.feature-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
}
.feature-icon {
  font-size: 1.8rem; margin-bottom: 10px;
  display: block;
}
.feature-title { font-size: .9rem; font-weight: 700; margin-bottom: 6px; }
.feature-desc  { font-size: .8rem; color: var(--text-muted); }

/* ── Notice bar ─────────────────────────────────────── */
.notice-bar {
  background: rgba(26,140,255,.08);
  border-bottom: 1px solid rgba(26,140,255,.2);
  padding: 10px 0;
  font-size: .82rem;
  text-align: center;
  color: var(--accent2);
  overflow: hidden;
}

/* ── Balance Cards ──────────────────────────────────── */
.balance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.balance-card {
  background: linear-gradient(135deg, var(--bg-card2), var(--bg-card));
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  padding: 20px;
}
.balance-card.earn   { border-top: 2px solid var(--accent-green); }
.balance-card.deposit{ border-top: 2px solid var(--accent); }
.balance-label { font-size: .78rem; color: var(--text-muted); margin-bottom: 8px; text-transform: uppercase; letter-spacing: .06em; }
.balance-amount { font-size: 1.6rem; font-weight: 900; }
.balance-usd { font-size: .82rem; color: var(--text-muted); margin-top: 4px; }

/* ── Active Plan Widget ─────────────────────────────── */
.plan-widget {
  background: linear-gradient(135deg, var(--bg-card), var(--bg-card2));
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 24px;
}
.plan-widget-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.plan-progress { margin-top: 10px; }
.progress-bar-wrap {
  background: var(--bg-secondary);
  border-radius: 20px; height: 8px;
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  border-radius: 20px;
  transition: width .5s ease;
}

/* ── Footer ─────────────────────────────────────────── */
footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 20px 0;
  text-align: center;
  font-size: .82rem;
  color: var(--text-muted);
}
footer a { color: var(--text-muted); }
footer a:hover { color: var(--accent); }

/* ── Grid Utilities ─────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.gap-8  { gap: 8px; }
.gap-16 { gap: 16px; }
.mt-8   { margin-top: 8px; }
.mt-16  { margin-top: 16px; }
.mt-24  { margin-top: 24px; }
.mb-8   { margin-bottom: 8px; }
.mb-16  { margin-bottom: 16px; }
.mb-24  { margin-bottom: 24px; }
.flex   { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between{ display: flex; align-items: center; justify-content: space-between; }
.align-center{ align-items: center; }
.d-none { display: none !important; }

/* ── Section heading ────────────────────────────────── */
.page-title {
  font-size: 1.5rem; font-weight: 800;
  margin-bottom: 6px;
}
.page-subtitle { color: var(--text-muted); font-size: .88rem; margin-bottom: 24px; }

/* ── Crypto tag ─────────────────────────────────────── */
.crypto-tag {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 3px 10px;
  font-size: .75rem; font-weight: 600;
  color: var(--text-light);
}

/* ── Admin sidebar ──────────────────────────────────── */
.admin-sidebar {
  width: 220px; min-width: 220px;
  background: var(--bg-secondary);
  border-right: 1px solid var(--border);
  padding: 20px 0;
  position: fixed; top: 64px; left: 0;
  height: calc(100vh - 64px);
  overflow-y: auto;
  z-index: 100;
}
.admin-main {
  margin-left: 220px;
  flex: 1;
  padding: 24px;
}
.admin-nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px;
  color: var(--text-light);
  font-size: .88rem;
  transition: var(--trans);
  border-left: 3px solid transparent;
}
.admin-nav a:hover, .admin-nav a.active {
  background: rgba(26,140,255,.08);
  color: var(--text-primary);
  border-left-color: var(--accent);
}
.admin-nav a.active { color: var(--accent); }

/* ── Loader ─────────────────────────────────────────── */
.spinner {
  width: 20px; height: 20px;
  border: 2px solid var(--border2);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .6s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 900px) {
  .sidebar, .admin-sidebar { display: none; }
  .dashboard-main, .admin-main { margin-left: 0; padding: 16px; }
  .mobile-menu-btn { display: block; }
  .navbar-nav { display: none; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .hero-inner { flex-direction: column; text-align: center; }
  .hero h1 { font-size: 1.8rem; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .plans-grid { grid-template-columns: 1fr; }
  .balance-grid { grid-template-columns: 1fr; }
  .dashboard-main, .admin-main { padding: 12px; }
  .modal-box { padding: 18px; }
}

/* ── Admin Sidebar ───────────────────────────────────── */
.admin-layout {
  display: flex;
  min-height: calc(100vh - 60px);
}
.admin-sidebar {
  width: 220px;
  background: var(--bg-card);
  border-right: 1px solid var(--border);
  position: sticky;
  top: 60px;
  height: calc(100vh - 60px);
  overflow-y: auto;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
}
.sidebar-nav {
  display: flex;
  flex-direction: column;
  padding: 12px 0;
  height: 100%;
}
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  color: var(--text-muted);
  font-size: 0.88rem;
  transition: var(--trans);
  border-left: 3px solid transparent;
  text-decoration: none;
}
.sidebar-link:hover {
  background: rgba(26,140,255,.08);
  color: var(--text-primary);
  border-left-color: var(--primary);
}
.sidebar-link.active {
  background: rgba(26,140,255,.12);
  color: var(--primary);
  border-left-color: var(--primary);
}
.sidebar-link i { width: 18px; text-align: center; }

/* ── Admin Main ─────────────────────────────────────── */
.admin-main {
  flex: 1;
  padding: 24px;
  min-width: 0;
}
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.page-header h1 {
  font-size: 1.4rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}
.page-header h1 i { color: var(--primary); }

/* ── Filter Form ─────────────────────────────────────── */
.filter-form {}
.filter-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: flex-end;
}
.filter-group { display: flex; flex-direction: column; gap: 4px; }
.filter-group label { font-size: 0.82rem; color: var(--text-muted); }
.filter-group.flex-1 { flex: 1; min-width: 200px; }

/* ── User Cell ──────────────────────────────────────── */
.user-cell { display: flex; flex-direction: column; gap: 2px; }
.user-cell strong { font-size: 0.9rem; }
.user-cell small { color: var(--text-muted); font-size: 0.78rem; }

/* ── Stat Card (admin overview) ─────────────────────── */
.overview-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.overview-stat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 16px;
  text-align: center;
}
.overview-stat .ov-icon {
  font-size: 1.8rem;
  margin-bottom: 8px;
}
.overview-stat .ov-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}
.overview-stat .ov-value {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* ── Pagination ─────────────────────────────────────── */
.pagination {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 12px;
}
.page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 0.88rem;
  transition: var(--trans);
  text-decoration: none;
}
.page-link:hover, .page-link.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* ── Card mb utilities ───────────────────────────────── */
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 20px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 20px; }
.p-4 { padding: 20px; }
.ml-2 { margin-left: 8px; }
.flex-1 { flex: 1; }

/* ── Card footer ────────────────────────────────────── */
.card-footer {
  border-top: 1px solid var(--border);
  background: rgba(255,255,255,.02);
  border-radius: 0 0 12px 12px;
}

/* ── Currency grid ──────────────────────────────────── */
.crypto-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.crypto-check {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  cursor: pointer;
  transition: border-color 0.2s;
}
.crypto-check:hover { border-color: var(--primary); }
.crypto-check input[type="checkbox"] {
  width: 16px; height: 16px;
  accent-color: var(--primary);
  cursor: pointer;
}
.crypto-check label { cursor: pointer; font-weight: 500; margin: 0; }

/* ── Proofs page ─────────────────────────────────────── */
.proofs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.proof-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: border-color 0.2s;
}
.proof-card:hover { border-color: var(--success); }
.proof-icon { font-size: 2rem; color: var(--success); flex-shrink: 0; }

/* ── Admin responsive ───────────────────────────────── */
@media (max-width: 900px) {
  .admin-sidebar { display: none; }
  .admin-main { margin-left: 0; padding: 16px; }
}
