/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.modal-overlay.hidden {
    display: none;
}

/* Modal Container */
.modal {
    background: #1E2128FF;
    border-radius: 16px;
    border-color: #00F0FF33;
    border-width: 1px;
    border-style: solid;
    padding: 40px 50px;
    max-width: 600px;
    width: 90%;
    position: relative;
    box-shadow: 0px 0px 0px #00000000, 0px 9px 14px #00F0FF33;
}

/* Close Button */
.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 24px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.close-btn::before,
.close-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 2px;
    background-color: #9ca3af;
    transition: background-color 0.2s ease;
}

.close-btn::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.close-btn::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.close-btn:hover::before,
.close-btn:hover::after {
    background-color: #ffffff;
}

/* Modal Content */
.modal-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Modal Title */
.modal-title {
    color: #ffffff;
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    margin: 0 0 10px 0;
}

/* Marketplace Sections */
.marketplace-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

/* SyFu Section */
.syfu-section {
    background-color: rgba(13, 31, 31, 0.6);
    border: 1px solid #2d4a4a;
    border-radius: 12px;
    padding: 24px;
}

.syfu-section .section-title {
    color: #00e5ff;
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

.section-warning {
    color: #FF4D4DFF;
    font-size: 14px;
    text-align: center;
    margin: 0;
}

/* SyFu Button */
.syfu-btn {
    display: block;
    width: 100%;
    padding: 16px 32px;
    background: linear-gradient(180deg, #00ffff 0%, #00d4d4 100%);
    color: #0a1a1a;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 255, 255, 0.3);
}

.syfu-btn:hover {
    background: linear-gradient(180deg, #33ffff 0%, #00e5e5 100%);
    box-shadow: 0 6px 20px rgba(0, 255, 255, 0.4);
    transform: translateY(-2px);
}

/* Element Section */
.element-section .section-title {
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

/* NFT Links Container */
.nft-links {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

/* NFT Link Buttons */
.nft-link {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 16px 32px;
    background: transparent;
    color: #22c55e;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid #22c55e;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nft-link:hover {
    background-color: rgba(34, 197, 94, 0.1);
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.3);
    transform: translateY(-2px);
}

/* External Link Icon */
.external-icon {
    width: 16px;
    height: 16px;
    stroke: #22c55e;
    stroke-width: 2;
    fill: none;
}

/* Responsive Adjustments */
@media (max-width: 640px) {
    .modal {
        padding: 30px 24px;
        margin: 16px;
    }

    .modal-title {
        font-size: 20px;
    }

    .syfu-section .section-title {
        font-size: 18px;
    }

    .syfu-btn,
    .nft-link {
        padding: 14px 24px;
        font-size: 15px;
    }
}

@media (max-width: 640px) {
    .modal-overlay .close-btn {
        top: 12px;
    }

    .modal-overlay .modal-content {
        padding: 16px 0 24px 0;
    }
}