/* ============================================
   RIDOPAY — Custom Modal (Global)
   Premium dark mafia-themed modal notifications
   ============================================ */

/* === Overlay === */
.rido-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.rido-modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* === Modal Box === */
.rido-modal {
    width: 100%;
    max-width: 340px;
    background: #13131a;
    border: 1px solid rgba(201, 168, 76, 0.15);
    border-radius: 20px;
    padding: 32px 24px 24px;
    text-align: center;
    transform: scale(0.9) translateY(10px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(201, 168, 76, 0.04);
    position: relative;
    overflow: hidden;
}

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

/* Subtle gold shimmer line at top */
.rido-modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold, #c9a84c), transparent);
    opacity: 0.5;
}

/* === Modal Icon === */
.rido-modal-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    animation: modalIconPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) 0.15s both;
}

@keyframes modalIconPop {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Icon type variations */
.rido-modal-icon.error {
    background: rgba(231, 76, 60, 0.1);
    border: 1px solid rgba(231, 76, 60, 0.2);
}

.rido-modal-icon.success {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.2);
}

.rido-modal-icon.warning {
    background: rgba(243, 156, 18, 0.1);
    border: 1px solid rgba(243, 156, 18, 0.2);
}

.rido-modal-icon.info {
    background: rgba(201, 168, 76, 0.1);
    border: 1px solid rgba(201, 168, 76, 0.2);
}

/* === Modal Title === */
.rido-modal-title {
    font-family: var(--font-display, 'Playfair Display', serif);
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary, #f0eee6);
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

/* === Modal Message === */
.rido-modal-message {
    font-family: var(--font-main, 'Outfit', sans-serif);
    font-size: 13px;
    font-weight: 400;
    color: var(--text-secondary, #9a978e);
    line-height: 1.6;
    margin-bottom: 24px;
}

/* === Modal Button === */
.rido-modal-btn {
    width: 100%;
    height: 46px;
    border: none;
    border-radius: 12px;
    font-family: var(--font-main, 'Outfit', sans-serif);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: opacity 0.15s ease, transform 0.1s ease;
}

.rido-modal-btn:active {
    transform: scale(0.97);
    opacity: 0.85;
}

/* Button type variations */
.rido-modal-btn.error {
    background: #e74c3c;
    color: #fff;
}

.rido-modal-btn.success {
    background: #4caf50;
    color: #fff;
}

.rido-modal-btn.warning {
    background: #f39c12;
    color: #0a0a0c;
}

.rido-modal-btn.info {
    background: var(--gold, #c9a84c);
    color: #0a0a0c;
}
