:root {
    --cm-blue-950: #020817;
    --cm-blue-900: #061747;
    --cm-blue-850: #08215f;
    --cm-blue-800: #0a2f7d;
    --cm-blue-700: #1249b5;
    --cm-blue-500: #2d7cff;
    --cm-blue-300: #7eb4ff;
    --cm-amber-600: #e08a00;
    --cm-amber-500: #f6a800;
    --cm-amber-300: #ffd36a;
    --cm-green-500: #24c58a;
    --cm-red-500: #ef5350;
    --cm-white: #ffffff;
    --cm-ink: #071326;
    --cm-panel: rgba(6, 15, 35, 0.88);
    --cm-panel-soft: rgba(12, 29, 64, 0.72);
    --cm-border: rgba(137, 177, 255, 0.22);
    --cm-muted: #aebbd4;
    --cm-text: #f7f9ff;
    --scene-sky-top: #020611;
    --scene-sky-mid: #071736;
    --scene-sky-bottom: #0a2a55;
    --scene-ambient: rgba(51, 111, 255, 0.33);
    --scene-light: rgba(194, 222, 255, 0.82);
    --scene-warm: rgba(255, 180, 65, 0.18);
    --scene-floor: #071226;
    --scene-floor-line: rgba(93, 143, 230, 0.16);
    --header-height: 88px;
    --footer-height: 42px;
    --ease-premium: cubic-bezier(.22, .8, .22, 1);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--cm-blue-950);
}

body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    overflow: hidden;
    color: var(--cm-text);
    background: var(--cm-blue-950);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

button,
input {
    font: inherit;
}

button {
    -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
input:focus-visible {
    outline: 3px solid rgba(126, 180, 255, 0.72);
    outline-offset: 3px;
}

svg {
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.9;
}

[hidden] {
    display: none !important;
}

.login-app {
    position: relative;
    isolation: isolate;
    min-height: 100vh;
    overflow: hidden;
    background:
        radial-gradient(circle at 12% 18%, var(--scene-ambient), transparent 30%),
        radial-gradient(circle at 84% 22%, var(--scene-warm), transparent 28%),
        linear-gradient(180deg, var(--scene-sky-top) 0%, var(--scene-sky-mid) 43%, var(--scene-sky-bottom) 100%);
    transition: background 1.2s ease;
}

.login-app[data-theme="morning"] {
    --scene-sky-top: #16385c;
    --scene-sky-mid: #537da1;
    --scene-sky-bottom: #d49b69;
    --scene-ambient: rgba(165, 216, 255, 0.38);
    --scene-light: rgba(255, 246, 217, 0.88);
    --scene-warm: rgba(255, 177, 83, 0.36);
    --scene-floor: #14243a;
    --scene-floor-line: rgba(200, 224, 255, 0.13);
}

.login-app[data-theme="afternoon"] {
    --scene-sky-top: #0d3a66;
    --scene-sky-mid: #316f9b;
    --scene-sky-bottom: #82a9c5;
    --scene-ambient: rgba(137, 206, 255, 0.36);
    --scene-light: rgba(236, 249, 255, 0.92);
    --scene-warm: rgba(255, 205, 113, 0.18);
    --scene-floor: #10243a;
    --scene-floor-line: rgba(185, 220, 255, 0.13);
}

.login-app[data-theme="evening"] {
    --scene-sky-top: #0a1633;
    --scene-sky-mid: #49375f;
    --scene-sky-bottom: #9b553a;
    --scene-ambient: rgba(77, 100, 220, 0.36);
    --scene-light: rgba(255, 223, 180, 0.87);
    --scene-warm: rgba(255, 145, 73, 0.34);
    --scene-floor: #11182b;
    --scene-floor-line: rgba(255, 189, 120, 0.1);
}

.login-app[data-theme="night"] {
    --scene-sky-top: #020611;
    --scene-sky-mid: #071736;
    --scene-sky-bottom: #0a2a55;
    --scene-ambient: rgba(51, 111, 255, 0.33);
    --scene-light: rgba(194, 222, 255, 0.82);
    --scene-warm: rgba(255, 180, 65, 0.18);
    --scene-floor: #071226;
    --scene-floor-line: rgba(93, 143, 230, 0.16);
}

.environment {
    position: absolute;
    inset: 0;
    z-index: -3;
    overflow: hidden;
    pointer-events: none;
}

.sky-glow {
    position: absolute;
    inset: -18% -8% auto;
    height: 78%;
    opacity: 0.7;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, 0.12), transparent 48%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent);
    transition: opacity 1s ease;
}

.warehouse-grid {
    position: absolute;
    inset: 0;
    opacity: 0.42;
    background-image:
        linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,.95), transparent 78%);
}

.warehouse-beams {
    position: absolute;
    inset: 0 0 auto;
    height: 34vh;
    opacity: 0.52;
    transform: perspective(800px) rotateX(56deg) translateY(-34%);
    transform-origin: top center;
}

.warehouse-beams::before,
.warehouse-beams::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 6px;
    background: linear-gradient(180deg, rgba(255,255,255,.25), rgba(72,98,145,.2));
    box-shadow: 0 0 20px rgba(131, 177, 255, 0.12);
}

.warehouse-beams::before {
    left: 9%;
}

.warehouse-beams::after {
    right: 9%;
}

.warehouse-beams span {
    position: absolute;
    left: 4%;
    right: 4%;
    height: 5px;
    background: linear-gradient(90deg, transparent, rgba(151,181,228,.4) 10%, rgba(151,181,228,.4) 90%, transparent);
}

.warehouse-beams span:nth-child(1) { top: 10%; }
.warehouse-beams span:nth-child(2) { top: 30%; }
.warehouse-beams span:nth-child(3) { top: 50%; }
.warehouse-beams span:nth-child(4) { top: 70%; }
.warehouse-beams span:nth-child(5) { top: 90%; }

.warehouse-lights {
    position: absolute;
    left: 10%;
    right: 10%;
    top: 8%;
    display: flex;
    justify-content: space-between;
    opacity: 0.9;
}

.warehouse-lights i {
    position: relative;
    display: block;
    width: clamp(62px, 7vw, 118px);
    height: 7px;
    border-radius: 999px;
    background: var(--scene-light);
    box-shadow:
        0 0 10px rgba(220,236,255,.88),
        0 0 42px rgba(100,160,255,.44),
        0 28px 52px rgba(172,210,255,.22);
}

.warehouse-lights i::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 5px;
    width: 220%;
    height: 48vh;
    transform: translateX(-50%);
    opacity: 0.13;
    clip-path: polygon(38% 0, 62% 0, 100% 100%, 0 100%);
    background: linear-gradient(180deg, var(--scene-light), transparent 88%);
}

.warehouse-gate {
    position: absolute;
    left: 50%;
    top: 12%;
    width: min(58vw, 910px);
    height: 54vh;
    transform: translateX(-50%);
    perspective: 900px;
}

.gate-panel {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 50.25%;
    overflow: hidden;
    border: 1px solid rgba(138, 177, 230, 0.16);
    background:
        linear-gradient(90deg, rgba(255,255,255,.03), transparent 14%, rgba(255,255,255,.02) 50%, transparent 88%),
        linear-gradient(180deg, rgba(17, 37, 71, 0.98), rgba(4, 14, 31, 0.98));
    box-shadow: inset 0 0 70px rgba(0,0,0,.34);
    transition: transform 1.75s var(--ease-premium), opacity 1.2s ease;
}

.gate-panel-left {
    left: 0;
    transform-origin: left center;
    border-radius: 7px 0 0 7px;
}

.gate-panel-right {
    right: 0;
    transform-origin: right center;
    border-radius: 0 7px 7px 0;
}

.gate-panel span {
    display: block;
    height: 25%;
    border-bottom: 1px solid rgba(128, 168, 228, 0.12);
    box-shadow: inset 0 1px rgba(255,255,255,.025);
}

.gate-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.36;
    background-image: repeating-linear-gradient(
        90deg,
        rgba(255,255,255,.05) 0,
        rgba(255,255,255,.05) 1px,
        transparent 1px,
        transparent 56px
    );
}

.gate-header {
    position: absolute;
    left: 50%;
    top: -34px;
    transform: translateX(-50%);
    width: 100%;
    color: rgba(196, 218, 255, 0.72);
    text-align: center;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.28em;
    text-transform: uppercase;
}

.yard-lights {
    position: absolute;
    top: 18%;
    width: 9vw;
    min-width: 90px;
    height: 52vh;
    opacity: 0.2;
    background: linear-gradient(180deg, rgba(168,207,255,.32), transparent);
    filter: blur(10px);
    clip-path: polygon(28% 0, 72% 0, 100% 100%, 0 100%);
}

.yard-light-left { left: 3%; }
.yard-light-right { right: 3%; }

.floor-reflection {
    position: absolute;
    left: -12%;
    right: -12%;
    bottom: -8%;
    height: 56%;
    background:
        radial-gradient(ellipse at 50% 5%, rgba(71,128,226,.18), transparent 42%),
        linear-gradient(180deg, var(--scene-floor), #020610 88%);
    transform: perspective(600px) rotateX(58deg);
    transform-origin: bottom center;
}

.floor-reflection::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.76;
    background-image:
        linear-gradient(var(--scene-floor-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--scene-floor-line) 1px, transparent 1px);
    background-size: 76px 76px;
}

.lane-markings {
    position: absolute;
    left: 50%;
    bottom: -9%;
    width: min(46vw, 760px);
    height: 44%;
    transform: translateX(-50%) perspective(430px) rotateX(57deg);
    transform-origin: bottom center;
    border-left: 3px dashed rgba(255, 183, 54, 0.4);
    border-right: 3px dashed rgba(255, 183, 54, 0.4);
}

.ambient-fog {
    position: absolute;
    bottom: 4%;
    width: 70vw;
    height: 20vh;
    opacity: 0.17;
    filter: blur(30px);
    background: radial-gradient(ellipse, rgba(202,222,255,.58), transparent 68%);
    animation: fogDrift 18s ease-in-out infinite alternate;
}

.fog-one { left: -24%; }
.fog-two { right: -28%; animation-delay: -8s; }

@keyframes fogDrift {
    from { transform: translate3d(-2%, 0, 0) scale(0.94); }
    to { transform: translate3d(7%, -2%, 0) scale(1.08); }
}

.operations-header {
    position: relative;
    z-index: 30;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    min-height: var(--header-height);
    padding: 14px clamp(18px, 3vw, 48px);
    border-bottom: 1px solid rgba(136, 175, 242, 0.12);
    background: linear-gradient(180deg, rgba(2, 9, 25, 0.82), rgba(4, 15, 36, 0.42));
    backdrop-filter: blur(16px);
}

.brand-lockup {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    gap: 12px;
}

.brand-emblem {
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    flex: 0 0 auto;
    border: 1px solid rgba(255, 184, 52, 0.3);
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(255,255,255,.97), rgba(224,235,255,.9));
    box-shadow: 0 12px 28px rgba(0,0,0,.22), 0 0 24px rgba(246,168,0,.08);
}

.brand-emblem img {
    width: 41px;
    height: 41px;
    object-fit: contain;
}

.brand-copy {
    display: grid;
    min-width: 0;
    gap: 3px;
}

.brand-copy strong {
    overflow: hidden;
    color: var(--cm-white);
    font-size: clamp(15px, 1.3vw, 20px);
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.brand-copy small {
    color: var(--cm-amber-300);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.header-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
}

.status-chip {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    gap: 8px;
    padding: 0 12px;
    border: 1px solid rgba(130, 173, 243, 0.16);
    border-radius: 999px;
    color: #c9d6eb;
    background: rgba(5, 17, 42, 0.58);
    box-shadow: inset 0 1px rgba(255,255,255,.025);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--cm-green-500);
    box-shadow: 0 0 0 5px rgba(36,197,138,.08), 0 0 14px rgba(36,197,138,.66);
}

.time-chip b {
    color: var(--cm-amber-300);
    font-size: 11px;
}

.header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
}

.icon-control,
.skip-control {
    min-height: 36px;
    color: #dbe5f7;
    border: 1px solid rgba(132, 173, 239, 0.18);
    border-radius: 11px;
    background: rgba(7, 21, 49, 0.62);
    cursor: pointer;
    transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease;
}

.icon-control:hover,
.skip-control:hover {
    color: #fff;
    border-color: rgba(246,168,0,.42);
    background: rgba(14, 38, 82, 0.78);
    transform: translateY(-1px);
}

.icon-control {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0 11px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.icon-control svg {
    width: 17px;
    height: 17px;
}

.icon-control .sound-on-icon {
    display: none;
}

.icon-control[aria-pressed="true"] .sound-off-icon {
    display: none;
}

.icon-control[aria-pressed="true"] .sound-on-icon {
    display: block;
}

.skip-control {
    padding: 0 13px;
    font-size: 11px;
    font-weight: 700;
}

.operations-stage {
    position: relative;
    z-index: 10;
    min-height: calc(100vh - var(--header-height) - var(--footer-height));
}

.arrival-copy {
    position: absolute;
    z-index: 8;
    left: clamp(24px, 6vw, 104px);
    top: 50%;
    width: min(39vw, 570px);
    transform: translateY(-52%);
    transition: opacity .55s ease, transform .8s var(--ease-premium), filter .6s ease;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    color: var(--cm-amber-300);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .22em;
    text-transform: uppercase;
}

.eyebrow i {
    width: 26px;
    height: 2px;
    background: var(--cm-amber-500);
    box-shadow: 0 0 12px rgba(246,168,0,.5);
}

.arrival-copy h1 {
    max-width: 570px;
    margin: 0;
    color: #fff;
    text-wrap: balance;
    font-size: clamp(36px, 4.2vw, 70px);
    font-weight: 850;
    line-height: .99;
    letter-spacing: -0.045em;
    text-shadow: 0 12px 34px rgba(0,0,0,.34);
}

.arrival-copy > p {
    max-width: 530px;
    margin: 22px 0 0;
    color: #c5d1e6;
    font-size: clamp(14px, 1.25vw, 18px);
    line-height: 1.68;
}

.arrival-actions {
    display: flex;
    margin-top: 30px;
}

.unlock-button {
    position: relative;
    display: inline-grid;
    grid-template-columns: 46px 1fr 22px;
    align-items: center;
    min-width: min(100%, 330px);
    gap: 13px;
    padding: 11px 14px 11px 11px;
    overflow: hidden;
    color: #fff;
    border: 1px solid rgba(255, 199, 86, 0.48);
    border-radius: 17px;
    background:
        linear-gradient(135deg, rgba(10, 47, 125, .96), rgba(5, 21, 62, .96));
    box-shadow:
        0 20px 50px rgba(0,0,0,.28),
        inset 0 1px rgba(255,255,255,.12),
        0 0 0 1px rgba(246,168,0,.06);
    cursor: pointer;
    text-align: left;
    transition: transform .2s ease, box-shadow .25s ease, border-color .25s ease;
}

.unlock-button::before {
    content: "";
    position: absolute;
    inset: -80% auto -80% -30%;
    width: 32%;
    transform: rotate(18deg);
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.22), transparent);
    transition: left .75s ease;
}

.unlock-button:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 211, 106, 0.86);
    box-shadow: 0 25px 56px rgba(0,0,0,.35), 0 0 30px rgba(246,168,0,.11);
}

.unlock-button:hover::before {
    left: 112%;
}

.unlock-button > span:nth-child(2) {
    display: grid;
    gap: 3px;
}

.unlock-button b {
    font-size: 14px;
    letter-spacing: .02em;
}

.unlock-button small {
    color: #aebdd6;
    font-size: 10px;
    font-weight: 600;
}

.unlock-icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    color: #071d55;
    border-radius: 14px;
    background: linear-gradient(145deg, #ffd97d, #f6a800);
    box-shadow: 0 10px 22px rgba(246,168,0,.24);
}

.unlock-icon svg {
    width: 23px;
    height: 23px;
    stroke-width: 2;
}

.arrow-icon {
    width: 19px;
    height: 19px;
    color: var(--cm-amber-300);
}

.facility-status {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin-top: 26px;
}

.facility-status span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #8fa0bd;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .04em;
}

.facility-status i {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--cm-green-500);
    box-shadow: 0 0 8px rgba(36,197,138,.6);
}

.truck-bay {
    position: absolute;
    z-index: 7;
    right: clamp(4vw, 7vw, 120px);
    top: 50%;
    width: min(53vw, 880px);
    height: min(57vh, 570px);
    transform: translateY(-44%);
    transition: transform 1.1s var(--ease-premium), filter .7s ease, opacity .6s ease;
}

.truck-interaction {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    color: inherit;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.truck-shadow {
    position: absolute;
    left: 15%;
    right: 3%;
    bottom: 12%;
    height: 10%;
    border-radius: 50%;
    opacity: 0.58;
    filter: blur(18px);
    background: #000;
    transition: transform .8s var(--ease-premium), opacity .6s ease;
}

.truck-vehicle {
    position: absolute;
    left: 3%;
    right: 0;
    bottom: 16%;
    height: 64%;
    filter: drop-shadow(0 32px 28px rgba(0,0,0,.45));
    transform-origin: 58% 82%;
    transition: transform .8s var(--ease-premium), filter .5s ease;
    animation: truckIdle 4.8s ease-in-out infinite;
}

@keyframes truckIdle {
    0%, 100% { transform: translateY(0) rotate(.02deg); }
    50% { transform: translateY(-2px) rotate(-.06deg); }
}

.truck-box {
    position: absolute;
    left: 2%;
    top: 4%;
    width: 64%;
    height: 70%;
    overflow: hidden;
    border: 1px solid rgba(161, 199, 255, 0.38);
    border-radius: 9px 4px 6px 8px;
    background:
        linear-gradient(145deg, rgba(255,255,255,.16), transparent 22%),
        linear-gradient(100deg, #0b347f 0%, #0a2e76 48%, #071d58 100%);
    box-shadow:
        inset 0 1px rgba(255,255,255,.18),
        inset -30px 0 50px rgba(0,0,0,.16),
        0 16px 38px rgba(0,0,0,.18);
}

.truck-box::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .25;
    background-image: repeating-linear-gradient(
        90deg,
        rgba(255,255,255,.12) 0,
        rgba(255,255,255,.12) 1px,
        transparent 1px,
        transparent 9%
    );
}

.truck-box-lines {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 14%;
    background:
        linear-gradient(180deg, rgba(3, 14, 46, .16), rgba(3, 14, 46, .72)),
        repeating-linear-gradient(90deg, transparent 0 9%, rgba(255,255,255,.08) 9% 9.4%);
}

.truck-brand-mark {
    position: absolute;
    z-index: 2;
    left: 10%;
    top: 18%;
    display: grid;
    grid-template-columns: clamp(42px, 7vw, 92px) 1fr;
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: clamp(8px, 1.2vw, 17px);
    width: 78%;
    color: #fff;
}

.truck-brand-mark img {
    grid-row: 1 / 3;
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
    filter: drop-shadow(0 7px 10px rgba(0,0,0,.26));
}

.truck-brand-mark b {
    align-self: end;
    font-size: clamp(14px, 2.2vw, 34px);
    font-weight: 900;
    letter-spacing: .07em;
    line-height: .9;
    text-shadow: 0 8px 18px rgba(0,0,0,.28);
}

.truck-brand-mark small {
    align-self: start;
    margin-top: 6px;
    color: var(--cm-amber-300);
    font-size: clamp(5px, .75vw, 10px);
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.rear-light {
    position: absolute;
    left: -2px;
    bottom: 7%;
    width: 7px;
    height: 17%;
    border-radius: 2px;
    background: #651319;
    box-shadow: none;
    transition: background .25s ease, box-shadow .25s ease;
}

.truck-cab {
    position: absolute;
    right: 1.5%;
    top: 17%;
    width: 39%;
    height: 62%;
    overflow: visible;
    border: 1px solid rgba(153, 194, 255, 0.46);
    border-radius: 30% 18% 8% 8% / 24% 18% 10% 10%;
    background:
        linear-gradient(150deg, rgba(255,255,255,.17), transparent 24%),
        linear-gradient(108deg, #0d439f 0%, #0a327d 54%, #071f5c 100%);
    box-shadow:
        inset 0 1px rgba(255,255,255,.22),
        inset -24px -10px 34px rgba(0,0,0,.22),
        0 10px 22px rgba(0,0,0,.16);
}

.cab-roof {
    position: absolute;
    left: 7%;
    right: 8%;
    top: -6%;
    height: 12%;
    border-radius: 85% 45% 12% 12% / 100% 100% 22% 22%;
    background: linear-gradient(180deg, #124da8, #0b367f);
    box-shadow: inset 0 1px rgba(255,255,255,.18);
}

.cab-window {
    position: absolute;
    left: 14%;
    top: 12%;
    width: 49%;
    height: 36%;
    overflow: hidden;
    border: 1px solid rgba(155, 203, 255, 0.48);
    border-radius: 24% 10% 7% 7%;
    background:
        linear-gradient(135deg, rgba(183,225,255,.3), transparent 34%),
        linear-gradient(180deg, #07172c, #0d2846);
    box-shadow: inset 0 0 17px rgba(37,99,181,.2);
}

.cab-window::after {
    content: "";
    position: absolute;
    inset: -22% 47% -22% 42%;
    transform: rotate(25deg);
    background: rgba(255,255,255,.18);
}

.cab-windshield {
    position: absolute;
    right: 7%;
    top: 14%;
    z-index: 3;
    width: 22%;
    height: 35%;
    clip-path: polygon(0 0, 86% 10%, 100% 100%, 16% 100%);
    border: 1px solid rgba(155, 203, 255, 0.4);
    border-radius: 4px 10px 7px 3px;
    background:
        linear-gradient(145deg, rgba(189,226,255,.26), transparent 34%),
        linear-gradient(180deg, #081a31, #102b49);
    box-shadow: inset 0 0 14px rgba(37,99,181,.22);
}

.cab-front-pillar {
    position: absolute;
    right: 27%;
    top: 10%;
    z-index: 4;
    width: 3.3%;
    height: 43%;
    transform: rotate(-4deg);
    border-radius: 999px;
    background: linear-gradient(180deg, #1750a9, #092d72);
}

.cab-window-glow {
    position: absolute;
    left: 11%;
    top: 7%;
    width: 75%;
    height: 48%;
    opacity: 0;
    border-radius: 28% 15% 8% 8%;
    background: rgba(255, 186, 61, 0.46);
    filter: blur(10px);
    transition: opacity .5s ease;
}

.truck-door {
    position: absolute;
    left: 13%;
    top: 49%;
    z-index: 4;
    width: 51%;
    height: 43%;
    border: 1px solid rgba(173, 206, 255, 0.2);
    border-radius: 4px 4px 10px 6px;
    background: linear-gradient(145deg, rgba(255,255,255,.03), rgba(0,0,0,.04));
    transform-origin: left center;
    transition: transform .8s var(--ease-premium), filter .4s ease;
}

.cab-nose {
    position: absolute;
    right: -4%;
    top: 45%;
    z-index: 1;
    width: 30%;
    height: 37%;
    border: 1px solid rgba(150, 190, 248, .28);
    border-radius: 4px 12px 12px 5px;
    background:
        linear-gradient(160deg, rgba(255,255,255,.1), transparent 35%),
        linear-gradient(110deg, #0b3786, #071f5b);
    box-shadow: inset -10px -8px 18px rgba(0,0,0,.2);
}

.front-fender {
    position: absolute;
    right: 0;
    bottom: -4%;
    z-index: 2;
    width: 46%;
    height: 38%;
    border: 1px solid rgba(154, 196, 255, .24);
    border-radius: 54% 54% 9px 9px / 70% 70% 10px 10px;
    background: linear-gradient(150deg, #0d4096, #082660 75%);
    box-shadow: inset 0 1px rgba(255,255,255,.12);
}

.cab-step {
    position: absolute;
    left: 17%;
    bottom: 1%;
    z-index: 6;
    width: 34%;
    height: 7%;
    border-radius: 3px;
    background: linear-gradient(180deg, #90a8c8, #3d526e);
    box-shadow: 0 3px 5px rgba(0,0,0,.3);
}

.door-handle {
    position: absolute;
    left: 52%;
    top: 58%;
    z-index: 4;
    width: 17%;
    height: 6%;
    min-height: 4px;
    border-radius: 999px;
    background: #d7e6ff;
    box-shadow: 0 0 0 4px rgba(246,168,0,0), 0 2px 5px rgba(0,0,0,.3);
    transition: box-shadow .2s ease, background .2s ease;
    animation: handlePulse 2.6s ease-in-out infinite;
}

@keyframes handlePulse {
    0%, 65%, 100% { box-shadow: 0 0 0 0 rgba(246,168,0,0), 0 2px 5px rgba(0,0,0,.3); }
    78% { box-shadow: 0 0 0 7px rgba(246,168,0,.16), 0 0 16px rgba(246,168,0,.55); }
}

.front-grille {
    position: absolute;
    right: -3%;
    top: 52%;
    z-index: 5;
    width: 25%;
    height: 25%;
    border-radius: 4px 6px 9px 4px;
    opacity: .9;
    background: repeating-linear-gradient(
        180deg,
        #c2d5ef 0 2px,
        #334f75 2px 5px
    );
    box-shadow: inset 0 0 7px rgba(0,0,0,.48);
}

.headlight {
    position: absolute;
    right: -2%;
    top: 43%;
    z-index: 7;
    width: 11%;
    height: 9%;
    border-radius: 2px 5px 5px 2px;
    background: #6d7890;
    transition: background .3s ease, box-shadow .3s ease;
}

.headlight::after {
    content: "";
    position: absolute;
    right: -230%;
    top: -420%;
    width: 300%;
    height: 900%;
    opacity: 0;
    clip-path: polygon(0 43%, 0 57%, 100% 100%, 100% 0);
    background: linear-gradient(90deg, rgba(205,229,255,.55), transparent);
    filter: blur(5px);
    transition: opacity .4s ease;
}

.indicator {
    position: absolute;
    z-index: 5;
    border-radius: 3px;
    background: #764f0b;
}

.indicator-front {
    right: 7%;
    top: 39%;
    width: 8%;
    height: 4.5%;
}

.mirror {
    position: absolute;
    right: 18%;
    top: 24%;
    z-index: 8;
    width: 12%;
    height: 9%;
    border: 2px solid #95aacb;
    border-radius: 45%;
    transform: translateX(54%);
}

.mirror::before {
    content: "";
    position: absolute;
    left: -50%;
    top: 50%;
    width: 55%;
    height: 2px;
    background: #7287a8;
}

.bumper {
    position: absolute;
    right: -7%;
    bottom: 2%;
    z-index: 7;
    width: 32%;
    height: 8%;
    border-radius: 3px 9px 5px 3px;
    background: linear-gradient(180deg, #b4c7e3, #59718f);
}

.truck-chassis {
    position: absolute;
    left: 3%;
    right: 0;
    bottom: 13%;
    height: 7%;
    border-radius: 2px;
    background: linear-gradient(180deg, #27364d, #0a111d);
    box-shadow: 0 4px 7px rgba(0,0,0,.55);
}

.wheel {
    position: absolute;
    bottom: 1%;
    z-index: 8;
    display: grid;
    place-items: center;
    width: 17%;
    aspect-ratio: 1;
    border: clamp(6px, .75vw, 12px) solid #05080d;
    border-radius: 50%;
    background: radial-gradient(circle, #5d718c 0 20%, #1b293b 21% 43%, #080c12 44% 100%);
    box-shadow: inset 0 0 0 2px #26354a, 0 7px 12px rgba(0,0,0,.45);
}

.wheel::before,
.wheel::after,
.wheel i::before,
.wheel i::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 56%;
    height: 3px;
    border-radius: 999px;
    background: #7488a4;
    transform: translate(-50%, -50%);
}

.wheel::after { transform: translate(-50%, -50%) rotate(90deg); }
.wheel i::before { transform: translate(-50%, -50%) rotate(45deg); }
.wheel i::after { transform: translate(-50%, -50%) rotate(-45deg); }

.wheel-rear { left: 18%; }
.wheel-front { right: 10%; }

.click-hint {
    position: absolute;
    right: 2%;
    bottom: 2%;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 11px;
    color: #d9e5f8;
    border: 1px solid rgba(152,190,244,.17);
    border-radius: 999px;
    background: rgba(4,15,36,.62);
    backdrop-filter: blur(10px);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    transition: opacity .35s ease, transform .35s ease;
}

.click-hint i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--cm-amber-500);
    box-shadow: 0 0 0 5px rgba(246,168,0,.1), 0 0 12px rgba(246,168,0,.55);
}

.bay-sign {
    position: absolute;
    display: grid;
    gap: 3px;
    padding: 8px 10px;
    border: 1px solid rgba(142,179,231,.14);
    border-radius: 8px;
    color: #8ea0bd;
    background: rgba(4,13,31,.52);
    backdrop-filter: blur(8px);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.bay-sign b {
    color: var(--cm-green-500);
    font-size: 10px;
}

.bay-sign-left { left: 0; top: 24%; }
.bay-sign-right { right: 2%; top: 18%; }

.cockpit-shell {
    position: absolute;
    z-index: 20;
    inset: 0;
    display: grid;
    place-items: center;
    padding: clamp(18px, 3vw, 42px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: scale(1.08) translateY(14px);
    transition: opacity .72s ease, transform .9s var(--ease-premium), visibility 0s linear .9s;
}

.cockpit-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 40%, rgba(28,86,180,.22), transparent 38%),
        rgba(1, 6, 17, .66);
    backdrop-filter: blur(6px);
}

.dashboard-frame {
    position: relative;
    width: min(1040px, 94vw);
    min-height: min(650px, calc(100vh - var(--header-height) - var(--footer-height) - 42px));
    overflow: hidden;
    border: 1px solid rgba(127, 174, 255, 0.3);
    border-radius: 34px 34px 46px 46px;
    background:
        radial-gradient(circle at 50% 0%, rgba(37,89,173,.3), transparent 34%),
        linear-gradient(180deg, rgba(8, 21, 48, 0.97), rgba(2, 8, 20, 0.98));
    box-shadow:
        0 44px 110px rgba(0,0,0,.56),
        inset 0 1px rgba(255,255,255,.07),
        inset 0 -24px 70px rgba(0,0,0,.45),
        0 0 0 8px rgba(2,8,24,.32);
}

.dashboard-frame::before,
.dashboard-frame::after {
    content: "";
    position: absolute;
    top: 20%;
    width: 110px;
    height: 58%;
    border: 1px solid rgba(114,157,222,.11);
    background: linear-gradient(180deg, rgba(20,52,104,.18), rgba(2,8,19,.32));
}

.dashboard-frame::before {
    left: -76px;
    border-radius: 0 26px 26px 0;
}

.dashboard-frame::after {
    right: -76px;
    border-radius: 26px 0 0 26px;
}

.dashboard-topline,
.dashboard-footerline {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 44px;
    padding: 0 24px;
    color: #8092b1;
    border-color: rgba(118,160,224,.13);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.dashboard-topline {
    border-bottom: 1px solid rgba(118,160,224,.13);
    background: rgba(3,11,28,.6);
}

.dashboard-footerline {
    border-top: 1px solid rgba(118,160,224,.13);
    background: rgba(2,8,21,.76);
}

.dashboard-topline span,
.dashboard-footerline span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.dashboard-topline i,
.dashboard-footerline i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--cm-green-500);
    box-shadow: 0 0 9px rgba(36,197,138,.7);
}

.dashboard-layout {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 220px minmax(360px, 1fr) 220px;
    gap: 18px;
    align-items: stretch;
    min-height: 555px;
    padding: 24px;
}

.gauge-panel {
    display: grid;
    grid-template-rows: auto 1fr auto;
    align-items: center;
    min-width: 0;
    padding: 18px 13px;
    border: 1px solid rgba(118,160,224,.12);
    border-radius: 26px;
    background:
        linear-gradient(180deg, rgba(14,36,77,.36), rgba(3,10,24,.52));
    box-shadow: inset 0 1px rgba(255,255,255,.03);
}

.gauge-label {
    color: #8294b3;
    text-align: center;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .24em;
}

.gauge {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    max-width: 190px;
    margin: auto;
    border: 1px solid rgba(120,169,245,.16);
    border-radius: 50%;
    background:
        radial-gradient(circle, #091b38 0 26%, #061127 27% 45%, #020814 46% 62%, rgba(25,70,137,.2) 63% 65%, #040b18 66% 100%);
    box-shadow:
        inset 0 0 32px rgba(0,0,0,.72),
        0 0 26px rgba(32,99,206,.08);
}

.gauge::before {
    content: "";
    position: absolute;
    inset: 10%;
    border: 2px solid transparent;
    border-top-color: var(--cm-blue-300);
    border-right-color: var(--cm-amber-500);
    border-radius: 50%;
    opacity: .6;
    transform: rotate(42deg);
    filter: drop-shadow(0 0 8px rgba(45,124,255,.4));
}

.gauge-ticks {
    position: absolute;
    inset: 7%;
    border-radius: 50%;
    opacity: .48;
    background: repeating-conic-gradient(
        from 225deg,
        rgba(193,218,255,.8) 0deg 1deg,
        transparent 1deg 8deg
    );
    mask: radial-gradient(circle, transparent 0 70%, #000 71% 78%, transparent 79%);
}

.gauge-center {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 5;
    width: 18px;
    height: 18px;
    transform: translate(-50%, -50%);
    border: 4px solid #122b58;
    border-radius: 50%;
    background: var(--cm-amber-500);
    box-shadow: 0 0 10px rgba(246,168,0,.42);
}

.gauge-needle {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 4;
    width: 40%;
    height: 3px;
    border-radius: 999px;
    transform: translateY(-50%) rotate(-128deg);
    transform-origin: left center;
    background: linear-gradient(90deg, var(--cm-amber-500), #ffefbf);
    box-shadow: 0 0 8px rgba(246,168,0,.42);
    transition: transform .6s var(--ease-premium), background .2s ease;
}

.gauge-needle::before {
    content: "";
    position: absolute;
    right: -5px;
    top: 50%;
    width: 9px;
    height: 9px;
    transform: translateY(-50%) rotate(45deg);
    background: #ffefbf;
}

.gauge-value {
    position: absolute;
    left: 50%;
    bottom: 23%;
    display: flex;
    align-items: baseline;
    gap: 2px;
    transform: translateX(-50%);
    color: #fff;
}

.gauge-value b {
    font-size: 24px;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.gauge-value span {
    color: var(--cm-amber-300);
    font-size: 10px;
    font-weight: 800;
}

.gauge-caption {
    position: absolute;
    left: 50%;
    bottom: 14%;
    transform: translateX(-50%);
    color: #7d8eaa;
    font-size: 7px;
    font-weight: 900;
    letter-spacing: .15em;
    white-space: nowrap;
}

.mini-readout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 34px;
    padding: 0 10px;
    border: 1px solid rgba(118,160,224,.12);
    border-radius: 9px;
    color: #7f91ae;
    background: rgba(1,7,18,.56);
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .1em;
}

.mini-readout b {
    color: var(--cm-green-500);
}

.auth-console {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: clamp(25px, 3vw, 40px);
    border: 1px solid rgba(117,166,244,.24);
    border-radius: 28px;
    background:
        radial-gradient(circle at 50% 0%, rgba(46,102,196,.18), transparent 36%),
        linear-gradient(180deg, rgba(9,26,59,.94), rgba(4,13,31,.96));
    box-shadow:
        0 24px 50px rgba(0,0,0,.24),
        inset 0 1px rgba(255,255,255,.045),
        0 0 35px rgba(30,95,207,.08);
}

.auth-console::before,
.auth-console::after {
    content: "";
    position: absolute;
    top: 13px;
    width: 28px;
    height: 3px;
    border-radius: 999px;
    background: var(--cm-amber-500);
    box-shadow: 0 0 9px rgba(246,168,0,.45);
}

.auth-console::before { left: 18px; }
.auth-console::after { right: 18px; }

.console-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 16px;
    text-align: left;
}

.console-logo {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(246,168,0,.28);
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(255,255,255,.98), rgba(219,231,253,.92));
    box-shadow: 0 8px 20px rgba(0,0,0,.22);
}

.console-logo img {
    width: 39px;
    height: 39px;
    object-fit: contain;
}

.console-brand > span:last-child {
    display: grid;
    gap: 2px;
}

.console-brand small {
    color: var(--cm-amber-300);
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .18em;
}

.console-brand b {
    color: #fff;
    font-size: 18px;
}

.boot-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 2px 0 18px;
}

.boot-strip span {
    color: #5f7190;
    font-size: 7px;
    font-weight: 900;
    letter-spacing: .15em;
}

.boot-strip span.active {
    color: var(--cm-green-500);
}

.boot-strip i {
    width: 25px;
    height: 1px;
    background: rgba(116,153,213,.22);
}

.auth-console h2 {
    margin: 0;
    color: #fff;
    text-align: center;
    font-size: clamp(24px, 2.6vw, 34px);
    line-height: 1.1;
    letter-spacing: -.025em;
}

.console-copy {
    margin: 9px auto 20px;
    color: #9cadc8;
    text-align: center;
    font-size: 12px;
    line-height: 1.55;
}

.auth-alert {
    display: grid;
    grid-template-columns: 19px 1fr;
    align-items: start;
    gap: 9px;
    margin-bottom: 15px;
    padding: 10px 12px;
    border: 1px solid rgba(239,83,80,.3);
    border-radius: 11px;
    color: #ffd5d4;
    background: rgba(104,27,31,.3);
    font-size: 11px;
    line-height: 1.45;
}

.auth-alert svg {
    width: 18px;
    height: 18px;
    color: #ff7774;
}

.auth-alert-warning {
    color: #ffe6b1;
    border-color: rgba(246,168,0,.3);
    background: rgba(104,67,15,.28);
}

.auth-alert-warning svg {
    color: var(--cm-amber-300);
}

.auth-alert-success {
    color: #c8ffeb;
    border-color: rgba(36,197,138,.3);
    background: rgba(17,86,65,.28);
}

.auth-alert-success svg {
    color: var(--cm-green-500);
}

.form-field {
    display: grid;
    gap: 7px;
    margin-bottom: 14px;
}

.form-field label {
    color: #c6d3e8;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .05em;
}

.dashboard-input {
    position: relative;
    display: grid;
    grid-template-columns: 42px 1fr 40px;
    align-items: center;
    min-height: 50px;
    overflow: hidden;
    border: 1px solid rgba(123,164,229,.22);
    border-radius: 12px;
    background: rgba(1,8,22,.72);
    box-shadow: inset 0 1px rgba(255,255,255,.025);
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.dashboard-input:focus-within {
    border-color: rgba(91,147,244,.72);
    background: rgba(3,14,35,.88);
    box-shadow: 0 0 0 4px rgba(45,124,255,.11), inset 0 1px rgba(255,255,255,.035);
}

.dashboard-input > svg {
    justify-self: center;
    width: 18px;
    height: 18px;
    color: #7185a8;
}

.dashboard-input input {
    width: 100%;
    min-width: 0;
    height: 48px;
    padding: 0;
    color: #f7faff;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 13px;
}

.dashboard-input input::placeholder {
    color: #586b8e;
}

.input-status {
    justify-self: center;
    width: 7px;
    height: 7px;
    border: 1px solid #5f7190;
    border-radius: 50%;
    transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.dashboard-input.has-value .input-status {
    border-color: var(--cm-green-500);
    background: var(--cm-green-500);
    box-shadow: 0 0 10px rgba(36,197,138,.6);
}

.password-toggle {
    position: absolute;
    right: 7px;
    top: 50%;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    padding: 0;
    color: #7083a5;
    border: 0;
    border-radius: 8px;
    background: transparent;
    transform: translateY(-50%);
    cursor: pointer;
}

.password-toggle:hover {
    color: #d7e5fb;
    background: rgba(44,88,158,.2);
}

.password-toggle svg {
    width: 17px;
    height: 17px;
}

.password-toggle .eye-closed {
    display: none;
}

.password-toggle[aria-pressed="true"] .eye-open {
    display: none;
}

.password-toggle[aria-pressed="true"] .eye-closed {
    display: block;
}

.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 2px;
}

.remember-control {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #8fa0bd;
    cursor: pointer;
    font-size: 10px;
    font-weight: 650;
}

.remember-control input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.remember-control span {
    position: relative;
    display: block;
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
    border: 1px solid rgba(133,170,229,.38);
    border-radius: 5px;
    background: rgba(1,8,22,.72);
    transition: border-color .2s ease, background .2s ease;
}

.remember-control span::after {
    content: "";
    position: absolute;
    left: 4px;
    top: 1px;
    width: 5px;
    height: 9px;
    opacity: 0;
    border-right: 2px solid #06152e;
    border-bottom: 2px solid #06152e;
    transform: rotate(45deg) scale(.6);
    transition: opacity .2s ease, transform .2s ease;
}

.remember-control input:checked + span {
    border-color: var(--cm-amber-500);
    background: var(--cm-amber-500);
}

.remember-control input:checked + span::after {
    opacity: 1;
    transform: rotate(45deg) scale(1);
}

.remember-control input:focus-visible + span {
    outline: 3px solid rgba(126,180,255,.58);
    outline-offset: 2px;
}

.forgot-link {
    padding: 0;
    color: var(--cm-amber-300);
    border: 0;
    background: transparent;
    cursor: pointer;
    font-size: 10px;
    font-weight: 800;
}

.forgot-link:hover {
    color: #fff0bd;
    text-decoration: underline;
}

.engine-button {
    position: relative;
    display: grid;
    grid-template-columns: 42px 1fr 20px;
    align-items: center;
    width: 100%;
    min-height: 58px;
    gap: 12px;
    margin-top: 18px;
    padding: 7px 16px 7px 8px;
    overflow: hidden;
    color: #fff;
    border: 1px solid rgba(255,199,85,.48);
    border-radius: 15px;
    background:
        linear-gradient(135deg, #0d3f9b, #071f60 62%, #051746);
    box-shadow:
        0 17px 32px rgba(0,0,0,.26),
        inset 0 1px rgba(255,255,255,.12),
        0 0 0 1px rgba(246,168,0,.05);
    cursor: pointer;
    transition: transform .18s ease, box-shadow .2s ease, border-color .2s ease, opacity .2s ease;
}

.engine-button::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 -24%;
    width: 22%;
    opacity: .5;
    transform: skewX(-18deg);
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.23), transparent);
    transition: left .7s ease;
}

.engine-button:hover:not(:disabled) {
    transform: translateY(-1px);
    border-color: rgba(255,217,124,.82);
    box-shadow: 0 21px 38px rgba(0,0,0,.34), 0 0 28px rgba(45,124,255,.14);
}

.engine-button:hover:not(:disabled)::before {
    left: 112%;
}

.engine-button:disabled {
    cursor: wait;
    opacity: .78;
}

.engine-button > svg {
    width: 18px;
    height: 18px;
    color: var(--cm-amber-300);
}

.engine-ring {
    position: relative;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255,216,125,.42);
    border-radius: 50%;
    background: radial-gradient(circle, #162c57 0 42%, #07132d 43% 100%);
    box-shadow: inset 0 0 9px rgba(0,0,0,.6), 0 0 15px rgba(246,168,0,.08);
}

.engine-ring::before {
    content: "";
    width: 14px;
    height: 14px;
    border: 2px solid var(--cm-amber-500);
    border-radius: 50%;
}

.engine-ring i {
    position: absolute;
    left: 50%;
    top: 5px;
    width: 2px;
    height: 12px;
    transform: translateX(-50%);
    border-radius: 2px;
    background: var(--cm-amber-500);
}

.engine-button-copy {
    display: grid;
    gap: 2px;
    text-align: left;
}

.engine-button-copy small {
    color: #9fb2d1;
    font-size: 7px;
    font-weight: 900;
    letter-spacing: .19em;
}

.engine-button-copy b {
    font-size: 13px;
    letter-spacing: .06em;
}

.engine-button.is-loading .engine-ring {
    animation: engineRing 1s linear infinite;
}

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

.security-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 15px;
    color: #667997;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.security-footer span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.security-footer svg {
    width: 14px;
    height: 14px;
    color: var(--cm-green-500);
}

.login-footer {
    position: absolute;
    z-index: 30;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: var(--footer-height);
    padding: 0 clamp(18px, 3vw, 48px);
    color: rgba(190,203,224,.62);
    border-top: 1px solid rgba(136,175,242,.1);
    background: rgba(2,8,20,.46);
    backdrop-filter: blur(12px);
    font-size: 9px;
    font-weight: 750;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.login-footer span:first-child {
    color: rgba(255,211,106,.75);
}

.loading-overlay {
    position: fixed;
    z-index: 100;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    background:
        radial-gradient(circle at 50% 42%, rgba(25,87,182,.28), transparent 30%),
        rgba(1,5,14,.9);
    backdrop-filter: blur(12px);
    transition: opacity .7s ease, visibility 0s linear .7s;
}

.loading-content {
    width: min(620px, 92vw);
    text-align: center;
}

.loading-logo {
    position: relative;
    display: grid;
    place-items: center;
    width: 92px;
    height: 92px;
    margin: 0 auto 22px;
    border: 1px solid rgba(255,197,79,.3);
    border-radius: 27px;
    background: linear-gradient(145deg, rgba(255,255,255,.98), rgba(218,231,253,.94));
    box-shadow: 0 22px 55px rgba(0,0,0,.35), 0 0 38px rgba(246,168,0,.1);
}

.loading-logo img {
    width: 76px;
    height: 76px;
    object-fit: contain;
}

.loading-logo span {
    position: absolute;
    inset: -12px;
    border: 1px solid rgba(78,142,255,.34);
    border-radius: 34px;
    animation: loadingPulse 1.5s ease-in-out infinite;
}

@keyframes loadingPulse {
    0%, 100% { transform: scale(.96); opacity: .35; }
    50% { transform: scale(1.07); opacity: .8; }
}

.loading-kicker {
    margin: 0 0 8px;
    color: var(--cm-green-500);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .22em;
    text-transform: uppercase;
}

.loading-content h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(30px, 4vw, 52px);
    line-height: 1.04;
    letter-spacing: -.035em;
}

#loadingGreeting {
    margin: 13px 0 24px;
    color: #aebdd3;
    font-size: 13px;
}

.loading-progress {
    position: relative;
    width: min(500px, 86vw);
    height: 5px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(102,139,199,.16);
    box-shadow: inset 0 1px 3px rgba(0,0,0,.4);
}

.loading-progress span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--cm-blue-500), var(--cm-amber-500));
    box-shadow: 0 0 13px rgba(45,124,255,.55);
    transition: width .42s var(--ease-premium);
}

.loading-message {
    min-height: 24px;
    margin-top: 14px;
    color: var(--cm-amber-300);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.loading-modules {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 25px;
}

.loading-modules span {
    padding: 6px 9px;
    color: #7083a3;
    border: 1px solid rgba(116,158,222,.12);
    border-radius: 999px;
    background: rgba(8,21,47,.42);
    font-size: 7px;
    font-weight: 900;
    letter-spacing: .14em;
}

.password-dialog {
    width: min(480px, calc(100vw - 34px));
    max-width: none;
    padding: 0;
    overflow: visible;
    color: #f5f8ff;
    border: 0;
    border-radius: 24px;
    background: transparent;
}

.password-dialog::backdrop {
    background: rgba(1,6,17,.78);
    backdrop-filter: blur(10px);
}

.password-dialog-card {
    padding: 25px;
    border: 1px solid rgba(127,174,255,.28);
    border-radius: 24px;
    background:
        radial-gradient(circle at 50% 0%, rgba(39,91,179,.22), transparent 36%),
        linear-gradient(180deg, rgba(8,23,52,.98), rgba(3,11,28,.99));
    box-shadow: 0 35px 90px rgba(0,0,0,.54), inset 0 1px rgba(255,255,255,.05);
}

.dialog-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
}

.dialog-header small {
    color: var(--cm-amber-300);
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .18em;
}

.dialog-header h2 {
    margin: 5px 0 0;
    font-size: 25px;
}

.dialog-close {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    padding: 0 0 3px;
    color: #b9c8de;
    border: 1px solid rgba(130,171,236,.18);
    border-radius: 10px;
    background: rgba(5,16,39,.7);
    cursor: pointer;
    font-size: 24px;
}

.password-dialog-card > p {
    margin: 18px 0;
    color: #9cadc8;
    font-size: 12px;
    line-height: 1.6;
}

.password-dialog-card label {
    display: grid;
    gap: 7px;
    margin-top: 13px;
    color: #c8d4e7;
    font-size: 10px;
    font-weight: 800;
}

.password-dialog-card input {
    width: 100%;
    height: 48px;
    padding: 0 13px;
    color: #fff;
    border: 1px solid rgba(125,166,230,.22);
    border-radius: 11px;
    outline: 0;
    background: rgba(1,8,22,.72);
    font-size: 13px;
}

.password-dialog-card input:focus {
    border-color: rgba(91,147,244,.72);
    box-shadow: 0 0 0 4px rgba(45,124,255,.11);
}

.assistance-note {
    margin-top: 16px;
    padding: 11px 12px;
    color: #cbd8eb;
    border: 1px solid rgba(246,168,0,.2);
    border-radius: 11px;
    background: rgba(90,58,12,.18);
    font-size: 10px;
    line-height: 1.5;
}

.dialog-actions {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 10px;
    margin-top: 19px;
}

.dialog-actions button {
    min-height: 44px;
    border-radius: 11px;
    cursor: pointer;
    font-size: 10px;
    font-weight: 850;
}

.dialog-secondary {
    color: #c9d6e9;
    border: 1px solid rgba(127,167,231,.2);
    background: rgba(4,15,36,.72);
}

.dialog-primary {
    color: #fff;
    border: 1px solid rgba(255,199,85,.35);
    background: linear-gradient(135deg, #0d3f9b, #071f60);
}

/*
|--------------------------------------------------------------------------
| Interactive states
|--------------------------------------------------------------------------
*/

.login-app.is-unlocking .indicator-front,
.login-app.is-unlocking .rear-light {
    animation: indicatorBlink .22s linear 4;
}

@keyframes indicatorBlink {
    0%, 45% { background: #ff9f0a; box-shadow: 0 0 18px rgba(255,159,10,.9); }
    46%, 100% { background: #6e4a0a; box-shadow: none; }
}

.login-app.is-unlocking .door-handle {
    background: var(--cm-amber-300);
    box-shadow: 0 0 0 8px rgba(246,168,0,.18), 0 0 22px rgba(246,168,0,.78);
}

.login-app.is-unlocked .cab-window-glow {
    opacity: 1;
}

.login-app.is-unlocked .headlight {
    background: #e7f5ff;
    box-shadow: 0 0 12px rgba(220,241,255,.9), 0 0 34px rgba(130,188,255,.7);
}

.login-app.is-unlocked .headlight::after {
    opacity: .48;
}

.login-app.is-unlocked .rear-light {
    background: #ff3344;
    box-shadow: 0 0 18px rgba(255,51,68,.7);
}

.login-app.is-unlocked .truck-door {
    transform: perspective(280px) rotateY(-18deg) translateX(-2%);
    filter: brightness(1.1);
}

.login-app.is-unlocked .click-hint {
    opacity: 0;
    transform: translateY(8px);
}

.login-app.cockpit-active .arrival-copy {
    opacity: 0;
    filter: blur(7px);
    transform: translateY(-52%) translateX(-28px) scale(.96);
    pointer-events: none;
}

.login-app.cockpit-active .truck-bay {
    opacity: .36;
    filter: blur(8px);
    transform: translateY(-44%) scale(1.2);
    pointer-events: none;
}

.login-app.cockpit-active .cockpit-shell {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: scale(1) translateY(0);
    transition-delay: 0s;
}

.login-app.auth-failed .dashboard-frame {
    animation: dashboardFail .46s ease;
}

.login-app.auth-failed .auth-console {
    border-color: rgba(239,83,80,.44);
    box-shadow: 0 24px 50px rgba(0,0,0,.24), inset 0 1px rgba(255,255,255,.04), 0 0 36px rgba(239,83,80,.12);
}

.login-app.auth-failed .gauge-needle {
    background: linear-gradient(90deg, var(--cm-red-500), #ffd0cf);
    animation: needleFail .55s ease;
}

.login-app.auth-failed #accessReadout {
    color: var(--cm-red-500);
}

@keyframes dashboardFail {
    0%, 100% { transform: translateX(0); }
    18% { transform: translateX(-7px); }
    38% { transform: translateX(6px); }
    58% { transform: translateX(-4px); }
    78% { transform: translateX(3px); }
}

@keyframes needleFail {
    0%,100% { filter: none; }
    35%,70% { filter: drop-shadow(0 0 7px rgba(239,83,80,.8)); }
}

.login-app.auth-success .cockpit-shell {
    opacity: 0;
    pointer-events: none;
    transform: scale(.97);
    transition-duration: .55s;
}

.login-app.auth-success .arrival-copy {
    opacity: 0;
}

.login-app.auth-success .truck-bay {
    opacity: 1;
    filter: none;
    pointer-events: none;
    transform: translateY(-44%) scale(1);
}

.login-app.auth-success .warehouse-gate .gate-panel-left {
    transform: translateX(-104%) rotateY(-4deg);
    opacity: .45;
}

.login-app.auth-success .warehouse-gate .gate-panel-right {
    transform: translateX(104%) rotateY(4deg);
    opacity: .45;
}

.login-app.auth-success .truck-vehicle {
    animation: truckDeparture 3.1s var(--ease-premium) .45s forwards;
}

.login-app.auth-success .wheel {
    animation: wheelSpin .5s linear .45s infinite;
}

.login-app.auth-success .truck-shadow {
    animation: shadowDeparture 3.1s var(--ease-premium) .45s forwards;
}

.login-app.auth-success .loading-overlay {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition-delay: .75s, 0s;
}

@keyframes truckDeparture {
    0% { transform: translate3d(0,0,0) scale(1); }
    12% { transform: translate3d(1.2%,-2px,0) scale(1.01); }
    40% { transform: translate3d(19%,0,0) scale(.97); }
    100% { transform: translate3d(125%, -3%, 0) scale(.76); }
}

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

@keyframes shadowDeparture {
    from { transform: translateX(0) scaleX(1); opacity: .58; }
    to { transform: translateX(120%) scaleX(.65); opacity: .1; }
}

.no-js .arrival-copy,
.no-js .truck-bay,
.no-js .header-actions {
    display: none;
}

.no-js .cockpit-shell {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
}

.no-js .cockpit-shell::before {
    background: rgba(1,6,17,.35);
}

/*
|--------------------------------------------------------------------------
| Responsive layout
|--------------------------------------------------------------------------
*/

@media (max-width: 1180px) {
    .arrival-copy {
        width: 43vw;
    }

    .truck-bay {
        right: 2.5vw;
        width: 54vw;
    }

    .dashboard-layout {
        grid-template-columns: 180px minmax(350px, 1fr) 180px;
    }
}

@media (max-width: 980px) {
    :root {
        --header-height: 76px;
    }

    .operations-header {
        grid-template-columns: 1fr auto;
    }

    .header-status {
        display: none;
    }

    .arrival-copy {
        left: 5vw;
        top: 42%;
        width: 47vw;
    }

    .arrival-copy h1 {
        font-size: clamp(34px, 5vw, 52px);
    }

    .truck-bay {
        right: -3vw;
        top: 54%;
        width: 59vw;
    }

    .dashboard-layout {
        grid-template-columns: minmax(340px, 1fr);
        padding: 18px;
    }

    .gauge-panel {
        display: none;
    }

    .dashboard-frame {
        width: min(610px, 94vw);
        min-height: auto;
    }

    .auth-console {
        min-height: 530px;
    }
}

@media (max-width: 760px) {
    :root {
        --header-height: 68px;
        --footer-height: 36px;
    }

    body {
        overflow-y: auto;
    }

    .login-app {
        min-height: 100svh;
    }

    .operations-header {
        position: relative;
        padding: 10px 14px;
    }

    .brand-emblem {
        width: 43px;
        height: 43px;
        border-radius: 12px;
    }

    .brand-emblem img {
        width: 35px;
        height: 35px;
    }

    .brand-copy strong {
        font-size: 15px;
    }

    .brand-copy small {
        font-size: 7px;
        letter-spacing: .12em;
    }

    .icon-control span {
        display: none;
    }

    .skip-control {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 46px;
        padding: 0 8px;
        font-size: 8px;
        letter-spacing: .03em;
        text-transform: uppercase;
    }

    .icon-control {
        width: 38px;
        justify-content: center;
        padding: 0;
    }

    .operations-stage {
        min-height: calc(100svh - var(--header-height) - var(--footer-height));
    }

    .arrival-copy {
        left: 20px;
        right: 20px;
        top: 18%;
        width: auto;
        transform: none;
        text-align: center;
    }

    .eyebrow {
        justify-content: center;
        margin-bottom: 11px;
        font-size: 8px;
    }

    .arrival-copy h1 {
        margin: auto;
        font-size: clamp(31px, 9.5vw, 46px);
    }

    .arrival-copy > p {
        margin-top: 14px;
        font-size: 13px;
        line-height: 1.5;
    }

    .arrival-actions {
        justify-content: center;
        margin-top: 20px;
    }

    .facility-status {
        display: none;
    }

    .truck-bay {
        left: 50%;
        right: auto;
        top: auto;
        bottom: 2%;
        width: min(92vw, 650px);
        height: 44vh;
        min-height: 310px;
        transform: translateX(-50%);
    }

    .bay-sign {
        display: none;
    }

    .click-hint {
        right: 50%;
        transform: translateX(50%);
    }

    .warehouse-gate {
        top: 15%;
        width: 82vw;
        height: 46vh;
    }

    .warehouse-lights {
        left: 5%;
        right: 5%;
    }

    .warehouse-lights i:nth-child(2),
    .warehouse-lights i:nth-child(4) {
        display: none;
    }

    .cockpit-shell {
        align-items: start;
        padding: 12px 10px 48px;
        overflow-y: auto;
    }

    .dashboard-frame {
        width: min(560px, 100%);
        margin: auto;
        border-radius: 22px 22px 28px 28px;
    }

    .dashboard-layout {
        padding: 10px;
    }

    .auth-console {
        min-height: auto;
        padding: 25px 19px;
        border-radius: 19px;
    }

    .dashboard-topline,
    .dashboard-footerline {
        min-height: 38px;
        padding: 0 14px;
        font-size: 7px;
    }

    .auth-console h2 {
        font-size: 25px;
    }

    .console-copy {
        margin-bottom: 16px;
    }

    .security-footer {
        align-items: flex-start;
        font-size: 7px;
    }

    .login-footer {
        padding: 0 14px;
        font-size: 7px;
    }

    .login-footer span:first-child {
        display: none;
    }

    .login-footer {
        justify-content: center;
    }

    .login-app.cockpit-active .arrival-copy {
        transform: translateY(-20px) scale(.96);
    }

    .login-app.cockpit-active .truck-bay {
        transform: translateX(-50%) scale(1.18);
    }

    .login-app.auth-success .truck-bay {
        transform: translateX(-50%) scale(1);
    }
}

@media (max-width: 460px) {
    .brand-copy small {
        display: none;
    }

    .header-actions {
        gap: 5px;
    }

    .arrival-copy {
        top: 14%;
    }

    .unlock-button {
        grid-template-columns: 42px 1fr 18px;
        min-width: 100%;
    }

    .unlock-icon {
        width: 42px;
        height: 42px;
    }

    .truck-bay {
        height: 40vh;
        min-height: 275px;
    }

    .truck-brand-mark b {
        font-size: 13px;
    }

    .truck-brand-mark small {
        letter-spacing: .06em;
    }

    .form-options {
        align-items: flex-start;
    }

    .remember-control {
        max-width: 160px;
        line-height: 1.35;
    }

    .dialog-actions {
        grid-template-columns: 1fr;
    }
}

@media (max-height: 760px) and (min-width: 761px) {
    :root {
        --header-height: 72px;
        --footer-height: 34px;
    }

    .operations-header {
        min-height: var(--header-height);
        padding-top: 9px;
        padding-bottom: 9px;
    }

    .brand-emblem {
        width: 46px;
        height: 46px;
    }

    .brand-emblem img {
        width: 38px;
        height: 38px;
    }

    .arrival-copy {
        transform: translateY(-49%);
    }

    .arrival-copy h1 {
        font-size: clamp(34px, 4vw, 55px);
    }

    .arrival-copy > p {
        margin-top: 15px;
        line-height: 1.5;
    }

    .arrival-actions {
        margin-top: 19px;
    }

    .facility-status {
        margin-top: 15px;
    }

    .truck-bay {
        height: 52vh;
        transform: translateY(-40%);
    }

    .dashboard-frame {
        min-height: 590px;
    }

    .dashboard-layout {
        min-height: 500px;
        padding-top: 15px;
        padding-bottom: 15px;
    }

    .auth-console {
        padding-top: 25px;
        padding-bottom: 25px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-delay: 0s !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        transition-delay: 0s !important;
    }

    .ambient-fog,
    .truck-vehicle,
    .door-handle,
    .loading-logo span {
        animation: none !important;
    }
}

.login-app.instant-cockpit .arrival-copy,
.login-app.instant-cockpit .truck-bay,
.login-app.instant-cockpit .cockpit-shell,
.login-app.instant-cockpit .truck-door,
.login-app.instant-cockpit .cab-window-glow,
.login-app.instant-cockpit .headlight,
.login-app.instant-cockpit .click-hint {
    transition: none !important;
}


/* ==========================================================================
   Premium Interactive Login v1.4 — enhanced multi-directional truck run
   ========================================================================== */

.truck-bay::before {
    content: "";
    position: absolute;
    left: 10%;
    right: 1%;
    bottom: 7%;
    height: 19%;
    border-radius: 999px;
    background:
        linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,0) 22%),
        linear-gradient(180deg, rgba(6,14,30,.22), rgba(2,6,16,.76) 20%, rgba(3,9,19,.95) 55%, rgba(2,6,14,.98) 100%);
    box-shadow:
        inset 0 2px 0 rgba(153,193,255,.08),
        inset 0 -16px 28px rgba(0,0,0,.38),
        0 24px 28px rgba(0,0,0,.24);
    opacity: .94;
    transform: perspective(920px) rotateX(74deg) translateZ(0);
    transform-origin: bottom center;
    overflow: hidden;
    pointer-events: none;
}

.truck-bay::after {
    content: "";
    position: absolute;
    left: 16%;
    right: 7%;
    bottom: 12%;
    height: 8px;
    border-radius: 999px;
    opacity: .34;
    background:
        repeating-linear-gradient(90deg, rgba(255,191,82,.96) 0 44px, transparent 44px 102px);
    box-shadow: 0 0 14px rgba(255,186,70,.18);
    pointer-events: none;
}

.lane-markings::before,
.lane-markings::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.lane-markings::before {
    left: 50%;
    right: auto;
    width: 12px;
    transform: translateX(-50%);
    background: repeating-linear-gradient(180deg, rgba(255,195,96,.9) 0 44px, transparent 44px 108px);
    filter: drop-shadow(0 0 8px rgba(255,187,74,.22));
    opacity: .82;
}

.lane-markings::after {
    inset: 4% 7% 0;
    border-radius: 50%;
    opacity: .22;
    background: radial-gradient(ellipse at 50% 0%, rgba(151,196,255,.34), transparent 58%);
}

.login-app.engine-sequence .cockpit-shell {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: scale(.965);
    transition: opacity .42s ease, transform .42s ease, visibility 0s linear .42s;
}

.login-app.engine-sequence .arrival-copy {
    opacity: 0;
    pointer-events: none;
}

.login-app.engine-sequence .truck-bay {
    opacity: 1;
    filter: none;
    pointer-events: none;
    perspective: 1200px;
    transform: translateY(-44%) scale(1);
    animation: truckBayCameraMove 11.05s cubic-bezier(.33,.05,.2,1) forwards;
}

.login-app.engine-sequence .truck-bay::before,
.login-app.engine-sequence.auth-success .truck-bay::before {
    animation: roadSurfaceFlow .78s linear infinite, roadSurfacePulse 11.05s ease-in-out forwards;
}

.login-app.engine-sequence .truck-bay::after,
.login-app.engine-sequence.auth-success .truck-bay::after,
.login-app.engine-sequence .lane-markings::before,
.login-app.engine-sequence.auth-success .lane-markings::before {
    animation: centerLineRush .4s linear infinite;
}

.login-app.engine-sequence .lane-markings,
.login-app.engine-sequence.auth-success .lane-markings {
    animation: roadPerspectiveShift 11.05s ease-in-out forwards;
}

.login-app.engine-sequence .floor-reflection::before,
.login-app.engine-sequence.auth-success .floor-reflection::before {
    animation: floorGridRun 1.05s linear infinite;
}

.login-app.engine-sequence .warehouse-gate .gate-panel-left {
    transform: translateX(-104%) rotateY(-4deg);
    opacity: .42;
    transition-duration: 1.05s;
}

.login-app.engine-sequence .warehouse-gate .gate-panel-right {
    transform: translateX(104%) rotateY(4deg);
    opacity: .42;
    transition-duration: 1.05s;
}

.login-app.engine-sequence .truck-vehicle,
.login-app.engine-sequence.auth-success .truck-vehicle {
    transform-style: preserve-3d;
    will-change: transform;
    animation: truckMusicRunEnhanced 11.05s linear forwards;
}

.login-app.engine-sequence .truck-shadow,
.login-app.engine-sequence.auth-success .truck-shadow {
    will-change: transform, opacity, filter;
    animation: truckMusicShadowEnhanced 11.05s linear forwards;
}

.login-app.engine-sequence .wheel,
.login-app.engine-sequence.auth-success .wheel {
    animation: wheelSpin .26s linear infinite;
}

.login-app.engine-sequence .truck-cab {
    animation: truckCabBeatEnhanced 11.05s linear forwards;
    transform-origin: 48% 82%;
}

.login-app.engine-sequence .headlight {
    animation: truckHeadlightBeat .92s ease-in-out infinite;
}

.login-app.engine-sequence .rear-light {
    animation: truckRearLightBeat 1.38s steps(2, end) infinite;
}

/* Keep the truck visible while the operational loading messages advance. */
.login-app.engine-sequence.auth-success .loading-overlay {
    place-items: end start;
    padding: 24px clamp(18px, 4vw, 64px) calc(var(--footer-height) + 24px);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    background: linear-gradient(180deg, transparent 42%, rgba(1,5,14,.36) 100%);
    backdrop-filter: none;
    transition-delay: 0s;
}

.login-app.engine-sequence.auth-success .loading-content {
    width: min(430px, calc(100vw - 36px));
    padding: 16px 18px 15px;
    text-align: left;
    border: 1px solid rgba(133,177,255,.2);
    border-radius: 18px;
    background: rgba(3,12,31,.76);
    box-shadow: 0 18px 45px rgba(0,0,0,.32), inset 0 1px rgba(255,255,255,.04);
    backdrop-filter: blur(13px);
}

.login-app.engine-sequence.auth-success .loading-logo {
    display: none;
}

.login-app.engine-sequence.auth-success .loading-kicker {
    margin-bottom: 5px;
}

.login-app.engine-sequence.auth-success .loading-content h2 {
    font-size: clamp(19px, 2.4vw, 28px);
}

.login-app.engine-sequence.auth-success #loadingGreeting {
    margin: 7px 0 11px;
    font-size: 11px;
}

.login-app.engine-sequence.auth-success .loading-progress {
    width: 100%;
    margin: 0;
}

.login-app.engine-sequence.auth-success #loadingMessage {
    margin-top: 9px;
    font-size: 10px;
}

/* Once the full 11-second audio finishes, use the existing cinematic overlay
   for a very short hand-off before PHP's authenticated dashboard opens. */
.login-app.engine-sequence-complete.auth-success .loading-overlay {
    place-items: center;
    padding: 24px;
    background:
        radial-gradient(circle at 50% 42%, rgba(25,87,182,.28), transparent 30%),
        rgba(1,5,14,.9);
    backdrop-filter: blur(12px);
}

.login-app.engine-sequence-complete.auth-success .loading-content {
    width: min(620px, 92vw);
    padding: 0;
    text-align: center;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
}

.login-app.engine-sequence-complete.auth-success .loading-logo {
    display: grid;
}

.login-app.engine-sequence-complete.auth-success .loading-content h2 {
    font-size: clamp(30px, 4vw, 52px);
}

.login-app.engine-sequence-complete.auth-success #loadingGreeting {
    margin: 13px 0 24px;
    font-size: 13px;
}

.login-app.engine-sequence-complete.auth-success .loading-progress {
    width: min(500px, 86vw);
    margin: 0 auto;
}

@keyframes truckBayCameraMove {
    0%   { transform: translateY(-44%) translateX(0) scale(1); }
    18%  { transform: translateY(-44.8%) translateX(.6%) scale(1.004); }
    36%  { transform: translateY(-43.7%) translateX(-.3%) scale(1.01); }
    54%  { transform: translateY(-45.1%) translateX(.7%) scale(1.018); }
    72%  { transform: translateY(-43.9%) translateX(-.25%) scale(1.024); }
    90%  { transform: translateY(-44.4%) translateX(.8%) scale(1.028); }
    100% { transform: translateY(-45.2%) translateX(1.2%) scale(1.035); }
}

@keyframes roadSurfaceFlow {
    from { background-position: 0 0, 0 0; }
    to   { background-position: 0 0, -480px 0; }
}

@keyframes roadSurfacePulse {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.08); }
}

@keyframes centerLineRush {
    from { background-position: 0 0; }
    to   { background-position: 0 152px; }
}

@keyframes roadPerspectiveShift {
    0%   { transform: translateX(-50%) perspective(430px) rotateX(57deg) scaleX(1); opacity: .95; }
    30%  { transform: translateX(-49.2%) perspective(460px) rotateX(59deg) scaleX(1.03); opacity: 1; }
    54%  { transform: translateX(-50.7%) perspective(485px) rotateX(61deg) scaleX(1.06); opacity: 1; }
    82%  { transform: translateX(-49.4%) perspective(510px) rotateX(63deg) scaleX(1.1); opacity: .96; }
    100% { transform: translateX(-48.8%) perspective(540px) rotateX(65deg) scaleX(1.14); opacity: .92; }
}

@keyframes floorGridRun {
    from { background-position: 0 0, 0 0; }
    to   { background-position: 0 76px, 0 76px; }
}

@keyframes truckMusicRunEnhanced {
    0%   { transform: translate3d(0%, 0px, 0) rotateY(0deg) rotateZ(0deg) skewX(0deg) scale(1); }
    4%   { transform: translate3d(1.2%, -7px, 0) rotateY(-8deg) rotateZ(-1.6deg) skewX(-.6deg) scale(1.01); }
    8%   { transform: translate3d(4.5%, 4px, 0) rotateY(8deg) rotateZ(1.9deg) skewX(.7deg) scale(1.01); }
    12%  { transform: translate3d(7.5%, -9px, 0) rotateY(-9deg) rotateZ(-2.1deg) skewX(-.8deg) scale(1.018); }
    16%  { transform: translate3d(10%, 5px, 0) rotateY(9deg) rotateZ(2.2deg) skewX(.8deg) scale(1.015); }
    20%  { transform: translate3d(12.5%, -8px, 0) rotateY(-10deg) rotateZ(-2.4deg) skewX(-.9deg) scale(1.022); }
    24%  { transform: translate3d(15%, 6px, 0) rotateY(10deg) rotateZ(2.5deg) skewX(.9deg) scale(1.019); }
    28%  { transform: translate3d(18%, -10px, 0) rotateY(-11deg) rotateZ(-2.6deg) skewX(-1deg) scale(1.026); }
    32%  { transform: translate3d(21.5%, 5px, 0) rotateY(11deg) rotateZ(2.6deg) skewX(1deg) scale(1.022); }
    36%  { transform: translate3d(24.5%, -9px, 0) rotateY(-11deg) rotateZ(-2.4deg) skewX(-.9deg) scale(1.028); }
    40%  { transform: translate3d(28%, 6px, 0) rotateY(10deg) rotateZ(2.5deg) skewX(.9deg) scale(1.024); }
    44%  { transform: translate3d(31%, -11px, 0) rotateY(-12deg) rotateZ(-2.7deg) skewX(-1deg) scale(1.032); }
    48%  { transform: translate3d(34%, 6px, 0) rotateY(11deg) rotateZ(2.6deg) skewX(1deg) scale(1.028); }
    52%  { transform: translate3d(37%, -10px, 0) rotateY(-12deg) rotateZ(-2.6deg) skewX(-1deg) scale(1.035); }
    56%  { transform: translate3d(40.5%, 5px, 0) rotateY(11deg) rotateZ(2.4deg) skewX(.95deg) scale(1.03); }
    60%  { transform: translate3d(44%, -12px, 0) rotateY(-12deg) rotateZ(-2.8deg) skewX(-1.05deg) scale(1.04); }
    64%  { transform: translate3d(47%, 6px, 0) rotateY(11deg) rotateZ(2.6deg) skewX(1deg) scale(1.034); }
    68%  { transform: translate3d(50.5%, -10px, 0) rotateY(-10deg) rotateZ(-2.5deg) skewX(-.9deg) scale(1.038); }
    72%  { transform: translate3d(54%, 7px, 0) rotateY(9deg) rotateZ(2.2deg) skewX(.8deg) scale(1.028); }
    76%  { transform: translate3d(57.5%, -9px, 0) rotateY(-8deg) rotateZ(-2deg) skewX(-.75deg) scale(1.02); }
    80%  { transform: translate3d(61%, 5px, 0) rotateY(7deg) rotateZ(1.7deg) skewX(.65deg) scale(1.01); }
    84%  { transform: translate3d(65%, -6px, 0) rotateY(-6deg) rotateZ(-1.4deg) skewX(-.55deg) scale(.995); }
    88%  { transform: translate3d(69%, 3px, 0) rotateY(5deg) rotateZ(1.1deg) skewX(.4deg) scale(.975); }
    92%  { transform: translate3d(73%, -3px, 0) rotateY(-3deg) rotateZ(-.7deg) skewX(-.2deg) scale(.95); }
    96%  { transform: translate3d(79%, -6px, 0) rotateY(2deg) rotateZ(.35deg) skewX(.1deg) scale(.92); }
    100% { transform: translate3d(88%, -20px, 0) rotateY(0deg) rotateZ(0deg) skewX(0deg) scale(.84); }
}

@keyframes truckMusicShadowEnhanced {
    0%   { transform: translateX(0) translateY(0) scaleX(1) scaleY(1); opacity: .58; filter: blur(18px); }
    20%  { transform: translateX(11%) translateY(2px) scaleX(.98) scaleY(1.01); opacity: .56; filter: blur(19px); }
    40%  { transform: translateX(27%) translateY(5px) scaleX(.94) scaleY(1.03); opacity: .52; filter: blur(20px); }
    60%  { transform: translateX(44%) translateY(8px) scaleX(.89) scaleY(1.05); opacity: .46; filter: blur(22px); }
    80%  { transform: translateX(62%) translateY(12px) scaleX(.8) scaleY(1.08); opacity: .36; filter: blur(24px); }
    100% { transform: translateX(88%) translateY(16px) scaleX(.66) scaleY(1.12); opacity: .22; filter: blur(27px); }
}

@keyframes truckCabBeatEnhanced {
    0%, 100% { transform: translateY(0) rotate(0deg) translateX(0); }
    6%  { transform: translateY(-4px) rotate(-.65deg) translateX(-1px); }
    12% { transform: translateY(2px) rotate(.8deg) translateX(1px); }
    18% { transform: translateY(-5px) rotate(-.85deg) translateX(-1px); }
    24% { transform: translateY(3px) rotate(.9deg) translateX(1px); }
    30% { transform: translateY(-6px) rotate(-1deg) translateX(-1px); }
    36% { transform: translateY(3px) rotate(.95deg) translateX(1px); }
    42% { transform: translateY(-6px) rotate(-1.02deg) translateX(-1px); }
    48% { transform: translateY(3px) rotate(.98deg) translateX(1px); }
    54% { transform: translateY(-6px) rotate(-1deg) translateX(-1px); }
    60% { transform: translateY(3px) rotate(.92deg) translateX(1px); }
    66% { transform: translateY(-5px) rotate(-.85deg) translateX(-1px); }
    72% { transform: translateY(2px) rotate(.72deg) translateX(1px); }
    78% { transform: translateY(-4px) rotate(-.6deg) translateX(-1px); }
    84% { transform: translateY(2px) rotate(.44deg) translateX(1px); }
    90% { transform: translateY(-2px) rotate(-.25deg) translateX(0); }
}

@keyframes truckHeadlightBeat {
    0%, 100% { filter: brightness(1); opacity: .9; }
    48% { filter: brightness(1.55); opacity: 1; }
}

@keyframes truckRearLightBeat {
    0%, 58%, 100% { filter: brightness(1); }
    60%, 82% { filter: brightness(1.85); }
}

@media (max-width: 760px) {
    .login-app.engine-sequence.auth-success .loading-overlay {
        padding: 18px 14px calc(var(--footer-height) + 16px);
    }

    .login-app.engine-sequence.auth-success .loading-content {
        width: 100%;
        padding: 13px 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .login-app.engine-sequence .truck-vehicle,
    .login-app.engine-sequence.auth-success .truck-vehicle {
        animation-name: truckReducedRun;
    }

    .login-app.engine-sequence .truck-bay,
    .login-app.engine-sequence .lane-markings,
    .login-app.engine-sequence .truck-bay::before,
    .login-app.engine-sequence .truck-bay::after,
    .login-app.engine-sequence .floor-reflection::before,
    .login-app.engine-sequence .truck-cab,
    .login-app.engine-sequence .headlight,
    .login-app.engine-sequence .rear-light {
        animation: none;
    }
}

@keyframes truckReducedRun {
    from { transform: translate3d(0,0,0) scale(1); }
    to { transform: translate3d(88%, -8px, 0) scale(.84); }
}

/* ========================================================================
   v1.4.2 current-function compatibility — mandatory login location UI
   Visual motion remains the original Premium Login v1.4 experience.
   ======================================================================== */

.location-disclosure,
.location-progress {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 12px 0;
    padding: 11px 12px;
    border-radius: 12px;
    border: 1px solid rgba(104, 159, 246, .18);
    background: rgba(5, 20, 50, .62);
    color: #e6efff;
}

.location-disclosure[hidden],
.location-progress[hidden] {
    display: none !important;
}

.location-disclosure-icon {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    border-radius: 9px;
    color: #7cc8ff;
    background: rgba(46, 119, 225, .16);
    border: 1px solid rgba(112, 177, 255, .18);
}

.location-disclosure-icon svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.location-disclosure > span:last-child,
.location-progress > span:last-child {
    display: grid;
    min-width: 0;
    gap: 3px;
}

.location-disclosure b,
.location-progress b {
    font-size: 11px;
    line-height: 1.35;
    color: #ffffff;
}

.location-disclosure small,
.location-progress small {
    font-size: 9px;
    line-height: 1.45;
    color: rgba(218, 231, 255, .68);
}

.location-progress {
    border-color: rgba(246, 184, 56, .24);
    background: rgba(44, 32, 8, .44);
}

.location-spinner {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    margin-top: 1px;
    border-radius: 50%;
    border: 2px solid rgba(255, 215, 123, .22);
    border-top-color: #f6b838;
    animation: cmLocationSpin .8s linear infinite;
}

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

@media (max-width: 760px) {
    .location-disclosure,
    .location-progress {
        margin: 10px 0;
        padding: 10px;
    }

    .location-disclosure small,
    .location-progress small {
        font-size: 8.5px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .location-spinner {
        animation-duration: 1.6s;
    }
}

/* ==========================================================================
   Skip animation — one-login-session visual bypass
   ========================================================================== */
/* Keep the header controls actionable while the post-login overlay is active. */
.login-app.engine-sequence .operations-header,
.login-app.auth-success .operations-header {
    z-index: 130;
}

.login-app.animations-skipped *,
.login-app.animations-skipped *::before,
.login-app.animations-skipped *::after {
    animation-play-state: paused !important;
}

.login-app.animations-skipped .ambient-fog,
.login-app.animations-skipped .truck-vehicle,
.login-app.animations-skipped .truck-shadow,
.login-app.animations-skipped .truck-cab,
.login-app.animations-skipped .wheel,
.login-app.animations-skipped .door-handle,
.login-app.animations-skipped .indicator,
.login-app.animations-skipped .rear-light,
.login-app.animations-skipped .headlight,
.login-app.animations-skipped .truck-bay,
.login-app.animations-skipped .truck-bay::before,
.login-app.animations-skipped .truck-bay::after,
.login-app.animations-skipped .lane-markings,
.login-app.animations-skipped .lane-markings::before,
.login-app.animations-skipped .floor-reflection::before,
.login-app.animations-skipped .loading-logo span {
    animation: none !important;
    transition-duration: 0s !important;
    transition-delay: 0s !important;
}
