/* 用户中心门户 — 与运营 / 管理后台同族视觉 */

:root {
  /* GitHub 暗色对齐（与主站管理端同族） */
  --bg-page: #0d1117;
  --bg-card: #161b22;
  --bg-card2: #21262d;
  --bg-input: #21262d;
  --border: #30363d;
  --border-hover: #58a6ff;
  --text-1: #e6edf3;
  --text-2: #8b949e;
  --text-3: #6e7681;
  --accent: #58a6ff;
  --accent-soft: rgba(88, 166, 255, 0.12);
  --green: #3fb950;
  --green-soft: rgba(63, 185, 80, 0.12);
  --yellow: #d29922;
  --yellow-soft: rgba(210, 153, 34, 0.12);
  --red: #f85149;
  --red-soft: rgba(248, 81, 73, 0.12);
  --purple: #a371f7;
  --purple-soft: rgba(163, 113, 247, 0.14);
  --radius: 12px;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --focus-ring: 0 0 0 3px rgba(88, 166, 255, 0.25);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font);
  background: var(--bg-page);
  color: var(--text-1);
  min-height: 100vh;
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 90% 55% at 100% -10%, rgba(88, 166, 255, 0.09), transparent 55%),
    radial-gradient(ellipse 70% 45% at 0% 110%, rgba(163, 113, 247, 0.06), transparent 50%),
    linear-gradient(180deg, #0d1117 0%, #161b22 100%);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.electron-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(88, 166, 255, 0.25);
  vertical-align: middle;
}

.agent-cred-form {
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 14px;
}

.agent-cred-form .form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 640px) {
  .agent-cred-form .form-row-2 {
    grid-template-columns: 1fr;
  }
}

.field-hint {
  font-size: 11.5px;
  color: var(--text-3);
  line-height: 1.5;
  margin-top: 10px;
}

.kbd {
  font-family: ui-monospace, monospace;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--bg-page);
  border: 1px solid var(--border);
  color: var(--text-2);
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

.sidebar {
  width: 240px;
  flex-shrink: 0;
  background: linear-gradient(180deg, var(--bg-card) 0%, #1c2128 100%);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 100;
  transition: transform 0.25s ease;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.2);
}

.sidebar-brand {
  padding: 22px 20px 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-brand .icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent-soft), transparent);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 15px;
}

.sidebar-brand .name {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-1);
}

.sidebar-brand .tagline {
  font-size: 11px;
  color: var(--text-3);
  margin-top: 3px;
  font-weight: 500;
}

.sidebar-nav {
  flex: 1;
  padding: 14px 12px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  color: var(--text-2);
  font-size: 13.5px;
  font-weight: 500;
  transition: all 0.15s;
  cursor: pointer;
  background: none;
  text-decoration: none;
  width: 100%;
  border: 1px solid transparent;
}

.nav-item i {
  width: 18px;
  text-align: center;
  font-size: 14px;
}

.nav-item:hover {
  background: var(--accent-soft);
  color: var(--text-1);
  text-decoration: none;
  border-color: rgba(88, 166, 255, 0.2);
}

.nav-item.active {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
  border-color: rgba(88, 166, 255, 0.35);
}

/* QQ 群入口是 <button>，重置原生按钮样式以与 <a class="nav-item"> 视觉一致 */
.nav-item--qq {
  appearance: none;
  -webkit-appearance: none;
  font-family: inherit;
  text-align: left;
  margin: 0;
}

.sidebar-announce {
  margin: 0 12px 10px;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid rgba(59, 130, 246, 0.22);
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.1), rgba(59, 130, 246, 0.04));
  max-height: 220px;
  overflow-y: auto;
}
.sidebar-announce__head {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: #60a5fa;
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}
.sidebar-announce__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sidebar-announce__item {
  padding: 10px 10px 8px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.18);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.sidebar-announce__item:hover {
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.28);
}
.sidebar-announce__item-text {
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-2);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sidebar-announce__item-more {
  margin-top: 6px;
  font-size: 11px;
  color: #60a5fa;
  display: flex;
  align-items: center;
  gap: 4px;
}
.sidebar-announce__item-more i {
  font-size: 9px;
}
.sidebar-announce__item.announce-critical {
  border-color: rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.08);
}
.sidebar-announce__item.announce-critical .sidebar-announce__item-more,
.sidebar-announce__item.announce-critical + .sidebar-announce__head {
  color: #f87171;
}
.sidebar-announce__item.announce-warning {
  border-color: rgba(251, 191, 36, 0.3);
  background: rgba(251, 191, 36, 0.08);
}
.sidebar-announce__item.announce-warning .sidebar-announce__item-more {
  color: var(--yellow);
}

.sidebar-footer {
  padding: 16px 18px;
  border-top: 1px solid var(--border);
  font-size: 11px;
  color: var(--text-3);
  line-height: 1.5;
}
.sidebar-footer .contact-list {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.sidebar-footer .contact-list i { width: 14px; text-align: center; margin-right: 4px; }
.sidebar-footer .contact-list a { color: var(--text-2); text-decoration: none; }
.sidebar-footer .contact-list a:hover { color: var(--accent); }

.main-area {
  margin-left: 240px;
  flex: 1;
  min-width: 0;
}

.top-bar {
  height: 56px;
  background: rgba(22, 27, 34, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 50;
}

.top-bar .page-title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.top-bar .user-area {
  display: flex;
  align-items: center;
  gap: 14px;
}

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
  border: 1px solid var(--border);
}

.username {
  font-size: 13px;
  font-weight: 600;
}

.btn-refresh {
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  border: none;
  color: #fff;
  padding: 7px 18px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
  text-decoration: none;
}

.btn-refresh:hover {
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
  transform: translateY(-1px);
}

.btn-refresh i {
  font-size: 11px;
}

.btn-refresh:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-refresh.is-spinning i {
  animation: portal-spin 0.9s linear infinite;
}

@keyframes portal-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.portal-refresh-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-1);
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 13px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none;
}

.portal-refresh-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.btn-logout {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-2);
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-logout:hover {
  border-color: var(--red);
  color: var(--red);
}

.page-body {
  padding: 28px 32px 48px;
  max-width: 1100px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: border-color 0.2s;
}

.card:hover {
  border-color: var(--border-hover);
}

.card-header {
  padding: 18px 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-header h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-1);
}

.card-body {
  padding: 16px 22px 22px;
}

.card + .card {
  margin-top: 18px;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.stat-box {
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  transition: transform 0.2s, border-color 0.2s;
}

.stat-box:hover {
  transform: translateY(-2px);
  border-color: var(--border-hover);
}

.stat-box .lbl {
  font-size: 11px;
  color: var(--text-3);
  margin-bottom: 6px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stat-box .val {
  font-size: 24px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.stat-box .sub {
  font-size: 11px;
  color: var(--text-3);
  margin-top: 4px;
}

.c-green {
  color: var(--green);
}
.c-yellow {
  color: var(--yellow);
}
.c-red {
  color: var(--red);
}
.c-blue {
  color: var(--accent);
}
.c-purple {
  color: var(--purple);
}
.c-muted {
  color: var(--text-3);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.badge-green {
  background: var(--green-soft);
  color: var(--green);
}
.badge-yellow {
  background: var(--yellow-soft);
  color: var(--yellow);
}
.badge-red {
  background: var(--red-soft);
  color: var(--red);
}
.badge-blue {
  background: var(--accent-soft);
  color: var(--accent);
}
.badge-purple {
  background: var(--purple-soft);
  color: var(--purple);
}
.badge-gray {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-2);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.15s;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(180deg, #79b8ff 0%, var(--accent) 100%);
  color: #0d1117;
}

.btn-primary:hover {
  filter: brightness(1.06);
  text-decoration: none;
}

.btn-ghost {
  background: var(--bg-card2);
  color: var(--text-2);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--border-hover);
  color: var(--text-1);
  text-decoration: none;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
}

.btn-danger {
  background: var(--red-soft);
  color: var(--red);
  border: 1px solid rgba(251, 113, 133, 0.25);
}

.btn-danger:hover {
  background: var(--red);
  color: #fff;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--text-1);
  font-size: 13px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.form-control:focus {
  border-color: var(--accent);
  box-shadow: var(--focus-ring);
}

select.form-control {
  cursor: pointer;
}

.tbl-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

thead th {
  padding: 11px 14px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border);
}

tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  vertical-align: middle;
}

tbody tr:last-child td {
  border-bottom: none;
}

tbody tr:hover td {
  background: rgba(88, 166, 255, 0.05);
}

.alert {
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 13px;
  margin-bottom: 16px;
}

.alert-info {
  background: var(--accent-soft);
  border: 1px solid rgba(88, 166, 255, 0.28);
  color: var(--accent);
}

.alert-success {
  background: var(--green-soft);
  border: 1px solid rgba(63, 185, 80, 0.28);
  color: var(--green);
}

.alert-warn {
  background: var(--yellow-soft);
  border: 1px solid rgba(210, 153, 34, 0.28);
  color: var(--yellow);
}

.alert-error {
  background: var(--red-soft);
  border: 1px solid rgba(248, 81, 73, 0.28);
  color: var(--red);
}

.copy-block {
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-family: "JetBrains Mono", "Courier New", monospace;
  font-size: 12.5px;
  word-break: break-all;
}

.copy-block .copy-btn {
  flex-shrink: 0;
  background: none;
  border: 1px solid var(--border);
  color: var(--text-2);
  padding: 5px 12px;
  border-radius: 7px;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.15s;
}

.copy-block .copy-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.copy-block .copy-btn.copied {
  border-color: var(--green);
  color: var(--green);
}

.pool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

.pool-card {
  background: var(--bg-card2);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  cursor: pointer;
  transition: all 0.15s;
  position: relative;
  display: flex;
  flex-direction: column;
}

.pool-card:hover {
  border-color: var(--border-hover);
}

.pool-card.selected {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.pool-card.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pool-card .pool-name {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
}

.pool-card .pool-meta {
  font-size: 12px;
  color: var(--text-2);
  line-height: 1.85;
}

.pool-card .pool-check {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: transparent;
  transition: all 0.15s;
}

.pool-card.selected .pool-check {
  background: var(--accent);
  border-color: var(--accent);
  color: #0d1117;
}

/* 首页 Agent 状态条 */
.agent-status-bar {
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.agent-status-bar .agent-status-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.agent-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--text-3);
  flex-shrink: 0;
}

.divider {
  height: 1px;
  background: var(--border);
  margin: 22px 0;
}

.mobile-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-1);
  font-size: 16px;
  cursor: pointer;
  padding: 6px 12px;
}

.announce-bar {
  background: linear-gradient(90deg, var(--yellow-soft), transparent);
  border-bottom: 1px solid rgba(251, 191, 36, 0.2);
  padding: 8px 28px;
  font-size: 12.5px;
  color: var(--yellow);
  display: flex;
  align-items: center;
  gap: 10px;
}
/* 顶部公告条：统一黄色字体（醒目提示，覆盖各等级配色） */
#announceContainer .announce-bar,
#announceContainer .announce-bar.announce-info,
#announceContainer .announce-bar.announce-warning,
#announceContainer .announce-bar.announce-critical {
  color: #fbbf24;
}
#announceContainer .announce-bar__more {
  color: #fbbf24;
}
.announce-bar--clickable {
  cursor: pointer;
  user-select: none;
  transition: filter 0.15s;
}
.announce-bar--clickable:hover {
  filter: brightness(1.08);
}
.announce-bar__summary {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.announce-bar__more {
  flex-shrink: 0;
  font-size: 11.5px;
  opacity: 0.85;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.announce-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
}
.announce-modal.is-open {
  display: flex;
}
.announce-modal__panel {
  width: min(560px, 100%);
  max-height: min(72vh, 520px);
  overflow: auto;
  background: var(--bg-2, #1a1d24);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.1));
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}
.announce-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border, rgba(255, 255, 255, 0.08));
}
.announce-modal__title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-1, #f1f5f9);
}
.announce-modal__close {
  border: none;
  background: transparent;
  color: var(--text-3, #94a3b8);
  font-size: 18px;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
  border-radius: 6px;
}
.announce-modal__close:hover {
  color: var(--text-1, #f1f5f9);
  background: rgba(255, 255, 255, 0.06);
}
.announce-modal__body {
  padding: 16px 18px 18px;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--text-2, #cbd5e1);
  white-space: pre-wrap;
  word-break: break-word;
}

/* 版本更新弹窗 */
.update-modal__body {
  padding: 16px 18px 18px;
}
.update-modal__message {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--text-2, #cbd5e1);
  white-space: pre-wrap;
  margin: 0 0 14px;
}
.update-modal__progress-wrap {
  margin-bottom: 14px;
}
.update-modal__progress-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.update-modal__progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), #79c0ff);
  transition: width 0.2s ease;
}
.update-modal__progress-text {
  margin-top: 6px;
  font-size: 12px;
  color: var(--text-3);
  text-align: right;
}
.update-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.update-modal__actions .btn-primary {
  padding: 8px 18px;
  border-radius: 8px;
  border: none;
  background: var(--accent);
  color: #0d1117;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
}
.update-modal__actions .btn-primary:hover {
  filter: brightness(1.08);
}
.announce-bar.announce-critical {
  background: linear-gradient(90deg, rgba(239, 68, 68, 0.18), transparent);
  border-bottom: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
}
.announce-bar.announce-warning {
  background: linear-gradient(90deg, rgba(251, 191, 36, 0.18), transparent);
  border-bottom: 1px solid rgba(251, 191, 36, 0.25);
  color: var(--yellow);
}
.announce-bar.announce-info {
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.16), transparent);
  border-bottom: 1px solid rgba(59, 130, 246, 0.25);
  color: #60a5fa;
}

@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .main-area {
    margin-left: 0;
  }

  .mobile-toggle {
    display: block;
  }

  .page-body {
    padding: 18px 16px 40px;
  }
}
