:root {
  /* Soft Sui theme: blue-tinted daylight without returning to pure white. */
  --sui-bg: #edf7ff;
  --sui-surface: #f8fcff;
  --sui-surface-2: #dbeeff;
  --sui-border: rgba(1, 65, 112, 0.14);
  --sui-border-strong: rgba(1, 65, 112, 0.24);
  --sui-text: #062033;
  --sui-muted: #506879;
  --sui-faint: #8398a8;
  --sui-primary: #298dff;
  --sui-primary-soft: rgba(41, 141, 255, 0.12);
  --sui-primary-strong: #0f6fe0;
  --sui-primary-light: #167cfa;
  --sui-danger: #ef4444;
}

html,
body,
.section,
.menu-wrap,
.menu-content {
  background: var(--sui-bg) !important;
  color: var(--sui-text);
}

body {
  color-scheme: light;
}

.miniapp-feedback-toast {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 14px);
  left: 50%;
  z-index: 99999;
  width: max-content;
  max-width: calc(100vw - 32px);
  padding: 11px 14px;
  color: var(--sui-text);
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  background: rgba(248, 252, 255, 0.98);
  border: 1px solid var(--sui-border-strong);
  border-radius: 8px;
  box-shadow: 0 14px 40px rgba(1, 24, 41, 0.18);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -8px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.miniapp-feedback-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.miniapp-feedback-toast.is-error {
  background: rgba(254, 242, 242, 0.98);
  border-color: rgba(239, 68, 68, 0.72);
}

.miniapp-feedback-toast.is-success {
  background: rgba(238, 249, 244, 0.98);
  border-color: rgba(34, 197, 94, 0.52);
}

.menu-content {
  min-height: 100vh;
}

.menu-grid-block,
.notify-block,
.c-faq-item,
.c-faq-a-text,
.text-field,
.validator-search-result,
.validator-div {
  transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.menu-grid-block {
  min-height: 148px;
  border: 0 !important;
  border-radius: 8px;
  background: transparent !important;
  box-shadow: none !important;
  padding: 20px 12px 18px;
}

.menu-grid-block:active {
  background: rgba(41, 141, 255, 0.10) !important;
}

.menu-content.home .menu-grrid {
  grid-column-gap: 12px;
  grid-row-gap: 24px;
}

.menu-content.home .menu-grid-block {
  min-height: 124px;
  padding: 12px 8px 10px;
}

.menu-content.home .round-block {
  margin-bottom: 8px;
}

.round-block,
.notify-icon {
  background: var(--sui-primary-soft) !important;
  border: 1px solid rgba(41, 141, 255, 0.20);
  box-shadow: inset 0 0 0 1px rgba(1, 24, 41, 0.04);
}

.account-manage-icon {
  background: rgba(41, 141, 255, 0.10) !important;
  border-color: rgba(41, 141, 255, 0.22);
}

.account-manage-icon::before {
  content: "";
  width: 24px;
  height: 24px;
  background: var(--sui-primary);
}

.account-manage-icon-wallet::before {
  -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M19%207V6a2%202%200%200%200-2-2H5a2%202%200%200%200%200%204h15a1%201%200%200%201%201%201v4h-3a2%202%200%200%200%200%204h3v1a2%202%200%200%201-2%202H5a2%202%200%200%201-2-2V6'/%3E%3Cpath%20d='M18%2012h.01'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M19%207V6a2%202%200%200%200-2-2H5a2%202%200%200%200%200%204h15a1%201%200%200%201%201%201v4h-3a2%202%200%200%200%200%204h3v1a2%202%200%200%201-2%202H5a2%202%200%200%201-2-2V6'/%3E%3Cpath%20d='M18%2012h.01'/%3E%3C/svg%3E") center / contain no-repeat;
}

.account-manage-icon-validator::before {
  -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M12%2022s8-4%208-10V5l-8-3-8%203v7c0%206%208%2010%208%2010Z'/%3E%3Cpath%20d='m9%2012%202%202%204-4'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M12%2022s8-4%208-10V5l-8-3-8%203v7c0%206%208%2010%208%2010Z'/%3E%3Cpath%20d='m9%2012%202%202%204-4'/%3E%3C/svg%3E") center / contain no-repeat;
}

.notify-icon.defi-protocol-icon {
  color: var(--sui-text);
  font-size: 23px;
  line-height: 1;
}

.notify-icon.whale-watch-icon {
  color: var(--sui-text);
  font-size: 22px;
  line-height: 1;
}

.notify-icon.whale-watch-icon-transfer {
  background: rgba(41, 141, 255, 0.14) !important;
  border-color: rgba(41, 141, 255, 0.34);
}

.notify-icon.whale-watch-icon-staking {
  background: rgba(34, 197, 94, 0.12) !important;
  border-color: rgba(34, 197, 94, 0.32);
}

.notify-icon.whale-watch-icon-liquid {
  background: rgba(14, 165, 233, 0.13) !important;
  border-color: rgba(14, 165, 233, 0.32);
}

.notify-icon.whale-watch-icon-vusd {
  background: rgba(245, 158, 11, 0.13) !important;
  border-color: rgba(245, 158, 11, 0.32);
}

.notify-block > .div-block {
  flex: 1 1 auto;
  min-width: 0;
}

.notify-block > div:last-child {
  flex: none;
}

.notify-copy-block {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  text-align: left;
}

.notify-copy-block .menu-text {
  width: 100%;
  text-align: left;
}

.notify-description {
  color: var(--sui-muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  text-align: left;
  text-wrap: pretty;
}

.validator-div,
.notify-block,
.faq-divider {
  border-color: var(--sui-border) !important;
}

.faq-stripe-1 {
  background-color: var(--sui-muted) !important;
}

.menu-text,
.menu-text-2,
.text-27px,
.faq-q-text,
.validator-text,
p,
a {
  color: var(--sui-text);
}

.field-label,
.faq-q-text.small-size,
#fixedTelegramId p {
  color: var(--sui-muted) !important;
}

.span-green,
a {
  color: var(--sui-primary-light) !important;
}

.submit-button,
.validator-block,
.toggle.active,
input[type="radio"]:checked::before,
.w-checkbox-input--inputType-custom.w--redirected-checked {
  background: var(--sui-primary) !important;
  border-color: var(--sui-primary) !important;
}

.validator-text {
  color: #fff !important;
}

.submit-button {
  color: #fff !important;
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(41, 141, 255, 0.26);
}

.text-field {
  background: var(--sui-surface) !important;
  border-color: var(--sui-border) !important;
  color: var(--sui-text) !important;
  border-radius: 8px;
}

.text-field:hover,
.text-field:active,
.text-field:focus {
  border-color: rgba(41, 141, 255, 0.45) !important;
  box-shadow: 0 0 0 3px rgba(41, 141, 255, 0.18);
}

.text-field::placeholder {
  color: var(--sui-faint) !important;
}

.price-feed-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  margin: 8px 0 18px;
  background: linear-gradient(135deg, rgba(41, 141, 255, 0.18), rgba(248, 252, 255, 0.94));
  border: 1px solid rgba(41, 141, 255, 0.22);
  border-radius: 8px;
}

.price-feed-label,
.price-feed-source,
.price-alert-hint {
  color: var(--sui-muted);
  font-size: 12px;
  line-height: 1.35;
}

.price-feed-value {
  margin-top: 4px;
  color: var(--sui-text);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.1;
}

.price-feed-value.is-muted {
  color: var(--sui-muted);
  font-size: 15px;
  font-weight: 600;
}

.price-feed-source {
  white-space: nowrap;
}

.price-direction-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 18px;
}

.price-direction-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 76px;
  padding: 12px;
  text-align: left;
  color: var(--sui-text);
  background: var(--sui-surface);
  border: 1px solid var(--sui-border);
  border-radius: 8px;
}

.price-direction-option strong,
.price-direction-option small {
  display: block;
}

.price-direction-option strong {
  color: var(--sui-text);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
}

.price-direction-option small {
  margin-top: 4px;
  color: var(--sui-muted);
  font-size: 11px;
  line-height: 1.25;
}

.price-direction-option.is-selected {
  background: var(--sui-primary-soft);
  border-color: rgba(41, 141, 255, 0.52);
  box-shadow: 0 0 0 3px rgba(41, 141, 255, 0.14);
}

.price-direction-icon {
  flex: 0 0 auto;
  font-size: 22px;
  line-height: 1;
}

.price-target-label {
  margin-top: 2px;
}

.price-target-input {
  margin-bottom: 10px;
}

.price-alert-hint {
  margin-bottom: 18px;
}

.price-signal-wrap {
  margin-bottom: 18px;
}

.price-alert-list-header {
  margin: 0 0 10px;
}

.price-alert-list-title {
  margin: 0;
  color: var(--sui-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.price-alert-inline-button {
  align-self: stretch;
  flex: none;
  width: 100%;
  min-height: 38px;
  padding: 0 12px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  background: var(--sui-primary);
  border: 0;
  border-radius: 8px;
}

.price-alert-empty-button {
  margin-top: 12px;
}

.price-alert-empty-state {
  width: 100%;
  padding: 14px;
  color: var(--sui-muted);
  text-align: left;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--sui-border);
  border-radius: 8px;
}

.price-alert-empty-title {
  color: var(--sui-text);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
}

.price-alert-empty-copy {
  margin-top: 4px;
  color: var(--sui-muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
}

.price-alert-list-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sui-text);
  font-size: 20px;
}

.price-alert-direction {
  color: var(--sui-text);
  font-size: 14px;
  line-height: 1.35;
}

.price-alert-meta {
  margin-top: 4px;
  color: var(--sui-muted);
  font-size: 12px;
  line-height: 1.25;
}

@media screen and (max-width: 420px) {
  .price-direction-options {
    grid-template-columns: 1fr;
  }

  .price-feed-panel {
    align-items: flex-start;
    flex-direction: column;
  }
}

input[type="radio"],
input[type="checkbox"] {
  border-color: var(--sui-border-strong) !important;
  background: var(--sui-surface) !important;
}

.toggle {
  background: rgba(1, 24, 41, 0.24) !important;
}

.toggle.toggle-disabled {
  background: rgba(1, 24, 41, 0.14) !important;
  cursor: not-allowed;
  filter: grayscale(1);
  opacity: 0.55;
}

.node-update-disabled {
  opacity: 0.72;
}

.node-update-disabled .menu-text {
  color: var(--sui-faint) !important;
}

.node-update-disabled .notify-icon {
  background: rgba(1, 24, 41, 0.08) !important;
  border-color: rgba(1, 24, 41, 0.08) !important;
}

.toggle-ball,
.checkbox {
  background: #fff !important;
  box-shadow: 0 1px 3px rgba(1, 24, 41, 0.25);
}

.c-faq-a-text {
  background: linear-gradient(90deg, rgba(41, 141, 255, 0.10), rgba(41, 141, 255, 0.22)) !important;
  border: 1px solid rgba(41, 141, 255, 0.18);
}

.upper-line {
  background: rgba(1, 24, 41, 0.28) !important;
}

.user-img-block {
  background-color: var(--sui-surface-2) !important;
  border: 1px solid var(--sui-border);
}

.validator-search-results {
  display: none;
  margin-top: 10px;
}

.alerts-hub-top {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 0;
}

.alerts-hub-title {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.alerts-list .c-faq-item:last-child .c-faq-divider {
  display: none;
}

.notify-block-wrap > .notify-block:last-child,
.notify-block-wrap > .notify-block:has(+ .help-about-support),
.notify-block-wrap > div:last-child > .notify-block {
  border-bottom: 0 !important;
}

.alerts-add-button {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  background: var(--sui-primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font: 700 15px/1.2 Inter, system-ui, sans-serif;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(41, 141, 255, 0.26);
}

.alerts-add-button img {
  width: 18px;
  height: 18px;
  filter: brightness(0) invert(1);
}

.alerts-empty-state {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 16px;
  text-align: center;
  padding: 32px 12px;
}

.alerts-empty-title {
  color: var(--sui-muted);
  font-size: 15px;
  font-weight: 700;
}

.alerts-empty-action {
  max-width: 220px;
}

.alert-type-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 22px;
}

.alert-type-card {
  position: relative;
  min-height: 116px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--sui-border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
  cursor: pointer;
  overflow: hidden;
  transform: translateY(0);
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
  animation: alertTypeEnter 260ms ease both;
}

.alert-type-card:nth-child(2) {
  animation-delay: 55ms;
}

.alert-type-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(120deg, rgba(41, 141, 255, 0), rgba(41, 141, 255, 0.16), rgba(41, 141, 255, 0));
  opacity: 0;
  transform: translateX(-55%);
  transition: opacity 180ms ease, transform 360ms ease;
  pointer-events: none;
}

.alert-type-card:active {
  transform: scale(0.985);
}

.alert-type-card.is-selected,
.alert-type-card:has(.alert-type-input:checked) {
  border-color: rgba(41, 141, 255, 0.56);
  background: rgba(41, 141, 255, 0.16);
  box-shadow: 0 12px 34px rgba(41, 141, 255, 0.18);
}

.alert-type-card.is-selected::after,
.alert-type-card:has(.alert-type-input:checked)::after {
  opacity: 1;
  transform: translateX(55%);
}

.alert-type-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.alert-type-icon {
  width: 68px;
  height: 68px;
  flex: 0 0 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(41, 141, 255, 0.12);
  border: 1px solid rgba(41, 141, 255, 0.18);
}

.alert-type-icon img,
.alert-type-icon svg {
  width: 42px;
  height: 42px;
}

.alert-type-icon svg {
  fill: none;
  stroke: var(--sui-primary-light);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.alert-type-card.is-selected .alert-type-icon,
.alert-type-card:has(.alert-type-input:checked) .alert-type-icon {
  background: rgba(41, 141, 255, 0.28);
  animation: alertTypeIconPulse 320ms ease;
}

.alert-type-card.is-selected .alert-type-icon svg,
.alert-type-card:has(.alert-type-input:checked) .alert-type-icon svg {
  stroke: var(--sui-primary-strong);
}

.alert-type-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.alert-type-title {
  color: var(--sui-text);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.15;
}

.alert-type-copy {
  color: var(--sui-muted);
  font-size: 13px;
  line-height: 1.35;
}

@keyframes alertTypeEnter {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes alertTypeIconPulse {
  0% {
    transform: scale(0.92);
  }
  60% {
    transform: scale(1.06);
  }
  100% {
    transform: scale(1);
  }
}

.validator-search-results.is-visible {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.validator-search-result {
  width: 100%;
  border: 1px solid var(--sui-border);
  border-radius: 8px;
  background: var(--sui-surface) !important;
  color: var(--sui-text);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  text-align: left;
}

.validator-search-result:active {
  background: var(--sui-surface-2) !important;
}

.validator-search-avatar {
  width: 40px;
  height: 40px;
  margin-right: 0;
}

.validator-search-body {
  min-width: 0;
}

.validator-search-name {
  color: var(--sui-text);
  font-weight: 700;
  line-height: 1.3;
}

.validator-search-address,
.validator-selected-address {
  color: var(--sui-muted) !important;
  font-size: 11px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.validator-selected-address {
  min-height: 18px;
  margin-top: 8px;
}

.alert-edit-row {
  cursor: pointer;
}

.alert-edit-row .c-faq-q-text {
  padding-bottom: 24px;
}

.alert-edit-row .faq-q-text.small-size {
  margin-bottom: 4px;
  line-height: 1.4;
}

.alert-edit-row:active {
  background: rgba(41, 141, 255, 0.10);
}

.remove-alert-button {
  width: 100%;
  min-height: 42px;
  margin-top: 18px;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  background: #ef4444;
  border: 0;
  border-radius: 8px;
}

.remove-link:not(.remove-alert-button),
.remove-price-alert-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.remove-link:not(.remove-alert-button) img {
  display: none;
}

.remove-link:not(.remove-alert-button)::before,
.remove-price-alert-link::before {
  content: "";
  width: 24px;
  height: 24px;
  background: #ef4444;
  -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2.2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M3%206h18'/%3E%3Cpath%20d='M8%206V4h8v2'/%3E%3Cpath%20d='M19%206l-1%2014H6L5%206'/%3E%3Cpath%20d='M10%2011v5'/%3E%3Cpath%20d='M14%2011v5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='2.2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M3%206h18'/%3E%3Cpath%20d='M8%206V4h8v2'/%3E%3Cpath%20d='M19%206l-1%2014H6L5%206'/%3E%3Cpath%20d='M10%2011v5'/%3E%3Cpath%20d='M14%2011v5'/%3E%3C/svg%3E") center / contain no-repeat;
}

.help-about-content {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  padding: 28px 20px 72px !important;
}

.help-about-bg-logo {
  position: absolute;
  top: 310px;
  left: 50%;
  right: auto;
  width: min(170px, 42vw);
  max-width: none;
  opacity: 0.10;
  pointer-events: none;
  filter: none;
  transform: translateX(-50%) rotate(-5deg);
}

.sui-signal-mark {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: 50%;
  color: #ffffff;
  font-weight: 800;
  letter-spacing: 0;
  background:
    radial-gradient(circle at 32% 22%, rgba(255, 255, 255, 0.72), transparent 24%),
    linear-gradient(145deg, rgba(41, 141, 255, 0.80), rgba(94, 187, 255, 0.46));
  border: 1px solid rgba(41, 141, 255, 0.28);
  box-shadow: 0 0 42px rgba(41, 141, 255, 0.20);
}

.help-about-sky {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.help-about-sky::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 22%, rgba(41, 141, 255, 0.16) 0 1px, transparent 2px),
    radial-gradient(circle at 74% 15%, rgba(41, 141, 255, 0.16) 0 1px, transparent 2px),
    radial-gradient(circle at 84% 42%, rgba(41, 141, 255, 0.12) 0 1px, transparent 2px),
    radial-gradient(circle at 34% 56%, rgba(41, 141, 255, 0.12) 0 1px, transparent 2px);
  opacity: 0.65;
}

.help-about-spark {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(41, 141, 255, 0.75);
  box-shadow: 0 0 10px rgba(41, 141, 255, 0.35);
  animation: help-about-twinkle 3.8s ease-in-out infinite;
}

.help-about-spark.spark-a {
  top: 118px;
  left: 26%;
}

.help-about-spark.spark-b {
  top: 184px;
  right: 24%;
  animation-delay: 0.9s;
}

.help-about-spark.spark-c {
  top: 292px;
  left: 68%;
  animation-delay: 1.8s;
}

.help-about-hero,
.help-about-links,
.help-about-support,
.help-sync-status {
  position: relative;
  z-index: 1;
}

.help-about-hero {
  min-height: 250px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  text-align: center;
}

.help-about-kicker {
  color: var(--sui-primary-light);
  display: inline-block;
  align-self: center;
  max-width: max-content;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  min-height: 1.2em;
  position: relative;
  text-transform: uppercase;
  white-space: nowrap;
}

.help-about-title {
  color: var(--sui-text);
  display: inline-block;
  position: relative;
  width: fit-content;
  font-size: 34px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: 0;
}

.help-about-title::after {
  content: "";
  position: absolute;
  inset: -5px -8px;
  background: linear-gradient(105deg, transparent 12%, rgba(41, 141, 255, 0.0) 30%, rgba(41, 141, 255, 0.34) 49%, rgba(41, 141, 255, 0.24) 54%, rgba(41, 141, 255, 0.0) 70%, transparent 88%);
  border-radius: 8px;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-36%);
}

.help-about-content.about-animate .help-about-kicker {
  overflow: visible;
}

.help-about-content.about-animate .help-about-kicker::after {
  content: "";
  position: absolute;
  top: 12%;
  right: -5px;
  width: 2px;
  height: 76%;
  background: rgba(41, 141, 255, 0.78);
  animation: help-about-caret 620ms steps(1, end) 0s 3 forwards;
}

.help-about-content.about-animate .help-about-title {
  animation: help-about-title-in 860ms cubic-bezier(0.2, 0.82, 0.2, 1) 1.05s both;
}

.help-about-content.about-animate .help-about-title::after {
  animation: help-about-title-sweep 980ms ease-out 1.35s both;
}

.help-about-version {
  color: var(--sui-muted);
  font-size: 13px;
  font-weight: 600;
}

.register-content {
  padding-bottom: 96px !important;
}

.register-bg-logo {
  top: 255px;
  width: min(210px, 54vw);
  opacity: 0.13;
  transform: translateX(-50%) rotate(-7deg);
}

.register-hero {
  min-height: 300px;
  justify-content: center;
  padding-top: 22px;
}

.register-title {
  font-size: 40px;
}

.register-intro {
  max-width: 320px;
  color: var(--sui-muted);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
}

.register-policy-list {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 7px;
  max-width: 320px;
  margin: 2px auto 0;
}

.register-policy-item {
  display: flex !important;
  align-items: flex-start !important;
  gap: 9px;
  min-height: 0;
  margin: 0 !important;
  padding: 0;
  padding-left: 0 !important;
  border: 0;
  background: transparent;
}

.register-policy-item::before,
.register-policy-item::after {
  content: none !important;
  display: none !important;
}

.register-policy-item + .register-policy-item {
  border-top: 0;
}

.register-policy-item input[type="checkbox"] {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 0;
  position: relative;
  top: 1px;
  accent-color: var(--sui-primary);
}

.register-policy-copy {
  display: block;
  color: var(--sui-muted);
  font-size: 12px;
  font-weight: 650;
  line-height: 18px;
}

.register-policy-copy a {
  color: var(--sui-text);
  font-weight: 800;
  text-decoration-color: var(--sui-primary-light);
  text-underline-offset: 3px;
}

.help-about-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 28px;
}

.help-about-link {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  min-height: 56px;
  padding: 12px 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.64);
  text-decoration: none;
}

.help-about-link:active {
  background: rgba(41, 141, 255, 0.18);
}

.help-about-link span {
  color: var(--sui-muted);
  font-size: 12px;
  font-weight: 600;
}

.help-about-link strong {
  color: var(--sui-text);
  font-size: 15px;
  font-weight: 800;
  text-align: right;
  overflow-wrap: anywhere;
}

.help-about-validator-link {
  align-items: flex-start;
  min-height: 78px;
}

.help-about-validator-link strong {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 74%;
}

.help-about-validator-link .help-about-validator-name {
  color: var(--sui-text);
  font-size: 15px;
  font-weight: 800;
}

.help-about-validator-link code {
  color: var(--sui-primary-light);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
  white-space: normal;
  overflow-wrap: anywhere;
}

.help-about-support {
  margin-top: 18px;
  color: var(--sui-muted);
  font-size: 13px;
  line-height: 1.45;
}

.help-sync-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  margin-top: 10px;
  padding: 0 10px;
  color: var(--sui-primary-light);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  background: rgba(41, 141, 255, 0.10);
  border: 1px solid rgba(41, 141, 255, 0.18);
  border-radius: 999px;
}

.help-about-legal-links {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
  color: var(--sui-muted);
  font-size: 12px;
  font-weight: 700;
}

.help-about-legal-links a {
  color: var(--sui-text);
  text-decoration: none;
}

.help-about-legal-links a:active {
  color: var(--sui-primary-light);
}

.legal-content {
  min-height: auto;
  padding: 30px 20px calc(112px + env(safe-area-inset-bottom, 0px));
  text-align: left;
}

#termsSection,
#privacySection,
#termsSection .menu-wrap,
#privacySection .menu-wrap {
  height: auto !important;
  min-height: 100vh;
}

#termsSection .legal-content,
#privacySection .legal-content {
  height: auto !important;
  min-height: 100vh;
  padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)) !important;
}

.legal-brand {
  display: inline-flex;
  align-items: center;
  margin-bottom: 18px;
  color: var(--sui-primary-light);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.legal-content h1 {
  margin: 0 0 8px;
  color: var(--sui-text);
  font-size: 30px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: 0;
}

.legal-updated {
  margin: 0 0 22px;
  color: var(--sui-muted);
  font-size: 13px;
  line-height: 1.45;
}

.legal-block {
  padding: 16px 0 0;
  border-top: 1px solid var(--sui-border);
}

.legal-block + .legal-block {
  margin-top: 18px;
}

.legal-block:last-child {
  margin-bottom: 44px;
}

.legal-block h2 {
  margin: 0 0 8px;
  color: var(--sui-text);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0;
}

.legal-block p,
.legal-block li {
  color: var(--sui-muted);
  font-size: 14px;
  line-height: 1.55;
}

.legal-block p {
  margin: 0;
}

.legal-block ul {
  margin: 8px 0 0;
  padding-left: 20px;
}

.legal-block a {
  color: var(--sui-text);
  text-decoration-color: var(--sui-primary);
  text-underline-offset: 3px;
}

.miniapp-success-overlay {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(84px + env(safe-area-inset-bottom, 0px));
  z-index: 10000;
  display: flex;
  justify-content: center;
  padding: 0 18px;
  background: transparent;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.miniapp-success-overlay.is-visible {
  opacity: 1;
}

.miniapp-success-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: auto;
  max-width: min(320px, 100%);
  min-width: 184px;
  padding: 11px 16px 13px;
  border: 1px solid rgba(41, 141, 255, 0.22);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(1, 24, 41, 0.12);
  overflow: hidden;
  text-align: center;
}

.miniapp-success-title {
  color: var(--sui-text);
  font-size: 14px;
  font-weight: 850;
  line-height: 1.25;
}

.miniapp-success-copy {
  margin-top: 3px;
  color: var(--sui-muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
}

@keyframes help-about-twinkle {
  0%, 100% {
    opacity: 0.16;
    transform: scale(0.7);
  }
  45% {
    opacity: 0.78;
    transform: scale(1.35);
  }
}

@keyframes help-about-caret {
  0%, 100% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
}

@keyframes help-about-title-in {
  0% {
    opacity: 0;
    text-shadow: 0 0 0 rgba(41, 141, 255, 0);
    transform: translateY(8px) scale(0.97);
  }
  58% {
    opacity: 1;
    text-shadow: 0 0 22px rgba(41, 141, 255, 0.34);
    transform: translateY(0) scale(1.015);
  }
  100% {
    opacity: 1;
    text-shadow: 0 0 12px rgba(41, 141, 255, 0.16);
    transform: translateY(0) scale(1);
  }
}

@keyframes help-about-title-sweep {
  0% {
    opacity: 0;
    transform: translateX(-36%);
  }
  36% {
    opacity: 0.95;
  }
  100% {
    opacity: 0;
    transform: translateX(36%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .help-about-spark,
  .help-about-content.about-animate .help-about-title,
  .help-about-content.about-animate .help-about-title::after,
  .help-about-content.about-animate .help-about-kicker::after {
    animation: none;
  }

  .help-about-content.about-animate .help-about-kicker::after {
    display: none;
  }
}

.swal2-popup {
  background: var(--sui-surface) !important;
  border: 1px solid var(--sui-border);
  color: var(--sui-text) !important;
}

.swal2-title,
.swal2-html-container {
  color: var(--sui-text) !important;
}

#dev-shim-bar {
  background: rgba(255, 255, 255, 0.96) !important;
  border-top-color: var(--sui-border) !important;
}

#dev-shim-back {
  background: var(--sui-surface-2) !important;
  color: var(--sui-text) !important;
}

#dev-shim-main {
  background: var(--sui-primary) !important;
}

#dev-shim-tag {
  background: var(--sui-primary-light) !important;
  color: var(--sui-bg) !important;
}
