/* ═══════════════════════════════════════════════════════════════ */
/* ROADMAP MODAL — Clean & Minimal                                    */
/* ═══════════════════════════════════════════════════════════════ */

/* Base modal backdrop and positioning */
.roadmap-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    padding: 24px;
    z-index: 11000;
}

.roadmap-modal.is-hidden {
    display: none !important;
}

.roadmap-modal[style*="display: flex"] {
    display: flex !important;
}

/* Content wrapper */
.roadmap-clean {
    width: clamp(350px, 75vw, 480px);
    max-height: 80vh;
    overflow-y: auto;
    background: rgba(20, 20, 35, 0.97);
    border-radius: 10px;
    padding: 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(0, 255, 163, 0.1);
    animation: slideUp 0.3s ease;
}

.roadmap-clean-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    flex-shrink: 0;
}

.roadmap-clean-header {
    color: #ffffff;
    font-weight: 600;
    letter-spacing: 0.6px;
    font-size: 16px;
    margin: 0;
    flex: 1;
    text-transform: uppercase;
}

.roadmap-close-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    border-radius: 4px;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.15s ease;
    flex-shrink: 0;
    line-height: 1;
}

.roadmap-close-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.15);
}

.roadmap-clean-body {
    padding: 16px 22px 18px 22px;
}

.roadmap-clean-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.roadmap-clean-item {
    display: flex;
    /* Center icon and text vertically */
    align-items: center;
    gap: 14px;
    padding: 14px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.03);
    transition: all 0.15s ease;
}

.roadmap-clean-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(0, 255, 163, 0.15);
}

.roadmap-clean-num {
    min-width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: none;
    box-shadow: none;
    padding: 0;
}

.roadmap-icon {
    width: 100%;
    height: 100%;
    display: block;
}

/* Ensure images scale and center inside the circular icon container */
.roadmap-clean-num img.roadmap-icon {
    object-fit: contain;
    max-width: 100%;
    max-height: 100%;
    display: block;
}

.roadmap-clean-item:nth-child(1) .roadmap-clean-num {
    background: transparent;
}

.roadmap-clean-item:nth-child(2) .roadmap-clean-num {
    background: transparent;
}

.roadmap-clean-item:nth-child(n+3) .roadmap-clean-num {
    background: transparent;
}

.roadmap-clean-main {
    flex: 1;
    min-width: 0;
}

.roadmap-clean-title {
    font-weight: 500;
    color: #ffffff;
    font-size: 15px;
    line-height: 1.35;
    margin: 0;
}

.roadmap-clean-desc {
    color: rgba(255, 255, 255, 0.55);
    font-size: 13px;
    margin-top: 4px;
    line-height: 1.35;
}

.roadmap-clean-status {
    margin-left: auto;
    white-space: nowrap;
    align-self: center;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    flex-shrink: 0;
    border: none;
}

.status-completed {
    background: rgba(34, 197, 94, 0.25);
    color: #86efac;
}

.status-progress {
    background: rgba(250, 204, 21, 0.25);
    color: #fbbf24;
}

.status-planned {
    background: rgba(100, 116, 139, 0.2);
    color: #cbd5e1;
}

.roadmap-clean::-webkit-scrollbar {
    width: 5px;
}

.roadmap-clean::-webkit-scrollbar-track {
    background: transparent;
}

.roadmap-clean::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 163, 0.12);
    border-radius: 2px;
}

.roadmap-clean::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 255, 163, 0.25);
}

/* ═══════════════════════════════════════════════════════════════ */
/* ROADMAP BUTTON — Trigger Button                                   */
/* ═══════════════════════════════════════════════════════════════ */

.roadmap-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 140px;
    min-height: 40px;
    height: 40px;
    background: rgba(0, 100, 70, 0.8);
    border: 1px solid rgba(0, 255, 163, 0.25);
    color: #ffffff;
    border-radius: 6px;
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.roadmap-button:hover {
    border-color: rgba(0, 255, 163, 0.4);
    background: rgba(0, 120, 80, 0.9);
}

.roadmap-button:active {
    opacity: 0.9;
}

#pumpFunButton {
    min-width: 140px;
    min-height: 40px;
    height: 40px;
    background: rgba(26, 26, 46, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border-radius: 6px;
    padding: 8px 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 12px;
    transition: all 0.2s ease;
}

#pumpFunButton:hover {
    background: rgba(26, 26, 46, 0.95);
    border-color: rgba(0, 255, 163, 0.2);
}

/* ═══════════════════════════════════════════════════════════════ */
/* RESPONSIVE DESIGN                                                  */
/* ═══════════════════════════════════════════════════════════════ */

@media (max-width: 640px) {
    .roadmap-clean {
        width: calc(100vw - 24px);
        max-height: 75vh;
        border-radius: 8px;
    }

    .roadmap-clean-header-row {
        padding: 14px 18px;
    }

    .roadmap-clean-header {
        font-size: 14px;
    }

    .roadmap-clean-body {
        padding: 14px 18px 16px 18px;
    }

    .roadmap-clean-item {
        padding: 12px;
        gap: 12px;
    }

    .roadmap-clean-num {
        min-width: 48px;
        height: 48px;
        font-size: 10px;
    }

    .roadmap-clean-title {
        font-size: 13px;
    }

    .roadmap-clean-desc {
        font-size: 11px;
        margin-top: 2px;
    }

    .roadmap-clean-status {
        padding: 4px 8px;
        font-size: 10px;
    }
}

@media (max-width: 400px) {
    .roadmap-clean {
        width: calc(100vw - 16px);
    }

    .roadmap-clean-header-row {
        padding: 12px 14px;
    }

    .roadmap-clean-header {
        font-size: 13px;
    }

    .roadmap-clean-body {
        padding: 12px 14px;
    }

    .roadmap-clean-item {
        padding: 10px;
        gap: 10px;
    }

    .roadmap-clean-num {
        min-width: 40px;
        height: 40px;
        font-size: 9px;
    }

    .roadmap-close-btn {
        width: 28px;
        height: 28px;
        font-size: 18px;
    }

    .roadmap-button,
    #pumpFunButton {
        padding: 8px 14px;
        font-size: 12px;
    }
}

/* Slide up animation for modal appearance */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
