:root {
	--bb-dark: #261712;
	--bb-fudge: #553025;
	--bb-cocoa: #965738;
	--bb-milk: #c18b6e;
	--bb-caramel: #e4a33b;
	--bb-cream: #fff8f1;
	--bb-white: #ffffff;
	--bb-taupe: #655346;
	--bb-soft: #f1e3d9;
	--bb-line: #dfc9ba;
	--bb-mint: #5fac98;
	--bb-red: #b9483f;
	--bb-shadow: 0 18px 48px rgba(38, 23, 18, .16);
}

.bb-app, .bb-app * { box-sizing: border-box; }
.bb-app { width: 100%; max-width: 760px; min-height: 740px; margin: 0 auto; background: var(--bb-cream); color: var(--bb-dark); border-radius: 28px; overflow: hidden; box-shadow: var(--bb-shadow); font-family: Inter, ui-rounded, "SF Pro Rounded", "Segoe UI", sans-serif; position: relative; }
.bb-app button, .bb-app input, .bb-app select, .bb-app textarea { font: inherit; }
.bb-app button { cursor: pointer; }
.bb-loading { min-height: 640px; display: grid; place-items: center; align-content: center; gap: 18px; text-align: center; padding: 30px; }
.bb-loading img { width: min(330px, 90%); height: auto; }
.bb-loading p { color: var(--bb-taupe); margin: 0; }
.bb-spinner { width: 34px; height: 34px; border: 4px solid var(--bb-soft); border-top-color: var(--bb-cocoa); border-radius: 50%; animation: bb-spin .8s linear infinite; }
@keyframes bb-spin { to { transform: rotate(360deg); } }

.bb-shell { min-height: 740px; display: flex; flex-direction: column; background: radial-gradient(circle at 12% 2%, rgba(228,163,59,.19), transparent 22rem), var(--bb-cream); }
.bb-topbar { height: 78px; padding: 13px 18px; background: rgba(255,248,241,.96); border-bottom: 1px solid var(--bb-line); display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 8; backdrop-filter: blur(14px); }
.bb-brand { border: 0; background: transparent; padding: 0; display: flex; align-items: center; }
.bb-brand img { width: 175px; max-height: 54px; object-fit: contain; object-position: left center; }
.bb-icon-button { width: 43px; height: 43px; border: 1px solid var(--bb-line); border-radius: 14px; background: var(--bb-white); color: var(--bb-fudge); display: grid; place-items: center; position: relative; font-size: 1.1rem; }
.bb-badge { position: absolute; right: -5px; top: -5px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--bb-red); color: #fff; border: 2px solid var(--bb-cream); display: grid; place-items: center; font-size: .68rem; font-weight: 900; }
.bb-main { flex: 1 0 auto; padding: 17px 18px 34px; }
.bb-group-switch { width: 100%; border: 1px solid var(--bb-line); background: var(--bb-white); border-radius: 18px; padding: 11px 13px; display: flex; align-items: center; gap: 11px; color: var(--bb-dark); text-align: left; box-shadow: 0 5px 18px rgba(38,23,18,.06); }
.bb-group-icon { width: 43px; height: 43px; flex: 0 0 43px; border-radius: 14px; background: #f7dfb2; display: grid; place-items: center; font-size: 1.25rem; }
.bb-group-copy { min-width: 0; flex: 1; }
.bb-group-copy strong, .bb-group-copy small { display: block; }
.bb-group-copy strong { color: var(--bb-fudge); font-size: .95rem; }
.bb-group-copy small { color: var(--bb-taupe); font-size: .75rem; margin-top: 3px; }
.bb-avatars { display: flex; align-items: center; padding-left: 7px; }
.bb-avatar { width: 29px; height: 29px; border-radius: 50%; margin-left: -7px; border: 2px solid #fff; background: var(--bb-cocoa); color: #fff; font-size: .67rem; font-weight: 900; display: grid; place-items: center; }
.bb-avatar:nth-child(2n) { background: var(--bb-mint); }
.bb-chevron { color: var(--bb-taupe); font-size: 1.2rem; transform: rotate(90deg); }
.bb-page-head { display: flex; justify-content: space-between; align-items: end; gap: 12px; margin: 20px 2px 14px; }
.bb-page-head h1 { color: var(--bb-dark); font-size: 1.65rem; line-height: 1.12; letter-spacing: -.035em; margin: 0; }
.bb-page-head p { margin: 5px 0 0; color: var(--bb-taupe); font-size: .9rem; }
.bb-eyebrow { text-transform: uppercase; letter-spacing: .11em; color: var(--bb-cocoa); font-size: .71rem; font-weight: 950; margin: 0 0 4px; }
.bb-text-button { border: 0; background: transparent; color: var(--bb-cocoa); font-weight: 900; padding: 7px; }

.bb-balance-card { min-height: 190px; border-radius: 26px; padding: 21px; color: #fff; position: relative; overflow: hidden; background: linear-gradient(140deg, var(--bb-dark), var(--bb-fudge) 58%, var(--bb-cocoa)); box-shadow: 0 18px 38px rgba(38,23,18,.23); }
.bb-balance-card:after { content: ""; position: absolute; width: 170px; height: 170px; right: -68px; top: -75px; border-radius: 50%; border: 28px solid rgba(228,163,59,.20); }
.bb-balance-label { display: flex; justify-content: space-between; gap: 12px; color: #f2ded2; font-size: .82rem; position: relative; z-index: 1; }
.bb-balance-label strong { background: rgba(255,255,255,.13); border-radius: 99px; padding: 5px 9px; font-size: .73rem; }
.bb-points { position: relative; z-index: 1; font-size: 3.15rem; line-height: 1; font-weight: 950; letter-spacing: -.06em; margin: 15px 0 7px; }
.bb-points span { font-size: .86rem; letter-spacing: 0; font-weight: 800; color: #efcec0; margin-left: 6px; }
.bb-balance-note { position: relative; z-index: 1; color: #efd9cc; font-size: .82rem; margin-top: 22px; }
.bb-quick-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 13px 0 24px; }
.bb-quick { min-height: 88px; border: 1px solid var(--bb-line); border-radius: 18px; background: #fff; padding: 12px 8px; color: var(--bb-fudge); font-size: .8rem; font-weight: 900; box-shadow: 0 5px 18px rgba(38,23,18,.05); }
.bb-quick span { width: 35px; height: 35px; margin: 0 auto 7px; border-radius: 12px; background: #fae4ba; display: grid; place-items: center; font-size: 1.05rem; }
.bb-quick:nth-child(2) span { background: #dff1ec; }
.bb-quick:nth-child(3) span { background: #f4dfd4; }
.bb-quick:nth-child(4) span { background: #eadfd9; }
.bb-section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 2px 11px; }
.bb-section-head h2 { color: var(--bb-fudge); font-size: 1.14rem; margin: 0; }
.bb-list { display: grid; gap: 10px; }
.bb-card { width: 100%; border: 1px solid var(--bb-line); background: #fff; border-radius: 19px; padding: 14px; color: var(--bb-dark); display: flex; align-items: center; gap: 12px; text-align: left; }
.bb-card-icon { width: 47px; height: 47px; flex: 0 0 47px; border-radius: 15px; background: #fae5bd; display: grid; place-items: center; font-size: 1.25rem; }
.bb-card-copy { min-width: 0; flex: 1; }
.bb-card-copy strong, .bb-card-copy small { display: block; }
.bb-card-copy strong { color: var(--bb-fudge); font-size: .92rem; }
.bb-card-copy small { color: var(--bb-taupe); font-size: .76rem; line-height: 1.4; margin-top: 4px; }
.bb-pill { flex: 0 0 auto; border-radius: 99px; padding: 6px 9px; background: #e7f5f1; color: #267c69; font-size: .74rem; font-weight: 950; }
.bb-pill-cost { background: #fae8c8; color: #795014; }
.bb-card-actions { display: flex; gap: 7px; align-items: center; }
.bb-small-button { border: 0; border-radius: 10px; background: var(--bb-fudge); color: #fff; padding: 8px 10px; font-size: .72rem; font-weight: 900; }
.bb-small-button.bb-green { background: #267c69; }
.bb-small-button.bb-light { background: var(--bb-soft); color: var(--bb-fudge); }
.bb-card.bb-disabled { opacity: .58; }
.bb-pending-card { border-style: dashed; background: #fffaf0; }
.bb-pending-card .bb-card-icon { background: #f7dfb2; }
.bb-empty { padding: 30px 20px; border: 1px dashed var(--bb-line); border-radius: 20px; background: #fff; text-align: center; color: var(--bb-taupe); }
.bb-empty b { color: var(--bb-fudge); display: block; margin-bottom: 5px; }
.bb-activity-amount { font-weight: 950; color: #267c69; }
.bb-activity-amount.bb-minus { color: var(--bb-red); }

.bb-nav { display: grid; grid-template-columns: repeat(4, 1fr); position: sticky; bottom: 0; z-index: 9; flex: 0 0 80px; height: 80px; margin-top: 0; background: rgba(255,255,255,.97); border-top: 1px solid var(--bb-line); backdrop-filter: blur(16px); }
.bb-nav button { border: 0; background: transparent; color: #826f65; font-size: .7rem; font-weight: 850; display: grid; place-items: center; align-content: center; gap: 3px; }
.bb-nav button span { font-size: 1.23rem; line-height: 1; }
.bb-nav button.bb-active { color: var(--bb-fudge); }
.bb-fab { position: absolute; right: 18px; bottom: 95px; width: 58px; height: 58px; border: 0; border-radius: 19px; background: var(--bb-caramel); color: var(--bb-dark); font-size: 1.8rem; box-shadow: 0 10px 25px rgba(98,58,14,.27); z-index: 7; }

.bb-modal-backdrop { position: fixed; inset: 0; z-index: 99999; background: rgba(30,18,14,.55); backdrop-filter: blur(5px); display: flex; align-items: end; justify-content: center; padding: 0; }
.bb-modal { width: 100%; max-width: 620px; max-height: 90vh; overflow: auto; border-radius: 28px 28px 0 0; background: var(--bb-cream); padding: 13px 20px 26px; box-shadow: 0 -20px 60px rgba(38,23,18,.25); }
.bb-grab { width: 44px; height: 5px; border-radius: 99px; background: var(--bb-line); margin: 0 auto 17px; }
.bb-modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.bb-modal-head h2 { margin: 0; color: var(--bb-fudge); font-size: 1.35rem; }
.bb-modal-head p { margin: 3px 0 0; }
.bb-close { width: 39px; height: 39px; border: 0; border-radius: 12px; background: var(--bb-soft); color: var(--bb-fudge); font-size: 1.25rem; }
.bb-modal label { display: block; margin: 13px 0 6px; color: var(--bb-fudge); font-size: .79rem; font-weight: 900; }
.bb-modal input, .bb-modal select, .bb-modal textarea { width: 100%; border: 1px solid var(--bb-line); border-radius: 14px; background: #fff; color: var(--bb-dark); padding: 12px 13px; outline: none; }
.bb-modal textarea { min-height: 82px; resize: vertical; }
.bb-modal input:focus, .bb-modal select:focus, .bb-modal textarea:focus { border-color: var(--bb-cocoa); box-shadow: 0 0 0 3px rgba(150,87,56,.16); }
.bb-form-row { display: grid; grid-template-columns: 1fr 120px; gap: 10px; }
.bb-help { font-size: .75rem; color: var(--bb-taupe); line-height: 1.4; }
.bb-button { display: inline-flex; width: 100%; min-height: 47px; border: 0; border-radius: 15px; align-items: center; justify-content: center; background: var(--bb-fudge); color: #fff !important; text-decoration: none !important; font-weight: 900; padding: 12px 16px; margin-top: 10px; }
.bb-button:hover { background: var(--bb-dark); color: #fff; }
.bb-button-light { background: #fff; color: var(--bb-fudge) !important; border: 1px solid var(--bb-line); }
.bb-button-green { background: #267c69; }
.bb-button-danger { background: var(--bb-red); }
.bb-button-danger:hover { background: #93362f; }
.bb-choice-list { display: grid; gap: 9px; margin: 14px 0; }
.bb-choice { border: 1px solid var(--bb-line); border-radius: 17px; background: #fff; padding: 13px; display: flex; gap: 11px; align-items: center; width: 100%; text-align: left; color: var(--bb-dark); }
.bb-choice.bb-selected { border: 2px solid var(--bb-caramel); background: #fffaf0; }
.bb-choice-copy { min-width: 0; flex: 1; }
.bb-choice-copy strong, .bb-choice-copy small { display: block; }
.bb-choice-copy strong { color: var(--bb-fudge); }
.bb-choice-copy small { color: var(--bb-taupe); margin-top: 3px; font-size: .75rem; }
.bb-reward-section { margin-top: 24px; }
.bb-modal-section { margin: 21px 2px 10px; }
.bb-modal-section h2 { font-size: 1rem; }
.bb-modal-empty { margin-top: 18px; }
.bb-notification-card .bb-card-icon { background: #e7f5f1; }
.bb-member-card { align-items: center; }
.bb-member-avatar { width: 47px; height: 47px; flex: 0 0 47px; margin: 0; border: 0; font-size: .9rem; }
.bb-member-count { min-width: 28px; height: 28px; padding: 0 8px; border-radius: 99px; background: var(--bb-soft); color: var(--bb-fudge); display: grid; place-items: center; font-size: .76rem; font-weight: 950; }
.bb-danger-small { background: #fff0ee; color: var(--bb-red); }
.bb-danger-small:hover { background: var(--bb-red); color: #fff; }
.bb-danger-zone { margin-top: 24px; padding: 17px; border: 1px solid #e7b8b3; border-radius: 18px; background: #fff7f5; }
.bb-danger-zone strong { color: var(--bb-red); }
.bb-danger-zone p { margin: 6px 0 3px; color: var(--bb-taupe); font-size: .78rem; line-height: 1.45; }
.bb-delete-warning { margin: 18px 0 8px; padding: 16px; border: 1px solid #e7b8b3; border-radius: 18px; background: #fff7f5; text-align: center; }
.bb-delete-warning p { color: var(--bb-taupe); line-height: 1.5; }
.bb-delete-warning strong { color: var(--bb-red); }
.bb-empty-state-icon { width: 76px; height: 76px; margin: 0 auto 16px; border-radius: 24px; background: #fae4ba; display: grid; place-items: center; font-size: 2.15rem; }
.bb-empty-bucket { max-width: 520px; margin: auto; padding: 70px 28px; text-align: center; }
.bb-empty-bucket h1 { margin: 0; color: var(--bb-fudge); font-size: 1.8rem; }
.bb-empty-bucket > p:not(.bb-eyebrow) { color: var(--bb-taupe); line-height: 1.55; }
.bb-review-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 8px; }
.bb-success { text-align: center; padding: 8px 0; }
.bb-success-mark { width: 82px; height: 82px; border-radius: 27px; margin: 2px auto 17px; display: grid; place-items: center; background: linear-gradient(135deg, var(--bb-caramel), #f7d084); font-size: 2.35rem; box-shadow: 0 13px 28px rgba(122,76,16,.22); }
.bb-success h2 { color: var(--bb-fudge); font-size: 1.55rem; margin: 0; }
.bb-success p { color: var(--bb-taupe); }
.bb-link-box { display: flex; gap: 7px; margin: 12px 0; }
.bb-link-box input { min-width: 0; flex: 1; }
.bb-link-box button { border: 0; border-radius: 12px; background: var(--bb-cocoa); color: #fff; font-weight: 900; padding: 0 14px; }
.bb-toast { position: fixed; z-index: 100001; left: 50%; top: 18px; transform: translate(-50%, -100px); max-width: calc(100% - 28px); border-radius: 14px; padding: 12px 16px; background: var(--bb-dark); color: #fff; font-weight: 850; font-size: .83rem; box-shadow: var(--bb-shadow); transition: transform .25s; }
.bb-toast.bb-show { transform: translate(-50%, 0); }
.bb-confetti { position: fixed; z-index: 100000; top: -20px; width: 9px; height: 14px; border-radius: 3px; pointer-events: none; animation: bb-fall 1.35s ease-in forwards; }
@keyframes bb-fall { to { transform: translate(var(--bb-drift), 105vh) rotate(720deg); opacity: .1; } }

.bb-login { max-width: 520px; margin: 35px auto; padding: 30px; border-radius: 26px; background: var(--bb-cream); text-align: center; box-shadow: var(--bb-shadow); font-family: Inter, ui-rounded, sans-serif; }
.bb-login img { display: block; width: min(390px, 100%); height: auto; margin: 0 auto; }
.bb-login h2 { width: min(390px, 100%); color: var(--bb-dark); margin: 15px auto 8px; font-size: clamp(1.5rem, 5vw, 1.75rem); line-height: 1.18; letter-spacing: -.025em; }
.bb-login .bb-tagline-line { display: block; }
.bb-login p { width: min(390px, 100%); color: var(--bb-taupe); margin: 0 auto 18px; font-size: clamp(.98rem, 3.2vw, 1.08rem); line-height: 1.5; }
.bb-guest-body { min-height: 100vh; margin: 0; padding: 24px; display: grid; place-items: center; background: radial-gradient(circle at 15% 5%, rgba(228,163,59,.25), transparent 28rem), #f2e7df; font-family: Inter, ui-rounded, "Segoe UI", sans-serif; color: var(--bb-dark); }
.bb-guest-card { width: min(520px, 100%); padding: 27px; border-radius: 28px; background: var(--bb-cream); text-align: center; box-shadow: var(--bb-shadow); }
.bb-guest-card > img { width: min(360px, 100%); height: auto; }
.bb-guest-card h1 { font-size: 1.55rem; color: var(--bb-fudge); margin: 14px 0 7px; }
.bb-guest-card p { color: var(--bb-taupe); line-height: 1.55; }
.bb-cookie { width: 72px; height: 72px; display: grid; place-items: center; border-radius: 23px; background: #fae4ba; margin: 12px auto; font-size: 2.1rem; }
.bb-quote { background: #fff; border: 1px solid var(--bb-line); border-radius: 16px; padding: 15px; color: var(--bb-dark) !important; }
.bb-guest-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }

@media (max-width: 620px) {
	.bb-app { border-radius: 0; min-height: 100vh; box-shadow: none; }
	.bb-shell { min-height: 100vh; }
	.bb-brand img { width: 156px; }
	.bb-card { align-items: flex-start; }
	.bb-card-actions { flex-direction: column; align-items: stretch; }
	.bb-form-row { grid-template-columns: 1fr; }
	.bb-modal { max-height: 92vh; }
}
