:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0d1117;
  --bg2: #161b22;
  --bg3: #1c2333;
  --bg4: #21262d;
  --surface: #0d1117;
  --surface-soft: #161b22;
  --surface-strong: #1c2333;
  --surface-alt: #111820;
  --border: #30363d;
  --border2: #3d4451;
  --text: #e6edf3;
  --text2: #8b949e;
  --text3: #6e7681;
  --accent: #f97316;
  --accent2: #fb923c;
  --accentbg: #1c1208;
  --shadow: rgba(0, 0, 0, 0.32);
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f8fafc;
  --bg2: #ffffff;
  --bg3: #f1f5f9;
  --bg4: #e2e8f0;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --surface-strong: #f1f5f9;
  --surface-alt: #eef2ff;
  --border: #d1d5db;
  --border2: #cbd5e1;
  --text: #0f172a;
  --text2: #475569;
  --text3: #64748b;
  --accent: #ea580c;
  --accent2: #fb923c;
  --accentbg: #ffedd5;
  --shadow: rgba(15, 23, 42, 0.08);
}

body {
  transition: background-color 0.25s ease, color 0.25s ease;
}

body[data-theme="light"] {
  background: linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
}

body[data-theme="dark"] {
  background: linear-gradient(180deg, #0d1117 0%, #111827 100%);
}

.account-menu {
  position: relative;
}

.account-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: 220px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
  padding: 12px;
  display: none;
  z-index: 120;
}

.account-dropdown.open {
  display: block;
}

.account-card {
  padding: 14px 12px 10px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 10px;
}

.account-name {
  font-weight: 700;
  color: var(--text);
}

.account-username {
  color: var(--text2);
  font-size: 13px;
  margin-top: 4px;
}

.dropdown-item {
  display: block;
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  color: var(--text);
  padding: 10px 12px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 13px;
  margin-bottom: 4px;
}

.dropdown-item:hover,
.dropdown-item.logout-link:hover {
  background: var(--bg3);
}

.logout-link {
  text-decoration: none;
  color: var(--text);
}

.account-toggle {
  min-width: 42px;
  min-height: 42px;
}

.modal .form-group input[readonly] {
  background: var(--bg3);
  color: var(--text);
}
