@font-face {
  font-family: Chill;
  src: url("/assets/fonts/ChillRoundM.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #090d16;
  color: #f1f5f9;
  font:
    15px/1.6 Chill,
    "PingFang SC",
    "Microsoft YaHei",
    sans-serif;
}
main {
  max-width: 960px;
  margin: 40px auto 60px;
  padding: 0 24px;
}
a {
  color: #38bdf8;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
header {
  border-bottom: 1px solid #1e293b;
  padding-bottom: 20px;
  margin-bottom: 28px;
}
header nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}
header nav .links {
  display: flex;
  gap: 16px;
}
h1 {
  font-size: 28px;
  font-weight: 600;
  margin: 20px 0 6px;
  color: #f8fafc;
}
header p,
.meta {
  color: #94a3b8;
  font-size: 13.5px;
  margin: 0;
}
.status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #111827;
  border: 1px solid #1f2937;
  border-radius: 10px;
  padding: 14px 20px;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 12px;
}
.status-indicator {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}
.pulse-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #94a3b8;
  transition: all 0.3s;
}
.pulse-dot.running {
  background: #22c55e;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.6);
}
.pulse-dot.cooldown {
  background: #f59e0b;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.6);
}
.pulse-dot.stopped {
  background: #ef4444;
}
.status-meta {
  display: flex;
  gap: 20px;
  font-size: 13px;
  color: #94a3b8;
}
.status-meta strong {
  color: #f1f5f9;
}
.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 32px;
}
.card {
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 12px;
  padding: 24px;
}
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 18px;
  border-bottom: 1px solid #1e293b;
  padding-bottom: 14px;
}
.card-title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #e2e8f0;
}
.card-desc {
  margin: 4px 0 0;
  font-size: 13px;
  color: #94a3b8;
}
.form-group {
  margin-bottom: 18px;
}
.form-group:last-child {
  margin-bottom: 0;
}
.form-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 6px;
  color: #cbd5e1;
}
.form-hint {
  font-size: 12.5px;
  color: #64748b;
  margin-top: 4px;
}
.form-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
input[type="number"],
input[type="text"],
select {
  background: #1e293b;
  border: 1px solid #334155;
  color: #f8fafc;
  padding: 8px 12px;
  border-radius: 6px;
  font-family: inherit;
  font-size: 14px;
  transition: border-color 0.15s;
}
input[type="number"]:focus,
input[type="text"]:focus,
select:focus {
  outline: none;
  border-color: #38bdf8;
}
.input-sm {
  width: 90px;
  text-align: center;
}
.input-md {
  width: 140px;
}
.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}
.checkbox-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #38bdf8;
  cursor: pointer;
}
.tier-item {
  background: #1e293b55;
  border: 1px solid #33415555;
  border-radius: 8px;
  padding: 14px 18px;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.tier-info h4 {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 600;
  color: #f1f5f9;
}
.tier-info p {
  margin: 0;
  font-size: 12.5px;
  color: #94a3b8;
}
.actions-bar {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
  position: sticky;
  bottom: 20px;
  background: #090d16cc;
  backdrop-filter: blur(8px);
  padding: 16px;
  border-radius: 10px;
  border: 1px solid #1e293b;
}
button {
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
  border: 1px solid transparent;
}
.btn-primary {
  background: #0284c7;
  color: #fff;
}
.btn-primary:hover:not(:disabled) {
  background: #0369a1;
}
.btn-secondary {
  background: #1e293b;
  color: #e2e8f0;
  border-color: #334155;
}
.btn-secondary:hover:not(:disabled) {
  background: #334155;
}
button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.toast {
  position: fixed;
  top: 24px;
  right: 24px;
  background: #1e293b;
  border: 1px solid #334155;
  color: #f8fafc;
  padding: 12px 20px;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 1000;
  transform: translateY(-20px);
  opacity: 0;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.toast.show {
  transform: translateY(0);
  opacity: 1;
}
.toast.success {
  border-color: #22c55e;
}
.toast.error {
  border-color: #ef4444;
}

/* Contribution Review in Settings */
.contrib-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.contrib-empty {
  text-align: center;
  padding: 32px 16px;
  color: #64748b;
  font-size: 14px;
}
.contrib-item {
  background: #1e293b66;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.contrib-info {
  flex: 1;
  min-width: 260px;
}
.contrib-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.contrib-title {
  font-size: 15px;
  font-weight: 600;
  color: #f8fafc;
}
.contrib-meta {
  display: flex;
  gap: 12px;
  font-size: 12.5px;
  color: #94a3b8;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.contrib-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.contrib-security {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  background: rgba(34, 197, 94, 0.12);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.3);
  padding: 2px 8px;
  border-radius: 4px;
}
.contrib-netdisk {
  margin-top: 6px;
  background: rgba(2, 132, 199, 0.12);
  border: 1px solid rgba(2, 132, 199, 0.35);
  color: #38bdf8;
  font-size: 13px;
  padding: 6px 10px;
  border-radius: 4px;
  word-break: break-all;
}
.contrib-desc {
  font-size: 12.5px;
  color: #cbd5e1;
  margin-top: 6px;
  background: #0f172a66;
  padding: 6px 10px;
  border-radius: 4px;
}
.contrib-actions {
  display: flex;
  gap: 8px;
}
.btn-approve {
  background: #059669;
  color: #fff;
  border: none;
}
.btn-approve:hover:not(:disabled) {
  background: #047857;
}
.btn-reject {
  background: #334155;
  color: #f87171;
  border: 1px solid #475569;
}
.btn-reject:hover:not(:disabled) {
  background: #dc2626;
  color: #fff;
}
@media (max-width: 640px) {
  .tier-item {
    flex-direction: column;
    align-items: flex-start;
  }
  .actions-bar {
    flex-direction: column;
  }
  .actions-bar button {
    width: 100%;
  }
}
