/* video.css */
/* ────────────────────────────────
   Face Detection System Styles
   ──────────────────────────────── */
/* ────────────────────────────────
   Face Selection Grid
   ──────────────────────────────── */
.face-item {
    transition: all 0.2s ease;
    cursor: pointer;
}
.face-item:hover {
    transform: translateY(-2px);
}
/*.face-item img {
    max-height: 20vh;
    width: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}*/

/* Alternative: If you want images to scale but maintain aspect ratio */
.face-item img {
    max-height: 20vh;
    max-width: 100%;
    height: auto;
    width: auto;
    object-fit: scale-down; /* This ensures image never exceeds container or natural size */
    display: block;
    margin: 0 auto;
}

/* ────────────────────────────────
   Thumbnail Container
   ──────────────────────────────── */
.thumbnail-container {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}
/* Overlay when a face is locked */
.lock-overlay {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0,0,0,0.6);
    border-radius: 50%;
    padding: 4px;
}
/* Progress bar styles */
.progress {
    background-color: #f1f1f1;
}
.progress-bar {
    background-color: #007bff !important;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}
/* ────────────────────────────────
   Utility Classes
   ──────────────────────────────── */
.cursor-pointer {
    cursor: pointer;
}
.transition-all {
    transition: all 0.3s ease;
}
/* ────────────────────────────────
   Detected Faces Grid Layout
   ──────────────────────────────── */
.detected-faces-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
@media (max-width: 992px) {
    .detected-faces-container {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 576px) {
    .detected-faces-container {
        grid-template-columns: 1fr;
    }
}
.detected-faces-container .face-item {
    width: 100%;
    margin: 0;
}

/* Optional: Add a background or border to see the image boundaries clearly */
.face-item .card-img-top {
    background-color: #f8f9fa; /* Light gray background */
    padding: 4px; /* Small padding around image */
}

/* NEW MULTI FACE VIDEO */



/* ════════════════════════════════════════════════════════════════════════════
   VIDEO FACE SWAP - PREMIUM DARK UI
   ════════════════════════════════════════════════════════════════════════════ */

/* CSS Variables for theming */
:root {
    --vfs-primary: #6571ff;
    --vfs-primary-glow: rgba(101, 113, 255, 0.4);
    --vfs-primary-soft: rgba(101, 113, 255, 0.15);
    --vfs-success: #05a34a;
    --vfs-success-glow: rgba(5, 163, 74, 0.4);
    --vfs-warning: #fbbc06;
    --vfs-danger: #ff3366;
    --vfs-bg-dark: #070d19;
    --vfs-bg-card: #0c1427;
    --vfs-bg-elevated: #101d35;
    --vfs-bg-input: #0a1222;
    --vfs-border: #172340;
    --vfs-border-light: #1e3a5f;
    --vfs-text: #d0d6e1;
    --vfs-text-muted: #7987a1;
    --vfs-gradient-primary: linear-gradient(135deg, #6571ff 0%, #8b5cf6 100%);
    --vfs-gradient-glow: radial-gradient(ellipse at center, rgba(101, 113, 255, 0.15) 0%, transparent 70%);
}
/* Main Container */
.vfs-container {
    position: relative;
    padding: 0;
    overflow: hidden;
}

/* Ambient Background Glow */
.vfs-ambient-glow {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 400px;
    background: var(--vfs-gradient-glow);
    pointer-events: none;
    z-index: 0;
    opacity: 0.5;
}

/* ─────────────────────────────────────────────────────────────────────────────
   HEADER SECTION
   ───────────────────────────────────────────────────────────────────────────── */
.vfs-header {
    position: relative;
    z-index: 1;
    padding: 2rem;
    border-bottom: 1px solid var(--vfs-border);
    background: linear-gradient(180deg, rgba(101, 113, 255, 0.05) 0%, transparent 100%);
}

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

.vfs-title-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.vfs-icon-badge {
    width: 48px;
    height: 48px;
    min-width: 48px;
    flex-shrink: 0; 
    aspect-ratio: 1;
    border-radius: 12px;
    background: var(--vfs-gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px var(--vfs-primary-glow);
}

.vfs-icon-badge svg {
    width: 24px;
    height: 24px;
    color: white;
}

.vfs-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
    margin: 0;
    letter-spacing: -0.02em;
}

.vfs-subtitle {
    font-size: 0.875rem;
    color: var(--vfs-text-muted);
    margin: 0.25rem 0 0 0;
}

.vfs-beta-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    background: rgba(251, 188, 6, 0.15);
    border: 1px solid rgba(251, 188, 6, 0.3);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--vfs-warning);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ─────────────────────────────────────────────────────────────────────────────
   STEPS INDICATOR
   ───────────────────────────────────────────────────────────────────────────── */
.vfs-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 1.5rem 2rem;
    background: var(--vfs-bg-card);
    border-bottom: 1px solid var(--vfs-border);
}

.vfs-step {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    position: relative;
}

.vfs-step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 600;
    background: var(--vfs-bg-elevated);
    border: 2px solid var(--vfs-border);
    color: var(--vfs-text-muted);
    transition: all 0.3s ease;
}

.vfs-step-text {
    font-size: 0.875rem;
    color: var(--vfs-text-muted);
    font-weight: 500;
    transition: all 0.3s ease;
}

.vfs-step.active .vfs-step-number {
    background: var(--vfs-gradient-primary);
    border-color: var(--vfs-primary);
    color: #fff;
    box-shadow: 0 0 20px var(--vfs-primary-glow);
}

.vfs-step.active .vfs-step-text {
    color: #fff;
}

.vfs-step.completed .vfs-step-number {
    background: var(--vfs-success);
    border-color: var(--vfs-success);
    color: #fff;
}

.vfs-step.completed .vfs-step-text {
    color: var(--vfs-success);
}

.vfs-step-connector {
    width: 60px;
    height: 2px;
    background: var(--vfs-border);
    position: relative;
    overflow: hidden;
}

.vfs-step-connector::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0%;
    background: var(--vfs-gradient-primary);
    transition: width 0.5s ease;
}

.vfs-step-connector.filled::after {
    width: 100%;
}

/* ─────────────────────────────────────────────────────────────────────────────
   MAIN CONTENT AREA
   ───────────────────────────────────────────────────────────────────────────── */
.vfs-main {
    position: relative;
    z-index: 1;
    padding: 2rem;
}

/* ─────────────────────────────────────────────────────────────────────────────
   VIDEO UPLOAD ZONE
   ───────────────────────────────────────────────────────────────────────────── */
.vfs-upload-zone {
    position: relative;
    border: 2px dashed var(--vfs-border);
    border-radius: 16px;
    padding: 3rem 2rem;
    text-align: center;
    background: linear-gradient(180deg, var(--vfs-bg-elevated) 0%, var(--vfs-bg-card) 100%);
    transition: all 0.3s ease;
    cursor: pointer;
    overflow: hidden;
}

.vfs-upload-zone::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 10px,
        rgba(101, 113, 255, 0.03) 10px,
        rgba(101, 113, 255, 0.03) 20px
    );
    opacity: 0;
    transition: opacity 0.3s ease;
}

.vfs-upload-zone:hover {
    border-color: var(--vfs-primary);
    background: linear-gradient(180deg, rgba(101, 113, 255, 0.1) 0%, var(--vfs-bg-card) 100%);
}

.vfs-upload-zone:hover::before {
    opacity: 1;
    animation: stripeMove 20s linear infinite;
}

@keyframes stripeMove {
    0% { background-position: 0 0; }
    100% { background-position: 40px 40px; }
}

.vfs-upload-zone.drag-over {
    border-color: var(--vfs-primary);
    background: rgba(101, 113, 255, 0.1);
    transform: scale(1.01);
}

.vfs-upload-zone.has-file {
    border-style: solid;
    border-color: var(--vfs-success);
    cursor: default;
    padding: 1.5rem;
}

.vfs-upload-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    background: var(--vfs-primary-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.vfs-upload-icon::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px dashed var(--vfs-primary);
    opacity: 0.5;
    animation: rotateBorder 20s linear infinite;
}

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

.vfs-upload-icon svg {
    width: 36px;
    height: 36px;
    color: var(--vfs-primary);
}

.vfs-upload-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.5rem;
}

.vfs-upload-subtitle {
    color: var(--vfs-text-muted);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.vfs-upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--vfs-gradient-primary);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--vfs-primary-glow);
}

.vfs-upload-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px var(--vfs-primary-glow);
}

.vfs-upload-formats {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--vfs-border);
}

.vfs-format-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.vfs-format-badge {
    padding: 0.25rem 0.6rem;
    background: var(--vfs-bg-input);
    border: 1px solid var(--vfs-border);
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--vfs-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Video Thumbnail Preview */
.vfs-video-preview {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 0.5rem;
    text-align: left;
}

.vfs-video-thumb {
    width: 100px;
    height: 70px;
    border-radius: 8px;
    background: var(--vfs-bg-input);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.vfs-video-thumb svg {
    width: 28px;
    height: 28px;
    color: var(--vfs-primary);
}

.vfs-video-info {
    flex: 1;
    min-width: 0;
}

.vfs-video-name {
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vfs-video-meta {
    font-size: 0.8rem;
    color: var(--vfs-text-muted);
}

.vfs-btn-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid var(--vfs-border);
    background: var(--vfs-bg-elevated);
    color: var(--vfs-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.vfs-btn-icon:hover {
    border-color: var(--vfs-primary);
    color: var(--vfs-primary);
    background: var(--vfs-primary-soft);
}

/* ─────────────────────────────────────────────────────────────────────────────
   PROGRESS SECTION
   ───────────────────────────────────────────────────────────────────────────── */
.vfs-progress-section {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--vfs-bg-card);
    border: 1px solid var(--vfs-border);
    border-radius: 16px;
    display: none;
}

.vfs-progress-section.visible {
    display: block;
    animation: fadeSlideIn 0.4s ease;
}

@keyframes fadeSlideIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.vfs-progress-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.vfs-progress-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid var(--vfs-border);
    border-top-color: var(--vfs-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.vfs-progress-title {
    font-weight: 600;
    color: #fff;
}

.vfs-progress-bar-container {
    height: 8px;
    background: var(--vfs-bg-input);
    border-radius: 4px;
    overflow: hidden;
}

.vfs-progress-bar {
    height: 100%;
    background: var(--vfs-gradient-primary);
    border-radius: 4px;
    width: 0%;
    transition: width 0.3s ease;
    position: relative;
}

.vfs-progress-bar::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 1.5s infinite;
}

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

.vfs-progress-text {
    display: flex;
    justify-content: space-between;
    margin-top: 0.75rem;
    font-size: 0.8rem;
    color: var(--vfs-text-muted);
}

/* ─────────────────────────────────────────────────────────────────────────────
   DETECTED FACES SECTION
   ───────────────────────────────────────────────────────────────────────────── */
.vfs-faces-section {
    margin-top: 2rem;
}

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

.vfs-faces-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.vfs-faces-title h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    margin: 0;
}

.vfs-faces-count {
    padding: 0.25rem 0.75rem;
    background: var(--vfs-success);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
}

.vfs-toggle-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.vfs-toggle {
    position: relative;
    width: 44px;
    height: 24px;
}

.vfs-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.vfs-toggle-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: var(--vfs-bg-input);
    border: 1px solid var(--vfs-border);
    border-radius: 24px;
    transition: all 0.3s ease;
}

.vfs-toggle-slider::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    left: 2px;
    bottom: 2px;
    background: var(--vfs-text-muted);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.vfs-toggle input:checked + .vfs-toggle-slider {
    background: var(--vfs-primary-soft);
    border-color: var(--vfs-primary);
}

.vfs-toggle input:checked + .vfs-toggle-slider::before {
    transform: translateX(20px);
    background: var(--vfs-primary);
}

.vfs-toggle-label {
    font-size: 0.875rem;
    color: var(--vfs-text-muted);
}

/* Empty State */
.vfs-faces-empty {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--vfs-bg-card);
    border: 1px solid var(--vfs-border);
    border-radius: 16px;
    margin-top: 2rem;
}

.vfs-faces-empty-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    background: var(--vfs-bg-elevated);
    display: flex;
    align-items: center;
    justify-content: center;
}

.vfs-faces-empty-icon svg {
    width: 28px;
    height: 28px;
    color: var(--vfs-text-muted);
}

.vfs-faces-empty h5 {
    font-size: 1rem;
    color: var(--vfs-text);
    margin-bottom: 0.5rem;
}

.vfs-faces-empty p {
    color: var(--vfs-text-muted);
    font-size: 0.875rem;
}

/* Face Cards Grid */
.vfs-faces-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.25rem;
}

@media (min-width: 768px) {
    .vfs-faces-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
}

/* Individual Face Card */
.vfs-face-card {
    background: var(--vfs-bg-card);
    border: 2px solid var(--vfs-border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.vfs-face-card:hover {
    border-color: var(--vfs-border-light);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.vfs-face-card.has-replacement {
    border-color: var(--vfs-success);
}

.vfs-face-card.dimmed {
    opacity: 0.4;
    pointer-events: none;
}

.vfs-face-card-header {
    padding: 0.75rem 1rem;
    background: var(--vfs-bg-elevated);
    border-bottom: 1px solid var(--vfs-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.vfs-face-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--vfs-text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.vfs-face-number {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: var(--vfs-primary-soft);
    color: var(--vfs-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

.vfs-face-status {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--vfs-text-muted);
}

.vfs-face-card.has-replacement .vfs-face-status {
    background: var(--vfs-success);
    box-shadow: 0 0 8px var(--vfs-success-glow);
}

.vfs-face-detected {
    padding: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--vfs-bg-input);
    min-height: 120px;
}

.vfs-face-detected img {
    max-width: 100%;
    max-height: 100px;
    border-radius: 8px;
    object-fit: contain;
}

.vfs-face-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    background: var(--vfs-bg-card);
}

.vfs-face-arrow {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--vfs-bg-elevated);
    border: 1px solid var(--vfs-border);
    display: flex;
    align-items: center;
    justify-content: center;
}

.vfs-face-arrow svg {
    width: 14px;
    height: 14px;
    color: var(--vfs-text-muted);
}

.vfs-face-upload {
    padding: 1rem;
    min-height: 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.vfs-face-upload:hover {
    background: var(--vfs-primary-soft);
}

.vfs-face-upload-placeholder {
    text-align: center;
}

.vfs-face-upload-placeholder svg {
    width: 24px;
    height: 24px;
    color: var(--vfs-text-muted);
    margin-bottom: 0.5rem;
}

.vfs-face-upload-placeholder span {
    font-size: 0.8rem;
    color: var(--vfs-text-muted);
    display: block;
}

.vfs-face-upload-preview {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
}

.vfs-face-upload-preview img {
    max-width: 100%;
    max-height: 65px;
    border-radius: 8px;
    object-fit: contain;
}

.vfs-face-remove {
    position: absolute;
    top: -8px;
    right: calc(50% - 45px);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--vfs-danger);
    border: 2px solid var(--vfs-bg-card);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.2s ease;
    z-index: 5;
}

.vfs-face-remove:hover {
    transform: scale(1.1);
}

/* ─────────────────────────────────────────────────────────────────────────────
   TIPS CARD
   ───────────────────────────────────────────────────────────────────────────── */
.vfs-tips-card {
    margin-top: 1.5rem;
    padding: 1.25rem;
    background: linear-gradient(135deg, rgba(102, 209, 209, 0.08) 0%, rgba(101, 113, 255, 0.08) 100%);
    border: 1px solid rgba(102, 209, 209, 0.2);
    border-radius: 12px;
}

.vfs-tips-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.vfs-tips-header svg {
    width: 18px;
    height: 18px;
    color: #66d1d1;
}

.vfs-tips-header span {
    font-weight: 600;
    color: #66d1d1;
    font-size: 0.9rem;
}

.vfs-tips-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.vfs-tips-list li {
    font-size: 0.85rem;
    color: var(--vfs-text-muted);
    padding: 0.35rem 0;
    padding-left: 1.25rem;
    position: relative;
}

.vfs-tips-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--vfs-primary);
}

/* ─────────────────────────────────────────────────────────────────────────────
   FOOTER / ACTIONS
   ───────────────────────────────────────────────────────────────────────────── */
.vfs-footer {
    padding: 1.5rem 2rem;
    background: var(--vfs-bg-card);
    border-top: 1px solid var(--vfs-border);
}

.vfs-consent {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--vfs-bg-elevated);
    border-radius: 12px;
    border: 1px solid var(--vfs-border);
}

.vfs-consent input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    accent-color: var(--vfs-primary);
    cursor: pointer;
    flex-shrink: 0;
}

.vfs-consent-text {
    font-size: 0.85rem;
    color: var(--vfs-text-muted);
    line-height: 1.5;
}

.vfs-consent-text a {
    color: var(--vfs-primary);
}

.vfs-submit-btn {
    width: 100%;
    padding: 1rem 2rem;
    background: var(--vfs-gradient-primary);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    box-shadow: 0 4px 20px var(--vfs-primary-glow);
}

.vfs-submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--vfs-primary-glow);
}

.vfs-submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.vfs-submit-btn svg {
    width: 20px;
    height: 20px;
}

.vfs-submit-btn .spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* ─────────────────────────────────────────────────────────────────────────────
   RESPONSIVE
   ───────────────────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .vfs-header { padding: 1.5rem; }
    .vfs-header-content { flex-direction: column; align-items: flex-start; }
    .vfs-steps { padding: 1rem; overflow-x: auto; }
    .vfs-step-text { display: none; }
    .vfs-main { padding: 1.5rem; }
    .vfs-faces-grid { grid-template-columns: 1fr 1fr; }
    .vfs-footer { padding: 1.5rem; }
    .vfs-video-preview { flex-wrap: wrap; }
}

@media (max-width: 480px) {
    .vfs-faces-grid { grid-template-columns: 1fr; }
}

/* Lock overlay for video upload (prevents replacing while uploading/detecting) */
.vfs-upload-zone { position: relative; }
.vfs-upload-zone.is-locked { opacity: 0.75; cursor: not-allowed; }
.vfs-upload-lock-overlay {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: rgba(7, 13, 25, 0.72);
    border: 1px solid var(--vfs-border);
    border-radius: 16px;
    backdrop-filter: blur(2px);
    z-index: 5;
    padding: 18px;
}
.vfs-upload-zone.is-locked .vfs-upload-lock-overlay { display: flex; }
.vfs-upload-lock-inner { display: flex; flex-direction: column; gap: 10px; align-items: center; }
.vfs-upload-lock-text { color: var(--vfs-text); font-weight: 600; }
.vfs-upload-lock-subtext { color: var(--vfs-text-muted); font-size: 0.9rem; }
.vfs-upload-lock-spinner {
    width: 34px;
    height: 34px;
    border: 3px solid rgba(255, 255, 255, 0.15);
    border-top-color: var(--vfs-primary);
    border-radius: 50%;
    animation: vfsSpin 0.9s linear infinite;
}
@keyframes vfsSpin { to { transform: rotate(360deg); } }

/* ════════════════════════════════════════════════════════════════════════════
   SEO / INFORMATIONAL CONTENT SECTION
   Premium styling for the SEO content block to match the dark theme
   ════════════════════════════════════════════════════════════════════════════ */

/* Main SEO Section Container */
.seo-content-section {
    position: relative;
    margin-top: 2rem;
}

.seo-content-section .card {
    position: relative;
    background: linear-gradient(180deg, var(--vfs-bg-card) 0%, rgba(7, 13, 25, 0.95) 100%);
    border: 1px solid var(--vfs-border);
    border-radius: 20px;
    overflow: hidden;
}

.seo-content-section .card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: radial-gradient(ellipse at top center, rgba(101, 113, 255, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.seo-content-section .card-body {
    position: relative;
    z-index: 1;
}

/* Section Title with Icon */
.seo-section-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.35rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.seo-section-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 1.2em;
    background: var(--vfs-gradient-primary);
    border-radius: 2px;
}

/* Subsection Titles */
.seo-subsection-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.75rem;
}

.seo-subsection-title .seo-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--vfs-primary-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.seo-subsection-title .seo-icon svg {
    width: 14px;
    height: 14px;
    color: var(--vfs-primary);
}

/* Navigation Pills */
.seo-nav-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--vfs-bg-elevated);
    border: 1px solid var(--vfs-border);
    border-radius: 14px;
    margin-bottom: 1.5rem;
}

.seo-nav-pills .btn {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    font-weight: 500;
    border-radius: 8px;
    border: 1px solid var(--vfs-border);
    background: var(--vfs-bg-card);
    color: var(--vfs-text-muted);
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.seo-nav-pills .btn:hover {
    background: var(--vfs-primary-soft);
    border-color: var(--vfs-primary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(101, 113, 255, 0.2);
}

.seo-nav-pills .btn svg {
    width: 14px;
    height: 14px;
    opacity: 0.7;
}

/* Feature Grid Cards */
.seo-feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
}

.seo-feature-card {
    background: linear-gradient(135deg, var(--vfs-bg-elevated) 0%, var(--vfs-bg-card) 100%);
    border: 1px solid var(--vfs-border);
    border-radius: 14px;
    padding: 1.25rem;
    transition: all 0.3s ease;
}

.seo-feature-card:hover {
    border-color: var(--vfs-border-light);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.seo-feature-card h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.seo-feature-card p {
    font-size: 0.85rem;
    color: var(--vfs-text-muted);
    line-height: 1.6;
    margin: 0;
}

/* Steps/How-To List */
.seo-steps-list {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: step-counter;
}

.seo-steps-list li {
    position: relative;
    padding: 1rem 1rem 1rem 3.5rem;
    background: var(--vfs-bg-elevated);
    border: 1px solid var(--vfs-border);
    border-radius: 12px;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    color: var(--vfs-text);
    transition: all 0.25s ease;
    counter-increment: step-counter;
}

.seo-steps-list li:last-child {
    margin-bottom: 0;
}

.seo-steps-list li::before {
    content: counter(step-counter);
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--vfs-gradient-primary);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px var(--vfs-primary-glow);
}

.seo-steps-list li:hover {
    border-color: var(--vfs-primary);
    background: linear-gradient(135deg, rgba(101, 113, 255, 0.08) 0%, var(--vfs-bg-elevated) 100%);
}

.seo-steps-list li strong {
    color: #fff;
}

/* Tips Box */
.seo-tip-box {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, rgba(102, 209, 209, 0.08) 0%, rgba(101, 113, 255, 0.05) 100%);
    border: 1px solid rgba(102, 209, 209, 0.2);
    border-radius: 12px;
    margin-top: 1rem;
}

.seo-tip-box .tip-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(102, 209, 209, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.seo-tip-box .tip-icon svg {
    width: 16px;
    height: 16px;
    color: #66d1d1;
}

.seo-tip-box p {
    font-size: 0.85rem;
    color: var(--vfs-text);
    margin: 0;
    line-height: 1.5;
}

/* Use Cases Grid */
.seo-usecases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.seo-usecase-card {
    position: relative;
    background: var(--vfs-bg-elevated);
    border: 1px solid var(--vfs-border);
    border-radius: 14px;
    padding: 1.25rem;
    transition: all 0.3s ease;
    overflow: hidden;
}

.seo-usecase-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--vfs-gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.seo-usecase-card:hover {
    border-color: var(--vfs-primary);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.seo-usecase-card:hover::before {
    opacity: 1;
}

.seo-usecase-card h3 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.seo-usecase-card h3 .usecase-emoji {
    font-size: 1.1rem;
}

.seo-usecase-card p {
    font-size: 0.8rem;
    color: var(--vfs-text-muted);
    line-height: 1.5;
    margin: 0;
}

/* FAQ Accordion */
.seo-faq-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.seo-faq-item {
    background: var(--vfs-bg-elevated);
    border: 1px solid var(--vfs-border);
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.25s ease;
}

.seo-faq-item:hover {
    border-color: var(--vfs-border-light);
}

.seo-faq-item[open] {
    border-color: var(--vfs-primary);
    box-shadow: 0 4px 20px rgba(101, 113, 255, 0.1);
}

.seo-faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    cursor: pointer;
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    list-style: none;
    transition: background 0.2s ease;
}

.seo-faq-item summary::-webkit-details-marker {
    display: none;
}

.seo-faq-item summary::after {
    content: '';
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: var(--vfs-bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237987a1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    transition: all 0.3s ease;
}

.seo-faq-item[open] summary::after {
    transform: rotate(180deg);
    background-color: var(--vfs-primary-soft);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236571ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

.seo-faq-item summary:hover {
    background: rgba(101, 113, 255, 0.05);
}

.seo-faq-answer {
    padding: 0 1.25rem 1.25rem 1.25rem;
    color: var(--vfs-text-muted);
    font-size: 0.85rem;
    line-height: 1.7;
    border-top: 1px solid var(--vfs-border);
    margin-top: 0;
    padding-top: 1rem;
}

/* Section Divider */
.seo-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--vfs-border-light), transparent);
    margin: 2rem 0;
    border: none;
}

/* Responsible Use Section */
.seo-responsible-use {
    background: linear-gradient(135deg, rgba(255, 51, 102, 0.05) 0%, rgba(251, 188, 6, 0.05) 100%);
    border: 1px solid rgba(251, 188, 6, 0.2);
    border-radius: 14px;
    padding: 1.5rem;
}

.seo-responsible-use h2 {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 1rem;
}

.seo-responsible-use h2::before {
    content: '⚠️';
    font-size: 1.2rem;
}

.seo-responsible-use p {
    color: var(--vfs-text);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.seo-responsible-use ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.seo-responsible-use ul li {
    position: relative;
    padding-left: 1.5rem;
    color: var(--vfs-text-muted);
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.seo-responsible-use ul li::before {
    content: '✕';
    position: absolute;
    left: 0;
    color: var(--vfs-danger);
    font-weight: bold;
    font-size: 0.75rem;
}

.seo-responsible-use ul li:last-child {
    margin-bottom: 0;
}

/* Bullet Lists in SEO Content */
.seo-bullet-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.seo-bullet-list li {
    position: relative;
    padding: 0.4rem 0 0.4rem 1.5rem;
    color: var(--vfs-text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

.seo-bullet-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.85rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--vfs-primary);
}

.seo-bullet-list li strong {
    color: #fff;
}

/* Helper note text */
.seo-note {
    font-size: 0.8rem;
    color: var(--vfs-text-muted);
    font-style: italic;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.seo-note::before {
    content: 'ℹ️';
    font-style: normal;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .seo-content-section .card-body {
        padding: 1.5rem;
    }
    
    .seo-nav-pills {
        padding: 0.75rem;
    }
    
    .seo-nav-pills .btn {
        font-size: 0.75rem;
        padding: 0.4rem 0.75rem;
    }
    
    .seo-feature-grid {
        grid-template-columns: 1fr;
    }
    
    .seo-usecases-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .seo-steps-list li {
        padding-left: 3rem;
    }
}

@media (max-width: 480px) {
    .seo-usecases-grid {
        grid-template-columns: 1fr;
    }
    
    .seo-section-title {
        font-size: 1.15rem;
    }
}