/* ==========================================================================
   508 Ministry Reusable 3:4 Outreach Agent Profile & Live Stats Card
   Shared across #wo-analytics, #agent-schedule, #leads-desk,
   #outreach-scripts, and /opportunity/agent-walkthrough/.
   ========================================================================== */

.m508-acard {
  position: relative;
  flex: 0 0 256px;
  width: 256px;
  min-height: 342px;
  border-radius: 18px;
  background: linear-gradient(162deg, #0D1E3A 0%, #142B52 58%, #09152B 100%);
  border: 1.5px solid rgba(212, 168, 75, 0.58);
  box-shadow: 0 18px 40px -16px rgba(9, 21, 43, 0.58), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  color: #FBF7EE;
  font-family: 'Figtree', system-ui, -apple-system, sans-serif;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  z-index: 2;
}

.m508-acard-photo-wrap {
  position: relative;
  width: 100%;
  height: 148px;
  background: radial-gradient(circle at 50% 25%, #1E3A5F 0%, #09152B 100%);
  overflow: hidden;
  border-bottom: 1px solid rgba(212, 168, 75, 0.36);
}

.m508-acard-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 15%;
}

.m508-acard-photo-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(9, 21, 43, 0.12) 0%, rgba(9, 21, 43, 0) 48%, rgba(9, 21, 43, 0.86) 100%);
  pointer-events: none;
}

.m508-acard-status {
  position: absolute;
  top: 9px;
  right: 9px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(9, 21, 43, 0.84);
  border: 1px solid rgba(74, 222, 128, 0.55);
  color: #BBF7D0;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.m508-acard-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22C55E;
  box-shadow: 0 0 8px #22C55E;
}

.m508-acard-tier {
  position: absolute;
  left: 9px;
  bottom: 8px;
  padding: 3px 9px;
  border-radius: 999px;
  background: linear-gradient(135deg, #F7DC8C 0%, #D4A84B 100%);
  color: #0A1324;
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.m508-acard-body {
  padding: 11px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  flex: 1 1 auto;
}

.m508-acard-id {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
}

.m508-acard-name {
  margin: 0;
  font-family: 'Cormorant', Georgia, serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.15;
  color: #FFF8E7;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.m508-acard-ext {
  flex: 0 0 auto;
  font-size: 10.5px;
  font-weight: 700;
  color: #F4D57F;
}

.m508-acard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.m508-acard-stat {
  padding: 6px 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(244, 213, 127, 0.22);
}

.m508-acard-stat-lbl {
  display: block;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #B8CBE2;
}

.m508-acard-stat-val {
  display: block;
  font-size: 14.5px;
  font-weight: 900;
  color: #FFFFFF;
  line-height: 1.2;
  margin-top: 1px;
  font-variant-numeric: tabular-nums;
}

.m508-acard-stat-sub {
  display: block;
  font-size: 9.5px;
  color: #F4D57F;
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.m508-acard-recent {
  border-top: 1px solid rgba(244, 213, 127, 0.22);
  padding-top: 7px;
  margin-top: auto;
}

.m508-acard-recent-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 4px;
}

.m508-acard-recent-hd span {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #F4D57F;
}

.m508-acard-recent-link {
  font-size: 10px;
  font-weight: 800;
  color: #93C5FD;
  text-decoration: none;
}

.m508-acard-recent-link:hover {
  text-decoration: underline;
  color: #FFF8E7;
}

.m508-acard-recent-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.m508-acard-recent-item {
  font-size: 10.5px;
  line-height: 1.3;
  color: #DCE7F5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Host Hero Layout Adjustments (push existing content neatly right of the 3:4 card) */
.woa-hero.m508-has-acard {
  flex-wrap: nowrap !important;
  align-items: flex-start !important;
  gap: 22px !important;
}

.woa-hero-main-col {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}

.woa-hero-main-col .woa-hero-right {
  align-items: flex-start !important;
  width: 100%;
}
.woa-hero-main-col .woa-actions {
  justify-content: flex-start !important;
}

.as-hero-top.m508-has-acard {
  align-items: flex-start !important;
  flex-wrap: nowrap !important;
  gap: 20px !important;
}

.ld-hero.m508-has-acard {
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 20px !important;
}

.ld-hero-main-col {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.os-hero.m508-has-acard {
  grid-template-columns: 256px minmax(0, 1.3fr) minmax(0, 0.7fr) !important;
  align-items: center !important;
}

.aw-hero-split {
  display: flex;
  align-items: center;
  gap: 24px;
  text-align: left;
}

.aw-hero-split-main {
  flex: 1 1 auto;
  min-width: 0;
}

@media (max-width: 960px) {
  .woa-hero.m508-has-acard,
  .as-hero-top.m508-has-acard,
  .ld-hero.m508-has-acard,
  .aw-hero-split {
    flex-direction: column !important;
    flex-wrap: wrap !important;
    align-items: stretch !important;
  }
  .os-hero.m508-has-acard {
    grid-template-columns: 1fr !important;
  }
  .m508-acard {
    width: 100%;
    flex: 1 1 auto;
    min-height: 0;
  }
  .m508-acard-photo-wrap {
    height: 190px;
  }
}


/* 4-Tile Live Agent Pulse & Conversation Strip inside #wo-analytics Hero */
.m508-woa-pulse {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 4px 0;
}
.m508-woa-pulse-tile {
  padding: 10px 12px;
  border-radius: 13px;
  background: linear-gradient(180deg, #FFFFFF 0%, #FAF5E8 100%);
  border: 1px solid rgba(212, 168, 75, 0.42);
  box-shadow: 0 6px 16px -10px rgba(15, 29, 51, 0.16);
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.m508-woa-pulse-k {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7C5816;
}
.m508-woa-pulse-v {
  font-family: 'Cormorant', Georgia, serif;
  font-size: 23px;
  font-weight: 700;
  line-height: 1.08;
  color: #0F1E36;
  font-variant-numeric: tabular-nums;
}
.m508-woa-pulse-s {
  font-size: 11.5px;
  color: #475569;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 1180px) {
  .m508-woa-pulse {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* 2026-11-29 EQUALIZE #wo-analytics HERO DEAD SPACE */
.woa-hero.m508-has-acard {
  align-items: stretch !important;
  gap: 24px !important;
}
.woa-hero.m508-has-acard .m508-acard {
  align-self: stretch !important;
}
.woa-hero-main-col {
  justify-content: center !important;
  gap: 18px !important;
  padding: 6px 0 !important;
}
.woa-hero-main-col .woa-hero-copy {
  flex: 0 0 auto !important;
  margin: 0 !important;
  padding: 0 !important;
}
.woa-hero-main-col .m508-woa-pulse {
  margin: 2px 0 !important;
  gap: 12px !important;
}
.woa-hero-main-col .m508-woa-pulse-tile {
  padding: 14px 15px !important;
}
.woa-hero-main-col .woa-hero-right {
  flex: 0 0 auto !important;
  margin: 0 !important;
  gap: 12px !important;
}
