:root{--bg:#f6f6f2;--ink:#111;--muted:#6d6d67;--line:#e7e7e1;--shadow:0 18px 55px rgba(20,20,20,.09)}
*{box-sizing:border-box}
body{margin:0;background:radial-gradient(circle at 8% 12%,rgba(35,220,210,.07),transparent 24rem),radial-gradient(circle at 88% 4%,rgba(135,75,255,.06),transparent 26rem),var(--bg);color:var(--ink);font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif}
a{color:inherit}
.container{width:min(1180px,calc(100% - 32px));margin:auto}
.header,.storeHeader{background:rgba(255,255,255,.94);border-bottom:1px solid var(--line)}
.nav{min-height:72px;display:flex;align-items:center;justify-content:space-between;gap:12px}
.brand{display:flex;align-items:center;gap:9px;text-decoration:none;font-size:22px;font-weight:900}
.brand b,.storeLogo{width:38px;height:38px;border-radius:12px;background:#111;color:#fff;display:grid;place-items:center}
.center{justify-content:center}
.btn{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 15px;border-radius:13px;border:0;text-decoration:none;font-weight:800}
.dark{background:#111;color:#fff}.light{background:#fff;border:1px solid var(--line)}.big{margin-top:22px}.block{width:100%}
.hero{padding:86px 0}.heroGrid{display:grid;grid-template-columns:1.05fr .95fr;gap:60px;align-items:center}
.hero h1{margin:0;font-size:clamp(48px,6vw,84px);line-height:.96;letter-spacing:-.07em}
.hero h1 em{font-style:normal;background:linear-gradient(90deg,#06cfd1,#3f75ff,#8140ff);-webkit-background-clip:text;color:transparent}
.hero p{font-size:18px;color:var(--muted);line-height:1.6}
.eyebrow{color:#777;font-size:12px;font-weight:900;letter-spacing:.08em}
.preview,.card,.metrics article,.modules article,.tableCard,.storeEmpty{background:#fff;border:1px solid var(--line);border-radius:22px;box-shadow:var(--shadow)}
.preview{overflow:hidden;transform:rotate(1deg)}.bar{padding:14px 18px;background:#fafaf8;border-bottom:1px solid var(--line);color:#777;font-size:12px}
.previewBody{padding:36px;min-height:330px}.logo{width:64px;height:64px;border-radius:18px;background:#111;color:#fff;display:grid;place-items:center;font-size:25px;font-weight:900}
.auth{min-height:100vh;display:grid;place-items:center;padding:24px}.card{width:min(460px,100%);padding:28px}.card p,.muted{color:var(--muted)}
label{display:block;margin:15px 0;font-size:13px;font-weight:800}input{width:100%;margin-top:7px;padding:12px;border:1px solid #ddd;border-radius:12px}
.pass{position:relative}.pass input{padding-right:76px}.pass button{position:absolute;right:7px;top:13px;height:36px;border:0;border-radius:9px}
.error{padding:11px;background:#fff1f0;color:#91251d;border-radius:12px}.minor{display:block;text-align:center;margin-top:15px}
.slug{display:flex;align-items:center;border:1px solid #ddd;border-radius:12px;margin-top:7px;overflow:hidden}.slug span{padding-left:12px;color:#777}.slug input{margin:0;border:0}
.section{padding:62px 0}.pageTitle{font-size:44px;margin:5px 0}
.metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:24px 0}.metrics.two{grid-template-columns:1fr 1fr}
.metrics article,.modules article{padding:21px}.metrics span{color:#777;font-size:12px}.metrics strong{display:block;font-size:30px;margin-top:6px}.green{color:#16843e}
.modules{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:20px}.modules p{color:#777}
.tableCard{padding:22px;overflow:auto}table{width:100%;border-collapse:collapse;min-width:650px}th,td{text-align:left;padding:12px;border-bottom:1px solid var(--line)}th{font-size:11px;color:#777;text-transform:uppercase}td small{display:block;color:#888}
.storeBrand{display:flex;align-items:center;gap:12px}.storeBrand h2,.storeBrand p{margin:0}.storeBrand p{color:#777;font-size:13px}
.storeLogo{background:var(--tenant,#111);width:54px;height:54px;border-radius:17px}
.storeEmpty{max-width:760px;padding:34px}.storeEmpty h1{font-size:48px;letter-spacing:-.06em;margin:8px 0}.storeEmpty p{color:#666;font-size:17px;line-height:1.6}
@media(max-width:820px){.heroGrid{grid-template-columns:1fr}.metrics,.modules{grid-template-columns:1fr 1fr}}
@media(max-width:560px){.hero{padding:48px 0}.hero h1{font-size:48px}.metrics,.metrics.two,.modules{grid-template-columns:1fr}.pageTitle{font-size:36px}.storeBrand p{display:none}}

/* ClicGo Core v0.2 - comercio universal */
select,textarea{
  width:100%;
  margin-top:7px;
  padding:12px;
  border:1px solid #ddd;
  border-radius:12px;
  background:#fff;
  color:var(--ink);
  font:inherit;
}

textarea{resize:vertical}

.auth-wide{padding-block:42px}
.card-wide{width:min(860px,100%)}

.form-grid{
  display:grid;
  gap:14px;
}
.form-grid.two{
  grid-template-columns:1fr 1fr;
}

.setup-block,
.settingsCard,
.architectureNote{
  margin:18px 0;
  padding:20px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:18px;
}

.setup-block h3,
.settingsCard h2,
.architectureNote b{
  margin:0;
}
.setup-block > p,
.architectureNote p{
  color:var(--muted);
  margin:6px 0 0;
  line-height:1.55;
}

.choice-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
  margin-top:14px;
}
.choice-grid.three{
  grid-template-columns:repeat(3,minmax(0,1fr));
}

.choice-card{
  display:flex;
  gap:10px;
  align-items:flex-start;
  margin:0;
  padding:14px;
  border:1px solid var(--line);
  border-radius:14px;
  background:#fafaf8;
  cursor:pointer;
}
.choice-card input{
  width:auto;
  margin:3px 0 0;
}
.choice-card span{
  display:block;
}
.choice-card b,
.choice-card small{
  display:block;
}
.choice-card small{
  margin-top:4px;
  color:var(--muted);
  font-weight:500;
  line-height:1.35;
}

.navActions{
  display:flex;
  gap:8px;
  align-items:center;
}

.notice{
  margin-bottom:18px;
  padding:12px 14px;
  border:1px solid #d9eadc;
  border-radius:12px;
  background:#eef8f0;
  color:#17642e;
  font-weight:700;
}

.tenantMeta{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  align-items:center;
  color:var(--muted);
  margin-bottom:6px;
}
.tenantMeta > span{
  margin-right:6px;
}
.tenantMeta b,
.fulfillmentList span{
  padding:6px 9px;
  border-radius:999px;
  background:#fff;
  border:1px solid var(--line);
  color:#454541;
  font-size:11px;
}

.moduleGrid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
  margin:26px 0;
}
.moduleGrid article,
.moduleLink{
  min-height:185px;
  padding:20px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:20px;
  box-shadow:var(--shadow);
  text-decoration:none;
  color:inherit;
}
.moduleGrid b{
  display:block;
  font-size:17px;
}
.moduleGrid p{
  min-height:64px;
  color:var(--muted);
  line-height:1.45;
}
.moduleGrid span{
  color:#777;
  font-size:11px;
  font-weight:800;
}
.moduleIcon{
  width:38px;
  height:38px;
  margin-bottom:18px;
  display:grid;
  place-items:center;
  border-radius:12px;
  background:#111;
  color:#fff;
  font-weight:900;
}

.architectureNote{
  background:linear-gradient(135deg,#f2fbf8,#f7f4ff);
}

.settingsContainer{
  max-width:920px;
}
.settingsForm{
  display:grid;
  gap:14px;
}
.settingsCard{
  margin:0;
  box-shadow:var(--shadow);
}
.settingsCard h2{
  margin-bottom:16px;
}

.fulfillmentList{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:20px 0;
}

@media(max-width:1000px){
  .moduleGrid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media(max-width:720px){
  .form-grid.two,
  .choice-grid,
  .choice-grid.three{
    grid-template-columns:1fr;
  }

  .nav{
    min-height:64px;
  }

  .navActions{
    gap:6px;
  }

  .navActions .light{
    display:none;
  }

  .moduleGrid{
    grid-template-columns:1fr;
  }

  .moduleGrid article,
  .moduleLink{
    min-height:auto;
  }

  .moduleGrid p{
    min-height:auto;
  }

  .card-wide{
    padding:22px;
  }

  .tenantMeta{
    align-items:flex-start;
  }
}


/* Modules: catalog, inventory, POS and orders */
.form-grid.threeCols{
  grid-template-columns:repeat(3,minmax(0,1fr));
}
.splitGrid{
  display:grid;
  grid-template-columns:minmax(320px,.9fr) minmax(0,1.1fr);
  gap:18px;
  align-items:start;
}
.sectionTitleRow{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
}
.sectionTitleRow h2{
  margin:2px 0 0;
}
.inventoryList,
.productList,
.ordersList{
  display:grid;
  gap:10px;
}
.inventoryCard,
.productRow,
.orderCard{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  padding:17px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:16px;
  box-shadow:var(--shadow);
}
.inventoryCard h3,
.productRow h3,
.orderCard h3,
.posProduct h3{
  margin:7px 0 4px;
}
.inventoryCard p,
.productRow p,
.orderCard p,
.posProduct p{
  margin:3px 0;
  color:var(--muted);
}
.tag{
  display:inline-flex;
  padding:5px 8px;
  border-radius:999px;
  background:#f0f0ec;
  color:#65655f;
  font-size:10px;
  font-weight:900;
  letter-spacing:.04em;
}
.adjustForm{
  width:min(340px,100%);
  display:grid;
  grid-template-columns:90px 1fr auto;
  gap:7px;
  align-items:end;
}
.adjustForm input{
  margin:0;
}
.recipeBox{
  margin:18px 0;
  padding:16px;
  border:1px dashed #d6d6cf;
  border-radius:16px;
  background:#fafaf8;
}
.recipeBox h3{
  margin:0;
}
.recipeBox > p{
  color:var(--muted);
  margin:4px 0 12px;
}
.inventoryRequirement{
  margin:8px 0;
  padding:10px 0;
  border-bottom:1px solid var(--line);
  display:grid;
  grid-template-columns:1fr 110px;
  gap:12px;
  align-items:center;
}
.inventoryRequirement:last-child{
  border-bottom:0;
}
.inventoryRequirement input{
  margin:0;
}
.inventoryRequirement small{
  display:block;
  margin-top:3px;
  color:var(--muted);
  font-weight:500;
}
.productMeta,
.orderMeta{
  min-width:135px;
  text-align:right;
}
.productMeta strong,
.orderMeta strong{
  display:block;
  font-size:21px;
}
.productMeta span,
.orderMeta span{
  display:block;
  margin-top:5px;
  color:var(--muted);
  font-size:11px;
}
.emptyPanel{
  padding:22px;
  border:1px dashed #d7d7d0;
  border-radius:16px;
  background:#fafaf8;
  color:var(--muted);
  text-align:center;
}
.posGrid{
  display:grid;
  grid-template-columns:minmax(0,1fr) 340px;
  gap:18px;
  align-items:start;
}
.posProducts{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}
.posProduct{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:16px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:16px;
  box-shadow:var(--shadow);
}
.posProduct input{
  width:76px;
  margin:0;
  text-align:center;
}
.posSummary{
  position:sticky;
  top:90px;
  padding:20px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:18px;
  box-shadow:var(--shadow);
}
.posSummary h2{
  margin-top:0;
}
.orderCard{
  align-items:center;
}

@media(max-width:900px){
  .splitGrid,
  .posGrid{
    grid-template-columns:1fr;
  }

  .posSummary{
    position:static;
  }
}

@media(max-width:680px){
  .form-grid.threeCols,
  .posProducts{
    grid-template-columns:1fr;
  }

  .inventoryCard,
  .productRow,
  .orderCard{
    flex-direction:column;
  }

  .adjustForm{
    width:100%;
    grid-template-columns:1fr;
  }

  .productMeta,
  .orderMeta{
    text-align:left;
  }

  .sectionTitleRow{
    align-items:flex-start;
    flex-direction:column;
  }

  .inventoryRequirement{
    grid-template-columns:1fr 90px;
  }
}


/* v0.2.1 - edición, imágenes, POS y detalle */
.fieldHint{
  display:block;
  margin-top:5px;
  color:var(--muted);
  font-size:11px;
  font-weight:500;
}

.actionRow,
.miniActions,
.orderTags,
.orderFacts{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  align-items:center;
}

.compact{
  min-height:34px;
  padding:7px 10px;
  font-size:12px;
}

.dangerText{
  color:#a22727;
}

.productRowWithImage{
  align-items:stretch;
}

.productThumbWrap,
.posImageWrap,
.productImageEdit{
  background:#f1f1ed;
  border-radius:14px;
  overflow:hidden;
  flex:0 0 auto;
}

.productThumbWrap{
  width:92px;
  min-height:92px;
}

.productThumb,
.posImageWrap img,
.productImageEdit img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.productThumbWrap.noImage::after,
.posImageWrap.noImage::after{
  content:'Sin imagen';
  display:grid;
  place-items:center;
  width:100%;
  height:100%;
  min-height:92px;
  color:#999;
  font-size:11px;
}

.productMain{
  flex:1;
  min-width:0;
}

.productImageEdit{
  width:120px;
  height:120px;
  margin-bottom:14px;
}

.posProduct{
  align-items:stretch;
  position:relative;
}

.posImageWrap{
  width:90px;
  min-height:110px;
}

.posProductInfo{
  flex:1;
  min-width:0;
}

.qtyControl{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  align-items:center;
  justify-content:flex-end;
  max-width:180px;
}

.qtyBtn{
  width:46px;
  height:46px;
  border:1px solid var(--line);
  border-radius:13px;
  background:#fff;
  font-size:24px;
  font-weight:900;
  cursor:pointer;
}

.qtyBtn:disabled,
.addOneBtn:disabled{
  opacity:.35;
  cursor:not-allowed;
}

.qtyInput{
  width:54px;
  height:46px;
  margin:0;
  text-align:center;
  font-size:18px;
  font-weight:900;
  border-radius:13px;
}

.addOneBtn{
  flex:1 0 100%;
  min-height:38px;
  border:0;
  border-radius:11px;
  background:#111;
  color:#fff;
  font-weight:800;
  cursor:pointer;
}

.cartMini{
  display:grid;
  gap:7px;
  margin:0 0 14px;
}

.cartMiniLine{
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding:8px 0;
  border-bottom:1px solid var(--line);
  font-size:12px;
}

.cartTotal{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin:10px 0 16px;
  padding-top:12px;
  border-top:1px solid var(--line);
}

.cartTotal strong{
  font-size:22px;
}

.successTag{
  background:#eaf7ed;
  color:#1f7c3a;
}

.orderCardRich{
  align-items:center;
}

.orderMain{
  flex:1;
  min-width:0;
}

.orderFacts{
  margin-top:10px;
  color:var(--muted);
  font-size:11px;
}

.detailContainer{
  max-width:980px;
}

.orderDetailGrid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
  margin-bottom:14px;
}

.detailList{
  display:grid;
  gap:10px;
}

.detailList > div{
  display:flex;
  justify-content:space-between;
  gap:18px;
  padding-bottom:10px;
  border-bottom:1px solid var(--line);
}

.detailList span{
  color:var(--muted);
}

.noteBox{
  margin-top:14px;
  padding:14px;
  border-radius:12px;
  background:#fafaf8;
  color:#555;
}

.detailItems{
  display:grid;
}

.detailItem{
  display:grid;
  grid-template-columns:1fr auto auto;
  gap:16px;
  align-items:center;
  padding:12px 0;
  border-bottom:1px solid var(--line);
}

.totalsBox{
  width:min(360px,100%);
  margin-left:auto;
  padding-top:16px;
  display:grid;
  gap:8px;
}

.totalsBox > div{
  display:flex;
  justify-content:space-between;
  gap:16px;
}

.grandTotal{
  padding-top:10px;
  border-top:1px solid var(--line);
  font-size:19px;
}

@media(max-width:760px){
  .productRowWithImage{
    display:grid;
    grid-template-columns:80px 1fr;
  }

  .productThumbWrap{
    width:80px;
    min-height:80px;
  }

  .productMeta{
    grid-column:1 / -1;
  }

  .posProduct{
    display:grid;
    grid-template-columns:80px 1fr;
  }

  .posImageWrap{
    width:80px;
    min-height:100px;
  }

  .qtyControl{
    grid-column:1 / -1;
    max-width:none;
    justify-content:flex-start;
  }

  .addOneBtn{
    flex:0 0 auto;
    min-width:110px;
  }

  .orderDetailGrid{
    grid-template-columns:1fr;
  }

  .detailItem{
    grid-template-columns:1fr auto;
  }

  .detailItem strong{
    grid-column:1 / -1;
  }
}


/* Public storefront + bundles + checkout */
.storeBody{
  background:#f7f7f4;
  padding-bottom:92px;
}

.storeHeader{
  position:sticky;
  top:0;
  z-index:40;
  background:rgba(255,255,255,.96);
  border-bottom:1px solid var(--line);
  backdrop-filter:blur(12px);
}

.storeBrand{
  display:flex;
  gap:10px;
  align-items:center;
  color:inherit;
  text-decoration:none;
}

.storeBrand h2{
  margin:0;
  font-size:18px;
}

.storeBrand p{
  margin:2px 0 0;
  color:var(--muted);
  font-size:12px;
}

.storeLogo{
  width:46px;
  height:46px;
  border-radius:14px;
  display:grid;
  place-items:center;
  background:var(--tenant,#111);
  color:#fff;
  font-weight:900;
}

.storeCategoryNav{
  position:sticky;
  top:66px;
  z-index:35;
  background:#fff;
  border-bottom:1px solid var(--line);
}

.categoryScroller{
  display:flex;
  gap:8px;
  overflow-x:auto;
  padding-top:10px;
  padding-bottom:10px;
  scrollbar-width:none;
}

.categoryScroller::-webkit-scrollbar{display:none}

.categoryScroller a{
  flex:0 0 auto;
  padding:8px 13px;
  border:1px solid var(--line);
  border-radius:999px;
  color:#222;
  background:#fff;
  text-decoration:none;
  font-size:12px;
  font-weight:800;
}

.categoryScroller a:hover{
  background:#111;
  color:#fff;
}

.storeMain{
  padding:28px 0 40px;
}

.storeIntro{
  display:flex;
  justify-content:space-between;
  gap:20px;
  align-items:flex-end;
  margin-bottom:30px;
}

.storeIntro h1{
  margin:4px 0 7px;
  font-size:clamp(32px,5vw,56px);
}

.storeIntro p{
  margin:0;
  color:var(--muted);
}

.storeSection{
  scroll-margin-top:130px;
  margin:34px 0;
}

.storeSectionHead{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  margin-bottom:14px;
}

.storeSectionHead h2{
  margin:0;
  font-size:24px;
}

.storeSectionHead span{
  color:var(--muted);
  font-size:12px;
}

.storeProductGrid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
}

.storeProductCard{
  overflow:hidden;
  background:#fff;
  border:1px solid var(--line);
  border-radius:20px;
  box-shadow:var(--shadow);
}

.storeProductImage{
  aspect-ratio:16/10;
  background:#efefeb;
  overflow:hidden;
}

.storeProductImage img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.storeProductImage.noImage::after{
  content:'Sin imagen';
  width:100%;
  height:100%;
  display:grid;
  place-items:center;
  color:#aaa;
  font-size:12px;
}

.storeProductContent{
  padding:16px;
}

.storeProductTitleRow{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:flex-start;
}

.storeProductTitleRow h3{
  margin:0;
  font-size:18px;
}

.storeProductTitleRow strong{
  white-space:nowrap;
}

.storeProductContent > p{
  min-height:40px;
  margin:8px 0 14px;
  color:var(--muted);
  font-size:13px;
  line-height:1.45;
}

.storeProductFoot{
  display:flex;
  justify-content:space-between;
  gap:10px;
  align-items:center;
}

.storeProductFoot small{
  color:var(--muted);
}

.storeAddControl{
  display:flex;
  align-items:center;
  gap:6px;
}

.storeQtyBtn{
  width:36px;
  height:36px;
  border:1px solid var(--line);
  border-radius:11px;
  background:#fff;
  font-size:20px;
  font-weight:900;
  cursor:pointer;
}

.storeAddControl span{
  min-width:22px;
  text-align:center;
  font-weight:900;
}

.storeCartBar{
  position:fixed;
  left:0;
  right:0;
  bottom:0;
  z-index:60;
  padding:10px 16px calc(10px + env(safe-area-inset-bottom));
  background:rgba(255,255,255,.96);
  border-top:1px solid var(--line);
  backdrop-filter:blur(12px);
}

.storeCartBarInner{
  width:min(1010px,100%);
  margin:auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:12px 16px;
  border:0;
  border-radius:15px;
  background:#111;
  color:#fff;
  cursor:pointer;
}

.storeCartBarInner span{
  display:grid;
  text-align:left;
}

.storeCartBarInner small{
  opacity:.68;
}

.cartDrawerBackdrop,
.productModalBackdrop{
  position:fixed;
  inset:0;
  z-index:70;
  background:rgba(0,0,0,.35);
}

.cartDrawer{
  position:fixed;
  z-index:80;
  left:50%;
  bottom:0;
  width:min(620px,100%);
  max-height:min(82vh,760px);
  padding:12px 20px calc(20px + env(safe-area-inset-bottom));
  background:#fff;
  border-radius:24px 24px 0 0;
  box-shadow:0 -20px 60px rgba(0,0,0,.18);
  transform:translate(-50%,105%);
  transition:transform .24s ease;
  overflow:auto;
}

.cartDrawer.open{
  transform:translate(-50%,0);
}

.cartDrawerHandle{
  width:42px;
  height:4px;
  margin:0 auto 16px;
  border-radius:99px;
  background:#d4d4d0;
}

.cartDrawerHead{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:12px;
}

.cartDrawerHead h2{
  margin:2px 0 0;
}

.iconClose{
  width:38px;
  height:38px;
  border:0;
  border-radius:12px;
  background:#f1f1ee;
  font-size:24px;
  cursor:pointer;
}

.cartDrawerLines{
  display:grid;
  gap:8px;
  margin:16px 0;
}

.cartDrawerLine{
  display:flex;
  justify-content:space-between;
  gap:14px;
  padding:13px 0;
  border-bottom:1px solid var(--line);
}

.cartDrawerLineInfo{
  display:grid;
  gap:4px;
}

.cartDrawerLineInfo small{
  color:var(--muted);
}

.cartDrawerLineActions{
  display:flex;
  gap:7px;
  align-items:center;
}

.cartDrawerLineActions button{
  min-width:32px;
  height:32px;
  border:1px solid var(--line);
  border-radius:9px;
  background:#fff;
  cursor:pointer;
}

.cartDrawerLineActions .cartRemove{
  color:#a22727;
  font-size:11px;
  min-width:auto;
  padding-inline:8px;
}

.cartDrawerTotal{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:14px 0 18px;
  font-size:18px;
}

.drawerOpen{
  overflow:hidden;
}

.productModal{
  position:fixed;
  inset:0;
  z-index:90;
  display:grid;
  place-items:center;
  padding:18px;
}

.productModal[hidden]{
  display:none;
}

.productModalCard{
  width:min(620px,100%);
  max-height:88vh;
  overflow:auto;
  padding:20px;
  border-radius:24px;
  background:#fff;
  box-shadow:0 30px 80px rgba(0,0,0,.22);
}

.bundlePublicGroup{
  margin:18px 0;
}

.bundlePublicGroupHead{
  display:flex;
  justify-content:space-between;
  gap:10px;
  align-items:center;
  margin-bottom:8px;
}

.bundlePublicGroupHead h3{
  margin:0;
}

.bundlePublicGroupHead span{
  color:var(--muted);
  font-size:11px;
}

.bundlePublicOptions{
  display:grid;
  gap:8px;
}

.bundlePublicOption{
  display:flex;
  gap:10px;
  padding:12px;
  border:1px solid var(--line);
  border-radius:14px;
  cursor:pointer;
}

.bundlePublicOption input{
  width:auto;
  margin:3px 0 0;
}

.bundlePublicOption b,
.bundlePublicOption small{
  display:block;
}

.bundlePublicOption small{
  margin-top:3px;
  color:var(--muted);
}

.bundlePublicOption.disabled{
  opacity:.45;
  cursor:not-allowed;
}

.bundleModalBottom{
  position:sticky;
  bottom:-20px;
  margin:20px -20px -20px;
  padding:14px 20px 20px;
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:center;
  background:#fff;
  border-top:1px solid var(--line);
}

.bundleQtyRow{
  display:flex;
  gap:9px;
  align-items:center;
}

.bundleQtyRow strong{
  min-width:25px;
  text-align:center;
}

.bundleOptionList{
  display:grid;
  gap:9px;
  margin:14px 0;
}

.bundleOptionChoice{
  display:grid;
  grid-template-columns:1fr 105px;
  gap:8px;
  align-items:end;
}

.deltaField{
  margin:0;
}

.bundleGroup{
  padding:14px;
  border:1px solid var(--line);
  border-radius:15px;
  background:#fafaf8;
}

.bundleGroupHead{
  display:flex;
  justify-content:space-between;
  gap:10px;
}

.bundleGroupHead h3{
  margin:0;
}

.bundleGroupHead p{
  margin:4px 0 0;
  color:var(--muted);
  font-size:11px;
}

.bundleGroupOptions{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin-top:12px;
}

.bundleGroupOptions span{
  padding:7px 9px;
  border-radius:999px;
  background:#fff;
  border:1px solid var(--line);
  font-size:11px;
}

.bundleGroupsCard{
  margin-top:16px;
}

.softHr{
  margin:24px 0;
  border:0;
  border-top:1px solid var(--line);
}

.checkoutContainer{
  max-width:1000px;
}

.checkoutGrid{
  display:grid;
  grid-template-columns:1.05fr .95fr;
  gap:16px;
  align-items:start;
}

.checkoutLines{
  display:grid;
}

.checkoutLine{
  display:flex;
  justify-content:space-between;
  gap:14px;
  padding:13px 0;
  border-bottom:1px solid var(--line);
}

.checkoutLine small{
  display:block;
  margin-top:4px;
  color:var(--muted);
}

.checkoutTotals{
  margin-top:16px;
  display:grid;
  gap:8px;
}

.checkoutTotals > div{
  display:flex;
  justify-content:space-between;
  gap:14px;
}

.customerSummary{
  display:grid;
  gap:3px;
  margin-bottom:16px;
  padding:12px;
  border-radius:13px;
  background:#f5f5f2;
}

.customerSummary span{
  color:var(--muted);
  font-size:12px;
}

.reservationNotice{
  padding:12px 14px;
  border-radius:12px;
  background:#fff5d8;
  color:#6e5200;
  border:1px solid #f2dfaa;
}

.orderSuccessCard{
  max-width:720px;
}

.successActions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-top:18px;
}

.accountBusinesses{
  display:grid;
  gap:8px;
}

.accountBusiness{
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding:12px;
  border:1px solid var(--line);
  border-radius:12px;
  color:inherit;
  text-decoration:none;
}

.accountBusiness span{
  color:var(--muted);
  font-size:11px;
}

@media(max-width:900px){
  .storeProductGrid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .checkoutGrid{
    grid-template-columns:1fr;
  }
}

@media(max-width:620px){
  .storeIntro{
    align-items:flex-start;
    flex-direction:column;
  }

  .storeProductGrid{
    grid-template-columns:1fr;
  }

  .storeProductContent > p{
    min-height:auto;
  }

  .storeProductFoot{
    align-items:flex-end;
  }

  .storeAddControl{
    flex-wrap:wrap;
    justify-content:flex-end;
  }

  .cartDrawer{
    max-height:88vh;
  }

  .cartDrawerLine{
    flex-direction:column;
  }

  .cartDrawerLineActions{
    justify-content:flex-start;
  }

  .bundleOptionChoice{
    grid-template-columns:1fr;
  }

  .bundleModalBottom{
    align-items:stretch;
    flex-direction:column;
  }

  .bundleQtyRow{
    justify-content:center;
  }

  .accountBusiness{
    flex-direction:column;
  }
}


/* Branding, customers, reports and team */
.storeLogoImage{
  overflow:hidden;
  background:var(--tenant,#111);
}

.storeLogoImage img,
.storeLogoImage span{
  width:100%;
  height:100%;
}

.storeLogoImage img{
  object-fit:cover;
  display:block;
}

.storeLogoImage span{
  place-items:center;
}

.brandConfigGrid{
  display:grid;
  grid-template-columns:130px 1fr;
  gap:18px;
  align-items:center;
  margin-bottom:18px;
}

.brandLogoPreview{
  width:120px;
  height:120px;
  border-radius:22px;
  overflow:hidden;
  background:#111;
  color:#fff;
  font-size:34px;
  font-weight:900;
}

.brandLogoPreview img,
.brandLogoPreview div{
  width:100%;
  height:100%;
  object-fit:cover;
}

.brandLogoPreview div{
  place-items:center;
}

.colorInputRow{
  display:flex;
  align-items:center;
  gap:10px;
  margin-top:7px;
}

.colorInputRow input[type="color"]{
  width:64px;
  height:46px;
  padding:4px;
  margin:0;
}

.colorInputRow span{
  color:var(--muted);
  font-family:monospace;
}

.customerGrid,
.teamList{
  display:grid;
  gap:10px;
}

.customerCard,
.teamCard{
  display:flex;
  justify-content:space-between;
  gap:18px;
  padding:18px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:16px;
  box-shadow:var(--shadow);
}

.customerCard h3,
.teamCard h3{
  margin:6px 0 4px;
}

.customerCard p,
.teamCard p{
  margin:2px 0;
  color:var(--muted);
}

.customerStats{
  min-width:160px;
  display:grid;
  gap:5px;
  text-align:right;
}

.customerStats strong{
  font-size:20px;
}

.customerStats small{
  color:var(--muted);
}

.reportGrid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
  margin-top:18px;
}

.rankList{
  display:grid;
}

.rankList > div{
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding:11px 0;
  border-bottom:1px solid var(--line);
}

.rankList > div:last-child{
  border-bottom:0;
}

@media(max-width:720px){
  .brandConfigGrid,
  .reportGrid{
    grid-template-columns:1fr;
  }

  .customerCard,
  .teamCard{
    flex-direction:column;
  }

  .customerStats{
    text-align:left;
  }
}


/* v0.3 - Portal shell, uploads, navigation and interaction */
html{
  scroll-behavior:smooth;
}

a,
button,
.moduleLink,
.storeProductCard,
.businessSelectorCard{
  transition:
    transform .16s ease,
    box-shadow .16s ease,
    border-color .16s ease,
    background .16s ease,
    color .16s ease,
    opacity .16s ease;
}

@media (hover:hover){
  .btn:hover,
  .portalNav a:hover,
  .portalSidebarSupport a:hover{
    transform:translateY(-1px);
  }

  .moduleLink:hover,
  .businessSelectorCard:hover,
  .storeProductCard:hover{
    transform:translateY(-3px);
    box-shadow:0 16px 36px rgba(0,0,0,.10);
  }
}

button:disabled,
.btn:disabled{
  opacity:.55;
  cursor:wait;
}

.portalBody{
  background:#f6f7f4;
  min-height:100vh;
}

.portalSidebar{
  position:fixed;
  inset:0 auto 0 0;
  z-index:100;
  width:258px;
  display:flex;
  flex-direction:column;
  padding:18px 14px 16px;
  background:#fff;
  border-right:1px solid var(--line);
  overflow:auto;
}

.portalSidebarBrand{
  padding:4px 8px 16px;
}

.portalBusinessMini{
  display:grid;
  grid-template-columns:42px 1fr;
  gap:10px;
  align-items:center;
  padding:11px;
  margin-bottom:10px;
  border-radius:15px;
  background:#f5f5f2;
}

.portalBusinessMiniLogo{
  width:42px;
  height:42px;
  overflow:hidden;
  border-radius:12px;
  background:#111;
  color:#fff;
  font-weight:900;
}

.portalBusinessMiniLogo img,
.portalBusinessMiniLogo span{
  width:100%;
  height:100%;
}

.portalBusinessMiniLogo img{
  object-fit:cover;
  display:block;
}

.portalBusinessMiniLogo span{
  place-items:center;
}

.portalBusinessMini b,
.portalBusinessMini small{
  display:block;
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.portalBusinessMini small{
  margin-top:2px;
  color:var(--muted);
  font-size:10px;
}

.portalNav,
.portalSidebarSupport{
  display:grid;
  gap:4px;
}

.portalNav a,
.portalSidebarSupport a{
  display:grid;
  grid-template-columns:30px 1fr;
  align-items:center;
  min-height:42px;
  padding:8px 10px;
  border-radius:12px;
  color:#32322f;
  text-decoration:none;
  font-size:12px;
  font-weight:800;
}

.portalNav a > span,
.portalSidebarSupport a > span{
  width:28px;
  height:28px;
  display:grid;
  place-items:center;
  border-radius:9px;
  background:#f4f4f1;
  font-size:13px;
}

.portalNav a.active,
.portalSidebarSupport a.active{
  background:#111;
  color:#fff;
}

.portalNav a.active > span,
.portalSidebarSupport a.active > span{
  background:rgba(255,255,255,.12);
}

.portalSidebarSupport{
  margin-top:12px;
  padding-top:12px;
  border-top:1px solid var(--line);
}

.portalSidebarFooter{
  margin-top:auto;
  padding:18px 10px 2px;
  color:#555;
}

.portalSidebarFooter span,
.portalSidebarFooter small{
  display:block;
}

.portalSidebarFooter span{
  font-weight:900;
}

.portalSidebarFooter small{
  margin-top:2px;
  font-size:9px;
  color:#999;
}

.portalToolbar{
  position:fixed;
  top:0;
  left:258px;
  right:0;
  z-index:85;
  height:66px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  padding:0 24px;
  background:rgba(255,255,255,.94);
  border-bottom:1px solid var(--line);
  backdrop-filter:blur(12px);
}

.portalBackBtn{
  min-height:38px;
  display:flex;
  align-items:center;
  gap:7px;
  padding:8px 12px;
  border:1px solid var(--line);
  border-radius:11px;
  background:#fff;
  color:#111;
  font-weight:800;
  cursor:pointer;
}

.portalToolbarActions{
  display:flex;
  gap:8px;
}

.portalWorkspace{
  min-height:100vh;
  margin-left:258px;
  padding:92px 24px 52px;
}

.portalWorkspaceInner{
  width:min(1180px,100%);
  margin:0 auto;
}

.portalWorkspace .pageTitle{
  margin-top:4px;
}

.portalWorkspace .section{
  padding:0;
}

.portalSidebarOverlay{
  display:none;
}

.portalMenuFab,
.portalMobileQuick{
  display:none;
}

.portalPageHeading{
  margin:0 0 22px;
}

.portalPageHeading h1{
  margin:4px 0 7px;
  font-size:clamp(30px,4vw,46px);
}

.portalPageHeading p{
  margin:0;
  color:var(--muted);
}

.platformFooter{
  padding:18px;
  text-align:center;
  color:#999;
  font-size:10px;
}

.uploadZone{
  min-height:118px;
  display:grid;
  place-items:center;
  gap:6px;
  margin-top:7px;
  padding:20px;
  border:1.5px dashed #c9c9c2;
  border-radius:16px;
  background:#fafaf7;
  text-align:center;
  cursor:pointer;
}

.uploadZone:hover,
.uploadZone.dragging{
  border-color:#111;
  background:#f5f5f1;
}

.uploadZone.hasFile{
  border-color:#83be8c;
  background:#eff9f1;
}

.uploadZone input[type="file"]{
  position:absolute;
  width:1px;
  height:1px;
  opacity:0;
  pointer-events:none;
}

.uploadZoneIcon{
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  border-radius:13px;
  background:#fff;
  border:1px solid var(--line);
  font-size:20px;
}

.uploadZone b{
  font-size:13px;
}

.uploadZone small{
  color:var(--muted);
  font-size:10px;
}

.businessSelectorGrid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
  margin-top:24px;
}

.businessSelectorCard{
  padding:20px;
  border:1px solid var(--line);
  border-radius:20px;
  background:#fff;
  box-shadow:var(--shadow);
}

.businessSelectorTop{
  display:grid;
  grid-template-columns:64px 1fr;
  gap:14px;
  align-items:center;
}

.businessSelectorLogo{
  width:64px;
  height:64px;
  overflow:hidden;
  border-radius:17px;
  background:#111;
  color:#fff;
  font-size:24px;
  font-weight:900;
}

.businessSelectorLogo img,
.businessSelectorLogo span{
  width:100%;
  height:100%;
}

.businessSelectorLogo img{
  display:block;
  object-fit:cover;
}

.businessSelectorLogo span{
  place-items:center;
}

.businessSelectorTop h2{
  margin:5px 0 2px;
}

.businessSelectorTop p{
  margin:0;
  color:var(--muted);
  font-size:11px;
}

.businessSelectorActions{
  display:flex;
  gap:8px;
  margin-top:18px;
}

.businessSelectorActions form{
  margin:0;
}

.storeSectionHead .scrollHint{
  color:#555;
  font-weight:800;
}

.storeProductGrid{
  display:flex;
  overflow-x:auto;
  gap:14px;
  padding:2px 44px 14px 2px;
  scroll-snap-type:x proximity;
  overscroll-behavior-inline:contain;
  scrollbar-width:thin;
}

.storeProductCard{
  flex:0 0 min(310px,82vw);
  scroll-snap-align:start;
}

@media(max-width:980px){
  .portalSidebar{
    transform:translateX(-105%);
    box-shadow:18px 0 50px rgba(0,0,0,.12);
    transition:transform .22s ease;
  }

  .portalSidebar.open{
    transform:translateX(0);
  }

  .portalSidebarOverlay{
    position:fixed;
    inset:0;
    z-index:95;
    background:rgba(0,0,0,.26);
  }

  .portalSidebarOverlay.open{
    display:block;
  }

  .portalToolbar{
    left:0;
    height:60px;
    padding:0 14px;
  }

  .portalWorkspace{
    margin-left:0;
    padding:80px 14px 100px;
  }

  .portalMenuFab{
    position:fixed;
    left:18px;
    bottom:20px;
    z-index:120;
    width:54px;
    height:54px;
    display:grid;
    place-items:center;
    border:0;
    border-radius:50%;
    background:#111;
    color:#fff;
    box-shadow:0 12px 28px rgba(0,0,0,.22);
    font-size:22px;
    font-weight:900;
  }

  .portalMobileQuick{
    position:fixed;
    left:82px;
    bottom:23px;
    z-index:110;
    display:flex;
    gap:8px;
  }

  .portalMobileQuick a{
    width:46px;
    height:46px;
    display:grid;
    place-items:center;
    border-radius:50%;
    border:1px solid var(--line);
    background:#fff;
    color:#111;
    text-decoration:none;
    box-shadow:0 10px 22px rgba(0,0,0,.12);
  }
}

@media(max-width:660px){
  .portalToolbarActions .btn span,
  .portalBackBtn span{
    display:none;
  }

  .portalToolbarActions .btn{
    min-width:42px;
    padding-inline:10px;
  }

  .businessSelectorGrid{
    grid-template-columns:1fr;
  }

  .businessSelectorActions{
    flex-wrap:wrap;
  }

  .storeProductCard{
    flex-basis:min(285px,84vw);
  }
}


/* v0.4 - CRM, suppliers, onboarding, dashboard polish */
.portalWorkspace{
  padding-top:80px;
}

.portalLogoutForm{
  margin:12px 0 0;
  padding-top:12px;
  border-top:1px solid var(--line);
}

.portalLogoutForm button{
  width:100%;
  min-height:40px;
  display:flex;
  gap:10px;
  align-items:center;
  padding:8px 12px;
  border:0;
  border-radius:11px;
  background:transparent;
  color:#8f2525;
  font-weight:800;
  cursor:pointer;
}

.portalLogoutForm button:hover{
  background:#fff0f0;
}

.quickstartCard,
.quickstartDone{
  margin-top:18px;
  padding:22px;
  border:1px solid var(--line);
  border-radius:22px;
  background:#fff;
  box-shadow:var(--shadow);
}

.quickstartCard{
  display:grid;
  grid-template-columns:.8fr 1.3fr auto;
  gap:20px;
  align-items:center;
}

.quickstartCopy h2,
.quickstartDone h2{
  margin:5px 0 6px;
}

.quickstartCopy p,
.quickstartDone p{
  margin:0;
  color:var(--muted);
}

.quickstartChecks{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
}

.quickstartChecks a{
  min-height:82px;
  display:flex;
  gap:9px;
  align-items:center;
  padding:12px;
  border:1px solid var(--line);
  border-radius:14px;
  color:#111;
  text-decoration:none;
  background:#fafaf8;
}

.quickstartChecks a > span{
  width:30px;
  height:30px;
  flex:0 0 30px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:#111;
  color:#fff;
  font-weight:900;
}

.quickstartChecks a.done > span{
  background:#18873a;
}

.quickstartChecks b,
.quickstartChecks small{
  display:block;
}

.quickstartChecks small{
  margin-top:2px;
  color:var(--muted);
  font-size:9px;
}

.quickstartDone{
  display:flex;
  justify-content:space-between;
  gap:16px;
  align-items:center;
}

.portalHomeGrid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
  margin:18px 0;
}

.portalHomeAction{
  min-height:130px;
  display:grid;
  grid-template-columns:42px 1fr auto;
  gap:12px;
  align-items:start;
  padding:18px;
  border:1px solid var(--line);
  border-radius:18px;
  background:#fff;
  color:#111;
  text-decoration:none;
  box-shadow:var(--shadow);
}

.portalHomeAction > span{
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  border-radius:12px;
  background:#111;
  color:#fff;
}

.portalHomeAction b{
  display:block;
  margin-top:2px;
}

.portalHomeAction p{
  margin:7px 0 0;
  color:var(--muted);
  font-size:11px;
  line-height:1.45;
}

.portalHomeAction i{
  font-style:normal;
  font-size:18px;
}

.metrics.three{
  grid-template-columns:repeat(3,minmax(0,1fr));
}

.crmMetrics{
  grid-template-columns:repeat(5,minmax(0,1fr));
}

.metricAttention{
  border-color:#ecd497!important;
  background:#fff9e9!important;
}

.crmColumns{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
  margin-top:14px;
}

.crmRail{
  display:flex;
  gap:10px;
  overflow-x:auto;
  padding:4px 20px 8px 0;
}

.crmMiniCard{
  flex:0 0 min(260px,80vw);
  padding:14px;
  border:1px solid var(--line);
  border-radius:15px;
  background:#fafaf8;
}

.crmMiniCard h3{
  margin:0 0 5px;
}

.crmMiniCard p{
  margin:0 0 10px;
  color:var(--muted);
  font-size:11px;
}

.crmMiniCard span,
.crmMiniCard strong{
  display:block;
  margin-top:4px;
  font-size:11px;
}

.crmTags{
  display:flex;
  flex-wrap:wrap;
  gap:5px;
}

.warningTag{
  background:#fff0d6;
  color:#855800;
}

.rankList small{
  display:block;
  margin-top:3px;
  color:var(--muted);
  font-size:9px;
  font-weight:500;
}

.reportHeroGrid{
  display:grid;
  grid-template-columns:1.45fr .55fr;
  gap:14px;
  margin-top:18px;
}

.historyBars{
  display:grid;
  gap:10px;
}

.historyBarTop{
  display:flex;
  justify-content:space-between;
  gap:12px;
  font-size:11px;
}

.historyBarTrack{
  height:9px;
  margin:5px 0 2px;
  overflow:hidden;
  border-radius:999px;
  background:#ededE8;
}

.historyBarTrack span{
  height:100%;
  display:block;
  border-radius:999px;
  background:#111;
}

.historyBarItem small{
  color:var(--muted);
  font-size:9px;
}

.channelDonut{
  width:180px;
  aspect-ratio:1;
  margin:20px auto;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:conic-gradient(#111 0 var(--pos),#8fe0d6 var(--pos) 100%);
  position:relative;
}

.channelDonut::after{
  content:'';
  position:absolute;
  width:118px;
  aspect-ratio:1;
  border-radius:50%;
  background:#fff;
}

.channelDonut > div{
  position:relative;
  z-index:1;
  display:grid;
  text-align:center;
}

.channelDonut strong{
  font-size:20px;
}

.channelDonut span{
  color:var(--muted);
  font-size:9px;
}

.channelLegend{
  display:grid;
  gap:8px;
}

.channelLegend > div{
  display:grid;
  grid-template-columns:12px 1fr auto;
  gap:7px;
  align-items:center;
  font-size:11px;
}

.legendDot{
  width:10px;
  height:10px;
  border-radius:50%;
}

.posDot{background:#111}
.onlineDot{background:#8fe0d6}

.miniTrend{
  display:grid;
  gap:8px;
}

.miniTrendRow{
  display:grid;
  grid-template-columns:56px 1fr 76px;
  gap:8px;
  align-items:center;
  font-size:10px;
}

.miniTrendRow > div{
  height:8px;
  border-radius:999px;
  overflow:hidden;
  background:#efefe9;
}

.miniTrendRow i{
  display:block;
  height:100%;
  border-radius:999px;
  background:#111;
}

.miniTrendRow b{
  text-align:right;
}

.supplierLayout{
  display:grid;
  grid-template-columns:.85fr 1.15fr;
  gap:14px;
  margin-top:18px;
}

.supplierCards,
.purchaseList{
  display:grid;
  gap:8px;
}

.supplierCard,
.purchaseRow{
  display:flex;
  justify-content:space-between;
  gap:18px;
  align-items:center;
  padding:14px 0;
  border-bottom:1px solid var(--line);
}

.supplierCard:last-child,
.purchaseRow:last-child{
  border-bottom:0;
}

.supplierCard h3,
.purchaseRow h3{
  margin:3px 0;
}

.supplierCard p,
.purchaseRow p{
  margin:0;
  color:var(--muted);
  font-size:11px;
}

.supplierCardStats,
.purchaseRowRight{
  display:grid;
  gap:5px;
  text-align:right;
  justify-items:end;
}

.guideProgress{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:8px;
  margin:18px 0;
}

.guideProgress > div{
  display:flex;
  gap:8px;
  align-items:center;
  padding:10px;
  border:1px solid var(--line);
  border-radius:13px;
  background:#fff;
}

.guideProgress b{
  width:28px;
  height:28px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:#eee;
}

.guideProgress .done b{
  background:#1b873d;
  color:#fff;
}

.guideSteps{
  display:grid;
  gap:12px;
}

.guideStep{
  display:grid;
  grid-template-columns:64px 1fr;
  gap:18px;
  padding:22px;
  border:1px solid var(--line);
  border-radius:20px;
  background:#fff;
  box-shadow:var(--shadow);
}

.guideNumber{
  font-size:34px;
  font-weight:900;
  color:#d2d2cd;
}

.guideStep h2{
  margin:0 0 6px;
}

.guideStep p{
  max-width:760px;
  margin:0 0 14px;
  color:var(--muted);
  line-height:1.55;
}

.helpGrid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
}

.helpCard{
  min-height:230px;
  padding:20px;
  display:flex;
  flex-direction:column;
  border:1px solid var(--line);
  border-radius:18px;
  background:#fff;
  box-shadow:var(--shadow);
}

.helpCard > span{
  color:#aaa;
  font-weight:900;
}

.helpCard h2{
  margin:12px 0 8px;
  font-size:18px;
}

.helpCard p{
  margin:0 0 16px;
  color:var(--muted);
  line-height:1.55;
  font-size:12px;
}

.helpCard a{
  margin-top:auto;
  color:#111;
  font-weight:900;
  text-decoration:none;
}

.previewBanner{
  position:sticky;
  top:0;
  z-index:75;
  display:flex;
  justify-content:center;
  gap:8px;
  align-items:center;
  padding:9px 14px;
  background:#fff2c7;
  border-bottom:1px solid #ecd98f;
  color:#614b00;
  font-size:11px;
}

.storeHeader + .previewBanner{
  top:66px;
}

.previewEmailGrid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
  margin-top:14px;
}

.emailPreviewCard{
  padding:18px;
  border:1px solid var(--line);
  border-radius:18px;
  background:#fff;
  box-shadow:var(--shadow);
}

.emailPreviewCard h3{
  margin:8px 0;
}

.emailPreviewCard p{
  color:#555;
  line-height:1.5;
}

.emailPreviewCard small{
  color:#999;
}

.storePoweredBy{
  padding:22px 16px 110px;
  text-align:center;
  color:#aaa;
  font-size:9px;
}

.confirmationBusinessBrand{
  display:flex;
  justify-content:center;
  gap:10px;
  align-items:center;
  margin-bottom:18px;
}

.confirmationBusinessBrand > div:last-child{
  display:grid;
  text-align:left;
}

.confirmationBusinessBrand small{
  color:var(--muted);
  font-size:9px;
}

.adminGrid{
  display:grid;
  grid-template-columns:.8fr 1.2fr;
  gap:14px;
  margin-top:18px;
  align-items:start;
}

.adminBusinessList{
  display:grid;
}

.adminBusinessRow{
  display:flex;
  justify-content:space-between;
  gap:16px;
  padding:14px 0;
  border-bottom:1px solid var(--line);
}

.adminBusinessRow:last-child{
  border-bottom:0;
}

.adminBusinessRow h3{
  margin:5px 0 3px;
}

.adminBusinessRow p{
  margin:0 0 4px;
  color:var(--muted);
  font-size:11px;
}

.adminBusinessRow small{
  color:#888;
}

.adminBusinessActions{
  display:flex;
  gap:7px;
  align-items:center;
}

.adminBusinessActions form{
  margin:0;
}

@media(max-width:1080px){
  .quickstartCard{
    grid-template-columns:1fr;
  }

  .portalHomeGrid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .crmMetrics{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }

  .reportHeroGrid,
  .supplierLayout,
  .adminGrid{
    grid-template-columns:1fr;
  }

  .helpGrid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media(max-width:720px){
  .portalWorkspace{
    padding-top:72px;
  }

  .quickstartChecks,
  .metrics.three,
  .crmMetrics,
  .guideProgress{
    grid-template-columns:1fr 1fr;
  }

  .portalHomeGrid,
  .crmColumns,
  .previewEmailGrid,
  .helpGrid{
    grid-template-columns:1fr;
  }

  .supplierCard,
  .purchaseRow,
  .adminBusinessRow{
    align-items:flex-start;
    flex-direction:column;
  }

  .supplierCardStats,
  .purchaseRowRight{
    text-align:left;
    justify-items:start;
  }

  .guideStep{
    grid-template-columns:1fr;
  }

  .guideNumber{
    font-size:24px;
  }

  .previewBanner{
    align-items:flex-start;
    flex-direction:column;
  }
}


.storeRailActions{
  display:flex;
  gap:6px;
  align-items:center;
}

.storeRailActions button{
  width:34px;
  height:34px;
  display:grid;
  place-items:center;
  border:1px solid var(--line);
  border-radius:50%;
  background:#fff;
  color:#111;
  font-weight:900;
  cursor:pointer;
}

.storeRailActions button:hover{
  background:#111;
  color:#fff;
}

.fieldBlock{
  display:block;
  margin-bottom:14px;
}

.fieldLabel{
  display:block;
  margin-bottom:7px;
  font-size:12px;
  font-weight:800;
}

@media(max-width:620px){
  .storeRailActions .scrollHint{
    display:none;
  }

  .storeRailActions button{
    width:32px;
    height:32px;
  }
}


/* v0.5 - platform branding and desktop affordances */
.brandWithImage{
  display:inline-flex;
  align-items:center;
  gap:9px;
}

.platformLogoMark{
  width:34px;
  height:34px;
  flex:0 0 34px;
  display:grid;
  place-items:center;
  overflow:hidden;
  border-radius:10px;
  background:#111;
  color:#fff;
}

.platformLogoMark img,
.platformLogoMark b{
  width:100%;
  height:100%;
}

.platformLogoMark img{
  display:block;
  object-fit:cover;
}

.platformLogoMark b{
  place-items:center;
}

.platformBrandCard{
  margin:18px 0;
}

@media (hover:hover){
  .btn,
  .portalNav a,
  .portalSidebarSupport a,
  .portalHomeAction,
  .businessSelectorCard,
  .storeProductCard,
  .helpCard,
  .guideStep{
    transition:
      transform .16s ease,
      box-shadow .16s ease,
      background .16s ease,
      border-color .16s ease;
  }

  .btn:hover{
    transform:translateY(-1px);
  }

  .btn.dark:hover{
    background:#2a2a2a;
  }

  .btn.light:hover{
    background:#f3f3ef;
    border-color:#d5d5cf;
  }

  .portalNav a:hover,
  .portalSidebarSupport a:hover{
    background:#f2f2ee;
  }

  .portalHomeAction:hover,
  .businessSelectorCard:hover,
  .helpCard:hover,
  .guideStep:hover{
    transform:translateY(-2px);
    box-shadow:0 16px 38px rgba(0,0,0,.09);
  }

  .storeProductCard:hover{
    transform:translateY(-2px);
    box-shadow:0 18px 42px rgba(0,0,0,.1);
  }
}


/* v0.6 - plans, permissions and universal sidebar toggle */
.portalSidebar,
.portalToolbar,
.portalWorkspace{
  transition:
    transform .2s ease,
    left .2s ease,
    margin-left .2s ease;
}

.portalToolbarLeft{
  display:flex;
  align-items:center;
  gap:8px;
}

.portalMenuToggle{
  width:40px;
  height:40px;
  display:grid;
  place-items:center;
  border:1px solid var(--line);
  border-radius:11px;
  background:#111;
  color:#fff;
  font-size:18px;
  font-weight:900;
  cursor:pointer;
}

.portalMenuFab,
.portalMobileQuick{
  display:none!important;
}

body.portalSidebarCollapsed .portalSidebar{
  transform:translateX(-105%);
}

body.portalSidebarCollapsed .portalToolbar{
  left:0;
}

body.portalSidebarCollapsed .portalWorkspace{
  margin-left:0;
}

.portalNav a > span,
.portalSidebarSupport a > span{
  font-size:16px;
  background:#f5f5f2;
}

.portalSidebarSupport{
  padding-top:10px;
  border-top:1px solid var(--line);
}

.teamPlanNotice{
  display:flex;
  gap:10px;
  margin-bottom:16px;
}

.teamPlanNotice > div{
  min-width:180px;
  padding:13px 16px;
  border:1px solid var(--line);
  border-radius:14px;
  background:#fff;
}

.teamPlanNotice span,
.teamPlanNotice b{
  display:block;
}

.teamPlanNotice span{
  color:var(--muted);
  font-size:10px;
}

.teamPlanNotice b{
  margin-top:3px;
}

.permissionBox{
  margin:16px 0;
  padding:16px;
  border:1px solid var(--line);
  border-radius:16px;
  background:#fafaf7;
}

.permissionMode{
  margin-top:8px;
}

.modulePermissionGrid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
  margin-top:12px;
  opacity:.45;
  pointer-events:none;
}

.modulePermissionGrid.enabled{
  opacity:1;
  pointer-events:auto;
}

.modulePermission{
  display:flex;
  gap:8px;
  align-items:center;
  min-height:44px;
  padding:9px 11px;
  border:1px solid var(--line);
  border-radius:12px;
  background:#fff;
  cursor:pointer;
}

.modulePermission input{
  width:17px;
  height:17px;
  accent-color:#111;
}

.modulePermission b{
  font-size:11px;
}

.memberPermissionSummary{
  margin-top:9px;
  color:#666;
  font-size:10px;
}

.planAdminGrid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
  margin-top:22px;
  align-items:start;
}

.planAdminCard{
  margin:0;
}

.planAdminCard textarea{
  resize:vertical;
}

.miniToggle{
  display:flex!important;
  flex-direction:row!important;
  gap:7px;
  align-items:center;
  margin:0!important;
}

.miniToggle input{
  width:18px;
  height:18px;
}

.discountEditor{
  margin:14px 0;
  padding:14px;
  border-radius:15px;
  background:#f5f5f2;
}

.offerPreview{
  display:grid;
  gap:2px;
  margin-top:8px;
  padding:12px;
  border-radius:12px;
  background:#fff;
}

.offerPreview span,
.offerPreview small{
  color:var(--muted);
  font-size:10px;
}

.offerPreview b{
  width:max-content;
  padding:4px 7px;
  border-radius:999px;
  background:#dff6e5;
  color:#17632a;
  font-size:10px;
}

.offerPreview strong{
  font-size:21px;
}

.adminPlanAssign{
  display:flex;
  gap:6px;
  align-items:center;
  margin-top:10px;
}

.adminPlanAssign select{
  min-height:36px;
  max-width:220px;
  padding:6px 9px;
  border:1px solid var(--line);
  border-radius:10px;
  background:#fff;
  font-size:10px;
}

.pricingHero{
  max-width:760px;
  margin:10px auto 30px;
  text-align:center;
}

.pricingHero h1{
  margin:7px 0 10px;
  font-size:clamp(34px,5vw,60px);
  line-height:1.02;
}

.pricingHero p{
  color:var(--muted);
  line-height:1.55;
}

.pricingGrid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
  align-items:stretch;
}

.pricingCard{
  position:relative;
  display:flex;
  flex-direction:column;
  padding:24px;
  border:1px solid var(--line);
  border-radius:22px;
  background:#fff;
  box-shadow:var(--shadow);
}

.pricingCard.featured{
  border-color:#111;
  box-shadow:0 18px 48px rgba(0,0,0,.12);
}

.popularBadge{
  position:absolute;
  top:-12px;
  left:20px;
  padding:6px 10px;
  border-radius:999px;
  background:#111;
  color:#fff;
  font-size:9px;
  font-weight:900;
}

.pricingCard h2{
  margin:5px 0 8px;
  font-size:27px;
}

.pricingCard > p{
  min-height:58px;
  margin:0;
  color:var(--muted);
  line-height:1.5;
}

.priceBlock{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  align-items:baseline;
  margin:22px 0;
}

.priceBlock strong{
  width:100%;
  font-size:38px;
  line-height:1;
}

.priceBlock span{
  color:var(--muted);
  font-size:11px;
}

.priceBlock > small{
  color:#999;
  text-decoration:line-through;
}

.discountBadge{
  padding:5px 8px;
  border-radius:999px;
  background:#dff6e5;
  color:#17632a;
  font-size:10px;
  font-weight:900;
}

.planFeatureList{
  display:grid;
  gap:10px;
  padding:0;
  margin:0 0 20px;
  list-style:none;
  font-size:12px;
}

.planCapacity{
  margin-top:auto;
  margin-bottom:14px;
  padding:11px;
  border-radius:11px;
  background:#f5f5f2;
  font-size:11px;
}

.pricingFootnote{
  max-width:760px;
  margin:22px auto 0;
  color:#999;
  text-align:center;
  font-size:10px;
}

.lockedModuleCard{
  max-width:720px;
  margin:60px auto;
  text-align:center;
}

.lockedModuleIcon{
  font-size:44px;
  margin-bottom:12px;
}

.lockedModuleCard h1{
  margin:8px auto;
  max-width:580px;
}

.lockedModuleCard p{
  max-width:560px;
  margin:0 auto 18px;
  color:var(--muted);
}

.lockedModuleMeta{
  width:max-content;
  margin:0 auto 18px;
  padding:10px 16px;
  border-radius:12px;
  background:#f5f5f2;
}

.lockedModuleMeta span,
.lockedModuleMeta b{
  display:block;
}

.lockedModuleMeta span{
  color:var(--muted);
  font-size:9px;
}

.lockedModuleCard .actionRow{
  justify-content:center;
}

@media(max-width:1080px){
  .planAdminGrid,
  .pricingGrid{
    grid-template-columns:1fr;
  }

  .pricingCard > p{
    min-height:0;
  }
}

@media(max-width:980px){
  body.portalSidebarCollapsed .portalSidebar{
    transform:translateX(-105%);
  }

  .portalToolbar{
    left:0!important;
  }

  .portalWorkspace{
    margin-left:0!important;
  }

  .portalSidebar.open{
    transform:translateX(0)!important;
  }

  .portalSidebarOverlay.open{
    display:block;
  }
}

@media(max-width:660px){
  .portalToolbar{
    height:60px;
    padding:0 10px;
  }

  .portalMenuToggle,
  .portalBackBtn{
    min-width:40px;
  }

  .portalConfigQuick{
    width:42px;
    min-width:42px!important;
    overflow:hidden;
    white-space:nowrap;
  }

  .teamPlanNotice{
    display:grid;
    grid-template-columns:1fr 1fr;
  }

  .teamPlanNotice > div{
    min-width:0;
  }

  .modulePermissionGrid{
    grid-template-columns:1fr;
  }

  .adminPlanAssign{
    flex-wrap:wrap;
  }

  .pricingCard{
    padding:20px;
  }
}


/* v0.7 - landing, business cards and superadmin layout */
.adminPage{
  padding-top:28px;
}

.adminTopHeading{
  display:flex;
  justify-content:space-between;
  gap:16px;
  align-items:flex-start;
  margin:0 0 14px;
}

.adminTopHeading .eyebrow{
  display:block;
  margin-bottom:4px;
}

.adminTopHeading p{
  margin:0;
}

.adminMetrics{
  margin-bottom:18px;
}

.adminWideCard{
  width:100%;
  margin:0 0 18px;
}

.adminBusinessMain{
  min-width:0;
  flex:1;
}

.portalBusinessShare{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  align-items:center;
}

.portalBusinessShare a{
  color:#666;
  text-decoration:none;
}

.portalBusinessShare > a:first-child:hover{
  color:#111;
  text-decoration:underline;
}

.tenantMetaCardBtn{
  display:inline-flex;
  align-items:center;
  min-height:30px;
  padding:5px 9px;
  border:1px solid var(--line);
  border-radius:999px;
  background:#fff;
  color:#111!important;
  font-size:10px;
  font-weight:900;
}

.digitalCardMiniPreview{
  display:grid;
  grid-template-columns:46px 1fr auto;
  gap:10px;
  align-items:center;
  margin-top:14px;
  padding:12px;
  border:1px solid var(--line);
  border-radius:15px;
  background:#fafaf7;
}

.digitalCardMiniLogo{
  width:46px;
  height:46px;
  overflow:hidden;
  border-radius:13px;
  display:grid;
  place-items:center;
  background:#111;
  color:#fff;
  font-weight:900;
}

.digitalCardMiniLogo img,
.digitalCardMiniLogo span{
  width:100%;
  height:100%;
}

.digitalCardMiniLogo img{
  object-fit:cover;
}

.digitalCardMiniLogo span{
  place-items:center;
}

.digitalCardMiniPreview b,
.digitalCardMiniPreview small{
  display:block;
}

.digitalCardMiniPreview small{
  margin-top:3px;
  color:var(--muted);
  font-size:9px;
}

.digitalCardMiniPreview a{
  color:#111;
  font-size:10px;
  font-weight:900;
  text-decoration:none;
}

.storeHeaderActions{
  display:flex;
  gap:8px;
  align-items:center;
}

/* Digital business card */
.digitalCardBody{
  min-height:100vh;
  margin:0;
  background:
    radial-gradient(circle at 8% 12%,color-mix(in srgb,var(--tenant) 10%,transparent),transparent 34%),
    radial-gradient(circle at 92% 80%,color-mix(in srgb,var(--tenant-soft) 80%,transparent),transparent 40%),
    #f4f4f1;
}

.digitalCardPage{
  width:min(620px,calc(100% - 28px));
  margin:0 auto;
  padding:42px 0;
}

.digitalBusinessCard{
  position:relative;
  overflow:hidden;
  padding:28px;
  border:1px solid rgba(0,0,0,.08);
  border-radius:28px;
  background:#fff;
  box-shadow:0 30px 90px rgba(0,0,0,.13);
}

.digitalBusinessCard::before{
  content:'';
  position:absolute;
  width:260px;
  height:260px;
  top:-140px;
  right:-110px;
  border-radius:50%;
  background:color-mix(in srgb,var(--tenant) 12%,transparent);
  filter:blur(4px);
}

.digitalCardTop{
  position:relative;
  display:grid;
  grid-template-columns:86px 1fr;
  gap:18px;
  align-items:center;
}

.digitalCardLogo{
  width:86px;
  height:86px;
  overflow:hidden;
  display:grid;
  place-items:center;
  border-radius:24px;
  background:var(--tenant);
  color:#fff;
  font-size:32px;
  font-weight:900;
}

.digitalCardLogo img,
.digitalCardLogo span{
  width:100%;
  height:100%;
}

.digitalCardLogo img{
  display:block;
  object-fit:cover;
}

.digitalCardLogo span{
  place-items:center;
}

.digitalCardIdentity h1{
  margin:4px 0 6px;
  font-size:clamp(28px,7vw,42px);
  line-height:1;
}

.digitalCardIdentity p{
  max-width:390px;
  margin:0;
  color:#666;
  line-height:1.5;
}

.digitalCardQrBlock{
  position:relative;
  display:grid;
  grid-template-columns:150px 1fr;
  gap:18px;
  align-items:center;
  margin:24px 0;
  padding:18px;
  border-radius:20px;
  background:#f6f6f2;
}

.digitalCardQrBlock img{
  width:150px;
  height:150px;
  border-radius:12px;
  background:#fff;
}

.digitalCardQrBlock span,
.digitalCardQrBlock b{
  display:block;
}

.digitalCardQrBlock span{
  margin-bottom:5px;
  color:#777;
  font-size:10px;
  text-transform:uppercase;
  letter-spacing:.08em;
}

.digitalCardQrBlock b{
  overflow-wrap:anywhere;
  font-size:17px;
}

.digitalCardLinks{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
}

.digitalCardLinks a{
  min-height:46px;
  display:flex;
  align-items:center;
  padding:10px 12px;
  border:1px solid var(--line);
  border-radius:13px;
  color:#111;
  text-decoration:none;
  font-size:11px;
  font-weight:900;
  background:#fff;
}

.digitalCardLinks a:hover{
  transform:translateY(-1px);
  border-color:#aaa;
}

.digitalCardFooter{
  display:flex;
  gap:6px;
  align-items:baseline;
  justify-content:center;
  margin-top:22px;
  color:#999;
  font-size:9px;
}

.digitalCardFooter strong{
  color:#111;
}

.digitalCardActions{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  justify-content:center;
  margin-top:14px;
}

.digitalCardHint{
  margin:12px auto 0;
  max-width:460px;
  color:#888;
  text-align:center;
  font-size:10px;
  line-height:1.5;
}

/* Sales landing */
.landingBody{
  background:#fbfbf8;
  color:#111;
}

.landingHeader{
  position:sticky;
  top:0;
  z-index:90;
  background:rgba(255,255,255,.9);
  backdrop-filter:blur(18px);
}

.landingNavLinks{
  display:flex;
  gap:22px;
  margin-left:auto;
  margin-right:22px;
}

.landingNavLinks a{
  color:#555;
  font-size:11px;
  font-weight:800;
  text-decoration:none;
}

.landingNavLinks a:hover{
  color:#111;
}

.landingHero{
  position:relative;
  overflow:hidden;
  padding:86px 0 82px;
  background:
    linear-gradient(135deg,#f7fbf8 0%,#fff 48%,#faf7ff 100%);
}

.landingOrb{
  position:absolute;
  border-radius:50%;
  filter:blur(60px);
  opacity:.45;
  pointer-events:none;
  animation:landingFloat 8s ease-in-out infinite alternate;
}

.orbOne{
  width:360px;
  height:360px;
  left:-120px;
  top:40px;
  background:#9ce7dc;
}

.orbTwo{
  width:420px;
  height:420px;
  right:-150px;
  bottom:-140px;
  background:#d8b9ff;
  animation-delay:-3s;
}

@keyframes landingFloat{
  from{transform:translate3d(0,0,0) scale(1)}
  to{transform:translate3d(24px,-18px,0) scale(1.08)}
}

.landingHeroGrid{
  position:relative;
  z-index:1;
  display:grid;
  grid-template-columns:1fr .92fr;
  gap:70px;
  align-items:center;
}

.landingPill{
  display:inline-flex;
  padding:7px 10px;
  border:1px solid #dadad4;
  border-radius:999px;
  background:rgba(255,255,255,.8);
  font-size:9px;
  font-weight:900;
  letter-spacing:.08em;
}

.landingHeroCopy h1{
  max-width:760px;
  margin:18px 0;
  font-size:clamp(46px,6.4vw,84px);
  line-height:.96;
  letter-spacing:-.055em;
}

.landingHeroCopy > p{
  max-width:650px;
  margin:0;
  color:#5f5f5a;
  font-size:17px;
  line-height:1.6;
}

.landingHeroActions{
  display:flex;
  gap:9px;
  margin-top:26px;
}

.landingMiniProof{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  margin-top:26px;
}

.landingMiniProof span{
  padding:7px 9px;
  border:1px solid #e3e3de;
  border-radius:999px;
  background:rgba(255,255,255,.8);
  color:#555;
  font-size:10px;
}

.landingHeroVisual{
  position:relative;
  min-height:500px;
  display:grid;
  place-items:center;
}

.landingAppMock{
  position:relative;
  z-index:2;
  width:min(500px,100%);
  padding:22px;
  border:1px solid rgba(0,0,0,.08);
  border-radius:28px;
  background:rgba(255,255,255,.93);
  box-shadow:0 34px 90px rgba(0,0,0,.13);
  transform:rotate(1.5deg);
}

.landingMockTop{
  display:flex;
  justify-content:space-between;
  gap:14px;
  align-items:center;
}

.landingMockBrand{
  display:flex;
  gap:10px;
  align-items:center;
}

.landingMockBrand > span{
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  border-radius:12px;
  background:#111;
  color:#fff;
  font-weight:900;
}

.landingMockBrand b,
.landingMockBrand small{
  display:block;
}

.landingMockBrand small{
  margin-top:2px;
  color:#999;
  font-size:9px;
}

.landingStatus{
  padding:6px 8px;
  border-radius:999px;
  background:#ddf7e5;
  color:#166b30;
  font-size:9px;
  font-weight:900;
}

.landingMockMetrics{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:8px;
  margin:18px 0;
}

.landingMockMetrics > div{
  padding:13px;
  border-radius:14px;
  background:#f5f5f1;
}

.landingMockMetrics small,
.landingMockMetrics b{
  display:block;
}

.landingMockMetrics small{
  color:#777;
  font-size:9px;
}

.landingMockMetrics b{
  margin-top:3px;
  font-size:18px;
}

.landingMockOrder{
  display:flex;
  justify-content:space-between;
  gap:16px;
  align-items:center;
  padding:15px;
  border:1px solid #dcebdd;
  border-radius:15px;
  background:#f3fbf5;
}

.landingMockOrder b,
.landingMockOrder small{
  display:block;
}

.landingMockOrder small{
  margin-top:3px;
  color:#777;
  font-size:9px;
}

.landingTinyTag{
  display:block;
  margin-bottom:5px;
  color:#2d7a42;
  font-size:8px;
  font-weight:900;
  letter-spacing:.08em;
}

.landingMockRows{
  display:grid;
  gap:7px;
  margin-top:14px;
}

.landingMockRows > div{
  display:grid;
  grid-template-columns:30px 1fr auto;
  gap:8px;
  align-items:center;
  min-height:42px;
  padding:8px 10px;
  border-radius:12px;
  background:#fafaf8;
}

.landingMockRows > div > span{
  width:30px;
  height:30px;
  display:grid;
  place-items:center;
  border-radius:9px;
  background:#fff;
}

.landingMockRows b{
  font-size:11px;
}

.landingMockRows i{
  color:#888;
  font-size:9px;
  font-style:normal;
}

.floatingChip{
  position:absolute;
  z-index:3;
  padding:10px 13px;
  border:1px solid rgba(0,0,0,.08);
  border-radius:999px;
  background:#fff;
  box-shadow:0 12px 30px rgba(0,0,0,.1);
  font-size:10px;
  font-weight:900;
  animation:chipFloat 3.6s ease-in-out infinite alternate;
}

.chipOne{
  left:-25px;
  bottom:88px;
}

.chipTwo{
  right:-12px;
  top:82px;
  animation-delay:-1.6s;
}

@keyframes chipFloat{
  from{transform:translateY(0)}
  to{transform:translateY(-9px)}
}

.landingBand{
  padding:22px 0;
  background:#111;
  color:#fff;
}

.landingBand .container{
  display:flex;
  justify-content:center;
  gap:8px;
  flex-wrap:wrap;
  text-align:center;
}

.landingBand p{
  margin:0;
  color:#bfbfba;
}

.landingSection{
  padding:92px 0;
}

.landingSoftSection{
  background:#f4f4ef;
}

.landingSectionHead{
  max-width:720px;
  margin-bottom:34px;
}

.landingSectionHead h2{
  margin:7px 0 10px;
  font-size:clamp(34px,4.6vw,58px);
  line-height:1;
  letter-spacing:-.04em;
}

.landingSectionHead p{
  margin:0;
  color:#686862;
  font-size:14px;
  line-height:1.55;
}

.landingFeatureGrid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
}

.landingFeatureCard{
  min-height:220px;
  padding:20px;
  border:1px solid var(--line);
  border-radius:20px;
  background:#fff;
  box-shadow:0 10px 28px rgba(0,0,0,.04);
}

.landingFeatureCard > span{
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  border-radius:12px;
  background:#f3f3ef;
  font-size:20px;
}

.landingFeatureCard h3{
  margin:28px 0 8px;
  font-size:17px;
}

.landingFeatureCard p{
  margin:0;
  color:#696965;
  font-size:11px;
  line-height:1.6;
}

.landingSteps{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
}

.landingSteps article{
  padding:22px;
  border-top:2px solid #111;
  background:#fff;
}

.landingSteps article > b{
  color:#aaa;
  font-size:26px;
}

.landingSteps h3{
  margin:26px 0 7px;
}

.landingSteps p{
  margin:0;
  color:#6e6e69;
  font-size:11px;
  line-height:1.55;
}

.landingPricingGrid{
  margin-top:24px;
}

.landingFaqGrid{
  display:grid;
  grid-template-columns:.9fr 1.1fr;
  gap:60px;
  align-items:start;
}

.landingFaqList{
  display:grid;
  gap:8px;
}

.landingFaqList details{
  padding:17px 18px;
  border:1px solid var(--line);
  border-radius:15px;
  background:#fff;
}

.landingFaqList summary{
  cursor:pointer;
  font-weight:900;
}

.landingFaqList p{
  margin:10px 0 0;
  color:#666;
  font-size:11px;
  line-height:1.55;
}

.landingContactSection{
  background:#111;
  color:#fff;
}

.landingContactGrid{
  display:grid;
  grid-template-columns:.8fr 1.2fr;
  gap:56px;
  align-items:start;
}

.landingContactCopy h2{
  margin:8px 0 12px;
  font-size:clamp(34px,4vw,55px);
  line-height:1;
}

.landingContactCopy p{
  color:#c8c8c3;
  line-height:1.6;
}

.landingContactCopy a{
  color:#fff;
}

.landingContactNotes{
  display:grid;
  gap:8px;
  margin-top:22px;
  color:#d2d2cd;
  font-size:11px;
}

.landingContactForm{
  padding:24px;
  border-radius:22px;
  background:#fff;
  color:#111;
}

.landingFormPrivacy{
  display:block;
  margin-top:10px;
  color:#888;
  line-height:1.5;
}

.honeypot{
  position:absolute!important;
  left:-9999px!important;
  width:1px!important;
  height:1px!important;
  opacity:0!important;
}

.landingFooter{
  padding:54px 0 22px;
  background:#0a0a0a;
  color:#fff;
}

.landingFooterGrid{
  display:grid;
  grid-template-columns:1.7fr repeat(3,1fr);
  gap:30px;
}

.landingFooterGrid > div{
  display:grid;
  align-content:start;
  gap:9px;
}

.landingFooterGrid .brand{
  color:#fff;
}

.landingFooterGrid p{
  max-width:320px;
  margin:8px 0 0;
  color:#94948f;
  font-size:11px;
  line-height:1.55;
}

.landingFooterGrid small{
  color:#777;
}

.landingFooterGrid > div > b{
  margin-bottom:5px;
  font-size:11px;
}

.landingFooterGrid a:not(.brand){
  color:#aeadab;
  font-size:10px;
  text-decoration:none;
}

.landingFooterGrid a:hover{
  color:#fff;
}

.landingFooterBottom{
  display:flex;
  justify-content:space-between;
  gap:12px;
  margin-top:42px;
  padding-top:18px;
  border-top:1px solid #242424;
  color:#767676;
  font-size:9px;
}

.reveal{
  opacity:0;
  transform:translateY(18px);
  transition:opacity .55s ease,transform .55s ease;
}

.reveal.visible{
  opacity:1;
  transform:translateY(0);
}

/* legal pages */
.legalPage{
  padding:54px 0 80px;
  background:#f7f7f4;
}

.legalCard{
  max-width:900px;
  padding:34px;
  border:1px solid var(--line);
  border-radius:22px;
  background:#fff;
}

.legalCard h1{
  margin:7px 0 6px;
  font-size:clamp(34px,5vw,54px);
}

.legalCard h2{
  margin:30px 0 8px;
  font-size:18px;
}

.legalCard p{
  color:#5f5f5a;
  line-height:1.7;
}

.legalNote{
  margin-top:32px;
  padding:14px;
  border-radius:13px;
  background:#fff7dc;
  color:#6f5900!important;
  font-size:10px;
}

/* responsive */
@media(max-width:1120px){
  .landingFeatureGrid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .landingSteps{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .landingHeroGrid{
    gap:34px;
  }
}

@media(max-width:860px){
  .landingNavLinks{
    display:none;
  }

  .landingHero{
    padding:58px 0 54px;
  }

  .landingHeroGrid,
  .landingFaqGrid,
  .landingContactGrid{
    grid-template-columns:1fr;
  }

  .landingHeroVisual{
    min-height:auto;
    margin-top:10px;
  }

  .landingAppMock{
    transform:none;
  }

  .landingFooterGrid{
    grid-template-columns:1.3fr 1fr 1fr;
  }

  .landingFooterGrid > div:last-child{
    grid-column:2/4;
  }
}

@media(max-width:640px){
  .adminPage{
    padding-top:18px;
  }

  .adminTopHeading{
    align-items:center;
  }

  .adminBusinessActions{
    width:100%;
    flex-wrap:wrap;
  }

  .adminBusinessActions .btn{
    width:auto;
  }

  .digitalCardPage{
    padding:20px 0 34px;
  }

  .digitalBusinessCard{
    padding:20px;
    border-radius:22px;
  }

  .digitalCardTop{
    grid-template-columns:64px 1fr;
    gap:12px;
  }

  .digitalCardLogo{
    width:64px;
    height:64px;
    border-radius:18px;
    font-size:24px;
  }

  .digitalCardQrBlock{
    grid-template-columns:116px 1fr;
    gap:12px;
    padding:13px;
  }

  .digitalCardQrBlock img{
    width:116px;
    height:116px;
  }

  .digitalCardQrBlock b{
    font-size:13px;
  }

  .digitalCardLinks{
    grid-template-columns:1fr;
  }

  .storeHeaderActions .btn{
    padding-inline:9px;
  }

  .landingHeader .nav{
    gap:8px;
  }

  .landingHeader .brand span:last-child{
    display:none;
  }

  .landingHeader .navActions .btn{
    padding:8px 10px;
    font-size:10px;
  }

  .landingHeroCopy h1{
    font-size:47px;
  }

  .landingHeroCopy > p{
    font-size:14px;
  }

  .landingHeroActions{
    display:grid;
    grid-template-columns:1fr;
  }

  .landingHeroActions .btn{
    width:100%;
  }

  .landingHeroVisual{
    margin-top:18px;
  }

  .floatingChip{
    display:none;
  }

  .landingMockMetrics{
    gap:5px;
  }

  .landingMockMetrics > div{
    padding:10px;
  }

  .landingMockMetrics b{
    font-size:15px;
  }

  .landingSection{
    padding:62px 0;
  }

  .landingFeatureGrid,
  .landingSteps{
    grid-template-columns:1fr;
  }

  .landingFeatureCard{
    min-height:0;
  }

  .landingFeatureCard h3{
    margin-top:18px;
  }

  .landingFooterGrid{
    grid-template-columns:1fr 1fr;
  }

  .landingFooterGrid > div:first-child{
    grid-column:1/-1;
  }

  .landingFooterGrid > div:last-child{
    grid-column:auto;
  }

  .landingFooterBottom{
    flex-direction:column;
  }

  .digitalCardMiniPreview{
    grid-template-columns:40px 1fr;
  }

  .digitalCardMiniPreview > a{
    grid-column:1/-1;
  }
}

@media(prefers-reduced-motion:reduce){
  .landingOrb,
  .floatingChip{
    animation:none!important;
  }

  .reveal{
    opacity:1!important;
    transform:none!important;
    transition:none!important;
  }
}


/* v0.8 - refined digital business card */
.digitalCardBody{
  min-height:100dvh;
  display:grid;
  place-items:center;
  position:relative;
  overflow-x:hidden;
  background:
    linear-gradient(rgba(255,255,255,.82),rgba(255,255,255,.82)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cg fill='none' stroke='%23111111' stroke-opacity='.12' stroke-width='1.4'%3E%3Cpath d='M24 31l8 8-8 8-8-8z'/%3E%3Ccircle cx='101' cy='32' r='8'/%3E%3Cpath d='M148 22l3 7 7 3-7 3-3 7-3-7-7-3 7-3z'/%3E%3Cpath d='M41 113c8-12 17-12 25 0s17 12 25 0'/%3E%3Crect x='118' y='103' width='18' height='18' rx='4'/%3E%3Cpath d='M149 143l7 7m0-7l-7 7'/%3E%3Cpath d='M25 147h16m-8-8v16'/%3E%3C/g%3E%3C/svg%3E"),
    radial-gradient(circle at 10% 10%,color-mix(in srgb,var(--tenant) 14%,transparent),transparent 28%),
    radial-gradient(circle at 90% 90%,color-mix(in srgb,var(--tenant-soft) 70%,transparent),transparent 34%),
    #f5f5f1;
  background-size:auto,180px 180px,auto,auto,auto;
}

.digitalCardBody::before,
.digitalCardBody::after{
  content:'';
  position:fixed;
  pointer-events:none;
  border-radius:50%;
  filter:blur(70px);
  opacity:.24;
}

.digitalCardBody::before{
  width:280px;
  height:280px;
  left:-100px;
  top:8%;
  background:var(--tenant);
}

.digitalCardBody::after{
  width:320px;
  height:320px;
  right:-120px;
  bottom:4%;
  background:var(--tenant-soft);
}

.digitalCardPage{
  width:min(650px,calc(100% - 30px));
  min-height:100dvh;
  display:flex;
  flex-direction:column;
  justify-content:center;
  margin:0 auto;
  padding:28px 0;
  position:relative;
  z-index:1;
}

.digitalCardTopbar{
  width:100%;
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:center;
  margin-bottom:10px;
  color:#777;
  font-size:10px;
  font-weight:800;
}

.digitalCardBack{
  min-height:36px;
  padding:7px 11px;
  border:1px solid rgba(0,0,0,.09);
  border-radius:11px;
  background:rgba(255,255,255,.88);
  color:#111;
  font:inherit;
  font-weight:900;
  cursor:pointer;
  backdrop-filter:blur(12px);
}

.digitalCardBack:hover{
  transform:translateX(-2px);
  background:#fff;
}

.digitalBusinessCard{
  position:relative;
  isolation:isolate;
  overflow:hidden;
  padding:30px;
  border:1px solid color-mix(in srgb,var(--tenant) 32%,#dadad4);
  border-radius:30px;
  background:rgba(255,255,255,.96);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.9) inset,
    0 0 28px color-mix(in srgb,var(--tenant) 12%,transparent),
    0 30px 90px rgba(0,0,0,.13);
}

.digitalBusinessCard::before{
  content:'';
  position:absolute;
  inset:0;
  z-index:-2;
  background:
    linear-gradient(135deg,color-mix(in srgb,var(--tenant) 5%,transparent),transparent 30%),
    radial-gradient(circle at 85% 0%,color-mix(in srgb,var(--tenant) 15%,transparent),transparent 28%);
}

.digitalBusinessCard::after{
  content:'';
  position:absolute;
  inset:1px;
  z-index:-1;
  border-radius:29px;
  pointer-events:none;
  box-shadow:
    0 0 18px color-mix(in srgb,var(--tenant) 10%,transparent) inset;
}

.digitalCardGlow{
  position:absolute;
  width:200px;
  height:200px;
  top:-90px;
  right:-70px;
  border-radius:50%;
  background:var(--tenant);
  opacity:.08;
  filter:blur(22px);
  pointer-events:none;
}

.digitalCardTop{
  position:relative;
  display:grid;
  grid-template-columns:88px 1fr;
  gap:18px;
  align-items:center;
}

.digitalCardLogo{
  width:88px;
  height:88px;
  border-radius:25px;
  box-shadow:
    0 10px 26px rgba(0,0,0,.12),
    0 0 0 4px color-mix(in srgb,var(--tenant) 8%,#fff);
}

.digitalCardIdentity h1{
  margin:5px 0 7px;
}

.digitalCardIdentity p{
  max-width:410px;
}

.digitalCardQrBlock{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:14px;
  margin:28px 0 22px;
  padding:22px;
  border:1px solid color-mix(in srgb,var(--tenant) 16%,#e5e5df);
  border-radius:22px;
  background:
    linear-gradient(180deg,#fbfbf8,#f4f4ef);
  text-align:center;
}

.digitalCardQrCopy{
  display:grid;
  gap:5px;
  justify-items:center;
}

.digitalCardQrCopy span{
  color:#6e6e68;
  font-size:9px;
  font-weight:900;
  letter-spacing:.1em;
}

.digitalCardQrCopy b{
  max-width:100%;
  overflow-wrap:anywhere;
  color:#111;
  font-size:15px;
}

.digitalCardQrFrame{
  padding:12px;
  border-radius:20px;
  background:#fff;
  box-shadow:
    0 0 0 1px rgba(0,0,0,.05),
    0 12px 28px rgba(0,0,0,.08),
    0 0 24px color-mix(in srgb,var(--tenant) 10%,transparent);
}

.digitalCardQrFrame img{
  display:block;
  width:238px;
  height:238px;
  max-width:100%;
  border-radius:11px;
}

.digitalCardLinks{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:9px;
}

.digitalCardLinks a{
  flex:0 1 190px;
  justify-content:center;
  text-align:center;
  min-height:46px;
  padding:10px 14px;
  border-color:color-mix(in srgb,var(--tenant) 10%,#e5e5df);
  background:#fff;
  box-shadow:0 6px 18px rgba(0,0,0,.035);
}

.digitalCardLinks a:only-child{
  flex-basis:min(240px,100%);
}

.digitalCardLinks a:hover{
  transform:translateY(-2px);
  border-color:color-mix(in srgb,var(--tenant) 35%,#aaa);
  box-shadow:0 10px 24px color-mix(in srgb,var(--tenant) 8%,rgba(0,0,0,.08));
}

.digitalCardFooter{
  margin-top:24px;
}

.digitalCardActions{
  margin-top:12px;
}

.digitalCardActions .btn{
  min-width:120px;
}

.digitalShareFeedback{
  min-height:22px;
  margin-top:8px;
  color:#17642e;
  text-align:center;
  font-size:10px;
  font-weight:900;
  opacity:0;
  transform:translateY(-5px);
  transition:.2s ease;
}

.digitalShareFeedback.show{
  opacity:1;
  transform:translateY(0);
}

.digitalBusinessCard.digitalCardShared{
  animation:digitalCardCelebrate .72s ease both;
}

.digitalBusinessCard.digitalCardShared::after{
  animation:digitalCardGlowPulse .72s ease both;
}

@keyframes digitalCardCelebrate{
  0%{transform:scale(1)}
  35%{transform:scale(1.012)}
  68%{transform:scale(.997)}
  100%{transform:scale(1)}
}

@keyframes digitalCardGlowPulse{
  0%{
    box-shadow:
      0 0 18px color-mix(in srgb,var(--tenant) 10%,transparent) inset;
  }
  45%{
    box-shadow:
      0 0 34px color-mix(in srgb,var(--tenant) 42%,transparent) inset,
      0 0 34px color-mix(in srgb,var(--tenant) 30%,transparent);
  }
  100%{
    box-shadow:
      0 0 18px color-mix(in srgb,var(--tenant) 10%,transparent) inset;
  }
}

.digitalCardHint{
  margin-top:4px;
}

@media(max-width:640px){
  .digitalCardBody{
    min-height:100dvh;
    place-items:center;
    background-size:auto,150px 150px,auto,auto,auto;
  }

  .digitalCardPage{
    width:min(430px,calc(100% - 24px));
    min-height:100dvh;
    justify-content:center;
    padding:16px 0 22px;
  }

  .digitalCardTopbar{
    margin-bottom:8px;
  }

  .digitalBusinessCard{
    min-height:690px;
    display:flex;
    flex-direction:column;
    justify-content:center;
    padding:24px 20px;
    border-radius:26px;
  }

  .digitalBusinessCard::after{
    border-radius:25px;
  }

  .digitalCardTop{
    grid-template-columns:1fr;
    justify-items:center;
    gap:11px;
    text-align:center;
  }

  .digitalCardLogo{
    width:76px;
    height:76px;
    border-radius:22px;
  }

  .digitalCardIdentity p{
    max-width:330px;
    margin-inline:auto;
  }

  .digitalCardQrBlock{
    width:100%;
    margin:24px 0 18px;
    padding:18px 14px;
  }

  .digitalCardQrCopy b{
    font-size:13px;
  }

  .digitalCardQrFrame{
    padding:10px;
  }

  .digitalCardQrFrame img{
    width:min(250px,66vw);
    height:auto;
    aspect-ratio:1;
  }

  .digitalCardLinks{
    width:100%;
  }

  .digitalCardLinks a{
    flex:0 1 calc(50% - 6px);
    min-width:0;
  }

  .digitalCardLinks a:only-child{
    flex-basis:78%;
  }

  .digitalCardFooter{
    margin-top:20px;
  }

  .digitalCardActions{
    display:grid;
    grid-template-columns:1fr 1fr;
    width:100%;
  }

  .digitalCardActions > :first-child{
    grid-column:1/-1;
  }

  .digitalCardActions .btn{
    min-width:0;
    width:100%;
  }

  .digitalCardHint{
    max-width:340px;
  }
}

@media(max-width:390px){
  .digitalBusinessCard{
    min-height:660px;
    padding:20px 16px;
  }

  .digitalCardQrFrame img{
    width:min(230px,64vw);
  }

  .digitalCardLinks a{
    flex-basis:100%;
  }

  .digitalCardLinks a:only-child{
    flex-basis:86%;
  }
}

@media(prefers-reduced-motion:reduce){
  .digitalBusinessCard.digitalCardShared,
  .digitalBusinessCard.digitalCardShared::after{
    animation:none!important;
  }
}


/* v0.9 - live order notifications */
.portalNotificationWrap{
  position:relative;
}

.portalNotificationButton{
  position:relative;
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  border:1px solid var(--line);
  border-radius:12px;
  background:#fff;
  color:#111;
  font-size:17px;
  cursor:pointer;
  transition:
    transform .18s ease,
    border-color .18s ease,
    background .18s ease;
}

.portalNotificationButton:hover{
  transform:translateY(-1px);
  border-color:#bdbdb6;
  background:#fafaf7;
}

.portalNotificationButton.hasUnread{
  border-color:#111;
}

.portalNotificationCount,
.portalOrdersNavBadge{
  min-width:18px;
  height:18px;
  display:inline-grid;
  place-items:center;
  padding:0 5px;
  border-radius:999px;
  background:#111;
  color:#fff;
  font-size:8px;
  font-weight:900;
  line-height:1;
}

.portalNotificationCount{
  position:absolute;
  top:-6px;
  right:-6px;
  box-shadow:0 0 0 3px #fff;
}

.portalOrdersNavBadge{
  margin-left:auto;
  font-style:normal;
}

.portalNotificationPanel{
  position:absolute;
  z-index:180;
  top:50px;
  right:0;
  width:min(390px,calc(100vw - 28px));
  max-height:min(560px,72vh);
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:18px;
  background:#fff;
  box-shadow:0 28px 70px rgba(0,0,0,.18);
}

.portalNotificationPanel[hidden]{
  display:none!important;
}

.portalNotificationHead{
  display:flex;
  justify-content:space-between;
  gap:14px;
  align-items:center;
  padding:15px 16px;
  border-bottom:1px solid var(--line);
  background:#fbfbf8;
}

.portalNotificationHead > div{
  display:grid;
  gap:2px;
}

.portalNotificationHead b{
  font-size:14px;
}

.portalNotificationHead button{
  border:0;
  background:transparent;
  color:#555;
  font-size:9px;
  font-weight:900;
  cursor:pointer;
}

.portalNotificationHead button:hover{
  color:#111;
  text-decoration:underline;
}

.portalNotificationList{
  max-height:470px;
  overflow:auto;
  overscroll-behavior:contain;
}

.portalNotificationItem{
  display:grid;
  grid-template-columns:42px 1fr;
  gap:11px;
  align-items:start;
  padding:13px 15px;
  border-bottom:1px solid #eeeeea;
  color:#111;
  text-decoration:none;
  transition:background .16s ease;
}

.portalNotificationItem:last-child{
  border-bottom:0;
}

.portalNotificationItem:hover{
  background:#fafaf7;
}

.portalNotificationItem.unread{
  background:#f3f7ff;
}

.portalNotificationItem.unread:hover{
  background:#edf3ff;
}

.portalNotificationItemIcon{
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  border-radius:12px;
  background:#f1f1ed;
  font-size:17px;
}

.portalNotificationItem.unread .portalNotificationItemIcon{
  background:#111;
}

.portalNotificationItemCopy{
  min-width:0;
  display:grid;
  gap:3px;
}

.portalNotificationItemCopy b{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:11px;
}

.portalNotificationItemCopy span{
  overflow:hidden;
  color:#666;
  font-size:10px;
  line-height:1.4;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.portalNotificationItemCopy small{
  color:#999;
  font-size:8px;
}

.portalNotificationEmpty{
  padding:28px 18px;
  color:#888;
  text-align:center;
  font-size:10px;
}

.portalLiveToast{
  position:fixed;
  z-index:240;
  right:20px;
  bottom:20px;
  width:min(420px,calc(100vw - 28px));
  display:grid;
  grid-template-columns:44px 1fr auto;
  gap:11px;
  align-items:center;
  padding:13px;
  border:1px solid rgba(0,0,0,.08);
  border-radius:17px;
  background:#111;
  color:#fff;
  box-shadow:0 20px 55px rgba(0,0,0,.24);
  opacity:0;
  transform:translateY(18px) scale(.98);
  transition:
    opacity .22s ease,
    transform .22s ease;
}

.portalLiveToast[hidden]{
  display:none!important;
}

.portalLiveToast.show{
  opacity:1;
  transform:translateY(0) scale(1);
}

.portalLiveToastIcon{
  width:44px;
  height:44px;
  display:grid;
  place-items:center;
  border-radius:13px;
  background:#fff;
  color:#111;
  font-size:19px;
}

.portalLiveToastCopy{
  min-width:0;
  display:grid;
  gap:3px;
}

.portalLiveToastCopy b{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:12px;
}

.portalLiveToastCopy span{
  overflow:hidden;
  color:#cfcfcb;
  font-size:9px;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.portalLiveToast > a{
  min-height:34px;
  display:inline-flex;
  align-items:center;
  padding:7px 10px;
  border-radius:10px;
  background:#fff;
  color:#111;
  font-size:9px;
  font-weight:900;
  text-decoration:none;
}

@media(max-width:660px){
  .portalNotificationPanel{
    position:fixed;
    top:68px;
    right:10px;
    left:10px;
    width:auto;
    max-height:72vh;
    border-radius:17px;
  }

  .portalNotificationList{
    max-height:calc(72vh - 66px);
  }

  .portalLiveToast{
    right:12px;
    bottom:12px;
    width:calc(100vw - 24px);
    grid-template-columns:40px 1fr auto;
  }

  .portalLiveToastIcon{
    width:40px;
    height:40px;
  }

  .portalConfigQuick{
    margin-left:0;
  }
}

@media(prefers-reduced-motion:reduce){
  .portalNotificationButton,
  .portalNotificationItem,
  .portalLiveToast{
    transition:none!important;
  }
}


/* v0.10 - notification badge alignment */
.portalNav a{
  grid-template-columns:30px minmax(0,1fr) auto;
}

.portalOrdersNavBadge{
  grid-column:3;
  grid-row:1;
  margin-left:6px;
  align-self:center;
  justify-self:end;
}

.portalOrdersNavBadge[hidden],
.portalNotificationCount[hidden]{
  display:none!important;
}

.portalToolbarActions{
  align-items:center;
}

@media(max-width:980px){
  .portalNav a{
    grid-template-columns:30px minmax(0,1fr) auto;
  }
}


/* v0.11 - payments, live orders and detail spacing */
.detailContainer > .settingsCard{
  margin-top:22px;
}

.detailContainer > .orderDetailGrid + .settingsCard{
  margin-top:22px;
}

.accountMismatchIcon{
  width:58px;
  height:58px;
  display:grid;
  place-items:center;
  margin:10px auto 18px;
  border-radius:18px;
  background:#f3f3ef;
  font-size:26px;
}

.transferSettings{
  margin-top:18px;
  padding:18px;
  border:1px solid #dde6df;
  border-radius:17px;
  background:linear-gradient(145deg,#f7fbf8,#fff);
}

.transferSettings[hidden]{
  display:none!important;
}

.transferSettingsHead{
  margin-bottom:12px;
}

.transferSettingsHead h3{
  margin:4px 0 0;
}

.transferSettingsNote{
  margin-top:12px;
  padding:10px 12px;
  border-radius:11px;
  background:#eef7f0;
  color:#35613e;
  font-size:10px;
  line-height:1.45;
}

.transferPaymentPanel{
  margin:12px 0 16px;
  padding:17px;
  border:1px solid #dfe7e1;
  border-radius:17px;
  background:
    radial-gradient(circle at 100% 0%,rgba(42,133,77,.08),transparent 34%),
    #f8fbf8;
}

.transferPaymentPanel[hidden],
#proofBlock[hidden]{
  display:none!important;
}

.transferPaymentHead{
  display:flex;
  justify-content:space-between;
  gap:14px;
  align-items:flex-start;
}

.transferPaymentHead h3{
  margin:4px 0 0;
}

.transferPaymentBadge{
  width:40px;
  height:40px;
  display:grid;
  place-items:center;
  border-radius:12px;
  background:#fff;
  border:1px solid #e3e8e3;
  font-size:18px;
}

.transferDataList{
  display:grid;
  gap:7px;
  margin-top:14px;
}

.transferDataRow{
  display:grid;
  grid-template-columns:100px minmax(0,1fr) auto;
  gap:10px;
  align-items:center;
  padding:10px 11px;
  border:1px solid #e7e9e5;
  border-radius:12px;
  background:#fff;
}

.transferDataRow > span{
  color:#777;
  font-size:10px;
  font-weight:700;
}

.transferDataRow > b{
  min-width:0;
  overflow-wrap:anywhere;
  font-size:12px;
}

.transferDataRow button{
  min-height:30px;
  padding:5px 9px;
  border:1px solid #ddd;
  border-radius:9px;
  background:#f7f7f4;
  color:#111;
  font-size:9px;
  font-weight:900;
  cursor:pointer;
}

.transferDataRow button:hover{
  background:#111;
  color:#fff;
  border-color:#111;
}

.transferDataRow button.copied{
  background:#e7f7eb;
  color:#17642e;
  border-color:#b9dfc2;
}

.paymentProofZone{
  margin-top:8px;
}

.proofRequiredPulse{
  animation:proofRequiredPulse .85s ease;
}

@keyframes proofRequiredPulse{
  0%,100%{transform:scale(1)}
  35%{transform:scale(1.012);filter:drop-shadow(0 0 0 rgba(185,54,54,0))}
  55%{filter:drop-shadow(0 0 12px rgba(185,54,54,.18))}
}

.ordersPageHead{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:18px;
  margin-bottom:18px;
}

.ordersPageHead .pageTitle{
  margin-bottom:5px;
}

.orderWorkflowTabs{
  position:sticky;
  top:76px;
  z-index:20;
  display:flex;
  gap:7px;
  overflow-x:auto;
  margin:0 0 14px;
  padding:6px;
  border:1px solid var(--line);
  border-radius:15px;
  background:rgba(255,255,255,.94);
  backdrop-filter:blur(12px);
  scrollbar-width:none;
  box-shadow:0 7px 24px rgba(0,0,0,.04);
}

.orderWorkflowTabs::-webkit-scrollbar{
  display:none;
}

.orderWorkflowTabs button{
  flex:0 0 auto;
  min-height:38px;
  display:flex;
  gap:7px;
  align-items:center;
  padding:7px 11px;
  border:0;
  border-radius:10px;
  background:transparent;
  color:#5d5d58;
  font:inherit;
  font-size:10px;
  font-weight:900;
  cursor:pointer;
}

.orderWorkflowTabs button span{
  min-width:20px;
  height:20px;
  display:grid;
  place-items:center;
  padding:0 5px;
  border-radius:999px;
  background:#eeeeea;
  color:#5d5d58;
  font-size:8px;
}

.orderWorkflowTabs button:hover{
  background:#f4f4f1;
  color:#111;
}

.orderWorkflowTabs button.active{
  background:#111;
  color:#fff;
}

.orderWorkflowTabs button.active span{
  background:rgba(255,255,255,.16);
  color:#fff;
}

.liveOrdersList{
  gap:12px;
}

.liveOrderCard{
  display:grid;
  grid-template-columns:minmax(0,1fr) 170px;
  gap:16px 20px;
  align-items:start;
  position:relative;
  overflow:hidden;
}

.liveOrderCard[hidden]{
  display:none!important;
}

.liveOrderCard::before{
  content:'';
  position:absolute;
  inset:0 auto 0 0;
  width:4px;
  background:transparent;
}

.liveOrderCard.isNewOrder::before{
  background:#f0a51c;
}

.liveOrderCard.isReadyOrder::before{
  background:#36a55a;
}

.liveOrderCard.isNewOrder{
  border-color:#ecd59e;
  background:linear-gradient(100deg,#fffdf6 0%,#fff 38%);
}

.liveOrderCard.isReadyOrder{
  border-color:#c9e3d0;
  background:linear-gradient(100deg,#f8fff9 0%,#fff 38%);
}

.liveOrderCard .orderMeta{
  align-self:start;
}

.newOrderTag{
  background:#fff0c9;
  color:#7b5700;
}

.readyOrderTag,
.successTag{
  background:#e7f7eb;
  color:#17642e;
}

.reviewTag{
  background:#fff3d5;
  color:#805d00;
}

.warningTag{
  background:#fde9e9;
  color:#9a3030;
}

.liveOrderActions{
  grid-column:1/-1;
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  align-items:center;
  padding-top:12px;
  border-top:1px solid #eeeeea;
}

.liveOrderActions form{
  margin:0;
}

.liveOrderActions .btn{
  min-height:36px;
}

.paymentApproveBtn{
  border-color:#bedfc6;
  background:#f2fbf4;
  color:#17642e;
}

.paymentApproveBtn:hover{
  border-color:#8cc89a!important;
  background:#e7f7eb!important;
  color:#17642e!important;
}

@media(max-width:760px){
  .ordersPageHead{
    align-items:flex-start;
    flex-direction:column;
  }

  .ordersPageHead > .btn{
    width:100%;
  }

  .orderWorkflowTabs{
    top:68px;
    margin-inline:-4px;
  }

  .liveOrderCard{
    grid-template-columns:1fr;
    gap:12px;
    padding:15px;
  }

  .liveOrderCard .orderMeta{
    min-width:0;
    width:100%;
    display:flex;
    flex-wrap:wrap;
    gap:6px 10px;
    align-items:baseline;
    text-align:left;
  }

  .liveOrderCard .orderMeta strong{
    flex:0 0 100%;
  }

  .liveOrderCard .orderMeta span{
    margin:0;
  }

  .liveOrderActions{
    grid-column:1;
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .liveOrderActions form,
  .liveOrderActions .btn,
  .liveOrderActions a{
    width:100%;
  }

  .liveOrderActions form .btn{
    width:100%;
  }

  .transferDataRow{
    grid-template-columns:1fr auto;
  }

  .transferDataRow > span{
    grid-column:1/-1;
  }
}

@media(max-width:430px){
  .liveOrderActions{
    grid-template-columns:1fr;
  }

  .transferDataRow{
    grid-template-columns:1fr;
  }

  .transferDataRow button{
    width:100%;
  }
}


/* v0.12 - superadmin safety + reactivation */
.superadminPlatformBar{
  position:sticky;
  top:0;
  z-index:260;
  min-height:42px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:8px 14px;
  background:linear-gradient(90deg,#5b2a86,#7d45ae);
  color:#fff;
  border-bottom:1px solid rgba(255,255,255,.18);
  box-shadow:0 6px 18px rgba(70,30,100,.18);
  text-align:center;
}

.superadminPlatformBar strong{
  font-size:14px;
  letter-spacing:.12em;
}

.superadminPlatformBar span{
  font-size:10px;
  font-weight:700;
  opacity:.9;
}

.superadminClientBar{
  position:fixed;
  top:0;
  left:0;
  right:0;
  z-index:250;
  height:42px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:0 14px;
  background:linear-gradient(90deg,#5b2a86,#7d45ae);
  color:#fff;
  box-shadow:0 6px 18px rgba(70,30,100,.18);
}

.superadminClientBarMain,
.superadminClientBarState{
  min-width:0;
  display:flex;
  align-items:center;
  gap:10px;
}

.superadminClientBarMain strong{
  font-size:13px;
  letter-spacing:.12em;
}

.superadminClientBarMain span,
.superadminClientBarState > span{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:10px;
}

.superadminLocked{
  color:#fff2bf;
}

.superadminUnlocked{
  color:#d8ffdf;
}

.superadminClientBar form{
  margin:0;
}

.superadminClientBar button{
  min-height:28px;
  padding:5px 9px;
  border:1px solid rgba(255,255,255,.4);
  border-radius:8px;
  background:rgba(255,255,255,.12);
  color:#fff;
  font-size:9px;
  font-weight:900;
  cursor:pointer;
}

.superadminClientBar button:hover{
  background:#fff;
  color:#5b2a86;
}

body.hasSuperadminBar .portalSidebar{
  top:42px;
}

body.hasSuperadminBar .portalToolbar{
  top:42px;
}

body.hasSuperadminBar .portalWorkspace{
  padding-top:134px;
}

.superadminLockedBody{
  background:#f5f2f8;
}

.superadminLockedCard{
  max-width:520px;
}

.superadminLockIcon{
  width:64px;
  height:64px;
  display:grid;
  place-items:center;
  margin:0 auto 18px;
  border-radius:18px;
  background:#f0e9f6;
  font-size:28px;
}

.unlockBusinessName{
  display:block;
  margin:6px 0 2px;
  color:#6d3799;
}

.reactivateNotice{
  display:grid;
  gap:5px;
  margin:0 0 16px;
  padding:14px 15px;
  border:1px solid #cfe2d3;
  border-radius:14px;
  background:#f4fbf5;
  color:#305d39;
}

.reactivateNotice b{
  font-size:13px;
}

.reactivateNotice span{
  font-size:11px;
  line-height:1.5;
}

@media(max-width:760px){
  .superadminPlatformBar{
    align-items:flex-start;
    flex-direction:column;
    gap:2px;
    padding:8px 12px;
    text-align:left;
  }

  .superadminClientBar{
    height:64px;
    align-items:flex-start;
    flex-direction:column;
    justify-content:center;
    gap:3px;
    padding:7px 10px;
  }

  .superadminClientBarMain,
  .superadminClientBarState{
    width:100%;
    gap:7px;
  }

  .superadminClientBarState{
    justify-content:space-between;
  }

  .superadminClientBarMain span,
  .superadminClientBarState > span{
    font-size:9px;
  }

  body.hasSuperadminBar .portalSidebar{
    top:64px;
  }

  body.hasSuperadminBar .portalToolbar{
    top:64px;
  }

  body.hasSuperadminBar .portalWorkspace{
    padding-top:156px;
  }
}


/* v0.13 - customer order tracking */
.customerTrackingCard{
  margin:18px 0;
  padding:16px;
  border:1px solid var(--line);
  border-radius:16px;
  background:#fafaf8;
}

.customerTrackingSummary{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  margin-bottom:14px;
}

.customerTrackingSummary > div{
  padding:12px;
  border-radius:12px;
  background:#fff;
  border:1px solid #ecece7;
}

.customerTrackingSummary span,
.customerTrackingSummary strong{
  display:block;
}

.customerTrackingSummary span{
  color:var(--muted);
  font-size:9px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.06em;
}

.customerTrackingSummary strong{
  margin-top:4px;
  font-size:14px;
}

.customerOrderTimeline{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:6px;
}

.customerOrderStep{
  position:relative;
  display:grid;
  justify-items:center;
  gap:5px;
  padding:10px 4px;
  border-radius:12px;
  color:#aaa;
  text-align:center;
  font-size:8px;
  font-weight:800;
}

.customerOrderStep i{
  width:32px;
  height:32px;
  display:grid;
  place-items:center;
  border-radius:999px;
  background:#eee;
  font-style:normal;
  filter:grayscale(1);
  opacity:.65;
}

.customerOrderStep.done,
.customerOrderStep.current{
  color:#222;
}

.customerOrderStep.done i{
  background:#e8f6eb;
  filter:none;
  opacity:1;
}

.customerOrderStep.current{
  background:#fff;
  box-shadow:inset 0 0 0 1px #deded8;
}

.customerOrderStep.current i{
  background:#111;
  filter:none;
  opacity:1;
}

.customerCanceledState{
  display:grid;
  gap:4px;
  padding:13px 14px;
  border-radius:12px;
  background:#fff0f0;
  border:1px solid #f0caca;
  color:#8c2d2d;
}

.customerCanceledState span{
  font-size:10px;
  line-height:1.45;
}

@media(max-width:560px){
  .customerTrackingSummary{
    grid-template-columns:1fr;
  }

  .customerOrderTimeline{
    grid-template-columns:1fr;
  }

  .customerOrderStep{
    grid-template-columns:34px 1fr;
    justify-items:start;
    align-items:center;
    text-align:left;
  }
}


/* v0.14 - logo principal y sidebar fijo */
.brandWithImage .platformLogoMark + span{
  display:none!important;
}

.platformLogoMark{
  width:108px;
  height:42px;
  flex:0 0 108px;
  overflow:visible;
  border-radius:0;
  background:transparent!important;
  color:#111;
}

.platformLogoMark img{
  width:100%;
  height:100%;
  display:block;
  object-fit:contain;
  object-position:left center;
  background:transparent;
}

.platformLogoMark b{
  width:38px;
  height:38px;
  place-items:center;
  border-radius:11px;
  background:#111;
  color:#fff;
}

.portalSidebar{
  overflow:hidden;
}

.portalSidebarTop,
.portalSidebarBottom{
  flex:0 0 auto;
}

.portalSidebarTop{
  background:#fff;
}

.portalSidebarScroll{
  min-height:0;
  flex:1 1 auto;
  overflow-y:auto;
  overflow-x:hidden;
  overscroll-behavior:contain;
  scrollbar-width:thin;
  padding-right:2px;
}

.portalSidebarScroll::-webkit-scrollbar{
  width:6px;
}

.portalSidebarScroll::-webkit-scrollbar-thumb{
  border-radius:999px;
  background:#d8d8d1;
}

.portalSidebarBottom{
  padding-top:10px;
  border-top:1px solid var(--line);
  background:#fff;
}

.portalSidebarFooter{
  margin-top:0;
  padding:10px 10px 2px;
}

.portalSidebarFooter strong,
.portalSidebarFooter small{
  display:block;
}

.portalSidebarFooter strong{
  font-size:10px;
}

.portalSidebarFooter small{
  margin-top:2px;
  font-size:8px;
  color:#999;
}

.portalLogoutForm{
  margin:0;
}

.portalSidebarBrand{
  min-height:58px;
  display:flex;
  align-items:center;
}

.platformBrandImageOnly{
  max-width:118px;
}

.modulePermission small{
  display:block;
  margin-top:3px;
  color:var(--muted);
  font-size:9px;
  line-height:1.35;
}

@media(max-width:760px){
  .platformLogoMark{
    width:94px;
    height:38px;
    flex-basis:94px;
  }

  .portalSidebarBrand{
    min-height:52px;
  }
}


/* v0.15 - centered platform logo, tenant favicon settings and WhatsApp usage */
.platformLogoMark{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:118px!important;
  height:46px!important;
  flex:0 0 118px!important;
  overflow:hidden!important;
  background:transparent!important;
  border-radius:0!important;
}

.platformLogoMark img{
  display:block;
  width:100%!important;
  height:100%!important;
  max-width:100%;
  max-height:100%;
  margin:auto;
  object-fit:contain!important;
  object-position:center center!important;
  background:transparent!important;
}

.platformBrandImageOnly{
  width:118px;
  justify-content:center;
}

.authPlatformBrand{
  width:max-content;
  margin-left:auto;
  margin-right:auto;
}

.faviconConfigBlock{
  margin:18px 0 4px;
  padding-top:18px;
  border-top:1px solid var(--line);
}

.compactTitleRow{
  align-items:flex-start;
  margin-bottom:10px;
}

.compactTitleRow h3{
  margin:3px 0 0;
  font-size:18px;
}

.planLockBadge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:30px;
  padding:6px 10px;
  border-radius:999px;
  background:#f1f1ed;
  color:#666;
  font-size:10px;
  font-weight:900;
  white-space:nowrap;
}

.planLockBadge.activeFeature{
  background:#eef8f0;
  color:#14722c;
}

.faviconConfigGrid{
  display:grid;
  grid-template-columns:88px 1fr;
  gap:16px;
  align-items:center;
}

.faviconPreviewBox{
  width:76px;
  height:76px;
  display:grid;
  place-items:center;
  padding:12px;
  border:1px solid var(--line);
  border-radius:18px;
  background:#fafaf7;
}

.faviconPreviewBox img{
  width:100%;
  height:100%;
  object-fit:contain;
}

.compactUploadZone{
  min-height:92px;
  margin-top:7px;
  padding:14px;
}

.planLockedNotice{
  padding:14px 16px;
  border:1px dashed #d2d2cb;
  border-radius:14px;
  background:#fafaf7;
  color:#666;
  font-size:12px;
  line-height:1.55;
}

.whatsappAlertsCard{
  overflow:hidden;
}

.whatsappUsageGrid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
  margin:14px 0;
}

.whatsappUsageGrid article{
  padding:14px;
  border:1px solid var(--line);
  border-radius:14px;
  background:#fafaf8;
}

.whatsappUsageGrid span,
.whatsappUsageGrid strong{
  display:block;
}

.whatsappUsageGrid span{
  color:var(--muted);
  font-size:10px;
  font-weight:800;
}

.whatsappUsageGrid strong{
  margin-top:6px;
  font-size:22px;
}

.whatsappEnableChoice{
  margin-top:14px;
}

.whatsappAlertFields{
  margin-top:12px;
}

.consentChoice{
  margin-top:12px;
}

.whatsappCostCard{
  margin:18px 0 24px;
}

.whatsappAllowanceBox{
  margin:14px 0;
  padding:14px 16px;
  border:1px solid #e5e5df;
  border-radius:14px;
  background:#fafaf7;
}

.whatsappCostPreview{
  align-self:end;
}

@media(max-width:620px){
  .platformLogoMark{
    width:104px!important;
    height:42px!important;
    flex-basis:104px!important;
  }

  .platformBrandImageOnly{
    width:104px;
  }

  .faviconConfigGrid{
    grid-template-columns:1fr;
  }

  .faviconPreviewBox{
    width:68px;
    height:68px;
  }

  .whatsappUsageGrid{
    grid-template-columns:1fr 1fr;
  }

  .whatsappUsageGrid article:last-child{
    grid-column:1/-1;
  }
}


.whatsappAdminUsage{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
  margin:14px 0 18px;
}

.whatsappAdminUsage article{
  padding:14px 16px;
  border:1px solid var(--line);
  border-radius:14px;
  background:#fafaf7;
}

.whatsappAdminUsage span,
.whatsappAdminUsage strong{
  display:block;
}

.whatsappAdminUsage span{
  color:var(--muted);
  font-size:10px;
  font-weight:800;
}

.whatsappAdminUsage strong{
  margin-top:5px;
  font-size:16px;
}

@media(max-width:620px){
  .whatsappAdminUsage{
    grid-template-columns:1fr;
  }
}


/* v0.15 - brand centering */
.platformLogoMark{
  align-items:center;
  justify-content:center;
}

.platformLogoMark img{
  object-position:center center!important;
  margin:auto;
}

.header .brandWithImage,
.portalSidebarBrand .brandWithImage{
  align-items:center;
  justify-content:center;
}

/* Configuración de horarios y reporte de pedidos */
.storeWeeklyGrid{display:grid;gap:10px;margin:16px 0 22px}.storeWeeklyRow{display:grid;grid-template-columns:minmax(120px,1fr) 125px 125px;gap:12px;align-items:center}.storeWeeklyRow label{margin:0}.storeWeeklyRow input[type=time]{max-width:100%}.orderPdfDialog{border:0;border-radius:20px;padding:0;width:min(740px,94vw);max-height:90vh;box-shadow:0 20px 65px #0004}.orderPdfDialog::backdrop{background:#0009}.orderPdfForm{display:grid;gap:18px;padding:28px}.orderPdfForm label{display:grid;gap:8px;font-weight:600}.orderPdfForm input,.orderPdfForm select{min-width:0;width:100%;padding:13px;border:1px solid #d7d7d7;border-radius:12px}.orderPdfGrid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.orderPdfHead{display:flex;justify-content:space-between;align-items:flex-start;gap:20px}.orderPdfHead h2{margin:0}@media(max-width:600px){.storeWeeklyRow{grid-template-columns:1fr 1fr}.storeWeeklyRow .choice-card{grid-column:span 2}.orderPdfGrid{grid-template-columns:1fr}}

/* Horario semanal compacto */
.storeHoursCompact{display:grid;gap:12px;margin:14px 0 22px}.storeHoursPreset,.storeDayCompact,.storeHoursQuickActions{display:flex;align-items:center;gap:14px;flex-wrap:wrap}.storeHoursPreset{padding:14px;background:#f4f4f2;border-radius:12px}.storeHoursPreset label{flex:1;min-width:135px}.storeHoursPreset input{width:100%}.storeDaysList{border:1px solid #e4e4e1;border-radius:14px;overflow:hidden}.storeDayCompact{padding:10px 16px;justify-content:space-between;border-bottom:1px solid #ededeb}.storeDayCompact:last-child{border-bottom:0}.storeDayCompact>label{min-width:105px;margin:0!important;display:flex;gap:8px;align-items:center}.storeDayTimes{display:flex;align-items:center;gap:10px}.storeDayTimes input{width:125px;max-width:33vw}.storeDayOff{opacity:.55;background:#fafafa}@media(max-width:600px){.storeDayCompact{gap:7px}.storeDayCompact>label{width:100%}.storeDayTimes{width:100%}.storeDayTimes input{flex:1;width:auto;max-width:42vw}}


/* Horario de tienda: filas compactas, con prioridad sobre estilos generales de settings */
.settingsForm .storeHoursCompact .storeDaysList .storeDayCompact {
  display:grid;
  grid-template-columns:minmax(125px, 1fr) minmax(230px, 290px);
  align-items:center;
  gap:16px;
  padding:10px 14px;
}
.settingsForm .storeHoursCompact .storeDaysList .storeDayCompact > label {
  display:flex!important;
  flex-direction:row!important;
  align-items:center;
  justify-content:flex-start;
  gap:10px;
  margin:0!important;
  width:auto!important;
  min-width:0;
  font-size:14px;
}
.settingsForm .storeHoursCompact .storeDayCompact .storeDayToggle {
  appearance:auto;
  display:inline-block!important;
  width:17px!important;
  min-width:17px;
  height:17px!important;
  margin:0!important;
  padding:0!important;
  flex:none;
  accent-color:#181818;
}
.settingsForm .storeHoursCompact .storeDayCompact .storeDayTimes {
  display:grid!important;
  grid-template-columns:minmax(0,1fr) 16px minmax(0,1fr);
  align-items:center;
  gap:10px;
  width:100%;
  min-width:0;
}
.settingsForm .storeHoursCompact .storeDayCompact .storeDayTimes input[type="time"] {
  box-sizing:border-box;
  width:100%!important;
  min-width:0;
  max-width:none!important;
  height:40px;
  margin:0!important;
  padding:7px 9px!important;
  font-size:13px;
}
.settingsForm .storeHoursCompact .storeDayCompact .storeDayTimes span {
  text-align:center;
  font-size:13px;
  color:var(--muted);
}
.settingsForm .storeHoursCompact .storeHoursPreset {
  display:grid!important;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;
  gap:12px;
  align-items:end;
}
.settingsForm .storeHoursCompact .storeHoursPreset label { min-width:0; width:100%; }
.settingsForm .storeHoursCompact .storeHoursPreset input[type="time"] { box-sizing:border-box; width:100%; }
@media(max-width:600px){
  .settingsForm .storeHoursCompact .storeDaysList .storeDayCompact {
    grid-template-columns:1fr;
    gap:8px;
  }
  .settingsForm .storeHoursCompact .storeHoursPreset { grid-template-columns:1fr 1fr; }
  .settingsForm .storeHoursCompact .storeHoursPreset button { grid-column:1 / -1; }
}


/* Onboarding accessibility: mobile visitors must see Login/My Portal.
   The older global phone rule hides every .navActions .light link. */
@media (max-width:640px){
  .landingHeader .navActions .light,
  .pricingNavHeader .navActions .light{
    display:inline-flex;
  }
  .landingHeader .navActions .btn,
  .pricingNavHeader .navActions .btn{
    min-height:40px;
    padding:8px 10px;
    font-size:11px;
    white-space:nowrap;
  }
}
.businessSlugTools{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:7px 12px;
  margin:6px 0 16px;
  color:var(--muted);
}
.businessSlugTools small{
  flex:1 1 220px;
  font-size:12px;
  line-height:1.5;
}
.businessSlugReset{
  border:0;
  background:transparent;
  color:#6848ba;
  padding:6px 0;
  font:inherit;
  font-size:12px;
  font-weight:750;
  cursor:pointer;
  text-decoration:underline;
}
.businessSlugReset[hidden]{display:none;}
