body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, sans-serif;
  background: #f4f7fb;
  color: #1c2430;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 32px;
  background: #0d1b2a;
  color: #fff;
}

.topbar a {
  color: #fff;
  text-decoration: none;
  margin-left: 16px;
}

.topbar .primary {
  background: #1b5cff;
  padding: 8px 14px;
  border-radius: 6px;
}

.container {
  max-width: 960px;
  margin: 40px auto;
  padding: 0 16px;
}

.hero {
  text-align: center;
  padding: 40px 20px;
}

.actions {
  margin-top: 24px;
}

.actions a {
  margin: 0 8px;
}

.card .actions {
  margin: 16px 0;
  text-align: right;
}

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

.plan-card {
  display: block;
  border: 2px solid transparent;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 14px 30px rgba(13, 27, 42, 0.08);
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.plan-card input {
  display: none;
}

.plan-card .plan-header {
  background: #142b4c;
  color: #fff;
  padding: 20px;
  text-align: center;
  position: relative;
}

.plan-badge {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: #f8b400;
  color: #1c2430;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 0;
  text-transform: uppercase;
}

.plan-price {
  font-size: 28px;
  font-weight: 700;
  margin-top: 8px;
}

.plan-period {
  font-size: 12px;
  opacity: 0.8;
}

.plan-card ul {
  list-style: none;
  margin: 0;
  padding: 16px 20px 0;
}

.plan-card li {
  padding: 6px 0;
  color: #2f3a4b;
  font-size: 14px;
}

.plan-cta {
  margin: 16px 20px 20px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #51c0d4;
  color: #0d1b2a;
  text-align: center;
  font-weight: 600;
}

.plan-card:hover {
  transform: translateY(-4px);
}

.plan-card input:checked + .plan-header {
  background: #0f3b6d;
}

.plan-card input:checked ~ ul,
.plan-card input:checked ~ .plan-cta {
  background: #f8fbff;
}

.plan-card input:checked ~ .plan-cta {
  background: #1b5cff;
  color: #fff;
}

.plan-card:has(input:checked) {
  border-color: #1b5cff;
  box-shadow: 0 18px 36px rgba(27, 92, 255, 0.2);
}

.card {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 12px 30px rgba(13, 27, 42, 0.08);
}

.card h2 {
  margin-top: 0;
}

label {
  display: block;
  margin: 14px 0 6px;
  font-weight: 600;
}

input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d6dde6;
  border-radius: 8px;
}

button,
.primary {
  display: inline-block;
  margin-top: 16px;
  padding: 10px 18px;
  border: none;
  border-radius: 8px;
  background: #1b5cff;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
}

.danger {
  display: inline-block;
  margin-top: 16px;
  padding: 10px 18px;
  border: none;
  border-radius: 8px;
  background: #d93b3b;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
}

.muted {
  color: #6c7a89;
}

.flash-wrap {
  margin-bottom: 20px;
}

.flash {
  padding: 10px 12px;
  border-radius: 8px;
  margin-bottom: 8px;
}

.flash.error {
  background: #ffe3e3;
  color: #a61c1c;
}

.flash.success {
  background: #dff5e6;
  color: #1b6b3a;
}

.list {
  display: grid;
  gap: 12px;
}

.list-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border: 1px solid #e5ebf2;
  border-radius: 10px;
}

.list-row > div:last-child {
  display: flex;
  gap: 10px;
  align-items: center;
}

.inline-form {
  display: inline-block;
  margin: 0;
}

.list-row .primary,
.list-row .danger {
  margin-top: 0;
}

.status {
  margin-left: 12px;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 12px;
  background: #edf2f9;
}

.status.active {
  background: #def7ec;
  color: #107c41;
}

.status.failed {
  background: #ffe3e3;
  color: #a61c1c;
}

.status.provisioning {
  background: #fff4cc;
  color: #8a6d1a;
}
