/* Modern Gold Invest alerts / confirms */
.gold-alert-overlay {
    position: fixed;
    inset: 0;
    z-index: 20000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.18s ease, visibility 0.18s ease;
}

.gold-alert-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.gold-alert-dialog {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.35);
    padding: 24px 24px 20px;
    text-align: center;
    transform: translateY(12px) scale(0.97);
    transition: transform 0.2s ease;
    direction: rtl;
    font-family: Cairo, Tahoma, sans-serif;
}

.gold-alert-overlay.is-open .gold-alert-dialog {
    transform: translateY(0) scale(1);
}

.gold-alert-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 14px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.gold-alert-icon--info {
    background: #eff6ff;
    color: #2563eb;
}

.gold-alert-icon--success {
    background: #ecfdf5;
    color: #059669;
}

.gold-alert-icon--warning {
    background: #fff7ed;
    color: #ea580c;
}

.gold-alert-icon--error,
.gold-alert-icon--danger {
    background: #fef2f2;
    color: #dc2626;
}

.gold-alert-icon--question {
    background: #f5f3ff;
    color: #7c3aed;
}

.gold-alert-title {
    margin: 0 0 8px;
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.4;
}

.gold-alert-message {
    margin: 0 0 22px;
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.65;
    white-space: pre-wrap;
    word-break: break-word;
}

.gold-alert-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.gold-alert-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 110px;
    padding: 10px 18px;
    border-radius: 10px;
    border: 1px solid transparent;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}

.gold-alert-btn:hover {
    transform: translateY(-1px);
}

.gold-alert-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.gold-alert-btn--primary {
    background: #0f766e;
    color: #fff;
}

.gold-alert-btn--primary:hover {
    background: #0d9488;
}

.gold-alert-btn--success {
    background: #059669;
    color: #fff;
}

.gold-alert-btn--success:hover {
    background: #047857;
}

.gold-alert-btn--danger {
    background: #dc2626;
    color: #fff;
}

.gold-alert-btn--danger:hover {
    background: #b91c1c;
}

.gold-alert-btn--secondary {
    background: #f8fafc;
    color: #475569;
    border-color: #e2e8f0;
}

.gold-alert-btn--secondary:hover {
    background: #f1f5f9;
    color: #1e293b;
}

body.gold-alert-open {
    overflow: hidden;
}
