* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: Arial, sans-serif;
    background: linear-gradient(135deg, #eef2ff, #f8fafc);
    padding: 20px;
}

.open-btn {
    padding: 14px 28px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 12px 24px rgba(79, 70, 229, 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.open-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(79, 70, 229, 0.35);
}

.open-btn:active {
    transform: translateY(0);
    opacity: 0.95;
}

.modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    width: 100%;
    max-width: 460px;
    background: #ffffff;
    border-radius: 22px;
    padding: 24px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.20);
    transform: translateY(20px) scale(0.96);
    transition: transform 0.25s ease;
    position: relative;
}

.modal.show .modal-content {
    transform: translateY(0) scale(1);
}

.modal-header {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.modal-title {
    margin: 0;
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
}

.close {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 12px;
    background: #f1f5f9;
    color: #475569;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.close:hover {
    background: #e2e8f0;
    color: #0f172a;
    transform: rotate(90deg);
}

.modal-text {
    margin: 0 0 22px;
    font-size: 16px;
    line-height: 1.6;
    color: #475569;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.btn-secondary,
.btn-primary {
    border: none;
    border-radius: 12px;
    padding: 12px 18px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
}

.btn-secondary {
    background: #e2e8f0;
    color: #0f172a;
}

.btn-primary {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff;
    box-shadow: 0 10px 20px rgba(34, 197, 94, 0.25);
}

.btn-secondary:hover,
.btn-primary:hover {
    transform: translateY(-1px);
}

.btn-primary:hover {
    box-shadow: 0 14px 24px rgba(34, 197, 94, 0.30);
}

@media (max-width: 480px) {
    .modal-content {
        padding: 20px;
        border-radius: 18px;
    }

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

    .modal-actions {
        flex-direction: column;
    }
    
    .btn-secondary,
    .btn-primary {
        width: 100%;
    }
}