/* ═══════════════════════════════════════════════════════════════════
   Teams V2 — shared design tokens & primitives
   Reused across: dashboard, licenses, smart tags, events,
   lead inbox, card sections, grow & upsell.
   Built on site design system tokens.
   Class prefix: bdTeams
   ═══════════════════════════════════════════════════════════════════ */

.bdTeams {
  padding: 24px 28px 60px;
  /* background: var(--site-secondary-color); */
  min-height: calc(100vh - 64px);
  font-family: var(--site-body-font);
  color: var(--site-text-color);
}

/* ─── Page head ───────────────────────────────────────────────────── */
.bdTeamsHead {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.bdTeamsTitle {
  font-family: var(--site-secondary-font);
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0;
}
.bdTeamsSub {
  color: var(--site-text-muted-color);
  font-size: 13.5px;
  margin-top: 3px;
}
.bdTeamsHeadActions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* ─── Buttons ─────────────────────────────────────────────────────── */
.bdTeamsBtn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--site-quaternary-color);
  background: #ffffff;
  color: var(--site-text-color);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: var(--transition-fast);
  white-space: nowrap;
  font-family: inherit;
  text-decoration: none;
}
.bdTeamsBtn:hover {
  background: var(--site-secondary-color);
  border-color: var(--site-input-border);
}
.bdTeamsBtnPrimary {
  background: var(--site-cta-color);
  border-color: var(--site-cta-color);
  color: #ffffff;
}
.bdTeamsBtnPrimary:hover {
  background: #d94d1f;
  border-color: #d94d1f;
  color: #ffffff;
}
.bdTeamsBtnGhost {
  background: transparent;
  border-color: transparent;
}
.bdTeamsBtnGhost:hover {
  background: var(--site-secondary-color);
}
.bdTeamsBtnSm {
  padding: 6px 10px;
  font-size: 12px;
}
.bdTeamsBtnIcon {
  width: 32px;
  height: 32px;
  padding: 0;
  justify-content: center;
}

/* ─── Card ─────────────────────────────────────────────────────────── */
.bdTeamsCard {
  background: #ffffff;
  border: 1px solid var(--site-quaternary-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.bdTeamsCardHead {
  padding: 14px 18px;
  border-bottom: 1px solid var(--site-quaternary-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.bdTeamsCardTitle {
  font-weight: 700;
  font-size: 14px;
}
.bdTeamsCardSub {
  font-size: 12px;
  color: var(--site-text-muted-color);
  margin-top: 1px;
}
.bdTeamsCardBody { padding: 18px; }

/* ─── Badge ───────────────────────────────────────────────────────── */
.bdTeamsBadge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.bdTeamsBadge[data-tone="orange"] { background: rgba(240, 92, 41, 0.14); color: var(--site-cta-color); }
.bdTeamsBadge[data-tone="green"]  { background: rgba(22, 163, 74, 0.14); color: var(--site-success-color); }
.bdTeamsBadge[data-tone="blue"]   { background: rgba(34, 85, 232, 0.14); color: var(--site-info-color); }
.bdTeamsBadge[data-tone="amber"]  { background: rgba(217, 119, 6, 0.14); color: var(--site-warning-color); }
.bdTeamsBadge[data-tone="red"]    { background: rgba(220, 38, 38, 0.14); color: var(--site-error-color); }
.bdTeamsBadge[data-tone="purple"] { background: rgba(124, 58, 237, 0.14); color: #7c3aed; }
.bdTeamsBadge[data-tone="grey"]   { background: rgba(120, 120, 120, 0.12); color: var(--site-text-muted-color); }

.bdTeamsDot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.bdTeamsDotPulse {
  animation: bdTeamsPulse 1.8s infinite;
}
@keyframes bdTeamsPulse {
  0%   { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.6); }
  70%  { box-shadow: 0 0 0 6px rgba(22, 163, 74, 0); }
  100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); }
}

/* ─── Avatar ──────────────────────────────────────────────────────── */
.bdTeamsAvatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  color: #ffffff;
  flex-shrink: 0;
  background: linear-gradient(135deg, #6366f1, #a855f7);
}
.bdTeamsAvatarSm { width: 26px; height: 26px; font-size: 10.5px; }
.bdTeamsAvatarLg { width: 48px; height: 48px; font-size: 16px; }
.bdTeamsAvatarG1 { background: linear-gradient(135deg, #6366f1, #a855f7); }
.bdTeamsAvatarG2 { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.bdTeamsAvatarG3 { background: linear-gradient(135deg, #14b8a6, #3b82f6); }
.bdTeamsAvatarG4 { background: linear-gradient(135deg, #ef4444, #f59e0b); }
.bdTeamsAvatarG5 { background: linear-gradient(135deg, #a855f7, #f15a25); }
.bdTeamsAvatarG6 { background: linear-gradient(135deg, #3b82f6, #14b8a6); }
.bdTeamsAvatarG7 { background: linear-gradient(135deg, #f15a25, #a855f7); }

/* ─── Inputs ──────────────────────────────────────────────────────── */
.bdTeamsInput {
  width: 100%;
  padding: 8px 12px;
  background: #ffffff;
  border: 1px solid var(--site-input-border);
  border-radius: var(--radius-md);
  color: var(--site-text-color);
  font: inherit;
  font-size: 13px;
}
.bdTeamsInput:focus {
  outline: none;
  border-color: var(--site-cta-color);
}
.bdTeamsEditorLabel {
  font-size: 11px;
  color: var(--site-text-muted-color);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}

/* ─── Toolbar / filter chips ──────────────────────────────────────── */
.bdTeamsToolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: #ffffff;
  border: 1px solid var(--site-quaternary-color);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  border-bottom: none;
  flex-wrap: wrap;
}
.bdTeamsSearchInput {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--site-secondary-color);
  border: 1px solid var(--site-quaternary-color);
  padding: 6px 10px;
  border-radius: var(--radius-md);
  flex: 1;
  max-width: 320px;
  color: var(--site-text-muted-color);
  font-size: 13px;
}
.bdTeamsSearchInput input {
  border: none;
  background: transparent;
  outline: none;
  flex: 1;
  font: inherit;
  color: var(--site-text-color);
}
.bdTeamsChip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  background: var(--site-secondary-color);
  border: 1px dashed var(--site-input-border);
  border-radius: var(--radius-md);
  font-size: 12px;
  color: var(--site-text-muted-color);
  cursor: pointer;
  font-weight: 500;
}
.bdTeamsChip:hover {
  color: var(--site-text-color);
  border-style: solid;
}
.bdTeamsChipActive {
  border-style: solid;
  border-color: var(--site-cta-color);
  color: var(--site-cta-color);
  background: rgba(240, 92, 41, 0.1);
}

/* ─── Table ───────────────────────────────────────────────────────── */
.bdTeamsTableWrap {
  background: #ffffff;
  border: 1px solid var(--site-quaternary-color);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  overflow: hidden;
}
.bdTeamsTable {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.bdTeamsTable thead th {
  text-align: left;
  font-size: 11px;
  color: var(--site-text-muted-color);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 14px;
  background: var(--site-secondary-color);
  border-bottom: 1px solid var(--site-quaternary-color);
}
.bdTeamsTable tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--site-quaternary-color);
}
.bdTeamsTable tbody tr:last-child td { border-bottom: none; }
.bdTeamsTable tbody tr:hover { background: var(--site-secondary-color); }

/* ─── Member cell ─────────────────────────────────────────────────── */
.bdTeamsMemberCell {
  display: flex;
  align-items: center;
  gap: 10px;
}
.bdTeamsMemberName { font-weight: 600; }
.bdTeamsMemberRole { font-size: 11.5px; color: var(--site-text-muted-color); }

/* ─── Toggle ──────────────────────────────────────────────────────── */
.bdTeamsToggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
.bdTeamsSwitch {
  width: 36px;
  height: 20px;
  background: var(--site-input-border);
  border-radius: var(--radius-full);
  position: relative;
  transition: background 0.15s;
  flex-shrink: 0;
}
.bdTeamsSwitch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  background: white;
  border-radius: 50%;
  transition: left 0.15s;
}
.bdTeamsToggleOn .bdTeamsSwitch { background: var(--site-cta-color); }
.bdTeamsToggleOn .bdTeamsSwitch::after { left: 18px; }

/* ─── Empty state ─────────────────────────────────────────────────── */
.bdTeamsEmpty {
  text-align: center;
  padding: 60px 20px;
  color: var(--site-text-muted-color);
}
.bdTeamsEmpty i {
  font-size: 40px;
  margin-bottom: 12px;
  display: block;
  opacity: 0.5;
}

/* ─── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .bdTeams { padding: 18px 16px 40px; }
}
@media (max-width: 600px) {
  .bdTeams { padding: 14px; }
}

/* ═══════════════════════════════════════════════════════════════════
   card-editor (was: card-editor.component.css)
   ═══════════════════════════════════════════════════════════════════ */
/* ═══════════════════════════════════════════════════════════════════
   Card Editor — two-pane: section list + inline editor (left) +
                  iframe phone preview (right).
   Backed by BUSINESS.BIZCARD.SETTINGS endpoint for the section list.
   Class prefix: bdCardEd
   ═══════════════════════════════════════════════════════════════════ */

.bdCardEd {
  padding-top: 0;
}

/* ─── Topbar (full-bleed horizontally; sits below the v2 manager header) ─── */
.bdCardEdTopbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 28px;
  margin: 0 -28px 18px;
  background: #ffffff;
  border: 0;
  border-bottom: 1px solid var(--site-quaternary-color);
  border-radius: 0;
  box-shadow: none;
}
@media (max-width: 1100px) {
  .bdCardEdTopbar {
    margin: 0 -16px 14px;
    padding: 14px 16px;
  }
}
@media (max-width: 600px) {
  .bdCardEdTopbar {
    margin: 0 -14px 12px;
    padding: 12px 14px;
  }
}
.bdCardEdCrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--site-text-muted-color);
}
.bdCardEdCrumbs strong {
  color: var(--site-text-color);
  font-weight: 600;
}
.bdCardEdSep {
  opacity: 0.4;
}
.bdCardEdTopRight {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ─── Layout ─────────────────────────────────────────────────────── */
.bdCardEdLayout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: 18px;
  align-items: start;
}
.bdCardEdLeft {
  min-width: 0;
}
.bdCardEdRight {
  position: sticky;
  top: 18px;
  background: #ffffff;
  border: 1px solid var(--site-quaternary-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 14px;
}

/* ─── Filters ────────────────────────────────────────────────────── */
.bdCardEdHeadActions {
  display: flex;
  gap: 8px;
}
.bdCardEdFilters {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.bdCardEdCount {
  display: inline-block;
  min-width: 18px;
  padding: 0 6px;
  border-radius: var(--radius-full);
  background: var(--site-secondary-color);
  color: var(--site-text-muted-color);
  font-size: 11px;
  font-weight: 700;
  margin-left: 4px;
  text-align: center;
}
.bdTeamsChipActive .bdCardEdCount {
  background: rgba(255, 255, 255, 0.25);
  color: inherit;
}

/* ─── More-sections drawer ──────────────────────────────────────── */
.bdCardEdMore {
  background: #ffffff;
  border: 1px solid var(--site-quaternary-color);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-card);
}
.bdCardEdMoreHead {
  font-size: 11px;
  color: var(--site-text-muted-color);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}
.bdCardEdMoreGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px;
}
.bdCardEdMoreItem {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  background: var(--site-secondary-color);
  border: 1px dashed var(--site-input-border);
  border-radius: var(--radius-md);
  color: var(--site-text-color);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  font-family: inherit;
  text-align: left;
}
.bdCardEdMoreItem:hover {
  border-style: solid;
  border-color: var(--site-cta-color);
  color: var(--site-cta-color);
  background: rgba(240, 92, 41, 0.06);
}
.bdCardEdMoreItem i.fa-solid:first-child {
  width: 16px;
  text-align: center;
}
.bdCardEdMorePlus {
  margin-left: auto;
  opacity: 0.6;
}

/* ─── Section list ────────────────────────────────────────────────── */
/* Light lavender canvas that holds the rows — gives the rows a paper-on-paper feel. */
.bdCardEdList {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--site-quaternary-color);
}
.bdCardEdSec {
  background: #f7f8fe;
  border: 0;
  border-radius: var(--radius-lg);
  box-shadow:
    0 1px 2px rgba(28, 45, 100, 0.04),
    0 1px 0 rgba(28, 45, 100, 0.02) inset;
  transition: var(--transition-fast);
  overflow: hidden;
}
/* Only the non-open rows lift on hover — the open row keeps its CTA glow
   without being overridden by hover specificity. */
.bdCardEdSec:not(.bdCardEdSecOpen):hover {
  box-shadow:
    0 3px 10px rgba(28, 45, 100, 0.08),
    0 1px 0 rgba(28, 45, 100, 0.02) inset;
}
.bdCardEdSecOff {
  opacity: 0.7;
}
.bdCardEdSecOpen {
  border-color: var(--site-cta-color);
  /* 2px ring + soft CTA glow so the selected card pops without shouting */
  box-shadow:
    0 0 0 2px var(--site-cta-color),
    0 0 0 6px rgba(240, 92, 41, 0.12),
    0 12px 28px rgba(240, 92, 41, 0.18);
  transform: translateY(-1px);
}
/* Subtle CTA wash across the row; the handle itself takes the orange when open
   (see .bdCardEdSecOpen .bdCardEdDrag below), so no separate accent strip needed. */
.bdCardEdSecOpen .bdCardEdRow {
  background: linear-gradient(90deg, rgba(240, 92, 41, 0.06), rgba(240, 92, 41, 0) 50%);
  position: relative;
}
/* Icon flips to solid CTA color when open — strongest signal that THIS row is active */
.bdCardEdSecOpen .bdCardEdIcon {
  background: var(--site-cta-color);
  color: #ffffff;
}
.bdCardEdSecOpen .bdCardEdName {
  color: var(--site-cta-color);
}

/* row */
.bdCardEdRow {
  display: flex;
  align-items: stretch;
  gap: 12px;
  /* No left padding — the drag handle bleeds flush to the card's edge. */
  padding: 0 14px 0 0;
  transition: background 0.15s ease;
  min-height: 56px;
}
/* Inner content needs its own vertical alignment now that the row is stretch. */
.bdCardEdRow > .bdCardEdIcon,
.bdCardEdRow > .bdCardEdMeta,
.bdCardEdRow > .bdCardEdActions {
  align-self: center;
}
.bdCardEdRow > .bdCardEdIcon { margin-left: 4px; }
.bdCardEdSecOff .bdCardEdIcon {
  background: var(--site-secondary-color);
  color: var(--site-text-muted-color);
}

/* Drag handle — full-height edge strip with a 2×5 grid of dots. */
.bdCardEdDrag {
  display: grid;
  grid-template-columns: repeat(2, 4px);
  grid-auto-rows: 4px;
  gap: 4px;
  align-content: center;
  justify-content: center;
  align-self: stretch;     /* fill the row's height */
  width: 28px;
  background: var(--site-secondary-color);
  cursor: grab;
  flex-shrink: 0;
  transition: background 0.15s;
}
.bdCardEdDrag > span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #b1bfe0;
  transition: background 0.15s;
}
.bdCardEdDrag:hover {
  background: #e3e8ff;
}
.bdCardEdDrag:hover > span {
  background: var(--site-primary-color);
}
.bdCardEdDrag:active { cursor: grabbing; }
.bdCardEdDragDisabled {
  opacity: 0.45;
  cursor: not-allowed !important;
}
.bdCardEdDragDisabled:hover {
  background: var(--site-secondary-color);
}
.bdCardEdDragDisabled:hover > span {
  background: #b1bfe0;
}
/* When the section is open, the handle turns CTA-orange — replaces the old
   accent strip and makes the active row even more obvious. */
.bdCardEdSecOpen .bdCardEdDrag {
  background: rgba(240, 92, 41, 0.18);
}
.bdCardEdSecOpen .bdCardEdDrag > span {
  background: var(--site-cta-color);
}

/* CDK drag-drop visuals */
.bdCardEdDragPlaceholder {
  height: 56px;
  background: #ffffff;
  border: 1.5px dashed var(--site-cta-color);
  border-radius: var(--radius-lg);
  margin: 0;
  opacity: 0.7;
}
.cdk-drag-preview.bdCardEdSec {
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-lg);
  border: 1px solid var(--site-quaternary-color);
  background: #ffffff;
  opacity: 0.96;
}
.cdk-drag-animating { transition: transform 240ms cubic-bezier(0, 0, 0.2, 1); }
.bdCardEdList.cdk-drop-list-dragging .bdCardEdSec:not(.cdk-drag-placeholder) {
  transition: transform 240ms cubic-bezier(0, 0, 0.2, 1);
}

.bdCardEdIcon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  background: rgba(240, 92, 41, 0.12);
  color: var(--site-cta-color);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 13px;
  transition: background 0.15s, color 0.15s;
}

.bdCardEdMeta {
  flex: 1;
  min-width: 0;
}
.bdCardEdName {
  font-weight: 700;
  font-size: 14px;
  color: var(--site-text-color);
  display: flex;
  align-items: center;
  gap: 8px;
}
.bdCardEdLockedBadge {
  font-size: 10px !important;
  padding: 1px 7px !important;
  letter-spacing: 0.05em;
}
.bdCardEdDesc {
  font-size: 11.5px;
  color: var(--site-text-muted-color);
  margin-top: 2px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
}

.bdCardEdActions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* toggle */
.bdCardEdToggle {
  width: 38px;
  height: 22px;
  background: var(--site-input-border);
  border: none;
  border-radius: var(--radius-full);
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s;
  padding: 0;
}
.bdCardEdToggleKnob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  background: #ffffff;
  border-radius: 50%;
  transition: left 0.15s;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}
.bdCardEdToggleOn {
  background: var(--site-cta-color);
}
.bdCardEdToggleOn .bdCardEdToggleKnob {
  left: 18px;
}
.bdCardEdToggle:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ─── Inline editor panel ────────────────────────────────────────── */
.bdCardEdEditor {
  border-top: 1px solid var(--site-quaternary-color);
  background: var(--site-secondary-color);
  animation: bdCardEdSlideDown 0.2s ease;
}
@keyframes bdCardEdSlideDown {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.bdCardEdEditorBody {
  padding: 18px 20px;
  background-color: #ffffff;
}

/* Visual break between the shared <app-card-item-setting> block (Card Effect /
   Header / Sub Header) and the section-specific editor that follows below. */
.bdCardEdEditorDivider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0 18px;
  color: var(--site-text-muted-color);
}
.bdCardEdEditorDivider::before,
.bdCardEdEditorDivider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--site-quaternary-color);
}
.bdCardEdEditorDividerLabel {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

/* Bottom save bar — only visible when we have unsaved changes. */
.bdCardEdEditorActions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--site-quaternary-color);
}

.bdCardEdEditorFallback {
  text-align: center;
  padding: 30px 20px;
  color: var(--site-text-muted-color);
}
.bdCardEdEditorFallback i.fa-light {
  font-size: 32px;
  margin-bottom: 10px;
  display: block;
  opacity: 0.6;
}
.bdCardEdEditorFallbackTitle {
  font-weight: 700;
  color: var(--site-text-color);
  font-size: 14px;
}
.bdCardEdEditorFallbackSub {
  font-size: 12.5px;
  margin: 4px 0 14px;
}

/* ─── Phone preview (iframe in device frame) ─────────────────────── */
.bdCardEdPreviewHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.bdCardEdPreviewTitle {
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--site-text-color);
}
.bdCardEdPreviewTitle i {
  color: var(--site-cta-color);
}
.bdCardEdPreviewFoot {
  font-size: 11px;
  color: var(--site-text-muted-color);
  margin-top: 12px;
  text-align: center;
  word-break: break-all;
}
.bdCardEdPreviewFoot a {
  color: var(--site-cta-color);
  text-decoration: none;
}
.bdCardEdPreviewFoot a:hover {
  text-decoration: underline;
}

.bdCardEdPhone {
  width: 320px;
  max-width: 100%;
  margin: 0 auto;
  background: linear-gradient(180deg, #1a1a1a, #0e0e0e);
  border-radius: 38px;
  padding: 11px;
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  position: relative;
}
.bdCardEdPhoneNotch {
  position: absolute;
  top: 11px;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 24px;
  background: #0a0a0a;
  border-radius: 0 0 16px 16px;
  z-index: 5;
}
.bdCardEdPhoneFrame {
  background: #ffffff;
  border-radius: 28px;
  overflow: hidden;
  height: 640px;
  position: relative;
}
/* Push the iframe's scrollbar past the clipped edge of the phone frame.
   Trackpad / mouse-wheel scrolling still works because the iframe captures
   pointer events normally; only the visible scrollbar gutter is hidden. */
.bdCardEdPhoneIframe {
  width: calc(100% + 18px);
  height: 100%;
  border: 0;
  display: block;
  scrollbar-width: none; /* Firefox */
}
.bdCardEdPhoneIframe::-webkit-scrollbar {
  display: none;
} /* Chromium / Safari, when same-origin */

/* ─── Rate Card inline editor (new design) ──────────────────────── */
.bdRate {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.bdRateLabel {
  font-size: 11px;
  color: var(--site-text-muted-color);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}

.bdRateRow {
  /* effect chips block */
}
.bdRateChips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.bdRateChip {
  padding: 6px 14px;
  background: #ffffff;
  border: 1px solid var(--site-quaternary-color);
  border-radius: var(--radius-md);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--site-text-muted-color);
  cursor: pointer;
  font-family: inherit;
  transition: var(--transition-fast);
}
.bdRateChip:hover {
  color: var(--site-text-color);
  border-color: var(--site-input-border);
}
.bdRateChipOn {
  background: rgba(240, 92, 41, 0.12);
  border-color: var(--site-cta-color);
  color: var(--site-cta-color);
}

.bdRateGrid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 600px) {
  .bdRateGrid2 {
    grid-template-columns: 1fr;
  }
}

.bdRateItemsLabel {
  font-size: 11px;
  color: var(--site-text-muted-color);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 4px;
}

.bdRateTable {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.bdRateTableHead,
.bdRateTableRow {
  display: grid;
  grid-template-columns: 28px 1fr 160px 140px 36px;
  gap: 8px;
  align-items: center;
}
.bdRateTableHead {
  padding: 0 8px;
  font-size: 11px;
  color: var(--site-text-muted-color);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.bdRateTableRow .bdTeamsInput {
  padding: 8px 11px;
  font-size: 13px;
}
.bdRateTableRowSaving {
  opacity: 0.6;
}
.bdRateTableRowDirty .bdTeamsInput {
  border-color: var(--site-cta-color);
}

.bdRateExpand {
  width: 28px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--site-quaternary-color);
  border-radius: var(--radius-sm);
  color: var(--site-text-muted-color);
  cursor: pointer;
  transition: var(--transition-fast);
  font-size: 10px;
}
.bdRateExpand:hover {
  border-color: var(--site-cta-color);
  color: var(--site-cta-color);
}

/* Expanded advanced-fields block */
.bdRateAdv {
  margin: 4px 0 8px 36px;
  padding: 14px 16px;
  background: var(--site-secondary-color);
  border: 1px solid var(--site-quaternary-color);
  border-radius: var(--radius-md);
}
.bdRateAdvGrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 12px;
}
.bdRateAdvLabel {
  font-size: 11px;
  color: var(--site-text-muted-color);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 5px;
}
.bdRateAdvToggle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--site-text-color);
  cursor: pointer;
  margin-top: 4px;
}
.bdRateAdvToggle input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--site-cta-color);
  cursor: pointer;
}

@media (max-width: 800px) {
  .bdRateAdvGrid {
    grid-template-columns: 1fr;
  }
  .bdRateAdv {
    margin-left: 0;
  }
}

.bdRateDel {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid transparent;
  color: var(--site-text-muted-color);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-fast);
}
.bdRateDel:hover:not(:disabled) {
  color: var(--site-error-color);
  border-color: rgba(220, 38, 38, 0.3);
  background: rgba(220, 38, 38, 0.08);
}
.bdRateDel:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.bdRateTableEmpty {
  padding: 18px;
  text-align: center;
  color: var(--site-text-muted-color);
  font-size: 12.5px;
  border: 1px dashed var(--site-quaternary-color);
  border-radius: var(--radius-md);
}

.bdRateAddRow {
  width: 100%;
  padding: 10px;
  background: transparent;
  border: 1.5px dashed var(--site-input-border);
  border-radius: var(--radius-md);
  color: var(--site-text-muted-color);
  font-weight: 600;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  font-family: inherit;
  transition: var(--transition-fast);
}
.bdRateAddRow:hover {
  color: var(--site-cta-color);
  border-color: var(--site-cta-color);
  background: rgba(240, 92, 41, 0.05);
}

@media (max-width: 700px) {
  .bdRateTableHead,
  .bdRateTableRow {
    grid-template-columns: 24px 1fr 100px 100px 32px;
  }
}

/* ─── Empty ──────────────────────────────────────────────────────── */
.bdCardEdEmpty {
  text-align: center;
  padding: 60px 20px;
  color: var(--site-text-muted-color);
  background: #ffffff;
  border: 1px dashed var(--site-quaternary-color);
  border-radius: var(--radius-lg);
}
.bdCardEdEmpty i {
  font-size: 40px;
  margin-bottom: 12px;
  display: block;
  opacity: 0.5;
}
.bdCardEdEmpty p {
  margin: 0;
  font-weight: 600;
}
.bdCardEdEmptySub {
  font-weight: 400 !important;
  font-size: 12.5px;
  margin-top: 4px !important;
  opacity: 0.8;
}

/* ─── Help / FAQ panel (right column) ────────────────────────────── */
.bdCardEdFaq {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.bdCardEdFaqHead {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--site-quaternary-color);
}
.bdCardEdFaqHeadIcon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md, 10px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  background: var(--site-secondary-color);
  color: var(--site-cta-color);
}
.bdCardEdFaqEyebrow {
  font-size: 10.5px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--site-text-muted-color);
}
.bdCardEdFaqTitle {
  font-size: 16px;
  font-weight: 700;
  margin: 2px 0 0;
  color: var(--site-text-color);
  line-height: 1.25;
}
.bdCardEdFaqList {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.bdCardEdFaqItem {
  border: 1px solid var(--site-quaternary-color);
  border-radius: var(--radius-md, 10px);
  background: #ffffff;
  overflow: hidden;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.bdCardEdFaqItemOpen {
  border-color: var(--site-cta-color);
  box-shadow: 0 0 0 1px var(--site-cta-color);
}
.bdCardEdFaqQ {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  background: transparent;
  border: none;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  color: var(--site-text-color);
  transition: background 0.15s;
}
.bdCardEdFaqQ:hover {
  background: var(--site-secondary-color);
}
.bdCardEdFaqQ i {
  flex-shrink: 0;
  font-size: 12px;
  color: var(--site-text-muted-color);
}
.bdCardEdFaqItemOpen .bdCardEdFaqQ i {
  color: var(--site-cta-color);
}
.bdCardEdFaqA {
  padding: 0 14px 14px;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--site-text-color);
  animation: bdCardEdSlideDown 0.2s ease;
}
.bdCardEdFaqA p {
  margin: 0;
}
.bdCardEdFaqEmpty {
  color: var(--site-text-muted-color);
  font-style: italic;
}

/* ─── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 1200px) {
  .bdCardEdLayout {
    grid-template-columns: minmax(0, 1fr) 340px;
  }
  .bdCardEdPhone {
    width: 290px;
  }
  .bdCardEdPhoneFrame {
    height: 580px;
  }
}
@media (max-width: 1000px) {
  .bdCardEdLayout {
    grid-template-columns: 1fr;
  }
  .bdCardEdRight {
    position: static;
  }
  .bdCardEdPhone {
    width: 320px;
  }
  .bdCardEdPhoneFrame {
    height: 620px;
  }
}

/* ─── Mobile bottom-bar (sticky Preview + Publish) ──────────────── */
/* Hidden by default; revealed under 768px alongside the top-bar actions
   collapsing and the live preview being dropped from the layout. */
.bdCardEdMobileBar {
  display: none;
}
@media (max-width: 768px) {
  /* Hide the top-bar action buttons; the sticky bottom bar covers them. */
  .bdCardEdTopRight {
    display: none;
  }
  /* Show the sticky bottom action bar. */
  .bdCardEdMobileBar {
    display: flex;
    gap: 10px;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--site-quaternary-color);
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.06);
    z-index: 50;
  }
  .bdCardEdMobileBarBtn {
    flex: 1;
    justify-content: center;
    padding: 11px 14px;
    font-size: 14px;
    /* Use the same rectangular corner radius as the desktop .bdTeamsBtn —
       inherits var(--radius-md). No pill / capsule shape. */
  }
  /* Leave room for the sticky bar so the last section isn't covered. */
  .bdCardEd {
    padding-bottom: 88px;
  }
}
@media (max-width: 700px) {
  .bdCardEdTopbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .bdCardEdTopRight {
    flex-wrap: wrap;
  }
  /* Keep the row on a single line on mobile — wrapping made the toggle and
     Edit button drop awkwardly under the name. Tighter padding + smaller
     Edit button keeps everything visible at narrow widths. */
  .bdCardEdRow {
    gap: 8px;
    padding-right: 10px;
    min-height: 52px;
  }
  .bdCardEdRow > .bdCardEdIcon { margin-left: 2px; }
  .bdCardEdMeta { min-width: 0; }
  .bdCardEdName { font-size: 13.5px; }
  .bdCardEdDesc { font-size: 10.5px; }
  .bdCardEdActions {
    gap: 6px;
    margin-top: 0;
    flex-shrink: 0;
  }
  /* Hide the Edit button label on very narrow screens, keep the icon. */
  .bdCardEdActions .bdTeamsBtn span,
  .bdCardEdActions .bdTeamsBtn {
    font-size: 12px;
  }
  .bdCardEdLockedBadge { display: none; }
  .bdCardEdEditorActions {
    flex-direction: column-reverse;
    align-items: stretch;
  }
}
@media (max-width: 420px) {
  /* Even tighter — drag handle a touch narrower, hide section descriptor. */
  .bdCardEdDrag { width: 22px; }
  .bdCardEdDesc { display: none; }
  .bdCardEdIcon { width: 28px; height: 28px; font-size: 12px; }
}

/* ═══════════════════════════════════════════════════════════════════
   publish-loader (was: publish-loader.component.css)
   ═══════════════════════════════════════════════════════════════════ */
/* ═══════════════════════════════════════════════════════════════════
   Publish Loader — engaging modal for 10–20s API operations.
   Class prefix: bdPublish
   ═══════════════════════════════════════════════════════════════════ */

.bdPublish {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--site-body-font);
  color: var(--site-text-color);
  animation: bdPublishFadeIn 0.2s ease;
}
@keyframes bdPublishFadeIn { from { opacity: 0; } to { opacity: 1; } }

.bdPublishBackdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 14, 28, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.bdPublishCard {
  position: relative;
  display: grid;
  grid-template-columns: minmax(360px, 1fr) 280px;
  gap: 0;
  width: 760px;
  max-width: calc(100vw - 32px);
  background: #ffffff;
  border-radius: var(--radius-xl);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  animation: bdPublishPop 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes bdPublishPop {
  from { transform: translateY(12px) scale(0.96); opacity: 0; }
  to   { transform: none; opacity: 1; }
}

/* ─── LEFT ─────────────────────────────────────────────────────── */
.bdPublishLeft {
  padding: 28px 30px 24px;
  display: flex;
  flex-direction: column;
}

.bdPublishStateChip {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: rgba(22, 163, 74, 0.14);
  color: var(--site-success-color);
  margin-bottom: 10px;
}
.bdPublishStateChipError {
  background: rgba(220, 38, 38, 0.14);
  color: var(--site-error-color);
}

.bdPublishTitle {
  font-family: var(--site-secondary-font);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--site-text-color);
}
.bdPublishSub {
  color: var(--site-text-muted-color);
  font-size: 13.5px;
  margin: 4px 0 18px;
  line-height: 1.5;
}

/* Progress */
.bdPublishProgressWrap { margin-bottom: 16px; }
.bdPublishProgress {
  width: 100%;
  height: 6px;
  background: var(--site-secondary-color);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.bdPublishProgressBar {
  height: 100%;
  background: linear-gradient(90deg, var(--site-cta-color), #ff8c4a);
  border-radius: var(--radius-full);
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.bdPublishProgressBar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.4) 50%, transparent 100%);
  animation: bdPublishShimmer 1.5s linear infinite;
}
@keyframes bdPublishShimmer {
  from { transform: translateX(-100%); }
  to   { transform: translateX(100%); }
}
.bdPublishProgressBarDone {
  background: linear-gradient(90deg, var(--site-success-color), #34d399);
}
.bdPublishProgressBarDone::after { display: none; }

.bdPublishTime {
  font-size: 12px;
  color: var(--site-text-muted-color);
  margin-top: 6px;
  font-variant-numeric: tabular-nums;
}

/* Phases */
.bdPublishPhases {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.bdPublishPhase {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--site-text-muted-color);
  transition: color 0.2s;
}
.bdPublishPhaseDot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--site-secondary-color);
  border: 1.5px solid var(--site-quaternary-color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 10px;
  color: var(--site-text-muted-color);
  transition: all 0.2s;
}
.bdPublishPhaseCurrent { color: var(--site-text-color); font-weight: 600; }
.bdPublishPhaseCurrent .bdPublishPhaseDot {
  background: rgba(240, 92, 41, 0.12);
  border-color: var(--site-cta-color);
  color: var(--site-cta-color);
}
.bdPublishPhaseDone { color: var(--site-text-color); }
.bdPublishPhaseDone .bdPublishPhaseDot {
  background: var(--site-success-color);
  border-color: var(--site-success-color);
  color: #ffffff;
}

/* Tip */
.bdPublishTip {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  background: rgba(240, 92, 41, 0.06);
  border: 1px solid rgba(240, 92, 41, 0.18);
  border-radius: var(--radius-md);
  font-size: 12.5px;
  color: var(--site-text-color);
  line-height: 1.5;
  margin-bottom: 16px;
}
.bdPublishTip i { color: var(--site-cta-color); margin-top: 1px; }
.bdPublishTipText { flex: 1; }

/* Actions */
.bdPublishActions {
  margin-top: auto;
  display: flex;
  gap: 8px;
  align-items: center;
}
.bdPublishBtn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--site-quaternary-color);
  background: #ffffff;
  color: var(--site-text-color);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: var(--transition-fast);
  font-family: inherit;
}
.bdPublishBtn:hover:not(:disabled) {
  background: var(--site-secondary-color);
  border-color: var(--site-input-border);
}
.bdPublishBtnPrimary {
  background: var(--site-cta-color);
  border-color: var(--site-cta-color);
  color: #ffffff;
}
.bdPublishBtnPrimary:hover {
  background: #d94d1f;
  border-color: #d94d1f;
}
.bdPublishBtnGhost {
  border-color: transparent;
  background: transparent;
  color: var(--site-text-muted-color);
}
.bdPublishBtnGhost:hover {
  background: var(--site-secondary-color);
  color: var(--site-text-color);
}

/* ─── RIGHT (phone illustration) ─────────────────────────────── */
.bdPublishRight {
  background: linear-gradient(160deg, var(--site-secondary-color), #e4e8ff);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  position: relative;
}

.bdPublishPhone {
  width: 180px;
  background: linear-gradient(180deg, #1a1a1a, #0e0e0e);
  border-radius: 24px;
  padding: 7px;
  position: relative;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.3),
              0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}
.bdPublishPhoneNotch {
  position: absolute;
  top: 7px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 16px;
  background: #0a0a0a;
  border-radius: 0 0 10px 10px;
  z-index: 5;
}
.bdPublishPhoneScreen {
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 9 / 19;
  padding: 28px 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bdPublishPhoneCover {
  height: 36px;
  border-radius: 6px;
  background: var(--site-quaternary-color);
  transition: background 0.4s;
}
.bdPublishPhoneAvatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--site-quaternary-color);
  margin: -16px 0 4px 8px;
  border: 2px solid #ffffff;
  position: relative;
  z-index: 2;
  transition: background 0.4s;
}
.bdPublishPhoneSec {
  height: 16px;
  border-radius: 4px;
  background: var(--site-quaternary-color);
  transition: background 0.4s, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.bdPublishPhoneSec:nth-child(odd) { width: 88%; }
.bdPublishPhoneSec:nth-child(even) { width: 70%; }

/* Loading shimmer for pending parts */
.bdPublishPhonePartLoading {
  background: linear-gradient(90deg,
              var(--site-quaternary-color) 0%,
              #f3f1e9 50%,
              var(--site-quaternary-color) 100%) !important;
  background-size: 200% 100% !important;
  animation: bdPublishShimmerFill 1.4s linear infinite;
}
@keyframes bdPublishShimmerFill {
  from { background-position: 200% 0; }
  to   { background-position: -200% 0; }
}

/* "Filled in" state once that phase completes */
.bdPublishPhonePartOn { animation: none !important; }
.bdPublishPhoneCover.bdPublishPhonePartOn {
  background: linear-gradient(135deg, var(--site-cta-color), #ff8c4a);
}
.bdPublishPhoneAvatar.bdPublishPhonePartOn {
  background: linear-gradient(135deg, #6366f1, #a855f7);
}
.bdPublishPhoneSec.bdPublishPhonePartOn {
  background: var(--site-text-color);
  transform: scale(1.02);
}
.bdPublishPhoneSec:not(:first-of-type).bdPublishPhonePartOn {
  background: #c9d0de;
}

/* Success ring overlay */
.bdPublishPhoneRing {
  position: absolute;
  inset: -8px;
  border-radius: 30px;
  border: 2px solid var(--site-success-color);
  box-shadow: 0 0 0 8px rgba(22, 163, 74, 0.15);
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 6px;
  pointer-events: none;
  animation: bdPublishRingIn 0.4s ease;
}
.bdPublishPhoneRing i {
  font-size: 22px;
  color: var(--site-success-color);
  background: #ffffff;
  border-radius: 50%;
  margin-top: -12px;
  margin-right: -8px;
}
@keyframes bdPublishRingIn {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: none; }
}

/* Error variant */
.bdPublishError .bdPublishRight {
  background: linear-gradient(160deg, rgba(220, 38, 38, 0.06), rgba(220, 38, 38, 0.02));
}

/* ─── Responsive ──────────────────────────────────────────────── */
@media (max-width: 720px) {
  .bdPublishCard { grid-template-columns: 1fr; width: 100%; max-width: 420px; }
  .bdPublishRight { padding: 18px; min-height: 200px; }
  .bdPublishPhone { width: 140px; }
}

/* ═══════════════════════════════════════════════════════════════════
   smart-tags (was: smart-tags.component.css)
   ═══════════════════════════════════════════════════════════════════ */
.bdTagGrid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 16px;
}

/* List */
.bdTagList {
  padding: 0;
  max-height: 640px;
  overflow-y: auto;
}
.bdTagItem {
  padding: 14px 16px;
  border-bottom: 1px solid var(--site-quaternary-color);
  cursor: pointer;
  transition: background 0.15s;
}
.bdTagItem:hover { background: var(--site-secondary-color); }
.bdTagItemActive {
  background: var(--site-secondary-color);
  border-left: 3px solid var(--site-cta-color);
  padding-left: 13px;
}
.bdTagItemHead {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.bdTagName { font-weight: 700; font-size: 14px; }
.bdTagId {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  color: var(--site-text-muted-color);
  margin-top: 2px;
}
.bdTagMeta {
  display: flex;
  gap: 10px;
  margin-top: 8px;
  align-items: center;
  font-size: 11.5px;
  color: var(--site-text-muted-color);
  flex-wrap: wrap;
}
.bdTagCount {
  color: var(--site-cta-color);
  font-weight: 700;
}

/* Editor */
.bdTagEditor { padding: 0; }
.bdTagSection {
  padding: 18px 20px;
  border-bottom: 1px solid var(--site-quaternary-color);
}
.bdTagSection:last-of-type { border-bottom: none; }

.bdTagRow2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.bdTagMt12 { margin-top: 12px; }

.bdTagMono { font-family: 'JetBrains Mono', ui-monospace, monospace; }

.bdTagHint {
  margin-top: 10px;
  font-size: 11.5px;
  color: var(--site-text-muted-color);
}

/* Map */
.bdTagMap {
  height: 240px;
  background: #f8fafc;
  border: 1px solid var(--site-quaternary-color);
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
  background-image:
    linear-gradient(rgba(120, 130, 150, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 130, 150, 0.18) 1px, transparent 1px);
  background-size: 30px 30px;
  background-position: -1px -1px;
  margin-top: 6px;
}
.bdTagPin {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -100%);
  z-index: 3;
}
.bdTagPinDot {
  width: 14px;
  height: 14px;
  background: var(--site-cta-color);
  border: 2.5px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(240, 92, 41, 0.5);
}
.bdTagGeofence {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200px;
  height: 200px;
  border: 2px solid var(--site-cta-color);
  border-radius: 50%;
  background: rgba(240, 92, 41, 0.12);
  z-index: 2;
}
.bdTagCoords {
  position: absolute;
  bottom: 10px;
  left: 10px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  color: var(--site-text-color);
  background: rgba(255, 255, 255, 0.9);
  padding: 5px 9px;
  border-radius: 5px;
  border: 1px solid var(--site-quaternary-color);
}

.bdTagRadius {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}
.bdTagRadius input[type="range"] {
  flex: 1;
  accent-color: var(--site-cta-color);
}
.bdTagRadiusLabel {
  font-size: 12px;
  color: var(--site-text-muted-color);
  font-weight: 600;
}
.bdTagRadiusVal {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  color: var(--site-cta-color);
  font-weight: 700;
  min-width: 70px;
  text-align: right;
}

/* Chips */
.bdTagChips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.bdTagChip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 4px 4px;
  background: var(--site-secondary-color);
  border: 1px solid var(--site-quaternary-color);
  border-radius: var(--radius-full);
  font-size: 12px;
}
.bdTagToggleLabel { font-size: 13px; }

/* Stats */
.bdTagStats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.bdTagStat {
  padding: 16px 20px;
  border-right: 1px solid var(--site-quaternary-color);
}
.bdTagStat:last-child { border-right: none; }
.bdTagStatNum {
  font-family: var(--site-secondary-font);
  font-size: 22px;
  font-weight: 600;
}
.bdTagStatNumCta { color: var(--site-cta-color); }
.bdTagStatNumSuccess { color: var(--site-success-color); }
.bdTagStatLabel {
  font-size: 11px;
  color: var(--site-text-muted-color);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 2px;
}

@media (max-width: 1000px) {
  .bdTagGrid { grid-template-columns: 1fr; }
  .bdTagRow2 { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════════
   grow-upsell (was: grow-upsell.component.css)
   ═══════════════════════════════════════════════════════════════════ */
.bdUpGrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.bdUpCard {
  padding: 24px;
  position: relative;
  overflow: hidden;
}
.bdUpCard::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: var(--site-cta-color);
  opacity: 0.1;
  filter: blur(50px);
}
.bdUpCard[data-accent="blue"]::before   { background: var(--site-info-color); }
.bdUpCard[data-accent="purple"]::before { background: #7c3aed; }
.bdUpCard[data-accent="green"]::before  { background: var(--site-success-color); }

.bdUpIcon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-lg);
  background: rgba(240, 92, 41, 0.14);
  color: var(--site-cta-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  font-size: 17px;
  position: relative;
  z-index: 1;
}
.bdUpIcon[data-accent="blue"]   { background: rgba(34, 85, 232, 0.14);  color: var(--site-info-color); }
.bdUpIcon[data-accent="purple"] { background: rgba(124, 58, 237, 0.14); color: #7c3aed; }
.bdUpIcon[data-accent="green"]  { background: rgba(22, 163, 74, 0.14);  color: var(--site-success-color); }

.bdUpTitle {
  font-family: var(--site-secondary-font);
  font-size: 20px;
  font-weight: 600;
  position: relative;
  z-index: 1;
}
.bdUpDesc {
  color: var(--site-text-muted-color);
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.55;
  position: relative;
  z-index: 1;
}
.bdUpFeatures {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 14px 0 18px;
  position: relative;
  z-index: 1;
}
.bdUpFeat {
  font-size: 12.5px;
  color: var(--site-text-muted-color);
  display: flex;
  align-items: center;
  gap: 8px;
}
.bdUpFeat i {
  color: var(--site-success-color);
  font-weight: 700;
}
.bdUpActions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

@media (max-width: 900px) {
  .bdUpGrid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════════
   events-campaigns (was: events-campaigns.component.css)
   ═══════════════════════════════════════════════════════════════════ */
.bdEvtGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}
.bdEvtCard {
  padding: 16px;
  cursor: pointer;
  transition: all 0.15s;
}
.bdEvtCard:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.bdEvtCardSelected {
  border-color: var(--site-cta-color) !important;
  background: linear-gradient(135deg, #ffffff 0%, rgba(240, 92, 41, 0.05) 100%);
}
.bdEvtCardHead {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}
.bdEvtName { font-weight: 700; font-size: 14.5px; }
.bdEvtDates {
  font-size: 11.5px;
  color: var(--site-text-muted-color);
  margin-top: 3px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
}
.bdEvtFoot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--site-quaternary-color);
}
.bdEvtCaption { font-size: 12px; color: var(--site-text-muted-color); }
.bdEvtCaption strong { color: var(--site-text-color); font-weight: 700; }

/* Schedule */
.bdEvtSched { margin-bottom: 16px; }
.bdEvtTimeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  padding: 20px;
  position: relative;
}
.bdEvtTimeline::before {
  content: '';
  position: absolute;
  top: 56px;
  left: 60px;
  right: 60px;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--site-input-border) 0 8px, transparent 8px 14px);
  z-index: 0;
}
.bdEvtStep {
  background: var(--site-secondary-color);
  border: 1px solid var(--site-quaternary-color);
  border-radius: var(--radius-md);
  padding: 12px;
  position: relative;
  z-index: 1;
  cursor: pointer;
  transition: all 0.15s;
}
.bdEvtStepActive {
  border-color: var(--site-cta-color);
  background: rgba(240, 92, 41, 0.06);
}
.bdEvtStepNum {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--site-cta-color);
  color: #ffffff;
  font-weight: 700;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}
.bdEvtWhen {
  font-size: 11px;
  color: var(--site-text-muted-color);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.bdEvtStepTitle { font-weight: 700; font-size: 13px; margin-top: 4px; }
.bdEvtStepChan { display: flex; gap: 4px; margin-top: 8px; }

/* Template */
.bdEvtTpl { overflow: hidden; }
.bdEvtTplSub {
  padding: 14px 18px;
  border-bottom: 1px solid var(--site-quaternary-color);
}
.bdEvtBody {
  padding: 18px 20px;
  min-height: 220px;
  font-size: 14px;
  line-height: 1.65;
  background: var(--site-secondary-color);
}
.bdEvtBody p { margin-bottom: 10px; }
.bdEvtVar {
  display: inline-flex;
  align-items: center;
  background: rgba(240, 92, 41, 0.14);
  color: var(--site-cta-color);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  font-weight: 600;
  padding: 1px 7px;
  border-radius: var(--radius-sm);
  margin: 0 1px;
  border: 1px solid rgba(240, 92, 41, 0.25);
}

.bdEvtCost {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: var(--site-secondary-color);
  border-top: 1px solid var(--site-quaternary-color);
}
.bdEvtCostLabel { font-size: 12px; color: var(--site-text-muted-color); }
.bdEvtCostAmt {
  font-family: var(--site-secondary-font);
  font-size: 22px;
  font-weight: 600;
}
.bdEvtCostAmt small {
  color: var(--site-text-muted-color);
  font-size: 12px;
  font-weight: 500;
}
.bdEvtCostAmtCta { color: var(--site-cta-color); }

/* Channel pills */
.bdEvtChan { display: flex; gap: 4px; }
.bdEvtChanBtn {
  padding: 5px 10px;
  background: var(--site-secondary-color);
  border: 1px solid var(--site-quaternary-color);
  border-radius: var(--radius-md);
  color: var(--site-text-muted-color);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
}
.bdEvtChanBtnActive {
  color: var(--site-cta-color);
  border-color: var(--site-cta-color);
  background: rgba(240, 92, 41, 0.1);
}

@media (max-width: 1000px) {
  .bdEvtGrid { grid-template-columns: 1fr; }
  .bdEvtTimeline { grid-template-columns: repeat(2, 1fr); }
  .bdEvtTimeline::before { display: none; }
}

/* ═══════════════════════════════════════════════════════════════════
   members (was: members.component.css)
   ═══════════════════════════════════════════════════════════════════ */
/* ─── Stat strip ──────────────────────────────────────────────────── */
.bdMembStats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}
.bdMembStat {
  background: #ffffff;
  border: 1px solid var(--site-quaternary-color);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  box-shadow: var(--shadow-card);
}
.bdMembStatLabel {
  font-size: 11px;
  color: var(--site-text-muted-color);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.bdMembStatVal {
  font-size: 22px;
  font-weight: 700;
  font-family: var(--site-secondary-font);
  margin-top: 4px;
  color: var(--site-text-color);
}
.bdMembStatVal small {
  font-size: 13px;
  color: var(--site-text-muted-color);
  font-weight: 500;
}
.bdMembStatValWarn { color: var(--site-warning-color); }

/* ─── Table cells ─────────────────────────────────────────────────── */
.bdMembCheckCol { width: 36px; }
.bdMembActionsCol { width: 80px; }

.bdMembCheck {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: var(--site-cta-color);
}

.bdMembMuted { color: var(--site-text-muted-color); }
.bdMembSmall { font-size: 12px; }
.bdMembMono {
  color: var(--site-text-muted-color);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
}

.bdMembExpires {
  font-weight: 500;
  color: var(--site-text-muted-color);
}
.bdMembExpires[data-tone="soon"] {
  color: var(--site-warning-color);
  font-weight: 600;
}
.bdMembExpires[data-tone="bad"] {
  color: var(--site-error-color);
  font-weight: 600;
}

.bdMembRowActions {
  display: flex;
  gap: 4px;
  justify-content: flex-end;
}

/* ─── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .bdMembStats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .bdMembStats { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════════
   lead-inbox (was: lead-inbox.component.css)
   ═══════════════════════════════════════════════════════════════════ */
.bdInboxLayout {
  display: grid;
  grid-template-columns: 340px 1fr 280px;
  gap: 14px;
  height: calc(100vh - 220px);
}
.bdInboxContacts,
.bdInboxThread,
.bdInboxTimeline {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Contacts */
.bdInboxContactsHead { padding: 10px 14px !important; }
.bdInboxContactsList { flex: 1; overflow-y: auto; }
.bdInboxContact {
  padding: 12px 16px;
  border-bottom: 1px solid var(--site-quaternary-color);
  cursor: pointer;
  display: flex;
  gap: 11px;
}
.bdInboxContact:hover { background: var(--site-secondary-color); }
.bdInboxContactActive {
  background: var(--site-secondary-color);
  border-left: 3px solid var(--site-cta-color);
  padding-left: 13px;
}
.bdInboxContactMeta { flex: 1; min-width: 0; }
.bdInboxContactName {
  font-weight: 700;
  font-size: 13.5px;
  display: flex;
  justify-content: space-between;
}
.bdInboxContactTime {
  font-size: 10.5px;
  color: var(--site-text-muted-color);
  font-weight: 500;
}
.bdInboxContactSnippet {
  font-size: 12px;
  color: var(--site-text-muted-color);
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bdInboxSnippetGreen { color: var(--site-success-color); font-weight: 600; }
.bdInboxSnippetRed   { color: var(--site-error-color); }
.bdInboxContactTags { display: flex; gap: 4px; margin-top: 6px; flex-wrap: wrap; }

/* Thread */
.bdInboxThreadHeader {
  padding: 14px 18px;
  border-bottom: 1px solid var(--site-quaternary-color);
  display: flex;
  gap: 12px;
  align-items: center;
}
.bdInboxThreadName { font-weight: 700; font-size: 16px; }
.bdInboxThreadInfo {
  font-size: 12px;
  color: var(--site-text-muted-color);
  margin-top: 1px;
}
.bdInboxThreadTags { margin-top: 6px; display: flex; gap: 6px; flex-wrap: wrap; }

.bdInboxBody { flex: 1; overflow-y: auto; padding: 18px; }
.bdInboxMsg {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}
.bdInboxMsgOut { flex-direction: row-reverse; }
.bdInboxMsgChannel {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.bdInboxMsgChannel[data-channel="email"]    { background: rgba(34, 85, 232, 0.14);  color: var(--site-info-color); }
.bdInboxMsgChannel[data-channel="whatsapp"] { background: rgba(22, 163, 74, 0.14);  color: var(--site-success-color); }
.bdInboxBubble {
  max-width: 70%;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  background: #ffffff;
  border: 1px solid var(--site-quaternary-color);
}
.bdInboxBubbleOut { background: var(--site-secondary-color); }
.bdInboxMsgSubj { font-weight: 700; font-size: 12.5px; margin-bottom: 3px; }
.bdInboxMsgText { font-size: 13px; color: var(--site-text-color); }
.bdInboxMsgMeta {
  font-size: 10.5px;
  color: var(--site-text-muted-color);
  margin-top: 5px;
  display: flex;
  gap: 6px;
  align-items: center;
}
.bdInboxMsgState { color: var(--site-success-color); }

/* Reply */
.bdInboxReply {
  padding: 12px 14px;
  border-top: 1px solid var(--site-quaternary-color);
}
.bdInboxReplyInput {
  width: 100%;
  background: #ffffff;
  border: 1px solid var(--site-input-border);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  color: var(--site-text-color);
  font: inherit;
  font-size: 13px;
  resize: none;
  min-height: 60px;
  outline: none;
}
.bdInboxReplyInput:focus { border-color: var(--site-cta-color); }
.bdInboxReplyActions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
}
.bdInboxChanPick { display: flex; gap: 4px; }
.bdInboxChanBtn {
  padding: 5px 10px;
  background: var(--site-secondary-color);
  border: 1px solid var(--site-quaternary-color);
  border-radius: var(--radius-md);
  color: var(--site-text-muted-color);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
}
.bdInboxChanBtnActive {
  color: var(--site-cta-color);
  border-color: var(--site-cta-color);
  background: rgba(240, 92, 41, 0.1);
}

/* Timeline */
.bdInboxTlHead {
  padding: 14px 16px;
  border-bottom: 1px solid var(--site-quaternary-color);
}
.bdInboxTlTitle {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--site-text-muted-color);
}
.bdInboxTlSub {
  font-size: 12px;
  color: var(--site-text-color);
  margin-top: 4px;
}
.bdInboxTlList { padding: 8px 0; flex: 1; overflow-y: auto; }
.bdInboxTlStep {
  display: flex;
  gap: 10px;
  padding: 10px 16px;
  align-items: flex-start;
}
.bdInboxTlIcon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--site-input-border);
  background: #ffffff;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: var(--site-text-muted-color);
  font-weight: 700;
  position: relative;
}
.bdInboxTlStep:not(:last-child) .bdInboxTlIcon::after {
  content: '';
  position: absolute;
  top: 22px;
  left: 50%;
  width: 2px;
  height: 24px;
  background: var(--site-quaternary-color);
  transform: translateX(-50%);
}
.bdInboxTlStep[data-state="done"] .bdInboxTlIcon {
  background: var(--site-success-color);
  border-color: var(--site-success-color);
  color: #ffffff;
}
.bdInboxTlStep[data-state="active"] .bdInboxTlIcon {
  background: var(--site-cta-color);
  border-color: var(--site-cta-color);
  color: #ffffff;
}
.bdInboxTlText { font-size: 12.5px; flex: 1; }
.bdInboxTlText strong { display: block; font-weight: 600; }
.bdInboxTlWhen { font-size: 10.5px; color: var(--site-text-muted-color); margin-top: 2px; }

@media (max-width: 1200px) {
  .bdInboxLayout { grid-template-columns: 280px 1fr; }
  .bdInboxTimeline { display: none; }
}
@media (max-width: 800px) {
  .bdInboxLayout {
    grid-template-columns: 1fr;
    height: auto;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   licenses-billing (was: licenses-billing.component.css)
   ═══════════════════════════════════════════════════════════════════ */
.bdLicPlans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 18px;
}
.bdLicPlan { padding: 20px; position: relative; overflow: hidden; }
.bdLicPlanFeatured {
  background: linear-gradient(135deg, #ffffff 0%, rgba(240, 92, 41, 0.07) 100%);
  border-color: var(--site-cta-color) !important;
}

.bdLicPlanHead {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.bdLicPlanName {
  font-family: var(--site-secondary-font);
  font-size: 20px;
  font-weight: 600;
}
.bdLicPlanTag {
  font-size: 11px;
  color: var(--site-text-muted-color);
  margin-top: 2px;
}

.bdLicUsage {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 18px;
}
.bdLicRing {
  --p: 60;
  --col: var(--site-cta-color);
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: conic-gradient(var(--col) calc(var(--p) * 1%), var(--site-quaternary-color) 0);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
}
.bdLicRing::before {
  content: '';
  position: absolute;
  inset: 7px;
  background: #ffffff;
  border-radius: 50%;
}
.bdLicRingText {
  position: relative;
  font-weight: 700;
  font-size: 15px;
  font-family: var(--site-secondary-font);
}
.bdLicUsageMeta { flex: 1; }
.bdLicLine {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  margin-bottom: 6px;
}
.bdLicLine span:last-child {
  color: var(--site-text-color);
  font-weight: 600;
}
.bdLicWarn {
  color: var(--site-error-color);
  font-weight: 700;
}

.bdLicRenewal {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--site-quaternary-color);
  font-size: 12px;
  color: var(--site-text-muted-color);
}
.bdLicActions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

/* Feed */
.bdLicFeed { padding: 4px 0; }
.bdLicFeedItem {
  display: flex;
  gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--site-quaternary-color);
  align-items: flex-start;
}
.bdLicFeedItem:last-child { border-bottom: none; }
.bdLicFeedIcon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 13px;
}
.bdLicFeedIcon[data-tone="green"] { background: rgba(22, 163, 74, 0.12);  color: var(--site-success-color); }
.bdLicFeedIcon[data-tone="amber"] { background: rgba(217, 119, 6, 0.12);  color: var(--site-warning-color); }
.bdLicFeedIcon[data-tone="blue"]  { background: rgba(34, 85, 232, 0.12);  color: var(--site-info-color); }
.bdLicFeedIcon[data-tone="red"]   { background: rgba(220, 38, 38, 0.12);  color: var(--site-error-color); }
.bdLicFeedText { font-size: 13px; }
.bdLicFeedMeta { font-size: 11.5px; color: var(--site-text-muted-color); margin-top: 2px; }

@media (max-width: 1100px) {
  .bdLicPlans { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════════
   business-card-dashboard-new (was: business-card-dashboard-new.component.css)
   ═══════════════════════════════════════════════════════════════════ */
/* ═══════════════════════════════════════════════════════════════════
   New Card Holders Dashboard
   Built on top of site design tokens:
     --site-primary-color, --site-cta-color, --site-secondary-color,
     --site-quaternary-color (border), --site-text-color, --site-text-muted-color,
     --site-success-color, --site-warning-color, --site-error-color,
     --site-info-color, --radius-*, --shadow-*
   Class prefix: bdNewDash
   ═══════════════════════════════════════════════════════════════════ */

.bdNewDash {
  padding: 24px 28px 60px;
  background: var(--site-secondary-color);
  min-height: calc(100vh - 64px);
  font-family: var(--site-body-font);
  color: var(--site-text-color);
}

/* ─── Page header ─────────────────────────────────────────────────── */
.bdNewDashHead {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.bdNewDashTitle {
  font-family: var(--site-secondary-font);
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--site-text-color);
}

.bdNewDashSub {
  color: var(--site-text-muted-color);
  font-size: 13.5px;
  margin-top: 3px;
}

.bdNewDashHeadActions {
  display: flex;
  gap: 8px;
}

/* ─── Buttons ─────────────────────────────────────────────────────── */
.bdNewDashBtn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--site-quaternary-color);
  background: #ffffff;
  color: var(--site-text-color);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: var(--transition-fast);
  white-space: nowrap;
  font-family: inherit;
}
.bdNewDashBtn:hover {
  background: var(--site-secondary-color);
  border-color: var(--site-input-border);
}
.bdNewDashBtnPrimary {
  background: var(--site-cta-color);
  border-color: var(--site-cta-color);
  color: #ffffff;
}
.bdNewDashBtnPrimary:hover {
  background: #d94d1f;
  border-color: #d94d1f;
  color: #ffffff;
}
.bdNewDashBtnGhost {
  background: transparent;
  border-color: transparent;
}
.bdNewDashBtnGhost:hover {
  background: var(--site-secondary-color);
}
.bdNewDashBtnSm {
  padding: 6px 10px;
  font-size: 12px;
}

/* ─── KPI grid ────────────────────────────────────────────────────── */
.bdNewDashKpiGrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 22px;
}

.bdNewDashKpi {
  background: #ffffff;
  border: 1px solid var(--site-quaternary-color);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.bdNewDashKpi::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--site-cta-color);
  opacity: 0.8;
}
.bdNewDashKpi[data-accent="green"]::before  { background: var(--site-success-color); }
.bdNewDashKpi[data-accent="blue"]::before   { background: var(--site-info-color); }
.bdNewDashKpi[data-accent="amber"]::before  { background: var(--site-warning-color); }
.bdNewDashKpi[data-accent="orange"]::before { background: var(--site-cta-color); }

.bdNewDashKpiLabel {
  font-size: 11.5px;
  color: var(--site-text-muted-color);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}
.bdNewDashKpiValue {
  font-family: var(--site-secondary-font);
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--site-text-color);
}
.bdNewDashKpiValueSub {
  color: var(--site-text-muted-color);
  font-size: 0.65em;
  font-weight: 500;
}
.bdNewDashKpiTrend {
  font-size: 11.5px;
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--site-success-color);
}
.bdNewDashKpiTrendDown { color: var(--site-error-color); }
.bdNewDashKpiSub {
  font-size: 11.5px;
  color: var(--site-text-muted-color);
  margin-top: 4px;
}

/* ─── Body grid ───────────────────────────────────────────────────── */
.bdNewDashBody {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
}

/* ─── Card ─────────────────────────────────────────────────────────── */
.bdNewDashCard {
  background: #ffffff;
  border: 1px solid var(--site-quaternary-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.bdNewDashCardHead {
  padding: 14px 18px;
  border-bottom: 1px solid var(--site-quaternary-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.bdNewDashCardTitle {
  font-weight: 700;
  font-size: 14px;
  color: var(--site-text-color);
}
.bdNewDashCardSub {
  font-size: 12px;
  color: var(--site-text-muted-color);
  margin-top: 1px;
}

/* ─── Activity feed ───────────────────────────────────────────────── */
.bdNewDashFeed { padding: 4px 0; }

.bdNewDashFeedItem {
  display: flex;
  gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--site-quaternary-color);
  align-items: flex-start;
}
.bdNewDashFeedItem:last-child { border-bottom: none; }

.bdNewDashFeedIcon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 13px;
  background: var(--site-secondary-color);
  color: var(--site-text-muted-color);
}
.bdNewDashFeedIcon[data-tone="green"]  { background: rgba(22, 163, 74, 0.12); color: var(--site-success-color); }
.bdNewDashFeedIcon[data-tone="blue"]   { background: rgba(34, 85, 232, 0.12);  color: var(--site-info-color); }
.bdNewDashFeedIcon[data-tone="orange"] { background: rgba(240, 92, 41, 0.12);  color: var(--site-cta-color); }
.bdNewDashFeedIcon[data-tone="purple"] { background: rgba(124, 58, 237, 0.12); color: #7c3aed; }

.bdNewDashFeedBody { flex: 1; min-width: 0; }

.bdNewDashFeedText {
  font-size: 13px;
  color: var(--site-text-color);
  line-height: 1.45;
}
.bdNewDashFeedText strong { font-weight: 700; }

.bdNewDashFeedMeta {
  font-size: 11.5px;
  color: var(--site-text-muted-color);
  margin-top: 2px;
}

/* ─── Badge ───────────────────────────────────────────────────────── */
.bdNewDashBadge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-left: 4px;
  background: rgba(240, 92, 41, 0.14);
  color: var(--site-cta-color);
}
.bdNewDashBadge[data-tone="green"]  { background: rgba(22, 163, 74, 0.14); color: var(--site-success-color); }
.bdNewDashBadge[data-tone="blue"]   { background: rgba(34, 85, 232, 0.14); color: var(--site-info-color); }
.bdNewDashBadge[data-tone="amber"]  { background: rgba(217, 119, 6, 0.14); color: var(--site-warning-color); }
.bdNewDashBadge[data-tone="red"]    { background: rgba(220, 38, 38, 0.14); color: var(--site-error-color); }
.bdNewDashBadge[data-tone="purple"] { background: rgba(124, 58, 237, 0.14); color: #7c3aed; }

/* ─── Alerts ──────────────────────────────────────────────────────── */
.bdNewDashAlertList { padding: 14px 18px 18px; }

.bdNewDashAlert {
  padding: 14px 16px;
  border-left: 3px solid var(--site-warning-color);
  background: var(--site-secondary-color);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin-bottom: 10px;
}
.bdNewDashAlert:last-child { margin-bottom: 0; }
.bdNewDashAlert[data-tone="red"]    { border-left-color: var(--site-error-color); }
.bdNewDashAlert[data-tone="orange"] { border-left-color: var(--site-cta-color); }
.bdNewDashAlert[data-tone="amber"]  { border-left-color: var(--site-warning-color); }

.bdNewDashAlertTitle {
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 2px;
  color: var(--site-text-color);
}
.bdNewDashAlertBody {
  font-size: 12px;
  color: var(--site-text-muted-color);
  line-height: 1.5;
}
.bdNewDashAlertCta {
  font-size: 12px;
  color: var(--site-cta-color);
  font-weight: 600;
  margin-top: 6px;
  display: inline-block;
  cursor: pointer;
  text-decoration: none;
}
.bdNewDashAlertCta:hover { text-decoration: underline; }

/* ─── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .bdNewDashKpiGrid { grid-template-columns: repeat(2, 1fr); }
  .bdNewDashBody { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .bdNewDash { padding: 16px; }
  .bdNewDashKpiGrid { grid-template-columns: 1fr; }
}
