:root {
  --bg: #f8fafc;
  --surface: rgba(255, 255, 255, 0.85);
  --surface-strong: #ffffff;
  --ink: #0f172a;
  --muted: #475569;
  --line: rgba(148, 163, 184, 0.12);
  --brand: #0d9488;
  --brand-strong: #0f766e;
  --accent: #f59e0b;
  --success: #10b981;
  --danger: #ef4444;
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

* {
  box-sizing: border-box;
}

html,
body,
#root {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: "Inter", "Manrope", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at top left, #eef8f4, #f8fafc);
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: absolute;
  top: -10%;
  left: -10%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(13, 148, 136, 0.08), transparent 60%);
  filter: blur(80px);
  pointer-events: none;
  z-index: -1;
}

body::after {
  content: "";
  position: absolute;
  bottom: 5%;
  right: -5%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(46, 139, 126, 0.06), transparent 70%);
  filter: blur(100px);
  pointer-events: none;
  z-index: -1;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  width: min(1240px, calc(100% - 32px));
  margin: 24px auto 40px;
}

.auth-layout,
.panel,
.hero-panel,
.floating-card,
.metric-card,
.script-card,
.queue-card,
.target-card {
  backdrop-filter: blur(20px);
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 24px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.auth-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr);
  gap: 24px;
  padding: 28px;
}

.auth-panel,
.auth-side {
  padding: 8px;
}

.eyebrow,
.section-tag,
.muted,
.inline-label {
  color: var(--muted);
}

.eyebrow,
.section-tag {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 800;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  line-height: 1.05;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 4.25rem);
  margin-top: 8px;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
}

h3 {
  font-size: 1.55rem;
}

h4 {
  font-size: 1.08rem;
}

.lead {
  margin: 16px 0 0;
  font-size: 1rem;
  line-height: 1.75;
  color: #3b4657;
  max-width: 60ch;
}

.form-stack,
.two-column,
.stats-grid,
.dashboard-grid,
.script-grid,
.queue-grid,
.campaign-grid,
.target-grid,
.otp-options,
.chart-stack,
.mini-chart-grid,
.event-grid,
.audit-call-list,
.transcript-list,
.call-meta-grid,
.heatmap-bars,
.heatmap-split {
  display: grid;
  gap: 18px;
}

.form-stack {
  margin-top: 22px;
}

.auth-hint,
.error-banner {
  padding: 14px 16px;
  border-radius: 16px;
  font-size: 0.92rem;
}

.auth-hint {
  background: rgba(46, 139, 126, 0.08);
  color: #275b54;
  border: 1px solid rgba(46, 139, 126, 0.12);
}

.error-banner {
  background: rgba(184, 77, 77, 0.1);
  color: #8d2e2e;
  border: 1px solid rgba(184, 77, 77, 0.14);
}

.two-column,
.dashboard-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.otp-options,
.queue-grid,
.target-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

label {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
  color: #364055;
}

input,
select,
textarea {
  width: 100%;
  margin-top: 8px;
  padding: 14px 18px;
  border-radius: 16px;
  border: 1.5px solid rgba(148, 163, 184, 0.2);
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
  font-family: inherit;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.12);
  background: #ffffff;
}

input,
select {
  height: 56px;
}

textarea {
  min-height: 108px;
  resize: vertical;
}

.button-row,
.topbar,
.nav-row,
.chip-row,
.card-top,
.campaign-actions,
.toggle-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  padding: 14px 18px;
  border: 0;
  border-radius: 18px;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  color: white;
  background: linear-gradient(135deg, var(--brand), #58a497);
  box-shadow: 0 14px 28px rgba(46, 139, 126, 0.22);
}

.button-secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(63, 89, 94, 0.1);
}

.button-ghost {
  color: var(--brand);
  background: rgba(46, 139, 126, 0.08);
}

.auth-side {
  display: grid;
  align-content: space-between;
  gap: 20px;
}

.floating-card,
.panel,
.hero-panel,
.metric-card,
.script-card,
.queue-card,
.target-card {
  padding: 22px;
}

.floating-note {
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(63, 89, 94, 0.1);
  background: rgba(255, 255, 255, 0.76);
}

.floating-note strong {
  display: block;
  margin: 8px 0 6px;
  font-size: 1.2rem;
}

.floating-note p {
  margin: 0;
  color: #3b4657;
}

.auth-art {
  position: relative;
  min-height: 340px;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(46, 139, 126, 0.18), transparent 34%),
    radial-gradient(circle at bottom right, rgba(215, 181, 109, 0.15), transparent 28%),
    linear-gradient(160deg, #fcfcf8 0%, #f3efe7 100%);
}

.auth-art::after {
  content: "";
  position: absolute;
  right: -12%;
  bottom: -18%;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(215, 181, 109, 0.26), transparent 62%);
}

.auth-art::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 10%;
  height: 120px;
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(247, 249, 246, 0.72)),
    linear-gradient(135deg, rgba(46, 139, 126, 0.08), rgba(215, 181, 109, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.75);
}

.auth-highlights {
  position: relative;
  z-index: 1;
  margin-top: 28px;
}

.auth-highlights .floating-card + .floating-card {
  margin-top: 14px;
}

.app-header {
  z-index: 1000;
  margin-top: 16px;
  margin-bottom: 24px;
  backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 20px;
  padding: 12px 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  transition: all 0.3s ease;
}

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

.nav-pill {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--muted);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-pill:hover {
  color: var(--ink);
  transform: translateY(-1.5px);
}

.nav-pill.active {
  color: white;
  background: linear-gradient(135deg, var(--brand), #58a497);
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.2);
}

.stats-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.metric-card strong,
.queue-card strong,
.target-card strong {
  display: block;
  margin: 10px 0 6px;
  font-size: 1.9rem;
  line-height: 1;
}

.metric-card p,
.queue-card p,
.script-card p,
.target-card p,
.floating-card p {
  margin: 0;
  color: #3b4657;
}

.hero-panel,
.panel {
  position: relative;
  overflow: hidden;
}

.hero-panel::after,
.panel::after {
  content: "";
  position: absolute;
  inset: auto -8% -30% auto;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(46, 139, 126, 0.08), transparent 65%);
  pointer-events: none;
}

.metric-card,
.script-card,
.queue-card,
.target-card,
.floating-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(249, 250, 247, 0.82));
}

.dashboard-grid {
  margin-top: 20px;
}

.panel {
  margin-top: 20px;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 18px;
}

.script-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.script-card.selected {
  border-color: rgba(15, 118, 110, 0.28);
  background: linear-gradient(180deg, rgba(250, 255, 253, 0.96), rgba(244, 250, 248, 0.92));
}

.chip-row {
  margin-top: 16px;
}

.chip,
.status-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
}

.chip {
  border: 1px solid rgba(55, 66, 89, 0.12);
  background: rgba(255, 255, 255, 0.75);
  color: #344054;
}

.chip.active {
  color: white;
  background: var(--brand);
  border-color: var(--brand);
}

.status-chip {
  color: var(--brand);
  background: rgba(46, 139, 126, 0.12);
}

.status-success {
  color: var(--success);
  background: rgba(31, 157, 104, 0.12);
}

.status-alert {
  color: var(--danger);
  background: rgba(184, 77, 77, 0.12);
}

.queue-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.chart-stack {
  margin-top: 8px;
}

.bar-row {
  display: grid;
  gap: 10px;
}

.bar-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.bar-track {
  width: 100%;
  height: 16px;
  border-radius: 999px;
  background: rgba(46, 139, 126, 0.1);
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--brand), #78b9ad);
}

.mini-chart-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.radial-card {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(55, 66, 89, 0.08);
}

.radial-ring {
  width: 128px;
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(from 180deg, var(--brand) 0deg 250deg, rgba(46, 139, 126, 0.14) 250deg 360deg);
}

.radial-ring > div {
  width: 82px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #fffaf4;
  display: grid;
  place-items: center;
}

.payload-card {
  margin-top: 14px;
  padding: 18px;
  border-radius: 20px;
  background: #24464a;
  color: #f2fbf8;
  overflow: auto;
}

.payload-card pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 0.88rem;
  line-height: 1.6;
}

.event-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 18px;
}

.heatmap-table {
  display: grid;
  grid-template-columns: 52px repeat(5, minmax(34px, 1fr));
  gap: 4px;
  align-items: stretch;
  max-width: 100%;
}

.heatmap-legend-row {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}

.heatmap-legend-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--muted);
}

.heatmap-legend-chip::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 3px;
  display: inline-block;
}

.heatmap-legend-chip.picked-up::before {
  background: rgba(58, 150, 194, 0.92);
}

.heatmap-legend-chip.not-picked-up::before {
  background: rgba(180, 216, 233, 0.92);
}

.heatmap-split {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
  overflow-x: visible;
}

.heatmap-corner,
.heatmap-column-label,
.heatmap-row-label,
.heatmap-cell {
  padding: 4px;
  border-radius: 4px;
  border: 0;
  background: rgba(255, 255, 255, 0.76);
}

.heatmap-corner,
.heatmap-column-label,
.heatmap-row-label {
  font-weight: 700;
  color: var(--muted);
}

.heatmap-column-label,
.heatmap-row-label {
  text-align: center;
  font-size: 0.72rem;
}

.heatmap-cell {
  min-height: 22px;
  min-width: 34px;
}

.audit-call-card,
.transcript-entry {
  text-align: left;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(55, 66, 89, 0.08);
  background: rgba(255, 255, 255, 0.72);
}

.audit-call-card.active {
  border-color: rgba(15, 118, 110, 0.28);
  background: linear-gradient(180deg, rgba(250, 255, 253, 0.96), rgba(244, 250, 248, 0.92));
}

.audit-call-card strong,
.transcript-entry strong {
  display: block;
  margin-bottom: 6px;
}

.audit-call-card span,
.audit-call-card small {
  display: block;
  color: var(--muted);
}

.transcript-shell {
  display: grid;
  gap: 18px;
}

.call-meta-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.transcript-entry p {
  margin: 10px 0 0;
  color: #334054;
  line-height: 1.7;
}

.queue-card small,
.floating-card small {
  color: var(--muted);
}

.campaign-grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
}

.target-grid {
  margin-top: 18px;
}

.target-card {
  background: rgba(255, 255, 255, 0.74);
}

.toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 18px;
  border: 1px solid rgba(55, 66, 89, 0.12);
  background: rgba(255, 255, 255, 0.82);
  font-weight: 700;
}

.toggle input {
  width: auto;
  margin: 0;
}

.campaign-summary {
  display: grid;
  gap: 14px;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.summary-line:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.list-clean {
  margin: 0;
  padding-left: 18px;
  color: #3b4657;
  line-height: 1.7;
}

@media (max-width: 1040px) {
  .auth-layout,
  .campaign-grid,
  .script-grid,
  .queue-grid,
  .dashboard-grid,
  .stats-grid,
  .target-grid,
  .otp-options,
  .two-column,
  .mini-chart-grid,
  .event-grid,
  .call-meta-grid {
    grid-template-columns: 1fr;
  }

  .heatmap-split {
    flex-direction: row;
    overflow-x: auto;
  }
}

@media (max-width: 680px) {
  .app-shell {
    width: min(100% - 20px, 1240px);
    margin: 10px auto 24px;
  }

  .auth-layout,
  .panel,
  .hero-panel,
  .floating-card,
  .metric-card,
  .script-card,
  .queue-card,
  .target-card {
    border-radius: 22px;
  }

  .auth-layout,
  .panel,
  .hero-panel {
    padding: 18px;
  }


  h1 {
    font-size: 2.5rem;
  }
}

/* =========================================================
   /call  route – Inbound call form
   ========================================================= */

.nav-pill-call {
  background: linear-gradient(135deg, var(--brand), #58a497) !important;
  color: white !important;
  border-color: transparent !important;
  box-shadow: 0 6px 18px rgba(46, 139, 126, 0.28);
}

.nav-pill-call.active {
  background: linear-gradient(135deg, var(--brand-strong), var(--brand)) !important;
}

.call-page {
  min-height: calc(100vh - 120px);
  display: flex;
  align-items: center;
  padding: 40px 0;
}

.call-page-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  width: 100%;
  align-items: center;
}

/* ---- Left info side ---- */
.call-info-side {
  padding: 20px 0;
}

.call-info-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(46, 139, 126, 0.14), rgba(215, 181, 109, 0.14));
  border: 1px solid rgba(46, 139, 126, 0.2);
  color: var(--brand-strong);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.call-info-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.08;
  color: var(--ink);
  margin: 0 0 20px;
  background: linear-gradient(135deg, var(--ink) 40%, var(--brand));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.call-info-desc {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #3b4657;
  max-width: 52ch;
  margin: 0 0 36px;
}

.call-info-features {
  display: grid;
  gap: 20px;
}

.call-feature-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.call-feature-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(46, 139, 126, 0.12), rgba(215, 181, 109, 0.12));
  border: 1px solid rgba(46, 139, 126, 0.16);
  font-size: 1.2rem;
}

.call-feature-item strong {
  display: block;
  font-size: 0.96rem;
  color: var(--ink);
  margin-bottom: 4px;
}

.call-feature-item p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ---- Right form side ---- */
.call-form-side {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.call-form-card {
  backdrop-filter: blur(24px);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 32px;
  box-shadow:
    0 40px 80px rgba(46, 80, 86, 0.14),
    0 0 0 1px rgba(46, 139, 126, 0.06);
  padding: 36px 36px 28px;
  position: relative;
  overflow: hidden;
}

.call-form-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(46, 139, 126, 0.1), transparent 50%),
    radial-gradient(circle at bottom left, rgba(215, 181, 109, 0.08), transparent 50%);
  pointer-events: none;
}

.call-form-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.7rem;
  color: var(--ink);
  margin: 10px 0 8px;
}

.call-form-subtitle {
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0 0 28px;
  line-height: 1.65;
}

.call-form-fields {
  display: grid;
  gap: 20px;
  margin-bottom: 24px;
}

.call-field-group {
  display: grid;
  gap: 8px;
}

.call-field-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #364055;
}

.call-field-icon {
  font-size: 1rem;
}

.call-field-input {
  width: 100%;
  padding: 15px 18px;
  border-radius: 18px;
  border: 1.5px solid rgba(55, 66, 89, 0.14);
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
  font-size: 1rem;
  font-family: "Manrope", sans-serif;
  transition: border-color 200ms ease, box-shadow 200ms ease;
  margin-top: 0;
}

.call-field-input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(46, 139, 126, 0.1);
}

.call-field-input::placeholder {
  color: #aab1be;
}

.call-form-error {
  padding: 13px 16px;
  border-radius: 14px;
  background: rgba(184, 77, 77, 0.08);
  border: 1px solid rgba(184, 77, 77, 0.18);
  color: #8d2e2e;
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.call-submit-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 17px 28px;
  border: none;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--brand), #58a497, #2ecc9f);
  background-size: 200% 200%;
  color: white;
  font-size: 1.05rem;
  font-weight: 800;
  font-family: "Manrope", sans-serif;
  cursor: pointer;
  position: relative;
  box-shadow: 0 14px 36px rgba(46, 139, 126, 0.35);
  transition: transform 200ms ease, box-shadow 200ms ease;
  animation: call-btn-shine 3s ease infinite;
  margin-bottom: 16px;
}

@keyframes call-btn-shine {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.call-submit-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 20px 48px rgba(46, 139, 126, 0.42);
}

.call-submit-btn:active:not(:disabled) {
  transform: translateY(0);
}

.call-submit-btn:disabled {
  opacity: 0.75;
  cursor: not-allowed;
}

.call-btn-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2.5px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.call-form-legal {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.6;
  text-align: center;
  margin: 0;
}

/* =========================================================
   Voice Wave Modal
   ========================================================= */

.voice-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(20, 32, 38, 0.55);
  backdrop-filter: blur(10px);
  animation: fade-in 280ms ease;
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.voice-modal-card {
  position: relative;
  width: min(480px, calc(100vw - 40px));
  background:
    radial-gradient(circle at top center, rgba(46, 139, 126, 0.18), transparent 55%),
    linear-gradient(180deg, #1a2e34 0%, #0f1f25 100%);
  border: 1px solid rgba(46, 139, 126, 0.22);
  border-radius: 36px;
  padding: 44px 36px 36px;
  text-align: center;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 48px 100px rgba(0, 0, 0, 0.45);
  animation: modal-pop 320ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modal-pop {
  from { transform: scale(0.88); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.voice-modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 160ms ease;
  display: grid;
  place-items: center;
}

.voice-modal-close:hover {
  background: rgba(255, 255, 255, 0.15);
  color: white;
}

/* Avatar with pulsing rings */
.voice-modal-avatar {
  position: relative;
  width: 96px;
  height: 96px;
  margin: 0 auto 28px;
}

.voice-avatar-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(46, 139, 126, 0.5);
  animation: avatar-pulse 2.2s ease-out infinite;
}

.voice-avatar-ring-1 { animation-delay: 0s; }
.voice-avatar-ring-2 { animation-delay: 0.55s; }
.voice-avatar-ring-3 { animation-delay: 1.1s; }

@keyframes avatar-pulse {
  0% { transform: scale(1); opacity: 0.9; }
  100% { transform: scale(2.4); opacity: 0; }
}

.voice-avatar-icon {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), #58a497);
  color: white;
  font-size: 2rem;
  font-weight: 800;
  font-family: "Space Grotesk", sans-serif;
  box-shadow: 0 8px 24px rgba(46, 139, 126, 0.5);
}

.voice-modal-info {
  margin-bottom: 28px;
}

.voice-modal-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(46, 200, 100, 0.12);
  border: 1px solid rgba(46, 200, 100, 0.24);
  color: #4ade80;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.voice-modal-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.7rem;
  color: white;
  margin: 0 0 10px;
}

.voice-modal-subtitle {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.7;
  margin: 0 auto;
  max-width: 36ch;
}

/* ---- Voice wave bars ---- */
.voice-wave-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 80px;
  margin: 0 0 28px;
}

.voice-wave-bar {
  flex-shrink: 0;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(to top, rgba(46, 139, 126, 0.6), #58e8d0, rgba(46, 139, 126, 0.4));
  animation: wave-bounce 1.1s ease-in-out infinite alternate;
  min-height: 6px;
}

@keyframes wave-bounce {
  0%   { height: 6px;  opacity: 0.45; }
  100% { height: var(--bar-max-height, 40px); opacity: 1; }
}

/* ---- End call button ---- */
.voice-modal-actions {
  display: flex;
  justify-content: center;
}

.voice-end-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 999px;
  background: rgba(184, 77, 77, 0.15);
  border: 1px solid rgba(184, 77, 77, 0.3);
  color: #f87171;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 180ms ease, transform 180ms ease;
  font-family: "Manrope", sans-serif;
}

.voice-end-btn:hover {
  background: rgba(184, 77, 77, 0.25);
  transform: scale(1.03);
}

/* ---- Responsive ---- */
@media (max-width: 880px) {
  .call-page-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .call-info-side {
    text-align: center;
  }

  .call-info-desc {
    margin-left: auto;
    margin-right: auto;
  }

  .call-feature-item {
    text-align: left;
  }
}

@media (max-width: 540px) {
  .call-form-card {
    padding: 28px 22px 22px;
    border-radius: 24px;
  }
}

/* ---- Success banner (inline, replaces popup) ---- */
.call-success-banner {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(44, 143, 110, 0.1), rgba(46, 139, 126, 0.07));
  border: 1px solid rgba(44, 143, 110, 0.28);
  margin-bottom: 16px;
  animation: modal-pop 300ms cubic-bezier(0.34, 1.4, 0.64, 1);
}

.call-success-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--success);
  color: white;
  font-size: 1.1rem;
  font-weight: 800;
}

.call-success-banner strong {
  display: block;
  color: var(--ink);
  font-size: 1rem;
  margin-bottom: 4px;
}

.call-success-banner p {
  margin: 0;
  font-size: 0.9rem;
  color: #3b5c50;
  line-height: 1.55;
}

.call-success-again {
  flex-shrink: 0;
  margin-left: auto;
  padding: 8px 14px;
  border: 1px solid rgba(44, 143, 110, 0.3);
  border-radius: 12px;
  background: transparent;
  color: var(--brand-strong);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 160ms ease;
  font-family: "Manrope", sans-serif;
}

.call-success-again:hover {
  background: rgba(44, 143, 110, 0.1);
}

/* =========================================================
   CALL PAGE V2 — Premium redesign
   ========================================================= */

.call-page-v2 {
  min-height: calc(100vh - 110px);
  display: flex;
  align-items: stretch;
}

.call-v2-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(20, 40, 50, 0.2);
  min-height: 640px;
}

/* ── LEFT HERO PANEL ── */
.call-hero-panel {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(46, 200, 150, 0.22) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 80%, rgba(46, 139, 126, 0.28) 0%, transparent 50%),
    linear-gradient(160deg, #0d2028 0%, #112630 40%, #0a1a22 100%);
  padding: 52px 44px;
  display: flex;
  align-items: center;
}

/* Animated orbs */
.call-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.call-orb-1 {
  width: 320px; height: 320px;
  top: -80px; right: -80px;
  background: radial-gradient(circle, rgba(46, 200, 150, 0.14), transparent 65%);
  animation: orb-drift 8s ease-in-out infinite alternate;
}
.call-orb-2 {
  width: 200px; height: 200px;
  bottom: 20px; left: -50px;
  background: radial-gradient(circle, rgba(215, 181, 109, 0.12), transparent 65%);
  animation: orb-drift 11s ease-in-out infinite alternate-reverse;
}
.call-orb-3 {
  width: 140px; height: 140px;
  top: 45%; left: 40%;
  background: radial-gradient(circle, rgba(46, 139, 126, 0.1), transparent 65%);
  animation: orb-drift 14s ease-in-out infinite alternate;
}
@keyframes orb-drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(18px, -18px) scale(1.08); }
}

.call-hero-body {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 20px;
  margin-top: -40px; /* Shift everything a bit higher */
}

/* Emma avatar - Side-by-side Layout without circle */
.call-avatar-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}
.call-avatar-core {
  font-family: "Space Grotesk", sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  color: white;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #ffffff 30%, #44c9a0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  line-height: 1;
}
.call-avatar-live {
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(46, 200, 100, 0.14);
  border: 1px solid rgba(46, 200, 100, 0.28);
  color: #4ade80;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  line-height: 1;
}
.call-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  display: inline-block;
}

.call-hero-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(46, 200, 150, 0.1);
  border: 1px solid rgba(46, 200, 150, 0.22);
  color: rgba(46, 220, 160, 0.9);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  width: fit-content;
}

.call-hero-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.7rem, 3.2vw, 2.6rem);
  line-height: 1.12;
  color: #f0fdf8;
  margin: 0;
  text-shadow: 0 2px 20px rgba(46, 200, 150, 0.15);
}

.call-hero-desc {
  font-size: 0.96rem;
  line-height: 1.75;
  color: rgba(200, 230, 225, 0.7);
  margin: 0;
  max-width: 46ch;
}

/* Feature pills */
.call-feature-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.call-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(200, 230, 225, 0.85);
  font-size: 0.8rem;
  font-weight: 600;
}

/* Stats strip */
.call-stats-row {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  width: fit-content;
}
.call-stat {
  display: grid;
  gap: 2px;
  text-align: center;
}
.call-stat strong {
  display: block;
  font-size: 1.15rem;
  font-weight: 800;
  color: #44e0b0;
  font-family: "Space Grotesk", sans-serif;
}
.call-stat span {
  font-size: 0.72rem;
  color: rgba(200, 230, 225, 0.5);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.call-stat-sep {
  width: 1px;
  height: 28px;
  background: rgba(255, 255, 255, 0.12);
}

/* ── RIGHT FORM PANEL ── */
.call-form-panel {
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 44px;
}

.call-form-v2 {
  width: 100%;
  max-width: 400px;
  display: grid;
  gap: 0;
}

.call-form-header {
  margin-bottom: 28px;
}
.call-form-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
  background: rgba(46, 139, 126, 0.08);
  border: 1px solid rgba(46, 139, 126, 0.18);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.call-form-header h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.6rem, 2.8vw, 2.1rem);
  color: var(--ink);
  margin: 0 0 10px;
  line-height: 1.12;
}
.call-form-header p {
  font-size: 0.94rem;
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
}

/* Fields */
.call-fields-v2 {
  display: grid;
  gap: 14px;
  margin-bottom: 22px;
}
.call-field-v2 {
  display: grid;
  gap: 7px;
}
.call-field-v2 label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #364055;
}
.call-field-v2 label svg {
  color: var(--brand);
  flex-shrink: 0;
}
.call-field-v2 input {
  width: 100%;
  padding: 13px 16px;
  border-radius: 14px;
  border: 1.5px solid rgba(55, 66, 89, 0.13);
  background: #f9fbfa;
  color: var(--ink);
  font-size: 0.97rem;
  font-family: "Manrope", sans-serif;
  transition: border-color 200ms ease, box-shadow 200ms ease, background 200ms ease;
  margin-top: 0;
}
.call-field-v2 input:focus {
  outline: none;
  border-color: var(--brand);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(46, 139, 126, 0.1);
}
.call-field-v2 input::placeholder {
  color: #b0bac8;
}

/* CTA button */
.call-cta-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 24px;
  border: none;
  border-radius: 16px;
  background: linear-gradient(135deg, #1f7a6e 0%, #2e8b7e 40%, #38b09e 100%);
  color: white;
  font-size: 1rem;
  font-weight: 800;
  font-family: "Manrope", sans-serif;
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(46, 139, 126, 0.38), 0 2px 8px rgba(46, 139, 126, 0.2);
  transition: transform 180ms ease, box-shadow 180ms ease;
  margin-bottom: 14px;
  letter-spacing: 0.01em;
}
.call-cta-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(46, 139, 126, 0.48), 0 4px 12px rgba(46, 139, 126, 0.25);
}
.call-cta-btn:active:not(:disabled) {
  transform: translateY(0);
}
.call-cta-btn:disabled {
  opacity: 0.72;
  cursor: not-allowed;
}

.call-legal-v2 {
  font-size: 0.76rem;
  color: #9ba9b8;
  text-align: center;
  line-height: 1.55;
  margin: 0;
}

/* Success state */
.call-success-v2 {
  display: grid;
  gap: 14px;
  text-align: center;
  padding: 12px 0;
}
.call-success-glow {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), #44c9a0);
  display: grid;
  place-items: center;
  margin: 0 auto;
  box-shadow: 0 0 40px rgba(46, 200, 150, 0.4);
  animation: modal-pop 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
.call-success-v2 h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.5rem;
  color: var(--ink);
  margin: 4px 0 0;
}
.call-success-v2 p {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
  max-width: 34ch;
  justify-self: center;
}
.call-reset-btn {
  margin: 6px auto 0;
  padding: 11px 22px;
  border-radius: 14px;
  border: 1.5px solid rgba(46, 139, 126, 0.3);
  background: transparent;
  color: var(--brand-strong);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 160ms ease;
  font-family: "Manrope", sans-serif;
  width: fit-content;
}
.call-reset-btn:hover {
  background: rgba(46, 139, 126, 0.07);
}

/* Responsive */
@media (max-width: 900px) {
  .call-v2-inner {
    grid-template-columns: 1fr;
  }
  .call-hero-panel {
    padding: 40px 32px;
  }
  .call-form-panel {
    padding: 40px 32px;
  }
}
@media (max-width: 540px) {
  .call-v2-inner {
    border-radius: 24px;
  }
  .call-hero-panel, .call-form-panel {
    padding: 30px 22px;
  }
  .call-stats-row {
    gap: 14px;
    padding: 14px 16px;
  }
}

/* =========================================================
   Premium Campaign UI Effects & Animations
   ========================================================= */

/* 1. Pulse animation for upload box when active */
@keyframes uploadCardPulse {
  0% { box-shadow: 0 0 0 0 rgba(15, 118, 110, 0.18); }
  70% { box-shadow: 0 0 0 10px rgba(15, 118, 110, 0); }
  100% { box-shadow: 0 0 0 0 rgba(15, 118, 110, 0); }
}

.upload-active-card {
  animation: uploadCardPulse 2s infinite;
}

/* 2. Soft fade and slide-in for Selected file banner */
@keyframes softSlideIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-slide {
  animation: softSlideIn 320ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* 3. Smooth hover effects on target Selector chips */
.chip {
  transition: all 200ms cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.chip:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 12px rgba(55, 66, 89, 0.08);
  border-color: rgba(15, 118, 110, 0.35);
}

.chip:active {
  transform: translateY(0) scale(0.98);
}

.chip.active:hover {
  box-shadow: 0 6px 16px rgba(15, 118, 110, 0.28);
}

/* 4. Smooth scale on Card Hovers */
.floating-card {
  transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 300ms cubic-bezier(0.16, 1, 0.3, 1), border-color 300ms cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.floating-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(46, 80, 86, 0.06), 0 0 0 1px rgba(15, 118, 110, 0.05);
  border-color: rgba(15, 118, 110, 0.16);
}

/* 5. Custom premium animation on Run Campaign button */
.run-campaign-btn {
  transition: all 300ms cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.run-campaign-btn:hover:not(:disabled) {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 8px 24px rgba(13, 148, 136, 0.45) !important;
}

.run-campaign-btn:active:not(:disabled) {
  transform: translateY(1px) scale(0.99);
}

.run-campaign-btn:disabled {
  cursor: not-allowed;
  opacity: 0.85;
}

/* =========================================================
   Modal Overlay & Container (Glassmorphism & Soft Animations)
   ========================================================= */

@keyframes overlayFadeIn {
  from { opacity: 0; backdrop-filter: blur(0px); }
  to { opacity: 1; backdrop-filter: blur(8px); }
}

@keyframes modalScaleUp {
  from { opacity: 0; transform: translate(-50%, -46%) scale(0.96); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(15, 23, 42, 0.45);
  animation: overlayFadeIn 320ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.modal-container {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10000;
  width: min(720px, calc(100% - 32px));
  max-height: calc(100vh - 64px);
  overflow-y: auto;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 28px;
  padding: 32px;
  box-shadow: 
    0 30px 70px rgba(15, 23, 42, 0.22),
    0 0 0 1px rgba(15, 23, 42, 0.03),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  animation: modalScaleUp 380ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
  scrollbar-width: thin;
  scrollbar-color: rgba(13, 148, 136, 0.2) transparent;
}

.modal-container::-webkit-scrollbar {
  width: 6px;
}

.modal-container::-webkit-scrollbar-thumb {
  background: rgba(13, 148, 136, 0.2);
  border-radius: 999px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  border-bottom: 1.5px solid rgba(148, 163, 184, 0.1);
  padding-bottom: 20px;
}

.modal-close-btn {
  background: rgba(148, 163, 184, 0.08);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-close-btn:hover {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
  transform: rotate(90deg) scale(1.05);
}

.modal-close-btn:active {
  transform: rotate(90deg) scale(0.95);
}

/* Modal Inner Metric Cards */
.modal-metric-card {
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-metric-card:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.95) !important;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
  border-color: rgba(13, 148, 136, 0.2) !important;
}

/* Outreach results Log Table Styling */
.patient-outreach-table th {
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: 0.02em;
}

.patient-outreach-table tbody tr {
  transition: background 180ms ease;
}

.patient-outreach-table tbody tr:hover {
  background: rgba(13, 148, 136, 0.015);
}

.patient-outreach-table td, 
.patient-outreach-table th {
  border-bottom: 1px solid rgba(148, 163, 184, 0.06);
}

