        /* Enhanced Drop Zone - feels alive and inviting */
        .drop-zone {
            background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
            border: 2px dashed #cbd5e1;
            transition: all 0.2s ease;
            position: relative;
        }
        .drop-zone::before {
            content: '';
            position: absolute;
            inset: 0;
            border-radius: inherit;
            opacity: 0;
            background: radial-gradient(circle at center, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
            transition: opacity 0.3s ease;
        }
        .drop-zone:hover {
            background: linear-gradient(180deg, #eff6ff 0%, #dbeafe 100%);
            border-color: #60a5fa;
            transform: scale(1.005);
            box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
        }
        .drop-zone:hover::before {
            opacity: 1;
        }
        .drop-zone.drag-over {
            background: linear-gradient(180deg, #dbeafe 0%, #bfdbfe 100%);
            border-color: #3b82f6;
            border-style: solid;
            transform: scale(1.01);
            box-shadow: 0 8px 24px rgba(59, 130, 246, 0.2);
        }
        .drop-zone.drag-over::before {
            opacity: 1;
        }
        /* Subtle pulse animation for drop zone icon */
        .drop-zone-icon {
            transition: transform 0.2s ease;
        }
        .drop-zone:hover .drop-zone-icon {
            transform: scale(1.05);
        }
        .drop-zone.drag-over .drop-zone-icon {
            animation: drop-zone-pulse 0.6s ease-in-out infinite;
        }
        @keyframes drop-zone-pulse {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.1); }
        }
        /* Searchable Select Styles */
        .search-select {
            position: relative;
        }
        .search-select-input {
            width: 100%;
            padding: 0.5rem 1rem;
            border: 1px solid #d1d5db;
            border-radius: 0.5rem;
            cursor: pointer;
            background: white;
        }
        .search-select-input:focus {
            outline: none;
            border-color: #3b82f6;
            box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
        }
        .search-select-dropdown {
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            background: white;
            border: 1px solid #d1d5db;
            border-radius: 0.5rem;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
            max-height: 300px;
            overflow-y: auto;
            z-index: 50;
            display: none;
        }
        .search-select-dropdown.open {
            display: block;
            animation: dropdown-in 0.15s ease-out;
        }
        @keyframes dropdown-in {
            from {
                opacity: 0;
                transform: translateY(-8px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        .search-select-search {
            width: 100%;
            padding: 0.5rem 1rem;
            border: none;
            border-bottom: 1px solid #e5e7eb;
            outline: none;
        }
        .search-select-option {
            padding: 0.5rem 1rem;
            cursor: pointer;
            font-size: 0.875rem;
        }
        .search-select-option:hover {
            background-color: #f3f4f6;
        }
        .search-select-option.selected {
            background-color: #eff6ff;
            color: #1d4ed8;
        }
        .search-select-option .subtitle {
            font-size: 0.75rem;
            color: #6b7280;
        }
        .status-badge {
            display: inline-block;
            padding: 0.125rem 0.5rem;
            border-radius: 9999px;
            font-size: 0.625rem;
            margin-left: 0.5rem;
        }
        .status-active { background: #dcfce7; color: #166534; }
        .status-paused { background: #fef3c7; color: #92400e; }
        .status-other { background: #f3f4f6; color: #4b5563; }

        /* Upload hero section - full height on desktop */
        @media (min-width: 1024px) {
            #upload-section {
                min-height: 400px;
            }
        }

        /* File approval modal */
        .file-card {
            position: relative;
            border: 2px solid transparent;
            border-radius: 0.5rem;
            overflow: hidden;
            transition: all 0.2s;
            cursor: pointer;
        }
        .file-card:hover {
            border-color: #d1d5db;
        }
        .file-card.selected {
            border-color: #3b82f6;
            background-color: #eff6ff;
        }
        .file-card .checkbox-wrapper {
            position: absolute;
            top: 0.5rem;
            left: 0.5rem;
            z-index: 10;
        }
        .file-card .thumbnail {
            width: 100%;
            height: 120px;
            object-fit: cover;
            background-color: #f3f4f6;
        }

        /* Toast notifications */
        .toast-container {
            position: fixed;
            top: 1rem;
            right: 1rem;
            z-index: 9999;
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
            max-width: 400px;
        }
        .toast {
            padding: 1rem 1.5rem;
            border-radius: 0.5rem;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
            animation: toast-in 0.3s ease-out;
            display: flex;
            align-items: flex-start;
            gap: 0.75rem;
        }
        .toast-success {
            background: #ecfdf5;
            border: 1px solid #a7f3d0;
            color: #065f46;
        }
        .toast-error {
            background: #fef2f2;
            border: 1px solid #fecaca;
            color: #991b1b;
        }
        .toast-info {
            background: #eff6ff;
            border: 1px solid #bfdbfe;
            color: #1e40af;
        }
        .toast-warning {
            background: #fffbeb;
            border: 1px solid #fde68a;
            color: #92400e;
        }
        .toast-icon {
            flex-shrink: 0;
            width: 1.25rem;
            height: 1.25rem;
        }
        .toast-content {
            flex: 1;
            font-size: 0.875rem;
            line-height: 1.4;
            white-space: pre-line;
        }
        .toast-close {
            flex-shrink: 0;
            cursor: pointer;
            opacity: 0.5;
            transition: opacity 0.2s;
        }
        .toast-close:hover {
            opacity: 1;
        }
        @keyframes toast-in {
            from {
                transform: translateX(100%);
                opacity: 0;
            }
            to {
                transform: translateX(0);
                opacity: 1;
            }
        }
        @keyframes toast-out {
            from {
                transform: translateX(0);
                opacity: 1;
            }
            to {
                transform: translateX(100%);
                opacity: 0;
            }
        }

        /* Dimmed state for upload section during ad set/campaign creation */
        .upload-section-dimmed {
            opacity: 0.4;
            pointer-events: none;
            filter: blur(2px);
            transition: all 0.3s ease;
        }

        /* Badge pulse animation for new items */
        @keyframes badge-pulse {
            0% { transform: scale(1); }
            50% { transform: scale(1.3); background-color: #22c55e; color: white; }
            100% { transform: scale(1); }
        }
        .badge-pulse {
            animation: badge-pulse 0.4s ease-out;
        }

        /* Queue item thumbnail hover overlay */
        .queue-thumbnail {
            position: relative;
            cursor: pointer;
        }
        .queue-thumbnail-overlay {
            position: absolute;
            inset: 0;
            background: rgba(0, 0, 0, 0.5);
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            transition: opacity 0.2s ease;
            border-radius: 0.25rem;
        }
        .queue-thumbnail:hover .queue-thumbnail-overlay {
            opacity: 1;
        }
        .queue-thumbnail-expand {
            color: white;
            width: 1.5rem;
            height: 1.5rem;
        }

        /* Preview modal */
        .preview-modal {
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.8);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 10000;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.2s ease, visibility 0.2s ease;
        }
        .preview-modal.active {
            opacity: 1;
            visibility: visible;
        }
        .preview-modal-content {
            position: relative;
            max-width: 80vw;
            max-height: 80vh;
            background: white;
            border-radius: 0.75rem;
            overflow: hidden;
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
            transform: scale(0.9);
            transition: transform 0.2s ease;
        }
        .preview-modal.active .preview-modal-content {
            transform: scale(1);
        }
        .preview-modal-media {
            max-width: 80vw;
            max-height: calc(80vh - 3rem);
            display: block;
        }
        .preview-modal-close {
            position: absolute;
            top: 0.75rem;
            right: 0.75rem;
            background: rgba(0, 0, 0, 0.6);
            color: white;
            border: none;
            border-radius: 50%;
            width: 2rem;
            height: 2rem;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: background 0.2s;
        }
        .preview-modal-close:hover {
            background: rgba(0, 0, 0, 0.8);
        }
        .preview-modal-filename {
            padding: 0.75rem 1rem;
            background: #f9fafb;
            font-size: 0.875rem;
            color: #374151;
            text-align: center;
            border-top: 1px solid #e5e7eb;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        /* Success Modal */
        .success-modal {
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.5);
            backdrop-filter: blur(4px);
            -webkit-backdrop-filter: blur(4px);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 10001;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.2s ease, visibility 0.2s ease;
        }
        .success-modal.active {
            opacity: 1;
            visibility: visible;
        }
        .success-modal-content {
            background: white;
            border-radius: 1rem;
            padding: 2rem;
            max-width: 28rem;
            width: 90%;
            text-align: center;
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
            transform: scale(0.9) translateY(10px);
            transition: transform 0.2s ease;
        }
        .success-modal.active .success-modal-content {
            transform: scale(1) translateY(0);
        }
        .success-modal-icon {
            width: 4rem;
            height: 4rem;
            background: linear-gradient(135deg, #10b981 0%, #059669 100%);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 1.25rem;
            box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
        }
        .success-modal.active .success-modal-icon {
            animation: success-icon-pop 0.4s ease-out;
            position: relative;
        }
        .success-modal-icon::after {
            content: '';
            position: absolute;
            inset: -4px;
            border-radius: 50%;
            border: 2px solid rgba(16, 185, 129, 0.3);
            opacity: 0;
        }
        .success-modal.active .success-modal-icon::after {
            animation: success-ring 0.6s ease-out 0.1s;
        }
        @keyframes success-icon-pop {
            0% { transform: scale(0); opacity: 0; }
            50% { transform: scale(1.15); }
            100% { transform: scale(1); opacity: 1; }
        }
        @keyframes success-ring {
            0% { transform: scale(0.8); opacity: 1; }
            100% { transform: scale(1.5); opacity: 0; }
        }
        .success-modal-icon svg {
            width: 2rem;
            height: 2rem;
            color: white;
        }
        .success-modal.active .success-modal-icon svg path {
            stroke-dasharray: 24;
            stroke-dashoffset: 24;
            animation: checkmark-draw 0.4s ease-out 0.2s forwards;
        }
        @keyframes checkmark-draw {
            to { stroke-dashoffset: 0; }
        }
        .success-modal-title {
            font-size: 1.25rem;
            font-weight: 600;
            color: #111827;
            margin-bottom: 0.5rem;
        }
        .success-modal-message {
            font-size: 0.9375rem;
            color: #6b7280;
            margin-bottom: 1.5rem;
            line-height: 1.5;
            word-break: break-word;
        }
        .success-modal-btn {
            background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
            color: white;
            border: none;
            padding: 0.75rem 2rem;
            border-radius: 0.5rem;
            font-size: 0.9375rem;
            font-weight: 500;
            cursor: pointer;
            transition: transform 0.15s ease, box-shadow 0.15s ease;
            box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
        }
        .success-modal-btn:hover {
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
        }
        .success-modal-btn:active {
            transform: translateY(0);
        }

        /* Warning Modal */
        .warning-modal {
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.5);
            backdrop-filter: blur(4px);
            -webkit-backdrop-filter: blur(4px);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 10002;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.2s ease, visibility 0.2s ease;
        }
        .warning-modal.active {
            opacity: 1;
            visibility: visible;
        }
        .warning-modal-content {
            background: white;
            border-radius: 1rem;
            padding: 2rem;
            max-width: 28rem;
            width: 90%;
            text-align: center;
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
            transform: scale(0.9) translateY(10px);
            transition: transform 0.2s ease;
        }
        .warning-modal.active .warning-modal-content {
            transform: scale(1) translateY(0);
        }
        .warning-modal-icon {
            width: 4rem;
            height: 4rem;
            background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 1.25rem;
            box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4);
        }
        .warning-modal-icon svg {
            width: 2rem;
            height: 2rem;
            color: white;
        }
        .warning-modal-title {
            font-size: 1.25rem;
            font-weight: 600;
            color: #111827;
            margin-bottom: 0.5rem;
        }
        .warning-modal-message {
            font-size: 0.9375rem;
            color: #6b7280;
            margin-bottom: 1.5rem;
            line-height: 1.5;
        }
        .warning-modal-buttons {
            display: flex;
            gap: 0.75rem;
            justify-content: center;
        }
        .warning-modal-btn-cancel {
            background: #f3f4f6;
            color: #374151;
            border: none;
            padding: 0.75rem 1.5rem;
            border-radius: 0.5rem;
            font-size: 0.9375rem;
            font-weight: 500;
            cursor: pointer;
            transition: background 0.15s ease;
        }
        .warning-modal-btn-cancel:hover {
            background: #e5e7eb;
        }
        .warning-modal-btn-confirm {
            background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
            color: white;
            border: none;
            padding: 0.75rem 1.5rem;
            border-radius: 0.5rem;
            font-size: 0.9375rem;
            font-weight: 500;
            cursor: pointer;
            transition: transform 0.15s ease, box-shadow 0.15s ease;
            box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
        }
        .warning-modal-btn-confirm:hover {
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
        }

        /* Queue Tab Styles */
        .queue-tab {
            transition: all 0.15s ease;
        }
        .queue-tab.active {
            border-color: #2563eb;
            color: #2563eb;
        }
        .queue-tab:not(.active):hover {
            border-color: #d1d5db;
        }

        /* Queue Item Animations */
        .queue-item {
            animation: queue-item-enter 0.25s ease-out;
            transition: all 0.2s ease;
        }
        .queue-item:hover {
            transform: translateX(2px);
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
        }
        @keyframes queue-item-enter {
            from {
                opacity: 0;
                transform: translateX(20px);
            }
            to {
                opacity: 1;
                transform: translateX(0);
            }
        }
        .queue-item-exit {
            animation: queue-item-exit 0.2s ease-in forwards;
        }
        @keyframes queue-item-exit {
            from {
                opacity: 1;
                transform: translateX(0);
            }
            to {
                opacity: 0;
                transform: translateX(-20px);
            }
        }

        /* Queue Item Status Backgrounds */
        .queue-item-success {
            background: linear-gradient(90deg, rgba(34, 197, 94, 0.08) 0%, rgba(34, 197, 94, 0.02) 100%);
            border-left: 3px solid #22c55e;
        }
        .queue-item-failed {
            background: linear-gradient(90deg, rgba(239, 68, 68, 0.08) 0%, rgba(239, 68, 68, 0.02) 100%);
            border-left: 3px solid #ef4444;
        }
        .queue-item-uploading {
            background: linear-gradient(90deg, rgba(59, 130, 246, 0.08) 0%, rgba(59, 130, 246, 0.02) 100%);
            border-left: 3px solid #3b82f6;
        }
        .queue-item-skipped {
            background: linear-gradient(90deg, rgba(249, 115, 22, 0.08) 0%, rgba(249, 115, 22, 0.02) 100%);
            border-left: 3px solid #f97316;
        }

        /* Button Hover Effects */
        .btn-primary {
            transition: all 0.15s ease;
        }
        .btn-primary:hover:not(:disabled) {
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
        }
        .btn-primary:active:not(:disabled) {
            transform: translateY(0);
        }
        .btn-secondary {
            transition: all 0.15s ease;
        }
        .btn-secondary:hover:not(:disabled) {
            transform: translateY(-1px);
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        }

        /* Focus Ring Improvements */
        .focus-ring:focus {
            outline: none;
            box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
        }

        /* Upload Progress Bar */
        .upload-progress {
            height: 3px;
            background: #e5e7eb;
            border-radius: 2px;
            overflow: hidden;
            margin-top: 4px;
        }
        .upload-progress-bar {
            height: 100%;
            background: linear-gradient(90deg, #3b82f6 0%, #60a5fa 100%);
            border-radius: 2px;
            transition: width 0.3s ease;
        }
        .upload-progress-indeterminate .upload-progress-bar {
            width: 30%;
            animation: progress-indeterminate 1.2s ease-in-out infinite;
        }
        @keyframes progress-indeterminate {
            0% { transform: translateX(-100%); }
            100% { transform: translateX(400%); }
        }

        /* Checkmark Animation for Success */
        .success-checkmark {
            animation: checkmark-pop 0.3s ease-out;
        }
        @keyframes checkmark-pop {
            0% { transform: scale(0); opacity: 0; }
            50% { transform: scale(1.2); }
            100% { transform: scale(1); opacity: 1; }
        }

        /* Tab Content Fade */
        .tab-content {
            animation: tab-fade-in 0.2s ease-out;
        }
        @keyframes tab-fade-in {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        /* Larger Thumbnail Support */
        .queue-thumbnail-lg {
            width: 64px;
            height: 64px;
        }
        .queue-thumbnail-lg img,
        .queue-thumbnail-lg video {
            width: 64px;
            height: 64px;
            object-fit: cover;
            border-radius: 0.375rem;
        }

        /* Settings Card Polish */
        .settings-card {
            transition: all 0.2s ease;
            border: 1px solid transparent;
        }
        .settings-card:hover {
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
            border-color: rgba(59, 130, 246, 0.1);
        }

        /* Form Input Polish */
        .input-styled {
            transition: all 0.15s ease;
            border: 1px solid #e5e7eb;
        }
        .input-styled:hover {
            border-color: #d1d5db;
        }
        .input-styled:focus {
            outline: none;
            border-color: #3b82f6;
            box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
        }

        /* Section Header with Icon */
        .section-header {
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        .section-header-icon {
            width: 1.25rem;
            height: 1.25rem;
            color: #3b82f6;
        }

        /* Enhanced Combination Counter */
        .combination-counter {
            background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
            border: 1px solid #a7f3d0;
            position: relative;
            overflow: hidden;
        }
        .combination-counter::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
            animation: shimmer 2s infinite;
        }
        @keyframes shimmer {
            100% { left: 100%; }
        }
        .combination-number {
            font-size: 1.75rem;
            font-weight: 700;
            background: linear-gradient(135deg, #059669 0%, #10b981 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        /* Google Drive Button Polish */
        .drive-btn {
            transition: all 0.2s ease;
            position: relative;
            overflow: hidden;
        }
        .drive-btn::before {
            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(135deg, transparent 0%, rgba(66, 133, 244, 0.05) 100%);
            opacity: 0;
            transition: opacity 0.2s ease;
        }
        .drive-btn:hover::before {
            opacity: 1;
        }
        .drive-btn:hover {
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(66, 133, 244, 0.2);
        }

        /* Loading Skeleton */
        .skeleton {
            background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
            background-size: 200% 100%;
            animation: skeleton-loading 1.5s infinite;
            border-radius: 0.375rem;
        }
        @keyframes skeleton-loading {
            0% { background-position: 200% 0; }
            100% { background-position: -200% 0; }
        }

        /* Logout button hover */
        .logout-btn {
            transition: all 0.15s ease;
            padding: 0.5rem 0.75rem;
            border-radius: 0.5rem;
        }
        .logout-btn:hover {
            background: #fee2e2;
            color: #dc2626;
        }

        /* Create button link hover */
        .create-link {
            transition: all 0.15s ease;
            padding: 0.25rem 0.5rem;
            margin: -0.25rem -0.5rem;
            border-radius: 0.375rem;
        }
        .create-link:hover {
            background: #eff6ff;
        }
