:root {
    --bg: #eef2f6;
    --panel: #ffffff;
    --panel-soft: #f8fafc;
    --line: #dde5ee;
    --line-strong: #c8d3df;
    --text: #142033;
    --muted: #65748a;
    --primary: #1f5eff;
    --primary-dark: #1746bf;
    --accent: #0f9f8e;
    --success: #168a4a;
    --danger: #c83737;
    --warning: #b7791f;
    --radius: 8px;
    --shadow: 0 18px 45px rgba(20, 32, 51, 0.08);
    --shadow-soft: 0 8px 20px rgba(20, 32, 51, 0.06);
}

/* Public autoservice site */
.public-auto-site {
    margin: 0;
    background: #f4f6f8;
    color: #111827;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    overflow-x: hidden;
    --brand-orange: #f97316;
    --brand-magenta: #b83280;
    --brand-purple: #5b21b6;
    --brand-blue: #0f4ea8;
    --brand-gradient: linear-gradient(135deg, #f97316 0%, #b83280 46%, #0f4ea8 100%);
}

.public-auto-site main {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 12% 18%, rgba(249, 115, 22, 0.08), transparent 24%),
        radial-gradient(circle at 88% 38%, rgba(15, 78, 168, 0.08), transparent 26%),
        linear-gradient(180deg, #f4f6f8 0%, #eef3f8 42%, #f8fafc 100%);
}

.site-motion-bg {
    position: absolute;
    inset: 100vh 0 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.site-motion-bg > span {
    position: absolute;
    display: block;
    pointer-events: none;
}

.site-motion-grid {
    inset: 0;
    background:
        linear-gradient(90deg, rgba(15, 78, 168, 0.055) 0 1px, transparent 1px 92px),
        linear-gradient(0deg, rgba(249, 115, 22, 0.042) 0 1px, transparent 1px 92px);
    mask-image: linear-gradient(180deg, transparent 0%, black 12%, black 82%, transparent 100%);
    animation: siteGridDrift 26s linear infinite;
}

.site-motion-beam {
    width: 44vw;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(249, 115, 22, 0.36), rgba(45, 212, 191, 0.3), transparent);
    filter: blur(0.2px);
    transform: rotate(-18deg);
    opacity: 0;
    animation: siteBeamSweep 9s ease-in-out infinite;
}

.hero-real-car {
    position: absolute;
    display: block;
    pointer-events: none;
    left: -720px;
    top: 34%;
    z-index: 0;
    width: min(720px, 58vw);
    height: auto;
    opacity: 0.22;
    filter:
        saturate(0.98)
        contrast(1.04)
        drop-shadow(0 24px 42px rgba(15, 23, 42, 0.28))
        drop-shadow(0 0 34px rgba(249, 115, 22, 0.2));
    animation: siteCarCruise 30s linear infinite;
}

.hero-real-car img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    transform: translate3d(0, 0, 0);
}

.hero-real-car::after {
    content: "";
    position: absolute;
    right: -12%;
    top: 43%;
    width: 38%;
    height: 8px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(249, 115, 22, 0.58), rgba(249, 115, 22, 0));
    box-shadow:
        0 0 18px rgba(249, 115, 22, 0.42),
        0 0 42px rgba(249, 115, 22, 0.24);
    opacity: 0.78;
}

.site-motion-beam.beam-one {
    right: -12vw;
    top: 18%;
}

.site-motion-beam.beam-two {
    left: -18vw;
    top: 58%;
    animation-delay: 3.4s;
    transform: rotate(16deg);
}

.site-motion-node {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #fff;
    box-shadow:
        0 0 18px rgba(249, 115, 22, 0.45),
        0 0 34px rgba(15, 78, 168, 0.3);
    opacity: 0.55;
    animation: siteNodeFloat 8s ease-in-out infinite;
}

.site-motion-node.node-one {
    left: 9%;
    top: 24%;
}

.site-motion-node.node-two {
    right: 12%;
    top: 46%;
    animation-delay: -2.2s;
}

.site-motion-node.node-three {
    left: 54%;
    bottom: 18%;
    animation-delay: -4.8s;
}

@keyframes siteGridDrift {
    from {
        background-position: 0 0, 0 0;
    }
    to {
        background-position: 92px 46px, -46px 92px;
    }
}

@keyframes siteBeamSweep {
    0%, 100% {
        transform: translateX(0) rotate(-18deg);
        opacity: 0;
    }
    30% {
        opacity: 0.72;
    }
    70% {
        opacity: 0.24;
    }
    88% {
        transform: translateX(-70vw) rotate(-18deg);
        opacity: 0;
    }
}

@keyframes siteNodeFloat {
    0%, 100% {
        transform: translate3d(0, 0, 0) scale(0.86);
    }
    50% {
        transform: translate3d(18px, -24px, 0) scale(1.12);
    }
}

@keyframes siteCarCruise {
    0% {
        transform: translate3d(-8vw, 0, 0);
        opacity: 0;
    }
    8% {
        opacity: 0.2;
    }
    46% {
        opacity: 0.28;
    }
    88% {
        opacity: 0.2;
    }
    100% {
        transform: translate3d(calc(100vw + 1120px), -34px, 0);
        opacity: 0;
    }
}

.auto-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 18px;
    padding: 9px clamp(16px, 4vw, 56px);
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(17, 24, 39, 0.08);
    backdrop-filter: blur(18px);
}

.auto-brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    text-decoration: none;
}

.auto-brand-mark {
    width: 68px;
    height: 38px;
    object-fit: contain;
    display: block;
    filter: none;
}

.auto-brand-text {
    display: grid;
    gap: 1px;
    line-height: 1;
    min-width: 0;
}

.auto-brand-text strong {
    color: #111827;
    font-size: 15px;
    font-weight: 950;
    letter-spacing: 0;
    white-space: nowrap;
}

.auto-brand-text small {
    color: #344054;
    font-size: 9px;
    font-weight: 850;
    letter-spacing: 0;
    white-space: nowrap;
}

.auto-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(10px, 1.8vw, 24px);
}

.auto-nav a,
.auto-phone,
.auto-footer a {
    color: #111827;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-decoration: none;
    text-transform: uppercase;
}

.auto-nav a {
    position: relative;
    padding: 8px 0;
}

.auto-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: 0;
    height: 2px;
    background: var(--brand-gradient);
    transition: right 180ms ease;
}

.auto-nav a:hover::after {
    right: 0;
}

.auto-phone {
    padding: 8px 12px;
    border: 1px solid rgba(17, 24, 39, 0.14);
    background: #fff;
}

.language-switch {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    background: rgba(17, 24, 39, 0.06);
    border: 1px solid rgba(17, 24, 39, 0.1);
}

.language-switch a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 26px;
    color: #111827;
    font-size: 12px;
    font-weight: 900;
    text-decoration: none;
}

.language-switch a.active {
    color: #fff;
    background: var(--brand-gradient);
}

.auto-hero {
    position: relative;
    min-height: 100vh;
    display: grid;
    align-items: end;
    padding: 104px clamp(18px, 5vw, 72px) 64px;
    color: #fff;
}

.auto-hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.auto-hero-slider {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background: #05080d;
}

.auto-hero-slider .motion-layer,
.auto-hero-slider .motion-line,
.auto-hero-slider .motion-garage,
.auto-hero-slider .motion-road,
.auto-hero-slider .motion-car,
.auto-hero-slider .motion-scan,
.auto-hero-slider .motion-chip,
.auto-hero-slider .motion-spark {
    position: absolute;
    display: block;
    pointer-events: none;
}

.auto-hero-slider .motion-layer {
    inset: -18%;
    background:
        radial-gradient(circle at 72% 34%, rgba(249, 115, 22, 0.28), transparent 24%),
        radial-gradient(circle at 46% 62%, rgba(184, 50, 128, 0.24), transparent 27%),
        radial-gradient(circle at 82% 72%, rgba(15, 78, 168, 0.22), transparent 28%),
        linear-gradient(135deg, #060a12 0%, #161026 48%, #071426 100%);
    animation: autoHeroDrift 14s ease-in-out infinite alternate;
}

.auto-hero-slider .layer-two {
    inset: -8%;
    opacity: 0.42;
    background:
        linear-gradient(115deg, transparent 0 18%, rgba(255, 255, 255, 0.06) 18% 19%, transparent 19% 38%, rgba(255, 255, 255, 0.045) 38% 39%, transparent 39%),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 72px);
    animation: autoHeroPan 18s linear infinite;
}

.auto-hero-slider .motion-line {
    width: 46vw;
    height: 1px;
    right: -10vw;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.52), transparent);
    transform: rotate(-18deg);
    animation: autoHeroLine 4.8s ease-in-out infinite;
}

.auto-hero-slider .line-one {
    top: 34%;
}

.auto-hero-slider .line-two {
    top: 56%;
    animation-delay: 1.6s;
    opacity: 0.64;
}

.hero-real-car,
.auto-hero-slider .motion-car {
    display: none !important;
}

.auto-hero-slider .motion-garage {
    left: 37%;
    right: -6%;
    bottom: 9%;
    height: min(55vw, 640px);
    z-index: 1;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 18%),
        linear-gradient(180deg, transparent 0 22%, rgba(255, 255, 255, 0.09) 22% 22.5%, transparent 22.5% 45%, rgba(255, 255, 255, 0.07) 45% 45.5%, transparent 45.5%),
        radial-gradient(circle at 68% 44%, rgba(249, 115, 22, 0.18), transparent 23%),
        radial-gradient(circle at 35% 58%, rgba(15, 78, 168, 0.18), transparent 25%);
    clip-path: polygon(7% 12%, 100% 0, 100% 100%, 0 100%);
    opacity: 0.82;
    transform: perspective(740px) rotateY(-15deg) skewY(-2deg);
    animation: garageBreathe 8s ease-in-out infinite alternate;
}

.auto-hero-slider .motion-road {
    left: 30%;
    right: -8%;
    bottom: -10%;
    height: 40%;
    z-index: 2;
    background:
        linear-gradient(92deg, transparent 0 8%, rgba(255, 255, 255, 0.34) 8.4% 9%, transparent 9.4% 34%, rgba(255, 255, 255, 0.22) 34.4% 34.9%, transparent 35.4%),
        repeating-linear-gradient(104deg, rgba(255, 255, 255, 0.09) 0 2px, transparent 2px 74px),
        linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(15, 23, 42, 0.72));
    transform: perspective(720px) rotateX(58deg) skewX(-14deg);
    transform-origin: bottom;
    opacity: 0.94;
    animation: roadFlow 3.6s linear infinite;
}

.auto-hero-slider .motion-car {
    right: clamp(8px, 4vw, 76px);
    bottom: clamp(118px, 17vh, 210px);
    z-index: 4;
    width: min(720px, 55vw);
    height: min(236px, 18vw);
    filter:
        drop-shadow(0 28px 56px rgba(0, 0, 0, 0.62))
        drop-shadow(0 0 28px rgba(249, 115, 22, 0.22));
    animation: carFloat 6.5s ease-in-out infinite;
}

.motion-car .car-body,
.motion-car .car-roof,
.motion-car .car-light,
.motion-car .car-wheel {
    position: absolute;
    display: block;
}

.motion-car .car-body {
    left: 5%;
    right: 0;
    bottom: 26%;
    height: 38%;
    border: 3px solid rgba(255, 255, 255, 0.9);
    border-top-color: rgba(249, 115, 22, 1);
    border-radius: 42% 55% 18% 16% / 100% 100% 38% 38%;
    background:
        linear-gradient(90deg, rgba(249, 115, 22, 0.18), rgba(184, 50, 128, 0.12) 48%, rgba(15, 78, 168, 0.2)),
        linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.02));
    box-shadow:
        inset 0 -16px 28px rgba(0, 0, 0, 0.28),
        0 0 34px rgba(249, 115, 22, 0.32),
        0 0 80px rgba(15, 78, 168, 0.18);
}

.motion-car .car-roof {
    left: 23%;
    right: 27%;
    bottom: 55%;
    height: 32%;
    border: 3px solid rgba(255, 255, 255, 0.8);
    border-bottom: 0;
    border-radius: 58% 64% 0 0 / 100% 100% 0 0;
    background:
        linear-gradient(110deg, rgba(255, 255, 255, 0.22), rgba(15, 78, 168, 0.12));
}

.motion-car .car-light {
    bottom: 42%;
    width: 24%;
    height: 8px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.95), rgba(249, 115, 22, 0.9));
    box-shadow:
        0 0 24px rgba(249, 115, 22, 0.92),
        0 0 64px rgba(249, 115, 22, 0.46);
    animation: headlightPulse 2.2s ease-in-out infinite;
}

.motion-car .car-light-left {
    left: 0;
    transform: rotate(2deg);
}

.motion-car .car-light-right {
    right: -2%;
    transform: rotate(-2deg);
}

.motion-car .car-wheel {
    bottom: 7%;
    width: 15%;
    aspect-ratio: 1;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.68);
    background:
        radial-gradient(circle, rgba(255, 255, 255, 0.72) 0 8%, transparent 9% 100%),
        conic-gradient(from 0deg, rgba(249, 115, 22, 0.88), rgba(15, 78, 168, 0.35), rgba(255, 255, 255, 0.18), rgba(249, 115, 22, 0.88));
    opacity: 0.78;
    animation: wheelSpin 1.35s linear infinite;
}

.motion-car .wheel-left {
    left: 17%;
}

.motion-car .wheel-right {
    right: 13%;
}

.auto-hero-slider .motion-scan {
    right: clamp(12px, 4vw, 80px);
    bottom: clamp(114px, 16vh, 205px);
    z-index: 5;
    width: min(760px, 58vw);
    height: min(244px, 19vw);
    border-left: 3px solid rgba(45, 212, 191, 0.98);
    background:
        linear-gradient(90deg, rgba(45, 212, 191, 0.34), transparent 38%),
        repeating-linear-gradient(0deg, rgba(45, 212, 191, 0.22) 0 1px, transparent 1px 18px);
    opacity: 0;
    transform: translateX(-30%);
    animation: diagnosticScan 5.2s ease-in-out infinite;
}

.auto-hero-slider .motion-chip {
    z-index: 3;
    width: 74px;
    height: 74px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background:
        linear-gradient(90deg, transparent 12px, rgba(255, 255, 255, 0.12) 12px 13px, transparent 13px 30px),
        linear-gradient(0deg, transparent 12px, rgba(255, 255, 255, 0.12) 12px 13px, transparent 13px 30px),
        rgba(255, 255, 255, 0.045);
    box-shadow: 0 0 30px rgba(15, 78, 168, 0.24);
    opacity: 0.78;
    animation: chipFloat 9s ease-in-out infinite;
}

.auto-hero-slider .chip-one {
    right: 12%;
    top: 21%;
}

.auto-hero-slider .chip-two {
    right: 34%;
    top: 28%;
    width: 48px;
    height: 48px;
    animation-delay: -3s;
    opacity: 0.42;
}

.auto-hero-slider .motion-spark {
    z-index: 3;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fff;
    box-shadow:
        0 0 18px rgba(249, 115, 22, 0.75),
        0 0 34px rgba(45, 212, 191, 0.5);
    opacity: 0;
    animation: sparkMove 5.8s ease-in-out infinite;
}

.auto-hero-slider .spark-one {
    right: 26%;
    top: 37%;
}

.auto-hero-slider .spark-two {
    right: 14%;
    top: 52%;
    animation-delay: 1.6s;
}

.auto-hero-slider .spark-three {
    right: 42%;
    top: 47%;
    animation-delay: 3.1s;
}

@keyframes autoHeroDrift {
    from {
        transform: translate3d(-1.5%, -1%, 0) scale(1);
    }
    to {
        transform: translate3d(1.5%, 1%, 0) scale(1.04);
    }
}

@keyframes autoHeroPan {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-72px);
    }
}

@keyframes autoHeroLine {
    0% {
        transform: translateX(0) rotate(-18deg);
        opacity: 0;
    }
    28% {
        opacity: 1;
    }
    100% {
        transform: translateX(-64vw) rotate(-18deg);
        opacity: 0;
    }
}

@keyframes garageBreathe {
    from {
        transform: perspective(740px) rotateY(-15deg) skewY(-2deg) translate3d(0, 0, 0);
        opacity: 0.52;
    }
    to {
        transform: perspective(740px) rotateY(-13deg) skewY(-1.4deg) translate3d(-10px, -6px, 0);
        opacity: 0.72;
    }
}

@keyframes roadFlow {
    from {
        background-position: 0 0, 0 0, 0 0;
    }
    to {
        background-position: -220px 0, -148px 0, 0 0;
    }
}

@keyframes carFloat {
    0%, 100% {
        transform: translate3d(0, 0, 0);
    }
    50% {
        transform: translate3d(-8px, -5px, 0);
    }
}

@keyframes headlightPulse {
    0%, 100% {
        opacity: 0.68;
        box-shadow: 0 0 20px rgba(249, 115, 22, 0.48);
    }
    50% {
        opacity: 1;
        box-shadow: 0 0 34px rgba(249, 115, 22, 0.82);
    }
}

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

@keyframes diagnosticScan {
    0%, 18%, 100% {
        opacity: 0;
        transform: translateX(-34%);
    }
    32%, 64% {
        opacity: 0.78;
    }
    78% {
        opacity: 0;
        transform: translateX(52%);
    }
}

@keyframes chipFloat {
    0%, 100% {
        transform: translate3d(0, 0, 0) rotate(0deg);
    }
    50% {
        transform: translate3d(-12px, 10px, 0) rotate(4deg);
    }
}

@keyframes sparkMove {
    0%, 100% {
        transform: translate3d(0, 0, 0) scale(0.7);
        opacity: 0;
    }
    22% {
        opacity: 0.85;
    }
    62% {
        transform: translate3d(-72px, 38px, 0) scale(1);
        opacity: 0.7;
    }
    84% {
        opacity: 0;
    }
}

.auto-hero-media,
.auto-hero-shade,
.auto-work-image {
    position: absolute;
    inset: 0;
}

.auto-hero-media {
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.06));
    z-index: 0;
    opacity: 0;
}

.auto-hero-shade {
    background:
        linear-gradient(90deg, rgba(5, 8, 13, 0.9) 0%, rgba(5, 8, 13, 0.56) 48%, rgba(5, 8, 13, 0.24) 100%),
        radial-gradient(circle at 72% 42%, rgba(249, 115, 22, 0.2), transparent 28%),
        radial-gradient(circle at 58% 68%, rgba(15, 78, 168, 0.18), transparent 32%),
        linear-gradient(0deg, rgba(5, 8, 13, 0.82), rgba(5, 8, 13, 0.02) 56%);
    z-index: 1;
}

.auto-hero-content {
    position: relative;
    z-index: 2;
    width: min(760px, 100%);
}

.auto-hero-logo {
    width: min(220px, 54vw);
    height: auto;
    margin: 0 0 24px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.92);
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.44));
}

.auto-animated-logo {
    position: relative;
    width: min(250px, 58vw);
    aspect-ratio: 1.18 / 1;
    margin: 0 0 24px;
    padding: 0;
    background: transparent;
    box-shadow: none;
    overflow: hidden;
    isolation: isolate;
}

.auto-animated-logo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
    user-select: none;
}

.auto-animated-logo .logo-base {
    opacity: 0.24;
    filter: saturate(0.85) brightness(1.08) drop-shadow(0 18px 28px rgba(0, 0, 0, 0.34));
    clip-path: inset(0 0 20% 0);
    mix-blend-mode: screen;
}

.auto-animated-logo .logo-piece {
    opacity: 0.96;
    filter: saturate(1.04) contrast(1.02) drop-shadow(0 16px 24px rgba(0, 0, 0, 0.38));
    will-change: transform, opacity;
    mix-blend-mode: screen;
}

.logo-piece-car {
    clip-path: inset(18% 50% 38% 4%);
    animation: logoCarDriveIn 1.25s cubic-bezier(0.2, 0.75, 0.2, 1) both;
}

.logo-piece-circuit {
    clip-path: inset(12% 30% 30% 31%);
    animation:
        logoWiresRise 0.9s cubic-bezier(0.2, 0.75, 0.2, 1) 1.05s both,
        logoCircuitIdle 4.4s ease-in-out 2.1s infinite;
}

.logo-piece-tool {
    clip-path: inset(16% 4% 32% 55%);
    animation:
        logoToolSyncIn 0.92s cubic-bezier(0.2, 0.75, 0.2, 1) 1.55s both,
        logoToolIdle 4.8s ease-in-out 2.5s infinite;
}

.logo-piece-text {
    clip-path: inset(56% 8% 22% 8%);
    animation: logoTextIntro 0.85s cubic-bezier(0.2, 0.75, 0.2, 1) 2s both;
}

.auto-animated-logo::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 0;
    background:
        linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
    transform: translateX(-130%);
    animation: logoScan 1.35s ease-in-out 1.05s both;
    pointer-events: none;
    mix-blend-mode: screen;
}

.auto-animated-logo .logo-piece::selection,
.auto-animated-logo .logo-base::selection {
    background: transparent;
}

.auto-animated-logo::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 37%;
    z-index: 3;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #f97316;
    box-shadow:
        0 0 0 0 rgba(249, 115, 22, 0.45),
        0 0 18px rgba(15, 78, 168, 0.42);
    opacity: 0;
    animation: logoSyncPulse 0.72s ease-out 1.58s both;
}

.auto-animated-logo .logo-soft-mask {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background:
        radial-gradient(circle at 52% 30%, rgba(249, 115, 22, 0.11), transparent 38%),
        radial-gradient(circle at 72% 44%, rgba(15, 78, 168, 0.12), transparent 42%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.12));
    mix-blend-mode: soft-light;
}

@keyframes logoCarDriveIn {
    0% {
        transform: translate3d(-58px, 10px, 0) rotate(-5deg);
        opacity: 0;
    }
    64% {
        transform: translate3d(6px, 0, 0) rotate(1deg);
        opacity: 1;
    }
    100% {
        transform: translate3d(0, 0, 0) rotate(0deg);
        opacity: 1;
    }
}

@keyframes logoWiresRise {
    0% {
        transform: translate3d(0, 26px, 0) scaleY(0.72);
        opacity: 0;
        filter: saturate(1.2) brightness(1.05);
    }
    52% {
        opacity: 1;
        filter: saturate(1.35) brightness(1.12);
    }
    100% {
        transform: translate3d(0, 0, 0) scaleY(1);
        opacity: 1;
        filter: none;
    }
}

@keyframes logoCircuitIdle {
    0%, 100% {
        transform: translate3d(0, 0, 0) scale(1);
        opacity: 1;
    }
    50% {
        transform: translate3d(0, -2px, 0) scale(1.01);
        opacity: 0.82;
    }
}

@keyframes logoToolSyncIn {
    0% {
        transform: translate3d(38px, -16px, 0) rotate(12deg) scale(0.94);
        opacity: 0;
    }
    58% {
        transform: translate3d(-3px, 1px, 0) rotate(-2deg) scale(1.02);
        opacity: 1;
    }
    100% {
        transform: translate3d(0, 0, 0) rotate(0deg);
        opacity: 1;
    }
}

@keyframes logoToolIdle {
    0%, 100% {
        transform: translate3d(0, 0, 0) rotate(0deg);
    }
    50% {
        transform: translate3d(1px, -1px, 0) rotate(1.8deg);
    }
}

@keyframes logoTextIntro {
    from {
        transform: translate3d(0, 22px, 0);
        opacity: 0;
    }
    to {
        transform: translate3d(0, 0, 0) rotate(0deg);
        opacity: 1;
    }
}

@keyframes logoScan {
    0% {
        transform: translateX(-130%);
        opacity: 0;
    }
    48% {
        opacity: 0.8;
    }
    72%, 100% {
        transform: translateX(130%);
        opacity: 0;
    }
}

@keyframes logoSyncPulse {
    0% {
        transform: scale(0.3);
        opacity: 0;
        box-shadow:
            0 0 0 0 rgba(249, 115, 22, 0.48),
            0 0 0 rgba(15, 78, 168, 0);
    }
    36% {
        opacity: 1;
    }
    100% {
        transform: scale(1.8);
        opacity: 0;
        box-shadow:
            0 0 0 22px rgba(249, 115, 22, 0),
            0 0 28px rgba(15, 78, 168, 0.38);
    }
}

/* Clean hero logo: keep the mark sharp without white overlay lines. */
.auto-animated-logo {
    width: min(260px, 62vw);
    aspect-ratio: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    overflow: visible;
    isolation: auto;
    animation: logoCleanIntro 0.95s cubic-bezier(0.2, 0.75, 0.2, 1) both;
}

.auto-animated-logo .logo-base,
.auto-animated-logo .logo-piece,
.auto-animated-logo .logo-soft-mask {
    display: none;
}

.auto-animated-logo .logo-clean {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 1;
    transform: translate3d(0, 0, 0);
    filter: drop-shadow(0 22px 34px rgba(0, 0, 0, 0.42));
    mix-blend-mode: normal;
    animation: logoCleanIntro 0.95s cubic-bezier(0.2, 0.75, 0.2, 1) both;
}

.auto-animated-logo .logo-mark {
    display: block;
    position: static;
    inset: auto;
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.32));
}

.auto-animated-logo .logo-word {
    color: #ffffff;
    font-size: clamp(34px, 4.4vw, 46px);
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: 0;
    text-shadow: 0 5px 12px rgba(0, 0, 0, 0.32);
}

.auto-animated-logo .logo-phone {
    color: #ffffff;
    font-size: clamp(12px, 1.8vw, 15px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.auto-animated-logo::before,
.auto-animated-logo::after {
    display: none;
}

.logo-orbit,
.logo-scan-line {
    display: none;
}

.logo-orbit {
    position: absolute;
    inset: 7%;
    z-index: 1;
    border: 1px solid rgba(249, 115, 22, 0.34);
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
    animation: logoOrbitIn 1.2s ease 0.25s both, logoOrbitPulse 4.8s ease-in-out 1.5s infinite;
}

.orbit-two {
    inset: 15%;
    border-color: rgba(15, 78, 168, 0.34);
    animation-delay: 0.45s, 1.8s;
}

.logo-scan-line {
    position: absolute;
    left: -12%;
    right: -12%;
    top: 48%;
    z-index: 3;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
    transform: translateX(-120%) rotate(-12deg);
    opacity: 0;
    pointer-events: none;
    animation: logoCleanScan 1.1s ease 0.95s both;
}

@keyframes logoCleanIntro {
    from {
        transform: translate3d(0, 14px, 0) scale(0.96);
        opacity: 0;
    }
    to {
        transform: translate3d(0, 0, 0) scale(1);
        opacity: 1;
    }
}

@keyframes logoOrbitIn {
    from {
        transform: scale(0.78);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 0.72;
    }
}

@keyframes logoOrbitPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.38;
    }
    50% {
        transform: scale(1.045);
        opacity: 0.74;
    }
}

@keyframes logoCleanScan {
    0% {
        transform: translateX(-120%) rotate(-12deg);
        opacity: 0;
    }
    42% {
        opacity: 0.9;
    }
    100% {
        transform: translateX(120%) rotate(-12deg);
        opacity: 0;
    }
}

.auto-eyebrow,
.auto-section-kicker {
    margin: 0 0 13px;
    color: var(--brand-orange);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.auto-hero h1 {
    margin: 0;
    max-width: 760px;
    color: #fff;
    font-size: clamp(46px, 7.8vw, 108px);
    line-height: 0.94;
    letter-spacing: 0;
}

.auto-hero-lead {
    max-width: 620px;
    margin: 24px 0 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: clamp(16px, 1.8vw, 20px);
    line-height: 1.7;
}

.auto-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.auto-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border: 1px solid transparent;
    border-radius: 0;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-decoration: none;
    text-transform: uppercase;
    cursor: pointer;
}

.auto-btn.primary {
    background: var(--brand-gradient);
    color: #fff;
    border-color: transparent;
}

.auto-btn.light {
    background: rgba(255, 255, 255, 0.11);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.34);
}

.auto-hero-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    width: min(780px, 100%);
    margin-top: 48px;
    background: rgba(255, 255, 255, 0.22);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

.auto-hero-facts div {
    padding: 20px;
    background: rgba(8, 11, 16, 0.7);
    backdrop-filter: blur(12px);
}

.auto-hero-facts strong,
.auto-open-hours strong {
    display: block;
    color: #fff;
    font-size: 18px;
}

.auto-hero-progress {
    position: absolute;
    left: clamp(18px, 5vw, 72px);
    right: clamp(18px, 5vw, 72px);
    bottom: 0;
    z-index: 4;
    height: 3px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.18);
}

.auto-hero-progress::before {
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    background: var(--brand-gradient);
    transform-origin: left;
    animation: autoHeroProgress 6s linear infinite;
}

@keyframes autoHeroProgress {
    from {
        transform: scaleX(0);
    }
    to {
        transform: scaleX(1);
    }
}

.auto-carousel-strip {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: min(1180px, calc(100% - 36px));
    margin: -48px auto 0;
    background: #fff;
    border: 1px solid #d9dee7;
    box-shadow: 0 30px 90px rgba(17, 24, 39, 0.16);
}

.auto-carousel-strip div {
    min-height: 150px;
    padding: 24px;
    border-right: 1px solid #d9dee7;
}

.auto-carousel-strip div:last-child {
    border-right: 0;
}

.auto-carousel-strip span {
    color: var(--brand-orange);
    font-size: 12px;
    font-weight: 950;
    letter-spacing: 0.14em;
}

.auto-carousel-strip strong {
    display: block;
    margin-top: 28px;
    color: #111827;
    font-size: 20px;
}

.auto-carousel-strip small {
    display: block;
    margin-top: 7px;
    color: #667085;
    line-height: 1.55;
}

.auto-hero-facts span,
.auto-open-hours span {
    display: block;
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.66);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.auto-section,
.auto-services,
.auto-work,
.auto-booking-section,
.auto-footer {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 36px));
    margin: 0 auto;
}

.auto-intro {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1fr);
    gap: 56px;
    padding: 112px 0 42px;
}

.auto-intro::before,
.auto-mechanic-section::before,
.auto-booking-section::before {
    content: "";
    position: absolute;
    inset: auto auto 18px -44px;
    width: 180px;
    height: 180px;
    border: 1px solid rgba(15, 78, 168, 0.12);
    background:
        linear-gradient(90deg, transparent 18px, rgba(15, 78, 168, 0.08) 18px 19px, transparent 19px),
        linear-gradient(0deg, transparent 18px, rgba(249, 115, 22, 0.08) 18px 19px, transparent 19px);
    opacity: 0.72;
    transform: rotate(12deg);
    animation: sectionChipFloat 10s ease-in-out infinite;
}

.auto-intro h2,
.auto-work h2,
.auto-booking-copy h2 {
    margin: 0;
    font-size: clamp(30px, 4vw, 52px);
    line-height: 1.05;
    letter-spacing: 0;
}

.auto-intro > p,
.auto-booking-copy > p {
    margin: 34px 0 0;
    color: #4b5563;
    font-size: 17px;
    line-height: 1.8;
}

.auto-services {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 1px solid #d9dee7;
    border-left: 1px solid #d9dee7;
    box-shadow: 0 26px 80px rgba(17, 24, 39, 0.08);
}

.auto-services article {
    position: relative;
    overflow: hidden;
    min-height: 260px;
    padding: 30px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(250, 252, 255, 0.94));
    border-right: 1px solid #d9dee7;
    border-bottom: 1px solid #d9dee7;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.auto-services article::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: 0;
    height: 3px;
    background: var(--brand-gradient);
    transition: right 220ms ease;
}

.auto-services article:hover {
    z-index: 2;
    transform: translateY(-6px);
    border-color: rgba(249, 115, 22, 0.28);
    box-shadow: 0 22px 54px rgba(17, 24, 39, 0.14);
}

.auto-services article:hover::after {
    right: 0;
}

.auto-services span {
    color: var(--brand-orange);
    font-weight: 900;
}

.auto-services h3 {
    margin: 48px 0 12px;
    font-size: 22px;
}

.auto-services .service-coming-soon {
    background:
        radial-gradient(circle at 84% 18%, rgba(249, 115, 22, 0.18), transparent 34%),
        linear-gradient(135deg, #fff 0%, #f7f4ff 100%);
}

.auto-services .service-coming-soon span {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 10px;
    color: #fff;
    background: var(--brand-gradient);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.auto-services p,
.auto-work li {
    color: #5b6472;
    line-height: 1.7;
}

.auto-tuning-section {
    position: relative;
    overflow: hidden;
    width: min(1180px, calc(100% - 36px));
    margin: 34px auto 0;
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 34px;
    padding: clamp(28px, 4vw, 48px);
    color: #fff;
    background:
        radial-gradient(circle at 80% 20%, rgba(249, 115, 22, 0.22), transparent 28%),
        radial-gradient(circle at 28% 76%, rgba(15, 78, 168, 0.22), transparent 32%),
        linear-gradient(135deg, #090d16 0%, #161026 52%, #071426 100%);
}

.auto-tuning-section::before {
    content: "";
    position: absolute;
    inset: -40% -20%;
    background:
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 70px),
        linear-gradient(115deg, transparent 0 42%, rgba(45, 212, 191, 0.12) 42.4% 42.8%, transparent 43.2%);
    animation: tuningGridMove 16s linear infinite;
    pointer-events: none;
}

.auto-tuning-section > * {
    position: relative;
    z-index: 1;
}

.auto-tuning-section h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(30px, 4vw, 50px);
    line-height: 1.05;
    letter-spacing: 0;
}

.auto-tuning-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    background: rgba(255, 255, 255, 0.16);
}

.auto-tuning-grid article {
    position: relative;
    overflow: hidden;
    min-height: 170px;
    padding: 22px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
}

.auto-tuning-grid article::after {
    content: "";
    position: absolute;
    left: -40%;
    right: -40%;
    top: -1px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.72), transparent);
    transform: translateX(-100%);
    animation: cardLightPass 5.8s ease-in-out infinite;
}

.auto-tuning-grid strong {
    display: block;
    color: #fff;
    font-size: 18px;
}

.auto-tuning-grid span {
    display: block;
    margin-top: 14px;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.65;
}

.auto-mechanic-section {
    position: relative;
    overflow: hidden;
    width: min(1180px, calc(100% - 36px));
    margin: 34px auto 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 0.88fr);
    gap: 34px;
    padding: clamp(30px, 4vw, 54px);
    background:
        radial-gradient(circle at 92% 14%, rgba(249, 115, 22, 0.11), transparent 24%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.96));
    border: 1px solid #d9dee7;
    box-shadow: 0 22px 70px rgba(17, 24, 39, 0.08);
}

.auto-mechanic-copy h2 {
    margin: 0;
    font-size: clamp(30px, 4vw, 50px);
    line-height: 1.05;
    letter-spacing: 0;
}

.auto-mechanic-copy p:last-child {
    max-width: 680px;
    margin: 20px 0 0;
    color: #5b6472;
    font-size: 16px;
    line-height: 1.75;
}

.auto-mechanic-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    align-content: start;
}

.auto-mechanic-list span {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    min-height: 54px;
    padding: 13px 15px;
    color: #111827;
    font-weight: 850;
    background: #f8fafc;
    border-left: 4px solid var(--brand-orange);
    transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.auto-mechanic-list span:hover {
    transform: translateX(5px);
    background: #fff;
    box-shadow: 0 12px 28px rgba(17, 24, 39, 0.1);
}

.auto-work {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
    gap: 0;
    margin-top: 92px;
    background: #10151f;
    color: #fff;
}

.auto-work::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(120deg, transparent 0 34%, rgba(249, 115, 22, 0.08) 34.4% 34.8%, transparent 35.2%),
        radial-gradient(circle at 72% 28%, rgba(45, 212, 191, 0.08), transparent 26%);
    animation: workLightSweep 9s ease-in-out infinite;
    pointer-events: none;
}

.auto-work > * {
    position: relative;
    z-index: 1;
}

.auto-work-image {
    position: relative;
    min-height: 520px;
    background:
        linear-gradient(135deg, rgba(17, 24, 39, 0.1), rgba(17, 24, 39, 0.76)),
        url("logo-hero-mark.png") center / min(360px, 72%) no-repeat,
        linear-gradient(135deg, #1f2937, #070b12);
}

.auto-work-image::after {
    content: "";
    position: absolute;
    inset: 16%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background:
        linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent),
        repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 18px);
    opacity: 0.38;
    animation: workDiagnosticScan 6s ease-in-out infinite;
}

.auto-play-card {
    position: absolute;
    left: 34px;
    bottom: 34px;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    color: #fff;
    text-decoration: none;
    background: rgba(8, 11, 16, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.24);
    backdrop-filter: blur(14px);
}

.auto-play-card span {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--brand-gradient);
    position: relative;
}

.auto-play-card span::after {
    content: "";
    position: absolute;
    left: 18px;
    top: 14px;
    border-left: 14px solid #fff;
    border-top: 9px solid transparent;
    border-bottom: 9px solid transparent;
}

.auto-play-card strong {
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.auto-work-copy {
    padding: clamp(36px, 5vw, 70px);
}

.auto-work-copy h2 {
    color: #fff;
}

.auto-work-copy ul {
    display: grid;
    gap: 16px;
    margin: 34px 0 0;
    padding: 0;
    list-style: none;
}

.auto-work-copy li {
    position: relative;
    padding-left: 32px;
    color: rgba(255, 255, 255, 0.75);
}

.auto-work-copy li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 9px;
    width: 12px;
    height: 12px;
    background: var(--brand-gradient);
}

.auto-booking-section {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 42px;
    padding: 100px 0 88px;
}

.auto-open-hours {
    display: grid;
    gap: 10px;
    margin-top: 28px;
}

.auto-open-hours div {
    padding: 16px 18px;
    background: #111827;
}

.auto-open-hours strong {
    font-size: 16px;
}

.auto-booking-card {
    position: relative;
    overflow: hidden;
    padding: clamp(20px, 3vw, 34px);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 252, 255, 0.96));
    border: 1px solid #d9dee7;
    box-shadow: 0 24px 80px rgba(17, 24, 39, 0.12);
}

.auto-booking-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: var(--brand-gradient);
}

@keyframes sectionChipFloat {
    0%, 100% {
        transform: rotate(12deg) translate3d(0, 0, 0);
    }
    50% {
        transform: rotate(17deg) translate3d(12px, -14px, 0);
    }
}

@keyframes tuningGridMove {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-70px);
    }
}

@keyframes cardLightPass {
    0%, 48%, 100% {
        transform: translateX(-100%);
        opacity: 0;
    }
    58% {
        opacity: 0.8;
    }
    78% {
        transform: translateX(100%);
        opacity: 0;
    }
}

@keyframes workLightSweep {
    0%, 100% {
        opacity: 0.42;
        transform: translateX(0);
    }
    50% {
        opacity: 0.78;
        transform: translateX(-24px);
    }
}

@keyframes workDiagnosticScan {
    0%, 100% {
        transform: translateX(-22%);
        opacity: 0;
    }
    35%, 65% {
        opacity: 0.5;
    }
    88% {
        transform: translateX(22%);
        opacity: 0;
    }
}

.auto-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.public-auto-site .public-booking-form label {
    color: #111827;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.public-auto-site input,
.public-auto-site select,
.public-auto-site textarea {
    margin-top: 7px;
    border-radius: 0;
    border: 1px solid #cfd6e0;
    background: #f9fafb;
}

.public-auto-site input:focus,
.public-auto-site select:focus,
.public-auto-site textarea:focus {
    outline: 2px solid rgba(249, 115, 22, 0.2);
    border-color: var(--brand-orange);
}

.remember-login-option {
    display: flex !important;
    align-items: center;
    gap: 10px;
    margin: 8px 0 14px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
}

.remember-login-option input {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--primary);
}

.auto-slot-grid.slot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(82px, 1fr));
    gap: 8px;
    margin-top: 10px;
}

.public-auto-site .slot-option span {
    border-radius: 0;
}

.public-auto-site .slot-option input:checked + span {
    background: #111827;
    border-color: #111827;
}

.auto-submit {
    width: 100%;
}

.auto-footer {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 28px 0 42px;
    border-top: 1px solid #d9dee7;
}

.auto-footer-mark {
    width: 128px;
    height: 74px;
    object-fit: contain;
    background: transparent;
    padding: 0;
    filter: drop-shadow(0 10px 18px rgba(20, 32, 51, 0.12));
}

.auto-footer div {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.auto-footer strong {
    font-size: 18px;
    letter-spacing: 0;
    color: #111827;
}

.auto-footer small {
    color: #111827;
    font-size: 12px;
    font-weight: 850;
    letter-spacing: 0;
}

.auto-footer span {
    color: #667085;
}

.auto-footer a {
    margin-left: auto;
}

@media (max-width: 980px) {
    .auto-topbar {
        position: sticky;
        grid-template-columns: 1fr auto auto;
        gap: 14px;
        background: rgba(255, 255, 255, 0.96);
    }

    .auto-nav {
        grid-column: 1 / -1;
        justify-content: flex-start;
        overflow-x: auto;
    }

    .auto-hero {
        min-height: 780px;
        padding-top: 88px;
    }

    .auto-hero-slider .motion-garage {
        left: 24%;
        right: -28%;
        bottom: 18%;
        opacity: 0.48;
    }

    .auto-hero-slider .motion-car {
        right: -9vw;
        bottom: 92px;
        width: 58vw;
        opacity: 0.62;
    }

    .auto-hero-slider .motion-scan {
        right: -5vw;
        width: 62vw;
        opacity: 0.52;
    }

    .auto-intro,
    .auto-tuning-section,
    .auto-mechanic-section,
    .auto-work,
    .auto-booking-section {
        grid-template-columns: 1fr;
    }

    .auto-services,
    .auto-tuning-grid,
    .auto-carousel-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .auto-hero-slider .motion-layer {
        inset: -6%;
    }

    .auto-hero-slider .motion-line {
        width: 60vw;
        right: -24vw;
    }

    .auto-phone {
        display: none;
    }

    .auto-brand {
        gap: 7px;
    }

    .auto-brand-mark {
        width: 58px;
        height: 32px;
    }

    .auto-brand-text strong {
        font-size: 13px;
    }

    .auto-brand-text small {
        font-size: 8px;
    }

    .auto-hero {
        min-height: 680px;
        padding-left: 18px;
        padding-right: 18px;
    }

    .auto-hero-slider .motion-garage,
    .auto-hero-slider .motion-road {
        left: 0;
        right: -50%;
        opacity: 0.34;
    }

    .auto-hero-slider .motion-car {
        right: -28vw;
        bottom: 76px;
        width: 86vw;
        opacity: 0.36;
    }

    .auto-hero-slider .motion-scan,
    .auto-hero-slider .motion-chip,
    .auto-hero-slider .motion-spark {
        display: none;
    }

    .auto-hero-facts,
    .auto-carousel-strip,
    .auto-tuning-grid,
    .auto-mechanic-list,
    .auto-services,
    .auto-form-grid {
        grid-template-columns: 1fr;
    }

    .auto-carousel-strip div {
        border-right: 0;
        border-bottom: 1px solid #d9dee7;
    }

    .auto-hero-actions .auto-btn {
        width: 100%;
    }

    .auto-services article {
        min-height: auto;
    }

    .auto-work-image {
        min-height: 320px;
    }

    .auto-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .auto-footer a {
        margin-left: 0;
    }

    .site-motion-bg {
        opacity: 0.55;
    }

    .hero-real-car {
        width: 240px;
        height: 72px;
        opacity: 0.12;
        animation-duration: 34s;
    }

    .auto-intro::before,
    .auto-mechanic-section::before,
    .auto-booking-section::before {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-motion-grid,
    .site-motion-beam,
    .site-motion-node,
    .hero-real-car,
    .auto-intro::before,
    .auto-mechanic-section::before,
    .auto-booking-section::before,
    .auto-tuning-section::before,
    .auto-tuning-grid article::after,
    .auto-work::after,
    .auto-work-image::after,
    .auto-hero-slider .motion-layer,
    .auto-hero-slider .motion-line,
    .auto-hero-slider .motion-garage,
    .auto-hero-slider .motion-road,
    .auto-hero-slider .motion-car,
    .auto-hero-slider .motion-scan,
    .auto-hero-slider .motion-chip,
    .auto-hero-slider .motion-spark,
    .auto-hero-progress::before,
    .auto-animated-logo {
        animation: none !important;
    }
}

* { box-sizing: border-box; }

html { min-height: 100%; }

body {
    margin: 0;
    min-height: 100%;
    font-family: "Inter", "Segoe UI", Arial, sans-serif;
    background: linear-gradient(180deg, #f7f9fc 0%, #eef2f6 48%, #e8edf3 100%);
    color: var(--text);
    font-size: 14px;
    line-height: 1.45;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

.top-nav-bar {
    position: relative;
    z-index: 20;
    min-height: 66px;
    padding: 0 34px;
    display: flex;
    align-items: center;
    gap: 26px;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 4px 18px rgba(20, 32, 51, 0.05);
    backdrop-filter: blur(14px);
}

.brand {
    display: flex;
    align-items: center;
    min-width: 128px;
    color: var(--text);
}

.brand strong {
    font-size: 18px;
    font-weight: 800;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
    min-width: 0;
    overflow-x: auto;
}

.nav-menu a {
    padding: 9px 13px;
    border-radius: 7px;
    color: var(--muted);
    font-weight: 650;
    white-space: nowrap;
}

.nav-menu a:hover {
    background: var(--panel-soft);
    color: var(--text);
}

.nav-menu a.active {
    background: #eaf0ff;
    color: var(--primary);
}

.user-actions {
    display: flex;
    align-items: center;
    gap: 9px;
    flex: 0 0 auto;
    min-width: 0;
}

.notification-center {
    position: relative;
}

.notification-toggle {
    position: relative;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--text);
    cursor: pointer;
}

.notification-toggle:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.notification-bell {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid currentColor;
    border-radius: 50% 50% 45% 45%;
    font-size: 0;
}

.notification-bell::after {
    content: "";
    position: absolute;
    width: 6px;
    height: 2px;
    bottom: 8px;
    border-radius: 999px;
    background: currentColor;
}

.notification-badge {
    position: absolute;
    top: -6px;
    right: -5px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #dc2626;
    color: #fff;
    font-size: 10px;
    line-height: 18px;
    font-weight: 900;
    text-align: center;
}

.notification-panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 85;
    width: min(390px, 92vw);
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.notification-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
}

.notification-panel-head strong {
    font-size: 13px;
    font-weight: 900;
}

.notification-panel-head button {
    border: 0;
    background: transparent;
    color: var(--primary);
    font: inherit;
    font-size: 12px;
    font-weight: 850;
    cursor: pointer;
}

.notification-list {
    max-height: 420px;
    overflow: auto;
    padding: 6px;
}

.notification-item {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 4px 10px;
    padding: 11px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--text);
    text-align: left;
    cursor: pointer;
}

.notification-item:hover {
    background: var(--panel-soft);
}

.notification-item.is-unread {
    background: #eff6ff;
}

.notification-item span {
    font-size: 12px;
    font-weight: 900;
}

.notification-item strong {
    grid-column: 1 / -1;
    color: var(--muted);
    font-size: 12px;
    font-weight: 650;
}

.notification-item small {
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
}

.notification-empty {
    padding: 16px;
    color: var(--muted);
    text-align: center;
}

.import-message-area {
    margin: -6px 0 14px;
}

.import-message-bar {
    width: 100%;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 8px 12px;
    align-items: center;
    padding: 12px 14px;
    border: 1px solid #bfdbfe;
    border-left: 5px solid var(--primary);
    border-radius: 8px;
    background: #eff6ff;
    color: var(--text);
    text-align: left;
    box-shadow: var(--shadow-soft);
    cursor: pointer;
}

.import-message-bar span {
    padding: 4px 8px;
    border-radius: 999px;
    background: #dbeafe;
    color: var(--primary);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.import-message-bar strong {
    font-size: 13px;
    font-weight: 900;
}

.import-message-bar small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.import-web-banner {
    position: fixed;
    top: 82px;
    right: 22px;
    z-index: 130;
    width: min(430px, calc(100vw - 36px));
    display: grid;
    gap: 3px;
    padding: 15px 16px;
    border: 1px solid #bfdbfe;
    border-left: 5px solid var(--primary);
    border-radius: 8px;
    background: #fff;
    color: var(--text);
    text-align: left;
    box-shadow: var(--shadow);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.import-web-banner.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.import-web-banner span {
    color: var(--primary);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.import-web-banner strong {
    font-size: 14px;
    font-weight: 900;
}

.import-web-banner small {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.35;
}

.global-search {
    position: relative;
    width: min(360px, 28vw);
}

.global-search input {
    width: 100%;
    min-height: 38px;
    margin: 0;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--text);
    font: inherit;
    font-weight: 650;
}

.global-search input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(31, 94, 255, 0.12);
}

.global-search-results {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 80;
    width: min(520px, 92vw);
    max-height: 560px;
    overflow: auto;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
}

.global-search-result {
    position: relative;
    width: 100%;
    display: grid;
    grid-template-columns: 72px 1fr auto;
    gap: 5px 10px;
    align-items: center;
    padding: 10px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--text);
    text-align: left;
    cursor: pointer;
}

.global-search-result:hover {
    background: var(--panel-soft);
}

.global-search-result span {
    grid-row: span 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    border-radius: 999px;
    background: #eaf0ff;
    color: var(--primary);
    font-size: 10px;
    font-weight: 850;
    text-transform: uppercase;
}

.global-search-result strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
}

.global-search-result small {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--muted);
}

.global-search-result em {
    grid-row: span 2;
    color: var(--muted);
    font-size: 11px;
    font-style: normal;
    font-weight: 800;
}

.global-search-empty {
    padding: 14px;
    color: var(--muted);
    text-align: center;
}

.container {
    width: min(1480px, calc(100% - 48px));
    margin: 0 auto;
    padding: 24px 0 48px;
}

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 4px 0 18px;
}

.page-header h1 {
    margin: 0;
    font-size: 24px;
    line-height: 1.2;
    font-weight: 800;
}

.card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow-soft);
    margin-bottom: 18px;
}

.card-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    color: var(--text);
    font-size: 16px;
    font-weight: 800;
}

.service-checklist-card {
    border-color: #cfe0ff;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.service-checklist-form {
    display: grid;
    gap: 14px;
}

.service-checklist-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    gap: 10px;
}

.service-check-item {
    min-height: 74px;
    display: grid;
    gap: 8px;
    padding: 11px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.service-check-item.is-done {
    border-color: #9fe0b8;
    background: #f0fdf4;
}

.service-check-main {
    display: flex;
    align-items: center;
    gap: 9px;
    font-weight: 850;
}

.service-check-main input {
    width: 18px;
    height: 18px;
    accent-color: var(--success);
}

.service-check-item > input {
    width: 100%;
    min-height: 34px;
    border: 1px solid var(--line);
    border-radius: 7px;
    padding: 7px 9px;
    background: #fff;
}

.grid-2 {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.6fr);
    gap: 18px;
}

.two-col {
    display: grid;
    grid-template-columns: repeat(2, minmax(320px, 1fr));
    gap: 18px;
}

.panel {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow-soft);
}

.panel h2 {
    margin: 0 0 16px;
    font-size: 18px;
}

.stack-form {
    display: grid;
    gap: 12px;
}

.notice {
    margin-bottom: 14px;
    padding: 10px 12px;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    background: #f0fdf4;
    color: #166534;
    font-weight: 750;
}

.notice small {
    display: block;
    margin-top: 3px;
    color: inherit;
    font-size: 12px;
    font-weight: 650;
    opacity: 0.82;
}

.notice.error {
    border-color: #fecaca;
    background: #fef2f2;
    color: #991b1b;
}

.btn-auto-whatsapp {
    border: 0;
    background: linear-gradient(135deg, #f97316 0%, #b83280 55%, #5b21b6 100%);
    color: #fff !important;
    box-shadow: 0 10px 22px rgba(184, 50, 128, 0.22);
}

.btn-app-whatsapp {
    border: 0;
    background: linear-gradient(135deg, #075e54 0%, #128c7e 52%, #25d366 100%);
    color: #fff !important;
    box-shadow: 0 10px 22px rgba(18, 140, 126, 0.22);
}

.btn-app-whatsapp span {
    display: inline-flex;
    align-items: center;
    min-height: 18px;
    padding: 2px 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
    font-size: 10px;
    font-weight: 950;
    letter-spacing: 0;
}

.btn-auto-whatsapp span {
    display: inline-flex;
    align-items: center;
    min-height: 18px;
    padding: 2px 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    font-size: 10px;
    font-weight: 950;
    letter-spacing: 0;
}

.btn-auto-whatsapp:hover,
.btn-app-whatsapp:hover {
    filter: brightness(0.98);
    transform: translateY(-1px);
}

.btn-manual-whatsapp,
.btn-ready-whatsapp {
    border: 0;
    color: #fff !important;
}

.btn-manual-whatsapp {
    background: #25d366;
}

.btn-ready-whatsapp {
    background: #16a34a;
}

.bookmarklet-card {
    display: grid;
    gap: 14px;
}

.bookmarklet-link {
    width: fit-content;
    cursor: grab;
}

.bookmarklet-steps {
    display: grid;
    gap: 10px;
}

.bookmarklet-steps div {
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 10px;
    align-items: center;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel-soft);
}

.bookmarklet-steps strong {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #eaf0ff;
    color: var(--primary);
}

.public-booking-page {
    min-height: 100vh;
    background:
        linear-gradient(90deg, rgba(10, 18, 32, 0.82) 0%, rgba(10, 18, 32, 0.55) 42%, rgba(246, 248, 251, 0.96) 72%),
        url("https://images.unsplash.com/photo-1487754180451-c456f719a1fc?auto=format&fit=crop&w=2200&q=82") center / cover fixed;
}

.public-booking-shell {
    width: min(1280px, calc(100% - 44px));
    min-height: 100vh;
    margin: 0 auto;
    padding: 34px 0;
    display: flex;
    align-items: center;
}

.booking-premium-layout {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(360px, 0.85fr) minmax(520px, 1fr);
    gap: 34px;
    align-items: center;
}

.booking-premium-hero {
    min-height: 680px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 28px 0;
    color: #fff;
}

.booking-logo {
    width: min(190px, 42vw);
    height: auto;
    display: block;
    border-radius: 22px;
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.36);
}

.booking-hero-copy {
    max-width: 620px;
}

.booking-hero-copy h1 {
    margin: 0 0 14px;
    max-width: 620px;
    font-size: 58px;
    line-height: 1.02;
    font-weight: 950;
}

.booking-hero-copy p {
    max-width: 520px;
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 17px;
}

.booking-hero-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    max-width: 680px;
}

.booking-hero-facts div {
    padding: 13px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
}

.booking-hero-facts span {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    font-size: 11px;
    font-weight: 850;
    text-transform: uppercase;
}

.booking-hero-facts strong {
    display: block;
    margin-top: 4px;
    font-size: 14px;
    font-weight: 950;
}

.booking-form-panel {
    width: 100%;
}

.public-booking-card {
    padding: 24px;
    border: 1px solid rgba(221, 229, 238, 0.9);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 24px 70px rgba(10, 18, 32, 0.22);
    backdrop-filter: blur(16px);
}

.booking-form-head {
    margin-bottom: 16px;
}

.booking-form-head span {
    color: var(--primary);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.booking-form-head h2 {
    margin: 3px 0 0;
    font-size: 22px;
}

.install-hint {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
    padding: 12px 14px;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    background: #eff6ff;
    color: #1e3a8a;
}

.install-hint strong {
    white-space: nowrap;
    font-weight: 900;
}

.install-hint span {
    color: #315795;
    font-size: 13px;
    font-weight: 700;
}

.public-booking-form {
    display: grid;
    gap: 16px;
}

.public-booking-form textarea {
    resize: vertical;
}

.slot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(82px, 1fr));
    gap: 8px;
    margin-top: 8px;
}

.slot-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.slot-option span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel-soft);
    color: var(--text);
    font-weight: 850;
    cursor: pointer;
}

.slot-option input:checked + span {
    border-color: var(--primary);
    background: #eaf0ff;
    color: var(--primary);
}

.appointment-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.appointment-tabs a {
    padding: 9px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--muted);
    font-weight: 800;
}

.appointment-tabs a.active {
    border-color: var(--primary);
    background: #eaf0ff;
    color: var(--primary);
}

.appointment-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.appointment-actions form {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.appointment-status-pending { background: #fef3c7; color: #92400e; }
.appointment-status-confirmed { background: #dbeafe; color: #1e40af; }
.appointment-status-done { background: #dcfce7; color: #166534; }
.appointment-status-cancelled { background: #fee2e2; color: #991b1b; }

.calendar-hero .ops-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.calendar-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(160px, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.calendar-summary-card {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.calendar-summary-card.primary {
    border-color: #bcd0ff;
    background: linear-gradient(135deg, #ffffff 0%, #eef4ff 100%);
}

.calendar-summary-card span {
    display: block;
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.calendar-summary-card strong {
    display: block;
    margin-top: 6px;
    font-size: 28px;
    line-height: 1;
    font-weight: 950;
}

.calendar-summary-card small {
    display: block;
    margin-top: 7px;
    color: var(--muted);
    font-weight: 750;
}

.appointment-calendar-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(330px, 420px);
    gap: 18px;
    align-items: start;
}

.appointment-calendar-card {
    overflow: hidden;
}

.calendar-toolbar {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    margin-bottom: 14px;
}

.calendar-toolbar > div {
    text-align: center;
}

.calendar-toolbar span {
    display: block;
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.calendar-toolbar strong {
    display: block;
    margin-top: 2px;
    font-size: 20px;
    font-weight: 950;
}

.appointment-calendar {
    display: grid;
    grid-template-columns: repeat(7, minmax(96px, 1fr));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: auto;
    background: var(--line);
}

.calendar-weekday {
    min-width: 96px;
    padding: 9px 10px;
    background: #f8fafc;
    color: var(--muted);
    font-size: 11px;
    font-weight: 950;
    text-transform: uppercase;
}

.calendar-day {
    min-width: 96px;
    min-height: 136px;
    padding: 8px;
    background: #fff;
    cursor: pointer;
    transition: background .16s ease, box-shadow .16s ease;
}

.calendar-day:hover {
    background: #fbfdff;
    box-shadow: inset 0 0 0 1px #dbeafe;
}

.calendar-day.is-muted {
    background: #f8fafc;
}

.calendar-day.is-muted .calendar-day-head span {
    color: #a0aec0;
}

.calendar-day.is-today {
    box-shadow: inset 0 0 0 2px var(--primary);
}

.calendar-day-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 24px;
    margin-bottom: 7px;
}

.calendar-day-head span {
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--text);
    font-weight: 950;
}

.calendar-day.is-today .calendar-day-head span {
    background: var(--primary);
    color: #fff;
}

.calendar-day-head strong {
    min-width: 21px;
    height: 21px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    border-radius: 999px;
    background: #eaf0ff;
    color: var(--primary);
    font-size: 11px;
    font-weight: 950;
}

.calendar-events {
    display: grid;
    gap: 6px;
}

.calendar-event {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 1px 6px;
    align-items: center;
    padding: 5px 6px;
    border: 1px solid transparent;
    border-radius: 7px;
    color: var(--text);
}

.calendar-event:hover {
    color: var(--text);
    transform: translateY(-1px);
}

.calendar-event strong {
    font-size: 10px;
    font-weight: 950;
}

.calendar-event span,
.calendar-event small {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.calendar-event span {
    font-size: 11px;
    font-weight: 900;
}

.calendar-event small {
    grid-column: 2;
    color: inherit;
    opacity: 0.78;
    font-size: 10px;
}

.calendar-more {
    padding: 4px 7px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
}

.upcoming-appointments-card {
    position: sticky;
    top: 86px;
}

.upcoming-appointment-list {
    display: grid;
    gap: 10px;
    max-height: 720px;
    overflow: auto;
    padding-right: 2px;
}

.upcoming-appointment {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
}

.upcoming-date {
    padding-right: 10px;
    border-right: 1px solid var(--line);
}

.upcoming-date strong {
    display: block;
    color: var(--text);
    font-size: 12px;
    font-weight: 950;
}

.upcoming-date span {
    display: inline-flex;
    margin-top: 6px;
    padding: 4px 7px;
    border-radius: 999px;
    background: #eaf0ff;
    color: var(--primary);
    font-size: 12px;
    font-weight: 950;
}

.upcoming-body {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.upcoming-body strong,
.upcoming-body span,
.upcoming-body small,
.upcoming-body em {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.upcoming-body strong {
    font-size: 14px;
    font-weight: 950;
}

.upcoming-body span,
.upcoming-body small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 750;
}

.upcoming-body em {
    color: #705514;
    font-size: 12px;
    font-style: normal;
}

.upcoming-actions {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    align-items: center;
    justify-content: flex-end;
    padding-top: 8px;
    border-top: 1px solid var(--line);
}

.upcoming-actions form {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 0;
}

.btn-small {
    min-height: 30px;
    padding: 6px 9px !important;
    border-radius: 7px !important;
    font-size: 12px !important;
}

.calendar-empty {
    padding: 18px;
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius);
    background: var(--panel-soft);
    color: var(--muted);
    text-align: center;
    font-weight: 800;
}

.appointment-table-card {
    margin-top: 18px;
}

.manual-appointment-card {
    margin-bottom: 18px;
}

.manual-appointment-inline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.manual-appointment-inline div {
    display: grid;
    gap: 4px;
}

.manual-appointment-inline strong {
    color: var(--text);
    font-size: 16px;
    font-weight: 950;
}

.manual-appointment-inline span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 750;
}

.manual-appointment-form {
    display: grid;
    grid-template-columns: 1.15fr 0.8fr 150px 120px 1fr 0.75fr 0.9fr 1fr auto;
    gap: 10px;
    align-items: end;
}

.manual-appointment-form label {
    min-width: 0;
}

.manual-appointment-form input,
.manual-appointment-form textarea {
    min-height: 38px;
}

.manual-appointment-note {
    grid-column: span 2;
}

.manual-appointment-form button {
    min-height: 38px;
    white-space: nowrap;
}

.appointment-modal {
    width: min(760px, 100%);
}

.appointment-modal .manual-appointment-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 14px;
}

.appointment-modal .manual-appointment-note,
.appointment-modal .manual-appointment-form button {
    grid-column: 1 / -1;
}

.appointment-modal .manual-appointment-form button {
    justify-self: end;
    min-width: 190px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(180px, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.dashboard-top,
.workbench-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 18px;
    align-items: start;
}

.ops-hero {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 16px;
    padding: 24px;
    border: 1px solid #c9d8ea;
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(255,255,255,0.96), rgba(241,246,252,0.94)),
        linear-gradient(90deg, rgba(31,94,255,0.13), rgba(15,159,142,0.12));
    box-shadow: var(--shadow-soft);
}

.ops-hero::after {
    content: "";
    position: absolute;
    inset: auto -80px -120px auto;
    width: 280px;
    height: 280px;
    border: 1px solid rgba(31, 94, 255, 0.12);
    border-radius: 50%;
}

.ops-hero > * {
    position: relative;
    z-index: 1;
}

.ops-hero span {
    display: block;
    color: var(--primary);
    font-size: 11px;
    font-weight: 950;
    text-transform: uppercase;
}

.ops-hero h2 {
    margin: 4px 0 5px;
    font-size: 30px;
    line-height: 1.12;
    font-weight: 950;
}

.ops-hero p {
    max-width: 620px;
    margin: 0;
    color: var(--muted);
    font-size: 15px;
    font-weight: 650;
}

.ops-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.ops-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(180px, 1fr));
    gap: 14px;
    margin-bottom: 16px;
}

.ops-kpi-card {
    min-height: 118px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.ops-kpi-card.primary {
    border-color: #bcd0ff;
    background: linear-gradient(135deg, #ffffff 0%, #eef4ff 100%);
}

.ops-kpi-card span,
.ops-command span {
    display: block;
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.ops-kpi-card strong {
    display: block;
    margin-top: 8px;
    font-size: 28px;
    line-height: 1.05;
    font-weight: 950;
}

.ops-kpi-card small {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-weight: 700;
}

.ops-command-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(160px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.ops-command {
    min-height: 74px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--text);
    box-shadow: var(--shadow-soft);
}

.ops-command:hover {
    border-color: #b7c4d2;
    color: var(--text);
    transform: translateY(-1px);
}

.ops-command.primary {
    border-color: var(--primary);
    background: linear-gradient(180deg, #2d6bff, var(--primary));
    color: #fff;
}

.ops-command.primary span {
    color: rgba(255,255,255,0.78);
}

.ops-command strong {
    display: block;
    margin-top: 6px;
    font-size: 16px;
    font-weight: 900;
}

.dashboard-search-card {
    padding: 16px;
}

.premium-search {
    margin-bottom: 12px;
}

.workbench-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.workbench-hero h2 {
    margin: 0 0 4px;
    font-size: 22px;
}

.workbench-hero p {
    margin: 0;
    color: var(--muted);
}

.workbench-side {
    display: grid;
    gap: 18px;
}

.dashboard-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 10px;
    margin-bottom: 14px;
}

.dashboard-section-title {
    margin: 14px 0 8px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 850;
    text-transform: uppercase;
}

.dashboard-table {
    max-height: 360px;
}

.dashboard-table.compact {
    max-height: 300px;
}

.quick-action-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.quick-action-list.single {
    grid-template-columns: 1fr;
}

.dashboard-chart-card {
    padding-bottom: 14px;
}

.dashboard-chart-card canvas {
    max-height: 128px;
}

.ops-side-card {
    margin-bottom: 0;
}

.mini-link {
    color: var(--primary);
    font-size: 12px;
    font-weight: 900;
}

.ops-list {
    display: grid;
    gap: 8px;
}

.ops-list-item {
    display: grid;
    gap: 3px;
    padding: 11px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel-soft);
    color: var(--text);
}

.ops-list-item:hover {
    border-color: #b7c4d2;
    background: #fff;
    color: var(--text);
}

.ops-list-item strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
}

.ops-list-item span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.ops-list-item small {
    color: var(--primary);
    font-size: 11px;
    font-weight: 900;
}

.compact-list .ops-list-item {
    padding: 10px 11px;
}

.ops-empty {
    padding: 16px;
    border: 1px dashed var(--line-strong);
    border-radius: 8px;
    color: var(--muted);
    text-align: center;
    font-weight: 750;
}

.dashboard-invoices {
    margin-top: 0;
}

.dashboard-invoices .table-wrapper {
    max-height: 420px;
}

.dashboard-stats-bottom {
    margin-top: 4px;
    opacity: 0.92;
}

.dashboard-stats-bottom .stat-item {
    min-height: 86px;
    padding: 16px 18px;
}

.dashboard-stats-bottom .stat-item strong {
    font-size: 20px;
    margin-top: 8px;
}

.stat-item {
    position: relative;
    overflow: hidden;
    min-height: 116px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: var(--shadow-soft);
}

.stat-item::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: linear-gradient(180deg, var(--primary), var(--accent));
}

.stat-item span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 750;
    text-transform: uppercase;
}

.stat-item strong {
    display: block;
    margin-top: 14px;
    font-size: 26px;
    line-height: 1.1;
    font-weight: 850;
}

label {
    display: block;
    margin: 0 0 6px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 750;
}

input,
select,
textarea {
    width: 100%;
    min-height: 38px;
    padding: 8px 11px;
    margin: 0 0 12px;
    border: 1px solid var(--line-strong);
    border-radius: 7px;
    background: #fff;
    color: var(--text);
    font: inherit;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

textarea { min-height: 72px; resize: vertical; }

input:focus,
select:focus,
textarea:focus {
    border-color: rgba(31, 94, 255, 0.7);
    box-shadow: 0 0 0 3px rgba(31, 94, 255, 0.12);
}

.btn,
button.btn {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 15px;
    border: 1px solid var(--line-strong);
    border-radius: 7px;
    background: #fff;
    color: var(--text);
    font: inherit;
    font-weight: 750;
    cursor: pointer;
    text-decoration: none;
    transition: box-shadow 0.12s ease, background 0.12s ease, border-color 0.12s ease;
}

.btn:hover,
button.btn:hover {
    background: var(--panel-soft);
    border-color: #b7c4d2;
    color: var(--text);
}

.btn-primary,
button.btn-primary {
    border-color: var(--primary);
    background: linear-gradient(180deg, #2d6bff, var(--primary));
    color: #fff;
    box-shadow: 0 8px 18px rgba(31, 94, 255, 0.22);
}

.btn-primary:hover,
button.btn-primary:hover {
    background: linear-gradient(180deg, #245ceb, var(--primary-dark));
    color: #fff;
}

.btn-outline { background: #fff; }

.btn.btn-app-whatsapp,
.btn.btn-auto-whatsapp,
.btn.btn-manual-whatsapp,
.btn.btn-ready-whatsapp,
button.btn.btn-app-whatsapp,
button.btn.btn-auto-whatsapp,
button.btn.btn-manual-whatsapp,
button.btn.btn-ready-whatsapp {
    border: 0;
    color: #fff !important;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.16);
}

.btn.btn-app-whatsapp,
button.btn.btn-app-whatsapp {
    background: linear-gradient(135deg, #075e54 0%, #128c7e 52%, #25d366 100%);
}

.btn.btn-auto-whatsapp,
button.btn.btn-auto-whatsapp {
    background: linear-gradient(135deg, #f97316 0%, #b83280 55%, #5b21b6 100%);
}

.btn.btn-manual-whatsapp,
button.btn.btn-manual-whatsapp {
    background: #25d366;
}

.btn.btn-ready-whatsapp,
button.btn.btn-ready-whatsapp {
    background: #16a34a;
}

.btn.btn-reminder-sent,
button.btn.btn-reminder-sent {
    border-color: #16a34a;
    background: #16a34a;
    color: #fff;
}

.btn.btn-reminder-return,
button.btn.btn-reminder-return {
    border-color: #2563eb;
    background: #2563eb;
    color: #fff;
}

.btn.btn-reminder-skip,
button.btn.btn-reminder-skip {
    border-color: #475569;
    background: #475569;
    color: #fff;
}

.btn.btn-reminder-sent:hover,
.btn.btn-reminder-return:hover,
.btn.btn-reminder-skip:hover,
button.btn.btn-reminder-sent:hover,
button.btn.btn-reminder-return:hover,
button.btn.btn-reminder-skip:hover {
    color: #fff;
    filter: brightness(0.96);
}

.btn.btn-app-whatsapp:hover,
.btn.btn-auto-whatsapp:hover,
.btn.btn-manual-whatsapp:hover,
.btn.btn-ready-whatsapp:hover,
button.btn.btn-app-whatsapp:hover,
button.btn.btn-auto-whatsapp:hover,
button.btn.btn-manual-whatsapp:hover,
button.btn.btn-ready-whatsapp:hover {
    color: #fff !important;
    filter: brightness(0.98);
    transform: translateY(-1px);
}

.table-wrapper {
    width: 100%;
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
}

th,
td {
    padding: 11px 13px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: middle;
}

th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #f5f7fa;
    color: #46566b;
    font-size: 11px;
    font-weight: 850;
    text-transform: uppercase;
}

tbody tr:hover td { background: #f9fbfd; }
tbody tr:last-child td { border-bottom: 0; }
.num { text-align: right; }

.items-table th,
.items-table td,
#itemsTable th,
#itemsTable td {
    padding: 7px 8px;
}

.items-table input,
#itemsTable input {
    min-height: 32px;
    padding: 6px 8px;
    margin-bottom: 0 !important;
    border-radius: 6px;
}

.line-total {
    color: var(--text);
    white-space: nowrap;
}

.invoice-edit-form {
    display: grid;
    gap: 18px;
}

.invoice-form-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 24px;
}

.invoice-mini-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 16px;
}

.invoice-actions-bar {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 40px;
}

.mobile-scroll-hint {
    display: none;
    margin: -4px 0 10px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 750;
}

.invoice-filter-form {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 82px;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 850;
    text-transform: uppercase;
}

.badge-success {
    color: #0f6b3d;
    background: #e8f7ee;
}

.badge-danger {
    color: #a32929;
    background: #fdecec;
}

.row-unpaid td { background: #fffafa; }

.summary-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel-soft);
}

.summary-strip > div {
    min-width: 180px;
    color: var(--muted);
    font-weight: 700;
}

.summary-strip strong { color: var(--text); }

.result-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(140px, 1fr));
    gap: 10px;
    margin: 0 0 14px;
}

.result-summary > div {
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel-soft);
}

.result-summary span {
    display: block;
    color: var(--muted);
    font-size: 11px;
    font-weight: 850;
    text-transform: uppercase;
}

.result-summary strong {
    display: block;
    margin-top: 4px;
    font-size: 17px;
}

.invoice-page {
    display: grid;
    gap: 18px;
}

.invoice-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 18px;
    align-items: stretch;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.invoice-logo {
    width: 86px !important;
    max-width: 86px !important;
    margin-bottom: 12px;
}

.invoice-head span,
.amount-box span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 750;
}

.invoice-head h2 {
    margin: 6px 0 10px;
    font-size: 22px;
}

.customer-address {
    margin: 0 0 8px;
    font: inherit;
    color: var(--muted);
    white-space: pre-wrap;
}

.amount-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    padding: 22px;
    border-radius: var(--radius);
    background: #f2f6fb;
    border: 1px solid var(--line);
}

.amount-box strong {
    font-size: 30px;
    line-height: 1;
}

.payment-chip {
    display: inline-flex !important;
    width: fit-content;
    margin-top: 6px;
    padding: 5px 10px;
    border-radius: 999px;
}

.payment-chip.due,
.balance-value.due { color: var(--danger); }
.payment-chip.clear,
.balance-value.clear,
.paid-value { color: var(--success); }

.notes {
    padding: 14px 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fffdf5;
    color: #705514;
    white-space: pre-wrap;
}

.invoice-summary {
    display: grid;
    gap: 10px;
}

.invoice-summary > div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 9px;
    border-bottom: 1px solid var(--line);
}

.muted-text { color: var(--muted); }

.payment-form { display: grid; gap: 10px; }

.expenses-layout {
    grid-template-columns: minmax(360px, 0.45fr) minmax(0, 1fr);
    align-items: start;
}

.expense-stats {
    grid-template-columns: repeat(4, minmax(160px, 1fr));
}

.expense-form {
    display: grid;
    gap: 2px;
}

.expense-filters {
    display: grid;
    grid-template-columns: 150px 150px 170px auto;
    gap: 10px;
    align-items: end;
    margin-bottom: 16px;
}

.expense-parts-row td {
    background: #fffafa;
}

.expense-parts-list {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 7px;
}

.expense-parts-list span {
    max-width: 100%;
    padding: 3px 7px;
    border: 1px solid #fecaca;
    border-radius: 6px;
    background: #fff7f7;
    color: #7f1d1d;
    font-size: 11px;
    line-height: 1.35;
}

.parts-lock-card {
    max-width: 460px;
    margin: 48px auto;
}

.parts-lock-form {
    display: grid;
    gap: 8px;
}

.parts-history-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.parts-history-head h2 {
    margin: 0 0 4px;
    font-size: 22px;
}

.parts-history-head p {
    margin: 0;
    color: var(--muted);
}

.parts-list {
    display: grid;
    gap: 14px;
}

.parts-table-wrap {
    max-height: 680px;
}

.parts-history-table td,
.parts-history-table th {
    white-space: nowrap;
}

.collapse-toggle {
    width: 28px;
    height: 28px;
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: #fff;
    color: var(--primary);
    font-size: 22px;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
    transition: transform 0.12s ease, background 0.12s ease;
}

.collapse-toggle.is-open {
    transform: rotate(90deg);
    background: #eaf0ff;
}

.parts-detail-row td {
    background: #f8fafc !important;
}

.parts-detail-box {
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
}

.parts-detail-title {
    margin-bottom: 10px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 850;
    text-transform: uppercase;
}

.parts-inner-table th,
.parts-inner-table td {
    padding: 7px 9px;
}

.part-row-actions form {
    margin: 0;
}

.part-import-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    overflow: hidden;
}

.part-import-card.is-unpaid {
    border-color: #f3c6c6;
}

.part-import-main,
.part-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px;
}

.part-import-main span {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
}

.part-money-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(120px, 1fr));
    gap: 1px;
    background: var(--line);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.part-money-grid > div {
    padding: 12px 14px;
    background: var(--panel-soft);
}

.part-money-grid span {
    display: block;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.part-money-grid strong {
    display: block;
    margin-top: 4px;
    font-size: 16px;
}

.part-import-card details {
    padding: 12px 14px;
}

.part-import-card summary {
    cursor: pointer;
    font-weight: 800;
    margin-bottom: 10px;
}

.part-actions {
    border-top: 1px solid var(--line);
    justify-content: flex-end;
}

.part-actions form {
    margin: 0;
}

.actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.action-stack form {
    margin: 0;
}

td small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
}

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.auth-card {
    width: min(420px, 100%);
    padding: 30px;
    text-align: center;
}

.auth-card h1 {
    margin: 0 0 24px;
    font-size: 24px;
    line-height: 1.2;
}

.auth-card form { text-align: left; }

.otp-setup-key {
    margin: 6px 0 0;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel-soft);
    color: var(--primary);
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 18px;
    font-weight: 900;
    letter-spacing: 0.08em;
    word-break: break-word;
}

.otp-setup-box {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    margin: 12px 0;
}

.otp-setup-box img {
    width: 220px;
    height: 220px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
}

.otp-setup-box span {
    display: block;
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.otp-uri {
    margin-top: 12px;
}

.otp-uri code {
    display: block;
    margin-top: 8px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel-soft);
    color: var(--muted);
    word-break: break-all;
}

.security-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    margin-bottom: 18px;
    padding: 22px;
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    background: linear-gradient(135deg, #ffffff 0%, #eff6ff 100%);
    box-shadow: var(--shadow-soft);
}

.security-hero .eyebrow {
    display: block;
    color: var(--primary);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.security-hero h2 {
    margin: 4px 0;
    font-size: 26px;
}

.security-hero p {
    margin: 0;
    color: var(--muted);
}

.security-score {
    min-width: 150px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    text-align: center;
}

.security-score span {
    display: block;
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.security-score strong {
    display: block;
    margin-top: 4px;
    font-size: 20px;
}

.settings-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr);
    gap: 18px;
    align-items: start;
}

.settings-card {
    min-height: 100%;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--panel);
    box-shadow: var(--shadow-soft);
}

.settings-card-featured {
    border-color: #bfdbfe;
    box-shadow: 0 18px 45px rgba(31, 94, 255, 0.09);
}

.settings-card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 12px;
}

.settings-card-head span {
    display: block;
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.settings-card-head h2 {
    margin: 3px 0 0;
    font-size: 18px;
}

.settings-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 26px;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
    white-space: nowrap;
}

.settings-status.secure,
.security-score .secure {
    background: #dcfce7;
    color: #166534;
}

.settings-status.warning,
.security-score .warning {
    background: #fef3c7;
    color: #92400e;
}

.settings-status.neutral {
    background: #eaf0ff;
    color: var(--primary);
}

.setup-hints {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 12px 0;
}

.setup-hints div {
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel-soft);
}

.setup-hints span {
    display: block;
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.setup-hints strong {
    display: block;
    margin-top: 3px;
}

.settings-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.security-checklist {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.security-checklist li {
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel-soft);
    color: var(--text);
    font-weight: 750;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(20, 32, 51, 0.58);
}

.invoice-work-modal {
    width: min(1180px, 100%);
    height: min(90vh, 860px);
    display: flex;
    flex-direction: column;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: 0 30px 90px rgba(20, 32, 51, 0.28);
    overflow: hidden;
}

.invoice-work-frame {
    flex: 1;
    width: 100%;
    border: 0;
    background: #fff;
}

.modal-backdrop.is-open { display: flex; }

.quick-invoice-modal {
    width: min(1120px, 100%);
    max-height: min(92vh, 860px);
    overflow: auto;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: 0 30px 90px rgba(20, 32, 51, 0.28);
}

.quick-modal-head {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--line);
}

.quick-modal-head h2 {
    margin: 0;
    font-size: 20px;
}

.quick-modal-body {
    padding: 20px 22px 22px;
}

.modal-close {
    width: 36px;
    min-height: 36px;
    padding: 0;
    border-radius: 999px;
    font-size: 22px;
    line-height: 1;
}

.customer-link,
.vehicle-link {
    appearance: none;
    border: 0;
    padding: 0;
    background: transparent;
    color: var(--primary);
    font: inherit;
    font-weight: 800;
    text-align: left;
    cursor: pointer;
}

.vehicle-link {
    color: #0f766e;
}

.vehicle-link.compact {
    font-size: 12px;
    font-weight: 800;
}

.customer-link:hover,
.vehicle-link:hover {
    text-decoration: underline;
}

.customer-profile-modal,
.vehicle-profile-modal {
    width: min(980px, 100%);
    max-height: min(92vh, 820px);
    overflow: auto;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: 0 30px 90px rgba(20, 32, 51, 0.28);
}

.customer-profile-modal .quick-modal-head p,
.vehicle-profile-modal .quick-modal-head p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.customer-profile-body {
    padding: 20px 22px 22px;
}

.customer-profile-stats,
.customer-profile-grid {
    display: grid;
    gap: 14px;
    margin-bottom: 16px;
}

.customer-profile-stats {
    grid-template-columns: repeat(4, minmax(120px, 1fr));
}

.customer-profile-grid {
    grid-template-columns: 1fr 1fr;
}

.customer-profile-stats > div {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel-soft);
}

.customer-profile-stats span,
.customer-meta span {
    display: block;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.customer-profile-stats strong {
    display: block;
    margin-top: 6px;
    font-size: 20px;
}

.customer-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.customer-meta strong {
    display: block;
    margin-top: 4px;
    word-break: break-word;
}

.customer-vehicles {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.customer-vehicles span {
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--panel-soft);
    font-size: 12px;
    font-weight: 800;
}

.customer-vehicles em {
    color: var(--muted);
    font-style: normal;
}

.customer-invoices .due {
    color: var(--danger);
    font-weight: 800;
}

.customer-invoices .clear {
    color: var(--success);
    font-weight: 800;
}

.vehicle-reminders {
    display: grid;
    gap: 10px;
}

.vehicle-reminders > div {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 4px 10px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel-soft);
}

.vehicle-reminders span,
.vehicle-reminders small {
    color: var(--muted);
    font-size: 12px;
}

.vehicle-reminders strong {
    text-transform: uppercase;
}

.reminder-auto-note {
    margin-top: 14px;
    padding: 10px 12px;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    background: #eff6ff;
    color: #1e3a8a;
    font-size: 12px;
    font-weight: 750;
}

.reminder-auto-note strong {
    display: block;
    margin-top: 4px;
}

.service-verify-toggle {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 4px 0 12px;
    padding: 10px 12px;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    background: #f0fdf4;
    color: #14532d;
}

.service-verify-toggle input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: #16a34a;
}

.service-verify-toggle span {
    display: grid;
    gap: 2px;
}

.service-verify-toggle strong {
    font-size: 13px;
    font-weight: 900;
}

.service-verify-toggle small {
    color: #166534;
    font-size: 12px;
    font-weight: 650;
    line-height: 1.35;
}

.service-timeline {
    display: grid;
    gap: 12px;
}

.service-timeline-item {
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr);
    gap: 14px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel-soft);
}

.service-timeline-date {
    border-right: 1px solid var(--line);
    padding-right: 12px;
}

.service-timeline-date strong,
.service-timeline-date a {
    display: block;
    font-weight: 900;
}

.service-timeline-date a {
    margin-top: 4px;
}

.service-timeline-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.service-timeline-head span {
    font-weight: 900;
    color: var(--primary);
    white-space: nowrap;
}

.service-timeline-body p {
    margin: 4px 0 8px;
    color: var(--muted);
    font-size: 12px;
}

.service-items {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.service-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 8px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    font-size: 12px;
    font-weight: 750;
}

.service-item.pune {
    border-color: #bbf7d0;
    background: #f0fdf4;
    color: #166534;
}

.service-item em {
    color: var(--muted);
    font-style: normal;
    font-weight: 650;
}

.ai-invoice-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
    gap: 18px;
}

.ai-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.ai-cart-list {
    margin-top: 14px;
    max-height: 520px;
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.ai-cart-list > div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
}

.ai-cart-list > div:last-child {
    border-bottom: 0;
}

.ai-cart-list span {
    color: var(--text);
    font-weight: 700;
}

.ai-cart-list strong {
    white-space: nowrap;
}

.ai-cart-list small {
    display: block;
    margin-bottom: 3px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
}

.live-cart-modal {
    width: min(1240px, 100%);
}

.live-cart-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}

.live-cart-summary > div {
    padding: 13px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel-soft);
}

.live-cart-summary span {
    display: block;
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.live-cart-summary strong {
    display: block;
    margin-top: 5px;
    color: var(--text);
    font-size: 20px;
    font-weight: 950;
}

.live-cart-table-wrap {
    max-height: 56vh;
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.live-cart-table {
    margin: 0;
}

.live-cart-table th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #f8fafc;
}

.live-cart-table td,
.live-cart-table th {
    white-space: nowrap;
}

.live-cart-table td:nth-child(4),
.live-cart-table th:nth-child(4) {
    min-width: 360px;
    white-space: normal;
}

.parts-live-history-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.parts-live-history-head strong,
.parts-live-history-head span {
    display: block;
}

.parts-live-history-head strong {
    color: var(--text);
    font-size: 14px;
    font-weight: 950;
}

.parts-live-history-head span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 750;
}

.parts-live-orders {
    display: grid;
    gap: 8px;
    margin-top: 10px;
    max-height: 360px;
    overflow: auto;
}

.parts-live-order {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 11px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--text);
    text-align: left;
    cursor: pointer;
}

.parts-live-order:hover,
.parts-live-order.active {
    border-color: rgba(37, 99, 235, 0.45);
    background: #f8fbff;
}

.parts-live-order span,
.parts-live-order strong,
.parts-live-order small {
    display: block;
    min-width: 0;
}

.parts-live-order span {
    overflow: hidden;
}

.parts-live-order strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 950;
}

.parts-live-order small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 750;
}

.parts-live-order em {
    flex: 0 0 auto;
    color: #0f766e;
    font-size: 13px;
    font-style: normal;
    font-weight: 950;
}

.agent-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 18px;
}

.agent-chat-card {
    min-height: 640px;
    display: flex;
    flex-direction: column;
}

.agent-messages {
    flex: 1;
    display: grid;
    align-content: start;
    gap: 12px;
    max-height: 680px;
    overflow: auto;
    padding-right: 4px;
}

.agent-message {
    max-width: 92%;
    padding: 13px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.agent-message.user {
    justify-self: end;
    background: #eef6ff;
    border-color: rgba(37, 99, 235, 0.22);
}

.agent-message.assistant {
    justify-self: start;
    background: var(--panel-soft);
}

.agent-message.error {
    border-color: #fecaca;
    background: #fff1f2;
    color: #991b1b;
}

.agent-message strong {
    display: block;
    margin-bottom: 5px;
    font-weight: 950;
}

.agent-message p {
    margin: 0;
    color: inherit;
    font-weight: 700;
}

.agent-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.agent-form textarea {
    min-height: 76px;
    resize: vertical;
}

.agent-capabilities {
    display: grid;
    gap: 10px;
    margin: 0;
    padding-left: 18px;
}

.agent-capabilities li {
    color: var(--text);
    font-weight: 750;
}

.agent-proposal-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 12px 0;
}

.agent-proposal-meta span {
    padding: 9px 10px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #fff;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.agent-proposal-meta b {
    color: var(--text);
}

.agent-table-wrap {
    margin: 10px 0 12px;
    max-height: 280px;
}

.quick-form-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 16px;
}

.quick-mini-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.quick-actions {
    position: sticky;
    bottom: 0;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 14px;
    background: linear-gradient(180deg, rgba(255,255,255,0), #fff 35%);
}

@media (max-width: 920px) {
    .quick-form-grid,
    .quick-mini-grid,
    .customer-profile-stats,
    .customer-profile-grid,
    .customer-meta {
        grid-template-columns: 1fr;
    }
}

body [style*="background: #ece9d8"] {
    background: var(--panel-soft) !important;
    border-color: var(--line) !important;
}

/* E-Service cockpit refresh */
body:not(.public-auto-site) {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.72) 0, rgba(246, 248, 251, 0) 280px),
        linear-gradient(135deg, #f6f8fb 0%, #eef3f8 56%, #f8fafc 100%);
}

.top-nav-bar {
    position: sticky;
    top: 0;
    min-height: 64px;
    padding: 10px 26px;
    gap: 20px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.96) 58%, rgba(238, 244, 255, 0.96) 100%);
    box-shadow: 0 14px 34px rgba(20, 32, 51, 0.09);
    backdrop-filter: blur(18px);
}

.top-nav-bar::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 3px;
    background: linear-gradient(90deg, #f97316 0%, #b83280 42%, #1f5eff 100%);
}

.brand {
    gap: 11px;
    min-width: 174px;
    padding-right: 18px;
    border-right: 1px solid rgba(15, 23, 42, 0.08);
}

.brand-mark {
    width: 70px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.brand-mark img {
    width: 70px;
    height: 40px;
    object-fit: contain;
}

.brand-copy {
    display: grid;
    gap: 1px;
}

.brand-copy strong {
    font-size: 16px;
    letter-spacing: 0;
}

.brand-copy small {
    color: #7a8799;
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
}

.nav-menu {
    gap: 4px;
    padding: 4px;
    border: 1px solid rgba(15, 23, 42, 0.07);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(245, 248, 252, 0.78));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
    scrollbar-width: thin;
}

.nav-menu a {
    appearance: none;
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    border: 1px solid transparent;
    border-radius: 6px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    font-weight: 750;
    padding: 8px 12px;
    white-space: nowrap;
    transition: background .16s ease, color .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.nav-menu a:hover {
    border-color: rgba(31, 94, 255, 0.12);
    background: rgba(255, 255, 255, 0.95);
    color: var(--text);
    box-shadow: 0 8px 16px rgba(20, 32, 51, 0.07);
}

.nav-menu a.active {
    border-color: rgba(31, 94, 255, 0.24);
    background:
        linear-gradient(180deg, #ffffff 0%, #f4f7ff 100%);
    box-shadow: 0 8px 18px rgba(31, 94, 255, 0.12), inset 0 -2px 0 rgba(31, 94, 255, 0.82);
    color: #153fba;
}

.global-search {
    width: clamp(160px, 17vw, 270px);
}

.global-search input {
    min-height: 36px;
    border-color: rgba(15, 23, 42, 0.11);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.user-actions .btn,
.user-actions a.btn {
    min-height: 36px;
    border-radius: 7px;
    font-weight: 800;
    box-shadow: none;
}

.container {
    width: min(100% - 34px, 1520px);
}

.page-header {
    display: none;
}

.card,
.workbench-hero,
.ops-hero,
.ops-kpi-card,
.ops-command,
.stat-item {
    border-color: rgba(15, 23, 42, 0.1);
    box-shadow: 0 16px 36px rgba(20, 32, 51, 0.07);
}

.card {
    background:
        linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.ops-hero {
    padding: 22px 24px;
    background:
        linear-gradient(135deg, rgba(255,255,255,0.98), rgba(246,249,253,0.95)),
        linear-gradient(90deg, rgba(249,115,22,0.11), rgba(184,50,128,0.08) 42%, rgba(15,78,168,0.11));
}

.ops-hero::after {
    inset: auto 0 0 auto;
    width: 38%;
    height: 4px;
    border: 0;
    border-radius: 0;
    background: linear-gradient(90deg, #f97316, #b83280, #0f4ea8);
}

.ops-hero h2 {
    font-size: clamp(25px, 2.5vw, 34px);
}

.ops-kpi-grid {
    grid-template-columns: repeat(4, minmax(170px, 1fr));
}

.ops-kpi-card {
    min-height: 96px;
    padding: 16px 17px;
}

.ops-kpi-card strong {
    font-size: clamp(22px, 2.1vw, 28px);
}

.ops-kpi-card.primary {
    border-color: rgba(249, 115, 22, 0.32);
    background:
        linear-gradient(180deg, #fff 0%, #fff7ed 100%);
}

.ops-kpi-card.primary strong {
    color: #c2410c;
}

.ops-command-strip {
    grid-template-columns: repeat(4, minmax(160px, 1fr));
}

.ops-command {
    position: relative;
    overflow: hidden;
    min-height: 68px;
    transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.ops-command::after {
    content: "";
    position: absolute;
    inset: auto 12px 9px 12px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, #f97316, #0f4ea8);
    opacity: 0.2;
}

.ops-command.primary {
    background: linear-gradient(135deg, #1746bf, #1f5eff 62%, #0f9f8e);
}

.dashboard-search-card,
.invoice-filter-form,
.summary-strip,
.result-summary > div {
    border-color: rgba(15, 23, 42, 0.1);
}

.premium-search input,
.dashboard-search input,
.invoice-filter-form input,
.invoice-filter-form select,
.workbench-hero input,
.workbench-hero select {
    min-height: 42px;
    border-color: rgba(15, 23, 42, 0.14);
    background: #fff;
}

.workbench-grid {
    grid-template-columns: minmax(0, 1fr) minmax(310px, 350px);
}

.workbench-side {
    gap: 14px;
}

.dashboard-chart-card canvas {
    max-height: 86px;
}

.dashboard-stats-bottom {
    margin-top: 14px;
    opacity: 0.86;
}

.dashboard-stats-bottom .stat-item {
    min-height: 74px;
}

.table-wrapper {
    border-color: rgba(15, 23, 42, 0.1);
}

th {
    background: #f8fafc;
    color: #53657a;
    letter-spacing: 0;
}

td {
    color: #18243a;
}

.clickable-row {
    cursor: pointer;
}

.row-unpaid td {
    background: #fff7f7;
}

.row-unpaid:hover td {
    background: #fff0f0;
}

.badge {
    min-width: 94px;
    border: 1px solid currentColor;
    background: #fff;
}

.badge-success {
    color: #15803d;
    background: #ecfdf3;
}

.badge-danger {
    color: #b42318;
    background: #fff1f0;
}

.vehicle-link,
.customer-link {
    font-weight: 850;
}

.vehicle-link.compact {
    margin-top: 4px;
    padding: 2px 7px;
    border: 1px solid rgba(15, 78, 168, 0.14);
    background: #eff6ff;
}

.summary-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(150px, 1fr));
    background: #f8fafc;
}

.summary-strip > div {
    min-width: 0;
    padding: 11px 12px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 8px;
    background: #fff;
}

.invoice-filter-form {
    display: grid;
    grid-template-columns: minmax(240px, 1.2fr) minmax(190px, 0.8fr) minmax(150px, 0.6fr) auto;
    gap: 10px;
    padding: 12px;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 8px;
    background: #f8fafc;
}

.invoice-filter-form input,
.invoice-filter-form select {
    margin: 0;
}

.ops-list-item {
    background: #fff;
}

.ops-list-item strong {
    white-space: normal;
}

.ops-list-item span {
    white-space: normal;
}

.auth-card {
    border-top: 4px solid #0f4ea8;
}

.invoice-list-hero,
.vehicle-hero {
    background:
        linear-gradient(135deg, #fff 0%, #f8fafc 58%, #eef6ff 100%);
}

.invoice-list-card,
.vehicle-list-card {
    padding-top: 18px;
}

.vehicle-summary-strip {
    margin-top: 0;
}

.vehicle-card-cell {
    display: inline-grid;
    gap: 3px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--text);
    text-align: left;
}

.vehicle-card-cell span {
    width: max-content;
    max-width: 190px;
    padding: 3px 8px;
    border: 1px solid rgba(15, 78, 168, 0.18);
    border-radius: 999px;
    background: #eff6ff;
    color: #0f4ea8;
    font-size: 11px;
    font-weight: 950;
    text-transform: uppercase;
}

.vehicle-card-cell strong {
    color: var(--text);
    font-size: 14px;
    font-weight: 900;
}

.vehicle-card-cell:hover strong {
    color: var(--primary);
}

.vehicle-list-card table td:first-child small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 750;
}

.status-hero {
    background:
        linear-gradient(135deg, #fff 0%, #f8fafc 56%, #eefdf9 100%);
}

.status-sync-form {
    margin: 0;
}

.status-metrics {
    grid-template-columns: repeat(6, minmax(130px, 1fr));
}

.status-metrics .ops-kpi-card {
    min-height: 88px;
}

.status-metrics .ops-kpi-card strong {
    font-size: 24px;
}

.status-check-card .card-title small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.status-check-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(220px, 1fr));
    gap: 10px;
}

.status-check-item {
    display: grid;
    gap: 4px;
    padding: 13px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.status-check-item span {
    width: max-content;
    padding: 3px 7px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 950;
    text-transform: uppercase;
}

.status-check-item strong {
    font-size: 13px;
    font-weight: 950;
}

.status-check-item small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 650;
    overflow-wrap: anywhere;
}

.status-check-item.secure {
    border-color: rgba(22, 138, 74, 0.2);
    background: #f6fef9;
}

.status-check-item.secure span {
    color: #15803d;
    background: #dcfce7;
}

.status-check-item.warning {
    border-color: rgba(183, 121, 31, 0.24);
    background: #fffbeb;
}

.status-check-item.warning span {
    color: #a16207;
    background: #fef3c7;
}

.status-check-item.danger {
    border-color: rgba(200, 55, 55, 0.22);
    background: #fff5f5;
}

.status-check-item.danger span {
    color: #b42318;
    background: #fee2e2;
}

@media (max-width: 1100px) {
    .public-booking-page {
        background:
            linear-gradient(180deg, rgba(10, 18, 32, 0.76) 0%, rgba(10, 18, 32, 0.44) 34%, rgba(246, 248, 251, 0.98) 54%),
            url("https://images.unsplash.com/photo-1487754180451-c456f719a1fc?auto=format&fit=crop&w=1600&q=82") center top / cover fixed;
    }

    .public-booking-shell {
        align-items: flex-start;
    }

    .booking-premium-layout {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .booking-premium-hero {
        min-height: 430px;
        padding: 12px 0 0;
    }

    .booking-hero-copy h1 {
        font-size: 44px;
    }

    .top-nav-bar {
        flex-wrap: wrap;
        height: auto;
        padding: 14px 18px;
        gap: 12px;
    }

    .nav-menu { order: 3; flex-basis: 100%; }
    .user-actions { margin-left: auto; }
    .ops-kpi-grid,
    .status-check-grid,
    .ops-command-strip { grid-template-columns: repeat(2, minmax(180px, 1fr)); }
    .stats-grid { grid-template-columns: repeat(2, minmax(180px, 1fr)); }
    .dashboard-top,
    .workbench-grid,
    .appointment-calendar-layout { grid-template-columns: 1fr; }
    .upcoming-appointments-card { position: static; }
    .calendar-summary-grid { grid-template-columns: repeat(2, minmax(180px, 1fr)); }
    .manual-appointment-form { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .manual-appointment-note { grid-column: span 2; }
    .grid-2,
    .invoice-head { grid-template-columns: 1fr; }
    .expenses-layout,
    .expense-filters,
    .ai-invoice-layout { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
    .public-booking-page {
        background:
            linear-gradient(180deg, rgba(10, 18, 32, 0.72) 0%, rgba(10, 18, 32, 0.42) 260px, #f6f8fb 430px),
            url("https://images.unsplash.com/photo-1487754180451-c456f719a1fc?auto=format&fit=crop&w=1100&q=78") center top / auto 460px no-repeat;
    }

    .public-booking-shell {
        width: min(100% - 24px, 1280px);
        padding: 18px 0 34px;
    }

    .booking-premium-hero {
        min-height: 360px;
    }

    .booking-hero-copy h1 {
        font-size: 34px;
    }

    .booking-hero-copy p {
        font-size: 14px;
    }

    .booking-hero-facts {
        grid-template-columns: 1fr;
    }

    .public-booking-card {
        padding: 16px;
    }

    .install-hint {
        align-items: flex-start;
        flex-direction: column;
    }

    .container {
        width: min(100% - 24px, 1480px);
        padding-top: 14px;
    }

    .card { padding: 16px; }
    .ops-hero {
        align-items: flex-start;
        flex-direction: column;
        padding: 18px;
    }
    .ops-hero h2 { font-size: 24px; }
    .ops-hero-actions { width: 100%; justify-content: stretch; }
    .ops-hero-actions .btn { flex: 1; }
    .ops-kpi-grid,
    .status-check-grid,
    .ops-command-strip { grid-template-columns: 1fr; }
    .calendar-summary-grid { grid-template-columns: 1fr; }
    .calendar-toolbar { grid-template-columns: 1fr; }
    .calendar-toolbar > div { order: -1; }
    .manual-appointment-inline {
        align-items: stretch;
        flex-direction: column;
    }
    .appointment-modal .manual-appointment-form,
    .manual-appointment-form { grid-template-columns: 1fr; }
    .manual-appointment-note { grid-column: auto; }
    .appointment-modal .manual-appointment-note,
    .appointment-modal .manual-appointment-form button {
        grid-column: auto;
    }
    .appointment-modal .manual-appointment-form button {
        width: 100%;
        justify-self: stretch;
    }
    .ops-kpi-card { min-height: auto; }
    .stats-grid { grid-template-columns: 1fr; }
    .quick-action-list,
    .dashboard-search,
    .result-summary,
    .part-money-grid { grid-template-columns: 1fr; }
    .workbench-hero,
    .parts-history-head { align-items: flex-start; flex-direction: column; }
    .user-actions { width: 100%; }
    .user-actions .btn { flex: 1; }
    .page-header h1 { font-size: 21px; }
}

/* Mobile app shell for the logged-in panel */
@media (max-width: 760px) {
    html {
        -webkit-text-size-adjust: 100%;
    }

    body:not(.public-auto-site) {
        background: #f6f8fb;
    }

    .top-nav-bar {
        position: sticky;
        top: 0;
        z-index: 90;
        min-height: 0;
        padding: 8px 10px 10px;
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 8px;
        background: rgba(255, 255, 255, 0.98);
    }

    .top-nav-bar .brand {
        min-width: 0;
    }

    .top-nav-bar .brand strong {
        font-size: 16px;
    }

    .nav-menu {
        grid-column: 1 / -1;
        order: 3;
        display: flex;
        gap: 6px;
        width: 100%;
        overflow-x: auto;
        padding: 2px 0 4px;
        scrollbar-width: none;
    }

    .nav-menu::-webkit-scrollbar {
        display: none;
    }

    .nav-menu a {
        flex: 0 0 auto;
        padding: 8px 10px;
        border: 1px solid var(--line);
        background: #fff;
        font-size: 12px;
    }

    .nav-menu a.active {
        border-color: #bcd0ff;
        background: #eaf0ff;
    }

    .user-actions {
        justify-content: flex-end;
        gap: 6px;
        min-width: 0;
    }

    .user-actions .btn,
    .user-actions a.btn {
        min-height: 34px;
        padding: 7px 9px;
        font-size: 12px;
        white-space: nowrap;
    }

    .global-search {
        width: min(44vw, 190px);
    }

    .global-search input {
        min-height: 34px;
        padding: 7px 9px;
        font-size: 13px;
    }

    .notification-toggle {
        width: 34px;
        height: 34px;
        min-height: 34px;
    }

    .container {
        width: min(100% - 18px, 1480px);
        padding-top: 12px;
        padding-bottom: 76px;
    }

    .page-header {
        margin-bottom: 12px;
    }

    .page-header h1 {
        font-size: 22px;
    }

    .card,
    .panel,
    .invoice-panel,
    .workbench-hero,
    .ops-hero {
        border-radius: 8px;
    }

    .grid-2,
    .grid-3,
    .dashboard-top,
    .workbench-grid,
    .ops-kpi-grid,
    .status-check-grid,
    .calendar-summary-grid,
    .appointment-calendar-layout,
    .ai-invoice-layout,
    .agent-shell,
    .invoice-head,
    .expenses-layout {
        grid-template-columns: 1fr !important;
    }

    .table-wrapper,
    .parts-table-wrap,
    .live-cart-table-wrap,
    .agent-table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    table {
        min-width: 760px;
        font-size: 13px;
    }

    .items-table,
    #itemsTable {
        min-width: 860px;
    }

    input,
    select,
    textarea,
    button,
    .btn {
        font-size: 16px;
    }

    .invoice-work-modal,
    .quick-invoice-modal,
    .appointment-modal {
        width: 100%;
        max-height: 96vh;
        border-radius: 8px 8px 0 0;
    }

    .invoice-work-frame {
        min-height: 76vh;
    }

    .invoice-form-grid,
    .invoice-mini-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .invoice-edit-form > .card,
    .invoice-form-grid > .card {
        padding: 14px;
    }

    .mobile-scroll-hint {
        display: block;
    }

    #itemsTable {
        min-width: 720px;
    }

    #itemsTable th:nth-child(2),
    #itemsTable td:nth-child(2) {
        min-width: 180px;
    }

    #itemsTable th:nth-child(1),
    #itemsTable td:nth-child(1) {
        min-width: 190px;
    }

    .invoice-actions-bar {
        position: sticky;
        bottom: 0;
        z-index: 80;
        display: grid;
        grid-template-columns: 0.8fr 1.2fr;
        gap: 8px;
        margin: 0 -9px -76px;
        padding: 10px 9px calc(10px + env(safe-area-inset-bottom));
        background: rgba(255, 255, 255, 0.96);
        border-top: 1px solid var(--line);
        backdrop-filter: blur(14px);
    }

    .invoice-actions-bar .btn,
    .invoice-actions-bar button {
        width: 100%;
        min-height: 44px;
        justify-content: center;
    }

    .invoice-filter-form {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .summary-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    #invoiceTable,
    #invoiceTable thead,
    #invoiceTable tbody,
    #invoiceTable tr,
    #invoiceTable td {
        display: block;
        width: 100%;
    }

    #invoiceTable {
        min-width: 0;
        background: transparent;
    }

    #invoiceTable thead {
        display: none;
    }

    #invoiceTable tr {
        margin-bottom: 10px;
        padding: 12px;
        border: 1px solid var(--line);
        border-radius: 8px;
        background: #fff;
        box-shadow: var(--shadow-soft);
    }

    #invoiceTable td {
        display: flex;
        justify-content: space-between;
        gap: 14px;
        padding: 7px 0;
        border-bottom: 1px solid #eef2f7;
        text-align: right !important;
    }

    #invoiceTable td:last-child {
        border-bottom: 0;
    }

    #invoiceTable td::before {
        content: attr(data-label);
        color: var(--muted);
        font-size: 12px;
        font-weight: 850;
        text-align: left;
        text-transform: uppercase;
    }

    .notification-panel,
    .global-search-results {
        position: fixed;
        left: 9px;
        right: 9px;
        top: 70px;
        width: auto;
        max-width: none;
    }
}

