.login-card {
    box-shadow: 0 24px 70px rgba(15, 23, 42, .14), inset 0 1px 0 rgba(255, 255, 255, .9);
}

.ai-hero-stage {
    isolation: isolate;
}

.ai-stage-halo {
    position: absolute;
    inset: 10% 2% 7%;
    z-index: 0;
    border-radius: 44px;
    background: radial-gradient(circle at 28% 42%, rgba(249, 109, 41, .13), transparent 36%), radial-gradient(circle at 72% 68%, rgba(139, 92, 246, .09), transparent 34%);
    filter: blur(12px);
}

.ai-frame {
    position: absolute;
    inset: 8% 2% 7%;
    z-index: 55;
    pointer-events: none;
    border-radius: 40px;
}

.ai-frame__corner {
    position: absolute;
    width: 54px;
    height: 54px;
    border-color: rgba(249, 109, 41, .58);
}

.ai-frame__corner--tl {
    left: 0;
    top: 0;
    border-left: 3px solid rgba(249, 109, 41, .58);
    border-top: 3px solid rgba(249, 109, 41, .58);
    border-top-left-radius: 32px;
}

.ai-frame__corner--tr {
    right: 0;
    top: 0;
    border-right: 3px solid rgba(249, 109, 41, .58);
    border-top: 3px solid rgba(249, 109, 41, .58);
    border-top-right-radius: 32px;
}

.ai-frame__corner--bl {
    bottom: 0;
    left: 0;
    border-bottom: 3px solid rgba(249, 109, 41, .58);
    border-left: 3px solid rgba(249, 109, 41, .58);
    border-bottom-left-radius: 32px;
}

.ai-frame__corner--br {
    right: 0;
    bottom: 0;
    border-right: 3px solid rgba(249, 109, 41, .58);
    border-bottom: 3px solid rgba(249, 109, 41, .58);
    border-bottom-right-radius: 32px;
}

.ai-scan-sweep {
    position: absolute;
    left: 4.5%;
    top: 10%;
    z-index: 50;
    width: 10%;
    height: 78%;
    pointer-events: none;
    animation: ai-scan-sweep 6.2s cubic-bezier(.4, 0, .2, 1) infinite;
}

.ai-scan-sweep__glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(249, 109, 41, .05) 18%, rgba(249, 109, 41, .18) 49%, rgba(249, 109, 41, .05) 82%, transparent);
    filter: blur(7px);
}

.ai-scan-sweep__line {
    position: absolute;
    left: 50%;
    top: 3%;
    bottom: 3%;
    width: 2px;
    border-radius: 999px;
    background: linear-gradient(180deg, transparent, rgba(249, 109, 41, .78) 12%, #fff 48%, rgba(249, 109, 41, .9) 72%, transparent);
    box-shadow: 0 0 14px rgba(249, 109, 41, .6), 0 0 34px rgba(249, 109, 41, .28);
}

    .ai-scan-sweep__line::before,
    .ai-scan-sweep__line::after {
        content: "";
        position: absolute;
        left: 50%;
        width: 7px;
        height: 7px;
        transform: translateX(-50%);
        border-radius: 999px;
        background: #fff;
        box-shadow: 0 0 16px rgba(249, 109, 41, .95);
    }

    .ai-scan-sweep__line::before {
        top: 24%;
    }

    .ai-scan-sweep__line::after {
        bottom: 22%;
    }

@keyframes ai-scan-sweep {
    0% {
        transform: translateX(0);
        opacity: 0;
    }

    7% {
        opacity: 1;
    }

    50% {
        opacity: .95;
    }

    93% {
        opacity: 1;
    }

    100% {
        transform: translateX(850%);
        opacity: 0;
    }
}

.ai-weighbridge {
    position: absolute;
    left: 11%;
    right: 5%;
    bottom: 5.2%;
    z-index: 8;
    height: 13.8%;
    pointer-events: none;
    filter: drop-shadow(0 18px 18px rgba(15, 23, 42, .16));
}

.ai-weighbridge__deck {
    position: absolute;
    inset: 0 0 23%;
    clip-path: polygon(3% 0, 97% 0, 100% 100%, 0 100%);
    border: 1px solid rgba(71, 85, 105, .28);
    border-radius: 9px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(203, 213, 225, .92)), repeating-linear-gradient(90deg, transparent 0 54px, rgba(100, 116, 139, .17) 55px 56px);
}

.ai-weighbridge__rail {
    position: absolute;
    top: 4%;
    bottom: 28%;
    width: 2px;
    border-radius: 999px;
    background: rgba(100, 116, 139, .36);
}

.ai-weighbridge__rail--front {
    left: 34%;
}

.ai-weighbridge__rail--rear {
    left: 90%;
}

.ai-weighbridge__edge {
    position: absolute;
    left: 1.5%;
    right: 1.5%;
    bottom: 18%;
    height: 9px;
    border-radius: 0 0 10px 10px;
    background: linear-gradient(180deg, #94a3b8, #64748b);
}

.ai-weighbridge__cable {
    position: absolute;
    left: 34%;
    right: 8%;
    bottom: 4%;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(139, 92, 246, .18), rgba(139, 92, 246, .72), rgba(139, 92, 246, .18));
    box-shadow: 0 0 8px rgba(139, 92, 246, .2);
}

.ai-weighbridge__load-cell {
    position: absolute;
    bottom: 0;
    z-index: 4;
    width: 34px;
    height: 15px;
    transform: translateX(-50%);
    border: 1px solid rgba(109, 40, 217, .4);
    border-radius: 5px;
    background: linear-gradient(180deg, #f8fafc, #cbd5e1);
    box-shadow: 0 3px 7px rgba(15, 23, 42, .2), 0 0 12px rgba(139, 92, 246, .16);
}

    .ai-weighbridge__load-cell span {
        position: absolute;
        left: 50%;
        top: 50%;
        width: 8px;
        height: 8px;
        transform: translate(-50%, -50%);
        border: 2px solid #8b5cf6;
        border-radius: 999px;
        background: #fff;
        box-shadow: 0 0 8px rgba(139, 92, 246, .58);
    }

    .ai-weighbridge__load-cell::before,
    .ai-weighbridge__load-cell::after {
        content: "";
        position: absolute;
        top: 3px;
        width: 4px;
        height: 7px;
        border-radius: 2px;
        background: #64748b;
    }

    .ai-weighbridge__load-cell::before {
        left: -3px;
    }

    .ai-weighbridge__load-cell::after {
        right: -3px;
    }

.ai-weighbridge__load-cell--1 {
    left: 34%;
}

.ai-weighbridge__load-cell--2 {
    left: 62%;
}

.ai-weighbridge__load-cell--3 {
    left: 76%;
}

.ai-weighbridge__load-cell--4 {
    left: 90%;
}

.ai-driver-figure {
    position: absolute;
    left: 21.9%;
    top: 24.6%;
    z-index: 42;
    width: 3.6%;
    min-width: 26px;
    aspect-ratio: 64 / 84;
    opacity: .92;
    filter: drop-shadow(0 2px 4px rgba(15, 23, 42, .36));
    pointer-events: none;
    animation: ai-driver-presence 3.4s ease-in-out infinite;
}

@keyframes ai-driver-presence {
    0%, 100% {
        opacity: .72;
    }

    50% {
        opacity: .98;
    }
}

.ai-license-plate {
    position: absolute;
    left: 14.8%;
    top: 68.7%;
    z-index: 46;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 5.6%;
    min-width: 46px;
    height: 2.8%;
    min-height: 16px;
    border: 1px solid rgba(15, 23, 42, .48);
    border-radius: 2px;
    background: #f8fafc;
    color: #0f172a;
    font-size: clamp(6px, .57vw, 9px);
    font-weight: 900;
    letter-spacing: .07em;
    line-height: 1;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .22);
    pointer-events: none;
}

.ai-target {
    position: absolute;
    z-index: 60;
    pointer-events: none;
    border-radius: 14px;
    opacity: .9;
}

    .ai-target::before,
    .ai-target::after,
    .ai-target > span::before,
    .ai-target > span::after {
        content: "";
        position: absolute;
        width: 14px;
        height: 14px;
        border-color: currentColor;
    }

    .ai-target::before {
        left: 0;
        top: 0;
        border-left: 2px solid;
        border-top: 2px solid;
        border-top-left-radius: 7px;
    }

    .ai-target::after {
        right: 0;
        top: 0;
        border-right: 2px solid;
        border-top: 2px solid;
        border-top-right-radius: 7px;
    }

    .ai-target > span::before {
        left: 0;
        bottom: 0;
        border-left: 2px solid;
        border-bottom: 2px solid;
        border-bottom-left-radius: 7px;
    }

    .ai-target > span::after {
        right: 0;
        bottom: 0;
        border-right: 2px solid;
        border-bottom: 2px solid;
        border-bottom-right-radius: 7px;
    }

.ai-target--driver {
    left: 8.7%;
    top: 19.4%;
    width: 25.2%;
    height: 21.4%;
    color: rgba(16, 185, 129, .9);
    animation: ai-target-pulse 3.2s ease-in-out infinite;
}

.ai-target--plate {
    left: 12.8%;
    top: 65.4%;
    width: 10%;
    height: 9%;
    color: rgba(249, 115, 22, .95);
    animation: ai-target-pulse 3.2s ease-in-out .7s infinite;
}

.ai-target--material {
    right: 8.8%;
    top: 11.5%;
    width: 37%;
    height: 20.5%;
    color: rgba(59, 130, 246, .9);
    animation: ai-target-pulse 3.2s ease-in-out 1.4s infinite;
}

.ai-target--scale {
    left: 35%;
    right: 7%;
    bottom: 4.7%;
    height: 16%;
    color: rgba(139, 92, 246, .9);
    animation: ai-target-pulse 3.2s ease-in-out 2.1s infinite;
}

@keyframes ai-target-pulse {
    0%, 100% {
        opacity: .45;
        filter: drop-shadow(0 0 0 currentColor);
    }

    50% {
        opacity: 1;
        filter: drop-shadow(0 0 6px currentColor);
    }
}

.ai-callout {
    position: absolute;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #fff;
    padding: 9px 12px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, .15), 0 2px 4px rgba(15, 23, 42, .07);
}

.ai-callout--driver {
    left: 6.9%;
    top: 16.7%;
}

.ai-callout--plate {
    left: 6.2%;
    bottom: 17.5%;
}

.ai-callout--material {
    right: 5.2%;
    top: 15.8%;
}

.ai-callout--weight {
    right: 14.5%;
    bottom: 5.2%;
    padding: 12px 14px;
}

.ai-callout__eyebrow {
    color: #94a3b8;
    font-size: 9px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: .16em;
}

.ai-callout__title {
    margin-top: 4px;
    color: #0f172a;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.15;
    white-space: nowrap;
}

.ai-callout__status {
    position: relative;
    width: 9px;
    height: 9px;
    flex: 0 0 auto;
    border-radius: 999px;
}

    .ai-callout__status::after {
        content: "";
        position: absolute;
        inset: -5px;
        border: 1px solid currentColor;
        border-radius: inherit;
        opacity: .36;
        animation: ai-status-ping 1.9s ease-out infinite;
    }

.ai-callout__status--emerald {
    background: #34d399;
    color: #34d399;
}

.ai-callout__status--orange {
    background: #fb923c;
    color: #fb923c;
}

.ai-callout__status--blue {
    background: #60a5fa;
    color: #60a5fa;
}

.ai-callout__status--violet {
    background: #a78bfa;
    color: #a78bfa;
}

@keyframes ai-status-ping {
    0% {
        transform: scale(.75);
        opacity: .5;
    }

    80%, 100% {
        transform: scale(1.65);
        opacity: 0;
    }
}

.ai-callout__check {
    display: inline-flex;
    width: 20px;
    height: 20px;
    align-items: center;
    justify-content: center;
    margin-left: 2px;
    border-radius: 999px;
    background: #f8fafc;
    color: #64748b;
    font-size: 11px;
    font-weight: 900;
}

.ai-callout__plate-value {
    margin-left: 2px;
    border-radius: 7px;
    background: #fff7ed;
    padding: 4px 6px;
    color: #c2410c;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .08em;
}

.ai-load-cell-status {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 6px;
    color: #64748b;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.ai-load-cell-status__nodes {
    display: inline-flex;
    gap: 3px;
}

    .ai-load-cell-status__nodes i {
        display: block;
        width: 5px;
        height: 5px;
        border-radius: 999px;
        background: #8b5cf6;
        box-shadow: 0 0 5px rgba(139, 92, 246, .45);
        animation: ai-load-cell-node 1.8s ease-in-out infinite;
    }

        .ai-load-cell-status__nodes i:nth-child(2) {
            animation-delay: .2s;
        }

        .ai-load-cell-status__nodes i:nth-child(3) {
            animation-delay: .4s;
        }

        .ai-load-cell-status__nodes i:nth-child(4) {
            animation-delay: .6s;
        }

@keyframes ai-load-cell-node {
    0%, 100% {
        opacity: .45;
        transform: scale(.85);
    }

    50% {
        opacity: 1;
        transform: scale(1.15);
    }
}

.ai-weight-progress {
    animation: ai-weight-progress 2.3s ease-in-out infinite;
    transform-origin: left center;
}

@keyframes ai-weight-progress {
    0%, 100% {
        transform: scaleX(.25);
        opacity: .55;
    }

    50% {
        transform: scaleX(1.8);
        opacity: 1;
    }
}

@media (max-width: 1180px) {
    .ai-callout--driver {
        left: 5.4%;
        top: 14.5%;
    }

    .ai-callout--material {
        right: 3.4%;
        top: 13.4%;
    }

    .ai-callout--weight {
        right: 10.5%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ai-scan-sweep,
    .ai-driver-figure,
    .ai-target,
    .ai-callout__status::after,
    .ai-load-cell-status__nodes i,
    .ai-weight-progress {
        animation: none !important;
    }
}
