/* ==========================================================================
   CONCEPT "OCOP PREMIUM" DESIGN SYSTEM
   Official Government & High-End Exhibition Style for Dong Anh OCOP Heritage
   Primary: #0F5E4A (Forest Green) | Secondary: #D4A017 (Gold) | Accent: #C96F00 (Orange)
   Background: #F7F4EC (Ivory) | Glass: rgba(255, 255, 255, 0.94)
   ========================================================================== */

.story-overlay-modal.ocop-theme {
    background: #F7F4EC;
    color: #173B32;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

#ocopSparkleCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999995;
}

.story-overlay-modal.ocop-theme h1,
.story-overlay-modal.ocop-theme h2,
.story-overlay-modal.ocop-theme h3,
.story-overlay-modal.ocop-theme h4,
.story-overlay-modal.ocop-theme .ocop-finale-title,
.story-overlay-modal.ocop-theme .ocop-slogan-text-display,
.story-overlay-modal.ocop-theme .story-header-text h1 {
    font-family: 'Outfit', sans-serif !important;
}

/* 1. Fullscreen Intro Overlay & Countdown 3-2-1 */
.ocop-cinematic-intro-overlay {
    position: absolute;
    inset: 0;
    z-index: 999999;
    background:
        radial-gradient(circle at 50% 30%, rgba(212, 160, 23, 0.3) 0%, transparent 60%),
        radial-gradient(circle at 20% 80%, rgba(15, 94, 74, 0.4) 0%, transparent 50%),
        linear-gradient(135deg, #0B4637 0%, #0F5E4A 50%, #173B32 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 30px;
    transition: opacity 0.8s ease;
}

.ocop-intro-content-box {
    max-width: 820px;
    width: 92%;
}

.ocop-intro-logo-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.ocop-logo-icon {
    font-size: 4.8rem;
    filter: drop-shadow(0 0 25px rgba(212, 160, 23, 0.8));
    animation: floatIcon 3s ease-in-out infinite alternate;
}

@keyframes floatIcon {
    0% {
        transform: translateY(0) scale(1);
    }

    100% {
        transform: translateY(-10px) scale(1.08);
    }
}

.ocop-intro-tag {
    background: rgba(212, 160, 23, 0.22);
    border: 1.5px solid #D4A017;
    color: #F0C24B;
    padding: 8px 24px;
    border-radius: 24px;
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 3px;
    box-shadow: 0 4px 15px rgba(212, 160, 23, 0.3);
}

.ocop-intro-main-title {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 900;
    line-height: 1.25;
    letter-spacing: 1.5px;
    background: linear-gradient(135deg, #ffffff 0%, #F0C24B 50%, #D4A017 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-top: 14px;
    margin-bottom: 0;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.ocop-intro-main-title .phrase-block {
    display: inline-block;
    white-space: nowrap;
}

.ocop-intro-main-title .phrase-block.highlight-gold {
    background: linear-gradient(135deg, #F0C24B 0%, #D4A017 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ocop-intro-sub-title {
    font-size: 1.25rem;
    color: #D6EED8;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-top: 12px;
}

.ocop-countdown-wrap {
    margin-top: 10px;
}

.ocop-countdown-number {
    font-size: 5.2rem;
    font-weight: 900;
    color: #F0C24B;
    text-shadow: 0 0 30px rgba(212, 160, 23, 0.8), 0 0 60px rgba(15, 94, 74, 0.6);
    line-height: 1;
}

/* 2. Header Bar OCOP Premium Style */
.story-overlay-modal.ocop-theme .story-top-bar {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.story-overlay-modal.ocop-theme .story-header-branding {
    background: linear-gradient(135deg, #0F5E4A 0%, #197A5C 100%) !important;
    border: 1.5px solid #D4A017 !important;
    box-shadow: 0 10px 30px rgba(15, 94, 74, 0.35) !important;
    border-radius: 20px !important;
    padding: 10px 22px !important;
}

.story-overlay-modal.ocop-theme .story-header-text h1 {
    color: #ffffff !important;
    font-size: 1.1rem !important;
    font-weight: 900 !important;
    letter-spacing: 0.5px;
    margin: 0 !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.story-overlay-modal.ocop-theme #ocopPhaseLabel {
    color: #D6EED8 !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    margin-top: 2px !important;
}

/* Skip Button - Gold Premium Gradient */
.story-overlay-modal.ocop-theme .story-btn-skip {
    background: linear-gradient(135deg, #D4A017 0%, #F0C24B 100%) !important;
    color: #0F5E4A !important;
    border: none !important;
    font-weight: 900 !important;
    padding: 8px 18px !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 14px rgba(212, 160, 23, 0.4) !important;
    transition: all 0.2s ease !important;
}

.story-overlay-modal.ocop-theme .story-btn-skip:hover {
    background: #FFD96A !important;
    transform: scale(1.04);
}

/* Progress Counter Pill Bar */
.ocop-progress-counter-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #0F5E4A;
    border: 1.5px solid #D4A017;
    padding: 6px 14px;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(15, 94, 74, 0.3);
}

.ocop-progress-counter-badge .counter-label {
    font-size: 0.72rem;
    font-weight: 800;
    color: #D6EED8;
    letter-spacing: 1px;
}

.ocop-progress-counter-badge .counter-val {
    font-size: 0.95rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 900;
}

/* 3. Left Sidebar Timeline List & Controls */
.story-overlay-modal.ocop-theme .story-timeline-sidebar {
    position: absolute;
    top: 90px;
    left: 24px;
    bottom: 30px;
    width: 320px;
    z-index: 99990;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(20px);
    border: 1.5px solid #E6D8A8;
    border-radius: 24px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.12);
    display: flex;
    flex-direction: column;
    padding: 16px;
    color: #173B32;
    overflow: hidden;
}

.ocop-sidebar-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin-bottom: 12px;
    background: #F7F4EC;
    padding: 8px;
    border-radius: 16px;
    border: 1px solid #E6D8A8;
}

.ocop-ctrl-btn {
    background: linear-gradient(135deg, #0F5E4A, #197A5C);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 6px 10px;
    font-weight: 800;
    font-size: 0.78rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
}

.ocop-ctrl-btn:hover {
    background: #23856A;
    transform: scale(1.04);
}

.story-overlay-modal.ocop-theme .story-timeline-list {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-right: 4px;
}

.ocop-timeline-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid #E6D8A8;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ocop-timeline-item:hover {
    background: #F7F4EC;
    transform: translateX(4px);
    border-color: #D4A017;
}

.ocop-timeline-item.active {
    background: linear-gradient(135deg, #0F5E4A 0%, #197A5C 100%) !important;
    color: #ffffff !important;
    border-color: #D4A017 !important;
    box-shadow: 0 4px 14px rgba(15, 94, 74, 0.3);
}

.ocop-timeline-item .item-num {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #D4A017;
    color: #ffffff;
    font-weight: 900;
    font-size: 0.78rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ocop-timeline-item.active .item-num {
    background: #ffffff;
    color: #0F5E4A;
}

.ocop-timeline-item .item-info {
    flex: 1;
    min-width: 0;
}

.ocop-timeline-item .item-name {
    font-size: 0.84rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ocop-timeline-item .item-sub {
    font-size: 0.72rem;
    color: #64748b;
}

.ocop-timeline-item.active .item-sub {
    color: #D6EED8;
}

/* 4. Hero Focus Marker (Forest Green Pin + Gold Glow & Halo) */
.ocop-hero-marker-wrap {
    position: relative;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ocop-marker-halo {
    position: absolute;
    inset: -12px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 231, 164, 0.9) 0%, rgba(212, 160, 23, 0.45) 50%, transparent 75%);
    animation: haloPulse 2s ease-in-out infinite alternate;
}

@keyframes haloPulse {
    0% {
        transform: scale(0.9);
        opacity: 0.6;
    }

    100% {
        transform: scale(1.35);
        opacity: 1;
    }
}

.ocop-marker-ripple {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid #D4A017;
    animation: rippleExpand 1.8s ease-out infinite;
}

@keyframes rippleExpand {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(2.3);
        opacity: 0;
    }
}

.ocop-marker-card {
    position: relative;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    border: 3px solid #D4A017;
    box-shadow: 0 0 25px rgba(212, 160, 23, 0.8), 0 10px 25px rgba(15, 94, 74, 0.4);
    overflow: hidden;
    background: #0F5E4A;
    z-index: 10;
    animation: markerPulseLoop 2.5s ease-in-out infinite;
}

@keyframes markerPulseLoop {
    0% {
        transform: scale(1);
    }

    25% {
        transform: scale(1.35);
    }

    50% {
        transform: scale(1.15);
    }

    75% {
        transform: scale(1.30);
    }

    100% {
        transform: scale(1);
    }
}

.ocop-marker-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ocop-marker-badge {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: #D4A017;
    color: #ffffff;
    font-size: 8px;
    font-weight: 900;
    text-align: center;
    padding: 2px 0;
}

/* 5. "ĐA" Outline Nodes & Permanent Pins */
.ocop-da-outline-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(212, 160, 23, 0.4);
    border: 1.5px solid #D4A017;
    box-shadow: 0 0 8px rgba(212, 160, 23, 0.4);
    transition: all 0.4s ease;
}

.ocop-da-pin-node {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #2E7D32;
    color: #ffffff;
    font-weight: 900;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ffffff;
    box-shadow: 0 0 15px rgba(212, 160, 23, 0.6), 0 4px 12px rgba(0, 0, 0, 0.25);
    animation: pinPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transition: all 0.3s ease;
}

@keyframes pinPop {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.ocop-da-pin-node.led-domino-active {
    background: #D4A017 !important;
    animation: ledDominoPulse 0.9s ease-in-out infinite alternate;
    z-index: 99999 !important;
}

@keyframes ledDominoPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 12px #D4A017, 0 0 25px #0F5E4A;
        border-color: #ffffff;
    }

    100% {
        transform: scale(1.5);
        background: linear-gradient(135deg, #F0C24B, #D4A017);
        box-shadow: 0 0 35px #D4A017, 0 0 70px #F0C24B, 0 0 90px #0F5E4A;
        border-color: #ffffff;
    }
}

/* 6. Glassmorphism Card (Pure White Glass, Border Gold #E6D8A8) */
.story-overlay-modal.ocop-theme .story-glass-card.ocop-cinematic-card {
    background: rgba(255, 255, 255, 0.96) !important;
    border: 2px solid #E6D8A8 !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.14) !important;
    backdrop-filter: blur(18px) !important;
    border-radius: 24px !important;
    color: #173B32 !important;
    padding: 18px 20px !important;
    width: 380px !important;
    max-width: 90vw !important;
    max-height: calc(100vh - 120px) !important;
    display: flex !important;
    flex-direction: column !important;
    overflow-y: auto !important;
    scroll-behavior: smooth !important;
}

/* Custom Scrollbar for Card */
.story-overlay-modal.ocop-theme .story-glass-card.ocop-cinematic-card::-webkit-scrollbar {
    width: 5px;
}

.story-overlay-modal.ocop-theme .story-glass-card.ocop-cinematic-card::-webkit-scrollbar-thumb {
    background: #D4A017;
    border-radius: 4px;
}

/* Image container inside Card */
.ocop-card-img-frame {
    height: 180px !important;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 18px;
    position: relative;
    border: 2.5px solid #F4E3A1;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.ocop-card-img-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 6s linear;
}

/* Shine effect sweeping across product image */
.image-shine-overlay {
    position: absolute;
    top: -50%;
    left: -150%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 45%, rgba(255, 255, 255, 0.6) 50%, transparent 55%);
    animation: shineSweep 1.2s ease-in-out 0.3s 1;
    pointer-events: none;
}

@keyframes shineSweep {
    0% {
        left: -150%;
    }

    100% {
        left: 150%;
    }
}

/* Card Titles & Details */
.ocop-card-main-title {
    margin-top: 12px;
    font-size: 1.25rem;
    color: #0F5E4A !important;
    font-weight: 800;
    line-height: 1.3;
}

.ocop-card-badge-gold {
    background: #D4A017 !important;
    color: #ffffff !important;
    font-weight: 900 !important;
    font-size: 0.8rem !important;
    padding: 6px 14px !important;
    border-radius: 20px !important;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 4px 12px rgba(212, 160, 23, 0.3);
}

.ocop-card-producer-text {
    font-weight: 700;
    color: #0F5E4A !important;
    font-size: 0.92rem;
    line-height: 1.45;
    margin-top: 8px;
    display: flex;
    align-items: flex-start;
    gap: 6px;
    white-space: normal !important;
    word-break: break-word !important;
}

.ocop-card-address-text {
    font-size: 0.86rem;
    line-height: 1.4;
    color: #555555 !important;
    margin-top: 4px;
    display: flex;
    align-items: flex-start;
    gap: 6px;
    white-space: normal !important;
    word-break: break-word !important;
}

.ocop-card-price-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 16px;
    background: #F7F4EC;
    padding: 12px 16px;
    border-radius: 16px;
    border: 1.5px solid #E6D8A8;
}

.ocop-card-price-box .price-val {
    font-size: 1.35rem;
    color: #C96F00 !important;
    font-weight: 900;
}

.ocop-qr-frame {
    background: #ffffff;
    padding: 4px;
    border-radius: 10px;
    border: 1.5px solid #E6D8A8;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.ocop-card-desc-box {
    font-size: 0.88rem;
    line-height: 1.65;
    color: #334155 !important;
    margin-top: 14px;
    max-height: 110px;
    overflow-y: auto;
    background: rgba(247, 244, 236, 0.6);
    padding: 12px;
    border-radius: 12px;
    border-left: 4px solid #0F5E4A;
}

.ocop-card-btn-action {
    margin-top: 18px;
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #0F5E4A 0%, #197A5C 100%) !important;
    color: #ffffff !important;
    border: none !important;
    padding: 12px 20px !important;
    border-radius: 14px !important;
    font-weight: 800 !important;
    font-size: 0.95rem !important;
    cursor: pointer !important;
    box-shadow: 0 6px 20px rgba(15, 94, 74, 0.3) !important;
    transition: all 0.2s ease !important;
}

.ocop-card-btn-action:hover {
    background: #23856A !important;
    transform: scale(1.02);
}

/* 7. Slogan Chain & Finale Stats Overlay Screen */
.ocop-slogan-overlay-screen {
    position: absolute;
    inset: 0;
    z-index: 999999;
    background: rgba(15, 94, 74, 0.94);
    backdrop-filter: blur(16px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 30px;
    transition: opacity 0.6s ease;
}

.ocop-slogan-text-display {
    position: absolute;
    top: 25px;
    left: calc(50% + 140px);
    transform: translateX(-50%);
    background: linear-gradient(135deg, rgba(15, 94, 74, 0.96) 0%, rgba(23, 59, 50, 0.98) 100%);
    backdrop-filter: blur(20px);
    border: 2px solid #F0C24B;
    border-radius: 36px;
    padding: 10px 28px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.55), 0 0 30px rgba(212, 160, 23, 0.65);
    color: #FFFFFF !important;
    font-size: clamp(1.0rem, 2.2vw, 1.4rem) !important;
    font-weight: 900 !important;
    line-height: 1.25 !important;
    letter-spacing: 0.6px !important;
    text-align: center !important;
    max-width: 540px;
    width: auto;
    z-index: 999999;
    pointer-events: none;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.ocop-finale-stats-card {
    background: #F7F4EC;
    border: 2px solid #E6D8A8;
    border-radius: 32px;
    padding: 42px 36px;
    max-width: 680px;
    width: 92%;
    color: #173B32;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25), 0 0 45px rgba(212, 160, 23, 0.35);
}

.ocop-finale-stats-card .ocop-finale-title {
    color: #0F5E4A !important;
    font-size: clamp(1.8rem, 4vw, 2.3rem);
    font-weight: 900;
    line-height: 1.25;
}

.ocop-stats-row {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 24px;
}

.stat-pill {
    flex: 1;
    background: #ffffff;
    border: 1.5px solid #E6D8A8;
    padding: 18px 12px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.stat-pill .num {
    font-size: 2.3rem;
    font-weight: 900;
    color: #D4A017;
    line-height: 1;
}

.stat-pill .lbl {
    font-size: 0.85rem;
    color: #0F5E4A;
    margin-top: 6px;
    font-weight: 800;
}

/* 8. Apple Style Compact OCOP Card (Non-Overlapping Radial Galaxy) */
.ocop-domino-cards-container {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 999992;
}

.ocop-domino-card-badge {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(15, 94, 74, 0.94) 0%, rgba(23, 59, 50, 0.96) 100%);
    backdrop-filter: blur(14px);
    border: 1.8px solid #D4A017;
    border-radius: 22px;
    padding: 4px 12px 4px 4px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35), 0 0 15px rgba(212, 160, 23, 0.45);
    transform-origin: center center;
    white-space: nowrap;
    pointer-events: auto;
    will-change: transform, opacity;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ocop-domino-card-badge:hover {
    transform: scale(1.12) translateY(-3px) !important;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.5), 0 0 35px rgba(255, 213, 79, 0.8) !important;
    z-index: 999999 !important;
}

.ocop-domino-card-badge .domino-thumb {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1.5px solid #FFD54F;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 0 8px rgba(255, 213, 79, 0.7);
}

.ocop-domino-card-badge .domino-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ocop-domino-card-badge .domino-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.ocop-domino-card-badge .domino-title {
    font-size: 0.76rem;
    font-weight: 800;
    color: #FFFFFF;
    letter-spacing: 0.2px;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

.ocop-domino-card-badge .domino-star {
    font-size: 0.62rem;
    font-weight: 800;
    color: #FFD54F;
    margin-top: 0px;
}

/* 9. Holographic Ring Pulses for Markers & Constellation Glow */
.ocop-da-pin-node.holo-pulse-active {
    animation: holoPulseGlow 1.8s infinite alternate ease-in-out;
}

@keyframes holoPulseGlow {
    0% {
        box-shadow: 0 0 15px #FFD54F, 0 0 25px rgba(255, 213, 79, 0.6);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 35px #FFD54F, 0 0 55px rgba(255, 213, 79, 0.95);
        transform: scale(1.15);
    }
    100% {
        box-shadow: 0 0 20px #FFD54F, 0 0 30px rgba(255, 213, 79, 0.7);
        transform: scale(1.05);
    }
}

.ocop-firework-card-burst {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 14px;
    background: linear-gradient(135deg, rgba(15, 94, 74, 0.95) 0%, rgba(23, 59, 50, 0.96) 100%);
    backdrop-filter: blur(16px);
    border: 2.5px solid #F0C24B;
    border-radius: 60px;
    padding: 10px 24px 10px 10px;
    box-shadow: 
        0 15px 45px rgba(0, 0, 0, 0.5),
        0 0 35px rgba(212, 160, 23, 0.8),
        inset 0 1px 1px rgba(255, 255, 255, 0.4);
    pointer-events: none;
    transform-origin: center center;
    white-space: nowrap;
    overflow: hidden;
}

/* Shimmer Light Sweep Effect */
.ocop-firework-card-burst::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 50%;
    height: 200%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transform: rotate(25deg);
    animation: shimmerSweep 2.2s infinite ease-in-out;
}

@keyframes shimmerSweep {
    0% { left: -60%; }
    100% { left: 160%; }
}

.ocop-firework-card-burst .burst-thumb-wrap {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 2.5px solid #FFD700;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 0 18px rgba(255, 215, 0, 0.95), 0 0 30px rgba(212, 160, 23, 0.6);
    position: relative;
    z-index: 2;
}

.ocop-firework-card-burst .burst-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ocop-firework-card-burst .burst-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    z-index: 2;
}

.ocop-firework-card-burst .burst-title {
    font-size: 1.02rem;
    font-weight: 900;
    color: #FFFFFF;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.ocop-firework-card-burst .burst-star {
    font-size: 0.8rem;
    font-weight: 800;
    color: #FFD700;
    letter-spacing: 0.8px;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
    margin-top: 2px;
}

/* Pin Explosion Shockwave Ring */
.ocop-da-pin-node.shockwave-burst {
    animation: pinShockwave 1.2s ease-out forwards;
}

@keyframes pinShockwave {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.9), 0 0 20px #FFD700;
        transform: scale(1.3);
    }
    50% {
        box-shadow: 0 0 0 25px rgba(255, 215, 0, 0.4), 0 0 40px #FFD700;
        transform: scale(1.5);
    }
    100% {
        box-shadow: 0 0 0 50px rgba(255, 215, 0, 0), 0 0 10px #D4A017;
        transform: scale(1);
    }
}

.ocop-btn-gold {
    background: linear-gradient(135deg, #0F5E4A, #197A5C) !important;
    color: #ffffff !important;
    border: none;
    padding: 12px 24px;
    border-radius: 14px;
    font-weight: 800;
    font-size: 0.95rem;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(15, 94, 74, 0.3);
    transition: all 0.2s;
}

.ocop-btn-gold:hover {
    background: #23856A !important;
    transform: scale(1.04);
}

.ocop-btn-outline {
    background: transparent;
    color: #0F5E4A !important;
    border: 2px solid #0F5E4A;
    padding: 12px 24px;
    border-radius: 14px;
    font-weight: 800;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
}

.ocop-btn-outline:hover {
    background: rgba(15, 94, 74, 0.1);
}

/* Image Pin LED Domino glowing animations without breaking background-image */
.ocop-da-pin-node.image-pin.led-domino-active,
.ocop-da-pin-node.image-pin.led-active {
    animation: ledImagePinPulse 0.9s ease-in-out infinite alternate !important;
    z-index: 99999 !important;
    border-color: #F0C24B !important;
}

@keyframes ledImagePinPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 12px #D4A017, 0 0 25px rgba(15, 94, 74, 0.6);
    }

    100% {
        transform: scale(1.4);
        box-shadow: 0 0 35px #D4A017, 0 0 70px #F0C24B, 0 0 90px rgba(15, 94, 74, 0.9);
    }
}

/* ==========================================================================
   MOBILE RESPONSIVE OVERRIDES FOR OCOP STORYTELLING MODAL (<768px)
   ========================================================================== */
@media screen and (max-width: 768px) {

    /* 1. Modal container full screen */
    .story-overlay-modal.ocop-theme {
        width: 100vw !important;
        height: 100vh !important;
        height: 100dvh !important;
        inset: 0 !important;
        overflow: hidden !important;
    }

    /* 1. Intro Screen Mobile Styling */
    .story-overlay-modal.ocop-theme .ocop-intro-tag {
        font-size: 0.68rem !important;
        padding: 5px 14px !important;
        letter-spacing: 1.5px !important;
    }

    .story-overlay-modal.ocop-theme .ocop-intro-main-title {
        font-size: clamp(1.4rem, 6.2vw, 2.2rem) !important;
        line-height: 1.3 !important;
        letter-spacing: 0.5px !important;
        padding: 0 8px !important;
    }

    .story-overlay-modal.ocop-theme .ocop-intro-main-title .phrase-block {
        display: block !important;
        margin: 2px 0 !important;
    }

    .story-overlay-modal.ocop-theme .desktop-br {
        display: none !important;
    }

    .story-overlay-modal.ocop-theme .ocop-intro-sub-title {
        font-size: 0.95rem !important;
        padding: 0 16px !important;
        line-height: 1.4 !important;
    }

    /* 2. Top bar alignment */
    .story-overlay-modal.ocop-theme .ocop-slogan-text-display {
        top: 110px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: 88vw !important;
        max-width: 320px !important;
        padding: 8px 16px !important;
        border-radius: 24px !important;
        z-index: 999999 !important;
    }

    .story-overlay-modal.ocop-theme .story-top-bar {
        top: 6px !important;
        left: 6px !important;
        right: 6px !important;
        padding: 6px 10px !important;
        border-radius: 16px !important;
        background: #0B4637 !important;
        /* Premium Forest Green dark background */
        border: 1.5px solid #E6D8A8 !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4) !important;
        z-index: 99995 !important;
    }

    .story-overlay-modal.ocop-theme .story-header-branding {
        gap: 6px !important;
        padding: 0 !important;
    }

    .story-overlay-modal.ocop-theme .story-header-logo {
        width: 28px !important;
        height: 28px !important;
        font-size: 0.95rem !important;
    }

    .story-overlay-modal.ocop-theme .story-header-text h1 {
        font-size: 0.72rem !important;
        max-width: 150px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .story-overlay-modal.ocop-theme .story-header-text p,
    .story-overlay-modal.ocop-theme #storyPhaseLabel {
        font-size: 0.58rem !important;
        max-width: 140px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .story-overlay-modal.ocop-theme .story-btn-skip {
        padding: 5px 10px !important;
        font-size: 0.65rem !important;
        border-radius: 10px !important;
        background: linear-gradient(135deg, #D4A017 0%, #C96F00 100%) !important;
    }

    /* 3. Transform Left Sidebar to Horizontal Scrollable Strip under Top Bar */
    .story-overlay-modal.ocop-theme .story-timeline-sidebar {
        position: absolute !important;
        top: 56px !important;
        left: 6px !important;
        right: 6px !important;
        width: auto !important;
        height: 48px !important;
        max-height: 48px !important;
        bottom: auto !important;
        padding: 4px 6px !important;
        border-radius: 12px !important;
        background: rgba(255, 255, 255, 0.95) !important;
        border: 1px solid #E6D8A8 !important;
        z-index: 99990 !important;
        display: flex !important;
        flex-direction: row !important;
    }

    .story-overlay-modal.ocop-theme .ocop-sidebar-controls {
        display: none !important;
        /* Hide controls inside sidebar, use top controls if any, or next/prev */
    }

    .story-overlay-modal.ocop-theme .story-timeline-sidebar div[style*="text-transform: uppercase"] {
        display: none !important;
        /* Hide title 'Danh sách sản phẩm' */
    }

    .story-overlay-modal.ocop-theme .story-timeline-list {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 6px !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        white-space: nowrap !important;
        width: 100% !important;
        height: 100% !important;
        padding: 0 !important;
        scrollbar-width: none !important;
    }

    .story-overlay-modal.ocop-theme .story-timeline-list::-webkit-scrollbar {
        display: none !important;
    }

    .story-overlay-modal.ocop-theme .ocop-timeline-item {
        flex-shrink: 0 !important;
        padding: 4px 8px !important;
        border-radius: 12px !important;
        margin: 0 !important;
        background: #F7F4EC !important;
        border: 1px solid #E6D8A8 !important;
        height: auto !important;
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
    }

    .story-overlay-modal.ocop-theme .ocop-timeline-item.active {
        background: #0F5E4A !important;
        border-color: #0F5E4A !important;
        color: #ffffff !important;
    }

    .story-overlay-modal.ocop-theme .ocop-timeline-item.active .item-name,
    .story-overlay-modal.ocop-theme .ocop-timeline-item.active .item-num {
        color: #ffffff !important;
    }

    .story-overlay-modal.ocop-theme .ocop-timeline-item .item-num {
        width: 18px !important;
        height: 18px !important;
        font-size: 0.65rem !important;
        margin: 0 !important;
        background: rgba(15, 94, 74, 0.1) !important;
        color: #0F5E4A !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 50% !important;
    }

    .story-overlay-modal.ocop-theme .ocop-timeline-item.active .item-num {
        background: rgba(255, 255, 255, 0.2) !important;
    }

    .story-overlay-modal.ocop-theme .ocop-timeline-item .item-info {
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important;
    }

    .story-overlay-modal.ocop-theme .ocop-timeline-item .item-name {
        font-size: 0.68rem !important;
        font-weight: 700 !important;
        color: #173B32 !important;
        max-width: 110px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .story-overlay-modal.ocop-theme .ocop-timeline-item .item-sub {
        display: none !important;
        /* Hide sub labels to save screen real estate */
    }

    /* 4. Transform Slide-in Card to Bottom Sheet */
    .story-overlay-modal.ocop-theme .story-card-container {
        position: absolute !important;
        left: 8px !important;
        right: 8px !important;
        bottom: 8px !important;
        top: auto !important;
        width: auto !important;
        height: auto !important;
        z-index: 99990 !important;
    }

    .story-overlay-modal.ocop-theme .story-glass-card.ocop-cinematic-card {
        display: grid !important;
        grid-template-columns: 100px 1fr !important;
        gap: 6px 10px !important;
        width: 100% !important;
        max-width: 100% !important;
        max-height: 52vh !important;
        margin: 0 !important;
        padding: 12px !important;
        border-radius: 18px !important;
        box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.15) !important;
        overflow-y: auto !important;
    }

    .story-overlay-modal.ocop-theme .ocop-card-img-frame {
        grid-column: 1 / 2 !important;
        grid-row: 1 / 4 !important;
        width: 100px !important;
        height: 100px !important;
        border-radius: 12px !important;
        border-width: 1.5px !important;
        margin: 0 !important;
        position: relative !important;
    }

    .story-overlay-modal.ocop-theme .ocop-card-badge-gold {
        top: 6px !important;
        left: 6px !important;
        font-size: 0.52rem !important;
        padding: 2px 4px !important;
    }

    .story-overlay-modal.ocop-theme .ocop-card-main-title {
        grid-column: 2 / 3 !important;
        grid-row: 1 / 2 !important;
        font-size: 0.88rem !important;
        font-weight: 800 !important;
        margin: 0 !important;
        line-height: 1.25 !important;
        color: #0F5E4A !important;
    }

    .story-overlay-modal.ocop-theme .ocop-card-producer-text {
        grid-column: 2 / 3 !important;
        grid-row: 2 / 3 !important;
        font-size: 0.72rem !important;
        line-height: 1.35 !important;
        margin: 0 !important;
        color: #173B32 !important;
        white-space: normal !important;
        word-break: break-word !important;
        overflow: visible !important;
    }

    .story-overlay-modal.ocop-theme .ocop-card-address-text {
        grid-column: 2 / 3 !important;
        grid-row: 3 / 4 !important;
        font-size: 0.70rem !important;
        line-height: 1.3 !important;
        margin: 0 !important;
        color: #555555 !important;
        white-space: normal !important;
        word-break: break-word !important;
        overflow: visible !important;
    }

    .story-overlay-modal.ocop-theme .ocop-card-price-box {
        grid-column: 1 / 3 !important;
        grid-row: 4 / 5 !important;
        margin: 4px 0 !important;
        padding: 6px 10px !important;
        border-radius: 10px !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        background: #F7F4EC !important;
        border: 1px solid #E6D8A8 !important;
    }

    .story-overlay-modal.ocop-theme .ocop-card-price-box .price-val {
        font-size: 0.95rem !important;
    }

    .story-overlay-modal.ocop-theme .ocop-qr-frame {
        display: none !important;
    }

    .story-overlay-modal.ocop-theme .ocop-card-desc-box {
        grid-column: 1 / 3 !important;
        grid-row: 5 / 6 !important;
        font-size: 0.68rem !important;
        padding: 6px 8px !important;
        margin: 0 !important;
        max-height: 70px !important;
        overflow-y: auto !important;
        border-radius: 8px !important;
        background: #F7F4EC !important;
        border: 1px solid rgba(15, 94, 74, 0.1) !important;
    }

    .story-overlay-modal.ocop-theme .ocop-card-btn-action {
        grid-column: 1 / 3 !important;
        grid-row: 6 / 7 !important;
        margin: 4px 0 0 0 !important;
        padding: 8px !important;
        font-size: 0.72rem !important;
        border-radius: 10px !important;
        width: 100% !important;
    }

    /* 5. Memory Flashback Responsive Scaling */
    .story-overlay-modal.ocop-theme .ocop-flashback-container {
        transform: scale(0.75) !important;
    }

    .story-overlay-modal.ocop-theme .flashback-frame {
        width: 180px !important;
        height: 180px !important;
    }

    .story-overlay-modal.ocop-theme #ocopFlashbackTitle {
        font-size: 1.1rem !important;
        max-width: 260px !important;
    }

    /* 6. Finale Stats Card Responsive Styling */
    .story-overlay-modal.ocop-theme .ocop-finale-stats-card {
        padding: 16px 20px !important;
        width: 90% !important;
        max-width: 320px !important;
        max-height: 80vh !important;
        overflow-y: auto !important;
    }

    .story-overlay-modal.ocop-theme .ocop-finale-title {
        font-size: 1.2rem !important;
    }

    .story-overlay-modal.ocop-theme .ocop-stats-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
        margin: 12px 0 !important;
    }

    .story-overlay-modal.ocop-theme .ocop-stat-number {
        font-size: 1.3rem !important;
    }

    .story-overlay-modal.ocop-theme .ocop-stat-label {
        font-size: 0.58rem !important;
    }

    .story-overlay-modal.ocop-theme .ocop-btn-group {
        flex-direction: column !important;
        gap: 6px !important;
    }

    .story-overlay-modal.ocop-theme .ocop-btn-primary,
    .story-overlay-modal.ocop-theme .ocop-btn-outline {
        padding: 8px 16px !important;
        font-size: 0.78rem !important;
        width: 100% !important;
        text-align: center !important;
    }
}