:root {
  --bs-body-font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Noto Sans SC", Arial,
    sans-serif;
  --bs-primary: #4f46e5;
  --bs-primary-rgb: 79, 70, 229;
  --bs-danger: #ef4444;
  --bs-danger-rgb: 239, 68, 68;
  --bs-border-radius: 1rem;
  --bs-border-radius-lg: 1.25rem;
  --bs-border-radius-xl: 1.5rem;
  --bs-border-radius-xxl: 1.75rem;
  --bs-link-color: #4f46e5;
  --bs-link-hover-color: #4338ca;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(1000px circle at 12% 0%, rgba(99, 102, 241, 0.28), transparent 55%),
    radial-gradient(900px circle at 100% 15%, rgba(168, 85, 247, 0.22), transparent 55%),
    radial-gradient(900px circle at 40% 120%, rgba(34, 211, 238, 0.16), transparent 60%),
    linear-gradient(180deg, #f8fafc, #eef2ff);
}

h1 {
  letter-spacing: -0.02em;
}

.app-accent-bar {
  height: 6px;
  background: linear-gradient(135deg, #4f46e5 0%, #a855f7 100%);
}

.app-icon {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, #4f46e5 0%, #a855f7 100%);
  box-shadow: 0 12px 26px rgba(79, 70, 229, 0.22);
}

.app-icon i {
  font-size: 18px;
  line-height: 1;
}

.subtitle {
  color: rgba(71, 85, 105, 0.92);
  margin-bottom: 1.25rem;
}

.form-group {
  margin-bottom: 1rem;
}

.footer {
  margin-top: 1.25rem;
  text-align: center;
  color: rgba(100, 116, 139, 0.92);
}

.container--admin {
  max-width: 1280px;
  margin: 1.5rem auto;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.70);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--bs-border-radius-xxl);
  box-shadow: 0 18px 60px rgba(2, 6, 23, 0.12);
}

@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .container--admin,
  .card,
  .modal-content {
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
  }

  .container--admin {
    background: rgba(255, 255, 255, 0.62);
  }

  .card {
    background: rgba(255, 255, 255, 0.86);
  }

  .modal-content {
    background: rgba(255, 255, 255, 0.92);
  }
}

.section {
  background: rgba(255, 255, 255, 0.90);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--bs-border-radius-xl);
  padding: 1.25rem;
  margin-bottom: 1rem;
  box-shadow: 0 10px 28px rgba(2, 6, 23, 0.06);
}

.section > h2 {
  font-size: 1.05rem;
  margin: 0 0 1rem;
}

.callout {
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--bs-border-radius-lg);
  padding: 1rem;
  color: rgba(71, 85, 105, 0.92);
}

.callout--warning {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.25);
}

code {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 0.75rem;
  background: rgba(99, 102, 241, 0.10);
  border: 1px solid rgba(99, 102, 241, 0.18);
  color: #4338ca;
}

.key-code {
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(245, 158, 11, 0.28);
  color: #9a3412;
  font-weight: 700;
}

.badge {
  background: rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(15, 23, 42, 0.10);
  color: rgba(71, 85, 105, 0.92);
  font-weight: 700;
}

.badge-owner {
  background: rgba(245, 158, 11, 0.14) !important;
  border: 1px solid rgba(245, 158, 11, 0.28);
  color: #92400e !important;
}

.badge-temp {
  background: rgba(168, 85, 247, 0.14) !important;
  border: 1px solid rgba(168, 85, 247, 0.28);
  color: #7e22ce !important;
}

.badge-success {
  background: rgba(16, 185, 129, 0.14) !important;
  border: 1px solid rgba(16, 185, 129, 0.28);
  color: #047857 !important;
}

.badge-error {
  background: rgba(239, 68, 68, 0.12) !important;
  border: 1px solid rgba(239, 68, 68, 0.28);
  color: #b91c1c !important;
}

.btn-primary {
  background-image: linear-gradient(135deg, #4f46e5 0%, #a855f7 100%);
  border: none;
  box-shadow: 0 12px 26px rgba(79, 70, 229, 0.22);
}

.btn-primary:hover {
  filter: brightness(1.02);
  box-shadow: 0 14px 32px rgba(79, 70, 229, 0.26);
}

.btn-danger {
  border: none;
  box-shadow: 0 12px 26px rgba(239, 68, 68, 0.18);
}

.btn-danger:hover {
  box-shadow: 0 14px 32px rgba(239, 68, 68, 0.22);
}

.modal-content {
  border-radius: var(--bs-border-radius-xxl);
}

.modal-header {
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.modal-body {
  color: rgba(15, 23, 42, 0.92);
}

@media (max-width: 640px) {
  .container--admin {
    padding: 1rem;
    margin: 1rem auto;
  }

  .section {
    padding: 1rem;
  }
}
