/* Stories Modal */
.stories-modal {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
}

.stories-modal.active {
    display: flex;
}

.stories-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
}

.stories-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    font-size: 32px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.stories-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.stories-content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 500px;
    height: 90vh;
    gap: 20px;
}

.stories-image-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stories-image-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    position: relative;
    z-index: 1;
}

.stories-blur-overlay {
    position: absolute;
    inset: 0;
    backdrop-filter: blur(8px);
    background: rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.stories-unlock {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    text-align: center;
}

.unlock-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    animation: pulse 2s infinite;
}

.unlock-icon svg {
    width: 40px;
    height: 40px;
}

.unlock-button {
    background: linear-gradient(135deg, #FF0080 0%, #7928CA 100%);
    color: #fff;
    border: none;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(255, 0, 128, 0.4);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.unlock-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(255, 0, 128, 0.6);
}

.stories-nav {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: #fff;
    font-size: 32px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.stories-nav:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.stories-prev {
    margin-right: 10px;
}

.stories-next {
    margin-left: 10px;
}

@media (max-width: 600px) {
    .stories-content {
        max-width: 95%;
    }

    .stories-nav {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }
}