:root {
  /* Brand */
  --color-emirates-red: #D71921;
  --color-emirates-red-hover: #B8141B;
  --color-emirates-red-light: #FCE8E9;

  /* Neutrals */
  --color-white: #FFFFFF;
  --color-soft-white: #F8F8F8;
  --color-surface: #F4F4F4;
  --color-border: #E5E5E5;
  --color-text-tertiary: #999999;
  --color-text-secondary: #666666;
  --color-text-primary: #1A1A1A;

  /* Semantic */
  --color-success: #22A06B;
  --color-warning: #E89A1F;
  --color-info: #1B6EA8;

  /* Copilot dark mode */
  --color-copilot-bg: #0F1419;
  --color-copilot-card: #1A2028;
  --color-copilot-card-elevated: #242C36;
  --color-copilot-border: #2D3641;
  --color-copilot-text-primary: #F5F5F5;
  --color-copilot-text-secondary: #A3AEBC;

  /* WhatsApp */
  --color-wa-green: #25D366;
  --color-wa-bubble-sent: #005C4B;
  --color-wa-header: #202C33;
  --color-wa-bg: #0B141A;
  --color-wa-panel: #111B21;
  --color-wa-bubble-recv: #202C33;

  /* Type */
  --font-emirates: "Emirates", "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", Consolas, monospace;
  --font-sf: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", sans-serif;
  --font-wa: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Spacing */
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px;
  --space-5: 24px; --space-6: 32px; --space-7: 48px; --space-8: 64px;

  /* Radius */
  --radius-sm: 4px; --radius-md: 8px; --radius-lg: 12px; --radius-xl: 16px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.08);
  --shadow-xl: 0 16px 40px rgba(0,0,0,0.12);

  /* Motion */
  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-decelerate: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-overshoot: cubic-bezier(0.34, 1.56, 0.64, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { width: 100%; height: 100%; overflow: hidden; }
body {
  font-family: var(--font-emirates);
  color: var(--color-text-primary);
  background: #E8E4DC;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#root { width: 100vw; height: 100vh; position: relative; }

/* Screen container */
.screen-stage {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(ellipse at center, #EFEAE0 0%, #D8D3C8 100%);
}
.screen { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity 400ms var(--ease-standard); }
.screen.active { opacity: 1; pointer-events: auto; }
.screen > .cca-window, .screen > .copilot, .screen > .closing {
  flex-shrink: 0;
  transform-origin: center center;
}

/* Phone frame */
.phone-frame {
  width: 390px; height: 844px;
  background: #000;
  border-radius: 54px;
  padding: 12px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6), 0 0 0 2px #2a2a2a, inset 0 0 0 2px #1a1a1a;
  position: relative;
}
.phone-screen {
  width: 100%; height: 100%;
  border-radius: 42px;
  overflow: hidden;
  position: relative;
  background: #fff;
}
.phone-notch {
  position: absolute; top: 22px; left: 50%; transform: translateX(-50%);
  width: 120px; height: 32px; background: #000; border-radius: 20px; z-index: 100;
}
.phone-home-indicator {
  position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
  width: 134px; height: 5px; background: rgba(0,0,0,0.85);
  border-radius: 3px; z-index: 100;
}
.phone-screen.dark-bg .phone-home-indicator,
.phone-screen [data-dark-bottom="true"] ~ .phone-home-indicator {
  background: rgba(255,255,255,0.85);
}

/* iOS status bar */
.ios-status {
  position: absolute; top: 0; left: 0; right: 0; height: 54px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 32px 0; font-family: var(--font-sf);
  font-size: 16px; font-weight: 600; color: var(--color-text-primary); z-index: 50;
}
.ios-status.dark { color: white; }
.ios-status .right { display: flex; gap: 6px; align-items: center; }

/* Demo director */
.director {
  position: fixed; top: 16px; right: 16px; z-index: 1000;
  background: rgba(20,20,22,0.92);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  color: #f5f5f5;
  font-family: var(--font-emirates);
  font-size: 12px;
  width: 280px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0,0,0,0.4);
}
.director.collapsed .director-body { display: none; }
.director-head {
  padding: 10px 14px;
  display: flex; align-items: center; justify-content: space-between;
  cursor: pointer; user-select: none;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.director-head .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--color-emirates-red); }
.director-head .title { font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; font-size: 11px; }
.director-body { padding: 12px; }
.director-section { margin-bottom: 12px; }
.director-section:last-child { margin-bottom: 0; }
.director-label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; color: #888; margin-bottom: 6px; }
.director-screens { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.director-screen-btn {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  color: #ccc; padding: 8px 10px; border-radius: 6px;
  font-size: 11px; cursor: pointer; text-align: left;
  transition: all 150ms;
}
.director-screen-btn:hover { background: rgba(255,255,255,0.08); color: #fff; }
.director-screen-btn.active { background: var(--color-emirates-red); border-color: var(--color-emirates-red); color: #fff; }
.director-toggles { display: flex; flex-direction: column; gap: 4px; }
.director-toggle {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 8px; border-radius: 6px; cursor: pointer;
  background: rgba(255,255,255,0.03);
}
.director-toggle:hover { background: rgba(255,255,255,0.06); }
.director-toggle .switch { width: 28px; height: 16px; border-radius: 10px; background: #444; position: relative; transition: 200ms; }
.director-toggle .switch::after { content: ''; position: absolute; left: 2px; top: 2px; width: 12px; height: 12px; border-radius: 50%; background: white; transition: 200ms; }
.director-toggle.on .switch { background: var(--color-emirates-red); }
.director-toggle.on .switch::after { left: 14px; }
.director-shortcuts { font-size: 10px; color: #666; line-height: 1.6; }
.director-shortcuts kbd { background: rgba(255,255,255,0.08); padding: 1px 4px; border-radius: 3px; font-family: var(--font-mono); font-size: 9px; }

/* Talk track */
.talk-track {
  position: fixed; left: 50%; bottom: 64px; transform: translateX(-50%);
  z-index: 900;
  background: rgba(0,0,0,0.82);
  backdrop-filter: blur(20px);
  color: #fff; padding: 14px 20px; border-radius: 10px;
  font-family: var(--font-emirates); font-size: 14px; line-height: 1.5;
  max-width: 720px; text-align: center;
  border: 1px solid rgba(255,255,255,0.1);
  font-style: italic;
  transition: opacity 250ms;
  box-shadow: 0 12px 40px rgba(0,0,0,0.35);
}
.talk-track .speaker-label {
  display: inline-block; font-size: 9px; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--color-emirates-red); margin-bottom: 6px; font-style: normal; font-weight: 600;
}

/* Nav arrow */
.nav-next {
  position: fixed; right: 24px; bottom: 24px; z-index: 800;
  background: rgba(20,20,22,0.85); color: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 12px 18px; border-radius: 999px; cursor: pointer;
  font-family: var(--font-emirates); font-size: 13px; font-weight: 500;
  transition: all 200ms; display: flex; align-items: center; gap: 8px;
}
.nav-next:hover { background: rgba(20,20,22,0.95); color: #fff; }

/* Powered by Wonderful */
.powered-by {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 9px;
  z-index: 600;
  pointer-events: none;
  opacity: 0.65;
}
.powered-by .pb-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(20,20,22,0.45);
}
.powered-by img {
  height: 16px;
  width: auto;
  display: block;
  opacity: 0.85;
}

/* DEMO watermark */
.demo-watermark {
  position: fixed; bottom: 8px; left: 12px; z-index: 700;
  font-size: 9px; color: rgba(20,20,22,0.32);
  letter-spacing: 0.3em; font-family: var(--font-mono);
  pointer-events: none;
}

.screen-counter {
  position: fixed; top: 16px; left: 16px; z-index: 800;
  background: rgba(20,20,22,0.85); backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.08);
  color: #ccc; font-family: var(--font-mono); font-size: 11px;
  padding: 6px 12px; border-radius: 999px;
}

/* --- Email screen (Android-style dark Gmail) --- */
.email-app { background: #1c1c1e; height: 100%; display: flex; flex-direction: column; padding-top: 54px; }
.email-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 16px; background: #1c1c1e; border-bottom: 1px solid #2c2c2e; font-family: var(--font-sf); flex-shrink: 0;
}
.email-toolbar .back { color: #fff; font-size: 17px; display: flex; align-items: center; gap: 4px; }
.email-toolbar .actions { display: flex; gap: 18px; color: #fff; font-size: 17px; }
.email-meta {
  padding: 16px; background: #1c1c1e; border-bottom: 1px solid #2c2c2e; font-family: var(--font-sf); flex-shrink: 0;
}
.email-meta .subject { font-size: 19px; font-weight: 600; color: #fff; line-height: 1.3; margin-bottom: 14px; }
.email-meta .from-row { display: flex; gap: 10px; align-items: center; }
.email-meta .avatar {
  width: 36px; height: 36px; border-radius: 50%; background: #2BB673;
  display: flex; align-items: center; justify-content: center; color: white;
  font-weight: 700; font-size: 14px; flex-shrink: 0;
}
.email-meta .from-info { flex: 1; font-size: 14px; }
.email-meta .from-name { font-weight: 600; color: #fff; font-size: 15px; }
.email-meta .from-detail { color: #8e8e93; font-size: 13px; margin-top: 1px; }
.email-meta .timestamp { color: #5e9aff; font-size: 13px; align-self: flex-start; }
.email-body { flex: 1; overflow-y: auto; background: #2c2c2e; }
.email-header-brand {
  background: #2c2c2e;
  padding: 16px 20px;
  display: flex; align-items: center; justify-content: flex-start;
  border-bottom: 4px solid var(--color-emirates-red);
}
.email-header-brand img { height: 28px; }
.email-content { padding: 22px 20px 28px; font-size: 13.5px; line-height: 1.55; color: #d1d1d6; background: #2c2c2e; font-family: var(--font-sf); }
.email-content p { margin-bottom: 12px; }
.email-content a { color: #5e9aff; text-decoration: underline; }
.email-headline { font-size: 19px; font-weight: 600; color: #fff; margin-bottom: 14px; letter-spacing: -0.01em; }
.email-pnr-line { font-size: 12px; color: #fff; font-weight: 600; text-align: right; margin-bottom: 16px; }
.email-pnr-line strong { font-family: var(--font-mono); font-weight: 600; }
.email-greeting { color: #d1d1d6; font-size: 13.5px; }
.email-soft { color: #aeaeb2; font-size: 13px; line-height: 1.55; }
.email-h3 { font-size: 14px; font-weight: 600; color: #fff; margin-top: 18px; margin-bottom: 10px; text-decoration: underline; }
.email-bullet-head { font-size: 13.5px; font-weight: 600; color: #fff; margin-top: 10px; margin-bottom: 8px; }
.email-bullets { list-style: none; padding-left: 0; margin-bottom: 14px; }
.email-bullets li { padding-left: 12px; position: relative; font-size: 13px; color: #c7c7cc; line-height: 1.55; margin-bottom: 8px; }
.email-bullets li::before { content: '•'; position: absolute; left: 0; color: #c7c7cc; }
.email-flight-table {
  background: #1c1c1e; border: 1px solid #3a3a3c; border-radius: 4px;
  margin: 14px 0 18px; overflow: hidden;
}
.email-flight-table .ft-head { padding: 8px 12px; background: #1c1c1e; color: #fff; font-size: 12px; font-weight: 600; border-bottom: 1px solid #3a3a3c; }
.email-flight-table .ft-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.email-flight-table .ft-h { background: #2c2c2e; color: #fff; font-size: 11px; font-weight: 600; padding: 8px 10px; border-bottom: 1px solid #3a3a3c; border-right: 1px solid #3a3a3c; }
.email-flight-table .ft-h:nth-child(3n) { border-right: none; }
.email-flight-table .ft-c { background: #1c1c1e; color: #d1d1d6; font-size: 11.5px; padding: 10px; border-bottom: 1px solid #3a3a3c; border-right: 1px solid #3a3a3c; line-height: 1.4; }
.email-flight-table .ft-c:nth-child(3n) { border-right: none; }
.email-flight-table .ft-c:nth-last-child(-n+3) { border-bottom: none; }
.email-cta-block {
  background: linear-gradient(135deg, #1f3a2d 0%, #14241c 100%);
  border: 1px solid rgba(43, 182, 115, 0.25);
  border-radius: 12px; padding: 18px; margin: 24px 0 8px;
}
.email-cta-block .cta-intro { margin-bottom: 14px; }
.email-cta-block .cta-intro-title { font-size: 14px; font-weight: 600; color: #fff; margin-bottom: 4px; }
.email-cta-block .cta-intro-sub { font-size: 12.5px; color: #aeaeb2; line-height: 1.5; }
.btn-wa {
  width: 100%; padding: 14px; background: var(--color-wa-green); color: white;
  border: none; border-radius: 10px; font-family: var(--font-emirates);
  font-weight: 600; font-size: 15px; display: flex; align-items: center; justify-content: center; gap: 10px;
  cursor: pointer; box-shadow: 0 2px 8px rgba(37,211,102,0.25);
  position: relative;
}
.btn-wa:hover { background: #1FBA59; }
.btn-wa-tooltip {
  position: absolute; top: -36px; left: 50%; transform: translateX(-50%);
  background: #1a1a1a; color: white; padding: 6px 10px; border-radius: 6px;
  font-size: 11px; white-space: nowrap; opacity: 0; pointer-events: none; transition: 200ms;
}
.btn-wa:hover .btn-wa-tooltip { opacity: 1; }
.btn-call-em {
  width: 100%; padding: 14px; background: var(--color-emirates-red); color: white;
  border: none; border-radius: 10px; font-family: var(--font-emirates);
  font-weight: 600; font-size: 15px; display: flex; align-items: center; justify-content: center; gap: 10px;
  cursor: pointer; margin-top: 10px;
}
.btn-link { display: block; text-align: center; color: #1B6EA8; font-size: 14px; margin-top: 12px; text-decoration: none; }
.email-footer { font-size: 12px; color: #888; line-height: 1.5; padding-top: 14px; border-top: 1px solid #eee; margin-top: 14px; }
.email-footer a { color: #1B6EA8; }

/* Emirates app */
.em-app { background: #fff; height: 100%; display: flex; flex-direction: column; padding-top: 54px; font-family: var(--font-emirates); }
.em-app-header {
  background: var(--color-emirates-red); color: white; padding: 14px 20px;
  display: flex; align-items: center; justify-content: space-between; flex-shrink: 0;
}
.em-app-header .back { font-size: 22px; cursor: pointer; }
.em-app-header .em-mark { display: flex; flex-direction: column; align-items: center; }
.em-app-header .em-mark .latin { font-family: "Times New Roman", serif; font-weight: 700; font-size: 15px; letter-spacing: 0.28em; }
.em-app-header .em-mark .arabic { font-size: 11px; opacity: 0.95; margin-bottom: 1px; }
.em-app-header .icon { width: 24px; }
.em-app-body { flex: 1; overflow-y: auto; background: #f8f8f8; padding: 20px 16px 100px; }
.em-page-title { font-size: 24px; font-weight: 700; color: #1a1a1a; margin-bottom: 4px; letter-spacing: -0.01em; }
.em-page-sub { font-size: 13px; color: #666; margin-bottom: 20px; font-family: var(--font-mono); }
.em-booking-card {
  background: white; border-radius: 16px; padding: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06); margin-bottom: 16px;
  border: 1px solid #f0f0f0;
}
.badge {
  display: inline-flex; align-items: center; padding: 4px 10px;
  border-radius: 9999px; font-size: 10px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.badge-cancelled { background: #FCE8E9; color: #D71921; }
.badge-confirmed { background: #E5F6EE; color: #22A06B; }
.flight-ribbon {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px;
  align-items: center; margin: 16px 0;
}
.flight-ribbon .col { text-align: center; }
.flight-ribbon .col.left { text-align: left; }
.flight-ribbon .col.right { text-align: right; }
.flight-ribbon .code { font-size: 28px; font-weight: 700; color: #1a1a1a; line-height: 1; letter-spacing: -0.02em; }
.flight-ribbon .time { font-size: 18px; font-weight: 600; color: #1a1a1a; margin-top: 4px; }
.flight-ribbon .date { font-size: 11px; color: #888; margin-top: 4px; text-transform: uppercase; letter-spacing: 0.06em; }
.flight-ribbon .center { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.flight-ribbon .center .line { width: 80px; height: 1px; background: #ddd; position: relative; }
.flight-ribbon .center .plane { color: var(--color-emirates-red); font-size: 18px; }
.flight-ribbon .center .duration { font-size: 10px; color: #888; }
.flight-ribbon.struck .code, .flight-ribbon.struck .time, .flight-ribbon.struck .date { text-decoration: line-through; color: #999; }
.flight-divider { border-top: 1px dashed #e5e5e5; margin: 16px 0; }
.booking-meta { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: #666; }
.booking-meta span { display: inline-flex; gap: 4px; }
.booking-meta strong { color: #1a1a1a; font-weight: 600; }
.boarding-link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 0; border-top: 1px solid #f0f0f0; margin-top: 14px;
  color: var(--color-emirates-red); font-weight: 500; font-size: 14px;
}
.changes-card {
  background: white; border-radius: 16px; padding: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06); border: 1px solid #f0f0f0;
}
.changes-card h3 { font-size: 16px; font-weight: 600; color: #1a1a1a; margin-bottom: 4px; }
.changes-card p { font-size: 13px; color: #666; line-height: 1.5; margin-bottom: 16px; }
.btn-full-wa {
  width: 100%; padding: 14px; background: var(--color-wa-green); color: white;
  border: none; border-radius: 10px; font-weight: 600; font-size: 15px;
  display: flex; align-items: center; justify-content: center; gap: 10px; cursor: pointer;
  margin-bottom: 10px; font-family: var(--font-emirates);
}
.btn-full-call {
  width: 100%; padding: 14px; background: var(--color-emirates-red); color: white;
  border: none; border-radius: 10px; font-weight: 600; font-size: 15px;
  display: flex; align-items: center; justify-content: center; gap: 10px; cursor: pointer;
  font-family: var(--font-emirates);
}
.em-tabbar {
  position: absolute; bottom: 0; left: 0; right: 0; height: 84px;
  background: white; border-top: 1px solid #e5e5e5;
  display: flex; padding-bottom: 24px;
}
.em-tabbar .tab { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 10px; color: #999; }
.em-tabbar .tab.active { color: var(--color-emirates-red); }
.em-tabbar .tab svg { width: 20px; height: 20px; }

/* App banner for screen 4 */
.em-banner {
  background: linear-gradient(135deg, #075E54 0%, #128C7E 100%);
  color: white; padding: 14px 16px; border-radius: 12px;
  margin-bottom: 16px; display: flex; gap: 12px; align-items: flex-start;
  box-shadow: 0 4px 12px rgba(7,94,84,0.25);
}
.em-banner .wa-icon { width: 32px; height: 32px; background: rgba(255,255,255,0.2); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 16px; }
.em-banner .text { font-size: 13px; line-height: 1.4; }
.em-banner .text strong { display: block; margin-bottom: 2px; font-size: 14px; }
.call-cta-card {
  background: white; border-radius: 16px; padding: 28px 20px;
  text-align: center; box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  border: 1px solid #f0f0f0; margin-top: 8px;
}
.call-aria-btn {
  width: 220px; height: 220px; border-radius: 50%; background: var(--color-emirates-red);
  color: white; border: none; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; margin: 8px auto 16px;
  box-shadow: 0 8px 32px rgba(215,25,33,0.4);
  font-family: var(--font-emirates);
  position: relative;
}
.call-aria-btn::before {
  content: ''; position: absolute; inset: -8px; border-radius: 50%;
  border: 2px solid var(--color-emirates-red); opacity: 0.4;
  animation: pulse-ring 2s infinite;
}
.call-aria-btn::after {
  content: ''; position: absolute; inset: -16px; border-radius: 50%;
  border: 2px solid var(--color-emirates-red); opacity: 0.2;
  animation: pulse-ring 2s infinite 0.5s;
}
@keyframes pulse-ring {
  0% { transform: scale(0.95); opacity: 0.5; }
  100% { transform: scale(1.15); opacity: 0; }
}
.call-aria-btn .phone-icon { font-size: 56px; }
.call-aria-btn .label { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.call-aria-btn .sub { font-size: 12px; opacity: 0.9; font-weight: 400; }
.call-cta-card .meta { font-size: 12px; color: #888; }
.call-cta-card .meta strong { color: #1a1a1a; }

/* WhatsApp web */
.wa-web {
  width: 1280px; height: 760px;
  background: var(--color-wa-bg);
  display: grid; grid-template-columns: 360px 1fr;
  border-radius: 12px; overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.7);
  font-family: var(--font-wa);
}
.wa-sidebar { background: var(--color-wa-panel); border-right: 1px solid rgba(255,255,255,0.06); display: flex; flex-direction: column; }
.wa-sidebar-head {
  padding: 14px 16px; display: flex; justify-content: space-between; align-items: center;
  background: var(--color-wa-header);
}
.wa-sidebar-head .me { display: flex; gap: 10px; align-items: center; color: #e9edef; }
.wa-avatar-sm { width: 32px; height: 32px; border-radius: 50%; background: #4a5b66; }
.wa-tools { display: flex; gap: 18px; color: #aebac1; font-size: 18px; }
.wa-search {
  padding: 8px 12px; background: var(--color-wa-panel);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.wa-search input {
  width: 100%; background: #202c33; border: none; color: #d1d7db;
  padding: 8px 14px 8px 50px; border-radius: 8px; font-size: 13px;
  font-family: inherit;
}
.wa-search { position: relative; }
.wa-search::before { content: '🔍'; position: absolute; left: 24px; top: 50%; transform: translateY(-50%); font-size: 12px; opacity: 0.6; }
.wa-chats { flex: 1; overflow-y: auto; }
.wa-chat-item {
  display: flex; gap: 12px; padding: 12px 16px; cursor: pointer;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  background: rgba(255,255,255,0.02);
}
.wa-chat-item.active { background: #2a3942; }
.wa-chat-item .avatar {
  width: 48px; height: 48px; border-radius: 50%; background: white;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; padding: 4px;
}
.wa-chat-item .avatar img { width: 100%; height: 100%; object-fit: contain; }
.wa-chat-item .info { flex: 1; min-width: 0; }
.wa-chat-item .name-row { display: flex; justify-content: space-between; align-items: center; }
.wa-chat-item .name { color: #e9edef; font-size: 15px; font-weight: 500; display: flex; align-items: center; gap: 4px; }
.wa-chat-item .verified { color: var(--color-wa-green); font-size: 14px; }
.wa-chat-item .time { color: #aebac1; font-size: 11px; }
.wa-chat-item .preview { color: #aebac1; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }

.wa-main { display: flex; flex-direction: column; background: #0b141a; }
.wa-main-head {
  padding: 10px 16px; background: var(--color-wa-header);
  display: flex; align-items: center; gap: 12px; border-bottom: 1px solid rgba(0,0,0,0.3);
}
.wa-main-head .avatar { width: 40px; height: 40px; border-radius: 50%; background: white; padding: 3px; display: flex; align-items: center; justify-content: center; }
.wa-main-head .avatar img { width: 100%; height: 100%; object-fit: contain; }
.wa-main-head .info { flex: 1; }
.wa-main-head .name { color: #e9edef; font-size: 16px; font-weight: 500; display: flex; align-items: center; gap: 6px; }
.wa-main-head .verified { color: var(--color-wa-green); font-size: 14px; }
.wa-main-head .status { color: #aebac1; font-size: 12px; display: flex; align-items: center; gap: 4px; margin-top: 2px; }
.wa-main-head .status .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--color-wa-green); }
.wa-conversation {
  flex: 1; overflow-y: auto; padding: 16px 8%;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='60' height='60'><circle cx='30' cy='30' r='1' fill='%23182229' opacity='0.3'/></svg>");
  background-color: #0b141a;
  display: flex; flex-direction: column; gap: 6px;
  scroll-behavior: smooth;
}
.wa-day-marker { align-self: center; background: #182229; color: #aebac1; font-size: 11px; padding: 6px 12px; border-radius: 8px; margin: 8px 0; box-shadow: 0 1px 0 rgba(0,0,0,0.13); }
.wa-bubble {
  max-width: 65%; padding: 7px 10px 8px; border-radius: 8px; position: relative;
  font-size: 14.2px; line-height: 1.4; color: #e9edef; word-wrap: break-word;
  animation: wa-bubble-in 220ms var(--ease-decelerate);
}
@keyframes wa-bubble-in {
  from { opacity: 0; transform: scale(0.95) translateY(4px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.wa-bubble.received { align-self: flex-start; background: var(--color-wa-bubble-recv); border-top-left-radius: 0; }
.wa-bubble.sent { align-self: flex-end; background: var(--color-wa-bubble-sent); border-top-right-radius: 0; }
.wa-bubble .meta { font-size: 11px; color: #aebac1; text-align: right; margin-top: 2px; display: flex; gap: 4px; align-items: center; justify-content: flex-end; }
.wa-bubble.sent .meta { color: #aebac1; }
.wa-bubble .meta .ticks { color: #53bdeb; }
.wa-typing { align-self: flex-start; padding: 12px 14px; background: var(--color-wa-bubble-recv); border-radius: 8px; border-top-left-radius: 0; display: flex; gap: 4px; }
.wa-typing span { width: 6px; height: 6px; border-radius: 50%; background: #aebac1; animation: typing-dot 1.2s infinite; }
.wa-typing span:nth-child(2) { animation-delay: 0.2s; }
.wa-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing-dot {
  0%, 60%, 100% { opacity: 0.3; }
  30% { opacity: 1; }
}
.wa-system { align-self: center; color: #8696a0; font-size: 12px; font-style: italic; padding: 4px 12px; }

.wa-option-card {
  align-self: flex-start; background: #1f2c33; border-radius: 10px;
  padding: 14px; max-width: 70%; min-width: 320px;
  border: 1px solid rgba(255,255,255,0.05);
  animation: wa-bubble-in 300ms var(--ease-decelerate);
}
.wa-option-card .opt-header { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,0.06); }
.wa-option-card .opt-tag { font-size: 10px; padding: 3px 8px; border-radius: 4px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.wa-option-card .opt-tag.starred { background: var(--color-emirates-red); color: white; }
.wa-option-card .opt-tag.alt { background: #2a3942; color: #aebac1; }
.wa-option-card .opt-title { color: #e9edef; font-weight: 500; font-size: 13px; }
.wa-option-card .opt-route { color: white; font-size: 18px; font-weight: 600; margin-bottom: 6px; }
.wa-option-card .opt-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 13px; color: #d1d7db; }
.wa-option-card .opt-row .lbl { color: #8696a0; font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; }
.wa-option-card .opt-row .val { color: #e9edef; font-weight: 500; }
.wa-option-card .opt-row .warn { color: var(--color-warning); font-size: 11px; }

.wa-input-bar {
  background: var(--color-wa-header); padding: 10px 16px;
  display: flex; align-items: center; gap: 12px;
}
.wa-input-bar .actions { color: #8696a0; display: flex; gap: 16px; font-size: 22px; }
.wa-input-bar .input { flex: 1; background: #2a3942; border-radius: 8px; padding: 9px 14px; color: #8696a0; font-size: 14px; }

/* Voice call */
.voice-call {
  width: 100%; height: 100%; background: linear-gradient(180deg, #0a0a0a 0%, #1f1f1f 100%);
  color: white; display: flex; flex-direction: column; padding-top: 60px;
  font-family: var(--font-sf);
}
.voice-call .top-info { text-align: center; padding: 12px 24px; }
.voice-call .top-info .label { font-size: 12px; color: rgba(255,255,255,0.6); letter-spacing: 0.08em; text-transform: uppercase; }
.voice-call .agent-block { text-align: center; padding: 20px; }
.voice-call .agent-avatar {
  width: 100px; height: 100px; border-radius: 50%; background: white;
  margin: 0 auto 16px; display: flex; align-items: center; justify-content: center;
  padding: 12px; box-shadow: 0 0 0 4px rgba(255,255,255,0.08), 0 8px 24px rgba(0,0,0,0.4);
  position: relative;
}
.voice-call .agent-avatar::before {
  content: ''; position: absolute; inset: -10px; border-radius: 50%;
  border: 1.5px solid rgba(215,25,33,0.4); animation: voice-pulse 2.5s infinite;
}
@keyframes voice-pulse {
  0% { transform: scale(0.95); opacity: 0.6; }
  100% { transform: scale(1.15); opacity: 0; }
}
.voice-call .agent-avatar img { width: 100%; height: 100%; object-fit: contain; }
.voice-call .agent-name { font-size: 22px; font-weight: 600; }
.voice-call .agent-role { font-size: 13px; color: rgba(255,255,255,0.6); margin-top: 2px; }
.voice-call .call-status { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 14px; font-size: 14px; color: rgba(255,255,255,0.85); }
.voice-call .call-status .rec-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--color-emirates-red); animation: blink 1.4s infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.voice-call .timer { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.voice-transcript {
  flex: 1; overflow-y: auto; padding: 16px 22px 0;
  display: flex; flex-direction: column; gap: 12px;
  mask-image: linear-gradient(180deg, transparent 0, black 30px, black calc(100% - 30px), transparent 100%);
}
.voice-line { animation: voice-line-in 350ms var(--ease-decelerate); }
@keyframes voice-line-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.voice-line .lbl { font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.5); margin-bottom: 4px; display: flex; gap: 8px; align-items: center; }
.voice-line .lbl .ts { font-family: var(--font-mono); }
.voice-line .text { font-size: 14px; line-height: 1.5; color: rgba(255,255,255,0.92); }
.voice-line.aria { padding-right: 24px; }
.voice-line.sarah { padding-left: 24px; text-align: right; }
.voice-line.sarah .lbl { justify-content: flex-end; color: #FF6B6B; }
.voice-line.sarah .text { color: #FFCDCD; }
.voice-handoff-banner {
  margin: 12px 22px 0; padding: 12px 16px; border-radius: 12px;
  background: linear-gradient(90deg, rgba(215,25,33,0.2), rgba(215,25,33,0.08));
  border: 1px solid rgba(215,25,33,0.4);
  text-align: center; font-size: 13px;
  animation: handoff-pulse 1.8s infinite;
}
@keyframes handoff-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(215,25,33,0); }
  50% { box-shadow: 0 0 24px 0 rgba(215,25,33,0.3); }
}
.voice-controls {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  padding: 16px 32px 28px;
}
.voice-controls .ctrl {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  font-size: 11px; color: rgba(255,255,255,0.7);
}
.voice-controls .ctrl .circle {
  width: 60px; height: 60px; border-radius: 50%; background: rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.voice-controls .ctrl.end .circle { background: var(--color-emirates-red); }

/* CC Assistant — desktop browser frame */
.cca-window {
  width: 1480px !important; height: 940px !important;
  max-width: 1480px; max-height: 940px;
  background: var(--color-copilot-bg);
  color: var(--color-copilot-text-primary);
  display: flex; flex-direction: column;
  border-radius: 12px; overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.7);
  font-family: var(--font-emirates);
  position: relative;
}
.cca-titlebar {
  height: 36px; flex-shrink: 0;
  background: linear-gradient(180deg, #2a2f37, #1f242b);
  border-bottom: 1px solid #0a0d11;
  display: flex; align-items: center; padding: 0 12px; gap: 10px;
}
.cca-traffic { display: flex; gap: 8px; padding-right: 8px; }
.cca-traffic .dot { width: 12px; height: 12px; border-radius: 50%; }
.cca-traffic .dot.red { background: #FF5F57; }
.cca-traffic .dot.yellow { background: #FEBC2E; }
.cca-traffic .dot.green { background: #28C840; }
.cca-tabs { display: flex; gap: 2px; align-items: flex-end; height: 100%; padding-top: 6px; flex: 1; white-space: nowrap; overflow: hidden; flex-wrap: nowrap; min-width: 0; }
.cca-tab {
  height: 28px; padding: 0 14px; padding-right: 8px; flex-shrink: 0; white-space: nowrap;
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--color-copilot-text-secondary);
  background: transparent;
  border-radius: 8px 8px 0 0; max-width: 280px;
}
.cca-tab.active {
  background: var(--color-copilot-bg);
  color: var(--color-copilot-text-primary);
  border: 1px solid var(--color-copilot-border); border-bottom: none;
}
.cca-tab .x { color: var(--color-copilot-text-secondary); margin-left: 4px; font-size: 14px; padding: 0 4px; }
.cca-tab-add { color: var(--color-copilot-text-secondary); padding: 4px 10px; font-size: 14px; }
.cca-urlbar {
  height: 38px; flex-shrink: 0;
  background: var(--color-copilot-bg);
  border-bottom: 1px solid var(--color-copilot-border);
  display: flex; align-items: center; padding: 0 14px; gap: 12px;
}
.cca-urlbar .nav-arrows { display: flex; gap: 8px; color: var(--color-copilot-text-secondary); }
.cca-urlbar .url-input {
  flex: 1; height: 28px;
  background: #1A2028; border: 1px solid var(--color-copilot-border);
  border-radius: 6px; display: flex; align-items: center; gap: 6px;
  padding: 0 12px; font-size: 12px; color: var(--color-copilot-text-primary);
  font-family: var(--font-mono);
}
.cca-urlbar .url-actions { color: var(--color-copilot-text-secondary); }

/* Phase narrator */
.cca-phase-bar {
  flex-shrink: 0; padding: 10px 24px;
  background: linear-gradient(90deg, rgba(215,25,33,0.04), transparent);
  border-bottom: 1px solid var(--color-copilot-border);
}
.phase-track { display: flex; align-items: center; gap: 12px; height: 32px; }
.phase-step { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--color-copilot-text-secondary); flex: 1; min-width: 0; }
.phase-step .lbl { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; min-width: 0; }
.phase-step .bullet {
  width: 18px; height: 18px; border-radius: 50%;
  background: rgba(255,255,255,0.05); border: 1px solid var(--color-copilot-border);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; flex-shrink: 0; transition: 300ms;
}
.phase-step.active .bullet { background: var(--color-emirates-red); border-color: var(--color-emirates-red); color: white; box-shadow: 0 0 0 4px rgba(215,25,33,0.2); }
.phase-step.done .bullet { background: var(--color-success); border-color: var(--color-success); color: white; }
.phase-step.active .lbl { color: var(--color-copilot-text-primary); font-weight: 500; }
.phase-step.done .lbl { color: var(--color-copilot-text-secondary); }

/* Column focus animation */
.copilot-col.col-focus {
  background: linear-gradient(180deg, rgba(215,25,33,0.04), transparent 200px);
  box-shadow: inset 0 2px 0 var(--color-emirates-red);
  transition: 400ms;
}

/* Reading scan highlight */
.tx-turn.highlighted { background: rgba(215,25,33,0.06); border-left: 2px solid var(--color-emirates-red); padding-left: 10px; margin-left: -12px; transition: 200ms; }

/* Pre-fade / fade-in */
.pre-fade { opacity: 0; transform: translateY(8px); }
.fade-in { animation: fade-up 500ms var(--ease-decelerate) forwards; }
.fade-d2 { animation-delay: 200ms; opacity: 0; }
.fade-d3 { animation-delay: 400ms; opacity: 0; }
@keyframes fade-up {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Action checklist on the rec card */
.action-checklist {
  background: rgba(0,0,0,0.25); border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px; padding: 12px; margin-bottom: 14px;
}
.checklist-title { font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-copilot-text-secondary); margin-bottom: 10px; font-weight: 600; }
.action-item { display: flex; gap: 10px; padding: 6px 0; align-items: center; transition: 300ms; }
.action-item .action-bullet {
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: 300ms; color: var(--color-copilot-text-secondary);
}
.action-item .action-bullet .num { font-size: 10px; font-weight: 600; }
.action-item.done .action-bullet { background: var(--color-success); border-color: var(--color-success); color: white; animation: bullet-pop 300ms var(--ease-overshoot); }
@keyframes bullet-pop {
  0% { transform: scale(0.5); }
  60% { transform: scale(1.2); }
  100% { transform: scale(1); }
}
.action-item .action-info { flex: 1; }
.action-item .action-info .head { font-size: 13px; color: var(--color-copilot-text-primary); }
.action-item .action-info .meta { font-size: 10px; color: var(--color-copilot-text-secondary); font-family: var(--font-mono); margin-top: 1px; }
.action-item.done .action-info .head { color: #6EE7B7; }

.btn-confirm.ready { animation: btn-pulse 2s infinite; }
.btn-confirm:not(.ready):not(.confirmed) { animation: none; opacity: 0.6; cursor: not-allowed; }
.btn-confirm[disabled] { cursor: not-allowed; }
.btn-spinner { display: inline-block; width: 12px; height: 12px; border: 2px solid rgba(255,255,255,0.3); border-top-color: white; border-radius: 50%; animation: spin 700ms linear infinite; vertical-align: middle; margin-right: 6px; }

.resolution-stats { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 18px; margin-top: 28px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.08); }
.resolution-stats > div { text-align: center; }
.resolution-stats .big { font-size: 32px; font-weight: 700; color: var(--color-emirates-red); letter-spacing: -0.02em; }
.resolution-stats .small { font-size: 11px; color: var(--color-copilot-text-secondary); margin-top: 4px; text-transform: uppercase; letter-spacing: 0.06em; }

/* Old copilot wrapper kept for back-compat */
.copilot {
  width: 1440px; height: 900px;
  background: var(--color-copilot-bg);
  color: var(--color-copilot-text-primary);
  display: flex; flex-direction: column;
  border-radius: 12px; overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.7);
  font-family: var(--font-emirates);
  position: relative;
}
.copilot-header {
  height: 56px; padding: 0 20px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: space-between;
  background: #0a1014; border-bottom: 1px solid var(--color-copilot-border);
}
.copilot-header .brand { display: flex; align-items: center; gap: 12px; }
.copilot-header .brand img { height: 28px; }
.copilot-header .brand .divider { width: 1px; height: 20px; background: var(--color-copilot-border); }
.copilot-header .brand .title { font-size: 14px; color: var(--color-copilot-text-primary); font-weight: 600; letter-spacing: 0.01em; display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.copilot-header .brand .title .sub { display: inline-block; font-size: 11px; color: var(--color-copilot-text-secondary); font-weight: 400; padding: 2px 8px; background: rgba(255,255,255,0.05); border-radius: 4px; letter-spacing: 0.06em; text-transform: uppercase; margin-left: 6px; }
.copilot-header .status-pill {
  display: flex; align-items: center; gap: 8px;
  background: rgba(34,160,107,0.12); border: 1px solid rgba(34,160,107,0.3);
  padding: 6px 14px; border-radius: 999px; font-size: 13px;
}
.copilot-header .status-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--color-success); animation: blink 2s infinite; }
.copilot-header .status-pill .timer { font-family: var(--font-mono); color: var(--color-copilot-text-secondary); margin-left: 4px; }
.copilot-header .rep { display: flex; align-items: center; gap: 10px; }
.copilot-header .rep .avatar { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, #3a4451, #2a3441); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; }
.copilot-header .rep .info { font-size: 12px; }
.copilot-header .rep .info .name { color: var(--color-copilot-text-primary); font-weight: 500; }
.copilot-header .rep .info .status-text { color: var(--color-success); font-size: 11px; }
.copilot-header .bell { color: var(--color-copilot-text-secondary); font-size: 16px; margin-left: 8px; cursor: pointer; }

.copilot-body {
  flex: 1; display: grid; grid-template-columns: 35% 40% 25%;
  min-height: 0;
}
.copilot-col { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--color-copilot-border); }
.copilot-col:last-child { border-right: none; }
.col-header { padding: 14px 18px; font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--color-copilot-text-secondary); border-bottom: 1px solid var(--color-copilot-border); display: flex; justify-content: space-between; align-items: center; }
.col-header .live-tag { display: inline-flex; align-items: center; gap: 6px; color: var(--color-success); font-size: 11px; }
.col-header .live-tag .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--color-success); animation: blink 1.2s infinite; }

/* Transcript */
.transcript { flex: 1; overflow-y: auto; padding: 16px 18px; display: flex; flex-direction: column; gap: 14px; }
.tx-turn { animation: voice-line-in 320ms var(--ease-decelerate); }
.tx-turn .head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; font-size: 11px; }
.tx-turn .head .badge-sm { padding: 2px 8px; border-radius: 4px; font-size: 10px; font-weight: 600; letter-spacing: 0.04em; }
.tx-turn.aria .head .badge-sm { background: rgba(167,114,255,0.15); color: #C5A8FF; }
.tx-turn.pax .head .badge-sm { background: rgba(215,25,33,0.15); color: #FF8A8F; }
.tx-turn .head .ts { font-family: var(--font-mono); color: var(--color-copilot-text-secondary); font-size: 11px; }
.tx-turn .head .sentiment { margin-left: auto; width: 8px; height: 8px; border-radius: 50%; }
.tx-turn .head .sentiment.pos { background: var(--color-success); }
.tx-turn .head .sentiment.neu { background: #94A3B8; }
.tx-turn .head .sentiment.neg { background: #F87171; }
.tx-turn .text { font-size: 13.5px; line-height: 1.5; color: var(--color-copilot-text-primary); }
.tx-turn.system .text { color: #94A3B8; font-style: italic; font-size: 12.5px; }
.tx-turn .typing-cursor { display: inline-block; width: 1px; height: 13px; background: var(--color-copilot-text-primary); margin-left: 2px; vertical-align: middle; animation: blink 1s infinite; }

.handoff-pill {
  align-self: center; margin: 8px 0;
  padding: 8px 14px; background: rgba(215,25,33,0.12);
  border: 1px solid rgba(215,25,33,0.4); border-radius: 999px;
  font-size: 12px; color: #FFB0B4; display: flex; gap: 8px; align-items: center;
  animation: handoff-pulse 2s infinite;
}

/* Center column */
.center-col { padding: 16px 18px; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; }
.cp-card {
  background: var(--color-copilot-card);
  border: 1px solid var(--color-copilot-border);
  border-radius: 12px; padding: 16px;
}
.cp-card.elevated {
  background: var(--color-copilot-card-elevated);
  border: 1px solid rgba(215,25,33,0.3);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3), 0 0 0 1px rgba(215,25,33,0.1);
}
.cp-card-title { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-copilot-text-secondary); margin-bottom: 12px; }
.profile-row { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.profile-row .avatar-lg { width: 52px; height: 52px; border-radius: 50%; background: linear-gradient(135deg, #5C7488, #3a4451); display: flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0; font-size: 18px; font-weight: 600; color: white; flex-shrink: 0; overflow: hidden; }
.profile-row .avatar-lg img { width: 100%; height: 100%; object-fit: cover; }
.copilot-header .rep .avatar { overflow: hidden; }
.copilot-header .rep .avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-row .name { font-size: 18px; font-weight: 600; }
.profile-row .tier { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; padding: 3px 10px; border-radius: 999px; background: linear-gradient(135deg, #C0C7D0, #A8AEB5); color: #1a1a1a; font-size: 11px; font-weight: 600; letter-spacing: 0.04em; }
.profile-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.profile-stat { background: rgba(255,255,255,0.03); border-radius: 8px; padding: 10px 12px; }
.profile-stat .lbl { font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--color-copilot-text-secondary); margin-bottom: 4px; }
.profile-stat .val { font-size: 14px; font-weight: 600; color: var(--color-copilot-text-primary); }
.sentiment-trend { display: flex; gap: 4px; align-items: center; }
.sentiment-trend .seg { width: 24px; height: 6px; border-radius: 2px; }
.sentiment-trend .seg.pos { background: var(--color-success); }
.sentiment-trend .seg.neu { background: #94A3B8; }
.profile-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.profile-tag { font-size: 11px; padding: 4px 8px; border-radius: 4px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06); color: var(--color-copilot-text-secondary); }

.booking-ribbon-cp {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center;
  padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.05); margin-bottom: 12px;
}
.booking-ribbon-cp .col { text-align: center; }
.booking-ribbon-cp .code { font-size: 22px; font-weight: 700; color: var(--color-copilot-text-primary); letter-spacing: -0.02em; }
.booking-ribbon-cp .time { font-size: 14px; color: var(--color-copilot-text-secondary); margin-top: 2px; }
.booking-ribbon-cp .center-icon { color: #FF8A8F; font-size: 18px; }
.booking-ribbon-cp.struck .code, .booking-ribbon-cp.struck .time { text-decoration: line-through; opacity: 0.6; }
.booking-meta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; font-size: 12px; }
.booking-meta-grid .item { display: flex; justify-content: space-between; padding: 6px 0; }
.booking-meta-grid .item .lbl { color: var(--color-copilot-text-secondary); }
.booking-meta-grid .item .val { color: var(--color-copilot-text-primary); font-weight: 500; }

.journey-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 4px 0; }
.journey-node {
  display: flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06);
  border-radius: 999px; padding: 6px 12px; font-size: 12px; cursor: pointer;
  transition: 200ms;
}
.journey-node:hover { background: rgba(255,255,255,0.06); }
.journey-node.active { border-color: rgba(215,25,33,0.4); background: rgba(215,25,33,0.08); }
.journey-node .ts { color: var(--color-copilot-text-secondary); font-family: var(--font-mono); font-size: 11px; }
.journey-arrow { color: var(--color-copilot-text-secondary); font-size: 13px; }
.journey-total { font-size: 12px; color: var(--color-copilot-text-secondary); margin-top: 8px; }
.journey-total strong { color: var(--color-copilot-text-primary); }

/* Right column */
.right-col { padding: 16px 18px; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; }
.rec-card {
  position: relative;
  background: var(--color-copilot-card-elevated);
  border-radius: 12px; padding: 18px;
  border: 1px solid rgba(215,25,33,0.3);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  overflow: hidden;
}
.rec-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-emirates-red), transparent);
  animation: shimmer 3s infinite;
}
@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
.rec-card .rec-label {
  display: flex; align-items: center; gap: 6px;
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--color-emirates-red); font-weight: 700; margin-bottom: 10px;
}
.rec-card .rec-action { font-size: 18px; font-weight: 700; margin-bottom: 4px; letter-spacing: -0.01em; }
.rec-card .rec-route { font-size: 13px; color: var(--color-copilot-text-secondary); margin-bottom: 4px; }
.rec-card .rec-tags { font-size: 12px; color: #C9A96E; margin-bottom: 14px; }
.rec-card .rec-why { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-copilot-text-secondary); margin-bottom: 8px; }
.rec-card ul { list-style: none; font-size: 13px; line-height: 1.6; color: var(--color-copilot-text-primary); margin-bottom: 16px; }
.rec-card ul li { padding-left: 16px; position: relative; }
.rec-card ul li::before { content: '•'; position: absolute; left: 4px; color: var(--color-emirates-red); }
.rec-actions { display: flex; flex-direction: column; gap: 8px; }
.btn-confirm {
  width: 100%; padding: 14px; background: var(--color-emirates-red); color: white;
  border: none; border-radius: 10px; font-weight: 600; font-size: 14px; cursor: pointer;
  font-family: var(--font-emirates); position: relative; overflow: hidden;
  animation: btn-pulse 3s infinite;
}
.btn-confirm:hover { background: var(--color-emirates-red-hover); }
@keyframes btn-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(215,25,33,0.4); }
  50% { box-shadow: 0 0 0 6px rgba(215,25,33,0); }
}
.btn-confirm.confirmed { animation: none; background: var(--color-success); }
.btn-ghost {
  flex: 1; padding: 10px; background: transparent; color: var(--color-copilot-text-secondary);
  border: 1px solid var(--color-copilot-border); border-radius: 8px; font-size: 12px; cursor: pointer;
  font-family: var(--font-emirates);
}
.btn-ghost:hover { background: rgba(255,255,255,0.04); color: var(--color-copilot-text-primary); }
.rec-actions .ghost-row { display: flex; gap: 8px; }

.summary-text { font-size: 13px; line-height: 1.6; color: var(--color-copilot-text-primary); margin-bottom: 12px; }
.summary-meta { display: flex; justify-content: space-between; font-size: 11px; color: var(--color-copilot-text-secondary); padding-top: 10px; border-top: 1px solid rgba(255,255,255,0.05); }
.confidence { color: #FFD27A; }

.suggestions li { list-style: none; padding: 12px; background: rgba(255,255,255,0.03); border-radius: 8px; margin-bottom: 8px; border: 1px solid rgba(255,255,255,0.04); }
.suggestions .head { font-size: 13px; color: var(--color-copilot-text-primary); margin-bottom: 4px; }
.suggestions .reason { font-size: 11px; color: var(--color-copilot-text-secondary); margin-bottom: 8px; }
.suggestions .add-btn { font-size: 11px; padding: 4px 10px; background: rgba(215,25,33,0.15); color: #FF8A8F; border: 1px solid rgba(215,25,33,0.3); border-radius: 4px; cursor: pointer; font-family: var(--font-emirates); }
.suggestions .add-btn.enabled { background: rgba(34,160,107,0.15); color: #6EE7B7; border-color: rgba(34,160,107,0.3); }

.copilot-footer {
  height: 32px; flex-shrink: 0;
  background: #0a1014; border-top: 1px solid var(--color-copilot-border);
  display: flex; align-items: center; padding: 0 20px; gap: 24px;
  font-size: 11px; color: var(--color-copilot-text-secondary); font-family: var(--font-mono);
}
.copilot-footer .item { display: flex; align-items: center; gap: 6px; }
.copilot-footer .rec-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--color-emirates-red); animation: blink 1.4s infinite; }

/* Toast */
.toast {
  position: absolute; top: 70px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, #0F2922, #143F32);
  border: 1px solid rgba(34,160,107,0.4);
  color: #6EE7B7;
  padding: 12px 20px; border-radius: 10px; z-index: 100;
  display: flex; align-items: center; gap: 10px;
  font-size: 13.5px; font-weight: 500;
  box-shadow: 0 16px 40px rgba(0,0,0,0.4);
  animation: toast-in 350ms var(--ease-overshoot);
}
@keyframes toast-in {
  from { opacity: 0; transform: translate(-50%, -20px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* Final overlay */
.copilot-final-overlay {
  position: absolute; inset: 0; z-index: 200;
  background: rgba(15,20,25,0.85); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  animation: overlay-in 600ms var(--ease-decelerate);
}
@keyframes overlay-in {
  from { opacity: 0; backdrop-filter: blur(0); }
  to { opacity: 1; backdrop-filter: blur(8px); }
}
.copilot-final-overlay .panel {
  background: linear-gradient(135deg, #1A2028, #242C36);
  border: 1px solid rgba(215,25,33,0.3);
  border-radius: 16px; padding: 48px 56px;
  text-align: center; max-width: 640px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
  animation: panel-in 500ms var(--ease-overshoot);
}
@keyframes panel-in {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}
.copilot-final-overlay .check {
  width: 64px; height: 64px; border-radius: 50%; background: var(--color-success);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 20px;
  font-size: 32px; color: white;
}
.copilot-final-overlay h2 { font-size: 30px; font-weight: 700; margin-bottom: 12px; letter-spacing: -0.02em; }
.copilot-final-overlay p { font-size: 16px; color: var(--color-copilot-text-secondary); line-height: 1.6; }

/* Confetti */
.confetti-piece { position: absolute; width: 8px; height: 12px; pointer-events: none; }

/* Closing screen */
.closing {
  width: 1440px; min-height: 820px; padding: 56px 64px;
  background: linear-gradient(135deg, #0F1419 0%, #1A2028 100%);
  color: #F5F5F5; border-radius: 12px;
  font-family: var(--font-emirates);
  position: relative; overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.7);
}
.closing::before {
  content: ''; position: absolute; top: -100px; right: -100px; width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(215,25,33,0.15), transparent 70%);
}
.closing-head { margin-bottom: 40px; position: relative; }
.closing-head .eyebrow { font-size: 11px; text-transform: uppercase; letter-spacing: 0.2em; color: var(--color-emirates-red); margin-bottom: 8px; font-weight: 600; }
.closing-head h1 { font-size: 36px; font-weight: 700; letter-spacing: -0.02em; }
.closing-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px; margin-bottom: 36px; }
.closing-col { background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.06); border-radius: 12px; padding: 24px; }
.closing-col h3 { font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--color-copilot-text-secondary); margin-bottom: 16px; font-weight: 600; }
.compare-block { margin-bottom: 20px; }
.compare-block .label { display: inline-block; font-size: 10px; padding: 3px 8px; border-radius: 4px; font-weight: 600; letter-spacing: 0.06em; margin-bottom: 10px; }
.compare-block .label.before { background: rgba(248,113,113,0.15); color: #F87171; }
.compare-block .label.after { background: rgba(34,160,107,0.15); color: #6EE7B7; }
.compare-block ul { list-style: none; font-size: 13px; line-height: 1.7; color: rgba(255,255,255,0.85); }
.compare-block ul li { padding-left: 22px; position: relative; }
.compare-block ul li::before { content: '›'; position: absolute; left: 6px; color: rgba(255,255,255,0.4); }
.compare-block .total { margin-top: 8px; padding-top: 8px; border-top: 1px solid rgba(255,255,255,0.06); font-size: 13px; color: white; font-weight: 600; }
.data-list { list-style: none; }
.data-list li { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.05); font-size: 13px; line-height: 1.5; }
.data-list li:last-child { border-bottom: none; }
.data-list .head { color: white; font-weight: 600; margin-bottom: 4px; display: flex; gap: 8px; align-items: center; }
.data-list .desc { color: rgba(255,255,255,0.6); font-size: 12px; }
.closing-foot {
  padding: 32px; text-align: center; background: rgba(215,25,33,0.06);
  border: 1px solid rgba(215,25,33,0.2); border-radius: 12px;
}
.closing-foot p { font-size: 22px; font-weight: 600; line-height: 1.5; letter-spacing: -0.01em; }
.closing-foot p strong { color: var(--color-emirates-red); }

/* Loading shimmer */
.loading-overlay {
  position: absolute; inset: 0; background: rgba(255,255,255,0.95);
  display: flex; align-items: center; justify-content: center;
  z-index: 50; flex-direction: column; gap: 16px;
  font-family: var(--font-sf); font-size: 14px; color: #1a1a1a;
}
.spinner { width: 28px; height: 28px; border: 2.5px solid #e5e5e5; border-top-color: var(--color-wa-green); border-radius: 50%; animation: spin 800ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.calling-overlay {
  position: absolute; inset: 0; background: rgba(0,0,0,0.92);
  display: flex; align-items: center; justify-content: center; flex-direction: column;
  color: white; z-index: 50; gap: 16px; font-family: var(--font-sf);
}
.calling-overlay .pulse-circle {
  width: 90px; height: 90px; border-radius: 50%; background: white; padding: 12px;
  position: relative;
}
.calling-overlay .pulse-circle::before {
  content: ''; position: absolute; inset: -10px; border-radius: 50%;
  border: 2px solid white; opacity: 0.5; animation: voice-pulse 1.4s infinite;
}
.calling-overlay .pulse-circle img { width: 100%; height: 100%; object-fit: contain; }
.calling-overlay .label { font-size: 18px; font-weight: 500; }
.calling-overlay .sub { font-size: 13px; opacity: 0.6; }
