:root {
  --bg: #050816;
  --bg-card: #0c1020;
  --bg-soft: #12172b;
  --accent: #5b8dff;
  --accent-soft: rgba(91, 141, 255, 0.14);
  --text: #f9fafb;
  --text-muted: #9ca3af;
  --border: rgba(148, 163, 184, 0.35);
  --radius: 12px;
  --radius-lg: 18px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: "Inter", system-ui, sans-serif;
  background: radial-gradient(circle at top, #111827 0, #020617 48%, #000 100%);
  color: var(--text);
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }

.cabinet-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 16px;
}

.cabinet-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px);
  background: linear-gradient(to bottom, rgba(3,7,18,0.9), rgba(3,7,18,0.6));
  border-bottom: 1px solid var(--border);
}

.cabinet-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.cabinet-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.cabinet-logo__icon {
  width: 32px;
  height: 32px;
  border-radius: 11px;
  background: linear-gradient(135deg, #22c55e, #2563eb);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
}

.cabinet-nav {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
}

.cabinet-nav a {
  color: var(--text-muted);
  padding: 6px 10px;
  border-radius: 999px;
  transition: color 0.2s, background 0.2s;
}

.cabinet-nav a:hover { color: var(--text); background: rgba(15,23,42,0.7); }

.cabinet-user {
  color: var(--text-muted);
  font-size: 13px;
  padding: 0 6px;
}

/* Login page */
.cabinet-main {
  padding: 48px 0 64px;
}

.cabinet-form-wrap {
  max-width: 400px;
  margin: 0 auto;
}

.login-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: 0 18px 45px rgba(0,0,0,0.3);
}

.login-card__title { font-size: 22px; margin: 0 0 6px; }

.login-card__subtitle { color: var(--text-muted); font-size: 14px; margin: 0 0 22px; }

.login-form .form-group { margin-bottom: 14px; }

.login-form label { display: block; font-size: 13px; margin-bottom: 5px; }

.login-form input[type="email"],
.login-form input[type="password"] {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(55,65,81,0.9);
  background: rgba(15,23,42,0.85);
  color: var(--text);
  font-size: 14px;
  outline: none;
}

.login-form input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(91, 141, 255, 0.4);
}

.form-error {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: #fca5a5;
}

.form-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 14px;
  color: var(--text-muted);
  cursor: pointer;
}

.form-check input { width: auto; }

.form-note {
  margin-top: 12px;
  font-size: 12px;
  color: var(--text-muted);
}

.btn {
  border: none;
  cursor: pointer;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.btn--primary {
  background: linear-gradient(135deg, #4f46e5, #22c55e);
  color: white;
}

.btn--primary:hover { transform: translateY(-1px); }

.btn--ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.btn--ghost:hover { color: var(--text); background: rgba(15,23,42,0.7); }

.btn--outline {
  background: rgba(15,23,42,0.8);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn--outline:hover { background: rgba(15,23,42,0.95); }

.btn--full { width: 100%; }

.btn--sm { padding: 6px 12px; font-size: 13px; }

/* Dashboard */
.cabinet-dashboard { padding: 32px 0 48px; }

.dashboard-title { font-size: 24px; margin: 0 0 28px; }

.dashboard-section {
  margin-bottom: 32px;
}

.dashboard-section__title { font-size: 17px; margin: 0 0 8px; }

.dashboard-section__subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0 0 14px;
}

.profile-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.profile-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(148,163,184,0.15);
}

.profile-row:last-child { border-bottom: none; }

.profile-label { color: var(--text-muted); font-size: 14px; }

.profile-value { font-size: 14px; }

.placeholder-card {
  background: var(--bg-card);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  color: var(--text-muted);
}

.placeholder-card p { margin: 0 0 12px; }

.links-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.links-list li { margin-bottom: 8px; }

.links-list a {
  color: var(--accent);
  font-size: 14px;
}

.links-list a:hover { text-decoration: underline; }

.cabinet-footer {
  padding: 20px 0;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
}

.cabinet-footer a:hover { color: var(--text); }
