:root{
  --bg:#0e1512; --panel:#15201b; --panel2:#1b2a22;
  --line:#294237; --line2:#33564733;
  --text:#eaf1ec; --muted:#9fb3a8; --dim:#7f948a;
  --brand:#2bc7a4; --brand2:#199e86; --brand-ink:#042420;
  --accent:#ffd166; --danger:#ff7a6b;
  --radius:16px; --maxw:1080px;
  --font:'Nunito',system-ui,-apple-system,Segoe UI,Roboto,sans-serif;
}
*{box-sizing:border-box}
[hidden]{display:none !important}
html,body{margin:0;padding:0}
body{
  font-family:var(--font); background:var(--bg); color:var(--text);
  line-height:1.55; -webkit-font-smoothing:antialiased;
}
a{color:var(--brand); text-decoration:none}
a:hover{text-decoration:underline}
.container{max-width:var(--maxw); margin:0 auto; padding:0 20px}
.narrow{max-width:460px}

/* Top nav */
.nav{position:sticky; top:0; z-index:20; background:rgba(14,21,18,.82);
  backdrop-filter:blur(10px); border-bottom:1px solid var(--line2)}
.nav .container{display:flex; align-items:center; justify-content:space-between; height:64px}
.brand{display:flex; align-items:center; gap:10px; font-weight:800; font-size:20px; color:var(--text)}
.brand:hover{text-decoration:none}
.brand .dot{width:26px; height:26px; border-radius:8px;
  background:linear-gradient(135deg,var(--brand),var(--brand2)); display:grid; place-items:center;
  color:var(--brand-ink); font-size:15px}
.nav-links{display:flex; align-items:center; gap:8px}

/* Buttons */
.btn{display:inline-flex; align-items:center; justify-content:center; gap:8px;
  font-family:inherit; font-weight:800; font-size:15px; cursor:pointer;
  padding:11px 18px; border-radius:12px; border:1px solid transparent; transition:.15s}
.btn:hover{text-decoration:none}
.btn-primary{background:linear-gradient(135deg,var(--brand),var(--brand2)); color:var(--brand-ink)}
.btn-primary:hover{filter:brightness(1.06)}
.btn-ghost{background:transparent; color:var(--text); border-color:var(--line)}
.btn-ghost:hover{background:var(--panel2)}
.btn-block{width:100%}
.btn-sm{padding:7px 12px; font-size:13px; border-radius:10px}
.btn-danger{background:transparent; border-color:#5a2a25; color:var(--danger)}
.btn-danger:hover{background:#2a1613}

/* Hero */
.hero{padding:76px 0 40px; text-align:center}
.hero h1{font-size:clamp(34px,6vw,58px); line-height:1.04; margin:0 0 18px; letter-spacing:-.02em}
.hero h1 .grad{background:linear-gradient(120deg,var(--brand),var(--accent)); -webkit-background-clip:text; background-clip:text; color:transparent}
.hero p.lead{font-size:clamp(17px,2.4vw,21px); color:var(--muted); max-width:640px; margin:0 auto 28px}
.hero-cta{display:flex; gap:12px; justify-content:center; flex-wrap:wrap}
.pill{display:inline-block; font-size:13px; font-weight:700; color:var(--brand);
  background:#12261c; border:1px solid var(--line); padding:6px 14px; border-radius:999px; margin-bottom:22px}

/* Sections */
section{padding:44px 0}
.section-title{font-size:clamp(24px,4vw,34px); text-align:center; margin:0 0 8px; letter-spacing:-.01em}
.section-sub{text-align:center; color:var(--muted); max-width:560px; margin:0 auto 34px}

/* Feature grid */
.grid{display:grid; gap:16px}
.grid-3{grid-template-columns:repeat(3,1fr)}
.grid-2{grid-template-columns:repeat(2,1fr)}
.card{background:var(--panel); border:1px solid var(--line2); border-radius:var(--radius); padding:22px}
.card h3{margin:8px 0 6px; font-size:18px}
.card p{margin:0; color:var(--muted); font-size:15px}
.feat-ico{width:42px; height:42px; border-radius:11px; display:grid; place-items:center; font-size:20px;
  background:#12261c; border:1px solid var(--line)}

/* Steps */
.steps{counter-reset:step; display:grid; gap:14px; max-width:620px; margin:0 auto}
.step{display:flex; gap:16px; align-items:flex-start; background:var(--panel); border:1px solid var(--line2);
  border-radius:14px; padding:18px 20px}
.step .n{counter-increment:step; flex:0 0 auto; width:34px; height:34px; border-radius:10px;
  background:linear-gradient(135deg,var(--brand),var(--brand2)); color:var(--brand-ink);
  font-weight:900; display:grid; place-items:center}
.step .n::before{content:counter(step)}
.step h4{margin:2px 0 3px; font-size:16px}
.step p{margin:0; color:var(--muted); font-size:14px}

/* Pricing */
.price-grid{display:grid; grid-template-columns:1fr 1fr; gap:18px; max-width:760px; margin:0 auto}
.plan{background:var(--panel); border:1px solid var(--line2); border-radius:18px; padding:26px}
.plan.featured{border-color:var(--brand2); box-shadow:0 0 0 1px var(--brand2), 0 20px 50px -20px #000}
.plan h3{margin:0 0 4px; font-size:20px}
.plan .amt{font-size:38px; font-weight:900; margin:6px 0 2px}
.plan .amt small{font-size:15px; font-weight:700; color:var(--muted)}
.plan ul{list-style:none; padding:0; margin:18px 0 22px}
.plan li{padding:7px 0 7px 28px; position:relative; color:var(--text); font-size:15px}
.plan li::before{content:"✓"; position:absolute; left:0; color:var(--brand); font-weight:900}
.plan li.no{color:var(--dim)}
.plan li.no::before{content:"–"; color:var(--dim)}
.tag-badge{display:inline-block; font-size:12px; font-weight:800; text-transform:uppercase; letter-spacing:.5px;
  color:var(--brand-ink); background:var(--accent); padding:3px 10px; border-radius:999px; margin-left:8px}

/* Forms / panels */
.panel{background:var(--panel); border:1px solid var(--line2); border-radius:var(--radius); padding:26px}
.panel h1,.panel h2{margin-top:0}
label.lbl{display:block; font-weight:700; font-size:14px; margin:16px 0 6px; color:var(--text)}
label.lbl:first-child{margin-top:0}
.hint{color:var(--dim); font-weight:600; font-size:12px}
input[type=text],input[type=email],input[type=tel],input[type=password],input[type=number],input[type=url],textarea,select{
  width:100%; font-family:inherit; font-size:16px; color:var(--text); background:#0d1613;
  border:1.5px solid var(--line); border-radius:11px; padding:11px 13px; outline:none; transition:.15s}
textarea{resize:vertical; min-height:74px}
input:focus,textarea:focus,select:focus{border-color:var(--brand2); box-shadow:0 0 0 3px #199e8633}
.inline{display:flex; gap:10px; align-items:center}
.row{display:grid; gap:12px}
.row.c2{grid-template-columns:1fr 1fr}
.row.c3{grid-template-columns:2fr 1fr auto}
.slug-wrap{display:flex; align-items:stretch}
.slug-wrap .pfx{display:flex; align-items:center; padding:0 12px; background:#0d1613; border:1.5px solid var(--line);
  border-right:none; border-radius:11px 0 0 11px; color:var(--dim); font-size:14px}
.slug-wrap input{border-radius:0 11px 11px 0}
/* Live slug availability hint */
.slug-status{min-height:20px; margin-top:8px; font-size:13px; font-weight:700;
  display:flex; align-items:center; gap:8px; line-height:1.3}
.slug-status:empty{margin-top:0}
.slug-status.ok{color:var(--brand)}
.slug-status.bad{color:var(--danger)}
.slug-status.checking{color:var(--muted)}
.slug-status b{font-weight:800}
.spinner{flex:0 0 auto; width:14px; height:14px; border:2px solid var(--line);
  border-top-color:var(--brand); border-radius:50%; animation:spin .6s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}

/* Full-screen loading overlay (used on register submit) */
.load-overlay{position:fixed; inset:0; z-index:2000; display:flex; align-items:center; justify-content:center;
  background:rgba(9,16,13,.88); backdrop-filter:blur(6px); animation:load-fade .25s ease}
.load-overlay[hidden]{display:none}
@keyframes load-fade{from{opacity:0} to{opacity:1}}
.load-card{text-align:center; padding:34px 30px; max-width:340px}
.load-spin{width:56px; height:56px; margin:0 auto 22px; border-radius:50%;
  border:4px solid var(--line2); border-top-color:var(--brand); animation:spin .8s linear infinite}
.load-title{font-size:19px; font-weight:900; color:var(--text); line-height:1.35}
.load-step{margin-top:10px; color:var(--brand); font-weight:700; font-size:14px; min-height:20px}

/* Dashboard section tabs */
.section-tabs{display:flex; gap:6px; overflow-x:auto; -webkit-overflow-scrolling:touch; margin:0 0 20px; padding-bottom:2px}
.section-tabs::-webkit-scrollbar{height:0}
.sec-tab{flex:0 0 auto; border:1px solid var(--line2); background:var(--panel); color:var(--muted);
  border-radius:999px; padding:8px 16px; font-weight:800; font-size:14px; cursor:pointer; white-space:nowrap; transition:.15s}
.sec-tab:hover{color:var(--text)}
.sec-tab.active{background:var(--brand); border-color:var(--brand); color:var(--brand-ink)}
.sec-pane{display:none}
.sec-pane.active{display:block; animation:secfade .2s ease}
@keyframes secfade{from{opacity:0; transform:translateY(4px)} to{opacity:1; transform:none}}

/* Floating save bar */
.save-bar{position:fixed; left:0; right:0; bottom:0; z-index:900; background:rgba(14,21,18,.93);
  backdrop-filter:blur(8px); border-top:1px solid var(--line2)}
.save-bar-inner{max-width:var(--maxw); margin:0 auto; padding:12px 20px; display:flex;
  align-items:center; justify-content:flex-end; gap:16px}
.save-bar-hint{color:var(--dim)}
.save-bar .btn{white-space:nowrap}
@media (max-width:600px){ .save-bar-inner{justify-content:space-between; padding:10px 16px} .save-bar-hint{display:none} .save-bar .btn{flex:1} }

/* Preview: tickboxes + tips */
.pv-checks{display:grid; gap:7px}
.pv-check{display:flex; align-items:center; gap:9px; font-size:13px; color:#3a3a34}
.pv-cbox{width:16px; height:16px; border:1.5px solid #cfd6cf; border-radius:5px; flex:0 0 auto; background:#fff}
.pv-tips{display:flex; flex-wrap:wrap; gap:6px}
.pv-tip{border:1.5px solid #e7e4da; border-radius:999px; padding:5px 13px; font-size:12px; font-weight:700; color:var(--pv-dark); background:#fff}

/* Epic register footer */
.reg-epic{margin-top:56px; padding:52px 0 24px; border-top:1px solid var(--line2);
  background:linear-gradient(180deg, transparent, rgba(43,199,164,.06))}
.reg-epic-head{text-align:center; max-width:580px; margin:0 auto 34px}
.reg-epic-head h2{margin:0; font-size:25px; line-height:1.25}
.reg-epic-head h2::after{content:''; display:block; width:46px; height:3px; border-radius:2px;
  background:var(--accent); margin:14px auto 0}
.reg-epic-head p{margin:16px 0 0; color:var(--muted); font-size:15px; line-height:1.6}
.reg-feats{display:grid; grid-template-columns:repeat(4,1fr); gap:16px}
.reg-feat{background:var(--panel); border:1px solid var(--line2); border-radius:16px; padding:24px 18px; text-align:center}
.reg-feat .reg-ic{font-size:26px; margin-bottom:12px; line-height:1}
.reg-feat b{display:block; margin-bottom:6px; color:var(--text); font-size:15px}
.reg-feat span{color:var(--muted); font-size:13px; line-height:1.5}
.reg-trust{display:flex; flex-wrap:wrap; justify-content:center; gap:10px 22px; margin-top:28px;
  color:var(--brand); font-size:13px; font-weight:800}
.reg-trust span{white-space:nowrap}
.reg-epic-foot{display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap;
  margin-top:34px; padding-top:22px; border-top:1px solid var(--line2); color:var(--dim); font-size:13px}
.reg-mark{font-weight:900; color:var(--brand); font-size:17px}
.reg-epic-foot a{color:var(--muted); font-weight:700}
@media (max-width:720px){ .reg-feats{grid-template-columns:repeat(2,1fr)} }
@media (max-width:420px){ .reg-feats{grid-template-columns:1fr} }
.checkbox{display:flex; align-items:center; gap:10px; margin-top:14px; color:var(--text); font-weight:600}
.checkbox input{width:auto}

/* Flash + alerts */
.flash{padding:12px 16px; border-radius:12px; margin-bottom:16px; font-weight:600; font-size:14px}
.flash.ok{background:#12261c; border:1px solid var(--line); color:var(--brand)}
.flash.err{background:#2a1613; border:1px solid #5a2a25; color:var(--danger)}

/* Dashboard */
.dash-head{display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap; margin:28px 0 22px}
.dash-grid{display:grid; grid-template-columns:1.3fr 1fr; gap:22px; align-items:start}
.item-list{display:grid; gap:10px}
.item{background:#0d1613; border:1px solid var(--line); border-radius:12px; padding:12px}
.mini{font-size:13px; color:var(--muted)}
.live-link{word-break:break-all; font-weight:700}
.repeat-hd{display:flex; justify-content:space-between; align-items:center; margin:22px 0 10px}
.repeat-hd h3{margin:0; font-size:16px}

/* Product manager: single entry box + reorderable grid */
.prod-entry{background:#0d1613; border:1px solid var(--line); border-radius:12px; padding:14px}
.prod-entry-mode{align-self:center; text-align:center; font-weight:800; color:var(--dim);
  border:1px dashed var(--line); border-radius:8px; padding:8px 6px}
.prod-entry-actions{display:flex; align-items:center; gap:12px; margin-top:12px; flex-wrap:wrap}
.prod-entry-msg{color:var(--brand)}
.prod-grid{display:grid; gap:10px; margin-top:14px}
.prod-card{display:flex; align-items:center; gap:12px; background:var(--panel); border:1px solid var(--line);
  border-radius:12px; padding:12px 14px}
.prod-card.editing{border-color:var(--brand2); box-shadow:0 0 0 1px var(--brand2)}
.prod-card .pc-main{flex:1; min-width:0}
.prod-card .pc-name{font-weight:800; white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.prod-card .pc-desc{font-size:13px; color:var(--muted); margin-top:2px;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.prod-card .pc-price{font-weight:800; color:var(--brand); white-space:nowrap}
.pc-actions{display:flex; gap:4px; flex-shrink:0}
.pc-btn{width:34px; height:34px; border-radius:8px; border:1px solid var(--line); background:#0d1613;
  color:var(--text); font-size:15px; line-height:1; cursor:pointer; display:grid; place-items:center; padding:0}
.pc-btn:hover:not(:disabled){background:var(--panel2); border-color:var(--brand2)}
.pc-btn:disabled{opacity:.3; cursor:default}
.pc-btn.pc-del:hover:not(:disabled){border-color:#d9534f; color:#ff8a85}
.prod-empty{margin-top:12px; text-align:center; padding:16px; border:1px dashed var(--line); border-radius:12px}
.pc-cat{display:inline-block; font-size:11px; font-weight:800; color:var(--brand);
  background:#12261c; border:1px solid var(--line); border-radius:999px; padding:1px 8px; margin-left:8px; vertical-align:middle}
.prod-cat-row{display:flex; align-items:center; gap:10px; margin-top:10px}
.prod-cat-row select{flex:1; min-width:0}

/* Category manager */
.cat-entry{display:flex; gap:10px; align-items:center; flex-wrap:wrap}
.cat-entry input{flex:1; min-width:160px}
.cat-list{display:grid; gap:8px; margin-top:14px}
.cat-card{display:flex; align-items:center; gap:12px; background:var(--panel); border:1px solid var(--line);
  border-radius:10px; padding:10px 12px}
.cat-card.editing{border-color:var(--brand2); box-shadow:0 0 0 1px var(--brand2)}
.cat-card .cc-name{font-weight:800; flex:1; min-width:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.cat-card .cc-count{flex-shrink:0; color:var(--dim)}

/* Category tabs + consolidated cart (capture page / dark theme) */
.cat-tabs{display:flex; gap:6px; overflow-x:auto; -webkit-overflow-scrolling:touch; padding-bottom:4px; margin-bottom:12px}
.cat-tabs::-webkit-scrollbar{height:0}
.cat-tab{flex:0 0 auto; border:1px solid var(--line); background:#0d1613; color:var(--text);
  border-radius:999px; padding:7px 14px; font-weight:800; font-size:13px; cursor:pointer; white-space:nowrap}
.cat-tab:hover{border-color:var(--brand2)}
.cat-tab.active{background:linear-gradient(135deg,var(--brand),var(--brand2)); color:var(--brand-ink); border-color:transparent}
.cat-panel{display:none}
.cat-panel.active{display:block}
.cart{margin-top:14px; border:1px solid var(--brand2); border-radius:12px; background:#12261c; padding:12px 14px}
.cart[hidden]{display:none}
.cart-head{font-size:11px; font-weight:800; color:var(--brand); text-transform:uppercase; letter-spacing:.5px; margin-bottom:8px}
.cart-lines{list-style:none; margin:0; padding:0; display:grid; gap:6px}
.cart-lines li{display:flex; align-items:center; gap:8px; background:var(--panel); border:1px solid var(--line);
  border-radius:10px; padding:7px 8px 7px 12px; font-size:14px}
.cart-lines .cl-q{font-weight:800; color:var(--brand)}
.cart-lines .cl-name{flex:1; min-width:0; font-weight:700}
.cart-lines .cl-opt{font-weight:700; color:var(--muted)}
.cart-lines .cl-price{font-weight:800; white-space:nowrap}
.cart-lines .cl-rm{border:none; background:transparent; color:var(--muted); font-size:15px; font-weight:800;
  width:26px; height:26px; border-radius:8px; cursor:pointer; line-height:1; flex-shrink:0}
.cart-lines .cl-rm:hover{background:var(--panel2); color:var(--text)}

/* Admin console */
.admin-list{display:grid; gap:12px}
.admin-row{display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap; padding:14px 16px}
.admin-page{min-width:200px; flex:1}
.admin-biz{display:flex; align-items:center; gap:8px; font-size:15px}
.admin-controls{display:flex; align-items:flex-end; gap:10px; flex-wrap:wrap}
.admin-ctl{display:flex; flex-direction:column; gap:4px}
.admin-ctl select{min-width:130px}
.admin-num input{width:92px}
@media (max-width:640px){
  .admin-row{flex-direction:column; align-items:stretch}
  .admin-controls{justify-content:space-between}
}
@media (max-width:600px){
  .prod-card{flex-wrap:wrap}
  .prod-card .pc-main{flex:1 1 60%}
  .prod-card .pc-actions{margin-left:auto}
  .prod-entry .row.c3{grid-template-columns:1fr 1fr}
  .prod-entry-mode{grid-column:1 / -1}
}

/* Footer */
.foot{border-top:1px solid var(--line2); margin-top:50px; padding:30px 0; color:var(--dim); font-size:14px}
.foot .container{display:flex; justify-content:space-between; gap:16px; flex-wrap:wrap}

/* Tabs (dashboard / orders) */
.tabs{display:flex; gap:6px; border-bottom:1px solid var(--line2); margin:0 0 22px}
.tab{padding:10px 16px; font-weight:800; font-size:15px; color:var(--muted);
  border-bottom:2px solid transparent; margin-bottom:-1px}
.tab:hover{color:var(--text); text-decoration:none}
.tab.active{color:var(--text); border-bottom-color:var(--brand)}
.badge{display:inline-block; min-width:20px; text-align:center; font-size:12px; font-weight:900;
  color:var(--brand-ink); background:var(--brand); border-radius:999px; padding:1px 7px; margin-left:4px}

/* Go-live status banner */
.live-banner{display:flex; align-items:center; justify-content:space-between; gap:14px; flex-wrap:wrap;
  border-radius:14px; padding:14px 18px; margin-bottom:18px; font-size:14px}
.live-banner.draft{background:#2a220e; border:1px solid #5a4a1e; color:#ffd68a}
.live-banner.live{background:#0e2a24; border:1px solid var(--brand2); color:var(--text)}
.live-banner b{font-weight:800}
.live-banner .live-link{color:var(--brand)}
.lb-dot{display:inline-block; width:9px; height:9px; border-radius:50%; margin-right:6px; vertical-align:middle}
.live-banner.draft .lb-dot{background:#e0a93c}
.live-banner.live .lb-dot{background:var(--brand); animation:lbpulse 1.8s infinite}
@keyframes lbpulse{0%{box-shadow:0 0 0 0 rgba(43,199,164,.5)}70%{box-shadow:0 0 0 8px rgba(43,199,164,0)}100%{box-shadow:0 0 0 0 rgba(43,199,164,0)}}

/* Orders list */
.orders-list{display:grid; gap:14px}
.order-card{background:var(--panel); border:1px solid var(--line2); border-radius:var(--radius); padding:18px 20px}
.order-card.is-new{border-color:var(--brand2); box-shadow:0 0 0 1px var(--brand2)}
.order-head{display:flex; justify-content:space-between; align-items:center; gap:12px}
.order-name{font-size:17px}
.order-when{white-space:nowrap}
.chip{display:inline-block; font-size:11px; font-weight:900; text-transform:uppercase; letter-spacing:.5px;
  padding:2px 8px; border-radius:999px; margin-left:8px; vertical-align:middle;
  color:var(--dim); background:#0d1613; border:1px solid var(--line)}
.chip-new{color:var(--brand-ink); background:var(--brand); border-color:transparent}
.chip-done{color:var(--dim); background:#0d1613; border:1px solid var(--line)}
.order-body{display:grid; grid-template-columns:1.2fr 1fr; gap:18px; margin:14px 0 16px}
.order-items{list-style:none; padding:0; margin:0; display:grid; gap:6px}
.order-items li{display:flex; justify-content:space-between; gap:12px; font-size:14px; color:var(--text)}
.order-items li.order-del{color:var(--muted)}
.opt-tag{display:inline-block; margin-left:6px; padding:1px 8px; border-radius:999px; font-size:12px;
  font-weight:800; color:var(--brand-ink); background:var(--brand)}
.order-items li.order-total{border-top:1px solid var(--line2); margin-top:6px; padding-top:8px; font-weight:900}
.order-meta{display:grid; gap:5px; align-content:start}
.order-meta div{word-break:break-word}
.order-actions{display:flex; gap:8px; flex-wrap:wrap; border-top:1px solid var(--line2); padding-top:14px}

/* Delete confirmation modal (native <dialog>) */
.confirm-dialog{border:none; border-radius:16px; padding:0; max-width:420px; width:calc(100% - 40px);
  background:transparent; color:var(--text)}
.confirm-dialog::backdrop{background:rgba(0,0,0,.6)}
.confirm-dialog form{margin:0; padding:26px; background:var(--panel); border:1px solid var(--line2);
  border-radius:16px; box-shadow:0 24px 70px rgba(0,0,0,.55)}
.cd-title{margin:0 0 10px; font-size:19px}
.cd-body{margin:0 0 22px; color:var(--muted); font-size:14px; line-height:1.55}
.cd-actions{display:flex; gap:10px; justify-content:flex-end}

/* Share image (Open Graph) manager */
.og-manage{display:grid; grid-template-columns:minmax(0,300px) 1fr; gap:22px; align-items:start}
.og-thumb{display:block; width:100%; max-width:300px; aspect-ratio:1200/630; object-fit:cover;
  border-radius:12px; border:1px solid var(--line2); background:#0d1613}
.og-controls input[type=file]{max-width:100%; font-size:13px; color:var(--muted)}
@media (max-width:640px){ .og-manage{grid-template-columns:1fr} .og-thumb{max-width:100%} }

/* Capture manual order */
.cap-row{display:flex; align-items:center; justify-content:space-between; gap:14px}
input.cap-qty{width:74px; flex:0 0 auto; text-align:center; padding:9px 10px}
/* "Add to order" flow on the capture page (dark theme) */
.cap-add{margin-top:12px; padding-top:12px; border-top:1px dashed var(--line)}
.cap-add .opt-pills{display:flex; flex-wrap:wrap; gap:8px}
.cap-add .pill{position:relative}
.cap-add .pill input{position:absolute; opacity:0; inset:0; cursor:pointer; margin:0}
.cap-add .pill span{display:inline-block; border:1.5px solid var(--line); border-radius:999px; padding:6px 14px;
  font-size:13px; font-weight:800; color:var(--text); background:var(--panel2); cursor:pointer; transition:.15s}
.cap-add .pill input:checked + span{border-color:var(--brand); background:var(--brand); color:var(--brand-ink)}
.cap-add .pill input:focus-visible + span{outline:2px solid var(--brand); outline-offset:2px}
.cap-add .add-row{display:flex; align-items:center; gap:10px; margin-top:10px}
.cap-add .qty{display:flex; align-items:center; border:1.5px solid var(--line); border-radius:10px; overflow:hidden; flex:0 0 auto}
.cap-add .qty button{width:34px; height:36px; border:none; background:var(--panel2); color:var(--text); font-size:18px; font-weight:800; cursor:pointer; line-height:1}
.cap-add .qty .pq{width:40px; text-align:center; border:none; border-left:1.5px solid var(--line); border-right:1.5px solid var(--line);
  border-radius:0; background:#0d1613; color:var(--text); font-weight:800; font-size:14px; padding:8px 0}
.cap-add .add-btn{flex:1; border:1.5px solid var(--brand); background:transparent; color:var(--brand);
  border-radius:10px; padding:9px 12px; font-weight:800; font-size:14px; cursor:pointer; transition:.15s}
.cap-add .add-btn:hover{background:var(--brand); color:var(--brand-ink)}
.cap-radio{display:flex; align-items:center; gap:11px; cursor:pointer}
.cap-radio input{width:auto; flex:0 0 auto}
.cap-radio small{color:var(--dim); font-weight:600}
.cap-checks{display:grid; gap:10px; margin-top:4px}
.cap-check{display:flex; align-items:center; gap:10px; cursor:pointer; font-size:14px; color:var(--text)}
.cap-check input{width:auto; flex:0 0 auto}
.cap-total{display:flex; align-items:center; justify-content:space-between; font-weight:800; font-size:16px}
.cap-total b{font-size:26px}

/* Orders toolbar + hide-completed toggle */
.orders-toolbar{display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:14px; flex-wrap:wrap}
.orders-list.hide-completed .order-card.completed{display:none}

/* Report: filter pills + grid table */
.filter-pills{display:flex; gap:8px; flex-wrap:wrap; margin-bottom:16px}
.pill-btn{padding:7px 14px; border-radius:999px; border:1px solid var(--line); color:var(--muted);
  font-weight:700; font-size:13px; background:transparent}
.pill-btn:hover{color:var(--text); text-decoration:none; background:var(--panel2)}
.pill-btn.active{background:var(--brand); border-color:var(--brand); color:var(--brand-ink)}
.stat-row{display:grid; grid-template-columns:repeat(4,1fr); gap:12px; margin-bottom:18px}
.stat-card{background:var(--panel); border:1px solid var(--line2); border-radius:14px; padding:14px 16px}
.stat-label{display:block; font-size:11px; color:var(--dim); text-transform:uppercase; letter-spacing:.05em; font-weight:800}
.stat-value{display:block; font-size:24px; font-weight:900; margin-top:4px; letter-spacing:-.01em}
.table-wrap{overflow-x:auto; border:1px solid var(--line2); border-radius:16px; background:var(--panel)}
.grid-table{width:100%; border-collapse:collapse; font-size:13.5px; min-width:860px}
.grid-table th, .grid-table td{padding:12px 16px; text-align:left; vertical-align:top}
.grid-table thead th{background:var(--panel2); color:var(--dim); font-size:11.5px; font-weight:800;
  text-transform:uppercase; letter-spacing:.05em; border-bottom:1px solid var(--line)}
.grid-table tbody tr{border-bottom:1px solid var(--line2)}
.grid-table tbody tr:nth-child(even){background:rgba(255,255,255,.02)}
.grid-table tbody tr:hover{background:#12261c66}
.grid-table td.num, .grid-table th.num{text-align:right; white-space:nowrap}
.grid-table td.nowrap{white-space:nowrap}
.grid-table td b{font-weight:800}
.grid-table tfoot td{padding:13px 16px; border-top:2px solid var(--line); background:var(--panel2); font-weight:800}
.grid-table tfoot .num b{color:var(--brand); font-size:15px}
.grid-table .tfoot-label{color:var(--muted)}
@media (max-width:640px){ .stat-row{grid-template-columns:repeat(2,1fr)} }

/* Live preview overlay */
.preview-overlay{position:fixed; inset:0; z-index:60; background:rgba(4,8,6,.72);
  backdrop-filter:blur(4px); display:flex; align-items:center; justify-content:center; padding:20px}
/* Must beat the author display:flex above so [hidden] actually hides the overlay. */
.preview-overlay[hidden]{display:none}
.preview-shell{width:100%; max-width:420px; display:flex; flex-direction:column; height:min(680px,92vh)}
.preview-bar{display:flex; justify-content:space-between; align-items:center; margin-bottom:12px; color:var(--text)}
.phone{background:#0b0f0d; border:8px solid #05201a; border-radius:34px; padding:10px;
  box-shadow:0 30px 70px -20px #000; overflow:hidden; flex:1; min-height:0}
.phone-screen{--pv-accent:#6f8040; --pv-dark:#59683a; --pv-soft:#eef1e6;
  background:#fbfaf6; color:#2a2a26; border-radius:24px; height:100%; overflow-y:auto;
  font-size:14px; line-height:1.5}
.pv-head{background:var(--pv-accent); color:#fff; padding:24px 20px; text-align:center}
.pv-head h2{margin:0; font-size:22px; color:#fff}
.pv-sub{opacity:.92; font-size:14px; margin-top:4px}
.pv-desc{opacity:.85; font-size:13px; margin-top:8px}
.pv-card{padding:18px 16px}
.pv-label{font-weight:800; font-size:13px; margin:16px 0 8px; color:#3a3a34}
.pv-label:first-child{margin-top:0}
.pv-prod{display:flex; justify-content:space-between; align-items:center; gap:10px;
  background:#fff; border:1px solid #e7e4da; border-radius:12px; padding:10px 12px; margin-bottom:8px}
.pv-prod small{display:block; color:#8a8a80; font-size:12px}
.pv-price{font-weight:800; color:var(--pv-dark); white-space:nowrap}
.pv-empty{color:#a2a298; font-size:13px; font-style:italic}
/* Add-to-order option in the live preview */
.pv-prod.has-opt{flex-direction:column; align-items:stretch}
.pv-prodhead{display:flex; justify-content:space-between; align-items:center; gap:10px}
.pv-optlabel{font-size:10px; font-weight:800; text-transform:uppercase; letter-spacing:.4px; color:#8a8a80; margin:10px 0 6px}
.pv-pills{display:flex; flex-wrap:wrap; gap:6px}
.pv-pill{border:1.5px solid #e7e4da; border-radius:999px; padding:4px 11px; font-size:12px; font-weight:700; color:var(--pv-dark); background:#fff}
.pv-pill.on{border-color:var(--pv-accent); background:var(--pv-soft)}
.pv-addrow{display:flex; align-items:center; gap:8px; margin-top:10px}
.pv-qty{display:flex; align-items:center; border:1.5px solid #e7e4da; border-radius:9px; overflow:hidden}
.pv-qty b{width:28px; height:30px; display:flex; align-items:center; justify-content:center; background:var(--pv-soft); color:var(--pv-dark); font-weight:800}
.pv-qty span{width:30px; text-align:center; font-weight:800; font-size:13px}
.pv-add{flex:1; text-align:center; border:1.5px solid var(--pv-accent); background:var(--pv-soft); color:var(--pv-dark);
  border-radius:9px; padding:7px; font-weight:800; font-size:13px}
.pv-input{background:#fff; border:1px solid #e7e4da; border-radius:10px; padding:10px 12px; color:#a2a298}
.pv-opts{display:grid; gap:8px}
.pv-opt{display:flex; justify-content:space-between; background:var(--pv-soft);
  border:1px solid #e7e4da; border-radius:10px; padding:9px 12px}
.pv-opt small{color:#6a6a60}
.pv-total{display:flex; justify-content:space-between; align-items:center; margin-top:18px;
  padding-top:14px; border-top:1px solid #e7e4da; font-size:16px}
.pv-total b{font-size:20px; color:var(--pv-dark)}
.pv-submit{margin-top:14px; background:#25d366; color:#053a1c; text-align:center; font-weight:900;
  padding:13px; border-radius:12px}
.pv-note{margin-top:12px; font-size:12px; color:#8a8a80; text-align:center}
.pv-powered{text-align:center; font-size:12px; color:#a2a298; padding:0 0 18px}

@media (max-width:820px){
  .grid-3,.grid-2,.price-grid,.dash-grid,.row.c2{grid-template-columns:1fr}
  .hero{padding:52px 0 30px}
  .order-body{grid-template-columns:1fr; gap:12px}
}
