:root {
  color-scheme: dark;
  --bg: #07080d;
  --panel: rgba(18, 23, 31, 0.82);
  --panel-strong: rgba(27, 34, 46, 0.94);
  --line: rgba(255, 255, 255, 0.11);
  --text: #f7f9ff;
  --muted: #aeb7c9;
  --soft: #748096;
  --mint: #30eadb;
  --blue: #70a8ff;
  --violet: #a98cff;
  --gold: #ffd166;
  --red: #ff4d66;
  --rose: #ff8a9a;
  --danger: #ff6b7a;
  --ok: #57f2aa;
  --radius: 8px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.38);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(140deg, rgba(64, 108, 184, 0.22), transparent 34%),
    linear-gradient(36deg, transparent 42%, rgba(18, 181, 165, 0.2) 68%, transparent 100%),
    #07080d;
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.75), transparent 78%);
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  opacity: 0.16;
  pointer-events: none;
  background-image: url("/assets/logo.png");
  background-position: center 12%;
  background-repeat: no-repeat;
  background-size: min(76vw, 390px);
  filter: blur(18px) saturate(1.2);
  animation: backdropDrift 12s ease-in-out infinite alternate;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.shell {
  width: min(100%, 520px);
  min-height: 100vh;
  margin: 0 auto;
  padding: calc(18px + env(safe-area-inset-top)) 16px calc(28px + env(safe-area-inset-bottom));
}

.topbar,
.section-head,
.brand,
.tabs,
.quick-actions {
  display: flex;
  align-items: center;
}

.topbar {
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.brand {
  min-width: 0;
  gap: 12px;
}

.brand-logo {
  position: relative;
  flex: 0 0 auto;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  overflow: hidden;
  background: #0a0d14;
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.03), 0 16px 34px rgba(0, 0, 0, 0.34);
  animation: logoLift 4.5s ease-in-out infinite;
}

.brand-logo::after {
  position: absolute;
  inset: -50%;
  content: "";
  background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, 0.28), transparent 62%);
  transform: translateX(-60%);
  animation: logoShine 5s ease-in-out infinite;
}

.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: 26px;
  line-height: 1;
}

h2 {
  margin-bottom: 0;
  font-size: 20px;
  line-height: 1.15;
  letter-spacing: 0;
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--text);
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.icon-button.small {
  width: 38px;
  height: 38px;
}

.icon-button svg,
.primary-action svg,
.quick-action svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-button:active,
.primary-action:active,
.quick-action:active,
.copy-inline:active,
.plan:active {
  transform: scale(0.98);
}

.status-panel {
  --status-a: #ff3c6f;
  --status-b: #ff845c;
  --status-c: rgba(255, 62, 111, 0.18);
  --status-d: rgba(255, 132, 92, 0.13);
  position: relative;
  min-height: 0;
  padding: 11px 13px 12px;
  margin-bottom: 15px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background:
    linear-gradient(116deg, var(--status-c), transparent 38%),
    radial-gradient(circle at 102% 0%, var(--status-d), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025)),
    rgba(10, 13, 20, 0.9);
  box-shadow:
    0 20px 58px rgba(0, 0, 0, 0.44),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(22px) saturate(1.15);
  isolation: isolate;
  transition: border-color 260ms ease, background 260ms ease;
}

.status-panel.is-active {
  --status-a: #2df5e6;
  --status-b: #8f7dff;
  --status-c: rgba(45, 245, 230, 0.14);
  --status-d: rgba(143, 125, 255, 0.16);
  border-color: rgba(45, 245, 230, 0.18);
}

.status-panel.is-inactive {
  border-color: rgba(255, 60, 111, 0.24);
}

.status-panel::before {
  position: absolute;
  inset: 0;
  padding: 1px;
  content: "";
  border-radius: inherit;
  background: linear-gradient(90deg, transparent 0 15%, var(--status-a) 24%, var(--status-b) 36%, transparent 50% 100%) 0 0 / 240% 100%;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0.72;
  animation: statusTrace 4.8s linear infinite;
  pointer-events: none;
  z-index: 2;
}

.status-panel::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(115deg, transparent 0 38%, rgba(255, 255, 255, 0.13) 45%, transparent 53% 100%),
    radial-gradient(ellipse at 50% 110%, var(--status-c), transparent 56%);
  opacity: 0.72;
  transform: translateX(-38%);
  animation: statusSheen 7s ease-in-out infinite;
  pointer-events: none;
  z-index: -1;
}

.status-flow {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
  z-index: 1;
}

.status-flow span {
  position: absolute;
  top: var(--top);
  left: -16px;
  width: var(--size);
  height: var(--size);
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffffff, var(--status-a) 48%, var(--status-b));
  box-shadow:
    0 0 14px var(--status-a),
    0 0 26px var(--status-b);
  opacity: 0.84;
  animation: particleRun var(--speed) linear infinite;
  animation-delay: var(--delay);
}

.status-flow span:nth-child(1) {
  --top: 17px;
  --size: 6px;
  --speed: 4.8s;
  --delay: -0.4s;
}

.status-flow span:nth-child(2) {
  --top: calc(100% - 20px);
  --size: 5px;
  --speed: 6.1s;
  --delay: -2.2s;
}

.status-flow span:nth-child(3) {
  --top: 48%;
  --size: 4px;
  --speed: 7.3s;
  --delay: -3.8s;
}

.status-flow span:nth-child(4) {
  --top: 72%;
  --size: 7px;
  --speed: 8.2s;
  --delay: -5.1s;
}

.status-topline {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 9px;
}

.status-thread {
  position: relative;
  flex: 1 1 auto;
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--status-a), var(--status-b), transparent 86%);
  opacity: 0.72;
  box-shadow: 0 0 18px var(--status-c);
}

.status-thread::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.92), transparent);
  transform: translateX(-100%);
  animation: threadFlash 2.8s ease-in-out infinite;
}

.status-body {
  position: relative;
  z-index: 1;
  display: block;
}

.status-copy {
  min-width: 0;
}

.status-copy h2 {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.15;
}

.status-kicker {
  display: none;
  margin: 0 0 4px;
  color: var(--soft);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.status-note {
  position: relative;
  z-index: 1;
  max-width: 390px;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.42;
}

.status-panel.is-active .status-note {
  display: none;
}

.status-meter {
  display: none;
}

.status-meter span {
  width: 10px;
  min-height: 22px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--status-a), var(--status-b));
  box-shadow: 0 0 22px var(--status-c);
  opacity: 0.86;
  transform-origin: bottom;
  animation: meterRise 2.4s ease-in-out infinite;
}

.status-meter span:nth-child(2) {
  min-height: 46px;
  animation-delay: -0.7s;
}

.status-meter span:nth-child(3) {
  min-height: 34px;
  animation-delay: -1.3s;
}

.status-pill,
.plan-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 9px;
  margin-bottom: 11px;
  color: #061311;
  font-size: 12px;
  font-weight: 800;
  border-radius: 999px;
  background: var(--mint);
}

.status-pill {
  min-height: 27px;
  padding: 6px 12px;
  margin-bottom: 0;
  color: #061010;
  background: linear-gradient(90deg, var(--status-a), var(--status-b));
  box-shadow: 0 11px 28px var(--status-c);
}

.status-expiry {
  display: block;
  max-width: 100%;
  margin-top: 3px;
  color: var(--text);
  font-size: 29px;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
}

.tabs {
  gap: 6px;
  padding: 5px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.055);
}

.tab {
  flex: 1;
  min-height: 40px;
  color: var(--muted);
  cursor: pointer;
  border: 0;
  border-radius: 6px;
  background: transparent;
  transition: color 180ms ease, background 180ms ease;
}

.tab.is-active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.1);
}

.tab-page {
  display: none;
  animation: pageIn 220ms ease both;
}

.tab-page.is-active {
  display: block;
}

.section-head {
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.plans {
  display: grid;
  gap: 10px;
}

.plan {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 14px;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.plan::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  content: "";
  background: var(--accent, var(--mint));
}

.plan.is-selected {
  border-color: var(--accent, var(--mint));
  background: var(--panel-strong);
}

.plan-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.plan h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.2;
}

.plan p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.plan small {
  display: block;
  margin-top: 7px;
  color: var(--soft);
  font-size: 12px;
  line-height: 1.3;
}

.plan-badge {
  min-height: 20px;
  padding: 3px 7px;
  margin: 0;
  color: #08100f;
  font-size: 11px;
  background: var(--accent, var(--mint));
}

.plan-price {
  align-self: center;
  min-width: 78px;
  text-align: right;
}

.plan-price strong {
  display: block;
  font-size: 23px;
  line-height: 1;
}

.choose-plan {
  min-height: 30px;
  padding: 0 12px;
  margin-top: 9px;
  color: #061311;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
  border: 0;
  border-radius: 999px;
  background: var(--accent, var(--mint));
}

.primary-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 54px;
  padding: 0 18px;
  margin-top: 14px;
  color: #061311;
  font-weight: 850;
  cursor: pointer;
  border: 0;
  border-radius: var(--radius);
  background: linear-gradient(90deg, var(--mint), #8fb8ff 52%, var(--gold));
  box-shadow: 0 16px 36px rgba(48, 234, 219, 0.18);
  transition: transform 180ms ease, filter 180ms ease, opacity 180ms ease;
}

.back-action,
.secondary-action,
.install-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.055);
}

.back-action {
  padding: 0 12px;
  margin-bottom: 12px;
  cursor: pointer;
}

.back-action svg,
.install-link svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.checkout-card {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(48, 234, 219, 0.12), transparent 42%),
    linear-gradient(35deg, rgba(255, 209, 102, 0.1), transparent 70%),
    var(--panel);
  box-shadow: var(--shadow);
}

.checkout-topline,
.checkout-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.checkout-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 14px 0;
}

.checkout-metrics div {
  min-height: 70px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.055);
}

.checkout-metrics span,
.checkout-total span {
  display: block;
  margin-bottom: 7px;
  color: var(--soft);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.checkout-metrics strong {
  display: block;
  font-size: 16px;
  line-height: 1.15;
}

.boost-card {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  width: 100%;
  min-height: 74px;
  padding: 12px;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.055);
  transition: border-color 180ms ease, background 180ms ease;
}

.boost-card.is-on {
  border-color: rgba(48, 234, 219, 0.72);
  background:
    linear-gradient(90deg, rgba(48, 234, 219, 0.12), rgba(159, 133, 255, 0.11)),
    rgba(255, 255, 255, 0.07);
}

.boost-switch {
  position: relative;
  width: 42px;
  height: 26px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.boost-switch span {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--muted);
  transition: transform 180ms ease, background 180ms ease;
}

.boost-card.is-on .boost-switch span {
  transform: translateX(16px);
  background: var(--mint);
}

.boost-copy strong,
.boost-copy small {
  display: block;
}

.boost-copy strong {
  font-size: 14px;
  line-height: 1.3;
}

.boost-copy small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.promo-box {
  margin-top: 12px;
}

.promo-box label {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.promo-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.promo-row input {
  min-width: 0;
  min-height: 42px;
  padding: 0 12px;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  outline: 0;
  background: rgba(255, 255, 255, 0.055);
}

.promo-row input:focus {
  border-color: rgba(48, 234, 219, 0.66);
}

.promo-row button {
  min-height: 42px;
  padding: 0 12px;
  color: #061311;
  font-weight: 850;
  cursor: pointer;
  border: 0;
  border-radius: var(--radius);
  background: var(--mint);
}

.promo-box p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.promo-box p.is-error {
  color: var(--rose);
}

.promo-box p.is-warning {
  color: var(--gold);
}

.checkout-total {
  padding: 13px 0 0;
  margin-top: 12px;
  border-top: 1px solid var(--line);
}

.checkout-total strong {
  font-size: 30px;
  line-height: 1;
}

.primary-action:disabled {
  cursor: not-allowed;
  opacity: 0.58;
  filter: grayscale(0.35);
}

.region-blocker {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: calc(18px + env(safe-area-inset-top)) 16px calc(18px + env(safe-area-inset-bottom));
  background:
    radial-gradient(circle at 50% 28%, rgba(255, 77, 102, 0.2), transparent 34%),
    radial-gradient(circle at 70% 82%, rgba(255, 209, 102, 0.12), transparent 32%),
    rgba(4, 5, 10, 0.92);
  opacity: 0;
  pointer-events: none;
  backdrop-filter: blur(18px);
  transition: opacity 220ms ease;
}

.region-blocker.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.region-card {
  position: relative;
  width: min(100%, 460px);
  padding: 22px;
  overflow: hidden;
  text-align: center;
  border: 1px solid rgba(255, 107, 122, 0.28);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 77, 102, 0.17), transparent 42%),
    linear-gradient(34deg, rgba(255, 209, 102, 0.1), transparent 72%),
    rgba(13, 15, 22, 0.96);
  box-shadow:
    0 34px 90px rgba(0, 0, 0, 0.62),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.region-card::before {
  position: absolute;
  inset: 0;
  padding: 1px;
  content: "";
  border-radius: inherit;
  background: linear-gradient(90deg, transparent, var(--danger), var(--gold), transparent) 0 0 / 240% 100%;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0.85;
  animation: statusTrace 4s linear infinite;
  pointer-events: none;
}

.region-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: conic-gradient(from 90deg, var(--danger), var(--gold), var(--danger));
  box-shadow: 0 0 32px rgba(255, 77, 102, 0.22);
}

.region-icon span {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04)),
    #11141c;
}

.region-card h2 {
  margin-bottom: 10px;
  font-size: 24px;
}

.region-card p {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.region-card small {
  display: block;
  color: var(--rose);
  font-size: 12px;
  line-height: 1.45;
}

.legal-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: end center;
  padding: 18px 16px calc(18px + env(safe-area-inset-bottom));
  background:
    radial-gradient(circle at 50% 100%, rgba(48, 234, 219, 0.16), transparent 36%),
    rgba(2, 4, 8, 0.72);
  opacity: 0;
  pointer-events: none;
  backdrop-filter: blur(12px);
  transition: opacity 180ms ease;
}

.legal-modal.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.legal-card {
  position: relative;
  width: min(100%, 488px);
  padding: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(48, 234, 219, 0.13), transparent 44%),
    linear-gradient(30deg, rgba(255, 209, 102, 0.1), transparent 72%),
    rgba(12, 15, 22, 0.96);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.54);
  transform: translateY(18px) scale(0.98);
  transition: transform 220ms ease;
}

.legal-modal.is-visible .legal-card {
  transform: translateY(0) scale(1);
}

.legal-card::before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(110deg, transparent 0 38%, rgba(255, 255, 255, 0.12) 46%, transparent 54% 100%);
  transform: translateX(-48%);
  animation: statusSheen 6s ease-in-out infinite;
  pointer-events: none;
}

.legal-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 14px;
  border-radius: 50%;
  background:
    conic-gradient(from 180deg, var(--gold), var(--mint), var(--violet), var(--gold));
  box-shadow: 0 0 30px rgba(48, 234, 219, 0.18);
}

.legal-mark span {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03)),
    #0b1018;
}

.legal-copy {
  position: relative;
}

.legal-copy h2 {
  margin-bottom: 9px;
  font-size: 21px;
}

.legal-copy p:not(.eyebrow) {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.48;
}

.legal-terms-check {
  position: relative;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  padding: 11px;
  margin-top: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.055);
}

.legal-terms-check input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  accent-color: var(--mint);
}

.legal-terms-check label,
.text-link {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.text-link {
  padding: 0;
  color: var(--mint);
  font-weight: 850;
  cursor: pointer;
  border: 0;
  background: transparent;
}

.legal-actions {
  position: relative;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 10px;
  margin-top: 16px;
}

.legal-actions .primary-action,
.legal-actions .secondary-action {
  min-height: 48px;
  margin: 0;
}

.legal-cancel {
  cursor: pointer;
}

.terms-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: calc(16px + env(safe-area-inset-top)) 16px calc(16px + env(safe-area-inset-bottom));
  background: rgba(2, 4, 8, 0.78);
  opacity: 0;
  pointer-events: none;
  backdrop-filter: blur(14px);
  transition: opacity 180ms ease;
}

.terms-modal.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.terms-card {
  position: relative;
  width: min(100%, 520px);
  max-height: min(82vh, 760px);
  padding: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(48, 234, 219, 0.12), transparent 42%),
    rgba(11, 14, 20, 0.98);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.58);
  transform: translateY(12px) scale(0.98);
  transition: transform 220ms ease;
}

.terms-modal.is-visible .terms-card {
  transform: translateY(0) scale(1);
}

.terms-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: var(--text);
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.terms-close svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.terms-card h2 {
  padding-right: 44px;
  margin-bottom: 13px;
}

.terms-content {
  max-height: calc(min(82vh, 760px) - 96px);
  padding-right: 4px;
  overflow: auto;
  color: var(--muted);
  scrollbar-width: thin;
}

.terms-content h3 {
  margin: 18px 0 8px;
  color: var(--text);
  font-size: 15px;
  line-height: 1.25;
}

.terms-content p,
.terms-content li {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.52;
}

.terms-content p {
  margin-bottom: 10px;
}

.terms-content ul {
  padding-left: 18px;
  margin: 8px 0 0;
}

.link-box {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 78px;
  padding: 16px 58px 16px 14px;
  color: var(--muted);
  word-break: normal;
  border: 1px dashed rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.055);
}

.link-box span {
  display: block;
  max-width: 100%;
  overflow: hidden;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.copy-inline {
  position: absolute;
  top: 9px;
  right: 9px;
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  color: var(--text);
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(48, 234, 219, 0.16), rgba(143, 125, 255, 0.1)),
    rgba(255, 255, 255, 0.07);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.copy-inline svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.copy-inline:hover {
  border-color: rgba(48, 234, 219, 0.45);
  background:
    linear-gradient(145deg, rgba(48, 234, 219, 0.24), rgba(143, 125, 255, 0.16)),
    rgba(255, 255, 255, 0.08);
}

.client-downloads {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.install-link {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  margin-bottom: 0;
  color: var(--mint);
  font-size: 13px;
  font-weight: 800;
  justify-content: flex-start;
  background:
    linear-gradient(135deg, rgba(48, 234, 219, 0.12), rgba(143, 125, 255, 0.08)),
    rgba(255, 255, 255, 0.052);
}

.install-link.is-recommended {
  border-color: rgba(48, 234, 219, 0.34);
  background:
    linear-gradient(135deg, rgba(48, 234, 219, 0.2), rgba(255, 209, 102, 0.1)),
    rgba(255, 255, 255, 0.06);
}

.install-link strong {
  font-size: 14px;
  font-weight: 850;
}

.install-link small,
.quick-action small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  padding: 0 8px;
  margin-left: auto;
  color: #061311;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--mint), var(--gold));
}

.qr-panel {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 14px;
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(48, 234, 219, 0.12), transparent 52%),
    rgba(255, 255, 255, 0.055);
}

.qr-frame {
  position: relative;
  display: grid;
  place-items: center;
  width: 132px;
  height: 132px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.24);
}

.qr-frame canvas {
  display: block;
  width: 116px;
  height: 116px;
}

.qr-placeholder {
  position: absolute;
  inset: 8px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background:
    linear-gradient(90deg, #111827 25%, transparent 25% 50%, #111827 50% 75%, transparent 75%) 0 0 / 24px 24px,
    linear-gradient(#111827 25%, transparent 25% 50%, #111827 50% 75%, transparent 75%) 0 0 / 24px 24px,
    #ffffff;
  opacity: 0.16;
}

.qr-placeholder span {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #111827;
}

.qr-panel.has-code .qr-placeholder {
  display: none;
}

.qr-copy {
  min-width: 0;
}

.qr-copy h3 {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.2;
}

.qr-copy p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.steps {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.secondary-action {
  width: 100%;
  min-height: 50px;
  margin-top: 12px;
  font-weight: 850;
}

.step {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 54px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.055);
}

.step span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  color: #071211;
  font-weight: 850;
  border-radius: 50%;
  background: var(--mint);
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.client-step {
  align-items: start;
}

.client-step > span {
  margin-top: 5px;
}

.step-content {
  min-width: 0;
}

.client-hint {
  display: block;
  margin-top: 8px;
  color: var(--soft);
  font-size: 12px;
  line-height: 1.35;
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.quick-action {
  display: grid;
  gap: 8px;
  place-items: center;
  min-height: 92px;
  padding: 12px 8px;
  color: var(--text);
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.055);
  transition: transform 180ms ease, background 180ms ease;
}

.quick-action span {
  max-width: 100%;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.15;
  text-align: center;
}

.quick-action.is-recommended {
  border-color: rgba(48, 234, 219, 0.3);
  background:
    linear-gradient(145deg, rgba(48, 234, 219, 0.14), rgba(255, 209, 102, 0.08)),
    rgba(255, 255, 255, 0.055);
}

.quick-action small {
  min-height: 19px;
  padding: 0 7px;
  margin-left: 0;
  font-size: 9px;
}

.toast {
  position: fixed;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom));
  left: 16px;
  z-index: 20;
  max-width: 488px;
  min-height: 44px;
  padding: 12px 14px;
  margin: 0 auto;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(10, 12, 18, 0.94);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 370px) {
  .shell {
    padding-right: 12px;
    padding-left: 12px;
  }

  .status-panel {
    padding: 12px;
  }

  .status-expiry {
    font-size: 25px;
  }

  .plan {
    grid-template-columns: 1fr;
  }

  .plan-price {
    text-align: left;
  }

  .checkout-metrics {
    grid-template-columns: 1fr;
  }

  .promo-row {
    grid-template-columns: 1fr;
  }

  .checkout-total {
    align-items: flex-start;
    flex-direction: column;
  }

  .qr-panel {
    grid-template-columns: 1fr;
  }

  .qr-frame {
    width: min(100%, 220px);
    height: auto;
    aspect-ratio: 1;
    justify-self: center;
  }

  .qr-frame canvas {
    width: calc(100% - 16px);
    height: calc(100% - 16px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@keyframes backdropDrift {
  from {
    transform: translate3d(-10px, 0, 0) scale(1);
  }
  to {
    transform: translate3d(10px, 18px, 0) scale(1.06);
  }
}

@keyframes logoLift {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

@keyframes logoShine {
  0%,
  42% {
    transform: translateX(-60%);
  }
  64%,
  100% {
    transform: translateX(60%);
  }
}

@keyframes statusTrace {
  from {
    background-position: 0 0;
  }
  to {
    background-position: -240% 0;
  }
}

@keyframes statusSheen {
  0%,
  46%,
  100% {
    opacity: 0;
    transform: translateX(-42%);
  }
  62% {
    opacity: 0.82;
    transform: translateX(18%);
  }
}

@keyframes particleRun {
  0% {
    left: -18px;
    opacity: 0;
    transform: scale(0.72);
  }
  12%,
  82% {
    opacity: 0.92;
  }
  100% {
    left: calc(100% + 18px);
    opacity: 0;
    transform: scale(1.05);
  }
}

@keyframes threadFlash {
  from {
    transform: translateX(-110%);
  }
  to {
    transform: translateX(110%);
  }
}

@keyframes meterRise {
  0%,
  100% {
    transform: scaleY(0.76);
  }
  50% {
    transform: scaleY(1.06);
  }
}

@keyframes pageIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
