.sb-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 1rem;
}

.sb-modal.open {
    display: flex;
}

.sb-modal-backdrop {
    position: fixed;
    inset: 0;
    background-color: rgba(9, 9, 11, 0.4);
    backdrop-filter: blur(8px);
    animation: fadeIn 0.3s ease-out;
}

.sb-modal-dialog {
    position: relative;
    background: #ffffff;
    border-radius: 24px;
    max-width: 460px;
    width: 100%;
    box-shadow: 
        0 20px 25px -5px rgba(0, 0, 0, 0.1), 
        0 10px 10px -5px rgba(0, 0, 0, 0.04),
        0 0 0 1px rgba(0, 0, 0, 0.03);
    z-index: 10;
    overflow: hidden;
    animation: modalSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.sb-modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f4f4f5;
    border: none;
    color: #71717a;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 20;
}

.sb-modal-close:hover {
    background: #e4e4e7;
    color: #18181b;
}

.sb-modal-title {
    padding: 2rem 2rem 1rem;
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #18181b;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

.sb-modal-title i {
    font-size: 2.5rem;
    background: linear-gradient(135deg, #3CB8E6, #2a9fd6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 4px 6px rgba(60, 184, 230, 0.2));
}

.sb-modal-body {
    padding: 1rem 2rem 2rem;
    text-align: center;
}

.sb-text-muted {
    color: #71717a;
    font-size: 0.95rem;
    margin: 0.5rem 0;
}

.sb-profile-box {
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: #ffffff;
    border: 1px solid #e4e4e7;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.sb-profile-box:hover {
    border-color: #3CB8E6;
    box-shadow: 0 10px 15px -3px rgba(60, 184, 230, 0.1);
    transform: translateY(-2px);
}

.sb-profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, #e0f2fe, #bae6fd);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid #ffffff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.sb-profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sb-profile-avatar span {
    font-size: 1.75rem;
    font-weight: 700;
    color: #0284c7;
    text-transform: uppercase;
}

.sb-profile-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.sb-profile-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: #18181b;
}

.sb-profile-email {
    font-size: 0.9rem;
    color: #71717a;
}

.sb-modal-actions {
    padding: 0 2rem 2rem;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 1rem;
}

.sb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.5rem;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    outline: none;
}

.sb-btn-primary {
    background: linear-gradient(135deg, #3CB8E6, #2a9fd6);
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(60, 184, 230, 0.24);
}

.sb-btn-primary:hover {
    filter: brightness(0.96);
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(60, 184, 230, 0.28);
}

.sb-btn-primary:active {
    transform: translateY(0);
}

.sb-btn-ghost {
    background: transparent;
    color: #52525b;
}

.sb-btn-ghost:hover {
    background: #f4f4f5;
    color: #18181b;
}

.sb-btn-secondary {
    background: #ffffff;
    color: #18181b;
    border: 1px solid #e4e4e7;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
}

.sb-btn-secondary:hover {
    background: #f9fafb;
    border-color: #d4d4d8;
    transform: translateY(-1px);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Mobile Responsive */
@media (max-width: 640px) {
    .sb-modal-dialog {
        width: 100%;
        border-radius: 24px 24px 0 0;
        margin-top: auto;
        margin-bottom: 0;
        animation: modalSlideUpMobile 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    }

    @keyframes modalSlideUpMobile {
        from { transform: translateY(100%); }
        to { transform: translateY(0); }
    }

    .sb-modal-actions {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .sb-btn-ghost {
        order: 2;
    }
    
    .sb-btn-primary {
        order: 1;
    }
}
