/* Popup Overlay */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.popup-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* Popup Container */
.popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1001;
}

.popup.show {
    transform: translate(-50%, -50%) scale(1);
}

/* Close Button */
.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    color: #666;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.2s ease;
    z-index: 10;
}

.close-btn:hover {
    color: #ff4757;
    transform: rotate(90deg);
}

/* Popup Header */
.popup-header {
    padding: 30px 20px 0;
    border-radius: 20px 20px 0 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}


.popup-title {
    color: #47B539;
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 5px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.popup-subtitle {
    color: black;
    font-size: 1rem;
    font-weight: normal;
}

/* Popup Content */
.popup-content {
    padding: 30px;
}

.deals-preview::before {
    content: '☀️';
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.5rem;
    animation: rotate 4s linear infinite;
}

.deals-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
    font-weight: bold;
}

.deals-description {
    font-size: 0.9rem;
    opacity: 0.9;
    line-height: 1.4;
}

.popup-content {
  text-align: center;
}
.popup-content img {
  margin-inline: auto;
}

.popup-content .btn {
    font-size: 1rem;
    margin-top: 1rem;
  background-color: #1eb53a;
  color: white;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .popup {
        width: 95%;
        margin: 10px;
    }

    .popup-title {
        font-size: 1.5rem;
    }

    .folder-icon {
        font-size: 3rem;
    }

    .popup-content {
        padding: 20px;
    }

    .upload-section {
        padding: 20px;
    }

    .demo-content h1 {
        font-size: 2rem;
    }

    .demo-content p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .popup-header {
        padding: 20px 15px 15px;
    }

    .popup-content {
        padding: 15px;
    }

    .deals-preview {
        padding: 15px;
    }

    .upload-section {
        padding: 15px;
    }
}
</style>