* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: system-ui, sans-serif; background: #0f0f0f; color: #e0e0e0; }

/* LOGIN */
#login-screen { display: flex; align-items: center; justify-content: center; height: 100vh; background: #0f0f0f; }
.login-box { background: #1a1a1a; border: 1px solid #2a2a2a; border-radius: 16px; padding: 40px; width: 380px; text-align: center; }
.login-logo { width: 52px; height: 52px; background: #1D9E75; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 700; color: #fff; margin: 0 auto 16px; }
.login-box h1 { font-size: 22px; font-weight: 600; color: #fff; margin-bottom: 4px; }
.login-box p { font-size: 13px; color: #666; margin-bottom: 24px; }
.login-box input { display: block; width: 100%; padding: 10px 12px; margin-bottom: 12px; border: 1px solid #2a2a2a; border-radius: 8px; font-size: 14px; background: #111; color: #e0e0e0; }
.login-box input:focus { outline: none; border-color: #1D9E75; }
.login-box button { width: 100%; padding: 10px; background: #1D9E75; color: #fff; border: none; border-radius: 8px; font-size: 14px; cursor: pointer; margin-bottom: 12px; font-weight: 500; }
.login-box button:hover { background: #0F6E56; }
.login-box span { font-size: 13px; color: #1D9E75; cursor: pointer; }
.error { color: #e24b4a; font-size: 13px; margin-top: 8px; min-height: 20px; }

/* LAYOUT */
#app { display: flex; height: 100vh; }
.sidebar { width: 220px; background: #1a1a1a; border-right: 1px solid #2a2a2a; display: flex; flex-direction: column; flex-shrink: 0; }
.sidebar-logo { padding: 16px; border-bottom: 1px solid #2a2a2a; display: flex; align-items: center; gap: 10px; }
.logo-icon { width: 32px; height: 32px; background: #1D9E75; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 700; color: #fff; flex-shrink: 0; }
.logo-text { font-size: 13px; font-weight: 600; color: #fff; }
.logo-user { font-size: 11px; color: #666; margin-top: 1px; }
.nav-item { display: flex; align-items: center; gap: 10px; padding: 10px 16px; font-size: 13px; color: #888; cursor: pointer; border-left: 3px solid transparent; transition: all 0.15s; }
.nav-item:hover { background: #222; color: #e0e0e0; }
.nav-item.active { color: #1D9E75; border-left-color: #1D9E75; background: #1a2e27; }
.nav-icon { font-size: 16px; }
.sidebar-footer { margin-top: auto; padding: 16px; border-top: 1px solid #2a2a2a; }
.sidebar-footer button { width: 100%; padding: 8px; font-size: 13px; border: 1px solid #2a2a2a; border-radius: 8px; background: transparent; color: #888; cursor: pointer; }
.sidebar-footer button:hover { background: #222; color: #e0e0e0; }

/* MAIN */
.main { flex: 1; display: flex; flex-direction: column; overflow: hidden; background: #111; }
.view { display: none; flex-direction: column; flex: 1; overflow-y: auto; }
.view.active { display: flex; }
.topbar { padding: 14px 24px; border-bottom: 1px solid #2a2a2a; display: flex; align-items: center; justify-content: space-between; background: #1a1a1a; flex-shrink: 0; }
.topbar-title { font-size: 15px; font-weight: 500; color: #fff; }
.btn-primary { padding: 8px 16px; background: #1D9E75; color: #fff; border: none; border-radius: 8px; font-size: 13px; cursor: pointer; font-weight: 500; }
.btn-primary:hover { background: #0F6E56; }

/* ACCOUNTS GRID */
.accounts-grid { padding: 24px; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.account-card { background: #1a1a1a; border: 1px solid #2a2a2a; border-radius: 12px; padding: 20px; }
.account-card-header { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.account-avatar { width: 40px; height: 40px; background: #1a3a4a; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 18px; }
.account-name { font-size: 14px; font-weight: 500; color: #fff; }
.account-id { font-size: 12px; color: #666; margin-top: 2px; }
.account-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.account-stat { background: #111; border-radius: 8px; padding: 10px; }
.account-stat-label { font-size: 11px; color: #666; margin-bottom: 4px; }
.account-stat-value { font-size: 18px; font-weight: 600; color: #fff; }
.account-actions { display: flex; gap: 8px; margin-top: 14px; }
.btn-sm { padding: 6px 12px; font-size: 12px; border-radius: 6px; border: 1px solid #2a2a2a; background: transparent; color: #888; cursor: pointer; }
.btn-sm:hover { background: #222; color: #e0e0e0; }
.btn-danger { border-color: #4a1a1a; color: #e24b4a; }
.btn-danger:hover { background: #2a0f0f; }

/* EMPTY STATE */
.empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 60px 20px; text-align: center; flex: 1; }
.empty-icon { font-size: 40px; margin-bottom: 16px; opacity: 0.3; }
.empty-title { font-size: 16px; font-weight: 500; color: #fff; margin-bottom: 8px; }
.empty-sub { font-size: 13px; color: #666; margin-bottom: 20px; max-width: 300px; line-height: 1.6; }

/* TABLE */
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table th { padding: 10px 20px; text-align: left; font-size: 11px; color: #666; font-weight: 500; text-transform: uppercase; border-bottom: 1px solid #2a2a2a; background: #1a1a1a; position: sticky; top: 0; }
.data-table td { padding: 12px 20px; border-bottom: 1px solid #1e1e1e; color: #e0e0e0; }
.data-table tr:hover td { background: #1a1a1a; }
.badge { display: inline-flex; padding: 3px 8px; border-radius: 20px; font-size: 11px; font-weight: 500; }
.badge-green { background: #0f2a1e; color: #1D9E75; }
.badge-amber { background: #2a1f0a; color: #d4a017; }
.badge-red { background: #2a0f0f; color: #e24b4a; }