/* ==========================================================================
   Widgets CSS
   ========================================================================== */

/* Z-Index Hierarchy:
   Stories Overlay: 1000000
   Exit Popup Overlay: 999999
   Chatbot: 999998
   WhatsApp Widget: 999997
   Sticky CTA Bar: 999996
   Social Proof: 999995
*/

/* ==========================================================================
   1. WhatsApp Widget
   ========================================================================== */
.whatsapp-widget {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 999997;
    display: none;
}

@media (min-width: 768px) {
    .whatsapp-widget {
        display: block;
    }
}

.whatsapp-widget__button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
}

.whatsapp-widget__button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.whatsapp-widget__button svg {
    width: 32px;
    height: 32px;
    fill: #fff;
}

/* Pulse Animation */
.whatsapp-widget__button::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #25D366;
    animation: whatsapp-pulse 2s infinite;
    z-index: -1;
}

@keyframes whatsapp-pulse {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }
    70% {
        transform: scale(1.5);
        opacity: 0;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* Tooltip */
.whatsapp-widget__tooltip {
    position: absolute;
    left: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: #333;
    color: #fff;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.whatsapp-widget__tooltip::after {
    content: '';
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 8px solid transparent;
    border-right-color: #333;
    border-left: 0;
}

.whatsapp-widget__button:hover + .whatsapp-widget__tooltip,
.whatsapp-widget:hover .whatsapp-widget__tooltip {
    opacity: 1;
    visibility: visible;
}

/* ==========================================================================
   2. Sticky CTA Bar
   ========================================================================== */
.sticky-cta-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #d9edf7;
    color: #31708f;
    padding: 12px 0;
    z-index: 999996;
    transform: translateY(-100%);
    transition: transform 0.4s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.sticky-cta-bar.visible {
    transform: translateY(0);
}

.sticky-cta-bar__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.sticky-cta-bar__text {
    font-size: 15px;
    font-weight: 500;
    margin: 0;
}

.sticky-cta-bar__text strong {
    color: #099ad1;
}

.sticky-cta-bar__actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sticky-cta-bar__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.sticky-cta-bar__btn:focus {
    color: #ffffff !important;
    text-decoration: none !important;
    outline: none !important;
    outline-offset: 0 !important;
}

.sticky-cta-bar__btn--primary {
    background: #099ad1;
    color: #fff;
}

.sticky-cta-bar__btn--primary:hover {
    background: #0b85ae;
    color: #fff;
    text-decoration: none;
}

.sticky-cta-bar__btn--whatsapp {
    background: #25D366;
    color: #fff;
}

.sticky-cta-bar__btn--whatsapp:hover {
    background: #128C7E;
    color: #fff;
    text-decoration: none;
}

.sticky-cta-bar__close {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #31708f;
    font-size: 24px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    padding: 5px;
    line-height: 1;
}

.sticky-cta-bar__close:hover {
    opacity: 1;
}

@media (max-width: 767px) {
    .sticky-cta-bar__container {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .sticky-cta-bar__text {
        font-size: 13px;
    }

    .sticky-cta-bar__btn {
        padding: 6px 12px;
        font-size: 12px;
    }

    .sticky-cta-bar__close {
        top: 5px;
        right: 5px;
        transform: none;
    }
}

/* ==========================================================================
   3. Exit Intent Popup
   ========================================================================== */
.exit-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.exit-popup-overlay.active {
    display: flex;
}

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

.exit-popup {
    background: #fff;
    border-radius: 16px;
    max-width: 500px;
    width: 100%;
    position: relative;
    overflow: hidden;
    animation: slideUp 0.4s ease;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.exit-popup__close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    z-index: 10;
    transition: color 0.3s ease;
    line-height: 1;
    padding: 0;
}

.exit-popup__close:hover {
    color: #333;
}

.exit-popup__header {
    background: linear-gradient(135deg, #099ad1 0%, #2d343e 100%);
    color: #fff;
    padding: 20px;
    text-align: center;
}

.exit-popup__header h3 {
    margin: 0 0 10px;
    font-size: 24px;
    font-weight: 700;
}

.exit-popup__header p {
    margin: 0;
    font-size: 16px;
    opacity: 0.9;
}

.exit-popup__countdown {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 8px 20px;
    border-radius: 25px;
    margin-top: 15px;
    font-size: 14px;
}

.exit-popup__countdown strong {
    color: #ffd700;
    font-size: 18px;
}

.exit-popup__body {
    padding: 30px;
}

.exit-popup__benefits {
    list-style: none;
    padding: 0;
    margin: 0 0 15px;
}

.exit-popup__benefits li {
    padding: 8px 0;
    padding-left: 30px;
    position: relative;
    font-size: 15px;
    color: #555;
}

.exit-popup__benefits li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: #25D366;
    font-weight: bold;
    font-size: 18px;
}

.exit-popup__form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.exit-popup__form input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
    margin-bottom: 0;
}

.exit-popup__form input:focus {
    outline: none;
    border-color: #099ad1;
}

.exit-popup__form button {
    background: linear-gradient(135deg, #099ad1 0%, #2d343e 100%);
    color: #fff;
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.exit-popup__form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(9, 154, 209, 0.4);
}

.exit-popup__footer {
    text-align: center;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.exit-popup__footer a {
    color: #999;
    font-size: 13px;
    text-decoration: none;
}

.exit-popup__footer a:hover {
    color: #099ad1;
}

@media (max-width: 500px) {
    .exit-popup__header h3 {
        font-size: 20px;
    }

    .exit-popup__body {
        padding: 20px;
    }
}

/* ==========================================================================
   4. Social Proof Notifications
   ========================================================================== */
.social-proof {
    position: fixed;
    bottom: 110px;
    left: 20px;
    z-index: 999995;
    max-width: 320px;
}

.social-proof__notification {
    background: #fff;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateX(-120%);
    opacity: 0;
    transition: all 0.5s ease;
    border-left: 4px solid #288db5;
}

.social-proof__notification.visible {
    transform: translateX(0);
    opacity: 1;
}

.social-proof__notification.hiding {
    transform: translateX(-120%);
    opacity: 0;
}

.social-proof__icon {
    width: 45px;
    height: 45px;
    background: #288db5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.social-proof__icon svg {
    width: 24px;
    height: 24px;
    fill: #fff;
}

.social-proof__content {
    flex: 1;
    min-width: 0;
}

.social-proof__text {
    font-size: 14px;
    color: #333;
    margin: 0 0 4px;
    line-height: 1.4;
}

.social-proof__text strong {
    color: #3a87ad;
}

.social-proof__time {
    font-size: 12px;
    color: #999;
    margin: 0;
}

.social-proof__close {
    position: absolute;
    top: 5px;
    right: 8px;
    background: none;
    border: none;
    font-size: 18px;
    color: #ccc;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.social-proof__close:hover {
    color: #999;
}

@media (max-width: 767px) {
    .social-proof {
        left: 10px;
        right: 10px;
        max-width: 260px;
        bottom: 80px;
    }
}

/* ==========================================================================
   5. Chatbot
   ========================================================================== */
.chatbot {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999998;
}

@media (max-width: 767px) {
    .chatbot {
        bottom: 80px;
    }
}

.chatbot__toggle {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #3ecccc 0%, #2b9e9e 100%);
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(62, 204, 204, 0.4);
    transition: all 0.3s ease;
}

.chatbot__toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(62, 204, 204, 0.6);
}

.chatbot__toggle svg {
    width: 28px;
    height: 28px;
    fill: #fff;
}

.chatbot__toggle--close {
    display: none;
}

.chatbot.open .chatbot__toggle--chat {
    display: none;
}

.chatbot.open .chatbot__toggle--close {
    display: block;
}

/* Chat Badge */
.chatbot__badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #2d343e;
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.chatbot.open .chatbot__badge {
    display: none;
}

/* Chat Window */
.chatbot__window {
    position: absolute;
    bottom: 75px;
    right: 0;
    width: 350px;
    max-height: 500px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    display: none;
    flex-direction: column;
    overflow: hidden;
    animation: slideUpChat 0.3s ease;
}

.chatbot.open .chatbot__window {
    display: flex;
}

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

@media (max-width: 400px) {
    .chatbot__window {
        width: calc(100vw - 40px);
        right: -10px;
    }
}

.chatbot__header {
    background: linear-gradient(135deg, #3ecccc 0%, #2b9e9e 100%);
    color: #fff;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.chatbot__avatar {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chatbot__avatar svg {
    width: 24px;
    height: 24px;
    fill: #fff;
}

.chatbot__info h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.chatbot__info p {
    margin: 3px 0 0;
    font-size: 12px;
    opacity: 0.9;
}

/* Chat Messages */
.chatbot__messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-height: 300px;
    min-height: 200px;
}

.chatbot__message {
    display: flex;
    gap: 10px;
    animation: messageIn 0.3s ease;
}

@keyframes messageIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chatbot__message--bot {
    align-self: flex-start;
}

.chatbot__message--user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.chatbot__message-avatar {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #3ecccc 0%, #2b9e9e 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.chatbot__message-avatar svg {
    width: 18px;
    height: 18px;
    fill: #fff;
}

.chatbot__message--user .chatbot__message-avatar {
    background: #e0e0e0;
}

.chatbot__message--user .chatbot__message-avatar svg {
    fill: #666;
}

.chatbot__message-bubble {
    background: #f0f0f0;
    padding: 12px 16px;
    border-radius: 16px;
    max-width: 220px;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
}

.chatbot__message--bot .chatbot__message-bubble {
    border-bottom-left-radius: 4px;
}

.chatbot__message--user .chatbot__message-bubble {
    background: linear-gradient(135deg, #3ecccc 0%, #2b9e9e 100%);
    color: #fff;
    border-bottom-right-radius: 4px;
}

/* Chat Options */
.chatbot__options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 15px;
    border-top: 1px solid #eaeaea;
}

.chatbot__option {
    background: #f5f5f5;
    border: 2px solid #e0e0e0;
    padding: 10px 16px;
    border-radius: 20px;
    font-size: 13px;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
}

.chatbot__option:hover {
    border-color: #3ecccc;
    background: #edfafa;
    color: #2b9e9e;
}

/* Scrollable Options */
.chatbot__options--scroll {
    max-height: 200px;
    overflow-y: auto;
    padding-bottom: 12px;
}

.chatbot__options--scroll::-webkit-scrollbar {
    width: 4px;
}

.chatbot__options--scroll::-webkit-scrollbar-track {
    background: transparent;
}

.chatbot__options--scroll::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.chatbot__options--scroll::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}

/* Back button */
.chatbot__option--back {
    background: transparent;
    border-style: dashed;
    color: #999;
    font-size: 12px;
    width: 100%;
    text-align: center;
}

.chatbot__option--back:hover {
    border-color: #3ecccc;
    background: transparent;
    color: #2b9e9e;
}

/* Chat Input Bar */
.chatbot__input-bar {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 12px 15px;
    border-top: 1px solid #eaeaea;
    background: #fff;
}

.chatbot__input-bar.active {
    display: flex;
}

.chatbot__input-field {
    flex: 1;
    padding: 10px 14px;
    border: 2px solid #e0e0e0;
    border-radius: 20px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.chatbot__input-field:focus {
    border-color: #3ecccc;
}

.chatbot__input-send {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, #3ecccc 0%, #2b9e9e 100%);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.chatbot__input-send:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(62, 204, 204, 0.4);
}

.chatbot__input-send svg {
    width: 18px;
    height: 18px;
    fill: #fff;
}

/* Chat Success */
.chatbot__success {
    text-align: center;
    padding: 30px 20px;
    display: none;
}

.chatbot__success.active {
    display: block;
}

.chatbot__success-icon {
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.chatbot__success-icon svg {
    width: 30px;
    height: 30px;
    fill: #fff;
}

.chatbot__success h4 {
    margin: 0 0 8px;
    color: #333;
    font-size: 18px;
}

.chatbot__success p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

/* Typing Indicator */
.chatbot__typing {
    display: none;
    align-items: center;
    gap: 10px;
    padding: 0 20px 15px;
}

.chatbot__typing.active {
    display: flex;
}

.chatbot__typing-dots {
    display: flex;
    gap: 4px;
}

.chatbot__typing-dots span {
    width: 8px;
    height: 8px;
    background: #ccc;
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out;
}

.chatbot__typing-dots span:nth-child(1) { animation-delay: 0s; }
.chatbot__typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.chatbot__typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-6px); }
}

/* ==========================================================================
   6. Web Stories
   ========================================================================== */
.stories-container {
    padding: 20px 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.stories-wrapper {
    display: flex;
    gap: 15px;
    padding: 0 15px;
}

.story-ring {
    flex-shrink: 0;
    cursor: pointer;
    text-align: center;
    width: 80px;
}

.story-ring__image-wrapper {
    width: 72px;
    height: 72px;
    padding: 3px;
    border-radius: 50%;
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    margin: 0 auto 8px;
    transition: transform 0.3s ease;
}

.story-ring:hover .story-ring__image-wrapper {
    transform: scale(1.05);
}

.story-ring--seen .story-ring__image-wrapper {
    background: #ccc;
}

.story-ring__image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid #fff;
    object-fit: cover;
}

.story-ring__name {
    font-size: 12px;
    color: #333;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Stories Fullscreen Overlay */
.stories-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #000;
    z-index: 1000000;
    display: none;
}

.stories-overlay.active {
    display: block;
}

.stories-overlay__close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 32px;
    cursor: pointer;
    z-index: 10;
    padding: 10px;
    line-height: 1;
}

.stories-overlay__close:hover {
    opacity: 0.8;
}

/* Story Viewer */
.story-viewer {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.story-viewer__content {
    position: relative;
    width: 100%;
    max-width: 400px;
    height: 100%;
    max-height: 700px;
    background: #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
}

@media (max-width: 500px) {
    .story-viewer__content {
        max-width: 100%;
        max-height: 100%;
        border-radius: 0;
    }
}

/* Progress Bar */
.story-viewer__progress {
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    display: flex;
    gap: 5px;
    z-index: 5;
}

.story-viewer__progress-bar {
    flex: 1;
    height: 3px;
    background: rgba(255,255,255,0.3);
    border-radius: 2px;
    overflow: hidden;
}

.story-viewer__progress-fill {
    height: 100%;
    background: #fff;
    width: 0;
    transition: width 0.1s linear;
}

.story-viewer__progress-bar.completed .story-viewer__progress-fill {
    width: 100%;
}

/* Progress bar animation is controlled by JavaScript only */

/* Story Header */
.story-viewer__header {
    position: absolute;
    top: 30px;
    left: 15px;
    right: 60px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 5;
}

.story-viewer__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #fff;
    object-fit: cover;
}

.story-viewer__info h4 {
    margin: 0;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
}

.story-viewer__info span {
    font-size: 12px;
    color: rgba(255,255,255,0.7);
}

/* Story Image */
.story-viewer__image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
}

/* Story Caption */
.story-viewer__caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 60px 20px 30px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: #fff;
    z-index: 5;
}

.story-viewer__caption h3 {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 600;
}

.story-viewer__caption p {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
    line-height: 1.5;
}

/* Story Navigation */
.story-viewer__nav {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 30%;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 4;
}

.story-viewer__nav--prev {
    left: 0;
}

.story-viewer__nav--next {
    right: 0;
}

/* Story CTA */
.story-viewer__cta {
    position: absolute;
    bottom: 80px;
    left: 20px;
    right: 20px;
    z-index: 6;
}

.story-viewer__cta a {
    display: block;
    background: #fff;
    color: #333;
    text-align: center;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.story-viewer__cta a:hover {
    background: #667eea;
    color: #fff;
    text-decoration: none;
}

/* Swipe hint (mobile) */
.story-viewer__swipe-hint {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.5);
    font-size: 12px;
    display: none;
}

@media (max-width: 767px) {
    .story-viewer__swipe-hint {
        display: block;
    }
}

/* Story Viewer — Video */
.story-viewer__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
    z-index: 1;
}
.story-viewer__video.active { display: block; }
.story-viewer--video .story-viewer__image { display: none; }

/* Story Viewer — Photo type */
.story-viewer--photo .story-viewer__image {
    background-size: contain;
    background-repeat: no-repeat;
}

/* Story Viewer — Image-only story */
.story-viewer--image-only .story-viewer__image {
    background-size: contain;
    background-repeat: no-repeat;
}

/* Caption scrollable */
.story-viewer__caption--scrollable {
    max-height: 50%;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* Body scroll lock */
body.stories-open { overflow: hidden; }

/* Desktop arrow buttons */
.story-viewer__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.15);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    z-index: 6;
    opacity: 0;
    transition: opacity 0.3s;
}
.story-viewer__content:hover .story-viewer__arrow { opacity: 1; }
.story-viewer__arrow--prev { left: 10px; }
.story-viewer__arrow--next { right: 10px; }
@media (max-width: 767px) { .story-viewer__arrow { display: none; } }

/* Counter */
.story-viewer__counter {
    position: absolute;
    top: 20px;
    right: 60px;
    color: rgba(255,255,255,0.7);
    font-size: 13px;
    z-index: 6;
}
