.seasons-star-lg {
    width: 28px;
    height: 28px;
}

.seasons-star-sm {
    width: 14px;
    height: 14px;
}

.seasons-star-inline {
    width: 14px;
    height: 14px;
    display: inline-block;
    vertical-align: middle;
}

.task-icon-telegram {
    background: rgba(44, 185, 255, 0.15);
    color: #2cb9ff;
}

.task-icon-purple {
    background: rgba(168, 85, 247, 0.15);
    color: #a855f7;
}

.task-icon-pink {
    background: rgba(236, 72, 153, 0.15);
    color: #ec4899;
}

.task-icon-blue {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}

.task-icon-yellow {
    background: rgba(234, 179, 8, 0.15);
    color: #eab308;
}

.task-icon-green {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.drawer-header-block {
    display: block;
    width: 100%;
}

.drawer-subtitle-muted {
    color: #8e8e93;
    font-size: 14px;
    margin-top: 4px;
}

.drawer-elevated {
    z-index: 2005;
}

.popup-icon-alert {
    color: #ff453a;
    font-size: 48px;
}

.popup-icon-success {
    color: #34c759;
    font-size: 48px;
}

.popup-icon-info {
    color: #0a84ff;
    font-size: 48px;
}

:root {
    --safe-area-top: env(safe-area-inset-top, 0px);
    --safe-area-bottom: env(safe-area-inset-bottom, 0px);
    --safe-area-left: env(safe-area-inset-left, 0px);
    --safe-area-right: env(safe-area-inset-right, 0px);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

::-webkit-scrollbar {
    width: 0px;
    background: transparent;
    display: none;
}

html,
body {
    width: 100%;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    overflow-y: auto;
    overflow-x: hidden;
    background: #141414;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    touch-action: pan-y;
}

#app {
    width: 100%;
    min-height: 100vh;
    background: #141414;
    display: block;
    position: relative;
    padding-bottom: 100px;
    visibility: hidden;
    opacity: 0;
}

.top-header {
    position: relative;
    width: 100%;
    z-index: 1000;
    padding: 12px 16px;
    padding-top: calc(12px + var(--safe-area-top));
    padding-left: calc(16px + var(--safe-area-left));
    padding-right: calc(16px + var(--safe-area-right));
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: none;
    background: transparent;
    gap: 10px;
}

.balance-card {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #1a1a1a;
    border-radius: 20px;
    padding: 8px 12px;
    pointer-events: auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.top-header > .balance-card:not(.stars-balance) {
    display: none;
}


.ton-icon {
    width: 18px;
    height: 18px;
    color: #1f6acc;
    flex-shrink: 0;
}

.balance-card .ton-icon {
    display: none;
}

.balance-card:not(.stars-balance)::before,
.star-icon {
    content: '₽';
    width: 18px;
    height: 18px;
    color: #22c55e;
    font-size: 17px;
    font-weight: 800;
    line-height: 18px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.star-icon {
    color: #22c55e;
}

.star-icon .lottie-star-container {
    width: 18px;
    height: 18px;
}

.balance-amount {
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.add-balance-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #ffffff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: transform 0.2s ease, opacity 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    color: #000000;
    flex-shrink: 0;
}

.add-balance-btn svg {
    width: 16px;
    height: 16px;
}

.add-balance-btn:active {
    transform: scale(0.95);
    opacity: 0.8;
}

.view-container {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 100vh;
    display: block;
    background: #141414;
    padding: 0;
    z-index: 1;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.view-container.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    overflow: hidden;
    z-index: -1;
}

.section-placeholder {
    padding: 16px 24px;
    padding-top: 16px;
    color: #fff;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.section-placeholder-animation {
    width: 120px;
    height: 120px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-placeholder-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.section-placeholder-subtitle {
    color: #9ca3af;
    font-size: 14px;
}

.profile-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 32px 16px 16px;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto;
    background: transparent;
    border: 3px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 34px;
    font-weight: 700;
    overflow: hidden;
    position: relative;
}

.profile-avatar.has-image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: transparent;
    border-color: rgba(255, 255, 255, 0.28);
}

.profile-name {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
}

.profile-divider {
    width: 100%;
    max-width: 360px;
    height: 1px;
    margin: 12px auto 4px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
}

.profile-stats {
    width: 100%;
    max-width: 420px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 8px 12px 0;
    justify-items: center;
    text-align: center;
}

.profile-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    color: #ffffff;
    position: relative;
    padding: 0 8px;
}

.profile-stat-hidden {
    display: none;
}

.profile-stat-value {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 17px;
    font-weight: 700;
    justify-content: center;
}

.profile-stat-label {
    font-size: 13px;
    color: #9ca3af;
}

.profile-stat:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 2px;
    right: -6px;
    width: 1px;
    height: 28px;
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.18), transparent);
}

.profile-ton-icon {
    color: #c4e2ff;
}

.profile-stat-icon {
    color: #d1d5db;
    font-size: 16px;
}

.profile-register-btn {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    padding: 14px 18px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, #1f1f23, #2a2a30);
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s ease, opacity 0.15s ease, box-shadow 0.2s ease;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
    -webkit-tap-highlight-color: transparent;
}

.profile-register-btn:first-of-type {
    margin-top: 16px;
}

.profile-register-btn:not(:first-of-type) {
    margin-top: 4px;
}

.profile-register-btn:active {
    transform: scale(0.98);
    opacity: 0.9;
}

.referral-banner {
    width: 100%;
    max-width: 420px;
    margin-top: 16px;
    padding: 16px;
    border-radius: 16px;
    background: radial-gradient(circle at 20% 20%, rgba(59, 130, 246, 0.18), transparent 40%), radial-gradient(circle at 80% 0%, rgba(255, 193, 7, 0.16), transparent 38%), linear-gradient(145deg, #1b1d24, #111218);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.referral-banner-left {
    display: flex;
    gap: 12px;
    align-items: center;
}

.referral-banner-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, #2d7bff, #5b9dff);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 24px;
    box-shadow: 0 10px 20px rgba(45, 123, 255, 0.28);
    flex-shrink: 0;
}

.referral-banner-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.referral-banner-title {
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
}

.referral-banner-subtitle {
    color: #9ca3af;
    font-size: 13px;
    line-height: 1.35;
}

.referral-banner-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 4px 0 0;
}

.referral-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.referral-item-icon {
    font-size: 18px;
    color: #22c55e;
    margin-top: 2px;
}

.referral-item:nth-child(3) .referral-item-icon {
    color: #fbbf24;
}

.referral-item:nth-child(5) .referral-item-icon {
    color: #60a5fa;
}

.referral-item-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.referral-item-title {
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
}

.referral-item-subtitle {
    color: #9ca3af;
    font-size: 13px;
    line-height: 1.35;
}

.referral-divider {
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
}

.referral-cta-btn {
    width: 100%;
    margin-top: 12px;
    padding: 14px 16px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #2d7bff, #5b9dff);
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s ease, opacity 0.15s ease, box-shadow 0.2s ease;
    box-shadow: 0 12px 24px rgba(45, 123, 255, 0.25);
    -webkit-tap-highlight-color: transparent;
}

.referral-cta-btn:active {
    transform: scale(0.98);
    opacity: 0.9;
}


.banners-carousel {
    position: relative;
    width: 100%;
    margin-bottom: 20px;
    padding: 16px;
    padding-left: calc(16px + var(--safe-area-left));
    padding-right: calc(16px + var(--safe-area-right));
}

.banners-wrapper {
    display: flex;
    gap: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
}

.banners-wrapper::-webkit-scrollbar {
    display: none;
}

.banner-item {
    flex: 0 0 100%;
    scroll-snap-align: center;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    margin-right: 12px;
}

.banner-item:last-child {
    margin-right: 0;
}

.banner-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
    object-fit: cover;
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 85px;
    background: rgba(19, 19, 20, 0.85);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 12px 0;
    padding-bottom: calc(12px + var(--safe-area-bottom));
    z-index: 1000;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    transform: translateY(0);
}

.nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px 12px;
    position: relative;
    transition: color 0.2s ease;
    min-width: 60px;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    -webkit-user-select: none;
    user-select: none;
}

.nav-icon {
    font-size: 24px;
    color: #7d7d85;
    transition: color 0.2s ease;
    margin-bottom: 2px;
    line-height: 1;
}

.nav-text {
    font-size: 11px;
    color: #7d7d85;
    transition: color 0.2s ease;
    font-weight: 500;
    line-height: 1.2;
}

.nav-btn.active .nav-icon {
    color: #2382ff;
}

.nav-btn.active .nav-text {
    color: #2382ff;
}

.nav-btn:active {
    opacity: 0.7;
}

.nav-btn.hidden {
    display: none;
}

.nav-badge {
    position: absolute;
    top: 2px;
    right: 8px;
    background: linear-gradient(135deg, #ff453a, #ff6b5a);
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    box-shadow: 0 2px 8px rgba(255, 69, 58, 0.4);
    border: 2px solid #131314;
    line-height: 1;
    z-index: 10;
}

.nav-badge.hidden {
    display: none;
}

.filters-section {
    width: 100%;
    padding: 0 16px;
    padding-left: calc(16px + var(--safe-area-left));
    padding-right: calc(16px + var(--safe-area-right));
    margin-top: 20px;
}

.filters-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 16px;
    width: 100%;
    background: #1a1a1a;
    border-radius: 16px;
    padding: 4px;
    position: relative;
}

.filter-tab {
    background: transparent;
    border: none;
    color: #9ca3af;
    font-size: 16px;
    font-weight: 500;
    padding: 10px 12px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    flex: 1;
    text-align: center;
    border-radius: 12px;
    position: relative;
    z-index: 1;
}

.filter-tab.active {
    color: #ffffff;
    background: #2a2a2d;
}

.filter-tab:active {
    opacity: 0.8;
}

.filters-row {
    display: flex;
    gap: 8px;
    align-items: center;
    width: 100%;
    padding-bottom: 4px;
}

.market-toolbar {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.market-toolbar-top,
.market-toolbar-bottom {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.market-toolbar-bottom > * {
    flex-shrink: 0;
}

.market-toolbar-bottom::-webkit-scrollbar {
    display: none;
}

.banners-carousel {
    display: none;
}

.market-filter-panel {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.market-filter-panel.hidden {
    display: none;
}

.market-search-field,
.market-price-field {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #1f1f21 0%, #2a2a2d 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #8e8e93;
    border-radius: 14px;
}

.market-search-field {
    gap: 10px;
    padding: 0 14px;
    min-height: 46px;
}

.market-search-field-compact {
    flex: 1;
    min-width: 0;
    min-height: 44px;
    border-radius: 18px;
}

.market-search-field i {
    font-size: 18px;
    color: #58a6ff;
}

.market-search-field input,
.market-price-field input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #ffffff;
    font: inherit;
    font-weight: 600;
}

.market-price-field input {
    text-align: right;
}

.market-price-field input::-webkit-outer-spin-button,
.market-price-field input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.market-price-field input[type="number"] {
    -moz-appearance: textfield;
}

.market-search-field input::placeholder,
.market-price-field input::placeholder {
    color: #6f7279;
}

.market-toolbar-icon-btn {
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 16px;
    background: linear-gradient(135deg, #1f1f21 0%, #2a2a2d 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #d5d7dd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.market-toolbar-icon-btn:active {
    transform: scale(0.97);
    background: linear-gradient(135deg, #2a2a2d 0%, #353538 100%);
}

.market-price-row {
    display: grid;
    grid-template-columns: 1fr 1fr 42px;
    gap: 8px;
}

.market-price-row-drawer {
    grid-template-columns: 1fr 1fr;
}

.market-price-field {
    min-height: 42px;
    gap: 8px;
    padding: 0 12px;
}

.market-price-field span {
    color: #8e8e93;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}

.market-filter-reset {
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    background: #2a2a2d;
    color: #d1d5db;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.market-filter-reset:active {
    transform: scale(0.96);
    background: #353538;
}

.filter-btn {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #1f1f21;
    border: none;
    border-radius: 12px;
    padding: 14px 20px;
    flex: 1;
    cursor: pointer;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    min-width: 0;
}

.filter-btn:active {
    background: #2a2a2d;
    transform: scale(0.98);
}

/* Collection Button Styles */
.collection-btn {
    background: linear-gradient(135deg, #1f1f21 0%, #2a2a2d 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.collection-btn:active {
    background: linear-gradient(135deg, #2a2a2d 0%, #353538 100%);
}

.collection-btn-text {
    font-size: 15px;
    font-weight: 500;
    color: #ffffff;
    letter-spacing: 0.2px;
}

.collection-btn-arrow {
    color: #9ca3af;
    transition: transform 0.2s ease;
}

.collection-btn:active .collection-btn-arrow {
    transform: translateY(2px);
}

.filter-label {
    font-size: 11px;
    color: #9ca3af;
    font-weight: 400;
    line-height: 1.2;
    white-space: nowrap;
}

.filter-value {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 6px;
}

.filter-value span {
    font-size: 14px;
    color: #ffffff;
    font-weight: 500;
    line-height: 1.2;
}

.filter-arrows {
    display: flex;
    flex-direction: column;
    gap: 2px;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    flex-shrink: 0;
}

.filter-arrows svg {
    width: 8px;
    height: 4px;
}

.filter-more-btn {
    width: 40px;
    height: 40px;
    background: #ffffff;
    border: none;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: opacity 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    flex-shrink: 0;
    color: #000000;
}

.filter-more-btn:active {
    opacity: 0.7;
}

.filter-more-btn svg {
    width: 16px;
    height: 16px;
}

.market-sheet-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
}

.market-sheet-card {
    background: linear-gradient(135deg, #1f1f21 0%, #262629 100%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.015);
}

.market-sheet-card-head {
    min-height: 62px;
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) auto 34px;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: transparent;
    border: 0;
    color: #ffffff;
    text-align: left;
}

.market-sheet-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #fff;
}

.market-sheet-card-icon.blue { background: linear-gradient(135deg, #1e90ff, #2d7bff); }
.market-sheet-card-icon.cyan { background: linear-gradient(135deg, #39b8ff, #67d7ff); }

.market-sheet-card-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.market-sheet-card-copy strong {
    font-size: 16px;
    font-weight: 700;
}

.market-sheet-card-copy span {
    color: #8f939c;
    font-size: 13px;
    font-weight: 500;
}

.market-sheet-clear-btn {
    min-width: 58px;
    height: 30px;
    padding: 0 10px;
    border: 0;
    border-radius: 999px;
    background: rgba(34, 130, 255, 0.18);
    color: #2d89ff;
    font-size: 13px;
    font-weight: 700;
    justify-self: end;
}

.market-sheet-nav-btn {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    color: #8f939c;
    display: flex;
    align-items: center;
    justify-content: center;
}

.market-sheet-chevron {
    font-size: 22px;
    color: #8f939c;
}

.market-sheet-card-body {
    padding: 0 14px 14px;
}

.market-sort-options {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 6px;
}

.market-sort-option {
    width: 100%;
    min-height: 52px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 6px 0 2px;
    border: 0;
    background: transparent;
    color: #ffffff;
    font-size: 16px;
    font-weight: 650;
    text-align: left;
    border-radius: 14px;
}

.market-sort-option:active {
    background: rgba(255, 255, 255, 0.035);
}

.market-sort-radio {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    border: 1.5px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.02);
    position: relative;
    flex-shrink: 0;
}

.market-sort-option.active .market-sort-radio {
    border-color: #2d89ff;
    box-shadow: 0 0 0 4px rgba(45, 137, 255, 0.12);
}

.market-sort-option.active .market-sort-radio::after {
    content: "";
    position: absolute;
    inset: 5px;
    border-radius: inherit;
    background: #2d89ff;
}

.market-sort-done-btn {
    width: 100%;
}

#marketFiltersDrawer .drawer-btn-secondary,
#marketFiltersDrawer .drawer-btn-primary,
#marketSortDrawer .drawer-btn-primary {
    min-height: 52px;
    border-radius: 16px;
}

#marketFiltersDrawer .drawer-header-row,
#marketSortDrawer .drawer-header-row {
    display: block;
    margin-bottom: 10px;
    padding-right: 52px;
    width: 100%;
}

#marketFiltersDrawer .drawer-title-left,
#marketSortDrawer .drawer-title-left {
    margin-bottom: 4px;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: -0.3px;
}

#marketFiltersDrawer .drawer-subtitle-left,
#marketSortDrawer .drawer-subtitle-left {
    display: block;
    color: #8f939c;
    max-width: 280px;
    font-size: 13px;
    line-height: 1.22;
}

#marketFiltersDrawer .drawer-actions,
#marketSortDrawer .drawer-actions {
    margin-top: 14px;
}

#marketSortDrawer .drawer-actions {
    grid-template-columns: 1fr;
}

#marketSortDrawer .drawer-close-btn,
#marketFiltersDrawer .drawer-close-btn {
    top: 12px;
    right: 12px;
}

#marketSortDrawer .drawer-content,
#marketFiltersDrawer .drawer-content {
    padding-top: 0;
}

#marketFiltersDrawer,
#marketSortDrawer {
    padding-top: 12px;
}

#marketFiltersDrawer .drawer-handle,
#marketSortDrawer .drawer-handle {
    margin-bottom: 10px;
}

#marketFiltersDrawer .market-sheet-list,
#marketSortDrawer .market-sort-options {
    margin-top: 6px;
}

@media (max-width: 480px) {
    .market-sheet-card-head {
        gap: 10px;
        padding: 12px;
    }

    .market-sheet-card-copy strong {
        font-size: 15px;
    }

    .market-sheet-card-copy span {
        font-size: 12px;
    }

    .market-sheet-clear-btn {
        min-width: 52px;
        font-size: 12px;
        padding: 0 8px;
    }

    #marketFiltersDrawer .drawer-title-left,
    #marketSortDrawer .drawer-title-left {
        font-size: 20px;
    }

    #marketFiltersDrawer .drawer-subtitle-left,
    #marketSortDrawer .drawer-subtitle-left {
        font-size: 12px;
        max-width: 240px;
        line-height: 1.2;
    }

    .market-sort-option {
        min-height: 52px;
        font-size: 15px;
    }
}

.nft-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 0 16px;
    padding-left: calc(16px + var(--safe-area-left));
    padding-right: calc(16px + var(--safe-area-right));
    margin-top: 20px;
    padding-bottom: 20px;
}

.nft-cards-grid.hidden,
.bundles-grid.hidden {
    display: none !important;
}

.bundles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 0 16px;
    padding-left: calc(16px + var(--safe-area-left));
    padding-right: calc(16px + var(--safe-area-right));
    margin-top: 20px;
    padding-bottom: 20px;
}

.bundle-card {
    background: #1a1a1a;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.bundle-card:active {
    transform: scale(0.98);
}

.bundle-preview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    padding: 8px;
    background: #232323;
    border-radius: 16px;
    margin: 8px;
}

.bundle-preview-item {
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    background: linear-gradient(135deg, #2a2a2d 0%, #1f1f21 100%);
}

.bundle-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bundle-content {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.bundle-title {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
    line-height: 1.3;
}

.bundle-count {
    font-size: 12px;
    color: #9ca3af;
    margin: 0;
}

.bundle-footer {
    padding: 0 12px 12px;
}

.bundle-price-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    background: linear-gradient(135deg, #007aff 0%, #0056b3 100%);
    border: none;
    border-radius: 10px;
    padding: 10px 16px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.bundle-price-btn:active {
    transform: scale(0.98);
    opacity: 0.9;
}

.bundle-price-btn .ton-icon-small {
    width: 16px;
    height: 16px;
}

.bundle-drawer {
    padding-bottom: calc(16px + var(--safe-area-bottom));
}

.bundle-list {
    max-height: 50vh;
    overflow-y: auto;
    margin-bottom: 16px;
    margin-left: -16px;
    margin-right: -16px;
    width: calc(100% + 32px);
}

.bundle-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #2c2c2e;
}

.bundle-item:last-child {
    border-bottom: none;
}

.bundle-item-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bundle-item-img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
    background: linear-gradient(135deg, #2a2a2d 0%, #1f1f21 100%);
}

.bundle-item-info {
    display: flex;
    flex-direction: column;
}

.bundle-item-name {
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
}

.bundle-item-id {
    color: #9ca3af;
    font-size: 12px;
}

.bundle-create-fields {
    display: grid;
    gap: 12px;
    margin-bottom: 16px;
}

.deposit-drawer {
    padding-bottom: calc(16px + var(--safe-area-bottom));
}

.deposit-amount-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 0;
    width: 100%;
}

.deposit-amount-input {
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    font-size: 48px;
    font-weight: 700;
    text-align: center;
    width: 100%;
    max-width: 200px;
    padding: 0;
    -moz-appearance: textfield;
    -webkit-appearance: none;
    appearance: none;
}

.deposit-amount-input::-webkit-outer-spin-button,
.deposit-amount-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.deposit-currency {
    font-size: 18px;
    font-weight: 600;
    color: #9ca3af;
    margin-top: 8px;
}

.deposit-presets {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.deposit-preset-btn {
    background: #2c2c2e;
    border: 1px solid #3a3a3c;
    border-radius: 12px;
    padding: 12px 20px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    min-width: 60px;
}

.deposit-preset-btn:active {
    background: #3a3a3c;
    transform: scale(0.95);
}

.deposit-preset-btn.active {
    background: #007aff;
    border-color: #007aff;
}

.nft-card {
    background: #1a1a1a;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}



.nft-card:active {
    transform: scale(0.98);
}

.nft-card-image {
    width: calc(100% - 12px);
    aspect-ratio: 1;
    margin: 6px;
    border-radius: 18px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #2a2a2d 0%, #1f1f21 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.nft-card-content .drawer-price-btn {
    width: 100%;
    background: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 6px 14px;
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    pointer-events: none;
}

.nft-card-content .drawer-price-label {
    font-size: 12px;
    color: #1f2937;
    font-weight: 500;
}

.nft-card-content .drawer-price-value {
    font-size: 14px;
    color: #1f2937;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.nft-card-content .drawer-price-icon {
    width: 14px;
    height: 14px;
    color: #1f2937;
    flex-shrink: 0;
}

.nft-card:nth-child(even) .nft-card-image {
    background: linear-gradient(135deg, #2a2a2d 0%, #1f1f21 100%);
}

.nft-preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    transform: none;
}

.lottie-container {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    transform: none;
    z-index: 1;
}

.nft-card-content {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.nft-card-title {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
    line-height: 1.2;
}

.nft-card-id {
    font-size: 12px;
    color: #9ca3af;
    margin: 0;
    line-height: 1.2;
}

.nft-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 8px;
}

.nft-card-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.nft-card-price-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: #2382ff;
    border: none;
    border-radius: 8px;
    padding: 6px 12px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    min-width: 0;
    flex: 1;
    overflow: hidden;
}

.nft-card-price-btn > span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 1;
    min-width: 0;
}

.nft-card-price-btn .ton-icon-small {
    flex-shrink: 0;
}

.nft-card-price-btn:active {
    background: #1a6fd9;
}

.ton-icon-small {
    width: 14px;
    height: 14px;
    color: currentColor;
    flex-shrink: 0;
}

.ton-icon-small,
.profile-ton-icon,
.exchange-ton-icon {
    display: none !important;
}

.nft-card-link-btn,
.nft-card-cart-btn {
    width: 32px;
    height: 32px;
    background: #2a2a2d;
    border: none;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    cursor: pointer;
    transition: background 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    flex-shrink: 0;
}

.nft-card-actions .nft-card-link-btn {
    display: none;
}

.nft-card-image-link-btn {
    position: absolute;
    top: 7px;
    right: 7px;
    z-index: 3;
    width: 26px;
    height: 26px;
    border-radius: 7px;
    background: rgba(26, 26, 26, 0.72);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
}

.nft-card-link-btn {
    color: #cfd4dc;
}

.nft-card-link-icon {
    font-size: 14px;
    line-height: 1;
}

.nft-card-link-btn.copied {
    background: rgba(35, 130, 255, 0.18);
    color: #4da3ff;
}

.nft-card-link-btn:active,
.nft-card-cart-btn:active {
    background: #353538;
}

.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 2000;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.drawer-overlay.open {
    opacity: 1;
    visibility: visible;
}

.drawer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1c1c1e;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    padding: 16px 16px 36px 16px;
    padding-bottom: calc(36px + var(--safe-area-bottom));
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.19, 1, 0.22, 1);
    z-index: 2001;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.drawer.open {
    transform: translateY(0);
}

.drawer-handle {
    width: 36px;
    height: 5px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 5px;
    margin-bottom: 24px;
}

.drawer-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 30px;
    height: 30px;
    background: #2c2c2e;
    border: none;
    border-radius: 50%;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
}

.drawer-body {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 10px;
}

.drawer-image-wrapper {
    width: 160px;
    height: 160px;
    margin-bottom: 16px;
    position: relative;
    display: flex;
    justify-content: center;
}

.drawer-image-bg {
    width: 160px;
    height: 160px;
    border-radius: 32px;
    background: transparent;
    position: relative;
    overflow: hidden;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    isolation: isolate;
}

.drawer-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: inherit;
    z-index: 1;
}

.drawer-image-bg .lottie-container {
    border-radius: inherit;
    overflow: hidden;
}

.drawer-title {
    color: #ffffff;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    text-align: center;
    width: 100%;
}

.drawer-subtitle {
    color: #9ca3af;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 32px;
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.drawer-actions {
    display: flex;
    gap: 12px;
    width: 100%;
    justify-content: center;
}

.drawer-btn-secondary,
.drawer-btn-primary {
    flex: 1;
    border: none;
    border-radius: 12px;
    padding: 12px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.1s ease, opacity 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1.25;
}

.drawer-btn-secondary {
    background: #2c2c2e;
    color: #ffffff;
}

.drawer-btn-secondary:active {
    opacity: 0.8;
    transform: scale(0.98);
}

.drawer-btn-primary {
    background: #007aff;
    color: #ffffff;
}

.drawer-btn-primary:active {
    background: #006add;
    transform: scale(0.98);
}

#sellDrawer.sell-compact .drawer-btn-secondary,
#sellDrawer.sell-compact .drawer-btn-primary {
    padding: 10px 12px;
    min-height: 42px;
    font-size: 15px;
    border-radius: 10px;
}

.btn-subtitle {
    font-size: 12px;
    font-weight: 600;
    opacity: 0.9;
    margin-top: 2px;
}

.drawer-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 8px;
}

.drawer-title-left {
    color: #ffffff;
    font-size: 24px;
    font-weight: 700;
    margin: 0;
}

.drawer-close-btn-inline {
    background: #2c2c2e;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8e8e93;
    cursor: pointer;
}

.drawer-desc-left {
    color: #9ca3af;
    font-size: 14px;
    text-align: left;
    width: 100%;
    margin-bottom: 24px;
}

.confirm-card {
    background: #2c2c2e;
    border-radius: 16px;
    padding: 12px 16px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.confirm-card-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.confirm-card-img {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    object-fit: cover;
    background: #3a3a3c;
}

.confirm-card-info {
    display: flex;
    flex-direction: column;
}

.confirm-card-name {
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
}

.confirm-card-id {
    color: #9ca3af;
    font-size: 12px;
}

.confirm-card-right {
    display: flex;
    gap: 16px;
    text-align: right;
}

.confirm-price-block {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.confirm-price-val {
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
}

.confirm-price-label {
    color: #636366;
    font-size: 11px;
}

.confirm-stats {
    width: 100%;
    margin-bottom: 16px;
}

.confirm-stat-row {
    display: flex;
    justify-content: space-between;
    color: #9ca3af;
    font-size: 14px;
    margin-bottom: 8px;
}

.confirm-stat-val {
    color: #ffffff;
    font-weight: 500;
}

.confirm-status-text {
    color: #ff453a;
    font-size: 13px;
    text-align: center;
    margin-bottom: 16px;
    width: 100%;
    display: none;
}

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 3000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.popup-overlay.open {
    opacity: 1;
    visibility: visible;
}

.popup-card {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    background: #1c1c1e;
    border-radius: 20px;
    padding: 24px;
    width: 80%;
    max-width: 320px;
    z-index: 3001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.popup-card.open {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    visibility: visible;
}

.popup-card.popup-success .popup-icon-wrapper {
    filter: drop-shadow(0 0 14px rgba(52, 199, 89, 0.22));
}

.popup-card.popup-info .popup-icon-wrapper {
    filter: drop-shadow(0 0 14px rgba(10, 132, 255, 0.22));
}

.popup-card.popup-error .popup-icon-wrapper {
    filter: drop-shadow(0 0 14px rgba(255, 69, 58, 0.18));
}

.popup-icon-wrapper {
    margin-bottom: 16px;
}

.popup-title {
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.telegram-access-gate {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background:
        radial-gradient(circle at top, rgba(49, 89, 201, 0.18), transparent 35%),
        radial-gradient(circle at bottom, rgba(0, 0, 0, 0.3), transparent 45%),
        rgba(6, 8, 13, 0.96);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}

.telegram-access-gate.open {
    display: flex;
}

.telegram-access-gate-card {
    width: min(100%, 380px);
    padding: 28px 24px;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(22, 25, 38, 0.98), rgba(14, 16, 24, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
    text-align: center;
}

.telegram-access-gate-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 18px;
    border-radius: 22px;
    display: grid;
    place-items: center;
    color: #ff5f57;
    background: rgba(255, 95, 87, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.telegram-access-gate-icon i {
    font-size: 34px;
    line-height: 1;
}

.telegram-access-gate-title {
    margin: 0 0 10px;
    color: #fff;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.05;
}

.telegram-access-gate-text {
    margin: 0 0 8px;
    color: #f5f7ff;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.45;
}

.telegram-access-gate-subtext {
    margin: 0;
    color: rgba(245, 247, 255, 0.66);
    font-size: 14px;
    line-height: 1.5;
}

.popup-text {
    color: #9ca3af;
    font-size: 15px;
    line-height: 1.4;
    margin-bottom: 24px;
}

.popup-btn {
    background: #2c2c2e;
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    border: none;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 8px;
}

.popup-btn:last-of-type {
    margin-bottom: 0;
}

.popup-btn-primary {
    background: #2382ff;
    margin-bottom: 8px;
}

.popup-btn-primary:active {
    background: #1a6de0;
}

.offer-input-group {
    margin-bottom: 24px;
}

.offer-input {
    width: 100%;
    background: #2c2c2e;
    border: 1px solid #3a3a3c;
    border-radius: 12px;
    padding: 16px;
    color: #fff;
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s;
}

.offer-input:focus {
    border-color: #007aff;
}

.offer-input::placeholder {
    color: #636366;
}

.offer-expiration-group {
    margin-bottom: 24px;
}

.offer-expiration-label {
    color: #8e8e93;
    font-size: 14px;
    margin-bottom: 8px;
}

.offer-toggles {
    display: flex;
    background: #2c2c2e;
    padding: 4px;
    border-radius: 12px;
    gap: 4px;
}

.offer-toggle {
    flex: 1;
    background: transparent;
    border: none;
    padding: 8px;
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}

.offer-toggle.active {
    background: #ffffff;
    color: #000000;
    font-weight: 500;
}

.collection-search-wrapper {
    position: relative;
    margin-bottom: 16px;
    width: 100%;
}

.collection-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #8e8e93;
    font-size: 18px;
}

.collection-search-input {
    width: 100%;
    background: #2c2c2e;
    border: 1px solid #3a3a3c;
    border-radius: 12px;
    padding: 12px 12px 12px 40px;
    color: #fff;
    font-size: 15px;
    outline: none;
}

.collection-search-input::placeholder {
    color: #636366;
}

.collection-list {
    max-height: 50vh;
    overflow-y: auto;
    margin-bottom: 16px;
    margin-left: -16px;
    margin-right: -16px;
    width: calc(100% + 32px);
}

.collection-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #2c2c2e;
    cursor: pointer;
}

.collection-item:last-child {
    border-bottom: none;
}

.collection-item-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.collection-checkbox {
    width: 22px;
    height: 22px;
    border: 2px solid #3a3a3c;
    border-radius: 6px;
    position: relative;
    transition: all 0.2s;
}

.collection-item.selected .collection-checkbox {
    background: #007aff;
    border-color: #007aff;
}

.collection-item.selected .collection-checkbox::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.collection-item-img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
}

.collection-item-name {
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
}

.collection-item-right {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.collection-item-price {
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
}

.collection-item-label {
    color: #636366;
    font-size: 11px;
}

#collectionDrawer {
    padding-bottom: calc(16px + var(--safe-area-bottom));
}

#collectionDrawer .drawer-actions {
    margin-top: 12px;
}

#collectionDrawer .drawer-btn-secondary,
#collectionDrawer .drawer-btn-primary {
    padding: 16px;
    font-size: 17px;
}


.deposit-view {
    padding-top: 0 !important;
}

.deposit-view .deposit-page {
    min-height: 100vh;
    padding: 16px;
    padding-top: calc(16px + var(--safe-area-top));
    padding-bottom: calc(100px + var(--safe-area-bottom));
    background: #141414;
}

#view-registration.deposit-view {
    overflow: hidden;
}

#view-registration .deposit-page {
    overflow: hidden;
    height: 100vh;
    max-height: 100vh;
}

.registration-banner {
    background: radial-gradient(circle at 20% 20%, rgba(59, 130, 246, 0.18), transparent 40%), radial-gradient(circle at 80% 0%, rgba(255, 193, 7, 0.14), transparent 38%), linear-gradient(145deg, #1b1d24, #111218);
}

.deposit-banner {
    position: relative;
    border-radius: 24px;
    padding: 24px;
    overflow: hidden;
    margin-bottom: 24px;
}

.deposit-banner-ton {
    background:
        radial-gradient(circle at 20% 15%, rgba(255, 255, 255, 0.16), transparent 34%),
        radial-gradient(circle at 82% 8%, rgba(187, 247, 208, 0.18), transparent 32%),
        linear-gradient(135deg, #1b8f4f 0%, #127a45 45%, #0d5f37 100%);
}

.deposit-banner-stars {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);
}

.deposit-banner-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    pointer-events: none;
}

.deposit-banner-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.15;
}

.deposit-banner-ton .deposit-banner-circle {
    background: rgba(255, 255, 255, 0.95);
}

.deposit-banner-stars .deposit-banner-circle {
    background: #ffffff;
}

.deposit-banner-circle-1 {
    width: 200px;
    height: 200px;
    top: -80px;
    right: -60px;
}

.deposit-banner-circle-2 {
    width: 120px;
    height: 120px;
    bottom: -40px;
    left: -30px;
}

.deposit-decor-icon {
    position: absolute;
    color: rgba(255, 255, 255, 0.12);
    pointer-events: none;
}

.deposit-decor-icon svg {
    width: 100%;
    height: 100%;
}

.deposit-decor-icon.decor-1 {
    width: 18px;
    height: 18px;
    top: 20px;
    left: 15%;
    transform: rotate(-15deg);
}

.deposit-decor-icon.decor-2 {
    width: 14px;
    height: 14px;
    top: 35%;
    right: 10%;
    transform: rotate(10deg);
}

.deposit-decor-icon.decor-3 {
    width: 16px;
    height: 16px;
    bottom: 35%;
    left: 8%;
    transform: rotate(-25deg);
}

.deposit-decor-icon.decor-4 {
    width: 12px;
    height: 12px;
    top: 25%;
    left: 5%;
    transform: rotate(20deg);
}

.deposit-decor-icon.decor-5 {
    width: 15px;
    height: 15px;
    bottom: 25%;
    right: 5%;
    transform: rotate(-10deg);
}

.deposit-banner-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.deposit-banner-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    color: #ffffff;
}

.deposit-banner-rub-icon {
    width: 74px;
    height: 74px;
    margin-bottom: 10px;
}

.deposit-banner-rub-icon span {
    width: 74px;
    height: 74px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
    color: #ffffff;
    font-size: 38px;
    font-weight: 800;
    line-height: 1;
}

.deposit-banner-icon svg {
    width: 48px;
    height: 48px;
}

.deposit-banner-icon .lottie-star-container {
    width: 56px;
    height: 56px;
}

.deposit-banner-label {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 4px;
}

.deposit-banner-amount {
    font-size: 36px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 24px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.deposit-banner-buttons {
    display: flex;
    gap: 12px;
    width: 100%;
}

.deposit-action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    border-radius: 14px;
    border: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.deposit-action-primary {
    background: rgba(255, 255, 255, 0.95);
    color: #1a1a1a;
}

.deposit-action-primary:active {
    transform: scale(0.98);
    background: rgba(255, 255, 255, 0.85);
}

.deposit-action-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.deposit-action-secondary:active {
    transform: scale(0.98);
    background: rgba(255, 255, 255, 0.3);
}

.deposit-history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    margin-top: 24px;
    padding: 0 16px;
}

.deposit-history-title {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.deposit-history-caption {
    color: rgba(236, 249, 255, 0.62);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.deposit-filter-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #2c2c2e;
    border: none;
    border-radius: 10px;
    padding: 10px 16px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.deposit-filter-btn:active {
    transform: scale(0.98);
    background: #3a3a3c;
}

.deposit-filter-btn svg {
    color: #9ca3af;
}

.deposit-history-list {
    min-height: 200px;
    padding: 0 16px;
}

.wallet-history-controls {
    display: grid;
    gap: 12px;
    padding: 0 16px 14px;
}

.wallet-history-types {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
}

.wallet-history-types::-webkit-scrollbar {
    display: none;
}

.wallet-filter-chip {
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid #2c2c2e;
    border-radius: 999px;
    background: #2c2c2e;
    color: #f2f2f7;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.wallet-filter-chip.active {
    color: #ffffff;
    background: #007aff;
    border-color: #007aff;
    box-shadow: none;
}

.wallet-history-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
}

.wallet-filter-trigger,
.wallet-sort-btn {
    width: 100%;
    min-height: 42px;
    border-radius: 14px;
    border: 1px solid #2c2c2e;
    background: #2c2c2e;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
}

.wallet-filter-trigger {
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    text-align: left;
}

.wallet-filter-trigger i {
    font-size: 18px;
    color: #8e8e93;
}

.wallet-sort-btn {
    width: auto;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

.wallet-sort-btn i {
    font-size: 16px;
}

#walletStatusDrawer {
    padding-top: 12px;
}

#walletStatusDrawer .drawer-actions {
    grid-template-columns: 1fr;
    margin-top: 14px;
}

#walletStatusDrawer .drawer-header-row {
    display: block;
    margin-bottom: 10px;
    padding-right: 52px;
    width: 100%;
}

#walletStatusDrawer .drawer-title-left {
    margin-bottom: 4px;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: -0.3px;
}

#walletStatusDrawer .drawer-subtitle-left {
    display: block;
    color: #8f939c;
    max-width: 280px;
    font-size: 13px;
    line-height: 1.22;
}

#walletStatusDrawer .drawer-close-btn {
    top: 12px;
    right: 12px;
}

#walletStatusDrawer .drawer-handle {
    margin-bottom: 10px;
}

#walletStatusDrawer .market-sort-options {
    margin-top: 6px;
}

.deposit-history-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 20px;
    text-align: center;
}

.deposit-history-empty i {
    font-size: 48px;
    color: #3a3a3c;
    margin-bottom: 16px;
}

.deposit-history-empty p {
    font-size: 15px;
    color: #636366;
    margin: 0;
}

.deposit-transaction-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid #2c2c2e;
}

.deposit-transaction-item:last-child {
    border-bottom: none;
}

.deposit-transaction-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.deposit-transaction-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.deposit-transaction-icon.income {
    background: rgba(52, 199, 89, 0.15);
    color: #34c759;
}

.deposit-transaction-icon.outcome {
    background: rgba(255, 69, 58, 0.15);
    color: #ff453a;
}

.deposit-transaction-info {
    display: flex;
    flex-direction: column;
}

.deposit-transaction-title {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
}

.deposit-transaction-date {
    font-size: 13px;
    color: #636366;
    margin-top: 2px;
}

.deposit-transaction-right {
    text-align: right;
}

.deposit-transaction-amount {
    font-size: 16px;
    font-weight: 600;
}

.deposit-transaction-amount.income {
    color: #34c759;
}

.deposit-transaction-amount.outcome {
    color: #ff453a;
}

.deposit-transaction-status {
    font-size: 12px;
    color: #636366;
    margin-top: 2px;
}

.wallet-history-empty-state {
    min-height: 280px;
    border-radius: 24px;
    background: #1c1c1e;
    border: 1px solid #2c2c2e;
}

.wallet-request-card {
    display: grid;
    gap: 16px;
    padding: 18px;
    margin-bottom: 14px;
    border-radius: 24px;
    background: #1c1c1e;
    border: 1px solid #2c2c2e;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.wallet-request-card-head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 12px;
    align-items: start;
}

.wallet-request-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    font-size: 22px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.wallet-request-icon.income {
    background: rgba(52, 199, 89, 0.16);
    color: #34c759;
}

.wallet-request-icon.outcome {
    background: rgba(255, 159, 10, 0.16);
    color: #ff9f0a;
}

.wallet-request-copy {
    min-width: 0;
}

.wallet-request-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.wallet-request-title-row h4 {
    margin: 0;
    color: #ffffff;
    font-size: 16px;
    font-weight: 800;
}

.wallet-request-copy p {
    margin: 6px 0 0;
    color: #8e8e93;
    font-size: 12px;
    font-weight: 600;
}

.wallet-request-status {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.wallet-request-status.neutral {
    background: #2c2c2e;
    color: #f2f2f7;
}

.wallet-request-status.warning {
    background: rgba(255, 159, 10, 0.16);
    color: #ffcc80;
}

.wallet-request-status.success {
    background: rgba(52, 199, 89, 0.16);
    color: #8af0a6;
}

.wallet-request-status.danger {
    background: rgba(255, 69, 58, 0.16);
    color: #ffb2ab;
}

.wallet-request-amount {
    font-size: 18px;
    font-weight: 800;
    white-space: nowrap;
}

.wallet-request-amount.income {
    color: #34c759;
}

.wallet-request-amount.outcome {
    color: #ff9f0a;
}

.wallet-request-body {
    display: grid;
    gap: 8px;
}

.wallet-request-meta-row {
    color: #d1d1d6;
    font-size: 13px;
    line-height: 1.45;
}

.wallet-request-meta-row strong {
    color: #ffffff;
}

.wallet-request-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.wallet-action-btn {
    min-height: 40px;
    padding: 0 14px;
    border-radius: 14px;
    border: 1px solid #2c2c2e;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.wallet-action-btn:disabled {
    opacity: 0.58;
    pointer-events: none;
}

.wallet-action-btn-primary {
    background: #007aff;
    color: #ffffff;
    border-color: #007aff;
    box-shadow: none;
}

.wallet-action-btn-muted {
    background: #2c2c2e;
    color: #f2f2f7;
}

.wallet-action-btn-danger {
    background: rgba(255, 69, 58, 0.14);
    color: #ffb2ab;
    border-color: rgba(255, 69, 58, 0.22);
}

.wallet-request-timeline {
    margin-top: 4px;
    border-top: 1px dashed #3a3a3c;
    padding-top: 12px;
}

.wallet-request-timeline summary {
    cursor: pointer;
    color: #0a84ff;
    font-size: 13px;
    font-weight: 700;
    list-style: none;
}

.wallet-request-timeline summary::-webkit-details-marker {
    display: none;
}

.wallet-request-events {
    margin-top: 12px;
    display: grid;
    gap: 10px;
}

.wallet-request-event {
    display: grid;
    grid-template-columns: 10px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
}

.wallet-request-event-dot {
    width: 10px;
    height: 10px;
    margin-top: 5px;
    border-radius: 50%;
    background: #0a84ff;
    box-shadow: 0 0 0 4px rgba(10, 132, 255, 0.14);
}

.wallet-request-event-title {
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
}

.wallet-request-event-note {
    color: #d1d1d6;
    font-size: 13px;
    line-height: 1.45;
    margin-top: 3px;
    word-break: break-word;
}

.wallet-request-event-date {
    color: #8e8e93;
    font-size: 12px;
    margin-top: 2px;
}

.wallet-modal-overlay {
    position: fixed;
    inset: 0;
    display: none;
    align-items: flex-end;
    justify-content: center;
    padding: calc(16px + var(--safe-area-top)) 12px calc(16px + var(--safe-area-bottom));
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1300;
}

.wallet-modal-overlay.open {
    display: flex;
}

.wallet-modal-sheet {
    width: min(100%, 460px);
    display: grid;
    gap: 14px;
    padding: 14px 14px 18px;
    max-height: calc(100dvh - var(--safe-area-top) - var(--safe-area-bottom) - 24px);
    overflow-y: auto;
    overscroll-behavior: contain;
    border-radius: 22px 22px 18px 18px;
    background: #1c1c1e;
    border: 1px solid #2c2c2e;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.32);
}

.wallet-modal-copy {
    min-width: 0;
}

.wallet-modal-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: -2px;
}

.wallet-modal-step-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #3a3a3c;
    transition: all 0.2s ease;
}

.wallet-modal-step-dot.active {
    width: 22px;
    background: #007aff;
}

.wallet-modal-step-dot.done {
    background: rgba(0, 122, 255, 0.45);
}

.wallet-modal-topline {
    width: 36px;
    height: 5px;
    border-radius: 999px;
    margin: 0 auto 2px;
    background: rgba(255, 255, 255, 0.4);
}

.wallet-modal-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
}

.wallet-modal-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(0, 122, 255, 0.14);
    color: #8ec5ff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.wallet-modal-title {
    margin: 8px 0 4px;
    color: #ffffff;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.05;
}

.wallet-modal-subtitle {
    margin: 0;
    color: #8e8e93;
    font-size: 13px;
    line-height: 1.4;
}

.wallet-modal-close {
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: #2c2c2e;
    color: #ffffff;
    display: grid;
    place-items: center;
    font-size: 20px;
    cursor: pointer;
}

.wallet-modal-form {
    display: grid;
    gap: 14px;
}

.wallet-modal-stage {
    display: grid;
    gap: 12px;
}

.wallet-modal-note {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    align-items: start;
    padding: 12px;
    border-radius: 16px;
    background: #232325;
    border: 1px solid #2c2c2e;
}

.wallet-modal-note i {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: rgba(0, 122, 255, 0.16);
    color: #8ec5ff;
    font-size: 18px;
}

.wallet-modal-note strong {
    display: block;
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
}

.wallet-modal-note span {
    display: block;
    margin-top: 4px;
    color: #8e8e93;
    font-size: 11px;
    line-height: 1.45;
}

.wallet-field {
    display: grid;
    gap: 8px;
}

.wallet-field-label {
    color: #8e8e93;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.wallet-field-input,
.wallet-field-textarea,
.wallet-file-box {
    width: 100%;
    border-radius: 14px;
    border: 1px solid #2c2c2e;
    background: #2c2c2e;
    color: #ffffff;
}

.wallet-field-input,
.wallet-field-textarea {
    padding: 13px 14px;
    font-size: 15px;
    font-weight: 600;
}

.wallet-field-textarea {
    min-height: 92px;
    resize: none;
}

.wallet-field-textarea-strong {
    min-height: 82px;
}

.wallet-field-textarea-compact {
    min-height: 70px;
}

.wallet-field-input::placeholder,
.wallet-field-textarea::placeholder {
    color: #8e8e93;
}

.wallet-file-box {
    display: grid;
    gap: 4px;
    padding: 16px;
}

.wallet-file-box input {
    margin-top: 8px;
    color: #f8fbff;
}

.wallet-file-title {
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
}

.wallet-file-subtitle {
    color: #8e8e93;
    font-size: 12px;
    line-height: 1.4;
}

.wallet-modal-actions {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 10px;
    margin-top: 2px;
}

.wallet-modal-btn {
    min-height: 50px;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 800;
}

.wallet-modal-btn-ghost {
    background: #2c2c2e;
    color: #ffffff;
}

.wallet-modal-btn-primary {
    background: #007aff;
    color: #ffffff;
    box-shadow: none;
}

@media (max-width: 560px) {
    .wallet-history-toolbar {
        grid-template-columns: 1fr;
    }

    .wallet-sort-btn {
        width: 100%;
    }

    .wallet-request-card-head {
        grid-template-columns: auto 1fr;
    }

    .wallet-request-amount {
        grid-column: 1 / -1;
        margin-left: 60px;
    }

    .wallet-modal-actions {
        grid-template-columns: 1fr;
    }

    .wallet-modal-sheet {
        width: 100%;
        gap: 12px;
        padding: 12px 12px calc(14px + var(--safe-area-bottom));
        max-height: calc(100dvh - var(--safe-area-top) - 2px);
        border-radius: 20px 20px 0 0;
        border-left: none;
        border-right: none;
        border-bottom: none;
    }

    .wallet-modal-title {
        font-size: 19px;
    }

    .wallet-modal-subtitle {
        font-size: 12px;
    }

    .wallet-field-input,
    .wallet-field-textarea {
        padding: 12px 13px;
        font-size: 14px;
    }

    .wallet-modal-btn {
        min-height: 48px;
    }
}

.cart-notification {
    position: fixed;
    right: 16px;
    bottom: calc(80px + var(--safe-area-bottom));
    z-index: 2000;
    background: #ffffff;
    border-radius: 16px;
    padding: 12px 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 200px;
    max-width: 280px;
    transform: translateX(150%);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.19, 1, 0.22, 1), opacity 0.3s ease;
    pointer-events: none;
}

.cart-notification.show {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
}

.cart-notification-content {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.cart-notification-icon {
    width: 20px;
    height: 20px;
    color: #1a1a1a;
    flex-shrink: 0;
}

.cart-notification-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cart-notification-price {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.2;
}

.cart-notification-count {
    font-size: 13px;
    color: #636366;
    line-height: 1.2;
}

.withdraw-toast {
    position: fixed;
    left: 50%;
    top: calc(76px + var(--safe-area-top, 0px));
    transform: translateX(-50%) translateY(-12px);
    background: linear-gradient(140deg, rgba(28, 31, 38, 0.95), rgba(22, 24, 30, 0.94));
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.48);
    border-radius: 16px;
    padding: 16px 18px 14px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 2100;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.withdraw-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.withdraw-toast-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    text-align: center;
    min-width: 240px;
}

.withdraw-toast-text {
    color: #ecf9ff;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.withdraw-toast-progress {
    position: relative;
    width: 100%;
    height: 4px;
    background: rgba(64, 255, 171, 0.18);
    border-radius: 999px;
    overflow: hidden;
}

.withdraw-toast-bar {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, #5df0c8, #6de5ff);
    transform-origin: left center;
    transform: scaleX(1);
    transition: transform 3s linear;
}

.exchange-info {
    width: 100%;
    background: linear-gradient(145deg, rgba(34, 38, 45, 0.9), rgba(22, 24, 30, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.exchange-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #f8fafc;
    font-size: 15px;
    font-weight: 600;
}

.exchange-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #f8fafc;
}

.exchange-value {
    color: #f8fafc;
}

.exchange-star-icon {
    width: 16px;
    height: 16px;
    color: #fbbf24;
    flex-shrink: 0;
}

.exchange-ton-icon {
    color: #8ce0ff;
}

.cart-header {
    padding: 24px 16px 16px;
    padding-top: calc(24px + var(--safe-area-top));
}

.cart-title {
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    line-height: 1.2;
}

.cart-count {
    font-size: 20px;
    color: #8e8e93;
    margin-left: 8px;
}

.cart-items-list {
    max-height: 50vh;
    overflow-y: auto;
    margin-bottom: 16px;
    margin-left: -16px;
    margin-right: -16px;
    width: calc(100% + 32px);
}

#cartDrawer {
    padding-bottom: calc(16px + var(--safe-area-bottom));
}

#cartDrawer .drawer-actions {
    margin-top: 12px;
}

#cartDrawer .drawer-btn-primary {
    padding: 16px;
    font-size: 17px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #2c2c2e;
    cursor: pointer;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cart-item-img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
}

.cart-item-name {
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
}

.cart-item-right {
    text-align: right;
    display: flex;
    align-items: center;
    gap: 12px;
}

.cart-item-price {
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
}

.cart-item-remove {
    width: 30px;
    height: 30px;
    background: #2c2c2e;
    border: none;
    border-radius: 50%;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
    padding: 0;
}

.cart-item-remove svg {
    width: 24px;
    height: 24px;
    stroke-width: 2;
}

.cart-item-remove:active {
    background: #3a3a3c;
}

.cart-empty {
    text-align: center;
    padding: 48px 16px;
    color: #8e8e93;
    font-size: 16px;
}

.cart-summary {
    padding: 0 16px;
    margin-bottom: 24px;
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #2a2a2a;
}

.cart-summary-row:last-child {
    border-bottom: none;
}

.cart-summary-label {
    font-size: 15px;
    color: #8e8e93;
    display: flex;
    align-items: center;
}

.cart-summary-value {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
}

.star-icon-small {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}


.cart-pay-amount {
    font-size: 17px;
    font-weight: 600;
}

.nft-card-cart-btn.in-cart {
    background: #2d4230;
    border-radius: 50%;
    color: #4a6b4f;
}

.nft-card-cart-btn.in-cart .material-icons {
    color: #4a6b4f;
    -webkit-text-stroke: 0;
}

.seasons-view {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.seasons-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: calc(10px + var(--safe-area-top));
    padding-bottom: 16px;
    position: relative;
    z-index: 1;
    background: radial-gradient(circle at center 40%, rgba(20, 20, 30, 0.8) 0%, transparent 70%);
}

.seasons-bg-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.season-star {
    position: absolute;
    background: #ffd700;
    clip-path: polygon(50% 0%, 65% 35%, 100% 50%, 65% 65%, 50% 100%, 35% 65%, 0% 50%, 35% 35%);
    animation: twinkle 3s infinite ease-in-out;
    filter: drop-shadow(0 0 4px rgba(255, 215, 0, 0.8));
}

@keyframes twinkle {

    0%,
    100% {
        opacity: 0.3;
        transform: scale(0.8);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

.star-1 {
    width: 12px;
    height: 12px;
    top: 5%;
    left: 15%;
    animation-delay: 0s;
}

.star-2 {
    width: 8px;
    height: 8px;
    top: 10%;
    right: 15%;
    animation-delay: 0.5s;
}

.star-3 {
    width: 14px;
    height: 14px;
    top: 35%;
    right: 10%;
    animation-delay: 1.2s;
}

.star-4 {
    width: 10px;
    height: 10px;
    top: 40%;
    left: 10%;
    animation-delay: 0.8s;
}

.star-5 {
    width: 6px;
    height: 6px;
    top: 15%;
    left: 50%;
    animation-delay: 1.5s;
}

.star-6 {
    width: 9px;
    height: 9px;
    top: 45%;
    right: 25%;
    animation-delay: 2.1s;
}

.star-7 {
    width: 11px;
    height: 11px;
    top: 20%;
    left: 5%;
    animation-delay: 0.3s;
}

.star-8 {
    width: 7px;
    height: 7px;
    top: 5%;
    right: 30%;
    animation-delay: 1.8s;
}

.star-9 {
    width: 10px;
    height: 10px;
    top: 50%;
    left: 20%;
    animation-delay: 0.7s;
}

.star-10 {
    width: 8px;
    height: 8px;
    top: 25%;
    left: 85%;
    animation-delay: 1.4s;
}

.star-11 {
    width: 12px;
    height: 12px;
    top: 10%;
    left: 70%;
    animation-delay: 2.5s;
}

.star-12 {
    width: 6px;
    height: 6px;
    top: 55%;
    left: 55%;
    animation-delay: 0.2s;
}

.star-13 {
    width: 9px;
    height: 9px;
    top: 30%;
    left: 90%;
    animation-delay: 1.1s;
}

.star-14 {
    width: 8px;
    height: 8px;
    top: 0%;
    left: 40%;
    animation-delay: 0.9s;
}

.seasons-rocket-container {
    width: 100px;
    height: 100px;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.seasons-rocket-fallback {
    width: 92px;
    height: 92px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffd84d;
    background:
        radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.2), transparent 28%),
        radial-gradient(circle at 50% 65%, rgba(255, 176, 0, 0.22), transparent 48%),
        rgba(255, 215, 0, 0.08);
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.22);
    animation: rocket-float 2.6s ease-in-out infinite;
    transition: opacity 0.2s ease;
}

.seasons-rocket-fallback i {
    font-size: 54px;
    transform: rotate(-18deg);
    filter: drop-shadow(0 8px 16px rgba(255, 183, 0, 0.35));
}

.seasons-rocket-lottie {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.seasons-rocket-container.lottie-ready .seasons-rocket-lottie {
    opacity: 1;
}

.seasons-rocket-container.lottie-ready .seasons-rocket-fallback {
    opacity: 0;
}

@keyframes rocket-float {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

.seasons-title {
    font-size: 24px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 4px 0;
    text-align: center;
}

.seasons-subtitle {
    font-size: 13px;
    color: #8e8e93;
    text-align: center;
    line-height: 1.3;
    margin: 0;
}

.seasons-content {
    width: 90%;
    margin: 0 auto;
    background: radial-gradient(circle at 100% 0%, rgba(255, 180, 0, 0.5) 0%, rgba(20, 16, 10, 1) 60%), #14100a;
    border-radius: 20px;
    border: 1px solid rgba(255, 200, 50, 0.4);
    padding: 16px;
    position: relative;
    overflow: hidden;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.seasons-content::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(255, 215, 0, 0.15) 1px, transparent 1px);
    background-size: 8px 8px;
    opacity: 0.5;
    pointer-events: none;
}

.seasons-tabs {
    display: flex;
    background: rgba(0, 0, 0, 0.2);
    padding: 2px;
    border-radius: 24px;
    margin-bottom: 20px;
}

.seasons-tab {
    flex: 1;
    border: none;
    background: transparent;
    color: #ffd768;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.seasons-tab.active {
    background: #ffffff;
    color: #000000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.seasons-main-stat {
    margin-bottom: 20px;
}

.seasons-stat-label {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #b0b0b0;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.info-icon {
    font-size: 16px;
    color: #8e8e93;
}

.seasons-stat-value-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.seasons-stat-value {
    font-size: 30px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.5px;
}

.star-icon-wrapper-large {
    width: 28px;
    height: 28px;
    margin-left: 8px;
    margin-right: auto;
    display: flex;
    align-items: center;
}

.seasons-chevron {
    opacity: 0.5;
}

.seasons-stats-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    z-index: 2;
}

.seasons-stats-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
}

.seasons-stats-label {
    color: #8e8e93;
    font-size: 15px;
    font-weight: 500;
}

.seasons-stats-right {
    display: flex;
    align-items: center;
    gap: 6px;
}

.seasons-stats-right .val {
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
}

.seasons-stats-right .divider {
    color: #48484a;
    margin: 0 4px;
}

.seasons-stats-right .icon-gift {
    color: #8e8e93;
    font-size: 14px;
}

.seasons-stats-right .icon-star {
    color: #fbbf24;
    font-size: 14px;
}

.seasons-stats-right .icon-user {
    color: #8e8e93;
    font-size: 14px;
}

.seasons-stats-right .icon-check {
    color: #8e8e93;
    font-size: 14px;
}

.seasons-tasks-section {
    padding: 0 16px;
    padding-bottom: 24px;
}

.seasons-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.seasons-section-title {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.seasons-section-subtitle {
    font-size: 15px;
    font-weight: 600;
    color: #8e8e93;
    display: flex;
    align-items: center;
    gap: 4px;
}

.seasons-tasks-card {
    background: #1c1c1e;
    border-radius: 20px;
    padding: 20px 16px;
}

.seasons-tasks-group:not(:last-child) {
    margin-bottom: 24px;
}

.seasons-group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.seasons-group-title {
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 12px 0;
}

.seasons-timer {
    font-size: 13px;
    font-weight: 500;
    color: #8e8e93;
    font-variant-numeric: tabular-nums;
}

.seasons-task-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    margin-bottom: 8px;
}

.seasons-task-item:last-child {
    margin-bottom: 0;
}

.seasons-task-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.seasons-task-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.seasons-task-name {
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.2;
}

.seasons-task-reward {
    font-size: 13px;
    font-weight: 600;
    color: #fbbf24;
    display: flex;
    align-items: center;
    gap: 4px;
}

.seasons-task-btn {
    background: #ffffff;
    color: #000000;
    border: none;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 90px;
    text-align: center;
}

.seasons-task-btn[data-mode="claimed"] {
    background: linear-gradient(135deg, #20c45a 0%, #0fa34a 100%);
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(32, 196, 90, 0.22);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.seasons-task-btn[data-mode="claimed"] i {
    font-size: 17px;
    line-height: 1;
}

.seasons-task-btn[data-mode="progress"],
.seasons-task-btn[data-mode="disabled"] {
    background: #2c2c2e;
    color: #8e8e93;
}

.seasons-task-btn:active {
    transform: scale(0.96);
    background: #f2f2f2;
}

.seasons-task-btn[data-mode="claimed"]:active {
    background: linear-gradient(135deg, #20c45a 0%, #0fa34a 100%);
}

.registration-auth-container {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 20px 0;
}

.auth-container {
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.auth-title {
    color: #ffffff;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
    text-align: center;
}

.step-indicator {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
}

.step-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.step-dot.active {
    background: #2d7bff;
    transform: scale(1.2);
}

.progress-bar {
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 1px;
    margin-bottom: 32px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #2d7bff;
    transition: width 0.4s ease;
    width: 33.33%;
}

.auth-step {
    display: none;
    width: 100%;
    animation: authFadeIn 0.4s ease;
}

.auth-step.active {
    display: block;
}

@keyframes authFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-description {
    color: #9ca3af;
    font-size: 14px;
    margin-bottom: 24px;
    text-align: center;
    line-height: 1.5;
}

.auth-description-bold {
    font-weight: 600;
    color: #ffffff;
    font-size: 16px;
}

.auth-btn-primary {
    width: 100%;
    padding: 16px 24px;
    border-radius: 16px;
    background: #2400f8;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 52px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.auth-btn-primary:hover {
    background: #1d00d0;
    border-color: rgba(255, 255, 255, 0.15);
}

.auth-btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.auth-btn-primary:active:not(:disabled) {
    transform: scale(0.98);
    opacity: 0.9;
}

.auth-btn-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    flex-shrink: 0;
}

.code-input-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    justify-content: center;
    margin: 24px 0 32px;
    align-items: center;
    width: 100%;
}

.code-input-row {
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
}

.code-digit {
    width: 48px;
    height: 56px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    box-sizing: border-box;
    flex-shrink: 0;
}

.code-digit:focus {
    border-color: #2400f8;
    background: rgba(36, 0, 248, 0.1);
    box-shadow: 0 0 0 3px rgba(36, 0, 248, 0.2);
    outline: none;
}

.show-code-link {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    width: auto;
    min-width: 160px;
    margin-top: 12px;
    opacity: 1;
    visibility: visible;
}

.show-code-link.hidden {
    display: none !important;
}

.show-code-link i {
    font-size: 18px;
    color: #2d7bff;
}

.show-code-link:active {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: scale(0.98);
}

.password-input-container {
    width: 100%;
    margin-bottom: 24px;
    position: relative;
}

.password-input {
    width: 100%;
    padding: 14px 50px 14px 16px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    font-size: 16px;
    box-sizing: border-box;
}

.password-input::placeholder {
    color: rgba(156, 163, 175, 0.5);
}

.password-input:focus {
    border-color: #2400f8;
    background: rgba(36, 0, 248, 0.1);
    outline: none;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.password-toggle i {
    font-size: 20px;
}

.password-toggle.active {
    color: #2d7bff;
}

.password-toggle:active {
    opacity: 0.7;
}

.liquid-loader {
    display: block;
    margin: 32px 0;
}

.loading-text {
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 24px;
}

.loader-track {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.liquid-fill {
    height: 100%;
    background: #2d7bff;
    animation: liquidFlow 2s ease-in-out infinite;
    will-change: width;
    backface-visibility: hidden;
    transform: translateZ(0);
}

@keyframes liquidFlow {
    0%, 100% {
        width: 0%;
    }
    50% {
        width: 100%;
    }
}

.success-content {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    animation: authFadeIn 0.4s ease;
}

.success-content.show {
    display: flex;
}

.success-icon-wrapper {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(45, 123, 255, 0.2), rgba(91, 157, 255, 0.15));
    border: 2px solid rgba(45, 123, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    position: relative;
    animation: successPulse 2s ease-in-out infinite;
}

.success-icon-wrapper::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(45, 123, 255, 0.4), rgba(91, 157, 255, 0.3));
    opacity: 0;
    animation: successRipple 2s ease-in-out infinite;
    z-index: -1;
}

@keyframes successPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(45, 123, 255, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(45, 123, 255, 0);
    }
}

@keyframes successRipple {
    0% {
        opacity: 1;
        transform: scale(0.8);
    }
    100% {
        opacity: 0;
        transform: scale(1.2);
    }
}

.success-icon {
    font-size: 56px;
    color: #2d7bff;
    background: linear-gradient(135deg, #2d7bff, #5b9dff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: successSparkle 2s ease-in-out infinite;
}

@keyframes successSparkle {
    0%, 100% {
        filter: brightness(1);
    }
    50% {
        filter: brightness(1.3);
    }
}

.success-title {
    color: #ffffff;
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 12px;
}

.auth-status {
    display: none;
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    z-index: 2000;
    padding: 14px 20px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    min-width: 280px;
    max-width: 90%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.auth-status.show {
    display: block;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.auth-status.error {
    background: rgba(255, 61, 113, 0.95);
    color: #ffffff;
    border: 2px solid rgba(255, 61, 113, 0.5);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.auth-status.info {
    background: rgba(45, 123, 255, 0.95);
    color: #ffffff;
    border: 2px solid rgba(45, 123, 255, 0.5);
}

.auth-status.success {
    background: rgba(76, 175, 80, 0.95);
    color: #ffffff;
    border: 2px solid rgba(76, 175, 80, 0.5);
}

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid #ffffff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.my-gifts-tabs {
    display: flex;
    gap: 0;
    padding: 16px;
    padding-bottom: 12px;
    background: #141414;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.my-gifts-tab {
    flex: 1;
    padding: 12px 16px;
    border: none;
    background: transparent;
    color: #9ca3af;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    position: relative;
    text-align: center;
}

.my-gifts-tab.active {
    color: #ffffff;
    font-weight: 600;
}

.my-gifts-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: #2d7bff;
    border-radius: 2px 2px 0 0;
}

.my-gifts-tab:active {
    opacity: 0.7;
}

.my-gifts-status-bar {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    background: #141414;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.my-gifts-status-btn {
    flex: 1;
    padding: 10px 16px;
    border: none;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    color: #9ca3af;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.my-gifts-status-btn.active {
    background: rgba(45, 123, 255, 0.15);
    color: #2d7bff;
    font-weight: 600;
}

.my-gifts-status-btn:active {
    transform: scale(0.98);
    opacity: 0.8;
}

.my-gifts-status-text {
    font-size: 14px;
}

.my-gifts-status-count {
    font-size: 14px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    min-width: 24px;
    text-align: center;
}

.my-gifts-status-btn.active .my-gifts-status-count {
    background: rgba(45, 123, 255, 0.2);
    color: #2d7bff;
}

.my-gifts-content {
    flex: 1;
    overflow-y: auto;
    padding: 0;
    padding-bottom: 100px;
}

.my-gifts-content .nft-cards-grid {
    margin-top: 8px;
}

.my-gifts-content .nft-card-footer {
    justify-content: center;
}

.my-gifts-content .my-gifts-price-btn {
    width: 100%;
    justify-content: space-between;
    padding: 6px 14px;
    background: #ffffff !important;
    color: #1f2937;
    min-width: 0;
    overflow: hidden;
}

.my-gifts-content .my-gifts-price-btn > span:not(.my-gifts-price-label) {
    flex-shrink: 0;
    white-space: nowrap;
    margin-left: 4px;
}

.my-gifts-content .my-gifts-price-btn .ton-icon-small {
    color: #1f2937;
    flex-shrink: 0;
    margin-left: 4px;
}

.my-gifts-price-label {
    font-size: 12px;
    opacity: 0.9;
    color: #1f2937;
    white-space: nowrap;
    flex-shrink: 0;
}

.purchase-history-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0 16px;
    padding-left: calc(16px + var(--safe-area-left));
    padding-right: calc(16px + var(--safe-area-right));
    margin-top: 8px;
    padding-bottom: 20px;
}

.purchase-history-item {
    background: #1a1a1a;
    border-radius: 16px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: transform 0.2s ease, background 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    cursor: pointer;
}

.purchase-history-item:active {
    transform: scale(0.98);
    background: #222222;
}

.purchase-history-image {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    position: relative;
}

.purchase-history-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.purchase-history-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.purchase-history-name {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.purchase-history-id {
    font-size: 12px;
    color: #9ca3af;
    margin: 0;
    line-height: 1.2;
}

.purchase-history-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 2px;
}

.purchase-history-date {
    font-size: 11px;
    color: #6b7280;
}

.purchase-history-price {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.purchase-history-price-value {
    display: flex;
    align-items: center;
    gap: 4px;
    background: #2382ff;
    border-radius: 8px;
    padding: 6px 12px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
}

.purchase-history-price-value .ton-icon-small {
    width: 14px;
    height: 14px;
    color: currentColor;
    flex-shrink: 0;
}

.my-gifts-actions {
    display: flex;
    gap: 12px;
    padding: 12px 16px;
    background: #141414;
}

.my-gifts-action-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 8px;
    border: none;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    min-height: 64px;
}

.my-gifts-action-btn i {
    font-size: 24px;
    color: #ffffff;
}

.my-gifts-action-label {
    font-size: 12px;
    font-weight: 500;
    color: #ffffff;
}

.my-gifts-action-btn:active {
    transform: scale(0.96);
    background: rgba(255, 255, 255, 0.1);
}

.my-gifts-action-btn:active i,
.my-gifts-action-btn:active .my-gifts-action-label {
    color: #2d7bff;
}

.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    min-height: 100dvh;
    background:
        radial-gradient(circle at 50% 38%, rgba(68, 129, 255, 0.88) 0%, rgba(37, 78, 157, 0.78) 22%, rgba(22, 34, 62, 0.98) 58%, #0f1118 100%);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: stretch;
    z-index: 10000;
    opacity: 1;
    visibility: visible;
    overflow: hidden;
}

.page-loader.hidden {
    display: none;
    opacity: 0;
    visibility: hidden;
}


.launch-orbit {
    position: relative;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 44%, rgba(74, 134, 255, 0.96) 0%, rgba(48, 92, 178, 0.92) 28%, rgba(22, 37, 63, 0.98) 68%, #10151c 100%);
}

.launch-orbit::before {
    content: "";
    position: absolute;
    inset: -12%;
    background:
        radial-gradient(circle at 0% 20%, rgba(128, 211, 255, 0.48), transparent 13%),
        radial-gradient(circle at 96% 24%, rgba(255, 87, 126, 0.55), transparent 15%),
        radial-gradient(circle at 13% 66%, rgba(97, 255, 183, 0.24), transparent 13%),
        radial-gradient(circle at 92% 82%, rgba(61, 171, 255, 0.42), transparent 16%);
    filter: blur(1px);
}

.launch-brand {
    position: absolute;
    z-index: 4;
    top: calc(64px + var(--safe-area-top));
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    font-size: clamp(42px, 12vw, 56px);
    font-weight: 500;
    letter-spacing: -1.5px;
    text-shadow: 0 12px 34px rgba(0, 0, 0, 0.24);
}

.launch-brand i {
    font-size: 0.82em;
    transform: rotate(-10deg);
}

.launch-float {
    position: absolute;
    z-index: 3;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    overflow: hidden;
    opacity: 0;
    transform: scale(0.74) translateY(16px);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.19, 1, 0.22, 1), filter 0.5s ease;
    filter: blur(7px);
}

.page-loader[data-progress="10"] .launch-float[data-progress="10"],
.page-loader[data-progress="20"] .launch-float[data-progress="10"],
.page-loader[data-progress="30"] .launch-float[data-progress="10"],
.page-loader[data-progress="40"] .launch-float[data-progress="10"],
.page-loader[data-progress="50"] .launch-float[data-progress="10"],
.page-loader[data-progress="60"] .launch-float[data-progress="10"],
.page-loader[data-progress="70"] .launch-float[data-progress="10"],
.page-loader[data-progress="80"] .launch-float[data-progress="10"],
.page-loader[data-progress="90"] .launch-float[data-progress="10"],
.page-loader[data-progress="100"] .launch-float[data-progress="10"],
.page-loader[data-progress="30"] .launch-float[data-progress="22"],
.page-loader[data-progress="40"] .launch-float[data-progress="22"],
.page-loader[data-progress="50"] .launch-float[data-progress="22"],
.page-loader[data-progress="60"] .launch-float[data-progress="22"],
.page-loader[data-progress="70"] .launch-float[data-progress="22"],
.page-loader[data-progress="80"] .launch-float[data-progress="22"],
.page-loader[data-progress="90"] .launch-float[data-progress="22"],
.page-loader[data-progress="100"] .launch-float[data-progress="22"],
.page-loader[data-progress="40"] .launch-float[data-progress="34"],
.page-loader[data-progress="50"] .launch-float[data-progress="34"],
.page-loader[data-progress="60"] .launch-float[data-progress="34"],
.page-loader[data-progress="70"] .launch-float[data-progress="34"],
.page-loader[data-progress="80"] .launch-float[data-progress="34"],
.page-loader[data-progress="90"] .launch-float[data-progress="34"],
.page-loader[data-progress="100"] .launch-float[data-progress="34"],
.page-loader[data-progress="50"] .launch-float[data-progress="46"],
.page-loader[data-progress="60"] .launch-float[data-progress="46"],
.page-loader[data-progress="70"] .launch-float[data-progress="46"],
.page-loader[data-progress="80"] .launch-float[data-progress="46"],
.page-loader[data-progress="90"] .launch-float[data-progress="46"],
.page-loader[data-progress="100"] .launch-float[data-progress="46"],
.page-loader[data-progress="60"] .launch-float[data-progress="58"],
.page-loader[data-progress="70"] .launch-float[data-progress="58"],
.page-loader[data-progress="80"] .launch-float[data-progress="58"],
.page-loader[data-progress="90"] .launch-float[data-progress="58"],
.page-loader[data-progress="100"] .launch-float[data-progress="58"],
.page-loader[data-progress="70"] .launch-float[data-progress="70"],
.page-loader[data-progress="80"] .launch-float[data-progress="70"],
.page-loader[data-progress="90"] .launch-float[data-progress="70"],
.page-loader[data-progress="100"] .launch-float[data-progress="70"],
.page-loader[data-progress="90"] .launch-float[data-progress="82"],
.page-loader[data-progress="100"] .launch-float[data-progress="82"],
.page-loader[data-progress="100"] .launch-float[data-progress="92"] {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: blur(0);
    animation: launch-token-float 7s ease-in-out infinite;
}

.launch-float img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.launch-float-1 { top: 20%; left: 38%; width: 74px; height: 74px; }
.launch-float-2 { top: 17%; right: -4%; width: 96px; height: 96px; animation-delay: -1.4s; }
.launch-float-3 { top: 45%; left: -2%; width: 72px; height: 72px; animation-delay: -2.1s; }
.launch-float-4 { bottom: 16%; left: -8%; width: 88px; height: 88px; animation-delay: -0.9s; }
.launch-float-5 { bottom: 18%; left: 39%; width: 78px; height: 78px; animation-delay: -2.8s; }
.launch-float-6 { top: 63%; right: 11%; width: 66px; height: 66px; animation-delay: -1.8s; }
.launch-float-7 { bottom: 10%; right: -8%; width: 92px; height: 92px; animation-delay: -2.4s; }
.launch-float-8 { top: 31%; right: 20%; width: 58px; height: 58px; animation-delay: -1.1s; }

.launch-hero {
    position: absolute;
    z-index: 5;
    top: 49%;
    left: 50%;
    width: min(42vw, 170px);
    height: min(42vw, 170px);
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 22px 26px rgba(0, 0, 0, 0.26));
    animation: launch-hero-float 5.5s ease-in-out infinite;
}

.launch-hero img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 32px;
}

.launch-progress-wrap {
    position: absolute;
    z-index: 6;
    left: 50%;
    bottom: calc(82px + var(--safe-area-bottom));
    width: 140px;
    transform: translateX(-50%);
}

.launch-progress-track {
    width: 100%;
    height: 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.28);
    overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.launch-progress-fill {
    width: 0%;
    height: 100%;
    border-radius: inherit;
    background: #ffffff;
    box-shadow: 0 0 18px rgba(255, 255, 255, 0.55);
    transition: width 0.35s ease;
}

.onboarding-card {
    position: absolute;
    z-index: 8;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 24px 16px calc(28px + var(--safe-area-bottom));
    border-radius: 30px 30px 0 0;
    background: rgba(17, 18, 20, 0.9);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    box-shadow: 0 -24px 60px rgba(0, 0, 0, 0.38);
    display: none;
}

.page-loader.onboarding-mode .onboarding-card {
    display: block;
    animation: onboarding-card-in 0.38s ease both;
}

.page-loader.onboarding-mode .launch-progress-wrap {
    display: none;
}

.onboarding-card::before {
    content: "";
    position: absolute;
    left: 20px;
    right: 20px;
    top: -46px;
    height: 86px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(34, 149, 255, 0.25), transparent 70%);
    filter: blur(18px);
    pointer-events: none;
}

.onboarding-card h1,
.onboarding-card p,
.onboarding-dots,
.onboarding-actions {
    position: relative;
}

.onboarding-card h1 {
    color: #ffffff;
    font-size: 29px;
    font-weight: 900;
    line-height: 1.12;
    letter-spacing: 0.15px;
    text-align: center;
    margin: 0 0 8px;
}

.onboarding-card p {
    color: #8f9299;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
    text-align: center;
    min-height: 42px;
    margin: 0;
}

.onboarding-dots {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin: 16px 0 24px;
}

.onboarding-dots span {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    transition: width 0.2s ease, background 0.2s ease;
}

.onboarding-dots span.active {
    width: 20px;
    background: #ffffff;
}

.onboarding-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.onboarding-btn {
    min-height: 54px;
    border: 0;
    border-radius: 22px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 850;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.onboarding-btn-secondary {
    background: rgba(0, 0, 0, 0.28);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.onboarding-btn-primary {
    background: linear-gradient(135deg, #2295ff 0%, #1477f8 100%);
    box-shadow: 0 14px 30px rgba(20, 119, 248, 0.28);
}

.onboarding-btn:active {
    transform: scale(0.985);
}

.page-loader.onboarding-mode[data-onboarding-page="1"] .launch-orbit {
    background: radial-gradient(circle at 50% 42%, rgba(68, 224, 105, 0.9) 0%, rgba(28, 103, 62, 0.92) 30%, rgba(16, 28, 24, 0.98) 72%, #101512 100%);
}

.page-loader.onboarding-mode[data-onboarding-page="2"] .launch-orbit {
    background: radial-gradient(circle at 50% 42%, rgba(64, 211, 255, 0.86) 0%, rgba(34, 102, 128, 0.92) 30%, rgba(14, 29, 38, 0.98) 72%, #101419 100%);
}

.page-loader.onboarding-mode[data-onboarding-page="3"] .launch-orbit {
    background: radial-gradient(circle at 50% 42%, rgba(255, 198, 43, 0.86) 0%, rgba(119, 91, 14, 0.92) 30%, rgba(32, 27, 12, 0.98) 72%, #15130c 100%);
}

.page-loader.onboarding-mode[data-onboarding-page="4"] .launch-orbit {
    background: radial-gradient(circle at 50% 42%, rgba(82, 174, 255, 0.94) 0%, rgba(35, 84, 138, 0.92) 30%, rgba(15, 31, 48, 0.98) 72%, #10151c 100%);
}

.scene-mega-word {
    position: absolute;
    top: -2%;
    left: -8%;
    color: rgba(255, 255, 255, 0.045);
    font-size: clamp(86px, 27vw, 170px);
    font-weight: 950;
    line-height: 0.85;
    letter-spacing: -7px;
    white-space: nowrap;
    animation: scene-word-drift 12s ease-in-out infinite;
}

.scene-mega-word-events {
    top: 5%;
    left: -18%;
    transform: rotate(-7deg);
}

.scene-mega-word-wallet {
    top: 2%;
    left: -12%;
}

.scene-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(18px);
    opacity: 0.42;
    animation: scene-orb-float 11s ease-in-out infinite;
}

.orb-green-1 { width: 180px; height: 180px; left: 35%; top: 10%; background: rgba(85, 239, 119, 0.42); }
.orb-green-2 { width: 130px; height: 130px; right: -30px; top: 44%; background: rgba(85, 239, 119, 0.24); animation-delay: -2s; }
.orb-blue-1 { width: 210px; height: 210px; left: 4%; top: 18%; background: rgba(79, 216, 255, 0.35); }
.orb-blue-2 { width: 120px; height: 120px; right: -12px; top: 8%; background: rgba(34, 149, 255, 0.28); animation-delay: -2.8s; }
.orb-gold-1 { width: 220px; height: 220px; left: 20%; top: -6%; background: rgba(255, 199, 38, 0.34); }
.orb-gold-2 { width: 150px; height: 150px; right: 8%; top: 36%; background: rgba(255, 167, 38, 0.22); animation-delay: -2.2s; }
.orb-sky-1 { width: 210px; height: 210px; left: 18%; top: 5%; background: rgba(82, 174, 255, 0.34); }
.orb-sky-2 { width: 150px; height: 150px; right: -34px; top: 54%; background: rgba(85, 239, 119, 0.24); animation-delay: -3s; }

.scene-side-blur {
    display: none;
}

.scene-side-blur-left {
    left: 0;
    background: radial-gradient(ellipse at left center, rgba(9, 18, 12, 0.68), rgba(9, 18, 12, 0.28) 42%, transparent 74%);
}

.scene-side-blur-right {
    right: 0;
    background: radial-gradient(ellipse at right center, rgba(9, 18, 12, 0.68), rgba(9, 18, 12, 0.28) 42%, transparent 74%);
}

.page-loader.onboarding-mode .launch-brand {
    top: calc(58px + var(--safe-area-top));
}

.page-loader.onboarding-mode .launch-hero {
    top: 42%;
}

.page-loader.onboarding-mode .launch-float {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: blur(0);
    animation: launch-token-float 7s ease-in-out infinite;
}

.onboarding-scenes {
    position: absolute;
    inset: 0;
    z-index: 5;
    pointer-events: none;
}

.onboarding-scenes::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 28%, rgba(255, 255, 255, 0.1), transparent 24%),
        radial-gradient(circle at 50% 70%, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.2) 68%, rgba(0, 0, 0, 0.48) 100%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.16) 72%, rgba(0, 0, 0, 0.32));
    z-index: 1;
}

.page-loader.onboarding-mode[data-onboarding-page="0"] .onboarding-scenes::before {
    background:
        radial-gradient(circle at 50% 36%, rgba(255, 255, 255, 0.14), transparent 26%),
        radial-gradient(circle at 50% 86%, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.06) 78%, rgba(0, 0, 0, 0.16) 100%);
}

.page-loader.onboarding-mode[data-onboarding-page="0"] .launch-orbit {
    background:
        radial-gradient(circle at 50% 46%, rgba(83, 150, 255, 0.98) 0%, rgba(45, 91, 184, 0.94) 38%, rgba(22, 42, 76, 0.98) 76%, #111923 100%);
}

.onboarding-scenes::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(rgba(255,255,255,0.7) 1px, transparent 1px),
        radial-gradient(rgba(255,255,255,0.28) 1px, transparent 1px);
    background-size: 34px 34px, 19px 19px;
    background-position: 0 0, 10px 14px;
    opacity: 0.13;
    z-index: 1;
    animation: onboarding-stars-drift 24s linear infinite;
}

.onboarding-scene {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(0.98);
    transition: opacity 0.32s ease, transform 0.32s ease;
    z-index: 2;
    overflow: visible;
}

.page-loader.onboarding-mode[data-onboarding-page="1"] .onboarding-scene-cashback,
.page-loader.onboarding-mode[data-onboarding-page="2"] .onboarding-scene-invite,
.page-loader.onboarding-mode[data-onboarding-page="3"] .onboarding-scene-events,
.page-loader.onboarding-mode[data-onboarding-page="4"] .onboarding-scene-wallet {
    opacity: 1;
    transform: scale(1);
}

.page-loader.onboarding-mode:not([data-onboarding-page="0"]) .launch-brand,
.page-loader.onboarding-mode:not([data-onboarding-page="0"]) .launch-hero,
.page-loader.onboarding-mode:not([data-onboarding-page="0"]) .launch-float {
    opacity: 0;
    visibility: hidden;
}

.page-loader.onboarding-mode[data-onboarding-page="1"] .launch-orbit::after,
.page-loader.onboarding-mode[data-onboarding-page="2"] .launch-orbit::after,
.page-loader.onboarding-mode[data-onboarding-page="3"] .launch-orbit::after,
.page-loader.onboarding-mode[data-onboarding-page="4"] .launch-orbit::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.55) 1px, transparent 1px);
    background-size: 21px 21px;
    opacity: 0.22;
    z-index: 0;
}

.page-loader.onboarding-mode .launch-orbit::before {
    mask-image:
        radial-gradient(ellipse at center, #000 70%, rgba(0,0,0,0.86) 86%, transparent 100%);
    -webkit-mask-image:
        radial-gradient(ellipse at center, #000 70%, rgba(0,0,0,0.86) 86%, transparent 100%);
}

.page-loader.onboarding-mode::after {
    content: none;
}

.page-loader.onboarding-mode .onboarding-card {
    z-index: 9;
}

.cashback-card {
    position: absolute;
    width: 116px;
    height: 96px;
    border-radius: 18px;
    background: rgba(0, 0, 0, 0.28);
    box-shadow: 0 24px 54px rgba(0, 0, 0, 0.28), inset 0 0 0 1px rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    transform: rotate(5deg);
    animation: onboarding-panel-float 9s ease-in-out infinite;
    -webkit-backdrop-filter: blur(18px) saturate(1.1);
    backdrop-filter: blur(18px) saturate(1.1);
}

.cashback-card img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 16px;
}

.cashback-card-left {
    top: 11%;
    left: 12%;
}

.cashback-card-bottom {
    right: 9%;
    top: 48%;
    transform: rotate(-6deg);
}

.cashback-card-top-right {
    top: 12%;
    right: 10%;
    transform: rotate(8deg);
    opacity: 0.48;
    filter: blur(1.8px) saturate(0.88);
}

.cashback-card-bottom-left {
    left: 7%;
    top: 51%;
    transform: rotate(6deg);
    opacity: 0.48;
    filter: blur(2.2px) saturate(0.86);
}

.cashback-card-left::after,
.cashback-card-bottom::after,
.leaderboard-panel::after,
.event-card::after,
.wallet-row::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(255,255,255,0.18), transparent 38%, rgba(255,255,255,0.04));
    pointer-events: none;
}

.cashback-badge {
    position: absolute;
    top: -18px;
    left: -6px;
    padding: 5px 18px;
    border-radius: 999px;
    background: #58ef78;
    color: #ffffff;
    font-size: 22px;
    font-weight: 900;
    box-shadow: 0 0 28px rgba(88, 239, 120, 0.45);
}

.cashback-badge.small {
    top: 6px;
    left: auto;
    right: -18px;
    font-size: 17px;
    padding: 4px 12px;
}

.cashback-badge.muted {
    opacity: 0.64;
    filter: blur(0.6px);
}

.cashback-main {
    position: absolute;
    top: 31%;
    left: 50%;
    --pop-base-transform: translateX(-50%);
    transform: var(--pop-base-transform);
    padding: 20px 34px;
    border-radius: 36px;
    background: #55ef77;
    color: #ffffff;
    font-size: 46px;
    font-weight: 950;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.08) inset,
        0 0 28px rgba(85, 239, 119, 0.55),
        0 0 82px rgba(85, 239, 119, 0.34);
    animation: onboarding-pop-glow 4.8s ease-in-out infinite;
}

.cashback-main::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle, rgba(255,255,255,0.18), transparent 62%);
    mix-blend-mode: screen;
    pointer-events: none;
}

.cashback-line {
    position: absolute;
    top: calc(31% + 42px);
    width: 74px;
    height: 7px;
    border-radius: 999px;
    background: #55ef77;
    box-shadow: 0 0 25px rgba(85, 239, 119, 0.4);
    animation: onboarding-line-breathe 4.8s ease-in-out infinite;
}

.cashback-line.left { right: calc(50% + 104px); }
.cashback-line.right { left: calc(50% + 104px); }

.cashback-ghost {
    position: absolute;
    right: -18px;
    top: 30%;
    color: rgba(255, 255, 255, 0.16);
    font-size: 32px;
    font-weight: 900;
}

.earn-title-bg {
    position: absolute;
    top: -3%;
    left: -2%;
    color: rgba(255,255,255,0.045);
    font-size: 170px;
    font-weight: 950;
    line-height: 0.8;
}

.leaderboard-panel {
    position: absolute;
    top: 16%;
    left: 9%;
    right: 9%;
    border-radius: 26px;
    overflow: hidden;
    box-shadow: 0 28px 74px rgba(0, 0, 0, 0.34), inset 0 0 0 1px rgba(255,255,255,0.05);
    transform: rotate(-1deg);
    animation: onboarding-panel-float 9s ease-in-out infinite;
    -webkit-backdrop-filter: blur(18px) saturate(1.12);
    backdrop-filter: blur(18px) saturate(1.12);
    z-index: 2;
}

.leaderboard-panel::before {
    content: "";
    position: absolute;
    inset: -55px -30px;
    background: radial-gradient(circle, rgba(82, 217, 255, 0.22), transparent 70%);
    z-index: -1;
}

.leader-row {
    display: grid;
    grid-template-columns: 58px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 11px 14px;
    background: rgba(64, 150, 170, 0.32);
    color: #ffffff;
    border-bottom: 1px solid rgba(0,0,0,0.12);
    animation: onboarding-row-in 0.55s ease both;
}

.leader-row:nth-child(2) {
    animation-delay: 0.08s;
}

.leader-row:nth-child(3) {
    animation-delay: 0.16s;
}

.leader-row strong {
    font-size: 18px;
}

.leader-row span:last-child {
    color: #69d9ff;
    font-size: 18px;
    font-weight: 850;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(18, 88, 114, 0.45);
}

.leader-avatar {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    color: #111;
    font-weight: 900;
    position: relative;
    overflow: hidden;
}

.leader-avatar:not(.nft-avatar)::after {
    content: attr(class);
    position: absolute;
    bottom: -7px;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 16px;
    border-radius: 999px;
    background: #efb321;
    color: transparent;
}

.leader-avatar.nft-avatar {
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.leader-avatar.nft-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.rub-float {
    position: absolute;
    z-index: 1;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(55, 191, 255, 0.18);
    color: #69d9ff;
    font-size: 17px;
    font-weight: 900;
    box-shadow: 0 0 24px rgba(55, 191, 255, 0.18);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    animation: rub-float 8.5s ease-in-out infinite;
}

.rub-float-1 { top: 12%; left: 9%; z-index: 1; animation-delay: -0.8s; }
.rub-float-2 { top: 8%; right: 8%; animation-delay: -2s; opacity: 0.72; }
.rub-float-3 { top: 55%; left: 4%; animation-delay: -1.4s; opacity: 0.64; }
.rub-float-4 { bottom: 25%; right: 5%; animation-delay: -2.7s; opacity: 0.7; }

.event-card {
    position: absolute;
    border-radius: 24px;
    background: rgba(23, 21, 17, 0.72);
    color: #ffffff;
    box-shadow: 0 30px 76px rgba(0,0,0,0.36), inset 0 0 0 1px rgba(255,255,255,0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    animation: onboarding-panel-float 9.5s ease-in-out infinite;
    -webkit-backdrop-filter: blur(18px) saturate(1.08);
    backdrop-filter: blur(18px) saturate(1.08);
}

.events-rocket-bg {
    position: absolute;
    left: 50%;
    top: 44%;
    transform: translate(-50%, -50%);
    width: 220px;
    height: 220px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 214, 73, 0.1);
    background: radial-gradient(circle, rgba(255, 205, 51, 0.16), transparent 66%);
    box-shadow: 0 0 90px rgba(255, 205, 51, 0.12);
    z-index: 0;
    animation: event-rocket-breathe 10s ease-in-out infinite;
}

.events-rocket-bg i {
    font-size: 130px;
    transform: rotate(-18deg);
}

.event-card-center {
    top: 7%;
    left: 27%;
    right: 27%;
    height: 220px;
    z-index: 2;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.34), 0 0 58px rgba(255, 190, 50, 0.14);
}

.event-card-left {
    top: 24%;
    left: -10%;
    width: 158px;
    height: 224px;
    transform: rotate(-13deg);
    animation-delay: -1.1s;
    filter: blur(0.8px);
}

.event-card-right {
    top: 23%;
    right: -9%;
    width: 158px;
    height: 224px;
    transform: rotate(12deg);
    animation-delay: -2s;
    filter: blur(0.8px);
}

.event-card img {
    width: 70px;
    height: 70px;
    border-radius: 18px;
    object-fit: cover;
}

.event-card i {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1f93ff;
    color: #ffffff;
    font-size: 34px;
}

.event-card strong {
    font-size: 18px;
    text-align: center;
}

.event-card em {
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(255, 191, 31, 0.14);
    color: #ffbd2f;
    font-style: normal;
    font-size: 17px;
    font-weight: 900;
    box-shadow: 0 0 22px rgba(255, 189, 47, 0.14);
}

.friend-bubbles {
    position: relative;
    width: 96px;
    height: 62px;
}

.friend-bubbles span {
    position: absolute;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f7d7e8, #99d5ff);
    border: 2px solid rgba(255,255,255,0.55);
}

.friend-bubbles span:nth-child(1) { left: 0; top: 18px; }
.friend-bubbles span:nth-child(2) { left: 22px; top: 0; }
.friend-bubbles span:nth-child(3) { left: 42px; top: 20px; background: #fff; }
.friend-bubbles span:nth-child(4) { right: 16px; top: 2px; }
.friend-bubbles span:nth-child(5) { right: 0; top: 22px; }

.wallet-orb {
    position: absolute;
    top: 7%;
    left: 23%;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #cb5cff, #a848ff);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    box-shadow: 0 0 38px rgba(196, 85, 255, 0.42);
    animation: onboarding-pop-glow 7s ease-in-out infinite;
}

.wallet-card {
    position: absolute;
    width: 126px;
    height: 138px;
    border-radius: 24px;
    background: rgba(15, 29, 40, 0.58);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 24px 60px rgba(0,0,0,0.28), inset 0 0 0 1px rgba(255,255,255,0.06);
    -webkit-backdrop-filter: blur(18px) saturate(1.12);
    backdrop-filter: blur(18px) saturate(1.12);
    animation: onboarding-panel-float 10s ease-in-out infinite;
}

.wallet-card i {
    width: 50px;
    height: 50px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(34, 149, 255, 0.85);
    font-size: 28px;
}

.wallet-card strong {
    font-size: 16px;
}

.wallet-card span {
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(32, 196, 90, 0.14);
    color: #52f37b;
    font-size: 15px;
    font-weight: 900;
}

.wallet-card-left {
    left: -6%;
    top: 52%;
    transform: rotate(-10deg);
    opacity: 0.72;
    filter: blur(0.8px);
}

.wallet-card-right {
    right: -4%;
    top: 15%;
    transform: rotate(9deg);
    opacity: 0.78;
    filter: blur(0.6px);
    animation-delay: -1.8s;
}

.wallet-line {
    position: absolute;
    top: 16%;
    left: 34%;
    width: 210px;
    height: 2px;
    background: rgba(255,255,255,0.85);
    transform: rotate(54deg);
    transform-origin: left center;
    box-shadow: 0 0 16px rgba(255,255,255,0.36);
    animation: onboarding-line-breathe 5.5s ease-in-out infinite;
}

.wallet-row {
    position: absolute;
    left: 8%;
    right: 8%;
    height: 76px;
    border-radius: 18px;
    display: grid;
    grid-template-columns: 54px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background: rgba(18, 34, 44, 0.62);
    color: #ffffff;
    box-shadow: 0 24px 62px rgba(0,0,0,0.32), inset 0 0 0 1px rgba(255,255,255,0.06);
    -webkit-backdrop-filter: blur(18px) saturate(1.12);
    backdrop-filter: blur(18px) saturate(1.12);
    animation: onboarding-row-in 0.55s ease both;
}

.wallet-row-deposit { top: 22%; }
.wallet-row-withdraw { top: 36%; background: rgba(12, 22, 29, 0.72); animation-delay: 0.12s; }

.wallet-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}

.wallet-icon.green { background: #20c45a; }
.wallet-icon.yellow { background: #eab308; }

.wallet-row strong {
    font-size: 18px;
}

.wallet-row span {
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(32, 196, 90, 0.14);
    color: #52f37b;
    font-size: 18px;
    font-weight: 900;
}

.wallet-row-withdraw span {
    color: rgba(255,255,255,0.42);
    background: rgba(255,255,255,0.08);
}

.wallet-percent {
    position: absolute;
    right: 18%;
    top: 56%;
    z-index: 2;
    padding: 10px 18px;
    border-radius: 999px;
    background: #55ef77;
    color: #ffffff;
    font-size: 34px;
    font-weight: 950;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.08) inset,
        0 0 24px rgba(85, 239, 119, 0.5),
        0 0 74px rgba(85, 239, 119, 0.32);
    --pop-base-transform: none;
    animation: onboarding-pop-glow 6s ease-in-out infinite;
}

.wallet-percent::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: calc(100% + 42px);
    height: calc(100% + 42px);
    border-radius: 999px;
    border: 1px solid rgba(85, 239, 119, 0.18);
    box-shadow: 0 0 26px rgba(85, 239, 119, 0.1);
    transform: translate(-50%, -50%) scale(0.96);
    transform-origin: center;
    animation: wallet-ring-pulse 6s ease-in-out infinite;
    pointer-events: none;
}

.wallet-percent::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle, rgba(255,255,255,0.18), transparent 62%);
    mix-blend-mode: screen;
    pointer-events: none;
}

.cashback-card-top-right,
.cashback-card-bottom-left,
.event-card-left,
.event-card-right,
.wallet-card-left,
.wallet-card-right {
    animation: none;
}

@keyframes scene-word-drift {
    0%,
    100% {
        translate: 0 0;
    }

    50% {
        translate: 6px 4px;
    }
}

@keyframes scene-orb-float {
    0%,
    100% {
        transform: translate3d(0, 0, 0) scale(1);
    }

    50% {
        transform: translate3d(4px, -6px, 0) scale(1.03);
    }
}

@keyframes onboarding-stars-drift {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(18px);
    }
}

@keyframes onboarding-panel-float {
    0%,
    100% {
        translate: 0 0;
        filter: brightness(1);
    }

    50% {
        translate: 0 -4px;
        filter: brightness(1.03);
    }
}

@keyframes onboarding-pop-glow {
    0%,
    100% {
        transform: var(--pop-base-transform, none) scale(1);
        filter: brightness(1);
    }

    50% {
        transform: var(--pop-base-transform, none) scale(1.018);
        filter: brightness(1.05);
    }
}

@keyframes onboarding-line-breathe {
    0%,
    100% {
        opacity: 0.72;
        filter: brightness(1);
    }

    50% {
        opacity: 0.9;
        filter: brightness(1.08);
    }
}

@keyframes onboarding-row-in {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes rub-float {
    0%,
    100% {
        transform: translate3d(0, 0, 0) rotate(-2deg);
    }

    50% {
        transform: translate3d(0, -6px, 0) rotate(1deg);
    }
}

@keyframes event-rocket-breathe {
    0%,
    100% {
        opacity: 0.72;
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        opacity: 0.84;
        transform: translate(-50%, -50%) scale(1.02);
    }
}

@keyframes wallet-ring-pulse {
    0%,
    100% {
        transform: translate(-50%, -50%) scale(0.99);
        opacity: 0.24;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.03);
        opacity: 0.42;
    }
}

@keyframes onboarding-card-in {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.launch-star {
    position: absolute;
    z-index: 2;
    width: 12px;
    height: 12px;
    background: rgba(218, 231, 255, 0.86);
    clip-path: polygon(50% 0%, 63% 36%, 100% 50%, 63% 64%, 50% 100%, 37% 64%, 0% 50%, 37% 36%);
    animation: launch-star-pulse 2.5s ease-in-out infinite;
}

.launch-star-1 { top: 23%; left: 29%; }
.launch-star-2 { top: 37%; left: 5%; animation-delay: -0.8s; }
.launch-star-3 { top: 39%; right: 5%; animation-delay: -1.3s; }
.launch-star-4 { bottom: 24%; right: 33%; animation-delay: -1.9s; }

@keyframes launch-token-float {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 -6px; }
}

@keyframes launch-hero-float {
    0%, 100% { transform: translate(-50%, -50%) rotate(-1deg); }
    50% { transform: translate(-50%, calc(-50% - 6px)) rotate(1deg); }
}

@keyframes launch-star-pulse {
    0%, 100% { opacity: 0.35; transform: scale(0.9); }
    50% { opacity: 0.72; transform: scale(1.08); }
}

.loader-container {
    --uib-size: 160px;
    --uib-speed: 2.5s;
    --uib-color: #2d7bff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: var(--uib-size);
    width: var(--uib-size);
}

.loader-slice {
    position: relative;
    height: calc(var(--uib-size) / 6);
    width: 100%;
}

.loader-slice::before,
.loader-slice::after {
    --uib-a: calc(var(--uib-speed) / -2);
    --uib-b: calc(var(--uib-speed) / -6);
    content: "";
    position: absolute;
    top: 0;
    left: calc(50% - var(--uib-size) / 12);
    height: 100%;
    width: calc(100% / 6);
    border-radius: 50%;
    background-color: var(--uib-color);
    flex-shrink: 0;
    animation: loader-orbit var(--uib-speed) linear infinite;
    transition: background-color 0.3s ease;
}

.loader-slice:nth-child(1)::after {
    animation-delay: var(--uib-a);
}

.loader-slice:nth-child(2)::before {
    animation-delay: var(--uib-b);
}

.loader-slice:nth-child(2)::after {
    animation-delay: calc(var(--uib-a) + var(--uib-b));
}

.loader-slice:nth-child(3)::before {
    animation-delay: calc(var(--uib-b) * 2);
}

.loader-slice:nth-child(3)::after {
    animation-delay: calc(var(--uib-a) + var(--uib-b) * 2);
}

.loader-slice:nth-child(4)::before {
    animation-delay: calc(var(--uib-b) * 3);
}

.loader-slice:nth-child(4)::after {
    animation-delay: calc(var(--uib-a) + var(--uib-b) * 3);
}

.loader-slice:nth-child(5)::before {
    animation-delay: calc(var(--uib-b) * 4);
}

.loader-slice:nth-child(5)::after {
    animation-delay: calc(var(--uib-a) + var(--uib-b) * 4);
}

.loader-slice:nth-child(6)::before {
    animation-delay: calc(var(--uib-b) * 5);
}

.loader-slice:nth-child(6)::after {
    animation-delay: calc(var(--uib-a) + var(--uib-b) * 5);
}

@keyframes loader-orbit {
    0% {
        transform: translateX(calc(var(--uib-size) * 0.25)) scale(0.73684);
        opacity: 0.65;
    }

    5% {
        transform: translateX(calc(var(--uib-size) * 0.235)) scale(0.684208);
        opacity: 0.58;
    }

    10% {
        transform: translateX(calc(var(--uib-size) * 0.182)) scale(0.631576);
        opacity: 0.51;
    }

    15% {
        transform: translateX(calc(var(--uib-size) * 0.129)) scale(0.578944);
        opacity: 0.44;
    }

    20% {
        transform: translateX(calc(var(--uib-size) * 0.076)) scale(0.526312);
        opacity: 0.37;
    }

    25% {
        transform: translateX(0%) scale(0.47368);
        opacity: 0.3;
    }

    30% {
        transform: translateX(calc(var(--uib-size) * -0.076)) scale(0.526312);
        opacity: 0.37;
    }

    35% {
        transform: translateX(calc(var(--uib-size) * -0.129)) scale(0.578944);
        opacity: 0.44;
    }

    40% {
        transform: translateX(calc(var(--uib-size) * -0.182)) scale(0.631576);
        opacity: 0.51;
    }

    45% {
        transform: translateX(calc(var(--uib-size) * -0.235)) scale(0.684208);
        opacity: 0.58;
    }

    50% {
        transform: translateX(calc(var(--uib-size) * -0.25)) scale(0.73684);
        opacity: 0.65;
    }

    55% {
        transform: translateX(calc(var(--uib-size) * -0.235)) scale(0.789472);
        opacity: 0.72;
    }

    60% {
        transform: translateX(calc(var(--uib-size) * -0.182)) scale(0.842104);
        opacity: 0.79;
    }

    65% {
        transform: translateX(calc(var(--uib-size) * -0.129)) scale(0.894736);
        opacity: 0.86;
    }

    70% {
        transform: translateX(calc(var(--uib-size) * -0.076)) scale(0.947368);
        opacity: 0.93;
    }

    75% {
        transform: translateX(0%) scale(1);
        opacity: 1;
    }

    80% {
        transform: translateX(calc(var(--uib-size) * 0.076)) scale(0.947368);
        opacity: 0.93;
    }

    85% {
        transform: translateX(calc(var(--uib-size) * 0.129)) scale(0.894736);
        opacity: 0.86;
    }

    90% {
        transform: translateX(calc(var(--uib-size) * 0.182)) scale(0.842104);
        opacity: 0.79;
    }

    95% {
        transform: translateX(calc(var(--uib-size) * 0.235)) scale(0.789472);
        opacity: 0.72;
    }

    100% {
        transform: translateX(calc(var(--uib-size) * 0.25)) scale(0.73684);
        opacity: 0.65;
    }
}

.loader-slice:nth-child(1)::before,
.loader-slice:nth-child(1)::after {
    background-color: #334dff;
}

.loader-slice:nth-child(2)::before,
.loader-slice:nth-child(2)::after {
    background-color: #333eff;
}

.loader-slice:nth-child(3)::before,
.loader-slice:nth-child(3)::after {
    background-color: #3334ff;
}

.loader-slice:nth-child(4)::before,
.loader-slice:nth-child(4)::after {
    background-color: #4433ff;
}

.loader-slice:nth-child(5)::before,
.loader-slice:nth-child(5)::after {
    background-color: #6633ff;
}

.loader-slice:nth-child(6)::before,
.loader-slice:nth-child(6)::after {
    background-color: #9933ff;
}

.admin-view {
    padding-bottom: 120px;
}

.admin-shell {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 16px;
    padding-left: calc(16px + var(--safe-area-left));
    padding-right: calc(16px + var(--safe-area-right));
}

.admin-hero,
.admin-card,
.admin-stat-card {
    background: #1c1c1e;
    border: 1px solid #2c2c2e;
    border-radius: 22px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.admin-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px;
}

.admin-kicker,
.admin-subtitle,
.admin-card-subtitle,
.admin-stat-label,
.admin-row-main span,
.admin-empty {
    color: #9ca3af;
}

.admin-kicker {
    margin: 0 0 4px;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.admin-title {
    margin: 0;
    color: #ffffff;
    font-size: 28px;
    line-height: 1;
}

.admin-subtitle,
.admin-card-subtitle {
    margin: 8px 0 0;
    font-size: 13px;
    line-height: 1.45;
}

.admin-refresh-btn,
.admin-primary-btn,
.admin-small-btn {
    border: 0;
    border-radius: 12px;
    color: #ffffff;
    background: #007aff;
    font-weight: 700;
    cursor: pointer;
}

.admin-refresh-btn {
    padding: 10px 14px;
    white-space: nowrap;
}

.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.admin-stat-card {
    padding: 14px;
}

.admin-stat-value {
    color: #ffffff;
    font-size: 24px;
    font-weight: 800;
}

.admin-stat-label {
    margin-top: 4px;
    font-size: 12px;
}

.admin-card {
    padding: 16px;
}

.admin-card-title {
    margin: 0;
    color: #ffffff;
    font-size: 18px;
}

.admin-input,
.admin-mini-input,
.admin-textarea {
    width: 100%;
    margin-top: 10px;
    border: 1px solid #2c2c2e;
    border-radius: 14px;
    background: #2c2c2e;
    color: #ffffff;
    outline: none;
}

.admin-input,
.admin-textarea {
    padding: 12px;
    font-size: 14px;
}

.admin-mini-input {
    max-width: 92px;
    padding: 9px;
    font-size: 13px;
}

.admin-textarea {
    min-height: 110px;
    resize: vertical;
}

.admin-inline-form {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 12px;
}

.admin-check {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #e5e7eb;
    font-size: 13px;
    white-space: nowrap;
}

.admin-primary-btn {
    width: 100%;
    margin-top: 12px;
    padding: 13px;
    font-size: 15px;
}

.admin-table {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 12px;
}

.admin-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border-radius: 16px;
    background: #2c2c2e;
}

.admin-row[data-user-id] {
    grid-template-columns: minmax(0, 1fr) 82px 82px auto;
}

.admin-row-main {
    min-width: 0;
}

.admin-row-main strong {
    display: block;
    overflow: hidden;
    color: #ffffff;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-row-main span {
    display: block;
    overflow: hidden;
    margin-top: 3px;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-pill {
    padding: 7px 9px;
    border-radius: 999px;
    background: rgba(0, 122, 255, 0.14);
    color: #8ec5ff;
    font-size: 12px;
    font-weight: 700;
}

.admin-small-btn {
    padding: 9px 10px;
    font-size: 12px;
}

.admin-small-btn.danger {
    background: linear-gradient(135deg, #ff4d4d, #ff7a45);
}

.admin-primary-btn:disabled,
.admin-refresh-btn:disabled,
.admin-small-btn:disabled {
    cursor: wait;
    opacity: 0.65;
}

.admin-empty {
    padding: 14px;
    border-radius: 14px;
    background: #2c2c2e;
    font-size: 13px;
}

@media (max-width: 420px) {
    .admin-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-row,
    .admin-row[data-user-id] {
        grid-template-columns: 1fr;
    }

    .admin-mini-input {
        max-width: none;
    }
}

.admin-hero-modern {
    overflow: hidden;
    position: relative;
}

.admin-hero-modern::after {
    content: "";
    position: absolute;
    right: -40px;
    top: -55px;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 122, 255, 0.2), transparent 70%);
    pointer-events: none;
}

.admin-refresh-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.admin-tabs {
    display: flex;
    gap: 8px;
    margin: -4px -16px 0;
    padding: 0 16px 4px;
    overflow-x: auto;
    scrollbar-width: none;
}

.admin-tabs::-webkit-scrollbar {
    display: none;
}

.admin-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: max-content;
    padding: 10px 13px;
    border: 1px solid #2c2c2e;
    border-radius: 999px;
    background: #2c2c2e;
    color: #9ca3af;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.admin-tab i {
    font-size: 16px;
}

.admin-tab.active {
    border-color: #007aff;
    background: #007aff;
    color: #ffffff;
    box-shadow: none;
}

.admin-panel {
    display: none;
}

.admin-panel.active {
    display: block;
}

.admin-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.admin-card-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 16px;
    background: rgba(0, 122, 255, 0.16);
    color: #60a5fa;
    flex-shrink: 0;
}

.admin-card-icon i {
    font-size: 22px;
}

.admin-action-card {
    border-color: rgba(35, 130, 255, 0.16);
}

.admin-search-wrap {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 12px;
    padding: 11px 12px;
    border: 1px solid #2c2c2e;
    border-radius: 14px;
    background: #2c2c2e;
    color: #8b93a2;
}

.admin-search-wrap i {
    font-size: 18px;
    flex-shrink: 0;
}

.admin-search {
    width: 100%;
    border: 0;
    background: transparent;
    color: #ffffff;
    outline: none;
    font-size: 14px;
}

.admin-search::placeholder,
.admin-input::placeholder,
.admin-textarea::placeholder {
    color: #737b8c;
}

.admin-stat-card {
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-stat-card > i {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 14px;
    background: #2c2c2e;
    color: #60a5fa;
    font-size: 19px;
    flex-shrink: 0;
}

.admin-row {
    border: 1px solid #2c2c2e;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.admin-row:active {
    border-color: rgba(0, 122, 255, 0.4);
    background: #343438;
}

.admin-user-row {
    grid-template-columns: minmax(0, 1fr) 86px 86px auto;
}

.admin-gift-row,
.admin-listing-row,
.admin-bundle-row {
    grid-template-columns: minmax(0, 1fr) auto auto;
}

.admin-mini-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: #8f98aa;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.admin-mini-field .admin-mini-input {
    margin-top: 0;
}

.admin-small-btn.ghost {
    border: 1px solid #3a3a3c;
    background: #2c2c2e;
    color: #d7dde8;
}

.admin-table {
    max-height: 58vh;
    overflow-y: auto;
    padding-right: 2px;
}

.admin-table::-webkit-scrollbar {
    width: 4px;
}

.admin-table::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
}

@media (max-width: 520px) {
    .admin-user-row,
    .admin-gift-row,
    .admin-listing-row,
    .admin-bundle-row {
        grid-template-columns: 1fr;
    }

    .admin-small-btn,
    .admin-small-btn.ghost {
        width: 100%;
    }

    .admin-pill {
        width: fit-content;
    }

    .admin-table {
        max-height: none;
    }
}

/* Admin uses the same visual language as the market screens. */
.admin-shell {
    gap: 14px;
    padding-top: 12px;
}

.admin-row-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.admin-editor-overlay {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: calc(22px + var(--safe-area-top)) 14px calc(22px + var(--safe-area-bottom));
    background:
        radial-gradient(circle at 50% 18%, rgba(42, 130, 255, 0.12), transparent 32%),
        rgba(6, 10, 18, 0.78);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    z-index: 1200;
}

.admin-editor-overlay.open {
    display: flex;
}

.admin-editor-modal {
    width: min(100%, 560px);
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: min(82dvh, 720px);
    padding: 18px;
    overflow-y: auto;
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(22, 28, 40, 0.98), rgba(15, 19, 29, 0.98));
    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.42),
        inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-editor-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 4px;
    position: sticky;
    bottom: 0;
    padding-top: 6px;
    background: linear-gradient(180deg, rgba(15, 19, 29, 0), rgba(15, 19, 29, 0.98) 26%);
}

.admin-editor-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.admin-editor-copy {
    min-width: 0;
}

.market-chip-btn {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 14px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(135deg, #1f1f21 0%, #2a2a2d 100%);
    color: #f3f4f6;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

.market-chip-btn-icon {
    width: 40px;
    min-width: 40px;
    padding: 0;
    justify-content: center;
}

.market-chip-btn-icon i {
    margin: 0;
}

.market-chip-btn i {
    font-size: 17px;
    color: #9ca3af;
}

.market-chip-btn:active {
    transform: scale(0.98);
    background: linear-gradient(135deg, #2a2a2d 0%, #353538 100%);
}

.market-chip-btn-wide {
    justify-content: space-between;
    min-width: 0;
    flex: 1;
}

.admin-editor-copy .admin-card-title {
    margin-bottom: 6px;
    line-height: 1.05;
}

.admin-editor-copy .admin-card-subtitle {
    max-width: 280px;
    font-size: 13px;
    line-height: 1.35;
}

.admin-editor-close {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: none;
    border-radius: 14px;
    background: #2a2a2d;
    color: #ffffff;
}

.admin-editor-close i {
    font-size: 22px;
}

.admin-editor-close:active {
    background: #353538;
}

.admin-hero,
.admin-card,
.admin-stat-card {
    background: #1c1c1e;
    border: 1px solid #2c2c2e;
    border-radius: 20px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.admin-hero {
    align-items: center;
    padding: 16px;
}

.admin-hero-modern::after {
    display: none;
}

.admin-kicker {
    display: none;
}

.admin-title {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.2px;
}

.admin-subtitle,
.admin-card-subtitle {
    color: #9ca3af;
    font-size: 12px;
}

.admin-refresh-btn,
.admin-primary-btn,
.admin-small-btn {
    background: #007aff;
    border-radius: 12px;
    box-shadow: none;
    transition: background 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.admin-refresh-btn {
    min-height: 40px;
    padding: 10px 12px;
}

.admin-primary-btn:active,
.admin-refresh-btn:active,
.admin-small-btn:active {
    background: #006add;
    transform: scale(0.98);
}

.admin-stats-grid {
    gap: 8px;
}

.admin-stat-card {
    gap: 10px;
    padding: 12px;
}

.admin-stat-card > i,
.admin-card-icon {
    background: #2c2c2e;
    color: #ffffff;
}

.admin-stat-card > i {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    font-size: 17px;
}

.admin-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 14px;
}

.admin-stat-value {
    font-size: 20px;
}

.admin-stat-label {
    color: #9ca3af;
    font-size: 11px;
}

.admin-tabs {
    gap: 0;
    margin: 0;
    padding: 4px;
    background: #1c1c1e;
    border-radius: 16px;
}

.admin-tab {
    flex: 1;
    min-width: 82px;
    gap: 5px;
    padding: 10px 8px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: transparent;
    color: #9ca3af;
    font-size: 12px;
    font-weight: 600;
    box-shadow: none;
}

.admin-tab.active {
    background: #007aff;
    border-color: #007aff;
    color: #ffffff;
    box-shadow: none;
}

.admin-tab:active {
    opacity: 0.8;
}

.admin-card {
    padding: 14px;
}

.admin-card-head {
    margin-bottom: 10px;
}

.admin-card-title {
    font-size: 17px;
    font-weight: 700;
}

.admin-action-card {
    border-color: transparent;
}

.admin-input,
.admin-mini-input,
.admin-textarea,
.admin-search-wrap {
    border: 1px solid #2c2c2e;
    background: #2c2c2e;
    border-radius: 12px;
}

.admin-input:focus,
.admin-mini-input:focus,
.admin-textarea:focus,
.admin-search-wrap:focus-within {
    background: #343438;
}

.admin-search-wrap {
    color: #9ca3af;
}

.admin-row {
    border: none;
    background: #1f1f21;
    border-radius: 14px;
}

.admin-row:active {
    border-color: transparent;
    background: #2a2a2d;
}

.admin-pill {
    background: #2a2a2d;
    color: #ffffff;
}

.admin-small-btn.ghost {
    border: none;
    background: #2a2a2d;
    color: #ffffff;
}

.admin-small-btn.ghost:active {
    background: #353538;
}

.admin-small-btn.danger {
    background: #2a2a2d;
    color: #ff6b6b;
}

.admin-small-btn.danger:active {
    background: #353538;
}

.admin-empty {
    background: #1f1f21;
}

@media (max-width: 640px) {
    .admin-editor-overlay {
        align-items: center;
        padding: calc(14px + var(--safe-area-top)) 10px calc(14px + var(--safe-area-bottom));
    }

    .admin-editor-modal {
        width: 100%;
        max-height: min(78dvh, 680px);
        padding: 16px;
        border-radius: 22px;
    }

    .admin-editor-copy .admin-card-title {
        font-size: 15px;
    }

    .admin-editor-copy .admin-card-subtitle {
        max-width: none;
        font-size: 12px;
    }

    .admin-editor-actions {
        grid-template-columns: 1fr 1fr;
    }
}
