/* Pokkee Business web app: mirrors the Business phone app. Builds on customer.css. */

body.bapp {
  --raised: #f7f7f7;
  --stroke: #e4e4e4;
  --search: #f5f5f5;
  --paused: #efeeea;
  --offer-bg: #f6eedf;
  --offer-tint: #c08a2e;
  --success: #22c55e;
  --chip-line: #c8c8c8;
}

/* Tab bar with the raised Scan button in the middle */
.b-tabbar { height: calc(72px + env(safe-area-inset-bottom)); }
.b-tabbar .b-scan-tab { position: relative; }
.b-tabbar .b-scan-tab .ring {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: -34px 0 0;
  border-radius: 50%;
  background: var(--charcoal);
  box-shadow: 0 6px 16px #17201833;
}
.b-tabbar .b-scan-tab .ring img { width: 26px; height: 26px; }
.b-tabbar .b-scan-tab.on .ring { background: var(--lime-dark); }

.bapp .c-rail > * { flex-shrink: 0; }
.bapp .c-rail-user { margin-top: auto; }
.b-rail-shop { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; padding: 10px 12px; border: 0; border-radius: 16px; background: var(--lime-soft); text-align: left; cursor: pointer; width: 100%; }
.b-rail-shop .b-shop-av { width: 36px; height: 36px; font-size: 15px; background-color: #fff; }
.b-rail-shop b { display: block; font-size: 14px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.b-rail-shop span { font-size: 12px; color: var(--forest); }
.b-rail-shop .body { flex: 1; min-width: 0; }

/* Avatars with the app's pastel palette */
.b-av { flex: none; display: grid; place-items: center; border-radius: 50%; background: #c8e6c9 center / cover no-repeat; color: var(--charcoal); font-weight: 700; }
.b-shop-av { flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--lime-soft) center / cover no-repeat; color: var(--lime-deep); font-weight: 800; }

/* Home */
.b-home-head { position: relative; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding-top: 16px; min-height: 104px; }
.b-home-head h1 { font-size: 26px; font-weight: 800; line-height: 1.15; }
.b-home-head .date { color: var(--forest); font-size: 14px; margin-top: 4px; }
.b-home-head .gecko { width: 120px; height: 96px; object-fit: contain; flex: none; margin: -6px -6px 0 0; }
.b-home-head .body { flex: 1; min-width: 0; padding-top: 8px; }
.b-shop-switch { display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; padding: 0; text-align: left; cursor: pointer; }
.b-shop-switch svg { width: 18px; height: 18px; transform: rotate(90deg); color: var(--forest); }

.b-notice { padding: 14px 16px; margin: 0 0 14px; border-radius: 20px; font-size: 14px; background: #fff4d6; }
.b-notice b { display: block; font-size: 15px; margin-bottom: 2px; }
.b-notice.bad { background: #fde8e8; }
.b-notice a { color: var(--lime-deep); font-weight: 700; }

.b-stats { padding: 18px; border-radius: 22px; background: var(--lime-soft); }
.b-stats-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.b-stats-top h2 { font-size: 18px; font-weight: 800; }
.b-period { appearance: none; -webkit-appearance: none; width: auto; height: 34px; padding: 0 30px 0 14px; border: 0; border-radius: 99px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23172018' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M7 10l5 5 5-5'/%3E%3C/svg%3E") right 10px center / 14px no-repeat; font: inherit; font-size: 13px; font-weight: 700; color: var(--charcoal); cursor: pointer; }
.b-period:focus { outline: 2px solid var(--lime-dark); }
.b-three { display: flex; margin-top: 14px; }
.b-three > div { flex: 1; min-width: 0; }
.b-three > div + div { padding-left: 14px; border-left: 1px solid #17201814; margin-left: 14px; }
.b-three b { display: block; font-size: 24px; font-weight: 800; line-height: 1.15; }
.b-three span { font-size: 12px; color: var(--forest); font-weight: 600; }
.b-stats hr { border: 0; border-top: 1px solid #1720181a; margin: 16px 0 12px; }
.b-chart-head { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--forest); }
.b-chart-head img { width: 16px; height: 16px; }
.b-chart-head .end { margin-left: auto; font-weight: 600; }
.b-chart { display: block; width: 100%; height: 120px; margin-top: 6px; overflow: visible; }
.b-chart-days { display: flex; justify-content: space-between; font-size: 11px; color: var(--forest); font-weight: 600; margin-top: 4px; }
.b-chart-days span { width: 0; display: flex; justify-content: center; white-space: nowrap; }

.b-tiles { display: grid; gap: 10px; margin-top: 12px; }
.b-tiles.two { grid-template-columns: 1fr 1fr; }
.b-tile { display: flex; align-items: center; gap: 12px; min-height: 68px; padding: 12px 14px; border: 0; border-radius: 18px; background: var(--charcoal); color: #fff; text-align: left; cursor: pointer; }
.b-tile img { width: 30px; height: 30px; flex: none; }
.b-tile .body { flex: 1; min-width: 0; line-height: 1.2; }
.b-tile small { display: block; font-size: 12px; color: #ffffff99; font-weight: 500; }
.b-tile b { display: block; font-size: 15px; font-weight: 700; }
.b-tile svg.chev { color: #ffffff80; width: 16px; height: 16px; }
.b-tile:active { transform: scale(.98); }

/* Activity rows */
.b-act { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px; border: 1px solid var(--stroke); border-radius: 20px; background: var(--raised); text-align: left; cursor: pointer; }
.b-act .body { flex: 1; min-width: 0; }
.b-act .t { font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.b-act .s { font-size: 13px; color: var(--forest); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.b-act .w { font-size: 12px; color: var(--text2); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.b-act .pts { flex: none; font-weight: 800; font-size: 17px; }
.b-act .pts.plus { color: var(--lime-deep); }
.b-act .pts.minus { color: var(--charcoal); }
.b-act.undone .pts { text-decoration: line-through; color: var(--text3); }
.b-act.undone .t { color: var(--text2); }

.b-empty { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 26px 18px; border: 1px solid var(--stroke); border-radius: 20px; background: var(--raised); }
.b-empty .ico { width: 64px; height: 64px; border-radius: 50%; background: var(--lime-soft); display: grid; place-items: center; }
.b-empty .ico img { width: 32px; height: 32px; }
.b-empty h3 { font-size: 16px; font-weight: 800; margin-top: 12px; }
.b-empty p { font-size: 13px; color: var(--text2); margin-top: 4px; }
.b-outline { display: inline-flex; align-items: center; gap: 8px; height: 40px; margin-top: 14px; padding: 0 18px; border: 1.5px solid var(--charcoal); border-radius: 99px; background: none; font-weight: 700; font-size: 14px; cursor: pointer; }
.b-outline img { width: 18px; height: 18px; }

/* Transaction sheet */
.b-txn-card { padding: 18px; margin: 12px 0; border-radius: 20px; background: var(--lime-soft); }
.b-txn-card b { display: block; font-size: 30px; font-weight: 800; }
.b-txn-card p { font-size: 15px; font-weight: 600; margin-top: 2px; }
.b-txn-card span { display: block; font-size: 13px; color: var(--forest); margin-top: 6px; }
.b-pill { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 99px; font-size: 12px; font-weight: 700; background: var(--lime-soft); color: var(--lime-deep); }
.b-pill.paused, .b-pill.grey { background: var(--paused); color: var(--forest); }
.b-pill.red { background: #fde8e8; color: #c62828; }
.b-hint { font-size: 13px; color: var(--text2); margin: 4px 0 16px; }
.b-sheet-title { display: flex; align-items: center; gap: 10px; }
.b-stack { display: flex; flex-direction: column; gap: 10px; }

/* Scan */
.b-cam { position: relative; height: 380px; border-radius: 28px; background: var(--charcoal); overflow: hidden; transition: height .3s ease; }
.b-cam.small { height: 180px; }
.b-cam.off { display: none; }
/* ic_analytics is drawn lime for the Visits card; the sidebar's other icons are black. */
.c-rail-more img.mono { filter: brightness(0); }
.b-cam video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.b-cam .frame { position: absolute; left: 50%; top: 50%; width: min(220px, 60%); aspect-ratio: 1; transform: translate(-50%, -54%); pointer-events: none; }
.b-cam.small .frame { width: 120px; }
.b-cam .frame i { position: absolute; width: 34px; height: 34px; border: 4px solid var(--lime); }
.b-cam .frame .tl { top: 0; left: 0; border-right: 0; border-bottom: 0; border-radius: 14px 0 0 0; }
.b-cam .frame .tr { top: 0; right: 0; border-left: 0; border-bottom: 0; border-radius: 0 14px 0 0; }
.b-cam .frame .bl { bottom: 0; left: 0; border-right: 0; border-top: 0; border-radius: 0 0 0 14px; }
.b-cam .frame .br { bottom: 0; right: 0; border-left: 0; border-top: 0; border-radius: 0 0 14px 0; }
.b-cam .frame .line { position: absolute; left: 8px; right: 8px; top: 8px; height: 3px; width: auto; border: 0; border-radius: 99px; background: linear-gradient(90deg, transparent, var(--lime), transparent); animation: b-sweep 2.2s ease-in-out infinite; }
.b-cam.small .frame .line { display: none; }
@keyframes b-sweep { 0%, 100% { top: 8px; } 50% { top: calc(100% - 11px); } }
@media (prefers-reduced-motion: reduce) { .b-cam .frame .line { animation: none; display: none; } }
.b-cam .cap { position: absolute; left: 16px; right: 16px; bottom: 16px; text-align: center; color: #ffffffd9; font-size: 14px; font-weight: 600; }
.b-cam .found { position: absolute; inset: 0; display: grid; place-items: center; background: #17201899; }
.b-cam .found span { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--lime); color: var(--charcoal); }
.b-cam .found svg { width: 32px; height: 32px; }
.b-cam .idle { position: absolute; inset: 0; background: var(--charcoal); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 24px; text-align: center; color: #ffffffcc; font-size: 14px; }
.b-cam .idle img { width: 120px; height: auto; }
.b-cam .idle button { height: 44px; padding: 0 20px; border: 0; border-radius: 99px; background: var(--lime); color: var(--charcoal); font-weight: 700; cursor: pointer; }
.b-photo-link { display: block; margin: 14px auto 0; border: 0; background: none; color: var(--lime-deep); font-weight: 700; font-size: 14px; cursor: pointer; }
.b-scan-status { text-align: center; color: var(--text2); font-size: 14px; margin-top: 12px; min-height: 20px; }
.b-scan-status.error { color: #c62828; }
.b-scan-status:empty { display: none; }
.b-cam.small .cap { display: none; }

.b-cust { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 14px; border: 1px solid var(--stroke); border-radius: 20px; background: var(--raised); }
.b-cust .body { flex: 1; min-width: 0; }
.b-cust b { display: block; font-size: 17px; font-weight: 800; }
.b-cust span { font-size: 13px; color: var(--forest); }
.b-cust .ok { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--lime); }
.b-cust .ok svg { width: 16px; height: 16px; }

.b-panel { margin-top: 12px; padding: 18px; border: 1px solid var(--stroke); border-radius: 22px; background: #fff; }
.b-mode { font-size: 13px; font-weight: 800; color: var(--lime-deep); text-transform: none; }
.b-amount { display: flex; align-items: center; gap: 6px; margin-top: 10px; padding: 0 16px; height: 68px; border-radius: 18px; background: var(--search); }
.b-amount span { font-size: 28px; font-weight: 800; color: var(--forest); }
.b-amount input { flex: 1; min-width: 0; height: 100%; padding: 0; margin: 0; border: 0 !important; background: none; font-size: 28px; font-weight: 800; color: var(--charcoal); outline: none !important; }
.b-amount input::placeholder { color: var(--text3); }
.b-rate { font-size: 13px; color: var(--text2); margin: 10px 0 14px; }
.b-rate b { color: var(--charcoal); }
.b-offer-line { display: flex; align-items: center; gap: 12px; margin-top: 10px; padding: 12px; border-radius: 18px; background: var(--lime-soft); }
.b-offer-line .pic { flex: none; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--offer-bg) center / cover no-repeat; color: var(--offer-tint); }
.b-offer-line .pic svg { width: 22px; height: 22px; }
.b-offer-line b { display: block; font-size: 16px; }
.b-offer-line span { font-size: 13px; color: var(--forest); }
.b-reward-pick { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border: 1.5px solid var(--stroke); border-radius: 18px; background: #fff; font: inherit; color: var(--charcoal); text-align: left; cursor: pointer; }
.b-reward-pick.on { border-color: var(--lime-dark); background: var(--lime-soft); }
.b-reward-pick:disabled { opacity: .5; cursor: default; }
.b-reward-pick .pic { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--offer-bg) center / cover no-repeat; color: var(--offer-tint); }
.b-reward-pick .pic svg { width: 20px; height: 20px; }
.b-reward-pick .body { flex: 1; min-width: 0; }
.b-reward-pick b { display: block; font-size: 15px; }
.b-reward-pick span { font-size: 13px; color: var(--forest); }
.b-photo-link:disabled { opacity: .45; cursor: default; }
.b-again { display: block; margin: 12px auto 0; border: 0; background: none; color: var(--forest); font-weight: 700; font-size: 14px; cursor: pointer; padding: 8px; }
.b-balance { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 14px 16px; border-radius: 18px; background: var(--lime-soft); font-weight: 700; font-size: 14px; }
.b-balance img { width: 20px; height: 20px; }
.b-err { margin-top: 12px; padding: 12px 14px; border-radius: 14px; background: #fde8e8; color: #c62828; font-size: 14px; }

/* Success */
.b-success { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 24px; background: var(--ivory); text-align: center; animation: c-fade .2s ease-out; overflow-y: auto; }
.b-success-inner { width: 100%; max-width: 380px; }
.b-success-badge { position: relative; width: 150px; height: 150px; margin: 0 auto 10px; display: grid; place-items: center; }
.b-success-badge span { position: relative; z-index: 1; width: 104px; height: 104px; border-radius: 50%; display: grid; place-items: center; background: var(--lime-dark); color: #fff; animation: b-pop .45s cubic-bezier(.2, 1.4, .4, 1); }
.b-success-badge svg { width: 52px; height: 52px; }
.b-success-badge path { stroke-dasharray: 30; stroke-dashoffset: 30; animation: b-draw .4s .25s ease-out forwards; }
.b-success-badge .burst { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle, #b8e86a66 0 40%, transparent 41%); animation: b-burst .7s ease-out forwards; }
.b-success-badge .burst::before, .b-success-badge .burst::after { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 3px dotted var(--lime-dark); opacity: 0; animation: b-ring .8s .1s ease-out forwards; }
.b-success-badge .burst::after { inset: -24px; border-color: var(--lime); animation-delay: .2s; }
@keyframes b-pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes b-draw { to { stroke-dashoffset: 0; } }
@keyframes b-burst { from { transform: scale(.5); opacity: 0; } 60% { opacity: 1; } to { transform: scale(1.15); opacity: .7; } }
@keyframes b-ring { 0% { transform: scale(.6); opacity: 0; } 50% { opacity: 1; } 100% { transform: scale(1.05); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .b-success-badge *, .b-success-badge path { animation: none !important; stroke-dashoffset: 0; } }
.b-success h2 { font-size: 22px; font-weight: 800; }
.b-success-pts { font-size: 48px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; margin-top: 6px; }
.b-success p { color: var(--forest); font-size: 16px; margin-top: 4px; }
.b-success-balance { display: inline-block; margin: 16px 0 26px; padding: 8px 16px; border-radius: 99px; background: var(--lime-soft); font-weight: 700; font-size: 14px; }
.b-link { display: block; margin: 12px auto 0; border: 0; background: none; color: var(--charcoal); font-weight: 700; font-size: 15px; cursor: pointer; padding: 6px 10px; }
.b-link.red { color: #c62828; font-size: 14px; margin-top: 4px; }

/* Customers */
.b-title-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.b-title-row .c-title { margin-bottom: 14px !important; }
.b-menu-btn { position: relative; }
.b-pop { position: absolute; right: 0; top: 48px; z-index: 40; min-width: 210px; padding: 6px; border-radius: 18px; background: #fff; box-shadow: 0 12px 36px #17201833; }
.b-pop .h { padding: 8px 12px 4px; font-size: 12px; font-weight: 700; color: var(--text2); text-transform: uppercase; letter-spacing: .04em; }
.b-pop button { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; padding: 10px 12px; border: 0; border-radius: 12px; background: none; font-size: 15px; font-weight: 600; text-align: left; cursor: pointer; }
.b-pop button:hover { background: var(--search); }
.b-pop button.on { color: var(--lime-deep); }
.b-pop button svg { width: 16px; height: 16px; }
.b-pop hr { border: 0; border-top: 1px solid var(--hair); margin: 4px 8px; }
.b-search { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 16px; border-radius: 22px; background: var(--search); color: var(--text2); }
.b-search svg { width: 18px; height: 18px; flex: none; }
.b-search input { flex: 1; min-width: 0; height: 100%; padding: 0; margin: 0; border: 0 !important; background: none; font-size: 16px; color: var(--charcoal); outline: none !important; }
.b-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.b-summary > div { padding: 14px; border: 1px solid var(--stroke); border-radius: 20px; background: var(--raised); }
.b-summary b { display: block; font-size: 22px; font-weight: 800; }
.b-summary span { font-size: 12px; color: var(--forest); font-weight: 600; }
.b-chips { display: flex; gap: 8px; overflow-x: auto; margin: 14px -16px; padding: 0 16px; scrollbar-width: none; }
.b-chips::-webkit-scrollbar { display: none; }
@media (min-width: 960px) { .b-chips { margin: 14px 0; padding: 0; } }
.b-chip { flex: none; height: 36px; padding: 0 16px; border: 1px solid var(--chip-line); border-radius: 99px; background: #fff; font-size: 13px; font-weight: 700; color: var(--charcoal); cursor: pointer; white-space: nowrap; }
.b-chip.on { background: var(--lime-dark); border-color: var(--lime-dark); color: #fff; }
.b-cust-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px; border: 1px solid var(--stroke); border-radius: 20px; background: var(--raised); text-align: left; cursor: pointer; }
.b-cust-row .body { flex: 1; min-width: 0; }
.b-cust-row .t { font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.b-cust-row .s { font-size: 13px; color: var(--forest); margin-top: 1px; }
.b-cust-row .w { font-size: 12px; color: var(--text2); margin-top: 1px; }
.b-cust-row .pts { flex: none; font-weight: 800; color: var(--lime-deep); font-size: 15px; }
.b-cust-row svg.chev { color: var(--text3); }
.b-cust-row.locked { opacity: .55; }
.b-risk {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(72px + env(safe-area-inset-bottom));
  z-index: 25;
  padding: 10px 16px;
}
.b-risk-in { display: flex; align-items: center; gap: 12px; max-width: 568px; margin: 0 auto; padding: 14px 14px 14px 16px; border-radius: 22px; background: var(--lime-soft); box-shadow: 0 8px 28px #1720181f; }
.b-risk-in .body { flex: 1; min-width: 0; }
.b-risk-in b { display: block; font-size: 14px; font-weight: 800; }
.b-risk-in span { display: block; font-size: 12px; color: var(--forest); margin-top: 2px; }
.b-risk-in .c-btn { flex: none; height: 40px; padding: 0 14px; border-radius: 14px; font-size: 13px; }
.b-app-risk .c-inner { padding-bottom: calc(190px + env(safe-area-inset-bottom)); }
@media (min-width: 960px) {
  .b-risk { left: var(--rail); bottom: 0; padding: 16px 32px; }
  .b-risk-in { max-width: 656px; }
}

.b-profile-head { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 10px 0 4px; }
.b-profile-head h2 { font-size: 24px; font-weight: 800; margin-top: 12px; }
.b-profile-head p { color: var(--forest); font-size: 14px; margin-top: 2px; }
.b-profile-head .b-pill { margin-top: 10px; height: 32px; padding: 0 14px; font-size: 14px; }
.b-three-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; }
.b-three-cards > div { padding: 14px 12px; border: 1px solid var(--stroke); border-radius: 20px; background: var(--raised); text-align: center; }
.b-three-cards b { display: block; font-size: 18px; font-weight: 800; }
.b-three-cards span { font-size: 12px; color: var(--forest); font-weight: 600; }
.b-two-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.b-two-btns .c-btn { height: 52px; border-radius: 18px; }
.b-two-btns .raised { background: var(--raised); color: var(--charcoal) !important; border: 1px solid var(--stroke); }

/* Offers */
.b-offers-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin: 18px 0 14px; }
.b-offers-head .c-title { margin: 0 !important; }
.b-offers-head .c-sub { margin-top: 2px; }
.b-capsule { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 16px; border: 0; border-radius: 99px; background: var(--lime); color: var(--charcoal); font-weight: 800; font-size: 14px; cursor: pointer; white-space: nowrap; }
.b-row-tools { display: flex; gap: 10px; align-items: center; }
.b-row-tools .b-search { flex: 1; }
.b-row-tools .c-icon-btn { background: var(--search); width: 46px; height: 46px; }
.b-offer { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px; border: 1px solid var(--stroke); border-radius: 20px; background: var(--raised); text-align: left; cursor: pointer; }
.b-offer .pic { flex: none; width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center; background: var(--offer-bg) center / cover no-repeat; color: var(--offer-tint); }
.b-offer .pic svg { width: 26px; height: 26px; }
.b-offer .body { flex: 1; min-width: 0; }
.b-offer .t { font-weight: 700; font-size: 15px; margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.b-offer .s { font-size: 12px; color: var(--text2); margin-top: 1px; }
.b-offer .pts { flex: none; text-align: right; line-height: 1.05; }
.b-offer .pts b { display: block; font-size: 22px; font-weight: 800; }
.b-offer .pts span { font-size: 11px; color: var(--text2); font-weight: 700; }
.b-offer-hero { height: 200px; border-radius: 24px; display: grid; place-items: center; background: var(--offer-bg) center / cover no-repeat; color: var(--offer-tint); }
.b-offer-hero svg { width: 56px; height: 56px; }
.b-offer-info { margin-top: 16px; }
.b-offer-info h2 { font-size: 24px; font-weight: 800; margin-top: 10px; }
.b-offer-info p { font-size: 14px; color: var(--text2); margin-top: 2px; }
.b-offer-info .pts { margin-top: 12px; font-size: 32px; font-weight: 800; }
.b-offer-info .pts span { font-size: 15px; color: var(--text2); font-weight: 700; margin-left: 4px; }
.b-options { margin-top: 18px; padding: 6px; border: 1px solid var(--stroke); border-radius: 20px; background: var(--raised); }
.b-options > button, .b-options > label { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 8px 12px; margin: 0; border: 0; border-radius: 14px; background: none; font-size: 15px; font-weight: 700; text-align: left; cursor: pointer; }
.b-options .grow { flex: 1; }
.b-options .grow small { display: block; font-size: 12px; font-weight: 500; color: var(--text2); }
.b-options hr { border: 0; border-top: 1px solid var(--stroke); margin: 0 12px; }
.b-options .red { color: #c62828; }
.b-options svg { width: 20px; height: 20px; }

/* Shop tab */
.b-shop-head { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 18px 0 6px; }
.b-shop-head .b-shop-av { width: 96px; height: 96px; font-size: 38px; }
.b-shop-head h1 { font-size: 24px; font-weight: 800; margin-top: 12px; }
.b-shop-head .cat { color: var(--forest); font-size: 14px; font-weight: 600; margin-top: 2px; }
.b-shop-head .addr { color: var(--text2); font-size: 13px; margin-top: 4px; max-width: 420px; }
.b-shop-head .open { font-size: 13px; color: var(--forest); margin-top: 4px; }
.b-shop-head .open b { color: var(--success); }
.b-shop-head .b-pill { margin-top: 10px; height: 30px; padding: 0 14px; font-size: 13px; }
.b-plan { margin-top: 16px; padding: 16px; border-radius: 22px; background: var(--lime-soft); }
.b-plan-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.b-plan-top b { font-size: 17px; font-weight: 800; }
.b-badge { padding: 4px 10px; border-radius: 99px; font-size: 10px; font-weight: 800; letter-spacing: .04em; background: var(--lime); color: var(--charcoal); }
.b-plan p { font-size: 13px; color: var(--forest); margin-top: 4px; }
.b-plan .c-progress { background: #ffffffb3; height: 8px; margin-top: 12px; }
.b-plan .use { display: flex; justify-content: space-between; font-size: 12px; font-weight: 700; color: var(--forest); margin-top: 6px; }
.b-plan .warn { margin-top: 10px; font-size: 13px; color: #b45309; font-weight: 600; }
.b-plan a.c-btn { margin-top: 12px; }
.b-settings { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.b-set { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 58px; padding: 8px 16px; border: 1px solid var(--stroke); border-radius: 20px; background: var(--raised); font-size: 15px; font-weight: 700; text-align: left; cursor: pointer; }
.b-set img { width: 22px; height: 22px; flex: none; }
.b-set .grow { flex: 1; min-width: 0; }
.b-set .grow small { display: block; font-size: 12px; font-weight: 500; color: var(--text2); }
.b-set .val { color: var(--text2); font-weight: 600; font-size: 13px; max-width: 45%; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.b-set svg.chev { color: var(--text3); }
.b-set.red { color: #c62828; }
.b-set:hover { background: #f1f1f1; }
.b-group { font-size: 13px; font-weight: 700; color: var(--text2); margin: 22px 4px 8px; text-transform: uppercase; letter-spacing: .04em; }

.b-me { display: flex; align-items: center; gap: 14px; padding: 16px; border: 1px solid var(--stroke); border-radius: 22px; background: var(--raised); }
.b-me .body { flex: 1; min-width: 0; }
.b-me b { display: block; font-size: 18px; font-weight: 800; }
.b-me span { display: block; font-size: 13px; color: var(--forest); }

/* Analytics */
.b-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.b-kpi { padding: 14px; border: 1px solid var(--stroke); border-radius: 20px; background: var(--raised); }
.b-kpi .ic { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--lime-soft); }
.b-kpi .ic img { width: 20px; height: 20px; }
.b-kpi b { display: block; font-size: 24px; font-weight: 800; margin-top: 10px; }
.b-kpi span { font-size: 12px; color: var(--forest); font-weight: 600; }
.b-insights { padding: 4px 16px; border: 1px solid var(--stroke); border-radius: 20px; background: var(--raised); }
.b-insights > div { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 13px 0; font-size: 14px; }
.b-insights > div + div { border-top: 1px solid var(--stroke); }
.b-insights b { font-size: 16px; }
.b-week { padding: 16px; border-radius: 22px; background: var(--lime-soft); }
.b-week .top { display: flex; justify-content: space-between; align-items: baseline; }
.b-week .top b { font-size: 24px; font-weight: 800; }
.b-week .top span { font-size: 12px; color: var(--forest); font-weight: 600; }
.b-segs { padding: 16px; border: 1px solid var(--stroke); border-radius: 20px; background: var(--raised); display: flex; flex-direction: column; gap: 14px; }
.b-seg-row .lbl { display: flex; justify-content: space-between; font-size: 14px; font-weight: 700; }
.b-seg-row .lbl span { color: var(--text2); font-weight: 600; }
.b-seg-row .bar { height: 10px; border-radius: 99px; background: #e9ebe6; margin-top: 6px; overflow: hidden; }
.b-seg-row .bar i { display: block; height: 100%; border-radius: 99px; }
.b-rank { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--stroke); border-radius: 20px; background: var(--raised); }
.b-rank .n, .b-rank-n { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--lime-soft); color: var(--lime-deep); font-weight: 800; font-size: 13px; }
.b-rank .body { flex: 1; min-width: 0; }
.b-rank .t { font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.b-rank .s { font-size: 12px; color: var(--text2); }
.b-rank .v { flex: none; font-weight: 800; }

/* Forms (edit shop, profile, staff, offers, setup) */
.b-form label { margin: 16px 0 6px; font-size: 13px; color: var(--forest); font-weight: 700; }
.b-form input:not([type=checkbox]):not([type=file]), .b-form select, .b-form textarea { border-radius: 16px; border: 1px solid var(--stroke); background: var(--raised); padding: 14px 16px; font-size: 16px; }
.b-form input:disabled { color: var(--text2); }
.b-form .inline > input { padding-inline: 12px; }
.b-form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.b-form .c-btn { margin-top: 22px; }
.b-form .check { margin-top: 16px; font-size: 15px; color: var(--charcoal); font-weight: 600; align-items: center; justify-content: space-between; }
.b-form .check input.c-toggle { margin-top: 0; }
.b-form-card { padding: 16px; border: 1px solid var(--stroke); border-radius: 22px; background: var(--raised); margin-top: 14px; }
.b-form-card h3 { font-size: 16px; font-weight: 800; }
.b-form-card > p { font-size: 13px; color: var(--text2); margin-top: 4px; }
.b-photo { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 6px 0 4px; }
.b-photo .shot { width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; background: var(--lime-soft) center / cover no-repeat; color: var(--lime-deep); font-size: 34px; font-weight: 800; }
.b-photo .shot.sq { width: 100%; height: 170px; border-radius: 22px; background-color: var(--offer-bg); color: var(--offer-tint); font-size: 14px; }
.b-photo .shot svg { width: 36px; height: 36px; }
.b-photo .acts { display: flex; gap: 16px; }
.b-photo button { border: 0; background: none; color: var(--lime-deep); font-weight: 700; cursor: pointer; font-size: 14px; }
.b-photo small { font-size: 12px; color: var(--text2); }
.b-pin { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 16px; background: var(--lime-soft); font-size: 14px; }
.b-pin.none { background: #fff4d6; }
.b-pin span { flex: 1; }
.b-pin button { border: 0; background: none; color: var(--lime-deep); font-weight: 700; cursor: pointer; }
.b-bonus .check { margin: 0; gap: 14px; }
.b-bonus .check b { display: block; font-size: 16px; font-weight: 800; }
.b-bonus .check small { display: block; font-size: 13px; font-weight: 500; color: var(--text2); margin-top: 2px; }
.b-bonus-body { margin-top: 4px; }
.b-bonus-body .b-hint { margin: 8px 0 0; }
.b-days { display: flex; flex-wrap: wrap; gap: 6px; }
.b-days .b-chip { height: 34px; padding: 0 12px; }
.b-terms { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; padding: 12px 14px; border-radius: 16px; background: #fff4d6; font-size: 14px; }
.b-terms b { display: block; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: #8a5a00; }
.b-bonus-line { margin-top: 10px; padding: 10px 14px; border-radius: 14px; background: var(--lime-soft); color: var(--lime-deep); font-size: 13px; font-weight: 700; }
.b-success-bonus { font-size: 14px !important; font-weight: 700; color: var(--lime-deep) !important; }
.b-rule { display: flex; align-items: center; gap: 8px; }
.b-rule input { text-align: center; }
.b-rule span { flex: none; font-weight: 700; color: var(--forest); }

.b-staff-row { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--stroke); border-radius: 20px; background: var(--raised); }
.b-staff-row .body { flex: 1; min-width: 0; }
.b-staff-row .t { font-weight: 700; font-size: 15px; }
.b-staff-row .s { font-size: 12px; color: var(--text2); margin-top: 1px; }
.b-staff-row button { flex: none; border: 0; background: none; color: #c62828; font-weight: 700; font-size: 13px; cursor: pointer; padding: 6px; }
.b-staff-row.off { opacity: .6; }

.b-share-preview { padding: 18px; border-radius: 22px; background: var(--lime); text-align: center; }
.b-share-preview .b-shop-av { width: 72px; height: 72px; margin: 0 auto; font-size: 28px; background-color: #fff; }
.b-share-preview h2 { font-size: 22px; font-weight: 800; margin-top: 10px; }
.b-share-preview p { font-size: 14px; margin-top: 4px; }
.b-share-preview .rule { display: inline-block; margin-top: 12px; padding: 8px 16px; border-radius: 99px; background: var(--charcoal); color: #fff; font-weight: 700; font-size: 14px; }
.b-caption { margin-top: 14px; padding: 14px 16px; border-radius: 18px; background: var(--search); font-size: 14px; color: var(--forest); }
.b-link-box { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--stroke); background: var(--raised); font-size: 14px; }
.b-link-box a { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--lime-deep); font-weight: 700; }
.b-link-box button { border: 0; background: none; font-weight: 700; cursor: pointer; color: var(--charcoal); }

/* Setup (no shop yet) */
.b-setup { max-width: 520px; margin: 0 auto; padding: 16px 0 40px; }
.b-setup-top { display: flex; align-items: center; justify-content: space-between; padding: 6px 0 18px; }
.b-setup-top img { height: 28px; width: auto; }
.b-setup-top button { border: 0; background: none; font-weight: 700; color: var(--forest); cursor: pointer; }
.b-setup-card { padding: 22px 18px; border-radius: 26px; background: var(--lime-soft); text-align: center; }
.b-setup-card img.art { width: 150px; height: auto; display: block; margin: 0 auto 6px; }
.b-setup-card .step { font-size: 12px; font-weight: 800; color: var(--lime-deep); letter-spacing: .06em; text-transform: uppercase; }
.b-setup-card h1 { font-size: 26px; font-weight: 800; margin: 6px 0 6px; }
.b-setup-card > p { color: var(--forest); font-size: 15px; }
.b-setup-card .c-btn { margin-top: 18px; }
.b-setup-card .b-link { color: var(--forest); }
.b-setup-alt { text-align: left; margin-top: 16px; }
.b-invite { padding: 18px; margin-bottom: 14px; border-radius: 22px; background: var(--charcoal); color: #fff; }
.b-invite h2 { font-size: 20px; font-weight: 800; }
.b-invite p { color: #ffffffb3; font-size: 14px; margin-top: 4px; }
.b-invite .btns { display: flex; gap: 10px; margin-top: 14px; }
.b-invite .btns .c-btn { flex: 1; height: 46px; border-radius: 16px; font-size: 15px; }
.b-invite .btns .ghost { background: #ffffff1a; }
.b-app-bare .c-tabbar, .b-app-bare .c-rail { display: none !important; }
.b-app-bare .c-screen { margin-left: 0 !important; }
.b-app-bare .c-inner { padding-bottom: 40px; }

.b-switch { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px; border: 1px solid var(--stroke); border-radius: 20px; background: var(--raised); text-align: left; cursor: pointer; }
.b-switch.on { border-color: var(--lime-dark); background: var(--lime-soft); }
.b-switch .body { flex: 1; min-width: 0; }
.b-switch b { display: block; font-size: 15px; }
.b-switch span { font-size: 12px; color: var(--forest); }
.b-switch svg { width: 20px; height: 20px; color: var(--lime-deep); }
