.vp-admin-discord { margin-top: 4px; text-decoration: none; }
.vp-admin-discord:hover { color: #fff; }

.vp-admin .vp-page-inner { max-width: 880px; }
.vp-admin-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}
.vp-admin-top h1 { margin: 0; }
.vp-admin-sub { margin: 6px 0 0; color: var(--vp-muted); font-weight: 600; font-size: .9rem; }
.vp-admin-me {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 8px 8px 10px;
  border: 1px solid var(--vp-line);
  border-radius: 16px;
  background: var(--vp-surface);
}
.vp-admin-me img { border-radius: 12px; }
.vp-admin-me b { display: block; line-height: 1.1; }
.vp-admin-me small { color: var(--vp-muted); font-weight: 700; font-size: .76rem; }
.vp-admin-me form { margin: 0 0 0 6px; }

.vp-admin-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}
.vp-admin-stat {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--vp-line);
  border-radius: 16px;
  background: var(--vp-surface);
}
.vp-admin-stat i {
  grid-row: span 2;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--vp-orange);
  background: var(--vp-orange-soft);
}
.vp-admin-stat b { font-family: var(--vp-font-title, inherit); font-size: 1.4rem; line-height: 1; }
.vp-admin-stat span { color: var(--vp-muted); font-weight: 700; font-size: .78rem; }

.vp-admin-ok {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid #3fae6a;
  background: rgba(63, 174, 106, .14);
  color: #7ee0a3;
  font-weight: 700;
  font-size: .9rem;
}
body:not([data-bs-theme="dark"]) .vp-admin-ok { color: #1d7a43; }

.vp-admin-form { display: grid; gap: 18px; }
.vp-admin-card h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 6px;
  font-size: 1.3rem;
}
.vp-admin-card h2 .bi { color: var(--vp-orange); }
.vp-admin-card .card-body { padding: 24px; }
.vp-admin-card .vp-auth-field:last-of-type { margin-bottom: 4px; }
.vp-admin-help { margin: 0 0 16px; color: var(--vp-muted); font-weight: 600; font-size: .86rem; }
.vp-admin-card .vp-auth-field + .vp-admin-help { margin: 8px 0 0; }

.vp-auth-field select,
.vp-auth-field textarea {
  flex: 1;
  min-width: 0;
  padding: 13px 14px 13px 8px;
  border: 0;
  background: transparent;
  color: var(--vp-ink);
  font-weight: 700;
  outline: none;
}
.vp-auth-field select option { color: #1a1020; }
.vp-admin-textarea textarea { padding-left: 15px; resize: vertical; min-height: 70px; }
.vp-auth-field textarea::placeholder { color: var(--vp-muted); opacity: .75; font-weight: 600; }

.vp-admin-themes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}
.vp-admin-theme {
  position: relative;
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--vp-line);
  border-radius: 16px;
  background: var(--vp-surface-2);
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s, transform .15s;
}
.vp-admin-theme:hover { transform: translateY(-2px); }
.vp-admin-theme input { position: absolute; opacity: 0; pointer-events: none; }
.vp-admin-theme:has(input:checked) { border-color: var(--vp-orange); box-shadow: 0 0 0 3px rgba(255, 122, 26, .22); }
.vp-admin-theme:has(input:focus-visible) { outline: 2px solid var(--vp-orange); outline-offset: 2px; }
.vp-admin-swatch {
  display: flex;
  height: 54px;
  overflow: hidden;
  border-radius: 12px;
}
.vp-admin-swatch i { flex: 1; }
.vp-admin-theme-halloween .vp-admin-swatch i:nth-child(1) { background: #1a0d24; }
.vp-admin-theme-halloween .vp-admin-swatch i:nth-child(2) { background: #6d2fa0; }
.vp-admin-theme-halloween .vp-admin-swatch i:nth-child(3) { background: #ff7a1a; }
.vp-admin-theme-noel .vp-admin-swatch i:nth-child(1) { background: #123047; }
.vp-admin-theme-noel .vp-admin-swatch i:nth-child(2) { background: #e23b4a; }
.vp-admin-theme-noel .vp-admin-swatch i:nth-child(3) { background: #e0b132; }
.vp-admin-theme-classique .vp-admin-swatch i:nth-child(1) { background: #fbf4e4; }
.vp-admin-theme-classique .vp-admin-swatch i:nth-child(2) { background: #2f8f55; }
.vp-admin-theme-classique .vp-admin-swatch i:nth-child(3) { background: #f0a43a; }
.vp-admin-theme-text b { display: block; }
.vp-admin-theme-text small { display: block; color: var(--vp-muted); font-weight: 600; font-size: .78rem; line-height: 1.35; }
.vp-admin-tick {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--vp-orange);
  opacity: 0;
  transform: scale(.6);
  transition: opacity .2s, transform .2s;
}
.vp-admin-theme:has(input:checked) .vp-admin-tick { opacity: 1; transform: none; }

.vp-admin-actions { display: flex; justify-content: flex-end; }
.vp-admin-actions .vp-auth-submit { width: auto; min-width: 200px; }

@media (max-width: 767.98px) {
  .vp-admin-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vp-admin-themes { grid-template-columns: 1fr; }
  .vp-admin-actions .vp-auth-submit { width: 100%; }
}
