﻿@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@600;700&display=swap");

:root {
  --header-height: 60px;
  --header-current-height: var(--header-height);
  --divider-height: 1px;
  --divider-side-gap: 17px;
  --pill-gap-from-header: 45px;
  --avatar-size: clamp(34px, calc(26px + 2vw), 58px);
  --layout-max-width: 768px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  min-height: 100%;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

body {
  overflow-x: hidden;
  min-height: 2500px;
  background: #06060d;
  position: relative;
}

header {
  display: none;
}

header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      transparent 0%,
      rgb(255, 255, 255) 9%,
      transparent 18%,
      transparent 33%,
      rgb(255, 255, 255) 42%,
      transparent 52%,
      transparent 68%,
      rgb(255, 255, 255) 79%,
      transparent 89%,
      transparent 100%
    );
  opacity: 0.7;
}

header .header-content {
  position: relative;
  width: 100%;
  height: 100%;
}

.header-quick-menu {
  position: absolute;
  top: 50%;
  right: calc(var(--divider-side-gap) + var(--avatar-size) + 10px);
  z-index: 1250;
  width: auto;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
  opacity: 1;
  transform: translateY(-50%);
  pointer-events: auto;
}

.header-quick-menu::before {
  display: none;
}

.header-quick-menu.is-open {
  opacity: 1;
  transform: translateY(-50%);
  pointer-events: auto;
}

.header-quick-menu-button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(191, 220, 255, 0.28);
  border-radius: 999px;
  min-height: 36px;
  padding: 0 15px;
  background: rgba(20, 37, 82, 0.38);
  color: #eaf3ff;
  font-family: "Roboto", sans-serif;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    box-shadow 160ms ease,
    transform 120ms ease;
}

.header-quick-menu-button--language {
  gap: 7px;
  min-width: 86px;
  padding: 0 13px;
}

.header-language-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.header-language-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 1300;
  width: 148px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-radius: 12px;
  border: 1px solid rgba(176, 214, 255, 0.2);
  background: linear-gradient(
    135deg,
    rgba(8, 19, 53, 0.95) 0%,
    rgba(18, 13, 55, 0.93) 100%
  );
  box-shadow:
    0 10px 22px rgba(2, 6, 20, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition:
    opacity 170ms ease,
    transform 170ms ease;
}

.header-language-dropdown.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.header-language-option {
  appearance: none;
  width: 100%;
  min-height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(176, 214, 255, 0.2);
  background: rgba(26, 45, 99, 0.3);
  color: #e9f3ff;
  font-family: "Roboto", sans-serif;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  cursor: pointer;
  transition:
    border-color 150ms ease,
    background-color 150ms ease,
    box-shadow 150ms ease,
    transform 120ms ease;
}

.header-language-option.is-active {
  border-color: rgba(137, 209, 255, 0.72);
  background: linear-gradient(
    135deg,
    rgba(35, 122, 222, 0.74) 0%,
    rgba(78, 99, 216, 0.7) 100%
  );
  box-shadow:
    0 0 12px rgba(94, 170, 255, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.header-quick-menu-lang-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  object-position: center;
  display: block;
}

.header-quick-menu-lang-value {
  font-family: "Roboto", sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.06em;
}

.header-quick-menu-button--telegram {
  border-color: rgba(98, 195, 255, 0.36);
  background: linear-gradient(
    135deg,
    rgba(24, 89, 168, 0.62) 0%,
    rgba(58, 69, 150, 0.58) 100%
  );
  color: #f8fcff;
  box-shadow:
    0 0 4px rgba(70, 170, 255, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  text-shadow: 0 0 3px rgba(223, 242, 255, 0.2);
}

.header-quick-menu-button--telegram::before {
  content: "✈";
  margin-right: 6px;
  font-size: 12px;
  line-height: 1;
}

@media (hover: hover) {
  .header-quick-menu-button:hover {
    border-color: rgba(210, 233, 255, 0.56);
    background: rgba(44, 77, 168, 0.46);
    box-shadow: 0 0 10px rgba(104, 161, 255, 0.24);
  }

  .header-quick-menu-button--telegram:hover {
    border-color: rgba(173, 229, 255, 0.95);
    background: linear-gradient(
      135deg,
      rgba(25, 188, 255, 0.94) 0%,
      rgba(99, 140, 255, 0.86) 100%
    );
    box-shadow:
      0 0 16px rgba(93, 186, 255, 0.52),
      inset 0 1px 0 rgba(255, 255, 255, 0.5);
  }

  .header-quick-menu-button--language:hover .header-quick-menu-lang-icon {
    filter: brightness(1.15);
  }

  .header-language-option:hover {
    border-color: rgba(188, 226, 255, 0.66);
    background: rgba(54, 86, 173, 0.5);
    box-shadow: 0 0 12px rgba(94, 156, 255, 0.34);
  }
}

.header-quick-menu-button:active {
  transform: translateY(1px);
}

.header-language-option:active {
  transform: translateY(1px);
}

.header-language-option:focus-visible {
  outline: 2px solid rgba(210, 235, 255, 0.9);
  outline-offset: 1px;
}

@media (max-width: 425px) {
  .header-quick-menu {
    right: calc(var(--divider-side-gap) + var(--avatar-size) + 6px);
    gap: 6px;
  }

  .header-quick-menu-button {
    min-height: 32px;
    padding: 0 11px;
    font-size: 11px;
  }

  .header-quick-menu-button--telegram::before {
    margin-right: 4px;
    font-size: 11px;
  }

  .header-quick-menu-button--language {
    min-width: 74px;
    gap: 5px;
    padding: 0 10px;
  }

  .header-quick-menu-lang-icon {
    width: 16px;
    height: 16px;
  }

  .header-quick-menu-lang-value {
    font-size: 11px;
  }

  .header-language-dropdown {
    width: 132px;
    padding: 5px;
    gap: 5px;
  }

  .header-language-option {
    min-height: 30px;
    font-size: 11px;
  }
}

.header-quick-menu-button:focus-visible {
  outline: 2px solid rgba(217, 237, 255, 0.9);
  outline-offset: 1px;
}

.site-background {
  position: fixed;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 0;
  pointer-events: none;
  display: block;
  width: 100vw;
  height: auto;
}

.site-main {
  position: absolute;
  top: calc(128px + env(safe-area-inset-top));
  left: 0;
  width: 100%;
  z-index: 1;
  display: flex;
  justify-content: center;
  margin-top: 0;
  padding: 0 var(--divider-side-gap) calc(96px + env(safe-area-inset-bottom));
}

.app-screen {
  display: none;
  width: min(100%, var(--layout-max-width));
}

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.09) 0%, rgba(0, 0, 0, 0) 58%),
    radial-gradient(circle at 50% 62%, rgba(255, 255, 255, 0.05) 0%, rgba(0, 0, 0, 0) 62%),
    #000000;
  opacity: 1;
  visibility: visible;
  overflow: hidden;
  transition:
    opacity 0.36s ease,
    visibility 0s linear 0.36s;
}

.page-loader::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(78vw, 620px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    rgba(255, 255, 255, 0) 0deg,
    rgba(255, 255, 255, 0.28) 110deg,
    rgba(255, 255, 255, 0.42) 210deg,
    rgba(255, 255, 255, 0) 360deg
  );
  filter: blur(42px);
  opacity: 0.34;
  transform: translate(-50%, -50%) rotate(0deg);
  animation: loader-aura-spin 8s linear infinite;
  pointer-events: none;
}

.page-loader::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.04) 0%, rgba(0, 0, 0, 0) 66%);
  pointer-events: none;
}

.page-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.hero-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(100%, var(--layout-max-width));
}

.hero-stack.app-screen {
  display: none;
}

.hero-stack.app-screen.is-active {
  display: flex;
}

.profile-page {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: min(100%, var(--layout-max-width));
}

.profile-page.app-screen {
  display: none;
}

.profile-page.app-screen.is-active {
  display: flex;
}

.info-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(100%, var(--layout-max-width));
}

.info-screen.app-screen {
  display: none;
}

.info-screen.app-screen.is-active {
  display: flex;
}

.info-card {
  width: 100%;
  min-height: clamp(320px, 54vh, 520px);
  border-radius: 18px;
  border: 1px solid rgba(186, 218, 255, 0.18);
  background: linear-gradient(
    135deg,
    rgba(22, 45, 105, 0.42) 0%,
    rgba(58, 42, 116, 0.38) 100%
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    0 10px 26px rgba(5, 13, 40, 0.3);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px;
}

.info-title {
  margin: 0;
  color: #f1f8ff;
  font-family: "Roboto", sans-serif;
  font-size: clamp(28px, 6vw, 44px);
  font-weight: 700;
  line-height: 1.1;
}

.info-text {
  margin: 0;
  color: rgba(208, 226, 248, 0.8);
  font-family: "Roboto", sans-serif;
  font-size: clamp(14px, 2.8vw, 18px);
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
}

.app-dock {
  position: fixed;
  left: var(--divider-side-gap);
  right: var(--divider-side-gap);
  bottom: max(12px, env(safe-area-inset-bottom));
  z-index: 1500;
  isolation: isolate;
  min-height: 76px;
  padding: 8px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  border-radius: 999px;
  border: 1px solid rgba(214, 232, 255, 0.16);
  background: rgba(20, 22, 30, 0.72);
  box-shadow:
    0 18px 36px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  overflow: visible;
  touch-action: none;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.app-dock.is-input-hidden {
  opacity: 0;
  transform: translateY(18px);
  pointer-events: none;
}

.app-dock-orb {
  --orb-x: 0px;
  position: absolute;
  top: 50%;
  left: 0;
  width: clamp(104px, 27vw, 160px);
  height: clamp(56px, 14vw, 74px);
  border-radius: 34px;
  border: 1px solid rgba(228, 239, 255, 0.34);
  transform: translate(calc(var(--orb-x) - 50%), -50%) scale(0.92);
  opacity: 0;
  pointer-events: none;
  z-index: 4;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition:
    opacity 140ms ease,
    transform 140ms ease;
}

.app-dock-orb::before {
  content: none;
}

.app-dock-orb::after {
  content: none;
}

.app-dock.is-dragging .app-dock-orb {
  opacity: 1;
  transform: translate(calc(var(--orb-x) - 50%), -50%) scale(1);
}

.app-dock-button {
  --dock-lens: 0;
  --lens-clip-start: 0%;
  --lens-clip-end: 0%;
  appearance: none;
  position: relative;
  isolation: isolate;
  border: none;
  background: transparent;
  min-height: 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 16px;
  cursor: pointer;
  transition: transform 120ms ease;
  transform: scale(calc(1 + var(--dock-lens) * 0.15));
  z-index: 1;
}

.app-dock-button::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(56px, 14vw, 74px);
  height: clamp(56px, 14vw, 74px);
  border-radius: 50%;
  background: rgba(162, 173, 192, 0.22);
  border: 1px solid rgba(222, 230, 244, 0.3);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 6px 14px rgba(0, 0, 0, 0.2);
  transform: translate(-50%, -50%) scale(0.9);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 150ms ease,
    transform 150ms ease;
  z-index: 0;
}

.app-dock-button.is-selected::before {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.app-dock.is-dragging .app-dock-button::before {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.9);
}

.app-dock-button:active {
  transform: translateY(1px) scale(calc(1 + var(--dock-lens) * 0.15));
}

.app-dock-icon-wrap {
  --dock-icon-size: clamp(20px, 5vw, 28px);
  --lens-clip-start: 0%;
  --lens-clip-end: 0%;
  --lens-edge-left: 0;
  --lens-edge-right: 0;
  position: relative;
  isolation: isolate;
  z-index: 1;
  width: var(--dock-icon-size);
  height: var(--dock-icon-size);
  display: block;
  /* Крутилки эффекта "линзы": сдвиг/растяжение иконки у левого/правого края линзы */
  transform:
    translateX(calc((var(--lens-edge-right) - var(--lens-edge-left)) * 14px))
    translateY(calc(-3px * var(--dock-lens)))
    scale(calc(1 + var(--dock-lens) * 0.26))
    scaleX(calc(1 + (var(--lens-edge-left) + var(--lens-edge-right)) * 0.9))
    scaleY(calc(1 - (var(--lens-edge-left) + var(--lens-edge-right)) * 0.24))
    skewX(calc((var(--lens-edge-right) - var(--lens-edge-left)) * 5deg));
  transition: transform 120ms linear;
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.app-dock-button[data-target="home"] .app-dock-icon-wrap {
  --dock-icon-size: clamp(18px, 4.6vw, 26px);
}

.app-dock-button[data-target="leaders"] .app-dock-icon-wrap {
  --dock-icon-size: clamp(21px, 5.3vw, 30px);
}

.app-dock-icon {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  transition:
    filter 120ms linear,
    opacity 120ms linear,
    clip-path 120ms linear;
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  will-change: filter, clip-path, transform;
}

.app-dock-icon--base {
  filter: brightness(0) saturate(100%) invert(97%) sepia(6%) saturate(176%) hue-rotate(182deg) brightness(105%) contrast(98%);
}

.app-dock-icon--tint {
  filter:
    brightness(0) saturate(100%) invert(53%) sepia(98%) saturate(2131%) hue-rotate(196deg)
    brightness(101%) contrast(102%);
  clip-path: inset(0 calc(100% - var(--lens-clip-end)) 0 var(--lens-clip-start));
  pointer-events: none;
}

.app-dock-icon--avatar {
  border-radius: 50%;
  object-fit: cover;
}

.app-dock-icon--avatar.app-dock-icon--base,
.app-dock-icon--avatar.app-dock-icon--tint {
  filter: none;
}

.app-dock-icon--avatar.app-dock-icon--tint {
  clip-path: inset(0 calc(100% - var(--lens-clip-end)) 0 var(--lens-clip-start));
}

.app-dock-label-wrap {
  --lens-clip-start: 0%;
  --lens-clip-end: 0%;
  --lens-edge-left: 0;
  --lens-edge-right: 0;
  position: relative;
  z-index: 1;
  display: inline-grid;
  place-items: center;
  /* Крутилки эффекта "линзы": только горизонтальное растяжение текста */
  transform-origin: 50% 50%;
  transform: scale(calc(1 + var(--dock-lens) * 0.16));
  transition: transform 150ms cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform;
}

.app-dock-label {
  position: relative;
  z-index: 1;
  display: block;
  font-family: "Roboto", sans-serif;
  font-size: clamp(11px, 2.5vw, 16px);
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  color: rgb(236, 242, 255);
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.24);
  transition:
    opacity 120ms linear,
    clip-path 120ms linear,
    filter 120ms linear;
}

.dock-glyph {
  display: inline-block;
  transform-origin: 50% 50%;
  transform:
    scaleX(var(--glyph-scale-x, 1))
    skewX(var(--glyph-skew-x, 0deg));
  transition:
    transform 120ms linear,
    filter 120ms linear;
  will-change: transform;
}

.dock-glyph--space {
  width: 0.34em;
}

.app-dock-label--tint {
  position: absolute;
  inset: 0;
  z-index: 2;
  color: #0a84ff;
  text-shadow: 0 0 8px rgba(10, 132, 255, 0.34);
  clip-path: inset(0 calc(100% - var(--lens-clip-end)) 0 var(--lens-clip-start));
  pointer-events: none;
}

.app-dock-label--tint .dock-glyph {
  filter: blur(calc((var(--glyph-scale-x, 1) - 1) * 3px));
}

.app-dock:not(.is-dragging) .app-dock-button.is-selected .app-dock-icon--base,
.app-dock:not(.is-dragging) .app-dock-button.is-selected .app-dock-label--base {
  opacity: 0;
}

.app-dock:not(.is-dragging) .app-dock-button.is-selected .app-dock-icon--tint,
.app-dock:not(.is-dragging) .app-dock-button.is-selected .app-dock-label--tint {
  clip-path: inset(0 0 0 0);
}

.profile-card,
.profile-history {
  width: 100%;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(
    135deg,
    rgba(52, 88, 189, 0.36) 0%,
    rgba(109, 68, 193, 0.34) 100%
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 8px 24px rgba(8, 15, 43, 0.26);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.profile-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(18px, 3.4vw, 30px) clamp(14px, 3vw, 26px);
}

.profile-close-button {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(210, 231, 255, 0.4);
  border-radius: 50%;
  background: linear-gradient(
    145deg,
    rgba(30, 52, 114, 0.62) 0%,
    rgba(17, 30, 74, 0.58) 100%
  );
  color: #eff6ff;
  font-family: "Roboto", sans-serif;
  font-size: 20px;
  font-weight: 600;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow:
    0 0 10px rgba(119, 183, 255, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.26);
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    filter 160ms ease,
    transform 120ms ease;
}

@media (hover: hover) {
  .profile-close-button:hover {
    border-color: rgba(232, 244, 255, 0.82);
    background: linear-gradient(
      145deg,
      rgba(42, 82, 172, 0.74) 0%,
      rgba(34, 58, 138, 0.68) 100%
    );
    box-shadow:
      0 0 16px rgba(120, 185, 255, 0.48),
      inset 0 1px 0 rgba(255, 255, 255, 0.34);
    filter: brightness(1.06);
  }
}

.profile-close-button:active {
  transform: translateY(1px);
}

.profile-avatar {
  width: clamp(78px, 18vw, 124px);
  height: clamp(78px, 18vw, 124px);
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  border: 1px solid rgba(205, 231, 255, 0.5);
  box-shadow:
    0 0 16px rgba(125, 185, 255, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.profile-fullname {
  margin: 14px 0 2px;
  color: #f8fbff;
  text-align: center;
  font-family: "Roboto", sans-serif;
  font-size: clamp(22px, 4.8vw, 34px);
  font-weight: 700;
  line-height: 1.1;
}

.profile-meta {
  width: 100%;
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.profile-admin-actions {
  width: 100%;
  margin-top: 12px;
  display: flex;
  justify-content: flex-end;
}

.profile-admin-button {
  min-height: 36px;
  padding: 0 14px;
  border-radius: 11px;
  border: 1px solid rgba(169, 211, 255, 0.38);
  background: linear-gradient(
    135deg,
    rgba(38, 96, 196, 0.72) 0%,
    rgba(93, 63, 196, 0.66) 100%
  );
  color: #f6fbff;
  font-family: "Roboto", sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  box-shadow:
    0 0 12px rgba(112, 172, 255, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
  transition:
    filter 160ms ease,
    transform 120ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

@media (hover: hover) {
  .profile-admin-button:hover {
    filter: brightness(1.07);
    border-color: rgba(208, 235, 255, 0.72);
    box-shadow:
      0 0 14px rgba(122, 181, 255, 0.34),
      inset 0 1px 0 rgba(255, 255, 255, 0.34);
  }
}

.profile-admin-button:active {
  transform: translateY(1px);
}

.profile-admin-button:focus-visible {
  outline: 2px solid rgba(219, 239, 255, 0.9);
  outline-offset: 2px;
}

.profile-admin-panel {
  width: 100%;
  margin-top: 10px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(196, 222, 255, 0.2);
  background: rgba(9, 18, 48, 0.34);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.profile-admin-panel-title {
  margin: 0;
  color: #eef7ff;
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
}

.profile-admin-rate-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.profile-admin-rate-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.profile-admin-rate-label {
  color: rgba(214, 229, 255, 0.82);
  font-family: "Roboto", sans-serif;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.15;
}

.profile-admin-rate-input {
  width: 100%;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 9px;
  border: 1px solid rgba(188, 219, 255, 0.3);
  background: rgba(30, 57, 123, 0.32);
  color: #f4f9ff;
  font-family: "Roboto", sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  outline: none;
}

.profile-admin-rate-input:focus {
  border-color: rgba(213, 234, 255, 0.7);
  box-shadow: 0 0 0 2px rgba(117, 176, 255, 0.24);
}

.profile-admin-rate-input::-webkit-outer-spin-button,
.profile-admin-rate-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.profile-admin-save-button {
  min-height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(169, 211, 255, 0.34);
  background: linear-gradient(
    135deg,
    rgba(43, 108, 206, 0.72) 0%,
    rgba(93, 64, 199, 0.68) 100%
  );
  color: #f6fbff;
  font-family: "Roboto", sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.profile-admin-save-button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.profile-meta-row {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid rgba(196, 222, 255, 0.18);
  background: rgba(13, 24, 60, 0.28);
}

.profile-meta-label {
  color: rgba(226, 238, 255, 0.78);
  font-family: "Roboto", sans-serif;
  font-size: clamp(12px, 2.7vw, 14px);
  font-weight: 600;
  line-height: 1.2;
}

.profile-meta-value {
  color: #ffffff;
  font-family: "Roboto", sans-serif;
  font-size: clamp(12px, 2.8vw, 15px);
  font-weight: 700;
  line-height: 1.2;
  text-align: right;
  overflow-wrap: anywhere;
}

.profile-history {
  padding: clamp(14px, 3vw, 22px);
}

.profile-history-title {
  margin: 0;
  color: #f5f9ff;
  font-family: "Roboto", sans-serif;
  font-size: clamp(18px, 4vw, 24px);
  font-weight: 700;
  line-height: 1.1;
}

.profile-history-list {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.profile-history-controls {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.profile-history-nav-button {
  width: 34px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid rgba(194, 223, 255, 0.28);
  background: rgba(25, 47, 105, 0.38);
  color: #e9f4ff;
  font-family: "Roboto", sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.profile-history-nav-button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.profile-history-page {
  min-width: 52px;
  text-align: center;
  color: rgba(222, 238, 255, 0.82);
  font-family: "Roboto", sans-serif;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.1;
}

.profile-history-empty {
  margin: 0;
  color: rgba(214, 227, 246, 0.72);
  font-family: "Roboto", sans-serif;
  font-size: clamp(12px, 2.8vw, 14px);
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
}

.profile-history-item {
  --history-accent: rgba(170, 205, 255, 0.85);
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  gap: 2px 10px;
  padding: 10px 12px 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(196, 222, 255, 0.18);
  background: rgba(11, 21, 56, 0.3);
  position: relative;
  overflow: hidden;
  align-items: center;
}

.profile-history-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 58%;
  border-radius: 0 999px 999px 0;
  background: var(--history-accent);
  box-shadow: 0 0 10px var(--history-accent);
}

.profile-history-item--stars {
  --history-accent: #ffd451;
}

.profile-history-item--premium {
  --history-accent: #8e7dff;
}

.profile-history-item--ton {
  --history-accent: #47d5ff;
}

.profile-history-icon-wrap {
  grid-column: 1;
  grid-row: 1 / 3;
  align-self: center;
  justify-self: center;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
}

.profile-history-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.profile-history-item--premium .profile-history-icon {
  filter:
    brightness(0) saturate(100%) invert(66%) sepia(56%) saturate(1283%) hue-rotate(212deg)
    brightness(101%) contrast(101%)
    drop-shadow(0 0 6px rgba(142, 125, 255, 0.45));
}

.profile-history-item--ton .profile-history-icon {
  filter:
    brightness(0) saturate(100%) invert(78%) sepia(90%) saturate(1531%) hue-rotate(157deg)
    brightness(102%) contrast(102%)
    drop-shadow(0 0 6px rgba(71, 213, 255, 0.46));
}

.profile-history-main {
  grid-column: 2;
  color: #f4f9ff;
  font-family: "Roboto", sans-serif;
  font-size: clamp(12px, 2.8vw, 14px);
  font-weight: 700;
  line-height: 1.2;
}

.profile-history-item--stars .profile-history-main {
  color: #ffdf78;
}

.profile-history-item--premium .profile-history-main {
  color: #b1a8ff;
}

.profile-history-item--ton .profile-history-main {
  color: #8eeaff;
}

.profile-history-price {
  grid-column: 3;
  grid-row: 1 / 3;
  justify-self: end;
  align-self: center;
  color: #d9edff;
  font-family: "Roboto", sans-serif;
  font-size: clamp(12px, 2.8vw, 14px);
  font-weight: 700;
  line-height: 1.2;
  text-align: right;
}

.profile-history-date {
  grid-column: 2;
  color: rgba(200, 220, 246, 0.68);
  font-family: "Roboto", sans-serif;
  font-size: clamp(10px, 2.4vw, 12px);
  font-weight: 600;
  line-height: 1.2;
}

.brand-loader {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(2px, 0.7vw, 8px);
  margin: 0;
  font-family: "Roboto", sans-serif;
  font-size: clamp(34px, 9.8vw, 64px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  user-select: none;
}

.brand-loader::before,
.brand-loader::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}

.brand-loader::before {
  bottom: -16px;
  width: min(270px, 62vw);
  height: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
}

.brand-loader::after {
  bottom: -16px;
  width: min(120px, 28vw);
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.95) 46%,
    rgba(220, 220, 220, 0.86) 54%,
    rgba(255, 255, 255, 0) 100%
  );
  animation: loader-line-sweep 1.35s ease-in-out infinite;
}

.brand-loader-char {
  display: inline-block;
  color: transparent;
  background: linear-gradient(
    140deg,
    #ffffff 0%,
    #e0e0e0 42%,
    #bdbdbd 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0;
  transform: translateY(14px) scale(0.95);
  filter: blur(8px);
  text-shadow:
    0 0 10px rgba(255, 255, 255, 0.26),
    0 0 20px rgba(255, 255, 255, 0.12);
  animation:
    loader-char-enter 820ms cubic-bezier(0.22, 1, 0.36, 1) forwards,
    loader-char-breathe 2.4s ease-in-out infinite;
  animation-delay:
    calc(var(--char-index) * 0.09s),
    calc(0.86s + var(--char-index) * 0.09s);
}

@keyframes loader-char-enter {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.95);
    filter: blur(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes loader-char-breathe {
  0%,
  100% {
    opacity: 1;
    filter: blur(0);
  }

  50% {
    opacity: 0.88;
    filter: blur(0.2px);
  }
}

@keyframes loader-line-sweep {
  0% {
    transform: translateX(-62%);
  }

  50% {
    transform: translateX(-38%);
  }

  100% {
    transform: translateX(-62%);
  }
}

@keyframes loader-aura-spin {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.top-pill {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(3px, 0.9vw, 6px);
  width: min(100%, clamp(250px, 88vw, 420px));
  min-height: clamp(40px, 6vw, 54px);
  padding: 0 clamp(10px, 3vw, 18px);
  border-radius: 14px;
  border: 1px solid rgba(154, 205, 255, 0.18);
  background: rgba(10, 24, 66, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    0 10px 24px rgba(2, 10, 34, 0.34);
  backdrop-filter: blur(12px) saturate(120%);
  -webkit-backdrop-filter: blur(12px) saturate(120%);
  overflow: hidden;
}

.top-pill::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: none;
}

.top-pill-text {
  position: relative;
  flex: 0 1 auto;
  max-width: calc(100% - clamp(22px, 4.8vw, 36px) - clamp(3px, 0.9vw, 6px));
  min-width: 0;
  z-index: 1;
  color: #06c5ff;
  font-family: "Roboto", sans-serif;
  font-size: clamp(9px, 2.55vw, 18px);
  font-style: italic;
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
  text-align: center;
  overflow: hidden;
  text-overflow: clip;
  text-wrap: nowrap;
  text-shadow: 0 0 8px rgba(3, 190, 255, 0.18);
}

.top-pill-star {
  position: relative;
  flex: 0 0 auto;
  z-index: 1;
  display: block;
  line-height: 1;
  font-size: clamp(22px, 4.8vw, 36px);
  color: #05c6ff;
  text-shadow:
    0 0 10px rgba(2, 188, 255, 0.5),
    0 0 22px rgba(2, 188, 255, 0.24);
}

.hero-title {
  width: min(317px, 100%);
  margin: 20px 0 0;
  color: #ffffff;
  text-align: center;
  font-family: "Roboto", sans-serif;
  font-size: clamp(34px, 10.5vw, 46px);
  font-weight: 700;
  line-height: clamp(33px, 9.8vw, 44px);
  letter-spacing: -0.01em;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
  font-synthesis: none;
}

.hero-title,
.hero-title * {
  font-family: "Roboto", sans-serif;
  font-weight: 700;
  font-style: normal;
}

.hero-title-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-title-layout-wide {
  display: none;
}

.hero-title-line {
  display: block;
  color: #ffffff;
  white-space: nowrap;
}

.hero-title-accent {
  position: relative;
  display: inline-block;
  color: #9cc9ff;
  background: linear-gradient(
    90deg,
    rgba(82, 59, 251, 0.95) 0%,
    rgba(215, 57, 223, 0.58) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-title-accent::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.12em;
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(82, 59, 251, 0.65) 0%,
    rgba(193, 61, 238, 0.58) 100%
  );
}

.hero-subtitle {
  width: min(315px, 100%);
  margin: 14px 0 0;
  color: #b4b4b4;
  text-align: center;
  font-family: "Roboto", sans-serif;
  font-size: clamp(10px, 3.4vw, 14px);
  font-weight: 600;
  line-height: 1.35;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
}

.hero-subtitle-line {
  display: block;
  white-space: nowrap;
}

.main-glass-panel {
  --panel-start: 68, 48, 239;
  --panel-end: 157, 40, 154;
  --panel-alpha: 0.45;
  width: min(var(--layout-max-width), calc(100vw - (var(--divider-side-gap) * 2)));
  min-height: clamp(640px, calc(520px + 14vw), 820px);
  margin-top: 24px;
  padding: 18px clamp(12px, 2vw, 24px) 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  outline: 1px solid #ffffff;
  outline-offset: -0.5px;
  background: linear-gradient(
    90deg,
    rgba(var(--panel-start), var(--panel-alpha)) 0%,
    rgba(var(--panel-end), var(--panel-alpha)) 100%
  );
  backdrop-filter: blur(19.1px);
  -webkit-backdrop-filter: blur(19.1px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition:
    background 220ms ease,
    border-color 220ms ease,
    outline-color 220ms ease,
    min-height 220ms ease;
}

.panel-tabs {
  width: 100%;
  align-self: stretch;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-areas:
    "stars premium"
    "ton ton";
  gap: 8px;
  background: linear-gradient(
    90deg,
    rgba(49, 118, 255, 0.28) 0%,
    rgba(132, 74, 235, 0.28) 100%
  );
  border-radius: 12px;
  padding: 8px;
}

.panel-tab {
  position: relative;
  isolation: isolate;
  --tab-icon-width: 154px;
  --tab-icon-height: 48px;
  --tab-icon-mask: none;
  --tab-icon-mask-size: contain;
  --tab-icon-color-active: #0d1220;
  --tab-icon-color-inactive: #ffffff;
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  background: rgba(18, 26, 54, 0.12);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(48px, 5.5vw, 72px);
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 120ms ease,
    opacity 120ms ease;
}

.panel-tab::before {
  content: "";
  width: min(100%, var(--tab-icon-width));
  height: var(--tab-icon-height);
  background: var(--tab-icon-color-inactive);
  -webkit-mask-image: var(--tab-icon-mask);
  mask-image: var(--tab-icon-mask);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: var(--tab-icon-mask-size);
  mask-size: var(--tab-icon-mask-size);
}

.panel-tab.is-active {
  background: linear-gradient(
    135deg,
    rgba(105, 176, 255, 0.58) 0%,
    rgba(124, 120, 255, 0.46) 100%
  );
  border-color: transparent;
  /* Настройка свечения активной кнопки: меняй радиус (12px) и прозрачность (0.14). */
  box-shadow:
    0 0 12px rgba(255, 255, 255, 0.473),
    0 4px 14px rgba(44, 92, 196, 0.493),
    inset 0 1px 0 rgba(255, 255, 255, 0.466);
  backdrop-filter: blur(6px) saturate(125%);
  -webkit-backdrop-filter: blur(6px) saturate(125%);
}

.panel-tab.is-active::before {
  background: var(--tab-icon-color-active);
}

@media (hover: hover) {
  .panel-tab:not(.is-active):hover {
    background: rgba(86, 138, 255, 0.16);
    border-color: rgba(186, 215, 255, 0.42);
    box-shadow: 0 0 10px rgba(90, 150, 255, 0.22);
  }
}

.panel-tab:active {
  transform: translateY(1px);
}

.panel-tab[data-panel="stars"] {
  grid-area: stars;
  --tab-icon-mask: url("blackstar.png");
}

.panel-tab[data-panel="premium"] {
  grid-area: premium;
  --tab-icon-mask: url("black prem.png");
}

.panel-tab[data-panel="ton"] {
  grid-area: ton;
  --tab-icon-width: 308px;
  --tab-icon-mask: url("blackton.png");
}

.panel-tab-icon {
  display: none !important;
}

.offer-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(6px, 1vw, 10px);
}

.offer-card {
  appearance: none;
  position: relative;
  border: 1px solid rgba(186, 215, 255, 0.22);
  border-radius: 14px;
  background: linear-gradient(
    135deg,
    rgba(46, 78, 170, 0.4) 0%,
    rgba(107, 67, 187, 0.36) 100%
  );
  height: clamp(92px, 13vw, 124px);
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: visible;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 120ms ease;
}

.offer-card::after {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  top: -8px;
  height: 18px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  filter: blur(9px);
  transition: opacity 180ms ease;
}

.offer-card-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  min-width: 0;
  padding: clamp(14px, 1.9vw, 22px) 2px 2px;
  z-index: 1;
}

.offer-card-badge {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  min-width: 0;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: clamp(18px, 2.1vw, 24px);
  padding: 0;
  border-radius: 10px;
  font-family: "Roboto", sans-serif;
  font-size: clamp(8px, 0.95vw, 11px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  pointer-events: none;
  z-index: 2;
  border: none;
  box-shadow:
    0 0 12px rgba(106, 152, 255, 0.45),
    0 4px 10px rgba(23, 44, 109, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.36);
  filter: saturate(1.2);
}

.offer-card-badge--value {
  color: #fff9ef;
  text-shadow: 0 1px 3px rgba(76, 39, 6, 0.6);
  background: linear-gradient(
    135deg,
    #ffd98f 0%,
    #ffb35f 52%,
    #ff9250 100%
  );
  box-shadow:
    0 0 14px rgba(255, 178, 95, 0.5),
    0 4px 10px rgba(124, 64, 14, 0.45),
    inset 0 1px 0 rgba(255, 240, 214, 0.45);
}

.offer-card-badge--popular {
  color: #f2fff5;
  text-shadow: 0 1px 3px rgba(7, 56, 28, 0.6);
  background: linear-gradient(
    135deg,
    #3bff86 0%,
    #1eea66 50%,
    #0dcf57 100%
  );
  box-shadow:
    0 0 14px rgba(60, 255, 141, 0.55),
    0 4px 10px rgba(8, 92, 40, 0.45),
    inset 0 1px 0 rgba(223, 255, 236, 0.45);
}

.offer-card-value {
  --offer-amount-size: clamp(18px, 2.5vw, 30px);
  --offer-star-slot-size: calc(var(--offer-amount-size) * 1.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: clamp(3px, 0.5vw, 6px);
  white-space: nowrap;
  max-width: 100%;
}

.offer-card-value--text {
  gap: 0;
}

.offer-grid-premium .offer-card-value {
  --offer-amount-size: clamp(16px, 2.2vw, 26px);
}

.offer-card-amount {
  color: #ffffff;
  font-family: "Roboto", sans-serif;
  font-size: var(--offer-amount-size);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.01em;
}

.offer-card-star {
  width: var(--offer-star-slot-size);
  height: var(--offer-amount-size);
  object-fit: contain;
  object-position: center;
  flex: 0 0 var(--offer-star-slot-size);
  display: block;
}

.offer-card-star--dark {
  display: none;
  width: calc(var(--offer-star-slot-size) + 1px);
  height: calc(var(--offer-amount-size) + 1px);
}

.offer-card-price {
  color: rgba(226, 237, 255, 0.92);
  font-family: "Roboto", sans-serif;
  font-size: clamp(10px, 1.25vw, 14px);
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.01em;
}

.offer-card.is-active {
  border-color: transparent;
  background: linear-gradient(
    135deg,
    rgba(127, 198, 255, 0.88) 0%,
    rgba(152, 145, 255, 0.82) 100%
  );
  box-shadow:
    0 0 18px rgba(198, 224, 255, 0.62),
    0 7px 20px rgba(44, 92, 196, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(6px) saturate(125%);
  -webkit-backdrop-filter: blur(6px) saturate(125%);
}

.offer-card.is-active .offer-card-amount {
  color: #111111;
  font-size: var(--offer-amount-size);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.01em;
  -webkit-text-stroke: 0.7px #111111;
}

.offer-card.is-active .offer-card-price {
  color: #111111;
  font-size: clamp(10px, 1.25vw, 14px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  -webkit-text-stroke: 0.15px #111111;
}

.offer-card.is-active .offer-card-badge {
  color: #111111;
  font-size: clamp(8px, 0.95vw, 11px);
  font-weight: 700;
  line-height: 1;
}

.offer-card.is-active .offer-card-star--light {
  display: none;
}

.offer-card.is-active .offer-card-star--dark {
  display: block;
}

.offer-card.is-active.offer-card--value::after {
  opacity: 1;
  background: radial-gradient(
    ellipse at center,
    rgba(255, 187, 98, 0.95) 0%,
    rgba(255, 146, 80, 0.72) 55%,
    rgba(255, 146, 80, 0) 100%
  );
}

.offer-card.is-active.offer-card--popular::after {
  opacity: 1;
  background: radial-gradient(
    ellipse at center,
    rgba(74, 255, 138, 0.92) 0%,
    rgba(17, 221, 92, 0.72) 55%,
    rgba(17, 221, 92, 0) 100%
  );
}

.offer-card:active {
  transform: translateY(1px);
  background: linear-gradient(
    135deg,
    rgba(136, 206, 255, 0.92) 0%,
    rgba(162, 154, 255, 0.88) 100%
  );
  box-shadow:
    0 0 20px rgba(184, 216, 255, 0.62),
    0 7px 18px rgba(40, 82, 181, 0.54),
    inset 0 1px 0 rgba(255, 255, 255, 0.68);
}

.offer-card.is-active:active {
  background: linear-gradient(
    135deg,
    rgba(145, 212, 255, 0.96) 0%,
    rgba(171, 161, 255, 0.92) 100%
  );
  box-shadow:
    0 0 22px rgba(205, 230, 255, 0.72),
    0 8px 20px rgba(47, 96, 199, 0.68),
    inset 0 1px 0 rgba(255, 255, 255, 0.74);
}

@media (hover: hover) {
  .offer-card:hover {
    border-color: rgba(225, 242, 255, 0.8);
  }

  .offer-card:not(.is-active):hover {
    background: linear-gradient(
      135deg,
      rgba(72, 116, 226, 0.5) 0%,
      rgba(140, 93, 226, 0.44) 100%
    );
    box-shadow:
      0 0 14px rgba(129, 186, 255, 0.34),
      inset 0 1px 0 rgba(255, 255, 255, 0.3);
  }

  .offer-card.is-active:hover {
    border-color: rgba(238, 247, 255, 0.92);
  }
}

.form-stack {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-stack--ton {
  margin-top: 0;
}

.form-price-row {
  width: 100%;
  min-height: 34px;
  margin-top: 8px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 5.2vw, 44px);
}

.form-price-value {
  color: #ffffff;
  font-family: "Roboto", sans-serif;
  font-size: clamp(20px, 3.6vw, 34px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.01em;
  text-shadow: 0 0 10px rgba(95, 158, 255, 0.2);
  white-space: nowrap;
}

.order-submit-button {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: min(100%, 400px);
  max-width: 400px;
  align-self: center;
  min-height: 56px;
  border: 1px solid rgba(176, 223, 255, 0.42);
  border-radius: 14px;
  margin-top: 8px;
  padding: 0 16px;
  cursor: pointer;
  color: #ffffff;
  font-family: "Roboto", sans-serif;
  font-size: clamp(18px, 2.3vw, 22px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: none;
  background: linear-gradient(
    112deg,
    rgba(0, 152, 255, 0.9) 0%,
    rgba(63, 110, 255, 0.86) 48%,
    rgba(112, 88, 255, 0.84) 100%
  );
  text-shadow: 0 1px 3px rgba(6, 23, 69, 0.35);
  box-shadow:
    0 8px 22px rgba(32, 89, 193, 0.42),
    0 0 16px rgba(82, 151, 255, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.38);
  transition:
    transform 140ms ease,
    filter 140ms ease,
    box-shadow 180ms ease,
    opacity 140ms ease,
    border-color 180ms ease;
}

.order-submit-button::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0) 15%,
    rgba(255, 255, 255, 0.32) 43%,
    rgba(255, 255, 255, 0) 72%
  );
  transform: translateX(-125%);
  transition: transform 420ms ease;
}

.order-submit-button:not(:disabled)::before {
  animation: order-mobile-sweep 3s ease-in-out infinite;
}

@keyframes order-mobile-glow {
  0%,
  100% {
    box-shadow:
      0 8px 22px rgba(32, 89, 193, 0.42),
      0 0 16px rgba(82, 151, 255, 0.34),
      inset 0 1px 0 rgba(255, 255, 255, 0.38);
    filter: brightness(1);
  }

  50% {
    box-shadow:
      0 10px 26px rgba(36, 101, 213, 0.52),
      0 0 22px rgba(114, 182, 255, 0.5),
      inset 0 1px 0 rgba(255, 255, 255, 0.45);
    filter: brightness(1.06);
  }
}

@keyframes order-mobile-sweep {
  0%,
  70%,
  100% {
    transform: translateX(-125%);
  }

  35% {
    transform: translateX(125%);
  }
}

@media (hover: hover) {
  .order-submit-button:hover {
    filter: brightness(1.08) saturate(1.05);
    border-color: rgba(210, 240, 255, 0.78);
    box-shadow:
      0 10px 28px rgba(35, 98, 210, 0.52),
      0 0 20px rgba(98, 170, 255, 0.46),
      inset 0 1px 0 rgba(255, 255, 255, 0.5);
  }

  .order-submit-button:hover::before {
    transform: translateX(125%);
  }
}

.order-submit-button:active {
  transform: translateY(1px) scale(0.985);
  filter: brightness(0.98) saturate(0.98);
}

.order-submit-button:focus-visible {
  outline: 2px solid rgba(214, 236, 255, 0.92);
  outline-offset: 2px;
}

.order-submit-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

.order-note {
  margin: 2px 0 0;
  color: rgba(210, 224, 244, 0.62);
  font-family: "Roboto", sans-serif;
  font-size: clamp(11px, 1.05vw, 14px);
  font-weight: 600;
  line-height: 1.35;
  width: 100%;
  max-width: 100%;
  text-align: left;
  text-wrap: pretty;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field-label {
  color: #f4f8ff;
  font-family: "Roboto", sans-serif;
  font-size: clamp(13px, 1.2vw, 16px);
  font-weight: 700;
  line-height: 1.2;
}

.form-input-wrap {
  --form-icon-size-user: 22px;
  --form-icon-size-star: 19px;
  --form-icon-size-ton: 23px;
  --form-icon-lane: 24px;
  --form-label-left: calc(8px + var(--form-icon-lane) + 8px);
  width: 100%;
  min-height: clamp(44px, 5.2vw, 56px);
  border-radius: 14px;
  border: 1px solid rgba(191, 220, 255, 0.2);
  background: linear-gradient(
    135deg,
    rgba(54, 89, 187, 0.34) 0%,
    rgba(109, 68, 193, 0.3) 100%
  );
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
  position: relative;
  display: grid;
  grid-template-columns: var(--form-icon-lane) minmax(0, 1fr);
  align-items: center;
  column-gap: 8px;
  padding: 0 12px 0 8px;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease;
}

.form-input-wrap--promo {
  --form-icon-size-promo: 19px;
}

.form-input-wrap--username {
  --form-self-button-width: clamp(50px, 8.8vw, 68px);
  --form-self-button-gap: 6px;
  grid-template-columns: var(--form-icon-lane) minmax(0, 1fr) var(--form-self-button-width);
}

.form-input-icon {
  display: block;
  grid-column: 1;
  justify-self: center;
  align-self: center;
  object-fit: contain;
  object-position: center;
}

.form-input-icon--user {
  width: var(--form-icon-size-user);
  height: var(--form-icon-size-user);
}

.form-input-icon--star {
  width: var(--form-icon-size-star);
  height: var(--form-icon-size-star);
}

.form-input-icon--ton {
  width: var(--form-icon-size-ton);
  height: var(--form-icon-size-ton);
}

.form-input-icon--promo {
  width: var(--form-icon-size-promo);
  height: var(--form-icon-size-promo);
}

.form-input-wrap:focus-within {
  border-color: rgba(201, 228, 255, 0.62);
  box-shadow:
    0 0 10px rgba(112, 167, 255, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

@media (hover: hover) {
  .form-input-wrap:hover {
    border-color: rgba(201, 228, 255, 0.48);
    box-shadow:
      0 0 8px rgba(112, 167, 255, 0.18),
      inset 0 1px 0 rgba(255, 255, 255, 0.18);
  }
}

.form-static-wrap {
  --form-icon-size-user: 22px;
  --form-icon-size-star: 19px;
  --form-icon-lane: 24px;
  width: 100%;
  min-height: clamp(44px, 5.2vw, 56px);
  border-radius: 14px;
  border: 1px solid rgba(191, 220, 255, 0.2);
  background: linear-gradient(
    135deg,
    rgba(54, 89, 187, 0.34) 0%,
    rgba(109, 68, 193, 0.3) 100%
  );
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
  position: relative;
  display: grid;
  grid-template-columns: var(--form-icon-lane) minmax(0, 1fr);
  align-items: center;
  column-gap: 8px;
  padding: 0 12px 0 8px;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease;
}

.form-static-icon {
  grid-column: 1;
  justify-self: center;
  align-self: center;
  width: var(--form-icon-size-star);
  height: var(--form-icon-size-star);
  object-fit: contain;
  object-position: center;
}

.form-static-text {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  color: rgb(255, 255, 255);
  text-align: center;
  pointer-events: none;
}

@media (hover: hover) {
  .form-static-wrap:hover {
    border-color: rgba(201, 228, 255, 0.48);
    box-shadow:
      0 0 8px rgba(112, 167, 255, 0.18),
      inset 0 1px 0 rgba(255, 255, 255, 0.18);
  }
}

.form-input {
  grid-column: 2;
  min-width: 0;
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  color: #eaf3ff;
  font-family: "Roboto", sans-serif;
  font-size: clamp(12px, 1.15vw, 15px);
  font-weight: 600;
  line-height: 1.2;
}

.form-input--promo {
  grid-column: 2;
  text-transform: uppercase;
}

.form-input-wrap--username .form-input {
  grid-column: 2;
  padding-right: 0;
}

.form-self-fill-button {
  position: static;
  grid-column: 3;
  justify-self: end;
  align-self: center;
  width: calc(var(--form-self-button-width) - 2px);
  min-height: clamp(24px, 3.2vw, 30px);
  border-radius: 9px;
  border: 1px solid rgba(182, 217, 255, 0.3);
  background: linear-gradient(
    135deg,
    rgba(54, 100, 192, 0.52) 0%,
    rgba(102, 70, 188, 0.5) 100%
  );
  color: #eaf4ff;
  font-family: "Roboto", sans-serif;
  font-size: clamp(10px, 0.95vw, 12px);
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 0 8px rgba(108, 170, 255, 0.15);
  transition:
    filter 150ms ease,
    border-color 150ms ease,
    box-shadow 150ms ease,
    transform 120ms ease;
}

.form-self-fill-button:active {
  transform: scale(0.98);
}

.form-self-fill-button:focus-visible {
  outline: 2px solid rgba(214, 235, 255, 0.92);
  outline-offset: 1px;
}

@media (hover: hover) {
  .form-self-fill-button:hover {
    filter: brightness(1.08);
    border-color: rgba(203, 231, 255, 0.56);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.25),
      0 0 10px rgba(108, 170, 255, 0.22);
  }
}

.form-input::placeholder {
  color: rgba(214, 229, 255, 0.56);
  font-size: clamp(11px, 1.05vw, 14px);
}

.form-floating-label {
  position: absolute;
  left: var(--form-label-left);
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-family: "Roboto", sans-serif;
  font-size: clamp(11px, 1.05vw, 14px);
  font-weight: 600;
  line-height: 1;
  color: rgba(214, 229, 255, 0.56);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
  transition:
    top 170ms ease,
    transform 170ms ease,
    font-size 170ms ease,
    color 170ms ease,
    padding 170ms ease;
}

.form-input-wrap--username .form-floating-label {
  right: calc(12px + var(--form-self-button-width) + var(--form-self-button-gap));
}

.form-input-wrap:focus-within .form-floating-label,
.form-input-wrap .form-input:not(:placeholder-shown) ~ .form-floating-label {
  top: 0;
  transform: translateY(-50%);
  font-size: clamp(9px, 0.9vw, 11px);
  color: rgba(225, 238, 255, 0.9);
  padding: 0 6px;
  right: auto;
  max-width: calc(100% - var(--form-label-left) - 12px);
  background: rgba(9, 17, 45, 0.48);
  border-radius: 6px;
}

.form-input-wrap--username:focus-within .form-floating-label,
.form-input-wrap--username .form-input:not(:placeholder-shown) ~ .form-floating-label {
  max-width: calc(
    100% - var(--form-label-left) - var(--form-self-button-width) - var(--form-self-button-gap) - 12px
  );
}

.form-input[type="number"] {
  -moz-appearance: textfield;
}

.form-input[type="number"]::-webkit-outer-spin-button,
.form-input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

@media (hover: none) and (pointer: coarse) {
  .app-dock-icon-wrap {
    transform:
      translateX(calc((var(--lens-edge-right) - var(--lens-edge-left)) * 8px))
      translateY(calc(-2px * var(--dock-lens)))
      scale(calc(1 + var(--dock-lens) * 0.2))
      scaleX(calc(1 + (var(--lens-edge-left) + var(--lens-edge-right)) * 0.5))
      scaleY(calc(1 - (var(--lens-edge-left) + var(--lens-edge-right)) * 0.14))
      skewX(calc((var(--lens-edge-right) - var(--lens-edge-left)) * 3deg));
  }

  .app-dock-label--tint .dock-glyph {
    filter: blur(calc((var(--glyph-scale-x, 1) - 1) * 1.8px));
  }

  .form-input {
    font-size: 16px;
  }

  .order-submit-button:not(:disabled) {
    animation: order-mobile-glow 2.6s ease-in-out infinite;
  }

  .order-submit-button:not(:disabled)::before {
    animation: order-mobile-sweep 3s ease-in-out infinite;
  }
}

.panel-content {
  flex: 1;
  min-height: 0;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(35, 15, 4, 0.32);
  padding: clamp(14px, 1.8vw, 22px);
  position: relative;
  overflow: hidden;
}

.panel-view {
  display: block;
  position: absolute;
  inset: clamp(14px, 1.8vw, 22px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px) scale(0.985);
  z-index: 0;
  transition:
    opacity 230ms ease,
    transform 230ms ease,
    visibility 0s linear 230ms;
}

.panel-view.is-active {
  position: relative;
  inset: auto;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  z-index: 2;
  transition-delay: 0s;
}

@media (prefers-reduced-motion: reduce) {
  .panel-view {
    transition: none;
  }
}

.panel-view-title {
  margin: 0;
  color: #ffffff;
  font-family: "Roboto", sans-serif;
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 700;
  line-height: 1.15;
}

.panel-view-text {
  margin: 12px 0 0;
  color: #cfcfcf;
  font-family: "Roboto", sans-serif;
  font-size: clamp(14px, 1.3vw, 18px);
  font-weight: 600;
  line-height: 1.35;
}

.main-glass-panel.is-stars {
  --panel-start: 68, 48, 239;
  --panel-end: 157, 40, 154;
  min-height: clamp(640px, calc(520px + 14vw), 820px);
}

.main-glass-panel.is-premium {
  --panel-start: 68, 48, 239;
  --panel-end: 157, 40, 154;
  min-height: clamp(560px, calc(470px + 12vw), 730px);
}

.main-glass-panel.is-ton {
  --panel-start: 68, 48, 239;
  --panel-end: 157, 40, 154;
  min-height: clamp(500px, calc(430px + 10vw), 640px);
}

.main-glass-panel.is-gifts {
  --panel-start: 68, 48, 239;
  --panel-end: 157, 40, 154;
  min-height: clamp(560px, calc(470px + 12vw), 750px);
}

header .logosl {
  position: absolute;
  left: var(--divider-side-gap);
  top: 50%;
  transform: translateY(-50%);
  display: block;
  object-fit: contain;
  width: 112px;
  height: 57px;
  flex-shrink: 0;
  filter:
    drop-shadow(0 0 3px rgba(255, 255, 255, 0.55))
    drop-shadow(0 0 5px rgba(255, 255, 255, 0.35));
}

header .fullogo {
  position: absolute;
  left: var(--divider-side-gap);
  top: 50%;
  transform: translateY(-50%);
  display: none;
  width: 348px;
  height: 60px;
  object-fit: contain;
  filter:
    drop-shadow(0 0 3px rgba(255, 255, 255, 0.55))
    drop-shadow(0 0 5px rgba(255, 255, 255, 0.35));
}

header .user-avatar-toggle {
  position: absolute;
  right: var(--divider-side-gap);
  top: 50%;
  transform: translateY(-50%);
  isolation: isolate;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  outline: none;
  box-shadow: none;
  pointer-events: auto;
  width: var(--avatar-size);
  height: var(--avatar-size);
  display: grid;
  place-items: center;
  transition: transform 140ms ease, filter 160ms ease;
}

header .user-avatar-toggle::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 999px;
  border: 1px solid rgba(189, 221, 255, 0.34);
  box-shadow: 0 0 10px rgba(103, 166, 255, 0.2);
  opacity: 0.62;
  pointer-events: none;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    opacity 160ms ease;
}

header .user-avatar-toggle:active {
  transform: translateY(-50%) scale(0.98);
}

@media (hover: hover) {
  header .user-avatar-toggle:hover {
    filter: brightness(1.08);
  }

  header .user-avatar-toggle:hover::before {
    border-color: rgba(212, 236, 255, 0.58);
    box-shadow: 0 0 14px rgba(119, 182, 255, 0.34);
    opacity: 0.9;
  }
}

header .user-avatar-toggle:focus-visible::before {
  border-color: rgba(220, 239, 255, 0.82);
  box-shadow:
    0 0 0 2px rgba(123, 187, 255, 0.26),
    0 0 14px rgba(130, 193, 255, 0.36);
  opacity: 1;
}

@media (prefers-reduced-motion: no-preference) {
  header .user-avatar-toggle::before {
    animation: avatar-action-hint 2.6s ease-in-out infinite;
  }
}

@keyframes avatar-action-hint {
  0%,
  100% {
    opacity: 0.52;
    transform: scale(1);
  }

  50% {
    opacity: 0.82;
    transform: scale(1.035);
  }
}

header .user-avatar {
  width: 100%;
  height: 100%;
  border: none;
  outline: none;
  box-shadow: none;
  display: block;
  object-fit: contain;
}

@media (min-width: 768px) {
  :root {
    --header-current-height: calc(var(--header-height) + 15px);
  }

  .panel-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-areas: "stars premium ton";
    align-items: stretch;
  }

  .panel-tab[data-panel="ton"] {
    --tab-icon-mask-size: 122% auto;
  }

  header .logosl {
    display: none;
  }

  header .fullogo {
    display: block;
  }

  .top-pill {
    width: min(100%, clamp(360px, 58vw, 560px));
  }

  .hero-title {
    width: min(620px, 100%);
    margin-top: 24px;
    font-size: clamp(52px, 6.2vw, 72px);
    line-height: clamp(50px, 5.8vw, 68px);
  }

  .hero-title-layout-mobile {
    display: none;
  }

  .hero-title-layout-wide {
    display: flex;
  }

  .hero-subtitle {
    width: min(620px, 100%);
    margin-top: 18px;
    font-size: clamp(16px, 1.9vw, 22px);
    line-height: 1.3;
  }

  .main-glass-panel {
    margin-top: 30px;
  }
}

@media (min-width: 1025px) {
  :root {
    --header-current-height: calc(var(--header-height) + 30px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-loader::before,
  .brand-loader::after {
    animation: none;
  }

  .brand-loader-char {
    animation: none;
    opacity: 1;
    transform: none;
    filter: none;
  }

  .order-submit-button,
  .order-submit-button::before {
    animation: none !important;
  }
}
