:root {
  --bg: #110b18;
  --card: rgba(255, 255, 255, 0.075);
  --card-border: rgba(255, 255, 255, 0.13);
  --text: #fff8fc;
  --muted: #cbbdcc;
  --accent: #ff5d9e;
  --accent-2: #9e6cff;
  --good: #66e1a5;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 80% 0%, rgba(133, 69, 172, .28), transparent 40%),
    linear-gradient(155deg, #0d0912, var(--bg) 45%, #1d0d19);
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

.glow {
  position: fixed;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .25;
  pointer-events: none;
}
.glow-one { background: var(--accent); top: -90px; right: -100px; }
.glow-two { background: var(--accent-2); bottom: 10%; left: -160px; }

.shell { width: min(680px, 100%); margin: 0 auto; padding: 24px 16px 36px; position: relative; }
.hero { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; }
.avatar {
  width: 62px; height: 62px; border-radius: 22px; display: grid; place-items: center;
  background: linear-gradient(145deg, var(--accent), var(--accent-2));
  box-shadow: 0 16px 40px rgba(255, 93, 158, .25);
  font-size: 26px; font-weight: 750;
}
.eyebrow { margin: 0 0 3px; color: var(--muted); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
h1 { margin: 0; font-size: 29px; line-height: 1; }
.online { margin: 7px 0 0; color: var(--muted); font-size: 13px; }
.online span { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--good); margin-right: 6px; box-shadow: 0 0 10px var(--good); }

.intro h2 { margin: 0 0 8px; font-size: 25px; }
.intro p { color: var(--muted); margin: 0 0 20px; line-height: 1.5; }
.plans { display: grid; gap: 12px; }
.plan {
  width: 100%; border: 1px solid var(--card-border); border-radius: 20px; padding: 18px;
  background: var(--card); color: var(--text); text-align: left; cursor: pointer;
  backdrop-filter: blur(16px); transition: transform .18s ease, border-color .18s ease, background .18s ease;
  position: relative;
}
.plan:active { transform: scale(.99); }
.plan.selected { border-color: var(--accent); background: rgba(255, 93, 158, .12); box-shadow: 0 12px 40px rgba(255, 93, 158, .12); }
.plan.featured { padding-top: 54px; }
.featured-badge {
  position: absolute; top: 15px; right: 18px; border-radius: 99px;
  padding: 6px 11px; background: rgba(255, 93, 158, .2); color: #ffc0dc;
  border: 1px solid rgba(255, 122, 178, .28); font-size: 11px; font-weight: 700;
}
.plan-head { display: flex; justify-content: space-between; gap: 14px; padding-right: 4px; }
.plan h3 { margin: 0; font-size: 18px; }
.plan .price { font-weight: 750; font-size: 19px; white-space: nowrap; }
.plan .subtitle { color: var(--muted); font-size: 13px; margin: 8px 0 14px; padding-right: 70px; line-height: 1.4; }
.features { display: flex; flex-wrap: wrap; gap: 7px; }
.features span { background: rgba(255,255,255,.065); border-radius: 99px; padding: 6px 9px; color: #eadfea; font-size: 11px; }

.checkout { margin-top: 18px; padding: 18px; border-radius: 20px; background: rgba(0,0,0,.2); border: 1px solid var(--card-border); }
.checkout label { display: block; color: var(--muted); font-size: 13px; margin-bottom: 8px; }
input {
  width: 100%; border: 1px solid var(--card-border); border-radius: 13px; padding: 14px 15px;
  background: rgba(255,255,255,.07); color: var(--text); outline: none; font-size: 16px;
}
input:focus { border-color: var(--accent); }
input::placeholder { color: #8f8290; }
#payButton {
  width: 100%; border: 0; border-radius: 14px; padding: 15px; margin-top: 12px; cursor: pointer;
  color: white; font-weight: 750; font-size: 16px;
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  box-shadow: 0 14px 30px rgba(188, 74, 157, .25);
}
#payButton:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.status { min-height: 20px; margin: 12px 0 0; text-align: center; color: #ffd5e8; font-size: 13px; }
.secure { color: #8f8290; font-size: 11px; text-align: center; margin: 7px 0 0; }
.loading { padding: 30px; text-align: center; color: var(--muted); }
footer { display: flex; flex-wrap: wrap; gap: 12px 16px; justify-content: center; margin-top: 24px; }
footer a, .legal a { color: #d8c6da; font-size: 12px; text-decoration: none; }
.legal { width: min(760px, 100%); margin: 0 auto; padding: 28px 20px 60px; line-height: 1.65; color: var(--muted); }
.legal h1 { color: var(--text); margin: 26px 0 18px; line-height: 1.15; }
.legal hr { border: 0; border-top: 1px solid var(--card-border); margin: 28px 0; }
.legal .legal-back {
  display: inline-flex; align-items: center; min-height: 46px; padding: 11px 16px;
  border-radius: 14px; color: #fff; font-size: 14px; font-weight: 750;
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  box-shadow: 0 10px 26px rgba(188, 74, 157, .28);
}

.modal {
  position: fixed; inset: 0; z-index: 20; display: grid; place-items: center;
  padding: 22px; background: rgba(7, 4, 10, .78); backdrop-filter: blur(10px);
}
.modal[hidden] { display: none; }
.modal-card {
  width: min(430px, 100%); padding: 28px 22px 22px; border-radius: 24px;
  text-align: center; background: #21142a; border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 24px 70px rgba(0,0,0,.5);
}
.modal-card h2 { margin: 14px 0 8px; font-size: 24px; }
.modal-card p { margin: 0 0 20px; color: var(--muted); line-height: 1.5; }
.success-mark {
  width: 64px; height: 64px; margin: 0 auto; border-radius: 50%; display: grid;
  place-items: center; color: #0d2b1e; background: var(--good); font-size: 36px; font-weight: 900;
  box-shadow: 0 0 34px rgba(102, 225, 165, .28);
}
#returnButton {
  width: 100%; border: 0; border-radius: 14px; padding: 15px; cursor: pointer;
  color: #fff; font-weight: 800; font-size: 16px;
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
}

@media (min-width: 620px) {
  .plans { grid-template-columns: 1fr 1fr; }
  .plan:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
