* {
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 20px;
  color: #1a1a1a;
  background: #fafafa;
}

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

h1 {
  font-size: 28px;
  margin-bottom: 8px;
}

.subtitle {
  color: #666;
  font-size: 16px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

@media (max-width: 800px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}

.plan-card {
  position: relative;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  padding: 24px 20px;
  text-align: center;
}

.plan-card.popular {
  border: 2px solid #2563eb;
}

.badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #2563eb;
  color: #fff;
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

.plan-card h2 {
  font-size: 18px;
  margin: 8px 0;
}

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

.price span {
  font-size: 14px;
  font-weight: 400;
  color: #777;
}

.quota {
  font-weight: 600;
  margin: 4px 0;
}

.hint {
  color: #777;
  font-size: 13px;
  margin-bottom: 20px;
}

.btn {
  width: 100%;
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  background: #2563eb;
  color: #fff;
}

.btn:disabled {
  background: #e5e5e5;
  color: #999;
  cursor: default;
}

.btn.secondary {
  background: #e5e5e5;
  color: #1a1a1a;
}

.support-hint {
  text-align: center;
  color: #777;
  font-size: 13px;
  margin-top: 32px;
}

.success-box {
  max-width: 480px;
  margin: 60px auto;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  padding: 32px;
  text-align: center;
}

.license-key-row {
  display: flex;
  gap: 8px;
  margin: 12px 0 20px;
}

.license-key-row code {
  flex: 1;
  background: #f3f4f6;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 13px;
  overflow-x: auto;
  white-space: nowrap;
}

.license-key-row button {
  width: auto;
  flex-shrink: 0;
}

.instructions {
  text-align: left;
  font-size: 14px;
  color: #444;
  padding-left: 20px;
}

.instructions li {
  margin-bottom: 6px;
}
