/* Enhanced Voting Interface Styles - Based on old template + modern optimizations */

/* Swiper CSS Reset - Prevent theme conflicts */
.performance-photos {
    --swiper-theme-color: #007aff;
    --swiper-navigation-size: 24px;
}

.performance-photos * {
    box-sizing: border-box;
}

.performance-photos .swiper {
    margin-left: auto !important;
    margin-right: auto !important;
    position: relative !important;
    overflow: hidden !important;
    list-style: none !important;
    padding: 0 !important;
    z-index: 1 !important;
}

.performance-photos .swiper-wrapper {
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 1 !important;
    display: flex !important;
    transition-property: transform !important;
    box-sizing: content-box !important;
}

.performance-photos .swiper-slide {
    flex-shrink: 0 !important;
    width: 100% !important;
    height: 100% !important;
    position: relative !important;
    transition-property: transform !important;
    display: block !important;
}

/* Advanced Photo Gallery Modal Styles */
.photo-gallery-modal {
    z-index: 10000;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(5px);
}

.gallery-modal-content {
    width: 95vw;
    height: 95vh;
    max-width: none;
    max-height: none;
    background: #1a1a1a;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.photo-gallery-modal.fullscreen .gallery-modal-content {
    width: 100vw;
    height: 100vh;
    border-radius: 0;
}

/* Gallery Header */
.gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #2a2a2a;
    border-bottom: 1px solid #333;
}

.gallery-title h3 {
    color: #fff;
    margin: 0;
    font-size: 1.2em;
    font-weight: 600;
}

.photo-counter {
    color: #ccc;
    font-size: 0.9em;
    margin-top: 5px;
}

.gallery-controls {
    display: flex;
    gap: 10px;
    align-items: center;
}

.gallery-btn {
    background: transparent;
    border: 1px solid #555;
    color: #fff;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-btn:hover {
    background: #444;
    border-color: #777;
}

.gallery-close {
    font-size: 24px;
    font-weight: bold;
    padding: 5px 12px;
}

/* Gallery Main Area */
.gallery-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: #111;
}

.gallery-image-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    height: 100%;
    overflow: hidden;
}

.gallery-main-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: all 0.3s ease;
    transform-origin: center;
    cursor: grab;
}

.gallery-main-img:active {
    cursor: grabbing;
}

.gallery-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #333;
    border-top: 3px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Gallery Navigation */
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    border: none;
    color: #fff;
    padding: 15px;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 10;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-nav:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translateY(-50%) scale(1.1);
}

.gallery-prev {
    left: 20px;
}

.gallery-next {
    right: 20px;
}

/* Gallery Thumbnails */
.gallery-thumbnails {
    background: #2a2a2a;
    padding: 15px;
    border-top: 1px solid #333;
}

.thumbnails-container {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 5px 0;
    scrollbar-width: thin;
    scrollbar-color: #555 #2a2a2a;
}

.thumbnails-container::-webkit-scrollbar {
    height: 6px;
}

.thumbnails-container::-webkit-scrollbar-track {
    background: #2a2a2a;
}

.thumbnails-container::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 3px;
}

.gallery-thumbnail {
    flex: 0 0 80px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.gallery-thumbnail:hover {
    border-color: #666;
    transform: scale(1.05);
}

.gallery-thumbnail.active {
    border-color: #007cba;
    box-shadow: 0 0 10px rgba(0, 124, 186, 0.5);
}

.gallery-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Gallery Zoom Controls */
.gallery-zoom-controls {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 8px;
    align-items: center;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px;
    border-radius: 20px;
    backdrop-filter: blur(5px);
}

.zoom-level {
    color: #fff;
    font-size: 0.9em;
    min-width: 40px;
    text-align: center;
}

/* Photo Gallery Trigger Styles */
.photo-gallery-trigger {
    transition: all 0.3s ease;
}

.photo-gallery-trigger:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .gallery-modal-content {
        width: 100vw;
        height: 100vh;
        border-radius: 0;
    }

    .gallery-header {
        padding: 10px 15px;
    }

    .gallery-title h3 {
        font-size: 1.1em;
    }

    .gallery-nav {
        width: 40px;
        height: 40px;
        padding: 10px;
    }

    .gallery-prev {
        left: 10px;
    }

    .gallery-next {
        right: 10px;
    }

    .gallery-zoom-controls {
        bottom: 100px;
        right: 10px;
        scale: 0.9;
    }

    .gallery-thumbnails {
        padding: 10px;
    }

    .gallery-thumbnail {
        flex: 0 0 60px;
        height: 45px;
    }
}

/* Loading and Error States */
.bdd-loading, .bdd-error, .bdd-no-performances {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-size: 1.1em;
}

.bdd-error {
    color: #e74c3c;
    background: #fff5f5;
    border: 1px solid #fecaca;
    border-radius: 8px;
    margin: 20px 0;
}

.bdd-no-performances {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin: 20px 0;
}
.bdd-voting-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Enhanced Voting Header */
.bdd-voting-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 30px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.voting-title {
    margin: 0 0 15px 0;
    font-size: 2.2em;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.voting-description p {
    font-size: 1.1em;
    opacity: 0.9;
    margin: 0;
    line-height: 1.6;
}

.voting-status {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255,255,255,0.2);
    border-radius: 20px;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ade80;
    animation: pulse 2s infinite;
}

.status-scheduled .status-dot { background: #fbbf24; }
.status-ended .status-dot { background: #ef4444; }

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Enhanced Category Badges */
.bdd-voting-categories {
    margin-bottom: 30px;
    text-align: center;
}

.category-filter-title {
    margin: 0 0 15px 0;
    color: #1f2937;
    font-size: 1.1em;
    font-weight: 600;
}

.category-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.category-badge {
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    background: #f3f4f6;
    color: #6b7280;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.category-badge:hover {
    background: #e5e7eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.category-badge.active {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    border-color: #6366f1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

/* Enhanced Performance Cards */
.bdd-performances-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.performance-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
    will-change: transform;
}

.performance-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

/* Enhanced Swiper Carousel - Fixed Styles */
.performance-photos-section {
    margin: 20px 0;
}

.photos-title {
    margin: 0 0 15px 0;
    color: #1f2937;
    font-size: 1.1em;
    font-weight: 600;
}

.performance-photos {
    width: 100%;
    height: 300px;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    background: #f8f9fa;
}

/* Swiper Core Structure */
.performance-photos .swiper {
    width: 100% !important;
    height: 100% !important;
    position: relative !important;
}

.performance-photos .swiper-wrapper {
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 1 !important;
    display: flex !important;
    transition-property: transform !important;
    box-sizing: content-box !important;
}

.performance-photos .swiper-slide {
    flex-shrink: 0 !important;
    width: 100% !important;
    height: 100% !important;
    position: relative !important;
    transition-property: transform !important;
    display: block !important;
}

.performance-photos .swiper-slide img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    border: none !important;
    outline: none !important;
}

/* Navigation Buttons - Force Visibility */
.performance-photos .swiper-button-next,
.performance-photos .swiper-button-prev {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 10 !important;
    color: white !important;
    background: rgba(0, 0, 0, 0.7) !important;
    border: none !important;
    border-radius: 50% !important;
    width: 45px !important;
    height: 45px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 18px !important;
    font-weight: bold !important;
    transition: all 0.3s ease !important;
    opacity: 0.8 !important;
}

.performance-photos .swiper-button-next {
    right: 10px !important;
}

.performance-photos .swiper-button-prev {
    left: 10px !important;
}

.performance-photos .swiper-button-next:hover,
.performance-photos .swiper-button-prev:hover {
    background: rgba(0, 0, 0, 0.9) !important;
    opacity: 1 !important;
    transform: translateY(-50%) scale(1.1) !important;
}

.performance-photos .swiper-button-next:after {
    content: '›' !important;
    font-size: 24px !important;
    line-height: 1 !important;
}

.performance-photos .swiper-button-prev:after {
    content: '‹' !important;
    font-size: 24px !important;
    line-height: 1 !important;
}

/* Pagination - Hidden for cleaner layout */
.performance-photos .swiper-pagination {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

/* Pagination bullets styles (hidden)
.performance-photos .swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.6) !important;
    border: 2px solid rgba(255, 255, 255, 0.9) !important;
    opacity: 1 !important;
    width: 14px !important;
    height: 14px !important;
    margin: 0 6px !important;
    transition: all 0.3s ease !important;
    display: inline-block !important;
    border-radius: 50% !important;
    cursor: pointer !important;
}

.performance-photos .swiper-pagination-bullet:hover {
    background: rgba(255, 255, 255, 0.8) !important;
    transform: scale(1.1) !important;
}

.performance-photos .swiper-pagination-bullet-active {
    background: white !important;
    transform: scale(1.3) !important;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5) !important;
*/
}

/* Single Image Fallback */
.performance-single-image {
    width: 100%;
    height: 300px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    background: #f8f9fa;
}

.performance-single-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Performance Photos Grid for AJAX loaded content */
.performance-photos-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.performance-photos-grid img {
    width: 100px !important;
    height: 80px !important;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.performance-photos-grid img:hover {
    transform: scale(1.05);
    border-color: #007cba;
    box-shadow: 0 4px 12px rgba(0, 124, 186, 0.3);
}

/* Fallback Carousel - Force simple display when Swiper fails */
.performance-photos.fallback-carousel .swiper-slide {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    opacity: 0 !important;
    transition: opacity 0.3s ease !important;
    display: none !important;
}

.performance-photos.fallback-carousel .swiper-slide:first-child,
.performance-photos.fallback-carousel .swiper-slide.active {
    opacity: 1 !important;
    display: block !important;
}

/* Force single image display if multiple are visible */
.performance-photos .swiper-wrapper {
    position: relative !important;
    overflow: hidden !important;
}

/* 🚫 REMOVED: Conflicting transform rule that was hiding non-active slides
   This was interfering with Swiper's internal positioning system */

/* Ensure carousel container visibility */
.performance-photos {
    min-height: 300px !important;
    background: #f8f9fa !important;
}

.performance-photos .swiper-slide img {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Ensure buttons are always visible */
.performance-photos .swiper-button-next,
.performance-photos .swiper-button-prev {
    display: flex !important;
    visibility: visible !important;
    opacity: 0.8 !important;
}

/* Note: Pagination hidden via main rule above */

/* Force visibility for fallback carousel */
.fallback-carousel .swiper-button-next,
.fallback-carousel .swiper-button-prev {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    background: rgba(0, 0, 0, 0.8) !important;
}

.fallback-carousel .swiper-pagination {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

.swiper-button-next,
.swiper-button-prev {
    color: rgba(255,255,255,0.8) !important;
    background: rgba(0,0,0,0.3) !important;
    width: 35px !important;
    height: 35px !important;
    border-radius: 50% !important;
    margin-top: -17.5px !important;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: rgba(0,0,0,0.5) !important;
    color: white !important;
}

/* Enhanced Performance Info */
.performance-info {
    padding: 25px;
}

/* Performance History */
.performance-history {
    margin: 15px 0;
    padding: 15px;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 4px solid #6366f1;
}

/* FAANG-Level History Content with Truncation */
.history-content {
    color: #374151;
    line-height: 1.6;
    font-size: 0.95em;
    max-height: 120px; /* ~4 lines of text */
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
}

.history-content.truncated {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.history-content.truncated::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 60px;
    height: 1.2em;
    background: linear-gradient(to right, transparent, #f8fafc 70%);
    pointer-events: none;
}

/* FAANG-Level "Saiba Mais" Button */
.saiba-mais-btn {
    background: none;
    border: none;
    color: #6366f1;
    font-weight: 600;
    font-size: 0.9em;
    cursor: pointer;
    padding: 4px 0;
    margin-top: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.saiba-mais-btn:hover {
    color: #4f46e5;
    transform: translateX(2px);
}

.saiba-mais-btn::after {
    content: '→';
    font-size: 0.8em;
    transition: transform 0.2s ease;
}

.saiba-mais-btn:hover::after {
    transform: translateX(2px);
}

/* FAANG-Level History Modal */
.history-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    animation: modal-fade-in 0.3s ease-out;
}

.history-modal-content {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    position: relative;
    animation: modal-slide-up 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modal-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes modal-slide-up {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.history-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 25px 0;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 0;
}

.history-modal-title {
    margin: 0;
    color: #1f2937;
    font-size: 1.4em;
    font-weight: 700;
    flex: 1;
    padding-right: 20px;
}

.history-modal-close {
    background: #f3f4f6;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.history-modal-close:hover {
    background: #e5e7eb;
    color: #374151;
    transform: scale(1.05);
}

.history-modal-body {
    padding: 25px;
    overflow-y: auto;
    max-height: 60vh;
    line-height: 1.7;
    color: #374151;
    font-size: 1em;
}

.history-modal-body p {
    margin-bottom: 16px;
}

.history-modal-body p:last-child {
    margin-bottom: 0;
}

/* Responsive History Modal */
@media (max-width: 768px) {
    .history-modal-content {
        margin: 20px;
        width: calc(100% - 40px);
        max-height: 90vh;
    }

    .history-modal-header {
        padding: 20px 20px 0;
    }

    .history-modal-title {
        font-size: 1.2em;
    }

    .history-modal-body {
        padding: 20px;
        max-height: 70vh;
    }
}

/* Performance Page Link */
.performance-page-link {
    margin: 15px 0;
}

/* Performance Video Link */
.performance-video-link {
    margin: 15px 0;
}

/* Social Links Section */
.performance-social-links {
    margin: 15px 0;
}

.social-title {
    margin: 0 0 10px 0;
    font-size: 1em;
    font-weight: 600;
    color: #374151;
}

/* Photos Section */
.performance-photos-section {
    margin: 20px 0;
}

.photos-title {
    margin: 0 0 15px 0;
    font-size: 1em;
    font-weight: 600;
    color: #374151;
}

.performance-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.performance-title {
    margin: 0;
    font-size: 1.4em;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.3;
    flex: 1;
}

/* 🔥 NEW: Performance Badges Container */
.performance-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

/* 🔥 NEW: Category Badge */
.performance-category-badge {
    background: linear-gradient(135deg, #f3e8ff 0%, #e9d5ff 100%);
    color: #6b21a8;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8em;
    font-weight: 600;
    text-transform: capitalize;
    letter-spacing: 0.3px;
    white-space: nowrap;
    border: 1px solid rgba(139, 69, 19, 0.1);
}

.performance-type-badge {
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
    color: #3730a3;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.performance-excerpt {
    color: #6b7280;
    line-height: 1.6;
    margin: 0 0 12px 0;
}

.read-more-btn {
    background: none;
    border: none;
    color: #6366f1;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
    font-size: 0.9em;
}

.read-more-btn:hover {
    color: #4f46e5;
}

/* Performance Meta */
.performance-meta {
    margin: 15px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.meta-item {
    display: flex;
    gap: 8px;
    align-items: center;
}

.meta-label {
    font-weight: 600;
    color: #374151;
    font-size: 0.9em;
}

.meta-value {
    color: #6b7280;
    font-size: 0.9em;
}

/* Performance Links - deprecated, replaced by individual link sections */
.performance-links {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.performance-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #6366f1;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
    font-size: 0.9em;
}

.performance-link:hover {
    background: #6366f1;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.link-icon {
    font-size: 1.2em;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.social-link {
    padding: 6px 12px;
    background: #f3f4f6;
    color: #6b7280;
    text-decoration: none;
    border-radius: 15px;
    font-size: 0.8em;
    font-weight: 600;
    transition: all 0.2s ease;
    text-transform: uppercase;
}

.social-link:hover {
    background: #374151;
    color: white;
    transform: translateY(-1px);
}

/* Enhanced Voting Area */
.voting-area {
    padding: 25px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-top: 2px solid #e2e8f0;
    margin-top: 20px;
}

/* Star Voting */
.vote-stars {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 15px;
}

.vote-stars .star {
    font-size: 2.5em;
    background: none;
    border: none;
    color: #d1d5db;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 5px;
    border-radius: 50%;
}

.vote-stars .star:hover {
    color: #fbbf24;
    transform: scale(1.15);
    text-shadow: 0 2px 4px rgba(251, 191, 36, 0.3);
}

.vote-stars .star.selected {
    color: #fbbf24;
    transform: scale(1.1);
}

/* Numeric Voting */
.vote-numeric {
    text-align: center;
    margin-bottom: 15px;
}

.numeric-buttons {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.numeric-button {
    width: 45px;
    height: 45px;
    border: 2px solid #6366f1;
    background: white;
    color: #6366f1;
    border-radius: 50%;
    cursor: pointer;
    font-weight: 700;
    font-size: 1.1em;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.numeric-button:hover {
    background: #e0e7ff;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.numeric-button.selected {
    background: #6366f1;
    color: white;
    transform: scale(1.15);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

/* Like Voting */
.vote-like {
    text-align: center;
    margin-bottom: 15px;
}

.like-button {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.like-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.like-button.voted {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.like-icon {
    font-size: 1.3em;
}

/* Voting States */
.voting-interface.voted {
    opacity: 0.7;
    pointer-events: none;
    transition: all 0.3s ease;
}

.cannot-vote {
    text-align: center;
    padding: 20px;
    background: #fef2f2;
    border-radius: 8px;
    border-left: 4px solid #ef4444;
}

.vote-limitation {
    color: #dc2626;
    font-weight: 600;
    margin: 0;
}

.remaining-votes {
    text-align: center;
    margin-top: 10px;
    color: #6b7280;
}

/* Voting Results */
.voting-results {
    margin-top: 20px;
    text-align: center;
}

.results-stats {
    background: white;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.average-rating {
    font-size: 1.2em;
    margin-bottom: 8px;
    color: #374151;
}

.rating-value {
    font-weight: 700;
    color: #6366f1;
}

.rating-stars {
    margin-left: 8px;
    color: #fbbf24;
}

.votes-count {
    color: #6b7280;
    font-size: 0.9em;
}

.likes-count {
    font-size: 1.3em;
    font-weight: 700;
    color: #10b981;
}

.loading {
    color: #6b7280;
    font-style: italic;
    padding: 15px;
}

/* Enhanced Modals */
.bdd-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.modal-content {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 25px 0;
}

.modal-header h3 {
    margin: 0;
    color: #1f2937;
    font-size: 1.3em;
    font-weight: 700;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #9ca3af;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: #f3f4f6;
    color: #374151;
}

.modal-body {
    padding: 25px;
    overflow-y: auto;
    max-height: 60vh;
    line-height: 1.6;
}

/* CPF Form */
.cpf-form {
    display: flex;
    gap: 12px;
    margin: 20px 0;
}

.cpf-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1em;
    transition: border-color 0.2s ease;
}

.cpf-input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.button-primary {
    background: #6366f1;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.button-primary:hover:not(:disabled) {
    background: #4f46e5;
    transform: translateY(-1px);
}

.button-primary:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

.error-message {
    color: #dc2626;
    background: #fef2f2;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #fecaca;
    margin-top: 12px;
    font-size: 0.9em;
    display: none;
}

/* Enhanced Toast System */
#bdd-toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 20000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.bdd-toast {
    min-width: 320px;
    max-width: 420px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    animation: toastSlideIn 0.3s ease-out;
    pointer-events: auto;
    border-left: 4px solid;
}

.bdd-toast.success { border-left-color: #10b981; }
.bdd-toast.error { border-left-color: #ef4444; }
.bdd-toast.info { border-left-color: #6366f1; }

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateX(100%) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

.bdd-toast-content {
    flex: 1;
    margin-right: 15px;
    color: #374151;
    font-weight: 500;
    line-height: 1.4;
}

.bdd-toast-close {
    background: none;
    border: none;
    color: #9ca3af;
    font-size: 18px;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.bdd-toast-close:hover {
    background: #f3f4f6;
    color: #374151;
}

/* FAANG-Level Loading System */
.loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: currentColor;
    animation: spin 0.8s linear infinite;
    margin-right: 8px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* FAANG-Level Loading Skeleton System */
.results-loading {
    position: relative;
    min-height: 80px;
    overflow: hidden;
}

.loading-skeleton {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 15px;
    background: rgba(248, 250, 252, 0.8);
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.skeleton-line {
    background: linear-gradient(90deg,
        #f0f0f0 25%,
        #e0e0e0 50%,
        #f0f0f0 75%);
    background-size: 200% 100%;
    border-radius: 4px;
    animation: skeleton-shimmer 1.5s ease-in-out infinite;
}

.skeleton-title {
    height: 20px;
    width: 70%;
}

.skeleton-subtitle {
    height: 16px;
    width: 50%;
}

.skeleton-progress {
    height: 24px;
    width: 100%;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.skeleton-bar {
    height: 100%;
    width: 60%;
    background: linear-gradient(90deg,
        #e0e7ff 25%,
        #c7d2fe 50%,
        #e0e7ff 75%);
    background-size: 200% 100%;
    border-radius: 12px;
    animation: skeleton-shimmer 2s ease-in-out infinite;
}

@keyframes skeleton-shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* FAANG-Level Loading Indicator */
.loading-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin: 10px 0;
    position: relative;
    overflow: hidden;
}

.loading-indicator::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent,
        rgba(99, 102, 241, 0.1),
        transparent);
    animation: loading-sweep 2s ease-in-out infinite;
}

@keyframes loading-sweep {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.loading-indicator .loading-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid #e5e7eb;
    border-top-color: #6366f1;
    margin-right: 0;
}

.loading-indicator span {
    color: #6b7280;
    font-weight: 500;
    font-size: 0.95em;
}

/* FAANG-Level Results Enhancement */
.voting-results {
    margin-top: 20px;
    text-align: center;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.results-stats {
    background: white;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
    animation: results-fade-in 0.6s ease-out;
}

@keyframes results-fade-in {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* FAANG-Level Progress Bars for Star Ratings */
.average-rating {
    font-size: 1.2em;
    margin-bottom: 15px;
    color: #374151;
    position: relative;
}

.rating-display {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.rating-value-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.rating-value {
    font-weight: 700;
    color: #6366f1;
    font-size: 2em;
    line-height: 1;
    text-shadow: 0 2px 4px rgba(99, 102, 241, 0.2);
}

.rating-stars {
    margin-left: 8px;
    color: #fbbf24;
    font-size: 1.2em;
}

/* FAANG-Level Star Progress Bar */
.star-progress-container {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
}

.star-progress-bar {
    height: 12px;
    background: #f3f4f6;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06);
}

.star-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #fbbf24 0%, #f59e0b 100%);
    border-radius: 6px;
    transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.star-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 100%);
    animation: progress-shine 2s ease-in-out infinite;
}

@keyframes progress-shine {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* FAANG-Level Numeric Progress Bar */
.numeric-progress-container {
    width: 100%;
    max-width: 280px;
    margin: 15px auto;
}

.numeric-progress-bar {
    height: 16px;
    background: #f3f4f6;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06);
}

.numeric-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 8px;
    transition: width 1.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.numeric-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.4) 50%,
        transparent 100%);
    animation: progress-shine 2.5s ease-in-out infinite;
}

/* FAANG-Level Like Counter Animation */
.likes-count {
    font-size: 1.4em;
    font-weight: 700;
    color: #10b981;
    position: relative;
    display: inline-block;
}

.likes-count-animated {
    animation: likes-bounce 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes likes-bounce {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

.likes-icon {
    display: inline-block;
    margin-right: 8px;
    animation: likes-pulse 2s ease-in-out infinite;
}

@keyframes likes-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* FAANG-Level Vote Count Animation */
.votes-count {
    color: #6b7280;
    font-size: 0.9em;
    margin-top: 8px;
    position: relative;
}

.votes-count-updated {
    animation: votes-highlight 0.8s ease-out;
}

@keyframes votes-highlight {
    0% {
        background: rgba(99, 102, 241, 0.2);
        transform: scale(1.02);
    }
    100% {
        background: transparent;
        transform: scale(1);
    }
}

/* FAANG-Level Real-time Update Indicators */
.results-updated {
    animation: results-update-flash 0.6s ease-out;
}

@keyframes results-update-flash {
    0% {
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.6);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(99, 102, 241, 0.1);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0);
    }
}

/* FAANG-Level Auto-refresh Indicator */
.auto-refresh-indicator {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 20px;
    height: 20px;
    background: linear-gradient(45deg, #10b981, #059669);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.auto-refresh-indicator.active {
    opacity: 1;
    transform: scale(1);
    animation: auto-refresh-pulse 2s ease-in-out infinite;
}

.auto-refresh-indicator::after {
    content: '↻';
    color: white;
    font-size: 12px;
    font-weight: bold;
    animation: auto-refresh-spin 3s linear infinite;
}

@keyframes auto-refresh-pulse {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
    }
    50% {
        box-shadow: 0 4px 16px rgba(16, 185, 129, 0.5);
    }
}

@keyframes auto-refresh-spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* FAANG-Level Error States */
.results-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    animation: error-shake 0.5s ease-in-out;
}

@keyframes error-shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.retry-button {
    background: #dc2626;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.2s ease;
    font-size: 0.9em;
}

.retry-button:hover {
    background: #b91c1c;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

/* FAANG-Level Message States */
.results-message {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    color: #64748b;
    font-style: italic;
    position: relative;
    overflow: hidden;
}

.results-message::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg,
        transparent 0%,
        #6366f1 50%,
        transparent 100%);
    animation: message-progress 3s ease-in-out infinite;
}

@keyframes message-progress {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .bdd-performances-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .performance-header {
        flex-direction: column;
        align-items: flex-start;
    }

    /* 🔥 NEW: Responsive badges for mobile */
    .performance-badges {
        gap: 6px;
        margin-top: 8px;
    }

    .performance-category-badge,
    .performance-type-badge {
        font-size: 0.75em;
        padding: 4px 8px;
    }

    .voting-status {
        flex-direction: column;
        gap: 10px;
    }

    .category-badges {
        justify-content: center;
    }

    .category-badge {
        font-size: 0.9em;
        padding: 8px 16px;
    }

    .numeric-buttons {
        gap: 6px;
    }

    .numeric-button {
        width: 40px;
        height: 40px;
        font-size: 1em;
    }

    .vote-stars .star {
        font-size: 2em;
    }

    .modal-content {
        margin: 20px;
        width: calc(100% - 40px);
    }

    #bdd-toast-container {
        right: 15px;
        left: 15px;
    }

    .bdd-toast {
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .bdd-voting-container {
        padding: 15px;
    }

    .performance-info,
    .voting-area {
        padding: 20px;
    }

    .voting-title {
        font-size: 1.8em;
    }

    .cpf-form {
        flex-direction: column;
    }
}

/* Performance Optimizations */
.performance-card {
    contain: layout style;
}

.swiper-slide img {
    will-change: transform;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus states for accessibility */
.category-badge:focus,
.star:focus,
.numeric-button:focus,
.like-button:focus {
    outline: 2px solid #6366f1;
    outline-offset: 2px;
}

/* 🚀 FAANG-LEVEL: Progressive Image Loading & Skeleton States */

/* Image Container - Relative positioning for overlays */
.image-container {
    position: relative;
    width: 100%;
    height: 250px;
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
}

/* Skeleton Loader - FAANG-Level shimmer effect */
.image-skeleton {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite ease-in-out;
    border-radius: 8px;
    z-index: 1;
}

.skeleton-shimmer {
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.4) 50%,
        transparent 100%
    );
    background-size: 200% 100%;
    animation: shimmer-wave 1.5s infinite;
}

/* Progressive Image Loading - FIXED */
.performance-slide-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    border-radius: 8px;
    z-index: 2;
    will-change: opacity;
    transition: opacity 0.3s ease;
}

/* Ensure lazy loaded images are visible */
.performance-slide-image.swiper-lazy-loaded {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

/* 🚀 FORENSE: Nuclear-level image visibility forcing */
.performance-slide-image[src]:not([src=""]) {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    transform: none !important;
    position: relative !important;
    z-index: 10 !important;
}

/* Force visible class for production */
.performance-slide-image.force-visible {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    transform: none !important;
    position: relative !important;
    z-index: 100 !important;
}

/* 🔧 Override ANY possible theme interference */
.swiper-slide img {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    transform: none !important;
    position: relative !important;
    max-width: 100% !important;
    height: auto !important;
    z-index: 5 !important;
}

/* 🚨 Emergency visibility override for slides */
.swiper-slide {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    overflow: visible !important;
}

/* 🔧 Container overflow forcing */
.performance-photos .swiper {
    overflow: visible !important;
}

.performance-photos .swiper-wrapper {
    overflow: visible !important;
}

/* 🎯 Nuclear-level container forcing */
.performance-photos {
    overflow: visible !important;
    contain: none !important;
}

/* Error Fallback State */
.image-error .image-error-fallback {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #f8f9fa;
    border: 2px dashed #ddd;
    border-radius: 8px;
    z-index: 3;
}

.image-error .error-icon {
    font-size: 2rem;
    margin-bottom: 8px;
    opacity: 0.5;
}

.image-error .error-icon + small {
    color: #666;
    font-size: 0.8rem;
    text-align: center;
}

/* Loading Progress Indicator */
.loading-progress {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    backdrop-filter: blur(5px);
    z-index: 10;
}

.progress-bar {
    width: 100px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 4px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #007cba, #00a0d6);
    border-radius: 2px;
    width: 0%;
    transition: width 0.3s ease;
    animation: progress-pulse 2s infinite;
}

.progress-text {
    display: block;
    font-size: 0.75rem;
    text-align: center;
    opacity: 0.9;
}

/* 🎯 Enhanced Swiper States */
.performance-photos.loading {
    opacity: 0.7;
    pointer-events: none;
}

.performance-photos.loaded {
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* Preloading Indicator for Adjacent Slides */
.swiper-slide.preloading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid #007cba;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 5;
}

/* 🎨 FAANG-Level Animations */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

@keyframes shimmer-wave {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

@keyframes progress-pulse {
    0%, 100% {
        box-shadow: 0 0 5px rgba(0, 124, 186, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(0, 124, 186, 0.8);
    }
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* 📱 Responsive Optimizations */
@media (max-width: 768px) {
    .image-container {
        height: 200px;
    }

    .loading-progress {
        bottom: 5px;
        padding: 6px 12px;
    }

    .progress-bar {
        width: 80px;
    }
}

/* ⚡ Performance Optimizations */
.performance-photos {
    contain: layout style paint;
    will-change: transform;
}

.swiper-slide {
    contain: layout paint;
}

/* High DPI / Retina Display Support */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .image-skeleton {
        background-size: 400% 100%;
    }
}