.unholy-pos{--up-bg:#18171a;--up-panel:#252329;--up-accent:#c69da8;--up-text:#f6f0f2;--up-border:#49434b;color:var(--up-text);background:var(--up-bg);padding:20px;border-radius:16px;font-family:system-ui,-apple-system,sans-serif}.unholy-pos *{box-sizing:border-box}.up-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}.up-header h2{color:white;margin:0;font-size:26px;letter-spacing:1px}.up-header h2 span{color:var(--up-accent)}.up-header small,.up-muted{color:#bcb4bb}.up-pill{background:#36303a;border-radius:30px;padding:8px 12px;font-size:12px}.up-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(290px,360px);gap:16px}.up-panel{background:var(--up-panel);padding:16px;border-radius:12px;min-width:0}.up-toolbar{display:flex;gap:8px;margin-bottom:16px}.unholy-pos input{background:#fff;color:#171717;border:1px solid #aaa;border-radius:8px;padding:12px;width:100%;min-width:0}.unholy-pos button{cursor:pointer;border:0;border-radius:9px;padding:10px 13px;min-height:42px;background:#514951;color:#fff;font:inherit}.unholy-pos button:disabled{opacity:.4;cursor:not-allowed}.up-products{display:grid;grid-template-columns:repeat(auto-fill,minmax(135px,1fr));gap:10px}.unholy-pos .up-product{background:#343039;display:flex;flex-direction:column;text-align:left;align-items:stretch;gap:7px;padding:10px;min-height:190px}.up-product img{width:100%;height:105px;object-fit:cover;border-radius:7px;background:#eee}.up-product strong{font-size:13px;line-height:1.3}.up-product span{color:#eac9d2}.up-product small{color:#ccc}.up-pages{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:16px;font-size:12px}.up-cart h3{color:#fff;margin:0 0 14px}.up-lines{min-height:130px}.up-line{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:12px 0;border-bottom:1px solid var(--up-border)}.up-line strong{display:block;font-size:13px}.up-line small{color:#c5bbc3}.up-qty{display:flex;align-items:center;gap:8px}.up-qty button{min-height:34px;padding:5px 11px}.up-total-row{display:flex;justify-content:space-between;margin:10px 0}.up-grand{font-size:20px;padding-top:12px;border-top:1px solid var(--up-border)}.up-cart label{display:block;margin:18px 0 6px}.up-cart .up-primary,.up-cart .up-secondary{display:block;width:100%;margin-top:10px}.unholy-pos .up-primary{background:var(--up-accent);color:#20191d;font-weight:800}.up-error{color:#ffb8b8;margin-top:12px}.up-success{color:#a5efb6;margin-top:12px}@media(max-width:850px){.up-layout{grid-template-columns:1fr}.up-cart{order:2}}@media(max-width:480px){.unholy-pos{padding:10px}.up-header h2{font-size:21px}.up-pill{font-size:10px}.up-products{grid-template-columns:repeat(2,minmax(0,1fr))}.up-panel{padding:12px}}
.up-categories{display:flex;gap:8px;overflow-x:auto;padding:0 0 14px;margin-bottom:3px;scrollbar-width:thin}.up-categories button{white-space:nowrap;flex-shrink:0;background:#403840}.up-categories button.selected{background:#c69da8;color:#211920;font-weight:800}.up-coupon{margin-top:10px}.up-coupon label{display:block;margin:8px 0}.up-coupon .up-toolbar{margin-bottom:0}.up-quick{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin-top:10px}.up-quick button{padding:8px 4px}.up-qty{flex-wrap:nowrap}.up-qty button{min-width:33px;touch-action:manipulation}.up-product{touch-action:manipulation}.up-cart #up-change{min-height:25px;margin-top:9px}.up-products{align-content:start}@media(max-width:600px){.up-qty{gap:4px}.up-line{align-items:flex-start}.up-quick{grid-template-columns:repeat(3,1fr)}}

.up-header-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.up-history{background:#282229;border:1px solid #544751;border-radius:12px;padding:18px;margin:15px 0;color:#f4eaf0}.up-history[hidden]{display:none}.up-history-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid #514650;flex-wrap:wrap}.up-history-row button{margin-left:10px}.up-history-list{max-height:420px;overflow-y:auto}#up-recent-receipt button{width:100%;margin-top:10px}@media(max-width:480px){.up-header-actions{width:100%}.up-history{padding:12px}}
/* v1.3.0 manual cash box */
#up-session-panel .up-toolbar{display:flex;flex-wrap:wrap;gap:10px;margin:12px 0}#up-session-panel .up-toolbar input{min-width:160px;flex:1}#up-session-panel button{min-height:42px}#up-session-message{color:#ffb9b9}

.up-modal[hidden]{display:none}.up-modal{position:fixed;inset:0;z-index:999999;background:rgba(0,0,0,.78);display:flex;align-items:center;justify-content:center;padding:16px}.up-modal-panel{background:#28242b;color:#fff;border:1px solid #725963;border-radius:16px;width:min(100%,520px);max-height:94vh;overflow:auto;padding:24px;box-shadow:0 18px 70px #0008}.up-modal-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.up-modal-head h3{margin:0;color:#fff}.up-modal #up-square-card{min-height:95px;margin:18px 0;background:#fff;padding:10px;border-radius:9px}.up-modal #up-card-error{color:#ffb6bd}.up-modal .up-primary{width:100%}@media(max-width:540px){.up-modal{padding:0}.up-modal-panel{width:100%;height:100%;max-height:100%;border-radius:0;padding:20px}}
/* v2.0 customer panel */
.up-customer{border:1px solid rgba(127,127,127,.3);border-radius:10px;padding:12px;margin:12px 0}
.up-customer h4{margin:0 0 8px}.up-customer h4 small{font-weight:normal;opacity:.75}
.up-customer .up-toolbar{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0}
.up-customer label{display:block;margin:9px 0}
.up-customer label input{display:block;width:100%;box-sizing:border-box;margin-top:4px}
.up-customer-result{display:flex;gap:8px;align-items:center;flex-wrap:wrap;padding:8px 0;border-bottom:1px solid rgba(127,127,127,.25)}
.up-customer-result span{flex:1;min-width:160px;overflow-wrap:anywhere}
.up-customer-history{border:1px solid rgba(127,127,127,.3);padding:10px;margin:10px 0;border-radius:6px;max-height:240px;overflow:auto}

/* v2.5.0 — Dark & Sinful visual layer; scoped to the POS register */
.unholy-pos{--up-bg:#17171b;--up-panel:#282830;--up-accent:#b9bbc5;--up-text:#f6f2f4;--up-border:#45414b;background:radial-gradient(ellipse at 5% 0%,rgba(101,28,50,.22),transparent 46%),#17171b;color:var(--up-text);border:1px solid #3d343e;border-radius:18px;box-shadow:0 18px 50px rgba(0,0,0,.25);line-height:1.45}
.unholy-pos .up-header{padding-bottom:15px;border-bottom:1px solid #463743}
.unholy-pos .up-header h2{font-weight:800;letter-spacing:.045em}
.unholy-pos .up-header h2 span{color:#d8b8c4}
.unholy-pos .up-panel{background:linear-gradient(150deg,#2c2931,#24232a);border:1px solid #48404b;border-radius:15px;box-shadow:0 8px 24px rgba(0,0,0,.14)}
.unholy-pos .up-cart{border-top:3px solid #78223d}
.unholy-pos .up-pill{background:#302832;border:1px solid #5c4150;color:#e9dce1}
.unholy-pos input,.unholy-pos select,.unholy-pos textarea{background:#1d1d23;color:#f6f2f4;border:1px solid #625762;border-radius:9px}
.unholy-pos input::placeholder,.unholy-pos textarea::placeholder{color:#b6aeb8}
.unholy-pos input:focus-visible,.unholy-pos select:focus-visible,.unholy-pos button:focus-visible{outline:3px solid #e4b6c7;outline-offset:2px}
.unholy-pos button{background:#423943;color:#faf6f8;border:1px solid #65515f;border-radius:10px;transition:background-color .14s,border-color .14s,transform .14s}
.unholy-pos button:hover:not(:disabled){background:#594251;border-color:#9b6379}
.unholy-pos button:active:not(:disabled){transform:translateY(1px)}
.unholy-pos .up-primary{background:#651c32;color:#fff;border-color:#a2536d;font-weight:800}
.unholy-pos .up-primary:hover:not(:disabled){background:#832845;border-color:#d38da5}
.unholy-pos .up-secondary{background:#34303a;border-color:#74636f}
.unholy-pos .up-categories button{background:#322d36;border:1px solid #554553}
.unholy-pos .up-categories button.selected{background:#651c32;color:#fff;border-color:#b7768c}
.unholy-pos .up-product{background:#302d36;border:1px solid #514650;border-radius:13px;box-shadow:0 4px 12px #0002}
.unholy-pos .up-product:hover:not(:disabled){background:#40323f;border-color:#a46c82}
.unholy-pos .up-product img{border-radius:9px;background:#ede9ea}
.unholy-pos .up-product span{color:#edc5d2}
.unholy-pos .up-line{border-bottom-color:#49404a}
.unholy-pos .up-grand{font-weight:800;color:#fff;border-top-color:#8c5165}
.unholy-pos .up-customer,.unholy-pos .up-customer-history{background:#24222a;border-color:#594752}
.unholy-pos .up-history,.unholy-pos .up-modal-panel{background:#27242d;border-color:#765063;box-shadow:0 22px 65px #0007}
.unholy-pos .up-success{color:#b9f1c8}.unholy-pos .up-error{color:#ffb7c0}
@media(prefers-reduced-motion:reduce){.unholy-pos button{transition:none}}


/* HELLFIRE 2.5.1 — scoped, visual-only overrides */
.unholy-pos{--up-bg:#0b090d;--up-panel:#1a121b;--up-accent:#ff4565;--up-text:#f8edf0;--up-border:#603044;background:radial-gradient(ellipse 70% 38% at 50% -10%,#7d163a77,transparent 85%),linear-gradient(145deg,#120b12,#08080b 75%);border:1px solid #822544;border-radius:20px;padding:22px;box-shadow:0 0 42px #a112322a,0 24px 65px #0009;position:relative;isolation:isolate}
.unholy-pos:before{content:"";position:absolute;inset:4px;pointer-events:none;border:1px solid #c0c0c81c;border-radius:17px;z-index:-1}
.unholy-pos .up-header{background:linear-gradient(105deg,#210e1b,#510f2a 54%,#1a0d17);border:1px solid #a112327a;border-bottom:3px solid #c0224b;border-radius:15px;padding:20px 22px;margin-bottom:20px;box-shadow:inset 0 1px #e7a3b536,0 12px 28px #0006;position:relative;overflow:hidden}
.unholy-pos .up-header:after{content:"✦  ◆  ✦";position:absolute;right:18px;top:6px;font-size:11px;letter-spacing:9px;color:#e5a7b466;pointer-events:none}
.unholy-pos .up-header h2{font-family:Georgia,"Times New Roman",serif;font-size:clamp(23px,2.8vw,34px);font-weight:700;letter-spacing:.085em;text-shadow:0 2px 16px #000b;margin:0}
.unholy-pos .up-header h2 span{color:#ff607c;text-shadow:0 0 18px #ff274b55}
.unholy-pos .up-pill{background:#130d14;border:1px solid #a24a67;color:#f3cbd7;box-shadow:inset 0 1px #ffffff10;padding:9px 14px}
.unholy-pos .up-layout{gap:18px}
.unholy-pos .up-panel{background:linear-gradient(155deg,#271522,#160f19 55%,#171018);border:1px solid #683149;border-radius:17px;box-shadow:inset 0 1px #ffffff10,0 12px 32px #0007;padding:20px}
.unholy-pos .up-cart{border-top:4px solid #e02b53;box-shadow:0 0 25px #a1123226,inset 0 1px #ffffff0f,0 12px 32px #0008}
.unholy-pos .up-cart h3{font-family:Georgia,serif;font-size:22px;letter-spacing:.045em;color:#fff0f4;padding-bottom:12px;border-bottom:1px solid #69334c}
.unholy-pos .up-categories{gap:9px;padding-bottom:17px}
.unholy-pos .up-categories button{background:linear-gradient(#301c2b,#211522);border:1px solid #70435a;color:#ead4dc;border-radius:100px;font-weight:700;padding:10px 15px;box-shadow:inset 0 1px #ffffff13}
.unholy-pos .up-categories button.selected{background:linear-gradient(125deg,#c21b46,#77112e);border-color:#f16a89;color:#fff;box-shadow:0 0 15px #df1b4950}
.unholy-pos .up-product{background:linear-gradient(165deg,#32202d,#1c141d);border:1px solid #663b50;border-radius:15px;padding:11px;min-height:198px;box-shadow:inset 0 1px #ffffff0b,0 8px 17px #0005;position:relative;overflow:hidden}
.unholy-pos .up-product:before{content:"";position:absolute;left:0;right:0;top:0;height:3px;background:linear-gradient(90deg,transparent,#d42b53,transparent);opacity:.75}
.unholy-pos .up-product:hover:not(:disabled){background:linear-gradient(165deg,#4d263a,#2a1826);border-color:#ee5378;box-shadow:0 0 0 1px #ff456535,0 0 19px #e31b4a39,0 10px 23px #0007;transform:translateY(-2px)}
.unholy-pos .up-product img{height:112px;border-radius:10px;border:1px solid #ffffff1c}
.unholy-pos .up-product strong{font-size:14px;color:#fff1f4}
.unholy-pos .up-product span{font-weight:800;color:#ff7b97;font-size:15px}
.unholy-pos .up-grand{font-size:25px;font-weight:900;letter-spacing:.01em;border-top:2px solid #ba2b51;color:#fff;text-shadow:0 0 16px #ff45653a;background:linear-gradient(90deg,#77142d55,transparent);border-radius:7px;padding:15px 9px}
.unholy-pos button{background:linear-gradient(#3b2937,#2b1d2c);border:1px solid #805069;color:#fff0f4;box-shadow:inset 0 1px #ffffff14}
.unholy-pos button:hover:not(:disabled){background:linear-gradient(#583044,#382235);border-color:#e05479}
.unholy-pos .up-primary{background:linear-gradient(120deg,#df244f,#a11232 60%,#7a1432);border:1px solid #ff7794;color:#fff;box-shadow:inset 0 1px #ffbdcb55,0 4px 16px #b9123e66;font-weight:900;letter-spacing:.025em}
.unholy-pos .up-primary:hover:not(:disabled){background:linear-gradient(120deg,#f03b63,#b91a40);border-color:#ffadc0;box-shadow:0 0 20px #f3245666}
.unholy-pos input,.unholy-pos select,.unholy-pos textarea{background:#120d14;border:1px solid #76455c;color:#fff3f5}
.unholy-pos input:focus-visible,.unholy-pos select:focus-visible,.unholy-pos button:focus-visible{outline:3px solid #ff9ab1;outline-offset:2px}
.unholy-pos .up-customer,.unholy-pos .up-customer-history{background:#1c121c;border:1px solid #6b364f;border-radius:12px}
.unholy-pos .up-history,.unholy-pos .up-modal-panel{background:linear-gradient(150deg,#301927,#170f18);border:1px solid #a34b69;box-shadow:0 25px 75px #000b}
.unholy-pos .up-line{border-bottom-color:#65374c}
.unholy-pos .up-muted,.unholy-pos .up-header small{color:#d5b9c5}
@media(max-width:600px){.unholy-pos{padding:10px}.unholy-pos .up-header{padding:15px 12px}.unholy-pos .up-header:after{display:none}.unholy-pos .up-panel{padding:13px}}
@media(prefers-reduced-motion:reduce){.unholy-pos .up-product:hover:not(:disabled){transform:none}}
