/* =============================================
   NDARUTEZANO — HACKER THEME
   Dashboard & Admin Stylesheet (app.css)
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,100..800;1,100..800&family=Share+Tech+Mono&display=swap');

/* ---- CSS VARIABLES ---- */
:root {
  --green:       #00ff41;
  --green-dim:   #00cc33;
  --green-dark:  #003300;
  --cyan:        #00ffff;
  --red:         #ff0033;
  --yellow:      #ffff00;
  --orange:      #ff6600;

  --bg-body:     #000000;
  --bg-sidebar:  #020c02;
  --bg-card:     #040d04;
  --bg-card2:    #030903;
  --bg-card-hover: #071307;
  --bg-input:    rgba(0,255,65,0.03);

  --text-primary:   #00ff41;
  --text-secondary: rgba(0,255,65,0.7);
  --text-muted:     rgba(0,255,65,0.35);

  --border:      rgba(0,255,65,0.2);
  --border-dim:  rgba(0,255,65,0.07);
  --border-hover:rgba(0,255,65,0.4);

  --shadow:    0 0 10px rgba(0,255,65,0.05);
  --shadow-md: 0 0 20px rgba(0,255,65,0.08);
  --shadow-lg: 0 0 40px rgba(0,255,65,0.12);

  --glow-sm: 0 0 6px rgba(0,255,65,0.6);
  --glow:    0 0 10px rgba(0,255,65,0.7), 0 0 25px rgba(0,255,65,0.2);
  --glow-lg: 0 0 15px rgba(0,255,65,0.9), 0 0 50px rgba(0,255,65,0.3);

  --sidebar-width:  260px;
  --header-height:  64px;
  --radius:         3px;
  --radius-sm:      2px;
  --radius-lg:      4px;

  --font: 'JetBrains Mono', 'Share Tech Mono', 'Courier New', monospace;

  /* Legacy/compat aliases — maps old color names to hacker theme */
  --google-red:    var(--green);
  --google-blue:   var(--cyan);
  --google-yellow: var(--yellow);
  --google-green:  var(--green-dim);
  --primary:       var(--green);
  --success:       var(--green-dim);
  --warning:       var(--yellow);
  --danger:        var(--red);
  --info:          var(--cyan);
  --border-color:  var(--border);
  --text-dark:     var(--text-primary);
  --card-shadow:   var(--shadow);
}

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg-body);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  cursor: default;
}

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

a { color: var(--text-primary); text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font-family: var(--font); }
button { cursor: pointer; border: none; background: none; }

::selection { background: var(--green); color: #000; }

/* =============================================
   LAYOUT
   ============================================= */
.app-layout { display: flex; min-height: 100vh; }

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

/* Sidebar scanline effect */
.sidebar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(0,255,65,0.01) 3px,
    rgba(0,255,65,0.01) 4px
  );
  pointer-events: none;
  z-index: 0;
}

.sidebar-brand {
  padding: 1.25rem 1.25rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid var(--border-dim);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.logo-icon {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  width: 18px; height: 18px;
}
.logo-dot { border-radius: 50%; display: block; }
.dot-blue   { background: #4285F4; box-shadow: 0 0 5px #4285F4; }
.dot-red    { background: #EA4335; box-shadow: 0 0 5px #EA4335; }
.dot-yellow { background: #FBBC04; box-shadow: 0 0 5px #FBBC04; }
.dot-green  { background: #34A853; box-shadow: 0 0 5px #34A853; }

.sidebar-brand .brand-name {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--green);
  text-shadow: var(--glow-sm);
}
.sidebar-brand img {
  filter: drop-shadow(0 0 5px rgba(0,255,65,0.9));
  flex-shrink: 0;
}

.sidebar-nav {
  flex: 1;
  padding: 1rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  position: relative;
  z-index: 1;
}

.nav-section-label {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  padding: 0.75rem 0.75rem 0.25rem;
}
.nav-section-label::before { content: '// '; }

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.6rem 0.8rem;
  border-radius: var(--radius);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
  border: 1px solid transparent;
  transition: all 0.2s;
  position: relative;
  letter-spacing: 0.03em;
}

.nav-item::before { content: '> '; font-size: 0.7em; opacity: 0; transition: opacity 0.2s; }

.nav-item:hover {
  background: rgba(0,255,65,0.04);
  border-color: var(--border-dim);
  color: var(--green);
}
.nav-item:hover::before { opacity: 1; }

.nav-item.active {
  background: rgba(0,255,65,0.07);
  border-color: var(--border);
  color: var(--green);
  text-shadow: var(--glow-sm);
  box-shadow: var(--shadow);
}
.nav-item.active::before { opacity: 1; }
.nav-item.active::after {
  content: '';
  position: absolute;
  left: 0; top: 20%; bottom: 20%;
  width: 2px;
  background: var(--green);
  border-radius: 0 2px 2px 0;
  box-shadow: var(--glow-sm);
}

.nav-item i {
  width: 16px;
  text-align: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.nav-badge {
  margin-left: auto;
  background: var(--red);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 2px;
  min-width: 18px;
  text-align: center;
  box-shadow: 0 0 6px var(--red);
}

.sidebar-user {
  padding: 0.85rem 1rem;
  border-top: 1px solid var(--border-dim);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.user-avatar {
  width: 32px; height: 32px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(0,255,65,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--green);
  flex-shrink: 0;
  overflow: hidden;
  text-shadow: var(--glow-sm);
}
.user-avatar img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.4) brightness(0.9) hue-rotate(90deg); }

.user-info { flex: 1; min-width: 0; }
.user-name  { font-size: 0.78rem; font-weight: 600; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-email { font-size: 0.65rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.sidebar-logout {
  color: var(--text-muted);
  font-size: 0.85rem;
  padding: 0.3rem;
  border-radius: var(--radius);
  transition: all 0.2s;
  flex-shrink: 0;
}
.sidebar-logout:hover { color: var(--red); box-shadow: 0 0 8px rgba(255,0,51,0.4); }

/* =============================================
   MAIN CONTENT
   ============================================= */
.main-content {
  margin-left: var(--sidebar-width);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  transition: margin-left 0.3s ease;
}

/* ---- TOPBAR ---- */
.topbar {
  height: var(--header-height);
  background: var(--bg-sidebar);
  border-bottom: 1px solid var(--border-dim);
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: sticky;
  top: 0;
  z-index: 50;
}

.topbar-left { display: flex; align-items: center; gap: 1rem; }

.topbar-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  text-shadow: var(--glow-sm);
  letter-spacing: 0.05em;
}
.topbar-title::before { content: '> '; color: var(--text-muted); font-size: 0.8em; }

.topbar-subtitle { font-size: 0.68rem; color: var(--text-muted); }

.sidebar-toggle {
  display: flex;
  width: 34px; height: 34px;
  border-radius: var(--radius);
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  border: 1px solid var(--border-dim);
  background: transparent;
  cursor: crosshair;
  transition: all 0.2s;
  flex-shrink: 0;
}
.sidebar-toggle:hover { color: var(--green); border-color: var(--border); box-shadow: var(--glow-sm); }

/* ---- SIDEBAR COLLAPSED (desktop) ---- */
.sidebar-collapsed .sidebar {
  transform: translateX(-100%);
}
.sidebar-collapsed .main-content {
  margin-left: 0;
}
.sidebar-collapsed .sidebar-overlay {
  display: none !important;
}

.topbar-right { display: flex; align-items: center; gap: 0.5rem; }

.topbar-icon-btn {
  width: 34px; height: 34px;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  border: 1px solid var(--border-dim);
  transition: all 0.2s;
  position: relative;
}
.topbar-icon-btn:hover { color: var(--green); border-color: var(--border); box-shadow: var(--glow-sm); }

.notif-dot {
  position: absolute;
  top: 5px; right: 5px;
  width: 6px; height: 6px;
  background: var(--red);
  border-radius: 50%;
  border: 1px solid var(--bg-sidebar);
  box-shadow: 0 0 5px var(--red);
  animation: notif-blink 1.5s ease-in-out infinite;
}
@keyframes notif-blink { 0%,100%{opacity:1;} 50%{opacity:0.3;} }

/* ---- PAGE CONTENT ---- */
.page-content {
  flex: 1;
  padding: 1.75rem;
  max-width: 100%;
}

/* =============================================
   CARDS
   ============================================= */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  position: relative;
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--green-dim), transparent);
  opacity: 0.4;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  gap: 1rem;
}

.card-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.card-title::before { content: '[ '; color: var(--text-muted); }
.card-title::after  { content: ' ]'; color: var(--text-muted); }

.card-subtitle { font-size: 0.7rem; color: var(--text-muted); margin-top: 0.2rem; }

/* ---- STAT CARDS ---- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.stat-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 1px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s;
}
.stat-card:hover { border-color: var(--border); background: var(--bg-card-hover); box-shadow: var(--shadow-md); }
.stat-card:hover::after { transform: scaleX(1); }

.stat-icon {
  width: 42px; height: 42px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  color: var(--green);
  background: rgba(0,255,65,0.05);
  flex-shrink: 0;
  text-shadow: var(--glow-sm);
}

.stat-info { flex: 1; }
.stat-label { font-size: 0.65rem; color: var(--text-muted); font-weight: 500; margin-bottom: 0.35rem; text-transform: uppercase; letter-spacing: 0.1em; }
.stat-value { font-size: 1.65rem; font-weight: 800; color: var(--green); line-height: 1; text-shadow: var(--glow-sm); }
.stat-change { font-size: 0.68rem; color: var(--green-dim); font-weight: 600; margin-top: 0.3rem; }
.stat-change.negative { color: var(--red); }

/* ---- TABLE ---- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); }

table { width: 100%; border-collapse: collapse; }

thead th {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  padding: 0.75rem 1rem;
  text-align: left;
  background: rgba(0,255,65,0.025);
  white-space: nowrap;
  border-bottom: 1px solid var(--border-dim);
}
thead th::before { content: '# '; opacity: 0.4; }

tbody td {
  padding: 0.8rem 1rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-dim);
  vertical-align: middle;
}

tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: rgba(0,255,65,0.025); color: var(--text-primary); }

/* ---- BADGES ---- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.65rem;
  font-weight: 700;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: 1px solid transparent;
}

.badge-green  { background: rgba(0,255,65,0.08);  color: var(--green);  border-color: rgba(0,255,65,0.25);  text-shadow: var(--glow-sm); }
.badge-blue   { background: rgba(0,191,255,0.08);  color: #00bfff;       border-color: rgba(0,191,255,0.25); }
.badge-orange { background: rgba(255,102,0,0.08);  color: var(--orange); border-color: rgba(255,102,0,0.25); }
.badge-red    { background: rgba(255,0,51,0.08);   color: var(--red);    border-color: rgba(255,0,51,0.25);  }
.badge-purple { background: rgba(180,0,255,0.08);  color: #cc44ff;       border-color: rgba(180,0,255,0.25); }
.badge-yellow { background: rgba(255,255,0,0.06);  color: var(--yellow); border-color: rgba(255,255,0,0.2);  }
.badge-gray   { background: rgba(0,255,65,0.03);   color: var(--text-muted); border-color: var(--border-dim); }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius);
  font-size: 0.78rem;
  font-weight: 700;
  transition: all 0.2s;
  white-space: nowrap;
  cursor: pointer;
  font-family: var(--font);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: currentColor;
  opacity: 0;
  transition: opacity 0.2s;
}
.btn:hover::before { opacity: 0.1; }

.btn-primary {
  background: transparent;
  color: var(--green);
  border-color: var(--green);
  box-shadow: var(--glow-sm);
}
.btn-primary:hover { background: var(--green); color: #000; box-shadow: var(--glow); text-shadow: none; }
.btn-primary:hover::before { opacity: 0; }

.btn-success {
  background: transparent;
  color: #00cc33;
  border-color: #00cc33;
}
.btn-success:hover { background: #00cc33; color: #000; }
.btn-success:hover::before { opacity: 0; }

.btn-danger {
  background: transparent;
  color: var(--red);
  border-color: var(--red);
}
.btn-danger:hover { background: var(--red); color: #fff; box-shadow: 0 0 10px rgba(255,0,51,0.5); }
.btn-danger:hover::before { opacity: 0; }

.btn-outline {
  border-color: var(--border);
  color: var(--text-muted);
  background: transparent;
}
.btn-outline:hover { border-color: var(--border-hover); color: var(--green); }

.btn-sm { padding: 0.35rem 0.75rem; font-size: 0.7rem; }
.btn-icon { width: 32px; height: 32px; padding: 0; justify-content: center; }

/* ---- FORMS ---- */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1.1rem;
}

.form-label {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.form-label::before { content: '$ '; color: rgba(0,255,65,0.3); }

.form-control {
  padding: 0.65rem 0.9rem;
  background: var(--bg-input);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-family: var(--font);
  color: var(--text-primary);
  outline: none;
  transition: all 0.2s;
  width: 100%;
  caret-color: var(--green);
}
.form-control:focus {
  border-color: var(--border-hover);
  background: rgba(0,255,65,0.04);
  box-shadow: 0 0 0 2px rgba(0,255,65,0.08), var(--glow-sm);
}
.form-control::placeholder { color: var(--text-muted); }
select.form-control option { background: #050f05; color: var(--green); }
textarea.form-control { resize: vertical; min-height: 100px; }

.form-hint  { font-size: 0.7rem; color: var(--text-muted); }
.form-error { font-size: 0.7rem; color: var(--red); display: flex; align-items: center; gap: 0.3rem; }

.form-row   { display: grid; gap: 1rem; }
.form-row-2 { grid-template-columns: 1fr 1fr; }
.form-row-3 { grid-template-columns: 1fr 1fr 1fr; }

/* ---- ALERTS ---- */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 1.25rem;
  border: 1px solid transparent;
}
.alert i { font-size: 0.9rem; flex-shrink: 0; margin-top: 1px; }
.alert-success { background: rgba(0,255,65,0.06);  color: var(--green);  border-color: rgba(0,255,65,0.25); }
.alert-error   { background: rgba(255,0,51,0.06);  color: var(--red);    border-color: rgba(255,0,51,0.25); }
.alert-warning { background: rgba(255,255,0,0.04); color: var(--yellow); border-color: rgba(255,255,0,0.2); }
.alert-info    { background: rgba(0,255,255,0.04); color: var(--cyan);   border-color: rgba(0,255,255,0.2); }

/* ---- PAGINATION ---- */
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.1rem;
  border-top: 1px solid var(--border-dim);
  margin-top: 0.5rem;
  gap: 1rem;
  flex-wrap: wrap;
}
.pagination-info { font-size: 0.7rem; color: var(--text-muted); }
.pagination-btns { display: flex; gap: 0.3rem; }

.page-btn {
  width: 30px; height: 30px;
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem;
  font-family: var(--font);
  color: var(--text-muted);
  transition: all 0.2s;
  cursor: pointer;
  background: transparent;
}
.page-btn:hover { border-color: var(--border-hover); color: var(--green); }
.page-btn.active { background: rgba(0,255,65,0.1); color: var(--green); border-color: var(--green); font-weight: 700; box-shadow: var(--glow-sm); }
.page-btn:disabled { opacity: 0.3; pointer-events: none; }

/* ---- EMPTY STATE ---- */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
  text-align: center;
  gap: 0.75rem;
}
.empty-state-icon { font-size: 2rem; color: var(--text-muted); }
.empty-state h3 { font-size: 0.9rem; font-weight: 700; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.05em; }
.empty-state p { font-size: 0.78rem; color: var(--text-muted); max-width: 280px; }

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

.modal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1100;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: calc(100% - 2rem);
  max-width: 520px;
  box-shadow: 0 0 30px rgba(0,255,65,0.25), var(--glow-lg);
  overflow: hidden;
}
.modal.active, .modal.open {
  display: block;
  animation: modalIn 0.2s ease;
}
.modal::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--green), transparent);
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.96) translateY(-8px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-dim);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.modal-title::before { content: '[ '; color: var(--text-muted); }
.modal-title::after  { content: ' ]'; color: var(--text-muted); }

.modal-close { color: var(--text-muted); font-size: 0.9rem; padding: 0.25rem; border-radius: var(--radius); transition: all 0.2s; }
.modal-close:hover { color: var(--red); box-shadow: 0 0 8px rgba(255,0,51,0.4); }

.modal-body { padding: 1.5rem; }
.modal-footer { padding: 1rem 1.5rem; border-top: 1px solid var(--border-dim); display: flex; justify-content: flex-end; gap: 0.75rem; }

/* ---- STEP WIZARD ---- */
.steps {
  display: flex;
  align-items: center;
  margin-bottom: 2.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}
.step {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  min-width: 100px;
}
.step:not(:last-child)::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-dim);
  margin: 0 0.5rem;
}
.step.done:not(:last-child)::after { background: var(--green-dim); }
.step.active:not(:last-child)::after { background: linear-gradient(90deg, var(--green-dim), var(--border-dim)); }

.step-num {
  width: 28px; height: 28px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem;
  font-weight: 800;
  flex-shrink: 0;
  border: 1px solid var(--border-dim);
  color: var(--text-muted);
  background: var(--bg-card);
  transition: all 0.3s;
  font-family: var(--font);
}
.step.active .step-num { border-color: var(--green); color: var(--green); background: rgba(0,255,65,0.08); box-shadow: var(--glow-sm); }
.step.done  .step-num  { border-color: var(--green-dim); background: var(--green-dim); color: #000; }

.step-label { font-size: 0.7rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.step.active .step-label { color: var(--green); text-shadow: var(--glow-sm); }
.step.done   .step-label { color: var(--green-dim); }

/* ---- ADMIN SPECIFIC (red accent) ---- */
.admin-sidebar .sidebar-brand .brand-name { color: var(--red); text-shadow: 0 0 8px rgba(255,0,51,0.6); }
.admin-sidebar .nav-item.active { background: rgba(255,0,51,0.06); border-color: rgba(255,0,51,0.2); color: var(--red); text-shadow: 0 0 6px rgba(255,0,51,0.5); }
.admin-sidebar .nav-item.active::after { background: var(--red); box-shadow: 0 0 6px var(--red); }
.admin-sidebar .nav-item:hover { color: var(--red); background: rgba(255,0,51,0.04); }

/* ---- CHART ---- */
.chart-wrap {
  position: relative;
  height: 200px;
  display: flex;
  align-items: flex-end;
  gap: 6px;
  padding: 0.5rem 0 28px;
}
.chart-bar {
  flex: 1;
  background: linear-gradient(to top, rgba(0,255,65,0.6), rgba(0,255,65,0.15));
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: 2px 2px 0 0;
  position: relative;
  cursor: pointer;
  min-height: 4px;
  transition: all 0.3s;
}
.chart-bar:hover { background: linear-gradient(to top, var(--green), rgba(0,255,65,0.3)); box-shadow: var(--glow); }
.chart-bar-label {
  position: absolute;
  bottom: -22px; left: 50%; transform: translateX(-50%);
  font-size: 0.6rem;
  color: var(--text-muted);
  white-space: nowrap;
}
.chart-bar-val {
  position: absolute;
  top: -18px; left: 50%; transform: translateX(-50%);
  font-size: 0.58rem;
  font-weight: 700;
  color: var(--green);
  white-space: nowrap;
  text-shadow: var(--glow-sm);
}

/* ---- DNS CODE BOX ---- */
.dns-code {
  background: rgba(0,255,65,0.03);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  font-family: var(--font);
  font-size: 0.8rem;
  color: var(--green);
  word-break: break-all;
  position: relative;
  margin: 0.75rem 0;
}
.dns-copy-btn {
  position: absolute;
  top: 0.4rem; right: 0.4rem;
  padding: 0.25rem 0.6rem;
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  background: rgba(0,255,65,0.1);
  color: var(--green);
  cursor: pointer;
  border: 1px solid var(--border);
  font-family: var(--font);
  transition: all 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.dns-copy-btn:hover { background: var(--green); color: #000; }

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: var(--bg-body); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: var(--green-dim); }

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); box-shadow: var(--glow-lg); }
  .main-content { margin-left: 0; }
  .sidebar-toggle { display: flex; }
  .sidebar-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.8);
    z-index: 99;
    display: none;
  }
  .sidebar-overlay.open { display: block; }
}
@media (max-width: 768px) {
  .page-content { padding: 1.1rem; }
  .topbar { padding: 0 1rem; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .form-row-2, .form-row-3 { grid-template-columns: 1fr; }
  .card-header { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
}

/* =============================================
   AUTH PAGES — HACKER STYLE
   ============================================= */
.auth-page {
  min-height: 100vh;
  background: var(--bg-body);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  position: relative;
  overflow: hidden;
  font-family: var(--font);
}

/* Grid background for auth */
.auth-page::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,255,65,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,255,65,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.auth-bg-shape { display: none; } /* disabled in hacker mode */

.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--glow-lg);
  position: relative;
  z-index: 1;
}
.auth-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--green), transparent);
}

.auth-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 1.75rem;
}
.auth-logo .brand-name {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--green);
  text-shadow: var(--glow-sm);
  letter-spacing: 0.08em;
}

.auth-title {
  font-size: 1.3rem;
  font-weight: 800;
  text-align: center;
  color: var(--green);
  margin-bottom: 0.4rem;
  text-shadow: var(--glow);
  letter-spacing: 0.02em;
}

.auth-subtitle {
  font-size: 0.78rem;
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
  line-height: 1.6;
}

.divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.25rem 0;
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-dim);
}
.divider span { font-size: 0.68rem; color: var(--text-muted); white-space: nowrap; }

.btn-google {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.75rem;
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  font-family: var(--font);
  color: var(--text-secondary);
  background: transparent;
  transition: all 0.2s;
  cursor: pointer;
}
.btn-google:hover { border-color: var(--border); color: var(--green); background: rgba(0,255,65,0.03); }
.btn-google img { width: 16px; height: 16px; filter: saturate(0.5) brightness(0.9); }

.auth-footer {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 1.5rem;
}
.auth-footer a { color: var(--green); font-weight: 600; }
.auth-footer a:hover { text-shadow: var(--glow-sm); }

/* ---- PASSWORD STRENGTH ---- */
.password-strength { height: 3px; border-radius: 2px; background: var(--border-dim); margin-top: 0.4rem; overflow: hidden; }
.password-strength-bar { height: 100%; border-radius: 2px; transition: width 0.3s, background 0.3s; }

/* ---- SUBMIT BTN for auth ---- */
.btn-submit-auth {
  width: 100%;
  padding: 0.8rem;
  background: transparent;
  color: var(--green);
  border: 1px solid var(--green);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.25s;
  margin-top: 0.25rem;
  box-shadow: var(--glow-sm);
}
.btn-submit-auth::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--green);
  transform: translateX(-101%);
  transition: transform 0.25s;
  z-index: -1;
}
.btn-submit-auth:hover { color: #000; box-shadow: var(--glow); }
.btn-submit-auth:hover::before { transform: translateX(0); }

/* ---- PASSWORD STRENGTH BAR ---- */
.password-strength { height: 3px; border-radius: 2px; background: var(--border-dim); margin-top: 0.4rem; overflow: hidden; }
.password-strength-bar { height: 100%; border-radius: 2px; transition: width 0.3s, background 0.3s; }
