/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal.show {
    display: flex !important;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.modal-content {
    background: var(--card-bg);
    margin: 20px;
    padding: 0;
    border-radius: 24px;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    box-shadow: 0 24px 48px rgba(232, 190, 250, 0.3);
    position: relative;
    overflow: hidden;
    color: var(--text-color);
    border: 1px solid rgba(232, 190, 250, 0.3);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal.show .modal-content {
    transform: scale(1) translateY(0);
}

.close-modal {
    position: absolute;
    right: 24px;
    top: 24px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    color: #fff;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(232, 190, 250, 0.2);
}

.close-modal:hover {
    background: linear-gradient(90deg, rgba(252, 244, 201, 1) 0%, rgba(254, 227, 226, 1) 20%, rgba(251, 205, 242, 1) 40%, rgba(232, 190, 250, 1) 60%, rgba(171, 191, 255, 1) 80%, rgba(187, 243, 192, 1) 100%);
    color: var(--text-color-invert);
    border-color: rgba(232, 190, 250, 0.8);
    transform: rotate(90deg);
}

.modal-body {
    display: flex;
    flex-direction: row;
    max-height: 90vh;
    overflow: hidden;
}

.modal-image-container {
    width: 50%;
    background: #000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.modal-image-container img {
    max-width: 100%;
    max-height: calc(90vh - 100px);
    object-fit: contain;
    transition: opacity 0.3s ease;
}

.modal-gallery {
    display: flex;
    overflow-x: auto;
    gap: 12px;
    padding: 16px;
    background: linear-gradient(90deg,
            rgba(252, 244, 201, 0.2) 0%,
            rgba(254, 227, 226, 0.2) 20%,
            rgba(251, 205, 242, 0.2) 40%,
            rgba(232, 190, 250, 0.2) 60%,
            rgba(171, 191, 255, 0.2) 80%,
            rgba(187, 243, 192, 0.2) 100%);
    width: 100%;
}

.modal-gallery::-webkit-scrollbar {
    height: 8px;
}

.modal-gallery::-webkit-scrollbar-track {
    background: rgba(232, 190, 250, 0.05);
}

.modal-gallery::-webkit-scrollbar-thumb {
    background: rgba(232, 190, 250, 0.4);
    border-radius: 4px;
}

.modal-gallery::-webkit-scrollbar-thumb:hover {
    background: rgba(232, 190, 250, 0.6);
}

.gallery-thumb {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    opacity: 0.5;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    flex-shrink: 0;
}

.gallery-thumb:hover {
    opacity: 0.8;
    transform: scale(1.05);
}

.gallery-thumb.active {
    opacity: 1;
    border-color: rgba(232, 190, 250, 1);
    box-shadow: 0 0 0 2px rgba(232, 190, 250, 0.3);
}

.modal-info {
    width: 50%;
    padding: 48px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.modal-info::-webkit-scrollbar {
    width: 8px;
}

.modal-info::-webkit-scrollbar-track {
    background: var(--secondary-bg);
}

.modal-info::-webkit-scrollbar-thumb {
    background: rgba(232, 190, 250, 0.4);
    border-radius: 4px;
}

.modal-info::-webkit-scrollbar-thumb:hover {
    background: rgba(232, 190, 250, 0.6);
}

.modal-title {
    font-size: 2rem;
    margin-bottom: 16px;
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-color);
}

.modal-price {
    font-size: 1.75rem;
    background: linear-gradient(90deg, rgba(252, 244, 201, 1) 0%, rgba(254, 227, 226, 1) 20%, rgba(251, 205, 242, 1) 40%, rgba(232, 190, 250, 1) 60%, rgba(171, 191, 255, 1) 80%, rgba(187, 243, 192, 1) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    margin-bottom: 24px;
}

.modal-description {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 32px;
    color: var(--text-color-light);
}

.bundle-packages-modal {
    background: linear-gradient(90deg,
            rgba(252, 244, 201, 0.08) 0%,
            rgba(254, 227, 226, 0.08) 20%,
            rgba(251, 205, 242, 0.08) 40%,
            rgba(232, 190, 250, 0.08) 60%,
            rgba(171, 191, 255, 0.08) 80%,
            rgba(187, 243, 192, 0.08) 100%);
    border: 1px solid rgba(232, 190, 250, 0.3);
    border-radius: 12px;
    padding: 20px;
    margin-top: 24px;
}

.bundle-packages-modal strong {
    display: block;
    margin-bottom: 16px;
    background: linear-gradient(90deg, rgba(252, 244, 201, 1) 0%, rgba(254, 227, 226, 1) 20%, rgba(251, 205, 242, 1) 40%, rgba(232, 190, 250, 1) 60%, rgba(171, 191, 255, 1) 80%, rgba(187, 243, 192, 1) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bundle-packages-modal ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.bundle-packages-modal li {
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
    color: var(--text-color);
    font-size: 1rem;
}

.bundle-packages-modal li:before {
    content: "✓";
    position: absolute;
    left: 0;
    background: linear-gradient(90deg, rgba(252, 244, 201, 1) 0%, rgba(254, 227, 226, 1) 20%, rgba(251, 205, 242, 1) 40%, rgba(232, 190, 250, 1) 60%, rgba(171, 191, 255, 1) 80%, rgba(187, 243, 192, 1) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
    font-size: 1.125rem;
}

.buy-button {
    background: linear-gradient(90deg, rgba(252, 244, 201, 1) 0%, rgba(254, 227, 226, 1) 20%, rgba(251, 205, 242, 1) 40%, rgba(232, 190, 250, 1) 60%, rgba(171, 191, 255, 1) 80%, rgba(187, 243, 192, 1) 100%);
    color: var(--text-color-invert);
    border: none;
    padding: 16px 32px;
    border-radius: 16px;
    font-size: 1.125rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    text-decoration: none;
    box-shadow: 0 8px 16px rgba(232, 190, 250, 0.4);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.buy-button:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.3),
            transparent);
    transition: left 0.5s ease;
    z-index: -1;
}

.buy-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(232, 190, 250, 0.6);
}

.buy-button:hover:before {
    left: 100%;
}

.buy-button:active {
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 10px;
        border-radius: 20px;
    }

    .modal-body {
        flex-direction: column;
    }

    .modal-image-container {
        width: 100%;
        height: 300px;
    }

    .modal-image-container img {
        max-height: 280px;
    }

    .modal-info {
        width: 100%;
        padding: 32px 24px;
    }

    .modal-title {
        font-size: 1.5rem;
    }

    .modal-price {
        font-size: 1.5rem;
    }

    .close-modal {
        right: 16px;
        top: 16px;
        width: 36px;
        height: 36px;
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .modal-info {
        padding: 24px 20px;
    }

    .modal-title {
        font-size: 1.25rem;
    }

    .modal-price {
        font-size: 1.25rem;
    }

    .buy-button {
        padding: 14px 28px;
        font-size: 1rem;
        width: 100%;
    }

    .gallery-thumb {
        width: 60px;
        height: 60px;
    }
}