/*
 * 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;
}
.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;
  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;
  }
}
