/* Bored Billionaire Bill — front-end UI */
:root {
	--bbb-bg: #fafaf9;
	--bbb-surface: #ffffff;
	--bbb-soft: #f3f4f3;
	--bbb-ink: #111418;
	--bbb-ink-2: #2a2f36;
	--bbb-muted: #5d6570;
	--bbb-line: #e6e7e9;
	--bbb-accent: #0f7b5f;
	--bbb-accent-soft: #e7f4ef;
	--bbb-heart: #e2553f;
	--bbb-warn-soft: #fff6e6;
	--bbb-warn: #8a5a00;
	--bbb-danger: #b42318;
	--bbb-radius: 18px;
	--bbb-radius-sm: 12px;
	--bbb-shadow: 0 1px 2px rgba(17, 20, 24, .04), 0 8px 24px rgba(17, 20, 24, .06);
	--bbb-shadow-lg: 0 2px 6px rgba(17, 20, 24, .05), 0 24px 60px rgba(17, 20, 24, .12);
	--bbb-font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
	--bbb-ease: cubic-bezier(.2, .8, .2, 1);
}

[hidden] { display: none !important; }
.bbb-wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.bbb-narrow { max-width: 720px; }
.bbb-page { padding-top: 40px; padding-bottom: 80px; }
.bbb-i { flex: none; vertical-align: -4px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Typography */
.bbb-eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--bbb-accent); margin: 0 0 12px; }
.bbb-lead { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55; color: var(--bbb-muted); margin: 0 0 28px; max-width: 46ch; }
.bbb-muted { color: var(--bbb-muted); }
.bbb-small { font-size: 14px; }
.bbb-h2 { font-size: 26px; }
.bbb-h3 { font-size: 18px; margin: 0 0 12px; }
.bbb-center { text-align: center; }
.bbb-center .bbb-lead { margin-left: auto; margin-right: auto; }
.bbb-page-head { margin-bottom: 32px; }
.bbb-page-head h1 { font-size: clamp(32px, 4vw, 44px); letter-spacing: -.025em; line-height: 1.1; margin: 0 0 12px; }

/* Buttons */
.bbb-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid transparent; font: 600 15px/1 var(--bbb-font); text-decoration: none !important; cursor: pointer; transition: transform .15s var(--bbb-ease), box-shadow .2s var(--bbb-ease), background .2s, color .2s, border-color .2s; white-space: nowrap; }
.bbb-btn:active { transform: translateY(1px) scale(.99); }
.bbb-btn:focus-visible, .bbb-round:focus-visible, .bbb-amount:focus-visible { outline: 3px solid rgba(15, 123, 95, .35); outline-offset: 2px; }
.bbb-btn--primary { background: var(--bbb-ink); color: #fff !important; box-shadow: 0 1px 0 rgba(255,255,255,.12) inset, 0 6px 16px rgba(17,20,24,.18); }
.bbb-btn--primary:hover { background: #000; box-shadow: 0 1px 0 rgba(255,255,255,.12) inset, 0 10px 24px rgba(17,20,24,.24); }
.bbb-btn--primary[disabled] { opacity: .55; cursor: progress; }
.bbb-btn--ghost { background: var(--bbb-surface); color: var(--bbb-ink) !important; border-color: var(--bbb-line); }
.bbb-btn--ghost:hover { border-color: #cfd2d6; background: #fff; box-shadow: var(--bbb-shadow); }
.bbb-btn--light { background: #fff; color: var(--bbb-ink) !important; }
.bbb-btn--outline-light { border-color: rgba(255,255,255,.35); color: #fff !important; }
.bbb-btn--outline-light:hover { background: rgba(255,255,255,.08); }
.bbb-btn--lg { min-height: 52px; padding: 0 26px; font-size: 16px; }
.bbb-btn--sm { min-height: 38px; padding: 0 14px; font-size: 14px; }
.bbb-btn--block { width: 100%; }
.bbb-linkbtn { background: none; border: 0; padding: 0; color: var(--bbb-muted); cursor: pointer; font: inherit; text-decoration: underline; text-underline-offset: 3px; display: inline-flex; gap: 6px; align-items: center; }
.bbb-link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--bbb-ink); text-decoration: none; margin-top: 8px; }
.bbb-link-arrow:hover .bbb-i { transform: translateX(3px); }
.bbb-link-arrow .bbb-i { transition: transform .2s var(--bbb-ease); }
.bbb-cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.bbb-center-row { justify-content: center; }

/* Hero */
.bbb-hero { padding: 64px 0 72px; background: radial-gradient(1200px 500px at 85% -10%, #eef6f2 0%, rgba(238,246,242,0) 60%), var(--bbb-bg); overflow: hidden; }
.bbb-hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center; }
.bbb-hero h1 { font-size: clamp(38px, 5.4vw, 64px); line-height: 1.04; letter-spacing: -.035em; margin: 0 0 20px; color: var(--bbb-ink); font-weight: 700; }
.bbb-hero-trust { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 24px; color: var(--bbb-muted); font-size: 14px; }
.bbb-hero-trust li { display: flex; align-items: center; gap: 8px; }
.bbb-hero-trust .bbb-i { color: var(--bbb-accent); }
.bbb-hero-visual { position: relative; display: flex; justify-content: center; }
.bbb-illus-label { position: absolute; top: -6px; right: 8px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--bbb-muted); background: #fff; border: 1px solid var(--bbb-line); padding: 4px 10px; border-radius: 99px; z-index: 5; }
.bbb-stack { position: relative; width: min(360px, 88vw); height: 470px; }
.bbb-stack-card { position: absolute; inset: 0 0 64px; background: #fff; border-radius: 24px; box-shadow: var(--bbb-shadow-lg); border: 1px solid var(--bbb-line); overflow: hidden; }
.bbb-stack-card--3 { transform: rotate(7deg) translate(26px, 10px) scale(.94); opacity: .55; }
.bbb-stack-card--2 { transform: rotate(-5deg) translate(-22px, 6px) scale(.97); opacity: .8; }
.bbb-stack-card--1 { animation: bbb-float 6s ease-in-out infinite; }
.bbb-stack-card .bbb-preview { height: 170px; width: 100%; aspect-ratio: auto; border-radius: 0; }
.bbb-stack-body { padding: 18px 20px; }
.bbb-stack-name { font-weight: 700; font-size: 19px; margin: 10px 0 4px; }
.bbb-stack-name span { color: var(--bbb-muted); font-weight: 500; font-size: 15px; }
.bbb-stack-story { color: var(--bbb-muted); font-size: 14px; line-height: 1.5; margin: 0 0 14px; }
.bbb-stack-actions { position: absolute; bottom: 0; left: 0; right: 0; display: flex; justify-content: center; gap: 22px; }
@keyframes bbb-float { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-8px) rotate(.6deg); } }
@media (prefers-reduced-motion: reduce) { .bbb-stack-card--1 { animation: none; } * { scroll-behavior: auto !important; } }

/* Round buttons */
.bbb-round { width: 52px; height: 52px; border-radius: 50%; display: inline-grid; place-items: center; background: #fff; border: 1px solid var(--bbb-line); box-shadow: var(--bbb-shadow); color: var(--bbb-ink); cursor: pointer; transition: transform .15s var(--bbb-ease), box-shadow .2s; padding: 0; }
.bbb-round:hover { transform: translateY(-2px); box-shadow: var(--bbb-shadow-lg); }
.bbb-round .bbb-i { width: 24px; height: 24px; }
.bbb-round--lg { width: 66px; height: 66px; }
.bbb-round--lg .bbb-i { width: 28px; height: 28px; }
.bbb-round--no { color: var(--bbb-muted); }
.bbb-round--yes { color: var(--bbb-heart); }
.bbb-round--yes .bbb-i { fill: currentColor; }

/* Sections */
.bbb-section { padding: 88px 0; }
.bbb-section--tint { background: #f4f5f4; border-top: 1px solid var(--bbb-line); border-bottom: 1px solid var(--bbb-line); }
.bbb-section-head { margin-bottom: 40px; max-width: 640px; }
.bbb-section-head h2 { font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -.025em; line-height: 1.12; margin: 0; }
.bbb-section-head--row { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; max-width: none; }
.bbb-head-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* How it works */
.bbb-how { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.bbb-how-col { background: #fff; border: 1px solid var(--bbb-line); border-radius: var(--bbb-radius); padding: 32px; box-shadow: var(--bbb-shadow); }
.bbb-how-col h3 { display: flex; align-items: center; gap: 10px; font-size: 20px; margin: 0 0 20px; }
.bbb-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--bbb-ink); }
.bbb-dot--alt { background: var(--bbb-accent); }
.bbb-steps { counter-reset: s; list-style: none; padding: 0; margin: 0 0 16px; }
.bbb-steps li { counter-increment: s; position: relative; padding: 0 0 22px 52px; }
.bbb-steps li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 34px; height: 34px; border-radius: 50%; background: var(--bbb-soft); display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.bbb-steps li:not(:last-child)::after { content: ""; position: absolute; left: 16.5px; top: 36px; bottom: 6px; width: 1px; background: var(--bbb-line); }
.bbb-steps strong { display: block; font-size: 16px; margin-bottom: 2px; }
.bbb-steps span { color: var(--bbb-muted); font-size: 15px; }

/* Chips & badges */
.bbb-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.bbb-chip { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 99px; background: var(--bbb-soft); color: var(--bbb-ink-2); }
.bbb-chip .bbb-i { width: 14px; height: 14px; }
.bbb-chip--verified { background: var(--bbb-accent-soft); color: var(--bbb-accent); }
.bbb-chip--done { background: #eef1ff; color: #3949ab; }
.bbb-chip--test { background: var(--bbb-warn-soft); color: var(--bbb-warn); }

/* Preview */
.bbb-preview { position: relative; background: var(--bbb-soft); border-radius: var(--bbb-radius-sm); overflow: hidden; aspect-ratio: 16 / 10; }
.bbb-preview img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.bbb-preview--placeholder { display: grid; place-items: center; background: linear-gradient(160deg, #f6f7f6, #eceeed); }
.bbb-preview--tall { aspect-ratio: auto; height: 34%; min-height: 140px; flex: none; border-radius: 0; }
.bbb-preview--wide { aspect-ratio: 16 / 9; }
.bbb-doc { width: 34%; max-width: 120px; aspect-ratio: 3/4; background: #fff; border-radius: 8px; box-shadow: 0 6px 18px rgba(17,20,24,.10); padding: 14% 12% 0; display: flex; flex-direction: column; gap: 9%; transform: rotate(-4deg); }
.bbb-doc i { display: block; height: 6px; border-radius: 3px; background: #e6e8e7; }
.bbb-doc i.s { width: 60%; }
.bbb-doc-icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-size: 17px; font-style: normal; font-weight: 700; background: var(--bbb-accent-soft); color: var(--bbb-accent); margin-bottom: 6%; }
.cat-medical .bbb-doc-icon { background: #fdecec; color: #c0392b; }
.cat-rent .bbb-doc-icon { background: #eef1ff; color: #3949ab; }
.cat-water .bbb-doc-icon { background: #e8f4fd; color: #1f6fb2; }
.cat-electricity .bbb-doc-icon { background: #fff6dd; color: #a66d00; }
.cat-education .bbb-doc-icon { background: #f3ecfb; color: #6b3fa0; }
.bbb-preview-note { position: absolute; bottom: 10px; left: 10px; font-size: 11px; font-weight: 600; color: var(--bbb-muted); background: rgba(255,255,255,.9); padding: 4px 8px; border-radius: 99px; display: inline-flex; gap: 4px; align-items: center; }
.bbb-preview-note .bbb-i { width: 12px; height: 12px; }

/* Progress */
.bbb-progress { height: 8px; background: #eceeed; border-radius: 99px; overflow: hidden; }
.bbb-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--bbb-accent), #16a37f); border-radius: inherit; transition: width .6s var(--bbb-ease); min-width: 0; }
.bbb-progress--sm { height: 6px; margin-bottom: 4px; }
.bbb-progress-meta { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--bbb-muted); margin-top: 8px; flex-wrap: wrap; }
.bbb-progress-meta strong { color: var(--bbb-ink); }

/* Cards grid */
.bbb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 22px; }
.bbb-card { background: #fff; border: 1px solid var(--bbb-line); border-radius: var(--bbb-radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--bbb-shadow); transition: transform .25s var(--bbb-ease), box-shadow .25s var(--bbb-ease); }
.bbb-card:hover { transform: translateY(-3px); box-shadow: var(--bbb-shadow-lg); }
.bbb-card-media { display: block; }
.bbb-card-media .bbb-preview { border-radius: 0; }
.bbb-card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.bbb-card-title { font-size: 19px; margin: 4px 0 0; letter-spacing: -.01em; }
.bbb-card-title a { color: var(--bbb-ink); text-decoration: none; }
.bbb-card-loc { display: flex; align-items: center; gap: 4px; font-size: 13px; color: var(--bbb-muted); margin: 0; }
.bbb-card-loc .bbb-i { width: 15px; height: 15px; }
.bbb-card-story { font-size: 15px; line-height: 1.5; color: var(--bbb-ink-2); margin: 4px 0 8px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.bbb-card-actions { display: flex; gap: 8px; margin-top: auto; padding-top: 12px; }
.bbb-card-actions .bbb-btn { flex: 1; }
.bbb-grid-footer { text-align: center; margin-top: 32px; }
.bbb-skeleton { height: 420px; border-radius: var(--bbb-radius); background: linear-gradient(90deg, #f0f1f0 25%, #f7f8f7 50%, #f0f1f0 75%); background-size: 200% 100%; animation: bbb-shimmer 1.4s infinite; }
@keyframes bbb-shimmer { to { background-position: -200% 0; } }

/* Filters */
.bbb-filters { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 28px; background: #fff; border: 1px solid var(--bbb-line); border-radius: var(--bbb-radius); padding: 14px; box-shadow: var(--bbb-shadow); }
.bbb-filters label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 600; color: var(--bbb-muted); }
.bbb-filters select, .bbb-inline-select select { appearance: none; -webkit-appearance: none; height: 42px; border-radius: 10px; border: 1px solid var(--bbb-line); background: #fafafa url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235d6570' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center; padding: 0 32px 0 12px; font: 500 14px var(--bbb-font); color: var(--bbb-ink); width: 100%; }

/* Empty */
.bbb-empty { text-align: center; padding: 56px 24px; background: #fff; border: 1px dashed #d8dbde; border-radius: var(--bbb-radius); }
.bbb-empty h3 { font-size: 20px; margin: 18px 0 8px; }
.bbb-empty p { color: var(--bbb-muted); max-width: 46ch; margin: 0 auto 20px; }
.bbb-empty-art { display: inline-flex; position: relative; width: 90px; height: 64px; }
.bbb-empty-art span { position: absolute; width: 50px; height: 62px; border-radius: 8px; background: #fff; border: 1px solid var(--bbb-line); box-shadow: var(--bbb-shadow); }
.bbb-empty-art span:nth-child(1) { left: 0; transform: rotate(-10deg); }
.bbb-empty-art span:nth-child(2) { left: 20px; z-index: 1; }
.bbb-empty-art span:nth-child(3) { left: 40px; transform: rotate(10deg); }

/* Trust */
.bbb-trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.bbb-trust { padding: 26px; background: #fff; border: 1px solid var(--bbb-line); border-radius: var(--bbb-radius); }
.bbb-trust > .bbb-i { width: 26px; height: 26px; color: var(--bbb-accent); }
.bbb-trust h3 { font-size: 17px; margin: 14px 0 6px; }
.bbb-trust p { color: var(--bbb-muted); margin: 0; font-size: 15px; line-height: 1.55; }
.bbb-note { display: flex; gap: 10px; align-items: flex-start; margin-top: 28px; padding: 16px 18px; border-radius: var(--bbb-radius-sm); background: var(--bbb-warn-soft); color: #6b4800; font-size: 14px; line-height: 1.5; }

/* CTA band */
.bbb-cta-band { background: var(--bbb-ink); color: #fff; border-radius: 28px; padding: clamp(40px, 6vw, 72px); text-align: center; background-image: radial-gradient(600px 240px at 50% 0%, rgba(22,163,127,.28), transparent 70%); }
.bbb-cta-band h2 { color: #fff; font-size: clamp(28px, 3.6vw, 42px); letter-spacing: -.025em; line-height: 1.12; margin: 0 auto 28px; max-width: 20ch; }
.bbb-cta-band .bbb-cta-row { justify-content: center; }
.bbb-cta-stats { margin: 24px 0 0; color: rgba(255,255,255,.7); font-size: 14px; }

/* Alerts */
.bbb-alert { padding: 14px 16px; border-radius: var(--bbb-radius-sm); background: var(--bbb-soft); margin: 0 0 18px; font-size: 15px; line-height: 1.5; }
.bbb-alert--success { background: var(--bbb-accent-soft); color: #0b5a46; }
.bbb-alert--error { background: #fdecec; color: var(--bbb-danger); }
.bbb-alert--warn { background: var(--bbb-warn-soft); color: #6b4800; }
.bbb-alert--info { background: #eef4fb; color: #1d4f80; }

/* Panels / forms */
.bbb-panel { background: #fff; border: 1px solid var(--bbb-line); border-radius: var(--bbb-radius); padding: clamp(20px, 3vw, 32px); box-shadow: var(--bbb-shadow); }
.bbb-form { display: flex; flex-direction: column; gap: 16px; }
.bbb-field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: var(--bbb-ink-2); }
.bbb-field em { font-weight: 400; color: var(--bbb-muted); font-style: normal; }
.bbb-field small { font-weight: 400; color: var(--bbb-muted); font-size: 13px; }
.bbb-field input, .bbb-field select, .bbb-field textarea { width: 100%; min-height: 46px; border: 1px solid #d9dcdf; border-radius: 12px; padding: 10px 14px; font: 400 16px var(--bbb-font); color: var(--bbb-ink); background: #fff; transition: border-color .15s, box-shadow .15s; box-sizing: border-box; }
.bbb-field textarea { resize: vertical; line-height: 1.5; }
.bbb-field input:focus, .bbb-field select:focus, .bbb-field textarea:focus { outline: none; border-color: var(--bbb-accent); box-shadow: 0 0 0 4px rgba(15,123,95,.12); }
.bbb-field .is-invalid, .bbb-field [aria-invalid="true"] { border-color: var(--bbb-danger); }
.bbb-check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.45; cursor: pointer; }
.bbb-check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--bbb-ink); flex: none; }
.bbb-row-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.bbb-form-msg { color: var(--bbb-danger); font-size: 14px; margin: 0; min-height: 0; }
.bbb-form-msg:empty { display: none; }
.bbb-form-msg.is-ok { color: var(--bbb-accent); }
.bbb-hp { position: absolute; left: -9999px; }
.bbb-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.bbb-span-2 { grid-column: span 2; }

/* Tabs */
.bbb-tabs { display: flex; background: var(--bbb-soft); padding: 4px; border-radius: 999px; margin-bottom: 22px; }
.bbb-tabs button { flex: 1; min-height: 40px; border: 0; background: transparent; border-radius: 999px; font: 600 15px var(--bbb-font); color: var(--bbb-muted); cursor: pointer; transition: background .2s, color .2s; }
.bbb-tabs button[aria-selected="true"] { background: #fff; color: var(--bbb-ink); box-shadow: var(--bbb-shadow); }

/* Wizard */
.bbb-wizard { background: #fff; border: 1px solid var(--bbb-line); border-radius: var(--bbb-radius); padding: clamp(20px, 4vw, 40px); box-shadow: var(--bbb-shadow); }
.bbb-wizard-steps { display: flex; list-style: none; padding: 0; margin: 0 0 32px; gap: 6px; counter-reset: w; }
.bbb-wizard-steps li { flex: 1; counter-increment: w; font-size: 12px; font-weight: 600; color: var(--bbb-muted); padding-top: 12px; border-top: 3px solid var(--bbb-line); transition: border-color .3s, color .3s; }
.bbb-wizard-steps li::before { content: counter(w) ". "; }
.bbb-wizard-steps li.is-active, .bbb-wizard-steps li.is-done { border-color: var(--bbb-ink); color: var(--bbb-ink); }
.bbb-step { border: 0; padding: 0; margin: 0; min-width: 0; animation: bbb-in .35s var(--bbb-ease); }
.bbb-step legend { font-size: 24px; font-weight: 700; letter-spacing: -.02em; margin-bottom: 8px; padding: 0; }
@keyframes bbb-in { from { opacity: 0; transform: translateY(8px); } }
.bbb-drop { margin: 20px 0 12px; border: 2px dashed #d3d7da; border-radius: var(--bbb-radius); padding: 36px 20px; text-align: center; cursor: pointer; transition: border-color .2s, background .2s; background: #fcfcfc; }
.bbb-drop:hover, .bbb-drop.is-over, .bbb-drop:focus-visible { border-color: var(--bbb-accent); background: var(--bbb-accent-soft); outline: none; }
.bbb-drop-empty { display: flex; flex-direction: column; gap: 6px; align-items: center; color: var(--bbb-muted); }
.bbb-drop-empty .bbb-i { width: 34px; height: 34px; color: var(--bbb-ink); margin-bottom: 6px; }
.bbb-drop-empty strong { color: var(--bbb-ink); font-size: 17px; }
.bbb-drop-file { display: flex; align-items: center; gap: 16px; text-align: left; }
.bbb-drop-file > div:nth-child(2) { flex: 1; min-width: 0; }
.bbb-drop-file strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bbb-drop-file small { color: var(--bbb-muted); }
.bbb-drop-thumb { width: 72px; height: 72px; border-radius: 12px; background: var(--bbb-soft) center/cover; display: grid; place-items: center; font-weight: 700; color: var(--bbb-muted); flex: none; }
.bbb-tips { margin-top: 18px; background: var(--bbb-soft); border-radius: var(--bbb-radius-sm); padding: 16px 20px; font-size: 15px; }
.bbb-tips ul { margin: 6px 0 8px; padding-left: 20px; color: var(--bbb-ink-2); }
.bbb-tips p { margin: 0; }
.bbb-privacy-box { margin-top: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; background: var(--bbb-soft); border-radius: var(--bbb-radius-sm); padding: 20px; }
.bbb-privacy-box h3 { font-size: 15px; display: flex; align-items: center; gap: 6px; margin: 0 0 8px; }
.bbb-checklist { list-style: none; padding: 0; margin: 0; font-size: 14px; }
.bbb-checklist li { padding: 4px 0 4px 22px; position: relative; }
.bbb-checklist li::before { content: "✓"; position: absolute; left: 0; color: var(--bbb-accent); font-weight: 700; }
.bbb-checklist--no li::before { content: "✕"; color: var(--bbb-danger); }
.bbb-consents { display: flex; flex-direction: column; gap: 12px; margin: 22px 0; }
.bbb-wizard-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--bbb-line); }
.bbb-wizard-nav [data-next], .bbb-wizard-nav [data-submit] { margin-left: auto; }
.bbb-done { text-align: center; padding: 56px 24px; background: #fff; border: 1px solid var(--bbb-line); border-radius: var(--bbb-radius); box-shadow: var(--bbb-shadow); }
.bbb-done-icon { width: 72px; height: 72px; border-radius: 50%; background: var(--bbb-accent-soft); color: var(--bbb-accent); display: grid; place-items: center; margin: 0 auto 16px; animation: bbb-pop .5s var(--bbb-ease); }
.bbb-done-icon .bbb-i { width: 36px; height: 36px; }
@keyframes bbb-pop { from { transform: scale(.4); opacity: 0; } }

/* Facts */
.bbb-facts { margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1px; background: var(--bbb-line); border: 1px solid var(--bbb-line); border-radius: var(--bbb-radius-sm); overflow: hidden; }
.bbb-facts div { background: #fff; padding: 14px 16px; }
.bbb-facts dt { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--bbb-muted); margin-bottom: 4px; }
.bbb-facts dd { margin: 0; font-weight: 600; word-break: break-word; }

/* Discover / swipe */
.bbb-discover-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.bbb-discover-head h1 { font-size: clamp(30px, 4vw, 40px); letter-spacing: -.025em; margin: 0; }
.bbb-discover-tools { display: flex; gap: 10px; align-items: center; }
.bbb-inline-select select { min-width: 200px; }
.bbb-deck-wrap { display: flex; flex-direction: column; align-items: center; }
.bbb-deck { position: relative; width: min(420px, 100%); height: min(640px, calc(100svh - 260px)); min-height: 520px; outline: none; }
.bbb-swipe-card { position: absolute; inset: 0; background: #fff; border-radius: 26px; box-shadow: var(--bbb-shadow-lg); border: 1px solid var(--bbb-line); overflow: hidden; display: flex; flex-direction: column; touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: grab; will-change: transform; transition: transform .35s var(--bbb-ease), opacity .35s; }
.bbb-swipe-card.is-dragging { transition: none; cursor: grabbing; }
.bbb-swipe-card:nth-child(2) { transform: scale(.955) translateY(16px); z-index: 1; }
.bbb-swipe-card:nth-child(3) { transform: scale(.91) translateY(32px); opacity: .6; z-index: 0; }
.bbb-swipe-card:nth-child(n+4) { opacity: 0; pointer-events: none; }
.bbb-swipe-card:first-child { z-index: 3; }
.bbb-swipe-card img { pointer-events: none; }
.bbb-swipe-body { padding: 18px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; overflow: hidden; }
.bbb-swipe-name { font-size: 26px; letter-spacing: -.02em; margin: 2px 0 0; }
.bbb-swipe-name span { font-size: 16px; font-weight: 500; color: var(--bbb-muted); margin-left: 4px; }
.bbb-swipe-story { font-size: 17px; line-height: 1.55; color: var(--bbb-ink-2); margin: 0 0 6px; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.bbb-swipe-body .bbb-progress { margin-top: auto; }
.bbb-swipe-stamp { position: absolute; top: 28px; z-index: 4; font-weight: 800; font-size: 26px; letter-spacing: .08em; text-transform: uppercase; padding: 6px 14px; border: 3px solid; border-radius: 12px; opacity: 0; transition: opacity .1s; background: rgba(255,255,255,.85); }
.bbb-swipe-stamp--yes { left: 22px; color: var(--bbb-accent); transform: rotate(-12deg); }
.bbb-swipe-stamp--no { right: 22px; color: var(--bbb-muted); transform: rotate(12deg); }
.bbb-deck-controls { display: flex; gap: 22px; align-items: center; margin-top: 26px; }
.bbb-deck-hint { font-size: 14px; color: var(--bbb-muted); text-align: center; margin-top: 16px; max-width: 46ch; }
.bbb-deck-end { position: absolute; inset: 0; display: grid; place-items: center; }
.bbb-toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 140%); background: var(--bbb-ink); color: #fff; padding: 12px 14px 12px 18px; border-radius: 14px; display: flex; gap: 14px; align-items: center; box-shadow: var(--bbb-shadow-lg); z-index: 9999; transition: transform .35s var(--bbb-ease); font-size: 15px; max-width: calc(100vw - 32px); }
.bbb-toast.is-on { transform: translate(-50%, 0); }
.bbb-toast a { color: #fff; font-weight: 700; white-space: nowrap; background: rgba(255,255,255,.14); padding: 8px 12px; border-radius: 10px; text-decoration: none; }

/* Detail */
.bbb-crumbs { font-size: 14px; color: var(--bbb-muted); display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.bbb-crumbs a { color: var(--bbb-muted); text-decoration: none; }
.bbb-crumbs a:hover { color: var(--bbb-ink); }
.bbb-detail { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 40px; align-items: start; }
.bbb-detail-title { font-size: clamp(28px, 3.6vw, 40px); letter-spacing: -.025em; line-height: 1.12; margin: 14px 0 10px; }
.bbb-detail-preview { margin: 26px 0 0; }
.bbb-detail-preview figcaption { font-size: 13px; color: var(--bbb-muted); margin-top: 10px; }
.bbb-viewer-trigger { display: block; width: 100%; border: 0; padding: 0; background: none; cursor: zoom-in; position: relative; border-radius: var(--bbb-radius-sm); overflow: hidden; }
.bbb-viewer-hint { position: absolute; right: 12px; bottom: 12px; background: rgba(17,20,24,.82); color: #fff; padding: 8px 12px; border-radius: 99px; font-size: 13px; font-weight: 600; display: inline-flex; gap: 6px; align-items: center; }
.bbb-detail-section { margin-top: 40px; }
.bbb-detail-section h2 { font-size: 20px; margin: 0 0 14px; }
.bbb-story { margin: 0; font-size: 20px; line-height: 1.6; color: var(--bbb-ink-2); border-left: 3px solid var(--bbb-accent); padding: 4px 0 4px 20px; }
.bbb-history { list-style: none; padding: 0; margin: 0; }
.bbb-history li { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--bbb-line); align-items: flex-start; }
.bbb-history li > div { flex: 1; }
.bbb-history p { margin: 4px 0 0; color: var(--bbb-muted); font-size: 14px; }
.bbb-history time { font-size: 13px; color: var(--bbb-muted); white-space: nowrap; }
.bbb-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--bbb-accent-soft); color: var(--bbb-accent); display: grid; place-items: center; font-weight: 700; flex: none; }
.bbb-sticky { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 16px; }
.bbb-big-amount { font-size: 34px; font-weight: 700; letter-spacing: -.02em; margin: 0; }
.bbb-big-amount span { font-size: 15px; font-weight: 500; color: var(--bbb-muted); }
.bbb-contribute { display: flex; flex-direction: column; gap: 14px; border-top: 1px solid var(--bbb-line); padding-top: 18px; }
.bbb-contribute fieldset { border: 0; padding: 0; margin: 0; }
.bbb-contribute legend { font-weight: 600; font-size: 14px; margin-bottom: 8px; }
.bbb-amounts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.bbb-amount { min-height: 46px; border-radius: 12px; border: 1px solid var(--bbb-line); background: #fff; font: 600 15px var(--bbb-font); cursor: pointer; transition: all .15s; color: var(--bbb-ink); }
.bbb-amount:hover { border-color: var(--bbb-ink); }
.bbb-amount.is-on { background: var(--bbb-ink); color: #fff; border-color: var(--bbb-ink); }
.bbb-summary { font-size: 14px; background: var(--bbb-soft); border-radius: 12px; padding: 12px 14px; }
.bbb-summary:empty { display: none; }
.bbb-summary div { display: flex; justify-content: space-between; padding: 2px 0; }
.bbb-summary div:last-child { font-weight: 700; border-top: 1px solid var(--bbb-line); margin-top: 6px; padding-top: 8px; }
.bbb-side-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.bbb-side-actions .bbb-btn { flex: 1; }
[data-bbb-save][aria-pressed="true"] { color: var(--bbb-heart) !important; border-color: #f4c7bf; }
[data-bbb-save][aria-pressed="true"] .bbb-i { fill: currentColor; }

/* Dialog */
.bbb-dialog { border: 0; border-radius: var(--bbb-radius); padding: 0; max-width: min(480px, calc(100vw - 32px)); width: 100%; box-shadow: var(--bbb-shadow-lg); }
.bbb-dialog::backdrop { background: rgba(17,20,24,.45); backdrop-filter: blur(3px); }
.bbb-report { padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.bbb-report h2 { margin: 0; font-size: 22px; }
.bbb-report p { margin: 0; }
.bbb-dialog-actions { display: flex; justify-content: flex-end; gap: 10px; }
.bbb-viewer { max-width: min(1000px, calc(100vw - 32px)); background: #111; }
.bbb-viewer-inner { position: relative; max-height: 90vh; overflow: auto; }
.bbb-viewer-inner img { display: block; width: 100%; height: auto; }
.bbb-viewer-inner .bbb-round { position: sticky; float: right; top: 12px; margin: 12px; }

/* Dashboard */
.bbb-dash-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--bbb-line); margin-bottom: 28px; overflow-x: auto; scrollbar-width: none; }
.bbb-dash-tabs a { padding: 12px 16px; color: var(--bbb-muted); text-decoration: none; font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; display: inline-flex; gap: 6px; align-items: center; }
.bbb-dash-tabs a[aria-current] { color: var(--bbb-ink); border-color: var(--bbb-ink); }
.bbb-count { background: var(--bbb-heart); color: #fff; font-size: 11px; border-radius: 99px; padding: 2px 7px; }
.bbb-stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 24px; }
.bbb-stat { background: #fff; border: 1px solid var(--bbb-line); border-radius: var(--bbb-radius); padding: 20px; color: var(--bbb-muted); font-size: 14px; }
.bbb-stat span { display: block; font-size: 32px; font-weight: 700; color: var(--bbb-ink); letter-spacing: -.02em; }
.bbb-notes { list-style: none; padding: 0; margin: 0; }
.bbb-notes li { padding: 14px 0 14px 16px; border-bottom: 1px solid var(--bbb-line); position: relative; }
.bbb-notes li.is-unread::before { content: ""; position: absolute; left: 0; top: 21px; width: 7px; height: 7px; border-radius: 50%; background: var(--bbb-heart); }
.bbb-notes p { margin: 0 0 2px; }
.bbb-notes small { color: var(--bbb-muted); }
.bbb-table-wrap { background: #fff; border: 1px solid var(--bbb-line); border-radius: var(--bbb-radius); overflow: hidden; }
.bbb-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.bbb-table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--bbb-muted); padding: 14px 16px; background: #fafafa; border-bottom: 1px solid var(--bbb-line); }
.bbb-table td { padding: 16px; border-bottom: 1px solid var(--bbb-line); vertical-align: top; }
.bbb-table tr:last-child td { border-bottom: 0; }
.bbb-status { display: inline-block; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 99px; background: var(--bbb-soft); }
.bbb-status--approved, .bbb-status--funded, .bbb-status--paid_confirmed { background: var(--bbb-accent-soft); color: var(--bbb-accent); }
.bbb-status--needs_info { background: var(--bbb-warn-soft); color: var(--bbb-warn); }
.bbb-status--rejected { background: #fdecec; color: var(--bbb-danger); }
.bbb-narrow-panel { max-width: 560px; }

/* FAQ */
.bbb-faq details { border-bottom: 1px solid var(--bbb-line); padding: 18px 0; }
.bbb-faq summary { font-weight: 600; font-size: 18px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.bbb-faq summary::-webkit-details-marker { display: none; }
.bbb-faq summary::after { content: "+"; font-size: 22px; color: var(--bbb-muted); transition: transform .2s; line-height: 1; }
.bbb-faq details[open] summary::after { transform: rotate(45deg); }
.bbb-faq p { color: var(--bbb-muted); margin: 10px 0 0; line-height: 1.6; }

/* Responsive */
@media (max-width: 1024px) {
	.bbb-filters { grid-template-columns: repeat(3, 1fr); }
	.bbb-detail { grid-template-columns: 1fr; }
	.bbb-sticky { position: static; }
	.bbb-trust-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
	.bbb-hero { padding: 40px 0 56px; }
	.bbb-hero-grid { grid-template-columns: 1fr; gap: 40px; }
	.bbb-stack { height: 430px; }
	.bbb-how { grid-template-columns: 1fr; }
	.bbb-section { padding: 64px 0; }
	.bbb-privacy-box { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
	.bbb-wrap { padding: 0 16px; }
	.bbb-page { padding-top: 24px; }
	.bbb-filters { grid-template-columns: 1fr 1fr; padding: 12px; }
	.bbb-filters label:last-child { grid-column: span 2; }
	.bbb-trust-grid, .bbb-grid-2, .bbb-stat-row { grid-template-columns: 1fr; }
	.bbb-span-2 { grid-column: auto; }
	.bbb-hero .bbb-cta-row .bbb-btn, .bbb-cta-band .bbb-btn { width: 100%; }
	.bbb-how-col { padding: 24px 20px; }
	.bbb-wizard-steps li { font-size: 0; }
	.bbb-wizard-steps li::before { font-size: 12px; }
	.bbb-deck { min-height: 480px; height: calc(100svh - 280px); }
	.bbb-inline-select select { min-width: 0; }
	.bbb-table thead { display: none; }
	.bbb-table, .bbb-table tbody, .bbb-table tr, .bbb-table td { display: block; width: 100%; box-sizing: border-box; }
	.bbb-table tr { border-bottom: 1px solid var(--bbb-line); padding: 8px 0; }
	.bbb-table td { border: 0; padding: 6px 16px; }
	.bbb-table td[data-label]::before { content: attr(data-label); display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--bbb-muted); }
	.bbb-section-head--row .bbb-head-actions { width: 100%; }
	.bbb-section-head--row .bbb-head-actions .bbb-btn { flex: 1; }
}
@media print {
	.site-header, .site-footer, .bbb-cta-row { display: none !important; }
}

/* Direct-payment status & panels */
.bbb-amount-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.bbb-amount-big { font-size: 24px; font-weight: 700; letter-spacing: -.02em; }
.bbb-detail-side .bbb-amount-big { font-size: 34px; }
.bbb-track { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 0; margin: 10px 0 0; }
.bbb-track li { height: 6px; border-radius: 99px; background: #eceeed; }
.bbb-track li.is-done { background: linear-gradient(90deg, var(--bbb-accent), #16a37f); }
.bbb-status--claimed, .bbb-status--payment_reported { background: #eef4fb; color: #1d4f80; }
.bbb-status--closed { background: var(--bbb-soft); color: var(--bbb-muted); }
.bbb-paybox { margin: 12px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--bbb-line); border: 1px solid var(--bbb-line); border-radius: var(--bbb-radius-sm); overflow: hidden; }
.bbb-paybox div { background: #fff; padding: 10px 12px; }
.bbb-paybox .bbb-paybox-wide { grid-column: span 2; }
.bbb-paybox dt { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--bbb-muted); }
.bbb-paybox dd { margin: 2px 0 0; font-weight: 600; word-break: break-word; }
.bbb-paybox code { font-size: 15px; background: var(--bbb-soft); padding: 2px 6px; border-radius: 6px; user-select: all; }
.bbb-donor, .bbb-owner, .bbb-claim { border-top: 1px solid var(--bbb-line); padding-top: 16px; display: flex; flex-direction: column; gap: 12px; }
.bbb-donor-title { font-weight: 700; display: flex; gap: 8px; align-items: center; margin: 0; }
.bbb-donor-title .bbb-i { color: var(--bbb-heart); }
.bbb-claim p, .bbb-donor p, .bbb-owner p { margin: 0; }
.bbb-locked { position: relative; border-radius: var(--bbb-radius-sm); overflow: hidden; }
.bbb-locked .bbb-preview { filter: blur(2px); }
.bbb-locked-msg { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 20px; background: rgba(250,250,249,.72); }
.bbb-locked-msg p { margin: 0; max-width: 36ch; color: var(--bbb-ink-2); }
.bbb-locked-msg > .bbb-i { width: 28px; height: 28px; }
.bbb-detail-section .bbb-preview--bill { aspect-ratio: auto; background: #fff; border: 1px solid var(--bbb-line); }
.bbb-detail-section .bbb-preview--bill img { height: auto; max-height: 720px; object-fit: contain; }
.bbb-pdf object { width: 100%; height: 640px; border: 1px solid var(--bbb-line); border-radius: var(--bbb-radius-sm); }
.bbb-cover { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.bbb-cover canvas { max-width: 100%; height: auto; border: 1px solid var(--bbb-line); border-radius: var(--bbb-radius-sm); cursor: crosshair; touch-action: none; display: block; }
.bbb-cover p { margin: 0; }
.bbb-mt { margin-top: 24px; }
@media (max-width: 640px) { .bbb-pdf object { height: 420px; } .bbb-paybox { grid-template-columns: 1fr; } .bbb-paybox .bbb-paybox-wide { grid-column: auto; } }
