.bcgh-wrap {
  --bcgh-bg: #05050a;
  --bcgh-bg-2: #0c1020;
  --bcgh-panel: rgba(10, 14, 28, 0.92);
  --bcgh-panel-solid: #101426;
  --bcgh-panel-2: rgba(255, 255, 255, 0.065);
  --bcgh-text: #ffffff;
  --bcgh-muted: #cfd4e8;
  --bcgh-soft: rgba(255, 255, 255, 0.72);
  --bcgh-red: #ff2638;
  --bcgh-blue: #2589ff;
  --bcgh-purple: #b135ff;
  --bcgh-green: #37e88c;
  --bcgh-border: rgba(255, 255, 255, 0.16);
  --bcgh-shadow-blue: rgba(37, 137, 255, 0.28);
  --bcgh-shadow-red: rgba(255, 38, 56, 0.22);
  color: var(--bcgh-text);
  background:
    radial-gradient(circle at 8% 0%, rgba(37,137,255,.34), transparent 28%),
    radial-gradient(circle at 95% 10%, rgba(255,38,56,.32), transparent 25%),
    radial-gradient(circle at 50% 115%, rgba(177,53,255,.26), transparent 34%),
    linear-gradient(135deg, #03040a 0%, #0a0e1d 52%, #09050d 100%);
  border-radius: 24px;
  padding: clamp(14px, 2.5vw, 28px);
  box-shadow: 0 0 46px rgba(37,137,255,.16), inset 0 0 0 1px rgba(255,255,255,.08);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.bcgh-wrap::before,
.bcgh-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.bcgh-wrap::before {
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 36px 36px, 36px 36px, 140px 140px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
}

.bcgh-wrap::after {
  border-radius: 24px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), inset 0 0 40px rgba(255,255,255,.03);
}

.bcgh-wrap * { box-sizing: border-box; }
.bcgh-wrap button, .bcgh-wrap textarea { font: inherit; }

.bcgh-hero {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: clamp(26px, 5vw, 52px) 16px;
  border: 1px solid var(--bcgh-border);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(37,137,255,.18), rgba(255,38,56,.12), rgba(177,53,255,.16)),
    rgba(255,255,255,.04);
  margin-bottom: 18px;
  overflow: hidden;
}

.bcgh-hero::before {
  content: "";
  position: absolute;
  width: 160%;
  height: 16px;
  left: -30%;
  top: 16px;
  background: linear-gradient(90deg, transparent, rgba(37,137,255,.6), rgba(255,38,56,.55), rgba(177,53,255,.6), transparent);
  filter: blur(14px);
  opacity: .8;
}

.bcgh-topline, .bcgh-kicker {
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--bcgh-muted);
  font-weight: 900;
  font-size: 12px;
}

.bcgh-bolt { margin: 0 8px; filter: drop-shadow(0 0 8px var(--bcgh-blue)); }

.bcgh-hero h1 {
  margin: 10px 0 8px;
  font-size: clamp(38px, 8vw, 86px);
  line-height: .9;
  text-transform: uppercase;
  letter-spacing: .01em;
  text-shadow: 0 0 16px rgba(37,137,255,.76), 0 0 28px rgba(255,38,56,.46), 0 3px 0 rgba(0,0,0,.55);
}

.bcgh-hero p { margin: 0 auto; color: var(--bcgh-muted); max-width: 760px; font-size: clamp(15px, 2vw, 18px); }
.bcgh-hero-actions { margin-top: 18px; }

.bcgh-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

.bcgh-btn, .bcgh-btn:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.22);
  background: linear-gradient(135deg, var(--bcgh-red), var(--bcgh-purple));
  color: #fff;
  text-decoration: none;
  font-weight: 950;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(255,38,56,.18), inset 0 0 0 1px rgba(255,255,255,.08);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.bcgh-btn:hover { transform: translateY(-1px); box-shadow: 0 12px 34px rgba(37,137,255,.26), 0 0 20px rgba(177,53,255,.18); }
.bcgh-btn:focus-visible, .bcgh-day-pill:focus-visible { outline: 3px solid rgba(255,255,255,.92); outline-offset: 3px; }
.bcgh-btn-secondary, .bcgh-btn-secondary:visited { background: rgba(255,255,255,.09); }

.bcgh-dashboard { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr; gap: 16px; }

.bcgh-status-panel,
.bcgh-days-card,
.bcgh-card,
.bcgh-side-card {
  background: var(--bcgh-panel);
  border: 1px solid var(--bcgh-border);
  border-radius: 20px;
  box-shadow: 0 18px 45px rgba(0,0,0,.25);
  backdrop-filter: blur(10px);
}

.bcgh-status-panel { padding: 16px; }

.bcgh-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 14px;
}

.bcgh-stat {
  background: linear-gradient(180deg, rgba(255,255,255,.085), rgba(255,255,255,.035));
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  padding: 14px;
  min-width: 0;
}

.bcgh-stat strong { display: block; font-size: clamp(24px, 3.4vw, 36px); line-height: 1; }
.bcgh-stat span { display: block; margin-top: 6px; color: var(--bcgh-muted); font-size: 12px; text-transform: uppercase; font-weight: 900; letter-spacing: .05em; }

.bcgh-progress-shell,
.bcgh-mini-progress {
  height: 15px;
  background: rgba(255,255,255,.12);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.14);
}

.bcgh-progress-bar,
.bcgh-mini-progress span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--bcgh-red), var(--bcgh-blue), var(--bcgh-purple));
  box-shadow: 0 0 18px var(--bcgh-shadow-blue);
  transition: width .22s ease;
}

.bcgh-mini-progress { height: 10px; margin-bottom: 2px; }

.bcgh-save-message { color: var(--bcgh-muted); min-height: 20px; font-weight: 800; margin: 8px 0 0; }
.bcgh-small { color: var(--bcgh-soft); font-size: 13px; line-height: 1.45; }

.bcgh-days-card { padding: 16px; }
.bcgh-section-title { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.bcgh-section-title h2 { margin: 0; font-size: clamp(20px, 3vw, 28px); text-transform: uppercase; }
.bcgh-section-title span { color: var(--bcgh-muted); font-weight: 800; font-size: 13px; }

.bcgh-day-pill {
  display: grid;
  gap: 2px;
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.06);
  color: #fff;
  border-radius: 14px;
  min-height: 58px;
  padding: 8px 6px;
  font-weight: 900;
  cursor: pointer;
  text-align: center;
  transition: transform .16s ease, background .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.bcgh-day-pill:hover { transform: translateY(-1px); border-color: rgba(255,255,255,.34); }
.bcgh-day-pill.is-active { border-color: rgba(255,255,255,.78); box-shadow: 0 0 0 2px rgba(37,137,255,.42), 0 0 18px rgba(37,137,255,.36); }
.bcgh-day-pill.is-complete { background: linear-gradient(135deg, rgba(55,232,140,.8), rgba(37,137,255,.58)); }
.bcgh-day-pill.is-partial { background: linear-gradient(135deg, rgba(255,255,255,.11), rgba(177,53,255,.22)); border-color: rgba(177,53,255,.45); }
.bcgh-day-number { font-size: 18px; line-height: 1; }
.bcgh-day-focus { color: var(--bcgh-muted); font-size: 10px; line-height: 1.05; text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bcgh-day-status { font-size: 11px; color: #fff; }

.bcgh-main-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.bcgh-card { overflow: hidden; }

.bcgh-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: clamp(16px, 3vw, 24px);
  background: linear-gradient(100deg, rgba(255,38,56,.78), rgba(37,137,255,.58), rgba(177,53,255,.58));
  border-bottom: 1px solid rgba(255,255,255,.16);
}

.bcgh-accent-blue .bcgh-card-head { background: linear-gradient(100deg, rgba(37,137,255,.84), rgba(13,20,40,.9), rgba(177,53,255,.48)); }
.bcgh-accent-red .bcgh-card-head { background: linear-gradient(100deg, rgba(255,38,56,.88), rgba(13,20,40,.88), rgba(37,137,255,.42)); }
.bcgh-accent-purple .bcgh-card-head { background: linear-gradient(100deg, rgba(177,53,255,.84), rgba(13,20,40,.9), rgba(37,137,255,.42)); }

.bcgh-eyebrow { margin: 0 0 5px; text-transform: uppercase; letter-spacing: .1em; font-size: 12px; color: rgba(255,255,255,.84); font-weight: 950; }
.bcgh-card-head h2 { margin: 0; text-transform: uppercase; font-size: clamp(24px, 5vw, 44px); line-height: 1; text-shadow: 0 2px 0 rgba(0,0,0,.36); }
.bcgh-card-head p:last-child { margin: 7px 0 0; color: rgba(255,255,255,.86); font-weight: 800; }

.bcgh-day-meter {
  flex: 0 0 auto;
  width: 94px;
  height: 94px;
  border-radius: 22px;
  display: grid;
  place-content: center;
  text-align: center;
  background: rgba(0,0,0,.26);
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: inset 0 0 22px rgba(255,255,255,.06);
}
.bcgh-day-meter strong { font-size: 28px; line-height: 1; }
.bcgh-day-meter span { color: var(--bcgh-muted); font-size: 12px; text-transform: uppercase; font-weight: 900; }

.bcgh-card-body { padding: clamp(14px, 2.4vw, 20px); display: grid; gap: 14px; }
.bcgh-section { padding: 14px; border-radius: 16px; background: var(--bcgh-panel-2); border: 1px solid rgba(255,255,255,.1); }
.bcgh-section h3, .bcgh-controls h3, .bcgh-side-card h3 { margin: 0 0 10px; color: #fff; text-transform: uppercase; font-size: 14px; letter-spacing: .06em; }

.bcgh-check {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 10px;
  align-items: start;
  margin: 9px 0;
  color: var(--bcgh-text);
  padding: 8px;
  border-radius: 12px;
  transition: background .15s ease, opacity .15s ease;
}
.bcgh-check:hover { background: rgba(255,255,255,.055); }
.bcgh-check.is-checked { background: rgba(55,232,140,.09); color: rgba(255,255,255,.86); }
.bcgh-check.is-checked span { text-decoration: line-through; text-decoration-thickness: 2px; text-decoration-color: rgba(55,232,140,.8); }
.bcgh-check input { width: 22px; height: 22px; accent-color: var(--bcgh-green); cursor: pointer; }

.bcgh-controls { display: grid; gap: 12px; }
.bcgh-control-block { padding: 14px; border-radius: 16px; background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.1); }
.bcgh-feel { display: flex; gap: 8px; flex-wrap: wrap; }
.bcgh-feel label { padding: 10px 12px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid var(--bcgh-border); cursor: pointer; font-weight: 900; }
.bcgh-feel label.is-selected { background: linear-gradient(135deg, rgba(37,137,255,.42), rgba(177,53,255,.36)); border-color: rgba(255,255,255,.42); }
.bcgh-feel input { margin-right: 6px; }

.bcgh-notes {
  width: 100%;
  min-height: 118px;
  resize: vertical;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(0,0,0,.34);
  color: #fff;
  padding: 12px;
}
.bcgh-notes:focus { outline: 2px solid rgba(37,137,255,.78); outline-offset: 2px; }

.bcgh-footer-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

.bcgh-side { display: grid; gap: 16px; position: sticky; top: 24px; }
.bcgh-side-card { padding: 16px; }
.bcgh-highlight-card { background: linear-gradient(145deg, rgba(255,38,56,.14), rgba(37,137,255,.12), rgba(177,53,255,.14)); }
.bcgh-tip-list { margin: 0; padding-left: 20px; color: var(--bcgh-muted); }
.bcgh-tip-list li { margin: 8px 0; }

.bcgh-milestones { display: grid; gap: 8px; }
.bcgh-milestone {
  display: grid;
  grid-template-columns: 30px 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 10px;
  border-radius: 14px;
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.09);
}
.bcgh-milestone strong { font-size: 13px; }
.bcgh-milestone small { color: var(--bcgh-muted); font-weight: 900; }
.bcgh-milestone.is-unlocked { background: rgba(55,232,140,.1); border-color: rgba(55,232,140,.28); }

.bcgh-danger-zone { border-color: rgba(255,38,56,.24); }
.bcgh-reset { background: rgba(255,255,255,.08) !important; }
.bcgh-disclaimer p { color: var(--bcgh-muted); margin: 0; }
.bcgh-logged-out { max-width: 900px; }

@media (max-width: 1060px) {
  .bcgh-main-grid { grid-template-columns: 1fr; }
  .bcgh-side { position: static; grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .bcgh-stats { grid-template-columns: repeat(2, 1fr); }
  .bcgh-side { grid-template-columns: 1fr; }
  .bcgh-card-head { align-items: flex-start; }
}

@media (max-width: 600px) {
  .bcgh-wrap { border-radius: 16px; }
  .bcgh-wrap::after { border-radius: 16px; }
  .bcgh-section-title { align-items: start; flex-direction: column; }
  .bcgh-day-pill { min-height: 62px; }
  .bcgh-card-head { flex-direction: column; }
  .bcgh-day-meter { width: 100%; height: auto; min-height: 76px; border-radius: 16px; }
  .bcgh-footer-actions .bcgh-btn, .bcgh-hero-actions .bcgh-btn { width: 100%; }
  .bcgh-stat { padding: 12px; }
  .bcgh-stat strong { font-size: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .bcgh-btn, .bcgh-day-pill, .bcgh-progress-bar, .bcgh-mini-progress span { transition: none; }
}

/* v0.3.0 performance tuning */
.bcgh-status-panel,
.bcgh-days-card,
.bcgh-card,
.bcgh-side-card {
  overflow-wrap: anywhere;
}

@supports not ((backdrop-filter: blur(10px)) or (-webkit-backdrop-filter: blur(10px))) {
  .bcgh-status-panel,
  .bcgh-days-card,
  .bcgh-card,
  .bcgh-side-card {
    background: var(--bcgh-panel-solid);
  }
}

@media (max-width: 600px) {
  .bcgh-status-panel,
  .bcgh-days-card,
  .bcgh-card,
  .bcgh-side-card {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .bcgh-wrap::before {
    opacity: .55;
  }

  .bcgh-hero::before {
    filter: blur(8px);
  }
}

/* v0.4.0 visual upgrade layer */
.bcgh-wrap {
  --bcgh-gold: #ffd166;
  isolation: isolate;
}

.bcgh-hero {
  text-align: left;
}

.bcgh-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(210px, 280px);
  gap: clamp(18px, 4vw, 34px);
  align-items: center;
  position: relative;
  z-index: 1;
}

.bcgh-hero-copy {
  text-align: left;
}

.bcgh-hero-copy h1 {
  max-width: 900px;
}

.bcgh-poster-badge {
  position: relative;
  display: grid;
  place-items: center;
  gap: 6px;
  min-height: 240px;
  padding: 22px;
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,.22);
  background:
    radial-gradient(circle at 50% 0%, rgba(255,255,255,.22), transparent 28%),
    linear-gradient(160deg, rgba(255,38,56,.28), rgba(37,137,255,.16), rgba(177,53,255,.28)),
    rgba(0,0,0,.26);
  box-shadow: 0 24px 60px rgba(0,0,0,.36), inset 0 0 0 1px rgba(255,255,255,.08);
  text-align: center;
  overflow: hidden;
}

.bcgh-poster-badge::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px dashed rgba(255,255,255,.18);
  border-radius: 22px;
  pointer-events: none;
}

.bcgh-poster-badge::after {
  content: "BAD COMMS";
  position: absolute;
  right: -32px;
  bottom: 36px;
  transform: rotate(-90deg);
  color: rgba(255,255,255,.16);
  font-weight: 950;
  letter-spacing: .18em;
  font-size: 13px;
}

.bcgh-poster-badge span {
  font-size: clamp(66px, 10vw, 104px);
  line-height: .82;
  font-weight: 1000;
  letter-spacing: -.07em;
  text-shadow: 0 0 22px rgba(37,137,255,.8), 0 4px 0 rgba(0,0,0,.5);
}

.bcgh-poster-badge strong {
  text-transform: uppercase;
  font-size: 20px;
  letter-spacing: .08em;
}

.bcgh-poster-badge em {
  color: var(--bcgh-muted);
  font-style: normal;
  font-weight: 850;
  font-size: 12px;
  text-transform: uppercase;
}

.bcgh-soundwave {
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 4px;
  height: 42px;
  margin-top: 8px;
}

.bcgh-soundwave i {
  display: block;
  width: 5px;
  height: calc(10px + ((var(--i) % 6) * 5px));
  border-radius: 999px;
  background: linear-gradient(180deg, var(--bcgh-blue), var(--bcgh-red));
  box-shadow: 0 0 12px rgba(37,137,255,.6);
  animation: bcgh-wave 1.35s ease-in-out infinite alternate;
  animation-delay: calc(var(--i) * -70ms);
}

.bcgh-weeks {
  display: grid;
  gap: 12px;
}

.bcgh-week {
  border: 1px solid rgba(255,255,255,.09);
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.02));
  border-radius: 18px;
  padding: 10px;
}

.bcgh-week-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 2px 10px;
  text-transform: uppercase;
  font-weight: 950;
  letter-spacing: .06em;
}

.bcgh-week-label span {
  color: #fff;
  font-size: 12px;
}

.bcgh-week-label em {
  color: var(--bcgh-muted);
  font-style: normal;
  font-size: 11px;
}

.bcgh-days-row {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.bcgh-day-pill {
  min-height: 76px;
  position: relative;
  overflow: hidden;
}

.bcgh-day-pill::after {
  content: "";
  position: absolute;
  inset: auto 8px 7px 8px;
  height: 2px;
  border-radius: 999px;
  background: rgba(255,255,255,.16);
}

.bcgh-day-pill.is-active::after,
.bcgh-day-pill.is-complete::after,
.bcgh-day-pill.is-partial::after {
  background: linear-gradient(90deg, var(--bcgh-red), var(--bcgh-blue), var(--bcgh-purple));
  box-shadow: 0 0 10px rgba(37,137,255,.6);
}

.bcgh-day-icon {
  font-size: 16px;
  line-height: 1;
}

.bcgh-day-number {
  font-size: 21px;
}

.bcgh-meta-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.bcgh-meta-chips span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,.28);
  border: 1px solid rgba(255,255,255,.18);
  color: rgba(255,255,255,.88);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.bcgh-day-meter {
  width: 112px;
  height: 112px;
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(5,5,10,.94) 0 58%, transparent 59%),
    conic-gradient(var(--bcgh-green) calc(var(--bcgh-day-pct, 0) * 1%), rgba(255,255,255,.14) 0);
  border: 1px solid rgba(255,255,255,.26);
  box-shadow: 0 0 24px rgba(55,232,140,.12), inset 0 0 24px rgba(255,255,255,.05);
}

.bcgh-day-meter span {
  font-size: 11px;
}

.bcgh-section {
  position: relative;
  overflow: hidden;
}

.bcgh-section::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, var(--bcgh-red), var(--bcgh-blue), var(--bcgh-purple));
  opacity: .7;
}

.bcgh-check input {
  border-radius: 8px;
}

.bcgh-feel label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.bcgh-notes-block {
  background:
    linear-gradient(135deg, rgba(37,137,255,.08), rgba(177,53,255,.06)),
    rgba(255,255,255,.045);
}

.bcgh-orb {
  width: 150px;
  height: 150px;
  border-radius: 999px;
  margin: 8px auto 14px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle, rgba(9,12,25,.98) 0 55%, transparent 56%),
    conic-gradient(var(--bcgh-blue), var(--bcgh-purple), var(--bcgh-red) calc(var(--bcgh-orb-pct, 0) * 1%), rgba(255,255,255,.12) 0);
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 0 34px rgba(37,137,255,.22), inset 0 0 18px rgba(255,255,255,.05);
}

.bcgh-orb span {
  font-size: 34px;
  font-weight: 1000;
  text-shadow: 0 0 16px rgba(37,137,255,.7);
}

.bcgh-milestone {
  position: relative;
  overflow: hidden;
}

.bcgh-milestone::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 2px;
  background: rgba(255,255,255,.14);
}

.bcgh-milestone.is-unlocked::after {
  background: linear-gradient(90deg, var(--bcgh-green), var(--bcgh-blue));
}

.bcgh-burst {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 30;
  overflow: hidden;
}

.bcgh-burst span {
  position: absolute;
  left: 50%;
  top: 42%;
  width: 9px;
  height: 9px;
  border-radius: 3px;
  background: linear-gradient(135deg, var(--bcgh-gold), var(--bcgh-red), var(--bcgh-blue));
  transform: rotate(calc(var(--i) * 22deg)) translate3d(0, 0, 0);
  animation: bcgh-burst .85s ease-out forwards;
}

@keyframes bcgh-wave {
  0% { transform: scaleY(.6); opacity: .55; }
  100% { transform: scaleY(1.35); opacity: 1; }
}

@keyframes bcgh-burst {
  0% { opacity: 1; transform: rotate(calc(var(--i) * 22deg)) translate3d(0, 0, 0) scale(1); }
  100% { opacity: 0; transform: rotate(calc(var(--i) * 22deg)) translate3d(0, -190px, 0) scale(.35); }
}

@media (max-width: 1060px) {
  .bcgh-hero-grid { grid-template-columns: 1fr; }
  .bcgh-poster-badge { min-height: 190px; }
}

@media (max-width: 860px) {
  .bcgh-days-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .bcgh-hero, .bcgh-hero-copy { text-align: center; }
  .bcgh-poster-badge { min-height: 160px; border-radius: 20px; }
  .bcgh-poster-badge span { font-size: 72px; }
  .bcgh-day-pill { min-height: 72px; }
  .bcgh-week-label { align-items: start; flex-direction: column; }
  .bcgh-meta-chips { justify-content: center; }
  .bcgh-day-meter { width: 100%; border-radius: 18px; background: rgba(0,0,0,.26); }
  .bcgh-orb { width: 122px; height: 122px; }
  .bcgh-orb span { font-size: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  .bcgh-soundwave i, .bcgh-burst span { animation: none; }
}

/* v0.5.0 landing-page visual upgrade */
.bcgh-wrap.bcgh-landing-wrap,
.bcgh-logged-out.bcgh-wrap {
  max-width: 1320px;
}

.bcgh-landing {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  gap: clamp(22px, 3.2vw, 46px);
  align-items: center;
  min-height: clamp(520px, 56vw, 680px);
  padding: clamp(24px, 4vw, 46px);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 24px;
  overflow: hidden;
  background:
    radial-gradient(circle at 7% 6%, rgba(37,137,255,.28), transparent 28%),
    radial-gradient(circle at 96% 15%, rgba(255,38,86,.28), transparent 32%),
    radial-gradient(circle at 54% 104%, rgba(177,53,255,.22), transparent 30%),
    linear-gradient(104deg, #03050d 0%, #05050c 39%, #090613 63%, #11050a 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.055),
    inset 0 0 70px rgba(37,137,255,.06),
    0 24px 70px rgba(0,0,0,.38);
}

.bcgh-landing::before,
.bcgh-landing::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.bcgh-landing::before {
  background:
    radial-gradient(circle at 72% 16%, rgba(255,38,86,.16), transparent 20%),
    radial-gradient(circle at 18% 76%, rgba(37,137,255,.14), transparent 24%),
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px);
  background-size: auto, auto, 44px 44px, 44px 44px;
  opacity: .78;
  mask-image: linear-gradient(90deg, black, black 58%, rgba(0,0,0,.82), transparent 112%);
}

.bcgh-landing::after {
  border-radius: 24px;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.08),
    inset 0 0 42px rgba(255,38,86,.08),
    inset 0 0 46px rgba(37,137,255,.08);
}

.bcgh-landing-content,
.bcgh-landing-visual {
  position: relative;
  z-index: 2;
}

.bcgh-landing-content {
  max-width: 560px;
  min-width: 0;
  container-type: inline-size;
}

.bcgh-glow-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: auto;
  padding: 12px 22px;
  margin-bottom: clamp(24px, 4vw, 42px);
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  background:
    linear-gradient(90deg, rgba(37,137,255,.26), rgba(177,53,255,.13), rgba(255,38,86,.18)),
    rgba(0,0,0,.34);
  box-shadow:
    0 0 0 1px rgba(37,137,255,.15),
    0 0 22px rgba(37,137,255,.20),
    inset 0 0 18px rgba(255,255,255,.035);
}

.bcgh-glow-pill .bcgh-bolt {
  margin: 0;
  font-size: 20px;
  line-height: 1;
  color: #fff;
  filter: drop-shadow(0 0 8px rgba(37,137,255,.9));
}

.bcgh-glow-pill .bcgh-bolt-red {
  filter: drop-shadow(0 0 8px rgba(255,38,56,.9));
}

.bcgh-glow-pill .bcgh-kicker {
  color: rgba(255,255,255,.86);
  font-size: clamp(11px, 1vw, 15px);
  letter-spacing: .16em;
}

.bcgh-landing-title {
  display: grid;
  width: 100%;
  max-width: 100%;
  gap: clamp(4px, .85vw, 10px);
  margin: 0 0 clamp(20px, 2.8vw, 30px);
  text-transform: uppercase;
  font-family: "Arial Black", Impact, Haettenschweiler, system-ui, sans-serif;
  font-style: italic;
  /* Fallback uses viewport width; the cqw line below sizes to the actual text column. */
  font-size: clamp(34px, 10.8vw, 78px);
  font-size: clamp(34px, 14cqw, 82px);
  line-height: .84;
  letter-spacing: -.055em;
  transform: skew(-3deg);
}

.bcgh-landing-title span {
  display: block;
  width: max-content;
  max-width: 100%;
  padding-right: .08em;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: keep-all;
  -webkit-text-stroke: 1.4px rgba(4,10,24,.72);
  paint-order: stroke fill;
}

.bcgh-landing-title span:first-child {
  color: #9edcff;
  text-shadow:
    0 1px 0 rgba(255,255,255,.48),
    0 0 10px rgba(60,169,255,.48),
    0 0 22px rgba(37,137,255,.24),
    4px 4px 0 rgba(4,10,24,.72);
}

.bcgh-landing-title span:last-child {
  color: #ff8f96;
  text-shadow:
    0 1px 0 rgba(255,255,255,.38),
    0 0 10px rgba(255,82,108,.42),
    0 0 22px rgba(255,38,86,.20),
    4px 4px 0 rgba(18,6,18,.72);
}

.bcgh-landing-copy {
  max-width: 560px;
  margin: 0 0 26px;
  color: rgba(237,241,255,.82);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.42;
}

.bcgh-landing-actions {
  justify-content: flex-start;
  gap: 16px;
  margin-bottom: 22px;
}

.bcgh-landing-actions .bcgh-btn {
  min-height: 62px;
  padding: 16px 26px;
  border-radius: 18px;
  font-size: clamp(15px, 1.5vw, 20px);
  letter-spacing: .01em;
}

.bcgh-btn-primary,
.bcgh-btn-primary:visited {
  background: linear-gradient(135deg, #ff3146 0%, #f7377c 44%, #ac36ff 100%);
  border-color: rgba(255,255,255,.28);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.08),
    0 0 22px rgba(255,38,86,.35),
    0 0 34px rgba(177,53,255,.28),
    inset 0 0 12px rgba(255,255,255,.14);
}

.bcgh-landing-actions .bcgh-btn-secondary,
.bcgh-landing-actions .bcgh-btn-secondary:visited {
  background: rgba(5,7,17,.72);
  border-color: rgba(81,168,255,.76);
  box-shadow:
    0 0 0 1px rgba(177,53,255,.25),
    0 0 18px rgba(37,137,255,.20),
    inset 0 0 20px rgba(255,255,255,.035);
}

.bcgh-privacy-line {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 28px;
  color: rgba(237,241,255,.75);
  font-size: 16px;
}

.bcgh-privacy-line span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(177,53,255,.8);
  border-radius: 12px;
  color: #fff;
  box-shadow: 0 0 14px rgba(177,53,255,.25);
}

.bcgh-landing-metrics {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}

.bcgh-landing-stat {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas: "icon title" "icon copy";
  align-items: center;
  column-gap: 12px;
  min-width: 150px;
}

.bcgh-landing-stat:not(:last-child) {
  padding-right: 22px;
  border-right: 1px solid rgba(255,255,255,.18);
}

.bcgh-landing-stat span {
  grid-area: icon;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  border: 1px solid rgba(37,137,255,.7);
  background: rgba(0,0,0,.24);
  box-shadow: 0 0 16px rgba(37,137,255,.28), inset 0 0 12px rgba(37,137,255,.10);
  font-size: 22px;
}

.bcgh-landing-stat:nth-child(2) span {
  border-color: rgba(177,53,255,.75);
  box-shadow: 0 0 16px rgba(177,53,255,.28), inset 0 0 12px rgba(177,53,255,.10);
}

.bcgh-landing-stat:nth-child(3) span {
  border-color: rgba(255,38,86,.75);
  box-shadow: 0 0 16px rgba(255,38,86,.24), inset 0 0 12px rgba(255,38,86,.10);
}

.bcgh-landing-stat strong {
  grid-area: title;
  color: #fff;
  font-size: 14px;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.bcgh-landing-stat em {
  grid-area: copy;
  color: rgba(237,241,255,.72);
  font-style: normal;
  font-size: 13px;
  line-height: 1.2;
}

.bcgh-landing-visual {
  align-self: stretch;
  min-height: 480px;
  border-radius: 24px;
  background-image: url('bcgh-hero-art.webp');
  background-repeat: no-repeat;
  background-position: center right;
  background-size: contain;
  filter: drop-shadow(0 0 32px rgba(37,137,255,.16)) drop-shadow(0 0 32px rgba(255,38,86,.12));
}

.bcgh-landing-visual::before,
.bcgh-landing-visual::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.bcgh-landing-visual::before {
  inset: 8% 0 8% 10%;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(37,137,255,.16), transparent 60%);
  filter: blur(28px);
}

.bcgh-landing-visual::after {
  right: 2%;
  top: 3%;
  width: 78%;
  height: 90%;
  border-radius: 28px;
  background: linear-gradient(90deg, rgba(5,5,10,.32), transparent 20%, rgba(255,38,86,.05));
}

.bcgh-landing-member {
  margin-bottom: 18px;
}

.bcgh-landing-loading {
  min-height: 420px;
}

.bcgh-landing-loading .bcgh-landing-title {
  font-size: clamp(34px, 10.8vw, 78px);
  font-size: clamp(34px, 14cqw, 82px);
}

@media (max-width: 1120px) {
  .bcgh-landing {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .bcgh-landing-content {
    max-width: 760px;
  }

  .bcgh-landing-visual {
    min-height: 360px;
    background-position: center;
  }
}

@media (max-width: 760px) {
  .bcgh-wrap {
    padding: 10px;
  }

  .bcgh-landing {
    padding: 22px;
    border-radius: 18px;
  }

  .bcgh-landing::after {
    border-radius: 18px;
  }

  .bcgh-glow-pill {
    padding: 10px 14px;
    gap: 8px;
    margin-bottom: 24px;
  }

  .bcgh-glow-pill .bcgh-kicker {
    font-size: 10px;
    letter-spacing: .11em;
  }

  .bcgh-landing-title {
    font-size: clamp(32px, 11vw, 64px);
    font-size: clamp(32px, 14cqw, 64px);
  }

  .bcgh-landing-copy {
    font-size: 16px;
  }

  .bcgh-landing-actions,
  .bcgh-landing-metrics {
    flex-direction: column;
    align-items: stretch;
  }

  .bcgh-landing-actions .bcgh-btn {
    width: 100%;
    min-height: 56px;
  }

  .bcgh-privacy-line {
    align-items: flex-start;
    font-size: 14px;
  }

  .bcgh-landing-stat {
    width: 100%;
    min-width: 0;
    padding: 12px;
    border: 1px solid rgba(255,255,255,.12) !important;
    border-radius: 16px;
    background: rgba(255,255,255,.045);
  }

  .bcgh-landing-visual {
    min-height: 250px;
    margin: -10px -10px 0;
    opacity: .96;
  }
}

@media (max-width: 430px) {
  .bcgh-landing-title {
    font-size: clamp(30px, 10.5vw, 48px);
    font-size: clamp(30px, 13.5cqw, 48px);
    letter-spacing: -.06em;
  }

  .bcgh-landing-visual {
    min-height: 205px;
  }
}

.bcgh-inline-alert {
  margin: 0 0 18px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(7,10,21,.82);
  color: #eef2ff;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.04);
}

.bcgh-inline-alert.is-error {
  border-color: rgba(255,82,108,.58);
  box-shadow: 0 0 18px rgba(255,38,86,.14), inset 0 0 0 1px rgba(255,255,255,.04);
}

.bcgh-inline-alert.is-success {
  border-color: rgba(80,224,160,.48);
  box-shadow: 0 0 18px rgba(80,224,160,.14), inset 0 0 0 1px rgba(255,255,255,.04);
}

.bcgh-auth-card {
  display: grid;
  gap: 14px;
  max-width: 560px;
  padding: 24px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(8,11,25,.92), rgba(5,7,18,.82));
  box-shadow: 0 22px 48px rgba(0,0,0,.26), inset 0 0 0 1px rgba(255,255,255,.03);
}

.bcgh-auth-field {
  display: grid;
  gap: 8px;
}

.bcgh-auth-field span {
  font-size: 14px;
  font-weight: 700;
  color: rgba(237,241,255,.88);
  letter-spacing: .02em;
}

.bcgh-auth-input {
  width: 100%;
  min-height: 52px;
  padding: 13px 15px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(2,5,16,.92);
  color: #fff;
  font: inherit;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.02);
}

.bcgh-auth-input:focus {
  outline: none;
  border-color: rgba(87,181,255,.88);
  box-shadow: 0 0 0 3px rgba(37,137,255,.18), inset 0 0 0 1px rgba(255,255,255,.02);
}

.bcgh-auth-actions {
  margin-bottom: 0;
}

.bcgh-auth-note {
  margin: 0;
  color: rgba(237,241,255,.7);
}

/* v0.5.3 embedded auth + mobile experience polish */
.bcgh-wrap button,
.bcgh-wrap input,
.bcgh-wrap textarea {
  font: inherit;
}

.bcgh-auth-remember {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(237,241,255,.78);
  font-size: 14px;
  line-height: 1.35;
}

.bcgh-auth-remember input {
  width: 18px;
  height: 18px;
  accent-color: var(--bcgh-blue);
}

@media (hover: none) {
  .bcgh-btn:hover,
  .bcgh-day-pill:hover {
    transform: none;
  }
}

@media (max-width: 760px) {
  .bcgh-wrap,
  .bcgh-wrap.bcgh-landing-wrap,
  .bcgh-logged-out.bcgh-wrap {
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .bcgh-landing-content {
    width: 100%;
    max-width: 100%;
  }

  .bcgh-landing-title {
    /* Keep every large title line inside the actual phone-width column. */
    font-size: clamp(30px, 8.4vw, 60px);
    font-size: clamp(30px, 12.4cqw, 60px);
    line-height: .86;
  }

  .bcgh-landing-title span {
    max-width: calc(100% - 4px);
  }

  .bcgh-auth-card {
    width: 100%;
    max-width: 100%;
    padding: 18px;
    border-radius: 18px;
  }

  .bcgh-auth-input {
    min-height: 50px;
    font-size: 16px; /* prevents iOS form zoom */
  }
}

@media (max-width: 600px) {
  .bcgh-wrap {
    padding: 8px;
    border-radius: 18px;
  }

  .bcgh-landing {
    gap: 16px;
    padding: 18px 14px;
  }

  .bcgh-glow-pill {
    width: 100%;
    justify-content: center;
    white-space: nowrap;
  }

  .bcgh-landing-copy {
    margin-bottom: 18px;
    font-size: 15.5px;
  }

  .bcgh-landing-actions {
    gap: 10px;
    margin-bottom: 16px;
  }

  .bcgh-landing-actions .bcgh-btn {
    min-height: 52px;
    padding: 13px 16px;
    border-radius: 16px;
  }

  .bcgh-privacy-line {
    margin-bottom: 18px;
  }

  .bcgh-landing-metrics {
    gap: 10px;
  }

  .bcgh-landing-visual {
    min-height: 180px;
    margin: -4px -4px 0;
    filter: drop-shadow(0 0 18px rgba(37,137,255,.12));
  }

  .bcgh-status-panel,
  .bcgh-days-card,
  .bcgh-side-card {
    padding: 12px;
    border-radius: 16px;
  }

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

  .bcgh-stat {
    padding: 10px;
    border-radius: 14px;
  }

  .bcgh-stat strong {
    font-size: 22px;
  }

  .bcgh-stat span {
    font-size: 10px;
    letter-spacing: .04em;
  }

  .bcgh-section-title h2 {
    font-size: 20px;
  }

  .bcgh-days-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }

  .bcgh-day-pill {
    min-height: 66px;
    padding: 7px 5px;
    border-radius: 13px;
  }

  .bcgh-day-number {
    font-size: 19px;
  }

  .bcgh-day-focus,
  .bcgh-day-status {
    font-size: 10px;
  }

  .bcgh-card-head {
    padding: 16px;
  }

  .bcgh-card-head h2 {
    font-size: clamp(22px, 7vw, 32px);
    line-height: 1.02;
  }

  .bcgh-card-body {
    padding: 12px;
  }

  .bcgh-check {
    grid-template-columns: 28px 1fr;
    gap: 8px;
    padding: 10px 8px;
  }

  .bcgh-check input {
    width: 24px;
    height: 24px;
  }

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

  .bcgh-feel label {
    justify-content: center;
    border-radius: 14px;
  }

  .bcgh-footer-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .bcgh-footer-actions .bcgh-btn,
  .bcgh-auth-actions .bcgh-btn {
    width: 100%;
  }
}

@media (max-width: 380px) {
  .bcgh-landing-title {
    font-size: clamp(28px, 8vw, 42px);
    font-size: clamp(28px, 11.8cqw, 42px);
    letter-spacing: -.065em;
  }

  .bcgh-glow-pill .bcgh-bolt {
    display: none;
  }

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

  .bcgh-feel {
    grid-template-columns: 1fr;
  }
}

/* v0.5.4 per-set checkbox tracking + mobile polish */
.bcgh-check-group {
  margin: 10px 0;
  padding: 6px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  background: rgba(0,0,0,.12);
}

.bcgh-check-group.is-checked {
  border-color: rgba(55,232,140,.24);
  background: rgba(55,232,140,.045);
}

.bcgh-check-parent {
  margin: 0;
}

.bcgh-set-checks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(82px, 1fr));
  gap: 8px;
  padding: 0 8px 8px 48px;
}

.bcgh-set-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 12px;
  background: rgba(255,255,255,.055);
  color: rgba(237,241,255,.86);
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  user-select: none;
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}

.bcgh-set-check:hover {
  border-color: rgba(255,255,255,.28);
  background: rgba(255,255,255,.085);
}

.bcgh-set-check.is-checked {
  border-color: rgba(55,232,140,.42);
  background: rgba(55,232,140,.13);
  color: #fff;
}

.bcgh-set-check input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--bcgh-green);
  cursor: pointer;
}

@media (max-width: 600px) {
  .bcgh-section {
    padding: 12px 10px;
  }

  .bcgh-check-group {
    padding: 5px;
    border-radius: 15px;
  }

  .bcgh-set-checks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    padding: 0 6px 8px 42px;
  }

  .bcgh-set-check {
    min-height: 44px;
    padding: 9px 8px;
    font-size: 12px;
    border-radius: 11px;
  }

  .bcgh-set-check input {
    width: 20px;
    height: 20px;
  }
}

@media (max-width: 420px) {
  .bcgh-set-checks {
    padding-left: 0;
  }
}

/* v0.5.5 printable physical tracker download */
.bcgh-btn-download,
.bcgh-btn-download:visited {
  background: linear-gradient(135deg, #117dff 0%, #29d4ff 48%, #37e88c 100%);
  border-color: rgba(143,229,255,.72);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.08),
    0 0 20px rgba(37,137,255,.26),
    0 0 24px rgba(55,232,140,.16),
    inset 0 0 14px rgba(255,255,255,.16);
}

.bcgh-download-card {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  grid-template-areas:
    "preview copy"
    "preview action";
  gap: 12px 16px;
  align-items: center;
  max-width: 620px;
  margin-top: 22px;
  padding: 14px;
  border: 1px solid rgba(143,229,255,.24);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(37,137,255,.13), rgba(55,232,140,.07), rgba(255,38,86,.08)),
    rgba(5,7,18,.64);
  box-shadow: 0 16px 36px rgba(0,0,0,.22), inset 0 0 0 1px rgba(255,255,255,.035);
}

.bcgh-download-card.is-compact {
  grid-template-columns: 92px minmax(0, 1fr);
  max-width: 560px;
  margin-top: 16px;
  padding: 12px;
}

.bcgh-download-preview {
  grid-area: preview;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(0,0,0,.22);
  box-shadow: 0 0 18px rgba(37,137,255,.12);
}

.bcgh-download-preview img,
.bcgh-side-download-img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.bcgh-download-copy {
  grid-area: copy;
  display: grid;
  gap: 4px;
  color: rgba(237,241,255,.82);
}

.bcgh-download-copy strong {
  color: #fff;
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: .035em;
}

.bcgh-download-copy span {
  font-size: 14px;
  line-height: 1.35;
}

.bcgh-download-card .bcgh-btn-download {
  grid-area: action;
  justify-self: start;
  min-height: 46px;
  padding: 11px 16px;
  border-radius: 14px;
  font-size: 14px;
}

.bcgh-side-download {
  display: grid;
  gap: 12px;
  border-color: rgba(143,229,255,.24);
  background:
    linear-gradient(145deg, rgba(37,137,255,.13), rgba(55,232,140,.07), rgba(177,53,255,.08)),
    var(--bcgh-panel);
}

.bcgh-side-download-img {
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 0 22px rgba(37,137,255,.12);
}

.bcgh-side-download p {
  margin: 0;
  color: var(--bcgh-muted);
  line-height: 1.4;
}

.bcgh-side-download .bcgh-btn-download {
  width: 100%;
  min-height: 48px;
  border-radius: 14px;
  text-align: center;
}

@media (max-width: 760px) {
  .bcgh-download-card,
  .bcgh-download-card.is-compact {
    grid-template-columns: 1fr;
    grid-template-areas:
      "preview"
      "copy"
      "action";
    gap: 12px;
    width: 100%;
    max-width: 100%;
    margin-top: 16px;
    padding: 12px;
  }

  .bcgh-download-preview img {
    aspect-ratio: 16 / 9;
  }

  .bcgh-download-card .bcgh-btn-download {
    width: 100%;
    min-height: 52px;
    justify-self: stretch;
  }
}

@media (max-width: 420px) {
  .bcgh-download-card {
    border-radius: 16px;
  }

  .bcgh-download-preview {
    border-radius: 12px;
  }
}

/* v0.5.7 design polish: SVG chrome icons + custom confirm dialog */
.bcgh-icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: -0.15em;
  flex: none;
}

/* Live-updating counters (stats, day meter, orb, milestones) get tabular
   figures so digit widths stay fixed as numbers change -- without this,
   e.g. "9/30" -> "10/30" shifts width and causes a small layout jitter. */
.bcgh-stat strong,
.bcgh-day-number,
.bcgh-day-status,
.bcgh-day-meter strong,
.bcgh-orb span,
.bcgh-landing-stat strong,
.bcgh-milestone small {
  font-variant-numeric: tabular-nums;
}

.bcgh-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(3,4,10,.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.bcgh-modal {
  width: 100%;
  max-width: 420px;
  padding: 22px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.16);
  background: linear-gradient(180deg, rgba(10,14,28,.98), rgba(6,8,18,.98));
  box-shadow: 0 30px 70px rgba(0,0,0,.5), inset 0 0 0 1px rgba(255,255,255,.04);
  color: #fff;
}

.bcgh-modal h3 {
  margin: 0 0 10px;
  text-transform: uppercase;
  font-size: 16px;
  letter-spacing: .04em;
}

.bcgh-modal p {
  margin: 0 0 18px;
  color: var(--bcgh-muted);
  line-height: 1.45;
}

.bcgh-modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

@media (max-width: 480px) {
  .bcgh-modal-actions {
    flex-direction: column-reverse;
  }

  .bcgh-modal-actions .bcgh-btn {
    width: 100%;
  }
}
