/* /connect/views/dashboard.css — Member Dashboard v4 ("Vibrant Community")
 * Scoped layer loaded AFTER views.css so it wins the cascade.
 * Class prefix: dashx-  (keeps clear of the legacy .dash- block).
 *
 * Colour policy: every thematic colour comes from a --bcc-* token.
 * The only literal colours here are neutral on-gradient values, all
 * listed in the header comment of the redesign PR:
 *   #fff                       — text/icons sitting on the hero + badge gradients
 *   rgba(255,255,255,.xx)      — glass highlights on the hero gradient
 *   rgba(0,0,0,.xx)            — bottom scrim / neutral elevation shading
 * No brand hex values appear in this file.
 *
 * Breakpoints: ≤480 | 481–767 | 768–1024 | 1025–1439 (base) | ≥1440
 * ================================================================ */

/* Hidden attribute must beat the grid/flex display rules below. */
.dashx-wrap [hidden] { display: none !important; }

.dashx-wrap {
  display:  flex;
  flex-direction: column;
  gap:      var(--bcc-s8);
  width:    100%;
}

.dashx-empty-state { padding: var(--bcc-s10) 0; }

/* ================================================================
   1. HERO — richer gradient with layered glow + rings
=============================================================== */
.dashx-hero-card {
  position:      relative;
  overflow:      hidden;
  border-radius: var(--bcc-r-xl);
  border:        1px solid var(--bcc-border-strong);
  box-shadow:    var(--bcc-shadow-3), var(--bcc-shadow-glow);
  padding:       var(--bcc-s12) var(--bcc-s10);
  color:         #fff; /* on-colour for the primary gradient, mirrors .bcc-btn-primary */
  isolation:     isolate;
}
/* Glass + scrim overlay so the serif greeting keeps strong contrast. */
.dashx-hero-card::after {
  content:    '';
  position:   absolute;
  inset:      0;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(255,255,255,.20) 0%, rgba(255,255,255,0) 55%),
    linear-gradient(180deg, rgba(0,0,0,0) 42%, rgba(0,0,0,.26) 100%);
  pointer-events: none;
  z-index:    0;
}
.dashx-hero-glow {
  position:      absolute;
  top:           -40%;
  right:         -10%;
  width:         360px;
  height:        360px;
  border-radius: 50%;
  background:    radial-gradient(circle, var(--bcc-accent-soft), rgba(255,255,255,0) 70%);
  pointer-events: none;
  z-index:       0;
}
/* Secondary teal glow anchors the bottom-left of the gradient. */
.dashx-hero-glow-2 {
  top:      auto;
  right:    auto;
  bottom:   -55%;
  left:     -12%;
  width:    320px;
  height:   320px;
  background: radial-gradient(circle, var(--bcc-secondary-soft), rgba(255,255,255,0) 70%);
  opacity:  .9;
}
/* Concentric rings echo the "community" motif. */
.dashx-hero-rings {
  position:      absolute;
  top:           -120px;
  right:         -100px;
  width:         380px;
  height:        380px;
  border-radius: 50%;
  border:        1px solid rgba(255,255,255,.14);
  pointer-events: none;
  z-index:       0;
}
.dashx-hero-rings::before {
  content:       '';
  position:      absolute;
  inset:         58px;
  border-radius: 50%;
  border:        1px solid rgba(255,255,255,.10);
}
.dashx-hero-rings::after {
  content:       '';
  position:      absolute;
  inset:         126px;
  border-radius: 50%;
  border:        1px solid rgba(255,255,255,.08);
}
.dashx-hero-body {
  position:   relative;
  z-index:    1;
  max-width:  640px;
}
.dashx-hero-date {
  display:        inline-block;
  margin:         0 0 var(--bcc-s3);
  padding:        3px 10px;
  font-size:      var(--bcc-t-xs);
  font-weight:    700;
  text-transform: uppercase;
  letter-spacing: .10em;
  border-radius:  var(--bcc-r-pill);
  background:     rgba(255,255,255,.14);
  color:          rgba(255,255,255,.94);
}
.dashx-hero-greeting {
  display:        flex;
  align-items:    center;
  gap:            var(--bcc-s3);
  flex-wrap:      wrap;
  margin:         0 0 var(--bcc-s3);
  font-family:    var(--bcc-font-display);
  font-size:      var(--bcc-t-4xl);
  font-weight:    600;
  line-height:    1.05;
  letter-spacing: -.01em;
  text-shadow:    0 1px 12px rgba(0,0,0,.18);
}
.dashx-hero-sparkle {
  display:     inline-flex;
  color:       var(--bcc-accent);
  opacity:     .98;
  filter:      drop-shadow(0 0 10px var(--bcc-accent-soft));
}
.dashx-hero-sparkle .bcc-icon { width: .68em; height: .68em; }
.dashx-hero-context {
  margin:      0;
  max-width:   540px;
  font-size:   var(--bcc-t-md);
  line-height: 1.55;
  opacity:     .95;
}

/* ── Church logo chip (BCC.churchLogoHTML) — global, used on dashboard + profile ── */
.bcc-logo-chip {
  display:         inline-flex;
  align-items:     center;
  justify-content: center;
  flex:            none;
  overflow:        hidden;
  background:      var(--bcc-surface-2);
  border:          1px solid var(--bcc-border-strong);
  font-weight:     700;
  line-height:     1;
}
.bcc-church-logo-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bcc-logo-fallback {
  width:           100%;
  height:          100%;
  display:         inline-flex;
  align-items:     center;
  justify-content: center;
  color:           #fff;
}
.bcc-logo-shape--circle  { border-radius: 50%; }
.bcc-logo-shape--rounded { border-radius: var(--bcc-r-md); }
.bcc-logo-shape--square  { border-radius: 0; }
.bcc-logo-chip-sm { width: 32px; height: 32px; font-size: .8rem; }
.bcc-logo-chip-md { width: 48px; height: 48px; font-size: 1.1rem; }
.bcc-logo-chip-lg { width: 72px; height: 72px; font-size: 1.6rem; }

/* ── Hero with a cover background: deepen the scrim, calm the decoration ── */
.dashx-hero-has-cover::after {
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(255,255,255,.14) 0%, rgba(255,255,255,0) 55%),
    linear-gradient(180deg, rgba(0,0,0,.22) 0%, rgba(0,0,0,.52) 100%);
}
.dashx-hero-has-cover .dashx-hero-glow,
.dashx-hero-has-cover .dashx-hero-rings { opacity: .35; }

/* ── Hero brand row (logo + name + tagline) ── */
.dashx-hero-brand {
  display:     flex;
  align-items: center;
  gap:         var(--bcc-s3);
  margin:      0 0 var(--bcc-s4);
}
.dashx-hero-brand-text { display: flex; flex-direction: column; min-width: 0; }
.dashx-hero-church {
  font-family: var(--bcc-font-display);
  font-size:   var(--bcc-t-lg);
  font-weight: 600;
  color:       #fff;
}
.dashx-hero-tagline {
  font-size:   var(--bcc-t-sm);
  color:       rgba(255,255,255,.86);
  line-height: 1.4;
}

/* ── Church social icon row (shared by dashboard hero + profile) ── */
.dashx-hero-socials,
.dashx-social-row {
  display:    flex;
  flex-wrap:  wrap;
  gap:        var(--bcc-s2);
  margin-top: var(--bcc-s4);
}
.dashx-social-link {
  display:         inline-flex;
  align-items:     center;
  justify-content: center;
  width:           38px;
  height:          38px;
  border-radius:   var(--bcc-r-pill);
  background:      var(--bcc-surface-2);
  border:          1px solid var(--bcc-border);
  color:           var(--bcc-ink-2);
  transition:      background var(--bcc-dur-2), color var(--bcc-dur-2), transform var(--bcc-dur-2);
}
.dashx-social-link:hover {
  background: var(--bcc-surface-3);
  color:      var(--bcc-ink);
  transform:  translateY(-1px);
}
.dashx-social-link .bcc-icon { width: 1.1rem; height: 1.1rem; }
/* On the hero gradient the same links read as glassy white chips. */
.dashx-hero-socials .dashx-social-link {
  background:   rgba(255,255,255,.16);
  border-color: rgba(255,255,255,.22);
  color:        #fff;
}
.dashx-hero-socials .dashx-social-link:hover {
  background: rgba(255,255,255,.26);
  color:      #fff;
}

/* ── Dismissible welcome banner ── */
.dashx-hero-welcome {
  position:      relative;
  display:       flex;
  align-items:   flex-start;
  gap:           var(--bcc-s3);
  margin-top:    var(--bcc-s5);
  padding:       var(--bcc-s3) var(--bcc-s4);
  border-radius: var(--bcc-r-md);
  background:    rgba(255,255,255,.14);
  border:        1px solid rgba(255,255,255,.20);
}
.dashx-hero-welcome-text {
  font-size:   var(--bcc-t-sm);
  line-height: 1.5;
  color:       rgba(255,255,255,.95);
}
.dashx-hero-welcome-close {
  flex:            none;
  margin-left:     auto;
  display:         inline-flex;
  align-items:     center;
  justify-content: center;
  width:           28px;
  height:          28px;
  padding:         0;
  border:          none;
  border-radius:   var(--bcc-r-pill);
  background:      rgba(255,255,255,.16);
  color:           #fff;
  cursor:          pointer;
}
.dashx-hero-welcome-close:hover { background: rgba(255,255,255,.28); }
.dashx-hero-welcome-close .bcc-icon { width: 1rem; height: 1rem; }

/* ================================================================
   2. AT-A-GLANCE STAT ROW  (4 → 2 → 2 → 1)
=============================================================== */
.dashx-stats {
  display:               grid;
  grid-template-columns: repeat(4, 1fr);
  gap:                   var(--bcc-s4);
}
.dashx-stat {
  position:       relative;
  display:        flex;
  align-items:    center;
  gap:            var(--bcc-s3);
  text-align:     left;
  padding:        var(--bcc-s5);
  background:     var(--bcc-surface-1);
  border:         1px solid var(--bcc-border);
  border-radius:  var(--bcc-r-lg);
  box-shadow:     var(--bcc-shadow-1);
  color:          inherit;
  overflow:       hidden;
  transition:     border-color var(--bcc-dur-2) var(--bcc-ease),
                  box-shadow   var(--bcc-dur-2) var(--bcc-ease),
                  transform    var(--bcc-dur-2) var(--bcc-ease);
}
/* Scope the <button>-based tiles under .dashx-wrap so they out-specify the
   `.bcc-app button` reset (specificity 0,1,1) independent of the shared fix. */
.dashx-wrap .dashx-stat {
  padding:    var(--bcc-s5);
  background: var(--bcc-surface-1);
  border:     1px solid var(--bcc-border);
  color:      inherit;
}
/* Top accent rail reveals on hover/focus — signals "this navigates". */
.dashx-wrap .dashx-stat::before {
  content:       '';
  position:      absolute;
  inset:         0 0 auto 0;
  height:        3px;
  background:    linear-gradient(90deg, var(--bcc-primary), var(--bcc-secondary));
  opacity:       0;
  transition:    opacity var(--bcc-dur-2) var(--bcc-ease);
}
.dashx-stat:hover {
  border-color: var(--bcc-border-strong);
  box-shadow:   var(--bcc-shadow-2);
  transform:    translateY(-2px);
}
.dashx-wrap .dashx-stat:hover,
.dashx-wrap .dashx-stat:focus-visible {
  border-color: var(--bcc-border-strong);
  transform:    translateY(-2px);
}
.dashx-wrap .dashx-stat:hover::before,
.dashx-wrap .dashx-stat:focus-visible::before { opacity: 1; }
.dashx-stat.is-loading { pointer-events: none; }
.dashx-stat-icon {
  display:         flex;
  align-items:     center;
  justify-content: center;
  width:           44px;
  height:          44px;
  border-radius:   var(--bcc-r-md);
  background:      var(--bcc-primary-soft);
  color:           var(--bcc-primary);
  font-size:       1.15rem;
  flex-shrink:     0;
}
.dashx-stat-icon .bcc-icon { width: 1.25em; height: 1.25em; }
/* Colour-code the four lenses. */
.dashx-stat:nth-child(1) .dashx-stat-icon { background: var(--bcc-primary-soft);   color: var(--bcc-primary);   }
.dashx-stat:nth-child(2) .dashx-stat-icon { background: var(--bcc-accent-soft);    color: var(--bcc-accent);    }
.dashx-stat:nth-child(3) .dashx-stat-icon { background: var(--bcc-secondary-soft); color: var(--bcc-secondary); }
.dashx-stat:nth-child(4) .dashx-stat-icon { background: var(--bcc-primary-soft);   color: var(--bcc-primary);   }
.dashx-stat-body {
  display:        flex;
  flex-direction: column;
  gap:            2px;
  min-width:      0;
  flex:           1;
}
.dashx-stat-value {
  font-family:    var(--bcc-font-display);
  font-size:      var(--bcc-t-3xl);
  font-weight:    600;
  line-height:    1;
  letter-spacing: -.02em;
  color:          var(--bcc-ink);
}
.dashx-stat-label {
  font-size:      var(--bcc-t-xs);
  font-weight:    700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color:          var(--bcc-ink-3);
}
.dashx-stat-arrow {
  display:     inline-flex;
  color:       var(--bcc-ink-3);
  opacity:     .55;
  flex-shrink: 0;
  transition:  color var(--bcc-dur-2) var(--bcc-ease),
               opacity var(--bcc-dur-2) var(--bcc-ease),
               transform var(--bcc-dur-2) var(--bcc-ease);
}
.dashx-stat:hover .dashx-stat-arrow,
.dashx-stat:focus-visible .dashx-stat-arrow {
  color:     var(--bcc-primary);
  opacity:   1;
  transform: translateX(3px);
}

/* ================================================================
   3. QUICK ACTIONS — bold, touch-friendly tiles
=============================================================== */
.dashx-quick {
  display:               grid;
  grid-template-columns: repeat(4, 1fr);
  gap:                   var(--bcc-s3);
}
.dashx-action {
  position:        relative;
  display:         flex;
  flex-direction:  column;
  align-items:     center;
  justify-content: center;
  gap:             var(--bcc-s2);
  min-height:      116px;
  padding:         var(--bcc-s5) var(--bcc-s3);
  background:      var(--bcc-surface-1);
  border:          1px solid var(--bcc-border);
  border-radius:   var(--bcc-r-lg);
  box-shadow:      var(--bcc-shadow-1);
  color:           var(--bcc-ink-2);
  overflow:        hidden;
  transition:      border-color var(--bcc-dur-2) var(--bcc-ease),
                   box-shadow   var(--bcc-dur-2) var(--bcc-ease),
                   transform    var(--bcc-dur-2) var(--bcc-ease),
                   color        var(--bcc-dur-2) var(--bcc-ease);
}
/* See .dashx-stat: keep the <button> tiles ahead of the `.bcc-app button` reset. */
.dashx-wrap .dashx-action {
  padding:    var(--bcc-s5) var(--bcc-s3);
  background: var(--bcc-surface-1);
  border:     1px solid var(--bcc-border);
  color:      var(--bcc-ink-2);
}
.dashx-wrap .dashx-action::before {
  content:    '';
  position:   absolute;
  inset:      0;
  background: linear-gradient(165deg, rgba(var(--bcc-primary-rgb),.12), rgba(var(--bcc-primary-rgb),0) 62%);
  opacity:    0;
  transition: opacity var(--bcc-dur-2) var(--bcc-ease);
}
.dashx-wrap .dashx-action:hover {
  border-color: var(--bcc-border-strong);
  box-shadow:   var(--bcc-shadow-2);
  transform:    translateY(-2px);
  color:        var(--bcc-ink);
}
.dashx-wrap .dashx-action:hover::before,
.dashx-wrap .dashx-action:focus-visible::before { opacity: 1; }
.dashx-action-icon {
  position:        relative;
  display:         flex;
  align-items:     center;
  justify-content: center;
  width:           54px;
  height:          54px;
  border-radius:   var(--bcc-r-md);
  background:      var(--bcc-primary-soft);
  color:           var(--bcc-primary);
  font-size:       1.4rem;
  transition:      transform var(--bcc-dur-3) var(--bcc-ease-spring);
}
.dashx-action-icon .bcc-icon { width: 1.4em; height: 1.4em; }
.dashx-action:hover .dashx-action-icon { transform: translateY(-1px) scale(1.06); }
.dashx-action:nth-child(1) .dashx-action-icon { background: var(--bcc-accent-soft);    color: var(--bcc-accent);    }
.dashx-action:nth-child(2) .dashx-action-icon { background: var(--bcc-primary-soft);   color: var(--bcc-primary);   }
.dashx-action:nth-child(3) .dashx-action-icon { background: var(--bcc-secondary-soft); color: var(--bcc-secondary); }
.dashx-action:nth-child(4) .dashx-action-icon { background: var(--bcc-accent-soft);    color: var(--bcc-accent);    }
.dashx-action-label {
  position:    relative;
  font-size:   var(--bcc-t-md);
  font-weight: 700;
  letter-spacing: -.005em;
}
.dashx-action-hint {
  position:    relative;
  font-size:   var(--bcc-t-xs);
  font-weight: 500;
  color:       var(--bcc-ink-3);
  text-align:  center;
}

/* ================================================================
   PANELS + SECTION HEADERS
=============================================================== */
.dashx-panel {
  display:        flex;
  flex-direction: column;
  gap:            var(--bcc-s4);
  padding:        var(--bcc-s6);
  background:     var(--bcc-surface-1);
  border:         1px solid var(--bcc-border);
  border-radius:  var(--bcc-r-lg);
  box-shadow:     var(--bcc-shadow-2);
}
.dashx-head {
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  gap:             var(--bcc-s3);
}
.dashx-head-title {
  margin:         0;
  font-family:    var(--bcc-font-display);
  font-size:      var(--bcc-t-xl);
  font-weight:    600;
  letter-spacing: -.005em;
  color:          var(--bcc-ink);
}

/* Two related widgets side-by-side on desktop/tablet, stacked on mobile.
   auto-fit collapses the empty track so a lone panel stretches full width. */
.dashx-cols {
  display:               grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap:                   var(--bcc-s6);
  align-items:           start;
}

/* ================================================================
   LIST ITEMS (Today / Connections)
=============================================================== */
.dashx-list {
  display:        flex;
  flex-direction: column;
}
.dashx-item {
  display:     flex;
  align-items: flex-start;
  gap:         var(--bcc-s3);
  padding:     var(--bcc-s3) 0;
  border-bottom: 1px solid var(--bcc-border);
}
.dashx-item:last-child { border-bottom: none; }
.dashx-item:first-child { padding-top: 0; }
.dashx-item-icon {
  display:         flex;
  align-items:     center;
  justify-content: center;
  width:           38px;
  height:          38px;
  border-radius:   var(--bcc-r-md);
  background:      var(--bcc-primary-soft);
  color:           var(--bcc-primary);
  font-size:       1rem;
  flex-shrink:     0;
}
.dashx-item-main { flex: 1; min-width: 0; }
.dashx-item-type {
  font-size:      var(--bcc-t-xs);
  font-weight:    700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color:          var(--bcc-primary);
  margin-bottom:  2px;
}
.dashx-item-title {
  font-size:   var(--bcc-t-sm);
  font-weight: 600;
  line-height: 1.35;
  color:       var(--bcc-ink);
  overflow-wrap: anywhere;
}
.dashx-item-sub {
  font-size:   var(--bcc-t-sm);
  color:       var(--bcc-ink-2);
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.dashx-item-time {
  font-size:  var(--bcc-t-xs);
  color:      var(--bcc-ink-3);
  white-space: nowrap;
  flex-shrink: 0;
  padding-top: 2px;
}
.dashx-ink { color: var(--bcc-ink); }

/* ================================================================
   EXPLICIT EMPTY STATES (Today / This Week)
=============================================================== */
.dashx-empty {
  display:         flex;
  flex-direction:  column;
  align-items:     center;
  gap:             var(--bcc-s2);
  padding:         var(--bcc-s8) var(--bcc-s4);
  text-align:      center;
}
.dashx-empty-icon {
  display:         flex;
  align-items:     center;
  justify-content: center;
  width:           56px;
  height:          56px;
  margin-bottom:   var(--bcc-s1);
  border-radius:   50%;
  background:      var(--bcc-surface-2);
  color:           var(--bcc-ink-3);
  font-size:       1.4rem;
}
.dashx-empty-icon .bcc-icon { width: 1.3em; height: 1.3em; }
.dashx-empty-title {
  margin:         0;
  font-family:    var(--bcc-font-display);
  font-size:      var(--bcc-t-lg);
  font-weight:    600;
  color:          var(--bcc-ink-2);
}
.dashx-empty-sub {
  margin:     0;
  max-width:  320px;
  font-size:  var(--bcc-t-sm);
  line-height: 1.5;
  color:      var(--bcc-ink-3);
}

/* ================================================================
   THIS WEEK
=============================================================== */
.dashx-week-grid {
  display:               grid;
  grid-template-columns: 1fr;
  gap:                   var(--bcc-s4);
}
.dashx-week-grid > .dashx-empty { grid-column: 1 / -1; }
.dashx-week-card {
  padding:       var(--bcc-s4);
  background:    var(--bcc-surface-2);
  border:        1px solid var(--bcc-border);
  border-radius: var(--bcc-r-md);
}
.dashx-week-card-title {
  display:       flex;
  align-items:   center;
  gap:           var(--bcc-s2);
  margin-bottom: var(--bcc-s3);
  font-size:     var(--bcc-t-xs);
  font-weight:   700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color:         var(--bcc-ink-3);
}
.dashx-week-card-title .bcc-icon { color: var(--bcc-accent); }
.dashx-week-row {
  padding:       var(--bcc-s2) 0;
  border-bottom: 1px solid var(--bcc-border);
}
.dashx-week-row:last-child { border-bottom: none; }
.dashx-week-row-title {
  font-size:   var(--bcc-t-sm);
  font-weight: 600;
  color:       var(--bcc-ink);
}
.dashx-week-row-sub {
  font-size: var(--bcc-t-xs);
  color:     var(--bcc-ink-3);
  margin-top: 2px;
}
.dashx-week-empty {
  font-size: var(--bcc-t-sm);
  color:     var(--bcc-ink-3);
  padding:   var(--bcc-s2) 0;
}

/* ================================================================
   5. VERSE OF THE DAY — hero-grade serif card
=============================================================== */
.dashx-panel-votd {
  position:   relative;
  overflow:   hidden;
  background: linear-gradient(160deg, var(--bcc-surface-2), var(--bcc-surface-1) 70%);
  border-color: var(--bcc-border-strong);
}
.dashx-panel-votd::before {
  content:    '';
  position:   absolute;
  inset:      0 auto 0 0;
  width:      4px;
  background: linear-gradient(180deg, var(--bcc-accent), var(--bcc-primary));
}
.dashx-votd {
  position:       relative;
  display:        flex;
  flex-direction: column;
  gap:            var(--bcc-s4);
  padding-left:   var(--bcc-s3);
}
.dashx-votd-mark {
  position:       absolute;
  top:            -28px;
  left:           -10px;
  font-family:    var(--bcc-font-display);
  font-size:      6.5rem;
  line-height:    1;
  color:          var(--bcc-accent);
  opacity:        .18;
  pointer-events: none;
  user-select:    none;
}
.dashx-votd-top {
  position:        relative;
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  gap:             var(--bcc-s3);
  flex-wrap:       wrap;
}
.dashx-votd-ref {
  display:        inline-flex;
  align-items:    center;
  gap:            var(--bcc-s2);
  padding:        4px 12px;
  border-radius:  var(--bcc-r-pill);
  background:     var(--bcc-accent-soft);
  color:          var(--bcc-accent);
  font-size:      var(--bcc-t-xs);
  font-weight:    700;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.dashx-votd-eyebrow {
  font-size:      var(--bcc-t-xs);
  font-weight:    700;
  text-transform: uppercase;
  letter-spacing: .10em;
  color:          var(--bcc-ink-3);
}
.dashx-votd-text {
  position:    relative;
  margin:      0;
  max-width:   46ch;
  font-family: var(--bcc-font-display);
  font-size:   var(--bcc-t-3xl);
  font-style:  italic;
  line-height: 1.35;
  color:       var(--bcc-ink);
}
.dashx-votd-actions {
  display:   flex;
  flex-wrap: wrap;
  gap:       var(--bcc-s2);
}
.dashx-votd-actions .bcc-icon { color: var(--bcc-accent); }

/* ================================================================
   6. VERSE MOMENTS — horizontal story-like strip
=============================================================== */
.dashx-moments-hint {
  display:     inline-flex;
  align-items: center;
  color:       var(--bcc-ink-3);
  animation:   dashx-nudge 2.4s var(--bcc-ease) infinite;
}
/* Clip the strip to the panel's rounded corners while it scrolls. */
.dashx-panel-moments { overflow: hidden; }
.dashx-moments {
  display:                  flex;
  gap:                      var(--bcc-s3);
  overflow-x:               auto;
  overflow-y:               hidden;
  scroll-snap-type:         x mandatory;
  -webkit-overflow-scrolling: touch;
  padding:                  var(--bcc-s1) var(--bcc-s1) var(--bcc-s3);
  scrollbar-width:          thin;
  scrollbar-color:          var(--bcc-border-strong) transparent;
}
.dashx-moments::-webkit-scrollbar { height: 6px; }
.dashx-moments::-webkit-scrollbar-thumb {
  background:    var(--bcc-border-strong);
  border-radius: var(--bcc-r-pill);
}
.dashx-moment {
  position:        relative;
  flex:            0 0 clamp(158px, 42vw, 192px);
  display:         flex;
  flex-direction:  column;
  gap:             var(--bcc-s3);
  padding:         var(--bcc-s4);
  background:      linear-gradient(165deg, var(--bcc-surface-2), var(--bcc-surface-1));
  border:          1px solid var(--bcc-border);
  border-radius:   var(--bcc-r-lg);
  scroll-snap-align: start;
  transition:      border-color var(--bcc-dur-2) var(--bcc-ease),
                   box-shadow   var(--bcc-dur-2) var(--bcc-ease),
                   transform    var(--bcc-dur-2) var(--bcc-ease);
}
.dashx-moment:hover {
  border-color: var(--bcc-border-strong);
  box-shadow:   var(--bcc-shadow-2);
  transform:    translateY(-2px);
}
.dashx-moment-ring {
  width:         62px;
  height:        62px;
  padding:       3px;
  border-radius: 50%;
  background:    linear-gradient(135deg, var(--bcc-primary), var(--bcc-secondary));
  flex-shrink:   0;
}
.dashx-moment-ring-inner {
  display:         flex;
  align-items:     center;
  justify-content: center;
  width:           100%;
  height:          100%;
  border-radius:   50%;
  background:      var(--bcc-surface-1);
  color:           var(--bcc-primary);
}
.dashx-moment-ring-inner .bcc-icon { width: 1.2em; height: 1.2em; }
.dashx-moment-body {
  display:        flex;
  flex-direction: column;
  gap:            var(--bcc-s1);
  flex:           1;
}
.dashx-moment-ref {
  font-size:      var(--bcc-t-xs);
  font-weight:    700;
  color:          var(--bcc-primary);
  text-transform: uppercase;
  letter-spacing: .05em;
}
.dashx-moment-preview {
  font-family: var(--bcc-font-display);
  font-size:   var(--bcc-t-md);
  line-height: 1.4;
  color:       var(--bcc-ink);
}
.dashx-moment-count {
  display:     flex;
  align-items: baseline;
  gap:         5px;
  font-size:   var(--bcc-t-xs);
  color:       var(--bcc-ink-3);
}
.dashx-moment-count-num {
  font-family: var(--bcc-font-display);
  font-size:   var(--bcc-t-lg);
  font-weight: 600;
  color:       var(--bcc-ink-2);
}
@keyframes dashx-nudge {
  0%, 70%, 100% { transform: translateX(0); opacity: .7; }
  82%           { transform: translateX(3px); opacity: 1; }
}

/* ================================================================
   8. AI DIGEST
=============================================================== */
.dashx-digest {
  position:   relative;
  overflow:   hidden;
  padding:    var(--bcc-s6);
  background: linear-gradient(180deg, var(--bcc-surface-1), var(--bcc-surface-2));
  border:     1px solid var(--bcc-border);
  border-radius: var(--bcc-r-lg);
  box-shadow: var(--bcc-shadow-2);
}
.dashx-digest::before {
  content:    '';
  position:   absolute;
  inset:      0 0 auto 0;
  height:     3px;
  background: linear-gradient(90deg, var(--bcc-primary), var(--bcc-secondary), var(--bcc-accent));
}
.dashx-digest-head {
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  gap:             var(--bcc-s3);
  margin-bottom:   var(--bcc-s4);
}
.dashx-digest-title {
  display:     flex;
  align-items: center;
  gap:         var(--bcc-s3);
  min-width:   0;
}
.dashx-digest-badge {
  display:         flex;
  align-items:     center;
  justify-content: center;
  width:           36px;
  height:          36px;
  border-radius:   var(--bcc-r-md);
  background:      linear-gradient(150deg, var(--bcc-primary), var(--bcc-primary-hover));
  color:           #fff; /* on the primary gradient, mirrors .bcc-btn-primary */
  box-shadow:      var(--bcc-shadow-glow);
  flex-shrink:     0;
}
.dashx-digest-head h3 {
  margin:         0;
  font-family:    var(--bcc-font-display);
  font-size:      var(--bcc-t-xl);
  font-weight:    600;
  color:          var(--bcc-ink);
}
.dashx-digest-body,
.dashx-digest-content {
  font-size:   var(--bcc-t-md);
  line-height: 1.65;
  color:       var(--bcc-ink-2);
}
.dashx-digest-content p,
.dashx-digest-body p { margin: 0 0 var(--bcc-s3); }
.dashx-digest-content strong { color: var(--bcc-ink); font-weight: 700; }
.dashx-digest-list {
  margin:      0 0 var(--bcc-s3);
  padding-left: var(--bcc-s5);
}
.dashx-digest-list li { margin-bottom: var(--bcc-s1); }
.dashx-digest-list li::marker { color: var(--bcc-accent); }
.dashx-digest-empty,
.dashx-digest-error {
  display:        flex;
  flex-direction: column;
  align-items:    center;
  gap:            var(--bcc-s3);
  text-align:     center;
  padding:        var(--bcc-s6) var(--bcc-s4);
  color:          var(--bcc-ink-3);
}
.dashx-digest-empty p,
.dashx-digest-error p {
  max-width: 460px;
  margin:    0;
}
.dashx-digest-empty-icon {
  display:         flex;
  align-items:     center;
  justify-content: center;
  width:           52px;
  height:          52px;
  border-radius:   50%;
  background:      var(--bcc-primary-soft);
  color:           var(--bcc-primary);
}
.dashx-digest-empty-icon .bcc-icon { width: 1.4em; height: 1.4em; }
.dashx-ink3 { color: var(--bcc-ink-3); font-size: var(--bcc-t-sm); }
.dashx-shimmer {
  display:        flex;
  flex-direction: column;
  gap:            var(--bcc-s3);
}
.dashx-shimmer-head {
  display:     flex;
  align-items: center;
  gap:         var(--bcc-s3);
  margin-bottom: var(--bcc-s1);
}
.dashx-shimmer-avatar {
  width:         34px;
  height:        34px;
  border-radius: var(--bcc-r-sm);
  background:    linear-gradient(90deg, var(--bcc-surface-2) 25%, var(--bcc-surface-3) 50%, var(--bcc-surface-2) 75%);
  background-size: 200% 100%;
  animation:     bcc-shimmer 1.4s infinite;
  flex-shrink:   0;
}
.dashx-shimmer-line {
  display:       block;
  height:        14px;
  border-radius: var(--bcc-r-xs);
  background:    linear-gradient(90deg, var(--bcc-surface-2) 25%, var(--bcc-surface-3) 50%, var(--bcc-surface-2) 75%);
  background-size: 200% 100%;
  animation:     bcc-shimmer 1.4s infinite;
}
/* Stagger the lines so the shimmer reads as a "generating" wave. */
.dashx-shimmer-line:nth-child(3) { animation-delay: .12s; }
.dashx-shimmer-line:nth-child(4) { animation-delay: .24s; }
.dashx-shimmer-line:nth-child(5) { animation-delay: .36s; }

/* ================================================================
   SKELETON SIZES (initial load shell)
=============================================================== */
.dashx-skel-hero  { height: 176px; border-radius: var(--bcc-r-xl); }
.dashx-skel-stat  { height: 128px; border-radius: var(--bcc-r-lg); }
.dashx-skel-panel { height: 220px; border-radius: var(--bcc-r-lg); }
.dashx-ic-fallback { display: inline-block; }

/* ================================================================
   FOCUS — explicit rings on the custom interactive layer
=============================================================== */
.dashx-stat:focus-visible,
.dashx-action:focus-visible {
  outline:    none;
  box-shadow: var(--bcc-focus);
  border-radius: var(--bcc-r-lg);
}

/* ================================================================
   RESPONSIVE — large desktop ≥1440
=============================================================== */
@media (min-width: 1440px) {
  .dashx-wrap { gap: var(--bcc-s10); }
  .dashx-hero-card { padding: var(--bcc-s16) var(--bcc-s12); }
  .dashx-hero-greeting { font-size: clamp(var(--bcc-t-4xl), 2.6vw, 2.75rem); }
  .dashx-stats,
  .dashx-quick { gap: var(--bcc-s5); }
  .dashx-wrap .dashx-stat { padding: var(--bcc-s6); }
  .dashx-action { min-height: 128px; }
}

/* ================================================================
   RESPONSIVE — 768–1024 (tablet)
=============================================================== */
@media (max-width: 1024px) {
  .dashx-stats { grid-template-columns: repeat(2, 1fr); }
  .dashx-hero-card { padding: var(--bcc-s10) var(--bcc-s8); }
}

/* ================================================================
   RESPONSIVE — 481–767 (large phone / small tablet)
=============================================================== */
@media (max-width: 767px) {
  .dashx-wrap { gap: var(--bcc-s6); }
  .dashx-cols { grid-template-columns: 1fr; }
  .dashx-hero-card { padding: var(--bcc-s8) var(--bcc-s6); }
  .dashx-hero-greeting { font-size: var(--bcc-t-3xl); }
  .dashx-hero-rings { width: 280px; height: 280px; right: -90px; }
  .dashx-panel,
  .dashx-digest { padding: var(--bcc-s5); }
  .dashx-votd-text { font-size: var(--bcc-t-2xl); }

  /* Quick actions go 2-up on phones. */
  .dashx-quick { grid-template-columns: repeat(2, 1fr); }

  /* Touch targets ≥ 44px */
  .dashx-stat   { min-height: 64px; }
  .dashx-action { min-height: 112px; }
}

/* ================================================================
   RESPONSIVE — ≤480 (small phone)
=============================================================== */
@media (max-width: 480px) {
  .dashx-stats { grid-template-columns: 1fr; }
  .dashx-wrap .dashx-stat { padding: var(--bcc-s4); }
  .dashx-stat-icon { width: 40px; height: 40px; }
  .dashx-hero-card { padding: var(--bcc-s6) var(--bcc-s5); }
  .dashx-hero-greeting { font-size: var(--bcc-t-2xl); }
  .dashx-hero-date { font-size: 0.6875rem; }
  .dashx-votd-text { font-size: var(--bcc-t-xl); }
  .dashx-quick { gap: var(--bcc-s2); }
  .dashx-wrap .dashx-action { padding: var(--bcc-s4) var(--bcc-s2); }
  .dashx-action { min-height: 104px; }
  .dashx-action-icon { width: 48px; height: 48px; }
  .dashx-action-hint { display: none; }
  .dashx-moment { flex-basis: 72vw; }
  .dashx-digest-head { flex-wrap: wrap; }

  /* Church brand + welcome banner stack cleanly on small phones. */
  .dashx-hero-brand { align-items: flex-start; }
  .dashx-hero-brand .bcc-logo-chip { width: 56px; height: 56px; font-size: 1.3rem; }
  .dashx-hero-socials,
  .dashx-social-row { gap: var(--bcc-s1); }
  .dashx-social-link { width: 34px; height: 34px; }
  .dashx-hero-welcome { flex-direction: column; }
  .dashx-hero-welcome-close { margin-left: 0; align-self: flex-end; }
}

/* ================================================================
   REDUCED MOTION
=============================================================== */
@media (prefers-reduced-motion: reduce) {
  .dashx-wrap *,
  .dashx-wrap *::before,
  .dashx-wrap *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .dashx-stat:hover,
  .dashx-action:hover,
  .dashx-moment:hover { transform: none; }
  .dashx-action:hover .dashx-action-icon { transform: none; }
  .dashx-shimmer-line,
  .dashx-shimmer-avatar { animation: none; }
  .dashx-moments-hint { animation: none; }
}

/* ================================================================
   MOBILE / TABLET SCALING FIXES
   ================================================================ */

/* 28px / 38px controls: keep the drawn control, add a 44px hit area. */
@media (pointer: coarse) {
  .dashx-hero-welcome-close { position: relative; }
  .dashx-hero-welcome-close::after {
    content: '';
    position: absolute;
    inset: -8px;
  }
  .dashx-social-link { position: relative; }
  .dashx-social-link::after {
    content: '';
    position: absolute;
    inset: -5px;
  }
}
