:root {
  color-scheme: dark;
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  background: #0b1120;
  color: #e5e7eb;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #0b1120;
}

.app {
  max-width: 1200px;
  margin: 32px auto 64px;
  padding: 0 20px;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}

.subtitle {
  margin: 6px 0 0;
  color: #9ca3af;
}

.card {
  background: #111827;
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  padding: 20px;
  margin-bottom: 20px;
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

input {
  border: 1px solid #374151;
  background: #0f172a;
  color: #e5e7eb;
  border-radius: 10px;
  padding: 10px 12px;
  min-width: 220px;
  font-size: 14px;
}

.btn {
  border: none;
  border-radius: 10px;
  padding: 10px 16px;
  background: #3b82f6;
  color: #fff;
  cursor: pointer;
  font-weight: 600;
}

.btn.secondary {
  background: #22c55e;
}

.btn.ghost {
  background: #1f2937;
  color: #e5e7eb;
}

.btn.btn-sm {
  padding: 6px 10px;
  font-size: 12px;
}

.status {
  margin-top: 10px;
  color: #f87171;
  min-height: 20px;
}

.table-wrap {
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.table th,
.table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid #1f2937;
  white-space: nowrap;
}

.table th {
  color: #9ca3af;
  font-weight: 600;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.badge.active {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
}

.badge.inactive {
  background: rgba(248, 113, 113, 0.18);
  color: #f87171;
}

.inline-input {
  min-width: 100px;
  width: 110px;
  padding: 6px 8px;
  font-size: 13px;
}

input[type="datetime-local"].inline-input {
  min-width: 190px;
  width: 200px;
}

.inline-edit {
  display: flex;
  align-items: center;
  gap: 8px;
}

.locked #subscriptions-card,
.locked #users-card {
  display: none;
}

.locked .subtitle::after {
  content: " • Locked";
  color: #fbbf24;
}
