:root {
  color-scheme: dark;
  --bg: #080808;
  --surface: rgba(255, 255, 255, 0.065);
  --surface-border: rgba(255, 255, 255, 0.10);
  --text: #f8f6f2;
  --muted: #989593;
  --blue: #12b8f4;
  --blue-deep: #057fc5;
  --red: #f20a12;
  --red-bright: #ff2830;
  --yellow: #ffc73d;
  --telegram: #28a8ea;
  --radius: 24px;
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  min-width: 300px;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 50% -15%, rgba(12, 151, 218, 0.24), transparent 36%),
    linear-gradient(180deg, #080b0e 0%, #050607 100%);
  -webkit-font-smoothing: antialiased;
}

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

.ambient {
  position: fixed;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(100px);
  opacity: .16;
}

.ambient--one { width: 260px; height: 260px; background: var(--blue); top: 8%; left: -170px; }
.ambient--two { width: 220px; height: 220px; background: var(--red); top: 45%; right: -170px; }

.page-shell {
  position: relative;
  width: min(100%, 480px);
  min-height: 100dvh;
  margin: 0 auto;
  padding: max(30px, env(safe-area-inset-top)) 18px max(24px, env(safe-area-inset-bottom));
}

.profile { text-align: center; padding-top: 8px; }

.avatar-wrap { position: relative; width: 112px; margin: 0 auto 20px; }

.avatar {
  position: relative;
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, .16);
  border-radius: 50%;
  background: var(--blue);
  box-shadow: -12px 18px 44px rgba(12, 167, 232, .22), 14px 18px 44px rgba(242, 10, 18, .17);
}

.avatar::after {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(255,255,255,.36);
  border-radius: inherit;
}

.avatar img { width: 100%; height: 100%; object-fit: cover; }

.status-dot {
  position: absolute;
  right: 4px;
  bottom: 5px;
  width: 25px;
  height: 25px;
  border: 5px solid var(--bg);
  border-radius: 50%;
  background: #5ee15e;
}

.eyebrow, .sheet-eyebrow {
  margin: 0 0 7px;
  color: var(--blue);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .2em;
}

h1 { margin: 0; font-size: clamp(27px, 8vw, 36px); line-height: 1; letter-spacing: -.055em; }
h1 span { color: var(--red-bright); }
.profile__subtitle { margin: 10px 0 0; color: var(--muted); font-size: 13px; }

.primary-action { margin: 34px 0 18px; }

.private-button {
  position: relative;
  width: 100%;
  min-height: 190px;
  overflow: hidden;
  padding: 28px;
  border: 1px solid rgba(88, 202, 255, .42);
  border-radius: 30px;
  color: #fff;
  text-align: left;
  cursor: pointer;
  background:
    radial-gradient(circle at 84% 18%, rgba(255, 40, 48, .96), transparent 30%),
    linear-gradient(132deg, #16bdf7 0%, #078fd1 62%, #053b67 100%);
  box-shadow: -8px 20px 52px rgba(9, 153, 218, .22), 10px 22px 54px rgba(242, 10, 18, .13), inset 0 1px rgba(255,255,255,.3);
  transition: transform .24s ease, box-shadow .24s ease;
  isolation: isolate;
}

.private-button:active { transform: scale(.982); }
.private-button:focus-visible { outline: 3px solid rgba(18, 184, 244, .82); outline-offset: 3px; }

#emoji-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: .9; }

.private-button__glow {
  position: absolute;
  width: 160px;
  height: 160px;
  right: -40px;
  top: -60px;
  border-radius: 50%;
  background: rgba(255, 20, 29, .34);
  filter: blur(25px);
  z-index: -1;
}

.private-button__copy { display: flex; flex-direction: column; align-items: flex-start; position: relative; z-index: 2; }
.private-button__kicker { margin-bottom: 13px; font-size: 9px; font-weight: 800; letter-spacing: .18em; opacity: .7; }
.private-button__title { font-size: clamp(24px, 7vw, 31px); font-weight: 800; line-height: 1.04; letter-spacing: -.045em; }
.private-button__meta { margin-top: 17px; font-size: 11px; font-weight: 600; opacity: .78; }
.private-button__meta b { padding: 0 4px; font-size: 8px; }

.private-button__arrow {
  position: absolute;
  right: 20px;
  bottom: 20px;
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  border: 1px solid rgba(255,255,255,.34);
  border-radius: 50%;
  background: rgba(43, 8, 0, .24);
  backdrop-filter: blur(8px);
}

.private-button__arrow svg { width: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; }

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

.social-link {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  min-height: 66px;
  padding: 10px 17px 10px 11px;
  border: 1px solid var(--surface-border);
  border-radius: 20px;
  color: var(--text);
  text-decoration: none;
  background: var(--surface);
  backdrop-filter: blur(18px);
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.social-link:active { transform: scale(.985); }
.social-link:not(.social-link--disabled):hover { background: rgba(255,255,255,.095); border-color: rgba(255,255,255,.18); }

.social-link__icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 13px;
  font-size: 20px;
  font-weight: 700;
  background: rgba(255,255,255,.08);
}

.social-link__icon svg { width: 21px; height: 21px; fill: currentColor; }
.social-link__icon--telegram { color: #fff; background: var(--telegram); }
.social-link__icon--instagram { background: linear-gradient(140deg, #7739ec, #e72b72 53%, #ff9f36); }
.social-link__icon--instagram svg { fill: none; stroke: currentColor; stroke-width: 1.7; }
.social-link__icon--instagram .fill { fill: currentColor; stroke: none; }
.social-link__icon--soon { color: #b7b3b0; }

.social-link__text { display: flex; flex-direction: column; gap: 2px; padding-left: 8px; }
.social-link__text b { font-size: 13px; }
.social-link__text small { color: var(--muted); font-size: 10px; }
.social-link__arrow { color: #797674; font-size: 18px; }
.social-link--disabled { opacity: .56; }
.soon-pill { padding: 5px 8px; border: 1px solid #504e4c; border-radius: 999px; color: #aaa6a3; font-size: 8px; font-weight: 800; letter-spacing: .1em; }

footer { display: flex; justify-content: center; align-items: center; gap: 7px; margin-top: 22px; color: #5f5c5a; font-size: 9px; }
.footer-lock { color: #817c77; font-size: 7px; }

.sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10;
  background: rgba(0,0,0,.68);
  backdrop-filter: blur(7px);
  animation: fade-in .2s ease both;
}

.purchase-sheet {
  position: fixed;
  z-index: 11;
  left: 50%;
  bottom: 0;
  width: min(100%, 500px);
  max-height: calc(100dvh - 24px);
  overflow-y: auto;
  padding: 14px 22px max(22px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  border: 1px solid rgba(255,255,255,.11);
  border-bottom: 0;
  border-radius: 32px 32px 0 0;
  background: linear-gradient(180deg, #191615, #0d0c0c 70%);
  box-shadow: 0 -24px 70px rgba(0,0,0,.55);
  animation: sheet-in .35s cubic-bezier(.2,.8,.2,1) both;
}

[hidden] { display: none !important; }
.sheet-handle { width: 38px; height: 4px; margin: 0 auto 20px; border-radius: 5px; background: #484342; }
.sheet-close { position: absolute; right: 18px; top: 18px; width: 32px; height: 32px; border: 0; border-radius: 50%; color: #bbb6b2; font-size: 24px; line-height: 1; cursor: pointer; background: rgba(255,255,255,.07); }
.sheet-icon { display: grid; place-items: center; width: 68px; height: 68px; margin-bottom: 18px; border: 1px solid rgba(26,184,244,.42); border-radius: 22px; font-size: 36px; background: linear-gradient(145deg, rgba(18,184,244,.28), rgba(242,10,18,.2)); box-shadow: inset 0 1px rgba(255,255,255,.1); }
.sheet-eyebrow { margin-bottom: 7px; }
.purchase-sheet h2 { margin: 0; font-size: clamp(29px, 9vw, 40px); line-height: 1.03; letter-spacing: -.055em; }
.sheet-description { max-width: 340px; margin: 13px 0 20px; color: #9f9a96; font-size: 12px; line-height: 1.55; }
.benefits { display: grid; gap: 12px; padding: 0; margin: 0 0 22px; list-style: none; color: #d8d3ce; font-size: 12px; }
.benefits li { display: flex; gap: 10px; align-items: center; }
.benefits b { font-weight: 500; }
.benefits span { display: grid; flex: 0 0 auto; place-items: center; width: 21px; height: 21px; border-radius: 50%; color: var(--blue); font-size: 10px; background: rgba(18,184,244,.14); }
.price-card { display: flex; justify-content: space-between; align-items: center; padding: 17px 18px; margin-bottom: 12px; border: 1px solid rgba(255,255,255,.1); border-radius: 19px; background: rgba(255,255,255,.045); }
.price-card span { color: #aaa5a1; font-size: 11px; }
.price-card strong { font-size: 20px; letter-spacing: -.04em; }
.price-card i { font-style: normal; font-size: 15px; }
.buy-button, .channel-button { width: 100%; min-height: 58px; padding: 0 20px; border: 0; border-radius: 18px; color: #fff; font-weight: 800; cursor: pointer; box-shadow: 0 13px 35px rgba(8,145,209,.22); }
.buy-button { display: flex; justify-content: space-between; align-items: center; background: linear-gradient(115deg, var(--red-bright), #ce0710 48%, var(--blue-deep)); }
.buy-button:disabled { cursor: wait; opacity: .65; }
.buy-button__arrow, .channel-button > span:last-child { font-size: 21px; }
.channel-button { background: linear-gradient(115deg, #37b3ed, #1686d1); }
.legal { margin: 12px auto 0; color: #5f5b59; text-align: center; font-size: 8px; }
.legal a { color: #85807c; }
.notice { min-height: 16px; margin: 9px 0 0; color: #69caf5; text-align: center; font-size: 10px; }
.toast { position: fixed; z-index: 20; left: 50%; top: max(16px, env(safe-area-inset-top)); width: max-content; max-width: calc(100% - 32px); padding: 11px 15px; transform: translate(-50%, -120px); border: 1px solid rgba(255,255,255,.12); border-radius: 14px; color: #ece7e3; font-size: 11px; background: rgba(31,29,28,.92); backdrop-filter: blur(15px); transition: transform .3s ease; }
.toast.is-visible { transform: translate(-50%, 0); }

@keyframes fade-in { from { opacity: 0; } }
@keyframes sheet-in { from { transform: translate(-50%, 105%); } }

.language-pending .page-shell {
  filter: blur(12px) saturate(.72);
  transform: scale(.985);
  pointer-events: none;
  user-select: none;
}

.language-gate {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: flex;
  justify-content: center;
  padding: 0 22px max(24px, env(safe-area-inset-bottom));
  overflow: hidden;
  background: #14afe9 url("/assets/language-background.jpg") center center / auto 100% no-repeat;
  transition: opacity .25s ease, visibility .25s ease;
}

.language-gate.is-closing { opacity: 0; visibility: hidden; }

.language-card {
  width: min(100%, 360px);
  margin-top: clamp(480px, 61svh, 650px);
  animation: language-in .42s cubic-bezier(.2,.8,.2,1) both;
}

.language-kicker {
  margin: 0 0 16px;
  color: #f20a12;
  text-align: center;
  font-size: clamp(9px, 2.6vw, 11px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: .085em;
  text-shadow: 0 1px 0 rgba(255,255,255,.45);
}

.language-options { display: grid; gap: 12px; }

.language-option {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 68px;
  padding: 12px 18px;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,.9);
  border-radius: 18px;
  color: #fff;
  text-align: center;
  cursor: pointer;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  box-shadow: 0 10px 24px rgba(0, 78, 119, .22);
  transition: transform .2s ease, box-shadow .2s ease;
}

.language-option::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.16);
}

.language-option--us { background-image: url("/assets/flag-us.svg"); }
.language-option--ru { background-image: url("/assets/flag-ru.svg"); }
.language-option span { position: relative; z-index: 1; font-size: 16px; font-weight: 800; letter-spacing: .02em; text-shadow: 0 2px 8px rgba(0,0,0,.72); }
.language-option:hover { transform: translateY(-1px); box-shadow: 0 13px 30px rgba(0, 78, 119, .3); }
.language-option:active { transform: scale(.985); }
.language-option:focus-visible { outline: 3px solid #f20a12; outline-offset: 3px; }

@keyframes language-in { from { opacity: 0; transform: translateY(18px) scale(.97); } }

@media (min-width: 700px) {
  .page-shell { padding-top: 45px; }
  .private-button:hover { transform: translateY(-2px); box-shadow: -8px 25px 60px rgba(9,153,218,.3), 10px 25px 58px rgba(242,10,18,.18); }
}

@media (max-height: 720px) {
  .language-card { margin-top: 58svh; }
  .language-option { min-height: 58px; }
  .profile { padding-top: 0; }
  .avatar-wrap, .avatar { width: 86px; height: 86px; }
  .avatar__monogram { font-size: 28px; }
  .avatar-wrap { margin-bottom: 15px; }
  .primary-action { margin-top: 25px; }
  .private-button { min-height: 170px; }
}

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