.sg-header,
.sg-header button,
.sg-header input,
.sg-header textarea,
.sg-header select,
.sg-header h1,
.sg-header h2,
.sg-header h3,
.sg-header h4,
.sg-header h5,
.sg-header h6,
.sg-header p,
.sg-header a,
.sg-header span,
.sg-header li,
.sg-header strong,
.sg-header em,
.sg-header small {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
  font-style: normal !important;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0 !important;
  text-transform: none;
  text-decoration: none !important;
  font-kerning: normal !important;
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1 !important;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.sg-header,
.sg-header *,
.sg-header *::before,
.sg-header *::after {
  box-sizing: border-box;
}

.sg-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 9999;
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.18) 100%);
}

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

.sg-header__inner {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  width: min(1280px, calc(100% - 48px));
  margin: 12px auto 0 !important;
  padding: 10px 18px;
  border-radius: 24px;
  background: rgba(28, 28, 30, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.sg-header__brand {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: #ffffff;
  line-height: 1;
  margin-right: 6px;
  padding: 10px 12px;
  border-radius: 18px;
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.sg-header__brand:hover,
.sg-header__brand:focus-visible {
  background: rgba(255, 255, 255, 0.05);
  outline: none;
  transform: translateY(-1px);
}

.sg-header__brand img {
  display: block;
  max-height: 40px;
  width: auto;
}

.sg-nav {
  margin-left: auto;
  min-width: 0;
}

.sg-nav__list,
.sg-nav__group-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sg-nav__list {
  display: flex;
  align-items: center;
  gap: 6px;
}

.sg-nav__item {
  position: relative;
  margin: 0;
  padding: 0;
}

.sg-nav__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 14px;
  color: #aeaeb2;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  transition: color 0.22s ease, background-color 0.22s ease, border-color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

.sg-nav__link:hover,
.sg-nav__link:focus-visible,
.sg-nav__item--has-dropdown:hover > .sg-nav__trigger,
.sg-nav__item--has-dropdown:focus-within > .sg-nav__trigger {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  outline: none;
}

.sg-nav__caret {
  width: 8px;
  height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  transition: transform 0.2s ease;
}

.sg-nav__item--has-dropdown:hover .sg-nav__caret,
.sg-nav__item--has-dropdown:focus-within .sg-nav__caret {
  transform: rotate(225deg) translateY(-1px);
}

.sg-nav__dropdown {
  position: absolute;
  top: calc(100% + 16px);
  left: 0;
  width: min(960px, calc(100vw - 32px));
  padding: 22px;
  border-radius: 26px;
  background: rgba(18, 18, 20, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(255, 255, 255, 0.02) inset;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
}

.sg-nav__item--has-dropdown:hover .sg-nav__dropdown,
.sg-nav__item--has-dropdown:focus-within .sg-nav__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.sg-nav__dropdown-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.sg-nav__group {
  padding: 16px;
  border-radius: 20px;
  background: rgba(28, 28, 30, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.sg-nav__group-title {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8e8e93;
}

.sg-nav__group-list li + li {
  margin-top: 7px;
}

.sg-nav__sublink {
  display: block;
  padding: 11px 12px;
  border-radius: 14px;
  color: #aeaeb2;
  text-decoration: none;
  font-size: 14px;
  line-height: 1.35;
  transition: background-color 0.22s ease, color 0.22s ease, transform 0.22s ease, border-color 0.22s ease;
  border: 1px solid transparent;
}

.sg-nav__sublink:hover,
.sg-nav__sublink:focus-visible {
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(255, 255, 255, 0.075);
  color: #ffffff;
  outline: none;
  transform: translateX(2px);
}


.sg-nav__dropdown--quick_tools {
  width: fit-content;
  max-width: calc(100vw - 32px);
  padding: 18px;
}

.sg-nav__dropdown-grid--quick_tools {
  grid-template-columns: minmax(248px, max-content);
  gap: 0;
  width: max-content;
  max-width: 100%;
  align-items: start;
}

.sg-nav__dropdown--quick_tools .sg-nav__group {
  align-self: start;
  padding: 14px;
}

.sg-nav__dropdown--quick_tools .sg-nav__group-list li + li {
  margin-top: 6px;
}

.sg-nav__dropdown--quick_tools .sg-nav__sublink {
  padding: 10px 12px;
}

.sg-nav__dropdown--info_menu {
  width: auto;
  max-width: calc(100vw - 32px);
  padding: 18px;
}

.sg-nav__dropdown-grid--info_menu {
  grid-template-columns: minmax(248px, 320px);
  gap: 14px;
  width: max-content;
  max-width: 100%;
  align-items: start;
}

.sg-nav__dropdown--info_menu .sg-nav__group {
  align-self: start;
  padding: 14px;
}

.sg-nav__dropdown--info_menu .sg-nav__group-list li + li {
  margin-top: 6px;
}

.sg-nav__dropdown--info_menu .sg-nav__sublink {
  padding: 10px 12px;
}

.sg-header__actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
}


.sg-header__balance {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 14px;
  color: #ffffff;
  background: rgba(28, 28, 30, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  white-space: nowrap;
  flex: 0 0 auto;
}

.sg-header__balance:hover,
.sg-header__balance:focus-visible {
  background: rgba(44, 44, 46, 0.9);
  border-color: rgba(255, 255, 255, 0.12);
  outline: none;
}

.sg-header-balance__icon {
  font-size: 13px;
  line-height: 1;
}

.sg-header-balance__count {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
}

.sg-header-balance__label {
  color: #d1d1d6;
  font-size: 13px;
  font-weight: 600;
}

.sg-lang-switcher {
  position: relative;
}

.sg-lang-switcher__toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 14px;
  color: #ffffff;
  background: rgba(28, 28, 30, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition: background-color 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
}

.sg-lang-switcher:hover .sg-lang-switcher__toggle,
.sg-lang-switcher:focus-within .sg-lang-switcher__toggle {
  background: rgba(44, 44, 46, 0.9);
  border-color: rgba(255, 255, 255, 0.12);
  outline: none;
}

.sg-lang-switcher__code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 24px;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em !important;
}

.sg-lang-switcher__label {
  color: #d1d1d6;
  font-size: 13px;
  font-weight: 600;
}

.sg-lang-switcher__caret {
  width: 8px;
  height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  transition: transform 0.2s ease;
}

.sg-lang-switcher:hover .sg-lang-switcher__caret,
.sg-lang-switcher:focus-within .sg-lang-switcher__caret {
  transform: rotate(225deg) translateY(-1px);
}

.sg-lang-switcher__menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  min-width: 180px;
  padding: 10px;
  border-radius: 18px;
  background: rgba(18, 18, 20, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.38);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.sg-lang-switcher:hover .sg-lang-switcher__menu,
.sg-lang-switcher:focus-within .sg-lang-switcher__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.sg-lang-switcher__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  color: #d1d1d6;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.sg-lang-switcher__item + .sg-lang-switcher__item {
  margin-top: 4px;
}

.sg-lang-switcher__item:hover,
.sg-lang-switcher__item:focus-visible,
.sg-lang-switcher__item.is-current {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(255, 255, 255, 0.08);
  outline: none;
}

.sg-lang-switcher__item-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 24px;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em !important;
}

.sg-lang-switcher__item-label {
  font-size: 13px;
  font-weight: 600;
  color: inherit;
}

.sg-header__login,
.sg-header__register,
.sg-header__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 14px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  border: 1px solid transparent;
  transition: background-color 0.22s ease, color 0.22s ease, border-color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

.sg-header__login {
  color: #aeaeb2;
  background: transparent;
}

.sg-header__login:hover,
.sg-header__login:focus-visible {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
  outline: none;
}

.sg-header__register {
  color: #ffffff;
  background: rgba(28, 28, 30, 0.78);
  border-color: rgba(255, 255, 255, 0.09);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.sg-header__register:hover,
.sg-header__register:focus-visible {
  background: rgba(44, 44, 46, 0.9);
  border-color: rgba(255, 255, 255, 0.12);
  outline: none;
}

.sg-header__cta {
  color: #ffffff;
  background: linear-gradient(135deg, #007aff 0%, #5856d6 100%);
  box-shadow: 0 12px 28px rgba(0, 122, 255, 0.28);
}

.sg-header__cta:hover,
.sg-header__cta:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(0, 122, 255, 0.34);
  outline: none;
}

.sg-burger {
  display: none;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(28, 28, 30, 0.76);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.sg-burger:hover,
.sg-burger:focus-visible {
  background: rgba(44, 44, 46, 0.9);
  border-color: rgba(255, 255, 255, 0.12);
  outline: none;
}

.sg-burger span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #ffffff;
}

.sg-burger span + span {
  margin-top: 0;
}


@media (max-width: 1120px) {
  .sg-lang-switcher__label {
    display: none;
  }
}

@media (max-width: 760px) {
  .sg-nav__dropdown--quick_tools {
    width: min(calc(100vw - 24px), 100%);
    padding: 14px;
  }

  .sg-nav__dropdown-grid--quick_tools {
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
  }

  .sg-nav__dropdown--info_menu {
    width: min(calc(100vw - 24px), 100%);
    padding: 14px;
  }

  .sg-nav__dropdown-grid--info_menu {
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
  }
}

@media (max-width: 1180px) {
  .sg-header__inner {
    gap: 16px;
    padding-inline: 14px;
  }

  .sg-header__actions {
    gap: 8px;
  }

  .sg-header__login,
  .sg-header__register,
  .sg-header__cta,
  .sg-nav__link {
    padding-inline: 13px;
  }
}

@media (max-width: 991px) {
  .sg-header__inner {
    min-height: 78px;
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 20px;
  }

  .sg-nav,
  .sg-header__actions {
    display: none;
  }

  .sg-burger {
    display: inline-flex;
    margin-left: auto;
  }

  .sg-header__brand img {
    max-height: 34px;
  }
}

.sg-header__brand,
.sg-header__brand span,
.sg-nav__link,
.sg-nav__sublink,
.sg-header__actions a,
.sg-header__actions button,
.sg-burger {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
  font-style: normal !important;
}

.sg-header__brand span {
  color: #ffffff;
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  letter-spacing: -0.01em !important;
}

.sg-nav__link {
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
}

.sg-nav__group-title {
  font-size: 12px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
}

.sg-nav__sublink {
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 1.35 !important;
  letter-spacing: 0 !important;
}


.sg-nav__dropdown--ai_tools {
  width: fit-content;
  max-width: calc(100vw - 40px);
  padding: 18px;
}

.sg-nav__dropdown-grid--ai_tools {
  grid-template-columns: repeat(4, minmax(188px, max-content));
  gap: 14px;
  width: max-content;
  max-width: 100%;
  align-items: start;
  justify-content: start;
}

.sg-nav__dropdown--ai_tools .sg-nav__group {
  align-self: start;
  padding: 14px;
}

.sg-nav__dropdown--ai_tools .sg-nav__group-list li + li {
  margin-top: 5px;
}

.sg-nav__dropdown--ai_tools .sg-nav__sublink {
  padding: 9px 11px;
}

.sg-nav__dropdown--info_menu {
  left: auto;
  right: 0;
}

.sg-header__actions {
  gap: 8px;
  margin-left: 12px;
}

.sg-lang-switcher__toggle {
  min-width: 116px;
  justify-content: center;
  padding: 0 12px;
}


@media (max-width: 1180px) {
  .sg-nav__dropdown-grid--ai_tools {
    grid-template-columns: repeat(3, minmax(184px, max-content));
  }
}

@media (max-width: 1380px) {
  .sg-lang-switcher__label {
    display: none;
  }

  .sg-lang-switcher__toggle {
    min-width: 58px;
    padding: 0 10px;
  }
}


/* v230: compact 3-column AI dropdown + info menu parity */
.sg-nav__dropdown--ai_tools {
  width: fit-content;
  max-width: calc(100vw - 40px);
  padding: 18px;
}

.sg-nav__dropdown-grid--ai_tools {
  grid-template-columns: repeat(3, minmax(220px, max-content));
  gap: 14px;
  width: max-content;
  max-width: 100%;
  align-items: start;
  justify-content: start;
}

.sg-nav__dropdown--ai_tools .sg-nav__group,
.sg-nav__dropdown--info_menu .sg-nav__group {
  align-self: start;
  min-height: 0;
  padding: 14px;
}

.sg-nav__dropdown--ai_tools .sg-nav__group-list li + li,
.sg-nav__dropdown--info_menu .sg-nav__group-list li + li {
  margin-top: 5px;
}

.sg-nav__dropdown--ai_tools .sg-nav__sublink,
.sg-nav__dropdown--info_menu .sg-nav__sublink {
  padding: 9px 11px;
}

.sg-nav__dropdown--info_menu {
  left: auto;
  right: 0;
  width: fit-content;
  max-width: calc(100vw - 40px);
  padding: 18px;
}

.sg-nav__dropdown-grid--info_menu {
  grid-template-columns: minmax(220px, max-content);
  gap: 14px;
  width: max-content;
  max-width: 100%;
  align-items: start;
  justify-content: start;
}

@media (max-width: 1180px) {
  .sg-nav__dropdown-grid--ai_tools {
    grid-template-columns: repeat(2, minmax(220px, max-content));
  }
}


@media (max-width: 1380px) {
  .sg-header-balance__label {
    display: none;
  }

  .sg-header__balance {
    padding: 0 12px;
  }
}

@media (max-width: 1180px) {
  .sg-header__balance {
    padding: 0 11px;
    gap: 6px;
  }
}


/* v232: fit token balance better on RU/UK/EN desktop */
.sg-nav {
  flex: 1 1 auto;
  min-width: 0;
}

.sg-header__actions {
  flex: 0 0 auto;
  min-width: 0;
  gap: 8px;
  margin-left: 6px;
}

.sg-header__balance {
  gap: 6px;
  padding: 0 12px;
  border-radius: 16px;
}

.sg-header-balance__icon {
  font-size: 12px;
}

.sg-header-balance__count,
.sg-header-balance__label {
  font-size: 12px;
}

@media (max-width: 1320px) {
  .sg-header__inner {
    width: min(1340px, calc(100% - 36px));
    gap: 12px;
    padding-inline: 12px;
  }

  .sg-nav__list {
    gap: 2px;
  }

  .sg-nav__link,
  .sg-header__login,
  .sg-header__register,
  .sg-header__cta {
    padding-inline: 11px;
  }

  .sg-header__actions {
    gap: 6px;
    margin-left: 4px;
  }

  .sg-header__balance {
    padding-inline: 10px;
  }

  .sg-header-balance__label {
    display: none;
  }

  .sg-lang-switcher__toggle {
    min-width: auto;
    padding-inline: 11px;
  }
}

@media (max-width: 1180px) {
  .sg-header__inner {
    width: min(1360px, calc(100% - 28px));
  }

  .sg-header__balance {
    padding-inline: 9px;
  }

  .sg-header__login,
  .sg-header__register,
  .sg-header__cta,
  .sg-nav__link {
    padding-inline: 10px;
  }
}


/* v233: move balance after language and keep it compact */
.sg-header__inner {
  width: min(1368px, calc(100% - 36px));
}

.sg-nav__list {
  gap: 4px;
}

.sg-nav__link {
  padding-inline: 12px;
}

.sg-header__actions {
  gap: 8px;
  margin-left: 10px;
}

.sg-header__balance {
  min-height: 42px;
  padding: 0 12px;
  border-radius: 14px;
  gap: 6px;
}

.sg-header-balance__label {
  display: none !important;
}

.sg-lang-switcher__toggle {
  min-height: 42px;
}

@media (max-width: 1380px) {
  .sg-header__inner {
    width: min(1368px, calc(100% - 30px));
    gap: 10px;
    padding-inline: 12px;
  }

  .sg-nav__link,
  .sg-header__login,
  .sg-header__register,
  .sg-header__cta {
    padding-inline: 10px;
  }

  .sg-header__actions {
    gap: 6px;
    margin-left: 8px;
  }

  .sg-header__balance {
    padding-inline: 11px;
  }
}

@media (max-width: 1240px) {
  .sg-header__actions {
    gap: 5px;
    margin-left: 6px;
  }

  .sg-nav__link,
  .sg-header__login,
  .sg-header__register,
  .sg-header__cta {
    padding-inline: 9px;
  }

  .sg-header__balance,
  .sg-lang-switcher__toggle {
    padding-inline: 10px;
  }
}


.sg-modal-open {
  overflow: hidden;
}

.sg-header__login,
.sg-header__register {
  appearance: none;
}

.sg-modal {
  position: fixed;
  inset: 0;
  z-index: 10060;
}

.sg-modal[hidden] {
  display: none !important;
}

.sg-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.sg-modal__dialog {
  position: relative;
  width: min(1120px, calc(100vw - 32px));
  max-height: calc(100dvh - 48px);
  margin: 24px auto;
  overflow: auto;
  border-radius: 32px;
  background: rgba(20, 20, 22, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 36px 120px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.04);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.sg-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 999px;
  background: rgba(255,255,255,.05);
  color: #fff;
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
  z-index: 2;
}

.sg-topup-modal {
  padding: 28px;
}

.sg-topup-modal__head {
  text-align: center;
  margin-bottom: 22px;
}

.sg-topup-modal__title {
  margin: 0;
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.05;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
}

.sg-topup-modal__subtitle {
  margin: 10px 0 0;
  color: #a1a1aa;
  font-size: 15px;
}

.sg-topup-modal__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 18px;
}

.sg-topup-card {
  position: relative;
  padding: 24px 20px 20px;
  border-radius: 30px;
  background: #141414;
  border: 1px solid rgba(255,255,255,.08);
  text-align: center;
  transition: transform .24s ease, border-color .24s ease, background-color .24s ease;
}

.sg-topup-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,.16);
  background: #181818;
}

.sg-topup-card.is-popular {
  border-color: #007aff;
}

.sg-topup-card__badge {
  position: absolute;
  top: 12px;
  right: 18px;
  padding: 5px 11px;
  border-radius: 999px;
  background: #007aff;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.sg-topup-card__icon {
  font-size: 42px;
  margin-bottom: 10px;
}

.sg-topup-card__amount {
  font-size: 54px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #fff;
}

.sg-topup-card__amount span {
  display: inline-block;
  margin-left: 8px;
  font-size: 16px;
  font-weight: 500;
  color: #8e8e93;
}

.sg-topup-card__price {
  margin-top: 14px;
  font-size: 26px;
  font-weight: 700;
  color: #fff;
}

.sg-topup-card__price span {
  margin-left: 8px;
  color: #8e8e93;
  text-decoration: line-through;
  font-size: 15px;
  font-weight: 600;
}

.sg-topup-card__desc {
  min-height: 42px;
  margin: 12px 0 18px;
  color: #a1a1aa;
  font-size: 14px;
  line-height: 1.45;
}

.sg-topup-card__btn {
  display: inline-flex;
  width: 100%;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 18px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.sg-topup-card__btn.is-primary {
  background: #007aff;
  border-color: #007aff;
}

.sg-confirm-modal {
  width: min(460px, calc(100vw - 32px));
  padding: 28px;
  text-align: center;
}

.sg-confirm-modal__icon {
  width: 70px;
  height: 70px;
  margin: 2px auto 14px;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.04));
  border: 1px solid rgba(255,255,255,.08);
  color: #fff;
  font-size: 34px;
}

.sg-confirm-modal__title {
  margin: 0;
  color: #fff;
  font-size: 28px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.sg-confirm-modal__text {
  margin: 12px auto 0;
  max-width: 320px;
  color: #a1a1aa;
  font-size: 15px;
  line-height: 1.45;
}

.sg-confirm-modal__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 22px;
}

.sg-confirm-modal__btn {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  padding: 0 16px;
  border: 1px solid rgba(255,255,255,.1);
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
}

.sg-confirm-modal__btn--ghost {
  background: rgba(255,255,255,.06);
}

.sg-confirm-modal__btn--danger {
  background: linear-gradient(180deg, #ff5c6b 0%, #ff3b30 100%);
  border-color: rgba(255,59,48,.34);
}

@media (max-width: 1100px) {
  .sg-topup-modal__grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
}

@media (max-width: 720px) {
  .sg-modal__dialog {
    width: calc(100vw - 20px);
    max-height: calc(100dvh - 20px);
    margin: 10px auto;
    border-radius: 24px;
  }

  .sg-topup-modal {
    padding: 20px 14px 16px;
  }

  .sg-topup-modal__grid {
    grid-template-columns: 1fr;
  }

  .sg-topup-card__amount {
    font-size: 44px;
  }

  .sg-confirm-modal {
    padding: 24px 18px;
  }
}


@media (min-width: 768px) {
  .sg-nav.sg-nav--click-dropdowns .sg-nav__item--has-dropdown:hover > .sg-nav__trigger,
  .sg-nav.sg-nav--click-dropdowns .sg-nav__item--has-dropdown:focus-within > .sg-nav__trigger {
    color: #aeaeb2;
    background: transparent;
    border-color: transparent;
    box-shadow: none;
  }

  .sg-nav.sg-nav--click-dropdowns .sg-nav__item--has-dropdown:hover .sg-nav__caret,
  .sg-nav.sg-nav--click-dropdowns .sg-nav__item--has-dropdown:focus-within .sg-nav__caret {
    transform: rotate(45deg) translateY(-1px);
  }

  .sg-nav.sg-nav--click-dropdowns .sg-nav__item--has-dropdown:hover .sg-nav__dropdown,
  .sg-nav.sg-nav--click-dropdowns .sg-nav__item--has-dropdown:focus-within .sg-nav__dropdown {
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    pointer-events: none;
  }

  .sg-nav.sg-nav--click-dropdowns .sg-nav__item--has-dropdown.is-open > .sg-nav__trigger {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.055);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  }

  .sg-nav.sg-nav--click-dropdowns .sg-nav__item--has-dropdown.is-open .sg-nav__caret {
    transform: rotate(225deg) translateY(-1px);
  }

  .sg-nav.sg-nav--click-dropdowns .sg-nav__item--has-dropdown.is-open .sg-nav__dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }
}
