/* =============================================================================
   Keystroke AI Companion - Styles
   ============================================================================= */

/* Premium Typeface - Inter */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* -----------------------------------------------------------------------------
   CSS Variables (Design Tokens)
   ----------------------------------------------------------------------------- */
:root {
  /* Colors - Primary */
  --color-primary: #6366f1;
  --color-primary-hover: #4f46e5;
  --color-primary-light: #a5b4fc;
  --color-primary-bg: #eef2ff;
  --color-primary-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);

  /* Colors - Success */
  --color-success: #10b981;
  --color-success-light: #d1fae5;
  --color-success-dark: #065f46;
  --color-success-bg: #f0fdf4;
  --color-success-border: #86efac;
  /* Colors - Error */
  --color-error: #dc2626;
  --color-error-light: #fef2f2;
  --color-error-border: #fecaca;

  /* Colors - Neutral */
  --color-bg: #f8f9fb;
  --color-surface: #ffffff;
  --color-surface-elevated: #ffffff;
  --color-border: #e5e7eb;
  --color-border-light: #f3f4f6;
  --color-text: #1f2937;
  --color-text-secondary: #6b7280;
  --color-text-muted: #9ca3af;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 12px;
  --space-lg: 16px;
  --space-xl: 24px;
  --space-2xl: 32px;
  --space-3xl: 48px;
  --space-2xs: 2px;

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

  /* Shadows - Enhanced depth system */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.03);
  /* Typography - Premium Inter font */
  --font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --font-size-xs: 11px;
  --font-size-sm: 12px;
  --font-size-base: 14px;
  --font-size-lg: 15px;
  --font-size-xl: 18px;
  --font-size-2xl: 24px;
  --line-height-tight: 1.25;
  --line-height-normal: 1.5;
  /* Transitions - Refined timing */
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  /* Spring Easing - Premium feel */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-in-out-circ: cubic-bezier(0.85, 0, 0.15, 1);
  --spring-bounce: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --spring-smooth: cubic-bezier(0.22, 0.61, 0.36, 1);

  /* Typography - Enhanced */
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --letter-spacing-tight: -0.025em;
  --letter-spacing-normal: 0;
  --letter-spacing-wide: 0.025em;
  --line-height-relaxed: 1.625;

  /* Z-index scale */
  --z-overlay: 100;
  --z-modal: 110;

  /* Container widths */
  --container-lg: 1024px;
  --container-xl: 1140px;
}

/* -----------------------------------------------------------------------------
   Dark Mode
   ----------------------------------------------------------------------------- */
@media (prefers-color-scheme: dark) {
  :root {
    /* Colors - Primary (adjusted for dark) */
    --color-primary: #818cf8;
    --color-primary-hover: #6366f1;
    --color-primary-light: #4f46e5;
    --color-primary-bg: rgba(99, 102, 241, 0.15);
    --color-primary-gradient: linear-gradient(135deg, #818cf8 0%, #a78bfa 100%);

    /* Colors - Success (adjusted for dark) */
    --color-success: #34d399;
    --color-success-light: rgba(16, 185, 129, 0.2);
    --color-success-dark: #6ee7b7;
    --color-success-bg: rgba(16, 185, 129, 0.1);
    --color-success-border: #059669;
    /* Colors - Error (adjusted for dark) */
    --color-error: #f87171;
    --color-error-light: rgba(220, 38, 38, 0.15);
    --color-error-border: #b91c1c;

    /* Colors - Neutral (dark theme) */
    --color-bg: #0f172a;
    --color-surface: #1e293b;
    --color-surface-elevated: #334155;
    --color-border: #334155;
    --color-border-light: #1e293b;
    --color-text: #f1f5f9;
    --color-text-secondary: #94a3b8;
    --color-text-muted: #64748b;

    /* Shadows (adjusted for dark) */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.2);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3), 0 1px 2px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.3);
  }
}

/* -----------------------------------------------------------------------------
   Base Styles
   ----------------------------------------------------------------------------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: var(--line-height-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'kern' 1, 'liga' 1;
}

/* Focus-visible for keyboard accessibility */
:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
[role="tab"]:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 2px var(--color-surface),
    0 0 0 4px var(--color-primary);
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* -----------------------------------------------------------------------------
   Animations
   ----------------------------------------------------------------------------- */
@keyframes spin {
  to { transform: rotate(360deg); }
}

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

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.9) translateY(10px);
  }
  60% {
    opacity: 1;
    transform: scale(1.02) translateY(-2px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

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

@keyframes focusRing {
  0% {
    box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.4);
  }
  100% {
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
  }
}

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

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

@keyframes gentlePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}

/* Premium Micro-Interactions */
.btn-press {
  transition: transform 0.1s ease;
}

.btn-press:active {
  transform: scale(0.97);
}

/* AI Button Sparkle Effect */
.ai-sparkle svg {
  animation: sparkle 2s ease-in-out infinite;
}

/* Card Entrance Animation */
.card-animate {
  animation: slideInFromBottom 0.3s var(--ease-out-expo);
}

/* Stagger Animation for Lists */
.stagger-1 { animation-delay: 0.05s; }
.stagger-2 { animation-delay: 0.1s; }
.stagger-3 { animation-delay: 0.15s; }
.stagger-4 { animation-delay: 0.2s; }
.stagger-5 { animation-delay: 0.25s; }

/* Hover Lift Effect */
.hover-lift {
  transition: transform 0.2s var(--ease-out-expo), box-shadow 0.2s var(--ease-out-expo);
}

.hover-lift:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Focus Visible Ring */
.focus-ring:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--color-primary-bg), 0 0 0 4px var(--color-primary);
}

/* -----------------------------------------------------------------------------
   App Container
   ----------------------------------------------------------------------------- */
.app {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: var(--space-xl);
}

.app__container {
  width: 100%;
  max-width: var(--container-lg);
}

/* =============================================================================
   Email Suggestions Component
   ============================================================================= */

.email-suggestions {
  background-color: var(--color-surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  padding: var(--space-xl);
  min-height: 400px;
  border: 1px solid var(--color-border-light);
}

.email-suggestions__error {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-lg);
  background-color: var(--color-error-light);
  border: 1px solid var(--color-error-border);
  border-radius: var(--radius-md);
  color: var(--color-error);
  margin-bottom: var(--space-lg);
  font-size: var(--font-size-sm);
}

.email-suggestions__error-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: var(--color-error);
  color: white;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
}

/* Page Header title/subtitle handled in Settings Button section */

.email-suggestions__title {
  font-size: 28px;
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 var(--space-xs) 0;
  letter-spacing: -0.02em;
}

.email-suggestions__subtitle {
  font-size: var(--font-size-base);
  color: var(--color-text-secondary);
  margin: 0;
}


/* =============================================================================
   Chips
   ============================================================================= */

.chip {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
  white-space: nowrap;
  transition: all var(--transition-fast);
}

/* Category chip colors */
.chip--category-support {
  background: #dbeafe;
  color: #1d4ed8;
}

.chip--category-renewals {
  background: #f3e8ff;
  color: #7e22ce;
}

.chip--category-billing {
  background: #fef3c7;
  color: #b45309;
}

.chip--category-quotes {
  background: #cffafe;
  color: #0e7490;
}

/* Interactive chips (in filters) */
.chip--interactive {
  cursor: pointer;
  opacity: 0.6;
  border: 1px solid transparent;
}

.chip--interactive:hover {
  opacity: 0.8;
}

.chip--interactive.chip--selected {
  opacity: 1;
  border-color: currentColor;
  box-shadow: var(--shadow-sm);
}

/* Animated count badge */
.chip__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  margin-left: 6px;
  padding: 0 5px;
  background: currentColor;
  color: white;
  border-radius: var(--radius-full);
  font-size: 10px;
  font-weight: var(--font-weight-semibold);
  animation: countPop 0.3s var(--spring-bounce);
}

@keyframes countPop {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Dark mode chip adjustments */
@media (prefers-color-scheme: dark) {
  .chip--category-support {
    background: rgba(59, 130, 246, 0.2);
    color: #93c5fd;
  }
  .chip--category-renewals {
    background: rgba(168, 85, 247, 0.2);
    color: #d8b4fe;
  }
  .chip--category-billing {
    background: rgba(234, 179, 8, 0.2);
    color: #fde047;
  }
  .chip--category-quotes {
    background: rgba(6, 182, 212, 0.2);
    color: #67e8f9;
  }
}

/* =============================================================================
   Email Tabs
   ============================================================================= */

.email-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: var(--space-lg);
  background: var(--color-surface);
}

.email-tabs__tab {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-md);
  border: none;
  background: none;
  color: var(--color-text-secondary);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color var(--transition-fast), border-color var(--transition-fast);
}

.email-tabs__tab:hover {
  color: var(--color-text);
}

.email-tabs__tab--active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
  font-weight: var(--font-weight-semibold);
}

.email-tabs__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  background: var(--color-border);
  color: var(--color-text-secondary);
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: var(--font-weight-semibold);
}

.email-tabs__tab--active .email-tabs__count {
  background: var(--color-primary);
  color: white;
}

.email-tabs__count--zero {
  opacity: 0.5;
}

.email-tabs__tab--active .email-tabs__count--zero {
  background: rgba(255, 255, 255, 0.3);
}

/* Contact card header */
.email-contact-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
}

/* =============================================================================
   Email Contact List
   ============================================================================= */

.email-contact-list {
  display: flex;
  flex-direction: column;
  animation: fadeSlideIn 0.3s ease;
}

.email-contact-list--loading {
  min-height: 300px;
  justify-content: center;
}

.email-contact-list__loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
  padding: var(--space-3xl);
  animation: fadeSlideIn 0.3s ease;
}

.email-contact-list__loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--color-border-light);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.email-contact-list__loading-text {
  font-size: var(--font-size-base);
  color: var(--color-text-secondary);
  margin: 0;
}

/* Skeleton Loader Styles */
.skeleton {
  background: linear-gradient(
    90deg,
    var(--color-border-light) 25%,
    var(--color-border) 50%,
    var(--color-border-light) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: var(--radius-sm);
}

.skeleton-card {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.skeleton-card__avatar {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  flex-shrink: 0;
}

.skeleton-card__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.skeleton-card__name {
  height: 16px;
  width: 140px;
  border-radius: var(--radius-sm);
}

.skeleton-card__company {
  height: 12px;
  width: 100px;
  border-radius: var(--radius-sm);
}

.skeleton-card__reason {
  height: 14px;
  width: 100%;
  border-radius: var(--radius-sm);
}

.skeleton-card__reason--short {
  width: 70%;
}

.skeleton-card__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--space-sm);
  flex-shrink: 0;
}

.skeleton-card__time {
  height: 18px;
  width: 60px;
  border-radius: 100px;
}

.skeleton-card__cta {
  height: 16px;
  width: 80px;
  border-radius: var(--radius-sm);
}

.email-contact-list__skeleton-items {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

/* Staggered skeleton animation delays */
.email-contact-list__skeleton-items > *:nth-child(1) { animation-delay: 0s; }
.email-contact-list__skeleton-items > *:nth-child(2) { animation-delay: 0.1s; }
.email-contact-list__skeleton-items > *:nth-child(3) { animation-delay: 0.2s; }

.email-contact-list__skeleton-items > *:nth-child(1) .skeleton { animation-delay: 0s; }
.email-contact-list__skeleton-items > *:nth-child(2) .skeleton { animation-delay: 0.15s; }
.email-contact-list__skeleton-items > *:nth-child(3) .skeleton { animation-delay: 0.3s; }

.email-contact-list__header {
  display: flex;
  align-items: flex-start;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.email-contact-list__header-text {
  flex: 1;
}

.email-contact-list__title {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 var(--space-xs) 0;
  letter-spacing: -0.02em;
}

.email-contact-list__description {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  margin: 0;
  line-height: 1.5;
}

/* Cache info - Premium pill style */
.email-contact-list__cache-info {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: var(--color-border-light);
  border-radius: 100px;
  font-size: 12px;
  color: var(--color-text-muted);
  margin-left: auto;
  flex-shrink: 0;
}

.email-contact-list__cache-age {
  white-space: nowrap;
}

.email-contact-list__refresh {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--color-surface);
  border: none;
  border-radius: 100px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: var(--font-weight-semibold);
  color: var(--color-primary);
  cursor: pointer;
  transition: all 0.2s var(--ease-out-expo);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.email-contact-list__refresh:hover:not(:disabled) {
  background: var(--color-primary);
  color: white;
  transform: scale(1.02);
}

.email-contact-list__refresh:active:not(:disabled) {
  transform: scale(0.98);
}

.email-contact-list__refresh:disabled {
  color: var(--color-text-muted);
  cursor: wait;
}

.email-contact-list__refresh-spinner {
  width: 12px;
  height: 12px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

.email-contact-list__hint {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  margin: 0 0 var(--space-md) 0;
  padding-left: var(--space-xs);
}

.email-contact-list__items {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Staggered entrance for contact cards */
.email-contact-list__items > *:nth-child(1) { animation: fadeSlideIn 0.3s ease 0s both; }
.email-contact-list__items > *:nth-child(2) { animation: fadeSlideIn 0.3s ease 0.04s both; }
.email-contact-list__items > *:nth-child(3) { animation: fadeSlideIn 0.3s ease 0.08s both; }
.email-contact-list__items > *:nth-child(4) { animation: fadeSlideIn 0.3s ease 0.12s both; }
.email-contact-list__items > *:nth-child(5) { animation: fadeSlideIn 0.3s ease 0.16s both; }
.email-contact-list__items > *:nth-child(6) { animation: fadeSlideIn 0.3s ease 0.2s both; }
.email-contact-list__items > *:nth-child(7) { animation: fadeSlideIn 0.3s ease 0.24s both; }
.email-contact-list__items > *:nth-child(8) { animation: fadeSlideIn 0.3s ease 0.28s both; }
.email-contact-list__items > *:nth-child(9) { animation: fadeSlideIn 0.3s ease 0.32s both; }
.email-contact-list__items > *:nth-child(10) { animation: fadeSlideIn 0.3s ease 0.36s both; }

/* Empty State - Premium */
.email-contact-list__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
  padding: var(--space-3xl) var(--space-xl);
  text-align: center;
  animation: fadeSlideIn 0.4s ease;
}

.email-contact-list__empty-illustration {
  width: 180px;
  height: 140px;
  opacity: 0.9;
  animation: float 4s ease-in-out infinite;
}

.email-contact-list__empty-illustration svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.08));
}

.email-contact-list__empty h3,
.email-contact-list__empty-title {
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--color-text);
  margin: 0;
  letter-spacing: -0.01em;
}

.email-contact-list__empty p,
.email-contact-list__empty-text {
  font-size: var(--font-size-base);
  color: var(--color-text-secondary);
  margin: 0;
  max-width: 280px;
  line-height: 1.5;
}

/* Contact Cards - Premium shadow-only style */
.email-contact-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: var(--color-surface);
  border: none;
  border-radius: 14px;
  cursor: pointer;
  text-align: left;
  transition: all 0.25s var(--ease-out-expo);
  width: 100%;
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.08),
    0 4px 12px rgba(0, 0, 0, 0.04);
  transform: translateY(0) scale(1);
}

.email-contact-card:hover:not(:disabled) {
  transform: translateY(-4px) scale(1.008);
  box-shadow:
    0 12px 28px -8px rgba(99, 102, 241, 0.2),
    0 8px 16px -4px rgba(0, 0, 0, 0.08);
}

.email-contact-card:active:not(:disabled) {
  transform: scale(0.985);
  transition-duration: 0.1s;
}

.email-contact-card:disabled {
  cursor: wait;
  opacity: 0.7;
}

.email-contact-card--generating {
  background: linear-gradient(135deg, var(--color-primary-bg) 0%, var(--color-surface) 100%);
  box-shadow:
    0 0 0 2px var(--color-primary-light),
    0 8px 20px -4px rgba(99, 102, 241, 0.25);
  animation: pulse 2s ease-in-out infinite;
}

.email-contact-card__avatar {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-base);
  font-weight: 600;
  color: white;
  flex-shrink: 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.email-contact-card__content {
  flex: 1;
  min-width: 0;
}

.email-contact-card__name {
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-2xs);
  letter-spacing: -0.01em;
}

.email-contact-card__company {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-sm);
}

.email-contact-card__reason {
  font-size: var(--font-size-sm);
  color: var(--color-text);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.email-contact-card__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--space-sm);
  flex-shrink: 0;
}

.email-contact-card__time {
  font-size: 11px;
  font-weight: 500;
  color: var(--color-text-muted);
  background: var(--color-border-light);
  padding: 2px 8px;
  border-radius: 100px;
}

.email-contact-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--font-size-sm);
  color: var(--color-primary);
  font-weight: 500;
  transition: gap 0.15s ease;
}

.email-contact-card:hover .email-contact-card__cta {
  gap: 6px;
}

.email-contact-card__status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-primary);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(129, 140, 248, 0.05) 100%);
  border-radius: 10px;
  border: 1px solid rgba(99, 102, 241, 0.15);
  animation: pulse 2s ease-in-out infinite;
}

.email-contact-card__spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(99, 102, 241, 0.2);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

/* =============================================================================
   Email Draft - Premium Email Client Style
   ============================================================================= */

.email-draft {
  display: flex;
  flex-direction: column;
  animation: fadeSlideIn 0.3s ease;
}

.email-draft__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.email-draft__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  cursor: pointer;
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--color-text-secondary);
  transition: all 0.15s ease;
}

.email-draft__back:hover {
  background-color: var(--color-border-light);
  color: var(--color-text);
}

.email-draft__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0.05) 100%);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 100px;
  animation: scaleIn 0.3s ease 0.1s both;
}

.email-draft__badge-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
}

.email-draft__badge-icon svg {
  width: 14px;
  height: 14px;
  color: var(--color-success);
}

.email-draft__badge-text {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-success);
}

/* Streaming badge variant */
.email-draft__badge--streaming {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(99, 102, 241, 0.05) 100%);
  border-color: rgba(99, 102, 241, 0.2);
}

.email-draft__badge--streaming .email-draft__badge-icon svg {
  color: var(--color-primary);
  animation: pulse 1.5s ease-in-out infinite;
}

.email-draft__badge--streaming .email-draft__badge-text {
  color: var(--color-primary);
}

/* Typing cursor for streaming */
.email-draft__cursor {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  background: var(--color-primary);
  margin-left: 1px;
  vertical-align: text-bottom;
  animation: cursorBlink 1s step-end infinite;
}

@keyframes cursorBlink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* Email Card Container - Gmail/Outlook style */
.email-draft__card {
  background: var(--color-surface);
  border: none;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: var(--space-xl);
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.08),
    0 8px 24px rgba(0, 0, 0, 0.04);
  animation: scaleIn 0.3s ease 0.05s both;
}

/* Recipient Section - Email client style */
.email-draft__recipient {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-lg) var(--space-xl);
  background: linear-gradient(180deg, var(--color-surface) 0%, var(--color-border-light) 100%);
  border-bottom: 1px solid var(--color-border);
}

.email-draft__avatar {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-base);
  font-weight: 600;
  color: white;
  flex-shrink: 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.email-draft__recipient-info {
  flex: 1;
}

.email-draft__recipient-name {
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 2px;
  letter-spacing: -0.01em;
}

.email-draft__recipient-email {
  font-size: var(--font-size-sm);
  color: var(--color-primary);
  font-weight: 500;
}

.email-draft__recipient-company {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  margin-top: 2px;
}

/* Subject Line */
.email-draft__subject {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px var(--space-xl);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-surface);
}

.email-draft__subject-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.email-draft__subject-text {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: -0.01em;
}

/* Email Body */
.email-draft__body {
  padding: var(--space-xl);
  background: var(--color-surface);
}

.email-draft__paragraph {
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-text);
  margin: 0 0 var(--space-md) 0;
}

.email-draft__paragraph:last-child {
  margin-bottom: 0;
}

/* Tone Selector Pills */
.email-draft__tone-selector {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.email-draft__tone-label {
  font-size: 13px;
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-secondary);
  flex-shrink: 0;
}

.email-draft__tone-pills {
  display: flex;
  gap: var(--space-xs);
  flex-wrap: wrap;
}

.email-draft__tone-pill {
  padding: 8px 16px;
  font-size: 13px;
  font-weight: var(--font-weight-medium);
  color: var(--color-text-secondary);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s var(--ease-out-expo);
  white-space: nowrap;
}

.email-draft__tone-pill:hover:not(:disabled):not(.email-draft__tone-pill--active) {
  background: var(--color-border-light);
  color: var(--color-text);
  border-color: var(--color-border);
  transform: translateY(-1px);
}

.email-draft__tone-pill--active {
  background: linear-gradient(135deg, var(--color-primary) 0%, #7C3AED 100%);
  color: white;
  border-color: transparent;
  box-shadow:
    0 2px 8px rgba(99, 102, 241, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.email-draft__tone-pill--active:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow:
    0 4px 12px rgba(99, 102, 241, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.email-draft__tone-pill:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.email-draft__tone-pill:active:not(:disabled) {
  transform: scale(0.97);
  transition-duration: 0.1s;
}

/* Actions - Premium CTA */
.email-draft__actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.email-draft__send-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px var(--space-xl);
  background: linear-gradient(135deg, #4F46E5 0%, #6366F1 50%, #7C3AED 100%);
  background-size: 200% 200%;
  color: white;
  border-radius: 14px;
  text-decoration: none;
  font-size: 15px;
  font-weight: var(--font-weight-semibold);
  letter-spacing: -0.01em;
  transition: all 0.3s var(--ease-out-expo);
  box-shadow:
    0 4px 14px rgba(79, 70, 229, 0.35),
    0 0 0 0 rgba(99, 102, 241, 0),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.email-draft__send-btn:hover {
  transform: translateY(-3px) scale(1.01);
  background-position: 100% 50%;
  box-shadow:
    0 8px 25px rgba(79, 70, 229, 0.45),
    0 0 0 4px rgba(99, 102, 241, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.email-draft__send-btn:active {
  transform: translateY(-1px) scale(0.99);
  transition-duration: 0.1s;
  box-shadow:
    0 2px 8px rgba(79, 70, 229, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.email-draft__send-btn--disabled {
  opacity: 0.7;
  cursor: not-allowed;
  background: linear-gradient(135deg, #6b7280 0%, #9ca3af 100%);
  box-shadow: 0 2px 8px rgba(107, 114, 128, 0.2);
}

.email-draft__send-btn--disabled:hover,
.email-draft__send-btn--disabled:active {
  transform: none;
  box-shadow: 0 2px 8px rgba(107, 114, 128, 0.2);
}

.email-draft__send-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}

.email-draft__send-icon svg {
  width: 20px;
  height: 20px;
}

.email-draft__send-text {
  flex: 1;
  text-align: left;
}

.email-draft__send-arrow {
  font-size: var(--font-size-lg);
  opacity: 0.7;
  transition: transform 0.15s ease;
}

.email-draft__send-btn:hover .email-draft__send-arrow {
  transform: translateX(3px);
  opacity: 1;
}

.email-draft__secondary-actions {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
}

.email-draft__action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  cursor: pointer;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-secondary);
  transition: all 0.2s var(--ease-out-expo);
}

.email-draft__action-btn:hover {
  background-color: var(--color-surface);
  color: var(--color-primary);
  border-color: var(--color-primary-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.email-draft__action-btn:active {
  transform: scale(0.97);
  transition-duration: 0.1s;
}

.email-draft__action-btn svg {
  width: 16px;
  height: 16px;
}

.email-draft__hint {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  text-align: center;
  margin-top: var(--space-lg);
  opacity: 0.8;
}

/* Email Draft Skeleton */
.email-draft-skeleton {
  display: flex;
  flex-direction: column;
  animation: fadeSlideIn 0.3s ease;
}

.email-draft-skeleton__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-lg);
}

.email-draft-skeleton__back {
  height: 36px;
  width: 80px;
  border-radius: 8px;
}

.email-draft-skeleton__badge {
  height: 32px;
  width: 110px;
  border-radius: 100px;
}

.email-draft-skeleton__card {
  background: var(--color-surface);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: var(--space-xl);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 8px 24px rgba(0, 0, 0, 0.04);
}

.email-draft-skeleton__recipient {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-lg) var(--space-xl);
  background: linear-gradient(180deg, var(--color-surface) 0%, var(--color-border-light) 100%);
  border-bottom: 1px solid var(--color-border);
}

.email-draft-skeleton__avatar {
  width: 44px;
  height: 44px;
  border-radius: 10px;
}

.email-draft-skeleton__recipient-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.email-draft-skeleton__name {
  height: 16px;
  width: 140px;
}

.email-draft-skeleton__email {
  height: 14px;
  width: 180px;
}

.email-draft-skeleton__company {
  height: 12px;
  width: 100px;
}

.email-draft-skeleton__subject {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px var(--space-xl);
  border-bottom: 1px solid var(--color-border);
}

.email-draft-skeleton__subject-label {
  height: 10px;
  width: 50px;
}

.email-draft-skeleton__subject-text {
  height: 18px;
  width: 70%;
}

.email-draft-skeleton__body {
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.email-draft-skeleton__line {
  height: 14px;
  width: 100%;
}

.email-draft-skeleton__line--short {
  width: 85%;
}

.email-draft-skeleton__line--medium {
  width: 70%;
}

.email-draft-skeleton__actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.email-draft-skeleton__send-btn {
  height: 56px;
  width: 100%;
  border-radius: 14px;
}

.email-draft-skeleton__secondary {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
}

.email-draft-skeleton__action-btn {
  height: 40px;
  width: 130px;
  border-radius: 10px;
}

/* =============================================================================
   Responsive Styles
   ============================================================================= */

/* =============================================================================
   Login Screen
   ============================================================================= */

.login-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl);
  background: var(--color-bg);
}

.login-screen__container {
  width: 100%;
  max-width: 420px;
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  padding: var(--space-2xl);
  border: 1px solid var(--color-border-light);
  animation: bounceIn 0.4s var(--spring-smooth);
}

.login-screen__header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.login-screen__logo {
  display: inline-block;
  margin-bottom: var(--space-lg);
  filter: drop-shadow(0 4px 8px rgba(99, 102, 241, 0.25));
  animation: float 4s ease-in-out infinite;
}

.login-screen__logo svg {
  width: 56px;
  height: 56px;
}

.login-screen__title {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 var(--space-sm) 0;
  letter-spacing: -0.02em;
}

.login-screen__subtitle {
  font-size: var(--font-size-base);
  color: var(--color-text-secondary);
  margin: 0;
}

.login-screen__error {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-lg);
  background-color: var(--color-error-light);
  border: 1px solid var(--color-error-border);
  border-radius: var(--radius-md);
  color: var(--color-error);
  margin-bottom: var(--space-lg);
  font-size: var(--font-size-sm);
}

.login-screen__error-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: var(--color-error);
  color: white;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
}

.login-screen__form {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.login-screen__field {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.login-screen__label {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-text);
}

.login-screen__input {
  padding: 12px var(--space-lg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  font-size: var(--font-size-base);
  background: var(--color-surface);
  color: var(--color-text);
  transition: all 0.25s var(--ease-out-expo);
}

.login-screen__input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow:
    0 0 0 3px rgba(99, 102, 241, 0.15),
    0 0 20px rgba(99, 102, 241, 0.1);
}

.login-screen__input::placeholder {
  color: var(--color-text-muted);
}

.login-screen__input:disabled {
  background: var(--color-border-light);
  color: var(--color-text-muted);
  cursor: not-allowed;
}

.login-screen__submit {
  margin-top: var(--space-sm);
  padding: 14px var(--space-xl);
  background: linear-gradient(135deg, #4F46E5 0%, #6366F1 50%, #7C3AED 100%);
  background-size: 200% 200%;
  color: white;
  border: none;
  border-radius: var(--radius-lg);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  cursor: pointer;
  transition: all 0.3s var(--ease-out-expo);
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
}

.login-screen__submit:hover:not(:disabled) {
  transform: translateY(-2px) scale(1.01);
  background-position: 100% 50%;
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

.login-screen__submit:active:not(:disabled) {
  transform: scale(0.98);
  transition-duration: 0.1s;
}

.login-screen__submit:disabled {
  background: var(--color-border);
  color: var(--color-text-muted);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.login-screen__submit--loading {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
}

.login-screen__spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

.login-screen__divider {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin: var(--space-md) 0;
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
}

.login-screen__divider::before,
.login-screen__divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--color-border);
}

.login-screen__demo-btn {
  width: 100%;
  padding: var(--space-md) var(--space-lg);
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text);
  font-size: var(--font-size-md);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.login-screen__demo-btn:hover:not(:disabled) {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: rgba(99, 102, 241, 0.05);
}

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

.login-screen__demo-btn--primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, #4f46e5 100%);
  border: none;
  color: white;
  font-size: var(--font-size-lg);
  padding: var(--space-lg);
}

.login-screen__demo-btn--primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.login-screen__demo-hint {
  text-align: center;
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
  margin-top: var(--space-sm);
  margin-bottom: var(--space-md);
}

/* =============================================================================
   Settings Modal
   ============================================================================= */

.settings-modal {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl);
}

.settings-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: fadeSlideIn 0.25s var(--ease-out-expo);
}

.settings-modal__dialog {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: var(--color-surface);
  border-radius: 20px;
  box-shadow:
    0 25px 50px -12px rgba(0, 0, 0, 0.25),
    0 0 0 1px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--color-border-light);
  animation: bounceIn 0.35s var(--spring-smooth);
}

.settings-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg) var(--space-xl);
  border-bottom: 1px solid var(--color-border);
}

.settings-modal__title {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--color-text);
  margin: 0;
}

.settings-modal__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  border-radius: var(--radius-md);
  font-size: 24px;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.settings-modal__close:hover:not(:disabled) {
  background: var(--color-border-light);
  color: var(--color-text);
}

.settings-modal__close:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.settings-modal__error {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  background-color: var(--color-error-light);
  border-bottom: 1px solid var(--color-error-border);
  color: var(--color-error);
  font-size: var(--font-size-sm);
}

.settings-modal__error-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: var(--color-error);
  color: white;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
}

.settings-modal__form {
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.settings-modal__field {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.settings-modal__label {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-text);
}

.settings-modal__input {
  padding: 12px var(--space-lg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  font-size: var(--font-size-base);
  background: var(--color-surface);
  color: var(--color-text);
  transition: all 0.25s var(--ease-out-expo);
}

.settings-modal__input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow:
    0 0 0 3px rgba(99, 102, 241, 0.15),
    0 0 20px rgba(99, 102, 241, 0.1);
}

.settings-modal__input:disabled {
  background: var(--color-border-light);
  cursor: not-allowed;
}

.settings-modal__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: var(--space-md);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-border);
}

.settings-modal__actions-right {
  display: flex;
  gap: var(--space-sm);
}

.settings-modal__logout {
  padding: 10px 16px;
  background: transparent;
  border: 1px solid var(--color-error);
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--color-error);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.settings-modal__logout:hover:not(:disabled) {
  background: var(--color-error);
  color: white;
}

.settings-modal__logout:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.settings-modal__cancel {
  padding: 10px 16px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.settings-modal__cancel:hover:not(:disabled) {
  background: var(--color-border-light);
  color: var(--color-text);
}

.settings-modal__cancel:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.settings-modal__save {
  padding: 10px 20px;
  background: var(--color-primary);
  border: none;
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: white;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.settings-modal__save:hover:not(:disabled) {
  background: var(--color-primary-hover);
}

.settings-modal__save:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.settings-modal__save--loading {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
}

.settings-modal__spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

.settings-modal__dialog--demo {
  max-width: 400px;
}

.settings-modal__demo-content {
  padding: var(--space-xl);
  padding-top: 0;
}

.settings-modal__demo-text {
  color: var(--color-text-muted);
  font-size: var(--font-size-base);
  line-height: 1.6;
  margin: 0 0 var(--space-md) 0;
}

.settings-modal__demo-text:last-child {
  margin-bottom: 0;
}

/* =============================================================================
   Email Suggestions Header - Settings Button
   ============================================================================= */

.email-suggestions__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.email-suggestions__header-content {
  text-align: center;
  flex: 1;
}

.email-suggestions__logo {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  filter: drop-shadow(0 2px 4px rgba(99, 102, 241, 0.2));
  transition: transform var(--transition-fast);
}

.email-suggestions__logo:hover {
  transform: scale(1.05);
}

.email-suggestions__logo svg {
  width: 100%;
  height: 100%;
}

.email-suggestions__settings-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.email-suggestions__settings-btn:hover {
  background: var(--color-border-light);
  color: var(--color-text);
  border-color: var(--color-border);
}

.email-suggestions__settings-btn svg {
  width: 20px;
  height: 20px;
}

/* Main Navigation Tabs - Premium Design */
.email-suggestions__main-nav {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  margin-top: var(--space-md);
  padding: var(--space-xs);
  background: var(--color-border-light);
  border-radius: var(--radius-xl);
}

.email-suggestions__main-nav-tab {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 10px 18px;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-secondary);
  background: transparent;
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all 0.25s var(--ease-out-expo);
  position: relative;
}

.email-suggestions__main-nav-tab:hover:not(:disabled) {
  background: var(--color-surface);
  color: var(--color-text);
  box-shadow: var(--shadow-xs);
}

.email-suggestions__main-nav-tab--active {
  background: var(--color-surface);
  color: var(--color-primary);
  box-shadow: var(--shadow-md);
}

.email-suggestions__main-nav-tab--active::before {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 3px;
  background: var(--color-primary-gradient);
  border-radius: var(--radius-full);
}

.email-suggestions__main-nav-tab--active:hover:not(:disabled) {
  background: var(--color-surface);
  color: var(--color-primary);
}

.email-suggestions__main-nav-tab--disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.email-suggestions__main-nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  transition: transform 0.2s var(--ease-out-expo);
}

.email-suggestions__main-nav-tab:hover .email-suggestions__main-nav-icon {
  transform: scale(1.1);
}

.email-suggestions__main-nav-icon svg {
  width: 100%;
  height: 100%;
}

.email-suggestions__main-nav-label {
  white-space: nowrap;
  letter-spacing: var(--letter-spacing-tight);
}

.email-suggestions__main-nav-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  font-size: 11px;
  font-weight: var(--font-weight-bold);
  background: var(--color-primary);
  color: white;
  border-radius: var(--radius-full);
  box-shadow: 0 2px 4px rgba(99, 102, 241, 0.3);
}

.email-suggestions__main-nav-tab:not(.email-suggestions__main-nav-tab--active) .email-suggestions__main-nav-count {
  background: var(--color-text-muted);
  color: white;
  box-shadow: none;
}

.email-suggestions__coming-soon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-3xl) var(--space-xl);
  text-align: center;
  min-height: 300px;
}

.email-suggestions__coming-soon-icon {
  color: var(--color-text-muted);
  margin-bottom: var(--space-lg);
  opacity: 0.5;
}

.email-suggestions__coming-soon-title {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
  margin: 0 0 var(--space-sm) 0;
}

.email-suggestions__coming-soon-text {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: var(--color-primary);
  color: white;
  border-radius: var(--radius-full);
  margin: 0 0 var(--space-md) 0;
}

.email-suggestions__coming-soon-desc {
  font-size: var(--font-size-base);
  color: var(--color-text-muted);
  max-width: 400px;
  margin: 0;
  line-height: 1.5;
}

/* =============================================================================
   Meeting Prep Tab - Premium Demo Design
   ============================================================================= */

.meeting-prep {
  padding: var(--space-lg);
}

.meeting-prep__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-xl);
}

.meeting-prep__date {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
  margin: 0;
}

.meeting-prep__demo-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 6px 12px;
  font-size: 11px;
  font-weight: var(--font-weight-semibold);
  color: #b45309;
  background: #fef3c7;
  border-radius: var(--radius-full);
}

.meeting-prep__demo-dot {
  width: 6px;
  height: 6px;
  background: #f59e0b;
  border-radius: 50%;
}

.meeting-prep__section {
  margin-bottom: var(--space-xl);
}

.meeting-prep__section-title {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 var(--space-md) 0;
}

/* Meeting Card */
.meeting-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-bottom: var(--space-md);
  transition: all 0.2s var(--ease-out-expo);
}

.meeting-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--color-border-light);
}

.meeting-card--next {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.03) 0%, rgba(139, 92, 246, 0.05) 100%);
  border: 2px solid var(--color-primary);
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.15);
}

.meeting-card--next:hover {
  box-shadow: 0 6px 24px rgba(99, 102, 241, 0.2);
}

.meeting-card__next-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-primary);
  background: var(--color-primary-bg);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-md);
}

.meeting-card__next-dot {
  width: 6px;
  height: 6px;
  background: var(--color-primary);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.meeting-card__header {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.meeting-card__type-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--color-primary-bg);
  color: var(--color-primary);
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.meeting-card__type-icon svg {
  width: 20px;
  height: 20px;
}

.meeting-card__title-group {
  flex: 1;
  min-width: 0;
}

.meeting-card__title {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
  margin: 0 0 4px 0;
}

.meeting-card__meta {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
}

.meeting-card__divider {
  color: var(--color-text-muted);
}

.meeting-card__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.meeting-card__attendees {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.meeting-prep__avatar-stack {
  display: flex;
  align-items: center;
}

.meeting-prep__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: var(--font-weight-bold);
  color: white;
  border: 2px solid var(--color-surface);
  margin-left: -8px;
}

.meeting-prep__avatar:first-child {
  margin-left: 0;
}

.meeting-prep__avatar--more {
  background: var(--color-text-muted);
  font-size: 10px;
}

.meeting-card__attendee-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.meeting-card__attendee-names {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-text);
}

.meeting-card__attendee-company {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

.meeting-card__deal {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 6px 12px;
  background: var(--color-border-light);
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  width: fit-content;
}

.meeting-card__deal-icon {
  display: flex;
  align-items: center;
  color: var(--color-text-muted);
}

.meeting-card__deal-icon svg {
  width: 14px;
  height: 14px;
}

.meeting-card__deal-value {
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
}

.meeting-card__deal-name {
  color: var(--color-text-secondary);
}

.meeting-card__actions {
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-border-light);
}

.meeting-card__prep-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 10px 20px;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-secondary);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s var(--ease-out-expo);
}

.meeting-card__prep-btn:hover {
  background: var(--color-border-light);
  color: var(--color-text);
}

.meeting-card__prep-btn--primary {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.meeting-card__prep-btn--primary:hover {
  background: var(--color-primary-hover);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.meeting-card__prep-icon {
  display: flex;
  align-items: center;
}

.meeting-card__prep-icon svg {
  width: 16px;
  height: 16px;
}

/* Meeting Prep Detail View */
.meeting-prep-detail {
  padding: var(--space-lg);
}

.meeting-prep-detail__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-xl);
}

.meeting-prep-detail__back {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 8px 16px;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-secondary);
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s var(--ease-out-expo);
}

.meeting-prep-detail__back:hover {
  background: var(--color-border-light);
  color: var(--color-text);
}

.meeting-prep-detail__back svg {
  width: 16px;
  height: 16px;
}

.meeting-prep-detail__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 6px 14px;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-success-dark);
  background: var(--color-success-bg);
  border-radius: var(--radius-full);
}

.meeting-prep-detail__badge svg {
  width: 16px;
  height: 16px;
}

.meeting-prep-detail__hero {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  padding: var(--space-xl);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(139, 92, 246, 0.08) 100%);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-xl);
}

.meeting-prep-detail__type-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: var(--color-primary);
  color: white;
  border-radius: var(--radius-lg);
  flex-shrink: 0;
}

.meeting-prep-detail__type-icon svg {
  width: 28px;
  height: 28px;
}

.meeting-prep-detail__title-group {
  flex: 1;
}

.meeting-prep-detail__title {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
  margin: 0 0 var(--space-xs) 0;
}

.meeting-prep-detail__meta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--font-size-base);
  color: var(--color-text-secondary);
}

.meeting-prep-detail__divider {
  color: var(--color-text-muted);
}

.meeting-prep-detail__attendees-section {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.meeting-prep-detail__attendees-header {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: var(--space-md);
}

.meeting-prep-detail__attendees-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.meeting-prep-detail__attendee {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.meeting-prep-detail__attendee-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: var(--font-weight-bold);
  color: white;
}

.meeting-prep-detail__attendee-info {
  display: flex;
  flex-direction: column;
}

.meeting-prep-detail__attendee-name {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-text);
}

.meeting-prep-detail__attendee-company {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
}

.meeting-prep-detail__deal-section {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-lg);
  background: var(--color-border-light);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-xl);
}

.meeting-prep-detail__deal-icon {
  display: flex;
  align-items: center;
  color: var(--color-text-muted);
}

.meeting-prep-detail__deal-icon svg {
  width: 18px;
  height: 18px;
}

.meeting-prep-detail__deal-value {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
}

.meeting-prep-detail__deal-name {
  font-size: var(--font-size-base);
  color: var(--color-text-secondary);
}

.meeting-prep-detail__content {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
}

.meeting-prep-detail__section-title {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
  margin: var(--space-xl) 0 var(--space-md) 0;
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--color-primary-bg);
}

.meeting-prep-detail__section-title:first-child {
  margin-top: 0;
}

.meeting-prep-detail__paragraph {
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--color-text-secondary);
  margin: 0 0 var(--space-sm) 0;
}

.meeting-prep-detail__paragraph strong {
  color: var(--color-text);
  font-weight: var(--font-weight-semibold);
}

.meeting-prep-detail__list {
  margin: 0 0 var(--space-md) 0;
  padding-left: var(--space-xl);
  list-style: disc;
}

.meeting-prep-detail__list li {
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-xs);
}

/* Meeting Prep - Skeleton Loading */
.meeting-prep-detail--skeleton .meeting-prep-detail__content {
  min-height: 400px;
}

.skeleton-block {
  background: linear-gradient(90deg, var(--color-border-light) 25%, var(--color-surface) 50%, var(--color-border-light) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
  border-radius: var(--radius-md);
}

.skeleton-block--icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  flex-shrink: 0;
}

.skeleton-block--title {
  height: 24px;
  width: 60%;
  margin-bottom: var(--space-sm);
}

.skeleton-block--meta {
  height: 16px;
  width: 40%;
}

.skeleton-block--section {
  height: 20px;
  width: 35%;
  margin: var(--space-xl) 0 var(--space-md) 0;
}

.skeleton-block--text {
  height: 16px;
  width: 100%;
  margin-bottom: var(--space-sm);
}

.skeleton-block--text-short {
  width: 70%;
}

/* Loading banner shown above skeleton content while data is being fetched */
.kai-loading-banner {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  margin-bottom: var(--space-md);
  background: var(--color-primary-bg);
  border: 1px solid var(--color-primary-light);
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-primary);
  animation: fadeSlideIn 0.25s ease;
}

/* Global loading banner (visible across tabs) */
.kai-loading-banner--global {
  margin: var(--space-md) var(--space-md) 0 var(--space-md);
  position: relative;
  z-index: 5;
}

@keyframes skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Meeting Prep - Badge States */
.meeting-prep-detail__badge--generating {
  background: linear-gradient(135deg, var(--color-primary) 0%, #8b5cf6 100%);
  color: white;
  animation: badge-pulse 2s infinite;
}

.meeting-prep-detail__badge-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes badge-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.85; }
}

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

/* Meeting Prep - Streaming Cursor */
.meeting-prep-detail__cursor {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  background: var(--color-primary);
  margin-left: 2px;
  animation: cursor-blink 1s infinite;
  vertical-align: text-bottom;
}

@keyframes cursor-blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* Meeting Card - Spinner */
.meeting-card__spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(99, 102, 241, 0.3);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: inline-block;
}

.meeting-card__prep-btn:disabled {
  opacity: 0.8;
  cursor: not-allowed;
}

/* Dark mode adjustments for Meeting Prep */
@media (prefers-color-scheme: dark) {
  .meeting-prep__demo-badge {
    background: rgba(245, 158, 11, 0.15);
    color: #fcd34d;
  }

  .meeting-prep__demo-dot {
    background: #fcd34d;
  }

  .meeting-card--next {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.15) 100%);
  }

  .meeting-prep-detail__hero {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.15) 100%);
  }
}

/* =============================================================================
   Responsive Styles - Mobile First
   ============================================================================= */

/* Mobile (default, < 640px) */
@media (max-width: 639px) {
  .app {
    padding: var(--space-md);
  }

  .email-suggestions {
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
  }

  .email-suggestions__title {
    font-size: var(--font-size-xl);
  }

  .email-tabs {
    gap: var(--space-xs);
    padding-bottom: var(--space-xs);
  }

  .email-tab {
    padding: 8px 14px;
    font-size: 12px;
  }

  .email-contact-list__header {
    flex-direction: column;
    gap: var(--space-md);
  }

  .email-contact-list__cache-info {
    margin-left: 0;
    width: 100%;
    justify-content: space-between;
  }

  .email-contact-card {
    padding: var(--space-md);
  }

  .email-contact-card__avatar {
    width: 40px;
    height: 40px;
    font-size: 12px;
  }

  .email-draft__header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-sm);
  }

  .email-draft__card {
    border-radius: var(--radius-lg);
  }

  .email-draft__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .email-draft__send-btn {
    justify-content: center;
    text-align: center;
    padding: 14px var(--space-lg);
  }

  .email-draft__secondary-actions {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
  }

  .email-draft__action-btn {
    flex: 1;
    justify-content: center;
    min-width: 120px;
  }

  .login-screen {
    padding: var(--space-md);
  }

  .login-screen__container {
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
  }

  .settings-modal {
    padding: var(--space-md);
  }

  .settings-modal__dialog {
    max-height: calc(100vh - 24px);
    border-radius: var(--radius-lg);
  }

  .skeleton-card {
    padding: var(--space-md);
  }

  .skeleton-card__avatar {
    width: 40px;
    height: 40px;
  }
}

/* Tablet (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
  .app__container {
    max-width: 720px;
  }

  .email-suggestions {
    padding: var(--space-xl);
  }

  .email-tabs {
    justify-content: center;
  }

  .email-contact-list__header {
    flex-direction: row;
    align-items: center;
  }
}

/* Desktop (1024px+) */
@media (min-width: 1024px) {
  .app__container {
    max-width: var(--container-lg);
  }

  .email-suggestions {
    padding: var(--space-2xl);
  }

  .email-suggestions__title {
    font-size: 28px;
  }
}

/* Large screens (1280px+) */
@media (min-width: 1280px) {
  .app__container {
    max-width: var(--container-xl);
  }

  .email-suggestions {
    padding: var(--space-2xl) var(--space-3xl);
  }

  .email-contact-card {
    padding: var(--space-xl);
  }

  .email-contact-card__avatar {
    width: 52px;
    height: 52px;
    font-size: var(--font-size-lg);
  }
}

/* =============================================================================
   Contact Card Action Buttons - Premium Design
   ============================================================================= */

.email-contact-card__actions {
  display: flex;
  flex-direction: row;
  gap: var(--space-sm);
  flex-shrink: 0;
  align-items: center;
}

.email-contact-card__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.25s var(--ease-out-expo);
  border: none;
  min-width: 90px;
  position: relative;
  overflow: hidden;
}

.email-contact-card__action::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.email-contact-card__action:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none !important;
}

.email-contact-card__action-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.email-contact-card__action-icon svg {
  width: 14px;
  height: 14px;
}

.email-contact-card__action-text {
  letter-spacing: -0.01em;
}

/* Email button - Indigo gradient */
.email-contact-card__action--email {
  background: linear-gradient(135deg, #6366f1 0%, #818cf8 100%);
  color: white;
  box-shadow:
    0 2px 8px rgba(99, 102, 241, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.email-contact-card__action--email:hover:not(:disabled) {
  transform: translateY(-2px) scale(1.02);
  box-shadow:
    0 6px 20px rgba(99, 102, 241, 0.4),
    0 0 0 3px rgba(99, 102, 241, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.email-contact-card__action--email:active:not(:disabled) {
  transform: translateY(0) scale(0.98);
  transition-duration: 0.1s;
}

/* Call button - Emerald gradient */
.email-contact-card__action--call {
  background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
  color: white;
  box-shadow:
    0 2px 8px rgba(16, 185, 129, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.email-contact-card__action--call:hover:not(:disabled) {
  transform: translateY(-2px) scale(1.02);
  box-shadow:
    0 6px 20px rgba(16, 185, 129, 0.4),
    0 0 0 3px rgba(16, 185, 129, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.email-contact-card__action--call:active:not(:disabled) {
  transform: translateY(0) scale(0.98);
  transition-duration: 0.1s;
}

/* Responsive: Stack on mobile */
@media (max-width: 480px) {
  .email-contact-card__actions {
    flex-direction: column;
    gap: var(--space-xs);
  }

  .email-contact-card__action {
    min-width: 80px;
    padding: 8px 14px;
  }
}

/* =============================================================================
   Call Prep Draft - Premium Style
   ============================================================================= */

.call-prep-draft {
  display: flex;
  flex-direction: column;
  animation: fadeSlideIn 0.3s ease;
}

.call-prep-draft__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.call-prep-draft__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  cursor: pointer;
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--color-text-secondary);
  transition: all 0.15s ease;
}

.call-prep-draft__back:hover {
  background-color: var(--color-border-light);
  color: var(--color-text);
}

.call-prep-draft__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0.05) 100%);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 100px;
  animation: scaleIn 0.3s ease 0.1s both;
}

.call-prep-draft__badge-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
}

.call-prep-draft__badge-icon svg {
  width: 14px;
  height: 14px;
  color: var(--color-success);
}

.call-prep-draft__badge-text {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-success);
}

/* Streaming badge variant */
.call-prep-draft__badge--streaming {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(99, 102, 241, 0.05) 100%);
  border-color: rgba(99, 102, 241, 0.2);
}

.call-prep-draft__badge--streaming .call-prep-draft__badge-icon svg {
  color: var(--color-primary);
  animation: pulse 1.5s ease-in-out infinite;
}

.call-prep-draft__badge--streaming .call-prep-draft__badge-text {
  color: var(--color-primary);
}

/* Typing cursor for streaming */
.call-prep-draft__cursor {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  background: var(--color-primary);
  margin-left: 1px;
  vertical-align: text-bottom;
  animation: cursorBlink 1s step-end infinite;
}

/* Call Prep Card Container */
.call-prep-draft__card {
  background: var(--color-surface);
  border: none;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: var(--space-xl);
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.08),
    0 8px 24px rgba(0, 0, 0, 0.04);
  animation: scaleIn 0.3s ease 0.05s both;
}

/* Recipient Section */
.call-prep-draft__recipient {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-lg) var(--space-xl);
  background: linear-gradient(180deg, var(--color-surface) 0%, var(--color-border-light) 100%);
  border-bottom: 1px solid var(--color-border);
}

.call-prep-draft__avatar {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-base);
  font-weight: 600;
  color: white;
  flex-shrink: 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.call-prep-draft__recipient-info {
  flex: 1;
}

.call-prep-draft__recipient-name {
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 2px;
  letter-spacing: -0.01em;
}

.call-prep-draft__recipient-email {
  font-size: var(--font-size-sm);
  color: var(--color-primary);
  font-weight: 500;
}

.call-prep-draft__recipient-company {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  margin-top: 2px;
}

/* Call Prep Content */
.call-prep-draft__content {
  padding: var(--space-xl);
  background: var(--color-surface);
}

.call-prep-draft__section-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 var(--space-sm) 0;
  padding-bottom: var(--space-xs);
  border-bottom: 2px solid var(--color-primary-bg);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.call-prep-draft__section-title:not(:first-child) {
  margin-top: var(--space-lg);
}

.call-prep-draft__list {
  margin: 0 0 var(--space-md) 0;
  padding-left: var(--space-lg);
  list-style: disc;
}

.call-prep-draft__list-item {
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-text);
  margin-bottom: var(--space-xs);
}

.call-prep-draft__paragraph {
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-text);
  margin: 0 0 var(--space-md) 0;
}

/* Actions */
.call-prep-draft__actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.call-prep-draft__done-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px var(--space-xl);
  background: linear-gradient(135deg, #059669 0%, #10b981 50%, #34d399 100%);
  background-size: 200% 200%;
  color: white;
  border: none;
  border-radius: 14px;
  font-size: 15px;
  font-weight: var(--font-weight-semibold);
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: all 0.3s var(--ease-out-expo);
  box-shadow:
    0 4px 14px rgba(16, 185, 129, 0.35),
    0 0 0 0 rgba(16, 185, 129, 0),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.call-prep-draft__done-btn:hover:not(:disabled) {
  transform: translateY(-3px) scale(1.01);
  background-position: 100% 50%;
  box-shadow:
    0 8px 25px rgba(16, 185, 129, 0.45),
    0 0 0 4px rgba(16, 185, 129, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.call-prep-draft__done-btn:active:not(:disabled) {
  transform: translateY(-1px) scale(0.99);
  transition-duration: 0.1s;
  box-shadow:
    0 2px 8px rgba(16, 185, 129, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.call-prep-draft__done-btn--disabled {
  opacity: 0.7;
  cursor: not-allowed;
  background: linear-gradient(135deg, #6b7280 0%, #9ca3af 100%);
  box-shadow: 0 2px 8px rgba(107, 114, 128, 0.2);
}

.call-prep-draft__done-btn--disabled:hover,
.call-prep-draft__done-btn--disabled:active {
  transform: none;
  box-shadow: 0 2px 8px rgba(107, 114, 128, 0.2);
}

.call-prep-draft__done-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}

.call-prep-draft__done-icon svg {
  width: 20px;
  height: 20px;
}

.call-prep-draft__done-text {
  flex: 1;
  text-align: center;
}

/* Call Prep Draft Skeleton */
.call-prep-draft-skeleton {
  display: flex;
  flex-direction: column;
  animation: fadeSlideIn 0.3s ease;
}

.call-prep-draft-skeleton__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-lg);
}

.call-prep-draft-skeleton__badge {
  height: 32px;
  width: 130px;
  border-radius: 100px;
}

.call-prep-draft-skeleton__card {
  background: var(--color-surface);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: var(--space-xl);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 8px 24px rgba(0, 0, 0, 0.04);
}

.call-prep-draft-skeleton__recipient {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-lg) var(--space-xl);
  background: linear-gradient(180deg, var(--color-surface) 0%, var(--color-border-light) 100%);
  border-bottom: 1px solid var(--color-border);
}

.call-prep-draft-skeleton__avatar {
  width: 44px;
  height: 44px;
  border-radius: 10px;
}

.call-prep-draft-skeleton__recipient-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.call-prep-draft-skeleton__name {
  height: 16px;
  width: 140px;
}

.call-prep-draft-skeleton__email {
  height: 14px;
  width: 180px;
}

.call-prep-draft-skeleton__company {
  height: 12px;
  width: 100px;
}

.call-prep-draft-skeleton__content {
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.call-prep-draft-skeleton__section-title {
  height: 14px;
  width: 120px;
}

.call-prep-draft-skeleton__line {
  height: 14px;
  width: 100%;
}

.call-prep-draft-skeleton__line--short {
  width: 85%;
}

.call-prep-draft-skeleton__actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.call-prep-draft-skeleton__action-btn {
  height: 56px;
  width: 100%;
  border-radius: 14px;
}

/* =============================================================================
   Deals Tab - Pipeline Intelligence
   ============================================================================= */

/* Risk level colors */
:root {
  --color-risk-critical: #dc2626;
  --color-risk-critical-bg: #fef2f2;
  --color-risk-critical-border: #fecaca;
  --color-risk-high: #ea580c;
  --color-risk-high-bg: #fff7ed;
  --color-risk-high-border: #fed7aa;
  --color-risk-medium: #ca8a04;
  --color-risk-medium-bg: #fefce8;
  --color-risk-medium-border: #fef08a;
  --color-risk-low: #16a34a;
  --color-risk-low-bg: #f0fdf4;
  --color-risk-low-border: #bbf7d0;
}

/* -----------------------------------------------------------------------------
   Deals Tab Error
   ----------------------------------------------------------------------------- */
.deals-tab__error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-3xl);
  text-align: center;
  gap: var(--space-lg);
}

.deals-tab__error h3 {
  margin: 0;
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
}

.deals-tab__error p {
  margin: 0;
  font-size: var(--font-size-base);
  color: var(--color-text-secondary);
}

.deals-tab__error button {
  padding: var(--space-md) var(--space-xl);
  background: var(--color-primary);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.deals-tab__error button:hover {
  background: var(--color-primary-hover);
}

/* -----------------------------------------------------------------------------
   PREMIUM DEALS - Health Gauge
   ----------------------------------------------------------------------------- */
.health-gauge {
  position: relative;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.health-gauge__svg {
  width: 100%;
  height: 100%;
  transform: rotate(0deg);
}

.health-gauge__track {
  stroke: var(--color-border);
  opacity: 0.3;
}

.health-gauge__progress {
  transition: stroke-dashoffset 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.health-gauge--critical .health-gauge__progress {
  stroke: var(--color-danger);
}

.health-gauge--high .health-gauge__progress {
  stroke: var(--color-warning);
}

.health-gauge--medium .health-gauge__progress {
  stroke: #f59e0b;
}

.health-gauge--low .health-gauge__progress {
  stroke: var(--color-success);
}

.health-gauge__value {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
}

/* -----------------------------------------------------------------------------
   PREMIUM DEALS - Pipeline Summary
   ----------------------------------------------------------------------------- */
.pipeline-summary {
  display: grid;
  grid-template-columns: 1fr 1fr 2fr;
  gap: var(--space-lg);
  padding: var(--space-lg);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.03) 0%, rgba(139, 92, 246, 0.03) 100%);
  border: 1px solid rgba(99, 102, 241, 0.1);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-lg);
}

.pipeline-summary__metric {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  background: white;
  border-radius: var(--radius-md);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.pipeline-summary__icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
}

.pipeline-summary__icon svg {
  width: 20px;
  height: 20px;
}

.pipeline-summary__metric--primary .pipeline-summary__icon {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
}

.pipeline-summary__metric--warning .pipeline-summary__icon {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
}

.pipeline-summary__data {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pipeline-summary__value {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
  line-height: 1.2;
}

.pipeline-summary__label {
  font-size: var(--font-size-xs);
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pipeline-summary__breakdown {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md);
  background: white;
  border-radius: var(--radius-md);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.pipeline-summary__bar {
  height: 8px;
  background: var(--color-bg-secondary);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
}

.pipeline-summary__bar-segment {
  height: 100%;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.pipeline-summary__bar-segment--healthy {
  background: linear-gradient(90deg, #10b981 0%, #34d399 100%);
}

.pipeline-summary__bar-segment--at-risk {
  background: linear-gradient(90deg, #f59e0b 0%, #ef4444 100%);
}

.pipeline-summary__bar-labels {
  display: flex;
  justify-content: space-between;
}

.pipeline-summary__bar-label {
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
}

.pipeline-summary__bar-label--healthy {
  color: var(--color-success);
}

.pipeline-summary__bar-label--at-risk {
  color: var(--color-warning);
}

/* -----------------------------------------------------------------------------
   PREMIUM DEALS - Deal Cards
   ----------------------------------------------------------------------------- */
.deal-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: all 0.2s ease;
  overflow: hidden;
}

.deal-card:hover {
  border-color: var(--color-primary);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.1);
  transform: translateY(-1px);
}

.deal-card--generating {
  border-color: var(--color-primary);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.02) 0%, rgba(139, 92, 246, 0.02) 100%);
}

/* Risk indicator bar */
.deal-card__risk-bar {
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  border-radius: 4px 0 0 4px;
}

.deal-card__risk-bar--critical {
  background: linear-gradient(180deg, #ef4444 0%, #dc2626 100%);
}

.deal-card__risk-bar--high {
  background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%);
}

.deal-card__risk-bar--medium {
  background: linear-gradient(180deg, #fbbf24 0%, #f59e0b 100%);
}

.deal-card__risk-bar--low {
  background: linear-gradient(180deg, #10b981 0%, #059669 100%);
}

.deal-card__content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.deal-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-md);
}

.deal-card__name {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
  line-height: 1.3;
}

.deal-card__time {
  font-size: var(--font-size-xs);
  color: var(--color-text-tertiary);
  white-space: nowrap;
}

.deal-card__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-xs);
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
}

.deal-card__value {
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
}

.deal-card__divider {
  color: var(--color-text-tertiary);
}

.deal-card__stage {
  color: var(--color-text-secondary);
}

.deal-card__days {
  color: var(--color-text-tertiary);
}

.deal-card__signals {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-top: var(--space-xs);
}

.deal-card__signal {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  background: rgba(239, 68, 68, 0.08);
  color: var(--color-danger);
  font-size: var(--font-size-xs);
  border-radius: var(--radius-full);
}

.deal-card__signal-dot {
  width: 4px;
  height: 4px;
  background: currentColor;
  border-radius: 50%;
}

.deal-card__recommendation {
  display: flex;
  align-items: flex-start;
  gap: var(--space-xs);
  padding: var(--space-sm);
  background: rgba(99, 102, 241, 0.04);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  line-height: 1.4;
  margin-top: var(--space-xs);
}

.deal-card__recommendation-icon {
  flex-shrink: 0;
}

.deal-card__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--space-sm);
  margin-left: var(--space-md);
}

.deal-card__action {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-md);
  background: linear-gradient(135deg, var(--color-primary) 0%, #7c3aed 100%);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.deal-card__action:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.deal-card__action:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.deal-card__action-icon {
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.deal-card__action-icon svg {
  width: 14px;
  height: 14px;
}

.deal-card__status {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-md);
  color: var(--color-primary);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
}

.deal-card__spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(99, 102, 241, 0.2);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* -----------------------------------------------------------------------------
   PREMIUM DEALS - List Styles
   ----------------------------------------------------------------------------- */
.deals-list__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-lg);
}

.deals-list__header-text {
  display: flex;
  align-items: baseline;
  gap: var(--space-md);
}

.deals-list__title {
  margin: 0;
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
}

.deals-list__count {
  font-size: var(--font-size-sm);
  color: var(--color-text-tertiary);
  font-weight: var(--font-weight-medium);
}

.deals-list__cache-info {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.deals-list__cache-age {
  font-size: var(--font-size-xs);
  color: var(--color-text-tertiary);
}

.deals-list__refresh {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-sm);
  background: transparent;
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--font-size-xs);
  cursor: pointer;
  transition: all 0.15s ease;
}

.deals-list__refresh svg {
  width: 12px;
  height: 12px;
}

.deals-list__refresh:hover:not(:disabled) {
  background: var(--color-bg-secondary);
  border-color: var(--color-text-tertiary);
}

.deals-list__refresh:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.deals-list__refresh-spinner {
  width: 12px;
  height: 12px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

.deals-list__filters {
  display: flex;
  gap: var(--space-xs);
  margin-bottom: var(--space-lg);
  padding: var(--space-xs);
  background: var(--color-bg-secondary);
  border-radius: var(--radius-lg);
}

.deals-list__filter-btn {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-md);
  background: transparent;
  border: none;
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
}

.deals-list__filter-btn:hover {
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.5);
}

.deals-list__filter-btn--active {
  background: white;
  color: var(--color-text);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.deals-list__filter-btn--critical.deals-list__filter-btn--active {
  color: var(--color-danger);
}

.deals-list__filter-btn--high.deals-list__filter-btn--active {
  color: var(--color-warning);
}

.deals-list__filter-btn--medium.deals-list__filter-btn--active {
  color: #f59e0b;
}

.deals-list__filter-btn--low.deals-list__filter-btn--active {
  color: var(--color-success);
}

.deals-list__filter-count {
  padding: 2px 6px;
  background: rgba(0, 0, 0, 0.06);
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
}

.deals-list__filter-btn--active .deals-list__filter-count {
  background: rgba(0, 0, 0, 0.08);
}

.deals-list__items {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.deals-list__item {
  margin: 0;
}

/* -----------------------------------------------------------------------------
   PREMIUM DEALS - Skeleton Loading
   ----------------------------------------------------------------------------- */
.deals-list__skeleton-items {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.deal-card-skeleton {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.deal-card-skeleton__score {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

.deal-card-skeleton__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.deal-card-skeleton__name {
  width: 60%;
  height: 20px;
  border-radius: var(--radius-sm);
}

.deal-card-skeleton__meta {
  width: 40%;
  height: 14px;
  border-radius: var(--radius-sm);
}

.deal-card-skeleton__signals {
  width: 80%;
  height: 24px;
  border-radius: var(--radius-sm);
}

.deal-card-skeleton__action {
  width: 100px;
  height: 36px;
  border-radius: var(--radius-md);
}

/* -----------------------------------------------------------------------------
   PREMIUM DEALS - First Time Loading
   ----------------------------------------------------------------------------- */
.deals-list__first-load {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-3xl);
  text-align: center;
  gap: var(--space-lg);
}

.deals-list__first-load-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid rgba(99, 102, 241, 0.2);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.deals-list__first-load h3 {
  margin: 0;
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
}

.deals-list__first-load p {
  margin: 0;
  font-size: var(--font-size-base);
  color: var(--color-text-secondary);
  max-width: 300px;
}

/* -----------------------------------------------------------------------------
   PREMIUM DEALS - Empty State
   ----------------------------------------------------------------------------- */
.deals-list__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-3xl);
  text-align: center;
  gap: var(--space-lg);
}

.deals-list__empty-illustration {
  width: 200px;
  height: 160px;
}

.deals-list__empty-illustration svg {
  width: 100%;
  height: 100%;
}

.deals-list__empty-title {
  margin: 0;
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
}

.deals-list__empty-text {
  margin: 0;
  font-size: var(--font-size-base);
  color: var(--color-text-secondary);
}

/* -----------------------------------------------------------------------------
   PREMIUM DEAL INSIGHTS
   ----------------------------------------------------------------------------- */
.deal-insights {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  max-width: 800px;
  margin: 0 auto;
}

.deal-insights__back {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-md);
  background: transparent;
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  cursor: pointer;
  transition: all 0.15s ease;
  width: fit-content;
}

.deal-insights__back svg {
  width: 16px;
  height: 16px;
}

.deal-insights__back:hover {
  background: var(--color-bg-secondary);
  border-color: var(--color-text-tertiary);
}

/* Hero Section */
.deal-insights__hero {
  position: relative;
  padding: var(--space-xl);
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
  border-radius: var(--radius-xl);
  color: white;
  overflow: hidden;
}

.deal-insights__hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.deal-insights__hero-content {
  position: relative;
  z-index: 1;
}

.deal-insights__hero-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.deal-insights__hero-info {
  flex: 1;
}

.deal-insights__deal-name {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  margin: 0 0 var(--space-sm) 0;
  line-height: 1.2;
}

.deal-insights__deal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  font-size: var(--font-size-sm);
  opacity: 0.9;
}

.deal-insights__deal-value,
.deal-insights__deal-stage {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.deal-insights__hero-score {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-md);
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(8px);
}

.deal-insights__score-value {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  line-height: 1;
}

.deal-insights__score-label {
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.8;
}

.deal-insights__badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.deal-insights__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-md);
  background: rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  backdrop-filter: blur(8px);
}

.deal-insights__badge svg {
  width: 14px;
  height: 14px;
}

.deal-insights__badge--critical {
  background: rgba(239, 68, 68, 0.3);
}

.deal-insights__badge--high {
  background: rgba(245, 158, 11, 0.3);
}

.deal-insights__badge--medium {
  background: rgba(251, 191, 36, 0.3);
}

.deal-insights__badge--low {
  background: rgba(16, 185, 129, 0.3);
}

/* Insight Cards */
.deal-insights__cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

.deal-insights__cards--single {
  grid-template-columns: 1fr;
}

.insight-card {
  padding: var(--space-lg);
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: all 0.2s ease;
}

.insight-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.insight-card--full-width {
  grid-column: 1 / -1;
}

.insight-card__header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.insight-card__icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
}

.insight-card__icon svg {
  width: 18px;
  height: 18px;
}

.insight-card--summary .insight-card__icon {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: white;
}

.insight-card--risks .insight-card__icon {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
}

.insight-card--opportunities .insight-card__icon {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
}

.insight-card--actions .insight-card__icon {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
}

.insight-card--talking-points .insight-card__icon {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
}

.insight-card__title {
  margin: 0;
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
}

.insight-card__content {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.insight-card__content p {
  margin: 0 0 var(--space-sm) 0;
}

.insight-card__content p:last-child {
  margin-bottom: 0;
}

.insight-card__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.insight-card__list li {
  position: relative;
  padding-left: var(--space-lg);
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  line-height: 1.5;
}

.insight-card__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
}

.insight-card--risks .insight-card__list li::before {
  background: var(--color-danger);
}

.insight-card--opportunities .insight-card__list li::before {
  background: var(--color-success);
}

.insight-card--actions .insight-card__list li::before {
  background: var(--color-warning);
}

.insight-card--talking-points .insight-card__list li::before {
  background: #3b82f6;
}

/* Numbered list for actions */
.insight-card--actions .insight-card__list {
  counter-reset: action-counter;
}

.insight-card--actions .insight-card__list li::before {
  content: counter(action-counter);
  counter-increment: action-counter;
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
  font-size: 11px;
  font-weight: var(--font-weight-bold);
  display: flex;
  align-items: center;
  justify-content: center;
  top: 2px;
}

.insight-card--actions .insight-card__list li {
  padding-left: calc(var(--space-lg) + 4px);
}

/* Streaming cursor */
.deal-insights__cursor {
  display: inline-block;
  width: 2px;
  height: 16px;
  background: var(--color-primary);
  animation: blink 1s step-end infinite;
  vertical-align: text-bottom;
  margin-left: 2px;
}

/* Streaming content */
.deal-insights__streaming {
  padding: var(--space-xl);
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.deal-insights__streaming-content {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  line-height: 1.7;
  white-space: pre-wrap;
}

/* Loading state */
.deal-insights__loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-3xl);
  gap: var(--space-lg);
}

.deal-insights__loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(99, 102, 241, 0.2);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.deal-insights__loading-text {
  font-size: var(--font-size-base);
  color: var(--color-text-secondary);
}

@keyframes blink {
  50% { opacity: 0; }
}

/* Deal Insights - Hero badges and contacts */
.deal-insights__deal-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.deal-insights__badge--value,
.deal-insights__badge--stage {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-md);
  background: rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  backdrop-filter: blur(8px);
}

.deal-insights__badge--value svg,
.deal-insights__badge--stage svg {
  width: 14px;
  height: 14px;
}

.deal-insights__contacts {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.deal-insights__contacts svg {
  width: 16px;
  height: 16px;
  opacity: 0.8;
  flex-shrink: 0;
  margin-top: 2px;
}

.deal-insights__contacts-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  font-size: var(--font-size-sm);
}

.deal-insights__contact {
  opacity: 0.9;
}

.deal-insights__contact-company {
  opacity: 0.7;
}

.deal-insights__hero-gradient {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

/* Deal Insights - Streaming markdown styles */
.deal-insights__section-title {
  margin: var(--space-lg) 0 var(--space-md) 0;
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
}

.deal-insights__section-title:first-child {
  margin-top: 0;
}

.deal-insights__paragraph {
  margin: 0 0 var(--space-md) 0;
  font-size: var(--font-size-base);
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.deal-insights__list {
  margin: 0 0 var(--space-lg) 0;
  padding-left: var(--space-xl);
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.deal-insights__list li {
  margin-bottom: var(--space-sm);
}

/* Insight card - list items with bullet */
.insight-card__item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
}

.insight-card__bullet {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
  flex-shrink: 0;
  margin-top: 8px;
}

.insight-card--risks .insight-card__bullet {
  background: var(--color-danger);
}

.insight-card--opportunities .insight-card__bullet {
  background: var(--color-success);
}

.insight-card--actions .insight-card__bullet {
  display: none;
}

.insight-card--talking-points .insight-card__bullet {
  background: #3b82f6;
}

.insight-card__text {
  margin: 0;
  line-height: 1.6;
}

/* Insight card - actions numbered */
.insight-card--actions .insight-card__item {
  counter-increment: action-counter;
}

.insight-card--actions .insight-card__content {
  counter-reset: action-counter;
}

.insight-card--actions .insight-card__item::before {
  content: counter(action-counter);
  min-width: 20px;
  height: 20px;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
  font-size: 11px;
  font-weight: var(--font-weight-bold);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
}

/* =============================================================================
   PREMIUM UPGRADES - Unified Billion Dollar Design
   ============================================================================= */

/* -----------------------------------------------------------------------------
   Premium Login Screen
   ----------------------------------------------------------------------------- */
.login-screen {
  background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 50%, #faf5ff 100%);
  position: relative;
  overflow: hidden;
}

.login-screen::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background:
    radial-gradient(circle at 20% 30%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(139, 92, 246, 0.08) 0%, transparent 50%);
  animation: gradientShift 20s ease-in-out infinite;
}

.login-screen__container {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  box-shadow:
    0 25px 50px -12px rgba(0, 0, 0, 0.08),
    0 0 0 1px rgba(255, 255, 255, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* -----------------------------------------------------------------------------
   Premium Header & Navigation
   ----------------------------------------------------------------------------- */
.email-suggestions {
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.95), var(--color-surface));
  backdrop-filter: blur(10px);
  box-shadow:
    var(--shadow-lg),
    0 0 0 1px rgba(0, 0, 0, 0.02);
}

.email-suggestions__header {
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.email-suggestions__title {
  background: linear-gradient(135deg, var(--color-text) 0%, #4f46e5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.email-suggestions__main-nav {
  background: var(--color-bg-secondary, #f1f5f9);
}

.email-suggestions__main-nav-tab:hover:not(:disabled):not(.email-suggestions__main-nav-tab--active) {
  background: rgba(255, 255, 255, 0.9);
}

.email-suggestions__main-nav-tab--active {
  background: white;
  color: var(--color-primary);
  box-shadow: var(--shadow-md);
}

.email-suggestions__main-nav-tab--active:hover:not(:disabled) {
  background: white;
  color: var(--color-primary);
}

.email-suggestions__settings-btn {
  background: white;
  box-shadow: var(--shadow-sm);
  border-color: transparent;
}

.email-suggestions__settings-btn:hover {
  background: white;
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

/* -----------------------------------------------------------------------------
   Premium Email Tabs
   ----------------------------------------------------------------------------- */
.email-tabs {
  background: var(--color-bg-secondary, #f1f5f9);
  padding: var(--space-xs);
  border-radius: var(--radius-lg);
  border: none;
  gap: var(--space-2xs);
  margin-bottom: var(--space-xl);
}

.email-tabs__tab {
  border: none;
  border-bottom: none;
  background: transparent;
  border-radius: var(--radius-md);
  margin-bottom: 0;
  padding: var(--space-sm) var(--space-lg);
}

.email-tabs__tab:hover {
  background: rgba(255, 255, 255, 0.6);
}

.email-tabs__tab--active {
  background: white;
  color: var(--color-text);
  border-bottom: none;
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.08),
    0 0 0 1px rgba(0, 0, 0, 0.02);
}

.email-tabs__count {
  background: rgba(0, 0, 0, 0.06);
}

.email-tabs__tab--active .email-tabs__count {
  background: var(--color-primary);
}

/* -----------------------------------------------------------------------------
   Premium Contact List Header
   ----------------------------------------------------------------------------- */
.email-contact-list__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
}

.email-contact-list__header-text {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
}

.email-contact-list__title {
  margin: 0;
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
}

.email-contact-list__description {
  margin: 0;
  font-size: var(--font-size-xs);
  color: var(--color-text-tertiary, var(--color-text-muted));
}

.email-contact-list__cache-info {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.email-contact-list__cache-age {
  font-size: var(--font-size-xs);
  color: var(--color-text-tertiary, var(--color-text-muted));
}

.email-contact-list__refresh {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-sm);
  background: white;
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--font-size-xs);
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: var(--shadow-xs);
}

.email-contact-list__refresh:hover:not(:disabled) {
  background: var(--color-bg-secondary, #f8fafc);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.email-contact-list__refresh-spinner {
  width: 12px;
  height: 12px;
  border: 2px solid var(--color-border);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* -----------------------------------------------------------------------------
   Premium Contact Cards
   ----------------------------------------------------------------------------- */
.email-contact-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: all 0.2s ease;
  overflow: hidden;
}

.email-contact-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--color-primary) 0%, #8b5cf6 100%);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.email-contact-card:hover {
  border-color: var(--color-primary);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.1);
  transform: translateY(-1px);
}

.email-contact-card:hover::before {
  opacity: 1;
}

.email-contact-card--generating {
  border-color: var(--color-primary);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.02) 0%, rgba(139, 92, 246, 0.02) 100%);
}

.email-contact-card--generating::before {
  opacity: 1;
  animation: pulse 1.5s ease-in-out infinite;
}

.email-contact-card__avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-bold);
  color: white;
  flex-shrink: 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.email-contact-card__content {
  flex: 1;
  min-width: 0;
}

.email-contact-card__name {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
  line-height: 1.3;
}

.email-contact-card__time {
  font-size: var(--font-size-xs);
  color: var(--color-text-tertiary, var(--color-text-muted));
  white-space: nowrap;
}

.email-contact-card__company {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  margin-top: 2px;
}

.email-contact-card__reason {
  display: flex;
  align-items: flex-start;
  gap: var(--space-xs);
  padding: var(--space-sm);
  background: rgba(99, 102, 241, 0.04);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  line-height: 1.4;
  margin-top: var(--space-sm);
}

.email-contact-card__actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  margin-left: var(--space-md);
}

.email-contact-card__action {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-md);
  background: white;
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.email-contact-card__action:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.email-contact-card__action--email:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--color-primary) 0%, #7c3aed 100%);
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.email-contact-card__action--call:hover:not(:disabled) {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.email-contact-card__action:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.email-contact-card__action-icon {
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.email-contact-card__action-icon svg {
  width: 14px;
  height: 14px;
}

.email-contact-card__status {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-md);
  color: var(--color-primary);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
}

.email-contact-card__spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(99, 102, 241, 0.2);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* Premium contact list items */
.email-contact-list__items {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.email-contact-list__item {
  margin: 0;
}

/* Premium empty state */
.email-contact-list__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-3xl);
  text-align: center;
  gap: var(--space-lg);
}

.email-contact-list__empty-illustration {
  width: 200px;
  height: 160px;
  animation: float 4s ease-in-out infinite;
}

.email-contact-list__empty-title {
  margin: 0;
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
}

.email-contact-list__empty-text {
  margin: 0;
  font-size: var(--font-size-base);
  color: var(--color-text-secondary);
}

/* -----------------------------------------------------------------------------
   Premium Email Draft
   ----------------------------------------------------------------------------- */
.email-draft__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-xl);
}

.email-draft__back {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-md);
  background: white;
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: var(--shadow-xs);
}

.email-draft__back:hover {
  background: var(--color-bg-secondary, #f8fafc);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.email-draft__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-md);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(5, 150, 105, 0.1) 100%);
  color: var(--color-success);
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
}

.email-draft__badge--streaming {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
  color: var(--color-primary);
  animation: pulse 1.5s ease-in-out infinite;
}

.email-draft__badge-icon {
  width: 16px;
  height: 16px;
}

.email-draft__badge-icon svg {
  width: 100%;
  height: 100%;
}

.email-draft__card {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.email-draft__recipient {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.03) 0%, rgba(139, 92, 246, 0.03) 100%);
  border-bottom: 1px solid var(--color-border-light);
}

.email-draft__avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-bold);
  color: white;
  flex-shrink: 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.email-draft__recipient-info {
  flex: 1;
}

.email-draft__recipient-name {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
}

.email-draft__recipient-email {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
}

.email-draft__recipient-company {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

.email-draft__subject {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--color-border-light);
  background: rgba(0, 0, 0, 0.01);
}

.email-draft__subject-label {
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.email-draft__subject-text {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  color: var(--color-text);
}

.email-draft__body {
  padding: var(--space-xl);
  font-size: var(--font-size-base);
  color: var(--color-text);
  line-height: 1.7;
}

.email-draft__paragraph {
  margin: 0 0 var(--space-md) 0;
}

.email-draft__paragraph:last-child {
  margin-bottom: 0;
}

.email-draft__cursor {
  display: inline-block;
  width: 2px;
  height: 18px;
  background: var(--color-primary);
  animation: blink 1s step-end infinite;
  vertical-align: text-bottom;
  margin-left: 2px;
}

.email-draft__tone-selector {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: var(--color-bg-secondary, #f8fafc);
  border-radius: var(--radius-lg);
  margin: var(--space-lg) 0;
}

.email-draft__tone-label {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-secondary);
}

.email-draft__tone-pills {
  display: flex;
  gap: var(--space-xs);
}

.email-draft__tone-pill {
  padding: var(--space-xs) var(--space-md);
  background: white;
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  cursor: pointer;
  transition: all 0.15s ease;
}

.email-draft__tone-pill:hover:not(:disabled) {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.email-draft__tone-pill--active {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}

.email-draft__tone-pill:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.email-draft__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.email-draft__send-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  background: linear-gradient(135deg, var(--color-primary) 0%, #7c3aed 100%);
  color: white;
  border: none;
  border-radius: var(--radius-lg);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
}

.email-draft__send-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.email-draft__send-btn--disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.email-draft__send-icon {
  width: 18px;
  height: 18px;
}

.email-draft__send-icon svg {
  width: 100%;
  height: 100%;
}

.email-draft__send-arrow {
  margin-left: var(--space-xs);
  transition: transform 0.2s ease;
}

.email-draft__send-btn:hover .email-draft__send-arrow {
  transform: translateX(4px);
}

.email-draft__secondary-actions {
  display: flex;
  gap: var(--space-sm);
}

.email-draft__action-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-md);
  background: white;
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  cursor: pointer;
  transition: all 0.15s ease;
}

.email-draft__action-btn:hover {
  background: var(--color-bg-secondary, #f8fafc);
  border-color: var(--color-text-muted);
  transform: translateY(-1px);
}

.email-draft__action-btn svg {
  width: 14px;
  height: 14px;
}

/* -----------------------------------------------------------------------------
   Premium Call Prep Draft
   ----------------------------------------------------------------------------- */
.call-prep-draft__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-xl);
}

.call-prep-draft__back {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-md);
  background: white;
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: var(--shadow-xs);
}

.call-prep-draft__back:hover {
  background: var(--color-bg-secondary, #f8fafc);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.call-prep-draft__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-md);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(5, 150, 105, 0.1) 100%);
  color: var(--color-success);
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
}

.call-prep-draft__badge--streaming {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
  color: var(--color-primary);
  animation: pulse 1.5s ease-in-out infinite;
}

.call-prep-draft__badge-icon {
  width: 16px;
  height: 16px;
}

.call-prep-draft__badge-icon svg {
  width: 100%;
  height: 100%;
}

.call-prep-draft__card {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.call-prep-draft__recipient {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.03) 0%, rgba(5, 150, 105, 0.03) 100%);
  border-bottom: 1px solid var(--color-border-light);
}

.call-prep-draft__avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-bold);
  color: white;
  flex-shrink: 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.call-prep-draft__recipient-info {
  flex: 1;
}

.call-prep-draft__recipient-name {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
}

.call-prep-draft__recipient-email {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
}

.call-prep-draft__recipient-company {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

.call-prep-draft__content {
  padding: var(--space-xl);
}

.call-prep-draft__section-title {
  margin: var(--space-lg) 0 var(--space-md) 0;
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.call-prep-draft__section-title:first-child {
  margin-top: 0;
}

.call-prep-draft__section-title::before {
  content: '';
  width: 4px;
  height: 16px;
  background: linear-gradient(135deg, var(--color-success) 0%, #059669 100%);
  border-radius: 2px;
}

.call-prep-draft__list {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-lg) 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.call-prep-draft__list-item {
  position: relative;
  padding-left: var(--space-lg);
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.call-prep-draft__list-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-success);
}

.call-prep-draft__paragraph {
  margin: 0 0 var(--space-md) 0;
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.call-prep-draft__cursor {
  display: inline-block;
  width: 2px;
  height: 16px;
  background: var(--color-success);
  animation: blink 1s step-end infinite;
  vertical-align: text-bottom;
  margin-left: 2px;
}

.call-prep-draft__actions {
  margin-top: var(--space-xl);
}

.call-prep-draft__done-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  background: linear-gradient(135deg, var(--color-success) 0%, #059669 100%);
  color: white;
  border: none;
  border-radius: var(--radius-lg);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}

.call-prep-draft__done-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.call-prep-draft__done-btn--disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.call-prep-draft__done-icon {
  width: 18px;
  height: 18px;
}

.call-prep-draft__done-icon svg {
  width: 100%;
  height: 100%;
}

/* -----------------------------------------------------------------------------
   Premium Settings Modal
   ----------------------------------------------------------------------------- */
.settings-modal__dialog {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  box-shadow:
    0 25px 50px -12px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.settings-modal__header {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.settings-modal__title {
  background: linear-gradient(135deg, var(--color-text) 0%, var(--color-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.settings-modal__input {
  background: white;
  border-radius: var(--radius-lg);
  transition: all 0.25s var(--ease-out-expo);
}

.settings-modal__input:focus {
  border-color: var(--color-primary);
  box-shadow:
    0 0 0 3px rgba(99, 102, 241, 0.15),
    0 0 20px rgba(99, 102, 241, 0.1);
}

.settings-modal__save {
  background: linear-gradient(135deg, var(--color-primary) 0%, #7c3aed 100%);
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
}

.settings-modal__save:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.settings-modal__logout {
  background: transparent;
  color: var(--color-error);
  border: 1px solid var(--color-error-border);
}

.settings-modal__logout:hover:not(:disabled) {
  background: var(--color-error-light);
}

/* -----------------------------------------------------------------------------
   Premium Coming Soon State
   ----------------------------------------------------------------------------- */
.email-suggestions__coming-soon {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.02) 0%, rgba(139, 92, 246, 0.02) 100%);
  border-radius: var(--radius-xl);
  margin-top: var(--space-lg);
}

.email-suggestions__coming-soon-icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
  border-radius: var(--radius-xl);
  margin-bottom: var(--space-xl);
  animation: float 4s ease-in-out infinite;
  opacity: 1;
}

.email-suggestions__coming-soon-icon svg {
  width: 40px;
  height: 40px;
  color: var(--color-primary);
}

.email-suggestions__coming-soon-title {
  background: linear-gradient(135deg, var(--color-text) 0%, var(--color-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Dark mode adjustments for premium styles */
@media (prefers-color-scheme: dark) {
  .login-screen {
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #1e1b4b 100%);
  }

  .login-screen::before {
    background:
      radial-gradient(circle at 20% 30%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
      radial-gradient(circle at 80% 70%, rgba(139, 92, 246, 0.15) 0%, transparent 50%);
  }

  .login-screen__container {
    background: rgba(30, 41, 59, 0.9);
    box-shadow:
      0 25px 50px -12px rgba(0, 0, 0, 0.3),
      0 0 0 1px rgba(255, 255, 255, 0.1);
  }

  .email-suggestions {
    background: linear-gradient(to bottom, rgba(30, 41, 59, 0.95), var(--color-surface));
  }

  .email-suggestions__main-nav {
    background: var(--color-surface);
  }

  .email-suggestions__main-nav-tab:hover:not(:disabled):not(.email-suggestions__main-nav-tab--active) {
    background: rgba(255, 255, 255, 0.08);
  }

  .email-suggestions__main-nav-tab--active {
    background: var(--color-surface-elevated);
    color: var(--color-primary);
    box-shadow: var(--shadow-md);
  }

  .email-suggestions__main-nav-count {
    background: var(--color-primary);
    box-shadow: 0 2px 4px rgba(99, 102, 241, 0.4);
  }

  .email-suggestions__main-nav-tab:not(.email-suggestions__main-nav-tab--active) .email-suggestions__main-nav-count {
    background: var(--color-text-muted);
    box-shadow: none;
  }

  .email-tabs {
    background: var(--color-surface);
  }

  .email-tabs__tab:hover {
    background: rgba(255, 255, 255, 0.05);
  }

  .email-tabs__tab--active {
    background: var(--color-surface-elevated);
  }

  .email-contact-card,
  .email-draft__card,
  .call-prep-draft__card {
    background: var(--color-surface);
    border-color: var(--color-border);
  }

  .email-contact-card:hover {
    border-color: var(--color-primary);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
  }

  .settings-modal__dialog {
    background: rgba(30, 41, 59, 0.95);
    box-shadow:
      0 25px 50px -12px rgba(0, 0, 0, 0.4),
      0 0 0 1px rgba(255, 255, 255, 0.1);
  }
}


/* =============================================================================
   DEAL INSIGHTS SKELETON
   ============================================================================= */

.deal-insights--skeleton {
  animation: fadeIn 0.3s ease-out;
}

.deal-insights__hero--skeleton {
  min-height: 140px;
}

.deal-insights-skeleton__name {
  height: 28px;
  width: 280px;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
}

.deal-insights-skeleton__badges {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.deal-insights-skeleton__badge {
  height: 32px;
  width: 100px;
  border-radius: var(--radius-full);
}

.deal-insights-skeleton__contact {
  height: 20px;
  width: 200px;
  border-radius: var(--radius-md);
}

.deal-insights-skeleton__cards {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.deal-insights-skeleton__card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
}

.deal-insights-skeleton__card-header {
  height: 24px;
  width: 160px;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-lg);
}

.deal-insights-skeleton__card-line {
  height: 16px;
  width: 100%;
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-sm);
}

.deal-insights-skeleton__card-line--short {
  width: 70%;
}

/* DEALS LIST SKELETON IMPROVEMENTS */
.deals-list__first-load {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-4xl) var(--space-xl);
  text-align: center;
}

.deals-list__first-load-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid var(--color-border);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: var(--space-xl);
}

.deals-list__first-load h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text);
  margin: 0 0 var(--space-sm);
}

.deals-list__first-load p {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  margin: 0;
  max-width: 300px;
}

.deals-list__skeleton-items {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  padding: var(--space-lg);
}

.deal-card-skeleton {
  display: flex;
  align-items: flex-start;
  gap: var(--space-lg);
  padding: var(--space-xl);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
}

.deal-card-skeleton__score {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  flex-shrink: 0;
}

.deal-card-skeleton__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.deal-card-skeleton__name {
  height: 20px;
  width: 200px;
  border-radius: var(--radius-sm);
}

.deal-card-skeleton__meta {
  height: 16px;
  width: 280px;
  border-radius: var(--radius-sm);
}

.deal-card-skeleton__signals {
  height: 14px;
  width: 220px;
  border-radius: var(--radius-sm);
}

.deal-card-skeleton__action {
  width: 100px;
  height: 36px;
  border-radius: var(--radius-md);
  flex-shrink: 0;
  align-self: center;
}

/* -----------------------------------------------------------------------------
   Call Prep Cards (Premium Post-Streaming View)
   ----------------------------------------------------------------------------- */

.call-prep-draft__cards {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.call-prep-draft__streaming {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.prep-card {
  padding: var(--space-lg);
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: all 0.2s ease;
}

.prep-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.prep-card__header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.prep-card__icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
}

.prep-card__icon svg {
  width: 18px;
  height: 18px;
}

.prep-card--objectives .prep-card__icon {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
}

.prep-card--talking-points .prep-card__icon {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
}

.prep-card--questions .prep-card__icon {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
}

.prep-card--background .prep-card__icon {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: white;
}

.prep-card--summary .prep-card__icon {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: white;
}

.prep-card--other .prep-card__icon {
  background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
  color: white;
}

.prep-card__title {
  margin: 0;
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
}

.prep-card__content {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.prep-card__text {
  margin: 0;
}

.prep-card__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.prep-card__item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
}

.prep-card__bullet {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
  flex-shrink: 0;
  margin-top: 7px;
}

.prep-card--objectives .prep-card__bullet {
  background: #10b981;
}

.prep-card--talking-points .prep-card__bullet {
  background: #3b82f6;
}

.prep-card--questions .prep-card__bullet {
  background: #f59e0b;
}

.prep-card--background .prep-card__bullet {
  background: #6366f1;
}

/* -----------------------------------------------------------------------------
   Meeting Prep Cards (Premium Post-Streaming View)
   ----------------------------------------------------------------------------- */

.meeting-prep-detail__cards {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.meeting-prep-detail__streaming {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.meeting-prep-card {
  padding: var(--space-lg);
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: all 0.2s ease;
}

.meeting-prep-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.meeting-prep-card__header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.meeting-prep-card__icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
}

.meeting-prep-card__icon svg {
  width: 18px;
  height: 18px;
}

.meeting-prep-card--objectives .meeting-prep-card__icon {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
}

.meeting-prep-card--talking-points .meeting-prep-card__icon {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
}

.meeting-prep-card--questions .meeting-prep-card__icon {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
}

.meeting-prep-card--background .meeting-prep-card__icon {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: white;
}

.meeting-prep-card--summary .meeting-prep-card__icon {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: white;
}

.meeting-prep-card--actions .meeting-prep-card__icon {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
}

.meeting-prep-card--other .meeting-prep-card__icon {
  background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
  color: white;
}

.meeting-prep-card__title {
  margin: 0;
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
}

.meeting-prep-card__content {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.meeting-prep-card__text {
  margin: 0;
}

.meeting-prep-card__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.meeting-prep-card__item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
}

.meeting-prep-card__bullet {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
  flex-shrink: 0;
  margin-top: 7px;
}

.meeting-prep-card--objectives .meeting-prep-card__bullet {
  background: #10b981;
}

.meeting-prep-card--talking-points .meeting-prep-card__bullet {
  background: #3b82f6;
}

.meeting-prep-card--questions .meeting-prep-card__bullet {
  background: #f59e0b;
}

.meeting-prep-card--background .meeting-prep-card__bullet {
  background: #6366f1;
}

.meeting-prep-card--actions .meeting-prep-card__bullet {
  background: #ef4444;
}
