.tpv-mockup {
    position: relative;
    width: 100%;
    max-width: 650px;
    margin: 0 auto;
    background: #1a1c1e;
    border-radius: 12px;
    padding: 16px 16px 20px 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4), inset 0 2px 4px rgba(255, 255, 255, 0.05);
    border: 2px solid #0f1112;
    border-bottom-width: 8px;
    z-index: 2;
    transform: perspective(1000px) rotateY(-4deg) rotateX(2deg) translateZ(0);
    transform-style: preserve-3d;
    backface-visibility: hidden;
    will-change: transform;
    transition: transform 0.5s ease;
}

.tpv-mockup:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg) translateZ(0);
}

.tpv-screen {
    background: #000;
    border-radius: 6px;
    aspect-ratio: 16 / 9;
    width: 100%;
    min-height: 250px;
    height: auto;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.8);
    border: 2px solid #050505;
}

.tpv-mockup::after {
    content: '';
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 140px;
    height: 40px;
    background: linear-gradient(to bottom, #1a1c1e, #0a0b0c);
    border-radius: 0 0 12px 12px;
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.3);
    z-index: -1;
}

.tpv-mockup::before {
    content: '';
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 220px;
    height: 16px;
    background: #0a0b0c;
    border-radius: 50%;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    z-index: -2;
}

/* Multi-Device Group */
.multi-device-group {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding-bottom: 30px;
    z-index: 2;
    transform: perspective(1000px) rotateY(-4deg) rotateX(2deg) translateZ(0);
    transform-style: preserve-3d;
    backface-visibility: hidden;
    will-change: transform;
    transition: transform 0.5s ease;
}

.multi-device-group:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg) translateZ(0);
}

.multi-device-group .tpv-mockup {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    transform: none;
}

.tablet-device {
    position: absolute;
    width: 48%;
    aspect-ratio: 16 / 10;
    background: #e4e6e8;
    border-radius: 18px;
    padding: 16px;
    box-shadow: -15px 25px 40px rgba(0, 0, 0, 0.3), inset 0 0 5px rgba(255, 255, 255, 1), inset 3px 0 6px rgba(255, 255, 255, 0.8), inset -3px 0 6px rgba(0, 0, 0, 0.1);
    border: 2px solid #cfd4da;
    right: -10%;
    bottom: -8%;
    z-index: 3;
    transform: rotate(6deg);
}

.tablet-device::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: #444;
    border-radius: 50%;
    box-shadow: inset 0 -1px 2px rgba(255, 255, 255, 0.5);
}

.tablet-device .screen {
    background: #fff;
    width: 100%;
    height: 100%;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.08);
}

/* Mobile Mockup */
.mobile-device {
    position: absolute;
    width: 22%;
    aspect-ratio: 9 / 19.5;
    background: #232629;
    border-radius: 24px;
    padding: 12px 10px;
    box-shadow: 15px 25px 40px rgba(0, 0, 0, 0.4), inset 2px 0 5px rgba(255, 255, 255, 0.1), inset -2px 0 5px rgba(0, 0, 0, 0.4);
    border: 2px solid #454d55;
    left: 2%;
    bottom: -5%;
    z-index: 4;
    transform: rotate(-8deg);
}

.mobile-device::before {
    content: '';
    position: absolute;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: 35%;
    height: 16px;
    background: #000;
    border-radius: 8px;
    z-index: 5;
}

.mobile-device::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 35%;
    height: 4px;
    background: #454d55;
    border-radius: 2px;
    z-index: 5;
}

.mobile-device .screen {
    background: #fff;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.printer-mockup {
    position: relative;
    width: 130px;
    height: 160px;
    background: #1a1c1e;
    border-radius: 12px 12px 4px 4px;
    box-shadow: -10px 15px 30px rgba(0, 0, 0, 0.4), inset 2px 2px 5px rgba(255, 255, 255, 0.05);
    border: 2px solid #0f1112;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1;
    margin-bottom: 20px;
}

.printer-top {
    width: 100%;
    height: 35px;
    background: #2b2e33;
    border-radius: 10px 10px 0 0;
    border-bottom: 2px solid #0f1112;
    position: relative;
    z-index: 2;
}

.printer-slot {
    width: 80%;
    height: 6px;
    background: #000;
    margin: 8px auto 0;
    border-radius: 3px;
    box-shadow: inset 0 2px 3px rgba(0, 0, 0, 1);
}

.printer-paper {
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    height: 50px;
    background: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 -5px 10px rgba(0, 0, 0, 0.1);
    border-radius: 2px 2px 0 0;
    z-index: 1;
    background-image: repeating-linear-gradient(180deg, transparent, transparent 15px, #f0f0f0 15px, #f0f0f0 16px);
    animation: printTicket 2.5s ease-out forwards;
    animation-delay: 1s;
}

@keyframes printTicket {
    0% {
        height: 5px;
        top: -5px;
    }

    100% {
        height: 110px;
        top: -110px;
    }
}

.printer-lights {
    display: flex;
    gap: 10px;
    margin-top: auto;
    margin-bottom: 15px;
}

.printer-light {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #444;
}

.printer-light.green {
    background: #28a745;
    box-shadow: 0 0 6px #28a745;
}

.printer-light.red {
    background: #dc3545;
}