/* TILLR POS Custom Styles */

/* Global Typography: Manrope across all elements */
html,
body,
input,
button,
select,
textarea {
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

.material-symbols-outlined {
    font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.glass-nav {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.glass-panel {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(24px);
}

/* Smooth Scroll & Fixed Header Offset for Anchor Links */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 60px;
}

[id],
section[id] {
    scroll-margin-top: 60px;
}

.prose h2,
.prose h3,
.prose section {
    scroll-margin-top: 60px;
}

/* Sticky Sidebar for Legal Pages */
.legal-sidebar {
    position: -webkit-sticky;
    position: sticky;
    top: 96px;
    align-self: start;
    height: fit-content;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.feature-card {
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.feature-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 30px 60px -12px rgba(0, 83, 219, 0.12);
    border-color: #158118;
}

/* Default Animated Feature Icons */
.feature-icon-wrapper {
    position: relative;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    will-change: transform, box-shadow;
    box-shadow: 0 10px 24px -6px rgba(0, 0, 0, 0.08);
}

/* Ambient glowing pulse ring by default */
.feature-icon-wrapper::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 1.15rem;
    border: 2px solid rgba(255, 255, 255, 0.5);
    opacity: 0;
    animation: iconPulseRing 3.2s cubic-bezier(0.25, 0.8, 0.25, 1) infinite;
    pointer-events: none;
}

@keyframes iconPulseRing {
    0% {
        transform: scale(0.92);
        opacity: 0.7;
    }

    45% {
        transform: scale(1.18);
        opacity: 0;
    }

    100% {
        transform: scale(1.18);
        opacity: 0;
    }
}

/* Default smooth floating motion for each icon box */
.feature-icon-wrapper.anim-box-1 {
    animation: floatBox1 3.2s ease-in-out infinite;
}

.feature-icon-wrapper.anim-box-2 {
    animation: floatBox2 3.6s ease-in-out infinite 0.4s;
}

.feature-icon-wrapper.anim-box-3 {
    animation: floatBox3 3.0s ease-in-out infinite 0.8s;
}

.feature-icon-wrapper.anim-box-4 {
    animation: floatBox4 3.5s ease-in-out infinite 1.2s;
}

.feature-icon-wrapper.anim-box-5 {
    animation: floatBox5 3.3s ease-in-out infinite 1.6s;
}

.feature-icon-wrapper.anim-box-6 {
    animation: floatBox6 3.7s ease-in-out infinite 2.0s;
}

@keyframes floatBox1 {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

@keyframes floatBox2 {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-7px);
    }
}

@keyframes floatBox3 {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

@keyframes floatBox4 {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

@keyframes floatBox5 {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

@keyframes floatBox6 {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

/* Staggered pulse rings */
.anim-box-1::after {
    animation-delay: 0s;
}

.anim-box-2::after {
    animation-delay: 0.5s;
}

.anim-box-3::after {
    animation-delay: 1.0s;
}

.anim-box-4::after {
    animation-delay: 1.5s;
}

.anim-box-5::after {
    animation-delay: 2.0s;
}

.anim-box-6::after {
    animation-delay: 2.5s;
}

/* Individual icon animations */
.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    will-change: transform;
    transition: transform 0.4s ease;
}

/* 1. Smart Inventory: Bobbing & bounce */
.icon-inventory {
    animation: animInventory 2.8s ease-in-out infinite;
}

@keyframes animInventory {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    35% {
        transform: translateY(-6px) scale(1.09);
    }

    70% {
        transform: translateY(2px) scale(0.96);
    }
}

/* 2. Deep Analytics: Line Chart Pulse & Surge */
.icon-analytics {
    animation: animAnalytics 2.6s ease-in-out infinite;
}

@keyframes animAnalytics {

    0%,
    100% {
        transform: translateY(0) scale(1) rotate(0deg);
    }

    30% {
        transform: translateY(-5px) scale(1.14) rotate(-4deg);
    }

    60% {
        transform: translateY(-2px) scale(1.06) rotate(4deg);
    }
}

/* 3. Integrated CRM: Heartbeat Rhythm */
.icon-crm {
    animation: animCrm 2.2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

@keyframes animCrm {

    0%,
    100% {
        transform: scale(1);
    }

    14% {
        transform: scale(1.22);
    }

    28% {
        transform: scale(1.06);
    }

    42% {
        transform: scale(1.25);
    }

    70% {
        transform: scale(1);
    }
}

/* 4. Roles & Access: Shield Protect Tilt & Shimmer */
.icon-roles {
    animation: animRoles 3.2s ease-in-out infinite;
}

@keyframes animRoles {

    0%,
    100% {
        transform: rotate(0deg) scale(1);
    }

    25% {
        transform: rotate(-8deg) scale(1.1);
    }

    75% {
        transform: rotate(8deg) scale(1.1);
    }
}

/* 5. Custom Meta Fields: Code Brackets Breathing */
.icon-meta {
    animation: animMeta 2.5s ease-in-out infinite;
}

@keyframes animMeta {

    0%,
    100% {
        transform: scaleX(1) scaleY(1);
    }

    50% {
        transform: scaleX(1.3) scaleY(0.92);
    }
}

/* 6. Order Management: Shopping Bag Pendulum Swing */
.icon-orders {
    transform-origin: top center;
    animation: animOrders 2.5s ease-in-out infinite;
}

@keyframes animOrders {

    0%,
    100% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(-10deg) translateY(-2px);
    }

    75% {
        transform: rotate(10deg) translateY(-2px);
    }
}

/* On Card Hover: energetic pop */
.feature-card:hover .feature-icon-wrapper {
    transform: scale(1.16) translateY(-4px) !important;
    background-color: #158118 !important;
    color: #ffffff !important;
    box-shadow: 0 20px 35px -8px rgba(21, 129, 24, 0.45);
}

.feature-card:hover .feature-icon {
    transform: scale(1.12) rotate(6deg);
}

.gradient-text {
    background: linear-gradient(135deg, #0b3d10, #158118);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-pattern {
    background-color: #ffffff;
    background-image: radial-gradient(#158118 0.4px, transparent 0.4px), radial-gradient(#158118 0.4px, #ffffff 0.4px);
    background-size: 24px 24px;
    background-position: 0 0, 12px 12px;
    background-attachment: fixed;
}

.blob {
    animation: morph 12s ease-in-out infinite;
}

@keyframes morph {

    0%,
    100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }

    50% {
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
    }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.floating {
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Interactive register demo */
#posDemo {
    position: relative;
}

.pos-cat {
    white-space: nowrap;
    flex: none;
    font-size: 12px;
    font-weight: 700;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #475569;
    transition: all .2s;
}

.pos-cat:hover {
    border-color: #158118;
    color: #158118;
}

.pos-cat.active {
    background: #0b3d10;
    color: #fff;
    border-color: #0b3d10;
}

.pos-prod {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 8px;
    cursor: pointer;
    text-align: left;
    position: relative;
    overflow: hidden;
    transition: transform .25s cubic-bezier(.23, 1, .32, 1), box-shadow .25s, border-color .25s;
}

.pos-prod:hover {
    transform: translateY(-4px);
    border-color: #158118;
    box-shadow: 0 16px 30px -18px rgba(0, 83, 219, .6);
}

.pos-prod:active {
    transform: scale(.96);
}

.pos-prod.added {
    animation: posPop .4s cubic-bezier(.23, 1, .32, 1);
}

@keyframes posPop {
    30% {
        transform: scale(1.06);
        border-color: #10b981;
    }
}

.pos-prod .img {
    height: 84px;
    border-radius: 10px;
    background-size: cover;
    background-position: center;
    transition: transform .5s cubic-bezier(.23, 1, .32, 1);
}

.pos-prod:hover .img {
    transform: scale(1.06);
}

.pos-prod .imgwrap {
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 8px;
}

.pos-prod .badge {
    position: absolute;
    top: 14px;
    right: 14px;
    font-size: 10px;
    font-weight: 800;
    background: #10b981;
    color: #fff;
    padding: 2px 7px;
    border-radius: 6px;
    letter-spacing: .04em;
}

.pos-prod .stock {
    position: absolute;
    top: 14px;
    left: 14px;
    font-size: 10px;
    font-weight: 700;
    background: rgba(255, 255, 255, .9);
    color: #334155;
    padding: 2px 7px;
    border-radius: 6px;
}

.pos-prod .stock.low {
    color: #dc2626;
}

.pos-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px dashed #e2e8f0;
    font-size: 13px;
    animation: posDrop .35s cubic-bezier(.23, 1, .32, 1);
}

@keyframes posDrop {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
}

.pos-qty {
    display: inline-flex;
    align-items: center;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}

.pos-qty button {
    width: 24px;
    height: 24px;
    font-weight: 800;
    color: #158118;
    background: #f8fafc;
}

.pos-qty button:hover {
    background: #dbeafe;
}

.pos-qty span {
    width: 26px;
    text-align: center;
    font-weight: 700;
    font-size: 12px;
}

.pos-pay {
    font-size: 12px;
    font-weight: 700;
    padding: 8px 0;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    color: #475569;
    transition: all .2s;
}

.pos-pay.active {
    background: #158118;
    color: #fff;
    border-color: #158118;
}

#posReceiptWrap.show {
    opacity: 1;
    pointer-events: auto;
}

#posReceipt {
    -webkit-mask: linear-gradient(#000 0 0) top/100% calc(100% - 8px) no-repeat, radial-gradient(circle at 50% 100%, transparent 5px, #000 5.5px) bottom/12px 12px repeat-x;
    mask: linear-gradient(#000 0 0) top/100% calc(100% - 8px) no-repeat, radial-gradient(circle at 50% 100%, transparent 5px, #000 5.5px) bottom/12px 12px repeat-x;
    animation: posPrint .8s cubic-bezier(.23, 1, .32, 1);
}

@keyframes posPrint {
    from {
        clip-path: inset(0 0 100% 0);
        transform: translateY(-30px);
    }

    to {
        clip-path: inset(0);
    }
}

#posReceipt hr {
    border: 0;
    border-top: 1px dashed #94a3b8;
    margin: 8px 0;
}

#posReceipt .r {
    display: flex;
    justify-content: space-between;
}

#posReceipt .bar {
    margin-top: 12px;
    height: 26px;
    background: repeating-linear-gradient(90deg, #111 0 2px, transparent 2px 4px, #111 4px 5px, transparent 5px 8px, #111 8px 11px, transparent 11px 13px);
}

.pos-toast {
    position: fixed;
    left: 50%;
    bottom: 28px;
    transform: translate(-50%, 20px);
    background: #0b3d10;
    color: #fff;
    padding: 12px 20px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    opacity: 0;
    transition: all .35s cubic-bezier(.23, 1, .32, 1);
    z-index: 99;
    pointer-events: none;
    box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .6);
    display: flex;
    align-items: center;
    gap: 8px;
}

.pos-toast.show {
    opacity: 1;
    transform: translate(-50%, 0);
}

/* Terminal showcase */
.term-tab {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 16px;
    text-align: left;
    width: 100%;
    padding: 18px 18px 22px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, .08);
    background: rgba(255, 255, 255, .03);
    position: relative;
    overflow: hidden;
    transition: all .3s;
}

.term-tab:hover {
    background: rgba(255, 255, 255, .07);
}

.term-tab.active {
    background: rgba(255, 255, 255, .09);
    border-color: rgba(255, 255, 255, .2);
}

.term-tab h4 {
    font-weight: 800;
    font-size: 17px;
    color: #fff;
}

.term-tab p {
    font-size: 13.5px;
    color: rgba(219, 234, 254, .6);
    margin-top: 4px;
    line-height: 1.5;
}

.term-ico {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    position: relative;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    will-change: transform;
    box-shadow: 0 4px 14px -2px rgba(0, 0, 0, 0.3);
}

/* Default ambient glowing ring on term-ico */
.term-ico::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 17px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    opacity: 0;
    animation: termIcoPulse 3s cubic-bezier(0.25, 0.8, 0.25, 1) infinite;
    pointer-events: none;
}

@keyframes termIcoPulse {
    0% {
        transform: scale(0.92);
        opacity: 0.65;
    }

    50% {
        transform: scale(1.18);
        opacity: 0;
    }

    100% {
        transform: scale(1.18);
        opacity: 0;
    }
}

.term-ico-1 {
    animation: floatTermIco1 3.4s ease-in-out infinite;
}

.term-ico-2 {
    animation: floatTermIco2 3.2s ease-in-out infinite 0.6s;
}

.term-ico-3 {
    animation: floatTermIco3 3.6s ease-in-out infinite 1.2s;
}

.term-ico-1::after {
    animation-delay: 0s;
}

.term-ico-2::after {
    animation-delay: 0.7s;
}

.term-ico-3::after {
    animation-delay: 1.4s;
}

@keyframes floatTermIco1 {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-4px);
    }
}

@keyframes floatTermIco2 {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

@keyframes floatTermIco3 {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-4px);
    }
}

.term-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    will-change: transform;
    transition: transform 0.3s ease;
    color: #ffffff !important;
}

/* 1. Visual product grid & variations: Shapes tilt & pop */
.icon-category {
    animation: animTabCategory 2.8s ease-in-out infinite;
}

@keyframes animTabCategory {

    0%,
    100% {
        transform: scale(1) rotate(0deg);
    }

    30% {
        transform: scale(1.18) rotate(-10deg);
    }

    60% {
        transform: scale(1.12) rotate(8deg);
    }
}

/* 2. 80mm thermal print ready: Thermal Receipt print pulse & feed motion */
.icon-receipt {
    animation: animTabReceipt 2.6s ease-in-out infinite;
}

@keyframes animTabReceipt {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    25% {
        transform: translateY(-4px) scale(1.1);
    }

    50% {
        transform: translateY(2px) scale(1.02);
    }

    75% {
        transform: translateY(-2px) scale(1.08);
    }
}

/* 3. Multi-tender payments: Card & Notes Shuffle Wave */
.icon-payments {
    animation: animTabPayments 2.7s ease-in-out infinite;
}

@keyframes animTabPayments {

    0%,
    100% {
        transform: scale(1) rotate(0deg);
    }

    25% {
        transform: scale(1.15) rotate(-12deg);
    }

    75% {
        transform: scale(1.15) rotate(12deg);
    }
}

/* Active tab icon enhancement */
.term-tab.active .term-ico {
    transform: scale(1.08);
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
    box-shadow: 0 0 24px -2px rgba(255, 255, 255, 0.4), 0 4px 14px -2px rgba(0, 0, 0, 0.3);
}

.term-tab.active .term-icon {
    color: #ffffff !important;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.9));
}

.term-bar {
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    width: 0;
    background: linear-gradient(90deg, #60a5fa, #34d399);
}

.term-tab.active .term-bar {
    animation: termBar 5s linear forwards;
}

@keyframes termBar {
    to {
        width: 100%;
    }
}

.term-stage {
    position: relative;
    perspective: 1600px;
}

.term-panel {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: translateY(30px) rotateX(8deg);
    transition: all .6s cubic-bezier(.23, 1, .32, 1);
    pointer-events: none;
}

.term-panel.active {
    position: relative;
    opacity: 1;
    transform: none;
    pointer-events: auto;
}

.term-screen {
    background: #fff;
    color: #0f172a;
    border-radius: 24px;
    padding: 16px;
    min-height: 360px;
    box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .1);
    position: relative;
    overflow: hidden;
}

.term-pill {
    font-size: 11px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid #e2e8f0;
    color: #475569;
}

.term-pill.on {
    background: #0b3d10;
    color: #fff;
    border-color: #0b3d10;
}

.term-prod {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 7px;
    position: relative;
}

.term-prod .im {
    height: 58px;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    margin-bottom: 6px;
}

.term-prod b {
    display: block;
    font-size: 11.5px;
    font-weight: 700;
}

.term-prod small {
    font-size: 10.5px;
    color: #158118;
    font-weight: 700;
}

.term-prod em {
    position: absolute;
    top: 11px;
    right: 11px;
    font-style: normal;
    font-size: 9px;
    font-weight: 800;
    background: #10b981;
    color: #fff;
    padding: 2px 6px;
    border-radius: 5px;
}

.term-prod.tapped {
    border-color: #158118;
}

.term-prod .ring {
    position: absolute;
    inset: -4px;
    border-radius: 14px;
    border: 2px solid #158118;
    animation: termRing 1.6s ease-out infinite;
}

@keyframes termRing {
    0% {
        opacity: .9;
        transform: scale(.96);
    }

    100% {
        opacity: 0;
        transform: scale(1.12);
    }
}

.term-modal {
    position: absolute;
    left: 22px;
    right: 22px;
    bottom: 22px;
    background: #fff;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 -10px 40px -10px rgba(0, 17, 59, .35), 0 0 0 1px #e2e8f0;
    animation: termUp .6s .5s cubic-bezier(.23, 1, .32, 1) both;
}

@keyframes termUp {
    from {
        transform: translateY(120%);
        opacity: 0;
    }
}

.term-var {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 12px;
    align-items: center;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 12.5px;
    font-weight: 600;
    margin-bottom: 6px;
}

.term-var small {
    color: #94a3b8;
    font-weight: 600;
    font-size: 11px;
}

.term-var b {
    color: #158118;
}

.term-var.sel {
    border-color: #158118;
    background: #eff6ff;
    box-shadow: 0 0 0 3px rgba(0, 83, 219, .12);
}

.term-cta {
    background: #0b3d10;
    color: #fff;
    text-align: center;
    font-weight: 800;
    font-size: 13px;
    padding: 12px;
    border-radius: 10px;
    margin-top: 6px;
}

.term-printer {
    width: 150px;
    height: 110px;
    background: linear-gradient(180deg, #1e293b, #0f172a);
    border-radius: 14px;
    position: relative;
    box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .15);
}

.term-printer .slot {
    position: absolute;
    top: 14px;
    left: 16px;
    right: 16px;
    height: 6px;
    background: #000;
    border-radius: 3px;
    box-shadow: inset 0 1px 3px rgba(255, 255, 255, .1);
}

.term-printer .led {
    position: absolute;
    bottom: 14px;
    right: 16px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 10px #10b981;
    animation: termLed 1s infinite alternate;
}

@keyframes termLed {
    to {
        opacity: .3;
    }
}

.term-printer .lbl {
    position: absolute;
    bottom: 12px;
    left: 16px;
    font-size: 9px;
    letter-spacing: .15em;
    color: rgba(255, 255, 255, .4);
    font-weight: 700;
}

.term-receipt {
    width: 220px;
    background: #fff;
    padding: 16px 14px 20px;
    font-family: ui-monospace, Menlo, monospace;
    font-size: 10.5px;
    box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .5), 0 0 0 1px #e2e8f0;
    -webkit-mask: linear-gradient(#000 0 0) top/100% calc(100% - 8px) no-repeat, radial-gradient(circle at 50% 100%, transparent 5px, #000 5.5px) bottom/12px 12px repeat-x;
    mask: linear-gradient(#000 0 0) top/100% calc(100% - 8px) no-repeat, radial-gradient(circle at 50% 100%, transparent 5px, #000 5.5px) bottom/12px 12px repeat-x;
}

.term-panel.active .term-receipt {
    animation: termPrint 1.4s .2s cubic-bezier(.23, 1, .32, 1) both;
}

@keyframes termPrint {
    from {
        clip-path: inset(0 0 100% 0);
        transform: translateY(-40px);
    }

    to {
        clip-path: inset(0);
    }
}

.term-receipt hr {
    border: 0;
    border-top: 1px dashed #94a3b8;
    margin: 7px 0;
}

.term-receipt .r {
    display: flex;
    justify-content: space-between;
}

.term-receipt .bar {
    margin-top: 10px;
    height: 22px;
    background: repeating-linear-gradient(90deg, #111 0 2px, transparent 2px 4px, #111 4px 5px, transparent 5px 8px, #111 8px 11px, transparent 11px 13px);
}

.term-tender {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 700;
    padding: 12px 0;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    color: #475569;
}

.term-tender .material-symbols-outlined {
    font-size: 20px;
}

.term-tender.on {
    background: #158118;
    color: #fff;
    border-color: #158118;
    box-shadow: 0 10px 20px -10px rgba(0, 83, 219, .7);
}

.term-split {
    display: grid;
    grid-template-columns: 24px 60px 1fr auto;
    gap: 12px;
    align-items: center;
    font-size: 12.5px;
    font-weight: 700;
    padding: 10px 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.term-split .tr {
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}

.term-split .tr i {
    display: block;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #158118, #10b981);
    border-radius: 4px;
}

.term-panel.active .term-split .tr i {
    animation: termFill 1.2s .3s cubic-bezier(.23, 1, .32, 1) forwards;
}

.term-panel.active .term-split:nth-child(2) .tr i {
    animation-delay: .9s;
}

@keyframes termFill {
    to {
        width: var(--w);
    }
}

.term-panel.active #termPayBtn {
    animation: termGo .5s 2.1s both;
    background: #10b981;
}

@keyframes termGo {
    from {
        background: #0b3d10;
        transform: scale(.98);
    }
}

.term-float {
    animation: floating 4s ease-in-out infinite;
}

@media (min-width:640px) {
    .term-screen {
        padding: 22px;
        min-height: 380px;
    }
}

@media (max-width:640px) {
    .term-tab {
        padding: 14px 14px 18px;
        gap: 12px;
        grid-template-columns: 38px 1fr;
    }

    .term-tab h4 {
        font-size: 15px;
    }

    .term-tab p {
        font-size: 12.5px;
    }

    .term-ico {
        width: 38px;
        height: 38px;
    }

    .term-modal {
        left: 12px;
        right: 12px;
        bottom: 12px;
        padding: 12px;
    }

    .term-var {
        grid-template-columns: 1fr auto;
        gap: 8px;
    }

    .term-var small {
        display: none;
    }

    .term-prod .im {
        height: 48px;
    }

    .term-screen.flex {
        flex-direction: column;
        gap: 20px;
    }

    .term-printer2 {
        width: 220px;
    }

    .term-feed {
        width: 200px;
    }

    .term-receipt2 {
        width: 200px;
    }
}

.pos-prod .img {
    height: 72px;
}

@media (min-width:640px) {
    .pos-prod .img {
        height: 84px;
    }
}

html,
body {
    overflow-x: clip;
}

/* Thermal print animation */
.term-print-screen {
    background: linear-gradient(180deg, #f1f5f9, #fff 40%);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 18px;
}

.term-print-status {
    align-self: flex-start;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #475569;
    margin-bottom: 14px;
}

.term-print-status .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, .6);
    animation: termPulse 1s infinite;
}

@keyframes termPulse {
    70% {
        box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.term-printer2 {
    width: 260px;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 18px 24px rgba(15, 23, 42, .35));
}

.term-printer2 .top {
    height: 64px;
    background: linear-gradient(180deg, #334155, #1e293b);
    border-radius: 16px 16px 6px 6px;
    position: relative;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2);
}

.term-printer2 .lid {
    position: absolute;
    left: 14px;
    right: 14px;
    top: 10px;
    height: 22px;
    border-radius: 6px;
    background: linear-gradient(180deg, #475569, #334155);
    box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .35);
}

.term-printer2 .brand {
    position: absolute;
    left: 16px;
    bottom: 9px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .18em;
    color: rgba(255, 255, 255, .45);
}

.term-printer2 .led {
    position: absolute;
    right: 16px;
    bottom: 11px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 10px #10b981;
    animation: termLed .35s infinite alternate;
}

.term-printer2 .mouth {
    height: 16px;
    background: #0f172a;
    border-radius: 0 0 12px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.term-printer2 .slot {
    width: 220px;
    height: 5px;
    background: #000;
    border-radius: 3px;
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, .15);
}

.term-feed {
    width: 220px;
    margin-top: -2px;
    overflow: hidden;
    height: 0;
    position: relative;
    z-index: 1;
}

.term-panel.active .term-feed {
    animation: termFeed 2.6s .4s cubic-bezier(.4, 0, .2, 1) forwards;
}

@keyframes termFeed {
    to {
        height: 270px;
    }
}

.term-receipt2 {
    width: 220px;
    background: #fff;
    padding: 14px 14px 20px;
    font-family: ui-monospace, Menlo, monospace;
    font-size: 10.5px;
    color: #0f172a;
    box-shadow: 0 20px 30px -20px rgba(0, 0, 0, .5), 0 0 0 1px #e2e8f0;
    position: absolute;
    top: 0;
    left: 0;
    -webkit-mask: linear-gradient(#000 0 0) top/100% calc(100% - 8px) no-repeat, radial-gradient(circle at 50% 100%, transparent 5px, #000 5.5px) bottom/12px 12px repeat-x;
    mask: linear-gradient(#000 0 0) top/100% calc(100% - 8px) no-repeat, radial-gradient(circle at 50% 100%, transparent 5px, #000 5.5px) bottom/12px 12px repeat-x;
}

.term-panel.active .term-receipt2 {
    animation: termJitter .12s .4s 22 alternate;
}

@keyframes termJitter {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(.6px);
    }
}

.term-receipt2 hr {
    border: 0;
    border-top: 1px dashed #94a3b8;
    margin: 7px 0;
}

.term-receipt2 .r {
    display: flex;
    justify-content: space-between;
}

.term-receipt2 .bar {
    margin-top: 10px;
    height: 22px;
    background: repeating-linear-gradient(90deg, #111 0 2px, transparent 2px 4px, #111 4px 5px, transparent 5px 8px, #111 8px 11px, transparent 11px 13px);
}