/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* ============================================================================
   Business · Locations index
   Component-scoped styles for app/views/business/locations/index.html.erb.
   All custom classes are prefixed `bl-` so they can't collide with Tailwind or
   other component styles. Brand accent is the deep-teal #003A3A; dark-mode
   variants use Tailwind's `.dark` class selector since darkMode is set to
   'class' in tailwind.config.js.
   ========================================================================= */

/* --- Hero band -------------------------------------------------------------
   Solid deep-teal slab. The brand color owns the whole header instead of
   fading out to white (which made the right side look washed-out and made
   the subtitle unreadable). A soft white glow in the top-left adds depth
   without breaking the saturation; a subtle diagonal-line pattern gives
   the surface texture without being noisy. */
.bl-hero {
  position: relative;
  background: linear-gradient(135deg, #003A3A 0%, #002424 100%);
  border: 1px solid #003A3A;
  color: #ffffff;
  box-shadow: 0 10px 32px rgba(0, 58, 58, 0.18);
}
.bl-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 90% at 0% 0%, rgba(255,255,255,0.10) 0%, rgba(255,255,255,0) 55%);
  pointer-events: none;
}
.dark .bl-hero {
  background: linear-gradient(135deg, #003A3A 0%, #001818 100%);
  border-color: #002020;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
}
.dark .bl-hero::before {
  background: radial-gradient(60% 90% at 0% 0%, rgba(45,212,191,0.10) 0%, rgba(45,212,191,0) 55%);
}

.bl-hero-pattern {
  background-image:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.05) 0 1px, transparent 1px 22px);
  mask-image: linear-gradient(135deg, rgba(0,0,0,1) 0%, rgba(0,0,0,0.3) 80%);
}

.bl-hero-title { color: #ffffff; letter-spacing: -0.01em; }
.bl-hero-sub   { color: rgba(255,255,255,0.85); }

/* Inline hero stat chip — small pill showing slot usage on the right
   side of the header, paired with the Add button for visual weight. */
.bl-hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.16);
  color: rgba(255,255,255,0.92);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  backdrop-filter: blur(8px);
}
.bl-hero-chip .dot { width: 6px; height: 6px; border-radius: 9999px; background: #2dd4bf; box-shadow: 0 0 8px rgba(45,212,191,0.6); }

/* --- Primary CTA pill ------------------------------------------------------
   The "Add location" button. Filled deep teal in light mode, slightly
   lifted shadow with a soft inner highlight. */
.bl-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #ffffff;
  background: linear-gradient(135deg, #003A3A 0%, #005454 100%);
  border: 1px solid rgba(0,58,58,0.7);
  box-shadow: 0 4px 14px rgba(0,58,58,0.25), inset 0 1px 0 rgba(255,255,255,0.08);
  transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
  white-space: nowrap;
}
.bl-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(0,58,58,0.32); filter: brightness(1.05); }
.bl-btn-primary:active { transform: translateY(0); box-shadow: 0 2px 8px rgba(0,58,58,0.25); }

.bl-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.55rem 0.95rem;
  border-radius: 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #003A3A;
  background: #ffffff;
  border: 1px solid #d1d5db;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.bl-btn-secondary:hover { background: #f0fdfa; border-color: #003A3A; color: #003A3A; }
.dark .bl-btn-secondary { color: #6ee7b7; background: #1f2937; border-color: #374151; }
.dark .bl-btn-secondary:hover { background: rgba(0,58,58,0.25); border-color: #2dd4bf; color: #99f6e4; }

/* --- Plan strip ------------------------------------------------------------
   The slim row beneath the hero showing slot usage + free auto-replies. */
.bl-plan-strip {
  background: #ffffff;
  border: 1px solid #e5e7eb;
}
.dark .bl-plan-strip { background: #1f2937; border-color: #374151; }

.bl-capacity-meter { display: inline-flex; gap: 4px; }
.bl-capacity-meter span {
  display: block;
  width: 22px;
  height: 8px;
  border-radius: 4px;
  background: #e5e7eb;
  transition: background 0.2s ease;
}
.bl-capacity-meter span.filled { background: linear-gradient(90deg, #003A3A, #2dd4bf); box-shadow: 0 0 8px rgba(0,58,58,0.25); }
.dark .bl-capacity-meter span { background: #374151; }
.dark .bl-capacity-meter span.filled { background: linear-gradient(90deg, #2dd4bf, #5eead4); box-shadow: 0 0 10px rgba(45,212,191,0.3); }

/* --- Location card ---------------------------------------------------------
   Light surface with a subtle left rail and a hover lift. */
.bl-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 1.25rem;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.25s ease, border-color 0.2s ease;
  opacity: 0;
  transform: translateY(12px);
  animation: blFadeUp 0.45s ease-out forwards;
}
.dark .bl-card { background: #1f2937; border-color: #374151; }

.bl-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 38px rgba(0,58,58,0.10), 0 4px 12px rgba(0,0,0,0.04);
  border-color: rgba(0,58,58,0.25);
}
.dark .bl-card:hover {
  box-shadow: 0 18px 40px rgba(0,0,0,0.4), 0 4px 12px rgba(0,58,58,0.25);
  border-color: rgba(45,212,191,0.35);
}

/* Left status rail */
.bl-rail {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: #d1d5db;
}
.bl-rail-success   { background: linear-gradient(180deg, #22c55e, #15803d); }
.bl-rail-attention { background: linear-gradient(180deg, #f59e0b, #d97706); animation: blShimmer 3s ease-in-out infinite; }
.bl-rail-issue     { background: linear-gradient(180deg, #ef4444, #b91c1c); animation: blShimmer 3s ease-in-out infinite; }
.dark .bl-rail-success   { background: linear-gradient(180deg, #4ade80, #16a34a); }
.dark .bl-rail-attention { background: linear-gradient(180deg, #fbbf24, #f59e0b); }
.dark .bl-rail-issue     { background: linear-gradient(180deg, #f87171, #dc2626); }

/* Plan badge */
.bl-plan-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0.2rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.bl-plan-premium  { background: #003A3A; color: #ffffff; box-shadow: 0 2px 6px rgba(0,58,58,0.25); }
.bl-plan-business { background: #ccfbf1; color: #134e4a; }
.bl-plan-free     { background: #f3f4f6; color: #6b7280; }
.dark .bl-plan-premium  { background: #2dd4bf; color: #0f172a; }
.dark .bl-plan-business { background: rgba(45,212,191,0.18); color: #5eead4; }
.dark .bl-plan-free     { background: #374151; color: #d1d5db; }

/* Status chip (text + dot) */
.bl-status-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 600;
  border: 1px solid transparent;
}
.bl-status-chip .dot { width: 7px; height: 7px; border-radius: 9999px; flex-shrink: 0; }
.bl-status-success   { background: #f0fdf4; color: #15803d; border-color: #bbf7d0; }
.bl-status-success .dot { background: #22c55e; }
.bl-status-attention { background: #fffbeb; color: #92400e; border-color: #fde68a; animation: blBreathe 2.4s ease-in-out infinite; }
.bl-status-attention .dot { background: #f59e0b; }
.bl-status-issue     { background: #fef2f2; color: #b91c1c; border-color: #fecaca; animation: blBreathe 2.4s ease-in-out infinite; }
.bl-status-issue .dot { background: #ef4444; }
.dark .bl-status-success   { background: rgba(34,197,94,0.18); color: #86efac; border-color: rgba(34,197,94,0.35); }
.dark .bl-status-attention { background: rgba(245,158,11,0.18); color: #fcd34d; border-color: rgba(245,158,11,0.35); }
.dark .bl-status-issue     { background: rgba(239,68,68,0.18); color: #fca5a5; border-color: rgba(239,68,68,0.35); }

/* AI-reply chip */
.bl-ai-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.18rem 0.55rem;
  border-radius: 9999px;
  font-size: 0.68rem;
  font-weight: 600;
}
.bl-ai-on   { background: rgba(0,58,58,0.08); color: #003A3A; }
.bl-ai-off  { background: #f3f4f6; color: #9ca3af; }
.dark .bl-ai-on  { background: rgba(45,212,191,0.18); color: #5eead4; }
.dark .bl-ai-off { background: #374151; color: #6b7280; }

/* Rating visualizer: number + 5-dot bar */
.bl-rating { display: inline-flex; align-items: center; gap: 0.55rem; }
.bl-rating-num { font-size: 1.5rem; font-weight: 700; color: #0f172a; line-height: 1; }
.dark .bl-rating-num { color: #f9fafb; }
.bl-rating-bar { display: inline-flex; gap: 3px; }
.bl-rating-bar span {
  width: 7px; height: 7px; border-radius: 9999px; background: #e5e7eb;
}
.bl-rating-bar span.filled { background: linear-gradient(135deg, #fbbf24, #f59e0b); }
.dark .bl-rating-bar span { background: #374151; }

/* Card meta line (review counts etc.) */
.bl-meta-num { font-weight: 700; color: #0f172a; }
.dark .bl-meta-num { color: #f9fafb; }

/* --- Add-another tile ------------------------------------------------------ */
.bl-add-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 240px;
  padding: 2rem;
  border: 2px dashed #d1d5db;
  border-radius: 1.25rem;
  color: #6b7280;
  text-align: center;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, transform 0.2s ease;
  background: transparent;
}
.bl-add-tile:hover {
  border-color: #003A3A;
  border-style: solid;
  background: rgba(0,58,58,0.04);
  color: #003A3A;
  transform: translateY(-3px);
}
.dark .bl-add-tile { border-color: #374151; color: #6b7280; }
.dark .bl-add-tile:hover { border-color: #2dd4bf; background: rgba(45,212,191,0.06); color: #5eead4; }

.bl-add-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 9999px;
  background: rgba(0,58,58,0.08);
  margin-bottom: 0.75rem;
  transition: transform 0.2s ease, background 0.2s ease;
}
.bl-add-tile:hover .bl-add-icon { transform: scale(1.1); background: rgba(0,58,58,0.18); }
.dark .bl-add-icon { background: rgba(45,212,191,0.12); }
.dark .bl-add-tile:hover .bl-add-icon { background: rgba(45,212,191,0.22); }

/* --- Empty state ----------------------------------------------------------
   When the agency has no connected locations yet, show a richer onboarding
   panel: top section keeps the "no locations" headline + CTA, bottom
   section is a 3-up feature grid that previews what the page will do once
   a location is connected. Gives the page real substance instead of one
   small icon floating in white space. */
.bl-empty {
  position: relative;
  padding: 3rem 2rem 2.5rem;
  border-radius: 1.5rem;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  text-align: center;
  overflow: hidden;
}
.dark .bl-empty { background: #1f2937; border-color: #374151; }
.bl-empty::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(45deg, rgba(0,58,58,0.04) 0 1px, transparent 1px 22px);
  animation: blDrift 24s linear infinite;
  pointer-events: none;
}
.dark .bl-empty::before { background-image: repeating-linear-gradient(45deg, rgba(45,212,191,0.05) 0 1px, transparent 1px 22px); }

.bl-empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 1.25rem;
  background: linear-gradient(135deg, #003A3A 0%, #005454 100%);
  box-shadow: 0 8px 24px rgba(0,58,58,0.22), inset 0 1px 0 rgba(255,255,255,0.1);
  color: #ffffff;
  margin-bottom: 1.25rem;
}
.dark .bl-empty-icon { box-shadow: 0 8px 24px rgba(0,58,58,0.4); }

/* Value-prop feature tiles inside the empty state */
.bl-feature-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #f3f4f6;
}
@media (min-width: 768px) { .bl-feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.dark .bl-feature-grid { border-top-color: #374151; }

.bl-feature {
  padding: 1.25rem 1rem;
  border-radius: 1rem;
  background: rgba(0,58,58,0.03);
  border: 1px solid rgba(0,58,58,0.08);
  text-align: left;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.bl-feature:hover {
  transform: translateY(-2px);
  background: rgba(0,58,58,0.06);
  border-color: rgba(0,58,58,0.18);
}
.dark .bl-feature { background: rgba(45,212,191,0.05); border-color: rgba(45,212,191,0.15); }
.dark .bl-feature:hover { background: rgba(45,212,191,0.08); border-color: rgba(45,212,191,0.3); }

.bl-feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 0.625rem;
  background: rgba(0,58,58,0.1);
  color: #003A3A;
  margin-bottom: 0.5rem;
}
.dark .bl-feature-icon { background: rgba(45,212,191,0.15); color: #5eead4; }

.bl-feature-title { font-size: 0.875rem; font-weight: 700; color: #0f172a; margin-bottom: 0.25rem; }
.bl-feature-desc  { font-size: 0.75rem; color: #6b7280; line-height: 1.5; }
.dark .bl-feature-title { color: #f9fafb; }
.dark .bl-feature-desc  { color: #9ca3af; }

/* --- Keyframes ------------------------------------------------------------- */
@keyframes blFadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes blShimmer {
  0%, 100% { filter: brightness(1); }
  50%      { filter: brightness(1.25); }
}

@keyframes blBreathe {
  0%, 100% { border-color: var(--breathe-from, currentColor); box-shadow: 0 0 0 0 currentColor; }
  50%      { box-shadow: 0 0 0 4px transparent; }
}

@keyframes blDrift {
  from { background-position: 0 0; }
  to   { background-position: 240px 240px; }
}

/* ============================================================================
   Business · Locations — inner pages (lighter treatment)
   The bold #003A3A hero stays only on the locations index. Inner pages
   (Available / Show / Reviews) use these lighter components so the brand
   color is still present without dominating every screen.
   ========================================================================= */

/* Page header — back arrow + title + thin teal accent underline */
.bl-page-header { margin-bottom: 1.5rem; }
.bl-page-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 9999px;
  color: #6b7280;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  transition: all 0.15s ease;
  flex-shrink: 0;
}
.bl-page-back:hover {
  color: #003A3A;
  background: rgba(0,58,58,0.06);
  border-color: rgba(0,58,58,0.2);
  transform: translateX(-2px);
}
.dark .bl-page-back { color: #9ca3af; background: #1f2937; border-color: #374151; }
.dark .bl-page-back:hover { color: #5eead4; background: rgba(45,212,191,0.1); border-color: rgba(45,212,191,0.3); }

.bl-page-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
@media (min-width: 640px) { .bl-page-title { font-size: 2rem; } }
.dark .bl-page-title { color: #f9fafb; }

.bl-page-title-accent {
  display: block;
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, #003A3A, #2dd4bf);
  border-radius: 2px;
  margin-top: 0.625rem;
}

.bl-page-subtitle {
  color: #6b7280;
  font-size: 0.875rem;
  margin-top: 0.625rem;
}
.dark .bl-page-subtitle { color: #9ca3af; }

/* Slot pill — soft teal, used in inner-page headers */
.bl-slot-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.9rem;
  border-radius: 9999px;
  background: rgba(0,58,58,0.06);
  border: 1px solid rgba(0,58,58,0.18);
  color: #003A3A;
  font-size: 0.75rem;
  font-weight: 600;
}
.bl-slot-pill strong { font-weight: 800; }
.bl-slot-pill .dot {
  width: 6px; height: 6px; border-radius: 9999px;
  background: #003A3A;
}
.dark .bl-slot-pill { background: rgba(45,212,191,0.1); border-color: rgba(45,212,191,0.3); color: #5eead4; }
.dark .bl-slot-pill .dot { background: #5eead4; }

/* Connect-card — used on the Available page for Google Business locations */
.bl-connect-card {
  position: relative;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.25s ease, border-color 0.2s ease;
  opacity: 0;
  transform: translateY(10px);
  animation: blFadeUp 0.45s ease-out forwards;
}
.bl-connect-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(0,58,58,0.10), 0 4px 12px rgba(0,0,0,0.03);
  border-color: rgba(0,58,58,0.25);
}
.bl-connect-card.is-connected { background: linear-gradient(135deg, rgba(0,58,58,0.03), transparent); }
.bl-connect-card.is-connected:hover { transform: none; box-shadow: none; border-color: #e5e7eb; }
.dark .bl-connect-card { background: #1f2937; border-color: #374151; }
.dark .bl-connect-card:hover {
  box-shadow: 0 14px 30px rgba(0,0,0,0.4), 0 4px 12px rgba(0,58,58,0.2);
  border-color: rgba(45,212,191,0.35);
}
.dark .bl-connect-card.is-connected { background: linear-gradient(135deg, rgba(45,212,191,0.04), transparent); }

.bl-connected-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.6rem;
  border-radius: 9999px;
  background: rgba(0,58,58,0.1);
  color: #003A3A;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.dark .bl-connected-badge { background: rgba(45,212,191,0.15); color: #5eead4; }

/* Review-detail card with a thin gradient strip across the top */
.bl-review-card {
  position: relative;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 1.25rem;
  overflow: hidden;
}
.bl-review-card::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 3px;
  background: linear-gradient(90deg, #003A3A, #2dd4bf);
}
.dark .bl-review-card { background: #1f2937; border-color: #374151; }

/* Owner-reply panel inside a review card */
.bl-owner-reply {
  border-left: 3px solid #003A3A;
  background: rgba(0,58,58,0.04);
  border-radius: 0.625rem;
  padding: 1rem;
}
.dark .bl-owner-reply { border-left-color: #2dd4bf; background: rgba(45,212,191,0.06); }

/* Inputs with teal focus ring */
.bl-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 0.625rem;
  background: #ffffff;
  color: #0f172a;
  font-size: 0.875rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.bl-input:focus {
  outline: none;
  border-color: #003A3A;
  box-shadow: 0 0 0 3px rgba(0,58,58,0.15);
}
.dark .bl-input { background: #111827; color: #f9fafb; border-color: #374151; }
.dark .bl-input:focus { border-color: #2dd4bf; box-shadow: 0 0 0 3px rgba(45,212,191,0.2); }

/* Modal panel + backdrop */
.bl-modal-backdrop {
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
}
.bl-modal-panel {
  background: #ffffff;
  border-radius: 1.25rem;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.18);
  border: 1px solid #e5e7eb;
}
.dark .bl-modal-panel { background: #1f2937; border-color: #374151; }

/* "Danger" outlined button (delete reply etc.) */
.bl-btn-danger-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.9rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #b91c1c;
  background: transparent;
  border: 1px solid #fecaca;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.bl-btn-danger-outline:hover { background: #fef2f2; border-color: #ef4444; }
.dark .bl-btn-danger-outline { color: #fca5a5; border-color: rgba(239,68,68,0.4); }
.dark .bl-btn-danger-outline:hover { background: rgba(239,68,68,0.1); border-color: #ef4444; }

/* ============================================================================
   Business · AI Reply pages
   Shared component classes used across AI Reply Dashboard / Settings /
   Templates so the trio reads as one coordinated section instead of three
   pages with mismatched colour palettes (was: purple + green + teal).
   ========================================================================= */

/* ============================================================================
   Rich-hero adornments
   Layered on top of the base .bl-hero to give it more visual depth without
   replacing it. Adds floating teal "orbs" in the background, an icon tile
   with a pulsing live dot, and a sliding gradient accent stripe at the
   bottom edge. Used on the AI Reply section header — composable with the
   existing .bl-hero / .bl-hero-pattern classes.
   ========================================================================= */

/* Soft floating blurred orbs in the hero background */
.bl-hero-orb {
  position: absolute;
  border-radius: 9999px;
  filter: blur(38px);
  pointer-events: none;
  opacity: 0.5;
  animation: blHeroOrbFloat 14s ease-in-out infinite;
}
.bl-hero-orb-1 {
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(45, 212, 191, 0.55), transparent 70%);
  top: -70px; right: 8%;
  animation-delay: 0s;
}
.bl-hero-orb-2 {
  width: 150px; height: 150px;
  background: radial-gradient(circle, rgba(94, 234, 212, 0.4), transparent 70%);
  bottom: -45px; right: 25%;
  animation-delay: -5s;
}
.bl-hero-orb-3 {
  width: 110px; height: 110px;
  background: radial-gradient(circle, rgba(45, 212, 191, 0.3), transparent 70%);
  top: 35%; right: 4%;
  animation-delay: -9s;
}

@keyframes blHeroOrbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(-22px, 10px) scale(1.06); }
  66%      { transform: translate(16px, -8px) scale(0.94); }
}

/* Icon tile inside the hero — frosted-glass look with a pulsing glow */
.bl-hero-icon-tile {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 0.875rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(45, 212, 191, 0.28) 100%);
  color: #ffffff;
  flex-shrink: 0;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.2),
    0 6px 20px rgba(45, 212, 191, 0.22),
    0 0 24px rgba(45, 212, 191, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: blHeroIconGlow 3.6s ease-in-out infinite;
}

@keyframes blHeroIconGlow {
  0%, 100% {
    box-shadow:
      inset 0 0 0 1px rgba(255, 255, 255, 0.2),
      0 6px 20px rgba(45, 212, 191, 0.22),
      0 0 24px rgba(45, 212, 191, 0.12);
  }
  50% {
    box-shadow:
      inset 0 0 0 1px rgba(255, 255, 255, 0.38),
      0 10px 30px rgba(45, 212, 191, 0.4),
      0 0 40px rgba(45, 212, 191, 0.22);
  }
}

/* Live pulse dot on the icon corner */
.bl-hero-icon-tile::after {
  content: "";
  position: absolute;
  top: -4px;
  right: -4px;
  width: 14px;
  height: 14px;
  border-radius: 9999px;
  background: linear-gradient(135deg, #5eead4, #ffffff);
  box-shadow:
    0 0 0 3px #003A3A,
    0 0 0 0 rgba(94, 234, 212, 0.7);
  animation: blHeroLiveDot 1.8s ease-in-out infinite;
}

@keyframes blHeroLiveDot {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 3px #003A3A, 0 0 0 0 rgba(94, 234, 212, 0.7);
  }
  50% {
    transform: scale(1.18);
    box-shadow: 0 0 0 3px #003A3A, 0 0 0 8px rgba(94, 234, 212, 0);
  }
}

/* Animated accent stripe at the bottom edge of the hero */
.bl-hero-accent {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(45, 212, 191, 0.7) 30%,
    rgba(94, 234, 212, 0.95) 50%,
    rgba(45, 212, 191, 0.7) 70%,
    transparent 100%);
  background-size: 200% 100%;
  animation: blHeroAccentSlide 5s linear infinite;
}

@keyframes blHeroAccentSlide {
  from { background-position: 200% 0; }
  to   { background-position: -200% 0; }
}

/* Soft, refined header card — white surface with teal accents:
   a diagonal-line background pattern, radial watermark in the top-right,
   a gradient icon tile with a pulsing live dot, and a thin gradient accent
   line under the title. Used on the AI Reply section so the header has
   plenty of personality and animation without resorting to a full-teal
   slab like .bl-hero. */
.bl-soft-header {
  position: relative;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  padding: 1.5rem 1.75rem;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  transition: box-shadow 0.4s ease, border-color 0.3s ease;
}
.bl-soft-header:hover {
  box-shadow: 0 4px 14px rgba(0, 58, 58, 0.07);
  border-color: rgba(0, 58, 58, 0.18);
}
.dark .bl-soft-header {
  background: #1f2937;
  border-color: #374151;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}
.dark .bl-soft-header:hover {
  box-shadow: 0 4px 14px rgba(45, 212, 191, 0.15);
  border-color: rgba(45, 212, 191, 0.3);
}

/* Layer 1 — diagonal-line background pattern, faded from top-left */
.bl-soft-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    135deg,
    rgba(0, 58, 58, 0.04) 0 1px,
    transparent 1px 22px
  );
  -webkit-mask-image: linear-gradient(135deg, rgba(0,0,0,1) 0%, rgba(0,0,0,0.15) 75%);
  mask-image: linear-gradient(135deg, rgba(0,0,0,1) 0%, rgba(0,0,0,0.15) 75%);
  pointer-events: none;
}
.dark .bl-soft-header::before {
  background-image: repeating-linear-gradient(
    135deg,
    rgba(45, 212, 191, 0.05) 0 1px,
    transparent 1px 22px
  );
}

/* Layer 2 — radial teal watermark in the top-right corner */
.bl-soft-header::after {
  content: "";
  position: absolute;
  top: -40%;
  right: -8%;
  width: 45%;
  height: 220%;
  background: radial-gradient(ellipse at center, rgba(0, 58, 58, 0.08) 0%, rgba(0, 58, 58, 0) 60%);
  pointer-events: none;
}
.dark .bl-soft-header::after {
  background: radial-gradient(ellipse at center, rgba(45, 212, 191, 0.1) 0%, rgba(45, 212, 191, 0) 60%);
}

/* Icon tile — gradient + pulsing glow animation */
.bl-soft-header-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, rgba(0, 58, 58, 0.1) 0%, rgba(45, 212, 191, 0.22) 100%);
  color: #003A3A;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(0, 58, 58, 0.15), 0 4px 12px rgba(0, 58, 58, 0.06);
  animation: blSoftIconPulse 3.2s ease-in-out infinite;
}
.dark .bl-soft-header-icon {
  background: linear-gradient(135deg, rgba(45, 212, 191, 0.18) 0%, rgba(94, 234, 212, 0.28) 100%);
  color: #5eead4;
  box-shadow: inset 0 0 0 1px rgba(45, 212, 191, 0.3), 0 4px 12px rgba(45, 212, 191, 0.15);
}

@keyframes blSoftIconPulse {
  0%, 100% {
    box-shadow: inset 0 0 0 1px rgba(0, 58, 58, 0.15), 0 4px 12px rgba(0, 58, 58, 0.06);
  }
  50% {
    box-shadow: inset 0 0 0 1px rgba(0, 58, 58, 0.3), 0 8px 24px rgba(0, 58, 58, 0.18);
  }
}

/* Live status dot — mint pulse on the icon corner */
.bl-soft-header-icon::after {
  content: "";
  position: absolute;
  top: -3px;
  right: -3px;
  width: 10px;
  height: 10px;
  border-radius: 9999px;
  background: linear-gradient(135deg, #2dd4bf, #5eead4);
  box-shadow: 0 0 0 2px #ffffff, 0 0 8px rgba(45, 212, 191, 0.55);
  animation: blLiveDot 1.6s ease-in-out infinite;
}
.dark .bl-soft-header-icon::after {
  box-shadow: 0 0 0 2px #1f2937, 0 0 8px rgba(45, 212, 191, 0.7);
}

@keyframes blLiveDot {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 2px #ffffff, 0 0 0 0 rgba(45, 212, 191, 0.6);
  }
  50% {
    transform: scale(1.1);
    box-shadow: 0 0 0 2px #ffffff, 0 0 0 6px rgba(45, 212, 191, 0);
  }
}

/* Title — kept on a single line, dark text (no teal) */
.bl-soft-header-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.01em;
  line-height: 1.2;
  white-space: nowrap;
  position: relative;
  display: inline-block;
}
@media (min-width: 640px) {
  .bl-soft-header-title { font-size: 1.75rem; }
}
.dark .bl-soft-header-title { color: #f9fafb; }

/* Thin gradient accent line that grows under the title on hover of the
   header card — a subtle "wake-up" interaction that's noticeable but not
   distracting. */
.bl-soft-header-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 32px;
  height: 2px;
  background: linear-gradient(90deg, #003A3A 0%, #2dd4bf 100%);
  border-radius: 2px;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.bl-soft-header:hover .bl-soft-header-title::after {
  width: 80px;
}

.bl-soft-header-sub {
  font-size: 0.875rem;
  color: #6b7280;
  margin-top: 0.75rem;
  line-height: 1.55;
  max-width: 42rem;
}
.dark .bl-soft-header-sub { color: #9ca3af; }

/* Tab pills row at the top of every AI Reply page.
   `display` is intentionally NOT set here — leaving it free for Tailwind's
   `lg:hidden` / `flex` / `inline-flex` utilities to take over. Setting it
   here previously caused the mobile pill bar to keep rendering at lg+,
   squashing the main column inside the AI Reply sidebar layout. */
.bl-tabs {
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem;
  border-radius: 0.625rem;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
}
.dark .bl-tabs { background: #111827; border-color: #1f2937; }

.bl-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.9rem;
  border-radius: 0.45rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #6b7280;
  background: transparent;
  transition: color 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.bl-tab:hover { color: #003A3A; }
.bl-tab-active {
  background: #ffffff;
  color: #003A3A;
  box-shadow: 0 1px 2px rgba(0,0,0,0.06), inset 0 0 0 1px rgba(0,58,58,0.08);
}
.dark .bl-tab { color: #9ca3af; }
.dark .bl-tab:hover { color: #5eead4; }
.dark .bl-tab-active {
  background: #1f2937;
  color: #5eead4;
  box-shadow: 0 1px 2px rgba(0,0,0,0.4), inset 0 0 0 1px rgba(45,212,191,0.2);
}

/* Stat tile — small dashboard counter */
.bl-stat-tile {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 0.875rem;
  padding: 1rem 1.25rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.bl-stat-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0,58,58,0.08);
  border-color: rgba(0,58,58,0.2);
}
.dark .bl-stat-tile { background: #1f2937; border-color: #374151; }
.dark .bl-stat-tile:hover { border-color: rgba(45,212,191,0.3); box-shadow: 0 8px 18px rgba(0,0,0,0.4); }
/* Clickable variant — used when the tile is an <a>. Strips link defaults
   and lets the same base hover lift fire. */
.bl-stat-tile-link { display: block; text-decoration: none; color: inherit; cursor: pointer; }
.bl-stat-tile-link:hover { text-decoration: none; }

.bl-stat-label { font-size: 0.65rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: #6b7280; }
.bl-stat-value { font-size: 1.75rem; font-weight: 700; color: #0f172a; margin-top: 0.25rem; line-height: 1; }
.bl-stat-value-accent  { color: #003A3A; }
.bl-stat-value-success { color: #15803d; }
.bl-stat-value-warning { color: #b45309; }
.dark .bl-stat-label { color: #9ca3af; }
.dark .bl-stat-value { color: #f9fafb; }
.dark .bl-stat-value-accent  { color: #5eead4; }
.dark .bl-stat-value-success { color: #86efac; }
.dark .bl-stat-value-warning { color: #fcd34d; }

/* Section card with header band — used by edit forms */
.bl-section {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  overflow: hidden;
  margin-bottom: 1.5rem;
}
.dark .bl-section { background: #1f2937; border-color: #374151; }

.bl-section-head {
  padding: 1.25rem;
  border-bottom: 1px solid #f3f4f6;
  background: linear-gradient(180deg, rgba(0,58,58,0.025) 0%, transparent 100%);
}
.dark .bl-section-head { border-bottom-color: #374151; background: linear-gradient(180deg, rgba(45,212,191,0.04) 0%, transparent 100%); }

.bl-section-title { font-size: 1rem; font-weight: 700; color: #0f172a; }
.bl-section-hint  { font-size: 0.75rem; color: #6b7280; margin-top: 0.25rem; }
.dark .bl-section-title { color: #f9fafb; }
.dark .bl-section-hint  { color: #9ca3af; }

.bl-section-body { padding: 1.25rem; }

/* Table row — soft teal hover. Used on table rows inside `.bl-section`. */
.bl-row { transition: background 0.15s ease; }
.bl-row:hover { background: rgba(0, 58, 58, 0.035); }
.dark .bl-row:hover { background: rgba(45, 212, 191, 0.05); }

/* List-card (history items, location list rows) */
.bl-list-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 0.875rem;
  padding: 1rem 1.25rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.bl-list-card:hover {
  border-color: rgba(0,58,58,0.25);
  box-shadow: 0 8px 18px rgba(0,58,58,0.06);
}
.dark .bl-list-card { background: #1f2937; border-color: #374151; }
.dark .bl-list-card:hover { border-color: rgba(45,212,191,0.3); box-shadow: 0 8px 18px rgba(0,0,0,0.35); }

/* Status pill variants */
.bl-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.22rem 0.6rem;
  border-radius: 9999px;
  font-size: 0.68rem;
  font-weight: 600;
  border: 1px solid transparent;
}
.bl-pill-neutral { background: #f3f4f6; color: #6b7280; }
.bl-pill-success { background: #f0fdf4; color: #15803d; border-color: #bbf7d0; }
.bl-pill-warning { background: #fffbeb; color: #92400e; border-color: #fde68a; }
.bl-pill-error   { background: #fef2f2; color: #b91c1c; border-color: #fecaca; }
.bl-pill-info    { background: rgba(59,130,246,0.08); color: #1d4ed8; border-color: rgba(59,130,246,0.2); }
.bl-pill-brand   { background: rgba(0,58,58,0.08); color: #003A3A; border-color: rgba(0,58,58,0.18); }
.dark .bl-pill-neutral { background: #374151; color: #d1d5db; }
.dark .bl-pill-success { background: rgba(34,197,94,0.18); color: #86efac; border-color: rgba(34,197,94,0.3); }
.dark .bl-pill-warning { background: rgba(245,158,11,0.18); color: #fcd34d; border-color: rgba(245,158,11,0.3); }
.dark .bl-pill-error   { background: rgba(239,68,68,0.18); color: #fca5a5; border-color: rgba(239,68,68,0.3); }
.dark .bl-pill-info    { background: rgba(59,130,246,0.18); color: #93c5fd; border-color: rgba(59,130,246,0.3); }
.dark .bl-pill-brand   { background: rgba(45,212,191,0.15); color: #5eead4; border-color: rgba(45,212,191,0.3); }

/* Radio-card option (tone/length/category selectable cards) */
.bl-radio-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.625rem;
  background: #ffffff;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  text-align: center;
}
.bl-radio-card:hover { border-color: rgba(0,58,58,0.4); }
.bl-radio-card-active {
  border-color: #003A3A;
  background: rgba(0,58,58,0.05);
  box-shadow: 0 0 0 3px rgba(0,58,58,0.12);
}
.bl-radio-card-active .bl-radio-card-label { color: #003A3A; font-weight: 700; }
.dark .bl-radio-card { background: #1f2937; border-color: #374151; }
.dark .bl-radio-card:hover { border-color: rgba(45,212,191,0.45); }
.dark .bl-radio-card-active {
  border-color: #2dd4bf;
  background: rgba(45,212,191,0.08);
  box-shadow: 0 0 0 3px rgba(45,212,191,0.18);
}
.dark .bl-radio-card-active .bl-radio-card-label { color: #5eead4; }

.bl-radio-card-label { font-size: 0.875rem; font-weight: 600; color: #374151; }
.bl-radio-card-hint  { font-size: 0.7rem; color: #6b7280; margin-top: 0.15rem; }
.dark .bl-radio-card-label { color: #d1d5db; }
.dark .bl-radio-card-hint  { color: #9ca3af; }

/* Stacked variant — left-aligned with multi-line hint underneath. Used
   for the auto-reply mode cards where each option has a longer
   description that wraps. */
.bl-radio-card-stacked { align-items: flex-start; text-align: left; padding: 0.85rem 1rem; }
.bl-radio-card-stacked .bl-radio-card-hint { margin-top: 0.3rem; line-height: 1.35; }

/* Banner box (info / warning / brand) */
.bl-banner {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-radius: 0.875rem;
  border: 1px solid;
}
.bl-banner-brand { background: rgba(0,58,58,0.04); border-color: rgba(0,58,58,0.18); color: #003A3A; }
.bl-banner-warning { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.dark .bl-banner-brand { background: rgba(45,212,191,0.06); border-color: rgba(45,212,191,0.3); color: #5eead4; }
.dark .bl-banner-warning { background: rgba(245,158,11,0.1); border-color: rgba(245,158,11,0.3); color: #fcd34d; }

/* --- Structured header card ------------------------------------------------
   Lighter alternative to the bold .bl-hero. Matches the sub_agencies page
   pattern: a 3px teal→mint gradient stripe across the top, a white surface,
   icon tile + title on the left, action area on the right, and an optional
   second row below a divider for stats / search. Sits on every "main" page
   inside the business namespace where we want the brand colour present but
   not dominating. */
.bl-header-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.bl-header-card::before {
  content: "";
  display: block;
  height: 3px;
  background: linear-gradient(90deg, #003A3A 0%, #0a6e6e 50%, #2dd4bf 100%);
}
.dark .bl-header-card { background: #1f2937; border-color: #374151; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); }

.bl-header-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 0.75rem;
  background: rgba(0, 58, 58, 0.08);
  color: #003A3A;
  flex-shrink: 0;
}
.dark .bl-header-icon { background: rgba(45, 212, 191, 0.12); color: #5eead4; }

.bl-header-title { font-size: 1.25rem; font-weight: 700; color: #003A3A; letter-spacing: -0.005em; }
.bl-header-sub   { font-size: 0.72rem; color: #6b7280; margin-top: 2px; }
.dark .bl-header-title { color: #5eead4; }
.dark .bl-header-sub   { color: #9ca3af; }

.bl-header-divider {
  border-top: 1px solid #f3f4f6;
  margin-top: 1rem;
  padding-top: 1rem;
}
.dark .bl-header-divider { border-top-color: rgba(255, 255, 255, 0.06); }

/* Stat pill — small chip used inside the header's bottom row */
.bl-stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 600;
  border: 1px solid transparent;
  white-space: nowrap;
}
.bl-stat-pill strong { font-weight: 800; }
.bl-stat-pill-brand   { background: rgba(0, 58, 58, 0.06);   color: #003A3A; border-color: rgba(0, 58, 58, 0.18); }
.bl-stat-pill-success { background: rgba(34, 197, 94, 0.08); color: #15803d; border-color: rgba(34, 197, 94, 0.28); }
.bl-stat-pill-warning { background: rgba(245, 158, 11, 0.08);color: #92400e; border-color: rgba(245, 158, 11, 0.3);  }
.bl-stat-pill-neutral { background: #f9fafb; color: #6b7280; border-color: #e5e7eb; }
.dark .bl-stat-pill-brand   { background: rgba(45, 212, 191, 0.14); color: #5eead4; border-color: rgba(45, 212, 191, 0.3); }
.dark .bl-stat-pill-success { background: rgba(34, 197, 94, 0.16);  color: #86efac; border-color: rgba(34, 197, 94, 0.3); }
.dark .bl-stat-pill-warning { background: rgba(245, 158, 11, 0.16); color: #fcd34d; border-color: rgba(245, 158, 11, 0.3); }
.dark .bl-stat-pill-neutral { background: #111827; color: #d1d5db; border-color: #374151; }

/* Capacity meter (horizontal bar used in the header for slot usage) */
.bl-capacity-bar {
  position: relative;
  height: 6px;
  width: 84px;
  background: #e5e7eb;
  border-radius: 9999px;
  overflow: hidden;
  flex-shrink: 0;
}
.bl-capacity-bar-fill {
  position: absolute;
  inset: 0 auto 0 0;
  background: linear-gradient(90deg, #003A3A, #2dd4bf);
  border-radius: 9999px;
  transition: width 0.6s ease;
}
.dark .bl-capacity-bar { background: #374151; }
.dark .bl-capacity-bar-fill { background: linear-gradient(90deg, #2dd4bf, #5eead4); }

/* ============================================================================
   Business · AI Reply sidebar (Settings / Templates / History)
   Collapsible vertical nav, controlled by ai_sidebar_controller.js. The
   sidebar lives at lg+; on smaller viewports the partial falls back to a
   horizontal pill row using `lg:hidden` / `hidden lg:block`.
   ========================================================================= */

.bl-ai-sidebar {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  padding: 1rem 0.75rem;
  width: 100%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}
.dark .bl-ai-sidebar { background: #1f2937; border-color: #374151; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); }

/* Decorative gradient stripe on the LEFT edge of the sidebar — distinct
   from sub_agencies' top stripe, gives the sidebar a vertical "spine". */
.bl-ai-sidebar::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.25rem;
  bottom: 1.25rem;
  width: 3px;
  background: linear-gradient(180deg, #003A3A 0%, #0a6e6e 50%, #2dd4bf 100%);
  border-radius: 0 4px 4px 0;
  opacity: 0.55;
  transition: opacity 0.3s ease;
}
.bl-ai-sidebar:hover::before { opacity: 0.85; }

@media (min-width: 1024px) {
  .bl-ai-sidebar { width: 14rem; flex-shrink: 0; }
  .bl-ai-sidebar.is-collapsed { width: 4.5rem; padding: 1rem 0.5rem; }
}

/* Section label — "AI Reply" header at the top of the sidebar */
.bl-ai-sidebar-label {
  font-size: 0.6rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #6b7280;
  padding: 0.25rem 0.5rem 0.75rem 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: padding 0.3s ease;
}
.dark .bl-ai-sidebar-label { color: #9ca3af; }
.bl-ai-sidebar-label-text { transition: opacity 0.2s ease, width 0.2s ease; }
.bl-ai-sidebar.is-collapsed .bl-ai-sidebar-label {
  justify-content: center;
  padding: 0.25rem 0 0.75rem 0;
}
.bl-ai-sidebar.is-collapsed .bl-ai-sidebar-label-text {
  opacity: 0;
  width: 0;
  overflow: hidden;
}

.bl-ai-sidebar-label-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: linear-gradient(135deg, #003A3A, #2dd4bf);
  box-shadow: 0 0 0 3px rgba(0, 58, 58, 0.1);
  flex-shrink: 0;
}
.dark .bl-ai-sidebar-label-dot { box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.18); }

.bl-ai-sidebar-divider {
  border-top: 1px solid #f3f4f6;
  margin: 0.5rem 0;
}
.dark .bl-ai-sidebar-divider { border-top-color: #374151; }

/* Nav item — flex row with icon tile + label */
.bl-ai-sidebar-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.55rem 0.75rem;
  border-radius: 0.625rem;
  color: #6b7280;
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  transition: background 0.18s ease, color 0.18s ease, transform 0.15s ease;
  margin-bottom: 2px;
}
.bl-ai-sidebar-item:hover {
  background: rgba(0, 58, 58, 0.04);
  color: #003A3A;
  transform: translateX(2px);
}
.dark .bl-ai-sidebar-item { color: #9ca3af; }
.dark .bl-ai-sidebar-item:hover {
  background: rgba(45, 212, 191, 0.06);
  color: #5eead4;
}

/* Active item — tinted background + vertical accent rail on the left */
.bl-ai-sidebar-item-active {
  background: rgba(0, 58, 58, 0.08);
  color: #003A3A;
  box-shadow: inset 0 0 0 1px rgba(0, 58, 58, 0.08);
}
.bl-ai-sidebar-item-active:hover {
  transform: none;
  background: rgba(0, 58, 58, 0.1);
}
.bl-ai-sidebar-item-active::before {
  content: "";
  position: absolute;
  left: -0.75rem;
  top: 0.625rem;
  bottom: 0.625rem;
  width: 3px;
  background: linear-gradient(180deg, #003A3A, #2dd4bf);
  border-radius: 0 4px 4px 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.dark .bl-ai-sidebar-item-active {
  background: rgba(45, 212, 191, 0.1);
  color: #5eead4;
  box-shadow: inset 0 0 0 1px rgba(45, 212, 191, 0.18);
}
.dark .bl-ai-sidebar-item-active::before {
  background: linear-gradient(180deg, #2dd4bf, #5eead4);
}

.bl-ai-sidebar.is-collapsed .bl-ai-sidebar-item-active::before {
  left: -0.5rem;
}

/* Icon tile inside each item */
.bl-ai-sidebar-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 0.5rem;
  background: #f3f4f6;
  color: #6b7280;
  flex-shrink: 0;
  transition: background 0.18s ease, color 0.18s ease;
}
.bl-ai-sidebar-item:hover .bl-ai-sidebar-icon {
  background: rgba(0, 58, 58, 0.1);
  color: #003A3A;
}
.bl-ai-sidebar-item-active .bl-ai-sidebar-icon {
  background: rgba(0, 58, 58, 0.14);
  color: #003A3A;
  box-shadow: 0 2px 6px rgba(0, 58, 58, 0.12);
}
.dark .bl-ai-sidebar-icon { background: #374151; color: #9ca3af; }
.dark .bl-ai-sidebar-item:hover .bl-ai-sidebar-icon,
.dark .bl-ai-sidebar-item-active .bl-ai-sidebar-icon {
  background: rgba(45, 212, 191, 0.15);
  color: #5eead4;
}

/* Label text — fades to zero width when collapsed */
.bl-ai-sidebar-item-text {
  transition: opacity 0.2s ease, width 0.2s ease;
  flex: 1;
}
.bl-ai-sidebar.is-collapsed .bl-ai-sidebar-item {
  justify-content: center;
  padding: 0.55rem;
  gap: 0;
}
.bl-ai-sidebar.is-collapsed .bl-ai-sidebar-item-text {
  opacity: 0;
  width: 0;
  overflow: hidden;
}

/* Active dot indicator on the right when expanded — replaces the chevron
   that would otherwise feel cluttered */
.bl-ai-sidebar-item-dot {
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  background: #003A3A;
  flex-shrink: 0;
  box-shadow: 0 0 8px rgba(0, 58, 58, 0.4);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.bl-ai-sidebar.is-collapsed .bl-ai-sidebar-item-dot {
  opacity: 0;
  transform: scale(0);
}
.dark .bl-ai-sidebar-item-dot { background: #5eead4; box-shadow: 0 0 8px rgba(45, 212, 191, 0.5); }

/* Toggle button at the bottom */
.bl-ai-sidebar-toggle {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.55rem;
  border-radius: 0.625rem;
  background: #f9fafb;
  color: #6b7280;
  font-size: 0.7rem;
  font-weight: 600;
  border: 1px solid #e5e7eb;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.bl-ai-sidebar-toggle:hover {
  background: rgba(0, 58, 58, 0.05);
  border-color: rgba(0, 58, 58, 0.2);
  color: #003A3A;
}
.dark .bl-ai-sidebar-toggle { background: #111827; border-color: #374151; color: #9ca3af; }
.dark .bl-ai-sidebar-toggle:hover { background: rgba(45, 212, 191, 0.07); border-color: rgba(45, 212, 191, 0.3); color: #5eead4; }

.bl-ai-sidebar-toggle-icon {
  flex-shrink: 0;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.bl-ai-sidebar.is-collapsed .bl-ai-sidebar-toggle-icon {
  transform: rotate(180deg);
}

/* ============================================================================
   Business · Plans & Pricing
   Outlined upgrade button with a multi-step hover animation (gradient
   fill-up + diagonal shimmer + lift + halo glow + arrow slide) and plan
   cards with a spring lift curve + animated premium ribbon.
   ========================================================================= */

/* --- Outlined upgrade button --------------------------------------------- */
.bl-upgrade-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.7rem 1.5rem;
  border-radius: 9999px;
  background: transparent;
  color: #003A3A;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  border: 2px solid #003A3A;
  overflow: hidden;
  cursor: pointer;
  z-index: 0;
  transition:
    color 0.35s ease,
    border-color 0.35s ease,
    transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.35s ease;
}
.dark .bl-upgrade-btn { color: #5eead4; border-color: #2dd4bf; }

/* Fill-up gradient that slides in from the bottom on hover */
.bl-upgrade-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #003A3A 0%, #0a6e6e 50%, #2dd4bf 100%);
  transform: translateY(101%);
  transition: transform 0.45s cubic-bezier(0.65, 0, 0.35, 1);
  z-index: -1;
}
.dark .bl-upgrade-btn::before { background: linear-gradient(135deg, #2dd4bf 0%, #5eead4 100%); }

/* Diagonal shimmer sweep that crosses the button on hover */
.bl-upgrade-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 55%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: skewX(-22deg);
  transition: left 0.85s ease;
  pointer-events: none;
}

.bl-upgrade-btn:hover {
  color: #ffffff;
  border-color: transparent;
  transform: translateY(-3px) scale(1.03);
  box-shadow:
    0 14px 32px rgba(0, 58, 58, 0.32),
    0 0 0 5px rgba(0, 58, 58, 0.1);
}
.bl-upgrade-btn:hover::before { transform: translateY(0); }
.bl-upgrade-btn:hover::after  { left: 150%; }
.bl-upgrade-btn:active        { transform: translateY(-1px) scale(0.99); }

.dark .bl-upgrade-btn:hover {
  color: #0f172a;
  box-shadow:
    0 14px 32px rgba(45, 212, 191, 0.45),
    0 0 0 5px rgba(45, 212, 191, 0.15);
}

/* Arrow icon — slides right on hover */
.bl-upgrade-btn-arrow {
  transition: transform 0.32s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.bl-upgrade-btn:hover .bl-upgrade-btn-arrow { transform: translateX(4px); }

/* --- Plan card ----------------------------------------------------------- */
.bl-plan-card {
  position: relative;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 1.25rem;
  overflow: hidden;
  opacity: 0;
  transform: translateY(14px);
  animation: blFadeUp 0.5s ease-out forwards;
  transition:
    transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.4s ease,
    border-color 0.3s ease;
}
.dark .bl-plan-card { background: #1f2937; border-color: #374151; }

.bl-plan-card:hover {
  transform: translateY(-6px) scale(1.015);
  box-shadow: 0 24px 48px rgba(0, 58, 58, 0.14), 0 8px 20px rgba(0, 58, 58, 0.08);
  border-color: rgba(0, 58, 58, 0.3);
}
.dark .bl-plan-card:hover {
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5), 0 8px 20px rgba(0, 58, 58, 0.35);
  border-color: rgba(45, 212, 191, 0.4);
}

/* Premium plan gets a permanent subtle glow + slightly stronger border */
.bl-plan-card-premium {
  border-color: rgba(0, 58, 58, 0.4);
  box-shadow: 0 8px 24px rgba(0, 58, 58, 0.1);
}
.dark .bl-plan-card-premium {
  border-color: rgba(45, 212, 191, 0.4);
  box-shadow: 0 8px 24px rgba(45, 212, 191, 0.18);
}

/* Plan ribbon — Premium has an auto-shimmer that loops every 3s */
.bl-plan-ribbon {
  position: relative;
  display: block;
  text-align: center;
  padding: 0.55rem 1rem;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  overflow: hidden;
}
.bl-plan-ribbon-premium {
  background: linear-gradient(135deg, #003A3A 0%, #0a6e6e 50%, #2dd4bf 100%);
  color: #ffffff;
}
.bl-plan-ribbon-premium::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: skewX(-25deg);
  animation: blRibbonShimmer 3.5s ease-in-out infinite;
}
.bl-plan-ribbon-business {
  background: linear-gradient(135deg, #1e40af, #3b82f6);
  color: #ffffff;
}

@keyframes blRibbonShimmer {
  0%, 100% { left: -100%; }
  50%      { left: 150%; }
}

/* "Popular" pulse badge */
.bl-plan-badge-pulse {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.6rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #ffffff;
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
  animation: blPulse 2.4s ease-in-out infinite;
}
.bl-plan-badge-pulse::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  background: #ffffff;
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.5);
  animation: blPulseDot 1.4s ease-in-out infinite;
}

@keyframes blPulse {
  0%, 100% { box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4); }
  50%      { box-shadow: 0 4px 18px rgba(245, 158, 11, 0.65); }
}
@keyframes blPulseDot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.55); }
  50%      { box-shadow: 0 0 0 5px rgba(255, 255, 255, 0); }
}

/* Savings badge — used on credit packs index when a pack has a better
   per-credit rate than the smallest pack. Floats top-right, mint gradient
   with subtle pulse so the eye lands on the savings cue. */
.bl-save-badge {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.65rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, #2dd4bf, #14b8a6);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  box-shadow: 0 4px 14px rgba(20, 184, 166, 0.4);
  animation: blSavePulse 2.6s ease-in-out infinite;
}
.dark .bl-save-badge {
  background: linear-gradient(135deg, #2dd4bf, #0d9488);
  box-shadow: 0 4px 14px rgba(45, 212, 191, 0.35);
}
@keyframes blSavePulse {
  0%, 100% { box-shadow: 0 4px 14px rgba(20, 184, 166, 0.4); }
  50%      { box-shadow: 0 6px 20px rgba(20, 184, 166, 0.65); }
}

/* Credit ring — the big gradient halo around the pack credits number on
   the credit pack show page. Conic-gradient border in brand teal with a
   slow rotation; inner white disc holds the count-up number + label. */
.bl-credit-ring {
  position: relative;
  width: 200px;
  height: 200px;
  border-radius: 9999px;
  padding: 6px;
  background: conic-gradient(from 180deg at 50% 50%, #003A3A 0deg, #2dd4bf 120deg, #5eead4 240deg, #003A3A 360deg);
  animation: blCreditRingSpin 14s linear infinite;
  box-shadow: 0 18px 40px -18px rgba(0, 58, 58, 0.45), 0 0 0 1px rgba(45, 212, 191, 0.15) inset;
}
.bl-credit-ring-inner {
  width: 100%;
  height: 100%;
  border-radius: 9999px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  animation: blCreditRingSpin 14s linear infinite reverse;
}
.bl-credit-ring-number {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  color: #003A3A;
}
.bl-credit-ring-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #6b7280;
  margin-top: 0.4rem;
}
.dark .bl-credit-ring-inner { background: #111827; }
.dark .bl-credit-ring-number { color: #5eead4; }
.dark .bl-credit-ring-label { color: #9ca3af; }
@keyframes blCreditRingSpin { to { transform: rotate(360deg); } }

/* Pack switcher chip — small clickable card showing credits + price for
   one pack, used in the "Compare packs" strip on the show page. Active
   state gets a filled deep-teal background. */
.bl-pack-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.75rem 0.5rem;
  border-radius: 0.85rem;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  text-decoration: none;
}
.bl-pack-chip:hover {
  transform: translateY(-2px);
  border-color: #2dd4bf;
  box-shadow: 0 8px 20px -10px rgba(0, 58, 58, 0.25);
}
.bl-pack-chip-credits {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
  color: #003A3A;
}
.bl-pack-chip-label {
  font-size: 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #9ca3af;
  font-weight: 700;
  margin-top: 0.15rem;
}
.bl-pack-chip-price {
  font-size: 0.85rem;
  font-weight: 700;
  color: #111827;
  margin-top: 0.4rem;
}
.bl-pack-chip-per {
  font-size: 0.65rem;
  color: #6b7280;
  margin-top: 0.1rem;
}
.bl-pack-chip-active {
  background: linear-gradient(135deg, #003A3A 0%, #0a6e6e 100%);
  border-color: #003A3A;
  box-shadow: 0 8px 20px -8px rgba(0, 58, 58, 0.5);
}
.bl-pack-chip-active .bl-pack-chip-credits,
.bl-pack-chip-active .bl-pack-chip-price { color: #ffffff; }
.bl-pack-chip-active .bl-pack-chip-label { color: #5eead4; }
.bl-pack-chip-active .bl-pack-chip-per { color: rgba(255, 255, 255, 0.7); }
.dark .bl-pack-chip { background: #1f2937; border-color: #374151; }
.dark .bl-pack-chip:hover { border-color: rgba(45, 212, 191, 0.4); }
.dark .bl-pack-chip-credits { color: #5eead4; }
.dark .bl-pack-chip-price { color: #f9fafb; }
.dark .bl-pack-chip-label { color: #6b7280; }
.dark .bl-pack-chip-per { color: #9ca3af; }
.dark .bl-pack-chip-active { background: linear-gradient(135deg, #0a6e6e 0%, #14b8a6 100%); border-color: #2dd4bf; }

/* Connected step cards — numbered step sequence used for the "How
   credits work" section on the credit packs page. Each step is a card
   joined to the next by a short connector segment that bridges the grid
   gap. Stacks into a single column on mobile (no connectors); from md+
   it lays out as 4 equal columns.

   Two-element split on purpose: the grid cell (.bl-timeline-step) carries
   the staggered blFadeUp entrance — whose `forwards` fill would otherwise
   pin `transform` and kill the hover lift — while the inner card
   (.bl-timeline-card) owns its own `transform` for the spring hover. */
.bl-timeline {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 768px) {
  .bl-timeline { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
}
.bl-timeline-step { position: relative; }
@media (min-width: 768px) {
  .bl-timeline-step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 37px;            /* node centre: 1.25rem card pad-top + 18px half-node */
    left: 100%;
    width: 1.5rem;        /* = grid gap */
    height: 2px;
    background: linear-gradient(to right, rgba(0, 58, 58, 0.45), rgba(0, 58, 58, 0.12));
  }
}
.bl-timeline-card {
  height: 100%;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 0.9rem;
  padding: 1.25rem;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}
.bl-timeline-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 28px -12px rgba(0, 58, 58, 0.3);
  border-color: rgba(0, 58, 58, 0.3);
}
.bl-timeline-node {
  width: 36px;
  height: 36px;
  margin-bottom: 0.85rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, #003A3A 0%, #0a6e6e 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
  box-shadow: 0 4px 12px -3px rgba(0, 58, 58, 0.5);
}
.bl-timeline-title { font-size: 0.9rem; font-weight: 700; color: #0f172a; }
.bl-timeline-desc  { font-size: 0.8rem; color: #6b7280; margin-top: 0.25rem; line-height: 1.5; }
.dark .bl-timeline-card { background: #1f2937; border-color: #374151; }
.dark .bl-timeline-card:hover { border-color: rgba(45, 212, 191, 0.35); box-shadow: 0 14px 28px -12px rgba(0, 0, 0, 0.6); }
.dark .bl-timeline-node { box-shadow: 0 4px 12px -3px rgba(0, 0, 0, 0.6); }
.dark .bl-timeline-title { color: #f9fafb; }
.dark .bl-timeline-desc  { color: #9ca3af; }
.dark .bl-timeline-step:not(:last-child)::after {
  background: linear-gradient(to right, rgba(45, 212, 191, 0.5), rgba(45, 212, 191, 0.12));
}

/* ============ Business sidebar — nav items, labels, credit card, utility row ============
   The sidebar moved off flat-gray active states onto the deep-teal system:
   active items get a teal tint + a short rounded accent bar at the left
   edge. The credit balance becomes a small teal-gradient card, and the
   notification bell / theme toggle live in a utility row under the logo. */
.bl-nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5rem 0.625rem;
  border-radius: 0.5rem;
  font-size: 13px;
  line-height: 1.2;
  color: #4b5563;
  transition: background 0.15s ease, color 0.15s ease;
}
.bl-nav-item:hover {
  background: rgba(0, 58, 58, 0.05);
  color: #003A3A;
}
.bl-nav-item-active {
  background: rgba(0, 58, 58, 0.08);
  color: #003A3A;
  font-weight: 600;
}
.bl-nav-item-active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 56%;
  border-radius: 0 3px 3px 0;
  background: #003A3A;
}
.dark .bl-nav-item { color: #9ca3af; }
.dark .bl-nav-item:hover { background: rgba(45, 212, 191, 0.08); color: #5eead4; }
.dark .bl-nav-item-active { background: rgba(45, 212, 191, 0.1); color: #5eead4; }
.dark .bl-nav-item-active::before { background: #2dd4bf; }

.bl-nav-label {
  padding: 0 0.5rem 0.3rem;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9ca3af;
}
.dark .bl-nav-label { color: #6b7280; }

/* Credit balance card — the one "stat" in the sidebar, deep-teal gradient. */
.bl-sidebar-credit {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, #003A3A 0%, #0a6e6e 100%);
  border-radius: 0.75rem;
  padding: 0.6rem 0.85rem;
  box-shadow: 0 6px 16px -8px rgba(0, 58, 58, 0.5);
}
.bl-sidebar-credit-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  flex-shrink: 0;
}
.bl-sidebar-credit-label { font-size: 10px; letter-spacing: 0.04em; color: rgba(255, 255, 255, 0.7); }
.bl-sidebar-credit-value { font-size: 1.05rem; font-weight: 700; color: #ffffff; line-height: 1.15; }

/* Utility button — notification bell + similar in the sidebar utility row. */
.bl-sidebar-util {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 0.5rem;
  color: #6b7280;
  transition: background 0.15s ease, color 0.15s ease;
}
.bl-sidebar-util:hover { background: rgba(0, 58, 58, 0.06); color: #003A3A; }
.dark .bl-sidebar-util { color: #9ca3af; }
.dark .bl-sidebar-util:hover { background: rgba(45, 212, 191, 0.08); color: #5eead4; }

/* --- Reduced-motion respect ------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  .bl-card, .bl-connect-card, .bl-stat-tile, .bl-list-card,
  .bl-rail-attention, .bl-rail-issue, .bl-status-attention, .bl-status-issue,
  .bl-empty::before, .bl-capacity-bar-fill,
  .bl-ai-sidebar, .bl-ai-sidebar-item, .bl-ai-sidebar-item-text,
  .bl-ai-sidebar-toggle-icon,
  .bl-upgrade-btn, .bl-upgrade-btn::before, .bl-upgrade-btn::after,
  .bl-plan-card, .bl-plan-ribbon-premium::before, .bl-plan-badge-pulse, .bl-save-badge,
  .bl-credit-ring, .bl-credit-ring-inner, .bl-pack-chip,
  .bl-timeline-step, .bl-timeline-card, .bl-nav-item, .bl-sidebar-util,
  .bl-soft-header-icon, .bl-soft-header-icon::after, .bl-soft-header-title::after,
  .bl-hero-orb, .bl-hero-icon-tile, .bl-hero-icon-tile::after, .bl-hero-accent {
    animation: none !important;
    transition: none !important;
    opacity: 1;
    transform: none;
  }
}

/* ============================================================================
   Business · Proposals show (Review Report detail page)
   Component-scoped styles for app/views/business/proposals/show.html.erb.
   All custom classes are prefixed `bp-` (Business Proposals) so they
   compose alongside the `bl-` Business Locations family without
   collisions. Brand accent = #003A3A; dark-mode pair = #2dd4bf via the
   `.dark` class selector. Effects are layered as opt-in classes — base
   `bl-section` / `bl-btn-primary` rules elsewhere are untouched.
   ========================================================================= */

/* --- Cascade fade-up entrance -----------------------------------------
   Sections set `--bp-delay` inline (e.g. `style="--bp-delay:120ms"`) to
   stagger their entrance. Same shape as `blFadeUp` but driven by a
   variable so the timings stay in the template alongside the markup. */
@keyframes bpFadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.bp-fade-up {
  opacity: 0;
  animation: bpFadeUp 0.45s ease-out forwards;
  animation-delay: var(--bp-delay, 0ms);
}

/* --- Card hover lift + section-header underline ----------------------
   Opt-in via `.bp-card-lift` on `.bl-section` and review `<article>`. */
.bp-card-lift {
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  will-change: transform;
}
.bp-card-lift:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0, 58, 58, 0.08);
  border-color: rgba(0, 58, 58, 0.25);
}
.dark .bp-card-lift:hover {
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45);
  border-color: rgba(45, 212, 191, 0.3);
}
/* Animated 2px underline drawn left → right under the section title
   when the header is hovered. Sits below the title text only, so the
   adjacent count-pill isn't underlined. */
.bp-card-lift .bp-title-text {
  position: relative;
  display: inline-block;
}
.bp-card-lift .bp-title-text::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 2px;
  background: #003A3A;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s ease;
}
.dark .bp-card-lift .bp-title-text::after { background: #2dd4bf; }
.bp-card-lift .bl-section-head:hover .bp-title-text::after { transform: scaleX(1); }

/* --- Meta line copy-ref pill ---------------------------------------- */
.bp-meta .bp-ref { transition: background-color 0.15s ease; }
.bp-meta .bp-ref:hover { background: rgba(0, 58, 58, 0.06); }
.dark .bp-meta .bp-ref:hover { background: rgba(45, 212, 191, 0.1); }

/* --- Save-as-PDF button --------------------------------------------- */
.bp-pdf-btn { transition: all 0.15s ease; }

/* --- Hover-reveal arrow ---------------------------------------------
   Composable: lives at the right edge of a `.bp-icon-row` (or any
   row-style anchor) and slides in from the left on hover. */
.bp-link-arrow {
  display: inline-block;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.bp-icon-row:hover .bp-link-arrow {
  opacity: 0.85;
  transform: translateX(0);
}

/* --- Star fill-in stagger -------------------------------------------
   Each star sets `--i` (0..4). 60ms per star is snappy but readable. */
@keyframes bpStarPop {
  from { opacity: 0; transform: scale(0.6); }
  to   { opacity: 1; transform: scale(1); }
}
.bp-star {
  opacity: 0;
  transform-origin: center;
  animation: bpStarPop 0.35s ease-out forwards;
  animation-delay: calc(var(--i, 0) * 60ms + var(--bp-delay, 0ms));
}

/* --- Avatar gradient breathe -----------------------------------------
   Slow hue-rotate on the green→teal gradient. 8s alternate keeps it
   ambient rather than distracting. */
@keyframes bpAvatarBreathe {
  0%   { filter: hue-rotate(0deg) saturate(1); }
  100% { filter: hue-rotate(-12deg) saturate(1.1); }
}
.bp-avatar-breathe { animation: bpAvatarBreathe 8s ease-in-out infinite alternate; }

/* --- Owner-reply slide-in ------------------------------------------ */
@keyframes bpSlideInLeft {
  from { opacity: 0; transform: translateX(-16px); }
  to   { opacity: 1; transform: translateX(0); }
}
.bp-owner-slide {
  animation: bpSlideInLeft 0.45s ease-out both;
  animation-delay: var(--bp-delay, 200ms);
}

/* --- Timeline ------------------------------------------------------- */
.bp-timeline { list-style: none; padding: 0; margin: 0; }
.bp-timeline-step {
  position: relative;
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  padding-bottom: 14px;
}
/* Connector line as a separate element so we can animate its height. */
.bp-timeline-connector {
  position: absolute;
  left: 10px;
  top: 22px;
  bottom: 0;
  width: 2px;
  background: #e5e7eb;
  transform-origin: top center;
  animation: bpConnectorDraw 0.6s ease-out both;
  animation-delay: calc(var(--i, 0) * 120ms + 200ms);
}
.dark .bp-timeline-connector { background: #374151; }
.bp-timeline-step--done .bp-timeline-connector { background: #003A3A; }
.dark .bp-timeline-step--done .bp-timeline-connector { background: #2dd4bf; }
.bp-timeline-step--failed .bp-timeline-connector { background: #fecaca; }
.bp-timeline-step--last .bp-timeline-connector { display: none; }
@keyframes bpConnectorDraw {
  from { transform: scaleY(0); }
  to   { transform: scaleY(1); }
}

.bp-timeline-dot {
  width: 22px; height: 22px;
  border-radius: 9999px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 2px solid #e5e7eb;
  background: #fff;
  color: #fff;
  flex-shrink: 0;
  position: relative;
}
.dark .bp-timeline-dot { border-color: #4b5563; background: #1f2937; }
.bp-timeline-step--done .bp-timeline-dot { background: #003A3A; border-color: #003A3A; }
.dark .bp-timeline-step--done .bp-timeline-dot { background: #2dd4bf; border-color: #2dd4bf; color: #064e3b; }
.bp-timeline-step--current .bp-timeline-dot {
  border-color: #003A3A;
  box-shadow: 0 0 0 4px rgba(0, 58, 58, 0.08);
  animation: bpPulse 1.6s ease-in-out infinite;
}
.dark .bp-timeline-step--current .bp-timeline-dot {
  border-color: #2dd4bf;
  animation-name: bpPulseDark;
}
.bp-timeline-step--failed .bp-timeline-dot { background: #dc2626; border-color: #dc2626; }
@keyframes bpPulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(0, 58, 58, 0.08); }
  50%      { box-shadow: 0 0 0 7px rgba(0, 58, 58, 0.14); }
}
@keyframes bpPulseDark {
  0%, 100% { box-shadow: 0 0 0 4px rgba(45, 212, 191, 0.18); }
  50%      { box-shadow: 0 0 0 7px rgba(45, 212, 191, 0.28); }
}

/* One-time ring expansion on completed dots when the page first loads. */
.bp-timeline-step--done .bp-timeline-dot::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 9999px;
  border: 2px solid #003A3A;
  animation: bpPing 1.1s ease-out 0.6s 1 both;
  pointer-events: none;
}
.dark .bp-timeline-step--done .bp-timeline-dot::after { border-color: #2dd4bf; }
@keyframes bpPing {
  from { opacity: 1; transform: scale(1); }
  to   { opacity: 0; transform: scale(1.9); }
}

.bp-timeline-label { font-size: 13px; font-weight: 600; color: #111827; line-height: 1.3; }
.dark .bp-timeline-label { color: #f3f4f6; }
.bp-timeline-step--pending .bp-timeline-label { color: #9ca3af; font-weight: 500; }
.dark .bp-timeline-step--pending .bp-timeline-label { color: #6b7280; }
.bp-timeline-step--failed .bp-timeline-label { color: #b91c1c; }
.dark .bp-timeline-step--failed .bp-timeline-label { color: #fca5a5; }
.bp-timeline-ts { font-size: 11px; color: #6b7280; margin-top: 1px; }
.dark .bp-timeline-ts { color: #9ca3af; }

/* --- Next-steps info box -------------------------------------------- */
.bp-next-steps--info  { background: rgba(0, 58, 58, 0.04); border-color: rgba(0, 58, 58, 0.15); }
.dark .bp-next-steps--info  { background: rgba(45, 212, 191, 0.07); border-color: rgba(45, 212, 191, 0.25); }
.bp-next-steps--alert { background: #fef2f2; border-color: #fecaca; }
.dark .bp-next-steps--alert { background: rgba(239, 68, 68, 0.1); border-color: rgba(239, 68, 68, 0.3); }

/* --- Submit CTA gleam ----------------------------------------------
   Layered on top of `.bl-btn-primary`. A diagonal white→transparent
   highlight sweeps left → right every 6s; paused on hover so the
   label stays still while the user reads. */
.bp-cta-gleam {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.bp-cta-gleam::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    transparent 30%,
    rgba(255, 255, 255, 0.32) 50%,
    transparent 70%
  );
  transform: translateX(-100%);
  animation: bpGleam 6s ease-in-out 2s infinite;
  pointer-events: none;
}
.bp-cta-gleam:hover::before { animation-play-state: paused; }
@keyframes bpGleam {
  0%   { transform: translateX(-100%); }
  60%  { transform: translateX(100%); }
  100% { transform: translateX(100%); }
}

/* --- Sticky sidebar shadow -----------------------------------------
   `.is-stuck` is toggled by the `sticky-shadow` Stimulus controller
   (see app/javascript/controllers/sticky_shadow_controller.js). */
.bp-sticky { transition: box-shadow 0.25s ease; border-radius: 1rem; }
.bp-sticky.is-stuck       { box-shadow: 0 18px 38px -18px rgba(0, 58, 58, 0.18); }
.dark .bp-sticky.is-stuck { box-shadow: 0 18px 38px -18px rgba(0, 0, 0, 0.55); }

/* --- Print stylesheet ----------------------------------------------- */
@media print {
  @page { margin: 14mm; }
  body { background: #fff !important; color: #111827 !important; }
  .no-print { display: none !important; }
  .bp-show-root { padding: 0 !important; max-width: none !important; }
  .lg\:sticky { position: static !important; }
  .bl-section, .bp-show-root article { box-shadow: none !important; border-color: #d1d5db !important; }
  .bp-fade-up, .bp-star, .bp-owner-slide, .bp-timeline-connector,
  .bp-timeline-step--current .bp-timeline-dot,
  .bp-timeline-step--done .bp-timeline-dot::after,
  .bp-cta-gleam::before, .bp-avatar-breathe, [style*="animation"] {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .bp-show-root .grid { display: block !important; }
  .bp-show-root aside { margin-top: 16px; }
  .bp-timeline-dot { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}

/* --- Bolder header title accent (opt-in across business pages) ------
   The default `.bl-page-title-accent` is a 40px-wide teal stripe under
   the title. Pages that want a more emphatic header (proposals show,
   notifications, …) add `bl-page-bold` to the outer container to
   widen the accent and apply the brand gradient. Global default is
   unchanged. */
.bl-page-bold .bl-page-title-accent {
  width: 5.5rem;
  background: linear-gradient(90deg, #003A3A 0%, #2dd4bf 100%);
  opacity: 0.85;
}
/* Backwards-compatible alias — the proposals show page already carries
   `bp-show-root` for the print stylesheet, keep the bolder accent
   anchored to that class too so we don't have to add a second class
   to that single template. */
.bp-show-root .bl-page-title-accent { width: 5.5rem; background: linear-gradient(90deg, #003A3A 0%, #2dd4bf 100%); opacity: 0.85; }

/* --- Status tally band ------------------------------------------------
   A row of small count-pills above the review list. Each tally chip is
   a tiny rounded pill; reportable count uses brand teal, other states
   use the existing email_type_badge_class palette via helpers. */
.bp-tally {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.625rem;
  background: linear-gradient(180deg, rgba(0,58,58,0.04) 0%, rgba(0,58,58,0.02) 100%);
  border: 1px solid rgba(0,58,58,0.08);
}
.dark .bp-tally {
  background: linear-gradient(180deg, rgba(45,212,191,0.07) 0%, rgba(45,212,191,0.03) 100%);
  border-color: rgba(45,212,191,0.18);
}
.bp-tally-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.15rem 0.55rem;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 600;
  background: #fff;
  color: #374151;
  border: 1px solid #e5e7eb;
}
.dark .bp-tally-chip { background: #1f2937; color: #e5e7eb; border-color: #374151; }
.bp-tally-chip strong { font-weight: 800; }
.bp-tally-chip--brand   { background: rgba(0,58,58,0.08);  color: #003A3A;  border-color: rgba(0,58,58,0.18); }
.bp-tally-chip--warn    { background: #fffbeb;            color: #92400e;  border-color: #fde68a; }
.bp-tally-chip--success { background: #f0fdf4;            color: #15803d;  border-color: #bbf7d0; }
.bp-tally-chip--danger  { background: #fef2f2;            color: #b91c1c;  border-color: #fecaca; }
.dark .bp-tally-chip--brand   { background: rgba(45,212,191,0.18); color: #5eead4;  border-color: rgba(45,212,191,0.3); }
.dark .bp-tally-chip--warn    { background: rgba(245,158,11,0.18); color: #fcd34d;  border-color: rgba(245,158,11,0.3); }
.dark .bp-tally-chip--success { background: rgba(34,197,94,0.18);  color: #86efac;  border-color: rgba(34,197,94,0.3); }
.dark .bp-tally-chip--danger  { background: rgba(239,68,68,0.18);  color: #fca5a5;  border-color: rgba(239,68,68,0.3); }

/* --- Rating impact widget -------------------------------------------- */
.bp-impact {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.625rem;
  padding: 0.875rem 1rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, rgba(0,58,58,0.05) 0%, rgba(45,212,191,0.06) 100%);
  border: 1px solid rgba(45,212,191,0.2);
}
.dark .bp-impact {
  background: linear-gradient(135deg, rgba(0,58,58,0.18) 0%, rgba(45,212,191,0.1) 100%);
  border-color: rgba(45,212,191,0.3);
}
.bp-impact-cell { text-align: center; min-width: 0; }
.bp-impact-label {
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6b7280;
  white-space: nowrap;
}
.dark .bp-impact-label { color: #9ca3af; }
.bp-impact-value { font-size: 22px; font-weight: 800; line-height: 1; color: #111827; margin-top: 2px; }
.dark .bp-impact-value { color: #f3f4f6; }
.bp-impact-value--projected { color: #003A3A; }
.dark .bp-impact-value--projected { color: #5eead4; }
.bp-impact-arrow { color: #2dd4bf; }
.bp-impact-delta {
  display: inline-block;
  margin-top: 4px;
  font-size: 10.5px;
  font-weight: 700;
  color: #15803d;
}
.dark .bp-impact-delta { color: #86efac; }

/* --- Company hero (avatar + name + rating) -------------------------
   Top block of the Company card. The square avatar gives the card a
   visual identity instead of looking like a plain form. Name and
   inline rating row sit to the right, mirroring a Google Places card. */
.bp-company-hero {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.bp-company-hero-avatar {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  font-size: 15px;
  font-weight: 800;
  color: #003A3A;
  background: linear-gradient(135deg, rgba(0,58,58,0.18) 0%, rgba(45,212,191,0.22) 100%);
  box-shadow: inset 0 0 0 1px rgba(0,58,58,0.08);
}
.dark .bp-company-hero-avatar {
  color: #5eead4;
  background: linear-gradient(135deg, rgba(0,58,58,0.35) 0%, rgba(45,212,191,0.25) 100%);
  box-shadow: inset 0 0 0 1px rgba(45,212,191,0.2);
}
.bp-company-hero-name {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  color: #111827;
  margin: 0;
}
.dark .bp-company-hero-name { color: #f3f4f6; }
.bp-company-hero-rating {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.3rem;
}
.bp-company-hero-rating-num {
  font-size: 14px;
  font-weight: 800;
  color: #003A3A;
  line-height: 1;
}
.dark .bp-company-hero-rating-num { color: #5eead4; }
.bp-company-hero-rating-meta {
  font-size: 11px;
  color: #6b7280;
}
.dark .bp-company-hero-rating-meta { color: #9ca3af; }

/* --- Icon-leading row (used for Address, Phone) --------------------
   Three-column grid: 18px icon · value (flex-1) · 12px hover arrow.
   Whole row is the hover/click target. The leading icon stays the
   anchor for visual scanning. */
.bp-icon-row {
  position: relative;
  display: grid;
  grid-template-columns: 18px 1fr 14px;
  align-items: start;
  column-gap: 0.625rem;
  padding: 0.55rem 0.65rem;
  margin: 0 -0.65rem;
  border-radius: 0.5rem;
  font-size: 13px;
  line-height: 1.4;
  color: #374151;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.15s ease;
}
.dark .bp-icon-row { color: #d1d5db; }
.bp-icon-row + .bp-icon-row { margin-top: 0.15rem; }
.bp-icon-row:hover { background: rgba(0,58,58,0.05); color: #003A3A; }
.dark .bp-icon-row:hover { background: rgba(45,212,191,0.08); color: #5eead4; }
.bp-icon-row-icon {
  width: 16px;
  height: 16px;
  margin-top: 1px;
  color: #94a3b8;
  transition: color 0.15s ease;
}
.dark .bp-icon-row-icon { color: #6b7280; }
.bp-icon-row:hover .bp-icon-row-icon { color: #003A3A; }
.dark .bp-icon-row:hover .bp-icon-row-icon { color: #5eead4; }
.bp-icon-row-value {
  min-width: 0;
  word-break: break-word;
}
/* The arrow is the existing `.bp-link-arrow` — hidden by default,
   slides in from the left on hover. Already styled higher up. */

/* --- Subtitle-as-link ----------------------------------------------- */
.bp-subtitle-link {
  transition: color 0.15s ease;
  text-decoration: none;
}
.bp-subtitle-link:hover { color: #003A3A; text-decoration: underline; text-underline-offset: 3px; }
.dark .bp-subtitle-link:hover { color: #5eead4; }

/* --- Sparse-state filler -------------------------------------------- */
.bp-sparse {
  border: 1.5px dashed rgba(0,58,58,0.2);
  border-radius: 0.875rem;
  padding: 1.25rem;
  background: rgba(0,58,58,0.02);
  text-align: center;
}
.dark .bp-sparse { background: rgba(45,212,191,0.04); border-color: rgba(45,212,191,0.25); }
.bp-sparse-title { font-size: 13px; font-weight: 700; color: #003A3A; margin-bottom: 4px; }
.dark .bp-sparse-title { color: #5eead4; }
.bp-sparse-body  { font-size: 12px; color: #6b7280; line-height: 1.5; max-width: 36ch; margin: 0 auto 12px; }
.dark .bp-sparse-body { color: #9ca3af; }

/* ============================================================================
   Business · Support Tickets (Help & Support)
   Shared component styles for app/views/business/support_tickets/*.html.erb.
   Prefixed `bt-` (Business Tickets) so they compose alongside the
   `bl-*` and `bp-*` families without collisions.
   ========================================================================= */

/* --- Form input ----------------------------------------------------- */
.bt-input {
  width: 100%;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: #111827;
  border-radius: 0.75rem;
  padding: 0.625rem 0.875rem;
  font-size: 14px;
  line-height: 1.4;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.bt-input::placeholder { color: #cbd5e1; }
.bt-input:focus {
  outline: none;
  border-color: #003A3A;
  box-shadow: 0 0 0 3px rgba(0, 58, 58, 0.12);
}
.dark .bt-input { background: #111827; border-color: #374151; color: #e5e7eb; }
.dark .bt-input::placeholder { color: #4b5563; }
.dark .bt-input:focus { border-color: #2dd4bf; box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.18); }

/* --- Secondary button (Cancel etc.) -------------------------------- */
.bt-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1rem;
  border-radius: 0.75rem;
  font-size: 12px;
  font-weight: 600;
  color: #374151;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  text-decoration: none;
}
.bt-btn-secondary:hover {
  background: rgba(0, 58, 58, 0.04);
  border-color: rgba(0, 58, 58, 0.3);
  color: #003A3A;
}
.dark .bt-btn-secondary { background: #1f2937; border-color: #374151; color: #d1d5db; }
.dark .bt-btn-secondary:hover { background: rgba(45, 212, 191, 0.08); border-color: rgba(45, 212, 191, 0.35); color: #5eead4; }

/* --- Conversation bubbles ----------------------------------------- */
.bt-bubble-user {
  background: #f9fafb;
  border: 1px solid #f1f5f9;
  color: #374151;
}
.dark .bt-bubble-user { background: #111827; border-color: #1f2937; color: #e5e7eb; }

.bt-bubble-admin {
  background: rgba(0, 58, 58, 0.06);
  border: 1px solid rgba(0, 58, 58, 0.16);
  color: #003A3A;
}
.dark .bt-bubble-admin {
  background: rgba(45, 212, 191, 0.1);
  border-color: rgba(45, 212, 191, 0.25);
  color: #5eead4;
}

.bt-avatar-user  { background: #f1f5f9; color: #475569; }
.dark .bt-avatar-user  { background: #374151; color: #cbd5e1; }
.bt-avatar-admin { background: rgba(0, 58, 58, 0.12); color: #003A3A; }
.dark .bt-avatar-admin { background: rgba(45, 212, 191, 0.2); color: #5eead4; }

/* --- Status pill icon size override --------------------------------
   The shared bl-pill family uses a single padding/size. For the small
   status icon prefix we want a slightly tighter wrapper. */
.bt-status-pill svg { width: 10px; height: 10px; margin-right: 4px; }

/* ============================================================================
   Business · Notifications (Notifications list + show)
   Component-scoped styles for app/views/business/notifications/*.html.erb.
   Prefixed `bn-` (Business Notifications) so they compose alongside the
   `bl-*`, `bp-*`, and `bt-*` families. Reuses `bl-pill-*` for badges,
   so only the row chrome + type-icon palette lives here.
   ========================================================================= */

/* --- Row chrome --------------------------------------------------- */
.bn-row { transition: background-color 0.15s ease, box-shadow 0.15s ease; }
.bn-row:hover {
  background: rgba(0, 58, 58, 0.03);
  box-shadow: inset 3px 0 0 #003A3A;
}
.dark .bn-row:hover {
  background: rgba(45, 212, 191, 0.05);
  box-shadow: inset 3px 0 0 #2dd4bf;
}

.bn-row-unseen {
  background: rgba(0, 58, 58, 0.04);
  box-shadow: inset 3px 0 0 #003A3A;
}
.dark .bn-row-unseen {
  background: rgba(45, 212, 191, 0.06);
  box-shadow: inset 3px 0 0 #2dd4bf;
}
.bn-row-unseen:hover { background: rgba(0, 58, 58, 0.07); }
.dark .bn-row-unseen:hover { background: rgba(45, 212, 191, 0.1); }

/* --- "New" badge — brand-gradient pill ---------------------------- */
.bn-badge-new {
  background: linear-gradient(135deg, #003A3A 0%, #2dd4bf 100%);
  color: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 58, 58, 0.25);
}

/* --- Row action icons --------------------------------------------- */
.bn-action-btn {
  color: #94a3b8;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.bn-action-btn:hover {
  color: #003A3A;
  background: rgba(0, 58, 58, 0.06);
}
.dark .bn-action-btn { color: #6b7280; }
.dark .bn-action-btn:hover { color: #5eead4; background: rgba(45, 212, 191, 0.1); }

/* --- Per-type icon tile — 5 semantic kinds ----------------------- */
.bn-icon-info    { background: rgba(0, 58, 58, 0.08);   color: #003A3A; }
.bn-icon-success { background: #f0fdf4;                  color: #15803d; }
.bn-icon-warning { background: #fef3c7;                  color: #92400e; }
.bn-icon-danger  { background: #fee2e2;                  color: #991b1b; }
.bn-icon-neutral { background: #f3f4f6;                  color: #6b7280; }
.dark .bn-icon-info    { background: rgba(45, 212, 191, 0.18); color: #5eead4; }
.dark .bn-icon-success { background: rgba(34, 197, 94, 0.18);  color: #86efac; }
.dark .bn-icon-warning { background: rgba(245, 158, 11, 0.18); color: #fcd34d; }
.dark .bn-icon-danger  { background: rgba(239, 68, 68, 0.18);  color: #fca5a5; }
.dark .bn-icon-neutral { background: rgba(255, 255, 255, 0.05); color: #9ca3af; }

/* ============================================================================
   Business · Dashboard (app/views/business/dashboard/index.html.erb)
   Component-scoped styles. Prefixed `bd-` (Business Dashboard).
   ========================================================================= */

/* --- Section/zone label (replaces the inline uppercase pattern) ----- */
.bd-zone-label {
  display: block;
  margin-bottom: 0.75rem;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6b7280;
}
.dark .bd-zone-label { color: #9ca3af; }

/* --- KPI snapshot row (top of page) -------------------------------- */
.bd-kpi-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}
@media (min-width: 640px) { .bd-kpi-row { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .bd-kpi-row { grid-template-columns: repeat(4, 1fr); } }

.bd-kpi-tile {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  padding: 1rem 1.125rem;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  transition: transform 0.2s ease, box-shadow 0.25s ease, border-color 0.2s ease;
}
.dark .bd-kpi-tile { background: #1f2937; border-color: #374151; }
.bd-kpi-icon {
  width: 38px; height: 38px;
  border-radius: 0.625rem;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.bd-kpi-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #6b7280;
}
.dark .bd-kpi-label { color: #9ca3af; }
.bd-kpi-value {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.05;
  color: #003A3A;
  margin-top: 2px;
}
.dark .bd-kpi-value { color: #5eead4; }
.bd-kpi-trend {
  margin-top: 4px;
  font-size: 11px;
  color: #6b7280;
}
.dark .bd-kpi-trend { color: #9ca3af; }
.bd-kpi-trend strong { color: #15803d; font-weight: 700; }
.dark .bd-kpi-trend strong { color: #86efac; }
.bd-kpi-trend-label { margin-left: 0.25rem; }

/* --- Sparkline next to location rating ----------------------------- */
.bd-sparkline {
  width: 90px;
  height: 40px;
  opacity: 0.85;
}

/* --- Stat tile (Reputation Health per-location metrics) ------------
   Each metric becomes a small "pod" with leading icon, label, big
   number, trend/progress bar, and a tiny meta line. Composes with the
   existing `bn-icon-*` colour family — the metric tile inherits its
   icon-tile tint from that class. Hover lifts subtly. */
.bd-stat {
  position: relative;
  padding: 0.875rem 1rem 1rem;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 0.875rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.dark .bd-stat { background: #1f2937; border-color: #374151; }
.bd-stat:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0, 58, 58, 0.08);
  border-color: rgba(0, 58, 58, 0.25);
}
.dark .bd-stat:hover { box-shadow: 0 10px 22px rgba(0, 0, 0, 0.45); border-color: rgba(45, 212, 191, 0.3); }

.bd-stat-icon {
  /* Background + color are inherited from the bn-icon-* class on the
     parent. We only set size + shape here. */
  width: 30px; height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  margin-bottom: 0.625rem;
  background: currentColor;
  color: currentColor;
}
/* The bn-icon-* parent sets `background` + `color`. The .bd-stat-icon
   wants the SAME background but inverted relative to text colour, so
   we override: tile uses its own background, but the svg inside uses
   currentColor (which is the bn-icon-* text colour, e.g. #003A3A). */
.bd-stat.bn-icon-info    .bd-stat-icon { background: rgba(0, 58, 58, 0.1);    color: #003A3A; }
.bd-stat.bn-icon-success .bd-stat-icon { background: #f0fdf4;                  color: #15803d; }
.bd-stat.bn-icon-warning .bd-stat-icon { background: #fef3c7;                  color: #92400e; }
.bd-stat.bn-icon-danger  .bd-stat-icon { background: #fee2e2;                  color: #991b1b; }
.bd-stat.bn-icon-neutral .bd-stat-icon { background: #f3f4f6;                  color: #6b7280; }
.dark .bd-stat.bn-icon-info    .bd-stat-icon { background: rgba(45, 212, 191, 0.18); color: #5eead4; }
.dark .bd-stat.bn-icon-success .bd-stat-icon { background: rgba(34, 197, 94, 0.18);  color: #86efac; }
.dark .bd-stat.bn-icon-warning .bd-stat-icon { background: rgba(245, 158, 11, 0.18); color: #fcd34d; }
.dark .bd-stat.bn-icon-danger  .bd-stat-icon { background: rgba(239, 68, 68, 0.18);  color: #fca5a5; }
.dark .bd-stat.bn-icon-neutral .bd-stat-icon { background: rgba(255, 255, 255, 0.05); color: #9ca3af; }
/* Strip the outer bn-icon-* paint from the tile itself so it doesn't
   colour-cast — only its inner .bd-stat-icon should be tinted. */
.bd-stat.bn-icon-info, .bd-stat.bn-icon-success, .bd-stat.bn-icon-warning,
.bd-stat.bn-icon-danger, .bd-stat.bn-icon-neutral { background: #ffffff; color: inherit; }
.dark .bd-stat.bn-icon-info, .dark .bd-stat.bn-icon-success,
.dark .bd-stat.bn-icon-warning, .dark .bd-stat.bn-icon-danger,
.dark .bd-stat.bn-icon-neutral { background: #1f2937; color: inherit; }

.bd-stat-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b7280;
  line-height: 1.25;
}
.dark .bd-stat-label { color: #9ca3af; }
.bd-stat-value {
  margin-top: 0.25rem;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.05;
  color: #111827;
}
.dark .bd-stat-value { color: #f3f4f6; }
.bd-stat-value--danger { color: #b91c1c; }
.dark .bd-stat-value--danger { color: #fca5a5; }
.bd-stat-value-denom {
  font-size: 14px;
  font-weight: 600;
  color: #9ca3af;
  margin-left: 0.125rem;
}
.bd-stat-trend {
  margin-top: 0.4rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 11px;
  font-weight: 700;
}
.bd-stat-trend--up { color: #15803d; }
.dark .bd-stat-trend--up { color: #86efac; }
.bd-stat-trend--down { color: #b91c1c; }
.dark .bd-stat-trend--down { color: #fca5a5; }
.bd-stat-trend-label {
  font-weight: 500;
  color: #6b7280;
  margin-left: 0.15rem;
}
.dark .bd-stat-trend-label { color: #9ca3af; }
.bd-stat-meta {
  margin-top: 0.4rem;
  font-size: 11px;
  color: #6b7280;
}
.dark .bd-stat-meta { color: #9ca3af; }

/* Tiny inline progress bar for ratio metrics */
.bd-stat-bar {
  margin-top: 0.5rem;
  height: 4px;
  border-radius: 9999px;
  background: #f1f5f9;
  overflow: hidden;
}
.dark .bd-stat-bar { background: #374151; }
.bd-stat-bar-fill {
  display: block;
  height: 100%;
  border-radius: 9999px;
  transition: width 0.4s ease;
}
.bd-stat-bar-fill--success { background: linear-gradient(90deg, #15803d 0%, #22c55e 100%); }
.bd-stat-bar-fill--info    { background: linear-gradient(90deg, #003A3A 0%, #2dd4bf 100%); }
.bd-stat-bar-fill--warning { background: linear-gradient(90deg, #d97706 0%, #f59e0b 100%); }
.bd-stat-bar-fill--danger  { background: linear-gradient(90deg, #b91c1c 0%, #ef4444 100%); }

/* --- Location panel "health" pill --------------------------------- */
.bd-health-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.7rem;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid;
}
.bd-health-pill .dot {
  width: 6px; height: 6px;
  border-radius: 9999px;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}
.bd-health-pill--good     { background: #f0fdf4; color: #15803d; border-color: #bbf7d0; }
.bd-health-pill--warn     { background: #fffbeb; color: #92400e; border-color: #fde68a; }
.bd-health-pill--danger   { background: #fef2f2; color: #b91c1c; border-color: #fecaca; }
.bd-health-pill--neutral  { background: #f3f4f6; color: #6b7280; border-color: #e5e7eb; }
.dark .bd-health-pill--good    { background: rgba(34, 197, 94, 0.18);  color: #86efac; border-color: rgba(34, 197, 94, 0.3); }
.dark .bd-health-pill--warn    { background: rgba(245, 158, 11, 0.18); color: #fcd34d; border-color: rgba(245, 158, 11, 0.3); }
.dark .bd-health-pill--danger  { background: rgba(239, 68, 68, 0.18);  color: #fca5a5; border-color: rgba(239, 68, 68, 0.3); }
.dark .bd-health-pill--neutral { background: #374151;                    color: #d1d5db; border-color: #4b5563; }

/* --- Volume chart (bars only, range toggle) -----------------------
   Container for the Chart.js bar chart rendered by
   combo_chart_controller.js. The canvas inside fills 100% of this
   wrapper, so the wrapper sets the fixed height. */
.bd-combo {
  position: relative;
  width: 100%;
  height: 280px;
  padding: 0.5rem 1.25rem 1.25rem;
}
.bd-combo canvas { width: 100% !important; height: 100% !important; }

/* Chart card header — two rows.
   Row 1: title + segmented range toggle.
   Row 2: dynamic one-line summary (total · avg ★ · peak).
   Soft gradient backdrop ties the header to the chart visually. */
.bd-combo-header {
  padding: 1.125rem 1.25rem 1rem;
  border-bottom: 1px solid #f1f5f9;
  background:
    linear-gradient(180deg, rgba(0, 58, 58, 0.025) 0%, transparent 100%);
}
.dark .bd-combo-header {
  border-bottom-color: #1f2937;
  background: linear-gradient(180deg, rgba(45, 212, 191, 0.05) 0%, transparent 100%);
}
.bd-combo-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.bd-combo-title {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.005em;
  color: #0f172a;
}
.dark .bd-combo-title { color: #f9fafb; }

/* One-line summary under the title. Numbers in brand teal, separators
   muted. Renders inline so it stays as a single readable sentence. */
.bd-combo-summary {
  margin-top: 0.45rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem;
  font-size: 12.5px;
  color: #6b7280;
  line-height: 1.4;
}
.dark .bd-combo-summary { color: #9ca3af; }
.bd-combo-summary-num {
  color: #003A3A;
  font-weight: 800;
  font-size: 13.5px;
}
.dark .bd-combo-summary-num { color: #5eead4; }
.bd-combo-summary-sep {
  display: inline-block;
  margin: 0 0.1rem;
  color: #cbd5e1;
  font-weight: 700;
}
.dark .bd-combo-summary-sep { color: #4b5563; }

/* Range-toggle pill group — sits in the chart header. Active tab
   gets the brand teal fill; inactives are subtle text buttons. */
.bd-combo-tabs {
  display: inline-flex;
  padding: 3px;
  background: #f3f4f6;
  border-radius: 9999px;
  gap: 2px;
  flex-shrink: 0;
}
.dark .bd-combo-tabs { background: #1f2937; }
.bd-combo-tab {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0.35rem 0.95rem;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #6b7280;
  border-radius: 9999px;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}
.dark .bd-combo-tab { color: #9ca3af; }
.bd-combo-tab:hover { color: #003A3A; }
.dark .bd-combo-tab:hover { color: #5eead4; }
.bd-combo-tab.is-active {
  background: linear-gradient(135deg, #003A3A 0%, #005454 100%);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 58, 58, 0.3);
}
.dark .bd-combo-tab.is-active {
  background: linear-gradient(135deg, #2dd4bf 0%, #14b8a6 100%);
  color: #042f2e;
  box-shadow: 0 2px 8px rgba(45, 212, 191, 0.4);
}

/* --- To-do action cards (Dashboard Zone 1) -------------------------
   Each card pairs a coloured left-rail + an icon tile in a matching
   tint. Modifiers select the colour family; the rest of the card
   chrome is shared. */
.bd-todo-card {
  position: relative;
  /* Inherit border/background from .bl-list-card; we only add the
     left-rail accent + the icon-tile tint via modifiers. */
}
.bd-todo-card-icon {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  flex-shrink: 0;
}
.bd-todo-card--danger   { border-left: 4px solid #dc2626; }
.bd-todo-card--info     { border-left: 4px solid #003A3A; }
.bd-todo-card--warning  { border-left: 4px solid #d97706; }
.bd-todo-card--success  { border-left: 4px solid #059669; }
.bd-todo-card--danger  .bd-todo-card-icon  { background: rgba(220, 38, 38, 0.1);  color: #dc2626; }
.bd-todo-card--info    .bd-todo-card-icon  { background: rgba(0, 58, 58, 0.1);    color: #003A3A; }
.bd-todo-card--warning .bd-todo-card-icon  { background: rgba(217, 119, 6, 0.1);  color: #d97706; }
.bd-todo-card--success .bd-todo-card-icon  { background: rgba(5, 150, 105, 0.1);  color: #059669; }
.dark .bd-todo-card--info    .bd-todo-card-icon { color: #5eead4; }

/* --- Referral card (Dashboard Zone 5) -----------------------------
   Deep-teal gradient panel with a copy chip and translucent helper
   text. Pulls all the inline `style="color:rgba(255,255,255,0.x)"`
   etc. out of the view. */
.bd-referral {
  background: linear-gradient(135deg, #003A3A 0%, #0a6e6e 100%);
  border-color: #003A3A;
}
.bd-referral-text-muted { color: rgba(255, 255, 255, 0.7); }
.bd-referral-text-soft  { color: rgba(255, 255, 255, 0.85); }
.bd-referral-code-box {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.bd-referral-copy-btn {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  transition: background-color 0.15s ease;
}
.bd-referral-copy-btn:hover { background: rgba(255, 255, 255, 0.3); }

/* --- Reduced motion fallback ---------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .bp-fade-up, .bp-star, .bp-owner-slide, .bp-timeline-connector,
  .bp-timeline-step--current .bp-timeline-dot,
  .bp-timeline-step--done .bp-timeline-dot::after,
  .bp-cta-gleam::before, .bp-avatar-breathe {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .bp-card-lift:hover { transform: none; }
}
