/* ===== СТИЛИ РАЗДЕЛА "МОИ ПОДАРКИ": вкладки, добавление/вывод/продажа/оффер/обмен ===== */



.withdraw-toast {
    position: fixed;
    left: 50%;
    top: calc(60px + env(safe-area-inset-top, 0px));
    transform: translateX(-50%) translateY(-12px);
    background: rgba(45, 45, 48, 0.85);
    border-radius: 16px;
    padding: 14px 18px;
    box-shadow: 
        inset 0 0 0 1px rgba(255, 255, 255, 0.08),
        inset 1.5px 2px 0px -1px rgba(255, 255, 255, 0.2),
        inset -1.5px -1.5px 0px -1px rgba(255, 255, 255, 0.15),
        0 8px 32px rgba(0, 0, 0, 0.5),
        0 2px 8px rgba(0, 0, 0, 0.3);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    backdrop-filter: blur(20px) saturate(180%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.32, 0.72, 0, 1), transform 0.4s cubic-bezier(0.32, 0.72, 0, 1);
    z-index: 9998;
    max-width: 340px;
    width: calc(100% - 32px);
    overflow: hidden;
}



.withdraw-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}



.withdraw-toast-content {
    flex: 1;
    min-width: 0;
}



.withdraw-toast-text {
    font-size: 15px;
    line-height: 1.4;
    color: #ffffff;
    word-wrap: break-word;
    font-weight: 500;
    letter-spacing: -0.02em;
    text-align: center;
    display: block;
}



.withdraw-toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    overflow: hidden;
}



.withdraw-toast-bar {
    height: 100%;
    width: 100%;
    background: #2ed573;
    transform-origin: left center;
    transform: scaleX(1);
    transition: transform 3s linear;
}



.exchange-info {
    width: 100%;
    background: rgba(45, 45, 48, 0.6);
    box-shadow: 
        inset 0 0 0 1px rgba(255, 255, 255, 0.08),
        inset 1px 1.5px 0px -1px rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    padding: 14px 16px;
    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;
}



.my-gifts-tabs {
    display: flex;
    gap: 4px;
    padding: 4px;
    margin: 16px;
    margin-bottom: 12px;
    background-color: #212020;
    box-shadow: var(--glass-shadow);
    border-radius: 99em;
}



.my-gifts-tab {
    flex: 1;
    padding: 10px 16px;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    position: relative;
    text-align: center;
    border-radius: 99em;
}



.my-gifts-tab.active {
    color: var(--primary);
    font-weight: 600;
    background-color: rgba(0, 0, 0, 0.35);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.03),
        inset 1px 1px 0 0 rgba(255, 255, 255, 0.15),
        inset -1px -1px 0 0 rgba(255, 255, 255, 0.1),
        0 2px 4px rgba(0, 0, 0, 0.15);
}



.my-gifts-tab.active::after {
    display: none;
}



.my-gifts-tab:active {
    transform: scale(0.97);
}



.my-gifts-status-bar {
    display: flex;
    gap: 4px;
    padding: 4px;
    margin: 0 16px 12px;
    background-color: #212020;
    box-shadow: var(--glass-shadow);
    border-radius: 99em;
}



.my-gifts-status-btn {
    flex: 1;
    padding: 10px 16px;
    border: none;
    border-radius: 99em;
    background: transparent;
    color: rgba(255, 255, 255, 0.5);
    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 {
    color: var(--primary);
    font-weight: 600;
    background-color: rgba(0, 0, 0, 0.35);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.03),
        inset 1px 1px 0 0 rgba(255, 255, 255, 0.15),
        inset -1px -1px 0 0 rgba(255, 255, 255, 0.1),
        0 2px 4px rgba(0, 0, 0, 0.15);
}



.my-gifts-status-btn:active {
    transform: scale(0.97);
}



.my-gifts-status-text {
    font-size: 14px;
}



.my-gifts-status-count {
    font-size: 14px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 99em;
    background: rgba(255, 255, 255, 0.1);
    min-width: 24px;
    text-align: center;
}



.my-gifts-status-btn.active .my-gifts-status-count {
    background: rgba(35, 130, 255, 0.2);
    color: var(--primary);
}



.my-gifts-content {
    flex: 1;
    overflow-y: auto;
    padding: 0;
    padding-bottom: calc(var(--bottom-nav-height) + var(--safe-area-bottom));
}



.my-gifts-content .nft-cards-grid {
    margin-top: 8px;
    padding-bottom: 0;
}



.my-gifts-content .nft-card-footer {
    justify-content: center;
}



.my-gifts-content .my-gifts-price-btn {
    width: auto;
    justify-content: center;
    gap: 6px;
    padding: 6px 14px;
    background: #ffffff !important;
    color: #1f2937;
    min-width: 0;
    overflow: hidden;
}



.my-gifts-content .my-gifts-price-btn > span {
    flex-shrink: 0;
    white-space: nowrap;
}



.my-gifts-content .my-gifts-price-btn .ton-icon-small {
    color: #1f2937;
    flex-shrink: 0;
}



.my-gifts-price-label {
    font-size: 12px;
    opacity: 0.9;
    color: #1f2937;
    white-space: nowrap;
    flex-shrink: 0;
}



.my-gifts-actions {
    display: flex;
    gap: 8px;
    padding: 4px;
    margin: 0 16px 12px;
    background-color: #212020;
    box-shadow: var(--glass-shadow);
    border-radius: 99em;
}



.my-gifts-action-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 10px 8px;
    border: none;
    border-radius: 99em;
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    min-height: 56px;
}



.my-gifts-action-btn i {
    font-size: 22px;
    color: currentColor;
    transition: color 0.2s ease, scale 0.2s ease;
}



.my-gifts-action-label {
    font-size: 10px;
    font-weight: 500;
    color: currentColor;
}



.my-gifts-action-btn:hover {
    color: rgba(255, 255, 255, 0.8);
}



.my-gifts-action-btn:hover i {
    scale: 1.1;
}



.my-gifts-action-btn:active {
    transform: scale(0.96);
    color: var(--primary);
    background-color: rgba(0, 0, 0, 0.35);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.03),
        inset 1px 1px 0 0 rgba(255, 255, 255, 0.15),
        inset -1px -1px 0 0 rgba(255, 255, 255, 0.1),
        0 2px 4px rgba(0, 0, 0, 0.15);
}



/* ══ Smooth sliding tab indicator ══ */
.filter-tab.active,
.my-gifts-tab.active,
.my-gifts-status-btn.active {
    background-color: transparent !important;
    box-shadow: none !important;
}


.filters-tabs,
.my-gifts-tabs,
.my-gifts-status-bar {
    position: relative;
}


.filter-tab,
.my-gifts-tab,
.my-gifts-status-btn {
    position: relative;
    z-index: 1;
}




.add-gift-banner {
    width: 100%;
    margin: 0 0 16px 0;
    overflow: hidden;
    border-radius: 0;
}


.add-gift-banner img {
    width: 100%;
    display: block;
}


.add-gift-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}


.add-gift-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: rgba(255,255,255,0.05);
    border-radius: 28px;
}


@supports (corner-shape: squircle) {
    .add-gift-item { corner-shape: squircle; border-radius: 60px; }
}


.add-gift-item-warn {
    align-items: flex-start;
    background: rgba(234,179,8,0.1);
}


.add-gift-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}


.add-gift-icon svg {
    width: 16px;
    height: 16px;
}


.add-gift-icon-blue   { background: #229ED9; }


.add-gift-icon-purple { background: #8B5CF6; }


.add-gift-icon-green  { background: #22C55E; }


.add-gift-icon-yellow { background: #EAB308; }


.add-gift-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
}


.add-gift-title {
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
}


.add-gift-title-warn { color: #fff; }


.add-gift-sub {
    color: rgba(255,255,255,0.45);
    font-size: 13px;
    line-height: 1.4;
}


.add-gift-sub-warn { color: rgba(255,255,255,0.45); }


.add-gift-link { color: #3DA9FF; font-weight: 600; }


.add-gift-btn {
    display: block;
    width: 100%;
    padding: 16px;
    border-radius: 99em;
    background: #fff;
    color: #000;
    font-size: 17px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    box-sizing: border-box;
}


.add-gift-banner {
    width: 100%;
    border-radius: 28px;
    overflow: hidden;
    margin-bottom: 16px;
    flex-shrink: 0;
}


@supports (corner-shape: squircle) {
    .add-gift-banner { corner-shape: squircle; border-radius: 60px; }
}


.add-gift-banner img {
    width: 100%;
    display: block;
    height: auto;
    max-height: 220px;
    object-fit: cover;
    object-position: center;
}


.add-gift-inner {
    display: flex;
    flex-direction: column;
    gap: 0;
}


.add-gift-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}


.add-gift-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: rgba(255,255,255,0.05);
    border-radius: 28px;
}


@supports (corner-shape: squircle) {
    .add-gift-item { corner-shape: squircle; border-radius: 60px; }
}


.add-gift-item-warn {
    align-items: flex-start;
    background: rgba(234,179,8,0.1);
}


.add-gift-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}


.add-gift-icon svg {
    width: 16px;
    height: 16px;
}


.add-gift-icon-blue   { background: #229ED9; }


.add-gift-icon-purple { background: #8B5CF6; }


.add-gift-icon-green  { background: #22C55E; }


.add-gift-icon-yellow { background: #EAB308; }


.add-gift-text { display: flex; flex-direction: column; gap: 3px; }


.add-gift-title { color: #fff; font-size: 15px; font-weight: 600; line-height: 1.3; }


.add-gift-sub { color: rgba(255,255,255,0.45); font-size: 13px; line-height: 1.4; }


.add-gift-link { color: #3DA9FF; font-weight: 600; }


.add-gift-btn {
    display: block;
    width: 100%;
    padding: 16px;
    border-radius: 99em;
    background: #fff;
    color: #000;
    font-size: 17px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    box-sizing: border-box;
}


.add-gift-banner {
    margin-top: 16px;
}




/* ── Push banner inward so drawer's own glass outline stays visible ── */
.add-gift-banner {
    margin: 0 6px 16px;
}
