:root {
  color-scheme: light;
  --primary: #4a154b;
  --primary-press: #611f69;
  --ink: #1d1d1d;
  --muted: #696969;
  --cream: #f4ede4;
  --lavender: #f9f0ff;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--cream);
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
.account-shell {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 36px 20px;
  background:
    radial-gradient(circle at 22% 20%, rgba(255, 194, 143, .32), transparent 29rem),
    radial-gradient(circle at 78% 28%, rgba(201, 171, 231, .38), transparent 31rem),
    linear-gradient(145deg, var(--cream), var(--lavender));
}
.account-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .26;
  background-image:
    linear-gradient(rgba(74, 21, 75, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(74, 21, 75, .08) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(circle at center, black, transparent 74%);
}
.account-ambient {
  position: absolute;
  width: 28rem;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(100px);
  opacity: .16;
}
.account-ambient-one { left: -14rem; top: 10%; background: #e6a86e; }
.account-ambient-two { right: -14rem; bottom: 4%; background: #c29bd9; }
.card {
  position: relative;
  z-index: 1;
  width: min(510px, 100%);
  padding: clamp(28px, 6vw, 46px);
  border: 1px solid rgba(74, 21, 75, .1);
  border-radius: 24px;
  background: rgba(255, 255, 255, .86);
  box-shadow: 0 28px 80px rgba(74, 21, 75, .13);
  backdrop-filter: blur(14px);
}
.payment-page .card { width: min(560px, 100%); }
.payment-page .brand,
.payment-page .account-row { display: none; }
.payment-page #usageStatus { display: none; }
.close-payment {
  position: absolute;
  top: 20px;
  left: 22px;
  color: var(--ink);
  font-size: 34px;
  font-weight: 300;
  line-height: 1;
  text-decoration: none;
}
.close-payment:hover { color: var(--primary); }
.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}
.brand img { border-radius: 16px; }
.brand em { color: #168a5b; font-style: normal; }
h1 { margin: 28px 0 10px; font-size: clamp(30px, 6vw, 42px); line-height: 1.12; letter-spacing: -.035em; text-align: center; }
h2 { margin: 12px 0 22px; font-size: 24px; text-align: center; }
p { color: var(--muted); line-height: 1.55; text-align: center; }
.auth-choices { display: grid; gap: 12px; margin-top: 28px; }
.choice-button, button {
  width: 100%;
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  border-radius: 90px;
  color: #fff;
  background: var(--primary);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.choice-button:hover, button:hover { background: var(--primary-press); }
.choice-button svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.choice-button.google { color: var(--ink); background: #fff; border: 1px solid rgba(74, 21, 75, .16); }
.choice-button.google svg { fill: initial; stroke: none; }
.secondary-choice { color: var(--primary); background: var(--lavender); border: 1px solid rgba(74, 21, 75, .14); }
.account-form { margin-top: 26px; }
.back-button { width: auto; min-height: 0; padding: 7px 12px; color: var(--primary); background: transparent; font-size: 13px; }
.back-button:hover { background: var(--lavender); }
label { display: block; margin: 16px 0 7px; font-size: 13px; font-weight: 700; }
input {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #d8cfd8;
  border-radius: 9px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}
.account-form > button[type="submit"] { margin-top: 24px; }
.error { min-height: 21px; margin-top: 14px; color: #b42318; font-size: 13px; text-align: center; }
.account-row { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 13px; }
.link-button { width: auto; min-height: 0; padding: 7px 11px; }
.price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 9px;
  margin: 30px 0 18px;
  text-align: center;
}
.price del {
  color: var(--ink);
  font-size: clamp(34px, 7vw, 46px);
  font-weight: 800;
  letter-spacing: -.04em;
  text-decoration-thickness: 3px;
}
.price strong {
  font-size: clamp(19px, 4vw, 24px);
  font-weight: 500;
  letter-spacing: -.03em;
}
.price span { color: var(--muted); font-size: 18px; }
.local-price { min-height: 22px; font-weight: 650; text-align: center; }
.reference-title {
  margin: 50px 0 34px;
  color: var(--ink);
  font-size: clamp(34px, 7vw, 48px);
  line-height: 1.05;
}
.offer-art {
  position: relative;
  width: min(410px, 88%);
  margin: 0 auto;
}
.offer-badge {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 190px;
  margin: 0;
  padding: 34px 28px;
  overflow: hidden;
  border-radius: 24px;
  color: #fff;
  background:
    radial-gradient(circle at 16% 20%, rgba(255, 255, 255, .16), transparent 27%),
    linear-gradient(112deg, #565456 0%, #302a32 42%, #19131d 100%);
  box-shadow:
    0 20px 34px rgba(34, 22, 35, .3),
    0 5px 14px rgba(34, 22, 35, .2);
}
.offer-badge::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(255,255,255,.12), transparent 35%);
  pointer-events: none;
}
.offer-badge span { font-size: clamp(35px, 8vw, 48px); font-weight: 700; letter-spacing: .06em; }
.offer-badge small { margin-top: -22px; color: #fff; font-size: 24px; font-weight: 500; letter-spacing: .12em; }
.sparkle {
  position: absolute;
  z-index: 2;
  color: var(--ink);
  line-height: 1;
}
.sparkle-left {
  top: 38%;
  left: -42px;
  font-size: 58px;
  text-shadow: 25px 54px 0 var(--ink), 2px -58px 0 #8f8a8f;
}
.sparkle-right {
  top: 22%;
  right: -50px;
  font-size: 72px;
  text-shadow: -20px 86px 0 #8f8a8f, 5px 126px 0 var(--ink);
}
.offer-description {
  max-width: 390px;
  margin: 20px auto 28px;
  font-size: 13px;
}
.trial-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 18px 0;
  font-size: 16px;
}
.trial-switch {
  width: 58px;
  height: 32px;
  display: flex;
  justify-content: flex-end;
  padding: 3px;
  border-radius: 90px;
  background: var(--primary);
}
.trial-switch span {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 7px rgba(0, 0, 0, .24);
}
.plan-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 24px 0;
  padding: 18px 20px;
  border: 2px solid var(--primary);
  border-radius: 16px;
  background: #fff;
}
.plan-card span { display: grid; text-align: left; }
.plan-card span strong { font-size: 17px; }
.plan-card small { margin-top: 3px; color: var(--muted); }
.plan-card > strong { color: var(--primary); font-size: 15px; white-space: nowrap; }
.trial-label {
  color: var(--primary) !important;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
}
.trial-button { margin-top: 24px; }
.payment-label { margin: 0 0 12px; font-size: 13px; font-weight: 700; }
.payment-options { display: grid; gap: 12px; }
.payment-option {
  min-height: 58px;
  border-radius: 14px;
  font-size: 16px;
}
.payment-option svg { width: 27px; height: 27px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.payment-option img { width: auto; height: 28px; object-fit: contain; }
.card-pay { color: #fff; background: var(--primary); }
.apple-pay { color: #fff; background: #000; }
.apple-pay:hover { background: #1f1f1f; }
.apple-pay img { filter: invert(1); }
.google-pay { color: #202124; background: #fff; border: 1px solid #d7d9dd; }
.google-pay:hover { background: #f7f8f9; }
#manageButton { min-height: 54px; margin-top: 14px; }
.payment-page #subscriptionSection .error:empty { display: none; }
.payment-page .secure-note { margin: 8px 0 4px; color: var(--ink); font-size: 13px; font-weight: 700; }
.fine { font-size: 11px; }
[hidden] { display: none !important; }

@media (max-width: 520px) {
  .account-shell { padding: 18px 12px; }
  .card { padding: 26px 20px; border-radius: 20px; }
}
