/* ========================
   BATTLEZONE PRO – admin.css
   ======================== */
@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;500;600;700&family=Orbitron:wght@400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --orange: #ff6b00;
  --orange-light: #ff8c00;
  --orange-glow: rgba(255, 107, 0, 0.4);
  --blue: #0099ff;
  --blue-glow: rgba(0, 153, 255, 0.3);
  --gold: #ffd700;
  --green: #00cc66;
  --red: #ff3333;
  --yellow: #ffcc00;
  --bg: #060608;
  --bg-sidebar: #09090d;
  --bg-card: #0d0d12;
  --bg-elevated: #121218;
  --bg-input: #16161e;
  --border: rgba(255, 255, 255, 0.06);
  --border-orange: rgba(255, 107, 0, 0.2);
  --border-blue: rgba(0, 153, 255, 0.2);
  --text-primary: #ffffff;
  --text-secondary: #888;
  --text-muted: #555;
  --sidebar-width: 240px;
  --topbar-height: 60px;
  --radius: 10px;
  --radius-lg: 14px;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.8);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  display: flex;
  min-height: 100vh;
  overflow-x: hidden;
}

::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: rgba(255,255,255,0.02); }
::-webkit-scrollbar-thumb { background: rgba(255, 107, 0, 0.4); border-radius: 4px; }

/* ======================== SIDEBAR ======================== */
.sidebar {
  width: var(--sidebar-width);
  min-height: 100vh;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  z-index: 200;
  transition: transform 0.3s ease;
  overflow-y: auto;
  overflow-x: hidden;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 16px;
  border-bottom: 1px solid var(--border);
  min-height: var(--topbar-height);
  flex-shrink: 0;
}

.sidebar-logo-text {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.logo-main {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--orange);
  letter-spacing: 1px;
  white-space: nowrap;
  text-shadow: 0 0 15px var(--orange-glow);
}

.logo-sub {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.64rem;
  color: var(--text-muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.sidebar-close {
  display: none;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.9rem;
  padding: 4px;
  flex-shrink: 0;
}

.sidebar-nav {
  padding: 16px 10px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-group {
  margin-bottom: 12px;
}

.nav-group-label {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.56rem;
  color: var(--text-muted);
  letter-spacing: 2px;
  padding: 4px 8px 8px;
  text-transform: uppercase;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px;
  border-radius: var(--radius);
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
  position: relative;
  letter-spacing: 0.3px;
  cursor: pointer;
}

.sidebar-link:hover {
  color: white;
  background: rgba(255, 255, 255, 0.04);
}

.sidebar-link.active {
  color: white;
  background: linear-gradient(90deg, rgba(255, 107, 0, 0.15), rgba(255, 107, 0, 0.05));
  border: 1px solid rgba(255, 107, 0, 0.15);
}

.sidebar-link.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 3px;
  background: var(--orange);
  border-radius: 0 3px 3px 0;
  box-shadow: 0 0 10px var(--orange);
}

.nav-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: inherit;
}

.sidebar-link.active .nav-icon { color: var(--orange); }

.nav-badge {
  margin-left: auto;
  background: rgba(0, 153, 255, 0.2);
  color: var(--blue);
  font-size: 0.65rem;
  font-family: 'Orbitron', sans-serif;
  padding: 2px 7px;
  border-radius: 10px;
  font-weight: 700;
  border: 1px solid rgba(0, 153, 255, 0.3);
}

.nav-badge-orange { background: rgba(255, 107, 0, 0.15); color: var(--orange); border-color: rgba(255, 107, 0, 0.3); }
.nav-badge-yellow { background: rgba(255, 204, 0, 0.15); color: var(--yellow); border-color: rgba(255, 204, 0, 0.3); }

.sidebar-footer {
  padding: 10px 10px 16px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
}

.admin-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), #cc3300);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
  box-shadow: 0 0 12px rgba(255, 107, 0, 0.4);
}

.admin-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: white;
}

.admin-role {
  font-size: 0.66rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ======================== MAIN ======================== */
.admin-main {
  margin-left: var(--sidebar-width);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ======================== TOPBAR ======================== */
.admin-topbar {
  height: var(--topbar-height);
  background: rgba(6, 6, 8, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.menu-toggle {
  width: 36px;
  height: 36px;
  display: none;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  border-radius: 8px;
  transition: var(--transition);
}

.menu-toggle:hover { background: rgba(255,255,255,0.06); color: white; }

.page-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: white;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.topbar-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 14px;
  color: var(--text-muted);
  transition: var(--transition);
}

.topbar-search:focus-within {
  border-color: var(--border-orange);
  color: var(--orange);
}

.topbar-search input {
  background: none;
  border: none;
  outline: none;
  color: white;
  font-size: 0.82rem;
  font-family: 'Inter', sans-serif;
  width: 160px;
}

.topbar-search input::placeholder { color: var(--text-muted); }

.topbar-notif {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  cursor: pointer;
  color: var(--text-secondary);
  position: relative;
  transition: var(--transition);
}

.topbar-notif:hover { border-color: var(--border-orange); color: var(--orange); }

.notif-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 7px;
  height: 7px;
  background: var(--orange);
  border-radius: 50%;
  border: 1px solid var(--bg);
  animation: pulse-notif 2s infinite;
}

@keyframes pulse-notif {
  0%, 100% { box-shadow: 0 0 0 0 var(--orange-glow); }
  50% { box-shadow: 0 0 0 4px rgba(255, 107, 0, 0); }
}

.topbar-date {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: 'Rajdhani', sans-serif;
  white-space: nowrap;
}

/* ======================== CONTENT AREA ======================== */
.content-area {
  padding: 24px;
  flex: 1;
  background: var(--bg);
}

.admin-section { display: none; }
.admin-section.active { display: block; }

/* ======================== STATS GRID ======================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: var(--transition);
  cursor: pointer;
}

.stat-card:hover {
  border-color: rgba(255, 107, 0, 0.25);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-icon-blue { background: rgba(0, 153, 255, 0.12); color: var(--blue); border: 1px solid rgba(0, 153, 255, 0.2); }
.stat-icon-orange { background: rgba(255, 107, 0, 0.12); color: var(--orange); border: 1px solid var(--border-orange); }
.stat-icon-gold { background: rgba(255, 215, 0, 0.12); color: var(--gold); border: 1px solid rgba(255,215,0,0.2); }
.stat-icon-green { background: rgba(0, 204, 102, 0.12); color: var(--green); border: 1px solid rgba(0,204,102,0.2); }

.stat-value {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: white;
  letter-spacing: -0.5px;
}

.stat-label {
  font-size: 0.76rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 3px;
}

.stat-change {
  font-size: 0.72rem;
  margin-top: 4px;
}

.stat-change.positive { color: var(--green); }
.stat-change.negative { color: var(--red); }

/* ======================== DASHBOARD ROW ======================== */
.dashboard-row {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
}

.flex-1 { flex: 1; }
.flex-2 { flex: 2; }

/* ======================== ADMIN CARDS ======================== */
.admin-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 20px;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  gap: 12px;
  flex-wrap: wrap;
}

.card-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: white;
  letter-spacing: 0.5px;
}

.card-btn {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--orange);
  background: rgba(255, 107, 0, 0.1);
  border: 1px solid var(--border-orange);
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
}

.card-btn:hover { background: rgba(255, 107, 0, 0.2); }

.card-header-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* ======================== BADGES ======================== */
.badge {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 12px;
  letter-spacing: 0.5px;
}

.badge-blue { background: rgba(0,153,255,0.12); color: var(--blue); border: 1px solid rgba(0,153,255,0.25); }
.badge-green { background: rgba(0,204,102,0.12); color: var(--green); border: 1px solid rgba(0,204,102,0.25); }
.badge-orange { background: rgba(255,107,0,0.12); color: var(--orange); border: 1px solid var(--border-orange); }
.badge-yellow { background: rgba(255,204,0,0.12); color: var(--yellow); border: 1px solid rgba(255,204,0,0.25); }
.badge-red { background: rgba(255,51,51,0.12); color: var(--red); border: 1px solid rgba(255,51,51,0.25); }

/* ======================== QUICK STATS ======================== */
.quick-stats-list { padding: 12px 0; }

.qs-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  transition: var(--transition);
}

.qs-item:last-child { border-bottom: none; }
.qs-item:hover { background: rgba(255,255,255,0.02); }

.qs-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.qs-value {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
}

.qs-value.orange { color: var(--orange); }
.qs-value.blue { color: var(--blue); }
.qs-value.gold { color: var(--gold); }
.qs-value.green { color: var(--green); }
.qs-value.yellow { color: var(--yellow); }
.qs-value.red { color: var(--red); }

/* ======================== CHART ======================== */
.chart-container {
  padding: 16px 20px 8px;
  overflow-x: auto;
}

.chart-legend {
  display: flex;
  gap: 16px;
  align-items: center;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.legend-dot.orange { background: var(--orange); }
.legend-dot.blue { background: var(--blue); }

/* ======================== TABLES ======================== */
.table-wrap {
  overflow-x: auto;
  padding: 0;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}

.admin-table thead tr {
  background: rgba(255,255,255,0.025);
  border-bottom: 1px solid var(--border);
}

.admin-table th {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 12px 16px;
  text-align: left;
  white-space: nowrap;
}

.admin-table td {
  padding: 12px 16px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(255,255,255,0.03);
  vertical-align: middle;
}

.admin-table tbody tr:hover { background: rgba(255,255,255,0.02); }
.admin-table tbody tr:last-child td { border-bottom: none; }

.table-controls {
  display: flex;
  gap: 10px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.search-input, .filter-select {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 9px 14px;
  color: white;
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  outline: none;
  transition: var(--transition);
}

.search-input {
  flex: 1;
  min-width: 180px;
}

.filter-select {
  min-width: 140px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

.search-input:focus, .filter-select:focus {
  border-color: var(--border-orange);
  box-shadow: 0 0 0 2px rgba(255, 107, 0, 0.1);
}

/* Player/user cells */
.player-cell { display: flex; align-items: center; gap: 10px; }
.player-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; font-weight: 700; font-family: 'Orbitron', sans-serif;
  flex-shrink: 0;
}
.player-name { font-weight: 600; color: white; font-size: 0.85rem; }
.player-uid { font-size: 0.68rem; color: var(--text-muted); }

/* Status chips */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.65rem;
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 10px;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.chip-live { background: rgba(255,51,51,0.12); color: #ff4444; border: 1px solid rgba(255,51,51,0.3); }
.chip-live::before { content: '●'; margin-right: 3px; animation: live-blink 1s infinite; }
.chip-upcoming { background: rgba(0,153,255,0.10); color: var(--blue); border: 1px solid var(--border-blue); }
.chip-pending { background: rgba(255,204,0,0.12); color: var(--yellow); border: 1px solid rgba(255,204,0,0.3); }
.chip-approved { background: rgba(0,204,102,0.12); color: var(--green); border: 1px solid rgba(0,204,102,0.3); }
.chip-rejected { background: rgba(255,51,51,0.10); color: var(--red); border: 1px solid rgba(255,51,51,0.25); }
.chip-active { background: rgba(0,204,102,0.12); color: var(--green); border: 1px solid rgba(0,204,102,0.3); }
.chip-banned { background: rgba(255,51,51,0.10); color: var(--red); border: 1px solid rgba(255,51,51,0.25); }
.chip-verified { background: rgba(0,153,255,0.12); color: var(--blue); border: 1px solid var(--border-blue); }
.chip-set { background: rgba(255,107,0,0.12); color: var(--orange); border: 1px solid var(--border-orange); }
.chip-completed { background: rgba(0,204,102,0.12); color: var(--green); border: 1px solid rgba(0,204,102,0.3); }

@keyframes live-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Action buttons */
.action-btns { display: flex; gap: 6px; align-items: center; }

.tb-btn {
  font-size: 0.72rem;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.tb-btn-primary { background: rgba(255,107,0,0.15); color: var(--orange); border: 1px solid var(--border-orange); }
.tb-btn-primary:hover { background: rgba(255,107,0,0.3); }
.tb-btn-success { background: rgba(0,204,102,0.12); color: var(--green); border: 1px solid rgba(0,204,102,0.3); }
.tb-btn-success:hover { background: rgba(0,204,102,0.25); }
.tb-btn-danger { background: rgba(255,51,51,0.10); color: var(--red); border: 1px solid rgba(255,51,51,0.25); }
.tb-btn-danger:hover { background: rgba(255,51,51,0.2); }
.tb-btn-info { background: rgba(0,153,255,0.10); color: var(--blue); border: 1px solid var(--border-blue); }
.tb-btn-info:hover { background: rgba(0,153,255,0.2); }

/* ======================== ADMIN FORM ======================== */
.admin-form { padding: 20px; }

.form-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-full { grid-column: 1 / -1; }

.form-label {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-input {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  color: white;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  outline: none;
  transition: var(--transition);
  width: 100%;
}

.form-input:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.1);
}

.form-input::placeholder { color: var(--text-muted); }

select.form-input option { background: #1a1a2e; color: white; }

.form-textarea {
  min-height: 100px;
  resize: vertical;
  line-height: 1.6;
}

.form-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 4px;
}

.admin-btn {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 11px 24px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.admin-btn-primary {
  background: linear-gradient(135deg, var(--orange), #cc3300);
  color: white;
  box-shadow: 0 4px 20px rgba(255, 107, 0, 0.3);
}

.admin-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 107, 0, 0.5);
}

.admin-btn-outline {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.admin-btn-outline:hover {
  background: rgba(255,255,255,0.05);
  color: white;
}

/* ======================== WALLET TABS ======================== */
.wallet-tabs {
  display: flex;
  gap: 2px;
  margin-bottom: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 5px;
  width: fit-content;
}

.wallet-tab {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-secondary);
  background: transparent;
  letter-spacing: 0.5px;
}

.wallet-tab.active {
  background: linear-gradient(135deg, rgba(255,107,0,0.2), rgba(255,50,0,0.15));
  color: var(--orange);
  border: 1px solid var(--border-orange);
}

.wallet-panel { display: none; }
.wallet-panel.active { display: block; }

/* ======================== FILE DROP ======================== */
.file-drop-zone {
  border: 2px dashed rgba(255, 107, 0, 0.3);
  border-radius: var(--radius);
  padding: 40px 20px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  background: rgba(255, 107, 0, 0.03);
}

.file-drop-zone:hover {
  border-color: var(--orange);
  background: rgba(255, 107, 0, 0.07);
}

.file-drop-content p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-top: 12px;
}

.file-drop-content span {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 4px;
  display: block;
}

/* ======================== KYC CARDS ======================== */
.kyc-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
  padding: 20px;
}

.kyc-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  transition: var(--transition);
}

.kyc-card:hover { border-color: var(--border-orange); }

.kyc-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.kyc-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
  font-size: 0.9rem;
}

.kyc-name { font-weight: 600; color: white; font-size: 0.9rem; }
.kyc-phone { font-size: 0.74rem; color: var(--text-muted); }
.kyc-status { margin-left: auto; }

.kyc-docs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.kyc-doc {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px;
  text-align: center;
}

.kyc-doc-label {
  font-size: 0.66rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.kyc-doc-img {
  width: 100%;
  height: 60px;
  border-radius: 6px;
  background: linear-gradient(135deg, rgba(255,107,0,0.1), rgba(0,153,255,0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.kyc-actions {
  display: flex;
  gap: 8px;
}

/* ======================== MODAL ======================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
}

.modal-overlay.open { display: flex; }

.modal-box {
  background: var(--bg-card);
  border: 1px solid var(--border-orange);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 460px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.9), 0 0 40px rgba(255,107,0,0.1);
  animation: modal-in 0.3s ease;
}

@keyframes modal-in {
  from { opacity: 0; transform: scale(0.92) translateY(-20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
}

.modal-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  color: white;
}

.modal-close {
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.06);
  border: none;
  border-radius: 6px;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 0.8rem;
  transition: var(--transition);
}

.modal-close:hover { background: rgba(255,51,51,0.15); color: var(--red); }

.modal-body { padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.modal-footer { padding: 14px 20px; display: flex; gap: 10px; justify-content: flex-end; border-top: 1px solid var(--border); }

/* ======================== RESPONSIVE ======================== */
@media (max-width: 1100px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .dashboard-row { flex-direction: column; }
}

@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
  }
  .sidebar.open {
    transform: translateX(0);
    box-shadow: 4px 0 40px rgba(0,0,0,0.8);
  }
  .sidebar-close { display: flex; }
  .admin-main { margin-left: 0; }
  .menu-toggle { display: flex; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
  .topbar-search { display: none; }
  .topbar-date { display: none; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .content-area { padding: 16px; }
  .wallet-tabs { width: 100%; justify-content: center; }
}

/* ======================== ANIMATIONS ======================== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.admin-section.active > *, .stat-card {
  animation: fadeInUp 0.4s ease backwards;
}

.stat-card:nth-child(1) { animation-delay: 0.05s; }
.stat-card:nth-child(2) { animation-delay: 0.1s; }
.stat-card:nth-child(3) { animation-delay: 0.15s; }
.stat-card:nth-child(4) { animation-delay: 0.2s; }

/* ======================== ADMIN LOGIN OVERLAY ======================== */
.admin-login-overlay {
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at 40% 40%, rgba(255,107,0,0.12) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 70%, rgba(0,100,255,0.08) 0%, transparent 50%),
              #050508;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.admin-login-overlay.hidden {
  display: none;
}

.admin-login-card {
  background: linear-gradient(145deg, #0d0d14, #12121e);
  border: 1px solid rgba(255, 107, 0, 0.3);
  border-radius: 20px;
  padding: 40px 36px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 40px 100px rgba(0,0,0,0.95), 0 0 80px rgba(255,107,0,0.08);
  animation: adminCardIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes adminCardIn {
  from { opacity: 0; transform: translateY(30px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.admin-login-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  justify-content: center;
}

.admin-login-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.1rem;
  font-weight: 900;
  color: white;
  letter-spacing: 2px;
  line-height: 1.2;
}

.admin-login-sub {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.6rem;
  color: var(--orange);
  letter-spacing: 3px;
  margin-top: 2px;
}

.admin-login-desc {
  text-align: center;
  font-size: 0.78rem;
  color: #555;
  font-family: 'Inter', sans-serif;
  margin-bottom: 28px;
  line-height: 1.5;
}

.admin-lf-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.admin-lf-label {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  color: #777;
  letter-spacing: 0.3px;
}

.admin-lf-input {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 13px 16px;
  color: white;
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  outline: none;
  transition: all 0.25s;
  padding-right: 40px;
}

.admin-lf-input:focus {
  border-color: var(--orange);
  background: rgba(255,107,0,0.05);
  box-shadow: 0 0 0 3px rgba(255,107,0,0.1);
}

.admin-lf-input::placeholder { color: #333; }

.admin-lf-eye {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  opacity: 0.4;
  transition: opacity 0.2s;
}
.admin-lf-eye:hover { opacity: 1; }

.admin-lf-error {
  color: #ff4444;
  font-size: 0.78rem;
  font-family: 'Inter', sans-serif;
  min-height: 18px;
  font-weight: 500;
  margin-bottom: 8px;
  text-align: center;
}

.admin-lf-submit {
  width: 100%;
  background: linear-gradient(135deg, #ff6b00, #cc3300);
  border: none;
  border-radius: 12px;
  color: white;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 15px;
  cursor: pointer;
  letter-spacing: 1px;
  transition: all 0.3s;
  box-shadow: 0 4px 25px rgba(255,107,0,0.35);
  position: relative;
  overflow: hidden;
  margin-top: 4px;
}

.admin-lf-submit::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transition: left 0.5s;
}

.admin-lf-submit:hover::before { left: 100%; }
.admin-lf-submit:hover { transform: translateY(-2px); box-shadow: 0 8px 35px rgba(255,107,0,0.55); }

.admin-lf-hint {
  text-align: center;
  margin-top: 18px;
  font-size: 0.72rem;
  color: #333;
  font-family: 'Inter', sans-serif;
}

.admin-lf-hint code {
  background: rgba(255,107,0,0.1);
  border: 1px solid rgba(255,107,0,0.2);
  color: var(--orange);
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 0.7rem;
}

