:root {
  color-scheme: dark;
  --background: #100c17;
  --accent: #8f42c9;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  min-height: 100svh;
  margin: 0;
  display: grid;
  place-items: center;
  padding: 24px 16px;
  background: radial-gradient(ellipse at 50% 38%, #332048, transparent 57%), var(--background);
  color: #fbf6ff;
  font-family: system-ui, sans-serif;
}

.profile {
  width: min(100%, 400px);
  padding: 32px clamp(20px, 7vw, 36px);
  text-align: center;
  border: 1px solid #50365e;
  border-radius: 24px;
  background: #1b1323;
  box-shadow: 0 20px 60px #0005;
}

.brand-logo {
  display: block;
  width: min(184px, 58vw);
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  margin: 0 auto 20px;
  border: 1px solid #6a4283;
  border-radius: 50%;
}

h1 { margin: 0; font-size: 1.55rem; line-height: 1.2; letter-spacing: -.025em; }
.description, .telegram-note { margin: 14px 0 0; color: #d0bfdc; font-size: .9rem; line-height: 1.5; overflow-wrap: anywhere; }
.description:empty, .telegram-note:not(:has(span:not(:empty))) { display: none; }

.country-picker {
  position: relative;
  width: min(100%, 226px);
  margin: 22px auto 16px;
}

.country-flag {
  position: absolute;
  inset-inline-start: 14px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  font-size: .75rem;
}
.country-flag img { display: block; width: 20px; height: 15px; object-fit: cover; }

select {
  width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  padding-inline-start: 43px;
  border: 1px solid #624a71;
  border-radius: 12px;
  background: #241a2e;
  color: inherit;
  font: inherit;
  font-size: .9rem;
}

.offer-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  margin-top: 16px;
  padding: 10px 16px;
  border-radius: 28px;
  background: var(--accent);
  color: #fff;
  font-size: .95rem;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.offer-link:hover { filter: brightness(1.12); }
.telegram-mark { flex: none; font-size: 1.25em; }
.profile--plans .brand-logo { width: 84px; }
.plans { display: grid; gap: 10px; margin-top: 24px; text-align: start; }
.plans .plan-link { justify-content: space-between; margin: 0; border-radius: 12px; }
.plan-link strong { flex: none; font-variant-numeric: tabular-nums; white-space: nowrap; }
:is(select, a):focus-visible { outline: 3px solid #ebc6ff; outline-offset: 4px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
