/* ═══════════════════════════════════════════════════════
   ASPYN AI — COMPONENTS.CSS  |  Page sections & components
   ═══════════════════════════════════════════════════════ */

/* ── HERO SECTION ── */
#hero {
  min-height: 100vh;
  padding: calc(var(--nav-h) + 60px) 0 80px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(240,52,108,.07);
  border: 1px solid rgba(240,52,108,.2);
  border-radius: 50px;
  padding: 7px 16px;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  color: var(--pink);
  margin-bottom: 28px;
}
.hero-h1 { letter-spacing:-2.5px; margin-bottom:24px; }
.hero-h1 .line-2 { display:block; }
.hero-sub {
  font-size: 18px;
  color: var(--mid);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 40px;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}
.hero-pillars {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.hero-pillar-label {
  font-family: var(--font-head);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 5px;
}
.hero-pillar-desc { font-size:13px; line-height:1.5; }

/* ── HERO RIGHT — CHANNEL DEMO ── */
.hero-demo {
  position: relative;
  height: 520px;
  display: block; /* canvas fills naturally */
}
.hero-demo canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}
.demo-card {
  background: #FBF7F5;
  border-radius: 24px;
  box-shadow: 0 32px 80px rgba(0,0,0,.12), 0 0 0 1px rgba(0,0,0,.04);
  width: 100%;
  max-width: 480px;
  overflow: hidden;
  position: relative;
}
.demo-top-bar {
  background: linear-gradient(90deg,#FFF5F0,#FFF0F5);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(0,0,0,.05);
}
.demo-dots { display:flex; gap:5px; }
.demo-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
}
.demo-dot:nth-child(1) { background:#FF5F57; }
.demo-dot:nth-child(2) { background:#FFBD2E; }
.demo-dot:nth-child(3) { background:#28CA41; }
.demo-title-bar {
  flex: 1;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 600;
  color: var(--mid);
  text-align: center;
}

/* Channel tabs */
.channel-tabs {
  display: flex;
  padding: 12px 16px 0;
  gap: 6px;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
}
.channel-tabs::-webkit-scrollbar { display:none; }
.channel-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 10px 10px 0 0;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 600;
  color: var(--light);
  cursor: pointer;
  transition: all .25s;
  white-space: nowrap;
  border: 1.5px solid transparent;
  border-bottom: none;
  margin-bottom: -1px;
}
.channel-tab.active {
  background: white;
  color: var(--pink);
  border-color: var(--border);
  border-bottom-color: white;
}
.channel-tab .ch-icon { font-size:14px; }

/* Demo conversations */
.demo-conversations {
  padding: 16px;
  min-height: 280px;
  position: relative;
  overflow: hidden;
}
.demo-panel { display:none; }
.demo-panel.active { display:block; animation:fadeIn .3s ease; }

/* Identity badge */
.identity-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 50px;
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 14px;
}
.identity-badge.external  { background:#FFF5F2; color:var(--orange); border:1px solid rgba(255,107,53,.2); }
.identity-badge.colleague { background:#F0F9FF; color:#0EA5E9; border:1px solid rgba(14,165,233,.2); }
.identity-badge.manager   { background:rgba(139,92,246,.08); color:var(--purple); border:1px solid rgba(139,92,246,.2); }
.identity-badge.operator  { background:rgba(240,52,108,.06); color:var(--pink); border:1px solid rgba(240,52,108,.2); }
.identity-dot { width:6px; height:6px; border-radius:50%; background:currentColor; }

/* Chat messages */
.msg-row {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  align-items: flex-start;
}
.msg-row.right { flex-direction:row-reverse; }
.msg-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}
.msg-avatar.pink   { background:var(--gradient); }
.msg-avatar.gray   { background:#E2E8F0; color:var(--mid); }
.msg-avatar.blue   { background:linear-gradient(135deg,#0EA5E9,#6366F1); }
.msg-avatar.purple { background:linear-gradient(135deg,#8B5CF6,#EC4899); }
.msg-bubble {
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.5;
  max-width: 82%;
}
.msg-bubble.user   { background:var(--gradient); color:white; border-bottom-right-radius:4px; }
.msg-bubble.ai     { background:#F7F7FA; color:var(--dark); border-bottom-left-radius:4px; }
.msg-bubble.system { background:rgba(240,52,108,.06); color:var(--pink); border:1px solid rgba(240,52,108,.15); font-size:12px; font-style:italic; }
.msg-time { font-size:10px; color:var(--light); margin-top:3px; }
.msg-meta {
  font-size: 11px;
  color: var(--light);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
}

/* SMS style */
.sms-container { background:#F0F4F8; border-radius:16px; padding:14px; }
.sms-header { font-size:12px; color:var(--mid); margin-bottom:10px; display:flex; align-items:center; gap:6px; }
.sms-bubble {
  padding: 10px 14px;
  border-radius: 18px;
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 8px;
}
.sms-bubble.sent     { background:#0EA5E9; color:white; margin-left:20%; border-bottom-right-radius:4px; }
.sms-bubble.received { background:white; color:var(--dark); margin-right:20%; border-bottom-left-radius:4px; }

/* Voice/Phone style */
.voice-container {
  background: linear-gradient(135deg,var(--dark),#2D1B4E);
  border-radius:16px;
  padding:20px;
  text-align:center;
  color:white;
}
.voice-waveform {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 40px;
  margin: 16px 0;
}
.voice-bar {
  width: 4px;
  background: rgba(240,52,108,.7);
  border-radius: 2px;
  animation: voiceBar .8s ease-in-out infinite alternate;
}
@keyframes voiceBar {
  from { height:6px; }
  to   { height:var(--h,30px); }
}
.voice-bar:nth-child(1) { --h:14px; animation-delay:.0s; }
.voice-bar:nth-child(2) { --h:28px; animation-delay:.1s; }
.voice-bar:nth-child(3) { --h:36px; animation-delay:.2s; }
.voice-bar:nth-child(4) { --h:22px; animation-delay:.3s; }
.voice-bar:nth-child(5) { --h:32px; animation-delay:.4s; }
.voice-bar:nth-child(6) { --h:18px; animation-delay:.5s; }
.voice-bar:nth-child(7) { --h:28px; animation-delay:.6s; }

/* Email style */
.email-container { border:1px solid var(--border); border-radius:12px; overflow:hidden; }
.email-header { background:#F8F9FA; padding:12px 16px; border-bottom:1px solid var(--border); }
.email-subject { font-family:var(--font-head); font-size:13px; font-weight:700; color:var(--dark); margin-bottom:4px; }
.email-meta { font-size:11px; color:var(--light); }
.email-body { padding:16px; font-size:13px; color:var(--mid); line-height:1.7; }

/* Demo bottom bar - identity context */
.demo-identity-bar {
  border-top: 1px solid var(--border);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--light);
}
.demo-identity-bar strong { color:var(--dark); }

/* ── TRUSTED LOGOS ── */
#trusted {
  padding: 48px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.trusted-label {
  text-align: center;
  font-family: var(--font-head);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--light);
  margin-bottom: 32px;
}
.logos-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
}
.logo-client {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  color: #C4C4D4;
  text-decoration: none;
  letter-spacing: -.3px;
  transition: color var(--t);
  display: flex;
  align-items: center;
  gap: 6px;
}
.logo-client:hover { color:var(--mid); }
.logo-client:focus-visible {
  outline: 2px solid rgba(240,52,108,.45);
  outline-offset: 5px;
  border-radius: 4px;
}

/* ── SECTION HEADERS ── */
.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 64px;
}
.section-header h2 { margin-bottom:16px; }
.section-header p   { font-size:18px; }

/* ── OPERATOR CARDS ── */
.op-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 24px;
}
.op-card {
  background: white;
  border-radius: 24px;
  border: 1.5px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform .25s, box-shadow .25s;
}
.op-card:hover { transform:translateY(-5px); box-shadow:var(--shadow-md); }
.op-visual {
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.op-visual.mya   { background:linear-gradient(160deg,#FFE8EE,#FFD9C2); }
.op-visual.steve { background:linear-gradient(160deg,#FFE3D1,#FFD2DB); }
.op-visual.custom { background:linear-gradient(160deg,rgba(139,92,246,.08),rgba(99,102,241,.05)); }
.op-avatar-img {
  /* Fill the card visual area; aspect-ratio of the source is preserved by
     object-fit:cover so the portrait crops gracefully on narrower cards. */
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.op-avatar-letter {
  font-family: var(--font-head);
  font-size: 90px;
  font-weight: 800;
  opacity: .12;
  color: var(--dark);
}
.op-active-badge {
  position: absolute;
  top: 14px; right: 14px;
  background: #22C55E;
  color: white;
  border-radius: 50px;
  padding: 4px 12px;
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
}
.op-body { padding: 28px; }
.op-name {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 4px;
}
.op-role {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--light);
  margin-bottom: 14px;
}
.op-desc { font-size:14px; line-height:1.65; margin-bottom:20px; }
.op-features { display:flex; flex-direction:column; gap:8px; }
.op-feat {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--dark);
}
.op-feat-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.custom-icon-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.custom-icon-circle {
  width: 80px; height: 80px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 32px rgba(240,52,108,.35);
  position: relative;
}
.custom-plus {
  position: absolute;
  top:-5px; right:-5px;
  width: 22px; height: 22px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: var(--pink);
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
}

/* ── COMPARISON CARDS ── */
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.compare-card { padding:40px; }
.compare-card.featured {
  background: linear-gradient(145deg,#FFF8F5,#FFF5F8);
  border-color: rgba(240,52,108,.2);
  box-shadow: 0 8px 40px rgba(240,52,108,.1);
}
.compare-title {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 6px;
}
.compare-subtitle {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 28px;
}
.compare-list { margin-bottom:28px; }
.compare-item {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 15px;
}
.compare-icon {
  flex-shrink: 0;
  width: 20px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  margin-top: 2px;
  font-size: 14px;
}
.compare-item-name  { font-weight: 600; display:block; }
.compare-item-desc  { font-size: 13px; color:var(--light); display:block; margin-top:2px; }
.compare-formula {
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 14px;
  font-style: italic;
  text-align: center;
}

/* ── TECH STACK CARDS ── */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 20px;
}
.tech-card {
  padding: 28px;
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}
.tech-card-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 22px;
}
.tech-card-title {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 8px;
}
.tech-card-desc { font-size:14px; line-height:1.65; margin-bottom:16px; }
.tech-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tech-tag {
  font-size: 11px;
  font-family: var(--font-head);
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 50px;
  background: rgba(0,0,0,.05);
  color: var(--mid);
}

/* ── SECURITY SECTION ── */
.security-flow {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 0;
  position: relative;
}
.security-flow::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  background: linear-gradient(90deg,rgba(240,52,108,.3),rgba(255,107,53,.3));
  z-index: 0;
}
.sec-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px 16px;
  position: relative;
  z-index: 1;
}
.sec-step-num {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 14px;
  border: 2px solid white;
  box-shadow: var(--shadow-sm);
}
.sec-step-title {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
}
.sec-step-desc { font-size:13px; line-height:1.6; }
.sec-arrow {
  position: absolute;
  right: -14px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  font-size: 18px;
  color: var(--border);
  display: flex;
  align-items: center;
}

/* Token pills */
.token-pill {
  display: inline-flex;
  align-items: center;
  background: rgba(240,52,108,.08);
  border: 1px solid rgba(240,52,108,.2);
  border-radius: 6px;
  padding: 2px 8px;
  font-family: monospace;
  font-size: 13px;
  color: var(--pink);
  font-weight: 600;
  animation: tokenPulse 2s ease infinite;
}

/* ── CTA SECTION ── */
.cta-section {
  padding: 100px 0;
  text-align: center;
}
.cta-card {
  background: var(--gradient);
  border-radius: 32px;
  padding: 80px 60px;
  position: relative;
  overflow: hidden;
}
.cta-card h2 { color:white; margin-bottom:16px; }
.cta-card p  { color:rgba(255,255,255,.8); font-size:18px; margin-bottom:40px; }
.cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 640px;
  margin: 0 auto;
}

/* ── RESPONSIVE ── */
/* Large desktop: use more of 2k+ viewports without stretching text lines. */
@media (min-width:2000px) {
  #hero {
    min-height: min(100vh, 1120px);
    padding: calc(var(--nav-h) + 48px) 0 72px;
  }

  .hero-inner {
    max-width: 1520px;
    grid-template-columns: minmax(540px, .95fr) minmax(600px, 1.05fr);
    gap: 88px;
  }

  .hero-sub {
    max-width: 560px;
  }

  .hero-actions {
    margin-bottom: 48px;
  }

  .hero-demo {
    height: min(64vh, 680px);
    min-height: 560px;
  }
}

@media (max-width:1024px) {
  .hero-inner       { grid-template-columns:1fr; padding:0 32px; }
  .hero-demo        { display:none; }
  .hero-pillars     { grid-template-columns:1fr; }
  .op-grid          { grid-template-columns:1fr; }
  .compare-grid     { grid-template-columns:1fr; }
  .tech-grid        { grid-template-columns:1fr 1fr; }
  .security-flow    { grid-template-columns:1fr 1fr; }
  .cta-grid         { grid-template-columns:1fr; }
  .cta-card         { padding:48px 32px; }
  section           { padding:72px 0; }
  .section-inner,
  .container        { padding:0 32px; }
}
@media (max-width:640px) {
  .hero-inner    { padding:0 20px; }
  .hero-h1       { font-size:38px; }
  .tech-grid     { grid-template-columns:1fr; }
  .security-flow { grid-template-columns:1fr 1fr; }
  .logos-row     { gap:24px; }
  section        { padding:56px 0; }
  .section-inner,
  .container     { padding:0 20px; }
  .cta-card      { border-radius:20px; padding:40px 24px; }
}


/* ════ HERO DEMO CHAT ANIMATION ════ */
.demo-panel .msg-row,
.demo-panel .sms-bubble,
.demo-panel .email-container,
.demo-panel .voice-container,
.demo-panel .op2op-msg {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .4s ease, transform .4s ease;
}
.demo-panel.active .msg-row.visible,
.demo-panel.active .sms-bubble.visible,
.demo-panel.active .email-container.visible,
.demo-panel.active .voice-container.visible,
.demo-panel.active .op2op-msg.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Typing indicator */
.typing-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  margin: 4px 0;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .3s ease, transform .3s ease;
}
.typing-indicator.visible {
  opacity: 1;
  transform: translateY(0);
}
.typing-indicator.hidden {
  opacity: 0 !important;
  transform: translateY(4px) !important;
}
.typing-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--pink);
  animation: typingBounce .9s ease-in-out infinite;
}
.typing-dot:nth-child(2) { animation-delay: .15s; }
.typing-dot:nth-child(3) { animation-delay: .30s; }
@keyframes typingBounce {
  0%,60%,100% { transform: translateY(0); }
  30%          { transform: translateY(-5px); }
}

/* ════════════════════════════════════════════════════════
   LIVE OPERATOR ACTIVITY HUB
   ════════════════════════════════════════════════════════ */

/* Channel indicator bar */
.hub-channels-bar {
  display: flex;
  gap: 6px;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  flex-shrink: 0;
}
.hub-ch {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,.35);
  padding: 4px 9px;
  border-radius: 20px;
  transition: all .3s ease;
  border: 1px solid transparent;
}
.hub-ch.active {
  color: white;
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.12);
}
.hub-ch-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,.25);
  transition: background .3s ease, box-shadow .3s ease;
  flex-shrink: 0;
}
.hub-ch.active .hub-ch-dot {
  background: #4ade80;
  box-shadow: 0 0 6px rgba(74,222,128,.8);
  animation: livePulse 1.8s ease infinite;
}
@keyframes livePulse {
  0%,100% { box-shadow: 0 0 4px rgba(74,222,128,.8); }
  50%      { box-shadow: 0 0 10px rgba(74,222,128,1), 0 0 18px rgba(74,222,128,.4); }
}

/* Activity feed */
.activity-feed {
  flex: 1;
  overflow: hidden;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}

/* Individual activity items */
.act-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .4s ease, transform .4s ease;
  flex-shrink: 0;
}
.act-item.in  { opacity: 1; transform: translateY(0); }
.act-item.out { opacity: 0; transform: translateY(-8px); transition: opacity .3s ease, transform .3s ease; }

/* Item header: channel icon + sender + identity badge */
.act-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-family: var(--font-head);
  font-weight: 600;
  color: rgba(255,255,255,.45);
  margin-bottom: 2px;
}
.act-ch-icon { font-size: 12px; }
.act-sender  { color: rgba(255,255,255,.75); font-weight: 700; }
.act-badge {
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.badge-ext  { background: rgba(148,163,184,.15); color: #94a3b8; }
.badge-col  { background: rgba(99,102,241,.2);   color: #a5b4fc; }
.badge-mgr  { background: rgba(168,85,247,.2);   color: #d8b4fe; }
.badge-op   { background: rgba(240,52,108,.2);   color: #f9a8d4; }
.badge-sys  { background: rgba(16,185,129,.15);  color: #6ee7b7; }

/* Message bubbles inside feed */
.act-bubble {
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.5;
  max-width: 95%;
  word-break: break-word;
}
.act-bubble.incoming {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.85);
  align-self: flex-start;
}
.act-bubble.outgoing {
  background: linear-gradient(135deg, rgba(240,52,108,.7), rgba(255,107,53,.6));
  border: 1px solid rgba(240,52,108,.3);
  color: white;
  align-self: flex-end;
  margin-left: auto;
}
.act-bubble.system {
  background: rgba(16,185,129,.08);
  border: 1px solid rgba(16,185,129,.2);
  color: rgba(255,255,255,.6);
  font-size: 11px;
  font-family: var(--font-head);
  align-self: flex-start;
  display: flex;
  align-items: center;
  gap: 6px;
}
.act-bubble.op2op {
  background: rgba(99,102,241,.12);
  border: 1px solid rgba(99,102,241,.25);
  color: rgba(255,255,255,.75);
  font-size: 11px;
}
.act-meta {
  font-size: 10px;
  color: rgba(255,255,255,.3);
  font-family: var(--font-head);
  margin-top: 1px;
}
.act-meta.right { text-align: right; }

/* Typing dots in feed */
.act-typing {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 7px 12px;
  background: rgba(255,255,255,.07);
  border-radius: 10px;
  width: fit-content;
}
.act-typing .td {
  width: 5px; height: 5px; border-radius: 50%;
  background: rgba(240,52,108,.8);
  animation: typingBounce .9s ease-in-out infinite;
}
.act-typing .td:nth-child(2) { animation-delay:.15s; }
.act-typing .td:nth-child(3) { animation-delay:.30s; }

/* Feed fade mask at top */
.activity-feed::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 32px;
  background: linear-gradient(to bottom, var(--demo-bg, #1a1a2e), transparent);
  z-index: 2;
  pointer-events: none;
}
