*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg-primary: #050508;
  --bg-card: rgba(255, 255, 255, 0.03);
  --accent-cyan: #f4a61c;
  --accent-blue: #ffbf47;
  --accent-violet: #c81b41;
  --accent-gold: #f4a61c;
  --text-primary: #f7f2e8;
  --text-secondary: rgba(247, 242, 232, 0.65);
  --border-subtle: rgba(244, 166, 28, 0.12);
  --glow-cyan: rgba(244, 166, 28, 0.16);
  --red: #ef4444;
  --brand-ink: #3a342c;
  --glass: rgba(255, 255, 255, 0.025);
  --glass-border: rgba(255, 255, 255, 0.06);
  --chart-timeline: #38bdf8;
  --chart-product: #a78bfa;
  --chart-quality: #14b8a6;
}

html {
  direction: rtl;
}

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Noto Kufi Arabic', 'Space Grotesk', sans-serif;
  overflow-x: hidden;
  min-height: 100vh;
  width: 100vw;
}

/* === BACKGROUND EFFECTS === */
.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(244,166,28,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244,166,28,0.02) 1px, transparent 1px);
  background-size: 80px 80px;
  z-index: 0;
  animation: gridShift 20s linear infinite;
}

@keyframes gridShift {
  0% { transform: translate(0, 0); }
  100% { transform: translate(80px, 80px); }
}

.bg-glow {
  position: fixed;
  width: 900px;
  height: 900px;
  border-radius: 50%;
  filter: blur(180px);
  opacity: 0.25;
  z-index: 0;
  animation: glowDrift 14s ease-in-out infinite alternate;
}

.bg-glow.cyan {
  background: radial-gradient(circle, var(--accent-cyan), transparent 70%);
  top: -300px;
  right: -200px;
}

.bg-glow.violet {
  background: radial-gradient(circle, rgba(200, 27, 65, 0.85), transparent 70%);
  bottom: -350px;
  left: -200px;
  animation-delay: -7s;
}

.bg-glow.gold {
  background: radial-gradient(circle, rgba(255, 191, 71, 0.5), transparent 70%);
  top: 40%;
  left: 30%;
  width: 600px;
  height: 600px;
  opacity: 0.1;
  animation-delay: -3s;
  animation-duration: 18s;
}

@keyframes glowDrift {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-80px, 50px) scale(1.2); }
}

#particles {
  position: fixed;
  inset: 0;
  z-index: 0;
}

/* === LAYOUT === */
.container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
  padding: 36px 60px;
  gap: 16px;
}

/* === HEADER === */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  direction: ltr;
}

.header-right-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-dashboard {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(244, 166, 28, 0.06);
  border: 1px solid rgba(244, 166, 28, 0.16);
  border-radius: 100px;
  padding: 10px 20px;
  font-family: 'Noto Kufi Arabic', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-cyan);
  text-decoration: none;
  backdrop-filter: blur(12px);
  transition: all 0.2s ease;
  direction: rtl;
}
.btn-dashboard:hover {
  background: rgba(244, 166, 28, 0.12);
  border-color: rgba(244, 166, 28, 0.3);
}

.logo-area {
  display: flex;
  align-items: center;
}

.brand-logo {
  width: min(380px, 40vw);
  height: auto;
  flex-shrink: 0;
  display: block;
}

.live-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(244, 166, 28, 0.06);
  border: 1px solid rgba(244, 166, 28, 0.16);
  border-radius: 100px;
  padding: 10px 22px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 2px;
  backdrop-filter: blur(12px);
  animation: badgeGlow 3s ease-in-out infinite;
}

@keyframes badgeGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(244, 166, 28, 0); }
  50% { box-shadow: 0 0 20px rgba(244, 166, 28, 0.08); }
}

.badge-ar {
  font-family: 'Noto Kufi Arabic', sans-serif;
  font-size: 12px;
  letter-spacing: 0;
}

.badge-divider {
  opacity: 0.3;
}

.live-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-cyan);
  border-radius: 50%;
  animation: livePulse 2s ease-in-out infinite;
}

@keyframes livePulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(244, 166, 28, 0.4); }
  50% { opacity: 0.6; box-shadow: 0 0 0 10px rgba(244, 166, 28, 0); }
}

/* === HERO === */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 20px;
  direction: rtl;
}

.hero-overline {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 600;
  color: var(--accent-cyan);
  letter-spacing: 2px;
  text-transform: uppercase;
  animation: fadeSlideDown 1s ease-out;
}

.overline-icon {
  font-size: 8px;
  opacity: 0.5;
  animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.3); }
}

@keyframes fadeSlideDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-title {
  font-family: 'Noto Kufi Arabic', sans-serif;
  font-size: clamp(40px, 6vw, 80px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -1px;
  max-width: 900px;
  animation: fadeSlideUp 1s ease-out 0.2s both;
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue), #fff, var(--accent-violet));
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientFlow 4s ease-in-out infinite;
}

@keyframes gradientFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero-subtitle-ar {
  font-family: 'Noto Kufi Arabic', sans-serif;
  font-size: clamp(16px, 2.2vw, 22px);
  font-weight: 400;
  color: var(--text-secondary);
  direction: rtl;
  max-width: 800px;
  line-height: 1.9;
  animation: fadeSlideUp 1s ease-out 0.4s both;
}

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* === PHONE === */
.phone-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  animation: fadeSlideUp 1s ease-out 0.6s both;
}

.phone-ring {
  position: relative;
  padding: 28px 64px;
  border-radius: 28px;
  background: rgba(244, 166, 28, 0.04);
  border: 1px solid rgba(244, 166, 28, 0.15);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.phone-ring:hover {
  transform: scale(1.02);
  box-shadow: 0 0 60px rgba(244, 166, 28, 0.1);
}

.phone-ring::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 30px;
  padding: 2px;
  background: linear-gradient(135deg, var(--accent-cyan), transparent 40%, transparent 60%, var(--accent-violet));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: borderRotate 4s linear infinite;
}

@keyframes borderRotate {
  0% { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(360deg); }
}

.phone-ring::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 200%; height: 200%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, var(--glow-cyan) 0%, transparent 60%);
  animation: phonePulse 3s ease-in-out infinite;
}

@keyframes phonePulse {
  0%, 100% { opacity: 0.2; transform: translate(-50%, -50%) scale(0.8); }
  50% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
}

.phone-number {
  position: relative;
  z-index: 1;
  font-family: 'IBM Plex Mono', monospace;
  font-size: clamp(34px, 5.5vw, 72px);
  font-weight: 500;
  letter-spacing: 6px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 20px;
  direction: ltr;
}

.phone-icon {
  width: 42px;
  height: 42px;
  animation: phoneRing 2.5s ease-in-out infinite;
}

@keyframes phoneRing {
  0%, 100% { transform: rotate(0deg); }
  5% { transform: rotate(15deg); }
  10% { transform: rotate(-15deg); }
  15% { transform: rotate(10deg); }
  20% { transform: rotate(-10deg); }
  25% { transform: rotate(0deg); }
}

.phone-cta {
  font-family: 'Noto Kufi Arabic', sans-serif;
  font-size: 17px;
  font-weight: 600;
  color: var(--text-secondary);
  direction: rtl;
}

.phone-cta-en {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  color: rgba(247, 242, 232, 0.4);
  letter-spacing: 0.5px;
}

/* === DIRECT CONNECT === */
.direct-connect {
  width: 100%;
  max-width: 860px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 24px 28px;
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(244, 166, 28, 0.06), transparent 36%),
    radial-gradient(circle at bottom left, rgba(200, 27, 65, 0.07), transparent 42%),
    var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
  animation: fadeSlideUp 1s ease-out 0.8s both;
}

.direct-connect-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.direct-pulse {
  width: 8px;
  height: 8px;
  background: #4ade80;
  border-radius: 50%;
  animation: livePulse 2s ease-in-out infinite;
}

.direct-connect-label {
  font-size: 15px;
  color: var(--text-secondary);
  font-weight: 600;
}

.btn-speak {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 20px 40px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue), #ffd277);
  color: #221300;
  font-family: 'Noto Kufi Arabic', sans-serif;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 20px 50px rgba(244, 166, 28, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-speak::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transform: translateX(-100%);
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  50%, 100% { transform: translateX(100%); }
}

.btn-speak:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 24px 56px rgba(244, 166, 28, 0.32);
}

.btn-speak:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}

.btn-speak:disabled::before {
  animation: none;
}

.btn-speak-icon { flex-shrink: 0; }

.btn-speak-ar {
  font-family: 'Noto Kufi Arabic', sans-serif;
  font-size: 17px;
}

.btn-speak-divider {
  width: 1px;
  height: 20px;
  background: rgba(34, 19, 0, 0.18);
}

.btn-speak-en {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 600;
}

.active-call {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
  padding: 16px 20px;
  border-radius: 20px;
  background: rgba(244, 166, 28, 0.06);
  border: 1px solid rgba(244, 166, 28, 0.15);
  backdrop-filter: blur(12px);
}

.active-call.visible { display: flex; }

.waveform {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 28px;
}

.waveform .bar {
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--accent-violet), var(--accent-cyan));
  animation: waveBar 1s ease-in-out infinite;
}

.waveform .bar:nth-child(1) { height: 8px; animation-delay: 0s; }
.waveform .bar:nth-child(2) { height: 16px; animation-delay: 0.1s; }
.waveform .bar:nth-child(3) { height: 24px; animation-delay: 0.2s; }
.waveform .bar:nth-child(4) { height: 16px; animation-delay: 0.3s; }
.waveform .bar:nth-child(5) { height: 8px; animation-delay: 0.4s; }

@keyframes waveBar {
  0%, 100% { transform: scaleY(1); opacity: 0.7; }
  50% { transform: scaleY(1.8); opacity: 1; }
}

.active-call-text {
  flex: 1;
  font-size: 15px;
  color: rgba(247, 242, 232, 0.9);
  font-family: 'Noto Kufi Arabic', sans-serif;
}

.btn-end-call {
  padding: 10px 22px;
  border: 0;
  border-radius: 999px;
  background: rgba(200, 27, 65, 0.18);
  color: #ffe6ec;
  font-family: 'Noto Kufi Arabic', sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease;
}

.btn-end-call:hover {
  background: rgba(200, 27, 65, 0.3);
}

.live-transcript {
  width: 100%;
  max-width: 760px;
  max-height: 120px;
  overflow-y: auto;
}

.live-transcript:empty { display: none; }

.live-transcript .msg {
  padding: 7px 0;
  border-bottom: 1px solid rgba(244, 166, 28, 0.08);
  font-size: 14px;
  color: rgba(247, 242, 232, 0.82);
}

.live-transcript .msg:last-child { border-bottom: 0; }

.live-transcript .msg-role {
  font-weight: 700;
  color: var(--accent-cyan);
  margin-inline-end: 8px;
}

.live-transcript .msg.user .msg-role {
  color: rgba(247, 242, 232, 0.58);
}

/* === EXPERIENCE STRIP === */
.experience-strip {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 1120px;
  animation: fadeSlideUp 1s ease-out 1s both;
}

.experience-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 22px;
  padding: 24px;
  text-align: right;
  backdrop-filter: blur(16px);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.experience-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-violet), var(--accent-cyan));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.experience-card:hover {
  transform: translateY(-4px);
  border-color: rgba(244, 166, 28, 0.2);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.experience-card:hover::before {
  opacity: 1;
}

.card-icon {
  margin-bottom: 16px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(244, 166, 28, 0.06);
  border-radius: 14px;
  border: 1px solid rgba(244, 166, 28, 0.1);
}

.experience-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(244, 166, 28, 0.06);
  border: 1px solid rgba(244, 166, 28, 0.12);
  font-family: 'Noto Kufi Arabic', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-cyan);
}

.experience-copy {
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.8;
  color: rgba(240, 242, 245, 0.85);
  font-family: 'Noto Kufi Arabic', sans-serif;
}

.experience-copy.en {
  font-family: 'Space Grotesk', sans-serif;
  direction: ltr;
  text-align: left;
  color: var(--text-secondary);
  font-size: 13px;
  margin-top: 8px;
  opacity: 0.7;
}

/* === LIVE STATUS === */
.live-status-panel {
  width: 100%;
  max-width: 960px;
  padding: 20px 24px;
  border-radius: 22px;
  border: 1px solid var(--glass-border);
  background:
    linear-gradient(135deg, rgba(244, 166, 28, 0.05), rgba(200, 27, 65, 0.03)),
    var(--glass);
  backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  animation: fadeSlideUp 1s ease-out 1.2s both;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  font-family: 'Noto Kufi Arabic', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 0 0 rgba(244, 166, 28, 0.35);
  animation: livePulse 2s ease-in-out infinite;
}

.status-text {
  flex: 1;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(240, 242, 245, 0.86);
  text-align: right;
  font-family: 'Noto Kufi Arabic', sans-serif;
}

.status-text.en {
  font-family: 'Space Grotesk', sans-serif;
  direction: ltr;
  text-align: left;
  color: var(--text-secondary);
  font-size: 13px;
  opacity: 0.7;
}

/* === STATS === */
.stats-bar {
  display: flex;
  gap: 48px;
  justify-content: center;
  padding: 14px 0;
  direction: ltr;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.stat-value {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 22px;
  font-weight: 600;
  color: var(--accent-cyan);
}

.stat-label {
  font-family: 'Noto Kufi Arabic', sans-serif;
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 600;
}

/* === SUMMARIES === */
.summaries-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: hidden;
}

.summaries-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.summaries-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.summaries-icon {
  flex-shrink: 0;
}

.summaries-label {
  font-family: 'Noto Kufi Arabic', sans-serif;
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 600;
}

.btn-import {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--accent-cyan);
  font-family: 'Noto Kufi Arabic', sans-serif;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-import:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent-cyan);
}

.btn-import:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.call-counter {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  color: var(--accent-cyan);
}

.summaries-feed {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-behavior: smooth;
  direction: ltr;
  scroll-snap-type: x mandatory;
}

.summaries-feed::-webkit-scrollbar { display: none; }

/* --- Card shell --- */
.summary-card {
  flex: 1 1 0;
  min-width: 280px;
  max-width: 420px;
  background:
    linear-gradient(160deg, rgba(244, 166, 28, 0.03) 0%, transparent 40%),
    var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 0;
  animation: cardSlideIn 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(14px);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.summary-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.3);
  border-color: rgba(244, 166, 28, 0.18);
}

.summary-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-blue), var(--accent-violet));
}

.summary-card.arabic-card {
  direction: rtl;
  text-align: right;
  font-family: 'Noto Kufi Arabic', sans-serif;
}

@keyframes cardSlideIn {
  from { opacity: 0; transform: translateY(30px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* --- Card header --- */
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px 0;
}

.card-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-number {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--accent-cyan);
  background: rgba(244, 166, 28, 0.08);
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: 600;
}

.card-lang {
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  font-family: 'IBM Plex Mono', monospace;
  text-transform: uppercase;
}

.card-time {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--text-secondary);
  direction: ltr;
  unicode-bidi: isolate;
}

/* --- Card title --- */
.card-title {
  padding: 10px 20px 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.5;
}

/* --- Metrics row --- */
.card-metrics {
  display: flex;
  gap: 2px;
  padding: 14px 16px;
  margin: 12px 16px 0;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.metric {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 4px 0;
}

.metric-icon {
  font-size: 16px;
  line-height: 1;
  filter: grayscale(0.3);
}

.metric-val {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

.metric-val.caller-val {
  font-size: 10px;
  color: var(--accent-cyan);
}

.metric-lbl {
  font-size: 10px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* --- Gauge bars --- */
.card-gauges {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 20px 0;
}

.gauge {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  align-items: center;
  gap: 10px;
}

.gauge-label {
  font-size: 11px;
  color: var(--text-secondary);
  font-weight: 600;
}

.gauge-track {
  height: 6px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.gauge-fill {
  height: 100%;
  border-radius: 99px;
  transition: width 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.gauge-fill.eng-high { background: linear-gradient(90deg, #4ade80, #22c55e); }
.gauge-fill.eng-medium { background: linear-gradient(90deg, var(--accent-cyan), var(--accent-blue)); }
.gauge-fill.eng-low { background: rgba(255, 255, 255, 0.15); }

.gauge-fill.int-high { background: linear-gradient(90deg, #f43f5e, #fb923c); }
.gauge-fill.int-medium { background: linear-gradient(90deg, var(--accent-cyan), var(--accent-blue)); }
.gauge-fill.int-low { background: rgba(255, 255, 255, 0.15); }

.gauge-val {
  font-size: 11px;
  color: var(--text-secondary);
  font-family: 'IBM Plex Mono', monospace;
  min-width: 80px;
  text-align: end;
}

/* --- Topics --- */
.card-topics {
  padding: 14px 20px 0;
}

.topics-label {
  display: block;
  font-size: 10px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
  font-weight: 600;
}

.topics-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.topic-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: linear-gradient(135deg, rgba(244, 166, 28, 0.12), rgba(244, 166, 28, 0.04));
  border: 1px solid rgba(244, 166, 28, 0.18);
  color: var(--accent-cyan);
}

/* --- Executive summary text --- */
.card-summary {
  padding: 14px 20px 0;
}

.summary-label {
  display: block;
  font-size: 10px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
  font-weight: 600;
}

.summary-body {
  font-size: 13px;
  line-height: 1.8;
  color: rgba(240, 242, 245, 0.82);
}

/* --- Recommended action --- */
.card-action {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 14px 16px 16px;
  padding: 12px 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(244, 166, 28, 0.06), rgba(200, 27, 65, 0.04));
  border: 1px solid rgba(244, 166, 28, 0.1);
  border-inline-start: 3px solid var(--accent-cyan);
}

.action-icon {
  font-size: 14px;
  line-height: 1.6;
  flex-shrink: 0;
}

.action-text {
  font-size: 12px;
  line-height: 1.7;
  color: rgba(240, 242, 245, 0.78);
}

.btn-delete-card {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 24px;
  height: 24px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.summary-card:hover .btn-delete-card { opacity: 1; }

.btn-delete-card:hover {
  background: var(--red);
  border-color: var(--red);
  color: white;
}

.summary-card.arabic-card .btn-delete-card {
  right: auto;
  left: 10px;
}

.no-summaries {
  text-align: center;
  color: var(--text-secondary);
  font-size: 14px;
  padding: 24px;
  width: 100%;
  font-family: 'Noto Kufi Arabic', sans-serif;
  direction: rtl;
}

/* === ERROR === */
.error-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 6, 14, 0.88);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.error-overlay.hidden { display: none; }

.error-card {
  background: var(--glass);
  border: 1px solid var(--red);
  border-radius: 20px;
  padding: 2.5rem;
  text-align: center;
  max-width: 500px;
  backdrop-filter: blur(20px);
}

.error-message {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-family: 'Noto Kufi Arabic', sans-serif;
}

.btn-error-dismiss {
  padding: 10px 32px;
  font-family: 'Noto Kufi Arabic', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: white;
  background: var(--red);
  border: none;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-error-dismiss:hover { transform: scale(1.05); }

/* === TRANSCRIPT MODAL === */
.transcript-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 6, 14, 0.92);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  animation: fadeIn 0.3s ease-out;
}
.transcript-overlay.hidden { display: none; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.transcript-modal {
  width: 90vw;
  max-width: 720px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at top right, rgba(244, 166, 28, 0.04), transparent 40%),
    radial-gradient(circle at bottom left, rgba(200, 27, 65, 0.03), transparent 40%),
    rgba(12, 12, 18, 0.95);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  overflow: hidden;
  backdrop-filter: blur(20px);
  position: relative;
  animation: modalSlideUp 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes modalSlideUp {
  from { opacity: 0; transform: translateY(40px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.transcript-close {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  color: var(--text-secondary);
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: all 0.2s ease;
}
.transcript-close:hover {
  background: var(--red);
  border-color: var(--red);
  color: white;
}

.transcript-header {
  padding: 28px 28px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.transcript-title {
  font-family: 'Noto Kufi Arabic', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.5;
  margin-bottom: 14px;
}

.transcript-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.transcript-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: var(--text-secondary);
}
.transcript-meta-pill .pill-icon { color: var(--accent-cyan); }

.transcript-chat {
  flex: 1;
  overflow-y: auto;
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-bubble {
  max-width: 78%;
  padding: 14px 18px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.8;
  animation: bubbleFadeIn 0.3s ease-out both;
}
@keyframes bubbleFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.chat-bubble.agent {
  align-self: flex-start;
  background: rgba(244, 166, 28, 0.06);
  border: 1px solid rgba(244, 166, 28, 0.12);
  border-bottom-left-radius: 4px;
  color: rgba(240, 242, 245, 0.9);
}
.chat-bubble.user {
  align-self: flex-end;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom-right-radius: 4px;
  color: var(--text-secondary);
}

/* RTL: flip bubble sides */
.transcript-modal[dir="rtl"] .chat-bubble.agent {
  align-self: flex-end;
  border-bottom-left-radius: 18px;
  border-bottom-right-radius: 4px;
}
.transcript-modal[dir="rtl"] .chat-bubble.user {
  align-self: flex-start;
  border-bottom-right-radius: 18px;
  border-bottom-left-radius: 4px;
}

.bubble-role {
  display: block;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.chat-bubble.agent .bubble-role { color: var(--accent-cyan); }
.chat-bubble.user .bubble-role { color: rgba(247, 242, 232, 0.5); }

.bubble-time {
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  color: rgba(255,255,255,0.25);
  margin-top: 6px;
}

.no-transcript {
  text-align: center;
  color: var(--text-secondary);
  padding: 40px 20px;
  font-size: 14px;
}

.summary-card { cursor: pointer; }

/* === SCROLLBAR === */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 4px; }

/* === RESPONSIVE === */
@media (max-width: 1100px) {
  .container {
    padding: 28px 24px;
  }

  .experience-strip {
    grid-template-columns: 1fr;
    max-width: 820px;
  }

  .live-status-panel {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 720px) {
  body {
    width: auto;
  }

  .container {
    min-height: 100vh;
    height: auto;
    padding: 22px 18px 28px;
  }

  .header {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 12px;
  }

  .summaries-header,
  .stats-bar {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .hero {
    align-items: center;
    text-align: center;
    padding: 6px 0;
  }

  .brand-logo {
    width: min(280px, 72vw);
  }

  .phone-ring {
    width: 100%;
    padding: 20px 22px;
  }

  .phone-number {
    font-size: clamp(24px, 9vw, 40px);
    letter-spacing: 2px;
    gap: 12px;
  }

  .phone-icon {
    width: 28px;
    height: 28px;
  }

  .direct-connect,
  .active-call {
    align-items: center;
  }

  .active-call {
    flex-direction: column;
  }

  .btn-speak {
    width: 100%;
    justify-content: center;
  }

  .summaries-feed {
    flex-direction: column;
    overflow-x: visible;
    overflow-y: auto;
  }

  .summary-card {
    flex: 0 0 auto;
    width: 100%;
  }

  .card-metrics {
    flex-wrap: wrap;
  }

  .gauge {
    grid-template-columns: 50px 1fr auto;
  }

  .experience-card {
    text-align: center;
  }

  .card-icon {
    margin-left: auto;
    margin-right: auto;
  }
}
