/* ===========================================================
   REBUILD STYLES (v2)
   - WhatsApp mobile (proper)
   - Emirates app home + side-call button
   - Voice call (in-app)
   - CC Assistant (Genesys-flavoured)
   =========================================================== */

/* ---------- WhatsApp Mobile ---------- */
:root {
  --wam-bg: #ECE5DD;        /* classic light WA wallpaper */
  --wam-header: #075E54;    /* WA dark green */
  --wam-header-tint: #128C7E;
  --wam-sent: #DCF8C6;      /* light-green sent */
  --wam-recv: #FFFFFF;
  --wam-meta: #667781;
  --wam-tick-read: #4FC3F7;
  --wam-tick: #92A1A8;
}

.wam {
  position: absolute; inset: 0;
  padding-top: 54px;
  display: flex; flex-direction: column;
  background: var(--wam-bg);
  font-family: 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.wam-head {
  background: var(--wam-header);
  color: white;
  padding: 8px 8px 8px 4px;
  display: flex; align-items: center; gap: 10px;
  flex-shrink: 0;
  box-shadow: 0 1px 0 rgba(0,0,0,0.05);
  z-index: 5;
}
.wam-head .back { padding: 6px; cursor: pointer; }
.wam-head .av {
  width: 38px; height: 38px; border-radius: 50%;
  background: white; padding: 4px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.wam-head .av img { width: 100%; height: 100%; object-fit: contain; }
.wam-head .info { flex: 1; min-width: 0; }
.wam-head .name { font-size: 16px; font-weight: 600; display: flex; align-items: center; gap: 5px; }
.wam-head .verified { font-size: 12px; color: #34D399; }
.wam-head .status { font-size: 12px; opacity: 0.9; }
.wam-head .actions { display: flex; gap: 14px; padding: 0 6px; }
.wam-head .actions svg { stroke: white; }

.wam-body {
  flex: 1; min-height: 0;
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><defs><path id='pl' d='M11 0 L1 -2.6 L1 -0.9 L7 0 L1 0.9 L1 2.6 Z' fill='%23075E54'/></defs><g opacity='0.06'><use href='%23pl' transform='translate(20 18) rotate(-15) scale(0.95)'/><use href='%23pl' transform='translate(58 12) rotate(35) scale(0.8)'/><use href='%23pl' transform='translate(96 24) rotate(-50) scale(0.9)'/><use href='%23pl' transform='translate(132 14) rotate(80) scale(0.75)'/><use href='%23pl' transform='translate(166 22) rotate(15) scale(0.95)'/><use href='%23pl' transform='translate(38 42) rotate(120) scale(0.85)'/><use href='%23pl' transform='translate(76 50) rotate(-30) scale(1)'/><use href='%23pl' transform='translate(112 44) rotate(165) scale(0.8)'/><use href='%23pl' transform='translate(150 52) rotate(-75) scale(0.9)'/><use href='%23pl' transform='translate(184 48) rotate(50) scale(0.7)'/><use href='%23pl' transform='translate(14 70) rotate(-120) scale(0.85)'/><use href='%23pl' transform='translate(50 78) rotate(20) scale(1)'/><use href='%23pl' transform='translate(88 72) rotate(-160) scale(0.8)'/><use href='%23pl' transform='translate(124 80) rotate(60) scale(0.95)'/><use href='%23pl' transform='translate(160 74) rotate(-25) scale(0.85)'/><use href='%23pl' transform='translate(28 102) rotate(45) scale(0.9)'/><use href='%23pl' transform='translate(64 110) rotate(-90) scale(0.8)'/><use href='%23pl' transform='translate(102 102) rotate(140) scale(1)'/><use href='%23pl' transform='translate(140 112) rotate(-40) scale(0.85)'/><use href='%23pl' transform='translate(176 106) rotate(100) scale(0.75)'/><use href='%23pl' transform='translate(18 132) rotate(-55) scale(0.95)'/><use href='%23pl' transform='translate(56 140) rotate(170) scale(0.8)'/><use href='%23pl' transform='translate(94 134) rotate(-110) scale(0.9)'/><use href='%23pl' transform='translate(130 142) rotate(25) scale(0.85)'/><use href='%23pl' transform='translate(168 136) rotate(-145) scale(1)'/><use href='%23pl' transform='translate(34 168) rotate(70) scale(0.85)'/><use href='%23pl' transform='translate(72 174) rotate(-20) scale(0.95)'/><use href='%23pl' transform='translate(110 170) rotate(155) scale(0.8)'/><use href='%23pl' transform='translate(148 178) rotate(-65) scale(0.9)'/><use href='%23pl' transform='translate(184 172) rotate(110) scale(0.75)'/></g></svg>"),
    var(--wam-bg);
  background-size: 200px;
  overflow-y: auto; overflow-x: hidden;
  padding: 8px 8px 8px;
  display: flex; flex-direction: column; gap: 3px;
  scroll-behavior: smooth;
}

.wam-bub .meta .ticks { display: inline-flex; align-items: center; }

.wam-encryption {
  align-self: center;
  background: #FCF4CB; color: #54482C;
  font-size: 11px; padding: 6px 12px; border-radius: 6px;
  margin: 6px 12px 4px; line-height: 1.45; text-align: center; max-width: 88%;
  box-shadow: 0 1px 1px rgba(0,0,0,0.05);
  display: inline-flex; align-items: center; gap: 6px; justify-content: center;
}
.wam-day {
  align-self: center;
  background: rgba(225,245,254,0.95); color: #54656F;
  font-size: 11.5px; font-weight: 500; padding: 4px 10px; border-radius: 6px;
  margin: 4px 0 8px;
  box-shadow: 0 1px 1px rgba(0,0,0,0.05);
  letter-spacing: 0.04em;
}

.wam-bub {
  max-width: 78%; padding: 6px 8px 18px; border-radius: 7px;
  font-size: 14.2px; line-height: 1.36; color: #111B21; word-wrap: break-word;
  position: relative; box-shadow: 0 1px 0.5px rgba(0,0,0,0.13);
  animation: wam-pop 200ms cubic-bezier(.22,.93,.34,1);
}
@keyframes wam-pop {
  from { opacity: 0; transform: translateY(4px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.wam-bub.recv { align-self: flex-start; background: var(--wam-recv); border-top-left-radius: 0; }
.wam-bub.sent { align-self: flex-end;   background: var(--wam-sent); border-top-right-radius: 0; }
.wam-bub .meta {
  position: absolute; right: 8px; bottom: 4px;
  font-size: 10.5px; color: var(--wam-meta);
  display: flex; align-items: center; gap: 3px;
}
.wam-bub.sent .meta .ticks { color: var(--wam-tick-read); font-size: 14px; line-height: 1; }

.wam-bub.tail-recv::before, .wam-bub.tail-sent::after {
  content: ''; position: absolute; top: 0; width: 8px; height: 13px;
  background-repeat: no-repeat;
}
.wam-bub.tail-recv::before {
  left: -8px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='8' height='13'><path d='M0 0 L8 0 L8 13 Q4 8 0 0' fill='%23ffffff'/></svg>");
}
.wam-bub.tail-sent::after {
  right: -8px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='8' height='13'><path d='M8 0 L0 0 L0 13 Q4 8 8 0' fill='%23DCF8C6'/></svg>");
}

.wam-typing {
  align-self: flex-start; background: var(--wam-recv);
  padding: 9px 14px; border-radius: 7px; border-top-left-radius: 0;
  display: flex; gap: 4px; box-shadow: 0 1px 0.5px rgba(0,0,0,0.13);
}
.wam-typing span {
  width: 6px; height: 6px; border-radius: 50%;
  background: #98A6AC; animation: wam-typing 1.2s infinite;
}
.wam-typing span:nth-child(2) { animation-delay: .15s; }
.wam-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes wam-typing {
  0%, 60%, 100% { opacity: 0.35; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-2px); }
}

.wam-system {
  align-self: center;
  background: rgba(225,245,254,0.95); color: #54656F;
  font-size: 11px; padding: 6px 12px; border-radius: 6px;
  margin: 4px 0; max-width: 80%; text-align: center;
  box-shadow: 0 1px 1px rgba(0,0,0,0.05);
}

.wam-opt {
  align-self: flex-start; background: var(--wam-recv);
  border-radius: 7px; border-top-left-radius: 0;
  padding: 0; max-width: 88%; min-width: 240px;
  box-shadow: 0 1px 0.5px rgba(0,0,0,0.13);
  overflow: hidden;
  animation: wam-pop 220ms cubic-bezier(.22,.93,.34,1);
}
.wam-opt .opt-head {
  padding: 9px 12px 0;
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.wam-opt .opt-tag {
  font-size: 9.5px; padding: 2px 7px; border-radius: 3px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.wam-opt .opt-tag.starred { background: #D71921; color: white; }
.wam-opt .opt-tag.alt { background: #ECECEC; color: #444; }
.wam-opt .opt-title { font-size: 12px; color: #54656F; font-weight: 600; }
.wam-opt .opt-route {
  padding: 6px 12px 0;
  display: flex; align-items: center; gap: 8px;
  font-family: 'SF Pro Display', system-ui;
}
.wam-opt .opt-route .iata { font-size: 18px; font-weight: 700; color: #111B21; letter-spacing: 0.04em; }
.wam-opt .opt-route .arrow { color: #777; }
.wam-opt .opt-route .flight { font-size: 11px; color: #54656F; margin-left: auto; font-weight: 500; }
.wam-opt .opt-grid {
  padding: 6px 12px 8px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px;
}
.wam-opt .opt-grid .lbl { font-size: 10px; color: #8696A0; text-transform: uppercase; letter-spacing: 0.04em; }
.wam-opt .opt-grid .val { font-size: 12.5px; color: #111B21; font-weight: 500; }
.wam-opt .opt-grid .warn { color: #D97706; font-weight: 600; }
.wam-opt .opt-foot {
  padding: 7px 12px;
  border-top: 1px solid #ECECEC;
  font-size: 12px; color: #54656F;
  display: flex; justify-content: space-between; align-items: center;
}
.wam-opt .opt-foot .meta { font-size: 10.5px; color: var(--wam-meta); }

.wam-quick {
  align-self: flex-end;
  display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end;
  margin: 4px 0;
}
.wam-quick button {
  background: white; color: #075E54; border: 1px solid rgba(7,94,84,0.25);
  border-radius: 14px; font-size: 12.5px; padding: 6px 12px; font-weight: 500;
  cursor: pointer; box-shadow: 0 1px 1px rgba(0,0,0,0.05);
}
.wam-quick button:hover { background: rgba(7,94,84,0.05); }

.wam-input {
  background: transparent;
  padding: 6px 6px 8px;
  display: flex; gap: 6px; align-items: center; flex-shrink: 0;
}
.wam-input .row {
  flex: 1; background: white; border-radius: 22px;
  padding: 8px 12px; display: flex; align-items: center; gap: 10px;
  color: #54656F; font-size: 14px;
  box-shadow: 0 1px 1px rgba(0,0,0,0.05);
}
.wam-input .row .placeholder { flex: 1; color: #8696A0; }
.wam-input .row svg { flex-shrink: 0; opacity: 0.7; }
.wam-input .mic-btn {
  width: 42px; height: 42px; border-radius: 50%; background: var(--wam-header);
  display: flex; align-items: center; justify-content: center; color: white;
  flex-shrink: 0; box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* ---------- Emirates App Home ---------- */
:root {
  --ek-red: #D71921;
  --ek-deep: #5C0E0E;
  --ek-gold: #C9A96E;
  --ek-bg: #F7F5F0;
  --ek-ink: #1A1A1A;
}

.ekapp {
  position: absolute; inset: 0;
  padding-top: 54px;
  display: flex; flex-direction: column;
  background: var(--ek-bg);
  font-family: 'Helvetica Neue', Arial, sans-serif;
  color: var(--ek-ink);
}
.ekapp-head {
  background: white;
  padding: 12px 16px 10px;
  display: flex; align-items: center; justify-content: space-between;
  flex-shrink: 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.ekapp-head .greet { font-size: 13px; color: #666; }
.ekapp-head .greet strong { color: var(--ek-ink); font-weight: 600; }
.ekapp-head .logo img { height: 22px; }
.ekapp-head .icons { display: flex; gap: 14px; color: #666; }

.ekapp-body {
  flex: 1; min-height: 0;
  overflow-y: auto;
  padding: 0 0 80px;
}

.ekapp-hero {
  position: relative;
  background: linear-gradient(135deg, #5C0E0E 0%, #8B1414 60%, #B91D24 100%);
  color: white; padding: 22px 18px 26px;
  overflow: hidden;
}
.ekapp-hero::before {
  content: '';
  position: absolute; right: -40px; top: -40px;
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(201,169,110,0.25), transparent 70%);
  border-radius: 50%;
}
.ekapp-hero .eyebrow {
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.2em;
  color: rgba(255,255,255,0.7); margin-bottom: 6px;
}
.ekapp-hero h1 {
  font-size: 22px; font-weight: 700; letter-spacing: -0.02em;
  margin-bottom: 4px; line-height: 1.2;
}
.ekapp-hero p { font-size: 13px; color: rgba(255,255,255,0.85); line-height: 1.45; }

.ekapp-section {
  padding: 18px 16px 4px;
  display: flex; align-items: center; justify-content: space-between;
}
.ekapp-section .title {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em;
  font-weight: 700; color: #666;
}
.ekapp-section .all { font-size: 12px; color: var(--ek-red); font-weight: 600; }

.ekapp-booking {
  margin: 6px 14px 12px;
  background: white;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 4px 14px rgba(0,0,0,0.05);
  overflow: hidden;
  position: relative;
}
.ekapp-booking .strip {
  background: rgba(215,25,33,0.06);
  border-bottom: 1px solid rgba(215,25,33,0.15);
  padding: 8px 14px;
  display: flex; align-items: center; gap: 8px;
  font-size: 11.5px; color: #B91D24; font-weight: 600;
  letter-spacing: 0.02em;
}
.ekapp-booking .strip .dot { width: 7px; height: 7px; border-radius: 50%; background: #D71921; animation: blink 1.6s infinite; }
.ekapp-booking .body { padding: 14px 16px 0; }
.ekapp-booking .pnr-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.ekapp-booking .pnr-row .label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; color: #888; }
.ekapp-booking .pnr-row .pnr { font-family: 'SF Mono', Menlo, monospace; font-weight: 700; font-size: 14px; color: var(--ek-ink); }
.ekapp-booking .ribbon {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px;
  align-items: center; margin-bottom: 14px;
}
.ekapp-booking .ribbon .col .iata { font-size: 28px; font-weight: 700; letter-spacing: 0.02em; color: #1a1a1a; line-height: 1; }
.ekapp-booking .ribbon .col .iata.struck { text-decoration: line-through; text-decoration-color: rgba(215,25,33,0.6); text-decoration-thickness: 2px; }
.ekapp-booking .ribbon .col .time { font-size: 13px; color: #666; margin-top: 4px; font-variant-numeric: tabular-nums; }
.ekapp-booking .ribbon .col .date { font-size: 11px; color: #888; margin-top: 1px; }
.ekapp-booking .ribbon .col.right { text-align: right; }
.ekapp-booking .ribbon .center { display: flex; flex-direction: column; align-items: center; min-width: 80px; }
.ekapp-booking .ribbon .center .line { height: 1px; background: linear-gradient(90deg, transparent, #ccc, transparent); width: 100%; }
.ekapp-booking .ribbon .center .plane { color: #aaa; margin: 4px 0; }
.ekapp-booking .ribbon .center .flight { font-size: 11px; color: #888; font-weight: 600; letter-spacing: 0.04em; }

.ekapp-booking .help-row {
  border-top: 1px solid rgba(0,0,0,0.06);
  display: grid; grid-template-columns: 1fr auto;
  align-items: stretch;
}
.ekapp-booking .help-text {
  padding: 12px 14px;
  font-size: 12.5px; color: #444; line-height: 1.4;
}
.ekapp-booking .help-text strong { color: var(--ek-ink); display: block; margin-bottom: 2px; font-size: 13px; }
.ekapp-booking .call-side {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 12px 14px; min-width: 80px;
  background: linear-gradient(180deg, #128C7E, #075E54);
  color: white; cursor: pointer;
  border-left: 1px solid rgba(0,0,0,0.06);
  transition: filter 200ms;
  position: relative;
  overflow: hidden;
}
.ekapp-booking .call-side:hover { filter: brightness(1.1); }
.ekapp-booking .call-side .ic {
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 4px;
}
.ekapp-booking .call-side .lbl { font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; }
.ekapp-booking .call-side .who { font-size: 9.5px; opacity: 0.85; margin-top: 1px; }
.ekapp-booking .call-side .pulse {
  position: absolute; inset: 0; pointer-events: none;
  border-radius: 0; box-shadow: 0 0 0 0 rgba(255,255,255,0.6);
  animation: callside-pulse 2.4s infinite;
}
@keyframes callside-pulse {
  0% { box-shadow: inset 0 0 0 0 rgba(255,255,255,0.5); }
  100% { box-shadow: inset 0 0 0 60px rgba(255,255,255,0); }
}

.ekapp-booking .actions-row {
  display: flex; padding: 0 14px 14px; gap: 8px;
  border-top: 1px solid rgba(0,0,0,0.06);
  padding-top: 10px;
  margin-top: 0;
}
.ekapp-booking .quick-btn {
  flex: 1; padding: 10px 8px; background: white; border: 1px solid rgba(0,0,0,0.1);
  border-radius: 8px; font-size: 11.5px; font-weight: 600; color: var(--ek-ink);
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  cursor: pointer; transition: all 200ms;
}
.ekapp-booking .quick-btn:hover { border-color: var(--ek-red); color: var(--ek-red); }
.ekapp-booking .quick-btn svg { color: #888; }

/* Discover tiles */
.ekapp-discover {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  padding: 0 14px;
}
.ekapp-tile {
  position: relative; height: 110px; border-radius: 12px; overflow: hidden;
  background: linear-gradient(135deg, #1F4E5F, #2A6F7C);
  color: white; padding: 12px;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.ekapp-tile.gold { background: linear-gradient(135deg, #8B6F2D, #C9A96E); }
.ekapp-tile.dark { background: linear-gradient(135deg, #1A1A1A, #3A3A3A); }
.ekapp-tile.red { background: linear-gradient(135deg, #5C0E0E, #B91D24); }
.ekapp-tile .tag { font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; opacity: 0.8; }
.ekapp-tile .ttl { font-size: 14px; font-weight: 700; line-height: 1.2; margin-top: 3px; }

/* Tabbar */
.ekapp-tabbar {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: white; border-top: 1px solid rgba(0,0,0,0.08);
  display: grid; grid-template-columns: repeat(5, 1fr);
  height: 64px; z-index: 4;
  flex-shrink: 0;
}
.ekapp-tabbar .tab {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; color: #888; font-size: 10px; cursor: pointer;
}
.ekapp-tabbar .tab.active { color: var(--ek-red); }

/* In-app call overlay */
.ekapp-call-overlay {
  position: absolute; inset: 0; z-index: 20;
  padding-top: 50px;
  background: linear-gradient(180deg, #061612 0%, #0F2A24 70%, #061612 100%);
  color: white; display: flex; flex-direction: column;
  font-family: 'SF Pro Display', system-ui;
  animation: ekcall-in 350ms ease-out;
}
@keyframes ekcall-in {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.ekapp-call-overlay .top-bar {
  padding: 14px 20px 0; display: flex; align-items: center; justify-content: space-between;
  font-size: 12px; opacity: 0.7;
}
.ekapp-call-overlay .top-bar .branding { display: flex; align-items: center; gap: 6px; font-weight: 600; opacity: 1; }
.ekapp-call-overlay .top-bar .branding img { height: 12px; opacity: 0.9; }
.ekapp-call-overlay .agent-block { text-align: center; padding: 18px 20px 8px; flex-shrink: 0; }
.ekapp-call-overlay .ring {
  width: 90px; height: 90px; border-radius: 50%;
  background: white; padding: 12px; margin: 0 auto 12px;
  position: relative;
  box-shadow: 0 0 0 4px rgba(255,255,255,0.06), 0 8px 24px rgba(0,0,0,0.4);
}
.ekapp-call-overlay .ring::before {
  content: ''; position: absolute; inset: -8px; border-radius: 50%;
  border: 1.5px solid rgba(34,160,107,0.6); animation: voice-pulse 2.5s infinite;
}
.ekapp-call-overlay .ring img { width: 100%; height: 100%; object-fit: contain; }
.ekapp-call-overlay .name { font-size: 20px; font-weight: 600; }
.ekapp-call-overlay .role { font-size: 12.5px; color: rgba(255,255,255,0.7); margin-top: 2px; }
.ekapp-call-overlay .meta-row {
  display: inline-flex; gap: 8px; align-items: center; margin-top: 12px;
  font-size: 12px; color: rgba(255,255,255,0.85);
  background: rgba(255,255,255,0.06); padding: 5px 12px; border-radius: 18px;
}
.ekapp-call-overlay .meta-row .rec-dot { width: 7px; height: 7px; border-radius: 50%; background: #34D399; animation: blink 1.5s infinite; }
.ekapp-call-overlay .meta-row .timer { font-family: 'SF Mono', Menlo, monospace; font-variant-numeric: tabular-nums; opacity: 0.85; }

.ekapp-call-overlay .tx {
  flex: 1; min-height: 0; overflow-y: auto;
  padding: 8px 18px 12px;
  display: flex; flex-direction: column; gap: 10px;
  mask-image: linear-gradient(180deg, transparent 0, black 26px, black calc(100% - 36px), transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0, black 26px, black calc(100% - 36px), transparent 100%);
}
.ekapp-call-overlay .tx-line {
  animation: voice-line-in 320ms ease-out;
  display: flex; flex-direction: column; gap: 3px;
}
.ekapp-call-overlay .tx-line.aria  { align-items: flex-start;  padding-right: 28px; }
.ekapp-call-overlay .tx-line.sarah { align-items: flex-end;    padding-left: 28px; text-align: right; }
.ekapp-call-overlay .tx-line.system { align-items: center; }
.ekapp-call-overlay .tx-line .head {
  display: flex; align-items: center; gap: 8px;
  font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}
.ekapp-call-overlay .tx-line.sarah .head { flex-direction: row-reverse; color: #FFB4B4; }
.ekapp-call-overlay .tx-line.aria .head { color: #C5E2D5; }
.ekapp-call-overlay .tx-line .head .ts { font-family: 'SF Mono', Menlo, monospace; opacity: 0.8; }
.ekapp-call-overlay .tx-line .text {
  font-size: 14px; line-height: 1.45; color: rgba(255,255,255,0.94);
  padding: 8px 12px; border-radius: 10px; max-width: 100%;
}
.ekapp-call-overlay .tx-line.aria  .text { background: rgba(34,160,107,0.14); border-top-left-radius: 0; }
.ekapp-call-overlay .tx-line.sarah .text { background: rgba(255,255,255,0.10); border-top-right-radius: 0; }
.ekapp-call-overlay .tx-line.system .text {
  background: rgba(255,255,255,0.06); font-size: 11.5px; color: rgba(255,255,255,0.7);
  font-style: italic; padding: 6px 12px;
}

.ekapp-call-overlay .ctrls {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  padding: 14px 22px 26px; flex-shrink: 0;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.4));
}
.ekapp-call-overlay .ctrl {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  font-size: 10px; color: rgba(255,255,255,0.75);
  text-transform: uppercase; letter-spacing: 0.06em;
  cursor: pointer;
}
.ekapp-call-overlay .ctrl .circle {
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(255,255,255,0.13);
  display: flex; align-items: center; justify-content: center;
  transition: all 180ms;
}
.ekapp-call-overlay .ctrl:hover .circle { background: rgba(255,255,255,0.2); }
.ekapp-call-overlay .ctrl.end .circle { background: #DC2626; }
.ekapp-call-overlay .ctrl.handoff .circle { background: rgba(215,25,33,0.6); }

.ekapp-call-overlay .handoff-banner {
  margin: 0 18px 8px; padding: 10px 14px; border-radius: 10px;
  background: linear-gradient(90deg, rgba(215,25,33,0.25), rgba(215,25,33,0.08));
  border: 1px solid rgba(215,25,33,0.4);
  text-align: center; font-size: 12.5px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  animation: handoff-pulse 1.8s infinite;
}

/* ---------- CC Assistant — Genesys console flavour ---------- */
:root {
  --gx-bg: #0E1218;
  --gx-panel: #161B22;
  --gx-panel-2: #1C232C;
  --gx-border: rgba(255,255,255,0.07);
  --gx-text: #E6EAEE;
  --gx-text-2: #9AA4B0;
  --gx-accent: #FF4F1F;       /* Genesys orange */
  --gx-accent-2: #FF7A4D;
  --gx-purple: #6B5DD3;       /* Genesys purple */
  --gx-good: #22C55E;
  --gx-warn: #F59E0B;
  --gx-bad: #EF4444;
}

.gx {
  width: 1480px; height: 940px;
  background: var(--gx-bg); color: var(--gx-text);
  display: flex; flex-direction: column;
  font-family: 'Inter', system-ui, sans-serif;
  border-radius: 12px; overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
  flex-shrink: 0;
}

/* Top toolbar (Genesys-style) */
.gx-bar {
  height: 48px; flex-shrink: 0;
  background: linear-gradient(180deg, #1A1F27 0%, #0E1218 100%);
  border-bottom: 1px solid var(--gx-border);
  display: flex; align-items: center; padding: 0 12px 0 16px; gap: 12px;
}
.gx-bar .brand {
  display: flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 13px; letter-spacing: 0.02em;
}
.gx-bar .brand .gx-logo {
  width: 22px; height: 22px; border-radius: 5px;
  background: linear-gradient(135deg, var(--gx-accent), var(--gx-purple));
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 11px; color: white;
}
.gx-bar .brand .sep { color: var(--gx-text-2); font-weight: 400; margin: 0 6px; }
.gx-bar .brand .app { color: var(--gx-text-2); font-weight: 500; font-size: 12px; }
.gx-bar .nav-pills {
  display: flex; gap: 2px; margin-left: 18px;
}
.gx-bar .nav-pill {
  padding: 6px 12px; border-radius: 6px; font-size: 12px; color: var(--gx-text-2);
  cursor: pointer;
}
.gx-bar .nav-pill.active { background: rgba(255,79,31,0.12); color: var(--gx-accent); font-weight: 600; }
.gx-bar .grow { flex: 1; }
.gx-bar .agent-state {
  display: flex; align-items: center; gap: 8px; font-size: 12px;
  background: rgba(34,197,94,0.12); color: var(--gx-good);
  padding: 5px 10px; border-radius: 16px; font-weight: 600;
}
.gx-bar .agent-state .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gx-good); }
.gx-bar .agent-info { display: flex; align-items: center; gap: 8px; padding-left: 12px; border-left: 1px solid var(--gx-border); margin-left: 6px; }
.gx-bar .agent-info .av { width: 28px; height: 28px; border-radius: 50%; overflow: hidden; }
.gx-bar .agent-info .av img { width: 100%; height: 100%; }
.gx-bar .agent-info .meta { line-height: 1.15; }
.gx-bar .agent-info .meta .n { font-size: 12px; font-weight: 600; }
.gx-bar .agent-info .meta .r { font-size: 10.5px; color: var(--gx-text-2); }

/* Interaction strip */
.gx-strip {
  height: 50px; flex-shrink: 0;
  background: var(--gx-panel);
  border-bottom: 1px solid var(--gx-border);
  display: flex; align-items: center; padding: 0 16px; gap: 14px;
}
.gx-strip .ix-pill {
  display: flex; align-items: center; gap: 10px;
  background: var(--gx-panel-2); border: 1px solid var(--gx-border);
  padding: 6px 12px; border-radius: 6px; font-size: 12px;
}
.gx-strip .ix-pill.active { border-color: var(--gx-accent); background: rgba(255,79,31,0.08); }
.gx-strip .ix-pill .ch {
  width: 22px; height: 22px; border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.06);
}
.gx-strip .ix-pill .name { font-weight: 600; }
.gx-strip .ix-pill .meta { color: var(--gx-text-2); font-size: 10.5px; }
.gx-strip .timer-pill {
  margin-left: auto;
  display: flex; align-items: center; gap: 8px;
  background: rgba(239,68,68,0.12); color: #F87171;
  border: 1px solid rgba(239,68,68,0.3);
  padding: 5px 12px; border-radius: 16px; font-size: 12px; font-weight: 600;
}
.gx-strip .timer-pill .rec { width: 7px; height: 7px; border-radius: 50%; background: #EF4444; animation: blink 1.4s infinite; }
.gx-strip .timer-pill .t { font-family: 'SF Mono', Menlo, monospace; font-variant-numeric: tabular-nums; }
.gx-strip .actions-icons { display: flex; gap: 6px; }
.gx-strip .actions-icons .ic {
  width: 32px; height: 32px; border-radius: 6px; background: var(--gx-panel-2);
  border: 1px solid var(--gx-border);
  display: flex; align-items: center; justify-content: center; color: var(--gx-text-2);
  cursor: pointer;
}
.gx-strip .actions-icons .ic.danger { color: #F87171; border-color: rgba(239,68,68,0.3); }

/* Body grid: 3 cols */
.gx-body {
  flex: 1; min-height: 0;
  display: grid;
  grid-template-columns: 320px 1fr 380px;
  background: var(--gx-bg);
}
.gx-pane {
  border-right: 1px solid var(--gx-border);
  display: flex; flex-direction: column;
  min-height: 0; overflow: hidden;
}
.gx-pane:last-child { border-right: none; }
.gx-pane-head {
  padding: 12px 16px;
  font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--gx-text-2); font-weight: 700;
  border-bottom: 1px solid var(--gx-border);
  display: flex; align-items: center; justify-content: space-between;
  flex-shrink: 0;
  background: var(--gx-panel);
}
.gx-pane-head .live {
  display: flex; align-items: center; gap: 5px;
  font-size: 9.5px; letter-spacing: 0.1em;
  background: rgba(239,68,68,0.15); color: #F87171;
  padding: 3px 8px; border-radius: 4px;
}
.gx-pane-head .live .d { width: 6px; height: 6px; border-radius: 50%; background: #EF4444; animation: blink 1.4s infinite; }

/* LEFT — Profile + Journey + Risk */
.gx-profile-pane { background: var(--gx-panel); }
.gx-profile-pane .scroll {
  flex: 1; overflow-y: auto;
  padding: 14px 14px 24px;
  display: flex; flex-direction: column; gap: 14px;
}

.gx-profile-card {
  background: var(--gx-panel-2);
  border: 1px solid var(--gx-border);
  border-radius: 10px;
  padding: 14px;
}
.gx-profile-head { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.gx-profile-head .av {
  width: 56px; height: 56px; border-radius: 50%; overflow: hidden;
  border: 2px solid rgba(255,79,31,0.3);
}
.gx-profile-head .av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gx-profile-head .nm { font-size: 15px; font-weight: 700; }
.gx-profile-head .tier {
  font-size: 11px; color: var(--gx-accent-2); margin-top: 2px;
  display: inline-flex; align-items: center; gap: 5px;
}
.gx-profile-head .age { font-size: 10.5px; color: var(--gx-text-2); margin-top: 3px; }

.gx-kv {
  display: grid; grid-template-columns: 88px 1fr;
  font-size: 11.5px; row-gap: 6px;
}
.gx-kv .k { color: var(--gx-text-2); }
.gx-kv .v { color: var(--gx-text); font-weight: 500; }
.gx-kv .v .mono { font-family: 'SF Mono', Menlo, monospace; }

.gx-divider { height: 1px; background: var(--gx-border); margin: 10px 0; }

.gx-tag-row { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.gx-tag {
  font-size: 10px; padding: 3px 7px; border-radius: 4px;
  background: rgba(107,93,211,0.15); color: #A99EF0; font-weight: 500;
}
.gx-tag.warn { background: rgba(245,158,11,0.15); color: #FBD38D; }
.gx-tag.good { background: rgba(34,197,94,0.15); color: #86EFAC; }

/* Risk meter */
.gx-risk-card {
  background: var(--gx-panel-2);
  border: 1px solid var(--gx-border);
  border-radius: 10px;
  padding: 12px 14px;
}
.gx-risk-card .ttl { font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gx-text-2); margin-bottom: 8px; font-weight: 700; }
.gx-risk-meter {
  height: 8px; border-radius: 4px;
  background: linear-gradient(90deg, #22C55E 0%, #FBBF24 50%, #EF4444 100%);
  position: relative;
}
.gx-risk-meter .knob {
  position: absolute; top: -3px; width: 14px; height: 14px;
  background: white; border-radius: 50%;
  transform: translateX(-50%);
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
  transition: left 700ms cubic-bezier(.6,0,.4,1);
}
.gx-risk-card .scale { display: flex; justify-content: space-between; font-size: 10px; color: var(--gx-text-2); margin-top: 6px; }
.gx-risk-card .reasons { margin-top: 10px; font-size: 11.5px; line-height: 1.5; color: var(--gx-text-2); }
.gx-risk-card .reasons .lbl { font-weight: 600; color: var(--gx-text); margin-bottom: 3px; font-size: 11px; }

/* Journey */
.gx-journey-card {
  background: var(--gx-panel-2);
  border: 1px solid var(--gx-border);
  border-radius: 10px;
  padding: 12px 14px;
}
.gx-journey-card .ttl { font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gx-text-2); margin-bottom: 12px; font-weight: 700; }
.gx-journey {
  display: flex; flex-direction: column; gap: 0; position: relative;
}
.gx-journey::before {
  content: ''; position: absolute; left: 11px; top: 8px; bottom: 8px;
  width: 2px; background: var(--gx-border);
}
.gx-journey .step {
  display: flex; gap: 10px; align-items: flex-start; padding: 6px 0;
  position: relative;
}
.gx-journey .step .bullet {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--gx-panel-2); border: 2px solid var(--gx-border);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; z-index: 1; color: var(--gx-text-2);
}
.gx-journey .step.done .bullet { background: rgba(34,197,94,0.15); border-color: var(--gx-good); color: var(--gx-good); }
.gx-journey .step.active .bullet { background: rgba(255,79,31,0.15); border-color: var(--gx-accent); color: var(--gx-accent); animation: gx-pulse 2s infinite; }
@keyframes gx-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,79,31,0); }
  50% { box-shadow: 0 0 0 4px rgba(255,79,31,0.2); }
}
.gx-journey .step .meta { padding-top: 1px; }
.gx-journey .step .label { font-size: 12px; font-weight: 600; }
.gx-journey .step .label .ts { font-size: 10.5px; color: var(--gx-text-2); margin-left: 6px; font-family: 'SF Mono', monospace; font-weight: 500; }
.gx-journey .step .desc { font-size: 11px; color: var(--gx-text-2); margin-top: 2px; }

/* CENTER — Live transcript */
.gx-tx-pane { background: var(--gx-bg); }
.gx-tx-pane .scroll {
  flex: 1; overflow-y: auto;
  padding: 14px 18px 18px;
  display: flex; flex-direction: column; gap: 12px;
}
.gx-handoff-pill {
  align-self: center;
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,79,31,0.1); color: var(--gx-accent);
  border: 1px solid rgba(255,79,31,0.3);
  padding: 6px 14px; border-radius: 16px; font-size: 11px; font-weight: 600;
  letter-spacing: 0.04em;
}
.gx-tx-line { display: flex; flex-direction: column; gap: 4px; }
.gx-tx-line.aria  { align-items: flex-start; }
.gx-tx-line.sarah { align-items: flex-end; }
.gx-tx-line.consultant, .gx-tx-line.system { align-items: center; }

.gx-tx-line .head {
  display: flex; align-items: center; gap: 8px; font-size: 10.5px;
  color: var(--gx-text-2); letter-spacing: 0.04em;
}
.gx-tx-line .head .badge {
  font-size: 9.5px; font-weight: 700;
  padding: 2px 7px; border-radius: 4px; letter-spacing: 0.06em;
}
.gx-tx-line.aria   .head .badge { background: rgba(34,197,94,0.15); color: #86EFAC; }
.gx-tx-line.sarah  .head .badge { background: rgba(255,79,31,0.15); color: #FFA779; }
.gx-tx-line.consultant .head .badge { background: rgba(107,93,211,0.18); color: #A99EF0; }
.gx-tx-line.system .head .badge { background: rgba(255,255,255,0.06); color: var(--gx-text-2); }
.gx-tx-line .head .ts { font-family: 'SF Mono', monospace; }
.gx-tx-line .text {
  font-size: 13.5px; line-height: 1.55; color: var(--gx-text);
  background: var(--gx-panel); border: 1px solid var(--gx-border);
  padding: 9px 13px; border-radius: 10px; max-width: 78%;
}
.gx-tx-line.aria   .text { border-top-left-radius: 0; border-color: rgba(34,197,94,0.2); }
.gx-tx-line.sarah  .text { border-top-right-radius: 0; border-color: rgba(255,79,31,0.2); }
.gx-tx-line.consultant .text { background: rgba(107,93,211,0.1); border-color: rgba(107,93,211,0.3); }
.gx-tx-line.system .text {
  background: rgba(34,197,94,0.08); border-color: rgba(34,197,94,0.25);
  color: #86EFAC; font-size: 12px; font-style: italic;
}
.gx-tx-line.live .text { box-shadow: 0 0 0 2px rgba(255,79,31,0.25); animation: gx-tx-live 1s ease-out; }
@keyframes gx-tx-live {
  from { box-shadow: 0 0 0 4px rgba(255,79,31,0.4); }
  to   { box-shadow: 0 0 0 2px rgba(255,79,31,0.25); }
}

/* RIGHT — Recommendations */
/* RIGHT — Recommendations: pane fills height, no outer scroll;
   only the featured card's action list scrolls internally */
.gx-rec-pane { background: var(--gx-panel); }
.gx-rec-pane .scroll {
  flex: 1; min-height: 0; overflow: hidden;
  padding: 14px 14px 18px;
  display: flex; flex-direction: column; gap: 12px;
}
.gx-rec-pane .gx-nba-hint { flex-shrink: 0; }
.gx-rec-pane .gx-rec-card.featured {
  flex: 1 1 auto;
  min-height: 0;
  display: flex; flex-direction: column;
  overflow: hidden;
}
.gx-rec-pane .gx-rec-card.knowledge-card { flex-shrink: 0; }
.gx-rec-card {
  background: var(--gx-panel-2);
  border: 1px solid var(--gx-border);
  border-radius: 10px;
  padding: 14px;
  position: relative;
  overflow: visible;
}
.gx-rec-card.featured {
  border-color: rgba(255,79,31,0.4);
  background: linear-gradient(180deg, rgba(255,79,31,0.06), var(--gx-panel-2));
  box-shadow: 0 4px 20px rgba(255,79,31,0.08);
}
.gx-rec-card .nba {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--gx-accent); color: white;
  padding: 3px 8px; border-radius: 4px; margin-bottom: 8px;
}
.gx-rec-card .ttl { font-size: 16px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.2; }
.gx-rec-card .route { font-size: 12.5px; color: var(--gx-text-2); margin-top: 4px; font-family: 'SF Mono', monospace; }
.gx-rec-card .tags-line {
  display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap;
}
.gx-rec-card .pill {
  font-size: 10.5px; padding: 3px 8px; border-radius: 4px;
  background: rgba(255,255,255,0.06); color: var(--gx-text);
  border: 1px solid var(--gx-border);
}
.gx-rec-card .pill.good { background: rgba(34,197,94,0.12); color: #86EFAC; border-color: rgba(34,197,94,0.25); }

.gx-why { margin-top: 12px; }
.gx-why .lbl { font-size: 10.5px; color: var(--gx-text-2); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 6px; font-weight: 700; }
.gx-why ul { list-style: none; }
.gx-why li {
  font-size: 12px; line-height: 1.5; padding: 4px 0 4px 18px;
  color: var(--gx-text); position: relative;
}
.gx-why li::before {
  content: ''; position: absolute; left: 6px; top: 10px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--gx-good);
}

.gx-checklist { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--gx-border); }
.gx-checklist .lbl { font-size: 10.5px; color: var(--gx-text-2); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 8px; font-weight: 700; }
.gx-act-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: 8px;
  background: rgba(255,255,255,0.03);
  margin-bottom: 5px;
  border: 1px solid var(--gx-border);
  transition: all 250ms;
}
.gx-act-item.done { background: rgba(34,197,94,0.08); border-color: rgba(34,197,94,0.25); }
.gx-act-item .num {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--gx-panel); border: 1px solid var(--gx-border);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 600; color: var(--gx-text-2); flex-shrink: 0;
}
.gx-act-item.done .num { background: var(--gx-good); border-color: var(--gx-good); color: white; }
.gx-act-item .info { flex: 1; min-width: 0; }
.gx-act-item .info .head { font-size: 12px; font-weight: 600; }
.gx-act-item .info .meta {
  font-size: 10px; color: var(--gx-text-2); margin-top: 1px;
  font-family: 'SF Mono', monospace;
}

.gx-rec-actions { margin-top: 12px; }
.gx-btn-confirm {
  width: 100%; padding: 12px;
  background: var(--gx-accent); color: white; border: none; border-radius: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.02em;
  cursor: pointer; transition: all 250ms;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.gx-btn-confirm:hover { background: var(--gx-accent-2); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(255,79,31,0.35); }
.gx-btn-confirm.confirmed { background: var(--gx-good); pointer-events: none; }
.gx-btn-confirm.ready { animation: gx-btn-ready 1.6s ease-in-out infinite; }
@keyframes gx-btn-ready {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,79,31,0.4); }
  50% { box-shadow: 0 0 0 6px rgba(255,79,31,0.05); }
}
.gx-btn-confirm[disabled] { opacity: 0.6; cursor: not-allowed; }
.gx-btn-spinner {
  width: 14px; height: 14px; border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white; border-radius: 50%; animation: spin 700ms linear infinite;
}
.gx-ghost-row { display: flex; gap: 8px; margin-top: 8px; }
.gx-btn-ghost {
  flex: 1; padding: 8px;
  background: transparent; color: var(--gx-text-2);
  border: 1px solid var(--gx-border); border-radius: 6px;
  font-size: 11.5px; cursor: pointer;
}
.gx-btn-ghost:hover { border-color: var(--gx-text-2); color: var(--gx-text); }

/* AI listening (live updates as Marcus speaks) */
.gx-listening {
  display: flex; align-items: center; gap: 8px;
  background: rgba(107,93,211,0.1);
  border: 1px solid rgba(107,93,211,0.3);
  padding: 8px 12px; border-radius: 8px;
  font-size: 11.5px; color: #C5BCEF;
}
.gx-listening .wave {
  display: flex; gap: 2px; align-items: center; height: 12px;
}
.gx-listening .wave span {
  display: block; width: 2px; background: #A99EF0;
  border-radius: 1px;
  animation: gx-wave 1.2s ease-in-out infinite;
}
.gx-listening .wave span:nth-child(1) { animation-delay: 0s; }
.gx-listening .wave span:nth-child(2) { animation-delay: 0.15s; }
.gx-listening .wave span:nth-child(3) { animation-delay: 0.3s; }
.gx-listening .wave span:nth-child(4) { animation-delay: 0.45s; }
.gx-listening .wave span:nth-child(5) { animation-delay: 0.6s; }
@keyframes gx-wave {
  0%, 100% { height: 4px; }
  50% { height: 12px; }
}

/* Footer */
.gx-foot {
  height: 28px; flex-shrink: 0;
  background: var(--gx-panel);
  border-top: 1px solid var(--gx-border);
  display: flex; align-items: center; padding: 0 14px; gap: 18px;
  font-size: 10.5px; color: var(--gx-text-2);
}
.gx-foot .item { display: flex; align-items: center; gap: 6px; }
.gx-foot .item .ok { color: var(--gx-good); }
.gx-foot .grow { flex: 1; }

/* End-of-call summary modal (Genesys flavour) */
.gx-summary-modal {
  position: absolute; inset: 0;
  background: rgba(8,11,16,0.85);
  display: flex; align-items: center; justify-content: center;
  padding: 30px;
  z-index: 50;
  animation: gx-modal 350ms ease-out;
}
@keyframes gx-modal {
  from { opacity: 0; backdrop-filter: blur(0); }
  to { opacity: 1; backdrop-filter: blur(8px); }
}
.gx-summary-modal .sheet {
  background: var(--gx-panel); width: min(900px, 100%); max-height: 86%;
  border-radius: 12px; border: 1px solid var(--gx-border);
  overflow: hidden;
  display: flex; flex-direction: column;
  animation: gx-sheet-in 400ms cubic-bezier(.22,.93,.34,1);
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}
@keyframes gx-sheet-in {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.gx-summary-modal .sheet-head {
  padding: 18px 22px; display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--gx-border);
  background: linear-gradient(90deg, rgba(34,197,94,0.08), transparent);
}
.gx-summary-modal .sheet-head .title { font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.gx-summary-modal .sheet-head .title .ico {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--gx-good); color: white;
  display: flex; align-items: center; justify-content: center;
}
.gx-summary-modal .sheet-head .meta { font-size: 11px; color: var(--gx-text-2); font-family: 'SF Mono', monospace; }

.gx-summary-modal .sheet-body {
  padding: 18px 22px;
  overflow-y: auto;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px;
}
.gx-sum-block .block-ttl {
  font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--gx-text-2); margin-bottom: 8px; font-weight: 700;
  display: flex; align-items: center; gap: 6px;
}
.gx-sum-block .block-body {
  background: var(--gx-panel-2); border: 1px solid var(--gx-border);
  border-radius: 8px; padding: 12px 14px;
}
.gx-sum-block ul { list-style: none; }
.gx-sum-block li {
  font-size: 12.5px; padding: 5px 0 5px 16px; line-height: 1.5;
  position: relative; color: var(--gx-text);
}
.gx-sum-block li::before {
  content: ''; position: absolute; left: 4px; top: 11px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--gx-accent);
}
.gx-sum-block .narrative { font-size: 13px; line-height: 1.55; color: var(--gx-text); }
.gx-sum-fields {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px;
  font-size: 12px;
}
.gx-sum-fields .k { color: var(--gx-text-2); }
.gx-sum-fields .v { font-weight: 600; font-family: 'SF Mono', monospace; }

.gx-crm-tags {
  display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px;
}
.gx-crm-tag {
  font-size: 10.5px; padding: 3px 8px; border-radius: 4px;
  background: rgba(107,93,211,0.18); color: #BBB1F0; border: 1px solid rgba(107,93,211,0.3);
}

.gx-summary-modal .sheet-foot {
  padding: 14px 22px; border-top: 1px solid var(--gx-border);
  display: flex; align-items: center; justify-content: space-between;
  background: var(--gx-panel-2);
}
.gx-summary-modal .sheet-foot .left { font-size: 11.5px; color: var(--gx-text-2); display: flex; align-items: center; gap: 8px; }
.gx-summary-modal .sheet-foot .left .sync-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gx-good); animation: blink 1.5s infinite; }
.gx-summary-modal .sheet-foot .right { display: flex; gap: 8px; }
.gx-summary-modal .sheet-foot .btn {
  padding: 8px 16px; border-radius: 6px; font-size: 12px; font-weight: 600; cursor: pointer;
  border: 1px solid var(--gx-border); background: var(--gx-panel); color: var(--gx-text);
}
.gx-summary-modal .sheet-foot .btn.primary { background: var(--gx-accent); color: white; border-color: var(--gx-accent); }


/* ===== Genesys logo in CC Assistant brand ===== */
.gx-bar .brand .powered-genesys {
  display: inline-flex; align-items: center; gap: 6px;
  margin-left: 10px; padding: 3px 8px 3px 6px;
  background: rgba(255,79,31,0.08);
  border: 1px solid rgba(255,79,31,0.22);
  border-radius: 14px;
  font-size: 11px; color: var(--gx-text-2); font-weight: 500;
}
.gx-bar .brand .powered-genesys .gen-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: linear-gradient(135deg, #FF4F1F, #FF8A1F);
  box-shadow: 0 0 6px rgba(255,79,31,0.5);
}
.gx-bar .brand .powered-genesys .gen-text strong {
  color: #FF8A4F; font-weight: 700; letter-spacing: 0.01em;
}

/* ===== Sentiment meter (replaces churn risk visual) ===== */
.gx-sent-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px;
}
.gx-sent-lbl { display: flex; align-items: center; gap: 8px; }
.gx-sent-pill {
  font-size: 10px; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; padding: 3px 8px; border-radius: 10px;
}
.gx-sent-pill.con { background: rgba(248,113,113,0.14); color: #FCA5A5; }
.gx-sent-pill.cau { background: rgba(251,191,36,0.14); color: #FCD34D; }
.gx-sent-pill.imp { background: rgba(59,130,246,0.14); color: #93C5FD; }
.gx-sent-pill.pos { background: rgba(34,197,94,0.18); color: #86EFAC; }
.gx-sent-trend {
  font-family: 'SF Mono', monospace; font-size: 11px;
  color: var(--gx-text-2);
}
.gx-sent-meter {
  position: relative; height: 8px; border-radius: 5px;
  background: rgba(255,255,255,0.06); overflow: visible;
}
.gx-sent-track {
  position: absolute; inset: 0; border-radius: 5px;
  background: rgba(255,255,255,0.04);
}
.gx-sent-fill {
  position: absolute; left: 0; top: 0; bottom: 0;
  border-radius: 5px;
  background: linear-gradient(90deg, #F87171 0%, #FBBF24 35%, #60A5FA 65%, #22C55E 100%);
  transition: width 800ms cubic-bezier(.6,0,.4,1);
  box-shadow: 0 0 10px rgba(34,197,94,0.25);
}
.gx-sent-knob {
  position: absolute; top: -4px; width: 16px; height: 16px;
  background: white; border-radius: 50%;
  border: 2px solid var(--gx-panel-2);
  box-shadow: 0 1px 4px rgba(0,0,0,0.5);
  transform: translateX(-50%);
  transition: left 800ms cubic-bezier(.6,0,.4,1);
}

/* ===== WhatsApp Sarah typing indicator (sent side) ===== */
.wam-typing.sent-typing {
  align-self: flex-end; background: var(--wam-sent);
  border-top-right-radius: 0; border-top-left-radius: 7px;
}
.wam-typing.sent-typing span {
  background: #5A8E5C;
}

/* ===== Phone bottom padding for input/buttons ===== */
.wam-input { padding: 6px 6px 24px !important; }
.wam-input + .home-bar { display: none; }

/* iOS home indicator inside phone */
.phone-home-bar {
  position: absolute; left: 0; right: 0; bottom: 8px;
  height: 5px; pointer-events: none; z-index: 60;
  display: flex; justify-content: center;
}
.phone-home-bar::after {
  content: '';
  width: 134px; height: 5px; border-radius: 3px;
  background: rgba(0,0,0,0.85);
}

/* Tap-to-call screen, lift CTA off bottom */
.eapp-call-cta { padding-bottom: 36px !important; }

/* ===== Genesys logo (image, in CC Assistant brand) ===== */
.gx-bar .brand .powered-genesys {
  display: inline-flex; align-items: center; gap: 8px;
  margin-left: 12px; padding: 4px 12px 4px 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  font-size: 11px; color: var(--gx-text-2); font-weight: 500;
}
.gx-bar .brand .powered-genesys .gen-text { opacity: 0.7; font-size: 11px; }
.gx-bar .brand .powered-genesys .gen-logo {
  height: 22px; width: auto; display: block;
  filter: brightness(1.15);
}

/* ===== Redesigned Sentiment Card ===== */
.gx-sent-card {
  background: var(--gx-panel-2);
  border: 1px solid var(--gx-border);
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 12px;
}
.gx-sent-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.gx-sent-head .lbl {
  font-size: 10.5px; color: var(--gx-text-2);
  text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700;
}
.gx-sent-head .live-dot {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 10px; color: var(--gx-good); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.04em;
}
.gx-sent-head .live-dot > span:first-child {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gx-good);
  animation: pulseDot 1.6s ease-in-out infinite;
}
@keyframes pulseDot {
  0%,100% { opacity: 1; box-shadow: 0 0 0 0 rgba(34,197,94,0.5); }
  50% { opacity: 0.6; box-shadow: 0 0 0 5px rgba(34,197,94,0); }
}

.gx-sent-hero {
  display: flex; align-items: center; gap: 12px; margin-bottom: 12px;
}
.gx-sent-emoji {
  width: 44px; height: 44px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: all 600ms cubic-bezier(.6,0,.4,1);
}
.gx-sent-emoji svg { display: block; }
.gx-sent-meta { flex: 1; }
.gx-sent-status {
  font-size: 10px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 2px 8px; border-radius: 10px;
  display: inline-block; margin-bottom: 4px;
}
.gx-sent-status.con { background: rgba(248,113,113,0.14); color: #FCA5A5; }
.gx-sent-status.cau { background: rgba(251,191,36,0.14); color: #FCD34D; }
.gx-sent-status.imp { background: rgba(59,130,246,0.14); color: #93C5FD; }
.gx-sent-status.pos { background: rgba(34,197,94,0.18); color: #86EFAC; }

.gx-sent-num {
  display: flex; align-items: baseline; gap: 4px;
  font-family: 'SF Mono', monospace;
}
.gx-sent-num .big {
  font-size: 26px; font-weight: 700; color: var(--gx-text);
  letter-spacing: -0.02em;
}
.gx-sent-num .suf { font-size: 12px; color: var(--gx-text-2); }
.gx-sent-num .delta {
  margin-left: 6px; font-size: 11px; font-weight: 700;
  padding: 1px 6px; border-radius: 4px;
}
.gx-sent-num .delta.up { background: rgba(34,197,94,0.16); color: #86EFAC; }
.gx-sent-num .delta.flat { background: rgba(255,255,255,0.06); color: var(--gx-text-2); }

.gx-sent-bar-v2 {
  position: relative; margin-bottom: 12px;
}
.gx-sent-bar-v2 .bar-track {
  height: 6px; border-radius: 4px;
  background: rgba(255,255,255,0.06);
  overflow: hidden;
}
.gx-sent-bar-v2 .bar-fill {
  height: 100%; border-radius: 4px;
  transition: width 800ms cubic-bezier(.6,0,.4,1), background 600ms;
}
.gx-sent-bar-v2 .bar-fill.con { background: linear-gradient(90deg, #DC2626, #F87171); }
.gx-sent-bar-v2 .bar-fill.cau { background: linear-gradient(90deg, #D97706, #FBBF24); }
.gx-sent-bar-v2 .bar-fill.imp { background: linear-gradient(90deg, #2563EB, #60A5FA); }
.gx-sent-bar-v2 .bar-fill.pos { background: linear-gradient(90deg, #16A34A, #4ADE80); }
.gx-sent-bar-v2 .bar-marks {
  position: absolute; inset: 0; pointer-events: none;
}
.gx-sent-bar-v2 .bar-marks span {
  position: absolute; top: 0; bottom: 0; width: 1px;
  background: rgba(255,255,255,0.18);
}

.gx-sent-reason {
  font-size: 11.5px; color: var(--gx-text-2); line-height: 1.5;
  padding: 8px 10px; border-radius: 6px;
  background: rgba(255,255,255,0.03);
  border-left: 2px solid rgba(255,79,31,0.5);
  margin-bottom: 10px;
}

.gx-sent-drivers {
  display: flex; flex-direction: column; gap: 4px;
}
.driver-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 4px 0;
  border-bottom: 1px dashed rgba(255,255,255,0.04);
  font-size: 11px;
}
.driver-row:last-child { border-bottom: none; }
.driver-row .dk { color: var(--gx-text-2); }
.driver-row .dv {
  font-family: 'SF Mono', monospace; font-weight: 600;
  padding: 1px 6px; border-radius: 3px;
}
.driver-row .dv.v-high { background: rgba(34,197,94,0.14); color: #86EFAC; }
.driver-row .dv.v-mid { background: rgba(251,191,36,0.14); color: #FCD34D; }
.driver-row .dv.v-low { background: rgba(255,255,255,0.05); color: var(--gx-text-2); }
.driver-row .dv.v-none { background: rgba(34,197,94,0.10); color: #86EFAC; }
.driver-row .dv.v-2 { background: rgba(248,113,113,0.14); color: #FCA5A5; }
.driver-row .dv.v-1 { background: rgba(251,191,36,0.14); color: #FCD34D; }
.driver-row .dv.v-3 { background: rgba(248,113,113,0.14); color: #FCA5A5; }

/* ===== NBA Hint Card ===== */
.gx-nba-hint {
  background: linear-gradient(180deg, rgba(255,79,31,0.10), rgba(255,79,31,0.04));
  border: 1px solid rgba(255,79,31,0.28);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 12px;
}
.gx-nba-hint .hint-head {
  display: flex; align-items: center; gap: 10px; margin-bottom: 6px;
}
.gx-nba-hint .step-num {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--gx-accent); color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
}
.gx-nba-hint .hint-title {
  font-size: 13px; font-weight: 700; color: var(--gx-text);
  letter-spacing: -0.005em;
}
.gx-nba-hint .hint-body {
  font-size: 11.5px; color: var(--gx-text-2); line-height: 1.5;
  padding-left: 32px;
}

/* ===== Rebook Card: approve fixed at top, action list scrolls inside ===== */
.gx-rec-actions.top {
  flex-shrink: 0;
  margin-top: 12px; margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.gx-rec-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding-right: 6px;
  margin-right: -6px;
}
.gx-rec-scroll::-webkit-scrollbar { width: 6px; }
.gx-rec-scroll::-webkit-scrollbar-track { background: transparent; }
.gx-rec-scroll::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.12);
  border-radius: 3px;
}
.gx-rec-scroll::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }

/* ===== Knowledge cards: contained, no overflow ===== */
.gx-rec-card.knowledge-card {
  padding: 12px;
}
.gx-rec-card.knowledge-card .kw-head {
  font-size: 10px; color: var(--gx-text-2);
  text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700;
  margin-bottom: 6px;
}
.gx-rec-card.knowledge-card .kw-title {
  font-size: 12.5px; font-weight: 600; color: var(--gx-text);
  margin-bottom: 6px; line-height: 1.3;
  word-wrap: break-word;
}
.gx-rec-card.knowledge-card .kw-title.quote {
  font-style: italic; color: var(--gx-text);
}
.gx-rec-card.knowledge-card .kw-body {
  font-size: 11px; color: var(--gx-text-2); line-height: 1.5;
  word-wrap: break-word;
}
.gx-rec-card.knowledge-card .kw-body strong { color: var(--gx-text); }
.gx-rec-card.knowledge-card .kw-source {
  margin-top: 8px; font-size: 10.5px; color: var(--gx-accent);
  font-family: 'SF Mono', monospace;
}
