:root {
  color-scheme: light dark;
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont,
    'Helvetica Neue', sans-serif;
  background-color: #f7f7fb;
  color: #101828;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(120% 120% at 50% 0%, #f8fbff 0%, #eef2ff 35%, #f8fbff 70%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.page {
  width: min(960px, calc(100% - 32px));
  margin: 48px auto;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-radius: 24px;
  padding: 40px 48px 56px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
}

.header {
  text-align: center;
  margin-bottom: 32px;
}

.logo {
  font-size: 28px;
  font-weight: 700;
  margin: 0;
}

.subheading {
  margin: 8px 0 0;
  color: #475467;
}

.status {
  text-align: center;
  font-size: 18px;
  padding: 24px;
  background: rgba(99, 102, 241, 0.08);
  border-radius: 16px;
  margin: 0;
}

.status.error {
  background: rgba(239, 68, 68, 0.12);
  color: #b91c1c;
}

.content {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.intro {
  text-align: center;
}

.greeting {
  font-size: 24px;
  margin: 0;
}

.plan-label {
  margin: 8px 0 0;
  color: #475467;
}

.usage {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(99, 102, 241, 0.15));
  border-radius: 20px;
  padding: 24px 28px;
}

.usage h3 {
  margin-top: 0;
  margin-bottom: 16px;
}

.usage dl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  margin: 0;
}

.usage dt {
  font-weight: 600;
  color: #1d2939;
}

.usage dd {
  margin: 4px 0 0;
  font-size: 18px;
}

.usage-notice {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(234, 179, 8, 0.15);
  color: #92400e;
  font-weight: 600;
}

.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.plan-card {
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(255, 255, 255, 0.9);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.05);
}

.plan-card h3 {
  margin: 0 0 6px;
  font-size: 22px;
}

.price {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
}

.price span {
  font-size: 16px;
  font-weight: 500;
  color: #475467;
  margin-left: 4px;
}

.plan-card ul {
  margin: 0;
  padding-left: 18px;
  color: #475467;
  flex: 1;
}

.button {
  border: none;
  border-radius: 999px;
  padding: 12px 18px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.button[disabled] {
  cursor: default;
  opacity: 0.55;
  box-shadow: none;
}

.button-primary {
  background: linear-gradient(135deg, #4f46e5, #2563eb);
  color: #fff;
  box-shadow: 0 10px 20px rgba(79, 70, 229, 0.25);
}

.button-primary:not([disabled]):hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 30px rgba(79, 70, 229, 0.3);
}

.button-primary:not([disabled]):active {
  transform: translateY(0);
}

@media (max-width: 720px) {
  .page {
    padding: 32px 20px 44px;
    margin: 24px auto;
  }

  .header {
    margin-bottom: 24px;
  }

  .plans {
    grid-template-columns: 1fr;
  }
}
