.wide { max-width: 1120px; }
.card.narrow { max-width: 480px; margin-top: 40px; }
.muted { color: var(--muted-ink); margin: 0; }
.small { font-size: 14px; }

.current-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.current h2 { margin: 4px 0; }
#shop-picker {
  font: inherit;
  font-size: 14px;
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 12px;
  background: #fff;
  max-width: 100%;
}
.badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  background: var(--muted);
  color: #4f7f18;
  border-radius: 999px;
  padding: 6px 12px;
  white-space: nowrap;
}
.badge.warn { background: #fbe9e7; color: var(--danger); }
.meter { height: 10px; background: var(--muted); border-radius: 999px; overflow: hidden; margin: 18px 0 8px; }
.meter span { display: block; height: 100%; width: 0; background: #7fb82e; border-radius: 999px; transition: width .4s; }
.meter.over span { background: var(--danger); }

.cycle {
  display: inline-flex;
  margin: 32px 0 20px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
}
.cycle button {
  font: inherit;
  font-weight: 600;
  border: 0;
  background: none;
  color: var(--ink);
  padding: 10px 20px;
  border-radius: 999px;
  cursor: pointer;
}
.cycle button.on { background: var(--ink); color: var(--ivory); }
.cycle em { font-style: normal; font-size: 12px; color: #4f7f18; margin-left: 4px; }
.cycle button.on em { color: var(--lime); }

.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 960px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .plans { grid-template-columns: 1fr; } }
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  background: #fff;
}
.plan.hero { border: 2px solid var(--ink); box-shadow: 0 12px 40px #17201814; }
.plan.hero::before {
  content: "Most popular";
  position: absolute;
  top: -13px;
  left: 24px;
  background: var(--lime);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
}
.plan h3 { margin: 0; font-size: 20px; }
.plan .tagline { color: var(--muted-ink); font-size: 14px; margin: 4px 0 16px; min-height: 42px; }
.plan .price { font-size: 36px; font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.plan .price small { font-size: 15px; font-weight: 500; color: var(--muted-ink); letter-spacing: 0; }
.plan .per-day { color: #4f7f18; font-size: 13px; font-weight: 600; margin-top: 6px; min-height: 20px; }
.plan ul { list-style: none; padding: 0; margin: 20px 0 0; flex: 1; font-size: 14px; }
.plan li { padding-left: 24px; position: relative; margin: 8px 0; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: #5f9620; font-weight: 700; }
.plan .btn { width: 100%; }
.plan .btn.ghost { background: #fff; color: var(--ink); }
.plan .btn[disabled] { opacity: .6; }

#payments-wrap { margin-top: 48px; }

.signin-dialog {
  width: calc(100% - 32px);
  max-width: 440px;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 32px 28px 28px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 24px 80px #17201833;
}
.signin-dialog::backdrop { background: rgb(23 32 24 / 45%); backdrop-filter: blur(2px); }
.signin-dialog h2 { margin: 0 0 6px; }
.signin-dialog .btn { width: 100%; }
.dialog-x {
  position: absolute;
  top: 14px;
  right: 16px;
  border: 0;
  background: none;
  font-size: 26px;
  line-height: 1;
  color: var(--muted-ink);
  cursor: pointer;
}
