:root {
  --bg: #06070a; --bg-2: #0d0e12; --bg-3: #15171e;
  --text: #F5F5F2; --text-muted: #7A7F8A;
  --primary: #FF5A34; --primary-dim: rgba(255, 90, 52, 0.1);
  --accent: #F5C451; --success: #34E5C2; --danger: #FF4444;
  --border: rgba(255,255,255,0.08);
}
* { box-sizing: border-box; }
body { font-family: 'Inter', -apple-system, sans-serif; background: var(--bg); color: var(--text); margin: 0; display: flex; height: 100vh; overflow: hidden; }

/* Typography & Utilities */
h1, h2, h3, h4 { margin: 0; font-weight: 700; }
.text-muted { color: var(--text-muted); }
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; } .gap-4 { gap: 16px; } .gap-6 { gap: 24px; }
.mt-4 { margin-top: 16px; } .mb-4 { margin-bottom: 16px; } .mb-6 { margin-bottom: 24px; }

/* Layout */
#accessShield { position: fixed; inset: 0; background: var(--bg); z-index: 9999; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.sidebar { width: 260px; background: var(--bg-2); border-right: 1px solid var(--border); display: flex; flex-direction: column; flex-shrink: 0; }
.sidebar-brand { padding: 24px; border-bottom: 1px solid var(--border); }
.sidebar-brand h2 { color: var(--primary); font-size: 16px; letter-spacing: 2px; text-transform: uppercase; }
.sidebar-nav { padding: 16px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.nav-link { display: flex; align-items: center; padding: 12px 16px; color: var(--text-muted); text-decoration: none; border-radius: 8px; font-size: 14px; font-weight: 500; transition: all 0.2s; }
.nav-link:hover { background: var(--border); color: var(--text); }
.nav-link.active { background: var(--primary-dim); color: var(--primary); }
.main-content { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.topbar { height: 70px; border-bottom: 1px solid var(--border); display: flex; align-items: center; padding: 0 32px; justify-content: space-between; flex-shrink: 0; }
.scroll-area { flex: 1; overflow-y: auto; padding: 32px; }

/* Components */
.card { background: var(--bg-2); border: 1px solid var(--border); border-radius: 12px; padding: 24px; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 20px; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; border: 1px solid transparent; transition: 0.2s; background: var(--bg-3); color: var(--text); }
.btn:hover { background: var(--border); }
.btn-primary { background: var(--primary); color: #000; }
.btn-primary:hover { background: #e04e2d; }
.btn-sm { padding: 6px 12px; font-size: 12px; }

/* Forms */
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-group label { font-size: 12px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.form-control { background: rgba(255,255,255,0.02); border: 1px solid var(--border); color: var(--text); padding: 12px; border-radius: 8px; font-family: inherit; font-size: 14px; transition: border-color 0.2s; }
.form-control:focus { outline: none; border-color: var(--primary); background: rgba(255,255,255,0.04); }
textarea.form-control { resize: vertical; line-height: 1.5; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-2); }
table { width: 100%; border-collapse: collapse; text-align: left; }
th { padding: 16px; font-size: 12px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; border-bottom: 1px solid var(--border); }
td { padding: 16px; border-bottom: 1px solid var(--border); font-size: 14px; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(255,255,255,0.02); }
.badge { display: inline-block; padding: 4px 8px; border-radius: 4px; font-size: 11px; font-weight: 700; text-transform: uppercase; }
.badge.green { background: rgba(52, 229, 194, 0.1); color: var(--success); }
.badge.red { background: rgba(255, 68, 68, 0.1); color: var(--danger); }
.badge.gray { background: var(--border); color: var(--text-muted); }

/* Toasts */
#toast { position: fixed; bottom: 24px; right: 24px; padding: 16px 24px; border-radius: 8px; font-weight: 600; background: var(--bg-3); border: 1px solid var(--border); transform: translateY(100px); opacity: 0; transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1); z-index: 2000; }
#toast.show { transform: translateY(0); opacity: 1; }
#toast.success { border-color: var(--success); color: var(--success); }
#toast.error { border-color: var(--danger); color: var(--danger); }
