*{margin:0;padding:0;box-sizing:border-box}html{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}body{background-color:#0f172a;color:#e2e8f0;overflow-x:hidden}.container{width:100%;max-width:1200px;margin:0 auto;padding:0 1rem}header{background-color:#1e293b;border-bottom:2px solid #f97316;padding:1rem 0;position:-webkit-sticky;position:sticky;top:0;z-index:50;box-shadow:0 4px 6px rgba(0,0,0,.3)}nav{justify-content:space-between;gap:2rem}.logo,nav{display:flex;align-items:center}.logo{gap:.75rem;font-size:1.5rem;font-weight:700;color:#f97316;text-decoration:none}.logo svg{width:2rem;height:2rem}nav ul{display:flex;list-style:none;gap:0}nav a{display:block;padding:.75rem 1rem;color:#e2e8f0;text-decoration:none;transition:all .3s ease;border-bottom:2px solid transparent}nav a:hover{color:#f97316;border-bottom-color:#f97316}main{padding:2rem 0;min-height:calc(100vh - 4rem)}h1{font-size:2.5rem;margin-bottom:.5rem;font-weight:700}.subtitle{font-size:1.125rem;color:#cbd5e1;margin-bottom:2rem}.dashboard-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));grid-gap:1.5rem;gap:1.5rem;margin-top:2rem}.card{background:linear-gradient(135deg,#1e293b,#334155);border:1px solid #475569;border-radius:.5rem;padding:1.5rem;transition:all .3s ease;cursor:pointer;display:flex;flex-direction:column;gap:1rem}.card:hover{border-color:#f97316;box-shadow:0 0 20px rgba(249,115,22,.3);transform:translateY(-2px)}.card-icon{width:3rem;height:3rem;background-color:rgba(249,115,22,.1);border-radius:.375rem;display:flex;align-items:center;justify-content:center;font-size:1.5rem}.card h3{font-size:1.25rem;font-weight:600;color:#f1f5f9}.card p{font-size:.875rem;color:#cbd5e1;flex-grow:1}.card-link{display:inline-flex;align-items:center;gap:.5rem;color:#f97316;text-decoration:none;font-weight:500;transition:gap .3s ease}.card-link:hover{gap:.75rem}a.btn,button{padding:.75rem 1.5rem;background-color:#f97316;color:#0f172a;border:none;border-radius:.375rem;font-size:1rem;font-weight:600;cursor:pointer;transition:all .3s ease;text-decoration:none;display:inline-flex;align-items:center;gap:.5rem}a.btn:hover,button:hover{background-color:#ea580c;transform:translateY(-2px);box-shadow:0 4px 12px rgba(249,115,22,.4)}a.btn:active,button:active{transform:translateY(0)}button:disabled{opacity:.5;cursor:not-allowed;transform:none}.features{background-color:#1e293b;border-radius:.5rem;padding:2rem;margin-top:3rem;border:1px solid #475569}.features h2{font-size:1.75rem;margin-bottom:1.5rem;color:#f1f5f9}.features-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));grid-gap:1rem;gap:1rem;list-style:none}.features-list li{display:flex;align-items:center;gap:.75rem;padding:.75rem}.features-list li:before{content:"✓";color:#f97316;font-weight:700;font-size:1.25rem}.pos-container{display:flex;flex-direction:column;height:100vh;background-color:#0f172a}.pos-header{background-color:#1e293b;border-bottom:2px solid #f97316;padding:.75rem 1rem;z-index:50;box-shadow:0 2px 4px rgba(0,0,0,.3)}.pos-header-top{gap:1.5rem;max-width:1400px;margin:0 auto}.pos-header-top,.pos-logo{display:flex;align-items:center}.pos-logo{gap:.5rem;color:#f97316;text-decoration:none;font-weight:600;padding:.5rem 1rem;background-color:rgba(249,115,22,.1);border-radius:.375rem;transition:all .3s ease}.pos-logo:hover{background-color:rgba(249,115,22,.2)}.pos-header h1{font-size:1.5rem;margin:0;flex-grow:1}.pos-main{flex:1 1;overflow-y:auto;padding:1rem}.pos-content{display:grid;grid-template-columns:1fr 350px;grid-gap:1rem;gap:1rem;height:100%;max-width:1400px;margin:0 auto}.pos-products{display:flex;flex-direction:column;gap:1rem;background-color:#1e293b;border-radius:.5rem;padding:1rem;min-height:0}.pos-search{width:100%}.search-input{width:100%;padding:.75rem;background-color:#0f172a;border:1px solid #475569;border-radius:.375rem;color:#e2e8f0;font-size:1rem;transition:all .3s ease}.search-input:focus{outline:none;border-color:#f97316;box-shadow:0 0 0 3px rgba(249,115,22,.1)}.pos-categories{display:flex;flex-wrap:wrap;gap:.5rem;padding:.5rem 0;border-bottom:1px solid #475569}.category-btn{padding:.5rem 1rem;background-color:#0f172a;color:#cbd5e1;border:1px solid #475569;border-radius:.375rem;cursor:pointer;transition:all .3s ease;font-size:.875rem;font-weight:500}.category-btn:hover{border-color:#f97316;color:#f97316}.category-btn.active{background-color:#f97316;color:#0f172a;border-color:#f97316}.pos-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));grid-gap:.75rem;gap:.75rem;overflow-y:auto;flex:1 1;padding:.5rem 0}.product-card{display:flex;flex-direction:column;gap:.5rem;padding:1rem;background-color:#0f172a;border:2px solid #475569;border-radius:.375rem;cursor:pointer;transition:all .3s ease;text-align:center;min-height:140px;font-size:.875rem;font-weight:500;position:relative}.product-card:hover:not(:disabled){border-color:#f97316;background-color:rgba(249,115,22,.05);transform:translateY(-2px)}.product-card:active:not(:disabled){transform:translateY(0)}.product-card.out-of-stock{opacity:.5;cursor:not-allowed}.product-card.low-stock{border-color:#eab308}.product-name{font-weight:600;color:#e2e8f0;line-height:1.2;flex-grow:1;display:flex;align-items:center;justify-content:center}.product-price{font-size:1rem;font-weight:700;color:#f97316}.stock-status{position:absolute;top:.5rem;right:.5rem;background-color:#dc2626;color:#fff}.stock-status,.stock-warning{padding:.25rem .5rem;border-radius:.25rem;font-size:.75rem;font-weight:600}.stock-warning{background-color:#eab308;color:#0f172a}.stock-display{font-size:.75rem;color:#94a3b8}.pos-cart,.pos-sidebar{display:flex;flex-direction:column;gap:1rem}.pos-cart{background-color:#1e293b;border-radius:.5rem;padding:1rem;border:1px solid #475569;height:100%;min-height:0}.pos-cart h2{font-size:1.25rem;margin:0;color:#f1f5f9}.cart-empty{text-align:center;color:#94a3b8;padding:2rem 0;flex:1 1;display:flex;align-items:center;justify-content:center}.cart-items{flex:1 1;overflow-y:auto;border-top:1px solid #475569;border-bottom:1px solid #475569;padding:.5rem 0}.cart-item{padding:.75rem 0;border-bottom:1px solid #334155}.cart-item:last-child{border-bottom:none}.cart-item-name{font-weight:600;color:#e2e8f0;font-size:.875rem;margin-bottom:.5rem}.cart-item-controls{display:flex;gap:.25rem;align-items:center;margin-bottom:.5rem}.qty-btn{padding:.25rem .5rem;background-color:#334155;color:#e2e8f0;border:none;border-radius:.25rem;cursor:pointer;font-size:.875rem;font-weight:600;transition:all .2s ease}.qty-btn:hover{background-color:#475569}.qty-input{width:50px;padding:.25rem;background-color:#0f172a;border:1px solid #475569;border-radius:.25rem;color:#e2e8f0;text-align:center;font-size:.875rem;font-weight:600}.qty-input:focus{outline:none;border-color:#f97316}.remove-btn{padding:.25rem .5rem;background-color:#dc2626;color:#fff;border:none;border-radius:.25rem;cursor:pointer;font-size:.875rem;font-weight:600;margin-left:auto;transition:all .2s ease}.remove-btn:hover{background-color:#b91c1c}.cart-item-price{font-weight:700;color:#f97316;font-size:.875rem;text-align:right}.cart-totals{display:flex;flex-direction:column;gap:.5rem;padding:.75rem 0;border-top:1px solid #475569}.total-line{display:flex;justify-content:space-between;font-size:.875rem;color:#cbd5e1}.total-line.total{font-size:1.125rem;font-weight:700;color:#f97316;padding-top:.5rem;border-top:1px solid #475569}.checkout-btn{width:100%;padding:1rem;background-color:#f97316;color:#0f172a;border:none;border-radius:.375rem;font-size:1rem;font-weight:700;cursor:pointer;transition:all .3s ease;touch-action:manipulation}.checkout-btn:hover{background-color:#ea580c;transform:translateY(-2px)}.checkout-btn:active{transform:translateY(0)}.clear-cart-btn{width:100%;padding:.75rem;background-color:#475569;color:#e2e8f0;border:none;border-radius:.375rem;font-size:.875rem;font-weight:600;cursor:pointer;transition:all .3s ease}.clear-cart-btn:hover{background-color:#64748b}.modal-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background-color:rgba(0,0,0,.8);display:flex;align-items:center;justify-content:center;z-index:1000;padding:1rem}.modal{background-color:#1e293b;border-radius:.5rem;padding:2rem;max-width:500px;width:100%;box-shadow:0 20px 25px rgba(0,0,0,.5);border:1px solid #475569}.modal h2{font-size:1.5rem;margin-bottom:1.5rem;color:#f1f5f9}.payment-options{display:grid;grid-template-columns:1fr 1fr;grid-gap:1rem;gap:1rem;margin-bottom:1rem}.payment-btn{padding:1.5rem;background-color:#0f172a;border:2px solid #475569;border-radius:.375rem;color:#e2e8f0;font-size:1rem;font-weight:600;cursor:pointer;transition:all .3s ease;display:flex;flex-direction:column;align-items:center;gap:.5rem}.payment-btn:hover{border-color:#f97316;background-color:rgba(249,115,22,.05)}.payment-form{margin-bottom:1.5rem}.form-line{display:flex;justify-content:space-between;align-items:center;padding:.75rem 0;border-bottom:1px solid #334155}.form-line label{font-weight:600;color:#cbd5e1;font-size:.875rem}.amount-display{font-size:1.25rem;font-weight:700;color:#f97316}.amount-input{padding:.75rem;background-color:#0f172a;border:1px solid #475569;border-radius:.375rem;color:#e2e8f0;font-size:1rem;font-weight:600;width:150px;text-align:right}.amount-input:focus{outline:none;border-color:#f97316;box-shadow:0 0 0 3px rgba(249,115,22,.1)}.form-line.invalid .amount-display{color:#dc2626}.form-line.valid .amount-display{color:#10b981}.modal-buttons{display:flex;gap:1rem;flex-direction:column}.confirm-btn{width:100%;padding:1rem;background-color:#10b981;color:#fff;border:none;border-radius:.375rem;font-size:1rem;font-weight:700;cursor:pointer;transition:all .3s ease}.confirm-btn:hover:not(:disabled){background-color:#059669;transform:translateY(-2px)}.confirm-btn:disabled{opacity:.5;cursor:not-allowed}.cancel-btn{width:100%;padding:1rem;background-color:#475569;color:#e2e8f0;border:none;border-radius:.375rem;font-size:1rem;font-weight:700;cursor:pointer;transition:all .3s ease}.cancel-btn:hover{background-color:#64748b;transform:translateY(-2px)}.receipt-container{display:flex;flex-direction:column;gap:2rem;max-width:600px;margin:2rem auto;padding:2rem;background-color:#1e293b;border-radius:.5rem;border:1px solid #475569}.receipt-paper{background-color:#f1f5f9;color:#0f172a;padding:2rem;border-radius:.375rem;font-family:Courier New,monospace;font-size:.875rem;line-height:1.6;max-height:80vh;overflow-y:auto}.receipt-header{text-align:center;margin-bottom:1.5rem;border-bottom:2px solid #0f172a;padding-bottom:1rem}.receipt-header h1{font-size:1.5rem;margin:0 0 .5rem}.receipt-header p{margin:.25rem 0;font-size:.875rem}.receipt-section{margin-bottom:1rem}.receipt-section p{margin:.25rem 0}.receipt-items{margin-bottom:1rem}.receipt-items table{width:100%;border-collapse:collapse;margin-bottom:.5rem}.receipt-items td,.receipt-items th{padding:.5rem;text-align:left;font-size:.75rem;border-bottom:1px solid #0f172a}.receipt-items th{font-weight:700;background-color:#e2e8f0}.receipt-items td.qty{text-align:center}.receipt-items td.price{text-align:right}.receipt-totals{margin-bottom:1rem;border-top:2px solid #0f172a;padding-top:1rem}.receipt-totals .total-line{display:flex;justify-content:space-between;margin-bottom:.5rem;font-size:.875rem}.receipt-totals .total{font-weight:700;font-size:1rem;border-top:1px solid #0f172a;padding-top:.5rem;margin-top:.5rem}.payment-line{display:flex;justify-content:space-between;margin-bottom:.25rem;font-size:.875rem}.receipt-footer{text-align:center;padding-top:1rem;border-top:2px solid #0f172a}.receipt-footer p{margin:.25rem 0;font-size:.875rem;font-weight:600}.receipt-actions{display:flex;gap:1rem;flex-direction:column}.print-btn{width:100%;padding:1rem;background-color:#0ea5e9;color:#fff;border:none;border-radius:.375rem;font-size:1rem;font-weight:700;cursor:pointer;transition:all .3s ease}.print-btn:hover{background-color:#0284c7;transform:translateY(-2px)}.new-sale-btn{width:100%;padding:1rem;background-color:#f97316;color:#0f172a;border:none;border-radius:.375rem;font-size:1rem;font-weight:700;cursor:pointer;transition:all .3s ease}.new-sale-btn:hover{background-color:#ea580c;transform:translateY(-2px)}@media print{*{margin:0;padding:0}.receipt-paper,body{background:#fff}.receipt-paper{max-height:none;overflow:visible;box-shadow:none;padding:0;border:none;page-break-after:always}.pos-container,.pos-main,.receipt-actions,.receipt-container,.receipt-header,header{display:none}.receipt-paper{display:block}@page{margin:.5cm}}@media (max-width:1024px){.pos-content{grid-template-columns:1fr}.pos-sidebar{max-height:300px}.pos-grid{grid-template-columns:repeat(auto-fill,minmax(120px,1fr))}}@media (max-width:768px){h1{font-size:2rem}nav{flex-direction:column;gap:1rem}nav ul{width:100%;flex-wrap:wrap}.dashboard-grid{grid-template-columns:1fr}.logo{font-size:1.25rem}.pos-header-top{flex-wrap:wrap}.pos-header h1{font-size:1.25rem}.pos-grid{grid-template-columns:repeat(auto-fill,minmax(100px,1fr))}.pos-sidebar{max-height:400px}.payment-options{grid-template-columns:1fr}}@media (max-width:480px){h1{font-size:1.5rem}.subtitle{font-size:1rem}a.btn,button{width:100%;justify-content:center}.container{padding:0 .75rem}main{padding:1rem 0}.pos-container{height:auto}.pos-main{padding:.5rem}.pos-content{grid-template-columns:1fr;gap:.5rem;height:auto}.pos-products{padding:.5rem}.pos-grid{grid-template-columns:repeat(auto-fill,minmax(80px,1fr));gap:.5rem}.pos-categories{gap:.25rem}.category-btn{padding:.4rem .75rem;font-size:.75rem}.product-card{padding:.75rem;min-height:100px;font-size:.75rem}.product-price{font-size:.875rem}.pos-sidebar{max-height:350px}.pos-cart{padding:.75rem}.pos-cart h2{font-size:1rem}.modal{padding:1.5rem}.modal h2{font-size:1.25rem}.receipt-container{padding:1rem;margin:1rem}.receipt-paper{padding:1rem;font-size:.75rem}}@supports (display:standalone){@media (display-mode:standalone){body{padding-top:0}header{padding-top:max(1rem,env(safe-area-inset-top));padding-left:env(safe-area-inset-left);padding-right:env(safe-area-inset-right)}.pos-main,main{padding-left:env(safe-area-inset-left);padding-right:env(safe-area-inset-right);padding-bottom:env(safe-area-inset-bottom)}}}