        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        .skip-link {
            position: absolute;
            top: -40px;
            left: 6px;
            background: #000;
            color: white;
            padding: 8px;
            text-decoration: none;
            border-radius: 4px;
            z-index: 1000;
            transition: top 0.2s ease;
        }
        
        .skip-link:focus {
            top: 6px;
        }
        
        body {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
            /* Background handled by page-backgrounds.css */
            min-height: 100vh;
            display: flex;
            justify-content: center;
            align-items: center;
            color: white;
            overflow-x: hidden;
            position: relative;
        }
        
        /* Background and overlay now handled by page-backgrounds.css */
        
        .container {
            width: 100%;
            max-width: 1200px;
            margin: 2rem auto;
            padding: 0 1rem;
            position: relative;
            z-index: 1;
        }
        
        .glass-panel {
            background: rgba(0, 0, 0, 0.6);
            backdrop-filter: blur(20px);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 30px;
            padding: 4rem 3rem;
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
            position: relative;
            overflow: hidden;
        }
        
        .header {
            text-align: center;
            margin-bottom: 4rem;
            position: relative;
            z-index: 1;
        }
        
        .brand-badge {
            display: inline-block;
            background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 50px;
            padding: 0.5rem 1.5rem;
            margin-bottom: 2rem;
            backdrop-filter: blur(10px);
        }
        
        .badge-text {
            font-size: 0.875rem;
            font-weight: 600;
            letter-spacing: 0.1rem;
            text-transform: uppercase;
            opacity: 0.9;
        }
        
        h1 {
            font-size: 3.5rem;
            font-weight: 300;
            letter-spacing: 0.3rem;
            margin-bottom: 1.5rem;
            text-transform: uppercase;
            line-height: 1.1;
            background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.8) 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .copyright-notice {
            font-size: 0.75rem;
            font-weight: 400;
            letter-spacing: 0.05rem;
            opacity: 0.6;
            margin: -0.5rem auto 1.5rem auto;
            color: rgba(255, 255, 255, 0.7);
            text-align: center;
        }

        .subtitle {
            font-size: 1.2rem;
            font-weight: 400;
            letter-spacing: 0.05rem;
            opacity: 0.8;
            line-height: 1.6;
            max-width: 600px;
            margin: 0 auto 3rem auto;
        }
        
        .process-steps {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 2rem;
            margin-top: 3rem;
            flex-wrap: wrap;
        }
        
        .step {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 0.75rem;
            opacity: 0.7;
            transition: opacity 0.3s ease;
        }
        
        .step:hover {
            opacity: 1;
        }
        
        .step-number {
            width: 40px;
            height: 40px;
            background: rgba(255, 255, 255, 0.1);
            border: 2px solid rgba(255, 255, 255, 0.2);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 600;
            font-size: 1.1rem;
            transition: all 0.3s ease;
        }
        
        .step:hover .step-number {
            background: rgba(255, 255, 255, 0.15);
            border-color: rgba(255, 255, 255, 0.4);
            transform: scale(1.1);
        }
        
        .step span {
            font-size: 0.875rem;
            font-weight: 500;
            letter-spacing: 0.05rem;
            text-transform: uppercase;
        }
        
        .step-arrow {
            font-size: 1.5rem;
            opacity: 0.4;
            font-weight: 300;
        }
        
        .form-section {
            position: relative;
            z-index: 1;
        }
        
        .form-group {
            margin-bottom: 2rem;
        }
        
        label {
            display: flex;
            align-items: center;
            font-size: 0.875rem;
            font-weight: 600;
            letter-spacing: 0.1rem;
            text-transform: uppercase;
            margin-bottom: 0.75rem;
            opacity: 0.9;
        }
        
        .input-button-row {
            display: flex;
            gap: 1rem;
            align-items: stretch;
        }
        
        .input-wrapper {
            flex: 1;
            position: relative;
        }
        
        input[type="url"],
        .input-wrapper input {
            width: 100%;
            padding: 1.25rem 3rem 1.25rem 1.5rem;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 50px;
            color: white;
            font-size: 1.0625rem;
            font-family: inherit;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            min-height: 52px;
            box-sizing: border-box;
        }
        
        .input-status {
            position: absolute;
            right: 1rem;
            top: 50%;
            transform: translateY(-50%);
            width: 20px;
            height: 20px;
            border-radius: 50%;
            opacity: 0;
            transition: all 0.3s ease;
        }
        
        .input-status.valid {
            background: #22c55e;
            opacity: 1;
        }
        
        .input-status.invalid {
            background: #ef4444;
            opacity: 1;
        }
        
        .form-help {
            font-size: 0.875rem;
            color: rgba(255, 255, 255, 0.6);
            margin-top: 0.75rem;
            text-align: center;
            letter-spacing: 0.025rem;
        }
        
        input[type="url"]:focus,
        .input-wrapper input:focus {
            outline: 2px solid rgba(255, 255, 255, 0.8);
            outline-offset: 2px;
            background: rgba(255, 255, 255, 0.08);
            border-color: rgba(255, 255, 255, 0.4);
            transform: translateY(-2px);
        }
        
        input[type="url"]:disabled,
        .input-wrapper input:disabled {
            background: rgba(255, 255, 255, 0.02);
            border-color: rgba(255, 255, 255, 0.1);
            color: rgba(255, 255, 255, 0.4);
            cursor: not-allowed;
            transform: none;
        }
        
        input[type="url"]:disabled::placeholder,
        .input-wrapper input:disabled::placeholder {
            color: rgba(255, 255, 255, 0.2);
        }
        
        input[type="url"]::placeholder,
        .input-wrapper input::placeholder {
            color: rgba(255, 255, 255, 0.4);
        }
        
        .supported-platforms {
            margin-top: 3rem;
            margin-bottom: 3rem;
            text-align: center;
            padding: 2rem;
            background: rgba(255, 255, 255, 0.02);
            border: 1px solid rgba(255, 255, 255, 0.05);
            border-radius: 20px;
            transition: all 0.3s ease;
        }
        
        .supported-platforms:hover {
            background: rgba(255, 255, 255, 0.04);
            border-color: rgba(255, 255, 255, 0.1);
        }
        
        .platforms-label {
            font-size: 0.875rem;
            font-weight: 600;
            letter-spacing: 0.1rem;
            text-transform: uppercase;
            margin-bottom: 1.5rem;
            opacity: 0.8;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
        }
        
        .platforms-label::before {
            content: '✓';
            display: inline-block;
            width: 20px;
            height: 20px;
            background: rgba(34, 197, 94, 0.2);
            color: #22c55e;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.75rem;
            font-weight: bold;
        }
        
        .platform-stats {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 2rem;
            margin-top: 2rem;
            padding-top: 2rem;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
        }
        
        .stat-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 0.5rem;
        }
        
        .stat-number {
            font-size: 1.5rem;
            font-weight: 700;
            color: #22c55e;
            letter-spacing: 0.05rem;
        }
        
        .stat-label {
            font-size: 0.75rem;
            font-weight: 500;
            letter-spacing: 0.1rem;
            text-transform: uppercase;
            opacity: 0.7;
        }
        
        .stat-divider {
            width: 1px;
            height: 30px;
            background: rgba(255, 255, 255, 0.2);
        }
        
        .platform-icons {
            display: flex;
            justify-content: center;
            gap: 2rem;
            flex-wrap: wrap;
        }
        
        .platform-icon {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 0.5rem;
            padding: 1rem;
            transition: all 0.3s ease;
            cursor: pointer;
            min-width: 80px;
            border-radius: 12px;
            position: relative;
        }

        .platform-icon:focus {
            outline: 2px solid rgba(255, 255, 255, 0.6);
            outline-offset: 2px;
        }

        .platform-icon:hover {
            transform: translateY(-2px);
        }

        .platform-icon svg,
        .platform-icon img {
            width: 32px;
            height: 32px;
            transition: all 0.3s ease;
            /* Ambient glow around the icon itself */
            filter: drop-shadow(0 0 8px rgba(189, 0, 27, 0.3))
                    drop-shadow(0 0 16px rgba(189, 0, 27, 0.2))
                    drop-shadow(0 0 24px rgba(189, 0, 27, 0.1));
        }

        .platform-icon:hover svg,
        .platform-icon:hover img {
            transform: scale(1.1);
            /* Enhanced glow on hover */
            filter: drop-shadow(0 0 10px rgba(189, 0, 27, 0.5))
                    drop-shadow(0 0 20px rgba(189, 0, 27, 0.3))
                    drop-shadow(0 0 30px rgba(189, 0, 27, 0.2));
        }
        
        .platform-icon span {
            font-size: 0.75rem;
            font-weight: 500;
            letter-spacing: 0.05rem;
            text-transform: uppercase;
            opacity: 0.7;
            transition: all 0.3s ease;
        }
        
        .platform-icon:hover span {
            opacity: 1;
        }
        
        /* Platform-specific colors */
        .platform-icon:nth-child(1) svg {
            fill: #FF0000; /* YouTube Red */
        }
        
        .platform-icon:nth-child(2) svg {
            fill: #625DF5; /* Loom Purple */
        }
        
        .platform-icon:nth-child(3) svg {
            fill: #E4405F; /* Instagram Pink */
        }
        
        .platform-icon:nth-child(4) svg {
            fill: #000000; /* TikTok Black */
        }
        
        .platform-icon:nth-child(5) svg {
            fill: #4285F4; /* Google Drive Blue */
        }
        
        .options-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 2rem;
            margin-bottom: 3rem;
        }
        
        @media (max-width: 600px) {
            .options-grid {
                grid-template-columns: 1fr;
            }
            
            .input-button-row {
                flex-direction: column;
                gap: 1rem;
            }
            
            .submit-btn {
                width: 100%;
                min-width: unset;
            }
        }
        
        .option-card {
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 20px;
            padding: 2rem;
            transition: all 0.3s ease;
        }
        
        .option-card:hover {
            background: rgba(255, 255, 255, 0.08);
            border-color: rgba(255, 255, 255, 0.2);
            transform: translateY(-2px);
        }
        
        .checkbox-group {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            margin-bottom: 0.5rem;
        }
        
        input[type="checkbox"] {
            width: 24px;
            height: 24px;
            cursor: pointer;
            accent-color: white;
        }
        
        .checkbox-label {
            font-size: 1rem;
            font-weight: 500;
            text-transform: none;
            letter-spacing: normal;
        }
        
        input[type="number"] {
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 8px;
            padding: 0.5rem 0.75rem;
            color: white;
            font-size: 1rem;
            width: 80px;
            margin-left: 0.5rem;
        }
        
        input[type="number"]:focus {
            outline: none;
            border-color: rgba(255, 255, 255, 0.4);
        }
        
        .submit-btn {
            padding: 1.25rem 3rem;
            background: rgba(255, 255, 255, 0.1);
            color: white;
            border: 1px solid rgba(255, 255, 255, 0.3);
            border-radius: 50px;
            font-weight: 600;
            font-size: 1rem;
            letter-spacing: 0.1rem;
            text-transform: uppercase;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            overflow: hidden;
            white-space: nowrap;
            min-width: 180px;
        }
        
        .submit-btn::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 0;
            height: 0;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 50%;
            transform: translate(-50%, -50%);
            transition: width 0.6s, height 0.6s;
        }
        
        .submit-btn:hover::before {
            width: 300px;
            height: 300px;
        }
        
        .submit-btn:hover {
            background: rgba(255, 255, 255, 0.15);
            transform: translateY(-2px);
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
        }
        
        .submit-btn:focus {
            outline: 2px solid rgba(255, 255, 255, 0.8);
            outline-offset: 2px;
        }
        
        .submit-btn:disabled {
            opacity: 0.5;
            cursor: not-allowed;
            transform: none;
        }
        
        .loading-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.85);
            backdrop-filter: blur(8px);
            display: none;
            justify-content: center;
            align-items: center;
            z-index: 1000;
            animation: fadeIn 0.3s ease;
        }
        
        .loading-overlay.show {
            display: flex;
        }
        
        .loading {
            text-align: center;
            padding: 4rem 3rem;
            background: rgba(0, 0, 0, 0.8);
            backdrop-filter: blur(20px);
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 30px;
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
            max-width: 400px;
            width: 90%;
            position: relative;
            animation: slideUpScale 0.6s cubic-bezier(0.4, 0, 0.2, 1);
        }
        
        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }
        
        @keyframes slideUpScale {
            from { 
                opacity: 0;
                transform: translateY(30px) scale(0.9);
            }
            to { 
                opacity: 1;
                transform: translateY(0) scale(1);
            }
        }
        
        .spinner-container {
            position: relative;
            display: inline-block;
            margin-bottom: 2rem;
        }
        
        .spinner {
            display: inline-block;
            width: 60px;
            height: 60px;
            border: 3px solid rgba(255, 255, 255, 0.1);
            border-radius: 50%;
            border-top-color: white;
            border-right-color: rgba(255, 255, 255, 0.6);
            animation: spin 1.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
        }
        
        .spinner::after {
            content: '';
            position: absolute;
            top: 6px;
            left: 6px;
            right: 6px;
            bottom: 6px;
            border: 2px solid transparent;
            border-top-color: rgba(255, 255, 255, 0.8);
            border-radius: 50%;
            animation: spin 0.8s cubic-bezier(0.4, 0, 0.2, 1) infinite reverse;
        }
        
        @keyframes spin {
            to { transform: rotate(360deg); }
        }
        
        .loading-text {
            font-size: 1.1rem;
            letter-spacing: 0.1rem;
            text-transform: uppercase;
            opacity: 0.9;
            margin-bottom: 0.5rem;
            font-weight: 500;
        }
        
        .loading-subtext {
            font-size: 0.875rem;
            letter-spacing: 0.05rem;
            opacity: 0.6;
            line-height: 1.6;
        }
        
        .loading-tip {
            font-size: 0.75rem;
            letter-spacing: 0.05rem;
            opacity: 0.4;
            margin-top: 1.5rem;
            font-style: italic;
        }
        
        .processing-steps {
            display: flex;
            flex-direction: column;
            gap: 0.75rem;
            margin-bottom: 2rem;
            padding: 1.5rem;
            background: rgba(255, 255, 255, 0.05);
            border-radius: 15px;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }
        
        .process-step {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            padding: 0.75rem;
            border-radius: 8px;
            opacity: 0.3;
            transition: all 0.5s ease;
            position: relative;
        }
        
        .process-step.active {
            opacity: 1;
            background: rgba(255, 255, 255, 0.1);
            transform: translateX(5px);
        }
        
        .process-step.completed {
            opacity: 0.7;
            background: rgba(34, 197, 94, 0.1);
        }
        
        .step-icon {
            font-size: 1.2rem;
            width: 32px;
            height: 32px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.1);
            transition: all 0.3s ease;
        }
        
        .process-step.active .step-icon {
            background: rgba(255, 255, 255, 0.2);
            animation: pulse 2s infinite;
        }
        
        .process-step.completed .step-icon {
            background: rgba(34, 197, 94, 0.3);
        }
        
        .step-text {
            font-size: 0.875rem;
            font-weight: 500;
            letter-spacing: 0.05rem;
        }
        
        @keyframes pulse {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.05); }
        }
        
        .progress-dots {
            display: inline-block;
            margin-left: 0.5rem;
        }
        
        .progress-dots::after {
            content: '';
            animation: dots 1.5s steps(4, end) infinite;
        }
        
        @keyframes dots {
            0%, 20% {
                content: '';
            }
            40% {
                content: '.';
            }
            60% {
                content: '..';
            }
            80%, 100% {
                content: '...';
            }
        }
        
        .queue-header {
            text-align: center;
            margin-bottom: 2rem;
            padding: 1.5rem;
            background: rgba(255, 255, 255, 0.02);
            border-radius: 20px;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .queue-title {
            font-size: 1.5rem;
            font-weight: 300;
            letter-spacing: 0.2rem;
            text-transform: uppercase;
            margin-bottom: 0.5rem;
        }

        .queue-subtitle {
            font-size: 0.875rem;
            opacity: 0.7;
            letter-spacing: 0.05rem;
        }

        .queue-filters {
            display: flex;
            flex-wrap: wrap;
            gap: 0.75rem;
            margin-top: 1.5rem;
            justify-content: center;
        }

        .filter-btn {
            padding: 0.5rem 1rem;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 20px;
            color: white;
            font-size: 0.875rem;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s ease;
            letter-spacing: 0.05rem;
            /* Subtle glow on the text itself */
            text-shadow:
                0 0 8px rgba(189, 0, 27, 0.3),
                0 0 16px rgba(189, 0, 27, 0.2),
                0 0 24px rgba(189, 0, 27, 0.1);
        }

        .filter-btn:hover {
            background: rgba(255, 255, 255, 0.1);
            border-color: rgba(255, 255, 255, 0.3);
            transform: translateY(-2px);
            /* Ambient glow around entire pill */
            box-shadow:
                0 0 15px rgba(189, 0, 27, 0.4),
                0 0 30px rgba(189, 0, 27, 0.2),
                0 0 45px rgba(189, 0, 27, 0.1);
        }

        .filter-btn.active {
            background: rgba(255, 255, 255, 0.15);
            border-color: rgba(255, 255, 255, 0.4);
            font-weight: 600;
            /* Stronger ambient glow when active */
            box-shadow:
                0 0 20px rgba(189, 0, 27, 0.6),
                0 0 40px rgba(189, 0, 27, 0.4),
                0 0 60px rgba(189, 0, 27, 0.2);
        }

        .filter-btn:focus {
            outline: 2px solid rgba(255, 255, 255, 0.6);
            outline-offset: 2px;
        }

        .queue-list {
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }

        .queue-item {
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 20px;
            padding: 1.5rem;
            transition: all 0.3s ease;
            cursor: pointer;
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            gap: 1.5rem;
        }

        .queue-item:hover {
            background: rgba(255, 255, 255, 0.08);
            border-color: rgba(255, 255, 255, 0.2);
            transform: translateX(5px);
        }

        .queue-item.completed {
            border-color: rgba(34, 197, 94, 0.3);
        }

        .queue-item.in-progress {
            border-color: rgba(255, 193, 7, 0.4);
            box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.15);
            animation: pulse-border 2.2s ease-in-out infinite;
        }

        .queue-item.failed {
            border-color: rgba(239, 68, 68, 0.3);
        }

        @keyframes pulse-border {
            0%, 100% {
                border-color: rgba(255, 193, 7, 0.35);
                box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.12);
            }
            50% {
                border-color: rgba(255, 193, 7, 0.65);
                box-shadow: 0 0 20px 2px rgba(255, 193, 7, 0.2);
            }
        }

        .queue-item-info {
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
            flex: 1;
            min-width: 0; /* Allows flex item to shrink */
            overflow: hidden; /* Prevents content from overflowing */
        }

        .queue-item-name {
            font-weight: 600;
            font-size: 1rem;
            letter-spacing: 0.05rem;
            display: flex;
            align-items: center;
            gap: 0.75rem;
            min-width: 0; /* Allows flex item to shrink below content size */
        }

        .queue-item-name-text {
            flex: 1;
            min-width: 0; /* Allows text truncation */
            overflow: hidden;
            text-overflow: ellipsis;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            line-height: 1.4;
            max-height: 2.8em; /* 2 lines * 1.4 line-height */
            white-space: normal;
        }
        
        .queue-item-url {
            font-size: 0.875rem;
            opacity: 0.7;
            word-break: break-all;
            overflow: hidden;
            text-overflow: ellipsis;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            line-height: 1.4;
            max-height: 2.8em; /* 2 lines * 1.4 line-height */
        }

        .queue-item-timing {
            display: flex;
            justify-content: flex-start;
            align-items: center;
            margin-top: 0.5rem;
            gap: 0.75rem;
        }

        .queue-item-video-duration {
            font-size: 0.8rem;
            color: rgba(59, 130, 246, 0.9);
            font-weight: 500;
            padding: 0.25rem 0.5rem;
            background: rgba(59, 130, 246, 0.1);
            border-radius: 12px;
            display: inline-block;
            width: fit-content;
        }

        .queue-item-process-time {
            font-size: 0.8rem;
            color: rgba(34, 197, 94, 0.9);
            font-weight: 500;
            padding: 0.25rem 0.5rem;
            background: rgba(34, 197, 94, 0.1);
            border-radius: 12px;
            display: inline-block;
            width: fit-content;
        }
        .queue-item-property-type {
            font-size: 0.8rem;
            color: rgba(156, 163, 175, 0.9);
            font-weight: 500;
            padding: 0.25rem 0.5rem;
            background: rgba(156, 163, 175, 0.1);
            border-radius: 12px;
            display: inline-block;
            width: fit-content;
        }

        .platform-logo {
            width: 20px;
            height: 20px;
            flex-shrink: 0;
            border-radius: 4px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .platform-logo.youtube {
            background: #FF0000;
        }

        .platform-logo.tiktok {
            background: #000000;
        }

        .platform-logo.instagram {
            background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
        }

        .platform-logo.loom {
            background: #625DF5;
        }

        .platform-logo.googledrive {
            background: #4285F4;
        }

        .platform-logo.threads {
            background: #000000;
        }

        .platform-logo.unknown {
            background: rgba(255, 255, 255, 0.2);
        }

        .queue-item-status {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            margin-left: 1rem;
        }

        .status-badge {
            padding: 0.5rem 1rem;
            border-radius: 50px;
            font-size: 0.75rem;
            font-weight: 600;
            letter-spacing: 0.1rem;
            text-transform: uppercase;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .status-badge.completed {
            background: rgba(34, 197, 94, 0.2);
            color: #22c55e;
        }

        .status-badge.in-progress {
            background: rgba(255, 193, 7, 0.2);
            color: #ffc107;
        }

        .status-badge.pending {
            background: rgba(156, 163, 175, 0.2);
            color: #9ca3af;
        }

        .status-badge.failed {
            background: rgba(239, 68, 68, 0.2);
            color: #ef4444;
        }

        .status-icon {
            width: 12px;
            height: 12px;
            border-radius: 50%;
        }

        .status-icon.completed {
            background: #22c55e;
        }

        .status-icon.in-progress {
            background: #ffc107;
            animation: pulse 2s infinite;
        }

        .status-icon.pending {
            background: #9ca3af;
        }

        .status-icon.failed {
            background: #ef4444;
        }

        .empty-queue {
            text-align: center;
            padding: 4rem 2rem;
            opacity: 0.6;
        }

        .empty-queue-icon {
            font-size: 4rem;
            margin-bottom: 1rem;
            opacity: 0.3;
        }

        .empty-queue-text {
            font-size: 1.1rem;
            font-weight: 300;
            letter-spacing: 0.05rem;
        }

        /* Queue Pagination Styles */
        .queue-pagination {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 1rem;
            padding: 1.5rem;
            margin-top: 1rem;
            background: rgba(255, 255, 255, 0.03);
            border-radius: 12px;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .pagination-btn {
            padding: 0.75rem 1.5rem;
            background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(59, 130, 246, 0.3));
            border: 1px solid rgba(139, 92, 246, 0.5);
            border-radius: 8px;
            color: #fff;
            font-size: 0.9rem;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .pagination-btn:hover:not(:disabled):not(.disabled) {
            background: linear-gradient(135deg, rgba(139, 92, 246, 0.5), rgba(59, 130, 246, 0.5));
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
        }

        .pagination-btn:disabled,
        .pagination-btn.disabled {
            opacity: 0.4;
            cursor: not-allowed;
            background: rgba(255, 255, 255, 0.1);
            border-color: rgba(255, 255, 255, 0.2);
            transform: none;
        }

        .pagination-info {
            color: rgba(255, 255, 255, 0.7);
            font-size: 0.9rem;
            font-weight: 400;
        }

        @media (max-width: 640px) {
            .queue-pagination {
                flex-direction: column;
                gap: 0.75rem;
            }

            .pagination-btn {
                width: 100%;
                text-align: center;
            }
        }

        @keyframes slideUp {
            from {
                opacity: 0;
                transform: translateY(20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        .result-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.75);
            backdrop-filter: blur(3px);
            z-index: 2000;
            justify-content: center;
            align-items: center;
            padding: 2rem;
            overflow-y: auto;
        }

        .result-modal.active {
            display: flex;
        }

        .result-modal-content {
            background: rgba(0, 0, 0, 0.8);
            backdrop-filter: blur(20px);
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 30px;
            padding: 3rem;
            max-width: 95%;
            max-height: 95%;
            width: 1400px;
            overflow-y: auto;
            position: relative;
            animation: slideUpScale 0.6s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .result-modal-close {
            position: absolute;
            top: 2rem;
            right: 2rem;
            background: rgba(255, 255, 255, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 50%;
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s ease;
            color: white;
            font-size: 1.5rem;
        }

        .result-modal-close:hover {
            background: rgba(255, 255, 255, 0.15);
            transform: scale(1.1);
        }

        /* Custom scrollbar styling for result modal */
        .result-modal::-webkit-scrollbar,
        .result-modal-content::-webkit-scrollbar {
            width: 8px;
        }

        .result-modal::-webkit-scrollbar-track,
        .result-modal-content::-webkit-scrollbar-track {
            background: rgba(255, 255, 255, 0.05);
            border-radius: 4px;
        }

        .result-modal::-webkit-scrollbar-thumb,
        .result-modal-content::-webkit-scrollbar-thumb {
            background: rgba(255, 255, 255, 0.2);
            border-radius: 4px;
            transition: background 0.3s ease;
        }

        .result-modal::-webkit-scrollbar-thumb:hover,
        .result-modal-content::-webkit-scrollbar-thumb:hover {
            background: rgba(255, 255, 255, 0.3);
        }

        /* Firefox scrollbar styling */
        .result-modal,
        .result-modal-content {
            scrollbar-width: thin;
            scrollbar-color: rgba(255, 255, 255, 0.2) rgba(255, 255, 255, 0.05);
        }

        .result-header {
            text-align: center;
            margin-bottom: 3rem;
            padding: 2rem;
            background: rgba(255, 255, 255, 0.02);
            border-radius: 20px;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }
        
        .success-badge {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            background: rgba(34, 197, 94, 0.2);
            color: #22c55e;
            padding: 0.5rem 1rem;
            border-radius: 50px;
            font-size: 0.875rem;
            font-weight: 600;
            letter-spacing: 0.05rem;
            text-transform: uppercase;
            margin-bottom: 1.5rem;
        }
        
        .error-badge {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            background: rgba(239, 68, 68, 0.2);
            color: #ef4444;
            padding: 0.5rem 1rem;
            border-radius: 50px;
            font-size: 0.875rem;
            font-weight: 600;
            letter-spacing: 0.05rem;
            text-transform: uppercase;
            margin-bottom: 1.5rem;
        }
        
        .result-header h2 {
            font-size: 2.5rem;
            font-weight: 300;
            letter-spacing: 0.3rem;
            text-transform: uppercase;
            margin-bottom: 2rem;
        }
        
        .result-stats {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 2rem;
            margin-top: 1.5rem;
        }
        
        .result-stat {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 0.5rem;
        }
        
        .result-stat .stat-number {
            font-size: 2rem;
            font-weight: 700;
            color: #22c55e;
            letter-spacing: 0.05rem;
        }
        
        .result-stat .stat-label {
            font-size: 0.75rem;
            font-weight: 500;
            letter-spacing: 0.1rem;
            text-transform: uppercase;
            opacity: 0.7;
        }

        /* Loading skeleton styles */
        .skeleton {
            background: linear-gradient(90deg, rgba(255,255,255,0.1) 25%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0.1) 75%);
            background-size: 200% 100%;
            animation: skeleton-loading 1.5s infinite;
            border-radius: 8px;
        }

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

        .skeleton-header {
            height: 40px;
            width: 60%;
            margin: 0 auto 2rem auto;
        }

        .skeleton-stats {
            display: flex;
            justify-content: center;
            gap: 2rem;
            margin-bottom: 3rem;
        }

        .skeleton-stat {
            height: 60px;
            width: 80px;
        }

        .skeleton-buttons {
            display: flex;
            justify-content: center;
            gap: 1rem;
            margin-bottom: 3rem;
        }

        .skeleton-button {
            height: 50px;
            width: 150px;
            border-radius: 25px;
        }

        .skeleton-table {
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }

        .skeleton-row {
            display: grid;
            grid-template-columns: 100px 300px 1fr;
            gap: 2rem;
            align-items: center;
            padding: 1.5rem;
            background: rgba(255, 255, 255, 0.02);
            border-radius: 15px;
        }

        .skeleton-frame-number {
            height: 24px;
            width: 40px;
        }

        .skeleton-image {
            height: 150px;
            width: 100%;
        }

        .skeleton-text {
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
        }

        .skeleton-text-line {
            height: 16px;
        }

        .skeleton-text-line:nth-child(1) { width: 100%; }
        .skeleton-text-line:nth-child(2) { width: 80%; }
        .skeleton-text-line:nth-child(3) { width: 60%; }
        
        .copy-section {
            text-align: center;
            margin-bottom: 2rem;
        }
        
        .action-buttons {
            display: flex;
            justify-content: center;
            gap: 1rem;
            flex-wrap: wrap;
        }
        
        .copy-btn {
            display: inline-flex;
            align-items: center;
            gap: 0.75rem;
            padding: 1rem 2rem;
            background: rgba(255, 255, 255, 0.1);
            color: white;
            border: 1px solid rgba(255, 255, 255, 0.3);
            border-radius: 50px;
            font-weight: 600;
            font-size: 0.875rem;
            letter-spacing: 0.1rem;
            text-transform: uppercase;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            overflow: hidden;
        }
        
        .copy-btn::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 0;
            height: 0;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 50%;
            transform: translate(-50%, -50%);
            transition: width 0.6s, height 0.6s;
        }
        
        .copy-btn:hover::before {
            width: 300px;
            height: 300px;
        }
        
        .copy-btn:hover {
            background: rgba(255, 255, 255, 0.15);
            transform: translateY(-2px);
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
        }
        
        .copy-btn:active {
            transform: translateY(0);
        }
        
        .copy-btn.copied {
            background: rgba(34, 197, 94, 0.2);
            border-color: rgba(34, 197, 94, 0.5);
            color: #22c55e;
        }
        
        .copy-icon {
            width: 18px;
            height: 18px;
            transition: transform 0.3s ease;
        }
        
        .copy-btn:hover .copy-icon {
            transform: scale(1.1);
        }
        
        .copy-btn.copied .copy-icon {
            transform: scale(1.2);
        }
        
        .success-icon, .error-icon {
            display: none;
        }
        
        /* Table Styles */
        .frames-table {
            background: rgba(0, 0, 0, 0.4);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 20px;
            overflow: hidden;
            padding: 2rem;
        }
        
        .table-header {
            display: grid;
            grid-template-columns: 100px 300px 1fr;
            padding: 1.5rem 2rem;
            background: rgba(255, 255, 255, 0.05);
            border-radius: 15px;
            margin-bottom: 2rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.1rem;
            font-size: 0.875rem;
            opacity: 0.8;
        }
        
        .frame-row {
            display: grid;
            grid-template-columns: 100px 300px 1fr;
            padding: 1.5rem 2rem;
            margin-bottom: 1.5rem;
            background: rgba(255, 255, 255, 0.02);
            border: 1px solid rgba(255, 255, 255, 0.05);
            border-radius: 15px;
            transition: all 0.3s ease;
            align-items: center;
        }
        
        .frame-row:hover {
            background: rgba(255, 255, 255, 0.05);
            border-color: rgba(255, 255, 255, 0.1);
            transform: translateX(5px);
        }
        
        .frame-number {
            font-size: 1.25rem;
            font-weight: 300;
            opacity: 0.6;
            letter-spacing: 0.1rem;
        }
        
        .frame-image-container {
            position: relative;
            overflow: hidden;
            border-radius: 10px;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }
        
        .frame-image {
            width: 100%;
            max-height: 200px;
            object-fit: contain;
            cursor: pointer;
            transition: transform 0.3s ease;
            background: rgba(255, 255, 255, 0.05);
        }
        
        .frame-image:hover {
            transform: scale(1.05);
        }
        
        .transcript-text {
            font-size: 0.95rem;
            line-height: 1.7;
            padding-left: 2rem;
            opacity: 0.85;
            letter-spacing: 0.02rem;
        }

        /* Longform content styles */
        .longform-chunk {
            border-left: none;
            grid-template-columns: 1fr;
            display: block;
            background: rgba(255, 255, 255, 0.02);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 16px;
            padding: 0;
            margin-bottom: 2rem;
            overflow: hidden;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
            backdrop-filter: blur(10px);
        }

        .longform-chunk:hover {
            border-color: rgba(34, 197, 94, 0.3);
            transform: none;
        }

        .longform-chunk-header {
            background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(34, 197, 94, 0.05));
            padding: 1.5rem 2rem;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 1rem;
        }

        .longform-chunk-info {
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
            align-items: flex-start;
        }

        .longform-chunk-number {
            background: rgba(34, 197, 94, 0.2);
            color: #22c55e;
            padding: 0.5rem 1rem;
            border-radius: 8px;
            font-weight: 600;
            font-size: 0.9rem;
            text-align: center;
            letter-spacing: 0.5px;
        }

        .longform-chunk-timerange {
            background: rgba(255, 255, 255, 0.05);
            color: rgba(255, 255, 255, 0.8);
            padding: 0.25rem 0.75rem;
            border-radius: 6px;
            font-size: 0.8rem;
            font-family: 'SF Mono', Consolas, monospace;
            font-weight: 500;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .longform-chunk-title {
            font-size: 1.1rem;
            font-weight: 500;
            color: rgba(255, 255, 255, 0.9);
            margin: 0;
        }

        .longform-chunk-body {
            padding: 2rem;
        }

        .longform-section {
            margin-bottom: 2rem;
        }

        .longform-section-title {
            font-size: 1rem;
            font-weight: 600;
            color: #22c55e;
            margin-bottom: 1rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .longform-section-title::before {
            content: '';
            width: 4px;
            height: 16px;
            background: #22c55e;
            border-radius: 2px;
        }

        .longform-images-container {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 1.5rem;
            margin-bottom: 2rem;
        }

        .longform-frame {
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 12px;
            padding: 1rem;
            transition: all 0.3s ease;
        }

        .longform-frame:hover {
            background: rgba(255, 255, 255, 0.05);
            border-color: rgba(34, 197, 94, 0.3);
            transform: translateY(-2px);
        }

        .longform-frame .frame-image-container {
            width: 100%;
            height: 160px;
            border-radius: 8px;
            overflow: hidden;
            margin-bottom: 0.75rem;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .longform-frame .frame-image {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.3s ease;
        }

        .longform-frame:hover .frame-image {
            transform: scale(1.02);
        }

        .frame-timestamp-info {
            width: 100%;
        }

        .timestamp-value {
            font-size: 0.9rem;
            font-weight: 700;
            color: #22c55e;
            background: rgba(34, 197, 94, 0.1);
            padding: 0.25rem 0.5rem;
            border-radius: 6px;
            display: inline-block;
            margin-bottom: 0.5rem;
            font-family: 'SF Mono', Consolas, monospace;
        }

        .visual-context {
            font-size: 0.85rem;
            color: rgba(255, 255, 255, 0.8);
            margin-bottom: 0.5rem;
            line-height: 1.4;
            font-weight: 500;
        }

        .frame-significance {
            font-size: 0.8rem;
            color: rgba(255, 255, 255, 0.6);
            line-height: 1.3;
            font-style: italic;
        }

        .longform-content {
            padding: 0;
        }

        .longform-narrative {
            background: linear-gradient(135deg, rgba(34, 197, 94, 0.08), rgba(34, 197, 94, 0.03));
            border: 1px solid rgba(34, 197, 94, 0.2);
            border-radius: 12px;
            padding: 1.5rem;
            margin-bottom: 0;
        }

        .longform-narrative-title {
            font-size: 1rem;
            font-weight: 600;
            color: #22c55e;
            margin-bottom: 0.75rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .longform-narrative-content {
            font-size: 1rem;
            line-height: 1.7;
            color: rgba(255, 255, 255, 0.9);
            margin: 0;
        }

        .longform-process {
            background: rgba(255, 255, 255, 0.02);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 12px;
            padding: 1.5rem;
            margin-bottom: 0;
        }

        .longform-process-title {
            font-size: 1rem;
            font-weight: 600;
            color: #22c55e;
            margin-bottom: 1rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .longform-process ol {
            margin: 0;
            padding-left: 1.5rem;
            counter-reset: step-counter;
        }

        .longform-process li {
            margin-bottom: 0.75rem;
            line-height: 1.5;
            font-size: 0.95rem;
            color: rgba(255, 255, 255, 0.85);
            position: relative;
            counter-increment: step-counter;
        }

        .longform-process li::marker {
            color: #22c55e;
            font-weight: 700;
        }

        .step-number {
            font-weight: 700;
            color: #22c55e;
        }

        .longform-metadata {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 1rem;
            margin-top: 1.5rem;
        }

        .longform-metadata-item {
            background: rgba(255, 255, 255, 0.02);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 8px;
            padding: 1rem;
        }

        .longform-metadata-title {
            font-size: 0.85rem;
            font-weight: 600;
            color: #22c55e;
            margin-bottom: 0.5rem;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .longform-metadata-content {
            font-size: 0.9rem;
            color: rgba(255, 255, 255, 0.8);
            line-height: 1.4;
        }

        .metadata-badge {
            display: inline-block;
            background: rgba(34, 197, 94, 0.15);
            color: #22c55e;
            padding: 0.25rem 0.5rem;
            border-radius: 12px;
            font-size: 0.8rem;
            font-weight: 500;
            margin: 0.125rem;
            border: 1px solid rgba(34, 197, 94, 0.3);
        }

        .metadata-badges-container {
            display: flex;
            flex-wrap: wrap;
            gap: 0.25rem;
            margin-top: 0.25rem;
        }

        /* License Modal Styles */
        .license-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.85);
            backdrop-filter: blur(5px);
            z-index: 3000;
            justify-content: center;
            align-items: center;
            padding: 2rem;
        }

        .license-modal.active {
            display: flex;
        }

        .license-modal-content {
            background: rgba(0, 0, 0, 0.9);
            backdrop-filter: blur(20px);
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 30px;
            padding: 3rem;
            max-width: 500px;
            width: 100%;
            position: relative;
            animation: slideUpScale 0.6s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .license-modal-header {
            text-align: center;
            margin-bottom: 2.5rem;
        }

        .license-icon {
            font-size: 4rem;
            margin-bottom: 1.5rem;
            animation: pulse 2s ease-in-out infinite;
        }

        @keyframes pulse {
            0%, 100% {
                transform: scale(1);
                opacity: 0.9;
            }
            50% {
                transform: scale(1.05);
                opacity: 1;
            }
        }

        .license-modal-header h2 {
            font-size: 1.75rem;
            font-weight: 300;
            letter-spacing: 0.1rem;
            margin-bottom: 1rem;
            text-transform: uppercase;
        }

        .license-description {
            font-size: 1rem;
            opacity: 0.7;
            line-height: 1.6;
            margin: 0;
        }

        .license-form-group {
            margin-bottom: 2rem;
        }

        .license-form-group label {
            display: block;
            font-size: 0.875rem;
            font-weight: 600;
            letter-spacing: 0.05rem;
            margin-bottom: 0.75rem;
            text-transform: uppercase;
            opacity: 0.9;
        }

        #licenseKeyInput {
            width: 100%;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 12px;
            padding: 1rem 1.25rem;
            font-size: 1rem;
            color: white;
            font-family: 'Courier New', monospace;
            letter-spacing: 0.1rem;
            transition: all 0.3s ease;
            text-align: center;
            font-weight: 600;
        }

        #licenseKeyInput:focus {
            outline: none;
            border-color: rgba(255, 255, 255, 0.4);
            background: rgba(255, 255, 255, 0.08);
            box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
        }

        #licenseKeyInput::placeholder {
            color: rgba(255, 255, 255, 0.3);
            letter-spacing: 0.05rem;
            font-family: 'Inter', sans-serif;
            font-weight: 400;
        }

        #licenseKeyInput.shake {
            animation: shake 0.5s ease-in-out;
        }

        @keyframes shake {
            0%, 100% { transform: translateX(0); }
            10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
            20%, 40%, 60%, 80% { transform: translateX(5px); }
        }

        .license-error {
            display: none;
            color: #ef4444;
            font-size: 0.875rem;
            margin-top: 0.75rem;
            padding: 0.75rem 1rem;
            background: rgba(239, 68, 68, 0.1);
            border: 1px solid rgba(239, 68, 68, 0.3);
            border-radius: 8px;
            text-align: center;
        }

        .license-submit-btn {
            width: 100%;
            background: rgba(255, 255, 255, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.3);
            border-radius: 50px;
            padding: 1rem 2rem;
            font-size: 1rem;
            font-weight: 600;
            letter-spacing: 0.1rem;
            text-transform: uppercase;
            color: white;
            cursor: pointer;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }

        .license-submit-btn:hover:not(:disabled) {
            background: rgba(255, 255, 255, 0.15);
            border-color: rgba(255, 255, 255, 0.4);
            transform: translateY(-2px);
            box-shadow: 0 10px 30px rgba(255, 255, 255, 0.1);
        }

        .license-submit-btn:active:not(:disabled) {
            transform: translateY(0);
        }

        .license-submit-btn:disabled {
            opacity: 0.6;
            cursor: not-allowed;
        }

        .license-submit-btn.success {
            background: rgba(34, 197, 94, 0.2);
            border-color: rgba(34, 197, 94, 0.5);
            color: #22c55e;
        }

        .license-footer {
            text-align: center;
            font-size: 0.75rem;
            opacity: 0.5;
            margin-top: 2rem;
            margin-bottom: 0;
        }

        /* Responsive Design for License Modal */
        @media (max-width: 768px) {
            .license-modal {
                padding: 1rem;
            }

            .license-modal-content {
                padding: 2rem 1.5rem;
            }

            .license-modal-header h2 {
                font-size: 1.5rem;
            }

            .license-icon {
                font-size: 3rem;
            }
        }

        /* Welcome Onboarding Styles */
        .welcome-onboarding {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.95);
            backdrop-filter: blur(5px);
            z-index: 3500;
            justify-content: center;
            align-items: center;
            padding: 2rem;
            opacity: 0;
            transition: opacity 0.4s ease;
        }

        .welcome-onboarding.active {
            display: flex;
            opacity: 1;
        }

        .welcome-content {
            background: rgba(0, 0, 0, 0.6);
            backdrop-filter: blur(20px);
            border: 1px solid rgba(255, 255, 255, 0.15);
            border-radius: 30px;
            padding: 4rem 3rem;
            max-width: 900px;
            width: 100%;
            position: relative;
            animation: slideUpScale 0.6s cubic-bezier(0.4, 0, 0.2, 1);
            text-align: center;
        }

        .welcome-brand-badge {
            display: inline-flex;
            align-items: center;
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 50px;
            padding: 0.5rem 1.5rem;
            margin-bottom: 2.5rem;
        }

        .welcome-badge-text {
            font-size: 0.875rem;
            font-weight: 600;
            letter-spacing: 0.1rem;
            text-transform: uppercase;
            opacity: 0.9;
        }

        .welcome-header {
            margin-bottom: 3.5rem;
        }

        .welcome-icon {
            font-size: 4rem;
            margin-bottom: 1.5rem;
            animation: pulse 2s ease-in-out infinite;
            filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.3));
        }

        .welcome-title {
            font-size: 3.5rem;
            font-weight: 300;
            letter-spacing: 0.3rem;
            margin-bottom: 1rem;
            text-transform: uppercase;
            line-height: 1.1;
            background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.8) 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .welcome-user {
            font-size: 1.1rem;
            font-weight: 400;
            letter-spacing: 0.05rem;
            opacity: 0.8;
            margin: 0 0 1.5rem 0;
            color: rgba(255, 255, 255, 0.9);
        }

        .welcome-subtitle {
            font-size: 1.1rem;
            font-weight: 400;
            letter-spacing: 0.05rem;
            opacity: 0.7;
            line-height: 1.6;
            max-width: 600px;
            margin: 0 auto;
        }

        .welcome-process-steps {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 2rem;
            margin-bottom: 3.5rem;
            flex-wrap: wrap;
        }

        .welcome-step {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 1rem;
            flex: 1;
            min-width: 200px;
            max-width: 250px;
            padding: 2rem 1.5rem;
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 20px;
            transition: all 0.3s ease;
        }

        .welcome-step:hover {
            background: rgba(255, 255, 255, 0.05);
            border-color: rgba(255, 255, 255, 0.2);
            transform: translateY(-5px);
            box-shadow: 0 10px 30px rgba(255, 255, 255, 0.1);
        }

        .welcome-step-number {
            width: 50px;
            height: 50px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: rgba(255, 255, 255, 0.1);
            border: 2px solid rgba(255, 255, 255, 0.3);
            border-radius: 50%;
            font-size: 1.5rem;
            font-weight: 600;
            color: white;
            transition: all 0.3s ease;
        }

        .welcome-step:hover .welcome-step-number {
            background: rgba(255, 255, 255, 0.15);
            border-color: rgba(255, 255, 255, 0.5);
            transform: scale(1.1);
        }

        .welcome-step-content {
            text-align: center;
        }

        .welcome-step-content h3 {
            font-size: 1.1rem;
            font-weight: 600;
            margin: 0 0 0.5rem 0;
            letter-spacing: 0.05rem;
        }

        .welcome-step-content p {
            font-size: 0.9rem;
            opacity: 0.7;
            line-height: 1.5;
            margin: 0;
        }

        .welcome-step-arrow {
            font-size: 2rem;
            opacity: 0.3;
            animation: slideRight 2s ease-in-out infinite;
        }

        @keyframes slideRight {
            0%, 100% {
                transform: translateX(0);
                opacity: 0.3;
            }
            50% {
                transform: translateX(5px);
                opacity: 0.6;
            }
        }

        .welcome-start-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            background: rgba(255, 255, 255, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.3);
            border-radius: 50px;
            padding: 1.25rem 3rem;
            font-size: 1.1rem;
            font-weight: 600;
            letter-spacing: 0.1rem;
            color: white;
            cursor: pointer;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }

        .welcome-start-btn:hover {
            background: rgba(255, 255, 255, 0.15);
            border-color: rgba(255, 255, 255, 0.4);
            transform: translateY(-2px);
            box-shadow: 0 15px 40px rgba(255, 255, 255, 0.15);
        }

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

        .welcome-start-btn::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 0;
            height: 0;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.1);
            transform: translate(-50%, -50%);
            transition: width 0.6s, height 0.6s;
        }

        .welcome-start-btn:hover::before {
            width: 300px;
            height: 300px;
        }

        .welcome-start-btn svg,
        .welcome-start-btn span {
            position: relative;
            z-index: 1;
        }

        .welcome-footer {
            text-align: center;
            font-size: 0.75rem;
            opacity: 0.5;
            margin-top: 3rem;
            margin-bottom: 0;
        }

        /* Responsive Design for Welcome Onboarding */
        @media (max-width: 768px) {
            .welcome-content {
                padding: 2.5rem 1.5rem;
            }

            .welcome-title {
                font-size: 2.2rem;
            }

            .welcome-icon {
                font-size: 3rem;
            }

            .welcome-user {
                font-size: 1rem;
            }

            .welcome-subtitle {
                font-size: 1rem;
            }

            .welcome-process-steps {
                flex-direction: column;
                gap: 1.5rem;
            }

            .welcome-step {
                max-width: 100%;
            }

            .welcome-step-arrow {
                transform: rotate(90deg);
                animation: slideDown 2s ease-in-out infinite;
            }

            @keyframes slideDown {
                0%, 100% {
                    transform: rotate(90deg) translateX(0);
                    opacity: 0.3;
                }
                50% {
                    transform: rotate(90deg) translateX(5px);
                    opacity: 0.6;
                }
            }

            .welcome-start-btn {
                width: 100%;
                padding: 1.25rem 2rem;
                font-size: 1rem;
            }
        }

        @media (max-width: 480px) {
            .welcome-title {
                font-size: 1.8rem;
                letter-spacing: 0.2rem;
            }

            .welcome-step {
                padding: 1.5rem 1rem;
            }

            .welcome-step-number {
                width: 40px;
                height: 40px;
                font-size: 1.2rem;
            }
        }

        /* Responsive Design for Longform */
        @media (max-width: 768px) {
            .longform-chunk-header {
                flex-direction: column;
                align-items: flex-start;
                gap: 0.75rem;
                padding: 1rem 1.5rem;
            }

            .longform-chunk-info {
                width: 100%;
            }

            .longform-chunk-number,
            .longform-chunk-timerange {
                align-self: flex-start;
            }

            .longform-chunk-title {
                font-size: 1rem;
            }

            .longform-chunk-body {
                padding: 1.5rem;
            }

            .longform-images-container {
                grid-template-columns: 1fr;
            }

            .longform-metadata {
                grid-template-columns: 1fr;
            }

            .longform-section-title {
                font-size: 0.9rem;
            }

            .longform-narrative {
                padding: 1rem;
            }

            .longform-process {
                padding: 1rem;
            }
        }

        @media (max-width: 480px) {
            .longform-chunk {
                margin-bottom: 1.5rem;
                border-radius: 12px;
            }

            .longform-chunk-header {
                padding: 0.75rem 1rem;
            }

            .longform-chunk-body {
                padding: 1rem;
            }

            .longform-frame .frame-image-container {
                height: 120px;
            }

            .longform-narrative-content,
            .longform-process li {
                font-size: 0.9rem;
            }
        }

        /* Focus and Accessibility */
        .longform-frame {
            cursor: pointer;
            position: relative;
        }

        .longform-frame:focus-within {
            outline: 2px solid #22c55e;
            outline-offset: 2px;
        }

        .longform-frame .frame-image {
            cursor: pointer;
        }

        .longform-frame .frame-image:focus {
            outline: 2px solid #22c55e;
            outline-offset: 2px;
        }

        /* Enhanced visual feedback */
        .longform-chunk {
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .longform-chunk:hover {
            box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
        }
        
        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.95);
            z-index: 3000;
            justify-content: center;
            align-items: center;
            cursor: pointer;
        }
        
        .modal.active {
            display: flex;
        }
        
        .modal-image {
            max-width: 90%;
            max-height: 90%;
            border-radius: 12px;
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
        }
        
        @media (max-width: 1024px) {
            .table-header,
            .frame-row {
                grid-template-columns: 80px 200px 1fr;
                padding: 1rem;
            }
            
            .frame-image {
                max-height: 120px;
            }
            
            .glass-panel {
                padding: 2rem;
            }
        }
        
        /* Tablet styles */
        @media (max-width: 1024px) {
            .container {
                margin: 1rem auto;
                padding: 0 0.5rem;
            }
            
            .glass-panel {
                padding: 3rem 2rem;
                border-radius: 24px;
            }
            
            h1 {
                font-size: 3rem;
                letter-spacing: 0.25rem;
            }
            
            .process-steps {
                gap: 1.5rem;
            }
            
            .result-modal-content {
                width: 90%;
                max-width: 90%;
                padding: 2.5rem;
            }
        }
        
        /* Mobile styles */
        @media (max-width: 768px) {
            body {
                padding: 0.5rem 0;
            }
            
            .container {
                margin: 0.5rem auto;
                padding: 0 0.75rem;
            }
            
            .glass-panel {
                padding: 2rem 1.5rem;
                border-radius: 20px;
            }
            
            .result-modal-content {
                width: 95%;
                max-width: 95%;
                padding: 2rem 1.5rem;
            }
            
            h1 {
                font-size: 2.2rem;
                letter-spacing: 0.15rem;
                line-height: 1.2;
                margin-bottom: 1rem;
            }
            
            .subtitle {
                font-size: 1rem;
                line-height: 1.5;
                margin: 0 auto 2rem auto;
            }
            
            .process-steps {
                gap: 1rem;
                flex-direction: row;
                justify-content: center;
                flex-wrap: wrap;
            }
            
            .step {
                min-width: 70px;
            }
            
            .step-number {
                width: 32px;
                height: 32px;
                font-size: 0.9rem;
            }
            
            .step span {
                font-size: 0.7rem;
            }
            
            .step-arrow {
                display: none;
            }
            
            .form-group {
                margin-bottom: 1.5rem;
            }
            
            .input-button-row {
                flex-direction: column;
                gap: 1rem;
            }
            
            .submit-btn {
                width: 100%;
                min-width: unset;
                padding: 1.125rem 2rem;
            }
            
            .platform-icons {
                gap: 1rem;
                justify-content: center;
            }
            
            .platform-icon {
                min-width: 65px;
                padding: 0.75rem 0.5rem;
            }
            
            .platform-icon svg {
                width: 26px;
                height: 26px;
            }
            
            .platform-icon span {
                font-size: 0.65rem;
            }
            
            .supported-platforms {
                padding: 1.5rem;
                margin-top: 2rem;
            }

            .queue-filters {
                gap: 0.5rem;
                margin-top: 1rem;
            }

            .filter-btn {
                padding: 0.4rem 0.75rem;
                font-size: 0.8rem;
            }

            .queue-item {
                padding: 1rem;
                flex-direction: column;
                align-items: flex-start;
                gap: 1rem;
            }

            .queue-item-info {
                width: 100%;
            }

            .queue-item-name {
                width: 100%;
            }

            .queue-item-name-text {
                font-size: 0.9rem;
            }

            .queue-item-url {
                font-size: 0.8rem;
                -webkit-line-clamp: 3;
                max-height: 4.2em;
            }

            .queue-item-status {
                width: 100%;
                margin-top: 0;
                margin-left: 0;
                justify-content: flex-start;
            }
            
            .action-buttons {
                flex-direction: column;
                gap: 0.75rem;
            }
            
            .copy-btn {
                min-width: unset;
                width: 100%;
                padding: 0.875rem 1.5rem;
                font-size: 0.8rem;
            }
            
            .result-header {
                padding: 1.5rem;
                margin-bottom: 2rem;
            }
            
            .result-header h2 {
                font-size: 2rem;
                letter-spacing: 0.2rem;
                margin-bottom: 1.5rem;
            }
            
            .result-stats {
                flex-direction: column;
                gap: 1rem;
            }
            
            .result-stat .stat-number {
                font-size: 1.5rem;
            }
            
            .table-header {
                display: none;
            }
            
            .frame-row {
                grid-template-columns: 1fr;
                gap: 1rem;
                padding: 1rem;
            }
            
            .transcript-text {
                padding-left: 0;
                font-size: 0.9rem;
            }
            
            .frame-image {
                max-height: 100px;
            }
        }
        
        /* Small mobile styles */
        @media (max-width: 480px) {
            .container {
                padding: 0 0.5rem;
            }
            
            .glass-panel {
                padding: 1.5rem 1rem;
                border-radius: 16px;
            }
            
            h1 {
                font-size: 1.8rem;
                letter-spacing: 0.1rem;
            }
            
            .subtitle {
                font-size: 0.9rem;
            }
            
            .brand-badge {
                padding: 0.375rem 1rem;
                font-size: 0.75rem;
                margin-bottom: 1.5rem;
            }
            
            .process-steps {
                padding: 1rem;
            }
            
            .step {
                min-width: 60px;
            }
            
            .step-number {
                width: 28px;
                height: 28px;
                font-size: 0.8rem;
            }
            
            .step span {
                font-size: 0.6rem;
            }
            
            .platform-icon {
                min-width: 55px;
                padding: 0.5rem;
            }
            
            .platform-icon svg {
                width: 22px;
                height: 22px;
            }
            
            .platform-icon span {
                font-size: 0.6rem;
            }
            
            .supported-platforms {
                padding: 1rem;
            }

            .queue-item {
                padding: 0.75rem;
            }

            .queue-item-name-text {
                font-size: 0.85rem;
            }

            .queue-item-url {
                font-size: 0.75rem;
            }
            
            .loading {
                padding: 2rem 1.5rem;
                max-width: 320px;
            }
            
            .processing-steps {
                padding: 1rem;
            }
            
            .process-step {
                padding: 0.5rem;
            }
            
            .step-icon {
                width: 28px;
                height: 28px;
                font-size: 1rem;
            }

            .skeleton-row {
                grid-template-columns: 1fr;
                gap: 1rem;
            }

            .skeleton-buttons {
                flex-direction: column;
            }

            .skeleton-button {
                width: 100%;
            }
        }

        /* Duplicate URL Confirmation Dialog */
        .duplicate-confirm-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.8);
            backdrop-filter: blur(4px);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 10000;
            opacity: 0;
            transition: opacity 0.2s ease;
        }

        .duplicate-confirm-overlay.active {
            opacity: 1;
        }

        .duplicate-confirm-modal {
            background: linear-gradient(135deg, rgba(30, 30, 30, 0.95) 0%, rgba(20, 20, 20, 0.98) 100%);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 16px;
            padding: 2rem;
            max-width: 420px;
            width: 90%;
            text-align: center;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
            transform: scale(0.9);
            transition: transform 0.2s ease;
        }

        .duplicate-confirm-overlay.active .duplicate-confirm-modal {
            transform: scale(1);
        }

        .duplicate-confirm-icon {
            color: #f59e0b;
            margin-bottom: 1rem;
        }

        .duplicate-confirm-icon svg {
            filter: drop-shadow(0 0 10px rgba(245, 158, 11, 0.3));
        }

        .duplicate-confirm-title {
            font-size: 1.5rem;
            font-weight: 600;
            color: #fff;
            margin-bottom: 1rem;
        }

        .duplicate-confirm-message {
            color: rgba(255, 255, 255, 0.7);
            font-size: 0.95rem;
            line-height: 1.5;
            margin-bottom: 0.5rem;
            word-break: break-all;
            overflow-wrap: break-word;
        }

        .duplicate-confirm-message strong {
            color: #fff;
            word-break: break-all;
            display: inline-block;
            max-width: 100%;
        }

        .duplicate-confirm-question {
            color: rgba(255, 255, 255, 0.9);
            font-size: 1rem;
            margin-bottom: 1.5rem;
        }

        .duplicate-confirm-buttons {
            display: flex;
            gap: 1rem;
            justify-content: center;
        }

        .duplicate-confirm-btn {
            padding: 0.75rem 1.5rem;
            border-radius: 8px;
            font-size: 0.95rem;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s ease;
            border: none;
            min-width: 120px;
        }

        .duplicate-confirm-cancel {
            background: rgba(255, 255, 255, 0.1);
            color: rgba(255, 255, 255, 0.8);
            border: 1px solid rgba(255, 255, 255, 0.2);
        }

        .duplicate-confirm-cancel:hover {
            background: rgba(255, 255, 255, 0.15);
            color: #fff;
        }

        .duplicate-confirm-reprocess {
            background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
            color: #fff;
            box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
        }

        .duplicate-confirm-reprocess:hover {
            background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
            box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
            transform: translateY(-1px);
        }

        @media (max-width: 480px) {
            .duplicate-confirm-modal {
                padding: 1.5rem;
            }

            .duplicate-confirm-buttons {
                flex-direction: column;
            }

            .duplicate-confirm-btn {
                width: 100%;
            }
        }

        /* Full Transcript Section */
        .full-transcript-section {
            margin-top: 2rem;
            margin-bottom: 2rem;
            background: linear-gradient(135deg, rgba(30, 30, 30, 0.6) 0%, rgba(20, 20, 20, 0.8) 100%);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 16px;
            padding: 1.5rem;
        }

        .full-transcript-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1rem;
            flex-wrap: wrap;
            gap: 1rem;
        }

        .full-transcript-title {
            font-size: 1.25rem;
            font-weight: 600;
            color: #fff;
            margin: 0;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .full-transcript-title::before {
            content: '📝';
        }

        .full-transcript-copy {
            flex-shrink: 0;
        }

        .full-transcript-content {
            background: rgba(0, 0, 0, 0.3);
            border: 1px solid rgba(255, 255, 255, 0.05);
            border-radius: 12px;
            padding: 1.25rem;
            color: rgba(255, 255, 255, 0.85);
            font-size: 0.95rem;
            line-height: 1.7;
            max-height: 300px;
            overflow-y: auto;
            white-space: pre-wrap;
            word-wrap: break-word;
        }

        .full-transcript-content::-webkit-scrollbar {
            width: 8px;
        }

        .full-transcript-content::-webkit-scrollbar-track {
            background: rgba(255, 255, 255, 0.05);
            border-radius: 4px;
        }

        .full-transcript-content::-webkit-scrollbar-thumb {
            background: rgba(255, 255, 255, 0.2);
            border-radius: 4px;
        }

        .full-transcript-content::-webkit-scrollbar-thumb:hover {
            background: rgba(255, 255, 255, 0.3);
        }

        @media (max-width: 768px) {
            .full-transcript-header {
                flex-direction: column;
                align-items: flex-start;
            }

            .full-transcript-copy {
                width: 100%;
            }

            .full-transcript-content {
                max-height: 250px;
                font-size: 0.9rem;
            }
        }

        /* Caption Text (Instagram/TikTok) */
        .caption-text {
            color: rgba(255, 255, 255, 0.5);
            font-size: 0.85rem;
            line-height: 1.5;
            margin: 0.25rem auto 1.25rem auto;
            padding: 0 2rem;
            text-align: center;
            max-width: 700px;
            font-weight: 400;
            letter-spacing: 0.01em;
        }

/* Delete button styling */
.delete-btn {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    padding: 0.5rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 0.5rem;
}

.delete-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.5);
    transform: scale(1.05);
}

.delete-btn:active {
    transform: scale(0.95);
}

.delete-btn svg {
    width: 16px;
    height: 16px;
}

.queue-item-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
