.preview-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.preview-modal.active {
    display: flex;
}

.preview-container {
    padding: 20px;
    position: relative;
    background: transparent;
}

.mobile-frame {
    width: 375px;
    height: 812px;
    border: 2px solid #000;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    background: white;
}

.mobile-frame iframe {
    width: 100%;
    height: 100%;
    border: none;
    overflow: hidden;
}
/* Hide scrollbars but keep functionality */
.mobile-frame iframe {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.mobile-frame iframe::-webkit-scrollbar {
    display: none; /* Chrome, Safari, and Opera */
}

.close-preview {
    position: absolute;
    top: -40px;
    right: -40px;
    width: 30px;
    height: 30px;
    background: black;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}