@import url('./fonts.css');
:root{--pink:#E96BAD;--pastel:#F8DDEB;--light:#FFF3F8;--lilac:#B59AE3;--purple:#8560BC;--ink:#382A35;--muted:#887b87;--line:#eee7ed;--bg:#fbf9fc;--green:#32856c;--shadow:0 8px 30px #49354b06;font-family:'Segoe UI',system-ui,sans-serif;color:var(--ink);background:var(--bg);font-size:15px}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button,.button{cursor:pointer;border:1px solid var(--line);border-radius:12px;padding:12px 17px;min-height:46px;background:white;color:var(--ink);font-weight:600;display:inline-flex;align-items:center;justify-content:center;gap:8px;text-decoration:none;transition:background .15s,transform .15s}button:hover,.button:hover{background:var(--light)}button:disabled{opacity:.5;cursor:not-allowed}.primary{background:var(--purple);color:white;border-color:var(--purple)}.primary:hover{background:#724ca8}.pink{background:var(--pink);border-color:var(--pink);color:white}.ghost{background:transparent;border:0}.danger{color:#af3f55;border-color:#edcad2}a{color:var(--purple)}svg{width:21px;height:21px;flex-shrink:0;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}h1,h2,h3,p{margin-top:0}h1{font-size:30px;letter-spacing:-1px;margin-bottom:9px;font-weight:650}h2{font-size:19px;letter-spacing:-.3px}h3{font-size:15px}p{line-height:1.6}.muted{color:var(--muted)}.small{font-size:12px}.eyebrow{font-size:10px;font-weight:700;letter-spacing:2px;color:var(--purple)}.shell{display:grid;grid-template-columns:238px minmax(0,1fr);min-height:100vh}.sidebar{position:sticky;top:0;height:100vh;padding:26px 18px 18px;border-right:1px solid var(--line);background:#fff;display:flex;flex-direction:column}.brand{display:flex;align-items:center;gap:10px;margin-bottom:34px;padding:0 7px}.brand img{width:52px;height:52px;object-fit:cover;border-radius:50%}.brand strong{display:block;font-size:21px;letter-spacing:-.8px}.brand small{font-size:10px;letter-spacing:1.8px;color:var(--muted)}.nav-label{font-size:10px;color:#a398a1;letter-spacing:1.5px;margin:12px 13px}.nav{display:grid;gap:5px}.nav button{justify-content:flex-start;border:0;background:none;color:#867885;font-weight:500;padding:13px 16px}.nav button.active{color:var(--purple);background:#f1eaf9;font-weight:650}.nav button.active:after{content:'';width:6px;height:6px;border-radius:50%;background:var(--purple);margin-left:auto}.sidebar-footer{margin-top:auto;padding:18px 10px 0}.owner{display:flex;gap:10px;align-items:center;padding:18px 0;border-top:1px solid var(--line)}.avatar{height:38px;width:38px;border-radius:50%;background:var(--pastel);color:var(--purple);display:grid;place-items:center;font-weight:700}.owner strong{font-size:13px}.owner small{display:block;color:var(--muted);font-size:11px}.topbar{height:78px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 38px;background:#ffffffb8;gap:12px}.topbar small{font-size:12px;color:var(--muted)}.topbar-title{display:flex;align-items:center;gap:9px;font-weight:600;font-size:13px}.topbar-title svg{color:var(--purple)}.status-dot{width:7px;height:7px;display:inline-block;border-radius:50%;background:#78b69d;margin-right:6px}.content{padding:32px 38px 40px;max-width:1540px;margin:auto}.page-head{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:28px}.page-head p{margin-bottom:0;font-size:13px}.actions{display:flex;gap:9px;align-items:center;flex-wrap:wrap}.welcome{border:1px solid #eadcf4;border-radius:20px;background:linear-gradient(110deg,#f1e9fa 0%,#faf0f5 68%,#f5e0eb 100%);padding:28px 32px;display:flex;align-items:center;justify-content:space-between;position:relative;overflow:hidden;margin-bottom:25px;min-height:182px}.welcome h2{font-size:25px;letter-spacing:-.8px;margin-bottom:8px}.welcome p{font-size:13px;color:#8a7391;max-width:450px;margin-bottom:20px}.welcome img{width:143px;height:143px;object-fit:cover;border-radius:50%;margin-right:32px;box-shadow:0 0 0 13px #ffffff55,0 0 0 30px #ffffff25}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:17px;margin-bottom:25px}.stat{background:#fff;border:1px solid var(--line);border-radius:16px;padding:21px;box-shadow:var(--shadow)}.stat-top{display:flex;justify-content:space-between;align-items:center;color:var(--muted);font-size:12px;gap:5px;margin-bottom:15px}.stat-icon{background:#f3edf9;border-radius:10px;color:var(--purple);width:35px;height:35px;display:grid;place-items:center}.stat:nth-child(2) .stat-icon{background:#fff0f7;color:var(--pink)}.stat:nth-child(3) .stat-icon{background:#edf6f2;color:var(--green)}.stat-value{font-size:28px;font-weight:650;letter-spacing:-1px;margin-bottom:8px}.stat-foot{font-size:11px;color:var(--muted)}.grid-two{display:grid;grid-template-columns:1.55fr 1fr;gap:22px}.panel{background:white;border:1px solid var(--line);border-radius:17px;padding:23px;box-shadow:var(--shadow);margin-bottom:22px;min-width:0}.panel-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:19px}.panel-head h2{margin:0}.panel-head button{font-size:12px;min-height:30px;padding:5px 9px}.empty{text-align:center;padding:30px 18px;color:var(--muted);font-size:13px}.empty svg{width:34px;height:34px;color:var(--lilac);margin-bottom:12px}.empty strong{display:block;margin-bottom:8px;color:var(--ink);font-weight:600}.empty p{margin:0 auto 15px;max-width:320px}.row{display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid var(--line);padding:14px 0}.row:last-child{border-bottom:0}.row strong{font-size:13px}.row small{display:block;color:var(--muted);font-size:11px;margin-top:5px}.row-main{display:flex;gap:12px;align-items:center;min-width:0}.rank{width:29px;height:29px;background:#f7f0fb;border-radius:9px;display:grid;place-items:center;color:var(--purple);font-size:12px}.badge{border-radius:6px;padding:5px 8px;font-size:10px;font-weight:650;background:#eef7f2;color:var(--green);white-space:nowrap}.badge.warn{color:#b17e35;background:#fff5e4}.badge.error{background:#fceaf0;color:#b5536d}.alert-card{display:flex;align-items:center;gap:15px;padding:16px;background:#fff8ed;border:1px solid #f5e8d3;border-radius:12px;margin-bottom:10px}.alert-card svg{color:#bc9552}.alert-card strong{font-size:13px}.alert-card p{font-size:11px;color:#a18d6e;margin:4px 0 0}.alert-card button{margin-left:auto}.footer-note{font-size:11px;color:#aa9ca9;text-align:center;margin-top:22px}.toolbar{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:22px}.search{position:relative;flex:1;min-width:180px}.search svg{position:absolute;top:13px;left:14px;color:#a191a3}.search input{padding-left:43px}.toolbar select{width:auto;min-width:150px}.product-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.product{border:1px solid var(--line);background:#fff;border-radius:16px;overflow:hidden}.product-image{height:150px;background:linear-gradient(125deg,#f6eff9,#fdf0f5);display:grid;place-items:center}.product-image img{width:100%;height:150px;object-fit:contain}.product-image svg{width:40px;height:40px;color:#bca6cd}.product-info{padding:17px}.product-info h3{margin:9px 0 6px}.product-info p{font-size:11px;margin:0 0 14px;color:var(--muted)}.product-bottom{display:flex;justify-content:space-between;align-items:center;gap:8px}.product-price{font-size:19px;font-weight:650}.product-bottom button{padding:8px 12px;min-height:39px}.checkout{display:grid;grid-template-columns:1.2fr 1fr;gap:24px;align-items:start}.checkout .product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.cart{position:sticky;top:20px}.cart-line{padding:15px 0;border-bottom:1px solid var(--line)}.cart-line-title{display:flex;justify-content:space-between;gap:8px;font-size:13px;margin-bottom:12px}.cart-controls{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.cart-controls input{width:70px;min-height:38px;padding:8px}.cart-controls select{width:78px;min-height:38px;padding:8px}.cart-controls button{min-height:36px;padding:7px 10px}.totals .row{padding:9px 0;border:0;font-size:13px}.totals .grand{font-size:24px;font-weight:700;border-top:1px dashed #ddcfe6;padding-top:17px;margin-top:8px}.full{width:100%}label{display:block;font-size:12px;font-weight:600;margin-bottom:15px}input,select,textarea{width:100%;min-height:46px;border:1px solid #e5dce8;background:#fff;border-radius:10px;padding:11px 13px;color:var(--ink);outline:none}label input,label select,label textarea{display:block;margin-top:7px}input:focus,select:focus,textarea:focus{border-color:var(--purple);box-shadow:0 0 0 3px #b59ae31c}input[type=checkbox]{width:20px;min-height:20px;display:inline-block;vertical-align:middle;margin:0 8px 0 0}textarea{min-height:84px;resize:vertical}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 16px}.span-two{grid-column:1/-1}.form-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:12px}.auth-page{min-height:100vh;background:radial-gradient(at 0 10%,#f3e6fa,transparent 60%),radial-gradient(at 100% 90%,#f9dce9,transparent 60%),#fcf9fc;display:grid;place-items:center;padding:30px 18px}.auth-card{width:100%;max-width:440px;background:#ffffffed;border:1px solid #f0e5ef;border-radius:25px;padding:34px;box-shadow:0 18px 70px #693b6e0b;text-align:center}.auth-logo{height:112px;width:112px;object-fit:cover;border-radius:50%;margin-bottom:18px}.auth-card h1{font-size:27px}.auth-card form{text-align:left;margin-top:24px}.auth-card form button{width:100%}.auth-card>.ghost{font-size:12px;margin-top:12px}.notice{padding:12px;background:var(--light);color:#925078;border:1px solid var(--pastel);border-radius:10px;font-size:13px}.auth-card .eyebrow{font-size:9px}.auth-card .muted{font-size:13px}dialog{width:min(680px,calc(100% - 28px));max-height:90dvh;border:1px solid var(--line);border-radius:20px;padding:28px;color:var(--ink);background:#fff;box-shadow:0 25px 100px #382a3533}dialog::backdrop{background:#35223a55;backdrop-filter:blur(3px)}.dialog-head{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:20px}.dialog-head h2{margin:0}.dialog-head button{padding:8px;min-height:36px}#toast{position:fixed;bottom:28px;left:50%;transform:translateX(-50%);background:var(--ink);color:white;padding:14px 23px;border-radius:12px;box-shadow:0 8px 25px #0002;z-index:50;max-width:calc(100% - 30px);font-size:13px}.offline{background:#fff0cd;color:#765b21;padding:10px;text-align:center;font-size:12px}.mobile-nav{display:none}.loading{padding:70px;text-align:center;color:var(--purple)}.receipt{text-align:center}.receipt img{width:75px;height:75px;border-radius:50%}.receipt-lines{text-align:left}.receipt .row{font-size:13px}.chart{display:flex;align-items:flex-end;gap:9px;height:190px;padding-top:15px;overflow-x:auto;border-bottom:1px solid var(--line)}.chart-col{height:100%;min-width:35px;flex:1;display:flex;flex-direction:column;align-items:center;justify-content:flex-end}.chart-bar{width:70%;border-radius:6px 6px 0 0;background:linear-gradient(#c2ade9,#8c6bbb);min-height:2px}.chart-col small{font-size:9px;padding:7px 0;white-space:nowrap}.chart-col span{font-size:9px;color:var(--muted);margin-bottom:5px}.horizontal-bar{height:7px;background:#f0eaf6;border-radius:10px;margin-top:8px;overflow:hidden}.horizontal-bar div{height:100%;background:var(--lilac);border-radius:10px}.tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:20px}.tabs button{font-size:12px}.tabs .active{background:#eee6f7;color:var(--purple);border-color:#e1d3ee}.video{width:100%;max-height:50vh;background:#211728;border-radius:12px}.inline-error{color:#ad3c5a;font-size:12px;padding:10px 0}.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}[hidden]{display:none!important}.file-label{border:1px dashed #cbb4dc;background:#faf6fd;border-radius:12px;padding:17px}.file-label input{border:0;background:transparent;font-size:12px;padding:5px 0}.sale-row{cursor:pointer}.sale-row:hover{background:var(--light)}.date-fields{display:flex;gap:10px}.date-fields label{margin-bottom:0}.pill-note{font-size:10px;color:var(--purple);background:#f2ebf8;padding:7px 10px;border-radius:20px}.account-note{background:#f7f2fa;padding:16px;border-radius:12px;font-size:12px;color:#8a7494}
@media(min-width:1500px){.product-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}@media(max-width:1150px){.shell{grid-template-columns:200px minmax(0,1fr)}.sidebar{padding:22px 12px}.content{padding:26px}.topbar{padding:0 26px}.stats{gap:10px}.stat{padding:17px}.stat-value{font-size:24px}.grid-two{grid-template-columns:1.3fr 1fr}.product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.checkout{gap:16px;grid-template-columns:1fr 1fr}.welcome img{margin-right:8px}}
@media(max-width:800px){.shell{display:block}.sidebar{display:none}.topbar{height:65px;padding:0 20px}.topbar small{display:none}.content{padding:22px 18px 105px}.page-head{align-items:flex-start;margin-bottom:21px}.page-head h1{font-size:25px}.page-head .actions button{font-size:12px;padding:10px}.page-head p{font-size:12px}.welcome{padding:24px 20px;min-height:176px}.welcome h2{font-size:23px}.welcome p{max-width:230px;font-size:12px}.welcome img{width:104px;height:104px;margin-right:4px}.stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.stat{padding:17px}.stat-top{font-size:11px}.stat-value{font-size:25px}.grid-two{grid-template-columns:1fr;gap:0}.panel{padding:20px}.mobile-nav{display:flex;position:fixed;bottom:0;left:0;right:0;z-index:20;background:#ffffffef;backdrop-filter:blur(10px);border-top:1px solid var(--line);padding:7px 8px max(9px,env(safe-area-inset-bottom));justify-content:space-around}.mobile-nav button{display:flex;flex-direction:column;gap:4px;border:0;font-size:9px;font-weight:500;padding:7px 8px;background:transparent;color:var(--muted);min-width:54px}.mobile-nav button.active{color:var(--purple)}.mobile-nav .new-sale{background:var(--purple);color:white;border-radius:13px;min-width:62px}.checkout{grid-template-columns:1fr}.cart{position:static}.checkout .product-image{height:85px}.checkout .product-image img{height:85px}.checkout .product-info{padding:12px}.checkout .product-grid{max-height:400px;overflow:auto}.toolbar select{flex:1;min-width:120px}.product-image,.product-image img{height:120px}.product-info{padding:13px}.product-price{font-size:17px}.form-grid{gap:0 12px}.date-fields{width:100%}.date-fields label{flex:1;min-width:0}.date-fields input{min-width:0}#toast{bottom:90px}.welcome .eyebrow{font-size:9px}.welcome button{font-size:12px}.account-note{font-size:11px}.chart{height:160px}}
@media(max-width:390px){.welcome img{width:76px;height:76px;margin-right:0}.welcome h2{font-size:20px}.welcome p{max-width:195px}.form-grid{grid-template-columns:1fr}.span-two{grid-column:auto}.page-head{flex-wrap:wrap}.stat-value{font-size:23px}.product-bottom{flex-wrap:wrap}}
.mobile-cart{display:none}.mobile-nav button.new-sale{color:white}.brand small{letter-spacing:1px;font-size:9px}.brand img{flex-shrink:0}
@media(max-width:800px){.mobile-cart:not(:empty){display:flex;position:fixed;bottom:78px;left:18px;right:18px;z-index:19;padding:10px 13px;background:var(--ink);color:white;border-radius:13px;align-items:center;justify-content:space-between;box-shadow:0 4px 20px #382a3522}.mobile-cart strong{font-size:17px}.mobile-cart button{min-height:36px;padding:7px 13px;background:#fff;color:var(--purple)}}
@media print{body>*{display:none!important}body>dialog[open]{display:block!important;position:static;width:100%;max-height:none;border:0;box-shadow:none;padding:0}.dialog-head,.no-print{display:none!important}.receipt{max-width:80mm;margin:auto}dialog::backdrop{background:white}}
