:root {
  --bg: #f4f7f6;
  --surface: rgba(255,255,255,0.9);
  --surface-strong: #ffffff;
  --primary: #1f8a66;
  --primary-soft: #dff4ec;
  --primary-strong: #146c50;
  --secondary: #eef3ff;
  --accent: #ffedd2;
  --warning: #f59e0b;
  --text: #1f2a2b;
  --muted: #6e8081;
  --line: #dce7e3;
  --success: #177c57;
  --danger: #c75d5d;
  --shadow: 0 18px 50px rgba(31, 72, 59, 0.08);
}
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{font-family:Inter,system-ui,Arial,sans-serif;background:radial-gradient(circle at top,#fdfefe 0,#f4f7f6 45%,#eef4f1 100%);color:var(--text)}
button,input,select{font:inherit}
button{transition:all .2s ease}
input,select{outline:none}
input:focus,select:focus{border-color:#9fd4c0;box-shadow:0 0 0 4px rgba(31,138,102,.12)}
.app-shell{min-height:100vh;padding:22px;position:relative}
.layout{display:grid;grid-template-columns:1fr;gap:18px;align-items:start}
.main{display:grid;gap:18px;min-width:0}
.modern-header{position:sticky;top:0;z-index:15;display:flex;justify-content:space-between;align-items:center;gap:16px;padding:16px 20px;margin-bottom:18px;background:rgba(255,255,255,.72);backdrop-filter:blur(16px);border:1px solid rgba(220,231,227,.9);border-radius:24px;box-shadow:var(--shadow)}
.header-left,.header-right{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.header-title{display:block;font-size:18px;font-weight:900;letter-spacing:-.02em}
.header-user{padding:10px 14px;border-radius:999px;background:#fff;border:1px solid var(--line);font-weight:700}
.login-wrap{max-width:440px;margin:70px auto;background:var(--surface-strong);border:1px solid var(--line);border-radius:32px;padding:28px;box-shadow:var(--shadow)}
.brand{font-size:34px;font-weight:900;letter-spacing:-.03em;margin:14px 0 8px}
.muted{color:var(--muted)}
.eyebrow{font-size:12px;font-weight:900;letter-spacing:.08em;text-transform:uppercase;color:var(--primary)}
.field{display:grid;gap:8px;margin-top:14px}
.field label{font-size:13px;font-weight:800;color:#46615d}
.field input,.field select{border:1px solid var(--line);border-radius:18px;padding:14px 16px;background:#fff;color:var(--text)}
.btn{border:0;border-radius:18px;padding:13px 16px;font-weight:800;cursor:pointer}
.btn:hover{transform:translateY(-1px)}
.btn-primary{background:linear-gradient(135deg,var(--primary),#36a37c);color:#fff;box-shadow:0 14px 28px rgba(31,138,102,.22)}
.btn-ghost{background:#fff;border:1px solid var(--line);color:var(--text)}
.badge{padding:8px 12px;border-radius:999px;background:rgba(220,232,255,.65);border:1px solid #d5e3fb;font-size:12px;font-weight:800}
.badge.soft{background:var(--primary-soft);border-color:#cae9db;color:var(--primary-strong)}
.badge.warm{background:#fff3df;border-color:#ffe1b0;color:#9a6300}
.topbar{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:18px}
.menu-trigger{width:46px;height:46px;border-radius:15px;border:1px solid var(--line);background:#fff;box-shadow:var(--shadow);font-size:22px;font-weight:900;cursor:pointer;color:var(--text)}
.sidebar-overlay{position:fixed;inset:0;background:rgba(18,28,30,.24);opacity:0;pointer-events:none;transition:opacity .2s ease;z-index:24}
.sidebar-overlay.show{opacity:1;pointer-events:auto}
.sidebar.drawer{position:fixed;left:16px;top:16px;bottom:16px;width:272px;background:linear-gradient(180deg,#1f8a66,#195b48);color:#fff;border-radius:30px;padding:18px;box-shadow:0 24px 60px rgba(18,47,40,.28);transform:translateX(-120%);transition:transform .24s ease;z-index:30;overflow:auto}
.sidebar.drawer.open{transform:translateX(0)}
.sidebar-top{display:flex;justify-content:space-between;align-items:center;gap:8px}
.sidebar-toggle{width:36px;height:36px;border-radius:12px;border:1px solid rgba(255,255,255,.28);background:rgba(255,255,255,.14);color:#fff;font-weight:900;cursor:pointer}
.sidebar-brand{overflow:hidden}
.sidebar-user{display:block}
.side-item{padding:14px 16px;border-radius:18px;font-weight:800;cursor:pointer;margin-bottom:8px;display:flex;align-items:center;gap:12px;background:rgba(255,255,255,.04)}
.side-item.active{background:rgba(255,255,255,.18)}
.side-icon{width:22px;height:22px;text-align:center;flex:0 0 22px;display:grid;place-items:center}
.nav-icon-img{width:18px;height:18px;object-fit:contain;display:block;filter:brightness(0) invert(1);opacity:.95}
.sidebar-logout{width:100%}
.hero-banner,.section-hero{display:flex;justify-content:space-between;gap:18px;align-items:flex-end;flex-wrap:wrap;padding:24px 26px;border-radius:30px;background:linear-gradient(135deg,#123b31 0%,#1f8a66 60%,#58b891 100%);color:#fff;box-shadow:var(--shadow)}
.hero-banner h1,.section-hero h1{margin:8px 0 10px;font-size:34px;letter-spacing:-.03em}
.hero-banner p,.section-hero p{margin:0;max-width:760px;color:rgba(255,255,255,.82);line-height:1.6}
.hero-highlight,.hero-mini-card{min-width:260px;padding:18px 20px;border-radius:24px;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.18);backdrop-filter:blur(10px)}
.hero-kicker{font-size:12px;font-weight:800;color:rgba(255,255,255,.8);text-transform:uppercase;letter-spacing:.08em}
.hero-highlight strong,.hero-mini-card{display:block;font-size:22px;font-weight:900}
.hero-highlight span{display:block;margin-top:8px;color:rgba(255,255,255,.85)}
.section-shell{display:grid;gap:16px}
.cards,.stats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
.card,.panel,.stat-card,.product-admin-card,.order-card{background:var(--surface-strong);border:1px solid rgba(220,231,227,.95);border-radius:26px;box-shadow:var(--shadow)}
.card,.panel{padding:20px}
.stat-card{padding:22px;display:grid;gap:10px;position:relative;overflow:hidden}
.stat-card::after{content:'';position:absolute;right:-30px;top:-30px;width:120px;height:120px;border-radius:999px;background:rgba(255,255,255,.24)}
.accent-revenue{background:linear-gradient(135deg,#153930,#1f8a66);color:#fff}
.accent-order{background:linear-gradient(135deg,#243451,#4367ad);color:#fff}
.accent-ticket{background:linear-gradient(135deg,#62440f,#c98517);color:#fff}
.accent-member{background:linear-gradient(135deg,#3e3b68,#7f6cf0);color:#fff}
.stat-label{font-size:12px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;opacity:.78}
.stat-value{font-size:32px;font-weight:900;letter-spacing:-.03em}
.stat-note{font-size:13px;opacity:.82}
.dashboard-grid{display:grid;grid-template-columns:1.2fr .9fr .85fr;gap:14px}
.panel-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:16px}
.panel-head h3{margin:6px 0 0;font-size:24px;letter-spacing:-.02em}
.feature-list,.roadmap-list,.orders-stack,.product-admin-list{display:grid;gap:12px}
.feature-item,.roadmap-item,.spotlight-item,.order-item-row{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;padding:14px 0;border-bottom:1px dashed var(--line)}
.feature-item:last-child,.roadmap-item:last-child,.spotlight-item:last-child,.order-item-row:last-child{border-bottom:0;padding-bottom:0}
.feature-check{width:28px;height:28px;border-radius:999px;background:var(--primary-soft);display:grid;place-items:center;color:var(--primary-strong);font-weight:900;flex:0 0 28px}
.spotlight-rank{display:inline-flex;padding:6px 10px;border-radius:999px;background:#fff4df;color:#8a5800;font-size:11px;font-weight:900;margin-bottom:8px}
.filter-panel{padding:18px 20px}
.order-card{padding:20px;display:grid;gap:16px}
.order-card-top{display:flex;justify-content:space-between;align-items:flex-start;gap:14px}
.order-card-top h3{margin:4px 0 6px;font-size:30px;letter-spacing:-.03em}
.order-meta{display:flex;flex-wrap:wrap;gap:10px 18px;color:#4d6661;font-size:14px}
.order-items{padding:14px 16px;border-radius:20px;background:#f8fbfa;border:1px solid #e4eeeb}
.order-actions{display:flex;justify-content:flex-end;align-items:center;min-height:40px}
.catalog-grid{display:grid;grid-template-columns:1.15fr .85fr;gap:16px;align-items:start}
.product-admin-list{grid-template-columns:repeat(2,minmax(0,1fr))}
.product-admin-card{padding:18px;display:grid;gap:16px}
.product-admin-top{display:flex;align-items:center;gap:14px}
.product-admin-icon{width:54px;height:54px;border-radius:18px;background:linear-gradient(135deg,#e6f5ef,#cde9de);display:grid;place-items:center;font-size:26px}
.product-admin-bottom{display:flex;justify-content:space-between;align-items:flex-end;gap:12px}
.inline-actions,.form-actions{display:flex;gap:8px;flex-wrap:wrap}
.form-panel{position:sticky;top:96px}
.price{font-weight:900;color:#d27d00;font-size:20px}
.metric{font-size:30px;font-weight:900;margin:8px 0}
.pos-shell{display:grid;grid-template-columns:minmax(0,1fr) 400px;gap:18px;align-items:start;min-height:calc(100vh - 180px)}
.pos-left{min-width:0;display:grid;gap:14px}
.pos-products-panel{display:grid;grid-template-rows:auto 1fr;min-height:calc(100vh - 260px);padding-bottom:8px}
.pos-product-header{position:sticky;top:0;z-index:5;background:linear-gradient(180deg,rgba(255,255,255,.98),rgba(255,255,255,.96));padding-bottom:14px;border-bottom:1px solid rgba(227,236,231,.85);backdrop-filter:blur(8px)}
.pos-product-scroll{overflow:auto;padding-right:4px;max-height:calc(100vh - 455px);padding-top:12px}
.search{border:1px solid var(--line);background:#fff;border-radius:22px;padding:14px 16px;margin-bottom:14px;box-shadow:0 12px 30px rgba(55,90,79,.05)}
.search-input-wrap{display:flex;align-items:center;gap:10px;padding:12px 16px}
.search-input{width:100%;border:0;outline:none;background:transparent;color:var(--text);font-size:14px}
.search-input::placeholder{color:var(--muted)}
.chips{display:flex;gap:8px;overflow:auto;margin-bottom:4px}
.chip{padding:10px 14px;background:#fff;border:1px solid var(--line);border-radius:999px;font-weight:800;font-size:13px;white-space:nowrap;cursor:pointer}
.chip.active{background:#eef6f2;border-color:#c9ddd6;color:var(--primary-strong)}
.product-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:12px}
.product-toolbar-badge{padding:8px 12px;border-radius:999px;background:#f4faf7;border:1px solid #d7ebe2;font-size:12px;font-weight:800;color:#56736a}
.product-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}
.product{border:1px solid var(--line);border-radius:24px;background:#fff;overflow:hidden;box-shadow:0 12px 28px rgba(93,129,118,.08)}
.product-media{height:148px;display:flex;align-items:center;justify-content:center;font-size:52px;position:relative}
.product-badge{position:absolute;left:10px;top:10px;padding:7px 10px;border-radius:999px;background:rgba(255,255,255,.92);font-size:11px;font-weight:800;color:#4f6761;border:1px solid rgba(220,236,229,.95)}
.product-best-seller{position:absolute;left:10px;bottom:10px;padding:7px 10px;border-radius:999px;background:#ffefc2;color:#8b6200;font-size:11px;font-weight:900;border:1px solid #f3d97b}
.plus{position:absolute;right:10px;top:10px;width:40px;height:40px;border-radius:999px;background:var(--primary-strong);color:#fff;display:grid;place-items:center;font-size:24px;font-weight:900;cursor:pointer}
.product-body{padding:16px}
.product-topline{display:flex;justify-content:space-between;align-items:center;gap:12px}
.product-code{font-size:11px;font-weight:800;color:#7f9290;text-transform:uppercase;letter-spacing:.04em}
.product-name{font-weight:900;margin-top:10px;font-size:18px}
.sub{font-size:12px;color:var(--muted);line-height:1.5}
.empty-products,.empty-state{text-align:center;padding:28px}
.cart-overlay{position:fixed;inset:0;background:rgba(18,28,30,.28);opacity:0;pointer-events:none;transition:opacity .2s ease;z-index:34}
.cart-overlay.show{opacity:1;pointer-events:auto}
.pos-cart-panel{position:fixed;right:max(16px,2vw);top:max(72px,8vh);bottom:max(84px,8vh);width:min(400px,calc(100vw - 32px));max-height:calc(100vh - max(156px,16vh));overflow:auto;padding:0;border-radius:30px;background:linear-gradient(180deg,#ffffff 0%,#f9fcfb 100%);z-index:36;transform:translateX(calc(100% + 32px));transition:transform .24s ease, opacity .24s ease;opacity:0;pointer-events:none}
.pos-cart-panel.expanded{transform:translateX(0);opacity:1;pointer-events:auto}
.pos-cart-panel.collapsed{transform:translateX(calc(100% + 32px));opacity:0;pointer-events:none}
.cart-head{padding:18px 18px 14px;border-bottom:1px solid var(--line);position:sticky;top:0;background:rgba(255,255,255,.96);backdrop-filter:blur(8px);z-index:3;border-radius:30px 30px 0 0}
.cart-head-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-end}
.cart-body-with-footer{padding-bottom:96px}
.cart-panel-footer{position:sticky;bottom:0;padding:12px 18px 18px;background:linear-gradient(180deg,rgba(249,252,251,.88),#f9fcfb 40%);backdrop-filter:blur(8px);border-top:1px solid rgba(220,231,227,.9);border-radius:0 0 30px 30px;z-index:2}
.pay-button{width:100%;padding:15px 16px;border-radius:18px;font-size:16px;font-weight:900}
.cart-body{padding:0 18px 18px}
.cart-summary{margin-top:16px;padding:16px;border-radius:22px;background:linear-gradient(135deg,#eef8f4,#f8fcff);border:1px solid #dbece5}
.transfer-qr-card{margin-top:14px;padding:14px;border-radius:18px;background:#fff;border:1px dashed #bfd9d0}
.transfer-qr-box{margin-top:12px;display:grid;place-items:center;padding:10px;border-radius:16px;background:#f7fbfa}
.transfer-qr-pattern{width:160px;height:160px;border-radius:18px;background:repeating-linear-gradient(45deg,#1f2d2f 0 8px,#fff 8px 16px);position:relative}
.transfer-qr-pattern::after{content:'';position:absolute;inset:12px;border:14px solid #fff}
.cart-footer-sticky{position:fixed;right:42px;bottom:38px;width:364px;z-index:40}
.cart-footer-sticky.empty{opacity:.88}
.cart-summary-pill{width:100%;border:0;border-radius:999px;padding:18px 22px;background:linear-gradient(135deg,#15803d,#15b652);color:#fff;display:flex;justify-content:space-between;align-items:center;font-weight:900;font-size:18px;box-shadow:0 18px 32px rgba(16,184,74,.28);cursor:pointer;transition:transform .22s ease, box-shadow .22s ease}
.cart-summary-pill.pulse{animation:cart-pill-pulse .5s ease}
.cart-summary-left{font-size:18px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cart-summary-right{font-size:30px;line-height:1}
.cart-overview{display:flex;justify-content:space-between;align-items:flex-end;gap:12px;padding:14px 16px;border-radius:22px;background:linear-gradient(135deg,#eef8f4,#f6fbff);border:1px solid #d9eae2;margin-bottom:14px}
.cart-overview-total{font-size:28px;font-weight:900;color:#1f8a66;margin-top:4px}
.cart-overview-note{font-size:12px;font-weight:800;color:#6d8381;background:#fff;padding:8px 12px;border-radius:999px;border:1px solid #dceae3}
.mini-bill{margin-bottom:14px;padding:14px;border-radius:18px;background:#fff;border:1px dashed #cfe2da}
.mini-bill-line{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:8px 0;color:#617876}.mini-bill-line strong{color:var(--text)}
.mini-bill-line.total{margin-top:6px;padding-top:12px;border-top:1px dashed var(--line);font-weight:900;color:#1f8a66}
.mini-bill-line.total strong{color:#1f8a66;font-size:18px}
.cart-line,.row{display:flex;justify-content:space-between;align-items:center;gap:10px}
.cart-line{padding:12px 0;border-bottom:1px dashed var(--line)}
.cart-line-actions{display:flex;align-items:center;gap:8px}
.cart-remove-btn,.cart-clear-btn{padding:10px 12px}
.member-box{margin-top:12px;padding:12px;border-radius:18px;background:#f4f9ff;border:1px dashed #cdddef}
.list{display:grid;gap:10px}
.list-item{display:flex;justify-content:space-between;gap:10px;padding:12px 0;border-bottom:1px dashed var(--line)}
.table{display:grid;gap:8px}
.tr{display:grid;grid-template-columns:1.2fr .9fr .8fr .8fr .8fr;gap:10px;padding:12px 0;border-bottom:1px dashed var(--line);align-items:center}
.th{font-size:12px;text-transform:uppercase;color:var(--muted);font-weight:800}
.tag{display:inline-flex;align-items:center;padding:7px 10px;border-radius:999px;font-size:12px;font-weight:800}
.paid{background:#edf8f2;color:var(--success)}
.cancelled{background:#fff1f1;color:var(--danger)}
.form-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}
.textarea{min-height:90px}.hide{display:none}
@media (max-width: 1300px){.pos-shell,.catalog-grid,.dashboard-grid{grid-template-columns:1fr}.pos-products-panel{min-height:auto}.pos-product-scroll{max-height:none}.pos-cart-panel{left:24px;right:24px;top:84px;bottom:96px;width:auto;max-height:none}.cart-footer-sticky{position:fixed;left:24px;right:24px;bottom:20px;width:auto}.product-admin-list{grid-template-columns:1fr 1fr}.form-panel{position:static}}
@media (max-width: 900px){.cards,.form-grid,.stats-grid,.product-admin-list{grid-template-columns:1fr}.product-grid{grid-template-columns:1fr 1fr}.app-shell{padding:14px}.modern-header{padding:14px 16px}.sidebar.drawer{left:10px;right:10px;width:auto;bottom:10px;top:10px}.cart-footer-sticky{left:18px;right:18px;bottom:16px}.cart-summary-pill{padding:16px 18px}.cart-summary-right{font-size:24px}}
@media (max-width: 720px){.tr{grid-template-columns:1fr}.topbar{align-items:flex-start}.app-shell{padding:10px}.modern-header{padding:10px 12px;margin-bottom:12px;border-radius:20px;gap:10px}.header-left,.header-right{gap:8px}.header-left{flex:1;min-width:0}.header-left .eyebrow{display:none}.header-title{font-size:15px;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:150px}.menu-trigger{width:40px;height:40px;border-radius:13px;font-size:20px}.header-right{margin-left:auto}.header-right .badge.soft{display:none}.header-right .badge.warm{padding:6px 10px;font-size:11px}.header-user{padding:8px 10px;font-size:13px;max-width:120px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.hero-banner,.section-hero{padding:20px}.hero-banner h1,.section-hero h1{font-size:28px}.pos-products-panel{min-height:calc(100vh - 170px)}.pos-product-scroll{max-height:calc(100vh - 270px)}.search{padding:10px 12px;margin-bottom:10px;border-radius:18px}.search-input-wrap{padding:8px 10px}.chips{gap:6px;margin-bottom:2px}.chip{padding:8px 12px;font-size:12px}.product-toolbar{margin-top:8px;align-items:flex-start}.product-toolbar .eyebrow{font-size:11px}.product-toolbar .sub{font-size:11px}.product-toolbar-badge{padding:6px 10px;font-size:11px}.product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.product{border-radius:18px}.product-media{height:94px;font-size:34px}.product-badge,.product-best-seller{font-size:9px;padding:5px 7px}.plus{width:34px;height:34px;font-size:20px;right:8px;top:8px}.product-body{padding:12px}.product-topline{gap:8px}.price{font-size:16px}.product-code{font-size:9px}.product-name{margin-top:8px;font-size:14px;line-height:1.3}.sub{font-size:11px;line-height:1.4}.product-footnote{display:grid;gap:8px;margin-top:8px}.mini-add-btn{padding:9px 10px;border-radius:14px;font-size:12px}.cart-overlay{z-index:44}.pos-cart-panel{left:10px;right:10px;top:auto;bottom:70px;width:auto;max-height:min(80vh,700px);border-radius:24px 24px 18px 18px;transform:translateY(calc(100% + 24px));z-index:46}.pos-cart-panel.expanded{transform:translateY(0)}.pos-cart-panel.collapsed{transform:translateY(calc(100% + 24px))}.cart-head{padding:12px 12px 10px;border-radius:24px 24px 0 0}.cart-head .sub{display:none}.cart-head-row{align-items:flex-start}.cart-head-actions{gap:8px}.cart-head-actions .badge{padding:6px 8px;font-size:11px}.cart-clear-btn{padding:8px 10px}.cart-body{padding:0 12px 12px}.cart-body-with-footer{padding-bottom:86px}.cart-summary{margin-top:10px;padding:12px;border-radius:16px}.cart-panel-footer{padding:10px 12px 12px;border-radius:0 0 24px 24px}.pay-button{padding:13px 14px;font-size:15px;border-radius:16px}.cart-footer-sticky{left:10px;right:10px;bottom:8px;width:auto;z-index:48}.cart-summary-pill{padding:12px 16px;border-radius:18px;box-shadow:0 12px 22px rgba(16,184,74,.22)}.cart-summary-left{font-size:14px}.cart-summary-right{font-size:20px}.cart-overview{padding:12px 14px;border-radius:18px}.cart-overview-total{font-size:24px}.cart-overview-note{padding:6px 10px;font-size:11px}.transfer-qr-pattern{width:132px;height:132px}}
@keyframes cart-pill-pulse{0%{transform:scale(1)}35%{transform:scale(1.06)}100%{transform:scale(1)}}
