/* DentaVista — dc-before-after widget styles */
.dv-ba__head { max-width: 680px; margin: 0 auto clamp(34px, 5vw, 56px); }

                .hr-widget { position: relative; width: 100%; max-width: 1040px; margin: 0 auto; }
                .hr-container {
                    position: relative; width: 100%; height: 520px;
                    border-radius: 26px; overflow: hidden; cursor: none;
                    background: var(--dv-navy);
                    box-shadow: 0 25px 50px -12px rgba(31, 42, 51,.4), 0 0 0 1px rgba(31, 42, 51,.06);
                }
                .hr-image-layer { position: absolute; inset: 0; width: 100%; height: 100%; }
                .hr-image { width: 100%; height: 100%; object-fit: cover; object-position: center; }
                .hr-before-layer { z-index: 1; }
                .hr-before-layer .hr-image, .hr-after-layer .hr-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
                .hr-after-layer { z-index: 2; pointer-events: none; clip-path: circle(0px at 50% 50%); transition: clip-path .1s ease-out; }

                .hr-reveal-blob {
                    position: absolute; width: var(--blob-size, 280px); height: var(--blob-size, 280px);
                    pointer-events: none; z-index: 10;
                    transform: translate(-50%, -50%) scale(0);
                    transition: transform .4s cubic-bezier(.34,1.56,.64,1);
                    will-change: transform, left, top;
                }
                .hr-container:hover .hr-reveal-blob { transform: translate(-50%, -50%) scale(1); }
                .hr-blob-inner { position: relative; width: 100%; height: 100%; border-radius: 50%; }
                .hr-blob-inner[data-shape="blob"] { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
                .hr-blob-inner[data-shape="cloud"] { border-radius: 50% 50% 45% 55% / 40% 60% 40% 60%; }
                .hr-blob-inner[data-shape="circle"] { border-radius: 50%; }
                .hr-blob-inner.hr-animate { animation: hrBlobMorph 8s ease-in-out infinite; }
                @keyframes hrBlobMorph {
                    0%,100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
                    25% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
                    50% { border-radius: 50% 60% 30% 60% / 30% 40% 70% 50%; }
                    75% { border-radius: 40% 60% 60% 40% / 60% 40% 50% 50%; }
                }
                .hr-blob-content { position: absolute; inset: 4px; border-radius: inherit; background: transparent; }

                .hr-glow-ring { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s ease; }
                .hr-container:hover .hr-glow-ring { opacity: 1; }
                .hr-glow-ring-1 { width: 100%; height: 100%; background: linear-gradient(135deg, var(--glow-color-1), var(--glow-color-2)); filter: blur(20px); opacity: .55; animation: hrGlow1 2s ease-in-out infinite; }
                .hr-glow-ring-2 { width: 120%; height: 120%; background: linear-gradient(135deg, var(--glow-color-2), var(--glow-color-1)); filter: blur(40px); opacity: .4; animation: hrGlow2 2.5s ease-in-out infinite; }
                .hr-glow-ring-3 { width: 140%; height: 140%; background: radial-gradient(circle, var(--glow-color-1) 0%, transparent 70%); filter: blur(60px); opacity: .3; animation: hrGlow3 3s ease-in-out infinite; }
                @keyframes hrGlow1 { 0%,100% { transform: translate(-50%,-50%) scale(1); opacity:.55; } 50% { transform: translate(-50%,-50%) scale(1.1); opacity:.8; } }
                @keyframes hrGlow2 { 0%,100% { transform: translate(-50%,-50%) scale(1); opacity:.4; } 50% { transform: translate(-50%,-50%) scale(1.15); opacity:.5; } }
                @keyframes hrGlow3 { 0%,100% { transform: translate(-50%,-50%) scale(1); opacity:.3; } 50% { transform: translate(-50%,-50%) scale(1.2); opacity:.4; } }

                .hr-blob-border {
                    position: absolute; inset: 0; border-radius: inherit; border: 3px solid transparent;
                    background: linear-gradient(135deg, var(--glow-color-1), var(--glow-color-2)) border-box;
                    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
                    -webkit-mask-composite: xor; mask-composite: exclude;
                }

                .hr-particles { position: absolute; top: 50%; left: 50%; width: 100%; height: 100%; transform: translate(-50%,-50%); pointer-events: none; opacity: 0; transition: opacity .3s ease; }
                .hr-container:hover .hr-particles { opacity: 1; }
                .hr-particle { position: absolute; top: 50%; left: 50%; width: 6px; height: 6px; background: var(--particle-color); border-radius: 50%; opacity: 0; animation: hrParticle 2s ease-out infinite; animation-delay: var(--delay); box-shadow: 0 0 10px var(--particle-color); }
                @keyframes hrParticle {
                    0% { opacity: 1; transform: translate(-50%,-50%) rotate(var(--angle)) translateY(0) scale(1); }
                    100% { opacity: 0; transform: translate(-50%,-50%) rotate(var(--angle)) translateY(-150px) scale(0); }
                }
                .hr-particle:nth-child(odd) { width: 4px; height: 4px; animation-duration: 2.5s; }
                .hr-particle:nth-child(3n) { width: 8px; height: 8px; animation-duration: 1.8s; }

                .hr-label {
                    position: absolute; display: flex; align-items: center; gap: 8px;
                    padding: 10px 18px; font-size: 13px; font-weight: 600; text-transform: uppercase;
                    letter-spacing: 1px; color: #fff; border-radius: 50px; z-index: 20;
                    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
                    transition: transform .3s ease, opacity .3s ease;
                }
                .hr-label-before { top: 20px; left: 20px; background: transparent; border: none; text-shadow: 0 1px 6px rgba(0,0,0,.45); }
                .hr-label-after { bottom: 20px; right: 20px; background: var(--dv-teal-600); opacity: 0; transform: translateY(10px); box-shadow: 0 8px 20px -8px rgba(63, 160, 206,.6); }
                .hr-container:hover .hr-label-after { opacity: 1; transform: translateY(0); }
                .hr-label-dot { width: 8px; height: 8px; background: currentColor; border-radius: 50%; }
                .hr-label-dot-pulse { animation: hrDot 1.5s ease-in-out infinite; }
                @keyframes hrDot { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.5); opacity: .5; } }

                .hr-hint { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); display: flex; flex-direction: column; align-items: center; gap: 12px; color: rgba(255,255,255,.92); font-size: 14px; font-weight: 600; text-align: center; z-index: 15; transition: opacity .3s ease, transform .3s ease; pointer-events: none; }
                .hr-container:hover .hr-hint { opacity: 0; transform: translate(-50%,-50%) scale(.9); }
                .hr-hint-icon { width: 24px; height: 24px; animation: hrBounce 1.5s ease-in-out infinite; }
                @keyframes hrBounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
                .hr-hint-cursor { width: 30px; height: 30px; color: rgba(255,255,255,.6); animation: hrCursor 2s ease-in-out infinite; }
                @keyframes hrCursor { 0%,100% { transform: translate(0,0); } 25% { transform: translate(14px,-9px); } 50% { transform: translate(-9px,14px); } 75% { transform: translate(9px,9px); } }

                .hr-stats { position: absolute; top: 20px; right: 20px; display: flex; align-items: center; gap: 16px; padding: 14px 20px; background: rgba(255,255,255,.95); border-radius: 16px; z-index: 20; box-shadow: 0 10px 40px rgba(31, 42, 51,.18); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transform: translateY(-10px); opacity: 0; transition: transform .4s ease, opacity .4s ease; transition-delay: .1s; }
                .hr-container:hover .hr-stats { transform: translateY(0); opacity: 1; }
                .hr-stat { display: flex; align-items: center; gap: 10px; }
                .hr-stat-icon { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; background: rgba(63, 160, 206,.12); border-radius: 10px; color: var(--dv-teal-600); }
                .hr-stat-icon svg { width: 20px; height: 20px; }
                .hr-stat-content { display: flex; flex-direction: column; }
                .hr-stat-value { font-size: 17px; font-weight: 800; color: var(--dv-navy); line-height: 1.2; }
                .hr-stat-label { font-size: 11px; color: var(--dv-muted); text-transform: uppercase; letter-spacing: .5px; }
                .hr-stat-divider { width: 1px; height: 40px; background: var(--dv-line); }

                .hr-corner { position: absolute; width: 40px; height: 40px; border: 2px solid rgba(255,255,255,.2); z-index: 5; transition: border-color .3s ease, transform .3s ease; }
                .hr-corner-tl { top: 12px; left: 12px; border-right: none; border-bottom: none; border-radius: 8px 0 0 0; }
                .hr-corner-tr { top: 12px; right: 12px; border-left: none; border-bottom: none; border-radius: 0 8px 0 0; }
                .hr-corner-bl { bottom: 12px; left: 12px; border-right: none; border-top: none; border-radius: 0 0 0 8px; }
                .hr-corner-br { bottom: 12px; right: 12px; border-left: none; border-top: none; border-radius: 0 0 8px 0; }
                .hr-container:hover .hr-corner { border-color: rgba(91, 182, 223,.55); }
                .hr-container:hover .hr-corner-tl { transform: translate(-4px,-4px); }
                .hr-container:hover .hr-corner-tr { transform: translate(4px,-4px); }
                .hr-container:hover .hr-corner-bl { transform: translate(-4px,4px); }
                .hr-container:hover .hr-corner-br { transform: translate(4px,4px); }

                @media (max-width: 768px) {
                    .hr-container { height: 420px; }
                    .hr-reveal-blob { --blob-size: 200px !important; }
                    .hr-stats { top: auto; bottom: 70px; right: 50%; transform: translateX(50%) translateY(10px); padding: 10px 16px; gap: 12px; }
                    .hr-container:hover .hr-stats { transform: translateX(50%) translateY(0); }
                    .hr-label { font-size: 11px; padding: 8px 14px; }
                }
                @media (max-width: 480px) {
                    .hr-container { height: 360px; border-radius: 18px; }
                    .hr-reveal-blob { --blob-size: 160px !important; }
                    .hr-corner { width: 24px; height: 24px; }
                }
                @media (hover: none) {
                    .hr-container { cursor: pointer; }
                    .hr-reveal-blob { top: 50% !important; left: 50% !important; }
                }
                @media (prefers-reduced-motion: reduce) {
                    .hr-blob-inner.hr-animate, .hr-glow-ring, .hr-particle, .hr-blob-border,
                    .hr-label-dot-pulse, .hr-hint-icon, .hr-hint-cursor { animation: none !important; }
                    .hr-reveal-blob, .hr-label, .hr-stats, .hr-corner, .hr-hint { transition: none !important; }
                }
                .elementor-editor-active .hr-reveal-blob { top: 50% !important; left: 50% !important; transform: translate(-50%,-50%) scale(.8); }
                .elementor-editor-active .hr-hint { display: none; }
                .elementor-editor-active .hr-stats, .elementor-editor-active .hr-label-after { opacity: 1; transform: none; }
