/* ═══════════════════════════════════════════════════════
   CRM Kanban — Design System & Styles
   Modern minimalist dark-mode-first design
   ═══════════════════════════════════════════════════════ */

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

/* ── CSS Custom Properties (Dark Theme Default) ── */
:root {
  /* Base colors */
  --bg-body: #0f0f17;
  --bg-surface: #16161f;
  --bg-surface-raised: #1c1c28;
  --bg-surface-overlay: #22222f;
  --bg-sidebar: #12121a;

  /* Text */
  --text-primary: #e8e8ed;
  --text-secondary: #8b8b9e;
  --text-tertiary: #5c5c6f;
  --text-inverse: #0f0f17;

  /* Borders & Strokes */
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-default: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.16);

  /* Accent / brand */
  --accent-primary: #7c5cfc;
  --accent-primary-soft: rgba(124, 92, 252, 0.12);
  --accent-primary-hover: #8f73fd;

  /* Pipeline stage colors */
  --stage-lead: #6366f1;
  --stage-lead-soft: rgba(99, 102, 241, 0.12);
  --stage-qualified: #8b5cf6;
  --stage-qualified-soft: rgba(139, 92, 246, 0.12);
  --stage-proposal: #ec4899;
  --stage-proposal-soft: rgba(236, 72, 153, 0.12);
  --stage-negotiation: #f59e0b;
  --stage-negotiation-soft: rgba(245, 158, 11, 0.12);
  --stage-won: #10b981;
  --stage-won-soft: rgba(16, 185, 129, 0.12);
  --stage-lost: #ef4444;
  --stage-lost-soft: rgba(239, 68, 68, 0.12);

  /* Priority colors */
  --priority-low: #6b7280;
  --priority-medium: #3b82f6;
  --priority-high: #f59e0b;
  --priority-urgent: #ef4444;

  /* Glass effect */
  --glass-bg: rgba(28, 28, 40, 0.6);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-blur: 12px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 20px rgba(124, 92, 252, 0.15);

  /* Layout */
  --sidebar-width: 260px;
  --sidebar-collapsed: 72px;
  --topbar-height: 64px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 150ms;
  --duration-normal: 250ms;
  --duration-slow: 400ms;
}

/* ── Light Theme ── */
[data-theme="light"] {
  --bg-body: #f5f5f7;
  --bg-surface: #ffffff;
  --bg-surface-raised: #f8f8fa;
  --bg-surface-overlay: #f0f0f3;
  --bg-sidebar: #fafafe;

  --text-primary: #1a1a2e;
  --text-secondary: #6b6b80;
  --text-tertiary: #9b9bae;
  --text-inverse: #ffffff;

  --border-subtle: rgba(0, 0, 0, 0.04);
  --border-default: rgba(0, 0, 0, 0.08);
  --border-strong: rgba(0, 0, 0, 0.14);

  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(0, 0, 0, 0.06);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
  --shadow-glow: 0 0 20px rgba(124, 92, 252, 0.08);
}

/* ── Reset & Base ── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--bg-body);
  color: var(--text-primary);
  line-height: 1.5;
  overflow: hidden;
  height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

/* ═══════════════════════════════════════════════════════
   LAYOUT
   ═══════════════════════════════════════════════════════ */

.app-layout {
  display: flex;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
}

/* ── Sidebar ── */
.sidebar {
  width: var(--sidebar-width);
  min-width: var(--sidebar-width);
  height: 100vh;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  transition: width var(--duration-slow) var(--ease-out),
              min-width var(--duration-slow) var(--ease-out);
  z-index: 100;
  overflow: hidden;
}

.sidebar.collapsed {
  width: var(--sidebar-collapsed);
  min-width: var(--sidebar-collapsed);
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--border-subtle);
  min-height: 65px;
  overflow: hidden;
  white-space: nowrap;
}

.sidebar-brand .brand-icon {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--accent-primary), #a78bfa);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 14px;
}

.sidebar-brand .brand-text {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  opacity: 1;
  transition: opacity var(--duration-normal) var(--ease-out);
}

.sidebar.collapsed .brand-text {
  opacity: 0;
  pointer-events: none;
}

.sidebar-nav {
  flex: 1;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow-y: auto;
  overflow-x: hidden;
}

.sidebar-nav .nav-section-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
  padding: 16px 12px 6px;
  white-space: nowrap;
  overflow: hidden;
  transition: opacity var(--duration-normal) var(--ease-out);
}

.sidebar.collapsed .nav-section-label {
  opacity: 0;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  transition: all var(--duration-fast) ease;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  position: relative;
}

.nav-item:hover {
  background: var(--border-subtle);
  color: var(--text-primary);
}

.nav-item.active {
  background: var(--accent-primary-soft);
  color: var(--accent-primary);
}

.nav-item .nav-icon {
  width: 20px;
  height: 20px;
  min-width: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-item .nav-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-item .nav-label {
  font-size: 13px;
  font-weight: 500;
  opacity: 1;
  transition: opacity var(--duration-normal) var(--ease-out);
}

.sidebar.collapsed .nav-label {
  opacity: 0;
  pointer-events: none;
}

.sidebar-footer {
  padding: 12px;
  border-top: 1px solid var(--border-subtle);
}

.sidebar-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 10px;
  border-radius: var(--radius-md);
  color: var(--text-tertiary);
  transition: all var(--duration-fast) ease;
}

.sidebar-toggle-btn:hover {
  background: var(--border-subtle);
  color: var(--text-primary);
}

.sidebar-toggle-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform var(--duration-normal) var(--ease-out);
}

.sidebar.collapsed .sidebar-toggle-btn svg {
  transform: rotate(180deg);
}

/* ── Main Content Area ── */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
}

/* ── Top Bar ── */
.topbar {
  height: var(--topbar-height);
  min-height: var(--topbar-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  gap: 16px;
}

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

.topbar-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.topbar-stats {
  display: flex;
  align-items: center;
  gap: 16px;
}

.stat-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--bg-surface-raised);
  border: 1px solid var(--border-subtle);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
}

.stat-chip .stat-value {
  color: var(--text-primary);
  font-weight: 600;
}

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

.search-box {
  position: relative;
  width: 240px;
}

.search-box input {
  width: 100%;
  padding: 8px 12px 8px 36px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-default);
  background: var(--bg-surface-raised);
  color: var(--text-primary);
  font-size: 13px;
  outline: none;
  transition: all var(--duration-fast) ease;
}

.search-box input::placeholder {
  color: var(--text-tertiary);
}

.search-box input:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px var(--accent-primary-soft);
}

.search-box .search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--text-tertiary);
  pointer-events: none;
}

.search-box .search-icon svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn-add-deal {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  background: var(--accent-primary);
  color: white;
  font-size: 13px;
  font-weight: 600;
  transition: all var(--duration-fast) ease;
  white-space: nowrap;
}

.btn-add-deal:hover {
  background: var(--accent-primary-hover);
  box-shadow: var(--shadow-glow);
  transform: translateY(-1px);
}

.btn-add-deal:active {
  transform: translateY(0);
}

.btn-add-deal svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  transition: all var(--duration-fast) ease;
}

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

.theme-toggle svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ═══════════════════════════════════════════════════════
   KANBAN BOARD
   ═══════════════════════════════════════════════════════ */

.kanban-board {
  flex: 1;
  display: flex;
  gap: 16px;
  padding: 20px 24px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
}

.kanban-board::-webkit-scrollbar {
  height: 6px;
}

.kanban-board::-webkit-scrollbar-track {
  background: transparent;
}

.kanban-board::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 3px;
}

/* ── Column ── */
.kanban-column {
  min-width: 300px;
  width: 300px;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  transition: border-color var(--duration-fast) ease;
  flex-shrink: 0;
}

.kanban-column.drag-over {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 2px var(--accent-primary-soft);
}

.column-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px 12px;
  border-bottom: 1px solid var(--border-subtle);
}

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

.column-edit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: var(--radius-sm);
  color: var(--text-tertiary);
  opacity: 0;
  transition: all var(--duration-fast) ease;
  background: transparent;
  border: none;
  cursor: pointer;
}

.column-header:hover .column-edit-btn {
  opacity: 1;
}

.column-edit-btn:hover {
  background: var(--bg-surface-raised);
  color: var(--text-primary);
}

.column-edit-btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: currentColor;
}

/* Add Column Card */
.add-column-card {
  background: transparent;
  border: 2px dashed var(--border-default);
  align-items: center;
  justify-content: center;
  min-height: 200px;
}

.add-column-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 100%;
  padding: 32px;
  background: transparent;
  border: none;
  color: var(--text-tertiary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--duration-fast) ease;
}

.add-column-btn:hover {
  color: var(--accent-primary);
  background: var(--accent-primary-soft);
}

.add-column-btn svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
}

/* Color Swatches Palette */
.color-palette {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding: 4px 0;
}

.color-swatch {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--duration-fast) ease;
  position: relative;
}

.color-swatch:hover {
  transform: scale(1.15);
}

.color-swatch.active {
  border-color: var(--text-primary);
  box-shadow: 0 0 0 3px var(--accent-primary-soft);
}

.custom-color-wrapper {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--border-default);
  cursor: pointer;
}

.color-input-picker {
  width: 150%;
  height: 150%;
  transform: translate(-15%, -15%);
  cursor: pointer;
  border: none;
  background: none;
}

.column-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.column-name {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.column-count {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--bg-surface-raised);
  border: 1px solid var(--border-subtle);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
}

.column-value {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-tertiary);
  padding: 0 16px 12px;
}

.column-cards {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 8px 10px 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 60px;
}

.column-cards::-webkit-scrollbar {
  width: 4px;
}

.column-cards::-webkit-scrollbar-track {
  background: transparent;
}

.column-cards::-webkit-scrollbar-thumb {
  background: var(--border-default);
  border-radius: 2px;
}

/* ── Deal Card ── */
.deal-card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 14px;
  cursor: grab;
  transition: all var(--duration-fast) ease;
  position: relative;
  user-select: none;
}

.deal-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.deal-card:active {
  cursor: grabbing;
}

.deal-card.dragging {
  opacity: 0.4;
  transform: scale(0.96);
}

.deal-card-top {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}

.deal-avatar {
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: white;
  letter-spacing: 0.02em;
}

.deal-info {
  flex: 1;
  min-width: 0;
}

.deal-title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.deal-company {
  font-size: 12px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.deal-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.deal-value {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.deal-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.deal-priority {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.deal-days {
  font-size: 11px;
  color: var(--text-tertiary);
  white-space: nowrap;
}

/* ── Drop Placeholder ── */
.drop-placeholder {
  border: 2px dashed var(--accent-primary);
  border-radius: var(--radius-md);
  background: var(--accent-primary-soft);
  min-height: 60px;
  transition: all var(--duration-fast) ease;
  animation: placeholder-pulse 1.5s ease-in-out infinite;
}

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

/* ── Empty column state ── */
.column-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  color: var(--text-tertiary);
  font-size: 12px;
  font-weight: 500;
  text-align: center;
  min-height: 80px;
}

/* ═══════════════════════════════════════════════════════
   MODAL
   ═══════════════════════════════════════════════════════ */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-normal) var(--ease-out);
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-panel {
  width: 520px;
  max-width: 95vw;
  max-height: 90vh;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  transform: translateY(20px) scale(0.96);
  transition: transform var(--duration-normal) var(--ease-spring);
  overflow: hidden;
}

.modal-backdrop.open .modal-panel {
  transform: translateY(0) scale(1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.modal-title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.modal-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  color: var(--text-tertiary);
  transition: all var(--duration-fast) ease;
}

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

.modal-close svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.form-input,
.form-select,
.form-textarea {
  padding: 10px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-default);
  background: var(--bg-surface-raised);
  color: var(--text-primary);
  outline: none;
  transition: all var(--duration-fast) ease;
  width: 100%;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px var(--accent-primary-soft);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-tertiary);
}

.form-select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 12 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 4.5L6 7.5L9 4.5' stroke='%236b6b80' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

.form-textarea {
  resize: vertical;
  min-height: 80px;
}

.form-input.error,
.form-select.error,
.form-textarea.error {
  border-color: var(--stage-lost);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}

.form-error {
  font-size: 11px;
  color: var(--stage-lost);
  font-weight: 500;
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px 20px;
  border-top: 1px solid var(--border-subtle);
  gap: 12px;
}

.modal-footer-left {
  display: flex;
  align-items: center;
}

.modal-footer-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  transition: all var(--duration-fast) ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent-primary);
  color: white;
}

.btn-primary:hover {
  background: var(--accent-primary-hover);
  box-shadow: var(--shadow-glow);
}

.btn-secondary {
  background: var(--bg-surface-raised);
  border: 1px solid var(--border-default);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: var(--bg-surface-overlay);
  border-color: var(--border-strong);
}

.btn-danger {
  color: var(--stage-lost);
}

.btn-danger:hover {
  background: rgba(239, 68, 68, 0.1);
}

/* ═══════════════════════════════════════════════════════
   TOAST / NOTIFICATIONS
   ═══════════════════════════════════════════════════════ */

.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  box-shadow: var(--shadow-lg);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  animation: toast-in var(--duration-normal) var(--ease-spring);
  min-width: 240px;
}

.toast.toast-exit {
  animation: toast-out var(--duration-fast) ease-in forwards;
}

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

.toast-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.toast.success .toast-icon { color: var(--stage-won); }
.toast.error .toast-icon { color: var(--stage-lost); }
.toast.info .toast-icon { color: var(--accent-primary); }

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes toast-out {
  to {
    opacity: 0;
    transform: translateX(40px);
  }
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 500;
    transform: translateX(-100%);
    transition: transform var(--duration-slow) var(--ease-out);
  }

  .sidebar.mobile-open {
    transform: translateX(0);
  }

  .sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 499;
  }

  .sidebar-overlay.visible {
    display: block;
  }

  .mobile-menu-btn {
    display: flex !important;
  }

  .topbar-stats {
    display: none;
  }

  .kanban-column {
    min-width: 280px;
    width: 280px;
  }
}

@media (max-width: 640px) {
  .search-box {
    width: 160px;
  }

  .kanban-board {
    padding: 12px 16px;
    gap: 12px;
  }

  .kanban-column {
    min-width: 260px;
    width: 260px;
  }
}

.mobile-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  transition: all var(--duration-fast) ease;
}

.mobile-menu-btn:hover {
  background: var(--border-subtle);
  color: var(--text-primary);
}

.mobile-menu-btn svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ═══════════════════════════════════════════════════════
   UTILITY CLASSES
   ═══════════════════════════════════════════════════════ */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Smooth card entry animation */
@keyframes card-enter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.deal-card {
  animation: card-enter var(--duration-normal) var(--ease-out) backwards;
}

/* Staggered animation for cards */
.deal-card:nth-child(1) { animation-delay: 0ms; }
.deal-card:nth-child(2) { animation-delay: 40ms; }
.deal-card:nth-child(3) { animation-delay: 80ms; }
.deal-card:nth-child(4) { animation-delay: 120ms; }
.deal-card:nth-child(5) { animation-delay: 160ms; }
.deal-card:nth-child(6) { animation-delay: 200ms; }
.deal-card:nth-child(7) { animation-delay: 240ms; }
.deal-card:nth-child(8) { animation-delay: 280ms; }

/* ═══════════════════════════════════════════════════════
   AUTH SCREEN
   ═══════════════════════════════════════════════════════ */

/* Screen visibility */
#auth-screen {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: var(--bg-body);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

#auth-screen.visible {
  display: flex;
}

#auth-screen.hidden {
  display: none;
}

#app-screen {
  display: none;
  width: 100%;
  height: 100%;
}

#app-screen.visible {
  display: flex;
}

#app-screen.hidden {
  display: none;
}

/* Auth Card */
.auth-card {
  width: 420px;
  max-width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 36px 32px 32px;
  position: relative;
  animation: auth-card-in 0.5s var(--ease-spring);
}

@keyframes auth-card-in {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

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

.auth-brand .brand-icon {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--accent-primary), #a78bfa);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 15px;
}

.auth-brand-text {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.auth-subtitle {
  text-align: center;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

/* Google OAuth Button */
.btn-google-login {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 11px 16px;
  border-radius: var(--radius-md);
  background: var(--bg-surface-raised);
  border: 1px solid var(--border-default);
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--duration-fast) ease;
  margin-bottom: 18px;
}

.btn-google-login:hover {
  background: var(--bg-surface-overlay);
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

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

.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin-bottom: 20px;
  color: var(--text-tertiary);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--border-subtle);
}

.auth-divider span {
  padding: 0 12px;
}

.user-avatar-img {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

/* Auth Tabs */
.auth-tabs {
  display: flex;
  position: relative;
  background: var(--bg-surface-raised);
  border-radius: var(--radius-md);
  padding: 3px;
  margin-bottom: 24px;
  border: 1px solid var(--border-subtle);
}

.auth-tab {
  flex: 1;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: calc(var(--radius-md) - 2px);
  transition: color var(--duration-fast) ease;
  z-index: 1;
  text-align: center;
}

.auth-tab.active {
  color: var(--text-primary);
}

.auth-tab-slider {
  position: absolute;
  top: 3px;
  left: 3px;
  width: calc(50% - 3px);
  height: calc(100% - 6px);
  background: var(--bg-surface-overlay);
  border-radius: calc(var(--radius-md) - 2px);
  box-shadow: var(--shadow-sm);
  transition: transform var(--duration-normal) var(--ease-out);
  border: 1px solid var(--border-subtle);
}

/* Auth Forms */
.auth-forms {
  position: relative;
}

.auth-form {
  display: none;
  flex-direction: column;
  gap: 16px;
}

.auth-form.visible {
  display: flex;
  animation: form-fade-in var(--duration-normal) var(--ease-out);
}

@keyframes form-fade-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.auth-submit {
  width: 100%;
  padding: 11px 20px;
  margin-top: 4px;
  font-size: 14px;
  font-weight: 600;
  justify-content: center;
  min-height: 44px;
}

.auth-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.btn-spinner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.spinner-icon {
  width: 20px;
  height: 20px;
}

/* Auth Error */
.auth-error {
  display: none;
  font-size: 12px;
  color: var(--stage-lost);
  font-weight: 500;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: var(--stage-lost-soft);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Config Error */
.auth-config-error {
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.auth-config-error p {
  margin-bottom: 12px;
}

.auth-config-error code {
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  font-size: 12px;
}

.config-code-block {
  background: var(--bg-surface-raised);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  margin-bottom: 12px;
  line-height: 1.8;
}

.config-hint {
  color: var(--text-tertiary);
  font-size: 12px;
}

/* Auth Theme Toggle */
.auth-theme-toggle {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  color: var(--text-tertiary);
  transition: all var(--duration-fast) ease;
}

.auth-theme-toggle:hover {
  background: var(--border-subtle);
  color: var(--text-primary);
}

.auth-theme-toggle svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ═══════════════════════════════════════════════════════
   AUTH LOADING SCREEN
   ═══════════════════════════════════════════════════════ */

#auth-loader {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: var(--bg-body);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
}

.auth-loader-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--border-default);
  border-top-color: var(--accent-primary);
  border-radius: 50%;
  animation: loader-spin 0.7s linear infinite;
}

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

.auth-loader-text {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ═══════════════════════════════════════════════════════
   USER PROFILE (Sidebar Footer)
   ═══════════════════════════════════════════════════════ */

.sidebar-footer-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#user-profile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 0 8px;
  overflow: hidden;
}

.user-profile-info {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
  overflow: hidden;
}

.user-avatar {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: white;
  letter-spacing: 0.02em;
}

.user-details {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

.user-name {
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.user-email {
  font-size: 11px;
  color: var(--text-tertiary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.user-logout-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  min-width: 30px;
  border-radius: var(--radius-sm);
  color: var(--text-tertiary);
  transition: all var(--duration-fast) ease;
}

.user-logout-btn:hover {
  background: rgba(239, 68, 68, 0.1);
  color: var(--stage-lost);
}

.user-logout-btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Hide user details & logout button when sidebar collapsed */
.sidebar.collapsed .user-details,
.sidebar.collapsed .user-logout-btn {
  display: none !important;
}

.sidebar.collapsed #user-profile {
  justify-content: center;
  padding: 4px 0;
}

.sidebar.collapsed .user-profile-info {
  justify-content: center;
  flex: none;
}

.sidebar.collapsed .sidebar-footer {
  padding: 12px 8px;
}

/* ═══════════════════════════════════════════════════════
   MULTI-VIEW CONTAINER SWITCHER
   ═══════════════════════════════════════════════════════ */

.app-view {
  display: none;
  width: 100%;
  height: 100%;
  flex: 1;
  overflow-y: auto;
}

.app-view.active {
  display: flex;
  flex-direction: column;
}

/* ═══════════════════════════════════════════════════════
   CONTACTS VIEW
   ═══════════════════════════════════════════════════════ */

.contacts-page {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.contacts-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

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

.section-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.contacts-count-badge {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg-surface-raised);
  border: 1px solid var(--border-subtle);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}

.contacts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

.contacts-empty {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px;
  color: var(--text-tertiary);
  gap: 12px;
}

.contacts-empty svg {
  width: 48px;
  height: 48px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}

.contact-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: all var(--duration-fast) ease;
}

.contact-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

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

.contact-avatar {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: white;
}

.contact-main-info {
  min-width: 0;
  flex: 1;
}

.contact-name {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.contact-company {
  font-size: 12px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.contact-details-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-detail-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-secondary);
}

.contact-detail-item svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  flex-shrink: 0;
}

.contact-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
}

.contact-stats-col {
  display: flex;
  flex-direction: column;
}

.contact-stat-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-tertiary);
  font-weight: 600;
}

.contact-stat-val {
  font-size: 14px;
  font-weight: 700;
}

.contact-stat-val.highlight {
  color: var(--accent-primary);
}

.contact-deals-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-deals-title {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-tertiary);
  font-weight: 600;
}

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

.contact-deal-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface-raised);
  border: 1px solid var(--border-subtle);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
  transition: all var(--duration-fast) ease;
}

.contact-deal-chip:hover {
  background: var(--bg-surface-overlay);
  border-color: var(--border-strong);
}

.deal-chip-stage {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-primary);
}

.deal-chip-stage.lead { background: var(--stage-lead); }
.deal-chip-stage.qualified { background: var(--stage-qualified); }
.deal-chip-stage.proposal { background: var(--stage-proposal); }
.deal-chip-stage.negotiation { background: var(--stage-negotiation); }
.deal-chip-stage.won { background: var(--stage-won); }
.deal-chip-stage.lost { background: var(--stage-lost); }

/* ═══════════════════════════════════════════════════════
   ANALYTICS VIEW
   ═══════════════════════════════════════════════════════ */

.analytics-page {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.kpi-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

.kpi-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

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

.kpi-icon-wrap svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.kpi-icon-wrap.accent { background: var(--accent-primary-soft); color: var(--accent-primary); }
.kpi-icon-wrap.success { background: var(--stage-won-soft); color: var(--stage-won); }
.kpi-icon-wrap.info { background: rgba(59, 130, 246, 0.12); color: #3b82f6; }
.kpi-icon-wrap.warning { background: var(--stage-negotiation-soft); color: var(--stage-negotiation); }

.kpi-value {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.kpi-subtitle {
  font-size: 11px;
  color: var(--text-tertiary);
}

.analytics-charts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 900px) {
  .analytics-charts-grid {
    grid-template-columns: 1fr;
  }
}

.chart-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.chart-card-header.margin-top {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}

.chart-title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.stage-funnel-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.funnel-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.funnel-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
}

.funnel-stage-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.funnel-stage-name {
  font-weight: 600;
}

.funnel-stage-count {
  font-size: 11px;
  color: var(--text-tertiary);
}

.funnel-stage-val {
  font-weight: 700;
}

.funnel-bar-track {
  height: 8px;
  width: 100%;
  background: var(--bg-surface-raised);
  border-radius: 4px;
  overflow: hidden;
}

.funnel-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.6s var(--ease-out);
}

.priority-pills-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.priority-pill-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  background: var(--bg-surface-raised);
  border: 1px solid var(--border-subtle);
  font-size: 13px;
}

.priority-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.priority-dot.urgent { background: var(--priority-urgent); }
.priority-dot.high { background: var(--priority-high); }
.priority-dot.medium { background: var(--priority-medium); }
.priority-dot.low { background: var(--priority-low); }

.priority-label {
  flex: 1;
  font-weight: 500;
  color: var(--text-secondary);
}

.priority-count {
  font-weight: 700;
}

.top-deals-mini-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.top-deal-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  background: var(--bg-surface-raised);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: all var(--duration-fast) ease;
}

.top-deal-item:hover {
  background: var(--bg-surface-overlay);
  border-color: var(--border-strong);
}

.top-deal-info {
  display: flex;
  flex-direction: column;
}

.top-deal-title {
  font-size: 13px;
  font-weight: 600;
}

.top-deal-contact {
  font-size: 11px;
  color: var(--text-tertiary);
}

.top-deal-val {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-primary);
}

/* ═══════════════════════════════════════════════════════
   SETTINGS VIEW
   ═══════════════════════════════════════════════════════ */

.settings-page {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
}

.settings-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.settings-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.settings-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: var(--accent-primary-soft);
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.settings-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
}

.settings-card-title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.settings-card-subtitle {
  font-size: 12px;
  color: var(--text-secondary);
}

.settings-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

