.feature-html-wrapper .container {
            max-width: 100%;
            width: 100%;
            background: #fff;
            border: 1px solid #ccd0d4;
            border-radius: 4px;
            box-shadow: 0 1px 1px rgba(0,0,0,.04);
            overflow: hidden;
            margin: 0 auto;
        }

        .feature-html-wrapper .header {
            background: #fff;
            border-bottom: 1px solid #ccd0d4;
            color: #1a1a1a;
            padding: 20px 30px;
            text-align: center;
        }

        .feature-html-wrapper .header h1 {
            font-size: 2.5rem;
            margin-bottom: 10px;
        }

        .feature-html-wrapper .header p {
            font-size: 1.1rem;
            opacity: 0.9;
        }

        .content {
            padding: 20px;
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
        }

        .section {
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        .feature-html-wrapper .section-title {
            font-size: 1.5rem;
            color: #1a1a1a;
            font-weight: 600;
            padding-bottom: 10px;
            border-bottom: 1px solid #ccd0d4;
        }

        .video-container, .id-container {
            position: relative;
            background: #f5f5f5;
            border-radius: 10px;
            overflow: hidden;
            width: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            min-height: 300px;
            max-height: 400px;
            border: 3px dashed #ddd;
        }

        .feature-html-wrapper .video-container.active {
            border-color: #2271b1;
        }

        .feature-html-wrapper .id-container.has-image {
            border-color: #28a745;
        }

        #liveVideo {
            width: 100%;
            height: 100%;
            object-fit: contain;
            display: block;
            max-width: 100%;
        }

        #idImage {
            width: 100%;
            height: auto;
            object-fit: contain;
            display: none; /* Hidden by default until image is loaded */
            max-width: 100%;
            max-height: 500px;
        }
        
        #idImage[src]:not([src=""]) {
            display: block; /* Show only when src is set and not empty */
        }

        #liveCanvas, #idCanvas {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            max-width: 100%;
            max-height: 100%;
            object-fit: contain;
        }


        .feature-html-wrapper .match-overlay {
            position: absolute;
            bottom: 20px;
            left: 50%;
            transform: translateX(-50%);
            background: rgba(255, 255, 255, 0.95);
            padding: 20px 30px;
            border-radius: 12px;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
            min-width: 280px;
            text-align: center;
            z-index: 10;
            display: none;
        }

        .feature-html-wrapper .match-overlay.show {
            display: block;
        }

        .feature-html-wrapper .match-overlay-score {
            font-size: 2.5rem;
            font-weight: bold;
            margin: 10px 0;
            padding: 15px;
            border-radius: 8px;
            color: white;
        }

        .feature-html-wrapper .match-overlay-score.match {
            background: #00a32a;
        }

        .feature-html-wrapper .match-overlay-score.no-match {
            background: #d63638;
        }

        .feature-html-wrapper .match-overlay-status {
            font-size: 1.2rem;
            font-weight: 600;
            margin-top: 10px;
        }

        .feature-html-wrapper .match-overlay-status.match {
            color: #28a745;
        }

        .feature-html-wrapper .match-overlay-status.no-match {
            color: #dc3545;
        }

        .feature-html-wrapper .controls {
            display: flex;
            flex-direction: column;
            gap: 15px;
        }

        .feature-html-wrapper .control-group {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
        }

        .feature-html-wrapper button {
            padding: 12px 24px;
            font-size: 1rem;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.3s ease;
            font-weight: 600;
            flex: 1;
            min-width: 150px;
        }

        .feature-html-wrapper .btn-primary {
            background: #2271b1;
            color: white;
            border: 1px solid #2271b1;
        }

        .feature-html-wrapper .btn-primary:hover:not(:disabled) {
            background: #135e96;
            border-color: #135e96;
            box-shadow: 0 1px 1px rgba(0,0,0,.04);
        }

        .feature-html-wrapper .btn-primary:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }

        .feature-html-wrapper .btn-success {
            background: #00a32a;
            color: white;
            border: 1px solid #00a32a;
        }

        .feature-html-wrapper .btn-success:hover:not(:disabled) {
            background: #008a20;
            border-color: #008a20;
            box-shadow: 0 1px 1px rgba(0,0,0,.04);
        }

        .feature-html-wrapper .btn-secondary {
            background: #e0e0e0;
            color: #333;
        }

        .feature-html-wrapper .btn-secondary:hover:not(:disabled) {
            background: #d0d0d0;
        }

        .feature-html-wrapper .file-upload-wrapper {
            position: relative;
            overflow: hidden;
            display: inline-block;
            width: 100%;
        }

        .feature-html-wrapper .file-upload-wrapper input[type=file] {
            position: absolute;
            left: -9999px;
        }

        .feature-html-wrapper .file-upload-label {
            display: block;
            padding: 12px 24px;
            background: #00a32a;
            color: white;
            border: 1px solid #00a32a;
            border-radius: 4px;
            text-align: center;
            cursor: pointer;
            font-weight: 600;
            transition: all 0.3s ease;
        }

        .feature-html-wrapper .file-upload-label:hover {
            background: #008a20;
            border-color: #008a20;
            box-shadow: 0 1px 1px rgba(0,0,0,.04);
        }

        .feature-html-wrapper .status {
            text-align: center;
            padding: 15px;
            background: #fff3cd;
            color: #856404;
            border-radius: 8px;
            font-weight: 500;
            margin-top: 20px;
        }

        .feature-html-wrapper .status.success {
            background: #d4edda;
            color: #155724;
        }

        .feature-html-wrapper .status.error {
            background: #f8d7da;
            color: #721c24;
        }

        .feature-html-wrapper .status.info {
            background: #d1ecf1;
            color: #0c5460;
        }

        .feature-html-wrapper .placeholder-text {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            color: #999;
            font-size: 1.1rem;
            text-align: center;
            pointer-events: none;
        }

        .feature-html-wrapper .liveness-overlay {
            position: absolute;
            bottom: 20px;
            left: 20px;
            right: 20px;
            background: rgba(255, 255, 255, 0.95);
            padding: 20px 25px;
            border-radius: 15px;
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
            max-width: 500px;
            margin: 0 auto;
            text-align: center;
            z-index: 15;
            display: none;
        }

        .feature-html-wrapper .liveness-overlay.show {
            display: block;
        }

        .feature-html-wrapper .liveness-title {
            font-size: 1.2rem;
            font-weight: bold;
            color: #2271b1;
            margin-bottom: 10px;
        }

        .feature-html-wrapper .liveness-instruction {
            font-size: 1rem;
            color: #333;
            margin-bottom: 15px;
            min-height: 35px;
        }

        .feature-html-wrapper .liveness-progress {
            display: flex;
            justify-content: center;
            gap: 8px;
            margin-bottom: 10px;
        }

        .feature-html-wrapper .progress-step {
            width: 35px;
            height: 35px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
            font-size: 0.9rem;
            background: #e0e0e0;
            color: #666;
            transition: all 0.3s ease;
        }

        .feature-html-wrapper .progress-step.active {
            background: #2271b1;
            color: white;
            border: 1px solid #2271b1;
            box-shadow: 0 1px 1px rgba(0,0,0,.04);
        }

        .feature-html-wrapper .progress-step.completed {
            background: #00a32a;
            color: white;
            border: 1px solid #00a32a;
        }

        .feature-html-wrapper .liveness-status {
            font-size: 1rem;
            color: #666;
            margin-top: 10px;
            font-style: italic;
        }

        .feature-html-wrapper .liveness-status.success {
            color: #28a745;
            font-weight: 600;
        }

        .feature-html-wrapper .numbers-display {
            display: flex;
            gap: 15px;
            justify-content: center;
            align-items: center;
            margin: 15px 0;
            flex-wrap: wrap;
        }

        .feature-html-wrapper .number-item {
            width: 50px;
            height: 50px;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
            font-weight: bold;
            background: #e0e0e0;
            color: #666;
            border: 2px solid #ccc;
            transition: all 0.3s ease;
        }

        .feature-html-wrapper .number-item.current {
            background: #2271b1;
            color: white;
            border-color: #2271b1;
            box-shadow: 0 1px 1px rgba(0,0,0,.04);
        }

        .feature-html-wrapper .number-item.verified {
            background: #00a32a;
            color: white;
            border-color: #00a32a;
        }

        .feature-html-wrapper .number-item.verified::after {
            content: '✓';
            margin-left: 5px;
        }

        @media (max-width: 968px) {
            .feature-html-wrapper .content {
                grid-template-columns: 1fr !important;
                padding: 15px !important;
                width: 100% !important;
                max-width: 100% !important;
                box-sizing: border-box !important;
            }

            .feature-html-wrapper .header {
                padding: 15px 20px !important;
            }

            .feature-html-wrapper .header h1 {
                font-size: 1.8rem !important;
            }

            .feature-html-wrapper .header p {
                font-size: 1rem !important;
            }

            .feature-html-wrapper button {
                width: 100%;
                box-sizing: border-box;
            }

            .feature-html-wrapper .control-group {
                flex-direction: column;
            }

            .feature-html-wrapper .match-overlay {
                bottom: 10px;
                left: 10px;
                right: 10px;
                padding: 15px 20px;
                min-width: auto;
                max-width: calc(100% - 20px);
                box-sizing: border-box;
            }

            .feature-html-wrapper .match-overlay-score {
                font-size: 2rem;
                padding: 12px;
            }

            .feature-html-wrapper .liveness-overlay {
                bottom: 10px;
                left: 10px;
                right: 10px;
                padding: 15px 20px;
                max-width: calc(100% - 20px);
                box-sizing: border-box;
            }

            .feature-html-wrapper .liveness-title {
                font-size: 1rem;
            }

            .feature-html-wrapper .liveness-instruction {
                font-size: 0.9rem;
            }

            .feature-html-wrapper .progress-step {
                width: 30px;
                height: 30px;
                font-size: 0.8rem;
            }

            .feature-html-wrapper .numbers-display {
                gap: 10px;
            }

            .feature-html-wrapper .number-item {
                width: 45px;
                height: 45px;
                font-size: 1.3rem;
            }
        }

        @media (max-width: 768px) {
            .feature-html-wrapper .content {
                padding: 12px !important;
            }

            .feature-html-wrapper .header {
                padding: 12px 15px !important;
            }

            .feature-html-wrapper .header h1 {
                font-size: 1.5rem !important;
            }

            .feature-html-wrapper .header p {
                font-size: 0.9rem !important;
            }

            .feature-html-wrapper .section-title {
                font-size: 1.2rem !important;
            }

            .feature-html-wrapper .video-container, 
            .feature-html-wrapper .id-container {
                min-height: 250px;
                max-height: 350px;
            }

            .feature-html-wrapper .match-overlay {
                bottom: 5px;
                left: 5px;
                right: 5px;
                padding: 12px 15px;
                max-width: calc(100% - 10px);
            }

            .feature-html-wrapper .match-overlay-score {
                font-size: 1.8rem;
                padding: 10px;
            }

            .feature-html-wrapper .match-overlay-status {
                font-size: 1rem;
            }

            .feature-html-wrapper .liveness-overlay {
                bottom: 5px;
                left: 5px;
                right: 5px;
                padding: 12px 15px;
                max-width: calc(100% - 10px);
            }

            .feature-html-wrapper .liveness-title {
                font-size: 0.95rem;
            }

            .feature-html-wrapper .liveness-instruction {
                font-size: 0.85rem;
            }

            .feature-html-wrapper .progress-step {
                width: 28px;
                height: 28px;
                font-size: 0.75rem;
            }

            .feature-html-wrapper .number-item {
                width: 40px;
                height: 40px;
                font-size: 1.2rem;
            }
        }

        @media (max-width: 480px) {
            .feature-html-wrapper .header {
                padding: 10px 12px !important;
            }

            .feature-html-wrapper .header h1 {
                font-size: 1.3rem !important;
            }

            .feature-html-wrapper .header p {
                font-size: 0.85rem !important;
            }

            .feature-html-wrapper .content {
                padding: 10px !important;
            }

            .feature-html-wrapper .section-title {
                font-size: 1.1rem !important;
            }

            .feature-html-wrapper .video-container, 
            .feature-html-wrapper .id-container {
                min-height: 200px;
                max-height: 300px;
            }

            .feature-html-wrapper button {
                padding: 12px 20px;
                font-size: 0.95rem;
            }

            .feature-html-wrapper .match-overlay {
                bottom: 5px;
                left: 5px;
                right: 5px;
                padding: 10px 12px;
                max-width: calc(100% - 10px);
            }

            .feature-html-wrapper .match-overlay-score {
                font-size: 1.5rem;
                padding: 8px;
            }

            .feature-html-wrapper .match-overlay-status {
                font-size: 0.9rem;
            }

            .feature-html-wrapper .liveness-overlay {
                bottom: 5px;
                left: 5px;
                right: 5px;
                padding: 10px 12px;
                max-width: calc(100% - 10px);
            }

            .feature-html-wrapper .liveness-title {
                font-size: 0.9rem;
            }

            .feature-html-wrapper .liveness-instruction {
                font-size: 0.8rem;
                min-height: 30px;
            }

            .feature-html-wrapper .progress-step {
                width: 25px;
                height: 25px;
                font-size: 0.7rem;
            }

            .feature-html-wrapper .numbers-display {
                gap: 8px;
            }

            .feature-html-wrapper .number-item {
                width: 35px;
                height: 35px;
                font-size: 1rem;
            }

            .similarity-score {
                font-size: 1.8rem;
            }
        }