*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}
img,
picture img,
video,
canvas {
  -webkit-user-drag: none;
}
svg,
svg * {
  -webkit-user-drag: none;
}
img,
picture img {
  user-select: none;
}
.lucide-icon,
[data-icon] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: auto;
  height: auto;
}
.lucide-icon {
  max-width: 100%;
  max-height: 100%;
}
.lucide-icon svg,
[data-icon] svg {
  display: block;
  flex-shrink: 0;
}
html,
body {
  height: 100%;
  width: 100%;
  overscroll-behavior: none;
  overflow: hidden;
}
html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;
}
body {
  position: relative;
  font-family: var(--font-family-base);
  font-size: var(--font-size-sm);
  line-height: var(--line-height-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-strong);
  background-color: var(--color-bg-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  user-select: none;
  -webkit-user-select: none;
}
input,
textarea {
  user-select: text;
  -webkit-user-select: text;
}
button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
*:focus,
*:focus-visible {
  outline: none;
}
.clear-btn {
  width: var(--icon-lg);
  height: var(--icon-lg);
  min-width: var(--icon-lg);
  min-height: var(--icon-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border-radius: 0;
  color: var(--color-text-default);
  flex-shrink: 0;
  opacity: 0;
  pointer-events: none;
}
.input-clear-wrapper .clear-btn,
.app-search .clear-btn {
  position: absolute;
  right: var(--space-4);
  top: 50%;
  transform: translateY(-50%);
}
.input-clear-wrapper .input-inline-action {
  position: absolute;
  right: var(--space-4);
  top: 50%;
  transform: translateY(-50%);
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  min-width: var(--icon-lg);
  min-height: var(--icon-lg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-family-primary);
  font-size: var(--font-size-xs);
  line-height: var(--line-height-xs);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-brand);
  cursor: pointer;
  flex-shrink: 0;
  user-select: none;
  -webkit-user-select: none;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
}
.input-clear-wrapper .input-inline-action[hidden] {
  display: none !important;
  visibility: hidden;
  pointer-events: none;
}
.clear-btn svg,
.clear-btn .lucide-icon {
  width: var(--icon-md);
  height: var(--icon-md);
  display: block;
}
.has-value .clear-btn {
  opacity: 1;
  pointer-events: auto;
  color: var(--color-text-strong);
}
.has-value .clear-btn .lucide-icon,
.has-value .clear-btn svg {
  color: inherit;
}
input,
select {
  font-family: inherit;
}
.modal-close-btn,
.modal-close-btn--overlay {
  width: var(--icon-3xl);
  height: var(--icon-3xl);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  flex-shrink: 0;
}
.modal-close-btn .lucide-icon,
.modal-close-btn svg,
.modal-close-btn--overlay .lucide-icon,
.modal-close-btn--overlay svg {
  width: var(--icon-md);
  height: var(--icon-md);
}
.modal-close-btn--overlay {
  background: var(--color-overlay-light-10);
  color: var(--color-text-strong);
  transition: all 0.2s ease;
  margin-left: auto;
}
.app-row__info .lucide-icon,
.app-row__info svg {
  width: var(--icon-md);
  height: var(--icon-md);
}
.loading-dots span {
  animation: loading-dot-fade 2.2s ease-in-out infinite;
}
.loading-dots span:nth-child(1) {
  animation-delay: 0s;
}
.loading-dots span:nth-child(2) {
  animation-delay: 0.37s;
}
.loading-dots span:nth-child(3) {
  animation-delay: 0.73s;
}
@keyframes loading-dot-fade {
  0%, 100% {
    opacity: 0.2;
  }
  25% {
    opacity: 1;
  }
  50% {
    opacity: 0.2;
  }
  75% {
    opacity: 1;
  }
}
@keyframes app-spin {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .collection-detail-load-more-spinner,
  .transaction-icon-wrap--pending .lucide-icon,
  .transaction-icon-wrap--pending svg,
  #shopPurchaseRecipientRow[data-recipient-state=checking] .input-clear-wrapper--shop-recipient .clear-btn-icon--spinner {
    animation: none;
  }
}
.app {
  min-height: 100vh;
  min-height: var(--tg-viewport-height, 100vh);
  max-height: 100vh;
  max-height: var(--tg-viewport-height, 100vh);
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  position: relative;
  display: flex;
  flex-direction: column;
  padding-left: var(--tg-safe-area-inset-left, 0px);
  padding-right: var(--tg-safe-area-inset-right, 0px);
  padding-top: 0;
  overflow: hidden;
}
html.app-ready .app {
  visibility: visible;
}
.repeating-scroll-rail {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: auto;
  touch-action: pan-x;
  overscroll-behavior: none;
  scrollbar-width: none;
  cursor: grab;
}
.repeating-scroll-rail.is-dragging-collections-rail {
  cursor: grabbing;
  user-select: none;
}
.repeating-scroll-rail::-webkit-scrollbar {
  display: none;
}
.screen,
.modal-content,
body.tg-desktop #giftInfoModal .gift-info-modal,
body.tg-desktop .modal-overlay.modal-sheet-scroll .modal,
.compose-modal-overlay .modal {
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: auto;
  overscroll-behavior: none;
  overscroll-behavior-y: none;
  overscroll-behavior-x: none;
  touch-action: pan-y;
}
.screen {
  display: none;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  box-sizing: border-box;
  position: relative;
}
.screen::-webkit-scrollbar,
.modal-content::-webkit-scrollbar,
.compose-modal-overlay .modal::-webkit-scrollbar,
body.tg-desktop #giftInfoModal .gift-info-modal::-webkit-scrollbar,
body.tg-desktop .modal-overlay.modal-sheet-scroll .modal::-webkit-scrollbar,
.gift-info-details::-webkit-scrollbar,
.filter-option-list::-webkit-scrollbar {
  display: none;
}
.screen.active {
  display: flex;
  flex: 1 1 0;
  min-height: 0;
}
.screen:not(.active) * {
  animation-play-state: paused !important;
}
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-3);
  padding-top: var(--space-3);
  margin-bottom: var(--space-1);
  position: relative;
}
@media (pointer: coarse) {
  .header {
    padding-top: calc(var(--safe-area-inset-top) + var(--space-1));
  }
}
.header[hidden] {
  display: none !important;
}
.page-title {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-strong);
  line-height: var(--line-height-xl);
}
#screen-explore .page-title {
  background-image: var(--gradient-text-explore-title);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-position: 0 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.modal-title {
  font-weight: var(--font-weight-bold);
  color: var(--color-text-strong);
}
.header-balance.open-wallet-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-0);
  padding: var(--space-1) var(--space-2);
  padding-left: var(--space-1);
  background: var(--color-surface-default);
  border-radius: var(--radius-pill);
  line-height: 1;
  border: var(--border-width-thin) solid var(--color-gram);
  box-shadow: var(--shadow-gram-balance-glow);
  cursor: pointer;
  font: inherit;
  transition: background-color 0.2s ease;
}
body.tg-desktop .header-balance.open-wallet-btn:hover {
  background: var(--color-surface-hover);
}
.header-balance-gram-icon,
.header-balance .header-balance-gram-icon svg {
  width: var(--icon-md);
  height: var(--icon-md);
  flex-shrink: 0;
  color: var(--color-text-strong);
}
.balance-value {
  font-size: var(--font-size-xs);
  line-height: var(--line-height-xs);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-strong);
}
@keyframes live-capsule-dot-pulse {
  0%, 100% {
    opacity: 1;
    box-shadow: 0 0 0 0 var(--color-status-error-alpha-15);
  }
  50% {
    opacity: 0.72;
    box-shadow: 0 0 0 var(--space-0) var(--color-status-error-alpha-15);
  }
}
.main-content {
  flex: 1;
  padding: 0 var(--space-3);
  padding-bottom: var(--space-screen-bottom);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}
#screen-explore .main-content {
  flex: 1 1 auto;
  min-height: min-content;
  width: 100%;
  min-width: 0;
}
#screen-shop .main-content {
  flex: 1 1 auto;
  min-height: min-content;
  width: 100%;
  min-width: 0;
}
#screen-collections > .header {
  flex-shrink: 0;
}
#screen-collections.collections-screen--detail #collectionsScreenHeader {
  display: none !important;
}
#screen-collections .main-content {
  gap: var(--space-3);
  padding-left: max(var(--space-3), var(--safe-area-inset-left));
  padding-right: max(var(--space-3), var(--safe-area-inset-right));
}
#screen-collections.collections-screen--detail .collections-detail-main {
  padding-top: var(--space-3);
}
@media (pointer: coarse) {
  #screen-collections.collections-screen--detail .collections-detail-main {
    padding-top: calc(var(--safe-area-inset-top) + var(--space-1));
  }
}
#screen-explore {
  -webkit-overflow-scrolling: auto;
}
.section-label {
  display: inline-block;
  width: fit-content;
  max-width: 100%;
  font-size: var(--font-size-xs);
  line-height: var(--line-height-xs);
  font-weight: var(--font-weight-bold);
  background-image: var(--gradient-text-group-heading);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-position: 0 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.modal .section-label {
  font-size: var(--font-size-sm);
  line-height: var(--line-height-sm);
  background-image: var(--gradient-text-group-heading);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.content-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}
.content-section {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.content-section .section-label {
  font-size: var(--font-size-sm);
  line-height: var(--line-height-sm);
  font-weight: var(--font-weight-bold);
  background-image: var(--gradient-text-group-heading);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.bottom-nav {
  position: fixed !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  max-width: var(--container-max);
  margin: 0 auto;
  z-index: 1000;
  box-sizing: border-box;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  justify-content: space-between;
  gap: var(--space-1);
  min-height: var(--nav-occupied-height);
  padding: var(--space-3);
  padding-bottom: calc(var(--space-3) + var(--safe-area-inset-bottom));
  padding-left: max(var(--space-3), var(--safe-area-inset-left));
  padding-right: max(var(--space-3), var(--safe-area-inset-right));
  background: var(--color-bg-base);
  border: none;
  border-top: var(--border-width-thin) solid var(--color-divider-on-base);
  border-radius: 0;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  backface-visibility: hidden;
  pointer-events: auto;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  visibility: hidden;
}
html.app-ready .bottom-nav {
  visibility: visible;
}
.nav-item {
  flex: 1 1 0;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  box-sizing: border-box;
  min-width: 0;
  min-height: 0;
  padding: 0;
  border-radius: 0;
  font-family: var(--font-family-primary);
  font-size: var(--font-size-xs);
  line-height: var(--line-height-xs);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-default);
  transition: color 0.2s ease;
  cursor: pointer;
  background: transparent;
  border: none;
  -webkit-tap-highlight-color: transparent;
}
.nav-item.active {
  color: var(--color-text-brand);
}
.nav-item__label {
  font-size: var(--font-size-xs);
  line-height: var(--line-height-xs);
  font-weight: inherit;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.nav-item svg,
.nav-item .lucide-icon {
  width: var(--icon-2xl);
  height: var(--icon-2xl);
  flex-shrink: 0;
  color: currentColor;
}
body.tg-mobile {
  touch-action: pan-y;
}
body.tg-desktop {
  cursor: default;
}
body.tg-desktop .bottom-nav {
  height: var(--nav-height);
  min-height: var(--nav-height);
  max-height: var(--nav-height);
  align-items: center;
  padding-bottom: var(--space-3);
}
body.tg-desktop .scroll-to-top-btn {
  bottom: calc(var(--scroll-to-top-inset-below) + var(--nav-occupied-height));
}
body.tg-desktop .screen {
  overflow-y: auto !important;
  -webkit-overflow-scrolling: auto;
  touch-action: auto;
}
body.tg-desktop button.app-row:hover {
  background: var(--color-surface-hover);
}
