:root{
    --primary:#5b21b6;--primary-2:#7c3aed;--primary-soft:#f3e8ff;--ink:#18181b;--muted:#71717a;
    --line:#e4e4e7;--surface:#fff;--bg:#f7f7fb;--success:#15803d;--success-soft:#dcfce7;
    --danger:#b91c1c;--danger-soft:#fee2e2;--warning:#a16207;--warning-soft:#fef3c7;--info:#0369a1;--info-soft:#e0f2fe;
    --sidebar:260px;--radius:16px;--shadow:0 12px 35px rgba(24,24,27,.07)
}
*{box-sizing:border-box}html{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:var(--bg)}body{margin:0;font-size:14px}.app-shell{display:flex;min-height:100vh}.sidebar{width:var(--sidebar);position:fixed;inset:0 auto 0 0;background:#17111f;color:#fff;padding:20px 14px;display:flex;flex-direction:column;z-index:50}.brand{display:flex;align-items:center;gap:11px;color:#fff;text-decoration:none;padding:4px 8px 20px}.brand-mark{width:40px;height:40px;border-radius:12px;display:grid;place-items:center;background:linear-gradient(135deg,#8b5cf6,#ec4899);font-weight:900;font-size:20px}.brand strong,.brand small{display:block}.brand strong{font-size:18px}.brand small{color:#a1a1aa;font-size:10px;margin-top:2px}.nav-list{overflow:auto;padding-right:3px}.nav-label{color:#777080;font-size:10px;font-weight:800;letter-spacing:.12em;padding:21px 12px 7px}.nav-item{color:#c9c4ce;text-decoration:none;display:flex;align-items:center;gap:12px;padding:11px 12px;border-radius:11px;margin:2px 0;font-weight:600}.nav-item>span{width:20px;text-align:center;font-size:17px}.nav-item:hover,.nav-item.active{background:#2b2135;color:#fff}.nav-item.pos-link{background:linear-gradient(135deg,#6d28d9,#7c3aed);color:#fff;margin:4px 0 8px}.sidebar-footer{margin-top:auto;border-top:1px solid #332b3c;padding:15px 8px 2px}.user-mini{display:flex;align-items:center;gap:10px}.avatar{width:34px;height:34px;border-radius:50%;background:#3f3350;display:grid;place-items:center;font-weight:800}.user-mini strong,.user-mini small{display:block}.user-mini strong{font-size:13px}.user-mini small{font-size:11px;color:#aaa2b3;margin-top:2px}.logout-link{display:block;color:#aaa2b3;text-decoration:none;font-size:12px;margin-top:12px}.main-area{margin-left:var(--sidebar);width:calc(100% - var(--sidebar));min-height:100vh}.topbar{height:78px;background:rgba(255,255,255,.92);backdrop-filter:blur(10px);border-bottom:1px solid var(--line);padding:0 28px;display:flex;align-items:center;gap:15px;position:sticky;top:0;z-index:30}.topbar h1{font-size:21px;margin:0}.topbar-subtitle{font-size:12px;color:var(--muted);margin-top:2px}.topbar-actions{margin-left:auto;display:flex;align-items:center;gap:9px}.outlet-pill,.date-pill,.outlet-switcher select{border:1px solid var(--line);background:#fff;border-radius:10px;padding:9px 11px;color:#52525b;font:inherit}.outlet-switcher select{cursor:pointer}.menu-toggle{display:none;border:0;background:transparent;font-size:24px}.content{padding:25px 28px 45px;max-width:1600px;margin:auto}.alert{display:flex;align-items:center;gap:12px;padding:13px 15px;border-radius:12px;margin-bottom:18px;border:1px solid transparent}.alert span{flex:1}.alert button{border:0;background:transparent;font-size:20px;cursor:pointer}.alert a{font-weight:700;color:inherit}.alert-success{background:var(--success-soft);color:var(--success);border-color:#bbf7d0}.alert-danger{background:var(--danger-soft);color:var(--danger);border-color:#fecaca}.alert-warning{background:var(--warning-soft);color:var(--warning);border-color:#fde68a}.alert-info{background:var(--info-soft);color:var(--info);border-color:#bae6fd}
.grid{display:grid;gap:18px}.grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-4{grid-template-columns:repeat(4,minmax(0,1fr))}.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow)}.card-header{padding:18px 20px;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:12px}.card-header h2,.card-header h3{font-size:16px;margin:0}.card-header .actions{margin-left:auto}.card-body{padding:20px}.stat-card{padding:20px;position:relative;overflow:hidden}.stat-card small{color:var(--muted);font-weight:700}.stat-card strong{display:block;font-size:25px;margin-top:8px}.stat-card .trend{font-size:12px;margin-top:7px;color:var(--muted)}.stat-icon{position:absolute;right:16px;top:16px;width:40px;height:40px;border-radius:12px;background:var(--primary-soft);color:var(--primary);display:grid;place-items:center;font-size:19px}.section-head{display:flex;align-items:center;gap:12px;margin:0 0 16px}.section-head h2{font-size:18px;margin:0}.section-head .actions{margin-left:auto;display:flex;gap:8px}.btn{border:1px solid transparent;border-radius:10px;padding:10px 14px;font:inherit;font-weight:700;cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:7px}.btn-sm{padding:7px 10px;font-size:12px}.btn-lg{padding:13px 18px}.btn-primary{background:var(--primary);color:#fff}.btn-primary:hover{background:#4c1d95}.btn-secondary{background:#fff;color:#3f3f46;border-color:var(--line)}.btn-danger{background:var(--danger-soft);color:var(--danger)}.btn-success{background:var(--success);color:#fff}.btn-block{width:100%}.badge{display:inline-flex;align-items:center;border-radius:999px;padding:5px 9px;font-size:11px;font-weight:800}.badge-success{background:var(--success-soft);color:var(--success)}.badge-warning{background:var(--warning-soft);color:var(--warning)}.badge-danger{background:var(--danger-soft);color:var(--danger)}.badge-neutral{background:#f4f4f5;color:#52525b}.table-wrap{overflow:auto}.table{width:100%;border-collapse:collapse}.table th{font-size:11px;text-transform:uppercase;letter-spacing:.05em;color:var(--muted);text-align:left;background:#fafafa}.table th,.table td{padding:13px 14px;border-bottom:1px solid #ededf0;white-space:nowrap}.table tr:last-child td{border-bottom:0}.table td strong{display:block}.table td small{color:var(--muted)}.table-actions{display:flex;gap:6px}.text-right{text-align:right!important}.text-center{text-align:center!important}.text-muted{color:var(--muted)}.text-success{color:var(--success)}.text-danger{color:var(--danger)}.mt-1{margin-top:8px}.mt-2{margin-top:16px}.mt-3{margin-top:24px}.mb-0{margin-bottom:0}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.form-group{display:flex;flex-direction:column;gap:7px}.form-group.full{grid-column:1/-1}.form-group label{font-weight:700;font-size:13px}.form-control{width:100%;border:1px solid #d4d4d8;border-radius:10px;background:#fff;padding:11px 12px;font:inherit;outline:0}.form-control:focus{border-color:#8b5cf6;box-shadow:0 0 0 3px #ede9fe}.form-help{font-size:11px;color:var(--muted)}textarea.form-control{min-height:95px;resize:vertical}.check-row{display:flex;align-items:center;gap:8px}.toolbar{background:#fff;border:1px solid var(--line);border-radius:14px;padding:12px;display:flex;align-items:center;gap:10px;margin-bottom:16px}.toolbar .search{flex:1;min-width:200px}.toolbar form{display:flex;align-items:center;gap:8px;flex:1}.empty-state{text-align:center;padding:45px 20px;color:var(--muted)}.empty-state .empty-icon{font-size:38px;margin-bottom:10px}.pagination{display:flex;justify-content:flex-end;gap:5px;padding:14px}.pagination a,.pagination span{padding:7px 10px;border:1px solid var(--line);border-radius:8px;text-decoration:none;color:var(--ink)}.pagination .active{background:var(--primary);color:#fff;border-color:var(--primary)}.progress{height:8px;background:#eee;border-radius:20px;overflow:hidden}.progress span{display:block;height:100%;background:var(--primary);border-radius:20px}.modal{display:none;position:fixed;inset:0;background:rgba(24,24,27,.55);z-index:100;padding:20px;align-items:center;justify-content:center}.modal.show{display:flex}.modal-dialog{width:min(560px,100%);background:#fff;border-radius:18px;box-shadow:0 25px 70px rgba(0,0,0,.25)}.modal-header,.modal-footer{padding:16px 20px;display:flex;align-items:center;gap:10px}.modal-header{border-bottom:1px solid var(--line)}.modal-footer{border-top:1px solid var(--line);justify-content:flex-end}.modal-header h3{margin:0}.modal-header button{margin-left:auto;border:0;background:transparent;font-size:22px}.modal-body{padding:20px}.kpi-row{display:flex;align-items:center;justify-content:space-between;padding:11px 0;border-bottom:1px solid #eee}.kpi-row:last-child{border:0}.mini-bars{height:220px;display:flex;align-items:flex-end;gap:8px;padding-top:20px}.mini-bar{flex:1;min-width:20px;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;gap:7px;height:100%}.mini-bar span{display:block;background:linear-gradient(180deg,#8b5cf6,#5b21b6);width:100%;border-radius:7px 7px 3px 3px;min-height:3px}.mini-bar small{font-size:10px;color:var(--muted)}
.login-page{min-height:100vh;background:radial-gradient(circle at top left,#6d28d9 0,#251333 35%,#100b16 75%);display:grid;place-items:center;padding:25px}.auth-shell{width:min(1040px,100%);display:grid;grid-template-columns:1.1fr .9fr;background:#fff;border-radius:25px;overflow:hidden;box-shadow:0 30px 90px rgba(0,0,0,.28)}.auth-brand{padding:55px;color:#fff;background:linear-gradient(145deg,#5b21b6,#261435);position:relative}.auth-brand h1{font-size:42px;margin:25px 0 15px;line-height:1.07}.auth-brand p{color:#ddd0ec;line-height:1.7;max-width:440px}.auth-brand .feature-list{display:grid;gap:13px;margin-top:30px}.auth-brand .feature{display:flex;gap:10px;align-items:center}.auth-brand .feature span{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:rgba(255,255,255,.12)}.auth-form{padding:48px}.auth-form h2{font-size:28px;margin:0 0 8px}.auth-form>p{color:var(--muted);margin:0 0 27px}.auth-link{text-align:center;color:var(--muted);margin-top:20px}.auth-link a{color:var(--primary);font-weight:700}.auth-logo{display:inline-flex;align-items:center;gap:10px;font-weight:800;font-size:18px}.auth-logo span{width:38px;height:38px;border-radius:12px;display:grid;place-items:center;background:#fff;color:var(--primary)}
.pos-layout{display:grid;grid-template-columns:minmax(0,1fr) 390px;gap:18px;height:calc(100vh - 128px)}.product-panel{display:flex;flex-direction:column;min-width:0}.pos-filters{display:flex;gap:8px;margin-bottom:13px}.pos-search{flex:1}.category-chips{display:flex;gap:7px;overflow:auto;padding:1px 1px 10px}.chip{border:1px solid var(--line);background:#fff;padding:8px 12px;border-radius:999px;white-space:nowrap;font-size:12px;font-weight:700;cursor:pointer}.chip.active{background:var(--primary);border-color:var(--primary);color:#fff}.product-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(145px,1fr));gap:11px;overflow:auto;padding:2px 5px 15px 2px}.product-card{border:1px solid var(--line);background:#fff;border-radius:14px;padding:13px;text-align:left;cursor:pointer;min-height:128px;display:flex;flex-direction:column;transition:.15s}.product-card:hover{border-color:#a78bfa;transform:translateY(-2px);box-shadow:var(--shadow)}.product-card.sold-out{opacity:.5;cursor:not-allowed}.product-thumb{height:46px;width:46px;border-radius:12px;background:var(--primary-soft);color:var(--primary);display:grid;place-items:center;font-size:18px;font-weight:900;margin-bottom:10px}.product-card strong{line-height:1.3}.product-card small{color:var(--muted);margin-top:4px}.product-card .product-bottom{margin-top:auto;display:flex;align-items:end;justify-content:space-between}.product-card .price{color:var(--primary);font-weight:900}.product-card .stock{font-size:10px;color:var(--muted)}.cart-panel{display:flex;flex-direction:column;background:#fff;border:1px solid var(--line);border-radius:16px;overflow:hidden;box-shadow:var(--shadow)}.cart-head{padding:16px 17px;border-bottom:1px solid var(--line);display:flex;align-items:center}.cart-head h2{font-size:16px;margin:0}.cart-head button{margin-left:auto}.cart-items{overflow:auto;flex:1;padding:8px 15px}.cart-empty{text-align:center;color:var(--muted);padding:70px 10px}.cart-item{padding:11px 0;border-bottom:1px solid #eee}.cart-item-top{display:flex;gap:8px}.cart-item-name{flex:1;font-weight:700}.cart-item-total{font-weight:800}.cart-item-bottom{display:flex;align-items:center;margin-top:8px}.qty-control{display:flex;border:1px solid var(--line);border-radius:8px;overflow:hidden}.qty-control button{border:0;background:#fafafa;width:28px;height:27px;cursor:pointer}.qty-control input{width:42px;border:0;text-align:center;font:inherit}.cart-remove{border:0;background:transparent;color:var(--danger);margin-left:auto;cursor:pointer}.cart-summary{border-top:1px solid var(--line);padding:14px 17px}.summary-line{display:flex;justify-content:space-between;padding:5px 0;color:#52525b}.summary-line.total{font-size:18px;font-weight:900;color:var(--ink);padding-top:10px}.checkout-panel{padding:0 17px 17px}.payment-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;margin:8px 0 12px}.payment-option{border:1px solid var(--line);background:#fff;border-radius:9px;padding:8px 4px;font-size:11px;font-weight:700;cursor:pointer}.payment-option.active{border-color:var(--primary);background:var(--primary-soft);color:var(--primary)}
.receipt{width:80mm;margin:0 auto;background:#fff;padding:8mm 5mm;color:#000;font-family:"Courier New",monospace;font-size:12px}.receipt-header{text-align:center}.receipt-header h1{font-size:18px;margin:5px}.receipt hr{border:0;border-top:1px dashed #000;margin:10px 0}.receipt-row{display:flex;justify-content:space-between;gap:10px;margin:4px 0}.receipt-item{margin:7px 0}.receipt-item>strong{display:block}.receipt-total{font-size:15px;font-weight:900}.receipt-actions{display:flex;justify-content:center;gap:8px;margin:20px}.plan-card{padding:23px;position:relative}.plan-card.featured{border:2px solid var(--primary)}.plan-card .popular{position:absolute;right:15px;top:15px}.plan-price{font-size:33px;font-weight:900;margin:13px 0}.plan-price small{font-size:12px;color:var(--muted)}.feature-check{padding:6px 0;color:#52525b}.landing{background:#0f0b14;color:#fff;min-height:100vh}.landing-nav{max-width:1160px;margin:auto;padding:20px 25px;display:flex;align-items:center}.landing-nav .actions{margin-left:auto;display:flex;gap:8px}.landing-hero{max-width:1160px;margin:auto;padding:80px 25px 100px;display:grid;grid-template-columns:1.1fr .9fr;gap:55px;align-items:center}.landing-hero h1{font-size:57px;line-height:1.03;margin:15px 0}.gradient-text{background:linear-gradient(90deg,#a78bfa,#f0abfc);-webkit-background-clip:text;color:transparent}.landing-hero p{color:#bbb2c4;font-size:18px;line-height:1.7}.hero-card{background:#201729;border:1px solid #3b2d49;border-radius:24px;padding:20px;box-shadow:0 30px 80px rgba(0,0,0,.35)}.hero-screen{background:#f7f7fb;color:#18181b;border-radius:16px;padding:16px}.hero-products{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.hero-product{background:#fff;border:1px solid #e4e4e7;border-radius:10px;height:78px;padding:8px;font-size:10px}.hero-cart{background:#fff;border:1px solid #e4e4e7;border-radius:10px;margin-top:10px;padding:10px}.landing-section{max-width:1160px;margin:auto;padding:80px 25px}.landing-section h2{text-align:center;font-size:38px;margin:0 0 12px}.landing-section>p{text-align:center;color:#aaa1b3;max-width:650px;margin:0 auto 40px}.landing-features{display:grid;grid-template-columns:repeat(3,1fr);gap:15px}.landing-feature{background:#191220;border:1px solid #30243a;border-radius:16px;padding:22px}.landing-feature span{font-size:25px}.landing-feature h3{margin:14px 0 8px}.landing-feature p{color:#aaa1b3;line-height:1.6}.landing-footer{text-align:center;color:#766f7d;padding:30px}
@media print{.no-print,.sidebar,.topbar,.sidebar-backdrop{display:none!important}.main-area{margin:0;width:100%}.content{padding:0}.receipt{box-shadow:none}}
@media(max-width:1050px){.grid-4{grid-template-columns:repeat(2,1fr)}.pos-layout{grid-template-columns:minmax(0,1fr) 350px}.landing-hero h1{font-size:46px}}
@media(max-width:820px){.sidebar{transform:translateX(-100%);transition:.2s}.main-area{margin-left:0;width:100%}.sidebar-open .sidebar{transform:translateX(0)}.sidebar-backdrop{display:none;position:fixed;inset:0;background:rgba(0,0,0,.45);z-index:40}.sidebar-open .sidebar-backdrop{display:block}.menu-toggle{display:block}.topbar{padding:0 16px}.content{padding:18px 15px 35px}.date-pill{display:none}.grid-3{grid-template-columns:repeat(2,1fr)}.pos-layout{height:auto;grid-template-columns:1fr}.product-panel{height:55vh}.cart-panel{min-height:540px}.auth-shell{grid-template-columns:1fr}.auth-brand{display:none}.landing-hero{grid-template-columns:1fr;text-align:center;padding-top:55px}.landing-hero h1{font-size:44px}.landing-features{grid-template-columns:1fr}.hero-card{display:none}}
@media(max-width:560px){.grid-2,.grid-3,.grid-4,.form-grid{grid-template-columns:1fr}.form-group.full{grid-column:auto}.topbar-actions .outlet-pill{display:none}.toolbar{align-items:stretch;flex-direction:column}.toolbar form{align-items:stretch;flex-direction:column}.section-head{align-items:flex-start}.section-head .actions{flex-wrap:wrap}.auth-form{padding:30px 22px}.product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.payment-grid{grid-template-columns:repeat(2,1fr)}.landing-nav .btn-secondary{display:none}.landing-hero h1{font-size:36px}.landing-hero p{font-size:16px}}
