:root {
    --purple-primary: #8b5cf6;
    --purple-dark: #7c3aed;
    --purple-light: #a78bfa;
    --purple-lightest: #f3f4f6;
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-medium: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-large: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Resolution buttons styles */
.resolution-buttons .resolution-btn {
    min-width: 100px;
    text-align: center;
    padding: 0.5rem 0.4rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 0.8rem;
    line-height: 1.1;
}

/* Credit update animation */
.credit-updated {
    animation: creditPulse 2s ease-in-out;
}

@keyframes creditPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); color: #28a745; }
    100% { transform: scale(1); }
}

/* Credit display styling */
.credit-display {
    font-weight: 600;
    transition: all 0.3s ease;
}

.credit-display.text-success {
    color: #28a745 !important;
}

.credit-display.text-warning {
    color: #ffc107 !important;
}

.credit-display.text-danger {
    color: #dc3545 !important;
}

.resolution-buttons .resolution-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(111, 66, 193, 0.3);
}

.resolution-buttons .resolution-btn.active {
    background-color: #6f42c1;
    border-color: #6f42c1;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(111, 66, 193, 0.4);
}

.resolution-buttons .resolution-btn.active:hover {
    background-color: #5a32a3;
    border-color: #5a32a3;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #000000;
    min-height: 100vh;
    font-size: 14px;
    line-height: 1.4;
    color: #ffffff;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: 0;
    color: #ffffff;
}

h1 { font-size: 18px; }
h2 { font-size: 16px; }
h3 { font-size: 15px; }
h4 { font-size: 14px; }
h5 { font-size: 13px; }
h6 { font-size: 12px; }

.display-4 {
    font-weight: 500;
    font-size: 20px;
    color: #ffffff;
}

.text-purple {
    color: #ffffff !important;
    font-weight: 400;
}

.bg-purple {
    background: #1a1a1a !important;
}

/* Google Sign-In Button Styling Override */
.g_id_signin {
    --gsi-button-color: #ffffff !important;
    --gsi-button-text-color: #000000 !important;
    --gsi-button-border-color: #dadce0 !important;
    --gsi-button-hover-color: #f8f9fa !important;
    --gsi-button-hover-text-color: #000000 !important;
    --gsi-button-hover-border-color: #dadce0 !important;
    --gsi-button-focus-color: #ffffff !important;
    --gsi-button-focus-text-color: #000000 !important;
    --gsi-button-focus-border-color: #1a73e8 !important;
    --gsi-button-disabled-color: #f1f3f4 !important;
    --gsi-button-disabled-text-color: #5f6368 !important;
    --gsi-button-disabled-border-color: #dadce0 !important;
}

/* Force Google Sign-In button text to be black */
.g_id_signin div[role="button"] {
    color: #000000 !important;
}

.g_id_signin div[role="button"] span {
    color: #000000 !important;
}

.g_id_signin div[role="button"] div {
    color: #000000 !important;
}

/* Modern Button Styling */
.btn {
    border-radius: 6px;
    font-weight: 400;
    font-size: 13px;
    transition: all 0.2s ease;
    border: none;
    padding: 10px 18px;
    text-transform: none;
    letter-spacing: 0;
    position: relative;
    overflow: hidden;
    min-height: 44px; /* Mobile touch target minimum */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-purple {
    background: #333333;
    color: #ffffff;
    box-shadow: none;
}

.btn-purple:hover {
    background: #4a4a4a;
    transform: none;
    box-shadow: none;
    color: #ffffff;
}

.btn-purple:focus {
    box-shadow: none;
    outline: none;
}

.btn-outline-primary {
    border: 1px solid #333333;
    color: #ffffff;
    background: transparent;
}

.btn-outline-primary:hover {
    background: #333333;
    border-color: #333333;
    color: #ffffff;
    transform: none;
}

.btn-success {
    background: #10b981;
    color: white;
}

.btn-success:hover {
    background: #059669;
    transform: translateY(-2px);
    color: white;
}

/* Card Styling */
.card {
    border: none;
    border-radius: 8px;
    background: #1a1a1a;
    box-shadow: none;
    transition: all 0.2s ease;
    overflow: hidden;
}

.card:hover {
    transform: none;
    box-shadow: none;
}

.card-header {
    border-radius: 8px 8px 0 0 !important;
    border: none;
    background: transparent;
    padding: 12px 16px;
}

.card-body {
    padding: 16px;
}

/* Form Controls */
.form-control {
    border-radius: 6px;
    border: 1px solid #333333;
    padding: 10px 14px;
    font-size: 13px;
    transition: all 0.2s ease;
    background: #1a1a1a;
    color: #ffffff;
    min-height: 44px; /* Mobile touch target minimum */
}

.form-control:focus {
    border-color: #4a4a4a;
    box-shadow: none;
    background: #1a1a1a;
    outline: none;
    color: #ffffff;
}

/* Upload input styling */
#uploadPlaceholder {
    cursor: pointer;
    background-color: #1a1a1a;
    border: 2px dashed #333333;
    transition: all 0.2s ease;
    color: #6c757d;
}

#uploadPlaceholder:hover {
    border-color: #555555;
    background-color: #2a2a2a;
}

#uploadPlaceholder:focus {
    border-color: #8b5cf6;
    background-color: #1a1a1a;
    box-shadow: 0 0 0 0.2rem rgba(139, 92, 246, 0.25);
    color: #ffffff;
}

.form-label {
    font-weight: 400;
    color: #ffffff;
    margin-bottom: 8px;
    font-size: 12px;
}

/* Upload Area Styles */
.upload-area {
    border: 2px dashed #333333;
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    background: #0a0a0a;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.upload-area:hover {
    border-color: #555555;
    background: #1a1a1a;
}

.upload-area.dragover {
    border-color: #777777;
    background: #2a2a2a;
    transform: scale(1.02);
}

.upload-content h5 {
    color: #ffffff;
    margin-bottom: 8px;
    font-weight: 500;
}

.upload-icon {
    font-size: 48px;
    color: #666666;
    margin-bottom: 16px;
    display: block;
}

.btn-outline-purple {
    border: 1px solid #333333;
    color: #ffffff;
    background: transparent;
}

.btn-outline-purple:hover {
    background: #333333;
    border-color: #333333;
    color: #ffffff;
    transform: translateY(-1px);
}

/* Header Styling */
header {
    border-radius: 0;
    background: #000000;
    box-shadow: none;
    padding: 16px 0;
    width: 100%;
}

header .row {
    margin: 0;
}

header .col-12.col-lg-10 {
    padding-left: 15px;
    padding-right: 15px;
}

.app-name {
    font-size: 24px;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: -0.5px;
}

.slogan {
    font-size: 12px;
    color: #999999;
    margin: 0;
    font-weight: 400;
}

.logo-icon {
    display: inline-block;
    flex-shrink: 0;
}

/* High Quality Toggle */
.form-check-input {
    background-color: #333333;
    border-color: #666666;
    width: 44px; /* Mobile touch target minimum */
    height: 24px;
}

.form-check-input:checked {
    background-color: #ffffff;
    border-color: #ffffff;
}

.form-check-label {
    color: #ffffff;
    font-size: 12px;
    font-weight: 400;
    cursor: pointer;
    padding-left: 8px;
    min-height: 44px; /* Mobile touch target minimum */
    display: flex;
    align-items: center;
}

.form-check-label:hover {
    color: #cccccc;
}

/* Suggestion Pills */
.suggestion-pills {
    margin-top: 8px;
}

.suggestion-pill {
    display: inline-block;
    background: #333333;
    color: #ffffff;
    font-size: 10px;
    padding: 8px 12px; /* Increased padding for mobile */
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid #666666;
    user-select: none;
    min-height: 32px; /* Mobile touch target minimum */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 2px;
}

.suggestion-pill:hover {
    background: #555555;
    border-color: #888888;
    transform: translateY(-1px);
}

.suggestion-pill:active {
    transform: translateY(0);
    background: #777777;
}

/* Showcase Section */
.showcase-section {
    background: #000000;
    padding: 40px 0;
}

.showcase-title {
    font-size: 18px;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 8px;
}

.showcase-subtitle {
    font-size: 12px;
    color: #999999;
    margin: 0;
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.showcase-item {
    position: relative;
    background: #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s ease;
    cursor: pointer;
}

.showcase-item:hover {
    transform: scale(1.02);
}

.showcase-media {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.showcase-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 16px 12px 12px;
    color: #ffffff;
}

.showcase-location {
    font-size: 11px;
    font-weight: 500;
    margin: 0;
    line-height: 1.2;
}

.showcase-place {
    font-size: 9px;
    color: #cccccc;
    margin: 2px 0 0 0;
    line-height: 1.2;
}

.loading-showcase {
    grid-column: 1 / -1;
    padding: 40px 0;
    color: #999999;
}

.loading-showcase .spinner-border {
    width: 2rem;
    height: 2rem;
}

/* Showcase Modal */
.showcase-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.showcase-modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}

.showcase-modal video {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.showcase-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    min-width: 44px; /* Mobile touch target minimum */
    min-height: 44px;
}

.showcase-modal-info {
    position: absolute;
    bottom: -50px;
    left: 0;
    color: #ffffff;
}

.showcase-modal-location {
    font-size: 16px;
    font-weight: 500;
    margin: 0;
}

.showcase-modal-place {
    font-size: 12px;
    color: #cccccc;
    margin: 4px 0 0 0;
}

/* Thumbnail Gallery Styles */
.thumbnail-gallery {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 600px;
    overflow-y: auto;
    padding: 8px;
}

.thumbnail-item {
    position: relative;
    cursor: pointer;
    border: none;
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.2s ease;
    background: #1a1a1a;
    box-shadow: none;
    min-height: 140px;
}

.thumbnail-item:hover {
    transform: scale(1.05);
    box-shadow: none;
}

.thumbnail-item.selected {
    box-shadow: none;
    transform: scale(1.02);
    opacity: 0.8;
}

.thumbnail-item.edited {
    position: relative;
}

.thumbnail-item.edited::after {
    content: "EDITED";
    position: absolute;
    top: 4px;
    right: 4px;
    background: #333333;
    color: #ffffff;
    padding: 3px 7px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0;
    box-shadow: none;
}

.thumbnail-item.video-generated {
    position: relative;
}

.thumbnail-item.video-generated::after {
    content: "VIDEO";
    position: absolute;
    top: 4px;
    right: 4px;
    background: #333333;
    color: #ffffff;
    padding: 3px 7px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0;
    box-shadow: none;
}

.thumbnail-item.video-generated::before {
    content: "▶";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(51, 51, 51, 0.9);
    color: #ffffff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    z-index: 2;
    box-shadow: none;
}

.thumbnail-item img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
    aspect-ratio: 16 / 9;
}

.thumbnail-item:hover img {
    transform: scale(1.1);
}

.thumbnail-info {
    padding: 8px;
    background: #1a1a1a;
    text-align: center;
}

.thumbnail-info .place-name {
    font-size: 12px;
    color: #ffffff;
    font-weight: 400;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Selected Image Container */
#selectedImageContainer {
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000000;
    border-radius: 6px;
    padding: 0;
    position: relative;
    box-shadow: none;
    overflow: hidden;
}

#selectedImage, #selectedVideo {
    border-radius: 6px;
    box-shadow: none;
    transition: all 0.2s ease;
    width: 100%;
    height: 100%;
    object-fit: contain;
    cursor: pointer;
    border: none;
}

#selectedImage:hover, #selectedVideo:hover {
    transform: scale(1.02);
    box-shadow: none;
}

/* Video Player Styling */
#selectedVideo {
    background: #000000;
}

/* Loading States */
.btn-loading {
    position: relative;
    color: transparent !important;
}

.btn-loading::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

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

/* Success Notification */
.success-notification {
    position: fixed;
    top: 16px;
    right: 16px;
    background: #333333;
    color: #ffffff;
    padding: 10px 14px;
    border-radius: 4px;
    box-shadow: none;
    z-index: 1000;
    font-weight: 400;
    font-size: 12px;
    transform: translateX(120%);
    opacity: 0;
    transition: all 0.2s ease;
    border: none;
}

.success-notification.show {
    transform: translateX(0);
    opacity: 1;
}

.success-notification i {
    color: #ffffff;
    margin-right: 4px;
}

/* Gallery Scrollbar - Hidden by default */
.thumbnail-gallery::-webkit-scrollbar {
    width: 0;
    background: transparent;
}

.thumbnail-gallery::-webkit-scrollbar-track {
    background: transparent;
}

.thumbnail-gallery::-webkit-scrollbar-thumb {
    background: transparent;
}

.thumbnail-gallery::-webkit-scrollbar-thumb:hover {
    background: transparent;
}

/* Show scrollbar on hover */
.thumbnail-gallery:hover::-webkit-scrollbar {
    width: 8px;
}

.thumbnail-gallery:hover::-webkit-scrollbar-track {
    background: rgba(241, 245, 249, 0.8);
    border-radius: 4px;
}

.thumbnail-gallery:hover::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 4px;
}

.thumbnail-gallery:hover::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* Firefox scrollbar styling */
.thumbnail-gallery {
    scrollbar-width: none; /* Hide scrollbar by default */
    scrollbar-color: transparent transparent;
}

.thumbnail-gallery:hover {
    scrollbar-width: thin; /* Show thin scrollbar on hover */
    scrollbar-color: #d1d5db rgba(241, 245, 249, 0.8);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Enhanced Mobile-First Responsive Design */
@media (max-width: 1200px) {
    .container-fluid {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .col-lg-10 {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .display-4 {
        font-size: 18px;
    }
    
    h1 { font-size: 16px; }
    h2 { font-size: 15px; }
    h3 { font-size: 14px; }
    h4 { font-size: 13px; }
    h5 { font-size: 12px; }
    
    .btn {
        padding: 12px 16px; /* Increased padding for mobile */
        font-size: 14px; /* Larger font for mobile */
        min-height: 48px; /* Larger touch target */
    }
    
    .card-body {
        padding: 16px;
    }
    
    /* Mobile-optimized form layout */
    .row .col-md-8,
    .row .col-md-4 {
        width: 100% !important;
        margin-bottom: 15px;
    }
    
    .row .col-md-4:last-child {
        margin-bottom: 0;
    }
    
    /* Mobile-optimized thumbnail gallery */
    .thumbnail-gallery {
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
        max-height: none;
        padding-bottom: 15px;
        gap: 10px;
        -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    }
    
    .thumbnail-item {
        flex: 0 0 140px; /* Fixed width for mobile */
        min-height: 140px;
        min-width: 140px;
    }
    
    .thumbnail-item img {
        height: 140px;
        width: 140px;
    }
    
    #selectedImageContainer {
        min-height: 250px;
        padding: 0;
    }
    
    header {
        padding: 12px 0;
    }
    
    .app-name {
        font-size: 20px;
    }
    
    .slogan {
        font-size: 11px;
    }
    
    /* Mobile-optimized suggestion pills */
    .suggestion-pills .d-flex {
        justify-content: center;
    }
    
    .suggestion-pill {
        padding: 10px 14px;
        font-size: 11px;
        min-height: 36px;
        margin: 3px;
    }
    
    /* Mobile-optimized video carousel */
    .video-carousel-section .carousel-item {
        height: 300px;
    }
    
    .video-carousel-section .carousel-control-prev,
    .video-carousel-section .carousel-control-next {
        width: 40px;
        height: 40px;
        margin: 0 10px;
    }
    
    /* Mobile-optimized modals */
    .modal-dialog {
        margin: 10px;
        max-width: calc(100% - 20px);
    }
    
    .modal-body {
        padding: 15px;
    }
    
    /* Mobile-optimized history layout */
    .history-dialog .row .col-md-4,
    .history-dialog .row .col-md-8 {
        width: 100% !important;
        margin-bottom: 20px;
    }
    
    .history-dialog .row .col-md-8:last-child {
        margin-bottom: 0;
    }
}

@media (max-width: 576px) {
    .display-4 {
        font-size: 16px;
    }
    
    h1 { font-size: 15px; }
    h2 { font-size: 14px; }
    h3 { font-size: 13px; }
    h4 { font-size: 12px; }
    h5 { font-size: 11px; }
    
    .app-name {
        font-size: 18px;
    }
    
    .slogan {
        font-size: 10px;
    }
    
    .logo-icon svg {
        width: 28px;
        height: 28px;
    }
    
    /* Extra small screen optimizations */
    .container-fluid {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .card-body {
        padding: 12px;
    }
    
    .btn {
        padding: 14px 18px; /* Even larger padding for small screens */
        font-size: 15px;
        min-height: 52px;
    }
    
    .form-control {
        padding: 12px 16px;
        font-size: 14px;
        min-height: 48px;
    }
    
    /* Mobile-optimized thumbnail gallery for small screens */
    .thumbnail-item {
        flex: 0 0 120px;
        min-height: 120px;
        min-width: 120px;
    }
    
    .thumbnail-item img {
        height: 120px;
        width: 120px;
    }
    
    #selectedImageContainer {
        min-height: 200px;
        padding: 0;
    }
    
    /* Mobile-optimized suggestion pills for small screens */
    .suggestion-pills .d-flex {
        flex-direction: column;
        align-items: center;
    }
    
    .suggestion-pill {
        width: 100%;
        max-width: 200px;
        justify-content: center;
        margin: 2px 0;
    }
    
    /* Mobile-optimized video carousel for small screens */
    .video-carousel-section .carousel-item {
        height: 250px;
    }
    
    .video-carousel-section .carousel-control-prev,
    .video-carousel-section .carousel-control-next {
        width: 35px;
        height: 35px;
        margin: 0 5px;
    }
    
    /* Mobile-optimized modals for small screens */
    .modal-dialog {
        margin: 5px;
        max-width: calc(100% - 10px);
    }
    
    .modal-body {
        padding: 10px;
    }
    
    /* Mobile-optimized form spacing */
    .mb-4 {
        margin-bottom: 1rem !important;
    }
    
    .mb-3 {
        margin-bottom: 0.75rem !important;
    }
    
    .mt-3 {
        margin-top: 0.75rem !important;
    }
}

@media (max-width: 480px) {
    .showcase-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 12px;
    }
    
    .showcase-media {
        height: 140px;
    }
    
    .showcase-title {
        font-size: 16px;
    }
    
    .showcase-subtitle {
        font-size: 11px;
    }
    
    /* Ultra-small screen optimizations */
    .btn {
        padding: 16px 20px;
        font-size: 16px;
        min-height: 56px;
    }
    
    .form-control {
        padding: 14px 18px;
        font-size: 15px;
        min-height: 52px;
    }
    
    .thumbnail-item {
        flex: 0 0 100px;
        min-height: 100px;
        min-width: 100px;
    }
    
    .thumbnail-item img {
        height: 100px;
        width: 100px;
    }
    
    #selectedImageContainer {
        min-height: 180px;
        padding: 0;
    }
    
    /* Mobile-optimized header for ultra-small screens */
    header {
        padding: 10px 0;
    }
    
    .app-name {
        font-size: 16px;
    }
    
    .logo-icon svg {
        width: 24px;
        height: 24px;
    }
    
    /* Mobile-optimized spacing for ultra-small screens */
    .py-4 {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }
    
    .mb-4 {
        margin-bottom: 0.75rem !important;
    }
    
    .mb-5 {
        margin-bottom: 1rem !important;
    }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    /* Disable hover effects on touch devices */
    .btn:hover::before,
    .thumbnail-item:hover,
    .showcase-item:hover,
    .grid-image-item:hover,
    .history-thumbnail-item:hover {
        transform: none;
    }
    
    /* Increase touch targets */
    .btn {
        min-height: 48px;
    }
    
    .form-control {
        min-height: 48px;
    }
    
    .form-check-input {
        width: 48px;
        height: 28px;
    }
    
    /* Improve touch scrolling */
    .thumbnail-gallery,
    .history-thumbnails {
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }
}

/* Landscape orientation optimizations */
@media (max-height: 500px) and (orientation: landscape) {
    header {
        padding: 8px 0;
    }
    
    .app-name {
        font-size: 16px;
    }
    
    .video-carousel-section {
        margin-top: 1rem;
    }
    
    .video-carousel-section .carousel-item {
        height: 200px;
    }
    
    .card-body {
        padding: 12px;
    }
    
    .mb-4 {
        margin-bottom: 0.75rem !important;
    }
    
    .mb-5 {
        margin-bottom: 1rem !important;
    }
}

/* High DPI display optimizations */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .btn,
    .form-control,
    .form-check-input {
        border-width: 0.5px;
    }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .btn,
    .thumbnail-item,
    .showcase-item,
    .grid-image-item,
    .history-thumbnail-item {
        transition: none;
    }
    
    .btn::before {
        transition: none;
    }
}

/* Dark mode support for system preferences */
@media (prefers-color-scheme: dark) {
    /* Already dark theme, no changes needed */
}

/* Light mode support (if user prefers light) */
@media (prefers-color-scheme: light) {
    /* Keep dark theme as it's the design choice */
}

/* Grid View Dialog Styles */
#gridDialog .modal-content {
    background: #1a1a1a;
    border: 1px solid #333333;
}

#gridDialog .modal-header {
    border-bottom: 1px solid #333333;
}

#gridDialog .modal-title {
    color: #ffffff;
    font-weight: 500;
}

.grid-image-item {
    position: relative;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: #2a2a2a;
    border: 2px solid transparent;
}

.grid-image-item:hover {
    transform: translateY(-2px);
    border-color: var(--purple-primary);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.3);
}

.grid-image-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.grid-image-item:hover img {
    transform: scale(1.05);
}

.grid-image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 15px 10px 10px;
    color: #ffffff;
}

.grid-image-title {
    font-size: 12px;
    font-weight: 500;
    margin: 0 0 5px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.grid-image-overlay .badge {
    font-size: 10px;
    padding: 2px 6px;
    margin-right: 5px;
}

/* Load More Button Styles */
#loadMoreContainer {
    margin-top: 20px;
    text-align: center;
}

#loadMoreBtn {
    background: var(--purple-primary);
    border: none;
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
}

#loadMoreBtn:hover {
    background: var(--purple-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

#loadMoreBtn:disabled {
    background: #666666;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Loading spinner for load more button */
#loadMoreBtn .fa-spinner {
    animation: spin 1s linear infinite;
}

/* Grid load more button specific styles */
#gridLoadMoreContainer {
    margin-top: 20px;
    text-align: center;
}

#gridLoadMoreBtn {
    background: var(--purple-primary);
    border: none;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
}

#gridLoadMoreBtn:hover {
    background: var(--purple-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

#gridLoadMoreBtn:disabled {
    background: #666666;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Success notification for load more */
.success-notification.load-more {
    background: var(--purple-primary);
    color: #ffffff;
    border-left: 4px solid #10b981;
}

/* Modal backdrop customization */
.modal-backdrop.show {
    opacity: 0.8;
}

/* Responsive grid adjustments */
@media (max-width: 768px) {
    .grid-image-item img {
        height: 120px;
    }
    
    .grid-image-title {
        font-size: 11px;
    }
    
    .grid-image-overlay .badge {
        font-size: 9px;
        padding: 1px 4px;
    }
}

@media (max-width: 480px) {
    .grid-image-item img {
        height: 100px;
    }
    
    .grid-image-overlay {
        padding: 10px 8px 8px;
    }
    
    .grid-image-title {
        font-size: 10px;
        margin-bottom: 3px;
    }
}

/* Video History Styles */
.history-thumbnails {
    max-height: 500px;
    overflow-y: auto;
    padding-right: 10px;
}

.history-thumbnail-item {
    margin-bottom: 15px;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.history-thumbnail-item:hover {
    transform: translateY(-2px);
    border-color: var(--purple-primary);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.history-thumbnail-item.selected {
    border-color: var(--purple-primary);
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.5);
}

.history-thumbnail-content {
    position: relative;
    background: #2a2a2a;
    border-radius: 6px;
    overflow: hidden;
}

.history-thumbnail-img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.history-thumbnail-item:hover .history-thumbnail-img {
    transform: scale(1.05);
}

.history-thumbnail-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    padding: 15px 10px 10px;
    color: #ffffff;
}

.history-thumbnail-info {
    margin-bottom: 8px;
}

.history-location {
    font-size: 12px;
    font-weight: 500;
    margin: 0 0 2px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.history-date {
    font-size: 10px;
    margin: 0;
    opacity: 0.8;
}

.history-thumbnail-actions {
    display: flex;
    justify-content: flex-end;
    gap: 5px;
}

.history-thumbnail-actions .btn {
    padding: 4px 8px;
    font-size: 10px;
    border-radius: 4px;
}

/* History video container */
#historyVideoContainer {
    background: #2a2a2a;
    border-radius: 8px;
    padding: 20px;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Thumbnail loading overlay */
.thumbnail-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 24px;
    z-index: 2;
}

.thumbnail-loading-overlay i {
    animation: spin 1s linear infinite;
}

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

/* Video thumbnail indicator */
.history-thumbnail-content {
    position: relative;
}

.video-thumbnail-indicator {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.8);
    color: #ffffff;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 500;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 4px;
}

.video-thumbnail-indicator i {
    font-size: 8px;
    color: #17a2b8;
}

#noHistoryVideo {
    text-align: center;
    color: #888888;
}

#noHistoryVideo i {
    display: block;
    margin-bottom: 15px;
    opacity: 0.5;
}

#historyVideo {
    max-width: 100%;
    border-radius: 8px;
}

#historyVideoInfo {
    background: #2a2a2a;
    border-radius: 8px;
    padding: 20px;
    border-left: 4px solid var(--purple-primary);
}

#historyVideoInfo h6 {
    color: var(--purple-primary);
    margin-bottom: 15px;
}

#historyVideoInfo p {
    margin-bottom: 8px;
    font-size: 13px;
}

#historyVideoInfo strong {
    color: #ffffff;
}

/* History button badge */
.history-badge {
    font-size: 10px !important;
    padding: 2px 4px !important;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
}

/* Responsive adjustments for history */
@media (max-width: 768px) {
    .history-thumbnail-img {
        height: 100px;
    }
    
    .history-location {
        font-size: 11px;
    }
    
    .history-date {
        font-size: 9px;
    }
    
    #historyVideoContainer {
        min-height: 250px;
        padding: 15px;
    }
    
    #historyVideoInfo {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .history-thumbnail-img {
        height: 80px;
    }
    
    .history-thumbnail-overlay {
        padding: 10px 8px 8px;
    }
    
    .history-location {
        font-size: 10px;
        margin-bottom: 1px;
    }
    
    .history-date {
        font-size: 8px;
    }
    
    #historyVideoContainer {
        min-height: 200px;
        padding: 10px;
    }
}

/* History Button Styling */
#viewHistoryBtn {
    transition: all 0.3s ease;
    border-radius: 20px;
    padding: 8px 16px;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    white-space: nowrap;
}

#viewHistoryBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

#viewHistoryBtn.btn-outline-info {
    border-color: #17a2b8;
    color: #17a2b8;
}

#viewHistoryBtn.btn-outline-info:hover {
    background-color: #17a2b8;
    border-color: #17a2b8;
    color: #ffffff;
}

#viewHistoryBtn.btn-outline-secondary {
    border-color: #6c757d;
    color: #6c757d;
}

#viewHistoryBtn.btn-outline-secondary:hover {
    background-color: #6c757d;
    border-color: #6c757d;
    color: #ffffff;
}

/* History button badge */
#viewHistoryBtn .history-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    font-size: 10px !important;
    padding: 2px 4px !important;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: #dc3545 !important;
    color: #ffffff !important;
    border: 2px solid #ffffff;
}

/* Responsive history button */
@media (max-width: 768px) {
    #viewHistoryBtn {
        padding: 6px 12px;
        font-size: 14px;
    }
    
    #viewHistoryBtn i {
        margin-right: 6px !important;
    }
    
    /* On smaller screens, ensure proper alignment */
    .row.align-items-center {
        align-items: flex-start !important;
    }
    
    .col-md-4.text-end {
        text-align: left !important;
        margin-top: 15px;
    }
}

@media (max-width: 480px) {
    #viewHistoryBtn {
        padding: 5px 10px;
        font-size: 13px;
    }
    
    #viewHistoryBtn i {
        margin-right: 4px !important;
    }
    
    #viewHistoryBtn .history-badge {
        top: -6px;
        right: -6px;
        min-width: 16px;
        height: 16px;
        font-size: 9px !important;
    }
    
    /* On very small screens, stack the elements */
    .col-md-8, .col-md-4 {
        width: 100% !important;
        margin-bottom: 10px;
    }
    
    .col-md-4.text-end {
        text-align: center !important;
        margin-top: 10px;
    }
}

/* Video Quality and History Button Row */
.row.align-items-center {
    align-items: center !important;
}

/* Ensure proper spacing and alignment */
.form-check {
    margin-bottom: 0;
}

.form-check-label {
    margin-bottom: 0;
    line-height: 1.4;
}

/* Video Timeline Styles */
.timeline-section {
    background: #2a2a2a;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #333333;
}

.timeline-container {
    background: #1a1a1a;
    border-radius: 6px;
    padding: 15px;
    border: 1px solid #444444;
}

.timeline-track {
    min-height: 80px;
    background: #0a0a0a;
    border: 2px dashed #555555;
    border-radius: 6px;
    padding: 15px;
    position: relative;
    transition: all 0.3s ease;
}

.timeline-track.dragover {
    border-color: var(--purple-primary);
    background: rgba(139, 92, 246, 0.1);
    transform: scale(1.02);
}

.timeline-placeholder {
    text-align: center;
    color: #666666;
    padding: 20px;
    transition: all 0.3s ease;
}

.timeline-placeholder i {
    display: block;
    margin-bottom: 10px;
    opacity: 0.6;
}

.timeline-placeholder p {
    font-size: 12px;
    margin: 0;
}

.timeline-clip {
    display: inline-block;
    background: #333333;
    border: 2px solid #555555;
    border-radius: 4px;
    padding: 8px 12px;
    margin: 5px;
    cursor: move;
    transition: all 0.3s ease;
    position: relative;
    min-width: 120px;
    text-align: center;
    user-select: none;
}

.timeline-clip:hover {
    border-color: var(--purple-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.timeline-clip.dragging {
    opacity: 0.5;
    transform: rotate(5deg);
    z-index: 1000;
}

.timeline-clip img {
    width: 100%;
    height: 40px;
    object-fit: cover;
    border-radius: 2px;
    margin-bottom: 5px;
}

.timeline-clip-title {
    font-size: 10px;
    color: #ffffff;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
}

.timeline-clip-duration {
    font-size: 8px;
    color: #cccccc;
    margin: 2px 0 0 0;
}

.timeline-clip-remove {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #dc3545;
    color: #ffffff;
    border: none;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.timeline-clip-remove:hover {
    background: #c82333;
    transform: scale(1.1);
}

.timeline-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.timeline-controls .btn {
    font-size: 11px;
    padding: 6px 12px;
    border-radius: 4px;
}

.timeline-controls .btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Timeline clip drop zones */
.timeline-drop-zone {
    display: inline-block;
    width: 4px;
    height: 60px;
    background: transparent;
    margin: 0 2px;
    transition: all 0.3s ease;
    position: relative;
}

.timeline-drop-zone.active {
    background: var(--purple-primary);
    width: 8px;
    border-radius: 2px;
}

.timeline-drop-zone.active::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: var(--purple-primary);
    border-radius: 50%;
    border: 2px solid #ffffff;
}

/* Timeline preview mode */
.timeline-track.preview-mode {
    background: #1a1a1a;
    border-color: var(--purple-primary);
}

.timeline-track.preview-mode .timeline-clip {
    border-color: var(--purple-primary);
    background: rgba(139, 92, 246, 0.1);
}

/* Responsive timeline */
@media (max-width: 768px) {
    .timeline-section {
        padding: 15px;
    }
    
    .timeline-container {
        padding: 10px;
    }
    
    .timeline-track {
        min-height: 60px;
        padding: 10px;
    }
    
    .timeline-clip {
        min-width: 100px;
        padding: 6px 10px;
        margin: 3px;
    }
    
    .timeline-clip img {
        height: 30px;
    }
    
    .timeline-clip-title {
        font-size: 9px;
    }
    
    .timeline-clip-duration {
        font-size: 7px;
    }
    
    .timeline-controls {
        gap: 6px;
    }
    
    .timeline-controls .btn {
        font-size: 10px;
        padding: 5px 10px;
    }
}

@media (max-width: 480px) {
    .timeline-section {
        padding: 10px;
    }
    
    .timeline-container {
        padding: 8px;
    }
    
    .timeline-track {
        min-height: 50px;
        padding: 8px;
    }
    
    .timeline-clip {
        min-width: 80px;
        padding: 5px 8px;
        margin: 2px;
    }
    
    .timeline-clip img {
        height: 25px;
    }
    
    .timeline-clip-title {
        font-size: 8px;
    }
    
    .timeline-clip-duration {
        font-size: 6px;
    }
    
    .timeline-controls {
        justify-content: center;
        gap: 5px;
    }
    
    .timeline-controls .btn {
        font-size: 9px;
        padding: 4px 8px;
    }
}

/* Video Carousel Section */
.video-carousel-section {
    margin-top: 1rem;
}

.video-carousel-section .card {
    border: none;
    overflow: hidden;
}

.video-carousel-section .card-header {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%) !important;
    border: none;
    padding: 1.5rem;
}

.video-carousel-section .card-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.video-carousel-section .card-body {
    padding: 0;
}

#videoCarousel {
    border-radius: 0;
}

#videoCarousel .carousel-inner {
    border-radius: 0;
}

#videoCarousel .carousel-item {
    border-radius: 0;
}

/* Disable autoplay on mobile devices */
@media (max-width: 768px) {
    #videoCarousel {
        /* Disable auto-ride on mobile */
        --bs-carousel-interval: 0;
    }
    
    #videoCarousel .carousel-item {
        /* Prevent auto-advance on mobile */
        transition: none;
    }
    
    /* Disable autoplay for all videos on mobile */
    video {
        autoplay: false !important;
        -webkit-autoplay: false !important;
    }
    
    /* Add play button overlay for mobile */
    .carousel-item video {
        position: relative;
    }
    
    .carousel-item video::before {
        content: '▶';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background: rgba(0, 0, 0, 0.7);
        color: white;
        width: 60px;
        height: 60px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 24px;
        z-index: 10;
        cursor: pointer;
        transition: all 0.3s ease;
    }
    
    .carousel-item video.playing::before {
        display: none;
    }
}

/* Enhanced carousel indicators */
#videoCarousel .carousel-indicators {
    bottom: 1rem;
    margin-bottom: 0;
}

#videoCarousel .carousel-indicators button {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    margin: 0 0.25rem;
    transition: all 0.3s ease;
}

#videoCarousel .carousel-indicators button.active {
    background-color: #8b5cf6;
    transform: scale(1.2);
}

#videoCarousel .carousel-indicators button:hover {
    background-color: rgba(139, 92, 246, 0.7);
    transform: scale(1.1);
}

/* Template button styling */
.template-btn {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%) !important;
    border: none;
    color: white;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.template-btn:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%) !important;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

.template-btn:active {
    transform: translateY(0);
}

.template-btn i {
    margin-right: 0.5rem;
}

/* Enhanced video container */
.video-container {
    position: relative;
    overflow: hidden;
    border-radius: 0;
    background: #000;
}

.video-container video {
    width: 100%;
    height: 500px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.video-container:hover video {
    transform: scale(1.02);
}

/* Video overlay positioning */
.video-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.9)) !important;
    color: white;
    padding: 2rem 1.5rem 1.5rem;
    z-index: 2;
}

.video-overlay h5 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.video-overlay p {
    font-size: 0.95rem;
    opacity: 0.9;
    margin-bottom: 0.75rem;
}

/* Video controls positioning */
.video-controls {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10;
}

.video-controls .btn {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    transition: all 0.3s ease;
}

.video-controls .btn:hover {
    background: rgba(139, 92, 246, 0.8);
    border-color: rgba(139, 92, 246, 0.8);
    transform: translateY(-2px);
}

.video-controls .btn:active {
    transform: translateY(0);
}

/* Location badge positioning */
.location-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 10;
}

.location-badge .badge {
    backdrop-filter: blur(10px);
    background: rgba(0, 0, 0, 0.7) !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.8rem;
    font-weight: 500;
}

.location-badge .badge i {
    color: #8b5cf6;
}

.video-overlay .badge {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.5rem 0.75rem;
}

.video-overlay .badge.bg-purple {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%) !important;
}

.video-overlay .badge.bg-secondary {
    background: rgba(108, 117, 125, 0.8) !important;
    backdrop-filter: blur(10px);
}

/* Enhanced carousel controls */
#videoCarousel .carousel-control-prev,
#videoCarousel .carousel-control-next {
    width: 4rem;
    height: 4rem;
    background: rgba(139, 92, 246, 0.8);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    margin: 0 1rem;
}

#videoCarousel .carousel-control-prev {
    left: 1rem;
}

#videoCarousel .carousel-control-next {
    right: 1rem;
}

#videoCarousel .carousel-control-prev:hover,
#videoCarousel .carousel-control-next:hover {
    background: rgba(139, 92, 246, 1);
    transform: translateY(-50%) scale(1.1);
}

#videoCarousel .carousel-control-prev-icon,
#videoCarousel .carousel-control-next-icon {
    width: 1.5rem;
    height: 1.5rem;
}

/* Enhanced carousel indicators */
#videoCarousel .carousel-indicators {
    bottom: 1rem;
    margin-bottom: 0;
}

#videoCarousel .carousel-indicators button {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    margin: 0 0.25rem;
    transition: all 0.3s ease;
}

#videoCarousel .carousel-indicators button.active {
    background-color: #8b5cf6;
    transform: scale(1.2);
}

#videoCarousel .carousel-indicators button:hover {
    background-color: rgba(139, 92, 246, 0.7);
    transform: scale(1.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .video-container video {
        height: 375px;
    }
    
    .video-overlay {
        padding: 1.5rem 1rem 1rem;
    }
    
    .video-overlay h5 {
        font-size: 1.1rem;
    }
    
    .video-overlay p {
        font-size: 0.9rem;
    }
    
    #videoCarousel .carousel-control-prev,
    #videoCarousel .carousel-control-next {
        width: 3rem;
        height: 3rem;
        margin: 0 0.5rem;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    #videoCarousel .carousel-item {
        height: 375px;
    }
    
    .video-overlay {
        padding: 15px;
    }
    
    .video-overlay h5 {
        font-size: 1rem;
    }
    
    .video-overlay p {
        font-size: 0.8rem;
    }
    
    .video-controls {
        top: 15px;
        right: 15px;
    }
    
    .video-controls .btn {
        padding: 6px 10px;
        font-size: 0.7rem;
    }
    
    #videoCarousel .carousel-control-prev,
    #videoCarousel .carousel-control-next {
        width: 40px;
        height: 40px;
    }
    
    #videoCarousel .carousel-control-prev {
        left: 15px;
    }
    
    #videoCarousel .carousel-control-next {
        right: 15px;
    }
}

@media (max-width: 480px) {
    #videoCarousel .carousel-item {
        height: 312px;
    }
    
    .video-overlay {
        padding: 12px;
    }
    
    .video-overlay h5 {
        font-size: 0.9rem;
    }
    
    .video-overlay p {
        font-size: 0.75rem;
    }
    
    .video-controls {
        top: 10px;
        right: 10px;
    }
    
    .video-controls .btn {
        padding: 5px 8px;
        font-size: 0.65rem;
    }
    
    #videoCarousel .carousel-control-prev,
    #videoCarousel .carousel-control-next {
        width: 35px;
        height: 35px;
    }
    
    #videoCarousel .carousel-control-prev {
        left: 10px;
    }
    
    #videoCarousel .carousel-control-next {
        right: 10px;
    }
}

/* Additional Mobile-Specific Improvements */

/* Modal fullscreen behavior on mobile */
@media (max-width: 768px) {
    .modal-fullscreen {
        padding: 0 !important;
    }
    
    .modal-fullscreen .modal-content {
        border-radius: 0;
        min-height: 100vh;
    }
    
    .modal-fullscreen .modal-header {
        border-bottom: 1px solid #333333;
        padding: 15px 20px;
    }
    
    .modal-fullscreen .modal-body {
        padding: 20px;
        flex: 1;
    }
    
    /* Improve modal close button touch target */
    .modal-fullscreen .btn-close {
        width: 44px;
        height: 44px;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 50%;
        border: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    .modal-fullscreen .btn-close:hover {
        background: rgba(255, 255, 255, 0.2);
    }
}

/* Improved touch scrolling for mobile */
@media (max-width: 768px) {
    .thumbnail-gallery,
    .history-thumbnails {
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }
    
    .thumbnail-item,
    .history-thumbnail-item {
        scroll-snap-align: start;
        flex-shrink: 0;
    }
    
    /* Add scroll indicators */
    .thumbnail-gallery::after,
    .history-thumbnails::after {
        content: '';
        flex: 0 0 20px;
        height: 1px;
    }
}

/* Mobile-optimized form spacing */
@media (max-width: 576px) {
    .row.g-3 > * {
        margin-bottom: 1rem;
    }
    
    .row.g-3 > *:last-child {
        margin-bottom: 0;
    }
    
    .row.g-4 > * {
        margin-bottom: 1.5rem;
    }
    
    .row.g-4 > *:last-child {
        margin-bottom: 0;
    }
    
    /* Improve input group spacing on mobile */
    .input-group {
        margin-bottom: 0.5rem;
    }
    
    .input-group:last-child {
        margin-bottom: 0;
    }
}

/* Mobile-optimized button layouts */
@media (max-width: 576px) {
    .d-flex.flex-wrap {
        gap: 0.5rem !important;
    }
    
    .btn {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    /* Ensure buttons don't wrap text awkwardly */
    .btn .d-none,
    .btn .d-inline {
        display: inline !important;
    }
}

/* Mobile-optimized suggestion pills */
@media (max-width: 576px) {
    .suggestion-pills .d-flex {
        gap: 0.25rem !important;
    }
    
    .suggestion-pill {
        font-size: 11px;
        padding: 8px 10px;
        min-height: 32px;
        white-space: nowrap;
    }
    
    /* Center pills on very small screens */
    .suggestion-pills .justify-content-center {
        justify-content: center !important;
    }
}

/* Mobile-optimized header */
@media (max-width: 576px) {
    header .d-flex.flex-wrap {
        gap: 0.5rem;
    }
    
    .app-name {
        font-size: 18px;
        line-height: 1.2;
    }
    
    .logo-icon svg {
        width: 28px;
        height: 28px;
    }
    
    /* Stack header elements on very small screens */
    header .justify-content-between {
        justify-content: center !important;
        text-align: center;
    }
    
    header .d-flex.align-items-center {
        flex-direction: column;
        text-align: center;
    }
}

/* Mobile-optimized video carousel */
@media (max-width: 576px) {
    .video-carousel-section {
        margin-top: 1rem;
        margin-bottom: 1rem;
    }
    
    .video-carousel-section .carousel-item {
        height: 250px;
    }
    
    .video-carousel-section .carousel-control-prev,
    .video-carousel-section .carousel-control-next {
        width: 35px;
        height: 35px;
        margin: 0 5px;
        background: rgba(139, 92, 246, 0.8);
        border-radius: 50%;
    }
    
    .video-carousel-section .carousel-control-prev:hover,
    .video-carousel-section .carousel-control-next:hover {
        background: rgba(139, 92, 246, 1);
    }
}

/* Mobile-optimized cards */
@media (max-width: 576px) {
    .card {
        border-radius: 6px;
        margin-bottom: 1rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .card-header {
        padding: 1rem;
    }
}

/* Mobile-optimized spacing */
@media (max-width: 576px) {
    .py-4 {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }
    
    .mb-4 {
        margin-bottom: 1rem !important;
    }
    
    .mb-5 {
        margin-bottom: 1rem !important;
    }
    
    .mt-5 {
        margin-top: 1rem !important;
    }
    
    /* Reduce section margins on mobile */
    section {
        margin-bottom: 1rem;
    }
    
    section:last-child {
        margin-bottom: 0;
    }
}

/* Media Management Styles */
.media-card {
    background: #2a2a2a;
    border: 1px solid #444444;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.media-card:hover {
    transform: translateY(-4px);
    border-color: #8b5cf6;
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.2);
}

.media-preview-container {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.media-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.media-card:hover .media-preview {
    transform: scale(1.05);
}

.media-type-badge {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    background: rgba(139, 92, 246, 0.9);
    color: #ffffff;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 500;
}

.media-privacy-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 500;
}

.media-privacy-badge.public {
    background: rgba(16, 185, 129, 0.9);
    color: #ffffff;
}

.media-privacy-badge.private {
    background: rgba(156, 163, 175, 0.9);
    color: #ffffff;
}

.media-card .card-body {
    padding: 1rem;
}

.media-card .card-title {
    font-size: 0.9rem;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.media-card .card-text {
    font-size: 0.8rem;
    color: #cccccc;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Media Filter Buttons */
.btn-group .btn {
    border-radius: 6px;
    margin: 0 2px;
}

.btn-group .btn.active {
    background: #8b5cf6;
    border-color: #8b5cf6;
    color: #ffffff;
}

/* Media Search and Filter */
#mediaSearchInput,
#mediaPrivacyFilter {
    background: #2a2a2a;
    border: 1px solid #444444;
    color: #ffffff;
}

#mediaSearchInput:focus,
#mediaPrivacyFilter:focus {
    background: #2a2a2a;
    border-color: #8b5cf6;
    color: #ffffff;
    box-shadow: 0 0 0 0.2rem rgba(139, 92, 246, 0.25);
}

/* Media Management Modal */
#mediaManagementModal .modal-content {
    background: #1a1a1a;
    border: 1px solid #333333;
}

#mediaManagementModal .modal-header {
    border-bottom: 1px solid #333333;
}

#mediaManagementModal .modal-title {
    color: #ffffff;
}

#mediaManagementModal .form-label {
    color: #ffffff;
}

#mediaManagementModal .form-control {
    background: #2a2a2a;
    border: 1px solid #444444;
    color: #ffffff;
}

#mediaManagementModal .form-control:focus {
    background: #2a2a2a;
    border-color: #8b5cf6;
    color: #ffffff;
    box-shadow: 0 0 0 0.2rem rgba(139, 92, 246, 0.25);
}

#mediaManagementModal .form-check-label {
    color: #ffffff;
}

/* Mobile-optimized footer */
@media (max-width: 576px) {
    footer {
        padding: 1rem 0;
        margin-top: 1rem;
    }
    
    footer p {
        font-size: 12px;
        margin: 0;
    }
}

/* Mobile-optimized form controls */
@media (max-width: 576px) {
    .form-control-lg {
        font-size: 16px; /* Prevent zoom on iOS */
        padding: 12px 16px;
        min-height: 48px;
    }
    
    .input-group-text {
        padding: 12px 16px;
        font-size: 16px;
        min-height: 48px;
        display: flex;
        align-items: center;
    }
    
    /* Improve input group appearance on mobile */
    .input-group {
        border-radius: 8px;
        overflow: hidden;
    }
    
    .input-group .form-control {
        border: none;
        border-radius: 0;
    }
    
    .input-group .form-control:first-child {
        border-top-left-radius: 8px;
        border-bottom-left-radius: 8px;
    }
    
    .input-group .form-control:last-child {
        border-top-right-radius: 8px;
        border-bottom-right-radius: 8px;
    }
}

/* Mobile-optimized checkboxes and switches */
@media (max-width: 576px) {
    .form-check {
        margin-bottom: 0.5rem;
    }
    
    .form-check-input {
        width: 48px;
        height: 28px;
        margin-top: 0;
        margin-right: 0.75rem;
    }
    
    .form-check-label {
        padding-left: 0;
        margin-bottom: 0;
        min-height: 48px;
        display: flex;
        align-items: center;
        font-size: 14px;
    }
}

/* Mobile-optimized buttons */
@media (max-width: 576px) {
    .btn-lg {
        padding: 14px 18px;
        font-size: 16px;
        min-height: 52px;
        border-radius: 8px;
    }
    
    .btn-sm {
        padding: 8px 12px;
        font-size: 14px;
        min-height: 40px;
        border-radius: 6px;
    }
    
    /* Ensure button text doesn't wrap */
    .btn {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

/* Mobile-optimized thumbnails */
@media (max-width: 576px) {
    .thumbnail-gallery {
        padding: 0.5rem;
        gap: 0.5rem;
    }
    
    .thumbnail-item {
        border-radius: 6px;
        overflow: hidden;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    }
    
    .thumbnail-item img {
        transition: transform 0.2s ease;
    }
    
    .thumbnail-item:active img {
        transform: scale(1.05);
    }
}

/* Mobile-optimized selected image container */
@media (max-width: 576px) {
    #selectedImageContainer {
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }
    
    #selectedImage,
    #selectedVideo {
        border-radius: 8px;
        transition: transform 0.2s ease;
    }
    
    #selectedImage:active,
    #selectedVideo:active {
        transform: scale(1.02);
    }
}

/* Mobile-optimized modals */
@media (max-width: 576px) {
    .modal-content {
        border-radius: 0;
        min-height: 100vh;
    }
    
    .modal-header {
        padding: 1rem 1.5rem;
        border-bottom: 1px solid #333333;
    }
    
    .modal-body {
        padding: 1rem 1.5rem;
        flex: 1;
    }
    
    .modal-title {
        font-size: 18px;
        font-weight: 600;
    }
    
    /* Improve modal close button */
    .btn-close {
        width: 44px;
        height: 44px;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 50%;
        border: 1px solid rgba(255, 255, 255, 0.2);
        transition: all 0.2s ease;
    }
    
    .btn-close:hover,
    .btn-close:focus {
        background: rgba(255, 255, 255, 0.2);
        transform: scale(1.1);
    }
}

/* Mobile-optimized history section */
@media (max-width: 576px) {
    .history-thumbnails {
        max-height: 300px;
        padding: 0.5rem;
        gap: 0.5rem;
    }
    
    .history-thumbnail-item {
        margin-bottom: 0.75rem;
    }
    
    .history-thumbnail-img {
        height: 80px;
        border-radius: 6px;
    }
    
    .history-thumbnail-overlay {
        padding: 8px 6px 6px;
    }
    
    .history-location {
        font-size: 10px;
        margin-bottom: 1px;
    }
    
    .history-date {
        font-size: 8px;
    }
    
    #historyVideoContainer {
        min-height: 200px;
        padding: 1rem;
        border-radius: 8px;
    }
    
    #historyVideoInfo {
        padding: 1rem;
        border-radius: 8px;
    }
}

/* Mobile-optimized timeline */
@media (max-width: 576px) {
    .timeline-section {
        padding: 1rem;
        border-radius: 8px;
    }
    
    .timeline-container {
        padding: 0.75rem;
        border-radius: 6px;
    }
    
    .timeline-track {
        min-height: 50px;
        padding: 0.75rem;
    }
    
    .timeline-clip {
        min-width: 80px;
        padding: 5px 8px;
        margin: 2px;
        border-radius: 4px;
    }
    
    .timeline-clip img {
        height: 25px;
        border-radius: 2px;
    }
    
    .timeline-clip-title {
        font-size: 8px;
    }
    
    .timeline-clip-duration {
        font-size: 6px;
    }
    
    .timeline-controls {
        justify-content: center;
        gap: 0.5rem;
    }
    
    .timeline-controls .btn {
        font-size: 9px;
        padding: 4px 8px;
        min-height: 36px;
    }
}

/* Mobile-optimized grid view */
@media (max-width: 576px) {
    .grid-image-item {
        border-radius: 6px;
        overflow: hidden;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    }
    
    .grid-image-item img {
        height: 100px;
        transition: transform 0.2s ease;
    }
    
    .grid-image-item:active img {
        transform: scale(1.05);
    }
    
    .grid-image-overlay {
        padding: 8px 6px 6px;
    }
    
    .grid-image-title {
        font-size: 10px;
        margin-bottom: 3px;
    }
    
    .grid-image-overlay .badge {
        font-size: 8px;
        padding: 1px 4px;
    }
}

/* Mobile-optimized load more buttons */
@media (max-width: 576px) {
    #loadMoreContainer,
    #gridLoadMoreContainer {
        margin-top: 1rem;
    }
    
    #loadMoreBtn,
    #gridLoadMoreBtn {
        padding: 12px 20px;
        font-size: 14px;
        min-height: 48px;
        border-radius: 8px;
        width: 100%;
        max-width: 200px;
    }
}

/* Mobile-optimized success notifications */
@media (max-width: 576px) {
    .success-notification {
        top: 10px;
        right: 10px;
        left: 10px;
        transform: translateY(-100%);
        max-width: none;
        text-align: center;
    }
    
    .success-notification.show {
        transform: translateY(0);
    }
}

/* Mobile-optimized error section */
@media (max-width: 576px) {
    #errorSection {
        margin: 1rem 0;
        border-radius: 8px;
        padding: 1rem;
    }
    
    #errorSection h4 {
        font-size: 16px;
        margin-bottom: 0.5rem;
    }
    
    #errorSection p {
        font-size: 14px;
        margin: 0;
    }
}

/* Mobile-optimized loading section */
@media (max-width: 576px) {
    #loadingSection,
    #processingSection {
        padding: 2rem 1rem;
    }
    
    #loadingSection .spinner-border,
    #processingSection .spinner-border {
        width: 2rem;
        height: 2rem;
    }
    
    #loadingSection p,
    #processingSection p {
        font-size: 14px;
        margin-top: 1rem;
    }
}

/* Mobile-optimized Google sign-in */
@media (max-width: 576px) {
    #googleSignInContainer {
        padding: 1rem;
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.05);
    }
    
    #googleSignInContainer p {
        font-size: 14px;
        margin-bottom: 1rem;
    }
    
    /* Ensure Google sign-in button is properly sized */
    .g_id_signin {
        display: flex;
        justify-content: center;
    }
}

/* Mobile-optimized accessibility */
@media (max-width: 576px) {
    /* Ensure focus indicators are visible on mobile */
    .btn:focus,
    .form-control:focus,
    .form-check-input:focus {
        outline: 2px solid #8b5cf6;
        outline-offset: 2px;
    }
    
    /* Improve touch targets for interactive elements */
    .suggestion-pill,
    .thumbnail-item,
    .grid-image-item,
    .history-thumbnail-item {
        cursor: pointer;
        -webkit-tap-highlight-color: rgba(139, 92, 246, 0.3);
    }
    
    /* Ensure text is readable on small screens */
    .text-muted {
        color: #cccccc !important;
    }
    
    .text-white {
        color: #ffffff !important;
    }
}

/* Mobile-optimized performance */
@media (max-width: 576px) {
    /* Reduce animations on mobile for better performance */
    .btn,
    .thumbnail-item,
    .showcase-item,
    .grid-image-item,
    .history-thumbnail-item {
        transition: all 0.15s ease;
    }
    
    /* Optimize transforms for mobile */
    .btn:hover,
    .thumbnail-item:hover,
    .showcase-item:hover,
    .grid-image-item:hover,
    .history-thumbnail-item:hover {
        transform: translateY(-1px);
    }
    
    .btn:active,
    .thumbnail-item:active,
    .showcase-item:active,
    .grid-image-item:active,
    .history-thumbnail-item:active {
        transform: translateY(0);
    }
}

/* Credit Package Modal Styles */
.credit-package {
    transition: all 0.3s ease;
    border: 1px solid #444444;
}

.credit-package:hover {
    transform: translateY(-2px);
    border-color: #666666;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.credit-package.selected {
    border-color: #8b5cf6 !important;
    background: rgba(139, 92, 246, 0.1) !important;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.3);
}

.credit-package.selected:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(139, 92, 246, 0.4);
}

/* Modal customization for dark theme */
#creditPurchaseModal .modal-content {
    background: #1a1a1a;
    border: 1px solid #333333;
}

#creditPurchaseModal .modal-header {
    border-bottom: 1px solid #333333;
}

#creditPurchaseModal .modal-title {
    color: #ffffff;
}

#creditPurchaseModal .btn-close {
    filter: invert(1);
}

#creditPurchaseModal .text-purple {
    color: #8b5cf6 !important;
}

/* Hall of Fame Section Styles */
.hall-of-fame-section {
    background: #1a1a1a;
    border-radius: 8px;
    padding: 2rem;
    margin: 2rem 0;
    border: 1px solid #333333;
}

.hall-of-fame-header {
    margin-bottom: 2rem;
}

.hall-of-fame-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.hall-of-fame-subtitle {
    font-size: 1rem;
    color: #cccccc;
    margin: 0;
}



/* Horizontal Scrolling Container */
.hall-of-fame-scroll-container {
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    scrollbar-width: thin;
    scrollbar-color: rgba(139, 92, 246, 0.3) transparent;
    padding: 10px 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.hall-of-fame-scroll-container::-webkit-scrollbar {
    height: 6px;
}

.hall-of-fame-scroll-container::-webkit-scrollbar-track {
    background: rgba(139, 92, 246, 0.1);
    border-radius: 3px;
}

.hall-of-fame-scroll-container::-webkit-scrollbar-thumb {
    background: rgba(139, 92, 246, 0.5);
    border-radius: 3px;
}

.hall-of-fame-scroll-container::-webkit-scrollbar-thumb:hover {
    background: rgba(139, 92, 246, 0.7);
}

.hall-of-fame-scroll-row {
    display: inline-flex;
    gap: 15px;
    padding: 0 10px;
    min-width: 100%;
}

/* Video Card Styles */
.hall-of-fame-video-card {
    display: inline-block;
    min-width: 250px;
    max-width: 250px;
    background: #2a2a2a;
    border: 1px solid #444444;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: none;
}

.hall-of-fame-video-card:hover {
    transform: translateY(-4px);
    border-color: #8b5cf6;
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.2);
}

.hall-of-fame-video-container {
    position: relative;
    width: 100%;
    height: 150px;
    overflow: hidden;
}

.hall-of-fame-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.hall-of-fame-video-card:hover .hall-of-fame-video {
    transform: scale(1.05);
}

.hall-of-fame-video-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    padding: 0.75rem;
    color: #ffffff;
}

.hall-of-fame-video-title {
    font-size: 0.8rem;
    font-weight: 500;
    margin: 0 0 0.25rem 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hall-of-fame-video-creator {
    font-size: 0.7rem;
    color: #cccccc;
    margin: 0;
}

.hall-of-fame-video-date {
    font-size: 0.6rem;
    color: #999999;
    margin: 0;
}

.hall-of-fame-video-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(139, 92, 246, 0.9);
    color: #ffffff;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 500;
}

/* Video Overlay States */
.play-button-overlay,
.video-loading-overlay,
.video-error-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    z-index: 10;
    transition: all 0.3s ease;
}

.play-button-overlay {
    cursor: pointer;
    background: rgba(0, 0, 0, 0.8);
}

.play-button-overlay:hover {
    background: rgba(139, 92, 246, 0.8);
    transform: scale(1.1);
}

.play-button-overlay i {
    font-size: 2rem;
    color: #ffffff;
}

.video-loading-overlay {
    background: rgba(0, 0, 0, 0.6);
}

.video-loading-overlay .spinner-border {
    width: 2rem;
    height: 2rem;
    border-width: 0.2em;
}

.video-error-overlay {
    background: rgba(220, 53, 69, 0.8);
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
}

.video-error-overlay i {
    font-size: 1.5rem;
    color: #ffffff;
}

.video-error-overlay span {
    font-size: 0.8rem;
    color: #ffffff;
}

.hall-of-fame-load-more {
    text-align: center;
    margin-top: 2rem;
}

.hall-of-fame-load-more .btn {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    border: none;
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.hall-of-fame-load-more .btn:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

/* Responsive Design for Hall of Fame */
@media (max-width: 768px) {
    .hall-of-fame-section {
        padding: 1.5rem;
        margin: 1.5rem 0;
    }
    
    .hall-of-fame-title {
        font-size: 1.5rem;
    }
    
    .hall-of-fame-subtitle {
        font-size: 0.9rem;
    }
    
    .hall-of-fame-video-container {
        height: 150px;
    }
}

@media (max-width: 576px) {
    .hall-of-fame-section {
        padding: 1rem;
        margin: 1rem 0;
    }
    
    .hall-of-fame-title {
        font-size: 1.3rem;
    }
    
    .hall-of-fame-video-container {
        height: 120px;
    }
    
    .hall-of-fame-video-overlay {
        padding: 0.75rem;
    }
    
    .hall-of-fame-video-title {
        font-size: 0.8rem;
    }
    
    .hall-of-fame-video-creator {
        font-size: 0.7rem;
    }
}

/* Mobile-optimized print styles */
@media print {
    .btn,
    .modal,
    .carousel-control-prev,
    .carousel-control-next,
    .carousel-indicators {
        display: none !important;
    }
    
    .card {
        border: 1px solid #333333;
        box-shadow: none;
    }
    
    .container-fluid {
        max-width: none;
        padding: 0;
    }
}

/* Footer */
footer {
    text-align: center;
    padding: 1rem 0;
    margin-top: 1rem;
    background: #000000 !important;
    color: #ffffff !important;
    border-top: 1px solid #333333;
}

footer p {
    color: #ffffff !important;
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
}

/* Mobile-optimized footer */
@media (max-width: 576px) {
    footer {
        padding: 1rem 0;
        margin-top: 1rem;
    }
    
    footer p {
        font-size: 12px;
        margin: 0;
    }
}

/* Professional Pricing Table Styles */
.professional-pricing-table {
    border-collapse: separate;
    border-spacing: 0;
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.professional-pricing-table th {
    position: relative;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #000000;
}

.professional-pricing-table td {
    vertical-align: middle;
    border: none;
    transition: all 0.3s ease;
}

.professional-pricing-table tbody tr {
    transition: all 0.3s ease;
}

.professional-pricing-table tbody tr:hover {
    background: rgba(0, 0, 0, 0.05) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.professional-pricing-table tbody tr:first-child:hover {
    background: rgba(0, 0, 0, 0.1) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

/* Pricing Item Styles */
.pricing-item {
    transition: all 0.3s ease;
    cursor: pointer;
}

.pricing-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    border-color: #000000;
}

.pricing-item:hover i {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

/* Comparison Table Responsive */
@media (max-width: 768px) {
    .professional-pricing-table {
        font-size: 11px;
    }
    
    .professional-pricing-table th,
    .professional-pricing-table td {
        padding: 12px 8px !important;
    }
    
    .professional-pricing-table th {
        font-size: 11px !important;
    }
    
    .pricing-item {
        margin-bottom: 1rem;
    }
}

/* Enhanced Table Shadows */
.comparison-table .table-responsive {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Price Badge Animations */
.professional-pricing-table .text-success,
.professional-pricing-table .text-danger,
.professional-pricing-table .text-warning,
.professional-pricing-table .text-muted {
    transition: all 0.3s ease;
}

.professional-pricing-table .text-success:hover {
    background: rgba(0, 0, 0, 0.1) !important;
    transform: scale(1.05);
}

.professional-pricing-table .text-danger:hover {
    background: rgba(0, 0, 0, 0.1) !important;
    transform: scale(1.05);
}

.professional-pricing-table .text-warning:hover {
    background: rgba(0, 0, 0, 0.1) !important;
    transform: scale(1.05);
}

.professional-pricing-table .text-muted:hover {
    background: rgba(0, 0, 0, 0.1) !important;
    transform: scale(1.05);
}

/* Service Category Labels */
.service-category {
    font-size: 11px;
    color: #000000;
    font-weight: 500;
    margin-top: 2px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.professional-pricing-table tbody tr:hover .service-category {
    opacity: 1;
}

/* Trophy Badge Enhancement */
.trophy-badge {
    background: rgba(0, 0, 0, 0.1);
    padding: 12px 20px;
    border-radius: 8px;
    border: 1px solid #000000;
    display: inline-block;
    transition: all 0.3s ease;
}

.trophy-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border-color: #000000;
}

/* Credit Information Enhancement */
.credit-info-badge {
    background: rgba(0, 0, 0, 0.05);
    padding: 12px 20px;
    border-radius: 8px;
    border: 1px solid #000000;
    display: inline-block;
    transition: all 0.3s ease;
}

.credit-info-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border-color: #000000;
}

/* Table Header Enhancement */
.comparison-table h6 {
    position: relative;
    display: inline-block;
}

.comparison-table h6::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #000000;
    border-radius: 1px;
    opacity: 0.8;
}

/* Responsive Enhancements */
@media (max-width: 576px) {
    .pricing-info .row {
        margin: 0 -5px;
    }
    
    .pricing-info .col-md-4 {
        padding: 0 5px;
    }
    
    .pricing-item {
        padding: 1rem !important;
    }
    
    .credit-info-badge,
    .trophy-badge {
        padding: 10px 16px;
        font-size: 12px;
    }
}

/* Video Effects Showcase Styles */
.video-effects-showcase-section {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.effects-header {
    margin-bottom: 2rem;
}

.effects-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.effects-subtitle {
    font-size: 1rem;
    color: #cccccc;
    margin: 0;
}

.effects-container {
    padding: 1rem 0;
}

.effects-row {
    margin-bottom: 20px;
}

.effects-scroll-container {
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    scrollbar-width: thin;
    scrollbar-color: rgba(139, 92, 246, 0.3) transparent;
    padding: 10px 0;
}

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

.effects-scroll-container::-webkit-scrollbar-track {
    background: rgba(139, 92, 246, 0.1);
    border-radius: 3px;
}

.effects-scroll-container::-webkit-scrollbar-thumb {
    background: rgba(139, 92, 246, 0.5);
    border-radius: 3px;
}

.effects-scroll-container::-webkit-scrollbar-thumb:hover {
    background: rgba(139, 92, 246, 0.7);
}

.effects-scroll-row {
    display: inline-flex;
    gap: 15px;
    padding: 0 10px;
    min-width: 100%;
}

.effect-card {
    display: inline-block;
    min-width: 200px;
    max-width: 200px;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 8px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: none;
}

.effect-video-container {
    position: relative;
    width: 100%;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 12px;
    background: #000;
}

.effect-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.effect-card:hover .effect-video {
    transform: scale(1.05);
}

.effect-card:hover {
    transform: translateY(-4px);
}

.effect-icon {
    font-size: 32px;
    margin-bottom: 10px;
    display: block;
}


/* Responsive Design */
@media (max-width: 768px) {
    .effect-card {
        min-width: 160px;
        max-width: 160px;
        padding: 8px;
    }
    
    .effect-video-container {
        height: 100px;
    }
}

@media (max-width: 576px) {
    .effect-card {
        min-width: 140px;
        max-width: 140px;
        padding: 6px;
    }
    
    .effect-video-container {
        height: 80px;
    }
    
    .effects-scroll-row {
        gap: 10px;
    }
}

/* Loading State */
.effects-loading {
    text-align: center;
    padding: 40px 20px;
    color: #a78bfa;
}

.effects-loading .spinner-border {
    width: 2rem;
    height: 2rem;
    border-width: 0.2em;
}

/* Empty State */
.effects-empty {
    text-align: center;
    padding: 40px 20px;
    color: #9ca3af;
}

.effects-empty i {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.5;
}

/* Effect Card Animations */
@keyframes effectCardSlideIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.effect-card {
    animation: effectCardSlideIn 0.5s ease forwards;
}

.effect-card:nth-child(1) { animation-delay: 0.1s; }
.effect-card:nth-child(2) { animation-delay: 0.2s; }
.effect-card:nth-child(3) { animation-delay: 0.3s; }
.effect-card:nth-child(4) { animation-delay: 0.4s; }
.effect-card:nth-child(5) { animation-delay: 0.5s; }
.effect-card:nth-child(6) { animation-delay: 0.6s; }
.effect-card:nth-child(7) { animation-delay: 0.7s; }
.effect-card:nth-child(8) { animation-delay: 0.8s; }
.effect-card:nth-child(9) { animation-delay: 0.9s; }
.effect-card:nth-child(10) { animation-delay: 1.0s; }

.nav-link {
    color: var(--purple-dark) !important;
  }

/* Pricing Info Section Styles */
.pricing-info-section {
    background: #1a1a1a;
    border-radius: 8px;
    padding: 2rem;
    margin: 2rem 0;
    border: 1px solid #333333;
}

.pricing-info-header {
    text-align: center;
    margin-bottom: 2rem;
}

.pricing-info-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.pricing-info-subtitle {
    font-size: 1rem;
    color: #cccccc;
    margin: 0;
}

.pricing-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.pricing-feature {
    background: #2a2a2a;
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid #444444;
    transition: all 0.3s ease;
}

.pricing-feature:hover {
    transform: translateY(-4px);
    border-color: #8b5cf6;
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.2);
}

.pricing-feature-icon {
    font-size: 2rem;
    color: #8b5cf6;
    margin-bottom: 1rem;
    display: block;
}

.pricing-feature-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.pricing-feature-description {
    font-size: 0.9rem;
    color: #cccccc;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.pricing-feature-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #8b5cf6;
    margin-bottom: 0.5rem;
}

.pricing-feature-credits {
    font-size: 0.8rem;
    color: #999999;
    margin: 0;
}

.free-credits-info {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    color: #ffffff;
    margin-top: 1rem;
}

.free-credits-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.free-credits-description {
    font-size: 0.9rem;
    margin: 0;
    opacity: 0.9;
}

/* Price Comparison Table Styles */
.price-comparison-section {
    background: #1a1a1a;
    border-radius: 8px;
    padding: 2rem;
    margin: 2rem 0;
    border: 1px solid #333333;
}

.price-comparison-header {
    text-align: center;
    margin-bottom: 2rem;
}

.price-comparison-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.price-comparison-subtitle {
    font-size: 1rem;
    color: #cccccc;
    margin: 0;
}

.price-comparison-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #2a2a2a;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #444444;
}

.price-comparison-table th {
    background: #333333;
    color: #ffffff;
    font-weight: 600;
    padding: 1rem;
    text-align: center;
    border-bottom: 1px solid #444444;
    font-size: 0.9rem;
}

.price-comparison-table th:first-child {
    text-align: left;
    background: #2a2a2a;
    color: #ffffff;
    font-weight: 700;
}

.price-comparison-table td {
    padding: 1rem;
    text-align: center;
    border-bottom: 1px solid #444444;
    color: #ffffff;
    font-size: 0.9rem;
    vertical-align: middle;
}

.price-comparison-table td:first-child {
    text-align: left;
    font-weight: 600;
    background: #2a2a2a;
}

.price-comparison-table tr:last-child td {
    border-bottom: none;
}

.price-comparison-table tr:hover {
    background: #333333;
}

.price-comparison-table tr:hover td:first-child {
    background: #333333;
}

.service-name {
    font-weight: 700;
    color: #ffffff;
    font-size: 1rem;
}

.service-logo {
    width: 24px;
    height: 24px;
    margin-right: 0.5rem;
    vertical-align: middle;
}

.price-value {
    font-weight: 700;
    color: #8b5cf6;
    font-size: 1.1rem;
}

.price-free {
    color: #10b981;
    font-weight: 700;
}

.price-paid {
    color: #8b5cf6;
    font-weight: 700;
}

.price-unlimited {
    color: #f59e0b;
    font-weight: 700;
}

.feature-available {
    color: #10b981;
    font-size: 1.2rem;
}

.feature-unavailable {
    color: #dc3545;
    font-size: 1.2rem;
}

.feature-partial {
    color: #f59e0b;
    font-size: 1.2rem;
}

.feature-text {
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

/* Responsive Design for Pricing */
@media (max-width: 768px) {
    .pricing-info-section,
    .price-comparison-section {
        padding: 1.5rem;
        margin: 1.5rem 0;
    }
    
    .pricing-features {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .pricing-feature {
        padding: 1.25rem;
    }
    
    .price-comparison-table {
        font-size: 0.8rem;
    }
    
    .price-comparison-table th,
    .price-comparison-table td {
        padding: 0.75rem 0.5rem;
    }
    
    .service-name {
        font-size: 0.9rem;
    }
    
    .price-value {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .pricing-info-section,
    .price-comparison-section {
        padding: 1rem;
        margin: 1rem 0;
    }
    
    .pricing-info-title,
    .price-comparison-title {
        font-size: 1.25rem;
    }
    
    .pricing-info-subtitle,
    .price-comparison-subtitle {
        font-size: 0.9rem;
    }
    
    .pricing-feature {
        padding: 1rem;
    }
    
    .pricing-feature-icon {
        font-size: 1.5rem;
    }
    
    .pricing-feature-title {
        font-size: 1rem;
    }
    
    .price-comparison-table {
        font-size: 0.7rem;
    }
    
    .price-comparison-table th,
    .price-comparison-table td {
        padding: 0.5rem 0.25rem;
    }
    
    .service-name {
        font-size: 0.8rem;
    }
    
    .price-value {
        font-size: 0.9rem;
    }
    
    .free-credits-info {
        padding: 1rem;
    }
    
    .free-credits-title {
        font-size: 1.1rem;
    }
}
