/**
 * Get Leads - Design System & Stylesheet
 * Modern Premium SaaS Sales Intelligence Aesthetic
 * Refined light & dark mode surfaces, smooth rounded geometry, crisp typography, and soft elevation
 */

/* ==========================================================================
   Custom Typography: Private Font Family
   ========================================================================== */
@font-face {
  font-family: 'Private';
  src: url('../fonts/private-extra-light.otf') format('opentype');
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Private';
  src: url('../fonts/private-light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Private';
  src: url('../fonts/private-regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Private';
  src: url('../fonts/private-medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Private';
  src: url('../fonts/private-medium.otf') format('opentype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Private';
  src: url('../fonts/private-bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Private';
  src: url('../fonts/private-extra-bold.otf') format('opentype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Brand Primitives */
  --purple-950: #1E0A3C;
  --purple-900: #2E1065;
  --purple-800: #4C1D95;
  --purple-700: #581C87;
  --purple-600: #6D28D9;
  --purple-500: #7C3AED;
  --purple-400: #8B5CF6;
  --purple-300: #A78BFA;
  --purple-200: #C4B5FD;
  --purple-100: #EDE9FE;
  --purple-50:  #F5F3FF;

  --gold-800:   #78350F;
  --gold-700:   #92400E;
  --gold-600:   #B45309;
  --gold-500:   #D97706;
  --gold-400:   #F59E0B;
  --gold-300:   #FBBF24;
  --gold-200:   #FDE68A;
  --gold-100:   #FEF3C7;
  --gold-50:    #FFFBEB;

  /* Accent aliases used by templates */
  --accent-gold: var(--gold-400);
  --accent-purple: var(--purple-500);

  --font-sans: "Private", -apple-system, BlinkMacSystemFont, "Plus Jakarta Sans", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", Menlo, Consolas, Monaco, monospace;
  
  /* Modern Rounded Geometry Scale */
  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  --transition-fast: all 0.12s cubic-bezier(0.16, 1, 0.3, 1);
  --transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);

  --sidebar-width: 280px;
  --header-height: 68px;
}

/* ==========================================================================
   Light Mode Defaults (Crisp Modern SaaS Canvas)
   ========================================================================== */
:root, :root[data-theme="light"] {
  --bg-app: #F4F6FA;
  --bg-surface: #FFFFFF;
  --bg-surface-elevated: #FFFFFF;
  --bg-surface-alt: #F8FAFC;
  --border-color: #E2E8F0;
  --border-subtle: #EDF2F7;
  --border-focus: #6D28D9;

  --text-main: #0F172A;
  --text-muted: #64748B;
  --text-subtle: #94A3B8;
  --text-inverse: #FFFFFF;

  --primary: #6D28D9;
  --primary-hover: #5B21B6;
  --primary-active: #4C1D95;
  --primary-surface: #F5F3FF;
  --primary-border: #DDD6FE;
  --primary-text: #FFFFFF;

  --gold: #D97706;
  --gold-hover: #B45309;
  --gold-surface: #FFFBEB;
  --gold-text: #92400E;
  --gold-border: #FDE68A;

  --success: #059669;
  --success-surface: #ECFDF5;
  --success-border: #A7F3D0;
  --success-text: #065F46;

  --danger: #DC2626;
  --danger-surface: #FEF2F2;
  --danger-border: #FECACA;
  --danger-text: #991B1B;

  --info: #2563EB;
  --info-surface: #EFF6FF;
  --info-border: #BFDBFE;

  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05), 0 1px 2px rgba(15, 23, 42, 0.03);
  --shadow-md: 0 4px 12px -2px rgba(15, 23, 42, 0.06), 0 2px 6px -1px rgba(15, 23, 42, 0.03);
  --shadow-lg: 0 12px 28px -4px rgba(15, 23, 42, 0.08), 0 4px 12px -2px rgba(15, 23, 42, 0.03);
  --shadow-glow-purple: 0 4px 16px rgba(109, 40, 217, 0.2);
  --shadow-glow-gold: 0 4px 16px rgba(217, 119, 6, 0.2);

  --sidebar-bg: var(--purple-950);
  --sidebar-border: rgba(255, 255, 255, 0.08);
  --sidebar-header-border: rgba(255, 255, 255, 0.08);
  --sidebar-logo-text: #FFFFFF;
  --sidebar-logo-accent: #FDE68A;
  --sidebar-section-title: rgba(255, 255, 255, 0.45);
  --sidebar-link-text: rgba(255, 255, 255, 0.82);
  --sidebar-link-hover-bg: rgba(255, 255, 255, 0.08);
  --sidebar-link-hover-text: #FFFFFF;
  --sidebar-link-active-bg: #FFFFFF;
  --sidebar-link-active-text: var(--purple-950);
  --sidebar-link-active-svg: var(--purple-950);
  --sidebar-footer-bg: rgba(0, 0, 0, 0.22);
  --sidebar-footer-border: rgba(255, 255, 255, 0.08);
  --sidebar-user-bg: rgba(255, 255, 255, 0.07);
  --sidebar-user-border: rgba(255, 255, 255, 0.12);
  --sidebar-user-name: #FFFFFF;
  --sidebar-signout-color: rgba(255, 255, 255, 0.7);
  --sidebar-signout-hover: #FFFFFF;
  --sidebar-avatar-bg: #FFFFFF;
  --sidebar-avatar-color: var(--purple-950);
  --header-bg: rgba(255, 255, 255, 0.88);
}

/* ==========================================================================
   Dark Mode Tokens (Deep Obsidian Slate & Refined Surfaces)
   ========================================================================== */
:root[data-theme="dark"] {
  --bg-app: #0B0E14;
  --bg-surface: #121620;
  --bg-surface-elevated: #171D2B;
  --bg-surface-alt: #1A2232;
  --border-color: #1F2738;
  --border-subtle: #161D2B;
  --border-focus: #8B5CF6;

  --text-main: #F1F5F9;
  --text-muted: #94A3B8;
  --text-subtle: #64748B;
  --text-inverse: #0B0E14;

  --primary: #8B5CF6;
  --primary-hover: #9F75FF;
  --primary-active: #A78BFA;
  --primary-surface: rgba(139, 92, 246, 0.16);
  --primary-border: rgba(139, 92, 246, 0.32);
  --primary-text: #FFFFFF;

  --gold: #F59E0B;
  --gold-hover: #FBBF24;
  --gold-surface: rgba(245, 158, 11, 0.14);
  --gold-text: #FDE68A;
  --gold-border: rgba(245, 158, 11, 0.32);

  --success: #10B981;
  --success-surface: rgba(16, 185, 129, 0.14);
  --success-border: rgba(16, 185, 129, 0.32);
  --success-text: #A7F3D0;

  --danger: #EF4444;
  --danger-surface: rgba(239, 68, 68, 0.14);
  --danger-border: rgba(239, 68, 68, 0.32);
  --danger-text: #FECACA;

  --info: #3B82F6;
  --info-surface: rgba(59, 130, 246, 0.14);
  --info-border: rgba(59, 130, 246, 0.32);

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.45);
  --shadow-md: 0 6px 18px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 14px 32px rgba(0, 0, 0, 0.6);
  --shadow-glow-purple: 0 4px 20px rgba(139, 92, 246, 0.32);
  --shadow-glow-gold: 0 4px 20px rgba(245, 158, 11, 0.3);

  --sidebar-bg: #0E121B;
  --sidebar-border: #1B2232;
  --sidebar-header-border: var(--border-subtle);
  --sidebar-logo-text: var(--text-main);
  --sidebar-logo-accent: var(--gold);
  --sidebar-section-title: var(--text-subtle);
  --sidebar-link-text: var(--text-muted);
  --sidebar-link-hover-bg: var(--bg-surface-alt);
  --sidebar-link-hover-text: var(--text-main);
  --sidebar-link-active-bg: var(--primary-surface);
  --sidebar-link-active-text: var(--primary);
  --sidebar-link-active-svg: var(--primary);
  --sidebar-footer-bg: var(--bg-surface-alt);
  --sidebar-footer-border: var(--border-subtle);
  --sidebar-user-bg: var(--bg-surface);
  --sidebar-user-border: var(--border-color);
  --sidebar-user-name: var(--text-main);
  --sidebar-signout-color: var(--text-muted);
  --sidebar-signout-hover: var(--text-main);
  --sidebar-avatar-bg: linear-gradient(135deg, var(--primary), var(--gold));
  --sidebar-avatar-color: #FFFFFF;
  --header-bg: rgba(18, 22, 32, 0.88);
}

/* ==========================================================================
   Base Reset & Global Styles
   ========================================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-main);
  background-color: var(--bg-app);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition-fast);
}

a:hover {
  text-decoration: none;
  color: var(--primary-hover);
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--text-main);
}

b, strong {
  font-weight: 600;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-subtle);
}

/* ==========================================================================
   Layout Shell
   ========================================================================== */
.app-layout {
  display: flex;
  min-height: 100vh;
}

/* ==========================================================================
   Sidebar Navigation
   ========================================================================== */
.app-sidebar {
  width: var(--sidebar-width);
  background: var(--sidebar-bg);
  border-right: 1px solid var(--sidebar-border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.sidebar-header {
  height: var(--header-height);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--sidebar-header-border);
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-badge {
  background: linear-gradient(135deg, var(--primary) 0%, var(--gold) 100%);
  color: #FFF;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
}

:root:not([data-theme="dark"]) .logo-badge {
  background: #FFFFFF;
  color: var(--purple-950);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.logo-text {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 1.02rem;
  color: var(--sidebar-logo-text);
}

.logo-accent {
  color: var(--sidebar-logo-accent);
}

.sidebar-nav {
  padding: 20px 14px;
  flex: 1;
  overflow-y: auto;
}

.nav-section-title {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--sidebar-section-title);
  padding: 12px 14px 6px;
  margin-top: 8px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  color: var(--sidebar-link-text);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
  margin-bottom: 3px;
  border: 1px solid transparent;
  transition: var(--transition-fast);
  text-decoration: none;
}

.nav-link svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  flex-shrink: 0;
  transition: transform 0.15s ease;
}

.nav-link:hover {
  color: var(--sidebar-link-hover-text);
  background: var(--sidebar-link-hover-bg);
  text-decoration: none;
}

.nav-link.active {
  color: var(--sidebar-link-active-text);
  background: var(--sidebar-link-active-bg);
  border-color: transparent;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.14);
}

.nav-link.active svg {
  stroke: var(--sidebar-link-active-svg);
  stroke-width: 2.2;
}

.sidebar-footer {
  padding: 16px 18px;
  border-top: 1px solid var(--sidebar-footer-border);
  background: var(--sidebar-footer-bg);
}

.user-snippet {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  background: var(--sidebar-user-bg);
  border: 1px solid var(--sidebar-user-border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-xs);
}

.user-info {
  overflow: hidden;
}

.user-name {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--sidebar-user-name);
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  margin-bottom: 2px;
}

.user-role-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
}

.user-role-badge.admin {
  background: var(--gold-surface);
  border-color: var(--gold-border);
  color: var(--gold-text);
}

:root:not([data-theme="dark"]) .user-role-badge {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
}

:root:not([data-theme="dark"]) .user-role-badge.admin {
  background: rgba(245, 158, 11, 0.25);
  border-color: rgba(245, 158, 11, 0.45);
  color: #FDE68A;
}

.user-avatar-badge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--sidebar-avatar-bg);
  color: var(--sidebar-avatar-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

.sidebar-signout-btn {
  color: var(--sidebar-signout-color);
  display: flex;
  align-items: center;
  padding: 4px;
  border-radius: var(--radius-xs);
  transition: var(--transition-fast);
}

.sidebar-signout-btn:hover {
  color: var(--sidebar-signout-hover);
}

/* ==========================================================================
   App Main Content Area & Header
   ========================================================================== */
.app-main {
  flex: 1;
  margin-left: var(--sidebar-width);
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100vh;
}

.app-header {
  height: var(--header-height);
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 90;
}

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

.mobile-nav-toggle {
  display: none;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-fast);
}

.mobile-nav-toggle:hover {
  background: var(--bg-surface-alt);
}

.page-title {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

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

.btn-theme-toggle {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-fast);
  box-shadow: var(--shadow-xs);
}

.btn-theme-toggle:hover {
  border-color: var(--text-subtle);
  color: var(--text-main);
}

.header-greeting-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.header-greeting-text {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.header-workspace-bullet {
  color: var(--text-subtle);
}

.header-workspace-badge {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-light, rgba(79, 70, 229, 0.08));
  padding: 2px 8px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.header-user-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: var(--radius-full);
  padding: 5px 14px 5px 6px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition-fast);
  box-shadow: var(--shadow-xs);
}

.header-user-btn:hover {
  background: var(--bg-surface-alt);
  border-color: var(--text-subtle);
  color: var(--text-main);
  text-decoration: none;
}

.header-user-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary);
  color: #FFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

.header-user-name {
  white-space: nowrap;
}

.header-logout-btn {
  display: inline-flex;
}

/* ==========================================================================
   Dashboard Header & Sliding Filter Bar
   ========================================================================== */
.dashboard-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 16px;
}

.dashboard-header-title-area {
  min-width: 0;
}

.dashboard-header-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.dashboard-title {
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--text-main);
  line-height: 1.25;
}

.dashboard-role-badge {
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  font-weight: 600;
  white-space: nowrap;
}

.dashboard-subtitle {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin: 4px 0 0 0;
}

.dashboard-actions-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  max-width: 100%;
}

.date-range-scroller {
  display: flex;
  align-items: center;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 2px 0;
}

.date-range-scroller::-webkit-scrollbar {
  display: none;
}

.date-range-segmented {
  display: inline-flex;
  align-items: center;
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 3px;
  gap: 3px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.03);
  flex-wrap: nowrap;
}

.date-range-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 13px;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-full);
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
  transition: var(--transition-fast);
  line-height: 1.3;
}

.date-range-pill:hover {
  color: var(--text-main);
  background: rgba(0, 0, 0, 0.05);
  text-decoration: none;
}

:root[data-theme="dark"] .date-range-pill:hover {
  background: rgba(255, 255, 255, 0.07);
}

.date-range-pill.active {
  background: var(--primary);
  color: var(--primary-text);
  box-shadow: var(--shadow-xs);
}

.dashboard-find-leads-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  border-radius: var(--radius-full);
  padding: 6px 14px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Work On Next (Action Center) Header */
.won-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 18px 24px;
}

.won-header-left {
  min-width: 0;
}

.won-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
  white-space: nowrap;
}

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

.won-title {
  font-size: 1.08rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.01em;
  color: var(--text-main);
  white-space: nowrap;
}

.won-badge {
  font-size: 0.7rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.won-subtitle {
  color: var(--text-muted);
  font-size: 0.84rem;
  margin-top: 4px;
  margin-bottom: 0;
}

/* ==========================================================================
   Opportunity Intelligence Breakdown Cards (Equal Size & Balanced Typography)
   ========================================================================== */
.opp-breakdown-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.opp-breakdown-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px 12px;
  border-radius: var(--radius-sm);
  min-width: 0;
  box-sizing: border-box;
  text-align: center;
  transition: var(--transition-fast);
}

.opp-card-no-website {
  background: var(--danger-surface);
  border: 1px solid var(--danger-border);
}

.opp-card-unavailable {
  background: var(--gold-surface);
  border: 1px solid var(--gold-border);
}

.opp-card-has-website {
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-color);
}

.opp-card-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.opp-card-no-website .opp-card-label {
  color: var(--danger);
}

.opp-card-unavailable .opp-card-label {
  color: var(--gold);
}

.opp-card-has-website .opp-card-label {
  color: var(--text-muted);
}

.opp-card-count {
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 6px 0;
}

.opp-card-no-website .opp-card-count {
  color: var(--danger);
}

.opp-card-unavailable .opp-card-count {
  color: var(--gold);
}

.opp-card-has-website .opp-card-count {
  color: var(--text-main);
}

.opp-card-meta {
  font-size: 0.76rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  white-space: nowrap;
}

.opp-card-pct {
  font-weight: 600;
}

.opp-card-sub::before {
  content: '·';
  margin-right: 4px;
}

.won-pipeline-btn {
  font-size: 0.8rem;
  border-radius: var(--radius-full);
  white-space: nowrap;
  flex-shrink: 0;
}

.app-content {
  flex: 1;
  padding: 24px 32px;
}

.container {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}

/* ==========================================================================
   Alerts & Notifications
   ========================================================================== */
.alert {
  padding: 14px 20px;
  margin-bottom: 24px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 500;
  font-size: 0.9rem;
  box-shadow: var(--shadow-xs);
}

.alert-success {
  background: var(--success-surface);
  border-color: var(--success-border);
  color: var(--success-text);
}

.alert-error, .alert-danger {
  background: var(--danger-surface);
  border-color: var(--danger-border);
  color: var(--danger-text);
}

.alert-warning {
  background: var(--gold-surface);
  border-color: var(--gold-border);
  color: var(--gold-text);
}

.alert-info {
  background: var(--primary-surface);
  border-color: var(--primary-border);
  color: var(--primary);
}

/* ==========================================================================
   Grid & Card Architecture (Modern SaaS Polish)
   ========================================================================== */
.grid {
  display: grid;
  gap: 24px;
}

.grid-cols-6 {
  grid-template-columns: repeat(6, 1fr);
}

.grid-cols-5 {
  grid-template-columns: repeat(5, 1fr);
}

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

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

.grid-cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: var(--transition);
}

.card:hover {
  border-color: var(--border-color);
}

.card-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-surface);
}

.card-title {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

.card-body {
  padding: 24px;
}

/* ==========================================================================
   Modern SaaS Metric & Stats Cards (Reference Image Architecture)
   ========================================================================== */
.stat-card, .metric-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  position: relative;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}

.stat-card:hover, .metric-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-color);
}

.stat-card-header, .metric-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.stat-card-title, .metric-label {
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  line-height: 1.3;
}

.stat-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
}

:root[data-theme="dark"] .stat-card-icon {
  background: rgba(16, 185, 129, 0.18);
  color: #10B981;
}

.stat-card-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.stat-card-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-card-value, .metric-value {
  font-family: var(--font-sans);
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text-main);
  margin-bottom: 6px;
  text-align: left;
}

.stat-card-trend {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #059669;
}

:root[data-theme="dark"] .stat-card-trend {
  color: #10B981;
}

.stat-card-trend.trend-danger {
  color: var(--danger);
}

.stat-card-trend.trend-warning {
  color: var(--gold);
}

.stat-card-trend .trend-arrow {
  font-size: 0.7rem;
}

.stat-card-trend .trend-context {
  color: var(--text-subtle);
  font-weight: 400;
}

.stat-card-footer, .metric-desc {
  border-top: 1px solid var(--border-subtle);
  padding-top: 12px;
  margin-top: 14px;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
  text-align: left;
}

/* ==========================================================================
   Standardized Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 0.86rem;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition-fast);
  text-decoration: none;
  line-height: 1.25;
  box-shadow: var(--shadow-xs);
  white-space: nowrap;
}

.btn:hover {
  text-decoration: none;
}

.btn:active {
  opacity: 0.9;
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-text);
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  color: #FFF;
}

.btn-gold {
  background: var(--gold);
  color: #FFF;
  border-color: var(--gold);
  box-shadow: var(--shadow-sm);
}

:root[data-theme="dark"] .btn-gold {
  color: #FFF;
}

.btn-gold:hover,
.btn-gold:focus,
.btn-gold:active {
  background: var(--gold-hover);
  border-color: var(--gold-hover);
  color: #FFF;
}

.btn-gold svg {
  stroke: #FFF;
}

.btn-outline {
  background: var(--bg-surface);
  color: var(--text-main);
  border-color: var(--border-color);
}

.btn-outline:hover {
  border-color: var(--text-muted);
  background: var(--bg-surface-alt);
  color: var(--text-main);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: transparent;
  box-shadow: none;
}

.btn-ghost:hover {
  color: var(--text-main);
  background: var(--bg-surface-alt);
}

.btn-lg {
  padding: 13px 24px;
  font-size: 0.95rem;
  border-radius: var(--radius-md);
}

.btn-sm {
  padding: 6px 13px;
  font-size: 0.8rem;
  border-radius: var(--radius-xs);
}

/* ==========================================================================
   Form Controls
   ========================================================================== */
.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 7px;
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  color: var(--text-main);
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
  box-shadow: var(--shadow-xs);
  min-height: 42px;
  box-sizing: border-box;
}

.form-control:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(109, 40, 217, 0.15);
}

/* Universal Polished Select Styling (Desktop & Mobile) */
select,
select.form-control {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-color: var(--bg-surface);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 15px 15px;
  padding-right: 38px !important;
  cursor: pointer;
  line-height: 1.35;
  font-weight: 500;
}

[data-theme="dark"] select,
[data-theme="dark"] select.form-control {
  background-color: var(--bg-surface);
  color: var(--text-main);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

select:hover,
select.form-control:hover {
  border-color: var(--border-focus);
}

select:focus,
select.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(109, 40, 217, 0.18);
}

select:disabled,
select.form-control:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background-color: var(--bg-surface-alt);
}

select option {
  background-color: var(--bg-surface);
  color: var(--text-main);
  padding: 8px 12px;
}

.form-help {
  font-size: 0.78rem;
  color: var(--text-subtle);
  margin-top: 5px;
}

/* ==========================================================================
   Badges & Status Pills
   ========================================================================== */
.badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  background: var(--bg-surface-alt);
  color: var(--text-muted);
  line-height: 1.3;
}

.badge-gold {
  background: var(--gold-surface);
  border-color: var(--gold-border);
  color: var(--gold-text);
}

.badge-purple {
  background: var(--primary-surface);
  border-color: var(--primary-border);
  color: var(--primary);
}

.badge-no-website {
  background: var(--danger-surface);
  color: var(--danger-text);
  border-color: var(--danger-border);
}

.badge-has-website {
  background: var(--success-surface);
  color: var(--success-text);
  border-color: var(--success-border);
}

.badge-website-unavailable {
  background: var(--gold-surface);
  color: var(--gold-text);
  border-color: var(--gold-border);
}

/* ==========================================================================
   Tables & Data Presentation
   ========================================================================== */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  box-shadow: var(--shadow-sm);
}

.table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.table th {
  padding: 13px 18px;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-surface-alt);
  white-space: nowrap;
}

.table td {
  padding: 15px 18px;
  font-size: 0.88rem;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-main);
  vertical-align: middle;
}

.table tr:last-child td {
  border-bottom: none;
}

.table tr:hover td {
  background: var(--bg-surface-alt);
}

/* ==========================================================================
   Empty States
   ========================================================================== */
.empty-state {
  text-align: center;
  padding: 56px 24px;
  background: var(--bg-surface);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-md);
}

.empty-state-icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 16px;
  color: var(--text-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
}

.empty-state-title {
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.empty-state-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 440px;
  margin: 0 auto 20px;
  line-height: 1.6;
}

/* ==========================================================================
   Authentication Screens (Modern SaaS Centerpiece)
   ========================================================================== */
.auth-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--bg-app);
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 44px 40px;
  box-shadow: var(--shadow-lg);
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.auth-title {
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-main);
  margin-bottom: 6px;
}

.auth-subtitle {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 28px;
  line-height: 1.5;
}

/* ==========================================================================
   Business Card List (Mobile Discovery View)
   ========================================================================== */
.business-cards-list {
  display: none;
}

@media (max-width: 768px) {
  .business-table-container {
    display: none;
  }

  .business-cards-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .business-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 18px;
    box-shadow: var(--shadow-sm);
  }

  .business-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
  }

  .business-card-name {
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--text-main);
  }

  .business-card-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.86rem;
    color: var(--text-muted);
    margin-bottom: 16px;
  }

  .business-card-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    border-top: 1px solid var(--border-subtle);
    padding-top: 14px;
  }
}

/* ==========================================================================
   Interactive Spinners & Animations
   ========================================================================== */
.spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  border-top-color: #FFF;
  animation: spin 0.6s linear infinite;
}

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

/* ==========================================================================
   Responsive Viewport Adaptations
   ========================================================================== */
@media (max-width: 1200px) {
  .grid-cols-6 {
    grid-template-columns: repeat(3, 1fr);
  }
  .grid-cols-5 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 992px) {
  .grid-cols-6 {
    grid-template-columns: repeat(3, 1fr);
  }
  .grid-cols-5 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-cols-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .app-content {
    padding: 24px 20px;
  }
  .app-header {
    padding: 0 20px;
  }
}

@media (max-width: 768px) {
  .app-sidebar {
    transform: translateX(-100%);
    box-shadow: none;
  }

  .app-sidebar.open {
    transform: translateX(0);
    box-shadow: 0 0 32px rgba(0, 0, 0, 0.4);
  }

  .sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
    z-index: 95;
  }

  .sidebar-backdrop.active {
    display: block;
  }

  .app-main {
    margin-left: 0;
  }

  .mobile-nav-toggle {
    display: inline-flex;
  }

  .grid-cols-6, .grid-cols-5, .grid-cols-4, .grid-cols-3, .grid-cols-2 {
    grid-template-columns: 1fr;
  }

  .app-content {
    padding: 20px 16px;
  }

  .app-header {
    padding: 0 14px;
    gap: 8px;
  }

  .header-left {
    gap: 8px;
    min-width: 0;
    flex: 1;
    overflow: hidden;
  }

  .mobile-nav-toggle {
    display: inline-flex;
    padding: 6px 8px;
    flex-shrink: 0;
  }

  .header-greeting-wrapper {
    gap: 0;
    min-width: 0;
    overflow: hidden;
  }

  .header-greeting-text {
    font-size: 0.92rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.2;
  }

  .header-workspace-bullet,
  .header-workspace-badge {
    display: none !important;
  }

  .header-right {
    gap: 8px;
    flex-shrink: 0;
  }

  .btn-theme-toggle {
    width: 34px;
    height: 34px;
  }

  .header-user-btn {
    padding: 0;
    width: 34px;
    height: 34px;
    justify-content: center;
    border-radius: 50%;
  }

  .header-user-avatar {
    width: 26px;
    height: 26px;
    font-size: 0.78rem;
  }

  .header-user-name {
    display: none !important;
  }

  .header-logout-btn {
    display: none !important;
  }

  .page-title {
    font-size: 1.15rem;
  }

  .dashboard-header-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 20px;
  }

  .dashboard-header-title-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
  }

  .dashboard-title {
    font-size: 1.25rem;
    line-height: 1.25;
  }

  .dashboard-role-badge {
    font-size: 0.68rem;
    padding: 2px 8px;
  }

  .dashboard-subtitle {
    font-size: 0.82rem;
    margin-top: 4px;
  }

  .dashboard-actions-bar {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .date-range-scroller {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 2px 0 6px 0;
  }

  .date-range-segmented {
    width: max-content;
    padding: 3px;
  }

  .date-range-pill {
    padding: 6px 12px;
    font-size: 0.76rem;
  }

  .dashboard-find-leads-btn {
    width: 100%;
    justify-content: center;
    padding: 8px 16px;
  }

  /* Work On Next mobile view: Clear prominent title on single line without breaking */
  .won-card-header {
    padding: 14px 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .won-header-left {
    width: 100%;
    min-width: 0;
  }

  .won-title-row {
    gap: 8px;
    white-space: nowrap;
    overflow: hidden;
    max-width: 100%;
    align-items: center;
  }

  .won-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
  }

  .won-title {
    font-size: 1.02rem;
    font-weight: 700;
    white-space: nowrap;
    line-height: 1.25;
    flex-shrink: 0;
    letter-spacing: -0.01em;
  }

  .won-badge {
    font-size: 0.65rem;
    padding: 2px 7px;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .won-subtitle {
    font-size: 0.80rem;
    line-height: 1.4;
    margin-top: 4px;
  }

  .won-pipeline-btn {
    width: 100%;
    justify-content: center;
    font-size: 0.82rem;
    padding: 8px 14px;
  }

  /* Universal iOS Auto-Zoom Prevention & Mobile Touch Polishing */
  select,
  select.form-control,
  .form-control,
  input,
  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="search"],
  input[type="tel"],
  input[type="url"],
  input[type="number"],
  input[type="date"],
  textarea {
    font-size: 16px !important; /* Strictly prevents auto-zoom on iOS Safari */
    min-height: 44px;
    touch-action: manipulation;
  }

  /* Opportunity Intelligence Breakdown mobile equal sizing */
  .opp-breakdown-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .opp-breakdown-card {
    padding: 12px 6px;
    min-width: 0;
  }

  .opp-card-label {
    font-size: 0.65rem;
  }

  .opp-card-count {
    font-size: 1.35rem;
    margin: 4px 0;
  }

  .opp-card-meta {
    font-size: 0.72rem;
    gap: 3px;
  }
}

@media (max-width: 480px) {
  .won-title-row {
    gap: 6px;
  }

  .won-icon {
    width: 16px;
    height: 16px;
  }

  .won-title {
    font-size: 0.95rem; /* Noticeably increased from 0.80rem for strong readability */
    font-weight: 700;
  }

  .won-badge {
    font-size: 0.60rem;
    padding: 2px 5px;
  }

  .opp-breakdown-cards {
    gap: 6px;
  }

  .opp-breakdown-card {
    padding: 10px 4px;
  }

  .opp-card-label {
    font-size: 0.60rem;
  }

  .opp-card-count {
    font-size: 1.22rem;
  }

  .opp-card-meta {
    font-size: 0.68rem;
    flex-direction: column;
    gap: 0;
    line-height: 1.2;
  }

  .opp-card-sub::before {
    display: none;
  }
}

/* Large desktop: more generous content padding */
@media (min-width: 1440px) {
  .app-content {
    padding: 28px 40px;
  }
  .app-header {
    padding: 0 40px;
  }
}

/* Extra-large desktop: comfortable spacing */
@media (min-width: 1800px) {
  .app-content {
    padding: 32px 48px;
  }
  .app-header {
    padding: 0 48px;
  }
}

/* ==========================================================================
   Modal Dialog System (SaaS Backdrop, Elevation & Smooth Animations)
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
  box-sizing: border-box;
}

.modal-backdrop[style*="display: none"] {
  display: none !important;
}

.modal-card {
  position: relative;
  width: 100%;
  max-width: 520px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  max-height: 90vh;
  margin: auto;
  animation: modalEntrance 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-surface-alt);
  flex-shrink: 0;
}

.modal-header h2,
.modal-header h3,
.modal-header .modal-title {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

.modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: none;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-fast);
}

.modal-close:hover {
  background: var(--border-color);
  color: var(--text-main);
}

.modal-body {
  padding: 24px;
  background: var(--bg-surface);
  color: var(--text-main);
  overflow-y: auto;
  flex: 1 1 auto;
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 24px;
  border-top: 1px solid var(--border-color);
  background: var(--bg-surface-alt);
  flex-shrink: 0;
}

