* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #0f1419;
  --card: #1a2332;
  --border: #2d3a4d;
  --text: #e7ecf3;
  --muted: #8b9cb3;
  --primary: #3b82f6;
  --primary-hover: #2563eb;
  --success: #22c55e;
  --danger: #ef4444;
  --warning: #f59e0b;
  --radius: 10px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
}

a {
  color: var(--primary);
  text-decoration: none;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px;
}

.auth-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  width: 100%;
  max-width: 420px;
}

.card-wide {
  max-width: 1100px;
}

h1, h2, h3 {
  margin-bottom: 16px;
}

.subtitle {
  color: var(--muted);
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 16px;
}

label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 14px;
}

input, select, textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #111827;
  color: var(--text);
  font-size: 14px;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  font-size: 14px;
}

.btn:hover {
  background: var(--primary-hover);
}

.btn-block {
  width: 100%;
}

.btn-secondary {
  background: #334155;
}

.btn-danger {
  background: var(--danger);
}

.btn-sm {
  padding: 6px 10px;
  font-size: 12px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  background: var(--card);
}

.topbar .brand {
  font-weight: 700;
  font-size: 18px;
}

.topbar .actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.plan-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  background: rgba(255, 255, 255, 0.02);
}

.plan-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.plan-price {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
  margin: 8px 0 12px;
}

.plan-meta {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 14px;
  min-height: 64px;
}

.subscription-box {
  border: 1px solid rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.08);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 16px;
}

@media (max-width: 900px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

/* ========== 用户中心侧边栏布局 ========== */
body.user-center {
  background: var(--bg);
  min-height: 100vh;
}

.user-app {
  display: flex;
  min-height: 100vh;
}

.user-sidebar {
  width: 260px;
  flex-shrink: 0;
  background: var(--card);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 200;
  overflow-y: auto;
}

.user-sidebar-brand {
  padding: 20px 20px 12px;
  border-bottom: 1px solid var(--border);
}

.user-brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 17px;
}

.user-brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), #6366f1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: #fff;
  flex-shrink: 0;
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  margin: 12px 12px 8px;
  background: rgba(59, 130, 246, 0.06);
  border: 1px solid rgba(59, 130, 246, 0.15);
  border-radius: var(--radius);
}

.user-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.user-profile-name {
  font-weight: 600;
  font-size: 15px;
  line-height: 1.3;
  word-break: break-all;
}

.user-profile-role {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.user-nav {
  flex: 1;
  padding: 8px 12px;
}

.user-nav-top {
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.user-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px 24px;
}

.user-info-grid > div > div {
  font-size: 15px;
  font-weight: 500;
  margin-top: 4px;
}

.notice-content {
  line-height: 1.8;
  white-space: pre-wrap;
  color: var(--text);
}

.notice-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--muted);
}

.user-nav-group {
  margin-bottom: 16px;
}

.user-nav-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  padding: 0 12px 8px;
}

.user-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--muted);
  margin-bottom: 2px;
  transition: background 0.15s, color 0.15s;
  position: relative;
  font-size: 14px;
}

.user-nav-link:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.user-nav-link.active {
  background: rgba(59, 130, 246, 0.12);
  color: var(--primary);
  font-weight: 600;
}

.user-nav-link.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--primary);
}

.user-nav-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.85;
}

.user-nav-icon svg {
  width: 18px;
  height: 18px;
}

.user-nav-link.active .user-nav-icon {
  opacity: 1;
}

.user-sidebar-foot {
  padding: 12px;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.user-foot-link,
.user-foot-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 12px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 13px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: background 0.15s, color 0.15s;
}

.user-foot-link:hover,
.user-foot-btn:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.user-foot-btn {
  color: #f87171;
}

.user-foot-btn:hover {
  background: rgba(239, 68, 68, 0.08);
  color: #fca5a5;
}

.user-body {
  flex: 1;
  margin-left: 260px;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.user-mobile-bar {
  display: none;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.user-menu-btn {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.user-menu-btn svg {
  width: 20px;
  height: 20px;
}

.user-mobile-title {
  font-weight: 600;
  font-size: 16px;
}

.user-page-header {
  padding: 28px 32px 0;
}

.user-page-title {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 6px;
  line-height: 1.3;
}

.user-page-desc {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}

.user-main {
  padding: 20px 32px 32px;
  min-width: 0;
}

.user-panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
}

.user-panel + .user-panel {
  margin-top: 20px;
}

.user-panel-title {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 16px;
}

.user-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.user-stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.user-stat-card::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.06);
  transform: translate(30%, -30%);
}

.user-stat-label {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
}

.user-stat-value {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
}

.user-stat-value-sm {
  font-size: 18px;
  font-weight: 600;
}

.user-stat-card.accent-green {
  border-color: rgba(34, 197, 94, 0.25);
}

.user-stat-card.accent-green .user-stat-value {
  color: var(--success);
}

.user-quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}

.user-quick-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  color: var(--text);
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
}

.user-quick-card:hover {
  border-color: rgba(59, 130, 246, 0.4);
  background: rgba(59, 130, 246, 0.05);
  transform: translateY(-2px);
}

.user-quick-card h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}

.user-quick-card p {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

.user-sidebar-mask {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 150;
}

@media (max-width: 900px) {
  .user-sidebar {
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.3);
  }

  body.user-sidebar-open .user-sidebar {
    transform: translateX(0);
  }

  body.user-sidebar-open .user-sidebar-mask {
    display: block;
  }

  .user-body {
    margin-left: 0;
  }

  .user-mobile-bar {
    display: flex;
  }

  .user-page-header {
    padding: 20px 16px 0;
  }

  .user-main {
    padding: 16px;
  }

  .user-stats {
    grid-template-columns: 1fr;
  }

  .user-panel {
    padding: 18px;
  }
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.stat-card .num {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  font-size: 14px;
}

th {
  color: var(--muted);
}

.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
}

.badge-success {
  background: rgba(34, 197, 94, 0.15);
  color: var(--success);
}

.badge-danger {
  background: rgba(239, 68, 68, 0.15);
  color: var(--danger);
}

.badge-warning {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
}

.log-table th,
.log-table td {
  vertical-align: top;
}

.log-cell {
  max-width: 160px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.log-cell-wide {
  max-width: 220px;
}

.log-cell-multiline {
  max-width: 180px;
  max-height: 72px;
  overflow: hidden;
  white-space: pre-line;
  font-size: 12px;
  line-height: 1.4;
}

.alert {
  padding: 12px 14px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 14px;
}

.alert-error {
  background: rgba(239, 68, 68, 0.12);
  color: #fecaca;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.alert-success {
  background: rgba(34, 197, 94, 0.12);
  color: #bbf7d0;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.hidden {
  display: none !important;
}

.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.tab {
  padding: 8px 14px;
  border-radius: 8px;
  background: #111827;
  border: 1px solid var(--border);
  cursor: pointer;
  color: var(--muted);
}

.tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.answer-box {
  background: #111827;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  white-space: pre-wrap;
  word-break: break-word;
}

.muted {
  color: var(--muted);
  font-size: 13px;
}

.log-search {
  margin-bottom: 16px;
}

.log-search .inline-form input[type="text"],
.log-search .inline-form input[type="date"] {
  min-width: 140px;
}

.log-search .inline-form input.log-keyword {
  min-width: 220px;
  flex: 1;
}

.log-meta {
  margin-bottom: 12px;
  font-size: 13px;
}

.inline-form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.inline-form input, .inline-form select {
  width: auto;
  min-width: 120px;
}

body.modal-open {
  overflow: hidden;
}

.modal-mask.hidden {
  display: none !important;
}

.modal-error {
  color: var(--danger);
  font-size: 14px;
  margin-bottom: 12px;
  min-height: 0;
}

.modal-error:empty {
  display: none;
}

.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.modal {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  width: 100%;
  max-width: 420px;
}

.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 20px;
}

.btn-warning {
  background: var(--warning);
  color: #111;
}

.action-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* ===== Admin Center Layout ===== */
body.admin-center {
  background: var(--bg);
  min-height: 100vh;
}

.admin-app {
  display: flex;
  min-height: 100vh;
}

.admin-sidebar {
  width: 260px;
  flex-shrink: 0;
  background: var(--card);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 200;
  overflow-y: auto;
}

.admin-sidebar-brand {
  padding: 20px 20px 12px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.admin-brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 17px;
  min-width: 0;
}

.admin-brand-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: #fff;
  flex-shrink: 0;
}

.admin-brand-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.25);
  padding: 3px 8px;
  border-radius: 999px;
  flex-shrink: 0;
}

.admin-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  margin: 12px 12px 8px;
  background: rgba(245, 158, 11, 0.06);
  border: 1px solid rgba(245, 158, 11, 0.15);
  border-radius: var(--radius);
}

.admin-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b, #dc2626);
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.admin-profile-name {
  font-weight: 600;
  font-size: 15px;
  line-height: 1.3;
  word-break: break-all;
}

.admin-profile-role {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.admin-nav {
  flex: 1;
  padding: 8px 12px;
}

.admin-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--muted);
  margin-bottom: 2px;
  transition: background 0.15s, color 0.15s;
  position: relative;
  font-size: 14px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}

.admin-nav-link:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.admin-nav-link.active {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
  font-weight: 600;
}

.admin-nav-link.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: #f59e0b;
}

.admin-nav-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.85;
}

.admin-nav-icon svg {
  width: 18px;
  height: 18px;
  max-width: 18px;
  max-height: 18px;
  display: block;
  flex-shrink: 0;
}

.admin-sidebar svg {
  max-width: 100%;
}

.admin-nav-link.active .admin-nav-icon {
  opacity: 1;
}

.admin-sidebar-foot {
  padding: 12px;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.admin-foot-link,
.admin-foot-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 12px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 13px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: background 0.15s, color 0.15s;
  text-decoration: none;
}

.admin-foot-link:hover,
.admin-foot-btn:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.admin-foot-btn {
  color: #f87171;
}

.admin-foot-btn:hover {
  background: rgba(239, 68, 68, 0.08);
  color: #fca5a5;
}

.admin-body {
  flex: 1;
  margin-left: 260px;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.admin-mobile-bar {
  display: none;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.admin-menu-btn {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.admin-menu-btn svg {
  width: 20px;
  height: 20px;
}

.admin-mobile-title {
  font-weight: 600;
  font-size: 16px;
}

.admin-page-header {
  padding: 28px 32px 0;
}

.admin-page-title {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 6px;
  line-height: 1.3;
}

.admin-page-desc {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}

.admin-main {
  padding: 20px 32px 32px;
  min-width: 0;
}

.admin-panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
}

.admin-panel + .admin-panel {
  margin-top: 20px;
}

.admin-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.admin-panel-title {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 16px;
}

.admin-panel-head .admin-panel-title {
  margin-bottom: 0;
}

.admin-panel-tip {
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 16px;
  line-height: 1.6;
}

.admin-filter-bar {
  margin-bottom: 16px;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.admin-stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.admin-stat-card::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.06);
  transform: translate(30%, -30%);
}

.admin-stat-label {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
}

.admin-stat-value {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
}

.admin-stat-card.accent-blue {
  border-color: rgba(59, 130, 246, 0.25);
}

.admin-stat-card.accent-blue .admin-stat-value {
  color: var(--primary);
}

.admin-stat-card.accent-green {
  border-color: rgba(34, 197, 94, 0.25);
}

.admin-stat-card.accent-green .admin-stat-value {
  color: var(--success);
}

.admin-quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}

.admin-quick-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  color: var(--text);
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}

.admin-quick-card:hover {
  border-color: rgba(245, 158, 11, 0.4);
  background: rgba(245, 158, 11, 0.05);
  transform: translateY(-2px);
}

.admin-quick-card h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}

.admin-quick-card p {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

.admin-form-section {
  font-size: 15px;
  font-weight: 600;
  margin: 24px 0 12px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.admin-form-section:first-of-type {
  border-top: none;
  padding-top: 0;
  margin-top: 8px;
}

.admin-form-actions {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.admin-settings-form .form-group textarea {
  min-height: 100px;
}

.admin-sidebar-mask {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 150;
}

@media (max-width: 900px) {
  .admin-sidebar {
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.3);
  }

  body.admin-sidebar-open .admin-sidebar {
    transform: translateX(0);
  }

  body.admin-sidebar-open .admin-sidebar-mask {
    display: block;
  }

  .admin-body {
    margin-left: 0;
  }

  .admin-mobile-bar {
    display: flex;
  }

  .admin-page-header {
    padding: 20px 16px 0;
  }

  .admin-main {
    padding: 16px;
  }

  .admin-stats {
    grid-template-columns: 1fr;
  }

  .admin-panel {
    padding: 18px;
  }
}
