/* Custom Site Modal Theme (Fantasy Tunisie) */
#custom-site-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(8, 4, 20, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 100000;
    display: none;
    pointer-events: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
}

#custom-site-modal-overlay.active {
    display: flex !important;
    pointer-events: auto !important;
    opacity: 1 !important;
}

.custom-site-modal {
    background: linear-gradient(145deg, #1b1136, #0e0722);
    border: 1px solid rgba(122, 76, 224, 0.45);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), 0 0 35px rgba(122, 76, 224, 0.25);
    border-radius: 24px;
    width: 100%;
    max-width: 440px;
    padding: 28px 24px 24px 24px;
    text-align: center;
    transform: scale(0.90) translateY(16px);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    color: #ffffff;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

#custom-site-modal-overlay.active .custom-site-modal {
    transform: scale(1) translateY(0);
}

.custom-modal-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    margin: 0 auto 16px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
}

.custom-modal-icon.confirm-icon {
    background: rgba(122, 76, 224, 0.2);
    color: #a5b4fc;
    border: 1px solid rgba(122, 76, 224, 0.5);
    box-shadow: 0 0 20px rgba(122, 76, 224, 0.3);
}

.custom-modal-icon.warning-icon {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.5);
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.3);
}

.custom-modal-icon.info-icon {
    background: rgba(56, 189, 248, 0.2);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.5);
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.3);
}

.custom-modal-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 10px 0;
    line-height: 1.35;
    letter-spacing: -0.01em;
}

.custom-modal-body {
    font-size: 0.90rem;
    color: #b8bfea;
    line-height: 1.5;
    margin-bottom: 22px;
    word-break: break-word;
}

.custom-modal-input {
    width: 100%;
    padding: 14px 18px;
    border-radius: 14px;
    border: 1px solid rgba(122, 76, 224, 0.45);
    background: rgba(10, 5, 25, 0.7);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 20px;
    box-sizing: border-box;
    outline: none;
    transition: all 0.2s ease;
}

.custom-modal-input:focus {
    border-color: #8b5cf6;
    box-shadow: 0 0 16px rgba(139, 92, 246, 0.35);
    background: rgba(14, 7, 34, 0.95);
}

.custom-modal-input::placeholder {
    color: rgba(184, 191, 234, 0.45);
    font-weight: 500;
}

.custom-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
}

.custom-modal-btn {
    flex: 1;
    padding: 12px 18px;
    border-radius: 14px;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.custom-modal-btn.btn-cancel {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #cbd5e1;
}

.custom-modal-btn.btn-cancel:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
}

.custom-modal-btn.btn-confirm {
    background: linear-gradient(135deg, #7a4ce0, #5b21b6);
    border: none;
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(122, 76, 224, 0.4);
}

.custom-modal-btn.btn-confirm:hover {
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    box-shadow: 0 6px 20px rgba(122, 76, 224, 0.6);
    transform: translateY(-1px);
}

@media (max-width: 480px) {
    .custom-site-modal {
        padding: 22px 18px 20px 18px;
        border-radius: 20px;
    }
    .custom-modal-title {
        font-size: 1.1rem;
    }
    .custom-modal-body {
        font-size: 0.86rem;
    }
    .custom-modal-btn {
        padding: 10px 14px;
        font-size: 0.88rem;
    }
}
