/* ════════════════════════════════════════════════════════════ */
/* MAGNOLIA PEARL — AI SALES DASHBOARD                        */
/* Consolidated Design System · March 2026                    */
/* ════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════ */
/* a. CSS Variables                           */
/* ═══════════════════════════════════════════ */

:root {
  /* Dark theme (default) */
  --bg-card: rgba(8, 16, 32, 0.82);
  --bg-card-hover: rgba(12, 28, 50, 0.85);
  --bg-overlay: rgba(10, 22, 40, 0.75);
  --bg-input: rgba(10, 22, 40, 0.6);
  --bg-header: rgba(8, 18, 35, 0.85);
  --bg-nav: rgba(8, 16, 32, 0.85);

  --text-primary: #f2e8d5;
  --text-secondary: rgba(242, 232, 213, 0.7);
  --text-tertiary: rgba(242, 232, 213, 0.5);
  --text-value: #ffffff;

  --accent-seafoam: #5bb5a2;
  --accent-gold: #e8b44e;
  --accent-coral: #e87461;
  --accent-rose: #C97B8B;
  --accent-sky: #87ceeb;

  --border-subtle: rgba(91, 181, 162, 0.06);
  --border-light: rgba(91, 181, 162, 0.12);
  --border-medium: rgba(91, 181, 162, 0.15);

  --bar-track: rgba(20, 40, 60, 0.5);
  --glass-blur: blur(24px);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --radius-pill: 20px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.25);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.4);

  --transition: all 0.3s ease;
  --transition-cubic: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  /* Legacy aliases (used in some JS) */
  --white: #FFFFFF;
  --charcoal: #1a2332;
  --dusty-rose: #C97B8B;
  --aged-gold: #C8A84E;
  --warm-cream: rgba(91, 181, 162, 0.15);
  --light-cream: rgba(91, 181, 162, 0.15);
  --soft-gray: #d4ddd9;
  --medium-gray: #7a8f8a;
  --success: #5bb5a2;
  --warning: #e8b44e;
  --danger: #e87461;
  --ocean-deep: #0c2d48;
  --ocean-mid: #145374;
  --ocean-light: #1a6fa0;
  --seafoam: #5bb5a2;
  --sand: #f2e8d5;
  --coral: #e87461;
  --palm: #2d7a4f;
  --sunset-gold: #e8b44e;
  --sky: #87ceeb;
  --lagoon: rgba(91, 181, 162, 0.08);
  --glass: rgba(8, 16, 32, 0.82);
  --glass-border: rgba(91, 181, 162, 0.15);
  --radius: 16px;

  /* Font stacks */
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-mono: 'SF Mono', Monaco, monospace;
}


/* ═══════════════════════════════════════════ */
/* b. Reset & Base Styles                     */
/* ═══════════════════════════════════════════ */

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

body {
  font-family: var(--font-sans);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  background: url(/img/beach-bg.jpg) no-repeat center center fixed;
  background-size: cover;
}

body::after {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 22, 40, 0.82) 0%,
    rgba(12, 45, 72, 0.75) 30%,
    rgba(12, 45, 72, 0.72) 60%,
    rgba(10, 30, 50, 0.8) 100%
  );
  z-index: -1;
  pointer-events: none;
}

h1, h2, h3, h4, h5, h6 { color: var(--text-primary); }
p, span, div, li, td, th, label { color: var(--text-primary); }
a { color: var(--text-primary); text-decoration: none; }

.hidden { display: none !important; }

/* Focus-visible for accessibility */
:focus-visible {
  outline: 2px solid var(--accent-seafoam);
  outline-offset: 2px;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: rgba(8, 16, 32, 0.3); }
::-webkit-scrollbar-thumb { background: rgba(91, 181, 162, 0.3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(91, 181, 162, 0.5); }


/* ═══════════════════════════════════════════ */
/* c. Layout: Body, Header, Nav, Sections     */
/* ═══════════════════════════════════════════ */

/* ── Auth Gate ── */
/* ══ EPIC LOGIN SCREEN ══ */
.login-ocean-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
}

.auth-gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url(/img/beach-bg.webp) no-repeat center center fixed,
              url(/img/beach-bg.jpg) no-repeat center center fixed;
  background-size: cover;
  overflow: hidden;
}
.auth-gate::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,22,40,0.6) 0%, rgba(12,45,72,0.5) 50%, rgba(10,30,50,0.6) 100%);
  z-index: 1;
}

.auth-particles {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.auth-box {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 60px 60px 48px;
  background: rgba(8, 16, 32, 0.75);
  backdrop-filter: blur(30px) saturate(1.4);
  -webkit-backdrop-filter: blur(30px) saturate(1.4);
  border-radius: 28px;
  border: 1px solid rgba(91,181,162,0.1);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.04);
  max-width: 440px;
  width: 90%;
  animation: auth-float-in 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
  transform: translateY(30px);
}

@keyframes auth-float-in {
  to { opacity: 1; transform: translateY(0); }
}

.auth-logo-container {
  position: relative;
  display: inline-block;
  margin-bottom: 28px;
}

.auth-logo-ring {
  position: absolute;
  top: -15px; left: -15px; right: -15px; bottom: -15px;
  border: 1.5px solid rgba(91,181,162,0.15);
  border-radius: 50%;
  animation: logo-ring-pulse 3s ease-in-out infinite;
}
@keyframes logo-ring-pulse {
  0%, 100% { transform: scale(1); opacity: 0.4; border-color: rgba(91,181,162,0.15); }
  50% { transform: scale(1.08); opacity: 0.8; border-color: rgba(232,180,78,0.25); }
}

.auth-logo {
  height: 100px;
  filter: brightness(1.2) drop-shadow(0 4px 20px rgba(91,181,162,0.25));
  animation: logo-glow 4s ease-in-out infinite;
}
@keyframes logo-glow {
  0%, 100% { filter: brightness(1.2) drop-shadow(0 4px 20px rgba(91,181,162,0.2)); }
  50% { filter: brightness(1.35) drop-shadow(0 4px 30px rgba(232,180,78,0.3)); }
}

.auth-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2rem;
  font-weight: 500;
  color: #f2e8d5;
  letter-spacing: 2px;
  margin-bottom: 8px;
  animation: auth-title-in 0.8s 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
}
@keyframes auth-title-in {
  from { opacity: 0; letter-spacing: 8px; }
  to { opacity: 1; letter-spacing: 2px; }
}

.auth-subtitle-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 36px;
  animation: auth-fade-in 0.6s 0.5s ease forwards;
  opacity: 0;
}
@keyframes auth-fade-in {
  to { opacity: 1; }
}
.auth-sub {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 0.82rem;
  color: rgba(91,181,162,0.7);
  text-transform: uppercase;
  letter-spacing: 2.5px;
}
.auth-dot { color: rgba(232,180,78,0.5); }

.auth-input-group {
  position: relative;
  margin-bottom: 20px;
  animation: auth-fade-in 0.6s 0.6s ease forwards;
  opacity: 0;
}
.auth-input-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  z-index: 2;
}
.auth-input {
  width: 100%;
  padding: 16px 18px 16px 48px;
  border: 1.5px solid rgba(91,181,162,0.15);
  border-radius: 50px;
  background: rgba(10,22,40,0.6);
  color: #f2e8d5;
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
}
.auth-input::placeholder { color: rgba(242,232,213,0.3); }
.auth-input:focus {
  border-color: rgba(91,181,162,0.5);
  box-shadow: 0 0 0 4px rgba(91,181,162,0.1), 0 0 30px rgba(91,181,162,0.1);
}

.auth-btn {
  width: 100%;
  padding: 16px 32px;
  border: none;
  border-radius: 50px;
  background: linear-gradient(135deg, #5bb5a2 0%, #e8b44e 100%);
  color: #0c2d48;
  font-size: 1rem;
  font-weight: 600;
  font-family: 'Cormorant Garamond', Georgia, serif;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  animation: auth-fade-in 0.6s 0.7s ease forwards;
  opacity: 0;
}
.auth-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(91,181,162,0.35);
}
.auth-btn:active {
  transform: translateY(0);
}

.auth-footer {
  margin-top: 28px;
  font-size: 0.72rem;
  color: rgba(242,232,213,0.3);
  letter-spacing: 1px;
  animation: auth-fade-in 0.6s 0.9s ease forwards;
  opacity: 0;
}
.auth-footer-brand {
  color: rgba(232,180,78,0.5);
}

/* ── Epic Header ── */
.header {
  background: var(--bg-header);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--border-subtle);
  padding: 20px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-epic {
  position: relative;
  padding: 0;
  height: 130px;
  overflow: hidden;
  background: linear-gradient(135deg, #0a1628 0%, #0c2d48 30%, #145374 60%, rgba(91, 181, 162, 0.3) 100%);
  border-bottom: 1px solid var(--border-subtle);
}

.header-canvas {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
}

.header-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 100%;
  width: 100%;
}

.header-left {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.header-logo-block {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-mp-logo {
  height: 65px;
  filter: brightness(1.2) drop-shadow(0 2px 12px rgba(91,181,162,0.2));
  animation: header-logo-pulse 4s ease-in-out infinite;
  transition: all 0.3s ease;
}
@keyframes header-logo-pulse {
  0%, 100% { filter: brightness(1.2) drop-shadow(0 2px 12px rgba(91,181,162,0.15)); }
  50% { filter: brightness(1.3) drop-shadow(0 2px 16px rgba(232,180,78,0.2)); }
}
.header-mp-logo:hover {
  transform: scale(1.08);
  filter: brightness(1.4) drop-shadow(0 4px 20px rgba(232,180,78,0.3));
}

.header-divider {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, transparent, rgba(232, 180, 78, 0.5), rgba(91, 181, 162, 0.3), transparent);
}

.header-titles { display: flex; flex-direction: column; gap: 4px; }

.header-title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 1px;
  text-shadow: 0 2px 12px rgba(91, 181, 162, 0.2);
  margin: 0;
  line-height: 1.2;
  position: relative;
  overflow: hidden;
}
.header-title::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(232,180,78,0.15), transparent);
  animation: title-shimmer 8s ease-in-out infinite;
}
@keyframes title-shimmer {
  0%, 80%, 100% { left: -100%; }
  90% { left: 150%; }
}
.header-title::after {
  content: '';
  display: block;
  height: 2px;
  margin-top: 4px;
  background: linear-gradient(90deg, #5bb5a2, #e8b44e, #e87461, #5bb5a2);
  background-size: 200% 100%;
  animation: gradient-slide 4s linear infinite;
  border-radius: 1px;
}
@keyframes gradient-slide {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

.header-subtitle-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-sub {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  color: rgba(91, 181, 162, 0.8);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.header-sub-sub {
  font-family: var(--font-serif);
  font-size: 0.7rem;
  color: rgba(232, 180, 78, 0.5);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-top: 1px;
}

.header-dot { color: rgba(232, 180, 78, 0.7); font-size: 0.7rem; }
.header-subtitle { font-size: 0.8rem; color: var(--text-secondary); font-family: inherit; letter-spacing: 0.5px; }
.logo { height: 32px; opacity: 0.85; }

.header-right {
  flex: 0 0 auto;
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-status {
  display: flex;
  flex-direction: row;
  gap: 8px;
  align-items: center;
}

.header-stat {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  background: rgba(8, 16, 32, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  white-space: nowrap;
}

.header-stat-icon { font-size: 0.9rem; }
.header-stat-label { font-size: 0.7rem; color: var(--text-tertiary); text-transform: uppercase; letter-spacing: 1px; }
.header-stat-value { font-size: 0.75rem; font-weight: 600; }
.status-online { color: var(--accent-seafoam); text-shadow: 0 0 8px rgba(91, 181, 162, 0.4); }

.status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent-seafoam);
  box-shadow: 0 0 8px rgba(91, 181, 162, 0.5);
  animation: pulse 2s infinite;
}
.last-updated { font-size: 0.78rem; color: var(--text-secondary); }

/* Beach strip at bottom of header */
.header-beach-strip {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 24px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1;
  opacity: 0.15;
  pointer-events: none;
}
.beach-element { font-size: 0.9rem; animation: beach-sway 4s ease-in-out infinite; }
.palm-left { animation-delay: 0s; }
.shell { animation-delay: 1s; font-size: 0.7rem; }
.wave-emoji { animation-delay: 2s; }
.palm-right { animation-delay: 0.5s; }

/* Live call button in header */
.header-live-pulse {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(232, 116, 97, 0.15);
  border: 1px solid rgba(232, 116, 97, 0.3);
  border-radius: var(--radius-pill);
  animation: live-glow 2s ease-in-out infinite;
}
.live-label { color: var(--accent-coral); font-size: 0.8rem; font-weight: 600; }
.live-monitor-btn {
  background: rgba(232, 116, 97, 0.2);
  border: 1px solid rgba(232, 116, 97, 0.4);
  color: var(--text-primary);
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.72rem;
  cursor: pointer;
  transition: all 0.2s;
}
.live-monitor-btn:hover { background: rgba(232, 116, 97, 0.35); }

/* ── Navigation ── */
.nav {
  display: flex;
  gap: 4px;
  padding: 12px 32px;
  background: var(--bg-nav);
  border-bottom: 1px solid var(--border-subtle);
  overflow-x: auto;
  position: relative;
  z-index: 1;
}

.nav-bar {
  background: var(--bg-nav);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-btn {
  padding: 8px 20px;
  border: 1px solid var(--border-subtle);
  background: rgba(91, 181, 162, 0.06);
  font-size: 0.88rem;
  color: rgba(242, 232, 213, 0.8);
  cursor: pointer;
  border-radius: var(--radius-pill);
  transition: var(--transition);
  white-space: nowrap;
  font-family: inherit;
}
.nav-btn:hover {
  background: rgba(91, 181, 162, 0.15);
  color: var(--text-primary);
}
.nav-btn.active {
  background: rgba(91, 181, 162, 0.22);
  border-color: rgba(91, 181, 162, 0.4);
  color: var(--text-primary);
  font-weight: 500;
}

/* ── Sections ── */
.section {
  display: none;
  padding: 24px 32px;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.section.active { display: block; animation: fadeIn 0.3s ease; }

/* ── Footer ── */
.footer {
  display: flex;
  justify-content: space-between;
  padding: 20px 32px;
  font-size: 0.78rem;
  color: var(--text-tertiary);
  border-top: 1px solid rgba(91, 181, 162, 0.1);
  margin-top: 40px;
  position: relative;
  z-index: 1;
  background: rgba(10, 22, 40, 0.5);
  backdrop-filter: blur(10px);
}
.footer-sep { margin: 0 8px; }


/* ═══════════════════════════════════════════ */
/* d. Cards & Glass Components                */
/* ═══════════════════════════════════════════ */

.glass-card,
.card,
.kpi-card,
.technique-card,
.signal-card,
.coaching-card,
.template-card,
.channel-card,
.exec-chart-card,
.exec-testimonial,
.call-card,
.objection-card {
  background: var(--bg-card);
  backdrop-filter: blur(24px) saturate(1.3);
  -webkit-backdrop-filter: blur(24px) saturate(1.3);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius);
  transition: var(--transition);
  position: relative;
  z-index: 1;
}

.card {
  padding: 28px;
  margin-bottom: 20px;
}
.card:hover { box-shadow: var(--shadow-md); }
.card h2 {
  font-size: 1.1rem;
  margin-bottom: 16px;
  color: var(--text-primary);
  font-family: var(--font-serif);
  font-weight: 500;
}

.card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.card-header h2 { margin-bottom: 0; }
.card-desc { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 20px; }


/* ═══════════════════════════════════════════ */
/* e. KPI Cards                               */
/* ═══════════════════════════════════════════ */

.kpi-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.kpi-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.kpi-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-seafoam), var(--accent-sky));
  opacity: 0;
  transition: var(--transition);
}
.kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(91, 181, 162, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.kpi-card:hover::before { opacity: 1; }

.kpi-card.highlight {
  background: linear-gradient(135deg, var(--ocean-deep) 0%, var(--ocean-mid) 100%);
  border: none;
}
.kpi-card.highlight .kpi-label { color: rgba(255, 255, 255, 0.6); }
.kpi-card.highlight .kpi-value { color: var(--accent-gold); }
.kpi-card.highlight .kpi-sublabel { color: rgba(255, 255, 255, 0.4); }

.kpi-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 8px;
}
.kpi-value {
  font-size: 2rem;
  font-family: var(--font-serif);
  font-weight: 500;
  color: var(--text-primary);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}
.kpi-delta { font-size: 0.8rem; margin-top: 4px; }
.kpi-delta.positive { color: var(--accent-seafoam); }
.kpi-delta.negative { color: var(--accent-coral); }
.kpi-sublabel { font-size: 0.72rem; color: var(--text-tertiary); margin-top: 4px; }


/* ═══════════════════════════════════════════ */
/* f. Charts & Visualizations                 */
/* ═══════════════════════════════════════════ */

.chart-container {
  height: 300px;
  position: relative;
  background: rgba(10, 22, 40, 0.5);
  border-radius: var(--radius-md);
  padding: 16px;
}
.chart-container.chart-sm { height: 240px; }
.chart-container.chart-lg { height: 380px; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }

/* Segment legend */
.segment-legend { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-primary);
  margin: 4px 12px;
}
.legend-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.legend-label { color: var(--text-primary); font-size: 0.85rem; font-weight: 500; }
.legend-count, .legend-value { color: var(--text-secondary); font-size: 0.85rem; }


/* ═══════════════════════════════════════════ */
/* g. Tables (CRM, Heatmap)                   */
/* ═══════════════════════════════════════════ */

.table-wrap { overflow-x: auto; }
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  background: rgba(10, 22, 40, 0.6);
}
.data-table th {
  text-align: left;
  padding: 12px 16px;
  font-weight: 500;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(242, 232, 213, 0.8);
  background: rgba(8, 18, 35, 0.8);
  border-bottom: 2px solid rgba(91, 181, 162, 0.15);
}
.data-table td {
  padding: 14px 16px;
  color: var(--text-primary);
  border-bottom: 1px solid rgba(91, 181, 162, 0.08);
}
.data-table tr:hover td { background: rgba(91, 181, 162, 0.06); }
.empty-row { text-align: center; color: var(--text-tertiary); padding: 40px; }

/* Heatmap table */
.heatmap-grid { overflow-x: auto; }
.heatmap-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 3px;
  font-size: 0.82rem;
}
.heatmap-table th {
  padding: 8px 6px;
  font-weight: 500;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  text-align: center;
}
.heatmap-table td {
  padding: 10px 6px;
  text-align: center;
  border-radius: 6px;
  font-weight: 500;
  font-size: 0.82rem;
  transition: var(--transition);
  cursor: default;
  position: relative;
  min-width: 52px;
  color: var(--text-primary);
}
.heatmap-table td:first-child {
  background: none;
  color: var(--text-primary);
  font-weight: 600;
  text-align: left;
  padding-left: 4px;
}
.heatmap-table td:hover:not(:first-child) {
  transform: scale(1.08);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
  z-index: 2;
}

.heat-high { background: rgba(91, 181, 162, 0.3); color: var(--text-primary); }
.heat-medium { background: rgba(232, 180, 78, 0.25); color: var(--text-primary); }
.heat-low { background: rgba(232, 116, 97, 0.25); color: var(--text-primary); }
.heat-very-high { background: rgba(45, 122, 79, 0.3); color: var(--text-value); font-weight: 700; }

/* Heatmap legend */
.heatmap-legend {
  display: flex;
  gap: 20px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(91, 181, 162, 0.1);
}
.heatmap-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--text-secondary);
}
.legend-swatch { width: 16px; height: 16px; border-radius: 4px; display: inline-block; }
.legend-swatch.heat-high { background: rgba(91, 181, 162, 0.35); }
.legend-swatch.heat-medium { background: rgba(232, 180, 78, 0.35); }
.legend-swatch.heat-low { background: rgba(232, 116, 97, 0.3); }


/* ═══════════════════════════════════════════ */
/* h. Bars (pattern, cost, mood, projection)  */
/* ═══════════════════════════════════════════ */

/* Pattern bars */
.pattern-bars { display: flex; flex-direction: column; gap: 14px; }
.pattern-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 0;
}
.pattern-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-width: 200px;
  flex-shrink: 0;
}
.pattern-name { font-size: 0.85rem; color: var(--text-primary); }
.pattern-score { font-size: 0.85rem; font-weight: 600; min-width: 40px; text-align: right; }
.pattern-bar-track {
  flex: 1;
  height: 10px;
  background: var(--bar-track);
  border-radius: 5px;
  overflow: hidden;
}
.pattern-bar-fill {
  height: 100%;
  border-radius: 5px;
  transition: width 1s ease;
  min-height: 8px;
}
.pattern-uses {
  font-size: 0.75rem;
  color: rgba(242, 232, 213, 0.8);
  min-width: 50px;
  text-align: right;
}

/* Cost bars */
.cost-breakdown { display: flex; flex-direction: column; gap: 16px; }
.cost-item { display: flex; flex-direction: column; gap: 6px; }
.cost-bar-row { display: flex; justify-content: space-between; background: transparent; border: none; }
.cost-name { font-size: 0.88rem; color: var(--text-primary); }
.cost-amount { font-family: var(--font-serif); color: var(--text-value); }
.cost-bar {
  height: 10px;
  background: var(--bar-track);
  border-radius: 5px;
  overflow: hidden;
  width: 100%;
}
.cost-fill { height: 100%; border-radius: 5px; transition: width 1s ease; min-width: 0; }
.cost-fill.retell, .cost-fill.voice { background: var(--accent-rose); }
.cost-fill.twilio, .cost-fill.sms { background: var(--accent-gold); }
.cost-fill.sendgrid, .cost-fill.email { background: var(--accent-seafoam); }

/* Mood bars */
.mood-bars {
  display: flex;
  gap: 3px;
  height: 24px;
  margin: 8px 0;
  border-radius: 6px;
  overflow: hidden;
  background: rgba(20, 40, 60, 0.4);
}
.mood-bar { height: 100%; transition: width 0.8s ease; position: relative; }
.mood-bar.positive { background: var(--accent-seafoam); }
.mood-bar.neutral { background: var(--accent-sky); }
.mood-bar.cautious { background: var(--accent-gold); }
.mood-bar.resistant { background: var(--accent-coral); }
.mood-bar-label {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.65rem;
  color: var(--text-value);
  font-weight: 600;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Projection */
.projection { display: flex; flex-direction: column; gap: 12px; }
.proj-row { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid rgba(91, 181, 162, 0.08); }
.proj-row:last-child { border-bottom: none; }
.proj-label { font-size: 0.9rem; color: var(--text-secondary); }
.proj-value { font-size: 1rem; font-family: var(--font-serif); color: var(--text-value); }
.proj-value.accent { color: var(--accent-seafoam); }
.highlight-row {
  background: rgba(91, 181, 162, 0.06);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-top: 4px;
}


/* ═══════════════════════════════════════════ */
/* i. Forms (inputs, sliders, buttons)        */
/* ═══════════════════════════════════════════ */

input, select, textarea {
  color: var(--text-primary);
  background: var(--bg-input);
  border: 1px solid rgba(91, 181, 162, 0.2);
  font-family: inherit;
}
input::placeholder { color: var(--text-tertiary); }
select option { background: var(--ocean-deep); color: var(--text-primary); }

/* CRM inputs */
.pipeline-controls { display: flex; gap: 8px; }
.select-input, .search-input {
  padding: 8px 14px;
  background: var(--bg-input);
  border: 1px solid rgba(91, 181, 162, 0.2);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  outline: none;
  font-family: inherit;
  color: var(--text-primary);
}
.search-input { min-width: 200px; }
.select-input:focus, .search-input:focus {
  border-color: var(--accent-seafoam);
  box-shadow: 0 0 0 3px rgba(91, 181, 162, 0.15);
}

/* Toggle buttons */
.time-toggle { display: flex; gap: 4px; }
.toggle-btn {
  padding: 6px 14px;
  border: 1px solid rgba(91, 181, 162, 0.15);
  background: rgba(8, 16, 32, 0.4);
  border-radius: 16px;
  font-size: 0.78rem;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-secondary);
}
.toggle-btn.active {
  background: linear-gradient(135deg, rgba(20, 83, 116, 0.6), rgba(91, 181, 162, 0.4));
  color: var(--text-primary);
  border-color: rgba(91, 181, 162, 0.3);
}

/* Page buttons */
.table-pagination { display: flex; gap: 4px; margin-top: 16px; justify-content: center; }
.page-btn {
  padding: 6px 12px;
  background: rgba(8, 16, 32, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.82rem;
  color: var(--text-secondary);
}
.page-btn:hover { background: rgba(91, 181, 162, 0.1); color: var(--text-primary); }
.page-btn.active {
  background: linear-gradient(135deg, rgba(20, 83, 116, 0.6), rgba(91, 181, 162, 0.4));
  color: var(--text-primary);
  border-color: rgba(91, 181, 162, 0.3);
}
.page-more { font-size: 0.82rem; color: var(--text-tertiary); padding: 6px; }

/* Projection sliders */
.projections-panel { display: flex; flex-direction: column; gap: 24px; }
.projection-sliders {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}
.slider-group { display: flex; flex-direction: column; gap: 8px; }
.slider-label {
  font-size: 0.88rem;
  color: var(--text-primary);
  display: flex;
  justify-content: space-between;
}
.slider-label strong {
  color: var(--accent-seafoam);
  font-family: var(--font-serif);
  font-size: 1.1rem;
}
.projection-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: rgba(91, 181, 162, 0.15);
  outline: none;
  transition: var(--transition);
}
.projection-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ocean-mid), var(--accent-seafoam));
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(91, 181, 162, 0.3);
  transition: var(--transition);
}
.projection-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 4px 12px rgba(91, 181, 162, 0.4);
}
.projection-slider::-moz-range-thumb {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ocean-mid), var(--accent-seafoam));
  cursor: pointer;
  border: none;
}
input[type="range"] { accent-color: var(--accent-seafoam); }

/* Buttons */
button { color: var(--text-primary); }
.status-pill {
  font-size: 0.75rem;
  padding: 3px 10px;
  border-radius: 12px;
  background: rgba(8, 16, 32, 0.6);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}


/* ═══════════════════════════════════════════ */
/* j. Badges & Pills                          */
/* ═══════════════════════════════════════════ */

.badge {
  font-size: 0.72rem;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: rgba(91, 181, 162, 0.12);
  color: var(--accent-seafoam);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.badge.gold { background: rgba(232, 180, 78, 0.12); color: var(--accent-gold); }

.sample-badge {
  font-size: 0.75rem;
  padding: 4px 12px;
  background: rgba(232, 180, 78, 0.1);
  color: var(--accent-gold);
  border: 1px solid rgba(232, 180, 78, 0.2);
  border-radius: 12px;
  display: inline-block;
  margin-bottom: 16px;
}

.pill {
  font-size: 0.75rem;
  padding: 3px 10px;
  border-radius: 12px;
  font-weight: 500;
  text-transform: capitalize;
}
.pill.success { background: rgba(91, 181, 162, 0.12); color: var(--accent-seafoam); }
.pill.warn { background: rgba(232, 180, 78, 0.12); color: var(--accent-gold); }
.pill.muted { background: rgba(155, 149, 144, 0.1); color: var(--text-secondary); }


/* ═══════════════════════════════════════════ */
/* k. Modals (Customer 360, Live Panel)       */
/* ═══════════════════════════════════════════ */

/* Modal styling is in c360.css */


/* ═══════════════════════════════════════════ */
/* l. Section-Specific Styles                 */
/* ═══════════════════════════════════════════ */

/* ── Activity Feed ── */
.activity-feed { max-height: 400px; overflow-y: auto; }
.activity-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(91, 181, 162, 0.08);
  font-size: 0.88rem;
  color: var(--text-primary);
}
.activity-item:last-child { border-bottom: none; }
.activity-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.activity-dot.success { background: var(--accent-seafoam); }
.activity-dot.warn { background: var(--accent-gold); }
.activity-dot.muted { background: var(--medium-gray); }
.activity-time { color: var(--text-tertiary); font-size: 0.8rem; min-width: 60px; }
.activity-name { font-weight: 500; min-width: 100px; color: var(--text-primary); }
.activity-dur { color: var(--text-tertiary); font-size: 0.82rem; }
.activity-outcome { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.5px; }
.activity-outcome.success { color: var(--accent-seafoam); }
.activity-outcome.warn { color: var(--accent-gold); }
.activity-outcome.muted { color: var(--text-secondary); }
.activity-score { font-size: 0.82rem; color: var(--text-secondary); }
.activity-empty { text-align: center; padding: 40px; color: var(--text-tertiary); }
.live-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent-coral);
  animation: pulse-dot 1.5s infinite;
}

/* ── Funnel ── */
.funnel { display: flex; align-items: center; gap: 8px; padding: 20px 0; overflow-x: auto; }
.funnel-step { flex: 1; min-width: 120px; }
.funnel-bar {
  height: 6px;
  background: linear-gradient(90deg, var(--ocean-mid), var(--accent-seafoam));
  border-radius: 3px;
  margin-bottom: 8px;
  transition: width 1s ease;
}
.funnel-info { display: flex; flex-direction: column; }
.funnel-label { font-size: 0.75rem; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.3px; }
.funnel-value { font-size: 1.4rem; font-family: var(--font-serif); color: var(--text-value); }
.funnel-pct { font-size: 0.78rem; color: var(--accent-gold); }
.funnel-arrow { font-size: 1.2rem; color: rgba(91, 181, 162, 0.3); flex-shrink: 0; }

/* ── Segment Revenue ── */
.segment-revenue-list { display: flex; flex-direction: column; gap: 12px; }
.seg-rev-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: rgba(91, 181, 162, 0.06);
}
.seg-rev-name { padding-left: 12px; font-size: 0.9rem; color: var(--text-primary); }
.seg-rev-amount { font-family: var(--font-serif); font-size: 1rem; color: var(--text-value); }
.seg-rev-pct { font-size: 0.82rem; color: var(--text-secondary); min-width: 40px; text-align: right; }

/* ── Evolution Timeline ── */
.evolution-timeline { padding-left: 24px; border-left: 2px solid rgba(91, 181, 162, 0.2); }
.evo-entry { position: relative; padding: 0 0 24px 24px; }
.evo-entry:last-child { padding-bottom: 0; }
.evo-dot {
  position: absolute;
  left: -31px; top: 4px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--soft-gray);
  border: 2px solid rgba(8, 16, 32, 0.8);
}
.evo-entry.latest .evo-dot {
  background: var(--accent-seafoam);
  box-shadow: 0 0 0 4px rgba(91, 181, 162, 0.2);
}
.evo-date { font-size: 0.78rem; color: var(--text-secondary); }
.evo-title { font-size: 1rem; font-weight: 500; margin: 4px 0; color: var(--text-primary); }
.evo-detail { font-size: 0.85rem; color: var(--text-secondary); }
.evo-change { font-size: 0.82rem; color: var(--accent-seafoam); margin-top: 4px; }

/* ── Intelligence Header ── */
.intelligence-header { margin-bottom: 24px; }
.intelligence-header h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.intel-subtitle { font-size: 0.9rem; color: var(--text-secondary); }

/* ── Insights Grid ── */
.insights-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }

/* ── Product cells ── */
.product-cell { display: flex; align-items: center; gap: 10px; }
.product-thumb { width: 40px; height: 40px; object-fit: cover; border-radius: 6px; border: 1px solid var(--border-subtle); }

/* ── Signal Grid ── */
.signals-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.signal-card {
  display: flex;
  flex-direction: column;
  padding: 20px;
  background: rgba(10, 22, 40, 0.6);
  border-color: var(--border-light);
}
.signal-icon { font-size: 1.5rem; margin-bottom: 8px; }
.signal-label { font-size: 0.78rem; color: var(--text-primary); font-weight: 600; text-transform: uppercase; letter-spacing: 0.3px; margin-bottom: 4px; }
.signal-value { font-size: 0.9rem; font-weight: 500; color: rgba(242, 232, 213, 0.75); }

/* ── CRM ── */
.customer-cell { display: flex; flex-direction: column; }
.customer-name { font-weight: 500; color: var(--text-primary); }
.customer-email { font-size: 0.78rem; color: var(--text-tertiary); }

/* ── Collection cards ── */
.collection-cards { display: flex; flex-direction: column; gap: 12px; }
.outreach-log { max-height: 400px; overflow-y: auto; color: var(--text-primary); }

/* ── Geographic Heatmap ── */
.geo-summary { display: flex; gap: 24px; margin-bottom: 20px; font-size: 0.85rem; color: var(--text-secondary); }
.geo-summary strong { color: var(--text-value); font-family: var(--font-serif); font-size: 1.1rem; }
.geo-grid { display: flex; flex-direction: column; gap: 10px; }
.geo-row { display: flex; align-items: center; gap: 12px; padding: 8px 0; }
.geo-rank {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: rgba(91, 181, 162, 0.12);
  color: var(--text-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.72rem; font-weight: 600; flex-shrink: 0;
}
.geo-state { min-width: 140px; font-size: 0.9rem; font-weight: 500; color: var(--text-primary); }
.geo-bar-track {
  flex: 1; height: 24px;
  background: rgba(91, 181, 162, 0.08);
  border-radius: 12px; overflow: hidden; position: relative;
}
.geo-bar {
  height: 100%; border-radius: 12px;
  background: linear-gradient(90deg, var(--accent-seafoam), var(--ocean-light));
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}
.geo-bar::after {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 40px;
  background: linear-gradient(90deg, transparent, var(--bg-card));
}
.geo-count { min-width: 80px; font-size: 0.85rem; color: var(--text-value); font-family: var(--font-serif); font-weight: 500; text-align: right; }
.geo-revenue { min-width: 90px; font-size: 0.82rem; color: var(--text-secondary); text-align: right; }
.geo-tooltip {
  display: none;
  position: absolute; top: -60px; left: 50%;
  transform: translateX(-50%);
  background: rgba(12, 45, 72, 0.95);
  color: var(--text-value); padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem; white-space: nowrap; z-index: 10;
  box-shadow: var(--shadow-md);
}
.geo-row:hover .geo-tooltip { display: block; }

/* ── Day-of-Week Bars ── */
.dow-row { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid rgba(91, 181, 162, 0.08); }
.dow-row:last-child { border-bottom: none; }
.dow-day { min-width: 100px; font-weight: 600; color: var(--text-primary); font-size: 0.9rem; }
.dow-bars { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.dow-bar-row { display: flex; align-items: center; gap: 8px; }
.dow-bar-label { min-width: 90px; font-size: 0.75rem; color: var(--text-secondary); text-align: right; }
.dow-bar-track { flex: 1; height: 14px; background: rgba(91, 181, 162, 0.08); border-radius: 7px; overflow: hidden; }
.dow-bar-fill { height: 100%; border-radius: 7px; transition: width 1s cubic-bezier(0.4, 0, 0.2, 1); }
.dow-bar-fill.answer { background: linear-gradient(90deg, var(--ocean-mid), var(--accent-seafoam)); }
.dow-bar-fill.conversion { background: linear-gradient(90deg, var(--accent-gold), #f0c864); }
.dow-bar-value { min-width: 45px; font-size: 0.82rem; font-weight: 600; color: var(--text-value); }
.dow-best-badge {
  font-size: 0.68rem; padding: 2px 8px;
  border-radius: 10px; background: rgba(91, 181, 162, 0.12);
  color: var(--accent-seafoam); margin-left: 8px; font-weight: 500;
}


/* ── Insight Highlight ── */
.insight-highlight {
  display: flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(135deg, rgba(91, 181, 162, 0.08), rgba(135, 206, 235, 0.06));
  border: 1px solid var(--border-subtle);
}
.insight-icon { font-size: 2rem; }
.insight-body { display: flex; flex-direction: column; gap: 4px; }
.insight-title { font-size: 1.1rem; font-weight: 600; color: var(--text-primary); font-family: var(--font-serif); }
.insight-detail { font-size: 0.85rem; color: var(--text-secondary); }

/* ── SMS Banner ── */
.sms-banner {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 20px;
  background: rgba(232, 180, 78, 0.1);
  border: 1px solid rgba(232, 180, 78, 0.2);
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
}
.sms-banner-icon { font-size: 1.3rem; }
.sms-banner-text { font-size: 0.88rem; color: var(--text-primary); }

/* ── Email Templates ── */
.template-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.template-card {
  padding: 20px;
  overflow: hidden;
}
.template-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-seafoam), var(--accent-sky));
}
.template-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.template-card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 14px; }
.template-name { font-size: 1rem; font-weight: 600; color: var(--text-primary); font-family: var(--font-serif); }
.template-agent { font-size: 0.72rem; padding: 3px 8px; border-radius: 10px; background: rgba(91, 181, 162, 0.1); color: var(--accent-seafoam); font-weight: 500; }
.template-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.template-metric { display: flex; flex-direction: column; align-items: center; }
.template-metric-value { font-size: 1.1rem; font-family: var(--font-serif); font-weight: 500; color: var(--text-value); }
.template-metric-label { font-size: 0.68rem; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.3px; }
.template-rates { display: flex; gap: 16px; padding-top: 12px; border-top: 1px solid var(--border-light); }
.template-rate { display: flex; align-items: center; gap: 4px; font-size: 0.82rem; }
.template-rate-dot { width: 8px; height: 8px; border-radius: 50%; }
.template-rate-dot.open { background: var(--accent-seafoam); }
.template-rate-dot.click { background: var(--accent-gold); }
.template-rate-value { font-weight: 600; color: var(--text-value); }
.template-rate-label { color: var(--text-secondary); font-size: 0.75rem; }
.template-id { font-size: 0.68rem; color: var(--text-tertiary); margin-top: 8px; font-family: var(--font-mono); opacity: 0.6; }

/* ── SendGrid Warmup ── */
.warmup-panel { display: flex; flex-direction: column; gap: 20px; }
.warmup-progress-row { display: flex; gap: 24px; align-items: center; }
.warmup-bar-container { flex: 1; }
.warmup-bar-track { height: 20px; background: rgba(10, 22, 40, 0.5); border-radius: 10px; overflow: hidden; position: relative; }
.warmup-bar-fill {
  height: 100%; border-radius: 10px;
  background: linear-gradient(90deg, var(--accent-seafoam), var(--accent-gold));
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}
.warmup-bar-fill::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(90deg, transparent 0%, var(--bg-card) 50%, transparent 100%);
  animation: warmupShine 2s ease infinite;
}
.warmup-bar-labels { display: flex; justify-content: space-between; font-size: 0.72rem; color: var(--text-secondary); margin-top: 6px; }
.warmup-today { min-width: 140px; text-align: center; }
.warmup-today-label { font-size: 0.72rem; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.5px; display: block; margin-bottom: 4px; }
.warmup-today-value { font-size: 1.2rem; font-family: var(--font-serif); font-weight: 500; color: var(--text-value); display: block; margin-bottom: 6px; }
.warmup-today-bar-track { height: 6px; background: rgba(91, 181, 162, 0.12); border-radius: 3px; overflow: hidden; }
.warmup-today-bar-fill { height: 100%; border-radius: 3px; background: var(--accent-seafoam); transition: width 1s ease; }

.warmup-schedule { display: flex; gap: 12px; }
.warmup-step { flex: 1; padding: 14px; border-radius: var(--radius-sm); text-align: center; border: 1px solid var(--border-light); transition: var(--transition); background: rgba(8, 16, 32, 0.4); }
.warmup-step.active { background: rgba(91, 181, 162, 0.1); border-color: var(--accent-seafoam); }
.warmup-step.upcoming { opacity: 0.6; }
.warmup-step-week { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-secondary); display: block; }
.warmup-step-limit { font-size: 1.1rem; font-family: var(--font-serif); font-weight: 600; color: var(--text-value); display: block; margin-top: 4px; }
.warmup-step-label { font-size: 0.68rem; color: var(--text-tertiary); }

/* ── Domain Health ── */
.domain-health { display: flex; gap: 16px; padding: 16px; background: rgba(91, 181, 162, 0.06); border-radius: var(--radius-sm); }
.domain-check { display: flex; align-items: center; gap: 6px; font-size: 0.85rem; }
.domain-check-icon { font-size: 1rem; }
.domain-check-label { color: var(--text-primary); font-weight: 500; }
.domain-check-status { font-size: 0.78rem; }
.domain-check-status.pass { color: var(--accent-seafoam); }
.domain-check-status.warn { color: var(--accent-gold); }
.domain-check-status.fail { color: var(--accent-coral); }

/* ── SMS Numbers ── */
.sms-numbers { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.sms-number-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  background: rgba(232, 180, 78, 0.06);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(232, 180, 78, 0.12);
}
.sms-number-value { font-family: var(--font-mono); font-size: 0.9rem; color: var(--text-primary); font-weight: 500; }
.sms-number-type { font-size: 0.75rem; color: var(--text-secondary); }
.sms-number-status { margin-left: auto; font-size: 0.75rem; padding: 3px 10px; border-radius: 12px; font-weight: 500; }
.sms-number-status.verified { background: rgba(91, 181, 162, 0.12); color: var(--accent-seafoam); }
.sms-number-status.pending { background: rgba(232, 180, 78, 0.12); color: var(--accent-gold); }
.sms-number-status.blocked { background: rgba(232, 116, 97, 0.12); color: var(--accent-coral); }

/* ── Channel Comparison ── */
.channel-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-bottom: 16px; }
.channel-card { padding: 24px; text-align: center; }
.channel-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.channel-card.active-channel { border-color: var(--accent-seafoam); }
.channel-card.warming-channel { border-color: var(--accent-gold); }
.channel-card.pending-channel { border-color: var(--text-secondary); opacity: 0.7; }
.channel-icon { font-size: 2rem; margin-bottom: 8px; display: block; }
.channel-name { font-size: 1rem; font-weight: 600; color: var(--text-primary); font-family: var(--font-serif); margin-bottom: 4px; display: block; }
.channel-status-badge { font-size: 0.68rem; padding: 2px 8px; border-radius: 10px; text-transform: uppercase; letter-spacing: 0.5px; font-weight: 500; display: inline-block; margin-bottom: 14px; }
.channel-status-badge.active { background: rgba(91, 181, 162, 0.12); color: var(--accent-seafoam); }
.channel-status-badge.warming { background: rgba(232, 180, 78, 0.12); color: var(--accent-gold); }
.channel-status-badge.pending { background: rgba(155, 149, 144, 0.12); color: var(--text-secondary); }
.channel-metrics { display: flex; flex-direction: column; gap: 8px; }
.channel-metric-row { display: flex; justify-content: space-between; font-size: 0.82rem; padding: 4px 0; border-bottom: 1px solid rgba(91, 181, 162, 0.08); }
.channel-metric-row:last-child { border-bottom: none; }
.channel-metric-label { color: var(--text-secondary); }
.channel-metric-value { font-weight: 600; color: var(--text-value); }
.channel-highlight { margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(91, 181, 162, 0.1); font-size: 0.82rem; font-weight: 600; }
.channel-highlight.best { color: var(--accent-seafoam); }
.channel-highlight.neutral { color: var(--text-secondary); }
.channel-recommendation {
  padding: 14px 20px;
  background: rgba(91, 181, 162, 0.08);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--accent-seafoam);
  font-size: 0.88rem;
  color: var(--text-primary);
}


/* ── Operations Section ── */

/* Daily Brief */
.brief-header { margin-bottom: 24px; }
.brief-greeting h2 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--text-primary);
  font-weight: 400;
  margin-bottom: 4px;
}
.brief-date { font-size: 0.88rem; color: var(--text-secondary); margin-bottom: 4px; }
.brief-subtitle { font-size: 0.92rem; color: var(--accent-seafoam); font-style: italic; }

.brief-block {
  background: rgba(8, 16, 32, 0.6);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-sm);
  padding: 20px;
  border: 1px solid var(--border-subtle);
}
.brief-block-title { font-size: 0.92rem; font-weight: 600; color: var(--text-primary); margin-bottom: 14px; }
.brief-metrics { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 16px; }
.brief-metric { display: flex; flex-direction: column; align-items: center; min-width: 70px; }
.brief-metric-value { font-family: var(--font-serif); font-size: 1.6rem; color: var(--text-value); }
.brief-metric-label { font-size: 0.7rem; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.5px; }

.brief-notable { display: flex; flex-direction: column; gap: 8px; }
.brief-notable-item {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 0.85rem; padding: 8px 12px; border-radius: 8px;
  background: rgba(91, 181, 162, 0.08);
  color: var(--text-primary);
}
.brief-notable-item.highlight { background: rgba(232, 180, 78, 0.1); }
.brief-notable-item.milestone { background: rgba(91, 181, 162, 0.12); }
.brief-notable-item.learning { background: rgba(135, 206, 235, 0.1); }
.brief-notable-icon { flex-shrink: 0; }

.brief-deliveries { margin-bottom: 12px; }
.brief-delivery-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(91, 181, 162, 0.1);
  font-size: 0.85rem;
  color: var(--text-primary);
}
.brief-delivery-item:last-child { border-bottom: none; }
.brief-delivery-name { font-weight: 500; color: var(--text-primary); }
.brief-delivery-value { font-family: var(--font-serif); color: var(--text-value); }
.brief-delivery-eta { color: var(--text-secondary); font-size: 0.78rem; }

.brief-priority { margin-top: 8px; }
.brief-priority-item {
  padding: 10px 12px; border-radius: 8px;
  background: rgba(232, 116, 97, 0.08);
  margin-bottom: 6px; font-size: 0.85rem;
}
.brief-priority-name { font-weight: 600; color: var(--text-primary); }
.brief-priority-reason { color: var(--text-secondary); font-size: 0.82rem; }

.brief-alerts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.brief-alert {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 10px;
  font-size: 0.84rem; flex: 1; min-width: 250px;
  color: var(--text-primary);
}
.brief-alert.warning { background: rgba(232, 180, 78, 0.1); border: 1px solid rgba(232, 180, 78, 0.2); }
.brief-alert.info { background: rgba(135, 206, 235, 0.1); border: 1px solid rgba(135, 206, 235, 0.2); }
.brief-alert.success { background: rgba(91, 181, 162, 0.1); border: 1px solid rgba(91, 181, 162, 0.2); }

.brief-weather { display: flex; gap: 12px; margin-top: 16px; overflow-x: auto; padding-bottom: 4px; }
.weather-card {
  display: flex; flex-direction: column; align-items: center;
  padding: 12px 18px; border-radius: 12px;
  background: rgba(135, 206, 235, 0.08);
  border: 1px solid rgba(135, 206, 235, 0.15);
  min-width: 130px; text-align: center;
}
.weather-city { font-size: 0.78rem; font-weight: 600; color: var(--text-primary); }
.weather-condition { font-size: 1.2rem; margin: 4px 0; }
.weather-temp { font-family: var(--font-serif); font-size: 1.2rem; color: var(--text-value); }
.weather-note { font-size: 0.68rem; color: var(--text-tertiary); }

/* ── Pipeline Board (Kanban) ── */
.pipeline-board {
  display: flex; gap: 12px; overflow-x: auto;
  padding: 8px 0 16px;
  -webkit-overflow-scrolling: touch;
}
.pipeline-column {
  min-width: 220px; max-width: 260px; flex-shrink: 0;
  background: rgba(8, 16, 32, 0.6);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  display: flex; flex-direction: column;
}
.pipeline-col-header { padding: 14px 14px 10px; border-bottom: 1px solid var(--border-medium); }
.pipeline-col-title { font-size: 0.82rem; font-weight: 600; color: var(--text-primary); display: flex; justify-content: space-between; align-items: center; }
.pipeline-col-count { font-size: 0.72rem; background: rgba(91, 181, 162, 0.15); color: var(--accent-seafoam); padding: 2px 8px; border-radius: 10px; font-weight: 600; }
.pipeline-col-subtitle { font-size: 0.72rem; color: var(--text-tertiary); margin-top: 2px; }
.pipeline-col-value { font-size: 0.72rem; color: var(--accent-seafoam); font-family: var(--font-serif); font-weight: 600; margin-top: 4px; }
.pipeline-col-cards { padding: 8px; display: flex; flex-direction: column; gap: 6px; max-height: 400px; overflow-y: auto; }
.pipeline-card {
  background: rgba(10, 22, 40, 0.7);
  backdrop-filter: blur(8px);
  border-radius: 8px; padding: 10px 12px;
  border: 1px solid var(--border-subtle);
  cursor: grab; transition: var(--transition);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.pipeline-card:hover { box-shadow: 0 4px 16px rgba(91, 181, 162, 0.15); transform: translateY(-1px); }
.pipeline-card-name { font-size: 0.84rem; font-weight: 500; color: var(--text-primary); }
.pipeline-card-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 4px; font-size: 0.72rem; }
.pipeline-card-segment { padding: 1px 7px; border-radius: 8px; font-size: 0.68rem; font-weight: 500; }
.pipeline-card-segment.VIP { background: rgba(232, 180, 78, 0.15); color: var(--accent-gold); }
.pipeline-card-segment.Active { background: rgba(91, 181, 162, 0.15); color: var(--accent-seafoam); }
.pipeline-card-segment.New { background: rgba(135, 206, 235, 0.15); color: var(--ocean-light); }
.pipeline-card-segment.At\ Risk,
.pipeline-card-segment.at-risk { background: rgba(232, 116, 97, 0.15); color: var(--accent-coral); }
.pipeline-card-value { font-family: var(--font-serif); color: var(--text-value); font-size: 0.82rem; }
.pipeline-card-days { color: var(--text-tertiary); }
.pipeline-card-city { color: var(--text-tertiary); font-size: 0.7rem; margin-top: 2px; }
.pipeline-card-note {
  font-size: 0.72rem; color: var(--accent-seafoam); font-style: italic;
  margin-top: 4px; padding-top: 4px;
  border-top: 1px solid var(--border-medium);
}

/* ── Inventory Alerts ── */
.inventory-alerts { display: flex; flex-direction: column; gap: 10px; }
.inventory-alert-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px; border-radius: var(--radius-sm);
  transition: var(--transition);
}
.inventory-alert-item:hover { transform: translateX(4px); }
.inventory-alert-item.warning { background: rgba(232, 180, 78, 0.08); border-left: 3px solid var(--accent-gold); }
.inventory-alert-item.critical { background: rgba(232, 116, 97, 0.08); border-left: 3px solid var(--accent-coral); }
.inventory-alert-item.positive { background: rgba(91, 181, 162, 0.08); border-left: 3px solid var(--accent-seafoam); }
.inventory-alert-icon { font-size: 1.3rem; flex-shrink: 0; }
.inventory-alert-content { flex: 1; }
.inventory-alert-product { font-weight: 600; color: var(--text-primary); font-size: 0.92rem; }
.inventory-alert-message { font-size: 0.82rem; color: var(--text-secondary); margin-top: 2px; }
.inventory-alert-stock { font-family: var(--font-serif); font-size: 1.2rem; color: var(--text-value); min-width: 50px; text-align: right; }

/* ── Projection Results ── */
.projection-results { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.proj-result-card {
  background: rgba(8, 16, 32, 0.6);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-sm);
  padding: 18px;
  display: flex; flex-direction: column;
  border: 1px solid var(--border-subtle);
}
.proj-result-card.highlight {
  background: linear-gradient(135deg, var(--ocean-deep) 0%, var(--ocean-mid) 100%);
  border: none;
}
.proj-result-card.highlight .proj-result-label { color: rgba(255, 255, 255, 0.6); }
.proj-result-card.highlight .proj-result-value { color: var(--accent-gold); }
.proj-result-label { font-size: 0.72rem; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px; }
.proj-result-value { font-family: var(--font-serif); font-size: 1.6rem; color: var(--text-value); }
.proj-result-value.accent { color: var(--accent-seafoam); }


/* ── Executive Section ── */
.executive-section { max-width: 1200px; }

.exec-hero {
  display: flex; align-items: center; justify-content: center;
  gap: 48px; padding: 60px 40px; margin-bottom: 48px;
  background: rgba(8, 16, 32, 0.75);
  backdrop-filter: var(--glass-blur);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-lg);
}
.exec-hero-metric { text-align: center; }
.exec-hero-value {
  font-family: var(--font-serif);
  font-size: 3.5rem; font-weight: 400;
  color: var(--text-value);
  display: block; line-height: 1;
  text-shadow: 0 0 20px rgba(91, 181, 162, 0.3);
}
.exec-hero-label {
  font-size: 0.82rem; color: var(--text-secondary);
  text-transform: uppercase; letter-spacing: 1.5px;
  margin-top: 12px; display: block;
}
.exec-hero-divider { width: 1px; height: 80px; background: linear-gradient(180deg, transparent, rgba(91, 181, 162, 0.3), transparent); }

.exec-section-title {
  font-family: var(--font-serif);
  font-size: 2rem; font-weight: 400;
  color: var(--text-primary);
  text-align: center; margin-bottom: 8px;
}
.exec-section-subtitle {
  font-size: 0.95rem; color: var(--text-secondary);
  text-align: center; margin-bottom: 32px;
}

.exec-story {
  margin-bottom: 48px; padding: 48px 32px;
  background: rgba(8, 16, 32, 0.6);
  backdrop-filter: var(--glass-blur);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-subtle);
}
.exec-story-steps {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 24px; position: relative;
}
.exec-story-steps::before {
  content: '';
  position: absolute; top: 40px; left: 12.5%; right: 12.5%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-seafoam), var(--accent-sky), var(--accent-gold), var(--accent-coral));
  opacity: 0.3; z-index: 0;
}
.exec-step { text-align: center; position: relative; z-index: 1; }
.exec-step-icon { font-size: 2.5rem; margin-bottom: 12px; display: block; }
.exec-step-title { font-family: var(--font-serif); font-size: 1.2rem; color: var(--text-primary); margin-bottom: 8px; }
.exec-step-desc { font-size: 0.82rem; color: var(--text-secondary); line-height: 1.5; margin-bottom: 8px; }
.exec-step-metric { font-size: 0.88rem; font-weight: 600; color: var(--accent-seafoam); }

.exec-chart-card {
  padding: 40px; margin-bottom: 48px;
}

.exec-testimonials { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; margin-bottom: 48px; }
.exec-testimonial {
  padding: 28px 32px; max-width: 340px; flex: 1; min-width: 280px;
}
.exec-testimonial:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.exec-testimonial::before {
  content: '"';
  font-family: var(--font-serif);
  font-size: 4rem;
  color: rgba(91, 181, 162, 0.2);
  position: absolute; top: 8px; left: 20px; line-height: 1;
}
.exec-testimonial-quote {
  font-family: var(--font-serif);
  font-size: 1.15rem; font-style: italic;
  color: var(--text-primary);
  line-height: 1.6; margin-bottom: 14px;
  position: relative; z-index: 1;
}
.exec-testimonial-author { font-size: 0.82rem; color: var(--text-secondary); }
.exec-testimonial-author strong { color: var(--text-primary); }

.exec-numbers {
  padding: 48px 32px;
  background: linear-gradient(135deg, var(--ocean-deep) 0%, var(--ocean-mid) 100%);
  border-radius: var(--radius-xl);
  margin-bottom: 48px;
}
.exec-numbers .exec-section-title { color: rgba(255, 255, 255, 0.9); }
.exec-numbers-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 32px; }
.exec-number-card { text-align: center; padding: 24px; }
.exec-number-value {
  font-family: var(--font-serif);
  font-size: 2.8rem; font-weight: 400;
  color: var(--accent-gold);
  display: block; line-height: 1;
}
.exec-number-label { font-size: 0.88rem; color: rgba(242, 232, 213, 0.8); margin-top: 10px; display: block; }
.exec-number-context { font-size: 0.75rem; color: rgba(255, 255, 255, 0.4); margin-top: 6px; display: block; }


/* ── Sales Training Section ── */
.training-insights-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }

.coaching-card { padding: 24px; overflow: hidden; }
.coaching-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.coaching-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; }
.coaching-top-technique::before { background: linear-gradient(90deg, var(--accent-gold), #f0c864); }
.coaching-practice::before { background: linear-gradient(90deg, var(--ocean-mid), var(--accent-seafoam)); }
.coaching-best-call::before { background: linear-gradient(90deg, var(--accent-seafoam), var(--accent-sky)); }
.coaching-mood::before { background: linear-gradient(90deg, var(--accent-coral), var(--accent-gold)); }

.coaching-icon { font-size: 1.5rem; margin-bottom: 8px; }
.coaching-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.8px; color: var(--text-secondary); margin-bottom: 8px; }
.coaching-value { font-size: 1.2rem; font-family: var(--font-serif); font-weight: 600; color: var(--text-primary); margin-bottom: 4px; }
.coaching-stat { font-size: 0.82rem; color: var(--text-secondary); }
.coaching-trend { font-size: 0.78rem; margin-top: 8px; font-weight: 500; }
.coaching-trend.up { color: var(--accent-seafoam); }
.coaching-trend.down { color: var(--accent-coral); }
.coaching-trend.flat { color: var(--accent-gold); }
.coaching-link { display: inline-block; margin-top: 8px; font-size: 0.82rem; color: var(--accent-seafoam); text-decoration: none; font-weight: 500; }
.coaching-link:hover { text-decoration: underline; }

.training-stats-bar {
  display: flex; gap: 0; margin-bottom: 24px;
  background: rgba(8, 16, 32, 0.7);
  backdrop-filter: blur(12px);
  border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-subtle);
}
.training-stat {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  padding: 20px 16px;
  border-right: 1px solid var(--border-light);
}
.training-stat:last-child { border-right: none; }
.training-stat.accent { background: linear-gradient(135deg, var(--ocean-deep), var(--ocean-mid)); }
.training-stat.accent .training-stat-value { color: var(--accent-gold); }
.training-stat.accent .training-stat-label { color: rgba(255, 255, 255, 0.6); }
.training-stat-value { font-size: 1.6rem; font-family: var(--font-serif); font-weight: 500; color: var(--text-value); }
.training-stat-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-secondary); margin-top: 4px; }

.call-library { display: flex; flex-direction: column; gap: 12px; }
.call-card { overflow: hidden; }
.call-card:hover { box-shadow: var(--shadow-sm); }
.call-card.expanded { box-shadow: var(--shadow-md); }

.call-card-header {
  display: grid; grid-template-columns: 100px 1fr 90px 80px 90px 40px;
  align-items: center; padding: 16px 20px;
  cursor: pointer; gap: 16px; transition: var(--transition);
}
.call-card-header:hover { background: rgba(91, 181, 162, 0.06); }

.call-date { font-size: 0.82rem; color: var(--text-secondary); }
.call-customer { font-weight: 500; color: var(--text-primary); }
.call-customer-segment { font-size: 0.72rem; color: var(--text-tertiary); margin-top: 2px; }
.call-duration { font-size: 0.88rem; color: var(--text-secondary); text-align: center; }
.call-score { display: flex; align-items: center; justify-content: center; gap: 6px; }
.call-score-ring {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.82rem; font-weight: 600; color: white;
}
.call-score-ring.high { background: linear-gradient(135deg, var(--accent-seafoam), #3d9e8a); }
.call-score-ring.medium { background: linear-gradient(135deg, var(--accent-gold), #d4a040); }
.call-score-ring.low { background: linear-gradient(135deg, var(--accent-coral), #d45a4a); }

.call-outcome-pill {
  font-size: 0.72rem; padding: 4px 12px; border-radius: var(--radius-pill);
  text-align: center; font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px;
}
.call-outcome-pill.converted { background: rgba(91, 181, 162, 0.12); color: var(--accent-seafoam); }
.call-outcome-pill.follow-up { background: rgba(232, 180, 78, 0.12); color: var(--accent-gold); }
.call-outcome-pill.declined { background: rgba(232, 116, 97, 0.12); color: var(--accent-coral); }
.call-outcome-pill.voicemail { background: rgba(122, 143, 138, 0.12); color: var(--text-secondary); }

.call-expand-icon { text-align: right; font-size: 0.88rem; color: var(--text-tertiary); transition: transform 0.3s ease; }
.call-card.expanded .call-expand-icon { transform: rotate(180deg); }

.call-card-body { display: none; padding: 0 20px 24px; border-top: 1px solid var(--border-light); }
.call-card.expanded .call-card-body { display: block; animation: fadeIn 0.3s ease; }

.call-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }

.call-feedback { padding: 16px; border-radius: var(--radius-sm); color: var(--text-primary); }
.call-feedback.positive { background: rgba(91, 181, 162, 0.08); border: 1px solid rgba(91, 181, 162, 0.2); }
.call-feedback.improve { background: rgba(232, 180, 78, 0.08); border: 1px solid rgba(232, 180, 78, 0.2); }
.call-feedback h3 { font-size: 0.88rem; font-weight: 600; margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.call-feedback.positive h3 { color: var(--accent-seafoam); }
.call-feedback.improve h3 { color: var(--accent-gold); }
.call-feedback ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.call-feedback li { font-size: 0.85rem; color: rgba(242, 232, 213, 0.85); padding-left: 18px; position: relative; line-height: 1.5; }
.call-feedback.positive li::before { content: '✓'; position: absolute; left: 0; color: var(--accent-seafoam); font-weight: 600; }
.call-feedback.improve li::before { content: '→'; position: absolute; left: 0; color: var(--accent-gold); font-weight: 600; }

.technique-breakdown { margin-top: 20px; }
.technique-breakdown h3 { font-size: 0.88rem; font-weight: 600; color: var(--text-primary); margin-bottom: 12px; }
.tech-usage-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.tech-usage-tag { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: var(--radius-pill); font-size: 0.78rem; font-weight: 500; }
.tech-usage-tag.worked { background: rgba(91, 181, 162, 0.1); color: var(--accent-seafoam); border: 1px solid rgba(91, 181, 162, 0.2); }
.tech-usage-tag.missed { background: rgba(232, 116, 97, 0.08); color: var(--accent-coral); border: 1px solid rgba(232, 116, 97, 0.15); }
.tech-usage-tag.didnt-work { background: rgba(232, 180, 78, 0.08); color: var(--accent-gold); border: 1px solid rgba(232, 180, 78, 0.15); }

.key-moments { margin-top: 20px; }
.key-moments h3 { font-size: 0.88rem; font-weight: 600; color: var(--text-primary); margin-bottom: 12px; }
.moment-timeline { display: flex; flex-direction: column; gap: 8px; padding-left: 16px; border-left: 2px solid rgba(91, 181, 162, 0.2); }
.moment-item { display: flex; align-items: center; gap: 12px; position: relative; padding: 6px 0; }
.moment-item::before { content: ''; position: absolute; left: -21px; width: 10px; height: 10px; border-radius: 50%; border: 2px solid white; }
.moment-item.cb-mention::before { background: var(--ocean-mid); }
.moment-item.technique::before { background: var(--accent-seafoam); }
.moment-item.close::before { background: var(--accent-gold); }
.moment-item.conversion::before { background: var(--accent-seafoam); box-shadow: 0 0 0 4px rgba(91, 181, 162, 0.2); }
.moment-item.objection::before { background: var(--accent-coral); }
.moment-time { font-size: 0.75rem; color: var(--text-tertiary); font-family: monospace; min-width: 48px; }
.moment-label { font-size: 0.85rem; color: var(--text-primary); }

.transcript-section { margin-top: 20px; }
.transcript-section h3 { font-size: 0.88rem; font-weight: 600; color: var(--text-primary); margin-bottom: 12px; cursor: pointer; display: flex; align-items: center; gap: 8px; }
.transcript-section h3:hover { color: var(--accent-seafoam); }
.transcript-toggle { font-size: 0.78rem; color: var(--text-secondary); }

.transcript {
  display: none; max-height: 500px; overflow-y: auto;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 16px;
  background: rgba(8, 16, 32, 0.5);
}
.transcript.visible { display: block; animation: fadeIn 0.3s ease; }

.transcript-turn { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(91, 181, 162, 0.08); }
.transcript-turn:last-child { border-bottom: none; }
.transcript-speaker { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600; min-width: 64px; padding-top: 2px; }
.transcript-speaker.agent { color: var(--accent-seafoam); }
.transcript-speaker.customer { color: var(--ocean-mid); }
.transcript-text { font-size: 0.88rem; line-height: 1.6; color: var(--text-primary); flex: 1; }
.transcript-turn.agent .transcript-text { background: rgba(91, 181, 162, 0.08); padding: 8px 12px; border-radius: 8px 8px 8px 2px; border-left: 3px solid rgba(91, 181, 162, 0.3); }
.transcript-turn.customer .transcript-text { background: rgba(20, 83, 116, 0.08); padding: 8px 12px; border-radius: 8px 8px 2px 8px; border-right: 3px solid rgba(20, 83, 116, 0.3); }
.transcript-time { font-size: 0.7rem; color: var(--text-tertiary); min-width: 40px; text-align: right; font-family: monospace; padding-top: 2px; }

.technique-filters { display: flex; gap: 4px; flex-wrap: wrap; }
.tech-filter-btn {
  padding: 6px 14px;
  border: 1px solid rgba(91, 181, 162, 0.15);
  background: rgba(8, 16, 32, 0.4);
  border-radius: 16px; font-size: 0.78rem; cursor: pointer;
  transition: var(--transition); color: var(--text-secondary); font-family: inherit;
}
.tech-filter-btn:hover { color: var(--text-primary); background: rgba(91, 181, 162, 0.1); }
.tech-filter-btn.active {
  background: linear-gradient(135deg, rgba(20, 83, 116, 0.6), rgba(91, 181, 162, 0.4));
  color: var(--text-primary);
  border-color: rgba(91, 181, 162, 0.3);
}

.technique-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.technique-card { overflow: hidden; }
.technique-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.technique-card-band { height: 5px; width: 100%; }
.technique-card-band.opening { background: linear-gradient(90deg, #1a6fa0, #2980b9); }
.technique-card-band.building-trust { background: linear-gradient(90deg, #5bb5a2, #7ed4b8); }
.technique-card-band.closing { background: linear-gradient(90deg, #e8b44e, #f0c864); }
.technique-card-band.objection-handling { background: linear-gradient(90deg, #e87461, #f09080); }

.technique-card-content { padding: 20px; }
.technique-card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 10px; }
.technique-card-name { font-family: var(--font-serif); font-size: 1.15rem; font-weight: 600; color: var(--text-primary); }
.technique-card-category { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.5px; padding: 3px 10px; border-radius: 12px; font-weight: 500; white-space: nowrap; }
.technique-card-category.opening { background: rgba(26, 111, 160, 0.1); color: #1a6fa0; }
.technique-card-category.building-trust { background: rgba(91, 181, 162, 0.1); color: var(--accent-seafoam); }
.technique-card-category.closing { background: rgba(232, 180, 78, 0.1); color: var(--accent-gold); }
.technique-card-category.objection-handling { background: rgba(232, 116, 97, 0.1); color: var(--accent-coral); }
.technique-card-desc { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.6; margin-bottom: 14px; }
.technique-card-examples { margin-bottom: 14px; }
.technique-card-examples-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-secondary); margin-bottom: 6px; }
.technique-example {
  font-size: 0.82rem; color: rgba(242, 232, 213, 0.8); padding: 6px 10px;
  background: rgba(91, 181, 162, 0.08); border-radius: 6px; margin-bottom: 4px;
  line-height: 1.5; font-style: italic;
  border-left: 2px solid rgba(91, 181, 162, 0.25);
}
.technique-card-when {
  font-size: 0.82rem; color: var(--text-secondary); margin-bottom: 14px;
  padding: 8px 10px; background: rgba(232, 180, 78, 0.06); border-radius: 6px;
  border-left: 2px solid rgba(232, 180, 78, 0.25); line-height: 1.5;
}
.technique-card-when strong { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.3px; display: block; margin-bottom: 2px; color: var(--accent-gold); }
.technique-card-stats { display: flex; gap: 16px; padding-top: 12px; border-top: 1px solid var(--border-light); }
.technique-stat { display: flex; flex-direction: column; }
.technique-stat-value { font-size: 1.1rem; font-family: var(--font-serif); font-weight: 600; color: var(--text-value); }
.technique-stat-label { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.3px; color: var(--text-secondary); }
.technique-eff-bar { flex: 1; display: flex; align-items: center; gap: 8px; }
.technique-eff-track { flex: 1; height: 6px; background: var(--bar-track); border-radius: 3px; overflow: hidden; }
.technique-eff-fill { height: 100%; border-radius: 3px; transition: width 1s ease; }

.objections-list { display: flex; flex-direction: column; gap: 12px; }
.objection-card {
  display: grid; grid-template-columns: 1fr auto; gap: 16px;
  padding: 16px 20px;
  background: rgba(232, 116, 97, 0.05);
  border: 1px solid rgba(232, 116, 97, 0.12);
}
.objection-card:hover { background: rgba(232, 116, 97, 0.06); }
.objection-text { font-size: 0.95rem; font-weight: 500; color: var(--text-primary); font-style: italic; margin-bottom: 6px; }
.objection-response { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.5; }
.objection-response strong { color: var(--accent-seafoam); }
.objection-stats { display: flex; flex-direction: column; align-items: flex-end; justify-content: center; gap: 4px; min-width: 100px; }
.objection-freq { font-size: 0.78rem; color: var(--text-secondary); }
.objection-winrate { font-size: 1rem; font-family: var(--font-serif); font-weight: 600; color: var(--accent-seafoam); }


/* ── Theme Toggle Switch ── */
.theme-toggle {
  display: flex; align-items: center; gap: 6px;
  cursor: pointer; user-select: none;
  padding: 4px 8px; border-radius: var(--radius-pill);
  transition: var(--transition);
}
.theme-toggle:hover { background: rgba(255, 255, 255, 0.08); }
.theme-icon { font-size: 1rem; transition: opacity 0.3s ease; line-height: 1; }
.theme-switch {
  width: 44px; height: 22px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 11px; position: relative;
  transition: background 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.theme-slider {
  width: 18px; height: 18px;
  background: var(--text-primary);
  border-radius: 50%;
  position: absolute; top: 1px; left: 2px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}


/* ═══════════════════════════════════════════ */
/* m. Animations & Keyframes                  */
/* ═══════════════════════════════════════════ */

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

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

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

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-8px); }
  75% { transform: translateX(8px); }
}
.shake { animation: shake 0.4s ease; }

@keyframes beach-sway {
  0%, 100% { transform: translateX(0) rotate(0deg); }
  50% { transform: translateX(3px) rotate(2deg); }
}

@keyframes live-glow {
  0%, 100% { box-shadow: 0 0 8px rgba(232, 116, 97, 0.1); }
  50% { box-shadow: 0 0 20px rgba(232, 116, 97, 0.25); }
}

@keyframes warmupShine {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}


/* ═══════════════════════════════════════════ */
/* o. Responsive Breakpoints                  */
/* ═══════════════════════════════════════════ */

@media (max-width: 1200px) {
  .training-insights-row { grid-template-columns: repeat(2, 1fr); }
  .technique-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
}

@media (max-width: 768px) {
  .header { padding: 16px; flex-direction: column; gap: 12px; }
  .nav { padding: 8px 16px; }
  .section { padding: 16px; }
  .kpi-row { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .pattern-info { min-width: 140px; }
  .pipeline-controls { flex-direction: column; }
  .funnel { flex-direction: column; }
  .funnel-arrow { transform: rotate(90deg); }
  .exec-hero { flex-direction: column; gap: 24px; padding: 40px 20px; }
  .exec-hero-divider { width: 80px; height: 1px; }
  .exec-hero-value { font-size: 2.5rem; }
  .exec-story-steps { grid-template-columns: repeat(2, 1fr); }
  .exec-story-steps::before { display: none; }
  .exec-numbers-grid { grid-template-columns: 1fr; }
  .exec-number-value { font-size: 2rem; }
  .pipeline-board { gap: 8px; }
  .pipeline-column { min-width: 180px; }
  .brief-weather { flex-wrap: wrap; }
  .template-grid { grid-template-columns: 1fr; }
  .channel-grid { grid-template-columns: 1fr; }
  .warmup-schedule { flex-direction: column; }
  .warmup-progress-row { flex-direction: column; }
  .domain-health { flex-direction: column; }
  .heatmap-legend { flex-direction: column; gap: 8px; }
  .training-insights-row { grid-template-columns: 1fr; }
  .training-stats-bar { flex-direction: column; }
  .training-stat { border-right: none; border-bottom: 1px solid var(--border-light); }
  .call-card-header { grid-template-columns: 1fr 1fr; gap: 8px; }
  .call-detail-grid { grid-template-columns: 1fr; }
  .technique-grid { grid-template-columns: 1fr; }
  .technique-filters { flex-wrap: wrap; }
  .objection-card { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .kpi-row { grid-template-columns: 1fr; }
  .exec-hero-value { font-size: 2rem; }
  .header-mp-logo { height: 50px; }
  .header-epic { height: 100px; }
}


/* ═══════════════════════════════════════════ */
/* p. Print Styles                            */
/* ═══════════════════════════════════════════ */

@media print {
  body {
    background: white;
    color: black;
  }
  body::after { display: none; }

  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .card, .kpi-card, .technique-card, .signal-card, .coaching-card,
  .template-card, .channel-card, .exec-chart-card, .exec-testimonial,
  .call-card, .objection-card {
    background: white !important;
    border: 1px solid #ddd !important;
  }

  .header, .nav, .footer { background: white !important; }
  .auth-gate { display: none; }

  h1, h2, h3, h4, h5, h6, p, span, div, li, td, th, label { color: black !important; }
  .kpi-value, .exec-hero-value, .exec-number-value { color: #333 !important; }

  .nav-btn:not(.active) { display: none; }
  .header-beach-strip { display: none; }
  .theme-toggle { display: none; }
}

/* ══════════════════════════════════════════════
   MICRO-INTERACTIONS & CHART ENHANCEMENTS (21-38)
   ══════════════════════════════════════════════ */

@media (prefers-reduced-motion: no-preference) {

/* 21. Card hover lift */
.card, .kpi-card, .glass-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover, .kpi-card:hover {
  transform: translateY(-4px) scale(1.005);
  box-shadow: 0 16px 48px rgba(0,0,0,0.3), 0 0 20px rgba(91,181,162,0.08);
}

/* 22. KPI value pulse on hover */
.kpi-card:hover .kpi-value {
  text-shadow: 0 0 20px rgba(91,181,162,0.3);
  transition: text-shadow 0.3s ease;
}

/* 23. Nav button press */
.nav-btn:active {
  transform: scale(0.96);
  transition: transform 0.1s ease;
}

/* 25. Table row hover glow */
tr:hover {
  background: rgba(91,181,162,0.04) !important;
  box-shadow: inset 3px 0 0 var(--accent-seafoam);
}

/* 28. Button ripple setup */
.auth-btn, .nav-btn, .toggle-btn, button {
  position: relative;
  overflow: hidden;
}

@keyframes ripple-out {
  to { transform: scale(2.5); opacity: 0; }
}

/* 29. Toast animations */
@keyframes toast-in { from { transform: translateX(100px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes toast-out { to { transform: translateX(100px); opacity: 0; } }

/* 34-38. Chart entrance animations */
.chart-container canvas, .chart-wrap canvas {
  animation: chart-fade-in 0.8s ease forwards;
}
@keyframes chart-fade-in {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

/* Pattern bars staggered entrance */
.pattern-row {
  animation: slide-in-left 0.5s ease forwards;
  opacity: 0;
}
.pattern-row:nth-child(1) { animation-delay: 0.05s; }
.pattern-row:nth-child(2) { animation-delay: 0.1s; }
.pattern-row:nth-child(3) { animation-delay: 0.15s; }
.pattern-row:nth-child(4) { animation-delay: 0.2s; }
.pattern-row:nth-child(5) { animation-delay: 0.25s; }
.pattern-row:nth-child(6) { animation-delay: 0.3s; }
.pattern-row:nth-child(7) { animation-delay: 0.35s; }
.pattern-row:nth-child(8) { animation-delay: 0.4s; }
.pattern-row:nth-child(9) { animation-delay: 0.45s; }
.pattern-row:nth-child(10) { animation-delay: 0.5s; }
.pattern-row:nth-child(11) { animation-delay: 0.55s; }
.pattern-row:nth-child(12) { animation-delay: 0.6s; }

@keyframes slide-in-left {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}

} /* end prefers-reduced-motion */


/* ══ HEADER ANIMATED BOTTOM BORDER ══ */
.header-epic::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #5bb5a2, #e8b44e, #e87461, #C97B8B, #5bb5a2);
  background-size: 300% 100%;
  animation: border-flow 6s linear infinite;
}
@keyframes border-flow {
  0% { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}

/* ══ HEADER DATETIME ══ */
.header-datetime {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 0.82rem;
  color: rgba(242,232,213,0.5);
  letter-spacing: 0.5px;
  white-space: nowrap;
}

/* ══ STEP 39: GREETING BAR ══ */
.greeting-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  margin-bottom: 8px;
}
.greeting-text {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--text-primary);
  animation: greeting-fade 0.8s ease forwards;
  opacity: 0;
}
@keyframes greeting-fade { to { opacity: 1; } }
.greeting-weather {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: var(--bg-card);
  border-radius: 20px;
  border: 1px solid var(--border-subtle);
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* ══ STEP 41: CUSTOMER AVATARS ══ */
.customer-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
  flex-shrink: 0;
}
.customer-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ══ STEP 42: ALTERNATING ROW BACKGROUNDS ══ */
tr:nth-child(even) {
  background: rgba(91,181,162,0.02);
}
tr:nth-child(odd) {
  background: transparent;
}

/* ══ STEP 43: STICKY TABLE HEADER ══ */
.crm-table thead, table thead {
  position: sticky;
  top: 0;
  z-index: 10;
}

/* ══ STEP 45: EXECUTIVE HERO NUMBERS BIGGER ══ */
.exec-hero-value {
  font-size: 4.5rem !important;
}

/* ══ STEP 51: LOADING SCREEN ══ */
.loading-screen {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0a1628;
  transition: opacity 0.5s ease;
}
.loading-screen.hide { opacity: 0; pointer-events: none; }
.loading-logo {
  height: 60px;
  position: relative;
  z-index: 2;
  animation: loading-pulse 1.5s ease-in-out infinite;
}
@keyframes loading-pulse {
  0%, 100% { opacity: 0.6; transform: scale(0.95); }
  50% { opacity: 1; transform: scale(1.05); }
}
.loading-ring {
  position: absolute;
  width: 120px;
  height: 120px;
  border: 2px solid rgba(91,181,162,0.1);
  border-top-color: rgba(91,181,162,0.6);
  border-radius: 50%;
  animation: loading-spin 1s linear infinite;
}
@keyframes loading-spin { to { transform: rotate(360deg); } }

/* ══ STEP 53: KONAMI WAVE ══ */
@keyframes konami-wave { 0% { bottom: -100vh; } 40% { bottom: 0; } 100% { bottom: 100vh; } }

/* ══ STEP 55: CUSTOM TEXT SELECTION ══ */
::selection {
  background: rgba(91,181,162,0.3);
  color: #f2e8d5;
}

/* ══ STEP 56: SMOOTH SCROLL ══ */
html { scroll-behavior: smooth; }

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

/* ══ STEP 58: TOUCH TARGETS ══ */
button, .nav-btn, .toggle-btn, a, input, select {
  min-height: 44px;
  min-width: 44px;
}


/* LOGIN LOGO — WHITE + CENTERED */
.auth-logo-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 28px;
  width: 160px;
  height: 160px;
}

.auth-logo {
  height: 80px;
  filter: brightness(0) invert(1) drop-shadow(0 4px 20px rgba(255,255,255,0.15)) !important;
  animation: logo-glow-white 4s ease-in-out infinite;
}
@keyframes logo-glow-white {
  0%, 100% { filter: brightness(0) invert(1) drop-shadow(0 4px 20px rgba(255,255,255,0.1)); }
  50% { filter: brightness(0) invert(1) drop-shadow(0 4px 30px rgba(232,180,78,0.25)); }
}

.auth-logo-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 140px;
  height: 140px;
  border: 1.5px solid rgba(255,255,255,0.12);
  border-radius: 50%;
  animation: logo-ring-pulse 3s ease-in-out infinite;
}
@keyframes logo-ring-pulse {
  0%, 100% { transform: translate(-50%,-50%) scale(1); opacity: 0.3; border-color: rgba(255,255,255,0.12); }
  50% { transform: translate(-50%,-50%) scale(1.06); opacity: 0.6; border-color: rgba(232,180,78,0.2); }
}

/* Center the auth title better */
.auth-title {
  text-align: center;
  white-space: nowrap;
}


/* ══ MOBILE LOGIN FIX ══ */
@media (max-width: 768px) {
  .auth-gate {
    padding: 16px;
    align-items: center;
    justify-content: center;
  }
  .auth-box {
    padding: 40px 28px 36px;
    max-width: 100%;
    width: 100%;
    border-radius: 20px;
    box-sizing: border-box;
  }
  .auth-logo-container {
    width: 120px;
    height: 120px;
  }
  .auth-logo {
    height: 60px !important;
  }
  .auth-logo-ring {
    width: 100px;
    height: 100px;
  }
  .auth-title {
    font-size: 1.4rem !important;
    white-space: normal !important;
    word-wrap: break-word;
    line-height: 1.3;
  }
  .auth-subtitle-row {
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 8px;
    margin-bottom: 28px;
  }
  .auth-sub {
    font-size: 0.7rem !important;
    letter-spacing: 1.5px !important;
  }
  .auth-input {
    padding: 14px 14px 14px 42px !important;
    font-size: 0.95rem;
    border-radius: 40px;
  }
  .auth-input-icon {
    left: 14px;
    font-size: 0.9rem;
  }
  .auth-btn {
    padding: 14px 24px !important;
    font-size: 0.9rem !important;
    border-radius: 40px;
  }
  .auth-footer {
    margin-top: 20px;
    font-size: 0.68rem;
  }
}
