.face-modal-popup-wrap .modal-content{
    background-color: transparent;
    border: 0;
}
.face-modal-popup-wrap .modal-header{
    border: 0;
}
/*----live-demo-popup----*/
/* MAIN SECTION */
.face-modal-popup-wrap.modal.show .modal-dialog {
    transform: none;
    margin-top: 0;
}
.face-modal-popup-wrap.modal {
    top: 0;
}
.yx-demo {
      /* min-height: 100vh; */
    /* padding: 25px; */
    display: flex;
    align-items: center;
    justify-content: center;
    /* background: radial-gradient(circle at 5% 50%, rgba(0, 180, 180, .12), transparent 35%), radial-gradient(circle at 100% 20%, rgba(0, 90, 160, .18), transparent 40%), #020e14; */
    overflow: hidden;
    /* border-radius: 50px; */
}

.yx-wrapper {
    width: 100%;
    /* max-width: 1500px;
    min-height: 790px; */
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    padding: 25px;
    border: 1px solid rgba(0, 218, 207, .35);
    border-radius: 35px;
    background: #031a2d;
    box-shadow: 0 0 70px rgba(0, 208, 190, .08);
    position: relative;
}

/* CLOSE BUTTON */

.face-modal-popup-wrap button.btn-close{
  position: absolute;
  right: 44px;
  top: 81px;
  width: 30px;
  height: 30px;
  line-height: 30px;
  border: 1px solid rgba(255, 255, 255, .2);
  background: transparent;
  color: #fff;
  font-size: 30px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 5;
  opacity: 1;
}

.face-modal-popup-wrap button.btn-close:hover {
    background: #ffbd42;
    color: #001d23;
}

/* LEFT CAMERA PANEL */

.yx-camera-panel {
    position: relative;
    /* min-height: 740px; */
    border: 2px solid #a76a22;
    border-radius: 24px;
    overflow: hidden;
    background:
        linear-gradient(rgba(0,255,230,.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,255,230,.025) 1px, transparent 1px),
        #071312;
    background-size: 32px 32px;
    display: flex;
    flex-direction: column;
}

.yx-camera-top {
    padding: 22px 25px;
    display: flex;
    justify-content: space-between;
    color: #a4b4b1;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    z-index: 2;
}

.yx-rec {
    display: flex;
    align-items: center;
    gap: 10px;
}

.yx-rec span {
    width: 11px;
    height: 11px;
    background: #ff405c;
    border-radius: 50%;
    animation: blink 1.2s infinite;
}

@keyframes blink {
    50% { opacity: .2; }
}

.yx-face-area {
    flex: 1;
    min-height: 490px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.yx-face-svg {
    width: 88%;
    max-width: 510px;
    height: auto;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 0 12px rgba(0,255,225,.12));
}

.yx-scan-line {
    position: absolute;
    top: 10%;
    left: 7%;
    width: 86%;
    height: 2px;
    background: #00e5d5;
    box-shadow: 0 0 15px #00e5d5;
    z-index: 3;
    animation: scan 4s linear infinite;
}

@keyframes scan {
    0% { top: 10%; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 88%; opacity: 0; }
}

.yx-face-circle {
    position: absolute;
    width: 75%;
    aspect-ratio: 1;
    max-width: 440px;
    border: 2px solid rgba(0,255,225,.1);
    border-radius: 50%;
}

.yx-face-circle::before {
    content: "";
    position: absolute;
    inset: 10%;
    border: 3px solid #00ded1;
    border-radius: 50%;
    border-right-color: transparent;
    border-bottom-color: transparent;
    animation: rotate 8s linear infinite;
}

.yx-face-circle::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 5px solid transparent;
    border-top-color: #ffb43c;
    border-right-color: #ffb43c;
    border-radius: 50%;
    transform: rotate(35deg);
}

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

.yx-corner {
    position: absolute;
    width: 43px;
    height: 43px;
    border-color: #ffb43c;
    border-style: solid;
    z-index: 3;
}

.yx-corner.tl {
    top: 5%;
    left: 20%;
    border-width: 4px 0 0 4px;
}

.yx-corner.tr {
    top: 5%;
    right: 20%;
    border-width: 4px 4px 0 0;
}

.yx-corner.bl {
    bottom: 8%;
    left: 20%;
    border-width: 0 0 4px 4px;
}

.yx-corner.br {
    bottom: 8%;
    right: 20%;
    border-width: 0 4px 4px 0;
}

/* FACE STATUS */

.yx-eye-status {
    display: table;
    margin: 0 auto 20px;
    border: 1px solid #a77b22;
    background: rgba(0,15,15,.9);
    border-radius: 30px;
    padding: 10px 22px;
    color: #ffb43c;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.yx-eye-status span {
    display: inline-block;
    width: 10px;
    height: 10px;
    background: #ffb43c;
    border-radius: 50%;
    margin-right: 9px;
}

.yx-status-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    padding: 5px 15px 22px;
}

.yx-status-list span {
    padding: 8px 12px;
    border: 1px solid rgba(255,255,255,.12);
    color: #778d88;
    font-size: 11px;
    font-weight: 700;
    border-radius: 10px;
}

.yx-status-list span.active {
    border-color: #ffb43c;
    color: #fff;
    background: rgba(255,180,60,.1);
}

/* RIGHT CONTENT */

.yx-content {
  padding: 25px 25px 20px 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  text-align: left;
}

/* .yx-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 38px;
} */

.yx-brand img {
    width: 55px;
    height: 55px;
    object-fit: contain;
}

.yx-brand-name {
    font-size: 30px;
    font-weight: 800;
    letter-spacing: 2px;
}

.yx-brand-name span {
    display: block;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1px;
    color: #a6b6c1;
}

.yx-kicker {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 3px;
    margin-bottom: 18px;
}

.yx-kicker i {
    width: 11px;
    height: 11px;
    background: #ff405c;
    border-radius: 50%;
}

.yx-content h1 {
    color: #fff;
    font-size: 48px;
    line-height: .96;
    font-weight: 700;
    letter-spacing: -1px;    
    text-transform: uppercase;
    margin-bottom: 10px;
}

.yx-content h1 span {
    display: block;
    color: #ffbd42;
}

.yx-description {
    color: #e7edf5;
    font-size: 14px;
    line-height: 1.8;
    font-weight: 400;
    margin-bottom: 10px;
}
.yx-privacy p {
    color: #b2c4c5;
    font-size: 12px;
    line-height: 18px;
    font-weight: 400;
}
/* STEPS */

.yx-steps {
    width: 100%;
    /* background: #031a2d;
    border-top: 1px solid rgba(0, 190, 255, .16); */
}

.yx-step {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 60px;
    padding: 10px 15px;
    border-bottom: 1px solid rgba(0, 190, 255, .17);
}

/* Number circle */
.yx-step strong {
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #ffbd42;
    color: #032033;
    font-size: 14px;
    font-weight: 700;
}

/* SVG icons */
.yx-step-icon {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffbd42;
}

.yx-step-icon svg {
    width: 80%;
    height: 80%;
}

/* Text */
.yx-step-text {
    color: #e7edf5;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 400;
}

/* Mobile */
@media(max-width: 575px) {
    .yx-step {
        gap: 13px;
        padding: 10px;
    }

    .yx-step strong {
        flex-basis: 32px;
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .yx-step-icon {
        flex-basis: 34px;
        width: 34px;
        height: 34px;
    }

    .yx-step-text {
        font-size: 13px;
    }
}

/* LANGUAGE */

.yx-language {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    color: #a5b9b8;
    font-size: 15px;    
    margin-top: 20px;
}

.yx-language button {
    padding: 10px 22px;
    border: 1px solid rgba(255,255,255,.2);
    background: transparent;
    color: #fff;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.yx-language button.active,
.yx-language button:hover {
    border-color: #ffbd42;
    background: rgb(251 185 63 / 12%);
}

/* ACTION BUTTON */

.yx-actions {
    display: flex;
    align-items: center;
    gap: 25px;
    flex-wrap: wrap;
}

.yx-start-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 16px 28px;
    border: none;
    border-radius: 17px;
    color: #00201e;
    background: linear-gradient(110deg, #ffbd42, #ffa600);
    cursor: pointer;
    box-shadow: 0 10px 30px rgb(255 189 66 / 15%);
    transition: .3s;
    position:relative;
    overflow: hidden;
}
.yx-start-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgb(255 255 255 / 0.55), transparent);
  transform: skewX(-20deg);
  animation: lddShine 3.6s ease-in-out infinite;
}
@keyframes lddShine {
  0%,
  55% {
    left: -60%;
  }
  100% {
    left: 130%;
  }
}
.yx-start-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(190, 127, 10,.3);
}

.yx-start-btn span {
    font-size: 14px;
    font-weight:700;
}

.yx-later {
    color: #a4b6b5;
    text-decoration: underline;
    text-underline-offset: 5px;
    font-size: 15px;
    cursor: pointer;
    background: transparent;
    border: 0;
}

/* PRIVACY */
.yx-privacy {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    color: #829a98;
    font-size: 13px;
    line-height: 1.8;
    margin-top: 23px;
    max-width: 520px;
}

.yx-privacy i {
    color: #13d9ca;
    font-size: 18px;
    margin-top: 3px;
}

/* CAMERA PREVIEW */

.yx-video {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
    z-index: 1;
    opacity: .65;
}

.yx-camera-panel.camera-active .yx-video {
    display: block;
}

.yx-camera-panel.camera-active .yx-face-svg {
    display: none;
}

.yx-camera-panel.camera-active .yx-face-circle {
    display: none;
}

.yx-message {
    display: none;
    color: #20e3d4;
    font-size: 13px;
    text-align: center;
    padding: 10px;
}

.yx-message.show {
    display: block;
}

/* RESPONSIVE */

@media(max-width: 1100px) {
    .yx-wrapper {
        gap: 30px;
        padding: 20px;
    }

    .yx-content h1 {
        font-size: 36px;
    }

    .yx-content {
        padding-right: 5px;
    }
}

@media(max-width: 850px) {
    .yx-demo {
        padding: 20px 3%;
    }

    .yx-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 20px;
    }

    .yx-camera-panel {
        min-height: 570px;
    }

    .yx-content {
        padding: 10px;
    }

    .yx-brand {
        margin-bottom: 25px;
    }
}

@media(max-width: 500px) {
    .yx-wrapper {
        padding: 12px;
        border-radius: 20px;
    }

    .yx-camera-panel {
        min-height: 450px;
        border-radius: 16px;
    }

    .yx-camera-top {
        padding: 16px 12px;
        font-size: 10px;
    }

    .yx-face-area {
        min-height: 300px;
    }

    .yx-content h1 {
        font-size: 46px;
    }

    .yx-description {
        font-size: 14px;
    }

    .yx-step {
        font-size: 13px;
        gap: 12px;
    }

    .yx-start-btn {
        width: 100%;
        padding: 17px 15px;
        font-size: 15px;
    }

    .yx-actions {
        gap: 18px;
    }

    .yx-content {
        padding: 10px 5px;
    }

    .yx-brand-name {
        font-size: 25px;
    }
}
/*----face-animation-section----*/
.yx-ai-camera {
    width: 100%;
    max-width: 480px;
    padding: 18px;
    border: 2px solid #a8792a;
    border-radius: 22px;
    background: #061a1c;
    color: #fff;
    overflow: hidden;
    font-family: Arial, sans-serif;
    box-shadow: 0 0 35px rgba(0,220,220,.08);
}

/* Camera Header */

.yx-ai-camera-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: #a9c1c2;
    margin-bottom: 15px;
}

.yx-rec-dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    background: #ff344f;
    border-radius: 50%;
    margin-right: 6px;
    animation: yxBlink 1s infinite;
}

@keyframes yxBlink {
    50% { opacity: .2; }
}

/* Camera Screen */

.yx-ai-screen {
    height: 480px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background: #061516;
    border: 1px solid rgba(0,220,220,.15);
}

/* Background Grid */

.yx-ai-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0,220,220,.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,220,220,.045) 1px, transparent 1px);
    background-size: 30px 30px;
}

/* Scanner Circle */

.yx-ai-scanner {
    position: absolute;
    width: 85%;
    aspect-ratio: 1;
    max-width: 390px;
    border: 1px solid rgba(0,230,220,.15);
    border-radius: 50%;
}

.yx-ai-ring {
    position: absolute;
    inset: 0;
    border: 3px solid transparent;
    border-top-color: #00e6dc;
    border-right-color: #00e6dc;
    border-radius: 50%;
    animation: yxRotate 7s linear infinite;
}

.yx-ai-ring-inner {
    position: absolute;
    inset: 12%;
    border: 2px dashed rgba(0,220,220,.35);
    border-radius: 50%;
    animation: yxRotate 12s linear infinite reverse;
}

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

/* Face */

.yx-ai-face {
    position: relative;
    width: 85%;
    height: 95%;
    z-index: 2;
    overflow: visible;
    filter: drop-shadow(0 0 10px rgba(0,230,220,.3));
}

.yx-ai-face circle {
    animation: yxPointGlow 1.8s ease-in-out infinite alternate;
}

@keyframes yxPointGlow {
    from {
        opacity: .4;
        filter: drop-shadow(0 0 2px #00f5e5);
    }
    to {
        opacity: 1;
        filter: drop-shadow(0 0 8px #00f5e5);
    }
}

/* Scan Line */

.yx-ai-scanline {
    position: absolute;
    z-index: 4;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: #00f5e5;
    box-shadow: 0 0 15px #00f5e5;
    animation: yxScan 4s ease-in-out infinite;
}

@keyframes yxScan {
    0% { top: 0; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

/* Corner Brackets */

.yx-ai-corner {
    position: absolute;
    width: 42px;
    height: 42px;
    z-index: 5;
    border-color: #ffb52e;
    border-style: solid;
}

.yx-tl {
    top: 7%;
    left: 12%;
    border-width: 4px 0 0 4px;
}

.yx-tr {
    top: 7%;
    right: 12%;
    border-width: 4px 4px 0 0;
}

.yx-bl {
    bottom: 7%;
    left: 12%;
    border-width: 0 0 4px 4px;
}

.yx-br {
    bottom: 7%;
    right: 12%;
    border-width: 0 4px 4px 0;
}

/* Eye Status */

.yx-ai-eye-status {
    position: absolute;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 6;
    white-space: nowrap;
    padding: 11px 22px;
    border: 1px solid #a8792a;
    border-radius: 30px;
    background: rgba(3,17,20,.95);
    color: #ffbd39;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.yx-ai-eye-status span {
    display: inline-block;
    width: 9px;
    height: 9px;
    background: #ffbd39;
    border-radius: 50%;
    margin-right: 8px;
    animation: yxBlink 1s infinite;
}

/* Detection Labels */

.yx-ai-detection {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    padding: 17px 0;
}

.yx-ai-detection span {
    padding: 9px 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #294348;
    border-radius: 7px;
    color: #859c9d;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .4px;
}

.yx-ai-detection span.active {
    color: #ffbd39;
    border-color: #a8792a;
    background: rgba(255,189,57,.07);
}

.yx-ai-detection span i {
    font-size: 12px;
}

/* Footer */

.yx-ai-footer {
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,.12);
    color: #8fa8a8;
    font-size: 10px;
    letter-spacing: 1.5px;
    font-weight: 700;
}

.yx-ai-footer i {
    color: #00e5d9;
    margin-right: 7px;
}

.yx-ai-footer span {
    float: right;
    color: #00e5d9;
}

/* Responsive */

@media(max-width: 500px) {
    .yx-ai-camera {
        padding: 12px;
    }

    .yx-ai-screen {
        height: 370px;
    }

    .yx-ai-detection span {
        font-size: 8px;
        padding: 7px;
    }
}

/* =====================================
   YANTRIX AI DRIVER MONITORING ANIMATION
===================================== */

.yx-monitor {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #06121e;
    border: 1px solid rgba(0, 190, 255, .3);
    border-radius: 14px;
    color: #fff;
    /* font-family: Arial, sans-serif; */
}

/* HEADER */

.yx-monitor-header {
    height: 58px;
    padding: 0 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #04101b;
    border-bottom: 1px solid rgba(0, 190, 255, .2);
}

.yx-rec {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #e8f2f8;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
}

.yx-rec-dot {
    width: 9px;
    height: 9px;
    background: #ff3d68;
    border-radius: 50%;
    box-shadow: 0 0 10px #ff3d68;
    animation: yx-rec-blink 1s infinite;
}

.yx-camera-time {
    color: #a9c5d7;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
}

/* MONITOR SCREEN */

.yx-monitor-screen {
    height: 490px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background: #04111b;
}

/* GRID */

.yx-grid-bg {
    position: absolute;
    inset: 0;
    opacity: .5;
    background-image:
        linear-gradient(rgba(0, 190, 255, .08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 190, 255, .08) 1px, transparent 1px);
    background-size: 32px 32px;
}

/* SCANNER CIRCLE */

.yx-scan-circle {
    position: absolute;
    width: 285px;
    height: 285px;
    border: 2px solid rgba(0, 218, 255, .55);
    border-radius: 50%;
    animation: yx-circle-pulse 4s ease-in-out infinite;
}

.yx-scan-circle::before,
.yx-scan-circle::after {
    content: "";
    position: absolute;
    border-radius: 50%;
}

.yx-scan-circle::before {
    inset: -25px;
    border: 1px dashed rgba(0, 190, 255, .25);
}

.yx-scan-circle::after {
    inset: 20px;
    border: 1px solid rgba(0, 190, 255, .15);
}

/* WARNING CIRCLE */

.yx-warning-circle {
    position: absolute;
    width: 285px;
    height: 285px;
    border: 2px solid #ff3d68;
    border-radius: 50%;
    opacity: 0;
    transform: scale(.85);
    transition: .4s ease;
}

.yx-monitor.warning .yx-warning-circle {
    opacity: 1;
    transform: scale(1);
    animation: yx-warning-pulse 1.5s infinite;
}

.yx-monitor.warning .yx-scan-circle {
    border-color: rgba(255, 61, 104, .5);
}

/* FACE FRAME */

.yx-face-frame {
    position: absolute;
    z-index: 3;
    width: 225px;
    height: 280px;
}

.yx-frame-corner {
    position: absolute;
    width: 28px;
    height: 28px;
    border-color: #ffc400;
    border-style: solid;
}

.yx-frame-corner.top-left {
    top: 0;
    left: 0;
    border-width: 3px 0 0 3px;
}

.yx-frame-corner.top-right {
    top: 0;
    right: 0;
    border-width: 3px 3px 0 0;
}

.yx-frame-corner.bottom-left {
    bottom: 0;
    left: 0;
    border-width: 0 0 3px 3px;
}

.yx-frame-corner.bottom-right {
    bottom: 0;
    right: 0;
    border-width: 0 3px 3px 0;
}

/* FACE */

.yx-face-illustration {
    position: relative;
    z-index: 2;
    width: 250px;
    height: 330px;
    transition: opacity .3s ease;
}

.yx-face-illustration svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.yx-face-outline {
    fill: rgba(0, 255, 210, .025);
    stroke: #42e9d0;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.yx-body-outline {
    fill: none;
    stroke: rgba(57, 226, 199, .5);
    stroke-width: 2;
}

.yx-face-detail {
    fill: none;
    stroke: #42e9d0;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* LANDMARK LINES */

.yx-landmark-lines {
    fill: none;
    stroke: rgba(60, 218, 190, .3);
    stroke-width: 1.2;
}

.yx-landmark-points {
    fill: #49e9d0;
    filter: drop-shadow(0 0 4px #49e9d0);
}

.yx-landmark-points circle {
    animation: yx-point-pulse 1.8s infinite alternate;
}

/* EYES */

.yx-eye-shape {
    fill: none;
    stroke: #42e9d0;
    stroke-width: 3;
}

.yx-eye-pupil {
    fill: #42e9d0;
}

.yx-eyes-closed {
    display: none;
    fill: none;
    stroke: #42e9d0;
    stroke-width: 3;
    stroke-linecap: round;
}

.yx-monitor.eyes-closed .yx-eyes-open {
    display: none;
}

.yx-monitor.eyes-closed .yx-eyes-closed {
    display: block;
}

/* MOUTH */

.yx-mouth ellipse {
    fill: none;
    stroke: #42e9d0;
    stroke-width: 3;
}

.yx-monitor.yawning .yx-mouth ellipse {
    rx: 13px;
    ry: 19px;
}

/* LOOKING AWAY */

.yx-monitor.looking-away .yx-eyes-open {
    transform: translateX(10px);
}

/* SCAN LINE */

.yx-horizontal-scan {
    position: absolute;
    z-index: 4;
    left: 10%;
    right: 10%;
    top: 10%;
    height: 2px;
    background: #00d9ff;
    box-shadow: 0 0 10px #00d9ff;
    opacity: .8;
    animation: yx-line-scan 4s ease-in-out infinite;
}

/* STATUS */

.yx-detection-status {
    position: absolute;
    z-index: 5;
    bottom: 13px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 14px;
    background: rgba(3, 20, 32, .95);
    border: 1px solid rgba(0, 210, 255, .4);
    border-radius: 5px;
    color: #45e9ff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.3px;
    white-space: nowrap;
}

.yx-status-indicator {
    width: 8px;
    height: 8px;
    background: #ffc400;
    border-radius: 50%;
    box-shadow: 0 0 8px currentColor;
}

.yx-monitor.warning .yx-detection-status {
    border-color: #ff3d68;
    color: #ff6385;
}

.yx-monitor.warning .yx-status-indicator {
    background: #ff3d68;
}

/* DETECTION OPTIONS */

.yx-detection-options {
    position: relative;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 17px 12px;
    background: #04101b;
    border-top: 1px solid rgba(0, 190, 255, .2);
}

.yx-detection-options button {
    padding: 9px 16px;
    border: 2px solid #16496b;
    border-radius: 30px;
    background: transparent;
    color: #e2eaf1;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .5px;
    white-space: nowrap;
    cursor: pointer;
    transition: all .3s ease;
}

.yx-detection-options button:hover {
    border-color: #00cfff;
    color: #00d9ff;
}

.yx-detection-options button.active {
    border-color: #ffc400;
    color: #ffc400;
    background: rgba(255, 196, 0, .06);
    box-shadow: 0 0 12px rgba(255, 196, 0, .08);
}

/* NO FACE STATE */

.yx-monitor.no-face .yx-face-illustration {
    opacity: .08;
}

.yx-monitor.no-face .yx-face-frame {
    opacity: .3;
}

/* ANIMATIONS */

@keyframes yx-rec-blink {
    50% {
        opacity: .25;
    }
}

@keyframes yx-circle-pulse {
    0%, 100% {
        transform: scale(.97);
        opacity: .7;
    }

    50% {
        transform: scale(1.03);
        opacity: 1;
    }
}

@keyframes yx-warning-pulse {
    50% {
        box-shadow: 0 0 22px rgba(255, 61, 104, .45);
    }
}

@keyframes yx-point-pulse {
    from {
        opacity: .45;
    }

    to {
        opacity: 1;
    }
}

@keyframes yx-line-scan {
    0% {
        top: 10%;
        opacity: .2;
    }

    50% {
        top: 85%;
        opacity: .9;
    }

    100% {
        top: 10%;
        opacity: .2;
    }
}

/* RESPONSIVE */

@media (max-width: 575px) {

    .yx-monitor-screen {
        height: 350px;
    }

    .yx-face-illustration {
        width: 210px;
        height: 290px;
    }

    .yx-scan-circle,
    .yx-warning-circle {
        width: 240px;
        height: 240px;
    }

    .yx-face-frame {
        width: 190px;
        height: 245px;
    }

    .yx-detection-options {
        gap: 7px;
        padding: 14px 8px;
    }

    .yx-detection-options button {
        padding: 8px 11px;
        font-size: 10px;
    }

    .yx-camera-time {
        font-size: 9px;
    }
}
