.smg-overlay {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(0, 0, 0, 0.65);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.smg-overlay[hidden] {
    display: none;
}

.smg-overlay.smg-open {
    opacity: 1;
}

.smg-modal {
    width: 100%;
    max-width: 380px;
    padding: 0 24px 24px;
    overflow: hidden;
    text-align: center;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
    transform: scale(0.9);
    transition: transform 0.25s ease;
}

.smg-open .smg-modal {
    transform: scale(1);
}

.smg-image {
    margin: 0 -24px 16px;
    background: #000;
}

.smg-image img {
    display: block;
    width: 220px;
    max-width: 70%;
    height: auto;
    margin: 0 auto;
    animation: smg-wiggle 1.6s ease-in-out infinite;
}

@keyframes smg-wiggle {
    0%, 70%, 100% { transform: rotate(0); }
    75% { transform: rotate(-6deg); }
    85% { transform: rotate(6deg); }
    95% { transform: rotate(-3deg); }
}

.smg-title {
    margin: 0 0 8px;
    font-size: 24px;
    line-height: 1.2;
    color: #d9730d;
}

.smg-message {
    margin: 0 0 20px;
    font-size: 15px;
    line-height: 1.5;
    color: #333;
}

.smg-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.smg-btn {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    border: 0;
    border-radius: 8px;
}

.smg-btn:disabled {
    opacity: 0.6;
    cursor: wait;
}

.smg-accept {
    color: #fff;
    background: linear-gradient(135deg, #f2b33d, #e07b1a);
}

.smg-accept:hover {
    background: linear-gradient(135deg, #e5a42c, #c96a10);
}

.smg-deny {
    color: #666;
    background: transparent;
}

.smg-deny:hover {
    color: #222;
    text-decoration: underline;
}

@media (prefers-reduced-motion: reduce) {
    .smg-image img { animation: none; }
    .smg-overlay, .smg-modal { transition: none; }
}
