:root {
  --bg: #121212;
  --surface: #1E1E1E;
  --surface-raised: #242424;
  --on-surface: #E1E1E1;
  --primary: #BB86FC;
  --muted: #9A9A9A;
  --danger: #E23F3F;
  --danger-text: #1A1550;
  --border: #2A2A2A;
  --font: "Roboto", "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  background: var(--bg);
  color: var(--on-surface);
  font-family: var(--font);
}

.screen {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

[hidden] {
  display: none !important;
}

#auth-screen {
  justify-content: center;
  padding: 24px;
}

.auth-card {
  width: 100%;
  max-width: 360px;
  text-align: left;
}

.wordmark {
  font-family: var(--font);
  font-weight: 700;
  font-size: 28px;
  margin: 0;
  color: var(--on-surface);
}

.tagline {
  color: var(--muted);
  font-size: 14px;
  margin: 6px 0 28px;
}

.field {
  display: block;
  margin-bottom: 16px;
}

.field span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.field input {
  width: 100%;
  padding: 14px;
  border-radius: 8px;
  border: 1px solid #333;
  background: var(--surface);
  color: var(--on-surface);
  font-family: var(--font);
  font-size: 15px;
  outline: none;
  transition: border-color 0.15s ease;
}

.field input:focus {
  border-color: var(--primary);
}

.btn-primary {
  width: 100%;
  padding: 14px;
  margin-top: 6px;
  border: none;
  border-radius: 999px;
  font-family: var(--font);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #1A1A1A;
  cursor: pointer;
  background: var(--primary);
  transition: filter 0.15s ease;
}

.btn-primary:hover { filter: brightness(1.08); }
.btn-primary:disabled { opacity: 0.6; cursor: default; }

.link-btn {
  margin-top: 20px;
  background: none;
  border: none;
  color: var(--muted);
  font-family: var(--font);
  font-size: 13px;
  cursor: pointer;
  padding: 0;
}

.link-btn span {
  color: var(--primary);
}

.error {
  color: #FF6B6B;
  font-size: 13px;
  margin: -6px 0 14px;
}

.app-shell {
  display: flex;
  height: 100vh;
  width: 100%;
}

.sidebar {
  width: 260px;
  min-width: 260px;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 20px 12px;
}

.sidebar-brand {
  font-weight: 700;
  font-size: 20px;
  padding: 8px 12px 24px;
  color: var(--on-surface);
}

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

.nav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 14px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-item:hover {
  background: var(--surface-raised);
}

.nav-item.active {
  background: var(--surface-raised);
  color: var(--on-surface);
}

.nav-icon {
  font-size: 18px;
  width: 20px;
  text-align: center;
}

.sidebar-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-top: 1px solid var(--border);
}

.mini-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: #1A1A1A;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mini-info {
  font-size: 13px;
  overflow: hidden;
}

.mini-info div:first-child {
  color: var(--on-surface);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.main-panel {
  flex: 1;
  overflow-y: auto;
  padding: 40px 48px;
  max-width: 900px;
}

.view-title {
  font-weight: 700;
  font-size: 26px;
  margin: 0 0 24px;
}

.placeholder-card {
  background: var(--surface);
  border-radius: 12px;
  padding: 24px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  max-width: 560px;
}

.search-input {
  width: 100%;
  max-width: 480px;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--on-surface);
  font-family: var(--font);
  font-size: 15px;
  outline: none;
}

.search-input:focus {
  border-color: var(--primary);
}

.banner {
  width: 100%;
  max-width: 640px;
  height: 160px;
  border-radius: 16px 16px 0 0;
  background: var(--primary);
}

.profile-body {
  max-width: 640px;
}

.avatar-ring {
  width: 96px;
  height: 96px;
  margin: -48px 0 16px 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 700;
  color: #1A1A1A;
  background: #2a2a2a;
  border: 3px solid var(--bg);
}

.info-card {
  background: var(--surface);
  border-radius: 0 0 16px 16px;
  padding: 24px;
}

.info-card h2 {
  font-weight: 700;
  font-size: 22px;
  margin: 0 0 4px;
}

.muted { color: var(--muted); font-size: 14px; margin: 0; }

.btn-danger {
  padding: 14px 32px;
  border: none;
  border-radius: 999px;
  background: var(--danger);
  color: var(--danger-text);
  font-family: var(--font);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
}
