/* ═══════════════════════════════════════════════
   DONATION HUB — Futuristic Theme v3
   Cyberpunk / Neon-Grid Aesthetic
═══════════════════════════════════════════════ */

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

/* ── Variables ─────────────────────────────── */
:root {
  --bg:        #010108;
  --bg2:       #03030f;
  --card:      #080818;
  --card2:     #05050f;
  --border:    #1a1a3e;
  --border2:   #252550;
  --accent:    #00d4ff;
  --accent2:   #7c3aed;
  --accent3:   #ff006e;
  --accent4:   #00ff88;
  --text:      #e0e8ff;
  --muted:     #4a5080;
  --muted2:    #7080b0;
  --green:     #00ff88;
  --red:       #ff3366;
  --yellow:    #ffcc00;
  --orange:    #ff7700;
  --gold:      #ffd700;
  --silver:    #c0c8d8;
  --bronze:    #cd7f32;
  --saweria:   #ffcc00;
  --socialbuzz:#00aaff;
  --bagibagi:  #ff66cc;
  --sidebar-w: 260px;
  --topbar-h:  58px;
  --radius:    10px;
  --radius-sm: 6px;
  --shadow:    0 4px 24px rgba(0,0,0,0.8);
  --shadow-lg: 0 8px 48px rgba(0,0,0,0.9);
  --glow:      0 0 20px rgba(0,212,255,0.2), 0 0 40px rgba(0,212,255,0.08);
  --glow2:     0 0 20px rgba(124,58,237,0.3);
  --glow3:     0 0 20px rgba(0,255,136,0.2);
}

/* ── Reset ─────────────────────────────────── */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Rajdhani', system-ui, sans-serif;
  font-size: 15px;
  min-height: 100vh;
  line-height: 1.5;
  overflow-x: hidden;
}

/* Scanline overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.04) 2px,
    rgba(0,0,0,0.04) 4px
  );
  pointer-events: none;
  z-index: 9999;
}

a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; }

/* ═══════════════════════════════════════════════
   LAYOUT — Sidebar + Main
═══════════════════════════════════════════════ */
.app-layout {
  display: flex;
  min-height: 100vh;
}

/* ── Sidebar ────────────────────────────────── */
.sidebar {
  width: var(--sidebar-w);
  background: rgba(5,5,20,0.98);
  border-right: 1px solid rgba(0,212,255,0.12);
  position: fixed;
  top: 0; left: 0; bottom: 0;
  display: flex;
  flex-direction: column;
  z-index: 50;
  overflow-y: auto;
  overflow-x: hidden;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 2px 0 30px rgba(0,0,0,0.8), inset -1px 0 0 rgba(0,212,255,0.05);
}

/* Sidebar vertical neon line */
.sidebar::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 1px;
  height: 100%;
  background: linear-gradient(to bottom, transparent, rgba(0,212,255,0.4) 30%, rgba(124,58,237,0.4) 70%, transparent);
  pointer-events: none;
}

.sidebar-logo {
  padding: 1.5rem 1.4rem 1.2rem;
  border-bottom: 1px solid rgba(0,212,255,0.1);
  flex-shrink: 0;
  position: relative;
}
.sidebar-logo .logo-mark {
  font-family: 'Orbitron', monospace;
  font-size: 1.1rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  line-height: 1.2;
  letter-spacing: 0.05em;
  text-shadow: 0 0 30px rgba(0,212,255,0.5);
}
.sidebar-logo .logo-sub {
  font-size: 0.65rem;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-top: 0.2rem;
  opacity: 0.6;
  font-family: 'JetBrains Mono', monospace;
}

.sidebar-section {
  padding: 1rem 0.85rem 0.5rem;
}
.sidebar-section-label {
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  padding: 0 0.5rem;
  margin-bottom: 0.5rem;
  opacity: 0.5;
  font-family: 'JetBrains Mono', monospace;
}

.sidebar-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sidebar-nav a,
.sidebar-nav button {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.65rem 0.85rem;
  border-radius: 6px;
  color: var(--muted2);
  font-size: 0.92rem;
  font-weight: 600;
  width: 100%;
  background: transparent;
  border: 1px solid transparent;
  transition: all 0.2s;
  text-align: left;
  font-family: 'Rajdhani', sans-serif;
  letter-spacing: 0.03em;
  position: relative;
}
.sidebar-nav a:hover,
.sidebar-nav button:hover {
  background: rgba(0,212,255,0.06);
  border-color: rgba(0,212,255,0.15);
  color: var(--accent);
}
.sidebar-nav a.active,
.sidebar-nav button.active {
  background: rgba(0,212,255,0.1);
  border-color: rgba(0,212,255,0.3);
  color: var(--accent);
  box-shadow: inset 2px 0 0 var(--accent), 0 0 12px rgba(0,212,255,0.1);
}
.sidebar-nav .nav-icon {
  font-size: 1rem;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}
.sidebar-nav .nav-badge {
  margin-left: auto;
  background: rgba(0,212,255,0.15);
  color: var(--accent);
  font-size: 0.62rem;
  font-weight: 700;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  min-width: 20px;
  text-align: center;
  border: 1px solid rgba(0,212,255,0.3);
  font-family: 'JetBrains Mono', monospace;
}

.sidebar-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(0,212,255,0.15), transparent);
  margin: 0.5rem 0.85rem;
}

.sidebar-footer {
  margin-top: auto;
  padding: 0.85rem;
  border-top: 1px solid rgba(0,212,255,0.1);
}
.sidebar-user-card {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  background: rgba(0,212,255,0.05);
  border: 1px solid rgba(0,212,255,0.15);
}
.sidebar-user-avatar {
  width: 34px; height: 34px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--accent2), var(--accent));
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; font-weight: 800; color: white;
  flex-shrink: 0;
  font-family: 'Orbitron', monospace;
  box-shadow: 0 0 12px rgba(0,212,255,0.3);
}
.sidebar-user-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: 'Rajdhani', sans-serif;
}
.sidebar-user-role {
  font-size: 0.65rem;
  color: var(--accent);
  opacity: 0.6;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: 'JetBrains Mono', monospace;
}

/* ── Main Content ───────────────────────────── */
.main-content {
  margin-left: var(--sidebar-w);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-width: 0;
}

/* ── Topbar ─────────────────────────────────── */
.topbar {
  height: var(--topbar-h);
  background: rgba(1,1,8,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0,212,255,0.12);
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 40;
  box-shadow: 0 2px 30px rgba(0,0,0,0.5);
}
.topbar-title {
  font-family: 'Orbitron', monospace;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: 0.05em;
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

/* Hamburger for mobile */
.sidebar-toggle {
  display: none;
  background: rgba(0,212,255,0.08);
  border: 1px solid rgba(0,212,255,0.2);
  border-radius: 6px;
  padding: 0.4rem 0.6rem;
  color: var(--accent);
  font-size: 1rem;
  cursor: pointer;
  margin-right: 0.5rem;
  transition: all 0.2s;
}
.sidebar-toggle:hover {
  background: rgba(0,212,255,0.15);
}

/* ── Page Content ───────────────────────────── */
.page-content {
  padding: 1.75rem 1.5rem;
  max-width: 1100px;
  width: 100%;
}
.page-header {
  margin-bottom: 1.75rem;
}
.page-header h1 {
  font-family: 'Orbitron', monospace;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.3rem;
  letter-spacing: 0.05em;
}
.page-header p {
  color: var(--muted2);
  font-size: 0.88rem;
}

/* ═══════════════════════════════════════════════
   COMPONENTS
═══════════════════════════════════════════════ */

/* ── Cards ─────────────────────────────────── */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  position: relative;
}
.card-padded { padding: 1.4rem; }
.card-hover {
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.card-hover:hover {
  border-color: rgba(0,212,255,0.3);
  box-shadow: var(--glow);
  transform: translateY(-2px);
}

/* ── Stat Cards ─────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
  margin-bottom: 1.75rem;
}
.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem 1.3rem;
  position: relative;
  overflow: hidden;
  transition: all 0.2s;
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.6;
}
.stat-card::after {
  content: '';
  position: absolute;
  top: -30px; right: -30px;
  width: 80px; height: 80px;
  background: radial-gradient(circle, rgba(0,212,255,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.stat-card:hover {
  border-color: rgba(0,212,255,0.25);
  box-shadow: var(--glow);
}
.stat-card .stat-label {
  font-size: 0.65rem;
  color: var(--muted2);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.6rem;
  font-family: 'JetBrains Mono', monospace;
}
.stat-card .stat-value {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
  font-family: 'Orbitron', monospace;
}
.stat-card .stat-icon {
  position: absolute;
  top: 1rem; right: 1rem;
  font-size: 1.3rem;
  opacity: 0.3;
}

/* ── Section ────────────────────────────────── */
.section {
  margin-bottom: 2rem;
}
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(0,212,255,0.1);
}
.section-header h2 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Orbitron', monospace;
  letter-spacing: 0.04em;
}

/* ── Leaderboard ────────────────────────────── */
.leaderboard-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.lb-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.85rem 1.1rem;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}
.lb-item::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--border);
  transition: background 0.2s;
}
.lb-item:hover { border-color: rgba(0,212,255,0.2); background: rgba(0,212,255,0.03); }
.lb-item:hover::before { background: var(--accent); }
.lb-rank {
  font-size: 0.9rem;
  font-weight: 800;
  width: 32px;
  text-align: center;
  flex-shrink: 0;
  font-family: 'Orbitron', monospace;
}
.lb-rank.rank-1 { color: var(--gold); font-size: 1.1rem; }
.lb-rank.rank-2 { color: var(--silver); }
.lb-rank.rank-3 { color: var(--bronze); }
.lb-rank.rank-other { color: var(--muted); }
.lb-avatar {
  width: 36px; height: 36px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--accent2), var(--accent));
  display: flex; align-items: center; justify-content: center;
  font-size: 0.82rem; font-weight: 800; color: white;
  flex-shrink: 0;
  font-family: 'Orbitron', monospace;
  box-shadow: 0 0 10px rgba(0,212,255,0.2);
}
.lb-avatar.rank-1 { background: linear-gradient(135deg, #b8860b, #ffd700); box-shadow: 0 0 15px rgba(255,215,0,0.3); }
.lb-avatar.rank-2 { background: linear-gradient(135deg, #6b7280, #c0c8d8); }
.lb-avatar.rank-3 { background: linear-gradient(135deg, #7a4500, #cd7f32); }
.lb-info { flex: 1; min-width: 0; }
.lb-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lb-username { font-size: 0.72rem; color: var(--muted); margin-top: 0.1rem; font-family: 'JetBrains Mono', monospace; }
.lb-amount {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--green);
  white-space: nowrap;
  flex-shrink: 0;
  font-family: 'JetBrains Mono', monospace;
  text-shadow: 0 0 10px rgba(0,255,136,0.4);
}
.lb-count {
  font-size: 0.72rem;
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
  text-align: right;
  font-family: 'JetBrains Mono', monospace;
}
.lb-empty {
  text-align: center;
  padding: 3rem;
  color: var(--muted);
  font-size: 0.88rem;
  background: var(--card);
  border: 1px dashed rgba(0,212,255,0.15);
  border-radius: var(--radius);
}

/* ── Table ──────────────────────────────────── */
/* Table wrapper: allow horizontal scroll and vertical scroll for long lists */
.table-wrap {
  overflow-x: auto;
  padding: 0; /* keep spacing outside, inner wrapper handles scroll */
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

/* Inner scroll container used for vertical scrolling inside cards */
.table-scroll {
  max-height: 340px;
  overflow-y: auto;
  padding: 0.6rem; /* visual padding around table rows */
}

/* Preview (dashboard) should expand to fit content so rows aren't visually clipped */
.table-scroll--preview {
  max-height: none;
  padding: 0.6rem 0.6rem 0.8rem 0.6rem;
}

/* Fix column widths and prevent cells from overflowing/being clipped visually */
.table-scroll table {
  width: 100%;
  table-layout: fixed;
}
.table-scroll thead th,
.table-scroll tbody td {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Reasonable defaults for columns: ID, User, Username, Created, Status, Actions */
.table-scroll thead th:nth-child(1), .table-scroll tbody td:nth-child(1) { width: 6%; }
.table-scroll thead th:nth-child(2), .table-scroll tbody td:nth-child(2) { width: 30%; }
.table-scroll thead th:nth-child(3), .table-scroll tbody td:nth-child(3) { width: 20%; }
.table-scroll thead th:nth-child(4), .table-scroll tbody td:nth-child(4) { width: 18%; }
.table-scroll thead th:nth-child(5), .table-scroll tbody td:nth-child(5) { width: 12%; }
.table-scroll thead th:nth-child(6), .table-scroll tbody td:nth-child(6) { width: 14%; }
thead th {
  padding: 0.65rem 1rem;
  color: var(--accent);
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  border-bottom: 1px solid rgba(0,212,255,0.15);
  text-align: left;
  white-space: nowrap;
  font-family: 'JetBrains Mono', monospace;
  background: rgba(0,212,255,0.03);
  position: sticky; /* keep header visible when scrolling */
  top: 0;
  z-index: 5;
}
tbody td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

tbody td { word-break: break-word; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: rgba(0,212,255,0.03); }

.user-cell {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.user-mini-avatar {
  width: 28px; height: 28px;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--accent2), var(--accent));
  display: flex; align-items: center; justify-content: center;
  font-size: 0.68rem; font-weight: 800; color: white;
  flex-shrink: 0;
  font-family: 'Orbitron', monospace;
}

/* ── Badges & Tags ──────────────────────────── */
.tag {
  display: inline-flex;
  align-items: center;
  font-size: 0.7rem;
  padding: 0.12rem 0.5rem;
  border-radius: 4px;
  background: rgba(0,212,255,0.08);
  color: var(--accent);
  font-weight: 600;
  border: 1px solid rgba(0,212,255,0.2);
  font-family: 'JetBrains Mono', monospace;
}
.badge-active { color: var(--green); font-size: 0.75rem; font-weight: 700; }
.badge-inactive { color: var(--red); font-size: 0.75rem; font-weight: 700; }
.badge-dot {
  display: inline-block;
  width: 5px; height: 5px;
  border-radius: 50%;
  margin-right: 0.35rem;
  background: currentColor;
}

/* Platform pills */
.pill {
  font-size: 0.65rem;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  border: 1px solid;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.05em;
}
.pill-s   { color: var(--saweria);    border-color: rgba(255,204,0,0.4);   background: rgba(255,204,0,0.06); }
.pill-sb  { color: var(--socialbuzz); border-color: rgba(0,170,255,0.4);   background: rgba(0,170,255,0.06); }
.pill-b   { color: var(--bagibagi);   border-color: rgba(255,102,204,0.4); background: rgba(255,102,204,0.06); }

/* ── Buttons ────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.1rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 700;
  font-family: 'Rajdhani', sans-serif;
  transition: all 0.2s;
  white-space: nowrap;
  letter-spacing: 0.04em;
  position: relative;
  overflow: hidden;
}
.btn-primary {
  background: linear-gradient(135deg, rgba(0,212,255,0.15), rgba(124,58,237,0.2));
  color: var(--accent);
  border: 1px solid rgba(0,212,255,0.4);
}
.btn-primary:hover {
  background: linear-gradient(135deg, rgba(0,212,255,0.25), rgba(124,58,237,0.3));
  box-shadow: 0 0 20px rgba(0,212,255,0.25);
  border-color: var(--accent);
}
.btn-danger {
  background: rgba(255,51,102,0.08);
  color: var(--red);
  border: 1px solid rgba(255,51,102,0.3);
}
.btn-danger:hover { background: rgba(255,51,102,0.18); box-shadow: 0 0 15px rgba(255,51,102,0.2); }
.btn-ghost {
  background: transparent;
  color: var(--muted2);
  border: 1px solid var(--border2);
}
.btn-ghost:hover { color: var(--accent); border-color: rgba(0,212,255,0.3); background: rgba(0,212,255,0.05); }
.btn-yellow {
  background: rgba(255,204,0,0.08);
  color: var(--yellow);
  border: 1px solid rgba(255,204,0,0.3);
}
.btn-yellow:hover { background: rgba(255,204,0,0.18); box-shadow: 0 0 15px rgba(255,204,0,0.2); }
.btn-cyan {
  background: rgba(0,212,255,0.1);
  color: var(--accent);
  border: 1px solid rgba(0,212,255,0.3);
}
.btn-cyan:hover { background: rgba(0,212,255,0.2); }
.btn-green {
  background: rgba(0,255,136,0.08);
  color: var(--green);
  border: 1px solid rgba(0,255,136,0.3);
}
.btn-green:hover { background: rgba(0,255,136,0.18); box-shadow: 0 0 15px rgba(0,255,136,0.2); }
.btn-sm { padding: 0.3rem 0.65rem; font-size: 0.78rem; }
.btn-xs { padding: 0.18rem 0.45rem; font-size: 0.7rem; }
.btn-icon { padding: 0.42rem; width: 32px; height: 32px; justify-content: center; }
.btn-full { width: 100%; justify-content: center; }

/* ── Forms ──────────────────────────────────── */
.form-group { margin-bottom: 1rem; }
.form-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}
.form-row .field { flex: 1; min-width: 140px; }
label {
  display: block;
  font-size: 0.7rem;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: 'JetBrains Mono', monospace;
  opacity: 0.8;
}
input, select, textarea {
  width: 100%;
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--border2);
  border-radius: 6px;
  padding: 0.6rem 0.85rem;
  color: var(--text);
  font-size: 0.9rem;
  font-family: 'Rajdhani', sans-serif;
  outline: none;
  transition: all 0.2s;
  font-weight: 500;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(0,212,255,0.1), 0 0 15px rgba(0,212,255,0.1);
  background: rgba(0,212,255,0.03);
}
input::placeholder { color: var(--muted); }
select option { background: #080818; color: var(--text); }
textarea { resize: vertical; min-height: 80px; }

/* ── URL Box ────────────────────────────────── */
.url-box {
  background: rgba(0,0,0,0.5);
  border: 1px solid var(--border2);
  border-radius: 6px;
  padding: 0.5rem 0.85rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--accent);
  word-break: break-all;
  flex: 1;
}
.url-row { display: flex; gap: 0.5rem; align-items: center; }
.url-item { margin-bottom: 1rem; }
.url-item > label { margin-bottom: 0.35rem; }

/* ── Modal ──────────────────────────────────── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 1rem;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--card);
  border: 1px solid rgba(0,212,255,0.2);
  border-radius: 12px;
  padding: 2rem;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg), 0 0 40px rgba(0,212,255,0.1);
  animation: modalIn 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}
.modal::before {
  content: '';
  position: absolute;
  top: 0; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--accent), transparent);
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.93) translateY(16px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.4rem;
}
.modal-header h3 {
  font-size: 0.95rem;
  font-weight: 700;
  font-family: 'Orbitron', monospace;
  color: var(--accent);
  letter-spacing: 0.05em;
}
.modal-close {
  background: rgba(0,212,255,0.08);
  border: 1px solid rgba(0,212,255,0.2);
  color: var(--muted2);
  font-size: 1rem;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  line-height: 1;
  transition: all 0.2s;
}
.modal-close:hover { color: var(--text); border-color: var(--accent); }
.modal-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(0,212,255,0.1);
}

/* ── Tabs ───────────────────────────────────── */
.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid rgba(0,212,255,0.1);
  margin-bottom: 1.5rem;
  overflow-x: auto;
}
.tab {
  padding: 0.55rem 1rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
  border-radius: 6px 6px 0 0;
  transition: all 0.15s;
  font-family: 'Rajdhani', sans-serif;
  white-space: nowrap;
  letter-spacing: 0.04em;
}
.tab:hover { color: var(--muted2); }
.tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ── Live Feed ──────────────────────────────── */
.donation-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.85rem 1.1rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  animation: slideIn 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  transition: border-color 0.2s;
  position: relative;
  overflow: hidden;
}
.donation-item::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--accent);
  opacity: 0.5;
}
.donation-item:hover { border-color: rgba(0,212,255,0.25); }
@keyframes slideIn {
  from { opacity:0; transform:translateY(-10px); }
  to   { opacity:1; transform:translateY(0); }
}
.plat-badge {
  font-size: 0.62rem;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  border: 1px solid;
  white-space: nowrap;
  flex-shrink: 0;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.08em;
}
.plat-saweria    { color: var(--saweria);    border-color: rgba(255,204,0,0.4);   background: rgba(255,204,0,0.06); }
.plat-socialbuzz { color: var(--socialbuzz); border-color: rgba(0,170,255,0.4);   background: rgba(0,170,255,0.06); }
.plat-bagibagi   { color: var(--bagibagi);   border-color: rgba(255,102,204,0.4); background: rgba(255,102,204,0.06); }
.don-info { flex: 1; min-width: 0; }
.don-info .name { font-weight: 700; font-size: 0.92rem; }
.don-info .msg  { color: var(--muted2); font-size: 0.8rem; margin-top: 0.1rem; }
.don-amount {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--green);
  white-space: nowrap;
  flex-shrink: 0;
  font-family: 'JetBrains Mono', monospace;
  text-shadow: 0 0 10px rgba(0,255,136,0.4);
}
.fake-tag {
  font-size: 0.62rem;
  color: var(--yellow);
  margin-left: 0.35rem;
  font-family: 'JetBrains Mono', monospace;
  border: 1px solid rgba(255,204,0,0.3);
  padding: 0.05rem 0.3rem;
  border-radius: 3px;
  background: rgba(255,204,0,0.05);
}

/* ── Status dots ────────────────────────────── */
.status-dot {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2s infinite;
  margin-right: 0.35rem;
  box-shadow: 0 0 6px var(--green);
}
.status-dot.off { background: var(--red); animation: none; box-shadow: 0 0 6px var(--red); }
@keyframes pulse { 0%,100%{opacity:1;box-shadow:0 0 6px var(--green)} 50%{opacity:0.4;box-shadow:0 0 2px var(--green)} }

/* ── Toast ──────────────────────────────────── */
#toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--card);
  border: 1px solid var(--border2);
  border-radius: 8px;
  padding: 0.65rem 1.4rem;
  font-size: 0.88rem;
  z-index: 9998;
  opacity: 0;
  transition: opacity 0.25s;
  pointer-events: none;
  white-space: nowrap;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  letter-spacing: 0.03em;
}
#toast.show { opacity: 1; }
#toast.ok  { border-color: rgba(0,255,136,0.5); color: var(--green); box-shadow: 0 0 15px rgba(0,255,136,0.15); }
#toast.err { border-color: rgba(255,51,102,0.5); color: var(--red);   box-shadow: 0 0 15px rgba(255,51,102,0.15); }

/* ── Misc ───────────────────────────────────── */
.divider {
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(0,212,255,0.15), transparent);
  margin: 1.25rem 0;
}
.empty-state {
  text-align: center;
  color: var(--muted);
  padding: 3rem;
  font-size: 0.9rem;
}
.empty-state .es-icon { font-size: 2.5rem; margin-bottom: 0.75rem; }
.empty-state h3 { color: var(--muted2); margin-bottom: 0.3rem; }
code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82em;
  background: rgba(0,212,255,0.08);
  color: var(--accent);
  padding: 0.1em 0.35em;
  border-radius: 4px;
  border: 1px solid rgba(0,212,255,0.15);
}
.text-muted  { color: var(--muted); }
.text-green  { color: var(--green); }
.text-red    { color: var(--red); }
.text-yellow { color: var(--yellow); }
.text-accent { color: var(--accent); }
.font-mono   { font-family: 'JetBrains Mono', monospace; }
.fw-800      { font-weight: 800; }

/* ── Login Screen ───────────────────────────── */
.login-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

/* Grid background */
.login-screen::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,212,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,255,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}
.login-screen::after {
  content: '';
  position: absolute;
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(0,212,255,0.06) 0%, rgba(124,58,237,0.04) 40%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  pointer-events: none;
}

.login-box {
  background: rgba(8,8,24,0.95);
  border: 1px solid rgba(0,212,255,0.2);
  border-radius: 16px;
  padding: 2.5rem;
  width: min(420px, 95vw);
  max-width: 420px;
  text-align: center;
  box-shadow: var(--shadow-lg), 0 0 60px rgba(0,212,255,0.08);
  position: relative;
  z-index: 1;
  animation: modalIn 0.4s ease;
}
.login-box::before {
  content: '';
  position: absolute;
  top: 0; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--accent), transparent);
}
.login-box .login-logo {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  filter: drop-shadow(0 0 15px rgba(0,212,255,0.5));
}
.login-box h2 {
  font-family: 'Orbitron', monospace;
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 0.3rem;
  letter-spacing: 0.05em;
  color: var(--text);
}
.login-box .login-sub { color: var(--muted2); font-size: 0.85rem; margin-bottom: 1.75rem; }
.login-err { color: var(--red); font-size: 0.82rem; margin-top: 0.7rem; min-height: 1.2em; font-family: 'JetBrains Mono', monospace; }

/* ── Tab Section ────────────────────────────── */
.tab-section { animation: fadeIn 0.2s ease; }
@keyframes fadeIn { from {opacity:0;transform:translateY(4px)} to {opacity:1;transform:translateY(0)} }

/* ── Responsive ─────────────────────────────── */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 49;
  backdrop-filter: blur(4px);
}

@media (max-width: 768px) {
  :root { --sidebar-w: 260px; }

  .sidebar {
    transform: translateX(-100%);
  }
  .sidebar.open {
    transform: translateX(0);
    box-shadow: var(--shadow-lg), 4px 0 30px rgba(0,0,0,0.8);
  }
  .sidebar-overlay.open { display: block; }
  .main-content { margin-left: 0; }
  .sidebar-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .page-content { padding: 1.25rem 1rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .login-box { margin: 1rem; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .form-row { flex-direction: column; }
  .form-row .field { min-width: auto; }
  .lb-item { gap: 0.6rem; padding: 0.75rem 0.85rem; }
  .lb-count { display: none; }
  .modal { padding: 1.5rem; }
  .page-header h1 { font-size: 1rem; }
  .topbar { padding: 0 1rem; }
}

@media (max-width: 360px) {
  .stats-grid { grid-template-columns: 1fr; }
  .lb-amount { font-size: 0.8rem; }
}


/* Audit fixes */
img,video,canvas,svg{max-width:100%;height:auto}
table{display:block;overflow-x:auto;max-width:100%}
.main-content,.page-content,.card,.modal,.login-box{max-width:100%}
@media (max-width:768px){
  .sidebar{transform:translateX(-100%);width:min(260px,85vw)}
  .sidebar.open{transform:translateX(0)}
  .main-content,.landing-main{margin-left:0!important;width:100%!important}
  .stats-grid{grid-template-columns:1fr!important}
  .topbar{padding-left:.75rem;padding-right:.75rem}
  .page-content{padding:.75rem}
  input,select,textarea{max-width:100%}
}

body { display:block; }

  /* Grid BG for landing */
  body::before {
    content:'';
    position:fixed; inset:0;
    background-image:
      linear-gradient(rgba(0,212,255,0.03) 1px, transparent 1px),
      linear-gradient(90deg, rgba(0,212,255,0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events:none; z-index:0;
  }

  .landing-wrap {
    display: flex;
    min-height: 100vh;
    position: relative;
  }
  .landing-main {
    margin-left: var(--sidebar-w);
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 3rem 1.5rem 2rem;
    position: relative;
    z-index:1;
  }
  .hero {
    text-align: center;
    margin-bottom: 2.5rem;
    max-width: 640px;
  }
  .hero-glow {
    position: fixed;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(0,212,255,0.06) 0%, rgba(124,58,237,0.04) 40%, transparent 65%);
    top: 10%; left: 50%; transform: translateX(-50%);
    pointer-events: none; z-index: 0;
  }
  .hero-eyebrow {
    display: inline-flex; align-items: center; gap: 0.4rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--accent); margin-bottom: 1rem; opacity: 0.8;
    background: rgba(0,212,255,0.06); border: 1px solid rgba(0,212,255,0.2);
    padding: 0.3rem 0.85rem; border-radius: 999px;
  }
  .hero h1 {
    font-family: 'Orbitron', monospace;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    background: linear-gradient(135deg, var(--accent), var(--accent2), var(--accent));
    background-size: 200% auto;
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    margin-bottom: 0.8rem; line-height: 1.1;
    letter-spacing: 0.05em;
    animation: shimmer 3s linear infinite;
  }
  @keyframes shimmer { to { background-position: 200% center; } }
  .hero p { color: var(--muted2); font-size: 1rem; line-height: 1.6; }
  .hero .badge {
    display: inline-flex; align-items: center; gap: 0.4rem;
    background: rgba(0,255,136,0.06); border: 1px solid rgba(0,255,136,0.25); border-radius: 999px;
    padding: 0.3rem 0.9rem; font-size: 0.72rem; color: var(--green);
    margin-top: 1rem; font-family: 'JetBrains Mono', monospace;
    text-shadow: 0 0 8px rgba(0,255,136,0.5);
  }

  /* Search */
  .search-wrap { width: 100%; max-width: 880px; margin-bottom: 1.2rem; position: relative; }
  .search-wrap input {
    padding: 0.85rem 1.2rem 0.85rem 3rem;
    font-size: 0.95rem; border-radius: 8px;
    background: rgba(0,0,0,0.5);
    border-color: rgba(0,212,255,0.2);
  }
  .search-wrap input:focus { border-color: var(--accent); }
  .search-icon {
    position: absolute; left: 1rem; top: 50%; transform: translateY(-50%);
    color: var(--accent); opacity: 0.5; font-size: 1rem; pointer-events: none;
  }
  .count-text { color: var(--muted); font-size: 0.8rem; width: 100%; max-width: 880px; margin-bottom: 0.75rem; font-family: 'JetBrains Mono', monospace; }

  /* Grid */
  .grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
    width: 100%; max-width: 880px;
  }
  .streamer-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.3rem;
    cursor: pointer; display: block; color: inherit;
    transition: all 0.2s;
    position: relative; overflow: hidden;
  }
  .streamer-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0; transition: opacity 0.2s;
  }
  .streamer-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(0,212,255,0.05) 0%, transparent 60%);
    opacity: 0; transition: opacity 0.2s;
  }
  .streamer-card:hover {
    border-color: rgba(0,212,255,0.35);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.5), 0 0 20px rgba(0,212,255,0.1);
  }
  .streamer-card:hover::before, .streamer-card:hover::after { opacity: 1; }
  .avatar {
    width: 48px; height: 48px; border-radius: 8px;
    background: linear-gradient(135deg, var(--accent2), var(--accent));
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; font-weight: 900; color: white;
    margin-bottom: 0.9rem;
    font-family: 'Orbitron', monospace;
    box-shadow: 0 0 15px rgba(0,212,255,0.25);
  }
  .streamer-card h3 {
    font-size: 1rem; font-weight: 700; margin-bottom: 0.2rem;
    font-family: 'Rajdhani', sans-serif;
  }
  .streamer-card .username {
    color: var(--muted); font-size: 0.78rem; margin-bottom: 0.9rem;
    font-family: 'JetBrains Mono', monospace;
  }
  .streamer-card .pills {
    display: flex; gap: 0.35rem; flex-wrap: wrap;
    border-top: 1px solid var(--border); padding-top: 0.75rem;
  }
  .empty { text-align: center; padding: 4rem 2rem; color: var(--muted); }
  .empty h3 { font-size: 1.1rem; color: var(--muted2); margin-bottom: 0.4rem; }

  /* Section header */
  .landing-section { width: 100%; max-width: 880px; margin-bottom: 2rem; }
  .landing-section-hdr {
    display: flex; align-items: baseline; gap: 0.75rem;
    margin-bottom: 1rem; padding-bottom: 0.6rem;
    border-bottom: 1px solid rgba(0,212,255,0.1);
  }
  .landing-section-hdr h2 {
    font-family: 'Orbitron', monospace;
    font-size: 0.85rem; font-weight: 800;
    color: var(--accent); letter-spacing: 0.08em;
  }
  .landing-section-hdr span { color: var(--muted); font-size: 0.75rem; font-family: 'JetBrains Mono', monospace; }

  @media(max-width:768px){
    .landing-main { margin-left:0; padding-top:5rem; padding-left:1rem; padding-right:1rem; }
    .grid { grid-template-columns: repeat(auto-fill, minmax(160px,1fr)); gap:0.75rem; }
    .hero h1 { font-size: 1.8rem; }
  }
  @media(max-width:480px){
    .grid { grid-template-columns: 1fr 1fr; }
    .streamer-card { padding: 1rem; }
  }
  @media(max-width:360px){
    .grid { grid-template-columns: 1fr; }
  }
  
  @media(max-width:600px){
  .action-btns { flex-direction:column; gap:0.2rem; }
  .action-btns .btn { font-size:0.72rem; padding:0.25rem 0.5rem; }
  table { font-size:0.8rem; }
  thead th, tbody td { padding:0.55rem 0.6rem; }
}

/* Extra user-page styles */
.stats-grid { margin-bottom: 1.5rem; }
.stat-value { font-size: 1.3rem !important; }

/* Fake donation form compact */
.fake-form { max-width: 520px; }

/* URL items spacing */
.url-item label { color: var(--muted2); text-transform: none; letter-spacing: 0; font-size: 0.78rem; font-family: 'Rajdhani', sans-serif; font-weight: 600; }

@media(max-width:480px){
  .stat-value { font-size:1.1rem !important; }
  .topbar-title { font-size:0.75rem !important; }
}

  body { display:block; }

  /* Grid BG for landing */
  body::before {
    content:'';
    position:fixed; inset:0;
    background-image:
      linear-gradient(rgba(0,212,255,0.03) 1px, transparent 1px),
      linear-gradient(90deg, rgba(0,212,255,0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events:none; z-index:0;
  }

  .landing-wrap {
    display: flex;
    min-height: 100vh;
    position: relative;
  }
  .landing-main {
    margin-left: var(--sidebar-w);
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 3rem 1.5rem 2rem;
    position: relative;
    z-index:1;
  }
  .hero {
    text-align: center;
    margin-bottom: 2.5rem;
    max-width: 640px;
  }
  .hero-glow {
    position: fixed;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(0,212,255,0.06) 0%, rgba(124,58,237,0.04) 40%, transparent 65%);
    top: 10%; left: 50%; transform: translateX(-50%);
    pointer-events: none; z-index: 0;
  }
  .hero-eyebrow {
    display: inline-flex; align-items: center; gap: 0.4rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--accent); margin-bottom: 1rem; opacity: 0.8;
    background: rgba(0,212,255,0.06); border: 1px solid rgba(0,212,255,0.2);
    padding: 0.3rem 0.85rem; border-radius: 999px;
  }
  .hero h1 {
    font-family: 'Orbitron', monospace;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    background: linear-gradient(135deg, var(--accent), var(--accent2), var(--accent));
    background-size: 200% auto;
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    margin-bottom: 0.8rem; line-height: 1.1;
    letter-spacing: 0.05em;
    animation: shimmer 3s linear infinite;
  }
  @keyframes shimmer { to { background-position: 200% center; } }
  .hero p { color: var(--muted2); font-size: 1rem; line-height: 1.6; }
  .hero .badge {
    display: inline-flex; align-items: center; gap: 0.4rem;
    background: rgba(0,255,136,0.06); border: 1px solid rgba(0,255,136,0.25); border-radius: 999px;
    padding: 0.3rem 0.9rem; font-size: 0.72rem; color: var(--green);
    margin-top: 1rem; font-family: 'JetBrains Mono', monospace;
    text-shadow: 0 0 8px rgba(0,255,136,0.5);
  }

  /* Search */
  .search-wrap { width: 100%; max-width: 880px; margin-bottom: 1.2rem; position: relative; }
  .search-wrap input {
    padding: 0.85rem 1.2rem 0.85rem 3rem;
    font-size: 0.95rem; border-radius: 8px;
    background: rgba(0,0,0,0.5);
    border-color: rgba(0,212,255,0.2);
  }
  .search-wrap input:focus { border-color: var(--accent); }
  .search-icon {
    position: absolute; left: 1rem; top: 50%; transform: translateY(-50%);
    color: var(--accent); opacity: 0.5; font-size: 1rem; pointer-events: none;
  }
  .count-text { color: var(--muted); font-size: 0.8rem; width: 100%; max-width: 880px; margin-bottom: 0.75rem; font-family: 'JetBrains Mono', monospace; }

  /* Grid */
  .grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
    width: 100%; max-width: 880px;
  }
  .streamer-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.3rem;
    cursor: pointer; display: block; color: inherit;
    transition: all 0.2s;
    position: relative; overflow: hidden;
  }
  .streamer-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0; transition: opacity 0.2s;
  }
  .streamer-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(0,212,255,0.05) 0%, transparent 60%);
    opacity: 0; transition: opacity 0.2s;
  }
  .streamer-card:hover {
    border-color: rgba(0,212,255,0.35);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.5), 0 0 20px rgba(0,212,255,0.1);
  }
  .streamer-card:hover::before, .streamer-card:hover::after { opacity: 1; }
  .avatar {
    width: 48px; height: 48px; border-radius: 8px;
    background: linear-gradient(135deg, var(--accent2), var(--accent));
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; font-weight: 900; color: white;
    margin-bottom: 0.9rem;
    font-family: 'Orbitron', monospace;
    box-shadow: 0 0 15px rgba(0,212,255,0.25);
  }
  .streamer-card h3 {
    font-size: 1rem; font-weight: 700; margin-bottom: 0.2rem;
    font-family: 'Rajdhani', sans-serif;
  }
  .streamer-card .username {
    font-size: 0.85rem; color: var(--muted); margin-bottom: 0.8rem;
    font-family: 'JetBrains Mono', monospace;
  }
  .pills { display: flex; gap: 0.4rem; flex-wrap: wrap;
  }
  .pill {
    padding: 0.25rem 0.6rem; font-size: 0.65rem; border-radius: 999px; color: white;
    font-family: 'JetBrains Mono', monospace;
  }
  .pill-s { background: #ff5f5f; }


  /* Extra user-page styles */
.stats-grid { margin-bottom: 1.5rem; }
.stat-value { font-size: 1.3rem !important; }

/* Fake donation form compact */
.fake-form { max-width: 520px; }

/* URL items spacing */
.url-item label { color: var(--muted2); text-transform: none; letter-spacing: 0; font-size: 0.78rem; font-family: 'Rajdhani', sans-serif; font-weight: 600; }

@media(max-width:480px){
  .stat-value { font-size:1.1rem !important; }
  .topbar-title { font-size:0.75rem !important; }
}

/* Admin table action buttons wrap on mobile */
@media(max-width:600px){
  .action-btns { flex-direction:column; gap:0.2rem; }
  .action-btns .btn { font-size:0.72rem; padding:0.25rem 0.5rem; }
  table { font-size:0.8rem; }
  thead th, tbody td { padding:0.55rem 0.6rem; }
}
