.ds-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 24px;
}

.ds-modal-backdrop.open {
    opacity: 1;
    visibility: visible;
}

.ds-modal-card {
    background: #fff;
    border-radius: 24px;
    padding: 56px 48px;
    max-width: 420px;
    width: 100%;
    text-align: center;
    box-shadow: 0 4px 32px rgba(124, 58, 237, 0.08), 0 1px 4px rgba(0,0,0,0.06);
    transform: translateY(20px) scale(0.95);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.ds-modal-backdrop.open .ds-modal-card {
    transform: translateY(0) scale(1);
}

.ds-modal-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    cursor: pointer;
    color: #64748b;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
}

.ds-modal-close-btn:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.ds-modal-emoji {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

.ds-modal-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 12px;
}

.ds-modal-subtitle {
    font-size: 0.95rem;
    color: #64748b;
    margin-bottom: 32px;
}

.ds-modal-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid rgba(124, 58, 237, 0.15);
    border-top-color: #7C3AED;
    border-radius: 50%;
    animation: ds-modal-spin 0.9s linear infinite;
    margin: 0 auto 24px;
}

@keyframes ds-modal-spin {
    to { transform: rotate(360deg); }
}

.ds-modal-note {
    font-size: 0.82rem;
    color: #94a3b8;
    margin-bottom: 28px;
}

.ds-modal-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    background: #7C3AED;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, transform 0.1s;
    width: auto;
    font-family: inherit;
    margin-bottom: 12px;
}

.ds-modal-btn:hover { 
    background: #6d28d9; 
}
.ds-modal-btn:active {
    transform: scale(0.98);
}

@media (max-width: 480px) {
    .ds-modal-card { padding: 40px 28px; }
    .ds-modal-title { font-size: 1.35rem; }
}
