:root {
    --purple: #9333ea;
    --purple-light: #a855f7;
    --purple-dark: #7e22ce;
    --white: #ffffff;
    --gray-light: #aaaaaa;
}

.custom-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.custom-modal-content {
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 0;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.custom-modal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 24px 24px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.custom-modal-icon {
    font-size: 24px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-modal-header h3 {
    flex: 1;
    color: var(--white);
    font-size: 20px;
    font-weight: 700;
    margin: 0;
}

.custom-modal-close {
    background: transparent;
    border: none;
    color: var(--white);
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s;
    opacity: 0.7;
}

.custom-modal-close:hover {
    opacity: 1;
    color: var(--purple-light);
}

.custom-modal-body {
    padding: 24px;
}

.custom-modal-body p {
    color: var(--gray-light);
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
}

.custom-modal-input {
    width: 100%;
    padding: 12px 16px;
    margin-top: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--white);
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s;
}

.custom-modal-input:focus {
    outline: none;
    border-color: var(--purple);
    background: rgba(255, 255, 255, 0.08);
}

.custom-modal-footer {
    display: flex;
    gap: 12px;
    padding: 20px 24px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    justify-content: flex-end;
}

.custom-modal-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Inter', sans-serif;
}

.custom-modal-btn.confirm-btn {
    background: var(--purple);
    color: var(--white);
}

.custom-modal-btn.confirm-btn:hover {
    background: var(--purple-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(147, 51, 234, 0.4);
}

.custom-modal-btn.cancel-btn {
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.custom-modal-btn.cancel-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    .custom-modal {
        padding: 20px;
        align-items: flex-start;
        padding-top: 40px;
    }

    .custom-modal-content {
        max-width: 100%;
        width: 100%;
        margin: 0;
        border-radius: 12px;
        max-height: 90vh;
        overflow-y: auto;
    }

    .custom-modal-header {
        padding: 18px 18px 14px;
    }

    .custom-modal-header h3 {
        font-size: 17px;
    }

    .custom-modal-icon {
        width: 28px;
        height: 28px;
        font-size: 22px;
    }

    .custom-modal-close {
        font-size: 24px;
        width: 28px;
        height: 28px;
    }

    .custom-modal-body {
        padding: 18px;
    }

    .custom-modal-body p {
        font-size: 14px;
        line-height: 1.6;
    }

    .custom-modal-input {
        font-size: 16px;
        padding: 14px 16px;
        margin-top: 12px;
    }

    .custom-modal-footer {
        padding: 14px 18px 18px;
        flex-direction: column-reverse;
        gap: 10px;
    }

    .custom-modal-btn {
        width: 100%;
        padding: 14px 24px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .custom-modal {
        padding: 12px;
        padding-top: 30px;
    }

    .custom-modal-content {
        max-width: 100%;
        width: 100%;
        margin: 0;
        border-radius: 10px;
        max-height: 85vh;
    }

    .custom-modal-header {
        padding: 14px 14px 12px;
    }

    .custom-modal-header h3 {
        font-size: 16px;
    }

    .custom-modal-icon {
        width: 24px;
        height: 24px;
        font-size: 20px;
    }

    .custom-modal-close {
        font-size: 22px;
        width: 26px;
        height: 26px;
    }

    .custom-modal-body {
        padding: 14px;
    }

    .custom-modal-body p {
        font-size: 13px;
        line-height: 1.5;
    }

    .custom-modal-input {
        font-size: 16px;
        padding: 12px 14px;
        margin-top: 10px;
    }

    .custom-modal-footer {
        padding: 12px 14px 14px;
        gap: 8px;
    }

    .custom-modal-btn {
        padding: 12px 20px;
        font-size: 13px;
    }
}

