* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f7f8fa;
  color: #0f172a;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 32px 20px 48px;
  display: grid;
  gap: 16px;
}

.hero {
  padding: 16px 8px;
}

.hero h1 {
  margin: 0;
  font-size: 40px;
  letter-spacing: -0.03em;
}

.hero p {
  margin: 8px 0 0;
  color: #475569;
}

.card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

h2 {
  margin: 0 0 12px;
  font-size: 20px;
}

form,
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

input,
button {
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  padding: 10px 12px;
  font-size: 14px;
}

input {
  min-width: 200px;
  background: #fff;
}

button {
  background: #0f172a;
  color: #fff;
  border: none;
  cursor: pointer;
}

button:hover {
  opacity: 0.9;
}

pre {
  white-space: pre-wrap;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px;
  min-height: 40px;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.plan-card {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  background: #f8fafc;
  transition: transform 0.2s, box-shadow 0.2s;
}

.plan-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.plan-price {
  font-size: 24px;
  font-weight: bold;
  margin: 12px 0;
  color: #0f172a;
}

.plan-name {
  font-size: 16px;
  color: #475569;
}

.plan-buy-btn {
  width: 100%;
  margin-top: 16px;
  background: #2563eb;
  color: white;
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
  border: none;
  font-weight: 500;
}

.plan-buy-btn:hover {
  background: #1d4ed8;
}

.subscription-dashboard {
  margin-top: 16px;
  display: grid;
  gap: 12px;
}

.dashboard-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.metric-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px;
}

.metric-title {
  color: #64748b;
  font-size: 13px;
}

.metric-value {
  margin-top: 6px;
  font-size: 18px;
  font-weight: 700;
}

.status-active {
  color: #15803d;
}

.status-inactive {
  color: #b91c1c;
}

.payments-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
}

.payments-table th,
.payments-table td {
  padding: 10px;
  border-bottom: 1px solid #e2e8f0;
  text-align: left;
  font-size: 14px;
}

.payments-table th {
  background: #f8fafc;
  color: #334155;
}

.hidden {
  display: none;
}

.honeypot {
  position: absolute;
  left: -10000px;
  opacity: 0;
  pointer-events: none;
}

.admin-card {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: #e2e8f0;
}

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

.trial-inline {
  display: flex;
  gap: 8px;
}

.trial-inline input {
  min-width: 140px;
}

.admin-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.admin-metric {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 12px;
}

.admin-metric .label {
  font-size: 12px;
  color: #cbd5e1;
}

.admin-metric .value {
  margin-top: 6px;
  font-size: 20px;
  font-weight: 700;
  color: #f8fafc;
}

.admin-subtitle {
  margin-top: 16px;
  margin-bottom: 8px;
  font-weight: 600;
}
