:root{--ink:#12352f;--muted:#687a74;--paper:#f7f4eb;--card:#fffef9;--teal:#0c5a4e;--teal-2:#0f7765;--lime:#c9f56b;--line:#dfe5dc;--danger:#c9473c;--warning:#d78c16;--shadow:0 18px 48px rgba(22,57,49,.10)}
*{box-sizing:border-box}html{font-family:Inter,"Noto Sans Thai",system-ui,-apple-system,sans-serif;color:var(--ink);background:var(--paper)}body{margin:0;min-height:100vh}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}button{cursor:pointer}.muted{color:var(--muted)}.eyebrow{font-size:.76rem;letter-spacing:.14em;text-transform:uppercase;color:var(--teal-2);font-weight:800}.money{font-variant-numeric:tabular-nums}.app-shell{display:grid;grid-template-columns:260px 1fr;min-height:100vh}.sidebar{background:var(--ink);color:white;padding:26px 20px;display:flex;flex-direction:column;position:sticky;top:0;height:100vh}.brand{display:flex;gap:12px;align-items:center;margin-bottom:28px}.brand-mark{width:42px;height:42px;border-radius:14px;background:var(--lime);color:var(--ink);display:grid;place-items:center;font-weight:900;font-size:1.15rem;box-shadow:0 8px 24px rgba(201,245,107,.2)}.brand strong{display:block}.brand small{color:#b8cbc5}.sidebar nav{display:grid;gap:7px}.nav-link{padding:11px 13px;border-radius:11px;color:#c9dad5;font-weight:650;display:flex;align-items:center;gap:10px}.nav-link:hover,.nav-link.active{background:rgba(255,255,255,.09);color:#fff}.nav-icon{width:22px;text-align:center}.sidebar-footer{margin-top:auto;border-top:1px solid rgba(255,255,255,.12);padding-top:18px}.store-select{width:100%;background:#214840;color:#fff;border:1px solid #466a62;padding:10px;border-radius:10px}.logout-button{width:100%;margin-top:10px;background:transparent;color:#c9dad5;border:0;text-align:left;padding:10px 12px}.main{min-width:0}.topbar{height:74px;padding:0 32px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;background:rgba(247,244,235,.92);backdrop-filter:blur(12px);position:sticky;top:0;z-index:10}.topbar h1{font-size:1.05rem;margin:0}.topbar .store-url{font-size:.85rem;color:var(--muted)}.avatar{width:38px;height:38px;border-radius:50%;background:var(--teal);color:white;display:grid;place-items:center;font-weight:800}.content{padding:30px 32px 60px;max-width:1500px;margin:auto}.page-head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:24px}.page-head h2{font-size:2rem;line-height:1.15;margin:5px 0 0;letter-spacing:-.035em}.page-head p{margin:7px 0 0;color:var(--muted)}.button{display:inline-flex;align-items:center;justify-content:center;gap:7px;border:0;border-radius:10px;padding:10px 15px;background:var(--teal);color:#fff;font-weight:750}.button:hover{background:var(--teal-2)}.button.lime{background:var(--lime);color:var(--ink)}.button.ghost{background:#edf2ed;color:var(--ink)}.button.small{padding:7px 10px;font-size:.86rem}.grid{display:grid;gap:18px}.stats{grid-template-columns:repeat(4,minmax(0,1fr));margin-bottom:20px}.card{background:var(--card);border:1px solid var(--line);border-radius:18px;padding:20px;box-shadow:0 4px 18px rgba(22,57,49,.035)}.stat .label{color:var(--muted);font-size:.87rem}.stat .value{font-size:1.85rem;font-weight:850;letter-spacing:-.04em;margin-top:9px}.stat .delta{display:inline-block;margin-top:9px;background:#ecf8e2;color:#37651e;border-radius:999px;padding:4px 8px;font-size:.75rem;font-weight:700}.two-col{grid-template-columns:minmax(0,1.55fr) minmax(280px,.75fr)}.card-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}.card-head h3{margin:0;font-size:1.05rem}.table-wrap{overflow:auto}.data-table{width:100%;border-collapse:collapse;min-width:680px}.data-table th{text-align:left;color:var(--muted);font-size:.75rem;text-transform:uppercase;letter-spacing:.08em;padding:11px 10px;border-bottom:1px solid var(--line)}.data-table td{padding:14px 10px;border-bottom:1px solid #edf0eb;vertical-align:middle}.data-table tr:last-child td{border-bottom:0}.badge{display:inline-flex;align-items:center;border-radius:999px;padding:5px 9px;font-size:.75rem;font-weight:750;background:#edf1ee;color:#49645c}.badge.paid,.badge.active,.badge.connected{background:#e4f6dc;color:#2f681f}.badge.pending,.badge.processing,.badge.demo{background:#fff0d8;color:#995c00}.badge.shipped,.badge.ready_to_ship{background:#deefff;color:#245f8e}.badge.low{background:#ffe1dd;color:#a63e34}.channel-dot{width:9px;height:9px;border-radius:50%;display:inline-block;margin-right:6px}.channel-dot.shopee{background:#ee4d2d}.channel-dot.lazada{background:#5142d9}.channel-dot.tiktok{background:#111}.chart-list{display:grid;gap:15px}.bar-row{display:grid;grid-template-columns:85px 1fr 80px;align-items:center;gap:10px;font-size:.86rem}.bar-track{height:9px;background:#edf1ed;border-radius:99px;overflow:hidden}.bar-fill{height:100%;background:linear-gradient(90deg,var(--teal),var(--lime));border-radius:99px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.field{display:grid;gap:6px}.field.full{grid-column:1/-1}.field label{font-size:.82rem;font-weight:750;color:#3d5750}.input,.select,.textarea{width:100%;border:1px solid #cad5ce;background:#fff;border-radius:10px;padding:10px 12px;color:var(--ink);outline:none}.input:focus,.select:focus,.textarea:focus{border-color:var(--teal-2);box-shadow:0 0 0 3px rgba(15,119,101,.12)}.alert{padding:12px 15px;border-radius:11px;margin-bottom:18px;font-weight:650}.alert.success{background:#e8f7df;color:#315e23}.alert.error{background:#ffe4df;color:#973d35}.inline-form{display:flex;align-items:center;gap:8px}.stock-number{font-size:1.25rem;font-weight:850}.channel-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.channel-card{position:relative;overflow:hidden}.channel-card:before{content:"";position:absolute;width:120px;height:120px;border-radius:50%;right:-45px;top:-55px;background:var(--lime);opacity:.45}.channel-logo{width:48px;height:48px;border-radius:14px;display:grid;place-items:center;font-weight:900;background:#edf3ef;margin-bottom:20px}.channel-logo.shopee{background:#fff0ec;color:#ee4d2d}.channel-logo.lazada{background:#efedff;color:#5142d9}.channel-logo.tiktok{background:#ececec;color:#111}.empty{text-align:center;padding:38px 20px;color:var(--muted)}.login-page{min-height:100vh;display:grid;grid-template-columns:1.1fr .9fr;background:var(--paper)}.login-hero{background:var(--ink);color:white;padding:8vw;display:flex;flex-direction:column;justify-content:center;position:relative;overflow:hidden}.login-hero:after{content:"";position:absolute;width:420px;height:420px;border-radius:50%;background:var(--lime);opacity:.13;right:-120px;bottom:-160px}.login-hero h1{font-size:clamp(2.8rem,5vw,5.3rem);letter-spacing:-.07em;line-height:.94;margin:22px 0}.login-hero p{color:#c9dad5;max-width:560px;font-size:1.1rem;line-height:1.7}.login-panel{display:grid;place-items:center;padding:40px}.login-card{width:min(420px,100%);background:var(--card);padding:34px;border:1px solid var(--line);border-radius:24px;box-shadow:var(--shadow)}.login-card h2{font-size:1.8rem;margin:5px 0 8px}.login-card form{display:grid;gap:15px;margin-top:25px}.demo-note{font-size:.82rem;background:#edf5ef;padding:11px;border-radius:9px;color:#49645c}.storefront{min-height:100vh;background:#f6f0e5}.storefront-header{padding:22px max(24px,6vw);display:flex;justify-content:space-between;align-items:center;background:#fffaf0;border-bottom:1px solid #e5ddcf}.storefront-hero{padding:90px max(24px,7vw);background:var(--ink);color:white;display:grid;grid-template-columns:1.1fr .9fr;align-items:center;gap:40px}.storefront-hero h1{font-size:clamp(3rem,6vw,6rem);line-height:.92;letter-spacing:-.065em;margin:15px 0}.storefront-hero p{color:#c5d9d3;font-size:1.08rem;line-height:1.7}.hero-art{aspect-ratio:1;border-radius:48% 52% 43% 57% / 59% 38% 62% 41%;background:radial-gradient(circle at 38% 32%,#fff 0 6%,transparent 7%),linear-gradient(135deg,var(--lime),#5dd2ad);box-shadow:0 30px 90px rgba(0,0,0,.28);display:grid;place-items:center;color:var(--ink);font-size:5rem}.catalog{padding:60px max(24px,7vw)}.product-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}.product-card{background:#fff;border:1px solid #e7ded0;border-radius:20px;overflow:hidden}.product-image{aspect-ratio:4/3;background:linear-gradient(145deg,#dce9df,#faf5e8);display:grid;place-items:center;font-size:3rem}.product-body{padding:17px}.product-body h3{margin:0 0 8px}.product-price{font-size:1.3rem;font-weight:850}.order-summary{max-width:760px}.summary-row{display:flex;justify-content:space-between;padding:11px 0;border-bottom:1px solid var(--line)}
@media(max-width:1050px){.stats{grid-template-columns:repeat(2,1fr)}.two-col{grid-template-columns:1fr}.channel-grid,.product-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:760px){.app-shell{display:block}.sidebar{position:static;height:auto}.sidebar nav{grid-template-columns:repeat(3,1fr)}.nav-link{justify-content:center;font-size:.76rem;padding:9px 4px}.nav-icon{display:none}.sidebar-footer{margin-top:18px}.topbar{padding:0 18px}.content{padding:22px 16px 48px}.stats,.form-grid,.channel-grid,.product-grid{grid-template-columns:1fr}.page-head{align-items:flex-start;flex-direction:column}.login-page,.storefront-hero{grid-template-columns:1fr}.login-hero{padding:60px 28px}.login-panel{padding:28px 18px}.hero-art{display:none}}
