@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght,SOFT,WONK@9..144,500..900,50,0..1&family=Hanken+Grotesk:wght@400;600;700;800&display=swap');

:root {
  --oak: #1c130d;
  --espresso: #3a261a;
  --amber: #c87f2b;
  --amber-deep: #a4621d;
  --amber-glow: #e0a04b;
  --gold: #d8b24a;
  --wax: #8c2f24;
  --wax-deep: #6f221a;
  --cream: #f7f0e1;
  --cream-2: #fbf6ec;
  --ink: #231711;
  --ink-soft: #6a5747;
  --line: #e6dcc8;
  --green: #3d8c55;
  --shadow-soft: 0 12px 26px -20px rgba(40, 24, 12, .55);
  --shadow-amber: 0 12px 28px -16px rgba(200, 127, 43, .9);
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Hanken Grotesk', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --bs-primary: var(--amber);
  --bs-primary-rgb: 200, 127, 43;
  --bs-body-color: var(--ink);
  --bs-body-bg: var(--cream);
}

* { box-sizing: border-box; }

body.bb-app {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  background:
    radial-gradient(circle at top left, rgba(224, 160, 75, .22), transparent 34rem),
    radial-gradient(circle at 100% 8rem, rgba(140, 47, 36, .12), transparent 26rem),
    linear-gradient(180deg, var(--cream), #f2e7d4 100%);
}

body.bb-app::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .22;
  background-image:
    linear-gradient(90deg, rgba(28, 19, 13, .025) 1px, transparent 1px),
    linear-gradient(rgba(28, 19, 13, .02) 1px, transparent 1px);
  background-size: 18px 18px;
  z-index: -1;
}

a { color: var(--amber-deep); }
a:hover { color: var(--wax); }

h1, h2, h3, .bb-display, .bb-stat-value {
  font-family: var(--font-display);
  letter-spacing: -.02em;
}

.bb-page { padding: 1rem 0 3rem; }
.bb-shell { width: min(100% - 2rem, 1120px); margin: 0 auto; }
.bb-narrow { width: min(100% - 2rem, 680px); margin: 0 auto; }

.navbar.bb-navbar {
  margin-bottom: 1.25rem !important;
  padding: .85rem 0;
  border-bottom: 1px solid rgba(230, 220, 200, .24);
  background: linear-gradient(180deg, var(--oak), #24170f) !important;
  box-shadow: 0 16px 30px -28px rgba(0, 0, 0, .8);
}

.bb-navbar .navbar-brand {
  color: var(--cream-2);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -.02em;
}

.bb-navbar .navbar-brand::before { content: '🥃 '; }
.bb-navbar .nav-link { color: rgba(251, 246, 236, .78); font-weight: 700; }
.bb-navbar .nav-link:hover, .bb-navbar .nav-link:focus { color: var(--amber-glow); }
.bb-navbar .navbar-toggler { border-color: rgba(251, 246, 236, .35); }
.bb-navbar .navbar-toggler-icon { filter: invert(1) sepia(.5) saturate(2); }

.bb-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(251, 246, 236, .96);
  box-shadow: var(--shadow-soft);
}

.bb-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: clamp(1.25rem, 4vw, 2rem);
  padding: clamp(1.5rem, 5vw, 3rem);
  border: 1px solid rgba(216, 178, 74, .22);
  border-radius: 28px;
  color: var(--cream-2);
  background:
    radial-gradient(circle at 82% 18%, rgba(224, 160, 75, .34), transparent 12rem),
    linear-gradient(135deg, var(--oak), var(--espresso) 58%, #160d09);
  box-shadow: 0 30px 60px -42px rgba(28, 19, 13, .95);
}

.bb-hero::after {
  content: '';
  position: absolute;
  right: -3rem;
  bottom: -5rem;
  width: 15rem;
  height: 15rem;
  border: 1.5rem solid rgba(216, 178, 74, .16);
  border-radius: 50%;
}

.bb-hero-content { position: relative; z-index: 1; max-width: 720px; }

.bb-eyebrow {
  margin-bottom: .65rem;
  color: var(--gold);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.bb-hero h1 { margin: 0 0 1rem; font-size: clamp(2.35rem, 9vw, 4.8rem); line-height: .94; font-weight: 900; }
.bb-accent { color: var(--amber-glow); font-style: italic; font-weight: 700; }
.bb-hero p { max-width: 36rem; margin: 0 0 1.5rem; color: rgba(251, 246, 236, .78); font-size: 1.07rem; }

.bb-btn, .btn.bb-btn, button.bb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  min-height: 2.75rem;
  padding: .72rem 1rem;
  border: 1px solid transparent;
  border-radius: 13px;
  font-family: var(--font-body);
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.bb-btn:hover { transform: translateY(-1px); text-decoration: none; }
.bb-btn:focus-visible, .form-control:focus, .form-check-input:focus { outline: 3px solid rgba(216, 178, 74, .55); outline-offset: 2px; box-shadow: none; }
.bb-btn-primary, .btn-primary { color: var(--ink) !important; border-color: rgba(164, 98, 29, .4) !important; background: linear-gradient(180deg, var(--amber-glow), var(--amber-deep)) !important; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .36), var(--shadow-amber); }
.bb-btn-wax, .btn-secondary { color: #fff !important; border-color: rgba(111, 34, 26, .48) !important; background: linear-gradient(180deg, #a23a2e, var(--wax-deep)) !important; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 14px 28px -20px rgba(111, 34, 26, .85); }
.bb-btn-ghost, .btn-outline-primary { color: var(--ink) !important; border-color: var(--line) !important; background: rgba(255, 255, 255, .72) !important; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .75); }

.bb-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin: 2rem 0 1rem; }
.bb-section-heading h2 { margin: 0; font-size: clamp(1.7rem, 6vw, 2.45rem); font-weight: 800; }
.bb-muted { color: var(--ink-soft); }

.bb-pool-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 1rem; }
.bb-pool-list { display: grid; gap: 1rem; }

.bb-pool-card {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 1rem;
  padding: .75rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--cream-2);
  box-shadow: var(--shadow-soft);
}

.bb-pool-card-media {
  display: grid;
  place-items: center;
  min-height: 140px;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(216, 178, 74, .26);
  background: linear-gradient(150deg, rgba(224, 160, 75, .25), rgba(58, 38, 26, .12));
}

.bb-pool-card-media img { width: 100%; height: 100%; object-fit: cover; }
.bb-proposal-photo-rotator { position: relative; display: block; width: 100%; height: 100%; min-height: 140px; overflow: hidden; }
.bb-proposal-photo-rotator .bb-proposal-photo { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s ease-in-out; }
.bb-proposal-photo-rotator .bb-proposal-photo.is-active { opacity: 1; }
.bb-bottle-placeholder { position: relative; width: 50px; height: 105px; }
.bb-bottle-neck { position: absolute; top: 0; left: 18px; width: 14px; height: 35px; border-radius: 7px 7px 2px 2px; background: linear-gradient(180deg, var(--amber-glow), var(--amber-deep)); box-shadow: inset 0 0 0 2px rgba(255,255,255,.15); }
.bb-bottle-body { position: absolute; bottom: 0; left: 6px; width: 38px; height: 74px; border-radius: 14px 14px 10px 10px; background: linear-gradient(145deg, var(--amber-glow), var(--amber-deep) 56%, var(--espresso)); box-shadow: inset 8px 0 0 rgba(255,255,255,.12), 0 12px 22px -14px rgba(28,19,13,.8); }
.bb-bottle-body::after { content: ''; position: absolute; left: 7px; right: 7px; top: 25px; height: 19px; border-radius: 5px; background: rgba(247, 240, 225, .8); }

.bb-pool-card-body { min-width: 0; }
.bb-card-topline { display: flex; justify-content: flex-start; margin-bottom: .45rem; }
.bb-pool-card-title { margin: 0 0 .45rem; font-size: 1.25rem; font-weight: 800; line-height: 1.08; }
.bb-pool-card-title a { color: var(--ink); text-decoration: none; }
.bb-pool-card-title a:hover { color: var(--amber-deep); }
.bb-creator-line { display: flex; align-items: center; gap: .45rem; margin: 0 0 .9rem; color: var(--ink-soft); font-size: .93rem; }
.bb-card-actions { margin-top: .9rem; }

.bb-status-chip {
  display: inline-flex;
  align-items: center;
  gap: .38rem;
  padding: .33rem .6rem;
  border-radius: 999px;
  background: rgba(61, 140, 85, .13);
  color: #245938;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.bb-status-dot { width: .48rem; height: .48rem; border-radius: 50%; background: #47b96c; box-shadow: 0 0 0 0 rgba(71, 185, 108, .55); animation: bb-pulse 1.8s infinite; }
@keyframes bb-pulse { 70% { box-shadow: 0 0 0 7px rgba(71, 185, 108, 0); } 100% { box-shadow: 0 0 0 0 rgba(71, 185, 108, 0); } }

.bb-avatar, .bb-avatar-extra {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  flex: 0 0 2rem;
  border: 2px solid #fff;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(180deg, var(--amber-glow), var(--amber-deep));
  font-size: .72rem;
  font-weight: 900;
  box-shadow: 0 8px 14px -12px rgba(28, 19, 13, .9);
}
.bb-avatar-stack { display: inline-flex; align-items: center; padding-left: 8px; }
.bb-avatar-stack .bb-avatar { margin-left: -8px; }
.bb-avatar-extra, .bb-avatar-muted { color: var(--ink-soft); background: var(--cream); }

.bb-progress { display: grid; gap: .4rem; }
.bb-progress-readout { display: flex; justify-content: space-between; gap: 1rem; color: var(--ink-soft); font-size: .84rem; font-weight: 800; }
.bb-progress-track { position: relative; height: 9px; overflow: hidden; border-radius: 999px; background: #ece2d0; }
.bb-progress-fill { position: absolute; inset: 0 auto 0 0; border-radius: inherit; background: linear-gradient(90deg, var(--amber-glow), var(--amber-deep)); box-shadow: 0 0 18px rgba(200, 127, 43, .35); }

.bb-form-card { padding: clamp(1.25rem, 5vw, 2rem); }
.bb-page-title { margin: 0 0 .5rem; font-size: clamp(2.15rem, 8vw, 3.4rem); font-weight: 900; }
.bb-page-subtitle { margin: 0 0 1.5rem; color: var(--ink-soft); font-size: 1.02rem; }
.form-label, .bb-label { color: var(--ink); font-size: .76rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.form-control { min-height: 3rem; border: 1px solid var(--line); border-radius: 13px; background-color: #fff; color: var(--ink); box-shadow: inset 0 2px 5px rgba(28, 19, 13, .04); }
.form-control:disabled { background: #efe4d3; color: var(--ink-soft); }
.bb-money-field { position: relative; display: block; }
.bb-money-field::before { content: '$'; position: absolute; z-index: 1; left: .95rem; top: 50%; transform: translateY(-50%); color: var(--amber-deep); font-family: var(--font-display); font-size: 1.2rem; font-weight: 800; }
.bb-money-field .form-control { padding-left: 2rem; }

.bb-toggle-row { display: flex; align-items: start; justify-content: space-between; gap: 1rem; padding: 1rem; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.58); }
.bb-toggle-row .form-check-input { width: 3rem; height: 1.55rem; margin-top: .15rem; }
.form-check-input:checked { background-color: var(--amber-deep); border-color: var(--amber-deep); }
.bb-helper { margin: .18rem 0 0; color: var(--ink-soft); font-size: .92rem; }

.bb-dropzone { position: relative; display: grid; grid-template-columns: auto 1fr; gap: .85rem; align-items: center; min-height: 6.5rem; padding: 1rem; border: 1.5px dashed #d3c4aa; border-radius: 18px; background: rgba(255, 255, 255, .54); cursor: pointer; }
.bb-dropzone input[type='file'] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.bb-dropzone-icon { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 14px; color: var(--ink); background: linear-gradient(180deg, var(--amber-glow), var(--amber-deep)); font-size: 1.35rem; box-shadow: var(--shadow-amber); }
.bb-dropzone-title { display: block; font-weight: 900; }
.bb-dropzone-help { display: block; color: var(--ink-soft); }

.alert { border-radius: 14px; border: 1px solid var(--line); }
.bb-detail-head { display: grid; gap: 1rem; margin-bottom: 1rem; }
.bb-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.bb-meta-row { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; color: var(--ink-soft); }
.bb-note { padding: .9rem 1rem; border: 1px solid rgba(200, 127, 43, .28); border-radius: 16px; color: var(--ink); background: rgba(224, 160, 75, .15); }
.bb-stat-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.bb-stat-card { display: grid; gap: .9rem; padding: 1rem; border: 1px solid var(--line); border-radius: 20px; background: rgba(255,255,255,.62); }
.bb-stat-card-featured { background: linear-gradient(180deg, rgba(255,255,255,.78), rgba(251,246,236,.96)); border-color: rgba(200, 127, 43, .38); }
.bb-stat-label { color: var(--ink-soft); font-size: .72rem; font-weight: 900; letter-spacing: .18em; text-transform: uppercase; }
.bb-stat-value { margin: 0; font-size: clamp(2.15rem, 9vw, 3.55rem); font-weight: 900; line-height: .96; }
.bb-stat-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.bb-proposal-peek { position: relative; display: block; height: 5.65rem; margin: .15rem 0 .7rem; overflow: hidden; border: 1px solid rgba(200, 127, 43, .32); border-radius: 18px; background: linear-gradient(135deg, rgba(95, 53, 30, .12), rgba(216, 178, 74, .16)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .72); text-decoration: none; }
.bb-proposal-peek::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(255,255,255,.16), transparent 28%, transparent 72%, rgba(28,19,13,.12)); }
.bb-proposal-peek-frame { position: absolute; top: .6rem; bottom: .6rem; width: 42%; overflow: hidden; border: 2px solid rgba(255, 255, 255, .86); border-radius: 15px; box-shadow: 0 16px 28px -22px rgba(28, 19, 13, .9); transition: transform .18s ease, box-shadow .18s ease; }
.bb-proposal-peek-frame img { width: 100%; height: 100%; object-fit: cover; }
.bb-proposal-peek-frame-1 { left: .7rem; transform: rotate(-5deg); z-index: 3; }
.bb-proposal-peek-frame-2 { left: 31%; transform: rotate(2deg); z-index: 2; }
.bb-proposal-peek-frame-3 { right: .7rem; transform: rotate(6deg); z-index: 1; }
.bb-proposal-peek:hover .bb-proposal-peek-frame, .bb-proposal-peek:focus-visible .bb-proposal-peek-frame { box-shadow: 0 20px 34px -22px rgba(28, 19, 13, .95); }
.bb-proposal-peek:hover .bb-proposal-peek-frame-1, .bb-proposal-peek:focus-visible .bb-proposal-peek-frame-1 { transform: translateY(-2px) rotate(-6deg); }
.bb-proposal-peek:hover .bb-proposal-peek-frame-2, .bb-proposal-peek:focus-visible .bb-proposal-peek-frame-2 { transform: translateY(-2px) rotate(1deg); }
.bb-proposal-peek:hover .bb-proposal-peek-frame-3, .bb-proposal-peek:focus-visible .bb-proposal-peek-frame-3 { transform: translateY(-2px) rotate(7deg); }
.bb-empty { padding: 1.25rem; text-align: center; }

.bb-public-list { max-width: 760px; margin: 1.5rem auto 0; padding: 0; list-style: none; display: grid; gap: .7rem; }
.bb-public-list li { padding: 1rem; border: 1px solid var(--line); border-radius: 16px; background: rgba(251, 246, 236, .82); font-weight: 800; }

.bb-fade-item { animation: bb-fade-up .42s ease both; }
.bb-fade-item:nth-child(2) { animation-delay: .05s; }
.bb-fade-item:nth-child(3) { animation-delay: .1s; }
.bb-fade-item:nth-child(4) { animation-delay: .15s; }
@keyframes bb-fade-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

@media (min-width: 768px) {
  .bb-page { padding-top: 1.5rem; }
  .bb-stat-grid { grid-template-columns: repeat(3, 1fr); }
  .bb-stat-card-featured { grid-column: span 1; }
}

@media (max-width: 575px) {
  .bb-pool-card { grid-template-columns: 92px 1fr; gap: .8rem; }
  .bb-pool-card-media { min-height: 122px; }
  .bb-progress-readout { flex-direction: column; gap: .15rem; }
  .bb-title-row { flex-direction: column; }
  .bb-btn { width: 100%; }
  .bb-stat-actions .bb-btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .001ms !important; }
}

.bb-auth-page { min-height: calc(100vh - 2rem); display: grid; align-items: center; padding: clamp(1.25rem, 5vw, 3rem) 0; }
.bb-auth-shell { width: min(100% - 2rem, 960px); margin: 0 auto; display: grid; gap: 1.25rem; align-items: center; }
.bb-auth-brand { position: relative; overflow: hidden; padding: clamp(1.25rem, 5vw, 2.2rem); border-radius: 26px; color: var(--cream-2); background: linear-gradient(135deg, var(--oak), var(--espresso)); box-shadow: 0 24px 50px -36px rgba(28, 19, 13, .95); }
.bb-auth-brand::after { content: ''; position: absolute; right: -4rem; bottom: -5rem; width: 14rem; height: 14rem; border: 1.4rem solid rgba(216, 178, 74, .16); border-radius: 50%; }
.bb-auth-logo { width: min(13rem, 62vw); height: auto; margin-bottom: 1.25rem; filter: drop-shadow(0 16px 22px rgba(0, 0, 0, .25)); }
.bb-auth-brand h1 { position: relative; z-index: 1; margin: 0 0 .75rem; font-size: clamp(2.1rem, 9vw, 4rem); font-weight: 900; line-height: .95; }
.bb-auth-brand p { position: relative; z-index: 1; max-width: 28rem; margin: 0; color: rgba(251, 246, 236, .76); font-size: 1.03rem; }
.bb-auth-card { padding: clamp(1.25rem, 5vw, 2rem); }
.bb-auth-card .bb-btn { width: 100%; }

.form-select { min-height: 3rem; border: 1px solid var(--line); border-radius: 13px; background-color: #fff; color: var(--ink); box-shadow: inset 0 2px 5px rgba(28, 19, 13, .04); }
.form-select:focus { outline: 3px solid rgba(216, 178, 74, .55); outline-offset: 2px; border-color: var(--amber); box-shadow: none; }

.bb-action-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem; margin-bottom: 1.25rem; }
.bb-action-row h1 { margin: 0; }
.bb-card-section { padding: 1rem; border: 1px solid var(--line); border-radius: 18px; background: rgba(255, 255, 255, .56); }
.bb-list { display: grid; gap: .7rem; margin: 0 0 1.25rem; padding: 0; list-style: none; }
.bb-list-item { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .85rem 1rem; border: 1px solid var(--line); border-radius: 16px; background: rgba(255, 255, 255, .62); }
.bb-badge { display: inline-flex; align-items: center; gap: .35rem; padding: .45rem .7rem; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); background: rgba(255, 255, 255, .72); font-weight: 800; }
.bb-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; background: rgba(255, 255, 255, .62); }
.bb-table { margin: 0; color: var(--ink); }
.bb-table thead th { color: var(--ink-soft); font-size: .72rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; background: rgba(224, 160, 75, .16); border-bottom-color: var(--line); }
.bb-table tbody td { border-color: rgba(230, 220, 200, .72); vertical-align: middle; }
.bb-table-striped tbody tr:nth-of-type(odd) td { background: rgba(251, 246, 236, .72); }
.bb-photo-preview { width: 100%; max-height: 24rem; object-fit: cover; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-soft); }
.bb-thumb { width: 3rem; height: 3rem; object-fit: cover; border-radius: 14px; border: 1px solid var(--line); }
.bb-proposal-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 1rem; }
.bb-proposal-card { overflow: hidden; display: flex; flex-direction: column; min-height: 100%; border: 1px solid var(--line); border-radius: 18px; background: rgba(255, 255, 255, .68); box-shadow: var(--shadow-soft); }
.bb-proposal-photo { width: 100%; height: 12.5rem; object-fit: cover; background: #eadfcb; }
.bb-proposal-body { display: flex; flex: 1; flex-direction: column; gap: .7rem; padding: 1rem; }
.bb-vote-row { display: flex; align-items: center; justify-content: center; gap: .5rem; }
.bb-icon-btn { display: inline-grid; place-items: center; width: 2.35rem; height: 2.35rem; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.78); text-decoration: none; }
.bb-icon-btn:hover { border-color: var(--amber); transform: translateY(-1px); }
.bb-icon-btn-wax { color: var(--cream-2); border-color: rgba(140, 47, 36, .2); background: linear-gradient(180deg, var(--wax), var(--wax-deep)); box-shadow: 0 10px 20px -16px rgba(140, 47, 36, .9); }
.bb-icon-btn-wax:hover { color: var(--cream-2); border-color: var(--wax-deep); }
.bb-proposal-actions { display: flex; justify-content: flex-end; gap: .45rem; margin-top: auto; padding-top: .2rem; }
.bb-inline-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.bb-finalize-confirm,
.bb-delete-confirm { border-color: rgba(140, 47, 36, .24); background: rgba(140, 47, 36, .06); }

@media (min-width: 768px) {
  .bb-auth-shell { grid-template-columns: 1.08fr .92fr; }
}

.bb-proposal-heading { display: block; width: 100%; }
.bb-btn-sm { min-height: 2.1rem; padding: .45rem .75rem; border-radius: 12px; font-size: .9rem; }


.bb-hero-steps {
  position: relative;
  z-index: 1;
  padding: clamp(1rem, 3vw, 1.25rem);
  border: 1px solid rgba(251, 246, 236, .16);
  border-radius: 24px;
  background: rgba(251, 246, 236, .08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
  backdrop-filter: blur(10px);
}
.bb-hero-steps .bb-eyebrow { margin-bottom: .45rem; }
.bb-hero-steps h2 {
  margin: 0 0 1rem;
  color: var(--cream-2);
  font-size: clamp(1.25rem, 3vw, 1.65rem);
  font-weight: 850;
  letter-spacing: -.02em;
}
.bb-how-steps { position: relative; z-index: 1; display: grid; gap: .75rem; margin: 0; padding: 0; list-style: none; }
.bb-how-steps li::marker { content: ''; }
.bb-how-steps li {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .2rem .8rem;
  align-items: center;
  padding: .85rem;
  border: 1px solid rgba(251, 246, 236, .14);
  border-radius: 18px;
  background: rgba(255, 255, 255, .08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1);
}
.bb-how-icon {
  display: grid;
  grid-row: span 2;
  place-items: center;
  flex: 0 0 auto;
  width: 2.25rem;
  height: 2.25rem;
  overflow: hidden;
  border: 1px solid rgba(251, 246, 236, .46);
  border-radius: 12px;
  color: var(--oak);
  background: linear-gradient(180deg, var(--cream-2), var(--gold));
  box-shadow: 0 14px 26px -22px rgba(251, 246, 236, .95);
}
.bb-how-icon svg {
  display: block;
  width: 1.05rem;
  height: 1.05rem;
  max-width: 1.05rem;
  max-height: 1.05rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.bb-how-icon svg path { fill: none; stroke: currentColor; }
.bb-how-steps strong { color: var(--cream-2); font-size: 1rem; line-height: 1.05; }
.bb-how-steps span:not(.bb-how-icon) { color: rgba(251, 246, 236, .68); font-size: .92rem; line-height: 1.25; }

.bb-process-timeline {
  position: relative;
  overflow: hidden;
  margin: 0 0 1rem;
  padding: clamp(1.15rem, 3vw, 1.65rem);
  border: 1px solid rgba(216, 178, 74, .28);
  border-radius: 26px;
  background:
    radial-gradient(circle at 8% 12%, rgba(224, 160, 75, .26), transparent 14rem),
    radial-gradient(circle at 94% 4%, rgba(140, 47, 36, .12), transparent 12rem),
    linear-gradient(135deg, rgba(255,255,255,.86), rgba(247, 240, 225, .78));
  box-shadow: 0 22px 44px -36px rgba(40, 24, 12, .65);
}
.bb-process-timeline::before {
  content: '';
  position: absolute;
  inset: .85rem;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, .74);
  border-radius: 20px;
}
.bb-process-timeline-head { position: relative; z-index: 1; display: flex; align-items: start; justify-content: space-between; gap: 1rem; margin-bottom: 1.15rem; }
.bb-process-timeline-head h2 { margin: 0; font-size: clamp(1.35rem, 3vw, 1.75rem); font-weight: 900; }
.bb-timeline-list {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(5, minmax(8.5rem, 1fr));
  gap: .65rem;
  margin: 0;
  padding: .2rem 0 .35rem;
  list-style: none;
}
.bb-timeline-list::before {
  content: '';
  position: absolute;
  top: 1.72rem;
  left: 6%;
  right: 6%;
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(61, 140, 85, .62), rgba(224, 160, 75, .46), rgba(200, 127, 43, .18));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .48);
}
.bb-timeline-step {
  position: relative;
  display: grid;
  grid-template-rows: 3.1rem 1fr;
  justify-items: center;
  min-width: 0;
  text-align: center;
}
.bb-timeline-step::after { display: none; }
.bb-timeline-marker {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border: 5px solid rgba(251, 246, 236, .94);
  border-radius: 17px;
  color: var(--ink-soft);
  background: linear-gradient(180deg, #fff8ea, #eadbc1);
  font-size: .92rem;
  font-weight: 900;
  box-shadow: 0 16px 28px -18px rgba(28,19,13,.82);
  transform: rotate(45deg);
}
.bb-timeline-marker span { display: inline-block; transform: rotate(-45deg); }
.bb-timeline-copy {
  position: relative;
  display: grid;
  gap: .24rem;
  width: 100%;
  min-width: 0;
  min-height: 8.25rem;
  padding: 1rem .8rem .9rem;
  border: 1px solid rgba(216, 178, 74, .26);
  border-radius: 18px;
  background: rgba(255, 255, 255, .68);
  box-shadow: 0 16px 28px -24px rgba(28, 19, 13, .58), inset 0 1px 0 rgba(255,255,255,.86);
}
.bb-timeline-copy::before {
  content: '';
  position: absolute;
  top: -.48rem;
  left: 50%;
  width: .9rem;
  height: .9rem;
  border-left: 1px solid rgba(216, 178, 74, .26);
  border-top: 1px solid rgba(216, 178, 74, .26);
  background: inherit;
  transform: translateX(-50%) rotate(45deg);
}
.bb-timeline-kicker {
  color: var(--amber-deep);
  font-size: .64rem;
  font-weight: 900;
  letter-spacing: .16em;
  line-height: 1;
  text-transform: uppercase;
}
.bb-timeline-copy strong { display: block; color: var(--ink-soft); font-size: clamp(.9rem, 1.4vw, 1.05rem); line-height: 1.08; }
.bb-timeline-description { display: block; color: rgba(106, 87, 71, .82); font-size: .82rem; font-weight: 700; line-height: 1.25; }
.bb-timeline-step.is-done .bb-timeline-marker { border-color: rgba(237, 248, 239, .96); color: #fff; background: linear-gradient(180deg, #72c889, var(--green)); box-shadow: 0 0 0 7px rgba(61, 140, 85, .12), 0 16px 28px -18px rgba(28,19,13,.82); }
.bb-timeline-step.is-done .bb-timeline-copy { border-color: rgba(61, 140, 85, .22); background: rgba(248, 255, 249, .74); }
.bb-timeline-step.is-done .bb-timeline-kicker { color: var(--green); }
.bb-timeline-step.is-current .bb-timeline-marker { border-color: rgba(255, 246, 226, .98); color: var(--cream-2); background: linear-gradient(180deg, var(--amber-glow), var(--amber-deep)); box-shadow: 0 0 0 8px rgba(224, 160, 75, .18), var(--shadow-amber); }
.bb-timeline-step.is-current .bb-timeline-copy { border-color: rgba(200, 127, 43, .42); background: rgba(255, 251, 242, .9); box-shadow: 0 20px 34px -24px rgba(200, 127, 43, .7), inset 0 1px 0 rgba(255,255,255,.9); transform: translateY(-.12rem); }
.bb-timeline-step.is-current .bb-timeline-copy strong { color: var(--ink); font-weight: 900; }
.bb-timeline-step.is-future .bb-timeline-marker { opacity: .82; }
.bb-timeline-step.is-future .bb-timeline-copy { background: rgba(255, 255, 255, .46); }
.bb-timeline-step.is-future .bb-timeline-copy strong { color: rgba(106, 87, 71, .72); }
.bb-timeline-step.is-future .bb-timeline-description { color: rgba(106, 87, 71, .62); }

@media (min-width: 820px) {
  .bb-hero { grid-template-columns: minmax(0, .95fr) minmax(22rem, .75fr); align-items: center; }
  .bb-how-steps { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .bb-timeline-list {
    grid-template-columns: repeat(5, minmax(9.5rem, 1fr));
    overflow-x: auto;
    padding-bottom: .7rem;
    scroll-snap-type: x proximity;
  }
  .bb-timeline-list::before { left: 4.75rem; right: 4.75rem; }
  .bb-timeline-step { scroll-snap-align: start; }
}
