:root {
  color-scheme: dark;
  --bg: #030405;
  --panel: #101112;
  --panel-soft: #17191b;
  --text: #f6f7f8;
  --muted: #8d8f99;
  --line: rgba(255, 255, 255, 0.11);
  --red: #f31318;
  --red-dark: #b70910;
  --cyan: #37d9dd;
  --gold: #d5a65b;
  --danger-bg: rgba(243, 19, 24, 0.14);
  --danger: #ff696d;
  --ok-bg: rgba(55, 217, 221, 0.14);
  --ok: #75f5f6;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% -10%, rgba(55, 217, 221, 0.16), transparent 34rem),
    linear-gradient(180deg, #080909 0%, var(--bg) 34%);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
a,
input {
  font: inherit;
}

.app {
  width: min(100%, 520px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 20px 14px 104px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025)), var(--panel);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.32);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 22px;
  text-align: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto;
  height: 220px;
  background: radial-gradient(circle, rgba(55, 217, 221, 0.26), transparent 64%);
  pointer-events: none;
}

.heroLogo {
  position: relative;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 0 38px rgba(55, 217, 221, 0.24);
}

.eyebrow,
.muted {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

h1 {
  position: relative;
  margin: 12px 0 8px;
  font-size: 28px;
  line-height: 1.08;
}

h2 {
  margin: 2px 0 0;
  font-size: 22px;
  line-height: 1.18;
}

h3 {
  margin: 8px 0 6px;
  font-size: 21px;
  line-height: 1.15;
}

.heroText {
  position: relative;
  margin: 0 auto 16px;
  max-width: 340px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.45;
}

.status {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--muted);
  font-weight: 700;
}

.status[data-tone="ok"] {
  background: var(--ok-bg);
  color: var(--ok);
}

.status[data-tone="busy"] {
  background: rgba(213, 166, 91, 0.14);
  color: #ffd58f;
}

.status[data-tone="error"] {
  background: var(--danger-bg);
  color: var(--danger);
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.accountPanel,
.smallPanel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 14px;
  padding: 18px;
}

.accountPanel strong,
.smallPanel strong {
  display: block;
  margin-top: 8px;
  overflow-wrap: anywhere;
  font-size: 18px;
}

.sectionHead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.plansSection {
  margin-top: 22px;
}

.plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.plan {
  min-height: 212px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.028)), var(--panel);
}

.planTop {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.planTop strong {
  min-width: 56px;
  color: #fff;
  font-size: 20px;
  line-height: 1.15;
  text-align: right;
}

.planBadge,
.badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border: 1px solid rgba(55, 217, 221, 0.34);
  border-radius: 999px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 800;
}

.plan p,
.guideStep p,
.bodyText {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

.planInfo {
  display: grid;
  gap: 7px;
  margin: 12px 0;
  color: #c8cad1;
  font-size: 14px;
}

.buyButton,
.primaryButton,
.ghostButton {
  width: 100%;
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 0;
  text-decoration: none;
  font-weight: 850;
  cursor: pointer;
}

.buyButton,
.primaryButton {
  background: linear-gradient(90deg, var(--red), #ff2028 54%, var(--red-dark));
  color: #fff;
  box-shadow: 0 12px 34px rgba(243, 19, 24, 0.24);
}

.ghostButton {
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: transparent;
  color: var(--text);
}

.ghostButton:disabled {
  border-color: rgba(255, 255, 255, 0.12);
  color: #5e6068;
  cursor: not-allowed;
}

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

.resultPanel,
.guidePanel,
.supportPanel {
  margin-top: 14px;
  padding: 18px;
}

.urlInput {
  width: 100%;
  min-height: 48px;
  margin-bottom: 12px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #090a0b;
  color: var(--text);
}

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

.guideStep {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.guideStep .ghostButton {
  margin-top: 14px;
}

.progressLine {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 9px;
  margin-bottom: 12px;
}

.progressLine span {
  height: 6px;
  border-radius: 999px;
  background: #34353c;
}

.progressLine .filled {
  background: #fff;
}

.supportPanel .primaryButton {
  margin-top: 16px;
}

.hidden {
  display: none;
}

.tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: min(100%, 520px);
  margin: 0 auto;
  padding: 8px 16px calc(8px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: rgba(3, 4, 5, 0.92);
  backdrop-filter: blur(18px);
}

.tab {
  min-height: 62px;
  display: grid;
  place-items: center;
  gap: 2px;
  border: 0;
  background: transparent;
  color: #696b76;
}

.tab span {
  font-size: 28px;
  line-height: 1;
}

.tab b {
  font-size: 12px;
}

.tab.active {
  color: #fff;
}

@media (max-width: 370px) {
  .app {
    padding-inline: 10px;
  }

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

  h1 {
    font-size: 25px;
  }
}
