        /* Reset only for our component */
        .procapture-wrapper * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, Roboto, Arial, sans-serif;
        }

        /* Namespaced CSS variables */
        .procapture-wrapper {
            --procapture-primary: #4361ee;
            --procapture-primary-dark: #3a56d4;
            --procapture-secondary: #7209b7;
            --procapture-dark: #212529;
            --procapture-light: #f8f9fa;
            --procapture-gray: #6c757d;
            --procapture-success: #4cc9f0;
            --procapture-border: #e2e8f0;
            --procapture-card-bg: #ffffff;
            --procapture-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
        }

			 .procapture-wrapper {
							color: var(--procapture-dark);
							min-height: 100vh;  
							display: flex;
							justify-content: center;
							align-items: center;
							padding: 50px 0; 
							line-height: 1.6;
					} 

        .procapture-container {
            width: 100%;
            max-width: 1200px;
        }

        .procapture-card {
            background: var(--procapture-card-bg);
            border-radius: 16px;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
            overflow: hidden;
        }

        .procapture-card:hover {
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
        }

        .procapture-header {
            display: none;
        }

        .procapture-main-content {
            display: grid;
            grid-template-columns: 1fr;
            gap: 0;
        }

        @media (max-width: 900px) {
            .procapture-main-content {
                grid-template-columns: 1fr;
            }
        }

        .procapture-tools-section {
            padding: 36px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            background-size: 400% 400%;
            animation: procapture-gradientShift 15s ease infinite;
            border-right: none;
            border-bottom: 1px solid var(--procapture-border);
            width: 100%;
            max-width: none;
            margin: 0;
            position: relative;
            overflow: hidden;
        }

        .procapture-tools-section::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background:
                radial-gradient(1200px 420px at -10% -20%, rgba(255, 255, 255, 0.32), transparent 60%),
                radial-gradient(900px 360px at 110% 120%, rgba(255, 255, 255, 0.18), transparent 65%),
                linear-gradient(135deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.07) 50%, rgba(255, 255, 255, 0.16) 100%);
            pointer-events: none;
            z-index: 0;
        }

        .procapture-tools-section::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: linear-gradient(90deg, #ff6b6b 0%, #4ecdc4 25%, #45b7d1 50%, #96ceb4 75%, #feca57 100%);
            animation: procapture-rainbowShift 3s ease infinite;
        }

        @keyframes procapture-gradientShift {
            0% {
                background-position: 0% 50%;
            }

            50% {
                background-position: 100% 50%;
            }

            100% {
                background-position: 0% 50%;
            }
        }

        @keyframes procapture-rainbowShift {
            0% {
                background-position: 0% 50%;
            }

            50% {
                background-position: 100% 50%;
            }

            100% {
                background-position: 0% 50%;
            }
        }

        .procapture-page-title {
            font-size: 1.8rem;
            font-weight: 800;
            background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 50%, #ffffff 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            margin-bottom: 8px;
            text-align: center;
            position: relative;
            z-index: 2;
            text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
            letter-spacing: -0.025em;
        }

        .procapture-page-subtitle {
            font-size: 1rem;
            color: rgba(255, 255, 255, 0.95);
            margin-bottom: 32px;
            text-align: center;
            text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
            font-weight: 500;
            line-height: 1.5;
        }

        .procapture-preview-section {
            padding: 24px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            background-size: 400% 400%;
            animation: procapture-gradientShift 15s ease infinite;
            display: flex;
            flex-direction: column;
            position: relative;
            overflow: hidden;
        }

        .procapture-preview-section::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background:
                radial-gradient(1100px 380px at -10% -20%, rgba(255, 255, 255, 0.30), transparent 60%),
                radial-gradient(820px 320px at 110% 120%, rgba(255, 255, 255, 0.16), transparent 65%),
                linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.06) 50%, rgba(255, 255, 255, 0.15) 100%);
            pointer-events: none;
            z-index: 0;
        }

        .procapture-preview-section::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: linear-gradient(90deg, #ff6b6b 0%, #4ecdc4 25%, #45b7d1 50%, #96ceb4 75%, #feca57 100%);
            animation: procapture-rainbowShift 3s ease infinite;
        }

        .procapture-preview-grid {
            display: grid;
            grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
            gap: 20px;
            align-items: start;
        }

        .procapture-preview-grid>* {
            min-width: 0;
        }

        @media (max-width: 900px) {
            .procapture-preview-grid {
                grid-template-columns: 1fr;
            }
        }

        .procapture-details-card {
            background: rgba(255, 255, 255, 0.9);
            border: 1px solid rgba(255, 255, 255, 0.6);
            border-radius: 12px;
            padding: 14px;
            position: relative;
            transition: all 0.2s ease;
            backdrop-filter: blur(10px);
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
            overflow: hidden;
            width: 100%;
        }

        .procapture-details-card::after {
            display: none;
        }

        .procapture-details-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(135deg, rgba(67, 97, 238, 0.05) 0%, rgba(114, 9, 183, 0.05) 100%);
            opacity: 0;
            transition: opacity 0.4s ease;
            pointer-events: none;
        }

        .procapture-details-card:hover {
            border-color: #3b82f6;
            box-shadow: 0 12px 40px rgba(59, 130, 246, 0.2);
            transform: translateY(-4px) scale(1.01);
        }

        .procapture-details-card:hover::before {
            opacity: 1;
        }

        .procapture-details-header {
            font-weight: 700;
            color: #1f2937;
            margin-bottom: 10px;
            position: relative;
            z-index: 2;
            font-size: 0.95rem;
            letter-spacing: 0.3px;
            text-transform: none;
        }

        .procapture-details-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 10px 12px;
        }

        @media (max-width: 640px) {
            .procapture-details-grid {
                grid-template-columns: 1fr;
            }
        }

        .procapture-detail-item {
            background: rgba(255, 255, 255, 0.9);
            border: 1px solid rgba(226, 232, 240, 0.9);
            border-radius: 10px;
            padding: 8px 10px;
            display: flex;
            align-items: center;
            position: relative;
            transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
            box-shadow: 0 1px 3px rgba(16, 24, 40, 0.06);
            flex-direction: column;
        }

        .procapture-detail-item::before {
            display: none;
        }

        .procapture-detail-item:hover {
            border-color: #dbeafe;
            background: #f8fafc;
        }

        .procapture-detail-item:hover::before {
            opacity: 1;
        }

        .procapture-detail-label {
            color: #6b7280;
            font-size: 0.75rem;
            font-weight: 600;
            text-transform: none;
            letter-spacing: 0.2px;
        }

        .procapture-detail-value {
            color: #111827;
            font-weight: 600;
            font-size: 0.9rem;
            overflow-wrap: anywhere;
            word-break: break-word;
        }

        .procapture-form-group {
            margin-bottom: 30px;
            position: relative;
        }

        .procapture-help-text {
            display: none;
        }

        .procapture-label {
            display: block;
            margin-bottom: 12px;
            font-weight: 700;
            background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 50%, #ffffff 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            font-size: 0.95rem;
            letter-spacing: 0.3px;
            text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
            text-transform: uppercase;
            font-size: 0.85rem;
        }

        .procapture-input-group {
            display: block;
            background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 249, 255, 0.95) 100%);
            border-radius: 12px;
            border: 2px solid rgba(255, 255, 255, 0.4);
            position: relative;
            transition: all 0.3s ease;
            box-sizing: border-box;
            backdrop-filter: blur(15px);
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
            overflow: hidden;
        }

        .procapture-input-group::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0.2) 100%);
            pointer-events: none;
            border-radius: 12px;
        }

        .procapture-input-group::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(135deg, rgba(255, 107, 107, 0.1) 0%, rgba(78, 205, 196, 0.1) 50%, rgba(69, 183, 209, 0.1) 100%);
            opacity: 0;
            transition: opacity 0.3s ease;
            pointer-events: none;
        }

        .procapture-input-group:focus-within {
            border-color: #ff6b6b;
            box-shadow: 0 0 0 4px rgba(255, 107, 107, 0.2), 0 8px 25px rgba(255, 107, 107, 0.15);
            background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 248, 248, 0.98) 100%);
            transform: translateY(-2px);
        }

        .procapture-input-group:focus-within::before {
            opacity: 1;
        }

        .procapture-input-group:hover {
            border-color: #4ecdc4;
            box-shadow: 0 6px 20px rgba(78, 205, 196, 0.2);
            transform: translateY(-1px);
        }

        .procapture-input-group i {
            display: none;
        }

        .procapture-input,
        .procapture-select,
        .procapture-select-display {
            width: 100%;
            padding: 16px 18px;
            border: none;
            outline: none;
            font-size: 1rem;
            background: transparent;
            color: #1e293b;
            font-weight: 500;
        }

        .procapture-input::placeholder {
            color: #98a2b3;
        }

        /* Custom select (animated) */
        .procapture-select-wrapper {
            position: relative;
            width: 100%;
            display: block;
        }

        .procapture-select-display {
            cursor: pointer;
            padding: 14px 40px 14px 16px;
            background: transparent;
            display: block;
            position: relative;
        }

        .procapture-select-display::after {
            content: "";
            position: absolute;
            right: 14px;
            top: 50%;
            width: 10px;
            height: 6px;
            background: currentColor;
            opacity: .65;
            transform: translateY(-50%);
            -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 10"><path fill="white" d="M2 2l6 6 6-6"/></svg>') no-repeat center / contain;
            mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 10"><path fill="white" d="M2 2l6 6 6-6"/></svg>') no-repeat center / contain;
        }

        .procapture-select-menu {
            position: absolute;
            top: calc(100% + 6px);
            left: 0;
            width: 100%;
            background: #ffffff;
            border: 1px solid var(--procapture-border);
            border-radius: 12px;
            box-shadow: 0 12px 24px rgba(16, 24, 40, 0.12);
            overflow: hidden;
            transform-origin: top center;
            transform: scaleY(0.9);
            opacity: 0;
            pointer-events: none;
            transition: opacity .18s ease, transform .18s ease;
            z-index: 50;
            box-sizing: border-box;
        }

        .procapture-select-icon {
            display: inline-block;
            pointer-events: none;
            /* allow clicks to pass through to display */
        }

        /* Ensure title icon contrasts over gradient text */
        .procapture-page-title i {
            color: #ffffff;
            -webkit-text-fill-color: #ffffff;
        }

        .procapture-select-menu.open {
            transform: scaleY(1);
            opacity: 1;
            pointer-events: auto;
        }

        .procapture-select-option {
            padding: 12px 14px;
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 0.98rem;
            cursor: pointer;
            transition: background .15s ease;
        }

        .procapture-select-option:hover {
            background: #f5f7fb;
        }

        .procapture-select-option.active {
            background: #eef2ff;
            color: #1d4ed8;
        }

        .procapture-input-error {
            border-color: #e03131 !important;
            box-shadow: 0 0 0 3px rgba(224, 49, 49, 0.15) !important;
        }

        .procapture-field-hint {
            margin-top: 8px;
            color: #e03131;
            font-size: 0.9rem;
            display: none;
        }

        .procapture-checkbox-group {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-top: 10px;
        }

        .procapture-checkbox-group input {
            width: auto;
            transform: scale(1.3);
        }

        .procapture-settings-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
        }

        @media (max-width: 576px) {
            .procapture-settings-row {
                grid-template-columns: 1fr;
            }
        }

        .procapture-slider-container {
            display: flex;
            align-items: center;
            gap: 15px;
            position: relative;
        }

        .procapture-slider-container input[type="range"] {
            flex: 1;
            height: 10px;
            border-radius: 999px;
            background: linear-gradient(to right, var(--procapture-primary) 0%, var(--procapture-primary) 0%) no-repeat, #e5e7eb;
            background-size: 0% 100%;
            outline: none;
            appearance: none;
            -webkit-appearance: none;
            transition: background-size .15s ease;
        }

        .procapture-slider-container input[type="range"]::-webkit-slider-thumb {
            -webkit-appearance: none;
            appearance: none;
            width: 20px;
            height: 20px;
            border-radius: 50%;
            background: #fff;
            cursor: pointer;
            transition: transform 0.2s, background 0.3s;
            box-shadow: 0 1px 2px rgba(16, 24, 40, 0.24), 0 1px 1px rgba(16, 24, 40, 0.12);
            border: 3px solid var(--procapture-primary);
        }

        .procapture-slider-container input[type="range"]::-webkit-slider-thumb:hover {
            transform: scale(1.06);
        }

        .procapture-slider-container input[type="range"]:focus-visible::-webkit-slider-thumb {
            box-shadow: 0 0 0 6px rgba(67, 97, 238, 0.18);
        }

        /* Firefox */
        .procapture-slider-container input[type="range"]::-moz-range-track {
            height: 10px;
            border: none;
            border-radius: 999px;
            background: transparent;
        }

        .procapture-slider-container input[type="range"]::-moz-range-progress {
            height: 10px;
            background: var(--procapture-primary);
            border-radius: 999px 0 0 999px;
        }

        .procapture-slider-container input[type="range"]::-moz-range-thumb {
            width: 20px;
            height: 20px;
            background: #fff;
            border: 3px solid var(--procapture-primary);
            border-radius: 50%;
            box-shadow: 0 1px 2px rgba(16, 24, 40, 0.24), 0 1px 1px rgba(16, 24, 40, 0.12);
            transition: transform .15s ease;
        }

        /* Value bubble for range sliders */
        .procapture-slider-value {
            position: absolute;
            top: -22px;
            left: 0;
            transform: translateX(-50%);
            padding: 4px 4px;
            background: #111827;
            color: #fff;
            border-radius: 6px;
            font-size: 0.75rem;
            font-weight: 600;
            line-height: 1;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
            white-space: nowrap;
            pointer-events: none;
            opacity: 0;
            transition: opacity .15s ease;
        }

        .procapture-slider-value::after {
            content: "";
            position: absolute;
            left: 50%;
            bottom: -6px;
            transform: translateX(-50%);
            border: 6px solid transparent;
            border-top-color: #111827;
        }

        .procapture-slider-container:hover .procapture-slider-value,
        .procapture-slider-container:focus-within .procapture-slider-value {
            opacity: 1;
        }

        .procapture-preview-box {
            background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 248, 248, 0.9) 100%);
            border-radius: 16px;
            padding: 0;
            text-align: center;
            border: 2px solid rgba(255, 255, 255, 0.4);
            position: relative;
            transition: all 0.4s ease;
            flex-grow: 1;
            display: flex;
            flex-direction: column;
            justify-content: center;
            overflow: hidden;
            backdrop-filter: blur(10px);
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
            width: 100%;
        }

        .procapture-preview-box::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0.3) 100%);
            pointer-events: none;
            border-radius: 16px;
        }

        .procapture-preview-box::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(135deg, rgba(255, 107, 107, 0.05) 0%, rgba(78, 205, 196, 0.05) 50%, rgba(69, 183, 209, 0.05) 100%);
            opacity: 0;
            transition: opacity 0.4s ease;
            pointer-events: none;
        }

        .procapture-preview-box:hover {
            border-color: #4ecdc4;
            box-shadow: 0 12px 40px rgba(78, 205, 196, 0.3);
            transform: translateY(-4px) scale(1.02);
        }

        .procapture-preview-box:hover::before {
            opacity: 1;
        }

        .procapture-preview-box.active {
            border-color: #ff6b6b;
            box-shadow: 0 0 0 4px rgba(255, 107, 107, 0.2), 0 12px 40px rgba(255, 107, 107, 0.25);
            transform: translateY(-2px);
        }

        .procapture-preview-box p {
            color: var(--procapture-gray);
            margin-bottom: 20px;
            font-weight: 500;
            font-size: 1.1rem;
        }

        .procapture-preview-placeholder {
            width: 100%;
            height: 300px;
            background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 248, 248, 0.8) 100%);
            border-radius: 12px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            color: #666;
            border-top: none;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
            backdrop-filter: blur(5px);
        }

        .procapture-preview-placeholder::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(45deg, transparent 30%, rgba(255, 107, 107, 0.1) 50%, transparent 70%);
            animation: procapture-shimmer 3s ease-in-out infinite;
        }

        @keyframes procapture-shimmer {
            0% {
                transform: translateX(-100%);
            }

            100% {
                transform: translateX(100%);
            }
        }

        .procapture-preview-placeholder i {
            font-size: 4rem;
            margin-bottom: 20px;
            background: linear-gradient(135deg, #ff6b6b 0%, #4ecdc4 50%, #45b7d1 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            opacity: 0.8;
            position: relative;
            z-index: 2;
            animation: procapture-colorShift 4s ease infinite;
        }

        @keyframes procapture-colorShift {

            0%,
            100% {
                filter: hue-rotate(0deg);
            }

            50% {
                filter: hue-rotate(180deg);
            }
        }

        .procapture-preview-image {
            width: 100%;
            height: auto;
            max-height: 70vh;
            border-radius: 0;
            object-fit: contain;
            display: none;
        }

        /* Hover view icon */
        .procapture-preview-box {
            position: relative;
        }

        .procapture-view-overlay {
            position: absolute;
            right: 12px;
            bottom: 12px;
            background: rgba(17, 24, 39, 0.75);
            color: #fff;
            border-radius: 999px;
            padding: 8px 10px;
            display: none;
            align-items: center;
            gap: 6px;
            font-size: 0.9rem;
            cursor: pointer;
        }

        .procapture-preview-box:hover .procapture-view-overlay {
            display: inline-flex;
        }

        /* Lightbox */
        .procapture-lightbox {
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.8);
            display: none;
            align-items: center;
            justify-content: center;
            z-index: 10000;
        }

        .procapture-lightbox img {
            max-width: 95vw;
            max-height: 95vh;
        }

        .procapture-lightbox-close {
            position: absolute;
            top: 16px;
            right: 16px;
            color: #fff;
            font-size: 1.4rem;
            cursor: pointer;
        }

        .procapture-badge-pill {
            display: inline-block;
            padding: 0px 10px;
            border-radius: 999px;
            font-size: 0.8rem;
            font-weight: 600;
        }

        .procapture-badge-success {
            background: #e8faf0;
            color: #127c36;
            border: 1px solid #c3f0d3;
        }

        .procapture-badge-danger {
            background: #ffefef;
            color: #b42318;
            border: 1px solid #ffd5d5;
        }

        .procapture-action-buttons {
            display: flex;
            justify-content: flex-end;
            margin-top: 32px;
            gap: 12px;
            position: relative;
            z-index: 2;
        }

        /* Make primary action clear and responsive */
        #procapture-capture-btn {
            width: auto;
            min-width: 180px;
            padding: 14px 18px;
            flex: 0 0 auto;
        }

        .procapture-button {
            flex: 0 0 auto;
            padding: 18px;
            border: none;
            border-radius: 12px;
            font-size: 1.1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 12px;
        }

        .procapture-capture-btn {
            background: linear-gradient(135deg, #ff6b6b 0%, #4ecdc4 50%, #45b7d1 100%);
            background-size: 200% 200%;
            animation: procapture-gradientShift 3s ease infinite;
            color: white;
            box-shadow: 0 8px 20px rgba(255, 107, 107, 0.3);
            font-weight: 700;
            letter-spacing: 0.5px;
            text-transform: uppercase;
            font-size: 1rem;
            padding: 18px 32px;
            position: relative;
            overflow: hidden;
            border-radius: 12px;
        }

        .procapture-capture-btn::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0.2) 100%);
            pointer-events: none;
            border-radius: 12px;
        }

        .procapture-capture-btn::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
            transition: left 0.6s ease;
        }

        .procapture-capture-btn:hover::before {
            left: 100%;
        }

        .procapture-capture-btn:hover {
            background: linear-gradient(135deg, #ff5252 0%, #26a69a 50%, #2196f3 100%);
            transform: translateY(-4px) scale(1.05);
            box-shadow: 0 16px 40px rgba(255, 107, 107, 0.4);
            animation: none;
        }

        .procapture-capture-btn:active {
            transform: translateY(-1px);
        }

        .procapture-reset-btn {
            background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 248, 248, 0.95) 100%);
            color: #475467;
            border: 2px solid rgba(255, 255, 255, 0.5);
            position: relative;
            transition: all 0.3s ease;
            backdrop-filter: blur(15px);
            font-weight: 600;
            letter-spacing: 0.3px;
            text-transform: uppercase;
            font-size: 0.9rem;
            padding: 16px 24px;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
            border-radius: 12px;
            overflow: hidden;
        }

        .procapture-reset-btn::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0.3) 100%);
            pointer-events: none;
            border-radius: 12px;
        }

        .procapture-reset-btn::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(135deg, rgba(78, 205, 196, 0.1) 0%, rgba(255, 107, 107, 0.1) 100%);
            opacity: 0;
            transition: opacity 0.3s ease;
            pointer-events: none;
        }

        .procapture-reset-btn:hover::before {
            opacity: 1;
        }

        .procapture-reset-btn:hover {
            transform: translateY(-4px) scale(1.05);
            box-shadow: 0 12px 30px rgba(78, 205, 196, 0.3);
            border-color: #4ecdc4;
            background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 248, 248, 0.98) 100%);
            color: #4ecdc4;
        }

        /* Focus-visible outlines for accessibility */
        .procapture-button:focus-visible,
        .procapture-select:focus-visible,
        .procapture-input:focus-visible {
            outline: none;
        }

        .procapture-tools-header {
            display: none;
        }

        .procapture-preview-header {
            display: flex;
            align-items: center;
            gap: 15px;
            margin-bottom: 30px;
            padding-bottom: 20px;
            border-bottom: 2px solid transparent;
            background: linear-gradient(90deg, var(--procapture-primary) 0%, var(--procapture-secondary) 100%) bottom/100% 2px no-repeat;
            position: relative;
            z-index: 2;
        }

        .procapture-preview-header i {
            font-size: 2rem;
            color: #ffffff;
            background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
            padding: 15px;
            border-radius: 12px;
            border: 2px solid rgba(255, 255, 255, 0.3);
            position: relative;
            transition: all 0.3s ease;
            backdrop-filter: blur(10px);
        }

        .procapture-preview-header i:hover {
            border-color: rgba(255, 255, 255, 0.5);
            background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.2) 100%);
            transform: translateY(-2px);
        }

        .procapture-preview-header h2 {
            font-size: 2rem;
            color: #ffffff;
            font-weight: 800;
            letter-spacing: -0.025em;
            text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
        }

        .procapture-footer {
            text-align: center;
            padding: 25px;
            color: var(--procapture-gray);
            font-size: 0.95rem;
            border-top: 1px solid var(--procapture-border);
            background: #f8fafc;
        }

        .procapture-badge {
            display: none;
        }

        /* Toasts */
        .procapture-toast-container {
            position: fixed;
            bottom: 20px;
            right: 20px;
            display: flex;
            flex-direction: column;
            gap: 10px;
            z-index: 9999;
        }

        .procapture-toast {
            min-width: 260px;
            max-width: 380px;
            background: var(--procapture-card-bg);
            color: var(--procapture-dark);
            border: 1px solid var(--procapture-border);
            box-shadow: var(--procapture-shadow);
            border-radius: 12px;
            padding: 12px 14px;
            display: flex;
            align-items: flex-start;
            gap: 10px;
            animation: procapture-slideIn .25s ease;
        }

        @keyframes procapture-slideIn {
            from {
                transform: translateY(10px);
                opacity: 0;
            }

            to {
                transform: translateY(0);
                opacity: 1;
            }
        }

        .procapture-toast.success {
            border-left: 4px solid #2f9e44;
        }

        .procapture-toast.error {
            border-left: 4px solid #e03131;
        }

        .procapture-toast.info {
            border-left: 4px solid var(--procapture-primary);
        }

        .procapture-toast-close {
            margin-left: auto;
            color: var(--procapture-gray);
            cursor: pointer;
        }

        /* Button disabled state */
        .procapture-button:disabled {
            opacity: 0.7;
            cursor: not-allowed;
        }

        .procapture-feature-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
        }

        .procapture-feature-card i {
            font-size: 2.5rem;
            color: var(--procapture-primary);
            margin-bottom: 15px;
        }

        .procapture-feature-card h3 {
            font-size: 1.2rem;
            margin-bottom: 10px;
            color: var(--procapture-dark);
        }

        .procapture-feature-card p {
            color: var(--procapture-gray);
            font-size: 0.9rem;
        }

        /* Allow the format dropdown menu to escape the input group's box */
        #procapture-format_group {
            overflow: visible;
        }

        /* Restore Font Awesome font family inside wrapper (reset overrides otherwise) */
        .procapture-wrapper .fa,
        .procapture-wrapper .fas {
            font-family: "Font Awesome 5 Free" !important;
            font-weight: 900 !important;
        }

        .procapture-wrapper .far {
            font-family: "Font Awesome 5 Free" !important;
            font-weight: 400 !important;
        }

        .procapture-wrapper .fab {
            font-family: "Font Awesome 5 Brands" !important;
            font-weight: 400 !important;
        }
   