/**
 * ALPHA SALES — Reusable Component System (Source of Truth: morrow screenshots)
 * Refined Table, Enhanced Search, Polished Filters, and Checkbox System
 */

/* ==========================================================================
   FLOATING TOP NAVIGATION (SCREENSHOT 1 SOURCE OF TRUTH)
   ========================================================================== */
.floating-nav-wrapper {
  position: sticky;
  top: 14px;
  z-index: 50;
  width: 100%;
  max-width: 100%;
  margin: 14px auto 12px auto;
  padding: 0 32px;
  pointer-events: none;
}

.floating-nav {
  pointer-events: auto;
  margin: 0 auto;
  width: fit-content;
  max-width: 100%;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: var(--radius-pill);
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
  padding: 6px 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

.floating-nav::-webkit-scrollbar {
  display: none;
}

.nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6.5px 15px;
  border-radius: var(--radius-pill);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-secondary);
  border: 1px solid transparent;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
  user-select: none;
  cursor: pointer;
}

.nav-pill:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.85);
  transform: translateY(-1px);
}

.nav-pill svg {
  transition: transform 0.25s ease;
}

.nav-pill:hover svg {
  transform: scale(1.12);
}

/* Active Nav Item (Refined Glass Theme Accent) */
.nav-pill.active {
  color: var(--color-primary-text, #134e4a) !important;
  background: var(--accent-primary, rgba(127, 255, 212, 0.25)) !important;
  border: 1px solid var(--accent-primary-border, #7FFFD4) !important;
  box-shadow: var(--active-pill-shadow, 0 1px 4px rgba(20, 184, 166, 0.15)) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-weight: 700;
  transition: all 0.25s ease;
}

.nav-pill.active:hover {
  background: var(--accent-primary-hover, rgba(127, 255, 212, 0.45)) !important;
  color: var(--color-primary-text, #134e4a) !important;
}

.nav-pill.active svg {
  color: var(--color-primary-text, #134e4a) !important;
  stroke: var(--color-primary-text, #134e4a) !important;
}

.nav-pill.active:hover svg {
  color: var(--color-primary-text, #134e4a) !important;
  stroke: var(--color-primary-text, #134e4a) !important;
}

/* Rudi User Pill */
.nav-pill-user {
  color: var(--color-primary-text, #134e4a) !important;
  background: var(--accent-primary, rgba(127, 255, 212, 0.25)) !important;
  border: 1px solid var(--accent-primary-border, #7FFFD4) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-weight: 700;
}

.nav-pill-user:hover {
  background: var(--accent-primary-hover, rgba(127, 255, 212, 0.45)) !important;
  color: var(--color-primary-text, #134e4a) !important;
}

/* Logout Button (Screenshot 1) */
.nav-pill-logout {
  color: #e11d48;
  background: rgba(255, 241, 242, 0.75);
  border: 1px solid rgba(254, 205, 211, 0.85);
  font-weight: 500;
}

.nav-pill-logout:hover {
  background: #ffe4e6;
  color: #be123c;
  border-color: #fecdd3;
}

.nav-divider {
  width: 1px;
  height: 18px;
  background: rgba(15, 23, 42, 0.08);
  margin: 0 2px;
}

/* ==========================================================================
   CARDS (LIGHT CARD & APPLE HOVER FROM SCREENSHOTS)
   ========================================================================== */
.light-card {
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 30px 0 rgba(15, 23, 42, 0.05), inset 0 1px 1px 0 rgba(255, 255, 255, 1);
  border-radius: var(--radius-2xl);
  position: relative;
}

.apple-card-hover {
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), 
              box-shadow 0.35s ease, 
              border-color 0.35s ease;
}

.apple-card-hover:hover {
  transform: translateY(-2px) scale(1.004);
  box-shadow: 0 18px 40px -10px rgba(15, 23, 42, 0.08), inset 0 1px 1px 0 #ffffff;
  border-color: rgba(255, 255, 255, 1);
}

/* ==========================================================================
   ENHANCED PROMINENT SEARCH BAR
   ========================================================================== */
.search-bar-prominent {
  width: 100%;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: var(--radius-pill);
  padding: 10px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  transition: all 0.2s ease;
}

.search-bar-prominent:focus-within {
  border-color: var(--accent-primary-hover);
  box-shadow: 0 0 0 4px rgba(0, 255, 239, 0.25), 0 4px 16px rgba(15, 23, 42, 0.06);
}

.search-bar-prominent input {
  flex: 1;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-main);
  background: none;
  border: none;
  outline: none;
}

.search-bar-prominent input::placeholder {
  color: #94a3b8;
  font-weight: 400;
}

/* ==========================================================================
   FLOATING LEADS TOOLBARS (ZERO SOLID CARD BACKGROUND — BUTTONS FLOAT IN AIR)
   ========================================================================== */
.slim-header-bar,
.slim-filter-bar,
.floating-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 4px 0;
  min-height: auto;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

/* Individual Floating Elements: Soft Glass / Floating Card Look */
.floating-pill-card,
.filter-pills-group {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.90) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 3.5px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(226, 232, 240, 0.95) !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04) !important;
}

.search-bar-prominent.search-bar-slim {
  width: auto;
  flex: 1;
  max-width: 480px;
  min-width: 220px;
  height: 36px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid #cbd5e1;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04) !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.search-bar-prominent.search-bar-slim:focus-within {
  border-color: #7FFFD4;
  box-shadow: 0 0 0 3px rgba(127, 255, 212, 0.35), 0 6px 18px rgba(15, 23, 42, 0.08) !important;
}

.search-bar-prominent.search-bar-slim input {
  font-size: 13px;
  height: 100%;
}

.slim-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.btn-slim {
  height: 35px !important;
  padding: 0 16px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  border-radius: var(--radius-pill) !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  white-space: nowrap !important;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04) !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.btn-primary.btn-slim {
  background: var(--accent-primary, rgba(127, 255, 212, 0.25)) !important;
  border: 1px solid var(--accent-primary-border, #7FFFD4) !important;
  color: var(--color-primary-text, #134e4a) !important;
  box-shadow: var(--active-pill-shadow, 0 2px 8px rgba(20, 184, 166, 0.12)) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.btn-primary.btn-slim:hover {
  background: var(--accent-primary-hover, rgba(127, 255, 212, 0.45)) !important;
  border-color: var(--accent-primary-border, #7FFFD4) !important;
  color: var(--color-primary-text, #134e4a) !important;
  box-shadow: var(--active-pill-shadow, 0 4px 14px rgba(20, 184, 166, 0.20)) !important;
}

.btn-primary.btn-slim svg {
  color: var(--color-primary-text, #134e4a) !important;
  stroke: var(--color-primary-text, #134e4a) !important;
}

.btn-primary.btn-slim:hover svg {
  color: var(--color-primary-text, #134e4a) !important;
  stroke: var(--color-primary-text, #134e4a) !important;
}
  stroke: #042f2e !important;
}

.btn-secondary.btn-slim {
  background: rgba(255, 255, 255, 0.90) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(203, 213, 225, 0.90) !important;
  color: var(--text-secondary) !important;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04) !important;
}

.btn-secondary.btn-slim:hover {
  background: #ffffff !important;
  border-color: rgba(148, 163, 184, 1) !important;
  color: var(--text-main) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08) !important;
}

.btn-secondary.btn-slim svg {
  color: #64748b !important;
  transition: color 0.15s ease, transform 0.2s ease !important;
}

.btn-secondary.btn-slim:hover svg {
  color: var(--text-main) !important;
  transform: scale(1.08) !important;
}

.floating-counter-badge {
  background: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: blur(12px) !important;
  border: 1px solid rgba(6, 182, 212, 0.30) !important;
  box-shadow: 0 4px 12px rgba(6, 182, 212, 0.14) !important;
}

/* ==========================================================================
   UNIFIED SINGLE-ROW FLOATING CONTROLS & APPLE-GRADE DROPDOWNS
   ========================================================================== */
.single-row-toolbar {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  width: 100% !important;
  flex-wrap: wrap !important;
  padding: 2px 0 6px 0 !important;
  background: transparent !important;
}

.single-row-left {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 1;
  min-width: 0;
  flex-wrap: wrap;
}

.single-row-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* Floating Dropdown Filter System */
.filter-dropdown-wrap {
  position: relative;
  display: inline-flex;
}

.filter-dropdown-trigger {
  height: 35px;
  padding: 0 13px;
  background: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(203, 213, 225, 0.90) !important;
  border-radius: var(--radius-pill) !important;
  font-size: 12.5px;
  font-weight: 600;
  color: #334155;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04) !important;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.filter-dropdown-trigger:hover {
  background: #ffffff !important;
  border-color: rgba(148, 163, 184, 1) !important;
  color: #0f172a;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08) !important;
}

.filter-dropdown-trigger.active-filter {
  background: rgba(127, 255, 212, 0.20) !important;
  border-color: #7FFFD4 !important;
  color: #134e4a !important;
  box-shadow: 0 2px 8px rgba(20, 184, 166, 0.12) !important;
}

.filter-dropdown-trigger.active-filter svg {
  color: #134e4a !important;
}

.filter-dropdown-trigger.active-filter:hover {
  background: rgba(127, 255, 212, 0.40) !important;
  border-color: #5eead4 !important;
  color: #042f2e !important;
}

.filter-dropdown-trigger svg {
  color: #64748b;
  transition: color 0.15s ease;
}

.filter-dropdown-trigger:hover svg {
  color: #0f172a;
}

.dropdown-caret {
  color: #94a3b8 !important;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  margin-left: 2px;
}

.filter-dropdown-wrap.open .dropdown-caret {
  transform: rotate(180deg) !important;
}

.filter-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 1050;
  min-width: 145px;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 14px;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.12), 0 8px 10px -6px rgba(15, 23, 42, 0.06);
  padding: 5px;
  display: none;
  flex-direction: column;
  gap: 2px;
  animation: filterDropdownAnim 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

.filter-dropdown-wrap.open .filter-dropdown-menu {
  display: flex;
}

@keyframes filterDropdownAnim {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.filter-dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  font-size: 12.5px;
  font-weight: 500;
  color: #334155;
  border-radius: 9px;
  border: none;
  background: transparent;
  cursor: pointer;
  text-align: left;
  width: 100%;
  transition: all 0.12s ease;
  white-space: nowrap;
}

.filter-dropdown-item:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.filter-dropdown-item.active {
  background: rgba(127, 255, 212, 0.25);
  color: #134e4a;
  font-weight: 700;
}

.slim-filter-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: nowrap;
}

.slim-filter-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.slim-filter-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-transform: uppercase;
  white-space: nowrap;
}

.slim-filter-divider {
  height: 22px;
  width: 1px;
  background: rgba(226, 232, 240, 0.9);
  flex-shrink: 0;
}

.slim-filter-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.slim-selection-hint {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  color: var(--text-muted);
  white-space: nowrap;
}

@media (max-width: 1100px) {
  .slim-header-bar,
  .slim-filter-bar {
    flex-wrap: wrap;
    gap: 12px;
  }
  .search-bar-prominent.search-bar-slim {
    order: 3;
    max-width: 100%;
    width: 100%;
  }
  .slim-filter-left {
    flex-wrap: wrap;
  }
}

/* ==========================================================================
   BUTTONS (PRIMARY, SECONDARY, DANGER)
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-pill);
  font-size: 13.5px;
  font-weight: 600;
  padding: 8px 18px;
  transition: all 0.2s ease;
  user-select: none;
  cursor: pointer;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.98);
}

/* Primary CTA (+ Új lead) */
.btn-primary {
  background: var(--accent-primary, rgba(127, 255, 212, 0.25));
  color: var(--color-primary-text, #134e4a);
  border: 1px solid var(--accent-primary-border, #7FFFD4);
  box-shadow: var(--active-pill-shadow, 0 2px 8px rgba(20, 184, 166, 0.12));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary:hover {
  background: var(--accent-primary-hover, rgba(127, 255, 212, 0.45));
  border-color: var(--accent-primary-border, #7FFFD4);
  color: var(--color-primary-text, #134e4a);
  box-shadow: var(--active-pill-shadow, 0 4px 14px rgba(20, 184, 166, 0.20));
  transform: translateY(-1px);
}

.btn-primary svg {
  color: var(--color-primary-text, #134e4a);
  stroke: var(--color-primary-text, #134e4a);
}

.btn-primary:hover svg {
  color: var(--color-primary-text, #134e4a);
  stroke: var(--color-primary-text, #134e4a);
}

/* Secondary Button */
.btn-secondary {
  background: rgba(255, 255, 255, 0.85);
  color: var(--text-main);
  border: 1.5px solid #cbd5e1;
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-sm);
  font-weight: 600;
}

.btn-secondary:hover {
  background: #ffffff;
  border-color: #94a3b8;
  color: #0f172a;
  transform: translateY(-1px);
}

.btn-danger {
  background: rgba(255, 241, 242, 0.9);
  color: #e11d48;
  border: 1px solid #fecdd3;
}

.btn-danger:hover {
  background: #ffe4e6;
  color: #be123c;
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid transparent;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.7);
  color: var(--text-main);
}

.btn-sm {
  padding: 5px 12px;
  font-size: 12px;
}

/* ==========================================================================
   INPUTS & FORM CONTROLS
   ========================================================================== */
.light-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1.5px solid #cbd5e1;
  border-radius: var(--radius-pill);
  color: var(--text-main);
  padding: 9.5px 16px;
  font-size: 13.5px;
  transition: all 0.2s ease;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.02);
}

textarea.light-input {
  border-radius: 18px;
}

.light-input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.95);
  border-color: #7FFFD4;
  box-shadow: 0 0 0 3px rgba(127, 255, 212, 0.35);
}

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

.form-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

/* ==========================================================================
   BADGES & STATUS PILLS
   ========================================================================== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2.5px 8.5px;
  font-size: 11px;
  font-weight: 600;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  white-space: nowrap;
  letter-spacing: -0.01em;
}

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

.badge-cyan {
  background: rgba(6, 182, 212, 0.08);
  color: #0891b2;
  border-color: rgba(6, 182, 212, 0.22);
}
.badge-cyan .badge-dot { background: #06b6d4; }

.badge-purple {
  background: rgba(139, 92, 246, 0.08);
  color: #6d28d9;
  border-color: rgba(139, 92, 246, 0.22);
}
.badge-purple .badge-dot { background: #7c3aed; }

.badge-emerald {
  background: rgba(16, 185, 129, 0.08);
  color: #059669;
  border-color: rgba(16, 185, 129, 0.22);
}
.badge-emerald .badge-dot { background: #10b981; }

.badge-amber {
  background: rgba(245, 158, 11, 0.08);
  color: #92400e;
  border-color: rgba(245, 158, 11, 0.22);
}
.badge-amber .badge-dot { background: #f59e0b; }

.badge-rose {
  background: rgba(244, 63, 94, 0.08);
  color: #be123c;
  border-color: rgba(244, 63, 94, 0.22);
}
.badge-rose .badge-dot { background: #f43f5e; }

/* Filter Pills Group */
.filter-pills-group {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.70);
  backdrop-filter: blur(8px);
  padding: 3.5px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(226, 232, 240, 0.90);
}

.filter-pill {
  padding: 5.5px 15px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  transition: all 0.2s ease;
  cursor: pointer;
  user-select: none;
}

.filter-pill:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.95);
}

.filter-pill.active {
  background: rgba(127, 255, 212, 0.25);
  color: #134e4a;
  border: 1px solid #7FFFD4;
  box-shadow: 0 1px 4px rgba(20, 184, 166, 0.15);
  font-weight: 700;
}

.filter-pill.active:hover {
  background: rgba(127, 255, 212, 0.45);
  color: #042f2e;
}

/* ==========================================================================
   LIVE SYNC STRIP
   ========================================================================== */
.live-sync-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(209, 250, 229, 0.55);
  border: 1px solid rgba(167, 243, 208, 0.90);
  border-radius: var(--radius-pill);
  font-size: 12px;
  color: #065f46;
  font-weight: 500;
  width: fit-content;
}

.live-sync-dot-only {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background: rgba(209, 250, 229, 0.55);
  border: 1px solid rgba(167, 243, 208, 0.90);
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.12);
  cursor: default;
  flex-shrink: 0;
  margin: 0 1px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.live-sync-dot-only:hover {
  transform: scale(1.1);
  box-shadow: 0 3px 10px rgba(16, 185, 129, 0.25);
}

.pulse-dot-green {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pulseGreen 2s infinite;
}

@keyframes pulseGreen {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1.05); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* ==========================================================================
   PROMINENT SEARCH BAR (APPLE / LINEAR ELEVATED SEARCH)
   ========================================================================== */
.search-bar-prominent {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: var(--radius-pill);
  padding: 11px 20px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04), 0 1px 2px rgba(15, 23, 42, 0.02);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.search-bar-prominent:focus-within {
  border-color: #00E5D7;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(0, 255, 239, 0.22), 0 4px 14px rgba(15, 23, 42, 0.06);
}

.search-bar-prominent .search-icon {
  color: #64748b;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  transition: color 0.15s ease;
}

.search-bar-prominent:focus-within .search-icon {
  color: #0891b2;
}

.search-bar-prominent input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: #0f172a;
}

.search-bar-prominent input::placeholder {
  color: #64748b;
  font-weight: 400;
  opacity: 0.95;
}

.search-badge-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 600;
  color: #64748b;
  background: #f1f5f9;
  padding: 3.5px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid #e2e8f0;
  white-space: nowrap;
}

/* ==========================================================================
   8-COLUMN DESKTOP TABLE SYSTEM (Matches reference image)
   ========================================================================== */
.table-responsive-wrapper {
  width: 100%;
  overflow-x: auto;
  border-radius: 20px;
  scrollbar-width: thin;
}

.leads-table-card {
  background: #ffffff !important;
  border: 1px solid rgba(226, 232, 240, 0.75) !important;
  border-radius: 20px !important;
  padding: 0 !important;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.03), 0 1px 2px rgba(15, 23, 42, 0.02) !important;
  overflow: hidden !important;
}

.sales-leads-table {
  width: 100%;
  min-width: 2000px !important;
  border-collapse: collapse;
  text-align: left;
}

.table-actions-group {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

.table-action-btn {
  background: transparent;
  border: none;
  color: #64748b;
  cursor: pointer;
  padding: 5px 7px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.table-action-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.table-action-btn.danger:hover {
  background: #fee2e2;
  color: #dc2626;
}

.sales-leads-table thead th {
  padding: 16px 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
  background: #ffffff;
  border-bottom: 1px solid #f1f5f9;
  white-space: nowrap;
  user-select: none;
  font-family: var(--font-sf-display, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
}

.th-sort-caret {
  display: inline-block;
  font-size: 10px;
  color: #94a3b8;
  margin-left: 4px;
  font-weight: 500;
}

/* Airy Table Rows & Discrete Separators */
.sales-leads-table tbody td {
  padding: 14px 20px;
  font-size: 13px;
  color: #334155;
  border-bottom: 1px solid #f8fafc;
  transition: background 0.15s ease, color 0.15s ease;
  vertical-align: middle;
  white-space: nowrap;
}

.sales-leads-table tbody tr {
  transition: background 0.15s ease;
  cursor: pointer;
}

.sales-leads-table tbody tr:hover td {
  background: rgba(248, 250, 252, 0.85);
}

/* Enhanced Selected Row State */
.sales-leads-table tbody tr.row-selected td {
  background: rgba(0, 255, 239, 0.06) !important;
  border-bottom-color: rgba(0, 255, 239, 0.2) !important;
}

/* 1. Company Cell */
.table-company-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.table-company-thumb {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: #1e293b;
  position: relative;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.table-company-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.table-company-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 700;
  font-size: 12.5px;
  background: linear-gradient(135deg, #1e293b 0%, #475569 100%);
}

.table-company-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.table-company-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.01em;
}

.table-company-category {
  font-size: 11.5px;
  color: #64748b;
  font-weight: 400;
  line-height: 1.35;
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 2. Contact Cell */
.table-contact-cell {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
  min-width: 0;
}

.table-contact-name {
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.table-contact-role {
  font-size: 11.5px;
  color: #64748b;
  font-weight: 400;
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 3. Stage Pill */
.table-stage-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 14px;
  border-radius: 9999px;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
  letter-spacing: 0.01em;
  line-height: 1.3;
}

.stage-pill-new {
  background: #eff6ff;
  color: #3b82f6;
}

.stage-pill-contacted {
  background: #f3e8ff;
  color: #9333ea;
}

.stage-pill-meeting {
  background: #fef3c7;
  color: #d97706;
}

.stage-pill-proposal {
  background: #e0e7ff;
  color: #4f46e5;
}

.stage-pill-won {
  background: #dcfce7;
  color: #16a34a;
}

.stage-pill-lost {
  background: #ffe4e6;
  color: #e11d48;
}

.stage-pill-decision {
  background: #e0e7ff;
  color: #4338ca;
}

.table-text-val {
  font-size: 13px;
  font-weight: 500;
  color: #334155;
}

.table-text-mono {
  font-size: 12.5px;
  font-weight: 500;
  color: #475569;
  letter-spacing: 0.01em;
}

.table-text-muted {
  font-size: 12.5px;
  font-weight: 400;
  color: #64748b;
}

/* 4. Next Activity Cell */
.table-activity-cell {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.table-activity-icon {
  color: #94a3b8;
  margin-top: 2px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.table-activity-info {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}

.table-activity-date {
  font-size: 12px;
  font-weight: 500;
  color: #334155;
  white-space: nowrap;
}

.table-activity-time {
  font-size: 11px;
  font-weight: 400;
  color: #94a3b8;
  white-space: nowrap;
}

/* 5. Value Cell */
.table-value-text {
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

/* 6. Owner Cell */
.table-owner-cell {
  display: flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
}

.table-owner-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: #1e293b;
  position: relative;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.table-owner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.table-owner-initials {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 9.5px;
  font-weight: 700;
  background: linear-gradient(135deg, #1e293b 0%, #475569 100%);
}

.table-owner-name {
  font-size: 12.5px;
  font-weight: 500;
  color: #334155;
}

/* 7. Status Pill */
.table-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
  letter-spacing: 0.01em;
  line-height: 1.3;
}

.table-status-open {
  background: #eff6ff;
  color: #2563eb;
}

.table-status-closed {
  background: #ecfdf5;
  color: #10b981;
}

.table-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: currentColor;
  flex-shrink: 0;
}

/* 8. Actions Cell */
.table-actions-cell {
  text-align: right;
}

.table-more-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.table-more-btn:hover {
  color: #0f172a;
  background: #f1f5f9;
}

/* Enhanced Apple-style Table Checkbox */
.lead-checkbox {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 1.5px solid #cbd5e1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  background: #ffffff;
  flex-shrink: 0;
}

.lead-checkbox:hover {
  border-color: #94a3b8;
  background: #f8fafc;
}

.lead-checkbox.checked {
  background: rgba(127, 255, 212, 0.40);
  border-color: #7FFFD4;
  color: #134e4a;
  box-shadow: 0 0 6px rgba(20, 184, 166, 0.25);
}

.lead-checkbox.checked svg {
  stroke: #134e4a;
  stroke-width: 2.6;
}

/* Row Action Buttons */
.row-actions-group {
  display: flex;
  align-items: center;
  gap: 5px;
  justify-content: flex-end;
}

.action-icon-btn {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  border: 1px solid transparent;
  transition: all 0.15s ease;
  background: none;
}

.action-icon-btn:hover {
  background: #f1f5f9;
  color: var(--text-main);
  border-color: #e2e8f0;
}

.action-icon-btn.btn-delete:hover {
  background: #ffe4e6;
  color: #e11d48;
  border-color: #fecdd3;
}

/* Bulk Selection Floating Action Bar */
.bulk-floating-bar {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(30px);
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(20px);
  color: #ffffff;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 80;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.bulk-floating-bar.active {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* ==========================================================================
   MODAL COMPONENT (LIGHT APPLE FLOATING CARD)
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.35);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

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

.modal-dialog {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 1);
  border-radius: var(--radius-2xl);
  box-shadow: 0 25px 60px -10px rgba(15, 23, 42, 0.25);
  width: 100%;
  max-width: 580px;
  transform: scale(0.96) translateY(10px);
  transition: transform 260ms cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

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

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 26px 16px 26px;
  border-bottom: 1px solid #f1f5f9;
}

.modal-body {
  padding: 24px 26px;
  max-height: 75vh;
  overflow-y: auto;
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 26px;
  background: rgba(248, 250, 252, 0.85);
  border-top: 1px solid #f1f5f9;
}

/* Toast */
.toast-container {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 255, 239, 0.6);
  border-radius: var(--radius-pill);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  transform: translateY(14px) scale(0.95);
  opacity: 0;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: auto;
}

.toast.show {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.toast-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-primary);
  box-shadow: 0 0 8px var(--accent-primary);
}

/* ==========================================================================
   KANBAN PIPELINE BOARD SYSTEM (ALPHA SALES PRECISE 13-STAGE BOARD)
   ========================================================================== */
.kanban-board-wrapper {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  padding-bottom: 24px;
  -webkit-overflow-scrolling: touch;
}

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

.kanban-board-wrapper::-webkit-scrollbar-track {
  background: rgba(226, 232, 240, 0.35);
  border-radius: var(--radius-pill);
}

.kanban-board-wrapper::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: var(--radius-pill);
}

.kanban-board-wrapper::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.kanban-board {
  display: flex;
  gap: 16px;
  min-width: max-content;
  align-items: flex-start;
  padding: 4px 2px 12px 2px;
}

/* Individual Kanban Column (Soft, airy, Apple-grade container) */
/* Individual Kanban Column (Soft, airy, Apple-grade container) */
.kanban-col {
  width: 275px;
  min-width: 275px;
  max-width: 275px;
  flex-shrink: 0;
  background: rgba(248, 250, 252, 0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 240px);
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.02), inset 0 1px 0 rgba(255, 255, 255, 0.7);
  transition: all 0.2s ease;
}

.kanban-col-header {
  padding: 14px 14px 8px 14px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  background: transparent;
  user-select: none;
}

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

.kanban-col-title-group {
  display: flex;
  align-items: center;
  gap: 7px;
}

.kanban-col-name {
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.01em;
}

.kanban-col-name.col-name-won {
  color: #16a34a;
}

.kanban-col-count-badge {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  background: #e2e8f0;
  border-radius: 9999px;
  padding: 1.5px 7px;
  min-width: 18px;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.kanban-col-more-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.kanban-col-more-btn:hover {
  color: #0f172a;
  background: #f1f5f9;
}

.kanban-col-total-value {
  font-size: 12px;
  font-weight: 500;
  color: #64748b;
  letter-spacing: -0.01em;
  padding-left: 1px;
}

/* Scrollable Column Cards Container */
.kanban-col-cards {
  padding: 8px 10px 14px 10px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 11px;
  flex: 1;
  scrollbar-width: thin;
}

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

.kanban-col-cards::-webkit-scrollbar-thumb {
  background: #e2e8f0;
  border-radius: 4px;
}

/* Subtle, Quiet Empty State */
.kanban-empty {
  padding: 24px 12px;
  text-align: center;
  color: #94a3b8;
  font-size: 11.5px;
  font-style: normal;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.18);
  border: 1px dashed rgba(203, 213, 225, 0.55);
  border-radius: 14px;
  user-select: none;
}

/* ==========================================================================
   KANBAN CARD (Exact match with reference image)
   ========================================================================== */
.pipeline-card {
  background: rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 16px;
  padding: 13px 15px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.02), inset 0 1px 0 rgba(255, 255, 255, 0.7);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  position: relative;
}

.pipeline-card:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.95);
}

/* Top Section: Avatar + Info + More */
.card-top-section {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.card-avatar-wrap {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: #1e293b;
  position: relative;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.card-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-avatar-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 700;
  font-size: 13px;
  background: linear-gradient(135deg, #1e293b 0%, #475569 100%);
  user-select: none;
}

.card-body-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.card-company-name {
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.25;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.01em;
}

.card-contact-name {
  font-size: 11.5px;
  font-weight: 500;
  color: #475569;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-contact-role {
  font-size: 11px;
  font-weight: 400;
  color: #64748b;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-cat-container {
  margin-top: 5px;
}

.card-cat-pill {
  display: inline-flex;
  align-items: center;
  font-size: 10.5px;
  font-weight: 500;
  padding: 2.5px 9.5px;
  border-radius: 9999px;
  letter-spacing: 0.01em;
  width: fit-content;
  line-height: 1.3;
}

/* Category Color Palette (Exact match with reference) */
.cat-restaurant {
  background: #EEF2FF;
  color: #6366F1;
}

.cat-cafe {
  background: #FFF7ED;
  color: #EA580C;
}

.cat-coffeeshop {
  background: #FEF3C7;
  color: #D97706;
}

.cat-bar {
  background: #ECFDF5;
  color: #059669;
}

.cat-default {
  background: #F1F5F9;
  color: #475569;
}

.cat-city {
  background: #EEF2FF;
  color: #4F46E5;
}

.card-more-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.card-more-btn:hover {
  color: #0f172a;
  background: #f1f5f9;
}

/* Bottom Section: Date/Time on Left, Deal Value on Right */
.card-bottom-section {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  margin-top: 13px;
  padding-top: 2px;
}

.card-footer-left {
  display: flex;
  align-items: flex-end;
  min-width: 0;
}

.card-date-group {
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.card-cal-icon {
  color: #94a3b8;
  margin-top: 1.5px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.card-date-text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.card-date-day {
  font-size: 11.5px;
  font-weight: 500;
  color: #475569;
  white-space: nowrap;
}

.card-date-time {
  font-size: 10.5px;
  font-weight: 400;
  color: #94a3b8;
  white-space: nowrap;
}

.card-won-pill {
  display: flex;
  align-items: center;
  gap: 5.5px;
  font-size: 11.5px;
  font-weight: 500;
  color: #334155;
  white-space: nowrap;
}

.card-won-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-deal-value {
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
  text-align: right;
  letter-spacing: -0.01em;
  white-space: nowrap;
  margin-left: auto;
}

/* ==========================================================================
   LEAD EDITOR MODAL (APPLE / SEAMLESS CONTIGUOUS FORM SHEET)
   ========================================================================== */
.modal-dialog-lead {
  max-width: 720px !important;
  max-height: 90vh !important;
  background: #ffffff !important;
  border: 1px solid rgba(226, 232, 240, 0.9) !important;
  border-radius: 20px !important;
  box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.18), 0 0 0 1px rgba(226, 232, 240, 0.5) !important;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.lead-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 26px 18px 26px;
  border-bottom: 1px solid #f1f5f9 !important;
  background: #ffffff !important;
}

.lead-modal-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 4px;
}

.lead-modal-meta span {
  font-size: 12px;
  color: #64748b;
  line-height: 1.4;
}

/* 3 Visual State Switcher inside Modal */
.lead-state-switcher {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: #f1f5f9;
  padding: 3px;
  border-radius: var(--radius-pill);
  border: 1px solid #e2e8f0;
}

.lead-state-pill {
  padding: 4px 11px;
  font-size: 11.5px;
  font-weight: 600;
  color: #64748b;
  border-radius: var(--radius-pill);
  border: none;
  background: transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.lead-state-pill:hover {
  color: #0f172a;
  background: rgba(255, 255, 255, 0.6);
}

.lead-state-pill.active {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.lead-form-scrollable {
  padding: 20px 26px;
  overflow-y: auto;
  max-height: calc(90vh - 160px);
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: #ffffff;
}

/* ==========================================================================
   ÖSSZEFÜGGŐ LEAD ŰRLAP RÁCS (SEAMLESS CONTIGUOUS FORM GRID)
   ========================================================================== */
.lead-contiguous-form {
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
}

.lead-form-row {
  display: flex;
  border-bottom: 1px solid #f1f5f9;
}

.lead-form-row:last-child {
  border-bottom: none;
}

.lead-cell {
  flex: 1;
  min-width: 0;
  padding: 10px 18px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  background: #ffffff;
  border-right: 1px solid #f1f5f9;
  transition: background 0.15s ease, box-shadow 0.15s ease;
  position: relative;
}

.lead-cell:last-child,
.lead-cell.cell-full {
  border-right: none;
}

.lead-cell.cell-full {
  flex: 1 1 100%;
}

.lead-cell:hover {
  background: rgba(248, 250, 252, 0.75);
}

.lead-cell:focus-within {
  background: #ffffff;
  box-shadow: inset 0 0 0 1.5px #06b6d4;
  z-index: 2;
}

.lead-cell-label {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
  margin: 0;
  cursor: default;
  user-select: none;
  line-height: 1.2;
}

.lead-cell-input,
.lead-cell-select {
  width: 100%;
  border: none;
  background: transparent;
  padding: 3px 0 2px 0;
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
  outline: none;
  font-family: inherit;
  line-height: 1.35;
}

.lead-cell-select {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='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 4px center;
  padding-right: 22px;
}

.lead-cell-textarea {
  width: 100%;
  border: none;
  background: transparent;
  padding: 4px 0 2px 0;
  font-size: 13.5px;
  font-weight: 500;
  color: #0f172a;
  outline: none;
  font-family: inherit;
  line-height: 1.45;
  resize: vertical;
}

.lead-cell-header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
  flex-wrap: wrap;
  gap: 8px;
}

.transcript-unlimited-badge {
  font-size: 10px;
  font-weight: 700;
  color: #0284c7;
  background: rgba(14, 165, 233, 0.1);
  border: 1px solid rgba(14, 165, 233, 0.25);
  padding: 2px 7px;
  border-radius: 10px;
  letter-spacing: 0.02em;
}

.transcript-quick-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.transcript-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}

.transcript-action-btn:hover {
  background: #ffffff;
  color: #0f172a;
  border-color: #cbd5e1;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.lead-transcript-textarea {
  min-height: 130px;
  font-family: var(--font-family, -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif);
  font-size: 13.5px;
  line-height: 1.55;
  color: #0f172a;
  background: #fafafa;
  border-radius: 8px;
  padding: 8px 10px;
  border: 1px dashed #e2e8f0;
}

.lead-transcript-textarea:focus {
  background: #ffffff;
  border-style: solid;
  border-color: #06b6d4;
}

.lead-cell-input::placeholder,
.lead-cell-textarea::placeholder {
  color: #94a3b8;
  font-weight: 400;
}

/* Fallback / Backward Compatibility Classes */
.lead-form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.lead-field-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
  margin-bottom: 6px;
}

.lead-input-wrap {
  position: relative;
  width: 100%;
}

.lead-input-wrap .lead-input-icon {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  pointer-events: none;
  display: flex;
  align-items: center;
}

.lead-input-lg,
.lead-input-md {
  width: 100%;
  font-size: 13.5px;
  font-weight: 500;
  padding: 10px 18px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-pill);
  color: #0f172a;
  outline: none;
  transition: all 0.2s ease;
}

.lead-input-lg:focus,
.lead-input-md:focus {
  background: #ffffff;
  border-color: #06b6d4;
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.15);
}

.lead-textarea {
  width: 100%;
  font-family: inherit;
  font-size: 13.5px;
  line-height: 1.5;
  padding: 12px 18px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  color: #0f172a;
  outline: none;
  resize: vertical;
  transition: all 0.2s ease;
}

.lead-textarea:focus {
  background: #ffffff;
  border-color: #06b6d4;
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.15);
}

/* Sections: Emlékeztetők & Meetingek */
.lead-card-section {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

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

.lead-card-section-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #475569;
}

.btn-section-add {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-pill);
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  transition: all 0.15s ease;
}

.btn-section-add:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: #0f172a;
}

.lead-section-empty-text {
  font-size: 13px;
  color: #64748b;
  font-style: italic;
  padding: 4px 0;
}

.lead-mini-form {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 4px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.lead-items-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lead-item-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  font-size: 12.5px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

/* Modal Footer */
.lead-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 26px 20px 26px;
  background: #ffffff !important;
  border-top: 1px solid #f1f5f9 !important;
}

.btn-delete-lead {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fee2e2;
  color: #dc2626;
  border: 1px solid #fca5a5;
  border-radius: 9999px;
  font-size: 12.5px;
  font-weight: 600;
  padding: 8px 18px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-delete-lead:hover {
  background: #fecaca;
  color: #b91c1c;
  border-color: #f87171;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.15);
}

.btn-modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
  border-radius: 9999px;
  font-size: 12.5px;
  font-weight: 600;
  padding: 8px 22px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-modal-close:hover {
  background: #e2e8f0;
  color: #0f172a;
  transform: translateY(-1px);
}

.btn-modal-done {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgba(127, 255, 212, 0.35);
  color: #134e4a;
  border: 1px solid #7FFFD4;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 26px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(20, 184, 166, 0.12);
  transition: all 0.15s ease;
  letter-spacing: -0.01em;
}

.btn-modal-done:hover {
  background: rgba(127, 255, 212, 0.55);
  border-color: #5eead4;
  color: #042f2e;
  box-shadow: 0 4px 14px rgba(20, 184, 166, 0.20);
  transform: translateY(-1px);
}

.btn-modal-done svg {
  color: #134e4a;
  stroke: #134e4a;
}

.btn-modal-done:hover svg {
  color: #042f2e;
  stroke: #042f2e;
}

/* ==========================================================================
   MODERN WEEKLY CALENDAR & AGENDA DASHBOARD (EXACT SCREENSHOT SPECIFICATION)
   ========================================================================== */
.calendar-modern-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 20px;
  align-items: start;
  width: 100%;
}

@media (max-width: 1240px) {
  .calendar-modern-layout {
    grid-template-columns: 1fr;
  }
}

.calendar-modern-main {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.calendar-modern-sidebar {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* 1. Main Weekly Schedule Card */
.cal-schedule-card {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 10px 30px 0 rgba(15, 23, 42, 0.04), inset 0 1px 1px 0 rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-2xl, 24px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Schedule Header */
.cal-schedule-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.65);
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.cal-nav-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cal-nav-arrows {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cal-nav-btn {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(203, 213, 225, 0.8);
  border-radius: 8px;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s ease;
}

.cal-nav-btn:hover {
  background: rgba(255, 255, 255, 0.95);
  border-color: #94a3b8;
  color: #0f172a;
}

.cal-week-range-text {
  font-size: 15.5px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.015em;
  margin-left: 4px;
}

.cal-today-pill-btn {
  padding: 6px 16px;
  font-size: 12.5px;
  font-weight: 600;
  color: #334155;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(203, 213, 225, 0.8);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.cal-today-pill-btn:hover {
  background: rgba(255, 255, 255, 0.95);
  border-color: #94a3b8;
  color: #0f172a;
}

/* 2. Grid Scroll & Grid Container */
.cal-grid-scroll-wrapper {
  width: 100%;
  overflow-x: auto;
  scrollbar-width: thin;
  background: transparent;
}

.cal-week-timegrid {
  display: grid;
  grid-template-columns: 68px repeat(7, minmax(110px, 1fr));
  min-width: 820px;
  background: transparent;
  user-select: none;
}

/* Day Header Columns */
.cal-days-header-row {
  display: contents;
}

.cal-corner-spacer {
  height: 48px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.65);
  border-right: 1px solid rgba(226, 232, 240, 0.65);
  background: transparent;
}

.cal-day-header-cell {
  height: 48px;
  padding: 8px 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid rgba(226, 232, 240, 0.65);
  border-right: 1px solid rgba(226, 232, 240, 0.65);
  background: transparent;
}

.cal-day-header-cell:last-child {
  border-right: none;
}

.cal-day-header-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
}

.cal-header-dayname {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  line-height: 1.1;
}

.cal-header-daydate {
  font-size: 11px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.1;
}

/* Tuesday / Today Highlight Pill in Header */
.cal-day-header-cell.is-today .cal-day-header-inner {
  background: rgba(239, 246, 255, 0.85);
  border: 1px solid rgba(191, 219, 254, 0.9);
  border-radius: 8px;
  padding: 4px 18px;
}

.cal-day-header-cell.is-today .cal-header-dayname,
.cal-day-header-cell.is-today .cal-header-daydate {
  color: #2563eb;
}

/* Grid Body Rows */
.cal-time-axis-col {
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(226, 232, 240, 0.65);
  background: transparent;
}

.cal-time-slot-label {
  height: 60px;
  font-size: 10.5px;
  font-weight: 600;
  color: #94a3b8;
  padding-right: 8px;
  text-align: right;
  box-sizing: border-box;
  transform: translateY(-8px);
}

.cal-day-body-col {
  display: flex;
  flex-direction: column;
  position: relative;
  border-right: 1px solid rgba(226, 232, 240, 0.65);
  background: transparent;
}

.cal-day-body-col:last-child {
  border-right: none;
}

.cal-hour-cell {
  height: 60px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.35);
  box-sizing: border-box;
}

.cal-hour-cell:nth-child(even) {
  border-bottom-color: rgba(226, 232, 240, 0.55);
}

/* Current Time Red Indicator Line */
.cal-current-time-marker {
  position: absolute;
  top: 210px; /* 11:30 AM = 3.5 * 60px */
  left: 0;
  right: 0;
  height: 2px;
  background: #ef4444;
  z-index: 20;
  pointer-events: none;
}

.cal-current-time-badge {
  position: absolute;
  left: -58px;
  top: -9px;
  font-size: 10px;
  font-weight: 700;
  color: #ef4444;
  background: #ffffff;
  padding: 1px 4px;
  border-radius: 4px;
  white-space: nowrap;
}

.cal-current-time-dot {
  position: absolute;
  left: -4px;
  top: -3px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
}

/* Event Blocks on Grid */
.cal-grid-event {
  position: absolute;
  left: 4px;
  right: 4px;
  border-radius: 8px;
  padding: 6px 8px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 2px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  cursor: pointer;
  z-index: 10;
  overflow: hidden;
  transition: transform 0.15s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.15s ease, z-index 0s;
}

.cal-grid-event:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
  z-index: 30;
}

.cal-event-time {
  font-size: 10px;
  font-weight: 700;
  line-height: 1.1;
  opacity: 0.85;
}

.cal-event-title {
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cal-event-meta {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10.5px;
  font-weight: 500;
  opacity: 0.9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}

.cal-event-avatar {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.cal-event-icon {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

/* View Mode Switcher Pills: Nap | Hét | Hónap */
.cal-view-switcher {
  display: flex;
  align-items: center;
  background: rgba(241, 245, 249, 0.85);
  padding: 3px;
  border-radius: 9999px;
  border: 1px solid rgba(226, 232, 240, 0.85);
  gap: 2px;
}

.cal-view-pill {
  padding: 5px 16px;
  font-size: 12px;
  font-weight: 500;
  color: #64748b;
  border: none;
  background: transparent;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
}

.cal-view-pill:hover {
  color: #0f172a;
}

.cal-view-pill.active {
  background: #ffffff;
  color: #0f172a;
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

/* Day View Mode Override */
.cal-week-timegrid.is-day-view {
  grid-template-columns: 68px 1fr !important;
  min-width: 100% !important;
}

.cal-week-timegrid.is-day-view .cal-day-header-cell:not(.is-today),
.cal-week-timegrid.is-day-view .cal-day-body-col:not(#cal-col-tue) {
  display: none !important;
}

/* Month View Grid Container */
.cal-month-grid-container {
  padding: 16px 20px 20px 20px;
  background: transparent;
}

.cal-month-header-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  margin-bottom: 8px;
  text-align: center;
}

.cal-month-day-title {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  padding: 4px 0;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cal-month-grid-cells {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}

.cal-month-cell {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(226, 232, 240, 0.85);
  border-radius: 10px;
  min-height: 92px;
  padding: 6px 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: all 0.15s ease;
}

.cal-month-cell:hover {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(148, 163, 184, 0.45);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

.cal-month-cell.is-today {
  background: rgba(239, 246, 255, 0.85);
  border: 1.5px solid #3b82f6;
}

.cal-month-cell.other-month {
  opacity: 0.4;
  background: rgba(248, 250, 252, 0.35);
}

.cal-month-cell-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2px;
}

.cal-month-day-num {
  font-size: 12px;
  font-weight: 600;
  color: #334155;
}

.cal-month-cell.is-today .cal-month-day-num {
  color: #2563eb;
  font-weight: 700;
}

.cal-month-today-badge {
  font-size: 9px;
  font-weight: 700;
  color: #2563eb;
  background: #dbeafe;
  padding: 1px 5px;
  border-radius: 4px;
  text-transform: uppercase;
}

.cal-month-pill {
  padding: 3px 6px;
  border-radius: 5px;
  font-size: 10.5px;
  font-weight: 500;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: transform 0.1s ease;
}

.cal-month-pill:hover {
  transform: translateX(1px);
}

/* Unified 2-Color Scheme: Meeting = Red (Piros), Emlékeztető = Blue (Kék) */
.cal-event-meeting,
.cal-event-red,
.cal-event-rose,
.cal-event-lavender,
.cal-event-amber,
.cal-month-pill.meeting {
  background: rgba(254, 226, 226, 0.9) !important;
  border: 1px solid rgba(252, 165, 165, 0.95) !important;
  color: #991b1b !important;
}

.cal-event-reminder,
.cal-event-blue,
.cal-event-mint,
.cal-event-emerald,
.cal-event-purple,
.cal-event-slate,
.cal-month-pill.reminder {
  background: rgba(224, 242, 254, 0.9) !important;
  border: 1px solid rgba(125, 211, 252, 0.95) !important;
  color: #075985 !important;
}

/* ==========================================================================
   ENHANCED CALENDAR VISUALS & POPUPS (Apple-Style Minimalist Dots & Glass Panels)
   ========================================================================== */

/* Minimalist Colored Dots */
.event-dot {
  display: inline-block;
  font-size: 10px;
  line-height: 1;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  flex-shrink: 0;
}

.event-dot.meeting {
  color: #ef4444;
}

.event-dot.reminder {
  color: #0ea5e9;
}

/* Day View Timeline Layout */
.cal-day-timeline-container {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: transparent;
}

.cal-day-slot-row {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 16px;
  align-items: flex-start;
  min-height: 60px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.45);
  padding-bottom: 10px;
}

.cal-day-slot-row:last-child {
  border-bottom: none;
}

.cal-day-time-label {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  padding-top: 4px;
}

.cal-day-events-wrapper {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cal-day-event-card {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.cal-day-event-card:hover {
  background: rgba(255, 255, 255, 0.95);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
}

.cal-day-event-card.meeting-type {
  border-left: 3px solid #ef4444;
}

.cal-day-event-card.reminder-type {
  border-left: 3px solid #0ea5e9;
}

/* Highlighting Soron Következő Esemény */
.cal-day-event-card.is-next-upcoming,
.cal-agenda-item.is-next-upcoming {
  background: rgba(255, 255, 255, 0.95) !important;
  border: 1.5px solid rgba(14, 165, 233, 0.6) !important;
  box-shadow: 0 6px 20px rgba(14, 165, 233, 0.16) !important;
}

.cal-day-event-card.is-next-upcoming.meeting-type,
.cal-agenda-item.is-next-upcoming.meeting-type {
  border-color: rgba(239, 68, 68, 0.6) !important;
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.16) !important;
}

.cal-next-badge {
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 5px;
  letter-spacing: 0.03em;
}

.cal-next-badge.meeting {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

.cal-next-badge.reminder {
  background: #e0f2fe;
  color: #075985;
  border: 1px solid #7dd3fc;
}

/* Popover Modal Event Detail Styling */
.cal-event-detail-modal {
  max-width: 440px;
  width: 90%;
  padding: 24px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(32px) saturate(190%);
  -webkit-backdrop-filter: blur(32px) saturate(190%);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.20);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.cal-time-pill-tag {
  font-size: 11px;
  font-weight: 600;
  color: #475569;
  background: rgba(241, 245, 249, 0.9);
  padding: 3px 8px;
  border-radius: 6px;
}

.cal-detail-company {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.015em;
  margin: 0;
}

.cal-detail-type-sub {
  font-size: 13px;
  font-weight: 500;
  color: #64748b;
  margin-top: 2px;
}

.cal-detail-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  background: rgba(248, 250, 252, 0.7);
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 12px;
  padding: 14px;
  margin-top: 4px;
}

.cal-detail-info-item {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.cal-detail-info-icon {
  font-size: 14px;
  flex-shrink: 0;
  margin-top: 1px;
}

.cal-detail-info-label {
  font-size: 10px;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.cal-detail-info-val {
  font-size: 12.5px;
  font-weight: 600;
  color: #1e293b;
  margin-top: 1px;
}

.cal-event-detail-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(226, 232, 240, 0.7);
  padding-top: 14px;
  margin-top: 4px;
}

/* 3. Bottom 3 Metric Cards */
.cal-bottom-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

@media (max-width: 900px) {
  .cal-bottom-metrics-grid {
    grid-template-columns: 1fr;
  }
}

.cal-metric-card {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.03), inset 0 1px 1px rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-xl, 20px);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, border-color 0.2s ease;
}

.cal-metric-card:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.07);
  border-color: rgba(127, 255, 212, 0.6);
}

.cal-metric-icon-box {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cal-metric-icon-box.blue {
  background: #eff6ff;
  color: #2563eb;
}

.cal-metric-icon-box.purple {
  background: #f5f3ff;
  color: #7c3aed;
}

.cal-metric-icon-box.lavender {
  background: #f0f4ff;
  color: #4f46e5;
}

.cal-metric-content {
  flex: 1;
  min-width: 0;
}

.cal-metric-label {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  line-height: 1.2;
}

.cal-metric-val {
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.15;
  margin: 2px 0;
}

.cal-metric-trend {
  font-size: 11.5px;
  color: #64748b;
}

.cal-metric-trend .trend-up {
  color: #10b981;
  font-weight: 700;
}

.cal-metric-sub {
  font-size: 11.5px;
  color: #64748b;
}

.cal-metric-arrow {
  color: #94a3b8;
  display: flex;
  align-items: center;
  transition: transform 0.2s ease, color 0.2s ease;
}

.cal-metric-card:hover .cal-metric-arrow {
  transform: translateX(2px);
  color: #0f172a;
}

/* 4. Right Sidebar: Today's Agenda */
.cal-sidebar-card {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 10px 30px 0 rgba(15, 23, 42, 0.04), inset 0 1px 1px 0 rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-2xl, 24px);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cal-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 8px;
  border-bottom: 1px solid #f1f5f9;
}

.cal-sidebar-title {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.015em;
  margin: 0;
}

.cal-sidebar-date {
  font-size: 12.5px;
  font-weight: 600;
  color: #64748b;
}

.cal-sidebar-count-badge {
  font-size: 11px;
  font-weight: 700;
  color: var(--color-primary-text, #0f172a);
  background: var(--accent-primary, #00FFEF);
  padding: 3px 10px;
  border-radius: 12px;
  border: 1px solid var(--accent-primary-border, rgba(0, 0, 0, 0.1));
}

.cal-agenda-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cal-agenda-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.cal-agenda-item:hover {
  background: #f8fafc;
}

.cal-agenda-time {
  display: flex;
  flex-direction: column;
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  min-width: 58px;
  line-height: 1.35;
  padding-top: 1px;
}

.cal-agenda-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  margin-top: 1px;
}

.cal-agenda-icon-box {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.cal-agenda-icon-box.mint {
  background: #ecfdf5;
  color: #10b981;
}

.cal-agenda-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.cal-agenda-name {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cal-agenda-type {
  font-size: 12px;
  font-weight: 500;
  color: #334155;
  line-height: 1.25;
}

.cal-agenda-contact {
  font-size: 11px;
  color: #64748b;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cal-agenda-more {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 14px;
  line-height: 1;
  padding: 4px;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.cal-agenda-more:hover {
  color: #0f172a;
  background: #e2e8f0;
}

.cal-agenda-section-label {
  font-size: 12px;
  font-weight: 700;
  color: #0f172a;
  padding-top: 6px;
  margin-top: 4px;
  border-top: 1px solid #f1f5f9;
}

.cal-view-full-btn {
  width: 100%;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(226, 232, 240, 0.85);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.cal-view-full-btn:hover {
  background: #ffffff;
  border-color: rgba(148, 163, 184, 0.8);
  color: #0f172a;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.07);
}

/* ==========================================================================
   FLOATING ACTIVE REMINDER POPUP (APPLE / LINEAR GRADE)
   ========================================================================== */
.reminder-popup-card {
  position: fixed;
  top: 88px;
  right: 28px;
  z-index: 250;
  width: 380px;
  max-width: calc(100vw - 40px);
  background: rgba(255, 255, 255, 0.98);
  border: 1.5px solid rgba(0, 255, 239, 0.65);
  border-radius: 18px;
  box-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.22), 0 0 0 1px rgba(0, 255, 239, 0.25);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  overflow: hidden;
  display: none;
  flex-direction: column;
  animation: slideInPopup 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.reminder-popup-card.open {
  display: flex;
}

@keyframes slideInPopup {
  from { opacity: 0; transform: translateY(-14px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.reminder-popup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px 10px 18px;
  border-bottom: 1px solid #f1f5f9;
}

.reminder-popup-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #d97706;
  background: #fef3c7;
  border: 1px solid #fde68a;
  border-radius: var(--radius-pill);
  padding: 3px 9px;
}

.reminder-popup-body {
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.reminder-popup-lead {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
}

.reminder-popup-time {
  font-size: 12.5px;
  font-weight: 600;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 5px;
}

.reminder-popup-note-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  padding: 9px 12px;
  font-size: 12.5px;
  color: #334155;
  font-style: italic;
  margin-top: 4px;
}

.reminder-popup-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 18px;
  background: #f8fafc;
  border-top: 1px solid #f1f5f9;
}

/* ==========================================================================
/* ==========================================================================
   ALPHA SALES — AKTIVITÁS MODUL (Ultra-Clean Sales Activity Feed)
   ========================================================================== */

.activity-header-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.5));
  border-radius: 16px;
  padding: 18px 24px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
  gap: 20px;
  flex-wrap: wrap;
}

.activity-title-group h1 {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-primary-text, #0f172a);
  letter-spacing: -0.02em;
  margin: 0 0 4px 0;
}

.activity-title-group p {
  font-size: 13.5px;
  color: #64748b;
  margin: 0;
}

.activity-toolbar {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.activity-filter-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.activity-filter-label {
  font-size: 11.5px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.activity-segmented-control {
  display: inline-flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.04);
  padding: 3px;
  border-radius: 9999px;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.activity-seg-btn {
  border: none;
  background: transparent;
  padding: 6px 16px;
  font-size: 12.5px;
  font-weight: 600;
  color: #64748b;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.activity-seg-btn:hover {
  color: #0f172a;
}

.activity-seg-btn.active {
  background: var(--accent-primary, #00FFEF);
  color: var(--color-primary-text, #032b28);
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Activity Feed Container */
.activity-feed-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.activity-date-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.activity-date-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 0 4px 0;
}

.activity-date-pill {
  font-size: 11.5px;
  font-weight: 700;
  color: #475569;
  background: rgba(241, 245, 249, 0.7);
  padding: 3px 12px;
  border-radius: 20px;
  border: 1px solid rgba(226, 232, 240, 0.8);
  letter-spacing: 0.02em;
}

.activity-date-line {
  flex: 1;
  height: 1px;
  background: rgba(0, 0, 0, 0.06);
}

/* Activity Feed Item — Compact ~76px */
.activity-feed-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  gap: 16px;
}

.activity-feed-item:hover {
  transform: translateY(-1.5px);
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
}

/* Functional Accent Left Sizing (Subtle border indicator) */
.activity-feed-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12%;
  bottom: 12%;
  width: 3.5px;
  border-radius: 0 4px 4px 0;
}

.activity-feed-item.type-meeting::before { background-color: #ef4444; }
.activity-feed-item.type-reminder::before { background-color: #0ea5e9; }
.activity-feed-item.type-pipeline::before { background-color: #a855f7; }
.activity-feed-item.type-offer::before { background-color: #f97316; }
.activity-feed-item.type-won::before { background-color: #10b981; }
.activity-feed-item.type-lost::before { background-color: #f43f5e; }
.activity-feed-item.type-lead::before { background-color: #06b6d4; }
.activity-feed-item.type-call::before { background-color: #3b82f6; }

/* Item 3 Zones */
.activity-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 140px;
  flex-shrink: 0;
}

.activity-item-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
  flex-shrink: 0;
}

.activity-item-avatar.tomi {
  background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
}

.activity-item-user-info {
  display: flex;
  flex-direction: column;
}

.activity-item-user-meta {
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
}

.activity-item-user-meta .time-meta {
  font-weight: 400;
  color: #64748b;
  margin-left: 2px;
}

.activity-item-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.activity-item-company {
  font-size: 14.5px;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.01em;
}

.activity-item-action {
  font-size: 12.5px;
  color: #475569;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.activity-item-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.activity-item-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 600;
  border: 1px solid transparent;
}

.activity-item-badge .badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.activity-item-badge.type-meeting {
  background: rgba(239, 68, 68, 0.08);
  color: #dc2626;
  border-color: rgba(239, 68, 68, 0.2);
}
.activity-item-badge.type-meeting .badge-dot { background-color: #ef4444; }

.activity-item-badge.type-reminder {
  background: rgba(14, 165, 233, 0.08);
  color: #0284c7;
  border-color: rgba(14, 165, 233, 0.2);
}
.activity-item-badge.type-reminder .badge-dot { background-color: #0ea5e9; }

.activity-item-badge.type-pipeline {
  background: rgba(168, 85, 247, 0.08);
  color: #9333ea;
  border-color: rgba(168, 85, 247, 0.2);
}
.activity-item-badge.type-pipeline .badge-dot { background-color: #a855f7; }

.activity-item-badge.type-offer {
  background: rgba(249, 115, 22, 0.08);
  color: #ea580c;
  border-color: rgba(249, 115, 22, 0.2);
}
.activity-item-badge.type-offer .badge-dot { background-color: #f97316; }

.activity-item-badge.type-won {
  background: rgba(16, 185, 129, 0.08);
  color: #059669;
  border-color: rgba(16, 185, 129, 0.2);
}
.activity-item-badge.type-won .badge-dot { background-color: #10b981; }

.activity-item-badge.type-lost {
  background: rgba(244, 63, 94, 0.08);
  color: #e11d48;
  border-color: rgba(244, 63, 94, 0.2);
}
.activity-item-badge.type-lost .badge-dot { background-color: #f43f5e; }

.activity-item-badge.type-lead {
  background: rgba(6, 182, 212, 0.08);
  color: #0891b2;
  border-color: rgba(6, 182, 212, 0.2);
}
.activity-item-badge.type-lead .badge-dot { background-color: #06b6d4; }

.activity-item-hover-link {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-primary-text, #0f172a);
  opacity: 0;
  transform: translateX(4px);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.activity-feed-item:hover .activity-item-hover-link {
  opacity: 0.8;
  transform: translateX(0);
}

.activity-card-expand-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  font-weight: 600;
  color: #64748b;
  margin-top: 10px;
  cursor: pointer;
  transition: color 0.15s ease;
}

.activity-card-expand-toggle:hover {
  color: #0f172a;
}

.activity-card-expand-toggle svg {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
}

.activity-card.expanded .activity-card-expand-toggle svg {
  transform: rotate(180deg);
}

/* Expanded Drawer */
.activity-expand-drawer {
  display: none;
  padding-top: 14px;
  margin-top: 14px;
  border-top: 1px dashed #e2e8f0;
  animation: fadeInDown 0.18s ease forwards;
}

.activity-card.expanded .activity-expand-drawer {
  display: block;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.activity-drawer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 12px;
}

.activity-drawer-flow {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.activity-drawer-label {
  font-size: 11px;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.activity-drawer-state-change {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: #0f172a;
}

.activity-state-pill-prev {
  padding: 2px 8px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  color: #64748b;
}

.activity-state-pill-next {
  padding: 2px 8px;
  background: #ecfeff;
  border: 1px solid #a5f3fc;
  border-radius: 6px;
  color: #0e7490;
}

.activity-drawer-note-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 12.5px;
  color: #334155;
  margin-bottom: 12px;
  line-height: 1.45;
}

.activity-drawer-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.activity-drawer-audit {
  font-size: 11.5px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  color: #94a3b8;
}

.activity-drawer-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* System Log Table */
.system-log-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.system-log-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}

.system-log-table th {
  background: #f8fafc;
  color: #64748b;
  font-weight: 600;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 12px 18px;
  border-bottom: 1px solid #e2e8f0;
}

.system-log-table td {
  padding: 13px 18px;
  border-bottom: 1px solid #f1f5f9;
  color: #1e293b;
  vertical-align: middle;
}

.system-log-table tr:hover td {
  background: #fafcfc;
}

.system-log-time {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  color: #64748b;
  white-space: nowrap;
}

.system-log-user-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #0f172a;
}

.system-log-event-text {
  font-size: 13px;
  color: #334155;
  line-height: 1.4;
}

.system-log-action-cell {
  text-align: right;
  white-space: nowrap;
}

/* Empty State */
.activity-empty-state {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 14px;
  padding: 48px 24px;
  text-align: center;
  color: #64748b;
}

.activity-empty-state svg {
  width: 44px;
  height: 44px;
  stroke: #cbd5e1;
  margin-bottom: 12px;
}

.activity-empty-state h3 {
  font-size: 16px;
  font-weight: 600;
  color: #0f172a;
  margin: 0 0 6px 0;
}

.activity-empty-state p {
  font-size: 13px;
  color: #64748b;
  margin: 0;
}

/* ==========================================================================
   ALPHA SALES — WEBOLDAL MINTÁK MODUL (Visual Inspiration Library)
   ========================================================================== */

.templates-header-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  padding: 20px 24px;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.templates-title-group h1 {
  font-size: 24px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.02em;
  margin: 0 0 4px 0;
}

.templates-title-group p {
  font-size: 13.5px;
  color: #64748b;
  margin: 0;
}

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

/* Filter Card */
.templates-filter-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 14px;
  padding: 16px 20px;
  margin-bottom: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Primary Categories Row */
.template-category-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.template-cat-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.template-cat-pill {
  padding: 8px 18px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 600;
  color: #475569;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.template-cat-pill:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.template-cat-pill.active {
  background: rgba(127, 255, 212, 0.25);
  border-color: #7FFFD4;
  color: #134e4a;
  box-shadow: 0 1px 4px rgba(20, 184, 166, 0.15);
  font-weight: 700;
}

.template-cat-pill.active:hover {
  background: rgba(127, 255, 212, 0.45);
  color: #042f2e;
}

/* Secondary Style & Search Row */
.template-subfilter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
}

.template-style-pills {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.template-style-pill {
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  cursor: pointer;
  transition: all 0.15s ease;
}

.template-style-pill:hover {
  background: #f8fafc;
  color: #0f172a;
  border-color: #cbd5e1;
}

.template-style-pill.active {
  background: #0f172a;
  border-color: #0f172a;
  color: #ffffff;
}

.template-tools-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Favorite Toggle */
.template-fav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  user-select: none;
  transition: all 0.15s ease;
}

.template-fav-toggle:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.template-fav-toggle.active {
  background: #fffbeb;
  border-color: #fde68a;
  color: #92400e;
}

.template-fav-toggle .star-icon {
  font-size: 13px;
  color: #f59e0b;
}

/* Search wrap */
.template-search-wrap {
  position: relative;
  min-width: 260px;
}

.template-search-wrap svg {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  stroke: #94a3b8;
  pointer-events: none;
}

.template-search-input {
  width: 100%;
  height: 34px;
  padding: 0 12px 0 34px;
  font-size: 12.5px;
  font-family: inherit;
  color: #0f172a;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  outline: none;
  transition: all 0.15s ease;
}

.template-search-input:focus {
  background: #ffffff;
  border-color: #7FFFD4;
  box-shadow: 0 0 0 3px rgba(127, 255, 212, 0.30);
}

/* Gallery Grid */
.template-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

@media (max-width: 1280px) {
  .template-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .template-gallery-grid {
    grid-template-columns: 1fr;
  }
}

/* Template Card */
.template-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  cursor: pointer;
}

.template-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.12);
}

/* Thumbnail Frame */
.template-thumb-frame {
  height: 190px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  background: #0f172a;
  display: flex;
  flex-direction: column;
}

.thumb-browser-bar {
  height: 24px;
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  padding: 0 10px;
  gap: 6px;
  z-index: 2;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.thumb-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.thumb-dot.red { background: #ef4444; }
.thumb-dot.yellow { background: #f59e0b; }
.thumb-dot.green { background: #10b981; }

.thumb-browser-url {
  margin-left: 6px;
  font-size: 9.5px;
  font-family: ui-monospace, SFMono-Regular, monospace;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.1);
  padding: 1px 8px;
  border-radius: 4px;
  max-width: 180px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Mock Website Canvas Preview */
.thumb-canvas-content {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 16px;
  text-align: center;
  transition: transform 0.3s ease;
}

.template-card:hover .thumb-canvas-content {
  transform: scale(1.02);
}

.thumb-preview-tagline {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  margin-bottom: 6px;
  opacity: 0.9;
}

.thumb-preview-title {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 8px;
}

.thumb-mock-elements {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.thumb-mock-pill {
  font-size: 10px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Hover overlay on thumb */
.thumb-hover-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 3;
}

.template-card:hover .thumb-hover-overlay {
  opacity: 1;
}

.thumb-view-btn {
  background: #ffffff;
  color: #0f172a;
  border: none;
  border-radius: 20px;
  padding: 7px 16px;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Card Body */
.template-card-body {
  padding: 16px 18px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.template-card-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.template-card-title {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.template-star-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px 4px;
  font-size: 16px;
  line-height: 1;
  color: #cbd5e1;
  transition: color 0.15s ease, transform 0.15s ease;
}

.template-star-btn:hover {
  transform: scale(1.15);
  color: #f59e0b;
}

.template-star-btn.active {
  color: #f59e0b;
}

.template-domain-row {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
}

.template-domain-link {
  color: #008779;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.template-domain-link:hover {
  text-decoration: underline;
}

.template-badges-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin: 2px 0;
}

.template-note-preview {
  font-size: 12.5px;
  color: #64748b;
  line-height: 1.45;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 36px;
}

/* Card Footer */
.template-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid #f1f5f9;
  margin-top: auto;
}

.template-creator-meta {
  font-size: 11.5px;
  color: #94a3b8;
  font-weight: 500;
}

.template-card-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.template-action-open-btn {
  padding: 4px 10px;
  font-size: 11.5px;
  font-weight: 600;
  color: #0f172a;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.template-action-open-btn:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

/* Dropdown menu for card */
.template-dropdown-wrap {
  position: relative;
}

.template-dropdown-btn {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #64748b;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.15s ease;
}

.template-dropdown-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.template-dropdown-menu {
  display: none;
  position: absolute;
  right: 0;
  bottom: 30px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  min-width: 140px;
  z-index: 10;
  overflow: hidden;
}

.template-dropdown-menu.open {
  display: block;
}

.template-dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  font-size: 12px;
  color: #334155;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: background 0.12s ease;
}

.template-dropdown-item:hover {
  background: #f8fafc;
  color: #0f172a;
}

.template-dropdown-item.danger {
  color: #e11d48;
}

.template-dropdown-item.danger:hover {
  background: #fff1f2;
}

/* Detail Modal Styles */
.template-modal-preview-hero {
  height: 260px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
}

.template-modal-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 16px;
}

.template-modal-meta-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.template-modal-meta-label {
  font-size: 11px;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.template-modal-meta-val {
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
}

.template-modal-note-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  padding: 12px 16px;
  font-size: 13px;
  color: #334155;
  line-height: 1.5;
  margin-bottom: 16px;
}

/* List Table View */
.template-list-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.template-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}

.template-table th {
  background: #f8fafc;
  color: #64748b;
  font-weight: 600;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 12px 16px;
  border-bottom: 1px solid #e2e8f0;
}

.template-table td {
  padding: 13px 16px;
  border-bottom: 1px solid #f1f5f9;
  color: #1e293b;
  vertical-align: middle;
}

.template-table tr:hover td {
  background: #fafcfc;
}

/* ==========================================================================
   FINANCE / PÉNZÜGYEK MODULE
   ========================================================================== */
.finance-header-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  padding: 22px 26px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.finance-month-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 4px 6px;
}

.finance-nav-btn {
  background: transparent;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  cursor: pointer;
  transition: all 0.15s ease;
}

.finance-nav-btn:hover {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.finance-month-label {
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
  min-width: 150px;
  text-align: center;
  user-select: none;
}

.finance-btn-today {
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 7px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s ease;
}

.finance-btn-today:hover {
  background: #f1f5f9;
  color: #0f172a;
}

/* 3 KPI Cards */
.finance-kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.finance-kpi-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  padding: 20px 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.finance-kpi-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

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

.finance-kpi-title-box {
  display: flex;
  align-items: center;
  gap: 10px;
}

.finance-kpi-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.finance-kpi-icon.income {
  background: #ecfdf5;
  color: #059669;
}

.finance-kpi-icon.expense {
  background: #fff1f2;
  color: #e11d48;
}

.finance-kpi-icon.balance {
  background: #f0fdfa;
  color: #0d9488;
}

.finance-kpi-label {
  font-size: 12.5px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.finance-kpi-val {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #0f172a;
  line-height: 1.1;
  font-feature-settings: "tnum";
}

.finance-kpi-val.income {
  color: #059669;
}

.finance-kpi-val.expense {
  color: #e11d48;
}

.finance-kpi-val.balance-pos {
  color: #059669;
}

.finance-kpi-val.balance-neg {
  color: #e11d48;
}

.finance-kpi-sub {
  font-size: 12px;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Recurring expenses */
.finance-recurring-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  padding: 22px 26px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.finance-section-title-box {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.finance-section-title {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
}

.finance-section-sub {
  font-size: 12.5px;
  color: #64748b;
}

.finance-recurring-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.finance-recurring-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  transition: all 0.15s ease;
}

.finance-recurring-item:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.finance-recurring-item.inactive {
  opacity: 0.55;
  background: #f8fafc;
  border-style: dashed;
}

.finance-rec-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Custom Apple toggle switch */
.finance-toggle-label {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 20px;
  margin: 0;
  cursor: pointer;
}

.finance-toggle-input {
  opacity: 0;
  width: 0;
  height: 0;
}

.finance-toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #cbd5e1;
  transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 20px;
}

.finance-toggle-slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 50%;
  box-shadow: 0 1px 2px rgba(0,0,0,0.15);
}

.finance-toggle-input:checked + .finance-toggle-slider {
  background-color: #00D5C0;
}

.finance-toggle-input:checked + .finance-toggle-slider:before {
  transform: translateX(16px);
}

.finance-rec-name {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  min-width: 110px;
}

.finance-pill-freq {
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  background: #e2e8f0;
  color: #475569;
}

.finance-pill-cat {
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  background: #f1f5f9;
  color: #64748b;
  border: 1px solid #e2e8f0;
}

.finance-rec-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.finance-rec-amount {
  font-size: 14.5px;
  font-weight: 700;
  color: #e11d48;
  font-feature-settings: "tnum";
}

.finance-rec-amount.inactive {
  color: #94a3b8;
  text-decoration: line-through;
}

.finance-btn-del {
  background: transparent;
  border: none;
  color: #94a3b8;
  padding: 6px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.finance-btn-del:hover {
  background: #fee2e2;
  color: #e11d48;
}

/* Transactions section */
.finance-transactions-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  padding: 22px 26px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.finance-week-block {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  background: #ffffff;
}

.finance-week-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.finance-week-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 700;
  color: #1e293b;
}

.finance-week-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
}

.finance-week-income-sum {
  color: #059669;
}

.finance-week-expense-sum {
  color: #e11d48;
}

.finance-week-empty {
  padding: 26px 18px;
  text-align: center;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 500;
  font-style: italic;
}

.finance-day-group {
  padding: 0;
}

.finance-day-header {
  padding: 8px 18px;
  background: #ffffff;
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.finance-day-subtotal {
  font-size: 11.5px;
  font-weight: 600;
  display: flex;
  gap: 8px;
}

.finance-tx-list {
  display: flex;
  flex-direction: column;
}

.finance-tx-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-bottom: 1px solid #f1f5f9;
  transition: background 0.15s ease;
}

.finance-tx-row:last-child {
  border-bottom: none;
}

.finance-tx-row:hover {
  background: #f8fafc;
}

.finance-tx-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.finance-tx-badge-type {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

.finance-tx-badge-type.income {
  background: #ecfdf5;
  color: #059669;
}

.finance-tx-badge-type.expense {
  background: #fff1f2;
  color: #e11d48;
}

.finance-tx-name {
  font-size: 13.5px;
  font-weight: 600;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 6px;
}

.finance-tx-recur-icon {
  font-size: 13px;
  color: #0284c7;
  font-weight: 700;
}

.finance-tx-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.finance-tx-amount {
  font-size: 14px;
  font-weight: 700;
  font-feature-settings: "tnum";
}

.finance-tx-amount.income {
  color: #059669;
}

.finance-tx-amount.expense {
  color: #e11d48;
}

/* Modal segmented type switcher */
.finance-type-switcher {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 4px;
  background: #f1f5f9;
  border-radius: 10px;
}

.finance-type-btn {
  padding: 10px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.finance-type-btn.active.income {
  background: #ffffff;
  color: #059669;
  border-color: #a7f3d0;
  box-shadow: 0 1px 3px rgba(5, 150, 105, 0.12);
}

.finance-type-btn.active.expense {
  background: #ffffff;
  color: #e11d48;
  border-color: #fecdd3;
  box-shadow: 0 1px 3px rgba(225, 29, 72, 0.12);
}

/* ==========================================================================
   SETTINGS & THEME SELECTOR MODULE
   ========================================================================== */
.settings-section-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  padding: 24px 28px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.settings-section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 16px;
}

.settings-section-title {
  font-size: 17px;
  font-weight: 700;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 8px;
}

.settings-section-sub {
  font-size: 13px;
  color: #64748b;
  margin-top: 4px;
}

/* Theme Preview Cards Grid */
.theme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.theme-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  position: relative;
}

.theme-card:hover {
  transform: translateY(-2px);
  border-color: #cbd5e1;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.theme-card.active {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 1.5px var(--accent-primary), 0 8px 25px var(--accent-primary-soft);
}

/* Mini UI Preview inside the card */
.theme-mini-preview {
  height: 124px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid #e2e8f0;
  user-select: none;
}

.theme-mini-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 20px;
  padding: 3px 8px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}

.theme-mini-pill {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 12px;
}

.theme-mini-pill.active {
  font-weight: 700;
}

.theme-mini-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 10px;
  padding: 8px 10px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.theme-mini-card-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.theme-mini-bar-title {
  width: 55px;
  height: 6px;
  background: #0f172a;
  border-radius: 3px;
}

.theme-mini-bar-sub {
  width: 35px;
  height: 4px;
  background: #94a3b8;
  border-radius: 2px;
}

.theme-mini-btn {
  font-size: 10px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

/* Theme Card Body */
.theme-card-body {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

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

.theme-card-title {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
}

.theme-active-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  padding: 2.5px 8px;
  border-radius: 12px;
  background: var(--accent-primary);
  color: var(--color-primary-text, #0f172a);
  border: 1px solid var(--accent-primary-border);
  box-shadow: 0 1px 3px var(--accent-primary-glow);
}

.theme-card-desc {
  font-size: 12.5px;
  color: #64748b;
  line-height: 1.45;
  flex: 1;
}

.theme-palette-swatches {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 4px;
}

.theme-swatch {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

/* ==========================================================================
   DASHBOARD 3-CARD OVERVIEW GRID (CLEAN, SPACIOUS, HERO METRICS)
   ========================================================================== */
.dashboard-overview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 1080px) {
  .dashboard-overview-grid {
    grid-template-columns: 1fr;
  }
}

.dashboard-kpi-card {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 30px 0 rgba(15, 23, 42, 0.05), inset 0 1px 1px 0 rgba(255, 255, 255, 1);
  border-radius: var(--radius-2xl, 28px);
  padding: 38px 34px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}

.dashboard-kpi-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 42px -6px rgba(15, 23, 42, 0.09), inset 0 1px 1px 0 rgba(255, 255, 255, 1);
  border-color: rgba(127, 255, 212, 0.65);
}

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

.dashboard-kpi-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted, #64748b);
  background: rgba(241, 245, 249, 0.85);
  border: 1px solid rgba(226, 232, 240, 0.8);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
}

.dashboard-kpi-icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(241, 245, 249, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.dashboard-kpi-card:hover .dashboard-kpi-icon-wrap {
  transform: scale(1.08);
  background: rgba(127, 255, 212, 0.25);
  color: #134e4a !important;
}

.dashboard-kpi-value {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  font-size: 46px;
  font-weight: 300;
  letter-spacing: -0.02em;
  color: #1e293b;
  line-height: 1.05;
  margin: 18px 0 6px 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.dashboard-kpi-unit {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted, #64748b);
  letter-spacing: -0.01em;
}

.dashboard-kpi-footer {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid rgba(226, 232, 240, 0.75);
}

.dashboard-kpi-next-label {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-dimmed, #94a3b8);
  margin-bottom: 8px;
}

.dashboard-kpi-next-val {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--text-main, #0f172a);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.next-time-tag {
  font-size: 12px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: rgba(6, 182, 212, 0.12);
  color: #0891b2;
  border: 1px solid rgba(6, 182, 212, 0.25);
}

.next-time-tag.status-warm {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
  border-color: rgba(16, 185, 129, 0.25);
}

.next-time-tag.status-purple {
  background: rgba(139, 92, 246, 0.12);
  color: #7c3aed;
  border-color: rgba(139, 92, 246, 0.25);
}

.dashboard-kpi-desc {
  font-size: 13.5px;
  color: var(--text-muted, #64748b);
  margin-top: 6px;
  line-height: 1.4;
}

.dashboard-kpi-action {
  margin-top: 20px;
}

.dashboard-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(127, 255, 212, 0.25);
  border: 1px solid #7FFFD4;
  color: #134e4a;
  font-weight: 700;
  font-size: 12.5px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.dashboard-kpi-card:hover .dashboard-action-btn {
  background: rgba(127, 255, 212, 0.45);
  border-color: #5eead4;
  color: #042f2e;
  transform: translateX(2px);
}
