/* Стили для меню NFT */
.nft-menu-button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary-nft);
    font-size: 1.2em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    margin-left: 8px;
    flex-shrink: 0;
}

.nft-menu-button.active {
    background: rgba(var(--primary-rgb, 42, 127, 255), 0.2);
    border-color: var(--primary);
}

/* Выпадающее меню */
.nft-dropdown-menu {
    position: absolute;
    top: 50px;
    right: 10px;
    background: var(--surface);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px;
    z-index: 1000;
    min-width: 150px;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.nft-dropdown-menu.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.nft-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 20px;
    width: 12px;
    height: 12px;
    background: var(--surface);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    transform: rotate(45deg);
}

.nft-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-primary);
    text-decoration: none;
}

.nft-menu-item:hover {
    background: rgba(var(--primary-rgb, 42, 127, 255), 0.1);
}

.nft-menu-item:active {
    transform: scale(0.98);
}

.nft-menu-item .menu-icon {
    font-size: 1.2em;
    opacity: 0.8;
}

.menu-icon {
    padding-top: 2px;
}

.nft-menu-item .menu-text {
    flex: 1;
    font-size: 0.95em;
}

/* Анимация появления элементов меню */
@keyframes menuItemAppear {
    from {
        opacity: 0;
        transform: translateX(10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.nft-menu-item {
    animation: menuItemAppear 0.2s ease forwards;
    opacity: 0;
}

.nft-menu-item:nth-child(1) { animation-delay: 0.05s; }
.nft-menu-item:nth-child(2) { animation-delay: 0.1s; }
.nft-menu-item:nth-child(3) { animation-delay: 0.15s; }

/* Полупрозрачное выпадающее меню */
.nft-menu-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.nft-menu-modal.active {
    opacity: 1;
    pointer-events: all;
}

.nft-menu-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.nft-menu-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 24px;
    min-width: 200px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nft-menu-modal.active .nft-menu-content {
    transform: translate(-50%, -50%) scale(1);
}

/* Кнопка закрепить */
.pin-nft-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 16px;
    background: rgba(42, 127, 255, 0.2);
    border: 1px solid rgba(42, 127, 255, 0.4);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pin-nft-btn:hover {
    background: rgba(42, 127, 255, 0.3);
    transform: translateY(-2px);
}

.pin-nft-btn:active {
    transform: translateY(0);
}

.pin-nft-btn .pin-icon {
    font-size: 1.2em;
}

.pin-nft-btn .pin-text {
    font-weight: 500;
}
.nft-menu-dropdown {
    position: absolute;
    top: 65px; /* Расстояние от кнопки */
    right: 15px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 3px;
    min-width: 160px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.nft-menu-dropdown.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

/* Кнопка закрепить */
.nft-menu-item-pin {
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 12px;
    padding: 0 5px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-primary-nft);
    text-decoration: none;
    background: rgba(42, 127, 255, 0.1);
    border: 1px solid rgba(42, 127, 255, 0.2);
}

.nft-menu-item-pin:active {
    transform: translateY(0);
}

.nft-menu-item-pin .menu-icon {
    font-size: 1.2em;
    opacity: 0.9;
}

.nft-menu-item-pin .menu-text {
    font-weight: 500;
    font-size: 0.95em;
}