.admin-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.admin-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
}

.admin-card-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
}

.admin-card-icon.users {
  background: rgba(66, 129, 119, 0.15);
  color: var(--primary-green);
}

.admin-card-icon.posts {
  background: rgba(185, 167, 121, 0.15);
  color: var(--gold);
}

.admin-card-icon.comments {
  background: rgba(107, 31, 42, 0.15);
  color: var(--accent-red);
}

.admin-card-icon.revenue {
  background: rgba(66, 129, 119, 0.15);
  color: var(--primary-green);
}

.admin-card-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--dark-gray);
  margin-bottom: var(--space-xs);
}

.admin-card-label {
  color: var(--text-gray);
  font-size: 0.9rem;
}

.storage-card {
  border: 1px solid rgba(0, 38, 35, 0.08);
  background:
    radial-gradient(circle at top left, rgba(66, 129, 119, 0.08), transparent 42%),
    linear-gradient(180deg, #ffffff 0%, #fbfcfc 100%);
}

.storage-card-wrap {
  margin-bottom: var(--space-xl);
}

.server-health-wrap {
  margin-bottom: var(--space-xl);
}

.server-health-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-lg);
}

.server-health-card .storage-card-head {
  align-items: flex-start;
}

.server-health-updated {
  color: var(--text-gray);
  font-size: 0.8rem;
  white-space: nowrap;
}

.server-health-body {
  grid-template-columns: minmax(160px, 190px) minmax(0, 1fr);
}

.storage-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.storage-card-title {
  margin: 0 0 6px;
  color: var(--dark-gray);
  font-size: 1.2rem;
  font-weight: 700;
}

.storage-card-subtitle {
  margin: 0;
  color: var(--text-gray);
  font-size: 0.9rem;
  line-height: 1.6;
}

.storage-card-body {
  display: grid;
  grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
  gap: var(--space-xl);
  align-items: center;
}

.storage-gauge {
  --storage-progress: 0deg;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background:
    conic-gradient(var(--primary-green) 0deg, var(--primary-green) var(--storage-progress), rgba(0, 38, 35, 0.08) var(--storage-progress), rgba(0, 38, 35, 0.08) 360deg);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(0, 38, 35, 0.04);
}

.storage-gauge::before {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  background: linear-gradient(180deg, #ffffff 0%, #f6faf9 100%);
  box-shadow: inset 0 0 0 1px rgba(0, 38, 35, 0.05);
}

.storage-gauge-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 var(--space-md);
}

.storage-gauge-percent {
  font-size: 2rem;
  line-height: 1;
  font-weight: 800;
  color: var(--dark-gray);
  margin-bottom: 8px;
}

.storage-gauge-label {
  color: var(--text-gray);
  font-size: 0.85rem;
  font-weight: 600;
}

.storage-details {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.storage-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-sm);
}

.storage-detail-item {
  background: rgba(0, 38, 35, 0.035);
  border: 1px solid rgba(0, 38, 35, 0.06);
  border-radius: 16px;
  padding: 14px 16px;
  min-height: 78px;
}

.storage-detail-item.accent {
  background: rgba(107, 31, 42, 0.05);
  border-color: rgba(107, 31, 42, 0.10);
}

.storage-detail-label {
  display: block;
  color: var(--text-gray);
  font-size: 0.82rem;
  margin-bottom: 10px;
}

.storage-detail-value {
  display: block;
  color: var(--dark-gray);
  font-size: 1.05rem;
  line-height: 1.35;
}

.storage-card-hint {
  margin: 0;
  color: var(--text-gray);
  font-size: 0.86rem;
  line-height: 1.7;
}

.storage-manifest-wrap {
  min-width: 0;
  margin-top: var(--space-sm);
  direction: rtl;
}

.storage-manifest-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  margin-bottom: 8px;
  color: var(--dark-gray);
  font-size: 0.9rem;
  font-weight: 700;
}

.storage-manifest-copy {
  min-height: 36px;
  padding: 6px 12px;
  font-size: 0.82rem;
}

.storage-manifest-log {
  box-sizing: border-box;
  width: 100%;
  height: 320px;
  min-height: 280px;
  max-height: 360px;
  margin: 0;
  padding: 14px 16px;
  overflow-y: auto;
  overflow-x: auto;
  border: 1px solid rgba(0, 38, 35, 0.12);
  border-radius: 12px;
  background: #18201f;
  color: #d8eee8;
  direction: ltr;
  text-align: left;
  white-space: pre;
  overflow-wrap: normal;
  font: 0.78rem/1.65 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.admin-card-change {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: var(--space-sm);
  font-size: 0.85rem;
  color: var(--primary-green-accent);
}

.admin-card-change.negative {
  color: var(--accent-red);
}
